data/spells/scripts/create a new lua called: sky fury
data/spells/spells xml
PHP:
local area = createCombatArea(AREA_SQUARE1X1)
function onCastSpell(cid, var)
local target = getCreatureTarget(cid)
doSendDistanceShoot(getCreaturePosition(cid),{x = getCreaturePosition(cid).x - math.random(4,6), y = getCreaturePosition(cid).y - 5, z = getCreaturePosition(cid).z},CONST_ANI_FLAMMINGARROW)
for x = 1, 10 do
addEvent(furyAttackTarget,200*x+500,cid,target,{x = getCreaturePosition(target).x + math.random(-1,1), y = getCreaturePosition(target).y + math.random(-1,1), z = getCreaturePosition(target).z})
end
end
function furyAttackTarget(cid,target,pos)
if isCreature(cid) == TRUE and isCreature(target) == TRUE then
doSendDistanceShoot({x = getCreaturePosition(target).x - math.random(4,6), y = getCreaturePosition(target).y - 5, z = getCreaturePosition(target).z},pos,CONST_ANI_FIRE)
doAreaCombatHealth(cid,COMBAT_FIREDAMAGE,pos,area,(-(getPlayerLevel(cid)*getPlayerMagLevel(cid))/5)+50,(-(getPlayerLevel(cid)*getPlayerMagLevel(cid))/5)-50,CONST_ME_HITBYFIRE)
end
data/spells/spells xml
PHP:
<instant name="Sky Fury" words="exevo flam tempest" lvl="50" manapercent="70" prem="0" range="5" nedtarget="1" blockwalls="1" exhaustion="2000" needlearn="0" script="Sky Fury.lua"><vocation name="Paladin"/><vocation name="Royal Paladin"/></instant>