/
Database.lua
217 lines (207 loc) · 12.9 KB
/
Database.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
--[[
BetterBags_Hearthstones - Adds various hearthing items to BetterBags virtual groups
Copyright © 2024 Paul Vandersypen, All Rights Reserved
]]--
assert(LibStub("AceAddon-3.0"):GetAddon("BetterBags"), "BetterBags_Hearthstones requires BetterBags")
---@type string, AddonNS
local _, addon = ...
-- need to check game version
local isCata = WOW_PROJECT_ID == WOW_PROJECT_CATA_CLASSIC
local isMainline = WOW_PROJECT_ID == WOW_PROJECT_MAINLINE
local database = {}
-- all game versions have these items
database[6948] = true -- Hearthstone
database[17690] = true -- Frostwolf Insignia Rank 1
database[17691] = true -- Stormpike Insignia Rank 1
database[17900] = true -- Stormpike Insignia Rank 2
database[17901] = true -- Stormpike Insignia Rank 3
database[17902] = true -- Stormpike Insignia Rank 4
database[17903] = true -- Stormpike Insignia Rank 5
database[17904] = true -- Stormpike Insignia Rank 6
database[17905] = true -- Frostwolf Insignia Rank 2
database[17906] = true -- Frostwolf Insignia Rank 3
database[17907] = true -- Frostwolf Insignia Rank 4
database[17908] = true -- Frostwolf Insignia Rank 5
database[17909] = true -- Frostwolf Insignia Rank 6
database[18149] = true -- Rune of Recall (Frostwolf Keep)
database[18150] = true -- Rune of Recall (Dun Baldar)
database[18984] = true -- Dimensional Ripper - Everlook
database[18986] = true -- Ultrasafe Transporter - Gadgetzan
database[22589] = true -- Atiesh, Greatstaff of the Guardian (Mage)
database[22630] = true -- Atiesh, Greatstaff of the Guardian (Warlock)
database[22631] = true -- Atiesh, Greatstaff of the Guardian (Priest)
database[22632] = true -- Atiesh, Greatstaff of the Guardian (Druid)
-- add TBC, Wrath and Cataclysm items to Cataclysm and mainline
if isCata or isMainline then
database[28585] = true -- Ruby Slippers
database[29796] = true -- Socrethar's Teleportation Stone
database[30542] = true -- Dimensional Ripper - Area 52
database[32757] = true -- Blessed Medallion of Karabor
database[35230] = true -- Darnarian's Scroll of Teleportation
database[36955] = true -- Ultrasafe Transporter - Toshley's Station
database[37118] = true -- Scroll of Recall
database[37863] = true -- Direbrew's Remote
database[38685] = true -- Teleport Scroll: Zul'Farrak
database[40585] = true -- Signet of the Kirin Tor
database[40586] = true -- Band of the Kirin Tor
database[43824] = true -- The Schools of Arcane Magic - Mastery (spires atop the Violet Citadel)
database[44314] = true -- Scroll of Recall II
database[44315] = true -- Scroll of Recall III
database[44934] = true -- Loop of the Kirin Tor
database[44935] = true -- Ring of the Kirin Tor
database[45688] = true -- Inscribed Band of the Kirin Tor
database[45689] = true -- Inscribed Loop of the Kirin Tor
database[45690] = true -- Inscribed Ring of the Kirin Tor
database[45691] = true -- Inscribed Signet of the Kirin Tor
database[46874] = true -- Argent Crusader's Tabard
database[48933] = true -- Wormhole Generator: Northrend
database[48954] = true -- Etched Band of the Kirin Tor
database[48955] = true -- Etched Loop of the Kirin Tor
database[48956] = true -- Etched Ring of the Kirin Tor
database[48957] = true -- Etched Signet of the Kirin Tor
database[50287] = true -- Boots of the Bay
database[51557] = true -- Runed Signet of the Kirin Tor
database[51558] = true -- Runed Loop of the Kirin Tor
database[51559] = true -- Runed Ring of the Kirin Tor
database[51560] = true -- Runed Band of the Kirin Tor
database[52251] = true -- Jaina's Locket
database[54452] = true -- Ethereal Portal
database[58487] = true -- Potion of Deepholm
database[61379] = true -- Gidwin's Hearthstone
database[63206] = true -- Wrap of Unity: Stormwind
database[63207] = true -- Wrap of Unity: Orgrimmar
database[63352] = true -- Shroud of Cooperation: Stormwind
database[63353] = true -- Hellscream's Reach Tabard
database[63378] = true -- Shroud of Cooperation: Orgrimmar
database[63379] = true -- Baradin's Wardens Tabard
database[64457] = true -- The Last Relic of Argus
database[64488] = true -- The Innkeeper's Daughter
database[65274] = true -- Cloak of Coordination: Orgrimmar
database[65360] = true -- Cloak of Coordination: Stormwind
database[68808] = true -- Hero's Hearthstone
database[68809] = true -- Veteran's Hearthstone
database[184871] = true -- Dark Portal (TBC)
database[199335] = true -- Teleport Scroll: Menethil Harbor
database[199336] = true -- Teleport Scroll: Stormwind Harbor
database[199777] = true -- Teleport Scroll: Orgrimmar Zepplin Tower
database[199778] = true -- Teleport Scroll: Undercity Zepplin Tower
database[200068] = true -- Teleport Scroll: Shattrath City
end
-- add everything else for mainline
if isMainline then
-- delete these items, since they don't exist
database[184871] = nil -- Dark Portal (TBC)
database[199335] = nil -- Teleport Scroll: Menethil Harbor
database[199336] = nil -- Teleport Scroll: Stormwind Harbor
database[199777] = nil -- Teleport Scroll: Orgrimmar Zepplin Tower
database[199778] = nil -- Teleport Scroll: Undercity Zepplin Tower
database[200068] = nil -- Teleport Scroll: Shattrath City
-- please note that Improved Flightmaster Whistle, itemID: 158897 is not a valid item in the game
-- Wowhead lists it, yet it shares the same itemID (141605) as the regular Flightmaster Whistle
-- mainline items
database[87215] = true -- Wormhole Generator: Pandaria
database[87548] = true -- Lorewalker's Lodestone
database[92510] = true -- Vol'jin's Hearthstone
database[93672] = true -- Dark Portal (MoP)
database[95050] = true -- The Brassiest Knuckle (Brawl'gar Arena)
database[95051] = true -- The Brassiest Knuckle (Bizmo's Brawlpub)
database[95567] = true -- Kirin Tor Beacon
database[95568] = true -- Sunreaver Beacon
database[103678] = true -- Time-Lost Artifact
database[110560] = true -- Garrison Hearthstone
database[112059] = true -- Wormhole Centrifuge
database[117389] = true -- Draenor Archaeologist's Lodestone
database[118662] = true -- Bladespire Relic
database[118663] = true -- Relic of Karabor
database[118907] = true -- Pit Fighter's Punching Ring (Bizmo's Brawlpub)
database[118908] = true -- Pit Fighter's Punching Ring (Brawl'gar Arena)
database[119183] = true -- Scroll of Risky Recall
database[128502] = true -- Hunter's Seeking Crystal
database[128503] = true -- Master Hunter's Seeking Crystal
database[128353] = true -- Admiral's Compass
database[129276] = true -- Beginner's Guide to Dimensional Rifting
database[132119] = true -- Orgrimmar Portal Stone
database[132120] = true -- Stormwind Portal Stone
database[132517] = true -- Intra-Dalaran Wormhole Generator
database[132523] = true -- Reaves Battery
database[138448] = true -- Emblem of Margoss
database[139590] = true -- Scroll of Teleport: Ravenholdt
database[139599] = true -- Empowered Ring of the Kirin Tor
database[140192] = true -- Dalaran Hearthstone
database[140493] = true -- Adept's Guide to Dimensional Rifting
database[141013] = true -- Scroll of Town Portal: Shala'nir
database[141014] = true -- Scroll of Town Portal: Sashj'tar
database[141015] = true -- Scroll of Town Portal: Kal'delar
database[141016] = true -- Scroll of Town Portal: Faronaar
database[141017] = true -- Scroll of Town Portal: Lian'tril
database[141324] = true -- Talisman of the Shal'dorei
database[141605] = true -- Flight Master's Whistle
database[142298] = true -- Astonishingly Scarlet Slippers
database[142469] = true -- Violet Seal of the Grand Magus
database[142542] = true -- Tome of Town Portal (Diablo 3 event)
database[142543] = true -- Scroll of Town Portal (Diablo 3 event)
database[144341] = true -- Rechargeable Reaves Battery
database[144391] = true -- Pugilist's Powerful Punching Ring (Alliance)
database[144392] = true -- Pugilist's Powerful Punching Ring (Horde)
database[150733] = true -- Scroll of Town Portal (Ar'gorok in Arathi)
database[151652] = true -- Wormhole Generator: Argus
database[159224] = true -- Zuldazar Hearthstone
database[160219] = true -- Scroll of Town Portal (Stromgarde in Arathi)
database[162973] = true -- Greatfather Winter's Hearthstone
database[163045] = true -- Headless Horseman's Hearthstone
database[163694] = true -- Scroll of Luxurious Recall
database[166559] = true -- Commander's Signet of Battle
database[166560] = true -- Captain's Signet of Command
database[165669] = true -- Lunar Elder's Hearthstone
database[165670] = true -- Peddlefeet's Lovely Hearthstone
database[165802] = true -- Noble Gardener's Hearthstone
database[166746] = true -- Fire Eater's Hearthstone
database[166747] = true -- Brewfest Reveler's Hearthstone
database[167075] = true -- Ultrasafe Transporter: Mechagon
database[168807] = true -- Wormhole Generator: Kul Tiras
database[168808] = true -- Wormhole Generator: Zandalar
database[168862] = true -- G.E.A.R. Tracking Beacon
database[168907] = true -- Holographic Digitalization Hearthstone
database[169064] = true -- Montebank's Colorful Cloak
database[169297] = true -- Stormpike Insignia
database[169862] = true -- Alluring Bloom
database[172179] = true -- Eternal Traveler's Hearthstone
database[172203] = true -- Cracked Hearthstone
database[172924] = true -- Wormhole Generator: Shadowlands
database[173373] = true -- Faol's Hearthstone
database[173430] = true -- Nexus Teleport Scroll
database[173532] = true -- Tirisfal Camp Scroll
database[173528] = true -- Gilded Hearthstone
database[173537] = true -- Glowing Hearthstone
database[173716] = true -- Mossy Hearthstone
database[180290] = true -- Night Fae Hearthstone
database[180817] = true -- Cypher of Relocation (Ve'nari's Refuge)
database[181163] = true -- Scroll of Teleport: Theater of Pain
database[182773] = true -- Necrolord's Hearthstone
database[183716] = true -- Venthyr Sinstone
database[184353] = true -- Kyrian Hearthstone
database[184500] = true -- Attendant's Pocket Portal: Bastion
database[184501] = true -- Attendant's Pocket Portal: Revendreth
database[184502] = true -- Attendant's Pocket Portal: Maldraxxus
database[184503] = true -- Attendant's Pocket Portal: Ardenweald
database[184504] = true -- Attendant's Pocket Portal: Oribos
database[188952] = true -- Dominated Hearthstone
database[189827] = true -- Cartel Xy's Proof of Initiation
database[190196] = true -- Enlightened Hearthstone
database[190237] = true -- Broker Translocation Matrix
database[191029] = true -- Lilian's Hearthstone
database[193588] = true -- Timewalker's Hearthstone
database[198156] = true -- Wyrmhole Generator: Dragon Isles
database[200630] = true -- Ohn'ir Windsage's Hearthstone
database[201957] = true -- Thrall's Hearthstone
database[202046] = true -- Lucky Tortollan Charm
database[204481] = true -- Morqut Hearth Totem
database[205255] = true -- Niffen Diggin' Mitts
database[205456] = true -- Lost Dragonscale (1)
database[205458] = true -- Lost Dragonscale (2)
database[211788] = true -- Tess's Peacebloom
database[212337] = true -- Stone of the Hearth
database[223988] = true -- Dalaran Hearthstone (1 charge quest item)
end
-- return data to main file
addon.db = database