[Feature] Add player /inspect quest event (#2508)

Returning non-zero from EVENT_INSPECT will prevent default message
This commit is contained in:
hg
2022-10-29 19:49:48 -04:00
committed by GitHub
parent 3bc5d4b125
commit 9e836a9780
7 changed files with 29 additions and 4 deletions
+3 -1
View File
@@ -145,7 +145,8 @@ const char *LuaEvents[_LargestEventID] = {
"event_alt_currency_merchant_buy",
"event_alt_currency_merchant_sell",
"event_merchant_buy",
"event_merchant_sell"
"event_merchant_sell",
"event_inspect",
};
extern Zone *zone;
@@ -245,6 +246,7 @@ LuaParser::LuaParser() {
PlayerArgumentDispatch[EVENT_ALT_CURRENCY_MERCHANT_SELL] = handle_player_alt_currency_merchant;
PlayerArgumentDispatch[EVENT_MERCHANT_BUY] = handle_player_merchant;
PlayerArgumentDispatch[EVENT_MERCHANT_SELL] = handle_player_merchant;
PlayerArgumentDispatch[EVENT_INSPECT] = handle_player_inspect;
ItemArgumentDispatch[EVENT_ITEM_CLICK] = handle_item_click;
ItemArgumentDispatch[EVENT_ITEM_CLICK_CAST] = handle_item_click;