Skip to content

Commit

Permalink
Add skip for anniversary questionaire
Browse files Browse the repository at this point in the history
  • Loading branch information
p3lim committed Nov 1, 2024
1 parent 08dded0 commit 16a453c
Show file tree
Hide file tree
Showing 3 changed files with 95 additions and 0 deletions.
1 change: 1 addition & 0 deletions QuestAutomation_Mainline.toc
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,4 @@ modules/supplies.lua
modules/training.lua
modules/unknown.lua
modules/wilderling.lua
modules/reflect.lua
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ This addon will add "helpers" to automate certain quests or types of quests:
- "[Taming the Wilderling](https://www.wowhead.com/npc=180014)"
- "[Just Winging It](https://www.wowhead.com/quest=61540)"
- "[Low Hanging Fruit](https://www.wowhead.com/quest=70549)"
- Provide answers for "[A Time to Reflect](https://www.wowhead.com/quest=43461)" anniversary quest

## Translations

Expand Down
93 changes: 93 additions & 0 deletions modules/reflect.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
local _, addon = ...

local ANSWERS = {
[41523] = true,
[41528] = true,
[41532] = true,
[41536] = true,
[41539] = true,
[41544] = true,
[41546] = true,
[41660] = true,
[41674] = true,
[41676] = true,
[41683] = true,
[41686] = true,
[41706] = true,
[41711] = true,
[41716] = true,
[42020] = true,
[42025] = true,
[42026] = true,
[42032] = true,
[42086] = true,
[42088] = true,
[42091] = true,
[42098] = true,
[42099] = true,
[42156] = true,
[42157] = true,
[42162] = true,
[42166] = true,
[42169] = true,
[42176] = true,
[42179] = true,
[42184] = true,
[42185] = true,
[42192] = true,
[42210] = true,
[42214] = true,
[42220] = true,
[45687] = true,
[45695] = true,
[45699] = true,
[45705] = true,
[46001] = true,
[46004] = true,
[46010] = true,
[46017] = true,
[46019] = true,
[46026] = true,
[46031] = true,
[46036] = true,
[46063] = true,
[46069] = true,
[46073] = true,
[46080] = true,
[46085] = true,
[46088] = true,
[46094] = true,
[46101] = true,
[46106] = true,
[46108] = true,
[46130] = true,
[46134] = true,
[46139] = true,
[46146] = true,
[46148] = true,
[46155] = true,
[46159] = true,
[46166] = true,
[46168] = true,
[46175] = true,
[46185] = true,
[46192] = true,
[46194] = true,
[46202] = true,
[46206] = true,
[46212] = true,
[46214] = true,
[46219] = true,
[46225] = true,
[46229] = true,
[46237] = true,
}

function addon:GOSSIP_SHOW()
for _, info in next, C_GossipInfo.GetOptions() do
if ANSWERS[info.gossipOptionID or 0] then
C_GossipInfo.SelectOption(info.gossipOptionID)
break
end
end
end

0 comments on commit 16a453c

Please sign in to comment.