[Home] [Downloads] [Search] [Help/forum]


Register forum user name Search FAQ

Gammon Forum

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  General
. . -> [Subject]  Times and sounds

Times and sounds

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


Posted by Hobson   USA  (6 posts)  [Biography] bio
Date Sat 22 Mar 2003 04:01 PM (UTC)
Message
Quick question how do i make a sound go off after a certain amount of time is up i cant seem to figure that out
[Go to top] top

Posted by Hobson   USA  (6 posts)  [Biography] bio
Date Reply #1 on Sat 22 Mar 2003 04:45 PM (UTC)
Message
ok maybe i didnt word this right ok after 11minutes i want a certain sound to be played.. but theres nowhere to put sounds in timers
[Go to top] top

Posted by Magnum   Canada  (580 posts)  [Biography] bio
Date Reply #2 on Sat 22 Mar 2003 05:02 PM (UTC)
Message
Hmm, I am surprised Nick doesn't have this ability built in. I'm sure he'll take it as a suggestion to implement in a future version.

In the meantime, you will have to call a script from your timer, to play the sound for you.

Use this MUSHclient function:
http://www.mushclient.com/scripts/function.php?name=Sound

Get my plugins here: http://www.magnumsworld.com/muds/

Constantly proving I don't know what I am doing...
Magnum.
[Go to top] top

Posted by Hobson   USA  (6 posts)  [Biography] bio
Date Reply #3 on Sat 22 Mar 2003 06:49 PM (UTC)
Message
hmmm i guess ill have to wait for future version cause i dont understand script at all
[Go to top] top

Posted by Nick Gammon   Australia  (22,990 posts)  [Biography] bio   Forum Administrator
Date Reply #4 on Sat 22 Mar 2003 10:00 PM (UTC)
Message
The script in this case is pretty darn simple. Make the timer call it by putting its name (eg. TimerSound) into the "script" field of the timer. The script goes into your script file. You could append to the exampscript.vbs file that comes with MUSHclient.


sub TimerSound (timername)
  world.Sound "c:\my_sounds_directory\mysound.wav"
end sub


- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] 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.


15,355 views.

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

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

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

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at HostDash]