Aardwolf - Sounds

Posted by Sewershark on Thu 02 Jun 2011 05:44 PM — 9 posts, 41,703 views.

#0
Hey. I was wondering if anyone could help me figure out how to add sounds to Aardwolf using MUSHclient.

I found a few plugins for sound, but they are for the communication channels. I would really just like a basic setup for sound when Entering Combat, and possibly mob death sounds. I saw your youtube video on Aardwolf, Nick, and would really like to figure this out and possibly release my own sound package to the community in the future.

Any help would be much appreciated.

Thank you.
USA Global Moderator #1
This post has a section on playing a sound file upon triggering
Template:post=8086
Please see the forum thread: http://gammon.com.au/forum/?id=8086.
#2
Thanks for pointing that out. I think I understand how to use the triggers. A couple questions though, does the full line need to be entered to activate the sound trigger?

I tried only part of the line, and it didn't seem to work. Are there variables I can use? for example, the mob death line is different everytime because it says the mob name.

I tried using the first part of the line, and last part after the name, no luck.

Sorry hard to explain my situation.
USA Global Moderator #3
See this link:
https://code.google.com/p/aardwolfclientpackage/wiki/Triggers#I_tried_making_a_trigger_but_it_isn%27t_firing._The_pattern_i
Amended on Thu 02 Jun 2011 07:07 PM by Fiendish
#4
Thank you so much. That's pretty much all I needed to know. Already got some sweet sounds setup.

It still doesn't work as well as the youtube video I saw though, and I was actually asked by Nick to create a forum post here incase anyone else was interested, guess we'll just have to wait.

He mentioned a script or a plugin or something he was working on.



Australia Forum Administrator #5
The plugins I used are mentioned here:

http://www.gammon.com.au/forum/?id=8721

That post also describes the (fairly new) sound support which supports multiple simultaneous sounds.

Layered on top of that was the Play_Random_Sound plugin. That let the script choose a sound randomly from a directory. So I had a directory of "sword hit" sounds for example, so you didn't hear the same sound every round of a battle.

There was another directory of "battle music".

Then with those plugins installed I added various triggers, eg for levelling up:


<triggers>
  <trigger
   enabled="y"
   keep_evaluating="y"
   match="You receive * experience points."
   send_to="12"
   sequence="100"
  >
  <send>
CallPlugin ("461479af5d149307e69e305f", "PlayRandomSound", "0,ExperienceSounds,n,0")
</send>
  </trigger>
</triggers>


And if my health improves:


<triggers>
  <trigger
   enabled="y"
   match="You feel better\."
   regexp="y"
   send_to="12"
   sequence="100"
  >
  <send>PlaySound (0, "spells/healthup.wav")</send>
  </trigger>
</triggers>


So in some cases, a random sound, and in others, a specific one because you would identify a particular sounds as meaning you had been healed.

The logical place to put sounds is the "sounds" subdirectory of the MUSHclient install, because that is where PlaySound looks by default. If you use that (as in the example above) then you just need to specify the sound file (with an optional sub-folder).
Australia Forum Administrator #6
Fiendish said:

See this link:
https://code.google.com/p/aardwolfclientpackage/wiki/Triggers#I_tried_making_a_trigger_but_it_isn%27t_firing._The_pattern_i


Ah, documentation!

https://code.google.com/p/aardwolfclientpackage/wiki/AboutMiniwindows

I'm extremely impressed, Fiendish. I see the new Z-order stuff has surfaced as well.

You demonstrate here three attributes needed for good programming:

  • Good design including consistent, user-friendly presentation
  • Good implementation
  • Good documentation - so people know how to use the first two points.

USA Global Moderator #7
thanks :)
#8
I have created a sound pack which I am constantly accepting sound submissions for and updating. I have been working on it for a little while now and I think this may be something people like. It's available at:

http://virtual-dope.com/aardwolf