Jump to content
  • 0

Rebirth System L2J High Five


mrnapz

Question

15 answers to this question

Recommended Posts

  • 0

Experience in h5 are now in .xml :S

can someone help fix that?

    [javac] Compiling 1644 source files to C:\Users\MrNapz\workspace\L2J_GameServer\GameServer\build\classes
    [javac] C:\Users\MrNapz\workspace\L2J_GameServer\GameServer\java\com\l2jserver\gameserver\model\entity\RebirthManager.java:14: error: cannot find symbol
    [javac] import com.l2jserver.gameserver.model.base.Experience;
    [javac]                                       ^
    [javac]   symbol:   class Experience
    [javac]   location: package com.l2jserver.gameserver.model.base
    [javac] C:\Users\MrNapz\workspace\L2J_GameServer\GameServer\java\com\l2jserver\gameserver\model\entity\RebirthManager.java:174: error: cannot find symbol
    [javac] 			player.removeExpAndSp(player.getExp() - Experience.LEVEL[Config.REBIRTH_AFTER_LEVEL], 0);//Set player to level 1.
    [javac] 			                                        ^
    [javac]   symbol:   variable Experience
    [javac]   location: class RebirthManager
    [javac] C:\Users\MrNapz\workspace\L2J_GameServer\GameServer\java\com\l2jserver\gameserver\model\entity\RebirthManager.java:180: error: method giveAvailableSkills in class L2PcInstance cannot be applied to given types;
    [javac] 			player.giveAvailableSkills();//Give players their eligible skills.
    [javac] 			      ^
    [javac]   required: boolean,boolean
    [javac]   found: no arguments
    [javac]   reason: actual and formal argument lists differ in length

 

 

Experiencetable.java in h5

/*
* 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.l2jserver.gameserver.datatables;

import java.io.File;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
import java.util.logging.Level;
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.l2jserver.Config;

/**
* @author mrTJO
*
*/
public class ExperienceTable
{
private static Logger _log = Logger.getLogger(ExperienceTable.class.getName());
private byte MAX_LEVEL;
private byte MAX_PET_LEVEL;

private Map<Integer, Long> _expTable;

public static ExperienceTable getInstance()
{
	return SingletonHolder._instance;
}

private ExperienceTable()
{
	loadTable();
}

private void loadTable()
{
	File xml = new File(Config.DATAPACK_ROOT, "data/stats/experience.xml");
	Document doc = null;
	DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
	factory.setValidating(false);
	factory.setIgnoringComments(true);
	if (xml.exists())
	{
		try
		{
			doc = factory.newDocumentBuilder().parse(xml);
		}
		catch (IOException e)
		{
			_log.log(Level.WARNING, "Could not read experience.xml table: " + e.getMessage(), e);
		}
		catch (Exception e)
		{
			_log.log(Level.WARNING, "Could not parse experience.xml table: " + e.getMessage(), e);
		}

		Node table = doc.getFirstChild();
		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 = new HashMap<Integer, Long>(MAX_LEVEL+1);

		for (Node experience = table.getFirstChild(); experience != null; experience = experience.getNextSibling())
		{
			if (experience.getNodeName().equals("experience"))
			{
				NamedNodeMap attrs = experience.getAttributes();
				int level = Integer.parseInt(attrs.getNamedItem("level").getNodeValue());
				long exp = Long.parseLong(attrs.getNamedItem("tolevel").getNodeValue());

				_expTable.put(level, exp);
			}
		}

		_log.info("ExperienceTable: Loaded "+_expTable.size()+" levels");
		_log.info("ExperienceTable: Max Player Level is: "+(MAX_LEVEL-1));
		_log.info("ExperienceTable: Max Pet Level is: "+(MAX_PET_LEVEL-1));
	}
	else
		_log.warning("ExperienceTable: experience.xml not found!");
}

public long getExpForLevel(int level)
{
	return _expTable.get(level);
}

public byte getMaxLevel()
{
	return MAX_LEVEL;
}

public byte getMaxPetLevel()
{
	return MAX_PET_LEVEL;
}

@SuppressWarnings("synthetic-access")
private static class SingletonHolder
{
	protected static final ExperienceTable _instance = new ExperienceTable();
}
}

Link to comment
Share on other sites

  • 0

wrong section, locked until move

 

