Postado Dezembro 18, 2014 10 anos Opa, queria uma wand que trocasse de elemento no !wand, que funcione em tfs 1.0 que pesquisei bastante, e não encontrei alguma compativel. Grato desde já.
Postado Dezembro 18, 2014 10 anos Tipo, então vc qr um script que ao dizer: !wand o script transforme o item (wand1) no item (wand2) certo? 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
Postado Dezembro 18, 2014 10 anos Tipo, então vc qr um script que ao dizer: !wand o script transforme o item (wand1) no item (wand2) certo? não jovem, ele quer aquele que diz: !wand holy, !wand death etc só que pro TFS 1.0
Postado Dezembro 18, 2014 10 anos Autor não jovem, ele quer aquele que diz: !wand holy, !wand death etc só que pro TFS 1.0 exato, é isso que quero.
Postado Dezembro 18, 2014 10 anos Amigo, não testei, testa ae: Va na pasta data/talkactions e adicione essa tag ao arquivo talkactions.xml: <talkaction log="yes" words="/wand;!wand" event="script" value="wands.lua"/> Agora va na pasta data/talkactions/scripts e crie um arquivo chamado wands.lua e coloque isso dentro: 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 end return true end Editado Dezembro 18, 2014 10 anos por danihcv (veja o histórico de edições) 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.