xmaster0 3 Postado Março 3, 2014 Share Postado Março 3, 2014 Oi, alguém sabe como criar uma boost stone -- que da força pro pokemon do player por 15 min ou mesmo uma boost stone -- que apenas dê força pro player, mas para sempre... Link para o comentário Compartilhar em outros sites More sharing options...
RodriigoRobson 110 Postado Março 3, 2014 Share Postado Março 3, 2014 Boost Stone so pode dar Boost se a Ball estiver na Slot caso Contrario da Erro no console eu nao consegui arruma-lo function onUse(cid, item, frompos, item2, topos)local ball = getPlayerSlotItem(cid, CONST_SLOT_FEET) ;local pokename = getItemSpecialDescription(ball.uid)local boost = pokename:match("\+(%d+)")local boosta = tonumber(boost) or 0local name = getItemAttribute(ball.uid, "poke"):match("This is (.+)'s pokeball.")local pedras = {[5468] = {names = "Typhlosion, Slugma, Quilava, Magcargo, Magcarbo, Magby, Houndour, Houndoom, Ho oh, Entei, Cyndaquil, Charmander, Charizard, Charmeleon, Arcanine, Growlithe, Flareon, Magmar, Ninetales, Rapidash, Vulpix, Ponyta, Moltres, Shiny Arcanine, Elder Charizard, Shiny Growlithe,Skarmory, Kingdra, Dragonite, Dragonair, Shiny Dragonair, Shiny Dratini, Dratini,Xatu, Unown C, Unown D, Unown E, Unown F, Unown G, Unown H, Unown I, Unown J, Unown K, Unown L, Unown M, Unown N, Unown O, Unown P, Unown Q, Unown R, Unown S, Unown T, Unown U, Unown V, Unown W, Unown X, Unown Y, Unown Z, Unown B, Unown A, Slowking, Natu, Girafarig, Espeon, Alakazam, Shiny Alakazam, Abra, Kadabra, Hypno, Drowzee, Mr Mime, Mew, Mewtwo,Qwilfish, Gligar, Crobat, Nidoking, Nidoqueen, Muk, Grimer, Weezing, Koffing, Ekans, Arbok, Golbat, Zubat, Nidoranfemale, Nidoranmale, Nidorina, Nidorino, Venonat, Venomoth, Shiny Venomoth, Shiny Zubat, Shiny Golbat, Shiny Muk, Shiny Grimer, Shiny Venonat,Raikou, Pichu, Mareep, Flaaffy, Elekid, Ampharos, Electabuzz, Raichu, Pikachu, Electrode, Voltorb, Jolteon, Magnetom, Magnemite, Zapdos, Shiny Electabuzz, Shiny Raichu, Shiny Voltorb, Shiny Electrode,Yanma, Spinarak, Scizor, Pineco, Ledian, Ledyba, Heracross, Forretress, Dunsparce, Ariados, Scyther, Parasect, Shiny Parasect, Paras, Caterpie, Weedle, Beedrill, Butterfree, Kakuna, Metapod, Pinsir, Shiny Scyther, Shiny Beedrill, Shiny Butterfree, Shiny Paras,Sunkern, Sunflora, Skiploom, Meganium, Jumpluff, Hoppip, Chikorita, Celebi, Bellossom, Bayleef, Venusaur, Bulbasaur, Ivysaur, Tangela, Exeggutor, Weepinbell, Bellsprout, Victreebel, Oddish, Vileplume, Gloom, Exeggcute, Shiny Venusaur, Shiny Oddish,Wooper, Totodile, Suicune, Remoraid, Quagsire, Politoed, Octilery, Marill, Mantine, Lugia, Lanturn, Feraligatr, Croconaw, Corsola, Chinchou, Azumarill, Magikarp, Blastoise, Squirtle, Wartortle, Vaporeon, Gyarados, Omastar, Omanyte, Lapras, Poliwrath, Poliwag, poliwhirl, Horsea, Seadra, Krabby, Kingler, Psyduck, Golduck, Tentacool, Tentacruel, Slowpoke, Slowbro, Goldeen, Seaking, Staryu, Starmie, Lapras, Shiny Blastoise, Shiny Seadra, Shiny Krabby, Shiny Kingler, Shiny Tentacool, Shiny Tentacruel, Shiny Horsea, Red Gyarados, Shiny Magikarp, Shiny Big Magikarp,Wobbuffet, Ursaring, Togetic, Togepi, Teddiursa, Stantler, Snubbull, Smeargle, Sentret, Porygon2, Noctowl, Miltank, Igglybuff, Hoothoot, Granbull, Furret, Delibird, Cleffa, Blissey, Pidgeotto, Fearow, Pidgey, Chansey, Clefable, Wiglyttuff, Kangaskhan, Porygon, Raticate, Rattata, Doduo, Dodrio, Spearow, Clefairy, Jigglypuff, Meowth, Persian, Farfetchd, Lickitung, Ditto, Eevee, Snorlax, Shiny Pidgeot, Shiny Rattata, Shiny Raticate, Elite Farfetchd, Aipom, Pidgeot,Murkrow, Misdreavus, Haunter, Gengar, Gastly, Dark Abra, Shiny Gengar,Tyrogue, Hitmontop, Hitmonchan, Hitmonlee, Machamp, Elite Hitmonlee, Elite Hitmonchan, Mankey, Primeape, Machop, Machoke,Phanpy, Dophan, Diglett, Sandslash, Dugtrio, Sandsherew, Marowak, Cubone, Shiny Marowak,Tyranitar, Sudowoodo, Steelix, Shuckle, Pupitar, Larvitar, Geodude, Golem, Rhydon, Graveler, Rhyhorn, Aerodactyl, Kabutops, Kabuto, Onix, Crystal Onix,Swinub, Sneasel, Smoochum, Piloswine, Seel, Jynx, Dewgong, Cloyster, Shellder, Articuno, Shiny Jynx"} ,}if isPlayer(item.uid) thenreturn doPlayerSendCancel(cid, "You can only use potions on pokemons!")endif (boosta >= 70) thendoPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "[boost] Seu Pokemon Esta Ja Chegou no Limite do Boost +[70]")return trueendif(pokename:find("\+(%d+)"))thendoItemSetAttribute(ball.uid, "description", tostring(pokename:gsub(boost, ((tonumber(boost)+1)))))doPlayerSendTextMessage(cid, 19, "Seu pokemon Esta + "..boost + 1)doSendMagicEffect(getCreaturePosition(cid),29)doSendAnimatedText(getThingPos(cid), "BOOSTED", math.random(255))elsedoItemSetAttribute(ball.uid, "description", "Contains a "..name.." +1.")endreturn trueend <action itemid="idstone" event="script" value="other/enchanting.lua"/> Link para o comentário Compartilhar em outros sites More sharing options...
xmaster0 3 Postado Março 3, 2014 Autor Share Postado Março 3, 2014 (editado) *-*, alguém consegue arrumar essa stone -- ela não some depois que boosta e que só dê pra usar ela se a ball estiver no slot. slot = feet Editado Março 3, 2014 por xmaster0 Link para o comentário Compartilhar em outros sites More sharing options...
Posts Recomendados