> ## Documentation Index
> Fetch the complete documentation index at: https://docs.rokroyalty.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Resource center: rebuild your alliance center automatically

> Leadership guide to the resource center auto-rebuild. The bot builds a new alliance resource center when the old one runs out and marks it on the map.

<Note>
  This page is for alliance leadership only. Only R4 and above, and heirs, can change the resource center settings. This feature runs on the headless bot, which is a premium product.
</Note>

Your alliance can have one resource center at a time: food, wood, stone, or gold. When it runs out, someone has to build the next one by hand. The resource center auto-rebuild does this for you.

Once you turn it on, the bot:

1. Checks your alliance's resource center every 5 minutes.
2. Builds a new one as soon as the old one is gone.
3. Moves the alliance marker from the old center to the new one, or uses the marker slot you picked.
4. Posts the result in your council chat, for example `Built gold center at 647,604 (marker set)`.

Use it so your alliance always has a center to gather from, even when no leader is online.

## Before you start

* Set your council chat with `!setcouncil` so the bot can post build results. See [Leadership commands](/leadership/commands#in-game-council-chat).
* The **Alliance Resource Center** feature must be turned on for your server.

## What you can set

| Setting | What it does | Default |
| - | - | - |
| **On / off** | Turns the automatic rebuild on or off. | Off |
| **Type** | Which center to build next: food, wood, stone, or gold. | The same type as the last center |
| **Spot** | Where to build, as map X and Y (0 to 1200). | The same spot as the last center |
| **Tiles out** | How far from the spot the bot may look for a free tile, from 0 to 10. | 3 |
| **Marker** | Which alliance marker to put on the new center: the last center's marker, a slot from 1 to 12, or off. | The last center's marker |
| **Marker text** | What the marker says. One line, up to 50 characters. | The last center's marker keeps its own text. A picked slot says `<Type> resource center`, for example `Gold resource center`. |

If the game refuses the spot, for example because it's taken, the bot tries the tiles around it. It starts with the nearest tiles and goes out up to the **tiles out** distance.

After a successful build, the type goes back to "same as the last center". Set the type again if you want to switch next time.

If you or another leader move the center by hand, the bot follows it. The next build goes where the newest center was.

By default, the bot reuses the marker that was on the last center. It moves that marker to the new center and keeps its text, unless you set your own marker text. If the last center had more than one marker, the bot moves the one placed most recently. To use a different marker, pick a slot. To stop marking the center, turn the marker off.

### Marker slots

In game and in Discord, you pick a marker by its slot number. The slots follow the order of the game's marker picker:

| Slot | Marker | Slot | Marker |
| - | - | - | - |
| 1 | Red crossed swords | 7 | Blue moon |
| 2 | Orange paw | 8 | Purple diamond |
| 3 | Yellow burst | 9 | Purple star |
| 4 | Yellow star | 10 | Pink triangle |
| 5 | Green clover | 11 | Green timer (hourglass) |
| 6 | Green shield | 12 | Blue timer (hourglass) |

The app shows the marker icons, so you don't need the numbers there.

## Set it up in game

Type `!rc` in game chat, for example your council chat. The bot answers you by private message.

Use these numbers for the type: `1` food, `2` wood, `3` stone, `4` gold.

| You type | What it does |
| - | - |
| `!rc` | Shows the current center, the next build, the marker, and the last result. |
| `!rc on` | Turns the automatic rebuild on. |
| `!rc off` | Turns the automatic rebuild off. |
| `!rc 4` | Builds gold next. |
| `!rc 4 647 604` | Builds gold next at X:647 Y:604. |
| `!rc last` | Forgets the saved spot and builds where the last center was. |
| `!rc marker 3` | Uses alliance marker slot 3, the yellow burst. |
| `!rc marker 3 Gather here` | Uses slot 3 and sets the marker text to `Gather here`. |
| `!rc marker last` | Reuses the marker that was on the last center. This is the default. |
| `!rc marker off` | Stops putting a marker on the center. |

For example, to rebuild gold at the same spot and mark it in slot 1:

```text theme={null}
!rc 4
!rc marker 1 Gold - gather here
!rc on
```

The bot replies with the saved settings:

```text theme={null}
Saved.
Resource center: On
Now: gold at X:647 Y:604 1,250,000/4,000,000 left, runs out 2026-10-09 18:40 UTC
Next: gold at X:647 Y:604 (same spot as the last one)
Marker: slot 1 "Gold - gather here"
```

## Set it up in Discord

1. Type `/alliance-admin` in your kingdom's Discord server.
2. Pick one of these:
   * **Resource center** to see the current center, the next build, and the last result.
   * **Resource center: set** to change the type, spot, tiles out, marker slot, or marker text.
   * **Resource center: last spot** to build where the last center was.
   * **Resource center: last marker** to reuse the marker that was on the last center.
   * **Resource center: on** to turn the rebuild on.
   * **Resource center: off** to turn it off.

In **Resource center: set**, fill in only what you want to change:

| Field | What to fill in |
| - | - |
| **type** | `1` food, `2` wood, `3` stone, `4` gold |
| **x** and **y** | The map spot. Fill in both. |
| **distance** | Tiles out to try, from 0 to 10 |
| **marker** | Marker slot from 1 to 12, or `0` for no marker. To go back to the last center's marker, use **Resource center: last marker**. |
| **marker-text** | What the marker says, up to 50 characters |

## Set it up in the app

1. Open the **Alliance** tab and select **Resource center**.
2. Select **Turn on** or **Turn off**.
3. Pick the next type, or leave it empty to keep the same type as the last center.
4. Enter a spot, or leave X and Y empty to build where the last center was. Select **Use the last spot instead** to drop a saved spot.
5. Tap the marker icon to use, or tap **No marker**. Enter the marker text. To go back to the last center's marker, select **Use the last center's marker instead**.
6. Select **Save**. The window shows **Saved.** and closes.

## Check the result

Run `!rc`, **Resource center** in Discord, or open the window in the app. **Last result** shows what happened the last time the bot tried to build.

| Last result | What it means |
| - | - |
| `Built gold center at 647,604 (marker set)` | The center is built and marked. |
| `Built gold center at 647,604 (marker failed)` | The center is built, but the marker could not be set. Set it by hand. |
| `Built gold center at 647,604 (no marker found on the last center)` | The center is built, but the bot found no marker on the last center to move. Pick a marker slot, or set the marker by hand. |
| `Could not build the resource center: ...` | The game refused every tile the bot tried. The reason follows the colon. |

After a failed build, the bot waits 30 minutes before it tries again. To try sooner, fix the cause first. For example, pick a different spot or a larger **tiles out**.

## Other replies you might see

* `!rc is for R4 and above.` or `the resource center is for R4 and above`: you're not R4 or above, or an heir.
* `type must be 1 (food), 2 (wood), 3 (stone) or 4 (gold)`: the type number is wrong.
* `spot needs both X and Y, each 0-1200`: give both numbers, each from 0 to 1200.
* `marker text must be up to 50 characters`: shorten the marker text.
* If the bot doesn't understand the command, it replies with the list of `!rc` commands.

## Related pages

<CardGroup cols={2}>
  <Card title="Leadership commands" icon="shield" href="/leadership/commands">
    Set up council chat and other leadership tools.
  </Card>

  <Card title="Shield check" icon="shield-check" href="/leadership/shield-check">
    Check when a governor's peace shield ends.
  </Card>

  <Card title="Activity watch" icon="eye" href="/leadership/activity-watch">
    Track rogue players, shields, and logins on a live board.
  </Card>

  <Card title="King account" icon="crown" href="/leadership/king-account">
    Teleport the King or pass the kingship.
  </Card>
</CardGroup>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.