Ir para conteúdo

Featured Replies

Postado

Eaew Galera do TK, entao queria saber como faço para colocar [unknown] na Pokedex em pokemons que ainda nao dei dex

 

 

Imagem atual fica assim

post-135388-0-15511200-1425958385_thumb.

 

 

 

Queria assim em pokemons que nao dei Dex ainda, porque fica muito confuso, nao sei em qual dei dex e em qual nao dei

post-135388-0-00944400-1425958731_thumb.

 

 

se for ajudar tenho os scripts aqui

 

\data\actions\scripts\pokedex.lua

 

local rate = 20



function onUse(cid, item, fromPos, item2, toPos)

if not isCreature(item2.uid) then
return true
end

local poke = getCreatureName(item2.uid)

if isMonster(item2.uid) then
local this = newpokedex[getCreatureName(item2.uid)]
local leveltable = getPokemonExperienceTable(getCreatureName(item2.uid))
local myball = 0
if isSummon(item2.uid) then
myball = getPlayerSlotItem(getCreatureMaster(item2.uid), 8)
end

if not getPlayerInfoAboutPokemon(cid, poke).dex then
local exp = this.level * rate
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você desbloqueou"..getCreatureName(item2.uid).." em sua pokedex!")
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você ganhou "..exp.." pontos de experiência.")
doSendMagicEffect(getThingPos(cid), 210)
doPlayerAddExperience(cid, exp)
doAddPokemonInDexList(cid, poke)
else
doShowPokedexRegistration(cid, item2, myball, leveltable)
end
return true
end

if not isPlayer(item2.uid) then return true end
--alterado v2.7 \/\/
local kanto = 0
local johto = 0

for i = 1, #oldpokedex do
if getPlayerInfoAboutPokemon(item2.uid, oldpokedex[1]).dex then
if i <= 151 then
kanto = kanto+1
elseif i >= 209 then
johto = johto+1
end
end
end
local player = getRecorderPlayer(toPos, cid)

if cid == player then
doPlayerSendTextMessage(cid, 27, "Você desbloqueou "..kanto..", Pokemons de kanto's e "..johto..", Pokemons de johto's até agora.")
doPlayerSetVocation(cid, 9)
openChannelDialog(cid)

end

return true
end

 
\data\lib\pokedex system.lua
 

local skills = specialabilities --alterado v2.9 \/ TUDO!!



function doAddPokemonInDexList(cid, poke)
if getPlayerInfoAboutPokemon(cid, poke).dex then return true end
local a = newpokedex[poke]
local b = getPlayerStorageValue(cid, a.storage)
setPlayerStorageValue(cid, a.storage, b.." dex,")
end

function getPokemonEvolutionDescription(name, next)
local kev = poevo[name]
local stt = {}
if isInArray(specialevo, name) then
if name == "Poliwhirl" then
if next then
return "\nPoliwrath or Politoed, requires level 65."
end
table.insert(stt, "Evolve Stone: Water Stone and Punch Stone or Water Stone and King's Rock\n\n")
table.insert(stt, "Evolutions:\nPoliwrath, requires level 65.\nPolitoed, requires level 65.")
elseif name == "Gloom" then
if next then
return "\nVileplume or Bellossom, requires level 50."
end
table.insert(stt, "Evolve Stone: Leaf Stone and Venom Stone or Leaf Stone and Sun Stone\n\n")
table.insert(stt, "Evolutions:\nVileplume, requires level 50.\nBellossom, requires level 50.")
elseif name == "Slowpoke" then
if next then
return "\nSlowbro, requires level 45.\nSlowking, requires level 100."
end
table.insert(stt, "Evolve Stone: Enigma Stone or King's Rock\n\n")
table.insert(stt, "Evolutions:\nSlowbro, requires level 45.\nSlowking, requires level 100.")
elseif name == "Eevee" then
if next then
return "\nVaporeon, requires level 55.\nJolteon, requires level 55.\nFlareon, requires level 55.\nUmbreon, requires level 55.\nEspeon, requires level 55."
end
table.insert(stt, "Evolve Stone: Water Stone or Thunder Stone or Fire Stone or Darkness Stone or Enigma Stone\n\n")
table.insert(stt, "Evolutions:\nVaporeon, requires level 55.\nJolteon, requires level 55.\nFlareon, requires level 55.\nUmbreon, requires level 55.\nEspeon, requires level 55.")
elseif name == "Tyrogue" then
if next then
return "\nHitmonlee, requires level 60.\nHitmonchan, requires level 60.\nHitmontop, requires level 60."
end
table.insert(stt, "Evolve Stone: Punch Stone\n\n")
table.insert(stt, "Evolutions:\nHitmonlee, requires level 60.\nHitmonchan, requires level 60.\nHitmontop, requires level 60.")
end
elseif kev then
if next then
table.insert(stt, "\n"..kev.evolution..", requires level "..kev.level..".")
return table.concat(stt)
end
local id = tonumber(kev.stoneid)
local id2 = tonumber(kev.stoneid2)
local stone = ""
if tonumber(kev.count) == 2 then
stone = doConvertStoneIdToString(id).." (2x)"
else
stone = id2 == 0 and doConvertStoneIdToString(id) or doConvertStoneIdToString(id).." and "..doConvertStoneIdToString(id2)
end
table.insert(stt, "Evolve Stone: "..stone.."\n\n")
table.insert(stt, "Evolutions:\n"..kev.evolution..", requeris level "..kev.level..".")
table.insert(stt, getPokemonEvolutionDescription(kev.evolution, true))
else
if not next then
table.insert(stt, "Evolutions:\nIt doen't evolve." )
end
end
return table.concat(stt)
end

local function getMoveDexDescr(cid, name, number)
local x = movestable[name]
if not x then return "" end

local z = "\n"
local tables = {x.move1, x.move2, x.move3, x.move4, x.move5, x.move6, x.move7, x.move8, x.move9, x.move10, x.move11, x.move12}
local y = tables[number]
if not y then return "" end

