Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Here's an easy way to make use of your Belt of the Enlightened with GMCP, Mudlet's Mapper, and the IRE Mapping Script in under 5 minutes. First, we'll map the chamber and second, we'll create the script. Once you're up and running, the mapper will begin to check all rooms to see if they're outdoors, and if so remember them as a location where you can use your belt. If you've not yet enabled GMCP, it can be turned on by clicking 'Settings' and selecting 'Enable GMCP' on the first screen, second from the bottom.
- First, touch your belt to teleport to the chamber. To map the room, enter the following commands in order from Mudlet's main command line:
- mc on
- rlc v19627 0 0 0
- area add Limbo
- room area Limbo
- rlk 19343 se one
- rlk 19514 nw one
- rlk 19222 up one
- rlk 19666 sw one
- rlk 19527 ne one
- rlk 11401 down one
- rlk 19693 north one
- mc off
- Second, we setup the script! We'll create a script group, I called mine 'MapHax'. I didn't place it inside of 'mudlet-mapper' to avoid any issues when the IRE Mapping Script updates. Open up a plain text editor (Notepad, Gedit, etc.) and save a blank file inside your mudlet home directory called 'maphax'. If you don't know where your mudlet home directory is, from the command line run 'lua echo(getMudletHomeDir())'. Inside the group, paste the following script:
- maphaxloc = getMudletHomeDir().. "/maphax"
- maphax = maphax or {beltlocked = {}}
- function MapHax()
- loadMapHax()
- end
- function loadMapHax()
- if io.exists(maphaxloc) then table.load(maphaxloc, maphax) end
- end
- function saveMapHax()
- if io.exists(maphaxloc) then table.save(maphaxloc, maphax) end
- end
- Inside that group, we'll create a script item called 'The Belt of the Enlightened'. In the body of the script, copy and paste the following:
- registerAnonymousEventHandler("gmcp.Room.Info", "checkBelt")
- function checkBelt()
- local area = gmcp.Room.Info.area
- local outdoors = gmcp.Room.Info.details[2]
- if not table.contains(maphax.beltlocked, area) and outdoors == "outdoors" then
- local num = gmcp.Room.Info.num
- if not table.contains(getSpecialExits(num), "TOUCH ENLIGHTENED") then
- addSpecialExit(num, 19627, "TOUCH ENLIGHTENED")
- echo("\n(Map Hax): Added use of the Golden Belt of the Enlightened from v".. num..".")
- end
- end
- end
- function beltLock(num, area)
- if not table.contains(maphax.beltlocked) then
- table.insert(maphax.beltlocked, area)
- echo("\n(MapHax): Can't use the Golden Belt of the Enlightened, locking the area.")
- end
- for k, v in pairs(getAreaRooms(getRoomArea(num))) do
- if table.contains(getSpecialExits(v), "TOUCH ENLIGHTENED") then
- removeSpecialExit(v, "TOUCH ENLIGHTENED")
- end
- end
- end
- For ease of copy+paste and sharing, this is also available via pastebin: https://pastebin.com/m663YbL8
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement