Question on Scripting

Posted by MattMc on Tue 05 Aug 2003 12:06 AM — 2 posts, 12,845 views.

USA #0
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
Amended on Tue 05 Aug 2003 12:07 AM by MattMc
Australia Forum Administrator #1
How about a trigger that matches on:

It is * on *, * the *, year *.

Then send something like:

tell Kreative %0