mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 13:37:05 +00:00
Guild bank hopefully fixed.
This commit is contained in:
parent
eba214eb8a
commit
57126880cf
6 changed files with 126 additions and 202 deletions
|
|
@ -643,22 +643,21 @@ void WorldSession::HandlePlayerLogin(LoginQueryHolder *holder)
|
|||
if(guild)
|
||||
{
|
||||
data.Initialize(SMSG_GUILD_EVENT, (2+guild->GetMOTD().size()+1));
|
||||
data << (uint8)GE_MOTD;
|
||||
data << (uint8)1;
|
||||
data << uint8(GE_MOTD);
|
||||
data << uint8(1);
|
||||
data << guild->GetMOTD();
|
||||
SendPacket(&data);
|
||||
DEBUG_LOG( "WORLD: Sent guild-motd (SMSG_GUILD_EVENT)" );
|
||||
|
||||
guild->DisplayGuildBankTabsInfo(this);
|
||||
|
||||
data.Initialize(SMSG_GUILD_EVENT, (5+10)); // we guess size
|
||||
data<<(uint8)GE_SIGNED_ON;
|
||||
data<<(uint8)1;
|
||||
data<<pCurrChar->GetName();
|
||||
data<<pCurrChar->GetGUID();
|
||||
data << uint8(GE_SIGNED_ON);
|
||||
data << uint8(1);
|
||||
data << pCurrChar->GetName();
|
||||
data << pCurrChar->GetGUID();
|
||||
guild->BroadcastPacket(&data);
|
||||
DEBUG_LOG( "WORLD: Sent guild-signed-on (SMSG_GUILD_EVENT)" );
|
||||
|
||||
// Increment online members of the guild
|
||||
guild->IncOnlineMemberCount();
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
@ -673,9 +672,6 @@ void WorldSession::HandlePlayerLogin(LoginQueryHolder *holder)
|
|||
data << uint32(0);
|
||||
SendPacket(&data);
|
||||
|
||||
if(!pCurrChar->isAlive())
|
||||
pCurrChar->SendCorpseReclaimDelay(true);
|
||||
|
||||
pCurrChar->SendInitialPacketsBeforeAddToMap();
|
||||
|
||||
//Show cinematic at the first time that player login
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue