LibLeadDrop (1.0.0)

LibLeadDrop is a data library providing drop information for antiquity leads.

All lead drop hints were obtained from https://en.uesp.net/, many thanks to authors, contributors, admins, and all people responsible for the wiki.
Proper credit for specific pages is bundled with data and also exposed via LibLeadDrop.getLeadDropHintLink function.

How to use:

Use the library as DependsOn or OptionalDependsOn in your addon file:
## OptionalDependsOn: LibLeadDrop>=010000
Try to use the most recent library version, you can find this version in LibLeadDrop.addon file after download.

Library offers these functions: (defined in LibLeadDropAPI.lua):

function LibLeadDrop.getLeadDropHint(integer antiquityId) –> String: This returns the hint for where the lead drops
function LibLeadDrop.getLeadDropHintLink(integer antiquityId) –> String: This returns the https://en.uesp.net/ link to a page from which the Drop Hint was taken.
function LibLeadDrop.getAntiquityIdsForSet(integer setId) –> Array: This is a helper function for mythics and set antiquities, it returns all antiquityIds for given setId.

Example:

local malacathPieces = LibLeadDrop.getAntiquityIdsForSet(11)
for _, antiquityId in ipairs(malacathPieces) do
d(LibLeadDrop.getLeadDropHint(antiquityId))
end
Would output

Overland mobs
Public Dungeon bosses in Old Orsinium
Public Dungeon bosses in Bonesnap Ruins
Patrolling Horrors in the Imperial City
World Bosses
Note: you can obtain antiquity zone by vanilla API: GetAntiquityZoneId(integer antiquityId) and that is the reason why zones aren’t bundled in LibLeadDrop. Tho, one of the future goals of this library is to also provide zoneIds explicitly for drop zones.

LibLeadDrop.data variable is considered internal, and is not recommended for using in addons. Please prefer obtaining data by exposed API functions.

Please do not bundle this library with your addon, as it is not recommended by esoui, and also be cautious when copying any data directly into your addon files. You may still do so, but be aware that redistribution of the data means you must comply with the Creative Commons Attribution-ShareAlike 2.5 Generic (CC BY-SA 2.5) license. You can find more information in license.txt after download or by checking the link: https://creativecommons.org/licenses/by-sa/2.5/

Leave a Reply

Your email address will not be published. Required fields are marked *

For security, use of Google's reCAPTCHA service is required which is subject to the Google Privacy Policy and Terms of Use.