Ir para conteúdo

Featured Replies

Postado

Boa tarde glr... 

Estou com um problema na script de Arena Hunting de um membro do tibia king:
 

Seguinte, está tudo funcionando certo, até a hora do char voltar para o templo na hora que acaba o tempo dentro da ArenaHunting, depois q o tempo passa dar este erro aqui:
vgm0qo.png

A script do movements é essa aqui: 

 

local actio = {7780,7781,7782,7783,7784,7785,7786,7787,7788,7789,7790,7791,7792,7793,7794,7795,7796,7797,7798,7799,8000,8001,8002,8003,8004,8005,8006,8007,8008,8009}

 
local kpt = {[7780]={x=19059,y=19081,z=7},
[7781]={x=19044,y=19081,z=7},
[7782]={x=19029,y=19081,z=7},
[7783]={x=19029,y=19072,z=7},
[7784]={x=19044,y=19072,z=7},
[7785]={x=19059,y=19072,z=7},
[7786]={x=19116,y=19081,z=7},
[7787]={x=19101,y=19081,z=7},
[7788]={x=19086,y=19081,z=7},
[7789]={x=19116,y=19072,z=7},
[7790]={x=19101,y=19072,z=7},
[7791]={x=19086,y=19072,z=7},
[7792]={x=18992,y=19114,z=7},
[7793]={x=18979,y=19114,z=7},
[7794]={x=18962,y=19114,z=7},
[7795]={x=18992,y=19105,z=7},
[7796]={x=18977,y=19105,z=7},
[7797]={x=18962,y=19105,z=7},
[7798]={x=18987,y=19072,z=7},
[7799]={x=18972,y=19072,z=7},
[8000]={x=18957,y=19072,z=7},
[8001]={x=18987,y=19063,z=7},
[8002]={x=18972,y=19063,z=7},
[8003]={x=18957,y=19063,z=7},
[8004]={x=19011,y=19047,z=7},
[8005]={x=19011,y=19032,z=7},
[8006]={x=19011,y=19017,z=7},
[8007]={x=19020,y=19047,z=7},
[8008]={x=19020,y=19032,z=7},
[8009]={x=19020,y=19017,z=7}}
 
 
function onStepIn(cid, item, position, fromPosition)
 
if isInArray(actio,item.actionid) then
if (getStorage(item.actionid) > 0) or (getCreatureStorage(cid,12000) < os.time()) then
doTeleportThing(cid,fromPosition)
doSendMagicEffect(getThingPos(cid),2)
else
sumonarena(item.actionid,cid)
doSetStorage(item.actionid,1)
doTeleportThing(cid,kpt[item.actionid])
end
end
return true
end

Caso alguém saiba e q possa me ajudar!!! Darei REP+ 

  • Respostas 6
  • Visualizações 426
  • Created
  • Última resposta

Top Posters In This Topic

Postado

tenta

 

testa esse 1° depois tenta o de baixo

local actio = {7780,7781,7782,7783,7784,7785,7786,7787,7788,7789,7790,7791,7792,7793,7794,7795,7796,7797,7798,7799,8000,8001,8002,8003,8004,8005,8006,8007,8008,8009}

local kpt = {[7780]={x=19059,y=19081,z=7},
[7781]={x=19044,y=19081,z=7},
[7782]={x=19029,y=19081,z=7},
[7783]={x=19029,y=19072,z=7},
[7784]={x=19044,y=19072,z=7},
[7785]={x=19059,y=19072,z=7},
[7786]={x=19116,y=19081,z=7},
[7787]={x=19101,y=19081,z=7},
[7788]={x=19086,y=19081,z=7},
[7789]={x=19116,y=19072,z=7},
[7790]={x=19101,y=19072,z=7},
[7791]={x=19086,y=19072,z=7},
[7792]={x=18992,y=19114,z=7},
[7793]={x=18979,y=19114,z=7},
[7794]={x=18962,y=19114,z=7},
[7795]={x=18992,y=19105,z=7},
[7796]={x=18977,y=19105,z=7},
[7797]={x=18962,y=19105,z=7},
[7798]={x=18987,y=19072,z=7},
[7799]={x=18972,y=19072,z=7},
[8000]={x=18957,y=19072,z=7},
[8001]={x=18987,y=19063,z=7},
[8002]={x=18972,y=19063,z=7},
[8003]={x=18957,y=19063,z=7},
[8004]={x=19011,y=19047,z=7},
[8005]={x=19011,y=19032,z=7},
[8006]={x=19011,y=19017,z=7},
[8007]={x=19020,y=19047,z=7},
[8008]={x=19020,y=19032,z=7},
[8009]={x=19020,y=19017,z=7}}


