| |
| Subiectul anterior :: Subiectul urmator |
|
| Autor |
Mesaj |
|
GiovanY Founder


Data inscrierii: 05/Sep/2008 Mesaje: 1979
|
Trimis: 07/12/2008 21:49 Titlul subiectului: [tutorial]Max party members |
|
|
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 |
|
 |
|
|
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
|
|
|
| |
|
Forum by kene | Powered by phpBB © 2001, 2002 phpBB Group
Fa-ti si tu propriul forum GRATUIT, pe www.myforum.ro
|
|
|