
Bot tactics
lonelyice.tactics · 1.0.2Gambit-style orders, party window and ability mirroring for the bots in your party, scripted in Lua.
mod-lonelyice-tactics
Final Fantasy XII style gambits for the bots of your party. You give each bot an ordered list of rules ("ally below 50% health -> Flash Heal", "enemy casting -> Kick") and the bot follows the first rule that matches; whatever the rules do not cover is left to the regular playerbots AI.
Features
- Gambits: ordered rules of target, condition and action, unlocked with character level, stored per bot and per leader, with presets.
- Party window (in-game addon BotTactics, "Party"): bags, equipment, outfits, talents and glyphs, roles and behaviour switches, loot rules, quests, reputations, skills, vendor and buyback for every bot.
- Orders and vetoes: one-shot "cast this now", and per-spell rules for the class AI ("never" / "only on").
- AI slider: from plain playerbots behaviour to a utility layer that picks intents (interrupt, protect, save mana) on top of it.
- Ability mirroring: bots repeat what the leader does (pull, crowd control, mount) when asked to.
- All behaviour is written in Lua (
lua/tactics); C++ only runs the scripts, exposes game facts and executes primitive commands. Edit a script and use.tactics reload.
Requirements
- LonelyIceProject/mod-playerbots (external hooks and loot strategy used by this module).
- LuaJIT 2.1 and sol2: set
TACTICS_DEPS_DIRto a folder withluajit/{include,lib,bin}andsol2/include(for example copied from vcpkgluajitandsol2).
Install
This module is written for LonelyIceProject/azerothcore-wotlk, a fork of AzerothCore with runtime plugins, and builds in two ways.
As a plugin (the core built with -DWITH_DYNAMIC_LINKING=ON):
cmake -S azerothcore-wotlk -B build -DWITH_DYNAMIC_LINKING=ON -DWITH_PLAYERBOTS_HOOKS=ON ^
-DAC_PLUGIN_ABI=lonelyice-ac-1 "-DAC_PLUGIN_SOURCE_DIRS=<path>/mod-playerbots;<path>/mod-lonelyice-tactics"
cmake --build build --config RelWithDebInfo
The plugin is laid out in bin/<config>/plugins/lonelyice.tactics/. Copy that folder into the server's plugins folder
(PluginsDir in worldserver.conf); LonelyIce does this for you.
As a classic static module: clone into modules/mod-lonelyice-tactics of the core and rebuild.
Configuration
conf/mod_lonelyice_tactics.conf.dist. Tactics.Enable switches the module; Tactics.ScriptDir points to
the Lua scripts (default: lua/tactics of the plugin, lua_scripts/tactics in a static build).
Client addon
client/addons/BotTactics goes into the game's Interface/AddOns. LonelyIce installs it; by hand:
tools/install_addon.ps1 -Client "<game folder>".
Support
LonelyIce is free, with no ads and no paid features. If it is useful to you, you can buy me a coffee: it pays for the server, code signing and development time.
License
GNU General Public License v2.0 or later, see LICENSE. Part of the LonelyIce single-player project.
Blizzard Entertainment
World of Warcraft®, Warcraft®, Wrath of the Lich King® and Blizzard Entertainment® are trademarks or registered trademarks of Blizzard Entertainment, Inc. in the U.S. and/or other countries.
The game and everything in it belong to Blizzard Entertainment, Inc.: the game client and its program files, data files and archives, maps and terrain, models, textures, art, animations, interface, music, sounds, voices, texts, names, lore, characters, creatures, spells, items, quests and every other part of the game. All of it remains Blizzard's property wherever it appears, including the data a server extracts from your client on your own computer (game tables, maps, collision and navigation data).
LonelyIce is an unofficial, non-commercial fan project. It is not affiliated with, endorsed, sponsored, approved or supported by Blizzard Entertainment, Inc. Blizzard's names are used only to say which game client the project works with.
This repository contains no files from the game client, and LonelyIce neither distributes nor downloads any. It works only with a copy of the game you already own. Keep the data extracted from your client to yourself: it is Blizzard's property and is not ours or yours to share.
The license above covers only the code and files of this project and the works it is based on. It grants no rights to anything that belongs to Blizzard Entertainment, Inc. All other trademarks belong to their respective owners.
In the launcher open Plugins, find Bot tactics in the catalog and install it; changes reach the databases and the client on the next world start. The same from the command line:
Imported from the previous catalog.