Skip to content

[Patch] Change Number Of Party Members

Featured Replies

INFO: Change Number Of Party Members for L2J-Server H5

    Index: java/com/l2jserver/Config.java
    ===================================================================
    --- java/com/l2jserver/Config.java  (revision 6513)
    +++ java/com/l2jserver/Config.java  (working copy)
    @@ -1119,6 +1119,12 @@
        public static int CHS_FAME_AMOUNT;
        public static int CHS_FAME_FREQUENCY;
        
    +   // --------------------------------------------------
    +   // Other Settings
    +   // --------------------------------------------------
    +   // Setting Party
    +   public static int MAX_PARTY_MEMBERS;
    +   
        /**
         * This class initializes all global variables for configuration.<br>
         * If the key doesn't appear in properties file, a default value is set by this class. {@link #CONFIGURATION_FILE} (properties file) for configuring your server.
    @@ -2611,6 +2617,7 @@
                    }
                }
                L2JMOD_ALLOW_CHANGE_PASSWORD = L2JModSettings.getBoolean("AllowChangePassword", false);
    +           MAX_PARTY_MEMBERS = L2JModSettings.getInt("MaxPartyMembers", 10);
               
                // Load PvP L2Properties file (if exists)
                final PropertiesParser PVPSettings = new PropertiesParser(PVP_CONFIG_FILE);
    Index: java/com/l2jserver/gameserver/network/clientpackets/RequestAnswerJoinParty.java
    ===================================================================
    --- java/com/l2jserver/gameserver/network/clientpackets/RequestAnswerJoinParty.java (revision 6513)
    +++ java/com/l2jserver/gameserver/network/clientpackets/RequestAnswerJoinParty.java (working copy)
    @@ -60,7 +60,7 @@
            {
                if (requestor.isInParty())
                {
    -               if (requestor.getParty().getMemberCount() >= 9)
    +               if (requestor.getParty().getMemberCount() >= Config.MAX_PARTY_MEMBERS)
                    {
                        SystemMessage sm = SystemMessage.getSystemMessage(SystemMessageId.PARTY_FULL);
                        player.sendPacket(sm);
    Index: java/com/l2jserver/gameserver/network/clientpackets/RequestJoinParty.java
    ===================================================================
    --- java/com/l2jserver/gameserver/network/clientpackets/RequestJoinParty.java   (revision 6513)
    +++ java/com/l2jserver/gameserver/network/clientpackets/RequestJoinParty.java   (working copy)
    @@ -168,7 +168,7 @@
                requestor.sendPacket(SystemMessageId.ONLY_LEADER_CAN_INVITE);
                return;
            }
    -       if (party.getMemberCount() >= 9)
    +       if (party.getMemberCount() >= Config.MAX_PARTY_MEMBERS)
            {
                requestor.sendPacket(SystemMessageId.PARTY_FULL);
                return;
     

    Index: L2JMods.properties
    ===================================================================
    --- L2JMods.properties  (revision 6513)
    +++ L2JMods.properties  (working copy)
    @@ -481,4 +481,12 @@
     
     # Enables .changepassword voiced command which allows the players to change their account's password ingame.
     # Default: False
    -AllowChangePassword = False
    \ No newline at end of file
    +AllowChangePassword = False
    +
    +
    +# ---------------------------------------------------------------------------
    +# Other Setting
    +# ---------------------------------------------------------------------------
    +# Number of players in a party:
    +# Default: 9
    +MaxPartyMembers = 9
    \ No newline at end of file
     

Edited by u3games

  • Author

I think client must be edited too.

 

Nop, in my private server the partys are 10 players, and no errors report.

Nothing wrong with it but. share?? For 1 config? Really :D ?              

it's something that maybe someone will looking for and couldn't find since it's not shared anywhere else.

 

/ontopic nice share mate!

Basically it should work, but you're not gonna see 10 party mini-windows, but 9.

Basically it should work, but you're not gonna see 10 party mini-windows, but 9.

From server side it works... client side need adjustments.. but again 1 config ... share?

I go listen to Justin bieber... tell me RIP guys

From server side it works... client side need adjustments.. but again 1 config ... share?

I go listen to Justin bieber... tell me RIP guys

relax. some things looks easy but for 1 new member everything is usefull

 

@on topic thanks for share. is realy usefull

Edited by nikosdevil20

relax. some things looks easy but for 1 new member everything is usefull

 

@on topic thanks for share. is realy usefull

Did not refer to easy or hard but i would find more usefull to give some tips like how to use threadpool or something relative.. no this

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.