Ir para conteúdo
  • Cadastre-se

Deslogar com pokemon dentro da ball.


Posts Recomendados

Bom tenho um server 8.54, quando o player ou ate o adm desloga com o pokemon fora da ball, o pokemon volta com o sangue cheio! cada vez q coloco ele na ball e solto de volta ele vai enchendo o sangue aos poucos. Queria uma script que nao deixasse o player deslogar com o pokemon fora da ball e que nao encha o sangue do pokemon ao solta-lo sucessivamente.

                                                                             1535210279_tumblr_o9b6yoxM1Z1tco8kto1_500(3).gif.f527686e19da738322c39555244decac.gif

                                                             Meus tópicos         

                                                         Se ajudei você deixe seu Rep! para fortalecer a amizade ^^

                                                                              Vamos ajudar o fórum a crescer mais.

                                                                          1641206641_gif-escudo-fla-3d(1).gif.a5d3c0c24824d5272a181aa91c5eda0c.gif

                                                                                                Mengão porra! . .

                                                                     tumblr_oxm8eriUeU1sqwgnro2_400.gif.22e347b2fc58fdfd88dbf84f4bdaa1bc.gif

                                                                                ----- NPC que vende informação -----

                                                                           -----Baú Que dá Outfit se tiver Level -----

                                                                     ----- [Npc] Que vende Stones (itens) por diamonds -----

 

 

                                                                       

                       

Link para o post
Compartilhar em outros sites

Tente usar algum dos scripts que esta neste tópico:

http://www.tibiaking.com/forum/topic/55666-logout-com-pok%C3%A9mon/

creio que vá funcionar.

Ando devagar, porque já tive pressa. E levo esse sorriso, porque já chorei demais...

________________________________________________________________________________

Minhas Sprites:

Mega Metagross

Mega Abomasnow

Pack de Shinys

[Posso atualizá-lo com novos shinys a qualquer momento]

Tutoriais:

[Completo] Criando e adicionando um novo Pokémon

[Actions] Criando quest no RME

Editores Lua/Xml/Sync Entre outros:

Editores Win/Mac/Linux

Link para o post
Compartilhar em outros sites

Eai ayron ;)

faz isso aqui, vá na pasta data\creaturescripts\scripts e abra o arquivo goback.lua

feito isso procure por essa função:

function onLogout(cid)

logo abaixo dessa função coloque essa:

    if #getCreatureSummons(cid) >= 1 then
    doPlayerSendCancel(cid, "Recolha seu pokemon para poder sair do jogo.")
    return false
    end

ficando assim:

function onLogout(cid)

    if #getCreatureSummons(cid) >= 1 then
    doPlayerSendCancel(cid, "Recolha seu pokemon para poder sair do jogo.")
    return false
    end
Editado por Wend Siilva (veja o histórico de edições)
Link para o post
Compartilhar em outros sites

toda ves que voce da goback varias vezes vai aumentando seu HP? Posta seu data/actions/Goback.lua para que eu Virifique o Script

Amigo sobre o deslog ja ta resolvido ^^ so falta esse do HP / :D  

