Files
ForeverCore/sql
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
..