Tiago Gomes 3 Posted July 30, 2014 Poderia fazer uma quest que da item por gold por exemplo um npc que te pede dinheiro e da-te um item Share this post Link to post Share on other sites
.тιαgσ 624 Posted July 30, 2014 If pc.count_item(333) thenpc.remove_item(333, 1)pc.change_gold(500000)Provalvelmente é isto que queres, se tiver erros é normal, fiz no tablet kkk Share this post Link to post Share on other sites
Cσяvσ⋆ 1,804 Posted July 30, 2014 #Edit Apaguem este post que escrevi. Share this post Link to post Share on other sites
Tiago Gomes 3 Posted July 30, 2014 Podes por a quest completa sff Share this post Link to post Share on other sites
.тιαgσ 624 Posted July 30, 2014 É dificil tou num tablet e ia dar xD Share this post Link to post Share on other sites
Cσяvσ⋆ 1,804 Posted July 30, 2014 Podes por a quest completa sff quest nomedaquest begin state start begin when IDdeUmNPC.chat."blabla yang por bla bla item" begin say_title("blabla yang por bla bla item") say("") say("Texto") say("Texto") say("Texto") say("Texto") say("") say_reward("Tens a certeza que pretendes trocar o Yang pelo Item?") local s = select("Sim", "Não") if s == 1 then pc.change_money(-yangquequeres) pc.give_item(IDdoitem) end if s == 2 then return end end endend Testa Share this post Link to post Share on other sites
.тιαgσ 624 Posted July 30, 2014 quest nomedaquest begin state start begin when IDdeUmNPC.chat."blabla yang por bla bla item" begin say_title("blabla yang por bla bla item") say("") say("Texto") say("Texto") say("Texto") say("Texto") say("") say_reward("Tens a certeza que pretendes trocar o Yang pelo Item?") local s = select("Sim", "Não") if s == 1 then pc.change_money(-yangquequeres) pc.give_item(IDdoitem) end if s == 2 then return end end endend Testa Corvo ele quer que se tiver um item o retire e lhe de gold Edit: Fail pensei que fosse como fiz kkkkkk, usa a do corvo Share this post Link to post Share on other sites
Tiago Gomes 3 Posted July 30, 2014 tira o gold mas nao da o item Share this post Link to post Share on other sites
Cσяvσ⋆ 1,804 Posted July 30, 2014 tira o gold mas nao da o item quest nomedaquest begin state start begin when IDdeUmNPC.chat."blabla yang por bla bla item" begin say_title("blabla yang por bla bla item") say("") say("Texto") say("Texto") say("Texto") say("Texto") say("") say_reward("Tens a certeza que pretendes trocar o Yang pelo Item?") local s = select("Sim", "Não") if s == 1 then pc.change_money(-yangquequeres) pc.give_item2(IDdoitem) end if s == 2 then return end end endend Agora já deve dar. Share this post Link to post Share on other sites
Tiago Gomes 3 Posted July 30, 2014 Obrigado resulta perfeitamente Share this post Link to post Share on other sites
Cσяvσ⋆ 1,804 Posted July 30, 2014 Obrigado resulta perfeitamente De nada, marca a minha ultima mensagem (com a quest a funcionar) como "Resolvido". #Resolvido #CloseRequest Share this post Link to post Share on other sites
Tiago Gomes 3 Posted July 30, 2014 espera lá isto trabalha perfectamente mas mesmo que nao tenhas o dinheiro ele da-te o item Share this post Link to post Share on other sites
Cσяvσ⋆ 1,804 Posted July 30, 2014 espera lá isto trabalha perfectamente mas mesmo que nao tenhas o dinheiro ele da-te o item quest nomedaquest begin state start begin when IDdeUmNPC.chat."blabla yang por bla bla item" begin say_title("blabla yang por bla bla item") say("") say("Texto") say("Texto") say("Texto") say("Texto") say("") say_reward("Tens a certeza que pretendes trocar o Yang pelo Item?") local s = select("Sim", "Não") if s == 1 and pc.get_gold()>=yangquequeres then pc.change_money(-yangquequeres) pc.give_item2(IDdoitem) elseif s == 1 and pc.get_gold()<=yangquequeres then say_title("blabla yang por bla bla item") say("") say("Não tens yang suficiente para a compra") say("Volta quando tiveres yang suficiente.") end if s == 2 then return end end endend Share this post Link to post Share on other sites
Epsilon 114 Posted July 30, 2014 Poderia fazer uma quest que da item por gold por exemplo um npc que te pede dinheiro e da-te um item Chama-se loja amigo, já existe desde sempre no metin LAWL. Share this post Link to post Share on other sites
Cσяvσ⋆ 1,804 Posted July 30, 2014 Chama-se loja amigo, já existe desde sempre no metin LAWL. Ele pode precisar dela para uma quest mais completa, assim fica de vez :D Share this post Link to post Share on other sites