Ir para conteúdo
  • 0

[Resolvido] [PDA] Ajuda Erro Spell


Fuuin Fake

Pergunta

elseif spell == "Mamaragan" then

local ret = {}                 
ret.id = 0
ret.cd = 9
ret.eff = 136
ret.check = 0
ret.spell = spell
ret.cond = "Stun"

local pos = getThingPosWithDebug(cid)
local areas = {rock1, rock2, rock1, rock3, rock1, rock4, rock1, rock5}

for i = 0, 14 do
    addEvent(doMoveInArea2, i*320, cid, 170, areas[i+1], ELECTRICDAMAGE, min, max, spell, ret)
    addEvent(doMoveInArea2, i*330, cid, 170, areas[i+1], ELECTRICDAMAGE, 0, 0, spell)
end

ERRO vv

[12/09/2015 16:10:38] [Error - TalkAction Interface] 
[12/09/2015 16:10:38] In a timer event called from: 
[12/09/2015 16:10:38] data/talkactions/scripts/move1.lua:onSay
[12/09/2015 16:10:38] Description: 
[12/09/2015 16:10:38] data/lib/032-position.lua:158: bad argument #1 to 'getn' (table expected, got nil)
[12/09/2015 16:10:38] stack traceback:
[12/09/2015 16:10:38] 	[C]: in function 'getn'
[12/09/2015 16:10:38] 	data/lib/032-position.lua:158: in function 'getPosfromArea'
[12/09/2015 16:10:38] 	data/lib/newStatusSyst.lua:832: in function <data/lib/newStatusSyst.lua:829>

[12/09/2015 16:10:38] [Error - TalkAction Interface] 
[12/09/2015 16:10:38] In a timer event called from: 
[12/09/2015 16:10:38] data/talkactions/scripts/move1.lua:onSay
[12/09/2015 16:10:38] Description: 
[12/09/2015 16:10:38] data/lib/032-position.lua:158: bad argument #1 to 'getn' (table expected, got nil)
[12/09/2015 16:10:38] stack traceback:
[12/09/2015 16:10:38] 	[C]: in function 'getn'
[12/09/2015 16:10:38] 	data/lib/032-position.lua:158: in function 'getPosfromArea'
[12/09/2015 16:10:38] 	data/lib/newStatusSyst.lua:832: in function <data/lib/newStatusSyst.lua:829>

[12/09/2015 16:10:38] [Error - TalkAction Interface] 
[12/09/2015 16:10:38] In a timer event called from: 
[12/09/2015 16:10:38] data/talkactions/scripts/move1.lua:onSay
[12/09/2015 16:10:38] Description: 
[12/09/2015 16:10:38] data/lib/032-position.lua:158: bad argument #1 to 'getn' (table expected, got nil)
[12/09/2015 16:10:38] stack traceback:
[12/09/2015 16:10:38] 	[C]: in function 'getn'
[12/09/2015 16:10:38] 	data/lib/032-position.lua:158: in function 'getPosfromArea'
[12/09/2015 16:10:38] 	data/lib/newStatusSyst.lua:832: in function <data/lib/newStatusSyst.lua:829>

[12/09/2015 16:10:38] [Error - TalkAction Interface] 
[12/09/2015 16:10:38] In a timer event called from: 
[12/09/2015 16:10:38] data/talkactions/scripts/move1.lua:onSay
[12/09/2015 16:10:38] Description: 
[12/09/2015 16:10:38] data/lib/032-position.lua:158: bad argument #1 to 'getn' (table expected, got nil)
[12/09/2015 16:10:38] stack traceback:
[12/09/2015 16:10:38] 	[C]: in function 'getn'
[12/09/2015 16:10:38] 	data/lib/032-position.lua:158: in function 'getPosfromArea'
[12/09/2015 16:10:38] 	data/lib/newStatusSyst.lua:832: in function <data/lib/newStatusSyst.lua:829>

