Play alarm sound
Posted: Fri Nov 04, 2011 1:56 am
Ok I just put this together and it may evolve into more or it might just be kept simple.
Near the top of the userfunction has this.
You can adjust that so it is always louder or softer by default.
Usage
I am going to add the usage of this userfunction into GMDetect.
--=== added suguestions ===--
start bot using commandline
At the prompt type
to test the volume, if it seems to soft then add with increments of 10
until you get a volume you like
If playalarm() seemed to loud then adjust with -5 increments.
until you get a volume you like
You can then open up the userfunction and adjust
replace the 0 with the value that made the sound seem a good volume.
Then just use playalarm() and it should play the alarm at the volume you like any time you call the function.
--=== ideas for usage ===--
Obviously GMDetect and has been added in to V 2.3 of the userfunction, I made it do double play of the sound, to tell when GM and not just another usage of playalarm().
When you reach the end of a WP and use player:sleep()
Basically any time you want to hear the sound to get your attention.
Near the top of the userfunction has this.
Code: Select all
local permanantadjust = 0
Usage
Code: Select all
playalarm() -- default volume
playalarm(10) -- a little louder then default
playalarm(-10) -- a little softer then default
I am going to add the usage of this userfunction into GMDetect.
--=== added suguestions ===--
start bot using commandline
Code: Select all
rom/bot path:commandline
Code: Select all
playalarm()
Code: Select all
playalarm(10)
playalarm(20)
If playalarm() seemed to loud then adjust with -5 increments.
Code: Select all
playalarm(-5)
You can then open up the userfunction and adjust
Code: Select all
local permanantadjust = 0
Code: Select all
local permanantadjust = 10
local permanantadjust = -5
--=== ideas for usage ===--
Obviously GMDetect and has been added in to V 2.3 of the userfunction, I made it do double play of the sound, to tell when GM and not just another usage of playalarm().
When you reach the end of a WP and use player:sleep()
Basically any time you want to hear the sound to get your attention.