Jump to content

[SHARE]Subclass maximum lvl 85


Intrepid

Recommended Posts

  • 1 month later...

here same code but to l2jserver

 

package net.sf.l2j.gameserver.model.base;

 

/**

* Character Sub-Class Definition

* <BR>

* Used to store key information about a character's sub-class.

*

* @author Tempy

*/

public final class SubClass

{

private PlayerClass _class;

private long _exp = Experience.LEVEL[40];

private int _sp = 0;

private byte _level = 40;

private int _classIndex = 1;

 

public SubClass(int classId, long exp, int sp, byte level, int classIndex)

{

_class = PlayerClass.values()[classId];

_exp = exp;

_sp = sp;

_level = level;

_classIndex = classIndex;

}

 

public SubClass(int classId, int classIndex)

{

// Used for defining a sub class using default values for XP, SP and player level.

_class = PlayerClass.values()[classId];

_classIndex = classIndex;

}

 

public SubClass()

{

// Used for specifying ALL attributes of a sub class directly,

// using the preset default values.

}

 

public PlayerClass getClassDefinition()

{

return _class;

}

 

public int getClassId()

{

return _class.ordinal();

}

 

public long getExp()

{

return _exp;

}

 

public int getSp()

{

return _sp;

}

 

public byte getLevel()

{

return _level;

}

 

public int getClassIndex()

{

return _classIndex;

}

 

public void setClassId(int classId)

{

_class = PlayerClass.values()[classId];

}

 

public void setExp(long expValue)

{

if (expValue > (Experience.LEVEL[86] - 1))

expValue = (Experience.LEVEL[86] - 1);

 

_exp = expValue;

}

 

public void setSp(int spValue)

{

_sp = spValue;

}

 

public void setClassIndex(int classIndex)

{

_classIndex = classIndex;

}

 

public void setLevel(byte levelValue)

{

if (levelValue > 85)

levelValue = 85;

else if (levelValue < 40)

levelValue = 40;

 

_level = levelValue;

}

 

public void incLevel()

{

if (getLevel() == 85)

return;

 

_level++;

setExp(Experience.LEVEL[getLevel()]);

}

 

public void decLevel()

{

if (getLevel() == 40)

return;

 

_level--;

setExp(Experience.LEVEL[getLevel()]);

}

}

 

Link to comment
Share on other sites

  • 1 month later...

http://www.maxcheaters.com/forum/index.php?topic=3400.0

 

hope this could help you and for your next question NO, u cant compile a compiled/pre-made pack.

Link to comment
Share on other sites

Hi guys, i have a question.. im noob so sorry for that

 

where can i find that SubClass.java ....

 

subclass.jpg

 

i have just .class .......hm

 

Cant some one just upload the file ... ?!?! 8- )

 

 

 

Link to comment
Share on other sites

  • 2 weeks later...
  • 3 months later...
  • 2 months later...

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
Reply to this topic...

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




×
×
  • Create New...