Thread Tools Display Modes
10-25-10, 09:30 PM   #1
lilgulps
A Theradrim Guardian
 
lilgulps's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2010
Posts: 62
Outputing a personal raid warning

what is the script command for the api to output a message in the raid frame, that only the player can see, I.E. it doesn't try to broadcast to party or raid.
  Reply With Quote
10-25-10, 10:31 PM   #2
Dainton
A Flamescale Wyrmkin
 
Dainton's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2008
Posts: 115
Pretty sure it's
Code:
RaidNotice_AddMessage(RaidWarningFrame, "text", ChatTypeInfo["RAID_WARNING"])
If you want the sound then you'll need
Code:
PlaySoundFile("Sound\\Interface\\RaidWarning.wav")
  Reply With Quote
10-25-10, 10:33 PM   #3
neverg
A Frostmaul Preserver
 
neverg's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2007
Posts: 268
Originally Posted by Dainton View Post
Pretty sure it's
Code:
RaidNotice_AddMessage(RaidWarningFrame, "text", ChatTypeInfo["RAID_WARNING"])
If you want the sound then you'll need
Code:
PlaySoundFile("Sound\\Interface\\RaidWarning.wav")
I don't think .wav files work anymore. It needs to be .mp3 or .ogg. The rest is correct. Can't confirm this but I think I've read something stating this.
__________________
My oUF Layout: oUF Lumen
  Reply With Quote
10-25-10, 10:38 PM   #4
Dainton
A Flamescale Wyrmkin
 
Dainton's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2008
Posts: 115
Originally Posted by neverg View Post
I don't think .wav files work anymore. It needs to be .mp3 or .ogg. The rest is correct. Can't confirm this but I think I've read something stating this.
I think that's just for custom sound files and not the game's sound files.

Using
Code:
/run PlaySoundFile("Sound\\Interface\\RaidWarning.wav")
works in game.
  Reply With Quote
10-25-10, 11:12 PM   #5
neverg
A Frostmaul Preserver
 
neverg's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2007
Posts: 268
Originally Posted by Dainton View Post
I think that's just for custom sound files and not the game's sound files.

Using
Code:
/run PlaySoundFile("Sound\\Interface\\RaidWarning.wav")
works in game.
Yes, your right, didn't noticed it was ingame files. Sorry.
__________________
My oUF Layout: oUF Lumen
  Reply With Quote
10-26-10, 09:46 AM   #6
lilgulps
A Theradrim Guardian
 
lilgulps's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2010
Posts: 62
Thanks guys
  Reply With Quote
10-26-10, 04:46 PM   #7
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
I think the in-game ones are being converted also... Try leaving off the file extension - does it still play?
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Outputing a personal raid warning


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