Jump to content

[Patch] Change Number Of Party Members


u3games

Recommended Posts

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
Link to comment
Share on other sites

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!

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now


×
×
  • Create New...