ESOUI

ESOUI (https://www.esoui.com/forums/index.php)
-   AddOn Search/Requests (https://www.esoui.com/forums/forumdisplay.php?f=165)
-   -   Is there an addon or filter that will sort Master Writs by number of vouchers? (https://www.esoui.com/forums/showthread.php?t=8133)

Sp00sty 10/30/18 08:32 AM

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?

Baertram 10/31/18 05:09 AM

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.

sirinsidiator 10/31/18 06:00 AM

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

Baertram 10/31/18 06:10 AM

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

Sp00sty 11/02/18 05:09 PM

Awsome as usual,

Thank you All

ziggr 11/02/18 05:14 PM

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.

Sp00sty 11/04/18 12:08 PM

Thanks Ziggr, I hadn't even looked that far inside since yes, I work only out of the inventory normally.


All times are GMT -6. The time now is 02:24 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI