Jump to content

Recommended Posts

Posted (edited)

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
Posted

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!

Posted

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

Posted (edited)

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
Posted

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...