mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-22 23:30:14 +00:00
feat: show force-kill notification and resolve Meeting Stone zone name
This commit is contained in:
parent
8cac557f86
commit
a9835f6873
1 changed files with 10 additions and 3 deletions
|
|
@ -2363,6 +2363,7 @@ void GameHandler::handlePacket(network::Packet& packet) {
|
|||
// Server forces player into dead state (GM command, scripted event, etc.)
|
||||
playerDead_ = true;
|
||||
if (ghostStateCallback_) ghostStateCallback_(false); // dead but not ghost yet
|
||||
addSystemChatMessage("You have been killed.");
|
||||
LOG_INFO("SMSG_FORCED_DEATH_UPDATE: player force-killed");
|
||||
packet.setReadPos(packet.getSize());
|
||||
break;
|
||||
|
|
@ -5871,9 +5872,15 @@ void GameHandler::handlePacket(network::Packet& packet) {
|
|||
uint8_t levelMin = packet.readUInt8();
|
||||
uint8_t levelMax = packet.readUInt8();
|
||||
char buf[128];
|
||||
std::snprintf(buf, sizeof(buf),
|
||||
"You are now in the Meeting Stone queue for zone %u (levels %u-%u).",
|
||||
zoneId, levelMin, levelMax);
|
||||
std::string zoneName = getAreaName(zoneId);
|
||||
if (!zoneName.empty())
|
||||
std::snprintf(buf, sizeof(buf),
|
||||
"You are now in the Meeting Stone queue for %s (levels %u-%u).",
|
||||
zoneName.c_str(), levelMin, levelMax);
|
||||
else
|
||||
std::snprintf(buf, sizeof(buf),
|
||||
"You are now in the Meeting Stone queue for zone %u (levels %u-%u).",
|
||||
zoneId, levelMin, levelMax);
|
||||
addSystemChatMessage(buf);
|
||||
LOG_INFO("SMSG_MEETINGSTONE_SETQUEUE: zone=", zoneId,
|
||||
" levels=", (int)levelMin, "-", (int)levelMax);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue