# @autopot

{% code title="Format" overflow="wrap" %}

```
@autopot <hp|sp> <item_id> <min_percent_to_trigger> <delay_seconds>
```

{% endcode %}

***

#### Parameters

| Parameter       | Description                                                                        |
| --------------- | ---------------------------------------------------------------------------------- |
| `hp` or `sp`    | Type of healing trigger. Use `hp` for auto healing when HP is low, or `sp` for SP. |
| `<item_id>`     | The Item ID of the healing item you want to use.                                   |
| `<min_percent>` | The minimum HP/SP percentage at which to auto-use the item (e.g. `10` for 10%).    |
| `<delay>`       | Delay in **seconds** before the next use can occur. This prevents spam usage.      |

***

#### Example Usage

To automatically use **Yggdrasil Berry** (Item ID `607`) when your HP falls below **10%**, with a **5-second delay** between uses:

```
@autopot hp 607 10 5
```

**Explanation:**

* `hp`: Triggers when your HP is low
* `607`: Yggdrasil Berry item ID
* `10`: Triggers when your HP falls below 10%
* `5`: Wait 5 seconds before reusing

***

#### Notes

* Works only with items that can be used manually via hotkey or item window.
* The item **must be in your inventory** to function.
* This command **does not bypass item cooldowns or restrictions**.
* **Stacking multiple autopots (e.g., for HP and SP)** is typically supported if your server has it enabled.
* To **disable autopot**, you can retype the command with incorrect or empty values, or use a designated `@autopot off` if your server supports it.

***

#### Common Item IDs

| Item            | ID  |
| --------------- | --- |
| Yggdrasil Berry | 607 |
| Yggdrasil Seed  | 608 |
| White Potion    | 501 |
| Blue Potion     | 504 |
| Strawberry (SP) | 531 |

***

#### Troubleshooting

* If it's not working:
  * Make sure the item is usable manually.
  * Ensure the item ID is correct.
  * You are not under item-use restrictions (PvP maps, disabled states).
  * Check for typos in the command.
