-
Notifications
You must be signed in to change notification settings - Fork 66
/
Copy pathArislan-DNC.lua
1258 lines (1088 loc) · 45.5 KB
/
Arislan-DNC.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
-- Haste/DW Detection Requires Gearinfo Addon
-------------------------------------------------------------------------------------------------------------------
-- 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+F ] Toggle Closed Position (Facing) Mode
-- [ WIN+C ] Toggle Capacity Points Mode
--
-- Abilities: [ CTRL+- ] Primary step element cycle forward.
-- [ CTRL+= ] Primary step element cycle backward.
-- [ ALT+- ] Secondary step element cycle forward.
-- [ ALT+= ] Secondary step element cycle backward.
-- [ CTRL+[ ] Toggle step target type.
-- [ CTRL+] ] Toggle use secondary step.
-- [ Numpad0 ] Perform Current Step
--
-- [ CTRL+` ] Saber Dance
-- [ ALT+` ] Chocobo Jig II
-- [ ALT+[ ] Contradance
-- [ CTRL+Numlock ] Reverse Flourish
-- [ CTRL+Numpad/ ] Berserk/Meditate
-- [ CTRL+Numpad* ] Warcry/Sekkanoki
-- [ CTRL+Numpad- ] Aggressor/Third Eye
-- [ CTRL+Numpad+ ] Climactic Flourish
-- [ CTRL+NumpadEnter ]Building Flourish
-- [ CTRL+Numpad0 ] Sneak Attack
-- [ CTRL+Numpad. ] Trick Attack
--
-- Spells: [ WIN+, ] Utsusemi: Ichi
-- [ WIN+. ] Utsusemi: Ni
--
-- WS: [ CTRL+Numpad7 ] Exenterator
-- [ CTRL+Numpad4 ] Evisceration
-- [ CTRL+Numpad5 ] Rudra's Storm
-- [ CTRL+Numpad6 ] Pyrrhic Kleos
-- [ CTRL+Numpad1 ] Aeolian Edge
--
--
-- (Global-Binds.lua contains additional non-job-related keybinds)
-------------------------------------------------------------------------------------------------------------------
-- Custom Commands (preface with /console to use these in macros)
-------------------------------------------------------------------------------------------------------------------
-- gs c step Uses the currently configured step on the target, with either <t> or
-- <stnpc> depending on setting.
-- gs c step t Uses the currently configured step on the target, but forces use of <t>.
--
-- gs c cycle mainstep Cycles through the available steps to use as the primary step when using
-- one of the above commands.
-- gs c cycle altstep Cycles through the available steps to use for alternating with the
-- configured main step.
-- gs c toggle usealtstep Toggles whether or not to use an alternate step.
-- gs c toggle selectsteptarget Toggles whether or not to use <stnpc> (as opposed to <t>) when using a step.
-------------------------------------------------------------------------------------------------------------------
-- 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')
end
-- Setup vars that are user-independent. state.Buff vars initialized here will automatically be tracked.
function job_setup()
state.Buff['Climactic Flourish'] = buffactive['climactic flourish'] or false
state.Buff['Sneak Attack'] = buffactive['sneak attack'] or false
state.MainStep = M{['description']='Main Step', 'Box Step', 'Quickstep', 'Feather Step', 'Stutter Step'}
state.AltStep = M{['description']='Alt Step', 'Quickstep', 'Feather Step', 'Stutter Step', 'Box Step'}
state.UseAltStep = M(false, 'Use Alt Step')
state.SelectStepTarget = M(false, 'Select Step Target')
state.IgnoreTargetting = M(true, 'Ignore Targetting')
state.ClosedPosition = M(false, 'Closed Position')
state.CurrentStep = M{['description']='Current Step', 'Main', 'Alt'}
-- state.SkillchainPending = M(false, 'Skillchain Pending')
state.CP = M(false, "Capacity Points Mode")
no_swap_gear = S{"Warp Ring", "Dim. Ring (Dem)", "Dim. Ring (Holla)", "Dim. Ring (Mea)",
"Trizek Ring", "Echad Ring", "Facility Ring", "Capacity Ring"}
lockstyleset = 1
end
-------------------------------------------------------------------------------------------------------------------
-- User setup functions for this job. Recommend that these be overridden in a sidecar file.
-------------------------------------------------------------------------------------------------------------------
-- Setup vars that are user-dependent. Can override this function in a sidecar file.
function user_setup()
state.OffenseMode:options('Normal', 'LowAcc', 'MidAcc', 'HighAcc', 'STP')
state.HybridMode:options('Normal', 'DT')
state.WeaponskillMode:options('Normal', 'Acc')
state.IdleMode:options('Normal', 'DT')
-- 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 ^- gs c cycleback mainstep')
send_command('bind ^= gs c cycle mainstep')
send_command('bind !- gs c cycleback altstep')
send_command('bind != gs c cycle altstep')
send_command('bind ^] gs c toggle usealtstep')
send_command('bind ![ input /ja "Contradance" <me>')
send_command('bind ^` input /ja "Saber Dance" <me>')
send_command('bind !` input /ja "Fan Dance" <me>')
send_command('bind @` input /ja "Chocobo Jig II" <me>')
send_command('bind @f gs c toggle ClosedPosition')
send_command('bind ^numlock input /ja "Reverse Flourish" <me>')
send_command('bind @c gs c toggle CP')
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 == '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>')
elseif player.sub_job == 'THF' then
send_command('bind ^numpad0 input /ja "Sneak Attack" <me>')
send_command('bind ^numpad. input /ja "Trick Attack" <me>')
end
send_command('bind ^numpad+ input /ja "Climactic Flourish" <me>')
send_command('bind ^numpadenter input /ja "Building Flourish" <me>')
send_command('bind ^numpad7 input /ws "Exenterator" <t>')
send_command('bind ^numpad4 input /ws "Evisceration" <t>')
send_command('bind ^numpad5 input /ws "Rudra\'s Storm" <t>')
send_command('bind ^numpad6 input /ws "Pyrrhic Kleos" <t>')
send_command('bind ^numpad1 input /ws "Aeolian Edge" <t>')
send_command('bind %numpad0 gs c step t')
select_default_macro_book()
set_lockstyle()
state.Auto_Kite = M(false, 'Auto_Kite')
Haste = 0
DW_needed = 0
DW = false
moving = false
update_combat_form()
determine_haste_group()
end
-- Called when this job file is unloaded (eg: job change)
function user_unload()
send_command('unbind ^-')
send_command('unbind ^=')
send_command('unbind !-')
send_command('unbind !=')
send_command('unbind ^]')
send_command('unbind ^[')
send_command('unbind ^]')
send_command('unbind ![')
send_command('unbind ^`')
send_command('unbind !`')
send_command('unbind @`')
send_command('unbind ^,')
send_command('unbind @f')
send_command('unbind @c')
send_command('unbind ^numlock')
send_command('unbind ^numpad/')
send_command('unbind ^numpad*')
send_command('unbind ^numpad-')
send_command('unbind ^numpad+')
send_command('unbind ^numpadenter')
send_command('unbind ^numpad7')
send_command('unbind ^numpad4')
send_command('unbind ^numpad5')
send_command('unbind ^numpad6')
send_command('unbind ^numpad1')
send_command('unbind numpad0')
send_command('unbind ^numpad0')
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 ------------------------------------------
------------------------------------------------------------------------------------------------
-- Enmity set
sets.Enmity = {
ammo="Sapience Orb", --2
head="Halitus Helm", --8
body="Emet Harness +1", --10
hands="Horos Bangles +3", --9
feet="Ahosi Leggings", --7
neck="Unmoving Collar +1", --10
ear1="Cryptic Earring", --4
ear2="Trux Earring", --5
ring1="Pernicious Ring", --5
ring2="Eihwaz Ring", --5
back=gear.DNC_WTZ_Cape, --10
waist="Kasiri Belt", --3
}
sets.precast.JA['Provoke'] = sets.Enmity
sets.precast.JA['No Foot Rise'] = {body="Horos Casaque +3"}
sets.precast.JA['Trance'] = {head="Horos Tiara +3"}
sets.precast.Waltz = {
head="Maxixi Tiara +3",
body="Maxixi Casaque +3", --19(8)
hands="Horos Bangles +3",
legs="Dashing Subligar", --10
feet="Maxixi Toe Shoes +3", --14
neck="Etoile Gorget +2", --10
--ear1="Handler's Earring +1",
ear2="Enchntr. Earring +1",
ring1="Carb. Ring +1",
ring2="Metamor. Ring +1",
back=gear.DNC_WTZ_Cape,
waist="Aristo Belt",
} -- Waltz Potency/CHR
sets.precast.WaltzSelf = set_combine(sets.precast.Waltz, {
head="Mummu Bonnet +2", --(8)
ring1="Asklepian Ring", --(3)
ear1="Roundel Earring", --5
}) -- Waltz effects received
sets.precast.Waltz['Healing Waltz'] = {}
sets.precast.Samba = {head="Maxixi Tiara +3", back=gear.DNC_TP_Cape}
sets.precast.Jig = {legs="Horos Tights +3", feet="Maxixi Toe Shoes +3"}
sets.precast.Step = {
ammo="C. Palug Stone",
head="Maxixi Tiara +3",
body="Maxixi Casaque +3",
hands="Gazu Bracelet +1",
legs="Mummu Kecks +2",
feet="Horos T. Shoes +3",
neck="Etoile Gorget +2",
ear1="Mache Earring +1",
ear2="Telos Earring",
ring1="Regal Ring",
ring2={name="Chirich Ring +1", bag="wardrobe4"},
waist="Olseni Belt",
back=gear.DNC_TP_Cape
}
sets.precast.Step['Feather Step'] = set_combine(sets.precast.Step, {feet="Macu. Toe Shoes +1"})
sets.precast.Flourish1 = {}
sets.precast.Flourish1['Animated Flourish'] = sets.Enmity
sets.precast.Flourish1['Violent Flourish'] = {
ammo="Yamarang",
head="Mummu Bonnet +2",
body="Horos Casaque +3",
hands="Mummu Wrists +2",
legs="Mummu Kecks +2",
feet="Mummu Gamash. +2",
neck="Etoile Gorget +2",
ear1="Digni. Earring",
ear2="Enchntr. Earring +1",
ring1="Metamor. Ring +1",
ring2="Weather. Ring +1",
waist="Eschan Stone",
back=gear.DNC_TP_Cape,
} -- Magic Accuracy
sets.precast.Flourish1['Desperate Flourish'] = {
ammo="C. Palug Stone",
head="Maxixi Tiara +3",
body="Maxixi Casaque +3",
hands="Gazu Bracelet +1",
legs=gear.Herc_WS_legs,
feet="Maxixi Toe Shoes +3",
neck="Etoile Gorget +2",
ear1="Cessance Earring",
ear2="Telos Earring",
ring1="Regal Ring",
ring2={name="Chirich Ring +1", bag="wardrobe4"},
back=gear.DNC_TP_Cape,
} -- Accuracy
sets.precast.Flourish2 = {}
sets.precast.Flourish2['Reverse Flourish'] = {hands="Macu. Bangles +1", back="Toetapper Mantle"}
sets.precast.Flourish3 = {}
sets.precast.Flourish3['Striking Flourish'] = {body="Macu. Casaque +1"}
sets.precast.Flourish3['Climactic Flourish'] = {head="Maculele Tiara +1",}
sets.precast.FC = {
ammo="Sapience Orb",
head=gear.Herc_MAB_head, --7
body=gear.Taeon_FC_body, --9
hands="Leyline Gloves", --8
legs="Rawhide Trousers", --5
feet=gear.Herc_MAB_feet, --2
neck="Orunmila's Torque", --5
ear1="Loquacious Earring", --2
ear2="Enchntr. Earring +1", --2
ring2="Weather. Ring +1", --6(4)
}
sets.precast.FC.Utsusemi = set_combine(sets.precast.FC, {
ammo="Impatiens",
body="Passion Jacket",
ring1="Lebeche Ring",
})
------------------------------------------------------------------------------------------------
------------------------------------- Weapon Skill Sets ----------------------------------------
------------------------------------------------------------------------------------------------
sets.precast.WS = {
ammo="Aurgelmir Orb +1",
head=gear.Herc_WSD_head,
body=gear.Herc_WS_body,
hands="Maxixi Bangles +3",
legs="Horos Tights +3",
feet="Lustra. Leggings +1",
neck="Fotia Gorget",
ear1="Ishvara Earring",
ear2="Moonshade Earring",
ring1="Regal Ring",
ring2="Epaminondas's Ring",
back=gear.DNC_WS1_Cape,
waist="Fotia Belt",
} -- default set
sets.precast.WS.Acc = set_combine(sets.precast.WS, {
ammo="Voluspa Tathlum",
head="Dampening Tam",
legs="Meg. Chausses +2",
feet="Meg. Jam. +2",
ear2="Telos Earring",
})
sets.precast.WS.Critical = {body="Meg. Cuirie +2"}
sets.precast.WS['Exenterator'] = set_combine(sets.precast.WS, {
head=gear.Adhemar_B_head,
body="Meg. Cuirie +2",
legs="Meg. Chausses +2",
feet="Meg. Jam. +2",
ear1="Sherida Earring",
ear2="Brutal Earring",
back=gear.DNC_WS2_Cape,
})
sets.precast.WS['Exenterator'].Acc = set_combine(sets.precast.WS['Exenterator'], {
ammo="Voluspa Tathlum",
head="Dampening Tam",
body="Horos Casaque +3",
ear2="Telos Earring",
})
sets.precast.WS['Pyrrhic Kleos'] = set_combine(sets.precast.WS, {
head="Lustratio Cap +1",
body="Horos Casaque +3",
hands=gear.Adhemar_B_hands,
legs="Samnuha Tights",
feet=gear.Herc_TA_feet,
ear1="Sherida Earring",
ear2="Mache Earring +1",
ring1="Gere Ring",
ring2="Epona's Ring",
back=gear.DNC_WS2_Cape,
})
sets.precast.WS['Pyrrhic Kleos'].Acc = set_combine(sets.precast.WS['Pyrrhic Kleos'], {
ammo="Voluspa Tathlum",
head="Dampening Tam",
hands=gear.Adhemar_A_hands,
legs=gear.Herc_WS_legs,
})
sets.precast.WS['Evisceration'] = set_combine(sets.precast.WS, {
ammo="Charis Feather",
head=gear.Adhemar_B_head,
body="Abnoba Kaftan",
hands="Mummu Wrists +2",
legs="Lustr. Subligar +1",
ear1="Sherida Earring",
ear2="Mache Earring +1",
ring1="Begrudging Ring",
ring2="Mummu Ring",
back=gear.DNC_WS3_Cape,
})
sets.precast.WS['Evisceration'].Acc = set_combine(sets.precast.WS['Evisceration'], {
ammo="Voluspa Tathlum",
head="Dampening Tam",
body="Horos Casaque +3",
legs="Meg. Chausses +2",
feet="Maxixi Toe Shoes +3",
ring1="Regal Ring",
})
sets.precast.WS['Rudra\'s Storm'] = set_combine(sets.precast.WS, {
ammo="Charis Feather",
neck="Etoile Gorget +2",
ear1="Sherida Earring",
waist="Kentarch Belt +1",
})
sets.precast.WS['Rudra\'s Storm'].Acc = set_combine(sets.precast.WS['Rudra\'s Storm'], {
ammo="Voluspa Tathlum",
legs=gear.Herc_WS_legs,
ear2="Telos Earring",
waist="Grunfeld Rope",
})
sets.precast.WS['Aeolian Edge'] = {
ammo="Ghastly Tathlum +1",
head=gear.Herc_MAB_head,
body="Samnuha Coat",
hands="Maxixi Bangles +3",
legs="Horos Tights +3",
feet=gear.Herc_WSD_feet,
neck="Baetyl Pendant",
ear1="Crematio Earring",
ear2="Friomisi Earring",
ring1="Metamor. Ring +1",
ring2="Epaminondas's Ring",
back="Argocham. Mantle",
waist="Orpheus's Sash",
}
sets.precast.Skillchain = {
hands="Macu. Bangles +1",
}
------------------------------------------------------------------------------------------------
---------------------------------------- Midcast Sets ------------------------------------------
------------------------------------------------------------------------------------------------
sets.midcast.FastRecast = sets.precast.FC
sets.midcast.SpellInterrupt = {
ammo="Staunch Tathlum +1", --11
body=gear.Taeon_Phalanx_body, --10
hands="Rawhide Gloves", --15
legs=gear.Taeon_Phalanx_legs, --10
feet=gear.Taeon_Phalanx_feet, --10
neck="Loricate Torque +1", --5
ear1="Halasz Earring", --5
ear2="Magnetic Earring", --8
ring2="Evanescence Ring", --5
}
sets.midcast.Utsusemi = sets.midcast.SpellInterrupt
------------------------------------------------------------------------------------------------
----------------------------------------- Idle Sets --------------------------------------------
------------------------------------------------------------------------------------------------
sets.resting = {}
sets.idle = {
ammo="Staunch Tathlum +1",
head="Turms Cap +1",
body="Tu. Harness +1",
hands="Turms Mittens +1",
legs="Turms Subligar +1",
feet="Turms Leggings +1",
neck="Bathy Choker +1",
ear1="Eabani Earring",
ear2="Sanare Earring",
ring1={name="Chirich Ring +1", bag="wardrobe3"},
ring2={name="Chirich Ring +1", bag="wardrobe4"},
back="Moonlight Cape",
waist="Engraved Belt",
}
sets.idle.DT = set_combine(sets.idle, {
ammo="Staunch Tathlum +1", --3/3
head="Malignance Chapeau", --6/6
body="Malignance Tabard", --9/9
hands="Malignance Gloves", --5/5
legs="Malignance Tights", --7/7
feet="Malignance Boots", --4/4
neck="Warder's Charm +1",
ear2="Sanare Earring",
ring1="Purity Ring", --0/4
ring2="Defending Ring", --10/10
back="Moonlight Cape", --6/6
})
sets.idle.Town = set_combine(sets.idle, {
ammo="Aurgelmir Orb +1",
feet="Horos T. Shoes +3",
neck="Etoile Gorget +2",
ear1="Sherida Earring",
ear2="Telos Earring",
back=gear.DNC_TP_Cape,
waist="Windbuffet Belt +1",
})
sets.idle.Weak = sets.idle.DT
------------------------------------------------------------------------------------------------
---------------------------------------- Defense Sets ------------------------------------------
------------------------------------------------------------------------------------------------
sets.defense.PDT = sets.idle.DT
sets.defense.MDT = sets.idle.DT
sets.Kiting = {feet="Skd. Jambeaux +1"}
------------------------------------------------------------------------------------------------
---------------------------------------- Engaged Sets ------------------------------------------
------------------------------------------------------------------------------------------------
-- Variations for TP weapon and (optional) offense/defense modes. Code will fall back on previous
-- sets if more refined versions aren't defined.
-- If you create a set with both offense and defense modes, the offense mode should be first.
-- EG: sets.engaged.Dagger.Accuracy.Evasion
sets.engaged = {
ammo="Aurgelmir Orb +1",
head=gear.Adhemar_B_head,
body="Horos Casaque +3",
hands=gear.Adhemar_B_hands,
legs="Samnuha Tights",
feet=gear.Herc_TA_feet,
neck="Etoile Gorget +2",
ear1="Cessance Earring",
ear2="Brutal Earring",
ring1="Gere Ring",
ring2="Epona's Ring",
back=gear.DNC_TP_Cape,
waist="Windbuffet Belt +1",
}
sets.engaged.LowAcc = set_combine(sets.engaged, {
head="Dampening Tam",
hands=gear.Adhemar_A_hands,
})
sets.engaged.MidAcc = set_combine(sets.engaged.LowAcc, {
ammo="Voluspa Tathlum",
ear2="Telos Earring",
ring1={name="Chirich Ring +1", bag="wardrobe3"},
ring2="Ilabrat Ring",
waist="Kentarch Belt +1",
})
sets.engaged.HighAcc = set_combine(sets.engaged.MidAcc, {
ammo="C. Palug Stone",
body="Maxixi Casaque +3",
hands="Gazu Bracelet +1",
legs="Horos Tights +3",
ear2="Mache Earring +1",
ring1="Regal Ring",
ring2={name="Chirich Ring +1", bag="wardrobe4"},
waist="Olseni Belt",
})
sets.engaged.STP = set_combine(sets.engaged, {
head=gear.Herc_STP_head,
body="Tu. Harness +1",
ring1={name="Chirich Ring +1", bag="wardrobe3"},
ring2={name="Chirich Ring +1", bag="wardrobe4"},
})
-- * DNC Native DW Trait: 30% DW
-- * DNC Job Points DW Gift: 5% DW
-- No Magic Haste (74% DW to cap)
sets.engaged.DW = {
ammo="Aurgelmir Orb +1",
head=gear.Adhemar_B_head,
body="Macu. Casaque +1", --11
hands=gear.Adhemar_B_hands,
legs="Samnuha Tights",
feet=gear.Taeon_DW_feet, --9
neck="Charis Necklace", --5
ear1="Eabani Earring", --4
ear2="Suppanomimi", --5
ring1="Gere Ring",
ring2="Epona's Ring",
back=gear.DNC_TP_Cape,
waist="Reiki Yotai", --7
} -- 41%
sets.engaged.DW.LowAcc = set_combine(sets.engaged.DW, {
head="Dampening Tam",
hands=gear.Adhemar_A_hands,
})
sets.engaged.DW.MidAcc = set_combine(sets.engaged.DW.LowAcc, {
ammo="Voluspa Tathlum",
head="Maxixi Tiara +3", --8
ring1={name="Chirich Ring +1", bag="wardrobe3"},
ring2="Ilabrat Ring",
waist="Kentarch Belt +1",
})
sets.engaged.DW.HighAcc = set_combine(sets.engaged.DW.MidAcc, {
ammo="C. Palug Stone",
body="Maxixi Casaque +3",
hands="Gazu Bracelet +1",
legs="Horos Tights +3",
ear2="Mache Earring +1",
ring1="Regal Ring",
ring2={name="Chirich Ring +1", bag="wardrobe4"},
waist="Olseni Belt",
})
sets.engaged.DW.STP = set_combine(sets.engaged.DW, {
head=gear.Herc_STP_head,
ring1={name="Chirich Ring +1", bag="wardrobe3"},
ring2={name="Chirich Ring +1", bag="wardrobe4"},
})
-- 15% Magic Haste (67% DW to cap)
sets.engaged.DW.LowHaste = {
ammo="Aurgelmir Orb +1",
head=gear.Adhemar_B_head,
body="Macu. Casaque +1", --11
hands=gear.Adhemar_B_hands,
legs="Samnuha Tights",
feet=gear.Herc_TA_feet,
neck="Charis Necklace", --5
ear1="Eabani Earring", --4
ear2="Suppanomimi", --5
ring1="Gere Ring",
ring2="Epona's Ring",
back=gear.DNC_TP_Cape,
waist="Reiki Yotai", --7
} -- 32%
sets.engaged.DW.LowAcc.LowHaste = set_combine(sets.engaged.DW.LowHaste, {
head="Dampening Tam",
hands=gear.Adhemar_A_hands,
})
sets.engaged.DW.MidAcc.LowHaste = set_combine(sets.engaged.DW.LowAcc.LowHaste, {
ammo="Voluspa Tathlum",
head="Maxixi Tiara +3", --8
body="Horos Casaque +3",
ring1={name="Chirich Ring +1", bag="wardrobe3"},
ring2="Ilabrat Ring",
waist="Kentarch Belt +1",
})
sets.engaged.DW.HighAcc.LowHaste = set_combine(sets.engaged.DW.MidAcc.LowHaste, {
ammo="C. Palug Stone",
body="Maxixi Casaque +3",
hands="Gazu Bracelet +1",
legs="Horos Tights +3",
ear2="Mache Earring +1",
ring1="Regal Ring",
ring2={name="Chirich Ring +1", bag="wardrobe4"},
waist="Olseni Belt",
})
sets.engaged.DW.STP.LowHaste = set_combine(sets.engaged.DW.LowHaste, {
head=gear.Herc_STP_head,
ring1={name="Chirich Ring +1", bag="wardrobe3"},
ring2={name="Chirich Ring +1", bag="wardrobe4"},
})
-- 30% Magic Haste (56% DW to cap)
sets.engaged.DW.MidHaste = {
ammo="Aurgelmir Orb +1",
head=gear.Adhemar_B_head,
body=gear.Adhemar_B_body, --6
hands=gear.Adhemar_B_hands,
legs="Samnuha Tights",
feet=gear.Herc_TA_feet,
neck="Etoile Gorget +2",
ear1="Eabani Earring", --4
ear2="Suppanomimi", --5
ring1="Gere Ring",
ring2="Epona's Ring",
back=gear.DNC_TP_Cape,
waist="Reiki Yotai", --7
} -- 22%
sets.engaged.DW.LowAcc.MidHaste = set_combine(sets.engaged.DW.MidHaste, {
head="Dampening Tam",
hands=gear.Adhemar_A_hands,
})
sets.engaged.DW.MidAcc.MidHaste = set_combine(sets.engaged.DW.LowAcc.MidHaste, {
ammo="Voluspa Tathlum",
head="Maxixi Tiara +3", --8
body="Horos Casaque +3",
ring1={name="Chirich Ring +1", bag="wardrobe3"},
ring2="Ilabrat Ring",
waist="Kentarch Belt +1",
})
sets.engaged.DW.HighAcc.MidHaste = set_combine(sets.engaged.DW.MidAcc.MidHaste, {
ammo="C. Palug Stone",
body="Maxixi Casaque +3",
hands="Gazu Bracelet +1",
legs="Horos Tights +3",
ear2="Mache Earring +1",
ring1="Regal Ring",
ring2={name="Chirich Ring +1", bag="wardrobe4"},
waist="Olseni Belt",
})
sets.engaged.DW.STP.MidHaste = set_combine(sets.engaged.DW.MidHaste, {
head=gear.Herc_STP_head,
ring1={name="Chirich Ring +1", bag="wardrobe3"},
ring2={name="Chirich Ring +1", bag="wardrobe4"},
})
-- 35% Magic Haste (51% DW to cap)
sets.engaged.DW.HighHaste = {
ammo="Aurgelmir Orb +1",
head=gear.Adhemar_B_head,
body=gear.Adhemar_B_body, --6
hands=gear.Adhemar_B_hands,
legs="Samnuha Tights",
feet=gear.Herc_TA_feet,
neck="Etoile Gorget +2",
ear1="Eabani Earring", --4
ear2="Brutal Earring",
ring1="Gere Ring",
ring2="Epona's Ring",
back=gear.DNC_TP_Cape,
waist="Windbuffet Belt +1",
} -- 10% Gear
sets.engaged.DW.LowAcc.HighHaste = set_combine(sets.engaged.DW.HighHaste, {
head="Dampening Tam",
hands=gear.Adhemar_A_hands,
waist="Kentarch Belt +1",
})
sets.engaged.DW.MidAcc.HighHaste = set_combine(sets.engaged.DW.LowAcc.HighHaste, {
ammo="Voluspa Tathlum",
body="Horos Casaque +3",
ring1={name="Chirich Ring +1", bag="wardrobe3"},
ring2="Ilabrat Ring",
})
sets.engaged.DW.HighAcc.HighHaste = set_combine(sets.engaged.DW.MidAcc.HighHaste, {
ammo="C. Palug Stone",
head="Maxixi Tiara +3", --8
body="Maxixi Casaque +3",
hands="Gazu Bracelet +1",
legs="Horos Tights +3",
ear2="Mache Earring +1",
ring1="Regal Ring",
ring2={name="Chirich Ring +1", bag="wardrobe4"},
waist="Olseni Belt",
})
sets.engaged.DW.STP.HighHaste = set_combine(sets.engaged.DW.HighHaste, {
head=gear.Herc_STP_head,
ring1={name="Chirich Ring +1", bag="wardrobe3"},
ring2={name="Chirich Ring +1", bag="wardrobe4"},
waist="Kentarch Belt +1",
})
-- 45% Magic Haste (36% DW to cap)
sets.engaged.DW.MaxHaste = {
ammo="Aurgelmir Orb +1",
head=gear.Adhemar_B_head,
body="Horos Casaque +3",
hands=gear.Adhemar_B_hands,
legs="Samnuha Tights",
feet=gear.Herc_TA_feet,
neck="Etoile Gorget +2",
ear1="Sherida Earring",
ear2="Brutal Earring",
ring1="Gere Ring",
ring2="Epona's Ring",
back=gear.DNC_TP_Cape,
waist="Windbuffet Belt +1",
} -- 0%
sets.engaged.DW.LowAcc.MaxHaste = set_combine(sets.engaged.DW.MaxHaste, {
head="Dampening Tam",
hands=gear.Adhemar_A_hands,
ear2="Telos Earring",
waist="Kentarch Belt +1",
})
sets.engaged.DW.MidAcc.MaxHaste = set_combine(sets.engaged.DW.LowAcc.MaxHaste, {
ammo="Voluspa Tathlum",
ear1="Cessance Earring",
ring1={name="Chirich Ring +1", bag="wardrobe3"},
ring2="Ilabrat Ring",
})
sets.engaged.DW.HighAcc.MaxHaste = set_combine(sets.engaged.DW.MidAcc.MaxHaste, {
ammo="C. Palug Stone",
head="Maxixi Tiara +3", --8
body="Maxixi Casaque +3",
hands="Gazu Bracelet +1",
legs="Horos Tights +3",
ear2="Mache Earring +1",
ring1="Regal Ring",
ring2={name="Chirich Ring +1", bag="wardrobe4"},
waist="Olseni Belt",
})
sets.engaged.DW.STP.MaxHaste = set_combine(sets.engaged.DW.MaxHaste, {
head=gear.Herc_STP_head,
body="Tu. Harness +1",
ear2="Telos Earring",
ring1={name="Chirich Ring +1", bag="wardrobe3"},
ring2={name="Chirich Ring +1", bag="wardrobe4"},
waist="Kentarch Belt +1",
})
------------------------------------------------------------------------------------------------
---------------------------------------- Hybrid Sets -------------------------------------------
------------------------------------------------------------------------------------------------
sets.engaged.Hybrid = {
head=gear.Adhemar_D_head, --4/0
body="Ashera Harness", --7/7
neck="Loricate Torque +1", --6/6
ring1="Moonlight Ring", --5/5
ring2="Defending Ring", --10/10
}
sets.engaged.DT = set_combine(sets.engaged, sets.engaged.Hybrid)
sets.engaged.LowAcc.DT = set_combine(sets.engaged.LowAcc, sets.engaged.Hybrid)
sets.engaged.MidAcc.DT = set_combine(sets.engaged.MidAcc, sets.engaged.Hybrid)
sets.engaged.HighAcc.DT = set_combine(sets.engaged.HighAcc, sets.engaged.Hybrid)
sets.engaged.STP.DT = set_combine(sets.engaged.STP, sets.engaged.Hybrid)
sets.engaged.DW.DT = set_combine(sets.engaged.DW, sets.engaged.Hybrid)
sets.engaged.DW.LowAcc.DT = set_combine(sets.engaged.DW.LowAcc, sets.engaged.Hybrid)
sets.engaged.DW.MidAcc.DT = set_combine(sets.engaged.DW.MidAcc, sets.engaged.Hybrid)
sets.engaged.DW.HighAcc.DT = set_combine(sets.engaged.DW.HighAcc, sets.engaged.Hybrid)
sets.engaged.DW.STP.DT = set_combine(sets.engaged.DW.STP, sets.engaged.Hybrid)
sets.engaged.DW.DT.LowHaste = set_combine(sets.engaged.DW.LowHaste, sets.engaged.Hybrid)
sets.engaged.DW.LowAcc.DT.LowHaste = set_combine(sets.engaged.DW.LowAcc.LowHaste, sets.engaged.Hybrid)
sets.engaged.DW.MidAcc.DT.LowHaste = set_combine(sets.engaged.DW.MidAcc.LowHaste, sets.engaged.Hybrid)
sets.engaged.DW.HighAcc.DT.LowHaste = set_combine(sets.engaged.DW.HighAcc.LowHaste, sets.engaged.Hybrid)
sets.engaged.DW.STP.DT.LowHaste = set_combine(sets.engaged.DW.STP.LowHaste, sets.engaged.Hybrid)
sets.engaged.DW.DT.MidHaste = set_combine(sets.engaged.DW.MidHaste, sets.engaged.Hybrid)
sets.engaged.DW.LowAcc.DT.MidHaste = set_combine(sets.engaged.DW.LowAcc.MidHaste, sets.engaged.Hybrid)
sets.engaged.DW.MidAcc.DT.MidHaste = set_combine(sets.engaged.DW.MidAcc.MidHaste, sets.engaged.Hybrid)
sets.engaged.DW.HighAcc.DT.MidHaste = set_combine(sets.engaged.DW.HighAcc.MidHaste, sets.engaged.Hybrid)
sets.engaged.DW.STP.DT.MidHaste = set_combine(sets.engaged.DW.STP.MidHaste, sets.engaged.Hybrid)
sets.engaged.DW.DT.HighHaste = set_combine(sets.engaged.DW.HighHaste, sets.engaged.Hybrid)
sets.engaged.DW.LowAcc.DT.HighHaste = set_combine(sets.engaged.DW.LowAcc.HighHaste, sets.engaged.Hybrid)
sets.engaged.DW.MidAcc.DT.HighHaste = set_combine(sets.engaged.DW.MidAcc.HighHaste, sets.engaged.Hybrid)
sets.engaged.DW.HighAcc.DT.HighHaste = set_combine(sets.engaged.DW.HighAcc.HighHaste, sets.engaged.Hybrid)
sets.engaged.DW.STP.DT.HighHaste = set_combine(sets.engaged.DW.HighHaste.STP, sets.engaged.Hybrid)
sets.engaged.DW.DT.MaxHaste = set_combine(sets.engaged.DW.MaxHaste, sets.engaged.Hybrid)
sets.engaged.DW.LowAcc.DT.MaxHaste = set_combine(sets.engaged.DW.LowAcc.MaxHaste, sets.engaged.Hybrid)
sets.engaged.DW.MidAcc.DT.MaxHaste = set_combine(sets.engaged.DW.MidAcc.MaxHaste, sets.engaged.Hybrid)
sets.engaged.DW.HighAcc.DT.MaxHaste = set_combine(sets.engaged.DW.HighAcc.MaxHaste, sets.engaged.Hybrid)
sets.engaged.DW.STP.DT.MaxHaste = set_combine(sets.engaged.DW.STP.MaxHaste, sets.engaged.Hybrid)
------------------------------------------------------------------------------------------------
---------------------------------------- Special Sets ------------------------------------------
------------------------------------------------------------------------------------------------
sets.buff['Saber Dance'] = {legs="Horos Tights +3"}
sets.buff['Fan Dance'] = {body="Horos Bangles +3"}
sets.buff['Climactic Flourish'] = {head="Maculele Tiara +1"} --body="Meg. Cuirie +2"}
sets.buff['Closed Position'] = {feet="Horos T. Shoes +3"}
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.CP = {back="Mecisto. Mantle"}
--sets.Reive = {neck="Ygnas's Resolve +1"}
end
-------------------------------------------------------------------------------------------------------------------
-- Job-specific hooks for standard casting events.
-------------------------------------------------------------------------------------------------------------------
-- 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)
--auto_presto(spell)
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.type == "WeaponSkill" then
if state.Buff['Sneak Attack'] == true then
equip(sets.precast.WS.Critical)
end
if state.Buff['Climactic Flourish'] then
equip(sets.buff['Climactic Flourish'])
end
end
if spell.type=='Waltz' and spell.english:startswith('Curing') and spell.target.type == 'SELF' then
equip(sets.precast.WaltzSelf)
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)
-- Weaponskills wipe SATA. Turn those state vars off before default gearing is attempted.
if spell.type == 'WeaponSkill' and not spell.interrupted then
state.Buff['Sneak Attack'] = false
end
end
-------------------------------------------------------------------------------------------------------------------
-- Job-specific hooks for non-casting events.
-------------------------------------------------------------------------------------------------------------------
-- Called when a player gains or loses a buff.
-- buff == buff gained or lost
-- gain == true if the buff was gained, false if it was lost.
function job_buff_change(buff,gain)
if buff == 'Saber Dance' or buff == 'Climactic Flourish' or buff == 'Fan Dance' then
handle_equipping_gear(player.status)
end
-- if buffactive['Reive Mark'] then
-- if gain then
-- equip(sets.Reive)
-- disable('neck')
-- else
-- enable('neck')
-- 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
end
-------------------------------------------------------------------------------------------------------------------
-- User code that supplements standard library decisions.
-------------------------------------------------------------------------------------------------------------------
-- Called by the 'update' self-command, for common needs.