Core/Guilds: Implemented basic guild leveling (no player statistics/reputation)
This commit is contained in:
1 parent
19b400761d
commit
6ca7a7b78d
21 files changed
+464
-103
No files matched your search
@@ -928,12 +928,13 @@ void WorldSession::HandlePlayerLogin(LoginQueryHolder* holder)
|
||||
pCurrChar->SetInGuild(fields[0].GetUInt32());
|
||||
pCurrChar->SetRank(fields[1].GetUInt8());
|
||||
if (Guild* guild = sGuildMgr->GetGuildById(pCurrChar->GetGuildId()))
|
||||
pCurrChar->SetUInt32Value(PLAYER_GUILDLEVEL, guild->GetLevel());
|
||||
pCurrChar->SetGuildLevel(guild->GetLevel());
|
||||
}
|
||||
else if (pCurrChar->GetGuildId()) // clear guild related fields in case wrong data about non existed membership
|
||||
{
|
||||
pCurrChar->SetInGuild(0);
|
||||
pCurrChar->SetRank(0);
|
||||
pCurrChar->SetGuildLevel(0);
|
||||
}
|
||||
|
||||
data.Initialize(SMSG_LEARNED_DANCE_MOVES, 4+4);
|
||||
|
||||
Reference in new issue
Block a user