jukak2 0 Postado Novembro 8, 2013 Share Postado Novembro 8, 2013 Tenho um serve base dash e quero por para os pokemon selvagens e o dos palyers poder chegar ate o lvl 300? Link para o comentário https://xtibia.com/forum/topic/223684-encerrado-como-colocar-sistema-de-lvl-ate-300/ Compartilhar em outros sites More sharing options...
GuhPk 111 Postado Novembro 8, 2013 Share Postado Novembro 8, 2013 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! ^^ Link para o comentário https://xtibia.com/forum/topic/223684-encerrado-como-colocar-sistema-de-lvl-ate-300/#findComment-1580466 Compartilhar em outros sites More sharing options...
jukak2 0 Postado Novembro 8, 2013 Autor Share Postado Novembro 8, 2013 (editado) 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, 2013 por jukak2 Link para o comentário https://xtibia.com/forum/topic/223684-encerrado-como-colocar-sistema-de-lvl-ate-300/#findComment-1580471 Compartilhar em outros sites More sharing options...
GuhPk 111 Postado Novembro 8, 2013 Share Postado Novembro 8, 2013 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! ^^ Link para o comentário https://xtibia.com/forum/topic/223684-encerrado-como-colocar-sistema-de-lvl-ate-300/#findComment-1580483 Compartilhar em outros sites More sharing options...
jukak2 0 Postado Novembro 8, 2013 Autor Share Postado Novembro 8, 2013 ok vo tentar Link para o comentário https://xtibia.com/forum/topic/223684-encerrado-como-colocar-sistema-de-lvl-ate-300/#findComment-1580494 Compartilhar em outros sites More sharing options...
GuhPk 111 Postado Novembro 8, 2013 Share Postado Novembro 8, 2013 Acabou tempo na lan, agora vou tentar te ajudar pelo CEL se precisar de mais algo... Mas espero que isso ai já funcione! xD Link para o comentário https://xtibia.com/forum/topic/223684-encerrado-como-colocar-sistema-de-lvl-ate-300/#findComment-1580498 Compartilhar em outros sites More sharing options...
jukak2 0 Postado Novembro 8, 2013 Autor Share Postado Novembro 8, 2013 nao funfo, e essa ultima parte n tem no meu serve essa \/ f optionalLevel and tonumber(optionalLevel) >= 1 then --alterado v2.8\/ levelRange = optionalLevelelse lvl = pokes[this].levelif 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.offdef = status.def agi = status.agi vit = status.vit spatk = status.spatkend setPlayerStorageValue(cid, 1000, (levelRange > 100 and 100 or levelRange)) --alterado v2.8 Link para o comentário https://xtibia.com/forum/topic/223684-encerrado-como-colocar-sistema-de-lvl-ate-300/#findComment-1580499 Compartilhar em outros sites More sharing options...
GuhPk 111 Postado Novembro 8, 2013 Share Postado Novembro 8, 2013 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! Link para o comentário https://xtibia.com/forum/topic/223684-encerrado-como-colocar-sistema-de-lvl-ate-300/#findComment-1580520 Compartilhar em outros sites More sharing options...
jukak2 0 Postado Novembro 8, 2013 Autor Share Postado Novembro 8, 2013 ok Link para o comentário https://xtibia.com/forum/topic/223684-encerrado-como-colocar-sistema-de-lvl-ate-300/#findComment-1580524 Compartilhar em outros sites More sharing options...
Gabrieltxu 738 Postado Novembro 18, 2013 Share Postado Novembro 18, 2013 Tópico movido para a seção de dúvidas e pedidos resolvidos. Link para o comentário https://xtibia.com/forum/topic/223684-encerrado-como-colocar-sistema-de-lvl-ate-300/#findComment-1583223 Compartilhar em outros sites More sharing options...
Stigal 585 Postado Abril 21, 2018 Share Postado Abril 21, 2018 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 https://xtibia.com/forum/topic/223684-encerrado-como-colocar-sistema-de-lvl-ate-300/#findComment-1735726 Compartilhar em outros sites More sharing options...
Posts Recomendados