[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:
Kinglykrab
2021-09-12 23:39:09 -04:00
committed by GitHub
parent 56b9b6f2c4
commit 38a86edc70
7 changed files with 21 additions and 19 deletions
+3 -1
View File
@@ -132,7 +132,8 @@ const char *LuaEvents[_LargestEventID] = {
"event_combine_validate",
"event_bot_command",
"event_warp",
"event_test_buff"
"event_test_buff",
"event_consider_corpse"
};
extern Zone *zone;
@@ -220,6 +221,7 @@ LuaParser::LuaParser() {
PlayerArgumentDispatch[EVENT_COMBINE_VALIDATE] = handle_player_combine_validate;
PlayerArgumentDispatch[EVENT_BOT_COMMAND] = handle_player_bot_command;
PlayerArgumentDispatch[EVENT_WARP] = handle_player_warp;
PlayerArgumentDispatch[EVENT_CONSIDER_CORPSE] = handle_player_consider_corpse;
ItemArgumentDispatch[EVENT_ITEM_CLICK] = handle_item_click;
ItemArgumentDispatch[EVENT_ITEM_CLICK_CAST] = handle_item_click;