SIGN IN YOUR ACCOUNT TO HAVE ACCESS TO DIFFERENT FEATURES

CREATE AN ACCOUNT FORGOT YOUR PASSWORD?

FORGOT YOUR DETAILS?

AAH, WAIT, I REMEMBER NOW!

CREATE ACCOUNT

ALREADY HAVE AN ACCOUNT?
  • SIGN UP
  • LOGIN

Aardwolf Boot Camp

MENUMENU
  • Joining
  • Rules
  • Maps
  • Forums
  • Members
    • New Members
    • Promotion Guide
    • Guides
    • Area Quests/Goals
    • Plugins
    • Outcasting
    • External Links

MUSHClient alias for training stats

Monday, 09 December 2019 by Zafrusteria

Training your stats can be a pain using the standard mud commands. I found the following MUCHClient alias will not only speed up the process but also helped me do it without as many mistakes. This is how it works. The train command gets a new way for you to say what you want trained and how many times. I’ll will use examples to explain. Okay you have just leveled and received 3 trains for the level. You want to train int, wis and luck. Using MUD commands you would use:

train int
train wis
train luck

Using this alias you just use the initial letter of each stat to train it. i=int, w=wis, l=luck. You get the idea. To train all three you can use.

train iwl

They will also be trained up in the order you place them from left to right.
Next time you level you get lucky and get 8 trains. Now you want to bring up all your stats and then Luck, Int and Dex again if you have enough trains. So without doing any maths 🙂

train ilwsdc 3

So you get the idea of how it works just list the first letter for each stat you want to be trained one or more times. IOf you then want to so that multiple time add a number on the end.

The part you really want, the alias.Open the Alias editing GUI. Press Alt+enter. The in the left hand side list  about 1/3 of the way back up from the bottom click on Alias. Then click on the Add button to get the Alias editing GUI. Add the text as shown below.

Alias: train\s+([siwdcl]+)(?:\s+(\d*))?$

Send:
local stats = string.lower("%1")
local len = string.len(stats)
local total = 1
local lookup = {['s'] = 'str', ['i'] = 'int', ['w'] = 'wis',
                ['d'] = 'dex', ['c'] = 'con', ['l'] = 'luck'}

if "%2" ~= "" then
    total = tonumber("%2")
end

for i = 1, len, 1 do
    local st = string.sub(stats, i, i)
    if lookup[st] ~= nil then
        Send("train "..total.." "..lookup[st])
    end
end

Send("train")

In the Send to drop down select Script.

Make sure that the following boxes are ticked on the right hand side. Enabled, Ignore case and regular expression.

A screen shot of what it should look like.

screen shot for the MUSHClient training Alias

mushclient alias
Read more
  • Published in Public, Public-Guides
No Comments

Boot Camp © 2016 - 2018. All rights reserved.

TOP