View Single Post
04-02-20, 10:22 AM   #1
flatt83
A Defias Bandit
Join Date: Apr 2020
Posts: 3
C_AuctionHouse.ReplicateItems() - Problem

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:
  1. local b = CreateFrame("Button", "MyButton", UIParent, "UIPanelButtonTemplate")
  2. b:SetSize(80 ,22)
  3. b:SetText("Button!")
  4. b:SetPoint("CENTER")
  5. b:SetScript("OnClick", function()
  6.     storedVar = ""
  7.     storedVar = C_AuctionHouse.ReplicateItems()
  8. 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.
  Reply With Quote