SlothMUD Mapper

It's finally here! The SlothMUD Mapper!

SlothMUD Mapper is a mapping script that automatically maps rooms as you move through the world of Jord.
FEATURES:
* Auto-mapping based on MSDP information
* Double click any room to run there
* Customize room colors by terrain type
* Zoom in/out
* View any room or area from anywhere
* Create custom run paths
To get it to work:
That should create your first room. You can then move around the script will do everything for you.
NOTES:
* Some locations won't map perfectly on a square grid in which you can right click the room you need to move and drag the mouse in the direction you wish.
* You can alter the room colors in the appropriate script by altering setCustomEnvColor(17, 0, 0, 0, 100) to whatever you want. The last four parameters are the rgba values. In this case it would be 0, 0, 0, 100 which is black with 100 transparency.
* Special exits (such as flying via dragon/phoenix/griffon) will not work with the speedwalk function just yet.
* If you need to connect two rooms that the mapper may have missed, use the alias CONNECT [room1] [room2] [direction] So for example, connect 126 150 east will connect room 126 to 150 in a eastward direction.
SlothMUD Mapper is a mapping script that automatically maps rooms as you move through the world of Jord.
FEATURES:
* Auto-mapping based on MSDP information
* Double click any room to run there
* Customize room colors by terrain type
* Zoom in/out
* View any room or area from anywhere
* Create custom run paths
To get it to work:
- 1 ) I recommend a new profile.
- Code: Select all
function initialise_msdp()
local vars = {
"ROOM_DESC",
"ROOM_RNUM",
"WEAR_HEAD",
"SERVER_ID",
"WORLD_TIME",
"CHARACTER_NAME",
"HEALTH",
"HEALTH_MAX",
"MANA",
"MANA_MAX",
"MOVEMENT",
"MOVEMENT_MAX",
"AREA_NAME",
"ROOM_NAME",
"ROOM_VNUM",
"AC",
"HONOR",
"CONTINENT",
"LEVEL",
"CLASS",
"DRACHMA",
"ALIGNMENT",
"EXPERIENCE",
"MONEY",
"STR",
"CON",
"DEX",
"WIS",
"INT",
"STR_PERM",
"CON_PERM",
"DEX_PERM",
"WIS_PERM",
"INT_PERM",
"WEAPON_DAM",
"SPELL_BONUS_CAP",
"HEAL_BONUS",
"HEAL_BONUS_CAP",
"CHARISMA",
"CHARISMA_CAP",
"FLAIL_DAM",
"KICK_DAM",
"HAND_DAM",
"HAND_DAM_CAP",
"DAM_RED",
"DAM_RED_CAP",
"SEX",
"GROUP_LEADER",
"TANK_HEALTH",
"TANK_HEALTH_MAX",
"TANK_LEVEL",
"TANK_NAME",
"LEVEL_SEC",
"LEVEL_TER",
"LEVEL_QUA",
"LEVEL_QUI",
"LEVEL_HEX",
"LEVEL_SEP",
"LEVEL_OCT",
"LEVEL_AVA",
"CITIZEN",
"CLASS_SEC",
"CLASS_TER",
"CLASS_QUA",
"CLASS_QUI",
"CLASS_HEX",
"CLASS_SEP",
"CLASS_OCT",
"CLASS_AVA",
"STAB_DAM",
"STAB_DAM_CAP",
"INT_PERM",
"HITROLL",
"DAMROLL",
"OPPONENT_HEALTH",
"OPPONENT_HEALTH_MAX",
"OPPONENT_NAME",
"OPPONENT_LEVEL",
"TERRAIN",
"AFFECTS",
"ROOM_EXITS",
"HUNGER",
"THIRST",
"COORD1","COORD2","COORD3","COORD4","COORD5","COORD6","COORD7","COORD8","COORD9","COORD10","COORD11","COORD12","COORD13","COORD14","COORD15","COORD16","COORD17","COORD18","COORD19","COORD20","COORD21","COORD22","COORD23","COORD24","COORD25",
}
for k,v in pairs(vars) do
sendMSDP("REPORT",v)
end
end
2 ) Create a new script and copy/paste the following into it:
3 ) Before logging in, enable MSDP in Mudlet Settings and restart the profile.
4 ) Install the attachment via the Package Manager on the Mudlet toolbar.
5 ) Login.
6 ) Enter lua initialise_msdp() send("\n") from the command line.
7 ) Enter mapping mode on from the command line.
8 ) Enter map start from the command line.
That should create your first room. You can then move around the script will do everything for you.
NOTES:
* Some locations won't map perfectly on a square grid in which you can right click the room you need to move and drag the mouse in the direction you wish.
* You can alter the room colors in the appropriate script by altering setCustomEnvColor(17, 0, 0, 0, 100) to whatever you want. The last four parameters are the rgba values. In this case it would be 0, 0, 0, 100 which is black with 100 transparency.
* Special exits (such as flying via dragon/phoenix/griffon) will not work with the speedwalk function just yet.
* If you need to connect two rooms that the mapper may have missed, use the alias CONNECT [room1] [room2] [direction] So for example, connect 126 150 east will connect room 126 to 150 in a eastward direction.