Não sei se vai te ajudar, procurei em umas bases as funções e ai estão.
function getPokemonExperienceTable(pokemonname)
if isInArray(fastexppokes, pokemonname) then
return fastexptable
elseif isInArray(mediumfastexppokes, pokemonname) then
return mediumfastexptable
elseif isInArray(mediumslowexppokes, pokemonname) then
return mediumslowexptable
elseif isInArray(slowexppokes, pokemonname) then
return slowexptable
end
print(""..pokemonname.." doesn't have an experience table speed gain. Check it at data/lib/level tables.lua.")
return mediumfastexptable
end
function getPokemonXMLOutfit(name) --alterado v1.9 \/
local path = "data/monster/pokes/Shiny/"..name..".xml"
local tpw = io.type(io.open(path))
if not tpw then
path = "data/monster/pokes/geracao 2/"..name..".xml"
tpw = io.type(io.open(path))
end
if not tpw then
path = "data/monster/pokes/geracao 1/"..name..".xml"
tpw = io.type(io.open(path))
end
if not tpw then
path = "data/monster/pokes/"..name..".xml"
tpw = io.type(io.open(path))
end
if not tpw then
return print("[getPokemonXMLOutfit] Poke with name: "..name.." ins't in any paste on monster/pokes/") and 2
end
local arq = io.open(path, "a+")
local txt = arq:read("*all")
arq:close()
local a, b = txt:find('look type="(.-)"')
txt = string.sub(txt, a + 11, b - 1)
return tonumber(txt)
end




info
Grupo: Campones
Registrado: 01/02/17
Posts: 97
Reputação: +48
Gênero: Masculino
Xtibia hoje eu venho pedir suporte pois estou fazendo um servidor para postar aqui no Xtibia ele já possui os seguintes sistemas:
- TV System
- Level System (Irei liberar uma versão sem level tbm)
- Todos os Sistemas como Fly,Surf,Dig e Ride.
- OLD Cliente com Injeção de DLL com CDBAR e Barra de Pokémons
- Muitos Mais...
Bom quem puder ajudar com os erros eu agradeço creio que sejá falta de funções se me passarem á função mais rapido para mim liberar o servidor aqui no xtibia, grato.
Editado Fevereiro 14 por Error404