Jump to content
  • 0

Maximum level bug, any solution?


Kusaty

Question

Hello everyone, I managed to raise the maximum level in interlude, but I have this bug, it does not remain at 100% nor does it go up normally. any way to fix it?
I use l2jfrozen (interlude)

ex.jpg

Edited by Kusaty
Link to comment
Share on other sites

Recommended Posts

  • 0
7 hours ago, Kusaty said:

Hello everyone, I managed to raise the maximum level in interlude, but I have this bug, it does not remain at 100% nor does it go up normally. any way to fix it?
I use l2jfrozen (interlude)

ex.jpg

 check this work...

Link to comment
Share on other sites

  • 0
2 hours ago, xRelic said:

 check this work...

Thanks for your help brother, but you know, try the one in both posts and follow the visual bug, after lvl81, the bug starts. Something i can do?

Link to comment
Share on other sites

  • 0
1 hour ago, Kusaty said:

Thanks for your help brother, but you know, try the one in both posts and follow the visual bug, after lvl81, the bug starts. Something i can do?

Did you change max level from Experience class?

Link to comment
Share on other sites

  • 0
3 hours ago, Kusaty said:

Thanks for your help brother, but you know, try the one in both posts and follow the visual bug, after lvl81, the bug starts. Something i can do?

something you have forgotten,try to adapt it again.. check level and experience.

Link to comment
Share on other sites

  • 0
2 hours ago, Zake said:

Did you change max level from Experience class?

Quote
/*
 * This program is free software: you can redistribute it and/or modify it under
 * the terms of the GNU General Public License as published by the Free Software
 * Foundation, either version 3 of the License, or (at your option) any later
 * version.
 * 
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
 * details.
 * 
 * You should have received a copy of the GNU General Public License along with
 * this program. If not, see <http://www.gnu.org/licenses/>.
 */
package com.l2jfrozen.gameserver.datatables.xml;

import java.io.File;
import java.util.HashMap;
import java.util.Map;
import java.util.logging.Logger;

import javax.xml.parsers.DocumentBuilderFactory;

import org.w3c.dom.Document;
import org.w3c.dom.NamedNodeMap;
import org.w3c.dom.Node;

import com.l2jfrozen.Config;

/**
 * Based on mrTJO's implementation.
 * @author Zoey76
 */
public class ExperienceData
{
	 public final static long LEVEL[]=
		    {
		                  // level 0 (unreachable)
		                 0L,
		                68L,
		               363L,
		              1168L,
		              2884L,
		              6038L,
		             11287L,
		             19423L,
		             31378L,
		             48229L,  //level 10
		             71201L,
		            101676L,
		            141192L,
		            191452L,
		            254327L,
		            331864L,
		            426284L,
		            539995L,
		            675590L,
		            835854L,  //level 20
		           1023775L,
		           1242536L,
		           1495531L,
		           1786365L,
		           2118860L,
		           2497059L,
		           2925229L,
		           3407873L,
		           3949727L,
		           4555766L,  //level 30
		           5231213L,
		           5981539L,
		           6812472L,
		           7729999L,
		           8740372L,
		           9850111L,
		          11066012L,
		          12395149L,
		          13844879L,
		          15422851L,  //level 40
		          17137002L,
		          18995573L,
		          21007103L,
		          23180442L,
		          25524751L,
		          28049509L,
		          30764519L,
		          33679907L,
		          36806133L,
		          40153995L, //level 50
		          45524865L,
		          51262204L,
		          57383682L,
		          63907585L,
		          70852742L,
		          80700339L,
		          91162131L,
		         102265326L,
		         114038008L,
		         126509030L,  //level 60
		         146307211L,
		         167243291L,
		         189363788L,
		         212716741L,
		         237351413L,
		         271973532L,
		         308441375L,
		         346825235L,
		         387197529L,
		         429632402L,  //level 70
		         474205751L,
		         532692055L,
		         606319094L,
		         696376867L,
		         804219972L,
		         931269476L,
		        1151264834L,
		        1511257834L,
		        2099246434L,
		        4199894964L, //level 80 
		        6299894999L,
		        8399899123L,
		       10499898678L,
		       12599897167L,
		       14699896647L, //level 85
		       16799895345L,
		       18899893795L,
		       20999892567L,
		       23099891768L,
		       25199890178L, //level 90
		       27299899169L,
		       29399898927L,
		       31499897283L,
		       33599896891L,
		       35699895579L, //level 95
		       37799894755L,
		       39899893347L,
		       41999892825L,
		       44099891741L, //level 99
		    };
	private static Logger _log = Logger.getLogger(ExperienceData.class.getName());
	
