favMenu - Add Favorite rooms to Automatically sorted menu

Share your scripts and packages with other Mudlet users.
Post Reply
jieiku
Posts: 33
Joined: Fri Mar 01, 2019 1:25 pm
Contact:

favMenu - Add Favorite rooms to Automatically sorted menu

Post by jieiku » Thu Mar 28, 2019 11:00 am

favMenu - Add Favorite rooms to Automatically sorted menu
2019-03-28_04-02.png
2019-03-28_04-02.png (27.02 KiB) Viewed 1571 times
This script makes use of a table filled with roomIDs, it takes these roomIDs and sorts them by area and makes a drop down menu that you can hover through and click on a room, when you click on a room it will attempt to walk you to that room using the gotoRoom() function.

Currently the list of roomIDs used is stored at the top of the script. You should edit this list to include only Room IDs that you have mapped in your mapper.

This script could be farther extended by saving the roomIDs table between sessions. This would give a persistent list that could be added to or removed from. A good Idea I had was to add an additional item to the right click menu for the mapper, "Add/Remove Favorite" This would obviously add or remove the selected Room(s) to the Favorite menu. (this idea is on my todo list with so many other things.)
Attachments
favMenu.xml
(5.71 KiB) Downloaded 60 times

User avatar
SlySven
Posts: 927
Joined: Mon Mar 04, 2013 3:40 pm
Location: Deepest Wiltshire, UK
Discord: SlySven#2703

Re: favMenu - Add Favorite rooms to Automatically sorted menu

Post by SlySven » Mon Apr 01, 2019 11:42 am

Don't forget, you can store the details in the map itself (using setMapUserData and related functions)...

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests