Limit Guild

Kamus Dev

Pirate
Registered
LV
0
 
Joined
May 16, 2026
Messages
20
Reaction score
0
Points
31
Hello everyone, good evening. Could you help me with something? I need to set a limit on the guilds on my server; the current maximum is 80 players, and I want to reduce it. How can I do that?
 
GameServer.cfg
[Guild]
guild_num = 40 // max in guild
guild_try_num = 20 // allowed to register
 
  • Like
Reactions: Panda
UIGuildMgr.cpp

C++:
sprintf(buf,"%d/%d",CGuildData::GetMemberCount(),CGuildData::GetMaxMembers());
    m_plabGuildMemberCount->SetCaption(buf);
Data chain:
1. Opening the window → OnBeforeShow sends CM_GUILD_LISTTRYPLAYER()
2. Response → MC_GUILD_LISTTRYPLAYER (NetPkGuild.cpp) reads memnum / maxmem
3. NetMC_LISTTRYPLAYER_BEGIN writes them to CGuildData (guild_member_count / guild_member_max)
4. NetMC_LISTTRYPLAYER_END → ShowForm() → RefreshForm() → SetCaption on labNum

The client's number source is only a package from the server!!!

You may have edited the wrong cfg.
You may not have restarted the GameServer.
 
  • Like
Reactions: Kamus Dev