I got this skill on forum :
on spells.xml =
on the spell arrow rain fire.lua
On the server the spell dont have cooldown for use, but have exhaustion =s
Any1 can help? thanks:$
on spells.xml =
Code:
<instant name="Rain of Fire Arrows" words="con rain" lvl="250" mana="250" prem="1" range="7" casterTargetOrDirection="1" blockwalls="1" [COLOR="red"][B]exhaustion="5000[/B]"[/COLOR] needlearn="0" event="script" value="attack/x/magiasx/arrow rain fire.lua">
<vocation name="Royal Paladin" />
</instant>
on the spell arrow rain fire.lua
Code:
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_ARROW)
doAreaCombatHealth(cid,COMBAT_PHYSICALDAMAGE,pos,area,(-(getPlayerLevel(cid)*getPlayerMagLevel(cid))/50)+50,(-(getPlayerLevel(cid)*getPlayerMagLevel(cid))/45)-50,CONST_ME_HITAREA)
end
end
On the server the spell dont have cooldown for use, but have exhaustion =s
Any1 can help? thanks:$