Locate script for Mudlet

... A place to ask for help on any topic whether it be starting out to player killing to IT issues.
Post Reply
Niv
Posts: 9
Joined: Fri Dec 18, 2015 6:43 am

Locate script for Mudlet

Post by Niv » Wed Apr 03, 2019 12:00 am

I'm not sure what everyone else uses to manage locates and portcodes, so I wrote a script for Mudlet, largely based on Adael's gate scripts. Mine is available here: https://www.dropbox.com/sh/cmlv2ewccj1c ... nQQK7OKxVa

It can be installed using Mudlet's Package Manager.

It's only tested for Locate Object atm, it will prefix each locate output line with a number, and save that code to a temporary list, eg:

Code: Select all

          
channel 'locate object' lamp
                     You begin to weave the appropriate flows...

 -=
+*
*+
=-
 -
=+
*
The River Lady has arrived at the docks.

Ok.
1: a hanging lantern    - [ulihrtqrynalkne] - somewhere around here.
2: a hanging lantern    - [ulikneplikaepid] - somewhere around here.
3: a hanging lantern    - [thgplihrtflxile] - somewhere south of here.
4: a hanging lantern    - [bokkneopanalthg] - somewhere very far west of here.
5: a streetlamp         - [ngupliardoaewuj] - somewhere far north of here.
6: a hanging lantern    - [lijopaardbealij] - somewhere far north of here.
7: a streetlamp         - [nguulirxekaedab] - somewhere southeast of here.
8: a streetlamp         - [nguknevxzkaenal] - somewhere southeast of here.
9: a streetlamp         - [lijknevxzrtihrt] - somewhere southeast of here.
10: a streetlamp         - [lijilenyanulile] - somewhere southeast of here.
11: a streetlamp         - [nguardliqrtibok] - somewhere southeast of here.
12: a streetlamp         - [qulardvxzrtingu] - somewhere southeast of here.
13: a streetlamp         - [nguknenyarticed] - somewhere southeast of here.
14: a streetlamp         - [nguileliqnsenul] - somewhere southeast of here.
15: a streetlamp         - [wujknerxeopanse] - somewhere southeast of here.
16: a streetlamp         - [qulardnyajovnya] - somewhere southeast of here.
17: a streetlamp         - [lijknevxzjovzfe] - somewhere southeast of here.
18: a streetlamp         - [wujkneliqopapid] - somewhere southeast of here.
19: a streetlamp         - [lijknevxzpliqul] - somewhere southeast of here.
20: a streetlamp         - [nguulinyaopaced] - somewhere southeast of here.
21: a streetlamp         - [qululirxevxzkae] - somewhere southeast of here.
22: a streetlamp         - [qulardvxzliqrsa] - somewhere southeast of here.
23: a streetlamp         - [lijardnyadabkae] - somewhere southeast of here.
24: a streetlamp         - [wujardnyafmujov] - somewhere southeast of here.
25: a streetlamp         - [lijilerxedabuav] - somewhere southeast of here.
This is a temporary list that will be erased next time you weave, but you can save those codes to your portcode list with the syntax "saveloc <keyword> <number>" eg:

Code: Select all

                     
saveloc tv 1
time

Added location: tv with code: ulihrtqrynalkne
It is 9 o'clock pm, on the 2nd day of the month of Aine, year 1276.
>> Month has changed from last port code save! <<
According to legend and prophecy, this is the Zunth Turn of the Wheel.
Forums: wotmod.org Wiki: wotmud.wikia.com Web client: writtenrealms.com/wot/

(Server: Tue Apr  2 23:38:56 2019 EST, last rebooted 23 hours, 36 minutes ago)
This automatically enters "time" and warns you if your old portcodes are from a previous month, in this case they were. You can see your current portcodes by entering "portcodes," and reset them all with "resetcodes".

Code: Select all

                                       
portcodes
Codes last saved in: Aine
Location: rhahime, code: opavxzvxznulkne
Location: fd, code: rxengusdemeymvu
Location: cair, code: olpnyakaemvuuav
Location: tv, code: ulihrtqrynalkne
Location: mara, code: thgpidthgsdeast

resetcodes

Port codes reset.

portcodes
No codes known!

saveloc tv 1
time

Added location: tv with code: ulihrtqrynalkne
It is 11 o'clock pm, on the 2nd day of the month of Aine, year 1276.
According to legend and prophecy, this is the Zunth Turn of the Wheel.
Forums: wotmod.org Wiki: wotmud.wikia.com Web client: writtenrealms.com/wot/

(Server: Tue Apr  2 23:40:42 2019 EST, last rebooted 23 hours, 38 minutes ago)

portcodes
Codes last saved in: Aine
Location: tv, code: ulihrtqrynalkne
You can also manually save a location with "addcode <keyword> <earthcode>," and travel to a saved location or an earthcode with "port <keyword or earthcode>". If the keyword you supply is in the list, it will travel there, if not it will treat whatever you enter as an earthcode.

Since travel codes change so often, your portcode list is not permanent, and will be erased if you quit Mudlet.

Post Reply