Top Mudlet Tips

Post Reply
Jeremy
Posts: 12
Joined: Wed Dec 30, 2009 7:09 pm
Location: Bellingham, WA, USA
Contact:

Top Mudlet Tips

Post by Jeremy »

Hey guys, I am compiling a list of top tips for new and experienced Mudlet users, to share with all the Iron Realms players. Of course, I do not use Mudlet much beyond some very, very basic stuff. I do not really need a killer combat system or anything with the all powerful ZAPPER at my command.

Anyways, I am enlisting your aid! If you would please post whatever tip of tricks you have found useful for Mudlet, post them here. No matter how big or how small and I will try to compile them. We are going to be highlighting Mudlet in an upcoming newsletter and we would like to have a nice list of tips for them.

Thanks!

naftali
Posts: 138
Joined: Wed Jan 20, 2010 8:42 pm

Re: Top Mudlet Tips

Post by naftali »

Some very useful packages for anybody:
Free sipper - http://forums.mudlet.org/viewtopic.php?f=6&t=125
Simple colored echos - http://forums.mudlet.org/viewtopic.php?f=6&t=1114#p2166

Those are useful for anybody trying to do even basic things. There are others (various GUIs you can check out) but the problem with those is for a computer idiot it's not necessarily so easy to set up. Very simple yes, but I've spent 15 minutes walking someone through setting up the correct gfx path for them, and they at least knew what a gfx path was once they realized what it was trying to do.

Aside from that - read the manual. As much of it as it seems like you don't understand. If you want to do something, look through the examples and see if there's an example that looks like it does what you want your script to do.

Other useful references:
How to do anything in Regexp - http://manual.macromates.com/en/regular_expressions
Test regexps - http://regexpal.com/
Good info about most lua functions that weren't created for Mudlet from existing ones - http://www.lua.org/manual/5.1/

I've taught myself Lua over the course of the last month basically using only this and by dissecting scripts I've found on the forums. It's good stuff.

User avatar
Alexander Divine
Posts: 65
Joined: Mon Dec 21, 2009 7:01 pm

Re: Top Mudlet Tips

Post by Alexander Divine »

This single trigger has been one of the most invaluable tools in my Iron Realmsing arsenal.

Pattern: ^(.*) says, "(.*)"$
Code: [show] | [select all] lua
selectString(line, 1)
replace(matches[2] .. " says, \"" .. matches[3] .. ", in bed.")

hempa
Posts: 48
Joined: Sat Jan 02, 2010 1:07 pm

Re: Top Mudlet Tips

Post by hempa »

A simple targeting alias:
Code: [show] | [select all] lua
-- pattern: ^t(?: (.*))?$
if matches[2] then
   target = matches[2]
   echo("Target changed to " .. target .. "\n")
else
   echo("Target is " .. target .. "\n")
end
A sample bashing alias that lets you target someone else without changing target.
Code: [show] | [select all] lua
-- pattern: ^x(?: (.*))$
if matches[2] then
   send("dsl " .. matches[2], false)
else
   send("dsl " .. target, false)
end

User avatar
Vadi
Posts: 5042
Joined: Sat Mar 14, 2009 3:13 pm

Re: Top Mudlet Tips

Post by Vadi »

mfind alias - http://forums.mudlet.org/viewtopic.php?f=6&t=1233 (searches for words in the screen)
#repeat alias - http://forums.mudlet.org/viewtopic.php?f=6&t=1275 ala zmud, does same thing

Here is how to setup affliction curing triggers such that the cure line will never match unless the 'you eat a herb' line precedes it. Very efficient, because the cure lines will only be actually matching if the herb line was there, otherwise they aren't.
screenshot_477.png
screenshot_478.png
screenshot_479.png

User avatar
demonnic
Posts: 886
Joined: Sat Dec 05, 2009 3:19 pm

Re: Top Mudlet Tips

Post by demonnic »

The below link (featured as a button on www.mudlet.org) will be very helpful for anyone:
The live help option

I cannot stress enough how much help it can be having someone who has been using mudlet awhile walk you through some of the more difficult concepts.

Of course, simply going to #mudlet-help on irc.freenode.com works too, for those more IRC inclined. There may not always be someone awake there, but I generally am during the week, at least.

Jeremy
Posts: 12
Joined: Wed Dec 30, 2009 7:09 pm
Location: Bellingham, WA, USA
Contact:

Re: Top Mudlet Tips

Post by Jeremy »

These are certainly looking good. Keep them coming if you have any more.

Denarii
Posts: 111
Joined: Thu Dec 03, 2009 10:54 pm

Re: Top Mudlet Tips

Post by Denarii »

As a note, I'd advise against including the colored echo function in a list of tips. Such functions will be shipped with Mudlet 1.0.6.

Post Reply