Ir para conteúdo
  • 0

HELP ERRO NEW STONE EVOLUCAO


kamus9629

Pergunta

Boa noite pessoal por gentilesa voces poderia me ajudar eu estou adicionando nova stone So que o pokemon Nao esta evoluindo teria como me ajudar ?

 

Citar

Action.xml

Citar

<?xml version="1.0" encoding="UTF-8"?>
<actions>

<action itemid="360" event="script" value="event Rare coin.lua"/>
<action itemid="16177" event="script" value="Basic/Quests/BrotherhoodHunter.lua"/>
        <action itemid="1450" event="script" value="rarecandy.lua"/>
        <action actionid="2000" event="script" value="Boost stone quest.lua"/>
        <action actionid="2001" event="script" value="misquest/groudon.lua"/>
        <action actionid="2002" event="script" value="misquest/kyogre.lua"/>
        <action actionid="2003" event="script" value="misquest/rayquaza.lua"/>
        
        <!-- AbrirLoot / Autoloot -->
        <action actionid="13000" event="script" value="Basic/Quests/BrotherhoodHunter.lua"/>
        <action itemid="15130" event="script" value="bike.lua"/>
        <action itemid="15218" event="script" value="ranking.lua"/>
        <!-- BrotherhoodHunter -->
        <!-- <action itemid="11838-11988;12140;12420-12571;3267-3297;3553-3586;4422-4454;4568;4569;4756-4759;12743;12744;12582;12583;12595-12604" event="script" value="Basic/autoLoot.lua"/> -->


    <!-- Icon system -->

    <action itemid="11989" event="script" value="icons.lua"/>
    <action itemid="2589" event="script" value="iconsDP.lua"/>
    <action itemid="11826-11837" event="script" value="Basic/goback.lua"/>  <!-- alterado v1.9 -->


    <action itemid="13824-13825" event="script" value="Systema Movel/pack_Moveis.lua"/>

    <!-- Golden Arena -->
    <action actionid="65535" event="script" value="Quadro_Golden.lua"/>
    <action actionid="55356" event="script" value="Quadro_Golden_Rank.lua"/>
    <action itemid="6527" event="script" value="Meowth Coin.lua"/>


    <!-- Fishing System -->
        <action itemid="2580" event="script" value="Basic/pesca.lua" allowfaruse="1"/>
        <action itemid="10223" event="script" value="Basic/pesca.lua" allowfaruse="1"/>
        <action itemid="12853-12860;3976" event="script" value="Basic/pescaIscas.lua"/>


    <!-- Food -->
    <action itemid="2362;2666-2691" event="script" value="other/food.lua"/>
    <action fromid="2695" toid="2696" event="script" value="other/food.lua"/>
    <action fromid="2787" toid="2796" event="script" value="other/food.lua"/>
    <action itemid="5097" event="script" value="other/food.lua"/>
    <action itemid="6125" event="script" value="other/food.lua"/>
    <action itemid="6278" event="script" value="other/food.lua"/>
    <action itemid="6279" event="script" value="other/food.lua"/>
    <action itemid="6394" event="script" value="other/food.lua"/>
    <action itemid="6501" event="script" value="other/food.lua"/>
    <action fromid="6541" toid="6545" event="script" value="other/food.lua"/>
    <action itemid="6574" event="script" value="other/food.lua"/>
    <action itemid="7158" event="script" value="other/food.lua"/>
    <action itemid="7159" event="script" value="other/food.lua"/>
    <action fromid="7372" toid="7377" event="script" value="other/food.lua"/>
    <action itemid="7909" event="script" value="other/food.lua"/>
    <action fromid="8838" toid="8845" event="script" value="other/food.lua"/>
    <action itemid="8847" event="script" value="other/food.lua"/>
    <action itemid="12211;12213-12222" event="script" value="other/food.lua"/>

    <!-- Increase/Decrease ItemId -->
    <action itemid="461" event="function" value="increaseItemId"/>
    <action itemid="462" event="function" value="decreaseItemId"/>
    <action itemid="1873" event="function" value="increaseItemId"/>
    <action itemid="1874" event="function" value="decreaseItemId"/>
    <action itemid="1875" event="function" value="increaseItemId"/>
    <action itemid="1876" event="function" value="decreaseItemId"/>
    <action itemid="2162" event="function" value="increaseItemId"/>
    <action itemid="2163" event="function" value="decreaseItemId"/>
    <action itemid="3743" event="function" value="increaseItemId"/>
    <action itemid="3744" event="function" value="decreaseItemId"/>
    <action itemid="3947" event="function" value="increaseItemId"/>
    <action itemid="3948" event="function" value="decreaseItemId"/>
    <action itemid="1479" event="function" value="increaseItemId"/>
    <action itemid="1480" event="function" value="decreaseItemId"/>
    <action itemid="2037" event="function" value="increaseItemId"/>
    <action itemid="2038" event="function" value="decreaseItemId"/>
    <action itemid="2039" event="function" value="increaseItemId"/>
    <action itemid="2040" event="function" value="decreaseItemId"/>
    <action itemid="2058" event="function" value="increaseItemId"/>
    <action itemid="2059" event="function" value="decreaseItemId"/>
    <action itemid="2060" event="function" value="increaseItemId"/>
    <action itemid="2061" event="function" value="decreaseItemId"/>
    <action itemid="2066" event="function" value="increaseItemId"/>
    <action itemid="2067" event="function" value="decreaseItemId"/>
    <action itemid="2068" event="function" value="increaseItemId"/>
    <action itemid="2069" event="function" value="decreaseItemId"/>
    <action itemid="2064" event="function" value="increaseItemId"/>
    <action itemid="2065" event="function" value="decreaseItemId"/>
    <action itemid="2096" event="function" value="increaseItemId"/>
    <action itemid="2097" event="function" value="decreaseItemId"/>
    <action itemid="1786" event="function" value="increaseItemId"/>
    <action itemid="1787" event="function" value="decreaseItemId"/>
    <action itemid="1788" event="function" value="increaseItemId"/>
    <action itemid="1789" event="function" value="decreaseItemId"/>
    <action itemid="1790" event="function" value="increaseItemId"/>
    <action itemid="1791" event="function" value="decreaseItemId"/>
    <action itemid="1792" event="function" value="increaseItemId"/>
    <action itemid="1793" event="function" value="decreaseItemId"/>
    <action itemid="1634" event="function" value="increaseItemId"/>
    <action itemid="1635" event="function" value="decreaseItemId"/>
    <action itemid="1636" event="function" value="increaseItemId"/>
    <action itemid="1637" event="function" value="decreaseItemId"/>
    <action itemid="1638" event="function" value="increaseItemId"/>
    <action itemid="1639" event="function" value="decreaseItemId"/>
    <action itemid="1640" event="function" value="increaseItemId"/>
    <action itemid="1641" event="function" value="decreaseItemId"/>
    <action itemid="7058" event="function" value="increaseItemId"/>
    <action itemid="7059" event="function" value="decreaseItemId"/>
    <action itemid="8684" event="function" value="increaseItemId"/>
    <action itemid="8685" event="function" value="decreaseItemId"/>
    <action itemid="8686" event="function" value="increaseItemId"/>
    <action itemid="8687" event="function" value="decreaseItemId"/>
    <action itemid="8688" event="function" value="increaseItemId"/>
    <action itemid="8689" event="function" value="decreaseItemId"/>
    <action itemid="8690" event="function" value="increaseItemId"/>
    <action itemid="8691" event="function" value="decreaseItemId"/>
    <action itemid="9575" event="function" value="increaseItemId"/>
    <action itemid="9576" event="function" value="decreaseItemId"/>
    <action itemid="9577" event="function" value="increaseItemId"/>
    <action itemid="9578" event="function" value="decreaseItemId"/>
    <action itemid="9579" event="function" value="increaseItemId"/>
    <action itemid="9580" event="function" value="decreaseItemId"/>
    <action itemid="9581" event="function" value="increaseItemId"/>
    <action itemid="9582" event="function" value="decreaseItemId"/>
    <action itemid="9624" event="function" value="increaseItemId"/>
    <action itemid="9625" event="function" value="decreaseItemId"/>
    <action itemid="9747" event="function" value="increaseItemId"/>
    <action itemid="9748" event="function" value="decreaseItemId"/>
    <action itemid="9749" event="function" value="increaseItemId"/>
    <action itemid="9750" event="function" value="decreaseItemId"/>
    <action itemid="9825" event="function" value="increaseItemId"/>
    <action itemid="9826" event="function" value="decreaseItemId"/>
    <action itemid="9827" event="function" value="increaseItemId"/>
    <action itemid="9828" event="function" value="decreaseItemId"/>
    <action itemid="9973" event="function" value="increaseItemId"/>
    <action itemid="9974" event="function" value="decreaseItemId"/>
    <action itemid="10044" event="function" value="increaseItemId"/>
    <action itemid="10045" event="function" value="decreaseItemId"/>

    <!-- Spellbooks -->
    <action itemid="2175" event="script" value="other/spellbook.lua"/>
    <action itemid="6120" event="script" value="other/spellbook.lua"/>
    <action fromid="8900" toid="8904" event="script" value="other/spellbook.lua"/>
    <action itemid="8918" event="script" value="other/spellbook.lua"/>

    <!-- Change gold -->
    <action itemid="2148;2152;2160;12416;17105" event="script" value="other/changegold.lua"/>

    <!-- Construction kits -->
    <action fromid="5086" toid="5088" event="script" value="other/constructionkits.lua"/>
    <action fromid="6114" toid="6115" event="script" value="other/constructionkits.lua"/>
    <action fromid="6372" toid="6373" event="script" value="other/constructionkits.lua"/>
    <action fromid="7960" toid="7962" event="script" value="other/constructionkits.lua"/>
    <action fromid="8692" toid="8693" event="script" value="other/constructionkits.lua"/>
<!--    <action uniqueid="35411" event="script" value="other/constructionhat.lua"/> -->
    <action itemid="7503" event="script" value="other/constructionkits.lua"/>
    <action itemid="7700" event="script" value="other/constructionkits.lua"/>

    <!-- Bed construction kits -->
    <action fromid="7904" toid="7907" event="script" value="other/furniturebeds.lua"/>

    <!-- Music, instruments -->
    <action fromid="2070" toid="2085" event="script" value="other/music.lua"/>
    <action itemid="2095" event="script" value="other/music.lua"/>
    <action itemid="2332" event="script" value="other/music.lua"/>
    <action itemid="2364" event="script" value="other/music.lua"/>
    <action fromid="2367" toid="2374" event="script" value="other/music.lua"/>
    <action fromid="3951" toid="3953" event="script" value="other/music.lua"/>
    <action itemid="3957" event="script" value="other/music.lua"/>
    <action itemid="5786" event="script" value="other/music.lua"/>
    <action itemid="6572" event="script" value="other/music.lua"/>

    <!-- Teleport (stairs, ladders) -->
    <action itemid="430" event="script" value="other/teleport.lua"/>
    <action itemid="1368" event="script" value="other/teleport.lua"/>
    <action itemid="1369" event="script" value="other/teleport.lua"/>
    <action itemid="1386" event="script" value="other/teleport.lua"/>
    <action itemid="3678" event="script" value="other/teleport.lua"/>
    <action itemid="5543" event="script" value="other/teleport.lua"/>
    <action itemid="8580" event="script" value="other/teleport.lua"/>
    <action itemid="8599" event="script" value="other/teleport.lua"/>
    <action itemid="10035" event="script" value="other/teleport.lua"/>

    <!-- Bread Creating -->
    <action itemid="2692" event="script" value="other/createbread.lua"/>
    <action itemid="2694" event="script" value="other/createbread.lua"/>

    <!-- Windows -->
    <action fromid="5303" toid="5305" event="script" value="other/windows.lua"/>
    <action fromid="6436" toid="6473" event="script" value="other/windows.lua"/>
    <action fromid="6788" toid="6791" event="script" value="other/windows.lua"/>
    <action fromid="7025" toid="7032" event="script" value="other/windows.lua"/>
    <action fromid="10264" toid="10267" event="script" value="other/windows.lua"/>
    <action fromid="10488" toid="10491" event="script" value="other/windows.lua"/>


    <!-- Other -->
    <action itemid="2114" event="script" value="other/piggybank.lua"/>
    <action fromid="6570" toid="6571" event="script" value="other/surprisebag.lua"/>
    <action fromid="5792" toid="5797" event="script" value="other/dice.lua"/>
    <action itemid="6576" event="script" value="other/fireworksrocket.lua"/>
    <action itemid="6578" event="script" value="other/partyhat.lua"/>
    <action itemid="2785" event="script" value="other/blueberrybush.lua"/>
    <action itemid="2579" event="script" value="other/trap.lua"/>

    <action itemid="5791" event="script" value="other/stuffeddragon.lua"/>
    <action itemid="6566" event="script" value="other/stuffeddragon.lua"/>

-- POTIONS / ANTIDOTE
    <action itemid="1456;1451;384;385;392;667;668;669;670;671;672;673;674;717;718;721;811;812;" event="script" value="potion.lua" allowfaruse="1" blockwalls="1"/>
    <action itemid="12349" event="script" value="medicine.lua" allowfaruse="1" blockwalls="1"/>
    <action itemid="12344" event="script" value="revive.lua" allowfaruse="1" blockwalls="1"/>

-- BOXES (poke inicial)
    <action actionid="1740" event="script" value="starter.lua"/>

-- POKEMON PRIZE BOXES / RARE CANDY
    <action itemid="11638-11641;12581" event="script" value="box.lua"/>
    <action itemid="12331" event="script" value="box.lua"/>
    <action itemid="12227" event="script" value="box.lua"/>
    <action itemid="12339" event="script" value="box_boosted.lua"/>
    <action itemid="12338" event="script" value="bag box.lua"/>
    <action itemid="14188" event="script" value="Mega box.lua"/>


-- POKEDEX
    <action itemid="2382" event="script" value="pokedex.lua" allowfaruse="1" blockwalls="1"/>
    <action itemid="7385" event="script" value="pokeinfo.lua"/>

-- LOJA DE ROUPAS
    <action itemid="3896;3897;3867;3868" event="script" value="roupas.lua"/>

-- GO/BACK E CATCH

    <action itemid="2391-2394;12617;12832;15672-15682" event="script" value="catch.lua" allowfaruse="1"/>                   <!-- alterado v1.9 -->

-- CASSINO
    <action itemid="2547" event="script" value="coincase.lua"/>
    <action itemid="11421" event="script" value="slotmachine.lua"/>

-- TV / CAM
    <action itemid="15312-15314" event="script" value="Basic/camera.lua"/>
    <action itemid="12330" event="script" value="Basic/camera.lua"/>

-- PC
    <action itemid="11462-11469" event="script" value="computer.lua"/>

-- BOOST MACHINE
    <action itemid="12352-12357" event="script" value="boost.lua"/>

-- ORDER
    <action itemid="2550" event="script" value="Basic/order.lua" allowfaruse="1" blockwalls="0"/>

-- PEDRAS DE EVO
    <action itemid="352" event="script" value="evolution.lua" allowfaruse="1"/>

  </actions>
 

 

Citar

evolution

Citar

local special = specialevo                  --alterado v1.9 \/ peguem ele todo!

local types = {
[leaf] = {"Bulbasaur", "Ivysaur", "Oddish", "Gloom", "Bellsprout", "Weepinbell", "Exeggcute", "Chikorita", "Bayleef", "Hoppip", "Skiploom", "Sunkern"},
[water] = {"Squirtle", "Wartortle", "Horsea", "Goldeen", "Magikarp", "Psyduck", "Poliwag", "Poliwhirl", "Tentacool", "Krabby", "Staryu", "Omanyte", "Eevee", "Totodile", "Croconow", "Chinchou", "Marill", "Wooper", "Slowpoke", "Remoraid", "Seadra"},
[venom] = {"Zubat", "Ekans", "Nidoran male", "Nidoran female", "Nidorino", "Nidorina", "Gloom", "Venonat", "Tentacool", "Grimer", "Koffing", "Spinarak", "Golbat"},
[thunder] = {"Magnemite", "Pikachu", "Voltorb", "Eevee", "Chinchou", "Pichu", "Mareep", "Flaaffy", "Elekid"},
[rock] = {"Geodude", "Graveler", "Rhyhorn", "Kabuto", "Slugma", "Pupitar"},
[punch] = {"Machop", "Machoke", "Mankey", "Poliwhirl", "Tyrogue"},
[fire] = {"Charmander", "Charmeleon", "Vulpix", "Growlithe", "Ponyta", "Eevee", "Cyndaquil", "Quilava", "Slugma", "Houndour", "Magby"},
[coccon] = {"Caterpie", "Metapod", "Weedle", "Kakuna", "Paras", "Venonat", "Scyther", "Ledyba", "Spinarak", "Pineco"},
[crystal] = {"Dratini", "Dragonair", "Magikarp", "Omanyte", "Kabuto", "Seadra"},
[dark] = {"Gastly", "Haunter", "Eevee", "Houndour", "Pupitar"},
[earth] = {"Cubone", "Sandshrew", "Nidorino", "Nidorina", "Diglett", "Onix", "Rhyhorn", "Wooper", "Swinub", "Phanpy", "Larvitar"},
[enigma] = {"Abra", "Kadabra", "Psyduck", "Slowpoke", "Drowzee", "Eevee", "Natu", "Smoochum"},
[heart] = {"Rattata", "Pidgey", "Pidgeotto", "Spearow", "Clefairy", "Jigglypuff", "Meowth", "Doduo", "Porygon", "Chansey", "Sentret", "Hoothoot", "Cleffa", "Igglybuff", "Togepi", "Snubull", "Teddiursa"},
[ice] = {"Seel", "Shellder", "Smoochum", "Swinub"},
[metal] = {"Onix", "Scyther"},
[ancient] = {"Sunkern", "Gloom", "Slowpoke", "Poliwhirl", "Seadra", "Porygon"},
[sfire] = {"Shiny Charmander", "Shiny Charmeleon", "Shiny Magmortar", "Shiny Vulpix", "Shiny Growlithe", "Shiny Ponyta", "Shiny Eevee"},
[swater] = {"Shiny Squirtle", "Shiny Wartortle", "Shiny Horsea", "Shiny Goldeen", "Shiny Magikarp", "Shiny Psyduck", "Shiny Poliwag", "Shiny Poliwhirl", "Shiny Tentacool", "Shiny Krabby", "Shiny Staryu", "Shiny Omanyte", "Shiny Eevee"},
[sleaf] = {"Shiny Bulbasaur", "Shiny Ivysaur", "Shiny Oddish", "Shiny Gloom", "Shiny Bellsprout", "Shiny Weepinbell", "Shiny Exeggcute"},
[sheart] = {"Shiny Rattata", "Shiny Pidgey", "Shiny Pidgeotto", "Shiny Spearow", "Shiny Clefairy", "Shiny Jigglypuff", "Shiny Meowth", "Shiny Doduo", "Shiny Porygon", "Shiny Chansey"},
[senigma] = {"Shiny Abra", "Shiny Kadabra", "Shiny Psyduck", "Shiny Slowpoke", "Shiny Drowzee", "Shiny Eevee"},
[srock] = {"Shiny Geodude", "Shiny Graveler", "Shiny Rhyhorn", "Shiny Kabuto"},
[svenom] = {"Shiny Zubat", "Shiny Ekans", "Shiny Nidoran male", "Shiny Nidoran female", "Shiny Nidorino", "Shiny Nidorina", "Shiny Gloom", "Shiny Venonat", "Shiny Tentacool", "Shiny Grimer", "Shiny Koffing"},
[sice] = {"Shiny Seel", "Shiny Shellder"},
[sthunder] = {"Shiny Magnemite", "Shiny Pikachu", "Shiny electivire", "Shiny Voltorb", "Shiny Eevee"},
[scrystal] = {"Shiny Dratini", "Shiny Dragonair", "Shiny Magikarp", "Shiny Omanyte", "Shiny Kabuto"},
[scoccon] = {"Shiny Caterpie", "Shiny Metapod", "Shiny Weedle", "Shiny Kakuna", "Shiny Paras", "Shiny Venonat", "Shiny Scyther"},
[sdarkness] = {"Shiny Gastly", "Shiny Haunter", "Shiny Eevee"},
[spunch] = {"Shiny Machop", "Shiny Machoke", "Shiny Mankey", "Shiny Poliwhirl"},
[digiev] = {"Agumon[5/5]", "Greymon[5/5]", "Metal Greymon[5/5]"},
[searth] = {"Shiny Cubone", "Shiny Sandshrew", "Shiny Nidorino", "Shiny Nidorina", "Shiny Diglett", "Shiny Onix", "Shiny Rhyhorn"}

}

local specEvos = {   --alterado v1.9 \/
["Eevee"] = {
               [thunder] = "Jolteon",
               [water] = "Vaporeon",
               [fire] = "Flareon",
               [enigma] = "Espeon",
               [dark] = "Umbreon",
               [ice] = "Glaceon",
               [leaf] = "Leafeon",
               [heart] = "Sylveon",
            },
}

function onUse(cid, item, frompos, item2, topos)

local pokeball = getPlayerSlotItem(cid, 8)

if not isMonster(item2.uid) or not isSummon(item2.uid) then
   return true
end
if #getCreatureSummons(cid) > 1 then
   return true                           --alterado v1.9
end

if isInArray({"ditto", "shiny ditto"}, getItemAttribute(pokeball.uid, "poke"):lower()) then
   doSendMsg(cid, "Ditto não tem evolução.")
   return true
end

if getCreatureCondition(item2.uid, CONDITION_INVISIBLE) then return true end

local pevo = poevo[getCreatureName(item2.uid)]

if not isInArray(specialevo, getCreatureName(item2.uid)) then
   if not pevo then
      doPlayerSendCancel(cid, "This pokemon can't evolve.")
      return true
   end
   if not isPlayer(getCreatureMaster(item2.uid)) or getCreatureMaster(item2.uid) ~= cid then
      doPlayerSendCancel(cid, "You can only use stones on pokemons you own.")
      return true
   end
   if pevo.stoneid ~= item.itemid and pevo.stoneid2 ~= item.itemid then 
      doPlayerSendCancel(cid, "This isn't the needed stone to evolve this pokemon.")
      return true
   end
end

local minlevel = 0

if getPokemonName(item2.uid) == "Eevee" then
   local eevee = specEvos["Eevee"][item.itemid]
   if not eevee then
      doPlayerSendCancel(cid, "This isn't the required stone to evolve this pokemon.")
      return true
   end   

   minlevel = pokes[eevee].level
local pb = getPlayerSlotItem(cid, 8)
local levelon = getItemAttribute(pb.uid, "level")
   if levelon < minlevel then
      doPlayerSendCancel(cid, "You don't have enough level to evolve this pokemon ("..minlevel..").")
      return true
   end

   doRemoveItem(item.uid, 1)
   doEvolvePokemon(cid, item2, eevee, 0, 0)
           local ball = getPlayerSlotItem(cid, 8).uid
              doItemEraseAttribute(ball, "boost")    

   return true
end

if isInArray(specialevo, getPokemonName(item2.uid)) then
   if getPokemonName(item2.uid) == "Poliwhirl" then
      local evolution = 0
      local theevo = ""
      
      if item.itemid == water then
         if getPlayerItemCount(cid, king) >= 1 then
            evolution = king
            theevo = "Politoed"
         elseif getPlayerItemCount(cid, punch) >= 1 then
            evolution = punch
            theevo = "Poliwrath"
         else
            doPlayerSendCancel(cid, "You need a water stone and a punch stone (Poliwrath) or a King's Rock (Politoed) to evolve this pokemon.")
            return true
         end
         
         minlevel = pokes[theevo].level
         local pb = getPlayerSlotItem(cid, 8)
local levelon = getItemAttribute(pb.uid, "level")
         if levelon < minlevel then
            doPlayerSendCancel(cid, "You don't have enough level to evolve this pokemon ("..minlevel..").")
            return true
         end
         if getPlayerItemCount(cid, punch) >= 1 and getPlayerItemCount(cid, king) >= 1 then
            doPlayerSendCancel(cid, "Please, use your Punch Stone to evolve this pokemon to a Poliwrath, or a King's Rock to a Politoed.")
            return true
         end
         doEvolvePokemon(cid, item2, theevo, evolution, water)
           local ball = getPlayerSlotItem(cid, 8).uid
              doItemEraseAttribute(ball, "boost")    
              doTransformItem(ball, pokeballs[theevo:lower()].use)

      elseif item.itemid == punch then
         minlevel = pokes["Poliwrath"].level
         local pb = getPlayerSlotItem(cid, 8)
local levelon = getItemAttribute(pb.uid, "level")
         if levelon < minlevel then
            doPlayerSendCancel(cid, "You don't have enough level to evolve this pokemon ("..minlevel..").")
            return true
         end
         if getPlayerItemCount(cid, water) <= 0 then
            doPlayerSendCancel(cid, "You need at least one Punch Stone and one Water Stone to evolve this pokemon.")
            return true
         end

         local theevo = "Poliwrath"
         doEvolvePokemon(cid, item2, theevo, water, punch)
           local ball = getPlayerSlotItem(cid, 8).uid
              doItemEraseAttribute(ball, "boost")    
              doItemSetAttribute(ball, "morta", "no")
              doItemSetAttribute(ball, "Icone", "yes")    
              doTransformItem(ball, pokeballs[theevo:lower()].use)
    
      elseif item.itemid == king then
         minlevel = pokes["Politoed"].level
               local pb = getPlayerSlotItem(cid, 8)
local levelon = getItemAttribute(pb.uid, "level")
         if levelon < minlevel then
            doPlayerSendCancel(cid, "You don't have enough level to evolve this pokemon ("..minlevel..").")
            return true
         end
         if getPlayerItemCount(cid, water) <= 0 then
            doPlayerSendCancel(cid, "You need at least one Punch Stone and one King's Rock to evolve this pokemon.")
            return true
         end
         local theevo = "Politoed"
         doEvolvePokemon(cid, item2, theevo, water, king)
           local ball = getPlayerSlotItem(cid, 8).uid
              doItemEraseAttribute(ball, "boost")    

      end

    elseif getPokemonName(item2.uid) == "Gloom" then
       local theevo = ""
       local evolution = 0
       if item.itemid == leaf then
          if getPlayerItemCount(cid, leaf) >= 1 then
             theevo = "Vileplume"
             evolution = leaf
          elseif getPlayerItemCount(cid, sun) >= 1 then
             theevo = "Bellossom"
             evolution = sun
          else
             doPlayerSendCancel(cid, "You need at least one Leaf Stone, and a Sun Stone (Bellossom) or a 2 Leaf Stone (Vileplume) to evolve this pokemon.")
             return true
          end
          
          minlevel = pokes[theevo].level
                   local pb = getPlayerSlotItem(cid, 8)
local levelon = getItemAttribute(pb.uid, "level")
      
          if levelon < minlevel then
             doPlayerSendCancel(cid, "You don't have enough level to evolve this pokemon ("..minlevel..").")
             return true
          end
          if getPlayerItemCount(cid, venom) >= 1 and getPlayerItemCount(cid, sun) >= 1 then
             doPlayerSendCancel(cid, "Please, use your Leaf Stone to evolve this pokemon to a Vileplume, or a Sun Stone to a Bellossom.")
             return true
          end
          
          doEvolvePokemon(cid, item2, theevo, evolution, leaf)
           local ball = getPlayerSlotItem(cid, 8).uid
              doItemEraseAttribute(ball, "boost")    


       elseif item.itemid == leaf then
          minlevel = pokes["Vileplume"].level
local pb = getPlayerSlotItem(cid, 8)
local levelon = getItemAttribute(pb.uid, "level")
          if levelon < minlevel then
             doPlayerSendCancel(cid, "You don't have enough level to evolve this pokemon ("..minlevel..").")
             return true
          end
          if getPlayerItemCount(cid, leaf) <= 0 then
             doPlayerSendCancel(cid, "You need at least 2 Leaf Stones to evolve this pokemon.")
             return true
          end
          doEvolvePokemon(cid, item2, "Vileplume", leaf, leaf)
           local ball = getPlayerSlotItem(cid, 8).uid
              doItemEraseAttribute(ball, "boost")    

          
       elseif item.itemid == sun then
          minlevel = pokes["Bellossom"].level
local pb = getPlayerSlotItem(cid, 8)
local levelon = getItemAttribute(pb.uid, "level")
          if levelon < minlevel then
             doPlayerSendCancel(cid, "You don't have enough level to evolve this pokemon ("..minlevel..").")
             return true
          end
          if getPlayerItemCount(cid, leaf) <= 0 then
             doPlayerSendCancel(cid, "You need at least one Leaf Stone and one Sun Stone to evolve this pokemon.")
             return true
          end
           doEvolvePokemon(cid, item2, "Bellossom", sun, leaf)
           local ball = getPlayerSlotItem(cid, 8).uid
              doItemEraseAttribute(ball, "boost")    

       end
       
    elseif getPokemonName(item2.uid) == "Slowpoke" then
       if item.itemid == enigma then
          minlevel = pokes["Slowbro"].level
local pb = getPlayerSlotItem(cid, 8)
local levelon = getItemAttribute(pb.uid, "level")
          if levelon < minlevel then
             doPlayerSendCancel(cid, "You don't have enough level to evolve this pokemon ("..minlevel..").")
             return true
          end
          doEvolvePokemon(cid, item2, "Slowbro", enigma, 0)
           local ball = getPlayerSlotItem(cid, 8).uid
              doItemEraseAttribute(ball, "boost")    

        elseif item.itemid == king then
          minlevel = pokes["Slowking"].level
local pb = getPlayerSlotItem(cid, 8)
local levelon = getItemAttribute(pb.uid, "level")
          if levelon < minlevel then
             doPlayerSendCancel(cid, "You don't have enough level to evolve this pokemon ("..minlevel..").")
             return true
          end
          doEvolvePokemon(cid, item2, "Slowking", king, 0)
           local ball = getPlayerSlotItem(cid, 8).uid
              doItemEraseAttribute(ball, "boost")    
        end

    elseif getPokemonName(item2.uid) == "Tyrogue" then
        local evolution = ""

        evolution = choose("Hitmonlee", "Hitmonchan", "Hitmontop")
        minlevel = pokes[evolution].level
local pb = getPlayerSlotItem(cid, 8)
local levelon = getItemAttribute(pb.uid, "level")

        if levelon < minlevel then
           doPlayerSendCancel(cid, "You don't have enough level to evolve this pokemon ("..minlevel..").")
           return true
        end
        doEvolvePokemon(cid, item2, evolution, punch, 0)
           local ball = getPlayerSlotItem(cid, 8).uid
              doItemEraseAttribute(ball, "boost")    
    end
return true
end

local count = poevo[getPokemonName(item2.uid)].count
local stnid = poevo[getPokemonName(item2.uid)].stoneid
local stnid2 = poevo[getPokemonName(item2.uid)].stoneid2
local evo = poevo[getPokemonName(item2.uid)].evolution

    if not pokes[evo] then
       doSendMsg(cid, "Este pokemon nao existe.")
       print(">>>>>>EVO BUG: " .. evo)
       return true
    end

if stnid2 > 1 and (getPlayerItemCount(cid, stnid2) < count or getPlayerItemCount(cid, stnid) < count) then
   doPlayerSendCancel(cid, "You need at least one "..getItemNameById(stnid).." and one "..getItemNameById(stnid2).." to evolve this pokemon!")
   return true
end

if getPlayerItemCount(cid, stnid) < count then
   local str = ""
   if count >= 2 then
      str = "s"
   end
return doPlayerSendCancel(cid, "You need at least "..count.." "..getItemNameById(stnid)..""..str.." to evolve this pokemon!")
end

minlevel = pokes[evo].level

         local poke = getCreatureSummons(cid)[1] 
         local pb = getPlayerSlotItem(cid, 8)
local levelon = getItemAttribute(pb.uid, "level")

if levelon < minlevel then
   doPlayerSendCancel(cid, "El pokemon no tiene el nivel necesario ("..minlevel..").")
   return true
end

if count >= 2 then
   stnid2 = stnid
end

              doEvolvePokemon(cid, item2, evo, stnid, stnid2)
              local ball = getPlayerSlotItem(cid, 8).uid
              doItemEraseAttribute(ball, "boost")    

return TRUE
end

 

Citar

configuration.lua

Citar

useOTClient = true  -- coloque false caso n for usar o OTClient!!!  --alterado v1.7

useKpdoDlls = true -- coloque true pra usar as barras de cooldown.
intervalToRegrowBushAndStones = 15 -- this also affects dig (in seconds) / isso afeta dig também (em segundos)
nurseHealsOnlyInPZ = false -- true = precisa estar em pz pra falar com a nurse
accountManagerOutfit = {lookType = 304, lookHead = 1, lookBody = 1, lookLegs = 1, lookFeet = 1}
accountManagerRandomPokemonOutfit = true -- se true, quando o acc manager logar, vai ter uma outfit de pokemon aleatoria
reloadHighscoresWhenUsingPc = true -- talvez dê lag, lembrando que tem uma opção no config.lua que indica o intervalo do update das highscores
backupPos = {x = 4, y = 3, z = 10} -- alguma pos para criar monstros quando tentar sair do fly/ride/surf em lugares que não são muito espaçosos
nurseHealsPokemonOut = true
maximumBoost = 50
boost_rate = 3.5
catchMakesPokemonHappier = true
dittoCopiesStatusToo = true
dittoBonus = 0.8
hideSummonsLevel = false
hideWildsLevel = false
wildBeforeNames = false
hideBoost = false                                                         
showBoostSeparated = true
canFishWhileSurfingOrFlying = false
allEvolutionsCanBeInduzedByStone = true
evolutionByStoneRequireLevel = true
PlayerSpeed = 320
attackRate = 0.5
specialoffenseRate = 3.55
levelFactor = 1
defenseRate = 1
playerDamageReduction = 0.30
summonReduction = 0.5
generalSpecialAttackReduction = 1
summonSpecialDamageReduction = 0
vitReductionForWild = 1    -- 1 means that nothing will change, 0.5 means that wild pokemon hp will drop by half
speedRate = 1
wildEvolveChance = 1000
pokemonExpPerLevelRate = 0
baseExpRate = 10
generalExpRate = 10
HPperVITwild = 14
HPperVITsummon = 7
baseNurseryHappiness = 500
baseNurseryHunger = -1
minHappyToEvolve = 0
maxHappyToEvolve = 500
happyLostOnDeath = 0
happyGainedOnEvolution = 500
happinessRate = {
[5] = {rate = 1.5, effect = 183, n = getConfigValue(PokemonStageVeryHappy)},
[4] = {rate = 1.2, effect = 170, n = getConfigValue(PokemonStageHappy)},
[3] = {rate = 1.0, effect = 182, n = getConfigValue(PokemonStageOK)},
[2] = {rate = 0.7, effect = 169, n = getConfigValue(PokemonStageSad)},
[1] = {rate = 0.4, effect = 168, n = getConfigValue(PokemonStageMad)}}