	private byte MAX_LEVEL;
	private byte MAX_PET_LEVEL;
	
	private final Map<Integer, Long> _expTable = new HashMap<Integer, Long>();
	
	private ExperienceData()
	{
		loadData();
	}
	
	private void loadData()
	{
		final File xml = new File(Config.DATAPACK_ROOT, "data/stats/experience.xml");
		if (!xml.exists())
		{
			_log.warning(getClass().getSimpleName() + ": experience.xml not found!");
			return;
		}
		
		Document doc = null;
		final DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
		factory.setValidating(false);
		factory.setIgnoringComments(true);
		try
		{
			doc = factory.newDocumentBuilder().parse(xml);
		}
		catch (Exception e)
		{
			_log.warning("Could not parse experience.xml: " + e.getMessage());
			return;
		}
		
		final Node table = doc.getFirstChild();
		final NamedNodeMap tableAttr = table.getAttributes();
		
		MAX_LEVEL = (byte) (Byte.parseByte(tableAttr.getNamedItem("maxLevel").getNodeValue()) + 1);
		MAX_PET_LEVEL = (byte) (Byte.parseByte(tableAttr.getNamedItem("maxPetLevel").getNodeValue()) + 1);
		
		_expTable.clear();
		
		NamedNodeMap attrs;
		Integer level;
		Long exp;
		for (Node experience = table.getFirstChild(); experience != null; experience = experience.getNextSibling())
		{
			if (experience.getNodeName().equals("experience"))
			{
				attrs = experience.getAttributes();
				level = Integer.valueOf(attrs.getNamedItem("level").getNodeValue());
				exp = Long.valueOf(attrs.getNamedItem("tolevel").getNodeValue());
				_expTable.put(level, exp);
			}
		}
		
		_log.info(getClass().getSimpleName() + ": Loaded " + _expTable.size() + " levels");
		_log.info(getClass().getSimpleName() + ": Max Player Level is: " + (MAX_LEVEL - 1));
		_log.info(getClass().getSimpleName() + ": Max Pet Level is: " + (MAX_PET_LEVEL - 1));
	}
	
	public long getExpForLevel(int level)
	{
		return _expTable.get(level);
	}
	
	public byte getMaxLevel()
	{
		return MAX_LEVEL;
	}
	
	public byte getMaxPetLevel()
	{
		return MAX_PET_LEVEL;
	}
	
	public static ExperienceData getInstance()
	{
		return SingletonHolder._instance;
	}
	
