-
Notifications
You must be signed in to change notification settings - Fork 50
/
RNG.lua
1367 lines (1250 loc) · 49.8 KB
/
RNG.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
-- Owner: AlanWarren, aka ~ Orestes
-- current file resides @ https://github.com/AlanWarren/gearswap
--[[
=== Notes ===
-- Set format is as follows:
-- sets.midcast.RA.[CustomClass][CombatForm][CombatWeapon][RangedMode][CustomRangedGroup]
-- You can create named sets based off any weapon in the rng_rema list below
-- you can also append CustomRangedGroups to each other
-- These are the available sets per category
-- CombatForm = DW
-- RangedMode = Normal, Mid, Acc
=== Helpful Commands ===
//gs validate
//gs showswaps
//gs debugmode
--]]
function get_sets()
mote_include_version = 2
-- Load and initialize the include file.
include('Mote-Include.lua')
include('organizer-lib')
end
-- setup vars that are user-independent.
function job_setup()
state.Buff.Barrage = buffactive.Barrage or false
state.Buff.Camouflage = buffactive.Camouflage or false
state.Buff.Overkill = buffactive.Overkill or false
state.Buff['Double Shot'] = buffactive['Double Shot'] or false
state.FlurryMode = M{['description']='Flurry Mode', 'Normal', 'Hi'}
state.HasteMode = M{['description']='Haste Mode', 'Normal', 'Hi'}
-- settings
state.CapacityMode = M(false, 'Capacity Point Mantle')
gear.Gun = "Annihilator"
gear.Bow = "Yoichinoyumi"
gear.Xbow = "Gastraphetes"
rng_rema = S{'Annihilator', 'Armageddon', 'Fomalhaut', 'Gastraphetes', 'Yoichinoyumi', 'Gandiva', 'Fail-Not'}
rng_sub_weapons = S{'Malevolence', 'Tauret', 'Perun +1',
'Perun', 'Odium', 'Atoyac', 'Kaja Sword', 'Naegling'}
-- sam_sj = player.sub_job == 'SAM' or false
-- used for ammo swaps
-- rng_xbows = S{'Gastraphetes', 'Illapa'}
rng_guns = S{'Annihilator', 'Armageddon', 'Fomalhaut'}
-- rng_bows = S{'Yoichinoyumi', 'Gandiva', 'Fail-Not'}
state.GunSelector = M{['description']='Gun Selector', 'Annihilator', 'Gastraphetes', 'Armageddon', 'Fomalhaut', 'Anarchy'}
state.GastraAmmo = M{['description']='Xbow Ammo', "Quelling Bolt", "Abrasion Bolt"}
state.GunAmmo = M{['description']='Gun Ammo', "Chrono Bullet", "Eradicating Bullet"}
state.AmmoToggle = M{['description']='Ammo Toggle', "Primary", "Secondary"}
state.FightingMode = M{['description']='Fighting Mode', 'Default', 'Melee', 'Sword', 'DualSword'}
--state.ShootingMode = M{['description']='Shooting Mode', 'Default', 'Standard', 'Magic', 'Single'}
-- state.Ammo = M{['description']='Gastraphetes', "Bloody Bolt", "Achiyalabopa Bolt"}
state.ShootingMode = M{['description']='Shooting Mode', 'Default', 'Standard', 'Magic', 'Single', 'SingleMagic'}
-- W.I.P ~
DefaultAmmo = {[gear.Bow] = "Achiyalabopa arrow", [gear.Gun] = state.GunAmmo.current, [gear.Xbow] = state.GastraAmmo.current}
-- U_Shot_Ammo = {[gear.Bow] = "Achiyalabopa arrow", [gear.Gun] = "Eradicating Bullet"}
update_combat_form()
determine_haste_group()
get_combat_weapon()
initialize_weapons()
get_custom_ranged_groups()
end
function user_setup()
-- Options: Override default values
state.OffenseMode:options('Normal', 'Mid', 'Acc')
state.RangedMode:options('Normal', 'Mid', 'Acc')
state.HybridMode:options('Normal', 'PDT')
state.IdleMode:options('Normal', 'PDT')
state.WeaponskillMode:options('Normal', 'Mid', 'Acc')
state.PhysicalDefenseMode:options('PDT')
state.MagicalDefenseMode:options('MDT')
select_default_macro_book()
send_command('bind != gs c toggle CapacityMode')
send_command('bind !f9 gs c cycle RangedMode')
-- send_command('bind !f9 gs c toggle FightingMode')
send_command('bind f9 gs c cycle OffenseMode')
send_command('bind ^f9 gs c cycle HybridMode')
send_command('bind @f9 gs c cycle HasteMode')
send_command('bind @= gs c cycle FlurryMode')
-- send_command('bind ^] gs c cycle WeaponskillMode')
-- send_command('bind !- gs equip sets.crafting')
send_command('bind ^[ input /lockstyle on')
send_command('bind ![ input /lockstyle off')
end
-- Called when this job file is unloaded (eg: job change)
function file_unload()
send_command('unbind f9')
send_command('unbind ^f9')
send_command('unbind ^[')
send_command('unbind ![')
send_command('unbind !=')
send_command('unbind ^=')
send_command('unbind @=')
send_command('unbind ^-')
end
function init_gear_sets()
sets.Obi = { waist="Korin Obi" }
-- Augmented gear
TaeonHands = {}
TaeonHands.TA = {name="Taeon Gloves", augments={'DEX+6','Accuracy+17 Attack+17','"Triple Atk."+2'}}
TaeonHands.Snap = {name="Taeon Gloves", augments={'Attack+22','"Snapshot"+5','"Snapshot"+5',}}
TaeonHead = {}
TaeonHead.Snap = { name="Taeon Chapeau", augments={'Accuracy+20 Attack+20','"Snapshot"+5','"Snapshot"+4',}}
HercFeet = {}
HercHead = {}
HercLegs = {}
HercHands = {}
HercBody = {}
HercHands.R = { name="Herculean Gloves", augments={'AGI+9','Accuracy+3','"Refresh"+1',}}
--HercHands.MAB = { name="Herculean Gloves", augments={'Mag. Acc.+19 "Mag.Atk.Bns."+19','INT+4','Mag. Acc.+8','"Mag.Atk.Bns."+13',}}
HercFeet.MAB = { name="Herculean Boots", augments={'Mag. Acc.+30','"Mag.Atk.Bns."+25','Accuracy+3 Attack+3','Mag. Acc.+12 "Mag.Atk.Bns."+12',}}
HercFeet.TP = { name="Herculean Boots", augments={'Accuracy+21 Attack+21','"Triple Atk."+4','DEX+8',}}
--HercBody.MAB = { name="Herculean Vest", augments={'Haste+1','"Mag.Atk.Bns."+27','Mag. Acc.+19 "Mag.Atk.Bns."+19',}}
HercBody.WSD = { name="Herculean Vest", augments={'"Blood Pact" ability delay -4','AGI+3','Weapon skill damage +9%','Mag. Acc.+4 "Mag.Atk.Bns."+4',}}
--HercHead.MAB = {name="Herculean Helm", augments={'Mag. Acc.+19 "Mag.Atk.Bns."+19','Weapon skill damage +3%','INT+1','Mag. Acc.+3','"Mag.Atk.Bns."+8',}}
HercHead.TP = { name="Herculean Helm", augments={'Accuracy+25','"Triple Atk."+4','AGI+6','Attack+14',}}
HercHead.DM = { name="Herculean Helm", augments={'Pet: STR+9','Mag. Acc.+10 "Mag.Atk.Bns."+10','Weapon skill damage +9%','Accuracy+12 Attack+12',}}
HercLegs.MAB = { name="Herculean Trousers", augments={'Mag. Acc.+20 "Mag.Atk.Bns."+20','INT+10','Mag. Acc.+15','"Mag.Atk.Bns."+14',}}
HercLegs.TH = { name="Herculean Trousers", augments={'Phys. dmg. taken -1%','VIT+10','"Treasure Hunter"+2','Accuracy+10 Attack+10','Mag. Acc.+19 "Mag.Atk.Bns."+19',}}
AdhemarLegs = {}
AdhemarLegs.Snap = { name="Adhemar Kecks", augments={'AGI+10','"Rapid Shot"+10','Enmity-5',}}
AdhemarLegs.TP = { name="Adhemar Kecks", augments={'AGI+10','Rng.Acc.+15','Rng.Atk.+15',}}
Belenus = {}
Belenus.STP = { name="Belenus's Cape", augments={'AGI+20','Rng.Acc.+20 Rng.Atk.+20','AGI+10','"Store TP"+10','Damage taken-5%',}}
Belenus.WSD = { name="Belenus's Cape", augments={'AGI+20','Rng.Acc.+20 Rng.Atk.+20','AGI+10','Weapon skill damage +10%',}}
Belenus.MAB = { name="Belenus's Cape", augments={'AGI+20','Mag. Acc+20 /Mag. Dmg.+20','AGI+10','Weapon skill damage +10%',}}
Belenus.Snap = {name="Belenus's Cape", augments={'"Snapshot"+10',}}
sets.Annihilator = {
range="Annihilator",
ammo=state.GunAmmo.current,
}
sets.Armageddon = {
range="Armageddon",
ammo=state.GunAmmo.current,
}
sets.Fomalhaut = {
range="Fomalhaut",
ammo=state.GunAmmo.current,
}
sets.Gastraphetes = {
range="Gastraphetes",
ammo=state.GastraAmmo.current,
}
sets.Anarchy = {
range="Anarchy +2",
ammo=state.GastraAmmo.current,
}
sets.Default = {
-- ranged=state.GunSelector.current
} -- do nothing. useful for equipping whateveer you want
sets.Magic = {
--main={name="Lanun Knife", bag="Wardrobe 4", priority=2},
main={name="Malevolence", bag="Inventory", priority=1},
sub={name="Malevolence", bag="Wardrobe 4", priority=2},
ranged=state.GunSelector.current
}
sets.Standard = {
main={name="Perun +1", bag="Inventory", priority=1},
sub={name="Perun", bag="Inventory", priority=2},
ranged=state.GunSelector.current
}
sets.Single = {
main={name="Perun +1", bag="Inventory", priority=1},
sub={name="Nusku Shield", priority=2},
ranged=state.GunSelector.current
}
sets.Melee = {
main={name="Tauret", bag="Inventory", priority=2},
sub={name="Blurred Knife +1", bag="Inventory", priority=2},
ranged=state.GunSelector.current
}
sets.Sword = {
main={name="Naegling", bag="Inventory", priority=1},
sub={name="Nusku Shield", priority=2},
ranged=state.GunSelector.current
}
sets.DualSword = {
main={name="Naegling", bag="Inventory", priority=1},
sub={name="Blurred Knife +1", bag="Inventory", priority=2},
ranged=state.GunSelector.current
}
sets.SingleMagic = {
main={name="Malevolence", bag="Inventory", priority=1},
sub={name="Nusku Shield", priority=2},
ranged=state.GunSelector.current
}
sets.Organizer = {
ear2="Reraise Earring",
back="Linkpearl",
main="Annihilator",
head="Gastraphetes",
neck="Nusku Shield",
body="Armageddon",
hands="Naegling",
legs="Fomalhaut",
feet="Malevolence",
ring1="Perun +1",
ring2="Perun"
}
sets.Malignance = {
head="Malignance Chapeau",
body="Malignance Tabard",
hands="Malignance Gloves",
legs="Malignance Tights",
feet="Malignance Boots"
}
-- Misc. Job Ability precasts
sets.precast.JA['Bounty Shot'] = {hands="Amini Glovelettes +1", waist="Chaac Belt", legs=HercLegs.TH }
sets.precast.JA['Double Shot'] = {head="Amini Gapette"}
sets.precast.JA['Camouflage'] = {body="Orion Jerkin +3"}
sets.precast.JA['Sharpshot'] = {legs="Orion Braccae +3"}
sets.precast.JA['Velocity Shot'] = {body="Amini Caban +1", back=Belenus.Snap }
sets.precast.JA['Scavenge'] = {feet="Orion Socks +1"}
sets.precast.JA['Shadowbind'] = {hands="Orion Bracers +2"}
sets.CapacityMantle = {back="Mecistopins Mantle"}
sets.precast.JA['Eagle Eye Shot'] = set_combine(sets.midcast.RA, {
head="Meghanada Visor +2",
ear1="Sherida Earring",
ear2="Crepuscular Earring",
body="Nisroch Jerkin",
back=Belenus.STP,
hands="Malignance Gloves",
waist="Kwahu Kachina Belt",
ring1="Regal Ring",
ring2="Ilabrat Ring",
legs="Arcadian Braccae +3",
feet="Arcadian Socks +3"
})
sets.precast.FC = {
head=HercHead.TP,
ear1="Etiolation Earring",
ear2="Loquacious Earring",
body="Dread Jupon",
legs="Quiahuiz Trousers",
hands="Leyline Gloves",
ring1="Prolix Ring",
ring2="Weatherspoon Ring",
}
sets.precast.FC.Utsusemi = set_combine(sets.precast.FC, { neck="Magoraga Beads" })
sets.idle = {
--sub="Nusku Shield",
head="Nyame Helm",
neck="Sanctity Necklace",
ear1="Etiolation Earring",
ear2="Genmei Earring",
body="Nyame Mail",
hands="Nyame Gauntlets",
ring1="Meghanada Ring",
ring2="Roller's Ring",
back=Belenus.STP,
waist="Flume Belt",
legs="Nyame Flanchard",
feet="Jute Boots +1" -- 10
}
sets.idle.Regen = set_combine(sets.idle, {
--head="Ocelomeh Headpiece +1",
--body="Kheper Jacket",
neck="Sanctity Necklace",
ear2="Infused Earring",
ring2="Paguroidea Ring"
})
sets.idle.PDT = set_combine(sets.idle, {
head="Malignance Chapeau",
body="Malignance Tabard",
hands="Malignance Gloves",
legs="Malignance Tights",
ring1="Dark Ring",
ring2="Defending Ring"
})
sets.idle.Town = set_combine(sets.idle, {
head="Arcadian Beret +3",
body="Nisroch Jerkin",
ear1="Crepuscular Earring",
ear2="Telos Earring",
neck="Scout's Gorget +2",
ring1="Regal Ring",
ring2="Crepuscular Ring",
hands="Malignance Gloves",
waist="Yemaya Belt",
back=Belenus.STP,
legs="Carmine Cuisses +1",
feet="Malignance Boots"
})
sets.Nyame = {
head="Nyame Helm",
body="Nyame Mail",
hands="Nyame Gauntlets",
legs="Nyame Flanchard",
feet="Nyame Sollerets"
}
-- Engaged sets
sets.engaged = set_combine(sets.Malignance, {
neck="Scout's Gorget +2",
ear1="Dedition Earring",
ear2="Telos Earring",
--body="Malignance Tabard",
ring1="Crepuscular Ring",
ring2="Ilabrat Ring",
back=Belenus.STP,
waist="Kwahu Kachina Belt",
})
sets.engaged.PDT = set_combine(sets.engaged, sets.Nyame)
-- sets.engaged.Bow = set_combine(sets.engaged, {})
sets.engaged.Mid = sets.engaged -- just for shooting
sets.engaged.Mid.PDT = set_combine(sets.engaged.Mid, sets.engaged.PDT)
sets.engaged.Melee = {
head="Adhemar Bonnet +1",
neck="Scout's Gorget +2",
ear1="Eabani Earring",
ear2="Suppanomimi",
body="Adhemar Jacket +1",
hands="Floral Gauntlets",
ring1="Epona's Ring",
ring2="Petrov Ring",
back=Belenus.STP,
waist="Patentia Sash",
legs="Tatenashi Haidate +1",
feet=HercFeet.TP
}
sets.engaged.Melee.Haste_30 = set_combine(sets.engaged.Melee, {
hands="Adhemar Wristbands +1",
feet=HercFeet.TP
})
sets.engaged.Melee.MaxHaste = set_combine(sets.engaged.Melee.Haste_30, {
ear1="Sherida Earring",
ear2="Brutal Earring",
waist="Sailfi Belt +1",
})
sets.engaged.Melee.PDT = set_combine(sets.engaged.Melee, {
head="Nyame Helm",
body="Nyame Mail",
hands="Nyame Gauntlets",
legs="Nyame Flanchard",
feet="Nyame Sollerets"
})
sets.engaged.Melee.PDT.Haste_30 = set_combine(sets.engaged.Melee.Haste_30, {
head="Nyame Helm",
body="Nyame Mail",
hands="Nyame Gauntlets",
legs="Nyame Flanchard",
feet="Nyame Sollerets"
})
sets.engaged.Melee.Mid = set_combine(sets.engaged.Melee, {
neck="Lissome Necklace",
ring2="Ilabrat Ring",
body="Tatenashi Haramaki +1",
feet="Tatenashi Sune-ate +1"
})
sets.engaged.Melee.Mid.Haste_30 = set_combine(sets.engaged.Melee.Mid, {
hands="Adhemar Wristbands +1",
})
sets.engaged.Melee.Mid.MaxHaste = set_combine(sets.engaged.Melee.Mid, {
waist="Olseni Belt",
ear1="Telos Earring",
ear2="Odr Earring",
hands="Adhemar Wristbands +1",
})
sets.engaged.Melee.Mid.PDT = set_combine(sets.engaged.Melee.Mid, {
head="Nyame Helm",
body="Nyame Mail",
hands="Nyame Gauntlets",
legs="Nyame Flanchard",
feet="Nyame Sollerets"
})
sets.engaged.Melee.Mid.PDT.Haste_30 = set_combine(sets.engaged.Melee.Mid.Haste_30, {
head="Nyame Helm",
body="Nyame Mail",
hands="Nyame Gauntlets",
legs="Nyame Flanchard",
feet="Nyame Sollerets"
})
sets.engaged.Melee.Mid.PDT.MaxHaste = set_combine(sets.engaged.Melee.Mid.MaxHaste, {
head="Nyame Helm",
body="Nyame Mail",
hands="Nyame Gauntlets",
legs="Nyame Flanchard",
feet="Nyame Sollerets"
})
sets.engaged.Acc = sets.engaged -- just for shooting
sets.engaged.Acc.PDT = set_combine(sets.engaged.Mid, sets.engaged.PDT)
sets.engaged.Melee.Acc = set_combine(sets.engaged.Melee.Mid, {
head="Malignance Chapeau",
ear1="Telos Earring",
ear2="Odr Earring",
body="Adhemar Jacket +1",
hands="Floral Gauntlets",
waist="Patentia Sash",
ring1="Regal Ring",
ring2="Ilabrat Ring",
legs="Tatenashi Haidate +1",
feet="Tatenashi Sune-ate +1"
})
sets.engaged.Melee.Acc.Haste_30 = set_combine(sets.engaged.Melee.Acc, {
hands="Adhemar Wristbands +1",
waist="Olseni Belt",
--hands="Tatenashi Gote +1",
})
sets.engaged.Melee.Acc.MaxHaste = set_combine(sets.engaged.Melee.Acc, {
body="Tatenashi Haramaki +1",
waist="Olseni Belt",
ear1="Telos Earring",
ear2="Odr Earring",
--hands="Adhemar Wristbands +1",
})
sets.engaged.Melee.Acc.PDT = set_combine(sets.engaged.Melee.Acc, {
head="Nyame Helm",
body="Nyame Mail",
hands="Nyame Gauntlets",
legs="Nyame Flanchard",
feet="Nyame Sollerets"
})
sets.engaged.Melee.Acc.PDT.Haste_30 = set_combine(sets.engaged.Melee.Acc.Haste_30, {
head="Nyame Helm",
body="Nyame Mail",
hands="Nyame Gauntlets",
legs="Nyame Flanchard",
feet="Nyame Sollerets"
})
sets.engaged.Melee.Acc.PDT.MaxHaste = set_combine(sets.engaged.Melee.Acc.MaxHaste, {
head="Nyame Helm",
body="Nyame Mail",
hands="Nyame Gauntlets",
legs="Nyame Flanchard",
feet="Nyame Sollerets"
})
------------------------------------------------------------------
-- Preshot / Snapshot sets
-- 50 snap in gear will cap
-- Pieces that provide delay reduction via velocity shot, do NOT
-- count towards cap.
------------------------------------------------------------------
sets.precast.RA = {
head=TaeonHead.Snap, -- 9
-- head="Orion Beret +3", -- rapid 18
neck="Scout's gorget +2", -- 4
body="Amini Caban +1", -- 7% VS
hands="Carmine Finger Gauntlets +1", -- 8 snap / 11 rapid
back=Belenus.Snap, -- 2% VS / 10 snap
ring1="Crepuscular Ring", -- 3
legs="Orion Braccae +3", -- 15
--waist="Impulse Belt", -- 2
waist="Yemaya Belt",
feet="Meghanada Jambeaux +2" -- 10
}
sets.precast.RA.F1 = set_combine(sets.precast.RA, {
head="Orion Beret +3",
legs=AdhemarLegs.Snap, -- 9
waist="Yemaya Belt"
})
sets.precast.RA.F2 = set_combine(sets.precast.RA.F1, {
-- waist="Yemaya Belt",
feet="Arcadian Socks +3"
})
sets.precast.RA.Gastraphetes = set_combine(sets.precast.RA, {
head="Orion Beret +3",
legs="Orion Braccae +3",
})
sets.precast.RA.Gastraphetes.F1 = set_combine(sets.precast.RA, {
feet="Arcadian Socks +3",
legs=AdhemarLegs.Snap, -- 9
})
sets.precast.RA.Gastraphetes.F2 = sets.precast.RA.Gastraphetes.F1
------------------------------------------------------------------
-- Default Base Gear Sets for Ranged Attacks. Geared for Gastraphetes
------------------------------------------------------------------
sets.midcast.RA = {
head="Arcadian Beret +3",
neck="Scout's Gorget +2",
ear1="Dedition Earring",
ear2="Telos Earring",
body="Nisroch Jerkin",
hands="Malignance Gloves",
ring1="Crepuscular Ring",
ring2="Ilabrat Ring",
back=Belenus.STP,
waist="Yemaya Belt",
legs="Malignance Tights",
feet="Malignance Boots"
}
sets.midcast.RA.Mid = set_combine(sets.midcast.RA, {
ear1="Crepuscular Earring",
body="Malignance Tabard",
waist="Kwahu Kachina Belt",
--legs="Malignance Tights",
})
sets.midcast.RA.Acc = set_combine(sets.midcast.RA.Mid, {
head="Malignance Chapeau",
ear1="Beyla Earring",
--ring1="Cacoethic Ring +1",
body="Orion Jerkin +3",
ring1="Regal Ring",
--legs="Malignance Tights",
--feet="Malignance Boots"
})
-- Double Shot
sets.midcast.RA.DoubleShot = set_combine(sets.midcast.RA, {
hands="Oshosi Gloves",
legs="Oshosi Trousers",
body="Arcadian Jerkin +3",
feet="Oshosi Leggings"
})
sets.midcast.RA.DoubleShot.Mid = set_combine(sets.midcast.RA.Mid, {
hands="Malignance Gloves",
legs="Oshosi Trousers",
body="Arcadian Jerkin +3",
feet="Oshosi Leggings"
})
sets.midcast.RA.DoubleShot.Acc = set_combine(sets.midcast.RA.Acc, {
hands="Malignance Gloves",
legs="Malignance Tights",
body="Malignance Tabard",
feet="Oshosi Leggings"
})
-- Annihilator
-- TODO: get crit+10% cape
sets.midcast.RA.Annihilator = set_combine(sets.midcast.RA, {
-- head="Meghanada Visor +2",
body="Nisroch Jerkin",
--ring2="Regal Ring",
})
sets.midcast.RA.Annihilator.Mid = set_combine(sets.midcast.RA.Mid, {
body="Nisroch Jerkin",
})
sets.midcast.RA.Annihilator.Acc = set_combine(sets.midcast.RA.Acc, {
--ammo="Eradicating Bullet"
})
sets.midcast.RA.DoubleShot.Annihilator = sets.midcast.RA.DoubleShot
sets.midcast.RA.DoubleShot.Annihilator.Mid = sets.midcast.RA.DoubleShot.Mid
sets.midcast.RA.DoubleShot.Annihilator.Acc = sets.midcast.RA.DoubleShot.Acc
sets.midcast.RA.Armageddon = set_combine(sets.midcast.RA, {
body="Nisroch Jerkin",
})
sets.midcast.RA.Armageddon.AME = set_combine(sets.midcast.RA.Armageddon, {
head="Meghanada Visor +2",
body="Nisroch Jerkin",
hands="Mummu Wrists +2",
waist="Kwahu Kachina Belt",
})
sets.midcast.RA.Armageddon.Mid = set_combine(sets.midcast.RA.Mid, {
head="Meghanada Visor +2",
body="Nisroch Jerkin",
waist="Kwahu Kachina Belt",
})
sets.midcast.RA.Armageddon.Mid.AME = set_combine(sets.midcast.RA.Armageddon.Mid, {
head="Meghanada Visor +2",
body="Nisroch Jerkin",
hands="Mummu Wrists +2",
waist="Kwahu Kachina Belt",
})
sets.midcast.RA.Armageddon.Acc = set_combine(sets.midcast.RA.Acc, {
--ammo="Eradicating Bullet"
})
sets.midcast.RA.Armageddon.Acc.AME = set_combine(sets.midcast.RA.Armageddon.Acc, {
head="Meghanada Visor +2",
body="Nisroch Jerkin",
hands="Mummu Wrists +2"
})
sets.midcast.RA.DoubleShot.Armageddon = sets.midcast.RA.DoubleShot
sets.midcast.RA.DoubleShot.Armageddon.Mid = sets.midcast.RA.DoubleShot.Mid
sets.midcast.RA.DoubleShot.Armageddon.Acc = sets.midcast.RA.DoubleShot.Acc
-- Yoichinoyumi
sets.midcast.RA.Yoichinoyumi = {
head="Malignance Chapeau",
neck="Scout's Gorget +2",
ear1="Dedition Earring",
ear2="Telos Earring",
body="Nisroch Jerkin",
hands="Malignance Gloves",
ring1="Crepuscular Ring",
ring2="Ilabrat Ring",
back=Belenus.STP,
waist="Kwahu Kachina Belt",
legs="Malignance Tights",
feet="Malignance Boots"
}
sets.midcast.RA.Yoichinoyumi.Mid = set_combine(sets.midcast.RA.Yoichinoyumi, {
ear1="Crepuscular Earring",
hands="Malignance Gloves",
body="Malignance Tabard",
legs="Malignance Tights",
})
sets.midcast.RA.Yoichinoyumi.Acc = set_combine(sets.midcast.RA.Yoichinoyumi.Mid, {
ear1="Beyla Earring",
hands="Malignance Gloves",
body="Orion Jerkin +3",
ring1="Regal Ring",
})
-- Weaponskill sets
sets.precast.WS = {
head="Orion Beret +3",
neck="Scout's Gorget +2",
ear1="Sherida Earring",
ear2="Ishvara Earring",
body=HercBody.WSD,
hands="Meghanada Gloves +2",
-- ring1="Dingir Ring",
ring1="Regal Ring",
ring2="Ilabrat Ring",
back=Belenus.WSD,
waist="Kwahu Kachina Belt",
legs="Arcadian Braccae +3",
feet="Arcadian Socks +3"
}
sets.precast.WS.Mid = set_combine(sets.precast.WS, {
body="Arcadian Jerkin +3",
})
sets.precast.WS.Acc = set_combine(sets.precast.WS.Mid, {
body="Orion Jerkin +3",
legs=AdhemarLegs.TP,
})
sets.precast.WS['Savage Blade'] = set_combine(sets.precast.WS, {
ear2="Moonshade Earring",
ring1="Regal Ring",
ring2="Ifrit Ring",
waist="Sailfi Belt +1",
legs=HercLegs.WSD,
feet="Meghanada Jambeaux +2"
})
-- WILDFIRE
sets.precast.WS['Wildfire'] = {
head="",
body="Cohort Cloak +1",
ear1="Friomisi Earring",
ear2="Crematio Earring",
neck="Scout's Gorget +2",
hands="Carmine Finger Gauntlets +1",
ring1="Regal Ring",
ring2="Dingir Ring",
back=Belenus.MAB,
waist="Sveltesse Gouriz +1",
legs=HercLegs.MAB,
feet=HercFeet.MAB
}
sets.precast.WS['Wildfire'].Mid = set_combine(sets.precast.WS['Wildfire'], {
--body="Nyame Mail",
hands="Nyame Gauntlets",
legs="Nyame Flanchard"
})
sets.precast.WS['Wildfire'].Acc = set_combine(sets.precast.WS['Wildfire'].Mid, {
body="Nyame Mail",
hands="Nyame Gauntlets",
})
-- every other weapon uses standard ammo set via toggle
sets.precast.WS['Wildfire'].Gun = set_combine(sets.precast.WS['Wildfire'], { ammo="Devastating Bullet"})
sets.precast.WS['Wildfire'].Mid.Gun = set_combine(sets.precast.WS['Wildfire'].Mid, { ammo="Devastating Bullet"})
sets.precast.WS['Wildfire'].Acc.Gun = set_combine(sets.precast.WS['Wildfire'].Acc, { ammo="Devastating Bullet"})
sets.precast.WS['Trueflight'] = {
head="",
body="Cohort Cloak +1",
ear1="Friomisi Earring",
ear2="Moonshade Earring",
neck="Scout's Gorget +2",
hands="Carmine Finger Gauntlets +1",
ring1="Weatherspoon Ring",
ring2="Dingir Ring",
back=Belenus.MAB,
waist="Sveltesse Gouriz +1",
--legs=HercLegs.MAB,
legs="Arcadian Braccae +3",
--legs="Arcadian Braccae +3",
feet=HercFeet.MAB
}
sets.precast.WS['Trueflight'].Mid = set_combine(sets.precast.WS['Trueflight'], {
legs="Arcadian Braccae +3",
hands="Nyame Gauntlets",
--hands="Carmine Finger Gauntlets +1",
--legs="Arcadian Braccae +3",
})
sets.precast.WS['Trueflight'].Acc = set_combine(sets.precast.WS['Trueflight'].Mid, {
-- body="Nyame Mail",
hands="Nyame Gauntlets",
legs="Arcadian Braccae +3",
})
sets.precast.WS['Trueflight'].Gun = set_combine(sets.precast.WS['Trueflight'], {ammo="Devastating Bullet"})
sets.precast.WS['Trueflight'].Mid.Gun = set_combine(sets.precast.WS['Trueflight'].Mid, {ammo="Devastating Bullet"})
sets.precast.WS['Trueflight'].Acc.Gun = set_combine(sets.precast.WS['Trueflight'].Acc, {ammo="Devastating Bullet"})
sets.precast.WS['Aeolian Edge'] = set_combine(sets.precast.WS['Trueflight'], {
ear2="Moonshade Earring"
})
-- CORONACH
sets.precast.WS['Coronach'] = set_combine(sets.precast.WS, {
neck="Scout's Gorget +2",
ear1="Sherida Earring",
ear2="Ishvara Earring",
body=HercBody.WSD,
waist="Thunder Belt",
ring1="Regal Ring",
ring2="Dingir Ring",
back=Belenus.WSD,
legs="Arcadian Braccae +3",
})
sets.precast.WS['Coronach'].Mid = set_combine(sets.precast.WS['Coronach'], {
})
sets.precast.WS['Coronach'].Acc = set_combine(sets.precast.WS['Coronach'].Mid, {
body="Orion Jerkin +3",
legs="Arcadian Braccae +3",
})
-- LAST STAND
sets.precast.WS['Last Stand'] = set_combine(sets.precast.WS, {
head="Orion Beret +3",
neck="Scout's Gorget +2",
ear1="Sherida Earring",
ear2="Moonshade Earring",
body=HercBody.WSD,
back=Belenus.WSD,
ring1="Regal Ring",
ring2="Dingir Ring",
waist="Light Belt",
legs="Arcadian Braccae +3",
feet="Arcadian Socks +3"
})
sets.precast.WS['Last Stand'].Mid = set_combine(sets.precast.WS['Last Stand'], {
body="Arcadian Jerkin +3",
})
sets.precast.WS['Last Stand'].Acc = set_combine(sets.precast.WS['Last Stand'].Mid, {
legs="Arcadian Braccae +3",
feet="Meghanada Jambeaux +2"
})
-- DETONATOR
sets.Detonator = {
ear2="Moonshade Earring",
neck="Flame Gorget",
waist="Light Belt",
}
sets.precast.WS['Detonator'] = set_combine(sets.precast.WS, sets.Detonator)
sets.precast.WS['Detonator'].Mid = set_combine(sets.precast.WS.Mid, sets.Detonator)
sets.precast.WS['Detonator'].Acc = set_combine(sets.precast.WS.Acc, sets.Detonator)
-- SLUG SHOT
sets.SlugShot = {
neck="Breeze Gorget",
ear2="Moonshade Earring",
waist="Light Belt",
}
sets.precast.WS['Slug Shot'] = set_combine(sets.precast.WS, sets.SlugShot)
sets.precast.WS['Slug Shot'].Mid = set_combine(sets.precast.WS.Mid, sets.SlugShot)
sets.precast.WS['Slug Shot'].Acc = set_combine(sets.precast.WS.Acc, sets.SlugShot)
sets.precast.WS['Heavy Shot'] = set_combine(sets.precast.WS, sets.SlugShot)
sets.precast.WS['Heavy Shot'].Mid = set_combine(sets.precast.WS.Mid, sets.SlugShot)
sets.precast.WS['Heavy Shot'].Acc = set_combine(sets.precast.WS.Acc, sets.SlugShot)
-- NAMAS
sets.Namas = {
neck="Aqua Gorget",
waist="Light Belt",
back=Belenus.WSD,
}
sets.precast.WS['Namas Arrow'] = set_combine(sets.precast.WS, sets.Namas)
sets.precast.WS['Namas Arrow'].Mid = set_combine(sets.precast.WS.Mid, sets.Namas)
sets.precast.WS['Namas Arrow'].Acc = set_combine(sets.precast.WS.Acc, sets.Namas)
-- JISHNUS
sets.Jishnus = {
neck="Flame Gorget",
ear2="Moonshade Earring",
waist="Light Belt",
body="Nisroch Jerkin",
back=Belenus.WSD,
ring1="Regal Ring",
ring2="Ilabrat Ring",
legs="Arcadian Braccae +3",
}
sets.precast.WS['Jishnu\'s Radiance'] = set_combine(sets.precast.WS, sets.Jishnus)
sets.precast.WS['Jishnu\'s Radiance'].Mid = set_combine(sets.precast.WS.Mid, {
neck="Flame Gorget",
ear2="Moonshade Earring",
waist="Light Belt",
legs="Arcadian Braccae +3",
feet="Mummu Gamashes +2"
})
sets.precast.WS['Jishnu\'s Radiance'].Acc = set_combine(sets.precast.WS.Acc, {
neck="Flame Gorget",
ear2="Moonshade Earring",
waist="Light Belt"
})
-- just a test (it works)
-- sets.precast.WS['Jishnu\'s Radiance'].Yoichinoyumi = set_combine(sets.precast.WS['Jishnu\'s Radiance'], {
-- neck="Iskur Gorget"
-- })
-- SIDEWINDER
sets.Sidewinder = {
neck="Aqua Gorget",
ear2="Moonshade Earring",
waist="Light Belt",
}
sets.precast.WS['Sidewinder'] = set_combine(sets.precast.WS, sets.Sidewinder)
sets.precast.WS['Sidewinder'].Mid = set_combine(sets.precast.WS.Mid, sets.Sidewinder)
sets.precast.WS['Sidewinder'].Acc = set_combine(sets.precast.WS.Acc, sets.Sidewinder)
sets.precast.WS['Refulgent Arrow'] = sets.precast.WS['Sidewinder']
sets.precast.WS['Refulgent Arrow'].Mid = sets.precast.WS['Sidewinder'].Mid
sets.precast.WS['Refulgent Arrow'].Acc = sets.precast.WS['Sidewinder'].Acc
sets.precast.WS['Evisceration'] = set_combine(sets.precast.WS, {
head="Adhemar Bonnet +1",
neck="Scout's Gorget +2",
ear1="Sherida Earring",
ear2="Odr Earring",
body="Meghanada Cuirie +2",
ring1="Regal Ring",
ring2="Ilabrat Ring",
hands="Mummu Wrists +2",
back=Belenus.WSD,
legs="Arcadian Braccae +3",
feet="Thereoid Greaves"
})
-- Resting sets
sets.resting = {}
-- Defense sets
sets.defense.PDT = set_combine(sets.idle, {})
sets.defense.MDT = set_combine(sets.idle, {})
--sets.Kiting = {feet="Fajin Boots"}
sets.buff.Barrage = {
head="Arcadian Beret +3",
neck="Scout's Gorget +2",
ear1="Crepuscular Earring",
ear2="Telos Earring",
body="Orion Jerkin +3",
hands="Orion Bracers +2",
ring1="Regal Ring",
ring2="Ilabrat Ring",
back=Belenus.STP,
waist="Kwahu Kachina Belt",
legs="Malignance Tights",
feet="Malignance Boots"
}
sets.buff.Camouflage = {body="Orion Jerkin +3"}
-- sets.Overkill = {
-- body="Arcadian Jerkin +3"
-- }
-- sets.Overkill.Preshot = set_combine(sets.precast.RA, sets.Overkill)
end
function get_rng_gearset()
local set = {}
if state.FightingMode.current ~= 'Default' then
---------------------------------------
setmod = sets[state.FightingMode.current]
set = set_combine(setmod, sets[state.GunSelector.current])
---------------------------------------
end
if state.ShootingMode.current ~= 'Default' then
---------------------------------------
setmod = sets[state.ShootingMode.current]
set = set_combine(setmod, sets[state.GunSelector.current])
---------------------------------------
end
return set
end
function job_pretarget(spell, action, spellMap, eventArgs)
-- if state.Buff[spell.english] ~= nil then
-- state.Buff[spell.english] = true
-- end
if spell.action_type == 'Ranged Attack' or spell.type == 'WeaponSkill' then
if state.OffenseMode.current ~= 'Normal' and state.RangedMode:contains(state.OffenseMode.current) then
state.RangedMode:set(state.OffenseMode.current)
end
end
end
-- Set eventArgs.handled to true if we don't want any automatic gear equipping to be done.
-- Set eventArgs.useMidcastGear to true if we want midcast gear equipped on precast.
function job_precast(spell, action, spellMap, eventArgs)
if state.Buff[spell.english] ~= nil then
state.Buff[spell.english] = true
end
if spell.action_type == 'Ranged Attack' or spell.type == 'WeaponSkill' or spell.type == 'CorsairShot' then
if state.OffenseMode.current ~= 'Normal' and state.RangedMode:contains(state.OffenseMode.current) then
state.RangedMode:set(state.OffenseMode.current)
end
end
-- Safety checks for weaponskills
if spell.type:lower() == 'weaponskill' then
if player.tp < 1000 then
eventArgs.cancel = true
return
end
if spell.target.distance > 22 then
add_to_chat(122,"Outside WS Range! /Canceling")
eventArgs.cancel = true
return
elseif state.DefenseMode.value ~= 'None' then
-- Don't gearswap for weaponskills when Defense is on.
eventArgs.handled = true
end
end
local gearset = get_rng_gearset()
equip(gearset)
end
-- Run after the default precast() is done.
-- eventArgs is the same one used in job_precast, in case information needs to be persisted.
-- This is where you place gear swaps you want in precast but applied on top of the precast sets
function job_post_precast(spell, action, spellMap, eventArgs)
if state.Buff.Camouflage then
equip(sets.buff.Camouflage)
end
-- elseif state.Buff.Overkill then
-- equip(sets.Overkill.Preshot)
if spell.type == 'WeaponSkill' then
if spell.english == 'Trueflight' then
if world.weather_element == 'Light' or world.day_element == 'Light' then
equip(sets.Obi)
end
end
if state.CapacityMode.value then
equip(sets.CapacityMantle)
end
end
end
-- Set eventArgs.handled to true if we don't want any automatic gear equipping to be done.
function job_midcast(spell, action, spellMap, eventArgs)
if state.Buff.Camouflage then
equip(sets.buff.Camouflage)
end
if spell.action_type == 'Ranged Attack' and state.CapacityMode.value then
equip(sets.CapacityMantle)
end
end
function job_post_midcast(spell, action, spellMap, eventArgs)
if buffactive["Barrage"] then
equip(sets.buff.Barrage)
end
end
-- Set eventArgs.handled to true if we don't want any automatic gear equipping to be done.
function job_aftercast(spell, action, spellMap, eventArgs)
if state.Buff[spell.name] ~= nil then
state.Buff[spell.name] = not spell.interrupted or buffactive[spell.english]
end
end