[alertsound] plugin - plays sounds on certain events

Other plugins for extending OpenKore's functionality. This forum is only for posting new plugins and commenting on existing plugins. For support, use the Support forum.

Moderator: Moderators

Message
Author
Apple kore
Noob
Noob
Posts: 4
Joined: 19 Sep 2009, 22:01
Noob?: No
Location: Inside an apple seed covering.

Re: Sound alerts plugin [win32] - v1.3 [1.9] by Joseph

#31 Post by Apple kore »

Suggestion: How about we make a command to not beep on a certain character's private message or public message.

For example:
In config - noPlayers <player name> #Similar to the Kadiliman chatbot command.

This could be useful for me, I have a two party bot where the main pms the slave for warp and other functions that includes pms. It would be annoying if I keep getting beeps everytime they pm each other. ><''

Hope someone can help me with adding on this command.

Thanks <3


<3 Applekore
Image

caal5
Noob
Noob
Posts: 5
Joined: 02 Nov 2009, 01:56
Noob?: Yes

Re: Sound alerts plugin [win32] - v1.3 [1.9] by Joseph

#32 Post by caal5 »

can this plugin run when console \Devil Square\i ?

if i use console command at macros my macros will crazy .

Sushe
Noob
Noob
Posts: 2
Joined: 18 Jan 2010, 16:39
Noob?: No

Re: Sound alerts plugin [win32] - v1.3 [1.9] by Joseph

#33 Post by Sushe »

Another suggestion: Have it beep if you find a certain item like a card or something. Would be cool.

HumanHealer
Plain Yogurt
Plain Yogurt
Posts: 58
Joined: 24 Apr 2008, 00:26
Noob?: No

Re: Sound alerts plugin [win32] - v1.3 [1.9] by Joseph

#34 Post by HumanHealer »

Sushe wrote:Another suggestion: Have it beep if you find a certain item like a card or something. Would be cool.
automacro:
Console \Card added to inventory\
call:
do play C:\Documents and Settings\All Users\Documents\beep-01.wav
caal5 wrote:can this plugin run when console \Devil Square\i ?

if i use console command at macros my macros will crazy .
Console \Devil Square\
call:
run-once 1
exclusive 1
do play C:\Documents and Settings\All Users\Documents\beep-01.wav

Reference
im noob, but i know how to read config manual, command manual, macro manual but im still a noob.

seiyass
Noob
Noob
Posts: 2
Joined: 04 Feb 2010, 12:38
Noob?: Yes

Re: Sound alerts plugin [win32] - v1.3 [1.9] by Joseph

#35 Post by seiyass »

Can someone explain me how does "Gm Near event" works?


and how can the plugin identify a gm?

thanks

seiyass
Noob
Noob
Posts: 2
Joined: 04 Feb 2010, 12:38
Noob?: Yes

Re: Sound alerts plugin [win32] - v1.3 [1.9] by Joseph

#36 Post by seiyass »

can somebody explain me how does "GM NEAR" event work???

how can the plugin identify a GM ?

doughnuts
Human
Human
Posts: 27
Joined: 25 Mar 2010, 23:03
Noob?: No

Re: Sound alerts plugin [win32] - v1.3 [1.9] by Joseph

#37 Post by doughnuts »

Not beeping for several characters, replaces this code in plugins file

Code: Select all

                if ($privMsgUser =~ /^([a-z]?ro)?-?(Sub)?-?\[?GM\]?/i) {
                        alertSound("private GM chat");
                } else {
                        alertSound("private chat");
                }
with this

Code: Select all

				if (($privMsgUser == "PlayerName1") || ($privMsgUser == "PlayerName2")) {
						#Do Nothing
				}
                elsif (($privMsgUser =~ /^([a-z]?ro)?-?(Sub)?-?\[?GM\]?/i)) {
						alertSound("private GM chat");
				} else {
						alertSound("private chat");
				}

doughnuts
Human
Human
Posts: 27
Joined: 25 Mar 2010, 23:03
Noob?: No

Re: Sound alerts plugin [win32] - v1.3 [1.9] by Joseph

#38 Post by doughnuts »

I think this plug-in is not compatible with SVN. Have someone made it work?

kalansay
Human
Human
Posts: 39
Joined: 15 Apr 2008, 18:58
Noob?: Yes
Contact:

Re: Sound alerts plugin [win32] - v1.3 [1.9] by Joseph

#39 Post by kalansay »

I can see in the console the notification of the plugin that I have died but the .wav file won't play.
For your CPU Usage & Memory usage concerns...
http://forums.openkore.com/viewtopic.php?f=10&t=33261
Image

gamenikko
The Way Of Human
The Way Of Human
Posts: 192
Joined: 16 Aug 2009, 03:47
Noob?: Yes
Location: Gonryun

Re: Sound alerts plugin [win32] - v1.3 [1.9] by Joseph

#40 Post by gamenikko »

i don't read this plugin, but there is a simpler way of making sound alerts.

example:

Code: Select all

automacro someonePMedYou {
	pm /(.*)/
	call {
	do eval Utils::Win32::playSound ('Filename')
	}
}

Therefore:

automacro someonePMedYou {
	pm /(.*)/
	call {
	do eval Utils::Win32::playSound ('C:\Program Files\Extras\VirtualDJ\effects\laugh.wav')
	}
}
Just edit the filename ^_^
Just like old times.

Post Reply