	@SuppressWarnings("synthetic-access")
	private static class SingletonHolder
	{
		protected static final ExperienceData _instance = new ExperienceData();
	}
}
Quote
<?xml version="1.0" encoding="UTF-8"?>
<table maxLevel="90" maxPetLevel="80" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/experience.xsd">
	<experience level="1" tolevel="0" />
	<experience level="2" tolevel="68" />
	<experience level="3" tolevel="363" />
	<experience level="4" tolevel="1168" />
	<experience level="5" tolevel="2884" />
	<experience level="6" tolevel="6038" />
	<experience level="7" tolevel="11287" />
	<experience level="8" tolevel="19423" />
	<experience level="9" tolevel="31378" />
	<experience level="10" tolevel="48229" />
	<experience level="11" tolevel="71201" />
	<experience level="12" tolevel="101676" />
	<experience level="13" tolevel="141192" />
	<experience level="14" tolevel="191452" />
	<experience level="15" tolevel="254327" />
	<experience level="16" tolevel="331864" />
	<experience level="17" tolevel="426284" />
	<experience level="18" tolevel="539995" />
	<experience level="19" tolevel="675590" />
	<experience level="20" tolevel="835854" />
	<experience level="21" tolevel="1023775" />
	<experience level="22" tolevel="1242536" />
	<experience level="23" tolevel="1495531" />
	<experience level="24" tolevel="1786365" />
	<experience level="25" tolevel="2118860" />
	<experience level="26" tolevel="2497059" />
	<experience level="27" tolevel="2925229" />
	<experience level="28" tolevel="3407873" />
	<experience level="29" tolevel="3949727" />
	<experience level="30" tolevel="4555766" />
	<experience level="31" tolevel="5231213" />
	<experience level="32" tolevel="5981539" />
	<experience level="33" tolevel="6812472" />
	<experience level="34" tolevel="7729999" />
	<experience level="35" tolevel="8740372" />
	<experience level="36" tolevel="9850111" />
	<experience level="37" tolevel="11066012" />
	<experience level="38" tolevel="12395149" />
	<experience level="39" tolevel="13844879" />
	<experience level="40" tolevel="15422851" />
	<experience level="41" tolevel="17137002" />
	<experience level="42" tolevel="18995573" />
	<experience level="43" tolevel="21007103" />
	<experience level="44" tolevel="23180442" />
	<experience level="45" tolevel="25524751" />
	<experience level="46" tolevel="28049509" />
	<experience level="47" tolevel="30764519" />
	<experience level="48" tolevel="33679907" />
	<experience level="49" tolevel="36806133" />
	<experience level="50" tolevel="40153995" />
	<experience level="51" tolevel="45524865" />
	<experience level="52" tolevel="51262204" />
	<experience level="53" tolevel="57383682" />
	<experience level="54" tolevel="63907585" />
	<experience level="55" tolevel="70852742" />
	<experience level="56" tolevel="80700339" />
	<experience level="57" tolevel="91162131" />
	<experience level="58" tolevel="102265326" />
	<experience level="59" tolevel="114038008" />
	<experience level="60" tolevel="126509030" />
	<experience level="61" tolevel="146307211" />
	<experience level="62" tolevel="167243291" />
	<experience level="63" tolevel="189363788" />
	<experience level="64" tolevel="212716741" />
	<experience level="65" tolevel="237351413" />
	<experience level="66" tolevel="271973532" />
	<experience level="67" tolevel="308441375" />
	<experience level="68" tolevel="346825235" />
	<experience level="69" tolevel="387197529" />
	<experience level="70" tolevel="429632402" />
	<experience level="71" tolevel="474205751" />
	<experience level="72" tolevel="532692055" />
	<experience level="73" tolevel="606319094" />
	<experience level="74" tolevel="696376867" />
	<experience level="75" tolevel="804219972" />
	<experience level="76" tolevel="931269476" />
	<experience level="77" tolevel="1151264834" />
	<experience level="78" tolevel="1511257834" />
	<experience level="79" tolevel="2099246434" />
	<experience level="80" tolevel="4199894964" />
	<experience level="81" tolevel="6299894999" />
	<experience level="82" tolevel="8399899123" />
	<experience level="83" tolevel="10499898678" />
	<experience level="84" tolevel="12599897167" />
	<experience level="85" tolevel="14699896647" />
	<experience level="86" tolevel="16799895345" />
	<experience level="87" tolevel="18899893795" />
	<experience level="88" tolevel="20999892567" />
	<experience level="89" tolevel="23099891768" />
	<experience level="90" tolevel="25199890178" />
	<experience level="91" tolevel="27299899169" />
	<experience level="92" tolevel="29399898927" />
	<experience level="93" tolevel="31499897283" />
	<experience level="94" tolevel="33599896891" />
	<experience level="95" tolevel="35699895579" />
	<experience level="96" tolevel="37799894755" />
	<experience level="97" tolevel="39899893347" />
	<experience level="98" tolevel="41999892825" />
	<experience level="99" tolevel="44099891741" />
