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

    • 🔥Grand opening 11.10.2024 , 20:00 Berlin Time, 21:00 Greece Time, 19:00 UK Time.🔥 Siege reward real $$ , check our website for more info about Siege reward! Facebook / Discord Giveaways are running ,check discord and faceboook.   🔥Interlude Server with Classic Systems & Interface.🔥   Rates: » Xp 100x. » Sp 100. » Adena Custom. » Drop Custom. » Starting character level - 76.   Enchant rates: »Safe Enchant: +3. »Safe Enchant Full-Armor: +4. »Max Enchant: +25 (Weapons) +14 (Armors). »Enchanting Chance: Normal Scroll [3-14=66%] [15-25=33%] | Blessed Scroll [3-14=60%] [15-25=30%]. Farm System Dynamic Auto Farm Zones : »Giants Cave [AOE too] »Elven Fortress »Cemetery 1-2 Extra Non Dynamic Farm Zones »Ketra Orcs »Forge of the Gods »Blazing Swamp (Up the Hill) »Tower of Insolence(AOE) Info : use item Drop Search from Community Board for Further Info Unique features: » Light [good FPS] Server Interface . » Main Town: Aden Castle Town. » Spawn Protection. » Custom NPC's. » Auto Learn Skills. » Caslte Siege every week . » Class Balance. » Skill Balance. » Flood Protection. » Walker Protection. » Chaotic Zones. » Custom Dynamic Farm Zones. » Custom PvP Zones. » Chaotic PvP Zone. » Stuckable Scolls. » Stuckalble BOGS. » Anti-Buff Shield skill & Instance. » Auto loot mobs. » No Auto Loot on Raids. » Auto Enchant Included. » Auto Free Farm included. » Dungeons included , Solo/Party. » All sieges work. » 4(Four) Clan Hall Sieges fully working. » Daily Custom Mission Manager. » Achievements Manager . » Anti-Buff Shield skill & Instance. » Shift Click on NPCS. » Click Remove Buffs included. » Double Click & Remove unwanted buffs. » 99,99% Uptime. » Dos Protection. » Anticheat Protection. and much more..   Voiced commands: .menu .onlinetime .events .register .unregister .pveevent .join .leave .mail .farm .remove .away .back .enchant .stop .vote .mystats .playersearch Event system: » Team Blue VS Team Red » DeathMatch » Raid In The Middle » Ultra Rapid Fire » Korean Style » Hot Wars » Capture the Flag » High Rate » Squash Event » Dwarf Event » Boss Event » Hitman » Daily Killer » Monthly Top 3 Clans,1500-750-250 Donate Coins as reward » Chest Event, chance for 100DonateCoins per kill » Happy Days: Daily Bonus Stats: Example every sunday 2% more enchant rate + Exp Sp e.t.c Olympiad game: »Max A-Grade gear. No enchant limitations. »Class or Non-Class based or both matches (Not decided yet). »Duration: 1 hour per day. »Cycle: 1 week Monday [ Pause] »Heroes every Sunday at 00:00 . »Boosted Hero Skills, Weapons. »(with Noblesse Gate Pass Rewards like books, enchants.).   More and all features --> https://www.l2eurogold.com/features.html L2Eurogold Wiki --> https://www.l2eurogold.com/wiki.html Server Roadmap --> Will be opened publicly 03.10.2024 500E Siege Reward for Januar Castle Siege --> https://discord.gg/4PMKPdF8Nx 🌍Website --> www.l2eurogold.com 🌐Discord Join Now--> https://discord.gg/PrpYPZYthm Facebook Oficial Page --> https://www.facebook.com/profile.php?id=100067739556286 Facebook fan Page --> https://www.facebook.com/groups/655629177972237/    
    • New reviews URL: https://smartaim.cc/index.php?/forum/33-cs2-cheats-reviews/ Update on 20 September, 2024. Our CS2 software still safe to use.  
    • DISCORD : utchiha_market telegram : https://t.me/utchiha_market SELLIX STORE : https://utchihamkt.mysellix.io/ Join our server for more products : https://discord.gg/bDVQYKMUb3 https://campsite.bio/utchihaamkt  
    • DISCORD : utchiha_market telegram : https://t.me/utchiha_market SELLIX STORE : https://utchihamkt.mysellix.io/ Join our server for more products : https://discord.gg/bDVQYKMUb3 https://campsite.bio/utchihaamkt  
    • Alguém tem esse mod para l2jfrozen? Já procurei em todo lugar e não achei. Alguém poderia disponibilizar? 🙂
  • Topics

×
×
  • Create New...