Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local combat = createCombatObject()
- setCombatParam(combat, COMBAT_PARAM_EFFECT, 2)
- setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE)
- setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, 9)
- setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 0, -23900000, 0, -26900000)
- local area = createCombatArea({
- {0, 1, 1, 1, 0,},
- {0, 1, 3, 1, 0,},
- {0, 1, 1, 1, 0,}
- })
- setCombatArea(combat, area)
- function onUseWeapon(cid, var)
- target = getCreatureTarget(cid)
- doSendDistanceShoot(getThingPos(cid), {x = getThingPos(cid).x - 1, y = getThingPos(cid).y - 2, z = getThingPos(cid).z}, 2)
- doSendDistanceShoot({x = getThingPos(target).x - 11, y = getThingPos(target).y - 5, z = getThingPos(target).z}, getThingPos(target), 2)
- doSendDistanceShoot({x = getThingPos(target).x - 12, y = getThingPos(target).y - 5, z = getThingPos(target).z}, getThingPos(target), 2)
- doSendMagicEffect(getThingPos(cid), 49)
- doSendMagicEffect(getThingPos(target), 28)
- doSendDistanceShoot({x = getThingPos(target).x - 13, y = getThingPos(target).y - 2, z = getThingPos(target).z}, getThingPos(target), 2)
- doSendDistanceShoot({x = getThingPos(target).x - 4, y = getThingPos(target).y + 11, z = getThingPos(target).z}, getThingPos(target), 2)
- doSendDistanceShoot({x = getThingPos(target).x + 14, y = getThingPos(target).y + 5, z = getThingPos(target).z}, getThingPos(target), 2)
- doSendDistanceShoot({x = getThingPos(target).x + 2, y = getThingPos(target).y - 3, z = getThingPos(target).z}, getThingPos(target), 2)
- if not isCreature(cid) then return true end
- return doCombat(cid, combat, var)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement