localfunctionCheck()
local id = tonumber(strmatch(UnitGUID("target") or"", "-([^-]+)-[^-]+$"))
if (id ==135614or id ==138708) andnot IsModifierKeyDown() thenreturntrueelsereturnfalseendendGossipFrame:HookScript("OnShow", function()
if Check() then SelectGossipOption(1)
endend)
local f = CreateFrame("Frame")
f:RegisterEvent("SHIPMENT_CRAFTER_INFO")
f:RegisterEvent("SHIPMENT_CRAFTER_OPENED");
f:SetScript("OnEvent", function(self, event)
if Check() and GarrisonCapacitiveDisplayFrame thenif GarrisonCapacitiveDisplayFrame.CreateAllWorkOrdersButton:IsEnabled()
and GarrisonCapacitiveDisplayFrame.available and GarrisonCapacitiveDisplayFrame.available >0then GarrisonCapacitiveDisplayFrame.CreateAllWorkOrdersButton:Click()
end GarrisonCapacitiveDisplayFrame.CreateAllWorkOrdersButton:HookScript("OnClick", function()
GarrisonCapacitiveDisplayFrameCloseButton:Click()
end)
ifnot GarrisonCapacitiveDisplayFrame.CreateAllWorkOrdersButton:IsEnabled() then GarrisonCapacitiveDisplayFrameCloseButton:Click()
endif event =="SHIPMENT_CRAFTER_OPENED"then print ("Hold Shift to disable AutoTrain") endendend)