Anyone knows a way to increase the maximum group members? Now is 3 i want to increase it to 5 if it's possible.
Like this:
Regards, NosSacred Team.
Like this:
Regards, NosSacred Team.
opennos.gameobject/networking/servermanager.cs line 1341, 1342, 1343, 1344Quote:
Anyone knows a way to increase the maximum group members? Now is 3 i want to increase it to 5 if it's possible.
Like this:
Regards, NosSacred Team.
public bool IsCharactersGroupFull(long characterId)
{
return Groups != null && Groups.Any(g => g.IsMemberOfGroup(characterId) && g.CharacterCount == (byte)g.GroupType);
}
public bool IsCharactersGroupFull(long characterId)
{
return Groups != null && Groups.Any(g => g.IsMemberOfGroup(characterId) && g.CharacterCount == 5);
}
Do not use @[Only registered and activated users can see links. Click Here To Register...] code if you want to run your server correctly, you just have to change the GroupType.Quote:
Oh, thank you, but, it increase the gain XP, or it decrease? If you know if it makes any bugg or something i'll be glad to read it xD
PD: Thank you <3
public bool IsCharactersGroupFull(long characterId)
{
const int normalGroupMembersCount = 5;
return Groups != null && Groups.Any(g => g.IsMemberOfGroup(characterId) &&
(g.CharacterCount == (g.GroupType == GroupType.Group ? normalGroupMembersCount : (byte)g.GroupType)));
}
public enum GroupType : byte
{
Group = 3, // HERE YOU CHANGE GROUP BY YOUR VALUE
CustomGroup = 6, // HERE YOU ADD ANOTHER GROUP TYPE but, depends on the sources you'r using
Team = 15,
BigTeam = 20,
GiantTeam = 40,
IceBreaker = 50
}