specialabilities = {
["rock smash"] = {"Shiny Magcargo", "Shiny Sandslash", "Shiny Rhydon", "Nidoking", "Nidoqueen", "Dragonite", "Salamence", "Shiny Salamence", "Sandshrew", "Sandslash", "Diglett", "Dugtrio", "Primeape", "Machop", "Machoke", "Machamp", "Geodude", "Graveler", "Golem" , "Onix", "Cubone", "Marowak", "Rhyhorn", "Rhydon", "Kangaskhan", "Tauros", "Snorlax", "Poliwrath", "Hitmonlee", "Hitmonchan", "Aerodactyl", "Blastoise","Shiny Nidoking", "Shiny Dragonite", "Shiny Golem", "Shiny Onix", "Shiny Cubone", "Shiny Marowak", "Shiny Snorlax", "Shiny Hitmonlee", "Shiny Hitmontop", "Shiny Hitmonchan", "Shiny Blastoise", "Typhlosion", "Feraligatr", "Furret", "Ledian", "Ampharos", "Politoed", "Quagsire", "Forretress", "Steelix", "Snubbull", "Granbull", "Sudowoodo", "Gligar", "Scizor", "Heracross", "Sneasel", "Ursaring", "Teddiursa", "Slugma", "Magcargo", "Piloswine", "Swinub", "Corsola", "Phanpy", "Donphan", "Tyrogue", "Hitmontop", "Miltank", "Blissey", "Tyranitar", "Pupitar"},
["cut"] = {"Shiny Magcargo", "Shiny Crobat", "Shiny Weezing", "Shiny Sandslash", "Kabutops", "Raticate", "Bulbasaur", "Ivysaur", "Venusaur", "Charmeleon", "Charizard", "Sandshrew", "Sandslash", "Gloom", "Vileplume", "Paras", "Parasect", "Meowth", "Persian", "Bellsprout", "Weepinbell", "Victreebel", "Farfetch'd", "Krabby", "Kingler", "Exeggutor", "Tropius", "Cubone", "Marowak", "Tangela", "Scyther", "Pinsir", "Shiny Raticate", "Shiny Venusaur", "Shiny Charizard", "Shiny Vileplume", "Shiny Paras", "Shiny Parasect", "Shiny Farfetch'd", "Shiny Krabby", "Shiny Kingler", "Shiny Cubone", "Shiny Marowak", "Shiny Tangela", "Shiny Scyther", "Shiny Pinsir", "Chikorita", "Bayleef", "Meganium", "Croconow", "Feraligatr", "Furret", "Bellossom", "Hoppip", "Skiploom", "Jumpluff", "Sunkern", "Sunflora", "Scizor", "Heracross", "Sneasel", "Teddiursa", "Ursaring", "Gligar", "Skarmory"},
["light"] = {"Shiny Lanturn", "Shiny Xatu", "Shiny Magmortar", "Shiny Electivire", "Electivire", "Shiny Espeon", "Shiny Electrode", "Abra", "Kadabra", "Alakazam", "Magnemite", "Magneton", "Magnezone", "Drowzee", "Hypno", "Voltorb", "Electrode", "Mrmime", "Electabuzz", "Jolteon", "Porygon", "Pikachu", "Raichu", "Shiny Abra", "Shiny Alakazam", "Shiny Hypno", "Shiny Voltorb", "Shiny Electrode", "Shiny Electabuzz", "Shiny Jolteon", "Shiny Raichu", "Chinchou", "Lanturn", "Pichu", "Natu", "Xatu", "Mareep", "Flaaffy", "Ampharos", "Espeon", "Porygon2", "Elekid"}, 
["digholes"] = {"468", "481", "483"},
["ghostwalk"] = {"Shiny Abra", "Gastly", "Haunter", "Gengar", "Shiny Gengar", "Misdreavus"},
["dig"] = {"Shiny Magcargo", "Shiny Lanturn", "Poliwrath", "Miltank", "Shiny Sandslash", "Shiny Dodrio", "Shiny Umbreon", "Shiny Espeon", "Shiny Ninetales", "Shiny Rhydon", "Raticate", "Sandshrew", "Sandslash", "Diglett", "Dugtrio", "Primeape", "Machop", "Machoke", "Machamp", "Geodude", "Graveler", "Golem" , "Onix", "Cubone", "Marowak", "Rhyhorn", "Rhydon", "Kangaskhan", "Tauros", "Snorlax", "Eevee", "Flareon", "Jolteon", "Vaporeon", "Vulpix", "Ninetales", "Nidorina", "Nidoqueen", "Nidorino", "Nidoking", "Persian", "Arcanine", "Shiny Raticate", "Shiny Golem" , "Shiny Onix", "Shiny Cubone", "Shiny Marowak", "Shiny Snorlax", "Shiny Flareon", "Shiny Jolteon", "Shiny Vaporeon", "Shiny Nidoking", "Shiny Arcanine", "Typhlosion", "Feraligatr", "Furret", "Espeon", "Umbreon", "Ledian", "Sudowoodo", "Politoed", "Quagsire", "Gligar", "Steelix", "Snubbull", "Granbull", "Heracross", "Dunsparce", "Sneasel", "Teddiursa", "Ursaring", "Piloswine", "Hitmontop", "Larvitar", "Pupitar", "Tyranitar"},
["blink"] = {"Shiny Xatu", "Exeggutor", "Shiny Abra", "Shiny Espeon", "Shiny Mr. Mime", "Jynx", "Shiny Jynx", "Hypno", "Shiny Hypno", "Slowking", "Natu", "Xatu", "Espeon", "Mew", "Mewtwo", "Abra", "Kadabra", "Alakazam", "Porygon", "Shiny Abra", "Shiny Alakazam", "Porygon2", "Mr. Mime"},
["teleport"] = {"Shiny Xatu", "Jynx", "Shiny Jynx", "Slowking","Shiny slowking","Gardevoir", "Slowbro", "Exeggutor", "Shiny Mr. Mime", 'Mew', 'Mewtwo', 'Abra', 'Kadabra', 'Alakazam', 'Drowzee', 'Hypno', 'Mr. Mime', 'Porygon', 'Shiny Abra', 'Shiny Alakazam', 'Shiny Hypno', 'Porygon2'},
["fly"] = {"Flygon", "Swellow", "Altaria", "Shiny Stantler","Venomoth", "Shiny Crobat", "Tropius", "Noctowl", "Dragonair", "Shiny Dragonair", "Porygon", "Aerodactyl", "Salamence", "Shiny Salamence", "Dragonite", "Charizard", "Pidgeot", "Fearow", "Zapdos", "Moltres", "Articuno", "Mew", "Mewtwo", "Shiny Dragonite", "Shiny Charizard", "Shiny Pidgeot", "Shiny Fearow", "Porygon2", "Skarmory", "Crobat", "Scyther", "Shiny Scyther", "Shiny Venomoth", "Gengar", "Shiny Gengar", "Heracross", "Farfetch'd", "Shiny Farfetch'd", "Xatu"},
["ride"] = {"Absol", "Manectric", "Shiny Meganium", "Girafarig", "Shiny Dodrio", "Absol", "Metagross", "Shiny Ninetales", "Shiny Onix", "Venusaur", "Ninetales", "Arcanine", "Ponyta", "Rapidash", "Doduo", "Dodrio", "Onix", "Rhyhorn", "Tauros", "Shiny Venusaur", "Shiny Arcanine", "Steelix", "Houndoom", "Meganium", "Bayleef", "Stantler", "Mareep", "Piloswine"},
["surf"] = {"Swampert", "Sealeo", "Walrein","Crawdaunt", "Lombre", "Ludicolo", 'Poliwag', 'Poliwhirl', 'Seaking', 'Milotic', 'Dewgong', 'Wailord', 'Blastoise', 'Tentacruel', 'Lapras', 'Gyarados', 'Omastar', 'Kabutops', 'Vaporeon', 'Staryu', 'Starmie', 'Goldeen', 'Seadra', 'Golduck', 'Squirtle', 'Wartortle', 'Tentacool', 'Snorlax', 'Poliwrath', 'Shiny Blastoise', 'Shiny Tentacruel', 'Shiny Gyarados', 'Shiny Vaporeon', 'Shiny Seadra', 'Shiny Tentacool', 'Shiny Snorlax', "Mantine", "Totodile", "Croconow", "Feraligatr", "Marill", "Azumarill", "Quagsire", "Wooper", "Octillery", "Kingdra"},
["foresight"] = {"Machamp", "Shiny Hitmonchan", "Shiny Hitmonlee", "Shiny Hitmontop", "Hitmontop", "Hitmonlee", "Hitmonchan"},
["counter"] = {"Shiny Magcargo", "Shiny Lanturn", "Shiny Magmar", "Shiny Magmortar", "Shiny Electivire", "Machamp", "Machoke", "Hitmonchan", "Hitmonlee", "Magmar", "Electabuzz", "Scyther", "Snorlax", "Kangaskhan", "Arcanine", "Shiny Arcanine", "Shiny Snorlax", "Shiny Scyther", "Shiny Hitmonchan", "Shiny Hitmonlee", "Shiny Electabuzz", "Hitmontop", "Shiny Hitmontop"}, 
["levitate"] = {"Gengar", "Haunter", "Gastly", "Misdreavus", "Weezing", "Koffing", "Unown", "Shiny Gengar", "Shiny Weezing"},
["evasion"] = {"Mega Scizor", "Beedrill", "Shiny Beedrill", "Scyther", "Scizor", "Hitmonlee", "Hitmonchan", "Hitmontop", "Tyrogue", "Shiny Scyther", "Shiny Hitmonchan", "Shiny Hitmonlee", "Shiny Hitmontop", "Ledian", "Ledyba", "Sneasel"},
["control mind"] = {'Haunter', 'Gengar', 'Tentacruel', 'Alakazam', 'Shiny Tentacruel', 'Shiny Gengar', 'Shiny Alakazam', 'Slowking'},
["transform"] = {"Ditto"},
["levitate_fly"] = {"Gengar", "Shiny Gengar", "Raichu", "Shiny Raichu"},
["Illusion"] = {"Misdreavus, Stantler, Shiny Stantler"},
["headbutt"] = {"Golem", "Shiny Charizard"},
}              --alterado v1.9 /\  novos shinys da pxg adicionados em algumas tabelas..

flys = {
 -- +1000 VELOCIDAD LEGENDARIA -- 
["Moltres"] = {229, 1300},
["Articuno"] = {230, 1300},
["Zapdos"] = {224, 1300},
["Mew"] = {232, 1300},
["Mewtwo"] = {233, 1300},

 -- +600 VELOCIDAD SHINY -- 
["Shiny Salamence"] = {1301, 1200},
["Shiny Crobat"] = {1149, 1200},
["Shiny Charizard"] = {295, 1200},
["Shiny Pidgeot"] = {996, 1200},
["Shiny Gengar"] = {1124, 1200},
["Aerodactyl"] = {227, 1200},
["Shiny Dragonair"] = {1113, 1200},
["Salamence"] = {1274, 1200},
["Shiny Scyther"] = {1161, 1200},
["Shiny Venomoth"] = {893, 1200},
["Shiny Farfetch'd"] = {1121, 1200},
["Shiny Raichu"] = {1731, 1200},

 -- +500 VELOCIDAD MEDIA --
["Xatu"] = {1122, 850},
["Dragonite"] = {221, 850},
["Pidgeot"] = {222, 850},
["Charizard"] = {216, 850},
["Porygon2"] = {648, 850},
["Skarmory"] = {649, 850},
["Crobat"] = {652, 850},
["Gengar"] = {1123, 850},
["Raichu"] = {1732, 850},
["Shiny Fearow"] = {997, 850},       
["Heracross"] = {1125, 850},
["Scyther"] = {1162, 850},
["Altaria"] = {1406, 850},
["Tropius"] = {1471, 850},
["Flygon"] = {1473, 850}, 
["Swellow"] = {1497, 850},

 -- +400 VELOCIDAD BAJA --
 ["Dragonair"] = {1112, 680},
["Noctowl"] = {994, 680},
["Venomoth"] = {1233, 680},
["Fearow"] = {226, 680},
["Porygon"] = {316, 680},
["Farfetch'd"] = {1733, 680},

}

rides = {
 -- +700~680 VELOCIDAD ALTA --
["Shiny Tauros"] = {1181, 600},
["Shiny Ninetales"] = {1136, 600},
["Shiny Dodrio"] = {1145, 600},
["Shiny Arcanine"] = {1003, 600},
["Rapidash"] = {130, 600},

 -- +620~600 VELOCIDAD MEDIA --
["Shiny Meganium"] = {1178, 450},
["Ninetales"] = {129, 450},
["Arcanine"] = {12, 450},
["Houndoom"] = {647, 450},
["Girafarig"] = {1227, 450},
["Tauros"] = {128, 450},
["Manectric"] = {1467, 450},
["Absol"] = {1468, 450},

 -- +550~(A INFERIOR) VELOCIDAD BAJA --
["Shiny Onix"] = {1737, 300},
["Dodrio"] = {133, 300}, 
["Shiny Venusaur"] = {1040, 300},
["Venusaur"] = {134, 300},
["Ponyta"] = {131, 300}, 
["Doduo"] = {135, 300}, 
["Onix"] = {126, 300}, 
["Rhyhorn"] = {132, 300},
["Bayleef"] = {686, 300},
["Meganium"] = {685, 300},
["Mareep"] = {688, 300}, 
["Steelix"] = {646, 300},
["Piloswine"] = {689, 300}, 
["Shiny Stantler"] = {1229, 300},
["Stantler"] = {687, 300}, 
["Metagross"] = {1266, 300}, 
}


surfs = {
["Poliwag"] = {lookType=278, speed = 10},
["Poliwhirl"] = {lookType=137, speed = 40},
["Seaking"] = {lookType=269, speed = 40},
["Dewgong"] = {lookType=183, speed = 80},
["Blastoise"] = {lookType=184, speed = 80},
["Tentacruel"] = {lookType=185, speed = 80},
["Lapras"] = {lookType=186, speed = 80},
["Gyarados"] = {lookType=187, speed = 80},
["Omastar"] = {lookType=188, speed = 80},
["Kabutops"] = {lookType=189, speed = 80},
["Poliwrath"] = {lookType=190, speed = 80},
["Vaporeon"] = {lookType=191, speed = 50},
["Staryu"] = {lookType=266, speed = 30},
["Starmie"] = {lookType=267, speed = 70},
["Goldeen"] = {lookType=268, speed = 20},
["Seadra"] = {lookType=270, speed = 50},
["Golduck"] = {lookType=271, speed = 70},
["Squirtle"] = {lookType=273, speed = 20},
["Wartortle"] = {lookType=275, speed = 40},
["Tentacool"] = {lookType=277, speed = 20},
["Snorlax"] = {lookType=300, speed = 80},
----------------Shiny----------------------
["Shiny Blastoise"] = {lookType=658, speed = 600},
["Shiny Tentacruel"] = {lookType=1014, speed = 600},
["Shiny Gyarados"] = {lookType=1030, speed = 600},
["Shiny Vaporeon"] = {lookType=1032, speed = 600},        --alterado v1.6
["Shiny Seadra"] = {lookType=1025, speed = 600},
["Shiny Tentacool"] = {lookType=1013, speed = 600},
["Shiny Snorlax"] = {lookType=1035, speed = 600},
["Shiny Feraligatr"] = {lookType=1175, speed = 600},
----------------Johto----------------------
["Mantine"] = {lookType=636, speed = 80},
["Totodile"] = {lookType=637, speed = 20},
["Croconow"] = {lookType=638, speed = 40},
["Feraligatr"] = {lookType=645, speed = 80},
["Marill"] = {lookType=639, speed = 30},
["Azumarill"] = {lookType=642, speed = 40},
["Quagsire"] = {lookType=643, speed = 70},
["Kingdra"] = {lookType=644, speed = 100},
["Octillery"] = {lookType=641, speed = 70},
["Wooper"] = {lookType=640, speed = 30},
["Milotic"] = {lookType=1290, speed = 1000},
["Wailord"] = {lookType=1305, speed = 1000},

["Lombre"] = {lookType=1470, speed = 1000},
["Ludicolo"] = {lookType=1469, speed = 1000},
["Crawdaunt"] = {lookType=1479, speed = 1000},

["Sealeo"] = {lookType=1480, speed = 1000},
["Walrein"] = {lookType=1481, speed = 1000}, 
["Swampert"] = {lookType=1495, speed = 1000}, 
}

--------
pokeballs = {

["poke"] =      {effect = 376, on = 11826, use = 11827, off = 11828, all = {11826, 11827, 11828}},
["ultra"] =       {effect = 377, on = 11829, use = 11830, off = 11831, all = {11829, 11830, 11831}},
["super"] =       {effect = 376, on = 11835, use = 11836, off = 11837, all = {11835, 11836, 11837}},
["great"] =       {effect = 376, on = 11832, use = 11833, off = 11834, all = {11832, 11833, 11834}},

}


effectiveness = {
[WATERDAMAGE] = {super = {"rock", "ground", "fire"}, weak = {"water", "grass", "dragon"}},
[NORMALDAMAGE] = {weak = {"rock", "steel"}, non = {"ghost"}},
[FIGHTDAMAGE] = {super = {"normal", "rock", "steel", "ice", "dark"}, weak = {"flying", "poison", "bug", "psychic"}, non = {"ghost"}},
[FLYINGDAMAGE] = {super = {"fighting", "bug", "grass"}, weak = {"rock", "steel", "electric"}},
[POISONDAMAGE] = {super = {"grass"}, weak = {"poison", "ground", "rock", "ghost"}, non = {"steel"}},
[POISONEDDAMAGE] = {super = {"grass"}, weak = {"poison", "ground", "rock", "ghost"}, non = {"steel"}},
[GROUNDDAMAGE] = {super = {"poison", "rock", "steel", "fire", "electric"}, weak = {"bug", "grass"}, non = {"flying"}},
[ROCKDAMAGE] = {super = {"flying", "bug", "fire", "ice"}, weak = {"fighting", "ground", "steel"}},
[BUGDAMAGE] = {super = {"grass", "psychic"}, weak = {"fighting", "flying", "poison", "ghost", "steel", "fire"}},  
[GHOSTDAMAGE] = {super = {"ghost", "psychic"}, weak = {"steel", "dark"}, non = {"normal"}},
[STEELDAMAGE] = {super = {"rock", "ice", "poison"}, weak = {"steel", "fire", "water", "electric"}},
[FIREDAMAGE] = {super = {"bug", "grass", "ice", "steel"}, weak = {"rock", "fire", "water"}},
[BURNEDDAMAGE] = {super = {"bug", "grass", "ice"}, weak = {"rock", "fire", "water"}},
[GRASSDAMAGE] = {super = {"ground", "rock", "water"}, weak = {"flying", "poison", "bug", "steel", "fire", "grass", "dragon"}},
[ELECTRICDAMAGE] = {super = {"flying", "water"}, weak = {"grass", "electric", "dragon"}, non = {"ground"}},
[PSYCHICDAMAGE] = {super = {"fighting", "poison"}, weak = {"steel"}, non = {"dark"}},
[ICEDAMAGE] = {super = {"flying", "ground", "grass", "dragon"}, weak = {"steel", "fire", "water"}},
[DRAGONDAMAGE] = {super = {"dragon"}, weak = {"steel"}},
[DARKDAMAGE] = {super = {"ghost", "psychic"}, weak = {"fighting", "steel", "dark"}},
[MIRACLEDAMAGE] = {super = {"fighting", "poison"}, weak = {"steel", "psychic", "dark"}},  --alterado v1.6     
[DARK_EYEDAMAGE] = {super = {"ghost", "psychic"}, weak = {"steel", "dark", "normal"}},           --alterado v1.6
[SEED_BOMBDAMAGE] = {super = {"ground", "rock", "water"}, weak = {"flying", "poison", "bug", "steel", "fire", "grass", "dragon"}}, --alterado v1.6
[SACREDDAMAGE] = {super = {"bug", "grass", "ice"}, weak = {"rock", "fire", "water"}},  --alterado v1.6
[MUDBOMBDAMAGE] = {super = {"poison", "rock", "steel", "fire", "electric"}, weak = {"bug", "grass"}, non = {"flying"}}, --alterado v1.8
}

-- offense = offense que ganha por level
-- level = level min pra usar o poke / offense base
-- defense = defense por level
-- agility = speed base dos pokes
-- specialattack = special attack que ganha por level
-- exp = exp que dá a cada level que tem (somada a exp base, no xml do poke)                 
-- vitality = vida que o poke ganha pra cada vitality que tem

function getPortraitClientID(pokeName)
    local random_shinys = {
        ["Shiny Crobat"] = 12487,
        
        ["Shiny Magmar"] = 12027,
        ["Electivire"] = 12910,
        ["Magmortar"] = 12905,
        ["Shiny Magmortar"] = 12935,
        ["Shiny Electivire"] = 12932,


        ["Shiny Ampharos"] = 12074,
        ["Shiny Feraligatr"] = 12076,
        ["Shiny Larvitar"] = 12078,
        ["Shiny Machamp"] = 12080,
        ["Shiny Meganium"] = 12082,
        ["Shiny Pupitar"] = 12084,
        ["Shiny Tauros"] = 12086,
        ["Shiny Typhlosion"] = 12088,
        ["Shiny Xatu"] = 12090,

        ["Shiny Magcargo"] = 12790,
        ["Shiny Lanturn"] = 12791,
        ["Shiny Onix"] = 11427,
    }
    local id = fotos[pokeName]
    if id==nil then
    return 2395
    else
    if id >= 11989 and id <= 12139 then -- kanto
       return id - 928
    elseif id >= 11139 and id <= 11285 or id >= 11288 and id <= 11387 then -- shinys kanto e johto
       return id - 911
    elseif id >= 12607 and id <= 12616 then -- alguns shinys johto
       return id - 1178
    elseif random_shinys[pokeName] then
        return random_shinys[pokeName]
    end       
    end
    --print("Pokemon nao encontrado: " .. pokeName .. ", na funcao: getPortraitClientID")
end


fotos = {
-----OUTLAND

--------
["Bulbasaur"] = 11989,
["Ivysaur"] = 11990,
["Venusaur"] = 11991,
["Charmander"] = 11992,
["Charmeleon"] = 11993,
["Charizard"] = 11994,
["Squirtle"] = 11995,
["Wartortle"] = 11996,
["Blastoise"] = 11997,
["Caterpie"] = 11998,
["Metapod"] = 11999,
["Butterfree"] = 12000,
["Weedle"] = 12001,
["Kakuna"] = 12002,
["Beedrill"] = 12003,
["Pidgey"] = 12004,
["Pidgeotto"] = 12005,
["Pidgeot"] = 12006,
["Rattata"] = 12007,
["Raticate"] = 12008,
["Spearow"] = 12009,
["Fearow"] = 12010,
["Ekans"] = 12011,
["Arbok"] = 12012,
["Pikachu"] = 15604,
["Raichu"] = 12014,
["Sandshrew"] = 12015,
["Sandslash"] = 12016,
["Shiny Sandslash"] = 12016,
["Nidoran Female"] = 12017,
["Nidorina"] = 12018,
["Nidoqueen"] = 12019,
["Nidoran Male"] = 12020,
["Nidorino"] = 12021,
["Nidoking"] = 12022,
["Clefairy"] = 12023,
["Clefable"] = 12024,
["Vulpix"] = 12025,
["Ninetales"] = 12026,
["Jigglypuff"] = 12027,
["Wigglytuff"] = 12028,
["Zubat"] = 12029,
["Golbat"] = 12030,
["Oddish"] = 12031,
["Gloom"] = 12032,
["Vileplume"] = 12033,
["Paras"] = 12034,
["Parasect"] = 12035,
["Venonat"] = 12036,
["Venomoth"] = 12037,
["Diglett"] = 12038,
["Dugtrio"] = 12039,
["Meowth"] = 12040,
["Persian"] = 12041,
["Psyduck"] = 12042,
["Golduck"] = 12043,
["Mankey"] = 12044,
["Primeape"] = 12045,
["Growlithe"] = 12046,
["Arcanine"] = 12047,
["Poliwag"] = 12048,
["Poliwhirl"] = 12049,
["Poliwrath"] = 12050,
["Abra"] = 12051,
["Kadabra"] = 12052,
["Alakazam"] = 12053,
["Machop"] = 12054,
["Machoke"] = 12055,
["Machamp"] = 12056,
["Bellsprout"] = 12057,
["Weepinbell"] = 12058,
["Victreebel"] = 12059,
["Tentacool"] = 12060,
["Tentacruel"] = 12061,
["Geodude"] = 12062,
["Graveler"] = 12063,
["Golem"] = 12064,
["Ponyta"] = 12065,
["Rapidash"] = 12066,
["Slowpoke"] = 12067,
["Slowbro"] = 12068,
["Magnemite"] = 12069,
["Magneton"] = 12070,
["Farfetch'd"] = 12071,
["Doduo"] = 12072,
["Dodrio"] = 12073,
["Seel"] = 12074,
["Dewgong"] = 12075,
["Grimer"] = 12076,
["Muk"] = 12077,
["Shellder"] = 12078,
["Cloyster"] = 12079,
["Gastly"] = 12080,
["Haunter"] = 12081,
["Gengar"] = 12082,
["Onix"] = 12083,
["Drowzee"] = 12084,
["Hypno"] = 12085,
["Krabby"] = 12086,
["Kingler"] = 12087,
["Voltorb"] = 12088,
["Electrode"] = 12089,
["Exeggcute"] = 12090,
["Exeggutor"] = 12091,
["Cubone"] = 12092,
["Marowak"] = 12093,
["Hitmonlee"] = 12094,
["Hitmonchan"] = 12095,
["Lickitung"] = 12096,
["Koffing"] = 12097,
["Weezing"] = 12098,
["Shiny Weezing"] = 12098,
["Rhyhorn"] = 12099,
["Rhydon"] = 12100,
["Chansey"] = 12101,
["Tangela"] = 12102,
["Kangaskhan"] = 12103,
["Horsea"] = 12104,
["Seadra"] = 12105,
["Goldeen"] = 12106,
["Seaking"] = 12107,
["Staryu"] = 12108,
["Starmie"] = 12109,
["Mr. Mime"] = 12110,
["Scyther"] = 12111,
["Jynx"] = 12112,
["Electabuzz"] = 12113,
["Magmar"] = 12114,
["Pinsir"] = 12115,
["Tauros"] = 12116,
["Magikarp"] = 12117,
["Giant Magikarp"] = 12117,
["Gyarados"] = 12118,
["Lapras"] = 12119,
["Shiny Lapras"] = 12119,
["Ditto"] = 12120,
["Shiny Ditto"] = 16180,
["Eevee"] = 12121,
["Leafeon"] = 17113,
["Sylveon"] = 17112,
["Glaceon"] = 17114,
["Vaporeon"] = 12122,
["Jolteon"] = 12123,
["Flareon"] = 12124,
["Porygon"] = 12125,
["Omanyte"] = 12126,
["Omastar"] = 12127,
["Kabuto"] = 12128,
["Kabutops"] = 12129,
["Aerodactyl"] = 12130,
["Snorlax"] = 12131,
["Articuno"] = 12132,
["Zapdos"] = 12133,
["Moltres"] = 12134,
["Dratini"] = 12135,
["Dragonair"] = 12136,
["Dragonite"] = 12137,
["Mewtwo"] = 12138,
["Mew"] = 12139,
-----------------Shiny Portfoil------------
["Shiny Venusaur"] = 11139,
["Shiny Charizard"] = 11142,
["Shiny Blastoise"] = 11145,
["Shiny Butterfree"] = 11148,
["Shiny Beedrill"] = 11151,
["Shiny Pidgeot"] = 11154,
["Shiny Rattata"] = 11155,
["Shiny Raticate"] = 11156,
["Shiny Fearow"] = 11158,
["Shiny Raichu"] = 11162,
["Shiny Nidoking"] = 11170,
["Shiny Zubat"] = 11177,
["Shiny Golbat"] = 11178,
["Shiny Oddish"] = 11179,
["Shiny Vileplume"] = 11181,
["Shiny Paras"] = 11182,
["Shiny Parasect"] = 11183,
["Shiny Venonat"] = 11184,
["Shiny Venomoth"] = 11185,
["Shiny Growlithe"] = 11194,
["Shiny Arcanine"] = 11195,
["Shiny Abra"] = 11199,
["Shiny Alakazam"] = 11201,
["Shiny Tentacool"] = 11208,
["Shiny Tentacruel"] = 11209,
["Shiny Golem"] = 11212,
["Shiny Farfetch'd"] = 11219,
["Shiny Grimer"] = 11224,
["Shiny Muk"] = 11225,
["Shiny Gengar"] = 11230,
["Shiny Onix"] = 12605,  --alterado v1.9
["Shiny Hypno"] = 11233,
["Shiny Krabby"] = 11234,
["Shiny Kingler"] = 11235,
["Shiny Voltorb"] = 11236,
["Shiny Electrode"] = 11237,
["Shiny Cubone"] = 11240,
["Shiny Marowak"] = 11241,
["Shiny Hitmonlee"] = 11242,
["Shiny Hitmontop"] = 12606, --alterado v1.9
["Shiny Hitmonchan"] = 11243,
["Shiny Tangela"] = 11250,
["Shiny Horsea"] = 11252,
["Shiny Seadra"] = 11253,
["Shiny Scyther"] = 11259,
["Shiny Jynx"] = 11260,
["Shiny Electabuzz"] = 11261,
["Shiny Pinsir"] = 11263,
["Shiny Magikarp"] = 11265,
["Shiny Giant Magikarp"] = 11265,
["Shiny Gyarados"] = 11266,
["Shiny Vaporeon"] = 11270,
["Shiny Jolteon"] = 11271,
["Shiny Flareon"] = 11272,
["Shiny Snorlax"] = 11279,
["Shiny Dratini"] = 11283,
["Shiny Dragonair"] = 11284,
["Shiny Dragonite"] = 11285,
-----------------geracao 2 Portfoil------------

["Chikorita"] = 11288,
["Bayleef"] = 11289,
["Meganium"] = 11290,
["Cyndaquil"] = 11291,
["Quilava"] = 11292,
["Typhlosion"] = 11293,
["Totodile"] = 11294,
["Croconaw"] = 11295,
["Feraligatr"] = 11296,
["Sentret"] = 11297,
["Furret"] = 11298,
["Hoothoot"] = 11299,
["Noctowl"] = 11300,
["Ledyba"] = 11301,
["Ledian"] = 11302,
["Spinarak"] = 11303,
["Ariados"] = 11304,
["Crobat"] = 11305,
["Chinchou"] = 11306,
["Lanturn"] = 11307,
["Pichu"] = 11308,
["Cleffa"] = 11309,
["Igglybuff"] = 11310,
["Togepi"] = 11311,
["Togetic"] = 11312,
["Natu"] = 11313,
["Xatu"] = 11314,
["Mareep"] = 11315,
["Flaaffy"] = 11316,
["Ampharos"] = 11317,
["Bellossom"] = 11318,
["Marill"] = 11319,
["Azumarill"] = 11320,
["Sudowoodo"] = 11321,
["Politoed"] = 11322,
["Hoppip"] = 11323,
["Skiploom"] = 11324,
["Jumpluff"] = 11325,
["Aipom"] = 11326,
["Sunkern"] = 11327,
["Sunflora"] = 11328,
["Yanma"] = 11329,
["Wooper"] = 11330,
["Quagsire"] = 11331,
["Espeon"] = 11332,
["Umbreon"] = 11333,
["Murkrow"] = 11334,
["Slowking"] = 11335,
["Shiny Slowking"] = 11335,
["Misdreavus"] = 11336,
["Unown"] = 11337,
["Wobbuffet"] = 11338,
["Girafarig"] = 11339,
["Pineco"] = 11340,
["Forretress"] = 11341,
["Dunsparce"] = 11342,
["Gligar"] = 11343,
["Steelix"] = 11344,
["Snubbull"] = 11345,
["Granbull"] = 11346,
["Qwilfish"] = 11347,
["Scizor"] = 11348,
["Shuckle"] = 11349,
["Heracross"] = 11350,
["Shiny Heracross"] = 11350,
["Sneasel"] = 11351,
["Teddiursa"] = 11352,
["Ursaring"] = 11353,
["Slugma"] = 11354,
["Magcargo"] = 11355,
["Swinub"] = 11356,
["Piloswine"] = 11357,
["Corsola"] = 11358,
["Remoraid"] = 11359,
["Octillery"] = 11360,
["Delibird"] = 11361,
["Mantine"] = 11362,
["Skarmory"] = 11363,
["Houndour"] = 11364,
["Houndoom"] = 11365,
["Kingdra"] = 11366,
["Phanpy"] = 11367,
["Donphan"] = 11368,
["Porygon2"] = 11369,
["Stantler"] = 11370,
["Smeargle"] = 11371,
["Tyrogue"] = 11372,
["Hitmontop"] = 11373,
["Smoochum"] = 11374,
["Elekid"] = 11375,
["Magby"] = 11376,
["Miltank"] = 11377,
["Blissey"] = 11378,
["Raikou"] = 11379,
["Entei"] = 11380,
["Suicune"] = 11381,
["Larvitar"] = 11382,
["Pupitar"] = 11383,
["Tyranitar"] = 11384,
["Lugia"] = 11385,
["Ho-oh"] = 11386,
["Celebi"] = 11387,

                ------------ bagunçado
["Shiny Stantler"] = 12607, --tem
["Shiny Umbreon"] = 12608, --tem
["Shiny Espeon"] = 12609, --tem
["Shiny Politoed"] = 12610, --tem
["Shiny Ariados"] = 12611, --tem
["Shiny Rhydon"] = 12612, --tem
["Shiny Dodrio"] = 12613, --tem
["Shiny Magneton"] = 12614,   --alterado v1.9 \/  
["Shiny Ninetales"] = 12615,
["Shiny Mr. Mime"] = 12616,

["Shiny Crobat"] = 12741,
["Shiny Magmar"] = 12742,


["Shiny Mantine"] = 14018,
["Electivire"] = 14019,

["Magmortar"] = 14182,
["Shiny Magmortar"] = 14183,
["Shiny Electivire"] = 14184,


["Shiny Ampharos"] = 12836,
["Shiny Feraligatr"] = 12838,
["Shiny Larvitar"] = 12840,
["Shiny Machamp"] = 12842,
["Shiny Meganium"] = 12844,
["Shiny Pupitar"] = 12846,
["Shiny Tauros"] = 12848,
["Shiny Typhlosion"] = 12850,
["Shiny Xatu"] = 12852,

["Shiny Magcargo"] = 13915,
["Shiny Lanturn"] = 13916,


--------------------- 3 geracao fazer depois
["Treecko"] = 14795,
["Grovyle"] = 14796,
["Sceptile"] = 14797,
["Torchic"] = 14798,
["Combusken"] = 14799,
["Blaziken"] = 14800,
["Mudkip"] = 14801,
["Marshtomp"] = 14802,
["Swampert"] = 14803,
["Lotad"] = 14804,
["Lombre"] = 14805,
["Ludicolo"] = 14806,
["Ralts"] = 14807,
["Kirlia"] = 14808,
["Gardevoir"] = 14809,
["Joltik"] = 17115,
["Galvantula"] = 17116,
["Chandelure"] = 17117,
["Breloom"] = 17118,
["Shroomish"] = 17119,
["Lickilicky"] = 17120,
["Ambipom"] = 17121,
["Toxicroak"] = 17122,
["Bronzong"] = 17126,
["Empoleon"] = 17125,
["Torterra"] = 17123,
["Infernape"] = 17124,
["Ditto"] = 12120,
["Kecleon"] = 15656,
["Slakoth"] = 14810,
["Vigoroth"] = 14811,
["Slaking"] = 14812,
["Nincada"] = 14813,
["Ninjask"] = 14814,
["Shedinja"] = 14880,

["Whismur"] = 14815,
["Loudred"] = 14816,
["Exploud"] = 14817,
["Makuhita"] = 14818,
["Hariyama"] = 14819,
["Aron"] = 14820,
["Lairon"] = 14821,
["Aggron"] = 14822,

["Meditite"] = 14823,
["Medicham"] = 14824,
["Sableye"] = 14825,
["Mawile"] = 14826,
["Electrike"] = 14827,
["Manectric"] = 14828,
["Numel"] = 14829,
["Camerupt"] = 14830,

["Torkoal"] = 14831,
["Spoink"] = 14832,
["Grumpig"] = 14833,
["Trapinch"] = 14834,
["Vibrava"] = 14835,
["Flygon"] = 14836,
["Shiny Flygon"] = 14836,
["Swablu"] = 14837,
["Altaria"] = 14838,
["Zangoose"] = 14839,
["Seviper"] = 14840,

["Corphish"] = 14841,
["Crawdaunt"] = 14842,
["Feebas"] = 14843,
["Milotic"] = 14844,
["Shiny Milotic"] = 14844,
["Shuppet"] = 14845,
["Banette"] = 14846,
["Duskull"] = 14847,
["Dusclops"] = 14848,
["Dusknoir"] = 14862,
["Tropius"] = 14849,
["Absol"] = 14850,

["Snorunt"] = 14851,
["Glalie"] = 14852,
["Spheal"] = 14853,
["Sealeo"] = 14854,
["Walrein"] = 14855,
["Bagon"] = 14856,
["Shelgon"] = 14857,
["Salamence"] = 14858,
["Beldum"] = 14859,
["Metang"] = 14860,

["Metagross"] = 14861,
["Rhyperior"] = 14863,
["tangrowth"] = 14864,
["Lucario"] = 14865,

["Kyogre"] = 14866,
["Groudon"] = 14867,
["Rayquaza"] = 14868,
["Rotom"] = 14869,
["Wailord"] = 14870,

["Swellow"] = 14871,
["Taillow"] = 14872,
["Seedot"] = 14873,
["Nuzleaf"] = 14874,
["Shiftry"] = 14875,
["Claydol"] = 14877,
["Baltoy"] = 14878,
["Riolu"] = 14879,
}      

