mirror of
https://github.com/EQEmu/Server.git
synced 2026-11-23 04:37:16 +00:00
[Quest API] Export $killed_npc to EVENT_NPC_SLAY to Perl (#2879)
# Notes - Exports `$killed_npc` to `EVENT_NPC_SLAY` to Perl. - Allows operators to use NPC reference in event instead of just NPC ID.
This commit is contained in:
1 parent
3813162bac
commit
c64591b8f7
2 files changed
+9
-2
No files matched your search
@@ -1591,6 +1591,7 @@ void PerlembParser::ExportEventVariables(
|
||||
|
||||
case EVENT_NPC_SLAY: {
|
||||
ExportVar(package_name.c_str(), "killed", mob->GetNPCTypeID());
|
||||
ExportVar(package_name.c_str(), "killed_npc", "NPC", mob->CastToNPC());
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user