LibObjectiveProgress is a simple library designed to provide an API for quest objective progress weight information.
For Mythic dungeons, it provides the following API (where mapID is mapID, NOT worldMapID, and where isTeeming is a boolean that defaults to false):
GetNPCWeightByMap(mapID, npcID, isTeeming = false) - returns weight in percentage form ('1' for 1%) or nil
For quests (including world quests), it provides the following API:
GetNPCWeightByQuest(questID, npcID) - returns weight in percentage form ('1' for 1%) or nil
GetNPCWeightByCurrentQuests(npcID) - returns a table of '[questID] = weight' pairs for the specified NPC -or- nil in the case that the NPC has no weights under any of the current quests
The library is relatively lightweight, and data is not directly loaded until it is requested (first request for a map-based weight will load all map-based weights, and first request for a quest-based weight will load all quest-based weights).
KNOWN ISSUES:
World quest NPC weight data is lacking for some quests. Looking to improve this for future exports but need to do more research on the connections between NPC and Quest in the client-side data.
Facts
- Date created
- Oct 09, 2016
- Categories
- Last update
- Oct 25, 2016
- Development stage
- Release
- License
- BSD License
- Curse link
- LibObjectiveProgress-1.0
- Reverse relationships
- 1
- Downloads
- 313
- Recent files
Authors
Relationships
- Embedded library
- LibStub