Prontoo arrumei o que tava fazenu n gasta mana nem da exausted, eu colokei um return true no nos 2 primeiros end e return doCombat(cid, combat, var) no final, antes de um enter: olha como fiko(obs esse aki ta como danu de holy)
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_SMALLHOLY)
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
return true
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_HOLY)
doAreaCombatHealth(cid,COMBAT_HOLYDAMAGE,pos,area,(-(getPlayerLevel(cid)*getPlayerMagLevel(cid))/20)+50,(-(getPlayerLevel(cid)*getPlayerMagLevel(cid))/5)-50,CONST_ME_HOLYDAMAGE)
end
return doCombat(cid, combat, var)
end
prontimm
Mtuu boa a spell kra.. é, concerteza vc tem futuro =D
bem.. vc ta com o bixo selecionado? é igual a magias como ecori mort(foi o melhor q axei pra compara) vc tem que ta atakanu o bixo pra ele i nele =D
vo tenta faze uma de holy aki, pra paly eu axo q fikaria loko =D
meus parabens kra =D
é.. consegui aki so mudei os danos e efeitos pq n entendo nada de spells.. intaum vai =D
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_SMALLHOLY)
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_HOLY)
doAreaCombatHealth(cid,COMBAT_HOLYDAMAGE,pos,area,(-(getPlayerLevel(cid)*getPlayerMagLevel(cid))/5)+50,(-(getPlayerLevel(cid)*getPlayerMagLevel(cid))/5)-50,CONST_ME_HOLYDAMAGE)
end
end
Bem.. axo q n precisa de creditos... mas vamu la ne =P
100% pro Belianmort
So botei com holy pq axo q combina com paly xD vlw aew kra^^