tiag0_bn
Well-Known Member
- Joined
- Dec 8, 2011
- Messages
- 181
- Reaction score
- 50
Hello, i would like to put a function in my exeta res.
1 -> when exeta res the monster does not run away (low life) and does not change the target for the next 5 seconds.
1 -> when exeta res the monster does not run away (low life) and does not change the target for the next 5 seconds.
Lua:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_RED)
local area = createCombatArea(AREA_SQUARE1X1)
setCombatArea(combat, area)
function onTarget(cid, target) return doChallengeCreature(cid, target) end
setCombatCallback(combat, CALLBACK_PARAM_TARGETCREATURE, "onTarget")
function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end
Last edited: