# Alchemy

## start\_alchemy

Starts alchemy

**Usage**

`start_alchemy()`

**Returns**

`True` or `False` if the function succeeded or not

## stop\_alchemy

Stops alchemy

**Usage**

`stop_alchemy()`

**Returns**

`True` or `False` if the function succeeded or not

## reset\_alchemy

Clears the alchemy queue

**Usage**

`reset_alchemy()`

**Returns**

`True` or `False` if the function succeeded or not

## add\_alchemy(dict)

Adds an item to the alchemy queue

**Usage**

```
add_alchemy({
    'type': 'plus',
    'slot': 13,
    'stop': 5,
    'success': 2000,
    'failure': 5000,
    'powder': 0,
    'astral': -1,
    'steady': -1,
    'immortal': -1,
    'lucky': -1,
    'stop_attempt': 100,
    'stop_destroyed': 1,
    'skip_fail': 0
})
```

**Returns**

`True` or `False` if the function succeeded or not

## alchemy\_update(slot, success, plus)

This event is sent to all plugins after an elixir is used on an item.

**Example**

`def alchemy_update(slot, success, plus):`


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://plugins.phbot.org/phbot-api/alchemy.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
