Jump to content
×
×
  • Create New...
  • 0

pokedex Duas Pokedex, REMOVER UMA


wevertonvrb
 Share

Question

Versão do Servidor: TFS - 0.3.5
Tipo de Script: actions
Código:
 

    

BOM DIA
ENTÃO GENTE EU DECIDI COLOCAR O WINDOW POKEDEX NO MEU SERVIDOR E ATE QUE FOI MUITO FACIL, POREM A POKEDEX ANTIGA CONTINUA APARECENCO E EU GOSTARIA DE REMOVER-LA
ENTÃO POR FAVOR PESSOA A AJUDA DE VOCES PARA REMOVER A POKEDEX NA ESQUERDA DO PRINT 
https://prnt.sc/s2qryk

Link to post
Share on other sites

8 answers to this question

Recommended Posts

  • 0
Em 20/04/2020 em 11:58, wevertonvrb disse:
Versão do Servidor: TFS - 0.3.5
Tipo de Script: actions
Código:
  Mostrar conteúdo oculto



 

BOM DIA
ENTÃO GENTE EU DECIDI COLOCAR O WINDOW POKEDEX NO MEU SERVIDOR E ATE QUE FOI MUITO FACIL, POREM A POKEDEX ANTIGA CONTINUA APARECENCO E EU GOSTARIA DE REMOVER-LA
ENTÃO POR FAVOR PESSOA A AJUDA DE VOCES PARA REMOVER A POKEDEX NA ESQUERDA DO PRINT 
https://prnt.sc/s2qryk

Vai em Data/Lib abra o Pokedex System.lua e procura essa linha:

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

comente ou remova a linha que não irá aparecer mais a janela.

Edited by Yan18
Link to post
Share on other sites

  • 0

Olá estou com o mesmo tipo de problema, fiz oque @Yan18citou e não resolveu, a pois comentar ou apagar 

doShowTextDialog(cid, v, table.concat(stt)) / o servidor da varios erros/ por exemplo o poke não sai e não desloga! quem souber realmente como remove a Poke dex HELP aê
Link to post
Share on other sites

  • 0
Em 16/03/2021 em 21:55, juliolokao disse:

Olá estou com o mesmo tipo de problema, fiz oque @Yan18citou e não resolveu, a pois comentar ou apagar 


doShowTextDialog(cid, v, table.concat(stt)) / o servidor da varios erros/ por exemplo o poke não sai e não desloga! quem souber realmente como remove a Poke dex HELP aê

Provavelmente você fez algo errado, porque essa função doShowTextDialog que abre a janela antiga de pokedex.

 

Posta o seu script de pokedex.

Link to post
Share on other sites

  • 0
2 horas atrás, Yan18 disse:

Provavelmente você fez algo errado, porque essa função doShowTextDialog que abre a janela antiga de pokedex.

 

Posta o seu script de pokedex.

Essa é o meu pokedex system

 

local skills = specialabilities                                    --alterado v1.9 \/ peguem tudo!

