Search found 232 matches

by Belgarath
Sun Dec 17, 2017 11:58 am
Forum: Scripts & Packages
Topic: Dictionary Scraper
Replies: 1
Views: 1302

Dictionary Scraper

Are you tired of always having to google word definitions from those fancy-schmancy people who show off their vocabulary? Well, I hear you, my friend. Your worries and fears have been heard and answered. This script will scrape the internet for words you wish to define. Better yet, the results will ...
by Belgarath
Sat Aug 26, 2017 1:23 pm
Forum: Scripts & Packages
Topic: Calendar - todo list, events
Replies: 1
Views: 1516

Calendar - todo list, events

Whilst familiarising myself with Mudlet databases, I created this script to help me track todo items and events. Thanks to Nick Gammon for his calendar plugin which this is based on. EVENTS TODOS CHANGELOG 28/08/17 - Changed the output ...
by Belgarath
Thu Jul 27, 2017 11:14 am
Forum: Howtos, FAQs and Tips & Tricks
Topic: Using String Interpolation
Replies: 2
Views: 1490

Using String Interpolation

In computer programming, string interpolation (or variable interpolation, variable substitution, or variable expansion) is the process of evaluating a string literal containing one or more placeholders, yielding a result in which the placeholders are replaced with their corresponding values. I was l...
by Belgarath
Thu Jul 27, 2017 10:34 am
Forum: Help Forum
Topic: Target variable attacks
Replies: 2
Views: 1306

Re: Target variable attacks

This is probably how I would do it... -- capture the last word (ie. guard, daughter, reaper) local target = matches[2]:match("(%w+)$") -- add any changes to the target here if necessary local to_target = { ["Reaper"] = "Grim Reaper" } target = to_target[target] or target -- only attack if `attacking...
by Belgarath
Tue Jul 25, 2017 2:23 pm
Forum: Scripts & Packages
Topic: Legends of the Jedi
Replies: 2
Views: 1741

Re: Legends of the Jedi

Your code is very pretty. I love event-based modules. <3
by Belgarath
Sun Jul 23, 2017 7:13 pm
Forum: Mudlet Mapper
Topic: (mapping script) mapper script for Akanbar
Replies: 3
Views: 3301

(mapping script) mapper script for Akanbar

What do you get when you cross-breed an IRE mapper script with a generic mapper script? Well, in this case, a functional and feature-rich mapping script that isn't reliant on GMCP(!)... which I have specifically tailored for one of my favourite (and very underrated) MUDs: Akanbar. Most of the credit...
by Belgarath
Sat Mar 04, 2017 10:14 pm
Forum: Mudlet Development
Topic: Profile Cleanup
Replies: 4
Views: 3995

Re: Profile Cleanup

Also, if you would like to automate the profile cleanup, you can add these two lines to the bottom of the script:
Code: [show] | [select all] lua
registerAnonymousEventHandler("sysExitEvent", "deleteOldProfiles(0, false)")
registerAnonymousEventHandler("sysExitEvent", "deleteOldProfiles(0, true)")
by Belgarath
Tue Feb 21, 2017 6:33 am
Forum: General Forum
Topic: Mudlet 3.0 final - do you have any issues with delta, epsilo
Replies: 23
Views: 24303

Re: Mudlet 3.0 final - do you have any issues with delta, ep

There seems to be an issue with Mudlet's built-in logging; it logs each line three times.
by Belgarath
Mon Jan 23, 2017 6:47 pm
Forum: General Forum
Topic: Feature Request: Undo Button
Replies: 2
Views: 8810

Feature Request: Undo Button

I think something that would save a lot of Mudlet users some frustration down the line is if there was an "undo" button, perhaps placed right next to the delete button in the script editor so that if something is *cough* accidentally deleted, you can click that magic button to bring it back. What ar...
by Belgarath
Mon Jan 16, 2017 6:41 pm
Forum: Help Forum
Topic: Mapper In/Out Exit Stubs
Replies: 4
Views: 1500

Re: Mapper In/Out Exit Stubs

It was explained to me by the Slyster that it is a known issue with the underlying code in Mudlet for now, and it should be fixed in the next release.

I got around it by, as you mentioned, just hacking the script so it didn't create or look for in/out exit stubs.