Ir para conteúdo

[Encerrado] Erros do server.


fabiosa

Posts Recomendados

Então galera criei esse tópico com o intuito de eu posta aqui os erros do meu server para vocês poderem me ajudar.

Lembrando server open source.

 

Pokemon steelix.

[22/08/2015 03:33:58] [Error - Action Interface]
[22/08/2015 03:33:58] In a timer event called from:
[22/08/2015 03:33:58] data/actions/scripts/goback.lua:onUse
[22/08/2015 03:33:58] Description:

[22/08/2015 03:33:58] (luaGetCreatureName) Creature not found

 

goback

 

local backMSG = {"Come back, doka!", "Thanks for helping, doka!", "That's enough, come back!", "You were great, doka!", "Excellent work, doka!", "Well done, doka!"}
local goMSG = {"Go, doka!", "Let's do it, doka!", "I choose you, doka!", "I need your help, doka!", "Let's fight, doka!", "It's battle time, doka!"}

function onUse(cid, item, frompos, item2, topos)
if #getCreatureSummons(cid) >= 1 and getPlayerStorageValue(getCreatureSummons(cid)[1], 33) >= 1 then
return true
end
--------
msgunicaback = backMSG[math.random(#backMSG)]
msgunicago = goMSG[math.random(#goMSG)]
btype = getPokeballType(item.itemid)
usando = pokeballs[btype].use
online = pokeballs[btype].on
morto = pokeballs[btype].off
if isIconeSystem(cid) then
effect = getItemAttribute(item.uid, "effect")
else
effect = getItemAttribute(item.uid, "effect")
end
--------

if item.itemid == usando then
if #getCreatureSummons(cid) >= 1 then
local z = getCreatureSummons(cid)[1]
local pokename = getCreatureName(z)
local mbk = msgunicaback:gsub("doka", pokename)
if getItemAttribute(item.uid, "poke"):find(getCreatureName(z)) then
doTransformItem(item.uid, item.itemid-1)
doCreatureSay(cid, mbk, TALKTYPE_SAY)
local summom = getCreatureSummons(cid)
local maxh = pokes[getCreatureName(summom[1])].vida
local pct2 = ((getCreatureHealth(summom[1])) / (getCreatureMaxHealth(summom[1])))
local vids = ((getCreatureHealth(summom[1])) - 2)
doCreatureAddHealth(summom[1], -vids)
setCreatureMaxHealth(summom[1], maxh)
doCreatureAddHealth(summom[1], ((maxh) * (pct2)))
if math.random(1,100) <= 35 then
setPokemonFeed(cid, getPokemonFeed(cid)-15) -- Food system
end
doItemSetAttribute(item.uid, "poke", getItemAttribute(item.uid, "poke"):sub(1, findLetter(getItemAttribute(item.uid, "poke"), ".")) .. " HP = ["..getCreatureHealth(z).."/"..getCreatureMaxHealth(z).."]")
setPlayerStorageValue(cid, 61204, 0)
setPlayerStorageValue(cid, 2, 0)
doSendMagicEffect(getCreaturePosition(z), effect)
doRemoveCreature(z)
if useOTClient then
doPlayerSendCancel(cid, '12//,hide')
end
if useKpdoDlls then
doUpdateMoves(cid)
end
if getPlayerStorageValue(cid, 991) >= 1 then --- Ginasios
doSendAnimatedText(getThingPos(cid), "POKEOUT", 181)
setPlayerStorageValue(cid, 991, getPlayerStorageValue(cid, 991) -1)
end
return true
end
end
elseif item.itemid == morto then
return doPlayerSendCancel(cid, "This pokemon is fainted.")

elseif item.itemid == online then
if isZumbie(cid) or isHuman(cid) then
return doPlayerSendCancel(cid, "Sorry, is not possible.")
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


if not canSummon(cid) then
return doPlayerSendDefaultCancel(cid, RETURNVALUE_NOTENOUGHROOM)
end

if getPlayerStorageValue(cid, 63215) >= 1 then
return doPlayerSendCancel(cid, "You can't use pokeball while surfing.")
end

if getPlayerStorageValue(cid, 62314) >= 1 then
return doPlayerSendCancel(cid, "You can't use pokeball while flying.")
end

if #getCreatureSummons(cid) >= 1 then
return doPlayerSendCancel(cid, "You have already summoned a pokemon.")
end

for i,x in pairs(pokes) do
if i == getItemAttribute(item.uid, "poke"):sub(9, findLetter(getItemAttribute(item.uid, "poke"), "'")-1) then

if getPlayerLevel(cid) < x.level+getPokemonBoostt(item.uid) then
doPlayerSendCancel(cid, "You need level "..x.level+getPokemonBoostt(item.uid).." or higher to use this pokemon.")
return true
end
local removed = doCreateItem(1285, 1, getThingPos(cid))
doSummonMonster(cid, i)
local pk = getCreatureSummons(cid)[1]
doTeleportThing(pk, getClosestFreeTile(pk, getThingPos(cid)), false)
doRemoveItem(removed, 1)
doCreatureSetLookDir(pk, 2)
local maxh = pokes[getCreatureName(pk)].vida
local levellife = ((getPlayerLevel(cid)) *2+ getPokemonBoost(getPlayerSlotItem(cid,8).uid))
local health = tonumber(getItemAttribute(item.uid, "poke"):match("%[(.-)/"))
doConvinceCreature(cid, pk)
doCreatureAddHealth(pk, health-maxh)
local pct = ((getCreatureHealth(pk)) / (getCreatureMaxHealth(pk)))
local vidis = (getCreatureHealth(pk))
setCreatureMaxHealth(pk, ((maxh) + (levellife)))
doCreatureAddHealth(pk, 2)
doCreatureAddHealth(pk, -vidis)
doCreatureAddHealth(pk, ((getCreatureMaxHealth(pk)) * (pct)) - 2)
doTransformItem(item.uid, item.itemid+1)
local pokename = getCreatureName(getCreatureSummons(cid)[1])
local mgo = msgunicago:gsub("doka", pokename)
doCreatureSay(cid, mgo, TALKTYPE_SAY)
if useOTClient then
doPlayerSendCancel(cid, '12//,show') --alterado 2.0 Valakinhas
end
if useKpdoDlls then
doUpdateMoves(cid)
end
if math.random(1,100) <= 35 then
setPokemonFeed(cid, getPokemonFeed(cid)-5) -- Food system
end
doSendFeedEffect(cid)
if getItemAttribute(item.uid, "nome") ~= "Ditto" then
for i = 1, 12 do
if not getMoveNamee(cid, i) then
addEvent(doGoBackSetCooldown, 200, cid)
end
end
else
for a = 1, 12 do
setPokemonCooldown(cid, a, "Don't have this move.")
end
end
----- Burn, venom e ice system ------
getBurn(cid)
getVenom(cid)
getIce(cid)
----- Burn, venom e ice system ------
doItemSetAttribute(item.uid, "poke", getItemAttribute(item.uid, "poke"):sub(1, findLetter(getItemAttribute(item.uid, "poke"), ".")))
doItemSetAttribute(item.uid, "pokes", ""..pokename.."")
doSendMagicEffect(getCreaturePosition(pk), effect)
setPlayerStorageValue(cid, 61204, 1)
registerCreatureEvent(pk, "DiePoke")
registerCreatureEvent(pk, "Exp")


if getPlayerStorageValue(cid, 991) >= 1 then --- Ginasios
doSendAnimatedText(getThingPos(cid), "POKEIN", TEXTCOLOR_LIGHTBLUE)
end

break
end
end
end
return TRUE
end

 

 

Pokemon Ursaring.

[22/08/2015 03:36:11] [Error - Spell Interface]
[22/08/2015 03:36:11] data/spells/scripts/poke/strafe.lua:onCastSpell
[22/08/2015 03:36:11] Description:
[22/08/2015 03:36:11] (luaDoCreatureSay) Creature not found
[22/08/2015 03:36:20] [Error - Action Interface]
[22/08/2015 03:36:20] data/actions/scripts/pokemon/pokedex.lua:onUse
[22/08/2015 03:36:20] Description:
[22/08/2015 03:36:20] data/actions/scripts/pokemon/pokedex.lua:312: attempt to index local 'Dex' (a nil value)
[22/08/2015 03:36:20] stack traceback:
[22/08/2015 03:36:21] data/actions/scripts/pokemon/pokedex.lua:312: in function <data/actions/scripts/pokemon/pokedex.lua:1>
strafe.lua

local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_RED)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false)

local condition = createConditionObject(CONDITION_HASTE)
setConditionParam(condition, CONDITION_PARAM_TICKS, 8500)
setConditionFormula(condition, 1, -70, 1, -70)
setCombatCondition(combat, condition)

function onCastSpell(cid, var)
if getPlayerStorageValue(cid, 898) == 1 then
return true
end
if getPlayerStorageValue(cid, 202) >= 1 or isSummon(cid) then
doCreatureSay(getCreatureByName(getPlayerStorageValue(cid, 201)), ""..getCreatureName(cid)..", strafe!", TALKTYPE_SAY)
end
if getCreatureCondition(cid, CONDITION_HASTE) == true then
return true
end
if getCreatureName(cid) == "Doduo" or getCreatureName(cid) == "Dodrio" or getCreatureName(cid) == "Charmeleon" or getCreatureName(cid) == "Charizard" then
doCreatureSay(cid, "RAGE!", TALKTYPE_MONSTER)
else
doCreatureSay(cid, "STRAFE!", TALKTYPE_MONSTER)
end
local function haste(params)
if isMonster(params.cid) then
doSendMagicEffect(getThingPos(params.cid), CONST_ME_MAGIC_GREEN)
else
end
end
local function normal(params)
if isCreature(params.cid) then
if getCreatureName(params.cid) == "Doduo" or getCreatureName(params.cid) == "Dodrio" then
doChangeSpeed(cid, -100)
end
end
end
if getCreatureName(cid) == "Doduo" or getCreatureName(cid) == "Dodrio" then
doChangeSpeed(cid, 100)
else
doCombat(cid, combat, var)
end
addEvent(haste, 900, {cid = cid})
addEvent(haste, 1800, {cid = cid})
addEvent(haste, 2700, {cid = cid})
addEvent(haste, 3600, {cid = cid})
addEvent(haste, 4550, {cid = cid})
addEvent(haste, 5400, {cid = cid})
addEvent(haste, 6300, {cid = cid})
addEvent(haste, 7200, {cid = cid})
addEvent(haste, 8100, {cid = cid})
addEvent(normal, 8100, {cid = cid})
return true
end

pokedex.lua

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


function isSummon(sid)
for i, pid in ipairs(getPlayersOnline()) do
for c, cid in pairs(getCreatureSummons(pid)) do
if (cid == sid) then
return true
end
end
end
return false
end

local pokemon = itemEx.uid
local pokemons = {
{"Bulbasaur", 20, 1001},
{"Ivysaur", 40, 1002},
{"Venusaur", 75, 1003},
{"Charmander", 20, 1004},
{"Charmeleon", 40, 1005},
{"Charizard", 75, 1006},
{"Squirtle", 20, 1007},
{"Wartortle", 40, 1008},
{"Blastoise", 75, 1009},
{"Caterpie", 5, 1010},
{"Metapod", 10, 1011},
{"Butterfree", 30, 1012},
{"Weedle", 5, 1013},
{"Kakuna", 10, 1014},
{"Beedrill", 30, 1015},
{"Pidgey", 5, 1016},
{"Pidgeotto", 20, 1017},
{"Pidgeot", 65, 1018},
{"Rattata", 5, 1019},
{"Raticate", 20, 1020},
{"Spearow", 5, 1021},
{"Fearow", 50, 1022},
{"Ekans", 12, 1023},
{"Arbok", 30, 1024},
{"Pikachu", 20, 1025},
{"Raichu", 45, 1026},
{"Sandshrew", 18, 1027},
{"Sandslash", 55, 1028},
{"nidoranfe", 10, 1029},
{"Nidorina", 25, 1030},
{"Nidoqueen", 65, 1031},
{"nidoranma", 10, 1032},
{"Nidorino", 25, 1033},
{"Nidoking", 65, 1034},
{"Clefairy", 10, 1035},
{"Clefable", 35, 1036},
{"Vulpix", 20, 1037},
{"Ninetales", 65, 1038},
{"Jigglypuff", 10, 1039},
{"Wigglytuff", 42, 1040},
{"Zubat", 10, 1041},
{"Golbat", 30, 1042},
{"Oddish", 5, 1043},
{"Gloom", 10, 1044},
{"Vileplume", 50, 1045},
{"Paras", 5, 1046},
{"Parasect", 50, 1047},
{"Venonat", 18, 1048},
{"Venomoth", 50, 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", 20, 1058},
{"Arcanine", 75, 1059},
{"Poliwag", 5, 1060},
{"Poliwhirl", 20, 1061},
{"Poliwrath", 65, 1062},
{"Abra", 15, 1063},
{"Kadabra", 45, 1064},
{"Alakazam", 75, 1065},
{"Machop", 18, 1066},
{"Machoke", 40, 1067},
{"Machamp", 65, 1068},
{"Bellsprout", 5, 1069},
{"Weepinbell", 27, 1070},
{"Victreebel", 50, 1071},
{"Tentacool", 12, 1072},
{"Tentacruel", 70, 1073},
{"Geodude", 12, 1074},
{"Graveler", 40, 1075},
{"Golem", 65, 1076},
{"Ponyta", 20, 1077},
{"Rapidash", 60, 1078},
{"Slowpoke", 12, 1079},
{"Slowbro", 45, 1080},
{"Magnemite", 15, 1081},
{"Magneton", 40, 1082},
{"Farfetchd", 40, 1083},
{"Doduo", 12, 1084},
{"Dodrio", 45, 1085},
{"Seel", 20, 1086},
{"Dewgong", 65, 1087},
{"Grimer", 12, 1088},
{"Muk", 30, 1089},
{"Shellder", 5, 1090},
{"Cloyster", 65, 1091},
{"Gastly", 18, 1092},
{"Haunter", 45, 1093},
{"Gengar", 80, 1094},
{"Onix", 50, 1095},
{"Drowzee", 22, 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", 55, 1106},
{"Hitmonchan", 55, 1107},
{"Lickitung", 45, 1108},
{"Koffing", 15, 1109},
{"Weezing", 30, 1110},
{"Rhyhorn", 35, 1111},
{"Rhydon", 55, 1112},
{"Chansey", 50, 1113},
{"Tangela", 20, 1114},
{"Kangaskhan", 60, 1115},
{"Horsea", 5, 1116},
{"Seadra", 45, 1117},
{"Goldeen", 10, 1118},
{"Seaking", 25, 1119},
{"Staryu", 15, 1120},
{"Starmie", 45, 1121},
{"MrMime", 60, 1122},
{"Scyther", 70, 1123},
{"Jynx", 65, 1124},
{"Electabuzz", 70, 1125},
{"Magmar", 70, 1126},
{"Pinsir", 42, 1127},
{"Tauros", 40, 1128},
{"Magikarp", 1, 1129},
{"Gyarados", 75, 1130},
{"Shiny Gyarados", 175, 167},
{"Lapras", 70, 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", 110, 1142},
{"Snorlax", 85, 1143},
{"Articuno", 150, 1144},
{"Zapdos", 150, 1145},
{"Moltres", 150, 1146},
{"Dratini", 10, 1147},
{"Dragonair", 70, 1148},
{"Dragonite", 110, 1149},
{"Mewtwo", 150, 1150},
{"Mew", 150, 1151},
--johto versao 2.0 valakinhas
{"Chikorita", 20, 10148},
{"Bayleef", 40, 10144},
{"Meganium", 75, 10189},
{"Cyndaquil", 20, 10154},
{"Quilava", 40, 10204},
{"Typhlosion", 75, 10231},
{"Totodile", 20, 10230},
{"Croconaw", 40, 10153},
{"Feraligatr", 75, 10162},
{"Sentret", 15, 10218},
{"Furret", 25, 10165},
{"Hoothoot", 20, 10172},
{"Noctowl", 40, 10194},
{"Ledyba", 15, 10182},
{"Ledian", 25, 10181},
{"Spinarak", 15, 10219},
{"Ariados", 25, 10142},
{"Crobat", 80, 10152},
{"Chinchou", 24, 10148},
{"Lanturn", 45, 10180},
{"Pichu", 10, 10197},
{"Cleffa", 15, 10150},
{"Igglypuff", 15, 10176},
{"Togepi", 30, 10228},
{"Togetic", 50, 10229},
{"Natu", 20, 10193},
{"Xatu", 45, 10239},
{"Mareep", 20, 10187},
{"Flaaffy", 50, 10163},
{"Ampharos", 75, 10141},
{"Belossom", 50, 10145},
{"Marill", 25, 10188},
{"Azumarill", 67, 10146},
{"Sudowoodo", 50, 10222},
{"Politoed", 60, 10200},
{"Hoppip", 15, 10173},
{"Skiploom", 35, 10212},
{"Jumpluff", 45, 10177},
{"Aipom", 30, 9995},
{"Sunkern", 15, 10225},
{"Sunflora", 40, 10224},
{"Yanma", 25, 10240},
{"Wooper", 30, 10238},
{"Quagsire", 50, 10203},
{"Espeon", 55, 10161},
{"Umbreon", 55, 10234},
{"Murkrow", 39, 10192},
{"Slowking", 20, 10222},
{"Misdreavus", 45, 10191},
{"Unown a", 40, 10235},
{"Unown b", 40, 10590},
{"Unown c", 40, 10591},
{"Unown d", 40, 10592},
{"Unown e", 40, 10593},
{"Unown f", 40, 10594},
{"Unown g", 40, 10595},
{"Unown h", 40, 10596},
{"Unown i", 40, 10597},
{"Unown j", 40, 10598},
{"Unown k", 40, 10599},
{"Unown l", 40, 10600},
{"Unown m", 40, 10601},
{"Unown n", 40, 10602},
{"Unown o", 40, 10603},
{"Unown p", 40, 10604},
{"Unown q", 40, 10605},
{"Unown r", 40, 10606},
{"Unown s", 40, 10607},
{"Unown t", 40, 10608},
{"Unown u", 40, 10609},
{"Unown v", 40, 10610},
{"Unown x", 40, 10614},
{"Unown w", 40, 10611},
{"Unown y", 40, 10612},
{"Unown z", 40, 10613},
{"Wobbuffet", 50, 10237},
{"Girafarig", 55, 10166},
{"Pineco", 20, 10199},
{"Forretress", 50, 10164},
{"Dunsparce", 36, 10158},
{"Gligar", 25, 10167},
{"Steelix", 80, 10221},
{"Snubull", 25, 10218},
{"Granbull", 45, 10168},
{"Qwilfish", 30, 10205},
{"Scizor", 90, 10208},
{"Shuckle", 38, 10210},
{"Heracross", 47, 10169},
{"Sneasel", 55, 10219},
{"Teddiursa", 35, 10227},
{"Ursaring", 75, 10236},
{"Slugma", 25, 10214},
{"Magcargo", 60, 10185},
{"Swinub", 30, 10226},
{"Piloswine", 70, 10198},
{"Corsola", 35, 10151},
{"Remoraid", 30, 10207},
{"Octillery", 56, 10195},
{"Delibird", 50, 10156},
{"Mantine", 55, 10186},
{"Skarmory", 60, 10211},
{"Houndour", 36, 10175},
{"Houndoom", 57, 10174},
{"Kingdra", 75, 10178},
{"Phanpy", 34, 10196},
{"Donphan", 65, 10157},
{"Porygon2", 120, 10201},
{"Stantler", 75, 10220},
{"Smeargle Virgem", 55, 10215},
{"Tyrogue", 55, 10233},
{"Himontop", 55, 10170},
{"Smoochum", 30, 10216},
{"Elekid", 40, 10159},
{"Magby", 30, 10184},
{"Miltank", 65, 10190},
{"Blissey", 75, 10146},
{"Raikou", 150, 10206},
{"Entei", 150, 10160},
{"Suicune", 150, 10223},
{"Larvitar", 25, 10180},
{"Pupitar", 55, 10202},
{"Tyranitar", 80, 10232},
{"Lugia", 150, 10183},
{"Ho-oh", 150, 10171},
{"Celebi", 150, 10147},
}

for _,n in pairs(pokemons) do
if isSummon(pokemon) then
if getCreatureName(pokemon) == n[1] and getPlayerLevel(cid) >= n[2] and getPlayerStorageValue(cid, n[3]) <= 0 then
j = (n[2]) *10
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You have unlocked " .. n[1] .. " in your pokedex!")
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You have gained " .. j .. " experience points.")
doSendMagicEffect(getThingPos(cid), 210)
doPlayerAddExperience(cid, (n[2])*10)
setPlayerStorageValue(cid, n[3], 1)
elseif getCreatureName(pokemon) == n[1] and getPlayerLevel(cid) < n[2] and getPlayerStorageValue(cid, n[3]) <= 0 then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You need to be at least level " .. n[2] .. " to unlock this pokemon.")
elseif getCreatureName(pokemon) == n[1] and getPlayerStorageValue(cid, n[3]) >= 1 then
local v = ((n[3]) + 1376)
local dexstring = ""..n[1]..".txt"
local Dex = io.open('data/pokedex/'..dexstring, 'r')
doShowTextDialog(cid, (v), Dex:read("*all"))
Dex:close()
end
elseif isMonster(pokemon) then
if getCreatureName(pokemon) == n[1] and getPlayerStorageValue(cid, n[3]) <= 0 then
j = (n[2]) *10
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You have unlocked " .. n[1] .. " in your pokedex!")
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You have gained " .. j .. " experience points.")
doSendMagicEffect(getThingPos(cid), 210)
doPlayerAddExperience(cid, (n[2])*10)
setPlayerStorageValue(cid, n[3], 1)
elseif getCreatureName(pokemon) == n[1] and getPlayerStorageValue(cid, n[3]) >= 1 then
local v = ((n[3]) + 1376)
local dexstring = ""..n[1]..".txt"
local Dex = io.open('data/pokedex/'..dexstring, 'r')
doShowTextDialog(cid, v, Dex:read("*all"))
Dex:close()
end
end
end

local store = {1001, 1002, 1003, 1004, 1005, 1006, 1007, 1008, 1009, 1010, 1011, 1012, 1013, 1014, 1015, 1016, 1017, 1018, 1019, 1020, 1021, 1022, 1023, 1024, 1025, 1026, 1027, 1028, 1029, 1030, 1031, 1032, 1033, 1034, 1035, 1036, 1037, 1038, 1039, 1040, 1041, 1042, 1043, 1044, 1045, 1046, 1047, 1048, 1049, 1050, 1051, 1052, 1053, 1054, 1055, 1056, 1057, 1058, 1059, 1060, 1061, 1062, 1063, 1064, 1065, 1066, 1067,
1068, 1069, 1070, 1071, 1072, 1073, 1074, 1075, 1076, 1077, 1078, 1079, 1080, 1081, 1082, 1083, 1084, 1085, 1086, 1087, 1088, 1089, 1090, 1091, 1092, 1093, 1094, 1095, 1096, 1097, 1098, 1099, 1100, 1101, 1102, 1103, 1104, 1105, 1106, 1107, 1108, 1109, 1110, 1111, 1112, 1113, 1114, 1115, 1116, 1117, 1118, 1119, 1120, 1121, 1122, 1123, 1124, 1125, 1126, 1127, 1128, 1129, 1130, 1131, 1132, 1133, 1134, 1135, 1136, 1137,
1138, 1139, 1140, 1141, 1142, 1143, 1144, 1145, 1146, 1147, 1148, 1149, 1150, 1151, 1155, 10148, 10144, 10189, 10154, 10204, 10231, 10230, 10153, 10162, 10218, 10165, 10172, 10194, 10182, 10181, 10219, 10142, 10152, 10148, 10180, 10197, 10150, 10176, 10228, 10229, 10193, 10239, 10187, 10163, 10141, 10145, 10188, 10146, 10222, 10200, 10173, 10212, 10177, 9995, 10225, 10224, 10240, 10238, 10203, 10161, 10234, 10192, 10222, 10191, 10235, 10590, 10591, 10592, 10593, 10594, 10595,
10596, 10597, 10598, 10599, 10600, 10601, 10602, 10603, 10604, 10605, 10606, 10607, 10608, 10609, 10610, 10614, 10611, 10612, 10613, 10237, 10166, 10199, 10164, 10158, 10167, 10221, 10218, 10168, 10205, 10208, 10210, 10169, 10219, 10227, 10236, 10214, 10185, 10226, 10198, 10151, 10207, 10195, 10156, 10186, 10211, 10175, 10174, 10178, 10196, 10157, 10201, 10220, 10215, 10233, 10170, 10216, 10159, 10184, 10190, 10146, 10206, 10160, 10223, 10180, 10202, 10232, 10183, 10171, 10147}

local unlock = {}
if not isCreature(itemEx.uid) then
return true
end
for i = 1, #store do
if getPlayerStorageValue(itemEx.uid, store) > 0 then
table.insert(unlock, 1)
end
end

if isPlayer(itemEx.uid) then
setPlayerStorageValue(cid, 7274, 1)
if getCreatureName(cid) == getCreatureName(itemEx.uid) then
doPlayerSendTextMessage(cid, 27, "You have unlocked " .. #unlock .. " pokemons already.")
doPlayerSendTextMessage(cid, 27, "You can open a pokedex entry by typing \"/dex \". Example: \"/dex Pikachu\".")
else
doPlayerSendTextMessage(cid, 27, getPlayerName(itemEx.uid) .. " has unlocked " .. #unlock .. " pokemons already.")
end
end
return true
end

Se precisar de mais algum arquivo só falar vlw.

 

 

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

  • 2 years later...
A questão neste tópico de suporte foi encerrada por falta de respostas. Este tópico está fechado e foi movido para Suporte - Tópicos Sem Resposta.

+ Caso a dúvida não tenha sido resolvida você poderá criar outro tópico solicitando ajuda.
* Lembre-se que é permitido dar UP no tópico a cada 24 horas para assim o destacar e manter movimentado.
Link para o comentário
Compartilhar em outros sites

Visitante
Este tópico está impedido de receber novos posts.
×
×
  • Criar Novo...