Home
Here's some scripts that I have which you might find useful. Please note that some muds may or may not allow certain types of scripts (auto-combat, tick timers, etc) and it is naturally your responsibility to use script's according to the rules of the mud(s) you play on.
NOTICE: ALL OF MY SCRIPTS REQUIRE THE FINAL RELEASE VERSION OF MUD MASTER TO RUN (v2.6.1). If you don't have version 2.6.1, please download it and any needed support files from the Mud Master homepage (click the image at the top of this page)

If you have questions about one of my scripts, please post them on MM's discussion board, I check it multiple times a day typically.

SCRIPTS
The Scripts below kind of come as I use um. So you might want to edit them before reading them into Mud Master. The "Posted Date" is the date I placed the script on this web site, so basically that's the update date.
Scripts are now sorted by date of posting. Newest scripts are up top.

OSpells May 30th, 2003
OSpells is a pretty simple setup to make spell aliases/macros/etc.
It will re-cast when you fumble a spell. The script file has comments in it so you will need to edit the script before reading it into MM.

I have included some sample spell routines in the script as well.
OmaBS May 25nd, 2003

Due to apparently many with broken bs notifier type scripts, here's a basic one

Simply load it up and type "bs [target]". It only outputs to /showme, but you can easily modify that into a /chatall or /chatgroup, etc. Twist reporting is untested, but should work, it'll simply add a *T* after the MOD value (you'd see something like: I Doubled |4.0|*T*|1.5| on.... where "*T*" is the twist, and the twist applies to the previous MOD shown (in this example it would be a twist on the 4.0 mod).

Potential problems: Only thing I noted was if there's lag after you do "bs [target]", and the prompt shows, then the bs finally goes through it won't get reported. Reason is: 1. the prompt disables the actions. 2. Blame Med/Lag, it isn't the script's fault :p

Fixed:
Changed the Twist "*T*" to the greek symbol you see in the image above.
Fixed a couple typos, 2 actions weren't firing.
Fixed the twist action, it was building the OmaBS_MOD var incorrectly.
Fixed the "..DEAD!!" action that made the "ICED" MOD icon, it was shutting off the actions prematurely.

Added:
Baritem bs-lagmeter (25May03)
OComma May 23rd, 2003
Someone posted on the MM Board recently about the StripCommasInNumbers script -- they didn't like it much. Very true statement. I wrote that long ago and rather quickly to fit an immediate need. Always meant to actually re-do it, and finally I have (some many years later :).

OComma is simple to use, and will either Strip or Add commas to a given string. The result is in the var "OComma".

Calls:
"OComma 1234567" ..would output "1,234,567"
"OComma 1,234,567" ..would output "1234567"

Fixed:
OComma was adding a comma before the first character on certain strings, such as "100000" became ",100,000". Fixed that.
OmaLoot Sep 10th, 2002

OmaLoot will create macros for faster looting "on the fly". When you examine a corpse it'll assign a macro to up to 10 objects (no doubt the script will fart out if there's more than 10 items in a single corpse -- currently I'm too lazy to improve upon that).

Simply look in a corpse. It will create the macros and show a display (like above). The magenta colored number in the first box is the macro, hold ALT+number to attempt to loot the item. After the condition/description you'll see a word in blue. That's the name it will use to try to loot the item.
You should have abbrev on (med command).

Alt+number -- Loot item
xx -- Examine corpse
xx # -- Examine a specific corpse, ie: xx 3 would "examine 3.corpse" BUT: if you try to loot via the macros created it'll try to get it from corpse #1. (I should improve upon this too!).

Changed:
Previously the routines fired off when you simply just looked at a corpse, via the alias or not. Now it'll only work if you use the "xx/xx #" alias. All actions are disabled until "xx" is used, then it shuts itself completely off again (except for that alias). (was firing off if you did "eq" or looked at someone).
Fixed:
Forgot to kill old macros when checking a corpse. Doing that now!
Added some gags to hide the spew when killing the old macros -- Sep. 10th

