Jump to content

[share]more subclasses than 3


Recommended Posts

hello folks,i dont know if this has been posted again,if it has u can delete it:

 

I made a little patch to allow my player to have more than 3 subclass.

The max subclass number can be changed in other.properties after having applied my patch.

 

Index: config/other.properties

===================================================================

--- config/other.properties (revision 1283)

+++ config/other.properties (working copy)

@@ -167,3 +167,8 @@

# Death Penalty chance if killed by mob (%)

#------------------------------------------

DeathPenaltyChance = 20

+

+#-----------------------------------------

+#Maximum number of subclass

+#-----------------------------------------

+MaxSubClass = 3

\ No newline at end of file

Index: net/sf/l2j/Config.java

===================================================================

--- net/sf/l2j/Config.java (revision 1283)

+++ net/sf/l2j/Config.java (working copy)

@@ -971,6 +971,9 @@

    /** Death Penalty chance */

    public static int  DEATH_PENALTY_CHANCE;

 

+ /** Max SubClass Number */

+ public static int  MAX_SUB;

+

    /** Player Protection control */

    public static int  PLAYER_SPAWN_PROTECTION;

    public static int  PLAYER_FAKEDEATH_UP_PROTECTION;

@@ -1552,6 +1555,7 @@

                JAIL_DISABLE_CHAT = Boolean.valueOf(otherSettings.getProperty("JailDisableChat", "True"));

               

                DEATH_PENALTY_CHANCE = Integer.parseInt(otherSettings.getProperty("DeathPenaltyChance", "20"));

