Resolvido
o problema era apenas um sinal de mais ou menos, vlws
gostaria de saber como boto pra somente atacar os monstros, poic assim ele tb cura.
local area = createCombatArea(AREA_SQUARE1X1) function onCastSpell(cid, var) local target = getCreatureTarget(cid) doSendDistanceShoot(getCreaturePosition(cid),{x = getCreaturePosition(cid).x - math.random(1,2), y = getCreaturePosition(cid).y - 2, z = getCreaturePosition(cid).z},CONST_ANI_FIRE) for x = 30, 100 do addEvent(furyAttackTarget,20*x+500,cid,target,{x = getCreaturePosition(target).x + math.random(-2,2), y = getCreaturePosition(target).y + math.random(-2,2), 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(10,10), y = getCreaturePosition(target).y - 2, z = getCreaturePosition(target).z},pos,CONST_ANI_FIRE) doAreaCombatHeath(cid,COMBAT_FIREDAMAGE,pos,area,((getPlayerLevel(cid)*getPlayerMagLevel(cid))*4)+70,CONST_ME_FIREHIT) end end
tag no spells.xml
<instant name="Sky Fury" words="meteoros" lvl="30" manapercent="7" prem="0" range="5" casterTargetOrDirection="1" nedtarget="1" blockwalls="1" exhaustion="2000" needlearn="0" script="Sky Fury.lua"> <vocation id="4"/> <vocation id="5"/> </instant>