Postado Dezembro 18, 2015 9 anos gente adicionei alguns pokes no meu server configurei tudo dereito mais na hora que chega no level para ele evoluir esta dando erro alguem pode me ajuda ;C meu level system se precisar deixarei aqui ajudem ai pls :C rep+ Spoiler function getPokemonStatus(name, multiplier)local a = pokes[name]local m = 1if not a then return false endif not a.offense then return false endif multiplier then m = multiplier endlocal ret = {}ret.off = a.offense * mret.offense = ret.offret.def = a.defense * mret.defense = ret.defret.agi = a.agility * mret.agility = ret.agiret.spatk = a.specialattack * mret.specialattack = ret.spatkret.vit = a.vitality * mret.vitality = ret.vitreturn retendfunction getPokemonXMLOutfit(name)local a = "data/monster/pokes/"..name..".xml"local b = io.open(a, "a+")local c = b:read("*all")b:close()local d, e = c:find('look type="(.-)"')c = string.sub(c, d + 11, e - 1)return tonumberendfunction doEvolutionOutfit(cid, oldout, outfit)if not isCreature(cid) then return true endif getCreatureOutfit(cid).lookType == oldout thendoSetCreatureOutfit(cid, {lookType = outfit}, -1)elsedoSetCreatureOutfit(cid, {lookType = oldout}, -1)endendfunction doStartEvolution(cid, evolution, seconds)if not isCreature(cid) then return true endlocal a = getPlayerStorageValue(cid, 1007)local b = getCreatureHealth(cid) / getCreatureMaxHealth(cid)local d = getThingPos(cid)local e = getCreatureMaster(cid)if getHappinessRate(cid) < 1 then return true endlocal f = getCreatureOutfit(cid).lookTypelocal g = getItemAttribute(getPlayerSlotItem(e, 8).uid, "nick") or getCreatureName(cid)local h = getPokemonXMLOutfit(evolution)doItemSetAttribute(getPlayerSlotItem(e, 8).uid, "hp", b)doCreatureSay(e, "What? My "..g.." is evolving!", TALKTYPE_SAY)doSummonMonster(e, "Evolution")doReturnPokemon(e, cid, getPlayerSlotItem(e, 8), 0, true)local evo = getCreatureSummons(e)[1]doEvolutionOutfit(evo, h, f)doCreatureSetHideHealth(evo, true)doCreatureSetLookDir(evo, 2)setPlayerStorageValue(evo, 1007, g)doTeleportThing(evo, d, false)addEvent(sendSSJEffect, 250, evo)doSendAnimatedText(getThingPos(evo), "EVOLUTION", COLOR_GRASS)doSendEvolutionEffect(evo, getThingPos(evo), evolution, 20, false, false, f, h)endfunction doSendEvolutionEffect(cid, pos, evolution, turn, ssj, evolve, f, h)if not isCreature(cid) thendoSendAnimatedText(pos, "CANCEL", 215)return true endif evolve thendoEvolvePokemon(getCreatureMaster(cid), {uid = cid}, evolution, 0, 0)return trueenddoSendMagicEffect(pos, 18)if ssj thensendSSJEffect(evo)enddoEvolutionOutfit(cid, f, h)addEvent(doSendEvolutionEffect, math.pow(1900, turn/20), cid, getThingPos(cid), evolution, turn - 1, turn == 19, turn == 2, f, h)endfunction sendSSJEffect(cid)if not isCreature(cid) then return true endlocal pos1 = getThingPos(cid)local pos2 = getThingPos(cid)pos2.x = pos2.x + math.random(-1, 1)pos2.y = pos2.y - math.random(1, 2)doSendDistanceShoot(pos1, pos2, 37)addEvent(sendSSJEffect, 45, cid)endfunction sendFinishEvolutionEffect(cid, alternate)if not isCreature(cid) then return true endlocal pos1 = getThingPos(cid)if alternate thenlocal pos = {[1] = {-2, 0},[2] = {-1, -1},[3] = {0, -2},[4] = {1, -1},[5] = {2, 0},[6] = {1, 1},[7] = {0, 2},[8] = {-1, 1}}for a = 1, 8 dolocal pos2 = getThingPos(cid)pos2.x = pos2.x + pos[a][1]pos2.y = pos2.y + pos[a][2]local pos = getThingPos(cid)doSendDistanceShoot(pos2, pos, 37)addEvent(doSendDistanceShoot, 300, pos, pos2, 37)endelsefor a = 0, 3 dodoSendDistanceShoot(pos1, getPosByDir(pos1, a), 37)endfor a = 4, 7 doaddEvent(doSendDistanceShoot, 600, pos1, getPosByDir(pos1, a), 37)endendendfunction doEvolvePokemon(cid, item2, theevo, stone1, stone2)if not isCreature(cid) then return true endif not pokes[theevo] or not pokes[theevo].offense thendoReturnPokemon(cid, item2.uid, getPlayerSlotItem(cid, 8), pokeballs[getPokeballType(getPlayerSlotItem(cid, 8).itemid)].effect, false, true)return trueendlocal owner = getCreatureMaster(item2.uid)local pokeball = getPlayerSlotItem(cid, 8)local description = "Contains a "..theevo.."."local pct = getCreatureHealth(item2.uid) / getCreatureMaxHealth(item2.uid)doItemSetAttribute(pokeball.uid, "hp", pct)doItemSetAttribute(pokeball.uid, "poke", theevo)doItemSetAttribute(pokeball.uid, "description", "Contains a "..theevo..".")doPlayerSendTextMessage(cid, 27, "Congratulations! Your "..getPokeName(item2.uid).." evolved into a "..theevo.."!")doSendMagicEffect(getThingPos(item2.uid), 18)doTransformItem(getPlayerSlotItem(cid, 7).uid, fotos[theevo])doSendMagicEffect(getThingPos(cid), 173)local oldpos = getThingPos(item2.uid)local oldlod = getCreatureLookDir(item2.uid)local oldlvl = getPokemonLevel(item2.uid)doRemoveCreature(item2.uid)doSummonMonster(cid, theevo)local pk = getCreatureSummons(cid)[1]doTeleportThing(pk, oldpos, false)doCreatureSetLookDir(pk, oldlod)sendFinishEvolutionEffect(pk, true)addEvent(sendFinishEvolutionEffect, 550, pk, true)addEvent(sendFinishEvolutionEffect, 1050, pk)doPlayerRemoveItem(cid, stone1, 1)doPlayerRemoveItem(cid, stone2, 1)doAddPokemonInOwnList(cid, theevo)local status = getPokemonStatus(getCreatureName(pk))local off = status.off * 7.5local def = status.def * 7.5local agi = status.agi * 7.5local spatk = status.spatk * 7.5local vit = status.vit * 7doItemSetAttribute(pokeball.uid, "offense", getItemAttribute(pokeball.uid, "offense") + off)doItemSetAttribute(pokeball.uid, "defense", getItemAttribute(pokeball.uid, "defense") + def)doItemSetAttribute(pokeball.uid, "speed", getItemAttribute(pokeball.uid, "speed") + agi)doItemSetAttribute(pokeball.uid, "specialattack", getItemAttribute(pokeball.uid, "specialattack") + spatk)doItemSetAttribute(pokeball.uid, "vitality", getItemAttribute(pokeball.uid, "vitality") + vit)doPlayerSendTextMessage(cid, 27, "Evolution bonus: • Offense: +"..doMathDecimal(off).." • Defense: +"..doMathDecimal(def).." • Spc. Atk: +"..doMathDecimal(spatk).." • Agility: +"..doMathDecimal(agi).." • Vitality: +"..doMathDecimal(vit).."")local happy = getItemAttribute(pokeball.uid, "happy")doItemSetAttribute(pokeball.uid, "happy", happy + happyGainedOnEvolution)if happy + happyGainedOnEvolution > 255 thendoItemSetAttribute(pokeball.uid, "happy", 255)endadjustStatus(pk, pokeball.uid, true, false)if useKpdoDlls thendoUpdateMoves(cid)endendfunction givePokemonExp(cid, item, expe, pct, rarecandy)if expe <= 0 or not isCreature(cid) then return true endlocal leveltable = getPokemonExperienceTable(getPokeballName(item.uid, true))if getItemAttribute(item.uid, "exp") + expe > leveltable[100] thengivePokemonExp(cid, item, leveltable[100] - getItemAttribute(item.uid, "exp"))return trueenddoItemSetAttribute(item.uid, "exp", getItemAttribute(item.uid, "exp") + expe)doItemSetAttribute(item.uid, "happy", getItemAttribute(item.uid, "happy") + 1)doItemSetAttribute(item.uid, "nextlevelexp", getItemAttribute(item.uid, "nextlevelexp") - expe)if pct thendoPlayerSendTextMessage(cid, 27, "Your "..getPokeballName(item.uid).." has received "..expe.." experience points ("..pct.."%).")elseif getItemAttribute(item.uid, "nextlevelexp") > 0 thendoPlayerSendTextMessage(cid, 27, "Your "..getPokeballName(item.uid).." ["..getItemAttribute(item.uid, "level").."] has received "..expe.." experience points ("..getItemAttribute(item.uid, "nextlevelexp").." to next level).")elsedoPlayerSendTextMessage(cid, 27, "Your "..getPokeballName(item.uid).." ["..getItemAttribute(item.uid, "level").."] has received "..expe.." experience points and has leveled up!")endendif isBeingUsed(item.itemid) thendoSendAnimatedText(getThingPos(getCreatureSummons(cid)[1]), expe, 215)endif getItemAttribute(item.uid, "nextlevelexp") <= 0 thenlocal summon = getCreatureSummons(cid)[1]if not isCreature(summon) then return true enddoSendFlareEffect(getThingPos(summon))doSendAnimatedText(getThingPos(summon), "Level up!", 215)adjustPokemonLevel(item.uid, cid, item.itemid)endendfunction givePokemonExpInBp(cid, item, expe, ballid, pct, hidemessage)if expe <= 0 or not isCreature(cid) then return true endlocal leveltable = getPokemonExperienceTable(getPokeballName(item, true))if getItemAttribute(item, "exp") + expe > leveltable[100] thengivePokemonExpInBp(cid, item, leveltable[100] - getItemAttribute(item, "exp"), ballid)return trueenddoItemSetAttribute(item, "exp", getItemAttribute(item, "exp") + expe)doItemSetAttribute(item, "happy", getItemAttribute(item, "happy") + 1)doItemSetAttribute(item, "nextlevelexp", getItemAttribute(item, "nextlevelexp") - expe)if not hidemessage thenif pct thendoPlayerSendTextMessage(cid, 27, "Your "..getPokeballName(item).." has received "..expe.." experience points ("..pct.."%).")elseif getItemAttribute(item, "nextlevelexp") > 0 thendoPlayerSendTextMessage(cid, 27, "Your "..getPokeballName(item).." ["..getItemAttribute(item, "level").."] has received "..expe.." experience points inside his pokeball ("..getItemAttribute(item, "nextlevelexp").." to next level).")elsedoPlayerSendTextMessage(cid, 27, "Your "..getPokeballName(item).." ["..getItemAttribute(item, "level").."] has received "..expe.." experience points and has leveled up inside his pokeball.")adjustPokemonLevel(item, cid, ballid)endendendendfunction doMathDecimal(number, casas)if math.floor(number) == number then return number endlocal c = casas and casas + 1 or 3for a = 0, 10 doif math.floor(number) < math.pow(10, a) thenlocal str = string.sub(""..number.."", 1, a + c)return tonumber(str)endendreturn numberendfunction adjustPokemonLevel(item, cid, id, rarecandy)if not isCreature(cid) then return true endlocal exp = getItemAttribute(item, "exp")local level = getItemAttribute(item, "level")local leveltable = getPokemonExperienceTable(getPokeballName(item, true))local newlevel = 1for x = 1, 100 doif exp >= leveltable[x] and exp < leveltable[x+1] thennewlevel = xendendif newlevel <= 1 then return true endlocal levelsup = (newlevel - level)local pokemon = getItemAttribute(item, "poke")local happy = getItemAttribute(item, "happy")local rate = happy / 100local newhappiness = happyif happy >= 250 thennewhappiness = 255elseif happy >= 230 thennewhappiness = happy + 4elseif happy >= 210 thennewhappiness = happy + 6elseif happy >= 180 thennewhappiness = happy + 8elseif happy >= 140 thennewhappiness = happy + 10elseif happy >= 110 thennewhappiness = happy + 12elsenewhappiness = happy + 15endlocal status = getPokemonStatus(pokemon)local off = status.off * rate * levelsuplocal def = status.def * rate * levelsuplocal agi = status.agi * rate * levelsuplocal spatk = status.spatk * rate * levelsuplocal vit = status.vit * rate * levelsupdoItemSetAttribute(item, "level", newlevel)if not rarecandy thendoItemSetAttribute(item, "happy", newhappiness)endlocal nextexp = leveltable[newlevel + 1] - expdoItemSetAttribute(item, "nextlevelexp", nextexp)doItemSetAttribute(item, "offense", getItemAttribute(item, "offense") + off)doItemSetAttribute(item, "defense", getItemAttribute(item, "defense") + def)doItemSetAttribute(item, "speed", getItemAttribute(item, "speed") + agi)doItemSetAttribute(item, "specialattack", getItemAttribute(item, "specialattack") + spatk)doItemSetAttribute(item, "vitality", getItemAttribute(item, "vitality") + vit)if newlevel > getPlayerLevel(cid) + pokemonMaxLevelAbovePlayer thenaddEvent(doPlayerSendTextMessage, 30, cid, 18, "Warning: Your "..getPokeballName(item).."'s ["..newlevel.."] level is much higher than yours, so you will not be able to call him to battles.")endif isCreature(cid) and id >= 1 and isBeingUsed(id) thenadjustStatus(getCreatureSummons(cid)[1], item, false, true)doPlayerSendTextMessage(cid, 27, "• Level: "..newlevel.." (+"..levelsup..") • Offense: +"..doMathDecimal(off).." • Defense: +"..doMathDecimal(def).." • Spc. Atk: +"..doMathDecimal(spatk).." • Agility: +"..doMathDecimal(agi).." • Vitality: +"..doMathDecimal(vit).."")if happy < minHappyToEvolve then return true endif pokemonsCanEvolveByLevel thenlocal summon = getCreatureSummons(cid)[1]local reqlevel = poevo[getCreatureName(summon)] and poevo[getCreatureName(summon)].level or -1local level = getItemAttribute(item, "level")local evolution = "none"local name = getCreatureName(summon)if name == "Tyrogue" and level >= 20 thenif getOffense(summon) == getDefense(summon) thenevolution = "Hitmontop"elseif getOffense(summon) > getDefense(summon) thenevolution = "Hitmonlee"elseevolution = "Hitmonchan"endelseif name == "Eevee" thenif happy >= maxHappyToEvolve thenif isDay() thenevolution = "Espeon"elseevolution = "Umbreon"endendelseif name == "Slowpoke" and level >= 28 thenevolution = "Slowbro"elseif name == "Poliwhirl" and level >= 36 thenevolution = "Poliwrath"elseif reqlevel > 4 and level >= reqlevel thenevolution = poevo[getCreatureName(summon)].evolutionelseif reqlevel == 2 and happy >= maxHappyToEvolve thenevolution = poevo[getCreatureName(summon)] and poevo[getCreatureName(summon)].evolution or "none"endif evolution ~= "none" thendoStartEvolution(summon, evolution, 4)endendendendfunction adjustStatus(pk, item, health, vite, conditions)if not isCreature(pk) then return true endlocal bonusoffense = getItemAttribute(item, boffense) or 0local bonusdefense = getItemAttribute(item, bdefense) or 0local bonusagility = getItemAttribute(item, bagility) or 0local bonussattack = getItemAttribute(item, bsattack) or 0setPlayerStorageValue(pk, 1000, getItemAttribute(item, "level"))setPlayerStorageValue(pk, 1001, getItemAttribute(item, "offense") + bonusoffense)setPlayerStorageValue(pk, 1002, getItemAttribute(item, "defense") + bonusdefense)setPlayerStorageValue(pk, 1003, getItemAttribute(item, "speed") + bonusagility)setPlayerStorageValue(pk, 1005, getItemAttribute(item, "specialattack") + bonussattack)local gender = getItemAttribute(item, "gender") and getItemAttribute(item, "gender") or 0doCreatureSetSkullType(pk, gender)if vite == true thenlocal pct = getCreatureHealth(pk) / getCreatureMaxHealth(pk)local vit = getItemAttribute(item, "vitality") - getPlayerStorageValue(pk, 1004)setCreatureMaxHealth(pk, getCreatureMaxHealth(pk) + ( vit * HPperVIT ))doCreatureAddHealth(pk, pct * vit * HPperVIT)endsetPlayerStorageValue(pk, 1004, getItemAttribute(item, "vitality"))doRegainSpeed(pk)local nick = getItemAttribute(item, "poke")if getItemAttribute(item, "nick") thennick = getItemAttribute(item, "nick")endsetPlayerStorageValue(pk, 1007, nick)local boostlevel = getItemAttribute(item, "boost") or 0local boostshow = hideBoost and "]" or " + "..boostlevel.."]"local lvlstr = ""if showBoostSeparated thenboostshow = hideBoost and "]" or "] [+"..boostlevel.."]"endif hideSummonsLevel thenif not hideBoost thennick = nick.." [+"..boostlevel.."]"endelsenick = nick.." ["..getItemAttribute(item, "level")..""..boostshow..""enddoCreatureSetNick(pk, nick)if not getItemAttribute(item, "happy") thendoItemSetAttribute(item, "happy", 120)endif not getItemAttribute(item, "hunger") thendoItemSetAttribute(item, "hunger", 5)endlocal happy = getItemAttribute(item, "happy")if happy < 0 thenhappy = 0endsetPlayerStorageValue(pk, 1008, happy)local hunger = getItemAttribute(item, "hunger")setPlayerStorageValue(pk, 1009, hunger)if health == true thenlocal mh = getCreatureMaxHealth(pk) + HPperVIT * getVitality(pk)local rd = 1 - (tonumber(getItemAttribute(item, "hp")))setCreatureMaxHealth(pk, mh)doCreatureAddHealth(pk, getCreatureMaxHealth(pk))doCreatureAddHealth(pk, -(getCreatureMaxHealth(pk) * rd))endif isSummon(pk) and conditions thenlocal burn = getItemAttribute(item, "burn")if burn and burn >= 0 thenaddEvent(doAdvancedBurn, 5000, pk, pk, getItemAttribute(item, "burndmg"), burn - 1)endlocal poison = getItemAttribute(item, "poison")if poison and poison >= 0 thenaddEvent(doAdvancedPoison, 2500, pk, pk, getItemAttribute(item, "poisondmg"), poison - 1)endif getItemAttribute(item, "confuse") and getItemAttribute(item, "confuse") >= 1 thenaddEvent(doAdvancedConfuse, 1200, pk, getItemAttribute(item, "confuse"), getPlayerStorageValue(pk, 3891))endif getItemAttribute(item, "blind") and getItemAttribute(item, "blind") >= 1 thenaddEvent(doBlind, 300, pk, getItemAttribute(item, "blind"), getItemAttribute(item, "blindef"))endif getItemAttribute(item, "sleep") and getItemAttribute(item, "sleep") >= 1 thendoSleep(pk, getItemAttribute(item, "sleep"))endendreturn trueendfunction setWildPokemonLevel(cid, optionalLevel, optionalStatus, optionalNick, optionalExtraExp)if not isCreature(cid) then return true endlocal levelRange = 0local off = 0local def = 0local agi = 0local spatk = 0local vit = 0local this = getCreatureName(cid)local ee = 1if optionalExtraExp thenee = optionalExtraExpendif optionalLevel and tonumber(optionalLevel) >= 1 thenif optionalLevel <= 100 thenlevelRange = optionalLevelelselevelRange = 100endelseif getCreatureOutfit(cid).lookHead and getCreatureOutfit(cid).lookBody and getCreatureOutfit(cid).lookHead <= getCreatureOutfit(cid).lookBody thenlevelRange = math.random(getCreatureOutfit(cid).lookHead, getCreatureOutfit(cid).lookBody)elselevelRange = math.random(20, 30)endlocal status = getPokemonStatus(this)if status thenoff = status.offdef = status.defagi = status.agivit = status.vitspatk = status.spatkendsetPlayerStorageValue(cid, 1000, levelRange)if optionalStatus and optionalStatus.off thensetPlayerStorageValue(cid, 1001, optionalStatus.offense)setPlayerStorageValue(cid, 1002, optionalStatus.defense)setPlayerStorageValue(cid, 1003, optionalStatus.agility)setPlayerStorageValue(cid, 1004, optionalStatus.vitality)setPlayerStorageValue(cid, 1005, optionalStatus.specialattack)setPlayerStorageValue(cid, 1011, optionalStatus.offense)setPlayerStorageValue(cid, 1012, optionalStatus.defense)setPlayerStorageValue(cid, 1013, optionalStatus.agility)setPlayerStorageValue(cid, 1014, optionalStatus.vitality)setPlayerStorageValue(cid, 1015, optionalStatus.specialattack)elsesetPlayerStorageValue(cid, 1001, 5 + math.random(off * levelRange * 0.9, off * levelRange * 1.8))setPlayerStorageValue(cid, 1002, 5 + math.random(def * levelRange * 0.9, def * levelRange * 1.8))setPlayerStorageValue(cid, 1003, math.random(agi * levelRange * 0.9, agi * levelRange * 1.8))setPlayerStorageValue(cid, 1004, math.random(vit * levelRange * 0.9, vit * levelRange * 1.8))setPlayerStorageValue(cid, 1005, 5 + math.random(spatk * levelRange * 0.9, spatk * levelRange * 1.8))setPlayerStorageValue(cid, 1011, getPlayerStorageValue(cid, 1001))setPlayerStorageValue(cid, 1012, getPlayerStorageValue(cid, 1002))setPlayerStorageValue(cid, 1013, getPlayerStorageValue(cid, 1003))setPlayerStorageValue(cid, 1014, getPlayerStorageValue(cid, 1004))setPlayerStorageValue(cid, 1015, getPlayerStorageValue(cid, 1005))enddoRegainSpeed(cid)setCreatureMaxHealth(cid, getCreatureMaxHealth(cid) + getPlayerStorageValue(cid, 1004) * HPperVIT * vitReductionForWild)doCreatureAddHealth(cid, getCreatureMaxHealth(cid))if pokes[getCreatureName(cid)].exp then--getMonsterInfo(getCreatureName(cid)).experiencelocal exp = (50 + pokes[getCreatureName(cid)].exp) * baseExpRate + pokes[getCreatureName(cid)].vitality * levelRange * pokemonExpPerLevelRatesetPlayerStorageValue(cid, 1006, exp * generalExpRate * ee)endlocal wildshow = wildBeforeNames and "Wild " or ""if optionalNick thenif hideWildsLevel thendoCreatureSetNick(cid, optionalNick)elsedoCreatureSetNick(cid, optionalNick.." ["..getWildPokemonLevel(cid).."]")endelseif hideWildsLevel thendoCreatureSetNick(cid, ""..wildshow..""..getCreatureName(cid).."")elsedoCreatureSetNick(cid, ""..wildshow..""..getCreatureName(cid).." ["..getWildPokemonLevel(cid).."]")endendendfunction getOffense(cid)if not isCreature(cid) then return 0 endif getPlayerStorageValue(cid, 3894) >= 1 thenreturn tonumber(getPlayerStorageValue(cid, 1001)) / 2endreturn tonumber(getPlayerStorageValue(cid, 1001))endfunction getDefense(cid)if not isCreature(cid) then return 0 endif getPlayerStorageValue(cid, 3894) >= 1 thenreturn tonumber(getPlayerStorageValue(cid, 1002)) / 2endreturn tonumber(getPlayerStorageValue(cid, 1002))endfunction getSpeed(cid)if not isCreature(cid) then return 0 endreturn tonumber(getPlayerStorageValue(cid, 1003))endfunction getVitality(cid)if not isCreature(cid) then return 0 endreturn tonumber(getPlayerStorageValue(cid, 1004))endfunction getSpecialAttack(cid)if not isCreature(cid) then return 0 endreturn tonumber(getPlayerStorageValue(cid, 1005))endfunction getHappiness(cid)if not isCreature(cid) then return 0 endreturn tonumber(getPlayerStorageValue(cid, 1008))endfunction getSpecialDefense(cid)if not isCreature(cid) then return 0 endreturn getSpecialAttack(cid) * 0.85 + getDefense(cid) * 0.2endfunction getWildPokemonExp(cid)return getPlayerStorageValue(cid, 1006)endfunction getWildPokemonLevel(cid)return getPlayerStorageValue(cid, 1000)endfunction getLevel(cid)if isSummon(cid) thenreturn getItemAttribute(getPlayerSlotItem(getCreatureMaster(cid), 8).uid, "level")endreturn getPlayerStorageValue(cid, 1000)endfunction getPokeName(cid)if not isSummon(cid) then return getCreatureName(cid) endif getCreatureName(cid) == "Evolution" then return getPlayerStorageValue(cid, 1007) endlocal item = getPlayerSlotItem(getCreatureMaster(cid), 8)if getItemAttribute(item.uid, "nick") thenreturn getItemAttribute(item.uid, "nick")endreturn getCreatureName(cid)endfunction getPokeballName(item, truename)if not truename and getItemAttribute(item, "nick") thenreturn getItemAttribute(item, "nick")endreturn getItemAttribute(item, "poke")endfunction getPokemonName(cid)return getCreatureName(cid)endfunction getPokemonLevel(cid)if not isCreature(cid) then return 0 endreturn getPlayerStorageValue(cid, 1000)endfunction getPokemonGender(cid)return getCreatureSkullType(cid) end
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.