Commit Graph
123 Commits
Author SHA1 Message Date
Karrz1 69f6f6249c Bots: hired bots (sellsword brokers) in the bot module, as their own part (Hire/)
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
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
Karrz1 b441bf74e0 0.1.39: bots and core since 0.1.38 (Naxxramas fights, hunter companions get their pet, dungeon runs, bug fixes) 2026-11-21 17:45:23 +00:00
Karrz1 8e679df0e1 0.1.38: bots and core since 0.1.37.6 (Naxxramas: Patchwerk, Grobbulus, Gothik, Maexxna, Sapphiron; raid healers and tanks; bug fixes) 2026-11-18 21:11:41 +00:00
Karrz1 6f36a6b380 .time day / night: change the sky and the light, not only the clock
The client takes the frozen clock in the middle of a session (its clock
shows 12:00) but does not light the world again from it, so the sky
stayed as it was until the next login. Put a fixed light over every
area light of the map with SMSG_OVERRIDE_LIGHT, the packet scripted
events use to darken a zone: Light 15377 (daylight) or 16854 (night),
two Forever client lights with a single keyframe that look the same at
any hour. .time auto gives the map its own lights back.

Sent on .time and on every map entry, open world maps only (a dungeon
keeps its own light). A zone's scripted light still wins, and when it
ends, a player with their own sky goes back to it, not to the map's
light. The idea and the two lights come from SIN's Personal Day and
Night pack (0.1.35); written as our own on top of the day cycle.
2026-11-16 19:57:06 +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 01e37d09ae Bots: a companion answers its player's guild invite
0141 did not do it: Chaelanna, grouped with her player, had the invite
pending and never ran idle:guild_invite_accept. Every "idle:guild_"
rule counts as a world errand, and world errands are skipped for a bot
led by a player, so the accept rule never reached its gate. Accepting
an invite takes the bot nowhere; it is no errand now.

IsWorldErrand moves to Bot/IdleRuleErrands.h so a Catch2 case can check
the list.
2026-11-16 17:04:30 +00:00
Karrz1 15d127278c Bots: supplies the owner hands over are a gift, not bought
Five Brilliant Mana Oil traded to a healer bot by its player were
answered with "i'll give you 10s for that": only gear upgrades, gear
for later levels and recipe reagents counted as gifts. A potion,
elixir, flask, food or drink, weapon oil or stone, or bandage the bot
can use itself is now a gift from its owner or a group mate too.
Strangers still sell it at the fair price.
2026-11-16 16:35:31 +00:00
Karrz1 87c9dc685c PlayerbotV2: raid healers put Brilliant Mana Oil on their weapon
Healer bots never used a weapon oil: the damage casters get Brilliant
Wizard Oil, and the healers' pick named in its comment did not exist.
Brilliant Mana Oil (20748) gives +12 mana every 5 s and +25 healing for
30 minutes, about 720 mana over a 5-minute boss fight, a tenth of a raid
healer's pool. Nefarian 11-14: ten healers at 18% mana when he landed.

