diff --git a/src/scripts/mapper/mapper.lua b/src/scripts/mapper/mapper.lua index b4f5eb0..57283bf 100644 --- a/src/scripts/mapper/mapper.lua +++ b/src/scripts/mapper/mapper.lua @@ -237,6 +237,7 @@ function lotj.mapper.stopMapping() return end lotj.mapper.mappingArea = nil + lotj.mapper.lastMoveDirs = nil lotj.mapper.log("Mapping stopped. Don't forget to map save!") end @@ -546,6 +547,7 @@ end -- The vnum is always sent after the name and exits, so we can use it as a trigger for -- handling movement to a new room function lotj.mapper.onEnterRoom() + lotj.mapper.logDebug("Handling entered room, vnum "..gmcp.Room.Info.vnum) if lotj.mapper.current ~= nil then lotj.mapper.last = lotj.mapper.current end diff --git a/src/triggers/mapper/triggers.json b/src/triggers/mapper/triggers.json index bf0b111..8c80cef 100644 --- a/src/triggers/mapper/triggers.json +++ b/src/triggers/mapper/triggers.json @@ -35,6 +35,10 @@ { "pattern": "^In your dreams, or what\\?$", "type": "regex" + }, + { + "pattern": "^That room is private right now.$", + "type": "regex" } ], "script": "lotj.mapper.popMoveDir()"