View Single Post
10/31/18, 06:00 AM   #3
sirinsidiator
 
sirinsidiator's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 1,578
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
  Reply With Quote