Josegvb 87 Postado Junho 17, 2016 Share Postado Junho 17, 2016 46 minutes ago, RicardoRoX said: KKKKKKKKKKKKKKK e essas tangela ai? rsrsrs só passei meus velhos arquivos do pda, alguns pokes deram certos outros n estou com 1 problema enquanto os spells de alguns ex Brute Rhydon adicionei os moves na vela la mas estao dando erros em alguns e nao estao sendo castados mas 1 sim acho q o Horn Attack mas o resto da erro Spoiler [17/06/2016 10:19:33] [Error - Spell Interface] [17/06/2016 10:19:33] data/spells/scripts/ps/Shockwave.lua:onCastSpell [17/06/2016 10:19:33] Description: [17/06/2016 10:19:33] data/lib/106-main functions.lua:209: attempt to index field '?' (a nil value) [17/06/2016 10:19:33] stack traceback: [17/06/2016 10:19:33] data/lib/106-main functions.lua:209: in function 'getTableMove' [17/06/2016 10:19:33] data/lib/pokemon moves.lua:86: in function 'docastspell' [17/06/2016 10:19:33] data/spells/scripts/ps/Shockwave.lua:5: in function <data/spells/scripts/ps/Shockwave.lua:1> [17/06/2016 10:19:35] [Error - Spell Interface] [17/06/2016 10:19:35] data/spells/scripts/ps/Rock Throw.lua:onCastSpell [17/06/2016 10:19:35] Description: [17/06/2016 10:19:35] data/lib/106-main functions.lua:209: attempt to index field '?' (a nil value) [17/06/2016 10:19:35] stack traceback: [17/06/2016 10:19:35] data/lib/106-main functions.lua:209: in function 'getTableMove' [17/06/2016 10:19:35] data/lib/some functions.lua:330: in function 'pokeHaveReflect' [17/06/2016 10:19:35] data/lib/pokemon moves.lua:31: in function 'getSubName' [17/06/2016 10:19:35] data/lib/pokemon moves.lua:2329: in function 'docastspell' [17/06/2016 10:19:35] data/spells/scripts/ps/Rock Throw.lua:5: in function <data/spells/scripts/ps/Rock Throw.lua:1> ["Brute Rhydon"] = {move1 = {name = "Iron Tail", level = 16, cd = 15, dist = 1, target = 1, f = 70, t = "steel"}, move2 = {name = "Horn Attack", level = 18, cd = 25, dist = 2, target = 1, f = 70, t = "normal"}, move3 = {name = "Rock Throw", level = 16, cd = 25, dist = 3, target = 1, f = 55, t = "rock"}, move5 = {name = "Horn Drill", level = 22, cd = 30, dist = 2, target = 1, f = 70, t = "normal"}, move6 = {name = "Shockwave", level = 49, cd = 50, dist = 1, target = 0, f = 110, t = "ground"}, move7 = {name = "Falling Rocks", level = 50, cd = 80, dist = 1, target = 0, f = 150, t = "rock"}, move8 = {name = "Rock Drill", level = 51, cd = 35, dist = 3, target = 1, f = 90, t = "rock"}, move9 = {name = "Stomp", level = 51, cd = 35, dist = 3, target = 0, f = 150, t = "rock"}, }, Link para o comentário https://xtibia.com/forum/topic/240989-dxp-exclusivo-poketibia-opensource/page/85/#findComment-1696659 Compartilhar em outros sites More sharing options...
boxxer321 67 Postado Junho 17, 2016 Share Postado Junho 17, 2016 9 minutos atrás, Josegvb disse: rsrsrs só passei meus velhos arquivos do pda, alguns pokes deram certos outros n estou com 1 problema enquanto os spells de alguns ex Brute Rhydon adicionei os moves na vela la mas estao dando erros em alguns e nao estao sendo castados mas 1 sim acho q o Horn Attack mas o resto da erro Mostrar conteúdo oculto [17/06/2016 10:19:33] [Error - Spell Interface] [17/06/2016 10:19:33] data/spells/scripts/ps/Shockwave.lua:onCastSpell [17/06/2016 10:19:33] Description: [17/06/2016 10:19:33] data/lib/106-main functions.lua:209: attempt to index field '?' (a nil value) [17/06/2016 10:19:33] stack traceback: [17/06/2016 10:19:33] data/lib/106-main functions.lua:209: in function 'getTableMove' [17/06/2016 10:19:33] data/lib/pokemon moves.lua:86: in function 'docastspell' [17/06/2016 10:19:33] data/spells/scripts/ps/Shockwave.lua:5: in function <data/spells/scripts/ps/Shockwave.lua:1> [17/06/2016 10:19:35] [Error - Spell Interface] [17/06/2016 10:19:35] data/spells/scripts/ps/Rock Throw.lua:onCastSpell [17/06/2016 10:19:35] Description: [17/06/2016 10:19:35] data/lib/106-main functions.lua:209: attempt to index field '?' (a nil value) [17/06/2016 10:19:35] stack traceback: [17/06/2016 10:19:35] data/lib/106-main functions.lua:209: in function 'getTableMove' [17/06/2016 10:19:35] data/lib/some functions.lua:330: in function 'pokeHaveReflect' [17/06/2016 10:19:35] data/lib/pokemon moves.lua:31: in function 'getSubName' [17/06/2016 10:19:35] data/lib/pokemon moves.lua:2329: in function 'docastspell' [17/06/2016 10:19:35] data/spells/scripts/ps/Rock Throw.lua:5: in function <data/spells/scripts/ps/Rock Throw.lua:1> ["Brute Rhydon"] = {move1 = {name = "Iron Tail", level = 16, cd = 15, dist = 1, target = 1, f = 70, t = "steel"}, move2 = {name = "Horn Attack", level = 18, cd = 25, dist = 2, target = 1, f = 70, t = "normal"}, move3 = {name = "Rock Throw", level = 16, cd = 25, dist = 3, target = 1, f = 55, t = "rock"}, move5 = {name = "Horn Drill", level = 22, cd = 30, dist = 2, target = 1, f = 70, t = "normal"}, move6 = {name = "Shockwave", level = 49, cd = 50, dist = 1, target = 0, f = 110, t = "ground"}, move7 = {name = "Falling Rocks", level = 50, cd = 80, dist = 1, target = 0, f = 150, t = "rock"}, move8 = {name = "Rock Drill", level = 51, cd = 35, dist = 3, target = 1, f = 90, t = "rock"}, move9 = {name = "Stomp", level = 51, cd = 35, dist = 3, target = 0, f = 150, t = "rock"}, }, voce conseguiu botar addon? Link para o comentário https://xtibia.com/forum/topic/240989-dxp-exclusivo-poketibia-opensource/page/85/#findComment-1696660 Compartilhar em outros sites More sharing options...
Josegvb 87 Postado Junho 17, 2016 Share Postado Junho 17, 2016 32 minutes ago, boxxer321 said: voce conseguiu botar addon? não, apenas newtype errada Link para o comentário https://xtibia.com/forum/topic/240989-dxp-exclusivo-poketibia-opensource/page/85/#findComment-1696661 Compartilhar em outros sites More sharing options...
RicardoRoX 25 Postado Junho 17, 2016 Share Postado Junho 17, 2016 1 minuto atrás, Josegvb disse: não, apenas newtype errada tem 2 tabelas de spells, acho que tem que preencher as 2... Link para o comentário https://xtibia.com/forum/topic/240989-dxp-exclusivo-poketibia-opensource/page/85/#findComment-1696662 Compartilhar em outros sites More sharing options...
Josegvb 87 Postado Junho 17, 2016 Share Postado Junho 17, 2016 37 minutes ago, RicardoRoX said: tem 2 tabelas de spells, acho que tem que preencher as 2... coloquei tb na outra, mesmo assim o erro continua, se nao me engano as 2 tabela estao no 114 - pokespell 107 - main tables coloquei nas 2 mas o erro continua Link para o comentário https://xtibia.com/forum/topic/240989-dxp-exclusivo-poketibia-opensource/page/85/#findComment-1696664 Compartilhar em outros sites More sharing options...
RicardoRoX 25 Postado Junho 17, 2016 Share Postado Junho 17, 2016 6 minutos atrás, Josegvb disse: coloquei tb na outra, mesmo assim o erro continua, se nao me engano as 2 tabela estao no 114 - pokespell 107 - main tables coloquei nas 2 mas o erro continua Tu fez alterações na data/lib/106-main functions.lua ? Link para o comentário https://xtibia.com/forum/topic/240989-dxp-exclusivo-poketibia-opensource/page/85/#findComment-1696665 Compartilhar em outros sites More sharing options...
Josegvb 87 Postado Junho 17, 2016 Share Postado Junho 17, 2016 37 minutes ago, RicardoRoX said: Tu fez alterações na data/lib/106-main functions.lua ? nemhuma Link para o comentário https://xtibia.com/forum/topic/240989-dxp-exclusivo-poketibia-opensource/page/85/#findComment-1696669 Compartilhar em outros sites More sharing options...
boxxer321 67 Postado Junho 17, 2016 Share Postado Junho 17, 2016 (editado) consertei Editado Junho 17, 2016 por boxxer321 Link para o comentário https://xtibia.com/forum/topic/240989-dxp-exclusivo-poketibia-opensource/page/85/#findComment-1696670 Compartilhar em outros sites More sharing options...
Justiceiro751 20 Postado Junho 17, 2016 Share Postado Junho 17, 2016 (editado) Boa tarde galera do Xtibia, estive dando uma olhada nas megas e percebi que o Mega Pidgeot está sem spells, infelizmente eu não sei como estar adicionando, então quem tiver tempo e quiser adicionar e compartilhar com todos os membros do fórum, ficaremos agradecidos. Eu estou testando o servidor, caso encontre mais algum erro ou bug eu irei postando aqui no fórum. 12 horas atrás, Pokemonultimatetwo disse: Bom galera, ainda estou começando a aprender a mexer com scripts, então, esse ficou meio bagunçado e longo, creio que se eu não encontrasse um problema que não consegui resolver, ficaria com muito menos linhas de codigos, enfim, o problema que achei foi que não consegui fazer o script identificar o atributo do mega, sendo assim tive que adicionar todos os megas manualmente no script. Como prometido, está ai o script de remover a mega stone, se ajudei rep+ em data/actions/scripts/basic, em heldItems.lua, procure por: doSendMsg(cid, msg) e embaixo, adicione: doItemSetAttribute(item2.uid, "ehMega", b.megaID) Pronto, nesse script, só isso. agora crie um arquivo em data/actions/scripts com o nome de remover.lua, e adicione isso: Mostrar conteúdo oculto --SCRIPT FEITO POR: POKEMONULTIMATETWO ;P--------function onUse(cid, item, frompos, item2, topos)local nick = getPokeballName(item2.uid)local megas = {Alakazite = {15131, 1}, -- id da mega stone, quantidade que vai ser adicionada ao player.CharizarditeX = {15134, 1},CharizarditeY = {15135, 1},Blastoisinite = {15133, 1},Gengarite = {15136, 1},Pidgeotile = {15791, 1},Venusaurite = {15793, 1},Kangaskhanite = {15783, 1},Aerodactylite = {15786, 1},Tyranitarite = {15781, 1},Ampharosite = {15794, 1},Scizorite = {15784, 1},Aggronite = {15780, 1},Blazikenite = {15792, 1},Mawlite = {15782, 1},Gardevoirite = {15785, 1},Absolite = {15787, 1},Lucarionite = {15788, 1},Sceptilite = {15789, 1},Swampertile = {15790, 1},msgDone = "Sua mega stone foi removida com sucesso.", -- mensagem que vai mandar ao remover a mega stonemsgFail = "Esse pokemon nao segura nenhuma mega stone." -- mensagem que vai mandar se nao tiver a mega stone}if #getCreatureSummons(cid) > 0 or isRiderOrFlyOrSurf(cid) then doSendMsg(cid, "Retorne seu pokemon para remover a mega Stone.") return trueendif not isPokeball(item2.itemid) then return doPlayerSendCancel(cid, MSG_NAO_E_POSSIVEL)endif nick == "Aggron" and getItemAttribute(item2.uid, "ehMega") thendoSendMsg(cid, megas.msgDone)doItemEraseAttribute(item2.uid, "ehMega")doItemEraseAttribute(item2.uid, "yHeldItem")doPlayerAddItem(cid, megas.Aggronite[1], megas.Aggronite[2])elseif nick == "Alakazam" and getItemAttribute(item2.uid, "ehMega") thendoItemEraseAttribute(item2.uid, "ehMega")doItemEraseAttribute(item2.uid, "yHeldItem")doPlayerAddItem(cid, megas.Alakazite[1], megas.Alakazite[2])elseif nick == "Charizard" and getItemAttribute(item2.uid, "ehMega") thendoItemEraseAttribute(item2.uid, "ehMega")doItemEraseAttribute(item2.uid, "yHeldItem", megaID)doPlayerAddItem(cid, megas.CharizarditeX[1], megas.CharizarditeX[2])elseif nick == "Charizard" and getItemAttribute(item2.uid, "ehMega") thendoItemEraseAttribute(item2.uid, "ehMega")doItemEraseAttribute(item2.uid, "yHeldItem", megaID)doPlayerAddItem(cid, megas.CharizarditeY[1], megas.CharizarditeY[2])elseif nick == "Blastoise" and getItemAttribute(item2.uid, "ehMega") thendoItemEraseAttribute(item2.uid, "ehMega")doItemEraseAttribute(item2.uid, "yHeldItem")doPlayerAddItem(cid, megas.Blastoisinite[1], megas.Blastoisinite[2])elseif nick == "Gengar" and getItemAttribute(item2.uid, "ehMega") thendoItemEraseAttribute(item2.uid, "ehMega")doItemEraseAttribute(item2.uid, "yHeldItem")doPlayerAddItem(cid, megas.Gengarite[1], megas.Gengarite[2])elseif nick == "Pidgeot" and getItemAttribute(item2.uid, "ehMega") thendoItemEraseAttribute(item2.uid, "ehMega")doItemEraseAttribute(item2.uid, "yHeldItem")doPlayerAddItem(cid, megas.Pidgeotile[1], megas.Pidgeotile[2])elseif nick == "Venusaur" and getItemAttribute(item2.uid, "ehMega") thendoItemEraseAttribute(item2.uid, "ehMega")doItemEraseAttribute(item2.uid, "yHeldItem")doPlayerAddItem(cid, megas.Venusaurite[1], megas.Venusaurite[2])elseif nick == "Kangaskhan" and getItemAttribute(item2.uid, "ehMega") thendoItemEraseAttribute(item2.uid, "ehMega")doItemEraseAttribute(item2.uid, "yHeldItem")doPlayerAddItem(cid, megas.Kangaskhanite[1], megas.Kangaskhanite[2])elseif nick == "Aerodactyl" and getItemAttribute(item2.uid, "ehMega") thendoItemEraseAttribute(item2.uid, "ehMega")doItemEraseAttribute(item2.uid, "yHeldItem")doPlayerAddItem(cid, megas.Aerodactylite[1], megas.Aerodactylite[2])elseif nick == "Tyranitar" and getItemAttribute(item2.uid, "ehMega") thendoItemEraseAttribute(item2.uid, "ehMega")doItemEraseAttribute(item2.uid, "yHeldItem")doPlayerAddItem(cid, megas.Tyranitarite[1], megas.Tyranitarite[2])elseif nick == "Ampharos" and getItemAttribute(item2.uid, "ehMega") thendoItemEraseAttribute(item2.uid, "ehMega")doItemEraseAttribute(item2.uid, "yHeldItem")doPlayerAddItem(cid, megas.Ampharosite[1], megas.Ampharosite[2])elseif nick == "Scizor" and getItemAttribute(item2.uid, "ehMega") thendoItemEraseAttribute(item2.uid, "ehMega")doItemEraseAttribute(item2.uid, "yHeldItem")doPlayerAddItem(cid, megas.Scizorite[1], megas.Scizorite[2])elseif nick == "Blaziken" and getItemAttribute(item2.uid, "ehMega") thendoItemEraseAttribute(item2.uid, "ehMega")doItemEraseAttribute(item2.uid, "yHeldItem")doPlayerAddItem(cid, megas.Blaziken[1], megas.Blaziken[2])elseif nick == "Mawile" and getItemAttribute(item2.uid, "ehMega") thendoItemEraseAttribute(item2.uid, "ehMega")doItemEraseAttribute(item2.uid, "yHeldItem")doPlayerAddItem(cid, megas.Mawlite[1], megas.Mawlite[2])elseif nick == "Gardevoir" and getItemAttribute(item2.uid, "ehMega") thendoItemEraseAttribute(item2.uid, "ehMega")doItemEraseAttribute(item2.uid, "yHeldItem")doPlayerAddItem(cid, megas.Gardevoirite[1], megas.Gardevoirite[2])elseif nick == "Absol" and getItemAttribute(item2.uid, "ehMega") thendoItemEraseAttribute(item2.uid, "ehMega")doItemEraseAttribute(item2.uid, "yHeldItem")doPlayerAddItem(cid, megas.Absolite[1], megas.Absolite[2])elseif nick == "Lucario" and getItemAttribute(item2.uid, "ehMega") thendoItemEraseAttribute(item2.uid, "ehMega")doItemEraseAttribute(item2.uid, "yHeldItem")doPlayerAddItem(cid, megas.Lucarionite[1], megas.Lucarionite[2])elseif nick == "Sceptile" and getItemAttribute(item2.uid, "ehMega") thendoItemEraseAttribute(item2.uid, "ehMega")doItemEraseAttribute(item2.uid, "yHeldItem")doPlayerAddItem(cid, megas.Sceptilite[1], megas.Sceptile[2])elseif nick == "Swampert" and getItemAttribute(item2.uid, "ehMega") thendoItemEraseAttribute(item2.uid, "ehMega")doItemEraseAttribute(item2.uid, "yHeldItem")doPlayerAddItem(cid, megas.Swampertile[1], megas.Swampertile[2])elsedoSendMsg(cid, megas.msgFail)return trueendend-- TUTORIAL DE COMO ADICIONAR NOVOS MEGAS:--ADICIONE COMO NO EXEMPLO, DEPOIS DO ELSEIF DO WAMPERT:--elseif nick == "Nome do Pokemon" and getItemAttribute(item2.uid, "ehMega") then--doItemEraseAttribute(item2.uid, "ehMega")--doItemEraseAttribute(item2.uid, "yHeldItem")--doPlayerAddItem(cid, megas.Nome da Mega Stone[1], megas.Nome da Mega Stone[2])--DEPOIS LA EM CIMA NA TABELA MEGAS = {} VOCÊS ADICIONAM O NOME DA MEGA STONE, IGUAL VCS COLOCARAM EMBAIXO, EXEMPLO FEITO:(SEMPRE ADICIONANDO VIRGULA NO PENULTIMO ITEM DA TABELA)-- local megas = {-- msgFail = "msg",-- Sableyite = {17480, 1}--}--elseif nick == "Sableye" and getItemAttribute(item2.uid, "ehMega") then--doItemEraseAttribute(item2.uid, "ehMega")--doItemEraseAttribute(item2.uid, "yHeldItem")--doPlayerAddItem(cid, megas.Sableyite[1], megas.Sableyite[2]) a tag do actions xml: <action itemid="id do seu item" event="script" value="remover.lua" allowfaruse="1"/> Bom, é isso, o script ficou grande, mas como prometido ta ai, já está configurado com os megas e ids atuais, não precisa mudar nada, porem, se quiserem adicionar novos megas tem um tutorial no fim do script, como já disse ficou grande pois não consegui identificar automaticamente o atributo do mega na ball, então tive que configurar manualmente. Se algum scripter quiser e se habilitar a melhorar o código e se possível me disser como fez, e também ajudar o pessoal, eu também fico agradecido... Bom, é isso... @Pokemonultimatetwo, será que não teria como estar fazendo a seguinte modificação no script de quando usar a pedra da mega evolução a mesma sumir do inventario e quando remover ela a pedra voltar ? Porque ao usar a pedra em um determinado pokémon a pedra não some do inventario, ela continua la certo ? então o player que tiver a pedra pode muito bem usar e depois vende-la. #Edit: Esquece o que eu falei, eu estava com o char GOD, testei em player normal e a mesma foi removida após utilizar em algum pokémon. Editado Junho 17, 2016 por Justiceiro751 Link para o comentário https://xtibia.com/forum/topic/240989-dxp-exclusivo-poketibia-opensource/page/85/#findComment-1696685 Compartilhar em outros sites More sharing options...
Paladadin 2 Postado Junho 17, 2016 Share Postado Junho 17, 2016 @Justiceiro751 Só ir em data/lib/114-pokeSpells ai vc copia as skills de qualquer poke e coloca o nome "mega pidgeot" e coloca as skills dele o mega sceptile está da msm forma sem skill e acho q a maioria dos pokes da terceira geração. Link para o comentário https://xtibia.com/forum/topic/240989-dxp-exclusivo-poketibia-opensource/page/85/#findComment-1696686 Compartilhar em outros sites More sharing options...
Justiceiro751 20 Postado Junho 17, 2016 Share Postado Junho 17, 2016 9 minutos atrás, Paladadin disse: @Justiceiro751 Só ir em data/lib/114-pokeSpells ai vc copia as skills de qualquer poke e coloca o nome "mega pidgeot" e coloca as skills dele o mega sceptile está da msm forma sem skill e acho q a maioria dos pokes da terceira geração. As skills do Mega Pidgeot são os mesmo do Pidgeot normal ? Link para o comentário https://xtibia.com/forum/topic/240989-dxp-exclusivo-poketibia-opensource/page/85/#findComment-1696688 Compartilhar em outros sites More sharing options...
Paladadin 2 Postado Junho 17, 2016 Share Postado Junho 17, 2016 (editado) @Justiceiro751 Peguei o move set do shiny pidgeot da pxg, caso n tenha 1 dessas skills, só substituir por 1 equivalente.m1 - Quick Attack - level 100 - normal. (10s)m2 - Sand Attack - level 100 - ground. (8s)m3 - Whirlwind - level 100 - flying. (20s)m4 - Drill Peck - level 100 - flying. (12s)m5 - Wing Attack - level 102 - flying. (15s)m6 - Aeroblast - level 104 - flying. (60s)m7 - Hurricane - level 110 - flying. (40s)m8 - Agility - level 100 - normal. (30s)m9 - Roost - level 105 - flying. (80s) Editado Junho 17, 2016 por Paladadin Link para o comentário https://xtibia.com/forum/topic/240989-dxp-exclusivo-poketibia-opensource/page/85/#findComment-1696689 Compartilhar em outros sites More sharing options...
Justiceiro751 20 Postado Junho 17, 2016 Share Postado Junho 17, 2016 12 minutos atrás, Paladadin disse: @Justiceiro751 Segundo a pxg o move set do mega pidgeot é esse, caso n tenha 1 dessas skills, só substituir por 1 equivalente.m1 - Quick Attack - level 100 - normal. (10s)m2 - Sand Attack - level 100 - ground. (8s)m3 - Whirlwind - level 100 - flying. (20s)m4 - Drill Peck - level 100 - flying. (12s)m5 - Wing Attack - level 102 - flying. (15s)m6 - Aeroblast - level 104 - flying. (60s)m7 - Hurricane - level 110 - flying. (40s)m8 - Agility - level 100 - normal. (30s)m9 - Roost - level 105 - flying. (80s) Deu certo, muito obrigado pela ajuda. REP++ Link para o comentário https://xtibia.com/forum/topic/240989-dxp-exclusivo-poketibia-opensource/page/85/#findComment-1696691 Compartilhar em outros sites More sharing options...
Paladadin 2 Postado Junho 17, 2016 Share Postado Junho 17, 2016 @Justiceiro751 Nada, precisando tamo ai ^^, mas aconselho a esperar o Durant q ele ta fazendo novas skills iguais a do pxg. Link para o comentário https://xtibia.com/forum/topic/240989-dxp-exclusivo-poketibia-opensource/page/85/#findComment-1696692 Compartilhar em outros sites More sharing options...
Justiceiro751 20 Postado Junho 17, 2016 Share Postado Junho 17, 2016 2 minutos atrás, Paladadin disse: @Justiceiro751 Nada, precisando tamo ai ^^, mas aconselho a esperar o Durant q ele ta fazendo novas skills iguais a do pxg. Serio ? Ele vai postar aqui no tópico para colaborar com os membros ? Link para o comentário https://xtibia.com/forum/topic/240989-dxp-exclusivo-poketibia-opensource/page/85/#findComment-1696693 Compartilhar em outros sites More sharing options...
Posts Recomendados