Ir para conteúdo
  • Cadastre-se

Como coloco um pokemon para ser premio de uma box ?


Posts Recomendados

Boa noite galera do TK, estou terminando o meu servidor, fiz as quests os pokemons e tal, sendo que eu não sei como coloco um pokemon para ser premio de um box, eu ja tenho as 15 box que eu gostaria adicionadas, sendo que não sei como faço para no momento que o player abrir o baul, vim o pokemon que eu gostaria dentro de determinada box.

 

" Exemplo: O player vai abrir o baul recebe a box 5 e dentro da box 5 quando ele abrir vai vim um blastoise "

 

 

Me ajudem ae por favor, eu uso o pokemon zot do Factur. Vlw abraço 

Link para o post
Compartilhar em outros sites

qual a sua base

Se Ajudei Clique no rep_up.png ao Lado, Não Custa nada  :D!! 

e se resovel o problema não esqueça de em EEkog5AK0.png  :D 

 

____________________________________________________________________________________________________

 

Formação de Equipe para poketibia venha fazer parte dessa equipe

 

[bAIXEM] Sprites de icones para poketibia

Link para o post
Compartilhar em outros sites

qual a sua base

 

Estranho o.O esse é um script bem comum nos servidores de poketibia e.e 

qual base você usa ? .-.

Uso a Base pokemon zot do Factur a 80%. Eu avisei ali em cima pow 

Link para o post
Compartilhar em outros sites

tenta pegar o script dos pokémons inicias, 

criar um novo do msm tipo, e adc o poke q tu quer e por a posição x,y,z

dai dps vai lá e adc nakele outro treko de script q esqueci o nome >_>

Gente, não dou suporte via mp, caso queira ajuda crie um tópico no fórum!!!
youtube.png  10869_64x64.png
Ajudei? Clicar em gostar não vai te matar

Link para o post
Compartilhar em outros sites

Dá pra colocar direto no baú.
Em "Data/actions/scripts" copie e cole um arquivo.LUA e renomeie para nome_do_arquivo.lua, apague tudo e cole:

local t = {
    storage = 34444, -- Storage da quest, só mexa se necessário.
    pokemon = "Ditto", -- Nome do pokémon que irá ganhar.
    level = 100, -- Level necessário para fazer a quest.
    ball = "normal" -- Tipo da ball.
}

function onUse(cid)
    local gender = math.random(0, 1)
    if getPlayerStorageValue(cid, t.storage) < 1 then
       if getPlayerLevel(cid) >= t.level then
          doSendMagicEffect(getPlayerPosition(cid), 12)
          doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você encontrou um "..t.pokemon..".")
          addPokeToPlayer(cid, t.pokemon, 0, gender, t.ball)
          setPlayerStorageValue(cid, t.storage, 1)
       else
          doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Você precisa ser level "..t.level.." para ganhar a recompensa.")
       end
    else
       doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Você já pegou sua recompensa.")
    end
   return true
end

Em "Data/actions" abra o actions.xml e cole a tag:

 <action actionid="actionID_desejada" event="script" value="nome_do_arquivo.lua"/>

Ai é só colocar a actionID desejada no baú.

Link para o post
Compartilhar em outros sites

Ainda nao consegui resolver... Vou deixar aqui um exemplo de uma box 

 

function onUse (cid,item,frompos,item2,topos)

pos = {x=1053, y=1053, z=7}
pos2 = getPlayerPosition(cid)
 
if getPlayerLevel(cid) >= 10 then
if item.uid == 9050 then
queststatus = getPlayerStorageValue(cid,72712)
if queststatus == -1 then
doTeleportThing(cid,pos)
doPlayerSendTextMessage(cid,22,"Parabens Você pegou sua box ")
doPlayerAddItem(cid,11639,1)
setPlayerStorageValue(cid,72712,1)
doTeleportThing(cid, pos)
doSendMagicEffect(getThingPos(cid), 29)
else
doPlayerSendTextMessage(cid,22,"Vazio.")
end
end
else
doPlayerSendCancel(cid,'Somente level 10+ para abrir esse baú')
end
return 1
end
 
Link para o post
Compartilhar em outros sites

vá em no seu otserver/data/actions/script e abra o arquivo box. lua

 

deve ta assim

 


local a = {
[11638] = {
pokemons = {"Slowpoke", "Magnemite", "Doduo", "Seel", "Grimer", "Gastly", "Drowzee", "Voltorb",
"Cubone", "Koffing", "Cyndaquil", "Pidgeotto", "Weepinbell", "Wooper", "Dratini", "Dunsparce", "Pichu", "Slugma", "Remoraid", "Ledyba",
"Goldeen", "Vulpix", "Tentacool", "Bulbasaur", "Charmander", "Squirtle", "Metapod", "Kakuna",
"Teddiursa", "Chikorita", "Chinchou", "Cleffa", "Marill", "Natu", "Smoochum", "Phanpy", "Slugma",
"Ekans", "Abra", "Mankey", "Psyduck", "Sandshrew", "Kabuto", "Beedrill", "Omanyte", "Butterfree", "Snubbul", "Togepi",
"Zubat", "Diglett", "Venonat", "Shuckle", "Mareep",
"Meowth", "Poliwag", "Growlithe", "Machop", "Ponyta", "Geodude", "Hoothoot", "Pineco", "Sentret",
"Swinub", "Totodile"}},
[11639] = {pokemons = {"Skiploom", "Raticate", "Ariados", "Flaffy", "Delibird", "Fearow", "Clefairy", "Arbok",
"Nidorino", "Nidorina", "Elekid", "Magby", "Ledian",
"Dodrio", "Golbat", "Gloom", "Parasect", "Venomoth", "Dugtrio", "Persian",
"Poliwhirl", "Machoke", "Quilava", "Yanma",
"Graveler", "Slowbro", "Magneton", "Farfetch'd", "Haunter", "Kingler", "Electrode",
"Weezing", "Seadra", "Bayleef", "Croconaw", "Qwilfish", "Tyrogue",
"Jigglypuff", "Seaking", "Tauros", "Starmie", "Eevee", "Charmeleon",
"Wartortle", "Ivysaur", "Pikachu"}},
[11640] = {pokemons = {"Politoed", "Magcargo", "Noctowl", "Poliwrath", "Nidoking", "Pidgeot", "Sandslash", "Ninetales", "Vileplume",
"Primeape", "Nidoqueen", "Granbull", "Jumpluff", "Golduck", "Kadabra", "Rapidash", "Azumarill", "Murkrow",
"Clefable", "Wigglytuff", "Dewgong", "Onix", "Cloyster", "Hypno", "Exeggutor", "Marowak",
"Hitmonchan", "Quagsire", "Stantler", "Xatu", "Hitmonlee", "Bellossom", "Lanturn", "Pupitar", "Smeargle",
"Lickitung", "Golem", "Chansey", "Tangela", "Mr. Mime", "Pinsir", "Espeon", "Umbreon", "Vaporeon", "Jolteon",
"Flareon", "Porygon", "Dragonair", "Hitmontop", "Octillery", "Sneasel"}},
[11641] = {pokemons = {"Shiny Hitmonlee", "Shiny Hitmonchan", "Dragonite", "Snorlax", "Kabutops", "Omastar", "Kingdra",
"Ampharos", "Blissey", "Donphan", "Girafarig", "Mantine", "Miltank", "Porygon2", "Skarmory", "Lapras", "Gyarados", "Magmar", "Electabuzz", "Jynx", "Scyther", "Kangaskhan",
"Venusaur", "Crobat", "Heracross", "Meganium", "Piloswine", "Scizor",
"Machamp", "Arcanine", "Charizard", "Blastoise", "Tentacruel",
"Alakazam", "Feraligatr", "Houndoom",
"Gengar", "Rhydon", "Misdreavus", "Wobbuffet", "Raichu", "Slowking", "Steelix", "Sudowoodo", "Typhlosion", "Tyranitar", "Ursaring"}},
[12331] = {pokemons = {"Tropius","Electivire","Magmortar","Magnezone","Metagross","Milotic","Absol","Salamence","Wailord"}},
[1990] = {pokemons = {"Ditto"}},
[12227] = {pokemons = {"Shiny Crobat", "Shiny Magmar", "Shiny Giant Magikarp", "Shiny Venusaur", "Shiny Charizard", "Shiny Blastoise", "Shiny Arcanine", "Shiny Alakazam", "Shiny Ninetales",
"Shiny Gengar", "Shiny Scyther", "Shiny Rhydon", "Shiny Umbreon", "Shiny Pidgeot", "Shiny Raichu", "Shiny Tentacruel", "Shiny Ampharos", "Shiny Feraligatr", "Shiny Meganium",
"Shiny Jynx", "Shiny Electabuzz", "Shiny Gyarados", "Shiny Snorlax", "Shiny Tangela", "Shiny Ariados", "Shiny Politoed", "Shiny Typhlosion", "Shiny Tauros",
"Shiny Butterfree", "Shiny Beedrill", "Shiny Venomoth", "Shiny Espeon", "Shiny Magneton", "Shiny Onix", "Shiny Larvitar", "Shiny Pupitar", "Shiny Machamp",
"Shiny Golbat", "Shiny Kingler", "Shiny Dodrio", "Shiny Farfetch'd", "Shiny Parasect", "Shiny Pinsir", "Shiny Zubat", "Shiny Dratini", "Shiny Venonat",
"Shiny Electrode", "Shiny Muk", "Shiny Stantler", "Shiny Marowak", "Shiny Seadra", "Shiny Dragonair", "Shiny Mr. Mime"}}
}

local happy = 1000

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 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)
if useOTClient then
doCreatureExecuteTalkAction(cid, "/salvar")
end

return true
end

 

 

para add uma nova box basta você pega essa tag 

 

[11639] = {pokemons = {"Skiploom", "Raticate", "Ariados", "Flaffy", "Delibird", "Fearow", "Clefairy", "Arbok",
        "Nidorino", "Nidorina", "Elekid", "Magby", "Ledian",
        "Dodrio", "Golbat", "Gloom", "Parasect", "Venomoth", "Dugtrio", "Persian",
        "Poliwhirl", "Machoke", "Quilava", "Yanma",
        "Graveler", "Slowbro", "Magneton", "Farfetch'd", "Haunter", "Kingler", "Electrode",
        "Weezing", "Seadra", "Bayleef", "Croconaw", "Qwilfish", "Tyrogue",
        "Jigglypuff", "Seaking", "Tauros", "Starmie", "Eevee", "Charmeleon",
        "Wartortle", "Ivysaur", "Pikachu"}},

e mudar assim

[aqui o id da box] = {pokemons = {"aqui o nome dos pokemons seguindo os exemplos a cima"}},

Se Ajudei Clique no rep_up.png ao Lado, Não Custa nada  :D!! 

e se resovel o problema não esqueça de em EEkog5AK0.png  :D 

 

____________________________________________________________________________________________________

 

Formação de Equipe para poketibia venha fazer parte dessa equipe

 

[bAIXEM] Sprites de icones para poketibia

Link para o post
Compartilhar em outros sites

 

vá em no seu otserver/data/actions/script e abra o arquivo box. lua

 

deve ta assim

 

local a = {

[11638] = {

pokemons = {"Slowpoke", "Magnemite", "Doduo", "Seel", "Grimer", "Gastly", "Drowzee", "Voltorb",

"Cubone", "Koffing", "Cyndaquil", "Pidgeotto", "Weepinbell", "Wooper", "Dratini", "Dunsparce", "Pichu", "Slugma", "Remoraid", "Ledyba",

"Goldeen", "Vulpix", "Tentacool", "Bulbasaur", "Charmander", "Squirtle", "Metapod", "Kakuna",

"Teddiursa", "Chikorita", "Chinchou", "Cleffa", "Marill", "Natu", "Smoochum", "Phanpy", "Slugma",

"Ekans", "Abra", "Mankey", "Psyduck", "Sandshrew", "Kabuto", "Beedrill", "Omanyte", "Butterfree", "Snubbul", "Togepi",

"Zubat", "Diglett", "Venonat", "Shuckle", "Mareep",

"Meowth", "Poliwag", "Growlithe", "Machop", "Ponyta", "Geodude", "Hoothoot", "Pineco", "Sentret",

"Swinub", "Totodile"}},

[11639] = {pokemons = {"Skiploom", "Raticate", "Ariados", "Flaffy", "Delibird", "Fearow", "Clefairy", "Arbok",

"Nidorino", "Nidorina", "Elekid", "Magby", "Ledian",

"Dodrio", "Golbat", "Gloom", "Parasect", "Venomoth", "Dugtrio", "Persian",

"Poliwhirl", "Machoke", "Quilava", "Yanma",

"Graveler", "Slowbro", "Magneton", "Farfetch'd", "Haunter", "Kingler", "Electrode",

"Weezing", "Seadra", "Bayleef", "Croconaw", "Qwilfish", "Tyrogue",

"Jigglypuff", "Seaking", "Tauros", "Starmie", "Eevee", "Charmeleon",

"Wartortle", "Ivysaur", "Pikachu"}},

[11640] = {pokemons = {"Politoed", "Magcargo", "Noctowl", "Poliwrath", "Nidoking", "Pidgeot", "Sandslash", "Ninetales", "Vileplume",

"Primeape", "Nidoqueen", "Granbull", "Jumpluff", "Golduck", "Kadabra", "Rapidash", "Azumarill", "Murkrow",

"Clefable", "Wigglytuff", "Dewgong", "Onix", "Cloyster", "Hypno", "Exeggutor", "Marowak",

"Hitmonchan", "Quagsire", "Stantler", "Xatu", "Hitmonlee", "Bellossom", "Lanturn", "Pupitar", "Smeargle",

"Lickitung", "Golem", "Chansey", "Tangela", "Mr. Mime", "Pinsir", "Espeon", "Umbreon", "Vaporeon", "Jolteon",

"Flareon", "Porygon", "Dragonair", "Hitmontop", "Octillery", "Sneasel"}},

[11641] = {pokemons = {"Shiny Hitmonlee", "Shiny Hitmonchan", "Dragonite", "Snorlax", "Kabutops", "Omastar", "Kingdra",

"Ampharos", "Blissey", "Donphan", "Girafarig", "Mantine", "Miltank", "Porygon2", "Skarmory", "Lapras", "Gyarados", "Magmar", "Electabuzz", "Jynx", "Scyther", "Kangaskhan",

"Venusaur", "Crobat", "Heracross", "Meganium", "Piloswine", "Scizor",

"Machamp", "Arcanine", "Charizard", "Blastoise", "Tentacruel",

"Alakazam", "Feraligatr", "Houndoom",

"Gengar", "Rhydon", "Misdreavus", "Wobbuffet", "Raichu", "Slowking", "Steelix", "Sudowoodo", "Typhlosion", "Tyranitar", "Ursaring"}},

[12331] = {pokemons = {"Tropius","Electivire","Magmortar","Magnezone","Metagross","Milotic","Absol","Salamence","Wailord"}},

[1990] = {pokemons = {"Ditto"}},

[12227] = {pokemons = {"Shiny Crobat", "Shiny Magmar", "Shiny Giant Magikarp", "Shiny Venusaur", "Shiny Charizard", "Shiny Blastoise", "Shiny Arcanine", "Shiny Alakazam", "Shiny Ninetales",

"Shiny Gengar", "Shiny Scyther", "Shiny Rhydon", "Shiny Umbreon", "Shiny Pidgeot", "Shiny Raichu", "Shiny Tentacruel", "Shiny Ampharos", "Shiny Feraligatr", "Shiny Meganium",

"Shiny Jynx", "Shiny Electabuzz", "Shiny Gyarados", "Shiny Snorlax", "Shiny Tangela", "Shiny Ariados", "Shiny Politoed", "Shiny Typhlosion", "Shiny Tauros",

"Shiny Butterfree", "Shiny Beedrill", "Shiny Venomoth", "Shiny Espeon", "Shiny Magneton", "Shiny Onix", "Shiny Larvitar", "Shiny Pupitar", "Shiny Machamp",

"Shiny Golbat", "Shiny Kingler", "Shiny Dodrio", "Shiny Farfetch'd", "Shiny Parasect", "Shiny Pinsir", "Shiny Zubat", "Shiny Dratini", "Shiny Venonat",

"Shiny Electrode", "Shiny Muk", "Shiny Stantler", "Shiny Marowak", "Shiny Seadra", "Shiny Dragonair", "Shiny Mr. Mime"}}

}

local happy = 1000

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 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)

if useOTClient then

doCreatureExecuteTalkAction(cid, "/salvar")

end

return true

end

 

 

para add uma nova box basta você pega essa tag 

 

[11639] = {pokemons = {"Skiploom", "Raticate", "Ariados", "Flaffy", "Delibird", "Fearow", "Clefairy", "Arbok",
        "Nidorino", "Nidorina", "Elekid", "Magby", "Ledian",
        "Dodrio", "Golbat", "Gloom", "Parasect", "Venomoth", "Dugtrio", "Persian",
        "Poliwhirl", "Machoke", "Quilava", "Yanma",
        "Graveler", "Slowbro", "Magneton", "Farfetch'd", "Haunter", "Kingler", "Electrode",
        "Weezing", "Seadra", "Bayleef", "Croconaw", "Qwilfish", "Tyrogue",
        "Jigglypuff", "Seaking", "Tauros", "Starmie", "Eevee", "Charmeleon",
        "Wartortle", "Ivysaur", "Pikachu"}},

e mudar assim

[aqui o id da box] = {pokemons = {"aqui o nome dos pokemons seguindo os exemplos a cima"}},

 

No meu o arquivo Box esta assim 

 

local a = {

[11638] = {balltype = "normal", ballid = 11826,
        pokemons = {"Charizard"}},
[13163] = {balltype = "normal", ballid = 11826,
        pokemons = {"Shiny Heatran"}},
[13164] = {balltype = "ultra", ballid = 11826,
        pokemons = {"Genesect"}},
[13165] = {balltype = "normal", ballid = 11826,
        pokemons = {"Phione"}},
[13166] = {balltype = "ultra", ballid = 11826,
        pokemons = {"Solosis"}},
[13167] = {balltype = "ultra", ballid = 11826,
        pokemons = {"Uxie"}},
[11639] = {balltype = "normal", ballid = 11826,
        pokemons = {"Shiny Growlithe"}},
[11640] = {balltype = "normal", ballid = 11826,
        pokemons = {"Shiny Onix"}},
[11641] = {balltype = "normal", ballid = 11826,
        pokemons = {"Shiny Alakazam"}},
[12149] = {balltype = "normal", ballid = 11826,
        pokemons = {"Articuno"}},
[12150] = {balltype = "normal", ballid = 11826,
        pokemons = {"Zapdos"}},
[12151] = {balltype = "normal", ballid = 11826,
        pokemons = {"Moltres"}},
[12237] = {balltype = "normal", ballid = 11826,
        pokemons = {"Tyranitar"}},
[12227] = {balltype = "normal", ballid = 11826,
        pokemons = {"Speed Deoxys"}},
[12338] = {balltype = "normal", ballid = 11826,
        pokemons = {"Lugia"}},
[12283] = {balltype = "normal", ballid = 11826,
        pokemons = {"Suicune"}},
[12236] = {balltype = "normal", ballid = 11826,
        pokemons = {"Raikou"}},
[12271] = {balltype = "normal", ballid = 11826,
        pokemons = {"Entei"}},
[12194] = {balltype = "normal", ballid = 11826,
        pokemons = {"Mewtwo"}},
[12289] = {balltype = "normal", ballid = 11826,
        pokemons = {"Mew"}},
[9074] = {balltype = "normal", ballid = 11826,
        pokemons = {"Ho-oh"}},
[9075] = {balltype = "normal", ballid = 11826,
        pokemons = {"Celebi"}},
[5944] = {balltype = "normal", ballid = 11826,
        pokemons = {"Shiny Regice"}},
[4852] = {balltype = "normal", ballid = 11826,
        pokemons = {"Shiny Darkrai"}},
[12225] = {balltype = "normal", ballid = 11826,
        pokemons = {"Shiny Mewtwo"}},
[12250] = {balltype = "normal", ballid = 11826,
        pokemons = {"Shiny Kyogre"}},
[12238] = {balltype = "normal", ballid = 11826,
        pokemons = {"Shiny Groudon"}},
[12224] = {balltype = "normal", ballid = 11826,
        pokemons = {"Palkia"}},
[12339] = {balltype = "normal", ballid = 11826,
        pokemons = {"Shiny Zekrom"}},
[13189] = {balltype = "ultra", ballid = 11826,
        pokemons = {"Palkia"}},
[13190] = {balltype = "ultra", ballid = 11826,
        pokemons = {"Shiny Darkrai"}},
[13191] = {balltype = "ultra", ballid = 11826,
        pokemons = {"Azelf"}},
[13192] = {balltype = "ultra", ballid = 11826,
        pokemons = {"Manaphy"}},
[13193] = {balltype = "ultra", ballid = 11826,
        pokemons = {"Tropius"}},
}
 
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

Ali onde tem abaixo do Shiny darkrai, já fui eu quem adicionei. Eu consigo ate por a box dentro do baul, so nao consigo por o pokemon dentro da box 

Link para o post
Compartilhar em outros sites

No meu o arquivo Box esta assim 

Ali onde tem abaixo do Shiny darkrai, já fui eu quem adicionei. Eu consigo ate por a box dentro do baul, so nao consigo por o pokemon dentro da box 

simples basta fazer isso 

 

pega essa tag 

[13193] = {balltype = "ultra", ballid = 11826,
        pokemons = {"Tropius"}},
 
vermelho: id da sua box
Verde: tipo da bal
Azul: nome do pokemon 
exemplo:
[11111] = {balltype = "ultra", ballid = 11826,
        pokemons = {"blastoise"}},
 
ficando assim
 

local a = {

[11638] = {balltype = "normal", ballid = 11826,

pokemons = {"Charizard"}},

[13163] = {balltype = "normal", ballid = 11826,

pokemons = {"Shiny Heatran"}},

[13164] = {balltype = "ultra", ballid = 11826,

pokemons = {"Genesect"}},

[13165] = {balltype = "normal", ballid = 11826,

pokemons = {"Phione"}},

[13166] = {balltype = "ultra", ballid = 11826,

pokemons = {"Solosis"}},

[13167] = {balltype = "ultra", ballid = 11826,

pokemons = {"Uxie"}},

[11639] = {balltype = "normal", ballid = 11826,

pokemons = {"Shiny Growlithe"}},

[11640] = {balltype = "normal", ballid = 11826,

pokemons = {"Shiny Onix"}},

[11641] = {balltype = "normal", ballid = 11826,

pokemons = {"Shiny Alakazam"}},

[12149] = {balltype = "normal", ballid = 11826,

pokemons = {"Articuno"}},

[12150] = {balltype = "normal", ballid = 11826,

pokemons = {"Zapdos"}},

[12151] = {balltype = "normal", ballid = 11826,

pokemons = {"Moltres"}},

[12237] = {balltype = "normal", ballid = 11826,

pokemons = {"Tyranitar"}},

[12227] = {balltype = "normal", ballid = 11826,

pokemons = {"Speed Deoxys"}},

[12338] = {balltype = "normal", ballid = 11826,

pokemons = {"Lugia"}},

[12283] = {balltype = "normal", ballid = 11826,

pokemons = {"Suicune"}},

[12236] = {balltype = "normal", ballid = 11826,

pokemons = {"Raikou"}},

[12271] = {balltype = "normal", ballid = 11826,

pokemons = {"Entei"}},

[12194] = {balltype = "normal", ballid = 11826,

pokemons = {"Mewtwo"}},

[12289] = {balltype = "normal", ballid = 11826,

pokemons = {"Mew"}},

[9074] = {balltype = "normal", ballid = 11826,

pokemons = {"Ho-oh"}},

[9075] = {balltype = "normal", ballid = 11826,

pokemons = {"Celebi"}},

[5944] = {balltype = "normal", ballid = 11826,

pokemons = {"Shiny Regice"}},

[4852] = {balltype = "normal", ballid = 11826,

pokemons = {"Shiny Darkrai"}},

[12225] = {balltype = "normal", ballid = 11826,

pokemons = {"Shiny Mewtwo"}},

[12250] = {balltype = "normal", ballid = 11826,

pokemons = {"Shiny Kyogre"}},

[12238] = {balltype = "normal", ballid = 11826,

pokemons = {"Shiny Groudon"}},

[12224] = {balltype = "normal", ballid = 11826,

pokemons = {"Palkia"}},

[12339] = {balltype = "normal", ballid = 11826,

pokemons = {"Shiny Zekrom"}},

[13189] = {balltype = "ultra", ballid = 11826,

pokemons = {"Palkia"}},

[13190] = {balltype = "ultra", ballid = 11826,

pokemons = {"Shiny Darkrai"}},

[13191] = {balltype = "ultra", ballid = 11826,

pokemons = {"Azelf"}},

[13192] = {balltype = "ultra", ballid = 11826,

pokemons = {"Manaphy"}},

[13193] = {balltype = "ultra", ballid = 11826,

pokemons = {"Tropius"}},

[11111] = {balltype = "ultra", ballid = 11826,

pokemons = {"blastoise"}},

}

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

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

Se Ajudei Clique no rep_up.png ao Lado, Não Custa nada  :D!! 

e se resovel o problema não esqueça de em EEkog5AK0.png  :D 

 

____________________________________________________________________________________________________

 

Formação de Equipe para poketibia venha fazer parte dessa equipe

 

[bAIXEM] Sprites de icones para poketibia

Link para o post
Compartilhar em outros sites

 

simples basta fazer isso 

 

pega essa tag 

[13193] = {balltype = "ultra", ballid = 11826,
        pokemons = {"Tropius"}},
 
vermelho: id da sua box
Verde: tipo da bal
Azul: nome do pokemon 
exemplo:
[11111] = {balltype = "ultra", ballid = 11826,
        pokemons = {"blastoise"}},
 
ficando assim
 

local a = {

[11638] = {balltype = "normal", ballid = 11826,

pokemons = {"Charizard"}},

[13163] = {balltype = "normal", ballid = 11826,

pokemons = {"Shiny Heatran"}},

[13164] = {balltype = "ultra", ballid = 11826,

pokemons = {"Genesect"}},

[13165] = {balltype = "normal", ballid = 11826,

pokemons = {"Phione"}},

[13166] = {balltype = "ultra", ballid = 11826,

pokemons = {"Solosis"}},

[13167] = {balltype = "ultra", ballid = 11826,

pokemons = {"Uxie"}},

[11639] = {balltype = "normal", ballid = 11826,

pokemons = {"Shiny Growlithe"}},

[11640] = {balltype = "normal", ballid = 11826,

pokemons = {"Shiny Onix"}},

[11641] = {balltype = "normal", ballid = 11826,

pokemons = {"Shiny Alakazam"}},

[12149] = {balltype = "normal", ballid = 11826,

pokemons = {"Articuno"}},

[12150] = {balltype = "normal", ballid = 11826,

pokemons = {"Zapdos"}},

[12151] = {balltype = "normal", ballid = 11826,

pokemons = {"Moltres"}},

[12237] = {balltype = "normal", ballid = 11826,

pokemons = {"Tyranitar"}},

[12227] = {balltype = "normal", ballid = 11826,

pokemons = {"Speed Deoxys"}},

[12338] = {balltype = "normal", ballid = 11826,

pokemons = {"Lugia"}},

[12283] = {balltype = "normal", ballid = 11826,

pokemons = {"Suicune"}},

[12236] = {balltype = "normal", ballid = 11826,

pokemons = {"Raikou"}},

[12271] = {balltype = "normal", ballid = 11826,

pokemons = {"Entei"}},

[12194] = {balltype = "normal", ballid = 11826,

pokemons = {"Mewtwo"}},

[12289] = {balltype = "normal", ballid = 11826,

pokemons = {"Mew"}},

[9074] = {balltype = "normal", ballid = 11826,

pokemons = {"Ho-oh"}},

[9075] = {balltype = "normal", ballid = 11826,

pokemons = {"Celebi"}},

[5944] = {balltype = "normal", ballid = 11826,

pokemons = {"Shiny Regice"}},

[4852] = {balltype = "normal", ballid = 11826,

pokemons = {"Shiny Darkrai"}},

[12225] = {balltype = "normal", ballid = 11826,

pokemons = {"Shiny Mewtwo"}},

[12250] = {balltype = "normal", ballid = 11826,

pokemons = {"Shiny Kyogre"}},

[12238] = {balltype = "normal", ballid = 11826,

pokemons = {"Shiny Groudon"}},

[12224] = {balltype = "normal", ballid = 11826,

pokemons = {"Palkia"}},

[12339] = {balltype = "normal", ballid = 11826,

pokemons = {"Shiny Zekrom"}},

[13189] = {balltype = "ultra", ballid = 11826,

pokemons = {"Palkia"}},

[13190] = {balltype = "ultra", ballid = 11826,

pokemons = {"Shiny Darkrai"}},

[13191] = {balltype = "ultra", ballid = 11826,

pokemons = {"Azelf"}},

[13192] = {balltype = "ultra", ballid = 11826,

pokemons = {"Manaphy"}},

[13193] = {balltype = "ultra", ballid = 11826,

pokemons = {"Tropius"}},

[11111] = {balltype = "ultra", ballid = 11826,
        pokemons = {"blastoise"}},
}

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

 

 

