Files
Karrz1 69f6f6249c
Ubuntu x64 / build (clang-17, clang++-17, <nil>, 1) (push) Waiting to run
Ubuntu x64 / build (clang-17, clang++-17, ccache, 0) (push) Waiting to run
Ubuntu x64 / build (gcc-13, g++-13, <nil>, 1) (push) Waiting to run
macOS arm64 / build (push) Waiting to run
Windows x64 / build (push) Waiting to run
Bots: hired bots (sellsword brokers) in the bot module, as their own part (Hire/)
The hire brokers were in the world database without their code, so for a server built from this source the
Sellsword Captains, Veteran Recruiters and Black Market Brokers did nothing. Here is the code, as it runs in the
WoW Forever Bots repack, built so it can be left out or replaced:

- Hire/: the brokers' gossip (npc_fb_hire_broker), the contracts (HireMgr), the rules (HirePolicy.h: prices,
  grades, upkeep, who must hire) and HireModule.cpp, which registers them. Hire/README.md explains the grades,
  the Playerbot.Hire.* settings, the commands and how another hire module plugs in.
- HireHooks.h/.cpp and HireTypes.h: the one door between the bot module and hired bots. `.bot add`, `.bot call`,
  `.bot delete`, the Group Finder, companion upkeep, gear and the add-on ask Fleet::Hiring(); without a hire
  module the answer is "no hired bots" and companions are free as before.
- CMake option PLAYERBOT_V2_HIRE (default on). Off: `.bot hire` and the brokers say there are no hired bots.
- `.bot hire [on|off]`, the ForeverBots add-on's hired-bots-only view (ForeverBots_Hire.lua, /fb hire), the
  Playerbot.Hire.* settings in playerbot.conf.dist (Mode 0 = off by default).
- SQL: the 39 brokers and their gossip menu (world, same files as the repack), the contracts table
  (sql/playerbot_v2/0037_hired_bots.sql, applied by the module at start).
- tests/game/ClassicHirePolicy.cpp pins the rules.
2026-11-24 11:30:11 +00:00
..

Playerbot V2 — SQL migrations

Per v2/SCHEMA.md. Migration files in this directory are numbered, append-only, and idempotent. Run by Persistence/PlayerbotMigrationMgr at module init.

For full setup instructions (schema creation, config, world fixes) see v2/INSTALL.md.

Order

Applied in ascending numeric order; each file records itself in playerbot_v2_schema_version. Current set:

  • 0001_init.sql — schema_version + core tables (account, character, personality, preferences, population_target)
  • 0002–0014 — owner/squad control, talent builds, population columns, guild metadata, world metadata, leveling zone, fleet vitals, archetype, craft orders, stuck-objective ledger
  • 0015_name_pool.sql — the curated ~107k-row random bot name pool (playerbots_names), shipped with use-state reset so a fresh install starts with the whole pool available
  • 0016–0017 — talent builds for 12.1, shared-database split
  • 0018_companion_roster.sql — companion_saved on playerbot_v2_character: the owner's saved companion roster
  • 0019_bot_texts.sql — (shared DB) the bots' speech lines and per-key speak chances, carried over from the ike3 build's ai_playerbot_texts
  • 0020_starter_pet_granted.sql — playerbot_v2_character.starter_pet_granted: a hunter companion's starter pet is granted once, never again after its owner abandons it
  • 0022_bot_text_weight.sql — (shared DB) playerbot_v2_bot_text.weight: a line's relative odds within its key, restoring the ike3 lines that 0019's unique key had collapsed
  • 0023_companion_gear_varied.sql — playerbot_v2_character.gear_varied: a companion geared before per-bot gear variety gets one full gear re-roll, then never again
  • 0024_companion_role.sql — playerbot_v2_character.companion_role: a companion's declared role (tank/healer/dps), kept across relog, .bot call and restart
  • 0025_owner_gear_mode.sql — playerbot_v2_owner_gear: the gear mode (match / best / t1 / t2 / t3) an owner chose for their companions, per owner account
  • 0038_owner_language.sql — playerbot_v2_owner_language: the language (en / ru) a player chose for the bots' replies with .bot language, per account
  • 0040_companion_talent_code.sql — playerbot_v2_character.companion_talents: a companion's own talent build, given as a Wowhead Forever talent calculator code (change talents <link>), kept across relog and restart
  • 0041_bot_text_fixes.sql — (shared DB) removes stock lines that read as nonsense or as a bot: the suggest_something line that was only %zone_name, and "dont ask me %s, im just a bot"
  • 0042_bot_text_meta_lines.sql — (shared DB) removes four "not understood" replies that talk about the chat like a program ("getting confused from chat again", "i will attempt to understand that comment", ...)

Discipline

  • Never edit a numbered migration after it ships. Add a new one to amend.
  • Each migration is self-contained: no cross-file dependencies on application order beyond numbering.
  • Reversibility documented in the file header.