Search found 1092 matches

by Jor'Mox
Mon Sep 17, 2018 4:45 pm
Forum: Scripts & Packages
Topic: Drag and Drop GUI Framework
Replies: 4
Views: 1380

Drag and Drop GUI Framework

This script makes a GUI framework that allows the user to add Geyser windows/containers to any of 6 existing spots, 4 of which are tab switched to allow multiple windows/containers in them. The containers can be resized and windows can be moved around on the fly by the user ( right click and drag on...
by Jor'Mox
Mon Sep 10, 2018 10:59 am
Forum: Help Forum
Topic: Help with another alias please...
Replies: 3
Views: 457

Re: Help with another alias please...

Sure, just add an if statement to your trigger (assuming your name is being added to the list by that), like so:
Code: [show] | [select all] lua
if matches[2] ~= "my name" then
    table.insert(consent_tbl,matches[2])
end
by Jor'Mox
Sun Sep 09, 2018 8:53 pm
Forum: Help Forum
Topic: Help with another alias please...
Replies: 3
Views: 457

Re: Help with another alias please...

Okay, so first, you want an alias for the "consenting" command, which will reset a table you will use to track the people, and turn on a trigger to capture the names, like so: consent_tbl = {} -- you can name the trigger whatever you want, but this has to match it exactly enableTrigger("Consenting N...
by Jor'Mox
Sat Sep 08, 2018 3:10 pm
Forum: Scripts & Packages
Topic: Easy Auto Wrapping Console Class
Replies: 2
Views: 710

Easy Auto Wrapping Console Class

Here is a simple script that creates an autoConsole class that automatically readjusts text in the window whenever it is resized. I added all of the relevant functions that can be used to interact with a miniConsole to the class, so the returned object can use them as methods. One exception is that ...
by Jor'Mox
Fri Sep 07, 2018 7:25 pm
Forum: Help Forum
Topic: Keeping variables through multiple lines
Replies: 4
Views: 455

Re: Keeping variables through multiple lines

There are several predefined character groups in regex, such as \w, \d, and \s (they are all letters, numbers and _, all numbers, and all white space, respectively). But if you instead use the upper case version of the letter, you get everything NOT in that group. So \W is everything that isn't a le...
by Jor'Mox
Thu Sep 06, 2018 8:13 pm
Forum: Help Forum
Topic: Cant save trigger/alias/butons
Replies: 11
Views: 968

Re: Cant save trigger/alias/butons

Make a new script, and for the first line of that script, put this: print(getMudletHomeDir()) Then save the script. Something will be printed to the screen. I have a feeling that the normal alias that lets you execute code from the command line that they are asking you to use likely also got deleted...
by Jor'Mox
Thu Sep 06, 2018 4:28 pm
Forum: Mudlet Mapper
Topic: Generic Mapping Script
Replies: 369
Views: 56595

Re: Generic Mapping Script

Okay, so we can easily make a revised pattern to get the optional water exits, like this: ^([A-Z].+)\(([\w\s,]+)\)\s*\[?([\w\s,]*)\]? And then we modify the script to combine both sets of captured exits before searching them, like this: local dirs = {n = 'north', s = 'south', w = 'west', e = 'east',...
by Jor'Mox
Thu Sep 06, 2018 11:34 am
Forum: Mudlet Mapper
Topic: Generic Mapping Script
Replies: 369
Views: 56595

Re: Generic Mapping Script

Okay, I think the key will be changing the way we do the direction replacement. In doing so, we will make it so we can detect if there are real exits being detected or not, and if there aren't, we will ignore that match because it isn't really exits. Like this (using this as the trigger pattern: ^([...
by Jor'Mox
Wed Sep 05, 2018 5:11 pm
Forum: Mudlet Mapper
Topic: Generic Mapping Script
Replies: 369
Views: 56595

Re: Generic Mapping Script

With a pattern like that, I would recommend a reset variable like you have for the exits, since it is possible you will see additional lines that start with a capital letter by accident. Also, I would broaden the range of possible characters to include apostrophes, hyphens, and punctuation marks, an...
by Jor'Mox
Wed Sep 05, 2018 3:27 pm
Forum: Help Forum
Topic: Sync with online DB
Replies: 13
Views: 1038

Re: Sync with online DB

I recommend putting in some display type statements to help debug your function. Print out the first line of the file, so you can see if it has the text you are looking for. Then print something showing that you made it inside the if statement. Then print out the new URL you are trying to match to s...