aqui gobak >>    local pokes = {

["Bulbasaur"] = {level = 20, cons = 40, vida = 1500},

["Ivysaur"] = {level = 40, cons = 85, vida = 4050},

["Venusaur"] = {level = 85, cons = 190, vida = 8500},

["Charmander"] = {level = 20, cons = 30, vida = 1500},

["Charmeleon"] = {level = 40, cons = 70, vida = 4050},

["Charizard"] = {level = 85, cons = 140, vida = 8500},

["Squirtle"] = {level = 20, cons = 50, vida = 1500},

["Wartortle"] = {level = 40, cons = 95, vida = 4050},

["Blastoise"] = {level = 85, cons = 195, vida = 8500},

["Caterpie"] = {level = 1, cons = 10, vida = 600},

["Metapod"] = {level = 15, cons = 30, vida = 1000},

["Butterfree"] = {level = 30, cons = 65, vida = 3000},

["Weedle"] = {level = 1, cons = 10, vida = 600},

["Kakuna"] = {level = 15, cons = 35, vida = 1000},

["Beedrill"] = {level = 25, cons = 60, vida = 3000},

["Pidgey"] = {level = 1, cons = 20, vida = 700},

["Pidgeotto"] = {level = 20, cons = 50, vida = 1500},

["Pidgeot"] = {level = 80, cons = 100, vida = 6000},

["Rattata"] = {level = 1, cons = 10, vida = 400},

["Raticate"] = {level = 20, cons = 70, vida = 1700},

["Spearow"] = {level = 10, cons = 25, vida = 850},

["Fearow"] = {level = 50, cons = 80, vida = 4000},

["Ekans"] = {level = 15, cons = 30, vida = 1000},

["Arbok"] = {level = 35, cons = 90, vida = 4000},

["Pikachu"] = {level = 40, cons = 75, vida = 3500},

["Raichu"] = {level = 85, cons = 100, vida = 7000},

["Sandshrew"] = {level = 25, cons = 30, vida = 1000},

["Sandslash"] = {level = 65, cons = 95, vida = 4000},

["nidoranfe"] = {level = 10, cons = 25, vida = 1000},

["Nidorina"] = {level = 25, cons = 60, vida = 3000},

["Nidoqueen"] = {level = 65, cons = 90, vida = 6700},

["nidoranma"] = {level = 10, cons = 35, vida = 1000},

["Nidorino"] = {level = 25, cons = 65, vida = 3000},

["Nidoking"] = {level = 65, cons = 90, vida = 6700},

["Clefairy"] = {level = 40, cons = 60, vida = 4000},

["Clefable"] = {level = 65, cons = 100, vida = 6500},

["Vulpix"] = {level = 20, cons = 35, vida = 1000},

["Ninetales"] = {level = 65, cons = 70, vida = 6000},

["Jigglypuff"] = {level = 40, cons = 60, vida = 4000},

["Wigglytuff"] = {level = 65, cons = 100, vida = 6500},

["Zubat"] = {level = 5, cons = 15, vida = 800},

["Golbat"] = {level = 35, cons = 50, vida = 3000},

["Oddish"] = {level = 5, cons = 15, vida = 800},

["Gloom"] = {level = 25, cons = 50, vida = 2000},

["Vileplume"] = {level = 50, cons = 90, vida = 4500},

["Paras"] = {level = 5, cons = 15, vida = 750},

["Parasect"] = {level = 50, cons = 110, vida = 4000},

["Venonat"] = {level = 20, cons = 50, vida = 1300},

["Venomoth"] = {level = 50, cons = 80, vida = 4500},

["Diglett"] = {level = 10, cons = 45, vida = 1000},

["Dugtrio"] = {level = 35, cons = 80, vida = 3000},

["Meowth"] = {level = 15, cons = 50, vida = 1200},

["Persian"] = {level = 30, cons = 90, vida = 3000},

["Psyduck"] = {level = 20, cons = 50, vida = 1400},

["Golduck"] = {level = 55, cons = 150, vida = 13250},

["Mankey"] = {level = 15, cons = 60, vida = 1000},

["Primeape"] = {level = 50, cons = 100, vida = 4300},

["Growlithe"] = {level = 25, cons = 60, vida = 1400},

["Arcanine"] = {level = 80, cons = 130, vida = 8000},

["Poliwag"] = {level = 5, cons = 20, vida = 800},

["Poliwhirl"] = {level = 25, cons = 45, vida = 2500},

["Poliwrath"] = {level = 65, cons = 90, vida = 5500},

["Abra"] = {level = 15, cons = 25, vida = 1000},

["Kadabra"] = {level = 45, cons = 60, vida = 3300},

["Alakazam"] = {level = 80, cons = 95, vida = 7200},

["Machop"] = {level = 20, cons = 60, vida = 1000},

["Machoke"] = {level = 45, cons = 80, vida = 3500},

["Machamp"] = {level = 80, cons = 125, vida = 7000},

["Bellsprout"] = {level = 5, cons = 20, vida = 900},

["Weepinbell"] = {level = 25, cons = 50, vida = 1400},

["Victreebel"] = {level = 50, cons = 100, vida = 5000},

["Tentacool"] = {level = 15, cons = 50, vida = 1000},

["Tentacruel"] = {level = 80, cons = 120, vida = 6500},

["Geodude"] = {level = 15, cons = 60, vida = 1000},

["Graveler"] = {level = 40, cons = 85, vida = 3500},

["Golem"] = {level = 70, cons = 120, vida = 8000},

["Ponyta"] = {level = 20, cons = 40, vida = 1200},

["Rapidash"] = {level = 50, cons = 90, vida = 5000},

["Slowpoke"] = {level = 15, cons = 55, vida = 1000},

["Slowbro"] = {level = 45, cons = 70, vida = 4100},

["Magnemite"] = {level = 15, cons = 25, vida = 800},

["Magneton"] = {level = 75, cons = 100, vida = 4500},

["Farfetchd"] = {level = 45, cons = 80, vida = 4200},

["Doduo"] = {level = 15, cons = 40, vida = 1200},

["Dodrio"] = {level = 45, cons = 80, vida = 4000},

["Seel"] = {level = 20, cons = 50, vida = 1600},

["Dewgong"] = {level = 65, cons = 90, vida = 5000},

["Grimer"] = {level = 15, cons = 30, vida = 1000},

["Muk"] = {level = 80, cons = 130, vida = 7000},

["Shellder"] = {level = 10, cons = 30, vida = 1000},

["Cloyster"] = {level = 60, cons = 70, vida = 4500},

["Gastly"] = {level = 20, cons = 60, vida = 1300},

["Haunter"] = {level = 45, cons = 70, vida = 4000},

["Gengar"] = {level = 80, cons = 135, vida = 7200},

["Onix"] = {level = 50, cons = 90, vida = 5500},

["Drowzee"] = {level = 25, cons = 55, vida = 1400},

["Hypno"] = {level = 55, cons = 80, vida = 4200},

["Krabby"] = {level = 10, cons = 45, vida = 820},

["Kingler"] = {level = 40, cons = 60, vida = 4000},

["Voltorb"] = {level = 15, cons = 30, vida = 1100},

["Electrode"] = {level = 35, cons = 50, vida = 4000},

["Exeggcute"] = {level = 10, cons = 25, vida = 800},

["Exeggutor"] = {level = 80, cons = 130, vida = 7000},

["Cubone"] = {level = 20, cons = 35, vida = 1000},

["Marowak"] = {level = 55, cons = 70, vida = 5000},

["Hitmonlee"] = {level = 60, cons = 100, vida = 6500},

["Hitmonchan"] = {level = 60, cons = 100, vida = 6500},

["Lickitung"] = {level = 55, cons = 90, vida = 5500},

["Koffing"] = {level = 15, cons = 50, vida = 1000},

["Weezing"] = {level = 35, cons = 60, vida = 3500},

["Rhyhorn"] = {level = 30, cons = 60, vida = 1500},

["Rhydon"] = {level = 75, cons = 100, vida = 6500},

["Chansey"] = {level = 60, cons = 100, vida = 7000},

["Tangela"] = {level = 55, cons = 70, vida = 4000},

["Kangaskhan"] = {level = 80, cons = 130, vida = 8000},

["Horsea"] = {level = 10, cons = 20, vida = 800},

["Seadra"] = {level = 45, cons = 75, vida = 3600},

["Goldeen"] = {level = 10, cons = 30, vida = 830},

["Seaking"] = {level = 35, cons = 80, vida = 2800},

["Staryu"] = {level = 15, cons = 40, vida = 1300},

["Starmie"] = {level = 75, cons = 100, vida = 4500},

["MrMime"] = {level = 60, cons = 100, vida = 4300},

["Scyther"] = {level = 80, cons = 130, vida = 7000},

["Jynx"] = {level = 80, cons = 130, vida = 7000},

["Electabuzz"] = {level = 80, cons = 130, vida = 7000},

["Magmar"] = {level = 80, cons = 130, vida = 7000},

["Pinsir"] = {level = 45, cons = 70, vida = 4500},

["Tauros"] = {level = 45, cons = 70, vida = 4500},

["Magikarp"] = {level = 1, cons = 5, vida = 450},

["Mini Magikarp"] = {level = 1, cons = 5, vida = 250},

["Medio Magikarp"] = {level = 20, cons = 20, vida = 1500},

["Big Magikarp"] = {level = 40, cons = 50, vida = 3000},

["Mini Gyarados"] = {level = 40, cons = 70, vida = 4500},

["Gyarados"] = {level = 85, cons = 140, vida = 9000},

["Lapras"] = {level = 80, cons = 120, vida = 7000},

["Ditto"] = {level = 40, cons = 60, vida = 4000},

["Eevee"] = {level = 20, cons = 60, vida = 2000},

["Vaporeon"] = {level = 55, cons = 80, vida = 5300},

["Jolteon"] = {level = 55, cons = 80, vida = 5300},

["Flareon"] = {level = 55, cons = 80, vida = 5300},

["Porygon"] = {level = 45, cons = 80, vida = 4200},

["Omanyte"] = {level = 20, cons = 50, vida = 2500},

["Omastar"] = {level = 80, cons = 140, vida = 6000},

["Kabuto"] = {level = 20, cons = 70, vida = 2500},

["Kabutops"] = {level = 80, cons = 170, vida = 6000},

["Aerodactyl"] = {level = 100, cons = 240, vida = 15000},

["Snorlax"] = {level = 90, cons = 150, vida = 9000},

["Articuno"] = {level = 250, cons = 500, vida = 70000},

["Zapdos"] = {level = 250, cons = 500, vida = 70000},

["Moltres"] = {level = 250, cons = 500, vida = 70000},

["Dratini"] = {level = 20, cons = 40, vida = 2000},

["Dragonair"] = {level = 60, cons = 120, vida = 5500},

["Dragonite"] = {level = 100, cons = 200, vida = 10000},

["Mew"] = {level = 600, cons = 1000, vida = 400000},

["Mewtwo"] = {level = 700, cons = 1500, vida = 550000},

 

----------------------Shiny----------------------

["Crystal Onix"] = {level = 100, cons = 260, vida = 16500},

["Elder Charizard"] = {level = 100, cons = 280, vida = 25500},

["Shiny Magikarp"] = {level = 10, cons = 10, vida = 1350},

["Shiny Paras"] = {level = 20, cons = 30, vida = 2250},

["Shiny Oddish"] = {level = 20, cons = 30, vida = 2400},

["Shiny Tentacool"] = {level = 30, cons = 100, vida = 3000},

["Shiny Tentacruel"] = {level = 85, cons = 240, vida = 19500},

["Shiny Raticate"] = {level = 30, cons = 140, vida = 5100},

["Shiny Krabby"] = {level = 20, cons = 90, vida = 2460},

["Shiny Kingler"] = {level = 50, cons = 120, vida = 12000},

["Shiny Horsea"] = {level = 20, cons = 40, vida = 2400},

["Shiny Seadra"] = {level = 50, cons = 150, vida = 10800},

["Red Gyarados"] = {level = 100, cons = 380, vida = 27000},

["Shiny Parasect"] = {level = 60, cons = 220, vida = 12000},

["Shiny Scyther"] = {level = 100, cons = 260, vida = 21000},

["Shiny Electabuzz"] = {level = 100, cons = 260, vida = 21000},

["Shiny Jynx"] = {level = 100, cons = 260, vida = 21000},

["Shiny Electrode"] = {level = 65, cons = 100, vida = 12000},

["Shiny Voltorb"] = {level = 30, cons = 60, vida = 3300},

["Shiny Raichu"] = {level = 100, cons = 200, vida = 21000},

["Shiny Venomoth"] = {level = 75, cons = 160, vida = 13500},

["Shiny Venonat"] = {level = 30, cons = 100, vida = 3900},

["Shiny Beedrill"] = {level = 45, cons = 120, vida = 9000},

["Shiny Butterfree"] = {level = 45, cons = 130, vida = 9000},

["Shiny Venusaur"] = {level = 100, cons = 380, vida = 25500},

["Shiny Blastoise"] = {level = 100, cons = 390, vida = 25500},

["Elite Farfetchd"] = {level = 70, cons = 160, vida = 12600},

["Shiny Grimer"] = {level = 30, cons = 60, vida = 3000},

["Shiny Muk"] = {level = 100, cons = 260, vida = 21000},

["Shiny Growlithe"] = {level = 40, cons = 120, vida = 4200},

["Shiny Arcanine"] = {level = 100, cons = 260, vida = 24000},

["Shiny Dratini"] = {level = 40, cons = 80, vida = 6000},

["Dark Abra"] = {level = 100, cons = 190, vida = 21600},

["Elite Hitmonlee"] = {level = 100, cons = 200, vida = 19500},

["Elite Hitmonchan"] = {level = 100, cons = 200, vida = 19500},

["Shiny Rattata"] = {level = 10, cons = 20, vida = 1200},

["Shiny Zubat"] = {level = 30, cons = 30, vida = 2400},

["Shiny Golbat"] = {level = 60, cons = 100, vida = 9000},

["Shiny Gengar"] = {level = 100, cons = 270, vida = 21600},

["Shiny Big Magikarp"] = {level = 50, cons = 100, vida = 9000},

["Shiny Tangela"] = {level = 80, cons = 140, vida = 12000},

["Shiny Vaporeon"] = {level = 80, cons = 160, vida = 15900},

["Shiny Jolteon"] = {level = 80, cons = 160, vida = 15900},

["Shiny Flareon"] = {level = 80, cons = 160, vida = 15900},

["Shiny Dragonair"] = {level = 80, cons = 240, vida = 16500},

["Shiny Vileplume"] = {level = 80, cons = 180, vida = 13500},

["Shiny Golem"] = {level = 85, cons = 240, vida = 24000},

["Shiny Fearow"] = {level = 65, cons = 160, vida = 12000},

["Shiny Nidoking"] = {level = 85, cons = 180, vida = 20100},

["Shiny Hypno"] = {level = 70, cons = 160, vida = 12600},

["Shiny Cubone"] = {level = 40, cons = 70, vida = 3000},

["Shiny Marowak"] = {level = 65, cons = 140, vida = 15000},

["Shiny Alakazam"] = {level = 100, cons = 190, vida = 21600},

["Shiny Pidgeot"] = {level = 100, cons = 200, vida = 18000},

["Shiny Pinsir"] = {level = 70, cons = 140, vida = 13500},

["Shiny MrMime"] = {level = 85, cons = 200, vida = 12900},

["Shiny Ninetales"] = {level = 80, cons = 140, vida = 18000},

["Shiny Magneton"] = {level = 90, cons = 200, vida = 13500},

["Shiny Rhydon"] = {level = 100, cons = 200, vida = 19500},

["Shiny Dodrio"] = {level = 65, cons = 160, vida = 12000},

["Shiny Magmar"] = {level = 100, cons = 260, vida = 21000},

["Shiny Tauros"] = {level = 65, cons = 140, vida = 13500},

["Shiny Machamp"] = {level = 100, cons = 250, vida = 21000},

["Big Snorlax"] = {level = 150, cons = 300, vida = 27000},

 

----------------------------Johto----------------------------

["Aipom"] = {level = 40, cons = 50, vida = 4000},

["Ampharos"] = {level = 80, cons = 140, vida = 8500},

["Ariados"] = {level = 35, cons = 50, vida = 4000},

["Azumarill"] = {level = 65, cons = 70, vida = 6000},

["Bayleef"] = {level = 40, cons = 60, vida = 4350},

["Bellossom"] = {level = 50, cons = 70, vida = 5000},

["Blissey"] = {level = 100, cons = 200, vida = 10000},

["Celebi"] = {level = 600, cons = 800, vida = 550000},

["Chikorita"] = {level = 20, cons = 60, vida = 1500},

["Chinchou"] = {level = 15, cons = 40, vida = 1500},

["Cleffa"] = {level = 20, cons = 60, vida = 2000},

["Corsola"] = {level = 50, cons = 80, vida = 4500},

["Crobat"] = {level = 80, cons = 120, vida = 7500},

["Croconaw"] = {level = 40, cons = 60, vida = 4350},

["Cyndaquil"] = {level = 20, cons = 50, vida = 1500},

["Delibird"] = {level = 45, cons = 80, vida = 4500},

["Donphan"] = {level = 80, cons = 120, vida = 7000},

["Dunsparce"] = {level = 30, cons = 60, vida = 1600},

["Elekid"] = {level = 30, cons = 70, vida = 2300},

["Entei"] = {level = 280, cons = 500, vida = 100000},

["Espeon"] = {level = 55, cons = 80, vida = 5300},

["Feraligatr"] = {level = 85, cons = 130, vida = 8500},

["Flaaffy"] = {level = 40, cons = 85, vida = 4050},

["Forretress"] ={level = 65, cons = 70, vida = 6000},

["Furret"] = {level = 35, cons = 50, vida = 4000},

["Girafarig"] = {level = 80, cons = 90, vida = 7500},

["Gligar"] = {level = 40, cons = 65, vida = 3000},

["Granbull"] = {level = 65, cons = 70, vida = 6000},

["Heracross"] = {level = 80, cons = 100, vida = 8000},

["Hitmontop"] = {level = 60, cons = 100, vida = 6500},

["Ho oh"] = {level = 800, cons = 1500, vida = 500000},

["Hoothoot"] = {level = 20, cons = 50, vida = 1500},

["Hoppip"] = {level = 5, cons = 15, vida = 800},

["Houndoom"] = {level = 80, cons = 100, vida = 7300},

["Houndour"] = {level = 25, cons = 60, vida = 1500},

["Igglypuff"] = {level = 20, cons = 70, vida = 2000},

["Jumpluff"] = {level = 50, cons = 90, vida = 4000},

["Kingdra"] = {level = 100, cons = 140, vida = 9000},

["Lanturn"] = {level = 75, cons = 100, vida = 6000},

["Larvitar"] = {level = 20, cons = 70, vida = 2500},

["Ledian"] = {level = 35, cons = 60, vida = 4000},

["Ledyba"] = {level = 15, cons = 40, vida = 2000},

["Lugia"] = {level = 600, cons = 1000, vida = 165000},

["Magby"] = {level = 30, cons = 60, vida = 2300},

["Magcargo"] = {level = 75, cons = 100, vida = 5100},

["Mantine"] = {level = 80, cons = 130, vida = 8300},

["Mareep"] = {level = 20, cons = 70, vida = 1500},

["Marill"] = {level = 20, cons = 50, vida = 2500},

["Meganium"] ={level = 85, cons = 170, vida = 8500},

["Miltank"] = {level = 80, cons = 140, vida = 8600},

["Misdreavus"] = {level = 80, cons = 140, vida = 6500},

["Murkrow"] = {level = 55, cons = 70, vida = 5200},

["Natu"] = {level = 20, cons = 50, vida = 1300},

["Noctowl"] = {level = 65, cons = 70, vida = 6000},

["Octillery"] ={level = 70, cons = 80, vida = 7000},

["Phanpy"] = {level = 20, cons = 70, vida = 1300},

["Pichu"] = {level = 20, cons = 60, vida = 1500},

["Piloswine"] ={level = 80, cons = 140, vida = 7100},

["Pineco"] = {level = 10, cons = 50, vida = 1300},

["Politoed"] ={level = 65, cons = 80, vida = 6200},

["porygon2"] ={level = 75, cons = 140, vida = 6000},

["Pupitar"] = {level = 65, cons = 100, vida = 4500},

["Quagsire"] ={level = 65, cons = 75, vida = 6000},

["Quilava"] ={level = 40, cons = 60, vida = 4350},

["Qwilfish"] = {level = 55, cons = 80, vida = 4000},

["Raikou"] ={level = 270, cons = 500, vida = 100000},

["Remoraid"] = {level = 10, cons = 40, vida = 1000},

["Scizor"] = {level = 100, cons = 130, vida = 10000},

["Sentret"] = {level = 15, cons = 50, vida = 1200},

["Shuckle"] ={level = 30, cons = 50, vida = 3500},

["Skarmory"] ={level = 85, cons = 130, vida = 8000},

["Skiploom"] = {level = 25, cons = 40, vida = 3000},

["Slowking"] = {level = 100, cons = 155, vida = 9000},

["Slugma"] ={level = 15, cons = 60, vida = 1200},

["Smeargle Virgem"] = {level = 40, cons = 60, vida = 4000},

["Smeargle Tm 1"] = {level = 40, cons = 60, vida = 4000},

["Smeargle Tm 2"] = {level = 40, cons = 60, vida = 4000},

["Smeargle Tm 3"] = {level = 40, cons = 60, vida = 4000},

["Smeargle Tm 4"] = {level = 40, cons = 60, vida = 4000},

["Smeargle Tm 5"] = {level = 40, cons = 60, vida = 4000},

["Smeargle Tm 6"] = {level = 40, cons = 60, vida = 4000},

["Smeargle Tm 7"] = {level = 40, cons = 60, vida = 4000},

["Smoochum"] = {level = 30, cons = 80, vida = 2300},

["Sneasel"] = {level = 55, cons = 70, vida = 5000},

["Snubbull"] = {level = 20, cons = 50, vida = 2500},

["Spinarak"] ={level = 10, cons = 20, vida = 600},

["Stantler"] = {level = 55, cons = 70, vida = 6000},

["Steelix"] = {level = 100, cons = 150, vida = 10000},

["Sudowoodo"] ={level = 80, cons = 140, vida = 8500},

["Suicune"] = {level = 270, cons = 500, vida = 100000},

["Sunflora"] = {level = 40, cons = 60, vida = 4200},

["Sunkern"] = {level = 5, cons = 15, vida = 600},

["Swinub"] ={level = 15, cons = 50, vida = 1200},

["Teddiursa"] ={level = 30, cons = 50, vida = 3500},

["Togepi"] = {level = 5, cons = 80, vida = 2000},

["Togetic"] ={level = 65, cons = 80, vida = 5500},

["Totodile"] = {level = 20, cons = 70, vida = 1500},

["Typhlosion"] ={level = 85, cons = 140, vida = 8500},

["Tyranitar"] = {level = 90, cons = 150, vida = 9000},

["Tyrogue"] = {level = 30, cons = 90, vida = 2500},

["Umbreon"] ={level = 55, cons = 80, vida = 5300},

["Unown a"] = {level = 100, cons = 120, vida = 9000},

["Unown b"] = {level = 100, cons = 120, vida = 9000},

["Unown c"] = {level = 100, cons = 120, vida = 9000},

["Unown d"] = {level = 100, cons = 120, vida = 9000},

["Unown e"] = {level = 100, cons = 120, vida = 9000},

["Unown f"] = {level = 100, cons = 120, vida = 9000},

["Unown g"] = {level = 100, cons = 120, vida = 9000},

["Unown h"] = {level = 100, cons = 120, vida = 9000},

["Unown i"] = {level = 100, cons = 120, vida = 9000},

["Unown j"] = {level = 100, cons = 120, vida = 9000},

["Unown k"] = {level = 100, cons = 120, vida = 9000},

["Unown l"] = {level = 100, cons = 120, vida = 9000},

["Unown m"] = {level = 100, cons = 120, vida = 9000},

["Unown n"] = {level = 100, cons = 120, vida = 9000},

["Unown o"] = {level = 100, cons = 120, vida = 9000},

["Unown p"] = {level = 100, cons = 120, vida = 9000},

["Unown q"] = {level = 100, cons = 120, vida = 9000},

["Unown r"] = {level = 100, cons = 120, vida = 9000},

["Unown s"] ={level = 100, cons = 120, vida = 9000},

["Unown t"] = {level = 100, cons = 120, vida = 9000},

["Unown u"] = {level = 100, cons = 120, vida = 9000},

["Unown v"] = {level = 100, cons = 120, vida = 9000},

["Unown w"] = {level = 100, cons = 120, vida = 9000},

["Unown x"] ={level = 100, cons = 120, vida = 9000},

["Unown y"] = {level = 100, cons = 120, vida = 9000},

["Unown z"] = {level = 100, cons = 120, vida = 9000},

["Ursaring"] = {level = 90, cons = 170, vida = 9500},

["Wobbuffet"] = {level = 80, cons = 120, vida = 9000},

["Wooper"] = {level = 20, cons = 60, vida = 1200},

["Xatu"] = {level = 75, cons = 70, vida = 7300},

["Yanma"] = {level = 50, cons = 80, vida = 4400},

}

 

function onLogout(cid)

 if #getCreatureSummons(cid) >= 1 then

doPlayerSendCancel(cid, "Retorne seu pokemon para pokebola para logout.")

return false

end

if getPlayerStorageValue(cid, 888) >= 1 then

doPlayerSendCancel(cid, "You cant logout during control mind.")

return false

end

 

if getPlayerStorageValue(cid, 100) == 1 then

setPlayerStorageValue(cid, 100, 0)

end

 

if #getCreatureSummons(cid) == 1 then

if getPlayerStorageValue(cid, 61204) >= 1 and getPlayerStorageValue(cid, 63215) <= 0 and getPlayerStorageValue(cid, 62314) <= 0 then

local summom = getCreatureSummons(cid)

--local item = getPlayerSlotItem(cid, 8)

--i = getItemAttribute(item.uid, "poke"):match("This is (.-)'s pokeball.")

--local maxh = (pokes.vida)

--local pct2 = ((getCreatureHealth(summom[1])) / (getCreatureMaxHealth(summom[1])))

--local vids = ((getCreatureHealth(summom[1])) - 2)

--doCreatureAddHealth(summom[1], -vids)

--setCreatureMaxHealth(summom[1], maxh)

--doCreatureAddHealth(summom[1], ((maxh) * (pct2)))*/

local health = getCreatureHealth(summom[1])

local maxhealth = getCreatureMaxHealth(summom[1])

setPlayerStorageValue(cid, 61205, health)

setPlayerStorageValue(cid, 61206, maxhealth)

setPlayerStorageValue(cid, 61204, 0)

setPlayerStorageValue(cid, 61207, 1)

setPlayerStorageValue(cid, 1, 0)

 

if getPlayerGroupId(cid) == 8 then

setPlayerGroupId(cid, 1)

end

end

end

return TRUE

end

 

function onPrepareDeath(cid, deathList)

local owner = getCreatureMaster(cid)

if getPlayerSlotItem(owner, 8).itemid == 2220 or getPlayerSlotItem(owner, 8).itemid == 2221 then

doSendMagicEffect(getCreaturePosition(cid), 191)

elseif getPlayerSlotItem(owner, 8).itemid == 2651 or getPlayerSlotItem(owner, 8).itemid == 2652 then

doSendMagicEffect(getCreaturePosition(cid), 189)

elseif getPlayerSlotItem(owner, 8).itemid == 2653 or getPlayerSlotItem(owner, 8).itemid == 2654 then

doSendMagicEffect(getCreaturePosition(cid), 190)

elseif getPlayerSlotItem(owner, 8).itemid == 2655 or getPlayerSlotItem(owner, 8).itemid == 2656 then

doSendMagicEffect(getCreaturePosition(cid), 195)

elseif getPlayerSlotItem(owner, 8).itemid == 2222 or getPlayerSlotItem(owner, 8).itemid == 2223 then

doSendMagicEffect(getCreaturePosition(cid), 10)

end

doPlayerSendTextMessage(owner, 22, "Your pokemon fainted.")

if getPlayerSlotItem(owner, 8).itemid == 2220 or getPlayerSlotItem(owner, 8).itemid == 2221 then

doTransformItem(getPlayerSlotItem(owner, 8).uid, 2227)

elseif getPlayerSlotItem(owner, 8).itemid == 2222 or getPlayerSlotItem(owner, 8).itemid == 2223 then

doTransformItem(getPlayerSlotItem(owner, 8).uid, 2224)

elseif getPlayerSlotItem(owner, 8).itemid == 2651 or getPlayerSlotItem(owner, 8).itemid == 2652 then

doTransformItem(getPlayerSlotItem(owner, 8).uid, 2657)

elseif getPlayerSlotItem(owner, 8).itemid == 2653 or getPlayerSlotItem(owner, 8).itemid == 2654 then

doTransformItem(getPlayerSlotItem(owner, 8).uid, 2658)

elseif getPlayerSlotItem(owner, 8).itemid == 2655 or getPlayerSlotItem(owner, 8).itemid == 2656 then

doTransformItem(getPlayerSlotItem(owner, 8).uid, 2659)

end

local item = getPlayerSlotItem(owner, 8)

doItemSetAttribute(item.uid, "poke", getItemAttribute(item.uid, "poke"):sub(1, findLetter(getItemAttribute(item.uid, "poke"), ".")) .. " HP = [0/"..getCreatureMaxHealth(cid).."]")

setPlayerStorageValue(owner, 61207, 0)

setPlayerStorageValue(owner, 61204, 0)

if getPlayerGroupId(owner) == 8 then

setPlayerGroupId(owner, 1)

end

doRemoveCreature(cid)

return FALSE

end

Link para o post
Compartilhar em outros sites

Use spoiler para algo desse tamanho exemplo: [*Spoiler]MENSAGEM[*/spoiler]    retire o *

Não tenho certeza de o goBack ser o problema de heal como disse o Nextbr...

Caso ocorra algum erro reverta as alterações.

Mude:

if #getCreatureSummons(cid) == 1 then
if getPlayerStorageValue(cid, 61204) >= 1 and getPlayerStorageValue(cid, 63215) <= 0 and getPlayerStorageValue(cid, 62314) <= 0 then
local summom = getCreatureSummons(cid)
--local item = getPlayerSlotItem(cid, 8)
--i = getItemAttribute(item.uid, "poke"):match("This is (.-)'s pokeball.")
--local maxh = (pokes[i].vida)
--local pct2 = ((getCreatureHealth(summom[1])) / (getCreatureMaxHealth(summom[1])))
--local vids = ((getCreatureHealth(summom[1])) - 2)
--doCreatureAddHealth(summom[1], -vids)
--setCreatureMaxHealth(summom[1], maxh)
--doCreatureAddHealth(summom[1], ((maxh) * (pct2)))*/
local health = getCreatureHealth(summom[1])
local maxhealth = getCreatureMaxHealth(summom[1])
setPlayerStorageValue(cid, 61205, health)
setPlayerStorageValue(cid, 61206, maxhealth)
setPlayerStorageValue(cid, 61204, 0)
setPlayerStorageValue(cid, 61207, 1)
setPlayerStorageValue(cid, 1, 0)

Por:

if #getCreatureSummons(cid) == 1 then
if getPlayerStorageValue(cid, 61204) >= 1 and getPlayerStorageValue(cid, 63215) <= 0 and getPlayerStorageValue(cid, 62314) <= 0 then
local summom = getCreatureSummons(cid)
setPlayerStorageValue(cid, 61205)
setPlayerStorageValue(cid, 61206)
setPlayerStorageValue(cid, 61204, 0)
setPlayerStorageValue(cid, 61207, 1)
setPlayerStorageValue(cid, 1, 0)
Editado por Vinicius Xxgamexx (veja o histórico de edições)

Ando devagar, porque já tive pressa. E levo esse sorriso, porque já chorei demais...

________________________________________________________________________________

Minhas Sprites:

Mega Metagross

Mega Abomasnow

Pack de Shinys

[Posso atualizá-lo com novos shinys a qualquer momento]

Tutoriais:

[Completo] Criando e adicionando um novo Pokémon

[Actions] Criando quest no RME

Editores Lua/Xml/Sync Entre outros:

Editores Win/Mac/Linux

Link para o post
Compartilhar em outros sites

Amigo sobre o deslog ja ta resolvido ^^ so falta esse do HP / :D

 

Eai vertinho ;)

Troca por esse:

