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.
The migration runner splits statements on every ';' outside a whole-line comment, so the 'ChrRaces id; 0 = any race' column comments cut the first CREATE TABLE in two and MySQL error 1064 stopped the worldserver at start (PR #394).
Bot migrations are numbered in one sequence and 0062 is the last one in use, so 9001/9002 become 0063/0064 (file names, headers and schema_version rows). The conf and the missing-tables warning now point at those migrations instead of a local sql-changes folder.
Adds LocalFauna(): resolves the bot snapshot's nearby enemies through
their creature templates and returns the distinct creature names it
can see (players and critters skipped, capped at 160 chars).
The channel-post detail now ends with "The creatures around you
here: <names>." so the model's "dry joke about the mobs here" speaks
of real ones — without this it joked about creatures its zone does
not have, the same failure VanillaLevelPlaces fixed for zone names.
BotNamePool gains three first-name tiers: curated per-race/sex names from
the new playerbots_race_names table (consumed on spawn, released on bot
delete, orphans reclaimed by ReconcileOnBoot), then the generic
playerbots_names pool, then the existing syllable fallback. CharacterCache
collision checks self-heal taken rows.
BotComposition Pick carries a surname; name hints with a space split into
first name + surname (a hinted surname is never re-rolled).
BotCharacterFactory writes characters.surname in the same transaction as
the INSERT and mirrors it into the character cache, capped at 48 UTF-8
chars like the player path.
Surnames come from playerbots_surnames (whole names) or
playerbots_surname_parts (prefix/suffix compounds that reject degenerate
pairs), chosen by Playerbot.Names.SurnameCompoundChance; whole vs compound
is gated by Playerbot.Names.Surnames.
SQL: 9001 creates the three tables on the shared db (plain `race` column
so Skyborne ids 95/96 fit); 9002 seeds 995 first names, 404 surnames and
551 parts for all races incl. Skyborne. The 9000-series keeps the
community migrations clear of upstream numbering.
Also adds ".playerbot selftest botnames <race> <sex> [n]" to sample the
pool without spawning, and guards "selftest namegen" with IsValidRace /
IsValidGender before calling GetNameGenEntry (sex 3 crashed the client).
2026_11_05_99 (the 11-05 Forever quest restore) deleted the rows of the
classic script files that write through a world. prefix, so every install
since 0.1.30 lost them: Blackrock Depths, Scarlet Monastery, Deadmines,
Shadowfang Keep and Scholomance doors and levers (the Shadowforge Lock no
longer turns the big door), the Emberseer doors, the UBRS, Scholomance and
Uldaman event scripts and the EventAI of 60 creatures including Rajaxx.
2026_11_11_29: a server's own .tele entries on ids 2342-2399 move to free
ids, so the Forever dungeon files no longer stop the worldserver with
"Duplicate entry '2356' for key 'game_tele.PRIMARY'".
2026_11_22_47: the gameobject door lists set the door state (they never
moved a door that sat in its spawn state).
2026_11_22_48: puts back the 353 smart_scripts rows, the lever AINames, the
Stratholme service entrance script, Rajaxx's AIName and quest 5525's
SmartQuest.
SQL only, no code change.
KickPlayer stores it from map-update, world, ban and GM-command paths while
UpdateSessions and IsKickRequested read it, so a plain bool is a data race.
Every access now uses std::memory_order_relaxed explicitly.
OnConfigLoad(true) fires part way through a config reload and nothing
fires after a table reload, so a module (bots) keeps stale copies of
config values or reloaded tables until restart. WorldScript::OnAfterReload
now runs once a .reload command (in game, console or remote) finished
without error, with the full command path such as "reload config" or
"reload creature_template". Nothing listens to it in the core, so no
behaviour change.
Modules that start their own work (bots) need to know whether they may
touch world-thread-only state now or must queue it for the next world
tick. The world thread id is recorded at startup and on each world tick
and compared against the caller. No behaviour change.
GetBossState(id) needs the caller to already know every boss id. Code
outside the instance script (bot modules planning a run) wants all of
them at once, in boss id order. Read only copy of existing data, no
behaviour change.
Blizzard's Battle.net update of 17 November (client 1.60.1.70959). The realm stays on
gamebuild 70707; this row lets bnetserver and worldserver accept the new client
next to the older builds.
Blizzard's Battle.net update of 17 November (client 1.60.1.70959). The realm stays on
gamebuild 70707; this row lets bnetserver and worldserver accept the new client
next to the older builds.
hf-01372 (Karrz): pressing the window key or the minimap button again
and again in a fight printed the line eight times. The wait is now said
once per fight for each wish (open or close), like the tab wait already
was; the flag clears when combat ends. Opening and closing work as
before.
A worldserver.conf from before 0.1.37 has no Pathfinding.PetLiquidCost,
and the pet path filter read it with sConfigMgr on every path of every
player's pet, so each read printed "Missing name ... in config file"
and the console filled with it (0.1.37.1). The other pathfinding keys
(PreferRoads, RoadCost, RoadCostMounted, SlopeCoefficient) were read
the same way on every path of every unit, and Classic.Hardcore on every
resurrection, and Classic.Hardcore was not in worldserver.conf.dist at
all.
All six are World config values now: read once at start (and on
.reload config, except Classic.Hardcore), with at most one warning
each, and the hot paths read the stored value. Classic.Hardcore gets
its entry in worldserver.conf.dist.
Replaces 0151 for 0.1.37.2, on top of the existing Testing the Wells
script (one version only). The wells move to the quest data points
through the Westfall map fit on 44 spawns (the first version fitted on
two NPCs and its Jansen Stead well was 35 yards off, outside its 25
yard reach); the reach is 35 yards. A player who already has that
farm's sample gets no second one and no error. Testing the Wells and
Murloc Gills get their quest map areas (new world SQL _16_16; the
spell script name and the caster target stay as they are).
SIN's Banner of the Fallen rows from his Quest and World Fixes for
0.1.36, unchanged. The quest already exists on our data, so his quest,
addon, level, giver and ender inserts change nothing; his kill objective
99086585 (Headsplitter) is added.
Code by SIN (1amcoff1n). His statements unchanged.
The extra catch-all exploration objective of quest 1699 goes, as SIN
wrote it in his Quest and World Fixes for 0.1.36 (quest 1699 already
completes from area trigger 482).
Code by SIN (1amcoff1n). His statement unchanged.
chris picked SIN's version. Her three-spot pool comes back as it was in
0.1.35 (our 0.1.36 file had deleted two spots, moved the third into the
den and dropped the pool), then SIN's apply.sql runs unchanged and moves
spot 27574402 onto the floor he picked in game.
Code by SIN (1amcoff1n), Ban'ethil Barrow Den spawn fix for 0.1.35.
Most quest chests of the current client give their item as personal
loot (chest data 30). The objective locator only read the legacy loot
id, so bots never found those chests for item objectives.
A Russian client saw Tirisfal NPCs speak English ("Get away from me,
monster!", the paladin trainer's greeting, the Scarlet Convert's "No! No,
no, no!"). The Forever broadcast texts from the beta sniffs had no ruRU
row, and many creature lines and gossip options carry no broadcast text
and had no ruRU locale row either.
Fill the gaps from the Azeroth project (Sakhwoow/WoWForever, GPL-2,
branch forever 637626e): their ruRU sniffs and translations, taken only
where their English matches ours word for word and we had no Russian.
337 broadcast texts, 1214 creature lines, 717 gossip options. Gaps only,
safe to run again.
Seven base-data spawns stood stacked on the spot the event's waves come
from, so the attackers were there before the quest was taken. The
event script summons the waves itself; VMaNGOS has no spawns there.