You need new Lua functions to set the clientsided cooldown too, I guess.
Well, not sure if TFS is going to be compatible then!
now spell have only 1 group, in global can have 2
and there is no own cooldown in tfs(possible to do but not hardcoded yet)
and there is no function to send cooldown to client to show that icons with bars
we can use CONDITION_REGENERATION for it :get the formula and I can code everything excluding recovers(or even with them, but I have no idea how to code them without addEvent, probably new condition?)
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)
local condition = createConditionObject(CONDITION_REGENERATION)
setConditionParam(condition, CONDITION_PARAM_TICKS, 60000)
setConditionParam(condition, CONDITION_PARAM_HEALTHGAIN, 20)
setConditionParam(condition, CONDITION_PARAM_HEALTHTICKS, 3000)
setCombatCondition(combat, condition)
function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end
i made it for my 8.54 server however the formula isn't correct i used my own formula because 8.54 has no cooldown.
Make Spells PLX :X