local pokes = {
["Bulbasaur"] = {level = 20, cons = 40, vida = 1500},
["Ivysaur"] = {level = 40, cons = 85, vida = 4050},
["Venusaur"] = {level = 85, cons = 190, vida = 8500},
["Charmander"] = {level = 20, cons = 30, vida = 1500},
["Charmeleon"] = {level = 40, cons = 70, vida = 4050},
["Charizard"] = {level = 85, cons = 140, vida = 8500},
["Squirtle"] = {level = 20, cons = 50, vida = 1500},
["Wartortle"] = {level = 40, cons = 95, vida = 4050},
["Blastoise"] = {level = 85, cons = 195, vida = 8500},
["Caterpie"] = {level = 1, cons = 10, vida = 600},
["Metapod"] = {level = 15, cons = 30, vida = 1000},
["Butterfree"] = {level = 30, cons = 65, vida = 3000},
["Weedle"] = {level = 1, cons = 10, vida = 600},
["Kakuna"] = {level = 15, cons = 35, vida = 1000},
["Beedrill"] = {level = 25, cons = 60, vida = 3000},
["Pidgey"] = {level = 1, cons = 20, vida = 700},
["Pidgeotto"] = {level = 20, cons = 50, vida = 1500},
["Pidgeot"] = {level = 80, cons = 100, vida = 6000},
["Rattata"] = {level = 1, cons = 10, vida = 400},
["Raticate"] = {level = 20, cons = 70, vida = 1700},
["Spearow"] = {level = 10, cons = 25, vida = 850},
["Fearow"] = {level = 50, cons = 80, vida = 4000},
["Ekans"] = {level = 15, cons = 30, vida = 1000},
["Arbok"] = {level = 35, cons = 90, vida = 4000},
["Pikachu"] = {level = 40, cons = 75, vida = 3500},
["Raichu"] = {level = 85, cons = 100, vida = 7000},
["Sandshrew"] = {level = 25, cons = 30, vida = 1000},
["Sandslash"] = {level = 65, cons = 95, vida = 4000},
["nidoranfe"] = {level = 10, cons = 25, vida = 1000},
["Nidorina"] = {level = 25, cons = 60, vida = 3000},
["Nidoqueen"] = {level = 65, cons = 90, vida = 6700},
["nidoranma"] = {level = 10, cons = 35, vida = 1000},
["Nidorino"] = {level = 25, cons = 65, vida = 3000},
["Nidoking"] = {level = 65, cons = 90, vida = 6700},
["Clefairy"] = {level = 40, cons = 60, vida = 4000},
["Clefable"] = {level = 65, cons = 100, vida = 6500},
["Vulpix"] = {level = 20, cons = 35, vida = 1000},
["Ninetales"] = {level = 65, cons = 70, vida = 6000},
["Jigglypuff"] = {level = 40, cons = 60, vida = 4000},
["Wigglytuff"] = {level = 65, cons = 100, vida = 6500},
["Zubat"] = {level = 5, cons = 15, vida = 800},
["Golbat"] = {level = 35, cons = 50, vida = 3000},
["Oddish"] = {level = 5, cons = 15, vida = 800},
["Gloom"] = {level = 25, cons = 50, vida = 2000},
["Vileplume"] = {level = 50, cons = 90, vida = 4500},
["Paras"] = {level = 5, cons = 15, vida = 750},
["Parasect"] = {level = 50, cons = 110, vida = 4000},
["Venonat"] = {level = 20, cons = 50, vida = 1300},
["Venomoth"] = {level = 50, cons = 80, vida = 4500},
["Diglett"] = {level = 10, cons = 45, vida = 1000},
["Dugtrio"] = {level = 35, cons = 80, vida = 3000},
["Meowth"] = {level = 15, cons = 50, vida = 1200},
["Persian"] = {level = 30, cons = 90, vida = 3000},
["Psyduck"] = {level = 20, cons = 50, vida = 1400},
["Golduck"] = {level = 55, cons = 150, vida = 13250},
["Mankey"] = {level = 15, cons = 60, vida = 1000},
["Primeape"] = {level = 50, cons = 100, vida = 4300},
["Growlithe"] = {level = 25, cons = 60, vida = 1400},
["Arcanine"] = {level = 80, cons = 130, vida = 8000},
["Poliwag"] = {level = 5, cons = 20, vida = 800},
["Poliwhirl"] = {level = 25, cons = 45, vida = 2500},
["Poliwrath"] = {level = 65, cons = 90, vida = 5500},
["Abra"] = {level = 15, cons = 25, vida = 1000},
["Kadabra"] = {level = 45, cons = 60, vida = 3300},
["Alakazam"] = {level = 80, cons = 95, vida = 7200},
["Machop"] = {level = 20, cons = 60, vida = 1000},
["Machoke"] = {level = 45, cons = 80, vida = 3500},
["Machamp"] = {level = 80, cons = 125, vida = 7000},
["Bellsprout"] = {level = 5, cons = 20, vida = 900},
["Weepinbell"] = {level = 25, cons = 50, vida = 1400},
["Victreebel"] = {level = 50, cons = 100, vida = 5000},
["Tentacool"] = {level = 15, cons = 50, vida = 1000},
["Tentacruel"] = {level = 80, cons = 120, vida = 6500},
["Geodude"] = {level = 15, cons = 60, vida = 1000},
["Graveler"] = {level = 40, cons = 85, vida = 3500},
["Golem"] = {level = 70, cons = 120, vida = 8000},
["Ponyta"] = {level = 20, cons = 40, vida = 1200},
["Rapidash"] = {level = 50, cons = 90, vida = 5000},
["Slowpoke"] = {level = 15, cons = 55, vida = 1000},
["Slowbro"] = {level = 45, cons = 70, vida = 4100},
["Magnemite"] = {level = 15, cons = 25, vida = 800},
["Magneton"] = {level = 75, cons = 100, vida = 4500},
["Farfetchd"] = {level = 45, cons = 80, vida = 4200},
["Doduo"] = {level = 15, cons = 40, vida = 1200},
["Dodrio"] = {level = 45, cons = 80, vida = 4000},
["Seel"] = {level = 20, cons = 50, vida = 1600},
["Dewgong"] = {level = 65, cons = 90, vida = 5000},
["Grimer"] = {level = 15, cons = 30, vida = 1000},
["Muk"] = {level = 80, cons = 130, vida = 7000},
["Shellder"] = {level = 10, cons = 30, vida = 1000},
["Cloyster"] = {level = 60, cons = 70, vida = 4500},
["Gastly"] = {level = 20, cons = 60, vida = 1300},
["Haunter"] = {level = 45, cons = 70, vida = 4000},
["Gengar"] = {level = 80, cons = 135, vida = 7200},
["Onix"] = {level = 50, cons = 90, vida = 5500},
["Drowzee"] = {level = 25, cons = 55, vida = 1400},
["Hypno"] = {level = 55, cons = 80, vida = 4200},
["Krabby"] = {level = 10, cons = 45, vida = 820},
["Kingler"] = {level = 40, cons = 60, vida = 4000},
["Voltorb"] = {level = 15, cons = 30, vida = 1100},
["Electrode"] = {level = 35, cons = 50, vida = 4000},
["Exeggcute"] = {level = 10, cons = 25, vida = 800},
["Exeggutor"] = {level = 80, cons = 130, vida = 7000},
["Cubone"] = {level = 20, cons = 35, vida = 1000},
["Marowak"] = {level = 55, cons = 70, vida = 5000},
["Hitmonlee"] = {level = 60, cons = 100, vida = 6500},
["Hitmonchan"] = {level = 60, cons = 100, vida = 6500},
["Lickitung"] = {level = 55, cons = 90, vida = 5500},
["Koffing"] = {level = 15, cons = 50, vida = 1000},
["Weezing"] = {level = 35, cons = 60, vida = 3500},
["Rhyhorn"] = {level = 30, cons = 60, vida = 1500},
["Rhydon"] = {level = 75, cons = 100, vida = 6500},
["Chansey"] = {level = 60, cons = 100, vida = 7000},
["Tangela"] = {level = 55, cons = 70, vida = 4000},
["Kangaskhan"] = {level = 80, cons = 130, vida = 8000},
["Horsea"] = {level = 10, cons = 20, vida = 800},
["Seadra"] = {level = 45, cons = 75, vida = 3600},
["Goldeen"] = {level = 10, cons = 30, vida = 830},
["Seaking"] = {level = 35, cons = 80, vida = 2800},
["Staryu"] = {level = 15, cons = 40, vida = 1300},
["Starmie"] = {level = 75, cons = 100, vida = 4500},
["MrMime"] = {level = 60, cons = 100, vida = 4300},
["Scyther"] = {level = 80, cons = 130, vida = 7000},
["Jynx"] = {level = 80, cons = 130, vida = 7000},
["Electabuzz"] = {level = 80, cons = 130, vida = 7000},
["Magmar"] = {level = 80, cons = 130, vida = 7000},
["Pinsir"] = {level = 45, cons = 70, vida = 4500},
["Tauros"] = {level = 45, cons = 70, vida = 4500},
["Magikarp"] = {level = 1, cons = 5, vida = 450},
["Mini Magikarp"] = {level = 1, cons = 5, vida = 250},
["Medio Magikarp"] = {level = 20, cons = 20, vida = 1500},
["Big Magikarp"] = {level = 40, cons = 50, vida = 3000},
["Mini Gyarados"] = {level = 40, cons = 70, vida = 4500},
["Gyarados"] = {level = 85, cons = 140, vida = 9000},
["Lapras"] = {level = 80, cons = 120, vida = 7000},
["Ditto"] = {level = 40, cons = 60, vida = 4000},
["Eevee"] = {level = 20, cons = 60, vida = 2000},
["Vaporeon"] = {level = 55, cons = 80, vida = 5300},
["Jolteon"] = {level = 55, cons = 80, vida = 5300},
["Flareon"] = {level = 55, cons = 80, vida = 5300},
["Porygon"] = {level = 45, cons = 80, vida = 4200},
["Omanyte"] = {level = 20, cons = 50, vida = 2500},
["Omastar"] = {level = 80, cons = 140, vida = 6000},
["Kabuto"] = {level = 20, cons = 70, vida = 2500},
["Kabutops"] = {level = 80, cons = 170, vida = 6000},
["Aerodactyl"] = {level = 100, cons = 240, vida = 15000},
["Snorlax"] = {level = 90, cons = 150, vida = 9000},
["Articuno"] = {level = 250, cons = 500, vida = 70000},
["Zapdos"] = {level = 250, cons = 500, vida = 70000},
["Moltres"] = {level = 250, cons = 500, vida = 70000},
["Dratini"] = {level = 20, cons = 40, vida = 2000},
["Dragonair"] = {level = 60, cons = 120, vida = 5500},
["Dragonite"] = {level = 100, cons = 200, vida = 10000},
["Mew"] = {level = 600, cons = 1000, vida = 400000},
["Mewtwo"] = {level = 700, cons = 1500, vida = 550000},
 
----------------------Shiny----------------------
["Crystal Onix"] = {level = 100, cons = 260, vida = 16500},
["Elder Charizard"] = {level = 100, cons = 280, vida = 25500},
["Shiny Magikarp"] = {level = 10, cons = 10, vida = 1350},
["Shiny Paras"] = {level = 20, cons = 30, vida = 2250},
["Shiny Oddish"] = {level = 20, cons = 30, vida = 2400},
["Shiny Tentacool"] = {level = 30, cons = 100, vida = 3000},
["Shiny Tentacruel"] = {level = 85, cons = 240, vida = 19500},
["Shiny Raticate"] = {level = 30, cons = 140, vida = 5100},
["Shiny Krabby"] = {level = 20, cons = 90, vida = 2460},
["Shiny Kingler"] = {level = 50, cons = 120, vida = 12000},
["Shiny Horsea"] = {level = 20, cons = 40, vida = 2400},
["Shiny Seadra"] = {level = 50, cons = 150, vida = 10800},
["Red Gyarados"] = {level = 100, cons = 380, vida = 27000},
["Shiny Parasect"] = {level = 60, cons = 220, vida = 12000},
["Shiny Scyther"] = {level = 100, cons = 260, vida = 21000},
["Shiny Electabuzz"] = {level = 100, cons = 260, vida = 21000},
["Shiny Jynx"] = {level = 100, cons = 260, vida = 21000},
["Shiny Electrode"] = {level = 65, cons = 100, vida = 12000},
["Shiny Voltorb"] = {level = 30, cons = 60, vida = 3300},
["Shiny Raichu"] = {level = 100, cons = 200, vida = 21000},
["Shiny Venomoth"] = {level = 75, cons = 160, vida = 13500},
["Shiny Venonat"] = {level = 30, cons = 100, vida = 3900},
["Shiny Beedrill"] = {level = 45, cons = 120, vida = 9000},
["Shiny Butterfree"] = {level = 45, cons = 130, vida = 9000},
["Shiny Venusaur"] = {level = 100, cons = 380, vida = 25500},
["Shiny Blastoise"] = {level = 100, cons = 390, vida = 25500},
["Elite Farfetchd"] = {level = 70, cons = 160, vida = 12600},
["Shiny Grimer"] = {level = 30, cons = 60, vida = 3000},
["Shiny Muk"] = {level = 100, cons = 260, vida = 21000},
["Shiny Growlithe"] = {level = 40, cons = 120, vida = 4200},
["Shiny Arcanine"] = {level = 100, cons = 260, vida = 24000},
["Shiny Dratini"] = {level = 40, cons = 80, vida = 6000},
["Dark Abra"] = {level = 100, cons = 190, vida = 21600},
["Elite Hitmonlee"] = {level = 100, cons = 200, vida = 19500},
["Elite Hitmonchan"] = {level = 100, cons = 200, vida = 19500},
["Shiny Rattata"] = {level = 10, cons = 20, vida = 1200},
["Shiny Zubat"] = {level = 30, cons = 30, vida = 2400},
["Shiny Golbat"] = {level = 60, cons = 100, vida = 9000},
["Shiny Gengar"] = {level = 100, cons = 270, vida = 21600},
["Shiny Big Magikarp"] = {level = 50, cons = 100, vida = 9000},
["Shiny Tangela"] = {level = 80, cons = 140, vida = 12000},
["Shiny Vaporeon"] = {level = 80, cons = 160, vida = 15900},
["Shiny Jolteon"] = {level = 80, cons = 160, vida = 15900},
["Shiny Flareon"] = {level = 80, cons = 160, vida = 15900},
["Shiny Dragonair"] = {level = 80, cons = 240, vida = 16500},
["Shiny Vileplume"] = {level = 80, cons = 180, vida = 13500},
["Shiny Golem"] = {level = 85, cons = 240, vida = 24000},
["Shiny Fearow"] = {level = 65, cons = 160, vida = 12000},
["Shiny Nidoking"] = {level = 85, cons = 180, vida = 20100},
["Shiny Hypno"] = {level = 70, cons = 160, vida = 12600},
["Shiny Cubone"] = {level = 40, cons = 70, vida = 3000},
["Shiny Marowak"] = {level = 65, cons = 140, vida = 15000},
["Shiny Alakazam"] = {level = 100, cons = 190, vida = 21600},
["Shiny Pidgeot"] = {level = 100, cons = 200, vida = 18000},
["Shiny Pinsir"] = {level = 70, cons = 140, vida = 13500},
["Shiny MrMime"] = {level = 85, cons = 200, vida = 12900},
["Shiny Ninetales"] = {level = 80, cons = 140, vida = 18000},
["Shiny Magneton"] = {level = 90, cons = 200, vida = 13500},
["Shiny Rhydon"] = {level = 100, cons = 200, vida = 19500},
["Shiny Dodrio"] = {level = 65, cons = 160, vida = 12000},
["Shiny Magmar"] = {level = 100, cons = 260, vida = 21000},
["Shiny Tauros"] = {level = 65, cons = 140, vida = 13500},
["Shiny Machamp"] = {level = 100, cons = 250, vida = 21000},
["Big Snorlax"] = {level = 150, cons = 300, vida = 27000},
 
----------------------------Johto----------------------------
["Aipom"] = {level = 40, cons = 50, vida = 4000},
["Ampharos"] = {level = 80, cons = 140, vida = 8500},
["Ariados"] = {level = 35, cons = 50, vida = 4000},
["Azumarill"] = {level = 65, cons = 70, vida = 6000},
["Bayleef"] = {level = 40, cons = 60, vida = 4350},
["Bellossom"] = {level = 50, cons = 70, vida = 5000},
["Blissey"] = {level = 100, cons = 200, vida = 10000},
["Celebi"] = {level = 600, cons = 800, vida = 550000},
["Chikorita"] = {level = 20, cons = 60, vida = 1500},
["Chinchou"] = {level = 15, cons = 40, vida = 1500},
["Cleffa"] = {level = 20, cons = 60, vida = 2000},
["Corsola"] = {level = 50, cons = 80, vida = 4500},
["Crobat"] = {level = 80, cons = 120, vida = 7500},
["Croconaw"] = {level = 40, cons = 60, vida = 4350},
["Cyndaquil"] = {level = 20, cons = 50, vida = 1500},
["Delibird"] = {level = 45, cons = 80, vida = 4500},
["Donphan"] = {level = 80, cons = 120, vida = 7000},
["Dunsparce"] = {level = 30, cons = 60, vida = 1600},
["Elekid"] = {level = 30, cons = 70, vida = 2300},
["Entei"] = {level = 280, cons = 500, vida = 100000},
["Espeon"] = {level = 55, cons = 80, vida = 5300},
["Feraligatr"] = {level = 85, cons = 130, vida = 8500},
["Flaaffy"] = {level = 40, cons = 85, vida = 4050},
["Forretress"] ={level = 65, cons = 70, vida = 6000},
["Furret"] = {level = 35, cons = 50, vida = 4000},
["Girafarig"] = {level = 80, cons = 90, vida = 7500},
["Gligar"] = {level = 40, cons = 65, vida = 3000},
["Granbull"] = {level = 65, cons = 70, vida = 6000},
["Heracross"] = {level = 80, cons = 100, vida = 8000},
["Hitmontop"] = {level = 60, cons = 100, vida = 6500},
["Ho oh"] = {level = 800, cons = 1500, vida = 500000},
["Hoothoot"] = {level = 20, cons = 50, vida = 1500},
["Hoppip"] = {level = 5, cons = 15, vida = 800},
["Houndoom"] = {level = 80, cons = 100, vida = 7300},
["Houndour"] = {level = 25, cons = 60, vida = 1500},
["Igglypuff"] = {level = 20, cons = 70, vida = 2000},
["Jumpluff"] = {level = 50, cons = 90, vida = 4000},
["Kingdra"] = {level = 100, cons = 140, vida = 9000},
["Lanturn"] = {level = 75, cons = 100, vida = 6000},
["Larvitar"] = {level = 20, cons = 70, vida = 2500},
["Ledian"] = {level = 35, cons = 60, vida = 4000},
["Ledyba"] = {level = 15, cons = 40, vida = 2000},
["Lugia"] = {level = 600, cons = 1000, vida = 165000},
["Magby"] = {level = 30, cons = 60, vida = 2300},
["Magcargo"] = {level = 75, cons = 100, vida = 5100},
["Mantine"] = {level = 80, cons = 130, vida = 8300},
["Mareep"] = {level = 20, cons = 70, vida = 1500},
["Marill"] = {level = 20, cons = 50, vida = 2500},
["Meganium"] ={level = 85, cons = 170, vida = 8500},
["Miltank"] = {level = 80, cons = 140, vida = 8600},
["Misdreavus"] = {level = 80, cons = 140, vida = 6500},
["Murkrow"] = {level = 55, cons = 70, vida = 5200},
["Natu"] = {level = 20, cons = 50, vida = 1300},
["Noctowl"] = {level = 65, cons = 70, vida = 6000},
["Octillery"] ={level = 70, cons = 80, vida = 7000},
["Phanpy"] = {level = 20, cons = 70, vida = 1300},
["Pichu"] = {level = 20, cons = 60, vida = 1500},
["Piloswine"] ={level = 80, cons = 140, vida = 7100},
["Pineco"] = {level = 10, cons = 50, vida = 1300},
["Politoed"] ={level = 65, cons = 80, vida = 6200},
["porygon2"] ={level = 75, cons = 140, vida = 6000},
["Pupitar"] = {level = 65, cons = 100, vida = 4500},
["Quagsire"] ={level = 65, cons = 75, vida = 6000},
["Quilava"] ={level = 40, cons = 60, vida = 4350},
["Qwilfish"] = {level = 55, cons = 80, vida = 4000},
["Raikou"] ={level = 270, cons = 500, vida = 100000},
["Remoraid"] = {level = 10, cons = 40, vida = 1000},
["Scizor"] = {level = 100, cons = 130, vida = 10000},
["Sentret"] = {level = 15, cons = 50, vida = 1200},
["Shuckle"] ={level = 30, cons = 50, vida = 3500},
["Skarmory"] ={level = 85, cons = 130, vida = 8000},
["Skiploom"] = {level = 25, cons = 40, vida = 3000},
["Slowking"] = {level = 100, cons = 155, vida = 9000},
["Slugma"] ={level = 15, cons = 60, vida = 1200},
["Smeargle Virgem"] = {level = 40, cons = 60, vida = 4000},
["Smeargle Tm 1"] = {level = 40, cons = 60, vida = 4000},
["Smeargle Tm 2"] = {level = 40, cons = 60, vida = 4000},
["Smeargle Tm 3"] = {level = 40, cons = 60, vida = 4000},
["Smeargle Tm 4"] = {level = 40, cons = 60, vida = 4000},
["Smeargle Tm 5"] = {level = 40, cons = 60, vida = 4000},
["Smeargle Tm 6"] = {level = 40, cons = 60, vida = 4000},
["Smeargle Tm 7"] = {level = 40, cons = 60, vida = 4000},
["Smoochum"] = {level = 30, cons = 80, vida = 2300},
["Sneasel"] = {level = 55, cons = 70, vida = 5000},
["Snubbull"] = {level = 20, cons = 50, vida = 2500},
["Spinarak"] ={level = 10, cons = 20, vida = 600},
["Stantler"] = {level = 55, cons = 70, vida = 6000},
["Steelix"] = {level = 100, cons = 150, vida = 10000},
["Sudowoodo"] ={level = 80, cons = 140, vida = 8500},
["Suicune"] = {level = 270, cons = 500, vida = 100000},
["Sunflora"] = {level = 40, cons = 60, vida = 4200},
["Sunkern"] = {level = 5, cons = 15, vida = 600},
["Swinub"] ={level = 15, cons = 50, vida = 1200},
["Teddiursa"] ={level = 30, cons = 50, vida = 3500},
["Togepi"] = {level = 5, cons = 80, vida = 2000},
["Togetic"] ={level = 65, cons = 80, vida = 5500},
["Totodile"] = {level = 20, cons = 70, vida = 1500},
["Typhlosion"] ={level = 85, cons = 140, vida = 8500},
["Tyranitar"] = {level = 90, cons = 150, vida = 9000},
["Tyrogue"] = {level = 30, cons = 90, vida = 2500},
["Umbreon"] ={level = 55, cons = 80, vida = 5300},
["Unown a"] = {level = 100, cons = 120, vida = 9000},
["Unown b"] = {level = 100, cons = 120, vida = 9000},
["Unown c"] = {level = 100, cons = 120, vida = 9000},
["Unown d"] = {level = 100, cons = 120, vida = 9000},
["Unown e"] = {level = 100, cons = 120, vida = 9000},
["Unown f"] = {level = 100, cons = 120, vida = 9000},
["Unown g"] = {level = 100, cons = 120, vida = 9000},
["Unown h"] = {level = 100, cons = 120, vida = 9000},
["Unown i"] = {level = 100, cons = 120, vida = 9000},
["Unown j"] = {level = 100, cons = 120, vida = 9000},
["Unown k"] = {level = 100, cons = 120, vida = 9000},
["Unown l"] = {level = 100, cons = 120, vida = 9000},
["Unown m"] = {level = 100, cons = 120, vida = 9000},
["Unown n"] = {level = 100, cons = 120, vida = 9000},
["Unown o"] = {level = 100, cons = 120, vida = 9000},
["Unown p"] = {level = 100, cons = 120, vida = 9000},
["Unown q"] = {level = 100, cons = 120, vida = 9000},
["Unown r"] = {level = 100, cons = 120, vida = 9000},
["Unown s"] ={level = 100, cons = 120, vida = 9000},
["Unown t"] = {level = 100, cons = 120, vida = 9000},
["Unown u"] = {level = 100, cons = 120, vida = 9000},
["Unown v"] = {level = 100, cons = 120, vida = 9000},
["Unown w"] = {level = 100, cons = 120, vida = 9000},
["Unown x"] ={level = 100, cons = 120, vida = 9000},
["Unown y"] = {level = 100, cons = 120, vida = 9000},
["Unown z"] = {level = 100, cons = 120, vida = 9000},
["Ursaring"] = {level = 90, cons = 170, vida = 9500},
["Wobbuffet"] = {level = 80, cons = 120, vida = 9000},
["Wooper"] = {level = 20, cons = 60, vida = 1200},
["Xatu"] = {level = 75, cons = 70, vida = 7300},
["Yanma"] = {level = 50, cons = 80, vida = 4400},
}
 
