View Single Post
08-14-20, 10:33 PM   #2
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,928
Originally Posted by OUGHT View Post
I want to get the amount of a lootable quest items that do not show in my bags. I tried both GetItemCount and GetNumQuestItemDrops, and they both return zero.
How do I get this information?

From memory they changed things a while back where quest items no longer take up space in the back pack so you probably will have to go through one of the Quest Functions or Events.

"QUEST_ITEM_UPDATE" - Although this may have been replaced recently

This appears to be more current
QUEST_LOG_CRITERIA_UPDATE:

parameters appear to be questID, specificTreeID, "description", numFulfilled, numRequired

I suspect the numFulfilled and numRequired will update as you collect them.

This function may allow you to monitor it more frequently via the questID


C_QuestLog.GetQuestObjectives(questID)

Arguments
# Name Type
1 questID number

Return values
# Name Type
1 objectives QuestObjectiveInfo[]

QuestObjectiveInfo
Field Type
text string
type string
finished boolean
numFulfilled number
numRequired number


You may need to request access to the quest information though ..

C_QuestLog.RequestLoadQuestByID(questID)
Arguments
# Name Type
1 questID number

And then monitor for this event and check its result before attempting to use the date

QUEST_DATA_LOAD_RESULT: questID, success
Payload
# Name Type
1 questID number
2 success boolean


The above is from this page :
https://wow.gamepedia.com/QUEST_ITEM_UPDATE

And the page the link in it takes you to.
https://www.townlong-yak.com/framexm...ST_ITEM_UPDATE
__________________


Characters:
Gwynedda - 70 - Demon Warlock
Galaviel - 65 - Resto Druid
Gamaliel - 61 - Disc Priest
Gwynytha - 60 - Survival Hunter
Lienae - 60 - Resto Shaman
Plus several others below level 60

Info Panel IDs : http://www.wowinterface.com/forums/s...818#post136818
  Reply With Quote