Ok ive seen this requested enough so here you go. This is just an example using the spell "Light healing" so take from this and apply to all your spells.
You need to change 23000 to another storage value for each spell, each spell needs a different value. 100 is the time of cooldown. Thats all you need to know basically.
Lua:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_HEALING)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false)
setCombatParam(combat, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)
setHealingFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 5, 5, 1.5, 2)
function onCastSpell(cid, var)
if exhaustion.check(cid, 23000) == false then
exhaustion.set(cid, 23000, 100)
return doCombat(cid, combat, var)
else
doPlayerSendCancel(cid, "Cooldown[" ..exhaustion.get(cid, 23000).."]")
end
end
You need to change 23000 to another storage value for each spell, each spell needs a different value. 100 is the time of cooldown. Thats all you need to know basically.