|
1 | 1 | # CS.Coder - Quest Indicator — notes for Claude (and any dev) |
2 | 2 |
|
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). |
4 | 4 |
|
5 | 5 | ## Working with the user |
6 | 6 | - 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 |
240 | 240 | - 1.2.4 (2026-11-11, first release from the second notebook): level alert (red shades), hide during |
241 | 241 | the fight, Questie as a helper, instances always off (game's limit, info note), Extras guide page, |
242 | 242 | 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. |
243 | 245 |
|
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). |
254 | 273 |
|
255 | 274 | ## Ideas the user liked, not done yet |
256 | 275 | - **From the Questie comparison (2026-11-11), not built yet:** icon by objective type (kill / loot / |
|
0 commit comments