Ir para conteúdo
  • 0

Arena bugada.


SirUndead

Pergunta

A arena Free e a Arena VIP estão com um erro.

Quando está dois players nos quadrados para entrarem na arena. E um deles tem que puchar a alavanca. E quando ele pucha da uma pequena travadinha no servidor e nessa travadia dá esse erro no distro:

 

 

 


[27/12/2012 16:10:31] [Error - Action Interface]
[27/12/2012 16:10:31] data/actions/scripts/arenalever.lua:onUse
[27/12/2012 16:10:31] Description:
[27/12/2012 16:10:31] (luaGetThingFromPos) Tile not found

[27/12/2012 16:10:31] [Error - Action Interface]
[27/12/2012 16:10:31] data/actions/scripts/arenalever.lua:onUse
[27/12/2012 16:10:31] Description:
[27/12/2012 16:10:31] (luaGetThingFromPos) Tile not found

[27/12/2012 16:10:31] [Error - Action Interface]
[27/12/2012 16:10:31] data/actions/scripts/arenalever.lua:onUse
[27/12/2012 16:10:31] Description:
[27/12/2012 16:10:31] (luaGetThingFromPos) Tile not found

[27/12/2012 16:10:31] [Error - Action Interface]
[27/12/2012 16:10:31] data/actions/scripts/arenalever.lua:onUse
[27/12/2012 16:10:31] Description:
[27/12/2012 16:10:31] (luaGetThingFromPos) Tile not found

[27/12/2012 16:10:31] [Error - Action Interface]
[27/12/2012 16:10:31] data/actions/scripts/arenalever.lua:onUse
[27/12/2012 16:10:31] Description:
[27/12/2012 16:10:31] (luaGetThingFromPos) Tile not found

[27/12/2012 16:10:31] [Error - Action Interface]
[27/12/2012 16:10:31] data/actions/scripts/arenalever.lua:onUse
[27/12/2012 16:10:31] Description:
[27/12/2012 16:10:31] (luaGetThingFromPos) Tile not found

[27/12/2012 16:10:31] [Error - Action Interface]
[27/12/2012 16:10:31] data/actions/scripts/arenalever.lua:onUse
[27/12/2012 16:10:31] Description:
[27/12/2012 16:10:31] (luaGetThingFromPos) Tile not found

[27/12/2012 16:10:31] [Error - Action Interface]
[27/12/2012 16:10:31] data/actions/scripts/arenalever.lua:onUse
[27/12/2012 16:10:31] Description:
[27/12/2012 16:10:31] (luaGetThingFromPos) Tile not found

[27/12/2012 16:10:31] [Error - Action Interface]
[27/12/2012 16:10:31] data/actions/scripts/arenalever.lua:onUse
[27/12/2012 16:10:31] Description:
[27/12/2012 16:10:31] (luaGetThingFromPos) Tile not found

[27/12/2012 16:10:31] [Error - Action Interface]
[27/12/2012 16:10:31] data/actions/scripts/arenalever.lua:onUse
[27/12/2012 16:10:31] Description:
[27/12/2012 16:10:31] (luaGetThingFromPos) Tile not found

[27/12/2012 16:10:31] [Error - Action Interface]
[27/12/2012 16:10:31] data/actions/scripts/arenalever.lua:onUse
[27/12/2012 16:10:31] Description:
[27/12/2012 16:10:31] (luaGetThingFromPos) Tile not found

[27/12/2012 16:10:31] [Error - Action Interface]
[27/12/2012 16:10:31] data/actions/scripts/arenalever.lua:onUse
[27/12/2012 16:10:31] Description:
[27/12/2012 16:10:31] (luaGetThingFromPos) Tile not found

[27/12/2012 16:10:31] [Error - Action Interface]
[27/12/2012 16:10:31] data/actions/scripts/arenalever.lua:onUse
[27/12/2012 16:10:31] Description:
[27/12/2012 16:10:31] (luaGetThingFromPos) Tile not found

[27/12/2012 16:10:31] [Error - Action Interface]
[27/12/2012 16:10:31] data/actions/scripts/arenalever.lua:onUse
[27/12/2012 16:10:31] Description:
[27/12/2012 16:10:31] (luaGetThingFromPos) Tile not found

[27/12/2012 16:10:31] [Error - Action Interface]
[27/12/2012 16:10:31] data/actions/scripts/arenalever.lua:onUse
[27/12/2012 16:10:31] Description:
[27/12/2012 16:10:31] (luaGetThingFromPos) Tile not found

[27/12/2012 16:10:31] [Error - Action Interface]
[27/12/2012 16:10:31] data/actions/scripts/arenalever.lua:onUse
[27/12/2012 16:10:31] Description:
[27/12/2012 16:10:31] (luaGetThingFromPos) Tile not found

