[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
+2
View File
@@ -37,6 +37,8 @@ public:
void AddBotItem(uint16 slot_id, uint32 item_id, int16 charges, bool attuned, uint32 augment_one, uint32 augment_two, uint32 augment_three, uint32 augment_four, uint32 augment_five);
void AddBotItem(uint16 slot_id, uint32 item_id, int16 charges, bool attuned, uint32 augment_one, uint32 augment_two, uint32 augment_three, uint32 augment_four, uint32 augment_five, uint32 augment_six);
uint32 CountBotItem(uint32 item_id);
Lua_ItemInst GetBotItem(uint16 slot_id);
uint32 GetBotItemIDBySlot(uint16 slot_id);
Lua_Mob GetOwner();
bool HasBotItem(uint32 item_id);
void RemoveBotItem(uint32 item_id);