L2JMobius
Other => Knowledge Base => Topic started by: BazookaRpm on February 04, 2025, 10:36:25 PM
-
Hello, good afternoon, here I will leave a tip on how to modify the clan member limit, so that you can make your adjustments according to your needs.
First, in order to adjust the limit of clan members, we must locate the route that controls this function.
The specific route is found in the datapack source.
Route: git\master\L2J_Mobius_CT_0_Interlude\java\org\l2jmobius\gameserver\model\clan.java
Clan.java
/**
* @param pledgeType the Id of the pledge type.
* @return the maximum number of members allowed for a given {@code pledgeType}.
*/
public int getMaxNrOfMembers(int pledgeType)
{
int limit = 0;
switch (pledgeType)
{
case 0: //Main Clan//
{
switch (_level)
{
case 3: //Main Clan//
{
limit = 30; //Maximum limit of members in the main clan at level 4 recently created//
break;
}
case 2: //Main Clan//
{
limit = 20; //Maximum limit of members in the main clan at level 3 recently created//
break;
}
case 1: //Main Clan//
{
limit = 15; //Maximum limit of members in the main clan at level 2 recently created//
break;
}
case 0: ( Main Clan)
{
limit = 10; //Maximum limit of members in the main clan at level 1 newly created//
break;
}
default:
{
limit = 40; //Main Clan, If the level is higher than 3: Maximum 40 members//
break;
}
}
break;
}
case -1: //Academy - Here we find the clan academy, which contains players from lvl 20-39//
{
limit = 20; //maximum limit allowed in the clan academy//
break;
}
case 100: //Royal Gaurd 1- If the clan is level 11, the subclan can have 30 members., If it is any other level, the limit is 20 members.//
case 200: //Royal Guard 2 -If the clan is level 11, the subclan can have 30 members., If it is any other level, the limit is 20 members.//
{
switch (_level)
{
case 11: //If the clan is level 11, the subclan can have 30 members.//
{
limit = 30; //maximum limit allowed in the Royal guard//
break;
}
default:
{
limit = 20; //If it is any other level, the limit is 20 members. in the Royal Gaurd//
break;
}
}
break;
}
case 1001: //Order of Knights 1//
case 1002: //Order of Knights 2//
case 2001: //Order of Knights 3//
case 2002: //Order of Knights 4//
{
switch (_level)
{
case 9: //If the clan level is 9, 10 or 11, the subclan can have 25 members. If the level is less than 9, the subclan can only have 10 members//
case 10: //If the clan level is 9, 10 or 11, the subclan can have 25 members. If the level is less than 9, the subclan can only have 10 members//
case 11: //If the clan level is 9, 10 or 11, the subclan can have 25 members. If the level is less than 9, the subclan can only have 10 members//
{
limit = 25; //can have a maximum of clan members Order of Knight//
break;
}
default:
{
limit = 10; //can have a maximum of clan members Order of Knight//
break;
}
}
break;
}
default:
{
break;
}
}
return limit;
}
You must not forget that when modifying these parameters, you must also modify the configurations with which the clan levels up, these can be found in:
Roue : git\master\L2J_Mobius_CT_0_Interlude\dist\game\config\feature.ini
you must look for the following configuration within the file
Feature.ini
# Number of clan members needed to increase clan level.
# number of players to level up the clan
ClanLevel6Requirement = 30
ClanLevel7Requirement = 50
ClanLevel8Requirement = 80
ClanLevel9Requirement = 120
ClanLevel10Requirement = 140
INFO ADICIONAL
If you use this setup very well, on your test server, or a small community, it can be useful by reducing the number of players per clan, encouraging you to limit the strength of a clan and avoid control.
Example a Clan 140 players + Ally 140 = 280 players, Dominant clan
What is sought is to reduce that gap with small clans
Example a Clan [36 Players (4 partys*9 players) + Ally 36 (4 partys *9 players ) = 72 players (8 partys) provides better balance to the number of players.
Atte Bazooka
-
@Bazookarpm moved to [Knowledge Base] section.
-
Thanks You.