antiblock
https://arwen2.global/
  • Chatbox

    You don't have permission to chat.
    Load More
Sign in to follow this  
SINVAL o.O

Quest Evento Pascoa

12 posts in this topic

Olá por pedido de alguns menbros, e como a pascoa ta ae dexo aki a quest da pascoa que eu ja tinha postado, mais tava infuncional, depois do pacificador conseguir corrigir o erro ta funcional, mais os "id dos itens e do npc que vai a quest aou criterio de vcs", mais pra quest npc tinha que ser Sr Coelho, e os itens ovos de pascoa.

quest Pascoa beginstate start begin  when NPC.chat."Evento Pascoa" begin   if pc.is_gm() then    if game.get_event_flag("evento") == 0 then								 say("O evento não está activo.")								 say("Deseja ativar?")								 local a = select ("Sim", "Não")								 if a == 1 then								  game.set_event_flag("evento", 1)								  notice_all("O Evento de Pascoa Começou!")								 end    else								 say("O evento está ativo.")								 say("Deseja desativar?")								 local b = select ("Sim", "Não")								 if b == 1 then								  game.set_event_flag("evento", 0)								  notice_all("O Evento de Pascoa Acabou!")								 end    end   else    if game.get_event_flag("evento") == 0 then								 say("O Evento está desativado.")    else								 say_title ("Olá, "..pc.get_name().."!")								 say ("O evento de Pascoa já começou e agora ")								 say ("isso significa que cada jogador tem a chance, ")								 say ("para ganhar algo especial.")								 say ("Os monstros roubaram os Ovos do Sr Coelho,")								 say ("que podem ser obtidos a partir de qualquer monstro.")								 say ("Porem voçê deve tomar cuidado, pois a varios monstros malignos por ai, ")								 say ("mais voçê tera uma surpresa no final. ")								 say ("Você pode ganhar premios dropando de 5 há 100 Ovos. ")								 say ("Voçê pode escolher quantas Ovos quer trocar, voçê pode trocar 5-10-25-50-100 quanto mais voçê ")								 say ("dropar, mais premios melhores voçê vai ganhar. ")								 wait()								 say_title ("Voçê pode fazer as seguintes trocas de Ovos: ")								 say ("")								 say_reward ("5 = Item 299")								 say_reward ("10 = item 49")								 say_reward ("25 = item 59")								 say_reward ("50 = item 69")								 say_reward ("100 = item 79")    end   end  end  when NPC.chat."Trocar de Ovos" with game.get_event_flag("evento") == 1 and pc.count_item("50095") >= 5 begin   say_title (""..pc.get_name()..": ")   say ("Voçê tem quantos ovos pra trocar?")   local a = select ("5 Ovos ", "10 Ovos ", "25 Ovos ", "50 Ovos ", "100 Ovos ", "Cancelar")   if a == 1 then    pc.give_item2("299", 1)    pc.remove_item("50095", 5)   elseif a == 2 then    if pc.count_item("50095") >= 10 then								 pc.give_item2("49", 1)								 pc.remove_item("50095", 10)    else								 say("Não tens ovos suficientes.")    end   elseif a == 3 then    if pc.count_item("50095") >= 25 then								 pc.give_item2("59", 1)								 pc.remove_item("50095", 25)    else								 say("Não tens ovos suficientes")    end   elseif a == 4 then    if pc.count_item("50095") >= 50 then								 pc.give_item2("69", 1)								 pc.remove_item("50095", 50)    else								 say("Não tens ovos suficientes")    end   elseif a == 5 then    if pc.count_item("50095") >= 100 then								 pc.give_item2("79", 1)								 pc.remove_item("50095", 100)    else								 say("Não tens ovos suficientes")    end   end  endendend

Créditos Editar : Sinval

Créditos Tirar Erros : pacificador

Créditos Criador : Não Saber

C.

Sinval

Share this post


Link to post
Share on other sites
antiblock
Elveron
Obrigado por partilhares feio! :)

Share this post


Link to post
Share on other sites

Sinval2020

Share this post


Link to post
Share on other sites

SlondPT não conheces o botão "Editar"?Olha o double

Share this post


Link to post
Share on other sites

Onde eu Pego ese Npc Sr.Coelho é Ovo da Pascoa

Share this post


Link to post
Share on other sites

Ai ja não sei pois nem eu tenho.Penso em criar os ovos e o npc pro meu server, vo tentar depois se conseguir disponibilizo pra todos.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this