[Feature] Add lua and perl event for test buff (#1403)

* [Feature] Add lua and perl event for test buff

* added EnableTestBuff
This commit is contained in:
Dencelle
2021-06-16 10:04:34 -05:00
committed by GitHub
parent 5d937b5be9
commit 4f5824b4a1
8 changed files with 18 additions and 3 deletions
+3 -1
View File
@@ -130,7 +130,8 @@ const char *LuaEvents[_LargestEventID] = {
"event_death_zone",
"event_use_skill",
"event_combine_validate",
"event_bot_command"
"event_bot_command",
"event_test_buff"
};
extern Zone *zone;
@@ -213,6 +214,7 @@ LuaParser::LuaParser() {
PlayerArgumentDispatch[EVENT_RESPAWN] = handle_player_respawn;
PlayerArgumentDispatch[EVENT_UNHANDLED_OPCODE] = handle_player_packet;
PlayerArgumentDispatch[EVENT_USE_SKILL] = handle_player_use_skill;
PlayerArgumentDispatch[EVENT_TEST_BUFF] = handle_test_buff;
PlayerArgumentDispatch[EVENT_COMBINE_VALIDATE] = handle_player_combine_validate;
PlayerArgumentDispatch[EVENT_BOT_COMMAND] = handle_player_bot_command;