pokecatches = {
["Bulbasaur"] = {chance = 300, corpse = 5969},
["Ivysaur"] = {chance = 800, corpse = 5982},
["Venusaur"] = {chance = 1800, corpse = 5962},
["Charmander"] = {chance = 300, corpse = 5983},
["Charmeleon"] = {chance = 800, corpse = 5981},
["Charizard"] = {chance = 1800, corpse = 6005},
["Squirtle"] = {chance = 300, corpse = 6008},
["Wartortle"] = {chance = 800, corpse = 5978},
["Blastoise"] = {chance = 1800, corpse = 5999},
["Caterpie"] = {chance = 5, corpse = 5971},
["Metapod"] = {chance = 50, corpse = 5970},
["Butterfree"] = {chance = 150, corpse = 5985},
["Weedle"] = {chance = 5, corpse = 5964},
["Kakuna"] = {chance = 50, corpse = 6000},
["Beedrill"] = {chance = 150, corpse = 5990},
["Pidgey"] = {chance = 10, corpse = 5961},
["Pidgeotto"] = {chance = 100, corpse = 5966},
["Pidgeot"] = {chance = 1800, corpse = 6020},
["Rattata"] = {chance = 5, corpse = 5974},
["Raticate"] = {chance = 100, corpse = 6007},
["Spearow"] = {chance = 10, corpse = 5968},
["Fearow"] = {chance = 300, corpse = 5992},
["Ekans"] = {chance = 80, corpse = 5979},
["Arbok"] = {chance = 200, corpse = 5984},
["Pikachu"] = {chance = 250, corpse = 6001},
["Raichu"] = {chance = 1200, corpse = 5996},
["Sandshrew"] = {chance = 50, corpse = 5988},
["Sandslash"] = {chance = 400, corpse = 6041},
["Nidoran Female"] = {chance = 20, corpse = 6013},
["Nidorina"] = {chance = 100, corpse = 6014},
["Nidoqueen"] = {chance = 1200, corpse = 3004},
["Nidoran Male"] = {chance = 20, corpse = 6015},
["Nidorino"] = {chance = 100, corpse = 6019},
["Nidoking"] = {chance = 1200, corpse = 5995},
["Clefairy"] = {chance = 100, corpse = 2968},
["Clefable"] = {chance = 800, corpse = 6006},
["Vulpix"] = {chance = 50, corpse = 6003},
["Ninetales"] = {chance = 800, corpse = 6040},
["Jigglypuff"] = {chance = 100, corpse = 6011},
["Wigglytuff"] = {chance = 1000, corpse = 6012},
["Zubat"] = {chance = 25, corpse = 5989},
["Golbat"] = {chance = 120, corpse = 6053},
["Oddish"] = {chance = 15, corpse = 3008},
["Gloom"] = {chance = 150, corpse = 6017},
["Vileplume"] = {chance = 600, corpse = 6025},
["Paras"] = {chance = 20, corpse = 3007},
["Parasect"] = {chance = 200, corpse = 6027},
["Venonat"] = {chance = 60, corpse = 5997},
["Venomoth"] = {chance = 400, corpse = 2925},
["Diglett"] = {chance = 15, corpse = 6023},
["Dugtrio"] = {chance = 200, corpse = 6024},
["Meowth"] = {chance = 20, corpse = 6034},
["Persian"] = {chance = 200, corpse = 6009},
["Psyduck"] = {chance = 50, corpse = 6029},
["Golduck"] = {chance = 650, corpse = 6028},
["Mankey"] = {chance = 30, corpse = 6035},
["Primeape"] = {chance = 300, corpse = 6032},
["Growlithe"] = {chance = 60, corpse = 6036},
["Arcanine"] = {chance = 1000, corpse = 6031},
["Poliwag"] = {chance = 10, corpse = 6042},
["Poliwhirl"] = {chance = 200, corpse = 6054},
["Poliwrath"] = {chance = 800, corpse = 6033},
["Abra"] = {chance = 40, corpse = 2905},
["Kadabra"] = {chance = 250, corpse = 6060},
["Alakazam"] = {chance = 1000, corpse = 6057},
["Machop"] = {chance = 30, corpse = 6045},
["Machoke"] = {chance = 200, corpse = 4251},
["Machamp"] = {chance = 1400, corpse = 6048},
["Bellsprout"] = {chance = 10, corpse = 2806},
["Weepinbell"] = {chance = 100, corpse = 2928},
["Victreebel"] = {chance = 400, corpse = 6332},
["Tentacool"] = {chance = 15, corpse = 2961},
["Tentacruel"] = {chance = 1200, corpse = 6037},
["Geodude"] = {chance = 20, corpse = 6071},
["Graveler"] = {chance = 200, corpse = 6516},
["Golem"] = {chance = 800, corpse = 6043},
["Ponyta"] = {chance = 40, corpse = 5975},
["Rapidash"] = {chance = 300, corpse = 4323},
["Slowpoke"] = {chance = 15, corpse = 2926},
["Slowbro"] = {chance = 300, corpse = 5986},
["Magnemite"] = {chance = 10, corpse = 6056},
["Magneton"] = {chance = 200, corpse = 6076},
["Magnezone"] = {chance = 3000, corpse = 14181},
["Milotic"] = {chance = 3000, corpse = 14181},
["Farfetch'd"] = {chance = 300, corpse = 2836},
["Doduo"] = {chance = 20, corpse = 2842},
["Dodrio"] = {chance = 150, corpse = 6047},
["Seel"] = {chance = 20, corpse = 6030},
["Dewgong"] = {chance = 400, corpse = 6038},
["Grimer"] = {chance = 20, corpse = 6055},
["Muk"] = {chance = 700, corpse = 2845},
["Shellder"] = {chance = 20, corpse = 2837},
["Cloyster"] = {chance = 900, corpse = 2932},
["Gastly"] = {chance = 80, corpse = 5993},
["Haunter"] = {chance = 300, corpse = 6004},
["Gengar"] = {chance = 1800, corpse = 6336},
["Onix"] = {chance = 350, corpse = 2990},
["Drowzee"] = {chance = 50, corpse = 6026},
["Hypno"] = {chance = 600, corpse = 6046},
["Krabby"] = {chance = 8, corpse = 6039},
["Kingler"] = {chance = 200, corpse = 6340},
["Voltorb"] = {chance = 30, corpse = 6049},
["Electrode"] = {chance = 220, corpse = 6051},
["Exeggcute"] = {chance = 20, corpse = 2982},
["Exeggutor"] = {chance = 900, corpse = 3005},
["Cubone"] = {chance = 30, corpse = 6050},
["Marowak"] = {chance = 550, corpse = 6072},
["Hitmonlee"] = {chance = 1200, corpse = 6067},
["Hitmonchan"] = {chance = 1200, corpse = 5977},
["Lickitung"] = {chance = 800, corpse = 2953},
["Koffing"] = {chance = 30, corpse = 2936},
["Weezing"] = {chance = 220, corpse = 6306},
["Rhyhorn"] = {chance = 100, corpse = 3035},
["Rhydon"] = {chance = 1200, corpse = 2858},
["Chansey"] = {chance = 1000, corpse = 6010},
["Tangela"] = {chance = 500, corpse = 5976},
["Kangaskhan"] = {chance = 2000, corpse = 6073},
["Horsea"] = {chance = 15, corpse = 2973},
["Seadra"] = {chance = 250, corpse = 2872},
["Goldeen"] = {chance = 10, corpse = 2970},
["Seaking"] = {chance = 150, corpse = 3038},
["Staryu"] = {chance = 30, corpse = 5987},
["Starmie"] = {chance = 400, corpse = 7320},
["Mr. Mime"] = {chance = 1000, corpse = 6069},
["Scyther"] = {chance = 2200, corpse = 3002},
["Jynx"] = {chance = 2200, corpse = 5765},
["Electabuzz"] = {chance = 2200, corpse = 6065},
["Magmar"] = {chance = 2200, corpse = 7283},
["Pinsir"] = {chance = 1300, corpse = 7282},
["Tauros"] = {chance = 100, corpse = 6302},
["Magikarp"] = {chance = 2, corpse = 2818},
["Gyarados"] = {chance = 2200, corpse = 6331},
["Lapras"] = {chance = 2200, corpse = 6018},
["Shiny Lapras"] = {chance = 900},
["Ditto"] = {chance = 40000, corpse = 2817},
["Eevee"] = {chance = 700, corpse = 6364},
["Glaceon"] = {chance = 900},
["Sylveon"] = {chance = 900},
["Leafeon"] = {chance = 900},
["Vaporeon"] = {chance = 1800, corpse = 5960},
["Jolteon"] = {chance = 1800, corpse = 6044},
["Flareon"] = {chance = 1800, corpse = 6059},
["Porygon"] = {chance = 1800, corpse = 5963},
["Omanyte"] = {chance = 150, corpse = 5998},
["Omastar"] = {chance = 1900, corpse = 5994},
["Kabuto"] = {chance = 510, corpse = 5972},
["Kabutops"] = {chance = 1900, corpse = 6345},
["Aerodactyl"] = {chance = 2200, corpse = 6338},
["Snorlax"] = {chance = 2200, corpse = 6016},
["Dratini"] = {chance = 200, corpse = 2879},
["Dragonair"] = {chance = 400, corpse = 6002},
["Dragonite"] = {chance = 2500, corpse = 4295},

-------------Johto Catch----------

["Chikorita"] = {chance = 300, corpse = 8949},
["Bayleef"] = {chance = 800, corpse = 8943},
["Meganium"] = {chance = 1500, corpse = 9872},
["Cyndaquil"] = {chance = 300, corpse = 8956},
["Quilava"] = {chance = 800, corpse = 9920},
["Typhlosion"] = {chance = 1800, corpse = 10521},
["Totodile"] = {chance = 300, corpse = 10520},
["Croconaw"] = {chance = 800, corpse = 8955},
["Feraligatr"] = {chance = 2500, corpse = 8967},
["Sentret"] = {chance = 20, corpse = 9935},
["Furret"] = {chance = 150, corpse = 9009},
["Hoothoot"] = {chance = 20, corpse = 9774},
["Noctowl"] = {chance = 600, corpse = 9879},
["Ledyba"] = {chance = 10, corpse = 9829},
["Ledian"] = {chance = 100, corpse = 9824},
["Spinarak"] = {chance = 10, corpse = 9965},
["Ariados"] = {chance = 500, corpse = 8941},
["Crobat"] = {chance = 900, corpse = 8953},
["Chinchou"] = {chance = 30, corpse = 8950},
["Lanturn"] = {chance = 400, corpse = 9803},
["Pichu"] = {chance = 30, corpse = 9882},
["Cleffa"] = {chance = 80, corpse = 8951},
["Igglybuff"] = {chance = 80, corpse = 9783},
["Togepi"] = {chance = 80, corpse = 10518},
["Togetic"] = {chance = 1200, corpse = 10519},
["Natu"] = {chance = 50, corpse = 9877},
["Xatu"] = {chance = 1400, corpse = 8937},
["Mareep"] = {chance = 20, corpse = 9869},
["Flaaffy"] = {chance = 800, corpse = 8968},
["Ampharos"] = {chance = 1800, corpse = 8939},
["Bellossom"] = {chance = 400, corpse = 8946},
["Marill"] = {chance = 50, corpse = 9871},
["Azumarill"] = {chance = 600, corpse = 8942},
["Sudowoodo"] = {chance = 2000, corpse = 10005},
["Politoed"] = {chance = 800, corpse = 9915},
["Hoppip"] = {chance = 10, corpse = 9775},
["Skiploom"] = {chance = 80, corpse = 9937},
["Jumpluff"] = {chance = 250, corpse = 9801},
["Aipom"] = {chance = 100, corpse = 8938},
["Sunkern"] = {chance = 5, corpse = 10015},
["Sunflora"] = {chance = 200, corpse = 10008},
["Yanma"] = {chance = 150, corpse = 8935},
["Wooper"] = {chance = 50, corpse = 10603},
["Quagsire"] = {chance = 600, corpse = 9919},
["Espeon"] = {chance = 1200, corpse = 8966},
["Umbreon"] = {chance = 1200, corpse = 10525},
["Murkrow"] = {chance = 400, corpse = 9876},
["Slowking"] = {chance = 2200, corpse = 9938},
["Shiny Slowking"] = {chance = 800},
["Misdreavus"] = {chance = 2200, corpse = 9875},
["Wobbuffet"] = {chance = 2500, corpse = 10539},
["Girafarig"] = {chance = 1500, corpse = 9081},
["Pineco"] = {chance = 20, corpse = 9914},
["Forretress"] = {chance = 600, corpse = 8969},
["Dunsparce"] = {chance = 60, corpse = 8960},
["Gligar"] = {chance = 100, corpse = 9083},
["Steelix"] = {chance = 1800, corpse = 10003},
["Snubbull"] = {chance = 100, corpse = 9964},
["Granbull"] = {chance = 600, corpse = 9107},
["Qwilfish"] = {chance = 400, corpse = 9921},
["Scizor"] = {chance = 3500, corpse = 9925},
["Shuckle"] = {chance = 10, corpse = 9924},
["Heracross"] = {chance = 1600, corpse = 9654},
["Shiny Heracross"] = {chance = 800, corpse = 9654},
["Sneasel"] = {chance = 300, corpse = 9963},
["Teddiursa"] = {chance = 100, corpse = 10508},
["Ursaring"] = {chance = 2100, corpse = 10538},
["Slugma"] = {chance = 80, corpse = 9960},
["Magcargo"] = {chance = 600, corpse = 9867},
["Swinub"] = {chance = 80, corpse = 10171},
["Piloswine"] = {chance = 400, corpse = 9913},
["Corsola"] = {chance = 400, corpse = 8952},
["Remoraid"] = {chance = 80, corpse = 9923},
["Octillery"] = {chance = 400, corpse = 9880},
["Delibird"] = {chance = 400, corpse = 8957},
["Mantine"] = {chance = 1800, corpse = 9868},
["Skarmory"] = {chance = 1800, corpse = 9936},
["Houndour"] = {chance = 80, corpse = 9781},
["Houndoom"] = {chance = 1600, corpse = 9780},
["Kingdra"] = {chance = 1800, corpse = 9802},
["Phanpy"] = {chance = 80, corpse = 9881},
["Donphan"] = {chance = 1000, corpse = 8958},
["Porygon2"] = {chance = 2500, corpse = 9916},
["Stantler"] = {chance = 400, corpse = 10002},
["Smeargle"] = {chance = 1500, corpse = 9961},
["Tyrogue"] = {chance = 300, corpse = 10524},
["Hitmontop"] = {chance = 1200, corpse = 9658},
["Smoochum"] = {chance = 100, corpse = 9962},
["Elekid"] = {chance = 600, corpse = 8964},
["Magby"] = {chance = 600, corpse = 9831},
["Miltank"] = {chance = 1500, corpse = 9873},
["Blissey"] = {chance = 2000, corpse = 8947},
["Larvitar"] = {chance = 600, corpse = 9823},
["Pupitar"] = {chance = 1000, corpse = 9917},
["Tyranitar"] = {chance = 2200, corpse = 10522},

["Giant Magikarp"] = {chance = 1500, corpse = 12749},
------------Shiny Catch-----------

["Shiny Venusaur"] = {chance = 700, corpse = 12422},
["Shiny Charizard"] = {chance = 700, corpse = 12425},
["Shiny Blastoise"] = {chance = 700, corpse = 12583}, --alterado v1.4
["Shiny Butterfree"] = {chance = 400, corpse = 12431},
["Shiny Beedrill"] = {chance = 400, corpse = 12434},
["Shiny Pidgeot"] = {chance = 600, corpse = 12437},
["Shiny Rattata"] = {chance = 100, corpse = 12438},
["Shiny Raticate"] = {chance = 200, corpse = 12439},
["Shiny Fearow"] = {chance = 800, corpse = 12441},
["Shiny Raichu"] = {chance = 600, corpse = 12445},
["Shiny Nidoking"] = {chance = 800, corpse = 12453},
["Shiny Zubat"] = {chance = 400, corpse = 12460},
["Shiny Golbat"] = {chance = 450, corpse = 12461},
["Shiny Oddish"] = {chance = 500, corpse = 12462},
["Shiny Vileplume"] = {chance = 800, corpse = 12464},
["Shiny Paras"] = {chance = 100, corpse = 12465},
["Shiny Parasect"] = {chance = 200, corpse = 12466},
["Shiny Venonat"] = {chance = 300, corpse = 12467},
["Shiny Venomoth"] = {chance = 500, corpse = 12468},
["Shiny Growlithe"] = {chance = 600, corpse = 12477},
["Shiny Arcanine"] = {chance = 800, corpse = 12478},
["Shiny Alakazam"] = {chance = 700, corpse = 12484},
["Shiny Tentacool"] = {chance = 450, corpse = 12491},
["Shiny Tentacruel"] = {chance = 600, corpse = 12492},
["Shiny Golem"] = {chance = 800, corpse = 12495},
["Shiny Farfetch'd"] = {chance = 550, corpse = 12502},
["Shiny Grimer"] = {chance = 500, corpse = 12507},
["Shiny Muk"] = {chance = 600, corpse = 12508},
["Shiny Gengar"] = {chance = 700, corpse = 12513},
["Shiny Onix"] = {chance = 2000, corpse = 12514},
["Shiny Hypno"] = {chance = 800, corpse = 12516},
["Shiny Krabby"] = {chance = 100, corpse = 12517},
["Shiny Kingler"] = {chance = 250, corpse = 12518},
["Shiny Voltorb"] = {chance = 250, corpse = 12519},
["Shiny Electrode"] = {chance = 400, corpse = 12520},
["Shiny Cubone"] = {chance = 500, corpse = 12524},
["Shiny Marowak"] = {chance = 600, corpse = 12525},
["Shiny Hitmonlee"] = {chance = 600, corpse = 12526},
["Shiny Hitmonchan"] = {chance = 600, corpse = 12527},
["Shiny Tangela"] = {chance = 550, corpse = 12534},
["Shiny Horsea"] = {chance = 100, corpse = 12536},
["Shiny Seadra"] = {chance = 250, corpse = 12537},
["Shiny Scyther"] = {chance = 700, corpse = 12543},
["Shiny Jynx"] = {chance = 800, corpse = 12544},
["Shiny Electabuzz"] = {chance = 800, corpse = 12545},
["Shiny Pinsir"] = {chance = 600, corpse = 12547},
["Shiny Magikarp"] = {chance = 80, corpse = 12549},  
["Shiny Giant Magikarp"] = {chance = 500, corpse = 12748},                  
["Shiny Gyarados"] = {chance = 800, corpse = 12550},
["Shiny Vaporeon"] = {chance = 800, corpse = 12554},
["Shiny Jolteon"] = {chance = 300, corpse = 12555},
["Shiny Flareon"] = {chance = 300, corpse = 12556},
["Shiny Snorlax"] = {chance = 700, corpse = 12680},
["Shiny Dratini"] = {chance = 700, corpse = 12567},
["Shiny Dragonair"] = {chance = 800, corpse = 12568},

["Shiny Mr. Mime"] = {chance = 800, corpse = 12595}, --alterado v1.9
["Shiny Rhydon"] = {chance = 1200, corpse = 12596},
["Shiny Ninetales"] = {chance = 1200, corpse = 12597},
["Shiny Ariados"] = {chance = 1200, corpse = 12598},
["Shiny Magneton"] = {chance = 1200, corpse = 12599},
["Shiny Espeon"] = {chance = 1200, corpse = 12600},
["Shiny Politoed"] = {chance = 1200, corpse = 12601},
["Shiny Umbreon"] = {chance = 1200, corpse = 12602},
["Shiny Stantler"] = {chance = 1200, corpse = 12603},
["Shiny Dodrio"] = {chance = 1200, corpse = 12604},
["Shiny Weezing"] = {chance = 600, corpse = 12686},
["Shiny Sandslash"] = {chance = 600, corpse = 12687},
["Shiny Crobat"] = {chance = 600, corpse = 12743},
["Shiny Magmar"] = {chance = 800, corpse = 12744},
["Shiny Magmortar"] = {chance = 1000, corpse = 13931},
["Shiny Electivire"] = {chance = 1000, corpse = 13940},
["Shiny Ampharos"] = {chance = 700, corpse = 12835},
["Shiny Feraligatr"] = {chance = 700, corpse = 12837},
["Shiny Larvitar"] = {chance = 800, corpse = 12839},
["Shiny Machamp"] = {chance = 600, corpse = 12841},
["Shiny Meganium"] = {chance = 700, corpse = 12843},
["Shiny Pupitar"] = {chance = 800, corpse = 12845},
["Shiny Tauros"] = {chance = 600, corpse = 12847},
["Shiny Typhlosion"] = {chance = 600, corpse = 12849},
["Shiny Xatu"] = {chance = 600, corpse = 12851},

-------------Hoenn Catch----------
["Sceptile"] = {chance = 1800},
["Tropius"] = {chance = 2200},
["Aron"] = {chance = 150},
["Lairon"] = {chance = 600},
["Aggron"] = {chance = 1800},
["Bagon"] = {chance = 300},
["Shelgon"] = {chance = 400},
["Corphish"] = {chance = 60},
["Crawdaunt"] = {chance = 600},
["Duskull"] = {chance = 100},
["Dusclops"] = {chance = 600},
["Dusknoir"] = {chance = 1500},
["Electrike"] = {chance = 300},
["Manectric"] = {chance = 1400},
["Lotad"] = {chance = 60},
["Lombre"] = {chance = 300},
["Ludicolo"] = {chance = 1200},
["Hariyama"] = {chance = 1200},
["Makuhita"] = {chance = 600},
["Mawile"] = {chance = 1600},
["Medicham"] = {chance = 1600},
["Ralts"] = {chance = 600},
["Kirlia"] = {chance = 1200},
["Gardevoir"] = {chance = 2000},
["Bronzong"] = {chance = 1200},
["Joltik"] = {chance = 600},
["Galvantula"] = {chance = 1800},
["Empoleon"] = {chance = 1200},
["Torterra"] = {chance = 1200},
["Infernape"] = {chance = 1200},
["Riolu"] = {chance = 600},
["Lucario"] = {chance = 1200},
["Kecleon"] = {chance = 1200},
["Sableye"] = {chance = 1502},
["Shiftry"] = {chance = 1326},
["Seviper"] = {chance = 1200},
["Shuppet"] = {chance = 100},
["Banette"] = {chance = 1500},
["Slakoth"] = {chance = 700},
["Vigoroth"] = {chance = 800},
["Slaking"] = {chance = 2200},
["Spheal"] = {chance = 100},
["Sealeo"] = {chance = 500},
["Walrein"] = {chance = 1800},
["Taillow"] = {chance = 100},
["Swellow"] = {chance = 1607},
["Torkoal"] = {chance = 1260},
["Trapinch"] = {chance = 100},
["Vibrava"] = {chance = 500},
["Flygon"] = {chance = 1200},
["Shiny Flygon"] = {chance = 700},
["Whismur"] = {chance = 100},
["Loudred"] = {chance = 150},
["Exploud"] = {chance = 900},
["Magnezone"] = {chance = 2260},
["Beldum"] = {chance = 600},
["Feebas"] = {chance = 550},
["Glalie"] = {chance = 1650},
["Snorunt"] = {chance = 800},
["Claydol"] = {chance = 2030},
["Camerupt"] = {chance = 1669},
["Numel"] = {chance = 800},
["Tropius"] = {chance = 2000},
["Blaziken"] = {chance = 1800},
["Swampert"] = {chance = 1800},
["Combusken"] = {chance = 600},
["Zangoose"] = {chance = 2085},
["Metang"] = {chance = 900},
["Marshtomp"] = {chance = 600},
["Grovyle"] = {chance = 600},
["Torchic"] = {chance = 150},
["Treecko"] = {chance = 150},
["Absol"] = {chance = 2080},
["Altaria"] = {chance = 1226},
["Baltoy"] = {chance = 350},
["Mudkip"] = {chance = 150},
["Metagross"] = {chance = 2205},
["Swablu"] = {chance = 200},
["Milotic"] = {chance = 2000},
["Shiny Milotic"] = {chance = 800},
["Numel"] = {chance = 400},
}