The healer raid kit stocks five (stock only, like the casters' oil and
potions), and idle:classic_weapon puts one on the main hand while it
carries no temporary enchant or under a minute of one. A Restoration
shaman that has the oil, or wears it, puts no imbue on the main hand: a
Rockbiter or Flametongue Weapon heals nothing and would replace the oil.
2026-11-16 12:17:59 +00:00
Karrz1 36316accba PlayerbotV2: Playerbot.Interact.AcceptInvitesFrom picks whose invite a bot takes
Playerbot.Interact.AutoAcceptInvites was parsed and never read: bots took
every invite. Every installed playerbot.conf holds friends_or_higher for
it, so making that key work would have started bots refusing strangers on
every realm. The new key AcceptInvitesFrom (anyone, guild, friends, none)
defaults to anyone, which is today's behaviour. The bot's owner and game
masters are always answered and the bots' own invites are not touched.
Friends are the bot's own friend list (whisper it "addfriend <name>"),
guild is friends plus guild members. A refused invite is declined and
logged.
2026-11-16 10:03:02 +00:00
Karrz1 d70d3ee5b6 PlayerbotV2: bot pickup groups break up again
Two world bots that grouped on their own (idle:invite_nearby_player) stayed
grouped until the next restart: grouped bots counted as tied up, outside
the world cap, the spawner never logged them out and the runtime group
hygiene left every pure-bot group alone, so the grouped count only grew
(GitHub #345).

A group a bot's own invite made is now noted as a pickup group
(Fleet/PickupGroups.h). Its bots count toward Playerbot.World.MaxBots, the
spawner breaks it up once none of its bots is near a player (they are then
logged out like any far world bot), and the group hygiene breaks it up at
the end of its 10 to 20 minute life. Never while a member fights, is being
teleported or is in an instance, and a group a player joined is his.
The [world] line counts pickup_groups and how many were broken up.
2026-11-16 09:57:46 +00:00
Karrz1 47281587b9 Tests: the raid scenario count checks Kel'Thuzad's own scenario too 2026-11-15 23:51:03 +00:00
Karrz1 14c4d76338 Bots: raid healers count the damage a patient takes while a heal casts
The heals-in-flight check only knew the melee swings of the mob whose
victim the patient is. Patchwerk's Hateful Strike, breaths and volleys
never show there. On Patchwerk the off tank at 63% had one Greater Heal
on the way (4058, 2.4 s to land) for 3980 missing; eight healers left
him to it and he kept dropping while it cast.

Each grouped player inside an instance now has a measured damage taken
per second (decayed over about 3 s, from the hits that land). The
deficit a heal in flight has to cover is the missing health plus the
damage until the first heal lands: half the swings or the measured
rate times the time to land, whichever is more. The projected health
uses the same. The [raid_heal] "leaves ... to heals in flight" line
shows missing, swings and the damage until it lands.
2026-11-15 11:38:23 +00:00
Karrz1 485d311339 PlayerbotV2: tank leads in a raid, and stops before each boss
"lead on" (the Orders tab's Tank leads button) was refused in every raid
group, "lead off" too, so each click of the button printed the refusal
again. A raid group on a raid map is now led: its main tank (the raid
frame's Main Tank mark, else a tank bot of the player's) leads the trash
pack by pack, with the same waits as in a 5-man (mana, the dead, the
player inside and within 60 yards) and the same pause and "go".

Before every boss the tank stops where it would pull from and says
"the boss is next: pull it when you are ready, or say go". The player
pulls it himself, or says "go" and the tank pulls it through the usual
gates. The stop ends once the boss fight is on, so after a wipe the
tank stops at the same boss again. Only the main tank says the waits.

A party that is not a raid group on a raid map is still not led (it
follows its owner there); "lead on" says to convert it to a raid first.
The addon button counts a raid as inside for the lead's end, and its
tooltip says what the raid lead does.
2026-11-14 12:44:52 +00:00
Karrz1 ad6bd2f1cc Day and night: a realm-wide sky speed and a sky of your own
Forever.DayCycle.Speed (worldserver.conf, default 1) makes the sky run
1x (the realm's clock, as before) up to 24x for the whole realm. The time
of day shown is worked out from the realm's local time alone, so every
player sees the same sky, also after a restart. Only the sky changes:
events, resets, respawns and scripts keep the realm's own time.

.time day and .time night keep noon or midnight for one character,
wherever it goes, and .time auto brings the realm's sky back; .time says
which one is set. Every player may use it (permission 1000, Role:
Player). The choice is kept in character_day_cycle, loaded with the other
login queries and saved with prepared async statements, and goes when
the character is deleted.

The clock is sent at login and at every map change, as before, and right
away by .time. The pure part (DayCycle.h) has unit tests.
2026-11-14 09:08:43 +00:00
Karrz1 236158fad9 PlayerbotV2: Stay / Follow pause the tank lead, "go" goes on
chris: Stay and Follow should pause the lead, not end it, and "go" picks
it up again.

- stay, hold, follow and come (typed, whispered or the panel buttons and
  keys) pause a running lead once for the group and tell the owner to say
  go; the order itself works as before
- "go" alone (also the Russian "вперед" / "го") resumes a paused lead;
  it is the lead's word only while the lead is on or paused, otherwise it
  stays chat
- the Lead button turns blue when Follow, Stay or Come is pressed
- Russian text, docs and tests
2026-11-14 08:49:57 +00:00
Karrz1 1c64802e46 PlayerbotV2: tank leads the dungeon (lead mode for 5-man runs with a human)
The bot tank walks the route, pulls pack by pack, waits for mana and for
the player, and goes boss to boss while the player follows. Turned on by
the Tank leads button in /fb or .bot lead on|pause|off.

- lifts the human-lead hold, auto/defensive passivity and the missing
  mana gate while the lead is on
- holds the advance while the player is dead, away (>60 y) or off map
- tank callouts: waiting for mana / waiting for you
- lead ends 10 s after the party leaves the dungeon
- Russian text for all new lines
2026-11-14 08:49:57 +00:00
Karrz1 2d489cfe7b Raid: a big raid talks like a crowd of players
A group over 15 was silent for all of the bots' own chatter, so a
40-man raid only ever heard the callouts and the leader's word on a
mistake. Now it has one shared voice (Playerbot.Raid.Talk, 0 off,
1 normal, 2 chatty; Bot/Raid/RaidVoice.h):

- the bots' own chatter (loot, a death, a ready check, a rez, a new
  zone) is back, one line for the whole raid every 30 s (15 s chatty)
  and one per bot every 2 minutes, in raid chat;
- after a kill one to three bots say gg / grats and a few cheer;
- after a wipe one or two talk on the run back and the leader calls
  the rebuff;
- between pulls somebody says something about every 2 to 3 minutes;
- the leader explains a boss when a player walks up to it (Molten
  Core, Onyxia, Blackwing Lair), and again after a wipe on it.

With the bot bridge answering chat the program may word these lines
(raid_line events with new moment words), never the boss briefs.

New callouts: a raider calls the breath hide (Chromaggus), dropping
Flame Buffet stacks (Firemaw) and a tranq or purge on a boss. The same
sheep or tranq on the same target is called once for the raid:
four mages each said "Polymorph on Carmina" within 11 s on Nefarius.

Russian lines for all of it; tests for the gates, lines and briefs.
2026-11-14 08:11:11 +00:00
Karrz1 b918b22629 Merge forever (0.1.37) into forever-bots 2026-11-16 17:36:16 +00:00
Karrz1 e29b5b1438 Pets: a hunter pet swings at 2.0 s and keeps its wild speed through a Faster / Slower Attack passive
The 1.60 client has ten hunter pet passives (skill line 270): Faster
Attack I-VII (+17 .. +100% attack speed) and Slower Attack I-III (-17,
-20, -26%). On a 2.0 s pet they give exactly the common wild speeds,
1.7 .. 1.0 s and 2.34 .. 2.52 s. Our pets kept the beast's wild speed
as their base swing time instead, so the pet frame showed a raw speed
and no passive.

A hunter pet now has a 2.0 s base swing and learns the passive nearest
to its beast's wild speed (by ratio; 0 or 2.0 s: none) as a family
spell, so it is not saved and comes back on every summon. Attack power
still counts per second of the wild speed, so a pet's damage per second
is what it was: Frenzy and other haste still add to it.

Dev world DB 11-16, tameable beasts by wild speed: 2.0 s or none 11110,
1.5 s 275, 1.0 s 38, 3.0 s 37, 1.3 s 33, 1.2 s 17, 1.4 / 1.6 / 2.4 s 16
each. The 3.0 s beasts (and a few odd ones) take the nearest step, so a
3.0 s pet swings at 2.52 s now.

Idea from the Everlake core (GPL), written as our own code; the credit
is in NOTICE.md.
2026-11-16 12:18:56 +00:00
Karrz1 16705c7c90 Realm loopback test: with a localAddress the stock pick is either realm address 2026-11-14 12:02:52 +00:00
Karrz1 9c19986d28 Realm: 127.0.0.1 for a local game only when the world server is on this PC
Since 0.1.30 a game on the auth server's own PC always got 127.0.0.1 from the
realm list, so a VPN that was on when the server started could not break the
login. With the auth server on one PC and the world server on another, that
sent the game to a PC with no world server and the login failed.

Now a loopback client gets 127.0.0.1 only when the realm's address or
localAddress is this PC, or when something listens on 127.0.0.1 at the
realm's port (the VPN case: the address is gone but the world server still
listens here). Otherwise the realmlist addresses are used as before 0.1.30.
The port check is kept for a minute per port.
2026-11-14 11:55:25 +00:00
Karrz1 91fb7c8f74 Spells: Forever.VanillaAoE puts Consecration and Improved Blizzard back to vanilla
WoW Forever reworked both spells. Consecration ticks a small hit on every
enemy plus a bigger hit the text gives only to the first 4 (rank 1: 2 + 4 a
second, vanilla 8). Improved Blizzard chills 15 / 25 / 40% where vanilla
chilled 30 / 50 / 65%.

New worldserver.conf switch Forever.VanillaAoE, default 0 (the Forever
spells, nothing changes). With 1:
- Consecration: each tick hits every enemy in it for the vanilla tick
  (8 / 15 / 24 / 35 / 48, so 64 to 384 over 8 sec) with the same 0.042
  spell power a tick (about 33% over the 8 ticks). Mana is vanilla already.
- Improved Blizzard: the Chill takes the vanilla amount of the same rank.
- At startup the client gets the matching rows (tick values, the five
  Consecration mana rows, curve 83071), so tooltips show the vanilla numbers
  and a client with Blizzard's live cache stops showing 73 mana. The server's
  own spells are built before this and are not touched.

The numbers live in the pure header ClassicVanillaAoe.h, checked by
tests/game/ClassicVanillaAoe.cpp ([ClassicVanillaAoe]).
2026-11-14 09:36:59 +00:00
Karrz1 edcd627657 Pets: Move To works like Stay at the clicked spot
After the pet bar's Move To a pet never fought again until it was dismissed
and called back: PetAI only knew Stay and Follow, so it sent the pet home on
the next update and refused every target, even an explicit Attack. Move To
now counts as Stay at the new spot everywhere the code checked for Stay (pet
AI attack, chase and return, catch-up and travel parking, resurrect, possess),
and the handler stores the clicked spot as the stay position (the spline had
not started yet, so it saved where the pet stood). Test: PetStayCommand.

From buildthehomelab/wow-trinitycore-everlake, commit 5ad51b11b, by Bob (GPL-2.0). Thank you!
2026-11-14 09:36:57 +00:00
Karrz1 b47e6dfed1 Handle Classic instance reset intervals on calendar boundaries - regression coverage
From KylRikul/TrinityCore, commit b46cfb945f, by KylRikul (GPL-2.0). Thank you!
2026-11-14 08:07:57 +00:00
Karrz1 d41b7aaca0 test: cover charged modifiers and legacy proc controls
From KylRikul/TrinityCore, commit c9e88b7058, by KylRikul (GPL-2.0). Thank you!
2026-11-14 08:07:57 +00:00
Karrz1 218f2c1681 test: cover native proc charge event filtering
From KylRikul/TrinityCore, commit d626ff38e7, by KylRikul (GPL-2.0). Thank you!
2026-11-14 08:07:57 +00:00
Karrz1 ff51af8729 test: cover Scatter Shot cancellation of Auto Shot
From KylRikul/TrinityCore, commit fbcf12ae0a, by KylRikul (GPL-2.0). Thank you!
2026-11-14 08:07:57 +00:00
Karrz1 ae1a595ce3 test: add isolated real map fixture for spell lifecycle checks
From KylRikul/TrinityCore, commit f5edcd618a, by KylRikul (GPL-2.0). Thank you!
2026-11-14 08:07:57 +00:00
Karrz1 51b5ae0971 Merge forever (0.1.36 test list) into forever-bots 2026-11-13 22:01:01 +00:00
Karrz1 e6399e4fcb Tests: the talent code test needs the bot module
ClassicTalentCode.cpp includes the module's TalentCode.h, so a core build without the
module skips it like the other module-only tests.
2026-11-13 22:00:59 +00:00
Karrz1 cc989382c6 Merge forever (0.1.36) into forever-bots 2026-11-13 21:50:10 +00:00
Karrz1 0683240cd4 Transmog: armor changes are saved again
The Classic 1.60 client sends every outfit slot and slot option when an outfit is saved: 45 entries (15 TransmogOutfitSlotInfo
and 42 TransmogOutfitSlotOption rows, client data 70888). CMSG_TRANSMOG_OUTFIT_UPDATE_SLOTS still read at most 30, the retail
count, so the whole save was refused before the handler ran: no gold taken, nothing saved. Weapon-only changes still worked,
armor changes did not. The packet now takes 45, and the server logs an error at startup if the client data ever gives more
slots than the packet takes.

Found by the 0.1.35 armor transmog fix sent to Karrz (outfit-45.patch, base 82990bd8).

(cherry picked from commit 7dfb09260e9cfe8fe97d8f180f40ed88277b7f57)
2026-11-13 11:22:57 +00:00
Karrz1 8b4422e490 Spells: Revive no longer crashes the server
A spell whose target type is "an ally's corpse" (TARGET_CORPSE_TARGET_ALLY)
asked for no explicit target unless its SpellTargetRestrictions row said so.
Druid Revive (437138, and 1237948-1237951) and Reintegration (430318) have no
such row, so the server dropped the dead player as the target, and when the
cast finished it hit the assert in SelectImplicitTargetObjectTargets: the
world server went down on every Revive (report and crash dump from the
#bug-reports thread, 2026-11-12). The target type itself now asks for an
ally corpse or an unreleased dead player, as the other resurrections do.

New test CorpseTargetExplicitMask (new file: cmake reconfigure needed).

(cherry picked from commit 5486906812844dfe48c2967692ee954573008dea)
2026-11-13 02:23:30 +00:00
Karrz1 26ae994422 Guild charters keep the whole guild name
The classic client sends the charter title with an 8 bit length, as the
server's own charter query reply does. The server read 7 bits, dropped the
last bit and so kept only half the name: "Knights of Valor" (16) became the
guild "Knights " (8). Reported in #bot-feedback.

New test PetitionBuyLayout (needs a cmake reconfigure for the new file).

(cherry picked from commit 6bef18515d5e4af999c1f512e37fe85ae3117e27)
2026-11-13 02:17:45 +00:00
Karrz1 db7a313d94 Bots: talent links of Wowhead's current Forever trees; bot builds keep the row rule
Checked against Wowhead (T4, 11-12): its Forever calculator writes the tree version as a
word now ("vkndmh"), and moves an older "v2" link to it. It then dropped talents from the
links our bots printed, because the bots held talents in rows their own tab had not opened
(an Arms warrior's Anger Management on 9 Arms points, a mage's Arcane Subtlety with no point
in the top row). The Forever trait data opens a row by the points of all three tabs, so the
game let our builds through; a player's talent frame and Wowhead do not.

- TalentCode: reads "v<word>" as well as "v<digit>" in front of the code; links are written
  with the current version ("vkndmh...<code>_t0") so they open as they are; RowsOpen checks
  the talent frame's row rule (5 points per row above, same tab).
- PlayerbotAPI: the talent walk keeps that rule for our builds too
  (Playerbot.ClassicTalents.RowsPerTab = 1, new; 0 = as before), and always for a code the
  owner gives. A bot that holds a build which breaks it is walked once more.
- Tests: the vkndmh links, and the bot builds Wowhead dropped talents from.
2026-11-12 17:04:11 +00:00
Karrz1 a799ec37ec 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 d5a8027379 Bots: sell soulbound gear they have outgrown
A bot kept every soulbound piece it ever replaced (old quest rewards,
dungeon drops, the old weapon). They cannot go to the auction house or
be traded, the equip rule never puts them back on, and they filled the
bags until the bot could not loot.

A vendor visit, and the bag clearing a bot does with no vendor near, now
also sells such a piece when it is outclassed in every slot it could go
in: each holds a piece of the same kind (no two-hander against a
one-hander) that scores at least 5% higher for the bot's class and spec
and has at least its item level. An empty slot or a close call keeps it.
Never epics, quest or account-bound pieces, a piece still tradeable to
the group, shirts or tabards, and nothing while resistance gear or the
Onyxia cloak is worn or inside an instance.

Playerbot.Behavior.SellOutclassedGear (default 1).
2026-11-12 09:21:30 +00:00
Karrz1 89a0da4ea0 Bots: "accept" also takes quests that start from an item in the bags
A bot that loots a quest starting item (a letter, a head, a wanted note)
already took that quest by itself after a few seconds. Now the owner's
"accept" (and the AI bots bridge's accept) takes it at once as well, from
the item, the way a player right-clicks it, and says so. A refusal gets
its reason like any other accept. The snapshot keeps the item's guid so
the accept can name the item as the quest giver.

Quest objects (wanted boards, chests that give quests) were already in
the bot's offers and need nothing new.
2026-11-12 09:21:29 +00:00
Karrz1 6d00bb73ca Bots: say why a quest could not be taken
When a player tells a bot to take a quest ("accept", the AI bots bridge,
or a quest shared with the group) and the server refuses it, the bot
used to go quiet. Now it whispers the reason: level too low or too high,
not for its class or race, the quest before it not done, already done
or in the log, another quest rules it out, daily not reset yet, quest
log full, no bag room for the quest item, giver gone or too far, turned
off on this server. A named quest that nobody near offers gets the same
reason when the bot could not take it anyway.

The reason is the first of the server's own accept gates that fails,
checked without a message to the bot's client. The bot's own questing
stays quiet. Russian lines included.
2026-11-12 09:21:22 +00:00
Karrz1 852c3ff582 Merge forever (0.1.36) into forever-bots 2026-11-13 10:55:56 +00:00
Karrz1 ac7d9cfb62 Merge forever (a Bane and a Curse stand on one target together) into forever-bots 2026-11-12 04:34:29 +00:00
Karrz1 aa3ec68731 Warlock: a Bane and a Curse stand on one target together
azeldof (Discord, 11-09): Bane of Agony and Curse of Weakness pushed
each other off the target. The Forever client renamed Curse of Agony and
Curse of Doom to Bane, and the tooltips say so: the 7 Bane spells read
"Only one Bane per Warlock can be active on any one target", the 23
Curse spells read "Only one Curse per Warlock". The core only knew the
Cataclysm Bane of Havoc (80240) as a bane; every other bane dispels as a
curse and so fell into the curse group, one per warlock per target.

Bane of Agony 980/1014/6217/11711/11712/11713, Bane of Doom 603 and
Forever's Bane of Havoc 1225228 are now banes. Two banes still replace
each other, and two curses still do.

This reverses the 10-26 rule (afb14d2c8c) that made 603 and 980 curses
as vMaNGOS does: that is the vanilla rule, the Forever client's own
tooltips draw the line between Bane and Curse. The ClassicAuraExclusivity
test changes with it: the banes are SPELL_SPECIFIC_BANE, a bane and a
curse are not exclusive, two banes and two curses are.

The warlock bot rotation already counted on this (its raid curse and
Bane of Agony are cast side by side), so raid warlock bots keep both.
Not seen in a test yet.

(cherry picked from commit 73df44d7b112e4e92f0e699f99b768640ecc946e)
2026-11-12 04:31:39 +00:00
Karrz1 964a8bf8b6 Bots: the world chatter, channel and guild lines in the reader's language
A Russian client read the bots' replies to it in Russian, but everything the bots say among themselves arrived in English
(Discord, fox: "in the group they answer in Russian, between themselves they speak English"). Two causes:

- The stock chatter lines (playerbot_v2_bot_text, migration 0019: suggest_*, taunts, loot and kill lines, replies, emote
  answers) had no Russian at all. RussianChatterEntries now carries a Russian line for each one the bots speak, written with
  the database's own placeholders; Catalog::AddChatter turns them into templates. Placeholders filled with a chat link, a
  number, money or a name become narrow captures, so a short line ("got %item_link", "hey %s") never takes an unrelated line
  that only starts the same way. The LFG calls and whispers (ChannelTalk) and the guild small talk (GuildRules) are added to
  the code catalog, with the faction and reputation words the chatter names.
- Channel lines (General, Trade, LookingForGroup) went out through Channel::Say and guild lines through
  Guild::BroadcastToGuild, one text for every member. Both gain an overload that takes the text per member, with the same
  checks and one packet per distinct text; BotLanguage::ChannelSay / GuildSay give each member the line in their language.

Item, zone, instance and creature names stay as the server has them. Unit tests: every chatter line keeps its placeholders,
sample lines, and short lines that must stay English. `.playerbot langprobe <line>` shows the Russian a running build gives.

(cherry picked from commit 27d6ec820804089f399802e98e155ed9fe76c72f)
2026-11-12 00:47:01 +00:00
Karrz1 b065962f8d ZG: scenarios for the four Edge of Madness bosses
Gri'lek, Hazza'rah, Renataki and Wushoolay had fight scripts but no
scenario, so none had ever been run. The instance brings out one a lockout
(the Brazier of Madness, game events 29-32), none has a creature row, and
the instance's own summon is off (SpawnRandomBoss, as in VMaNGOS). Each
run now summons its boss at the spot that summon used, in front of the
brazier (-11901.45, -1906.34, 65.37), the way zg_arlokk summons Arlokk.

sweep-zg.ps1 runs all thirteen ZG bosses by default.

(cherry picked from commit 34ea42653b7c68bc96dd7dfe5f049b3e0affa53c)
2026-11-11 23:44:09 +00:00
Karrz1 8d2d35a955 Raid: a raid leader bot who reacts to mistakes, and wipe banter
In a raid or party with a real player, one bot leads the chat (the group
leader if that is a bot, else an assistant bot, else the first bot) and
reacts the way a real raid leader does:

- standing in fire or another bad area ("Karrz GET OUT OF IT"),
- a cast nobody kicked ("NOBODY KICKED Shadow Bolt??"),
- a broken crowd control, named when the server saw who hit it,
- an extra pull ("WHO PULLED THAT. adds on Brok").

After a wipe one or two other bots answer: blame, excuses, "my bad" (the
one who died first speaks for himself). The kill gets a "gg".

Playerbot.Raid.Banter: 0 off, 1 mild (teasing, the default), 2 harsh (a
leader who freaks out at every mishap). Game mistakes only, in good fun:
never about the person, never a slur. Rate limited per raid: one line every
20 s (10 s on harsh), the same mistake once in 45 s, the same raider once
in 90 s. In a party of 15 or fewer with PartyBanter on, the wipe and kill
lines stay the companions' own.

No model needed: every line has a fixed form, mild and harsh, with Russian
for Russian clients. With the bot bridge answering chat, a new raid_line
event asks the program for the line in the bot's own words; an answer not
back within 2.5 s is dropped and the fixed line is said, so the raid never
waits. The example program answers it with the main model only, a short
prompt and a few tokens, and its filter still removes slurs whatever the
realm's swearing setting.

(cherry picked from commit d7681e0a2d91d5186d6849804be2a31b874330b8)
2026-11-11 23:44:07 +00:00
Karrz1 a7feec8180 Raid: the player's boss tactics in plain words, kept per boss
"tactics Lucifron: adds first, no aoe, no fear, tank here" in party, raid,
a whisper or a ';' line. The plan is kept for that boss (per account, across
restarts) and the bots follow it every time the boss is in the fight:

- adds first: the damage dealers leave the boss to the tanks while one of his
  adds is up; boss first: they stay on him and the tanks keep the adds.
- no aoe: no spell that hits more than one enemy in that fight.
- no fear / no sheep / no banish ...: that crowd control is not elected and not
  cast in that fight, on top of the owner's standing orders.
- tank here: the tank holding the boss drags him to where the player stood,
  never into a hazard and not where the raid rules already place the tank.

"tactics: boss first" uses the targeted boss, "tactics Lucifron" shows his plan,
"tactics" lists all, "clear" drops one. Names can be short ("geddon") and a plan
can be set from outside the raid. No model is needed; with the bot bridge on, a
free sentence becomes the same order ("tactics ..." is one of its safe orders).
Plain party chat that only starts with the word stays chatter. Russian clients
get the answers in Russian.

New table playerbot_v2_owner_tactics (migration 0039).

(cherry picked from commit 99f77b0b0e04ec83c2b0da6f13c5f274523c7245)
2026-11-11 23:44:07 +00:00
Karrz1 a5216cd0f1 Raid: bots call out what they do in raid chat, like players
"Living Bomb on me, running out", "taunting Flamegor", "Polymorph on
Flamewaker Healer, don't break it", "spread out", "wipe, run back to the
entrance". The line comes from the raid brain's own decision at the moment it
changes, so no model is needed and it works on every setup.

Rate limited so raid chat reads like players: one line per bot every 6 s,
the same line from one bot every 20 s, a raid-wide call (spread, wipe, dance)
once per 45 s, and at most 5 lines in 20 s for the whole raid. Only groups
with a real player hear them. Russian readers get the lines from the catalog.

Playerbot.Raid.Callouts = 0 turns them off (default 1).

(cherry picked from commit 0dd07cdb2197ec7fa04b407988f99751dce99ca7)
2026-11-11 23:44:07 +00:00
Karrz1 a0a4bcff86 ZG Hakkar: the raid stays on his platform, the Son is pulled up 45 s early
Both zg_hakkar runs of sweep-zg-1109z and run 1 of 1109w failed the same way:
Hakkar evaded (88%, 34%, 47%). He leaves the fight below z 45.8, and the
Sons of Hakkar stand below his platform (z ~41).

- 1109z run 2: a healer with Corrupted Blood ran from the platform (z 52.9)
  down to z 40.8, woke a Son there, the off-tank went down for it with
  Hakkar after it. A carrier run now ends on the carrier's own floor
  (within 4 y up or down).
- 1109w run 1 and 1109z run 1: the off-tank walked down to take a Son;
  Cause Insanity wiped the main tank's threat, Hakkar turned on the
  off-tank and followed it down. No tank walks down to a Son now: a hunter
  (else a mage, else a warlock) pulls it with one shot and keeps it
  (RaidOrder::keep_aggro: no Feign Death, Vanish or Fade, which made the
  Son leave the fight in 1109y) while it walks the Son to its tank on the
  platform, where the off-tank picks it up.
- The Son was still at 100% 7 s before the siphon (1109w run 2): the kill
  window opens 45 s before Blood Siphon instead of 25 s. Poisonous Blood
  lasts 90 s, so a Son killed then still covers the siphon.

(cherry picked from commit fbfb48c9ad5ada536fc68eea96f39e8f282a3580)
2026-11-11 23:37:52 +00:00
Karrz1 d824c9e6c2 Bot bridge: "what are you doing?" gets the bot's real activity
The model only had the zone and the first quest of the bot's log, so "what are you
doing?" or "where are you going?" got a made-up answer.

- chat_in carries "doing": dead, fighting <target>, on a flight, an owner's order
  (following you, waiting here), else the bot logic's last rule in a player's words
  (ActivityFromRule: doing a quest, on the way to a vendor to sell junk, checking my
  mail, in a dungeon run, killing mobs for xp, running errands in town...), with "on
  my mount". Nothing when the rule is not something a player would tell.
- The program tells the model to answer from it and invent nothing else.

(cherry picked from commit 11d5f4ede73fc82e42d7b75a3ef9c4d92eb6a9e7)
2026-11-11 23:37:46 +00:00
Karrz1 8d26e53319 Bots: "sell junk" sells everything a vendor takes, and sells on arrival
Gun's bags were full and "sell grey" only looked at grey items ("nothing grey to
sell"), only found vendors within 60 yards, and asked to be told again on arrival.

- sell grey / sell junk / sell your junk counts what a vendor visit really sells
  (CountBagRot: greys, trade goods for no profession of the bot's, gear it can't use,
  outgrown greens when the bags are tight), and says so when there is nothing.
- No vendor selected or in the bot's 60 yard scan: the nearest friendly vendor within
  200 yards.
- Farther than 5 yards: the bot walks there and sells once it arrives
  (TickVendorRuns, once a second), or says after a minute that it could not get there.
- "sell junk" is one of the program's safe orders, and the full-bags rule in its prompt
  uses it.

(cherry picked from commit 15e2eb0cc58096621ac68b9374a7edf1f36fb542)
2026-11-11 23:37:46 +00:00