You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Quildra f0c15d3ba3 Regular auto-commit at 19:08:39 on 31/10/2022 3 years ago
..
LibQuestXP.lua Regular auto-commit at 19:08:39 on 31/10/2022 3 years ago
LibQuestXP.toc Regular auto-commit at 19:08:39 on 31/10/2022 3 years ago
LibQuestXP.xml Regular auto-commit at 19:08:39 on 31/10/2022 3 years ago
LibQuestXPDB.lua Regular auto-commit at 19:08:39 on 31/10/2022 3 years ago
README.md Regular auto-commit at 19:08:39 on 31/10/2022 3 years ago

README.md

LibQuestXP (Classic)

LibQuestXP is a library for other addons to provide experience reward information about quests for addon developers.

In Classic WoW the GetQuestLogRewardXP lua function was removed, and there's currently no other way to fetch XP reward information. This addon re-implements this function so Addons depending on GetQuestLogRewardXP can be ported to classic from retail.

Important: This is not a standalone addon! If you're not a developer, this addon is probably no use to you.

Usage

LibQuestXP uses LibStub like many other libraries. If you want to embed it in your addon, please use LibQuestXP.xml, which should load all necessary files.

Utilizing GetQuestLogRewardXP

You can select a quest log index, then call GetQuestLogRewardXP without a parameter

SelectQuestLogEntry(questLogIndex);
GetQuestLogRewardXP()

or you can just call GetQuestLogRewardXP with a questID

GetQuestLogRewardXP(questID)