if getTableMove(cid, y.name) == "" then
print(""..y.name.." faltando")
return "unknown error"
end
local txt = ""..z..""..y.name.." - m"..number.." - level "..y.level.." - "..(y.t)
return txt
end
--alterado v2.8
local skillcheck = {"fly", "ride", "surf", "teleport", "rock smash", "cut", "dig", "light", "blink", "control mind", "transform", "levitate_fly"}
local passivas = {
["Electricity"] = {"Electabuzz", "Shiny Electabuzz", "Elekid", tpw = "electric"},
["Lava Counter"] = {"Magmar", "Magby", tpw = "fire"},
["Counter Helix"] = {"Scyther", "Shiny Scyther", tpw = "bug"},
["Giroball"] = {"Pineco", "Forretress", tpw = "steel"},
["Counter Claw"] = {"Scizor", tpw = "bug"},
["Counter Spin"] = {"Hitmontop", "Shiny Hitmontop", tpw = "fighting"},
["Demon Kicker"] = {"Hitmonlee", "Shiny Hitmonlee", tpw = "fighting"},
["Demon Puncher"] = {"Hitmonchan", "Shiny Hitmonchan", tpw = "unknow"}, --alterado v2.6
["Stunning Confusion"] = {"Psyduck", "Golduck", "Wobbuffet", tpw = "psychic"},
["Groundshock"] = {"Kangaskhan", tpw = "normal"},
["Electric Charge"] = {"Pikachu", "Raichu", "Shiny Raichu", tpw = "electric"},
["Melody"] = {"Wigglytuff", tpw = "normal"},
["Dragon Fury"] = {"Dratini", "Dragonair", "Dragonite", "Shiny Dratini", "Shiny Dragonair", "Shiny Dragonite", tpw = "dragon"},
["Fury"] = {"Persian", "Raticate", "Shiny Raticate", tpw = "normal"},
["Mega Drain"] = {"Oddish", "Gloom", "Vileplume", "Kabuto", "Kabutops", "Parasect", "Tangela", "Shiny Vileplume", "Shiny Tangela", tpw = "grass"},
["Spores Reaction"] = {"Oddish", "Gloom", "Vileplume", "Shiny Vileplume", tpw = "grass"},
["Amnesia"] = {"Wooper", "Quagsire", "Swinub", "Piloswine", tpw = "psychic"},
["Zen Mind"] = {"Slowking", tpw = "psychic"},
["Mirror Coat"] = {"Wobbuffet", tpw = "psychic"},
["Lifesteal"] = {"Crobat", tpw = "normal"},
["Evasion"] = {"Scyther", "Scizor", "Hitmonlee", "Hitmonchan", "Hitmontop", "Tyrogue", "Shiny Scyther", "Shiny Hitmonchan", "Shiny Hitmonlee", "Shiny Hitmontop", "Ledian", "Ledyba", "Sneasel", tpw = "normal"},
["Foresight"] = {"Machamp", "Shiny Hitmonchan", "Shiny Hitmonlee", "Shiny Hitmontop", "Hitmontop", "Hitmonlee", "Hitmonchan", tpw = "fighting"},
["Levitate"] = {"Gengar", "Haunter", "Gastly", "Misdreavus", "Weezing", "Koffing", "Unown", "Shiny Gengar", tpw = "ghost"},
}


function doShowPokedexRegistration(cid, pokemon, ball)
local item2 = pokemon
local virtual = false
if type(pokemon) == "string" then
virtual = true
end
local myball = ball
local name = virtual and pokemon or getCreatureName(item2.uid)

local v = fotos[name]
local stt = {}
table.insert(stt, "Name: "..name.."\n")

if pokes[name].type2 and pokes[name].type2 ~= "no type" then
table.insert(stt, "Type: "..pokes[name].type.."/"..pokes[name].type2.."")
else
table.insert(stt, "Type: "..pokes[name].type.."")
end

if virtual then
table.insert(stt, "\nLevel Base: "..pokes[name].level.."\n")
else
table.insert(stt, "\nRequired level: "..getPokemonLevel(item2.uid).."\n")
end

if showStatusInDex then
if virtual then
table.insert(stt, "\nStatus:\n")
local status = getPokemonStatus(name, pokes[name].level)
table.insert(stt, "•Offense: "..status.offense.."\n•Defense: "..status.defense.."\n•Agility: "..status.agility.."\n•Sp. Attack: "..status.specialattack.."\n•Vitality: "..status.vitality.."\n")
else
table.insert(stt, "\nStatus:\n")
local status = getPokemonStatus(name, getPokemonLevel(item2.uid) + getPokemonBoost(item2.uid))
table.insert(stt, "•Offense: "..status.offense.."\n•Defense: "..status.defense.."\n•Agility: "..status.agility.."\n•Sp. Attack: "..status.specialattack.."\n•Vitality: "..status.vitality.."\n")
end
end

table.insert(stt, "\n"..getPokemonEvolutionDescription(name).."\n")

table.insert(stt, "\nMoves:")

if name == "Ditto" then
if virtual then
table.insert(stt, "\nIt doesn't use any moves until transformed.")
elseif getPlayerStorageValue(item2.uid, 1010) == "Ditto" or getPlayerStorageValue(item2.uid, 1010) == -1 then
table.insert(stt, "\nIt doesn't use any moves until transformed.")
else
for a = 1, 15 do
table.insert(stt, getMoveDexDescr(item2.uid, getPlayerStorageValue(item2.uid, 1010), a).."")
end
end
else
for a = 1, 15 do
table.insert(stt, getMoveDexDescr(item2.uid, name, a).."")
end
end

for e, f in pairs(passivas) do
if isInArray(passivas[e], name) then
local tpw = passivas[e].tpw
if name == "Pineco" and passivas[e] == "Giroball" then
tpw = "bug"
end
table.insert(stt, "\n"..e.." - passive - "..tpw.."")
end
end

table.insert(stt, "\n\nAbility:\n")
local abilityNONE = true

for b, c in pairs(skills) do
if isInArray(skillcheck, b) then
if isInArray(c, name) then
table.insert(stt, (b == "levitate_fly" and "Levitate" or doCorrectString(b)).."\n")
abilityNONE = false
end
end
end
if abilityNONE then
table.insert(stt, "None")
end

if string.len(table.concat(stt)) > 8192 then
print("Erro ao fazer Informação pokedex com pokemon chamado "..name..".\n Registro de Pokedex tem mais de 8192 letras (it has "..string.len(stt).." letras), foi bloqueada para evitar erro fatal.")
doPlayerSendCancel(cid, "Ocorreu um erro, ele foi enviado para o administrador do servidor.")
return true
end

doShowTextDialog(cid, v, table.concat(stt))
end

 

\data\creaturescripts\scripts\newpokedex.lua

 

testeDex = {


{"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", 3, 1010},
{"Metapod", 10, 1011},
{"Butterfree", 30, 1012},
{"Weedle", 3, 1013},
{"Kakuna", 10, 1014},
{"Beedrill", 30, 1015},
{"Pidgey", 5, 1016},
{"Pidgeotto", 20, 1017},
{"Pidgeot", 60, 1018},
{"Rattata", 3, 1019},
{"Raticate", 20, 1020},
{"Spearow", 5, 1021},
{"Fearow", 50, 1022},
{"Ekans", 12, 1023},
{"Arbok", 30, 1024},
{"Pikachu", 20, 1025},
{"Raichu", 50, 1026},
{"Sandshrew", 18, 1027},
{"Sandslash", 55, 1028},
{"Nidoran Female", 10, 1029},
{"Nidorina", 25, 1030},
{"Nidoqueen", 65, 1031},
{"Nidoran Male", 10, 1032},
{"Nidorino", 25, 1033},
{"Nidoking", 65, 1034},
{"Clefairy", 10, 1035},
{"Clefable", 35, 1036},
{"Vulpix", 16, 1037},
{"Ninetales", 65, 1038},
{"Jigglypuff", 10, 1039},
{"Wigglytuff", 42, 1040},
{"Zubat", 5, 1041},
{"Golbat", 30, 1042},
{"Oddish", 5, 1043},
{"Gloom", 18, 1044},
{"Vileplume", 50, 1045},
{"Paras", 5, 1046},
{"Parasect", 40, 1047},
{"Venonat", 14, 1048},
{"Venomoth", 40, 1049},
{"Diglett", 5, 1050},
{"Dugtrio", 35, 1051},
{"Meowth", 12, 1052},
{"Persian", 25, 1053},
{"Psyduck", 12, 1054},
{"Golduck", 55, 1055},
{"Mankey", 10, 1056},
{"Primeape", 45, 1057},
{"Growlithe", 16, 1058},
{"Arcanine", 70, 1059},
{"Poliwag", 5, 1060},
{"Poliwhirl", 20, 1061},
{"Poliwrath", 60, 1062},
{"Abra", 12, 1063},
{"Kadabra", 40, 1064},
{"Alakazam", 70, 1065},
{"Machop", 16, 1066},
{"Machoke", 38, 1067},
{"Machamp", 70, 1068},
{"Bellsprout", 5, 1069},
{"Weepinbell", 18, 1070},
{"Victreebel", 50, 1071},
{"Tentacool", 12, 1072},
{"Tentacruel", 70, 1073},
{"Geodude", 15, 1074},
{"Graveler", 40, 1075},
{"Golem", 70, 1076},
{"Ponyta", 15, 1077},
{"Rapidash", 55, 1078},
{"Slowpoke", 12, 1079},
{"Slowbro", 45, 1080},
{"Magnemite", 15, 1081},
{"Magneton", 38, 1082},
{"Farfetch'd", 35, 1083},
{"Doduo", 12, 1084},
{"Dodrio", 42, 1085},
{"Seel", 14, 1086},
{"Dewgong", 55, 1087},
{"Grimer", 12, 1088},
{"Muk", 30, 1089},
{"Shellder", 5, 1090},
{"Cloyster", 65, 1091},
{"Gastly", 14, 1092},
{"Haunter", 40, 1093},
{"Gengar", 70, 1094},
{"Onix", 50, 1095},
{"Drowzee", 18, 1096},
{"Hypno", 50, 1097},
{"Krabby", 5, 1098},
{"Kingler", 35, 1099},
{"Voltorb", 14, 1100},
{"Electrode", 38, 1101},
{"Exeggcute", 8, 1102},
{"Exeggutor", 48, 1103},
{"Cubone", 18, 1104},
{"Marowak", 45, 1105},
{"Hitmonlee", 60, 1106},
{"Hitmonchan", 60, 1107},
{"Lickitung", 45, 1108},
{"Koffing", 15, 1109},
{"Weezing", 30, 1110},
{"Rhyhorn", 35, 1111},
{"Rhydon", 65, 1112},
{"Chansey", 50, 1113},
{"Tangela", 35, 1114},
{"Kangaskhan", 65, 1115},
{"Horsea", 5, 1116},
{"Seadra", 40, 1117},
{"Goldeen", 10, 1118},
{"Seaking", 25, 1119},
{"Staryu", 15, 1120},
{"Starmie", 38, 1121},
{"Mr. Mime", 45, 1122},
{"Scyther", 60, 1123},
{"Jynx", 55, 1124},
{"Electabuzz", 60, 1125},
{"Magmar", 60, 1126},
{"Pinsir", 42, 1127},
{"Tauros", 40, 1128},
{"Magikarp", 1, 1129},
{"Gyarados", 75, 1130},
{"Lapras", 65, 1131},
{"Ditto", 40, 1132},
{"Eevee", 20, 1133},
{"Vaporeon", 55, 1134},
{"Jolteon", 55, 1135},
{"Flareon", 55, 1136},
{"Porygon", 45, 1137},
{"Omanyte", 20, 1138},
{"Omastar", 70, 1139},
{"Kabuto", 20, 1140},
{"Kabutops", 70, 1141},
{"Aerodactyl", 85, 1142},
{"Snorlax", 85, 1143},
{"Articuno", 100, 1144},
{"Zapdos", 100, 1145},
{"Moltres", 100, 1146},
{"Dratini", 15, 1147},
{"Dragonair", 45, 1148},
{"Dragonite", 85, 1149},
{"Mewtwo", 100, 1150},
{"Mew", 100, 1151},
{"Shiny Venusaur", 75, 10030},
{"Shiny Charizard", 75, 10060},
{"Shiny Blastoise", 75, 10090},
{"Shiny Butterfree", 30, 10120},
{"Shiny Beedrill", 30, 10150},
{"Shiny Pidgeot", 60, 10180},
{"Shiny Rattata", 3, 10190},
{"Shiny Raticate", 20, 10200},
{"Shiny Fearow", 50, 10220},
{"Shiny Raichu", 50, 10260},
{"Shiny Nidoking", 65, 10340},
{"Shiny Zubat", 5, 10410},
{"Shiny Golbat", 30, 10420},
{"Shiny Oddish", 5, 10430},
{"Shiny Vileplume", 50, 10450},
{"Shiny Paras", 5, 10460},
{"Shiny Parasect", 40, 10470},
{"Shiny Venonat", 14, 10480},
{"Shiny Venomoth", 40, 10490},
{"Shiny Growlithe", 16, 10580},
{"Shiny Arcanine", 70, 10590},
{"Shiny Abra", 12, 10630},
{"Shiny Alakazam", 70, 10650},
{"Shiny Tentacool", 12, 10720},
{"Shiny Tentacruel", 70, 10730},
{"Shiny Golem", 70, 10760},
{"Shiny Farfetch'd", 35, 10830},
{"Shiny Grimer", 12, 10880},
{"Shiny Muk", 30, 10890},
{"Shiny Gengar", 70, 10940},
{"Shiny Onix", 50, 10950},
{"Shiny Hypno", 50, 10970},
{"Shiny Krabby", 5, 10980},
{"Shiny Kingler", 35, 10990},
{"Shiny Voltorb", 14, 11000},
{"Shiny Electrode", 38, 11010},
{"Shiny Cubone", 18, 11040},
{"Shiny Marowak", 45, 11050},
{"Shiny Hitmonlee", 60, 11060},
{"Shiny Hitmonchan", 60, 11070},
{"Shiny Tangela", 35, 11140},
{"Shiny Horsea", 5, 11160},
{"Shiny Seadra", 40, 11170},
{"Shiny Scyther", 60, 11230},
{"Shiny Jynx", 55, 11240},
{"Shiny Electabuzz", 60, 11250},
{"Shiny Pinsir", 42, 11270},
{"Shiny Magikarp", 1, 11290},
{"Shiny Gyarados", 75, 11300},
{"Shiny Vaporeon", 55, 11340},
{"Shiny Jolteon", 55, 11350},
{"Shiny Flareon", 55, 11360},
{"Shiny Snorlax", 85, 11430},
{"Shiny Dratini", 15, 11470},
{"Shiny Dragonair", 45, 11480},
{"Shiny Dragonite", 85, 11490},
{"Chikorita", 18, 1152},
{"Bayleef", 38, 1153},
{"Meganium", 75, 1154},
{"Cyndaquil", 18, 1155},
{"Quilava", 38, 1156},
{"Typhlosion", 75, 1157},
{"Totodile", 18, 1158},
{"Croconaw", 38, 1159},
{"Feraligatr", 75, 1160},
{"Sentret", 3, 1161},
{"Furret", 28, 1162},
{"Hoothoot", 3, 1163},
{"Noctowl", 65, 1164},
{"Ledyba", 12, 1165},
{"Ledian", 30, 1166},
{"Spinarak", 15, 1167},
{"Ariados", 42, 1168},
{"Crobat", 70, 1169},
{"Chinchou", 14, 1170},
{"Lanturn", 38, 1171},
{"Pichu", 3, 1172},
{"Cleffa", 3, 1173},
{"Igglybuff", 3, 1174},
{"Togepi", 10, 1175},
{"Togetic", 45, 1176},
{"Natu", 15, 1177},
{"Xatu", 45, 1178},
{"Mareep", 12, 1179},
{"Flaaffy", 30, 1180},
{"Ampharos", 65, 1181},
{"Bellossom", 50, 1182},
{"Marill", 14, 1183},
{"Azumarill", 28, 1184},
{"Sudowoodo", 46, 1185},
{"Politoed", 60, 1186},
{"Hoppip", 10, 1187},
{"Skiploom", 20, 1188},
{"Jumpluff", 30, 1189},
{"Aipom", 10, 1190},
{"Sunkern", 3, 1191},
{"Sunflora", 50, 1192},
{"Yanma", 32, 1193},
{"Wooper", 18, 1194},
{"Quagsire", 55, 1195},
{"Espeon", 55, 1196},
{"Umbreon", 55, 1197},
{"Murkrow", 35, 1198},
{"Slowking", 60, 1199},
{"Misdreavus", 47, 1200},
{"Unown", 15, 1201},
{"Wobbuffet", 42, 1202},
{"Girafarig", 42, 1203},
{"Pineco", 18, 1204},
{"Forretress", 55, 1205},
{"Dunsparce", 35, 1206},
{"Gligar", 30, 1207},
{"Steelix", 75, 1208},
{"Snubbull", 20, 1209},
{"Granbull", 42, 1210},
{"Qwilfish", 16, 1211},
{"Scizor", 75, 1212},
{"Shuckle", 10, 1213},
{"Heracross", 60, 1214},
{"Sneasel", 50, 1215},
{"Teddiursa", 20, 1216},
{"Ursaring", 70, 1217},
{"Slugma", 18, 1218},
{"Magcargo", 40, 1219},
{"Swinub", 12, 1220},
{"Piloswine", 70, 1221},
{"Corsola", 42, 1222},
{"Remoraid", 14, 1223},
{"Octillery", 38, 1224},
{"Delibird", 25, 1225},
{"Mantine", 50, 1226},
{"Skarmory", 70, 1227},
{"Houndour", 18, 1228},
{"Houndoom", 70, 1229},
{"Kingdra", 75, 1230},
{"Phanpy", 12, 1231},
{"Donphan", 45, 1232},
{"Porygon2", 60, 1233},
{"Stantler", 35, 1234},
{"Smeargle", 28, 1235},
{"Tyrogue", 15, 1236},
{"Hitmontop", 60, 1237},
{"Smoochum", 3, 1238},
{"Elekid", 3, 1239},
{"Magby", 3, 1240},
{"Miltank", 32, 1241},
{"Blissey", 70, 1242},
{"Raikou", 100, 1243},
{"Entei", 100, 1244},
{"Suicune", 100, 1245},
{"Larvitar", 10, 1246},
{"Pupitar", 50, 1247},
{"Tyranitar", 90, 1248},
{"Lugia", 100, 1249},
{"Ho-oh", 100, 1250},
{"Celebi", 100, 1251},
{"Shiny Hitmontop", 100, 11520},
{"Shiny Mr. Mime", 45, 11521},
{"Shiny Ninetales", 65, 11522},
{"Shiny Ariados", 42, 11523},
{"Shiny Magneton", 38, 11524},
{"Shiny Espeon", 55, 11525},
{"Shiny Politoed", 60, 11526},
{"Shiny Umbreon", 55, 11527},
{"Shiny Stantler", 35, 11528},
{"Shiny Dodrio", 42, 11529},
{"Shiny Rhydon", 65, 11530},
{"Shiny Weezing", 100, 1006},
{"Shiny Sandslash", 100, 1007},
{"Shiny Crobat", 100, 1008},
{"Shiny Magmar", 100, 1009},
{"Giant Magikarp", 10, 1010},
{"Shiny Giant Magikarp", 30, 1011},
{"Shiny Ampharos", 100, 11531},
{"Shiny Feraligatr", 100, 11532},
{"Shiny Larvitar", 100, 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},
}

function onJoinChannel(cid, channelId, users, isTv)
for i = 10001, 10264 do
local z = tonumber(i - 10000)
local myball = getPlayerSlotItem(cid, 8).uid
if channelId == i then
if getPlayerInfoAboutPokemon(cid, testeDex[z][1]).dex then
doShowPokedexRegistration(cid, testeDex[z][1], myball)
else
doPlayerSendTextMessage(cid, 27, "Você não descobriu esse pokémon ainda!")
doPlayerSetVocation(cid, 9)
openChannelDialog(cid)
end
return false
end
end
return true
end

function onLeaveChannel(cid, channelId, users)

for i = 10001, 10264 do
if channelId == i then
doPlayerSetVocation(cid, 1)
end
end
end

 

Obs: Desculpem se criei errado o Topico

 

Espero que me ajudem!!! Obrigado!!! 

 

REP+ pra quem ajuda


Alguem ajuda ?


alguem ajuda ae 

Editado por soyjhoh (veja o histórico de edições)

Postado

O tópico foi movido para a área correta, preste mais atenção da próxima vez!

Leia as regras do fórum: http://tibiaking.com/forum/topic/1281-regras-gerais/?p=7680

Este tópico foi movido:

De: "OTServSuporte OTServSuporte de Scripts"

Para: "OTServSuporte OTServSuporte de Servidores Derivados"