Added:
--Alias: olootadd description -- add an item description to the "Watch" list. Enter the EXACT (case sensitive) and full item description that you see when viewing loot. "Watched" items will get a red "<<" indicator when viewing corpses (see image above).
--Now there's 48 possible macros created. Alt+1-0, Alt+a-z, and Alt+F1-F12 -- If you already use an Alt+ macro for any of those keys just remove the letter from the OmaLootMain list, or change your macro.
--Put in a startup event to initialize the script and read in the "Watch" info (if the OmaLootWatch list is empty (which it is by default) you'll see an "Unable to open file" error, no worries.
OmaEQ Sep 6th, 2002

OmaEQ will help reduce the massive spew seen when doing "eq" or looking at others. It should maintain the correct color of each field. Some stuff compacted, some stuff removed (like "(invisible)" flags and any "..glows with a snore" junk).

It's not very resource hogging, only 1 action is active until you actually look at an inventory. Simply load up the script and look look look!
OmaIP Sep 1st, 2002

OmaIP will store IP's from various spew into a little list. This will allow you to review IPs and call up various ip's from the list.

Simple to use. Just load up the script. Wait for someone to spew their ip (you'll see a message about it being added). Then:
omaip -- Show ips in the list.
ocall # -- call an ip from the list. The number is the index number (can ignore the zeros). Like: ocall 3 would call the 3rd item in the display.

FIXED: Clan/Town spew is now saved properly.
FIXED: Removed some of my testing showme's, forgot I left those in. Should cut back on the spam some :)
FIXED: Well "removed" saving any string originating from "You".
ADDED: "okill #" -- removes an entry from the list.
ADDED: When an ip is added you now see more info about it. Index, Name, IP(port). So you can easily kill or call it without needing to view the list.

Could use a few more features but I'm lazy.
OTimeGMT April 22nd, 2002
OTimeGMT is a little add-on for OTime. The OTime script is required. OTimeGMT simply figures out the difference to GMT (Greenwich Mean Time) that your computer's clock is at, and shows you how many seconds to add to timestamps if you'd like to figure out GMT time.

Simply load up OTime, and OTimeGMT and type in "otimegmt". Nothing is saved, so you might note down the value shown if you plan to use it.
OTime April 20th, 2002
OTime is a little script that will var various time info off timestamps.

The basic routine is just "otime" and it will check your current system time and make various results. Below is an image of running "otime"

Items in Cyan color are the var's value, to the right of those, in the blue brackets, you'll see the var name(s) in grey. Just use those vars whereever you want to add the info into your scripts.

Another way to call the script is by supplying a value, via "otime #" where "#" is some numerical string (timestamp) you want to check. You'll get an additional display. Image below:

The this breaks the string you supplied into logical procession, Years/Days/Hours/Minutes/Seconds. From the image example you'll see that the timestamp of 890249530 seconds is really 28years, 83days, 19hours, 32minutes, and 10 seconds. I assume a "year" is 365 days, so inaccuracies for leap-years exist if you're trying to actually figure out a specific date. After that display, you see the "normal" information, which takes the timestamp you provided and figures out what date/time it was according to your internal computer clock. This should be pretty accurate for reviewing old time stamps you might have stored to see what they actually meant.

"otime" - check current system time only
"otime #" - check a user supplied value
"otime ?" or "otime help" - help
"otimequiet" - toggle automatic displays from showing or not showing. Read the script, some info in it up top, as well the default vars have basic info about what each var is.

How's this used by you? [xx]--Click here for more info.
OmaSpy CPK-Watcher September 7, 2001
OmaSpy is a CPK-watcher. One would use it when sitting around keeping an eye out for norty cpkers. One person runs it, others just connect to that person via chat. Simply /chat [ChatNameOfPersonRunningIt] help for info.
It's fairly self explainitory.

[xx]<--Click for more info/screenshots.
Fixes/Changes:
Added: Alias "osw" to manually run "where/survey". Don't just do "where", use this alias as it does some needed routines for the instant-update spew.
Added: Lists; OmaSpyWhere and OmaSpyWhereLast (have to do with instant-update spew)
Changed: OmaSpyIt event for routines for instant-update spew when people leave/return to "where".
Changed: The 3 actions that control capturing info. They turn off/on as needed, as well as added routines for instant-update.
**The above changes were mostly made so that via instant-update spew you see when people leave or return to "where".
Added: Flag "MIA" to the main display, Missing In Action. These are the most probable threats. MIA is shown in red (dragon flags in grey, others in blue).
Note: People that flew off on a dragon will soon after be flagged as "MIA", if the dragon time is the lowest time that means they simply flew off and haven't been seen since, hence they aren't a threat. You can discard them if you want manually via the "osRem [name]" alias or "os Rem [name]" chat command.
Who sort/list thinger August 21, 2001
This'll help clean up the very messy "who" list spew on Realms of Despair.

Pretty basic script (working off a terrible mess from the mud). Calls are:
"whox <normal perameters used for who calls>"
eg: "whox all" or "who 5 20" or "who cleric"
Here's two screen shots of the before spew, and the after spew.
[xx]<-Click ..Before
[xx]<-Click ..After
Note, the after shot is a different who listing, did a "whox deadly".

Re-Written
I totally re-wrote the script, goodgoddamn those titles in the display f'n BLOW. Those imms need to get coding and filter that crap out. It's a freaking WHO list. Some people have TWO f'n FULL lines of spew. I just want to know WHO's on, levels, important flags. Fuck the titles, I can see that crap with my eyes while walking around town. TWO FREAKING LINES. Does some friggin d00dz mentality drive them to display this crap, or what?. Mud still rocks, but my god that is some crap ass fucking code.
Was still a major pain to script been on it for 7 hours :p, and it errors out because of all the f'n spew it has to filter. I suggest setting your pager to 10-12, or doing small who calls. "whox 50 50" will definitely get some errors as MM tries to parse all this shit if you don't set up the pager. I'm on a 1.2Ghz/512mb ram, DSL box and I couldn't make it reliably parse, unless I used pager of 12. Still, for short who listings it does pretty good.

Again, this script is for Realms of Despair .. although probably would work on other muds using the same crap ass coded who functions. :p If I can script a cleaner who list goodgod I'd hope someone can code one!
ShowArray II August 11, 2001
New ShowArray script. Was too lazy to just update the one below so here's a new one from scratch. Pretty similar but a little smarter. Wanted it with more control when defining what you wanted to see, but it was a pain in the arse.. anyway....

For single dimension arrays the call is:
showarray ArrayName nRows
Where ArrayName is the name or number of the array, and Rows is the range of rows to show (minimum is row 1). You can restrict it to a specific row by using a negative number: showarray ArrayName -nRow eg: "showarray MyArray -4" would only show Row 4's info.

For 2 dimensional arrays (rows and columns) the call is:
showarray ArrayName nRow nCol
Like above just supply a value to the nRow and nCol perameters. eg: "showarray MyArray 3 5" would list out columns 1-5 of rows 1-3.

To specify a particular range in a 2 dimensional array use sarange:
sarange ArrayName nRow xRow nCol xCol
Where nRow/nCol is the minimum range, and xRow/xCol is the maximum range. eg: "sarange MyArray 3 6 2 5" would show columns 2-5 in rows 3-6.
You can also specify a single cell by using pairs of values for rows and columns:
"sarange MyArray 3 3 7 7" would show row 3, col 7.
Oma's ID Database | Build Notes June 15, 2001
Here's a database thinger I was working on, but a new MMOG game is out and I doubt I'll finish this anytime soon. It will store most all information on stuff when you ID it. You can then create sorted lists (potentially up to about 2200 different ways to sort I think). This is UNFINISHED, but it does work pretty much as far as storing info and doing the sorting. Just no displaying functions.
There is a file, OIDDinfo.txt ("Build Notes" link) that has some little notes I kept while building this script. It's handy mainly because it lists out what array row/col the info is store at. As well it shows what sort # the field is. Script is fairly massive and confusing...

Here's a couple screenshots:
[xx] <--click .. basic info
[xx] <--click .. sort options screen
OmaCompass May 29, 2001
OmaCompass will add a "graphical" exit-directional thinger and eliminate the normal "Obvious Exit:..." spew.
Changed: Closed exit room name pointers now match the compass color.
Click the boxes to see a couple of screen shots:
[x1] <-click-> [x2]
CopyArray May 29, 2001
CopyArray will copy an array into a new array. Handy if you need to edit some things while testing, but don't want to mess up the original. Built in help, just do: "CopyArray".
Text File, right-click the link and Save-As to save it.
OEM HTML May 28, 2001
OEM HTML is an addition to OEM (see below). OEM HTML will create an HTML web page listing all kills in a table format. See the [OEM](<-click) page for more info. (Clicking the download link will view the text file (script). Because it contains HTML tags it will look terrible. Right-Click the link, and Save As... to save it.
Oma's Exp/Mob Database (OEM) Details and Screen Shots (100k or so) May 26, 2001
OEM, Oma's Exp/Mob database. The ultimate Xp/Mob tracker! Still working on it but it's functional and works fine. Click the link above for much more info and screen shots.
Survey De-Spammer Screen Shot May 23, 2001
OmaSurvey will despam what you see via the "survey" command, making it easier to quickly pick out what's out there! Still possibly missing some things, but otherwise works pretty well. Text file, so right-click the link and select Save As.. to save it
Changed: Total re-write. All in 1 action and 1 gag, reduced text on long zone descriptions (see the screen shot).
Added: Long strings (typically zones) are now stored in full and accessible via macros Ctrl+1 through Ctrl+5. Each one is noted like "C1:a dark,..the wilderness." Hitting Ctrl+1 would Show the entire string so you can fully identify things you might not be familiar with. [x] Click the bracers to see how it looks, showing the full text below the OmaSurvey Spew (I hit the macro, duh!).
Prompt Spew Screen Shot May 23, 2001
This adds a new prompt line, which shows gain or loss to the specific stats. Now you can see what damage is being down, or mana used, etc quickly and easily. Simple to disable it, just /disablegroup PromptSpew. Justified to work with OmaPrompt, but that's not required. It's a text file, to download it, right click the link and Save As...
Added: "ps" alias, it'll toggle the script on/off. Just type "ps". It'll load up OFF, so type in "ps" to start it.
Added: Exit info and Zone type flag (L/N/Cpk). [X] Click bracers to see a small gif of the new changes.
Note: I suggest disabling group messages in MM.. "/message EnableGroup", and using Compact on the mud ("compact" so it's on).
Fixed: Now works during group combat.
Click the Screen Shot link for a look.
Oma Prompt May 23, 2001
Simply alters the look of the default prompt. Shows not just values but percentages that change color depending on the range (0-25, 26-50, 51-75, 76-100%). This is a text file, so you'll need to right-click the link and Save As... There is one action you'll need to edit, changing the name from "Kaasbaba" to whatever your name is. Script updates some variables off "rep" and "stat" spew from the mud. (Added: prompt for when you're mounted. The only way to get the MaxMove variable updated when mounted is via the "stat" command. Added: Flags for when you go AFK or block tells/link etc.)
Added: Justified it and a few other minor fixes.
Fixed: Now works during group combat.
Click the Prompt Spew screenshot to see OmaPrompt (it's the upper prompt line).
Spell Icons Screen Shot May 23, 2001
Requires having the "OmaPrompt" Script see below
This will add icons to the prompt to show what spells you have on. You can hide the icons (but script still keeps updating them) with the si alias. si is a toggle, hidden/visible. If it's messed up you can reset it all with the siclear alias. If you want to disable it all, siclear it, then just /disablegroup SpellIcons.
Icons are shown for these spells in this order: Sanc (S), Fireshield (F), Manashield (M), Phantasmal Image (Pi), Quickness (Q), Rep Root (R), Armor (A), Bless (B), Protection from x (P), Shield (Sh), Stone Skin (Ss), Strength (St), Invisibility (I), Detect Invis (Di), Sense Life (Sl), Infravision (Iv), Levitiation (L), Breath Water (Bw), and Map Catacombs (Mc). Note: This replaces 4 actions from the OmaPrompt script, if you remove this script you'll want to replace the OmaPrompt script again, or you'll get some bad var matches.
Click the Screen Shot link for a look.
Fixed: Now works during group combat.
WizCombs May 22, 2001
Re-written to now work with the smarter (and money hungry) wizard. Simply go to the wizard and do "wizwhere". Then at anytime just do "wizcombs" to display the info. Stores Zone, Room, Age, and time you talked to the wizard. Enables and disables itself once it has the info (or if you forgot to bring 2500 gold). Main part is grouped as "WizCombs", the two aliases are grouped as they are called ("wizcombs" and "wizwhere").
Fixed: Removed an action that I forgot to remove, it's not needed. If you already have the script just: /unact {^The wizard telepaths you, '%0 doesn't look like you have 2500 gold available.'.}
Anti-Spew May 16, 2001
This script contains a number of gags, substitutes, and actions that will help remove or re-create some of the common "spew" seen while playing. Example: when someone takes off or lands on a dragon, instead of 2 lines of text, you simply see: "Joe landed, 3 o'clock, off in the distance." It will also highlight (via showme's) some key things, such as evil dragons.
Fixed: Spew when a dragon is circling, looking for prey (was saying it landed)
Changed: Removed all substitutes and used actions/gags instead. Text file, to download right-click the link and Save As...
Stud Poker Sept 18, 2000
This is my oldest "big" scripts. I made this hmm in 1996 I think, and it was the precursor to my creation of Hero Hunt. Keep in mind, this is rather old and and written before MM had many of the commands and procs it has now. I did an "update" on it a while back (1998), just to add in color procs (before it used ansi color variables). It's a bit confusing but should work fine once you figure it out.

This script is run on a server, that is a second MM session (use a new port for chat if you already have MM running. To start a new chat port, start MM with the "L" perameter: mudmast l:[port], ie: mudmast l:3210 -- would start MM and use port 3210 for chat. Anyone that plays will connect to the stud poker server.

I forget exactly how it works, but you chat the server with like "studpoker" or "studhelp" or something to get a big help screen.
Med Newbie Setup May 22, 2000
This is a very basic setup for newbies to Medievia (as well as new Mud Master users). Basic movement keys via the keypad, basic eating/drinking routines, rearming on disarm, connecting to med. That's about it. TO DOWNLOAD: Right-Click the link, and SAVE AS to your MM scripts dir (or dir where mudmast.exe is if you don't use a script path). Startup Mud Master and type in: /read mednewbie.txt
ShowArray May 1, 2000
This alias will list out the fields of an array. It's a text file so TO DOWNLOAD Right-Click the link then Save Target As... It's rather simple and can get spammy on big arrays, but you can limit the Rows and Columns to spam out. The call is "showarray [rows] [columns] [ArrayName]. Say you have an array, SillyArray, that is 15 rows by 4 columns. "showarray 15 4 SillyArray" will spam it all out. You could limit it by reducing the number of rows and/or columns. Inputting more than the max on rows/columns will result in a lot of @GetArray() spam. Just type in "showarray" for help.
ChatBomb Oct 18, 1999
This will automatically /dnd you if you get a number of chat connection attempts in a short time span (roughly 10 attempts within a few seconds). This stops people from bombing your ip with chat attempts intentionally trying to lock you up. "chatbombon" or "chatbomboff" to toggle it. You can use the var "ChatBombOnOff" for use in a baritem if you want to keep track of if it's On or Off (script doesn't have a baritem setup, although the toggles are setup to update baritem 1).
XP Counter Oct 17, 1999
This script will keep track of your experience points gained. It works off your "score" display, and not off the inaccurate xp spam you see when you kill stuff or sac items. "xpinit" will reset it to 0. To see how much xp you have, just do "score" (or "score s") and it will look pretty much like a normal mud display. Shows xpgained, and elapsed time. REQUIRES routines in the "Commas In Numbers" file above, so get that too. **FIXED** Works with new "score s" format, plus added in silly averaging.
Battleship Sep 22, 1999
Play Battleship via chat! 2 files in the zip, battleship.txt and battleshipvars.txt. Just read in the "battleship.txt". The vars file is read by the script when you reset a game, so put that in your scripts dir too. "batship" for help. It's all grouped as {BatShip} so you can easily "/killgroup BatShip" to get rid of it. -- Fixed bug that didn't update display on sinking a ship
Movement Feb 3, 1999
Movement script. Use the keypad to move 8,6,2,4 (n,e,s,w) 9up, 2down, 5scan. Automatically opens unlocks and/or picks doors in direction you tried to move. to d/load it, Right-Click on the link and Save As...
Showcolor Jan 23, 1999
Kelemvor's "showcolor" alias. Lists out all the colors, including the color's number and color proc string. Very handy to have around. to d/load it, right-click on the link and Save As...
AutoMagic Jan 20, 1999
Auto-Magic is a menu selection for setting up spells that formation members can get from you. There are 19 spells in the list. The form member simply formsays the first 2 characters of the spell, prenoted with ], ie: formsay "]Ar" = armor. Multi-word spells use the 2 CAP letters, ie: "]BW" = breath water. It's very simple to use. amagicon to turn it on, amagicoff turn it off, amagic to view menu, amagic # toggle a spell on or off, SAM spam current available spells to the formation. Looks best in /mode 50 in a big window, but just fits in /mode 25 in dos.
Tick/Spell Timer Dec 20, 1998
Track tick times and when spells will start fading. If you're not using my mmnewbie script, you'll might have to edit the baritems to fit your needs. Note: Tick timers might be illegal on some muds (it's questionable on Medievia). Calls are simple: "tickon" and "tickoff", and you need to "score affect" on occasion to keep the spell timer updated. If you run a startup alias/event/macro.. I'd suggest turning this off by default. This works primarily off changes in your mana, so the more often you spend 5mana on "c invis me" the more accurate it will be. It's set to 33 second ticks by default, but you might find adjusting the event time a little one way or the other helps out. It runs a 1 second event -- this may slow down MM a little. If so, you might set it to 3 seconds (at 33 second ticks) or 2 seconds (at 32 second ticks), etc..ADDED: Forgot to include the tickon and tickoff aliases.
Channel Logger Dec 13, 1998
SEE WELL BELOW FOR THE DLL VERSION, This one is purely a script version and isn't compatible with the ChannelLog.DLL -- A multi-channel log. This script logs most communication channels and is very handy to have. Originally written by Arithon, this is my hacked up version :). Stores Say(+whisper/talk/ask), Tell, Clan, Gossip, Shout, Chat and more. User defineable "buffer" (store last xx communications). Newest addition is I added in a "grep" routine. You can search the lists for a specific text and either just /showme it cgrep %0, or chat spam it ccgrep %0. Do: "chloghelp" for info -- the grep'r isn't in the help, to use it the call is basically "cgrep [List name] [string to search for]" .. ie: "cgrep Say Joe" .. will show you any logged Say, that has "Joe" in it. It is case sensitive so you need to get the list names correct "spamchat" will list out list names. FIXED: ccgrep alias (Again), if you have it already, do /unal {ccgrep %0} and /unal {cgrep %0}, then load in this script. ADDED: can search for multiple word strings The AmPm Times Stamp script is REQUIRED, so get it too.(see above)
MM Newbie Dec 07, 1998
This is a bunch of scripts tossed into one package. It includes the Math and MM_Misc dll files. This is a good starter script, including movement macros (auto-open/pick doors), tick/spell timer, Item ID, auto-login, auto-eat/drink, weapons macros/re-wield, Channel Logger, back stab database, xpcounter and more. Included is a read me file (mmnewbieIntro.txt) that helps to explain all the functions. Note that updates to particular parts of this script will be below (so if I update the xpcounter, I'll post the update below, and not necessarily in this package).
Item ID Dec 07, 1998
This is Arithon's excellent id spamming script, that I slightly tweaked. Basically just id something and do: sayid, clanid, formid, chatid, spamid (a /showme display). REQUIRES the "MM Misc.dll" file (see below)
BackStab Database Dec 07, 1998
This is NOT a "backstab notifier" (aka chat spammer). This stores information about your backstabs and covers every aspect that I'm aware of about how you're doing backstab-wise. "bshelp" for info. Latest update added in averaging your hr/dr/ac when you do a bs. Note: it comes preloaded with info, if you reset it, the display will be ugly until you have landed (or wiffed) a single, double, AND triple bs. Oh also in this is "emotebs" which is pretty stupid, and a rather spammy "spambs" (a 'detailed' say). This script auto-saves itself as "bslog.txt" after every 5th bs attempt, it's a little spammy but I can't help that. Whenever you start up MM, /read bslog.txt - so that this file loads the latest bs info. REQUIRES the "Math.dll" file (see below)
Commas In Numbers Dec 07, 1998
This contains 2 aliases. One, {StripCommasInNumbers %0} will remove commas from a number for you. "StripCommasInNumbers [number]" and will output to the variable "StripCommasEnd". The other alias, {InsertCommasInNumbers %0} will put commas into a number for you, up to 12 digits ie: 123456789012 becomes 123,456,789,012. It outputs to the variable "InsertCommas"
Am Pm Time Stamp Dec 07, 1998
This alias will output to the variable "AmPm" the current time, with an 'am' or 'pm' stamp on it. ie: 12:32pm.

Home