fredde3436
Member
- Joined
- Jul 6, 2009
- Messages
- 226
- Reaction score
- 7
How do i add 10 minutes exhust to just a specific spell?
function onCastSpell(cid, var)
if not exhaustion.check(cid, 9001) then
exhaustion.set(cid, 9001, 5 * 60)
return doCombat(cid, combat, var)
else
return not doPlayerSendCancel(cid, 'You are exhausted.')
end
end
use exhaust.set(cid, storage, time) and exhaust.check(cid, storage)
LUA:function onCastSpell(cid, var) if not exhaust.check(cid, 9001) then exhaust.set(cid, 9001, 5 * 60) return doComabt(cid, combat, var) else return not doPlayerSendCancel(cid, 'You are exhausted.') end end
If i remember correctly...
The 5 stand for minutes and 60 stand for seconds?![]()