View Single Post
04/22/18, 12:17 PM   #14
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,973
If you want to use the funciton but it is local, just copy&paste it to your code?

Lua Code:
  1. local function IsItemAlreadySlottedToCraft(inventorySlot)
  2.     local bag, slot = ZO_Inventory_GetBagAndIndex(inventorySlot)
  3.     if SYSTEMS:IsShowing("alchemy") then
  4.         return SYSTEMS:GetObject("alchemy"):IsItemAlreadySlottedToCraft(bag, slot)
  5.     elseif ZO_Enchanting_IsSceneShowing() then
  6.         return ZO_Enchanting_GetVisibleEnchanting():IsItemAlreadySlottedToCraft(bag, slot)
  7.     elseif ZO_Smithing_IsSceneShowing() then
  8.         return ZO_Smithing_GetActiveObject():IsItemAlreadySlottedToCraft(bag, slot)
  9.     elseif ZO_RETRAIT_STATION_MANAGER:IsRetraitSceneShowing() then
  10.         return SYSTEMS:GetObject("retrait"):IsItemAlreadySlottedToCraft(bag, slot)
  11.     end
  12.     return false
  13. end
  Reply With Quote