Jump to content

Recommended Posts

Posted

Hello, i would like to share something with you, its easy actually but, some people might not know how to do it.

I will share you a code that you can change the number of maximum people in a party.

If you don't like it, don't start blaming, just ignore it.

 

### Eclipse Workspace Patch 1.0
Index: java/com/it/br/gameserver/network/clientpackets/RequestJoinParty.java
===================================================================
--- java/com/it/br/gameserver/network/clientpackets/RequestJoinParty.java	(revision 1685)
+++ java/com/it/br/gameserver/network/clientpackets/RequestJoinParty.java	(working copy)
@@ -141,7 +141,7 @@
		SystemMessage msg;

        // summary of ppl already in party and ppl that get invitation
-        if (requestor.getParty().getMemberCount() + requestor.getParty().getPendingInvitationNumber() >= 9 )
+        if (requestor.getParty().getMemberCount() + requestor.getParty().getPendingInvitationNumber() >= Config.MAX_PARTY_MEMBERS+1 )
         {
			requestor.sendPacket(new SystemMessage(SystemMessageId.PARTY_FULL));
			return;
Index: java/config/other.properties
===================================================================
--- java/config/other.properties	(revision 1685)
+++ java/config/other.properties	(working copy)
@@ -2,6 +2,8 @@
WyvernSpeed = 100
StriderSpeed = 80

+MaxPartyMembers = 20
+
#Allow the Wyvern manager located in every castle to train Wyverns and Striders from Hatchlings
AllowWyvernUpgrader = False

Index: java/com/it/br/Config.java
===================================================================
--- java/com/it/br/Config.java	(revision 1685)
+++ java/com/it/br/Config.java	(working copy)
@@ -338,6 +338,7 @@
     public static int PACKET_LIFETIME;
     public static int WYVERN_SPEED;
     public static int STRIDER_SPEED;
+    public static int MAX_PARTY_MEMBERS;
     public static boolean ALLOW_WYVERN_UPGRADER;
     public static int MIN_PROTOCOL_REVISION;
     public static int MAX_PROTOCOL_REVISION;
@@ -1619,6 +1620,7 @@
                 EFFECT_CANCELING = Boolean.valueOf(otherSettings.getProperty("CancelLesserEffect", "True"));
                 WYVERN_SPEED = Integer.parseInt(otherSettings.getProperty("WyvernSpeed", "100"));
                 STRIDER_SPEED = Integer.parseInt(otherSettings.getProperty("StriderSpeed", "80"));
+                MAX_PARTY_MEMBERS = Integer.parseInt(otherSettings.getProperty("MaxPartyMembers", "20"));
                 ALLOW_WYVERN_UPGRADER = Boolean.valueOf(otherSettings.getProperty("AllowWyvernUpgrader", "False"));
                 INVENTORY_MAXIMUM_NO_DWARF  = Integer.parseInt(otherSettings.getProperty("MaximumSlotsForNoDwarf", "80"));
                 INVENTORY_MAXIMUM_DWARF = Integer.parseInt(otherSettings.getProperty("MaximumSlotsForDwarf", "100"));

 

If you like it, say thanks, it took me some minutes to make it, but it only takes ten seconds to say thanks!

Posted

You think so? :/ well then you can remove the thread

 

Im not sure about that, but my friend had problems with similar modifications.

Posted

agree with matim,clients problems 100% ....with 9 it is ok,but with more how it will include in client ? i cant explain it but for sure some client problems will be appear

Posted

Well, as a friend of mine tested it and it doesnt have problems, but i am not sure if you are doing some activities, like a bishop heals etc all the party, might cause problems... but anyway if someone find problems, i will remove it.. i just want to help this community, and i would like to get some karma, thats why i am trying to help here :)

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