FE

[Problema]Sky Fury Cura Os Monstros

Por felzan, 18 de abr. de 2010 em Archived

script
5
1.1k
felzanF
18 de abril de 2010 às 01:13

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 Abril 19 por felzan

dragonlordeD
18 de abril de 2010 às 01:30

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 Abril 18 por Dragonlordez

felzanF
18 de abril de 2010 às 20:09

Cara ainda tem o problema, ele cura os MODs

:(

MOD=monstro

Editado Abril 18 por felzan

dragonlordeD
18 de abril de 2010 às 20:14

Que MOD?

LorDzL
19 de abril de 2010 às 15:37

- Membro Dragonlordez recebe +1 de reputação por sanar dúvida.

 

Abraços