function onStepIn(cid, item, position, fromPosition)

if isMonster(cid) then
doTeleportThing(cid, fromPosition, true)
return true
end
if isInArray(actio,item.actionid) then
if (getStorage(item.actionid) > 0) or (getCreatureStorage(cid,12000) < os.time()) then
doTeleportThing(cid, fromPosition, true)
doSendMagicEffect(getThingPos(cid), 2)
else
sumonarena(item.actionid,cid)
doSetStorage(item.actionid,1)
doTeleportThing(cid,kpt[item.actionid])
end
end
return true
end

 

local actio = {7780,7781,7782,7783,7784,7785,7786,7787,7788,7789,7790,7791,7792,7793,7794,7795,7796,7797,7798,7799,8000,8001,8002,8003,8004,8005,8006,8007,8008,8009}

local kpt = {[7780]={x=19059,y=19081,z=7},
[7781]={x=19044,y=19081,z=7},
[7782]={x=19029,y=19081,z=7},
[7783]={x=19029,y=19072,z=7},
[7784]={x=19044,y=19072,z=7},
[7785]={x=19059,y=19072,z=7},
[7786]={x=19116,y=19081,z=7},
[7787]={x=19101,y=19081,z=7},
[7788]={x=19086,y=19081,z=7},
[7789]={x=19116,y=19072,z=7},
[7790]={x=19101,y=19072,z=7},
[7791]={x=19086,y=19072,z=7},
[7792]={x=18992,y=19114,z=7},
[7793]={x=18979,y=19114,z=7},
[7794]={x=18962,y=19114,z=7},
[7795]={x=18992,y=19105,z=7},
[7796]={x=18977,y=19105,z=7},
[7797]={x=18962,y=19105,z=7},
[7798]={x=18987,y=19072,z=7},
[7799]={x=18972,y=19072,z=7},
[8000]={x=18957,y=19072,z=7},
[8001]={x=18987,y=19063,z=7},
[8002]={x=18972,y=19063,z=7},
[8003]={x=18957,y=19063,z=7},
[8004]={x=19011,y=19047,z=7},
[8005]={x=19011,y=19032,z=7},
[8006]={x=19011,y=19017,z=7},
[8007]={x=19020,y=19047,z=7},
[8008]={x=19020,y=19032,z=7},
[8009]={x=19020,y=19017,z=7}}

function onStepIn(cid, item, position, fromPosition)
if isMonster(cid) then
doRemoveCreature(cid)
return true
end
if isInArray(actio,item.actionid) then
if (getStorage(item.actionid) > 0) or (getCreatureStorage(cid,12000) < os.time()) then
doTeleportThing(cid, fromPosition, true)
doSendMagicEffect(getThingPos(cid), 2)
else
sumonarena(item.actionid,cid)
doSetStorage(item.actionid,1)
doTeleportThing(cid,kpt[item.actionid])
end
end
return true
end

 

EDITEI TÁ AII

Editado por alexxxxxxx (veja o histórico de edições)

 

20230912_034613.png.cf49b650c34dd7d7b1f79bd49c70f53c.png

Eu sou um entusiasta da programação apaixonado por ajudar a comunidade open source a crescer. Sempre em busca de novos desafios e oportunidades para contribuir com meu código.  #OpenSource #Programação #Contribuição

 

Postado

Seu script tem essa função:

sumonarena(item.actionid,cid)

Procure-a em data/lib em todos os arquivos, e poste-a para nós.

                              _
                          .-'` `}
                  _./)   /       }
                .'o   \ |       }
                '.___.'`.\    {`
                /`\_/  , `.    }                                      ME DA UMA NOZ!
                \=' .-'   _`\  {
                 `'`;/      `,  }
                    _\   @   ;  }
                   /__`;-...'--'

Cluck!

Postado
  • Autor

Seu script tem essa função:

sumonarena(item.actionid,cid)

Procure-a em data/lib em todos os arquivos, e poste-a para nós.

Pelo contrario, não encontrei em nenhum dos arquivos da pasta.

tenta

 

testa esse 1° depois tenta o de baixo

local actio = {7780,7781,7782,7783,7784,7785,7786,7787,7788,7789,7790,7791,7792,7793,7794,7795,7796,7797,7798,7799,8000,8001,8002,8003,8004,8005,8006,8007,8008,8009}

local kpt = {[7780]={x=19059,y=19081,z=7},

[7781]={x=19044,y=19081,z=7},

[7782]={x=19029,y=19081,z=7},

[7783]={x=19029,y=19072,z=7},

[7784]={x=19044,y=19072,z=7},

[7785]={x=19059,y=19072,z=7},

[7786]={x=19116,y=19081,z=7},

[7787]={x=19101,y=19081,z=7},

[7788]={x=19086,y=19081,z=7},

[7789]={x=19116,y=19072,z=7},

[7790]={x=19101,y=19072,z=7},

[7791]={x=19086,y=19072,z=7},

[7792]={x=18992,y=19114,z=7},

[7793]={x=18979,y=19114,z=7},

[7794]={x=18962,y=19114,z=7},

[7795]={x=18992,y=19105,z=7},

[7796]={x=18977,y=19105,z=7},

[7797]={x=18962,y=19105,z=7},

[7798]={x=18987,y=19072,z=7},

[7799]={x=18972,y=19072,z=7},

[8000]={x=18957,y=19072,z=7},

[8001]={x=18987,y=19063,z=7},

[8002]={x=18972,y=19063,z=7},

[8003]={x=18957,y=19063,z=7},

[8004]={x=19011,y=19047,z=7},

[8005]={x=19011,y=19032,z=7},

[8006]={x=19011,y=19017,z=7},

[8007]={x=19020,y=19047,z=7},

[8008]={x=19020,y=19032,z=7},

[8009]={x=19020,y=19017,z=7}}

function onStepIn(cid, item, position, fromPosition)

if isMonster(cid) then

doTeleportThing(cid, fromPosition, true)

return true

end

if isInArray(actio,item.actionid) then

if (getStorage(item.actionid) > 0) or (getCreatureStorage(cid,12000) < os.time()) then

doTeleportThing(cid, fromPosition, true)

doSendMagicEffect(getThingPos(cid), 2)

else

sumonarena(item.actionid,cid)

doSetStorage(item.actionid,1)

doTeleportThing(cid,kpt[item.actionid])

end

end

return true

end

 

local actio = {7780,7781,7782,7783,7784,7785,7786,7787,7788,7789,7790,7791,7792,7793,7794,7795,7796,7797,7798,7799,8000,8001,8002,8003,8004,8005,8006,8007,8008,8009}

local kpt = {[7780]={x=19059,y=19081,z=7},

[7781]={x=19044,y=19081,z=7},

[7782]={x=19029,y=19081,z=7},

[7783]={x=19029,y=19072,z=7},

[7784]={x=19044,y=19072,z=7},

[7785]={x=19059,y=19072,z=7},

[7786]={x=19116,y=19081,z=7},

[7787]={x=19101,y=19081,z=7},

[7788]={x=19086,y=19081,z=7},

[7789]={x=19116,y=19072,z=7},

[7790]={x=19101,y=19072,z=7},

[7791]={x=19086,y=19072,z=7},

[7792]={x=18992,y=19114,z=7},

[7793]={x=18979,y=19114,z=7},

[7794]={x=18962,y=19114,z=7},

[7795]={x=18992,y=19105,z=7},

[7796]={x=18977,y=19105,z=7},

[7797]={x=18962,y=19105,z=7},

[7798]={x=18987,y=19072,z=7},

[7799]={x=18972,y=19072,z=7},

[8000]={x=18957,y=19072,z=7},

[8001]={x=18987,y=19063,z=7},

[8002]={x=18972,y=19063,z=7},

[8003]={x=18957,y=19063,z=7},

[8004]={x=19011,y=19047,z=7},

[8005]={x=19011,y=19032,z=7},

[8006]={x=19011,y=19017,z=7},

[8007]={x=19020,y=19047,z=7},

[8008]={x=19020,y=19032,z=7},

[8009]={x=19020,y=19017,z=7}}

function onStepIn(cid, item, position, fromPosition)

if isMonster(cid) then

doRemoveCreature(cid)

return true

end

if isInArray(actio,item.actionid) then

if (getStorage(item.actionid) > 0) or (getCreatureStorage(cid,12000) < os.time()) then

doTeleportThing(cid, fromPosition, true)

doSendMagicEffect(getThingPos(cid), 2)

else

sumonarena(item.actionid,cid)

doSetStorage(item.actionid,1)

doTeleportThing(cid,kpt[item.actionid])

end

end

return true

end

 

EDITEI TÁ AII

Nao funfo com o primeiro, e nao apresento nenhum erro na distro, o char continuou preso dentro da arena.

No segundo da o mesmo erro e o char continua preso la :(

up

UP PLISSS

@BUMP

Postado

Você tem que postar a função summonarena, pois, no script não existe doRemoveCreature...

Se quiser sua dúvida tirada, mande PM com os links, e não com a dúvida (outros podem ter a mesma dúvida, e o fórum serve para ser usado).

 

Tópicos:


 

yNlhRVC.png

 

55px-Judo_yellow_belt.svg.png

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.7k

Informação Importante

Confirmação de Termo