Use this event if you want to execute one or more LUA commands.
You can combine official LUA commands with custom LUA commands (line by line).
The official WoW LUA API comes with a bunch of commands and functions that anyone can access and use.
These commands have different execution levels. Most can be executed individually or in combination directly. Others require a hardware event and can only be executed with a mouse click or key press.
Copy the following command into the LUA event text field.
Click on the "Test" button to test the command.
The output in your in-game chat should look like this:
Since this command doesn't really give us anything, we'll build ourselves a little conditional query to check if we have a Hearthstone in our bags:
Also possible as a function:
If a function is passed, it remains until the next reload of the game.
Alternatively, we can trigger commands or a conditional query as a Key Press event by placing a /run in front of it.
Enter commands line by line if you want to execute several in a row:
Click on "Show custom commands" to display a list and descriptions of all custom commands.
To explain the structure, we click on the "WaitForNPC" command on the left.
Name of the command.
Duty Argument.
Optional arguments.
All arguments in square brackets are optional.
Description of the command and what it does.
Description of all arguments and what influence they can have.
Example(s) of correct execution of the command.
We have here a command with 4 arguments. One mandatory and three optional.
First we look for the name or ID of the NPC we want to wait for. We simply take the ID "12345" as an example.
The simplest execution of the command would now look like this:
If we now want to change the maximum waiting time, we extend the command and specify a waiting time of 30 seconds:
We would now like to extend the maximum search radius to 60 yards:
If we assume that we are looking for a dead target, we set the DeadOrAlive argument to "0":
Custom LUA commands cannot be tested.