Maten
New Member
- Joined
- Mar 16, 2009
- Messages
- 219
- Reaction score
- 2
this is what i have in my ultimate healing rune.lua
So why am i getting this error?
(this dose not happend when UH is on hotkey)
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false)
setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, true)
function onCastSpell(cid, var)
if doCombat(cid, combat, var) then
doCreatureAddHealth(variantToNumber(var), math.random(900,1000))
end
end
So why am i getting this error?
Code:
[Error - Spell Interface]
data/spells/scripts/healing/ultimate healing rune.lua:onCastSpell
Description:
(luaDoCreatureAddHealth) Creature not found
(this dose not happend when UH is on hotkey)