Ir para conteúdo
  • Cadastre-se

Posts Recomendados

Olá galera meu irmão resolvei abrir um server e to dando uma moral mais to a 2 anos sem mecher com servers ou seja to por fora kk
To com uma duvida aqui queria uma ajuda !!

No server que ele esta usando tem sistema de boost Machine (Padrão) 
Mais mesmo com o poke na maquina e as Stones corretas ele continua dizendo para por uma pokebola 

As pokebolas do server depois que captura o pokemon muda a imagem e fica como no anexo se alguem poder ajudar Agredeço desde já e rep+

 

Spoiler

boost.lua

 

 

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 = {                              --alterado v1.9 \/
["Bulbasaur"] = {leaf},
["Tropius"] = {leaf},
["Ivysaur"] = {leaf},
["Venusaur"] = {leaf},
["Charmander"] = {fire},
["Charmeleon"] = {fire},
["Charizard"] = {fire},
["Mega CharizardX"] = {fire},
["Mega CharizardY"] = {fire},
["Squirtle"] = {water},
["Wartortle"] = {water},
["Blastoise"] = {water},
["Mega Blastoise"] = {water},
["Caterpie"] = {cocconr},
["Metapod"] = {cocconr},
["Butterfree"] = {cocconr},
["Weedle"] = {cocconr},
["Kakuna"] = {cocconr},
["Beedrill"] = {cocconr},
["Pidgey"] = {heart},
["Pidgeotto"] = {heart},
["Pidgeot"] = {heart},
["Rattata"] = {heart},
["Raticate"] = {heart},
["Spearow"] = {heart},
["Fearow"] = {heart},
["Ekans"] = {venom},
["Arbok"] = {venom},
["Pikachu"] = {thunder},
["Raichu"] = {thunder},
["Mega Raichu"] = {thunder},
["Sandshrew"] = {earth},
["Sandslash"] = {earth},
["Nidoran Female"] = {venom},
["Nidorina"] = {venom},
["Nidoqueen"] = {venom, earth},
["Nidoran Male"] = {venom},
["Nidorino"] = {venom},
["Nidoking"] = {venom, earth},
["Clefairy"] = {heart},
["Clefable"] = {heart},
["Vulpix"] = {fire},
["Ninetales"] = {fire},
["Jigglypuff"] = {heart},
["Wigglytuff"] = {heart},
["Zubat"] = {venom},
["Golbat"] = {venom},
["Oddish"] = {leaf, venom},
["Gloom"] = {leaf, venom},
["Vileplume"] = {leaf, venom},
["Paras"] = {coccon, leaf},
["Parasect"] = {coccon, leaf},
["Venonat"] = {coccon, venom},
["Venomoth"] = {coccon, venom},
["Diglett"] = {earth},
["Dugtrio"] = {earth},
["Meowth"] = {heart},
["Persian"] = {heart},
["Psyduck"] = {water},
["Golduck"] = {water, enigma},
["Mankey"] = {punch},
["Primeape"] = {punch},
["Growlithe"] = {fire},
["Arcanine"] = {fire},
["Poliwag"] = {water},
["Poliwhirl"] = {water},
["Poliwrath"] = {water, punch},
["Abra"] = {enigma},
["Kadabra"] = {enigma},
["Alakazam"] = {enigma},
["Mega Alakazam"] = {enigma},
["Machop"] = {punch},
["Machoke"] = {punch},
["Machamp"] = {punch},
["Bellsprout"] = {leaf, venom},
["Weepinbell"] = {leaf, venom},
["Victreebel"] = {leaf, venom},
["Tentacool"] = {water, venom},
["Tentacruel"] = {water, venom},
["Geodude"] = {earth, rock},
["Graveler"] = {earth, rock},
["Golem"] = {earth, rock},
["Ponyta"] = {fire},
["Rapidash"] = {fire},
["Slowpoke"] = {water, enigma},
["Slowbro"] = {water, enigma},
["Mega Slowbro"] = {water, enigma},
["Magnemite"] = {thunder},
["Magneton"] = {thunder},
["Magnezone"] = {thunder},
["Milotic"] = {water},
["Farfetch'd"] = {heart},
["Doduo"] = {heart},
["Dodrio"] = {heart},
["Seel"] = {water, ice},
["Dewgong"] = {water, ice},
["Grimer"] = {venom},
["Muk"] = {venom},
["Shellder"] = {water, ice},
["Cloyster"] = {water, ice},
["Gastly"] = {dark},
["Haunter"] = {dark},
["Gengar"] = {dark},
["Mega Gengar"] = {dark},
["Onix"] = {rock, earth},
["Drowzee"] = {enigma},
["Hypno"] = {enigma},
["Krabby"] = {water},
["Kingler"] = {water},
["Voltorb"] = {thunder},
["Electrode"] = {thunder},
["Exeggcute"] = {enigma, leaf},
["Exeggutor"] = {enigma, leaf},
["Cubone"] = {earth},
["Marowak"] = {earth},
["Hitmonlee"] = {punch},
["Hitmonchan"] = {punch},
["Lickitung"] = {heart},
["Koffing"] = {venom},
["Weezing"] = {venom},
["Rhyhorn"] = {earth, rock},
["Rhydon"] = {earth, rock},
["Chansey"] = {heart},
["Tangela"] = {leaf},
["Kangaskhan"] = {heart},
["Horsea"] = {water},
["Seadra"] = {water},
["Goldeen"] = {water},
["Seaking"] = {water},
["Staryu"] = {water},
["Starmie"] = {water},
["Shiny Mantine"] = {water},
["Mr. Mime"] = {enigma},
["Scyther"] = {cocconr},
["Jynx"] = {enigma, ice,},
["Electabuzz"] = {thunder},
["Electivire"] = {thunder},
["Shiny Electivire"] = {thunder},
["Magmar"] = {fire},
["Magmortar"] = {fire},
["Shiny Magmortar"] = {fire},
["Pinsir"] = {cocconr},
["Mega Pinsir"] = {cocconr},
["Tauros"] = {heart},
["Magikarp"] = {water},
["Gyarados"] = {water, crystal},
["Mega Gyarados"] = {water, crystal},
["Lapras"] = {water, ice},
["Ditto"] = {heart},
["Eevee"] = {heart},
["Vaporeon"] = {water},
["Jolteon"] = {thunder},
["Flareon"] = {fire},
["Espeon"] = {enigma},
["Umbreon"] = {dark},
["Absol"] = {dark},
["Mega Absol"] = {dark},
["Wailord"] = {water},
["Porygon"] = {heart, enigma},
["Omanyte"] = {rock, water},
["Omastar"] = {rock, water},
["Kabuto"] = {rock, water},
["Kabutops"] = {rock, water},
["Aerodactyl"] = {rock},
["Mega Aerodactyl"] = {rock},
["Snorlax"] = {heart},
["Articuno"] = {ice},
["Zapdos"] = {thunder},
["Moltres"] = {fire},
["Dratini"] = {crystal},
["Dragonair"] = {crystal},
["Dragonite"] = {crystal},
["Salamence"] = {crystal},
["Shiny Salamence"] = {crystal},
["Mewtwo"] = {enigma},
["Mew"] = {enigma},

["Shiny Typhlosion"] = {fire},
--
["Shiny Bulbasaur"] = {leaf},
["Shiny Ivysaur"] = {leaf},
["Shiny Venusaur"] = {leaf},
["Mega Venusaur"] = {leaf},
["Shiny Charmander"] = {fire},
["Shiny Charmeleon"] = {fire},
["Shiny Charizard"] = {fire},
["Shiny Squirtle"] = {water},
["Shiny Wartortle"] = {water},
["Shiny Blastoise"] = {water},
["Shiny Caterpie"] = {cocconr},
["Shiny Metapod"] = {cocconr},
["Shiny Butterfree"] = {cocconr},
["Shiny Weedle"] = {cocconr},
["Shiny Kakuna"] = {cocconr},
["Shiny Beedrill"] = {cocconr},
["Shiny Pidgey"] = {heart},
["Shiny Pidgeotto"] = {heart},
["Shiny Pidgeot"] = {heart},
["Shiny Rattata"] = {heart},
["Shiny Raticate"] = {heart},
["Shiny Spearow"] = {heart},
["Shiny Fearow"] = {heart},
["Shiny Ekans"] = {venom},
["Shiny Arbok"] = {venom},
["Shiny Pikachu"] = {thunder},
["Shiny Raichu"] = {thunder},
["Shiny Sandshrew"] = {earth},
["Shiny Sandslash"] = {earth},
["Shiny Nidoran Female"] = {venom},
["Shiny Nidorina"] = {venom},
["Shiny Nidoqueen"] = {venom, earth},
["Shiny Nidoran Male"] = {venom},
["Shiny Nidorino"] = {venom},
["Shiny Nidoking"] = {venom, earth},
["Shiny Clefairy"] = {heart},
["Shiny Clefable"] = {heart},
["Shiny Vulpix"] = {fire},
["Shiny Ninetales"] = {fire},
["Shiny Jigglypuff"] = {heart},
["Shiny Wigglytuff"] = {heart},
["Shiny Zubat"] = {venom},
["Shiny Golbat"] = {venom},
["Shiny Oddish"] = {leaf, venom},
["Shiny Gloom"] = {leaf, venom},
["Shiny Vileplume"] = {leaf, venom},
["Shiny Paras"] = {coccon, leaf},
["Shiny Parasect"] = {coccon, leaf},
["Shiny Venonat"] = {coccon, venom},
["Shiny Venomoth"] = {coccon, venom},
["Shiny Diglett"] = {earth},
["Shiny Dugtrio"] = {earth},
["Shiny Meowth"] = {heart},
["Shiny Persian"] = {heart},
["Shiny Psyduck"] = {water},
["Shiny Golduck"] = {water, enigma},
["Shiny Mankey"] = {punch},
["Shiny Primeape"] = {punch},
["Shiny Growlithe"] = {fire},
["Shiny Arcanine"] = {fire},
["Shiny Poliwag"] = {water},
["Shiny Poliwhirl"] = {water},
["Shiny Poliwrath"] = {water, punch},
["Shiny Abra"] = {enigma},
["Shiny Kadabra"] = {enigma},
["Shiny Alakazam"] = {enigma},
["Shiny Machop"] = {punch},
["Shiny Machoke"] = {punch},
["Shiny Machamp"] = {punch},
["Shiny Bellsprout"] = {leaf, venom},
["Shiny Weepinbell"] = {leaf, venom},
["Shiny Victreebel"] = {leaf, venom},
["Shiny Tentacool"] = {water, venom},
["Shiny Tentacruel"] = {water, venom},
["Shiny Geodude"] = {earth, rock},
["Shiny Graveler"] = {earth, rock},
["Shiny Golem"] = {rock},
["Shiny Ponyta"] = {fire},
["Shiny Rapidash"] = {fire},
["Shiny Slowpoke"] = {water, enigma},
["Shiny Slowbro"] = {water, enigma},
["Shiny Magnemite"] = {thunder},
["Shiny Magneton"] = {thunder},
["Shiny Farfetch'd"] = {heart},
["Shiny Doduo"] = {heart},
["Shiny Dodrio"] = {heart},
["Shiny Seel"] = {water, ice},
["Shiny Dewgong"] = {water, ice},
["Shiny Grimer"] = {venom},
["Shiny Muk"] = {venom},
["Shiny Shellder"] = {water, ice},
["Shiny Cloyster"] = {water, ice},
["Shiny Gastly"] = {dark},
["Shiny Haunter"] = {dark},
["Shiny Gengar"] = {dark},
["Shiny Onix"] = {rock, earth},
["Shiny Drowzee"] = {enigma},
["Shiny Hypno"] = {enigma},
["Shiny Krabby"] = {water},
["Shiny Kingler"] = {water},
["Shiny Voltorb"] = {thunder},
["Shiny Electrode"] = {thunder},
["Shiny Exeggcute"] = {enigma, leaf},
["Shiny Exeggutor"] = {enigma, leaf},
["Shiny Cubone"] = {earth},
["Shiny Marowak"] = {earth},
["Shiny Hitmonlee"] = {punch},
["Shiny Hitmonchan"] = {punch},
["Shiny Hitmontop"] = {punch}, --alterado v1.4
["Shiny Lickitung"] = {heart},
["Shiny Koffing"] = {venom},
["Shiny Weezing"] = {venom},
["Shiny Rhyhorn"] = {earth, rock},
["Shiny Rhydon"] = {earth, rock},
["Shiny Chansey"] = {heart},
["Shiny Tangela"] = {leaf},
["Shiny Kangaskhan"] = {heart},
["Mega Kangaskhan"] = {heart},
["Shiny Horsea"] = {water},
["Shiny Seadra"] = {water},
["Shiny Goldeen"] = {water},
["Shiny Seaking"] = {water},
["Shiny Staryu"] = {water},
["Shiny Starmie"] = {water},
["Shiny Mr. Mime"] = {enigma},
["Shiny Scyther"] = {cocconr},
["Shiny Jynx"] = {enigma, ice,},
["Shiny Electabuzz"] = {thunder},
["Shiny Magmar"] = {fire},
["Shiny Pinsir"] = {cocconr},
["Shiny Tauros"] = {heart},
["Shiny Magikarp"] = {water},
["Shiny Gyarados"] = {water, crystal},
["Shiny Lapras"] = {water, ice},
["Shiny Ditto"] = {heart},
["Shiny Eevee"] = {heart},
["Shiny Vaporeon"] = {water},
["Shiny Jolteon"] = {thunder},
["Shiny Flareon"] = {fire},
["Shiny Porygon"] = {heart, enigma},
["Shiny Omanyte"] = {rock, water},
["Shiny Omastar"] = {rock, water},
["Shiny Kabuto"] = {rock, water},
["Shiny Kabutops"] = {rock, water},
["Shiny Aerodactyl"] = {rock},
["Shiny Snorlax"] = {heart},
["Shiny Articuno"] = {ice},
["Shiny Zapdos"] = {thunder},
["Shiny Moltres"] = {fire},
["Shiny Dratini"] = {crystal},
["Shiny Dragonair"] = {crystal},
["Shiny Dragonite"] = {crystal},
["Shiny Mewtwo"] = {enigma},
["Shiny Mew"] = {enigma},
--
["Chikorita"] = {leaf},
["Bayleef"] = {leaf},
["Meganium"] = {leaf},
["Cyndaquil"] = {fire},
["Quilava"] = {fire},
["Typhlosion"] = {fire},
["Totodile"] = {water},
["Croconaw"] = {water},
["Feraligatr"] = {water},
["Sentret"] = {heart},
["Furret"] = {heart},
["Hoothoot"] = {heart, enigma},
["Noctowl"] = {heart, enigma},
["Ledyba"] = {cocconr},
["Ledian"] = {cocconr},
["Spinarak"] = {coccon, venom},
["Ariados"] = {coccon, venom},
["Crobat"] = {venom},
["Chinchou"] = {water, thunder},
["Lanturn"] = {water, thunder},
["Pichu"] = {thunder},
["Cleffa"] = {heart},
["Iglybuff"] = {venom},
["Natu"] = {enigma},
["Xatu"] = {enigma},
["Mareep"] = {thunder},
["Flaaffy"] = {thunder},
["Ampharos"] = {thunder},
["Mega Ampharos"] = {thunder},
["Bellossom"] = {leaf},
["Marill"] = {water},
["Azulmarill"] = {water},
["Sudowoodo"] = {rock, earth},
["Politoed"] = {water, earth},
["Hoppip"] = {leaf},
["Skiploom"] = {leaf},
["Jumpluff"] = {leaf},
["Aipom"] = {heart},
["Sunkern"] = {leaf},
["Sunflora"] = {leaf},
["Yanma"] = {venom, coccon},
["Wooper"] = {water},
["Quagsire"] = {water, earth},
["Murkrow"] = {dark},
["Slowking"] = {enigma},
["Misdreavus"] = {dark},
["Wobbuffet"] = {enigma},
["Mega Wobbuffet"] = {enigma},
["Girafarig"] = {enigma},
["Pineco"] = {cocconr},
["Forretress"] = {cocconr},
["Gligar"] = {dark, heart},
["Steelix"] = {metal},
["Mega Steelix"] = {metal},
["Snubbull"] = {heart},
["Granbull"] = {heart},
["Qwilfish"] = {water},
["Shuckle"] = {earth},
["Heracross"] = {cocconr},
["Teddiursa"] = {heart},
["Ursaring"] = {heart},
["Slugma"] = {fire},
["Magcargo"] = {fire},
["Swinub"] = {ice, earth},
["Piloswine"] = {ice, earth},
["Corsola"] = {water},
["Remoraid"] = {water},
["Octillery"] = {water},
["Delibird"] = {ice, heart},
["Mantine"] = {water},
["Skarmory"] = {metal},
["Houndour"] = {fire, dark},
["Houndoom"] = {fire, dark},
["Kingdra"] = {water, crystal},
["Phanpy"] = {earth},
["Donphan"] = {earth},
["porygon2"] = {enigma},
["Stantler"] = {heart},
["Smeargle"] = {heart},
["Tyrogue"] = {punch},
["Hitmontop"] = {punch},
["Smoochum"] = {ice, enigma},
["Elekid"] = {thunder},
["Magby"] = {fire},
["Miltank"] = {heart},
["Blissey"] = {heart},
["Scizor"] = {metal},
["Mega Scizor"] = {metal},
["Beldum"] = {metal},
["Metang"] = {metal},
["Metagross"] = {metal},
["Mega Metagross"] = {metal},
["Raikou"] = {thunder},
["Entei"] = {fire},
["Suicune"] = {water},
["Larvitar"] = {earth, dark},
["Pupitar"] = {earth, dark},
["Tyranitar"] = {rock, dark},
["Mega Tyranitar"] = {rock, dark},
["Lugia"] = {enigma, water},
["Ho-oh"] = {enigma, fire},
["Celebi"] = {leaf, enigma},

["Shiny Chikorita"] = {leaf},
["Shiny Bayleef"] = {leaf},
["Shiny Meganium"] = {leaf},
["Shiny Cyndaquil"] = {fire},
["Shiny Quilava"] = {fire},
["Shiny Typhlosion"] = {fire},
["Shiny Totodile"] = {water},
["Shiny Croconaw"] = {water},
["Shiny Feraligatr"] = {water},
["Shiny Sentret"] = {heart},
["Shiny Furret"] = {heart},
["Shiny Hoothoot"] = {heart, enigma},
["Shiny Noctowl"] = {heart, enigma},
["Shiny Ledyba"] = {cocconr},
["Shiny Ledian"] = {cocconr},
["Shiny Spinarak"] = {coccon, venom},
["Shiny Ariados"] = {coccon, venom},
["Shiny Crobat"] = {venom},
["Shiny Chinchou"] = {water, thunder},
["Shiny Lanturn"] = {water, thunder},
["Shiny Pichu"] = {thunder},
["Shiny Cleffa"] = {heart},
["Shiny Iglybuff"] = {venom},
["Shiny Natu"] = {enigma},
["Shiny Xatu"] = {enigma},
["Shiny Mareep"] = {thunder},
["Shiny Flaaffy"] = {thunder},
["Shiny Ampharos"] = {thunder},
["Shiny Bellossom"] = {leaf},
["Shiny Marill"] = {water},
["Shiny Azulmarill"] = {water},
["Shiny Sudowoodo"] = {rock, earth},
["Shiny Politoed"] = {water, earth},
["Shiny Hoppip"] = {leaf},
["Shiny Skiploom"] = {leaf},
["Shiny Jumpluff"] = {leaf},
["Shiny Aipom"] = {heart},
["Shiny Sunkern"] = {leaf},
["Shiny Sunflora"] = {leaf},
["Shiny Yanma"] = {venom, coccon},
["Shiny Wooper"] = {water},
["Shiny Quagsire"] = {water, earth},
["Shiny Murkrow"] = {dark},
["Shiny Slowking"] = {enigma},
["Shiny Misdreavus"] = {dark},
["Shiny Wobbuffet"] = {enigma},
["Black Wobbuffet"] = {enigma},
["Shiny Bronzong"] = {enigma},
["Shiny Girafarig"] = {enigma},
["Shiny Umbreon"] = {dark},
["Shiny Espeon"] = {enigma},
["Shiny Pineco"] = {cocconr},
["Shiny Forretress"] = {cocconr},
["Shiny Gligar"] = {dark, heart},
["Shiny Steelix"] = {metal},
["Shiny Snubbull"] = {heart},
["Shiny Granbull"] = {heart},
["Shiny Qwilfish"] = {water},
["Shiny Shuckle"] = {earth},
["Shiny Heracross"] = {cocconr},
["Shiny Teddiursa"] = {heart},
["Shiny Ursaring"] = {heart},
["Shiny Slugma"] = {fire},
["Shiny Magcargo"] = {fire},
["Shiny Swinub"] = {ice, earth},
["Shiny Piloswine"] = {ice, earth},
["Shiny Corsola"] = {water},
["Shiny Remoraid"] = {water},
["Shiny Octillery"] = {water},
["Shiny Delibird"] = {ice, heart},
["Shiny Mantine"] = {water},
["Shiny Skarmory"] = {metal},
["Shiny Houndour"] = {fire, dark},
["Shiny Houndoom"] = {fire, dark},
["Shiny Kingdra"] = {water, crystal},
["Shiny Phanpy"] = {earth},
["Shiny Donphan"] = {earth},
["Shiny Porygon2"] = {enigma},
["Shiny Stantler"] = {heart},
["Shiny Smeargle"] = {heart},
["Shiny Tyrogue"] = {punch},
["Shiny Hitmontop"] = {punch},
["Shiny Smoochum"] = {ice, enigma},
["Shiny Elekid"] = {thunder},
["Shiny Magby"] = {fire},
["Shiny Miltank"] = {heart},
["Shiny Blissey"] = {heart},
["Shiny Scizor"] = {metal},
["Shiny Raikou"] = {thunder},
["Shiny Entei"] = {fire},
["Shiny Suicune"] = {water},
["Shiny Larvitar"] = {earth, dark},
["Shiny Pupitar"] = {earth, dark},
["Shiny Tyranitar"] = {rock, dark},
["Shiny Lugia"] = {enigma, water},
["Shiny Ho-oh"] = {enigma, fire},
["Shiny Celebi"] = {leaf, enigma},
["Tropius"] = {leaf},
["Shiny Tropius"] = {leaf},
["Flygon"] = {rock},
["Shiny Wobbuffet"] = {enigma},
["Shiny Flygon"] = {rock},
["Shiny Tangrowth"] = {leaf},
["Tangrowth"] = {leaf},
["Sceptile"] = {leaf},
["Shiny Sceptile"] = {leaf},
["Mega Sceptile"] = {leaf},
["Shiny Metagross"] = {enigma, metal},
["Black Dragonite"] = {ancient},
["Shiny Swampert"] = {water},
["Mega Swampert"] = {water},
["Mega Blaziken"] = {fire},
["Mega Houndoom"] = {fire},
["Shiny Blaziken"] = {fire},
["Duskinoir"] = {darkness},
["Absol"] = {darkness},
["Shiny Milotic"] = {water},
["Seedot"] = {leaf},
["Nuleaf"] = {leaf, darkness},
["Shiftry"] = {leaf, darkness},
["Abomasnow"] = {ice},
["Glalie"] = {ice},
["Mega Glalie"] = {ice},
["Lucario"] = {punch},
["Mega Lucario"] = {punch},
["Shiny Lucario"] = {punch},
["Toxicroak"] = {punch, venom},
["Rhyperior"] = {earth, rock},
["Ninjask"] = {cocconr},
["Shedinja"] = {darkness},
["Aggron"] = {rock, metal},
["Aron"] = {rock, metal},
["Lairon"] = {rock, metal},
["Regirock"] = {rock},
["Shelgon"] = {ancient},
["Bagon"] = {ancient},
["Mawile"] = {metal, heart},
["Altaria"] = {ancient},
["Sableye"] = {darkness},
["Slaking"] = {heart},
["Banette"] = {darkness},
["Regice"] = {ice},
["Taillow"] = {heart},
["Swellow"] = {heart},
["Gardevoir"] = {enigma},
["Shiny Gardevoir"] = {enigma},
["Lotad"] = {leaf, water},
["Lombre"] = {leaf, water},
["Ludicolo"] = {leaf, water},
["Shiny Ludicolo"] = {leaf, water},
["Armaldo"] = {rock, coccon},
["Shiny Swellow"] = {heart},
["Togekiss"] = {heart},
["Luxray"] = {thunder},
["Honchkrow"] = {darkness},
["Manectric"] = {thunder},
["Mega Manectric"] = {thunder},
["Froslass"] = {ice, darkness},
["Bronzong"] = {metal, enigma}}