[27/12/2012 16:10:31] [Error - Action Interface]
[27/12/2012 16:10:31] data/actions/scripts/arenalever.lua:onUse
[27/12/2012 16:10:31] Description:
[27/12/2012 16:10:31] (luaGetThingFromPos) Tile not found

[27/12/2012 16:10:31] [Error - Action Interface]
[27/12/2012 16:10:31] data/actions/scripts/arenalever.lua:onUse
[27/12/2012 16:10:31] Description:
[27/12/2012 16:10:31] (luaGetThingFromPos) Tile not found

[27/12/2012 16:10:31] [Error - Action Interface]
[27/12/2012 16:10:31] data/actions/scripts/arenalever.lua:onUse
[27/12/2012 16:10:31] Description:
[27/12/2012 16:10:31] (luaGetThingFromPos) Tile not found

[27/12/2012 16:10:31] [Error - Action Interface]
[27/12/2012 16:10:31] data/actions/scripts/arenalever.lua:onUse
[27/12/2012 16:10:31] Description:
[27/12/2012 16:10:31] (luaGetThingFromPos) Tile not found

[27/12/2012 16:10:31] [Error - Action Interface]
[27/12/2012 16:10:31] data/actions/scripts/arenalever.lua:onUse
[27/12/2012 16:10:31] Description:
[27/12/2012 16:10:31] (luaGetThingFromPos) Tile not found

[27/12/2012 16:10:31] [Error - Action Interface]
[27/12/2012 16:10:31] data/actions/scripts/arenalever.lua:onUse
[27/12/2012 16:10:31] Description:
[27/12/2012 16:10:31] (luaGetThingFromPos) Tile not found

[27/12/2012 16:10:32] [Error - Action Interface]
[27/12/2012 16:10:32] data/actions/scripts/arenalever.lua:onUse
[27/12/2012 16:10:32] Description:
[27/12/2012 16:10:32] (luaGetThingFromPos) Tile not found

[27/12/2012 16:10:32] [Error - Action Interface]
[27/12/2012 16:10:32] data/actions/scripts/arenalever.lua:onUse
[27/12/2012 16:10:32] Description:
[27/12/2012 16:10:32] (luaGetThingFromPos) Tile not found

[27/12/2012 16:10:32] [Error - Action Interface]
[27/12/2012 16:10:32] data/actions/scripts/arenalever.lua:onUse
[27/12/2012 16:10:32] Description:
[27/12/2012 16:10:32] (luaGetThingFromPos) Tile not found

[27/12/2012 16:10:32] [Error - Action Interface]
[27/12/2012 16:10:32] data/actions/scripts/arenalever.lua:onUse
[27/12/2012 16:10:32] Description:
[27/12/2012 16:10:32] (luaGetThingFromPos) Tile not found

[27/12/2012 16:10:32] [Error - Action Interface]
[27/12/2012 16:10:32] data/actions/scripts/arenalever.lua:onUse
[27/12/2012 16:10:32] Description:
[27/12/2012 16:10:32] (luaGetThingFromPos) Tile not found

[27/12/2012 16:10:32] [Error - Action Interface]
[27/12/2012 16:10:32] data/actions/scripts/arenalever.lua:onUse
[27/12/2012 16:10:32] Description:
[27/12/2012 16:10:32] (luaGetThingFromPos) Tile not found

[27/12/2012 16:10:32] [Error - Action Interface]
[27/12/2012 16:10:32] data/actions/scripts/arenalever.lua:onUse
[27/12/2012 16:10:32] Description:
[27/12/2012 16:10:32] (luaGetThingFromPos) Tile not found

[27/12/2012 16:10:32] [Error - Action Interface]
[27/12/2012 16:10:32] data/actions/scripts/arenalever.lua:onUse
[27/12/2012 16:10:32] Description:
[27/12/2012 16:10:32] (luaGetThingFromPos) Tile not found

[27/12/2012 16:10:32] [Error - Action Interface]
[27/12/2012 16:10:32] data/actions/scripts/arenalever.lua:onUse
[27/12/2012 16:10:32] Description:
[27/12/2012 16:10:32] (luaGetThingFromPos) Tile not found

[27/12/2012 16:10:32] [Error - Action Interface]
[27/12/2012 16:10:32] data/actions/scripts/arenalever.lua:onUse
[27/12/2012 16:10:32] Description:
[27/12/2012 16:10:32] (luaGetThingFromPos) Tile not found

[27/12/2012 16:10:32] [Error - Action Interface]
[27/12/2012 16:10:32] data/actions/scripts/arenalever.lua:onUse
[27/12/2012 16:10:32] Description:
[27/12/2012 16:10:32] (luaGetThingFromPos) Tile not found