</table>
Quote
<?xml version="1.0" encoding="UTF-8"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema">
	<element name="table">
		<complexType>
			<sequence minOccurs="1" maxOccurs="1">
				<element name="experience" minOccurs="1" maxOccurs="90">
					<complexType>
						<attribute name="level" use="required">
							<simpleType>
								<restriction base="positiveInteger">
									<minInclusive value="1" />
									<maxInclusive value="90" />
								</restriction>
							</simpleType>
						</attribute>
						<attribute name="tolevel" type="nonNegativeInteger" use="required" />
					</complexType>
				</element>
			</sequence>
			<attribute name="maxLevel" use="required">
				<simpleType>
					<restriction base="positiveInteger">
						<minInclusive value="1" />
						<maxInclusive value="90" />
					</restriction>
				</simpleType>
			</attribute>
			<attribute name="maxPetLevel" use="required">
				<simpleType>
					<restriction base="positiveInteger">
						<minInclusive value="1" />
						<maxInclusive value="90" />
					</restriction>
				</simpleType>
			</attribute>
		</complexType>
	</element>
</schema>

Those codes I used, what should I change to avoid having this bug?

1 hour ago, xRelic said:

something you have forgotten,try to adapt it again.. check level and experience.

Quote
/*
 * This program is free software: you can redistribute it and/or modify it under
 * the terms of the GNU General Public License as published by the Free Software
 * Foundation, either version 3 of the License, or (at your option) any later
 * version.
 * 
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
 * details.
 * 
 * You should have received a copy of the GNU General Public License along with
 * this program. If not, see <http://www.gnu.org/licenses/>.
 */
package com.l2jfrozen.gameserver.datatables.xml;

import java.io.File;
import java.util.HashMap;
import java.util.Map;
import java.util.logging.Logger;

import javax.xml.parsers.DocumentBuilderFactory;

import org.w3c.dom.Document;
import org.w3c.dom.NamedNodeMap;
import org.w3c.dom.Node;

import com.l2jfrozen.Config;

/**
 * Based on mrTJO's implementation.
 * @author Zoey76
 */
public class ExperienceData
{
	 public final static long LEVEL[]=
		    {
		                  // level 0 (unreachable)
		                 0L,
		                68L,
		               363L,
		              1168L,
		              2884L,
		              6038L,
		             11287L,
		             19423L,
		             31378L,
		             48229L,  //level 10
		             71201L,
		            101676L,
		            141192L,
		            191452L,
		            254327L,
		            331864L,
		            426284L,
		            539995L,
		            675590L,
		            835854L,  //level 20
		           1023775L,
		           1242536L,
		           1495531L,
		           1786365L,
		           2118860L,
		           2497059L,
		           2925229L,
		           3407873L,
		           3949727L,
		           4555766L,  //level 30
		           5231213L,
		           5981539L,
		           6812472L,
		           7729999L,
		           8740372L,
		           9850111L,
		          11066012L,
		          12395149L,
		          13844879L,
		          15422851L,  //level 40
		          17137002L,
		          18995573L,
		          21007103L,
		          23180442L,
		          25524751L,
		          28049509L,
		          30764519L,
		          33679907L,
		          36806133L,
		          40153995L, //level 50
		          45524865L,
		          51262204L,
		          57383682L,
		          63907585L,
		          70852742L,
		          80700339L,
		          91162131L,
		         102265326L,
		         114038008L,
		         126509030L,  //level 60
		         146307211L,
		         167243291L,
		         189363788L,
		         212716741L,
		         237351413L,
		         271973532L,
		         308441375L,
		         346825235L,
		         387197529L,
		         429632402L,  //level 70
		         474205751L,
		         532692055L,
		         606319094L,
		         696376867L,
		         804219972L,
		         931269476L,
		        1151264834L,
		        1511257834L,
		        2099246434L,
		        4199894964L, //level 80 
		        6299894999L,
		        8399899123L,
		       10499898678L,
		       12599897167L,
		       14699896647L, //level 85
		       16799895345L,
		       18899893795L,
		       20999892567L,
		       23099891768L,
		       25199890178L, //level 90
		       27299899169L,
		       29399898927L,
		       31499897283L,
		       33599896891L,
		       35699895579L, //level 95
		       37799894755L,
		       39899893347L,
		       41999892825L,
		       44099891741L, //level 99
		    };
	private static Logger _log = Logger.getLogger(ExperienceData.class.getName());
	