Postado
  • Autor

Eaew Galera do TK, entao queria saber como faço para colocar [unknown] na Pokedex em pokemons que ainda nao dei dex

 

 

Imagem atual fica assim

attachicon.gif24pay37.jpg

 

 

 

Queria assim em pokemons que nao dei Dex ainda, porque fica muito confuso, nao sei em qual dei dex e em qual nao dei

attachicon.gif04.png

 

 

se for ajudar tenho os scripts aqui

 

\data\actions\scripts\pokedex.lua

 

local rate = 20

function onUse(cid, item, fromPos, item2, toPos)

if not isCreature(item2.uid) then

return true

end

local poke = getCreatureName(item2.uid)

if isMonster(item2.uid) then

local this = newpokedex[getCreatureName(item2.uid)]

local leveltable = getPokemonExperienceTable(getCreatureName(item2.uid))

local myball = 0

if isSummon(item2.uid) then

myball = getPlayerSlotItem(getCreatureMaster(item2.uid), 8)

end

if not getPlayerInfoAboutPokemon(cid, poke).dex then

local exp = this.level * rate

doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você desbloqueou"..getCreatureName(item2.uid).." em sua pokedex!")

doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você ganhou "..exp.." pontos de experiência.")

doSendMagicEffect(getThingPos(cid), 210)

doPlayerAddExperience(cid, exp)

doAddPokemonInDexList(cid, poke)

else

doShowPokedexRegistration(cid, item2, myball, leveltable)

end

return true

end

if not isPlayer(item2.uid) then return true end

--alterado v2.7 \/\/

local kanto = 0

local johto = 0

for i = 1, #oldpokedex do

if getPlayerInfoAboutPokemon(item2.uid, oldpokedex[1]).dex then

if i <= 151 then

kanto = kanto+1

elseif i >= 209 then

johto = johto+1

end

end

end

local player = getRecorderPlayer(toPos, cid)

if cid == player then

doPlayerSendTextMessage(cid, 27, "Você desbloqueou "..kanto..", Pokemons de kanto's e "..johto..", Pokemons de johto's até agora.")

doPlayerSetVocation(cid, 9)

openChannelDialog(cid)

end

return true

end

 
\data\lib\pokedex system.lua
 

local skills = specialabilities --alterado v2.9 \/ TUDO!!

function doAddPokemonInDexList(cid, poke)

if getPlayerInfoAboutPokemon(cid, poke).dex then return true end

local a = newpokedex[poke]

local b = getPlayerStorageValue(cid, a.storage)

setPlayerStorageValue(cid, a.storage, b.." dex,")

end

function getPokemonEvolutionDescription(name, next)

local kev = poevo[name]

local stt = {}

if isInArray(specialevo, name) then

if name == "Poliwhirl" then

if next then

return "\nPoliwrath or Politoed, requires level 65."

end

table.insert(stt, "Evolve Stone: Water Stone and Punch Stone or Water Stone and King's Rock\n\n")

table.insert(stt, "Evolutions:\nPoliwrath, requires level 65.\nPolitoed, requires level 65.")

elseif name == "Gloom" then

if next then

return "\nVileplume or Bellossom, requires level 50."

end

table.insert(stt, "Evolve Stone: Leaf Stone and Venom Stone or Leaf Stone and Sun Stone\n\n")

table.insert(stt, "Evolutions:\nVileplume, requires level 50.\nBellossom, requires level 50.")

elseif name == "Slowpoke" then

if next then

return "\nSlowbro, requires level 45.\nSlowking, requires level 100."

end

table.insert(stt, "Evolve Stone: Enigma Stone or King's Rock\n\n")

table.insert(stt, "Evolutions:\nSlowbro, requires level 45.\nSlowking, requires level 100.")

elseif name == "Eevee" then

if next then

return "\nVaporeon, requires level 55.\nJolteon, requires level 55.\nFlareon, requires level 55.\nUmbreon, requires level 55.\nEspeon, requires level 55."

end

table.insert(stt, "Evolve Stone: Water Stone or Thunder Stone or Fire Stone or Darkness Stone or Enigma Stone\n\n")

table.insert(stt, "Evolutions:\nVaporeon, requires level 55.\nJolteon, requires level 55.\nFlareon, requires level 55.\nUmbreon, requires level 55.\nEspeon, requires level 55.")

elseif name == "Tyrogue" then

if next then

return "\nHitmonlee, requires level 60.\nHitmonchan, requires level 60.\nHitmontop, requires level 60."

end

table.insert(stt, "Evolve Stone: Punch Stone\n\n")

table.insert(stt, "Evolutions:\nHitmonlee, requires level 60.\nHitmonchan, requires level 60.\nHitmontop, requires level 60.")

end

elseif kev then

if next then

table.insert(stt, "\n"..kev.evolution..", requires level "..kev.level..".")

return table.concat(stt)

end

local id = tonumber(kev.stoneid)

local id2 = tonumber(kev.stoneid2)

local stone = ""

if tonumber(kev.count) == 2 then

stone = doConvertStoneIdToString(id).." (2x)"

else

stone = id2 == 0 and doConvertStoneIdToString(id) or doConvertStoneIdToString(id).." and "..doConvertStoneIdToString(id2)

end

table.insert(stt, "Evolve Stone: "..stone.."\n\n")

table.insert(stt, "Evolutions:\n"..kev.evolution..", requeris level "..kev.level..".")

table.insert(stt, getPokemonEvolutionDescription(kev.evolution, true))

else

if not next then

table.insert(stt, "Evolutions:\nIt doen't evolve." )

end

end

return table.concat(stt)

end

local function getMoveDexDescr(cid, name, number)

local x = movestable[name]

if not x then return "" end

local z = "\n"

local tables = {x.move1, x.move2, x.move3, x.move4, x.move5, x.move6, x.move7, x.move8, x.move9, x.move10, x.move11, x.move12}

local y = tables[number]

if not y then return "" end

if getTableMove(cid, y.name) == "" then

print(""..y.name.." faltando")

return "unknown error"

end

local txt = ""..z..""..y.name.." - m"..number.." - level "..y.level.." - "..(y.t)

return txt

end

--alterado v2.8

local skillcheck = {"fly", "ride", "surf", "teleport", "rock smash", "cut", "dig", "light", "blink", "control mind", "transform", "levitate_fly"}

local passivas = {

["Electricity"] = {"Electabuzz", "Shiny Electabuzz", "Elekid", tpw = "electric"},

["Lava Counter"] = {"Magmar", "Magby", tpw = "fire"},

["Counter Helix"] = {"Scyther", "Shiny Scyther", tpw = "bug"},

["Giroball"] = {"Pineco", "Forretress", tpw = "steel"},

["Counter Claw"] = {"Scizor", tpw = "bug"},

["Counter Spin"] = {"Hitmontop", "Shiny Hitmontop", tpw = "fighting"},

["Demon Kicker"] = {"Hitmonlee", "Shiny Hitmonlee", tpw = "fighting"},

["Demon Puncher"] = {"Hitmonchan", "Shiny Hitmonchan", tpw = "unknow"}, --alterado v2.6

["Stunning Confusion"] = {"Psyduck", "Golduck", "Wobbuffet", tpw = "psychic"},

["Groundshock"] = {"Kangaskhan", tpw = "normal"},

["Electric Charge"] = {"Pikachu", "Raichu", "Shiny Raichu", tpw = "electric"},

["Melody"] = {"Wigglytuff", tpw = "normal"},

["Dragon Fury"] = {"Dratini", "Dragonair", "Dragonite", "Shiny Dratini", "Shiny Dragonair", "Shiny Dragonite", tpw = "dragon"},

["Fury"] = {"Persian", "Raticate", "Shiny Raticate", tpw = "normal"},

["Mega Drain"] = {"Oddish", "Gloom", "Vileplume", "Kabuto", "Kabutops", "Parasect", "Tangela", "Shiny Vileplume", "Shiny Tangela", tpw = "grass"},

["Spores Reaction"] = {"Oddish", "Gloom", "Vileplume", "Shiny Vileplume", tpw = "grass"},

["Amnesia"] = {"Wooper", "Quagsire", "Swinub", "Piloswine", tpw = "psychic"},

["Zen Mind"] = {"Slowking", tpw = "psychic"},

["Mirror Coat"] = {"Wobbuffet", tpw = "psychic"},

["Lifesteal"] = {"Crobat", tpw = "normal"},

["Evasion"] = {"Scyther", "Scizor", "Hitmonlee", "Hitmonchan", "Hitmontop", "Tyrogue", "Shiny Scyther", "Shiny Hitmonchan", "Shiny Hitmonlee", "Shiny Hitmontop", "Ledian", "Ledyba", "Sneasel", tpw = "normal"},

["Foresight"] = {"Machamp", "Shiny Hitmonchan", "Shiny Hitmonlee", "Shiny Hitmontop", "Hitmontop", "Hitmonlee", "Hitmonchan", tpw = "fighting"},

["Levitate"] = {"Gengar", "Haunter", "Gastly", "Misdreavus", "Weezing", "Koffing", "Unown", "Shiny Gengar", tpw = "ghost"},

}

function doShowPokedexRegistration(cid, pokemon, ball)

local item2 = pokemon

local virtual = false

if type(pokemon) == "string" then

virtual = true

end

local myball = ball

local name = virtual and pokemon or getCreatureName(item2.uid)

local v = fotos[name]

local stt = {}

table.insert(stt, "Name: "..name.."\n")

if pokes[name].type2 and pokes[name].type2 ~= "no type" then

table.insert(stt, "Type: "..pokes[name].type.."/"..pokes[name].type2.."")

else

table.insert(stt, "Type: "..pokes[name].type.."")

end

if virtual then

table.insert(stt, "\nLevel Base: "..pokes[name].level.."\n")

else

table.insert(stt, "\nRequired level: "..getPokemonLevel(item2.uid).."\n")

end

if showStatusInDex then

if virtual then

table.insert(stt, "\nStatus:\n")

local status = getPokemonStatus(name, pokes[name].level)

table.insert(stt, "•Offense: "..status.offense.."\n•Defense: "..status.defense.."\n•Agility: "..status.agility.."\n•Sp. Attack: "..status.specialattack.."\n•Vitality: "..status.vitality.."\n")

else

table.insert(stt, "\nStatus:\n")

local status = getPokemonStatus(name, getPokemonLevel(item2.uid) + getPokemonBoost(item2.uid))

table.insert(stt, "•Offense: "..status.offense.."\n•Defense: "..status.defense.."\n•Agility: "..status.agility.."\n•Sp. Attack: "..status.specialattack.."\n•Vitality: "..status.vitality.."\n")

end

end

table.insert(stt, "\n"..getPokemonEvolutionDescription(name).."\n")

table.insert(stt, "\nMoves:")

if name == "Ditto" then

if virtual then

table.insert(stt, "\nIt doesn't use any moves until transformed.")

elseif getPlayerStorageValue(item2.uid, 1010) == "Ditto" or getPlayerStorageValue(item2.uid, 1010) == -1 then

table.insert(stt, "\nIt doesn't use any moves until transformed.")

else

for a = 1, 15 do

table.insert(stt, getMoveDexDescr(item2.uid, getPlayerStorageValue(item2.uid, 1010), a).."")

end

end

else

for a = 1, 15 do

table.insert(stt, getMoveDexDescr(item2.uid, name, a).."")

end

end

for e, f in pairs(passivas) do

if isInArray(passivas[e], name) then

local tpw = passivas[e].tpw

if name == "Pineco" and passivas[e] == "Giroball" then

tpw = "bug"

end

table.insert(stt, "\n"..e.." - passive - "..tpw.."")

end

end

table.insert(stt, "\n\nAbility:\n")

local abilityNONE = true

for b, c in pairs(skills) do

if isInArray(skillcheck, b) then

if isInArray(c, name) then

table.insert(stt, (b == "levitate_fly" and "Levitate" or doCorrectString(b)).."\n")

abilityNONE = false

end

end

end

if abilityNONE then

table.insert(stt, "None")

end

if string.len(table.concat(stt)) > 8192 then

print("Erro ao fazer Informação pokedex com pokemon chamado "..name..".\n Registro de Pokedex tem mais de 8192 letras (it has "..string.len(stt).." letras), foi bloqueada para evitar erro fatal.")

doPlayerSendCancel(cid, "Ocorreu um erro, ele foi enviado para o administrador do servidor.")

return true

end

doShowTextDialog(cid, v, table.concat(stt))

end

 

\data\creaturescripts\scripts\newpokedex.lua

 

testeDex = {

{"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", 3, 1010},

{"Metapod", 10, 1011},

{"Butterfree", 30, 1012},

{"Weedle", 3, 1013},

{"Kakuna", 10, 1014},

{"Beedrill", 30, 1015},

{"Pidgey", 5, 1016},

{"Pidgeotto", 20, 1017},

{"Pidgeot", 60, 1018},

{"Rattata", 3, 1019},

{"Raticate", 20, 1020},

{"Spearow", 5, 1021},

{"Fearow", 50, 1022},

{"Ekans", 12, 1023},

{"Arbok", 30, 1024},

{"Pikachu", 20, 1025},

{"Raichu", 50, 1026},

{"Sandshrew", 18, 1027},

{"Sandslash", 55, 1028},

{"Nidoran Female", 10, 1029},

{"Nidorina", 25, 1030},

{"Nidoqueen", 65, 1031},

{"Nidoran Male", 10, 1032},

{"Nidorino", 25, 1033},

{"Nidoking", 65, 1034},

{"Clefairy", 10, 1035},

{"Clefable", 35, 1036},

{"Vulpix", 16, 1037},

{"Ninetales", 65, 1038},

{"Jigglypuff", 10, 1039},

{"Wigglytuff", 42, 1040},

{"Zubat", 5, 1041},

{"Golbat", 30, 1042},

{"Oddish", 5, 1043},

{"Gloom", 18, 1044},

{"Vileplume", 50, 1045},

{"Paras", 5, 1046},

{"Parasect", 40, 1047},

{"Venonat", 14, 1048},

{"Venomoth", 40, 1049},

{"Diglett", 5, 1050},

{"Dugtrio", 35, 1051},

{"Meowth", 12, 1052},

{"Persian", 25, 1053},

{"Psyduck", 12, 1054},

{"Golduck", 55, 1055},

{"Mankey", 10, 1056},

{"Primeape", 45, 1057},

{"Growlithe", 16, 1058},

{"Arcanine", 70, 1059},

{"Poliwag", 5, 1060},

{"Poliwhirl", 20, 1061},

{"Poliwrath", 60, 1062},

{"Abra", 12, 1063},

{"Kadabra", 40, 1064},

{"Alakazam", 70, 1065},

{"Machop", 16, 1066},

{"Machoke", 38, 1067},

{"Machamp", 70, 1068},

{"Bellsprout", 5, 1069},

{"Weepinbell", 18, 1070},

{"Victreebel", 50, 1071},

{"Tentacool", 12, 1072},

{"Tentacruel", 70, 1073},

{"Geodude", 15, 1074},

{"Graveler", 40, 1075},

{"Golem", 70, 1076},

{"Ponyta", 15, 1077},

{"Rapidash", 55, 1078},

{"Slowpoke", 12, 1079},

{"Slowbro", 45, 1080},

{"Magnemite", 15, 1081},

{"Magneton", 38, 1082},

{"Farfetch'd", 35, 1083},

{"Doduo", 12, 1084},

{"Dodrio", 42, 1085},

{"Seel", 14, 1086},

{"Dewgong", 55, 1087},

{"Grimer", 12, 1088},

{"Muk", 30, 1089},

{"Shellder", 5, 1090},

{"Cloyster", 65, 1091},

{"Gastly", 14, 1092},

{"Haunter", 40, 1093},

{"Gengar", 70, 1094},

{"Onix", 50, 1095},

{"Drowzee", 18, 1096},

{"Hypno", 50, 1097},

{"Krabby", 5, 1098},

{"Kingler", 35, 1099},

{"Voltorb", 14, 1100},

{"Electrode", 38, 1101},

{"Exeggcute", 8, 1102},

{"Exeggutor", 48, 1103},

{"Cubone", 18, 1104},

{"Marowak", 45, 1105},

{"Hitmonlee", 60, 1106},

{"Hitmonchan", 60, 1107},

{"Lickitung", 45, 1108},

{"Koffing", 15, 1109},

{"Weezing", 30, 1110},

{"Rhyhorn", 35, 1111},

{"Rhydon", 65, 1112},

{"Chansey", 50, 1113},

{"Tangela", 35, 1114},

{"Kangaskhan", 65, 1115},

{"Horsea", 5, 1116},

{"Seadra", 40, 1117},

{"Goldeen", 10, 1118},

{"Seaking", 25, 1119},

{"Staryu", 15, 1120},

{"Starmie", 38, 1121},

{"Mr. Mime", 45, 1122},

{"Scyther", 60, 1123},

{"Jynx", 55, 1124},

{"Electabuzz", 60, 1125},

{"Magmar", 60, 1126},

{"Pinsir", 42, 1127},

{"Tauros", 40, 1128},

{"Magikarp", 1, 1129},

{"Gyarados", 75, 1130},

{"Lapras", 65, 1131},

{"Ditto", 40, 1132},

{"Eevee", 20, 1133},

{"Vaporeon", 55, 1134},

{"Jolteon", 55, 1135},

{"Flareon", 55, 1136},

{"Porygon", 45, 1137},

{"Omanyte", 20, 1138},

{"Omastar", 70, 1139},

{"Kabuto", 20, 1140},

{"Kabutops", 70, 1141},

{"Aerodactyl", 85, 1142},

{"Snorlax", 85, 1143},

{"Articuno", 100, 1144},

{"Zapdos", 100, 1145},

{"Moltres", 100, 1146},

{"Dratini", 15, 1147},

{"Dragonair", 45, 1148},

{"Dragonite", 85, 1149},

{"Mewtwo", 100, 1150},

{"Mew", 100, 1151},

{"Shiny Venusaur", 75, 10030},

{"Shiny Charizard", 75, 10060},

{"Shiny Blastoise", 75, 10090},

{"Shiny Butterfree", 30, 10120},

{"Shiny Beedrill", 30, 10150},

{"Shiny Pidgeot", 60, 10180},

{"Shiny Rattata", 3, 10190},

{"Shiny Raticate", 20, 10200},

{"Shiny Fearow", 50, 10220},

{"Shiny Raichu", 50, 10260},

{"Shiny Nidoking", 65, 10340},

{"Shiny Zubat", 5, 10410},

{"Shiny Golbat", 30, 10420},

{"Shiny Oddish", 5, 10430},

{"Shiny Vileplume", 50, 10450},

{"Shiny Paras", 5, 10460},

{"Shiny Parasect", 40, 10470},

{"Shiny Venonat", 14, 10480},

{"Shiny Venomoth", 40, 10490},

{"Shiny Growlithe", 16, 10580},

{"Shiny Arcanine", 70, 10590},

{"Shiny Abra", 12, 10630},

{"Shiny Alakazam", 70, 10650},

{"Shiny Tentacool", 12, 10720},

{"Shiny Tentacruel", 70, 10730},

{"Shiny Golem", 70, 10760},

{"Shiny Farfetch'd", 35, 10830},

{"Shiny Grimer", 12, 10880},

{"Shiny Muk", 30, 10890},

{"Shiny Gengar", 70, 10940},

{"Shiny Onix", 50, 10950},

{"Shiny Hypno", 50, 10970},

{"Shiny Krabby", 5, 10980},

{"Shiny Kingler", 35, 10990},

{"Shiny Voltorb", 14, 11000},

{"Shiny Electrode", 38, 11010},

{"Shiny Cubone", 18, 11040},

{"Shiny Marowak", 45, 11050},

{"Shiny Hitmonlee", 60, 11060},

{"Shiny Hitmonchan", 60, 11070},

{"Shiny Tangela", 35, 11140},

{"Shiny Horsea", 5, 11160},

{"Shiny Seadra", 40, 11170},

{"Shiny Scyther", 60, 11230},

{"Shiny Jynx", 55, 11240},

{"Shiny Electabuzz", 60, 11250},

{"Shiny Pinsir", 42, 11270},

{"Shiny Magikarp", 1, 11290},

{"Shiny Gyarados", 75, 11300},

{"Shiny Vaporeon", 55, 11340},

{"Shiny Jolteon", 55, 11350},

{"Shiny Flareon", 55, 11360},

{"Shiny Snorlax", 85, 11430},

{"Shiny Dratini", 15, 11470},

{"Shiny Dragonair", 45, 11480},

{"Shiny Dragonite", 85, 11490},

{"Chikorita", 18, 1152},

{"Bayleef", 38, 1153},

{"Meganium", 75, 1154},

{"Cyndaquil", 18, 1155},

{"Quilava", 38, 1156},

{"Typhlosion", 75, 1157},

{"Totodile", 18, 1158},

{"Croconaw", 38, 1159},

{"Feraligatr", 75, 1160},

{"Sentret", 3, 1161},

{"Furret", 28, 1162},

{"Hoothoot", 3, 1163},

{"Noctowl", 65, 1164},

{"Ledyba", 12, 1165},

{"Ledian", 30, 1166},

{"Spinarak", 15, 1167},

{"Ariados", 42, 1168},

{"Crobat", 70, 1169},

{"Chinchou", 14, 1170},

{"Lanturn", 38, 1171},

{"Pichu", 3, 1172},

{"Cleffa", 3, 1173},

{"Igglybuff", 3, 1174},

{"Togepi", 10, 1175},

{"Togetic", 45, 1176},

{"Natu", 15, 1177},

{"Xatu", 45, 1178},

{"Mareep", 12, 1179},

{"Flaaffy", 30, 1180},

{"Ampharos", 65, 1181},

{"Bellossom", 50, 1182},

{"Marill", 14, 1183},

{"Azumarill", 28, 1184},

{"Sudowoodo", 46, 1185},

{"Politoed", 60, 1186},

{"Hoppip", 10, 1187},

{"Skiploom", 20, 1188},

{"Jumpluff", 30, 1189},

{"Aipom", 10, 1190},

{"Sunkern", 3, 1191},

{"Sunflora", 50, 1192},

{"Yanma", 32, 1193},

{"Wooper", 18, 1194},

{"Quagsire", 55, 1195},

{"Espeon", 55, 1196},

{"Umbreon", 55, 1197},

{"Murkrow", 35, 1198},

{"Slowking", 60, 1199},

{"Misdreavus", 47, 1200},

{"Unown", 15, 1201},

{"Wobbuffet", 42, 1202},

{"Girafarig", 42, 1203},

{"Pineco", 18, 1204},

{"Forretress", 55, 1205},

{"Dunsparce", 35, 1206},

{"Gligar", 30, 1207},

{"Steelix", 75, 1208},

{"Snubbull", 20, 1209},

{"Granbull", 42, 1210},

{"Qwilfish", 16, 1211},

{"Scizor", 75, 1212},

{"Shuckle", 10, 1213},

{"Heracross", 60, 1214},

{"Sneasel", 50, 1215},

{"Teddiursa", 20, 1216},

{"Ursaring", 70, 1217},

{"Slugma", 18, 1218},

{"Magcargo", 40, 1219},

{"Swinub", 12, 1220},

{"Piloswine", 70, 1221},

{"Corsola", 42, 1222},

{"Remoraid", 14, 1223},

{"Octillery", 38, 1224},

{"Delibird", 25, 1225},

{"Mantine", 50, 1226},

{"Skarmory", 70, 1227},

{"Houndour", 18, 1228},

{"Houndoom", 70, 1229},

{"Kingdra", 75, 1230},

{"Phanpy", 12, 1231},

{"Donphan", 45, 1232},

{"Porygon2", 60, 1233},

{"Stantler", 35, 1234},

{"Smeargle", 28, 1235},

{"Tyrogue", 15, 1236},

{"Hitmontop", 60, 1237},

{"Smoochum", 3, 1238},

{"Elekid", 3, 1239},

{"Magby", 3, 1240},

{"Miltank", 32, 1241},

{"Blissey", 70, 1242},

{"Raikou", 100, 1243},

{"Entei", 100, 1244},

{"Suicune", 100, 1245},

{"Larvitar", 10, 1246},

{"Pupitar", 50, 1247},

{"Tyranitar", 90, 1248},

{"Lugia", 100, 1249},

{"Ho-oh", 100, 1250},

{"Celebi", 100, 1251},

{"Shiny Hitmontop", 100, 11520},

{"Shiny Mr. Mime", 45, 11521},

{"Shiny Ninetales", 65, 11522},

{"Shiny Ariados", 42, 11523},

{"Shiny Magneton", 38, 11524},

{"Shiny Espeon", 55, 11525},

{"Shiny Politoed", 60, 11526},

{"Shiny Umbreon", 55, 11527},

{"Shiny Stantler", 35, 11528},

{"Shiny Dodrio", 42, 11529},

{"Shiny Rhydon", 65, 11530},

{"Shiny Weezing", 100, 1006},

{"Shiny Sandslash", 100, 1007},

{"Shiny Crobat", 100, 1008},

{"Shiny Magmar", 100, 1009},

{"Giant Magikarp", 10, 1010},

{"Shiny Giant Magikarp", 30, 1011},

{"Shiny Ampharos", 100, 11531},

{"Shiny Feraligatr", 100, 11532},

{"Shiny Larvitar", 100, 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},

}

function onJoinChannel(cid, channelId, users, isTv)

for i = 10001, 10264 do

local z = tonumber(i - 10000)

local myball = getPlayerSlotItem(cid, 8).uid

if channelId == i then

if getPlayerInfoAboutPokemon(cid, testeDex[z][1]).dex then

doShowPokedexRegistration(cid, testeDex[z][1], myball)

else

doPlayerSendTextMessage(cid, 27, "Você não descobriu esse pokémon ainda!")

doPlayerSetVocation(cid, 9)

openChannelDialog(cid)

end

return false

end

end

return true

end

function onLeaveChannel(cid, channelId, users)

for i = 10001, 10264 do

if channelId == i then

doPlayerSetVocation(cid, 1)

end

end

end

 

Obs: Desculpem se criei errado o Topico

 

Espero que me ajudem!!! Obrigado!!! 

 

REP+ pra quem ajuda

Alguem ajuda ?

alguem ajuda ae 

@up

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.7k

Informação Importante

Confirmação de Termo