why before you lock it you dont help? :/ i know you're a good coder you can fix it so easy and if you helped it passed from "request" to a "share" but np. I think "friendship" is better than good code, and some people cant have "friendship" here.

Link to comment
Share on other sites

  • 0

i have a life, and i entered mainly to check for wrong section/title topics. If i have some more time, i answer short question that community dont know to handle (those with 0 replies). But yours would need to go though the code, both diffs and project destination, and i lack the time to do so.

 

But if you like to post crap like that i can tell you as well that noone teached me how to code or answer me a question like that. So, i can easly tell you to learn by your own and fix your problems

Link to comment
Share on other sites

  • 0

i have a life, and i entered mainly to check for wrong section/title topics. If i have some more time, i answer short question that community dont know to handle (those with 0 replies). But yours would need to go though the code, both diffs and project destination, and i lack the time to do so.

 

But if you like to post crap like that i can tell you as well that noone teached me how to code or answer me a question like that. So, i can easly tell you to learn by your own and fix your problems

 

im not telling you or coders like you dont have life, maybe you cant help in "crap" posts like this cause maybe your free time to code you spent only for code for l2j private source, but that's not the question i think in this forum we share and help each other and im learning java by myself too, noone is teaching me, but i do not request if i do not really need it, and i anwered you on that way cause i know have really good coders here and noone help me, and the answer was too others see too. Imagine you on my side, you reallly need one thing and you know here have people who can help you, and all ignore you, how it feels? Good? Remmember this fix is not only for me, its for all who cames to maxcheaters. And im not saying you really have to answer to this request by fixing, cause you are not the only good coder here, and ofc they have life, but in someone life noone have 5 minutes to spent to help me? is that too much time? so someone help me spent 1 minute of life to help me.

 

Thanks and sorry B1ggBoss but its what i feel.

Link to comment
Share on other sites

  • 0

i would learn bymyself, thanks to the lots of guides, tutorial and books shared in the net, so, in my case, there would not be any feeling, cause i would not even made the question.

 

Do the same and you will learn how to find your own answer without depending on the rest

Link to comment
Share on other sites

  • 0

i would learn bymyself, thanks to the lots of guides, tutorial and books shared in the net, so, in my case, there would not be any feeling, cause i would not even made the question.

 

Do the same and you will learn how to find your own answer without depending on the rest

 

I know B1gB0ss thats what i've done all this time i work with l2j and you know java is not so easy to learn, all takes time but i can't re-open my sv with out this mod. :/

Link to comment
Share on other sites

  • 0

I know B1gB0ss thats what i've done all this time i work with l2j and you know java is not so easy to learn, all takes time but i can't re-open my sv with out this mod. :/

Then do not open it. Learn how to control a L2J with some knowledge and then when you are ready you can open your server again
Link to comment
Share on other sites

  • 0

Then do not open it. Learn how to control a L2J with some knowledge and then when you are ready you can open your server again

 

i think thats the best help i ever had, i think with that help i can fix the java code.

 

 

btw, if i fix it by myself i will pwn you all who criticize-me

Link to comment
Share on other sites

  • 0

How would you 'pwn' them, exactly?

 

by fixing it by myself, is that their criticizes, so is that i will show them i will do it by myself and show i will not request more help of people like this. Is that the "pwn" and for other people who need requests and read that topic, please dont request, they will do the same as me only criticizes who is learning java and who need some help too.

 

Any mod please delete this topic, this is not a request anymore, and btw delete the request section it is useless or maybe is only for me. Cause i request a "crap" like someone said in some topic here, maybe its the most "crap" request here on mxc.

 

and btw the best coders here are hNoke and Rizel without any questions cause they have life, have lots of work, and much more, but they when have some time they help without any problems.

 

ps: they are not "certified by oracle" i think.

 

please any mod really delete this topic, cause its will only bring "fight" in forum and i dont want it. so if not closed i will ignore all posts after that.

Link to comment
Share on other sites

  • 0

by fixing it by myself, is that their criticizes, so is that i will show them i will do it by myself and show i will not request more help of people like this. Is that the "pwn" and for other people who need requests and read that topic, please dont request, they will do the same as me only criticizes who is learning java and who need some help too.

 

Any mod please delete this topic, this is not a request anymore, and btw delete the request section it is useless or maybe is only for me. Cause i request a "crap" like someone said in some topic here, maybe its the most "crap" request here on mxc.

 

