AutoExec allows you to monitor certain events and react to them through Windower commands. Unlike SpellCast, which allows you to perform commands when you actively do something, this plugin is completely passive and depends on what goes on around you. Examples are alerts for weather changes or automatic changing of macro books/sets when changing jobs as well as various other things.
Events that AutoExec can react to. See the Usage explanations below.
| || Triggers on plugin load and contains resolution and language information.
Languages are: 0 (JP), 1 (NA), 2 (EU)
| ||Triggers on character login.|
| ||Triggers on character login if the name matches.|
| ||Triggers on character logout.|
| ||Triggers on character logout if the name matches.|
| ||Triggers on job change to main/sub.|
| ||Triggers on job change to mjob mlvl/sjob slvl.|
| ||Triggers when the in-game time changes to hr:min.|
| || Triggers when receiving chat from name in the provided mode.
Modes are: say, shout, party, linkshell, tell, emote
| ||Triggers when receiving the status status effect.|
| ||Triggers when the status status effect disappears.|
| ||Triggers when name invites you to join their party or alliance.|
| || Triggers when day changes to day.
Days are: Firesday, Earthsday, Watersday, Windsday, Iceday, Lightningday, Lightsday, Darksday
| || Triggers when the moon changes.
Moon types are: New moon, waxing/waning crescent/quarter/gibbous moon, full moon
| ||Triggers when the moon changes to a certain percentage.|
| ||Triggers when zoning to zone.|
| ||Triggers when leveling up.|
| ||Triggers when leveling down.|
| ||Triggers when gaining EXP by the specified amount.|
| ||Triggers when the EXP chain reaches number.|
| || Triggers on weather change. Append “x2” for double weather only.
Weathers are: Clear, Fire, Fire_x2, Earth, Earth_x2, etc.
| || Triggers when the player status changes.
Statuses are: Idle, Engaged, Resting, Dead, Event
| ||Triggers when player examines you.|
| ||Triggers when the ammo slot empties.|
| ||Triggers when TP reaches percent%.|
|The following events are all defined equally for both HP and MP:|
| ||Triggers when HP is number.|
| ||Triggers when HP hits percent%.|
| ||Triggers when HP is under 20%. This will not trigger again until the player's HP reaches 40%.|
| ||Triggers when HP is under 5%. This will not trigger again until the player's HP reaches 20%.|
| ||Triggers when max HP is number.|
|These are defined for both HP and MP, but at different values:|
| ||Triggers when HP drops below 76%.|
| ||Triggers when HP rises above 75%.|
| ||Triggers when MP drops below 50%.|
| ||Triggers when MP rises above 49%.|
AutoExec can be used with either pre-defined XML files, or directly from within the game through Windower commands (see section Commands for further info). XMLs have the following format:
<autoexec> <!-- Optional number of events or imports. --> <import>something.xml</import> <register event="login_Mymule" silent="false" runonce="false">exec mule_key_bindings.txt</register> </autoexec>
<import> allows AutoExec to read additional XMLs and register their events as well.
register registers an event. Whenever that event triggers, the Windower command specified between the
<register> tags will execute. Additional options are as follows:
| ||None||The event on which this rule should trigger.|
| || || If set to
| || || If set to
Furthermore, all AutoExec events support Wildcard usage.
autoexec <command> [arg1 [arg2 [...]]] ae <command> [arg1 [arg2 [...]]]
| || ||None|| Prints a list of currently registered events to the console. If
| || || None |
|Registers a new event. ID is a unique number to remember it by, so it can be unregistered again afterwards. The events are the same as described above, wildcards enabled. Command is any Windower command.|
| ||As above|