Thread Tools Display Modes
12-05-09, 09:27 PM   #1
Mechrior
A Chromatic Dragonspawn
 
Mechrior's Avatar
Join Date: Nov 2006
Posts: 155
rare ding

What part of the addon makes the ding sound and prints the co'ords into chat when a rare mob is found?
__________________
When the light in your heart shines, The rest of the world will pale in comparison


 
12-06-09, 08:29 AM   #2
spiel2001
nUI's Author
 
spiel2001's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2008
Posts: 7,724
You'll find the code for that in [ Interface > AddOns > nUI > Units > nUI_UnitSpec.lua ]
__________________

What people don't get is that I am, ultimately, an artist at heart.
My brush has two colors, 1 and 0, and my canvas is made of silicon.



Official nUI Web Site: http://www.nUIaddon.com
Official nUI Support Forum: http://forums.nUIaddon.com
My day job: http://www.presidio.com/
 
12-10-09, 02:54 PM   #3
alverian
A Cliff Giant
 
alverian's Avatar
Join Date: Nov 2007
Posts: 70
How does NUI detect the rare mob? And how far out will it find one? i was using silverdragon but 3.3 hosed it and now all i have is the built in one in NUI but it does not seem to find them as good. Any plans on changing it ?

Last edited by alverian : 12-10-09 at 03:08 PM.
 
12-10-09, 03:01 PM   #4
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,925
It detects the mouseover target and checks the status of it and reports the according information and making the noise. I might add though that it does the same sound on a dead body that is a rare/elite etc. Maybe worth changing that at some point too Scott.
__________________


Characters:
Gwynedda - 70 - Demon Warlock
Galaviel - 65 - Resto Druid
Gamaliel - 61 - Disc Priest
Gwynytha - 60 - Survival Hunter
Lienae - 60 - Resto Shaman
Plus several others below level 60

Info Panel IDs : http://www.wowinterface.com/forums/s...818#post136818
 
02-12-10, 08:39 AM   #5
wacko1
A Cyclonian
AddOn Author - Click to view addons
Join Date: Aug 2009
Posts: 48
Originally Posted by spiel2001 View Post
You'll find the code for that in [ Interface > AddOns > nUI > Units > nUI_UnitSpec.lua ]
found the code for the rare but is there anyway to change that sound

i have a external wav file and when i run a script playsoundfile command in wow it plays but when i change it in the lua it doesnt

is there anything im missin.

lets say i want to use interface\\crit04.wav what would i have to change?

i alrdy tried to replace auctionwindowclose > crit04 or crit04.wav or interface\\crit04.wav or interface\\crit04 , but they just dont play when i find a rare ,

the standard auctionwindowclose sound does work
 
02-12-10, 08:56 AM   #6
spiel2001
nUI's Author
 
spiel2001's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2008
Posts: 7,724
Do this...

Create a directory [ Interface > AddOns > nUI > Layouts > Default > Sounds ] then copy your "crit04.wav" file into that directory.

Now edit the path for the rare sound in the nUI source and change it to [ Interface\\AddOns\\nUI\\Layouts\\Default\\Sounds\\crit04.wav ] and save the change.

Load Wow and log in then see if the new sound works. I suspect it will.
__________________

What people don't get is that I am, ultimately, an artist at heart.
My brush has two colors, 1 and 0, and my canvas is made of silicon.



Official nUI Web Site: http://www.nUIaddon.com
Official nUI Support Forum: http://forums.nUIaddon.com
My day job: http://www.presidio.com/
 
02-12-10, 09:46 AM   #7
wacko1
A Cyclonian
AddOn Author - Click to view addons
Join Date: Aug 2009
Posts: 48
actually that didnt work ;-)

but found out that when u want to use another soundfile then the internal wow sounds

u have to change the PlaySound to PlaySoundFile

and then replace the standard "auctionwindowopen" with ur external sound file

thx for the fast reply tho
 
 

WoWInterface » Featured Projects » nUI, MozzFullWorldMap and PartySpotter » Support » nUI: Technical Support » rare ding

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