[Quest API] Add EVENT_GM_COMMAND to Perl/Lua. (#2634)

# Perl
- Add `EVENT_GM_COMMAND`, exports `$message`.

# Lua
- Add `event_gm_command`, exports `e.message`.

# Notes
- Only parses with real GM commands such as `#reload quest`.
This commit is contained in:
Alex King
2022-12-11 14:08:38 -05:00
committed by GitHub
parent 20efa83f73
commit 46f993ef71
7 changed files with 35 additions and 2 deletions
+12
View File
@@ -1116,6 +1116,18 @@ void handle_player_level_down(
lua_setfield(L, -2, "levels_lost");
}
void handle_player_gm_command(
QuestInterface *parse,
lua_State* L,
Client* client,
std::string data,
uint32 extra_data,
std::vector<std::any> *extra_pointers
) {
lua_pushstring(L, data.c_str());
lua_setfield(L, -2, "message");
}
// Item
void handle_item_click(
QuestInterface *parse,