[12/09/2015 16:10:39] [Error - TalkAction Interface] 
[12/09/2015 16:10:39] In a timer event called from: 
[12/09/2015 16:10:39] data/talkactions/scripts/move1.lua:onSay
[12/09/2015 16:10:39] Description: 
[12/09/2015 16:10:39] data/lib/032-position.lua:158: bad argument #1 to 'getn' (table expected, got nil)
[12/09/2015 16:10:39] stack traceback:
[12/09/2015 16:10:39] 	[C]: in function 'getn'
[12/09/2015 16:10:39] 	data/lib/032-position.lua:158: in function 'getPosfromArea'
[12/09/2015 16:10:39] 	data/lib/newStatusSyst.lua:832: in function <data/lib/newStatusSyst.lua:829>

[12/09/2015 16:10:39] [Error - TalkAction Interface] 
[12/09/2015 16:10:39] In a timer event called from: 
[12/09/2015 16:10:39] data/talkactions/scripts/move1.lua:onSay
[12/09/2015 16:10:39] Description: 
[12/09/2015 16:10:39] data/lib/032-position.lua:158: bad argument #1 to 'getn' (table expected, got nil)
[12/09/2015 16:10:39] stack traceback:
[12/09/2015 16:10:39] 	[C]: in function 'getn'
[12/09/2015 16:10:39] 	data/lib/032-position.lua:158: in function 'getPosfromArea'
[12/09/2015 16:10:39] 	data/lib/newStatusSyst.lua:832: in function <data/lib/newStatusSyst.lua:829>

[12/09/2015 16:10:39] [Error - TalkAction Interface] 
[12/09/2015 16:10:39] In a timer event called from: 
[12/09/2015 16:10:39] data/talkactions/scripts/move1.lua:onSay
[12/09/2015 16:10:39] Description: 
[12/09/2015 16:10:39] data/lib/032-position.lua:158: bad argument #1 to 'getn' (table expected, got nil)
[12/09/2015 16:10:39] stack traceback:
[12/09/2015 16:10:39] 	[C]: in function 'getn'
[12/09/2015 16:10:39] 	data/lib/032-position.lua:158: in function 'getPosfromArea'
[12/09/2015 16:10:39] 	data/lib/newStatusSyst.lua:832: in function <data/lib/newStatusSyst.lua:829>

[12/09/2015 16:10:39] [Error - TalkAction Interface] 
[12/09/2015 16:10:39] In a timer event called from: 
[12/09/2015 16:10:39] data/talkactions/scripts/move1.lua:onSay
[12/09/2015 16:10:39] Description: 
[12/09/2015 16:10:39] data/lib/032-position.lua:158: bad argument #1 to 'getn' (table expected, got nil)
[12/09/2015 16:10:39] stack traceback:
[12/09/2015 16:10:39] 	[C]: in function 'getn'
[12/09/2015 16:10:39] 	data/lib/032-position.lua:158: in function 'getPosfromArea'
[12/09/2015 16:10:39] 	data/lib/newStatusSyst.lua:832: in function <data/lib/newStatusSyst.lua:829>

[12/09/2015 16:10:39] [Error - TalkAction Interface] 
[12/09/2015 16:10:39] In a timer event called from: 
[12/09/2015 16:10:39] data/talkactions/scripts/move1.lua:onSay
[12/09/2015 16:10:39] Description: 
[12/09/2015 16:10:39] data/lib/032-position.lua:158: bad argument #1 to 'getn' (table expected, got nil)
[12/09/2015 16:10:39] stack traceback:
[12/09/2015 16:10:39] 	[C]: in function 'getn'
[12/09/2015 16:10:39] 	data/lib/032-position.lua:158: in function 'getPosfromArea'
[12/09/2015 16:10:39] 	data/lib/newStatusSyst.lua:832: in function <data/lib/newStatusSyst.lua:829>

[12/09/2015 16:10:39] [Error - TalkAction Interface] 
[12/09/2015 16:10:39] In a timer event called from: 
[12/09/2015 16:10:39] data/talkactions/scripts/move1.lua:onSay
[12/09/2015 16:10:39] Description: 
[12/09/2015 16:10:39] data/lib/032-position.lua:158: bad argument #1 to 'getn' (table expected, got nil)
[12/09/2015 16:10:39] stack traceback:
[12/09/2015 16:10:39] 	[C]: in function 'getn'
[12/09/2015 16:10:39] 	data/lib/032-position.lua:158: in function 'getPosfromArea'
[12/09/2015 16:10:39] 	data/lib/newStatusSyst.lua:832: in function <data/lib/newStatusSyst.lua:829>

[12/09/2015 16:10:40] [Error - TalkAction Interface] 
[12/09/2015 16:10:40] In a timer event called from: 
[12/09/2015 16:10:40] data/talkactions/scripts/move1.lua:onSay
[12/09/2015 16:10:40] Description: 
[12/09/2015 16:10:40] data/lib/032-position.lua:158: bad argument #1 to 'getn' (table expected, got nil)
[12/09/2015 16:10:40] stack traceback:
[12/09/2015 16:10:40] 	[C]: in function 'getn'
[12/09/2015 16:10:40] 	data/lib/032-position.lua:158: in function 'getPosfromArea'
[12/09/2015 16:10:40] 	data/lib/newStatusSyst.lua:832: in function <data/lib/newStatusSyst.lua:829>

[12/09/2015 16:10:40] [Error - TalkAction Interface] 
[12/09/2015 16:10:40] In a timer event called from: 
[12/09/2015 16:10:40] data/talkactions/scripts/move1.lua:onSay
[12/09/2015 16:10:40] Description: 
[12/09/2015 16:10:40] data/lib/032-position.lua:158: bad argument #1 to 'getn' (table expected, got nil)
[12/09/2015 16:10:40] stack traceback:
[12/09/2015 16:10:40] 	[C]: in function 'getn'
[12/09/2015 16:10:40] 	data/lib/032-position.lua:158: in function 'getPosfromArea'
[12/09/2015 16:10:40] 	data/lib/newStatusSyst.lua:832: in function <data/lib/newStatusSyst.lua:829>

[12/09/2015 16:10:40] [Error - TalkAction Interface] 
[12/09/2015 16:10:40] In a timer event called from: 
[12/09/2015 16:10:40] data/talkactions/scripts/move1.lua:onSay
[12/09/2015 16:10:40] Description: 
[12/09/2015 16:10:40] data/lib/032-position.lua:158: bad argument #1 to 'getn' (table expected, got nil)
[12/09/2015 16:10:40] stack traceback:
[12/09/2015 16:10:40] 	[C]: in function 'getn'
[12/09/2015 16:10:40] 	data/lib/032-position.lua:158: in function 'getPosfromArea'
[12/09/2015 16:10:40] 	data/lib/newStatusSyst.lua:832: in function <data/lib/newStatusSyst.lua:829>

[12/09/2015 16:10:40] [Error - TalkAction Interface] 
[12/09/2015 16:10:40] In a timer event called from: 
[12/09/2015 16:10:40] data/talkactions/scripts/move1.lua:onSay
[12/09/2015 16:10:40] Description: 
[12/09/2015 16:10:40] data/lib/032-position.lua:158: bad argument #1 to 'getn' (table expected, got nil)
[12/09/2015 16:10:40] stack traceback:
[12/09/2015 16:10:40] 	[C]: in function 'getn'
[12/09/2015 16:10:40] 	data/lib/032-position.lua:158: in function 'getPosfromArea'
[12/09/2015 16:10:40] 	data/lib/newStatusSyst.lua:832: in function <data/lib/newStatusSyst.lua:829>
Link para o comentário
Compartilhar em outros sites

4 respostass a esta questão

Posts Recomendados

  • 0


elseif spell == "Mamaragan" then

 

local ret = {}

ret.id = 0

ret.cd = 9

ret.eff = 136

ret.check = 0

ret.spell = spell

ret.cond = "Stun"

 

local pos = getThingPosWithDebug(cid)

local areas = {rock1, rock2, rock1, rock3, rock1, rock4, rock1, rock5}

 

for i = 0, 7 do

addEvent(doMoveInArea2, i*320, cid, 170, areas[i+1], ELECTRICDAMAGE, min, max, spell, ret)

addEvent(doMoveInArea2, i*330, cid, 170, areas[i+1], ELECTRICDAMAGE, 0, 0, spell)

end

 

Link para o comentário
Compartilhar em outros sites

  • 0
  • Administrador
A questão neste tópico de suporte foi respondida e/ou o autor do tópico resolveu o problema. Este tópico está fechado e foi movido para Suporte - Resolvidos. Se você tiver outras dúvidas, crie um novo tópico.
Link para o comentário
Compartilhar em outros sites

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