Yeah, it looks like what I would expect if you selected something beyond the code box. I recommend clicking the "Select" button at the top of the code box, and just copying that, rather than trying to select it manually. That way, you should avoid that sort of problem.
Using the code tags doesn't impose Lua highlighting, using the Lua tags does, otherwise they are essentially the same thing. I'm not aware of any special characters.
Created a package, along with a single line command that can be used to download and install it for you. Added the command at the end of the first post. I included some basic triggers to help show what is needed. Let me know if there are any problems.
Take this as a single line of text. Copy and paste it into the command line in the Mudlet Profile you want to install this in, and hit enter. It uses an alias that Mudlet makes for you in new profiles to execute lua code from the command line (so if you deleted it, you need it back), and from there, it downloads and installs the necessary scripts.
lua function downloaded_package(a,b) if not b:find("generic_mapper",1,true) then return end installPackage(b) os.remove(b) end registerAnonymousEventHandler("sysDownloadDone","downloaded_package") downloadFile(getMudletHomeDir().."/generic_mapper.mpackage","http://dslpnp.altervista.org/Generic_Mapper.mpackage")
What exactly are you expecting to happen that isn't happening? Because, in general, clicking the map is only used for making you walk to the targeted room (and you would need to tweak the code to make that happen, as right now it just echoes the directions to the main window, due to variations in how different games handle movement).
Note that for ANYTHING to happen, you need to make a number of triggers that are going to be specific to your game to capture information about the room (the room name, and the exits from the room, assuming this information isn't available in your prompt), one to capture the prompt (and store the room name and exits from here if not done before hand), as well as one that lets you know that a room was seen (if you have a trigger to capture the name and exits, then this part of it can be folded into one of those).
Once all those triggers have been made, then you need to use the already build in aliases (as described in the comments at the top of the script) to tell it to start mapping, and make assorted adjustments as necessary.