and btw the best coders here are hNoke and Rizel without any questions cause they have life, have lots of work, and much more, but they when have some time they help without any problems.

 

ps: they are not "certified by oracle" i think.

 

please any mod really delete this topic, cause its will only bring "fight" in forum and i dont want it. so if not closed i will ignore all posts after that.

See? Thats how it feels when you dont need anyone's help.

 

Its better when your fixing something on your own instead of some random dude posting it ready for you, if this happens, then you'll never learn

Link to comment
Share on other sites

  • 0

by fixing it by myself, is that their criticizes, so is that i will show them i will do it by myself and show i will not request more help of people like this. Is that the "pwn" and for other people who need requests and read that topic, please dont request, they will do the same as me only criticizes who is learning java and who need some help too.

 

Any mod please delete this topic, this is not a request anymore, and btw delete the request section it is useless or maybe is only for me. Cause i request a "crap" like someone said in some topic here, maybe its the most "crap" request here on mxc.

 

and btw the best coders here are hNoke and Rizel without any questions cause they have life, have lots of work, and much more, but they when have some time they help without any problems.

 

ps: they are not "certified by oracle" i think.

 

please any mod really delete this topic, cause its will only bring "fight" in forum and i dont want it. so if not closed i will ignore all posts after that.

 

It's not useless. you came on here asking people to make something for you. Not only that but you make a post with what seems like very easy errors to correct if you had any idea what you were doing.

 

First thing, you had a problem about not helping you with your problem before moving your thread. I don't understand why you'd get antzy about that, the post was in the wrong section.

 

Second, nobody here owes you anything so stop acting like people are are obligated to help you with your issues. These errors are simple and if you knew the basics you could probabaly solve them yourself. Nobody is here to help you deal with basic bullshit. You should come here with a basic understanding of the subject before throwing hissy fits about it. Honestly, when I read your posts I imagine an ape throwing shit around a room because he couldn't play with a shinny object.

 

And fixing something yourself would 'pwn' them? Nobody gives a shit about it. The only thing you're doing is fixing it yourself. It's not an ego showdown here. The best advice I've seen so far is:

Then do not open it.

 

It's pretty obvious you have no clue what you're doing and you have no interest in learning, therefor solving problems for you is just making you unprepared for the next set of problems you run into.

 

 

Link to comment
Share on other sites

  • 0

Sorry for posting in an old thread.... But... It's incredible, people ask for a little bit of help and you all attack him saying stupid things as "do it by yourself" pfff, so, why the fack did he post the thread? because he could do it? c'mon, if u don't have the freakin' time to help him don't answer things like that and just let others do the job that you couldn't...

