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 ➜ General ➜ Random string

Random string

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


Posted by Cuprohastes   (14 posts)  Bio
Date Sun 27 Jul 2003 05:07 PM (UTC)
Message
I have no idea how to write scripts, but I have a cunning plaaan...
I'm really lazy, and I'd like to have a script I can call that that calls a random number from 0 to X, that will call a string e.g.

:waves to %1
:nods to %1
:says "Hi!" to %1
:notices %1 and says "Hi"

etc...
Top

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #1 on Sun 27 Jul 2003 09:20 PM (UTC)
Message
See the "random socials" plugin on the plugins page:


http://www.gammon.com.au/mushclient/plugins/


That pretty-well does what you are describing.

- Nick Gammon

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

Posted by Cuprohastes   (14 posts)  Bio
Date Reply #2 on Mon 28 Jul 2003 12:55 AM (UTC)
Message
I tried that first of all... the MUCK I'm using it with doesn't have a socials command? However I'll peer at the code see if I can reverse engineer it and take over the world
Top

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #3 on Mon 28 Jul 2003 03:56 AM (UTC)
Message
In that case, remove the bit that does the socials command, and then manually add the various ones into your variables (see the plugin for the name you want), or modify it slightly to allow you to add them via an alis.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
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.


16,961 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.