Fala Galera!!
Bom, eu estou com um problema na minha cooldown bar. Ela aparece para alguns pokes e outros não!
Com CD bar:
Agora o sem CD bar:
Minha CD bar tá assim:
pokas = { ["bulbasaur"] = 7593, ["ivysaur"] = 7594, ["venusaur"] = 7595, ["charmander"] = 7596, ["charmeleon"] = 7597, ["charizard"] = 7598, ["squirtle"] = 7599, ["wartortle"] = 7600, ["blastoise"] = 7601, ["caterpie"] = 7602, ["metapod"] = 7603, ["butterfree"] = 7604, ["weedle"] = 7605, ["kakuna"] = 7606, ["beedrill"] = 7607, ["pidgey"] = 7608, ["pidgeotto"] = 7609, ["pidgeot"] = 7610, ["rattata"] = 7611, ["raticate"] = 7612, ["spearow"] = 7613, ["fearow"] = 7614, ["ekans"] = 7615, ["arbok"] = 7616, ["pikachu"] = 7617, ["raichu"] = 7618, ["sandshrew"] = 7619, ["sandslash"] = 7620, ["nidoran female"] = 7621, ["nidorina"] = 7622, ["nidoqueen"] = 7623, ["nidoran male"] = 7624, ["nidorino"] = 7625, ["nidoking"] = 7626, ["clefairy"] = 7627, ["clefable"] = 7628, ["vulpix"] = 7629, ["ninetales"] = 7630, ["jigglypuff"] = 7631, ["wigglytuff"] = 7632, ["zubat"] = 7633, ["golbat"] = 7634, ["oddish"] = 7635, ["gloom"] = 7636, ["vileplume"] = 7637, ["paras"] = 7638, ["parasect"] = 7639, ["venonat"] = 7640, ["venomoth"] = 7641, ["diglett"] = 7642, ["dugtrio"] = 7643, ["meowth"] = 7644, ["persian"] = 7645, ["psyduck"] = 7646, ["golduck"] = 7647, ["mankey"] = 7648, ["primeape"] = 7649, ["growlithe"] = 7650, ["arcanine"] = 7651, ["poliwag"] = 7652, ["poliwhirl"] = 7653, ["poliwrath"] = 7654, ["abra"] = 7655, ["kadabra"] = 7656, ["alakazam"] = 7657, ["machop"] = 7658, ["machoke"] = 7659, ["machamp"] = 7660, ["bellsprout"] = 7661, ["weepinbell"] = 7662, ["victreebel"] = 7663, ["tentacool"] = 7664, ["tentacruel"] = 7665, ["geodude"] = 7666, ["graveler"] = 7667, ["golem"] = 7668, ["ponyta"] = 7669, ["rapidash"] = 7670, ["slowpoke"] = 7671, ["slowbro"] = 7672, ["magnemite"] = 7673, ["magneton"] = 7674, ["farfetch'd"] = 7675, ["doduo"] = 7676, ["dodrio"] = 7677, ["seel"] = 7678, ["dewgong"] = 7679, ["grimer"] = 7680, ["muk"] = 7681, ["shellder"] = 7682, ["cloyster"] = 7683, ["gastly"] = 7684, ["haunter"] = 7685, ["gengar"] = 7686, ["onix"] = 7687, ["drowzee"] = 7688, ["hypno"] = 7689, ["krabby"] = 7690, ["kingler"] = 7691, ["voltorb"] = 7692, ["electrode"] = 7693, ["exeggcute"] = 7694, ["exeggutor"] = 7695, ["cubone"] = 7696, ["marowak"] = 7697, ["hitmonlee"] = 7698, ["hitmonchan"] = 7699, ["lickitung"] = 7700, ["koffing"] = 7701, ["weezing"] = 7702, ["rhyhorn"] = 7703, ["rhydon"] = 7704, ["chansey"] = 7705, ["tangela"] = 7706, ["kangaskhan"] = 7707, ["horsea"] = 7708, ["seadra"] = 7709, ["goldeen"] = 7710, ["seaking"] = 7711, ["staryu"] = 7712, ["starmie"] = 7713, ["mr. mime"] = 7714, ["scyther"] = 7715, ["jynx"] = 7716, ["electabuzz"] = 7717, ["magmar"] = 7718, ["pinsir"] = 7719, ["tauros"] = 7720, ["magikarp"] = 7721, ["gyarados"] = 7722, ["lapras"] = 7723, ["ditto"] = 7724, ["eevee"] = 7725, ["vaporeon"] = 7726, ["jolteon"] = 7727, ["flareon"] = 7728, ["porygon"] = 7729, ["omanyte"] = 7730, ["omastar"] = 7731, ["kabuto"] = 7732, ["kabutops"] = 7733, ["aerodactyl"] = 7734, ["snorlax"] = 7735, ["articuno"] = 7736, ["zapdos"] = 7737, ["moltres"] = 7738, ["dratini"] = 7739, ["dragonair"] = 7740, ["dragonite"] = 7741, ["mewtwo"] = 7742, ["mew"] = 7743, ["elder charizard"] = 7744, ["crystal onix"] = 7745, ["totodile"] = 7955, ["shiny venusaur"] = 7879, ["shiny butterfree"] = 7880, ["shiny paras"] = 7881, ["shiny zubat"] = 7882, ["shiny farfhet'd"] = 7883, ["shiny grimer"] = 7884, ["shiny krabby"] = 7880, ["shiny jynx"] = 7886, ["shiny scyther"] = 7887, ["red gyarados"] = 7888, ["shiny rattata"] = 7889, ["shiny beedrill"] = 7890, ["shiny parasect"] = 7891, ["shiny seaking"] = 7892, ["shiny tentacool"] = 7893, ["shiny muk"] = 7894, ["shiny kingler"] = 7895, ["shiny electabuzz"] = 7896, ["shiny dratini"] = 7897, ["shiny voltorb"] = 7898, ["shiny raticate"] = 7899, ["shiny blastoise"] = 7900, ["shiny venonat"] = 7901, ["shiny growlithe"] = 7902, ["shiny tentacruel"] = 7903, ["shiny horsea"] = 7904, ["shiny electrode"] = 7905, ["shiny hitmonchan"] = 7908, ["shiny magikarp"] = 7907, ["shiny hitmonlee"] = 7906, ["shiny raichu"] = 7909, ["shiny oddish"] = 7910, ["shiny venomoth"] = 7911, ["shiny arcanine"] = 7912, ["shiny nidoking"] = 9094, ["shiny vilplume"] = 9095, ["shiny golem"] = 9096, ["shiny fearow"] = 9097, ["shiny golbat"] = 7970, ["shiny alakazam"] = 7971, ["shiny cubone"] = 7972, ["shiny marowak"] = 7973, ["shiny tangela"] = 7974, ["shiny pinsir"] = 7975, ["shiny dragonair"] = 7976, ["shiny pidgeot"] = 7977, ["shadow gengar"] = 7978, ["big snorlax"] = 7979, ["shiny hypno"] = 7981, ["shiny ditto"] = 7982, ["shiny vaporeon"] = 7983, ["shiny jolteon"] = 7984, ["shiny flareon"] = 7985, ["chikorita"] = 9098, ["bayleaf"] = 9099, ["meganium"] = 9100, ["cyndaquil"] = 9102, ["quilava"] = 9103, ["typhlosion"] = 9104, ["totodile"] = 9105, ["croconow"] = 9106, ["feraligatr"] = 9107, ["sentret"] = 9108, ["furret"] = 9109, ["hoothoot"] = 9110, ["noctowl"] = 9111, ["ledyba"] = 9112, ["ledian"] = 9113, ["spinarak"] = 9114, ["ariados"] = 9101, ["crobat"] = 9115, ["chinchou"] = 9116, ["lanturn"] = 9117, ["pichu"] = 9118, ["cleffa"] = 9119, ["iglybuff"] = 9120, ["togepi"] = 9121, ["togetic"] = 9122, ["natu"] = 9123, ["xatu"] = 9124, ["mareep"] = 9125, ["flaaffy"] = 9222, ["ampharos"] = 9126, ["bellossom"] = 9127, ["marill"] = 9128, ["azumarill"] = 9129, ["sudowoodo"] = 9130, ["politoed"] = 9131, ["goppip"] = 9132, ["skiploom"] = 9133, ["jumpluff"] = 9134, ["aipom"] = 9135, ["sunkern"] = 9136, ["sunflora"] = 9137, ["yanma"] = 9138, ["wooper"] = 9139, ["espeon"] = 9140, ["umbreon"] = 9141, ["murkrow"] = 9142, ["slowking"] = 9143, ["misdreavus"] = 9144, ["wobbuffet"] = 9170, ["girafarig"] = 9171, ["pineco"] = 9172, ["forretress"] = 9174, ["dunsparce"] = 9175, ["gligar"] = 9176, ["steelix"] = 9177, ["snubbull"] = 9178, ["granbull"] = 9179, ["qwilfish"] = 9180, ["scizor"] = 9181, ["shuckle"] = 9182, ["heracross"] = 9183, ["sneasel"] = 9183, ["teddiursa"] = 9184, ["ursaring"] = 9185, ["slugma"] = 9186, ["magcargo"] = 9187, ["swinub"] = 9188, ["corsola"] = 9190, ["remoraid"] = 9191, ["octillery"] = 9192, ["delibird"] = 9193, ["mantine"] = 9194, ["skarmory"] = 9195, ["houndour"] = 9196, ["houndoom"] = 9219, ["kingdra"] = 9197, ["phanpy"] = 9198, ["donphan"] = 9199, ["porygon2"] = 9200, ["stantler"] = 9201, ["smeargle"] = 9202, ["tyrogue"] = 9203, ["hitmontop"] = 9204, ["smoochum"] = 9205, ["elekid"] = 9206, ["magby"] = 9207, ["miltank"] = 9208, ["blissey"] = 9209, ["entei"] = 9210, ["suicune"] = 9211, ["larvitar"] = 9212, ["pupitar"] = 9213, ["tyranitar"] = 9214, ["lugia"] = 9215, ["ho oh"] = 9216, ["celebi"] = 9217, ["heracross"] = 9221, ["raikou"] = 9220, ["raikou"] = 9220 } deads = { ["bulbasaur"] = 7992, ["ivysaur"] = 7993, ["venusaur"] = 7994, ["charmander"] = 7995, ["charmeleon"] = 7996, ["charizard"] = 7997, ["squirtle"] = 7998, ["wartortle"] = 7999, ["blastoise"] = 8000, ["caterpie"] = 8001, ["metapod"] = 8002, ["butterfree"] = 8003, ["weedle"] = 8004, ["kakuna"] = 8005, ["beedrill"] = 8006, ["pidgey"] = 8007, ["pidgeotto"] = 8008, ["pidgeot"] = 8009, ["rattata"] = 8010, ["raticate"] = 8011, ["spearow"] = 8012, ["fearow"] = 8013, ["ekans"] = 8014, ["arbok"] = 8015, ["pikachu"] = 8016, ["raichu"] = 8017, ["sandshrew"] = 8018, ["sandslash"] = 8019, ["nidoran female"] = 8020, ["nidorina"] = 8021, ["nidoqueen"] = 8022, ["nidoran male"] = 8023, ["nidorino"] = 8024, ["nidoking"] = 8025, ["clefairy"] = 8026, ["clefable"] = 8027, ["vulpix"] = 8028, ["ninetales"] = 8029, ["jigglypuff"] = 8030, ["wigglytuff"] = 8031, ["zubat"] = 8032, ["golbat"] = 8033, ["oddish"] = 8034, ["gloom"] = 8035, ["vileplume"] = 8036, ["paras"] = 8037, ["parasect"] = 8038, ["venonat"] = 8039, ["venomoth"] = 8040, ["diglett"] = 8041, ["dugtrio"] = 8042, ["meowth"] = 8043, ["persian"] = 8044, ["psyduck"] = 8045, ["golduck"] = 8046, ["mankey"] = 8047, ["primeape"] = 8048, ["growlithe"] = 8049, ["arcanine"] = 8050, ["poliwag"] = 8051, ["poliwhirl"] = 8052, ["poliwrath"] = 8053, ["abra"] = 8054, ["kadabra"] = 8055, ["alakazam"] = 8056, ["machop"] = 8057, ["machoke"] = 8058, ["machamp"] = 8059, ["bellsprout"] = 8060, ["weepinbell"] = 8061, ["victreebel"] = 8062, ["tentacool"] = 8063, ["tentacruel"] = 8064, ["geodude"] = 8065, ["graveler"] = 8066, ["golem"] = 8067, ["ponyta"] = 8068, ["rapidash"] = 8069, ["slowpoke"] = 8070, ["slowbro"] = 8071, ["magnemite"] = 8072, ["magneton"] = 8073, ["farfetch'd"] = 8074, ["doduo"] = 8075, ["dodrio"] = 8076, ["seel"] = 8077, ["dewgong"] = 8078, ["grimer"] = 8079, ["muk"] = 8080, ["shellder"] = 8081, ["cloyster"] = 8082, ["gastly"] = 8083, ["haunter"] = 8084, ["gengar"] = 8085, ["onix"] = 8086, ["drowzee"] = 8087, ["hypno"] = 8088, ["krabby"] = 8089, ["kingler"] = 8090, ["voltorb"] = 8091, ["electrode"] = 8092, ["exeggcute"] = 8093, ["exeggutor"] = 8094, ["cubone"] = 8095, ["marowak"] = 8096, ["hitmonlee"] = 8097, ["hitmonchan"] = 8098, ["lickitung"] = 8099, ["koffing"] = 8100, ["weezing"] = 8101, ["rhyhorn"] = 8102, ["rhydon"] = 8103, ["chansey"] = 8104, ["tangela"] = 8105, ["kangaskhan"] = 8106, ["horsea"] = 8107, ["seadra"] = 8108, ["goldeen"] = 8109, ["seaking"] = 8110, ["staryu"] = 8111, ["starmie"] = 8112, ["mr. mime"] = 8113, ["scyther"] = 8114, ["jynx"] = 8115, ["electabuzz"] = 8116, ["magmar"] = 8117, ["pinsir"] = 8118, ["tauros"] = 8119, ["magikarp"] = 8120, ["gyarados"] = 8121, ["lapras"] = 8122, ["ditto"] = 8123, ["eevee"] = 8124, ["vaporeon"] = 8125, ["jolteon"] = 8126, ["flareon"] = 8127, ["porygon"] = 8128, ["omanyte"] = 8129, ["omastar"] = 8130, ["kabuto"] = 8131, ["kabutops"] = 8132, ["aerodactyl"] = 8133, ["snorlax"] = 8134, ["articuno"] = 8135, ["zapdos"] = 8136, ["moltres"] = 8137, ["dratini"] = 8138, ["dragonair"] = 8139, ["dragonite"] = 8140, ["mewtwo"] = 8141, ["mew"] = 8142, ["elder charizard"] = 7744, ["crystal onix"] = 7745, ["totodile"] = 7955, ["shiny venusaur"] = 7879, ["shiny butterfree"] = 7880, ["shiny paras"] = 7881, ["shiny zubat"] = 7882, ["shiny farfhet'd"] = 7883, ["shiny grimer"] = 7884, ["shiny krabby"] = 7880, ["shiny jynx"] = 7886, ["shiny scyther"] = 7887, ["red gyarados"] = 7888, ["shiny rattata"] = 7889, ["shiny beedrill"] = 7890, ["shiny parasect"] = 7891, ["shiny seaking"] = 7892, ["shiny tentacool"] = 7893, ["shiny muk"] = 7894, ["shiny kingler"] = 7895, ["shiny electabuzz"] = 7896, ["shiny dratini"] = 7897, ["shiny voltorb"] = 7898, ["shiny raticate"] = 7899, ["shiny blastoise"] = 7900, ["shiny venonat"] = 7901, ["shiny growlithe"] = 7902, ["shiny tentacruel"] = 7903, ["shiny horsea"] = 7904, ["shiny electrode"] = 7905, ["shiny hitmonchan"] = 7906, ["shiny magikarp"] = 7907, ["shiny hitmonlee"] = 7908, ["shiny raichu"] = 7909, ["shiny oddish"] = 7910, ["shiny boboleta"] = 7911, ["shiny abra"] = 7913, ["scizor"] = 7548 } function getPlayerPokeballs(cid) local ret = {} local container = 0 if isCreature(cid) then container = getPlayerSlotItem(cid, 10).uid local myball = getPlayerSlotItem(cid, 8) if myball.uid > 0 then table.insert(ret, myball) end else container = cid end if isContainer(container) and getContainerSize(container) > 0 then for slot = 0, (getContainerSize(container) - 1) do local item = getContainerItem(container, slot) if isContainer(item.uid) then local itemsbag = getPlayerPokeballs(item.uid) if itemsbag and #itemsbag > 0 then for i = 0, #itemsbag do table.insert(ret, itemsbag[i]) end end elseif isPokeball(item.itemid) then table.insert(ret, item) end end end return ret end function doUpdatePokemonsBar(cid) local ret = "p#," local balls = getPlayerPokeballs(cid) local times = 0 for a = 1, #balls do times = times + 1 local item = balls[a] local name = getItemAttribute(item.uid, "description"):match("Contains a (.*).") local vida = getItemAttribute(item.uid, "hp") or 0 local vidao = getItemAttribute(item.uid, "vida") or 0 if vidao == 0 then doItemSetAttribute(item.uid, "hp", 1) end if vida == 0 then vida = 1 end if vidao == -1 then vida = 0 end local hp = math.ceil(vida * 100) local health = 100 local hp1 = 100 -- math.random(7562, 7745) foto = pokas[name] if not pokas[name] then foto = 460 end if vida == 0 then foto = deads[getPokeRealName(item.uid)] if not foto then foto = pokas[name] end health = 0 name = "null" end doItemSetAttribute(item.uid, "ballorder", times) ret = ret..""..foto..","..name..""..times..","..hp.."," end doPlayerSendCancel(cid, ret) end function getNewMoveTable(table, n) if n == 1 and table.move1 then return table.move1 elseif n == 2 and table.move2 then return table.move2 elseif n == 3 and table.move3 then return table.move3 elseif n == 4 and table.move4 then return table.move4 elseif n == 5 and table.move5 then return table.move5 elseif n == 6 and table.move6 then return table.move6 elseif n == 7 and table.move7 then return table.move7 elseif n == 8 and table.move8 then return table.move8 elseif n == 9 and table.move9 then return table.move9 elseif n == 10 and table.move10 then return table.move10 elseif n == 11 and table.move11 then return table.move11 elseif n == 12 and table.move12 then return table.move12 else return false end end function doUpdateMoves(cid) local summon = getCreatureSummons(cid)[1] local ret = "12&," if not summon then for a = 1, 12 do ret = ret.."n/n," end doPlayerSendCancel(cid, ret) addEvent(doUpdateCooldowns, 100, cid) return true end local ret = "12&," local moves = movestable[getCreatureName(summon)] for a = 1, 12 do local b = getNewMoveTable(moves, a) if b then ret = ret..""..b.name.."," else ret = ret.."n/n," end end doPlayerSendCancel(cid, ret) addEvent(doUpdateCooldowns, 100, cid) end function doUpdateCooldowns(cid) BuildCoolDownMessage(cid) end function getBallsAttributes(item) local t = {"fly", "ride", "surf", "aid", "look", "name", "levell", "catch", "vida", "description", "level", "pokelevel", "text", "boost", "nick", "ballorder", "move1", "move2", "move3", "move4", "move5", "move6", "move7", "move8", "move9", "move10", "move11", "move12", "go", "back", "serial", "hp", "tm1", "tmlook1", "tm2", "tmlook2","tm3", "tmlook3", "tm4", "tmlook4", "tm5", "tmlook5", "tm6", "tmlook6", "tm7", "tmlook7", "tm8", "tmlook8", "tm9", "tmlook9", "tm10", "tmlook10", "tm11", "tmlook11", "tm12", "tmlook12",} local ret = {} for a = 1, #t do ret[t[a]] = getItemAttribute(item, t[a]) end return ret end function doChangeBalls(cid, item1, item2) if not isCreature(cid) then return true end if item1.uid == item2.uid then if #getCreatureSummons(cid) <= 0 then doUseItem(cid, getPlayerSlotItem(cid, 8).uid) else doUseItem(cid, getPlayerSlotItem(cid, 8).uid) end return true end if item1.uid > 0 and item2.uid > 0 then local io = getBallsAttributes(item1.uid) local it = getBallsAttributes(item2.uid) for a, b in pairs (io) do if b then doItemSetAttribute(item2.uid, a, b) else doItemEraseAttribute(item2.uid, a) end end for a, b in pairs (it) do if b then doItemSetAttribute(item1.uid, a, b) else doItemEraseAttribute(item1.uid, a) end end local id = item2.itemid doTransformItem(item2.uid, item1.itemid) doTransformItem(item1.uid, id) doUseItem(cid, getPlayerSlotItem(cid, 8).uid) else local id = item2.itemid local b = getBallsAttributes(item2.uid) local a = doPlayerAddItem(cid, 2358, false) for c, d in pairs (b) do if d then doItemSetAttribute(a, c, d) else doItemEraseAttribute(a, c) end end doRemoveItem(item2.uid, 1) doTransformItem(a, id) doUseItem(cid, getPlayerSlotItem(cid, 8).uid) end end function doSetCooldown(cid, item, cd) for cds = 1, 12 do local move = "move"..cds doItemSetAttribute(item, move, cd) end return true end
Espero que possam me ajudar.
Agradeço a atenção!!
@EDIT 15/10/2013
Erro ocorrido no server
[15/10/2013 20:26:53] [Error - Action Interface] [15/10/2013 20:26:53] data/actions/scripts/goback/goback.lua:onUse
[15/10/2013 20:26:53] Description: [15/10/2013 20:26:53] data/lib/MovesBar.lua:121: attempt to index field '?' (a nil value)
[15/10/2013 20:26:53] stack traceback: [15/10/2013 20:26:53] data/lib/MovesBar.lua:121: in function 'BuildWindowMessage'
[15/10/2013 20:26:53] data/actions/scripts/goback/goback.lua:223: in function <data/actions/scripts/goback/goback.lua:4>
[15/10/2013 20:26:56] [Error - Action Interface] [15/10/2013 20:26:56] data/actions/scripts/goback/goback.lua:onUse [15/10/2013 20:26:56] Description: [15/10/2013 20:26:56] data/lib/MovesBar.lua:121: attempt to index field '?' (a nil value)
[15/10/2013 20:26:56] stack traceback: [15/10/2013 20:26:56] data/lib/MovesBar.lua:121: in function 'BuildWindowMessage'
[15/10/2013 20:26:56] data/actions/scripts/goback/goback.lua:223: in function <data/actions/scripts/goback/goback.lua:4>
[15/10/2013 20:27:16] [Error - Action Interface] [15/10/2013 20:27:16] data/actions/scripts/goback/goback.lua:onUse
[15/10/2013 20:27:16] Description: [15/10/2013 20:27:16] data/lib/MovesBar.lua:121: attempt to index field '?' (a nil value)
[15/10/2013 20:27:16] stack traceback: [15/10/2013 20:27:16] data/lib/MovesBar.lua:121: in function 'BuildWindowMessage'
[15/10/2013 20:27:16] data/actions/scripts/goback/goback.lua:223: in function <data/actions/scripts/goback/goback.lua:4>
[15/10/2013 20:28:05] [Error - Action Interface] [15/10/2013 20:28:05] data/actions/scripts/goback/goback.lua:onUse [
15/10/2013 20:28:05] Description: [15/10/2013 20:28:05] data/lib/MovesBar.lua:121: attempt to index field '?' (a nil value)
[15/10/2013 20:28:05] stack traceback: [15/10/2013 20:28:05] data/lib/MovesBar.lua:121: in function 'BuildWindowMessage'
[15/10/2013 20:28:05] data/actions/scripts/goback/goback.lua:223: in function <data/actions/scripts/goback/goback.lua:4>
[15/10/2013 20:28:16] [Error - Action Interface] [15/10/2013 20:28:16] data/actions/scripts/goback/goback.lua:onUse
[15/10/2013 20:28:16] Description: [15/10/2013 20:28:16] data/lib/MovesBar.lua:121: attempt to index field '?' (a nil value)
[15/10/2013 20:28:16] stack traceback: [15/10/2013 20:28:16] data/lib/MovesBar.lua:121: in function 'BuildWindowMessage'
[15/10/2013 20:28:16] data/actions/scripts/goback/goback.lua:223: in function <data/actions/scripts/goback/goback.lua:4>
[15/10/2013 20:28:22] Ronaldo has logged out. [15/10/2013 20:28:22] [Error - TalkAction Interface]
[15/10/2013 20:28:22] data/talkactions/scripts/pk.lua:onSay [15/10/2013 20:28:22] Description:
[15/10/2013 20:28:22] data/lib/cooldown bar.lua:546: attempt to index a nil value [15/10/2013 20:28:22] stack traceback:
[15/10/2013 20:28:22] data/lib/cooldown bar.lua:546: in function 'doUpdatePokemonsBar' [15/10/2013 20:28:22] data/talkactions/scripts/pk.lua:26: in function <data/talkactions/scripts/pk.lua:1> [15/10/2013 20:28:22] Beuker has logged in. [15/10/2013 20:28:25] [Error - TalkAction Interface]
[15/10/2013 20:28:25] data/talkactions/scripts/pk.lua:onSay [15/10/2013 20:28:25] Description:
[15/10/2013 20:28:25] data/lib/cooldown bar.lua:546: attempt to index a nil value [15/10/2013 20:28:25] stack traceback:
[15/10/2013 20:28:25] data/lib/cooldown bar.lua:546: in function 'doUpdatePokemonsBar' [15/10/2013 20:28:25] data/talkactions/scripts/pk.lua:26: in function <data/talkactions/scripts/pk.lua:1> [15/10/2013 20:28:25] [Error - TalkAction Interface] [15/10/2013 20:28:25] data/talkactions/scripts/pk.lua:onSay [15/10/2013 20:28:25] Description: [15/10/2013 20:28:25] data/lib/cooldown bar.lua:546: attempt to index a nil value
[15/10/2013 20:28:25] stack traceback: [15/10/2013 20:28:25] data/lib/cooldown bar.lua:546: in function 'doUpdatePokemonsBar'
[15/10/2013 20:28:25] data/talkactions/scripts/pk.lua:26: in function <data/talkactions/scripts/pk.lua:1> [15/10/2013 20:28:25] [Error - Action Interface] [15/10/2013 20:28:25] data/actions/scripts/goback/goback.lua:onUse [
15/10/2013 20:28:25] Description: [15/10/2013 20:28:25] data/lib/MovesBar.lua:138: attempt to index field '?' (a nil value) [
15/10/2013 20:28:25] stack traceback: [15/10/2013 20:28:25] data/lib/MovesBar.lua:138: in function 'BuildWindowMessage'
[15/10/2013 20:28:25] data/actions/scripts/goback/goback.lua:223: in function <data/actions/scripts/goback/goback.lua:4>
[15/10/2013 20:28:29] [Error - TalkAction Interface] [15/10/2013 20:28:29] data/talkactions/scripts/pk.lua:onSay
[15/10/2013 20:28:29] Description:
[15/10/2013 20:28:29] data/lib/cooldown bar.lua:546: attempt to index a nil value [15/10/2013 20:28:29] stack traceback:
[15/10/2013 20:28:29] data/lib/cooldown bar.lua:546: in function 'doUpdatePokemonsBar' [15/10/2013 20:28:29] data/talkactions/scripts/pk.lua:26: in function <data/talkactions/scripts/pk.lua:1>
[15/10/2013 20:28:29] [Error - TalkAction Interface] [15/10/2013 20:28:29] data/talkactions/scripts/pk.lua:onSay
[15/10/2013 20:28:29] Description: [15/10/2013 20:28:29] data/lib/cooldown bar.lua:546: attempt to index a nil value
[15/10/2013 20:28:29] stack traceback: [15/10/2013 20:28:29] data/lib/cooldown bar.lua:546: in function 'doUpdatePokemonsBar' [15/10/2013 20:28:29] data/talkactions/scripts/pk.lua:26: in function <data/talkactions/scripts/pk.lua:1> [15/10/2013 20:28:31] [Error - TalkAction Interface] [15/10/2013 20:28:31] data/talkactions/scripts/pk.lua:onSay [15/10/2013 20:28:31] Description: [15/10/2013 20:28:31] data/lib/cooldown bar.lua:546: attempt to index a nil value [15/10/2013 20:28:31] stack traceback: [15/10/2013 20:28:31] data/lib/cooldown bar.lua:546: in function 'doUpdatePokemonsBar' [15/10/2013 20:28:31] data/talkactions/scripts/pk.lua:26: in function <data/talkactions/scripts/pk.lua:1> [15/10/2013 20:28:31] [Error - CreatureScript Interface] [15/10/2013 20:28:31] In a timer event called from: [15/10/2013 20:28:31] data/creaturescripts/scripts/move.lua:onMoveItem [15/10/2013 20:28:31] Description: [15/10/2013 20:28:31] data/lib/cooldown bar.lua:546: attempt to index a nil value [15/10/2013 20:28:31] stack traceback: [15/10/2013 20:28:31] data/lib/cooldown bar.lua:546: in function <data/lib/cooldown bar.lua:536> [15/10/2013 20:28:35] [Error - TalkAction Interface] [15/10/2013 20:28:35] data/talkactions/scripts/pk.lua:onSay [15/10/2013 20:28:35] Description: [15/10/2013 20:28:35] data/lib/cooldown bar.lua:546: attempt to index a nil value [15/10/2013 20:28:35] stack traceback: [15/10/2013 20:28:35] data/lib/cooldown bar.lua:546: in function 'doUpdatePokemonsBar' [15/10/2013 20:28:35] data/talkactions/scripts/pk.lua:26: in function <data/talkactions/scripts/pk.lua:1> [15/10/2013 20:28:35] [Error - TalkAction Interface] [15/10/2013 20:28:35] data/talkactions/scripts/pk.lua:onSay [15/10/2013 20:28:35] Description: [15/10/2013 20:28:35] data/lib/cooldown bar.lua:546: attempt to index a nil value [15/10/2013 20:28:35] stack traceback: [15/10/2013 20:28:35] data/lib/cooldown bar.lua:546: in function 'doUpdatePokemonsBar' [15/10/2013 20:28:35] data/talkactions/scripts/pk.lua:26: in function <data/talkactions/scripts/pk.lua:1> [15/10/2013 20:28:35] [Error - TalkAction Interface] [15/10/2013 20:28:35] data/talkactions/scripts/pk.lua:onSay [15/10/2013 20:28:35] Description: [15/10/2013 20:28:35] data/lib/cooldown bar.lua:546: attempt to index a nil value [15/10/2013 20:28:35] stack traceback: [15/10/2013 20:28:35] data/lib/cooldown bar.lua:546: in function 'doUpdatePokemonsBar' [15/10/2013 20:28:35] data/talkactions/scripts/pk.lua:26: in function <data/talkactions/scripts/pk.lua:1> [15/10/2013 20:28:35] [Error - CreatureScript Interface] [15/10/2013 20:28:35] In a timer event called from: [15/10/2013 20:28:35] data/creaturescripts/scripts/move.lua:onMoveItem [15/10/2013 20:28:35] Description: [15/10/2013 20:28:35] data/lib/cooldown bar.lua:546: attempt to index a nil value [15/10/2013 20:28:35] stack traceback: [15/10/2013 20:28:35] data/lib/cooldown bar.lua:546: in function <data/lib/cooldown bar.lua:536> [15/10/2013 20:28:36] [Error - TalkAction Interface] [15/10/2013 20:28:36] data/talkactions/scripts/pk.lua:onSay [15/10/2013 20:28:36] Description: [15/10/2013 20:28:36] data/lib/cooldown bar.lua:546: attempt to index a nil value [15/10/2013 20:28:36] stack traceback: [15/10/2013 20:28:36] data/lib/cooldown bar.lua:546: in function 'doUpdatePokemonsBar' [15/10/2013 20:28:36] data/talkactions/scripts/pk.lua:26: in function <data/talkactions/scripts/pk.lua:1> [15/10/2013 20:28:36] [Error - TalkAction Interface] [15/10/2013 20:28:36] data/talkactions/scripts/pk.lua:onSay [15/10/2013 20:28:36] Description: [15/10/2013 20:28:36] data/lib/cooldown bar.lua:546: attempt to index a nil value [15/10/2013 20:28:36] stack traceback: [15/10/2013 20:28:36] data/lib/cooldown bar.lua:546: in function 'doUpdatePokemonsBar' [15/10/2013 20:28:36] data/talkactions/scripts/pk.lua:26: in function <data/talkactions/scripts/pk.lua:1> [15/10/2013 20:28:36] [Error - Action Interface] [15/10/2013 20:28:36] data/actions/scripts/goback/goback.lua:onUse [15/10/2013 20:28:36] Description: [15/10/2013 20:28:36] data/lib/MovesBar.lua:138: attempt to index field '?' (a nil value) [15/10/2013 20:28:36] stack traceback: [15/10/2013 20:28:36] data/lib/MovesBar.lua:138: in function 'BuildWindowMessage' [15/10/2013 20:28:36] data/actions/scripts/goback/goback.lua:223: in function <data/actions/scripts/goback/goback.lua:4> [15/10/2013 20:28:43] [Error - TalkAction Interface] [15/10/2013 20:28:43] data/talkactions/scripts/pk.lua:onSay [15/10/2013 20:28:43] Description: [15/10/2013 20:28:43] data/lib/cooldown bar.lua:546: attempt to index a nil value [15/10/2013 20:28:43] stack traceback: [15/10/2013 20:28:43] data/lib/cooldown bar.lua:546: in function 'doUpdatePokemonsBar' [15/10/2013 20:28:43] data/talkactions/scripts/pk.lua:26: in function <data/talkactions/scripts/pk.lua:1> [15/10/2013 20:28:43] [Error - TalkAction Interface] [15/10/2013 20:28:43] data/talkactions/scripts/pk.lua:onSay [15/10/2013 20:28:43] Description: [15/10/2013 20:28:43] data/lib/cooldown bar.lua:546: attempt to index a nil value [15/10/2013 20:28:43] stack traceback: [15/10/2013 20:28:43] data/lib/cooldown bar.lua:546: in function 'doUpdatePokemonsBar' [15/10/2013 20:28:43] data/talkactions/scripts/pk.lua:26: in function <data/talkactions/scripts/pk.lua:1> [15/10/2013 20:28:49] [Error - Action Interface] [15/10/2013 20:28:49] data/actions/scripts/revive.lua:onUse [15/10/2013 20:28:49] Description: [15/10/2013 20:28:49] data/lib/cooldown bar.lua:546: attempt to index a nil value [15/10/2013 20:28:49] stack traceback: [15/10/2013 20:28:49] data/lib/cooldown bar.lua:546: in function 'doUpdatePokemonsBar' [15/10/2013 20:28:49] data/actions/scripts/revive.lua:44: in function <data/actions/scripts/revive.lua:13> [15/10/2013 20:28:50] [Error - TalkAction Interface] [15/10/2013 20:28:50] data/talkactions/scripts/pk.lua:onSay [15/10/2013 20:28:50] Description: [15/10/2013 20:28:50] data/lib/cooldown bar.lua:546: attempt to index a nil value [15/10/2013 20:28:50] stack traceback: [15/10/2013 20:28:50] data/lib/cooldown bar.lua:546: in function 'doUpdatePokemonsBar' [15/10/2013 20:28:50] data/talkactions/scripts/pk.lua:26: in function <data/talkactions/scripts/pk.lua:1> [15/10/2013 20:28:50] [Error - TalkAction Interface] [15/10/2013 20:28:50] data/talkactions/scripts/pk.lua:onSay [15/10/2013 20:28:50] Description: [15/10/2013 20:28:50] data/lib/cooldown bar.lua:546: attempt to index a nil value [15/10/2013 20:28:50] stack traceback: [15/10/2013 20:28:50] data/lib/cooldown bar.lua:546: in function 'doUpdatePokemonsBar' [15/10/2013 20:28:50] data/talkactions/scripts/pk.lua:26: in function <data/talkactions/scripts/pk.lua:1> [15/10/2013 20:28:50] [Error - Action Interface] [15/10/2013 20:28:50] data/actions/scripts/goback/goback.lua:onUse [15/10/2013 20:28:50] Description: [15/10/2013 20:28:50] data/lib/MovesBar.lua:138: attempt to index field '?' (a nil value) [15/10/2013 20:28:50] stack traceback: [15/10/2013 20:28:50] data/lib/MovesBar.lua:138: in function 'BuildWindowMessage' [15/10/2013 20:28:50] data/actions/scripts/goback/goback.lua:223: in function <data/actions/scripts/goback/goback.lua:4> [15/10/2013 20:28:52] [Error - TalkAction Interface] [15/10/2013 20:28:52] data/talkactions/scripts/pk.lua:onSay [15/10/2013 20:28:52] Description: [15/10/2013 20:28:52] data/lib/cooldown bar.lua:546: attempt to index a nil value [15/10/2013 20:28:52] stack traceback: [15/10/2013 20:28:52] data/lib/cooldown bar.lua:546: in function 'doUpdatePokemonsBar' [15/10/2013 20:28:52] data/talkactions/scripts/pk.lua:26: in function <data/talkactions/scripts/pk.lua:1> [15/10/2013 20:28:52] [Error - TalkAction Interface] [15/10/2013 20:28:52] data/talkactions/scripts/pk.lua:onSay [15/10/2013 20:28:52] Description: [15/10/2013 20:28:52] data/lib/cooldown bar.lua:546: attempt to index a nil value [15/10/2013 20:28:52] stack traceback: [15/10/2013 20:28:52] data/lib/cooldown bar.lua:546: in function 'doUpdatePokemonsBar' [15/10/2013 20:28:52] data/talkactions/scripts/pk.lua:26: in function <data/talkactions/scripts/pk.lua:1> [15/10/2013 20:28:53] [Error - TalkAction Interface] [15/10/2013 20:28:53] data/talkactions/scripts/pk.lua:onSay [15/10/2013 20:28:53] Description: [15/10/2013 20:28:53] data/lib/cooldown bar.lua:546: attempt to index a nil value [15/10/2013 20:28:53] stack traceback: [15/10/2013 20:28:53] data/lib/cooldown bar.lua:546: in function 'doUpdatePokemonsBar' [15/10/2013 20:28:53] data/talkactions/scripts/pk.lua:26: in function <data/talkactions/scripts/pk.lua:1> [15/10/2013 20:28:53] [Error - TalkAction Interface] [15/10/2013 20:28:53] data/talkactions/scripts/pk.lua:onSay [15/10/2013 20:28:53] Description: [15/10/2013 20:28:53] data/lib/cooldown bar.lua:546: attempt to index a nil value [15/10/2013 20:28:53] stack traceback: [15/10/2013 20:28:53] data/lib/cooldown bar.lua:546: in function 'doUpdatePokemonsBar' [15/10/2013 20:28:53] data/talkactions/scripts/pk.lua:26: in function <data/talkactions/scripts/pk.lua:1> [15/10/2013 20:28:53] [Error - Action Interface] [15/10/2013 20:28:53] data/actions/scripts/goback/goback.lua:onUse [15/10/2013 20:28:53] Description: [15/10/2013 20:28:53] data/lib/MovesBar.lua:138: attempt to index field '?' (a nil value) [15/10/2013 20:28:53] stack traceback: [15/10/2013 20:28:53] data/lib/MovesBar.lua:138: in function 'BuildWindowMessage' [15/10/2013 20:28:53] data/actions/scripts/goback/goback.lua:223: in function <data/actions/scripts/goback/goback.lua:4> [15/10/2013 20:28:53] [Error - TalkAction Interface] [15/10/2013 20:28:53] data/talkactions/scripts/pk.lua:onSay [15/10/2013 20:28:53] Description: [15/10/2013 20:28:53] data/lib/cooldown bar.lua:546: attempt to index a nil value [15/10/2013 20:28:53] stack traceback: [15/10/2013 20:28:53] data/lib/cooldown bar.lua:546: in function 'doUpdatePokemonsBar' [15/10/2013 20:28:53] data/talkactions/scripts/pk.lua:26: in function <data/talkactions/scripts/pk.lua:1> [15/10/2013 20:28:53] [Error - TalkAction Interface] [15/10/2013 20:28:53] data/talkactions/scripts/pk.lua:onSay [15/10/2013 20:28:53] Description: [15/10/2013 20:28:53] data/lib/cooldown bar.lua:546: attempt to index a nil value [15/10/2013 20:28:53] stack traceback: [15/10/2013 20:28:53] data/lib/cooldown bar.lua:546: in function 'doUpdatePokemonsBar' [15/10/2013 20:28:53] data/talkactions/scripts/pk.lua:26: in function <data/talkactions/scripts/pk.lua:1> [15/10/2013 20:28:57] Beuker has logged out.
pk.lua ta assim:
function onSay(cid, words, param, channel) if words == "/pokeread" then if #getCreatureSummons(cid) >= 1 then local pokemon = getCreatureSummons(cid)[1] local pokelife = getCreatureHealth(pokemon) or 0 doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "vida", pokelife) doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "hp", pokelife / getCreatureMaxHealth(pokemon)) doSendMoveMessage(cid) end if getPlayerStorageValue(cid, 123456789) == 1 then local balls = getPlayerPokeballs(cid) for a = 1, #balls do local item = balls[a] local name = getItemAttribute(item.uid, "description"):match("Contains a (.*).") or 0 if checkCreature(name) == 'cant' then value = 0 else value = icons[name] or 0 end doItemSetAttribute(balls[a].uid, "aid", value) end end doUpdatePokemonsBar(cid) return true end local function ChangeBalls(cid, param, cancelequal) local balls = getPlayerPokeballs(cid) for a = 1, #balls do local item = balls[a] local noms = getItemAttribute(item.uid, "description"):match("Contains a (.*).") local poket = checkCreature(noms) if poket == 'cant' then noms = 'null' end local name = ""..noms..""..getItemAttribute(item.uid, "ballorder").."" if name == param then if getItemAttribute(item.uid, "level") >= getPlayerLevel(cid) then doPlayerSendCancel(cid, "You need level "..getItemAttribute(item.uid, "level").." to use "..getItemAttribute(item.uid, "description"):match("Contains a (.*).")) return true end if getPlayerStorageValue(cid, 123456789) == 1 then doSetIcons(balls[a]) if getPlayerStorageValue(cid, 123456789) ~= 1 then doItemSetAttribute(balls[a].uid, "aid", 0) end end if cancelequal and item.uid == getPlayerSlotItem(cid, 8).uid then return true end doChangeBalls(cid, getPlayerSlotItem(cid, 8), item) return 0 end end end for bolas = 1,6 do if param == "null"..bolas then local balls = getPlayerPokeballs(cid) doPlayerSendTextMessage(cid, 27, doCorrectString(getItemAttribute(balls[bolas].uid, "description"):match("Contains a (.*).")).." is Fainted ! Go to Pokemon Center and Talk {Hi} For Nurse Joy to Revive It!") return true end if param == "null" or param == "" then return true end end ---- previnir bug if getPlayerSlotItem(cid, 8).itemid == 0 then doPlayerSendTextMessage(cid, 27,"EN: Sorry, First Equip one pokeball in slot to use Pokemons Bar.") doPlayerSendCancel(cid, "PT-BR: Desculpe, Primeiro coloque uma pokeball no slot Para usar a barra de pokemons.") return true end ---previnir bug doUpdatePokemonsBar(cid) if exhaustion.get(cid, 6667) and exhaustion.get(cid, 6667) > 0 then return true end doUpdatePokemonsBar(cid) if getPlayerStorageValue(cid, 17000) >= 1 or getPlayerStorageValue(cid, 17001) >= 1 or getPlayerStorageValue(cid, 63215) >= 1 then return true end doUpdatePokemonsBar(cid) if #getCreatureSummons(cid) >= 1 then doUseItem(cid, getPlayerSlotItem(cid, 8).uid) if param ~= name then addEvent(ChangeBalls, 1200, cid, param, true) doUpdatePokemonsBar(cid) end else addEvent(ChangeBalls, 100, cid, param) doUpdatePokemonsBar(cid) end exhaustion.set(cid, 6667, 2) doUpdatePokemonsBar(cid) return true end
Meu Goback ta assim :
--GoBack + Nick System By Jean(Zamora Team) --Do not Copy whitout permision --Thanks! function onUse(cid, item, fromPosition, itemEx, toPosition) if getItemAttribute(item.uid, "description") == false or not getItemAttribute(item.uid, "description") then doRemoveItem(item.uid) doPlayerSendTextMessage(cid, 27, "Ball Bug, report to administration/staff.") end if item.itemid == 6132 then doTransformItem(item.uid, 2640) end if item.itemid == 2554 then doTransformItem(item.uid, 2654) end if getItemAttribute(item.uid, "levell") == False then doItemSetAttribute(item.uid, "levell", 0) end local ball = { [2532] = {pokein = 2532, pokeout = 2569}, -- ok [2569] = {pokein = 2532, pokeout = 2569}, -- ok [8818] = {pokein = 8818, pokeout = 8817}, -- ok [8817] = {pokein = 8818, pokeout = 8817}, -- ok [2653] = {pokein = 2653, pokeout = 2557}, -- ok [2557] = {pokein = 2653, pokeout = 2557}, -- ok [2654] = {pokein = 2654, pokeout = 2525}, -- ok [2525] = {pokein = 2654, pokeout = 2525}, -- ok [8819] = {pokein = 8819, pokeout = 8816}, -- ok [8816] = {pokein = 8819, pokeout = 8816}, -- ok [3983] = {pokein = 3983, pokeout = 2570}, -- ok [2570] = {pokein = 3983, pokeout = 2570}, -- ok [2652] = {pokein = 2652, pokeout = 2539}, -- ok [2539] = {pokein = 2652, pokeout = 2539}, -- ok [2655] = {pokein = 2655, pokeout = 3975}, -- ok [3975] = {pokein = 2655, pokeout = 3975}, -- ok [2648] = {pokein = 2648, pokeout = 3973}, -- ok [3973] = {pokein = 2648, pokeout = 3973}, -- ok [2640] = {pokein = 2647, pokeout = 2640}, -- ok [2647] = {pokein = 2647, pokeout = 2640}, -- ok [2531] = {pokein = 2531, pokeout = 2568}, -- ok [2568] = {pokein = 2531, pokeout = 2568}, -- ok } local effect = 188 if item.itemid == 8818 or item.itemid == 8817 then effect = 232 elseif item.itemid == 2653 or item.itemid == 2557 then effect = 190 elseif item.itemid == 2654 or item.itemid == 2525 then effect = 191 elseif item.itemid == 8819 or item.itemid == 8816 then effect = 235 elseif item.itemid == 2570 or item.itemid == 3983 then effect = 194 elseif item.itemid == 2539 or item.itemid == 2652 then effect = 189 elseif item.itemid == 2655 or item.itemid == 3975 then effect = 195 elseif item.itemid == 2648 or item.itemid == 3973 then effect = 192 elseif item.itemid == 2640 or item.itemid == 2647 then effect = 193 end local pokesaddons = { ["snorlax"] = {itens = {{2160, 2160}, {9315, 9340}, {9337}}, counts = {{100, 100}, {100,100}, {100}}, addons = {1081,1136,1102}}, ["dugtrio"] = {itens = {{9239,9236,9237,9238}}, counts = {{100,50,50,50}}, addons = {933}}, ["alakazam"] = {itens = {{2160}, {9259}, {9258}}, counts = {{100}, {100}, {100}}, addons = {39, 833,835}}, ["blastoise"] = {itens = {{9180, 9186, 9314}, {9183, 9189}, {9181}, {9182}}, counts = {{100, 100, 100}, {100,100}, {100}, {100}}, addons = {904,905,913,914}}, ["golem"] = {itens = {{9271} , {9272}}, counts = {{100}, {100}}, addons = {1005, 1006}}, ["dragonite"] = {itens = {{2160} , {9346}, {9344}}, counts = {{100}, {100}, {100}}, addons = {1088, 1078, 1081}}, } ----- GoBack Config ----- local MaximoSummon = 1 local poke_name1 = getItemSpecialDescription(item.uid):match("Contains a (.*).") local poke_name = getPokemonNameDescription(poke_name1) local summons = getCreatureSummons(cid) local nick = getItemAttribute(item.uid, "nick") local levels = getItemAttribute(item.uid, "level") local pk = getCreatureSummons(cid)[1] local ditto = getItemAttribute(item.uid, "ditto") if not ditto then ditto = 28 end local dittoi = getItemAttribute(item.uid, "dittoi") if not dittoi then dittoi = "ditto" end local go = getItemAttribute(item.uid, "go") local back = getItemAttribute(item.uid, "back") local msggg = getItemAttribute(item.uid, "nick") if msggg == "Uknown" then msggg = poke_name1 end local msggg = doCorrectString(msggg) ----- GoBack Config ----- ----- Msg GoBack ------ local msgunica = true local msgunicago1, msgunicaback1 = "Go, "..msggg.."!", "Come back, "..msggg.."!" local msgunicago2, msgunicaback2 = "Let's do it, "..msggg.."!", "Thanks for helping, "..msggg.."!" local msgunicago3, msgunicaback3 = "I choose you, "..msggg.."!", "That's enough, come back!" local msgunicago4, msgunicaback4 = "I need your help, "..msggg.."!", "You were great, "..msggg.."!" local msgunicago5, msgunicaback5 = "Let's fight, "..msggg.."!", "Excellent work, "..msggg.."!" local msgunicago6, msgunicaback6 = "It's battle time, "..msggg.."!", "Well done, "..msggg.."!" local random2 = math.random(1,6) if random2 == 1 then msgunicaback = msgunicaback1 elseif random2 == 2 then msgunicaback = msgunicaback2 elseif random2 == 3 then msgunicaback = msgunicaback3 elseif random2 == 4 then msgunicaback = msgunicaback4 elseif random2 == 5 then msgunicaback = msgunicaback5 elseif random2 == 6 then msgunicaback = msgunicaback6 end local random = math.random(1,6) if random == 1 then msgunicago = msgunicago1 elseif random == 2 then msgunicago = msgunicago2 elseif random == 3 then msgunicago = msgunicago3 elseif random == 4 then msgunicago = msgunicago4 elseif random == 5 then msgunicago = msgunicago5 elseif random == 6 then msgunicago = msgunicago6 end ----- Msg GoBack ------ local attacks = "<a>" if getPlayerLevel(cid) < levels then local xxx = getItemAttribute(item.uid, "level") doPlayerSendCancel(cid, "You need level "..xxx.." or higher to use this pokemon.") return TRUE end ----------------------------------------Config Geral------------------------------------ if getPlayerStorageValue(cid, 63215) == 1 then return doPlayerSendCancel(cid, "You can't use pokeball while surfing.") end if getPlayerStorageValue(cid, 17000) == 1 then return doPlayerSendCancel(cid, "You can't use pokeball while flying.") end if getPlayerStorageValue(cid, 17001) == 1 then return doPlayerSendCancel(cid, "You can't use pokeball while riding.") end if getItemAttribute(item.uid, "vida") == false or not getItemAttribute(item.uid, "vida") or getItemAttribute(item.uid, "vida") == -1 then doPlayerSendTextMessage(cid, 27, poke_name1.." is Fainted ! Go to Pokemon Center and Talk {Hi} For Nurse Joy to Revive It!") return true end local summons = getCreatureSummons(cid) if item.uid ~= getPlayerSlotItem(cid, CONST_SLOT_FEET).uid then doPlayerSendCancel(cid, "Sorry, you must put your "..poke_name1.."'s Pokeball in the Pokeball place.") return TRUE end -----------------------------------------Config End-------------------------------------------- ----------------------------------------Script By Thalia(Edited By Zamora Team)----------------------------------- if(table.maxn(summons) < MaximoSummon) then -- no summons setPlayerStorageValue(cid, 9696, effect) doOpenBar(cid) local creature = doCreateNickedPokemon(cid, poke_name1, nick, effect) doConvinceCreature(cid, creature) exhaustion.set(cid, 9210, 0.7) doCreatureSetLookDir(creature, 2) registerCreatureEvent(creature, "DiePoke") registerCreatureEvent(cid, "a") registerCreatureEvent(cid, "PlayerAttack") registerCreatureEvent(cid, "PlayerPokeDeath") registerCreatureEvent(cid, "LogoutPoke") registerCreatureEvent(creature, "Exp") local feet = getPlayerSlotItem(cid, CONST_SLOT_FEET) if getItemAttribute(feet.uid, "currentlook") and getItemAttribute(feet.uid, "currentlook") ~= -1 then doSetCreatureOutfit(getCreatureSummons(cid)[1], {lookType=getItemAttribute(feet.uid, "currentlook")}, -1) end if getPlayerStorageValue(cid, 3333) == 1 then setPlayerStorageValue(cid, 4445, 0) setPlayerStorageValue(cid, 2333, getPlayerStorageValue(cid, 2333)+1) local num = getPlayerStorageValue(cid, 2333) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Your use "..num.." pokes") end if poke_name == "Ditto" or poke_name == "ditto" then doSetCreatureOutfit(getCreatureSummons(cid)[1], {lookType = ditto, lookHead = 0, lookAddons = 0, lookLegs = 0, lookBody = 0, lookFeet = 0}, 50000) addEvent(doSendMoveMessage, 750, cid, string.lower(dittoi)) else end if not go or go == "-1" or go == -1 then doCreatureSay(cid, msgunicago, TALKTYPE_SAY) else doCreatureSay(cid, ""..go.."", TALKTYPE_SAY) end doTransformItem(getPlayerSlotItem(cid,8).uid, ball[item.itemid].pokeout, 1) --doItemSetAttribute(item.uid, "aid", defeatedIcons[poke_name1]) doCreatureSetSkullType(creature, gender) doSendMagicEffect(getCreaturePosition(creature), effect) if getPlayerStorageValue(cid, 661124) >= 1 then doPlayerSendTextMessage(cid, 26, "sounds/pokeball.wav") end BuildCoolDownMessage(cid) BuildWindowMessage(cid) else local porra = getPlayerName(cid) for _, pid in ipairs(summons) do if (table.maxn(summons) >= 1) then doItemSetAttribute(item.uid, "vida", getCreatureHealth(summons[1])) doItemSetAttribute(item.uid, "hp", getCreatureHealth(summons[1]) / getCreatureMaxHealth(summons[1])) doSendMagicEffect(getCreaturePosition(getCreatureSummons(cid)[1]), effect) if poke_name == "Ditto" or poke_name == "ditto" then doItemSetAttribute(item.uid, "ditto", getCreatureOutfit(getCreatureSummons(cid)[1]).lookType) else end if not back or back == "-1" or back == -1 then doCreatureSay(cid, msgunicaback, TALKTYPE_SAY) else doCreatureSay(cid, ""..back.."", TALKTYPE_SAY) end doRemoveCreature(pid) setPlayerStorageValue(cid,93000,50) --doItemSetAttribute(item.uid, "aid", icons[poke_name1]) BuildCloseWindowMessage(cid) if getPlayerStorageValue(cid, 661124) >= 1 then addEvent(doPlayerSendTextMessage, 300,cid, 26, "sounds/off.wav") end --addEvent(doUpdatePokemonsBar, 100, cid) exhaustion.set(cid, 9210, 0.7) doTransformItem(getPlayerSlotItem(cid,8).uid, ball[item.itemid].pokein, 1) local function gobackorlose(params) if getPlayerStorageValue(cid, 4445) >= 1 then if getPlayerStorageValue(cid, 5333) >= 1 then inimigo = getPlayerStorageValue(cid,6333) if isPlayer(inimigo) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "You have lose duel") doPlayerSendTextMessage(inimigo, MESSAGE_STATUS_CONSOLE_RED, "You Win duel") setPlayerStorageValue(inimigo, 6333, 0) setPlayerStorageValue(cid, 6333, 0) setPlayerStorageValue(inimigo, 5333, 0) setPlayerStorageValue(cid, 5333, 0) setPlayerStorageValue(inimigo, 1333, 0) setPlayerStorageValue(cid, 1333, 0) setPlayerStorageValue(inimigo, 3333, 0) setPlayerStorageValue(cid, 3333, 0) setPlayerStorageValue(inimigo, 2333, 0) setPlayerStorageValue(cid, 2333, 0) setPlayerStorageValue(inimigo, 4445, 0) setPlayerStorageValue(cid, 4445, 0) --doCreatureSetNoMove(inimigo, 0) --doCreatureSetNoMove(cid, 0) doSendAnimatedText(getCreaturePosition(cid), "Loser", 144) doSendAnimatedText(getCreaturePosition(inimigo), "Wins", 210) doPlayerDisbandParty(cid) doPlayerDisbandParty(inimigo) doPlayerLeaveParty(cid) doPlayerLeaveParty(inimigo) else setPlayerStorageValue(cid, 6333, 0) setPlayerStorageValue(cid, 5333, 0) setPlayerStorageValue(cid, 1333, 0) setPlayerStorageValue(cid, 3333, 0) setPlayerStorageValue(cid, 2333, 0) setPlayerStorageValue(cid, 4445, 0) end end end end local function contagem(params) if getPlayerStorageValue(params.cid, 4445) == 1 then if params.count == 1 then addEvent(gobackorlose,1000, {cid = params.cid}) doPlayerSendTextMessage(params.cid, MESSAGE_STATUS_CONSOLE_BLUE, "You have 1 seconds to go you pokemon or lose duel") return true end doPlayerSendTextMessage(params.cid, MESSAGE_STATUS_CONSOLE_BLUE, "You have "..params.count.." seconds to go you pokemon or lose duel") addEvent(contagem,1000, {cid = params.cid,count = params.count-1}) end end if getPlayerStorageValue(cid, 3333) == 1 then setPlayerStorageValue(cid, 4445, 1) doSendAnimatedText(getCreaturePosition(cid), "Poke Down", 210) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You have 20 seconds to go you pokemon or lose duel") addEvent(contagem,1000, {cid = cid,count = 19}) end if getPlayerStorageValue(cid, 5333) == 1 then if getPlayerStorageValue(cid, 2333) == getPlayerStorageValue(cid, 5333) then inimigo = getPlayerStorageValue(cid,6333) if isPlayer(inimigo) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "You have lose duel") doPlayerSendTextMessage(inimigo, MESSAGE_STATUS_CONSOLE_RED, "You Win duel") setPlayerStorageValue(inimigo, 6333, 0) setPlayerStorageValue(cid, 6333, 0) setPlayerStorageValue(inimigo, 5333, 0) setPlayerStorageValue(cid, 5333, 0) setPlayerStorageValue(inimigo, 1333, 0) setPlayerStorageValue(cid, 1333, 0) setPlayerStorageValue(inimigo, 3333, 0) setPlayerStorageValue(cid, 3333, 0) setPlayerStorageValue(inimigo, 2333, 0) setPlayerStorageValue(cid, 2333, 0) setPlayerStorageValue(inimigo, 4445, 0) setPlayerStorageValue(cid, 4445, 0) --doCreatureSetNoMove(inimigo, 0) --doCreatureSetNoMove(cid, 0) doSendAnimatedText(getCreaturePosition(cid), "Loser", 144) doSendAnimatedText(getCreaturePosition(inimigo), "Wins", 210) doPlayerDisbandParty(cid) doPlayerDisbandParty(inimigo) doPlayerLeaveParty(cid) doPlayerLeaveParty(inimigo) else setPlayerStorageValue(cid, 6333, 0) setPlayerStorageValue(cid, 5333, 0) setPlayerStorageValue(cid, 1333, 0) setPlayerStorageValue(cid, 3333, 0) setPlayerStorageValue(cid, 2333, 0) setPlayerStorageValue(cid, 4445, 0) end end end return true end end end return true end ----------------------------------------Script By Thalia(Edited By Zamora Team)------------------------------------
Movesbar ta assim:
local NormalIcon = 548 local XIcon = 550 local Icons = { ["Ember"] = {icon = 9338, cooldownicon = 9539}, ["Confusion"] = {icon = 9369, cooldownicon = 9571}, ["Restore"] = {icon = 9338, cooldownicon = 9539}, ["Psy Pulse"] = {icon = 9338, cooldownicon = 9539}, ["Calm Mind"] = {icon = 9338, cooldownicon = 9539}, ["Flamethrower"] = {icon = 9368, cooldownicon = 9570}, ["Fireball"] = {icon = 9447, cooldownicon = 9650}, ["Fire Fang"] = {icon = 9376, cooldownicon = 9578}, ["Fire Blast"] = {icon = 9353, cooldownicon = 9555}, ["Raging Blast"] = {icon = 9383, cooldownicon = 9585}, ["Rage"] = {icon = 9460, cooldownicon = 9663}, ["Wing Attack"] = {icon = 9359, cooldownicon = 9561}, ["Magma Storm"] = {icon = 9412, cooldownicon = 9615}, ["Headbutt"] = {icon = 9395, cooldownicon = 9597}, ["Earthshock"] = {icon = 551, cooldownicon = 552}, ["Rock Slide"] = {icon = 551, cooldownicon = 552}, ["Harden"] = {icon = 9352, cooldownicon = 9554}, ["Sand Attack"] = {icon = 551, cooldownicon = 552}, ["Rock Throw"] = {icon = 551, cooldownicon = 552}, ["Bubbles"] = {icon = 9335, cooldownicon = 9536}, ["Water Gun"] = {icon = 9327, cooldownicon = 9528}, ["Waterball"] = {icon = 9464, cooldownicon = 9668}, ["Bubble Blast"] = {icon = 9409, cooldownicon = 9612}, ["Skull Bash"] = {icon = 9399, cooldownicon = 9601}, ["Hydropump"] = {icon = 9350, cooldownicon = 9551}, ["Super Sonic"] = {icon = 9488, cooldownicon = 9691}, ["Poison Fang"] = {icon = 9423, cooldownicon = 9626}, ["Absorb"] = {icon = 9366, cooldownicon = 9568}, ["Toxic"] = {icon = 9455, cooldownicon = 9658}, ["Whirlwind"] = {icon = 9374, cooldownicon = 9576}, ["Poisonous Wing"] = {icon = 9351, cooldownicon = 9553}, ["Aqua Tail"] = {icon = 9433, cooldownicon = 9636}, ["Hydro Cannon"] = {icon = 9365, cooldownicon = 9567}, ["Quick Attack"] = {icon = 9323, cooldownicon = 9524}, ["Scratch"] = {icon = 9397, cooldownicon = 9599}, ["Bite"] = {icon = 9354, cooldownicon = 9556}, ["Super Fang"] = {icon = 9398, cooldownicon = 9600} } function BuildCoolDownMessage(cid) local a = getPlayerSlotItem(cid, 8) if a == nil then return end local ret = "@$MovesCoolDown" for cds = 1, 12 do local cdzin = "move"..cds cd = tonumber(getItemAttribute(a.uid, cdzin)) - math.ceil(os.clock()) if cd < 0 then cd = 0 end if cd > 900 then doItemSetAttribute(a.uid, cdzin, 0) cd = 0 end if cd > 0 then ret = ret.."@"..(cd) else ret = ret.."@0" end end doPlayerSendTextMessage(cid, 25, ret) end function BuildCloseWindowMessage(cid) local message = "@$CloseMovesWindow" doPlayerSendTextMessage(cid, 25, message) end function BuildWindowMessage(cid) local feet = getPlayerSlotItem(cid, 8) pokename = getPokeRealName(getPlayerSlotItem(cid, 8).uid) if getPlayerStorageValue(cid, 888) == 1 then pokename = getCreatureStorage(cid, 223) end if isJohto(pokename) then outfit = pokelook[pokename] else outfit = getPokemonOutfit(pokename) end local ditto = getItemAttribute(getPlayerSlotItem(cid, 8).uid, "ditto") local dittoi = getItemAttribute(getPlayerSlotItem(cid, 8).uid, "dittoi") if not ditto then ditto = outfit end if not dittoi then dittoi = pokename end if pokename == "ditto" then pokename = dittoi outfit = ditto end if pokename == "celebi" then return randomMoves(cid) end local IconCount = 0 local message = "" local spell1 = "" if isInArray(pokeism1, pokename) then if getItemAttribute(feet.uid, "tm1") == false or getItemAttribute(feet.uid, "tm1") == -1 or getItemAttribute(feet.uid, "tm1") == "" or not getItemAttribute(feet.uid, "tm1") then spell1 = "@"..Icons[m1[outfit].x.spell].icon.."@"..Icons[m1[outfit].x.spell].cooldownicon.. "@"..m1[outfit].x.spell else spell1 = "@"..Icons[m1[outfit].x.spell].icon.."@"..Icons[m1[outfit].x.spell].cooldownicon.. "@"..getItemAttribute(feet.uid, "tm1") end end if spell1 == "" or getPlayerLevel(cid) < m1[outfit].x.minLv then doPlayerSendTextMessage(cid, 25, "You don't have level to use any Move!") return true else message = message .. spell1 IconCount = IconCount + 1 end local spell2 = "" if isInArray(pokeism2, pokename) then if getItemAttribute(feet.uid, "tm2") == false or getItemAttribute(feet.uid, "tm2") == -1 or getItemAttribute(feet.uid, "tm2") == "" or not getItemAttribute(feet.uid, "tm2") then spell2 = "@"..Icons[m2[outfit].x.spell].icon.."@"..Icons[m2[outfit].x.spell].cooldownicon.. "@"..m2[outfit].x.spell else spell2 = "@"..Icons[m2[outfit].x.spell].icon.."@"..Icons[m2[outfit].x.spell].cooldownicon.. "@"..getItemAttribute(feet.uid, "tm2") end end if spell2 == "" or getPlayerLevel(cid) < m2[outfit].x.minLv then doPlayerSendTextMessage(cid, 25, "@$OpenMovesWindow@"..IconCount..message) return true else message = message .. spell2 IconCount = IconCount + 1 end local spell3 = "" if isInArray(pokeism3, pokename) then if getItemAttribute(feet.uid, "tm3") == false or getItemAttribute(feet.uid, "tm3") == -1 or getItemAttribute(feet.uid, "tm3") == "" or not getItemAttribute(feet.uid, "tm3") then spell3 = "@"..Icons[m3[outfit].x.spell].icon.."@"..Icons[m3[outfit].x.spell].cooldownicon.. "@"..m3[outfit].x.spell else spell3 = "@"..Icons[m3[outfit].x.spell].icon.."@"..Icons[m3[outfit].x.spell].cooldownicon.. "@"..getItemAttribute(feet.uid, "tm3") end end if spell3 == "" or getPlayerLevel(cid) < m3[outfit].x.minLv then doPlayerSendTextMessage(cid, 25, "@$OpenMovesWindow@"..IconCount..message) return true else message = message .. spell3 IconCount = IconCount + 1 end local spell4 = "" if isInArray(pokeism4, pokename) then if getItemAttribute(feet.uid, "tm4") == false or getItemAttribute(feet.uid, "tm4") == -1 or getItemAttribute( feet.uid, "tm4") == "" or not getItemAttribute(feet.uid, "tm4") then spell4 = "@"..Icons[m4[outfit].x.spell].icon.."@"..Icons[m4[outfit].x.spell].cooldownicon.. "@"..m4[outfit].x.spell else spell4 = "@"..Icons[m4[outfit].x.spell].icon.."@"..Icons[m4[outfit].x.spell].cooldownicon.. "@"..getItemAttribute(feet.uid, "tm4") end end if spell4 == "" or getPlayerLevel(cid) < m4[outfit].x.minLv then doPlayerSendTextMessage(cid, 25, "@$OpenMovesWindow@"..IconCount..message) return true else message = message .. spell4 IconCount = IconCount + 1 end local spell5 = "" if isInArray(pokeism5, pokename) then if getItemAttribute(feet.uid, "tm5") == false or getItemAttribute(feet.uid, "tm5") == -1 or getItemAttribute(feet.uid, "tm5") == "" or not getItemAttribute(feet.uid, "tm5") then spell5 = "@"..Icons[m5[outfit].x.spell].icon.."@"..Icons[m5[outfit].x.spell].cooldownicon.. "@"..m5[outfit].x.spell else spell5 = "@"..Icons[m5[outfit].x.spell].icon.."@"..Icons[m5[outfit].x.spell].cooldownicon.. "@"..getItemAttribute(feet.uid, "tm5") end end if spell5 == "" or getPlayerLevel(cid) < m5[outfit].x.minLv then doPlayerSendTextMessage(cid, 25, "@$OpenMovesWindow@"..IconCount..message) return true else message = message .. spell5 IconCount = IconCount + 1 end local spell6 = "" if isInArray(pokeism6, pokename) then if getItemAttribute(feet.uid, "tm6") == false or getItemAttribute(feet.uid, "tm6") == -1 or getItemAttribute(feet.uid, "tm6") == "" or not getItemAttribute(feet.uid, "tm6") then spell6 = "@"..Icons[m6[outfit].x.spell].icon.."@"..Icons[m6[outfit].x.spell].cooldownicon.. "@"..m6[outfit].x.spell else spell6 = "@"..Icons[m6[outfit].x.spell].icon.."@"..Icons[m6[outfit].x.spell].cooldownicon.. "@"..getItemAttribute(feet.uid, "tm6") end end if spell6 == "" then doPlayerSendTextMessage(cid, 25, "@$OpenMovesWindow@"..IconCount..message) return true else message = message .. spell6 IconCount = IconCount + 1 end local spell7 = "" if isInArray(pokeism7, pokename) then if getItemAttribute(feet.uid, "tm7") == false or getItemAttribute(feet.uid, "tm7") == -1 or getItemAttribute(feet.uid, "tm7") == "" or not getItemAttribute(feet.uid, "tm7") then spell7 = "@"..Icons[m7[outfit].x.spell].icon.."@"..Icons[m7[outfit].x.spell].cooldownicon.. "@"..m7[outfit].x.spell else spell7 = "@"..Icons[m7[outfit].x.spell].icon.."@"..Icons[m7[outfit].x.spell].cooldownicon.. "@"..getItemAttribute(feet.uid, "tm7") end end if spell7 == "" or getPlayerLevel(cid) < m7[outfit].x.minLv then doPlayerSendTextMessage(cid, 25, "@$OpenMovesWindow@"..IconCount..message) return true else message = message .. spell7 IconCount = IconCount + 1 end local spell8 = "" if isInArray(pokeism8, pokename) then if getItemAttribute(feet.uid, "tm8") == false or getItemAttribute(feet.uid, "tm8") == -1 or getItemAttribute(feet.uid, "tm8") == "" or not getItemAttribute(feet.uid, "tm8") then spell8 = "@"..Icons[m8[outfit].x.spell].icon.."@"..Icons[m8[outfit].x.spell].cooldownicon.. "@"..m8[outfit].x.spell else spell8 = "@"..Icons[m8[outfit].x.spell].icon.."@"..Icons[m8[outfit].x.spell].cooldownicon.. "@"..getItemAttribute(feet.uid, "tm8") end end if spell8 == "" or getPlayerLevel(cid) < m8[outfit].x.minLv then doPlayerSendTextMessage(cid, 25, "@$OpenMovesWindow@"..IconCount..message) return true else message = message .. spell8 IconCount = IconCount + 1 end local spell9 = "" if isInArray(pokeism9, pokename) then if getItemAttribute(feet.uid, "tm9") == false or getItemAttribute(feet.uid, "tm9") == -1 or getItemAttribute( feet.uid, "tm9") == "" or not getItemAttribute(feet.uid, "tm9") then spell9 = "@"..Icons[m9[outfit].x.spell].icon.."@"..Icons[m9[outfit].x.spell].cooldownicon.. "@"..m9[outfit].x.spell else spell9 = "@"..Icons[m9[outfit].x.spell].icon.."@"..Icons[m9[outfit].x.spell].cooldownicon.. "@"..getItemAttribute(feet.uid, "tm9") end end if spell9 == "" or getPlayerLevel(cid) < m9[outfit].x.minLv then doPlayerSendTextMessage(cid, 25, "@$OpenMovesWindow@"..IconCount..message) return true else message = message .. spell9 IconCount = IconCount + 1 end local spell10 = "" if isInArray(pokeism10, pokename) then if getItemAttribute(feet.uid, "tm10") == false or getItemAttribute(feet.uid, "tm10") == -1 or getItemAttribute(feet.uid, "tm10") == "" or not getItemAttribute(feet.uid, "tm10") then spell10 = "@"..Icons[m10[outfit].x.spell].icon.."@"..Icons[m10[outfit].x.spell].cooldownicon.. "@"..m10[outfit].x.spell else spell10 = "@"..Icons[m10[outfit].x.spell].icon.."@"..Icons[m10[outfit].x.spell].cooldownicon.. "@"..getItemAttribute(feet.uid, "tm10") end end if spell10 == "" or getPlayerLevel(cid) < m10[outfit].x.minLv then doPlayerSendTextMessage(cid, 25, "@$OpenMovesWindow@"..IconCount..message) return true else message = message .. spell10 IconCount = IconCount + 1 end local spell11 = "" if isInArray(pokeism11, pokename) then if getItemAttribute(feet.uid, "tm11") == false or getItemAttribute(feet.uid, "tm11") == -1 or getItemAttribute(feet.uid, "tm11") == "" or not getItemAttribute(feet.uid, "tm11") then spell11 = "@"..Icons[m11[outfit].x.spell].icon.."@"..Icons[m11[outfit].x.spell].cooldownicon.. "@"..m11[outfit].x.spell else spell11 = "@"..Icons[m11[outfit].x.spell].icon.."@"..Icons[m11[outfit].x.spell].cooldownicon.. "@"..getItemAttribute(feet.uid, "tm11") end end if spell11 == "" or getPlayerLevel(cid) < m11[outfit].x.minLv then doPlayerSendTextMessage(cid, 25, "@$OpenMovesWindow@"..IconCount..message) return true else message = message .. spell11 IconCount = IconCount + 1 end local spell12 = "" if isInArray(pokeism12, pokename) then if getItemAttribute(feet.uid, "tm12") == false or getItemAttribute(feet.uid, "tm12") == -1 or getItemAttribute(feet.uid, "tm12") == "" or not getItemAttribute(feet.uid, "tm12") then spell12 = "@"..Icons[m12[outfit].x.spell].icon.."@"..Icons[m1[outfit].x.spell].cooldownicon.. "@"..m12[outfit].x.spell else spell12 = "@"..Icons[m12[outfit].x.spell].icon.."@"..Icons[m1[outfit].x.spell].cooldownicon.. "@"..getItemAttribute(feet.uid, "tm12") end end if spell12 == "" or getPlayerLevel(cid) < m12[outfit].x.minLv then doPlayerSendTextMessage(cid, 25, "@$OpenMovesWindow@"..IconCount..message) return true else IconCount = IconCount + 1 message = message..spell1 doPlayerSendTextMessage(cid, 25, "@$OpenMovesWindow@"..IconCount..message) end end
Quem puder ajudar, darei REP :S