Ir para conteúdo
  • 0

error move events


Lordfireot

Pergunta

Galera eu desloguei do servidor deu esse erro aki

 

 

[24/03/2013 17:48:37] [Error - MoveEvents Interface]

[24/03/2013 17:48:37] data/movements/scripts/treiners.lua:onStepOut

[24/03/2013 17:48:37] Description:

[24/03/2013 17:48:37] (luaDoRemoveCreature) Creature not found

 

[24/03/2013 17:48:37] [Error - MoveEvents Interface]

[24/03/2013 17:48:37] data/movements/scripts/treiners.lua:onStepOut

[24/03/2013 17:48:37] Description:

[24/03/2013 17:48:37] (luaDoRemoveCreature) Creature not found

 

data/movements/scripts/treiners.lua

 

 

function onStepIn(cid, item, pos)

local charPos = getCreaturePosition(cid)

local monkOne

local monkTwo

 

if(item.actionid == 9000) then

monkOne = {x = charPos.x + 0, y = charPos.y - 2, z = charPos.z}

monkTwo = {x = charPos.x + 1, y = charPos.y - 2, z = charPos.z}

 

elseif(item.actionid == 9001) then

monkOne = {x = charPos.x - 1, y = charPos.y + 2, z = charPos.z}

monkTwo = {x = charPos.x + 0, y = charPos.y + 2, z = charPos.z}

 

elseif(item.actionid == 9002) then

monkOne = {x = charPos.x - 1, y = charPos.y - 2, z = charPos.z}

monkTwo = {x = charPos.x + 0, y = charPos.y - 2, z = charPos.z}

 

elseif(item.actionid == 9003) then

monkOne = {x = charPos.x + 0, y = charPos.y + 2, z = charPos.z}

monkTwo = {x = charPos.x + 1, y = charPos.y + 2, z = charPos.z}

 

elseif(item.actionid == 9004) then

monkOne = {x = charPos.x + 2, y = charPos.y - 1, z = charPos.z}

monkTwo = {x = charPos.x + 5, y = charPos.y - 1, z = charPos.z}

 

else

return true

end

 

doSummonCreature("Alvo", monkOne)

doSummonCreature("Alvo", monkTwo)

return true

end

 

function onStepOut(cid, item, pos)

local charPos = getCreaturePosition(cid)

local monkOne

local monkTwo

 

if(item.actionid == 9000) then

monkOne = {x = charPos.x + 0, y = charPos.y - 2, z = charPos.z}

monkTwo = {x = charPos.x + 1, y = charPos.y - 2, z = charPos.z}

 

elseif(item.actionid == 9001) then

monkOne = {x = charPos.x - 1, y = charPos.y + 2, z = charPos.z}

monkTwo = {x = charPos.x + 0, y = charPos.y + 2, z = charPos.z}

 

elseif(item.actionid == 9002) then

monkOne = {x = charPos.x - 1, y = charPos.y - 2, z = charPos.z}

monkTwo = {x = charPos.x + 0, y = charPos.y - 2, z = charPos.z}

 

elseif(item.actionid == 9003) then

monkOne = {x = charPos.x + 0, y = charPos.y + 2, z = charPos.z}

monkTwo = {x = charPos.x + 1, y = charPos.y + 2, z = charPos.z}

 

elseif(item.actionid == 9004) then

monkOne = {x = charPos.x + 3, y = charPos.y - 1, z = charPos.z}

monkTwo = {x = charPos.x + 6, y = charPos.y + 0, z = charPos.z}

 

else

return true

end

 

doRemoveCreature(getThingfromPos({x = monkOne.x, y = monkOne.y, z = monkOne.z, stackpos = 253}).uid)

doRemoveCreature(getThingfromPos({x = monkTwo.x, y = monkTwo.y, z = monkTwo.z, stackpos = 253}).uid)

doSendMagicEffect(monkOne, 3)

doSendMagicEffect(monkTwo, 3)

return true

end

 

Link para o comentário
Compartilhar em outros sites

3 respostass a esta questão

Posts Recomendados

  • 0

Tenta ae:

 

 

function onStepIn(cid, item, pos)

local charPos = getCreaturePosition(cid)

local monkOne

local monkTwo

 

if(item.actionid == 9000) then

monkOne = {x = charPos.x + 0, y = charPos.y - 2, z = charPos.z}

monkTwo = {x = charPos.x + 1, y = charPos.y - 2, z = charPos.z}

 

elseif(item.actionid == 9001) then

monkOne = {x = charPos.x - 1, y = charPos.y + 2, z = charPos.z}

monkTwo = {x = charPos.x + 0, y = charPos.y + 2, z = charPos.z}

 

elseif(item.actionid == 9002) then

monkOne = {x = charPos.x - 1, y = charPos.y - 2, z = charPos.z}

monkTwo = {x = charPos.x + 0, y = charPos.y - 2, z = charPos.z}

 

elseif(item.actionid == 9003) then

monkOne = {x = charPos.x + 0, y = charPos.y + 2, z = charPos.z}

monkTwo = {x = charPos.x + 1, y = charPos.y + 2, z = charPos.z}

 

elseif(item.actionid == 9004) then

monkOne = {x = charPos.x + 2, y = charPos.y - 1, z = charPos.z}

monkTwo = {x = charPos.x + 5, y = charPos.y - 1, z = charPos.z}

 

else

return true

end

 

doSummonCreature("Alvo", monkOne)

doSummonCreature("Alvo", monkTwo)

return true

end

 

function onStepOut(cid, item, pos)

local charPos = getCreaturePosition(cid)

local monkOne

local monkTwo

 

if(item.actionid == 9000) then

monkOne = {x = charPos.x + 0, y = charPos.y - 2, z = charPos.z}

monkTwo = {x = charPos.x + 1, y = charPos.y - 2, z = charPos.z}

 

elseif(item.actionid == 9001) then

monkOne = {x = charPos.x - 1, y = charPos.y + 2, z = charPos.z}

monkTwo = {x = charPos.x + 0, y = charPos.y + 2, z = charPos.z}

 

elseif(item.actionid == 9002) then

monkOne = {x = charPos.x - 1, y = charPos.y - 2, z = charPos.z}

monkTwo = {x = charPos.x + 0, y = charPos.y - 2, z = charPos.z}

 

elseif(item.actionid == 9003) then

monkOne = {x = charPos.x + 0, y = charPos.y + 2, z = charPos.z}

monkTwo = {x = charPos.x + 1, y = charPos.y + 2, z = charPos.z}

 

elseif(item.actionid == 9004) then

monkOne = {x = charPos.x + 3, y = charPos.y - 1, z = charPos.z}

monkTwo = {x = charPos.x + 6, y = charPos.y + 0, z = charPos.z}

 

 

doRemoveCreature(getThingfromPos({x = monkOne.x, y = monkOne.y, z = monkOne.z, stackpos = 253}).uid)

doRemoveCreature(getThingfromPos({x = monkTwo.x, y = monkTwo.y, z = monkTwo.z, stackpos = 253}).uid)

doSendMagicEffect(monkOne, 3)

doSendMagicEffect(monkTwo, 3)

else

return true

end

end

 

Link para o comentário
Compartilhar em outros sites

×
×
  • Criar Novo...