You could try it like this..
Step 1. Make a directory in your AddOns folder called 'AuctionAlert'
Step 2. Create a textfile in AuctionAlert called 'AuctionAlert.toc' with something along the lines of:
Code:
## Interface: 10900
## Title: Auction Alert
## Notes: Displays auction sold in error frame and plays a sound
## Author: Mulsiphix
## OptionalDeps:
## SavedVariables:
AuctionAlert.xml
Step 3. Create a textfile in AuctionAlert called 'AuctionAlert.xml' with:
Code:
<Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/">
<Frame name="AuctionAlert" hidden="true">
<Scripts>
<OnLoad>
this:RegisterEvent("CHAT_MSG_SYSTEM")
</OnLoad>
<OnEvent>
if string.find(arg1, "Your auction of .+ sold%.") then
-- show the message on the error frame
UIErrorsFrame:AddMessage(arg1, 1.0, 1.0, 0.0, 1.0, UIERRORS_HOLD_TIME)
-- play a sound
PlaySound("MapPing")
end
</OnEvent>
</Scripts>
</Frame>
</Ui>