Skip to content

Major rewrite, new tablespace.

Compare
Choose a tag to compare
@demonnic demonnic released this 03 Jan 23:42
· 14 commits to master since this release

Changes

  • Major performance rewrite.
  • Makes the distance it will search from your current room for an unvisited room before searching the unvisited rooms for the closest one a configuration option
  • Makes the configuration options persistent to disk
  • Adds dwalk alias for interacting with demowalker
  • Adds the capability to look for items/mobs and only raise the demonwalker.arrived event when it finds one, rather than when it arrives at a new room.
  • Moves the entire thing from demonnic.autowalker to demonwalker table
  • demonwalker:init(options) takes a table of options for the walker, whereas before demonnic.autowalker:init(rooms, avoidRooms) used separate parameters. When called with no parameters at all previous functionality is maintained, so demonwalker:init() is valid.
  • keys for the options table for demonwalker:init(options)
    • rooms
      • List of roomIDs you want to visit. If not provided will be all rooms in the current area
      • IE { 12, 482, 1837 }
    • avoidRooms
      • List of roomIDs you do not want to visit. Can be used to filter unwanted rooms out when allowing the list of rooms to be autogenerated based on the area
      • IE { 88, 199, 12 }
    • searchTargets
      • List of items/mobs to search for. When provided, causes the walker to raise the arrived event when it finds one of the items or mobs, instead of when a new unvisited room has been reached.
      • IE {"a thief on a leaf", "a dracnari hunk", "a dracnari dreamer"}

The README was updated with full information.