Jump to content

Recommended Posts

  • 1 month later...
Posted

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

}

}

 

  • 1 month later...
Posted

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

 

 

 

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



  • Posts

    • We are officially opening! Grand Opening: Saturday, 19 September at 16:00 (Greek time — server time). Server is now in TEST/BETA phase → everything will be alive & complete at opening. == WHY YOU SHOULD BE THERE AT 16:00 ==  Rates 9300x EXP / 3000x SP / 5500x Adena — fast start, non-stop action Gracia Final — the real, nostalgic line-up. Like L2 Pride, but fresh & stable No wipe, no close, 24/7 with AntiDoss protection  Safe Enchant +3 · Max Enchant +25 Drop 1x — epic drops feel EPIC == AT OPENING (19/9, 16:00) == - Full server live ceremony: everyone starts in the world together - Community events & giveaways announced LIVE on Discord - Forum + support fully active == GET READY ==  Download the client: https://l2aquila.com/downloads.html Install guide (3 steps, 2 minutes): https://l2aquila.com/install-guide.html  Join Discord to be there at launch: https://discord.gg/5ZyBRvG4k == Countdown is running on the site: https://l2aquila.com == Be part of L2Aquila from the very first minute. 
    • support for new protocols https://imgur.com/PhwtEEX https://imgur.com/Dyul5wt
    • TOPSERVERS200 is a platform for promoting Lineage 2 projects and helping players discover new servers. Add your server, announce your upcoming launch, and compete in the TOP 200 rankings. ━━━━━━━━━━━━━ ◆ ━━━━━━━━━━━━━ TOPSERVERS200 FEATURES   📅 Launch Announcements - announce your new server and attract players both before and after its launch. 🏆 TOP 200 - earn votes from players and climb the Lineage 2 server rankings. 🌐 Server Page - chronicles, rates, launch dates, descriptions, reviews, and other key information about your server. 📺 Lineage 2 Streams - player streams from Twitch, YouTube, and Kick collected in a dedicated section of the platform. 📢 Promotion - VIP placement, banner advertising, and additional options to increase your project's visibility.   ━━━━━━━━━━━━━ ◆ ━━━━━━━━━━━━━ AVAILABLE GAMES   Lineage 2 • Minecraft • World of Warcraft • GTA 5 • MuOnline • SAMP • Perfect World   ━━━━━━━━━━━━━ ◆ ━━━━━━━━━━━━━ LINEAGE 2 ON TOPSERVERS200   Current servers, upcoming launches, rankings, and player reviews - all gathered in one section. VIEW LINEAGE 2 SERVER RANKINGS
    • L2Elite is still around fortunately or unfortunately, Archon I don't remember, RaceSupremacy was such a cool server, I really enjoyed my time there I was playing Grand Khavatary there, Core i've played also but I have no memory of it, one other server I really enjoyed was L2Total I remember a glitch/bug I found there where before clicking ok on exchanging goldbars to adena you would spam screenshot and it would duplicate the item, loved it.
    • 🔥 Daily restock across all tools! Get your favorite AI subscriptions at unbeatable prices.
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..