Ir para conteúdo

[Problema]Sky Fury Cura Os Monstros


felzan

Posts Recomendados

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>

Editado por felzan
Link para o comentário
Compartilhar em outros sites

Me mostra sua tag do spells.xml

Edit--

 

Tente com essa tag:

<instant name="Sky Fury" words="meteoros" lvl="30" manapercent="7" prem="0" range="5" casterTargetOrDirection="1" needtarget="1" blockwalls="1" exhaustion="2000" needlearn="0" agressive="1" script="Sky Fury.lua">
<vocation id="4"/>
<vocation id="5"/>
</instant>

Editado por Dragonlordez
Link para o comentário
Compartilhar em outros sites

Visitante
Este tópico está impedido de receber novos posts.
×
×
  • Criar Novo...