# 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.](https://tutorials.wow-jack.com/event-manager/events/execute-lua)
{% endhint %}

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

[Use the Stopover event beforehand.](https://tutorials.wow-jack.com/quest-manager/events/stopover)
{% endhint %}

***

<div align="left"><figure><img src="https://content.gitbook.com/content/Ru6xdzQbPbHLSP4OmeYT/blobs/HUYFbGv49ncgLl3RoivQ/lua-01.png" 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.](https://tutorials.wow-jack.com/event-manager/events/execute-lua)
{% 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](https://tutorials.wow-jack.com/event-manager/events/execute-lua#official-commands) with [custom LUA commands](https://tutorials.wow-jack.com/event-manager/events/execute-lua#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 %}
