Page 26 of 26

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

Posted: Sat Sep 09, 2023 5:26 pm
by Adael
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.

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

Posted: Sun Sep 10, 2023 11:51 pm
by Jada
This works perfectly. Thanks to you both.

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

Posted: Mon Sep 11, 2023 4:13 pm
by Adael
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...