Ir para conteúdo

Featured Replies

Postado
13 minutos atrás, leozincorsair disse:

+ REP , obrigado cara valeu mesmo!!!!

So que apareceu esse erro na distro :

 

err.png

 

Esqueci de remover uma coisinha rs 

 


local RemoveOnUse,storage,exausted = true,97777,30

function onUse(cid, item, fromPosition, itemEx, toPosition) 
    if getPlayerStorageValue(cid, storage) >= os.time() then
    return doPlayerSendCancel(cid, "wait " .. getPlayerStorageValue(cid, storage) - os.time() .. " seconds to use this item again.") end
    if(not isPlayer(itemEx.uid)) then
        return FALSE
    end
    doCreatureAddMana(itemEx.uid, (getCreatureMaxMana(itemEx.uid)))
    doCreatureAddHealth(itemEx.uid, (getCreatureMaxHealth(itemEx.uid)))
    doSendMagicEffect(getThingPos(itemEx.uid), 5)
    doCreatureSay(itemEx.uid, "I feel powerful!", TALKTYPE_ORANGE_1) 
    setPlayerStorageValue(cid, storage, os.time()+exausted) 
    if RemoveOnUse == true then
        doRemoveItem(item.uid, 1)
    end
    return TRUE 
end

  • Respostas 5
  • Visualizações 543
  • Created
  • Última resposta

Top Posters In This Topic

Most Popular Posts

  • Esta é uma mensagem automática! Este tópico foi movido para a área correta. Pedimos que você leia as regras do fórum.  

  • local RemoveOnUse,storage,exausted = true,97777,30 function onUse(cid, item, fromPosition, itemEx, toPosition)  if getPlayerStorageValue(cid, storage) >= os.time() then return doPlayerSendCancel(c

Posted Images

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Conteúdo Similar

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.6k

Informação Importante

Confirmação de Termo