[Quest API] Add GetBotItem() and GetBotItemIDBySlot() to Perl/Lua. (#2350)

- Add $bot->GetBotItem() to Perl.
- Add $bot->GetBotItemIDBySlot() to Perl.
- Add bot:GetBotItem() to Lua.
- Add bot:GetBotItemIDBySlot() to Lua.
This commit is contained in:
Kinglykrab
2022-07-31 14:45:17 -04:00
committed by GitHub
parent a24a6f1160
commit b0da836f5a
4 changed files with 28 additions and 1 deletions
+1 -1
View File
@@ -588,6 +588,7 @@ public:
uint32 augment_six = 0
);
uint32 CountBotItem(uint32 item_id);
uint32 GetBotItemBySlot(uint16 slot_id);
bool HasBotItem(uint32 item_id);
void RemoveBotItem(uint32 item_id);
uint32 GetTotalPlayTime();
@@ -733,7 +734,6 @@ private:
// Private "Inventory" Methods
void GetBotItems(EQ::InventoryProfile &inv, std::string* error_message);
void BotAddEquipItem(uint16 slot_id, uint32 item_id);
uint32 GetBotItemBySlot(uint16 slot_id);
// Private "Pet" Methods
bool LoadPet(); // Load and spawn bot pet if there is one