KB CRAZY CHANNEL 121 Posted January 14, 2017 Boas, Alguma alma bondosa pode-me criar a seguinte QUEST?: 1 - troca de item por yang Exemplo: entrega um item ao NPC e ele dá Yang Quem quiser criar basta fazer o script base, eu adiciono as falas etc , só preciso do script xD NPC: 20095 Share this post Link to post Share on other sites
Cσяvσ⋆ 1,804 Posted January 14, 2017 quest A begin state start begin when 20095.chat."Escolha 1" begin say_title("Título 1") say("") say("Texto") say("Texto") say("Texto") say("Texto") say("") say_reward("Tens a certeza que pretendes trocar o Item pelo Yang?") local s = select("Sim", "Não") if s == 1 then if (pc.count_item(B) >= 1) then pc.remove_item(B) pc.change_money(C) else say("Não tens o item necessário!") return end end if s == 2 then return end end end end A - Nome da Quest B - ID do Item C - Yang a ser dado pelo NPC Dá uma olhada neste link (http://www.elitepvpers.com/forum/metin2-pserver-guides-strategies/1539721-all-quest-functions-over-670-functions.html) que é uma das 2 coisas necessárias para fazer uma quest, a outra é a lógica. Se a quest não der avisa, não toco nisso à anos. 1 KB CRAZY CHANNEL reacted to this Share this post Link to post Share on other sites
KB CRAZY CHANNEL 121 Posted January 14, 2017 10 minutos atrás, Cσяvσ⋆ disse: quest A begin state start begin when 20095.chat."Escolha 1" begin say_title("Título 1") say("") say("Texto") say("Texto") say("Texto") say("Texto") say("") say_reward("Tens a certeza que pretendes trocar o Item pelo Yang?") local s = select("Sim", "Não") if s == 1 then if (pc.count_item(B) >= 1) then pc.remove_item(B) pc.change_money(C) else say("Não tens o item necessário!") return end end if s == 2 then return end end end end A - Nome da Quest B - ID do Item C - Yang a ser dado pelo NPC Dá uma olhada neste link (http://www.elitepvpers.com/forum/metin2-pserver-guides-strategies/1539721-all-quest-functions-over-670-functions.html) que é uma das 2 coisas necessárias para fazer uma quest, a outra é a lógica. Se a quest não der avisa, não toco nisso à anos. Muito obrigado! Estou a acabar o servidor depois irei me focar na criação de QUESTs, obrigado pela dica também ;) Share this post Link to post Share on other sites