[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
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

#41 Post by kalansay »

Code: Select all

alertSound {
	eventList death
	notInTown 0
	inLockOnly 0
	play "E:\Game Tools\Openkore\death.wav"
}
It doesn't play the sound that I put.
File path and file name is correct.
I can see the notification that I have died in the console.

gamenikko wrote: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')
	}
}

[b]Therefore:[/b]
automacro someonePMedYou {
	pm /(.*)/
	call {
	do eval Utils::Win32::playSound ('C:\Program Files\Extras\VirtualDJ\effects\laugh.wav')
	}
}
Just edit the filename ^_^
Okay I'll give it a try. What should be the condition if i died?

Code: Select all

console "You have died" 
or

Code: Select all

console "You've died."
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

#42 Post by gamenikko »

kalansay wrote:

Code: Select all

alertSound {
	eventList death
	notInTown 0
	inLockOnly 0
	play "E:\Game Tools\Openkore\death.wav"
}
It doesn't play the sound that I put.
File path and file name is correct.
I can see the notification that I have died in the console.

Okay I'll give it a try. What should be the condition if i died?

Code: Select all

console "You have died" 
or

Code: Select all

console "You've died."
TRY THIS

Code: Select all

automacro youDied {
   timeout 10
   console /^You have died/i
   call {
   do eval Utils::Win32::playSound ('E:\Game Tools\Openkore\death.wav')
   }
}
I guess you should read examples and the macro manual again. ^^
Just like old times.

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

#43 Post by kalansay »

TRY THIS

Code: Select all

automacro youDied {
   timeout 10
   console /^You have died/i
   call {
   do eval Utils::Win32::playSound ('E:\Game Tools\Openkore\death.wav')
   }
}
I guess you should read examples and the macro manual again. ^^
I have been using

Code: Select all

console "...message here..."
and it works fine.

I don't know what's with

Code: Select all

console /^Y...message here.../i

Code: Select all

('E:\Game Tools\Openkore\death.wav')
Single Quotes only?
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

#44 Post by gamenikko »

kalansay wrote:
TRY THIS

Code: Select all

automacro youDied {
   timeout 10
   console /^You have died/i
   call {
   do eval Utils::Win32::playSound ('E:\Game Tools\Openkore\death.wav')
   }
}
I guess you should read examples and the macro manual again. ^^
I have been using

Code: Select all

console "...message here..."
and it works fine.

I don't know what's with

Code: Select all

console /^Y...message here.../i

Code: Select all

('E:\Game Tools\Openkore\death.wav')
Single Quotes only?
just try it
Just like old times.

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

#45 Post by kalansay »

gamenikko wrote:just try it
Still nothing played. :(
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

#46 Post by gamenikko »

kalansay wrote:
gamenikko wrote:just try it
Still nothing played. :(
You're not doing it right i guess.. /pif
Just like old times.

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

#47 Post by kalansay »

Code: Select all

automacro youDied {
	exclusive 1
	console "You have died."

	call {
	do eval Utils::Win32::playSound ('E:\Game Tools\Openkore\death.wav')
	}
}
Any wrong in that code? I don't need the plugin if I use that code right?

edit :: I made it work already! This is why it was not working awhile ago. "You have died." there is a period in the end but there should not be, so the line would be "You have died". I have mis-looked over that because a line with period follow. You've Died. - it's color green in console.

Thank you very much ^_^ That code is a big help because the plugin adds to loading time and memory consumption.
For your CPU Usage & Memory usage concerns...
http://forums.openkore.com/viewtopic.php?f=10&t=33261
Image

Scavenger12
Noob
Noob
Posts: 1
Joined: 15 Nov 2010, 07:29
Noob?: No

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

#48 Post by Scavenger12 »

Hello,
i appreciate the work you put into making this plugin, it helped me alot to optimize my bots.

But theres one request i've to ask as i dont get to make it myself ( i'd learn plugin/macros if i had the time atm)
the problem is in my server gms do test first using SW for the monster you're attacking ( Kore automatically wings after 10 miss in a row), so my question is is it possible include playing a sound after a row of misses? and could you do it then?

Fandango
Noob
Noob
Posts: 3
Joined: 08 Dec 2010, 08:14
Noob?: Yes

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

#49 Post by Fandango »

Im using OpenKore what-will-become-2.1 SVN version and this plugin is not working. Is It outdated or is it because Im running on Win7 64-bit?
Certainty? Nothing is certain, but death and taxes.

Runifl
Noob
Noob
Posts: 13
Joined: 03 Sep 2008, 13:54
Noob?: No

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

#50 Post by Runifl »

I'd need a solution to play sounds on Win7 64bit too :/

Ah, works now for me. No mp3 has to be encoded wav format x-X

Post Reply