Core/PacketIO: Enabled more opcodes

This commit is contained in:
Shauren
2013-06-23 12:55:54 +02:00
parent e74c0e9f00
commit a2855e84c5
4 changed files with 51 additions and 27 deletions

View File

@@ -1366,6 +1366,30 @@ bool Guild::SetName(std::string const& name)
stmt->setString(0, m_name);
stmt->setUInt32(1, GetId());
CharacterDatabase.Execute(stmt);
ObjectGuid guid = GetGUID();
WorldPacket data(SMSG_GUILD_RENAMED, 24 + 8 + 1);
data.WriteBit(guid[5]);
data.WriteBits(name.length(), 8);
data.WriteBit(guid[4]);
data.WriteBit(guid[0]);
data.WriteBit(guid[6]);
data.WriteBit(guid[3]);
data.WriteBit(guid[1]);
data.WriteBit(guid[7]);
data.WriteBit(guid[2]);
data.WriteByteSeq(guid[3]);
data.WriteByteSeq(guid[2]);
data.WriteByteSeq(guid[7]);
data.WriteByteSeq(guid[1]);
data.WriteByteSeq(guid[0]);
data.WriteByteSeq(guid[6]);
data.WriteString(name);
data.WriteByteSeq(guid[4]);
data.WriteByteSeq(guid[5]);
BroadcastPacket(&data);
return true;
}