-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathSpells.lua
1080 lines (944 loc) · 36.4 KB
/
Spells.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
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
local MapIDAlteracValley = 91
local MapIDAlteracValleyKorrak = 1537
local MapIDIsleOfThunder = 504
local MapIDDalaran = 125
local MapIDTanaanJungle = 534
local MapIDAzsuna = 627
local MapIDDalaranLegion = 1014
local MapIDAntoranWastes = 885
local MapIDAlterac = 943
local MapIDMaw = 1543
local MapIDKorthia = 1961
local MapIDMechagon = 1462
local MapIDGilneas = 202
local ContinentIdOutland = 101
local ContinentIdPandaria = 424
local ContinentIdDraenor = 946
local ContinentIdBrokenIsles = 619
local ContinentIdArgus = 905
local ContinentIdZandalar = 875
local ContinentIdKulTiras = 876
local ContinentIdNazjatar = 1355
local function AtZone(requiredZone)
return function()
if TeleporterGetOption("showInWrongZone") then
return true
end
local mapID = C_Map.GetBestMapForUnit("player")
while mapID ~= 0 do
if mapID == requiredZone then
return true
end
mapID = C_Map.GetMapInfo(mapID).parentMapID
end
return false
end
end
local function AtContinent(requiredContinent)
return AtZone(requiredContinent)
end
local function InUndermineRaid()
return AtZone(2406)() or AtZone(2428)() or AtZone(2407)() or AtZone(2408)() or AtZone(2411)() or AtZone(2409)()
end
local function AllowWhistle()
--return AtContinent(ContinentIdBrokenIsles)() or AtContinent(ContinentIdArgus)() or AtContinent(ContinentIdKulTiras)() or AtContinent(ContinentIdZandalar)() or AtZone(MapIdAlterac)
-- This is getting complicated - until I find a better way, always allow it.
return true
end
local function InBFAZone()
return AtContinent(ContinentIdKulTiras)() or AtContinent(ContinentIdZandalar)()
end
local function IsInAlteracValley()
return AtZone(MapIDAlteracValley)() or AtZone(MapIDAlteracValleyKorrak)()
end
local function IsClass(requiredClass)
return function()
local _, playerClass = UnitClass("player")
return playerClass == requiredClass
end
end
local function IsRace(requiredRace)
return function()
local _, playerRace = UnitRace("player")
return playerRace == requiredRace
end
end
local function IsDraenei()
return IsRace("Draenei")() or IsRace("LightforgedDraenei")()
end
local function HaveUpgradedZen()
return C_QuestLog.IsQuestFlaggedCompleted(40236)
end
local DaySunday = 1
local DayMonday = 2
local DayTuesday = 3
local DayWednesday = 4
local DayThursday = 5
local DayFriday = 6
local DaySaturday = 7
local ExpansionClassic = 1
local ExpansionBurningCrusade = 2
local ExpansionWrath = 3
local ExpansionCataclysm = 4
local ExpansionPandaria = 5
local ExpansionDraenor = 6
local ExpansionLegion = 7
local ExpansionBattleForAzeroth = 8
local ExpansionShadowlands = 9
local ExpansionDragonflight = 10
local ExpansionWarWithin = 11
local function OnDay(day)
return function()
local today = date("*t").wday
return day == today
end
end
local function OnDayAtContinent(day, continent)
return function()
return OnDay(day)() and AtContinent(continent)
end
end
local function CreateDestination(zone, spells)
local zoneName
local mapID = 0
local results = {}
results.spells = {}
results.SetExpansion = function(expansion)
for i, spell in ipairs(results.spells) do
spell.expansion = expansion
end
return expansion
end
if type(zone) == "string" then
zoneName = zone
else
zoneName = zone.name
mapID = zone.mapID
end
if zoneName then
for i, spell in ipairs(spells) do
if TeleporterIsUnsupportedItem(spell) ~= 1 then
spell:SetZone(zoneName, mapID)
tinsert(TeleporterDefaultSpells, spell)
tinsert(results.spells, spell)
end
end
end
return results
end
local function PrintZoneIndex(name)
for i = 1, 10000 do
local info = C_Map.GetMapInfo(i)
if info and info.name == name then
print(name .. " should be zone " .. i)
return
end
end
print("Unknown zone " .. name)
end
local function LocZone(name, mapID)
local result = {}
result.mapID = mapID
if mapID == 0 then
PrintZoneIndex(name)
result.name = name
else
local mapInfo = C_Map.GetMapInfo(mapID)
if not mapInfo then
--PrintZoneIndex(name)
result.name = name
else
local locName = mapInfo.name
result.name = locName
end
end
return result
end
local function CreateZone(name, mapID)
local result = {}
result.name = name
result.mapID = mapID
return result
end
local function LocArea(name, areaID)
local locName
if areaID == 0 then
for i = 1, 10000 do
if C_Map.GetAreaInfo(i) == name then
print(name .. " should be area " .. i)
end
end
return name
else
locName = C_Map.GetAreaInfo(areaID)
--if locName ~= name then
-- print("Incorrect localization of " .. name .. ", got " .. locName)
--end
end
return locName
end
local function CreatePortalSpell(spell)
return TeleporterCreateConditionalSpell(spell,
function()
return TeleporterGetOption("showInWrongZone") or IsInGroup()
end)
end
local CreateSpell = TeleporterCreateSpell
local CreateItem = TeleporterCreateItem
local CreateChallengeSpell = TeleporterCreateChallengeSpell
local CreateConditionalItem = TeleporterCreateConditionalItem
local CreateConditionalSpell = TeleporterCreateConditionalSpell
local CreateConditionalConsumable = TeleporterCreateConditionalConsumable
local CreateConsumable = TeleporterCreateConsumable
TeleporterDefaultSpells =
{
}
CreateDestination(
TeleporterHearthString,
{
CreateItem(93672), -- Dark Portal
CreateItem(54452), -- Ethereal Portal
CreateItem(6948 ), -- Hearthstone
CreateConsumable(37118), -- Scroll of Recall
CreateConsumable(44314), -- Scroll of Recall II
CreateConsumable(44315), -- Scroll of Recall III
CreateItem(64488), -- The Innkeeper's Daughter
CreateItem(142298), -- Astonishingly Scarlet Slippers
CreateConsumable(142543), -- Scroll of Town Portal
CreateItem(162973), -- Greatfather Winter's Hearthstone
CreateItem(163045), -- Headless Horseman's Hearthstone
CreateItem(166747), -- Brewfest Reveler's Hearthstone
CreateItem(166746), -- Fire Eater's Hearthstone
CreateItem(165802), -- Noble Gardener's Hearthstone
CreateItem(168907), -- Holographic Digitalization Hearthstone
CreateItem(165669), -- Lunar Elder's Hearthstone
CreateItem(165670), -- Peddlefeet's Lovely Hearthstone
CreateItem(172179), -- Eternal Traveler's Hearthstone
-- I don't know how to check if a covenant hearthstone can be used. To work
-- around this, only make them available for other covenants when not using
-- the random hearthstone option.
CreateConditionalItem(180290, TeleporterCanUseCovenantHearthstone(3)), -- Night Fae Hearthstone
CreateConditionalItem(182773, TeleporterCanUseCovenantHearthstone(4)), -- Necrolord Hearthstone
CreateConditionalItem(183716, TeleporterCanUseCovenantHearthstone(2)), -- Venthyr Sinstone
CreateConditionalItem(184353, TeleporterCanUseCovenantHearthstone(1)), -- Kyrian Hearthstone
CreateItem(188952), -- Dominated Hearthstone
CreateItem(190196), -- Enlightened Hearthstone
CreateItem(190237), -- Broker Translocation Matrix
CreateItem(193588), -- Timewalker's Hearthstone
CreateItem(200630), -- Ohn'ir Windsage's Hearthstone
CreateItem(206195), -- Path of the Naaru
CreateItem(208704), -- Deepdweller's Earthen Hearthstone
CreateItem(209035), -- Hearthstone of the Flame
CreateConditionalItem(210455, IsDraenei), -- Draenic Hologem
CreateItem(228940), -- Notorious Thread's Hearthstone
CreateItem(142542), -- Tome of Town Portal
CreateItem(212337), -- Stone of the Hearth
CreateItem(235016), -- Redeployment Module
CreateItem(236687) -- Explosive Hearthstone
})
-- Any hearthstones that shouldn't be randomised.
CreateDestination(
TeleporterRecallString,
{
CreateSpell(556), -- Astral Recall (separate cooldown)
CreateItem(28585), -- Ruby Slippers (needs to be equipped)
CreateItem(142298), -- Astonishingly Scarlet Slippers (needs to be equipped)
CreateItem(169064), -- Mountebank's Colorful Cloak (needs to be equipped)
})
CreateDestination(
TeleporterFlightString,
{
CreateConditionalItem(141605, AllowWhistle), -- Flight Master's Whistle
CreateConditionalItem(168862, AllowWhistle), -- G.E.A.R. Tracking Beacon
})
CreateDestination(
LocZone("Alterac Valley", 91),
{
CreateConditionalItem(17690, IsInAlteracValley ), -- Frostwolf Insignia Rank 1
CreateConditionalItem(17905, IsInAlteracValley ), -- Frostwolf Insignia Rank 2
CreateConditionalItem(17906, IsInAlteracValley ), -- Frostwolf Insignia Rank 3
CreateConditionalItem(17907, IsInAlteracValley ), -- Frostwolf Insignia Rank 4
CreateConditionalItem(17908, IsInAlteracValley ), -- Frostwolf Insignia Rank 5
CreateConditionalItem(17909, IsInAlteracValley ), -- Frostwolf Insignia Rank 6
CreateConditionalItem(17691, IsInAlteracValley ), -- Stormpike Insignia Rank 1
CreateConditionalItem(17900, IsInAlteracValley ), -- Stormpike Insignia Rank 2
CreateConditionalItem(17901, IsInAlteracValley ), -- Stormpike Insignia Rank 3
CreateConditionalItem(17902, IsInAlteracValley ), -- Stormpike Insignia Rank 4
CreateConditionalItem(17903, IsInAlteracValley ), -- Stormpike Insignia Rank 5
CreateConditionalItem(17904, IsInAlteracValley ), -- Stormpike Insignia Rank 6
CreateConditionalItem(18149, IsInAlteracValley ), -- Rune of Recall6
CreateConditionalItem(18150, IsInAlteracValley ), -- Rune of Recall6
}).SetExpansion(ExpansionClassic)
CreateDestination(
LocZone("Antoran Wastes", 885),
{
CreateConditionalItem(153226, AtZone(MapIDAntoranWastes)) -- Observer's Locus Resonator
}).SetExpansion(ExpansionLegion)
CreateDestination(
LocZone("Ardenweald", 1565),
{
CreateConsumable(184503), -- Attendant's Pocket Portal: Ardenweald
}).SetExpansion(ExpansionShadowlands)
CreateDestination(
LocZone("Argus", 905),
{
CreateItem(151652) -- Wormhole Generator: Argus
}).SetExpansion(ExpansionLegion)
CreateDestination(
LocZone("Ashran", 588),
{
CreateConsumable(116413), -- Scroll of Town Portal
CreateConsumable(119183), -- Scroll of Risky Recall
CreatePortalSpell(176246), -- Portal: Stormshield
CreateSpell(176248), -- Teleport: Stormshield
CreatePortalSpell(176244), -- Portal: Warspear
CreateSpell(176242), -- Teleport: Warspear
}).SetExpansion(ExpansionDraenor)
CreateDestination(
LocZone("Azsuna", 630),
{
CreateConditionalItem(129276, AtZone(MapIDAzsuna)), -- Beginner's Guide to Dimensional Rifting
CreateConditionalConsumable(141016, AtContinent(ContinentIdBrokenIsles)), -- Scroll of Town Portal: Faronaar
CreateConditionalItem(140493, OnDayAtContinent(DayWednesday, ContinentIdBrokenIsles)), -- Adept's Guide to Dimensional Rifting
}, 630).SetExpansion(ExpansionLegion)
CreateDestination(
LocZone("Badlands", 15),
{
CreateChallengeSpell(393222, 2355, 2071), -- Path of the Watcher's Legacy Uldaman: Legacy of Tyr
}).SetExpansion(ExpansionClassic)
CreateDestination(
LocZone("Bastion", 1533),
{
CreateConsumable(184500), -- Attendant's Pocket Portal: Bastion
}).SetExpansion(ExpansionShadowlands)
CreateDestination(
LocArea("Bizmo's Brawlpub", 6618),
{
CreateItem(95051), -- The Brassiest Knuckle
CreateItem(118907), -- Pit Fighter's Punching Ring
CreateItem(144391), -- Pugilist's Powerful Punching Ring
}).SetExpansion(ExpansionClassic)
CreateDestination(
LocZone("Black Temple", 490),
{
CreateItem(32757), -- Blessed Medallion of Karabor
CreateItem(151016), -- Fractured Necrolyte Skull
}).SetExpansion(ExpansionBurningCrusade)
CreateDestination(
LocZone("Blackrock Depths", 242),
{
CreateItem(37863) -- Direbrew's Remote
}).SetExpansion(ExpansionClassic)
CreateDestination(
LocZone("Blackrock Foundry", 596),
{
CreateChallengeSpell(169771, 900, 596) -- Teleport: Blackrock Foundry Blackrock Foundry
}).SetExpansion(ExpansionDraenor)
CreateDestination(
LocZone("Blade's Edge Mountains", 105),
{
CreateItem(30544), -- Ultrasafe Transporter - Toshley's Station
}).SetExpansion(ExpansionBurningCrusade)
CreateDestination(
LocArea("Bladespire Citadel", 6864),
{
CreateItem(118662), -- Bladespire Relic
}).SetExpansion(ExpansionDraenor)
CreateDestination(
LocArea("Booty Bay", 35),
{
CreateItem(50287), -- Boots of the Bay
}).SetExpansion(ExpansionClassic)
CreateDestination(
LocZone("Boralus", 1161),
{
CreateSpell(281403), -- Teleport: Boralus
CreatePortalSpell(281400), -- Portal: Boralus
CreateItem(166560), -- Captain's Signet of Command
}).SetExpansion(ExpansionBattleForAzeroth)
CreateDestination(
LocZone("Brawl'gar Arena", 503),
{
CreateItem(95050), -- The Brassiest Knuckle
CreateItem(118908), -- Pit Fighter's Punching Ring
CreateItem(144392), -- Pugilist's Powerful Punching Ring
}, 503).SetExpansion(ExpansionClassic)
CreateDestination(
LocZone("Broken Isles", 619),
{
CreateConsumable(132523), -- Reaves Battery (can't always teleport, don't currently check).
CreateItem(144341), -- Rechargeable Reaves Battery
}).SetExpansion(ExpansionLegion)
CreateDestination(
"Camp",
{
CreateSpell(312372),
})
CreateDestination(
CreateZone(LocZone("Dalaran", 41).name .. " (Legion)", 627),
{
CreatePortalSpell(224871), -- Portal: Dalaran - Broken Isles
CreateSpell(224869), -- Teleport: Dalaran - Broken Isles
CreateItem(138448), -- Emblem of Margoss
CreateItem(139599), -- Empowered Ring of the Kirin Tor
CreateItem(140192), -- Dalaran Hearthstone
CreateConditionalItem(43824, AtZone(MapIDDalaranLegion)), -- The Schools of Arcane Magic - Mastery
}).SetExpansion(ExpansionLegion)
CreateDestination(
CreateZone(LocZone("Dalaran", 41).name .. " (WotLK)", 125),
{
CreateSpell(53140), -- Teleport: Dalaran
CreatePortalSpell(53142), -- Portal: Dalaran
-- ilvl 200 rings
CreateItem(40586), -- Band of the Kirin Tor
CreateItem(44934), -- Loop of the Kirin Tor
CreateItem(44935), -- Ring of the Kirin Tor
CreateItem(40585), -- Signet of the Kirin Tor
-- ilvl 213 rings
CreateItem(45688), -- Inscribed Band of the Kirin Tor
CreateItem(45689), -- Inscribed Loop of the Kirin Tor
CreateItem(45690), -- Inscribed Ring of the Kirin Tor
CreateItem(45691), -- Inscribed Signet of the Kirin Tor
-- ilvl 226 rings
CreateItem(48954), -- Etched Band of the Kirin Tor
CreateItem(48955), -- Etched Loop of the Kirin Tor
CreateItem(48956), -- Etched Ring of the Kirin Tor
CreateItem(48957), -- Etched Signet of the Kirin Tor
-- ilvl 251 rings
CreateItem(51560), -- Runed Band of the Kirin Tor
CreateItem(51558), -- Runed Loop of the Kirin Tor
CreateItem(51559), -- Runed Ring of the Kirin Tor
CreateItem(51557), -- Runed Signet of the Kirin Tor
CreateConditionalItem(43824, AtZone(MapIDDalaran)), -- The Schools of Arcane Magic - Mastery
CreateItem(52251), -- Jaina's Locket
}).SetExpansion(ExpansionWrath)
CreateDestination(
LocArea("Dalaran Crater", 279),
{
CreateSpell(120145), -- Ancient Teleport: Dalaran
CreatePortalSpell(120146), -- Ancient Portal: Dalaran
}).SetExpansion(ExpansionClassic)
CreateDestination(
LocZone("Darnassus", 89),
{
CreateSpell(3565), -- Teleport: Darnassus
CreatePortalSpell(11419), -- Portal: Darnassus
}).SetExpansion(ExpansionClassic)
CreateDestination(
LocZone("Dazar'alor", 1163),
{
CreateSpell(281404), -- Teleport: Dazar'alor
CreatePortalSpell(281402), -- Portal: Dazar'alor
CreateItem(166559), -- Commander's Signet of Battle
CreateConditionalItem(165581, AtZone(1163)), -- Crest of Pa'ku
}).SetExpansion(ExpansionBattleForAzeroth)
CreateDestination(
LocZone("Deepholm", 207),
{
CreateConsumable(58487), -- Potion of Deepholm
}).SetExpansion(ExpansionCataclysm)
CreateDestination(
"Delves",
{
CreateItem(230850) -- Delve-O-Bot 7001
}).SetExpansion(ExpansionWarWithin)
CreateDestination(
LocZone("Dornogal", 2339),
{
CreateSpell(446540), -- Teleport: Dornogal
CreatePortalSpell(446534), -- Portal: Dornogal
}).SetExpansion(ExpansionWarWithin)
CreateDestination(
LocZone("Draenor", 572),
{
CreateConditionalConsumable(117389, AtContinent(ContinentIdDraenor)), -- Draenor Archaeologist's Lodestone
CreateItem(112059), -- Wormhole Centrifuge
CreateConditionalItem(129929, AtContinent(ContinentIdOutland)), -- Ever-Shifting Mirror
}).SetExpansion(ExpansionDraenor)
CreateDestination(
LocZone("Drustvar", 896),
{
CreateChallengeSpell(424167, 1706, 1015) -- Path of Heart's Bane Waycrest Manor
}).SetExpansion(ExpansionShadowlands)
CreateDestination(
"Draenor Dungeons",
{
CreateChallengeSpell(159897, 1975, 593), -- Path of the Vigilant Auchindoun
CreateChallengeSpell(159895, 1005, 573), -- Path of the Bloodmaul Bloodmaul Slag Mines
CreateChallengeSpell(159901, 1003, 620), -- Path of the Verdant The Everbloom
CreateChallengeSpell(159900, 1006, 606), -- Path of the Dark Rail Grimrail Depot
CreateChallengeSpell(159896, 1007, 595), -- Path of the Iron Prow Iron Docks
CreateChallengeSpell(159899, 1009, 574), -- Path of the Crescent Moon Shadowmoon Burial Grounds
CreateChallengeSpell(159898, 1010, 601), -- Path of the Skies Skyreach
CreateChallengeSpell(159902, 1004, 616), -- Path of the Burning Mountain Upper Blackrock Spire
}).SetExpansion(ExpansionDraenor)
CreateDestination(
LocZone("Dragon Isles", 1978),
{
CreateItem(198156), -- Wyrmhole Generator
}).SetExpansion(ExpansionDragonflight)
CreateDestination(
"Dragon Isles Dungeons",
{
CreateChallengeSpell(393279, 2335, 2073), -- Path of Arcane Secrets The Azure Vault
CreateChallengeSpell(393273, 2367, 2097), -- Path of the Draconic Diploma Algeth'ar Academy
CreateChallengeSpell(393262, 2378, 2093), -- Path of the Windswept Plains The Nokhud Offensive
CreateChallengeSpell(393256, 2376, 2094), -- Path of the Clutch Defender Ruby Life Pools
CreateChallengeSpell(393276, 2359, 2080), -- Path of the Obsidian Hoard Neltharus
CreateChallengeSpell(393283, 2382, 2082), -- Path of the Titanic Reservoir Halls of Infusion
CreateChallengeSpell(393267, 2380, 2096), -- Path of the Rotting Woods Brackenhide Hollow
}).SetExpansion(ExpansionDragonflight)
CreateDestination(
"Dragon Isles Raids",
{
CreateChallengeSpell(432257, 2405, 2166), -- Path of the Bitter Legacy Aberrus
CreateChallengeSpell(432254, 2388, 2119), -- Path of the Primal Prison Vault of the Incarnates
CreateChallengeSpell(432258, 2502, 2232), -- Path of the Scorching Dream Amirdrassil
}).SetExpansion(ExpansionDragonflight)
CreateDestination(
LocZone("Acherus: The Ebon Hold", 647),
{
CreateSpell(50977), -- Death Gate
}) -- I haven't set an expansion because it's in a Classic zone, added in Wrath, and was moved in Legion.
CreateDestination(
LocZone("Emerald Dreamway", 715),
{
CreateSpell(193753), -- Dreamwalk
}).SetExpansion(ExpansionLegion)
CreateDestination(
LocZone("The Exodar", 103),
{
CreateSpell(32271), -- Teleport: Exodar
CreatePortalSpell(32266), -- Portal: Exodar
}).SetExpansion(ExpansionBurningCrusade)
CreateDestination(
"Fishing Pool", -- No localization.
{
CreateConditionalSpell(201891, AtContinent(ContinentIdBrokenIsles)), -- Undercurrent
CreateConditionalConsumable(162515, InBFAZone), -- Midnight Salmon
})
CreateDestination(
GARRISON_LOCATION_TOOLTIP,
{
CreateItem(110560), -- Garrison Hearthstone
}).SetExpansion(ExpansionDraenor)
CreateDestination(
LocZone("Gilneas", 202),
{
CreateConditionalItem(211788, IsRace("Worgen")), -- Tess's Peacebloom
}).SetExpansion(ExpansionCataclysm)
CreateDestination(
LocZone("Hall of the Guardian", 734),
{
CreateSpell(193759), -- Teleport: Hall of the Guardian
}).SetExpansion(ExpansionLegion)
-- TODO: Include destination in name
CreateDestination(
"Hearth (Necrolord)",
{
CreateSpell(324547) -- Hearth Kidneystone
})
CreateDestination(
LocZone("Highmountain", 869),
{
CreateConditionalConsumable(141017, AtContinent(ContinentIdBrokenIsles)), -- Scroll of Town Portal: Lian'tril
CreateConditionalItem(140493, OnDayAtContinent(DayThursday, ContinentIdBrokenIsles)), -- Adept's Guide to Dimensional Rifting
CreateChallengeSpell(410078, 1207, 731), -- Path of the Earth-Warder Neltharion's Lair
}).SetExpansion(ExpansionLegion)
CreateDestination(
LocZone("Icecrown", 118),
{
CreateItem(46874), -- Argent Crusader's Tabard
}).SetExpansion(ExpansionWrath)
CreateDestination(
LocZone("Ironforge", 87),
{
CreateSpell(3562), -- Teleport: Ironforge
CreatePortalSpell(11416) -- Portal: Ironforge
}).SetExpansion(ExpansionClassic)
CreateDestination(
LocZone("Isle of Thunder", 504),
{
CreateConditionalItem(95567, AtZone(MapIDIsleOfThunder )), -- Kirin Tor Beacon
CreateConditionalItem(95568, AtZone(MapIDIsleOfThunder )), -- Sunreaver Beacon
}).SetExpansion(ExpansionPandaria)
CreateDestination(
LocArea("Karabor", 6930),
{
CreateItem(118663), -- Relic of Karabor
}).SetExpansion(ExpansionDraenor)
CreateDestination(
LocZone("Karazhan", 794),
{
CreateItem(22589), -- Atiesh, Greatstaff of the Guardian
CreateItem(22630), -- Atiesh, Greatstaff of the Guardian
CreateItem(22631), -- Atiesh, Greatstaff of the Guardian
CreateItem(22632), -- Atiesh, Greatstaff of the Guardian
CreateItem(142469), -- Violet Seal of the Grand Magus
CreateChallengeSpell(373262, 175, 821), -- Path of the Fallen Guardian Karazhan
}).SetExpansion(ExpansionClassic)
CreateDestination(
LocZone("Khaz Algar", 2274),
{
CreateItem(221966), -- Wormhole Generator: Khaz Algar
}).SetExpansion(ExpansionWarWithin)
CreateDestination(
LocZone("Kul Tiras", 876),
{
CreateItem(168807) -- Wormhole Generator: Kul Tiras
}).SetExpansion(ExpansionBattleForAzeroth)
CreateDestination(
LocZone("Kun-Lai Summit", 379),
{
CreateConditionalSpell(126892, function() return not HaveUpgradedZen() end ), -- Zen Pilgrimage
}).SetExpansion(ExpansionPandaria)
CreateDestination(
LocZone("Maldraxxus", 1536),
{
CreateItem(181163), -- Scroll of Teleport: Theater of Pain
CreateConsumable(184502), -- Attendant's Pocket Portal: Maldraxxus
}).SetExpansion(ExpansionShadowlands)
CreateDestination(
LocZone("Mechagon", 1490),
{
CreateConsumable(167075), -- Ultrasafe Transporter: Mechagon
CreateChallengeSpell(373274, 2006, 1490), -- Path of the Scrappy Prince Operation: Mechagon
CreateConditionalConsumable(169114, AtZone(MapIDMechagon)) -- Personal Time Displacer
}).SetExpansion(ExpansionBattleForAzeroth)
CreateDestination(
"Mole Machine", -- No localization.
{
CreateSpell(265225), -- Mole Machine
})
CreateDestination(
LocZone("Moonglade", 80),
{
CreateSpell(18960), -- Teleport: Moonglade
CreateItem(21711), -- Lunar Festival Invitation
}).SetExpansion(ExpansionClassic)
CreateDestination(
LocZone("Nazmir", 863),
{
CreateChallengeSpell(410074, 1712, 1041), -- Path of Festering Rot The Underrot
}).SetExpansion(ExpansionBattleForAzeroth)
CreateDestination(
LocZone("Netherstorm", 109),
{
CreateItem(30542), -- Dimensional Ripper - Area 52
}).SetExpansion(ExpansionBurningCrusade)
CreateDestination(
LocZone("Northrend", 113),
{
CreateItem(48933), -- Wormhole Generator: Northrend
}).SetExpansion(ExpansionWrath)
CreateDestination(
LocZone("Ohn'ahran Plains", 2023),
{
CreateConsumable(200613), -- Aylaag Windstone Fragment
}).SetExpansion(ExpansionDragonflight)
CreateDestination(
LocZone("Orgrimmar", 85),
{
CreateSpell(3567), -- Teleport: Orgrimmar
CreatePortalSpell(11417), -- Portal: Orgrimmar
CreateItem(63207), -- Wrap of Unity
CreateItem(63353), -- Shroud of Cooperation
CreateItem(65274), -- Cloak of Coordination
}).SetExpansion(ExpansionClassic)
CreateDestination(
LocZone("Oribos", 1670),
{
CreateSpell(344587), -- Teleport: Oribos
CreatePortalSpell(344597), -- Portal: Oribos
CreateConsumable(184504), -- Attendant's Pocket Portal: Oribos
}).SetExpansion(ExpansionShadowlands)
CreateDestination(
LocZone("Outland", 101),
{
CreateConditionalItem(129929, AtContinent(ContinentIdDraenor) ), -- Ever-Shifting Mirror
}).SetExpansion(ExpansionBurningCrusade)
CreateDestination(
LocZone("Pandaria", 424),
{
CreateConditionalConsumable(87548, AtContinent(ContinentIdPandaria)), -- Lorewalker's Lodestone
CreateItem(87215), -- Wormhole Generator: Pandaria
CreateConsumable(217930) -- Nostwin's Voucher
}).SetExpansion(ExpansionPandaria)
CreateDestination(
"Pandaria Dungeons",
{
CreateChallengeSpell(131225, 471, 437), -- Path of the Setting Sun Gate of the Setting Sun
CreateChallengeSpell(131222, 519, 453), -- Path of the Mogu King Mogu'shan Palace
CreateChallengeSpell(131232, 472, 476), -- Path of the Necromancer Scholomance
CreateChallengeSpell(131206, 470, 443), -- Path of the Shado-Pan Shado-Pan Monastery
CreateChallengeSpell(131228, 554, 457), -- Path of the Black Ox Siege of Niuzao
CreateChallengeSpell(131205, 469, 439), -- Path of the Stout Brew Stormstout Brewery
CreateChallengeSpell(131204, 464, 429), -- Path of the Jade Serpent Temple of the Jade Serpent
}).SetExpansion(ExpansionPandaria)
CreateDestination(
"Random", -- No localization.
{
CreateSpell(147420), -- One With Nature
CreateItem(64457), -- The Last Relic of Argus
CreateConditionalItem(136849, IsClass("DRUID")), -- Nature's Beacon
CreateItem(153004), -- Unstable Portal Emitter
CreateItem(189827), -- Cartel Xy's Proof of Initiation
CreateItem(192443), -- Element-Infused Rocket Helmet
CreateItem(193000), -- Ring-Bound Hourglass
CreateConditionalItem(163073, function() return AtContinent(ContinentIdKulTiras)() or AtContinent(ContinentIdZandalar)() or AtContinent(ContinentIdNazjatar)() end), -- Conch of Wa'mundi
})
CreateDestination(
LocArea("Ravenholdt", 0),
{
CreateItem(139590), -- Scroll of Teleport: Ravenholdt
}).SetExpansion(ExpansionClassic)
CreateDestination(
LocZone("Revendreth", 1525),
{
CreateItem(184501), -- 184501
}).SetExpansion(ExpansionShadowlands)
CreateDestination(
LocZone("Scarlet Monastery", 302),
{
CreateChallengeSpell(131231, 473, 431), -- Path of the Scarlet Blade Scarlet Halls
CreateChallengeSpell(131229, 474, 302), -- Path of the Scarlet Mitre Scarlet Monastery
}).SetExpansion(ExpansionClassic)
CreateDestination(
"Shadowlands Dungeons",
{
CreateChallengeSpell(354462, 2123, 1666), -- Path of the Courageous The Necrotic Wake
CreateChallengeSpell(354463, 2121, 1674), -- Path of the Plagued Plaguefall
CreateChallengeSpell(354464, 2120, 1669), -- Path of the Misty Forest Mists of Tirna Scithe
CreateChallengeSpell(354465, 2119, 1663), -- Path of the Sinful Soul Halls of Atonement
CreateChallengeSpell(354466, 2122, 2017), -- Path of the Ascendant Spires of Ascension
CreateChallengeSpell(354467, 2124, 1687), -- Path of the Undefeated Theater of Pain
CreateChallengeSpell(354468, 2118, 1677), -- Path of the Scheming Loa De Other Side
CreateChallengeSpell(354469, 2117, 1675), -- Path of the Stone Warden Sanguine Depths
CreateChallengeSpell(367416, 2225, 1989), -- Path of the Streetwise Merchant Tazavesh, the Veiled Market
CreateChallengeSpell(373190, 2093, 1735), -- Path of the Sire Castle Nathria
CreateChallengeSpell(373191, 2228, 1998), -- Path of the Tormented Soul Sanctum of Domination
CreateChallengeSpell(373192, 2290, 2047), -- Path of the First Ones Sepulcher of the First Ones
}).SetExpansion(ExpansionShadowlands)
CreateDestination(
LocZone("Shattrath City", 111),
{
CreateSpell(33690), -- Teleport: Shattrath (Alliance)
CreatePortalSpell(33691), -- Portal: Shattrath (Alliance)
CreateSpell(35715), -- Teleport: Shattrath (Horde)
CreatePortalSpell(35717), -- Portal: Shattrath (Horde)
}).SetExpansion(ExpansionBurningCrusade)
CreateDestination(
LocArea("Shipyard", 6668),
{
CreateItem(128353), -- Admiral's Compass
}).SetExpansion(ExpansionDraenor)
CreateDestination(
LocZone("Silvermoon City", 110),
{
CreateSpell(32272), -- Teleport: Silvermoon
CreatePortalSpell(32267), -- Portal: Silvermoon
}).SetExpansion(ExpansionBurningCrusade)
CreateDestination(
LocArea("Stonard", 75),
{
CreateSpell(49358), -- Teleport: Stonard
CreatePortalSpell(49361), -- Portal: Stonard
}).SetExpansion(ExpansionClassic)
CreateDestination(
LocZone("Stormheim", 634),
{
CreateConditionalItem(140493, OnDayAtContinent(DayFriday, ContinentIdBrokenIsles)), -- Adept's Guide to Dimensional Rifting
CreateChallengeSpell(393764, 1194, 703), -- Path of Proven Worth Halls of Valor
}).SetExpansion(ExpansionLegion)
CreateDestination(
LocZone("Stormsong Valley", 942),
{
CreateItem(202046) -- Lucky Tortollan Charm
}).SetExpansion(ExpansionDragonflight)
CreateDestination(
LocZone("Stormwind City", 84),
{
CreateSpell(3561), -- Teleport: Stormwind
CreatePortalSpell(10059), -- Portal: Stormwind
CreateItem(63206), -- Wrap of Unity
CreateItem(63352), -- Shroud of Cooperation
CreateItem(65360), -- Cloak of Coordination
}).SetExpansion(ExpansionClassic)
CreateDestination(
LocZone("Suramar", 680),
{
CreateItem(140324), -- Mobile Telemancy Beacon
CreateConditionalConsumable(141014, AtContinent(ContinentIdBrokenIsles)), -- Scroll of Town Portal: Sashj'tar
CreateConditionalItem(140493, OnDayAtContinent(DayTuesday, ContinentIdBrokenIsles)), -- Adept's Guide to Dimensional Rifting
CreateChallengeSpell(393766, 1319, 761), -- Path of the Grand Magistrix Court of Stars
}).SetExpansion(ExpansionLegion)
CreateDestination(
LocZone("Tanaan Jungle", 534),
{
CreateConditionalItem(128502, AtZone(MapIDTanaanJungle)), -- Hunter's Seeking Crystal
CreateConditionalItem(128503, AtZone(MapIDTanaanJungle)), -- Master Hunter's Seeking Crystal
}).SetExpansion(ExpansionDraenor)
CreateDestination(
LocZone("Tanaris", 71),
{
CreateItem(18986), -- Ultrasafe Transporter - Gadgetzan
}).SetExpansion(ExpansionClassic)
CreateDestination(
LocArea("Temple of Five Dawns", 5820),
{
CreateConditionalSpell(126892, function() return HaveUpgradedZen() end ), -- Zen Pilgrimage
}).SetExpansion(ExpansionPandaria)
CreateDestination(
LocZone("Thaldraszus", 2025),
{
CreateChallengeSpell(424197, 2430, 2198) -- Path of Twisted Time Dawn of the Infinite
})
CreateDestination(
LocZone("The Forbidden Reach", 2151),
{
CreateConditionalConsumable(204481, AtZone(2151)), -- Morqut Hearth Totem
CreateConsumable(204802), -- Scroll of Teleport: Zskera Vaults
}).SetExpansion(ExpansionDragonflight)
CreateDestination(
LocZone("The Maw", 1543),
{
CreateConditionalConsumable(180817, function() return TeleporterGetOption("showInWrongZone") or (AtZone(MapIDMaw)() and not AtZone(MapIDKorthia)()) end), -- Cypher of Relocation
}).SetExpansion(ExpansionShadowlands)
CreateDestination(
LocZone("The Shadowlands", 1550),
{
CreateItem(172924), -- Wormhole Generator: Shadowlands
}).SetExpansion(ExpansionShadowlands)
CreateDestination(
LocArea("Theramore Isle", 513),
{
CreateSpell(49359), -- Teleport: Theramore
CreatePortalSpell(49360), -- Portal: Theramore
}).SetExpansion(ExpansionClassic)
CreateDestination(
LocZone("Timeless Isle", 554),
{
CreateItem(103678), -- Time-Lost Artifact
CreateItem(219222), -- Time-Lost Artifact
}).SetExpansion(ExpansionPandaria)
CreateDestination(
LocZone("Thunder Bluff", 88),
{
CreateSpell(3566), -- Teleport: Thunder Bluff
CreatePortalSpell(11420), -- Portal: Thunder Bluff
}).SetExpansion(ExpansionClassic)
CreateDestination(
LocZone("Tiragarde Sound", 895),
{
CreateChallengeSpell(410071, 1704, 936) -- Path of the Freebooter Freehold
}).SetExpansion(ExpansionBattleForAzeroth)
CreateDestination(
LocZone("Tirisfal Glades", 18),
{
CreateItem(173523), -- Tirisfal Camp Scroll
}).SetExpansion(ExpansionClassic)
CreateDestination(
LocZone("Tol Barad", 773),
{
CreateItem(63378), -- Hellscream's Reach Tabard
CreateItem(63379), -- Baradin's Wardens Tabard
CreateSpell(88342), -- Teleport: Tol Barad (Alliance)
CreateSpell(88344), -- Teleport: Tol Barad (Horde)
CreatePortalSpell(88345), -- Portal: Tol Barad (Alliance)
CreatePortalSpell(88346), -- Portal: Tol Barad (Horde)
}).SetExpansion(ExpansionCataclysm)
CreateDestination(
LocZone("Uldum", 249),
{
CreateChallengeSpell(410080, 319, 325) -- Path of Wind's Domain Vortex Pinnacle
}).SetExpansion(ExpansionCataclysm)
CreateDestination(
LocZone("Undercity", 90),
{
CreateSpell(3563), -- Teleport: Undercity
CreatePortalSpell(11418), -- Portal: Undercity
}).SetExpansion(ExpansionClassic)
CreateDestination(
"Undermine",
{
CreateChallengeSpell(1226482, 2779, 2346), -- Path of the Full House Liberation of Undermine
CreateConditionalItem(234389, InUndermineRaid), -- Gallagio Loyalty Rewards Card: Silver
CreateConditionalItem(234390, InUndermineRaid), -- Gallagio Loyalty Rewards Card: Gold
CreateConditionalItem(234391, InUndermineRaid), -- Gallagio Loyalty Rewards Card: Platinum
CreateConditionalItem(234392, InUndermineRaid), -- Gallagio Loyalty Rewards Card: Black
CreateConditionalItem(234393, InUndermineRaid), -- Gallagio Loyalty Rewards Card: Diamond
CreateConditionalItem(234394, InUndermineRaid), -- Gallagio Loyalty Rewards Card: Legendary
}).SetExpansion(ExpansionWarWithin)
CreateDestination(