Thread Tools Display Modes
03/28/23, 01:26 PM   #1
Shuba00
 
Shuba00's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2023
Posts: 18
Function playsound

Hello, i have two questions using the Playsound() function:

1) Can i use custom sound?

2) There is a list of the sound? i tried to search in esoui wiki, but didn't find nothing


ty in advance
  Reply With Quote
03/28/23, 02:05 PM   #2
Sharlikran
 
Sharlikran's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 626
https://www.esoui.com/forums/showthread.php?t=9865

I was going to refer you to that but I noticed that 4 and 7 are the same and it doesn't mention that you can't add your own custom sounds. You can only play existing sounds

Last edited by Sharlikran : 03/28/23 at 04:52 PM.
  Reply With Quote
03/28/23, 02:17 PM   #3
Shuba00
 
Shuba00's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2023
Posts: 18


i just wanted to troll some friends ((

Last edited by Shuba00 : 03/28/23 at 02:29 PM.
  Reply With Quote
03/28/23, 02:45 PM   #4
ZOS_DanBatson
ZOS Staff!
 
ZOS_DanBatson's Avatar
Yes this person is from ZeniMax!
Join Date: Jul 2015
Posts: 171
EsoUI\Libraries\Globals\SoundIds.lua has the list of sounds you can play with PlaySound.
  Reply With Quote
03/28/23, 03:44 PM   #5
sinnereso
AddOn Author - Click to view addons
Join Date: Oct 2022
Posts: 244
There is a list of sounds here Ive been using but some appear to do nothing.

https://wiki.esoui.com/Sounds
  Reply With Quote
03/29/23, 05:05 AM   #6
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,912
Yes, the ones that have the value "No_Sound" won't play anything, e.g. "NONE" (obviously) and ABILITY_NOT_READY
And the link from the Wiki is an older version of the files that Dan had linekd above: EsoUI\Libraries\Globals\SoundIds.lua
So better use the actual file contents.

They are available at github e.g.

https://github.com/esoui/esoui/tree/master/esoui

-> https://github.com/esoui/esoui/blob/...s/soundids.lua


Thanks Sharlikran for mentioning the points 4 and 7, will update the list!
I think 7 should have been no custom sounds then^^

Last edited by Baertram : 03/29/23 at 05:07 AM.
  Reply With Quote

ESOUI » Developer Discussions » Lua/XML Help » Function 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