Link to comment
Share on other 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.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  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.



  • Posts

    • GOSTEI MUITO DO VIASUAL DO SERVE COMO POSSO ADQUIRI ESSA REV PACK   
    • Helly everyone . I use L2jmobius interlude , i did everything , installed the db compiled the Build in eclipse Gameserver seems to lead OK , but it fails to connect to loginserver When i click to start the loginserver it says  "Loginserver terminated abnormally" This is wheat gameserver shows me :    [05/10 17:25:12] LoginServerThread: Connecting to login on 127.0.0.1:9014 [05/10 17:25:12] LoginServerThread: LoginServer not available, trying to reconnect... [05/10 17:25:17] LoginServerThread: Connecting to login on 127.0.0.1:9014 [05/10 17:25:17] LoginServerThread: LoginServer not available, trying to reconnect... [05/10 17:25:22] LoginServerThread: Connecting to login on 127.0.0.1:9014 [05/10 17:25:22] LoginServerThread: LoginServer not available, trying to reconnect...   And This is my login config file:   # --------------------------------------------------------------------------- # Login Server Settings # --------------------------------------------------------------------------- # This is the server configuration file. Here you can set up the connection information for your server. # This was written with the assumption that you are behind a router. # Dumbed Down Definitions... # LAN (LOCAL area network) - typically consists of computers connected to the same router as you. # WAN (WIDE area network) - typically consists of computers OUTSIDE of your router (ie. the internet). # x.x.x.x - Format of an IP address. Do not include the x'es into settings. Must be real numbers. # --------------------------------------------------------------------------- # Networking # --------------------------------------------------------------------------- # Bind ip of the LoginServer, use 0.0.0.0 to bind on all available IPs # WARNING: <u><b><font color="red">Please don't change default IPs here if you don't know what are you doing!</font></b></u> # WARNING: <u><b><font color="red">External/Internal IPs are now inside "ipconfig.xml" file.</font></b></u> # Default: 0.0.0.0 LoginserverHostname = 0.0.0.0 # Default: 2106 LoginserverPort = 2106 # The address on which login will listen for GameServers, use * to bind on all available IPs # WARNING: <u><b><font color="red">Please don't change default IPs here if you don't know what are you doing!</font></b></u> # WARNING: <u><b><font color="red">External/Internal IPs are now inside "ipconfig.xml" file.</font></b></u> # Default: 127.0.0.1 LoginHostname = 127.0.0.1 # The port on which login will listen for GameServers # Default: 9014 LoginPort = 9014 # --------------------------------------------------------------------------- # Database # --------------------------------------------------------------------------- # Specify the JDBC driver class for your database. # Default: org.mariadb.jdbc.Driver Driver = org.mariadb.jdbc.Driver # Database URL # Default: jdbc:mariadb://localhost/l2jmobiusinterlude?useUnicode=true&characterEncoding=utf-8&useSSL=false&connectTimeout=10000&interactiveClient=true&sessionVariables=wait_timeout=600,interactive_timeout=600&autoReconnect=true URL = jdbc:mariadb://localhost/l2jmobiusinterlude?useUnicode=true&characterEncoding=utf-8&useSSL=false&connectTimeout=10000&interactiveClient=true&sessionVariables=wait_timeout=600,interactive_timeout=600&autoReconnect=true # Database user info. Default is "root" but it's not recommended. Login = root # Database user password, leave empty for no password. Password = root # Maximum number of database connections to maintain in the pool. # Default: 5 MaximumDatabaseConnections = 5 # Determine whether database connections should be tested for availability. # Default: False TestDatabaseConnections = False # --------------------------------------------------------------------------- # Automatic Database Backup Settings # --------------------------------------------------------------------------- # Generate database backups when server restarts or shuts down.  BackupDatabase = False # Path to MySQL bin folder. Only necessary on Windows. MySqlBinLocation = C:/xampp/mysql/bin/ # Path where MySQL backups are stored. BackupPath = ../backup/ # Maximum number of days that backups will be kept. # Old files in backup folder will be deleted. # Set to 0 to disable. BackupDays = 30 # --------------------------------------------------------------------------- # Thread Configuration # --------------------------------------------------------------------------- # Defines the number of threads in the scheduled thread pool. # If set to -1, this will be determined by available processors divided by 2. ScheduledThreadPoolSize = 2 # Defines the number of threads in the instant thread pool. # If set to -1, this will be determined by available processors divided by 2. InstantThreadPoolSize = 2 # --------------------------------------------------------------------------- # Security # --------------------------------------------------------------------------- # How many times you can provide an invalid account/pass before the IP gets banned. # Default: 5 LoginTryBeforeBan = 5 # Time you won't be able to login back again after LoginTryBeforeBan tries to login. # Default: 900 (15 minutes) LoginBlockAfterBan = 900 # If set to True any GameServer can register on your login's free slots # Default: True AcceptNewGameServer = True # Flood Protection. All values are in milliseconds. # Default: True EnableFloodProtection = True # Default: 15 FastConnectionLimit = 15 # Default: 700 NormalConnectionTime = 700 # Default: 350 FastConnectionTime = 350 # Default: 50 MaxConnectionPerIP = 50 # --------------------------------------------------------------------------- # Misc Login Settings # --------------------------------------------------------------------------- # If False, the license (after the login) will not be shown. # Default: True ShowLicence = True # Default: True AutoCreateAccounts = True # Datapack root directory. # Defaults to current directory from which the server is started. DatapackRoot = . # --------------------------------------------------------------------------- # Scheduled Login Restart # --------------------------------------------------------------------------- # Enable disable scheduled login restart. # Default: False LoginRestartSchedule = False # Time in hours. # Default: 24 LoginRestartTime = 24    
    • or at least to tell you an update that sorry but still not at home.. 10 days is suspisious.. but he is long time offline from discord indeed... maybe something happened?
  • Topics

×
×
  • Create New...