mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-04-25 13:03:50 +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.)
|
// Server forces player into dead state (GM command, scripted event, etc.)
|
||||||
playerDead_ = true;
|
playerDead_ = true;
|
||||||
if (ghostStateCallback_) ghostStateCallback_(false); // dead but not ghost yet
|
if (ghostStateCallback_) ghostStateCallback_(false); // dead but not ghost yet
|
||||||
|
addSystemChatMessage("You have been killed.");
|
||||||
LOG_INFO("SMSG_FORCED_DEATH_UPDATE: player force-killed");
|
LOG_INFO("SMSG_FORCED_DEATH_UPDATE: player force-killed");
|
||||||
packet.setReadPos(packet.getSize());
|
packet.setReadPos(packet.getSize());
|
||||||
break;
|
break;
|
||||||
|
|
@ -5871,9 +5872,15 @@ void GameHandler::handlePacket(network::Packet& packet) {
|
||||||
uint8_t levelMin = packet.readUInt8();
|
uint8_t levelMin = packet.readUInt8();
|
||||||
uint8_t levelMax = packet.readUInt8();
|
uint8_t levelMax = packet.readUInt8();
|
||||||
char buf[128];
|
char buf[128];
|
||||||
std::snprintf(buf, sizeof(buf),
|
std::string zoneName = getAreaName(zoneId);
|
||||||
"You are now in the Meeting Stone queue for zone %u (levels %u-%u).",
|
if (!zoneName.empty())
|
||||||
zoneId, levelMin, levelMax);
|
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);
|
addSystemChatMessage(buf);
|
||||||
LOG_INFO("SMSG_MEETINGSTONE_SETQUEUE: zone=", zoneId,
|
LOG_INFO("SMSG_MEETINGSTONE_SETQUEUE: zone=", zoneId,
|
||||||
" levels=", (int)levelMin, "-", (int)levelMax);
|
" levels=", (int)levelMin, "-", (int)levelMax);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue