Reference: MapBarrier.txt

Purpose

Sets up bounding boxes that players are not allowed to enter, pushing them out to the nearest edge if they intrude. This is used to wall off Grunes Tal and Swineland.

Players will rubberband back outside the boundary. Adjacent edges or overlapping boxes may cause some buggy movement along the line between them.

File Format

Resembles INI format with structured blocks.
Comment character: semicolon (;)
Each line is split into tokens using the "=" or "," symbols.

Block Format

Property Parameters Description
Zone Integer Special case. Sets the ZoneDef ID for all entries following this line until another zone is specified elsewhere in the file.
[ENTRY] N/A Begin a new block.
1 Integer,Integer Sets the X,Y coordinates of the top left corner of the bounding box, in game units.
2 Integer,Integer Sets the X,Y coordinates of the bottom right corner of the bounding box, in game units.

How it works

When a player moves throughout the zone, it periodically compares the player's current location against this list. If a player is inside any of these boxes, their position will automatically snap to the nearest edge. It's crude, but mostly works. Could potentially slow down the server if there are too many entries.

Game units are the coordinates present in game when using the /debug command.