Questie

Questie

122M Downloads

Ability to add QIB for items that are not 'useable'

coldpasta123 opened this issue ยท 1 comments

commented

Description

There are some quests which require using items that do not have "use:" - such as:

My understanding is that we can't add QIB for these types of items at the moment. Not a priority as not many quests function like this, but wanted to capture as an improvement

commented

For reference, this is the place we sort items before adding them as QIB:

---@param itemId number
---@return boolean
function TrackerUtils:IsQuestItemUsable(itemId)
if itemId and (GetItemSpell(itemId) or IsEquippableItem(itemId)) then
return true
end
return false
end

For the items above they don't have a related spell and can not be equipped. Therefore they are not added as potential QIB.

On top of that we do check for the class of each item in our DB to be marked as quest item:

if questItemId == itemId and QuestieDB.QueryItemSingle(itemId, "class") == QuestieDB.itemClasses.QUEST then

From a quick search there doesn't seem to be an API we can use to determine if an item is "openable".