mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-13 10:58:20 +00:00
[Quest API] Export killed XYZH to EVENT_DEATH_ZONE in Perl. (#2050)
- Export $killed_x, $killed_y, $killed_z, and $killed_h to EVENT_DEATH_ZONE in Perl. - Cleanup export strings and unnecessary .c_str() calls on event exports.
This commit is contained in:
+4
-4
@@ -1426,9 +1426,9 @@ void Mob::CreateHPPacket(EQApplicationPacket* app)
|
||||
{
|
||||
if (ds->hp < GetNextHPEvent())
|
||||
{
|
||||
std::string buf = fmt::format("{}", GetNextHPEvent());
|
||||
std::string export_string = fmt::format("{}", GetNextHPEvent());
|
||||
SetNextHPEvent(-1);
|
||||
parse->EventNPC(EVENT_HP, CastToNPC(), nullptr, buf.c_str(), 0);
|
||||
parse->EventNPC(EVENT_HP, CastToNPC(), nullptr, export_string, 0);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1436,9 +1436,9 @@ void Mob::CreateHPPacket(EQApplicationPacket* app)
|
||||
{
|
||||
if (ds->hp > GetNextIncHPEvent())
|
||||
{
|
||||
std::string buf = fmt::format("{}", GetNextIncHPEvent());
|
||||
std::string export_string = fmt::format("{}", GetNextIncHPEvent());
|
||||
SetNextIncHPEvent(-1);
|
||||
parse->EventNPC(EVENT_HP, CastToNPC(), nullptr, buf.c_str(), 1);
|
||||
parse->EventNPC(EVENT_HP, CastToNPC(), nullptr, export_string, 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user