LibArmorToken-1.0

191 Downloads

Simple library for requesting what items tier tokens can be turned in for.

Usage:

local LAT = LibStub("LibArmorToken-1.0")
if LAT:IsItemToken(47558) then
    print("This is a token")
end
for _, classname in LAT:IterateClassesForToken(31095) do
    print(classname) -- "HUNTER", "SHAMAN", "WARRIOR"
end
for _, itemid in LAT:IterateItemsForTokenAndClass(31095, "HUNTER") do
    print("Item made:", itemid) -- prints 31962, 31003
end