• 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!

Help

pakito markinho

New Member
Joined
Jun 4, 2009
Messages
10
Reaction score
0
Hello!
I need a script to add a type of exausted for a while,
but the player can use other spell , a second type exasted




Ex:
exevo gran mas vis

doPlayerSendCancel(cid, "you need 15 minutes to run this spell.")


Equant is more the 15 minutes he can use other spells

Excuse the bad English :(
 
Last edited:
in the spell script (rage of the skies.lua)
Change:
Lua:
function onCastSpell(cid, var)
	return doCombat(cid, combat, var)
end

To
Lua:
function onCastSpell(cid, var)
local exStorage = 65535 --storage for exhaust
local time = 15 --in minutes

	if((os.time() - getPlayerStorageValue(cid, exStorage)) > time*60*1000) then
		doCombat(cid, combat, var)
		setPlayerStorageValue(cid, exStorage, 1)
		return TRUE
	else
		doPlayerSendCancel(cid, "You need to wait " .. time .. " minutes to use this spell again.")
		return FALSE
	end
end
 
Last edited:
Back
Top