mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-16 22:58:34 +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:
@@ -2439,11 +2439,11 @@ void ClientTaskState::AcceptNewTask(
|
||||
client->MessageString(Chat::White, YOU_ASSIGNED_TASK, task->title.c_str());
|
||||
|
||||
task_manager->SaveClientState(client, this);
|
||||
std::string buf = std::to_string(task_id);
|
||||
std::string export_string = std::to_string(task_id);
|
||||
|
||||
NPC *npc = entity_list.GetID(npc_type_id)->CastToNPC();
|
||||
if (npc) {
|
||||
parse->EventNPC(EVENT_TASK_ACCEPTED, npc, client, buf.c_str(), 0);
|
||||
parse->EventNPC(EVENT_TASK_ACCEPTED, npc, client, export_string, 0);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user