Postado Maio 12, 2015 10 anos bom ja adicionei a box5 no items.xml e a foto tbm so que eu quando vou abrir a box nao funciona vou deixar a script dela aqui local a = { [11638] = {balltype = "normal", ballid = 11826, pokemons = {"Caterpie", "Weedle", "Pidgey", "Rattata", "Metapod", "Kakuna", "Spearow", "Diglett", "Zubat", "Paras", "Oddish", "Poliwag", "Bellsprout", "Magnemite", "Shellder", "Krabby", "Horsea", "Goldeen", "Magikarp", "Exeggcute"}}, [11639] = {balltype = "great", ballid = 11832, --alterado v1.3 pokemons = {"Bulbasaur", "Charmander", "Squirtle", "Pidgeotto", "Raticate", "Pikachu", "Butterfree", "Beedrill", "Ekans", "Arbok", "Gloom", "Nidoran Female", "Nidorina", "Nidoran Male", "Nidorino", "Golbat", "Clefairy", "Jigglypuff", "Venonat", "Sandshrew", "Vulpix", "Meowth", "Persian", "Psyduck", "Mankey", "Growlithe", "Poliwhirl", "Abra", "Machop", "Weepinbell", "Tentacool", "Geodude", "Ponyta", "Slowpoke", "Doduo", "Seel", "Grimer", "Muk", "Gastly", "Drowzee", "Voltorb", "Cubone", "Koffing", "Weezing", "Rhyhorn", "Seaking", "Staryu", "Eevee", "Omanyte", "Kabuto"}}, [11640] = {balltype = "super", ballid = 11835, pokemons = {"Ivysaur", "Charmeleon", "Wartortle", "Raichu", "Fearow", "Vileplume", "Venomoth", "Parasect", "Clefable", "Wigglytuff", "Sandslash", "Dugtrio", "Golduck", "Primeape", "Kadabra", "Machoke", "Victreebel", "Graveler", "Rapidash", "Slowbro", "Magneton", "Farfetch'd", "Dodrio", "Cloyster", "Haunter", "Onix", "Hypno", "Kingler", "Electrode", "Exeggutor", "Marowak", "Hitmonlee", "Hitmonchan", "Lickitung", "Chansey", "Tangela", "Kangaskhan", "Seadra", "Starmie", "Mr. Mime", "Pinsir", "Tauros", "Ditto", "Vaporeon", "Jolteon", "Flareon", "Porygon"}}, [11641] = {balltype = "ultra", ballid = 11829, pokemons = {"Venusaur", "Charizard", "Blastoise", "Pidgeot", "Nidoqueen", "Nidoking", "Ninetales", "Arcanine", "Poliwrath", "Alakazam", "Machamp", "Tentacruel", "Golem", "Dewgong", "Gengar", "Rhydon", "Scyther", "Jynx", "Electabuzz", "Magmar", "Gyarados", "Lapras", "Omastar", "Kabutops", "Aerodactyl", "Snorlax", "Dragonair", "Dragonite"}} [13106] = {balltype = "ultra", ballid = 11829, pokemons = {"Shiny Hitmonchan", "Shiny Hitmonlee", "Shiny Abra", "Miltank", "Shiny Scyther", "Scizor", "Magmar", "Venusaur", "Shiny Abra"}} } local extrastrength = 1.1 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)] --alterado v1.3 local btype = b.balltype if not pokeballs[btype] then return true end local gender = getRandomGenderByName(pokemon) local happy = 220 local leveltable = getPokemonExperienceTable(pokemon) 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..".") 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 box +5 e a 11641 Meu Servidor já está on quer entrar? aperte no banner. " />
Postado Maio 12, 2015 10 anos O tópico foi movido para a área correta, preste mais atenção da próxima vez! Leia as regras do fórum: http://tibiaking.com/forum/topic/1281-regras-gerais/?p=7680 Este tópico foi movido: De: "OTServ → Suporte OTServ → Suporte de OTServ Geral" Para: "OTServ → Suporte OTServ → Suporte de Servidores Derivados" ➥ Regras | Seções OTServ | Seções BOT
Postado Maio 12, 2015 10 anos aparece algun erro na distristo? Se Ajudei Clique no ao Lado, Não Custa nada !! e se resovel o problema não esqueça de em ____________________________________________________________________________________________________ Formação de Equipe para poketibia venha fazer parte dessa equipe [bAIXEM] Sprites de icones para poketibia
Postado Maio 13, 2015 10 anos Autor ja ageitei e ra um erro no script.xml um , por causa de uma , agente se fode Meu Servidor já está on quer entrar? aperte no banner. " />
Postado Maio 13, 2015 10 anos Aki não éra pra ter uma vírgula? [11641] = {balltype = "ultra", ballid = 11829, pokemons = {"Venusaur", "Charizard", "Blastoise", "Pidgeot", "Nidoqueen", "Nidoking", "Ninetales", "Arcanine", "Poliwrath", "Alakazam", "Machamp", "Tentacruel", "Golem", "Dewgong", "Gengar", "Rhydon", "Scyther", "Jynx", "Electabuzz", "Magmar", "Gyarados", "Lapras", "Omastar", "Kabutops", "Aerodactyl", "Snorlax", "Dragonair", "Dragonite"}}, Substitua por esse /\, talvez funcione! ~Veja meus tópicos =D → Pokémon Zot Editado por Factur Final 80% → Quando poke morrer abrir TP por 30 segundos → Aumentando velocidade do player → Como criar cliente próprio (Com imagens) → Como criar uma quest (por SCRIPT) → Editando pokémons → [TinyTask] Explicação e tudo que você deve saber. → Adicionando o comando !bug → Adicionando o comando /buykit ~Projeto Antes e Depois ~~ → Umbreon - Antes e depois #1 → Esquilo - Antes e depois (Especial Snowsz)#2 → Lobo - Antes e Depois #3 → Entei - Antes e Depois #4 → Yveltal - Antes e Depois #5 → Morte - Antes e Depois #6
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.