nao funfo, e essa ultima parte n tem no meu serve essa \/
f optionalLevel and tonumber(optionalLevel) >= 1 then --alterado v2.8\/ levelRange = optionalLevel else lvl = pokes[this].level if isInArray({1,2,3,4,5}, lvl) then lvlMin = 1 lvlMax = (lvl + 5) elseif isInArray({96,97,98,99}, lvl) then lvlMin = (lvl - 5) lvlMax = 100 elseif lvl == 100 then lvlMin = 100 lvlMax = 100 else lvlMin = (lvl - 5) lvlMax = (lvl + 5) end levelRange = math.random(lvlMin, lvlMax) end local status = getPokemonStatus(this) if status then off = status.off def = status.def agi = status.agi vit = status.vit spatk = status.spatk end setPlayerStorageValue(cid, 1000, (levelRange > 100 and 100 or levelRange)) --alterado v2.8