Jump to content

MUSHclient


spiegel06

Recommended Posts

lua is once of the programming languages in which mushclient allows you to write scripts in. I haven't used it in years, but here's something along the lines of what you're looking for in javascript.


function doSend()
{
world.send("look");
world.AddTimer("relook", 0, 0, Math.floor(Math.random() * + 1, "", 1+2+4+1024+16384, "doSend");
}

Where the script says world.send("look"); is the actual sending of "look" to the mud.

Here's an intro to scripting in mushclient that'll explain the basics. That code above *should* do what you need once you read the intro.

http://www.gammon.com.au/forum/bbshowpost.php?bbsubject_id=6030

If you're going to go further into scripting, you might check out lua before javascript. It's fairly painless compared to Jscript, python or perl.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...