-
Notifications
You must be signed in to change notification settings - Fork 50
/
NIN.lua
1438 lines (1298 loc) · 52.6 KB
/
NIN.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
-------------------------------------------------------------------------------------------------------------------
-- Initialization function that defines sets and variables to be used.
-------------------------------------------------------------------------------------------------------------------
-- Haste II has the same buff ID [33], so we have to use a toggle.
-- gs c toggle hastemode -- Toggles whether or not you're getting Haste II
-- for Rune Fencer sub, you need to create two macros. One cycles runes, and gives you descrptive text in the log.
-- The other macro will use the actual rune you cycled to.
-- Macro #1 //console gs c cycle Runes
-- Macro #2 //console gs c toggle UseRune
function get_sets()
mote_include_version = 2
include('Mote-Include.lua')
include('organizer-lib')
end
-- Setup vars that are user-independent.
function job_setup()
state.Buff.Migawari = buffactive.migawari or false
state.Buff.Sange = buffactive.sange or false
state.Buff.Innin = buffactive.innin or false
include('Mote-TreasureHunter')
state.TreasureMode:set('Tag')
state.HasteMode = M{['description']='Haste Mode', 'Hi', 'Normal'}
state.Runes = M{['description']='Runes', "Ignis", "Gelus", "Flabra", "Tellus", "Sulpor", "Unda", "Lux", "Tenebrae"}
state.UseRune = M(false, 'Use Rune')
state.UseWarp = M(false, 'Use Warp')
state.Adoulin = M(false, 'Adoulin')
state.Moving = M(false, "moving")
run_sj = player.sub_job == 'RUN' or false
select_ammo()
LugraWSList = S{'Blade: Ku', 'Blade: Jin'}
state.CapacityMode = M(false, 'Capacity Point Mantle')
state.Proc = M(false, 'Proc')
state.unProc = M(false, 'unProc')
gear.RegularAmmo = 'Seki Shuriken'
gear.SangeAmmo = 'Happo Shuriken'
wsList = S{'Blade: Hi', 'Blade: Kamu', 'Blade: Ten', 'Savage Blade'}
nukeList = S{'Katon: San', 'Doton: San', 'Suiton: San', 'Raiton: San', 'Hyoton: San', 'Huton: San'}
update_combat_form()
state.warned = M(false)
options.ammo_warning_limit = 25
-- For th_action_check():
-- JA IDs for actions that always have TH: Provoke, Animated Flourish
info.default_ja_ids = S{35, 204}
-- Unblinkable JA IDs for actions that always have TH: Quick/Box/Stutter Step, Desperate/Violent Flourish
info.default_u_ja_ids = S{201, 202, 203, 205, 207}
end
-- Setup vars that are user-dependent. Can override this function in a sidecar file.
function user_setup()
-- Options: Override default values
state.OffenseMode:options('Normal', 'Mid', 'Acc')
state.HybridMode:options('Normal', 'PDT', 'EVA')
state.RangedMode:options('Normal', 'Acc')
state.WeaponskillMode:options('Normal', 'Mid', 'Acc')
state.PhysicalDefenseMode:options('PDT')
state.MagicalDefenseMode:options('MDT')
select_default_macro_book()
send_command('bind ^= gs c cycle treasuremode')
send_command('bind ^[ gs c toggle UseWarp')
send_command('bind ![ input /lockstyle off')
send_command('bind != gs c toggle CapacityMode')
send_command('bind @f9 gs c cycle HasteMode')
send_command('bind @[ gs c cycle Runes')
send_command('bind ^] gs c toggle UseRune')
-- send_command('bind !- gs equip sets.crafting')
end
function file_unload()
send_command('unbind ^[')
send_command('unbind ![')
send_command('unbind ^=')
send_command('unbind !=')
send_command('unbind @f9')
send_command('unbind @[')
end
-- Define sets and vars used by this job file.
-- visualized at http://www.ffxiah.com/node/194 (not currently up to date 10/29/2015)
-- Happo
-- Hachiya
-- sets.engaged[state.CombatForm][state.CombatWeapon][state.OffenseMode][state.HybridMode][classes.CustomMeleeGroups (any number)
-- Ninjutsu tips
-- To stick Slow (Hojo) lower earth resist with Raiton: Ni
-- To stick poison (Dokumori) or Attack down (Aisha) lower resist with Katon: Ni
-- To stick paralyze (Jubaku) lower resistence with Huton: Ni
function init_gear_sets()
--------------------------------------
-- Augments
--------------------------------------
Andartia = {}
Andartia.DEX = {name="Andartia's Mantle", augments={'DEX+20','Accuracy+20 Attack+20','DEX+10','"Dbl.Atk."+10','Damage taken-5%'}}
Andartia.AGI = {name="Andartia's Mantle", augments={'AGI+20','Accuracy+20 Attack+20','AGI+10','Weapon skill damage +10%',}}
Andartia.STR = {name="Andartia's Mantle", augments={'STR+20','Accuracy+20 Attack+20','STR+10','Weapon skill damage +10%',}}
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',}}
HercFeet = {}
HercHead = {}
HercLegs = {}
HercBody = {}
HercHands = {}
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',}}
HercHands.WSD = { name="Herculean Gloves", augments={'Accuracy+23 Attack+23','Weapon skill damage +3%','STR+10','Accuracy+10','Attack+1',}}
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',}}
TaeonHands = {}
TaeonHands.Snap = {name="Taeon Gloves", augments={'"Snapshot"+5', 'Attack+22','"Snapshot"+5'}}
TaeonHead = {}
TaeonHead.Snap = { name="Taeon Chapeau", augments={'Accuracy+20 Attack+20','"Snapshot"+5','"Snapshot"+4',}}
--------------------------------------
-- Job Abilties
--------------------------------------
sets.precast.JA['Mijin Gakure'] = { legs="Mochizuki Hakama +3" }
sets.precast.JA['Futae'] = { hands="Hattori Tekko +1" }
sets.precast.JA['Provoke'] = {
-- ear1="Cryptic Earring",
-- ear2="Trux Earring",
-- body="Emet Harness +1",
ring1="Petrov Ring",
ring2="Supershear Ring",
feet="Mochizuki Kyahan +1"
}
sets.precast.JA.Sange = { ammo=gear.SangeAmmo, body="Mochizuki Chainmail +3" }
-- sets.MadrigalBonus = {
-- hands="Composer's Mitts"
-- }
-- sets.midcast.Trust = {
-- head="Hattori Zukin +1",
-- hands="Ryuo Tekko",
-- feet="Hachiya Kyahan +1"
-- }
-- sets.midcast["Apururu (UC)"] = set_combine(sets.midcast.Trust, {
-- body="Apururu Unity shirt",
-- })
sets.Warp = { ring1="Warp Ring" }
--------------------------------------
-- Utility Sets for rules below
--------------------------------------
sets.TreasureHunter = { head="White rarab cap +1", waist="Chaac Belt", legs=HercLegs.TH }
sets.CapacityMantle = { back="Mecistopins Mantle" }
sets.WSDayBonus = { head="Gavialis Helm" }
-- sets.WSBack = { back="Trepidity Mantle" }
sets.OdrLugra = { ear1="Odr Earring", ear2="Lugra Earring +1" }
sets.OdrIshvara = { ear1="Odr Earring", ear2="Ishvara Earring" }
sets.OdrBrutal = { ear1="Odr Earring", ear2="Brutal Earring" }
sets.OdrMoon = { ear1="Odr Earring", ear2="Moonshade Earring" }
sets.RegularAmmo = { ammo=gear.RegularAmmo }
sets.SangeAmmo = { ammo=gear.SangeAmmo }
-- sets.NightAccAmmo = { ammo="Ginsen" }
-- sets.DayAccAmmo = { ammo="Seething Bomblet +1" }
--------------------------------------
-- Useful sets
--------------------------------------
sets.Malignance = {
head="Malignance Chapeau",
body="Malignance Tabard",
hands="Malignance Gloves",
legs="Malignance Tights",
feet="Malignance Boots"
}
sets.Kendatsuba = {
head="Kendatsuba Jinpachi +1",
body="Kendatsuba Samue +1",
hands="Kendatsuba Tekko +1",
legs="Kendatsuba Hakama +1",
feet="Kendatsuba Sune-ate +1"
}
sets.Mpaca = {
head="Mpaca's Cap",
body="Mpaca's Doublet",
hands="Mpaca's gloves",
legs="Mpaca's hose",
feet="Mpaca's boots"
}
sets.Nyame = {
head="Nyame Helm",
body="Nyame Mail",
hands="Nyame Gauntlets",
legs="Nyame Flanchard",
feet="Nyame Sollerets"
}
-- Waltz (chr and vit)
sets.precast.Waltz = set_combine(sets.Nyame, {
head="Hachiya Hatsuburi +3",
waist="Chaac Belt",
ring1="Regal Ring",
})
-- Don't need any special gear for Healing Waltz.
sets.precast.Waltz['Healing Waltz'] = sets.precast.Waltz
-- Set for acc on steps, since Yonin drops acc a fair bit
sets.precast.Step = {
back=Andartia.DEX,
}
--------------------------------------
-- Ranged
--------------------------------------
sets.precast.RA = {
head=TaeonHead.Snap,
hands=TaeonHands.Snap,
--body="Pursuer's Doublet",
ring1="Crepuscular Ring",
legs=AdhemarLegs.Snap, -- 9
-- feet="Wurrukatte Boots"
}
sets.midcast.RA = set_combine(sets.Malignance, {
ear2="Crepuscular Earring",
ring1="Crepuscular Ring",
ring2="Cacoethic Ring +1",
back="Yokaze Mantle",
})
sets.midcast.RA.Acc = set_combine(sets.midcast.RA, {
-- body="Mochizuki Chainmail +3"
})
sets.midcast.RA.TH = set_combine(sets.midcast.RA, set.TreasureHunter)
-- Fast cast sets for spells
sets.precast.FC = {
head=HercHead.TP,
ear1="Etiolation Earring",
ear2="Loquacious Earring",
ring1="Weatherspoon Ring", -- 10 macc
ring2="Kishar Ring",
hands="Leyline Gloves",
body="Dread Jupon",
legs="Arjuna Breeches",
back="Mujin Mantle",
feet="Mochizuki Kyahan +1" -- special enhancement for casting ninjutsu III
}
sets.precast.FC.Utsusemi = set_combine(sets.precast.FC, { neck="Magoraga Beads", body="Mochizuki Chainmail +3" })
-- Midcast Sets
sets.midcast.FastRecast = {
--ammo="Impatiens",
body="Dread Jupon",
hands="Leyline Gloves",
ear1="Loquacious Earring",
ring1="Weatherspoon Ring", -- 10 macc
--feet="Mochizuki Kyahan +1"
}
-- skill ++
sets.midcast.Ninjutsu = {
--ammo="Pemphredo Tathlum",
head="Hachiya Hatsuburi +3",
ear1="Gwati Earring",
ear2="Crepuscular Earring",
neck="Incanter's Torque",
body="Nyame Mail",
hands="Nyame Gauntlets",
ring1="Weatherspoon Ring", -- 10 macc
ring2="Crepuscular Ring",
--ring2="Haverton Ring",
back="Yokaze Mantle",
waist="Eschan Stone",
legs="Nyame Flanchard",
feet="Nyame Sollerets"
}
-- any ninjutsu cast on self
sets.midcast.SelfNinjutsu = sets.midcast.Ninjutsu
sets.midcast.Utsusemi = set_combine(sets.midcast.Ninjutsu, {
hands="Mochizuki Tekko +1",
back=Andartia.DEX,
feet="Iga Kyahan +2"
})
sets.midcast.Migawari = set_combine(sets.midcast.Ninjutsu, {
--body="Hattori Ningi +1",
back=Andartia.DEX,
})
-- Nuking Ninjutsu (skill & magic attack)
sets.midcast.ElementalNinjutsu = {
--ammo="Seething Bomblet +1",
head="Mochizuki Hatsuburi +3",
ear1="Friomisi Earring",
ear2="Crematio Earring",
neck="Sanctity Necklace",
body="Nyame Mail",
hands="Nyame Gauntlets",
--hands="Hattori Tekko",
back="Aput Mantle",
ring1="Shiva Ring",
ring2="Dingir Ring",
waist="Eschan Stone",
legs="Nyame Flanchard",
feet="Nyame Sollerets"
}
sets.Burst = set_combine(sets.midcast.ElementalNinjutsu, { hands="Hattori Tekko +1"})
-- Effusions
sets.precast.Effusion = {}
sets.precast.Effusion.Lunge = sets.midcast.ElementalNinjutsu
sets.precast.Effusion.Swipe = sets.midcast.ElementalNinjutsu
sets.idle = {
ammo=gear.RegularAmmo,
head="Nyame Helm",
neck="Sanctity Necklace",
ear1="Etiolation Earring",
ear2="Genmei Earring",
body="Nyame Mail",
hands="Nyame Gauntlets",
ring1="Paguroidea Ring",
ring2="Defending Ring",
back=Andartia.DEX,
waist="Flume Belt",
legs="Nyame Flanchard",
feet="Danzo Sune-ate"
}
sets.idle.Regen = set_combine(sets.idle, {
head="Rao Kabuto",
body="Hizamaru Haramaki +2",
ear2="Infused Earring",
ring2="Paguroidea Ring"
})
-- sets.Adoulin = {
-- body="Councilor's Garb",
-- }
sets.idle.Town = sets.idle
sets.idle.Town = set_combine(sets.idle, {
head="Kendatsuba Jinpachi +1",
body="Mpaca's Doublet",
neck="Ninja Nodowa +2",
ear1="Telos Earring",
ear2="Dedition Earring",
hands="Kendatsuba Tekko +1",
legs="Kendatsuba Hakama +1",
ring1="Regal Ring",
ring2="Gere Ring",
back=Andartia.DEX,
waist="Windbuffet Belt +1"
})
--sets.idle.Town.Adoulin = set_combine(sets.idle.Town, {
-- body="Councilor's Garb"
--})
sets.idle.Weak = sets.idle
-- Defense sets
sets.defense.PDT = set_combine(sets.Nyame, {
ring2="Defending Ring",
back=Andartia.DEX,
})
sets.defense.MDT = set_combine(sets.defense.PDT, {
ear1="Etiolation Earring",
--neck="Twilight Torque",
})
sets.DayMovement = {feet="Danzo sune-ate"}
sets.NightMovement = {feet="Hachiya Kyahan +2"}
sets.Organizer = {
grip="Pearlsack",
waist="Linkpearl",
main="Naegling",
sub="Kannagi",
head="Heishi Shorinken",
body="Shigi",
legs="Fudo Masamune",
feet="Tauret"
}
-- Normal melee group without buffs
sets.engaged = {
ammo=gear.RegularAmmo,
head="Ryuo Somen",
neck="Ninja Nodowa +2",
ear1="Brutal Earring",
ear2="Suppanomimi",
body="Adhemar Jacket +1",
hands="Floral Gauntlets",
ring1="Epona's Ring",
ring2="Gere Ring",
back=Andartia.DEX,
legs="Kendatsuba Hakama +1",
waist="Shetal Stone",
feet="Hizamaru Sune-ate +2"
}
-- assumptions made about targe
sets.engaged.Mid = set_combine(sets.engaged, {
ear1="Telos Earring",
-- ring2="Ilabrat Ring",
})
sets.engaged.Acc = set_combine(sets.engaged.Mid, {
body="Mochizuki Chainmail +3",
hands="Adhemar Wristbands +1",
ring1="Regal Ring",
waist="Olseni Belt",
})
-- set for fooling around without dual wield
-- using this as weak / proc set now
sets.NoDW = set_combine(sets.engaged, {
head="Nyame Helm",
neck="Ninja Nodowa +2",
ear2="Cessance Earring",
body="Tatenashi Haramaki +1",
hands="Tatenashi Gote +1",
waist="Windbuffet Belt +1",
legs="Tatenashi Haidate +1",
back=Andartia.DEX,
feet="Tatenashi Sune-ate +1"
})
sets.Katanas = {
main="Kannagi",
sub="Fudo Masamune",
ammo="Sekki Shuriken"
}
-- sets.Dagger = {
-- main="Platoon Dagger",
-- sub=empty,
-- ammo=empty
-- }
sets.Daggers = {
main="Tauret",
sub="Malevolence",
ammo="Date Shuriken"
}
sets.Proc = {
-- main="Knife",
sub=empty,
ammo="Coiste Bodhar",
neck="Carnal Torque"
}
sets.unProc = set_combine(sets.engaged, {
main="Tauret",
sub="Malevolence",
ammo="Seki Shuriken"
})
-- sets.engaged.Innin = set_combine(sets.engaged, {
-- })
-- sets.engaged.Innin.Mid = sets.engaged.Mid
-- sets.engaged.Innin.Acc = sets.engaged.Acc
sets.engaged.PDT = set_combine(sets.engaged, sets.Mpaca)
sets.engaged.Mid.PDT = set_combine(sets.engaged.Mid, sets.Mpaca)
sets.engaged.Acc.PDT = set_combine(sets.engaged.Acc, sets.Mpaca)
sets.engaged.EVA = set_combine(sets.engaged, sets.Malignance)
sets.engaged.Mid.EVA = set_combine(sets.engaged.Mid, sets.Malignance)
sets.engaged.Acc.EVA = set_combine(sets.engaged.Acc, sets.Malignance)
-- sets.engaged.Innin.PDT = set_combine(sets.engaged.Innin, sets.NormalPDT )
-- sets.engaged.Innin.Mid.PDT = sets.engaged.Mid.PDT
-- sets.engaged.Innin.Acc.PDT = sets.engaged.Acc.PDT
-- Delay Cap from spell + songs alone
sets.engaged.MaxHaste = set_combine(sets.engaged, {
head="Adhemar Bonnet +1",
neck="Ninja Nodowa +2",
ear1="Telos Earring",
ear2="Brutal Earring",
body="Tatenashi Haramaki +1",
hands="Adhemar Wristbands +1",
ring1="Epona's Ring",
ring2="Gere Ring",
back=Andartia.DEX,
waist="Windbuffet Belt +1",
-- legs="Samnuha Tights",
legs="Tatenashi Haidate +1",
feet="Tatenashi Sune-ate +1"
})
sets.engaged.Mid.MaxHaste = set_combine(sets.engaged.MaxHaste, {
head="Kendatsuba Jinpachi +1",
ear1="Telos Earring",
ear2="Brutal Earring",
ring1="Ilabrat Ring",
ring2="Gere Ring",
body="Kendatsuba Samue +1",
legs="Kendatsuba Hakama +1",
feet="Kendatsuba Sune-ate +1"
})
sets.engaged.Acc.MaxHaste = set_combine(sets.engaged.Mid.MaxHaste, {
head="Kendatsuba Jinpachi +1",
neck="Ninja Nodowa +2",
ear1="Telos Earring",
ear2="Cessance Earring",
body="Kendatsuba Samue +1",
hands="Kendatsuba Tekko +1",
ring1="Ilabrat Ring",
ring2="Regal Ring",
back=Andartia.DEX,
waist="Olseni Belt",
legs="Kendatsuba Hakama +1",
feet="Kendatsuba Sune-ate +1"
})
-- sets.engaged.Innin.MaxHaste = sets.engaged.MaxHaste
-- sets.engaged.Innin.Mid.MaxHaste = sets.engaged.Mid.MaxHaste
-- sets.engaged.Innin.Acc.MaxHaste = sets.engaged.Acc.MaxHaste
-- Defensive sets
sets.engaged.PDT.MaxHaste = set_combine(sets.engaged.MaxHaste, sets.Mpaca)
sets.engaged.Mid.PDT.MaxHaste = set_combine(sets.engaged.Mid.MaxHaste, sets.Mpaca)
sets.engaged.Acc.PDT.MaxHaste = set_combine(sets.engaged.Acc.MaxHaste, sets.Mpaca)
sets.engaged.EVA.MaxHaste = set_combine(sets.engaged.MaxHaste, sets.Malignance)
sets.engaged.Mid.EVA.MaxHaste = set_combine(sets.engaged.Mid.MaxHaste, sets.Malignance)
sets.engaged.Acc.EVA.MaxHaste = set_combine(sets.engaged.Acc.MaxHaste, sets.Malignance)
-- sets.engaged.Innin.PDT.MaxHaste = sets.engaged.Innin.MaxHaste
-- sets.engaged.Innin.Mid.PDT.MaxHaste = sets.engaged.Mid.PDT.MaxHaste
-- sets.engaged.Innin.Acc.PDT.MaxHaste = sets.engaged.Acc.PDT.MaxHaste
-- 35% Haste
sets.engaged.Haste_35 = set_combine(sets.engaged.MaxHaste, {
head="Adhemar Bonnet +1",
ear1="Brutal Earring",
ear2="Suppanomimi",
hands="Floral Gauntlets",
})
sets.engaged.Mid.Haste_35 = set_combine(sets.engaged.Mid.MaxHaste, {
head="Ryuo Somen",
neck="Ninja Nodowa +2",
ear1="Telos Earring",
ear2="Brutal Earring",
ring1="Ilabrat Ring",
ring2="Gere Ring",
hands="Floral Gauntlets",
})
sets.engaged.Acc.Haste_35 = set_combine(sets.engaged.Acc.MaxHaste, {
head="Kendatsuba Jinpachi +1",
ear1="Telos Earring",
ear2="Brutal Earring",
hands="Kendatsuba Tekko +1",
body="Kendatsuba Samue +1",
legs="Kendatsuba Hakama +1",
feet="Hizamaru Sune-ate +2"
})
-- sets.engaged.Innin.Haste_35 = set_combine(sets.engaged.Haste_35, { })
-- sets.engaged.Innin.Mid.Haste_35 = sets.engaged.Mid.Haste_35
-- sets.engaged.Innin.Acc.Haste_35 = sets.engaged.Acc.Haste_35
sets.engaged.PDT.Haste_35 = set_combine(sets.engaged.Haste_35, sets.Mpaca)
sets.engaged.Mid.PDT.Haste_35 = set_combine(sets.engaged.Mid.Haste_35, sets.Mpaca)
sets.engaged.Acc.PDT.Haste_35 = set_combine(sets.engaged.Acc.Haste_35, sets.Mpaca)
sets.engaged.EVA.Haste_35 = set_combine(sets.engaged.Haste_35, sets.Malignance)
sets.engaged.Mid.EVA.Haste_35 = set_combine(sets.engaged.Mid.Haste_35, sets.Malignance)
sets.engaged.Acc.EVA.Haste_35 = set_combine(sets.engaged.Acc.Haste_35, sets.Malignance)
-- sets.engaged.Innin.PDT.Haste_35 = set_combine(sets.engaged.Innin.Haste_35, sets.engaged.HastePDT)
-- sets.engaged.Innin.Mid.PDT.Haste_35 = sets.engaged.Mid.PDT.Haste_35
-- sets.engaged.Innin.Acc.PDT.Haste_35 = sets.engaged.Acc.PDT.Haste_35
-- 30% Haste 1626 / 798 +260 acc
sets.engaged.Haste_30 = set_combine(sets.engaged.Haste_35, {
head="Adhemar Bonnet +1",
neck="Ninja Nodowa +2",
ear1="Brutal Earring",
ear2="Suppanomimi",
body="Adhemar Jacket +1",
hands="Adhemar Wristbands +1",
ring1="Epona's Ring",
ring2="Gere Ring",
back=Andartia.DEX,
waist="Windbuffet Belt +1",
legs="Samnuha Tights",
feet="Hizamaru Sune-ate +2"
})
sets.engaged.Mid.Haste_30 = set_combine(sets.engaged.Haste_30, {
head="Adhemar Bonnet +1",
neck="Ninja Nodowa +2",
ear2="Cessance Earring",
ring1="Ilabrat Ring",
ring2="Gere Ring",
legs="Kendatsuba Hakama +1",
ring1="Ilabrat Ring",
})
sets.engaged.Acc.Haste_30 = set_combine(sets.engaged.Mid.Haste_30, {
neck="Ninja Nodowa +2",
ring1="Cacoethic Ring +1",
back=Andartia.DEX,
waist="Olseni Belt",
})
-- sets.engaged.Innin.Haste_30 = set_combine(sets.engaged.Haste_30, { })
-- sets.engaged.Innin.Mid.Haste_30 = sets.engaged.Mid.Haste_30
-- sets.engaged.Innin.Acc.Haste_30 = sets.engaged.Acc.Haste_30
sets.engaged.PDT.Haste_30 = set_combine(sets.engaged.Haste_30, sets.Mpaca)
sets.engaged.Mid.PDT.Haste_30 = set_combine(sets.engaged.Mid.Haste_30, sets.Mpaca)
sets.engaged.Acc.PDT.Haste_30 = set_combine(sets.engaged.Acc.Haste_30, sets.Mpaca)
sets.engaged.EVA.Haste_30 = set_combine(sets.engaged.Haste_30, sets.Malignance)
sets.engaged.Mid.EVA.Haste_30 = set_combine(sets.engaged.Mid.Haste_30, sets.Malignance)
sets.engaged.Acc.EVA.Haste_30 = set_combine(sets.engaged.Acc.Haste_30, sets.Malignance)
-- sets.engaged.Innin.PDT.Haste_30 = set_combine(sets.engaged.Innin.Haste_30, sets.engaged.HastePDT)
-- sets.engaged.Innin.Mid.PDT.Haste_30 = sets.engaged.Mid.PDT.Haste_30
-- sets.engaged.Innin.Acc.PDT.Haste_30 = sets.engaged.Acc.PDT.Haste_30
-- haste spell - 139 dex | 275 acc | 1150 total acc (with shigi R15)
sets.engaged.Haste_15 = set_combine(sets.engaged.Haste_30, {
head="Ryuo Somen",
neck="Ninja Nodowa +2",
ear1="Brutal Earring",
ear2="Suppanomimi",
body="Adhemar Jacket +1",
hands="Floral Gauntlets",
ring1="Epona's Ring",
ring2="Gere Ring",
back=Andartia.DEX,
waist="Patentia Sash",
legs="Samnuha Tights",
feet=HercFeet.TP
})
sets.engaged.Mid.Haste_15 = set_combine(sets.engaged.Haste_15, { -- 676
neck="Ninja Nodowa +2",
ring1="Ilabrat Ring",
ring2="Gere Ring",
})
sets.engaged.Acc.Haste_15 = set_combine(sets.engaged.Acc.Haste_30, {
body="Mochizuki Chainmail +3",
hands="Adhemar Wristbands +1",
ring1="Regal Ring",
waist="Olseni Belt",
})
-- sets.engaged.Innin.Haste_15 = set_combine(sets.engaged.Haste_15, { })
-- sets.engaged.Innin.Mid.Haste_15 = sets.engaged.Mid.Haste_15
-- sets.engaged.Innin.Acc.Haste_15 = sets.engaged.Acc.Haste_15
sets.engaged.PDT.Haste_15 = set_combine(sets.engaged.Haste_15, sets.Mpaca)
sets.engaged.Mid.PDT.Haste_15 = set_combine(sets.engaged.Mid.Haste_15, sets.Mpaca)
sets.engaged.Acc.PDT.Haste_15 = set_combine(sets.engaged.Acc.Haste_15, sets.Mpaca)
sets.engaged.EVA.Haste_15 = set_combine(sets.engaged.Haste_15, sets.Malignance)
sets.engaged.Mid.EVA.Haste_15 = set_combine(sets.engaged.Mid.Haste_15, sets.Malignance)
sets.engaged.Acc.EVA.Haste_15 = set_combine(sets.engaged.Acc.Haste_15, sets.Malignance)
-- sets.engaged.Innin.PDT.Haste_15 = set_combine(sets.engaged.Innin.Haste_15, sets.engaged.HastePDT)
-- sets.engaged.Innin.Mid.PDT.Haste_15 = sets.engaged.Mid.PDT.Haste_15
-- sets.engaged.Innin.Acc.PDT.Haste_15 = sets.engaged.Acc.PDT.Haste_15
sets.buff.Migawari = {body="Hattori Ningi +1"}
-- Weaponskills
sets.precast.WS = {
--head="Hachiya Hatsuburi +3",
head="Kendatsuba Jinpachi +1",
neck="Ninja Nodowa +2",
ear1="Brutal Earring",
ear2="Moonshade Earring",
body="Kendatsuba Samue +1",
hands="Kendatsuba Tekko +1",
ring1="Regal Ring",
ring2="Gere Ring",
back=Andartia.DEX,
waist="Windbuffet Belt +1",
--legs=HercLegs.WSD,
legs="Mochizuki Hakama +3",
feet="Kendatsuba Sune-ate +1"
}
sets.precast.WS.Mid = set_combine(sets.precast.WS, { })
sets.precast.WS.Acc = set_combine(sets.precast.WS.Mid, {
ring1="Regal Ring",
body="Mochizuki Chainmail +3",
})
sets.Kamu = {
ammo="Coiste Bodhar",
neck="Ninja Nodowa +2",
head="Mpaca's Cap",
body=HercBody.WSD,
back=Andartia.STR,
legs="Mochizuki Hakama +3",
waist="Sailfi Belt +1",
}
sets.precast.WS['Blade: Kamu'] = set_combine(sets.precast.WS, sets.Kamu)
sets.precast.WS['Blade: Kamu'].Mid = set_combine(sets.precast.WS.Mid, sets.Kamu)
sets.precast.WS['Blade: Kamu'].Acc = set_combine(sets.precast.WS.Acc, sets.Kamu, {waist="Caudata Belt"})
-- BLADE: JIN
sets.Jin = {
ammo="Yetshila",
neck="Ninja Nodowa +2",
ear1="Odr Earring",
back=Andartia.DEX,
waist="Windbuffet Belt +1",
}
sets.precast.WS['Blade: Jin'] = set_combine(sets.precast.WS, sets.Jin)
sets.precast.WS['Blade: Jin'].Mid = set_combine(sets.precast.WS['Blade: Jin'], {
})
sets.precast.WS['Blade: Jin'].Acc = set_combine(sets.precast.WS['Blade: Jin'].Mid, {
})
-- BLADE: HI
sets.precast.WS['Blade: Hi'] = set_combine(sets.precast.WS, {
ammo="Yetshila",
head="Adhemar Bonnet +1",
neck="Ninja Nodowa +2",
ear1="Odr Earring",
ear2="Ishvara Earring",
--body="Herculean Vest",
body="Malignance Tabard",
hands="Malignance Gloves",
--hands="Ryuo Tekko",
ring1="Regal Ring",
ring2="Gere Ring",
back=Andartia.AGI,
waist="Sailfi Belt +1",
legs="Mochizuki Hakama +3",
feet="Malignance Boots"
})
sets.precast.WS['Blade: Hi'].Mid = set_combine(sets.precast.WS['Blade: Hi'], {
--waist="Caudata Belt",
head="Hachiya Hatsuburi +3",
body="Kendatsuba Samue +1",
hands="Mpaca's Gloves",
feet="Mummu Gamashes +2"
})
sets.precast.WS['Blade: Hi'].Acc = set_combine(sets.precast.WS['Blade: Hi'].Mid, {
--head=HercHead.DM,
head="Adhemar Bonnet +1",
body="Kendatsuba Samue +1",
})
-- BLADE: SHUN
sets.precast.WS['Blade: Shun'] = set_combine(sets.precast.WS, {
ammo="Date Shuriken",
head="Mpaca's Cap",
neck="Ninja Nodowa +2",
ear1="Odr Earring",
ear2="Moonshade Earring",
body="Malignance Tabard",
hands="Malignance Gloves",
ring1="Regal Ring",
ring2="Gere Ring",
back=Andartia.DEX,
waist="Light Belt",
legs="Malignance Tights",
feet="Kendatsuba Sune-ate +1"
})
sets.precast.WS['Blade: Shun'].Mid = set_combine(sets.precast.WS['Blade: Shun'], {
head="Kendatsuba Jinpachi +1",
body="Adhemar Jacket +1",
hands="Adhemar Wristbands +1",
legs="Samnuha Tights",
})
sets.precast.WS['Blade: Shun'].Acc = set_combine(sets.precast.WS['Blade: Shun'].Mid, {
legs="Kendatsuba Hakama +1"
})
-- BLADE: Rin
sets.Rin = {
neck="Ninja Nodowa +2",
waist="Windbuffet Belt +1",
back=Andartia.STR,
}
sets.precast.WS['Blade: Rin'] = set_combine(sets.precast.WS, sets.Rin)
sets.precast.WS['Blade: Rin'].Mid = set_combine(sets.precast.WS.Mid, sets.Rin)
sets.precast.WS['Blade: Rin'].Acc = set_combine(sets.precast.WS.Acc, sets.Rin, {waist="Light Belt"})
-- BLADE: KU
sets.precast.WS['Blade: Ku'] = set_combine(sets.precast.WS, {
head="Mpaca's Cap'",
neck="Ninja Nodowa +2",
ear1="Odr Earring",
ear2="Lugra Earring +1",
body="Malignance Tabard",
hands="Malignance Gloves",
ring1="Regal Ring",
ring2="Gere Ring",
waist="Soil Belt",
back=Andartia.DEX,
legs="Malignance Tights",
feet="Kendatsuba Sune-ate +1"
})
sets.precast.WS['Blade: Ku'].Mid = set_combine(sets.precast.WS['Blade: Ku'], {
head="Adhemar Bonnet +1",
body="Adhemar Jacket +1",
hands="Adhemar Wristbands +1",
neck="Shadow Gorget",
})
sets.precast.WS['Blade: Ku'].Acc = set_combine(sets.precast.WS['Blade: Ku'].Mid, sets.Kendatsuba)
-- BLADE: TEN
sets.precast.WS['Blade: Ten'] = set_combine(sets.precast.WS, {
head="Mpaca's Cap",
neck="Ninja Nodowa +2",
ear1="Lugra Earring +1",
ear2="Moonshade Earring",
body=HercBody.WSD,
hands="Malignance Gloves",
ring1="Regal Ring",
ring2="Gere Ring",
waist="Sailfi Belt +1",
back=Andartia.STR,
legs="Tatenashi Haidate +1",
feet="Mpaca's Boots"
})
sets.precast.WS['Blade: Ten'].Mid = set_combine(sets.precast.WS['Blade: Ten'], {
hands=HercHands.WSD,
waist="Sailfi Belt +1",
legs="Mochizuki Hakama +3",
})
sets.precast.WS['Blade: Ten'].Acc = set_combine(sets.precast.WS['Blade: Ten'].Mid, {
body="Mpaca's Doublet",
hands="Mpaca's Gloves'"
})
sets.precast.WS['Savage Blade'] = set_combine(sets.precast.WS, {
head="Mpaca's Cap",
neck="Ninja Nodowa +2",
ear1="Ishvara Earring",
ear2="Moonshade Earring",
body=HercBody.WSD,
hands="Malignance Gloves",
ring1="Regal Ring",
ring2="Gere Ring",
legs="Mochizuki Hakama +3",
--legs=HercLegs.WSD,
back=Andartia.STR,
waist="Sailfi Belt +1",
feet="Mpaca's Boots"
})
sets.precast.WS['Aeolian Edge'] = set_combine(sets.precast.WS, {
head="Nyame Helm",
ear1="Friomisi Earring",
neck="Sanctity Necklace",
body="Nyame Mail",
hands="Nyame Gauntlets",
ring1="Regal Ring",
ring2="Dingir Ring",
legs="Nyame Flanchard",
waist="Thunder Belt",
feet=HercFeet.MAB
})
sets.precast.WS['Blade: Chi'] = set_combine(sets.precast.WS['Aeolian Edge'], {
head="Nyame Helm",
neck="Sanctity Necklace",
hands="Nyame Gauntlets",
body="Nyame Mail",
ring1="Regal Ring",
ring2="Dingir Ring",
waist="Eschan Stone",
legs="Nyame Flanchard",
back=Andartia.AGI,
feet="Nyame Sollerets"
})
sets.precast.WS['Blade: Teki'] = sets.precast.WS['Blade: Chi']
sets.precast.WS['Blade: To'] = sets.precast.WS['Blade: Chi']
end
-------------------------------------------------------------------------------------------------------------------
-- Job-specific hooks that are called to process player actions at specific points in time.
-------------------------------------------------------------------------------------------------------------------
function job_pretarget(spell, action, spellMap, eventArgs)
if state.Buff[spell.english] ~= nil then
state.Buff[spell.english] = true
end
if (spell.type:endswith('Magic') or spell.type == "Ninjutsu") and buffactive.silence then
--cancel_spell()
send_command('input /item "Echo Drops" <me>')
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 spell.skill == "Ninjutsu" and spell.target.type:lower() == 'self' and spellMap ~= "Utsusemi" then
if spell.english == "Migawari" then
classes.CustomClass = "Migawari"
else
classes.CustomClass = "SelfNinjutsu"
end
end
if spell.name == 'Spectral Jig' and buffactive.sneak then
-- If sneak is active when using, cancel before completion
-- send_command('cancel 71')
end
if string.find(spell.english, 'Utsusemi') then
if buffactive['Copy Image (3)'] or buffactive['Copy Image (4)'] then
--cancel_spell()
eventArgs.cancel = true
return
end
end
end
function job_post_precast(spell, action, spellMap, eventArgs)
-- Ranged Attacks
if spell.action_type == 'Ranged Attack' and state.OffenseMode ~= 'Acc' then
equip( sets.SangeAmmo )
end
-- protection for lag
if spell.name == 'Sange' and player.equipment.ammo == gear.RegularAmmo then
state.Buff.Sange = false
eventArgs.cancel = true
end
if spell.type == 'WeaponSkill' then
if spell.english == 'Aeolian Edge' and state.TreasureMode.value ~= 'None' then
equip(sets.TreasureHunter)
end
-- Mecistopins Mantle rule (if you kill with ws)
if state.CapacityMode.value then
equip(sets.CapacityMantle)
end
-- Gavialis Helm rule
-- if is_sc_element_today(spell) then
-- if wsList:contains(spell.english) then
-- -- do nothing
-- else
-- equip(sets.WSDayBonus)
-- end
-- end
-- Lugra Earring for some WS
if LugraWSList:contains(spell.english) then
if world.time >= (17*60) or world.time <= (7*60) then
equip(sets.OdrLugra)
else
equip(sets.OdrBrutal)
end
elseif spell.english == 'Blade: Ten' then
equip(sets.OdrMoon)
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 nukeList:contains(spell.english) and buffactive['Futae'] then
equip(sets.Burst)
end
-- if spell.english == "Monomi: Ichi" then
-- if buffactive['Sneak'] then
-- send_command('@wait 2.7;cancel sneak')
-- end
-- end
end
-- Run after the general 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 state.TreasureMode.value ~= 'None' and spell.action_type == 'Ranged Attack' then
-- equip(sets.TreasureHunter)
--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 midaction() then