Advertisement
SerityW

Untitled

Mar 7th, 2021
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. mudlet = mudlet or {}; mudlet.mapper_script = true
  2. local okayExits = { -- <- this list is new (i just lazily did it like this so i could 'okayExits[dir]' instead of having to iterate to see if value is in list)
  3. nw = true, ne = true, sw = true, se = true, s = true, n = true, e = true, w = true,
  4. northwest = true, northeast = true, southwest = true, southeast = true,
  5. south = true, north = true, east = true, west = true,
  6. up = true, u = true, down = true, d = true
  7. }
  8. function createroom()
  9. -- ...
  10.  
  11. function exits(roomid)
  12. -- ...
  13. -- Scrub through exits
  14. for dir, hash in pairs(roomexits) do
  15. exitroom = getRoomIDbyHash(hash)
  16. if (okayExits[dir]) then -- <- new
  17. -- ...
  18. end -- <- new
  19. end
  20. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement