As the title says, when I try to put exaust in heal magic it gets an error on the console. The error starts when I reload the spells. TFS 0.4 rev 3884
I searched on the internet and found a similar problem, which was related to the 'agressive' parameter of the spells. But I tested in Magic Shield, that the 'agressive' parameter is also false as heal, and it worked fine, so I do not think the problem is related to that.
Here is the script:
Error:
Sorry for my translated english and thanks in advance.
I searched on the internet and found a similar problem, which was related to the 'agressive' parameter of the spells. But I tested in Magic Shield, that the 'agressive' parameter is also false as heal, and it worked fine, so I do not think the problem is related to that.
Here is the script:
Lua:
~ normal parameters of a healing magic ~
function onCastSpell(cid, var)
if exhaustion.check(cid, 120021) == false then
exhaustion.set(cid, 120021, 2)
doSendMagicEffect(getThingPosition(cid), CONST_ME_MAGIC_GREEN)
else
doPlayerSendCancel(cid, "Wait "..exhaustion.get(cid, 120021).." second(s) to use this spell again.")
return false
end
doCombat(cid, combat, var)
return true
end
Error:
Sorry for my translated english and thanks in advance.