Page 1 of 1

favMenu - Add Favorite rooms to Automatically sorted menu

Posted: Thu Mar 28, 2019 11:00 am
by jieiku
favMenu - Add Favorite rooms to Automatically sorted menu
2019-03-28_04-02.png
2019-03-28_04-02.png (27.02 KiB) Viewed 4941 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.)

Re: favMenu - Add Favorite rooms to Automatically sorted menu

Posted: Mon Apr 01, 2019 11:42 am
by SlySven
Don't forget, you can store the details in the map itself (using setMapUserData and related functions)...