Skip to content

Commit 35448c3

Browse files
committed
v1.2.5: Gameplay tab - quest pickup and auto turn-in
- Quest pickup (off): automatic on talk, or button mode (lists get "Accept all", a single quest is accepted at once, a quest picked from a list is the player's). Dailies/repeatables option. - Auto turn-in (off, separate): hands in finished quests; rewards to choose are left alone. - Shift when clicking an NPC = all manual (visible line on the tab). - Only NPC/object quests; never interferes with Questie, Leatrix Plus, QuickQuest, AutoTurnIn, Zygor. - Pickup on the setup guide's Extras page. Mock tests for every case.
1 parent 5eb6bc5 commit 35448c3

5 files changed

Lines changed: 514 additions & 14 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
# CS.Coder - Quest Indicator
22

3+
## v1.2.5
4+
5+
- New **Gameplay** tab in the options.
6+
- **Quest pickup** (off by default): accepts the quests NPCs offer. Two modes:
7+
- **Automatic on talk**: talking to an NPC accepts all its quests.
8+
- **Button on the window**: an NPC with a list of quests gets an **Accept all** button; an NPC with a single quest is accepted at once.
9+
- Dailies and repeatables can be included or left out.
10+
- **Auto turn-in** (off by default, separate switch): hands in finished quests. When you must choose a reward, nothing is done — you pick it.
11+
- Hold **Shift** when you click an NPC to do everything by hand that time.
12+
- Only NPCs: quests shared by players or started from items are never accepted by themselves.
13+
- Never gets in the way of another addon that already does this (Questie's auto-accept / auto-complete, Leatrix Plus, QuickQuest, AutoTurnIn): the Gameplay tab tells you when one is active.
14+
- Quest pickup is also on the setup guide's Extras page.
15+
316
## v1.2.4
417

518
- **Level alert** (on by default): the icon turns red for quests above your level — light red at 2 levels above, red at 3, full red at 4 or more.

‎CLAUDE.md‎

Lines changed: 30 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# CS.Coder - Quest Indicator — notes for Claude (and any dev)
22

3-
Read this first when working on the addon. Last updated 2026-11-11 (v1.2.4 published).
3+
Read this first when working on the addon. Last updated 2026-11-11 (v1.2.5 published).
44

55
## Working with the user
66
- Chat in **Brazilian Portuguese**; code, comments, commits, docs and in-game text in **English**.
@@ -240,17 +240,36 @@ whether the mock is missing an API (e.g. it once returned nil for `GetHighlightT
240240
- 1.2.4 (2026-11-11, first release from the second notebook): level alert (red shades), hide during
241241
the fight, Questie as a helper, instances always off (game's limit, info note), Extras guide page,
242242
party-objective and secret-value fixes, event batching and other performance work.
243+
- 1.2.5 (2026-11-11): Gameplay tab: quest pickup (auto / button on lists, single quest at once),
244+
auto turn-in (rewards to choose left alone), Shift = manual, never interferes with other addons.
243245

244-
## URGENT — next task (user, 2026-11-11)
245-
- New settings tab **"Gameplay"** (a third tab next to Settings and Profiles) with **automatic quest
246-
pickup**: when you talk to an NPC that has quests to give, accept all of them automatically.
247-
Alternative/extra the user mentioned: a small button in the corner of the NPC's quest window
248-
(gossip / quest greeting frame) that accepts all available quests with one click.
249-
Notes for building it: events GOSSIP_SHOW / QUEST_GREETING / QUEST_DETAIL; available quests via
250-
C_GossipInfo.GetAvailableQuests (or GetNumAvailableQuests / SelectAvailableQuest on greeting frames),
251-
AcceptQuest() on QUEST_DETAIL; skip when a modifier key is held; don't fight Questie's own
252-
auto-accept if it is on; mind repeatable/daily and quests that cost something. Ask the user for
253-
short option names first (see memory: short labels).
246+
## Quest pickup / Gameplay tab (released in v1.2.5; turn-in confirmed in game, button position not yet)
247+
- Third tab **Gameplay** (Settings | Gameplay | Profiles; built inline in the `builders` list —
248+
a named local there would cross the 200-locals limit). Settings: `questPickup` (off),
249+
`questPickupMode` "auto" | "button", `questPickupRepeatable` (on). Also on the setup guide's
250+
Extras page (switch + mode). Labels proposed by me, user said "depois ajustamos": Coleta de quests,
251+
Modo (Automático ao falar / Botão na janela), Incluir diárias e repetíveis, button "Pegar todas".
252+
- Logic: own `do` block before the events section (own event frame). GOSSIP_SHOW / QUEST_GREETING
253+
open the next wanted quest (`C_GossipInfo.SelectAvailableQuest` / `SelectAvailableQuest(i)`),
254+
QUEST_DETAIL `AcceptQuest()`, the game reopens the window -> next. `tried` (10 s) stops loops on a
255+
full log. Auto: Shift at the start of the talk = manual until the windows close (`paused`).
256+
Button mode (user's spec 2026-11-11): a LIST gets the "Pegar todas" button; an NPC with a SINGLE
257+
quest (QUEST_DETAIL with no list seen, `sawList`) is accepted at once; a quest the player picks
258+
from a list is theirs. Shift = all manual; said in a visible line on the tab (`PICKUP_HOW`).
259+
The button is a child of the NPC window and isn't gated on `IsShown()` (the window can open a
260+
moment after GOSSIP_SHOW; that was why it didn't show in game the first time).
261+
Button: `UIPanelButtonTemplate` at the TOPRIGHT of GossipFrame/QuestFrame (-32, -30) — position
262+
NOT checked in game yet. Only NPC/object GUIDs (no player shares, no item quests).
263+
- **Auto turn-in** (`questTurnIn`, off, separate switch, Gameplay tab only — not in the guide):
264+
finished quests first (`C_GossipInfo.GetActiveQuests` isComplete / `GetActiveTitle`),
265+
QUEST_PROGRESS `CompleteQuest()` when `IsQuestCompletable()`, QUEST_COMPLETE `GetQuestReward(n)`
266+
only with 0 or 1 reward; **2+ choices = do nothing** (user's rule). Questie itself doesn't pick a
267+
"recommended" reward either (it skips when choices > 1), so there was nothing to learn there.
268+
- **Never interfere with other addons** (user's rule): `questLog.OtherPickupAddon(kind)` checks
269+
Questie (`autoAccept.enabled` / `autocomplete`), Leatrix Plus (`LeaPlusDB.AutomateQuests == "On"`),
270+
QuickQuest and AutoTurnIn (loaded = active), Zygor (setting names guessed). Only LOADED addons
271+
count. When one does it, ours does nothing and the Gameplay tab shows an orange note.
272+
- Reference used: Questie's `Modules/Auto/AutoQuesting.lua` (works on this client).
254273

255274
## Ideas the user liked, not done yet
256275
- **From the Questie comparison (2026-11-11), not built yet:** icon by objective type (kill / loot /

0 commit comments

Comments
 (0)