Postado Julho 6, 2014 11 anos Bom primeiramente boa noite! Se alguém puder fazer essa talkaction eu agradeço! (servidor é 8.54) Se já existir desculpe eu pesquisei e não achei! Ela é assim O Player teria que ter 10 items no caso esses ids (11534/11535/11536/11537/11538/11539/11540/11541/11542/11543) ao usar o comando !akatsuki o player perderia esses items! e ganharia os seguintes items (12681/12682/12683/12684/12685/12686/12687/12688/12689/12690) Obrigado! Editado Julho 6, 2014 11 anos por Kuuhaku (veja o histórico de edições) "Não importa o quanto tente, você sozinho não pode mudar o mundo. Mas este é o lado bonito do mundo."
Postado Julho 6, 2014 11 anos Solução Sou péssimo em fazer scripts pequenos, mas, quero ajudar.. talkactions.xml <talkaction words="!akatsuki" event="script" value="akatsuki.lua"/> akatsuki.lua function onSay(cid) local ter1 = 11534 local ter2 = 11535 local ter3 = 11536 local ter4 = 11537 local ter5 = 11538 local ter6 = 11539 local ter7 = 11540 local ter8 = 11541 local ter9 = 11542 local ter10 = 11543 local receber1 = 12681 local receber2 = 12682 local receber3 = 12683 local receber4 = 12684 local receber5 = 12685 local receber6 = 12686 local receber7 = 12687 local receber8 = 12688 local receber9 = 12689 local receber10 = 12690 if getPlayerItemCount(cid, ter1) >0 and getPlayerItemCount(cid, ter2) >0 and getPlayerItemCount(cid, ter3) >0 and getPlayerItemCount(cid, ter4) >0 and getPlayerItemCount(cid, ter5) >0 and getPlayerItemCount(cid, ter6) >0 and getPlayerItemCount(cid, ter7) >0 and getPlayerItemCount(cid, ter8) >0 and getPlayerItemCount(cid, ter9) >0 and getPlayerItemCount(cid, ter10) >0 then doPlayerRemoveItem(cid, ter1, 1) doPlayerRemoveItem(cid, ter2, 1) doPlayerRemoveItem(cid, ter3, 1) doPlayerRemoveItem(cid, ter4, 1) doPlayerRemoveItem(cid, ter5, 1) doPlayerRemoveItem(cid, ter6, 1) doPlayerRemoveItem(cid, ter7, 1) doPlayerRemoveItem(cid, ter8, 1) doPlayerRemoveItem(cid, ter9, 1) doPlayerRemoveItem(cid, ter10, 1) doPlayerAddItem(cid, receber1, 1) doPlayerAddItem(cid, receber2, 1) doPlayerAddItem(cid, receber3, 1) doPlayerAddItem(cid, receber4, 1) doPlayerAddItem(cid, receber5, 1) doPlayerAddItem(cid, receber6, 1) doPlayerAddItem(cid, receber7, 1) doPlayerAddItem(cid, receber8, 1) doPlayerAddItem(cid, receber9, 1) doPlayerAddItem(cid, receber10, 1) else doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Você não tem todos os itens necessários") end return TRUE end Editado Julho 6, 2014 11 anos por Rusherzin (veja o histórico de edições) Ajudei? De nada \o/ Att Rusherzin
Postado Julho 6, 2014 11 anos Autor Funcionou muito obrigado! Editado Julho 6, 2014 11 anos por Kuuhaku (veja o histórico de edições) "Não importa o quanto tente, você sozinho não pode mudar o mundo. Mas este é o lado bonito do mundo."
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.