Training to stats, Str Int Wis dex Con and Luck

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 sdcliwliw

This will actually try to do as you wanted, but you did not have enough trains for the last Wis. But all the others are trained as expected.

Now say you forgot to train for a few levels and can train up all your stats 3 times, that is still painful with the MUD commands. But look how easy it is now, just stick a number on the end and it will try and repeat the training process on the stats you put on the command line 3 times and in the order you give them.

train ilwsdc 3

The part you really want, the alias.


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.

Training to stats, Str Int Wis dex Con and Luck

Any problems send Zaf a tell.

Raspberry PI as a Router and WIFI Hotspot

Using a Raspberry PI as a Router and Wifi hotspot with a firewall for your internal LAN or household network is now possible. The Wifi hotspot can function as a hotspot for guests. This can be more secure then the cheap nasty routers supplied by your ISP with hard coded passwords.

Continue reading

Mail Server on Ubuntu 18.04 Part 5

Welcome to Mail Server on Ubuntu 18.04 Part 5. This is the fifth part of a series of blog posts. We will be adding Roundcube, allowing your users to access their email over a secure HTTPS connection from any browser. We will also briefly talk about monitoring.

Mail Server on Ubuntu 18.04 Part 1
Mail Server on Ubuntu 18.04 Part 2
Mail Server on Ubuntu 18.04 Part 3
Mail Server on Ubuntu 18.04 Part 4

Continue reading

Self-signed SSL Certificates

We can create self-signed SSL certificates for use in-house, when setting up Apache or a mailserver. We should always be using HTTPS and encrypted connections whenever we can. You know it makes sense. The majority of the time we can now use SSL certificates from Let’s Encrypt. They are free and once setup trouble free. Sometimes though we need a quick self-signed SSL certificates while testing. This post takes you though how to create self-signed SSL certificates with OpenSSL. It also shows how to create one with multiple alternate names or SANs. Read the SSL documentation, its on the internet :).

Continue reading

Using chrony on Ubuntu 18.04

Using chrony on Ubuntu 18.04 will show how to setup chrony for clients and servers within your LAN. Chrony replaces NTP which in now depreciated. Using chrony on Ubuntu 18.04 will show how to setup chrony for clients and servers within your LAN.

Chrony is an implementation of the Network Time Protocol (NTP). It is used to keep the system clocks of PCs synchronized with the clock of NTP servers. It can also be used to setup your own NTP server to provide time for your LAN. Chrony replaces ntp and ntpdate which are now deprecated.

Continue reading

Using LDAP on Synology

I wrote this HOWTO, using LDAP on Synology so I could try out the Synology Directory Server. This is how I managed to get Linux machines to authenticate against it. At the time of writing, Synology was on DSM 6.2-23739 Update 2. I will be using Ubuntu 18.04 as the Linux clients

The Synology documentation for Directory Server is appalling only stating the blindingly obvious. That is all assuming the page has been updated, most having missing options or features.

Continue reading

Mail Server On Ubuntu 18.04 Part 4

Welcome to Mail Server on Ubuntu 18.04 Part 4. This is the fourth part of a series of blog posts. We will be adding some extra checking to postfix. This will allow you to effectively blacklist some domains and email addresses. We will also be adding checks for properly formatted domain names and checking the IP address against their DNS lookup.

Mail Server on Ubuntu 18.04 Part 1
Mail Server on Ubuntu 18.04 Part 2
Mail Server on Ubuntu 18.04 Part 3

Continue reading