mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-17 07:18:37 +00:00
[Quest API] Add EVENT_CONSIDER_CORPSE to Perl and Lua. (#1530)
- Exports $corpse_entity_id in Perl. - Exports e.corpse_entity_id in Lua. Allows you to perform events on corpse consider for server operators.
This commit is contained in:
+6
-1
@@ -121,7 +121,8 @@ const char *QuestEventSubroutines[_LargestEventID] = {
|
||||
"EVENT_COMBINE_VALIDATE",
|
||||
"EVENT_BOT_COMMAND",
|
||||
"EVENT_WARP",
|
||||
"EVENT_TEST_BUFF"
|
||||
"EVENT_TEST_BUFF",
|
||||
"EVENT_CONSIDER_CORPSE"
|
||||
};
|
||||
|
||||
PerlembParser::PerlembParser() : perl(nullptr)
|
||||
@@ -1644,6 +1645,10 @@ void PerlembParser::ExportEventVariables(
|
||||
ExportVar(package_name.c_str(), "from_z", sep.arg[2]);
|
||||
break;
|
||||
}
|
||||
case EVENT_CONSIDER_CORPSE: {
|
||||
ExportVar(package_name.c_str(), "corpse_entity_id", std::stoi(data));
|
||||
break;
|
||||
}
|
||||
|
||||
default: {
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user