Core/PacketIO: Enabled another bunch of opcodes and made some misc fixes here and there

This commit is contained in:
Subv
2012-08-05 21:52:36 -05:00
parent efded87d7e
commit 8b8fa24fec
10 changed files with 139 additions and 101 deletions

View File

@@ -1291,9 +1291,7 @@ void Guild::HandleQuery(WorldSession* session)
for (uint8 i = 0; i < GUILD_RANKS_MAX_COUNT; ++i)
{
if (i < _GetRanksSize())
{
data << uint32(m_ranks[i].GetId());
}
else
data << uint32(0);
}
@@ -1545,7 +1543,7 @@ void Guild::HandleInviteMember(WorldSession* session, const std::string& name)
_LogEvent(GUILD_EVENT_LOG_INVITE_PLAYER, player->GetGUIDLow(), pInvitee->GetGUIDLow());
WorldPacket data(SMSG_GUILD_INVITE, 100);
data << uint32(1); // Guild Level
data << uint32(GetLevel());
data << uint32(m_emblemInfo.GetStyle());
data << uint32(m_emblemInfo.GetBorderColor());
data << uint32(m_emblemInfo.GetBorderStyle());