+ MAX_SUB = Integer.parseInt(otherSettings.getProperty("MaxSubClass", "3"));

            }

            catch (Exception e)

            {

Index: net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java

===================================================================

--- net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java (revision 1283)

+++ net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java (working copy)

@@ -8292,7 +8292,7 @@

      */

    public boolean addSubClass(int classId, int classIndex)

    {

-    if (getTotalSubClasses() == 3 || classIndex == 0)

+    if (getTotalSubClasses() == Config.MAX_SUB || classIndex == 0)

    return false;

 

    if (getSubClasses().containsKey(classIndex))

 

Index: net/sf/l2j/gameserver/model/actor/instance/L2VillageMasterInstance.java

===================================================================

--- net/sf/l2j/gameserver/model/actor/instance/L2VillageMasterInstance.java (revision 1283)

+++ net/sf/l2j/gameserver/model/actor/instance/L2VillageMasterInstance.java (working copy)

@@ -197,7 +197,7 @@

            {

                case 1: // Add Subclass - Initial

                    // Avoid giving player an option to add a new sub class, if they have three already.

-                    if (player.getTotalSubClasses() == 3)

+                    if (player.getTotalSubClasses() == Config.MAX_SUB)

                    {

                        player.sendMessage("You can now only change one of your current sub classes.");

                        return;

 

 

 

enjoy

 

Link to comment
Share on other sites

hello folks,i dont know if this has been posted again,if it has u can delete it:

 

I made a little patch to allow my player to have more than 3 subclass.

The max subclass number can be changed in other.properties after having applied my patch.

Index: config/other.properties

===================================================================

--- config/other.properties  (revision 1283)

+++ config/other.properties  (working copy)

@@ -167,3 +167,8 @@

# Death Penalty chance if killed by mob (%)

#------------------------------------------

DeathPenaltyChance = 20

+

+#-----------------------------------------

+#Maximum number of subclass

+#-----------------------------------------

+MaxSubClass = 3

\ No newline at end of file

Index: net/sf/l2j/Config.java

===================================================================

--- net/sf/l2j/Config.java  (revision 1283)

+++ net/sf/l2j/Config.java  (working copy)

@@ -971,6 +971,9 @@

    /** Death Penalty chance */

    public static int  DEATH_PENALTY_CHANCE;

 

+  /** Max SubClass Number */

+  public static int  MAX_SUB;

+

    /** Player Protection control */

    public static int  PLAYER_SPAWN_PROTECTION;

    public static int  PLAYER_FAKEDEATH_UP_PROTECTION;

@@ -1552,6 +1555,7 @@

                JAIL_DISABLE_CHAT = Boolean.valueOf(otherSettings.getProperty("JailDisableChat", "True"));

               

                DEATH_PENALTY_CHANCE = Integer.parseInt(otherSettings.getProperty("DeathPenaltyChance", "20"));

+            MAX_SUB = Integer.parseInt(otherSettings.getProperty("MaxSubClass", "3"));

            }

            catch (Exception e)

            {

Index: net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java

===================================================================

--- net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java  (revision 1283)

+++ net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java  (working copy)

@@ -8292,7 +8292,7 @@

      */

    public boolean addSubClass(int classId, int classIndex)

    {

-      if (getTotalSubClasses() == 3 || classIndex == 0)

+      if (getTotalSubClasses() == Config.MAX_SUB || classIndex == 0)

          return false;

 

        if (getSubClasses().containsKey(classIndex))

 

Index: net/sf/l2j/gameserver/model/actor/instance/L2VillageMasterInstance.java

===================================================================

--- net/sf/l2j/gameserver/model/actor/instance/L2VillageMasterInstance.java  (revision 1283)

+++ net/sf/l2j/gameserver/model/actor/instance/L2VillageMasterInstance.java  (working copy)

@@ -197,7 +197,7 @@

            {

                case 1: // Add Subclass - Initial

                    // Avoid giving player an option to add a new sub class, if they have three already.

-                    if (player.getTotalSubClasses() == 3)

+                    if (player.getTotalSubClasses() == Config.MAX_SUB)

                    {

                        player.sendMessage("You can now only change one of your current sub classes.");

                        return;

 

 

enjoy

 

 

So where are proper credits?

Link to comment
Share on other sites

 

enjoy

 

 

 

So where are proper credits?

 

i dont want to start a war:D

i just replied at ur post for the proper credits because of this:

 

omg man... go there IVoicedCommandHandler.java and see what's wrong....

 

WTF You want all ready?

 

//The End

Link to comment
Share on other sites

i dont want to start a war:D

i just replied at ur post for the proper credits because of this:

 

omg man... go there IVoicedCommandHandler.java and see what's wrong....

 

WTF You want all ready?

 

//The End

 

What war? O.o i think you are alot of topic... [Warned]

 

Topic ~Locked seems this is a c/p and lot of pack's have it already!.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


  • Posts

    • New Season coming May 2024! First post updated      Website: L2Kain.net  Discord: https://discord.gg/l2kain  Wiki: https://info.kain.ws/   Important Dates   Server Start: TBD  Open Beta Test: 10th of May 2024!   Basic Information     Briefly about the concept of the server! We decided to move away from the standard Mid-Rate server concept and keep the mechanics of our beloved Lineage 2 that everyone loves! Massive battles for epic bosses, battles for profitable farming locations, resource spoilage and equipment crafting, daily instances, a balanced economy and much more. This server is build as a Craft-PvP concept. The goal is to gather players with a variety of preferences in the game and make a high-quality and interesting server with alternative character development options. We are well aware that "grinding" is an integral part of the game, but we diluted the boring and the same type of farming with interesting solutions and non-standard mechanics!   We have prepared a new High Five x25 on Modern Client for you. This server will be another step in the development of the platform and the project as a whole! Your appeals to those. support was not ignored, which means the new server will be even better than the previous one!      ⭐ Promotions and Bonuses for new players!     ⭐ Events and Giveaways daily!   ⭐ Rewards for Voting!   ℹ️ Server Rates Learn more about server rates! Server rates are configured in such a way that farming is best rewarded. Adena, drops, quests, various rewards and prices in the game store are well balanced among themselves!   Basic Server Rates:  ⭐ Experience & Skill Points - x25  ⭐ Adena Drop - x15 & Fixed Chance 66%  ⭐ Drop Rates - x10  ⭐ Spoil Rates - x10   Crafting keys, recipes drop & spoil with fixed amount from 2 to 3 and increased chances on all locations and quests  related to farm them.  ⭐ Quest Rates - x5  ⭐ Fortresses & Sieges - x5  ⭐ Raid Bosses & Epic Bosses - x1  ⭐ Weight Limit - x10      Connect with Us:  Discord: https://discord.gg/l2kain  Facebook: https://www.facebook.com/KainLineage2  TikTok: https://www.tiktok.com/@l2kain.net  YouTube: https://www.youtube.com/@Lineage2Kain
    • Relevant! I sell forum listings and also post and promote your topics on forums!
  • Topics

×
×
  • Create New...