Thread Tools Display Modes
11/19/17, 04:33 AM   #1
manavortex
 
manavortex's Avatar
AddOn Author - Click to view addons
Join Date: May 2014
Posts: 138
[outdated] IsItemPartOfQuest(bagId, slotId)

Hey Chip,

I'd like to check whether or not an item in my bag is needed for an active quest.
Use case: Auto-junk-AddOns like Dustman or my self-hacked thing that ditches certain stuff on pickup - both are somewhat annoying with the crow quests right now.

Suuuuper convenient would be if I could add a boolean to ask if that item would be needed for _any_ quest that my character is entitled to, but that'd probably be difficult?

Thanks a ton!

Last edited by manavortex : 11/19/17 at 04:36 AM.
 
11/19/17, 05:05 AM   #2
sirinsidiator
 
sirinsidiator's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 1,566
I agree, but the other way around would be more widely usable IMO. Instead of checking if an item in the inventory is part of the quest, give use a way to get the requirements for a quest, e.g. itemLink, stackCountNeeded, stackCountInInventory = GetQuestConditionItemDetails(index) and of course a GetQuestConditionItemCount().
 
11/19/17, 11:23 AM   #3
Dolgubon
 
Dolgubon's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2016
Posts: 408
If this happens I'll be surprised, really thankful, and also annoyed. And probably sit in shock for a few minutes.
 
11/20/17, 10:22 AM   #4
ZOS_ChipHilseberg
ZOS Staff!
Premium Member
Yes this person is from ZeniMax!
Join Date: Oct 2014
Posts: 551
Hmm, conditions have a type that we could return. Then we would need to implement different functions for every type to return info specific to that type. Right now we have 53 quest condition types, so that would be a lot of work. Of those 53, 8 reference items so maybe we could just expose info on those.
 
11/20/17, 11:42 AM   #5
Dolgubon
 
Dolgubon's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2016
Posts: 408
I should have just asked before. Even if it's just an item link or something that would greatly simplify a lot of code, and prevent issues where the quest conditions get swapped or misspelled in translations and mess up the writ crafter.
 
11/20/17, 11:44 AM   #6
sirinsidiator
 
sirinsidiator's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 1,566
That's all I'd expect. Items are probably the only quest condition that is relevant for addons atm.
 
11/21/17, 04:01 AM   #7
manavortex
 
manavortex's Avatar
AddOn Author - Click to view addons
Join Date: May 2014
Posts: 138
I have two addons that are directly affected.
One is the thing that automatically unstuffs my inventory which I haven't updated in forever but am still using.
It would be great to be able to exclude quest items via API call*.
The other is my (currently early alpha) addOn that processes stolen items based on user preferences. Currently I'm excluding items like
Lua Code:
  1. for i=1, GetItemLinkNumItemTags(itemLink) do
  2.     local itemTagDescription, itemTagCategory = GetItemLinkItemTagInfo(itemLink, i)
  3.     for index, partial in pairs(AutoProcessStolenItems.crowStrings) do
  4.         if itemTagDescription:match(partial) then return true end
  5.     end
  6. end
which is not particularly pretty and requires me to hold the localised crow strings in a list to iterate over.

* btw, why is there an IsItemLinkCrafted(string itemLink), but not IsItemCrafted(bagId, slotId)? Would you call that internally anyway? Right now I'd have to use IsItemLinkCrafted(GetItemLink(bagId, slotId)).


Hence my request. I hope that clarifies my needs to a degree - I can't speak for the others, of course.
 

ESOUI » Developer Discussions » Wish List » [outdated] IsItemPartOfQuest(bagId, slotId)

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off