Ola amigos Xtibianos :smile_positivo: vim trazer um script simples que dando USE vc recarrega sua soft ou firewalker boots
Script:
Soft: & Firewalker Boots
function onUse(cid, item) if item.itemid == 10021 then if getPlayerLevel(cid) > 80 then -- Level para poder Recarregar if doPlayerRemoveMoney(cid, 20000) then -- Dinheiro Necessario para Recarregar doRemoveItem(item.uid, 1) doPlayerAddItem(cid, 2640,1) -- Item a ser adicionado doSendMagicEffect(getCreaturePosition(cid), 12) -- Efeito Magico ao Recarregar doPlayerSendTextMessage(cid, 22, "Você renovou sua Soft Boots.") -- Mensagem ao Recarregar else doPlayerSendCancel(cid, "Você nao tem dinheiro suficiente.") -- Mensagem caso o player nao tiver dinheiro end else doPlayerSendCancel(cid, "Você nao tem level suficiente.") -- Mensagem caso o player nao tiver level end end if item.itemid == 10022 then if getPlayerLevel(cid) > 130 then -- Level para poder Recarregar if doPlayerRemoveMoney(cid, 20000) then -- Dinheiro Necessario para Recarregar doRemoveItem(item.uid, 1) doPlayerAddItem(cid, 9932,1) -- Item a ser adicionado doSendMagicEffect(getCreaturePosition(cid), 13) -- Efeito Magico ao Recarregar doPlayerSendTextMessage(cid, 22, "Você renovou sua FireWalker Boots.") -- Mensagem ao Recarregar else doPlayerSendCancel(cid, "Você nao tem dinheiro suficiente.") -- Mensagem caso o player nao tiver Dinheiro end else doPlayerSendCancel(cid, "Você nao tem level suficiente.") -- Mensagem caso o player nao tiver level end end end
Em actions.xml
<action itemid="10021;10022" event="script" value="NomeDoArquivoLua.lua"/>
Topico Arrumado contendo 1 script so com as 2 funções