-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathtotc.lua
697 lines (666 loc) · 22.8 KB
/
totc.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
local totcTranslation = {}
totcTranslation["h47638"] = 47655
totcTranslation["h47915"] = 47607
totcTranslation["h47916"] = 47610
totcTranslation["h47917"] = 47609
totcTranslation["h47918"] = 47611
totcTranslation["h47919"] = 47608
totcTranslation["h47920"] = 47578
totcTranslation["h47921"] = 47617
totcTranslation["h47922"] = 47612
totcTranslation["h47923"] = 47613
totcTranslation["h47924"] = 47615
totcTranslation["h47925"] = 47614
totcTranslation["h47926"] = 47616
totcTranslation["h47927"] = 47663
totcTranslation["h47928"] = 47618
totcTranslation["h47929"] = 47669
totcTranslation["h47930"] = 47619
totcTranslation["h47931"] = 47620
totcTranslation["h47932"] = 47621
totcTranslation["h47933"] = 47683
totcTranslation["h47934"] = 47703
totcTranslation["h47935"] = 47680
totcTranslation["h47937"] = 47711
totcTranslation["h47938"] = 47676
totcTranslation["h47939"] = 47679
totcTranslation["h47940"] = 47721
totcTranslation["h47941"] = 47724
totcTranslation["h47942"] = 47718
totcTranslation["h47943"] = 47717
totcTranslation["h47944"] = 47720
totcTranslation["h47945"] = 47719
totcTranslation["h47946"] = 47726
totcTranslation["h47947"] = 47728
totcTranslation["h47948"] = 47725
totcTranslation["h47949"] = 47727
totcTranslation["h47950"] = 47740
totcTranslation["h47951"] = 47737
totcTranslation["h47952"] = 47738
totcTranslation["h47953"] = 47736
totcTranslation["h47954"] = 47739
totcTranslation["h47955"] = 47700
totcTranslation["h47956"] = 47745
totcTranslation["h47957"] = 47747
totcTranslation["h47958"] = 47742
totcTranslation["h47959"] = 47746
totcTranslation["h47960"] = 47743
totcTranslation["h47961"] = 47744
totcTranslation["h47962"] = 47809
totcTranslation["h47963"] = 47812
totcTranslation["h47964"] = 47811
totcTranslation["h47965"] = 47813
totcTranslation["h47966"] = 47808
totcTranslation["h47967"] = 47810
totcTranslation["h47968"] = 47815
totcTranslation["h47969"] = 47829
totcTranslation["h47970"] = 47830
totcTranslation["h47971"] = 47814
totcTranslation["h47972"] = 47832
totcTranslation["h47973"] = 47816
totcTranslation["h47974"] = 47838
totcTranslation["h47975"] = 47741
totcTranslation["h47976"] = 47836
totcTranslation["h47977"] = 47837
totcTranslation["h47978"] = 47835
totcTranslation["h47979"] = 47834
totcTranslation["h47988"] = 47849
totcTranslation["h47989"] = 47850
totcTranslation["h47990"] = 47851
totcTranslation["h47991"] = 47852
totcTranslation["h47992"] = 47853
totcTranslation["h47993"] = 47854
totcTranslation["h47994"] = 47855
totcTranslation["h47995"] = 47856
totcTranslation["h47996"] = 47857
totcTranslation["h47997"] = 47858
totcTranslation["h47998"] = 47859
totcTranslation["h47999"] = 47860
totcTranslation["h48000"] = 47861
totcTranslation["h48001"] = 47862
totcTranslation["h48002"] = 47863
totcTranslation["h48003"] = 47864
totcTranslation["h48004"] = 47865
totcTranslation["h48005"] = 47866
totcTranslation["h48006"] = 47867
totcTranslation["h48007"] = 47868
totcTranslation["h48008"] = 47869
totcTranslation["h48009"] = 47870
totcTranslation["h48010"] = 47871
totcTranslation["h48011"] = 47872
totcTranslation["h48012"] = 47873
totcTranslation["h48013"] = 47874
totcTranslation["h48014"] = 47875
totcTranslation["h48015"] = 47876
totcTranslation["h48016"] = 47877
totcTranslation["h48017"] = 47878
totcTranslation["h48018"] = 47879
totcTranslation["h48019"] = 47880
totcTranslation["h48020"] = 47881
totcTranslation["h48021"] = 47882
totcTranslation["h48022"] = 47883
totcTranslation["h48023"] = 47884
totcTranslation["h48024"] = 47885
totcTranslation["h48025"] = 47886
totcTranslation["h48026"] = 47887
totcTranslation["h48027"] = 47888
totcTranslation["h48028"] = 47889
totcTranslation["h48030"] = 47890
totcTranslation["h48032"] = 47913
totcTranslation["h48034"] = 47891
totcTranslation["h48036"] = 47892
totcTranslation["h48038"] = 47893
totcTranslation["h48039"] = 47894
totcTranslation["h48040"] = 47895
totcTranslation["h48041"] = 47896
totcTranslation["h48042"] = 47897
totcTranslation["h48043"] = 47898
totcTranslation["h48044"] = 47899
totcTranslation["h48045"] = 47900
totcTranslation["h48046"] = 47901
totcTranslation["h48048"] = 47903
totcTranslation["h48049"] = 47904
totcTranslation["h48050"] = 47905
totcTranslation["h48051"] = 47906
totcTranslation["h48052"] = 47907
totcTranslation["h48053"] = 47908
totcTranslation["h48054"] = 47909
totcTranslation["h48055"] = 47910
totcTranslation["h48056"] = 47911
totcTranslation["h49233"] = 49232
totcTranslation["h49234"] = 49231
totcTranslation["h49237"] = 49236
totcTranslation["h49238"] = 49235
totcTranslation["n47578"] = 47920
totcTranslation["n47607"] = 47915
totcTranslation["n47608"] = 47919
totcTranslation["n47609"] = 47917
totcTranslation["n47610"] = 47916
totcTranslation["n47611"] = 47918
totcTranslation["n47612"] = 47922
totcTranslation["n47613"] = 47923
totcTranslation["n47614"] = 47925
totcTranslation["n47615"] = 47924
totcTranslation["n47616"] = 47926
totcTranslation["n47617"] = 47921
totcTranslation["n47618"] = 47928
totcTranslation["n47619"] = 47930
totcTranslation["n47620"] = 47931
totcTranslation["n47621"] = 47932
totcTranslation["n47655"] = 47638
totcTranslation["n47663"] = 47927
totcTranslation["n47669"] = 47929
totcTranslation["n47676"] = 47938
totcTranslation["n47679"] = 47939
totcTranslation["n47680"] = 47935
totcTranslation["n47683"] = 47933
totcTranslation["n47700"] = 47955
totcTranslation["n47703"] = 47934
totcTranslation["n47711"] = 47937
totcTranslation["n47717"] = 47943
totcTranslation["n47718"] = 47942
totcTranslation["n47719"] = 47945
totcTranslation["n47720"] = 47944
totcTranslation["n47721"] = 47940
totcTranslation["n47724"] = 47941
totcTranslation["n47725"] = 47948
totcTranslation["n47726"] = 47946
totcTranslation["n47727"] = 47949
totcTranslation["n47728"] = 47947
totcTranslation["n47736"] = 47953
totcTranslation["n47737"] = 47951
totcTranslation["n47738"] = 47952
totcTranslation["n47739"] = 47954
totcTranslation["n47740"] = 47950
totcTranslation["n47741"] = 47975
totcTranslation["n47742"] = 47958
totcTranslation["n47743"] = 47960
totcTranslation["n47744"] = 47961
totcTranslation["n47745"] = 47956
totcTranslation["n47746"] = 47959
totcTranslation["n47747"] = 47957
totcTranslation["n47808"] = 47966
totcTranslation["n47809"] = 47962
totcTranslation["n47810"] = 47967
totcTranslation["n47811"] = 47964
totcTranslation["n47812"] = 47963
totcTranslation["n47813"] = 47965
totcTranslation["n47814"] = 47971
totcTranslation["n47815"] = 47968
totcTranslation["n47816"] = 47973
totcTranslation["n47829"] = 47969
totcTranslation["n47830"] = 47970
totcTranslation["n47832"] = 47972
totcTranslation["n47834"] = 47979
totcTranslation["n47835"] = 47978
totcTranslation["n47836"] = 47976
totcTranslation["n47837"] = 47977
totcTranslation["n47838"] = 47974
totcTranslation["n47849"] = 47988
totcTranslation["n47850"] = 47989
totcTranslation["n47851"] = 47990
totcTranslation["n47852"] = 47991
totcTranslation["n47853"] = 47992
totcTranslation["n47854"] = 47993
totcTranslation["n47855"] = 47994
totcTranslation["n47856"] = 47995
totcTranslation["n47857"] = 47996
totcTranslation["n47858"] = 47997
totcTranslation["n47859"] = 47998
totcTranslation["n47860"] = 47999
totcTranslation["n47861"] = 48000
totcTranslation["n47862"] = 48001
totcTranslation["n47863"] = 48002
totcTranslation["n47864"] = 48003
totcTranslation["n47865"] = 48004
totcTranslation["n47866"] = 48005
totcTranslation["n47867"] = 48006
totcTranslation["n47868"] = 48007
totcTranslation["n47869"] = 48008
totcTranslation["n47870"] = 48009
totcTranslation["n47871"] = 48010
totcTranslation["n47872"] = 48011
totcTranslation["n47873"] = 48012
totcTranslation["n47874"] = 48013
totcTranslation["n47875"] = 48014
totcTranslation["n47876"] = 48015
totcTranslation["n47877"] = 48016
totcTranslation["n47878"] = 48017
totcTranslation["n47879"] = 48018
totcTranslation["n47880"] = 48019
totcTranslation["n47881"] = 48020
totcTranslation["n47882"] = 48021
totcTranslation["n47883"] = 48022
totcTranslation["n47884"] = 48023
totcTranslation["n47885"] = 48024
totcTranslation["n47886"] = 48025
totcTranslation["n47887"] = 48026
totcTranslation["n47888"] = 48027
totcTranslation["n47889"] = 48028
totcTranslation["n47890"] = 48030
totcTranslation["n47891"] = 48034
totcTranslation["n47892"] = 48036
totcTranslation["n47893"] = 48038
totcTranslation["n47894"] = 48039
totcTranslation["n47895"] = 48040
totcTranslation["n47896"] = 48041
totcTranslation["n47897"] = 48042
totcTranslation["n47898"] = 48043
totcTranslation["n47899"] = 48044
totcTranslation["n47900"] = 48045
totcTranslation["n47901"] = 48046
totcTranslation["n47903"] = 48048
totcTranslation["n47904"] = 48049
totcTranslation["n47905"] = 48050
totcTranslation["n47906"] = 48051
totcTranslation["n47907"] = 48052
totcTranslation["n47908"] = 48053
totcTranslation["n47909"] = 48054
totcTranslation["n47910"] = 48055
totcTranslation["n47911"] = 48056
totcTranslation["n47913"] = 48032
totcTranslation["n49231"] = 49234
totcTranslation["n49232"] = 49233
totcTranslation["n49235"] = 49238
totcTranslation["n49236"] = 49237
totcTranslation["h46964"] = 46963
totcTranslation["h46965"] = 46960
totcTranslation["h46966"] = 46959
totcTranslation["h46967"] = 46961
totcTranslation["h46971"] = 46970
totcTranslation["h46973"] = 46972
totcTranslation["h46977"] = 46976
totcTranslation["h46980"] = 46979
totcTranslation["h46986"] = 46985
totcTranslation["h46991"] = 46990
totcTranslation["h46995"] = 46994
totcTranslation["h47001"] = 46996
totcTranslation["h47002"] = 46999
totcTranslation["h47004"] = 47000
totcTranslation["h47059"] = 47041
totcTranslation["h47060"] = 47043
totcTranslation["h47061"] = 47052
totcTranslation["h47062"] = 47051
totcTranslation["h47063"] = 47042
totcTranslation["h47064"] = 47053
totcTranslation["h47066"] = 47055
totcTranslation["h47067"] = 47057
totcTranslation["h47068"] = 47056
totcTranslation["h47074"] = 47073
totcTranslation["h47075"] = 47070
totcTranslation["h47076"] = 47072
totcTranslation["h47077"] = 47071
totcTranslation["h47078"] = 47069
totcTranslation["h47084"] = 47081
totcTranslation["h47085"] = 47079
totcTranslation["h47086"] = 47082
totcTranslation["h47087"] = 47083
totcTranslation["h47088"] = 47080
totcTranslation["h47095"] = 47089
totcTranslation["h47096"] = 47094
totcTranslation["h47097"] = 47092
totcTranslation["h47098"] = 47093
totcTranslation["h47099"] = 47090
totcTranslation["h47109"] = 47106
totcTranslation["h47111"] = 47108
totcTranslation["h47112"] = 47107
totcTranslation["h47113"] = 47104
totcTranslation["h47129"] = 47126
totcTranslation["h47130"] = 47114
totcTranslation["h47131"] = 47115
totcTranslation["h47132"] = 47121
totcTranslation["h47133"] = 47116
totcTranslation["h47143"] = 47141
totcTranslation["h47144"] = 47139
totcTranslation["h47145"] = 47140
totcTranslation["h47146"] = 47138
totcTranslation["h47147"] = 47142
totcTranslation["h47153"] = 47152
totcTranslation["h47155"] = 47151
totcTranslation["h47156"] = 47148
totcTranslation["h47190"] = 47186
totcTranslation["h47205"] = 47194
totcTranslation["h47207"] = 47195
totcTranslation["h47224"] = 47223
totcTranslation["h47237"] = 47054
totcTranslation["h47239"] = 47233
totcTranslation["h47412"] = 47251
totcTranslation["h47413"] = 47252
totcTranslation["h47414"] = 47253
totcTranslation["h47415"] = 47254
totcTranslation["h47417"] = 47256
totcTranslation["h47418"] = 47257
totcTranslation["h47419"] = 47258
totcTranslation["h47420"] = 47259
totcTranslation["h47421"] = 47260
totcTranslation["h47422"] = 47261
totcTranslation["h47423"] = 47262
totcTranslation["h47424"] = 47263
totcTranslation["h47425"] = 47264
totcTranslation["h47426"] = 47265
totcTranslation["h47427"] = 47266
totcTranslation["h47428"] = 47267
totcTranslation["h47429"] = 47268
totcTranslation["h47430"] = 47269
totcTranslation["h47431"] = 47270
totcTranslation["h47432"] = 47271
totcTranslation["h47433"] = 47272
totcTranslation["h47434"] = 47273
totcTranslation["h47435"] = 47274
totcTranslation["h47436"] = 47275
totcTranslation["h47437"] = 47276
totcTranslation["h47438"] = 47277
totcTranslation["h47439"] = 47278
totcTranslation["h47440"] = 47279
totcTranslation["h47441"] = 47280
totcTranslation["h47442"] = 47281
totcTranslation["h47443"] = 47282
totcTranslation["h47444"] = 47283
totcTranslation["h47445"] = 47284
totcTranslation["h47446"] = 47285
totcTranslation["h47447"] = 47286
totcTranslation["h47448"] = 47287
totcTranslation["h47449"] = 47288
totcTranslation["h47450"] = 47289
totcTranslation["h47451"] = 47290
totcTranslation["h47452"] = 47291
totcTranslation["h47453"] = 47292
totcTranslation["h47454"] = 47293
totcTranslation["h47455"] = 47294
totcTranslation["h47456"] = 47295
totcTranslation["h47457"] = 47296
totcTranslation["h47458"] = 47297
totcTranslation["h47459"] = 47298
totcTranslation["h47460"] = 47299
totcTranslation["h47461"] = 47300
totcTranslation["h47462"] = 47301
totcTranslation["h47463"] = 47302
totcTranslation["h47464"] = 47303
totcTranslation["h47465"] = 47304
totcTranslation["h47466"] = 47305
totcTranslation["h47467"] = 47306
totcTranslation["h47468"] = 47307
totcTranslation["h47469"] = 47308
totcTranslation["h47470"] = 47309
totcTranslation["h47471"] = 47310
totcTranslation["h47473"] = 47312
totcTranslation["h47475"] = 47314
totcTranslation["h47476"] = 47315
totcTranslation["h47477"] = 47316
totcTranslation["h47478"] = 47317
totcTranslation["h47480"] = 47319
totcTranslation["h47483"] = 47322
totcTranslation["h47485"] = 47324
totcTranslation["h47489"] = 47327
totcTranslation["h47490"] = 47328
totcTranslation["h47640"] = 47622
totcTranslation["h47641"] = 47623
totcTranslation["h47642"] = 47627
totcTranslation["h47643"] = 47626
totcTranslation["h47644"] = 47624
totcTranslation["h47645"] = 47625
totcTranslation["h47646"] = 47629
totcTranslation["h47647"] = 47635
totcTranslation["h47648"] = 47631
totcTranslation["h47649"] = 47630
totcTranslation["h47650"] = 47628
totcTranslation["h47651"] = 47634
totcTranslation["h47652"] = 47632
totcTranslation["h47653"] = 47633
totcTranslation["h47654"] = 47639
totcTranslation["h47655"] = 47638
totcTranslation["h47656"] = 47637
totcTranslation["h47657"] = 47636
totcTranslation["n46959"] = 46966
totcTranslation["n46960"] = 46965
totcTranslation["n46961"] = 46967
totcTranslation["n46963"] = 46964
totcTranslation["n46970"] = 46971
totcTranslation["n46972"] = 46973
totcTranslation["n46976"] = 46977
totcTranslation["n46979"] = 46980
totcTranslation["n46985"] = 46986
totcTranslation["n46990"] = 46991
totcTranslation["n46994"] = 46995
totcTranslation["n46996"] = 47001
totcTranslation["n46999"] = 47002
totcTranslation["n47000"] = 47004
totcTranslation["n47041"] = 47059
totcTranslation["n47042"] = 47063
totcTranslation["n47043"] = 47060
totcTranslation["n47051"] = 47062
totcTranslation["n47052"] = 47061
totcTranslation["n47053"] = 47064
totcTranslation["n47054"] = 47237
totcTranslation["n47055"] = 47066
totcTranslation["n47056"] = 47068
totcTranslation["n47057"] = 47067
totcTranslation["n47069"] = 47078
totcTranslation["n47070"] = 47075
totcTranslation["n47071"] = 47077
totcTranslation["n47072"] = 47076
totcTranslation["n47073"] = 47074
totcTranslation["n47079"] = 47085
totcTranslation["n47080"] = 47088
totcTranslation["n47081"] = 47084
totcTranslation["n47082"] = 47086
totcTranslation["n47083"] = 47087
totcTranslation["n47089"] = 47095
totcTranslation["n47090"] = 47099
totcTranslation["n47092"] = 47097
totcTranslation["n47093"] = 47098
totcTranslation["n47094"] = 47096
totcTranslation["n47104"] = 47113
totcTranslation["n47106"] = 47109
totcTranslation["n47107"] = 47112
totcTranslation["n47108"] = 47111
totcTranslation["n47114"] = 47130
totcTranslation["n47115"] = 47131
totcTranslation["n47116"] = 47133
totcTranslation["n47121"] = 47132
totcTranslation["n47126"] = 47129
totcTranslation["n47138"] = 47146
totcTranslation["n47139"] = 47144
totcTranslation["n47140"] = 47145
totcTranslation["n47141"] = 47143
totcTranslation["n47142"] = 47147
totcTranslation["n47148"] = 47156
totcTranslation["n47151"] = 47155
totcTranslation["n47152"] = 47153
totcTranslation["n47186"] = 47190
totcTranslation["n47194"] = 47205
totcTranslation["n47195"] = 47207
totcTranslation["n47223"] = 47224
totcTranslation["n47233"] = 47239
totcTranslation["n47251"] = 47412
totcTranslation["n47252"] = 47413
totcTranslation["n47253"] = 47414
totcTranslation["n47254"] = 47415
totcTranslation["n47256"] = 47417
totcTranslation["n47257"] = 47418
totcTranslation["n47258"] = 47419
totcTranslation["n47259"] = 47420
totcTranslation["n47260"] = 47421
totcTranslation["n47261"] = 47422
totcTranslation["n47262"] = 47423
totcTranslation["n47263"] = 47424
totcTranslation["n47264"] = 47425
totcTranslation["n47265"] = 47426
totcTranslation["n47266"] = 47427
totcTranslation["n47267"] = 47428
totcTranslation["n47268"] = 47429
totcTranslation["n47269"] = 47430
totcTranslation["n47270"] = 47431
totcTranslation["n47271"] = 47432
totcTranslation["n47272"] = 47433
totcTranslation["n47273"] = 47434
totcTranslation["n47274"] = 47435
totcTranslation["n47275"] = 47436
totcTranslation["n47276"] = 47437
totcTranslation["n47277"] = 47438
totcTranslation["n47278"] = 47439
totcTranslation["n47279"] = 47440
totcTranslation["n47280"] = 47441
totcTranslation["n47281"] = 47442
totcTranslation["n47282"] = 47443
totcTranslation["n47283"] = 47444
totcTranslation["n47284"] = 47445
totcTranslation["n47285"] = 47446
totcTranslation["n47286"] = 47447
totcTranslation["n47287"] = 47448
totcTranslation["n47288"] = 47449
totcTranslation["n47289"] = 47450
totcTranslation["n47290"] = 47451
totcTranslation["n47291"] = 47452
totcTranslation["n47293"] = 47454
totcTranslation["n47294"] = 47455
totcTranslation["n47295"] = 47456
totcTranslation["n47296"] = 47457
totcTranslation["n47297"] = 47458
totcTranslation["n47298"] = 47459
totcTranslation["n47299"] = 47460
totcTranslation["n47300"] = 47461
totcTranslation["n47301"] = 47462
totcTranslation["n47302"] = 47463
totcTranslation["n47303"] = 47464
totcTranslation["n47304"] = 47465
totcTranslation["n47305"] = 47466
totcTranslation["n47306"] = 47467
totcTranslation["n47307"] = 47468
totcTranslation["n47308"] = 47469
totcTranslation["n47309"] = 47470
totcTranslation["n47310"] = 47471
totcTranslation["n47312"] = 47473
totcTranslation["n47314"] = 47475
totcTranslation["n47315"] = 47476
totcTranslation["n47316"] = 47477
totcTranslation["n47317"] = 47478
totcTranslation["n47319"] = 47480
totcTranslation["n47322"] = 47483
totcTranslation["n47324"] = 47485
totcTranslation["n47327"] = 47489
totcTranslation["n47328"] = 47490
totcTranslation["n47633"] = 47653
totcTranslation["n47640"] = 47622
totcTranslation["n47641"] = 47623
totcTranslation["n47642"] = 47627
totcTranslation["n47643"] = 47626
totcTranslation["n47644"] = 47624
totcTranslation["n47645"] = 47625
totcTranslation["n47646"] = 47629
totcTranslation["n47647"] = 47635
totcTranslation["n47648"] = 47631
totcTranslation["n47649"] = 47630
totcTranslation["n47650"] = 47628
totcTranslation["n47651"] = 47634
totcTranslation["n47652"] = 47632
totcTranslation["n47654"] = 47639
totcTranslation["n47655"] = 47638
totcTranslation["n47656"] = 47637
totcTranslation["n47657"] = 47636
function Prio3:importAtlasLootTOTC()
if Prio3.alreadyImportedAtlasLootTOTC then return nil end
if (not _G["AtlasLoot"]) then return nil end
if (not _G["AtlasLoot"].ItemDB) then return nil end
if (not _G["AtlasLoot"].ItemDB["Storage"]) then return nil end
if (not _G["AtlasLoot"].ItemDB["Storage"]["AtlasLootClassic_DungeonsAndRaids"]) then return nil end
if (not _G["AtlasLoot"].ItemDB["Storage"]["AtlasLootClassic_DungeonsAndRaids"]["TrialoftheCrusader"]) then return nil end
if (not _G["AtlasLoot"].ItemDB["Storage"]["AtlasLootClassic_DungeonsAndRaids"]["TrialoftheCrusader"]["items"]) then return nil end
Prio3.AtlasLootItemIdsTOTC = {}
for dummy1,v1 in pairs(_G["AtlasLoot"].ItemDB["Storage"]["AtlasLootClassic_DungeonsAndRaids"]["TrialoftheCrusader"]["items"]) do
if type(v1) == "table" then for dummy2,v2 in pairs(v1) do
if type(v2) == "table" then for dummy3,v3 in pairs(v2) do
-- finally go to the item Id :)
local itemId = tonumber(v3[2])
-- filter out tier sets
if ((itemId) and (itemId < 3000000) and (itemId > 100)) then
Prio3.AtlasLootItemIdsTOTC[itemId] = true
end
end end
end end
end
Prio3.alreadyImportedAtlasLootTOTC = true
Prio3:parseAtlasLootTOTC()
end
function Prio3:parseAtlasLootTOTC()
Prio3:Debug("parseAtlasLootTOTC start parsing")
-- see if we might already have all data
local haveAll = true
local missing = {}
local allItems = {}
-- look through all items ids (but only once)
for itemid,_ in pairs(Prio3.AtlasLootItemIdsTOTC) do
if tonumber(itemid) > 0 then
local itemname, itemlink = GetItemInfo(itemid)
if itemlink == nil then
missing[tonumber(itemid)] = true
haveAll = false
else
allItems[tonumber(itemid)] = itemname
end
end
end
if haveAll then
Prio3:Debug("parseAtlasLootTOTC found all, now search for matching")
local byName = {}
for itemid,name in pairs(allItems) do
if (byName[name]) then
-- encountered this name before: double found!
totcTranslation["a" .. tostring(itemid)] = byName[name]
totcTranslation["a" .. tostring(byName[name])] = itemid
else
-- first time we found this item: add to list
byName[name] = itemid
end
end
Prio3.AtlasLootFullyLoaded = true
Prio3:Print("Atlas Loot imported and parsed for Prio3 TOTC HC+NHC recognition.")
else
if Prio3.db.profile.debug then Prio3:Print("DEBUG: requested window to open after GET_ITEM_INFO_RECEIVED") end
-- queue for handling when GET_ITEM_INFO_RECEIVED event came through
-- k,v transform missing to needed
local needed = {}
for itemid,dummy in pairs(missing) do tinsert(needed,itemid) end
Prio3:Debug("parseAtlasLootTOTC missing some information on " .. table.concat(needed, "; "))
local t = {
needed_itemids = needed,
vars = {},
todo = function(itemlinks,vars)
Prio3:parseAtlasLootTOTC()
end,
}
table.insert(Prio3.GET_ITEM_INFO_RECEIVED_TodoList, t)
end
Prio3:Debug("parseAtlasLootTOTC stopped parsing AtlasLoot")
end
function Prio3:translateTOTC(player, itemIdA, itemIdB, itemIdC)
-- look into nhc items, if an hc item exist
local function translateSingle(itemId)
-- if nothing came in, then nothing will go out
if itemId == nil then return nil end
if (Prio3.AtlasLootFullyLoaded) then
-- look into AtlasLoot items, if another item exist
-- if this exists, should have priority over self-parsed lists
local alItem = totcTranslation["a" .. tostring(itemId)]
if (alItem) then return alItem end
end
local hcItem = totcTranslation["n" .. tostring(itemId)]
if (hcItem) then return hcItem end
-- look into hc items, if an nhc item exist
local nhcItem = totcTranslation["h" .. tostring(itemId)]
if (nhcItem) then return nhcItem end
-- nothing found
-- use "Glowing Pebble" if no results were found, so that the Prio number still matches later on
return 199914
end
local otherA = translateSingle(itemIdA)
local otherB = translateSingle(itemIdB)
local otherC = translateSingle(itemIdC)
if ( (otherA or otherB or otherC)
and ( (otherA ~= 199914) or (otherB ~= 199914) or (otherC ~= 199914) )
) then
-- we got results at all, and at least one is not a glowing pebble
return player .. "2", {otherA, otherB, otherC}
end
return nil
end