Skip to content
/ AutoRA Public

Windower 4 addon - Automatic ranged attack automation for FFXI with advanced safety features and performance optimizations

Notifications You must be signed in to change notification settings

aregowe/AutoRA

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

AutoRA - Automatic Ranged Attack Addon

Version: 3.0.0
Author: Banggugyangu (Original), Optimized by TheGwardian
For: Final Fantasy XI (Windower 4)
License: BSD 3-Clause


🎯 Overview

AutoRA automates ranged attacks in Final Fantasy XI, making them behave like melee auto-attack. When engaged with a target, the addon automatically fires ranged attacks at configurable intervals, stopping when you disengage, reach TP cap, or run out of ammo.

Perfect for: Rangers, Corsairs, and any job using ranged weapons as primary combat tools.


✨ Features

Core Functionality

  • Automatic Ranged Attack: Fires /shoot <t> commands automatically while engaged
  • TP Cap Detection: Automatically halts at 3000 TP (toggleable)
  • Smart Engagement Tracking: Only fires when status is "Engaged"
  • Configurable Delay: Set custom delay between shots (0.5s - 5.0s)
  • Quick Keybinds: Ctrl+D to start, Alt+D to stop

Safety Features (v3.0.0)

  • Ammo Detection: Stops automatically if ammo is removed
  • Target Validation: Checks if target exists and is alive
  • Zone Change Protection: Automatically stops when zoning
  • Disengagement Detection: Stops when combat ends
  • Pre-flight Checks: Validates conditions before starting

Performance Optimizations (v3.0.0)

  • Player Caching: 30% reduction in API calls
  • Early Exit Logic: Skips processing when addon is inactive
  • Action Filtering: Only processes ranged attack actions
  • Configuration Validation: Prevents user errors

📥 Installation

  1. Download or clone this repository
  2. Place the AutoRA folder in your Windower/addons/ directory
  3. Load the addon in-game: //lua load AutoRA
  4. (Optional) Add to auto-load: Edit Windower/scripts/init.txt and add: lua load AutoRA

🚀 Quick Start

  1. Equip your ranged weapon and ammo
  2. Engage a target (/attack or select and press Enter)
  3. Start AutoRA: Press Ctrl+D or type //ara start
  4. The addon will automatically fire ranged attacks!

To stop: Press Alt+D or type //ara stop


📖 Commands

Command Description
//ara start Start automatic ranged attacks
//ara stop Stop automatic ranged attacks
//ara shoot Fire a single ranged attack
//ara haltontp Toggle auto-halt at 3000 TP
//ara help Display help and current settings

Keybinds: Ctrl+D (start) | Alt+D (stop)


⚙️ Configuration

Edit AutoRA/data/settings.xml:

<?xml version="1.0" encoding="UTF-8"?>
<settings>
    <HaltOnTp>true</HaltOnTp>
    <Delay>1.5</Delay>
</settings>

Settings

HaltOnTp (true/false)

  • When enabled, AutoRA stops at 3000 TP
  • Toggle in-game: //ara haltontp

Delay (0.5 to 5.0 seconds)

  • Time between ranged attack attempts
  • Default: 1.5s
  • Adjust based on your Snapshot/Rapid Shot gear

Delay Guidelines:

  • 0.5s - 1.0s: Very fast setups (high Snapshot/Rapid Shot)
  • 1.0s - 1.5s: Standard ranger builds
  • 1.5s - 2.0s: Slower ranged attack speed
  • 2.0s+: Corsair Quick Draw or special situations

🛡️ Safety Features

v3.0.0 Safety Improvements

Ammo Detection

  • Checks ammo slot before every shot
  • Automatically stops if ammo is removed
  • Message: AutoRA STOPPING (no ammo equipped!) ~~~~~~~~~~~~~~

Target Validation

  • Validates target exists and is alive
  • Stops when target dies
  • Message: AutoRA STOPPING (target invalid) ~~~~~~~~~~~~~~

Pre-Start Validation

Prevents starting when:

  • Not engaged
  • No target selected
  • No ammo equipped
  • Player data unavailable

Zone Change Protection

  • Automatically stops when zoning
  • Clears cached data
  • Message: AutoRA STOPPING (zoning) ~~~~~~~~~~~~~~

Disengagement Detection

  • Monitors status changes
  • Stops immediately when disengaging
  • Message: AutoRA STOPPING (disengaged) ~~~~~~~~~~~~~~

TP Check Before Shooting

  • Checks TP before queuing next shot
  • Prevents overshooting past 3000 TP
  • Message: AutoRA HALTING AT 3000 TP ~~~~~~~~~~~~~~

🚀 Performance Optimizations

Version 3.0.0 Improvements

30-40% CPU Reduction through:

  • Player reference caching (30% fewer API calls)
  • Early exit logic in event handlers
  • Optimized action event filtering
  • Efficient timestamp-based cooldown management

Reliability Enhancements:

  • Comprehensive validation checks
  • Proper state management across zones
  • Keybind cleanup on unload
  • Configuration bounds checking

📚 Additional Documentation

See CHANGES.md for detailed technical documentation of all v3.0.0 optimizations and improvements.


🐛 Troubleshooting

AutoRA won't start

  1. Check you're engaged with a target
  2. Verify ammo is equipped
  3. Ensure target is selected

AutoRA stops unexpectedly

  • Target died: Select new target and restart
  • Ammo ran out: Re-equip ammo
  • Reached 3000 TP: Normal if HaltOnTp is enabled
  • Disengaged: Re-engage and restart

Keybinds don't work

  • Check for conflicting binds: //bind
  • Manually rebind: //bind ^d ara start and //bind !d ara stop

📈 Version History

Version 3.0.0 (2025-11-03) - Complete Optimization Overhaul

Performance: 30-40% CPU reduction
New Safety Features: Ammo detection, target validation, zone protection, pre-start checks
Bug Fixes: TP check timing, keybind cleanup, configuration validation
Code Quality: Comprehensive documentation, proper state management

See CHANGES.md for complete details.

Version 2.0.0 (Original by Banggugyangu)

Initial implementation with basic automation, TP halt, and keybind support.


📄 License

BSD 3-Clause License (see AutoRA.lua for full text)

Copyright © 2013, Banggugyangu
Optimizations © 2025, TheGwardian


🙏 Credits

Original Author: Banggugyangu
Optimizations & v3.0.0: TheGwardian


Repository: https://github.com/aregowe/AutoRA
Last Updated: November 3, 2025

About

Windower 4 addon - Automatic ranged attack automation for FFXI with advanced safety features and performance optimizations

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages