[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 authored and GitHub committed 2022-12-11 14:08:38 -05:00
1 parent 20efa83f73
commit 46f993ef71
7 files changed
+35 -2

No files matched your search

+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,