newpokedex = {
---- OUTLAND
["Clan Shiny Jynx"] = {gender = 0, level = 150, storage = 11240, stoCatch = 666275},
["Brave Nidoking"] = {gender = -1, level = 100, storage = 1034, stoCatch = 666034},
["Sunny Sunflora"] = {gender = -1, level = 100, storage = 1192, stoCatch = 666343},
["Rage Nidoqueen"] = {gender = 0, level = 100, storage = 1031, stoCatch = 666031},
["Acid Muk"] = {gender = -1, level = 100, storage = 1089, stoCatch = 666089},
["Poison Arbok"] = {gender = -1, level = 100, storage = 1024, stoCatch = 666024},
["Ghost Gengar"] = {gender = -1, level = 100, storage = 1094, stoCatch = 666094},
["Flying Golbat"] = {gender = -1, level = 100, storage = 1042, stoCatch = 666042},
["Dark Abra"] = {gender = -1, level = 100, storage = 10630, stoCatch = 666214},
["Ancient Gengar"] = {gender = -1, level = 150, storage = 10940, stoCatch = 666245},
["Brave Venusaur"] = {gender = -1, level = 100, storage = 1003, stoCatch = 666003},
["Ancient Meganium"] = {gender = -1, level = 150, storage = 1154, stoCatch = 666305},
["Furios Scyther"] = {gender = -1, level = 100, storage = 1123, stoCatch = 666123},
["Ancient Venusaur"] = {gender = -1, level = 150, storage = 10030, stoCatch = 666154},
["Slicer Scizor"] = {gender = -1, level = 100, storage = 1212, stoCatch = 666363},
["Ancient Parasect"] = {gender = -1, level = 150, storage = 10470, stoCatch = 666198},
["Brave Charizard"] = {gender = -1, level = 100, storage = 100, stoCatch = 666006},
["Flame Typhlosion"] = {gender = -1, level = 100, storage = 1157, stoCatch = 666308},
["Wardog Arcanine"] = {gender = -1, level = 100, storage = 1059, stoCatch = 666059},
["Lava Magmar"] = {gender = -1, level = 100, storage = 1126, stoCatch = 666126},
["Ancient Arcanine"] = {gender = -1, level = 150, storage = 10590, stoCatch = 666210},
["Elder Charizard"] = {gender = -1, level = 150, storage = 10060, stoCatch = 666157},
["Dark Houndoom"] = {gender = -1, level = 100, storage = 1229, stoCatch = 666380},
["Brave Fearow"] = {gender = -1, level = 100, storage = 1022, stoCatch = 666022},
["Aviator Pidgeot"] = {gender = -1, level = 100, storage = 1018, stoCatch = 666018},
["Iron Skarmory"] = {gender = -1, level = 100, storage = 1227, stoCatch = 666378},
["Owl Noctowl"] = {gender = -1, level = 100, storage = 1164, stoCatch = 666315},
["Fury Dragonair"] = {gender = -1, level = 100, storage = 1148, stoCatch = 666148},
["Ancient Dragonite"] = {gender = -1, level = 150, storage = 1149, stoCatch = 666149},
["Ancient Dragonair"] = {gender = -1, level = 150, storage = 11480, stoCatch = 666299},
["Elder Pidgeot"] = {gender = -1, level = 160, storage = 10180, stoCatch = 666169},
["Hard Golem"] = {gender = -1, level = 100, storage = 1076, stoCatch = 666076},
["Brute Rhydon"] = {gender = -1, level = 100, storage = 1112, stoCatch = 666112},
["Sand Sandslash"] = {gender = -1, level = 100, storage = 1028, stoCatch = 666028},
["Earth Donphan"] = {gender = -1, level = 100, storage = 1232, stoCatch = 666383},
["Ancient Onix"] = {gender = -1, level = 150, storage = 10950, stoCatch = 666246},
["Elder Tyranitar"] = {gender = -1, level = 150, storage = 1248, stoCatch = 666399},
["Ancient Steelix"] = {gender = -1, level = 150, storage = 1208, stoCatch = 666359},
["Puncher Hitmonchan"] = {gender = -1, level = 100, storage = 1106, stoCatch = 666106},
["Kicker Hitmonlee"] = {gender = -1, level = 100, storage = 1107, stoCatch = 666107},
["Ancient Ursaring"] = {gender = -1, level = 150, storage = 1217, stoCatch = 666368},
["Milk Miltank"] = {gender = 0, level = 100, storage = 1241, stoCatch = 666392},
["Rolling Hitmontop"] = {gender = -1, level = 100, storage = 1237, stoCatch = 666388},
["Brave Blastoise"] = {gender = -1, level = 100, storage = 1009, stoCatch = 666009},
["Ancient Blastoise"] = {gender = -1, level = 150, storage = 10090, stoCatch = 666160},
["Rage Gyarados"] = {gender = -1, level = 1000, storage = 1130, stoCatch = 666130},
["Ancient Jynx"] = {gender = 0, level = 150, storage = 11240, stoCatch = 666275},
["Frost Jynx"] = {gender = 0, level = 100, storage = 1124, stoCatch = 666124},
["Icy Dewgong"] = {gender = -1, level = 100, storage = 1087, stoCatch = 666087},
["Stupid Feraligatr"] = {gender = -1, level = 100, storage = 1160, stoCatch = 666311},
["Clamped Cloyster"] = {gender = -1, level = 100, storage = 1091, stoCatch = 666091},
["Surfing Mantine"] = {gender = -1, level = 100, storage = 1226, stoCatch = 666377},
["Spark Electrode"] = {gender = -1, level = 100, storage = 1101, stoCatch = 666101},
["Brave Electabuzz"] = {gender = -1, level = 100, storage = 1125, stoCatch = 666125},
["Ancient Ampharos"] = {gender = -1, level = 150, storage = 1181, stoCatch = 666332},
["Charged Raichu"] = {gender = -1, level = 100, storage = 1026, stoCatch = 666026},
["Ancient Raichu"] = {gender = -1, level = 150, storage = 10260, stoCatch = 666177},
["Ancient Electabuzz"] = {gender = -1, level = 150, storage = 11250, stoCatch = 666276},
["Brave Hypno"] = {gender = -1, level = 100, storage = 1097, stoCatch = 666097},
["Psyco Alakazam"] = {gender = -1, level = 100, storage = 1065, stoCatch = 666065},
["Ancient Alakazam"] = {gender = -1, level = 150, storage = 10650, stoCatch = 666216},
----
["Shiny Heracross"] = {gender = 875, level = 75, storage = 1252, stoCatch = 666404},
["Shiny Milotic"] = {gender = 875, level = 75, storage = 1252, stoCatch = 666404},
["Shiny Flygon"] = {gender = 875, level = 75, storage = 1252, stoCatch = 666404},
["Infernape"] = {gender = 875, level = 75, storage = 1252, stoCatch = 666404},
["Empoleon"] = {gender = 875, level = 75, storage = 1252, stoCatch = 666404},
["Joltik"] = {gender = 875, level = 75, storage = 1252, stoCatch = 666404},
["Galvantula"] = {gender = 875, level = 75, storage = 1252, stoCatch = 666404},
["Torterra"] = {gender = 875, level = 75, storage = 1252, stoCatch = 666404},
["Bronzong"] = {gender = 875, level = 75, storage = 1252, stoCatch = 666404},
["Shiny Lapras"] = {gender = 875, level = 75, storage = 1252, stoCatch = 666404},
["Kecleon"] = {gender = 875, level = 75, storage = 1252, stoCatch = 666404},
["Luccario"] = {gender = 875, level = 75, storage = 1252, stoCatch = 666404},
["Riolu"] = {gender = 875, level = 75, storage = 1252, stoCatch = 666404},
["Sceptile"] = {gender = 875, level = 75, storage = 1252, stoCatch = 666404},
["Tropius"] = {gender = 875, level = 80, storage = 1253, stoCatch = 666405},
["Aron"] = {gender = 500, level = 15, storage = 1376},
["Lairon"] = {gender = 500, level = 50, storage = 1377},
["Aggron"] = {gender = 500, level = 65, storage = 1378},
["Bagon"] = {gender = 500, level = 45, storage = 1379},
["Shelgon"] = {gender = 500, level = 45, storage = 1380},
["Metagross"] = {gender = 500, level = 80, storage = 1298},
["Combusken"] = {gender = 875, level = 38, storage = 1279},
["Blaziken"] = {gender = 875, level = 75, storage = 1280},
["Swampert"] = {gender = 875, level = 75, storage = 1281},
["Marshtomp"] = {gender = 875, level = 38, storage = 1282},
["Metang"] = {gender = 500, level = 50, storage = 1277},
["Grovyle"] = {gender = 875, level = 38, storage = 1283},
["Absol"] = {gender = 875, level = 55, storage = 1254},
["Altaria"] = {gender = 500, level = 60, storage = 1255},
["Baltoy"] = {gender = 500, level = 15, storage = 1256},
["Camerupt"] = {gender = 500, level = 85, storage = 1259},
["Numel"] = {gender = 500, level = 40, storage = 1259},
["Claydol"] = {gender = 500, level = 95, storage = 1262},
["Torchic"] = {gender = 875, level = 18, storage = 1284},
["Treecko"] = {gender = 875, level = 18, storage = 1285},
["Mudkip"] = {gender = 875, level = 18, storage = 1286},
["Glalie"] = {gender = 500, level = 60, storage = 1290},
["Snorunt"] = {gender = 500, level = 20, storage = 1290},
["Wailmer"] = {gender = 875, level = 38, storage = 1311},
["Wailord"] = {gender = 875, level = 75, storage = 1312},
["Beldum"] = {gender = 500, level = 15, storage = 1304},
["Feebas"] = {gender = 500, level = 1, storage = 1305},
["Swablu"] = {gender = 500, level = 3, storage = 1319},
["Milotic"] = {gender = 500, level = 75, storage = 1320},
["Corphish"] = {gender = 875, level = 18, storage = 1394},
["Crawdaunt"] = {gender = 875, level = 38, storage = 1395},
["Duskull"] = {gender = 500, level = 14, storage = 1396},
["Dusclops"] = {gender = 500, level = 40, storage = 1397},
["Dusknoir"] = {gender = 500, level = 70, storage = 1398},
["Electrike"] = {gender = 500, level = 20, storage = 1399},
["Manectric"] = {gender = 500, level = 50, storage = 1400},
["Lotad"] = {gender = 875, level = 18, storage = 1406},
["Lombre"] = {gender = 875, level = 38, storage = 1407},
["Ludicolo"] = {gender = 875, level = 75, storage = 1408},
["Hariyama"] = {gender = 1000, level = 60, storage = 1411},
["Makuhita"] = {gender = 1000, level = 20, storage = 1411},
["Mawile"] = {gender = 500, level = 50, storage = 1412},
["Medicham"] = {gender = 750, level = 40, storage = 1414},
["Ralts"] = {gender = 750, level = 12, storage = 1420},
["Kirlia"] = {gender = 750, level = 40, storage = 1421},
["Lucario"] = {gender = 750, level = 20, storage = 1421},
["Riolu"] = {gender = 750, level = 100, storage = 1421},
["Kecleon"] = {gender = 750, level = 200, storage = 1421},
["Gardevoir"] = {gender = 750, level = 70, storage = 1422},
["Sableye"] = {gender = 500, level = 47, storage = 1425},
["Shiftry"] = {gender = 875, level = 75, storage = 1428},
["Seviper"] = {gender = 500, level = 30, storage = 1429},
["Shuppet"] = {gender = 500, level = 14, storage = 1432},
["Banette"] = {gender = 500, level = 40, storage = 1433},
["Slakoth"] = {gender = 500, level = 20, storage = 1436},
["Vigoroth"] = {gender = 500, level = 30, storage = 1437},
["Slaking"] = {gender = 500, level = 70, storage = 1438},
["Spheal"] = {gender = 500, level = 14, storage = 1439},
["Sealeo"] = {gender = 500, level = 55, storage = 1440},
["Walrein"] = {gender = 500, level = 65, storage = 1441},
["Swellow"] = {gender = 500, level = 38, storage = 1448},
["Torkoal"] = {gender = 500, level = 55, storage = 1449},
["Trapinch"] = {gender = 500, level = 15, storage = 1450},
["Vibrava"] = {gender = 500, level = 45, storage = 1451},
["Flygon"] = {gender = 500, level = 85, storage = 1452},
["Whismur"] = {gender = 500, level = 20, storage = 1457},
["Loudred"] = {gender = 500, level = 70, storage = 1458},
["Exploud"] = {gender = 500, level = 80, storage = 1459},
["Magnezone"] = {gender = 500, level = 50, storage = 1468},
--
["Aron"] = {gender = 500, level = 15, storage = 1376},
["Lairon"] = {gender = 500, level = 50, storage = 1377},
["Aggron"] = {gender = 500, level = 65, storage = 1378},
["Bagon"] = {gender = 500, level = 45, storage = 1379},
["Shelgon"] = {gender = 500, level = 45, storage = 1380},
["Metagross"] = {gender = 500, level = 80, storage = 1298},
["Combusken"] = {gender = 875, level = 38, storage = 1279},
["Blaziken"] = {gender = 875, level = 75, storage = 1280},
["Swampert"] = {gender = 875, level = 75, storage = 1281},
["Marshtomp"] = {gender = 875, level = 38, storage = 1282},
["Metang"] = {gender = 500, level = 50, storage = 1277},
["Grovyle"] = {gender = 875, level = 38, storage = 1283},
["Absol"] = {gender = 875, level = 55, storage = 1254},
["Altaria"] = {gender = 500, level = 60, storage = 1255},
["Baltoy"] = {gender = 500, level = 15, storage = 1256},
["Camerupt"] = {gender = 500, level = 85, storage = 1259},
["Claydol"] = {gender = 500, level = 95, storage = 1262},
["Torchic"] = {gender = 875, level = 18, storage = 1284},
["Treecko"] = {gender = 875, level = 18, storage = 1285},
["Mudkip"] = {gender = 875, level = 18, storage = 1286},
["Glalie"] = {gender = 500, level = 45, storage = 1290},
["Wailord"] = {gender = 875, level = 75, storage = 1312},
["Beldum"] = {gender = 500, level = 15, storage = 1304},
["Feebas"] = {gender = 500, level = 1, storage = 1305},
["Swablu"] = {gender = 500, level = 3, storage = 1319},
["Milotic"] = {gender = 500, level = 75, storage = 1320},
["Corphish"] = {gender = 875, level = 18, storage = 1394},
["Crawdaunt"] = {gender = 875, level = 38, storage = 1395},
["Duskull"] = {gender = 500, level = 14, storage = 1396},
["Dusclops"] = {gender = 500, level = 40, storage = 1397},
["Dusknoir"] = {gender = 500, level = 70, storage = 1398},
["Electrike"] = {gender = 500, level = 20, storage = 1399},
["Manectric"] = {gender = 500, level = 50, storage = 1400},
["Lotad"] = {gender = 875, level = 18, storage = 1406},
["Lombre"] = {gender = 875, level = 38, storage = 1407},
["Ludicolo"] = {gender = 875, level = 75, storage = 1408},
["Hariyama"] = {gender = 1000, level = 60, storage = 1411},
["Mawile"] = {gender = 500, level = 50, storage = 1412},
["Medicham"] = {gender = 750, level = 40, storage = 1414},
["Ralts"] = {gender = 750, level = 12, storage = 1420},
["Kirlia"] = {gender = 750, level = 40, storage = 1421},
["Kecleon"] = {gender = 750, level = 40, storage = 1421},
["Gardevoir"] = {gender = 750, level = 70, storage = 1422},
["Sableye"] = {gender = 500, level = 47, storage = 1425},
["Seviper"] = {gender = 500, level = 30, storage = 1429},
["Shuppet"] = {gender = 500, level = 14, storage = 1432},
["Banette"] = {gender = 500, level = 40, storage = 1433},
["Slakoth"] = {gender = 500, level = 20, storage = 1436},
["Vigoroth"] = {gender = 500, level = 30, storage = 1437},
["Slaking"] = {gender = 500, level = 70, storage = 1438},
["Spheal"] = {gender = 500, level = 14, storage = 1439},
["Sealeo"] = {gender = 500, level = 55, storage = 1440},
["Walrein"] = {gender = 500, level = 65, storage = 1441},
["Swellow"] = {gender = 500, level = 38, storage = 1448},
["Torkoal"] = {gender = 500, level = 55, storage = 1449},
["Trapinch"] = {gender = 500, level = 15, storage = 1450},
["Vibrava"] = {gender = 500, level = 45, storage = 1451},
["Flygon"] = {gender = 500, level = 85, storage = 1452},
["Whismur"] = {gender = 500, level = 20, storage = 1457},
["Loudred"] = {gender = 500, level = 70, storage = 1458},
["Exploud"] = {gender = 500, level = 80, storage = 1459},
["Magnezone"] = {gender = 500, level = 50, storage = 1468},
--
["Bulbasaur"] = {gender = 875, level = 1, storage = 1001, stoCatch = 666001},
["Ivysaur"] = {gender = 875, level = 40, storage = 1002, stoCatch = 666002},
["Venusaur"] = {gender = 875, level = 85, storage = 1003, stoCatch = 666003},
["Charmander"] = {gender = 875, level = 1, storage = 1004, stoCatch = 666004},
["Charmeleon"] = {gender = 875, level = 40, storage = 1005, stoCatch = 666005},
["Charizard"] = {gender = 875, level = 85, storage = 1006, stoCatch = 666006},
["Squirtle"] = {gender = 875, level = 1, storage = 1007, stoCatch = 666007},
["Wartortle"] = {gender = 875, level = 40, storage = 1008, stoCatch = 666008},
["Blastoise"] = {gender = 875, level = 85, storage = 1009, stoCatch = 666009},
["Caterpie"] = {gender = 500, level = 5, storage = 1010, stoCatch = 666010},
["Metapod"] = {gender = 500, level = 15, storage = 1011, stoCatch = 666011},
["Butterfree"] = {gender = 500, level = 30, storage = 1012, stoCatch = 666012},
["Weedle"] = {gender = 500, level = 5, storage = 1013, stoCatch = 666013},
["Kakuna"] = {gender = 500, level = 15, storage = 1014, stoCatch = 666014},
["Beedrill"] = {gender = 500, level = 30, storage = 1015, stoCatch = 666015},
["Pidgey"] = {gender = 500, level = 5, storage = 1016, stoCatch = 666016},
["Pidgeotto"] = {gender = 500, level = 20, storage = 1017, stoCatch = 666017},
["Pidgeot"] = {gender = 500, level = 75, storage = 1018, stoCatch = 666018},
["Rattata"] = {gender = 500, level = 5, storage = 1019, stoCatch = 666019},
["Raticate"] = {gender = 500, level = 60, storage = 1020, stoCatch = 666020},
["Spearow"] = {gender = 500, level = 10, storage = 1021, stoCatch = 666021},
["Fearow"] = {gender = 500, level = 50, storage = 1022, stoCatch = 666022},
["Ekans"] = {gender = 500, level = 15, storage = 1023, stoCatch = 666023},
["Arbok"] = {gender = 500, level = 35, storage = 1024, stoCatch = 666024},
["Pikachu"] = {gender = 500, level = 40, storage = 1025, stoCatch = 666025},
["Raichu"] = {gender = 500, level = 85, storage = 1026, stoCatch = 666026},
["Sandshrew"] = {gender = 500, level = 20, storage = 1027, stoCatch = 666027},
["Sandslash"] = {gender = 500, level = 65, storage = 1028, stoCatch = 666028},
["Nidoran Female"] = {gender = 0, level = 10, storage = 1029, stoCatch = 666029},
["Nidorina"] = {gender = 0, level = 30, storage = 1030, stoCatch = 666030},
["Nidoqueen"] = {gender = 0, level = 65, storage = 1031, stoCatch = 666031},
["Nidoran Male"] = {gender = 1000, level = 10, storage = 1032, stoCatch = 666032},
["Nidorino"] = {gender = 1000, level = 30, storage = 1033, stoCatch = 666033},
["Nidoking"] = {gender = 1000, level = 65, storage = 1034, stoCatch = 666034},
["Clefairy"] = {gender = 250, level = 50, storage = 1035, stoCatch = 666035},
["Clefable"] = {gender = 250, level = 65, storage = 1036, stoCatch = 666036},
["Vulpix"] = {gender = 250, level = 15, storage = 1037, stoCatch = 666037},
["Ninetales"] = {gender = 250, level = 70, storage = 1038, stoCatch = 666038},
["Jigglypuff"] = {gender = 250, level = 40, storage = 1039, stoCatch = 666039},
["Wigglytuff"] = {gender = 250, level = 65, storage = 1040, stoCatch = 666040},
["Zubat"] = {gender = 500, level = 10, storage = 1041, stoCatch = 666041},
["Golbat"] = {gender = 500, level = 35, storage = 1042, stoCatch = 666042},
["Oddish"] = {gender = 500, level = 5, storage = 1043, stoCatch = 666043},
["Gloom"] = {gender = 500, level = 30, storage = 1044, stoCatch = 666044},
["Vileplume"] = {gender = 500, level = 50, storage = 1045, stoCatch = 666045},
["Paras"] = {gender = 500, level = 5, storage = 1046, stoCatch = 666046},
["Parasect"] = {gender = 500, level = 50, storage = 1047, stoCatch = 666047},
["Venonat"] = {gender = 500, level = 20, storage = 1048, stoCatch = 666048},
["Venomoth"] = {gender = 500, level = 50, storage = 1049, stoCatch = 666049},
["Diglett"] = {gender = 500, level = 10, storage = 1050, stoCatch = 666050},
["Dugtrio"] = {gender = 500, level = 35, storage = 1051, stoCatch = 666051},
["Meowth"] = {gender = 500, level = 15, storage = 1052, stoCatch = 666052},
["Persian"] = {gender = 500, level = 30, storage = 1053, stoCatch = 666053},
["Psyduck"] = {gender = 500, level = 20, storage = 1054, stoCatch = 666054},
["Golduck"] = {gender = 500, level = 55, storage = 1055, stoCatch = 666055},
["Mankey"] = {gender = 500, level = 10, storage = 1056, stoCatch = 666056},
["Primeape"] = {gender = 500, level = 50, storage = 1057, stoCatch = 666057},
["Growlithe"] = {gender = 750, level = 25, storage = 1058, stoCatch = 666058},
["Arcanine"] = {gender = 750, level = 80, storage = 1059, stoCatch = 666059},
["Poliwag"] = {gender = 500, level = 5, storage = 1060, stoCatch = 666060},
["Poliwhirl"] = {gender = 500, level = 25, storage = 1061, stoCatch = 666061},
["Poliwrath"] = {gender = 500, level = 65, storage = 1062, stoCatch = 666062},
["Abra"] = {gender = 750, level = 15, storage = 1063, stoCatch = 666063},
["Kadabra"] = {gender = 750, level = 45, storage = 1064, stoCatch = 666064},
["Alakazam"] = {gender = 750, level = 80, storage = 1065, stoCatch = 666065},
["Machop"] = {gender = 750, level = 20, storage = 1066, stoCatch = 666066},
["Machoke"] = {gender = 750, level = 45, storage = 1067, stoCatch = 666067},
["Machamp"] = {gender = 750, level = 80, storage = 1068, stoCatch = 666068},
["Bellsprout"] = {gender = 500, level = 5, storage = 1069, stoCatch = 666069},
["Weepinbell"] = {gender = 500, level = 25, storage = 1070, stoCatch = 666070},
["Victreebel"] = {gender = 500, level = 50, storage = 1071, stoCatch = 666071},
["Tentacool"] = {gender = 500, level = 15, storage = 1072, stoCatch = 666072},
["Tentacruel"] = {gender = 500, level = 75, storage = 1073, stoCatch = 666073},
["Geodude"] = {gender = 500, level = 15, storage = 1074, stoCatch = 666074},
["Graveler"] = {gender = 500, level = 40, storage = 1075, stoCatch = 666075},
["Golem"] = {gender = 500, level = 70, storage = 1076, stoCatch = 666076},
["Ponyta"] = {gender = 500, level = 20, storage = 1077, stoCatch = 666077},
["Rapidash"] = {gender = 500, level = 50, storage = 1078, stoCatch = 666078},
["Slowpoke"] = {gender = 500, level = 15, storage = 1079, stoCatch = 666079},
["Slowbro"] = {gender = 500, level = 45, storage = 1080, stoCatch = 666080},
["Magnemite"] = {gender = -1, level = 15, storage = 1081, stoCatch = 666081},
["Magneton"] = {gender = -1, level = 75, storage = 1082, stoCatch = 666082},
["Magnezone"] = {gender = -1, level = 100, storage = 1082, stoCatch = 666082},
["Farfetch'd"] = {gender = 500, level = 40, storage = 1083, stoCatch = 666083},
["Doduo"] = {gender = 500, level = 15, storage = 1084, stoCatch = 666084},
["Dodrio"] = {gender = 500, level = 45, storage = 1085, stoCatch = 666085},
["Seel"] = {gender = 500, level = 20, storage = 1086, stoCatch = 666086},
["Dewgong"] = {gender = 500, level = 65, storage = 1087, stoCatch = 666087},
["Grimer"] = {gender = 500, level = 15, storage = 1088, stoCatch = 666088},
["Muk"] = {gender = 500, level = 70, storage = 1089, stoCatch = 666089},
["Shellder"] = {gender = 500, level = 10, storage = 1090, stoCatch = 666090},
["Cloyster"] = {gender = 500, level = 60, storage = 1091, stoCatch = 666091},
["Gastly"] = {gender = 500, level = 20, storage = 1092, stoCatch = 666092},
["Haunter"] = {gender = 500, level = 45, storage = 1093, stoCatch = 666093},
["Gengar"] = {gender = 500, level = 80, storage = 1094, stoCatch = 666094},
["Onix"] = {gender = 500, level = 50, storage = 1095, stoCatch = 666095},
["Drowzee"] = {gender = 500, level = 25, storage = 1096, stoCatch = 666096},
["Hypno"] = {gender = 500, level = 55, storage = 1097, stoCatch = 666097},
["Krabby"] = {gender = 500, level = 10, storage = 1098, stoCatch = 666098},
["Kingler"] = {gender = 500, level = 40, storage = 1099, stoCatch = 666099},
["Voltorb"] = {gender = -1, level = 10, storage = 1100, stoCatch = 666100},
["Electrode"] = {gender = -1, level = 35, storage = 1101, stoCatch = 666101},
["Exeggcute"] = {gender = 500, level = 10, storage = 1102, stoCatch = 666102},
["Exeggutor"] = {gender = 500, level = 80, storage = 1103, stoCatch = 666103},
["Cubone"] = {gender = 500, level = 20, storage = 1104, stoCatch = 666104},
["Marowak"] = {gender = 500, level = 55, storage = 1105, stoCatch = 666105},
["Hitmonlee"] = {gender = 1000, level = 60, storage = 1106, stoCatch = 666106},
["Hitmonchan"] = {gender = 1000, level = 60, storage = 1107, stoCatch = 666107},
["Lickitung"] = {gender = 500, level = 55, storage = 1108, stoCatch = 666108},
["Koffing"] = {gender = 500, level = 15, storage = 1109, stoCatch = 666109},
["Weezing"] = {gender = 500, level = 35, storage = 1110, stoCatch = 666110},
["Rhyhorn"] = {gender = 500, level = 30, storage = 1111, stoCatch = 666111},
["Rhydon"] = {gender = 500, level = 75, storage = 1112, stoCatch = 666112},
["Chansey"] = {gender = 0, level = 60, storage = 1113, stoCatch = 666113},
["Tangela"] = {gender = 500, level = 50, storage = 1114, stoCatch = 666114},
["Kangaskhan"] = {gender = 0, level = 80, storage = 1115, stoCatch = 666115},
["Horsea"] = {gender = 500, level = 10, storage = 1116, stoCatch = 666116},
["Seadra"] = {gender = 500, level = 45, storage = 1117, stoCatch = 666117},
["Goldeen"] = {gender = 500, level = 10, storage = 1118, stoCatch = 666118},
["Seaking"] = {gender = 500, level = 35, storage = 1119, stoCatch = 666119},
["Staryu"] = {gender = -1, level = 15, storage = 1120, stoCatch = 666120},
["Starmie"] = {gender = -1, level = 75, storage = 1121, stoCatch = 666121},
["Mr. Mime"] = {gender = 500, level = 45, storage = 1122, stoCatch = 666122},
["Scyther"] = {gender = 500, level = 80, storage = 1123, stoCatch = 666123},
["Jynx"] = {gender = 0, level = 80, storage = 1124, stoCatch = 666124},
["Electabuzz"] = {gender = 750, level = 80, storage = 1125, stoCatch = 666125},
["Magmar"] = {gender = 750, level = 80, storage = 1126, stoCatch = 666126},
["Pinsir"] = {gender = 500, level = 45, storage = 1127, stoCatch = 666127},
["Tauros"] = {gender = 1000, level = 45, storage = 1128, stoCatch = 666128},
["Magikarp"] = {gender = 500, level = 1, storage = 1129, stoCatch = 666129},
["Gyarados"] = {gender = 500, level = 85, storage = 1130, stoCatch = 666130},
["Lapras"] = {gender = 500, level = 80, storage = 1131, stoCatch = 666131},
["Ditto"] = {gender = -1, level = 40, storage = 1132, stoCatch = 666132},
["Eevee"] = {gender = 875, level = 20, storage = 1133, stoCatch = 666133},
["Leafeon"] = {gender = 875, level = 70, storage = 1133, stoCatch = 666133},
["Glaceon"] = {gender = 875, level = 70, storage = 1133, stoCatch = 666133},
["Sylveon"] = {gender = 875, level = 70, storage = 1133, stoCatch = 666133},
["Vaporeon"] = {gender = 875, level = 55, storage = 1134, stoCatch = 666134},
["Jolteon"] = {gender = 875, level = 55, storage = 1135, stoCatch = 666135},
["Flareon"] = {gender = 875, level = 55, storage = 1136, stoCatch = 666136},
["Porygon"] = {gender = -1, level = 40, storage = 1137, stoCatch = 666137},
["Omanyte"] = {gender = 875, level = 20, storage = 1138, stoCatch = 666138},
["Omastar"] = {gender = 875, level = 80, storage = 1139, stoCatch = 666139},
["Kabuto"] = {gender = 875, level = 20, storage = 1140, stoCatch = 666140},
["Kabutops"] = {gender = 875, level = 80, storage = 1141, stoCatch = 666141},
["Aerodactyl"] = {gender = 875, level = 100, storage = 1142, stoCatch = 666142},
["Snorlax"] = {gender = 875, level = 85, storage = 1143, stoCatch = 666143},
["Articuno"] = {gender = 500, level = 150, storage = 1144, stoCatch = 666144},
["Zapdos"] = {gender = 500, level = 150, storage = 1145, stoCatch = 666145},
["Moltres"] = {gender = 500, level = 150, storage = 1146, stoCatch = 666146},
["Dratini"] = {gender = 500, level = 20, storage = 1147, stoCatch = 666147},
["Dragonair"] = {gender = 500, level = 60, storage = 1148, stoCatch = 666148},
["Dragonite"] = {gender = 500, level = 100, storage = 1149, stoCatch = 666149},
["Mewtwo"] = {gender = 500, level = 150, storage = 1150, stoCatch = 666150},
["Mew"] = {gender = 500, level = 150, storage = 1151, stoCatch = 666151},
["Giant Magikarp"] = {gender = 875, level = 10, storage = 104, stoCatch = 666010},


["Shiny Venusaur"] = {gender = 875, level = 100, storage = 10030, stoCatch = 666154},
["Shiny Charizard"] = {gender = 875, level = 100, storage = 10060, stoCatch = 666157},
["Shiny Blastoise"] = {gender = 875, level = 100, storage = 10090, stoCatch = 666160},
["Shiny Butterfree"] = {gender = 500, level = 60, storage = 10120, stoCatch = 666163},
["Shiny Beedrill"] = {gender = 500, level = 60, storage = 10150, stoCatch = 666166},
["Shiny Pidgeot"] = {gender = 500, level = 100, storage = 10180, stoCatch = 666169},
["Shiny Rattata"] = {gender = 500, level = 10, storage = 10190, stoCatch = 666170},
["Shiny Raticate"] = {gender = 500, level = 60, storage = 10200, stoCatch = 666171},
["Shiny Fearow"] = {gender = 500, level = 100, storage = 10220, stoCatch = 666173},
["Shiny Raichu"] = {gender = 500, level = 100, storage = 10260, stoCatch = 666177},
["Shiny Nidoking"] = {gender = 1000, level = 100, storage = 10340, stoCatch = 666185},
["Shiny Zubat"] = {gender = 500, level = 10, storage = 10410, stoCatch = 666192},
["Shiny Golbat"] = {gender = 500, level = 60, storage = 10420, stoCatch = 666193},
["Shiny Oddish"] = {gender = 500, level = 10, storage = 10430, stoCatch = 666194},
["Shiny Vileplume"] = {gender = 500, level = 100, storage = 10450, stoCatch = 666196},
["Shiny Paras"] = {gender = 500, level = 10, storage = 10460, stoCatch = 666197},
["Shiny Parasect"] = {gender = 500, level = 60, storage = 10470, stoCatch = 666198},
["Shiny Venonat"] = {gender = 500, level = 30, storage = 10480, stoCatch = 666199},
["Shiny Venomoth"] = {gender = 500, level = 80, storage = 10490, stoCatch = 666200},
["Shiny Growlithe"] = {gender = 750, level = 35, storage = 10580, stoCatch = 666209},
["Shiny Arcanine"] = {gender = 750, level = 100, storage = 10590, stoCatch = 666210},
["Shiny Abra"] = {gender = 750, level = 80, storage = 10630, stoCatch = 666214},
["Shiny Alakazam"] = {gender = 750, level = 100, storage = 10650, stoCatch = 666216},
["Shiny Tentacool"] = {gender = 500, level = 25, storage = 10720, stoCatch = 666223},
["Shiny Tentacruel"] = {gender = 500, level = 100, storage = 10730, stoCatch = 666224},
["Shiny Golem"] = {gender = 500, level = 100, storage = 10760, stoCatch = 666227},
["Shiny Farfetch'd"] = {gender = 500, level = 100, storage = 10830, stoCatch = 666234},
["Shiny Grimer"] = {gender = 500, level = 25, storage = 10880, stoCatch = 666239},
["Shiny Muk"] = {gender = 500, level = 100, storage = 10890, stoCatch = 666240},
["Shiny Gengar"] = {gender = 500, level = 100, storage = 10940, stoCatch = 666245},
["Shiny Onix"] = {gender = 500, level = 100, storage = 10950, stoCatch = 666246},
["Shiny Hypno"] = {gender = 500, level = 100, storage = 10970, stoCatch = 666248},
["Shiny Krabby"] = {gender = 500, level = 15, storage = 10980, stoCatch = 666249},
["Shiny Kingler"] = {gender = 500, level = 60, storage = 10990, stoCatch = 666250},
["Shiny Voltorb"] = {gender = -1, level = 25, storage = 11000, stoCatch = 666251},
["Shiny Electrode"] = {gender = -1, level = 80, storage = 11010, stoCatch = 666252},
["Shiny Cubone"] = {gender = 500, level = 30, storage = 11040, stoCatch = 666255},
["Shiny Marowak"] = {gender = 500, level = 100, storage = 11050, stoCatch = 666256},
["Shiny Hitmonlee"] = {gender = 1000, level = 100, storage = 11060, stoCatch = 666257},
["Shiny Hitmonchan"] = {gender = 1000, level = 100, storage = 11070, stoCatch = 666258},
["Shiny Tangela"] = {gender = 500, level = 100, storage = 11140, stoCatch = 666265},
["Shiny Horsea"] = {gender = 500, level = 15, storage = 11160, stoCatch = 666267},
["Shiny Seadra"] = {gender = 500, level = 60, storage = 11170, stoCatch = 666268},
["Shiny Scyther"] = {gender = 500, level = 100, storage = 11230, stoCatch = 666274},
["Shiny Jynx"] = {gender = 0, level = 100, storage = 11240, stoCatch = 666275},
["Shiny Electabuzz"] = {gender = 750, level = 100, storage = 11250, stoCatch = 666276},
["Shiny Pinsir"] = {gender = 500, level = 100, storage = 11270, stoCatch = 666278},
["Shiny Magikarp"] = {gender = 500, level = 10, storage = 11290, stoCatch = 666280},
["Shiny Gyarados"] = {gender = 500, level = 120, storage = 11300, stoCatch = 666281},
["Shiny Vaporeon"] = {gender = 875, level = 100, storage = 11340, stoCatch = 666285},
["Shiny Jolteon"] = {gender = 875, level = 100, storage = 11350, stoCatch = 666286},
["Shiny Flareon"] = {gender = 875, level = 100, storage = 11360, stoCatch = 666287},
["Shiny Snorlax"] = {gender = 875, level = 120, storage = 11430, stoCatch = 666294},
["Shiny Dratini"] = {gender = 500, level = 25, storage = 11470, stoCatch = 666298},
["Shiny Dragonair"] = {gender = 500, level = 100, storage = 11480, stoCatch = 666299},
["Shiny Dragonite"] = {gender = 500, level = 120, storage = 11490, stoCatch = 666300},

["Chikorita"] = {gender = 875, level = 20, storage = 1152, stoCatch = 666303},
["Bayleef"] = {gender = 875, level = 40, storage = 1153, stoCatch = 666304},
["Meganium"] = {gender = 875, level = 85, storage = 1154, stoCatch = 666305},
["Cyndaquil"] = {gender = 875, level = 20, storage = 1155, stoCatch = 666306},
["Quilava"] = {gender = 875, level = 40, storage = 1156, stoCatch = 666307},
["Typhlosion"] = {gender = 875, level = 85, storage = 1157, stoCatch = 666308},
["Totodile"] = {gender = 875, level = 20, storage = 1158, stoCatch = 666309},
["Croconaw"] = {gender = 875, level = 40, storage = 1159, stoCatch = 666310},
["Feraligatr"] = {gender = 875, level = 85, storage = 1160, stoCatch = 666311},
["Sentret"] = {gender = 500, level = 15, storage = 1161, stoCatch = 666312},
["Furret"] = {gender = 500, level = 35, storage = 1162, stoCatch = 666313},
["Hoothoot"] = {gender = 500, level = 20, storage = 1163, stoCatch = 666314},
["Noctowl"] = {gender = 500, level = 65, storage = 1164, stoCatch = 666315},
["Ledyba"] = {gender = 500, level = 15, storage = 1165, stoCatch = 666316},
["Ledian"] = {gender = 500, level = 35, storage = 1166, stoCatch = 666317},
["Spinarak"] = {gender = 500, level = 10, storage = 1167, stoCatch = 666318},
["Ariados"] = {gender = 500, level = 40, storage = 1168, stoCatch = 666319},
["Crobat"] = {gender = 500, level = 80, storage = 1169, stoCatch = 666320},
["Chinchou"] = {gender = 500, level = 15, storage = 1170, stoCatch = 666321},
["Lanturn"] = {gender = 500, level = 50, storage = 1171, stoCatch = 666322},
["Pichu"] = {gender = 500, level = 20, storage = 1172, stoCatch = 666323},
["Cleffa"] = {gender = 500, level = 20, storage = 1173, stoCatch = 666324},
["Igglybuff"] = {gender = 500, level = 20, storage = 1174, stoCatch = 666325},
["Togepi"] = {gender = 500, level = 5, storage = 1175, stoCatch = 666326},
["Togetic"] = {gender = 875, level = 60, storage = 1176, stoCatch = 666327},
["Natu"] = {gender = 500, level = 25, storage = 1177, stoCatch = 666328},
["Xatu"] = {gender = 500, level = 75, storage = 1178, stoCatch = 666329},
["Mareep"] = {gender = 500, level = 20, storage = 1179, stoCatch = 666330},
["Flaaffy"] = {gender = 500, level = 40, storage = 1180, stoCatch = 666331},
["Ampharos"] = {gender = 500, level = 85, storage = 1181, stoCatch = 666332},
["Bellossom"] = {gender = 500, level = 50, storage = 1182, stoCatch = 666333},
["Marill"] = {gender = 500, level = 20, storage = 1183, stoCatch = 666334},
["Azumarill"] = {gender = 500, level = 65, storage = 1184, stoCatch = 666335},
["Sudowoodo"] = {gender = 500, level = 80, storage = 1185, stoCatch = 666336},
["Politoed"] = {gender = 500, level = 65, storage = 1186, stoCatch = 666337},
["Hoppip"] = {gender = 500, level = 5, storage = 1187, stoCatch = 666338},
["Skiploom"] = {gender = 500, level = 25, storage = 1188, stoCatch = 666339},
["Jumpluff"] = {gender = 500, level = 50, storage = 1189, stoCatch = 666340},
["Aipom"] = {gender = 500, level = 40, storage = 1190, stoCatch = 666341},
["Sunkern"] = {gender = 500, level = 5, storage = 1191, stoCatch = 666342},
["Sunflora"] = {gender = 500, level = 30, storage = 1192, stoCatch = 666343},
["Yanma"] = {gender = 500, level = 50, storage = 1193, stoCatch = 666344},
["Wooper"] = {gender = 500, level = 20, storage = 1194, stoCatch = 666345},
["Quagsire"] = {gender = 500, level = 65, storage = 1195, stoCatch = 666346},
["Espeon"] = {gender = 875, level = 55, storage = 1196, stoCatch = 666347},
["Umbreon"] = {gender = 875, level = 55, storage = 1197, stoCatch = 666348},
["Murkrow"] = {gender = 500, level = 55, storage = 1198, stoCatch = 666349},
["Slowking"] = {gender = 500, level = 100, storage = 1199, stoCatch = 666350},
["Shiny Slowking"] = {gender = 500, level = 100, storage = 1199, stoCatch = 666350},
["Misdreavus"] = {gender = 500, level = 80, storage = 1200, stoCatch = 666351},
["Unown"] = {gender = 500, level = 100, storage = 1201, stoCatch = 666352},
["Wobbuffet"] = {gender = 500, level = 80, storage = 1202, stoCatch = 666353},
["Girafarig"] = {gender = 500, level = 80, storage = 1203, stoCatch = 666354},
["Pineco"] = {gender = 500, level = 15, storage = 1204, stoCatch = 666355},
["Forretress"] = {gender = 500, level = 65, storage = 1205, stoCatch = 666356},
["Dunsparce"] = {gender = 500, level = 30, storage = 1206, stoCatch = 666357},
["Gligar"] = {gender = 500, level = 40, storage = 1207, stoCatch = 666358},
["Steelix"] = {gender = 500, level = 100, storage = 1208, stoCatch = 666359},
["Snubbull"] = {gender = 250, level = 30, storage = 1209, stoCatch = 666360},
["Granbull"] = {gender = 250, level = 65, storage = 1210, stoCatch = 666361},
["Qwilfish"] = {gender = 500, level = 55, storage = 1211, stoCatch = 666362},
["Scizor"] = {gender = 500, level = 100, storage = 1212, stoCatch = 666363},
["Shuckle"] = {gender = 500, level = 30, storage = 1213, stoCatch = 666364},
["Heracross"] = {gender = 500, level = 80, storage = 1214, stoCatch = 666365},
["Sneasel"] = {gender = 500, level = 55, storage = 1215, stoCatch = 666366},
["Teddiursa"] = {gender = 500, level = 20, storage = 1216, stoCatch = 666367},
["Ursaring"] = {gender = 500, level = 90, storage = 1217, stoCatch = 666368},
["Slugma"] = {gender = 500, level = 15, storage = 1218, stoCatch = 666369},
["Magcargo"] = {gender = 500, level = 60, storage = 1219, stoCatch = 666370},
["Swinub"] = {gender = 500, level = 15, storage = 1220, stoCatch = 666371},
["Piloswine"] = {gender = 500, level = 80, storage = 1221, stoCatch = 666372},
["Corsola"] = {gender = 250, level = 50, storage = 1222, stoCatch = 666373},
["Remoraid"] = {gender = 500, level = 10, storage = 1223, stoCatch = 666374},
["Octillery"] = {gender = 500, level = 70, storage = 1224, stoCatch = 666375},
["Delibird"] = {gender = 500, level = 40, storage = 1225, stoCatch = 666376},
["Mantine"] = {gender = 500, level = 80, storage = 1226, stoCatch = 666377},
["Skarmory"] = {gender = 500, level = 85, storage = 1227, stoCatch = 666378},
["Houndour"] = {gender = 500, level = 50, storage = 1228, stoCatch = 666379},
["Houndoom"] = {gender = 500, level = 80, storage = 1229, stoCatch = 666380},
["Kingdra"] = {gender = 500, level = 90, storage = 1230, stoCatch = 666381},
["Phanpy"] = {gender = 500, level = 20, storage = 1231, stoCatch = 666382},
["Donphan"] = {gender = 500, level = 80, storage = 1232, stoCatch = 666383},
["Porygon2"] = {gender = -1, level = 75, storage = 1233, stoCatch = 666384},
["Stantler"] = {gender = 500, level = 55, storage = 1234, stoCatch = 666385},
["Smeargle"] = {gender = 500, level = 80, storage = 1235, stoCatch = 666386},
["Tyrogue"] = {gender = 500, level = 30, storage = 1236, stoCatch = 666387},
["Hitmontop"] = {gender = 1000, level = 60, storage = 1237, stoCatch = 666388},
["Smoochum"] = {gender = 500, level = 30, storage = 1238, stoCatch = 666389},
["Elekid"] = {gender = 500, level = 30, storage = 1239, stoCatch = 666390},
["Magby"] = {gender = 500, level = 30, storage = 1240, stoCatch = 666391},
["Miltank"] = {gender = 0, level = 80, storage = 1241, stoCatch = 666392},
["Blissey"] = {gender = 0, level = 100, storage = 1242, stoCatch = 666393},
["Raikou"] = {gender = 500, level = 150, storage = 1243, stoCatch = 666394},
["Entei"] = {gender = 500, level = 150, storage = 1244, stoCatch = 666395},
["Suicune"] = {gender = 500, level = 150, storage = 1245, stoCatch = 666396},
["Larvitar"] = {gender = 500, level = 20, storage = 1246, stoCatch = 666397},
["Pupitar"] = {gender = 500, level = 65, storage = 1247, stoCatch = 666398},
["Tyranitar"] = {gender = 500, level = 100, storage = 1248, stoCatch = 666399},
["Lugia"] = {gender = 500, level = 150, storage = 1249, stoCatch = 666400},
["Ho-oh"] = {gender = 500, level = 150, storage = 1250, stoCatch = 666401},
["Celebi"] = {gender = 500, level = 150, storage = 1251, stoCatch = 666402},

["Shiny Hitmontop"] = {gender = 1000, level = 100, storage = 11520, stoCatch = 666403},
["Shiny Mr. Mime"] = {gender = 500, level = 150, storage = 11521, stoCatch = 666404},
["Shiny Rhydon"] = {gender = 500, level = 150, storage = 11522, stoCatch = 666405},
["Shiny Ninetales"] = {gender = 250, level = 150, storage = 11523, stoCatch = 666406},
["Shiny Ariados"] = {gender = 500, level = 150, storage = 11524, stoCatch = 666407},
["Shiny Magneton"] = {gender = -1, level = 150, storage = 11525, stoCatch = 666408},
["Shiny Espeon"] = {gender = 875, level = 150, storage = 11526, stoCatch = 666409},
["Shiny Politoed"] = {gender = 500, level = 150, storage = 11527, stoCatch = 666410},
["Shiny Umbreon"] = {gender = 875, level = 150, storage = 11528, stoCatch = 666411},
["Shiny Stantler"] = {gender = 500, level = 150, storage = 11529, stoCatch = 666412},
["Shiny Dodrio"] = {gender = 500, level = 150, storage = 11530, stoCatch = 666413},
["Shiny Weezing"] = {gender = 875, level = 100, storage = 11540, stoCatch = 666006},
["Shiny Sandslash"] = {gender = 875, level = 100, storage = 11541, stoCatch = 666007},
["Shiny Crobat"] = {gender = 875, level = 100, storage = 11542, stoCatch = 666008},
["Shiny Magmar"] = {gender = 875, level = 100, storage = 11543, stoCatch = 666009},
["Shiny Giant Magikarp"] = {gender = 875, level = 100, storage = 11545, stoCatch = 666011},
["Shiny Ampharos"] = {gender = 875, level = 100, storage = 11531, stoCatch = 666012},
["Shiny Feraligatr"] = {gender = 875, level = 100, storage = 11532, stoCatch = 666013},
["Shiny Machamp"] = {gender = 875, level = 100, storage = 11534, stoCatch = 666015},
["Shiny Meganium"] = {gender = 875, level = 100, storage = 11535, stoCatch = 666016},
["Shiny Larvitar"] = {gender = 875, level = 60, storage = 11533, stoCatch = 666014},
["Shiny Pupitar"] = {gender = 875, level = 100, storage = 11536, stoCatch = 666017},
["Shiny Tauros"] = {gender = 875, level = 100, storage = 11537, stoCatch = 666018},
["Shiny Typhlosion"] = {gender = 875, level = 100, storage = 11538, stoCatch = 666019},
["Shiny Xatu"] = {gender = 875, level = 100, storage = 11539, stoCatch = 666020},

["Shiny Magcargo"] = {gender = 875, level = 100, storage = 11540, stoCatch = 5000},
["Shiny Lanturn"] = {gender = 875, level = 100, storage = 11541, stoCatch = 5001},
["Shiny Magmortar"] = {gender = 875, level = 150, storage = 11542, stoCatch = 5003},
["Shiny Electivire"] = {gender = 875, level = 150, storage = 11543, stoCatch = 5004},
["Magmortar"] = {gender = 875, level = 100, storage = 11542, stoCatch = 5005},
["Electivire"] = {gender = 875, level = 100, storage = 11543, stoCatch = 5006},
["Shiny Mantine"] = {gender = 500, level = 150, storage = 1226, stoCatch = 5007},
["Salamence"] = {gender = 500, level = 120, storage = 1149, stoCatch = 5008},
["Shiny Salamence"] = {gender = 500, level = 150, storage = 1149, stoCatch = 5009},
["Milotic"] = {gender = 500, level = 150, storage = 1130, stoCatch = 5010},
["Tropius"] = {gender = 500, level = 90, storage = 16000, stoCatch = 5011},
["Absol"] = {gender = 500, level = 130, storage = 16000, stoCatch = 5012},
["Wailord"] = {gender = 500, level = 150, storage = 16000, stoCatch = 5013},
["Beldum"] = {gender = 500, level = 25, storage = 16000, stoCatch = 5014},
["Metang"] = {gender = 500, level = 80, storage = 16000, stoCatch = 5015},
["Metagross"] = {gender = 500, level = 150, storage = 16000, stoCatch = 5016},

["Aggron"] = {gender = 500, level = 150, storage = 16000, stoCatch = 5017},
}

oldpokedex = {
----OUTLAND
{"Brave Nidoking", 150, 1034},
{"Rage Nidoqueen", 150, 1031},
{"Acid Muk", 150, 1089},
{"Poison Arbok", 150, 1024},
{"Ghost Gengar", 150, 1094},
{"Flying Golbat", 150, 1042},
{"Dark Abra", 120, 10630},
{"Ancient Gengar", 150, 10940},
{"Brave Venusaur", 150, 1003},
{"Ancient Meganium", 150, 1154},
{"Furios Scyther", 150, 1123},
{"Sunny Sunflora", 150, 1192},
{"Ancient Venusaur", 150, 10030},
{"Slicer Scizor", 150, 1212},
{"Ancient Parasect", 150, 10470},
{"Brave Charizard", 150, 1006},
{"Flame Typhlosion", 150, 1157},
{"Wardog Arcanine", 150, 1059},
{"Lava Magmar", 150, 1126},
{"Ancient Arcanine", 150, 10590},
{"Elder Charizard", 150, 10060},
{"Dark Houndoom", 150, 1229},
{"Brave Fearow", 150, 1022},
{"Aviator Pidgeot", 150, 1018},
{"Iron Skarmory", 150, 1227},
{"Owl Noctowl", 150, 1164},
{"Fury Dragonair", 150, 1148},
{"Ancient Dragonite", 150, 1149},
{"Ancient Dragonair", 150, 11480},
{"Elder Pidgeot", 150, 10180},
{"Hard Golem", 150, 1076},
{"Brute Rhydon", 150, 1112},
{"Sand Sandslash", 150, 1028},
{"Earth Donphan", 150, 1232},
{"Ancient Onix", 150, 10950},
{"Elder Tyranitar", 150, 1248},
{"Ancient Steelix", 150, 1208},
{"Kicker Hitmonlee", 150, 1106},
{"Puncher Hitmonchan", 150, 1107},
{"Ancient Ursaring", 150, 1217},
{"Milk Miltank", 150, 1241},
{"Rolling Hitmontop", 150, 1237},
{"Brave Blastoise", 150, 1009},
{"Ancient Blastoise", 150, 10090},
{"Rage Gyarados", 150, 1130}, 
{"Ancient Jynx", 150, 11240},
{"Frost Jynx", 150, 1124},
{"Icy Dewgong", 150, 1087},
{"Stupid Feraligatr", 150, 1160},
{"Clamped Cloyster", 150, 1091},
{"Surfing Mantine", 150, 1226},
{"Spark Electrode", 150, 1101},
{"Brave Electabuzz", 150, 1125},
{"Ancient Ampharos", 150, 1181},
{"Charged Raichu", 150, 1026},
{"Ancient Raichu", 150, 10260},
{"Ancient Electabuzz", 150, 11250},
{"Brave Hypno", 150, 1097},
{"Psyco Alakazam", 150, 1065},
{"Ancient Alakazam", 150, 10650},
---------------old hoenn-----------

{"Lotad", 21, 1406},
{"Lombre", 41, 1407},
{"Ludicolo", 75, 1408},
{"Hariyama", 70, 1411},
{"Makuhita", 70, 1411},
{"Mawile", 65, 1412},
{"Medicham", 70, 1414},
{"Ralts", 25, 1420},
{"Kirlia", 50, 1421},
{"Camerupt", 80, 1421},
{"Numel", 20, 1421},
{"Lucario", 100, 1421},
{"Riolu", 20, 1421},
{"Kecleon", 200, 1421},
{"Gardevoir", 70, 1422},
{"Sableye", 67, 1425},
{"Shiftry", 75, 1428},
{"Seviper", 60, 1429},
{"Shuppet", 20, 1432},
{"Banette", 65, 1433},
{"Slakoth", 30, 1436},
{"Vigoroth", 60, 1437},
{"Slaking", 80, 1438},
{"Spheal", 24, 1439},
{"Sealeo", 65, 1440},
{"Walrein", 85, 1441},
{"Swellow", 40, 1448},
{"Torkoal", 65, 1449},
{"Trapinch", 35, 1450},
{"Vibrava", 55, 1451},
{"Flygon", 90, 1452},
{"Whismur", 25, 1457},
{"Loudred", 70, 1458},
{"Exploud", 80, 1459},
{"Magnezone", 70, 1468},
{"Swablu", 25, 1319},
{"Milotic", 75, 1320},
{"Wailmer", 58, 1311},
{"Wailord", 85, 1312},
{"Beldum", 28, 1304},
{"Feebas", 10, 1305},
{"Metagross", 80, 1298},
{"Glalie", 65, 1290},
{"Snorunt", 65, 1290},
{"Combusken", 40, 1279},
{"Blaziken", 75, 1280},
{"Swampert", 75, 1281},
{"Marshtomp", 40, 1282},
{"Grovyle", 40, 1283},
{"Torchic", 20, 1284},
{"Treecko", 20, 1285},
{"Mudkip", 20, 1286},
{"Metang", 60, 1277},
{"Claydol", 85, 1262},
{"Sceptile", 75, 1263},
{"Tropius", 90, 1264},
{"Absol", 85, 1254},
{"Altaria", 70, 1255},
{"Baltoy", 28, 1256},
{"Aron", 30, 1376},
{"Lairon", 50, 1377},
{"Aggron", 75, 1378},
{"Bagon", 35, 1379},
{"Shelgon", 65, 1380},
{"Corphish", 23, 1394},
{"Crawdaunt", 43, 1395},
{"Duskull", 24, 1396},
{"Dusclops", 48, 1397},
{"Dusknoir", 80, 1398},
{"Electrike", 30, 1399},
{"Manectric", 60, 1400},
-------------------------
{"Bulbasaur", 20, 1001},
{"Ivysaur", 40, 1002},
{"Venusaur", 85, 1003},
{"Charmander", 20, 1004},
{"Charmeleon", 40, 1005},
{"Charizard", 85, 1006},
{"Squirtle", 20, 1007},
{"Wartortle", 40, 1008},
{"Blastoise", 85, 1009},
{"Caterpie", 5, 1010},
{"Metapod", 15, 1011},
{"Butterfree", 30, 1012},
{"Weedle", 5, 1013},
{"Kakuna", 15, 1014},
{"Beedrill", 30, 1015},
{"Pidgey", 5, 1016},
{"Pidgeotto", 20, 1017},
{"Pidgeot", 80, 1018},
{"Rattata", 5, 1019},
{"Raticate", 30, 1020},
{"Spearow", 5, 1021},
{"Fearow", 50, 1022},
{"Ekans", 15, 1023},
{"Arbok", 35, 1024},
{"Pikachu", 40, 1025},
{"Raichu", 80, 1026},
{"Sandshrew", 20, 1027},
{"Sandslash", 65, 1028},
{"Nidoran Female", 10, 1029},
{"Nidorina", 25, 1030},
{"Nidoqueen", 65, 1031},
{"Nidoran Male", 10, 1032},
{"Nidorino", 25, 1033},
{"Nidoking", 65, 1034},
{"Clefairy", 40, 1035},
{"Clefable", 65, 1036},
{"Vulpix", 15, 1037},
{"Ninetales", 65, 1038},
{"Jigglypuff", 40, 1039},
{"Wigglytuff", 65, 1040},
{"Zubat", 5, 1041},
{"Golbat", 30, 1042},
{"Oddish", 5, 1043},
{"Gloom", 30, 1044},
{"Vileplume", 50, 1045},
{"Paras", 5, 1046},
{"Parasect", 50, 1047},
{"Venonat", 20, 1048},
{"Venomoth", 50, 1049},
{"Diglett", 5, 1050},
{"Dugtrio", 35, 1051},
{"Meowth", 10, 1052},
{"Persian", 65, 1053},
{"Psyduck", 20, 1054},
{"Golduck", 65, 1055},
{"Mankey", 10, 1056},
{"Primeape", 65, 1057},
{"Growlithe", 20, 1058},
{"Arcanine", 90, 1059},
{"Poliwag", 5, 1060},
{"Poliwhirl", 20, 1061},
{"Poliwrath", 65, 1062},
{"Abra", 10, 1063},
{"Kadabra", 40, 1064},
{"Alakazam", 80, 1065},
{"Machop", 15, 1066},
{"Machoke", 50, 1067},
{"Machamp", 80, 1068},
{"Bellsprout", 5, 1069},
{"Weepinbell", 20, 1070},
{"Victreebel", 50, 1071},
{"Tentacool", 10, 1072},
{"Tentacruel", 80, 1073},
{"Geodude", 15, 1074},
{"Graveler", 40, 1075},
{"Golem", 70, 1076},
{"Ponyta", 15, 1077},
{"Rapidash", 65, 1078},
{"Slowpoke", 10, 1079},
{"Slowbro", 45, 1080},
{"Magnemite", 15, 1081},
{"Magneton", 75, 1082},
{"Magnezone", 100, 1082},
{"Farfetch'd", 45, 1083},
{"Doduo", 10, 1084},
{"Dodrio", 40, 1085},
{"Seel", 20, 1086},
{"Dewgong", 65, 1087},
{"Grimer", 10, 1088},
{"Muk", 80, 1089},
{"Shellder", 5, 1090},
{"Cloyster", 65, 1091},
{"Gastly", 20, 1092},
{"Haunter", 40, 1093},
{"Gengar", 80, 1094},
{"Onix", 50, 1095},
{"Drowzee", 15, 1096},
{"Hypno", 50, 1097},
{"Krabby", 5, 1098},
{"Kingler", 65, 1099},
{"Voltorb", 15, 1100},
{"Electrode", 35, 1101},
{"Exeggcute", 5, 1102},
{"Exeggutor", 80, 1103},
{"Cubone", 15, 1104},
{"Marowak", 45, 1105},
{"Hitmonlee", 60, 1106},
{"Hitmonchan", 60, 1107},
{"Lickitung", 55, 1108},
{"Koffing", 15, 1109},
{"Weezing", 55, 1110},
{"Rhyhorn", 25, 1111},
{"Rhydon", 75, 1112},
{"Chansey", 50, 1113},
{"Tangela", 55, 1114},
{"Kangaskhan", 80, 1115},
{"Horsea", 5, 1116},
{"Seadra", 45, 1117},
{"Goldeen", 10, 1118},
{"Seaking", 30, 1119},
{"Staryu", 15, 1120},
{"Starmie", 75, 1121},
{"Mr. Mime", 65, 1122},
{"Scyther", 80, 1123},
{"Jynx", 80, 1124},
{"Electabuzz", 80, 1125},
{"Magmar", 80, 1126},
{"Pinsir", 55, 1127},
{"Tauros", 50, 1128},
{"Magikarp", 1, 1129},
{"Gyarados", 90, 1130},
{"Lapras", 80, 1131},
{"Ditto", 1, 1132},
{"Eevee", 5, 1133},
{"glaceon", 5, 1133},
{"sylveon", 5, 1133},
{"Leafeon", 5, 1133},
{"Vaporeon", 55, 1134},
{"Jolteon", 55, 1135},
{"Flareon", 55, 1136},
{"Porygon", 45, 1137},
{"Omanyte", 20, 1138},
{"Omastar", 80, 1139},
{"Kabuto", 20, 1140},
{"Kabutops", 80, 1141},
{"Aerodactyl", 100, 1142},
{"Snorlax", 90, 1143},
{"Articuno", 100, 1144},
{"Zapdos", 100, 1145},
{"Moltres", 100, 1146},
{"Dratini", 20, 1147},
{"Dragonair", 65, 1148},
{"Dragonite", 100, 1149},
{"Mewtwo", 100, 1150},
{"Mew", 100, 1151},
-------------------old Shiny---------

{"Shiny Venusaur", 100, 10030},
{"Shiny Charizard", 100, 10060},
{"Shiny Blastoise", 100, 10090},
{"Shiny Butterfree", 60, 10120},
{"Shiny Beedrill", 60, 10150},
{"Shiny Pidgeot", 60, 10180},
{"Shiny Rattata", 10, 10190},
{"Shiny Raticate", 60, 10200},
{"Shiny Fearow", 120, 10220},
{"Shiny Raichu", 100, 10260},
{"Shiny Nidoking", 120, 10340},
{"Shiny Zubat", 15, 10410},
{"Shiny Golbat", 60, 10420},
{"Shiny Oddish", 20, 10430},
{"Shiny Vileplume", 120, 10450},
{"Shiny Paras", 15, 10460},
{"Shiny Parasect", 60, 10470},
{"Shiny Venonat", 20, 10480},
{"Shiny Venomoth", 100, 10490},
{"Shiny Growlithe", 30, 10580},
{"Shiny Arcanine", 100, 10590},
{"Shiny Abra", 120, 10630},
{"Shiny Alakazam", 100, 10650},
{"Shiny Tentacool", 20, 10720},
{"Shiny Tentacruel", 100, 10730},
{"Shiny Golem", 120, 10760},
{"Shiny Farfetch'd", 100, 10830},
{"Shiny Grimer", 20, 10880},
{"Shiny Muk", 100, 10890},
{"Shiny Gengar", 100, 10940},
{"Shiny Onix", 100, 10950},
{"Shiny Hypno", 120, 10970},
{"Shiny Krabby", 20, 10980},
{"Shiny Kingler", 60, 10990},
{"Shiny Voltorb", 20, 11000},
{"Shiny Electrode", 80, 11010},
{"Shiny Cubone", 20, 11040},
{"Shiny Marowak", 100, 11050},
{"Shiny Hitmonlee", 120, 11060},
{"Shiny Hitmonchan", 120, 11070},
{"Shiny Tangela", 100, 11140},
{"Shiny Horsea", 20, 11160},
{"Shiny Seadra", 60, 11170},
{"Shiny Scyther", 100, 11230},
{"Shiny Jynx", 100, 11240},
{"Shiny Electabuzz", 100, 11250},
{"Shiny Pinsir", 100, 11270},
{"Shiny Magikarp", 20, 11290},
{"Shiny Gyarados", 120, 11300},
{"Shiny Vaporeon", 120, 11340},
{"Shiny Jolteon", 120, 11350},
{"Shiny Flareon", 120, 11360},
{"Shiny Snorlax", 150, 11430},
{"Shiny Dratini", 20, 11470},
{"Shiny Dragonair", 100, 11480},
{"Shiny Dragonite", 150, 11490},
{"Milotic", 140, 11300},
---------------old johto-----------
{"Chikorita", 20, 1152},
{"Bayleef", 40, 1153},
{"Meganium", 85, 1154},
{"Cyndaquil", 20, 1155},
{"Quilava", 40, 1156},
{"Typhlosion", 85, 1157},
{"Totodile", 20, 1158},
{"Croconaw", 40, 1159},
{"Feraligatr", 85, 1160},
{"Sentret", 15, 1161},
{"Furret", 30, 1162},
{"Hoothoot", 15, 1163},
{"Noctowl", 65, 1164},
{"Ledyba", 10, 1165},
{"Ledian", 35, 1166},
{"Spinarak", 15, 1167},
{"Ariados", 40, 1168},
{"Crobat", 80, 1169},
{"Chinchou", 15, 1170},
{"Lanturn", 75, 1171},
{"Pichu", 15, 1172},
{"Cleffa", 10, 1173},
{"Igglybuff", 10, 1174},
{"Togepi", 10, 1175},
{"Togetic", 65, 1176},
{"Natu", 20, 1177},
{"Xatu", 75, 1178},
{"Mareep", 20, 1179},
{"Flaaffy", 40, 1180},
{"Ampharos", 80, 1181},
{"Bellossom", 50, 1182},
{"Marill", 20, 1183},
{"Azumarill", 65, 1184},
{"Sudowoodo", 80, 1185},
{"Politoed", 65, 1186},
{"Hoppip", 5, 1187},
{"Skiploom", 20, 1188},
{"Jumpluff", 50, 1189},
{"Aipom", 35, 1190},
{"Sunkern", 5, 1191},
{"Sunflora", 30, 1192},
{"Yanma", 50, 1193},
{"Wooper", 20, 1194},
{"Quagsire", 65, 1195},
{"Espeon", 55, 1196},
{"Umbreon", 55, 1197},
{"Murkrow", 55, 1198},
{"Slowking", 100, 1199},
{"Shiny Slowking", 100, 1199},
{"Misdreavus", 90, 1200},
{"Unown", 20, 1201},
{"Wobbuffet", 90, 1202},
{"Girafarig", 80, 1203},
{"Pineco", 15, 1204},
{"Forretress", 65, 1205},
{"Dunsparce", 30, 1206},
{"Gligar", 35, 1207},
{"Steelix", 100, 1208},
{"Snubbull", 20, 1209},
{"Granbull", 65, 1210},
{"Qwilfish", 55, 1211},
{"Scizor", 100, 1212},
{"Shuckle", 30, 1213},
{"Heracross", 80, 1214},
{"Sneasel", 55, 1215},
{"Teddiursa", 20, 1216},
{"Ursaring", 90, 1217},
{"Slugma", 15, 1218},
{"Magcargo", 75, 1219},
{"Swinub", 15, 1220},
{"Piloswine", 80, 1221},
{"Corsola", 55, 1222},
{"Remoraid", 10, 1223},
{"Octillery", 75, 1224},
{"Delibird", 50, 1225},
{"Mantine", 80, 1226},
{"Skarmory", 80, 1227},
{"Houndour", 20, 1228},
{"Houndoom", 80, 1229},
{"Kingdra", 90, 1230},
{"Phanpy", 25, 1231},
{"Donphan", 80, 1232},
{"Porygon2", 75, 1233},
{"Stantler", 65, 1234},
{"Smeargle", 60, 1235},
{"Tyrogue", 20, 1236},
{"Hitmontop", 60, 1237},
{"Smoochum", 20, 1238},
{"Elekid", 20, 1239},
{"Magby", 20, 1240},
{"Miltank", 80, 1241},
{"Blissey", 90, 1242},
{"Raikou", 100, 1243},
{"Entei", 100, 1244},
{"Suicune", 100, 1245},
{"Larvitar", 30, 1246},
{"Pupitar", 50, 1247},
{"Tyranitar", 100, 1248},
{"Lugia", 100, 1249},
{"Ho-oh", 100, 1250},
{"Celebi", 100, 1251},
{"Shiny Hitmontop", 120, 11520},

{"Shiny Mr. Mime", 100, 11521},  --alterado v1.9
{"Shiny Ninetales", 150, 11522},
{"Shiny Ariados", 150, 11523},
{"Shiny Magneton", 150, 11524},
{"Shiny Espeon", 150, 11525},
{"Shiny Politoed", 150, 11526},
{"Shiny Umbreon", 150, 11527},
{"Shiny Stantler", 150, 11528},
{"Shiny Dodrio", 150, 11529},
{"Shiny Rhydon", 150, 11530},
{"Shiny Weezing", 100, 11540},
{"Shiny Sandslash", 100, 11541},
{"Shiny Crobat", 100, 11542},
{"Shiny Magmar", 100, 11543},
{"Shiny Magmortar", 150, 11543},
{"Shiny Electivire", 150, 11543},
{"Magmortar", 100, 11543},
{"Electivire", 100, 11543},
{"Giant Magikarp", 20, 11544},
{"Shiny Giant Magikarp", 60, 11545},

{"Shiny Ampharos", 100, 11531},
{"Shiny Feraligatr", 100, 11532},
{"Shiny Larvitar", 60, 11533},
{"Shiny Machamp", 100, 11534},
{"Shiny Meganium", 100, 11535},
{"Shiny Pupitar", 100, 11536},
{"Shiny Tauros", 100, 11537},
{"Shiny Typhlosion", 100, 11538},
{"Shiny Xatu", 100, 11539},

{"Shiny Magcargo", 100, 11540},
{"Shiny Lanturn", 100, 11541},
{"Shiny Mantine", 150, 1226},
{"Salamence", 150, 11490},
{"Shiny Salamence", 150, 11490},
{"Tropius", 90, 1103},
{"Absol", 130, 1103},
{"Wailord", 150, 1103},
{"Beldum", 25, 1103},
{"Metang", 80, 1103},
{"Metagross", 150, 1103},
{"Shiny Politoed", 100, 11860},
}

