CLIENT: Dump of mudlet related things for y'all

The place with help files for new players, weapon and equipment stats and other pertinent information for players of all levels and experience.
Adael
Posts: 1082
Joined: Sun Mar 22, 2015 12:34 am

Re: CLIENT: Dump of mudlet related things for y'all

Post by Adael » Sat Sep 09, 2023 5:26 pm

I hadn't had a chance to reply, but Reyne's reply is nearly spot on.

The only thing that I would change is the regex pattern. As written, it will capture, e.g., "an ancient tree" as the targetting variable - but trying to "kill an ancient tree" will likely not give the response you want :)

The pattern I had was

Code: Select all

(\S+): (\S+) >
which can be used to capture the last word of whatever you're engaged on (in my example case, just "tree"), which I've found is typically a keyword that can be used for most mobs. For pcs, this will always capture their name. And in this case you would use

Code: Select all

CurrentEnemy = matches[2]
to set the target, as the pattern was slightly different.

Jada
Posts: 3
Joined: Wed May 20, 2015 9:38 pm

Re: CLIENT: Dump of mudlet related things for y'all

Post by Jada » Sun Sep 10, 2023 11:51 pm

This works perfectly. Thanks to you both.

Adael
Posts: 1082
Joined: Sun Mar 22, 2015 12:34 am

Re: CLIENT: Dump of mudlet related things for y'all

Post by Adael » Mon Sep 11, 2023 4:13 pm

Fixed a bug in the equipment trainer that was *still* requiring the equipment database package to be installed in the right order :roll:
Hopefully the problem is gone now so that it doesn't matter what is installed first...

Post Reply