	private byte MAX_LEVEL;
	private byte MAX_PET_LEVEL;
	
	private final Map<Integer, Long> _expTable = new HashMap<Integer, Long>();
	
	private ExperienceData()
	{
		loadData();
	}
	
	private void loadData()
	{
		final File xml = new File(Config.DATAPACK_ROOT, "data/stats/experience.xml");
		if (!xml.exists())
		{
			_log.warning(getClass().getSimpleName() + ": experience.xml not found!");
			return;
		}
		
		Document doc = null;
		final DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
		factory.setValidating(false);
		factory.setIgnoringComments(true);
		try
		{
			doc = factory.newDocumentBuilder().parse(xml);
		}
		catch (Exception e)
		{
			_log.warning("Could not parse experience.xml: " + e.getMessage());
			return;
		}
		
		final Node table = doc.getFirstChild();
		final NamedNodeMap tableAttr = table.getAttributes();
		
		MAX_LEVEL = (byte) (Byte.parseByte(tableAttr.getNamedItem("maxLevel").getNodeValue()) + 1);
		MAX_PET_LEVEL = (byte) (Byte.parseByte(tableAttr.getNamedItem("maxPetLevel").getNodeValue()) + 1);
		
		_expTable.clear();
		
		NamedNodeMap attrs;
		Integer level;
		Long exp;
		for (Node experience = table.getFirstChild(); experience != null; experience = experience.getNextSibling())
		{
			if (experience.getNodeName().equals("experience"))
			{
				attrs = experience.getAttributes();
				level = Integer.valueOf(attrs.getNamedItem("level").getNodeValue());
				exp = Long.valueOf(attrs.getNamedItem("tolevel").getNodeValue());
				_expTable.put(level, exp);
			}
		}
		
		_log.info(getClass().getSimpleName() + ": Loaded " + _expTable.size() + " levels");
		_log.info(getClass().getSimpleName() + ": Max Player Level is: " + (MAX_LEVEL - 1));
		_log.info(getClass().getSimpleName() + ": Max Pet Level is: " + (MAX_PET_LEVEL - 1));
	}
	
	public long getExpForLevel(int level)
	{
		return _expTable.get(level);
	}
	
	public byte getMaxLevel()
	{
		return MAX_LEVEL;
	}
	
	public byte getMaxPetLevel()
	{
		return MAX_PET_LEVEL;
	}
	
	public static ExperienceData getInstance()
	{
		return SingletonHolder._instance;
	}
	
