Thread Tools Display Modes
12-24-20, 07:42 AM   #1
lungdesire
A Deviate Faerie Dragon
Join Date: May 2020
Posts: 13
How work function C_AuctionHouse.PostIte

Hey.
This code work in chat:

/run C_AuctionHouse.PostItem(ItemLocation:CreateFromBagAndSlot(0, 1), 1, 1, nil, 190080000)

but dont work in my addon:

local function OnEvent(self, event, ...)
if event == "ITEM_SEARCH_RESULTS_UPDATED"
C_AuctionHouse.PostItem(ItemLocation:CreateFromBagAndSlot(0, 1), 1, 1, nil, 190080000)
end
end

local f = CreateFrame("Frame")
f:RegisterEvent("ITEM_SEARCH_RESULTS_UPDATED")
f:SetScript("OnEvent", OnEvent)
  Reply With Quote
12-24-20, 10:42 AM   #2
sezz
A Chromatic Dragonspawn
AddOn Author - Click to view addons
Join Date: Apr 2008
Posts: 158
it requires a hardware event, did you test putting it on a button?
  Reply With Quote
12-25-20, 12:04 AM   #3
lungdesire
A Deviate Faerie Dragon
Join Date: May 2020
Posts: 13
Originally Posted by sezz View Post
it requires a hardware event, did you test putting it on a button?
You can show example? Thanks
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » How work function C_AuctionHouse.PostIte

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off