> For the complete documentation index, see [llms.txt](https://tutorials.wow-jack.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tutorials.wow-jack.com/quest-manager/events/execute-lua.md).

# Execute LUA

{% hint style="info" %}
Use this event if you want to execute one or more [official](https://wowpedia.fandom.com/wiki/World_of_Warcraft_API) and/or custom LUA commands.
{% endhint %}

{% hint style="info" %}
This event is also available in other application areas of Jack.

[You can find a more detailed description of this event here.](/event-manager/events/execute-lua.md)
{% endhint %}

{% hint style="warning" %}
No automatic path is generated for this event.

[Use the Stopover event beforehand.](/quest-manager/events/stopover.md)
{% endhint %}

***

<div align="left"><figure><img src="/files/q4ph3SZu0sy7zzRDV3EV" alt=""><figcaption></figcaption></figure></div>

#### Name your LUA command

* Enter a name for your LUA command.

#### Show custom commands

* Click on "Show custom commands" to open Jack's custom commands list.

{% hint style="info" %}
[Learn more about custom LUA commands here.](/event-manager/events/execute-lua.md)
{% endhint %}

#### LUA Command(s)

* Enter the LUA commands to be executed in the text field (line by line).

{% hint style="info" %}
You can combine [official LUA commands](/event-manager/events/execute-lua.md#official-commands) with [custom LUA commands](/event-manager/events/execute-lua.md#custom-commands) (line by line).
{% endhint %}

#### Can executed while walk

* Enable this option if the commands can be executed while your character is moving.

#### Reloaded expected

* Activate this option if a longer loading time is expected. (E.g. by clicking on a portal or using the Hearthstone.)

#### Test

* Click on the "Test" button if you want to test your commands first.

{% hint style="info" %}
Here you can copy the example from the image:

<mark style="color:yellow;">print(UnitName("player"))</mark>\ <mark style="color:yellow;">/dance</mark>

This will show you in-game your character's name in chat and make your character dance.
{% endhint %}

{% hint style="warning" %}
Custom LUA commands cannot be tested.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://tutorials.wow-jack.com/quest-manager/events/execute-lua.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
