mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-17 15:38:27 +00:00
[Quest API] Add RemoveAAPoints() and AA Loss Event to Perl/Lua (#4174)
* [Quest API] Add RemoveAAPoints() and AA Loss Event to Perl/Lua # Perl - Add `$client->RemoveAAPoints(points)`. - Add `EVENT_AA_LOSS`, exports `$aa_lost`. # Lua - Add `client:RemoveAAPoints(points)`. - Add `event_aa_loss`, exports `e.aa_lost`. # Notes - Allows operators to more easily remove AA Points. - Has a bool return type that will return false if the player does not have enough AA Points to complete the removal. * Update client.cpp
This commit is contained in:
+3
-1
@@ -182,7 +182,8 @@ const char *LuaEvents[_LargestEventID] = {
|
||||
"event_timer_stop",
|
||||
"event_entity_variable_delete",
|
||||
"event_entity_variable_set",
|
||||
"event_entity_variable_update"
|
||||
"event_entity_variable_update",
|
||||
"event_aa_loss"
|
||||
};
|
||||
|
||||
extern Zone *zone;
|
||||
@@ -343,6 +344,7 @@ LuaParser::LuaParser() {
|
||||
PlayerArgumentDispatch[EVENT_ENTITY_VARIABLE_DELETE] = handle_player_entity_variable;
|
||||
PlayerArgumentDispatch[EVENT_ENTITY_VARIABLE_SET] = handle_player_entity_variable;
|
||||
PlayerArgumentDispatch[EVENT_ENTITY_VARIABLE_UPDATE] = handle_player_entity_variable;
|
||||
PlayerArgumentDispatch[EVENT_AA_LOSS] = handle_player_aa_loss;
|
||||
|
||||
ItemArgumentDispatch[EVENT_ITEM_CLICK] = handle_item_click;
|
||||
ItemArgumentDispatch[EVENT_ITEM_CLICK_CAST] = handle_item_click;
|
||||
|
||||
Reference in New Issue
Block a user