Commit Graph
17 Commits
Author SHA1 Message Date
Karrz1 fa476bb2be Bots: register .bot trade, answer the raid reset words, and load ForeverBots_Trade.lua 2026-11-16 17:38:52 +00:00
Karrz1 eb8fff366e Comments name Karrz, not a first name, in this release's code 2026-11-16 17:22:58 +00:00
Karrz1 548a76325e Bots: a soak anchor is never let go as a companion whose owner left 2026-11-15 22:10:27 +00:00
Karrz1 5ddc38f557 Bots: a gear mode chosen while hired bots are on says the bots keep their grade's gear 2026-11-15 21:03:05 +00:00
Karrz1 f3aa1c9cd7 Bots: a bot without full-size bags gets them, so the Onyxia Scale Cloak fits
Only the starter kit gave bags. Four warlocks in chris's raid carried 20
bag slots in all, every one full and none grey, and could not take the
Onyxia Scale Cloak (13 refusals each); the landing breath burnt all four
(dev realm 2026-11-14). The cloak swap now fills the bag slots with
full-size bags (BotSetupPipeline::EnsureBags, which loses nothing) when
the bags are full and hold no grey item, and the gear sweep does the
same once per bot and server run.
2026-11-14 12:46:31 +00:00
Karrz1 67d815ade6 Bots: a refused cloak swap says what fills the bags
A bot with full bags and no grey item cannot take the Onyxia Scale Cloak.
The line now counts the bag items by quality and kind, so the next step
for those bots follows what the bags really hold.
2026-11-14 07:53:43 +00:00
Karrz1 df3d8faec5 Bots: full bags make room for the Onyxia Scale Cloak; log a missing cloak aura
23 of 39 raiders could not put the cloak on because their bags were
full. The swap now gives up the cheapest grey item for it, as a regear
does, and the refusal line says which check failed.

Logs for the cloak aura 22683: the swap line says whether the aura is
on, Shadow Flame logs a player it burns while wearing the cloak (with
whether the cloak is broken), and Player::ApplyEquipSpell logs an equip
spell whose cast failed.
2026-11-14 07:53:43 +00:00
Karrz1 249de55a67 Bots: wear the Onyxia Scale Cloak whenever it is not in the back slot
The cloak rule trusted its own flag: once a swap had been asked for it never looked again, so a
refused swap or a regear that put the bot's own cloak back left it pulling Nefarian without
protection. The rule now checks the back slot, and a swap whose copy is gone is cleaned up and
done again.
2026-11-13 23:53:32 +00:00
Karrz1 e73c987502 Bots: change talents <Wowhead link> learns the owner's own build
Asked on Discord #bot-feedback (Dumpins, 11-12), as ike3 bots' talents order: make the
talents in the Wowhead Forever talent calculator, whisper the bot "change talents <link>"
(or the code alone) and it learns that build.

- Api/TalentCode.h: reads the calculator link or code (class word, "v2" version, the
  "_t0/..." tail skipped), checks it against the class's tabs (talents per tab, ranks,
  5 points per row, 51 points), writes a build back as a code and a link, and gives the
  levelling order (the tab with most points first, row by row).
- ClassicSpec: GetTalentTabs lays the class's three tabs out from the trait data the way
  the calculator does (tabs left to right, rows 600 apart, talents left to right; hidden
  off-grid nodes left out). Checked against the 70862 client data for all nine classes.
  The owner's code per bot (SetTalentCode / GetTalentCode), and InferSpecFromRanks so the
  rotation and role follow the build.
- PlayerbotAPI: apply_classic_talents learns the owner's code instead of our build when one
  is set; the old talents go, the ranks are bought in the levelling order and each new
  level's point goes on down the build.
- BotCommandParser: "change talents <link>" (also "set talents", "talents <link>"),
  "talents link" (the bot's talents as a calculator link), "talents default" (our builds
  again); setspec clears the code. Refusals say why (another class's link, a code that does
  not fit the trees). Russian replies in BotLocaleRu.
- OwnerRegistry + migration 0040: a companion's code is kept across relog and restart.
- .playerbot talentcode <Name> [<link or code> | clear] (GM, console): the class's tabs as
  laid out, sets the code, walks at once and prints the code the bot then holds, so it can
  be tested with world bots and nobody in game.
2026-11-12 14:22:09 +00:00
Karrz1 686df95400 PlayerbotV2: traitcheck no longer asserts on a missing effect index, setup drive pass is round robin
from PR #328 by MShkolenko

(cherry picked from commit 11f5574857442a80e523e356def682911648853a)
2026-11-11 23:38:01 +00:00
Karrz1 312fdf59e4 PlayerbotV2: no hired bots and no bot arenas
The hired bots (hire brokers, Playerbot.Hire.*, .bot hire, the add-on's hire panel) and the bot arena play
(.bot arena, arena bot teams, the add-on's arena buttons and the Ring of Law arena script) are taken out.
Neither is Blizzard content. The stock TrinityCore arena code and the bot module's arena tactics stay.
2026-11-09 17:35:58 +00:00
Karrz1 b5f1d43560 Merge forever (sync with WoW Forever 0.1.34) into forever-bots
forever-bots is forever plus the optional player bots module (src/modules/PlayerbotV2), now at our 0.1.34 bot code:
dungeon and raid tactics (BWL Nefarian, Zul'Gurub), pull back, ships and zeppelins, gear trading, orders in party chat,
autosave every 15 minutes, the ForeverBots add-on 0.6.20 and the Playerbot.Enable master switch.
World PvP bots and the optional bot chat program are in the module but off by default.
2026-11-09 17:27:57 +00:00
Karrz1 9df935eed5 PlayerbotV2: bot module update
conf/zz-forever-bots.conf ships the WoW Forever repack settings: world bots on with the
16-29 GB crowd preset (RssBudgetMb 6000), start zone caps, spawn pacing, and the auction
house bot listing every quality on the neutral house with a fair-price buyer. A
playerbot.conf next to worldserver.conf is read too; one in worldserver.conf.d is not
loaded twice.
2026-10-27 23:06:42 +00:00
Karrz1 911c523267 Bots: a companion its owner removes from the group is let go like a dismissal (#97)
Reason: after its owner used Uninvite on a companion bot, the bot kept following the owner for as long as the owner binding stood.

Why: nothing reacted to the group removal; only .bot dismiss released a companion.

Fix: a group hook releases an owned companion that the owner kicks or that leaves the group: it says goodbye and logs out, and the owner and saved mark stay, so .bot call brings it back. Battleground groups, a bot that is logging out, internal removals and kicks by anyone but the owner do nothing.
2026-10-23 18:55:16 +08:00
Karrz1 956aff2834 Bots: module update (raid tactics, group control, world-bot pool, riding, starter gear, combat fixes) (#71)
* Bots: module update (raid tactics, instance entry, world-bot and combat fixes)

* Bots: module update from the current build (follow-the-owner on drops, group-human instance entry, raid-ready and population fixes)

* Bots: group control, pool balance at every level, starter outfit for low world bots, riding tiers and mount fallback

* World bots: no quest hub for a bot that can take no quest there (#87)

* World bots: no quest hub for a bot that can take none there (ring spot instead); move_abandon logs why the bot did not move

* Starter outfit: wait while the bot casts or fights, and leave quivers and ammo out of the pieces that must be worn

* Bots: seven small cleanups of the bot rules (#88)

* Bots: one OwnerOrders struct holds the owner's orders (command, follow, stance, windows) and the cross-thread fields are now locked

* Bots: one pet attack order per combat tick; drop the warlock and hunter duplicates, new victim ordered at once and the same one every 3 s

* Raids: one script_names_target() test for the boss script's kill target, used by the raid dispatch and both generic pickers

* Bots: idle:rest sits a solo bot under 50% health that has nothing to eat

* Bots: remove the retail rotations of the nine vanilla classes (every spec is already overridden by the Classic rotation)

* Group: one movement_owned_elsewhere test for the follow, slot move and recall gates

* Bots: the threat drop spells and the 60/80 percent triggers live next to the other threat limits in ThreatLimits.h

* Trade: reagents of a recipe the bot knows, from the owner or a group mate, are a gift; trade line in the command guide (#89)
2026-10-20 09:05:38 +08:00
Karrz1 d01d392103 Bots: module update (raid, dungeon, battleground and world-bot fixes) (#61)
Module-only update of src/modules/PlayerbotV2. Nothing outside the module directory changes.
2026-10-18 09:20:47 +08:00
Karrz1 d13cdf728d Add WoW Forever Bots by Karrz (optional, -DBUILD_PLAYERBOT_V2=1, default off)
Imported from Karrz's karrz-bots branch (12a3d94547) on top of forever: the
PlayerbotV2 module, the ForeverBots add-on (/fb), the bot SQL, the core hooks
and API it needs, and the Classic battleground, raid, auction house and road
navigation changes it was tested with.

Left out of this import: the world editor, tests, protocol research and data
generator tools, dev setup scripts, the realm example config, the design notes,
the older PlayerbotControl add-on, and changes to sql/create, the Boost
minimum, and the build revision files. These stay in Karrz's own repository.
2026-10-13 09:21:34 +08:00