why my script isn't working i can attack but is not healing me the health i drain
why?
PHP:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_LIFEDRAIN)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -0.07, 0, -0.27, 0)
function onUseWeapon(cid, var)
return doCombat(cid, combat, var)
end
why?