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

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

Glad to hear it & thanks for sharing it with us.

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock