Tribal Wars Bot with GUI and Start/Stop Buttons

Tribal wars bot with GUI and Start/Stop buttons

Author
sharmanhall
Daily installs
0
Total installs
2
Ratings
0 0 0
Version
1.4.5
Created
2025-04-22
Updated
2025-04-22
Size
25.1 KB
License
MIT
Applies to

Tribal Wars Bot with GUI and Start/Stop Buttons

Version: 1.4.5
Author: sharmanhall
License: MIT
Compatible Domains:

  • *.tribalwars.net
  • *.tribalwars.us

🧠 About This Script

This userscript is designed to automate Tribal Wars actions with a fully featured GUI, offering Start/Stop control, real-time logging, and two distinct phases of automation:

  • Phase 1: Automatically queues buildings.
  • Phase 2: Queues buildings and farms villages.

You can customize everything live—from troop configurations and farming targets to delay intervals and build priorities.


🧰 Features

Graphical Interface (GUI):
Easily configure the bot’s behavior without touching the code.

Start/Stop Buttons:
Control the bot manually anytime.

Two Phases of Operation:

  • PHASE_1: Queues next available building (auto builds).
  • PHASE_2: Queues buildings and sends out farming attacks to specified coordinates.

Customizable Timers:

  • Set Min/Max Wait Time (in milliseconds) to vary delay between actions.

Farming Configurations:

  • Input farming village coordinates.
  • Choose from multiple pre-configured troop sets or create your own.

Building Queue Strategy:

  • Use ordered queue (strict build order) or opportunistic (any available upgrade).

Real-time Log Window:

  • Track bot decisions, actions, and any errors.

Draggable, Minimizeable GUI:

  • Compact and portable panel that stays out of your way.

🏗️ Setup (No Coding Required)

Once the script is installed and you're logged into Tribal Wars:

  1. A floating control panel appears at the bottom-left of the screen.
  2. Configure your preferred options:
    • Wait times
    • Bot Phase
    • Farm troop set
    • Farm coordinates
    • Ordered or fast building
  3. Hit Start Bot and let the automation begin!

🔧 Advanced Options

You can also predefine your farming sets and initial configs directly in the script (lines ~50–75):

let FARM_COORDINATES = ['123|456', '234|567'];
let FARM_TROOP_SET = "FARM_TROOP_SET_2";
let PHASE = "PHASE_2";

Define your troop sets here:

let farmTroopSets = {
    "FARM_TROOP_SET_1": { "spear": 10, "sword": 10 },
    "FARM_TROOP_SET_2": { "spear": 15, "axe": 3 },
    "FARM_TROOP_SET_3": { "lc": 8 }
};

🚧 Planned Improvements

  • 🛠️ Better error handling when buttons/targets are missing.
  • 🔔 In-game alerts for critical events.
  • 📊 Smart farming logic (e.g. avoid defended villages).
  • 🏘️ Support for multi-village accounts.

⚠️ Disclaimer

This bot automates game interactions. Use it at your own risk. The author is not responsible for any consequences from using this script, including account bans. Use wisely and ethically.


💬 Support & Feedback

Have a suggestion or need help?
Leave a comment on GreasyFork or reach out directly:
Buy Me a Coffee ☕