What's new
  • Visit Rebornbuddy
  • Visit Resources
  • Visit API Documentation
  • Visit Downloads
  • Visit Portal
  • Visit Panda Profiles
  • Visit LLamamMagic

Goblin Beep

vuwrr

Member
Joined
Jan 15, 2010
Messages
287
Reaction score
1
Anyone able to make an addon that simply makes a beep (maybe allow for custom sound or whatever) whenever DB detects a Goblin.
 
you'll need to modify Plugins\Trinity\Cache\RefreshUnit.cs

add to the begin:
Code:
using System.Media;

find c_unit_IsTreasureGoblin = true; and add below:
Code:
                    SoundPlayer simpleSound = new SoundPlayer(@"C:\Windows\Media\Windows Exclamation.wav");
                    simpleSound.Play();

OR just replace with the file View attachment RefreshUnit.cs

enjoy

btw, if you find a nice wav sound let me know :D
 
you'll need to modify Plugins\Trinity\Cache\RefreshUnit.cs

add to the begin:
Code:
using System.Media;

find c_unit_IsTreasureGoblin = true; and add below:
Code:
                    SoundPlayer simpleSound = new SoundPlayer(@"C:\Windows\Media\Windows Exclamation.wav");
                    simpleSound.Play();

OR just replace with the file View attachment 142134

enjoy

btw, if you find a nice wav sound let me know :D

Thanks for this!

Do a google search for smokealarm.wav
its super annoying and attention grabbing because everyone knows a smoke alarm sound sucks
 
Sorry for the late reply, I just found System.Media.SystemSounds.Asterisk.Play(); through a google search and added it myself after having posted. Thanks though :)
 
Hello,
here's a problem, the db play sound when character meet any mob after i set c_unit_IsTreasureGoblin = true; and add code , did i make any mistake?
 
you'll need to modify Plugins\Trinity\Cache\RefreshUnit.cs

add to the begin:
Code:
using System.Media;

find c_unit_IsTreasureGoblin = true; and add below:
Code:
                    SoundPlayer simpleSound = new SoundPlayer(@"C:\Windows\Media\Windows Exclamation.wav");
                    simpleSound.Play();

OR just replace with the file View attachment 142134

enjoy

btw, if you find a nice wav sound let me know :D

Hello,
here's a problem, the db play sound when character meet any mob after i set c_unit_IsTreasureGoblin = true; and add code , did i make any mistake?
 
Hello,
here's a problem, the db play sound when character meet any mob after i set c_unit_IsTreasureGoblin = true; and add code , did i make any mistake?

If it looks like this it should work:
Code:
if (Settings.Combat.Misc.GoblinPriority != 0)[INDENT]{[/INDENT]
[INDENT=2]c_unit_IsTreasureGoblin = true;
System.Media.SystemSounds.Asterisk.Play();[/INDENT]
[INDENT]}[/INDENT]
 
Last edited:
with a high tps and the newest db/trinity optimizations, probably it will spam the wav.

probably not a good idea to use it anymore.
 
Back
Top