Jump to content
  • 0

Rebirth System L2J High Five


Question

15 answers to this question

Recommended Posts

  • 0
Posted

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();
}
}

  • 0
Posted

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.

  • 0
Posted

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

  • 0
Posted

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.

  • 0
Posted

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

  • 0
Posted

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. :/

  • 0
Posted

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
  • 0
Posted

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

  • 0
Posted

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.

  • 0
Posted

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

  • 0
Posted

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.

 

 

  • 0
Posted

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...

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

    • Продам комплекты (Custom Colour) Apella Сеты. Контакт со мной/Contact with me  Telegram. Custom Colour Apella Light YouTube Video
    • haha, I don't say it, chatgpt says it. discuss it with him if you have problems 😉 or sue chatgpt for lying, for example when he tells you that you are an idiot and tells you that I do things that are light years ahead of you.
    • hey i make enough to live comfortably you, on the other hand... doubt that'd be the case if you were as competent as you claim to be
    • all your doubts ask chatgpt, also ask what you could do yourself hahaha
    • This post originally appeared on MmoGah. Odin: Valhalla Rising is an ambitious open-world MMORPG developed with Unreal Engine 4, offering breathtaking visuals and immersive gameplay. I will share everything you need to know before starting it.     Re-rolling In Odin, re-rolling isn't a practical strategy. Unlike most gacha games, where it's common to reset for better initial pulls, Odin focuses heavily on long-term growth. The earlier you begin playing and developing your character, the more advantages you'll gain over time. Instead of spending your efforts on re-rolling for ideal equipment, it's better to dive in and start progressing right away.   Server Selection Before starting your character, selecting a server is a crucial step. Since Odin doesn't support cross-server gameplay, coordinating with your friends, family, or guildmates is essential to ensure everyone creates their characters on the same server. Take the time to plan with your group beforehand. After deciding on a server, your next major choice will be picking a class.   Class Breakdown Odin features four primary starting classes: Warrior, Sorceress, Rogue, and Priest. Each class comes with its own distinct playstyle and unique strengths, so choose wisely, as your selection is permanent. However, even free-to-play players can create up to three characters on one server, giving you the flexibility to try different options and find the one that matches your preferences.   Quest and Leveling Once your character is created, your initial objective is to work through the main questline. This acts as both a tutorial and a method for early leveling. Odin simplifies the process with a convenient quest button that handles navigation, starts dialogues, and even enables auto-combat. This user-friendly feature allows beginners to grasp the basics of the game without feeling overloaded.   Auto Combat and No Kill-steal Mode Auto combat is an essential feature in Odin, enabling your character to battle monsters autonomously. This system allows you to effortlessly gain experience and loot, even while you're busy studying, cooking, or unwinding. To optimize its use, activate the no-kill-steal mode. This setting prevents your character from targeting monsters already engaged by other players, helping you avoid conflicts or potential PvP situations. However, if a quest becomes difficult to complete due to overcrowded areas, you can temporarily disable this mode to overcome the obstacle and move forward.   Item Management and Potions Don't overlook the importance of consumable items, especially health potions. These can be purchased, along with buffs, from general merchants in villages, and they play a crucial role in improving your combat efficiency and ensuring your survival. Always aim to keep a full stock of HP potions and carry buffs that boost attack, defense, or regeneration in batches of 5-10 for convenience.   Once you've acquired your consumables, assign them to your quick slots located at the bottom center of the screen. Swiping down activates these slots, and items like potions will automatically be used when necessary, so you don't need to worry about them mid-battle. Keep a close eye on your potion reserves, as running out during a tough fight could leave you vulnerable before reaching a safe area. In the early stages of the game, it's better to return to town for a restock if supplies are low rather than risking unnecessary defeats. You can also enable notifications to alert you when your health or potion count drops too low—a handy feature for staying prepared if your attention is elsewhere.   Leveling and AFK Farming Once you've mastered the fundamentals, the next step is to focus on leveling up and enhancing your character. Gaining levels is your primary source of progression early on, as it not only improves your stats but also unlocks crucial game features and new abilities. At this stage, simply sticking to the main questline provides a reliable and efficient way to gain experience.   Additionally, Odin includes a highly convenient idle feature called AFK mode. This allows your character to keep farming for resources and experience even when the game is closed, with a maximum duration of 8 hours per day. It's an excellent option for making progress while you're asleep, commuting, or otherwise occupied.   Gear Upgrades When the time comes to improve your gear, the initial focus should be on upgrading from normal-grade equipment to high-grade items. These provide significantly better stats and can be enhanced further to increase their effectiveness. Enhancing requires enhancement stones and gold, but it's important to stay within the safe enhancement limit. Attempting upgrades beyond this limit carries the risk of destroying your gear if the enhancement fails. Stick to safe enhancements until you've gained more experience and accumulated spare equipment to mitigate potential losses.   Skill Purchases When you've accumulated enough gold, it's time to invest in skills. These are crucial for enhancing your combat abilities and provide key benefits tailored to your class, whether it's increasing damage output, improving healing capabilities, or adding valuable utility. Before purchasing, ensure your character meets the level prerequisites for each skill. Your ultimate goal will be progressing through and completing the main questline in Midgard as you continue to develop your character.   Unlocking Jotenheim Finishing this milestone grants you access to the next region, Jetunheim, unlocking a variety of new content and challenges. This marks your first significant achievement in the game and is an essential early objective to strive for as you progress.   Joining a Guild Joining a guild is a highly beneficial step in Odin. Guilds not only provide opportunities for social interaction and group activities but also offer passive bonuses that can significantly enhance your gameplay. Even if you're not particularly active socially, being part of any guild is advantageous. The guild feature becomes accessible after completing Chapter 4, Quest 19 of the main story.   Guilds provide various perks, including buffs that scale with the guild's level. Additionally, you can earn guild coins by contributing through donations, quest completions, or regular logins. These coins can be exchanged for valuable rewards, such as epic-grade armor. The more you actively contribute to your guild, the greater the overall benefits for both you and the guild itself. Joining early and staying involved will undoubtedly strengthen your progression in the game.   Conclusion Here is the end of this beginners' guide. I hope these tips will help you level fast in Odin.
  • Topics

×
×
  • Create New...