hamud 0 Postado Dezembro 9, 2013 Share Postado Dezembro 9, 2013 Ola primeiramente Bom dia, tarde, noite. Enfim estou com um server base que baixei aqui no fórum de poketibia chamado PxVzla, aparentemente o box system não funciona, eu dou um click na box e a seguinte mensagem aparece. "You cannot use this object" parece que a box está sem função , Então alguém pode me ajudar a desvendar isso ? Obrigado desde já Link para o comentário https://xtibia.com/forum/topic/225278-encerrado-box-system/ Compartilhar em outros sites More sharing options...
MaxxSilva 13 Postado Dezembro 9, 2013 Share Postado Dezembro 9, 2013 vá em action/action.xml e verifique se está esta seguinte tag: <action itemid="xxx" event="script" value="box.lua"/> --- o xxx é o id do item e no action/script/box.lua local a = {[xxx] = {balltype = "normal", ballid = 11826,pokemons = {"Slowpoke", "Magnemite", "Doduo", "Seel", "Grimer", "Gastly", "Drowzee", "Voltorb", "Cubone", "Koffing","Goldeen", "Vulpix", "Tentacool", "Bulbasaur", "Charmander", "Squirtle", "Butterfree", "Beedrill", "Metapod", "Kakuna","Raticate", "Spearow", "Ekans", "Abra", "Mankey", "Psyduck", "Pikachu", "Sandshrew", "Nidoran Female","Nidoran Male", "Zubat", "Diglett", "Venonat", "Meowth", "Poliwag", "Growlithe", "Machop", "Ponyta", "Geodude"}}, o xxx tem que ser posto na tag, se tiver mais itens voce tem que por na tag exemplo o xxx é 1230 então ficaria assim : <action itemid="1230" event="script" value="box.lua"/> se tivesse outro embaixo com outro id ex 2250 ficaria : <action itemid="1230;2250" event="script" value="box.lua"/> dá uma conferida ai. Link para o comentário https://xtibia.com/forum/topic/225278-encerrado-box-system/#findComment-1590730 Compartilhar em outros sites More sharing options...
hamud 0 Postado Dezembro 9, 2013 Autor Share Postado Dezembro 9, 2013 vá em action/action.xml e verifique se está esta seguinte tag: <action itemid="xxx" event="script" value="box.lua"/> --- o xxx é o id do item e no action/script/box.lua local a = { [xxx] = {balltype = "normal", ballid = 11826, pokemons = {"Slowpoke", "Magnemite", "Doduo", "Seel", "Grimer", "Gastly", "Drowzee", "Voltorb", "Cubone", "Koffing", "Goldeen", "Vulpix", "Tentacool", "Bulbasaur", "Charmander", "Squirtle", "Butterfree", "Beedrill", "Metapod", "Kakuna", "Raticate", "Spearow", "Ekans", "Abra", "Mankey", "Psyduck", "Pikachu", "Sandshrew", "Nidoran Female", "Nidoran Male", "Zubat", "Diglett", "Venonat", "Meowth", "Poliwag", "Growlithe", "Machop", "Ponyta", "Geodude"}}, o xxx tem que ser posto na tag, se tiver mais itens voce tem que por na tag exemplo o xxx é 1230 então ficaria assim : <action itemid="1230" event="script" value="box.lua"/> se tivesse outro embaixo com outro id ex 2250 ficaria : <action itemid="1230;2250" event="script" value="box.lua"/> dá uma conferida ai. Está tudo certo, agora eu não sei oque é aqui está o box.lua local a = { [11638] = {balltype = "normal", ballid = 11826, pokemons = {"Slowpoke", "Magnemite", "Doduo", "Seel", "Grimer", "Gastly", "Drowzee", "Voltorb", "Cubone", "Koffing", "Goldeen", "Vulpix", "Tentacool", "Bulbasaur", "Charmander", "Squirtle", "Butterfree", "Beedrill", "Metapod", "Kakuna", "Raticate", "Spearow", "Ekans", "Abra", "Mankey", "Psyduck", "Pikachu", "Sandshrew", "Nidoran Female", "Nidoran Male", "Zubat", "Diglett", "Venonat", "Meowth", "Poliwag", "Growlithe", "Machop", "Ponyta", "Geodude"}}, [11639] = {balltype = "great", ballid = 11832, --alterado v1.3 pokemons = {"Pidgeotto", "Weepinbell", "Clefairy", "Omanyte", "Kabuto", "Arbok", "Raichu", "Nidorino", "Nidorina", "Dodrio", "Muk", "Golbat", "Gloom", "Parasect", "Venomoth", "Dugtrio", "Persian", "Poliwhirl", "Victreebel", "Machoke", "Graveler", "Slowbro", "Magneton", "Farfetch'd", "Haunter", "Kingler", "Electrode", "Weezing", "Rhyhorn", "Seadra", "Jigglypuff", "Seaking", "Tauros", "Starmie", "Eevee", "Dratini", "Charmeleon", "Wartortle", "Ivysaur"}}, [11640] = {balltype = "super", ballid = 11835, pokemons = {"Pidgeot", "Fearow", "Sandslash", "Ninetales", "Vileplume", "Primeape", "Golduck", "Kadabra", "Rapidash", "Clefable", "Wigglytuff", "Dewgong", "Onix", "Cloyster", "Hypno", "Exeggutor", "Marowak", "Hitmonchan", "Hitmonlee", "Lickitung", "Chansey", "Tangela", "Mr. Mime", "Pinsir", "Vaporeon", "Jolteon", "Flareon", "Porygon", "Dragonair"}}, [11641] = {balltype = "ultra", ballid = 11829, pokemons = {"Shiny Hitmonchan", "Shiny Hitmonlee", "Shiny Abra", "Dragonite", "Snorlax", "Kabutops", "Omastar", "Ditto", "Lapras", "Gyarados", "Magmar", "Electabuzz", "Jynx", "Scyther", "Kangaskhan", "Golem", "Venusaur", "Machamp", "Poliwrath", "Arcanine", "Nidoking", "Nidoqueen", "Charizard", "Blastoise", "Tentacruel", "Alakazam", "Gengar", "Rhydon"}} } function onUse(cid, item, frompos, item2, topos) local b = a[item.itemid] if not b then return true end local pokemon = b.pokemons[math.random(#b.pokemons)] local btype = b.balltype if not pokeballs[btype] then return true end local gender = getRandomGenderByName(pokemon) local happy = 220 local ball = 0 local sendToDepot = false --alterado v1.6 if getCreatureMana(cid) >= 6 or not hasSpaceInContainer(getPlayerSlotItem(cid, 3).uid) then sendToDepot = true ball = doCreateItemEx(b.ballid) --alterado v1.3 else ball = item.uid end doItemSetAttribute(ball, "poke", pokemon) doItemSetAttribute(ball, "hp", 1) doItemSetAttribute(ball, "happy", happy) doItemSetAttribute(ball, "gender", gender) if pokemon == "Hitmonchan" or pokemon == "Shiny Hitmonchan" then doItemSetAttribute(ball, "hands", 0) end doItemSetAttribute(ball, "description", "Contains a "..pokemon..".") doItemSetAttribute(ball, "fakedesc", "Contains a "..pokemon..".") doItemSetAttribute(ball, "boost", 50) doPlayerSendTextMessage(cid, 27, "You opened a pokemon prize box +"..item.itemid - (11637).."!") doPlayerSendTextMessage(cid, 27, "The prize pokemon was a "..pokemon..", congratulations!") if sendToDepot then doPlayerSendMailByName(getCreatureName(cid), ball, 1) --alterado v1.3 doPlayerSendTextMessage(cid, 27, "You are already holding six pokemons, so your new pokemon was sent to your depot.") doRemoveItem(item.uid) else doTransformItem(ball, pokeballs[btype].on) end doSendMagicEffect(getThingPos(cid), 29) return true end A bendita mensagem continua "You cannot use this object", Link para o comentário https://xtibia.com/forum/topic/225278-encerrado-box-system/#findComment-1590822 Compartilhar em outros sites More sharing options...
Malusz 0 Postado Dezembro 9, 2013 Share Postado Dezembro 9, 2013 Tenta essa: local a = { [11638] = {balltype = "normal", ballid = 11826, pokemons = {"Slowpoke", "Magnemite", "Doduo", "Seel", "Grimer", "Gastly", "Drowzee", "Voltorb", "Cubone", "Koffing", "Goldeen", "Vulpix", "Tentacool", "Bulbasaur", "Charmander", "Squirtle", "Butterfree", "Beedrill", "Metapod", "Kakuna", "Raticate", "Spearow", "Ekans", "Abra", "Mankey", "Psyduck", "Pikachu", "Sandshrew", "Nidoran Female", "Nidoran Male", "Zubat", "Diglett", "Venonat", "Meowth", "Poliwag", "Growlithe", "Machop", "Ponyta", "Geodude"}}, [11639] = {balltype = "great", ballid = 11832, pokemons = {"Pidgeotto", "Weepinbell", "Clefairy", "Omanyte", "Kabuto", "Arbok", "Raichu", "Nidorino", "Nidorina", "Dodrio", "Muk", "Golbat", "Gloom", "Parasect", "Venomoth", "Dugtrio", "Persian", "Poliwhirl", "Victreebel", "Machoke", "Graveler", "Slowbro", "Magneton", "Farfetch'd", "Haunter", "Kingler", "Electrode", "Weezing", "Rhyhorn", "Seadra", "Jigglypuff", "Seaking", "Tauros", "Starmie", "Eevee", "Dratini", "Charmeleon", "Wartortle", "Ivysaur"}}, [11640] = {balltype = "super", ballid = 11835, pokemons = {"Pidgeot", "Fearow", "Sandslash", "Ninetales", "Vileplume", "Primeape", "Golduck", "Kadabra", "Rapidash", "Clefable", "Wigglytuff", "Dewgong", "Onix", "Cloyster", "Hypno", "Exeggutor", "Marowak", "Hitmonchan", "Hitmonlee", "Lickitung", "Chansey", "Tangela", "Mr. Mime", "Pinsir", "Vaporeon", "Jolteon", "Flareon", "Porygon", "Dragonair"}}, [11641] = {balltype = "ultra", ballid = 11829, pokemons = {"Shiny Hitmonchan", "Shiny Hitmonlee", "Shiny Abra", "Dragonite", "Snorlax", "Kabutops", "Omastar", "Ditto", "Lapras", "Gyarados", "Magmar", "Electabuzz", "Jynx", "Scyther", "Kangaskhan", "Golem", "Venusaur", "Machamp", "Poliwrath", "Arcanine", "Nidoking", "Nidoqueen", "Charizard", "Blastoise", "Tentacruel", "Alakazam", "Gengar", "Rhydon"}} } local happy = 220 function onUse(cid, item, frompos, item2, topos) local b = a[item.itemid] if not b then return true end local pokemon = b.pokemons[math.random(#b.pokemons)] if not pokes[pokemon] local btype = b.balltype if not pokeballs[btype] then return true end doPlayerSendTextMessage(cid, 27, "You opened a pokemon prize box +"..item.itemid - (11637).."!") doPlayerSendTextMessage(cid, 27, "The prize pokemon was a "..pokemon..", congratulations!") doSendMagicEffect(getThingPos(cid), 29) addPokeToPlayer(cid, pokemon, 0, nil, btype) --alterado v1.9 doRemoveItem(item.uid, 1) return true end Link para o comentário https://xtibia.com/forum/topic/225278-encerrado-box-system/#findComment-1590849 Compartilhar em outros sites More sharing options...
hamud 0 Postado Dezembro 9, 2013 Autor Share Postado Dezembro 9, 2013 Tenta essa: local a = { [11638] = {balltype = "normal", ballid = 11826, pokemons = {"Slowpoke", "Magnemite", "Doduo", "Seel", "Grimer", "Gastly", "Drowzee", "Voltorb", "Cubone", "Koffing", "Goldeen", "Vulpix", "Tentacool", "Bulbasaur", "Charmander", "Squirtle", "Butterfree", "Beedrill", "Metapod", "Kakuna", "Raticate", "Spearow", "Ekans", "Abra", "Mankey", "Psyduck", "Pikachu", "Sandshrew", "Nidoran Female", "Nidoran Male", "Zubat", "Diglett", "Venonat", "Meowth", "Poliwag", "Growlithe", "Machop", "Ponyta", "Geodude"}}, [11639] = {balltype = "great", ballid = 11832, pokemons = {"Pidgeotto", "Weepinbell", "Clefairy", "Omanyte", "Kabuto", "Arbok", "Raichu", "Nidorino", "Nidorina", "Dodrio", "Muk", "Golbat", "Gloom", "Parasect", "Venomoth", "Dugtrio", "Persian", "Poliwhirl", "Victreebel", "Machoke", "Graveler", "Slowbro", "Magneton", "Farfetch'd", "Haunter", "Kingler", "Electrode", "Weezing", "Rhyhorn", "Seadra", "Jigglypuff", "Seaking", "Tauros", "Starmie", "Eevee", "Dratini", "Charmeleon", "Wartortle", "Ivysaur"}}, [11640] = {balltype = "super", ballid = 11835, pokemons = {"Pidgeot", "Fearow", "Sandslash", "Ninetales", "Vileplume", "Primeape", "Golduck", "Kadabra", "Rapidash", "Clefable", "Wigglytuff", "Dewgong", "Onix", "Cloyster", "Hypno", "Exeggutor", "Marowak", "Hitmonchan", "Hitmonlee", "Lickitung", "Chansey", "Tangela", "Mr. Mime", "Pinsir", "Vaporeon", "Jolteon", "Flareon", "Porygon", "Dragonair"}}, [11641] = {balltype = "ultra", ballid = 11829, pokemons = {"Shiny Hitmonchan", "Shiny Hitmonlee", "Shiny Abra", "Dragonite", "Snorlax", "Kabutops", "Omastar", "Ditto", "Lapras", "Gyarados", "Magmar", "Electabuzz", "Jynx", "Scyther", "Kangaskhan", "Golem", "Venusaur", "Machamp", "Poliwrath", "Arcanine", "Nidoking", "Nidoqueen", "Charizard", "Blastoise", "Tentacruel", "Alakazam", "Gengar", "Rhydon"}} } local happy = 220 function onUse(cid, item, frompos, item2, topos) local b = a[item.itemid] if not b then return true end local pokemon = b.pokemons[math.random(#b.pokemons)] if not pokes[pokemon] local btype = b.balltype if not pokeballs[btype] then return true end doPlayerSendTextMessage(cid, 27, "You opened a pokemon prize box +"..item.itemid - (11637).."!") doPlayerSendTextMessage(cid, 27, "The prize pokemon was a "..pokemon..", congratulations!") doSendMagicEffect(getThingPos(cid), 29) addPokeToPlayer(cid, pokemon, 0, nil, btype) --alterado v1.9 doRemoveItem(item.uid, 1) return true end Não amigo, continua mesmo Link para o comentário https://xtibia.com/forum/topic/225278-encerrado-box-system/#findComment-1590923 Compartilhar em outros sites More sharing options...
MaxxSilva 13 Postado Dezembro 9, 2013 Share Postado Dezembro 9, 2013 qual box não da para abrir , todas? Poste algum print , e outra pergunta quando vc tenta abrir e vc vê o launcher do seu mapa aparece algum erro? Link para o comentário https://xtibia.com/forum/topic/225278-encerrado-box-system/#findComment-1590929 Compartilhar em outros sites More sharing options...
hamud 0 Postado Dezembro 9, 2013 Autor Share Postado Dezembro 9, 2013 nada, a unica mensagem é no cliente como se fosse um item sem função.... Link para o comentário https://xtibia.com/forum/topic/225278-encerrado-box-system/#findComment-1590946 Compartilhar em outros sites More sharing options...
Gabrieltxu 738 Postado Dezembro 16, 2013 Share Postado Dezembro 16, 2013 Tópico movido para a seção de dúvidas e pedidos resolvidos. Link para o comentário https://xtibia.com/forum/topic/225278-encerrado-box-system/#findComment-1593057 Compartilhar em outros sites More sharing options...
Stigal 585 Postado Abril 21, 2018 Share Postado Abril 21, 2018 A questão neste tópico de suporte foi encerrada por falta de respostas. Este tópico está fechado e foi movido para Suporte - Tópicos Sem Resposta. + Caso a dúvida não tenha sido resolvida você poderá criar outro tópico solicitando ajuda. * Lembre-se que é permitido dar UP no tópico a cada 24 horas para assim o destacar e manter movimentado. Link para o comentário https://xtibia.com/forum/topic/225278-encerrado-box-system/#findComment-1735957 Compartilhar em outros sites More sharing options...
Posts Recomendados