Postado Setembro 15, 2014 10 anos Modifique por esse aqui... boost.lua local ballslot = 1751 local stoneslot = 1750 local button = 8686 leaf = 5918 water = 5810 venom = 5929 thunder = 5928 rock = 5924 punch = 5791 fire = 5907 coccon = 7497 crystal = 5885 darknessness = 5892 earth = 5804 enigma = 5903 heart = 5908 ice = 5917 shiny = 2361 boost_stones = { ["bulbasaur"] = {leaf}, ["ivysaur"] = {leaf}, ["venusaur"] = {leaf}, ["charmander"] = {fire}, ["charmeleon"] = {fire}, ["charizard"] = {fire}, ["squirtle"] = {water}, ["wartortle"] = {water}, ["blastoise"] = {water}, ["caterpie"] = {coccon}, ["metapod"] = {coccon}, ["butterfree"] = {coccon}, ["weedle"] = {coccon}, ["kakuna"] = {coccon}, ["beedrill"] = {coccon}, ["pidgey"] = {heart}, ["pidgeotto"] = {heart}, ["pidgeot"] = {heart}, ["rattata"] = {heart}, ["raticate"] = {heart}, ["spearow"] = {heart}, ["fearow"] = {heart}, ["ekans"] = {venom}, ["arbok"] = {venom}, ["pikachu"] = {thunder}, ["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}, ["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}, ["magnemite"] = {thunder, metal}, ["magneton"] = {thunder, metal}, ["farfetch'd"] = {heart}, ["doduo"] = {heart}, ["dodrio"] = {heart}, ["seel"] = {water, ice}, ["dewgong"] = {water, ice}, ["grimer"] = {venom}, ["muk"] = {venom}, ["shellder"] = {water, ice}, ["cloyster"] = {water, ice}, ["gastly"] = {darkness}, ["haunter"] = {darkness}, ["gengar"] = {darkness}, ["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}, ["mr. mime"] = {enigma}, ["scyther"] = {coccon}, ["jynx"] = {enigma, ice}, ["electabuzz"] = {thunder}, ["magmar"] = {fire}, ["pinsir"] = {coccon}, ["tauros"] = {heart}, ["magikarp"] = {water}, ["gyarados"] = {water, crystal}, ["lapras"] = {water, ice}, ["ditto"] = {heart}, ["eevee"] = {heart}, ["vaporeon"] = {water}, ["jolteon"] = {thunder}, ["flareon"] = {fire}, ["porygon"] = {heart, enigma}, ["omanyte"] = {rock, water}, ["omastar"] = {rock, water}, ["kabuto"] = {rock, water}, ["kabutops"] = {rock, water}, ["aerodactyl"] = {rock}, ["snorlax"] = {heart}, ["articuno"] = {ice}, ["zapdos"] = {thunder}, ["moltres"] = {fire}, ["dratini"] = {crystal}, ["dragonair"] = {crystal}, ["dragonite"] = {crystal}, ["mewtwo"] = {enigma}, ["mew"] = {enigma} } local stones_required = { -- custo base de stones para boostar [5908] = 1, [leaf] = 1, [water] = 1, [venom] = 1, [thunder] = 1, [rock] = 1, [punch] = 1, [fire] = 1, [coccon] = 1, [crystal] = 1, [darkness] = 1, [earth] = 1, [enigma] = 1, [ice] = 1, } local stone_increase = { -- a cada quantos boosts irá aumentar o custo de stones [5908] = 3, [leaf] = 3, [water] = 3, [venom] = 4, [thunder] = 4, [rock] = 3, [punch] = 4, [fire] = 3, [coccon] = 2, [crystal] = 15, [darkness] = 4, [earth] = 4, [enigma] = 4, [ice] = 4, } function onUse(cid, item, topos, item2, frompos) 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 = getPokeRealName(myball.uid) local boost = getItemAttribute(myball.uid, "boost") or 0 if boost >= 199 then doPlayerSendCancel(cid, "Your pokemon is already at maximum boost.(199)") 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 function isStone(id) if id == leaf or id == water or id == venom or id == thunder or id == rock or id == punch or id == fire or id == coccon or id == crystal or id == darkness or id == earth or id == enigma or id == heart or id == ice or id == shiny then return true end return false 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 - 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 end if required_stones + boosts > stone.type then doPlayerSendCancel(cid, "You need "..required_stones + boosts.." stones to boost this "..pokemon..".") addEvent(doPlayerSendTextMessage, 500, cid, 27, "But if you have then stones, rearenge this on stone slot.") return true end doRemoveItem(stone.uid, required_stones + boosts) local removed = boost + boosts + 1 doSetItemAttribute(myball.uid, "boost", removed) local msg = "Your pokemon has been boosted!" local msg2 = "• Boost: "..(removed).." (+"..(removed - removed + 1)..")" doPlayerSendTextMessage(cid, 19, msg) doPlayerSendTextMessage(cid, 19, msg2) doCreatureSetNoMove(cid, true) addEvent(doCreatureSetNoMove, 1000, cid, false) return true end end
Postado Setembro 15, 2014 10 anos Autor Man Esse Ai Só Bosta Por stones Quero Um Script Que Boost Com Boost Stone
Postado Setembro 16, 2014 10 anos Olá caro amigo seu problema é nada mais nada menos doq attributos. Bom um pokemon tem um certo limite de attributo, a cada boost o pokemon ganha uma certa quantidade para cada attributos, Supondo que ganhamos 20 para kd attributo. Limite de attributos é 500 o limite você poderia boostar o pokemon ate o 40, no caso do pda creio que o boost sistema sejá limitado ate o 150 mais o recomendado é 50 pois dps de 100 o pokemon fica extramamente "Apelão".
Postado Setembro 16, 2014 10 anos Autor Ss Man Exato Esse é Meu Problema mas Vc Sabe Alterar Esse Limite ? Pra Ficar Ate Boost+500 ? A Sim To Usando Base De Pda Se Ajudar Do 2 Rep+ Editado Setembro 16, 2014 10 anos por zangoosedoido (veja o histórico de edições)
Postado Setembro 17, 2014 10 anos Bom man creio que não seja possivel é que e o attributo maximo, porem eu ainda nn descobri aonde estar sé eu descobrir eu aviso, mais creio que ate o 150 já e suficiente.
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.