-
Notifications
You must be signed in to change notification settings - Fork 67
/
Arislan-RUN.lua
1238 lines (1075 loc) · 46.1 KB
/
Arislan-RUN.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
-- Original: Motenten / Modified: Arislan
-------------------------------------------------------------------------------------------------------------------
-- Keybinds
-------------------------------------------------------------------------------------------------------------------
-- Modes: [ F9 ] Cycle Offense Modes
-- [ CTRL+F9 ] Cycle Hybrid Modes
-- [ WIN+F9 ] Cycle Weapon Skill Modes
-- [ F10 ] Emergency -PDT Mode
-- [ ALT+F10 ] Toggle Kiting Mode
-- [ F11 ] Emergency -MDT Mode
-- [ F12 ] Update Current Gear / Report Current Status
-- [ CTRL+F12 ] Cycle Idle Modes
-- [ ALT+F12 ] Cancel Emergency -PDT/-MDT Mode
-- [ WIN+H ] Toggle Charm Defense Mods
-- [ WIN+D ] Toggle Death Defense Mods
-- [ WIN+K ] Toggle Knockback Defense Mods
-- [ WIN+A ] AttackMode: Capped/Uncapped WS Modifier
-- [ WIN+C ] Toggle Capacity Points Mode
--
-- Abilities: [ CTRL+` ] Use current Rune
-- [ CTRL+- ] Rune element cycle forward.
-- [ CTRL+= ] Rune element cycle backward.
-- [ CTRL+` ] Use current Rune
--
-- [ CTRL+Numpad/ ] Berserk/Meditate/Souleater
-- [ CTRL+Numpad* ] Warcry/Sekkanoki/Arcane Circle
-- [ CTRL+Numpad- ] Aggressor/Third Eye/Weapon Bash
--
-- Spells: [ WIN+, ] Utsusemi: Ichi
-- [ WIN+. ] Utsusemi: Ni
--
-- Weapons: [ CTRL+G ] Cycles between available greatswords
-- [ CTRL+W ] Toggle Weapon Lock
--
-- WS: [ CTRL+Numpad7 ] Resolution
-- [ CTRL+Numpad8 ] Upheaval
-- [ CTRL+Numpad9 ] Dimidiation
-- [ CTRL+Numpad5 ] Ground Strike
-- [ CTRL+Numpad6 ] Full Break
-- [ CTRL+Numpad1 ] Herculean Slash
-- [ CTRL+Numpad2 ] Shockwave
-- [ CTRL+Numpad3 ] Armor Break
--
--
-- (Global-Binds.lua contains additional non-job-related keybinds)
-------------------------------------------------------------------------------------------------------------------
-- Custom Commands (preface with /console to use these in macros)
-------------------------------------------------------------------------------------------------------------------
-- gs c rune Uses current rune
-- gs c cycle Runes Cycles forward through rune elements
-- gs c cycleback Runes Cycles backward through rune elements
-------------------------------------------------------------------------------------------------------------------
-- Setup functions for this job. Generally should not be modified.
-------------------------------------------------------------------------------------------------------------------
-- Initialization function for this job file.
function get_sets()
mote_include_version = 2
-- Load and initialize the include file.
include('Mote-Include.lua')
res = require 'resources'
end
-- Setup vars that are user-independent.
function job_setup()
rune_enchantments = S{'Ignis', 'Gelus', 'Flabra', 'Tellus', 'Sulpor', 'Unda',
'Lux','Tenebrae'}
-- /BLU Spell Maps
blue_magic_maps = {}
blue_magic_maps.Enmity = S{'Blank Gaze', 'Geist Wall', 'Jettatura', 'Soporific',
'Poison Breath', 'Blitzstrahl', 'Sheep Song', 'Chaotic Eye'}
blue_magic_maps.Cure = S{'Wild Carrot'}
blue_magic_maps.Buffs = S{'Cocoon', 'Refueling'}
no_swap_gear = S{"Warp Ring", "Dim. Ring (Dem)", "Dim. Ring (Holla)", "Dim. Ring (Mea)",
"Trizek Ring", "Echad Ring", "Facility Ring", "Capacity Ring"}
rayke_duration = 35
gambit_duration = 96
lockstyleset = 2
end
-------------------------------------------------------------------------------------------------------------------
-- User setup functions for this job. Recommend that these be overridden in a sidecar file.
-------------------------------------------------------------------------------------------------------------------
function user_setup()
state.OffenseMode:options('Normal', 'LowAcc', 'MidAcc', 'HighAcc', 'STP')
state.WeaponskillMode:options('Normal', 'Acc')
state.HybridMode:options('Normal', 'DT')
state.CastingMode:options('Normal', 'Resistant')
state.IdleMode:options('Normal', 'DT', 'Refresh')
state.PhysicalDefenseMode:options('PDT', 'HP')
state.MagicalDefenseMode:options('MDT')
state.Knockback = M(false, 'Knockback')
state.WeaponSet = M{['description']='Weapon Set', 'Epeolatry', 'Lionheart', 'Aettir', 'Lycurgos'}
state.AttackMode = M{['description']='Attack', 'Uncapped', 'Capped'}
-- state.CP = M(false, "Capacity Points Mode")
state.WeaponLock = M(false, 'Weapon Lock')
state.Runes = M{['description']='Runes', 'Ignis', 'Gelus', 'Flabra', 'Tellus', 'Sulpor', 'Unda', 'Lux', 'Tenebrae'}
-- Additional local binds
include('Global-Binds.lua') -- OK to remove this line
include('Global-GEO-Binds.lua') -- OK to remove this line
send_command('bind ^` input //gs c rune')
send_command('bind !` input /ja "Vivacious Pulse" <me>')
send_command('bind ^insert gs c cycleback Runes')
send_command('bind ^delete gs c cycle Runes')
send_command('bind ^f11 gs c cycle MagicalDefenseMode')
send_command('bind @a gs c cycle AttackMode')
-- send_command('bind @c gs c toggle CP')
send_command('bind @e gs c cycleback WeaponSet')
send_command('bind @r gs c cycle WeaponSet')
send_command('bind @w gs c toggle WeaponLock')
send_command('bind @k gs c toggle Knockback')
send_command('bind !q input /ma "Temper" <me>')
if player.sub_job == 'BLU' then
send_command('bind !w input /ma "Cocoon" <me>')
elseif player.sub_job == 'WAR' then
send_command('bind !w input /ja "Defender" <me>')
elseif player.sub_job == 'DRK' then
send_command('bind !w input /ja "Last Resort" <me>')
elseif player.sub_job == 'SAM' then
send_command('bind !w input /ja "Hasso" <me>')
end
send_command('bind !o input /ma "Regen IV" <stpc>')
send_command('bind !p input /ma "Shock Spikes" <me>')
send_command('bind @w gs c toggle WeaponLock')
if player.sub_job == 'WAR' then
send_command('bind ^numpad/ input /ja "Berserk" <me>')
send_command('bind ^numpad* input /ja "Warcry" <me>')
send_command('bind ^numpad- input /ja "Aggressor" <me>')
elseif player.sub_job == 'DRK' then
send_command('bind ^numpad/ input /ja "Souleater" <me>')
send_command('bind ^numpad* input /ja "Arcane Circle" <me>')
send_command('bind ^numpad- input /ja "Weapon Bash" <me>')
elseif player.sub_job == 'SAM' then
send_command('bind ^numpad/ input /ja "Meditate" <me>')
send_command('bind ^numpad* input /ja "Sekkanoki" <me>')
send_command('bind ^numpad- input /ja "Third Eye" <me>')
end
send_command('bind ^numpad7 input /ws "Resolution" <t>')
send_command('bind ^numpad8 input /ws "Upheaval" <t>')
send_command('bind ^numpad9 input /ws "Dimidiation" <t>')
send_command('bind ^numpad5 input /ws "Ground Strike" <t>;input /p Ground Strike')
send_command('bind ^numpad6 input /ws "Full Break" <t>')
send_command('bind ^numpad1 input /ws "Herculean Slash" <t>')
send_command('bind ^numpad2 input /ws "Shockwave" <t>')
send_command('bind ^numpad3 input /ws "Armor Break" <t>')
select_default_macro_book()
set_lockstyle()
state.Auto_Kite = M(false, 'Auto_Kite')
moving = false
end
function user_unload()
send_command('unbind ^`')
send_command('unbind !`')
send_command('unbind ^f11')
send_command('unbind ^insert')
send_command('unbind ^delete')
send_command('unbind @a')
-- send_command('unbind @c')
send_command('unbind @d')
send_command('unbind !q')
send_command('unbind @w')
send_command('unbind @e')
send_command('unbind @r')
send_command('unbind !o')
send_command('unbind !p')
send_command('unbind ^,')
send_command('unbind @w')
send_command('unbind ^numpad/')
send_command('unbind ^numpad*')
send_command('unbind ^numpad-')
send_command('unbind ^numpad7')
send_command('unbind ^numpad9')
send_command('unbind ^numpad5')
send_command('unbind ^numpad1')
send_command('unbind @numpad*')
send_command('unbind #`')
send_command('unbind #1')
send_command('unbind #2')
send_command('unbind #3')
send_command('unbind #4')
send_command('unbind #5')
send_command('unbind #6')
send_command('unbind #7')
send_command('unbind #8')
send_command('unbind #9')
send_command('unbind #0')
end
-- Define sets and vars used by this job file.
function init_gear_sets()
------------------------------------------------------------------------------------------------
---------------------------------------- Precast Sets ------------------------------------------
------------------------------------------------------------------------------------------------
sets.Enmity = {
ammo={name="Aqreqaq Bomblet", priority=1}, --2
head="Halitus Helm", --8
body="Emet Harness +1", --10
hands="Kurys Gloves", --9
legs="Eri. Leg Guards +1", --11
feet="Ahosi Leggings",--7
neck={name="Unmoving Collar +1", priority=4}, --10
--neck="Moonlight Necklace", --15
ear1={name="Tuisto Earring", priority=3},
--ear1="Cryptic Earring", --4
ear2="Trux Earring",
ring1={name="Pernicious Ring", priority=2}, --5
ring2="Eihwaz Ring", --5
back=gear.RUN_HPD_Cape, --10
waist="Kasiri Belt", --3
}
sets.precast.JA['Vallation'] = set_combine(sets.Enmity, {
body="Runeist's Coat +3",
legs="Futhark Trousers +3",
back=gear.RUN_HPD_Cape,
})
sets.precast.JA['Valiance'] = sets.precast.JA['Vallation']
sets.precast.JA['Pflug'] = set_combine(sets.Enmity, {feet="Runeist's Boots +3"})
sets.precast.JA['Battuta'] = set_combine(sets.Enmity, {head="Fu. Bandeau +3"})
sets.precast.JA['Liement'] = set_combine(sets.Enmity, {body="Futhark Coat +3"})
sets.precast.JA['Lunge'] = {
ammo="Ghastly Tathlum +1",
head=gear.Herc_MAB_head,
body="Carm. Sc. Mail +1",
hands="Carmine Fin. Ga. +1",
legs=gear.Herc_MAB_legs,
feet=gear.Herc_MAB_feet,
neck="Baetyl Pendant",
ear1="Crematio Earring",
ear2="Friomisi Earring",
ring1={name="Fenrir Ring +1", bag="wardrobe3"},
ring2={name="Fenrir Ring +1", bag="wardrobe4"},
back="Argocham. Mantle",
waist="Eschan Stone",
}
sets.precast.JA['Swipe'] = sets.precast.JA['Lunge']
sets.precast.JA['Gambit'] = set_combine(sets.Enmity, {hands="Runeist's Mitons +3"})
sets.precast.JA['Rayke'] = set_combine(sets.Enmity, {feet="Futhark Boots +3"})
sets.precast.JA['Elemental Sforzo'] = set_combine(sets.Enmity, {body="Futhark Coat +3"})
sets.precast.JA['Swordplay'] = set_combine(sets.Enmity, {hands="Futhark Mitons +3"})
sets.precast.JA['Vivacious Pulse'] = {
ammo={name="Aqreqaq Bomblet", priority=1},
head={name="Runeist's Bandeau +3", priority=3},
body={name="Runeist's Coat +3", priority=5},
legs="Rune. Trousers +3",
feet={name="Turms Leggings +1", priority=2},
neck="Incanter's Torque",
ear1={name="Tuisto Earring", priority=4},
ear2="Saxnot Earring",
ring1={name="Stikini Ring +1", bag="wardrobe3"},
ring2={name="Stikini Ring +1", bag="wardrobe4"},
--back="Altruistic Cape",
back=gear.RUN_HPD_Cape,
waist="Bishop's Sash",
}
sets.precast.JA['Vivacious Pulse'].Status = {head="Erilaz Galea +1",}
-- Fast cast sets for spells
sets.precast.FC = {
ammo="Sapience Orb", --2
head={name="Rune. Bandeau +3", priority=3},
body=gear.Taeon_FC_body, --9
hands="Leyline Gloves", --8
legs="Aya. Cosciales +2", --6
feet="Carmine Greaves +1", --8
neck="Orunmila's Torque", --5
ear1={name="Tuisto Earring", priority=5},
ear2={name="Odnowa Earring +1", priority=4},
ring1={name="Moonlight Ring", priority=2},
ring2="Weather. Ring +1", --6(4)
back=gear.RUN_FC_Cape, --10
waist={name="Oneiros Belt", priority=1}
}
sets.precast.FC.HP = set_combine(sets.precast.FC, {
ammo={name="Aqreqaq Bomblet", priority=1},
head={name="Rune. Bandeau +3", priority=4},
body={name="Runeist's Coat +3", priority=8},
neck={name="Unmoving Collar +1", priority=3}, --10
ear1={name="Tuisto Earring", priority=7},
ear2={name="Odnowa Earring +1", priority=6},
ring1={name="Moonlight Ring", priority=5},
waist={name="Oneiros Belt", priority=2}
})
sets.precast.FC['Enhancing Magic'] = set_combine(sets.precast.FC, {
legs="Futhark Trousers +3",
})
------------------------------------------------------------------------------------------------
------------------------------------- Weapon Skill Sets ----------------------------------------
------------------------------------------------------------------------------------------------
sets.precast.WS = {
ammo="Knobkierrie",
head=gear.Herc_WSD_head,
body=gear.Herc_WS_body,
hands="Meg. Gloves +2",
legs=gear.Herc_WS_legs,
feet=gear.Herc_TA_feet,
neck="Fotia Gorget",
ear1="Sherida Earring",
ear2="Moonshade Earring",
ring1="Regal Ring",
ring2="Niqmaddu Ring",
back=gear.RUN_WS1_Cape,
waist="Fotia Belt",
}
sets.precast.WS.Acc = set_combine(sets.precast.WS, {
ammo="Voluspa Tathlum",
body=gear.Adhemar_B_body,
legs="Meg. Chausses +2",
ear2="Telos Earring",
})
sets.precast.WS.Uncapped = set_combine(sets.precast.WS, {
ammo="Aurgelmir Orb +1",
})
sets.precast.WS['Resolution'] = set_combine(sets.precast.WS, {
ammo="Seeth. Bomblet +1",
head="Lustratio Cap +1",
body="Lustr. Harness +1",
hands=gear.Adhemar_B_hands,
legs="Samnuha Tights",
feet="Lustra. Leggings +1",
--neck="Futhark Torque +2",
ring1="Epona's Ring",
back=gear.RUN_WS1_Cape,
})
sets.precast.WS['Resolution'].Acc = set_combine(sets.precast.WS['Resolution'], {
ammo="Voluspa Tathlum",
head="Blistering Sallet +1",
hands=gear.Adhemar_A_hands,
legs="Meg. Chausses +2",
ear2="Telos Earring",
})
sets.precast.WS['Resolution'].Uncapped = set_combine(sets.precast.WS['Resolution'], {
body=gear.Adhemar_B_body,
legs="Meg. Chausses +2",
feet=gear.Herc_TA_feet,
ring1="Regal Ring",
})
sets.precast.WS['Resolution'].Safe = set_combine(sets.precast.WS['Resolution'], {
head="Blistering Sallet +1",
body=gear.Adhemar_B_body,
feet=gear.Herc_TA_feet,
})
sets.precast.WS['Dimidiation'] = set_combine(sets.precast.WS, {
ammo="Aurgelmir Orb +1",
body=gear.Adhemar_B_body,
legs="Lustr. Subligar +1",
feet="Lustra. Leggings +1",
ear1="Odr Earring",
ring2="Epaminondas's Ring",
back=gear.RUN_WS2_Cape,
})
sets.precast.WS['Dimidiation'].Acc = set_combine(sets.precast.WS['Dimidiation'], {
ammo="Voluspa Tathlum",
body=gear.Adhemar_B_body,
legs="Samnuha Tights",
ear2="Mache Earring +1",
})
sets.precast.WS['Dimidiation'].Uncapped = set_combine(sets.precast.WS['Dimidiation'], {
neck="Caro Necklace",
waist="Grunfeld Rope",
})
sets.precast.WS['Dimidiation'].Safe = set_combine(sets.precast.WS['Dimidiation'], {
legs="Lustr. Subligar +1",
feet=gear.Herc_TA_feet,
})
sets.precast.WS['Herculean Slash'] = sets.precast.JA['Lunge']
sets.precast.WS['Shockwave'] = {
ammo="Pemphredo Tathlum",
head="Blistering Sallet +1",
body="Ayanmo Corazza +2",
hands="Leyline Gloves",
legs="Aya. Cosciales +2",
feet="Aya. Gambieras +2",
neck="Erra Pendant",
ear1="Digni. Earring",
ear2="Moonshade Earring",
ring1="Metamor. Ring +1",
ring2="Weather. Ring +1",
back=gear.RUN_WS1_Cape,
waist="Acuity Belt +1",
}
sets.precast.WS['Fell Cleave'] = set_combine(sets.precast.WS, {
feet="Lustra. Leggings +1",
ear2="Ishvara Earring",
back=gear.RUN_WS1_Cape,
waist="Sailfi Belt +1",
})
sets.precast.WS['Fell Cleave'].Acc = set_combine(sets.precast.WS.Acc, {
ear2="Ishvara Earring",
back=gear.RUN_WS1_Cape,
waist="Sailfi Belt +1",
})
sets.precast.WS['Fell Cleave'].Safe = set_combine(sets.precast.WS, {
feet="Futhark Boots +3",
})
sets.precast.WS['Steel Cyclone'] = sets.precast.WS['Fell Cleave']
sets.precast.WS['Steel Cyclone'].Acc = sets.precast.WS['Fell Cleave'].Acc
sets.precast.WS['Steel Cyclone'].Safe = sets.precast.WS['Fell Cleave'].Safe
sets.precast.WS['Upheaval'] = sets.precast.WS['Resolution']
sets.precast.WS['Upheaval'].Acc = sets.precast.WS['Resolution'].Acc
sets.precast.WS['Upheaval'].Safe = sets.precast.WS['Resolution'].Safe
sets.precast.WS['Shield Break'] = sets.precast.WS['Shockwave']
sets.precast.WS['Armor Break'] = sets.precast.WS['Shockwave']
sets.precast.WS['Weapon Break'] = sets.precast.WS['Shockwave']
sets.precast.WS['Full Break'] = sets.precast.WS['Shockwave']
------------------------------------------------------------------------------------------------
---------------------------------------- Midcast Sets ------------------------------------------
------------------------------------------------------------------------------------------------
sets.midcast.FastRecast = sets.precast.FC
sets.midcast.SpellInterrupt = {
ammo="Staunch Tathlum +1", --11
head={name="Runeist's Bandeau +3", priority=2},
body=gear.Taeon_Phalanx_body, --10
hands=gear.Taeon_Phalanx_hands, --10
legs=gear.Taeon_Phalanx_legs, --10
feet=gear.Taeon_Phalanx_feet, --10
neck="Moonlight Necklace", --15
ear1={name="Tuisto Earring", priority=3},
ear2="Magnetic Earring", --8
ring1={name="Moonlight Ring", priority=1},
ring2="Evanescence Ring", --5
back=gear.RUN_FC_Cape, --10
waist="Audumbla Sash", --10
} -- +10% from merit points
sets.midcast.Utsusemi = sets.midcast.SpellInterrupt
sets.midcast.Cure = {
sub="Refined Grip +1",
ammo="Staunch Tathlum +1",
head={name="Runeist's Bandeau +3", priority=2},
body="Vrikodara Jupon", -- 13
hands={name="Regal Gauntlets", priority=4},
legs="Aya. Cosciales +2",
feet="Skaoi Boots", --7
neck="Sacro Gorget", -- 10
ear1={name="Tuisto Earring", priority=3},
ear2="Mendi. Earring", -- 5
ring1="Lebeche Ring", -- 3
ring2="Menelaus's Ring", --5
back="Solemnity Cape", -- 7
waist={name="Oneiros Belt", priority=1}
}
sets.midcast['Enhancing Magic'] = set_combine(sets.midcast.SpellInterrupt, {
head="Erilaz Galea +1",
hands="Regal Gauntlets",
legs="Futhark Trousers +3",
})
sets.midcast['Phalanx'] = set_combine(sets.midcast['Enhancing Magic'], {
main="Deacon Sword", --4
head="Fu. Bandeau +3", --7
body=gear.Taeon_Phalanx_body, --3(10)
hands=gear.Taeon_Phalanx_hands, --3(10)
legs=gear.Taeon_Phalanx_legs, --3(10)
feet=gear.Taeon_Phalanx_feet, --3(10)
})
sets.midcast['Aquaveil'] = set_combine(sets.midcast['Enhancing Magic'], {
main="Nibiru Faussar", --1
sub="Refined Grip +1",
})
sets.midcast.Temper = {
main="Pukulatmuj +1",
head="Carmine Mask +1",
body="Manasa Chasuble",
hands="Runeist's Mitons +3",
legs="Carmine Cuisses +1",
feet={name="Turms Leggings +1", priority=2},
neck="Incanter's Torque",
ear1="Mimir Earring",
ear2="Andoaa Earring",
ring1={name="Stikini Ring +1", bag="wardrobe3"},
ring2={name="Stikini Ring +1", bag="wardrobe4"},
back="Merciful Cape",
waist="Olympus Sash",
}
sets.midcast.Regen = set_combine(sets.midcast['Enhancing Magic'], {head="Rune. Bandeau +3", neck="Sacro Gorget"})
sets.midcast.Refresh = set_combine(sets.midcast['Enhancing Magic'], {head="Erilaz Galea +1", waist="Gishdubar Sash"})
sets.midcast.Stoneskin = set_combine(sets.midcast['Enhancing Magic'], {waist="Siegel Sash"})
sets.midcast.Protect = set_combine(sets.midcast['Enhancing Magic'], {ring2="Sheltered Ring"})
sets.midcast.Shell = sets.midcast.Protect
sets.midcast['Divine Magic'] = sets.Enmity
sets.midcast['Enfeebling Magic'] = {
main="Lycurgos",
sub="Khonsu",
ammo="Pemphredo Tathlum",
head="Blistering Sallet +1",
body="Ayanmo Corazza +2",
hands="Aya. Manopolas +2",
legs="Aya. Cosciales +2",
feet="Aya. Gambieras +2",
neck="Erra Pendant",
ear1="Digni. Earring",
ear2="Vor Earring",
ring1="Metamor. Ring +1",
ring2="Weather. Ring +1",
back="Evasionist's Cape",
waist="Acuity Belt +1",
}
sets.midcast.Flash = sets.Enmity
sets.midcast.Foil = sets.Enmity
sets.midcast.Stun = sets.Enmity
sets.midcast.Utsusemi = sets.midcast.SpellInterrupt
sets.midcast['Blue Magic'] = {}
sets.midcast['Blue Magic'].Enmity = sets.Enmity
sets.midcast['Blue Magic'].Cure = sets.midcast.Cure
sets.midcast['Blue Magic'].Buff = {}
------------------------------------------------------------------------------------------------
----------------------------------------- Idle Sets --------------------------------------------
------------------------------------------------------------------------------------------------
sets.idle = {
sub="Mensch Strap +1",
ammo="Homiliary",
head="Turms Cap +1",
body="Futhark Coat +3",
hands="Regal Gauntlets",
legs="Turms Subligar +1",
feet="Turms Leggings +1",
neck="Bathy Choker +1",
ear1="Sanare Earring",
ear2="Odnowa Earring +1",
ring1={name="Chirich Ring +1", bag="wardrobe3"},
ring2={name="Chirich Ring +1", bag="wardrobe4"},
back=gear.RUN_HPD_Cape,
waist="Ioskeha Belt +1",
}
sets.idle.DT = {
sub="Mensch Strap +1", --5/0
ammo="Staunch Tathlum +1", --3/3
head="Fu. Bandeau +3", --6/0
body="Runeist's Coat +3",
hands="Turms Mittens +1",
legs="Turms Subligar +1",
feet="Turms Leggings +1",
neck="Futhark Torque +2", --7/7
ear1="Sanare Earring",
ear2="Odnowa Earring +1", --0/2
ring1="Moonlight Ring", --5/5
ring2="Defending Ring", --10/10
back=gear.RUN_HPD_Cape, --10/0
waist="Flume Belt +1", --4/0
}
sets.idle.Refresh = set_combine(sets.idle, {
ammo="Homiliary",
head=gear.Herc_Idle_head,
body="Runeist's Coat +3",
hands="Regal Gauntlets",
legs="Rawhide Trousers",
ring1={name="Stikini Ring +1", bag="wardrobe3"},
ring2={name="Stikini Ring +1", bag="wardrobe4"},
})
sets.idle.Town = set_combine(sets.idle, {
ammo="Aurgelmir Orb +1",
head="Turms Cap +1",
body="Ashera Harness",
neck="Futhark Torque +2",
ear1="Sanare Earring",
})
sets.Kiting = {legs="Carmine Cuisses +1"}
------------------------------------------------------------------------------------------------
---------------------------------------- Defense Sets ------------------------------------------
------------------------------------------------------------------------------------------------
sets.defense.Knockback = {back="Repulse Mantle"}
sets.defense.PDT = {
sub="Refined Grip +1", --3/3
ammo="Staunch Tathlum +1", --3/3
head="Turms Cap +1",
body="Runeist's Coat +3",
hands="Turms Mittens +1",
legs="Eri. Leg Guards +1", --7/0
feet="Turms Leggings +1",
neck="Futhark Torque +2", --7/7
ear1="Tuisto Earring",
ear2="Odnowa Earring +1", --3/5
ring1="Gelatinous Ring +1", --7/(-1)
ring2="Defending Ring", --10/10
back=gear.RUN_HPD_Cape, --10/0
waist="Engraved Belt",
}
sets.defense.MDT = {
sub="Refined Grip +1", --3/3
ammo="Staunch Tathlum +1", --3/3
head="Turms Cap +1",
body="Runeist's Coat +3",
hands="Turms Mittens +1",
legs="Eri. Leg Guards +1", --7/0
feet="Turms Leggings +1",
neck="Futhark Torque +2", --7/7
ear1="Tuisto Earring",
ear2="Odnowa Earring +1", --3/5
ring1="Gelatinous Ring +1", --7/(-1)
ring2="Defending Ring", --10/10
back=gear.RUN_HPD_Cape, --10/0
waist="Engraved Belt",
}
sets.defense.HP = {
sub="Mensch Strap +1", --5/0
ammo="Staunch Tathlum +1", --3/3
head=gear.Adhemar_D_head, --4/0
body={name="Runeist's Coat +3", priority=2},
hands={name="Regal Gauntlets", priority=3},
legs="Eri. Leg Guards +1", --7/0
feet="Turms Leggings +1",
neck="Futhark Torque +2", --7/7
ear1={name="Tuisto Earring", priority=6},
ear2={name="Odnowa Earring +1", priority=5}, --3/5
ring1={name="Moonlight Ring", priority=4}, --5/5
ring2="Defending Ring", --10/10
back={name="Moonlight Cape", priority=1}, --6/6
waist="Engraved Belt",
}
sets.defense.Parry = {
hands="Turms Mittens +1",
legs="Eri. Leg Guards +1",
feet="Turms Leggings +1",
back=gear.RUN_HPP_Cape,
}
------------------------------------------------------------------------------------------------
---------------------------------------- Engaged Sets ------------------------------------------
------------------------------------------------------------------------------------------------
sets.engaged = {
sub="Utu Grip",
ammo="Aurgelmir Orb +1",
head=gear.Adhemar_B_head,
body=gear.Adhemar_B_body,
hands=gear.Adhemar_B_hands,
legs="Samnuha Tights",
feet=gear.Herc_TA_feet,
neck="Anu Torque",
ear1="Sherida Earring",
ear2="Brutal Earring",
ring1="Epona's Ring",
ring2="Niqmaddu Ring",
back=gear.RUN_TP_Cape,
waist="Sailfi Belt +1",
}
sets.engaged.LowAcc = set_combine(sets.engaged, {
head="Dampening Tam",
hands=gear.Adhemar_A_hands,
neck="Combatant's Torque",
waist="Ioskeha Belt +1",
})
sets.engaged.MidAcc = set_combine(sets.engaged.LowAcc, {
ammo="Yamarang",
ear1="Cessance Earring",
ear2="Telos Earring",
ring1="Regal Ring",
})
sets.engaged.HighAcc = set_combine(sets.engaged.MidAcc, {
ammo="C. Palug Stone",
head="Carmine Mask +1",
body="Carm. Sc. Mail +1",
hands="Gazu Bracelet +1",
legs="Carmine Cuisses +1",
ear1="Odr Earring",
ear2="Mache Earring +1",
waist="Olseni Belt",
})
sets.engaged.STP = set_combine(sets.engaged, {
head="Aya. Zucchetto +2",
body="Ashera Harness",
feet="Carmine Greaves +1",
ear2="Dedition Earring",
ring1={name="Chirich Ring +1", bag="wardrobe3"},
ring2={name="Chirich Ring +1", bag="wardrobe4"},
waist="Kentarch Belt +1",
})
sets.engaged.Aftermath = {
head="Aya. Zucchetto +2",
body="Ashera Harness",
neck="Anu Torque",
ear1="Sherida Earring",
ear2="Dedition Earring",
ring1={name="Chirich Ring +1", bag="wardrobe3"},
ring2={name="Chirich Ring +1", bag="wardrobe4"},
waist="Kentarch Belt +1",
}
------------------------------------------------------------------------------------------------
---------------------------------------- Hybrid Sets -------------------------------------------
------------------------------------------------------------------------------------------------
sets.Hybrid = {
head=gear.Adhemar_D_head, --4/0
body="Ashera Harness", --7/7
neck="Futhark Torque +2", --7/7
ring1="Moonlight Ring", --5/5
ring2="Defending Ring", --10/10
back=gear.RUN_TP_Cape, --10/0
}
sets.engaged.DT = set_combine(sets.engaged, sets.Hybrid)
sets.engaged.LowAcc.DT = set_combine(sets.engaged.LowAcc, sets.Hybrid)
sets.engaged.MidAcc.DT = set_combine(sets.engaged.MidAcc, sets.Hybrid)
sets.engaged.HighAcc.DT = set_combine(sets.engaged.HighAcc, sets.Hybrid)
sets.engaged.STP.DT = set_combine(sets.engaged.STP, sets.Hybrid)
sets.engaged.Aftermath.DT = {
head="Aya. Zucchetto +2",
body="Ashera Harness",
hands=gear.Adhemar_A_hands,
legs="Meg. Chausses +2",
neck="Futhark Torque +2",
ear1="Sherida Earring",
ear2="Dedition Earring",
ring1="Moonlight Ring",
ring2="Defending Ring",
back=gear.RUN_TP_Cape,
waist="Sailfi Belt +1",
}
------------------------------------------------------------------------------------------------
---------------------------------------- Special Sets ------------------------------------------
------------------------------------------------------------------------------------------------
sets.buff.Doom = {
neck="Nicander's Necklace", --20
ring1={name="Eshmun's Ring", bag="wardrobe3"}, --20
ring2={name="Eshmun's Ring", bag="wardrobe4"}, --20
waist="Gishdubar Sash", --10
}
sets.Embolden = set_combine(sets.midcast.EnhancingDuration, {back="Evasionist's Cape"})
sets.Obi = {waist="Hachirin-no-Obi"}
-- sets.CP = {back="Mecisto. Mantle"}
--sets.Reive = {neck="Ygnas's Resolve +1"}
sets.Epeolatry = {main="Epeolatry"}
sets.Lionheart = {main="Lionheart"}
sets.Aettir = {main="Aettir"}
sets.Lycurgos = {main="Lycurgos"}
end
-------------------------------------------------------------------------------------------------------------------
-- Job-specific hooks for standard casting events.
-------------------------------------------------------------------------------------------------------------------
function job_precast(spell, action, spellMap, eventArgs)
equip(sets[state.WeaponSet.current])
if buffactive['terror'] or buffactive['petrification'] or buffactive['stun'] or buffactive['sleep'] then
add_to_chat(167, 'Action stopped due to status.')
eventArgs.cancel = true
return
end
if rune_enchantments:contains(spell.english) then
eventArgs.handled = true
end
if state.DefenseMode.value == 'Physical' and state.PhysicalDefenseMode.current == 'HP' then
currentSpell = spell.english
eventArgs.handled = true
if spell.action_type == 'Magic' then
equip(sets.precast.FC.HP)
end
end
if spell.english == 'Lunge' then
local abil_recasts = windower.ffxi.get_ability_recasts()
if abil_recasts[spell.recast_id] > 0 then
send_command('input /jobability "Swipe" <t>')
-- add_to_chat(122, '***Lunge Aborted: Timer on Cooldown -- Downgrading to Swipe.***')
eventArgs.cancel = true
return
end
end
if spell.english == 'Valiance' then
local abil_recasts = windower.ffxi.get_ability_recasts()
if abil_recasts[spell.recast_id] > 0 then
send_command('input /jobability "Vallation" <me>')
eventArgs.cancel = true
return
elseif spell.english == 'Valiance' and buffactive['vallation'] then
cast_delay(0.2)
send_command('cancel Vallation') -- command requires 'cancel' add-on to work
end
end
if spellMap == 'Utsusemi' then
if buffactive['Copy Image (3)'] or buffactive['Copy Image (4+)'] then
cancel_spell()
add_to_chat(123, '**!! '..spell.english..' Canceled: [3+ IMAGES] !!**')
eventArgs.handled = true
return
elseif buffactive['Copy Image'] or buffactive['Copy Image (2)'] then
send_command('cancel 66; cancel 444; cancel Copy Image; cancel Copy Image (2)')
end
end
end
function job_post_precast(spell, action, spellMap, eventArgs)
if spell.english == 'Vivacious Pulse' then
if buffactive['poison'] or buffactive['paralysis'] or buffactive['blindness'] or buffactive['silence']
or buffactive['curse'] or buffactive['bane'] or buffactive['doom'] or buffactive['disease'] or buffactive['plague'] then
equip(sets.precast.JA['Vivacious Pulse'].Status)
end
end
end
--[[function job_midcast(spell, action, spellMap, eventArgs)
if state.DefenseMode.value == 'Physical' and state.PhysicalDefenseMode.current == 'HP' and spell.english ~= "Phalanx" then
eventArgs.handled = true
if spell.action_type == 'Magic' then
if spell.english == 'Flash' or spell.english == 'Foil' or spell.english == 'Stun'
or blue_magic_maps.Enmity:contains(spell.english) then
equip(sets.Enmity)
elseif spell.skill == 'Enhancing Magic' then
equip(sets.midcast.EnhancingDuration)
end
end
end
end--]]
-- Run after the default midcast() is done.
-- eventArgs is the same one used in job_midcast, in case information needs to be persisted.
function job_post_midcast(spell, action, spellMap, eventArgs)
if spell.english == 'Lunge' or spell.english == 'Swipe' then
if (spell.element == world.day_element or spell.element == world.weather_element) then
equip(sets.Obi)
end
end
--[[if spell.skill == 'Enhancing Magic' and classes.NoSkillSpells:contains(spell.english) then
equip(sets.midcast.EnhancingDuration)
if spellMap == 'Refresh' then
equip(sets.midcast.Refresh)
end
end--]]
if spell.english == 'Phalanx' and buffactive['Embolden'] then
equip(sets.midcast.PhalanxDuration)
end
end
function job_aftercast(spell, action, spellMap, eventArgs)
equip(sets[state.WeaponSet.current])
if spell.name == 'Rayke' and not spell.interrupted then
send_command('@timers c "Rayke ['..spell.target.name..']" '..rayke_duration..' down spells/00136.png')
send_command('wait '..rayke_duration..';input /echo [Rayke just wore off!];')
elseif spell.name == 'Gambit' and not spell.interrupted then
send_command('@timers c "Gambit ['..spell.target.name..']" '..gambit_duration..' down spells/00136.png')
send_command('wait '..gambit_duration..';input /echo [Gambit just wore off!];')
end
end
-------------------------------------------------------------------------------------------------------------------
-- Job-specific hooks for non-casting events.
-------------------------------------------------------------------------------------------------------------------
-- Called when the player's status changes.
function job_state_change(field, new_value, old_value)
classes.CustomDefenseGroups:clear()
classes.CustomDefenseGroups:append(state.Charm.current)
classes.CustomDefenseGroups:append(state.Knockback.current)
classes.CustomDefenseGroups:append(state.Death.current)
classes.CustomMeleeGroups:clear()
classes.CustomMeleeGroups:append(state.Charm.current)
classes.CustomMeleeGroups:append(state.Knockback.current)
classes.CustomMeleeGroups:append(state.Death.current)
end
function job_buff_change(buff,gain)
-- If we gain or lose any haste buffs, adjust which gear set we target.
-- if buffactive['Reive Mark'] then
-- if gain then
-- equip(sets.Reive)
-- disable('neck')
-- else
-- enable('neck')
-- end
-- end
if buff == "terror" then
if gain then
equip(sets.defense.PDT)
end
end
if buff == "doom" then
if gain then
equip(sets.buff.Doom)
send_command('@input /p Doomed.')
disable('ring1','ring2','waist')
else
enable('ring1','ring2','waist')
handle_equipping_gear(player.status)
end
end
if buff == 'Embolden' then
if gain then
equip(sets.Embolden)
disable('head','legs','back')
else
enable('head','legs','back')
status_change(player.status)
end
end
if buff:startswith('Aftermath') then
state.Buff.Aftermath = gain
customize_melee_set()
handle_equipping_gear(player.status)
end
if buff == 'Battuta' and not gain then
status_change(player.status)
end