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
➜ Question on Scripting
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| MattMc
USA (54 posts) Bio
|
| Date
| Tue 05 Aug 2003 12:06 AM (UTC) Amended on Tue 05 Aug 2003 12:07 AM (UTC) by MattMc
|
| Message
| Heya guys. Got a question I can't figure out...
How would I script the following:
Every 5 minutes, I have a Bot in a game type TIME. I was wondering if there was a way to have a player send him a tell (The syntax for tells are "Player tells you 'time'") and have the bot type TIME, and send back a parsed version of the following?
Typing time returns:
It is 2:44 am on Tuesday, August the 16th, year 1426.
The twin moons, Trigael and Marabah are in the phases:
Trigael: (new) Marabah: (gibbous waning)
Materia Magica has been up since: Sat Aug 2 09:47:40 2003.
The current system time is: Mon Aug 4 19:00:59 2003.
What I need sent back is "It is 2:44 am on Tuesday, August the 16th, year 1426."
I wouldn't have to gag the lines after though... Any thoughts or snippets of code that you know of that I could use?
Matt | | Top |
|
| Posted by
| Nick Gammon
Australia (23,165 posts) Bio
Forum Administrator |
| Date
| Reply #1 on Tue 05 Aug 2003 06:45 AM (UTC) |
| Message
| How about a trigger that matches on:
It is * on *, * the *, year *.
Then send something like:
tell Kreative %0 |
- 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.
11,689 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top