# 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: 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://tutorials.wow-jack.com/quest-manager/events/execute-lua.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.
