local RemoveOnUse,storage,exausted = true,98762,60 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 doCreatureAddHealth(cid, getCreatureMaxHealth(cid)) doCreatureAddMana(cid, getCreatureMaxMana(cid)) doSendMagicEffect(getCreaturePosition(cid), 12) doCreatureSay(cid, "Ahhh!", 19) setPlayerStorageValue(cid, storage, os.time()+exausted) if RemoveOnUse == true then doRemoveItem(item.uid, 1) end return TRUE end
coloquei 60 segundos ![]()








info
Group: Barão
Joined: 12/09/10
Posts: 249
Reputation: +53
Pessoal, como coloco exausted nessa potion:
Eu queria colocar exausted de 1 segundo, mas sem ser pelo config.lua, para não interferir nos outros potions. Obrigado.