Search found 232 matches

by Belgarath
Fri Dec 21, 2018 8:43 am
Forum: Help Forum
Topic: How to capture this?
Replies: 3
Views: 4608

Re: How to capture this?

Vooku wrote:
Wed Dec 19, 2018 1:29 pm
Thanks much! How do display or see the contents of this table? How do I then delete the contents?
The wiki has some good documentation on this: https://wiki.mudlet.org/w/Manual:Table_Functions
by Belgarath
Sat Dec 15, 2018 6:11 pm
Forum: Help Forum
Topic: How to capture this?
Replies: 3
Views: 4608

Re: How to capture this?

You'll use a regex pattern like this: ^Katumi tells you '@Vooku: (.+)'$

And you'll parse it into a table.
Code: [show] | [select all] lua
names = matches[2]:split(', ')
by Belgarath
Thu Nov 08, 2018 3:30 am
Forum: Howtos, FAQs and Tips & Tricks
Topic: Installing Mudlet on a Chromebook (ChromeOS 69)
Replies: 6
Views: 14005

Re: Installing Mudlet on a Chromebook (ChromeOS 69)

If you're eager to use the latest and greatest, you can also use the AppImage after extracting its contents.

./Mudlet.AppImage --appimage-extract

Then you can rename the squashfs folder and run the mudlet executable within.

disclaimer: it may be buggy
by Belgarath
Thu Nov 08, 2018 3:19 am
Forum: Help Forum
Topic: How would I add a simple timer based on a trigger?
Replies: 1
Views: 2920

Re: How would I add a simple timer based on a trigger?

I'm not great with UI, but a simpler approach would be to use tempTimer and echo the go-ahead to the screen, like so:
Code: [show] | [select all] lua
local cooldown = 5 -- in seconds
if swapTimer then killTimer(swapTimer) end
swapTimer = tempTimer(cooldown, [[cecho('<green>Cooldown finished!\n')]])
by Belgarath
Sat Jun 16, 2018 3:32 am
Forum: Help Forum
Topic: Alias Question
Replies: 3
Views: 4525

Re: Alias Question

SlySven wrote:
Tue Apr 03, 2018 9:59 pm
You might want to include a space after the k in the pattern so that you can use other single words beginning with k without them firing this alias...
Thanks for pointing that out - I fixed it (two months later).
by Belgarath
Wed Mar 28, 2018 4:43 am
Forum: Help Forum
Topic: Alias Question
Replies: 3
Views: 4525

Re: Alias Question

Pattern: ^k(f|u|n| .+)$
Script:
Code: [show] | [select all] lua
local shortnames = {
  f = ' friends',
  u = ' you',
  n = ' anyone'
}

local mob = shortnames[matches[2]] or matches[2]

send('order followers kill' .. mob)
send('headbut' .. mob)
Using kf for instance would set the mob to friends.
by Belgarath
Wed Mar 28, 2018 4:15 am
Forum: Help Forum
Topic: Lusternia Bashing Sequence
Replies: 1
Views: 2914

Re: Lusternia Bashing Sequence

Your trigger seems to be using regex patterns while being of type substring. You'll want to change that to type regex and use it like so: ^You have recovered balance on your (?:left|right) arm\.$ I'm presuming the mud output will be left and right there. For the slain triggers, () bits will need to ...
by Belgarath
Wed Mar 28, 2018 4:08 am
Forum: Scripts & Packages
Topic: YATCO
Replies: 142
Views: 326641

Re: YATCO

@clumsythief

You might want to untick "Fix unnecessary linebreaks on GA servers" in your profile preferences to help with lines showing up on the prompt.

The regex for the clan chat would be like so:

Code: Select all

^\[\w+\]: '.+'$
by Belgarath
Fri Mar 02, 2018 2:30 pm
Forum: Mudlet Mapper
Topic: (mapping script) Mudlet Mapper script for Avalon
Replies: 1
Views: 10111

(mapping script) Mudlet Mapper script for Avalon

Greetings, I've been back on Avalon for some time now and figured it was time to make a mapping script. I'm hoping the community will get involved in adding missing triggers, raising issues for any bugs that pop up, or suggesting new ideas. Make sure after installing it you relog into Avalon and the...
by Belgarath
Wed Jan 17, 2018 2:47 pm
Forum: General Forum
Topic: Mudlet features and API requests
Replies: 535
Views: 651389

Re: Mudlet features and API requests

I just opened Mudlet (3.7.1) on a fresh installation of Ubuntu GNOME and I'm getting the same issue with loading the code formatter... [ ERROR ] - Cannot load code formatter, indenting functionality won't be available. Lua error:[string "..."]:2: module 'lcf.workshop.base' not found: no fi...