Tá não tá funcionando mais
da erro no console?
Por gabrielbsales, 21 de ago. de 2013 em Tópicos Sem Resposta
info
Grupo: Infante
Registrado: 25/01/12
Posts: 1.6k
Reputação: +330

Tá não tá funcionando mais
da erro no console?
info
Grupo: Visconde
Registrado: 26/01/13
Posts: 266
Reputação: +174

Não, só quando clica que não acontece nada
info
Grupo: Herói
Registrado: 14/12/10
Posts: 3.6k
Reputação: +846
Gênero: Masculino

Por a caso você está clicando na box correta? Aparece alguma mensagem de cancel, algo do tipo?
info
Grupo: Visconde
Registrado: 26/01/13
Posts: 266
Reputação: +174

Não aparece nada
info
Grupo: Infante
Registrado: 25/01/12
Posts: 1.6k
Reputação: +330

cara..algo de errado voce está fazendo
sem erro ou algo relacionado a isso é impossivel eu te ajuda
good luck
info
Grupo: Visconde
Registrado: 26/01/13
Posts: 266
Reputação: +174

Mas nem modifiquei nada, é o que veio com o server.
info
Grupo: Infante
Registrado: 25/01/12
Posts: 1.6k
Reputação: +330

vamo faze 1 test
vamos ve se é o script q ta dando erro ou a box que ta "bugada".. o ITEM dela.. ;x
testa esse script, clica no item e veja no executavel se mando 1 msg
"testando se o item.id da box tá certo"
se sim, retorna a msg que irei vereficar o script para chegar no erro ;p
local a = {
[11638] = {balltype = "normal", ballid = 11826,
pokemons = {"Shiny Tangela", "Shiny Venusaur", "Shiny Blastoise", "Shiny Tentacruel", "Shiny Charizard", "Shiny Arcanine", "Shiny Alakazam", "Shiny Abra", "Shiny Onix", "Shiny Marowak", "Shiny Muk", "Shiny Venomoth", "Shiny Raichu", "Shiny Electabuzz"}},
[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)
print("testando se o item.id da box tá certo")
end
Editado Agosto 21 por StyloMaldoso
info
Grupo: Visconde
Registrado: 26/01/13
Posts: 266
Reputação: +174

Stylo, mostrou a mensagem na distro.
Editado Agosto 21 por gabrielbsales
info
Grupo: Conde
Registrado: 25/04/12
Posts: 752
Reputação: +125
Gênero: Masculino

"se sim, retorna a msg que irei vereficar o script para chegar no erro ;p"
Não entendeu neh jovem?
info
Grupo: Infante
Registrado: 25/01/12
Posts: 1.6k
Reputação: +330

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"}},
[13678] = {balltype = "normal", ballid = 11826, -- Ditto BOX
pokemons = {"Ditto"}}
}
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)]
local btype = b.balltype
if not pokeballs[btype] then return true end
doPlayerSendTextMessage(cid, 27, "You opened a pokemon box!")
doSendMagicEffect(getThingPos(cid), 29)
addPokeToPlayer(cid, pokemon, 0, nil, btype)
doRemoveItem(item.uid, 1)
return true
end
info
Grupo: Visconde
Registrado: 26/01/13
Posts: 266
Reputação: +174

Stylo, vlw, funcionou ^^
info
Grupo: Herói
Registrado: 14/12/10
Posts: 3.6k
Reputação: +846
Gênero: Masculino

Tópico movido para a seção de dúvidas e pedidos resolvidos.
info
Grupo: Campones
Registrado: 06/07/13
Posts: 3
Reputação: 0

por favor alguem me passa um servidor de poketibia com as boxs funcionando vlw.
info
Grupo: Herói
Registrado: 28/11/10
Posts: 3.4k
Reputação: +585
Gênero: Masculino

info
Grupo: Visconde
Registrado: 26/01/13
Posts: 266
Reputação: +174
Bom, as prizes boxes não estão funcionando.
Script no actions:
local a = { [11638] = {balltype = "normal", ballid = 11826, pokemons = {"Shiny Tangela", "Shiny Venusaur", "Shiny Blastoise", "Shiny Tentacruel", "Shiny Charizard", "Shiny Arcanine", "Shiny Alakazam", "Shiny Abra", "Shiny Onix", "Shiny Marowak", "Shiny Muk", "Shiny Venomoth", "Shiny Raichu", "Shiny Electabuzz"}}, [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] then 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 endNo items está:
<item id="11638" article="a" name="pokemon prize box +1"> <attribute key="description" value="What poke surprise is hidden in this box?" /> </item> <item id="11639" article="a" name="pokemon prize box +2"> <attribute key="description" value="What poke surprise is hidden in this box?" /> </item> <item id="11640" article="a" name="pokemon prize box +3"> <attribute key="description" value="What poke surprise is hidden in this box?" /> </item> <item id="11641" article="a" name="pokemon prize box +4"> <attribute key="description" value="What poke surprise is hidden in this box?" /> </item>e no Actions.xml tá: