-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBankManagerRules.lua
1915 lines (1634 loc) · 87.1 KB
/
BankManagerRules.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
--[[
-------------------------------------------------------------------------------
-- BankManager, by Ayantirgold
-- BankManager, by Ayantir
-------------------------------------------------------------------------------
This software is under : CreativeCommons CC BY-NC-SA 4.0
Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0)
You are free to:
Share — copy and redistribute the material in any medium or format
Adapt — remix, transform, and build upon the material
The licensor cannot revoke these freedoms as long as you follow the license terms.
Under the following terms:
Attribution — You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
NonCommercial — You may not use the material for commercial purposes.
ShareAlike — If you remix, transform, or build upon the material, you must distribute your contributions under the same license as the original.
No additional restrictions — You may not apply legal terms or technological measures that legally restrict others from doing anything the license permits.
Please read full licence at :
http://creativecommons.org/licenses/by-nc-sa/4.0/legalcode
]]
-- BMR rules definition
-- Once you declared them here, don't forget to declare them in LAMSubmenu(), and add optionally block definition in buildLAMPanel() if your rule need a whole submenu
-- addFiltersTaggedAll is intended to regroup multiple filters, such as "all trait stones", "all armors", thoses rules are executed AFTER filters defined in addFilters() thanks to .position flag
BankManagerRules = {}
BankManagerRules.data = {}
BankManagerRules.defaults = {}
local ACTION_NOTSET = 1
local BMR_ITEMLINK = 1
local BMR_BAG_AND_SLOT = 2
local BMR_ITEMTYPE = 3
local BMR_ITEMTYPE_SPECIALIZED = 4
local ruleName
local LR = LibResearch
local BMR_RULEWRITER_VALUE_OPTIONAL_KEYWORD = 1
local BMR_RULEWRITER_VALUE_WITH_OPERATOR = 2
local BMR_RULEWRITER_VALUE_WITHOUT_OPERATOR = 3
local BMR_RULEWRITER_VALUE_NOTHING = 4
-- List of all things we cannot dynamically get
BankManagerRules.static = {}
-- Taken through the Crafts panels - it doesn't return correct values with itemLinkStyle, Quality and requiredLevel.
-- itemLink cannot be used, because GetItemLink() returns a link with the name hardcoded inside the link, so use the itemId.
-- /script d(GetItemLink(1, 19) .. " " .. BankManagerRules.static.refinedMaterial[1][10])
BankManagerRules.static.refinedMaterial = {
[CRAFTING_TYPE_BLACKSMITHING] = {
[1] = "|H0:item:5413:30:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h",
[2] = "|H0:item:4487:30:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h",
[3] = "|H0:item:23107:30:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h",
[4] = "|H0:item:6000:30:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h",
[5] = "|H0:item:6001:30:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h",
[6] = "|H0:item:46127:30:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h",
[7] = "|H0:item:46128:30:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h",
[8] = "|H0:item:46129:30:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h",
[9] = "|H0:item:46130:30:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h",
[10] = "|H0:item:64489:30:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h",
},
[CRAFTING_TYPE_CLOTHIER] = {
[1] = "|H0:item:811:30:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h",
[2] = "|H0:item:4463:30:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h",
[3] = "|H0:item:23125:30:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h",
[4] = "|H0:item:23126:30:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h",
[5] = "|H0:item:23127:30:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h",
[6] = "|H0:item:46131:30:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h",
[7] = "|H0:item:46132:30:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h",
[8] = "|H0:item:46133:30:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h",
[9] = "|H0:item:46134:30:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h",
[10] = "|H0:item:64504:30:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h",
},
[CRAFTING_TYPE_CLOTHIER * 100] = {
[1] = "|H0:item:794:30:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h",
[2] = "|H0:item:4447:30:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h",
[3] = "|H0:item:23099:30:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h",
[4] = "|H0:item:23100:30:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h",
[5] = "|H0:item:23101:30:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h",
[6] = "|H0:item:46135:30:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h",
[7] = "|H0:item:46136:30:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h",
[8] = "|H0:item:46137:30:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h",
[9] = "|H0:item:46138:30:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h",
[10] = "|H0:item:64506:30:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h",
},
[CRAFTING_TYPE_WOODWORKING] = {
[1] = "|H0:item:803:30:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h",
[2] = "|H0:item:533:30:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h",
[3] = "|H0:item:23121:30:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h",
[4] = "|H0:item:23122:30:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h",
[5] = "|H0:item:23123:30:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h",
[6] = "|H0:item:46139:30:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h",
[7] = "|H0:item:46140:30:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h",
[8] = "|H0:item:46141:30:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h",
[9] = "|H0:item:46142:30:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h",
[10] = "|H0:item:64502:30:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h",
},
[CRAFTING_TYPE_JEWELRYCRAFTING] = {
[1] = "|H1:item:135146:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h",
[2] = "|H1:item:135144:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h",
[3] = "|H1:item:135142:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h",
[4] = "|H1:item:135140:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h",
[5] = "|H1:item:135138:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h",
},
}
-- Thanks guild
BankManagerRules.static.rawMaterial = {
[CRAFTING_TYPE_BLACKSMITHING] = {
[1] = "|H0:item:808:30:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h",
[2] = "|H0:item:5820:30:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h",
[3] = "|H0:item:23103:30:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h",
[4] = "|H0:item:23104:30:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h",
[5] = "|H0:item:23105:30:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h",
[6] = "|H0:item:4482:30:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h",
[7] = "|H0:item:23133:30:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h",
[8] = "|H0:item:23134:30:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h",
[9] = "|H0:item:23135:30:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h",
[10] = "|H0:item:71198:30:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h",
},
[CRAFTING_TYPE_CLOTHIER] = {
[1] = "|H0:item:812:30:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h",
[2] = "|H0:item:4464:30:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h",
[3] = "|H0:item:23129:30:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h",
[4] = "|H0:item:23130:30:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h",
[5] = "|H0:item:23131:30:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h",
[6] = "|H0:item:33217:30:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h",
[7] = "|H0:item:33218:30:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h",
[8] = "|H0:item:33219:30:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h",
[9] = "|H0:item:33220:30:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h",
[10] = "|H0:item:71200:30:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h",
},
[CRAFTING_TYPE_CLOTHIER * 100] = {
[1] = "|H0:item:793:30:50:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h",
[2] = "|H0:item:4448:30:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h",
[3] = "|H0:item:23095:30:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h",
[4] = "|H0:item:6020:30:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h",
[5] = "|H0:item:23097:30:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h",
[6] = "|H0:item:23142:30:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h",
[7] = "|H0:item:23143:30:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h",
[8] = "|H0:item:800:30:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h",
[9] = "|H0:item:4478:30:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h",
[10] = "|H0:item:71239:30:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h",
},
[CRAFTING_TYPE_WOODWORKING] = {
[1] = "|H0:item:802:30:50:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h",
[2] = "|H0:item:521:30:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h",
[3] = "|H0:item:23117:30:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h",
[4] = "|H0:item:23118:30:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h",
[5] = "|H0:item:23119:30:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h",
[6] = "|H0:item:818:30:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h",
[7] = "|H0:item:4439:30:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h",
[8] = "|H0:item:23137:30:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h",
[9] = "|H0:item:23138:30:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h",
[10] = "|H0:item:71199:30:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h",
},
[CRAFTING_TYPE_JEWELRYCRAFTING] = {
[1] = "|H1:item:135137:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h",
[2] = "|H1:item:135139:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h",
[3] = "|H1:item:135141:30:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h",
[4] = "|H1:item:135143:30:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h",
[5] = "|H1:item:135145:30:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h",
},
}
-- From Dustman. But maybe move to GetItemLinkFlavorText should be better if ZOS revamp cooking again
-- 1 is food, 2 is drink, 3 is special
BankManagerRules.static.rawIngredients = {
--meat (health)
["28609"] = 1, --Game
["33752"] = 1, --Red Meat
["33753"] = 1, --Fish
["33754"] = 1, --White Meat
["33756"] = 1, --Small Game
["34321"] = 1, --Poultry
--fruits (magicka)
["28603"] = 1, --Tomato
["28610"] = 1, --Jazbay Grapes
["33755"] = 1, --Bananas
["34308"] = 1, --Melon
["34311"] = 1, --Apples
["34305"] = 1, --Pumpkin
--vegetables (stamina)
["28604"] = 1, --Greens
["33758"] = 1, --Potato
["34307"] = 1, --Radish
["34309"] = 1, --Beets
["34323"] = 1, --Corn
["34324"] = 1, --Carrots
--dish additives
["26954"] = 1, --Garlic
["27057"] = 1, --Cheese
["27058"] = 1, --Seasoning
["27063"] = 1, --Saltrice
["27064"] = 1, --Millet
["27100"] = 1, --Flour
--alcoholic (health)
["28639"] = 2, --Rye
["29030"] = 2, --Rice
["33774"] = 2, --Yeast
["34329"] = 2, --Barley
["34345"] = 2, --Surilie Grapes
["34348"] = 2, --Wheat
--tea (magicka)
["28636"] = 2, --Rose
["33768"] = 2, --Comberry
["33771"] = 2, --Jasmine
["33773"] = 2, --Mint
["34330"] = 2, --Lotus
["34334"] = 2, --Bittergreen
--tonic (stamina)
["33772"] = 2, --Coffee
["34333"] = 2, --Guarana
["34335"] = 2, --Yerba Mate
["34346"] = 2, --Gingko
["34347"] = 2, --Ginseng
["34349"] = 2, --Acai Berry
--drink additives
["27035"] = 2, --Isinglass
["27043"] = 2, --Honey
["27048"] = 2, --Metheglin
["27049"] = 2, --Lemon
["27052"] = 2, --Ginger
["28666"] = 2, --Seaweed
--rare dish additive
["26802"] = 3, --Frost Mirriam
--rare drink additive
["27059"] = 3, --Bervez Juice
--Perfect Roe
["64222"] = 3, --Perfect Roe
--Cyrodiil Citrus
["171326"] = 3, --Cyrodiil Citrus
}
-- raw items are maybe linked to ITEMTYPE_RAW_MATERIAL, but they are not linked to GetItemLinkItemStyle, so no function and nothing to enumerate.
BankManagerRules.static.rawStyles = {
[ITEMSTYLE_AREA_DWEMER] = "|H0:item:57665:30:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h",
[ITEMSTYLE_GLASS] = "|H0:item:64690:33:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h",
[ITEMSTYLE_AREA_AKAVIRI] = "|H0:item:64688:33:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h",
[ITEMSTYLE_AREA_ANCIENT_ORC] = "|H0:item:69556:30:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h",
[ITEMSTYLE_AREA_XIVKYN] = "|H0:item:59923:30:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h",
[ITEMSTYLE_ORG_THIEVES_GUILD] = "|H0:item:75371:30:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h",
[ITEMSTYLE_ORG_ASSASSINS] = "|H0:item:76911:30:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h",
[ITEMSTYLE_ORG_ABAHS_WATCH] = "|H0:item:76915:30:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h",
[ITEMSTYLE_ORG_DARK_BROTHERHOOD] = "|H0:item:79306:30:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h",
[ITEMSTYLE_ORG_ORDINATOR] = "|H1:item:81997:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h",
[ITEMSTYLE_ENEMY_MINOTAUR] = "|H1:item:81995:30:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h",
[ITEMSTYLE_ORG_BUOYANT_ARMIGER] = "|H1:item:121521:30:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h",
}
-- To display names nicely (even if level 1 got 2 solvents, only 1 is displayed here, but filter works, because not based on this array) itemLink here is not used by filter so it can be a little bit false
BankManagerRules.static.alchemyPotionSolventArray = {
[1] = "|H1:item:883:30:3:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h", -- 3
[2] = "|H1:item:1187:30:10:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h", -- 10
[3] = "|H1:item:4570:30:20:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h", -- 20
[4] = "|H1:item:23265:30:30:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h", -- 30
[5] = "|H1:item:23266:30:40:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h", -- 40
[6] = "|H1:item:23267:125:50:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h", -- cp 10
[7] = "|H1:item:23268:129:50:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h", -- cp 50
[8] = "|H1:item:64500:134:50:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h", -- cp 100
[9] = "|H1:item:64501:308:50:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h", -- cp 150
}
BankManagerRules.static.alchemyPoisonSolventArray = {
[1] = "|H1:item:75357:30:3:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h", -- 3
[2] = "|H1:item:75358:30:10:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h", -- 10
[3] = "|H1:item:75359:30:20:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h", -- 20
[4] = "|H1:item:75360:30:30:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h", -- 30
[5] = "|H1:item:75361:30:40:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h", -- 40
[6] = "|H1:item:75362:125:50:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h", -- cp 10
[7] = "|H1:item:75363:129:50:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h", -- cp 50
[8] = "|H1:item:75364:134:50:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h", -- cp 100
[9] = "|H1:item:75365:308:50:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h", -- cp 150
}
BankManagerRules.static.jewelrycraftingRawTraits = {
[1] = "|H1:item:135159:30:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h",
[2] = "|H1:item:135158:30:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h",
[3] = "|H1:item:135160:30:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h",
[4] = "|H1:item:139417:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h",
[5] = "|H1:item:139415:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h",
[6] = "|H1:item:139419:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h",
[7] = "|H1:item:139418:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h",
[8] = "|H1:item:139416:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h",
}
-- List is built at each bank interaction
BankManagerRules.static.special = {}
BankManagerRules.static.special.writsQuests = {}
-- RuleWriter Keywords
BankManagerRules.keywordConditionTable = {
ARMOR = { -- keyword
[BMR_RULEWRITER_VALUE_OPTIONAL_KEYWORD] = {
LIGHT = { func = GetItemLinkArmorType, funcArgs = BMR_ITEMLINK, values = { ARMORTYPE_LIGHT } },
MEDIUM = { func = GetItemLinkArmorType, funcArgs = BMR_ITEMLINK, values = { ARMORTYPE_MEDIUM } },
HEAVY = { func = GetItemLinkArmorType, funcArgs = BMR_ITEMLINK, values = { ARMORTYPE_HEAVY } },
},
data = {
func = GetItemLinkItemType, funcArgs = BMR_ITEMLINK, values = { ITEMTYPE_ARMOR }
},
},
QUALITY = { -- keyword
[BMR_RULEWRITER_VALUE_WITH_OPERATOR] = {
GREY = { func = GetItemLinkFunctionalQuality, funcArgs = BMR_ITEMLINK, values = { ITEM_FUNCTIONAL_QUALITY_TRASH } },
WHITE = { func = GetItemLinkFunctionalQuality, funcArgs = BMR_ITEMLINK, values = { ITEM_FUNCTIONAL_QUALITY_NORMAL } },
GREEN = { func = GetItemLinkFunctionalQuality, funcArgs = BMR_ITEMLINK, values = { ITEM_FUNCTIONAL_QUALITY_MAGIC } },
BLUE = { func = GetItemLinkFunctionalQuality, funcArgs = BMR_ITEMLINK, values = { ITEM_FUNCTIONAL_QUALITY_ARCANE } },
PURPLE = { func = GetItemLinkFunctionalQuality, funcArgs = BMR_ITEMLINK, values = { ITEM_FUNCTIONAL_QUALITY_ARTIFACT } },
YELLOW = { func = GetItemLinkFunctionalQuality, funcArgs = BMR_ITEMLINK, values = { ITEM_FUNCTIONAL_QUALITY_LEGENDARY } },
},
data = {
func = GetItemLinkFunctionalQuality, funcArgs = BMR_ITEMLINK
},
},
MAXIMUM = { -- keyword
[BMR_RULEWRITER_VALUE_WITHOUT_OPERATOR] = {
func = BankManagerRules.MaxItemsMoved, funcArgs = BMR_ITEMLINK, values = { ITEMTYPE_ARMOR }, paramType = BMR_RULEWRITER_VALUE_NUMBER,
},
},
}
-- Local function for Recipes and Housing
local function GetItemLinkSpecializedItemType(itemLink)
return select(2, GetItemLinkItemType(itemLink))
end
local function IsKnownStylePage(itemLink)
if not itemLink then return false end
local specializedItemtypesOfContainers = {
[SPECIALIZED_ITEMTYPE_CONTAINER_STYLE_PAGE] = true,
[SPECIALIZED_ITEMTYPE_COLLECTIBLE_STYLE_PAGE] = true,
[SPECIALIZED_ITEMTYPE_CONTAINER] = true,
}
local learnableStylePage = false
local known = false
local _, specializedItemType = GetItemLinkItemType(itemLink)
if specializedItemtypesOfContainers[specializedItemType] then
learnableStylePage = true
end
if learnableStylePage then
local containerCollectibleId = GetItemLinkContainerCollectibleId(itemLink)
known = IsCollectibleUnlocked(containerCollectibleId)
end
return known
end
-- Local function for items Researchable
local function IsItemNeededForResearch(itemLink)
--CraftStore 3.00 support
if CS and CS.GetTrait and CS.account and CS.account.crafting then
local craft, row, trait = CS.GetTrait(itemLink)
-- Loop all chars known by CS
for char, data in pairs(CS.account.crafting.studies) do
--if a char study this item
if data[craft] and data[craft][row] and (data[craft][row]) then
-- If this char didn't yet researched this item
if CS.account.crafting.research[char][craft] and CS.account.crafting.research[char][craft][row] and CS.account.crafting.research[char][craft][row][trait] == false then
return true
end
end
end
return false
end
--libResearch
local _, isResearchable = LR:GetItemTraitResearchabilityInfo(itemLink)
return isResearchable
end
-- Local function for BankManagerRules.static.rawIngredients
local function GetItemLinkIngredientType(itemLink)
local itemId = GetItemLinkItemId(itemLink)
if BankManagerRules.static.rawIngredients[itemId] then
return BankManagerRules.static.rawIngredients[itemId]
end
return false
end
local function Sanitize(value)
return value:gsub("[-*+?^$().[%]%%]", "%%%0") -- escape meta characters
end
local function IsWritItem(itemLink)
local itemName = " " .. zo_strformat(SI_TOOLTIP_ITEM_NAME, GetItemLinkName(itemLink))
for _, data in ipairs(BankManagerRules.static.special.writsQuests) do
if string.find(data.text, Sanitize(itemName)) then
BankManagerRules.static.special.writsQuests[itemLink] = data.qtyToMove
BankManagerRules.static.special.writsQuestsGlyphs[itemLink] = data.qtyToMove -- Bit dirty, see how to improve
BankManagerRules.static.special.writsQuestsPots[itemLink] = data.qtyToMove
return true
end
end
return false
end
local function IsCraftedPotion(itemLink)
if GetItemLinkItemType(itemLink) == ITEMTYPE_POTION or GetItemLinkItemType(itemLink) == ITEMTYPE_POISON then
if select(24, ZO_LinkHandler_ParseLink(itemLink)) ~= "0" then
return true
end
end
return false
end
local function GetNumberOfTraits(itemLink)
local numberOfTraits = 0
for i = 1, GetMaxTraits() do
local hasTraitAbility = GetItemLinkTraitOnUseAbilityInfo(itemLink, i)
if (hasTraitAbility) then
numberOfTraits = numberOfTraits + 1
end
end
return numberOfTraits
end
local function IsCompanionItem(itemLink)
local itemType, specializedItemType = GetItemLinkItemType(itemLink)
local isCompanionItem = false
if itemType == ITEMTYPE_WEAPON or itemType == ITEMTYPE_ARMOR then
isCompanionItem = GetItemLinkActorCategory(itemLink) == GAMEPLAY_ACTOR_CATEGORY_COMPANION
end
return isCompanionItem
end
-- Rules definitions
function BankManagerRules.addFiltersTaggedAll()
-- "All" will be executed after standard rules to do not interfere
-- If you want to write a OnlyIfNotFullStack option look at rulename improvementXX
ruleName = "traitAll"
BankManagerRules.data[ruleName] = {
-- params which will define if the item analized match the rule. if multiple params, it will be a logical "and"
params = {
{
func = GetItemLinkItemType, -- func to use to check if item will match
funcArgs = BMR_ITEMLINK, -- args of function, if BMR_ITEMLINK, BMR will send itemLink, if BMR_BAG_AND_SLOT, BMR will send bagId and slotId
values = {
ITEMTYPE_ARMOR_TRAIT, -- if multiple args, it will be a logical "or"
ITEMTYPE_WEAPON_TRAIT,
ITEMTYPE_JEWELRY_TRAIT,
},
},
},
position = 1, -- rules with the position flag are executed after, then first 1, then 2, then 3.
name = GetString(SI_ITEMFILTERTYPE0), -- used by LAM, name of the dropdown
tooltip = zo_strformat("<<1>> & <<2>> & <<3>>", GetString("SI_ITEMTYPE", ITEMTYPE_ARMOR_TRAIT), GetString("SI_ITEMTYPE", ITEMTYPE_WEAPON_TRAIT), GetString("SI_ITEMTYPE", ITEMTYPE_JEWELRY_TRAIT)), -- used by LAM, tooltip of the dropdown
}
-- Styles All
ruleName = "styleAll"
BankManagerRules.data[ruleName] = {
params = {
{
func = GetItemLinkItemType, funcArgs = BMR_ITEMLINK, values = { ITEMTYPE_STYLE_MATERIAL, ITEMTYPE_RAW_MATERIAL },
},
},
position = 1,
name = GetString(SI_ITEMFILTERTYPE0),
tooltip = zo_strformat("<<1>>", GetString("SI_ITEMTYPE", ITEMTYPE_STYLE_MATERIAL)),
}
-- Material All Blacksmithing
ruleName = "MaterialAll" .. CRAFTING_TYPE_BLACKSMITHING
BankManagerRules.data[ruleName] = {
params = {
{ func = GetItemLinkItemType, funcArgs = BMR_ITEMLINK, values = { ITEMTYPE_BLACKSMITHING_MATERIAL, ITEMTYPE_BLACKSMITHING_RAW_MATERIAL } },
},
position = 2,
name = GetString(SI_ITEMFILTERTYPE0),
tooltip = zo_strformat("<<1>> & <<2>>", GetString("SI_ITEMTYPE", ITEMTYPE_BLACKSMITHING_MATERIAL), GetString("SI_ITEMTYPE", ITEMTYPE_BLACKSMITHING_RAW_MATERIAL)),
}
-- Material All Clothier
ruleName = "MaterialAll" .. CRAFTING_TYPE_CLOTHIER
BankManagerRules.data[ruleName] = {
params = {
{ func = GetItemLinkItemType, funcArgs = BMR_ITEMLINK, values = { ITEMTYPE_CLOTHIER_MATERIAL, ITEMTYPE_CLOTHIER_RAW_MATERIAL } },
},
position = 2,
name = GetString(SI_ITEMFILTERTYPE0),
tooltip = zo_strformat("<<1>> & <<2>>", GetString("SI_ITEMTYPE", ITEMTYPE_CLOTHIER_MATERIAL), GetString("SI_ITEMTYPE", ITEMTYPE_CLOTHIER_RAW_MATERIAL)),
}
-- Material All Woodworking
ruleName = "MaterialAll" .. CRAFTING_TYPE_WOODWORKING
BankManagerRules.data[ruleName] = {
params = {
{ func = GetItemLinkItemType, funcArgs = BMR_ITEMLINK, values = { ITEMTYPE_WOODWORKING_MATERIAL, ITEMTYPE_WOODWORKING_RAW_MATERIAL } },
},
position = 2,
name = GetString(SI_ITEMFILTERTYPE0),
tooltip = zo_strformat("<<1>> & <<2>>", GetString("SI_ITEMTYPE", ITEMTYPE_WOODWORKING_MATERIAL), GetString("SI_ITEMTYPE", ITEMTYPE_WOODWORKING_RAW_MATERIAL)),
}
-- Material All Jewelcrafting
ruleName = "MaterialAll" .. CRAFTING_TYPE_JEWELRYCRAFTING
BankManagerRules.data[ruleName] = {
params = {
{ func = GetItemLinkItemType, funcArgs = BMR_ITEMLINK, values = { ITEMTYPE_JEWELRYCRAFTING_MATERIAL, ITEMTYPE_JEWELRYCRAFTING_RAW_MATERIAL } },
},
position = 2,
name = GetString(SI_ITEMFILTERTYPE0),
tooltip = zo_strformat("<<1>> & <<2>>", GetString("SI_ITEMTYPE", ITEMTYPE_JEWELRYCRAFTING_MATERIAL), GetString("SI_ITEMTYPE", ITEMTYPE_JEWELRYCRAFTING_RAW_MATERIAL)),
}
-- Refined All Blacksmithing
ruleName = "refinedMaterialAll" .. CRAFTING_TYPE_BLACKSMITHING
BankManagerRules.data[ruleName] = {
params = {
{ func = GetItemLinkItemType, funcArgs = BMR_ITEMLINK, values = { ITEMTYPE_BLACKSMITHING_MATERIAL } },
},
position = 1,
name = zo_strformat("<<1>>", GetString("SI_ITEMTYPE", ITEMTYPE_BLACKSMITHING_MATERIAL)),
tooltip = zo_strformat("<<1>>", GetString("SI_ITEMTYPE", ITEMTYPE_BLACKSMITHING_MATERIAL)),
}
-- Raw All Blacksmithing
ruleName = "rawMaterialAll" .. CRAFTING_TYPE_BLACKSMITHING
BankManagerRules.data[ruleName] = {
params = {
{ func = GetItemLinkItemType, funcArgs = BMR_ITEMLINK, values = { ITEMTYPE_BLACKSMITHING_RAW_MATERIAL } },
},
position = 1,
name = zo_strformat("<<1>>", GetString("SI_ITEMTYPE", ITEMTYPE_BLACKSMITHING_RAW_MATERIAL)),
tooltip = zo_strformat("<<1>>", GetString("SI_ITEMTYPE", ITEMTYPE_BLACKSMITHING_RAW_MATERIAL)),
}
-- Refined All Clothier
ruleName = "refinedMaterialAll" .. CRAFTING_TYPE_CLOTHIER
BankManagerRules.data[ruleName] = {
params = {
{ func = GetItemLinkItemType, funcArgs = BMR_ITEMLINK, values = { ITEMTYPE_CLOTHIER_MATERIAL } },
},
position = 1,
name = zo_strformat("<<1>>", GetString("SI_ITEMTYPE", ITEMTYPE_CLOTHIER_MATERIAL)),
tooltip = zo_strformat("<<1>>", GetString("SI_ITEMTYPE", ITEMTYPE_CLOTHIER_MATERIAL)),
}
-- Raw All Clothier
ruleName = "rawMaterialAll" .. CRAFTING_TYPE_CLOTHIER
BankManagerRules.data[ruleName] = {
params = {
{ func = GetItemLinkItemType, funcArgs = BMR_ITEMLINK, values = { ITEMTYPE_CLOTHIER_RAW_MATERIAL } },
},
position = 1,
name = zo_strformat("<<1>>", GetString("SI_ITEMTYPE", ITEMTYPE_CLOTHIER_RAW_MATERIAL)),
tooltip = zo_strformat("<<1>>", GetString("SI_ITEMTYPE", ITEMTYPE_CLOTHIER_RAW_MATERIAL)),
}
-- Refined All Woodworking
ruleName = "refinedMaterialAll" .. CRAFTING_TYPE_WOODWORKING
BankManagerRules.data[ruleName] = {
params = {
{ func = GetItemLinkItemType, funcArgs = BMR_ITEMLINK, values = { ITEMTYPE_WOODWORKING_MATERIAL } },
},
position = 1,
name = zo_strformat("<<1>>", GetString("SI_ITEMTYPE", ITEMTYPE_WOODWORKING_MATERIAL)),
tooltip = zo_strformat("<<1>>", GetString("SI_ITEMTYPE", ITEMTYPE_WOODWORKING_MATERIAL)),
}
-- Refined All Jewelcrafting
ruleName = "refinedMaterialAll" .. CRAFTING_TYPE_JEWELRYCRAFTING
BankManagerRules.data[ruleName] = {
params = {
{ func = GetItemLinkItemType, funcArgs = BMR_ITEMLINK, values = { ITEMTYPE_JEWELRYCRAFTING_MATERIAL } },
},
position = 1,
name = zo_strformat("<<1>>", GetString("SI_ITEMTYPE", ITEMTYPE_JEWELRYCRAFTING_MATERIAL)),
tooltip = zo_strformat("<<1>>", GetString("SI_ITEMTYPE", ITEMTYPE_JEWELRYCRAFTING_MATERIAL)),
}
-- Raw All Woodworking
ruleName = "rawMaterialAll" .. CRAFTING_TYPE_WOODWORKING
BankManagerRules.data[ruleName] = {
params = {
{ func = GetItemLinkItemType, funcArgs = BMR_ITEMLINK, values = { ITEMTYPE_WOODWORKING_RAW_MATERIAL } },
},
position = 1,
name = zo_strformat("<<1>>", GetString("SI_ITEMTYPE", ITEMTYPE_WOODWORKING_RAW_MATERIAL)),
tooltip = zo_strformat("<<1>>", GetString("SI_ITEMTYPE", ITEMTYPE_WOODWORKING_RAW_MATERIAL)),
}
-- Raw All Jewelcrafting
ruleName = "rawMaterialAll" .. CRAFTING_TYPE_JEWELRYCRAFTING
BankManagerRules.data[ruleName] = {
params = {
{ func = GetItemLinkItemType, funcArgs = BMR_ITEMLINK, values = { ITEMTYPE_JEWELRYCRAFTING_RAW_MATERIAL } },
},
position = 1,
name = zo_strformat("<<1>>", GetString("SI_ITEMTYPE", ITEMTYPE_JEWELRYCRAFTING_RAW_MATERIAL)),
tooltip = zo_strformat("<<1>>", GetString("SI_ITEMTYPE", ITEMTYPE_JEWELRYCRAFTING_RAW_MATERIAL)),
}
-- Enchanting All
ruleName = "enchantingAll"
BankManagerRules.data[ruleName] = {
params = {
{ func = GetItemLinkItemType, funcArgs = BMR_ITEMLINK, values = { ITEMTYPE_ENCHANTING_RUNE_ESSENCE, ITEMTYPE_ENCHANTING_RUNE_POTENCY, ITEMTYPE_ENCHANTING_RUNE_ASPECT } },
},
position = 1,
name = GetString(SI_ITEMFILTERTYPE0),
tooltip = zo_strformat("<<1>>, <<2>>, <<3>>", GetString("SI_ITEMTYPE", ITEMTYPE_ENCHANTING_RUNE_ESSENCE), GetString("SI_ITEMTYPE", ITEMTYPE_ENCHANTING_RUNE_POTENCY), GetString("SI_ITEMTYPE", ITEMTYPE_ENCHANTING_RUNE_ASPECT)),
}
-- Alchemy All
ruleName = "alchemyAll"
BankManagerRules.data[ruleName] = {
params = {
{ func = GetItemLinkItemType, funcArgs = BMR_ITEMLINK, values = { ITEMTYPE_POTION_BASE, ITEMTYPE_POISON_BASE, ITEMTYPE_REAGENT } },
},
position = 1,
name = GetString(SI_ITEMFILTERTYPE0),
tooltip = zo_strformat("<<1>>, <<2>> & <<3>>", GetString("SI_ITEMTYPE", ITEMTYPE_POTION_BASE), GetString("SI_ITEMTYPE", ITEMTYPE_POISON_BASE), GetString("SI_ITEMTYPE", ITEMTYPE_REAGENT)),
}
-- This rule won't be executed, it's a placeholder for the OnlyIfNotFullStack
-- CRAFTING_TYPE_BLACKSMITHING Improvement All
ruleName = "improvementAll" .. CRAFTING_TYPE_BLACKSMITHING
BankManagerRules.data[ruleName] = {
true, -- Don't write params section or rule will be executed. ruleName will be the Lua var to store the value
}
-- no .action here, it's unneeded, there is no rule behind this filter definition
BankManagerRules.defaults[ruleName] = {}
BankManagerRules.defaults[ruleName].onlyIfNotFullStack = true
-- improvementStacks CRAFTING_TYPE_BLACKSMITHING
ruleName = "improvementStacks" .. CRAFTING_TYPE_BLACKSMITHING
BankManagerRules.data[ruleName] = { true }
BankManagerRules.defaults[ruleName] = {}
BankManagerRules.defaults[ruleName].onlyStacks = 1
-- improvementStacks CRAFTING_TYPE_BLACKSMITHING GBank
ruleName = "improvementGBank" .. CRAFTING_TYPE_BLACKSMITHING
BankManagerRules.data[ruleName] = { true }
BankManagerRules.defaults[ruleName] = {}
BankManagerRules.defaults[ruleName].associatedGuild = GetString(BMR_ACTION_NOTSET)
-- CRAFTING_TYPE_CLOTHIER Improvement All
ruleName = "improvementAll" .. CRAFTING_TYPE_CLOTHIER
BankManagerRules.data[ruleName] = { true }
BankManagerRules.defaults[ruleName] = {}
BankManagerRules.defaults[ruleName].onlyIfNotFullStack = true
-- improvementStacks CRAFTING_TYPE_CLOTHIER
ruleName = "improvementStacks" .. CRAFTING_TYPE_CLOTHIER
BankManagerRules.data[ruleName] = { true }
BankManagerRules.defaults[ruleName] = {}
BankManagerRules.defaults[ruleName].onlyStacks = 1
-- improvementStacks CRAFTING_TYPE_CLOTHIER GBank
ruleName = "improvementGBank" .. CRAFTING_TYPE_CLOTHIER
BankManagerRules.data[ruleName] = { true }
BankManagerRules.defaults[ruleName] = {}
BankManagerRules.defaults[ruleName].associatedGuild = GetString(BMR_ACTION_NOTSET)
-- CRAFTING_TYPE_WOODWORKING Improvement All
ruleName = "improvementAll" .. CRAFTING_TYPE_WOODWORKING
BankManagerRules.data[ruleName] = { true }
BankManagerRules.defaults[ruleName] = {}
BankManagerRules.defaults[ruleName].onlyIfNotFullStack = true
-- improvementStacks CRAFTING_TYPE_WOODWORKING
ruleName = "improvementStacks" .. CRAFTING_TYPE_WOODWORKING
BankManagerRules.data[ruleName] = { true }
BankManagerRules.defaults[ruleName] = {}
BankManagerRules.defaults[ruleName].onlyStacks = 1
-- improvementStacks CRAFTING_TYPE_WOODWORKING GBank
ruleName = "improvementGBank" .. CRAFTING_TYPE_WOODWORKING
BankManagerRules.data[ruleName] = { true }
BankManagerRules.defaults[ruleName] = {}
BankManagerRules.defaults[ruleName].associatedGuild = GetString(BMR_ACTION_NOTSET)
-- CRAFTING_TYPE_JEWELRYCRAFTING Improvement All
ruleName = "improvementAll" .. CRAFTING_TYPE_JEWELRYCRAFTING
BankManagerRules.data[ruleName] = { true }
BankManagerRules.defaults[ruleName] = {}
BankManagerRules.defaults[ruleName].onlyIfNotFullStack = true
-- improvementStacks CRAFTING_TYPE_JEWELRYCRAFTING
ruleName = "improvementStacks" .. CRAFTING_TYPE_JEWELRYCRAFTING
BankManagerRules.data[ruleName] = { true }
BankManagerRules.defaults[ruleName] = {}
BankManagerRules.defaults[ruleName].onlyStacks = 1
-- improvementStacks CRAFTING_TYPE_JEWELRYCRAFTING GBank
ruleName = "improvementGBank" .. CRAFTING_TYPE_JEWELRYCRAFTING
BankManagerRules.data[ruleName] = { true }
BankManagerRules.defaults[ruleName] = {}
BankManagerRules.defaults[ruleName].associatedGuild = GetString(BMR_ACTION_NOTSET)
-- (CRAFTING_TYPE_JEWELRYCRAFTING * 100) Improvement All
ruleName = "improvementAll" .. (CRAFTING_TYPE_JEWELRYCRAFTING * 100)
BankManagerRules.data[ruleName] = { true }
BankManagerRules.defaults[ruleName] = {}
BankManagerRules.defaults[ruleName].onlyIfNotFullStack = true
-- improvementStacks (CRAFTING_TYPE_JEWELRYCRAFTING * 100)
ruleName = "improvementStacks" .. (CRAFTING_TYPE_JEWELRYCRAFTING * 100)
BankManagerRules.data[ruleName] = { true }
BankManagerRules.defaults[ruleName] = {}
BankManagerRules.defaults[ruleName].onlyStacks = 1
-- improvementStacks (CRAFTING_TYPE_JEWELRYCRAFTING * 100) GBank
ruleName = "improvementGBank" .. (CRAFTING_TYPE_JEWELRYCRAFTING * 100)
BankManagerRules.data[ruleName] = { true }
BankManagerRules.defaults[ruleName] = {}
BankManagerRules.defaults[ruleName].associatedGuild = GetString(BMR_ACTION_NOTSET)
-- CRAFTING_TYPE_BLACKSMITHING Material Stacks
ruleName = "MaterialStacks" .. CRAFTING_TYPE_BLACKSMITHING
BankManagerRules.data[ruleName] = { true }
BankManagerRules.defaults[ruleName] = {}
BankManagerRules.defaults[ruleName].onlyStacks = 1
-- CRAFTING_TYPE_BLACKSMITHING Material GBank
ruleName = "MaterialGBank" .. CRAFTING_TYPE_BLACKSMITHING
BankManagerRules.data[ruleName] = { true }
BankManagerRules.defaults[ruleName] = {}
BankManagerRules.defaults[ruleName].associatedGuild = GetString(BMR_ACTION_NOTSET)
-- CRAFTING_TYPE_CLOTHIER Material Stacks
ruleName = "MaterialStacks" .. CRAFTING_TYPE_CLOTHIER
BankManagerRules.data[ruleName] = { true }
BankManagerRules.defaults[ruleName] = {}
BankManagerRules.defaults[ruleName].onlyStacks = 1
-- CRAFTING_TYPE_CLOTHIER Material GBank
ruleName = "MaterialGBank" .. CRAFTING_TYPE_CLOTHIER
BankManagerRules.data[ruleName] = { true }
BankManagerRules.defaults[ruleName] = {}
BankManagerRules.defaults[ruleName].associatedGuild = GetString(BMR_ACTION_NOTSET)
-- CRAFTING_TYPE_WOODWORKING Material Stacks
ruleName = "MaterialStacks" .. CRAFTING_TYPE_WOODWORKING
BankManagerRules.data[ruleName] = { true }
BankManagerRules.defaults[ruleName] = {}
BankManagerRules.defaults[ruleName].onlyStacks = 1
-- CRAFTING_TYPE_WOODWORKING Material GBank
ruleName = "MaterialGBank" .. CRAFTING_TYPE_WOODWORKING
BankManagerRules.data[ruleName] = { true }
BankManagerRules.defaults[ruleName] = {}
BankManagerRules.defaults[ruleName].associatedGuild = GetString(BMR_ACTION_NOTSET)
-- CRAFTING_TYPE_JEWELRYCRAFTING Material Stacks
ruleName = "MaterialStacks" .. CRAFTING_TYPE_JEWELRYCRAFTING
BankManagerRules.data[ruleName] = { true }
BankManagerRules.defaults[ruleName] = {}
BankManagerRules.defaults[ruleName].onlyStacks = 1
-- CRAFTING_TYPE_JEWELRYCRAFTING Material GBank
ruleName = "MaterialGBank" .. CRAFTING_TYPE_JEWELRYCRAFTING
BankManagerRules.data[ruleName] = { true }
BankManagerRules.defaults[ruleName] = {}
BankManagerRules.defaults[ruleName].associatedGuild = GetString(BMR_ACTION_NOTSET)
-- CookingIngredients All
ruleName = "cookingIngredientsAll"
BankManagerRules.data[ruleName] = { true }
BankManagerRules.defaults[ruleName] = {}
BankManagerRules.defaults[ruleName].onlyIfNotFullStack = true
-- CookingIngredients Stacks
ruleName = "cookingIngredientsStacks"
BankManagerRules.data[ruleName] = { true }
BankManagerRules.defaults[ruleName] = {}
BankManagerRules.defaults[ruleName].onlyStacks = 1
-- CookingIngredients GBank
ruleName = "cookingIngredientsGBank"
BankManagerRules.data[ruleName] = { true }
BankManagerRules.defaults[ruleName] = {}
BankManagerRules.defaults[ruleName].associatedGuild = GetString(BMR_ACTION_NOTSET)
-- cookingRecipeGBank GBank
ruleName = "cookingRecipeGBank"
BankManagerRules.data[ruleName] = { true }
BankManagerRules.defaults[ruleName] = {}
BankManagerRules.defaults[ruleName].associatedGuild = GetString(BMR_ACTION_NOTSET)
-- enchantingStacks
ruleName = "enchantingStacks"
BankManagerRules.data[ruleName] = { true }
BankManagerRules.defaults[ruleName] = {}
BankManagerRules.defaults[ruleName].onlyStacks = 1
-- enchanting GBank
ruleName = "enchantingGBank"
BankManagerRules.data[ruleName] = { true }
BankManagerRules.defaults[ruleName] = {}
BankManagerRules.defaults[ruleName].associatedGuild = GetString(BMR_ACTION_NOTSET)
-- enchantingGlyphs GBank
ruleName = "enchantingGlyphsGBank"
BankManagerRules.data[ruleName] = { true }
BankManagerRules.defaults[ruleName] = {}
BankManagerRules.defaults[ruleName].associatedGuild = GetString(BMR_ACTION_NOTSET)
-- alchemy Stacks
ruleName = "alchemyStacks"
BankManagerRules.data[ruleName] = { true }
BankManagerRules.defaults[ruleName] = {}
BankManagerRules.defaults[ruleName].onlyStacks = 1
-- alchemy GBank
ruleName = "alchemyGBank"
BankManagerRules.data[ruleName] = { true }
BankManagerRules.defaults[ruleName] = {}
BankManagerRules.defaults[ruleName].associatedGuild = GetString(BMR_ACTION_NOTSET)
-- trait Stacks
ruleName = "traitStacks"
BankManagerRules.data[ruleName] = { true }
BankManagerRules.defaults[ruleName] = {}
BankManagerRules.defaults[ruleName].onlyStacks = 1
-- trait GBank
ruleName = "traitGBank"
BankManagerRules.data[ruleName] = { true }
BankManagerRules.defaults[ruleName] = {}
BankManagerRules.defaults[ruleName].associatedGuild = GetString(BMR_ACTION_NOTSET)
-- style Stacks
ruleName = "styleStacks"
BankManagerRules.data[ruleName] = { true }
BankManagerRules.defaults[ruleName] = {}
BankManagerRules.defaults[ruleName].onlyStacks = 1
-- style GBank
ruleName = "styleGBank"
BankManagerRules.data[ruleName] = { true }
BankManagerRules.defaults[ruleName] = {}
BankManagerRules.defaults[ruleName].associatedGuild = GetString(BMR_ACTION_NOTSET)
-- Trophy All
ruleName = "trophyAll"
BankManagerRules.data[ruleName] = { true }
BankManagerRules.defaults[ruleName] = {}
BankManagerRules.defaults[ruleName].onlyIfNotFullStack = true
-- Trophy Stacks
ruleName = "trophyStacks"
BankManagerRules.data[ruleName] = { true }
BankManagerRules.defaults[ruleName] = {}
BankManagerRules.defaults[ruleName].onlyStacks = 1
-- Trophy GBank
ruleName = "trophyGBank"
BankManagerRules.data[ruleName] = { true }
BankManagerRules.defaults[ruleName] = {}
BankManagerRules.defaults[ruleName].associatedGuild = GetString(BMR_ACTION_NOTSET)
-- Misc All
ruleName = "MiscAll"
BankManagerRules.data[ruleName] = { true }
BankManagerRules.defaults[ruleName] = {}
BankManagerRules.defaults[ruleName].onlyIfNotFullStack = true
-- Misc Stacks
ruleName = "MiscStacks"
BankManagerRules.data[ruleName] = { true }
BankManagerRules.defaults[ruleName] = {}
BankManagerRules.defaults[ruleName].onlyStacks = 1
-- Misc GBank
ruleName = "MiscGBank"
BankManagerRules.data[ruleName] = { true }
BankManagerRules.defaults[ruleName] = {}
BankManagerRules.defaults[ruleName].associatedGuild = GetString(BMR_ACTION_NOTSET)
-- Housing All
ruleName = "HousingAll"
BankManagerRules.data[ruleName] = { true }
BankManagerRules.defaults[ruleName] = {}
BankManagerRules.defaults[ruleName].onlyIfNotFullStack = true
-- Housing Stacks
ruleName = "HousingStacks"
BankManagerRules.data[ruleName] = { true }
BankManagerRules.defaults[ruleName] = {}
BankManagerRules.defaults[ruleName].onlyStacks = 1
-- Housing GBank
ruleName = "HousingGBank"
BankManagerRules.data[ruleName] = { true }
BankManagerRules.defaults[ruleName] = {}
BankManagerRules.defaults[ruleName].associatedGuild = GetString(BMR_ACTION_NOTSET)
-- Companion All
ruleName = "companionAll"
BankManagerRules.data[ruleName] = { true }
BankManagerRules.defaults[ruleName] = {}
BankManagerRules.defaults[ruleName].onlyIfNotFullStack = true
-- Companion Stacks
ruleName = "companionStacks"
BankManagerRules.data[ruleName] = { true }
BankManagerRules.defaults[ruleName] = {}
BankManagerRules.defaults[ruleName].onlyStacks = 1
-- Companion GBank
ruleName = "companionGBank"
BankManagerRules.data[ruleName] = { true }
BankManagerRules.defaults[ruleName] = {}
BankManagerRules.defaults[ruleName].associatedGuild = GetString(BMR_ACTION_NOTSET)
-- Writ Quests
ruleName = "writsQuests"
BankManagerRules.data[ruleName] = {
params = {
{ func = GetItemLinkItemType, funcArgs = BMR_ITEMLINK, values = { ITEMTYPE_POTION_BASE, ITEMTYPE_REAGENT, ITEMTYPE_ENCHANTING_RUNE_ASPECT, ITEMTYPE_ENCHANTING_RUNE_ESSENCE, ITEMTYPE_ENCHANTING_RUNE_POTENCY, ITEMTYPE_FOOD, ITEMTYPE_DRINK } },
{ func = IsWritItem, funcArgs = BMR_ITEMLINK, values = { true } },
},
name = GetString(BMR_WRIT_QUESTS),
tooltip = GetString(BMR_WRIT_QUESTS_TOOLTIP),
isSpecial = true,
}
-- Writ defaults
BankManagerRules.defaults[ruleName] = {}