Scripts for Medievia

Posted by Thaeldan on Fri 21 Jul 2000 12:00 AM — 21 posts, 99,308 views.

Norway #0

I have created a page where you can download some useful scripts for Medievia. These scripts won't work with other MUDs, but feel free to adapt them.

The page is located here.

#1
Where are your scripts? Your page is no longer available. Have you still got the scripts somewhere?
Australia Forum Administrator #2

That site is down now, however I have a copy.

They can be found at Thaeldan's MUSHClient scripts for Medievia

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').

Amended on Fri 02 Aug 2002 09:52 PM by Nick Gammon
#3
Thankyou Nick!

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.
Australia Forum Administrator #4
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.
#5
Bubbly, you ever finish that archive?

Anyone else have links similar to the one that Thaeldan posted (or rather, the one that Nick Gammon corrected)?


(sorry aboutthe 3 year old bump)
-Zot
Amended on Mon 13 Oct 2003 10:09 AM by Zotiel
Russia #6
i'm interested in such links too.
and unfortunately, i have nothing to add...
Canada #7
Nick maintains a list of many plugins here:
http://www.gammon.com.au/mushclient/plugins/

At the bottom of the chart (and also in my tagline), is a link to my own collection of MUSHclient plugins.

I'm sure if anyone else maintains a collection of plugins, Nick would be happy to link their site as well.
#8
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:

Called by: Immediate execution


Any help?
USA #9
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.
#10
They're old scripts though, before plugins. They're not plugins.
USA #11
Post the first half dozen or so lines of the script.

Also, is scripting enabled? Have you selected the right one (VBScript, JavaScript, Et al)?
#12
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);

------

the script goes along like that..
USA #13
Loads fine for me. You MUST have JScript enabled, since all the other ones give different errors.

What were you doing right before you got the error? Since its obviously not an error on loading.

I cant find the script anymore. Care to enlighten me?
Amended on Mon 07 Jun 2004 10:31 AM by Flannel
#14
I downloaded it from here:

http://www.gammon.com.au/mushclient/Thaeldan/valuer2.zip

I copied the script into the example javescript file in muchclient. Put scripts language as jscript and turned scripts on.

Then reloaded the world and typed /Setupvaluer2() at the prompt and I got the error I mentioned earlier.
#15
Oh wow, I just got it to work. Dont tell me it was all due to the uppercase V. *laughs*
Australia Forum Administrator #16
Yes, JScript would be case-sensitive, VBscript isn't.
#17
Hey Nick, are these scripts still around? The site was linked in 2000 (i think) and there is nothing on it...can't see links to scripts
Australia Forum Administrator #18

There was a misconfiguration at my web site. The overall page is at: Thaeldan's MUSHClient scripts for Medievia

Because of the way he wrote his page, I sometimes find I can't read it properly. The individual file links are:

  • itemid

    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.

  • health levels

    Adds percentage to health messages:
    Original message:
    a jungle giant pales visibly as death nears.

    With health levels script:
    a jungle giant pales visibly as death nears. (8%-14%)

  • compare weapons

    Compares two weapons and reports the better one using standard AD&D calculations. Result can be displayed locally or sent to various channels.

  • batch commands

    Sends a batch of commands to the mud.

  • movement

    Simplifies movement by adding triggers for opening, unlocking and picking doors.

  • valuer 2

    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.

  • mobfaction

    Will alert your form when you encounter signs of a mobfaction. Displays a very visible message including mob faction type detected.

  • portal finder

    Searches a for a zone name or clantown number and gives you the clantown, clantown number and which direction to walk from clantown to zone specified.

Amended on Wed 03 May 2006 08:25 PM by Nick Gammon
#19
I get this when i try to run a script for medievia that ive put into a plugin and loaded

Error number: -2146823281
Event: Execution of line 1 column 1
Description: Object expected
Line in error:

Called by: Immediate execution

Any help on this would be much appreciated
Australia Forum Administrator #20
That's not much information. Which script? What is on the first line of it?