Setting up a server with bots, from a clean machine. Steps 1–5 are required;
step 6 is for an existing server whose world database has drifted and is **not**
part of a fresh install.
`playerbot.conf.dist` referenced this file before it existed. This is it.
---
## 0. What the module needs
Two databases beyond TrinityCore's usual three:
| database | holds | scope |
|---|---|---|
| `characters` (TC's own) | everything keyed to a character guid or account — spawned bots, personalities, preferences, squad presets, guild membership, craft orders, fleet telemetry | **per realm** |
| `playerbot` (new) | realm-independent content — the bot name pool, dungeon route waypoints, nav links, handcrafted roads, generation templates, class/race distributions, talent builds | **shared by every realm** |
The split is not cosmetic. Anything keyed on a character guid cannot be pooled
across realms: character guid 12442 exists on every realm, so those rows would
collide. Conversely, map-derived nav data and generation templates are identical
everywhere, so one copy serves all realms.
The name pool illustrates both halves. The list of names is static and shared;
whether a name is *taken* is per-realm, because character names are unique per
realm. The pool lives in the shared database and each realm tracks its own
consumption.
---
## 1. Build with the module enabled
```
cmake -DBUILD_PLAYERBOT_V2=1 ...
```
Without it `TRINITY_PLAYERBOT_V2` is undefined and the build fails in
`BattleGroundHandler.cpp` / `LFGHandler.cpp`, where `WorldSession::IsBot()` is
called unconditionally but declared only under that macro. If you see
`error C3861: 'IsBot': identifier not found`, this flag is why.