KB CRAZY CHANNEL 121 Posted January 18, 2017 Boas, alguém me pode dar uma base de um npc com 4 escolhas possíveis de item a receber? Share this post Link to post Share on other sites
0 Cσяvσ⋆ 1,804 Posted January 18, 2017 Explica-te melhor com um exemplo ou assim, e btw... é tudo à base daquilo que já pediste com um bocadinho de lógica. Share this post Link to post Share on other sites
0 KB CRAZY CHANNEL 121 Posted January 18, 2017 Exemplo das linhas de cod que sei kkk: say_title("Anel:") say("Olá António!") say("Tenho 4 tipos de vacas, podes escolher apenas 1"!) Vaca verde pc.give_item2(vnum, 1) Vaca Amarela pc.give_item2(vnum, 1) Vaca Rosa pc.give_item2(vnum, 1) Vaca Roxa pc.give_item2(vnum, 1) Share this post Link to post Share on other sites
0 Cσяvσ⋆ 1,804 Posted January 18, 2017 quest A begin state start begin when B.chat begin say_title("Recompensa do joaquim") say("") say("") say("") say_reward("Que item quer então?") local s = select("1", "2", "3", "4", "Cancelar") if s == 1 then pc.give_item2(C, 1) elseif s == 2 then pc.give_item2(C, 1) elseif s == 3 then pc.give_item2(C, 1) elseif s == 4 then pc.give_item2(C, 1) else return end end end end A - Nome da Quest B - ID do NPC C - ID dos Items Share this post Link to post Share on other sites
Boas, alguém me pode dar uma base de um npc com 4 escolhas possíveis de item a receber?
Share this post
Link to post
Share on other sites