mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-16 22:58:34 +00:00
[Quest API] Export $item to Client/Bot Equip Events in Perl (#2860)
* [Quest API] Add $item Export to Client/Bot Equip Events # Notes - Adds `$item` export to `EVENT_ITEM_EQUIP_CLIENT`, `EVENT_ITEM_UNEQUIP_CLIENT`, `EVENT_ITEM_EQUIP_BOT`, and `EVENT_UNEQUIP_ITEM_BOT`. * Update bot.cpp * Update embparser.cpp
This commit is contained in:
+10
-2
@@ -2248,7 +2248,11 @@ bool Client::SwapItem(MoveItem_Struct* move_in) {
|
||||
dst_slot_id
|
||||
);
|
||||
|
||||
parse->EventPlayer(EVENT_UNEQUIP_ITEM_CLIENT, this, export_string, dst_inst->GetItem()->ID);
|
||||
std::vector<std::any> args;
|
||||
|
||||
args.emplace_back(dst_inst);
|
||||
|
||||
parse->EventPlayer(EVENT_UNEQUIP_ITEM_CLIENT, this, export_string, dst_inst->GetItem()->ID, &args);
|
||||
}
|
||||
|
||||
if(src_inst) {
|
||||
@@ -2260,7 +2264,11 @@ bool Client::SwapItem(MoveItem_Struct* move_in) {
|
||||
dst_slot_id
|
||||
);
|
||||
|
||||
parse->EventPlayer(EVENT_EQUIP_ITEM_CLIENT, this, export_string, src_inst->GetItem()->ID);
|
||||
std::vector<std::any> args;
|
||||
|
||||
args.emplace_back(src_inst);
|
||||
|
||||
parse->EventPlayer(EVENT_EQUIP_ITEM_CLIENT, this, export_string, src_inst->GetItem()->ID, &args);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user