In some browsers you may need to scroll down to find the various links. Also, the hyperlinks are not underlined, just click on the bold headings and the script should download (eg. the words 'health levels').
BTW, I would like to say that I am developing a complete JSCript archive of scripts for MUSHClient. It is in TXT format, but contains JScript code. When version 1.0 is finished I will post it on the internet and place the link in here for others. It is an open source archive, so people are welcome to submit their JScripts for MUSHClient to my email address at j.s.thorpe@talk21.com - please give your name, email and web page so I can credit you with your scripts. The script archive is intended to be loaded via MUSHClient, and can be used with any world you see fit. However, most of the scripts wil be geared towards MUDS such as Medievia. More information will be available within the archive when 1.0 is finished, hopefully in about a month or so.
I suggest doing them as plugins - the plugins supporting version (3.24) will be released today.
That way you can keep all related things for one function (triggers, aliases, timers, scripts, variables) in one plugin, and avoid problems with namespace collision, in addition to making them much easier to install.
This might sound a little stupid. But I can't get any of these scripts to work. I've loaded them all into the script file but when I do what it tells me to load them it gives me this:
Error number: -2146823281
Event: Execution of line 1 column 1
Description: Object expected
Line in error:
Ok, first off, do you mean you are copying them into 'your' script file? If so, then "wrong". Plugins are designed to operate independant of the main script and each other. This means that all you do is:
1. Download the plugin.
2. Unzip or copy the XML file and any other files included into the mushclient\worlds\plugins directory.
3. Go to File.. - Plugins - [Add], and click on the XML file for the plugin.
If all goes well, then it will work.
It sounds like you are adding the XML to the 'master' script file. This master script was used prior to the plugins feature as a storehouse for all scripting. It is now used for almost nothing, except a few options and scripts that still impossible to handle in a plugin, like special MXP functions *though, this actually makes designing such functions extremely inconvenient*. Nearly everything else is now handled in a plugin, since you don't have to edit any scripts at all to use them, just point mushclient's plugin manager at the right file and hit OK. Mushclient at that point loads from the plugin all the triggers, aliases, timers and script for 'that' plugin.
The reason your attempt failed is because the old script system doesn't know how to load XML. It is only meant to load a single script in a known language.
function SetupValuer2(alias_name, alias_line, wildcardsVB)
{
world.Note("Installing [Valuer]");
world.AddTrigger("SetTradePost", "^(Medievia Trading Shop|Ur-vile Feeding Hall|A Strange Old Wizard's Cart|Riverton Trading Partners|Trading Post of the City of Karlisna|The Lizard Boulangere|DeRah Villadom's Small Trading Post|Trading Post of the Dark Army|An Elven Marketplace|New Ashton Trading Post|Trading Shop of Trellor City|Sea's End Direct Merchants|Vanlarra Imports and Exports|The Trading Post of Gdangus|A Quiet, Temple Shop|A Ranger's Cabin|Hidden Valley Traders, Inc.|A Minotaur Trading Outpost|Tanivsport Traders)", "", 1057, -1, 0, "", "SetTradePost");
world.AddTrigger("GetPrice", "We will pay you (.+) gold for", "", 1057, -1, 0, "", "getPrice");
world.AddAlias("GetValues", "^(val|values) (.+)", "", 1153, "getValues");
world.AddAlias("SendValues", "^trade\\s*(.*)", "", 1153, "sendValues");
world.Note("Done!");
}
var trading = new Array();
trading[0] = new Array("ruellia", "emeralds", 25, 20);
Perhaps the most standard script of them all, whenever you identify an item a short one-line version is compiled, which then again can be sent to various channels.
Version 2 of his tradevalue script. It has now been refined for faster, easier collection of tradevalues, and also it incorporates mathematical formulas to calculate values for any freight type.