mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-25 08:30:13 +00:00
Add guild features, fix channel joining, and improve whisper reply
Guild: add disband, leader transfer, public/officer note commands with roster context menu showing rank names and officer notes column. Auto-refresh roster after guild events. Channels: fix city/region channels not working by accepting SMSG_CHANNEL_NOTIFY during ENTERING_WORLD state (server auto-joins before VERIFY_WORLD) and handling PLAYER_ALREADY_MEMBER notification. Whisper: /r now switches to whisper tab and sets target to last sender, matching WoW behavior. Camera: extend WMO collision raycasting to work outside WMOs too.
This commit is contained in:
parent
6dd811a926
commit
0d4a9c38f7
9 changed files with 271 additions and 9 deletions
|
|
@ -1622,6 +1622,35 @@ network::Packet GuildRemovePacket::build(const std::string& playerName) {
|
|||
return packet;
|
||||
}
|
||||
|
||||
network::Packet GuildDisbandPacket::build() {
|
||||
network::Packet packet(wireOpcode(Opcode::CMSG_GUILD_DISBAND));
|
||||
LOG_DEBUG("Built CMSG_GUILD_DISBAND");
|
||||
return packet;
|
||||
}
|
||||
|
||||
network::Packet GuildLeaderPacket::build(const std::string& playerName) {
|
||||
network::Packet packet(wireOpcode(Opcode::CMSG_GUILD_LEADER));
|
||||
packet.writeString(playerName);
|
||||
LOG_DEBUG("Built CMSG_GUILD_LEADER: ", playerName);
|
||||
return packet;
|
||||
}
|
||||
|
||||
network::Packet GuildSetPublicNotePacket::build(const std::string& playerName, const std::string& note) {
|
||||
network::Packet packet(wireOpcode(Opcode::CMSG_GUILD_SET_PUBLIC_NOTE));
|
||||
packet.writeString(playerName);
|
||||
packet.writeString(note);
|
||||
LOG_DEBUG("Built CMSG_GUILD_SET_PUBLIC_NOTE: ", playerName, " -> ", note);
|
||||
return packet;
|
||||
}
|
||||
|
||||
network::Packet GuildSetOfficerNotePacket::build(const std::string& playerName, const std::string& note) {
|
||||
network::Packet packet(wireOpcode(Opcode::CMSG_GUILD_SET_OFFICER_NOTE));
|
||||
packet.writeString(playerName);
|
||||
packet.writeString(note);
|
||||
LOG_DEBUG("Built CMSG_GUILD_SET_OFFICER_NOTE: ", playerName, " -> ", note);
|
||||
return packet;
|
||||
}
|
||||
|
||||
network::Packet GuildAcceptPacket::build() {
|
||||
network::Packet packet(wireOpcode(Opcode::CMSG_GUILD_ACCEPT));
|
||||
LOG_DEBUG("Built CMSG_GUILD_ACCEPT");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue