WoW:API PlaySound: Difference between revisions

369 bytes removed ,  15 August 2023
m
Move page script moved page API PlaySound to WoW:API PlaySound without leaving a redirect
m (Minor spelling corrections)
m (Move page script moved page API PlaySound to WoW:API PlaySound without leaving a redirect)
 
(7 intermediate revisions by 7 users not shown)
Line 1: Line 1:
<center>'''PlaySound''' ''-Documentation by [[user:coder_1024|coder_1024]] taken from Dhargo's post on the official forums-''</center>
{{wowapi}} __NOTOC__
 
<!-- List return values and arguments as well as function name, follow Blizzard usage convention for args -->
 
PlaySound(SoundName);
 
<!-- Describe the purpose of the function, though exhausting detail can be saved for a later section -->
 
Play one of a set of built-in sounds.  Other players will not hear the sound.
Play one of a set of built-in sounds.  Other players will not hear the sound.
PlaySound("SoundName", "channel");


----
==Parameters==
;''Arguments''
===Arguments===
 
<!-- List each argument, together with its type -->
 
:(SoundName)
:;SoundName : String - One of the below sound names (not all these actually make a sound)
:;SoundName : String - One of the below sound names (not all these actually make a sound)
  PVPENTERQUEUE - Sound for entering BG queue and when it refreshes periodicly
  PVPENTERQUEUE - Sound for entering BG queue and when it refreshes periodicly
  PVPTHROUGHQUEUE - You are eligible to enter the battleground!
  PVPTHROUGHQUEUE - You are eligible to enter the battleground!
Line 191: Line 180:
  igAbilityIconPickup  
  igAbilityIconPickup  
  igAbilityIconDrop  
  igAbilityIconDrop  
TalentScreenOpen
TalentScreenClose
  igCharacterInfoOpen  
  igCharacterInfoOpen  
  igCharacterInfoClose  
  igCharacterInfoClose  
Line 247: Line 238:
  igPVPUpdate
  igPVPUpdate
  ReadyCheck
  ReadyCheck
RaidWarning
AuctionWindowOpen
AuctionWindowClose


----
:;channel : String - Either "Master" (this will play the sound also with disabled sounds like before 4.0.1), "SFX", "Ambience", "Music".
;''Example''
 
<!-- If it helps, include an example here, though it's not required if the usage is self-explanatory -->
 
PlaySound("LEVELUPSOUND");
 
----
;''Details''
 
<!-- Details not appropriate for the main description can go here -->


----
==Example==
{{Template:WoW API}}
PlaySound("LEVELUPSOUND", "master");
Anonymous user