function onLogout(cid)
 if #getCreatureSummons(cid) >= 1 then
doPlayerSendCancel(cid, "Retorne seu pokemon para pokebola para logout.")
return false
end
if getPlayerStorageValue(cid, 888) >= 1 then
doPlayerSendCancel(cid, "You cant logout during control mind.")
return false
end
 
if getPlayerStorageValue(cid, 100) == 1 then
setPlayerStorageValue(cid, 100, 0)
end
 
if #getCreatureSummons(cid) == 1 then
if getPlayerStorageValue(cid, 61204) >= 1 and getPlayerStorageValue(cid, 63215) <= 0 and getPlayerStorageValue(cid, 62314) <= 0 then
local summom = getCreatureSummons(cid)
setPlayerStorageValue(cid, 61205, health)
setPlayerStorageValue(cid, 61206, maxhealth)
setPlayerStorageValue(cid, 61204, 0)
setPlayerStorageValue(cid, 61207, 1)
setPlayerStorageValue(cid, 1, 0)
 
if getPlayerGroupId(cid) == 8 then
setPlayerGroupId(cid, 1)
end
end
end
return TRUE
end
 
function onPrepareDeath(cid, deathList)
local owner = getCreatureMaster(cid)
if getPlayerSlotItem(owner, 8).itemid == 2220 or getPlayerSlotItem(owner, 8).itemid == 2221 then
doSendMagicEffect(getCreaturePosition(cid), 191)
elseif getPlayerSlotItem(owner, 8).itemid == 2651 or getPlayerSlotItem(owner, 8).itemid == 2652 then
doSendMagicEffect(getCreaturePosition(cid), 189)
elseif getPlayerSlotItem(owner, 8).itemid == 2653 or getPlayerSlotItem(owner, 8).itemid == 2654 then
doSendMagicEffect(getCreaturePosition(cid), 190)
elseif getPlayerSlotItem(owner, 8).itemid == 2655 or getPlayerSlotItem(owner, 8).itemid == 2656 then
doSendMagicEffect(getCreaturePosition(cid), 195)
elseif getPlayerSlotItem(owner, 8).itemid == 2222 or getPlayerSlotItem(owner, 8).itemid == 2223 then
doSendMagicEffect(getCreaturePosition(cid), 10)
end
doPlayerSendTextMessage(owner, 22, "Your pokemon fainted.")
if getPlayerSlotItem(owner, 8).itemid == 2220 or getPlayerSlotItem(owner, 8).itemid == 2221 then
doTransformItem(getPlayerSlotItem(owner, 8).uid, 2227)
elseif getPlayerSlotItem(owner, 8).itemid == 2222 or getPlayerSlotItem(owner, 8).itemid == 2223 then
doTransformItem(getPlayerSlotItem(owner, 8).uid, 2224)
elseif getPlayerSlotItem(owner, 8).itemid == 2651 or getPlayerSlotItem(owner, 8).itemid == 2652 then
doTransformItem(getPlayerSlotItem(owner, 8).uid, 2657)
elseif getPlayerSlotItem(owner, 8).itemid == 2653 or getPlayerSlotItem(owner, 8).itemid == 2654 then
doTransformItem(getPlayerSlotItem(owner, 8).uid, 2658)
elseif getPlayerSlotItem(owner, 8).itemid == 2655 or getPlayerSlotItem(owner, 8).itemid == 2656 then
doTransformItem(getPlayerSlotItem(owner, 8).uid, 2659)
end
local item = getPlayerSlotItem(owner, 8)
doItemSetAttribute(item.uid, "poke", getItemAttribute(item.uid, "poke"):sub(1, findLetter(getItemAttribute(item.uid, "poke"), ".")) .. " HP = [0/"..getCreatureMaxHealth(cid).."]")
setPlayerStorageValue(owner, 61207, 0)
setPlayerStorageValue(owner, 61204, 0)
if getPlayerGroupId(owner) == 8 then
setPlayerGroupId(owner, 1)
end
doRemoveCreature(cid)
return FALSE
end

 

 

if #getCreatureSummons(cid) == 1 then
if getPlayerStorageValue(cid, 61204) >= 1 and getPlayerStorageValue(cid, 63215) <= 0 and getPlayerStorageValue(cid, 62314) <= 0 then
local summom = getCreatureSummons(cid)
setPlayerStorageValue(cid, 61205
setPlayerStorageValue(cid, 61206)
setPlayerStorageValue(cid, 61204, 0)
setPlayerStorageValue(cid, 61207, 1)
setPlayerStorageValue(cid, 1, 0)

 

Veja suas alterações de novo, você deixou faltando um ")" na parte do code ^^

Editado por Wend Siilva (veja o histórico de edições)
Link para o post
Compartilhar em outros sites

 

Use spoiler para algo desse tamanho exemplo:

[*Spoiler]MENSAGEM[*/spoiler]    retire o *

Não tenho certeza de o goBack ser o problema de heal como disse o Nextbr...

Caso ocorra algum erro reverta as alterações.

Mude:

if #getCreatureSummons(cid) == 1 then
if getPlayerStorageValue(cid, 61204) >= 1 and getPlayerStorageValue(cid, 63215) <= 0 and getPlayerStorageValue(cid, 62314) <= 0 then
local summom = getCreatureSummons(cid)
--local item = getPlayerSlotItem(cid, 8)
--i = getItemAttribute(item.uid, "poke"):match("This is (.-)'s pokeball.")
--local maxh = (pokes[i].vida)
--local pct2 = ((getCreatureHealth(summom[1])) / (getCreatureMaxHealth(summom[1])))
--local vids = ((getCreatureHealth(summom[1])) - 2)
--doCreatureAddHealth(summom[1], -vids)
--setCreatureMaxHealth(summom[1], maxh)
--doCreatureAddHealth(summom[1], ((maxh) * (pct2)))*/
local health = getCreatureHealth(summom[1])
local maxhealth = getCreatureMaxHealth(summom[1])
setPlayerStorageValue(cid, 61205, health)
setPlayerStorageValue(cid, 61206, maxhealth)
setPlayerStorageValue(cid, 61204, 0)
setPlayerStorageValue(cid, 61207, 1)
setPlayerStorageValue(cid, 1, 0)

Por:

if #getCreatureSummons(cid) == 1 then
if getPlayerStorageValue(cid, 61204) >= 1 and getPlayerStorageValue(cid, 63215) <= 0 and getPlayerStorageValue(cid, 62314) <= 0 then
local summom = getCreatureSummons(cid)
setPlayerStorageValue(cid, 61205)
setPlayerStorageValue(cid, 61206)
setPlayerStorageValue(cid, 61204, 0)
setPlayerStorageValue(cid, 61207, 1)
setPlayerStorageValue(cid, 1, 0)

 

 

Eai vertinho ;)

Troca por esse:

local pokes = {
["Bulbasaur"] = {level = 20, cons = 40, vida = 1500},
["Ivysaur"] = {level = 40, cons = 85, vida = 4050},
["Venusaur"] = {level = 85, cons = 190, vida = 8500},
["Charmander"] = {level = 20, cons = 30, vida = 1500},
["Charmeleon"] = {level = 40, cons = 70, vida = 4050},
["Charizard"] = {level = 85, cons = 140, vida = 8500},
["Squirtle"] = {level = 20, cons = 50, vida = 1500},
["Wartortle"] = {level = 40, cons = 95, vida = 4050},
["Blastoise"] = {level = 85, cons = 195, vida = 8500},
["Caterpie"] = {level = 1, cons = 10, vida = 600},
["Metapod"] = {level = 15, cons = 30, vida = 1000},
["Butterfree"] = {level = 30, cons = 65, vida = 3000},
["Weedle"] = {level = 1, cons = 10, vida = 600},
["Kakuna"] = {level = 15, cons = 35, vida = 1000},
["Beedrill"] = {level = 25, cons = 60, vida = 3000},
["Pidgey"] = {level = 1, cons = 20, vida = 700},
["Pidgeotto"] = {level = 20, cons = 50, vida = 1500},
["Pidgeot"] = {level = 80, cons = 100, vida = 6000},
["Rattata"] = {level = 1, cons = 10, vida = 400},
["Raticate"] = {level = 20, cons = 70, vida = 1700},
["Spearow"] = {level = 10, cons = 25, vida = 850},
["Fearow"] = {level = 50, cons = 80, vida = 4000},
["Ekans"] = {level = 15, cons = 30, vida = 1000},
["Arbok"] = {level = 35, cons = 90, vida = 4000},
["Pikachu"] = {level = 40, cons = 75, vida = 3500},
["Raichu"] = {level = 85, cons = 100, vida = 7000},
["Sandshrew"] = {level = 25, cons = 30, vida = 1000},
["Sandslash"] = {level = 65, cons = 95, vida = 4000},
["nidoranfe"] = {level = 10, cons = 25, vida = 1000},
["Nidorina"] = {level = 25, cons = 60, vida = 3000},
["Nidoqueen"] = {level = 65, cons = 90, vida = 6700},
["nidoranma"] = {level = 10, cons = 35, vida = 1000},
["Nidorino"] = {level = 25, cons = 65, vida = 3000},
["Nidoking"] = {level = 65, cons = 90, vida = 6700},
["Clefairy"] = {level = 40, cons = 60, vida = 4000},
["Clefable"] = {level = 65, cons = 100, vida = 6500},
["Vulpix"] = {level = 20, cons = 35, vida = 1000},
["Ninetales"] = {level = 65, cons = 70, vida = 6000},
["Jigglypuff"] = {level = 40, cons = 60, vida = 4000},
["Wigglytuff"] = {level = 65, cons = 100, vida = 6500},
["Zubat"] = {level = 5, cons = 15, vida = 800},
["Golbat"] = {level = 35, cons = 50, vida = 3000},
["Oddish"] = {level = 5, cons = 15, vida = 800},
["Gloom"] = {level = 25, cons = 50, vida = 2000},
["Vileplume"] = {level = 50, cons = 90, vida = 4500},
["Paras"] = {level = 5, cons = 15, vida = 750},
["Parasect"] = {level = 50, cons = 110, vida = 4000},
["Venonat"] = {level = 20, cons = 50, vida = 1300},
["Venomoth"] = {level = 50, cons = 80, vida = 4500},
["Diglett"] = {level = 10, cons = 45, vida = 1000},
["Dugtrio"] = {level = 35, cons = 80, vida = 3000},
["Meowth"] = {level = 15, cons = 50, vida = 1200},
["Persian"] = {level = 30, cons = 90, vida = 3000},
["Psyduck"] = {level = 20, cons = 50, vida = 1400},
["Golduck"] = {level = 55, cons = 150, vida = 13250},
["Mankey"] = {level = 15, cons = 60, vida = 1000},
["Primeape"] = {level = 50, cons = 100, vida = 4300},
["Growlithe"] = {level = 25, cons = 60, vida = 1400},
["Arcanine"] = {level = 80, cons = 130, vida = 8000},
["Poliwag"] = {level = 5, cons = 20, vida = 800},
["Poliwhirl"] = {level = 25, cons = 45, vida = 2500},
["Poliwrath"] = {level = 65, cons = 90, vida = 5500},
["Abra"] = {level = 15, cons = 25, vida = 1000},
["Kadabra"] = {level = 45, cons = 60, vida = 3300},
["Alakazam"] = {level = 80, cons = 95, vida = 7200},
["Machop"] = {level = 20, cons = 60, vida = 1000},
["Machoke"] = {level = 45, cons = 80, vida = 3500},
["Machamp"] = {level = 80, cons = 125, vida = 7000},
["Bellsprout"] = {level = 5, cons = 20, vida = 900},
["Weepinbell"] = {level = 25, cons = 50, vida = 1400},
["Victreebel"] = {level = 50, cons = 100, vida = 5000},
["Tentacool"] = {level = 15, cons = 50, vida = 1000},
["Tentacruel"] = {level = 80, cons = 120, vida = 6500},
["Geodude"] = {level = 15, cons = 60, vida = 1000},
["Graveler"] = {level = 40, cons = 85, vida = 3500},
["Golem"] = {level = 70, cons = 120, vida = 8000},
["Ponyta"] = {level = 20, cons = 40, vida = 1200},
["Rapidash"] = {level = 50, cons = 90, vida = 5000},
["Slowpoke"] = {level = 15, cons = 55, vida = 1000},
["Slowbro"] = {level = 45, cons = 70, vida = 4100},
["Magnemite"] = {level = 15, cons = 25, vida = 800},
["Magneton"] = {level = 75, cons = 100, vida = 4500},
["Farfetchd"] = {level = 45, cons = 80, vida = 4200},
["Doduo"] = {level = 15, cons = 40, vida = 1200},
["Dodrio"] = {level = 45, cons = 80, vida = 4000},
["Seel"] = {level = 20, cons = 50, vida = 1600},
["Dewgong"] = {level = 65, cons = 90, vida = 5000},
["Grimer"] = {level = 15, cons = 30, vida = 1000},
["Muk"] = {level = 80, cons = 130, vida = 7000},
["Shellder"] = {level = 10, cons = 30, vida = 1000},
["Cloyster"] = {level = 60, cons = 70, vida = 4500},
["Gastly"] = {level = 20, cons = 60, vida = 1300},
["Haunter"] = {level = 45, cons = 70, vida = 4000},
["Gengar"] = {level = 80, cons = 135, vida = 7200},
["Onix"] = {level = 50, cons = 90, vida = 5500},
["Drowzee"] = {level = 25, cons = 55, vida = 1400},
["Hypno"] = {level = 55, cons = 80, vida = 4200},
["Krabby"] = {level = 10, cons = 45, vida = 820},
["Kingler"] = {level = 40, cons = 60, vida = 4000},
["Voltorb"] = {level = 15, cons = 30, vida = 1100},
["Electrode"] = {level = 35, cons = 50, vida = 4000},
["Exeggcute"] = {level = 10, cons = 25, vida = 800},
["Exeggutor"] = {level = 80, cons = 130, vida = 7000},
["Cubone"] = {level = 20, cons = 35, vida = 1000},
["Marowak"] = {level = 55, cons = 70, vida = 5000},
["Hitmonlee"] = {level = 60, cons = 100, vida = 6500},
["Hitmonchan"] = {level = 60, cons = 100, vida = 6500},
["Lickitung"] = {level = 55, cons = 90, vida = 5500},
["Koffing"] = {level = 15, cons = 50, vida = 1000},
["Weezing"] = {level = 35, cons = 60, vida = 3500},
["Rhyhorn"] = {level = 30, cons = 60, vida = 1500},
["Rhydon"] = {level = 75, cons = 100, vida = 6500},
["Chansey"] = {level = 60, cons = 100, vida = 7000},
["Tangela"] = {level = 55, cons = 70, vida = 4000},
["Kangaskhan"] = {level = 80, cons = 130, vida = 8000},
["Horsea"] = {level = 10, cons = 20, vida = 800},
["Seadra"] = {level = 45, cons = 75, vida = 3600},
["Goldeen"] = {level = 10, cons = 30, vida = 830},
["Seaking"] = {level = 35, cons = 80, vida = 2800},
["Staryu"] = {level = 15, cons = 40, vida = 1300},
["Starmie"] = {level = 75, cons = 100, vida = 4500},
["MrMime"] = {level = 60, cons = 100, vida = 4300},
["Scyther"] = {level = 80, cons = 130, vida = 7000},
["Jynx"] = {level = 80, cons = 130, vida = 7000},
["Electabuzz"] = {level = 80, cons = 130, vida = 7000},
["Magmar"] = {level = 80, cons = 130, vida = 7000},
["Pinsir"] = {level = 45, cons = 70, vida = 4500},
["Tauros"] = {level = 45, cons = 70, vida = 4500},
["Magikarp"] = {level = 1, cons = 5, vida = 450},
["Mini Magikarp"] = {level = 1, cons = 5, vida = 250},
["Medio Magikarp"] = {level = 20, cons = 20, vida = 1500},
["Big Magikarp"] = {level = 40, cons = 50, vida = 3000},
["Mini Gyarados"] = {level = 40, cons = 70, vida = 4500},
["Gyarados"] = {level = 85, cons = 140, vida = 9000},
["Lapras"] = {level = 80, cons = 120, vida = 7000},
["Ditto"] = {level = 40, cons = 60, vida = 4000},
["Eevee"] = {level = 20, cons = 60, vida = 2000},
["Vaporeon"] = {level = 55, cons = 80, vida = 5300},
["Jolteon"] = {level = 55, cons = 80, vida = 5300},
["Flareon"] = {level = 55, cons = 80, vida = 5300},
["Porygon"] = {level = 45, cons = 80, vida = 4200},
["Omanyte"] = {level = 20, cons = 50, vida = 2500},
["Omastar"] = {level = 80, cons = 140, vida = 6000},
["Kabuto"] = {level = 20, cons = 70, vida = 2500},
["Kabutops"] = {level = 80, cons = 170, vida = 6000},
["Aerodactyl"] = {level = 100, cons = 240, vida = 15000},
["Snorlax"] = {level = 90, cons = 150, vida = 9000},
["Articuno"] = {level = 250, cons = 500, vida = 70000},
["Zapdos"] = {level = 250, cons = 500, vida = 70000},
["Moltres"] = {level = 250, cons = 500, vida = 70000},
["Dratini"] = {level = 20, cons = 40, vida = 2000},
["Dragonair"] = {level = 60, cons = 120, vida = 5500},
["Dragonite"] = {level = 100, cons = 200, vida = 10000},
["Mew"] = {level = 600, cons = 1000, vida = 400000},
["Mewtwo"] = {level = 700, cons = 1500, vida = 550000},
 
----------------------Shiny----------------------
["Crystal Onix"] = {level = 100, cons = 260, vida = 16500},
["Elder Charizard"] = {level = 100, cons = 280, vida = 25500},
["Shiny Magikarp"] = {level = 10, cons = 10, vida = 1350},
["Shiny Paras"] = {level = 20, cons = 30, vida = 2250},
["Shiny Oddish"] = {level = 20, cons = 30, vida = 2400},
["Shiny Tentacool"] = {level = 30, cons = 100, vida = 3000},
["Shiny Tentacruel"] = {level = 85, cons = 240, vida = 19500},
["Shiny Raticate"] = {level = 30, cons = 140, vida = 5100},
["Shiny Krabby"] = {level = 20, cons = 90, vida = 2460},
["Shiny Kingler"] = {level = 50, cons = 120, vida = 12000},
["Shiny Horsea"] = {level = 20, cons = 40, vida = 2400},
["Shiny Seadra"] = {level = 50, cons = 150, vida = 10800},
["Red Gyarados"] = {level = 100, cons = 380, vida = 27000},
["Shiny Parasect"] = {level = 60, cons = 220, vida = 12000},
["Shiny Scyther"] = {level = 100, cons = 260, vida = 21000},
["Shiny Electabuzz"] = {level = 100, cons = 260, vida = 21000},
["Shiny Jynx"] = {level = 100, cons = 260, vida = 21000},
["Shiny Electrode"] = {level = 65, cons = 100, vida = 12000},
["Shiny Voltorb"] = {level = 30, cons = 60, vida = 3300},
["Shiny Raichu"] = {level = 100, cons = 200, vida = 21000},
["Shiny Venomoth"] = {level = 75, cons = 160, vida = 13500},
["Shiny Venonat"] = {level = 30, cons = 100, vida = 3900},
["Shiny Beedrill"] = {level = 45, cons = 120, vida = 9000},
["Shiny Butterfree"] = {level = 45, cons = 130, vida = 9000},
["Shiny Venusaur"] = {level = 100, cons = 380, vida = 25500},
["Shiny Blastoise"] = {level = 100, cons = 390, vida = 25500},
["Elite Farfetchd"] = {level = 70, cons = 160, vida = 12600},
["Shiny Grimer"] = {level = 30, cons = 60, vida = 3000},
["Shiny Muk"] = {level = 100, cons = 260, vida = 21000},
["Shiny Growlithe"] = {level = 40, cons = 120, vida = 4200},
["Shiny Arcanine"] = {level = 100, cons = 260, vida = 24000},
["Shiny Dratini"] = {level = 40, cons = 80, vida = 6000},
["Dark Abra"] = {level = 100, cons = 190, vida = 21600},
["Elite Hitmonlee"] = {level = 100, cons = 200, vida = 19500},
["Elite Hitmonchan"] = {level = 100, cons = 200, vida = 19500},
["Shiny Rattata"] = {level = 10, cons = 20, vida = 1200},
["Shiny Zubat"] = {level = 30, cons = 30, vida = 2400},
["Shiny Golbat"] = {level = 60, cons = 100, vida = 9000},
["Shiny Gengar"] = {level = 100, cons = 270, vida = 21600},
["Shiny Big Magikarp"] = {level = 50, cons = 100, vida = 9000},
["Shiny Tangela"] = {level = 80, cons = 140, vida = 12000},
["Shiny Vaporeon"] = {level = 80, cons = 160, vida = 15900},
["Shiny Jolteon"] = {level = 80, cons = 160, vida = 15900},
["Shiny Flareon"] = {level = 80, cons = 160, vida = 15900},
["Shiny Dragonair"] = {level = 80, cons = 240, vida = 16500},
["Shiny Vileplume"] = {level = 80, cons = 180, vida = 13500},
["Shiny Golem"] = {level = 85, cons = 240, vida = 24000},
["Shiny Fearow"] = {level = 65, cons = 160, vida = 12000},
["Shiny Nidoking"] = {level = 85, cons = 180, vida = 20100},
["Shiny Hypno"] = {level = 70, cons = 160, vida = 12600},
["Shiny Cubone"] = {level = 40, cons = 70, vida = 3000},
["Shiny Marowak"] = {level = 65, cons = 140, vida = 15000},
["Shiny Alakazam"] = {level = 100, cons = 190, vida = 21600},
["Shiny Pidgeot"] = {level = 100, cons = 200, vida = 18000},
["Shiny Pinsir"] = {level = 70, cons = 140, vida = 13500},
["Shiny MrMime"] = {level = 85, cons = 200, vida = 12900},
["Shiny Ninetales"] = {level = 80, cons = 140, vida = 18000},
["Shiny Magneton"] = {level = 90, cons = 200, vida = 13500},
["Shiny Rhydon"] = {level = 100, cons = 200, vida = 19500},
["Shiny Dodrio"] = {level = 65, cons = 160, vida = 12000},
["Shiny Magmar"] = {level = 100, cons = 260, vida = 21000},
["Shiny Tauros"] = {level = 65, cons = 140, vida = 13500},
["Shiny Machamp"] = {level = 100, cons = 250, vida = 21000},
["Big Snorlax"] = {level = 150, cons = 300, vida = 27000},
 
----------------------------Johto----------------------------
["Aipom"] = {level = 40, cons = 50, vida = 4000},
["Ampharos"] = {level = 80, cons = 140, vida = 8500},
["Ariados"] = {level = 35, cons = 50, vida = 4000},
["Azumarill"] = {level = 65, cons = 70, vida = 6000},
["Bayleef"] = {level = 40, cons = 60, vida = 4350},
["Bellossom"] = {level = 50, cons = 70, vida = 5000},
["Blissey"] = {level = 100, cons = 200, vida = 10000},
["Celebi"] = {level = 600, cons = 800, vida = 550000},
["Chikorita"] = {level = 20, cons = 60, vida = 1500},
["Chinchou"] = {level = 15, cons = 40, vida = 1500},
["Cleffa"] = {level = 20, cons = 60, vida = 2000},
["Corsola"] = {level = 50, cons = 80, vida = 4500},
["Crobat"] = {level = 80, cons = 120, vida = 7500},
["Croconaw"] = {level = 40, cons = 60, vida = 4350},
["Cyndaquil"] = {level = 20, cons = 50, vida = 1500},
["Delibird"] = {level = 45, cons = 80, vida = 4500},
["Donphan"] = {level = 80, cons = 120, vida = 7000},
["Dunsparce"] = {level = 30, cons = 60, vida = 1600},
["Elekid"] = {level = 30, cons = 70, vida = 2300},
["Entei"] = {level = 280, cons = 500, vida = 100000},
["Espeon"] = {level = 55, cons = 80, vida = 5300},
["Feraligatr"] = {level = 85, cons = 130, vida = 8500},
["Flaaffy"] = {level = 40, cons = 85, vida = 4050},
["Forretress"] ={level = 65, cons = 70, vida = 6000},
["Furret"] = {level = 35, cons = 50, vida = 4000},
["Girafarig"] = {level = 80, cons = 90, vida = 7500},
["Gligar"] = {level = 40, cons = 65, vida = 3000},
["Granbull"] = {level = 65, cons = 70, vida = 6000},
["Heracross"] = {level = 80, cons = 100, vida = 8000},
["Hitmontop"] = {level = 60, cons = 100, vida = 6500},
["Ho oh"] = {level = 800, cons = 1500, vida = 500000},
["Hoothoot"] = {level = 20, cons = 50, vida = 1500},
["Hoppip"] = {level = 5, cons = 15, vida = 800},
["Houndoom"] = {level = 80, cons = 100, vida = 7300},
["Houndour"] = {level = 25, cons = 60, vida = 1500},
["Igglypuff"] = {level = 20, cons = 70, vida = 2000},
["Jumpluff"] = {level = 50, cons = 90, vida = 4000},
["Kingdra"] = {level = 100, cons = 140, vida = 9000},
["Lanturn"] = {level = 75, cons = 100, vida = 6000},
["Larvitar"] = {level = 20, cons = 70, vida = 2500},
["Ledian"] = {level = 35, cons = 60, vida = 4000},
["Ledyba"] = {level = 15, cons = 40, vida = 2000},
["Lugia"] = {level = 600, cons = 1000, vida = 165000},
["Magby"] = {level = 30, cons = 60, vida = 2300},
["Magcargo"] = {level = 75, cons = 100, vida = 5100},
["Mantine"] = {level = 80, cons = 130, vida = 8300},
["Mareep"] = {level = 20, cons = 70, vida = 1500},
["Marill"] = {level = 20, cons = 50, vida = 2500},
["Meganium"] ={level = 85, cons = 170, vida = 8500},
["Miltank"] = {level = 80, cons = 140, vida = 8600},
["Misdreavus"] = {level = 80, cons = 140, vida = 6500},
["Murkrow"] = {level = 55, cons = 70, vida = 5200},
["Natu"] = {level = 20, cons = 50, vida = 1300},
["Noctowl"] = {level = 65, cons = 70, vida = 6000},
["Octillery"] ={level = 70, cons = 80, vida = 7000},
["Phanpy"] = {level = 20, cons = 70, vida = 1300},
["Pichu"] = {level = 20, cons = 60, vida = 1500},
["Piloswine"] ={level = 80, cons = 140, vida = 7100},
["Pineco"] = {level = 10, cons = 50, vida = 1300},
["Politoed"] ={level = 65, cons = 80, vida = 6200},
["porygon2"] ={level = 75, cons = 140, vida = 6000},
["Pupitar"] = {level = 65, cons = 100, vida = 4500},
["Quagsire"] ={level = 65, cons = 75, vida = 6000},
["Quilava"] ={level = 40, cons = 60, vida = 4350},
["Qwilfish"] = {level = 55, cons = 80, vida = 4000},
["Raikou"] ={level = 270, cons = 500, vida = 100000},
["Remoraid"] = {level = 10, cons = 40, vida = 1000},
["Scizor"] = {level = 100, cons = 130, vida = 10000},
["Sentret"] = {level = 15, cons = 50, vida = 1200},
["Shuckle"] ={level = 30, cons = 50, vida = 3500},
["Skarmory"] ={level = 85, cons = 130, vida = 8000},
["Skiploom"] = {level = 25, cons = 40, vida = 3000},
["Slowking"] = {level = 100, cons = 155, vida = 9000},
["Slugma"] ={level = 15, cons = 60, vida = 1200},
["Smeargle Virgem"] = {level = 40, cons = 60, vida = 4000},
["Smeargle Tm 1"] = {level = 40, cons = 60, vida = 4000},
["Smeargle Tm 2"] = {level = 40, cons = 60, vida = 4000},
["Smeargle Tm 3"] = {level = 40, cons = 60, vida = 4000},
["Smeargle Tm 4"] = {level = 40, cons = 60, vida = 4000},
["Smeargle Tm 5"] = {level = 40, cons = 60, vida = 4000},
["Smeargle Tm 6"] = {level = 40, cons = 60, vida = 4000},
["Smeargle Tm 7"] = {level = 40, cons = 60, vida = 4000},
["Smoochum"] = {level = 30, cons = 80, vida = 2300},
["Sneasel"] = {level = 55, cons = 70, vida = 5000},
["Snubbull"] = {level = 20, cons = 50, vida = 2500},
["Spinarak"] ={level = 10, cons = 20, vida = 600},
["Stantler"] = {level = 55, cons = 70, vida = 6000},
["Steelix"] = {level = 100, cons = 150, vida = 10000},
["Sudowoodo"] ={level = 80, cons = 140, vida = 8500},
["Suicune"] = {level = 270, cons = 500, vida = 100000},
["Sunflora"] = {level = 40, cons = 60, vida = 4200},
["Sunkern"] = {level = 5, cons = 15, vida = 600},
["Swinub"] ={level = 15, cons = 50, vida = 1200},
["Teddiursa"] ={level = 30, cons = 50, vida = 3500},
["Togepi"] = {level = 5, cons = 80, vida = 2000},
["Togetic"] ={level = 65, cons = 80, vida = 5500},
["Totodile"] = {level = 20, cons = 70, vida = 1500},
["Typhlosion"] ={level = 85, cons = 140, vida = 8500},
["Tyranitar"] = {level = 90, cons = 150, vida = 9000},
["Tyrogue"] = {level = 30, cons = 90, vida = 2500},
["Umbreon"] ={level = 55, cons = 80, vida = 5300},
["Unown a"] = {level = 100, cons = 120, vida = 9000},
["Unown b"] = {level = 100, cons = 120, vida = 9000},
["Unown c"] = {level = 100, cons = 120, vida = 9000},
["Unown d"] = {level = 100, cons = 120, vida = 9000},
["Unown e"] = {level = 100, cons = 120, vida = 9000},
["Unown f"] = {level = 100, cons = 120, vida = 9000},
["Unown g"] = {level = 100, cons = 120, vida = 9000},
["Unown h"] = {level = 100, cons = 120, vida = 9000},
["Unown i"] = {level = 100, cons = 120, vida = 9000},
["Unown j"] = {level = 100, cons = 120, vida = 9000},
["Unown k"] = {level = 100, cons = 120, vida = 9000},
["Unown l"] = {level = 100, cons = 120, vida = 9000},
["Unown m"] = {level = 100, cons = 120, vida = 9000},
["Unown n"] = {level = 100, cons = 120, vida = 9000},
["Unown o"] = {level = 100, cons = 120, vida = 9000},
["Unown p"] = {level = 100, cons = 120, vida = 9000},
["Unown q"] = {level = 100, cons = 120, vida = 9000},
["Unown r"] = {level = 100, cons = 120, vida = 9000},
["Unown s"] ={level = 100, cons = 120, vida = 9000},
["Unown t"] = {level = 100, cons = 120, vida = 9000},
["Unown u"] = {level = 100, cons = 120, vida = 9000},
["Unown v"] = {level = 100, cons = 120, vida = 9000},
["Unown w"] = {level = 100, cons = 120, vida = 9000},
["Unown x"] ={level = 100, cons = 120, vida = 9000},
["Unown y"] = {level = 100, cons = 120, vida = 9000},
["Unown z"] = {level = 100, cons = 120, vida = 9000},
["Ursaring"] = {level = 90, cons = 170, vida = 9500},
["Wobbuffet"] = {level = 80, cons = 120, vida = 9000},
["Wooper"] = {level = 20, cons = 60, vida = 1200},
["Xatu"] = {level = 75, cons = 70, vida = 7300},
["Yanma"] = {level = 50, cons = 80, vida = 4400},
}
 
function onLogout(cid)
 if #getCreatureSummons(cid) >= 1 then
doPlayerSendCancel(cid, "Retorne seu pokemon para pokebola para logout.")
return false
end
if getPlayerStorageValue(cid, 888) >= 1 then
doPlayerSendCancel(cid, "You cant logout during control mind.")
return false
end
 
if getPlayerStorageValue(cid, 100) == 1 then
setPlayerStorageValue(cid, 100, 0)
end
 
if #getCreatureSummons(cid) == 1 then
if getPlayerStorageValue(cid, 61204) >= 1 and getPlayerStorageValue(cid, 63215) <= 0 and getPlayerStorageValue(cid, 62314) <= 0 then
local summom = getCreatureSummons(cid)
setPlayerStorageValue(cid, 61205, health)
setPlayerStorageValue(cid, 61206, maxhealth)
setPlayerStorageValue(cid, 61204, 0)
setPlayerStorageValue(cid, 61207, 1)
setPlayerStorageValue(cid, 1, 0)
 
if getPlayerGroupId(cid) == 8 then
setPlayerGroupId(cid, 1)
end
end
end
return TRUE
end
 
function onPrepareDeath(cid, deathList)
local owner = getCreatureMaster(cid)
if getPlayerSlotItem(owner, 8).itemid == 2220 or getPlayerSlotItem(owner, 8).itemid == 2221 then
doSendMagicEffect(getCreaturePosition(cid), 191)
elseif getPlayerSlotItem(owner, 8).itemid == 2651 or getPlayerSlotItem(owner, 8).itemid == 2652 then
doSendMagicEffect(getCreaturePosition(cid), 189)
elseif getPlayerSlotItem(owner, 8).itemid == 2653 or getPlayerSlotItem(owner, 8).itemid == 2654 then
doSendMagicEffect(getCreaturePosition(cid), 190)
elseif getPlayerSlotItem(owner, 8).itemid == 2655 or getPlayerSlotItem(owner, 8).itemid == 2656 then
doSendMagicEffect(getCreaturePosition(cid), 195)
elseif getPlayerSlotItem(owner, 8).itemid == 2222 or getPlayerSlotItem(owner, 8).itemid == 2223 then
doSendMagicEffect(getCreaturePosition(cid), 10)
end
doPlayerSendTextMessage(owner, 22, "Your pokemon fainted.")
if getPlayerSlotItem(owner, 8).itemid == 2220 or getPlayerSlotItem(owner, 8).itemid == 2221 then
doTransformItem(getPlayerSlotItem(owner, 8).uid, 2227)
elseif getPlayerSlotItem(owner, 8).itemid == 2222 or getPlayerSlotItem(owner, 8).itemid == 2223 then
doTransformItem(getPlayerSlotItem(owner, 8).uid, 2224)
elseif getPlayerSlotItem(owner, 8).itemid == 2651 or getPlayerSlotItem(owner, 8).itemid == 2652 then
doTransformItem(getPlayerSlotItem(owner, 8).uid, 2657)
elseif getPlayerSlotItem(owner, 8).itemid == 2653 or getPlayerSlotItem(owner, 8).itemid == 2654 then
doTransformItem(getPlayerSlotItem(owner, 8).uid, 2658)
elseif getPlayerSlotItem(owner, 8).itemid == 2655 or getPlayerSlotItem(owner, 8).itemid == 2656 then
doTransformItem(getPlayerSlotItem(owner, 8).uid, 2659)
end
local item = getPlayerSlotItem(owner, 8)
doItemSetAttribute(item.uid, "poke", getItemAttribute(item.uid, "poke"):sub(1, findLetter(getItemAttribute(item.uid, "poke"), ".")) .. " HP = [0/"..getCreatureMaxHealth(cid).."]")
setPlayerStorageValue(owner, 61207, 0)
setPlayerStorageValue(owner, 61204, 0)
if getPlayerGroupId(owner) == 8 then
setPlayerGroupId(owner, 1)
end
doRemoveCreature(cid)
return FALSE
end

 

 

 

Veja suas alterações de novo, você deixou faltando um ")" na parte do code ^^

Bom ja ta tudo certinho aqui :D agradeço :palmas:

                                                                             1535210279_tumblr_o9b6yoxM1Z1tco8kto1_500(3).gif.f527686e19da738322c39555244decac.gif

                                                             Meus tópicos         

                                                         Se ajudei você deixe seu Rep! para fortalecer a amizade ^^

                                                                              Vamos ajudar o fórum a crescer mais.

                                                                          1641206641_gif-escudo-fla-3d(1).gif.a5d3c0c24824d5272a181aa91c5eda0c.gif

                                                                                                Mengão porra! . .

                                                                     tumblr_oxm8eriUeU1sqwgnro2_400.gif.22e347b2fc58fdfd88dbf84f4bdaa1bc.gif

                                                                                ----- NPC que vende informação -----

                                                                           -----Baú Que dá Outfit se tiver Level -----

                                                                     ----- [Npc] Que vende Stones (itens) por diamonds -----

 

 

                                                                       

                       

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.

×
×
  • Criar Novo...

Informação Importante

Confirmação de Termo