Mesaje privateMesaje private   AutentificareAutentificare 

 
[tutorial]Max party members

 
Creaza un subiect nou   Raspunde la subiect    Pagina de start a forumului Crackers's Official Supporting Forum : Tutoriale Lineage2
Subiectul anterior :: Subiectul urmator  
Autor Mesaj

GiovanY
Founder
Founder
GiovanY

Data inscrierii: 05/Sep/2008
Mesaje: 1979

MesajTrimis: 07/12/2008 21:49    Titlul subiectului: [tutorial]Max party members Raspunde cu citat (quote)

If Maxpartymembers is greater than 12 you take critical error
To work with more you must edit game client


The max numbers of members in party is configurable from other.properties in gameserver config folder:

# Party Members Configuration
# Default Party Members are 9
MaxPartyMembers = 12


Index: C:/L2_GameServer/java/config/other.properties
===================================================================
Cod:

@@ -78,6 +78,10 @@
 # Player Protection after teleporting or login in seconds, 0 for disabled
 PlayerSpawnProtection = 0
 
+# Party Members Configuration
+# Default Party Members are 9
+MaxPartyMembers = 12
+
 # PARTY XP DISTRIBUTION
 # Set the first option here to one of the (auto, percentage, level, none).
 # With "auto method" member is cut from Exp/SP distribution when his share is lower

Index: C:/L2_GameServer/java/net/sf/l2j/Config.java
===================================================================
Cod:

@@ -850,6 +850,9 @@
     /** Player Protection control */
     public static int   PLAYER_SPAWN_PROTECTION;
 
+    /** Max number of members in Party */
+    public static int MAX_PARTY_MEMBERS;
+   
     /** Define Party XP cutoff point method - Possible values: level and percentage */
     public static String  PARTY_XP_CUTOFF_METHOD;
     /** Define the cutoff point value for the "level" method */
@@ -1329,7 +1332,10 @@
 
                 /* Player protection after teleport or login */
                 PLAYER_SPAWN_PROTECTION = Integer.parseInt(otherSettings.getProperty("PlayerSpawnProtection", "0"));
-               
+
+                /* Max Numbers of Members in Party */
+                MAX_PARTY_MEMBERS = Integer.parseInt(otherSettings.getProperty("MaxPartyMembers", "12"));
+               
                /* Defines some Party XP related values */
                PARTY_XP_CUTOFF_METHOD  = otherSettings.getProperty("PartyXpCutoffMethod", "percentage");
                PARTY_XP_CUTOFF_PERCENT = Double.parseDouble(otherSettings.getProperty("PartyXpCutoffPercent", "3."));

Index: C:/L2_GameServer/java/net/sf/l2j/gameserver/clientpackets/RequestJoinParty.java
===================================================================
Cod:

@@ -113,7 +113,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 )
         {
          requestor.sendPacket(new SystemMessage(SystemMessage.PARTY_FULL));
          return;

Index: C:/L2_GameServer/java/net/sf/l2j/gameserver/handler/usercommandhandlers/PartyInfo.java
===================================================================
Cod:

@@ -18,6 +18,7 @@
  */
 package net.sf.l2j.gameserver.handler.usercommandhandlers;
 
+import net.sf.l2j.Config;
 import net.sf.l2j.gameserver.handler.IUserCommandHandler;
 import net.sf.l2j.gameserver.model.L2Party;
 import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance;
@@ -75,7 +76,7 @@
        activeChar.sendPacket(sm);
         
        sm = new SystemMessage(SystemMessage.S1_S2);               
-       sm.addString("Members: " + memberCount + "/9");
+       sm.addString("Members: " + memberCount + "/" + Config.MAX_PARTY_MEMBERS);
 
        activeChar.sendPacket(new SystemMessage(1612));
 
Sus
Vezi profilul utilizatorului Trimite mesaj privat Trimite un mesaj
Afiseaza mesajele pentru a le previzualiza:   
Creaza un subiect nou   Raspunde la subiect    Pagina de start a forumului Crackers's Official Supporting Forum : Tutoriale Lineage2 Ora este GMT + 2 ore
Pagina 1 din 1

 
Mergi direct la:  
Nu puteti crea un subiect nou in acest forum
Nu puteti raspunde in subiectele acestui forum
Nu puteti modifica mesajele proprii din acest forum
Nu puteti sterge mesajele proprii din acest forum
Nu puteti vota in chestionarele din acest forum