> For the complete documentation index, see [llms.txt](https://changelog.matrixemulator.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://changelog.matrixemulator.com/welcome/server/muserver/data/move/gate.md).

# Gate

<mark style="color:green;">Registry of all server gates—defines where a gate leads, who can use it, and the destination area. It serves as the foundation for nearly every teleportation system (town return,</mark> <mark style="color:green;"></mark><mark style="color:green;">`/reset`</mark><mark style="color:green;">,</mark> <mark style="color:green;"></mark><mark style="color:green;">`/mreset`</mark><mark style="color:green;">, Castle Siege, events,</mark> <mark style="color:green;"></mark><mark style="color:green;">`Move.txt`</mark><mark style="color:green;">'s</mark> <mark style="color:green;"></mark><mark style="color:green;">`/move`</mark> <mark style="color:green;"></mark><mark style="color:green;">command, etc.).</mark>

<table data-search="false"><thead><tr><th>Column</th><th>Accepted Values</th><th>Description</th></tr></thead><tbody><tr><td>Ind</td><td>Number, one per gate</td><td>Identifies the gate. This is the number referenced by other files (<code>DefaultClassInfo.txt</code>, <code>MuCastleData.dat</code>, <code>ReiDoMU.dat</code>, <code>TvTEvent.dat</code>, <code>Move.txt</code>, etc.).</td></tr><tr><td>Flag</td><td>Number</td><td>Present in the file, but <strong>not used anywhere in the server</strong>—a dead column.</td></tr><tr><td>Map</td><td>Map number</td><td>Destination map of the gate.</td></tr><tr><td>X / Y</td><td>Coordinates</td><td>One corner of the destination area.</td></tr><tr><td>TX / TY</td><td>Coordinates</td><td>Opposite corner of the destination area—the character arrives at a random point within the rectangle defined by these two corners. <strong>This same area is also used to determine whether a character is physically standing on the gate's location</strong> (within a margin of 5 tiles) when required by game logic.</td></tr><tr><td>TargetGate</td><td>Number corresponding to another <code>Ind</code> in this file, or <code>0</code></td><td>If set, this gate becomes merely an "alias": the actual destination is taken from the referenced gate (<code>Map</code>/<code>X</code>/<code>Y</code>/<code>TX</code>/<code>TY</code>/<code>Dir</code> of this gate are completely ignored). <code>0</code> = use this gate's own data.</td></tr><tr><td>Dir</td><td>Number from 0 to 7</td><td>Character's facing direction upon arrival.</td></tr><tr><td>MinLevel</td><td>Number, or <code>-1</code></td><td>Minimum level required to use the gate. <code>-1</code> = no minimum.</td></tr><tr><td>MaxLevel</td><td>Number, or <code>-1</code></td><td>Maximum level allowed to use the gate. <code>-1</code> = no maximum.</td></tr><tr><td>MinReset</td><td>Number, or <code>-1</code></td><td>Minimum reset requirement. <code>-1</code> = no minimum.</td></tr><tr><td>MaxReset</td><td>Number, or <code>-1</code></td><td>Maximum reset limit. <code>-1</code> = no maximum.</td></tr><tr><td>AccountLevel</td><td>Number</td><td>Minimum account level (Free/VIP1/VIP2/VIP3) required to use the gate.</td></tr></tbody></table>

### <mark style="color:yellow;">Notes</mark>

* Magic Gladiator, Dark Lord, and Rage Fighter only require **two-thirds of the gate's `MinLevel`** (rounded down), except when entering Swamp of Calmness or when this behavior is disabled in the server's general configuration.
* When `TargetGate` is set, editing the `Map`/`X`/`Y`/`TX`/`TY`/`Dir` values of **this** gate has no effect—the actual destination is always taken from the referenced gate.
* The `MinLevel`/`MaxLevel`/`MinReset`/`MaxReset`/`AccountLevel` restrictions are only enforced by the system using the gate (for example, `Move.txt`)—`Gate.txt` by itself does not universally block travel in every use case.
