FlamesAdmin 262 Postado Dezembro 5, 2013 Share Postado Dezembro 5, 2013 Boa tarde galera, alguem por gentileza podia editar esse script de boostar o pokemon para mim. Quando o poke ficar +10 a ball ficar brilhando igual a de shinys. 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) then return true endreturn falseendboost_stones = { --alterado v1.9 \/["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, boostStone},["Nidoran Male"] = {venom, boostStone},["Nidorino"] = {venom, boostStone},["Nidoking"] = {venom, 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, boostStone},["Gloom"] = {leaf, boostStone},["Vileplume"] = {leaf, boostStone},["Paras"] = {coccon, boostStone},["Parasect"] = {coccon, boostStone},["Venonat"] = {venom, boostStone},["Venomoth"] = {venom, boostStone},["Diglett"] = {earth, boostStone},["Dugtrio"] = {earth, boostStone},["Meowth"] = {heart, boostStone},["Persian"] = {heart, boostStone},["Psyduck"] = {water, boostStone},["Golduck"] = {water, boostStone},["Mankey"] = {punch, boostStone},["Primeape"] = {punch, boostStone},["Growlithe"] = {fire, boostStone},["Arcanine"] = {fire, boostStone},["Poliwag"] = {water, boostStone},["Poliwhirl"] = {water, boostStone},["Poliwrath"] = {water, boostStone},["Abra"] = {enigma, boostStone},["Kadabra"] = {enigma, boostStone},["Alakazam"] = {enigma, boostStone},["Machop"] = {punch, boostStone},["Machoke"] = {punch, boostStone},["Machamp"] = {punch, boostStone},["Bellsprout"] = {leaf, boostStone},["Weepinbell"] = {leaf, boostStone},["Victreebel"] = {leaf, boostStone},["Tentacool"] = {water, boostStone},["Tentacruel"] = {water, boostStone},["Geodude"] = {rock, boostStone},["Graveler"] = {rock, boostStone},["Golem"] = {rock, boostStone},["Ponyta"] = {fire, boostStone},["Rapidash"] = {fire, boostStone},["Slowpoke"] = {water, boostStone},["Slowbro"] = {water, boostStone},["Magnemite"] = {thunder, boostStone},["Magneton"] = {thunder, boostStone},["Farfetch'd"] = {heart, boostStone},["Doduo"] = {heart, boostStone},["Dodrio"] = {heart, boostStone},["Seel"] = {ice, boostStone},["Dewgong"] = {ice, boostStone},["Grimer"] = {venom, boostStone},["Muk"] = {venom, boostStone},["Shellder"] = {ice, boostStone},["Cloyster"] = {ice, boostStone},["Gastly"] = {dark, boostStone},["Haunter"] = {dark, boostStone},["Gengar"] = {dark, boostStone},["Onix"] = {rock, boostStone},["Drowzee"] = {enigma, boostStone},["Hypno"] = {enigma, boostStone},["Krabby"] = {water, boostStone},["Kingler"] = {water, boostStone},["Voltorb"] = {thunder, boostStone},["Electrode"] = {thunder, boostStone},["Exeggcute"] = {leaf, boostStone},["Exeggutor"] = {leaf, boostStone},["Cubone"] = {earth, boostStone},["Marowak"] = {earth, boostStone},["Hitmonlee"] = {punch, boostStone},["Hitmonchan"] = {punch, boostStone},["Lickitung"] = {heart, boostStone},["Koffing"] = {venom, boostStone},["Weezing"] = {venom, boostStone},["Rhyhorn"] = {rock, boostStone},["Rhydon"] = {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"] = {ice, boostStone},["Electabuzz"] = {thunder, boostStone},["Magmar"] = {fire, boostStone},["Pinsir"] = {coccon, boostStone},["Tauros"] = {heart, boostStone},["Magikarp"] = {water, boostStone},["Gyarados"] = {water, boostStone},["Lapras"] = {water, boostStone},["Ditto"] = {heart, boostStone},["Eevee"] = {heart, boostStone},["Vaporeon"] = {water, boostStone},["Jolteon"] = {thunder, boostStone},["Flareon"] = {fire, boostStone},["Espeon"] = {enigma, boostStone},["Umbreon"] = {dark, boostStone},["Porygon"] = {enigma, boostStone},["Omanyte"] = {rock, boostStone},["Omastar"] = {rock, boostStone},["Kabuto"] = {rock, boostStone},["Kabutops"] = {rock, 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 Venusaur"] = {leaf, boostStone},["Shiny Charizard"] = {fire, boostStone},["Shiny Blastoise"] = {water, boostStone},["Shiny Butterfree"] = {coccon, boostStone},["Shiny Beedrill"] = {coccon, boostStone},["Shiny Pidgeot"] = {heart, boostStone},["Shiny Rattata"] = {heart, boostStone},["Shiny Raticate"] = {heart, boostStone},["Shiny Fearow"] = {heart, boostStone},["Shiny Raichu"] = {thunder, boostStone},["Shiny Nidoking"] = {venom, boostStone},["Shiny Ninetales"] = {fire, boostStone},["Shiny Zubat"] = {venom, boostStone},["Shiny Golbat"] = {venom, boostStone},["Shiny Oddish"] = {leaf, boostStone},["Shiny Vileplume"] = {leaf, boostStone},["Shiny Paras"] = {coccon, boostStone},["Shiny Parasect"] = {coccon, boostStone},["Shiny Venonat"] = {coccon, boostStone},["Shiny Venomoth"] = {coccon, boostStone},["Shiny Growlithe"] = {fire, boostStone},["Shiny Arcanine"] = {fire, boostStone},["Shiny Abra"] = {enigma, boostStone},["Shiny Alakazam"] = {enigma, boostStone},["Shiny Tentacool"] = {water, boostStone},["Shiny Tentacruel"] = {water, boostStone},["Shiny Golem"] = {rock, boostStone},["Shiny Magneton"] = {thunder, boostStone},["Shiny Farfetch'd"] = {heart, boostStone},["Shiny Dodrio"] = {heart, boostStone},["Shiny Grimer"] = {venom, boostStone},["Shiny Muk"] = {venom, boostStone},["Shiny Gengar"] = {dark, boostStone},["Shiny Onix"] = {rock, earth, boostStone},["Shiny Hypno"] = {enigma, boostStone},["Shiny Krabby"] = {water, boostStone},["Shiny Kingler"] = {water, boostStone},["Shiny Voltorb"] = {thunder, boostStone},["Shiny Electrode"] = {thunder, boostStone},["Shiny Cubone"] = {earth, boostStone},["Shiny Marowak"] = {earth, boostStone},["Shiny Hitmonlee"] = {punch, boostStone},["Shiny Hitmonchan"] = {punch, boostStone},["Shiny Hitmontop"] = {punch, boostStone}, --alterado v1.4["Shiny Rhydon"] = {earth, rock, boostStone},["Shiny Tangela"] = {leaf, boostStone},["Shiny Horsea"] = {water, boostStone},["Shiny Seadra"] = {water, boostStone},["Shiny Mr. Mime"] = {enigma, boostStone},["Shiny Scyther"] = {coccon, boostStone},["Shiny Jynx"] = {ice, boostStone},["Shiny Electabuzz"] = {thunder, boostStone},["Shiny Pinsir"] = {coccon, boostStone},["Shiny Magikarp"] = {water, boostStone},["Shiny Gyarados"] = {water, boostStone},["Shiny Vaporeon"] = {water, boostStone},["Shiny Jolteon"] = {thunder, boostStone},["Shiny Flareon"] = {fire, boostStone},["Big Snorlax"] = {heart, boostStone},["Shiny Dratini"] = {crystal, boostStone},["Shiny Dragonair"] = {crystal, boostStone},["Shiny Dragonite"] = {crystal, boostStone},["Shiny Ninetales"] = {fire, 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, boostStone},["Noctowl"] = {heart, boostStone},["Ledyba"] = {coccon, boostStone},["Ledian"] = {coccon, boostStone},["Spinarak"] = {coccon, boostStone},["Ariados"] = {coccon, boostStone},["Crobat"] = {venom, boostStone},["Chinchou"] = {water, boostStone},["Lanturn"] = {water, boostStone},["Pichu"] = {thunder, boostStone},["Cleffa"] = {heart, boostStone},["Iglybuff"] = {venom, boostStone},["Natu"] = {enigma, boostStone},["Xatu"] = {enigma, boostStone},["Mareep"] = {thunder, boostStone},["Scizor"] = {coccon, boostStone},["Flaaffy"] = {thunder, boostStone},["Ampharos"] = {thunder, boostStone},["Bellossom"] = {leaf, boostStone},["Marill"] = {water, boostStone},["Azulmarill"] = {water, boostStone},["Sudowoodo"] = {rock, boostStone},["Politoed"] = {water, boostStone},["Hoppip"] = {leaf, boostStone},["Skiploom"] = {leaf, boostStone},["Jumpluff"] = {leaf, boostStone},["Aipom"] = {heart, boostStone},["Sunkern"] = {leaf, boostStone},["Sunflora"] = {leaf, boostStone},["Yanma"] = {coccon, boostStone},["Wooper"] = {water, boostStone},["Quagsire"] = {water, boostStone},["Murkrow"] = {dark, boostStone},["Slowking"] = {enigma, boostStone},["Misdreavus"] = {dark, boostStone},["Wobbuffet"] = {enigma, boostStone},["Girafarig"] = {enigma, boostStone},["Pineco"] = {coccon, boostStone},["Forretress"] = {coccon, boostStone},["Gligar"] = {heart, boostStone},["Steelix"] = {rock, boostStone},["Snubbull"] = {heart, boostStone},["Granbull"] = {heart, boostStone},["Qwilfish"] = {water, boostStone},["Shuckle"] = {earth, boostStone},["Heracross"] = {coccon, boostStone},["Teddiursa"] = {heart, boostStone},["Ursaring"] = {heart, boostStone},["Slugma"] = {fire, boostStone},["Magcargo"] = {fire, boostStone},["Swinub"] = {earth, boostStone},["Piloswine"] = {earth, boostStone},["Corsola"] = {water, boostStone},["Remoraid"] = {water, boostStone},["Octillery"] = {water, boostStone},["Delibird"] = {ice, boostStone},["Mantine"] = {water, boostStone},["Skarmory"] = {heart, boostStone},["Houndour"] = {fire, boostStone},["Houndoom"] = {fire, boostStone},["Kingdra"] = {water, boostStone},["Phanpy"] = {earth, boostStone},["Donphan"] = {earth, boostStone},["Porygon2"] = {enigma, boostStone},["Stantler"] = {heart, boostStone},["Smeargle"] = {heart, boostStone},["Tyrogue"] = {punch, boostStone},["Hitmontop"] = {punch, boostStone},["Smoochum"] = {ice, boostStone},["Elekid"] = {thunder, boostStone},["Magby"] = {fire, boostStone},["Miltank"] = {heart, boostStone},["Blissey"] = {heart, boostStone},["Raikou"] = {thunder, boostStone},["Entei"] = {fire, boostStone},["Suicune"] = {water, boostStone},["Larvitar"] = {dark, boostStone},["Pupitar"] = {dark, boostStone},["Tyranitar"] = {dark, boostStone},["Lugia"] = {enigma, boostStone},["Ho-oh"] = {fire, boostStone},["Celebi"] = {leaf, 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)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] = 3,[leaf] = 3,[water] = 3,[venom] = 4,[thunder] = 4,[rock] = 3,[punch] = 4,[fire] = 3,[coccon] = 2,[crystal] = 15,[dark] = 4,[earth] = 4,[enigma] = 4,[ice] = 4,[boostStone] = 10000, --alterado v1.9}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, "Espere o Boost acabar.")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, "Você precisa colocar um Pokémon no Slot de Boost.")return trueendlocal pokemon = getItemAttribute(myball.uid, "poke")local boost = getItemAttribute(myball.uid, "boost") or 0if boost >= 50 thendoPlayerSendCancel(cid, "Seu Pokémon esta no Boost Máximo.")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, "Você precisa colocar uma Stone no Slot de Boost.")return trueendif not isStone(stone.itemid) thendoPlayerSendCancel(cid, "Por favor, coloque a Stone no Slot.")return trueendif not isInArray(boost_stones[pokemon], stone.itemid) thenlocal cancelstr = "Desculpe, você não está usando a Stone correta."if #boost_stones[pokemon] > 1 thenlocal stonesused = ""cancelstr = cancelstr.." Seu Pokémon precisa "for su = 1, #boost_stones[pokemon] dolocal n = doCorrectString(getItemNameById(boost_stones[pokemon][su]))if su == #boost_stones[pokemon] thenstonesused = stonesused.." ou "..getArticle(n).." "..n..""elseif su == 1 thenstonesused = stonesused..""..getArticle(n).." "..n..""elsestonesused = stonesused..", "..n..""endendcancelstr = cancelstr..""..stonesused.." para ser boostado."elsecancelstr = cancelstr.." Esse Pokémon precisa "..doCorrectString(getItemNameById(boost_stones[pokemon][1])).." para ser Boostado."enddoPlayerSendCancel(cid, cancelstr)return trueendlocal removeStones = 0local extraStones = math.floor(boost / stone_increase[stone.itemid])local required_stones = stones_required[stone.itemid] + extraStoneslocal boosts = 0local availableStones = 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, "Por favor, coloque a Stone no Slot.")return trueendif it.itemid ~= stone.itemid thendoPlayerSendCancel(cid, "Please, put only one type of stone in the stone slot.")return trueendavailableStones = availableStones + it.typeendendfor a = 1, availableStones doif required_stones > 0 thenrequired_stones = required_stones - 1if 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] + extraStonesendendendendif required_stones > 0 and boosts == 0 thendoPlayerSendCancel(cid, "Você precisa de mais Stones para boostar-lo.")return trueendfor b = 1, removeStones dolocal i = getContainerItem(stone_slot.uid, 0)doChangeTypeItem(i.uid, i.type - 1)enddoSetItemAttribute(myball.uid, "boost", boost + boosts)--local msg = "Seu "..getPokeballName(myball.uid).." foi boostado!"local msg = "Sua Poke Bola agora está "..(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 Pokeballs brilhantes: Pokeball Normal Brilhante: ID 11737 Great Ball Brilhante: ID 11740 Super Ball Brilhante: ID 11743 Ultra Ball Brilhante: ID 11746 Rep+ Link para o comentário https://xtibia.com/forum/topic/225068-encerrado-pedido-script-de-boostar-pokemon/ Compartilhar em outros sites More sharing options...
zipter98 1102 Postado Dezembro 5, 2013 Share Postado Dezembro 5, 2013 Tenta assim: 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, 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, boostStone}, ["Nidoran Male"] = {venom, boostStone}, ["Nidorino"] = {venom, boostStone}, ["Nidoking"] = {venom, 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, boostStone}, ["Gloom"] = {leaf, boostStone}, ["Vileplume"] = {leaf, boostStone}, ["Paras"] = {coccon, boostStone}, ["Parasect"] = {coccon, boostStone}, ["Venonat"] = {venom, boostStone}, ["Venomoth"] = {venom, boostStone}, ["Diglett"] = {earth, boostStone}, ["Dugtrio"] = {earth, boostStone}, ["Meowth"] = {heart, boostStone}, ["Persian"] = {heart, boostStone}, ["Psyduck"] = {water, boostStone}, ["Golduck"] = {water, boostStone}, ["Mankey"] = {punch, boostStone}, ["Primeape"] = {punch, boostStone}, ["Growlithe"] = {fire, boostStone}, ["Arcanine"] = {fire, boostStone}, ["Poliwag"] = {water, boostStone}, ["Poliwhirl"] = {water, boostStone}, ["Poliwrath"] = {water, boostStone}, ["Abra"] = {enigma, boostStone}, ["Kadabra"] = {enigma, boostStone}, ["Alakazam"] = {enigma, boostStone}, ["Machop"] = {punch, boostStone}, ["Machoke"] = {punch, boostStone}, ["Machamp"] = {punch, boostStone}, ["Bellsprout"] = {leaf, boostStone}, ["Weepinbell"] = {leaf, boostStone}, ["Victreebel"] = {leaf, boostStone}, ["Tentacool"] = {water, boostStone}, ["Tentacruel"] = {water, boostStone}, ["Geodude"] = {rock, boostStone}, ["Graveler"] = {rock, boostStone}, ["Golem"] = {rock, boostStone}, ["Ponyta"] = {fire, boostStone}, ["Rapidash"] = {fire, boostStone}, ["Slowpoke"] = {water, boostStone}, ["Slowbro"] = {water, boostStone}, ["Magnemite"] = {thunder, boostStone}, ["Magneton"] = {thunder, boostStone}, ["Farfetch'd"] = {heart, boostStone}, ["Doduo"] = {heart, boostStone}, ["Dodrio"] = {heart, boostStone}, ["Seel"] = {ice, boostStone}, ["Dewgong"] = {ice, boostStone}, ["Grimer"] = {venom, boostStone}, ["Muk"] = {venom, boostStone}, ["Shellder"] = {ice, boostStone}, ["Cloyster"] = {ice, boostStone}, ["Gastly"] = {dark, boostStone}, ["Haunter"] = {dark, boostStone}, ["Gengar"] = {dark, boostStone}, ["Onix"] = {rock, boostStone}, ["Drowzee"] = {enigma, boostStone}, ["Hypno"] = {enigma, boostStone}, ["Krabby"] = {water, boostStone}, ["Kingler"] = {water, boostStone}, ["Voltorb"] = {thunder, boostStone}, ["Electrode"] = {thunder, boostStone}, ["Exeggcute"] = {leaf, boostStone}, ["Exeggutor"] = {leaf, boostStone}, ["Cubone"] = {earth, boostStone}, ["Marowak"] = {earth, boostStone}, ["Hitmonlee"] = {punch, boostStone}, ["Hitmonchan"] = {punch, boostStone}, ["Lickitung"] = {heart, boostStone}, ["Koffing"] = {venom, boostStone}, ["Weezing"] = {venom, boostStone}, ["Rhyhorn"] = {rock, boostStone}, ["Rhydon"] = {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"] = {ice, boostStone}, ["Electabuzz"] = {thunder, boostStone}, ["Magmar"] = {fire, boostStone}, ["Pinsir"] = {coccon, boostStone}, ["Tauros"] = {heart, boostStone}, ["Magikarp"] = {water, boostStone}, ["Gyarados"] = {water, boostStone}, ["Lapras"] = {water, boostStone}, ["Ditto"] = {heart, boostStone}, ["Eevee"] = {heart, boostStone}, ["Vaporeon"] = {water, boostStone}, ["Jolteon"] = {thunder, boostStone}, ["Flareon"] = {fire, boostStone}, ["Espeon"] = {enigma, boostStone}, ["Umbreon"] = {dark, boostStone}, ["Porygon"] = {enigma, boostStone}, ["Omanyte"] = {rock, boostStone}, ["Omastar"] = {rock, boostStone}, ["Kabuto"] = {rock, boostStone}, ["Kabutops"] = {rock, 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 Venusaur"] = {leaf, boostStone}, ["Shiny Charizard"] = {fire, boostStone}, ["Shiny Blastoise"] = {water, boostStone}, ["Shiny Butterfree"] = {coccon, boostStone}, ["Shiny Beedrill"] = {coccon, boostStone}, ["Shiny Pidgeot"] = {heart, boostStone}, ["Shiny Rattata"] = {heart, boostStone}, ["Shiny Raticate"] = {heart, boostStone}, ["Shiny Fearow"] = {heart, boostStone}, ["Shiny Raichu"] = {thunder, boostStone}, ["Shiny Nidoking"] = {venom, boostStone}, ["Shiny Ninetales"] = {fire, boostStone}, ["Shiny Zubat"] = {venom, boostStone}, ["Shiny Golbat"] = {venom, boostStone}, ["Shiny Oddish"] = {leaf, boostStone}, ["Shiny Vileplume"] = {leaf, boostStone}, ["Shiny Paras"] = {coccon, boostStone}, ["Shiny Parasect"] = {coccon, boostStone}, ["Shiny Venonat"] = {coccon, boostStone}, ["Shiny Venomoth"] = {coccon, boostStone}, ["Shiny Growlithe"] = {fire, boostStone}, ["Shiny Arcanine"] = {fire, boostStone}, ["Shiny Abra"] = {enigma, boostStone}, ["Shiny Alakazam"] = {enigma, boostStone}, ["Shiny Tentacool"] = {water, boostStone}, ["Shiny Tentacruel"] = {water, boostStone}, ["Shiny Golem"] = {rock, boostStone}, ["Shiny Magneton"] = {thunder, boostStone}, ["Shiny Farfetch'd"] = {heart, boostStone}, ["Shiny Dodrio"] = {heart, boostStone}, ["Shiny Grimer"] = {venom, boostStone}, ["Shiny Muk"] = {venom, boostStone}, ["Shiny Gengar"] = {dark, boostStone}, ["Shiny Onix"] = {rock, earth, boostStone}, ["Shiny Hypno"] = {enigma, boostStone}, ["Shiny Krabby"] = {water, boostStone}, ["Shiny Kingler"] = {water, boostStone}, ["Shiny Voltorb"] = {thunder, boostStone}, ["Shiny Electrode"] = {thunder, boostStone}, ["Shiny Cubone"] = {earth, boostStone}, ["Shiny Marowak"] = {earth, boostStone}, ["Shiny Hitmonlee"] = {punch, boostStone}, ["Shiny Hitmonchan"] = {punch, boostStone}, ["Shiny Hitmontop"] = {punch, boostStone}, --alterado v1.4 ["Shiny Rhydon"] = {earth, rock, boostStone}, ["Shiny Tangela"] = {leaf, boostStone}, ["Shiny Horsea"] = {water, boostStone}, ["Shiny Seadra"] = {water, boostStone}, ["Shiny Mr. Mime"] = {enigma, boostStone}, ["Shiny Scyther"] = {coccon, boostStone}, ["Shiny Jynx"] = {ice, boostStone}, ["Shiny Electabuzz"] = {thunder, boostStone}, ["Shiny Pinsir"] = {coccon, boostStone}, ["Shiny Magikarp"] = {water, boostStone}, ["Shiny Gyarados"] = {water, boostStone}, ["Shiny Vaporeon"] = {water, boostStone}, ["Shiny Jolteon"] = {thunder, boostStone}, ["Shiny Flareon"] = {fire, boostStone}, ["Big Snorlax"] = {heart, boostStone}, ["Shiny Dratini"] = {crystal, boostStone}, ["Shiny Dragonair"] = {crystal, boostStone}, ["Shiny Dragonite"] = {crystal, boostStone}, ["Shiny Ninetales"] = {fire, 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, boostStone}, ["Noctowl"] = {heart, boostStone}, ["Ledyba"] = {coccon, boostStone}, ["Ledian"] = {coccon, boostStone}, ["Spinarak"] = {coccon, boostStone}, ["Ariados"] = {coccon, boostStone}, ["Crobat"] = {venom, boostStone}, ["Chinchou"] = {water, boostStone}, ["Lanturn"] = {water, boostStone}, ["Pichu"] = {thunder, boostStone}, ["Cleffa"] = {heart, boostStone}, ["Iglybuff"] = {venom, boostStone}, ["Natu"] = {enigma, boostStone}, ["Xatu"] = {enigma, boostStone}, ["Mareep"] = {thunder, boostStone}, ["Scizor"] = {coccon, boostStone}, ["Flaaffy"] = {thunder, boostStone}, ["Ampharos"] = {thunder, boostStone}, ["Bellossom"] = {leaf, boostStone}, ["Marill"] = {water, boostStone}, ["Azulmarill"] = {water, boostStone}, ["Sudowoodo"] = {rock, boostStone}, ["Politoed"] = {water, boostStone}, ["Hoppip"] = {leaf, boostStone}, ["Skiploom"] = {leaf, boostStone}, ["Jumpluff"] = {leaf, boostStone}, ["Aipom"] = {heart, boostStone}, ["Sunkern"] = {leaf, boostStone}, ["Sunflora"] = {leaf, boostStone}, ["Yanma"] = {coccon, boostStone}, ["Wooper"] = {water, boostStone}, ["Quagsire"] = {water, boostStone}, ["Murkrow"] = {dark, boostStone}, ["Slowking"] = {enigma, boostStone}, ["Misdreavus"] = {dark, boostStone}, ["Wobbuffet"] = {enigma, boostStone}, ["Girafarig"] = {enigma, boostStone}, ["Pineco"] = {coccon, boostStone}, ["Forretress"] = {coccon, boostStone}, ["Gligar"] = {heart, boostStone}, ["Steelix"] = {rock, boostStone}, ["Snubbull"] = {heart, boostStone}, ["Granbull"] = {heart, boostStone}, ["Qwilfish"] = {water, boostStone}, ["Shuckle"] = {earth, boostStone}, ["Heracross"] = {coccon, boostStone}, ["Teddiursa"] = {heart, boostStone}, ["Ursaring"] = {heart, boostStone}, ["Slugma"] = {fire, boostStone}, ["Magcargo"] = {fire, boostStone}, ["Swinub"] = {earth, boostStone}, ["Piloswine"] = {earth, boostStone}, ["Corsola"] = {water, boostStone}, ["Remoraid"] = {water, boostStone}, ["Octillery"] = {water, boostStone}, ["Delibird"] = {ice, boostStone}, ["Mantine"] = {water, boostStone}, ["Skarmory"] = {heart, boostStone}, ["Houndour"] = {fire, boostStone}, ["Houndoom"] = {fire, boostStone}, ["Kingdra"] = {water, boostStone}, ["Phanpy"] = {earth, boostStone}, ["Donphan"] = {earth, boostStone}, ["Porygon2"] = {enigma, boostStone}, ["Stantler"] = {heart, boostStone}, ["Smeargle"] = {heart, boostStone}, ["Tyrogue"] = {punch, boostStone}, ["Hitmontop"] = {punch, boostStone}, ["Smoochum"] = {ice, boostStone}, ["Elekid"] = {thunder, boostStone}, ["Magby"] = {fire, boostStone}, ["Miltank"] = {heart, boostStone}, ["Blissey"] = {heart, boostStone}, ["Raikou"] = {thunder, boostStone}, ["Entei"] = {fire, boostStone}, ["Suicune"] = {water, boostStone}, ["Larvitar"] = {dark, boostStone}, ["Pupitar"] = {dark, boostStone}, ["Tyranitar"] = {dark, boostStone}, ["Lugia"] = {enigma, boostStone}, ["Ho-oh"] = {fire, boostStone}, ["Celebi"] = {leaf, 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] = 3, [leaf] = 3, [water] = 3, [venom] = 4, [thunder] = 4, [rock] = 3, [punch] = 4, [fire] = 3, [coccon] = 2, [crystal] = 15, [dark] = 4, [earth] = 4, [enigma] = 4, [ice] = 4, [boostStone] = 10000, --alterado v1.9 } 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, "Espere o Boost 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 um Pokémon no Slot de Boost.") return true end local pokemon = getItemAttribute(myball.uid, "poke") local boost = getItemAttribute(myball.uid, "boost") or 0 if boost >= 50 then doPlayerSendCancel(cid, "Seu Pokémon esta no Boost Máximo.") 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 Boost.") return true end if not isStone(stone.itemid) then doPlayerSendCancel(cid, "Por favor, coloque a Stone no Slot.") return true end if not isInArray(boost_stones[pokemon], stone.itemid) then local cancelstr = "Desculpe, você não está usando a Stone correta." if #boost_stones[pokemon] > 1 then local stonesused = "" cancelstr = cancelstr.." Seu Pokémon precisa " for su = 1, #boost_stones[pokemon] do local n = doCorrectString(getItemNameById(boost_stones[pokemon][su])) if su == #boost_stones[pokemon] then stonesused = stonesused.." ou "..getArticle(n).." "..n.."" elseif su == 1 then stonesused = stonesused..""..getArticle(n).." "..n.."" else stonesused = stonesused..", "..n.."" end end cancelstr = cancelstr..""..stonesused.." para ser boostado." else cancelstr = cancelstr.." Esse Pokémon precisa "..doCorrectString(getItemNameById(boost_stones[pokemon][1])).." para ser Boostado." 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 local availableStones = 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 a Stone no 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 availableStones = availableStones + it.type end end for a = 1, availableStones do if required_stones > 0 then required_stones = required_stones - 1 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 end end end if required_stones > 0 and boosts == 0 then doPlayerSendCancel(cid, "Você precisa de mais Stones para boostar-lo.") return true end for b = 1, removeStones do local i = getContainerItem(stone_slot.uid, 0) doChangeTypeItem(i.uid, i.type - 1) end doSetItemAttribute(myball.uid, "boost", boost + boosts) if (boost + boosts) >= 10 then if pbs[myball.itemid] then --alterado v1.9 doTransformItem(myball.uid, pbs[myball.itemid]) end end --local msg = "Seu "..getPokeballName(myball.uid).." foi boostado!" local msg = "Sua Poke Bola agora está "..(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/225068-encerrado-pedido-script-de-boostar-pokemon/#findComment-1589465 Compartilhar em outros sites More sharing options...
FlamesAdmin 262 Postado Dezembro 5, 2013 Autor Share Postado Dezembro 5, 2013 Funcionou perfeitamente mano, REP+ Link para o comentário https://xtibia.com/forum/topic/225068-encerrado-pedido-script-de-boostar-pokemon/#findComment-1589491 Compartilhar em outros sites More sharing options...
Omega 377 Postado Dezembro 6, 2013 Share Postado Dezembro 6, 2013 Tópico movido para a seção de dúvidas e pedidos resolvidos. Link para o comentário https://xtibia.com/forum/topic/225068-encerrado-pedido-script-de-boostar-pokemon/#findComment-1589789 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/225068-encerrado-pedido-script-de-boostar-pokemon/#findComment-1735861 Compartilhar em outros sites More sharing options...
Posts Recomendados