http://www.xtibia.com/forum/topic/191860-max-lvl-dos-pokemon-poketibia/?p=1315557
Ta ai, mas ai você vai ter que reescrever os nomes de todos os pokemons que tem no seu server de novo e apagar os que não tem para que não de erro! ^^
Por jukak2, 08 de nov. de 2013 em Tópicos Sem Resposta
http://www.xtibia.com/forum/topic/191860-max-lvl-dos-pokemon-poketibia/?p=1315557
Ta ai, mas ai você vai ter que reescrever os nomes de todos os pokemons que tem no seu server de novo e apagar os que não tem para que não de erro! ^^
obg como do rep?
ja tentei isso e n dá os pokemons so fika com lvl ate o 100 tipo pra vc criar ele no /cb da certo mias selvagens e nem com rarecandy da pra ir pro 300
Editado Novembro 8 por jukak2
Em data/lib/level table.lua procura por:
if getItemAttribute(item.uid, "exp") + expe > leveltable[100] then
givePokemonExp(cid, item, leveltable[100] - getItemAttribute(item.uid, "exp"))
return true
end
E deixe assim:
if getItemAttribute(item.uid, "exp") + expe > leveltable[300] then
givePokemonExp(cid, item, leveltable[300] - getItemAttribute(item.uid, "exp"))
return true
end
Depois procure:
if getItemAttribute(item, "exp") + expe > leveltable[100] then
givePokemonExpInBp(cid, item, leveltable[100] - getItemAttribute(item, "exp"), ballid)
return true
end
E mude para:
if getItemAttribute(item, "exp") + expe > leveltable[300] then
givePokemonExpInBp(cid, item, leveltable[300] - getItemAttribute(item, "exp"), ballid)
return true
end
Depois procura
for x = 1, 100 do
if exp >= leveltable[x] and exp < leveltable[x+1] then
newlevel = x
end
end
E deixe:
for x = 1, 300 do
if exp >= leveltable[x] and exp < leveltable[x+1] then
newlevel = x
end
end
Acho que é só isso... SE não der certo, tente editar esta próxima também... Mas apenas se não der certo os de cima!!!
if optionalLevel and tonumber(optionalLevel) >= 1 then --alterado v2.8\/
levelRange = optionalLevel
else
lvl = pokes[this].level
if isInArray({1,2,3,4,5}, lvl) then
lvlMin = 1
lvlMax = (lvl + 5)
elseif isInArray({96,97,98,99}, lvl) then
lvlMin = (lvl - 5)
lvlMax = 100
elseif lvl == 100 then
lvlMin = 100
lvlMax = 100
else
lvlMin = (lvl - 5)
lvlMax = (lvl + 5)
end
levelRange = math.random(lvlMin, lvlMax)
end
local status = getPokemonStatus(this)
if status then
off = status.off
def = status.def
agi = status.agi
vit = status.vit
spatk = status.spatk
end
setPlayerStorageValue(cid, 1000, (levelRange > 100 and 100 or levelRange)) --alterado v2.8
Deixa assim:
if optionalLevel and tonumber(optionalLevel) >= 1 then --alterado v2.8\/
levelRange = optionalLevel
else
lvl = pokes[this].level
if isInArray({1,2,3,4,5}, lvl) then
lvlMin = 1
lvlMax = (lvl + 5)
elseif isInArray({296,297,298,299}, lvl) then
lvlMin = (lvl - 5)
lvlMax = 300
elseif lvl == 300 then
lvlMin = 300
lvlMax = 300
else
lvlMin = (lvl - 5)
lvlMax = (lvl + 5)
end
levelRange = math.random(lvlMin, lvlMax)
end
local status = getPokemonStatus(this)
if status then
off = status.off
def = status.def
agi = status.agi
vit = status.vit
spatk = status.spatk
end
setPlayerStorageValue(cid, 1000, (levelRange > 300 and 300 or levelRange)) --alterado v2.8
------------------------------------------------------------------------------
#AreaTópico
Reportei tópico para moverem para pedidos e dúvidas - servidores derivados...
Tópico se encaixa melhor lá, já que é de POKEMON! ^^
ok vo tentar
Acabou tempo na lan, agora vou tentar te ajudar pelo CEL se precisar de mais algo...
Mas espero que isso ai já funcione! xD
nao funfo, e essa ultima parte n tem no meu serve essa \/
f optionalLevel and tonumber(optionalLevel) >= 1 then --alterado v2.8\/
levelRange = optionalLevel
else
lvl = pokes[this].level
if isInArray({1,2,3,4,5}, lvl) then
lvlMin = 1
lvlMax = (lvl + 5)
elseif isInArray({96,97,98,99}, lvl) then
lvlMin = (lvl - 5)
lvlMax = 100
elseif lvl == 100 then
lvlMin = 100
lvlMax = 100
else
lvlMin = (lvl - 5)
lvlMax = (lvl + 5)
end
levelRange = math.random(lvlMin, lvlMax)
end
local status = getPokemonStatus(this)
if status then
off = status.off
def = status.def
agi = status.agi
vit = status.vit
spatk = status.spatk
end
setPlayerStorageValue(cid, 1000, (levelRange > 100 and 100 or levelRange)) --alterado v2.8
Vish, vai ter que olhar pelo configuration.lua ou o config.lua para ver se contra o erro!
Amanhã estarei com PC de volta. e se você quiser te ajudo, manda PM amanhã por volta do meio dia ou antes que eu tento te ajudar a add lv 300 de novo!
ok
info
Grupo: Herói
Registrado: 12/06/12
Posts: 2.2k
Reputação: +739
Gênero: Masculino
Char no Tibia: Supreme Player

Tópico movido para a seção de dúvidas e pedidos resolvidos.
info
Grupo: Herói
Registrado: 28/11/10
Posts: 3.4k
Reputação: +585
Gênero: Masculino

info
Grupo: Campones
Registrado: 26/10/13
Posts: 5
Reputação: 0
Tenho um serve base dash e quero por para os pokemon selvagens e o dos palyers poder chegar ate o lvl 300?