PDA

View Full Version : "Auction Item Has Sold" Notification


Mulsiphix
14-02-2006, 04:29 AM
When in battle I often miss the "Your auction item has been sold" message. It would be awesome if this message could be displayed on screen, like the "No fish are hooked." or "You do not have enough mana" messages, so I don't risk missing it. Alternatively it would be awesome if I could bind a sound to the event so I would know this way. Either way, as long as it is brought to my attention I would be extremely content. Anybody think they have the time to throw this one together?

Athame
14-02-2006, 05:43 PM
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:## Interface: 10900
## Title: Auction Alert
## Notes: Displays auction sold in error frame and plays a sound
## Author: Mulsiphix
## OptionalDeps:
## SavedVariables:
AuctionAlert.xmlStep 3. Create a textfile in AuctionAlert called 'AuctionAlert.xml' with:<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>

Tuplad
14-02-2006, 06:11 PM
ZOMG, this replaces my Titan[Auctions] ! /bow

Phazer
15-04-2006, 07:13 PM
This is great, but if I want it to catch "you have been outbid" messages too, how would I add that in there?

inkmva
15-04-2006, 08:03 PM
I've never done anything in LUA but I'd presume the following could work:

<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
if string.find(arg1, "You have been outbid on .+ 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>

Again; No idea if this works and I'm at work so cant test.

djIgneo
17-05-2006, 07:58 PM
Is there a way to repost the chat messages to a different chat window, so I could have a tab that says "auctions" and it would only post auction messages in my chat interface?