BrunooMaciell 85 Postado Novembro 12, 2013 Share Postado Novembro 12, 2013 Minha duvida e relacionado ao boost system !! eu queria por pra cada boost stone deixa-se o pokemon+10 !! Ex: 1 - boost stone = +10 2 - boost stone = +20 e eu nao sei se edita isto pela script boost.lua ou a stone em si tem sua script propria mais por caso vou posta minha boost.lua ^^ SCRIPT local ballslot = 12355local ballslot_run = 12352local stoneslot = 12354local stoneslot_run = 12353local button = 12356local button_run = 12357function isRunning(id)if isInArray({button_run, stoneslot_run, ballslot_run}, id) thenreturn trueendreturn falseendboost_stones = {["Bulbasaur"] = {leaf, boostStone},["Ivysaur"] = {leaf, boostStone},["Venusaur"] = {leaf, boostStone},["Charmander"] = {fire, boostStone},["Charmeleon"] = {fire, boostStone},["Charizard"] = {fire, boostStone},["Squirtle"] = {water, boostStone},["Wartortle"] = {water, boostStone},["Blastoise"] = {water, boostStone},["Caterpie"] = {coccon, boostStone},["Metapod"] = {coccon, boostStone},["Butterfree"] = {coccon, boostStone},["Weedle"] = {coccon, boostStone},["Kakuna"] = {coccon, boostStone},["Beedrill"] = {coccon, boostStone},["Pidgey"] = {heart, boostStone},["Pidgeotto"] = {heart, boostStone},["Pidgeot"] = {heart, boostStone},["Rattata"] = {heart, boostStone},["Raticate"] = {heart, boostStone},["Spearow"] = {heart, boostStone},["Fearow"] = {heart, boostStone},["Ekans"] = {venom, boostStone},["Arbok"] = {venom, boostStone},["Pikachu"] = {thunder, boostStone},["Raichu"] = {thunder, boostStone},["Sandshrew"] = {earth, boostStone},["Sandslash"] = {earth, boostStone},["Nidoran Female"] = {venom, boostStone},["Nidorina"] = {venom, boostStone},["Nidoqueen"] = {venom, earth, boostStone},["Nidoran Male"] = {venom, boostStone},["Nidorino"] = {venom, boostStone},["Nidoking"] = {venom, earth, boostStone},["Clefairy"] = {heart, boostStone},["Clefable"] = {heart, boostStone},["Vulpix"] = {fire, boostStone},["Ninetales"] = {fire, boostStone},["Jigglypuff"] = {heart, boostStone},["Wigglytuff"] = {heart, boostStone},["Zubat"] = {venom, boostStone},["Golbat"] = {venom, boostStone},["Oddish"] = {leaf, venom, boostStone},["Gloom"] = {leaf, venom, boostStone},["Vileplume"] = {leaf, venom, boostStone},["Paras"] = {coccon, leaf, boostStone},["Parasect"] = {coccon, leaf, boostStone},["Venonat"] = {coccon, venom, boostStone},["Venomoth"] = {coccon, venom, boostStone},["Diglett"] = {earth, boostStone},["Dugtrio"] = {earth, boostStone},["Meowth"] = {heart, boostStone},["Persian"] = {heart, boostStone},["Psyduck"] = {water, boostStone},["Golduck"] = {water, enigma, boostStone},["Mankey"] = {punch, boostStone},["Primeape"] = {punch, boostStone},["Growlithe"] = {fire, boostStone},["Arcanine"] = {fire, boostStone},["Poliwag"] = {water, boostStone},["Poliwhirl"] = {water, boostStone},["Poliwrath"] = {water, punch, boostStone},["Abra"] = {enigma, boostStone},["Kadabra"] = {enigma, boostStone},["Alakazam"] = {enigma, boostStone},["Machop"] = {punch, boostStone},["Machoke"] = {punch, boostStone},["Machamp"] = {punch, boostStone},["Bellsprout"] = {leaf, venom, boostStone},["Weepinbell"] = {leaf, venom, boostStone},["Victreebel"] = {leaf, venom, boostStone},["Tentacool"] = {water, venom, boostStone},["Tentacruel"] = {water, venom, boostStone},["Geodude"] = {earth, rock, boostStone},["Graveler"] = {earth, rock, boostStone},["Golem"] = {earth, rock, boostStone},["Ponyta"] = {fire, boostStone},["Rapidash"] = {fire, boostStone},["Slowpoke"] = {water, enigma, boostStone},["Slowbro"] = {water, enigma, boostStone},["Magnemite"] = {thunder, metal, boostStone},["Magneton"] = {thunder, metal, boostStone},["Farfetch'd"] = {heart, boostStone},["Doduo"] = {heart, boostStone},["Dodrio"] = {heart, boostStone},["Seel"] = {water, ice, boostStone},["Dewgong"] = {water, ice, boostStone},["Grimer"] = {venom, boostStone},["Muk"] = {venom, boostStone},["Shellder"] = {water, ice, boostStone},["Cloyster"] = {water, ice, boostStone},["Gastly"] = {dark, boostStone},["Haunter"] = {dark, boostStone},["Gengar"] = {dark, boostStone},["Onix"] = {rock, earth, boostStone},["Drowzee"] = {enigma, boostStone},["Hypno"] = {enigma, boostStone},["Krabby"] = {water, boostStone},["Kingler"] = {water, boostStone},["Voltorb"] = {thunder, boostStone},["Electrode"] = {thunder, boostStone},["Exeggcute"] = {enigma, leaf, boostStone},["Exeggutor"] = {enigma, leaf, boostStone},["Cubone"] = {earth, boostStone},["Marowak"] = {earth, boostStone},["Hitmonlee"] = {punch, boostStone},["Hitmonchan"] = {punch, boostStone},["Lickitung"] = {heart, boostStone},["Koffing"] = {venom, boostStone},["Weezing"] = {venom, boostStone},["Rhyhorn"] = {earth, rock, boostStone},["Rhydon"] = {earth, rock, boostStone},["Chansey"] = {heart, boostStone},["Tangela"] = {leaf, boostStone},["Kangaskhan"] = {heart, boostStone},["Horsea"] = {water, boostStone},["Seadra"] = {water, boostStone},["Goldeen"] = {water, boostStone},["Seaking"] = {water, boostStone},["Staryu"] = {water, boostStone},["Starmie"] = {water, boostStone},["Mr. Mime"] = {enigma, boostStone},["Scyther"] = {coccon, boostStone},["Jynx"] = {enigma, ice, boostStone},["Electabuzz"] = {thunder, boostStone},["Magmar"] = {fire, boostStone},["Pinsir"] = {coccon, boostStone},["Tauros"] = {heart, boostStone},["Magikarp"] = {water, boostStone},["Gyarados"] = {water, crystal, boostStone},["Lapras"] = {water, ice, boostStone},["Ditto"] = {heart, boostStone},["Eevee"] = {heart, boostStone},["Vaporeon"] = {water, boostStone},["Jolteon"] = {thunder, boostStone},["Flareon"] = {fire, boostStone},["Espeon"] = {enigma, boostStone},["Umbreon"] = {dark, boostStone},["Porygon"] = {heart, enigma, boostStone},["Omanyte"] = {rock, water, boostStone},["Omastar"] = {rock, water, boostStone},["Kabuto"] = {rock, water, boostStone},["Kabutops"] = {rock, water, boostStone},["Aerodactyl"] = {rock, boostStone},["Snorlax"] = {heart, boostStone},["Articuno"] = {ice, boostStone},["Zapdos"] = {thunder, boostStone},["Moltres"] = {fire, boostStone},["Dratini"] = {crystal, boostStone},["Dragonair"] = {crystal, boostStone},["Dragonite"] = {crystal, boostStone},["Mewtwo"] = {enigma, boostStone},["Mew"] = {enigma, boostStone},--["Shiny Bulbasaur"] = {leaf, boostStone},["Shiny Ivysaur"] = {leaf, boostStone},["Shiny Venusaur"] = {leaf, boostStone},["Shiny Charmander"] = {fire, boostStone},["Shiny Charmeleon"] = {fire, boostStone},["Shiny Charizard"] = {fire, boostStone},["Shiny Squirtle"] = {water, boostStone},["Shiny Wartortle"] = {water, boostStone},["Shiny Blastoise"] = {water, boostStone},["Shiny Caterpie"] = {coccon, boostStone},["Shiny Metapod"] = {coccon, boostStone},["Shiny Butterfree"] = {coccon, boostStone},["Shiny Weedle"] = {coccon, boostStone},["Shiny Kakuna"] = {coccon, boostStone},["Shiny Beedrill"] = {coccon, boostStone},["Shiny Pidgey"] = {heart, boostStone},["Shiny Pidgeotto"] = {heart, boostStone},["Shiny Pidgeot"] = {heart, boostStone},["Shiny Rattata"] = {heart, boostStone},["Shiny Raticate"] = {heart, boostStone},["Shiny Spearow"] = {heart, boostStone},["Shiny Fearow"] = {heart, boostStone},["Shiny Ekans"] = {venom, boostStone},["Shiny Arbok"] = {venom, boostStone},["Shiny Pikachu"] = {thunder, boostStone},["Shiny Raichu"] = {thunder, boostStone},["Shiny Sandshrew"] = {earth, boostStone},["Shiny Sandslash"] = {earth, boostStone},["Shiny Nidoran Female"] = {venom, boostStone},["Shiny Nidorina"] = {venom, boostStone},["Shiny Nidoqueen"] = {venom, earth, boostStone},["Shiny Nidoran Male"] = {venom, boostStone},["Shiny Nidorino"] = {venom, boostStone},["Shiny Nidoking"] = {venom, earth, boostStone},["Shiny Clefairy"] = {heart, boostStone},["Shiny Clefable"] = {heart, boostStone},["Shiny Vulpix"] = {fire, boostStone},["Shiny Ninetales"] = {fire, boostStone},["Shiny Jigglypuff"] = {heart, boostStone},["Shiny Wigglytuff"] = {heart, boostStone},["Shiny Zubat"] = {venom, boostStone},["Shiny Golbat"] = {venom, boostStone},["Shiny Oddish"] = {leaf, venom, boostStone},["Shiny Gloom"] = {leaf, venom, boostStone},["Shiny Vileplume"] = {leaf, venom, boostStone},["Shiny Paras"] = {coccon, leaf, boostStone},["Shiny Parasect"] = {coccon, leaf, boostStone},["Shiny Venonat"] = {coccon, venom, boostStone},["Shiny Venomoth"] = {coccon, venom, boostStone},["Shiny Diglett"] = {earth, boostStone},["Shiny Dugtrio"] = {earth, boostStone},["Shiny Meowth"] = {heart, boostStone},["Shiny Persian"] = {heart, boostStone},["Shiny Psyduck"] = {water, boostStone},["Shiny Golduck"] = {water, enigma, boostStone},["Shiny Mankey"] = {punch, boostStone},["Shiny Primeape"] = {punch, boostStone},["Shiny Growlithe"] = {fire, boostStone},["Shiny Arcanine"] = {fire, boostStone},["Shiny Poliwag"] = {water, boostStone},["Shiny Poliwhirl"] = {water, boostStone},["Shiny Poliwrath"] = {water, punch, boostStone},["Shiny Abra"] = {enigma, boostStone},["Shiny Kadabra"] = {enigma, boostStone},["Shiny Alakazam"] = {enigma, boostStone},["Shiny Machop"] = {punch, boostStone},["Shiny Machoke"] = {punch, boostStone},["Shiny Machamp"] = {punch, boostStone},["Shiny Bellsprout"] = {leaf, venom, boostStone},["Shiny Weepinbell"] = {leaf, venom, boostStone},["Shiny Victreebel"] = {leaf, venom, boostStone},["Shiny Tentacool"] = {water, venom, boostStone},["Shiny Tentacruel"] = {water, venom, boostStone},["Shiny Geodude"] = {earth, rock, boostStone},["Shiny Graveler"] = {earth, rock, boostStone},["Shiny Golem"] = {earth, rock, boostStone},["Shiny Ponyta"] = {fire, boostStone},["Shiny Rapidash"] = {fire, boostStone},["Shiny Slowpoke"] = {water, enigma, boostStone},["Shiny Slowbro"] = {water, enigma, boostStone},["Shiny Magnemite"] = {thunder, metal, boostStone},["Shiny Magneton"] = {thunder, metal, boostStone},["Shiny Farfetch'd"] = {heart, boostStone},["Shiny Doduo"] = {heart, boostStone},["Shiny Dodrio"] = {heart, boostStone},["Shiny Seel"] = {water, ice, boostStone},["Shiny Dewgong"] = {water, ice, boostStone},["Shiny Grimer"] = {venom, boostStone},["Shiny Muk"] = {venom, boostStone},["Shiny Shellder"] = {water, ice, boostStone},["Shiny Cloyster"] = {water, ice, boostStone},["Shiny Gastly"] = {dark, boostStone},["Shiny Haunter"] = {dark, boostStone},["Shiny Gengar"] = {dark, boostStone},["Shiny Onix"] = {rock, earth, boostStone},["Shiny Drowzee"] = {enigma, boostStone},["Shiny Hypno"] = {enigma, boostStone},["Shiny Krabby"] = {water, boostStone},["Shiny Kingler"] = {water, boostStone},["Shiny Voltorb"] = {thunder, boostStone},["Shiny Electrode"] = {thunder, boostStone},["Shiny Exeggcute"] = {enigma, leaf, boostStone},["Shiny Exeggutor"] = {enigma, leaf, boostStone},["Shiny Cubone"] = {earth, boostStone},["Shiny Marowak"] = {earth, boostStone},["Shiny Hitmonlee"] = {punch, boostStone},["Shiny Hitmonchan"] = {punch, boostStone},["Shiny Hitmontop"] = {punch, boostStone},["Shiny Lickitung"] = {heart, boostStone},["Shiny Koffing"] = {venom, boostStone},["Shiny Weezing"] = {venom, boostStone},["Shiny Rhyhorn"] = {earth, rock, boostStone},["Shiny Rhydon"] = {earth, rock, boostStone},["Shiny Chansey"] = {heart, boostStone},["Shiny Tangela"] = {leaf, boostStone},["Shiny Kangaskhan"] = {heart, boostStone},["Shiny Horsea"] = {water, boostStone},["Shiny Seadra"] = {water, boostStone},["Shiny Goldeen"] = {water, boostStone},["Shiny Seaking"] = {water, boostStone},["Shiny Staryu"] = {water, boostStone},["Shiny Starmie"] = {water, boostStone},["Shiny Mr. Mime"] = {enigma, boostStone},["Shiny Scyther"] = {coccon, boostStone},["Shiny Jynx"] = {enigma, ice, boostStone},["Shiny Electabuzz"] = {thunder, boostStone},["Shiny Magmar"] = {fire, boostStone},["Shiny Pinsir"] = {coccon, boostStone},["Shiny Tauros"] = {heart, boostStone},["Shiny Magikarp"] = {water, boostStone},["Shiny Gyarados"] = {water, crystal, boostStone},["Shiny Lapras"] = {water, ice, boostStone},["Shiny Ditto"] = {heart, boostStone},["Shiny Eevee"] = {heart, boostStone},["Shiny Vaporeon"] = {water, boostStone},["Shiny Jolteon"] = {thunder, boostStone},["Shiny Flareon"] = {fire, boostStone},["Shiny Porygon"] = {heart, enigma, boostStone},["Shiny Omanyte"] = {rock, water, boostStone},["Shiny Omastar"] = {rock, water, boostStone},["Shiny Kabuto"] = {rock, water, boostStone},["Shiny Kabutops"] = {rock, water, boostStone},["Shiny Aerodactyl"] = {rock, boostStone},["Shiny Snorlax"] = {heart, boostStone},["Shiny Articuno"] = {ice, boostStone},["Shiny Zapdos"] = {thunder, boostStone},["Shiny Moltres"] = {fire, boostStone},["Shiny Dratini"] = {crystal, boostStone},["Shiny Dragonair"] = {crystal, boostStone},["Shiny Dragonite"] = {crystal, boostStone},["Shiny Mewtwo"] = {enigma, boostStone},["Shiny Mew"] = {enigma, boostStone},["Shiny Magby"] = {fire, boostStone},--["Abomasnow"] = {ice, boostStone},["Ambipom"] = {heart, boostStone},["Bastiodon"] = {rock, boostStone},["Bibarel"] = {heart, boostStone},["Bidoof"] = {heart, boostStone},["Bronzong"] = {enigma, boostStone},["Bronzor"] = {enigma, boostStone},["Buizel"] = {water, boostStone},["Buneary"] = {heart, boostStone},["Burmy"] = {leaf, boostStone},["Carnivine"] = {water, boostStone},["Chatot"] = {heart, boostStone},["Cherrim"] = {leaf, boostStone},["Cherubi"] = {leaf, boostStone},["Chinchar"] = {fire, boostStone},["Combee"] = {heart, boostStone},["Cranidos"] = {rock, boostStone},["Croagunk"] = {venom, boostStone},["Darkrai"] = {dark, boostStone},["Drapion"] = {venom, boostStone},["Drifblim"] = {dark, boostStone},["Drifloon"] = {dark, boostStone},["Electivire"] = {thunder, boostStone},["Empoleon"] = {water, boostStone},["Finneon"] = {water, boostStone},["Floatzel"] = {water, boostStone},["Gabite"] = {crystal, boostStone},["Garchomp"] = {crystal, boostStone},["Gastrodon"] = {water, boostStone},["Gastrodon1"] = {water, boostStone},["Gible"] = {crystal, boostStone},["Glameow"] = {heart, boostStone},["Gliscor"] = {dark, boostStone},["Grotle"] = {leaf, boostStone},["Happiny"] = {heart, boostStone},["Heatran"] = {fire, boostStone},["Hippopotas"] = {heart, boostStone},["Hippowdon"] = {heart, boostStone},["Honchkrow"] = {heart, boostStone},["Infernape"] = {fire, boostStone},["Kricketot"] = {heart, boostStone},["Kricketune"] = {heart, boostStone},["Lickilicky"] = {heart, boostStone},["Lopunny"] = {heart, boostStone},["Lucario"] = {punch, boostStone},["Lumineon"] = {water, boostStone},["Luxio"] = {heart, boostStone},["Luxray"] = {heart, boostStone},["Magmortar"] = {fire, boostStone},["Mamoswine"] = {heart, boostStone},["Mantyke"] = {water, boostStone},["Mime Jr."] = {enigma, boostStone},["Mismagius"] = {enigma, boostStone},["Monferno"] = {fire, boostStone},["Mothim"] = {heart, boostStone},["Pachirisu"] = {heart, boostStone},["Piplup"] = {water, boostStone},["Prinplup"] = {water, boostStone},["Purugly"] = {heart, boostStone},["Rampardos"] = {rock, boostStone},["Riolu"] = {punch, boostStone},["Shellos"] = {water, boostStone},["Shellos1"] = {water, boostStone},["Shieldon"] = {rock, boostStone},["Shinx"] = {heart, boostStone},["Skorupi"] = {venom, boostStone},["Skuntank"] = {heart, boostStone},["Snover"] = {ice, boostStone},["Spiritomb"] = {dark, boostStone},["Staraptor"] = {heart, boostStone},["Staravia"] = {heart, boostStone},["Starly"] = {heart, boostStone},["Stunky"] = {heart, boostStone},["Tangrowth"] = {water, boostStone},["Togekiss"] = {enigma, boostStone},["Torterra"] = {leaf, boostStone},["Toxicroak"] = {venom, boostStone},["Turtwig"] = {leaf, boostStone},["Vespiquen"] = {heart, boostStone},["Weavile"] = {heart, boostStone},["Wormadam Grass"] = {leaf, boostStone},["Wormadam Ground"] = {heart, boostStone},["Wormadam Steel"] = {heart, boostStone},["Yanmega"] = {leaf, boostStone},--["Absol"] = {dark, boostStone},["Aggron"] = {rock, boostStone},["Altaria"] = {heart, boostStone},["Anorith"] = {rock, boostStone},["Armaldo"] = {rock, boostStone},["Aron"] = {rock, boostStone},["Bagon"] = {crystal, boostStone},["Baltoy"] = {enigma, boostStone},["Banette"] = {dark, boostStone},["Barboach"] = {water, boostStone},["Beautifly"] = {venom, boostStone},["Beldum"] = {rock, boostStone},["Blaziken"] = {fire, boostStone},["Breloom"] = {leaf, boostStone},["Budew"] = {leaf, boostStone},["Cacnea"] = {leaf, boostStone},["Cacturne"] = {leaf, boostStone},["Camerupt"] = {fire, boostStone},["Carvanha"] = {water, boostStone},["Cascoon"] = {venom, boostStone},["Castform"] = {heart, boostStone},["Chimecho"] = {enigma, boostStone},["Chingling"] = {enigma, boostStone},["Clamperl"] = {water, boostStone},["Claydol"] = {enigma, boostStone},["Combusken"] = {fire, boostStone},["Corphish"] = {water, boostStone},["Crawdaunt"] = {water, boostStone},["Cradily"] = {leaf, boostStone},["Crawdaunt"] = {water, boostStone},["Delcatty"] = {heart, boostStone},["Dusclops"] = {dark, boostStone},["Dusknoir"] = {dark, boostStone},["Duskull"] = {dark, boostStone},["Dustox"] = {venom, boostStone},["Electrike"] = {thunder, boostStone},["Exploud"] = {heart, boostStone},["Feebas"] = {water, boostStone},["Flygon"] = {leaf, boostStone},["Froslass"] = {ice, boostStone},["Gallade"] = {enigma, boostStone},["Gardevoir"] = {enigma, boostStone},["Glalie"] = {ice, boostStone},["Gorebyss"] = {water, boostStone},["Groudon"] = {fire, boostStone},["Grovyle"] = {leaf, boostStone},["Grumpig"] = {enigma, boostStone},["Gulpin"] = {venom, boostStone},["Hariyama"] = {punch, boostStone},["Huntail"] = {water, boostStone},["Illumise"] = {vemon, boostStone},["Jirachi"] = {enigma, boostStone},["Kecleon"] = {heart, boostStone},["Kirlia"] = {enigma, boostStone},["Kyogre"] = {water, boostStone},["Lairon"] = {rock, boostStone},["Lileep"] = {leaf, boostStone},["Linoone"] = {heart, boostStone},["Lombre"] = {leaf, boostStone},["Lotad"] = {leaf, boostStone},["Loudred"] = {leaf, boostStone},["Ludicolo"] = {leaf, boostStone},["Lunatone"] = {enigma, boostStone},["Luvdisc"] = {water, boostStone},["Magnezone"] = {thunder, boostStone},["Makuhita"] = {punch, boostStone},["Manectric"] = {thunder, boostStone},["Marshtomp"] = {water, boostStone},["Masquerain"] = {venom, boostStone},["Mawile"] = {rock, boostStone},["Medicham"] = {enigma, boostStone},["Meditite"] = {enigma, boostStone},["Metagross"] = {rock, boostStone},["Metang"] = {rock, boostStone},["Milotic"] = {water, boostStone},["Minun"] = {thunder, boostStone},["Mudkip"] = {water, boostStone},["Nincada"] = {venom, boostStone},["Ninjask"] = {venom, boostStone},["Numel"] = {fire, boostStone},["Nuzleaf"] = {leaf, boostStone},["Pelipper"] = {water, boostStone},["Phione"] = {water, boostStone},["Phione"] = {thunder, boostStone},["Poochyena"] = {dark, boostStone},["Probopass"] = {rock, boostStone},["Ralts"] = {enigma, boostStone},["Rayquaza"] = {heart, boostStone},["Regice"] = {enigma, boostStone},["Regirock"] = {rock, boostStone},["Relicanth"] = {rock, boostStone},["Roselia"] = {leaf, boostStone},["Roserade"] = {leaf, boostStone},["Sableye"] = {water, boostStone},["Salamence"] = {heart, boostStone},["Sealeo"] = {water, boostStone},["Sceptile"] = {leaf, boostStone},["Seedot"] = {leaf, boostStone},["Seviper"] = {venom, boostStone},["Sharpedo"] = {water, boostStone},["Shedinja"] = {venom, boostStone},["Shelgon"] = {heart, boostStone},["Shiftry"] = {leaf, boostStone},["Shroomish"] = {leaf, boostStone},["Shuppet"] = {dark, boostStone},["Silcoon"] = {venom, boostStone},["Skitty"] = {heart, boostStone},["Slaking"] = {heart, boostStone},["Slakoth"] = {heart, boostStone},["Snorunt"] = {ice, boostStone},["Solrock"] = {enigma, boostStone},["Spheal"] = {ice, boostStone},["Spinda"] = {heart, boostStone},["Surskit"] = {venom, boostStone},["Swablu"] = {heart, boostStone},["Swalot"] = {heart, boostStone},["Swampert"] = {water, boostStone},["Swellow"] = {heart, boostStone},["Taillow"] = {heart, boostStone},["Torchic"] = {fire, boostStone},["Torkoal"] = {fire, boostStone},["Trapinch"] = {crystal, boostStone},["Treecko"] = {leaf, boostStone},["Tropius"] = {leaf, boostStone},["Vibrava"] = {leaf, boostStone},["Vigoroth"] = {heart, boostStone},["Volbeat"] = {venom, boostStone},["Wailmer"] = {water, boostStone},["Wailord"] = {water, boostStone},["Walrein"] = {water, boostStone},["Whiscash"] = {water, boostStone},["Whismur"] = {heart, boostStone},["Wingull"] = {water, boostStone},["Wurmple"] = {venom, boostStone},["Zigzagoon"] = {heart, boostStone},["Zangoose"] = {heart, boostStone},--["Chikorita"] = {leaf, boostStone},["Bayleef"] = {leaf, boostStone},["Meganium"] = {leaf, boostStone},["Cyndaquil"] = {fire, boostStone},["Quilava"] = {fire, boostStone},["Typhlosion"] = {fire, boostStone},["Totodile"] = {water, boostStone},["Croconaw"] = {water, boostStone},["Feraligatr"] = {water, boostStone},["Sentret"] = {heart, boostStone},["Furret"] = {heart, boostStone},["Hoothoot"] = {heart, enigma, boostStone},["Noctowl"] = {heart, enigma, boostStone},["Ledyba"] = {coccon, boostStone},["Ledian"] = {coccon, boostStone},["Spinarak"] = {coccon, venom, boostStone},["Ariados"] = {coccon, venom, boostStone},["Crobat"] = {venom, boostStone},["Chinchou"] = {water, thunder, boostStone},["Lanturn"] = {water, thunder, boostStone},["Pichu"] = {thunder, boostStone},["Cleffa"] = {heart, boostStone},["Iglybuff"] = {venom, boostStone},["Natu"] = {enigma, boostStone},["Xatu"] = {enigma, boostStone},["Mareep"] = {thunder, boostStone},["Flaaffy"] = {thunder, boostStone},["Ampharos"] = {thunder, boostStone},["Bellossom"] = {leaf, boostStone},["Marill"] = {water, boostStone},["Azulmarill"] = {water, boostStone},["Sudowoodo"] = {rock, earth, boostStone},["Politoed"] = {water, earth, boostStone},["Hoppip"] = {leaf, boostStone},["Skiploom"] = {leaf, boostStone},["Jumpluff"] = {leaf, boostStone},["Aipom"] = {heart, boostStone},["Sunkern"] = {leaf, boostStone},["Sunflora"] = {leaf, boostStone},["Yanma"] = {venom, coccon, boostStone},["Wooper"] = {water, boostStone},["Quagsire"] = {water, earth, boostStone},["Murkrow"] = {dark, boostStone},["Slowking"] = {water,enigma, boostStone},["Misdreavus"] = {dark, boostStone},["Wobbuffet"] = {enigma, boostStone},["Girafarig"] = {enigma, boostStone},["Pineco"] = {coccon, boostStone},["Forretress"] = {coccon, boostStone},["Gligar"] = {dark, heart, boostStone},["Steelix"] = {earth, rock, boostStone},["Snubbull"] = {heart, boostStone},["Granbull"] = {heart, boostStone},["Qwilfish"] = {water, boostStone},["Shuckle"] = {earth, boostStone},["Heracross"] = {coccon, boostStone},["Teddiursa"] = {heart, boostStone},["Ursaring"] = {heart, dark, boostStone},["Slugma"] = {fire, boostStone},["Magcargo"] = {fire, boostStone},["Swinub"] = {ice, earth, boostStone},["Piloswine"] = {ice, earth, boostStone},["Corsola"] = {water, boostStone},["Remoraid"] = {water, boostStone},["Octillery"] = {water, boostStone},["Delibird"] = {ice, heart, boostStone},["Mantine"] = {water, boostStone},["Skarmory"] = {heart, boostStone},["Houndour"] = {fire, dark, boostStone},["Houndoom"] = {fire, dark, boostStone},["Kingdra"] = {water, crystal, boostStone},["Phanpy"] = {earth, boostStone},["Donphan"] = {earth, boostStone},["porygon2"] = {enigma, boostStone},["Stantler"] = {heart, boostStone},["Smeargle"] = {heart, boostStone},["Tyrogue"] = {punch, boostStone},["Hitmontop"] = {punch, boostStone},["Smoochum"] = {ice, enigma, boostStone},["Elekid"] = {thunder, boostStone},["Magby"] = {fire, boostStone},["Miltank"] = {heart, boostStone},["Blissey"] = {heart, boostStone},["Raikou"] = {thunder, boostStone},["Entei"] = {fire, boostStone},["Suicune"] = {water, boostStone},["Larvitar"] = {earth, dark, boostStone},["Pupitar"] = {earth, dark, boostStone},["Tyranitar"] = {earth, dark, boostStone},["Lugia"] = {enigma, water, boostStone},["Ho-oh"] = {enigma, fire, boostStone},["Celebi"] = {leaf, enigma, boostStone}}function doRestoreBoostMachine(cid, b_pos, p_pos, s_pos, msg, msg2)doSendAnimatedText(b_pos, "DONE.", 215)if isCreature(cid) thendoCreatureSetNoMove(cid, false)doPlayerSendTextMessage(cid, 27, msg)doPlayerSendTextMessage(cid, 27, msg2)endlocal ball_s = getTileItemById(p_pos, ballslot_run)doTransformItem(ball_s.uid, ballslot)local stne_s = getTileItemById(s_pos, stoneslot_run)doTransformItem(stne_s.uid, stoneslot)local butn_s = getTileItemById(b_pos, button_run)doTransformItem(butn_s.uid, button)endlocal stones_required = { -- custo base de stones para boostar[heart] = 1,[leaf] = 1,[water] = 1,[venom] = 1,[thunder] = 1,[rock] = 1,[punch] = 1,[fire] = 1,[coccon] = 1,[crystal] = 1,[dark] = 1,[earth] = 1,[enigma] = 1,[ice] = 1,[boostStone] = 1, --alterado v1.9}local stone_increase = { -- a cada quantos boosts irá aumentar o custo de stones[heart] = 2,[leaf] = 2,[water] = 2,[venom] = 2,[thunder] = 2,[rock] = 2,[punch] = 2,[fire] = 2,[coccon] = 2,[crystal] = 2,[dark] = 2,[earth] = 2,[enigma] = 2,[ice] = 2,[boostStone] = 10000,}local pbs = {[11826] = 11737, --normal acessa --alterado v1.9 \/[11828] = 11739, --normal morto[11832] = 11740, --great acessa[11834] = 11742, --great morto[11835] = 11743, --super acessa[11837] = 11745, --super morto[11829] = 11746, --ultra acessa[11831] = 11748, --ultra morto[10975] = 12621, --saffari acessa[10977] = 12623, --saffari morto}function onUse(cid, item, topos, item2, frompos)if isRunning(item.itemid) thendoPlayerSendCancel(cid, "Wait until boosting finishes.")return trueendif item.itemid == button thenlocal pbpos = topospbpos.x = pbpos.x + 1local ball_slot = getTileItemById(pbpos, ballslot)local myball = getContainerItem(ball_slot.uid, 0)if myball.uid <= 0 or getItemWeight(myball.uid) == 0 thendoPlayerSendCancel(cid, "You need to put a pokeball in the ball slot.")return trueendlocal pokemon = getItemAttribute(myball.uid, "poke")local boost = getItemAttribute(myball.uid, "boost") or 0if boost >= 50 thendoPlayerSendCancel(cid, "Your pokemon is already at maximum boost.")return trueendlocal stnpos = pbposstnpos.x = stnpos.x - 2local stone_slot = getTileItemById(stnpos, stoneslot)local stone = getContainerItem(stone_slot.uid, 0)if stone.uid <= 0 thendoPlayerSendCancel(cid, "You need to put a stone in the stone slot.")return trueendif not isStone(stone.itemid) thendoPlayerSendCancel(cid, "Please, put only stones in the stone slot.")return trueendif not isInArray(boost_stones[pokemon], stone.itemid) thenlocal cancelstr = "Sorry, you are not using the correct stone."if #boost_stones[pokemon] > 1 thenlocal stonesused = ""cancelstr = cancelstr.." This pokemon needs "for su = 1, #boost_stones[pokemon] dolocal n = doCorrectString(getItemNameById(boost_stones[pokemon][su]))if su == #boost_stones[pokemon] thenstonesused = stonesused.." or "..getArticle(n).." "..n..""elseif su == 1 thenstonesused = stonesused..""..getArticle(n).." "..n..""elsestonesused = stonesused..", "..n..""endendcancelstr = cancelstr..""..stonesused.." to be boosted."elsecancelstr = cancelstr.." This pokemon needs a "..doCorrectString(getItemNameById(boost_stones[pokemon][1])).." to be boosted."enddoPlayerSendCancel(cid, cancelstr)return trueendlocal removeStones = 0local extraStones = math.floor(boost / stone_increase[stone.itemid])local required_stones = stones_required[stone.itemid] + extraStoneslocal boosts = 0for a = 0, getContainerSize(stone_slot.uid) - 1 dolocal it = getContainerItem(stone_slot.uid, a)if it.uid > 0 thenif not isStone(it.itemid) thendoPlayerSendCancel(cid, "Please, put only stones in the stone slot.")return trueendif it.itemid ~= stone.itemid thendoPlayerSendCancel(cid, "Please, put only one type of stone in the stone slot.")return trueendif required_stones > 0 thenrequired_stones = required_stones - (it.type ~= 0 and it.type or 1) --alterado v1.7if required_stones <= 0 thenboosts = boosts + 1removeStones = removeStones + stones_required[stone.itemid] + extraStonesif boost + boosts <= 49 thenextraStones = math.floor((boost + boosts) / stone_increase[stone.itemid])required_stones = stones_required[stone.itemid] + extraStonesendbreakendendendendif required_stones > 0 and boosts == 0 thendoPlayerSendCancel(cid, "You need more stones to boost this pokemon.")return trueendfor b = 1, removeStones dolocal i = getContainerItem(stone_slot.uid, 0)if i.type ~= 0 thendoChangeTypeItem(i.uid, i.type - 1) --alterado v1.7elsedoRemoveItem(i.uid, 1)endenddoSetItemAttribute(myball.uid, "boost", boost + boosts)doSetItemAttribute(myball.uid, "boosting", 1) --alterado v1.9.1if (boost + boosts) >= 10 thenif pbs[myball.itemid] then --alterado v1.9doTransformItem(myball.uid, pbs[myball.itemid])endenddoItemEraseAttribute(myball.uid, "boosting") --alterado v1.9.1local msg = "Your "..getPokeballName(myball.uid).." has been boosted!"local msg2 = "• Boost: "..(boost + boosts).." (+"..boosts..")"local downpos = getThingPos(cid)downpos.y = downpos.y + 1local mypos = getThingPos(cid)doTeleportThing(cid, downpos, false)doTeleportThing(cid, mypos, false)doTransformItem(ball_slot.uid, ballslot_run)doTransformItem(stone_slot.uid, stoneslot_run)doTransformItem(item.uid, button_run)doCreatureSetNoMove(cid, true)doCreatureAddCondition(cid, boostcondition)addEvent(doRestoreBoostMachine, 3000, cid, getThingPos(item.uid), getThingPos(ball_slot.uid), getThingPos(stone_slot.uid), msg, msg2)return trueendend Curti++ Link para o comentário https://xtibia.com/forum/topic/223813-encerrado-duvida-boost/ Compartilhar em outros sites More sharing options...
GuhPk 111 Postado Novembro 12, 2013 Share Postado Novembro 12, 2013 No boost.lua tem uma tabela com o nome de toda as stones que podem ser usadas na boost machine. Procure lá a Boost Stone == 1. E coloque 10! Se não tiver, procure na mesma pasta o booststone.lua. Ai você procura a parte que ta o tanto que aumenta, provavelmente estara maracdo! Malz não ajudar direito ai, é que to pelo celular, ai é foda! kkkkkk' Link para o comentário https://xtibia.com/forum/topic/223813-encerrado-duvida-boost/#findComment-1581388 Compartilhar em outros sites More sharing options...
BrunooMaciell 85 Postado Novembro 12, 2013 Autor Share Postado Novembro 12, 2013 (editado) 1 - a tabela ou linha que vc falou nao tem na script =/ unica tabela que tem sao estas !! local stones_required = { -- custo base de stones para boostar[heart] = 1,[leaf] = 1,[water] = 1,[venom] = 1,[thunder] = 1,[rock] = 1,[punch] = 1,[fire] = 1,[coccon] = 1,[crystal] = 1,[dark] = 1,[earth] = 1,[enigma] = 1,[ice] = 1,[boostStone] = 1, --alterado v1.9}local stone_increase = { -- a cada quantos boosts irá aumentar o custo de stones[heart] = 2,[leaf] = 2,[water] = 2,[venom] = 2,[thunder] = 2,[rock] = 2,[punch] = 2,[fire] = 2,[coccon] = 2,[crystal] = 2,[dark] = 2,[earth] = 2,[enigma] = 2,[ice] = 2,[boostStone] = 10000,} 2 - a script que tu falo nao tem =/ Editado Novembro 12, 2013 por Brunnoo Link para o comentário https://xtibia.com/forum/topic/223813-encerrado-duvida-boost/#findComment-1581399 Compartilhar em outros sites More sharing options...
RastaLegion 64 Postado Novembro 12, 2013 Share Postado Novembro 12, 2013 [boostStone] = 1, --alterado v1.9 < coloque 10 li o script o guhpk mando linha errada .. Link para o comentário https://xtibia.com/forum/topic/223813-encerrado-duvida-boost/#findComment-1581433 Compartilhar em outros sites More sharing options...
BrunooMaciell 85 Postado Novembro 12, 2013 Autor Share Postado Novembro 12, 2013 [boostStone] = 1, --alterado v1.9 < coloque 10 li o script o guhpk mando linha errada .. mais eu acho que esta linha e errado porque ali fala custo basico de stone requerido pra boostar !! se eu coloca 10 pra deixa o pokemon +1 vao precisar de 10 stones !! acho que ta errado !! Link para o comentário https://xtibia.com/forum/topic/223813-encerrado-duvida-boost/#findComment-1581455 Compartilhar em outros sites More sharing options...
GuhPk 111 Postado Novembro 12, 2013 Share Postado Novembro 12, 2013 To com PC de volta... IHUUUUUU!!!! E para comemorar, segura ai maninho!!! *----* local ballslot = 12355 local ballslot_run = 12352 local stoneslot = 12354 local stoneslot_run = 12353 local button = 12356 local button_run = 12357 function isRunning(id) if isInArray({button_run, stoneslot_run, ballslot_run}, id) then return true end return false end boost_stones = { ["Bulbasaur"] = {leaf, boostStone}, ["Ivysaur"] = {leaf, boostStone}, ["Venusaur"] = {leaf, boostStone}, ["Charmander"] = {fire, boostStone}, ["Charmeleon"] = {fire, boostStone}, ["Charizard"] = {fire, boostStone}, ["Squirtle"] = {water, boostStone}, ["Wartortle"] = {water, boostStone}, ["Blastoise"] = {water, boostStone}, ["Caterpie"] = {coccon, boostStone}, ["Metapod"] = {coccon, boostStone}, ["Butterfree"] = {coccon, boostStone}, ["Weedle"] = {coccon, boostStone}, ["Kakuna"] = {coccon, boostStone}, ["Beedrill"] = {coccon, boostStone}, ["Pidgey"] = {heart, boostStone}, ["Pidgeotto"] = {heart, boostStone}, ["Pidgeot"] = {heart, boostStone}, ["Rattata"] = {heart, boostStone}, ["Raticate"] = {heart, boostStone}, ["Spearow"] = {heart, boostStone}, ["Fearow"] = {heart, boostStone}, ["Ekans"] = {venom, boostStone}, ["Arbok"] = {venom, boostStone}, ["Pikachu"] = {thunder, boostStone}, ["Raichu"] = {thunder, boostStone}, ["Sandshrew"] = {earth, boostStone}, ["Sandslash"] = {earth, boostStone}, ["Nidoran Female"] = {venom, boostStone}, ["Nidorina"] = {venom, boostStone}, ["Nidoqueen"] = {venom, earth, boostStone}, ["Nidoran Male"] = {venom, boostStone}, ["Nidorino"] = {venom, boostStone}, ["Nidoking"] = {venom, earth, boostStone}, ["Clefairy"] = {heart, boostStone}, ["Clefable"] = {heart, boostStone}, ["Vulpix"] = {fire, boostStone}, ["Ninetales"] = {fire, boostStone}, ["Jigglypuff"] = {heart, boostStone}, ["Wigglytuff"] = {heart, boostStone}, ["Zubat"] = {venom, boostStone}, ["Golbat"] = {venom, boostStone}, ["Oddish"] = {leaf, venom, boostStone}, ["Gloom"] = {leaf, venom, boostStone}, ["Vileplume"] = {leaf, venom, boostStone}, ["Paras"] = {coccon, leaf, boostStone}, ["Parasect"] = {coccon, leaf, boostStone}, ["Venonat"] = {coccon, venom, boostStone}, ["Venomoth"] = {coccon, venom, boostStone}, ["Diglett"] = {earth, boostStone}, ["Dugtrio"] = {earth, boostStone}, ["Meowth"] = {heart, boostStone}, ["Persian"] = {heart, boostStone}, ["Psyduck"] = {water, boostStone}, ["Golduck"] = {water, enigma, boostStone}, ["Mankey"] = {punch, boostStone}, ["Primeape"] = {punch, boostStone}, ["Growlithe"] = {fire, boostStone}, ["Arcanine"] = {fire, boostStone}, ["Poliwag"] = {water, boostStone}, ["Poliwhirl"] = {water, boostStone}, ["Poliwrath"] = {water, punch, boostStone}, ["Abra"] = {enigma, boostStone}, ["Kadabra"] = {enigma, boostStone}, ["Alakazam"] = {enigma, boostStone}, ["Machop"] = {punch, boostStone}, ["Machoke"] = {punch, boostStone}, ["Machamp"] = {punch, boostStone}, ["Bellsprout"] = {leaf, venom, boostStone}, ["Weepinbell"] = {leaf, venom, boostStone}, ["Victreebel"] = {leaf, venom, boostStone}, ["Tentacool"] = {water, venom, boostStone}, ["Tentacruel"] = {water, venom, boostStone}, ["Geodude"] = {earth, rock, boostStone}, ["Graveler"] = {earth, rock, boostStone}, ["Golem"] = {earth, rock, boostStone}, ["Ponyta"] = {fire, boostStone}, ["Rapidash"] = {fire, boostStone}, ["Slowpoke"] = {water, enigma, boostStone}, ["Slowbro"] = {water, enigma, boostStone}, ["Magnemite"] = {thunder, metal, boostStone}, ["Magneton"] = {thunder, metal, boostStone}, ["Farfetch'd"] = {heart, boostStone}, ["Doduo"] = {heart, boostStone}, ["Dodrio"] = {heart, boostStone}, ["Seel"] = {water, ice, boostStone}, ["Dewgong"] = {water, ice, boostStone}, ["Grimer"] = {venom, boostStone}, ["Muk"] = {venom, boostStone}, ["Shellder"] = {water, ice, boostStone}, ["Cloyster"] = {water, ice, boostStone}, ["Gastly"] = {dark, boostStone}, ["Haunter"] = {dark, boostStone}, ["Gengar"] = {dark, boostStone}, ["Onix"] = {rock, earth, boostStone}, ["Drowzee"] = {enigma, boostStone}, ["Hypno"] = {enigma, boostStone}, ["Krabby"] = {water, boostStone}, ["Kingler"] = {water, boostStone}, ["Voltorb"] = {thunder, boostStone}, ["Electrode"] = {thunder, boostStone}, ["Exeggcute"] = {enigma, leaf, boostStone}, ["Exeggutor"] = {enigma, leaf, boostStone}, ["Cubone"] = {earth, boostStone}, ["Marowak"] = {earth, boostStone}, ["Hitmonlee"] = {punch, boostStone}, ["Hitmonchan"] = {punch, boostStone}, ["Lickitung"] = {heart, boostStone}, ["Koffing"] = {venom, boostStone}, ["Weezing"] = {venom, boostStone}, ["Rhyhorn"] = {earth, rock, boostStone}, ["Rhydon"] = {earth, rock, boostStone}, ["Chansey"] = {heart, boostStone}, ["Tangela"] = {leaf, boostStone}, ["Kangaskhan"] = {heart, boostStone}, ["Horsea"] = {water, boostStone}, ["Seadra"] = {water, boostStone}, ["Goldeen"] = {water, boostStone}, ["Seaking"] = {water, boostStone}, ["Staryu"] = {water, boostStone}, ["Starmie"] = {water, boostStone}, ["Mr. Mime"] = {enigma, boostStone}, ["Scyther"] = {coccon, boostStone}, ["Jynx"] = {enigma, ice, boostStone}, ["Electabuzz"] = {thunder, boostStone}, ["Magmar"] = {fire, boostStone}, ["Pinsir"] = {coccon, boostStone}, ["Tauros"] = {heart, boostStone}, ["Magikarp"] = {water, boostStone}, ["Gyarados"] = {water, crystal, boostStone}, ["Lapras"] = {water, ice, boostStone}, ["Ditto"] = {heart, boostStone}, ["Eevee"] = {heart, boostStone}, ["Vaporeon"] = {water, boostStone}, ["Jolteon"] = {thunder, boostStone}, ["Flareon"] = {fire, boostStone}, ["Espeon"] = {enigma, boostStone}, ["Umbreon"] = {dark, boostStone}, ["Porygon"] = {heart, enigma, boostStone}, ["Omanyte"] = {rock, water, boostStone}, ["Omastar"] = {rock, water, boostStone}, ["Kabuto"] = {rock, water, boostStone}, ["Kabutops"] = {rock, water, boostStone}, ["Aerodactyl"] = {rock, boostStone}, ["Snorlax"] = {heart, boostStone}, ["Articuno"] = {ice, boostStone}, ["Zapdos"] = {thunder, boostStone}, ["Moltres"] = {fire, boostStone}, ["Dratini"] = {crystal, boostStone}, ["Dragonair"] = {crystal, boostStone}, ["Dragonite"] = {crystal, boostStone}, ["Mewtwo"] = {enigma, boostStone}, ["Mew"] = {enigma, boostStone}, -- ["Shiny Bulbasaur"] = {leaf, boostStone}, ["Shiny Ivysaur"] = {leaf, boostStone}, ["Shiny Venusaur"] = {leaf, boostStone}, ["Shiny Charmander"] = {fire, boostStone}, ["Shiny Charmeleon"] = {fire, boostStone}, ["Shiny Charizard"] = {fire, boostStone}, ["Shiny Squirtle"] = {water, boostStone}, ["Shiny Wartortle"] = {water, boostStone}, ["Shiny Blastoise"] = {water, boostStone}, ["Shiny Caterpie"] = {coccon, boostStone}, ["Shiny Metapod"] = {coccon, boostStone}, ["Shiny Butterfree"] = {coccon, boostStone}, ["Shiny Weedle"] = {coccon, boostStone}, ["Shiny Kakuna"] = {coccon, boostStone}, ["Shiny Beedrill"] = {coccon, boostStone}, ["Shiny Pidgey"] = {heart, boostStone}, ["Shiny Pidgeotto"] = {heart, boostStone}, ["Shiny Pidgeot"] = {heart, boostStone}, ["Shiny Rattata"] = {heart, boostStone}, ["Shiny Raticate"] = {heart, boostStone}, ["Shiny Spearow"] = {heart, boostStone}, ["Shiny Fearow"] = {heart, boostStone}, ["Shiny Ekans"] = {venom, boostStone}, ["Shiny Arbok"] = {venom, boostStone}, ["Shiny Pikachu"] = {thunder, boostStone}, ["Shiny Raichu"] = {thunder, boostStone}, ["Shiny Sandshrew"] = {earth, boostStone}, ["Shiny Sandslash"] = {earth, boostStone}, ["Shiny Nidoran Female"] = {venom, boostStone}, ["Shiny Nidorina"] = {venom, boostStone}, ["Shiny Nidoqueen"] = {venom, earth, boostStone}, ["Shiny Nidoran Male"] = {venom, boostStone}, ["Shiny Nidorino"] = {venom, boostStone}, ["Shiny Nidoking"] = {venom, earth, boostStone}, ["Shiny Clefairy"] = {heart, boostStone}, ["Shiny Clefable"] = {heart, boostStone}, ["Shiny Vulpix"] = {fire, boostStone}, ["Shiny Ninetales"] = {fire, boostStone}, ["Shiny Jigglypuff"] = {heart, boostStone}, ["Shiny Wigglytuff"] = {heart, boostStone}, ["Shiny Zubat"] = {venom, boostStone}, ["Shiny Golbat"] = {venom, boostStone}, ["Shiny Oddish"] = {leaf, venom, boostStone}, ["Shiny Gloom"] = {leaf, venom, boostStone}, ["Shiny Vileplume"] = {leaf, venom, boostStone}, ["Shiny Paras"] = {coccon, leaf, boostStone}, ["Shiny Parasect"] = {coccon, leaf, boostStone}, ["Shiny Venonat"] = {coccon, venom, boostStone}, ["Shiny Venomoth"] = {coccon, venom, boostStone}, ["Shiny Diglett"] = {earth, boostStone}, ["Shiny Dugtrio"] = {earth, boostStone}, ["Shiny Meowth"] = {heart, boostStone}, ["Shiny Persian"] = {heart, boostStone}, ["Shiny Psyduck"] = {water, boostStone}, ["Shiny Golduck"] = {water, enigma, boostStone}, ["Shiny Mankey"] = {punch, boostStone}, ["Shiny Primeape"] = {punch, boostStone}, ["Shiny Growlithe"] = {fire, boostStone}, ["Shiny Arcanine"] = {fire, boostStone}, ["Shiny Poliwag"] = {water, boostStone}, ["Shiny Poliwhirl"] = {water, boostStone}, ["Shiny Poliwrath"] = {water, punch, boostStone}, ["Shiny Abra"] = {enigma, boostStone}, ["Shiny Kadabra"] = {enigma, boostStone}, ["Shiny Alakazam"] = {enigma, boostStone}, ["Shiny Machop"] = {punch, boostStone}, ["Shiny Machoke"] = {punch, boostStone}, ["Shiny Machamp"] = {punch, boostStone}, ["Shiny Bellsprout"] = {leaf, venom, boostStone}, ["Shiny Weepinbell"] = {leaf, venom, boostStone}, ["Shiny Victreebel"] = {leaf, venom, boostStone}, ["Shiny Tentacool"] = {water, venom, boostStone}, ["Shiny Tentacruel"] = {water, venom, boostStone}, ["Shiny Geodude"] = {earth, rock, boostStone}, ["Shiny Graveler"] = {earth, rock, boostStone}, ["Shiny Golem"] = {earth, rock, boostStone}, ["Shiny Ponyta"] = {fire, boostStone}, ["Shiny Rapidash"] = {fire, boostStone}, ["Shiny Slowpoke"] = {water, enigma, boostStone}, ["Shiny Slowbro"] = {water, enigma, boostStone}, ["Shiny Magnemite"] = {thunder, metal, boostStone}, ["Shiny Magneton"] = {thunder, metal, boostStone}, ["Shiny Farfetch'd"] = {heart, boostStone}, ["Shiny Doduo"] = {heart, boostStone}, ["Shiny Dodrio"] = {heart, boostStone}, ["Shiny Seel"] = {water, ice, boostStone}, ["Shiny Dewgong"] = {water, ice, boostStone}, ["Shiny Grimer"] = {venom, boostStone}, ["Shiny Muk"] = {venom, boostStone}, ["Shiny Shellder"] = {water, ice, boostStone}, ["Shiny Cloyster"] = {water, ice, boostStone}, ["Shiny Gastly"] = {dark, boostStone}, ["Shiny Haunter"] = {dark, boostStone}, ["Shiny Gengar"] = {dark, boostStone}, ["Shiny Onix"] = {rock, earth, boostStone}, ["Shiny Drowzee"] = {enigma, boostStone}, ["Shiny Hypno"] = {enigma, boostStone}, ["Shiny Krabby"] = {water, boostStone}, ["Shiny Kingler"] = {water, boostStone}, ["Shiny Voltorb"] = {thunder, boostStone}, ["Shiny Electrode"] = {thunder, boostStone}, ["Shiny Exeggcute"] = {enigma, leaf, boostStone}, ["Shiny Exeggutor"] = {enigma, leaf, boostStone}, ["Shiny Cubone"] = {earth, boostStone}, ["Shiny Marowak"] = {earth, boostStone}, ["Shiny Hitmonlee"] = {punch, boostStone}, ["Shiny Hitmonchan"] = {punch, boostStone}, ["Shiny Hitmontop"] = {punch, boostStone}, ["Shiny Lickitung"] = {heart, boostStone}, ["Shiny Koffing"] = {venom, boostStone}, ["Shiny Weezing"] = {venom, boostStone}, ["Shiny Rhyhorn"] = {earth, rock, boostStone}, ["Shiny Rhydon"] = {earth, rock, boostStone}, ["Shiny Chansey"] = {heart, boostStone}, ["Shiny Tangela"] = {leaf, boostStone}, ["Shiny Kangaskhan"] = {heart, boostStone}, ["Shiny Horsea"] = {water, boostStone}, ["Shiny Seadra"] = {water, boostStone}, ["Shiny Goldeen"] = {water, boostStone}, ["Shiny Seaking"] = {water, boostStone}, ["Shiny Staryu"] = {water, boostStone}, ["Shiny Starmie"] = {water, boostStone}, ["Shiny Mr. Mime"] = {enigma, boostStone}, ["Shiny Scyther"] = {coccon, boostStone}, ["Shiny Jynx"] = {enigma, ice, boostStone}, ["Shiny Electabuzz"] = {thunder, boostStone}, ["Shiny Magmar"] = {fire, boostStone}, ["Shiny Pinsir"] = {coccon, boostStone}, ["Shiny Tauros"] = {heart, boostStone}, ["Shiny Magikarp"] = {water, boostStone}, ["Shiny Gyarados"] = {water, crystal, boostStone}, ["Shiny Lapras"] = {water, ice, boostStone}, ["Shiny Ditto"] = {heart, boostStone}, ["Shiny Eevee"] = {heart, boostStone}, ["Shiny Vaporeon"] = {water, boostStone}, ["Shiny Jolteon"] = {thunder, boostStone}, ["Shiny Flareon"] = {fire, boostStone}, ["Shiny Porygon"] = {heart, enigma, boostStone}, ["Shiny Omanyte"] = {rock, water, boostStone}, ["Shiny Omastar"] = {rock, water, boostStone}, ["Shiny Kabuto"] = {rock, water, boostStone}, ["Shiny Kabutops"] = {rock, water, boostStone}, ["Shiny Aerodactyl"] = {rock, boostStone}, ["Shiny Snorlax"] = {heart, boostStone}, ["Shiny Articuno"] = {ice, boostStone}, ["Shiny Zapdos"] = {thunder, boostStone}, ["Shiny Moltres"] = {fire, boostStone}, ["Shiny Dratini"] = {crystal, boostStone}, ["Shiny Dragonair"] = {crystal, boostStone}, ["Shiny Dragonite"] = {crystal, boostStone}, ["Shiny Mewtwo"] = {enigma, boostStone}, ["Shiny Mew"] = {enigma, boostStone}, ["Shiny Magby"] = {fire, boostStone}, -- ["Abomasnow"] = {ice, boostStone}, ["Ambipom"] = {heart, boostStone}, ["Bastiodon"] = {rock, boostStone}, ["Bibarel"] = {heart, boostStone}, ["Bidoof"] = {heart, boostStone}, ["Bronzong"] = {enigma, boostStone}, ["Bronzor"] = {enigma, boostStone}, ["Buizel"] = {water, boostStone}, ["Buneary"] = {heart, boostStone}, ["Burmy"] = {leaf, boostStone}, ["Carnivine"] = {water, boostStone}, ["Chatot"] = {heart, boostStone}, ["Cherrim"] = {leaf, boostStone}, ["Cherubi"] = {leaf, boostStone}, ["Chinchar"] = {fire, boostStone}, ["Combee"] = {heart, boostStone}, ["Cranidos"] = {rock, boostStone}, ["Croagunk"] = {venom, boostStone}, ["Darkrai"] = {dark, boostStone}, ["Drapion"] = {venom, boostStone}, ["Drifblim"] = {dark, boostStone}, ["Drifloon"] = {dark, boostStone}, ["Electivire"] = {thunder, boostStone}, ["Empoleon"] = {water, boostStone}, ["Finneon"] = {water, boostStone}, ["Floatzel"] = {water, boostStone}, ["Gabite"] = {crystal, boostStone}, ["Garchomp"] = {crystal, boostStone}, ["Gastrodon"] = {water, boostStone}, ["Gastrodon1"] = {water, boostStone}, ["Gible"] = {crystal, boostStone}, ["Glameow"] = {heart, boostStone}, ["Gliscor"] = {dark, boostStone}, ["Grotle"] = {leaf, boostStone}, ["Happiny"] = {heart, boostStone}, ["Heatran"] = {fire, boostStone}, ["Hippopotas"] = {heart, boostStone}, ["Hippowdon"] = {heart, boostStone}, ["Honchkrow"] = {heart, boostStone}, ["Infernape"] = {fire, boostStone}, ["Kricketot"] = {heart, boostStone}, ["Kricketune"] = {heart, boostStone}, ["Lickilicky"] = {heart, boostStone}, ["Lopunny"] = {heart, boostStone}, ["Lucario"] = {punch, boostStone}, ["Lumineon"] = {water, boostStone}, ["Luxio"] = {heart, boostStone}, ["Luxray"] = {heart, boostStone}, ["Magmortar"] = {fire, boostStone}, ["Mamoswine"] = {heart, boostStone}, ["Mantyke"] = {water, boostStone}, ["Mime Jr."] = {enigma, boostStone}, ["Mismagius"] = {enigma, boostStone}, ["Monferno"] = {fire, boostStone}, ["Mothim"] = {heart, boostStone}, ["Pachirisu"] = {heart, boostStone}, ["Piplup"] = {water, boostStone}, ["Prinplup"] = {water, boostStone}, ["Purugly"] = {heart, boostStone}, ["Rampardos"] = {rock, boostStone}, ["Riolu"] = {punch, boostStone}, ["Shellos"] = {water, boostStone}, ["Shellos1"] = {water, boostStone}, ["Shieldon"] = {rock, boostStone}, ["Shinx"] = {heart, boostStone}, ["Skorupi"] = {venom, boostStone}, ["Skuntank"] = {heart, boostStone}, ["Snover"] = {ice, boostStone}, ["Spiritomb"] = {dark, boostStone}, ["Staraptor"] = {heart, boostStone}, ["Staravia"] = {heart, boostStone}, ["Starly"] = {heart, boostStone}, ["Stunky"] = {heart, boostStone}, ["Tangrowth"] = {water, boostStone}, ["Togekiss"] = {enigma, boostStone}, ["Torterra"] = {leaf, boostStone}, ["Toxicroak"] = {venom, boostStone}, ["Turtwig"] = {leaf, boostStone}, ["Vespiquen"] = {heart, boostStone}, ["Weavile"] = {heart, boostStone}, ["Wormadam Grass"] = {leaf, boostStone}, ["Wormadam Ground"] = {heart, boostStone}, ["Wormadam Steel"] = {heart, boostStone}, ["Yanmega"] = {leaf, boostStone}, -- ["Absol"] = {dark, boostStone}, ["Aggron"] = {rock, boostStone}, ["Altaria"] = {heart, boostStone}, ["Anorith"] = {rock, boostStone}, ["Armaldo"] = {rock, boostStone}, ["Aron"] = {rock, boostStone}, ["Bagon"] = {crystal, boostStone}, ["Baltoy"] = {enigma, boostStone}, ["Banette"] = {dark, boostStone}, ["Barboach"] = {water, boostStone}, ["Beautifly"] = {venom, boostStone}, ["Beldum"] = {rock, boostStone}, ["Blaziken"] = {fire, boostStone}, ["Breloom"] = {leaf, boostStone}, ["Budew"] = {leaf, boostStone}, ["Cacnea"] = {leaf, boostStone}, ["Cacturne"] = {leaf, boostStone}, ["Camerupt"] = {fire, boostStone}, ["Carvanha"] = {water, boostStone}, ["Cascoon"] = {venom, boostStone}, ["Castform"] = {heart, boostStone}, ["Chimecho"] = {enigma, boostStone}, ["Chingling"] = {enigma, boostStone}, ["Clamperl"] = {water, boostStone}, ["Claydol"] = {enigma, boostStone}, ["Combusken"] = {fire, boostStone}, ["Corphish"] = {water, boostStone}, ["Crawdaunt"] = {water, boostStone}, ["Cradily"] = {leaf, boostStone}, ["Crawdaunt"] = {water, boostStone}, ["Delcatty"] = {heart, boostStone}, ["Dusclops"] = {dark, boostStone}, ["Dusknoir"] = {dark, boostStone}, ["Duskull"] = {dark, boostStone}, ["Dustox"] = {venom, boostStone}, ["Electrike"] = {thunder, boostStone}, ["Exploud"] = {heart, boostStone}, ["Feebas"] = {water, boostStone}, ["Flygon"] = {leaf, boostStone}, ["Froslass"] = {ice, boostStone}, ["Gallade"] = {enigma, boostStone}, ["Gardevoir"] = {enigma, boostStone}, ["Glalie"] = {ice, boostStone}, ["Gorebyss"] = {water, boostStone}, ["Groudon"] = {fire, boostStone}, ["Grovyle"] = {leaf, boostStone}, ["Grumpig"] = {enigma, boostStone}, ["Gulpin"] = {venom, boostStone}, ["Hariyama"] = {punch, boostStone}, ["Huntail"] = {water, boostStone}, ["Illumise"] = {vemon, boostStone}, ["Jirachi"] = {enigma, boostStone}, ["Kecleon"] = {heart, boostStone}, ["Kirlia"] = {enigma, boostStone}, ["Kyogre"] = {water, boostStone}, ["Lairon"] = {rock, boostStone}, ["Lileep"] = {leaf, boostStone}, ["Linoone"] = {heart, boostStone}, ["Lombre"] = {leaf, boostStone}, ["Lotad"] = {leaf, boostStone}, ["Loudred"] = {leaf, boostStone}, ["Ludicolo"] = {leaf, boostStone}, ["Lunatone"] = {enigma, boostStone}, ["Luvdisc"] = {water, boostStone}, ["Magnezone"] = {thunder, boostStone}, ["Makuhita"] = {punch, boostStone}, ["Manectric"] = {thunder, boostStone}, ["Marshtomp"] = {water, boostStone}, ["Masquerain"] = {venom, boostStone}, ["Mawile"] = {rock, boostStone}, ["Medicham"] = {enigma, boostStone}, ["Meditite"] = {enigma, boostStone}, ["Metagross"] = {rock, boostStone}, ["Metang"] = {rock, boostStone}, ["Milotic"] = {water, boostStone}, ["Minun"] = {thunder, boostStone}, ["Mudkip"] = {water, boostStone}, ["Nincada"] = {venom, boostStone}, ["Ninjask"] = {venom, boostStone}, ["Numel"] = {fire, boostStone}, ["Nuzleaf"] = {leaf, boostStone}, ["Pelipper"] = {water, boostStone}, ["Phione"] = {water, boostStone}, ["Phione"] = {thunder, boostStone}, ["Poochyena"] = {dark, boostStone}, ["Probopass"] = {rock, boostStone}, ["Ralts"] = {enigma, boostStone}, ["Rayquaza"] = {heart, boostStone}, ["Regice"] = {enigma, boostStone}, ["Regirock"] = {rock, boostStone}, ["Relicanth"] = {rock, boostStone}, ["Roselia"] = {leaf, boostStone}, ["Roserade"] = {leaf, boostStone}, ["Sableye"] = {water, boostStone}, ["Salamence"] = {heart, boostStone}, ["Sealeo"] = {water, boostStone}, ["Sceptile"] = {leaf, boostStone}, ["Seedot"] = {leaf, boostStone}, ["Seviper"] = {venom, boostStone}, ["Sharpedo"] = {water, boostStone}, ["Shedinja"] = {venom, boostStone}, ["Shelgon"] = {heart, boostStone}, ["Shiftry"] = {leaf, boostStone}, ["Shroomish"] = {leaf, boostStone}, ["Shuppet"] = {dark, boostStone}, ["Silcoon"] = {venom, boostStone}, ["Skitty"] = {heart, boostStone}, ["Slaking"] = {heart, boostStone}, ["Slakoth"] = {heart, boostStone}, ["Snorunt"] = {ice, boostStone}, ["Solrock"] = {enigma, boostStone}, ["Spheal"] = {ice, boostStone}, ["Spinda"] = {heart, boostStone}, ["Surskit"] = {venom, boostStone}, ["Swablu"] = {heart, boostStone}, ["Swalot"] = {heart, boostStone}, ["Swampert"] = {water, boostStone}, ["Swellow"] = {heart, boostStone}, ["Taillow"] = {heart, boostStone}, ["Torchic"] = {fire, boostStone}, ["Torkoal"] = {fire, boostStone}, ["Trapinch"] = {crystal, boostStone}, ["Treecko"] = {leaf, boostStone}, ["Tropius"] = {leaf, boostStone}, ["Vibrava"] = {leaf, boostStone}, ["Vigoroth"] = {heart, boostStone}, ["Volbeat"] = {venom, boostStone}, ["Wailmer"] = {water, boostStone}, ["Wailord"] = {water, boostStone}, ["Walrein"] = {water, boostStone}, ["Whiscash"] = {water, boostStone}, ["Whismur"] = {heart, boostStone}, ["Wingull"] = {water, boostStone}, ["Wurmple"] = {venom, boostStone}, ["Zigzagoon"] = {heart, boostStone}, ["Zangoose"] = {heart, boostStone}, -- ["Chikorita"] = {leaf, boostStone}, ["Bayleef"] = {leaf, boostStone}, ["Meganium"] = {leaf, boostStone}, ["Cyndaquil"] = {fire, boostStone}, ["Quilava"] = {fire, boostStone}, ["Typhlosion"] = {fire, boostStone}, ["Totodile"] = {water, boostStone}, ["Croconaw"] = {water, boostStone}, ["Feraligatr"] = {water, boostStone}, ["Sentret"] = {heart, boostStone}, ["Furret"] = {heart, boostStone}, ["Hoothoot"] = {heart, enigma, boostStone}, ["Noctowl"] = {heart, enigma, boostStone}, ["Ledyba"] = {coccon, boostStone}, ["Ledian"] = {coccon, boostStone}, ["Spinarak"] = {coccon, venom, boostStone}, ["Ariados"] = {coccon, venom, boostStone}, ["Crobat"] = {venom, boostStone}, ["Chinchou"] = {water, thunder, boostStone}, ["Lanturn"] = {water, thunder, boostStone}, ["Pichu"] = {thunder, boostStone}, ["Cleffa"] = {heart, boostStone}, ["Iglybuff"] = {venom, boostStone}, ["Natu"] = {enigma, boostStone}, ["Xatu"] = {enigma, boostStone}, ["Mareep"] = {thunder, boostStone}, ["Flaaffy"] = {thunder, boostStone}, ["Ampharos"] = {thunder, boostStone}, ["Bellossom"] = {leaf, boostStone}, ["Marill"] = {water, boostStone}, ["Azulmarill"] = {water, boostStone}, ["Sudowoodo"] = {rock, earth, boostStone}, ["Politoed"] = {water, earth, boostStone}, ["Hoppip"] = {leaf, boostStone}, ["Skiploom"] = {leaf, boostStone}, ["Jumpluff"] = {leaf, boostStone}, ["Aipom"] = {heart, boostStone}, ["Sunkern"] = {leaf, boostStone}, ["Sunflora"] = {leaf, boostStone}, ["Yanma"] = {venom, coccon, boostStone}, ["Wooper"] = {water, boostStone}, ["Quagsire"] = {water, earth, boostStone}, ["Murkrow"] = {dark, boostStone}, ["Slowking"] = {water,enigma, boostStone}, ["Misdreavus"] = {dark, boostStone}, ["Wobbuffet"] = {enigma, boostStone}, ["Girafarig"] = {enigma, boostStone}, ["Pineco"] = {coccon, boostStone}, ["Forretress"] = {coccon, boostStone}, ["Gligar"] = {dark, heart, boostStone}, ["Steelix"] = {earth, rock, boostStone}, ["Snubbull"] = {heart, boostStone}, ["Granbull"] = {heart, boostStone}, ["Qwilfish"] = {water, boostStone}, ["Shuckle"] = {earth, boostStone}, ["Heracross"] = {coccon, boostStone}, ["Teddiursa"] = {heart, boostStone}, ["Ursaring"] = {heart, dark, boostStone}, ["Slugma"] = {fire, boostStone}, ["Magcargo"] = {fire, boostStone}, ["Swinub"] = {ice, earth, boostStone}, ["Piloswine"] = {ice, earth, boostStone}, ["Corsola"] = {water, boostStone}, ["Remoraid"] = {water, boostStone}, ["Octillery"] = {water, boostStone}, ["Delibird"] = {ice, heart, boostStone}, ["Mantine"] = {water, boostStone}, ["Skarmory"] = {heart, boostStone}, ["Houndour"] = {fire, dark, boostStone}, ["Houndoom"] = {fire, dark, boostStone}, ["Kingdra"] = {water, crystal, boostStone}, ["Phanpy"] = {earth, boostStone}, ["Donphan"] = {earth, boostStone}, ["porygon2"] = {enigma, boostStone}, ["Stantler"] = {heart, boostStone}, ["Smeargle"] = {heart, boostStone}, ["Tyrogue"] = {punch, boostStone}, ["Hitmontop"] = {punch, boostStone}, ["Smoochum"] = {ice, enigma, boostStone}, ["Elekid"] = {thunder, boostStone}, ["Magby"] = {fire, boostStone}, ["Miltank"] = {heart, boostStone}, ["Blissey"] = {heart, boostStone}, ["Raikou"] = {thunder, boostStone}, ["Entei"] = {fire, boostStone}, ["Suicune"] = {water, boostStone}, ["Larvitar"] = {earth, dark, boostStone}, ["Pupitar"] = {earth, dark, boostStone}, ["Tyranitar"] = {earth, dark, boostStone}, ["Lugia"] = {enigma, water, boostStone}, ["Ho-oh"] = {enigma, fire, boostStone}, ["Celebi"] = {leaf, enigma, boostStone}} function doRestoreBoostMachine(cid, b_pos, p_pos, s_pos, msg, msg2) doSendAnimatedText(b_pos, "DONE.", 215) if isCreature(cid) then doCreatureSetNoMove(cid, false) doPlayerSendTextMessage(cid, 27, msg) doPlayerSendTextMessage(cid, 27, msg2) end local ball_s = getTileItemById(p_pos, ballslot_run) doTransformItem(ball_s.uid, ballslot) local stne_s = getTileItemById(s_pos, stoneslot_run) doTransformItem(stne_s.uid, stoneslot) local butn_s = getTileItemById(b_pos, button_run) doTransformItem(butn_s.uid, button) end local stones_required = { -- custo base de stones para boostar [heart] = 1, [leaf] = 1, [water] = 1, [venom] = 1, [thunder] = 1, [rock] = 1, [punch] = 1, [fire] = 1, [coccon] = 1, [crystal] = 1, [dark] = 1, [earth] = 1, [enigma] = 1, [ice] = 1, [boostStone] = 10, --alterado v1.9 } local stone_increase = { -- a cada quantos boosts irá aumentar o custo de stones [heart] = 2, [leaf] = 2, [water] = 2, [venom] = 2, [thunder] = 2, [rock] = 2, [punch] = 2, [fire] = 2, [coccon] = 2, [crystal] = 2, [dark] = 2, [earth] = 2, [enigma] = 2, [ice] = 2, [boostStone] = 10000, } local pbs = { [11826] = 11737, --normal acessa --alterado v1.9 \/ [11828] = 11739, --normal morto [11832] = 11740, --great acessa [11834] = 11742, --great morto [11835] = 11743, --super acessa [11837] = 11745, --super morto [11829] = 11746, --ultra acessa [11831] = 11748, --ultra morto [10975] = 12621, --saffari acessa [10977] = 12623, --saffari morto } function onUse(cid, item, topos, item2, frompos) if isRunning(item.itemid) then doPlayerSendCancel(cid, "Wait until boosting finishes.") return true end if item.itemid == button then local pbpos = topos pbpos.x = pbpos.x + 1 local ball_slot = getTileItemById(pbpos, ballslot) local myball = getContainerItem(ball_slot.uid, 0) if myball.uid <= 0 or getItemWeight(myball.uid) == 0 then doPlayerSendCancel(cid, "You need to put a pokeball in the ball slot.") return true end local pokemon = getItemAttribute(myball.uid, "poke") local boost = getItemAttribute(myball.uid, "boost") or 0 if boost >= 50 then doPlayerSendCancel(cid, "Your pokemon is already at maximum boost.") return true end local stnpos = pbpos stnpos.x = stnpos.x - 2 local stone_slot = getTileItemById(stnpos, stoneslot) local stone = getContainerItem(stone_slot.uid, 0) if stone.uid <= 0 then doPlayerSendCancel(cid, "You need to put a stone in the stone slot.") return true end if not isStone(stone.itemid) then doPlayerSendCancel(cid, "Please, put only stones in the stone slot.") return true end if not isInArray(boost_stones[pokemon], stone.itemid) then local cancelstr = "Sorry, you are not using the correct stone." if #boost_stones[pokemon] > 1 then local stonesused = "" cancelstr = cancelstr.." This pokemon needs " for su = 1, #boost_stones[pokemon] do local n = doCorrectString(getItemNameById(boost_stones[pokemon][su])) if su == #boost_stones[pokemon] then stonesused = stonesused.." or "..getArticle(n).." "..n.."" elseif su == 1 then stonesused = stonesused..""..getArticle(n).." "..n.."" else stonesused = stonesused..", "..n.."" end end cancelstr = cancelstr..""..stonesused.." to be boosted." else cancelstr = cancelstr.." This pokemon needs a "..doCorrectString(getItemNameById(boost_stones[pokemon][1])).." to be boosted." end doPlayerSendCancel(cid, cancelstr) return true end local removeStones = 0 local extraStones = math.floor(boost / stone_increase[stone.itemid]) local required_stones = stones_required[stone.itemid] + extraStones local boosts = 0 for a = 0, getContainerSize(stone_slot.uid) - 1 do local it = getContainerItem(stone_slot.uid, a) if it.uid > 0 then if not isStone(it.itemid) then doPlayerSendCancel(cid, "Please, put only stones in the stone slot.") return true end if it.itemid ~= stone.itemid then doPlayerSendCancel(cid, "Please, put only one type of stone in the stone slot.") return true end if required_stones > 0 then required_stones = required_stones - (it.type ~= 0 and it.type or 1) --alterado v1.7 if required_stones <= 0 then boosts = boosts + 1 removeStones = removeStones + stones_required[stone.itemid] + extraStones if boost + boosts <= 49 then extraStones = math.floor((boost + boosts) / stone_increase[stone.itemid]) required_stones = stones_required[stone.itemid] + extraStones end break end end end end if required_stones > 0 and boosts == 0 then doPlayerSendCancel(cid, "You need more stones to boost this pokemon.") return true end for b = 1, removeStones do local i = getContainerItem(stone_slot.uid, 0) if i.type ~= 0 then doChangeTypeItem(i.uid, i.type - 1) --alterado v1.7 else doRemoveItem(i.uid, 1) end end doSetItemAttribute(myball.uid, "boost", boost + boosts) doSetItemAttribute(myball.uid, "boosting", 1) --alterado v1.9.1 if (boost + boosts) >= 10 then if pbs[myball.itemid] then --alterado v1.9 doTransformItem(myball.uid, pbs[myball.itemid]) end end doItemEraseAttribute(myball.uid, "boosting") --alterado v1.9.1 local msg = "Your "..getPokeballName(myball.uid).." has been boosted!" local msg2 = "• Boost: "..(boost + boosts).." (+"..boosts..")" local downpos = getThingPos(cid) downpos.y = downpos.y + 1 local mypos = getThingPos(cid) doTeleportThing(cid, downpos, false) doTeleportThing(cid, mypos, false) doTransformItem(ball_slot.uid, ballslot_run) doTransformItem(stone_slot.uid, stoneslot_run) doTransformItem(item.uid, button_run) doCreatureSetNoMove(cid, true) doCreatureAddCondition(cid, boostcondition) addEvent(doRestoreBoostMachine, 3000, cid, getThingPos(item.uid), getThingPos(ball_slot.uid), getThingPos(stone_slot.uid), msg, msg2) return true end end Link para o comentário https://xtibia.com/forum/topic/223813-encerrado-duvida-boost/#findComment-1581612 Compartilhar em outros sites More sharing options...
zipter98 1102 Postado Novembro 12, 2013 Share Postado Novembro 12, 2013 (editado) /\ Isso que você mudou, é o custo base de stones. O que o brunnoo quer, é que a boost stone dê 10 boosts. Só editar a variável boost_id (tá indicado no script, é logo no comecinho). Testado, funcionando. local ballslot = 12355 local ballslot_run = 12352 local stoneslot = 12354 local stoneslot_run = 12353 local boost_id = 12618 --Coloque aqui o ID da boost stone. local button = 12356 local button_run = 12357 function isRunning(id) if isInArray({button_run, stoneslot_run, ballslot_run}, id) then return true end return false end boost_stones = { ["Bulbasaur"] = {leaf, boostStone}, ["Ivysaur"] = {leaf, boostStone}, ["Venusaur"] = {leaf, boostStone}, ["Charmander"] = {fire, boostStone}, ["Charmeleon"] = {fire, boostStone}, ["Charizard"] = {fire, boostStone}, ["Squirtle"] = {water, boostStone}, ["Wartortle"] = {water, boostStone}, ["Blastoise"] = {water, boostStone}, ["Caterpie"] = {coccon, boostStone}, ["Metapod"] = {coccon, boostStone}, ["Butterfree"] = {coccon, boostStone}, ["Weedle"] = {coccon, boostStone}, ["Kakuna"] = {coccon, boostStone}, ["Beedrill"] = {coccon, boostStone}, ["Pidgey"] = {heart, boostStone}, ["Pidgeotto"] = {heart, boostStone}, ["Pidgeot"] = {heart, boostStone}, ["Rattata"] = {heart, boostStone}, ["Raticate"] = {heart, boostStone}, ["Spearow"] = {heart, boostStone}, ["Fearow"] = {heart, boostStone}, ["Ekans"] = {venom, boostStone}, ["Arbok"] = {venom, boostStone}, ["Pikachu"] = {thunder, boostStone}, ["Raichu"] = {thunder, boostStone}, ["Sandshrew"] = {earth, boostStone}, ["Sandslash"] = {earth, boostStone}, ["Nidoran Female"] = {venom, boostStone}, ["Nidorina"] = {venom, boostStone}, ["Nidoqueen"] = {venom, earth, boostStone}, ["Nidoran Male"] = {venom, boostStone}, ["Nidorino"] = {venom, boostStone}, ["Nidoking"] = {venom, earth, boostStone}, ["Clefairy"] = {heart, boostStone}, ["Clefable"] = {heart, boostStone}, ["Vulpix"] = {fire, boostStone}, ["Ninetales"] = {fire, boostStone}, ["Jigglypuff"] = {heart, boostStone}, ["Wigglytuff"] = {heart, boostStone}, ["Zubat"] = {venom, boostStone}, ["Golbat"] = {venom, boostStone}, ["Oddish"] = {leaf, venom, boostStone}, ["Gloom"] = {leaf, venom, boostStone}, ["Vileplume"] = {leaf, venom, boostStone}, ["Paras"] = {coccon, leaf, boostStone}, ["Parasect"] = {coccon, leaf, boostStone}, ["Venonat"] = {coccon, venom, boostStone}, ["Venomoth"] = {coccon, venom, boostStone}, ["Diglett"] = {earth, boostStone}, ["Dugtrio"] = {earth, boostStone}, ["Meowth"] = {heart, boostStone}, ["Persian"] = {heart, boostStone}, ["Psyduck"] = {water, boostStone}, ["Golduck"] = {water, enigma, boostStone}, ["Mankey"] = {punch, boostStone}, ["Primeape"] = {punch, boostStone}, ["Growlithe"] = {fire, boostStone}, ["Arcanine"] = {fire, boostStone}, ["Poliwag"] = {water, boostStone}, ["Poliwhirl"] = {water, boostStone}, ["Poliwrath"] = {water, punch, boostStone}, ["Abra"] = {enigma, boostStone}, ["Kadabra"] = {enigma, boostStone}, ["Alakazam"] = {enigma, boostStone}, ["Machop"] = {punch, boostStone}, ["Machoke"] = {punch, boostStone}, ["Machamp"] = {punch, boostStone}, ["Bellsprout"] = {leaf, venom, boostStone}, ["Weepinbell"] = {leaf, venom, boostStone}, ["Victreebel"] = {leaf, venom, boostStone}, ["Tentacool"] = {water, venom, boostStone}, ["Tentacruel"] = {water, venom, boostStone}, ["Geodude"] = {earth, rock, boostStone}, ["Graveler"] = {earth, rock, boostStone}, ["Golem"] = {earth, rock, boostStone}, ["Ponyta"] = {fire, boostStone}, ["Rapidash"] = {fire, boostStone}, ["Slowpoke"] = {water, enigma, boostStone}, ["Slowbro"] = {water, enigma, boostStone}, ["Magnemite"] = {thunder, metal, boostStone}, ["Magneton"] = {thunder, metal, boostStone}, ["Farfetch'd"] = {heart, boostStone}, ["Doduo"] = {heart, boostStone}, ["Dodrio"] = {heart, boostStone}, ["Seel"] = {water, ice, boostStone}, ["Dewgong"] = {water, ice, boostStone}, ["Grimer"] = {venom, boostStone}, ["Muk"] = {venom, boostStone}, ["Shellder"] = {water, ice, boostStone}, ["Cloyster"] = {water, ice, boostStone}, ["Gastly"] = {dark, boostStone}, ["Haunter"] = {dark, boostStone}, ["Gengar"] = {dark, boostStone}, ["Onix"] = {rock, earth, boostStone}, ["Drowzee"] = {enigma, boostStone}, ["Hypno"] = {enigma, boostStone}, ["Krabby"] = {water, boostStone}, ["Kingler"] = {water, boostStone}, ["Voltorb"] = {thunder, boostStone}, ["Electrode"] = {thunder, boostStone}, ["Exeggcute"] = {enigma, leaf, boostStone}, ["Exeggutor"] = {enigma, leaf, boostStone}, ["Cubone"] = {earth, boostStone}, ["Marowak"] = {earth, boostStone}, ["Hitmonlee"] = {punch, boostStone}, ["Hitmonchan"] = {punch, boostStone}, ["Lickitung"] = {heart, boostStone}, ["Koffing"] = {venom, boostStone}, ["Weezing"] = {venom, boostStone}, ["Rhyhorn"] = {earth, rock, boostStone}, ["Rhydon"] = {earth, rock, boostStone}, ["Chansey"] = {heart, boostStone}, ["Tangela"] = {leaf, boostStone}, ["Kangaskhan"] = {heart, boostStone}, ["Horsea"] = {water, boostStone}, ["Seadra"] = {water, boostStone}, ["Goldeen"] = {water, boostStone}, ["Seaking"] = {water, boostStone}, ["Staryu"] = {water, boostStone}, ["Starmie"] = {water, boostStone}, ["Mr. Mime"] = {enigma, boostStone}, ["Scyther"] = {coccon, boostStone}, ["Jynx"] = {enigma, ice, boostStone}, ["Electabuzz"] = {thunder, boostStone}, ["Magmar"] = {fire, boostStone}, ["Pinsir"] = {coccon, boostStone}, ["Tauros"] = {heart, boostStone}, ["Magikarp"] = {water, boostStone}, ["Gyarados"] = {water, crystal, boostStone}, ["Lapras"] = {water, ice, boostStone}, ["Ditto"] = {heart, boostStone}, ["Eevee"] = {heart, boostStone}, ["Vaporeon"] = {water, boostStone}, ["Jolteon"] = {thunder, boostStone}, ["Flareon"] = {fire, boostStone}, ["Espeon"] = {enigma, boostStone}, ["Umbreon"] = {dark, boostStone}, ["Porygon"] = {heart, enigma, boostStone}, ["Omanyte"] = {rock, water, boostStone}, ["Omastar"] = {rock, water, boostStone}, ["Kabuto"] = {rock, water, boostStone}, ["Kabutops"] = {rock, water, boostStone}, ["Aerodactyl"] = {rock, boostStone}, ["Snorlax"] = {heart, boostStone}, ["Articuno"] = {ice, boostStone}, ["Zapdos"] = {thunder, boostStone}, ["Moltres"] = {fire, boostStone}, ["Dratini"] = {crystal, boostStone}, ["Dragonair"] = {crystal, boostStone}, ["Dragonite"] = {crystal, boostStone}, ["Mewtwo"] = {enigma, boostStone}, ["Mew"] = {enigma, boostStone}, -- ["Shiny Bulbasaur"] = {leaf, boostStone}, ["Shiny Ivysaur"] = {leaf, boostStone}, ["Shiny Venusaur"] = {leaf, boostStone}, ["Shiny Charmander"] = {fire, boostStone}, ["Shiny Charmeleon"] = {fire, boostStone}, ["Shiny Charizard"] = {fire, boostStone}, ["Shiny Squirtle"] = {water, boostStone}, ["Shiny Wartortle"] = {water, boostStone}, ["Shiny Blastoise"] = {water, boostStone}, ["Shiny Caterpie"] = {coccon, boostStone}, ["Shiny Metapod"] = {coccon, boostStone}, ["Shiny Butterfree"] = {coccon, boostStone}, ["Shiny Weedle"] = {coccon, boostStone}, ["Shiny Kakuna"] = {coccon, boostStone}, ["Shiny Beedrill"] = {coccon, boostStone}, ["Shiny Pidgey"] = {heart, boostStone}, ["Shiny Pidgeotto"] = {heart, boostStone}, ["Shiny Pidgeot"] = {heart, boostStone}, ["Shiny Rattata"] = {heart, boostStone}, ["Shiny Raticate"] = {heart, boostStone}, ["Shiny Spearow"] = {heart, boostStone}, ["Shiny Fearow"] = {heart, boostStone}, ["Shiny Ekans"] = {venom, boostStone}, ["Shiny Arbok"] = {venom, boostStone}, ["Shiny Pikachu"] = {thunder, boostStone}, ["Shiny Raichu"] = {thunder, boostStone}, ["Shiny Sandshrew"] = {earth, boostStone}, ["Shiny Sandslash"] = {earth, boostStone}, ["Shiny Nidoran Female"] = {venom, boostStone}, ["Shiny Nidorina"] = {venom, boostStone}, ["Shiny Nidoqueen"] = {venom, earth, boostStone}, ["Shiny Nidoran Male"] = {venom, boostStone}, ["Shiny Nidorino"] = {venom, boostStone}, ["Shiny Nidoking"] = {venom, earth, boostStone}, ["Shiny Clefairy"] = {heart, boostStone}, ["Shiny Clefable"] = {heart, boostStone}, ["Shiny Vulpix"] = {fire, boostStone}, ["Shiny Ninetales"] = {fire, boostStone}, ["Shiny Jigglypuff"] = {heart, boostStone}, ["Shiny Wigglytuff"] = {heart, boostStone}, ["Shiny Zubat"] = {venom, boostStone}, ["Shiny Golbat"] = {venom, boostStone}, ["Shiny Oddish"] = {leaf, venom, boostStone}, ["Shiny Gloom"] = {leaf, venom, boostStone}, ["Shiny Vileplume"] = {leaf, venom, boostStone}, ["Shiny Paras"] = {coccon, leaf, boostStone}, ["Shiny Parasect"] = {coccon, leaf, boostStone}, ["Shiny Venonat"] = {coccon, venom, boostStone}, ["Shiny Venomoth"] = {coccon, venom, boostStone}, ["Shiny Diglett"] = {earth, boostStone}, ["Shiny Dugtrio"] = {earth, boostStone}, ["Shiny Meowth"] = {heart, boostStone}, ["Shiny Persian"] = {heart, boostStone}, ["Shiny Psyduck"] = {water, boostStone}, ["Shiny Golduck"] = {water, enigma, boostStone}, ["Shiny Mankey"] = {punch, boostStone}, ["Shiny Primeape"] = {punch, boostStone}, ["Shiny Growlithe"] = {fire, boostStone}, ["Shiny Arcanine"] = {fire, boostStone}, ["Shiny Poliwag"] = {water, boostStone}, ["Shiny Poliwhirl"] = {water, boostStone}, ["Shiny Poliwrath"] = {water, punch, boostStone}, ["Shiny Abra"] = {enigma, boostStone}, ["Shiny Kadabra"] = {enigma, boostStone}, ["Shiny Alakazam"] = {enigma, boostStone}, ["Shiny Machop"] = {punch, boostStone}, ["Shiny Machoke"] = {punch, boostStone}, ["Shiny Machamp"] = {punch, boostStone}, ["Shiny Bellsprout"] = {leaf, venom, boostStone}, ["Shiny Weepinbell"] = {leaf, venom, boostStone}, ["Shiny Victreebel"] = {leaf, venom, boostStone}, ["Shiny Tentacool"] = {water, venom, boostStone}, ["Shiny Tentacruel"] = {water, venom, boostStone}, ["Shiny Geodude"] = {earth, rock, boostStone}, ["Shiny Graveler"] = {earth, rock, boostStone}, ["Shiny Golem"] = {earth, rock, boostStone}, ["Shiny Ponyta"] = {fire, boostStone}, ["Shiny Rapidash"] = {fire, boostStone}, ["Shiny Slowpoke"] = {water, enigma, boostStone}, ["Shiny Slowbro"] = {water, enigma, boostStone}, ["Shiny Magnemite"] = {thunder, metal, boostStone}, ["Shiny Magneton"] = {thunder, metal, boostStone}, ["Shiny Farfetch'd"] = {heart, boostStone}, ["Shiny Doduo"] = {heart, boostStone}, ["Shiny Dodrio"] = {heart, boostStone}, ["Shiny Seel"] = {water, ice, boostStone}, ["Shiny Dewgong"] = {water, ice, boostStone}, ["Shiny Grimer"] = {venom, boostStone}, ["Shiny Muk"] = {venom, boostStone}, ["Shiny Shellder"] = {water, ice, boostStone}, ["Shiny Cloyster"] = {water, ice, boostStone}, ["Shiny Gastly"] = {dark, boostStone}, ["Shiny Haunter"] = {dark, boostStone}, ["Shiny Gengar"] = {dark, boostStone}, ["Shiny Onix"] = {rock, earth, boostStone}, ["Shiny Drowzee"] = {enigma, boostStone}, ["Shiny Hypno"] = {enigma, boostStone}, ["Shiny Krabby"] = {water, boostStone}, ["Shiny Kingler"] = {water, boostStone}, ["Shiny Voltorb"] = {thunder, boostStone}, ["Shiny Electrode"] = {thunder, boostStone}, ["Shiny Exeggcute"] = {enigma, leaf, boostStone}, ["Shiny Exeggutor"] = {enigma, leaf, boostStone}, ["Shiny Cubone"] = {earth, boostStone}, ["Shiny Marowak"] = {earth, boostStone}, ["Shiny Hitmonlee"] = {punch, boostStone}, ["Shiny Hitmonchan"] = {punch, boostStone}, ["Shiny Hitmontop"] = {punch, boostStone}, ["Shiny Lickitung"] = {heart, boostStone}, ["Shiny Koffing"] = {venom, boostStone}, ["Shiny Weezing"] = {venom, boostStone}, ["Shiny Rhyhorn"] = {earth, rock, boostStone}, ["Shiny Rhydon"] = {earth, rock, boostStone}, ["Shiny Chansey"] = {heart, boostStone}, ["Shiny Tangela"] = {leaf, boostStone}, ["Shiny Kangaskhan"] = {heart, boostStone}, ["Shiny Horsea"] = {water, boostStone}, ["Shiny Seadra"] = {water, boostStone}, ["Shiny Goldeen"] = {water, boostStone}, ["Shiny Seaking"] = {water, boostStone}, ["Shiny Staryu"] = {water, boostStone}, ["Shiny Starmie"] = {water, boostStone}, ["Shiny Mr. Mime"] = {enigma, boostStone}, ["Shiny Scyther"] = {coccon, boostStone}, ["Shiny Jynx"] = {enigma, ice, boostStone}, ["Shiny Electabuzz"] = {thunder, boostStone}, ["Shiny Magmar"] = {fire, boostStone}, ["Shiny Pinsir"] = {coccon, boostStone}, ["Shiny Tauros"] = {heart, boostStone}, ["Shiny Magikarp"] = {water, boostStone}, ["Shiny Gyarados"] = {water, crystal, boostStone}, ["Shiny Lapras"] = {water, ice, boostStone}, ["Shiny Ditto"] = {heart, boostStone}, ["Shiny Eevee"] = {heart, boostStone}, ["Shiny Vaporeon"] = {water, boostStone}, ["Shiny Jolteon"] = {thunder, boostStone}, ["Shiny Flareon"] = {fire, boostStone}, ["Shiny Porygon"] = {heart, enigma, boostStone}, ["Shiny Omanyte"] = {rock, water, boostStone}, ["Shiny Omastar"] = {rock, water, boostStone}, ["Shiny Kabuto"] = {rock, water, boostStone}, ["Shiny Kabutops"] = {rock, water, boostStone}, ["Shiny Aerodactyl"] = {rock, boostStone}, ["Shiny Snorlax"] = {heart, boostStone}, ["Shiny Articuno"] = {ice, boostStone}, ["Shiny Zapdos"] = {thunder, boostStone}, ["Shiny Moltres"] = {fire, boostStone}, ["Shiny Dratini"] = {crystal, boostStone}, ["Shiny Dragonair"] = {crystal, boostStone}, ["Shiny Dragonite"] = {crystal, boostStone}, ["Shiny Mewtwo"] = {enigma, boostStone}, ["Shiny Mew"] = {enigma, boostStone}, ["Shiny Magby"] = {fire, boostStone}, -- ["Abomasnow"] = {ice, boostStone}, ["Ambipom"] = {heart, boostStone}, ["Bastiodon"] = {rock, boostStone}, ["Bibarel"] = {heart, boostStone}, ["Bidoof"] = {heart, boostStone}, ["Bronzong"] = {enigma, boostStone}, ["Bronzor"] = {enigma, boostStone}, ["Buizel"] = {water, boostStone}, ["Buneary"] = {heart, boostStone}, ["Burmy"] = {leaf, boostStone}, ["Carnivine"] = {water, boostStone}, ["Chatot"] = {heart, boostStone}, ["Cherrim"] = {leaf, boostStone}, ["Cherubi"] = {leaf, boostStone}, ["Chinchar"] = {fire, boostStone}, ["Combee"] = {heart, boostStone}, ["Cranidos"] = {rock, boostStone}, ["Croagunk"] = {venom, boostStone}, ["Darkrai"] = {dark, boostStone}, ["Drapion"] = {venom, boostStone}, ["Drifblim"] = {dark, boostStone}, ["Drifloon"] = {dark, boostStone}, ["Electivire"] = {thunder, boostStone}, ["Empoleon"] = {water, boostStone}, ["Finneon"] = {water, boostStone}, ["Floatzel"] = {water, boostStone}, ["Gabite"] = {crystal, boostStone}, ["Garchomp"] = {crystal, boostStone}, ["Gastrodon"] = {water, boostStone}, ["Gastrodon1"] = {water, boostStone}, ["Gible"] = {crystal, boostStone}, ["Glameow"] = {heart, boostStone}, ["Gliscor"] = {dark, boostStone}, ["Grotle"] = {leaf, boostStone}, ["Happiny"] = {heart, boostStone}, ["Heatran"] = {fire, boostStone}, ["Hippopotas"] = {heart, boostStone}, ["Hippowdon"] = {heart, boostStone}, ["Honchkrow"] = {heart, boostStone}, ["Infernape"] = {fire, boostStone}, ["Kricketot"] = {heart, boostStone}, ["Kricketune"] = {heart, boostStone}, ["Lickilicky"] = {heart, boostStone}, ["Lopunny"] = {heart, boostStone}, ["Lucario"] = {punch, boostStone}, ["Lumineon"] = {water, boostStone}, ["Luxio"] = {heart, boostStone}, ["Luxray"] = {heart, boostStone}, ["Magmortar"] = {fire, boostStone}, ["Mamoswine"] = {heart, boostStone}, ["Mantyke"] = {water, boostStone}, ["Mime Jr."] = {enigma, boostStone}, ["Mismagius"] = {enigma, boostStone}, ["Monferno"] = {fire, boostStone}, ["Mothim"] = {heart, boostStone}, ["Pachirisu"] = {heart, boostStone}, ["Piplup"] = {water, boostStone}, ["Prinplup"] = {water, boostStone}, ["Purugly"] = {heart, boostStone}, ["Rampardos"] = {rock, boostStone}, ["Riolu"] = {punch, boostStone}, ["Shellos"] = {water, boostStone}, ["Shellos1"] = {water, boostStone}, ["Shieldon"] = {rock, boostStone}, ["Shinx"] = {heart, boostStone}, ["Skorupi"] = {venom, boostStone}, ["Skuntank"] = {heart, boostStone}, ["Snover"] = {ice, boostStone}, ["Spiritomb"] = {dark, boostStone}, ["Staraptor"] = {heart, boostStone}, ["Staravia"] = {heart, boostStone}, ["Starly"] = {heart, boostStone}, ["Stunky"] = {heart, boostStone}, ["Tangrowth"] = {water, boostStone}, ["Togekiss"] = {enigma, boostStone}, ["Torterra"] = {leaf, boostStone}, ["Toxicroak"] = {venom, boostStone}, ["Turtwig"] = {leaf, boostStone}, ["Vespiquen"] = {heart, boostStone}, ["Weavile"] = {heart, boostStone}, ["Wormadam Grass"] = {leaf, boostStone}, ["Wormadam Ground"] = {heart, boostStone}, ["Wormadam Steel"] = {heart, boostStone}, ["Yanmega"] = {leaf, boostStone}, -- ["Absol"] = {dark, boostStone}, ["Aggron"] = {rock, boostStone}, ["Altaria"] = {heart, boostStone}, ["Anorith"] = {rock, boostStone}, ["Armaldo"] = {rock, boostStone}, ["Aron"] = {rock, boostStone}, ["Bagon"] = {crystal, boostStone}, ["Baltoy"] = {enigma, boostStone}, ["Banette"] = {dark, boostStone}, ["Barboach"] = {water, boostStone}, ["Beautifly"] = {venom, boostStone}, ["Beldum"] = {rock, boostStone}, ["Blaziken"] = {fire, boostStone}, ["Breloom"] = {leaf, boostStone}, ["Budew"] = {leaf, boostStone}, ["Cacnea"] = {leaf, boostStone}, ["Cacturne"] = {leaf, boostStone}, ["Camerupt"] = {fire, boostStone}, ["Carvanha"] = {water, boostStone}, ["Cascoon"] = {venom, boostStone}, ["Castform"] = {heart, boostStone}, ["Chimecho"] = {enigma, boostStone}, ["Chingling"] = {enigma, boostStone}, ["Clamperl"] = {water, boostStone}, ["Claydol"] = {enigma, boostStone}, ["Combusken"] = {fire, boostStone}, ["Corphish"] = {water, boostStone}, ["Crawdaunt"] = {water, boostStone}, ["Cradily"] = {leaf, boostStone}, ["Crawdaunt"] = {water, boostStone}, ["Delcatty"] = {heart, boostStone}, ["Dusclops"] = {dark, boostStone}, ["Dusknoir"] = {dark, boostStone}, ["Duskull"] = {dark, boostStone}, ["Dustox"] = {venom, boostStone}, ["Electrike"] = {thunder, boostStone}, ["Exploud"] = {heart, boostStone}, ["Feebas"] = {water, boostStone}, ["Flygon"] = {leaf, boostStone}, ["Froslass"] = {ice, boostStone}, ["Gallade"] = {enigma, boostStone}, ["Gardevoir"] = {enigma, boostStone}, ["Glalie"] = {ice, boostStone}, ["Gorebyss"] = {water, boostStone}, ["Groudon"] = {fire, boostStone}, ["Grovyle"] = {leaf, boostStone}, ["Grumpig"] = {enigma, boostStone}, ["Gulpin"] = {venom, boostStone}, ["Hariyama"] = {punch, boostStone}, ["Huntail"] = {water, boostStone}, ["Illumise"] = {vemon, boostStone}, ["Jirachi"] = {enigma, boostStone}, ["Kecleon"] = {heart, boostStone}, ["Kirlia"] = {enigma, boostStone}, ["Kyogre"] = {water, boostStone}, ["Lairon"] = {rock, boostStone}, ["Lileep"] = {leaf, boostStone}, ["Linoone"] = {heart, boostStone}, ["Lombre"] = {leaf, boostStone}, ["Lotad"] = {leaf, boostStone}, ["Loudred"] = {leaf, boostStone}, ["Ludicolo"] = {leaf, boostStone}, ["Lunatone"] = {enigma, boostStone}, ["Luvdisc"] = {water, boostStone}, ["Magnezone"] = {thunder, boostStone}, ["Makuhita"] = {punch, boostStone}, ["Manectric"] = {thunder, boostStone}, ["Marshtomp"] = {water, boostStone}, ["Masquerain"] = {venom, boostStone}, ["Mawile"] = {rock, boostStone}, ["Medicham"] = {enigma, boostStone}, ["Meditite"] = {enigma, boostStone}, ["Metagross"] = {rock, boostStone}, ["Metang"] = {rock, boostStone}, ["Milotic"] = {water, boostStone}, ["Minun"] = {thunder, boostStone}, ["Mudkip"] = {water, boostStone}, ["Nincada"] = {venom, boostStone}, ["Ninjask"] = {venom, boostStone}, ["Numel"] = {fire, boostStone}, ["Nuzleaf"] = {leaf, boostStone}, ["Pelipper"] = {water, boostStone}, ["Phione"] = {water, boostStone}, ["Phione"] = {thunder, boostStone}, ["Poochyena"] = {dark, boostStone}, ["Probopass"] = {rock, boostStone}, ["Ralts"] = {enigma, boostStone}, ["Rayquaza"] = {heart, boostStone}, ["Regice"] = {enigma, boostStone}, ["Regirock"] = {rock, boostStone}, ["Relicanth"] = {rock, boostStone}, ["Roselia"] = {leaf, boostStone}, ["Roserade"] = {leaf, boostStone}, ["Sableye"] = {water, boostStone}, ["Salamence"] = {heart, boostStone}, ["Sealeo"] = {water, boostStone}, ["Sceptile"] = {leaf, boostStone}, ["Seedot"] = {leaf, boostStone}, ["Seviper"] = {venom, boostStone}, ["Sharpedo"] = {water, boostStone}, ["Shedinja"] = {venom, boostStone}, ["Shelgon"] = {heart, boostStone}, ["Shiftry"] = {leaf, boostStone}, ["Shroomish"] = {leaf, boostStone}, ["Shuppet"] = {dark, boostStone}, ["Silcoon"] = {venom, boostStone}, ["Skitty"] = {heart, boostStone}, ["Slaking"] = {heart, boostStone}, ["Slakoth"] = {heart, boostStone}, ["Snorunt"] = {ice, boostStone}, ["Solrock"] = {enigma, boostStone}, ["Spheal"] = {ice, boostStone}, ["Spinda"] = {heart, boostStone}, ["Surskit"] = {venom, boostStone}, ["Swablu"] = {heart, boostStone}, ["Swalot"] = {heart, boostStone}, ["Swampert"] = {water, boostStone}, ["Swellow"] = {heart, boostStone}, ["Taillow"] = {heart, boostStone}, ["Torchic"] = {fire, boostStone}, ["Torkoal"] = {fire, boostStone}, ["Trapinch"] = {crystal, boostStone}, ["Treecko"] = {leaf, boostStone}, ["Tropius"] = {leaf, boostStone}, ["Vibrava"] = {leaf, boostStone}, ["Vigoroth"] = {heart, boostStone}, ["Volbeat"] = {venom, boostStone}, ["Wailmer"] = {water, boostStone}, ["Wailord"] = {water, boostStone}, ["Walrein"] = {water, boostStone}, ["Whiscash"] = {water, boostStone}, ["Whismur"] = {heart, boostStone}, ["Wingull"] = {water, boostStone}, ["Wurmple"] = {venom, boostStone}, ["Zigzagoon"] = {heart, boostStone}, ["Zangoose"] = {heart, boostStone}, -- ["Chikorita"] = {leaf, boostStone}, ["Bayleef"] = {leaf, boostStone}, ["Meganium"] = {leaf, boostStone}, ["Cyndaquil"] = {fire, boostStone}, ["Quilava"] = {fire, boostStone}, ["Typhlosion"] = {fire, boostStone}, ["Totodile"] = {water, boostStone}, ["Croconaw"] = {water, boostStone}, ["Feraligatr"] = {water, boostStone}, ["Sentret"] = {heart, boostStone}, ["Furret"] = {heart, boostStone}, ["Hoothoot"] = {heart, enigma, boostStone}, ["Noctowl"] = {heart, enigma, boostStone}, ["Ledyba"] = {coccon, boostStone}, ["Ledian"] = {coccon, boostStone}, ["Spinarak"] = {coccon, venom, boostStone}, ["Ariados"] = {coccon, venom, boostStone}, ["Crobat"] = {venom, boostStone}, ["Chinchou"] = {water, thunder, boostStone}, ["Lanturn"] = {water, thunder, boostStone}, ["Pichu"] = {thunder, boostStone}, ["Cleffa"] = {heart, boostStone}, ["Iglybuff"] = {venom, boostStone}, ["Natu"] = {enigma, boostStone}, ["Xatu"] = {enigma, boostStone}, ["Mareep"] = {thunder, boostStone}, ["Flaaffy"] = {thunder, boostStone}, ["Ampharos"] = {thunder, boostStone}, ["Bellossom"] = {leaf, boostStone}, ["Marill"] = {water, boostStone}, ["Azulmarill"] = {water, boostStone}, ["Sudowoodo"] = {rock, earth, boostStone}, ["Politoed"] = {water, earth, boostStone}, ["Hoppip"] = {leaf, boostStone}, ["Skiploom"] = {leaf, boostStone}, ["Jumpluff"] = {leaf, boostStone}, ["Aipom"] = {heart, boostStone}, ["Sunkern"] = {leaf, boostStone}, ["Sunflora"] = {leaf, boostStone}, ["Yanma"] = {venom, coccon, boostStone}, ["Wooper"] = {water, boostStone}, ["Quagsire"] = {water, earth, boostStone}, ["Murkrow"] = {dark, boostStone}, ["Slowking"] = {water,enigma, boostStone}, ["Misdreavus"] = {dark, boostStone}, ["Wobbuffet"] = {enigma, boostStone}, ["Girafarig"] = {enigma, boostStone}, ["Pineco"] = {coccon, boostStone}, ["Forretress"] = {coccon, boostStone}, ["Gligar"] = {dark, heart, boostStone}, ["Steelix"] = {earth, rock, boostStone}, ["Snubbull"] = {heart, boostStone}, ["Granbull"] = {heart, boostStone}, ["Qwilfish"] = {water, boostStone}, ["Shuckle"] = {earth, boostStone}, ["Heracross"] = {coccon, boostStone}, ["Teddiursa"] = {heart, boostStone}, ["Ursaring"] = {heart, dark, boostStone}, ["Slugma"] = {fire, boostStone}, ["Magcargo"] = {fire, boostStone}, ["Swinub"] = {ice, earth, boostStone}, ["Piloswine"] = {ice, earth, boostStone}, ["Corsola"] = {water, boostStone}, ["Remoraid"] = {water, boostStone}, ["Octillery"] = {water, boostStone}, ["Delibird"] = {ice, heart, boostStone}, ["Mantine"] = {water, boostStone}, ["Skarmory"] = {heart, boostStone}, ["Houndour"] = {fire, dark, boostStone}, ["Houndoom"] = {fire, dark, boostStone}, ["Kingdra"] = {water, crystal, boostStone}, ["Phanpy"] = {earth, boostStone}, ["Donphan"] = {earth, boostStone}, ["porygon2"] = {enigma, boostStone}, ["Stantler"] = {heart, boostStone}, ["Smeargle"] = {heart, boostStone}, ["Tyrogue"] = {punch, boostStone}, ["Hitmontop"] = {punch, boostStone}, ["Smoochum"] = {ice, enigma, boostStone}, ["Elekid"] = {thunder, boostStone}, ["Magby"] = {fire, boostStone}, ["Miltank"] = {heart, boostStone}, ["Blissey"] = {heart, boostStone}, ["Raikou"] = {thunder, boostStone}, ["Entei"] = {fire, boostStone}, ["Suicune"] = {water, boostStone}, ["Larvitar"] = {earth, dark, boostStone}, ["Pupitar"] = {earth, dark, boostStone}, ["Tyranitar"] = {earth, dark, boostStone}, ["Lugia"] = {enigma, water, boostStone}, ["Ho-oh"] = {enigma, fire, boostStone}, ["Celebi"] = {leaf, enigma, boostStone}} function doRestoreBoostMachine(cid, b_pos, p_pos, s_pos, msg, msg2) doSendAnimatedText(b_pos, "DONE.", 215) if isCreature(cid) then doCreatureSetNoMove(cid, false) doPlayerSendTextMessage(cid, 27, msg) doPlayerSendTextMessage(cid, 27, msg2) end local ball_s = getTileItemById(p_pos, ballslot_run) doTransformItem(ball_s.uid, ballslot) local stne_s = getTileItemById(s_pos, stoneslot_run) doTransformItem(stne_s.uid, stoneslot) local butn_s = getTileItemById(b_pos, button_run) doTransformItem(butn_s.uid, button) end local stones_required = { -- custo base de stones para boostar [heart] = 1, [leaf] = 1, [water] = 1, [venom] = 1, [thunder] = 1, [rock] = 1, [punch] = 1, [fire] = 1, [coccon] = 1, [crystal] = 1, [dark] = 1, [earth] = 1, [enigma] = 1, [ice] = 1, [boostStone] = 1, --alterado v1.9 } local stone_increase = { -- a cada quantos boosts irá aumentar o custo de stones [heart] = 2, [leaf] = 2, [water] = 2, [venom] = 2, [thunder] = 2, [rock] = 2, [punch] = 2, [fire] = 2, [coccon] = 2, [crystal] = 2, [dark] = 2, [earth] = 2, [enigma] = 2, [ice] = 2, [boostStone] = 10000, } local pbs = { [11826] = 11737, --normal acessa --alterado v1.9 \/ [11828] = 11739, --normal morto [11832] = 11740, --great acessa [11834] = 11742, --great morto [11835] = 11743, --super acessa [11837] = 11745, --super morto [11829] = 11746, --ultra acessa [11831] = 11748, --ultra morto [10975] = 12621, --saffari acessa [10977] = 12623, --saffari morto } function onUse(cid, item, topos, item2, frompos) if isRunning(item.itemid) then doPlayerSendCancel(cid, "Wait until boosting finishes.") return true end if item.itemid == button then local pbpos = topos pbpos.x = pbpos.x + 1 local ball_slot = getTileItemById(pbpos, ballslot) local myball = getContainerItem(ball_slot.uid, 0) if myball.uid <= 0 or getItemWeight(myball.uid) == 0 then doPlayerSendCancel(cid, "You need to put a pokeball in the ball slot.") return true end local pokemon = getItemAttribute(myball.uid, "poke") local boost = getItemAttribute(myball.uid, "boost") or 0 if boost >= 50 then doPlayerSendCancel(cid, "Your pokemon is already at maximum boost.") return true end local stnpos = pbpos stnpos.x = stnpos.x - 2 local stone_slot = getTileItemById(stnpos, stoneslot) local stone = getContainerItem(stone_slot.uid, 0) if stone.uid <= 0 then doPlayerSendCancel(cid, "You need to put a stone in the stone slot.") return true end if not isStone(stone.itemid) then doPlayerSendCancel(cid, "Please, put only stones in the stone slot.") return true end if not isInArray(boost_stones[pokemon], stone.itemid) then local cancelstr = "Sorry, you are not using the correct stone." if #boost_stones[pokemon] > 1 then local stonesused = "" cancelstr = cancelstr.." This pokemon needs " for su = 1, #boost_stones[pokemon] do local n = doCorrectString(getItemNameById(boost_stones[pokemon][su])) if su == #boost_stones[pokemon] then stonesused = stonesused.." or "..getArticle(n).." "..n.."" elseif su == 1 then stonesused = stonesused..""..getArticle(n).." "..n.."" else stonesused = stonesused..", "..n.."" end end cancelstr = cancelstr..""..stonesused.." to be boosted." else cancelstr = cancelstr.." This pokemon needs a "..doCorrectString(getItemNameById(boost_stones[pokemon][1])).." to be boosted." end doPlayerSendCancel(cid, cancelstr) return true end local removeStones = 0 local extraStones = math.floor(boost / stone_increase[stone.itemid]) local required_stones = stones_required[stone.itemid] + extraStones local boosts = 0 for a = 0, getContainerSize(stone_slot.uid) - 1 do local it = getContainerItem(stone_slot.uid, a) if it.uid > 0 then if not isStone(it.itemid) then doPlayerSendCancel(cid, "Please, put only stones in the stone slot.") return true end if it.itemid ~= stone.itemid then doPlayerSendCancel(cid, "Please, put only one type of stone in the stone slot.") return true end if required_stones > 0 then required_stones = required_stones - (it.type ~= 0 and it.type or 1) --alterado v1.7 if required_stones <= 0 then if it.itemid == boost_id then boosts = boosts + 10 else boosts = boosts + 1 end removeStones = removeStones + stones_required[stone.itemid] + extraStones if boost + boosts <= 49 then extraStones = math.floor((boost + boosts) / stone_increase[stone.itemid]) required_stones = stones_required[stone.itemid] + extraStones end break end end end end if required_stones > 0 and boosts == 0 then doPlayerSendCancel(cid, "You need more stones to boost this pokemon.") return true end for b = 1, removeStones do local i = getContainerItem(stone_slot.uid, 0) if i.type ~= 0 then doChangeTypeItem(i.uid, i.type - 1) --alterado v1.7 else doRemoveItem(i.uid, 1) end end doSetItemAttribute(myball.uid, "boost", boost + boosts) doSetItemAttribute(myball.uid, "boosting", 1) --alterado v1.9.1 if (boost + boosts) >= 10 then if pbs[myball.itemid] then --alterado v1.9 doTransformItem(myball.uid, pbs[myball.itemid]) end end doItemEraseAttribute(myball.uid, "boosting") --alterado v1.9.1 local msg = "Your "..getPokeballName(myball.uid).." has been boosted!" local msg2 = "• Boost: "..(boost + boosts).." (+"..boosts..")" local downpos = getThingPos(cid) downpos.y = downpos.y + 1 local mypos = getThingPos(cid) doTeleportThing(cid, downpos, false) doTeleportThing(cid, mypos, false) doTransformItem(ball_slot.uid, ballslot_run) doTransformItem(stone_slot.uid, stoneslot_run) doTransformItem(item.uid, button_run) doCreatureSetNoMove(cid, true) doCreatureAddCondition(cid, boostcondition) addEvent(doRestoreBoostMachine, 3000, cid, getThingPos(item.uid), getThingPos(ball_slot.uid), getThingPos(stone_slot.uid), msg, msg2) return true end end Editado Novembro 12, 2013 por zipter98 Link para o comentário https://xtibia.com/forum/topic/223813-encerrado-duvida-boost/#findComment-1581643 Compartilhar em outros sites More sharing options...
GuhPk 111 Postado Novembro 13, 2013 Share Postado Novembro 13, 2013 Verdade... Foi erro meu! xD Se precisar ainda, avisa que passo logo uma stone boost que não precisa do boost machine.... kkkk' Link para o comentário https://xtibia.com/forum/topic/223813-encerrado-duvida-boost/#findComment-1581698 Compartilhar em outros sites More sharing options...
BrunooMaciell 85 Postado Novembro 13, 2013 Autor Share Postado Novembro 13, 2013 Vou testa ja ja dou noticias ^^ Zipeter !! Valeu ^^ deu certo !! Curti++ Link para o comentário https://xtibia.com/forum/topic/223813-encerrado-duvida-boost/#findComment-1581713 Compartilhar em outros sites More sharing options...
Alexclusive 687 Postado Novembro 13, 2013 Share Postado Novembro 13, 2013 Tópico movido para a seção de dúvidas e pedidos resolvidos. Link para o comentário https://xtibia.com/forum/topic/223813-encerrado-duvida-boost/#findComment-1581716 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/223813-encerrado-duvida-boost/#findComment-1735658 Compartilhar em outros sites More sharing options...
Posts Recomendados