Eluna icon indicating copy to clipboard operation
Eluna copied to clipboard

Global:RegisterServerEvent AUCTION_EVENT_ON_SUCCESSFUL looks no use

Open RedheatWei opened this issue 5 years ago • 0 comments

I test with RegisterServerEvent

AUCTION_EVENT_ON_ADD
AUCTION_EVENT_ON_REMOVE
AUCTION_EVENT_ON_SUCCESSFUL
AUCTION_EVENT_ON_EXPIRE

when i add a new AH item, it works. But when I cancel or buy item use other account, it's no use. this is code

print(">> loading AH trade")
local function OnAHADD()
    print("1")
end
local function OnAHREMOVE()
    print("2")
end
local function OnAHSuccess()
    print("3")
end
local function OnAHEXP()
    print("4")
end
RegisterServerEvent(26,OnAHADD,0)
RegisterServerEvent(27,OnAHREMOVE,0)
RegisterServerEvent(28,OnAHSuccess,0)
RegisterServerEvent(29,OnAHEXP,0)

this is console output

TC> 
TC> 
TC> 
TC> 1
GM 凤舞 (Account: 1) won item in auction: 厚霜纹布绷带 (Entry: 34722 Count: 1) and pay money: 28125. Original owner Admin (Account: 2)

RedheatWei avatar Sep 18 '20 17:09 RedheatWei