Quantcast Is there an addon or filter that will sort Master Writs by number of vouchers? - ESOUI
Thread Tools Display Modes
10/30/18, 08:32 AM   #1
Sp00sty
Join Date: Apr 2014
Posts: 57
Is there an addon or filter that will sort Master Writs by number of vouchers?

I do tons of normal and master writs and when I have to get around to cleaning out my Master Writs I try to premake them for quick dialogue turn-in.

I try to get through the highest voucher ones first, but currently I don't see anyway to know without rolling over every single one and trying to keep straight which one I am crafting. In inventory they are in no order other than alphabetical.

I don't see any current addons or additional filters that sort by voucher numbers, and they are zero value in inventory even with some of the price addons I use.

Is there anything in the API that a quick filter could be built from that would sort that way?

Last edited by Sp00sty : 10/30/18 at 08:39 AM.
  Reply With Quote
10/31/18, 05:09 AM   #2
Baertram
 
Baertram's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 1,816
I think you are only able to get this information "outside of the tooltip" so far if you "really start the writ quest".
After that one could use the API function here:
Code:
* GetJournalQuestRewardInfo(*luaindex* _journalQuestIndex_, *luaindex* _rewardIndex_)
** _Returns:_ *[RewardType|#RewardType]* _type_, *string* _name_, *integer* _amount_, *textureName* _iconFile_, *bool* _meetsUsageRequirement_, *[ItemQuality|#ItemQuality]* _itemQuality_, *[RewardItemType|#RewardItemType]:nilable* _itemType_
I'm not aware of any other way to determine the amount of writ vouchers you get via e.g. bag and slotIndex or itemLink.
  Reply With Quote
10/31/18, 06:00 AM   #3
sirinsidiator
 
sirinsidiator's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 1,153
There is currently no API method to get the vouchers, but you can use the following function as a workaround:
Lua Code:
  1. local function GetItemLinkWritVoucherCount(itemLink)
  2.     local data = select(24, ZO_LinkHandler_ParseLink(itemLink))
  3.     local vouchers = tonumber(data) / 10000
  4.     return tonumber(string.format("%.0f", vouchers))
  5. end
__________________
>siri.exe MyAddon
Does your addon work? [y/n] n
There is a typo in there.
  Reply With Quote
10/31/18, 06:10 AM   #4
Baertram
 
Baertram's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 1,816
Good to know, thanks.
One could build an AdvancedFilters plugin with this workaround e.g.

AdvancedFilters - Plugin for "Writ voucher count" filters

Attention:
You need to use the AdvancedFilters beta version 1.5.0.6 or higher in order to let this plugion work properly!
You can get the beta version here:
https://www.esoui.com/downloads/info....html#comments

Most current beta version link: AF beta 1.5.0.6

Last edited by Baertram : 10/31/18 at 07:20 AM.
  Reply With Quote
11/02/18, 05:09 PM   #5
Sp00sty
Join Date: Apr 2014
Posts: 57
Awsome as usual,

Thank you All
  Reply With Quote
11/02/18, 05:14 PM   #6
ziggr
 
ziggr's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2014
Posts: 18
WritWorthy window can sort by voucher

WritWorthy window is sortable by voucher reward.




I know you wanted to sort the main Inventory list, not some add-on's list window. This is as close as I can get.
  Reply With Quote
11/04/18, 12:08 PM   #7
Sp00sty
Join Date: Apr 2014
Posts: 57
Thanks Ziggr, I hadn't even looked that far inside since yes, I work only out of the inventory normally.
  Reply With Quote

ESOUI » AddOns » AddOn Search/Requests » Is there an addon or filter that will sort Master Writs by number of vouchers?

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