- 0
-
Quem Está Navegando
- Nenhum usuário registrado visualizando esta página.
-
Posts
-
Link de download quebrado, alguém poderia adicioná-los e enviar as imagens novamente?
-
Por JorgeConsalvo · Postado
hola buenas tardes podrias resubir los paquetes 31 y 35 que los link estan off -
😄 SacriPvP.utx
-
Por JeffTheMalignant · Postado
A maioria está off mano 😕 -
já tem no tópico msm O conteúdo está oculto, favor efetuar login ou se cadastrar! Entre ou Cadastre-se
-
Por JeffTheMalignant · Postado
EU precisava desse set pvp -
Não está errado! Eu fiz usando a Vesper Normal, não a versão Noble ou Chaos.
-
Esse Gold esse ai
-
Pergunta
amarhat13
Hola! como estan? Necesito ayuda para lograr incrementar el lvl max de 85 a 99 ... Les cuento que lei varias guias pero mi datapack ( L2JSUNRISE ) no contiene los mismos archivos dejo de ejemplo el Core.
*********************************************************
package l2r.gameserver.data.xml.impl;
import java.util.HashMap;
import java.util.Map;
import l2r.util.data.xml.IXmlReader.IXmlReader;
import org.w3c.dom.Document;
import org.w3c.dom.NamedNodeMap;
import org.w3c.dom.Node;
public final class ExperienceData
implements IXmlReader {
private final Map<Integer, Long> _expTable = new HashMap<Integer, Long>();
private byte MAX_LEVEL;
private byte MAX_PET_LEVEL;
protected ExperienceData() {
this.load();
}
@Override
public void load() {
this._expTable.clear();
this.parseDatapackFile("data/xml/stats/experience.xml");
LOGGER.info(this.getClass().getSimpleName() + ": Loaded " + this._expTable.size() + " levels.");
LOGGER.info(this.getClass().getSimpleName() + ": Max Player Level is: " + (this.MAX_LEVEL - 1));
LOGGER.info(this.getClass().getSimpleName() + ": Max Pet Level is: " + (this.MAX_PET_LEVEL - 1));
}
@Override
public void parseDocument(Document doc) {
Node table = doc.getFirstChild();
NamedNodeMap tableAttr = table.getAttributes();
this.MAX_LEVEL = (byte)(Byte.parseByte(tableAttr.getNamedItem("maxLevel").getNodeValue()) + 1);
this.MAX_PET_LEVEL = (byte)(Byte.parseByte(tableAttr.getNamedItem("maxPetLevel").getNodeValue()) + 1);
for (Node n = table.getFirstChild(); n != null; n = n.getNextSibling()) {
if (!"experience".equals(n.getNodeName())) continue;
NamedNodeMap attrs = n.getAttributes();
this._expTable.put(this.parseInteger(attrs, "level"), this.parseLong(attrs, "tolevel"));
}
}
public long getExpForLevel(int level) {
try {
return this._expTable.get(level);
}
catch (Exception e) {
LOGGER.error(this.getClass().getSimpleName() + " incoming level is: " + String.valueOf(level));
if (this._expTable != null && !this._expTable.isEmpty()) {
if (this._expTable.get(level) != null) {
LOGGER.error(this.getClass().getSimpleName() + " _expTable get(level) is: " + String.valueOf(this._expTable.get(level)));
} else {
LOGGER.error(this.getClass().getSimpleName() + " _expTable.get(level) is NULL");
}
} else {
LOGGER.error(this.getClass().getSimpleName() + " _expTable is NULL");
}
return 25314105600L;
}
}
public byte getMaxLevel() {
return this.MAX_LEVEL;
}
public byte getMaxPetLevel() {
return this.MAX_PET_LEVEL;
}
public static ExperienceData getInstance() {
return SingletonHolder._instance;
}
private static class SingletonHolder {
protected static final ExperienceData _instance = new ExperienceData();
private SingletonHolder() {
}
}
}
*****************************************************
Que deberia de editar para subir el maximo ? No tengo el archivo Experience.java si no el nombrado ExperienceData.class !
Gracias !
-L2jAprendiz
Link para o comentário
Compartilhar em outros sites
2 respostass a esta questão
Posts recomendados
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.