Page 1 of 1

Subclass stuck at lvl 80

Posted: Mon Apr 20, 2009 12:35 am
by Sudeki
When a player is retail sub his level can't be increased to 81, 82 etc
in subclass.java we have if (expValue > (Experience.LEVEL[81] - 1))
if (levelValue > 80)
levelValue = 80;

Should not be 85 ? and 86 for experience.LEVEL ?

Code: Select all

Index: java/net/sf/l2j/gameserver/model/base/SubClass.java===================================================================--- java/net/sf/l2j/gameserver/model/base/SubClass.java (revision 2930)+++ java/net/sf/l2j/gameserver/model/base/SubClass.java (working copy)@@ -88,8 +88,8 @@        public void setExp(long expValue)    {-       if (expValue > (Experience.LEVEL[81] - 1))-           expValue = (Experience.LEVEL[81] - 1);+       if (expValue > (Experience.LEVEL[86] - 1))+           expValue = (Experience.LEVEL[86] - 1);                _exp = expValue;    }@@ -106,8 +106,8 @@        public void setLevel(byte levelValue)    {-       if (levelValue > 80)-           levelValue = 80;+       if (levelValue > 85)+           levelValue = 85;        else if (levelValue < 40)            levelValue = 40;        @@ -116,7 +116,7 @@        public void incLevel()    {-       if (getLevel() == 80)+       if (getLevel() == 85)            return;                _level++; 

Re: Subclass stuck at lvl 80

Posted: Tue Apr 21, 2009 11:30 pm
by toastgodsupreme
Ummm, as far as I can tell, your patch allows subclasses to go to 85. Just from a quick glance. >_>

I haven't heard of any news from retail that subs are allowed to go to 85 now.

Re: Subclass stuck at lvl 80

Posted: Tue Apr 21, 2009 11:35 pm
by Bloodshed
subclass lv 80 max i got a feeling it will go to 81 someday tho since some passives got pushed to lv 82 in gracia final :P

Re: Subclass stuck at lvl 80

Posted: Fri Jun 05, 2009 12:41 pm
by jus778
hi im new to this java thing, and im knda lost. i jsut want my subclass to get to 85. problem is after decompiling the class file and doing the necessary edits, i dont know how to compile it (already downloaded eclipse). i dont know how to use eclipse or execute javac; cant find any executeable file for any java stuff and cant find a compile button for eclipse.

Anyone know have some detailed instructions in layman's terms?

also found this from some other forum:
"you won't need eclipse or anything else to run and compile java apps.
Use the terminal to do it:
javac filename.java
(to compile)
java filename.java
(to execute/run)"
What is that "terminal" he's saying?

Re: Subclass stuck at lvl 80

Posted: Fri Jun 05, 2009 12:52 pm
by Evilus
isn't this suppose to be in custom mods?

Re: Subclass stuck at lvl 80

Posted: Sat Jun 06, 2009 6:16 pm
by Eragon
jus778 wrote:hi im new to this java thing, and im knda lost. i jsut want my subclass to get to 85. problem is after decompiling the class file and doing the necessary edits, i dont know how to compile it (already downloaded eclipse). i dont know how to use eclipse or execute javac; cant find any executeable file for any java stuff and cant find a compile button for eclipse.

Anyone know have some detailed instructions in layman's terms?

also found this from some other forum:
"you won't need eclipse or anything else to run and compile java apps.
Use the terminal to do it:
javac filename.java
(to compile)
java filename.java
(to execute/run)"
What is that "terminal" he's saying?
Don't do it that way, use eclipse to compile the source. Also, decompiling the source files are bad, get the source from the SVN, do your changes, then compile via eclipse.

Re: Subclass stuck at lvl 80

Posted: Thu Aug 20, 2009 2:08 am
by denser
as you can see in character.properties

Code: Select all

# Maximum subclass level.# Default: 80MaxSubclassLevel = 80
so already has this option.

do not decompile *.class - its wrong way. tis project is open-source.