Small AHK bot

10/13/2024 01:39 ♛Wolf♛#1
Advanced AutoHotkey Bot for Last Chaos Fawkes (Multi-Client)

Overview
This script is an advanced AutoHotkey (AHK) bot designed for Last Chaos Fawkes, supporting multi-client functionality. It's compatible with AutoHotkey version 1.0 and aims to automate spell casting and attacks across multiple game instances.

Key Features
  • Multi-Client Support: Can interact with multiple Last Chaos instances simultaneously.
  • Configurable Spell System: Users can define custom spells with specific keys and cooldowns.
  • High-Speed Execution: Utilizes a high key press rate to optimize skill hacks for instant casting.
  • Dynamic Instance Selection: Allows users to choose which game instance to control.
  • Adjustable Timings: Customizable delays for key presses and tab switching.

Core Components

Global Variables
  • Code:
    targetLastChaosHwnd
    : Stores the handle of the selected Last Chaos instance.
  • Code:
    keyPressDelay
    : Delay between key presses (default: 25ms).
  • Code:
    tabDelay
    : Delay between TAB key presses (default: 2000ms).
  • Code:
    isRunning
    : Controls the main loop execution.

Spell Configuration
Spells are stored in a global array
Code:
spells
, where each spell is an object with properties:
  • Code:
    key
    : The key to press for the spell.
  • Code:
    cooldown
    : The cooldown time in milliseconds.
  • Code:
    lastPressed
    : Timestamp of the last activation.

Example configuration:
Code:
spells.Push({key: "6", cooldown: 300, lastPressed: 0})
spells.Push({key: "6", cooldown: 300, lastPressed: 0})
spells.Push({key: "9", cooldown: 600000, lastPressed: 0})
Main Functionalities
  1. Instance Selection:
    Code:
    SelectLastChaosInstance()
    function allows users to choose which game instance to control.
  2. Instance Verification:
    Code:
    CheckTargetLastChaos()
    ensures the selected instance is still running.
  3. Key Sequence Execution:
    Code:
    SendKeySequence()
    manages the spell casting and attack routine.
  4. Main Loop:
    Code:
    MainLoop()
    orchestrates the overall bot operation.

Hotkeys
  • Code:
    F12
    : Toggles the bot on/off.
  • Code:
    Ctrl+Alt+Z
    : Exits the script.
  • Code:
    Ctrl+Alt+1
    : Adjusts key press delay.
  • Code:
    Ctrl+Alt+2
    : Adjusts TAB delay.
  • Code:
    Ctrl+Alt+3
    : Reselects Last Chaos instance.
  • Code:
    Ctrl+Alt+4
    : Adds a new spell to the rotation.

Advanced Usage
  1. Skill Hacks: The bot is designed to work with skill hacks for instant casting. See the video at the end of this post for implementation details.
  2. Customization: Users can modify the spell array to add or remove spells, adjust cooldowns, and change key bindings.
  3. Performance Tuning: The
    Code:
    keyPressDelay
    and
    Code:
    tabDelay
    can be fine-tuned for optimal performance on different systems.

Notes
  • The script uses ControlSend to interact with the game, allowing it to run in the background.
  • Comments (prefixed with
    Code:
    ;
    ) in the script are ignored during execution and can be used for documenting or temporarily disabling specific spells.
  • Users should be aware of the game's terms of service and use this bot responsibly.

Disclaimer
Quote:
This bot is provided for educational purposes only. Users should be aware that using automated tools in online games may violate the game's terms of service and could result in account penalties.
Setting Up Skill Hack for Faster Execution
To maximize the efficiency of this bot, it's recommended to set up skill hack. This will significantly increase the execution speed of your skills. Here's a video tutorial on how to set up skill hack easily:


Generally there are a tons of tutorials out there for a lot of different basic hacks of last chaos, since fawkes don't really have a client Side anticheat system and lot of basic bots and cheat can be easily done with the help of chatgpt or claude :D
10/13/2024 12:51 Mr.Burn#2
How can I run on multiple clients? When I try on 2nd client then I can't use codes. For example then i put Ctrl+Alt+4 both bots open it.
10/14/2024 05:16 ♛Wolf♛#3
Quote:
Originally Posted by Mr.Burn View Post
How can I run on multiple clients? When I try on 2nd client then I can't use codes. For example then i put Ctrl+Alt+4 both bots open it.
just open it twice and he is asking which client he should take
10/15/2024 23:01 Mr.Burn#4
Quote:
Originally Posted by ♛Wolf♛ View Post
just open it twice and he is asking which client he should take
Im trying with ctrl alt f4, my bad. This one working, thank you :) It's possible to avoid drop block when I farm on 2 accounts?