Postado Dezembro 18, 2014 10 anos Autor Tenta agora: local wand1 = 18390 --ID da wand de Energy local wand2 = 18409 --ID do item de Fire local wand3 = 8922 --ID do item de Death function onSay(cid, words, param, item, item2) if (getPlayerItemCount(cid, wand1) ~= 0) or (getPlayerItemCount(cid, wand2) ~= 0) or (getPlayerItemCount(cid, wand3) ~= 0) then if(param == "energy") then if getPlayerItemCount(wand2) ~= 0 doPlayerRemoveItem(cid, wand2, 1) doPlayerAddItem(cid, wand1, 1) else getPlayerItemCount(wand3) ~= 0 doPlayerRemoveItem(cid, wand3, 1) doPlayerAddItem(cid, wand1, 1) end elseif (param == "fire") then if getPlayerItemCount(wand1) ~= 0 doPlayerRemoveItem(cid, wand1, 1) doPlayerAddItem(cid, wand2, 1) else getPlayerItemCount(wand3) ~= 0 doPlayerRemoveItem(cid, wand3, 1) doPlayerAddItem(cid, wand2, 1) end else (param == "death") then if getPlayerItemCount(wand1) ~= 0 doPlayerRemoveItem(cid, wand1, 1) doPlayerAddItem(cid, wand3, 1) else getPlayerItemCount(wand2) ~= 0 doPlayerRemoveItem(cid, wand2, 1) doPlayerAddItem(cid, wand3, 1) end end else doPlayerSendCancel(cid, "Desculpe, voce precisa ter uma das wands especificas.") end return true end Obs: Vc precisa ter uma das seguintes wands pra poder usar o comando: Wand of Everblazing Wand of Defiance Wand of Voodoo Não tipo, a ideia é 1 wand só, e ela muda seus elementos, saca?
Postado Dezembro 18, 2014 10 anos Claro que não vai funcionar, não tem quase nenhnuma dessas funções no tfs 1.0 meu jovem doPlayerRemoveItem(cid, wand1, 1) doPlayerAddItem(cid, wand2, 1) else getPlayerItemCount(wand3) ~= 0 vocês viajam Editado Dezembro 18, 2014 10 anos por Feart (veja o histórico de edições)
Postado Dezembro 18, 2014 10 anos Claro que não vai funcionar, não tem quase nenhnuma dessas funções no tfs 1.0 meu jovem doPlayerRemoveItem(cid, wand1, 1) doPlayerAddItem(cid, wand2, 1) else getPlayerItemCount(wand3) ~= 0 vocês viajam Na verdade, essas funções que você citou existem sim no TFS 1.0. Veja algumas delas nesse tópico: Lua Functions [TFS 1.0]. The corrupt fear us. The honest support us. The heroic join us.
Postado Dezembro 19, 2014 10 anos @falling, tenta usar o do link que o suicide postou: http://www.tibiaking.com/forum/topic/16187-wand-muda-de-efeito/ Te ajudei?? REP + e ficamos quites... http://www.tibiaking.com/forum/uploads/emoticons/default_happyy.png' alt=';D'> Atenciosamente, Daniel. Abraços! Meus tutoriais: Programação: Resolvendo QUALQUER erro na data base. Scripts (system's, creaturescripts, mod's, NPC's, etc): (Sistema) GOD Ambient Light Full. Adicionando novas mounts ao servidor [NPC] Papai Noel que dá presente todo ano. Web-site: Resolvendo problema de caracteres especiais em PHP Formatando textos em PHP! Mudando a cor, tamanho, fonte, etc. Criando e configurando tabelas para paginas PHP
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.