	@SuppressWarnings("synthetic-access")
	private static class SingletonHolder
	{
		protected static final ExperienceData _instance = new ExperienceData();
	}
}
Quote
<?xml version="1.0" encoding="UTF-8"?>
<table maxLevel="90" maxPetLevel="80" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/experience.xsd">
	<experience level="1" tolevel="0" />
	<experience level="2" tolevel="68" />
	<experience level="3" tolevel="363" />
	<experience level="4" tolevel="1168" />
	<experience level="5" tolevel="2884" />
	<experience level="6" tolevel="6038" />
	<experience level="7" tolevel="11287" />
	<experience level="8" tolevel="19423" />
	<experience level="9" tolevel="31378" />
	<experience level="10" tolevel="48229" />
	<experience level="11" tolevel="71201" />
	<experience level="12" tolevel="101676" />
	<experience level="13" tolevel="141192" />
	<experience level="14" tolevel="191452" />
	<experience level="15" tolevel="254327" />
	<experience level="16" tolevel="331864" />
	<experience level="17" tolevel="426284" />
	<experience level="18" tolevel="539995" />
	<experience level="19" tolevel="675590" />
	<experience level="20" tolevel="835854" />
	<experience level="21" tolevel="1023775" />
	<experience level="22" tolevel="1242536" />
	<experience level="23" tolevel="1495531" />
	<experience level="24" tolevel="1786365" />
	<experience level="25" tolevel="2118860" />
	<experience level="26" tolevel="2497059" />
	<experience level="27" tolevel="2925229" />
	<experience level="28" tolevel="3407873" />
	<experience level="29" tolevel="3949727" />
	<experience level="30" tolevel="4555766" />
	<experience level="31" tolevel="5231213" />
	<experience level="32" tolevel="5981539" />
	<experience level="33" tolevel="6812472" />
	<experience level="34" tolevel="7729999" />
	<experience level="35" tolevel="8740372" />
	<experience level="36" tolevel="9850111" />
	<experience level="37" tolevel="11066012" />
	<experience level="38" tolevel="12395149" />
	<experience level="39" tolevel="13844879" />
	<experience level="40" tolevel="15422851" />
	<experience level="41" tolevel="17137002" />
	<experience level="42" tolevel="18995573" />
	<experience level="43" tolevel="21007103" />
	<experience level="44" tolevel="23180442" />
	<experience level="45" tolevel="25524751" />
	<experience level="46" tolevel="28049509" />
	<experience level="47" tolevel="30764519" />
	<experience level="48" tolevel="33679907" />
	<experience level="49" tolevel="36806133" />
	<experience level="50" tolevel="40153995" />
	<experience level="51" tolevel="45524865" />
	<experience level="52" tolevel="51262204" />
	<experience level="53" tolevel="57383682" />
	<experience level="54" tolevel="63907585" />
	<experience level="55" tolevel="70852742" />
	<experience level="56" tolevel="80700339" />
	<experience level="57" tolevel="91162131" />
	<experience level="58" tolevel="102265326" />
	<experience level="59" tolevel="114038008" />
	<experience level="60" tolevel="126509030" />
	<experience level="61" tolevel="146307211" />
	<experience level="62" tolevel="167243291" />
	<experience level="63" tolevel="189363788" />
	<experience level="64" tolevel="212716741" />
	<experience level="65" tolevel="237351413" />
	<experience level="66" tolevel="271973532" />
	<experience level="67" tolevel="308441375" />
	<experience level="68" tolevel="346825235" />
	<experience level="69" tolevel="387197529" />
	<experience level="70" tolevel="429632402" />
	<experience level="71" tolevel="474205751" />
	<experience level="72" tolevel="532692055" />
	<experience level="73" tolevel="606319094" />
	<experience level="74" tolevel="696376867" />
	<experience level="75" tolevel="804219972" />
	<experience level="76" tolevel="931269476" />
	<experience level="77" tolevel="1151264834" />
	<experience level="78" tolevel="1511257834" />
	<experience level="79" tolevel="2099246434" />
	<experience level="80" tolevel="4199894964" />
	<experience level="81" tolevel="6299894999" />
	<experience level="82" tolevel="8399899123" />
	<experience level="83" tolevel="10499898678" />
	<experience level="84" tolevel="12599897167" />
	<experience level="85" tolevel="14699896647" />
	<experience level="86" tolevel="16799895345" />
	<experience level="87" tolevel="18899893795" />
	<experience level="88" tolevel="20999892567" />
	<experience level="89" tolevel="23099891768" />
	<experience level="90" tolevel="25199890178" />
	<experience level="91" tolevel="27299899169" />
	<experience level="92" tolevel="29399898927" />
	<experience level="93" tolevel="31499897283" />
	<experience level="94" tolevel="33599896891" />
	<experience level="95" tolevel="35699895579" />
	<experience level="96" tolevel="37799894755" />
	<experience level="97" tolevel="39899893347" />
	<experience level="98" tolevel="41999892825" />
	<experience level="99" tolevel="44099891741" />
