Hi there,
I've wrote a little piece to test out the abilities of the function C_AuctionHouse.ReplicateItems(), with a button which onclick executes the function,but it keeps returning nil. While executing the function, my auctionhouse-frame is open. storedVar is a saved Variable and the function doesn't seem to need any parameters.
Lua Code:
local b = CreateFrame("Button", "MyButton", UIParent, "UIPanelButtonTemplate")
b:SetSize(80 ,22)
b:SetText("Button!")
b:SetPoint("CENTER")
b:SetScript("OnClick", function()
storedVar = ""
storedVar = C_AuctionHouse.ReplicateItems()
end)
i'm fairly new to LUA and maybe i made a mistake somehow.
Any hint on what i'm possibly doing wrong would be appreciated.