-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathOCES.lua
613 lines (604 loc) · 30.3 KB
/
OCES.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
--[[
OneClickEnchantScroll v8.0.1.4 (r26)
Copyright (c) 2010-2018, All rights reserved.
Written an maintained by:
Sará @ Festung der Stürme (EU-de) - Sara#2672 - [email protected]
Contributors:
https://github.com/fubaBfA
You may use this AddOn free of monetary charge and modify this AddOn for personal use.
You may redistribute modified versions of this AddOn, as long as you credit the original author(s).
THIS ADDON IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND.
]]
local scrollText = "Scroll"; -- default english button text
local enchantingTradeSkillNames = {
[GetSpellInfo(264455)] = true, -- Classic
[GetSpellInfo(264460)] = true, -- Outland
[GetSpellInfo(264462)] = true, -- Northrend
[GetSpellInfo(264464)] = true, -- Cataclysm
[GetSpellInfo(264467)] = true, -- Pandaria
[GetSpellInfo(264469)] = true, -- Draenor
[GetSpellInfo(264471)] = true, -- Legion
[GetSpellInfo(264473)] = true, -- Kul Tiran (BfA Alliance)
[GetSpellInfo(265805)] = true, -- Zandalari (BfA Horde)
}
local loc = GetLocale();
if loc == "deDE" then
scrollText = "Rolle";
elseif loc == "frFR" then
scrollText = "Parchemin";
elseif loc == "itIT" then
scrollText = "Pergamene";
elseif (loc == "esES") or (loc == "esMX") then
scrollText = "Pergamino";
elseif (loc == "ptBR") or (loc == "ptPT") then
scrollText = "Pergaminho";
elseif loc == "ruRU" then
scrollText = "Свиток";
elseif loc == "koKR" then
scrollText = "두루마리";
elseif loc == "zhCN" then
scrollText = "卷轴";
elseif loc == "zhTW" then
scrollText = "卷軸";
end
local mapSpellToItem = {
[7745] = 38772, -- Enchant 2H Weapon - Minor Impact
[7786] = 38779, -- Enchant Weapon - Minor Beastslayer
[7788] = 38780, -- Enchant Weapon - Minor Striking
[7793] = 38781, -- Enchant 2H Weapon - Lesser Intellect
[13380] = 38788, -- Enchant 2H Weapon - Lesser Versatility
[13503] = 38794, -- Enchant Weapon - Lesser Striking
[13529] = 38796, -- Enchant 2H Weapon - Lesser Impact
[13653] = 38813, -- Enchant Weapon - Lesser Beastslayer
[13655] = 38814, -- Enchant Weapon - Lesser Elemental Slayer
[13693] = 38821, -- Enchant Weapon - Striking
[13695] = 38822, -- Enchant 2H Weapon - Impact
[13898] = 38838, -- Enchant Weapon - Fiery Weapon
[13915] = 38840, -- Enchant Weapon - Demonslaying
[13937] = 38845, -- Enchant 2H Weapon - Greater Impact
[13943] = 38848, -- Enchant Weapon - Greater Striking
[20029] = 38868, -- Enchant Weapon - Icy Chill
[20030] = 38869, -- Enchant 2H Weapon - Superior Impact
[20031] = 38870, -- Enchant Weapon - Superior Striking
[20032] = 38871, -- Enchant Weapon - Lifestealing
[20033] = 38872, -- Enchant Weapon - Unholy Weapon
[20034] = 38873, -- Enchant Weapon - Crusader
[20035] = 38874, -- Enchant 2H Weapon - Major Versatility
[20036] = 38875, -- Enchant 2H Weapon - Major Intellect
[21931] = 38876, -- Enchant Weapon - Winter's Might
[22749] = 38877, -- Enchant Weapon - Spellpower
[22750] = 38878, -- Enchant Weapon - Healing Power
[23799] = 38879, -- Enchant Weapon - Strength
[23800] = 38880, -- Enchant Weapon - Agility
[23803] = 38883, -- Enchant Weapon - Mighty Versatility
[23804] = 38884, -- Enchant Weapon - Mighty Intellect
[27837] = 38896, -- Enchant 2H Weapon - Agility
[64441] = 46026, -- Enchant Weapon - Blade Ward
[64579] = 46098, -- Enchant Weapon - Blood Draining
[7418] = 38679, -- Enchant Bracer - Minor Health
[7420] = 38766, -- Enchant Chest - Minor Health
[7426] = 38767, -- Enchant Chest - Minor Absorption
[7428] = 38768, -- Enchant Bracer - Minor Dodge
[7443] = 38769, -- Enchant Chest - Minor Mana
[7457] = 38771, -- Enchant Bracer - Minor Stamina
[7748] = 38773, -- Enchant Chest - Lesser Health
[7766] = 38774, -- Enchant Bracer - Minor Versatility
[7771] = 38775, -- Enchant Cloak - Minor Protection
[7776] = 38776, -- Enchant Chest - Lesser Mana
[7779] = 38777, -- Enchant Bracer - Minor Agility
[7782] = 38778, -- Enchant Bracer - Minor Strength
[7857] = 38782, -- Enchant Chest - Health
[7859] = 38783, -- Enchant Bracer - Lesser Versatility
[7863] = 38785, -- Enchant Boots - Minor Stamina
[7867] = 38786, -- Enchant Boots - Minor Agility
[13378] = 38787, -- Enchant Shield - Minor Stamina
[13419] = 38789, -- Enchant Cloak - Minor Agility
[13421] = 38790, -- Enchant Cloak - Lesser Protection
[13464] = 38791, -- Enchant Shield - Lesser Protection
[13485] = 38792, -- Enchant Shield - Lesser Versatility
[13501] = 38793, -- Enchant Bracer - Lesser Stamina
[13536] = 38797, -- Enchant Bracer - Lesser Strength
[13538] = 38798, -- Enchant Chest - Lesser Absorption
[13607] = 38799, -- Enchant Chest - Mana
[13612] = 38800, -- Enchant Gloves - Mining
[13617] = 38801, -- Enchant Gloves - Herbalism
[13620] = 38802, -- Enchant Gloves - Fishing
[13622] = 38803, -- Enchant Bracer - Lesser Intellect
[13626] = 38804, -- Enchant Chest - Minor Stats
[13631] = 38805, -- Enchant Shield - Lesser Stamina
[13635] = 38806, -- Enchant Cloak - Defense
[13637] = 38807, -- Enchant Boots - Lesser Agility
[13640] = 38808, -- Enchant Chest - Greater Health
[13642] = 38809, -- Enchant Bracer - Versatility
[13644] = 38810, -- Enchant Boots - Lesser Stamina
[13646] = 38811, -- Enchant Bracer - Lesser Dodge
[13648] = 38812, -- Enchant Bracer - Stamina
[13659] = 38816, -- Enchant Shield - Versatility
[13661] = 38817, -- Enchant Bracer - Strength
[13663] = 38818, -- Enchant Chest - Greater Mana
[13687] = 38819, -- Enchant Boots - Lesser Versatility
[13689] = 38820, -- Enchant Shield - Lesser Parry
[13698] = 38823, -- Enchant Gloves - Skinning
[13700] = 38824, -- Enchant Chest - Lesser Stats
[13746] = 38825, -- Enchant Cloak - Greater Defense
[13815] = 38827, -- Enchant Gloves - Agility
[13817] = 38828, -- Enchant Shield - Stamina
[13822] = 38829, -- Enchant Bracer - Intellect
[13836] = 38830, -- Enchant Boots - Stamina
[13841] = 38831, -- Enchant Gloves - Advanced Mining
[13846] = 38832, -- Enchant Bracer - Greater Versatility
[13858] = 38833, -- Enchant Chest - Superior Health
[13868] = 38834, -- Enchant Gloves - Advanced Herbalism
[13882] = 38835, -- Enchant Cloak - Lesser Agility
[13887] = 38836, -- Enchant Gloves - Strength
[13890] = 38837, -- Enchant Boots - Minor Speed
[13905] = 38839, -- Enchant Shield - Greater Versatility
[13917] = 38841, -- Enchant Chest - Superior Mana
[13931] = 38842, -- Enchant Bracer - Dodge
[13935] = 38844, -- Enchant Boots - Agility
[13939] = 38846, -- Enchant Bracer - Greater Strength
[13941] = 38847, -- Enchant Chest - Stats
[13945] = 38849, -- Enchant Bracer - Greater Stamina
[13947] = 38850, -- Enchant Gloves - Riding Skill
[13948] = 38851, -- Enchant Gloves - Minor Haste
[20008] = 38852, -- Enchant Bracer - Greater Intellect
[20009] = 38853, -- Enchant Bracer - Superior Versatility
[20010] = 38854, -- Enchant Bracer - Superior Strength
[20011] = 38855, -- Enchant Bracer - Superior Stamina
[20012] = 38856, -- Enchant Gloves - Greater Agility
[20013] = 38857, -- Enchant Gloves - Greater Strength
[20015] = 38859, -- Enchant Cloak - Superior Defense
[20016] = 38860, -- Enchant Shield - Vitality
[20017] = 38861, -- Enchant Shield - Greater Stamina
[20020] = 38862, -- Enchant Boots - Greater Stamina
[20023] = 38863, -- Enchant Boots - Greater Agility
[20024] = 38864, -- Enchant Boots - Versatility
[20025] = 38865, -- Enchant Chest - Greater Stats
[20026] = 38866, -- Enchant Chest - Major Health
[20028] = 38867, -- Enchant Chest - Major Mana
[23801] = 38881, -- Enchant Bracer - Argent Versatility
[23802] = 38882, -- Enchant Bracer - Healing Power
[25072] = 38885, -- Enchant Gloves - Threat
[25073] = 38886, -- Enchant Gloves - Shadow Power
[25074] = 38887, -- Enchant Gloves - Frost Power
[25078] = 38888, -- Enchant Gloves - Fire Power
[25079] = 38889, -- Enchant Gloves - Healing Power
[25080] = 38890, -- Enchant Gloves - Superior Agility
[25083] = 38893, -- Enchant Cloak - Stealth
[25084] = 38894, -- Enchant Cloak - Subtlety
[44506] = 38960, -- Enchant Gloves - Gatherer
[63746] = 45628, -- Enchant Boots - Lesser Accuracy
[71692] = 50816, -- Enchant Gloves - Angler
[27967] = 38917, -- Enchant Weapon - Major Striking
[27968] = 38918, -- Enchant Weapon - Major Intellect
[27971] = 38919, -- Enchant 2H Weapon - Savagery
[27972] = 38920, -- Enchant Weapon - Potency
[27975] = 38921, -- Enchant Weapon - Major Spellpower
[27977] = 38922, -- Enchant 2H Weapon - Major Agility
[27981] = 38923, -- Enchant Weapon - Sunfire
[27982] = 38924, -- Enchant Weapon - Soulfrost
[27984] = 38925, -- Enchant Weapon - Mongoose
[28003] = 38926, -- Enchant Weapon - Spellsurge
[28004] = 38927, -- Enchant Weapon - Battlemaster
[34010] = 38946, -- Enchant Weapon - Major Healing
[42620] = 38947, -- Enchant Weapon - Greater Agility
[27951] = 37603, -- Enchant Boots - Dexterity
[25086] = 38895, -- Enchant Cloak - Dodge
[27899] = 38897, -- Enchant Bracer - Brawn
[27905] = 38898, -- Enchant Bracer - Stats
[27906] = 38899, -- Enchant Bracer - Greater Dodge
[27911] = 38900, -- Enchant Bracer - Superior Healing
[27913] = 38901, -- Enchant Bracer - Versatility Prime
[27914] = 38902, -- Enchant Bracer - Fortitude
[27917] = 38903, -- Enchant Bracer - Spellpower
[27944] = 38904, -- Enchant Shield - Lesser Dodge
[27945] = 38905, -- Enchant Shield - Intellect
[27946] = 38906, -- Enchant Shield - Parry
[27948] = 38908, -- Enchant Boots - Vitality
[27950] = 38909, -- Enchant Boots - Fortitude
[27954] = 38910, -- Enchant Boots - Surefooted
[27957] = 38911, -- Enchant Chest - Exceptional Health
[27960] = 38913, -- Enchant Chest - Exceptional Stats
[27961] = 38914, -- Enchant Cloak - Major Armor
[33990] = 38928, -- Enchant Chest - Major Versatility
[33991] = 38929, -- Enchant Chest - Versatility Prime
[33992] = 38930, -- Enchant Chest - Major Resilience
[33993] = 38931, -- Enchant Gloves - Blasting
[33994] = 38932, -- Enchant Gloves - Precise Strikes
[33995] = 38933, -- Enchant Gloves - Major Strength
[33996] = 38934, -- Enchant Gloves - Assault
[33997] = 38935, -- Enchant Gloves - Major Spellpower
[33999] = 38936, -- Enchant Gloves - Major Healing
[34001] = 38937, -- Enchant Bracer - Major Intellect
[34002] = 38938, -- Enchant Bracer - Lesser Assault
[34003] = 38939, -- Enchant Cloak - PvP Power
[34004] = 38940, -- Enchant Cloak - Greater Agility
[34007] = 38943, -- Enchant Boots - Cat's Swiftness
[34008] = 38944, -- Enchant Boots - Boar's Speed
[34009] = 38945, -- Enchant Shield - Major Stamina
[44383] = 38949, -- Enchant Shield - Resilience
[46594] = 38999, -- Enchant Chest - Dodge
[47051] = 39000, -- Enchant Cloak - Greater Dodge
[42974] = 38948, -- Enchant Weapon - Executioner
[44510] = 38963, -- Enchant Weapon - Exceptional Versatility
[44524] = 38965, -- Enchant Weapon - Icebreaker
[44576] = 38972, -- Enchant Weapon - Lifeward
[44595] = 38981, -- Enchant 2H Weapon - Scourgebane
[44621] = 38988, -- Enchant Weapon - Giant Slayer
[44629] = 38991, -- Enchant Weapon - Exceptional Spellpower
[44630] = 38992, -- Enchant 2H Weapon - Greater Savagery
[44633] = 38995, -- Enchant Weapon - Exceptional Agility
[46578] = 38998, -- Enchant Weapon - Deathfrost
[59625] = 43987, -- Enchant Weapon - Black Magic
[60621] = 44453, -- Enchant Weapon - Greater Potency
[60691] = 44463, -- Enchant 2H Weapon - Massacre
[60707] = 44466, -- Enchant Weapon - Superior Potency
[60714] = 44467, -- Enchant Weapon - Mighty Spellpower
[59621] = 44493, -- Enchant Weapon - Berserking
[59619] = 44497, -- Enchant Weapon - Accuracy
[62948] = 45056, -- Enchant Staff - Greater Spellpower
[62959] = 45060, -- Enchant Staff - Spellpower
[27958] = 38912, -- Enchant Chest - Exceptional Mana
[44484] = 38951, -- Enchant Gloves - Haste
[44488] = 38953, -- Enchant Gloves - Precision
[44489] = 38954, -- Enchant Shield - Dodge
[44492] = 38955, -- Enchant Chest - Mighty Health
[44500] = 38959, -- Enchant Cloak - Superior Agility
[44508] = 38961, -- Enchant Boots - Greater Versatility
[44509] = 38962, -- Enchant Chest - Greater Versatility
[44513] = 38964, -- Enchant Gloves - Greater Assault
[44528] = 38966, -- Enchant Boots - Greater Fortitude
[44529] = 38967, -- Enchant Gloves - Major Agility
[44555] = 38968, -- Enchant Bracer - Exceptional Intellect
[60616] = 38971, -- Enchant Bracer - Assault
[44582] = 38973, -- Enchant Cloak - Minor Power
[44584] = 38974, -- Enchant Boots - Greater Vitality
[44588] = 38975, -- Enchant Chest - Exceptional Resilience
[44589] = 38976, -- Enchant Boots - Superior Agility
[44591] = 38978, -- Enchant Cloak - Superior Dodge
[44592] = 38979, -- Enchant Gloves - Exceptional Spellpower
[44593] = 38980, -- Enchant Bracer - Major Versatility
[44598] = 38984, -- Enchant Bracer - Haste
[60623] = 38986, -- Enchant Boots - Icewalker
[44616] = 38987, -- Enchant Bracer - Greater Stats
[44623] = 38989, -- Enchant Chest - Super Stats
[44625] = 38990, -- Enchant Gloves - Armsman
[44631] = 38993, -- Enchant Cloak - Shadow Armor
[44635] = 38997, -- Enchant Bracer - Greater Spellpower
[47672] = 39001, -- Enchant Cloak - Mighty Stamina
[47766] = 39002, -- Enchant Chest - Greater Dodge
[47898] = 39003, -- Enchant Cloak - Greater Speed
[47899] = 39004, -- Enchant Cloak - Wisdom
[47900] = 39005, -- Enchant Chest - Super Health
[47901] = 39006, -- Enchant Boots - Tuskarr's Vitality
[60606] = 44449, -- Enchant Boots - Assault
[60653] = 44455, -- Shield Enchant - Greater Intellect
[60609] = 44456, -- Enchant Cloak - Speed
[60663] = 44457, -- Enchant Cloak - Major Agility
[60668] = 44458, -- Enchant Gloves - Crusher
[60692] = 44465, -- Enchant Chest - Powerful Stats
[60763] = 44469, -- Enchant Boots - Greater Assault
[60767] = 44470, -- Enchant Bracer - Superior Spellpower
[44575] = 44815, -- Enchant Bracer - Greater Assault
[62256] = 44947, -- Enchant Bracer - Major Stamina
[74195] = 52747, -- Enchant Weapon - Mending
[96264] = 68784, -- Enchant Bracer - Agility
[96261] = 68785, -- Enchant Bracer - Major Strength
[96262] = 68786, -- Enchant Bracer - Mighty Intellect
[74132] = 52687, -- Enchant Gloves - Mastery
[74189] = 52743, -- Enchant Boots - Earthen Vitality
[74191] = 52744, -- Enchant Chest - Mighty Stats
[74192] = 52745, -- Enchant Cloak - Lesser Power
[74193] = 52746, -- Enchant Bracer - Speed
[74197] = 52748, -- Enchant Weapon - Avalanche
[74198] = 52749, -- Enchant Gloves - Haste
[74199] = 52750, -- Enchant Boots - Haste
[74200] = 52751, -- Enchant Chest - Stamina
[74201] = 52752, -- Enchant Bracer - Critical Strike
[74202] = 52753, -- Enchant Cloak - Intellect
[74207] = 52754, -- Enchant Shield - Protection
[74211] = 52755, -- Enchant Weapon - Elemental Slayer
[74212] = 52756, -- Enchant Gloves - Exceptional Strength
[74213] = 52757, -- Enchant Boots - Major Agility
[74214] = 52758, -- Enchant Chest - Mighty Resilience
[74220] = 52759, -- Enchant Gloves - Greater Haste
[74223] = 52760, -- Enchant Weapon - Hurricane
[74225] = 52761, -- Enchant Weapon - Heartsong
[74226] = 52762, -- Enchant Shield - Mastery
[74229] = 52763, -- Enchant Bracer - Superior Dodge
[74230] = 52764, -- Enchant Cloak - Critical Strike
[74231] = 52765, -- Enchant Chest - Exceptional Versatility
[74232] = 52766, -- Enchant Bracer - Precision
[74234] = 52767, -- Enchant Cloak - Protection
[74235] = 52768, -- Enchant Off-Hand - Superior Intellect
[74236] = 52769, -- Enchant Boots - Precision
[74237] = 52770, -- Enchant Bracer - Exceptional Versatility
[74238] = 52771, -- Enchant Boots - Mastery
[74239] = 52772, -- Enchant Bracer - Greater Haste
[74240] = 52773, -- Enchant Cloak - Greater Intellect
[74242] = 52774, -- Enchant Weapon - Power Torrent
[74244] = 52775, -- Enchant Weapon - Windwalk
[74246] = 52776, -- Enchant Weapon - Landslide
[74247] = 52777, -- Enchant Cloak - Greater Critical Strike
[74248] = 52778, -- Enchant Bracer - Greater Critical Strike
[74250] = 52779, -- Enchant Chest - Peerless Stats
[74251] = 52780, -- Enchant Chest - Greater Stamina
[74252] = 52781, -- Enchant Boots - Assassin's Step
[74253] = 52782, -- Enchant Boots - Lavawalker
[74254] = 52783, -- Enchant Gloves - Mighty Strength
[74255] = 52784, -- Enchant Gloves - Greater Mastery
[74256] = 52785, -- Enchant Bracer - Greater Speed
[95471] = 68134, -- Enchant 2H Weapon - Mighty Agility
[104425] = 74723, -- Enchant Weapon - Windsong
[104427] = 74724, -- Enchant Weapon - Jade Spirit
[104430] = 74725, -- Enchant Weapon - Elemental Force
[104434] = 74726, -- Enchant Weapon - Dancing Steel
[104440] = 74727, -- Enchant Weapon - Colossus
[104442] = 74728, -- Enchant Weapon - River's Song
[104338] = 74700, -- Enchant Bracer - Mastery
[104385] = 74701, -- Enchant Bracer - Major Dodge
[104389] = 74703, -- Enchant Bracer - Super Intellect
[104390] = 74704, -- Enchant Bracer - Exceptional Strength
[104391] = 74705, -- Enchant Bracer - Greater Agility
[104392] = 74706, -- Enchant Chest - Super Resilience
[104393] = 74707, -- Enchant Chest - Mighty Versatility
[104395] = 74708, -- Enchant Chest - Glorious Stats
[104397] = 74709, -- Enchant Chest - Superior Stamina
[104398] = 74710, -- Enchant Cloak - Accuracy
[104401] = 74711, -- Enchant Cloak - Greater Protection
[104403] = 74712, -- Enchant Cloak - Superior Intellect
[104404] = 74713, -- Enchant Cloak - Superior Critical Strike
[104407] = 74715, -- Enchant Boots - Greater Haste
[104408] = 74716, -- Enchant Boots - Greater Precision
[104409] = 74717, -- Enchant Boots - Blurred Speed
[104414] = 74718, -- Enchant Boots - Pandaren's Step
[104416] = 74719, -- Enchant Gloves - Greater Haste
[104417] = 74720, -- Enchant Gloves - Superior Haste
[104419] = 74721, -- Enchant Gloves - Super Strength
[104420] = 74722, -- Enchant Gloves - Superior Mastery
[104445] = 74729, -- Enchant Off-Hand - Major Intellect
[130758] = 89737, -- Enchant Shield - Greater Parry
[158914] = 110638, -- Enchant Ring - Gift of Critical Strike
[158915] = 110639, -- Enchant Ring - Gift of Haste
[158916] = 110640, -- Enchant Ring - Gift of Mastery
[158917] = 110641, -- Enchant Ring - Gift of Multistrike (now Mastery)
[158918] = 110642, -- Enchant Ring - Gift of Versatility
[158899] = 110645, -- Enchant Neck - Gift of Critical Strike
[158900] = 110646, -- Enchant Neck - Gift of Haste
[158901] = 110647, -- Enchant Neck - Gift of Mastery
[158902] = 110648, -- Enchant Neck - Gift of Multistrike (now Haste)
[158903] = 110649, -- Enchant Neck - Gift of Versatility
[158884] = 110652, -- Enchant Cloak - Gift of Critical Strike
[158885] = 110653, -- Enchant Cloak - Gift of Haste
[158886] = 110654, -- Enchant Cloak - Gift of Mastery
[158887] = 110655, -- Enchant Cloak - Gift of Multistrike (now Critical Strike)
[158889] = 110656, -- Enchant Cloak - Gift of Versatility
[159235] = 110682, -- Enchant Weapon - Mark of the Thunderlord
[159236] = 112093, -- Enchant Weapon - Mark of the Shattered Hand
[159673] = 112115, -- Enchant Weapon - Mark of Shadowmoon
[159674] = 112160, -- Enchant Weapon - Mark of Blackrock
[159671] = 112164, -- Enchant Weapon - Mark of Warsong
[159672] = 112165, -- Enchant Weapon - Mark of the Frostwolf
[173323] = 118015, -- Enchant Weapon - Mark of Bleeding Hollow
[158907] = 110617, -- Enchant Ring - Breath of Critical Strike
[158908] = 110618, -- Enchant Ring - Breath of Haste
[158909] = 110619, -- Enchant Ring - Breath of Mastery
[158910] = 110620, -- Enchant Ring - Breath of Multistrike (now Mastery)
[158911] = 110621, -- Enchant Ring - Breath of Versatility
[158892] = 110624, -- Enchant Neck - Breath of Critical Strike
[158893] = 110625, -- Enchant Neck - Breath of Haste
[158894] = 110626, -- Enchant Neck - Breath of Mastery
[158895] = 110627, -- Enchant Neck - Breath of Multistrike (now Haste)
[158896] = 110628, -- Enchant Neck - Breath of Versatility
[158877] = 110631, -- Enchant Cloak - Breath of Critical Strike
[158878] = 110632, -- Enchant Cloak - Breath of Haste
[158879] = 110633, -- Enchant Cloak - Breath of Mastery
[158880] = 110634, -- Enchant Cloak - Breath of Multistrike (now Critical Strike)
[158881] = 110635, -- Enchant Cloak - Breath of Versatility
[190866] = 128537, -- Enchant Ring - Word of Critical Strike
[190992] = 128537, -- Enchant Ring - Word of Critical Strike
[191009] = 128537, -- Enchant Ring - Word of Critical Strike
[190867] = 128538, -- Enchant Ring - Word of Haste
[190993] = 128538, -- Enchant Ring - Word of Haste
[191010] = 128538, -- Enchant Ring - Word of Haste
[190868] = 128539, -- Enchant Ring - Word of Mastery
[190994] = 128539, -- Enchant Ring - Word of Mastery
[191011] = 128539, -- Enchant Ring - Word of Mastery
[190869] = 128540, -- Enchant Ring - Word of Versatility
[190995] = 128540, -- Enchant Ring - Word of Versatility
[191012] = 128540, -- Enchant Ring - Word of Versatility
[190874] = 128545, -- Enchant Cloak - Word of Strength
[191000] = 128545, -- Enchant Cloak - Word of Strength
[191017] = 128545, -- Enchant Cloak - Word of Strength
[190875] = 128546, -- Enchant Cloak - Word of Agility
[191001] = 128546, -- Enchant Cloak - Word of Agility
[191018] = 128546, -- Enchant Cloak - Word of Agility
[190876] = 128547, -- Enchant Cloak - Word of Intellect
[191002] = 128547, -- Enchant Cloak - Word of Intellect
[191019] = 128547, -- Enchant Cloak - Word of Intellect
[235695] = 144304, -- Enchant Neck - Mark of the Master
[235699] = 144304, -- Enchant Neck - Mark of the Master
[235703] = 144304, -- Enchant Neck - Mark of the Master
[235696] = 144305, -- Enchant Neck - Mark of the Versatile
[235700] = 144305, -- Enchant Neck - Mark of the Versatile
[235704] = 144305, -- Enchant Neck - Mark of the Versatile
[235697] = 144306, -- Enchant Neck - Mark of the Quick
[235701] = 144306, -- Enchant Neck - Mark of the Quick
[235705] = 144306, -- Enchant Neck - Mark of the Quick
[235698] = 144307, -- Enchant Neck - Mark of the Deadly
[235702] = 144307, -- Enchant Neck - Mark of the Deadly
[235706] = 144307, -- Enchant Neck - Mark of the Deadly
[190870] = 128541, -- Enchant Ring - Binding of Critical Strike
[190996] = 128541, -- Enchant Ring - Binding of Critical Strike
[191013] = 128541, -- Enchant Ring - Binding of Critical Strike
[190871] = 128542, -- Enchant Ring - Binding of Haste
[190997] = 128542, -- Enchant Ring - Binding of Haste
[191014] = 128542, -- Enchant Ring - Binding of Haste
[190872] = 128543, -- Enchant Ring - Binding of Mastery
[190998] = 128543, -- Enchant Ring - Binding of Mastery
[191015] = 128543, -- Enchant Ring - Binding of Mastery
[190873] = 128544, -- Enchant Ring - Binding of Versatility
[190999] = 128544, -- Enchant Ring - Binding of Versatility
[191016] = 128544, -- Enchant Ring - Binding of Versatility
[190877] = 128548, -- Enchant Cloak - Binding of Strength
[191003] = 128548, -- Enchant Cloak - Binding of Strength
[191020] = 128548, -- Enchant Cloak - Binding of Strength
[190878] = 128549, -- Enchant Cloak - Binding of Agility
[191004] = 128549, -- Enchant Cloak - Binding of Agility
[191021] = 128549, -- Enchant Cloak - Binding of Agility
[190879] = 128550, -- Enchant Cloak - Binding of Intellect
[191005] = 128550, -- Enchant Cloak - Binding of Intellect
[191022] = 128550, -- Enchant Cloak - Binding of Intellect
[190892] = 128551, -- Enchant Neck - Mark of the Claw
[191006] = 128551, -- Enchant Neck - Mark of the Claw
[191023] = 128551, -- Enchant Neck - Mark of the Claw
[190893] = 128552, -- Enchant Neck - Mark of the Distant Army
[191007] = 128552, -- Enchant Neck - Mark of the Distant Army
[191024] = 128552, -- Enchant Neck - Mark of the Distant Army
[190894] = 128553, -- Enchant Neck - Mark of the Hidden Satyr
[191008] = 128553, -- Enchant Neck - Mark of the Hidden Satyr
[191025] = 128553, -- Enchant Neck - Mark of the Hidden Satyr
[190954] = 128554, -- Enchant Shoulder - Boon of the Scavenger
[190988] = 128558, -- Enchant Gloves - Legion Herbalism
[190989] = 128559, -- Enchant Gloves - Legion Mining
[190990] = 128560, -- Enchant Gloves - Legion Skinning
[190991] = 128561, -- Enchant Gloves - Legion Surveying
[228402] = 141908, -- Enchant Neck - Mark of the Heavy Hide
[228403] = 141908, -- Enchant Neck - Mark of the Heavy Hide
[228404] = 141908, -- Enchant Neck - Mark of the Heavy Hide
[228405] = 141909, -- Enchant Neck - Mark of the Trained Soldier
[228406] = 141909, -- Enchant Neck - Mark of the Trained Soldier
[228407] = 141909, -- Enchant Neck - Mark of the Trained Soldier
[228408] = 141910, -- Enchant Neck - Mark of the Ancient Priestess
[228409] = 141910, -- Enchant Neck - Mark of the Ancient Priestess
[228410] = 141910, -- Enchant Neck - Mark of the Ancient Priestess
-- Battle for Azeroth
[271433] = 160330, -- Enchant Bracers - Cooled Hearthing
[271366] = 160328, -- Enchant Bracers - Safe Hearthing
[255068] = 159469, -- Enchant Bracers - Swift Hearthing (Alliance)
[267495] = 153436, -- Enchant Bracers - Swift Hearthing (Horde)
[255070] = 153437, -- Gloves - Crafting (Alliance)
[267498] = 159471, -- Gloves - Crafting (Horde)
[255035] = 153430, -- Gloves - Herbalism (Alliance)
[267458] = 159464, -- Gloves - Herbalism (Horde)
[255040] = 153431, -- Gloves - Mining (Alliance)
[267482] = 159466, -- Gloves - Mining (Horde)
[255065] = 153434, -- Gloves - Skinning (Alliance)
[267486] = 159467, -- Gloves - Skinning (Horde)
[255066] = 153435, -- Gloves - Surveying (Alliance)
[267490] = 159468, -- Gloves - Surveying (Horde)
[255071] = 153438, -- Ring - Crit
[255086] = 153438,
[255094] = 153438,
[255072] = 153439, -- Ring - Haste
[255087] = 153439,
[255095] = 153439,
[255073] = 153440, -- Ring - Mastery
[255088] = 153440,
[255096] = 153440,
[255074] = 153441, -- Ring - Versatility
[255089] = 153441,
[255097] = 153441,
[255103] = 153476, -- Weapon - Coastal Surge
[255104] = 153476,
[255105] = 153476,
[255141] = 153480, -- Weapon - Gale-Force Striking
[255142] = 153480,
[255143] = 153480,
[255110] = 153478, -- Weapon - Siphoning
[255111] = 153478,
[255112] = 153478,
[255129] = 153479, -- Weapon - Torrent of Elements
[255130] = 153479,
[255131] = 153479,
[268907] = 159785, -- Weapon - Deadly Navigation
[268908] = 159785,
[268909] = 159785,
[268901] = 159787, -- Weapon - Masterful Navigation
[268902] = 159787,
[268903] = 159787,
[268894] = 159786, -- Weapon - Quick Navigation
[268895] = 159786,
[268897] = 159786,
[268913] = 159789, -- Weapon - Stalwart Navigation
[268914] = 159789,
[268915] = 159789,
[268852] = 159788, -- Weapon - Versatile Navigation
[268878] = 159788,
[268879] = 159788,
[255075] = 153442, -- Ring - Crit 2
[255090] = 153442,
[255098] = 153442,
[255076] = 153443, -- Ring - Haste 2
[255091] = 153443,
[255099] = 153443,
[255077] = 153444, -- Ring - Mastery 2
[255092] = 153444,
[255100] = 153444,
[255078] = 153445, -- Ring - Versatility 2
[255093] = 153445,
[255101] = 153445,
}
local f = CreateFrame("Button", "TradeSkillCreateScrollButton", TradeSkillFrame, "MagicButtonTemplate");
f:SetPoint("TOPRIGHT", TradeSkillFrame.DetailsFrame.CreateButton, "TOPLEFT");
if IsAddOnLoaded("ElvUI") and ElvUI then
ElvUI[1]:GetModule('Skins'):HandleButton(f);
f:ClearAllPoints();
f:SetPoint("TOPRIGHT", TradeSkillFrame.DetailsFrame.CreateButton, "TOPLEFT", -1, 0);
end
f:SetScript("OnClick", function()
if (IsShiftKeyDown() and f.itemID) then
local activeEditBox = ChatEdit_GetActiveWindow();
if activeEditBox then
local _,link = GetItemInfo(f.itemID);
ChatEdit_InsertLink(link);
end;
else
C_TradeSkillUI.CraftRecipe(TradeSkillFrame.DetailsFrame.selectedRecipeID);
UseItemByName(38682);
end;
end);
f:SetScript("OnEnter", function()
if f.itemID then
GameTooltip:SetOwner(f);
GameTooltip:SetItemByID(f.itemID);
end;
end);
f:SetScript("OnLeave", function()
GameTooltip:Hide();
end);
f:SetMotionScriptsWhileDisabled(true);
f:Hide();
local function OCES_RefreshButtons(self)
if C_TradeSkillUI.IsTradeSkillGuild() or C_TradeSkillUI.IsNPCCrafting() or C_TradeSkillUI.IsTradeSkillLinked() then
f:Hide();
else
local recipeInfo = self.selectedRecipeID and C_TradeSkillUI.GetRecipeInfo(self.selectedRecipeID);
if recipeInfo and recipeInfo.alternateVerb then
local tradeSkillName = select(2, C_TradeSkillUI.GetTradeSkillLine());
if enchantingTradeSkillNames[tradeSkillName] then
f.itemID = mapSpellToItem[recipeInfo.recipeID];
if (not f.itemID) then
print(string.format("OCES: Missing scroll item for spellID %d. Please report this at Curse, WoWInterface or GitHub so it can be added in the next version.", recipeInfo.recipeID));
end;
f:Show();
local numCreateable = recipeInfo.numAvailable;
local numScrollsAvailable = GetItemCount(38682);
TradeSkillCreateScrollButton:SetText(string.format("%s (%d)", scrollText, numScrollsAvailable));
if numScrollsAvailable == 0 then
numCreateable = 0;
end
if numCreateable > 0 then
TradeSkillCreateScrollButton:Enable();
else
TradeSkillCreateScrollButton:Disable();
end
else
f:Hide();
end
else
f:Hide();
end
end
end
hooksecurefunc(TradeSkillFrame.DetailsFrame, "RefreshButtons", OCES_RefreshButtons);