</table>
Quote
<?xml version="1.0" encoding="UTF-8"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema">
	<element name="table">
		<complexType>
			<sequence minOccurs="1" maxOccurs="1">
				<element name="experience" minOccurs="1" maxOccurs="90">
					<complexType>
						<attribute name="level" use="required">
							<simpleType>
								<restriction base="positiveInteger">
									<minInclusive value="1" />
									<maxInclusive value="90" />
								</restriction>
							</simpleType>
						</attribute>
						<attribute name="tolevel" type="nonNegativeInteger" use="required" />
					</complexType>
				</element>
			</sequence>
			<attribute name="maxLevel" use="required">
				<simpleType>
					<restriction base="positiveInteger">
						<minInclusive value="1" />
						<maxInclusive value="90" />
					</restriction>
				</simpleType>
			</attribute>
			<attribute name="maxPetLevel" use="required">
				<simpleType>
					<restriction base="positiveInteger">
						<minInclusive value="1" />
						<maxInclusive value="90" />
					</restriction>
				</simpleType>
			</attribute>
		</complexType>
	</element>
</schema>

Exactly those codes I use, what should I modify? Sorry if I am somewhat annoying, I am not an expert on this matter, but I try to learn.

Link to comment
Share on other sites

  • 0

Omg Guys!!

