Jump to content

Recommended Posts

Posted

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

 

Posted

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?

Posted

So this is you work?

 

Could you check All The pack source? You will see all of them have this option ....

 

And you tell me you made it?

 

 

Posted

 

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

Posted

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

Guest
This topic is now closed to further replies.


  • Posts

    • Thank you very much. It would also be good if you looked into this issue. UnknownSoldier has been manipulating me to make me look bad. He deleted all the evidence I uploaded and left all the insults against me. You'll also see that on April 26th, he reopened the thread and then locked it again just so his friend from Argentina could post: links down :l XD   In the thread: https://maxcheaters.com/topic/253997-sourceservercliente-l2devs-files-l2devscom/page/2/ They do this so they can later tell people that I deleted the links because it was a lie, and so on. Realize that all the damage you're causing is related to this same person. Regards and thank you very much! 🙂 PS: I would like UnknownSoldier to publish the evidence for why he has repeatedly called me a SCAMMER and explain why he also says that to other people. This person is using forum privileges to smear and discredit those who don't work with him. I WANT ALL THE EVIDENCE OF WHAT HE'S SAYING.  
    • Theres a lot of drama going on about Guytis scamming people. I want real, solid proof showing that he scammed anyone attach everything you have.   About reputation: we’re all adults here, yet some are acting like kids fighting over pixels. Think before spreading rumors. False claims don’t make you look better they make you look worse.   I’m waiting for actual evidence that he scammed any user. If there’s nothing to back it up, I’ll deal with it myself. Time’s running out this has been going on long enough.
    • I’ve read the whole topic about Baylee and Protojah. From what I can see, Baylee wanted to buy some htmls and they agreed on a price. Later, Baylee changed her mind and decided not to go through with it. The product wasn’t delivered because Baylee changed her mind. Even if she initially agreed to the price, to avoid confusion. if the files had been sent and payment not made, I would call it a scam. But since they weren’t sent, this isn’t a scam.   I want to stress that I try to be fair to everyone, no matter the situation.   Yeah, Protojah did put in time and effort, and that’s fine, but disagreements happen all the time, even in real life jobs, no matter what the work is. I’m going to lock this topic to avoid more drama. Please keep all personal issues in private messages. And before anyone says anything else I’m not taking sides. I don’t protect scammers and I ban them, but since this isn’t a scam, you both should resolve this situation in DMs.
  • 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..