poevo = {
["Metal Greymon[5/5]"] = {level = 41, evolution = "War Greymon [5/5]", count = 1, stoneid = 352, stoneid2 = 0},
["Greymon[5/5]"] = {level = 25, evolution = "Metal Greymon[5/5]", count = 1, stoneid = 352, stoneid2 = 0},
["Agumon[5/5]"] = {level = 11, evolution = "Greymon[5/5]", count = 1, stoneid = 352, stoneid2 = 0},
["Tangela"] = {level = 150, evolution = "Tangrowth", count = 2, stoneid = 12244, stoneid2 = 0},
["Bulbasaur"] = {level = 40, evolution = "Ivysaur", count = 1, stoneid = 11441, stoneid2 = 0},
["Ivysaur"] = {level = 85, evolution = "Venusaur", count = 1, stoneid = 11441, stoneid2 = 11443},
["Charmander"] = {level = 40, evolution = "Charmeleon", count = 1, stoneid = 11447, stoneid2 = 0},
["Charmeleon"] = {level = 85, evolution = "Charizard", count = 2, stoneid = 11447, stoneid2 = 0},
["Squirtle"] = {level = 40, evolution = "Wartortle", count = 1, stoneid = 11442, stoneid2 = 0},
["Wartortle"] = {level = 85, evolution = "Blastoise", count = 2, stoneid = 11442, stoneid2 = 0},
["Caterpie"] = {level = 15, evolution = "Metapod", count = 1, stoneid = 11448, stoneid2 = 0},
["Metapod"] = {level = 30, evolution = "Butterfree", count = 2, stoneid = 11448, stoneid2 = 0},
["Weedle"] = {level = 15, evolution = "Kakuna", count = 1, stoneid = 11448, stoneid2 = 0},
["Kakuna"] = {level = 30, evolution = "Beedrill", count = 2, stoneid = 11448, stoneid2 = 0},
["Pidgey"] = {level = 20, evolution = "Pidgeotto", count = 1, stoneid = 11453, stoneid2 = 0},
["Pidgeotto"] = {level = 75, evolution = "Pidgeot", count = 2, stoneid = 11453, stoneid2 = 0},
["Rattata"] = {level = 25, evolution = "Raticate", count = 1, stoneid = 11453, stoneid2 = 0},
["Spearow"] = {level = 50, evolution = "Fearow", count = 1, stoneid = 11453, stoneid2 = 0},
["Ekans"] = {level = 35, evolution = "Arbok", count = 1, stoneid = 11443, stoneid2 = 0},
["Pikachu"] = {level = 85, evolution = "Raichu", count = 1, stoneid = 11444, stoneid2 = 0},
["Sandshrew"] = {level = 65, evolution = "Sandslash", count = 2, stoneid = 11451, stoneid2 = 0},
["Nidoran Female"] = {level = 30, evolution = "Nidorina", count = 1, stoneid = 11443, stoneid2 = 0},
["Nidorina"] = {level = 65, evolution = "Nidoqueen", count = 1, stoneid = 11443, stoneid2 = 11451},
["Nidoran Male"] = {level = 30, evolution = "Nidorino", count = 1, stoneid = 11443, stoneid2 = 0},
["Nidorino"] = {level = 65, evolution = "Nidoking", count = 2, stoneid = 11443, stoneid2 = 0},
["Clefairy"] = {level = 65, evolution = "Clefable", count = 1, stoneid = 11453, stoneid2 = 0},
["Vulpix"] = {level = 65, evolution = "Ninetales", count = 2, stoneid = 11447, stoneid2 = 0},
["Jigglypuff"] = {level = 65, evolution = "Wigglytuff", count = 1, stoneid = 11453, stoneid2 = 0},
["Zubat"] = {level = 35, evolution = "Golbat", count = 1, stoneid = 11443, stoneid2 = 0},
["Golbat"] = {level = 80, evolution = "Crobat", count = 1, stoneid = 11443, stoneid2 = 11449}, --alterado v1.9
["Oddish"] = {level = 30, evolution = "Gloom", count = 1, stoneid = 11441, stoneid2 = 0},
["Paras"] = {level = 50, evolution = "Parasect", count = 1, stoneid = 11448, stoneid2 = 0},
["Venonat"] = {level = 50, evolution = "Venomoth", count = 1, stoneid = 11448, stoneid2 = 11443},
["Diglett"] = {level = 35, evolution = "Dugtrio", count = 1, stoneid = 11451, stoneid2 = 0},
["Meowth"] = {level = 50, evolution = "Persian", count = 1, stoneid = 11453, stoneid2 = 0},
["Psyduck"] = {level = 70, evolution = "Golduck", count = 1, stoneid = 11442, stoneid2 = 11452},
["Mankey"] = {level = 50, evolution = "Primeape", count = 1, stoneid = 11446, stoneid2 = 0},
["Growlithe"] = {level = 90, evolution = "Arcanine", count = 1, stoneid = 11447, stoneid2 = 11449},
["Poliwag"] = {level = 25, evolution = "Poliwhirl", count = 1, stoneid = 11442, stoneid2 = 0},
["Abra"] = {level = 40, evolution = "Kadabra", count = 1, stoneid = 11452, stoneid2 = 0},
["Kadabra"] = {level = 80, evolution = "Alakazam", count = 2, stoneid = 11452, stoneid2 = 0},
["Machop"] = {level = 45, evolution = "Machoke", count = 1, stoneid = 11446, stoneid2 = 0},
["Machoke"] = {level = 80, evolution = "Machamp", count = 2, stoneid = 11446, stoneid2 = 0},
["Bellsprout"] = {level = 25, evolution = "Weepinbell", count = 1, stoneid = 11441, stoneid2 = 0},
["Weepinbell"] = {level = 50, evolution = "Victreebel", count = 2, stoneid = 11441, stoneid2 = 0},
["Tentacool"] = {level = 80, evolution = "Tentacruel", count = 1, stoneid = 11442, stoneid2 = 11443},
["Geodude"] = {level = 40, evolution = "Graveler", count = 1, stoneid = 11445, stoneid2 = 0},
["Graveler"] = {level = 70, evolution = "Golem", count = 2, stoneid = 11445, stoneid2 = 0},
["Ponyta"] = {level = 65, evolution = "Rapidash", count = 1, stoneid = 11447, stoneid2 = 0},
["Magnemite"] = {level = 75, evolution = "Magneton", count = 1, stoneid = 11444, stoneid2 = 0},
["Doduo"] = {level = 45, evolution = "Dodrio", count = 1, stoneid = 11453, stoneid2 = 0},
["Seel"] = {level = 65, evolution = "Dewgong", count = 1, stoneid = 11442, stoneid2 = 11454},
["Grimer"] = {level = 80, evolution = "Muk", count = 1, stoneid = 11443, stoneid2 = 0},
["Shellder"] = {level = 60, evolution = "Cloyster", count = 2, stoneid = 11454, stoneid2 = 0},
["Gastly"] = {level = 45, evolution = "Haunter", count = 1, stoneid = 11450, stoneid2 = 0},
["Haunter"] = {level = 80, evolution = "Gengar", count = 2, stoneid = 11450, stoneid2 = 0},
["Drowzee"] = {level = 55, evolution = "Hypno", count = 2, stoneid = 11452, stoneid2 = 0},
["Krabby"] = {level = 40, evolution = "Kingler", count = 1, stoneid = 11442, stoneid2 = 0},
["Voltorb"] = {level = 35, evolution = "Electrode", count = 1, stoneid = 11444, stoneid2 = 0},
["Exeggcute"] = {level = 80, evolution = "Exeggutor", count = 1, stoneid = 11441, stoneid2 = 11452},
["Cubone"] = {level = 55, evolution = "Marowak", count = 2, stoneid = 11451, stoneid2 = 0},
["Koffing"] = {level = 35, evolution = "Weezing", count = 1, stoneid = 11443, stoneid2 = 0},
["Rhyhorn"] = {level = 75, evolution = "Rhydon", count = 1, stoneid = 11445, stoneid2 = 11451},
["Horsea"] = {level = 45, evolution = "Seadra", count = 1, stoneid = 11442, stoneid2 = 0},
["Goldeen"] = {level = 35, evolution = "Seaking", count = 1, stoneid = 11442, stoneid2 = 0},
["Staryu"] = {level = 75, evolution = "Starmie", count = 1, stoneid = 11442, stoneid2 = 0},
["Magikarp"] = {level = 90, evolution = "Gyarados", count = 1, stoneid = 11442, stoneid2 = 11449},
["Omanyte"] = {level = 80, evolution = "Omastar", count = 1, stoneid = 11442, stoneid2 = 11449},
["Kabuto"] = {level = 80, evolution = "Kabutops", count = 1, stoneid = 11445, stoneid2 = 11449},
["Dratini"] = {level = 60, evolution = "Dragonair", count = 1, stoneid = 11449, stoneid2 = 0},
["Dragonair"] = {level = 100, evolution = "Dragonite", count = 1, stoneid = 11449, stoneid2 = 12244},
-----shiny evo------

["Shiny Rattata"] = {level = 60, evolution = "Shiny Raticate", count = 1, stoneid = 11453, stoneid2 = 0},
["Shiny Zubat"] = {level = 60, evolution = "Shiny Golbat", count = 1, stoneid = 11443, stoneid2 = 0},
["Shiny Golbat"] = {level = 100, evolution = "Shiny Crobat", count = 1, stoneid = 11443, stoneid2 = 0},
["Shiny Paras"] = {level = 60, evolution = "Shiny Parasect", count = 1, stoneid = 11448, stoneid2 = 0},
["Shiny Venonat"] = {level = 100, evolution = "Shiny Venomoth", count = 1, stoneid = 11448, stoneid2 = 11443},
["Shiny Growlithe"] = {level = 100, evolution = "Shiny Arcanine", count = 2, stoneid = 11447, stoneid2 = 0},
["Shiny Tentacool"] = {level = 100, evolution = "Shiny Tentacruel", count = 1, stoneid = 11442, stoneid2 = 11443},
["Shiny Grimer"] = {level = 100, evolution = "Shiny Muk", count = 1, stoneid = 11443, stoneid2 = 0},
["Shiny Krabby"] = {level = 60, evolution = "Shiny Kingler", count = 1, stoneid = 11442, stoneid2 = 0},
["Shiny Voltorb"] = {level = 80, evolution = "Shiny Electrode", count = 1, stoneid = 11444, stoneid2 = 0},
["Shiny Cubone"] = {level = 100, evolution = "Shiny Marowak", count = 2, stoneid = 11451, stoneid2 = 0},
["Shiny Horsea"] = {level = 60, evolution = "Shiny Seadra", count = 1, stoneid = 11442, stoneid2 = 0},
["Shiny Dratini"] = {level = 100, evolution = "Shiny Dragonair", count = 1, stoneid = 11449, stoneid2 = 0},

["Shiny Larvitar"] = {level = 100, evolution = "Shiny Pupitar", count = 1, stoneid = ground, stoneid2 = 0},
-----johto evo------
["Chikorita"] = {level = 40, evolution = "Bayleef", count = 1, stoneid = 11441, stoneid2 = 0},
["Bayleef"] = {level = 85, evolution = "Meganium", count = 2, stoneid = 11441, stoneid2 = 0},
["Cyndaquil"] = {level = 40, evolution = "Quilava", count = 1, stoneid = 11447, stoneid2 = 0},
["Quilava"] = {level = 85, evolution = "Typhlosion", count = 2, stoneid = 11447, stoneid2 = 0},
["Totodile"] = {level = 40, evolution = "Croconaw", count = 1, stoneid = 11442, stoneid2 = 0},  --alterado v1.7
["Croconaw"] = {level = 85, evolution = "Feraligatr", count = 2, stoneid = 11442, stoneid2 = 0}, --alterado v1.7
["Sentret"] = {level = 35, evolution = "Furret", count = 1, stoneid = 11453, stoneid2 = 0},
["Hoothoot"] = {level = 65, evolution = "Noctowl", count = 1, stoneid = 11453, stoneid2 = 0},
["Ledyba"] = {level = 35, evolution = "Ledian", count = 2, stoneid = 11448, stoneid2 = 0},
["Spinarak"] = {level = 40, evolution = "Ariados", count = 1, stoneid = 11448, stoneid2 = 11443},
["Chinchou"] = {level = 50, evolution = "Lanturn", count = 1, stoneid = 11442, stoneid2 = 11444},
["Pichu"] = {level = 40, evolution = "Pikachu", count = 1, stoneid = 11444, stoneid2 = 0},    --alterado v1.9
["Cleffa"] = {level = 40, evolution = "Clefairy", count = 1, stoneid = 11453, stoneid2 = 0},     --alterado v1.9
["Igglybuff"] = {level = 40, evolution = "Jigglypuff", count = 1, stoneid = 11453, stoneid2 = 0}, --alterado v1.9
["Togepi"] = {level = 65, evolution = "Togetic", count = 2, stoneid = 11453, stoneid2 = 0},      --alterado v1.9
["Natu"] = {level = 75, evolution = "Xatu", count = 1, stoneid = 11452, stoneid2 = 0},
["Mareep"] = {level = 45, evolution = "Flaaffy", count = 1, stoneid = 11444, stoneid2 = 0},
["Flaaffy"] = {level = 80, evolution = "Ampharos", count = 2, stoneid = 11444, stoneid2 = 0},
["Marill"] = {level = 65, evolution = "Azumarill", count = 1, stoneid = 11442, stoneid2 = 0},
["Hoppip"] = {level = 25, evolution = "Skiploom", count = 1, stoneid = 11441, stoneid2 = 0},
["Skiploom"] = {level = 50, evolution = "Jumpluff", count = 1, stoneid = 11441, stoneid2 = 0},
["Sunkern"] = {level = 30, evolution = "Sunflora", count = 1, stoneid = 11441, stoneid2 = 0},
["Wooper"] = {level = 65, evolution = "Quagsire", count = 1, stoneid = 11442, stoneid2 = 11451},
["Pineco"] = {level = 65, evolution = "Forretress", count = 2, stoneid = 11448, stoneid2 = 0},
["Snubbull"] = {level = 65, evolution = "Granbull", count = 1, stoneid = 11453, stoneid2 = 11451},
["Teddiursa"] = {level = 90, evolution = "Ursaring", count = 1, stoneid = 11453, stoneid2 = 12244},
["Slugma"] = {level = 80, evolution = "Magcargo", count = 1, stoneid = 11445, stoneid2 = 11447},
["Swinub"] = {level = 80, evolution = "Piloswine", count = 1, stoneid = 11451, stoneid2 = 11454},
["Remoraid"] = {level = 75, evolution = "Octillery", count = 1, stoneid = 11442, stoneid2 = 0},
["Houndour"] = {level = 80, evolution = "Houndoom", count = 1, stoneid = 11450, stoneid2 = 11447},
["Phanpy"] = {level = 80, evolution = "Donphan", count = 2, stoneid = 11451, stoneid2 = 0},
["Smoochum"] = {level = 80, evolution = "Jynx", count = 1, stoneid = 11454, stoneid2 = 12244},
["Elekid"] = {level = 80, evolution = "Electabuzz", count = 1, stoneid = 11444, stoneid2 = 12244},
["Joltik"] = {level = 40, evolution = "Galvantula", count = 1, stoneid = 11444, stoneid2 = 12244},
["Magby"] = {level = 80, evolution = "Magmar", count = 1, stoneid = 11447, stoneid2 = 12244},
["Larvitar"] = {level = 65, evolution = "Pupitar", count = 1, stoneid = ground, stoneid2 = 0},
["Pupitar"] = {level = 100, evolution = "Tyranitar", count = 1, stoneid = 12244, stoneid2 = 11445},
["Porygon"] = {level = 75, evolution = "Porygon2", count = 2, stoneid = 12244, stoneid2 = 0},
["Seadra"] = {level = 90, evolution = "Kingdra", count = 1, stoneid = 11449, stoneid2 = 12244},
["Chansey"] = {level = 100, evolution = "Blissey", count = 2, stoneid = 12244, stoneid2 = 0},
["Scyther"] = {level = 100, evolution = "Scizor", count = 1, stoneid = 11448, stoneid2 = 12232},
["Onix"] = {level = 100, evolution = "Steelix", count = 1, stoneid = 11445, stoneid2 = 12232},
["Beldum"] = {level = 80, evolution = "Metang", count = 1, stoneid = 11452, stoneid2 = 12232},
["Slowpoke"] = {level = 12, evolution = "Slowbro", count = 1, stoneid = 11452, stoneid2 = 0},
["Slowbro"] = {level = 12, evolution = "Slowking", count = 1, stoneid = 11452, stoneid2 = 12244},
["Electabuzz"] = {level = 100, evolution = "Electivire", count = 1, stoneid = 11444, stoneid2 = 12244},
["Magmar"] = {level = 100, evolution = "Magmortar", count = 1, stoneid = 11447, stoneid2 = 12244},
-------
["Roselia"] = {level = 70, evolution = "Roserade", count = 2, stoneid = 11441, stoneid2 = 0},
["Anorith"] = {level = 45, evolution = "Armaldo", count = 1, stoneid = 11443, stoneid2 = 11445},
["Aron"] = {level = 40, evolution = "Lairon", count = 1, stoneid = 11445, stoneid2 = 0},
["Lairon"] = {level = 75, evolution = "Aggron", count = 2, stoneid = 11445, stoneid2 = 0},
["Bagon"] = {level = 55, evolution = "Shelgon", count = 1, stoneid = 11449, stoneid2 = 0},
["Shelgon"] = {level = 80, evolution = "Salamence", count = 2, stoneid = 11449, stoneid2 = 0},
["Barboach"] = {level = 38, evolution = "Whiscash", count = 1, stoneid = 11442, stoneid2 = 11451},
["Budew"] = {level = 22, evolution = "Roselia", count = 1, stoneid = 11441, stoneid2 = 0},
["Cacnea"] = {level = 40, evolution = "Cacturne", count = 1, stoneid = 11441, stoneid2 = 0},
["Chingling"] = {level = 40, evolution = "Chimecho", count = 1, stoneid = 11452, stoneid2 = 0},
["Clamperl"] = {level = 42, evolution = "Huntail", count = 1, stoneid = 11442, stoneid2 = 0},
["Corphish"] = {level = 35, evolution = "Crawdaunt", count = 1, stoneid = 11442, stoneid2 = 0},
["Duskull"] = {level = 40, evolution = "Dusclops", count = 1, stoneid = 11450, stoneid2 = 0},
["Dusclops"] = {level = 80, evolution = "Dusknoir", count = 2, stoneid = 11450, stoneid2 = 0},
["Electrike"] = {level = 45, evolution = "Manectric", count = 2, stoneid = 11444, stoneid2 = 0},
["Gulpin"] = {level = 44, evolution = "Swalot", count = 1, stoneid = 11443, stoneid2 = 0},
["Lileep"] = {level = 75, evolution = "Cradily", count = 1, stoneid = 11441, stoneid2 = 0},
["Lotad"] = {level = 30, evolution = "Lombre", count = 1, stoneid = 11441, stoneid2 = 0},
["Lombre"] = {level = 65, evolution = "Ludicolo", count = 2, stoneid = 11441, stoneid2 = 0},
["Makuhita"] = {level = 58, evolution = "Hariyama", count = 2, stoneid = 11446, stoneid2 = 0},
["Meditite"] = {level = 48, evolution = "Medicham", count = 1, stoneid = 11452, stoneid2 = 0},
["Nincada"] = {level = 35, evolution = "Ninjask", count = 2, stoneid = 11448, stoneid2 = 0},
["Ralts"] = {level = 40, evolution = "Kirlia", count = 1, stoneid = 11452, stoneid2 = 0},
["Riolu"] = {level = 40, evolution = "Lucario", count = 1, stoneid = 12232, stoneid2 = 12244},
["Kirlia"] = {level = 65, evolution = "Gardevoir", count = 2, stoneid = 12244, stoneid2 = 0},
["Seedot"] = {level = 35, evolution = "Nuzleaf", count = 1, stoneid = 11441, stoneid2 = 0},
["Nuzleaf"] = {level = 65, evolution = "Shiftry", count = 2, stoneid = 11441, stoneid2 = 0},
["Shroomish"] = {level = 50, evolution = "Breloom", count = 1, stoneid = 11441, stoneid2 = 0},
["Shuppet"] = {level = 45, evolution = "Banette", count = 1, stoneid = 11450, stoneid2 = 0},
["Skitty"] = {level = 45, evolution = "Delcatty", count = 1, stoneid = 11453, stoneid2 = 0},
["Slakoth"] = {level = 40, evolution = "Vigoroth", count = 2, stoneid = 11453, stoneid2 = 0},
["Vigoroth"] = {level = 75, evolution = "Slaking", count = 2, stoneid = 12244, stoneid2 = 0},
["Spheal"] = {level = 40, evolution = "Sealeo", count = 1, stoneid = 11442, stoneid2 = 11454},
["Sealeo"] = {level = 75, evolution = "Walrein", count = 1, stoneid = 12244, stoneid2 = 11454},
["Spoink"] = {level = 45, evolution = "Grumpig", count = 2, stoneid = 11452, stoneid2 = 0},
["Surskit"] = {level = 40, evolution = "Masquerain", count = 1, stoneid = 11443, stoneid2 = 0},
["Taillow"] = {level = 38, evolution = "Swellow", count = 1, stoneid = 11453, stoneid2 = 0},
["Trapinch"] = {level = 40, evolution = "Vibrava", count = 1, stoneid = 11449, stoneid2 = 0},
["Vibrava"] = {level = 80, evolution = "Flygon", count = 2, stoneid = 11449, stoneid2 = 0},
["Wingull"] = {level = 42, evolution = "Pelipper", count = 1, stoneid = 11442, stoneid2 = 0},
["Whismur"] = {level = 37, evolution = "Loudred", count = 2, stoneid = 11453, stoneid2 = 0},
["Loudred"] = {level = 75, evolution = "Exploud", count = 2, stoneid = 11453, stoneid2 = 0},
["Wurmple"] = {level = 12, evolution = "Silcoon", count = 1, stoneid = 11448, stoneid2 = 0},
["Silcoon"] = {level = 20, evolution = "Beautifly", count = 1, stoneid = 11448, stoneid2 = 0},
["Cascoon"] = {level = 20, evolution = "Dustox", count = 1, stoneid = 11448, stoneid2 = 0},
["Zigzagoon"] = {level = 40, evolution = "Linoone", count = 1, stoneid = 11453, stoneid2 = 0},
["Nosepass"] = {level = 50, evolution = "Probopass", count = 2, stoneid = 11445, stoneid2 = 0},
["Magneton"] = {level = 55, evolution = "Magnezone", count = 2, stoneid = 11444, stoneid2 = 0},
["Swablu"] = {level = 60, evolution = "Altaria", count = 2, stoneid = 11453, stoneid2 = 0},
["Feebas"] = {level = 75, evolution = "Milotic", count = 2, stoneid = 11442, stoneid2 = 11449},
["Beldum"] = {level = 45, evolution = "Metang", count = 1, stoneid = 12232, stoneid2 = 0},
["Wailmer"] = {level = 80, evolution = "Wailord", count = 2, stoneid = 11442, stoneid2 = 0},
["Numel"] = {level = 50, evolution = "Camerupt", count = 1, stoneid = 11447, stoneid2 = 0},
["Combusken"] = {level = 70, evolution = "Blaziken", count = 2, stoneid = 11447, stoneid2 = 0},
["Marshtomp"] = {level = 70, evolution = "Swampert", count = 2, stoneid = 11442, stoneid2 = 0},
["Baltoy"] = {level = 85, evolution = "Claydol", count = 2, stoneid = 11452, stoneid2 = 0},
["Grovyle"] = {level = 70, evolution = "Sceptile", count = 2, stoneid = 11441, stoneid2 = 0},
["Torchic"] = {level = 40, evolution = "Combusken", count = 1, stoneid = 11447, stoneid2 = 0},
["Treecko"] = {level = 40, evolution = "Grovyle", count = 1, stoneid = 11441, stoneid2 = 0},
["Mudkip"] = {level = 40, evolution = "Marshtomp", count = 1, stoneid = 11442, stoneid2 = 0},
["Snorunt"] = {level = 45, evolution = "Glalie", count = 1, stoneid = 11454, stoneid2 = 0},
["Carvanha"] = {level = 50, evolution = "Sharpedo", count = 1, stoneid = 11442, stoneid2 = 0},
["Metang"] = {level = 80, evolution = "Metagross", count = 2, stoneid = 12244, stoneid2 = 0},
["Zorua"] = {level = 60, evolution = "Zoroark", count = 4, stoneid = 11450, stoneid2 = 0},

}

spcevo = {
["Poliwhirl"] = {[1] = {level = 65, evolution = "Poliwrath", count = 1, stoneid = 11442, stoneid2 = 11446},
                 [2] = {level = 65, evolution = "Politoed", count = 1, stoneid = 11442, stoneid2 = 11451}},
["Gloom"] =     {[1] = {level = 50, evolution = "Vileplume", count = 1, stoneid = 11441, stoneid2 = 11441},
                 [2] = {level = 50, evolution = "Bellossom", count = 1, stoneid = 11441, stoneid2 = 11443}},
}

leaf = 11441
grass = 11441
water = 11442
venom = 11443
thunder = 11444
rock = 11445
punch = 11446
fire = 11447
coccon = 11448
crystal = 11449
dark = 11450
earth = 11451
enigma = 11452
heart = 11453
ice = 11454
mighty = 15644

boostStone = 12618
metal = 12232
ancient = 12244

sfire = 12401
swater = 12402
sleaf = 12403
sheart = 12404
senigma = 12405
srock = 12406
svenom = 12407
sice = 12408
sthunder = 12409
scrystal = 12410
scoccon = 12411
sdarkness = 12412
spunch = 12413
searth = 12414
digiev = 352

gobackmsgs = {
[1] = {go = "Go, doka!", back = "Come back, doka!"},
[2] = {go = "Let's do it, doka!", back = "Thanks for helping, doka!"},
[3] = {go = "I choose you, doka!", back = "That's enough, come back!"},
[4] = {go = "I need your help, doka!", back = "You were great, doka!"},
[5] = {go = "Let's fight, doka!", back = "Excellent work, doka!"},
[6] = {go = "It's battle time, doka!", back = "Well done, doka!"},
[7] = {go = "It's your turn, doka!", back = "You need to rest, doka!"},
[8] = {go = "doka, let's battle!", back = "Hurry back, doka!"},
[9] = {go = "Show your strength, doka!", back = "You did your best, doka!"}
}

specialevo = {"Poliwhirl", "Gloom", "Tyrogue", "Eevee"} --alterado v1.6

auraSyst = {    --auras
["red"] = 19,
["blue"] = 40,
["green"] = 164,
["yellow"] = 207,
["white"] = 29,      
["gray"] = 165,
["cyan"] = 177,
["purple"] = 208,
["orange"] = 219, 

["circulo verde"] = 220, 
["volcanic"] = 209, 
["circulo roxo"] = 174, 
["seavell"] = 87, 
["naturia"] = 168, 
["orebound"] = 395, 
["wingeon"] = 167, 

}

hitmonchans = {
["Hitmonchan"] = {
                         [0] = {out = 559, eff = 112, type = FIGHTINGDAMAGE},  --outfit normal
                         [1] = {out = 1075, eff = 35, type = FIREDAMAGE},    --outfit fogo
                         [2] = {out = 1077, eff = 48, type = ELECTRICDAMAGE},    --outfit raio
                         [3] = {out = 1078, eff = 43, type = ICEDAMAGE},    --outfit gelo
                         [4] = {out = 1076, eff = 60, type = GHOSTDAMAGE}   --outfit ghost
                  },
                  
["Shiny Hitmonchan"] = {              
                         
                         [0] = {out = 837, eff = 112, type = FIGHTINGDAMAGE},  --outfit normal
                         [1] = {out = 1080, eff = 35, type = FIREDAMAGE},    --outfit fogo
                         [2] = {out = 1081, eff = 48, type = ELECTRICDAMAGE},    --outfit raio
                         [3] = {out = 1082, eff = 43, type = ICEDAMAGE},    --outfit gelo
                         [4] = {out = 1079, eff = 60, type = GHOSTDAMAGE}   --outfit ghost
                       },
[" Boxer Hitmonchan"] = {
                         [0] = {out = 559, eff = 112, type = FIGHTINGDAMAGE},  --outfit normal
                         [1] = {out = 1075, eff = 35, type = FIREDAMAGE},    --outfit fogo
                         [2] = {out = 1077, eff = 48, type = ELECTRICDAMAGE},    --outfit raio
                         [3] = {out = 1078, eff = 43, type = ICEDAMAGE},    --outfit gelo
                         [4] = {out = 1076, eff = 60, type = GHOSTDAMAGE}   --outfit ghost
                  },
[" Bruno Hitmonchan"] = {
                         [0] = {out = 559, eff = 112, type = FIGHTINGDAMAGE},  --outfit normal
                         [1] = {out = 1075, eff = 35, type = FIREDAMAGE},    --outfit fogo
                         [2] = {out = 1077, eff = 48, type = ELECTRICDAMAGE},    --outfit raio
                         [3] = {out = 1078, eff = 43, type = ICEDAMAGE},    --outfit gelo
                         [4] = {out = 1076, eff = 60, type = GHOSTDAMAGE}   --outfit ghost
                  },
                  
["Gardestrike Shiny Hitmonchan"] = {              
                         
                         [0] = {out = 837, eff = 112, type = FIGHTINGDAMAGE},  --outfit normal
                         [1] = {out = 1080, eff = 35, type = FIREDAMAGE},    --outfit fogo
                         [2] = {out = 1081, eff = 48, type = ELECTRICDAMAGE},    --outfit raio
                         [3] = {out = 1082, eff = 43, type = ICEDAMAGE},    --outfit gelo
                         [4] = {out = 1079, eff = 60, type = GHOSTDAMAGE}   --outfit ghost
                       }
}

------------------- HEADBUTT ----------------------------- --alterado v1.6
--[lvl] = {nome do poke, qnts vao vir}},
--lvl = ate q lvl vai vir esses pokes... ate lvl 25 vira os pokes da 1* tabela.. do 26 ao 40 vira os pokes da 2* tabela...
headbutt = {
[25] = {{"Metapod", 3}, {"Kakuna", 3}, {"Pidgey", 3}, {"Ekans", 1}, {"Sentret", 1}, {"Pineco", 1}, {"Spinarak", 2}},
[40] = {{"Pineco", 2}, {"Pidgeotto", 1}, {"Hoothoot", 1}, {"Shuckle", 1}, {"Beedrill", 2}, {"Spearow", 3}},
[60] = {{"Arbok", 1}, {"Beedrill", 4}, {"Furret", 1}, {"Ariados", 2}, {"Pidgeotto", 2}, {"Yanma", 1}, {"Pineco", 4}},
[80] = {{"Beedrill", 5}, {"Parasect", 2}, {"Forretress", 1}, {"Pinsir", 2}, {"Ariados", 3}, {"Pidgeotto", 4}, {"Venomoth", 2}, {"Yanma", 3}},
[150] = {{"Forretress", 3}, {"Noctowl", 2}, {"Xatu", 2}, {"Yanma", 4}, {"Scyther", 1}, {"Butterfree", 4}, {"Parasect", 2}, {"Heracross", 1}},
[1000] = {{"Venomoth", 3}, {"Pinsir", 4}, {"Forretress", 4}, {"Noctowl", 4}, {"Xatu", 4}, {"Yanma", 4}, {"Scyther", 2}, {"Butterfree", 4}, {"Heracross", 2}},
}


----------------------- LOOK -------------------------------
lookClans = {
[1] = {"a Volcanic Spark", "a Volcanic Flame","a Volcanic Firetamer","a Volcanic Pyromancer","a Volcanic Master"},
[2] = {"a Seavell Drop", "a Seavell Icelake","a Seavell Waterfall","a Seavell Frost","a Seavell Master"},
[3] = {"an Orebound Sand", "an Orebound Rock","an Orebound Solid","an Orebound Hardskin","an Orebound Hero"},
[4] = {"a Wingeon Cloud", "a Wingeon Wind","a Wingeon Sky","a Wingeon Falcon","a Wingeon Dragon"},
[5] = {"a Malefic Troublemaker", "a Malefic Venomancer","a Malefic Spectre","a Malefic Nightwalker","a Malefic Master"},
[6] = {"a Gardestrike Fist", "a Gardestrike Tamer","a Gardestrike Fighter","a Gardestrike DeathHand","a Gardestrike Champion"},
[7] = {"a Psycraft Mind", "a Psycraft Brain","a Psycraft Scholar","a Psycraft Telepath","a Psycraft Medium"},
[8] = {"a Naturia Seed", "a Naturia Sprout","a Naturia Webhead","a Naturia Woodtrunk","a Naturia Keeper"},
[9] = {"a Raibolt Shock", "a Raibolt Watt","a Raibolt Electrician","a Raibolt Overcharged","a Raibolt Legend"},
[10] = {"a Iron creator", "a Iron cutter","a Iron ","a Iron warrior","a Iron master"},
}

function doCastPassive(cid)
local name = doCorrectString(getCreatureName(cid))
-------------------------------------------Counter Helix------------------------------------
if passivesChances["Counter Helix"][doCorrectString(getCreatureName(cid))] and math.random(1, 100) <= passivesChances["Counter Helix"][doCorrectString(getCreatureName(cid))] then
   docastspell(cid, "Counter Helix")
end
-------------------------------------------Lava Counter/Electricity----------------------------
if passivesChances["Lava-Counter"][doCorrectString(getCreatureName(cid))] and math.random(1, 100) <= passivesChances["Lava-Counter"][doCorrectString(getCreatureName(cid))] then
   docastspell(cid, "Lava-Counter")
end
---------------------------------------Stunning Confusion-----------------------------------------
if passivesChances["Stunning Confusion"][doCorrectString(getCreatureName(cid))] and math.random(1, 100) <= passivesChances["Stunning Confusion"][doCorrectString(getCreatureName(cid))] then  
   docastspell(cid, "Stunning Confusion")
end
-----------------------------------------Groundshock-----------------------------------
if passivesChances["Bone-Spin"][doCorrectString(getCreatureName(cid))] and math.random(1, 100) <= passivesChances["Bone-Spin"][doCorrectString(getCreatureName(cid))] then
   docastspell(cid, "Bone-Spin")
end
--------------------------------------Electric Charge---------------------------------------------
if passivesChances["Shock-Counter"][doCorrectString(getCreatureName(cid))] and math.random(1, 100) <= passivesChances["Shock-Counter"][doCorrectString(getCreatureName(cid))] then
   docastspell(cid, "Shock-Counter")
end
-------------------------------------Melody------------------------------------
if passivesChances["Melody"][doCorrectString(getCreatureName(cid))] and math.random(1, 100) <= passivesChances["Melody"][doCorrectString(getCreatureName(cid))] then 
   docastspell(cid, "Melody")
end
------------------------------------- Dragon Fury / Fury ---------------------------------------
if passivesChances["Dragon Fury"][name] and math.random(1, 100) <= passivesChances["Dragon Fury"][doCorrectString(getCreatureName(cid))] then
   docastspell(cid, "Dragon Fury")
end
------------------------------------- Mega Drain ---------------------------------------
if passivesChances["Mega Drain"][doCorrectString(getCreatureName(cid))] and math.random(1, 100) <= passivesChances["Mega Drain"][doCorrectString(getCreatureName(cid))] then
   docastspell(cid, "Mega Drain")
end
------------------------------------- Spores Reaction ---------------------------------------
if passivesChances["Spores Reaction"][doCorrectString(getCreatureName(cid))] and math.random(1, 100) <= passivesChances["Spores Reaction"][doCorrectString(getCreatureName(cid))] then
   docastspell(cid, "Spores Reaction")
end
------------------------------------ Amnesia ----------------------------------------   
if passivesChances["Amnesia"][doCorrectString(getCreatureName(cid))] and math.random(1, 100) <= passivesChances["Amnesia"][doCorrectString(getCreatureName(cid))] then 
   docastspell(cid, "Amnesia", 0, 0)
end
----------------------------------- Zen Mind -----------------------------------------
if passivesChances["Zen Mind"][doCorrectString(getCreatureName(cid))] and isWithCondition(cid) and math.random(1, 100) <= passivesChances["Zen Mind"][doCorrectString(getCreatureName(cid))] then
   docastspell(cid, "Zen Mind", 0, 0)
end
---------------------------------- Mirror Coat ---------------------------------------
if passivesChances["Mirror Coat"][doCorrectString(getCreatureName(cid))] and math.random(1, 100) <= passivesChances["Mirror Coat"][doCorrectString(getCreatureName(cid))] then   
   docastspell(cid, "Mirror Coat", 0, 0)
end
--------------------------------- Illusion -----------------------------------------
return false
end
--------------------- Chance das passivas -------------------------    --alterado v1.7
passivesChances = {
["Counter Helix"] = { --counter helix, counter spin e afins 
               ["Scyther"] = 18,
               ["Scizor"] = 18,
               ["Shiny Scyther"] = 22,
               ["Hitmontop"] = 22,
               ["Shiny Hitmontop"] = 22,
               ["Pineco"] = 10,
               ["Forretress"] = 15,
               ["Kangaskhan"] = 18,
             },
["Lava-Counter"] = {
                       ["Magmar"] = 18,
                       ["Shiny Magmar"] = 22,
                       ["Shiny Magmortar"] = 26,
                       ["Magmortar"] = 22,
                       ["Magby"] = 15,
               ["Ho-oh"] = 20,
               ["Entei"] = 20,
                   },

["Bone-Spin"] = {
                       ["Marowak"] = 15,
                       ["Shiny Marowak"] = 22,
                       ["Cubone"] = 10,
                       ["Shiny Cubone"] = 15,
                   },

["Stunning Confusion"] = {     --stunning confusion
                   ["Golduck"] = 20,
                   ["Psyduck"] = 18,
                   ["Wobbuffet"] = 30,
               },
["Shock-Counter"] = {
                       ["Electabuzz"] = 18,
                       ["Shiny Electabuzz"] = 22,
                       ["Shiny Electivire"] = 26,
                       ["Shiny Electivire"] = 22,
                       ["Elekid"] = 15,
                       ["Raikou"] = 20,
                  },
["Electric Charge"] = {
                         ["Pikachu"] = 12,
                         ["Raichu"] = 18,
                         ["Shiny Raichu"] = 22,
                      },
["Melody"] = {
               ["Wigglytuff"] = 20,
             },
["Dragon Fury"] = {
                    ["Persian"] = 15,
                    ["Raticate"] = 10,
                    ["Shiny Raticate"] = 15,
                    ["Gyarados"] = 18,
                    ["Shiny Gyarados"] = 22,
                    ["Dratini"] = 8,
                    ["Dragonair"] = 12,
                    ["Dragonite"] = 18,
                    ["Shiny Dratini"] = 15,
                    ["Shiny Dragonair"] = 22,
                 },
["Mega Drain"] = {
                    ["Oddish"] = 5,
                    ["Gloom"] = 8,
                    ["Vileplume"] = 12,
                    ["Bellossom"] = 12,
                    ["Kabuto"] = 10,
                    ["Kabutops"] = 12,
                    ["Paras"] = 8,
                    ["Parasect"] = 10,
                    ["Tangela"] = 10,
                    ["Venonat"] = 10,
                    ["Venomoth"] = 10,
                    ["Hoppip"] = 8,
                    ["Skiploom"] = 12,
                    ["Tangrowth"] = 18,
                    ["Jumpluff"] = 10,
                    ["Shiny Oddish"] = 12,
                    ["Shiny Venonat"] = 20,
                    ["Shiny Venomoth"] = 20,
                    ["Shiny Vileplume"] = 20,
            ["Shiny Paras"] = 12,
                    ["Shiny Parasect"] = 12,
                    ["Shiny Tangela"] = 20,
                },
["Spores Reaction"] = {
                         ["Oddish"] = 10,
             ["Tangela"] = 12,
             ["Tangrowth"] = 18,
             ["Shiny Tangela"] = 20,
                         ["Gloom"] = 10,
                         ["Vileplume"] = 12,
                         ["Bellossom"] = 12,
             ["Hoppip"] = 8,
                         ["Skiploom"] = 12,
                         ["Jumpluff"] = 12,
             ["Paras"] = 8,
             ["Parasect"] = 18,
                         ["Shiny Vileplume"] = 20,
             ["Shiny Oddish"] = 10,
             ["Shiny Paras"] = 10,
             ["Shiny Parasect"] = 12,
                     },
["Amnesia"] = {
                ["Wooper"] = 10,
                ["Quagsire"] = 15,
                ["Swinub"] = 10,
                ["Wailord"] = 10,
                ["Piloswine"] = 15,
                ["Shiny Slowking"] = 8,
                ["Lorelei Piloswine"] = 15,
              },
["Zen Mind"] = {
                 ["Slowking"] = 20,
               },
["Mirror Coat"] = {
                    ["Wobbuffet"] = 20,
                  },
["Demon Kicker"] = {
                     ["Hitmonlee"] = 25,
                     ["Shiny Hitmonlee"] = 28,
                   },
["Demon Puncher"] = {
                      ["Hitmonchan"] = 25,
                      ["Shiny Hitmonchan"] = 28, 
                   },
["Evasion"] = {
                ["Scyther"] = 28,
                ["Shiny Scyther"] = 30,
                ["Scizor"] = 28,
                ["Hitmonlee"] = 28,
                ["Hitmonchan"] = 28,
                ["Hitmontop"] = 28,
                ["Shiny Hitmonlee"] = 28,
                ["Furios Scyther"] = 28,
                ["Rolling Hitmontop"] = 28,
                ["Puncher Hitmonchan"] = 28,
                ["Shiny Hitmonchan"] = 30,
                ["Shiny Hitmontop"] = 30,
                ["Tyrogue"] = 15,
                ["Ledian"] = 15,
                ["Ledyba"] = 10,
                ["Sneasel"] = 20,
                ["Beedrill"] = 20,
                ["Shiny Beedrill"] = 28,
                ["Mega Scizor"] = 100,
             },
}

--[[ Tabela PokePrice adicionada a baixo, para o npc Seller que compra
pokes, so edita ela aqui msm !! --]]

pokesPrice = {
["Charmander"] = 3000,
["Charmeleon"] = 8000, 
["Charizard"] = 18000,
["Bulbasaur"] =  3000,
["Ivysaur"] =  8000,
["Venusaur"] =  18000,
["Squirtle"] =  3000,
["Wartortle"] =  8000,
["Blastoise"] =  18000,
["Caterpie"] =  50,
["Metapod"] =  250,
["Butterfree"] =  2000,
["Weedle"] =  50,
["Kakuna"] =  250,
["Beedrill"] =  2000,
["Pidgey"] =  60,
["Pidgeotto"] =  1500,
["Pidgeot"] =  11500,
["Rattata"] =  5,
["Raticate"] =  2000,
["Spearow"] =  100,
["Fearow"] =  5100,
["Ekans"] =  300,
["Arbok"] =  3000,
["Pikachu"] =  8000,
["Raichu"] =  18000,
["Sandshrew"] =  1000,
["Sandslash"] =  11000,
["Nidoran Female"] =  125,
["Nidorina"] =  2250,
["Nidoqueen"] =  12250,
["Nidoran Male"] =  125,
["Nidorino"] =  2250,
["Nidoqueen"] = 12250,
["Clefairy"] =  8000,
["Clefable"] =  18000,
["Vulpix"] =  1000,
["Ninetales"] = 11000,
["Jigglypuff"] =  8000,
["Wigglytuff"] =  18000,
["Zubat"] =  120,
["Golbat"] =  3000,
["Oddish"] =  80,
["Gloom"] =  2250,
["Vileplume"] =  12000,
["Paras"] =  60,
["Parasect"] =  7250, 
["Venonat"] =  1500,
["Venomoth"] =  7250,
["Diglett"] =  200,
["Dugtrio"] =  3000,
["Meowth"] =  300,
["Persian"] =  3000,
["Psyduck"] =  1500,
["Golduck"] =  11500,
["Mankey"] =  300,
["Primeape"] =  7250,
["Growlithe"] =  3500,
["Arcanine"] =  60000,
["Poliwag"] =  80,
["Poliwhirl"] =  3000,
["Poliwrath"] =  13000,
["Abra"] =  800,
["Kadabra"] =  5800,
["Alakazam"] =  16000,
["Machop"] =  2000,
["Machoke"] =  7000,
["Machamp"] =  17000,
["Bellsprout"] =  80,
["Wepinbell"] =  2250,
["Victreebel"] =  12000,
["Tentacool"] =  300,
["Tentacruel"] =  10000,
["Geodude"] =  300,
["Graveler"] =  5000,
["Golem"] =  15000,
["Ponyta"] =  1500,
["Rapidash"] =  6500,
["Slowpoke"] =  400,
["Slowbro"] =  8000,
["Magnemite"] =  400,
["Magneton"] =  5400,
["Farfetch'd"] =  7000,
["Doduo"] =  600,
["Dodrio"] =  5600,
["Seel"] =  2000,
["Dewgong"] = 12000,
["Grimer"] =  300,
["Muk"] =  11000,
["Shellder"] =  200,
["Cloyster"] =  10200,
["Gastly"] =  3000,
["Haunter"] =  8000,
["Gengar"] =  18000,
["Onix"] =  6000,
["Drowzee"] =  1000,
["Hypno"] =  6000,
["Krabby"] =  200,
["Kingler"] =  5200,
["Voltorb"] =  250,
["Electrode"] =  3000,
["Exeggute"] =  200,
["Exeggutor"] =  10000,
["Cubone"] =  1000,
["Marowak"] =  11000,
["Hitmonlee"] =  20000,
["Hitmonchan"] =  20000,
["Lickitung"] =  60000,
["Koffing"] =  300,
["Weezing"] =  3000,
["Rhyhorn"] =  3000,
["Rhydon"] =  13000,
["Chansey"] =  40000,
["Tangela"] =  10000,
["Kangaskhan"] = 120000,
["Horsea"] =  200,
["Seadra"] =  5500,
["Goldeen"] =  200,
["Seaking"] =  3000,
["Staryu"] =  400,
["Starmie"] =  3000,
["Mr. Mime"] =  120000,
["Scyther"] =  120000,
["Jynx"] =  120000,
["Electabuzz"] =  120000,
["Magmar"] =  120000,
["Pinsir"] =  9000,
["Tauros"] =  5000,
["Magikarp"] =  5,
["Gyarados"] =  55000,
["Lapras"] =  120000,
["Ditto"] =  70000,
["Eevee"] =  45000,
["Vaporeon"] =  50000,
["Jolteon"] =  50000,
["Flareon"] =  50000,
["Porygon"] =  60000,
["Omanyte"] =  20000,
["Omastar"] =  75000,
["Kabuto"] =  2000,
["Kabutops"] =  75000,
["Aerodactyl"] =  2000000,
["Snorlax"] =  200000,
["Dratini"] =  15000,
["Dragonair"] =  65000,
["Dragonite"] =  125000,
 
-- Segunda Geração

["Chikorita"] = 3000,
["Bayleef"] = 8000,
["Meganium"] = 18000,
["Cydaquil"] = 3000,
["Quilava"] = 8000,
["Typhlosion"] = 18000,
["Totodile"] = 3000,
["Croconaw"] = 8000,
["Feraligatr"] = 18000,
["Sentret"] = 250,
["Furret"] = 3000,
["Hoothoot"] = 1500,
["Noctowl"] = 11500,
["Ledyba"] = 250,
["Ledian"] = 3000,
["Spinarak"] = 250,
["Ariados"] = 3000,
["Crobat"] = 58000,
["Chinchou"] = 1000,
["Lanturn"] = 6000,
["Pichu"] = 3000,
["Cleffa"] = 3000,
["Igglybuff"] = 3000,
["Togepi"] = 15000,
["Togetic"] = 25000,
["Natu"] = 3000,
["Xatu"] = 130000,
["Mareep"] = 3000,
["Flaaffy"] = 8000,
["Ampharos"] = 18000,
["Bellossom"] = 12000,
["Marill"] = 3000,
["Azumarill"] = 13000,
["Sudowoodo"] = 120000,
["Politoed"] = 8000,
["Hoppip"] = 80,
["Skiploom"] = 2250,
["Jumpluff"] = 12000,
["Aipom"] = 8000,
["Sunkern"] = 50,
["Sunflora"] = 5000,
["Yanma"] = 9000,
["Wooper"] = 2000,
["Quagsire"] = 12000,
["Espeon"] = 50000,
["Umbreon"] = 50000,
["Murkrow"] = 10000,
["Slowking"] = 110000,
["Misdreavus"] = 100000,
["Wobbuffet"] = 200000,
["Girafarig"] = 120000,
["Pineco"] = 300,
["Forretress"] = 10000,
["Dunsparce"] = 3000,
["Gligar"] = 8000,
["Steelix"] = 110000,
["Snubbull"] = 22500,
["Granbull"] = 12500,
["Qwilfish"] = 10000,
["Scizor"] = 220000,
["Shuckle"] = 3500,
["Heracross"] = 120000,
["Sneasel"] = 10000,
["Teddiursa"] = 80000,
["Ursaring"] = 150000,
["Slugma"] = 1000,
["Magcargo"] = 11000,
["Swinub"] = 1000,
["Piloswine"] = 11000,
["Corsola"] = 9000,
["Remoraid"] = 200,
["Octillery"] = 10000,
["Delibird"] = 10000,
["Mantine"] = 120000,
["Skarmory"] = 120000,
["Houndour"] = 35000,
["Houndoom"] = 13500,
["kingdra"] = 70000,
["Phanpy"] = 3000,
["Donphan"] = 13000,
["Porygon2"] = 120000,
["Stantler"] = 10000,
["Tyrogue"] = 150000,
["Hitmontop"] = 500000,
["Smoochum"] = 45000,
["Elikid"] = 45000,
["Magby"] = 45000,
["Miltank"] = 120000,
["Blissey"] = 140000,
["Larvitar"] = 15000,
["Pupitar"] = 65000,
["Tyranitar"] = 125000,
-- shiny --
["Shiny Fearow"] = 1500000,
["Shiny Vileplume"] = 1500000,
["Shiny Golem"] = 1500000,
["Shiny Nidoking"] = 1500000,
["Shiny Hypno"] = 1500000,
["Shiny Vaporeon"] = 1500000,
["Shiny Jolteon"] = 1500000,
["Shiny Flareon"] = 1500000,
["Shiny Hitmontop"] = 1500000,
}

--> [HELDS] <--
-- X --
AtkBonus1 = 1.10
AtkBonus2 = 1.20
AtkBonus3 = 1.30
AtkBonus4 = 1.40
AtkBonus5 = 1.70
AtkBonus6 = 2
AtkBonus7 = 2.80
DefBonus1 = 1.10
DefBonus2 = 1.20
DefBonus3 = 1.30
DefBonus4 = 1.40
DefBonus5 = 1.90
DefBonus6 = 2
DefBonus7 = 2.80
DmgReturn1 = 0.04
DmgReturn2 = 0.05
DmgReturn3 = 0.06
DmgReturn4 = 0.07
DmgReturn5 = 0.15
DmgReturn6 = 0.25
DmgReturn7 = 0.40
HellBonus1 = 2.50
HellBonus2 = 2.60
HellBonus3 = 2.70
HellBonus4 = 2.80
HellBonus5 = 2.90
HellBonus6 = 3
HellBonus7 = 3.50
PoisonBonus1 = 2.50
PoisonBonus2 = 2.60
PoisonBonus3 = 2.70
PoisonBonus4 = 2.80
PoisonBonus5 = 2.90
PoisonBonus6 = 3
PoisonBonus7 = 3.50
BoostBonus1 = 5
BoostBonus2 = 8
BoostBonus3 = 12
BoostBonus4 = 15
BoostBonus5 = 18
BoostBonus6 = 22
BoostBonus7 = 30
-- Y --
Regen1 = 700
Regen2 = 1000
Regen3 = 1500
Regen4 = 2000
Regen5 = 2500
Regen6 = 3200
Regen7 = 4500
Cure1 = 15
Cure2 = 25
Cure3 = 40
Cure4 = 50
Cure5 = 70
Cure6 = 80
Cure7 = 100

--> [HELDS] <--

 

Citar

some function.lua

Citar

function getStringOfTaskArray(array)
   if type(array) ~= 'table' or not next(array) then return "" end
   
   local result = {}
    for _, value in ipairs(array) do
        local thing, num = (type(value[1]) == 'string' and value[1] or getItemNameById(value[1])), value[2]
        table.insert(result, (_ == 1 and "" or ", ")..num.." "..thing..(num == 1 and "" or "s"))
    end
    result[#result] = " and"..(result[#result]:sub(2,#result[#result]))
    return table.concat(result)
end

function getVitalityByMaster(cid)
if not isCreature(cid) then return 0 end
local ball = getPlayerSlotItem(cid, 8).uid
if not ball or ball <= 1 or not pokes[getItemAttribute(ball, 'poke')] then return true end
   return pokes[getItemAttribute(ball, 'poke')].vitality * (getPlayerLevel(cid) + (getItemAttribute(ball, 'boost') or 0))
end

function onPokeHealthChange(cid, zerar)
   if not isCreature(cid) then return true end
   if zerar then doPlayerSendCancel(cid, '#ph#,0,0') end
   local ball = getPlayerSlotItem(cid, 8).uid
   if not ball or ball <= 1 or not pokes[getItemAttribute(ball, 'poke')] then return true end
   
   if #getCreatureSummons(cid) >= 1 and getPlayerStorageValue(cid, 212124) <= 0 then   --alterado v1.6
      local pokemon = getCreatureSummons(cid)[1]
      local pokelife = (getCreatureHealth(pokemon) / getCreatureMaxHealth(pokemon))
      doItemSetAttribute(ball, "hp", pokelife)
   end
   
      local rd = 1 - (tonumber(getItemAttribute(ball, "hp")))
   local maxHp = HPperVITsummon * getVitalityByMaster(cid) 
   local hp = maxHp -(maxHp * rd)   
   doPlayerSendCancel(cid, '#ph#,'.. math.floor(hp) ..','.. math.floor(maxHp))
end

function addPokeToPlayer(cid, pokemon, boost, gender, ball, unique, mega)             --alterado v1.9 \/ peguem ele todo...
local genders = {
["male"] = 4,
["female"] = 3,
[1] = 4,
[0] = 3,
[4] = 4,
[3] = 3,
}
if not isCreature(cid) then return false end

local pokemon = doCorrectString(pokemon)
if not pokes[pokemon] then return false end

   local GENDER = (gender and genders[gender]) and genders[gender] or getRandomGenderByName(pokemon)
   local btype = (ball and pokeballs[ball]) and ball or isShinyName(pokemon) and "shinypoke" or "poke"
   local happy = 250
   id = 11829
   
   if pokemon == "Shiny Ditto" then
        id = 11743
    end

   
    local cap = getPlayerFreeCap(cid)
   if (getPlayerFreeCap(cid) <= 1 and not isInArray({5, 6}, getPlayerGroupId(cid))) or not hasSpaceInContainer(getPlayerSlotItem(cid, 3).uid) then 
      item = doCreateItemEx(id)
   else
      item = addItemInFreeBag(getPlayerSlotItem(cid, 3).uid, id, 1)   
   end
   if not item then return false end

   doItemSetAttribute(item, "poke", pokemon)
   doItemSetAttribute(item, "hpToDraw", 0)
   doSetItemAttribute(item, "hands", 0)
   doItemSetAttribute(item, "ball", btype)
   doItemSetAttribute(item, "reverseIcon", btype)
   doSetAttributesBallsByPokeName(cid, item, pokemon)
    
   if boost and tonumber(boost) and tonumber(boost) > 0 and tonumber(boost) <= 50 then
      doItemSetAttribute(item, "boost", boost)
   end
   if unique then
      doItemSetAttribute(item, "unique", getCreatureName(cid))
   end
                                                                             
   if (cap <= 1 and not isInArray({5, 6}, getPlayerGroupId(cid))) or not hasSpaceInContainer(getPlayerSlotItem(cid, 3).uid) then
       if mega then
          doItemSetAttribute(item, "yHeldItem",    mega .. "|MEGA")
       end
      doPlayerSendMailByName(getCreatureName(cid), item, 1)
      sendMsgToPlayer(cid, 27, "You are already holding six pokemons, so your new pokemon was sent to your depot.")
   end
   doTransformItem(item, id)
   
   if mega then
      doItemSetAttribute(item, "yHeldItem",    mega .. "|MEGA")
   end
return true
end 
---------------------------

function unLock(ball)                                                             
if not ball or ball <= 0 then return false end
if getItemAttribute(ball, "lock") and getItemAttribute(ball, "lock") > 0 then
   local vipTime = getItemAttribute(ball, "lock")
   local timeNow = os.time()
   local days = math.ceil((vipTime - timeNow)/(24 * 60 * 60))
   if days <= 0 then
      doItemEraseAttribute(ball, "lock")    
      doItemEraseAttribute(ball, "unique")
      return true
   end
end
return false
end

function getGuildMembersOnline(GuildId)
local players = {}
for _, pid in pairs(getPlayersOnline()) do
    if getPlayerGuildId(pid) == tonumber(GuildId) then
       table.insert(players, pid)
    end
end                                                   --by Vodkart
return #players > 0 and players or false
end

function getGuildMembers(GuildId)
local players,query = {},db.getResult("SELECT `name` FROM `players` WHERE `rank_id` IN (SELECT `id` FROM `guild_ranks` WHERE `guild_id` = " .. GuildId .. ");")
if (query:getID() ~= -1) then  
   repeat
         table.insert(players,query:getDataString("name"))
   until not query:next()                           --by Vodkart
   query:free()
end
return #players > 0 and players or false
end 
--/////////////////////////////////////////////////////////////////////////////////---
function sendMsgToPlayer(cid, tpw, msg)      --alterado v1.7 \/\/\/
if not isCreature(cid) or not tpw or not msg then return true end
return doPlayerSendTextMessage(cid, tpw, msg)
end

function getPlayerDesc(cid, thing, TV)
if (not isCreature(cid) or not isCreature(thing)) and not TV then return "" end

if isRecording(cid) and isWatchingTv(thing) then
    thing = cid
end

local pos = getThingPos(thing)
local ocup = youAre[getPlayerGroupId(thing)]
local rank = (getPlayerStorageValue(thing, 86228) <= 0) and "a Pokemon Trainer" or lookClans[getPlayerStorageValue(thing, 86228)][getPlayerStorageValue(thing, 862281)]
if rank == nil then
rank = "[Clan bugeado reportar con el gm]"
end
local name = thing == cid and "yourself" or getCreatureName(thing)     
local art = thing == cid and "You are" or (getPlayerSex(thing) == 0 and "She is" or "He is")

local str = {}  
 if isWatchingTv(cid) and isWatchingTv(thing) and (getThingPos(cid).x == getThingPos(thing).x and getThingPos(cid).y == getThingPos(thing).y and getThingPos(cid).z == getThingPos(thing).z) then  
    local watchedPlayer = getPlayerStorageValue(cid, storages.playerIsTvWhosWatching)
    table.insert(str, "You see " .. watchedPlayer .. ".")
    return table.concat(str) 
end
   

table.insert(str, "You see "..name..". "..art.." ")
local townName = getTownName(getPlayerTown(thing))
    if not townName then
      townName = "Server para Testes"
    end
if youAre[getPlayerGroupId(thing)] then
   table.insert(str, (ocup).." and "..rank.." from ".. townName..".")       
else
   table.insert(str, (rank).." from ".. townName..".")
end
if getPlayerGuildId(thing) > 0 then
   table.insert(str, " "..art.." "..getPlayerGuildRank(thing).." from the "..getPlayerGuildName(thing)..".")
end
if isWatchingTv(thing) then
   table.insert(str, " "..art.." watching TV.")
end

    local rarePokes = #getRarePokeballs(thing, getPlayerSlotItem(thing, 3).uid) 
    local ballsCount = 0
    local arg = rarePokes > 1 and "s" or ""
          ballsCount = #getPokeballsInContainer(getPlayerSlotItem(thing, 3).uid)
          if getPlayerSlotItem(thing, 8).uid ~= 0 and isPokeball(getPlayerSlotItem(thing, 8).itemid) then
             ballsCount = ballsCount+1
          end
          if getPlayerSlotItem(thing, 10).uid ~= 0 and isPokeball(getPlayerSlotItem(thing, 10).itemid) then
             ballsCount = ballsCount+1
          end
          
        if getCreatureName(thing) == "[ADM]Omarwsk" then
            table.insert(str, "\nEl es el dueño y administrador del juego.")
        elseif getCreatureName(thing) == "[GM] Stigal" then
            table.insert(str, "\nJoga a lanterna SUPORTE LIXO.")
        elseif getCreatureName(thing) == "[GM] Lord Sorte" then
            table.insert(str, "\nCabra da peste.")
        elseif getCreatureName(thing) == "[ADM] Sapphire" then
            table.insert(str, "\nO DEUS.")
        end
       
    table.insert(str, "\nLevel: [" .. getPlayerLevel(thing) .. "]" .. (rarePokes > 0 and ", " or " e ") .. ballsCount .. " pokemon" .. (ballsCount > 1 and "s" or "") .. (rarePokes > 0 and " e " .. rarePokes .. " deles shiny" .. arg .. "." or ".")) 

table.insert(str, ((isPlayer(cid) and youAre[getPlayerGroupId(cid)]) and "\nPosition: [X: "..pos.x.."][Y: "..pos.y.."][Z: "..pos.z.."]" or "")) 

return table.concat(str) 
end
-------------------------------------------------------------------------------------------------   /\/\
function getLivePokeballs(cid, container, duel) 
    if not isCreature(cid) then return {} end     
    if not isContainer(container) then return {} end
    local items = {}
    ---
    local ballSlot = getPlayerSlotItem(cid, 8)
    if ballSlot.uid ~= 0 then
       for a, b in pairs (pokeballs) do
           if ballSlot.itemid == b.on or ballSlot.itemid == b.use then
              if duel and getPlayerLevel(cid) >= (pokes[getItemAttribute(ballSlot.uid, "poke")].level + getPokeballBoost(ballSlot)) then
                 table.insert(items, ballSlot.uid)                                                                      --alterado v1.8
              elseif not duel then
                 table.insert(items, ballSlot.uid)
              end
           end
       end
    end
    --- 
    ---
    local ballSlot = getPlayerSlotItem(cid, 10)
    if ballSlot.uid ~= 0 then
       for a, b in pairs (pokeballs) do
           if ballSlot.itemid == b.on then
              if duel and getPlayerLevel(cid) >= (pokes[getItemAttribute(ballSlot.uid, "poke")].level + getPokeballBoost(ballSlot)) then
                 table.insert(items, ballSlot.uid)                                                                      --alterado v1.8
              elseif not duel then
                 table.insert(items, ballSlot.uid)
              end
           end
       end
    end
    ---     
    if isContainer(container) and getContainerSize(container) > 0 then      
        for slot=0, (getContainerSize(container)-1) do
            local item = getContainerItem(container, slot)
                if isContainer(item.uid) then
                    local itemsbag = getPokeballsInContainer(item.uid)
                    for i=0, #itemsbag do
                        if not isInArray(items, itemsbag) then
                           table.insert(items, itemsbag)
                        end
                    end
                elseif isPokeball(item.itemid) then
                    for a, b in pairs (pokeballs) do
                        if item.itemid == b.on then
                           if duel and getPlayerLevel(cid) >= (pokes[getItemAttribute(item.uid, "poke")].level + getPokeballBoost(item)) then    
                              table.insert(items, item.uid)                                            --alterado v1.8
                           elseif not duel then
                              table.insert(items, item.uid)
                           end
                        end
                    end
                end
        end
    end
return items
end

function getRarePokeballs(cid, container) 
    if not isCreature(cid) then return {} end     
    if not isContainer(container) then return {} end
    local items = {}
    ---
    local ballSlot = getPlayerSlotItem(cid, 8)
    if ballSlot.uid ~= 0 then
       for a, b in pairs (pokeballs) do
           if ballSlot.itemid == b.on or ballSlot.itemid == b.use or ballSlot.itemid == b.off then
             if string.find(getItemAttribute(ballSlot.uid, "poke"):lower(), "shiny") then
                table.insert(items, ballSlot.uid)
             end
           end
       end
    end
    --- 
    ---
    local ballSlot = getPlayerSlotItem(cid, 10)
    if ballSlot.uid ~= 0 then
       for a, b in pairs (pokeballs) do
           if ballSlot.itemid == b.on or ballSlot.itemid == b.use or ballSlot.itemid == b.off then
              if string.find(getItemAttribute(ballSlot.uid, "poke"):lower(), "shiny") then
                table.insert(items, ballSlot.uid)
             end
           end
       end
    end
    ---     
    if isContainer(container) and getContainerSize(container) > 0 then      
        for slot=0, (getContainerSize(container)-1) do
            local item = getContainerItem(container, slot)
                if isContainer(item.uid) then
                    local itemsbag = getPokeballsInContainer(item.uid)
                    for i=0, #itemsbag do
                        if not isInArray(items, itemsbag) then
                           table.insert(items, itemsbag)
                        end
                    end
                elseif isPokeball(item.itemid) then
                    for a, b in pairs (pokeballs) do
                        if item.itemid == b.on or item.itemid == b.use or item.itemid == b.off then
                           if string.find(getItemAttribute(item.uid, "poke"):lower(), "shiny") then
                              table.insert(items, item.uid)
                           end
                        end
                    end
                end
        end
    end
return items
end

function addItemInFreeBag(container, item, num)
if not isContainer(container) or not item then return false end                                             
if not num or num <= 0 then num = 1 end                                            --alterado v1.6.1
if getContainerSize(container) < getContainerCap(container) then
   return doAddContainerItem(container, item, num)
else
   for slot = 0, (getContainerSize(container)-1) do
       local container2 = getContainerItem(container, slot)
       if isContainer(container2.uid) and getContainerSize(container2.uid) < getContainerCap(container2.uid) then
          return doAddContainerItem(container2.uid, item, num)
       end
   end
end
return false
end
------------------------------------------------------------------------------------------------------
function pokeHaveReflect(cid)
if not isCreature(cid) then return false end
local table = getTableMove(getCreatureName(cid), "Reflect")
if table and table.name then     --alterado v1.6
   return true 
end
return false
end
------------------------------------------------------------------------------------------------------
function nextHorario(cid)
    horarioAtual = os.date("%X")
    horario = string.explode(horarioAtual, ":")
    
    for i = 1, #horas do
        horarioComparacao = horas
        horarioComp = string.explode(horarioComparacao, ":")
        ---------------
        if tonumber(horarioComp[1]) > tonumber(horario[1]) then
           return horarioComparacao                                
        elseif tonumber(horarioComp[1]) == tonumber(horario[1]) and tonumber(horario[2]) < tonumber(horarioComp[2]) then
           return horarioComparacao
        end
    end 
    return horas[1]                                  
end                                                               

function getTimeDiff(timeDiff)
local dateFormat = {
{'hour', timeDiff / 60 / 60}, --6%
{'min', timeDiff / 60 % 60},
}
local out = {}                                   
for k, t in ipairs(dateFormat) do
    local v = math.floor(t[2])
    if(v > -1) then
         table.insert(out, (k < #dateFormat and '' or ' and ') .. v .. '' .. (v <= 1 and t[1] or t[1].."s"))
    end
end
if tonumber(dateFormat[1][2]) == 0 and tonumber(dateFormat[2][2]) == 0 then
   return "seconds"
end
return table.concat(out)
end

function getTimeDiff2(timeDiff)
local dateFormat = {
{'hour', timeDiff / 60 / 60}, --6%
{'min', timeDiff / 60 % 60},
{'sec', timeDiff % 60},
}
local out = {}                                  
for k, t in ipairs(dateFormat) do
    local v = math.floor(t[2])
    if(v > 0) then
         table.insert(out, (k < #dateFormat and ' ' or ' and ') .. v .. '' .. (v <= 1 and t[1] or t[1].."s"))
    end
end
return table.concat(out)
end 

function showTimeDiff(timeComp)
local b = string.explode(os.date("%X"), ":")
local c = string.explode(timeComp, ":")
    ---
    local d, m, y = os.date("%d"), os.date("%m"), os.date("%Y")
    local hAtual, mAtual = tonumber(b[1]), tonumber(b[2])
    local hComp, mComp = tonumber(c[1]), tonumber(c[2])
    ---
    local t = os.time{year= y, month= m, day= d, hour= hAtual, min= mAtual}
    local t1 = os.time{year= y, month= m, day= d, hour= hComp, min= mComp}
    ---                                                                       
    comparacao = t1-t
    if hComp < hAtual then
       v = os.time{year= y, month= m, day= d, hour= 24, min= 0}
       v2 = os.time{year= y, month= m, day= d, hour= 0, min= 0}
       comparacao = (v-t)+(t1-v2)
    end
return getTimeDiff(comparacao)
end
-------------------------------------------------------------------------
function cleanCMcds(item)
if item ~= 0 then
   for c = 1, 15 do              --alterado v1.5
      local str = "cm_move"..c
      setCD(item, str, 0)
   end
end
end

function ehNPC(cid)   --alterado v1.9
return isCreature(cid) and not isPlayer(cid) and not isSummon(cid) and not isMonster(cid)
end

function ehMonstro(cid)
local eh = false
    if not isSummon(cid) and not ehNPC(cid) and not isPlayer(cid) then
        eh = true
    end
    return eh
end                                                      --alterado v1.9.1 /\

function doAppear(cid) --Faz um poke q tava invisivel voltar a ser visivel...
if not isCreature(cid) then return true end 
doRemoveCondition(cid, CONDITION_INVISIBLE)
doRemoveCondition(cid, CONDITION_OUTFIT)
doCreatureSetHideHealth(cid, false)
    if isMega(cid) then
       checkOutfitMega(cid, getPlayerStorageValue(cid, storages.isMega))
    end
end

function doDisapear(cid)   --Faz um pokemon ficar invisivel
if not isCreature(cid) then return true end
doCreatureAddCondition(cid, permanentinvisible)
doCreatureSetHideHealth(cid, true)
doSetCreatureOutfit(cid, {lookType = 2}, -1)
end

function KecleonCamuOff(cid) 
setPlayerStorageValue(cid, 898999, -1)
if not isCreature(cid) then return true end 
doRemoveCondition(cid, CONDITION_OUTFIT)
doCreatureSetHideHealth(cid, false)
end

function KecleonCamuOn(cid)   --Faz um pokemon ficar invisivel
setPlayerStorageValue(cid, 898999, 1)
if not isCreature(cid) then return true end
doCreatureSetHideHealth(cid, true)
doSetCreatureOutfit(cid, {lookType = 2167}, -1)
end

function KecleonCamuWildOn(cid)   --Faz um pokemon ficar invisivel
if not isCreature(cid) then return true end
doCreatureSetHideHealth(cid, true)
doSetCreatureOutfit(cid, {lookType = 2167}, -1)
end

function KecleonCamuWildOff(cid) 
if not isCreature(cid) then return true end 
doRemoveCondition(cid, CONDITION_INVISIBLE)
doRemoveCondition(cid, CONDITION_OUTFIT)
doCreatureSetHideHealth(cid, false)
end

function hasTile(pos)    --Verifica se tem TILE na pos
pos.stackpos = 0
if getTileThingByPos(pos).itemid >= 1 then
   return true
end
return false
end

function getThingFromPosWithProtect(pos)  --Pega uma creatura numa posiçao com proteçoes
if hasTile(pos) then
   if isCreature(getRecorderCreature(pos)) then
      return getRecorderCreature(pos)
   else
      pos.stackpos = 253
      pid = getThingfromPos(pos).uid
   end
else
   pid = getThingfromPos({x=2,y=1,z=15,stackpos=253}).uid -- mudar essa posicao
end
return pid
end

function getTileThingWithProtect(pos)    --Pega um TILE com proteçoes
if hasTile(pos) then
pos.stackpos = 0
   pid = getTileThingByPos(pos)
else
    pid = getThingfromPos({x=2,y=1,z=15,stackpos=253}).uid -- mudar essa posicao
end
return pid
end

function canAttackOther(cid, pid)         --Function q verifica se um poke/player pode atacar outro poke/player

if not isCreature(cid) or not isCreature(pid) then return "Cant" end

local master1 = isSummon(cid) and getCreatureMaster(cid) or cid
local master2 = isSummon(pid) and getCreatureMaster(pid) or pid
   
   ----             
        if CanAttackerInDuel(master1, master2) and not isPlayer(cid) then
            return "Can"
         end
        if CanAttackerInFree(master1, master2) then
            return "Can"
         end
   ----              pvp system
   if getPlayerStorageValue(master1, 6598754) >= 1 and getPlayerStorageValue(master2, 6598755) >= 1 then
      return "Can" 
   end
   if getPlayerStorageValue(master1, 6598755) >= 1 and getPlayerStorageValue(master2, 6598754) >= 1 then  ---estar em times diferentes
      return "Can"
   end
   --if getPlayerStorageValue(cid, 321321) >= 1  then  ---pvp libre
   --  return "Can"
   --end
   --if getPlayerStorageValue(getCreatureMaster(cid), 321321) >= 1 and getPlayerStorageValue(getCreatureMaster(pid), 321321) >= 1 then  ---pvp libre
   --   return "Can"
  -- end
   ----
   if ehMonstro(cid) and ehMonstro(pid) then 
      return "Can"
   end

return "Cant"
end
   
      
function stopNow(cid, time)   
if not isCreature(cid) or not tonumber(time) or isSleeping(cid) then return true end
                                                        --alterado v1.9.1 \/
local function podeMover(cid)                         
if isPlayer(cid) then 
   mayNotMove(cid, false) 
elseif isCreature(cid) then 
   doRegainSpeed(cid) 
end
end

if isPlayer(cid) then mayNotMove(cid, true) else doChangeSpeed(cid, -getCreatureSpeed(cid)) end
addEvent(podeMover, time, cid)
end

function doReduceStatus(cid, off, def, agi)   --reduz os status
if not isCreature(cid) then return true end
local A = getOffense(cid)
local B = getDefense(cid)
local C = getSpeed(cid)

if off > 0 then
   setPlayerStorageValue(cid, 1001, A - off)
end
if def > 0 then
   setPlayerStorageValue(cid, 1002, B - def)
end
if agi > 0 then
   setPlayerStorageValue(cid, 1003, C - agi)
   if getCreatureSpeed(cid) ~= 0 then
      doRegainSpeed(cid)
   end                                              --alterado v1.5  functions arrumadas...
end
end

function doRaiseStatus(cid, off, def, agi, time)  
if not isCreature(cid) then return true end
local A = getOffense(cid)
local B = getDefense(cid)
local C = getSpeed(cid)

if off > 0 then
   setPlayerStorageValue(cid, 1001, A * off)
end
if def > 0 then
   setPlayerStorageValue(cid, 1002, B * def)
end
if agi > 0 then
   setPlayerStorageValue(cid, 1003, C + agi)
   if getCreatureSpeed(cid) ~= 0 then
      doRegainSpeed(cid)
   end
end

local D = getOffense(cid)
local E = getDefense(cid)
local F = getSpeed(cid)
---------------------------
local G = D - A
local H = E - B
local I = F - C

addEvent(doReduceStatus, time*1000, cid, G, H, I)
end


function BackTeam(cid)          
  if isCreature(cid) then
     local summon = getCreatureSummons(cid)   --alterado v1.6
     for i = 2, #summon do
         doSendMagicEffect(getThingPos(summon), 211)
         doRemoveCreature(summon)
     end
     setPlayerStorageValue(cid, 637501, -1)
  end  
end
    
function choose(...) -- by mock
    local arg = {...}
    return arg[math.random(1,#arg)]
end

function AddPremium(cid, days)
local function removerPlayer(cid)
if isCreature(cid) then
   doRemoveCreature(cid)
end
end

db.executeQuery("UPDATE `accounts` SET `premdays` = '"..days.."' WHERE `accounts`.`id` = ".. getPlayerAccountId(cid) ..";")
doPlayerSendTextMessage(cid,25,"Você será kickado em 5 segundos.")    
addEvent(removerPlayer, 5*1000, cid)     
return TRUE
end

function isShiny(cid) 
return isCreature(cid) and string.find(getCreatureName(cid), "Shiny")  --alterado v1.9
end

function isShinyName(name)        
return tostring(name) and string.find(doCorrectString(name), "Shiny") --alterado v1.9
end

function doConvertTypeToStone(type, string)
local t = {
["fly"] = {heart, "heart"},
["flying"] = {heart, "heart"},
["normal"] = {heart, "heart"},
["fire"] = {fire, "fire"},
["grass"] = {leaf, "leaf"},
["leaf"] = {leaf, "leaf"},
["water"] = {water, "water"},
["poison"] = {venom, "venom"},
["venom"] = {venom, "venom"},
["electric"] = {thunder, "thunder"},
["thunder"] = {thunder, "thunder"},
["rock"] = {rock, "rock"},
["fight"] = {punch, "punch"},
["fighting"] = {punch, "punch"},
["bug"] = {coccon, "coccon"},
["dragon"] = {crystal, "crystal"},
["dark"] = {dark, "dark"},
["ghost"] = {dark, "dark"},
["ground"] = {earth, "earth"},
["earth"] = {earth, "earth"},
["psychic"] = {enigma, "enigma"},
["steel"] = {metal, "metal"},
["ancient"] = {ancient, "ancient"},
["metal"] = {metal, "metal"},
["ice"] = {ice, "ice"},
["boost"] = {boostStone, "boost"},  --alterado v1.9
["digiev"] = {digiev, "digiev"},
}

if string then
return t[type][2]
else
return t[type][1]
end
end

function doConvertStoneIdToString(stoneID)
local t = {
[11453] = "Heart Stone",
[11441] = "Leaf Stone",
[11442] = "Water Stone",
[11443] = "Venom Stone",
[11444] = "Thunder Stone",
[11445] = "Rock Stone",
[11446] = "Punch Stone", 
[11447] = "Fire Stone",               --alterado v1.6
[11448] = "Cocoon Stone", 
[11449] = "Crystal Stone",
[11450] = "Darkess Stone", 
[11451] = "Earth Stone",
[11452] = "Enigma Stone",
[11454] = "Ice Stone", 
[12244] = "Ancient Stone",
[12232] = "Metal Stone",
[12401] = "Shiny Fire Stone",
[12402] = "Shiny Water Stone",
[12403] = "Shiny Leaf Stone",
[12404] = "Shiny Heart Stone",
[12405] = "Shiny Enigma Stone",
[12406] = "Shiny Rock Stone",
[12407] = "Shiny Venom Stone", 
[12408] = "Shiny Ice Stone",
[12409] = "Shiny Thunder Stone",
[12410] = "Shiny Crystal Stone",
[12411] = "Shiny Cocoon Stone",
[12412] = "Shiny Darkness Stone",
[12413] = "Shiny Punch Stone",
[12414] = "Shiny Earth Stone",
[boostStone] = "Boost Stone",  --alterado v1.9
}
if t[stoneID] then
return t[stoneID]
else
return ""
end
end

function isStone(id)
if id >= leaf and id <= ice then
return true
end
if id == boostStone then  --alterado v1.9
return true
end
if id == 12232 or id == 12244 or id == 12244 or id == 12245 then
return true                                 
end
if (id >= sfire and id <= searth) or id == 12417 or id == 12419 then
return true 
end
return false
end

function isWater(id)
return tonumber(id) and id >= 4820 and id <= 4825 --alterado v1.9
end

function getTopCorpse(position)
local pos = position
for n = 1, 255 do
    pos.stackpos = n
    local item = getTileThingByPos(pos)
    if item.itemid >= 2 and (string.find(getItemNameById(item.itemid), "fainted ") or string.find(getItemNameById(item.itemid), "defeated ")) then
       return getTileThingByPos(pos)
    end
end
return null
end

bpslot = CONST_SLOT_BACKPACK

function hasPokemon(cid)
    if not isCreature(cid) then return false end
    if getCreatureMana(cid) <= 0 then return false end
    if #getCreatureSummons(cid) >= 1 then return true end
    local item = getPlayerSlotItem(cid, CONST_SLOT_FEET)
    local bp = getPlayerSlotItem(cid, bpslot)
    for a, b in pairs (pokeballs) do
        if item.itemid == b.on or item.itemid == b.use then
        return true                              --alterado v1.4
        end
        if #getItemsInContainerById(bp.uid, b.on) >= 1 then
        return true
        end
    end
return false
end

function isNpcSummon(cid)
return isNpc(getCreatureMaster(cid))
end

function getPokemonHappinessDescription(cid)
    if not isCreature(cid) then return true end
    local str = {}
    if getPokemonGender(cid) == SEX_MALE then
        table.insert(str, "He")
    elseif getPokemonGender(cid) == SEX_FEMALE then
        table.insert(str, "She")
    else
        table.insert(str, "It")
    end
    local h = getPlayerStorageValue(cid, 1008)
    if h >= tonumber(getConfigValue('PokemonStageVeryHappy')) then
        table.insert(str, " is very happy with you!")
    elseif h >= tonumber(getConfigValue('PokemonStageHappy')) then
        table.insert(str, " is happy.")
    elseif h >= tonumber(getConfigValue('PokemonStageOK')) then
        table.insert(str, " is unhappy.")
    elseif h >= tonumber(getConfigValue('PokemonStageSad')) then
        table.insert(str, " is sad.")
    elseif h >= tonumber(getConfigValue('PokemonStageMad')) then
        table.insert(str, " is mad.")
    else
        table.insert(str, " is very mad at you!")
    end
return table.concat(str)
end

function doSetItemAttribute(item, key, value)
doItemSetAttribute(item, key, value)
end

function deTransform(cid, check)
    if not isCreature(cid) then return true end

    local m = getCreatureMaster(cid)
    local p = getPlayerSlotItem(m, 8)

    if getItemAttribute(p.uid, "transTurn") ~= check then return true end

    setPlayerStorageValue(cid, 1010, getCreatureName(cid) == "Ditto" and "Ditto" or "Shiny Ditto")        --edited
    doRemoveCondition(cid, CONDITION_OUTFIT)
    doSendMagicEffect(getThingPos(cid), 184)
    doCreatureSay(cid, "DITTO!", TALKTYPE_MONSTER)
    doItemSetAttribute(p.uid, "transBegin", 0)
    doItemSetAttribute(p.uid, "transLeft", 0)
    doItemEraseAttribute(p.uid, "transName")
    adjustStatus(cid, p.uid, true, true, true)
end

function isTransformed(cid)
return isCreature(cid) and not isInArray({-1, "Ditto", "Shiny Ditto"}, getPlayerStorageValue(cid, 1010))  --alterado v1.9
end

function doSendFlareEffect(pos)
    local random = {28, 29, 79}
    doSendMagicEffect(pos, random[math.random(1, 3)])
end

function isDay()
    local a = getWorldTime()
    if a >= 360 and a < 1080 then
    return true
    end
return false
end

function doPlayerSendTextWindow(cid, p1, p2)
    if not isCreature(cid) then return true end
    local item = 460
    local text = ""
    if type(p1) == "string" then
        doShowTextDialog(cid, item, p1)
    else
        doShowTextDialog(cid, p1, p2)
    end
end

function getClockString(tw)
    local a = getWorldTime()
    local b = a / 60
    local hours = math.floor(b)
    local minut = a - (60 * hours)

    if not tw then
        if hours < 10 then
            hours = "0"..hours..""
        end
        if minut < 10 then
            minut = "0"..minut..""
        end
    return hours..":"..minut
    else
        local sm = "a.m"
        if hours >= 12 then
            hours = hours - 12
            sm = "p.m"
        end
        if hours < 10 then
            hours = "0"..hours..""
        end
        if minut < 10 then
            minut = "0"..minut..""
        end
    return hours..":"..minut.." "..sm
    end
end

function doCorrectPokemonName(poke)
return doCorrectString(poke)
end

function doCorrectString(str)
if str == nil then return "" end
if type(str) ~= "string" then return "" end
local name = str:explode(" ")  --alterado v1.9
local final = {}
for _, s in ipairs(name) do
    table.insert(final, s:sub(1, 1):upper()..s:sub(2, #s):lower())
end
return table.concat(final, (name[2] and " " or ""))
end   

function getHappinessRate(cid)
    if not isCreature(cid) then return 1 end
    local a = getPlayerStorageValue(cid, 1008)
        if a == -1 then return 1 end
    if a >= getConfigValue('PokemonStageVeryHappy') then
        return happinessRate[5].rate
    elseif a >= getConfigValue('PokemonStageHappy') then
        return happinessRate[4].rate
    elseif a >= getConfigValue('PokemonStageOK') then
        return happinessRate[3].rate
    elseif a >= getConfigValue('PokemonStageSad') then
        return happinessRate[2].rate
    else
        return happinessRate[1].rate
    end
return 1
end

function doBodyPush(cid, target, go, pos)
    if not isCreature(cid) or not isCreature(target) then
        doRegainSpeed(cid)
        doRegainSpeed(target)
    return true
    end
        if go then
            local a = getThingPos(cid)
            doChangeSpeed(cid, -getCreatureSpeed(cid))
                if not isPlayer(target) then
                    doChangeSpeed(target, -getCreatureSpeed(target))
                end
            doChangeSpeed(cid, 800)
            doTeleportThing(cid, getThingPos(target))
            doChangeSpeed(cid, -800)
            addEvent(doBodyPush, 350, cid, target, false, a)
        else
            doChangeSpeed(cid, 800)
            doTeleportThing(cid, pos)
            doRegainSpeed(cid)
            doRegainSpeed(target)
        end
end

function doReturnPokemon(cid, pokemon, pokeball, effect, hideeffects, blockevo)

    --////////////////////////////////////////////////////////////////////////////////////////--
    checkDuel(cid)                                                                      --alterado v1.6 duel system
    --////////////////////////////////////////////////////////////////////////////////////////--
    
    if #getCreatureSummons(cid) > 1 and getPlayerStorageValue(cid, 212124) <= 0 then     --alterado v1.6
       if getPlayerStorageValue(cid, 637501) == -2 or getPlayerStorageValue(cid, 637501) >= 1 then  
          BackTeam(cid)       
       end
    end
    -----------------
    local edit = true


    local happy = getPlayerStorageValue(pokemon, 1008)
    local hunger = getPlayerStorageValue(pokemon, 1009)
    local pokelife = (getCreatureMaxHealth(pokemon) - getCreatureHealth(pokemon))

    if edit then
        doItemSetAttribute(pokeball.uid, "happy", happy)
        doItemSetAttribute(pokeball.uid, "hunger", hunger)
        doItemSetAttribute(pokeball.uid, "hpToDraw", pokelife)
    end
    
    local pos = getThingPos(pokemon)
    doSendMagicEffect(pos, effect)
    
    local hasNick = getItemAttribute(pokeball.uid, "nick") and true or false
    local pokename = retireShinyName(getCreatureName(pokemon, true))

    local mbk = gobackmsgs[math.random(1, #gobackmsgs)].back:gsub("doka", (hasNick and getItemAttribute(pokeball.uid, "nick") or pokename))
    doTransformItem(pokeball.uid, pokeballs[getPokeballType(pokeball.itemid)].on)
    doCreatureSay(cid, mbk, TALKTYPE_ORANGE_1)

    doRemoveCreature(pokemon)

    

end

local EFFECTS = {
    --[OutfitID] = {Effect}
    ["Magmar"] = 35,                --alterado v1.5
    ["Shiny Magmar"] = 35,
    ["Magby"] = 35,
    ["Jynx"] = 17,   
    ["Smoochum"] = 17, 
    ["Shiny Jynx"] = 17,    
    ["Piloswine"] = 205,  --alterado v1.8
    ["Swinub"] = 205, 
    ["Stantler"] = 205, 
    ["Shiny Stantler"] = 205, 
}

function doGoPokemon(cid, item)

    if getPlayerStorageValue(cid, 17000) >= 1 or getPlayerStorageValue(cid, 17001) >= 1 or getPlayerStorageValue(cid, 63215) >= 1 then
    return true
    end
---------------------------------------------------------------
local ballName = getItemAttribute(item.uid, "poke")

   btype = getPokeballType(item.itemid)                   

    local effect = pokeballs[btype].effect
        if not effect then
            effect = 21
        end
-----------------------------------------------------------------
    if item.uid ~= getPlayerSlotItem(cid, CONST_SLOT_FEET).uid then
        doPlayerSendCancel(cid, "You must put your pokeball in the correct place!")
    return TRUE
    end

    local thishp = getItemAttribute(item.uid, "hp")

    if thishp <= 0 then
        if isInArray(pokeballs[btype].all, item.itemid) then
            doTransformItem(item.uid, pokeballs[btype].off)
            doItemSetAttribute(item.uid, "hp", 0)
            doPlayerSendCancel(cid, "This pokemon is fainted.")
            return true
        end
    end

    local pokemon = getItemAttribute(item.uid, "poke")

    if not pokes[pokemon] then
    return true
    end

----------------------- Sistema de nao poder carregar mais que 3 pokes lvl baixo e + q 1 poke de lvl medio/alto ---------------------------------
if not isInArray({5, 6}, getPlayerGroupId(cid)) then
   local balls = getPokeballsInContainer(getPlayerSlotItem(cid, 3).uid)      --alterado v1.9 \/
   local low = {}
   local lowPokes = {"Rattata", "Caterpie", "Weedle", "Oddish", "Pidgey", "Paras", "Poliwag", "Bellsprout", "Magikarp", "Hoppip", "Sunkern"}
   if #balls >= 1 then
      for _, uid in ipairs(balls) do
          local nome = getItemAttribute(uid, "poke")
          if not isInArray(lowPokes, pokemon) and nome == pokemon then
             return doPlayerSendTextMessage(cid, 27, "Sorry, but you can't carry two pokemons equals!")
          else
             if nome == pokemon then
                table.insert(low, nome)
             end
          end
      end
   end
if #low >= 3 then
   return doPlayerSendTextMessage(cid, 27, "Sorry, but you can't carry more than three pokemons equals of low level!")
end   
end
---------------------------------------------------------------------------------------------------------------------------------------------------

    local x = pokes[pokemon]
    local boosts = getItemAttribute(item.uid, "boost") or 0

    if getPlayerLevel(cid) < (x.level + boosts) then   --alterado v1.8 \/
    doPlayerSendCancel(cid, "You need level "..(x.level + boosts).." to use this pokemon.")
    return true
    end
    
    --------------------------------------------------------------------------------------
    shinysClan = {
    ["Shiny Fearow"] = {4, "Wingeon"},
    ["Shiny Flareon"] = {1, "Volcanic"},
    ["Shiny Vaporeon"] = {2, "Seavel"}, 
    ["Shiny Jolteon"] = {9, "Raibolt"},
    ["Shiny Hypno"] = {7, "Psycraft"},
    ["Shiny Golem"] = {3, "Orebound"},         
    ["Shiny Vileplume"] = {8, "Naturia"},
    ["Shiny Nidoking"] = {5, "Malefic"},
    ["Shiny Hitmontop"] = {6, "Gardestrike"},   
    }
    
    if shinysClan[pokemon] and (getPlayerGroupId(cid) < 4 or getPlayerGroupId(cid) > 6) then --alterado v1.9
       if getPlayerStorageValue(cid, 86228) ~= shinysClan[pokemon][1] then
          doPlayerSendCancel(cid, "You need be a member of the clan "..shinysClan[pokemon][2].." to use this pokemon!")
          return true   
       elseif getPlayerStorageValue(cid, 862281) ~= 5 then
          doPlayerSendCancel(cid, "You need be atleast rank 5 to use this pokemon!")
          return true
       end
    end
    --------------------------------------------------------------------------------------

    pokeSourceCode = doCreateMonsterNick(cid, pokemon, pokemon, getThingPos(cid), true)
            if not pokeSourceCode then
               doSendMsg(cid, "Erro. Comunique esse codigo ao GM. [31121994]")
               return true
            end

    local pk = getCreatureSummons(cid)[1]
    if not isCreature(pk) then return true end
    
    ------------------------passiva hitmonchan------------------------------
    if isSummon(pk) then                                                  --alterado v1.8 \/
       if pokemon == "Shiny Hitmonchan" or pokemon == "Hitmonchan" then
          if not getItemAttribute(item.uid, "hands") then
             doSetItemAttribute(item.uid, "hands", 0)
          end
          local hands = getItemAttribute(item.uid, "hands")
          doSetCreatureOutfit(pk, {lookType = hitmonchans[pokemon][hands].out}, -1)
       end
    end
    -------------------------------------------------------------------------
    ---------movement magmar, jynx-------------
    if EFFECTS[getCreatureName(pk)] then     
       markPosEff(pk, getThingPos(pk))
       sendMovementEffect(pk, EFFECTS[getCreatureName(pk)], getThingPos(pk))   
    end
    --------------------------------------------------------------------------  

    if getCreatureName(pk) == "Ditto" then

        local left = getItemAttribute(item.uid, "transLeft")
        local name = getItemAttribute(item.uid, "transName")

        if left and left > 0 then
            setPlayerStorageValue(pk, 1010, name)
            doSetCreatureOutfit(pk, {lookType = getItemAttribute(item.uid, "transOutfit")}, -1)
            addEvent(deTransform, left * 1000, pk, getItemAttribute(item.uid, "transTurn"))
            doItemSetAttribute(item.uid, "transBegin", os.clock())
        else
            setPlayerStorageValue(pk, 1010, "Ditto")
        end
    end

    if isGhostPokemon(pk) then doTeleportThing(pk, getPosByDir(getThingPos(cid), math.random(0, 7)), false) end

    doCreatureSetLookDir(pk, 2)

    adjustStatus(pk, item.uid, true, true, true)
    doAddPokemonInOwnList(cid, pokemon)

    doTransformItem(item.uid, item.itemid+1)

    local pokename = getPokeName(pk) --alterado v1.7

    local mgo = gobackmsgs[math.random(1, #gobackmsgs)].go:gsub("doka", pokename)
    doCreatureSay(cid, mgo, TALKTYPE_ORANGE_1)

    doSendMagicEffect(getCreaturePosition(pk), effect)

    unLock(item.uid) --alterado v1.8

    if useKpdoDlls then
        doUpdateMoves(cid)
    end
end

function isPosEqualPos(pos1, pos2, checkstackpos)
    if pos1.x ~= pos2.x or pos1.y ~= pos2.y and pos1.z ~= pos2.z then
    return false
    end
    if checkstackpos and pos1.stackpos and pos2.stackpos and pos1.stackpos ~= pos2.stackpos then
    return false
    end
return true
end

function getRandomGenderByName(name)
local rate = newpokedex[name]
    if not rate then return 0 end
    rate = rate.gender
    if rate == 0 then
        gender = 3
    elseif rate == 1000 then
        gender = 4
    elseif rate == -1 then
        gender = 0
    elseif math.random(1, 1000) <= rate then
        gender = 4
    else
        gender = 3
    end
return gender
end

function getRecorderPlayer(pos, cid)
    local ret = 0
    if cid and isPosEqual(getThingPos(cid), pos) then   --alterado v1.9
       return cid
    end
    local s = {}
    s.x = pos.x
    s.y = pos.y
    s.z = pos.z
        for a = 0, 255 do
            s.stackpos = a
            local b = getTileThingByPos(s).uid
            if b > 1 and isPlayer(b) and getCreatureOutfit(b).lookType ~= 814 then
                ret = b
            end
        end
return ret
end

function getRecorderCreature(pos, cid)
    local ret = 0
    if cid and isPosEqual(getThingPos(cid), pos) then   --alterado v1.9
       return cid
    end
    local s = {}
    s.x = pos.x
    s.y = pos.y
    s.z = pos.z
        for a = 0, 255 do
            s.stackpos = a
            local b = getTileThingByPos(s).uid
            if b > 1 and isCreature(b) and getCreatureOutfit(b).lookType ~= 814 then
                ret = b
            end
        end
return ret
end

function doCreatureSetOutfit(cid, outfit, time)
    doSetCreatureOutfit(cid, outfit, time)
end

function doMagicalFlower(cid, away)
    if not isCreature(cid) then return true end
    for x = -3, 3 do
        for y = -3, 3 do
        local a = getThingPos(cid)
        a.x = a.x + x
        a.y = a.y + y
            if away then
                doSendDistanceShoot(a, getThingPos(cid), 21)
            else
                doSendDistanceShoot(getThingPos(cid), a, 21)
            end
        end
    end
end        

function isItemPokeball(item)         --alterado v1.9 \/
if not item then return false end
for a, b in pairs (pokeballs) do
    if isInArray(b.all, item) then return true end
    if item >= 12861 and item <= 13781 then
    return true
    end
    if item >= 13797 and item <= 13823 then
    return true
    end
        if item >= 10975 and item <= 10977 then
        return true
    end
    if item >= 13836 and item <= 13850 then
    return true
    end
    if item >= 13851 and item <= 13856 then
    return true
    end
    if item >= 13859 and item <= 13861 then
    return true
    end
    if item >= 13902 and item <= 13904 then
    return true
    end
    if item >= 13919 and item <= 13930 then
    return true
    end
end
return false
end

function isPokeball(item)
if not item then return false end
for a, b in pairs (pokeballs) do
    if isInArray(b.all, item) then return true end
    if item >= 12861 and item <= 13781 then
    return true
    end
    if item >= 13797 and item <= 13823 then
    return true
    end
        if item >= 10975 and item <= 10977 then
        return true
    end
    if item >= 13836 and item <= 13856 then
    return true
    end
end
return false
end
function getPokeballType(id)
    for a, b in pairs (pokeballs) do
        if isInArray(b.all, id) then
            return a
        end
    end
return "none"
end

randomdiagonaldir = {
[NORTHEAST] = {NORTH, EAST},
[SOUTHEAST] = {SOUTH, EAST},
[NORTHWEST] = {NORTH, WEST},
[SOUTHWEST] = {SOUTH, WEST}}

function doFaceOpposite(cid)
local a = getCreatureLookDir(cid)
local d = {
[NORTH] = SOUTH,
[SOUTH] = NORTH,
[EAST] = WEST,
[WEST] = EAST,
[NORTHEAST] = SOUTHWEST,
[NORTHWEST] = SOUTHEAST,
[SOUTHEAST] = NORTHWEST,
[SOUTHWEST] = NORTHEAST}
doCreatureSetLookDir(cid, d[a])
end

function doFaceRandom(cid)
local a = getCreatureLookDir(cid)
local d = {
[NORTH] = {SOUTH, WEST, EAST},
[SOUTH] = {NORTH, WEST, EAST},
[WEST] = {SOUTH, NORTH, EAST},
[EAST] = {SOUTH, WEST, NORTH}}
doChangeSpeed(cid, 1)
doCreatureSetLookDir(cid, d[a][math.random(1, 3)])
doChangeSpeed(cid, -1)
end

function getFaceOpposite(dir)
local d = {
[NORTH] = SOUTH,
[SOUTH] = NORTH,
[EAST] = WEST,
[WEST] = EAST,
[NORTHEAST] = SOUTHWEST,
[NORTHWEST] = SOUTHEAST,
[SOUTHEAST] = NORTHWEST,
[SOUTHWEST] = NORTHEAST}
return d[dir]
end

function getResistance(cid, combat)
    if isPlayer(cid) then return false end
local poketype1 = pokes[getCreatureName(cid)].type
local poketype2 = pokes[getCreatureName(cid)].type2
local multiplier = 1
    if effectiveness[combat].super and isInArray(effectiveness[combat].super, poketype1) then
        multiplier = multiplier * 2
    end
    if poketype2 and effectiveness[combat].super and isInArray(effectiveness[combat].super, poketype2) then
        multiplier = multiplier * 2
    end
    if effectiveness[combat].weak and isInArray(effectiveness[combat].weak, poketype1) then
        multiplier = multiplier * 0.5
    end
    if poketype2 and effectiveness[combat].weak and isInArray(effectiveness[combat].weak, poketype2) then
        multiplier = multiplier * 0.5
    end
    if effectiveness[combat].non and isInArray(effectiveness[combat].non, poketype1) then
        multiplier = multiplier * 0
    end
    if poketype2 and effectiveness[combat].non and isInArray(effectiveness[combat].non, poketype2) then
        multiplier = multiplier * 0
    end

    if multiplier == 0.25 then
        multiplier = 0.5
    elseif multiplier == 4 then
        multiplier = 2
    end

return multiplier
end

function getCreatureDirectionToTarget(cid, target, ranged)
    if not isCreature(cid) then return true end
    if not isCreature(target) then return getCreatureLookDir(cid) end
    local dirs = {
    [NORTHEAST] = {NORTH, EAST},
    [SOUTHEAST] = {SOUTH, EAST},
    [NORTHWEST] = {NORTH, WEST},
    [SOUTHWEST] = {SOUTH, WEST}}
    local x = getDirectionTo(getThingPos(cid), getThingPos(target), false)
        if x <= 3 then return x
        else
            local xdistance = math.abs(getThingPos(cid).x - getThingPos(target).x)
            local ydistance = math.abs(getThingPos(cid).y - getThingPos(target).y)
                if xdistance > ydistance then
                    return dirs[x][2]
                elseif ydistance > xdistance then
                    return dirs[x][1]
                elseif isInArray(dirs[x], getCreatureLookDir(cid)) then
                    return getCreatureLookDir(cid)
                else
                    return dirs[x][math.random(1, 2)]
                end
        end
end

function getSomeoneDescription(cid)
    if isPlayer(cid) then return getPlayerNameDescription(cid) end
return getMonsterInfo(getCreatureName(cid)).description
end
    

function isGhostPokemon(cid)
    if not isCreature(cid) then return false end
    local ghosts = {"Gastly", "Haunter", "Gengar", "Shiny Gengar", "Misdreavus", "Shiny Abra"}
return isInArray(ghosts, getCreatureName(cid))
end

function updateGhostWalk(cid)
    if not isCreature(cid) then return false end
    local pos = getThingPos(cid)
    pos.x = pos.x + 1
    pos.y = pos.y + 1
    local ret = getThingPos(cid)
    doTeleportThing(cid, pos, false)
    doTeleportThing(cid, ret, false)
return true
end

function doRemoveElementFromTable(t, e)
    local ret = {}
    for a = 1, #t do
        if t[a] ~= e then
        table.insert(ret, t[a])
        end
    end
return ret
end

function doFaceCreature(sid, pos)
if not isCreature(sid) then return true end
    if getThingPos(sid).x == pos.x and getThingPos(sid).y == pos.y then return true end
    local ret = 0

    local ld = getCreatureLookDir(sid)
    local dir = getDirectionTo(getThingPos(sid), pos)
    local al = {
    [NORTHEAST] = {NORTH, EAST},
    [NORTHWEST] = {NORTH, WEST},
    [SOUTHEAST] = {SOUTH, EAST},
    [SOUTHWEST] = {SOUTH, WEST}}

    if dir >= 4 and isInArray(al[dir], ld) then return true end

    doChangeSpeed(sid, 1)
        if dir == 4 then
            ret = math.random(2, 3)
        elseif dir == 5 then
            ret = math.random(1, 2)
        elseif dir == 6 then
            local dirs = {0, 3}
            ret = dirs[math.random(1, 2)]
        elseif dir == 7 then
            ret = math.random(0, 1)
        else
            ret = getDirectionTo(getThingPos(sid), pos)
        end
doCreatureSetLookDir(sid, ret)
doChangeSpeed(sid, -1)
return true
end

function doCreatureAddCondition(cid, condition)
if not isCreature(cid) then return true end
doAddCondition(cid, condition)
end

function doCreatureRemoveCondition(cid, condition)
if not isCreature(cid) then return true end
doRemoveCondition(cid, condition)
end

function setCD(item, tipo, tempo)

    if not tempo or not tonumber(tempo) then
        doItemEraseAttribute(item, tipo)
    return true
    end

    doItemSetAttribute(item, tipo, "cd:"..(tempo + os.time()).."")
return tempo + os.time()
end

function getCD(item, tipo, limite)

    if not getItemAttribute(item, tipo) then
    return 0
    end

    local string = getItemAttribute(item, tipo):gsub("cd:", "")
    local number = tonumber(string) - os.time()

    if number <= 0 then
    return 0
    end

    if limite and limite < number then
        return 0
    end

return number
end

function doSendMoveEffect(cid, target, effect)
if not isCreature(cid) or not isCreature(target) then return true end
doSendDistanceShoot(getThingPos(cid), getThingPos(target), effect)
return true
end

function doSetItemActionId(uid, actionid)
doItemSetAttribute(uid, "aid", actionid)
return true
end

function threeNumbers(number)
    if number <= 9 then
    return "00"..number..""
    elseif number <= 99 then
    return "0"..number..""
    end
return ""..number..""
end

function isBr(cid)
if getPlayerStorageValue(cid, 105505) ~= -1 then
return true
end
return false
end

function isBeingUsed(ball)            
if not ball then return false end
for a, b in pairs (pokeballs) do           --alterado v1.9
    if b.use == ball then return true end
end
return false
end

function doRemoveTile(pos)-- Script by mock
pos.stackpos = 0
local sqm = getTileThingByPos(pos)
doRemoveItem(sqm.uid,1)
end

function hasSqm(pos)
pos.stackpos = 0
local f = getTileThingByPos(pos)
if f.itemid ~= 0 and f.itemid ~= 1 then
return true
end
return false
end

function getPosDirs(p, dir) -- By MatheusMkalo
return dir == 1 and {x=p.x-1, y=p.y, z=p.z} or dir == 2 and {x=p.x-1, y=p.y+1, z=p.z} or dir == 3 and {x=p.x, y=p.y+1, z=p.z} or dir == 4 and {x=p.x+1, y=p.y+1, z=p.z} or dir == 5 and {x=p.x+1, y=p.y, z=p.z} or dir == 6 and {x=p.x+1, y=p.y-1, z=p.z} or dir == 7 and {x=p.x, y=p.y-1, z=p.z} or dir == 8 and {x=p.x-1, y=p.y-1, z=p.z}
end

function canWalkOnPos(pos, creature, pz, water, sqm, proj)
if not pos then return false end
if not pos.x then return false end
if getTileThingByPos({x = pos.x, y = pos.y, z = pos.z, stackpos = 0}).itemid <= 1 and sqm then return false end
if getTileThingByPos({x = pos.x, y = pos.y, z = pos.z, stackpos = 0}).itemid == 919 then return false end
if isInArray({4820, 4821, 4822, 4823, 4824, 4825}, getTileThingByPos({x = pos.x, y = pos.y, z = pos.z, stackpos = 0}).itemid) and water then return false end
if getTopCreature(pos).uid > 0 and creature then return false end
if getTileInfo(pos).protection and pz then return false end
    local n = not proj and 3 or 2                                    --alterado v1.6
    for i = 0, 255 do
        pos.stackpos = i                           
        local tile = getTileThingByPos(pos)        
        if tile.itemid ~= 0 and i ~= 253 and not isCreature(tile.uid) then     --edited
            if hasProperty(tile.uid, n) or hasProperty(tile.uid, 7) then
                return false
            end
        end
    end   
return true
end

function canWalkOnPos2(pos, creature, pz, water, sqm, proj)     --alterado v1.6
if not pos then return false end
if not pos.x then return false end
if getTileThingByPos({x = pos.x, y = pos.y, z = pos.z, stackpos = 0}).itemid <= 1 and sqm then return false end
if getTileThingByPos({x = pos.x, y = pos.y, z = pos.z, stackpos = 0}).itemid == 919 then return false end
if isInArray({4820, 4821, 4822, 4823, 4824, 4825}, getTileThingByPos({x = pos.x, y = pos.y, z = pos.z, stackpos = 0}).itemid) and water then return false end
if getTopCreature(pos).uid > 0 and creature then return false end
if getTileInfo(pos).protection and pz then return false end
    --[[local n = not proj and 3 or 2
    for i = 0, 255 do
        pos.stackpos = i                           --edited pra retirar um bug.. ;x
        local tile = getTileThingByPos(pos)        
        if tile.itemid ~= 0 and i ~= 253 and not isCreature(tile.uid) then     --edited
            if hasProperty(tile.uid, n) or hasProperty(tile.uid, 7) then
                return false
            end
        end
    end ]]  
return true
end

function getFreeTile(pos, cid)
    if canWalkOnPos(pos, true, false, true, true, false) then
        return pos
    end
    local positions = {}
    for a = 0, 7 do
        if canWalkOnPos(getPosByDir(pos, a), true, false, true, true, false) then
        table.insert(positions, pos)
        end
    end
    if #positions >= 1 then
        if isCreature(cid) then
            local range = 1000
            local ret = getThingPos(cid)
            for b = 1, #positions do
                if getDistanceBetween(getThingPos(cid), positions) < range then
                    ret = positions
                    range = getDistanceBetween(getThingPos(cid), positions)
                end
            end
            return ret
        else
            return positions[math.random(#positions)]
        end
    end
return getThingPos(cid)
end

function isWalkable(pos, creature, proj, pz, water)-- by Nord
    if getTileThingByPos({x = pos.x, y = pos.y, z = pos.z, stackpos = 0}).itemid == 0 then return false end
    if isWater(getTileThingByPos({x = pos.x, y = pos.y, z = pos.z, stackpos = 0}).itemid) and water then return false end
    if getTopCreature(pos).uid > 0 and creature then return false end
    if getTileInfo(pos).protection and pz then return false, true end
    local n = not proj and 3 or 2
    for i = 0, 255 do
        pos.stackpos = i
        local tile = getTileThingByPos(pos)
        if tile.itemid ~= 0 and not isCreature(tile.uid) then
            if hasProperty(tile.uid, n) or hasProperty(tile.uid, 7) then
                return false
            end
        end
    end
    return true
end


function isPlayerSummon(cid, uid)
return getCreatureMaster(uid) == cid  --alterado v1.9
end

function getItemsInContainerById(container, itemid) -- Function By Kydrai
local items = {}
if isContainer(container) and getContainerSize(container) > 0 then
   for slot=0, (getContainerSize(container)-1) do
       local item = getContainerItem(container, slot)
       if isContainer(item.uid) then
          local itemsbag = getItemsInContainerById(item.uid, itemid)
          for i=0, #itemsbag do
              table.insert(items, itemsbag)
          end
       else
          if itemid == item.itemid then
             table.insert(items, item.uid)
          end
       end
   end
end
return items
end

function getPokeballsOnInContainer(container) -- Function By Kydrai
    if not isContainer(container) then return {} end
    local items = {}
    if isContainer(container) and getContainerSize(container) > 0 then
        for slot=0, (getContainerSize(container)-1) do
            local item = getContainerItem(container, slot)
                if isContainer(item.uid) then
                    local itemsbag = getPokeballsOnInContainer(item.uid)
                    for i=0, #itemsbag do
                        table.insert(items, itemsbag)
                    end
                elseif isPokeballOn(item) then
                    table.insert(items, item.uid)
                end
        end
    end
return items
end

function getPokeballsInContainer(container) -- Function By Kydrai
    if not isContainer(container) then return {} end
    local items = {}
    if isContainer(container) and getContainerSize(container) > 0 then
        for slot=0, (getContainerSize(container)-1) do
            local item = getContainerItem(container, slot)
                if isContainer(item.uid) then
                    local itemsbag = getPokeballsInContainer(item.uid)
                    for i=0, #itemsbag do
                        table.insert(items, itemsbag)
                    end
                elseif isPokeball(item.itemid) then
                    table.insert(items, item.uid)
                end
        end
    end
return items
end

function getItensUniquesInContainer(container)    --alterado v1.6
if not isContainer(container) then return {} end
local items = {}
if isContainer(container) and getContainerSize(container) > 0 then
   for slot=0, (getContainerSize(container)-1) do
       local item = getContainerItem(container, slot)
       if isContainer(item.uid) then
          local itemsbag = getItensUniquesInContainer(item.uid)
          for i=0, #itemsbag do
              table.insert(items, itemsbag)
          end
       elseif getItemAttribute(item.uid, "unique") then
          table.insert(items, item)
       end
   end
end
return items
end

function hasSpaceInContainer(container)                --alterado v1.6
if not isContainer(container) then return false end
if getContainerSize(container) < getContainerCap(container) then return true end

for slot = 0, (getContainerSize(container)-1) do
    local item = getContainerItem(container, slot)
    if isContainer(item.uid) then
       if hasSpaceInContainer(item.uid) then
          return true
       end
    end
end
return false
end

function doPlayerAddItemStacking(cid, itemid, quant) -- by mkalo
local item = getItemsInContainerById(getPlayerSlotItem(cid, 3).uid, itemid)
local piles = 0
if #item > 0 then
   for i,x in pairs(item) do
       if getThing(x).type < 100 then
          local it = getThing(x)
          doTransformItem(it.uid, itemid, it.type+quant)
          if it.type+quant > 100 then
             doPlayerAddItem(cid, itemid, it.type+quant-100)
          end
       else
          piles = piles+1
       end
   end
else
   return doPlayerAddItem(cid, itemid, quant)
end
if piles == #item then
   doPlayerAddItem(cid, itemid, quant)
end
end

function getPlayerInArea(fromPos, toPos) -- by jhon992
local online = getPlayersOnline()
local players = {}
for i=1, #online do
    if isInArea(getPlayerPosition(online), fromPos, toPos) then
        players[#players+1] = online
    end
end
return players
end
function isPlayerOnline(uid)
    return isInArray(getPlayersOnline(), uid)
end

function doRegenerateWithY(cid, sid)
if isPlayerOnline(cid) then
local ball = getPlayerSlotItem(cid, 8) or getPlayerSlotItem(getCreatureMaster(cid), 8)
local Tiers = {
[1] = {bonus = Regen1},
[2] = {bonus = Regen2},
[3] = {bonus = Regen3},
[4] = {bonus = Regen4},
[5] = {bonus = Regen5},
[6] = {bonus = Regen6},
[7] = {bonus = Regen7},
}
if isPlayer(cid) and #getCreatureSummons(cid) > 0 then
local Tier = getItemAttribute(ball.uid, "heldy")
if Tier and Tier > 0 and Tier < 8 then
if not getCreatureCondition(cid, CONDITION_INFIGHT) then
if getCreatureHealth(sid) < getCreatureMaxHealth(sid) then
addEvent(function() doCreatureAddHealth(sid,Tiers[Tier].bonus) doSendAnimatedText(getThingPos(sid), "+ "..Tiers[Tier].bonus, 30) end, 0)
end
addEvent(doRegenerateWithY, 1000, cid, sid)  
else
addEvent(doRegenerateWithY, 1000, cid, sid)
end
end   
end
end 
end

function doCureWithY(cid, sid)
if isPlayerOnline(cid) then
local ball = getPlayerSlotItem(cid, 8) or getPlayerSlotItem(getCreatureMaster(cid), 8)
local Tiers = {
[8] = {chance = Cure1},
[9] = {chance = Cure2},
[10] = {chance = Cure3},
[11] = {chance = Cure4},
[12] = {chance = Cure5},
[13] = {chance = Cure6},
[14] = {chance = Cure7},
}
local Tier = getItemAttribute(ball.uid, "heldy")
if isPlayer(cid) and #getCreatureSummons(cid) > 0  and Tier then
if Tier > 7 and Tier < 15 then
if math.random(1,100) <= Tiers[Tier].chance then
doCureStatus(sid, "all")
doSendMagicEffect(getThingPosWithDebug(sid), 14)
end
addEvent(doCureWithY, 1000, cid, sid)  
end
end
end   
end
       

 

 

Editado por kamus9629
Link para o comentário
Compartilhar em outros sites

7 respostass a esta questão

Posts Recomendados

  • 0

Você criou a stone no ItemEditor (colocou como usável) e adicionou a Sprite dela no Object Builder? E qual ID dessa stone e quais pokémons não está conseguindo evoluir?

Link para o comentário
Compartilhar em outros sites

  • 0
7 minutos atrás, Yan18 disse:

Você criou a stone no ItemEditor (colocou como usável) e adicionou a Sprite dela no Object Builder? E qual ID dessa stone e quais pokémons não está conseguindo evoluir?

 

image.pngimage.png.ef299efd73260181ce08b5507556eb9f.png

Editado por kamus9629
Link para o comentário
Compartilhar em outros sites

  • 0
1 hora atrás, Gabrieltxu disse:

Da algum erro? 

Tem que estar setado como multi uso tambem. (Multi Use)

po mano eu coloquei ele 3 vees multiuse nao foi agora funcionou evouiu mais deu esse erro voce sabe oque e ?

 

[04/04/2020 11:57:17]     data/lib/catch system.lua:427: in function 'doAddPokemonInOwnList'
[04/04/2020 11:57:17]     data/lib/level system.lua:460: in function 'doEvolvePokemon'
[04/04/2020 11:57:17]     data/actions/scripts/evolution.lua:336: in function <data/actions/scripts/evolution.lua:51>
 

Link para o comentário
Compartilhar em outros sites

  • 0
1 hora atrás, kamus9629 disse:

po mano eu coloquei ele 3 vees multiuse nao foi agora funcionou evouiu mais deu esse erro voce sabe oque e ?

 

[04/04/2020 11:57:17]     data/lib/catch system.lua:427: in function 'doAddPokemonInOwnList'
[04/04/2020 11:57:17]     data/lib/level system.lua:460: in function 'doEvolvePokemon'
[04/04/2020 11:57:17]     data/actions/scripts/evolution.lua:336: in function <data/actions/scripts/evolution.lua:51>
 

Qual é o nome do pokémon que está tentando evoluir?

Link para o comentário
Compartilhar em outros sites

  • 0
6 horas atrás, Yan18 disse:

Qual é o nome do pokémon que está tentando evoluir?

qualquer evolucao ta dando esse skill war graymon greymon metal greymon

Link para o comentário
Compartilhar em outros sites

  • 0
6 horas atrás, kamus9629 disse:

qualquer evolucao ta dando esse skill war graymon greymon metal greymon

Sei que está trabalhando com Digimon, mas por que no evolution.lua você colocou "[5/5]" na evolução do Digimon? Eu não entendo de Digimon, mas pode ser que isso esteja bugando, o que faz esse valor junto com o nome do monstro?

[digiev] = {"Agumon[5/5]", "Greymon[5/5]", "Metal Greymon[5/5]"},

 

Link para o comentário
Compartilhar em outros sites

  • Quem Está Navegando   0 membros estão online

    • Nenhum usuário registrado visualizando esta página.
×
×
  • Criar Novo...