• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Adding exhust to just a specific spell

use exhaustion.set(cid, storage, time) and exhaustion.check(cid, storage)

Lua:
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
 
Last edited:
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? :p
 
Back
Top