> ## Content Index
> Fetch the complete content index at: https://help.kingshot-bot.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# Functions menu
- URL: https://help.kingshot-bot.com/view-main-functions/
- Published: 2026-10-29T21:58:12.000Z
- Updated: 2026-10-29T21:58:12.000Z
- Description: The Functions dropdown on the main window toolbar — one-off actions run directly on your accounts, from connecting them to renaming, relocating, or redeeming a gift code.
- Author: Kingshot Bot
- Tags: Interface

The **Functions ▾** button on the main window toolbar opens a menu of one-off actions you run directly against your accounts, outside of the automation settings. Most entries act on a single account — the one you've checked or clicked in the account list — but a few are built to run across every checked account at once.

![The Functions dropdown menu in the main window toolbar](https://help.kingshot-bot.com/content/images/2026/08/view-main-functions-2.png)

## What you see

The menu is split into groups by a separator:

- **Connect Selected** / **Disconnect Selected** — connects or disconnects every account you've ticked in the account list.
- **Connect All** / **Disconnect All** — connects or disconnects every account in the list, regardless of what's ticked.
- **Rename**, **Relocate**, **Recall Armies** — single-account actions on your currently connected target (the one row you've selected or the single account you've ticked).
- **Join Guild**, **Leave Guild** — alliance membership actions.
- **Random Leaders** — reassigns march formation leaders.
- **Shield ▸** — a submenu offering **2h**, **8h**, **24h**, and **72h** city shields.
- **Redeem Gift Code…** — opens a dialog to redeem a code on one or more accounts.

Most entries are disabled (grayed out) until at least one account is connected; **Redeem Gift Code…** instead requires at least one *ticked* connected account, since it works across several accounts at once.

## What each entry does

| Entry                            | What it does                                                                                                                                                                                                                                                                                                        | Scope                                                                                                                                                                                       |
| -------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Connect Selected**             | Connects every ticked account.                                                                                                                                                                                                                                                                                      | All ticked accounts                                                                                                                                                                         |
| **Disconnect Selected**          | Disconnects every ticked account.                                                                                                                                                                                                                                                                                   | All ticked accounts                                                                                                                                                                         |
| **Connect All**                  | Connects every account in the list.                                                                                                                                                                                                                                                                                 | All accounts                                                                                                                                                                                |
| **Disconnect All**               | Disconnects every account in the list.                                                                                                                                                                                                                                                                              | All accounts                                                                                                                                                                                |
| **Rename**                       | Opens a dialog to set a new in-game name (3-16 characters). Requires a Rename Card in the backpack; fails with an explanation if the name is taken, banned from renaming, or otherwise rejected by the server.                                                                                                      | Single account — unless several are ticked, in which case it opens a multi-rename dialog and renames each one in turn (with a short delay between accounts)                                 |
| **Relocate**                     | Uses a Random Teleporter from the backpack to relocate the city to a random location. Asks for confirmation first, since relocation is irreversible; fails if there's no teleporter available.                                                                                                                      | Single account only                                                                                                                                                                         |
| **Recall Armies**                | Recalls every one of the account's outgoing marches back home, and reports how many were recalled.                                                                                                                                                                                                                  | Single account only                                                                                                                                                                         |
| **Join Guild**                   | Opens a search dialog to find and join (or apply to) an alliance. Blocked below Town Center level 6, when the game itself hides alliance features.                                                                                                                                                                  | Single account — unless several are ticked, in which case you pick one alliance and it's applied to every ticked account, automatically leaving each one's current alliance first if needed |
| **Leave Guild**                  | Leaves the account's current alliance, after a confirmation prompt (irreversible; blocked if the account is the alliance leader).                                                                                                                                                                                   | Single account — unless several are ticked, in which case every ticked account leaves its alliance after one confirmation                                                                   |
| **Random Leaders**               | Reassigns march formation leaders to a random eligible hero for each saved formation preset, reporting how many formations were updated.                                                                                                                                                                            | Single account only                                                                                                                                                                         |
| **Shield ▸ 2h / 8h / 24h / 72h** | Activates a city shield of the chosen duration — from the backpack if you have one, or bought with gems (after showing the price and asking for confirmation) if not. Blocked while a shield is already active, the shield slot is on cooldown, or you have marches out (the game requires marches recalled first). | Single account only                                                                                                                                                                         |
| **Redeem Gift Code…**            | Opens a dialog to redeem one gift code across every ticked, connected account.                                                                                                                                                                                                                                      | All ticked connected accounts                                                                                                                                                               |