Thread Tools Display Modes
04/05/14, 09:34 AM   #1
lintydruid
 
lintydruid's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 6
Question Values for PlaySound()

Any one know what the string values are for playsound()? I assume its a path to a sound file but what are the inbuilt sound? any one know?

Could I use external sound files (similar to how textures work)? If so any one know the format?

Thank You.
  Reply With Quote
04/10/14, 07:16 AM   #2
Vicster0
 
Vicster0's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 82
zgoo this and see what you find.. I'm at work or I would test it myself:

Lua Code:
  1. PlaySound(SOUNDS.INVENTORY_ITEM_MOUSEOVER)

This may be old/depreciate because I am referencing files from an old game0000.dat.
  Reply With Quote
04/10/14, 10:52 AM   #3
Garkin
 
Garkin's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 832
Originally Posted by Vicster0 View Post
zgoo this and see what you find.. I'm at work or I would test it myself:

Lua Code:
  1. PlaySound(SOUNDS.INVENTORY_ITEM_MOUSEOVER)

This may be old/depreciate because I am referencing files from an old game0000.dat.
SOUNDS table is defined in EsoUI\Libraries\Globals\SoundIds.lua.

example:
SOUND.GENERAL_ALERT_ERROR = "General_Alert_Error"
  Reply With Quote
04/10/14, 11:46 AM   #4
GetBackYouPansy
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 7
Little trick, if you want to know what a particular sound is that is played by the UI, you can likely find out with (via /script):

Lua Code:
  1. ZO_PreHook("PlaySound", function(name) d("Play sound: " .. name) end)

Doesn't work for everything, though.

Then there's probably one or more constant in SOUNDS (/Zgoo SOUNDS) which has that string as its value, which you can use in your own code.

Last edited by GetBackYouPansy : 04/10/14 at 11:47 AM. Reason: Must always use the constants :P
  Reply With Quote

ESOUI » Developer Discussions » Lua/XML Help » Values for PlaySound()

Thread Tools
Display Modes

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