Postado Março 24, 2015 10 anos Alguem pode me passar um action pra renovar a soft boots dando use nela.
Postado Março 24, 2015 10 anos http://www.tibiaking.com/forum/topic/8523-action-recarregar-soft-e-firewalker-boots
Postado Março 25, 2015 10 anos Autor http://www.tibiaking.com/forum/topic/8523-action-recarregar-soft-e-firewalker-boots nao funcionou...
Postado Março 25, 2015 10 anos Crie um Arquivo Chamado Soft.lua Em Actions/Scriptsfunction onUse(cid, item, fromPosition, itemEx, toPosition) -- Itens configuravéis. local t = {money = 10000, item = 10021, newitem = 2640} if getPlayerItemCount(cid,t.item,1) then if PlayerRemoveMoney(cid,t.money) thendoPlayerRemoveItem(cid,t.item,1)doPlayerAddItem(cid,t.newitem,1)doSendMagicEffect(fromPosition, CONST_ME_POFF)doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You got a brand new pair of soft boots.") elsedoPlayerSendCancel(cid, "Sorry, is not possible.") end elsedoPlayerSendCancel(cid, "Sorry, you need a " .. t.money .. " gold pieces.") end end return true end Crie um Arquivo CHamado firewalker.lua Em Actions/Scripts/otherfunction onUse(cid, item, fromPosition, itemEx, toPosition)local moneyneed = 20000 -- price to get new fire bootslocal playermoney = getPlayerMoney(cid)if playermoney >= moneyneed thenif doPlayerTakeItem(cid, 10022, 1) thendoRemoveItem(item.uid,1)doPlayerAddItem(cid, 9933, 1)doPlayerRemoveMoney(cid, moneyneed)doSendMagicEffect(fromPosition,12)elsedoPlayerSendTextMessage(cid,20, "You don't have worn firewalker boots.")endelsedoPlayerSendTextMessage(cid,20, "Sorry, but you need ".. moneyneed .." gold coins to get a new firewalker boots.")endendEm Actions .XML Coloque AS Linhas<action itemid="10021" script="other/soft.lua" /><action itemid="10022" script="other/firewalker.lua"/> credito leandrovpAjudei? REP + site acesse:http://rexwar.esy.es se te ajudei mi ajude com um like canal do youtube:https://www.youtube.com/channel/ blog:http://yakinhotutoriais.blogspot.com.br/ site acesse:http://rexwar.esy.es 0 comentários:
Postado Março 25, 2015 10 anos Autor Crie um Arquivo Chamado Soft.lua Em Actions/Scripts function onUse(cid, item, fromPosition, itemEx, toPosition) -- Itens configuravéis. local t = {money = 10000, item = 10021, newitem = 2640} if getPlayerItemCount(cid,t.item,1) then if PlayerRemoveMoney(cid,t.money) then doPlayerRemoveItem(cid,t.item,1) doPlayerAddItem(cid,t.newitem,1) doSendMagicEffect(fromPosition, CONST_ME_POFF) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You got a brand new pair of soft boots.") else doPlayerSendCancel(cid, "Sorry, is not possible.") end else doPlayerSendCancel(cid, "Sorry, you need a " .. t.money .. " gold pieces.") end end return true end Crie um Arquivo CHamado firewalker.lua Em Actions/Scripts/other function onUse(cid, item, fromPosition, itemEx, toPosition) local moneyneed = 20000 -- price to get new fire boots local playermoney = getPlayerMoney(cid) if playermoney >= moneyneed then if doPlayerTakeItem(cid, 10022, 1) then doRemoveItem(item.uid,1) doPlayerAddItem(cid, 9933, 1) doPlayerRemoveMoney(cid, moneyneed) doSendMagicEffect(fromPosition,12) else doPlayerSendTextMessage(cid,20, "You don't have worn firewalker boots.") end else doPlayerSendTextMessage(cid,20, "Sorry, but you need ".. moneyneed .." gold coins to get a new firewalker boots.") end end Em Actions .XML Coloque AS Linhas <action itemid="10021" script="other/soft.lua" /> <action itemid="10022" script="other/firewalker.lua"/> credito leandrovp Ajudei? REP + Nao funcionou brother =S
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.