CanThisBeCraftedAtHome (2024.10.06)

CanThisBeCraftedAtHome is a helper for other addons to figure if a set can be crafted on the Grand Master Crafting Stations at home or any home the user had access to its Grand Master Crafting Stations.
The info is gathered and updated/saved for each Grand Master Crafting station each time the user opens it’s interface.
Code to use in your addon:
if CanThisBeCraftedAtHome then — checks if the addon is running
local canBeCaftedAtHome, answerTable = CanThisBeCraftedAtHome.askForSetId(itemSetId) — gets the data from itemSetId
if canBeCaftedAtHome then — iterate through the answer table (possibly multiple houses) only if the boolean is positive
for k,v in pairs(answerTable) do
local theZoneIdTheHouseIsLocatedIn = v.globalZoneId
local theZoneNameTheHouseIsLocatedIn = v.zoneName
local theZoneIdOfTheHouse = v.houseZoneId
local theHouseIdOfTheHouse = v.houseId
local theHouseName = v.houseName
local theHouseNickname = v.houseNickname
local theHouseOwner = v.owner
end
end
end