LibNPCInfo

LibNPCInfo

261 Downloads

⚜️ Introduction

Cause Blizzard do not provide an API for retrieving information about NPCs, this library is created to help you retrieve information about any NPC with its ID.

The algorithm behind this library is simple:
1. Create a new tooltip for scanning.
2. Attempt to set the unit of the tooltip to the NPC with the ID you want to retrieve information about.
3. Scrape the NPC's information from this tooltip.

It seems Blizzard limits the rate of tooltip unit setting, or the network quality also affects. Sometimes you need to wait a bit before you can retrieve information about a NPC. Since this library already added a double check for tooltips, usually you can safely use it.

🤌 Usage

See Examples in GitHub