<code>

    public final static long LEVEL[] =
    {
        -1L, // level 0 (unreachable)
        0L,
        68L,
        363L,
        1168L,
        2884L,
        6038L,
        11287L,
        19423L,
        31378L,
        48229L, // level 10
        71201L,
        101676L,
        141192L,
        191452L,
        254327L,
        331864L,
        426284L,
        539995L,
        675590L,
        835854L, // level 20
        1023775L,
        1242536L,
        1495531L,
        1786365L,
        2118860L,
        2497059L,
        2925229L,
        3407873L,
        3949727L,
        4555766L, // level 30
        5231213L,
        5981539L,
        6812472L,
        7729999L,
        8740372L,
        9850111L,
        11066012L,
        12395149L,
        13844879L,
        15422851L, // level 40
        17137002L,
        18995573L,
        21007103L,
        23180442L,
        25524751L,
        28049509L,
        30764519L,
        33679907L,
        36806133L,
        40153995L, // level 50
        45524865L,
        51262204L,
        57383682L,
        63907585L,
        70852742L,
        80700339L,
        91162131L,
        102265326L,
        114038008L,
        126509030L, // level 60
        146307211L,
        167243291L,
        189363788L,
        212716741L,
        237351413L,
        271973532L,
        308441375L,
        346825235L,
        387197529L,
        429632402L, // level 70
        474205751L,
        532692055L,
        606319094L,
        696376867L,
        804219972L,
        931275828L,
        1151275834L,
        1511275834L,
        2099275834L,
        4200000000L, // level 80
        6300000000L, // level 81
        8820000000L, // level 82
        11844000000L, // level 83
        15472800000L, // level 84
        19827360000L, // level 85
        25314000000L, //level 86
        32212040000L, //level 87
        40489040000L, //level 88
        50421040000L, //level 89
        63424000000L, //level 90
        79026500000L, //level 91
        97751000000L, //level 92
        121156000000L, //level 93
        149242000000L, //level 94
        182946000000L, //level 95

</code>

 

 

Edited by MegaCheat
Link to comment
Share on other sites

  • 0
14 hours ago, Romotheone said:

How did this visual bug happen? Did you add XP to your character or did you receive the XP by killing monsters?

When you start killing monsters up to level 81 the bar moves normally, then the error begins in the bar and no longer moves.

12 hours ago, ThelwHelpRePaidia said:

You need to edit the baseStat from every Class

where should i look? so I fix it now.

13 hours ago, MegaCheat said:

Omg Guys!!

<code>

    public final static long LEVEL[] =
    {
        -1L, // level 0 (unreachable)
        0L,
        68L,
        363L,
        1168L,
        2884L,
        6038L,
        11287L,
        19423L,
        31378L,
        48229L, // level 10
        71201L,
        101676L,
        141192L,
        191452L,
        254327L,
        331864L,
        426284L,
        539995L,
        675590L,
        835854L, // level 20
        1023775L,
        1242536L,
        1495531L,
        1786365L,
        2118860L,
        2497059L,
        2925229L,
        3407873L,
        3949727L,
        4555766L, // level 30
        5231213L,
        5981539L,
        6812472L,
        7729999L,
        8740372L,
        9850111L,
        11066012L,
        12395149L,
        13844879L,
        15422851L, // level 40
        17137002L,
        18995573L,
        21007103L,
        23180442L,
        25524751L,
        28049509L,
        30764519L,
        33679907L,
        36806133L,
        40153995L, // level 50
        45524865L,
        51262204L,
        57383682L,
        63907585L,
        70852742L,
        80700339L,
        91162131L,
        102265326L,
        114038008L,
        126509030L, // level 60
        146307211L,
        167243291L,
        189363788L,
        212716741L,
        237351413L,
        271973532L,
        308441375L,
        346825235L,
        387197529L,
        429632402L, // level 70
        474205751L,
        532692055L,
        606319094L,
        696376867L,
        804219972L,
        931275828L,
        1151275834L,
        1511275834L,
        2099275834L,
        4200000000L, // level 80
        6300000000L, // level 81
        8820000000L, // level 82
        11844000000L, // level 83
        15472800000L, // level 84
        19827360000L, // level 85
        25314000000L, //level 86
        32212040000L, //level 87
        40489040000L, //level 88
        50421040000L, //level 89
        63424000000L, //level 90
        79026500000L, //level 91
        97751000000L, //level 92
        121156000000L, //level 93
        149242000000L, //level 94
        182946000000L, //level 95

</code>

 

 

Check bro 😞 other solution?

 

exp worg.jpg

Link to comment
Share on other sites

  • 0

@Kusaty i dont know exactly where is in frozen if you can give me a link from your pack and search i can tell you but you can look in data folder and stats

Link to comment
Share on other sites

  • 0

Stats have nothing to do with the EXP bar. It's all about the values you set, and I did calculate a couple of them from the initial topic and they're wrongly calculated. Did you randomly add those values or did you find a pattern?

Link to comment
Share on other sites

  • 0
1 hour ago, xRelic said:

it's not visual bug, he just need to reinstall code again...something miss.

I have the same code and work perfect.

Can you show me your code ?, so I'll buy it with mine and fix it.
 

Link to comment
Share on other sites

  • 0

     I managed to solve the problem, I leave the solution here for those who had the same problem.

        com.l2jfrozen.gameserver.datatables.xml

        4200000000L, // level 80
        6299994999L, // level 81
        10499905559L, // level 82
        16800005559L, // level 83
        27299995559L, // level 84
        44100005559L, // level 85
        71400000000L, //level 86
        115500000000L, //level 87
        186900000000L, //level 88
        302400000000L, //level 89
        489300000000L, //level 90
        791690000000L, //level 91



<?xml version="1.0" encoding="UTF-8"?>
<table maxLevel="90" maxPetLevel="80" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/experience.xsd">
    
    <experience level="81" tolevel="6299994999" />
    <experience level="82" tolevel="10499905559" />
    <experience level="83" tolevel="16800005559" />
    <experience level="84" tolevel="27299995559" />
    <experience level="85" tolevel="44100005559" />
    <experience level="86" tolevel="71400000000" />
    <experience level="87" tolevel="115500000000" />
    <experience level="88" tolevel="186900000000" />
    <experience level="89" tolevel="302400000000" />
    <experience level="90" tolevel="489300000000" />
    <experience level="91" tolevel="791690000000" />
 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


×
×
  • Create New...