Originally Posted by OUGHT
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