function doAddPokemonInDexList(cid, poke)
if getPlayerInfoAboutPokemon(cid, poke).dex then return true end
    poke = doCorrectString(poke)
    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 Earth Stone\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: 2 Leaf Stone or Leaf Stone and Venom 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 Ancient Stone\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(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

local txt = ""..z..""..y.name.." - m"..number.." - level "..y.level.." - "..(y.t) 
return txt
end      
                                                                                                                                 --alterado v1.8
local skillcheck = {"fly", "ride", "surf", "teleport", "rock smash", "cut", "dig", "light", "blink", "control mind", "transform", "levitate_fly"}
local passivas = {
["Shock Counter"] = {"Electabuzz", "Shiny Electabuzz", "Elekid", "Raikou", tpw = "electric"},
["Lava-Counter"] = {"Magmar", "Magby", "Entei", 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 v1.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"] = {"Zubat", "Golbat", "Crobat", "Shiny Zubat", "Shiny Golbat", "Shiny Crobat", tpw = "poison"},
["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"},

["Bone Spin"] = {"Cubone", "Marowak", "Shiny Cubone", "Shiny Marowak", tpw = "rock"},
}


function doShowPokedexRegistration(cid, pokemon, ball, item2)


local myball = ball
local name = pokemon 

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, "\nRequired level: "..pokes[name].level.."\n")
else
   table.insert(stt, "\nRequired level: ".. getPokemonLevelD(name) .."\n")  --alterado v1.9
end

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

table.insert(stt, "\nMoves:")
table.insert(stt, "\nPoke-Status:\nOffense: "..getPlayerStorageValue(item2.uid,1001).."\nDefense: "..getPlayerStorageValue(item2.uid,1002).."\nSpeed: "..getPlayerStorageValue(item2.uid,1003).."\nVitality: "..getPlayerStorageValue(item2.uid,1004).."\nSpecial-Attack: "..getPlayerStorageValue(item2.uid,1005).."\n")

if name == "Ditto" then
   table.insert(stt, "\nIt doesn't use any moves until transformed.")
else
   for a = 1, 15 do
      table.insert(stt, getMoveDexDescr(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                   --alterado v1.8 \/
            
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("Error while making pokedex info with pokemon named "..name..".\n   Pokedex registration has more than 8192 letters (it has "..string.len(stt).." letters), it has been blocked to prevent fatal error.")
   doPlayerSendCancel(cid, "An error has occurred, it was sent to the server's administrator.") 
return true
end    

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

Link to post
Share on other sites

  • 0
Em 18/03/2021 em 11:38, juliolokao disse:

Essa é o meu pokedex system

 

local skills = specialabilities                                    --alterado v1.9 \/ peguem tudo!

function doAddPokemonInDexList(cid, poke)
if getPlayerInfoAboutPokemon(cid, poke).dex then return true end
    poke = doCorrectString(poke)
    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 Earth Stone\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: 2 Leaf Stone or Leaf Stone and Venom 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 Ancient Stone\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(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

local txt = ""..z..""..y.name.." - m"..number.." - level "..y.level.." - "..(y.t) 
return txt
end      
                                                                                                                                 --alterado v1.8
local skillcheck = {"fly", "ride", "surf", "teleport", "rock smash", "cut", "dig", "light", "blink", "control mind", "transform", "levitate_fly"}
local passivas = {
["Shock Counter"] = {"Electabuzz", "Shiny Electabuzz", "Elekid", "Raikou", tpw = "electric"},
["Lava-Counter"] = {"Magmar", "Magby", "Entei", 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 v1.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"] = {"Zubat", "Golbat", "Crobat", "Shiny Zubat", "Shiny Golbat", "Shiny Crobat", tpw = "poison"},
["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"},

["Bone Spin"] = {"Cubone", "Marowak", "Shiny Cubone", "Shiny Marowak", tpw = "rock"},
}


function doShowPokedexRegistration(cid, pokemon, ball, item2)


local myball = ball
local name = pokemon 

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, "\nRequired level: "..pokes[name].level.."\n")
else
   table.insert(stt, "\nRequired level: ".. getPokemonLevelD(name) .."\n")  --alterado v1.9
end

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

table.insert(stt, "\nMoves:")
table.insert(stt, "\nPoke-Status:\nOffense: "..getPlayerStorageValue(item2.uid,1001).."\nDefense: "..getPlayerStorageValue(item2.uid,1002).."\nSpeed: "..getPlayerStorageValue(item2.uid,1003).."\nVitality: "..getPlayerStorageValue(item2.uid,1004).."\nSpecial-Attack: "..getPlayerStorageValue(item2.uid,1005).."\n")

if name == "Ditto" then
   table.insert(stt, "\nIt doesn't use any moves until transformed.")
else
   for a = 1, 15 do
      table.insert(stt, getMoveDexDescr(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                   --alterado v1.8 \/
            
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("Error while making pokedex info with pokemon named "..name..".\n   Pokedex registration has more than 8192 letters (it has "..string.len(stt).." letters), it has been blocked to prevent fatal error.")
   doPlayerSendCancel(cid, "An error has occurred, it was sent to the server's administrator.") 
return true
end    

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

 

Está vendo a penúltima linha do código:

 

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

 

Você precisa comentar ela. Talvez tenha comentado outra.

Link to post
Share on other sites

  • 0

Oi yan, ao comentar essa linha a caixa do pokedex some do client tbm, como eu quero adicionar outra caixa de dex, essa do system sempre fica atras 

pokedex.png

Link to post
Share on other sites

  • 0
13 horas atrás, juliolokao disse:

Oi yan, ao comentar essa linha a caixa do pokedex some do client tbm, como eu quero adicionar outra caixa de dex, essa do system sempre fica atras 

pokedex.png

Não entendi muito bem, você disse que quer adicionar outra, mas a antiga fica atrás. No caso, que outra você quer adicionar? É para ter duas? 

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Similar Content

    • By sirvitor4
      Boa noite, rapaziada.
      Alguém saberia resolver esse problema que aparece no terminal do meu otclient?
       
      /game_topslot/topslot.lua:79 attempt to index a nill value
      in function game_topslot/topslot.lua:52
       
      game_topslot.rar
       
      Esse erro ocorre quando tento dar Dex em algum pokemon... A vara de pesca funciona normalmente
       
       

    • By Taiger
      Bom dia. Estou tentando adicionar o sistema de pokedex em um novo cliente mas esta dando esse bug, o sistema esta funcionando mas aparece a lista de pokes na tela. Sera que alguem poderia me ajudar? 
       

    • By Kirsch
      alguém pode me ajudar a corrigir esse erro ?
       
      [Error - Action Interface] data/actions/scripts/Basic/pokedex.lua:onUse Description: data/actions/scripts/Basic/pokedex.lua:13: bad argument #1 to 'lower' (string expected, got nil) stack traceback: [C]: in function 'lower' data/actions/scripts/Basic/pokedex.lua:13: in function <data/actions/scripts/Basic/pokedex.lua:4> bad argument #1 to 'lower' (string expected, got nil) script :
      local OPCODE_POKEDEX = opcodes.OPCODE_POKEDEX local OPCODE_CREATE_POKEMONS = opcodes.OPCODE_CREATE_POKEMONS function onUse(cid, item, fromPosition, itemEx, toPosition) if not isCreature(itemEx.uid) then return true end if getPlayerStorageValue(cid, storages.pokedexDelay) == 1 then return doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Não use a pokedex tão rápido.") end local name = isPlayer(itemEx.uid) and getCreatureName(itemEx.uid) or getPokeName(itemEx.uid) local str = {} for pokeId = 1, 42 do local name = string.lower(string.explode(getItemNameById(11388+pokeId), "fainted ")[2]) table.insert(str, ((pokeId > 9 and pokeId < 100) and "#0" or (pokeId < 10) and "#00" or "#")..pokeId) table.insert(str, " - "..(getPlayerStorageValue(cid, getPokeUniqueStorToDex(name)) == -1 and "??????" or doCorrectString(name))) table.insert(str, "|"..(getPlayerStorageValue(cid, getPokeUniqueStorToCatch(name)) == -1 and "false" or "true")) table.insert(str, "|".. getPokemonLevel(name)) table.insert(str, "|".. getPokemonDescription(name)) table.insert(str, "|".. getPokemonAttack(name)) table.insert(str, "|".. getPokemonDefense(name)) table.insert(str, "|".. getPokemonSpAttack(name)) table.insert(str, "|".. getPokemonVitality(name)) table.insert(str, "|".. getPokemonType1(name) .."".. (getPokemonType2(name) and "/".. getPokemonType2(name) or "") ..";") end if isMonster(itemEx.uid) or (isPlayer(itemEx.uid) and itemEx.uid == cid) then doSendPlayerExtendedOpcode(cid, OPCODE_CREATE_POKEMONS, table.concat(str)) setPlayerStorageValue(cid, storages.pokedexDelay, 1) addEvent(setPlayerStorageValue, 3000, cid, storages.pokedexDelay, -1) end if isMonster(itemEx.uid) then if getPlayerStorageValue(cid, getPokeUniqueStorToDex(name)) == -1 then local exp = (getPokemonLevel(name) * 10) / 2 setPlayerStorageValue(cid, getPokeUniqueStorToDex(name), 1) setPlayerStorageValue(cid, storages.pokedexSys, getPlayerStorageValue(cid, storages.pokedexSys) + 1) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você desbloqueou o pokemon "..doCorrectString(name).." e ganhou "..exp.." de experiencia.") doPlayerAddExp_2(cid, exp) doSendMagicEffect(getThingPos(cid), 91) end local pokeId = getPokemonPortrait(name) - 11539 doSendPlayerExtendedOpcode(cid, OPCODE_POKEDEX, pokeId.."|"..doCorrectString(name).."|"..getPokemonLevel(name).."|"..(getPlayerStorageValue(cid, getPokeUniqueStorToCatch(name)) == -1 and "false" or "true").."|"..getPokemonDescription(name).."|"..getPokemonAttack(name).."|"..getPokemonDefense(name).."|"..getPokemonSpAttack(name).."|"..getPokemonVitality(name).."|".. getPokemonType1(name) .."".. (getPokemonType2(name) and "/".. getPokemonType2(name) or "")) elseif isPlayer(itemEx.uid) and itemEx.uid == cid then doSendPlayerExtendedOpcode(cid, OPCODE_POKEDEX, name) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você tem a pokedex de "..(getPlayerStorageValue(cid, storages.pokedexSys) + 1).." pokemon"..(getPlayerStorageValue(cid, storages.pokedexSys) + 1 == 1 and "" or "s").." de kanto.") end return true end  
    • By Dragonixx
      Olá Boa noite estou com meu servidor teste aqui e gostaria de saber como posso alterar o layout da pokedex para que eu possa me diferenciar dos outros otservers, tenho alguns scripts pronto e funcionais porem nao tenho o layout que eu queria da minha pokedex, queria colocar pontos de hp, sp.def, tudo conforme as bases da nintendo, e queria tbm poder mudar o estilo da dex, se ja jogaram pxg e viram o layout da dex é algo proximo daquilo q procuro, desde ja agradeço a todos!
    • By ZeNit91
      Ola meus amores =)
      estou com um problema aki ja tinha resolvido 1x mais como voltei a editar a pouco me perdi totalmente rsrs
      se me lembro é algo bem besta, ta ai o erro.
       
       
      O erro ocorre quando clico na pokedex e clico para abrila no player.