Load the NPC guild seed on the login server

Character select sends each character's guild, and since 2.8 the NPC
guilds exist only in maps/<map>.guild. The login server loaded guilds
from the DB only, so characters in NPC guilds showed as errant. It now
loads the seed guilds first, as the world server does; a seed that fails
to load fails the login server boot.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
MagicBotandClaude Opus 5.5 committed 2026-10-28 08:31:41 -04:00
1 parent 22acab6d79
commit 2fcdcf9f0d
1 file changed
+8
+8
View File
@@ -405,6 +405,14 @@ public class LoginServer {
Logger.info("Initializing Errant Guild");
Guild.getErrantGuild();
// Character select sends each character's guild; NPC guilds exist only in the map's guild seed.
Logger.info("Loading NPC guilds");
if (!GuildManager.loadStaticGuilds(Integer.parseInt(ConfigManager.MB_WORLD_MAPID.getValue()))) {
Logger.error("Guild seed failed to load!");
return false;
}
Logger.info("Loading All Guilds");
DbManager.GuildQueries.GET_ALL_GUILDS();