Azu
Oct 12 2009, 06:04 PM
Upon my returning Achaea I decided I had had enough of nexus and also wish to learn to fight. I've decided to use Mudlet from now on.
Unfortunately I knew very little about coding in Nexus, and nothing about Lua, which Mudlet uses.
I am wondering if there is some kind, -very- patient soul out there willing to work with me on my first scripting project, an auto sipper. I say very patient because as stated previously, I have no experience at all with either Mudlet or Lua, so I'll be sure to have a few slow and frustrating moments.
I have found some good reading and do study up on it in my spare time, but nothing beats learning it from an experience scripter or coder.
If anyone is interested in helping me out just drop me a line, my screen names for both AIM and MSN are on my profile here on the forums
Thanks everyone,
Azu
Drauka
Oct 12 2009, 09:23 PM
Actually nothing beats trying things yourself and then once you have a solid foundation of trial and error asking for help.
Soludra
Oct 12 2009, 09:30 PM
I'd be much more keen to help if it was MUSHclient we were talking about, because I know next to nothing about Mudlet. That said, if you have any questions about Lua itself (or really any "how can I do this?" problem), send me a message on AIM - my screen name is on my forums profile too.
Irion
Oct 12 2009, 10:31 PM
QUOTE (Drauka @ Oct 12 2009, 05:23 PM)

Actually nothing beats trying things yourself and then once you have a solid foundation of trial and error asking for help.
I agree, however, it is much more productive to have someone (or something) show you how. For example, a sample piece of code -- hopefully well commented -- can be a great aid to learning.
Trevize
Oct 12 2009, 10:40 PM
Lua I could help with, Mudlet not so much.
Boz
Oct 12 2009, 11:21 PM
I'd just like a toehold, a summary of what all the little squiggles do, I could figure things out from there I am sure (well, maybe a few shoves in the right direction)..but if anyone wants to teach Azu and doesn't mind another student, lemme know!
Irion
Oct 13 2009, 12:49 AM
QUOTE (Boz @ Oct 12 2009, 07:21 PM)

I'd just like a toehold, a summary of what all the little squiggles do, I could figure things out from there I am sure (well, maybe a few shoves in the right direction)..but if anyone wants to teach Azu and doesn't mind another student, lemme know!
What squiggles?
Boz
Oct 13 2009, 12:51 AM
QUOTE (Irion @ Oct 12 2009, 08:49 PM)

QUOTE (Boz @ Oct 12 2009, 07:21 PM)

I'd just like a toehold, a summary of what all the little squiggles do, I could figure things out from there I am sure (well, maybe a few shoves in the right direction)..but if anyone wants to teach Azu and doesn't mind another student, lemme know!
What squiggles?
All the weird little symbols. Like $.d or whatever it is. Dexodro sent me a small list of them, but I'd like an entire list...like I know in Nexus {w} = wildcard, reference the wildcard by $1 (or $2 if it is the second variable holder, etc).
Irion
Oct 13 2009, 12:54 AM
QUOTE (Boz @ Oct 12 2009, 08:51 PM)

QUOTE (Irion @ Oct 12 2009, 08:49 PM)

QUOTE (Boz @ Oct 12 2009, 07:21 PM)

I'd just like a toehold, a summary of what all the little squiggles do, I could figure things out from there I am sure (well, maybe a few shoves in the right direction)..but if anyone wants to teach Azu and doesn't mind another student, lemme know!
What squiggles?
All the weird little symbols. Like $.d or whatever it is. Dexodro sent me a small list of them, but I'd like an entire list...like I know in Nexus {w} = wildcard, reference the wildcard by $1 (or $2 if it is the second variable holder, etc).
You mean regular expressions?
Like: ^(\d+)h, (\d+)m ([a-z]+)-$
That has nothing to do with lua.
You can read a tutorial
here.
Trevize
Oct 13 2009, 03:20 AM
QUOTE (Irion @ Oct 12 2009, 08:54 PM)

You can read a tutorial
here.
I also posted one up at:
http://moonflair.com/tutorials/regexA copy of the official documentation is here:
http://mushclient.com/pcre/pcrepattern.htmlI mostly use the official documentation to look up specifics, though, it doesn't compare to a tutorial or previous examples for figuring stuff out.
Drauka
Oct 13 2009, 03:50 AM
Lua the language itself is pretty simple. It only really has one complex data type (a table) and has the basic usual suspects you would find in a programming language from control structures like "if" and "while" etc, to builtin libraries for strings and math, and is very fast due to being very small (in code).
The real gift of using Lua with a MUD client is the glue some clients provide, like Mushclient. I would recommend taking a look at ACS2 and some of the plugins there. The code part is written in Lua. Mushclient also has decent documentation, forums and an active community.
Mudlet is still in beta/alpha quality code. I'd suggest sticking with Mushclient till Mudlet is a final stable release, unless you're a developer that wishes to solve bugs and help code it.
Mushclient will give you much more bang for your effort, due to being able to write something and immediately use it without much effort, due to fast turn-around time from code to use. ACS2 has a lot of learn from. It has all the Lua coding examples (except for "OOP" in Lua) you'd want, regex examples, triggers, aliases, timers, and general organizational structure.
Mushclient is also free (now), fast and a very stable and mature product.
Soludra
Oct 13 2009, 04:39 AM
ACS2 isn't a paragon of perfection by any means, and some of the things it does can be fairly hard to track down. Keep that in mind, though, and it's an acceptable codebase.
EDIT: Drauka, MUSHclient's been free for over two years...
Drauka
Oct 13 2009, 04:47 AM
QUOTE (Soludra @ Oct 13 2009, 12:39 AM)

ACS2 isn't a paragon of perfection by any means, and some of the things it does can be fairly hard to track down. Keep that in mind, though, and it's an acceptable codebase.
EDIT: Drauka, MUSHclient's been free for over two years...
Time of things sorta mushes all together, time flies. Can't believe it's been over 2 years since I used Mushclient, then
ACS2 is just sort of a useful example for Lua and is Achaea based (so some things may be familiar in terms and strings, etc). Certainly not a perfect teaching text, but useful to learn from (how do you compare two numbers in an "if" control structure, how do you create and process arrays, etc).
Some of the ACS2 plugins would probably be easier to digest.
Edit: though no matter what you do, read the book (paper or online version).
Azu
Oct 13 2009, 03:38 PM
I'll go with MUSH then, Mudlet is so epic, but Drakua made a good point about waiting until a finalized version comes out. Seems like a lot more help is available for MUSH client anyways, thanks everyone, I'll for sure being talking to a few of you for help
Soludra
Oct 13 2009, 05:27 PM
We have a dedicated clan, too: MUSHclient Users. Poke someone listed in CLANHELP MUSH if you want to join.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please
click here.