WoW:API PlaySound: Difference between revisions

218 bytes removed ,  15 August 2023
m
Move page script moved page API PlaySound to WoW:API PlaySound without leaving a redirect
No edit summary
m (Move page script moved page API PlaySound to WoW:API PlaySound without leaving a redirect)
 
(9 intermediate revisions by 9 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
PVPTHROUGHQUEUE - You are eligible to enter the battleground!
  GLUESCREENSMALLBUTTONMOUSEDOWN  
  GLUESCREENSMALLBUTTONMOUSEDOWN  
  GLUESCREENSMALLBUTTONMOUSEUP  
  GLUESCREENSMALLBUTTONMOUSEUP  
Line 189: Line 180:
  igAbilityIconPickup  
  igAbilityIconPickup  
  igAbilityIconDrop  
  igAbilityIconDrop  
TalentScreenOpen
TalentScreenClose
  igCharacterInfoOpen  
  igCharacterInfoOpen  
  igCharacterInfoClose  
  igCharacterInfoClose  
Line 198: Line 191:
  igQuestLogAbandonQuest  
  igQuestLogAbandonQuest  
  igQuestFailed  
  igQuestFailed  
  igSocialOepn                [This is Not a Wiki Typeo, "igSocialOepn" works in game]
  igSocialOepn                [This is Not a Wiki Typo, "igSocialOepn" works in game]
  igSocialClose  
  igSocialClose  
  igMainMenuOpen  
  igMainMenuOpen  
Line 209: Line 202:
  igMainMenuOptionCheckBoxOff  
  igMainMenuOptionCheckBoxOff  
  igMainMenuOptionFaerTab  
  igMainMenuOptionFaerTab  
  igInventoryOepn              [This is Not a Wiki Typeo, "igInventoryOepn" works in game]
  igInventoryOepn              [This is Not a Wiki Typo, "igInventoryOepn" works in game]
  igInventoryClose  
  igInventoryClose  
  igInventoryRotateCharacter  
  igInventoryRotateCharacter  
Line 244: Line 237:
  DwarfExploration  
  DwarfExploration  
  igPVPUpdate
  igPVPUpdate
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