function doRestoreBoostMachine(cid, b_pos, p_pos, s_pos, msg, msg2)
--doSendMagicEffect(p_pos, 247)
if isCreature(cid) then
doCreatureSetNoMove(cid, false)
doPlayerSendTextMessage(cid, 27, msg)
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,
[metal] = 1,
[ancient] = 1,
[boostStone] = 1,
}
local stone_increase = { -- a cada quantos boosts irá aumentar o custo de stones
[heart] = 4,
[leaf] = 4,
[water] = 4,
[venom] = 4,
[thunder] = 4,
[rock] = 4,
[punch] = 4,
[fire] = 4,
[coccon] = 4,
[crystal] = 4,
[dark] = 4,
[earth] = 4,
[enigma] = 4,
[ice] = 4,
[metal] = 30,
[ancient] = 30,
[boostStone] = 50,
}
function onUse(cid, item, topos, item2, frompos)

    if isRunning(item.itemid) then
        doPlayerSendCancel(cid, "Espere até acabar.")
    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, "Você precisa colocar uma pokeball no slot de bola.")
        return true
        end

        local pokemon = getItemAttribute(myball.uid, "poke")
        local boost = getItemAttribute(myball.uid, "boost") or 0

        if boost >= 50 then
            doPlayerSendCancel(cid, "Seu pokemon já está no máximo impulso.")
        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, "Você precisa colocar uma stone no slot de pedra.")
        return true
        end

        if not isStone(stone.itemid) then
            doPlayerSendCancel(cid, "Por favor, coloque apenas stones no slot de pedra.")
        return true
        end

        if not isInArray(boost_stones[pokemon], stone.itemid) then

            local cancelstr = "Desculpe, você não está usando a correta stone."

            if #boost_stones[pokemon] > 1 then
                local stonesused = ""
                cancelstr = cancelstr.." Esta precisa de um pokemon "
                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.." para ser boosted."
            else
                cancelstr = cancelstr.." Esta precisa de um pokemon "..doCorrectString(getItemNameById(boost_stones[pokemon][1])).." para ser 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, "Por favor, coloque apenas stones no slot de pedra.")
                  return true
               end
               if it.itemid ~= stone.itemid then
                  doPlayerSendCancel(cid, "Por favor, coloque apenas um tipo de stone no slot de pedra.")
                  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 + 5
                     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, "Você precisa de mais stones para impulsionar este 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

                            if (boost + boosts) >= 50 or boost >= 50 then
                            doItemSetAttribute(myball.uid, "aura", "cyan")   
           end

        doItemEraseAttribute(myball.uid, "boosting")  --alterado v1.9.1

        local msg = "Seu "..getPokeballName(myball.uid).." Foi 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

 

