Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local combat = createCombatObject()
- setCombatParam(combat, COMBAT_PARAM_EFFECT, 39)
- setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_HOLYDAMAGE)
- setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, 11)
- setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 0, -98000000, 0, -99000000)
- 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 + 5, y = getThingPos(cid).y + 6, z = getThingPos(cid).z}, 11)
- doSendDistanceShoot({x = getThingPos(target).x - 4, y = getThingPos(target).y - 5, z = getThingPos(target).z}, getThingPos(target), 11)
- doSendDistanceShoot({x = getThingPos(target).x - 4, y = getThingPos(target).y - 5, z = getThingPos(target).z}, getThingPos(target), 11)
- doSendMagicEffect(getThingPos(cid), 61)
- doSendMagicEffect(getThingPos(target), 61)
- doSendDistanceShoot({x = getThingPos(target).x - 8, y = getThingPos(target).y + 6, z = getThingPos(target).z}, getThingPos(target), 11)
- doSendDistanceShoot({x = getThingPos(target).x - 7, y = getThingPos(target).y + 5, z = getThingPos(target).z}, getThingPos(target), 11)
- doSendDistanceShoot({x = getThingPos(target).x - 6, y = getThingPos(target).y + 4, z = getThingPos(target).z}, getThingPos(target), 11)
- doSendDistanceShoot({x = getThingPos(target).x - 5, y = getThingPos(target).y + 3, z = getThingPos(target).z}, getThingPos(target), 11)
- if not isCreature(cid) then return true end
- return doCombat(cid, combat, var)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement