Corrigi, poem esse no lugar e vai funcionar normalmente:
local evo = {
["Abra"] = "Shiny Abra",
["Alakazam"] = "Shiny Alakazam",
["Arcanine"] = "Shiny Arcanine",
["Beedrill"] = "Shiny Beedrill",
["Blastoise"] = "Shiny Blastoise",
["Bulbasaur"] = "Shiny Bulbasaur",
["Butterfree"] = "Shiny Butterfree",
["Charizard"] = "Shiny Charizard",
["Charmander"] = "Shiny Charmander",
["Charmeleon"] = "Shiny Charmeleon",
["Cubone"] = "Shiny Cubone",
["Dragonair"] = "Shiny Dragonair",
["Dragonite"] = "Shiny Dragonite",
["Dratini"] = "Shiny Dratini",
["Electabuzz"] = "Shiny Electabuzz",
["Electrode"] = "Shiny Electrode",
["Farfetchd"] = "Shiny Farfetchd",
["Elekid"] = "Shiny Elekid",
["Farfetch'd"] = "Shiny Farfetch'd",
["Fearow"] = "Shiny Fearow",
["Flareon"] = "Shiny Flareon",
["Gastly"] = "Shiny Gastly,
["Gengar"] = "Shiny Gengar",
["Gloom"] = "Shiny Gloom",
["Golbat"] = "Shiny Golbat",
["Golem"] = "Shiny Golem",
["Grimer"] = "Shiny Grimer",
["Growlithe"] = "Shiny Growlithe",
["Gyarados"] = "Shiny Gyarados",
["Haunter"] = "Shiny Haunter",
["Hitmonchan"] = "Shiny Hitmonchan",
["Hitmonlee"] = "Shiny Hitmonlee",
["Horsea"] = "Shiny Horsea",
["Hypno"] = "Shiny Hypno",
["Ivysaur"] = "Shiny Ivysaur",
["Jolteon"] = "Shiny Jolteon",
["Jynx"] = "Shiny Jynx",
["Kingler"] = "Shiny Kingler",
["Krabby"] = "Shiny Krabby",
["Magby"] = "Shiny Magby",
["Magikarp"] = "Shiny Magikarp",
["Marowak"] = "Shiny Marowak",
["Muk"] = "Shiny Muk",
["Nidoking"] = "Shiny Nidoking",
["Nidoran Female"] = "Shiny Nidoran Female",
["Nidoran Male"] = "Shiny Nidoran Male",
["Nidorina"] = "Shiny Nidorina",
["Nidorino"] = "Shiny Nidorino",
["Oddish"] = "Shiny Oddish",
["Onix"] = "Shiny Onix",
["Paras"] = "Shiny Paras",
["Parasect"] = "Shiny Parasect",
["Pidgeot"] = "Shiny Pidgeot",
["Pidgeotto"] = "Shiny Pidgeotto",
["Pidgey"] = "Shiny Pidgey",
["Pikachu"] = "Shiny Pikachu",
["Pinsir"] = "Shiny Pinsir",
["porygon2"] = "Shiny porygon2",
["Raichu"] = "Shiny Raichu",
["Raticate"] = "Shiny Raticate",
["Rattata"] = "Shiny Rattata",
["Scyther"] = "Shiny Scyther",
["Seadra"] = "Shiny Seadra",
["Snorlax"] = "Shiny Snorlax",
["Squirtle"] = "Shiny Squirtle",
["Tangela"] = "Shiny Tangela",
["Tentacool"] = "Shiny Tentacool",
["Tentacruel"] = "Shiny Tentacruel",
["Vaporeon"] = "Shiny Vaporeon",
["Venomoth"] = "Shiny Venomoth",
["Venonat"] = "Shiny Venonat",
["Venusaur"] = "Shiny Venusaur",
["Vileplume"] = "Shiny Vileplume",
["Voltorb"] = "Shiny Voltorb",
["Wartortle"] = "Shiny Wartortle",
["Wigglytuff"] = "Shiny Wigglytuff",
["wingull"] = "Shiny wingull",
["Zubat"] = "Shiny Zubat",
}
local pokeballs = {
[2531] = {"Pokeball"},
[2557] = {"Superball"},
[2524] = {"Greatball"},
[2525] = {"Ultraball"},
[2523] = {"Masterball"},
}
function onUse(cid, item, fromPosition, itemEx, toPosition)
if isMonster(itemEx.uid) and getCreatureMaster(itemEx.uid) == cid then
local monster = getCreatureName(itemEx.uid)
if evo[monster] then
local health, maxHealth = getCreatureHealth(itemEx.uid), getCreatureMaxHealth(itemEx.uid)
doRemoveCreature(itemEx.uid)
doRemoveItem(item.uid)
local summon = doCreateMonster(evo[monster], toPosition)
doConvinceCreature(cid, summon)
local balls = pokeballs[getPlayerSlotItem(cid,8).itemid]
doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "poke", ""..evo[monster].." "..balls[1])
doCreatureAddHealth(summon, health-maxHealth)
doSendMagicEffect(getThingPos(summon), 18)
return TRUE
end
end
return FALSE
end