we.PNG

Link para o post
Compartilhar em outros sites

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

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

  Apenas 75 emojis são permitidos.

×   Seu link foi automaticamente incorporado.   Mostrar como link

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

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

  • Quem Está Navegando   0 membros estão online

    Nenhum usuário registrado visualizando esta página.


  • Conteúdo Similar

    • Por LeoTK
      Salve galera neste tópico irei postar algumas prints do mapa do servidor para quem queira acompanhar e quem sabe até utilizar de inspiração para mapear o seu NTO.
       
      #Att 11/08/2022

       
       
       
       
      Konoha (Em Desenvolvimento)
       
       
       
       
    • Por DiigooMix
      Como o título já diz, será que alguém possui sprite do hitto e se possível as transformações dele?
    • Por OmegaZero
      Olá gostaria que alguém me ajudasse com uma "scripting" não sei se é pela mesma, seria o seguinte uma determinada arma teria a chance de dar double hit e não sei oque fazer alguem poderia ajudar?

      OBS:não sei se é o local correto se não for mova, desculpe
    • Por Madarasenju
      Olá galera do Tibia King, queria por uns npc's no meu server que não tem função de trade nem nada do tipo, queria que eles só andassem como enfeite, Rep+ Pra quem me ajudar... grato desde já.
    • Por SilenceRoot
      A magia é assim o você usa a a magia e ela ficará ativado por 10 segundos, até que o inimigo lance a primeira magia ou todos de uma vez, quando ele lançar a primeira magia, ele não lhe acertará ou seja esquivando dela, e logo em seguida será teletransportado aleatoriamente ao redor do inimigo que usou.
×
×
  • Criar Novo...

Informação Importante

Confirmação de Termo