Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ MUSHclient ➜ Plugins ➜ Aardwolf - Sounds

Aardwolf - Sounds

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Sewershark   (3 posts)  Bio
Date Thu 02 Jun 2011 05:44 PM (UTC)
Message
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.
Top

Posted by Fiendish   USA  (2,534 posts)  Bio   Global Moderator
Date Reply #1 on Thu 02 Jun 2011 05:48 PM (UTC)
Message
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.

https://github.com/fiendish/aardwolfclientpackage
Top

Posted by Sewershark   (3 posts)  Bio
Date Reply #2 on Thu 02 Jun 2011 05:55 PM (UTC)
Message
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.
Top

Posted by Fiendish   USA  (2,534 posts)  Bio   Global Moderator
Date Reply #3 on Thu 02 Jun 2011 07:06 PM (UTC)

Amended on Thu 02 Jun 2011 07:07 PM (UTC) by Fiendish

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

https://github.com/fiendish/aardwolfclientpackage
Top

Posted by Sewershark   (3 posts)  Bio
Date Reply #4 on Thu 02 Jun 2011 09:14 PM (UTC)
Message
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.



Top

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #5 on Thu 02 Jun 2011 10:15 PM (UTC)
Message
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).

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #6 on Thu 02 Jun 2011 10:21 PM (UTC)
Message
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.


- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Fiendish   USA  (2,534 posts)  Bio   Global Moderator
Date Reply #7 on Fri 03 Jun 2011 04:39 PM (UTC)
Message
thanks :)

https://github.com/fiendish/aardwolfclientpackage
Top

Posted by Pei   (1 post)  Bio
Date Reply #8 on Wed 03 Jul 2013 07:05 PM (UTC)
Message
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
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


32,014 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.