[27/12/2012 16:10:32] [Error - Action Interface]
[27/12/2012 16:10:32] data/actions/scripts/arenalever.lua:onUse
[27/12/2012 16:10:32] Description:
[27/12/2012 16:10:32] (luaGetThingFromPos) Tile not found

[27/12/2012 16:10:32] [Error - Action Interface]
[27/12/2012 16:10:32] data/actions/scripts/arenalever.lua:onUse
[27/12/2012 16:10:32] Description:
[27/12/2012 16:10:32] (luaGetThingFromPos) Tile not found

[27/12/2012 16:10:32] [Error - Action Interface]
[27/12/2012 16:10:32] data/actions/scripts/arenalever.lua:onUse
[27/12/2012 16:10:32] Description:
[27/12/2012 16:10:32] (luaGetThingFromPos) Tile not found

[27/12/2012 16:10:32] [Error - Action Interface]
[27/12/2012 16:10:32] data/actions/scripts/arenalever.lua:onUse
[27/12/2012 16:10:32] Description:
[27/12/2012 16:10:32] (luaGetThingFromPos) Tile not found

[27/12/2012 16:10:32] [Error - Action Interface]
[27/12/2012 16:10:32] data/actions/scripts/arenalever.lua:onUse
[27/12/2012 16:10:32] Description:
[27/12/2012 16:10:32] (luaGetThingFromPos) Tile not found

[27/12/2012 16:10:32] [Error - Action Interface]
[27/12/2012 16:10:32] data/actions/scripts/arenalever.lua:onUse
[27/12/2012 16:10:32] Description:
[27/12/2012 16:10:32] (luaGetThingFromPos) Tile not found

[27/12/2012 16:10:32] [Error - Action Interface]
[27/12/2012 16:10:32] data/actions/scripts/arenalever.lua:onUse
[27/12/2012 16:10:32] Description:
[27/12/2012 16:10:32] (luaGetThingFromPos) Tile not found

 

 

 

Da todo esse erro em 2 segundos que é o tempo que da a travadinha no servidor.

Mas os players entram na arena e funciona normal...

Mas tem vezes que da DC no servidor por causa disso :/

 

Olha o script da arena:

data/actions/scripts/arenalever.lua

 

 

 


-- pvp arena lever

function onUse(cid, item, frompos, item2, topos)

if item.uid == 1945 and item.itemid == 1945 then
 player1pos = {x=894, y=1032, z=9, stackpos=253}
 player1 = getThingfromPos(player1pos)

 player2pos = {x=905, y=1032, z=9, stackpos=253}
 player2 = getThingfromPos(player2pos)

 if player1.itemid > 0 and player2.itemid > 0 then
  arenalevel = 30
  player1level = getPlayerLevel(player1.uid)
  player2level = getPlayerLevel(player2.uid)

  if player1level >= arenalevel and player2level >= arenalevel then
for arenax = 121,128 do
 for arenay = 33,37 do
  arenapos = {x=arenax, y=arenay, z=9, stackpos=253}
  arenacreature = getThingfromPos(arenapos)

  if arenacreature.itemid > 0 then
   doPlayerSendCancel(cid,"Wait for current duel to end.")
   return 1
  end
 end
end

nplayer1pos = {x=896, y=1032, z=9}
nplayer2pos = {x=903, y=1032, z=9}

doSendMagicEffect(player1pos,2)
doSendMagicEffect(player2pos,2)

doTeleportThing(player1.uid,nplayer1pos)
doTeleportThing(player2.uid,nplayer2pos)

doSendMagicEffect(nplayer1pos,10)
doSendMagicEffect(nplayer2pos,10)

doPlayerSendTextMessage(player1.uid,18,"FIGHT!")
doPlayerSendTextMessage(player2.uid,18,"FIGHT!")
  else
doPlayerSendCancel(cid,"Both fighters must have level 30.")
  end
 else
  doPlayerSendCancel(cid,"You need 2 players for a duel.")
 end
else
 return 0
end

return 1
end

 

 

 

Script em data/actions/actions.xml:

 

<action uniqueid="1945" script="arenalever.lua" />

 

Agora no map editor o Action e o Unique da alavanca:

sem_ta11.png

 

Meu scripter disse que o x y z está correto no script.

 

 

Meu otserv é 8.6 Era um Dark Dragon OT.

 

Alguem pode me ajudar pelo amor de deus ?

Obrigado.

Link para o comentário
Compartilhar em outros sites

5 respostass a esta questão

Posts Recomendados

  • 0

sera q o erro n eh aki?

for arenax = 121,128 do         
  for arenay = 33,37 do 

isso equivale ah..

{x = 121, y = 33, z = 9}
{x = 128, y = 37, z = 9}

eh essa a area da tua arena?

Link para o comentário
Compartilhar em outros sites

×
×
  • Criar Novo...