[Bots] Add EVENT_UNEQUIP_ITEM_BOT & EVENT_EQUIP_ITEM_BOT (#2796)

* Initial Commit, need to test.

* Add unequip events.

* const auto
This commit is contained in:
Aeadoin
2023-01-26 19:49:20 -05:00
committed by GitHub
parent b71b3f5be0
commit 826550acac
8 changed files with 117 additions and 1 deletions
+8
View File
@@ -9477,6 +9477,14 @@ void bot_subcommand_inventory_remove(Client *c, const Seperator *sep)
slot_id
)
);
const auto export_string = fmt::format(
"{} {}",
inst->IsStackable() ? inst->GetCharges() : 1,
slot_id
);
parse->EventBot(EVENT_UNEQUIP_ITEM_BOT, my_bot, nullptr, export_string, inst->GetID());
}
}