View Single Post
05/13/19, 08:29 AM   #7
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,980
Not quite sure if silvereyes meant this to be added as well but we would be very glad if you could add an API function which is able to provide the set's information without having to use and itemlink.

As the given game's API function

Current
Code:
* GetItemLinkSetInfo(*string* _itemLink_, *bool* _equipped_)
** _Returns:_ *bool* _hasSet_, *string* _setName_, *integer* _numBonuses_, *integer* _numEquipped_, *integer* _maxEquipped_, *integer* _setId_
provides the unique setId already it would be great if we could get all other information this function returns today (set name, bonus, etc.) by just having to use the unique setId
e.g.


New added
Code:
* GetSetInfo(*number* _setId_, *bool* _equipped_)
** _Returns:_ *string* _setName_, *integer* _numBonuses_, *integer* _numEquipped_, *integer* _maxEquipped_, *table* itemIdsOfThisSetId
The last return value "itemIdsOfThisSetId" would be cool but I guess nice 2 have


And for the setBonus info as well:

Current
Code:
* GetItemLinkSetBonusInfo(*string* _itemLink_, *bool* _equipped_, *luaindex* _index_)
** _Returns:_ *integer* _numRequired_, *string* _bonusDescription_
New added
Code:
* GetSetBonusInfo(*number* _setId_, *bool* _equipped_, *luaindex* _index_)
** _Returns:_ *integer* _numRequired_, *string* _bonusDescription_
  Reply With Quote