Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local combatInfo = createCombatObject()
- setCombatParam(combatInfo, COMBAT_PARAM_EFFECT, 27)
- setCombatParam(combatInfo, COMBAT_PARAM_DISTANCEEFFECT, 1)
- -- local hitExtraTargetsInRange = 5 -- range (spell ragnge = ""
- function onCastSpell(cid, var)
- local target = variantToNumber(var)
- if(target ~= 0 and isPlayer(target)) then -- and isPlayer(target) ??? only player or remove it
- local posTarget = getCreaturePosition(target)
- doCombat(cid, combatInfo, numberToVariant(target))
- addEvent(doAreaCombatHealth, 500, cid, COMBAT_PHYSICALDAMAGE, posTarget, 0, -100, -200, 803)
- end
- return LUA_NO_ERROR
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement