Ir para conteúdo
  • Cadastre-se
  • 0

Ayuda Subir de LVL MAX L2JSUNRISE


amarhat13

Pergunta

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


  • 0
En 2/9/2022 a las 5:15, the_coca_ dijo:

Es mas complejo que solo cambiar los niveles tenes que adaptar todo el servidor a el cambio yo no lo recomiendo, pero aca te dejo esto 

Gracias por la repuesta, pude lograr incrementarlo sin tocar el Source, desde el "experience.xsd y el experience.xml" tambien agregando los stats de cada clase en la ruta "game\data\xml\stats\chars\baseStats"

El problema es que la barra de experiencia se buguea arriba del lvl 87, Preferí dejarlo en lvl 85 MAX.

-L2jAprendiz

Link para o comentário
Compartilhar em outros sites

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.

Visitante
Responder esta pergunta...

×   Você colou conteúdo com formatação.   Remover formatação

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Processando...




×
×
  • Criar Novo...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.