> 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/monster/setbase/000-mapname.md).

# 000 - MapName

## <mark style="color:yellow;">SetBase — Open World Maps</mark>

<mark style="color:green;">Defines which monsters/NPCs spawn on each open world map: position, quantity, and spawn area. Each file in this folder corresponds to a single map and contains its static population—the shop/quest NPCs and the regular monsters that roam the area. It does not include event instance maps (see</mark> <mark style="color:green;"></mark><mark style="color:green;">`Event\`</mark><mark style="color:green;">) or permanent invasion monster copies (see</mark> <mark style="color:green;"></mark><mark style="color:green;">`Invasion\`</mark><mark style="color:green;">).</mark>

<mark style="color:orange;">The filename must begin with three digits followed by</mark> <mark style="color:orange;"></mark><mark style="color:orange;">`-`</mark> <mark style="color:orange;"></mark><mark style="color:orange;">(e.g.,</mark> <mark style="color:orange;"></mark><mark style="color:orange;">`000 - Lorencia.txt`</mark><mark style="color:orange;">). Each file contains one or more blocks, identified by a number (</mark><mark style="color:orange;">`0`</mark><mark style="color:orange;">,</mark> <mark style="color:orange;"></mark><mark style="color:orange;">`1`</mark><mark style="color:orange;">,</mark> <mark style="color:orange;"></mark><mark style="color:orange;">`2`</mark><mark style="color:orange;">,</mark> <mark style="color:orange;"></mark><mark style="color:orange;">`3`</mark><mark style="color:orange;">, or</mark> <mark style="color:orange;"></mark><mark style="color:orange;">`4`</mark><mark style="color:orange;">) on its own line and terminated by</mark> <mark style="color:orange;"></mark><mark style="color:orange;">`end`</mark><mark style="color:orange;">.</mark>

### <mark style="color:yellow;">Section</mark> <mark style="color:yellow;"></mark><mark style="color:yellow;">`0`</mark> <mark style="color:yellow;"></mark><mark style="color:yellow;">and Section</mark> <mark style="color:yellow;"></mark><mark style="color:yellow;">`4`</mark> <mark style="color:yellow;"></mark><mark style="color:yellow;">— Fixed Spawn at an Exact Position</mark>

| Column                | Accepted Values             | Description                                        |
| --------------------- | --------------------------- | -------------------------------------------------- |
| Monster               | Monster/NPC class number    | The entity that spawns.                            |
| Map                   | Map number                  | **No effect** — see notes.                         |
| Range                 | Number                      | Monster movement radius around its spawn point.    |
| PositionX / PositionY | Coordinates                 | Spawn location.                                    |
| Direction             | Number from 0 to 7, or `-1` | Initial facing direction. `-1` = random direction. |
| Comment               | Text after `//`             | Free-form note; ignored by the game.               |

### <mark style="color:yellow;">Section</mark> <mark style="color:yellow;"></mark><mark style="color:yellow;">`2`</mark> <mark style="color:yellow;"></mark><mark style="color:yellow;">— Fixed Spawn with Slight Random Variation</mark>

<mark style="color:orange;">Uses the same columns as blocks</mark> <mark style="color:orange;"></mark><mark style="color:orange;">`0`</mark><mark style="color:orange;">/</mark><mark style="color:orange;">`4`</mark><mark style="color:orange;">, but the final position (</mark><mark style="color:orange;">`PositionX`</mark><mark style="color:orange;">/</mark><mark style="color:orange;">`PositionY`</mark><mark style="color:orange;">) is randomly selected within a 7x7 area around the specified point—chosen once when the server starts, and chosen again (within an even smaller area) each time the monster respawns.</mark>

### <mark style="color:yellow;">Section</mark> <mark style="color:yellow;"></mark><mark style="color:yellow;">`1`</mark> <mark style="color:yellow;"></mark><mark style="color:yellow;">and Section</mark> <mark style="color:yellow;"></mark><mark style="color:yellow;">`3`</mark> <mark style="color:yellow;"></mark><mark style="color:yellow;">— Multiple Monsters Within an Area</mark>

<table data-search="false"><thead><tr><th>Column</th><th>Accepted Values</th><th>Description</th></tr></thead><tbody><tr><td>Monster</td><td>Monster class number</td><td>The entity that spawns.</td></tr><tr><td>Map</td><td>Map number</td><td><strong>No effect</strong> — see notes.</td></tr><tr><td>Range</td><td>Number</td><td>Movement radius for each monster around its individual spawn point.</td></tr><tr><td>PositionX / PositionY</td><td>Coordinates</td><td>One corner of the spawn area.</td></tr><tr><td>TargetX / TargetY</td><td>Coordinates</td><td>Opposite corner of the spawn area—each monster spawns at a random point within the rectangle defined by both corners.</td></tr><tr><td>Direction</td><td>Number from 0 to 7, or <code>-1</code></td><td>Initial facing direction. <code>-1</code> = random.</td></tr><tr><td>Count</td><td>Number</td><td>Number of monsters of this type spawned throughout the area.</td></tr><tr><td>Value <em>(Block 3 only)</em></td><td>Number</td><td>Additional value associated with this spawn group.</td></tr><tr><td>Comment</td><td>Text after <code>//</code></td><td>Free-form note; ignored by the game.</td></tr></tbody></table>

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

* **The `Map`/`Lorencia` column inside the file has absolutely no effect.** The actual map is determined by the three digits in the **filename** (e.g., `000 - Lorencia.txt` will always spawn monsters on map `0`, regardless of what is written in the `Map` column). To move a spawn group to another map, the file must be renamed or moved—editing the column inside the file changes nothing.
* Blocks `0` and `4` behave identically when determining spawn positions. The distinction between them is handled elsewhere in the server and does not affect where monsters spawn.
* `Direction = -1` selects a random direction (0–7) only once, when the server loads the file.
* The same format is used in `Event\` and `Invasion\`, but for different purposes—see the documentation for each folder.
