mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-17 23:58:25 +00:00
[Quest API] Add EVENT_EQUIP_ITEM_CLIENT and EVENT_UNEQUIP_ITEM_CLIENT to Perl/Lua. (#2015)
- These events allow more customization beyond forcing operators to use a script file for each and every item they want to have some sort of functionality for these events. - Perl event exports $item_id, $item_quantity, and $slot_id. - Lua event exports item_id, item_quantity, slot_id, and item.
This commit is contained in:
+5
-2
@@ -136,7 +136,9 @@ const char *LuaEvents[_LargestEventID] = {
|
||||
"event_combine",
|
||||
"event_consider",
|
||||
"event_consider_corpse",
|
||||
"event_loot_zone"
|
||||
"event_loot_zone",
|
||||
"event_equip_item_client",
|
||||
"event_unequip_item_client"
|
||||
};
|
||||
|
||||
extern Zone *zone;
|
||||
@@ -227,7 +229,8 @@ LuaParser::LuaParser() {
|
||||
PlayerArgumentDispatch[EVENT_WARP] = handle_player_warp;
|
||||
PlayerArgumentDispatch[EVENT_COMBINE] = handle_player_quest_combine;
|
||||
PlayerArgumentDispatch[EVENT_CONSIDER] = handle_player_consider;
|
||||
PlayerArgumentDispatch[EVENT_CONSIDER_CORPSE] = handle_player_consider_corpse;
|
||||
PlayerArgumentDispatch[EVENT_EQUIP_ITEM_CLIENT] = handle_player_equip_item;
|
||||
PlayerArgumentDispatch[EVENT_UNEQUIP_ITEM_CLIENT] = handle_player_equip_item;
|
||||
|
||||
ItemArgumentDispatch[EVENT_ITEM_CLICK] = handle_item_click;
|
||||
ItemArgumentDispatch[EVENT_ITEM_CLICK_CAST] = handle_item_click;
|
||||
|
||||
Reference in New Issue
Block a user