ESOUI

ESOUI (https://www.esoui.com/forums/index.php)
-   Wish List (https://www.esoui.com/forums/forumdisplay.php?f=177)
-   -   [open] new globals (https://www.esoui.com/forums/showthread.php?t=8480)

Scootworks 04/19/19 04:22 PM

[open] new globals
 
simple wishes:
- MAX_ABILITY_ID
- MAX_ITEM_ID
- MAX_SET_ID


done:
- MAX_PLAYER_PET -> MAX_PET_UNIT_TAGS
- MAX_ZONE_ID (sirinsidiator, marlonbrando)


thanks :)

sirinsidiator 04/20/19 02:10 AM

Great idea! MAX_ZONE_ID would also be cool. :D

marlonbrando 04/20/19 03:24 PM

Quote:

Originally Posted by sirinsidiator (Post 37838)
Great idea! MAX_ZONE_ID would also be cool. :D

Ditto, for all of the suggestions.

Scootworks 03/27/20 02:54 PM

well done! we got MAX_PET_UNIT_TAGS at least :) thanks

Keldor 03/28/20 08:31 AM

These globals are a great idea :D

ZOS_DanBatson 03/30/20 11:21 AM

GetNumZones() will return the number of zones you can iterate zoneIndex over.

sirinsidiator 03/30/20 12:37 PM

Oh nice. I somehow missed that function getting added. :D

Scootworks 07/02/20 09:31 PM

are there any "hidden" or recently added function too for the other ones? :)

ZOS_DanBatson 07/06/20 12:57 PM

Unfortunately no. Zone happened to already have an iterating system available that let me easily expose the max to you. The other 3 we don't have any such system at the ready.

Baertram 11/11/20 10:31 AM

With the new set item collections, is a GetNumSets() function possible now or do we need to "iterate" the setIds via GetNextItemSetCollectionId() until it returns 0/nil ?

Edit:
An answer from ZOs:
There is no index one could use to build that function but the following data will return the number of given "reconstructable" setIds and is build before addons are loaded:

Lua Code:
  1. local numSetIds = NonContiguousCount(ITEM_SET_COLLECTIONS_DATA_MANAGER.itemSetCollections)

But this will only provide the number of "reconstructable" sets available (excluding craftable ones, and other sets), not the real "highest set number in the game"!

For a total set number and data you are currently able to use the library: LibSets

ZOS_DanBatson 11/12/20 04:30 PM

And to be very specific, that only tells you how many reconstructable item sets there are, not all sets. Most notably, It doesn't account for crafted sets.


All times are GMT -6. The time now is 12:23 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI