Postado Abril 15, 2015 10 anos Boa tarde glr... Estou com um problema na script de Arena Hunting de um membro do tibia king: http://www.tibiaking.com/forum/topic/18027-sistema-arena-hunting-completo-com-pagina-php/ 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: 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+
Postado Abril 15, 2015 10 anos 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 Abril 15, 2015 10 anos por alexxxxxxx (veja o histórico de edições) 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 Abril 15, 2015 10 anos 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 Abril 16, 2015 10 anos 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 Abril 16, 2015 10 anos 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: [FAQ] BBCODE [LIB] Constant [RME] Administrando bordas. [TALK] Broadcast Editável. [TALK] Sugest. [TALK] Checkpoint. [MOVE] Pântano pegajoso. [ACTION] Piggy Bank. (Cassino). [GLOBAL] Uptime Ad. [C0DE] Consertando 'Invalid Password' [PROGRAM] Quest Maker
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.