[Quest API] Add GetAugmentIDsBySlotID() to Perl/Lua. (#2673)

* [Quest API] Add GetAugmentIDsBySlotID() to Perl/Lua.

# Perl
- Add `$client->GetAugmentIDsBySlotID(slot_id)`.
- Add `$inventory->GetAugmentIDsBySlotID(slot_id)`.

# Lua
- Add `client:GetAugmentIDsBySlotID(slot_id)`.
- Add `inventory:GetAugmentIDsBySlotID(slot_id)`.

# Notes
- Allows operators to get a list of augments from a specific slot instead of having to build a plugin or something to do it.
- Fix issue with Lua tables starting at index `1` versus index `0`, so you lost the first value of the table due to this.

* Update inventory_profile.cpp
This commit is contained in:
Alex King
2022-12-25 15:14:54 -05:00
committed by GitHub
parent 6229852331
commit d7ae3d5c6d
8 changed files with 85 additions and 9 deletions
+1
View File
@@ -454,6 +454,7 @@ public:
void SendPayload(int payload_id, std::string payload_value);
std::string GetGuildPublicNote();
void MaxSkills();
luabind::object GetAugmentIDsBySlotID(lua_State* L, int16 slot_id);
void ApplySpell(int spell_id);
void ApplySpell(int spell_id, int duration);