Commit Graph
6 Commits
Author SHA1 Message Date
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 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
Karrz1 0d49e4e094 Bots: a party order the bot commands don't know goes to the whole group
"all go to the bank and wait" in party went through the bot command parser, which
doesn't know it, and nothing happened (Gun, 2026-11-09).

- An addressed party or raid line ("all ...", "everyone ...", "<bot name> ...", or the
  ";" form) that the parser does not know goes to the bridge's program when it answers
  chat with actions on: as a group order for all the sender's bots in the group, or as
  an order to the one bot named. A role prefix ("tank: ...") stays the parser's.
- The program picks one action and one short line for the group; one bot answers, and
  every other bot runs the same action 300 ms apart, each with its own checks. A ref
  from the answering bot's NEAR list is given to each bot for the same thing.
- Group actions: moving, stopping, fighting, emotes, orders, steps and signing a
  charter; a trade, a spell or a quest stays one bot's.

(cherry picked from commit 54a0d1fd491944957c3227b934473260fbb00052)
2026-11-11 23:37:46 +00:00
Karrz1 07cb8352e7 Bots: say a line only when it is true; full bags end a craft order plainly
Gun answered "trade the water please" with "I couldn't make that (no item came out),
sorry." and then "here's your water", and no trade opened. His bags were full.

- The server runs a reply's action first and then says the line: unchanged when the
  action worked, nothing when the action speaks for itself (a mage conjures first),
  and a short "Sorry, ..." with the reason when it was refused.
- A craft order with full bags says "My bags are full, so I can't make ..." instead
  of four refused casts and "no item came out". YOUR BAGS tells the model the free
  slots, or that the bags are full.
- The program shows the model its spells on every chat (they were only shown after a
  channel post), understands "trade water" and "cast water", turns conjured water or
  food for the player into a trade, and asks the model once more when its action
  can't happen instead of saying its promise anyway.
- Craft orders understand the 12.x client's item links.

(cherry picked from commit 1e512d7f3ea499ffd1a60b07113b36c12177a726)
2026-11-11 23:37:43 +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