Justamente, esta do tropius já fui eu quem fiz kkkkkkkk por incrível que pareça 

Link para o post
Compartilhar em outros sites

Justamente, esta do tropius já fui eu quem fiz kkkkkkkk por incrível que pareça 

 

tenta add a tag no action.xml

 

<action itemid="1990" event="script" value="box.lua"/>

 

ali em vermelho o id da box

Se Ajudei Clique no rep_up.png ao Lado, Não Custa nada  :D!! 

e se resovel o problema não esqueça de em EEkog5AK0.png  :D 

 

____________________________________________________________________________________________________

 

Formação de Equipe para poketibia venha fazer parte dessa equipe

 

[bAIXEM] Sprites de icones para poketibia

Link para o post
Compartilhar em outros sites

tenta add a tag no action.xml

 

<action itemid="1990" event="script" value="box.lua"/>

 

ali em vermelho o id da box

Mano pior que ja fiz tudo isto, agora de qualquer forma só quero poder adicionar meu pokemon como premio. Somente ! 

Link para o post
Compartilhar em outros sites
  • 1 year later...

Cara si vç ja add 

[11111] = {balltype = "ultra", ballid = 11826,

pokemons = {"blastoise"}},

}

Apenas coloque o id no ball do map edito é pronto

Link para o post
Compartilhar em outros sites

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

×   Você colou conteúdo com formatação.   Remover formatação

  Apenas 75 emojis são permitidos.

×   Seu link foi automaticamente incorporado.   Mostrar como link

×   Seu conteúdo anterior foi restaurado.   Limpar o editor

×   Não é possível colar imagens diretamente. Carregar ou inserir imagens do URL.

  • Quem Está Navegando   0 membros estão online

    Nenhum usuário registrado visualizando esta página.

×
×
  • Criar Novo...

Informação Importante

Confirmação de Termo