Bem vi a magia sky fury aqui e resolvi por no meu ot porem ela não gasta mana e nem tem exhaust eu tento arrumar mas não da
aqui ela:
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
return doCombat(cid, combat, var)
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_FIRE)
doAreaCombatHealth(cid,COMBAT_FIREDAMAGE,pos,area,(-(getPlayerLevel(cid)*getPlayerMagLevel(cid))/5)+50,(-(getPlayerLevel(cid)*getPlayerMagLevel(cid))/5)-50,CONST_ME_HITBYFIRE)
end
return doCombat(cid, combat, var)
end
eo que aparece no executavel do ot:
[23/04/2010 00:09:52] [Error - Spell Interface]
[23/04/2010 00:09:52] In a timer event called from:
[23/04/2010 00:09:52] data/spells/scripts/attack/sky fury.lua:onCastSpell
[23/04/2010 00:09:52] Description:
[23/04/2010 00:09:52] attempt to index a nil value
[23/04/2010 00:09:52] stack traceback:
[23/04/2010 00:09:52] [C]: in function 'doCombat'
[23/04/2010 00:09:52] data/spells/scripts/attack/sky fury.lua:26: in function <data/spells/scripts/attack/sky fury.lua:17>
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_FIRE)
doAreaCombatHealth(cid,COMBAT_FIREDAMAGE,pos,area,(-(getPlayerLevel(cid)*getPlayerMagLevel(cid))/5)+50,(-(getPlayerLevel(cid)*getPlayerMagLevel(cid))/5)-50,CONST_ME_HITBYFIRE)
end
end
Valeu cara ta aew o post
Eu ja tava procurando vi o bug e retirei
Gratz


info
Grupo: Artesão
Registrado: 12/09/09
Posts: 115
Reputação: +12
Bem vi a magia sky fury aqui e resolvi por no meu ot porem ela não gasta mana e nem tem exhaust eu tento arrumar mas não da
aqui ela:
eo que aparece no executavel do ot:
[23/04/2010 00:09:52] [Error - Spell Interface]
[23/04/2010 00:09:52] In a timer event called from:
[23/04/2010 00:09:52] data/spells/scripts/attack/sky fury.lua:onCastSpell
[23/04/2010 00:09:52] Description:
[23/04/2010 00:09:52] attempt to index a nil value
[23/04/2010 00:09:52] stack traceback:
[23/04/2010 00:09:52] [C]: in function 'doCombat'
[23/04/2010 00:09:52] data/spells/scripts/attack/sky fury.lua:26: in function <data/spells/scripts/attack/sky fury.lua:17>