Grouping Pefected/Non-Perfected sets?
I believe the function GetItemLinkSetInfo() can retrieve a set name, but perfected and non-perfected sets are separate. Is there another function that sees perfected and non-perfected sets within the same set as one? Or would we need to find both, and parse out the Perfected part?
TIA |
GetItemLinkSetInfo(string itemLink, boolean equipped)
* Returns: boolean hasSet, string setName, number numBonuses, number numNormalEquipped, number maxEquipped, number setId, number numPerfectedEquipped Note the parameters numNormalEquipped and numPerfectedEquipped. So the function actually already does distinguish between normal and perfected. |
If you do not wear any of the set items though it does not help.
If you want I can add something to LibSets that returns the setId of unperfected and perfected sets that belong together, as a table with maybe key = dunfeons zoneId (if that's the same for both). But that's manual lookup tables, nothing in the API tells you what belongs together. One could maybe detect the same dungeon as drop zone, if the zoneIds for normal and vet do not differ, that's all afaik. You can use GetItemLinkSetInfo(itemLink) to get the setId and via LibSets's API functions (See here: https://www.esoui.com/downloads/info...xcelsheet.html -> Scroll down to "For developers") return the itemIds, names, and now the IsPerfectedSet boolean info too. Edit: I've added some data to LibSets (Current test version can be found here: https://github.com/Baertram/LibSets/tree/PTS ) which can connect the non perfected and perfected setIds and also added some API functions for that: Code:
-Added API functions to determine non-/perfected setIds of the belonging setId (lookup tables like lib.perfectedSetsInfo |
I have to double check but I think there is already. Function provided by zos to map set I'd of normal and perfected sets together.
Edit: I kinda remembered correctly. There already exists the function "GetItemSetUnperfectedSetId(*setId*)". I use it in my "LibSetDetection". If you provide it with a setId of a perfected set, it will provide the Id of the normal version. Otherwise it returns "0". |
Oh I missed that one, thanks ExoY!
I can use that as I'm scanning the set's itemIds, to detect the mapping. And build the lookup tables dynamically that way on each update. |
All times are GMT -6. The time now is 01:38 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI