forked from aragan/ffxi-gearswap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSCH.lua
1206 lines (1053 loc) · 46.5 KB
/
SCH.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
-----------------------------Authors of this file--------------------------------
------ ****************************************** ------
--- ---
-- Aragan (Asura) --------------- [Author Primary] --
-- --
---------------------------------------------------------------------------------
-- Original: Motenten / Modified: Arislan
-------------------------------------------------------------------------------------------------------------------
-- Keybinds
-------------------------------------------------------------------------------------------------------------------
-- Modes: [ F10 ] Emergency -PDT Mode
-- [ ALT+F10 ] Toggle Kiting Mode
-- [ F11 ] Emergency -MDT Mode
-- [ CTRL+F11 ] Cycle Casting Modes
-- [ F12 ] Update Current Gear / Report Current Status
-- [ CTRL+F12 ] Cycle Idle Modes
-- [ ALT+F12 ] Cancel Emergency -PDT/-MDT Mode
-- [ ALT+` ] Toggle Magic Burst Mode
-- [ WIN+C ] Toggle Capacity Points Mode
-- [ WIN+H ] Cycle Helix Mode
-- [ WIN+R ] Cycle Regen Mode
-- [ WIN+S ] Toggle Storm Surge
--
-- Abilities: [ CTRL+` ] Immanence
-- [ CTRL+- ] Light Arts/Addendum: White
-- [ CTRL+= ] Dark Arts/Addendum: Black
-- [ CTRL+[ ] Rapture/Ebullience
-- [ CTRL+] ] Altruism/Focalization
-- [ CTRL+; ] Celerity/Alacrity
-- [ ALT+[ ] Accesion/Manifestation
-- [ ALT+] ] Perpetuance
-- [ ALT+; ] Penury/Parsimony
--
-- Weapons: [ CTRL+W ] Toggles Weapon Lock
--
-- WS: [ CTRL+Numpad0 ] Myrkr
--
--
-- (Global-Binds.lua contains additional non-job-related keybinds)
-------------------------------------------------------------------------------------------------------------------
-- Setup functions for this job. Generally should not be modified.
-------------------------------------------------------------------------------------------------------------------
-- Addendum Commands:
-- Shorthand versions for each strategem type that uses the version appropriate for
-- the current Arts.
-- Light Arts Dark Arts
-- ---------- ---------
-- gs c scholar light Light Arts/Addendum
-- gs c scholar dark Dark Arts/Addendum
-- gs c scholar cost Penury Parsimony
-- gs c scholar speed Celerity Alacrity
-- gs c scholar aoe Accession Manifestation
-- gs c scholar power Rapture Ebullience
-- gs c scholar duration Perpetuance
-- gs c scholar accuracy Altruism Focalization
-- gs c scholar enmity Tranquility Equanimity
-- gs c scholar skillchain Immanence
-- gs c scholar addendum Addendum: White Addendum: Black
-------------------------------------------------------------------------------------------------------------------
-- 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()
info.addendumNukes = S{"Stone IV", "Water IV", "Aero IV", "Fire IV", "Blizzard IV", "Thunder IV",
"Stone V", "Water V", "Aero V", "Fire V", "Blizzard V", "Thunder V"}
state.Buff['Sublimation: Activated'] = buffactive['Sublimation: Activated'] or false
state.HelixMode = M{['description']='Helix Mode', 'Potency', 'Duration'}
state.RegenMode = M{['description']='Regen Mode', 'Duration', 'Potency'}
-- state.CP = M(false, "Capacity Points Mode")
update_active_strategems()
no_swap_gear = S{"Warp Ring", "Dim. Ring (Dem)", "Dim. Ring (Holla)", "Dim. Ring (Mea)",
"Trizek Ring", "Echad Ring", "Facility Ring", "Capacity Ring"}
degrade_array = {
['Aspirs'] = {'Aspir','Aspir II'}
}
lockstyleset = 10
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', 'Acc')
state.CastingMode:options('Normal', 'Seidr', 'Resistant')
state.IdleMode:options('Normal', 'DT', 'Vagary')
state.WeaponLock = M(false, 'Weapon Lock')
state.MagicBurst = M(false, 'Magic Burst')
state.StormSurge = M(false, 'Stormsurge')
-- Additional local binds
send_command('bind ^` input /ja Immanence <me>')
send_command('bind !` gs c toggle MagicBurst')
send_command('bind ^- gs c scholar light')
send_command('bind ^= gs c scholar dark')
send_command('bind ^[ gs c scholar power')
send_command('bind ^] gs c scholar accuracy')
send_command('bind ^; gs c scholar speed')
send_command('bind !w input /ma "Aspir II" <t>')
send_command('bind !o input /ma "Regen V" <stpc>')
send_command('bind ![ gs c scholar aoe')
send_command('bind !] gs c scholar duration')
send_command('bind !; gs c scholar cost')
-- send_command('bind @c gs c toggle CP')
send_command('bind @h gs c cycle HelixMode')
send_command('bind @r gs c cycle RegenMode')
send_command('bind @s gs c toggle StormSurge')
send_command('bind @w gs c toggle WeaponLock')
send_command('bind ^numpad0 input /Myrkr')
select_default_macro_book()
set_lockstyle()
state.Auto_Kite = M(false, 'Auto_Kite')
moving = false
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 !w')
send_command('unbind !o')
send_command('unbind ![')
send_command('unbind !]')
send_command('unbind !;')
send_command('unbind ^,')
send_command('unbind !.')
-- send_command('unbind @c')
send_command('unbind @h')
send_command('unbind @g')
send_command('unbind @s')
send_command('unbind @w')
send_command('unbind ^numpad0')
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 ------------------------------------------
------------------------------------------------------------------------------------------------
-- Precast sets to enhance JAs
sets.precast.JA['Tabula Rasa'] = {legs="Peda. Pants +3"}
sets.precast.JA['Enlightenment'] = {body="Peda. Gown +3"}
sets.precast.JA['Sublimation'] = {
main="Musa",
sub="Enki Strap",
head="Acad. Mortar. +3",
body="Acad. Gown +3",
hands=gear.Telchine_ENH_hands,
legs="Acad. Pants +3",
feet="Skaoi Boots",
neck="Unmoving Collar +1",
ear1="Eabani Earring",
ear2="Etiolation Earring",
ring1="Gelatinous Ring +1",
ring2="Eihwaz Ring",
back="Moonlight Cape",
waist="Eschan Stone",
}
-- Fast cast sets for spells
sets.precast.FC = {
-- /RDM --15
ammo="Sapience Orb",
head="Jhakri Coronal +2",
body="Pinga Tunic",
hands="Jhakri Cuffs +2",
legs="Pinga Pants",
feet={ name="Merlinic Crackows", augments={'Magic burst dmg.+9%','Mag. Acc.+9',}},
left_ear="Loquac. Earring",
right_ear="Etiolation Earring",
left_ring="Kishar Ring",
right_ring="Jhakri Ring",
back={ name="Lugh's Cape", augments={'INT+20','Mag. Acc+20 /Mag. Dmg.+20','Mag. Acc.+10','"Fast Cast"+10',}},
}
sets.precast.FC.Grimoire = {head="Peda. M.Board +3", feet="Acad. Loafers +3"}
sets.precast.FC['Enhancing Magic'] = set_combine(sets.precast.FC, {waist="Siegel Sash"})
sets.precast.FC['Elemental Magic'] = set_combine(sets.precast.FC, {})
sets.precast.FC.Cure = set_combine(sets.precast.FC, {
feet={ name="Vanya Clogs", augments={'"Cure" potency +5%','"Cure" spellcasting time -15%','"Conserve MP"+6',}},
ear1="Mendi. Earring", --5
ring1="Lebeche Ring", --(2)
})
sets.precast.FC.Curaga = sets.precast.FC.Cure
sets.precast.FC.Impact = set_combine(sets.precast.FC, {head=empty, body="Twilight Cloak", waist="Shinjutsu-no-Obi +1"})
sets.precast.FC.Dispelga = set_combine(sets.precast.FC, {main="Daybreak", sub="Ammurapi Shield"})
sets.precast.Storm = set_combine(sets.precast.FC, {})
------------------------------------------------------------------------------------------------
------------------------------------- Weapon Skill Sets ----------------------------------------
------------------------------------------------------------------------------------------------
sets.precast.WS = {
--ammo="Floestone",
head="Jhakri Coronal +2",
body="Jhakri Robe +2",
hands="Jhakri Cuffs +2",
legs=gear.Telchine_ENH_legs,
feet="Jhakri Pigaches +2",
neck="Fotia Gorget",
ear1="Moonshade Earring",
ear2="Telos Earring",
ring1="Epaminondas's Ring",
ring2="Rufescent Ring",
back="Relucent Cape",
waist="Fotia Belt",
}
sets.precast.WS['Omniscience'] = set_combine(sets.precast.WS, {
ammo="Ghastly Tathlum +1",
head="Pixie Hairpin +1",
body="Peda. Gown +3",
legs="Peda. Pants +3",
feet="Merlinic Crackows",
ear1="Malignance Earring",
ear2="Regal Earring",
ring2="Archon Ring",
back=gear.SCH_MAB_Cape,
waist="Sacro Cord",
})
sets.precast.WS['Myrkr'] = {
ammo="Ghastly Tathlum +1",
head="Pixie Hairpin +1",
body="Amalric Doublet +1",
hands="Kaykaus Cuffs +1",
legs="Amalric Slops +1",
feet="Kaykaus Boots +1",
neck="Orunmila's Torque",
ear1="Loquacious Earring",
ear2="Etiolation Earring",
ring1={name="Fenrir Ring +1", bag="wardrobe3"},
ring2="Metamor. Ring +1",
back="Fi Follet Cape +1",
waist="Shinjutsu-no-Obi +1",
} -- Max MP
------------------------------------------------------------------------------------------------
---------------------------------------- Midcast Sets ------------------------------------------
------------------------------------------------------------------------------------------------
sets.midcast.FastRecast = sets.precast.FC
sets.midcast.Cure = {
main="Daybreak",
sub="Sors Shield",
ammo="Pemphredo Tathlum",
head={ name="Vanya Hood", augments={'MP+50','"Fast Cast"+10','Haste+2%',}},
body={ name="Chironic Doublet", augments={'"Mag.Atk.Bns."+5','"Cure" potency +10%','MND+4','Mag. Acc.+1',}},
hands={ name="Kaykaus Cuffs +1", augments={'MP+80','MND+12','Mag. Acc.+20',}},
legs={ name="Vanya Slops", augments={'Healing magic skill +20','"Cure" spellcasting time -7%','Magic dmg. taken -3',}},
feet={ name="Vanya Clogs", augments={'"Cure" potency +5%','"Cure" spellcasting time -15%','"Conserve MP"+6',}},
neck="Incanter's Torque",
waist="Fucho-no-Obi",
left_ear="Mendi. Earring",
right_ear="Etiolation Earring",
left_ring="Kishar Ring",
right_ring="Naji's Loop",
back={ name="Lugh's Cape", augments={'INT+20','Mag. Acc+20 /Mag. Dmg.+20','Mag. Acc.+10','"Fast Cast"+10',}},
}
sets.midcast.CureWeather = set_combine(sets.midcast.Cure, {
main="Chatoyant Staff", --10
sub="Khonsu", --0/(-5)
waist="Hachirin-no-Obi",
})
sets.midcast.Curaga = set_combine(sets.midcast.Cure, {
ring1="Stikini Ring +1",
ring2="Metamor. Ring +1",
waist="Luminary Sash",
})
sets.midcast.StatusRemoval = {
main={ name="Gada", augments={'Indi. eff. dur. +1','VIT+1','"Mag.Atk.Bns."+19',}},
ammo="Pemphredo Tathlum",
head={ name="Vanya Hood", augments={'MP+50','"Fast Cast"+10','Haste+2%',}},
hands={ name="Fanatic Gloves", augments={'MP+50','Healing magic skill +8','"Conserve MP"+5','"Fast Cast"+5',}},
feet={ name="Vanya Clogs", augments={'"Cure" potency +5%','"Cure" spellcasting time -15%','"Conserve MP"+6',}},
neck="Debilis Medallion",
left_ring="Ephedra Ring",
right_ring="Haoma's Ring",
}
sets.midcast.Cursna = set_combine(sets.midcast.StatusRemoval, {
main={ name="Gada", augments={'Indi. eff. dur. +1','VIT+1','"Mag.Atk.Bns."+19',}},
ammo="Pemphredo Tathlum",
body={ name="Vanya Robe", augments={'HP+50','MP+50','"Refresh"+2',}},
hands={ name="Fanatic Gloves", augments={'MP+50','Healing magic skill +8','"Conserve MP"+5','"Fast Cast"+5',}},
feet={ name="Vanya Clogs", augments={'"Cure" potency +5%','"Cure" spellcasting time -15%','"Conserve MP"+6',}},
legs={ name="Vanya Slops", augments={'Healing magic skill +20','"Cure" spellcasting time -7%','Magic dmg. taken -3',}},
neck="Debilis Medallion",
waist="Gishdubar Sash",
left_ring="Haoma's Ring",
right_ring="Haoma's Ring",
})
sets.midcast['Enhancing Magic'] = {
main={ name="Gada", augments={'Indi. eff. dur. +1','VIT+1','"Mag.Atk.Bns."+19',}},
sub="Ammurapi Shield",
ammo="Pemphredo Tathlum",
head="Befouled Crown",
body={ name="Chironic Doublet", augments={'"Mag.Atk.Bns."+5','"Cure" potency +10%','MND+4','Mag. Acc.+1',}},
hands={ name="Chironic Gloves", augments={'"Cure" potency +7%','MND+9','Mag. Acc.+5','"Mag.Atk.Bns."+5',}},
legs={ name="Vanya Slops", augments={'Healing magic skill +20','"Cure" spellcasting time -7%','Magic dmg. taken -3',}},
feet={ name="Vanya Clogs", augments={'"Cure" potency +5%','"Cure" spellcasting time -15%','"Conserve MP"+6',}},
neck="Incanter's Torque",
waist="Olympus Sash",
left_ear="Mendi. Earring",
right_ear="Andoaa Earring",
left_ring="Stikini Ring +1",
right_ring="Stikini Ring +1",
back={ name="Fi Follet Cape +1", augments={'Path: A',}},
}
sets.midcast.EnhancingDuration = {
main="Musa",
sub="Khonsu",
head=gear.Telchine_ENH_head,
body="Peda. Gown +3",
hands=gear.Telchine_ENH_hands,
legs=gear.Telchine_ENH_legs,
feet=gear.Telchine_ENH_feet,
waist="Embla Sash",
}
sets.midcast.Regen = set_combine(sets.midcast.EnhancingDuration, {
main="Musa",
sub="Khonsu",
head="Arbatel Bonnet +1",
body=gear.Telchine_ENH_body,
hands=gear.Telchine_ENH_hands,
legs=gear.Telchine_ENH_legs,
feet=gear.Telchine_ENH_feet,
waist="Embla Sash",
back="Bookworm's Cape",
})
sets.midcast.RegenDuration = set_combine(sets.midcast.EnhancingDuration, {
head=gear.Telchine_ENH_head,
back=gear.SCH_FC_Cape,
waist="Embla Sash",
})
sets.midcast.Haste = sets.midcast.EnhancingDuration
sets.midcast.Refresh = set_combine(sets.midcast.EnhancingDuration, {
head="Amalric Coif +1",
waist="Gishdubar Sash",
back="Grapevine Cape",
})
sets.midcast.Stoneskin = set_combine(sets.midcast.EnhancingDuration, {
neck="Nodens Gorget",
waist="Siegel Sash",
})
sets.midcast.Aquaveil = set_combine(sets.midcast.EnhancingDuration, {
main="Vadose Rod",
sub="Ammurapi Shield",
ammo="Staunch Tathlum +1",
head="Amalric Coif +1",
hands="Regal Cuffs",
ear1="Halasz Earring",
ear2="Magnetic Earring",
ring1="Freke Ring",
waist="Embla Sash",
})
sets.midcast.Storm = sets.midcast.EnhancingDuration
sets.midcast.Stormsurge = set_combine(sets.midcast.Storm, {feet="Peda. Loafers +3"})
sets.midcast.Protect = set_combine(sets.midcast.EnhancingDuration, {ring2="Sheltered Ring"})
sets.midcast.Protectra = sets.midcast.Protect
sets.midcast.Shell = sets.midcast.Protect
sets.midcast.Shellra = sets.midcast.Shell
-- Custom spell classes
sets.midcast.MndEnfeebles = {
main="Daybreak",
sub="Ammurapi Shield",
ammo="Pemphredo Tathlum",
head=empty;
body="Cohort Cloak +1",
hands="Regal Cuffs",
legs="Acad. Pants +3",
feet="Acad. Loafers +3",
neck="Mizu. Kubikazari",
ear1="Malignance Earring",
ear2="Vor Earring",
ring1="Kishar Ring",
ring2="Metamor. Ring +1",
back="Aurist's Cape +1",
waist="Luminary Sash",
}
sets.midcast.IntEnfeebles = set_combine(sets.midcast.Enfeebles, {
main="Maxentius",
sub="Ammurapi Shield",
head="Acad. Mortar. +3",
body="Acad. Gown +3",
legs="Chironic Hose",
waist="Acuity Belt +1",
})
sets.midcast.ElementalEnfeeble = sets.midcast.Enfeebles
sets.midcast.Dispelga = set_combine(sets.midcast.IntEnfeebles, {main="Daybreak", sub="Ammurapi Shield", waist="Shinjutsu-no-Obi +1"})
sets.midcast['Dark Magic'] = {
main="Akademos", --10
sub="Enki Strap",
ammo={ name="Ghastly Tathlum +1", augments={'Path: A',}},
head="Pixie Hairpin +1",
body="Agwu's Robe",
hands="Agwu's Gages",
legs="Agwu's Slops",
feet="Agwu's Pigaches",
neck="Baetyl Pendant",
waist="Fucho-no-obi",
left_ear="Friomisi Earring",
right_ear="Archon Ring",
left_ring="Mallquis Ring",
right_ring="Freke Ring",
back={ name="Lugh's Cape", augments={'INT+20','Mag. Acc+20 /Mag. Dmg.+20','Mag. Acc.+10','"Fast Cast"+10',}},
}
sets.midcast.Kaustra = {
main="Akademos", --10
sub="Enki Strap",
ammo={ name="Ghastly Tathlum +1", augments={'Path: A',}},
head="Pixie Hairpin +1",
body="Agwu's Robe",
hands="Agwu's Gages",
legs="Agwu's Slops",
feet="Agwu's Pigaches",
neck="Baetyl Pendant",
waist="Fucho-no-obi",
left_ear="Friomisi Earring",
right_ear="Archon Ring",
left_ring="Mallquis Ring",
right_ring="Freke Ring",
back={ name="Lugh's Cape", augments={'INT+20','Mag. Acc+20 /Mag. Dmg.+20','Mag. Acc.+10','"Fast Cast"+10',}},
}
sets.midcast.Drain = set_combine(sets.midcast['Dark Magic'], {
head="Pixie Hairpin +1",
ear1="Hirudinea Earring",
ring1="Evanescence Ring",
ring2="Archon Ring",
waist="Fucho-no-obi",
})
sets.midcast.Aspir = sets.midcast.Drain
sets.midcast.Stun = set_combine(sets.midcast['Dark Magic'], {
back=gear.SCH_MAB_Cape,
})
-- Elemental Magic
sets.midcast['Elemental Magic'] = {
main="Bunzi's Rod",
sub="Ammurapi Shield",
ammo={ name="Ghastly Tathlum +1", augments={'Path: A',}},
head="Agwu's Cap",
body="Agwu's Robe",
hands="Agwu's Gages",
legs="Agwu's Slops",
feet="Agwu's Pigaches",
neck="Baetyl Pendant",
waist="Orpheus's Sash",
left_ear="Friomisi Earring",
right_ear="Malignance Earring",
left_ring="Mallquis Ring",
right_ring="Freke Ring",
back={ name="Lugh's Cape", augments={'INT+20','Mag. Acc+20 /Mag. Dmg.+20','Mag. Acc.+10','"Fast Cast"+10',}},
}
sets.midcast['Elemental Magic'].Seidr = set_combine(sets.midcast['Elemental Magic'], {
ammo="Pemphredo Tathlum",
head="Merlinic Hood",
body="Seidr Cotehardie",
legs="Peda. Pants +3",
feet="Merlinic Crackows",
neck="Erra Pendant",
waist="Orpheus's Sash",
})
sets.midcast['Elemental Magic'].Resistant = set_combine(sets.midcast['Elemental Magic'], {
ammo="Pemphredo Tathlum",
head="Merlinic Hood",
legs="Merlinic Shalwar",
neck="Erra Pendant",
})
sets.midcast.Impact = set_combine(sets.midcast['Elemental Magic'], {
head=empty,
body="Twilight Cloak",
ring2="Archon Ring",
waist="Shinjutsu-no-Obi +1",
})
sets.midcast.Helix = set_combine(sets.midcast['Elemental Magic'], {
main="Bunzi's Rod",
sub="Ammurapi Shield",
ammo={ name="Ghastly Tathlum +1", augments={'Path: A',}},
neck="Mizu. Kubikazari",
waist="Orpheus's Sash",
})
sets.midcast.DarkHelix = set_combine(sets.midcast.Helix, {
head="Pixie Hairpin +1",
ring2="Archon Ring",
})
sets.midcast.LightHelix = set_combine(sets.midcast.Helix, {
main="Daybreak",
sub="Ammurapi Shield",
})
-- Initializes trusts at iLvl 119
sets.midcast.Trust = sets.precast.FC
------------------------------------------------------------------------------------------------
----------------------------------------- Idle Sets --------------------------------------------
------------------------------------------------------------------------------------------------
sets.idle = {feet="Herald's Gaiters",
ring1="Stikini Ring +1",
ring2="Stikini Ring +1",
}
sets.idle.DT = set_combine(sets.idle, {
ammo="Staunch Tathlum +1",
head="Nyame Helm",
body="Nyame Mail",
hands="Nyame Gauntlets",
legs="Nyame Flanchard",
feet="Nyame Sollerets",
neck={ name="Unmoving Collar +1", augments={'Path: A',}},
waist="Carrier's Sash",
left_ear="Tuisto Earring",
right_ear={ name="Odnowa Earring +1", augments={'Path: A',}},
left_ring="Paguroidea Ring",
right_ring={ name="Gelatinous Ring +1", augments={'Path: A',}},
back="Moonlight Cape",
})
sets.idle.Vagary = sets.midcast['Elemental Magic']
sets.idle.Town = set_combine(sets.idle, {
feet="Herald's Gaiters"
})
sets.resting = set_combine(sets.idle, {
head="Befouled Crown",
body="Jhakri Robe +2",
legs="Assid. Pants +1",
feet="Herald's Gaiters",
neck={ name="Bathy Choker +1", augments={'Path: A',}},
left_ear="Infused Earring",
right_ear="Musical Earring",
left_ring="Stikini Ring +1",
right_ring="Stikini Ring +1",
})
------------------------------------------------------------------------------------------------
---------------------------------------- Defense Sets ------------------------------------------
------------------------------------------------------------------------------------------------
sets.defense.PDT = {
ammo="Staunch Tathlum +1",
head="Nyame Helm",
body="Nyame Mail",
hands="Nyame Gauntlets",
legs="Nyame Flanchard",
feet="Nyame Sollerets",
neck={ name="Unmoving Collar +1", augments={'Path: A',}},
waist="Carrier's Sash",
left_ear="Tuisto Earring",
right_ear={ name="Odnowa Earring +1", augments={'Path: A',}},
left_ring="Paguroidea Ring",
right_ring={ name="Gelatinous Ring +1", augments={'Path: A',}},
back="Moonlight Cape",
}
sets.defense.MDT = { ammo="Staunch Tathlum +1",
head="Nyame Helm",
body="Nyame Mail",
hands="Nyame Gauntlets",
legs="Nyame Flanchard",
feet="Nyame Sollerets",
neck={ name="Warder's Charm +1", augments={'Path: A',}},
waist="Carrier's Sash",
left_ear="Sanare Earring",
right_ear="Etiolation Earring",
left_ring="Vengeful Ring",
right_ring="Shadow Ring",
back="Moonlight Cape",}
sets.Kiting = {feet="Herald's Gaiters"}
sets.latent_refresh = {waist="Fucho-no-obi"}
------------------------------------------------------------------------------------------------
---------------------------------------- Engaged Sets ------------------------------------------
------------------------------------------------------------------------------------------------
sets.engaged = {
ammo="Amar Cluster",
head={ name="Blistering Sallet +1", augments={'Path: A',}},
body="Nyame Mail",
hands="Nyame Gauntlets",
legs="Nyame Flanchard",
feet="Nyame Sollerets",
neck="Lissome Necklace",
waist="Windbuffet Belt +1",
left_ear="Crep. Earring",
right_ear="Telos Earring",
left_ring="Chirich Ring +1",
right_ring="Chirich Ring +1",
back={ name="Aurist's Cape +1", augments={'Path: A',}},
}
------------------------------------------------------------------------------------------------
---------------------------------------- Special Sets ------------------------------------------
------------------------------------------------------------------------------------------------
sets.magic_burst = {
main="Bunzi's Rod",
sub="Ammurapi Shield",
ammo={ name="Ghastly Tathlum +1", augments={'Path: A',}},
head="Agwu's Cap",
body="Agwu's Robe",
hands="Agwu's Gages",
legs="Agwu's Slops",
feet="Agwu's Pigaches",
neck="Mizu. Kubikazari",
waist="Orpheus's Sash",
left_ear="Friomisi Earring",
right_ear="Malignance Earring",
left_ring="Mujin Band",
right_ring="Freke Ring",
back={ name="Lugh's Cape", augments={'INT+20','Mag. Acc+20 /Mag. Dmg.+20','Mag. Acc.+10','"Fast Cast"+10',}},
}
--sets.buff['Ebullience'] = {head="Arbatel Bonnet +1"}
sets.buff['Rapture'] = {head="Arbatel Bonnet +1"}
sets.buff['Perpetuance'] = {hands="Arbatel Bracers +1"}
sets.buff['Immanence'] = {hands="Arbatel Bracers +1", "Lugh's Cape"}
sets.buff['Penury'] = {legs="Arbatel Pants +1"}
sets.buff['Parsimony'] = {legs="Arbatel Pants +1"}
sets.buff['Celerity'] = {feet="Peda. Loafers +3"}
sets.buff['Alacrity'] = {feet="Peda. Loafers +3"}
sets.buff['Klimaform'] = {feet="Arbatel Loafers +1"}
sets.buff.FullSublimation = {
main="Siriti", --1
sub="Genmei Shield", --10/0
head="Acad. Mortar. +3", --4
body="Peda. Gown +3", --5
ear1="Savant's Earring", --1
waist="Embla Sash", --5
}
sets.buff.Doom = {
neck="Nicander's Necklace", --20
ring1="Eshmun's Ring",
ring2="Eshmun's Ring",
waist="Gishdubar Sash", --10
}
sets.LightArts = {legs="Acad. Pants +3", feet="Acad. Loafers +3"}
sets.DarkArts = {body="Acad. Gown +3", feet="Acad. Loafers +3"}
sets.Obi = {waist="Hachirin-no-Obi"}
sets.Bookworm = {back="Bookworm's Cape"}
-- sets.CP = {back="Mecisto. Mantle"}
end
-------------------------------------------------------------------------------------------------------------------
-- Job-specific hooks for standard casting events.
-------------------------------------------------------------------------------------------------------------------
function job_precast(spell, action, spellMap, eventArgs)
if spell.name:startswith('Aspir') then
refine_various_spells(spell, action, spellMap, eventArgs)
end
end
function job_post_precast(spell, action, spellMap, eventArgs)
if (spell.type == "WhiteMagic" and (buffactive["Light Arts"] or buffactive["Addendum: White"])) or
(spell.type == "BlackMagic" and (buffactive["Dark Arts"] or buffactive["Addendum: Black"])) then
equip(sets.precast.FC.Grimoire)
elseif spell.name == 'Impact' then
equip(sets.precast.FC.Impact)
end
end
-- Run after the general midcast() is done.
function job_post_midcast(spell, action, spellMap, eventArgs)
if spell.skill == 'Elemental Magic' then
if spellMap == "Helix" then
equip(sets.midcast['Elemental Magic'])
if spell.english:startswith('Lumino') then
equip(sets.midcast.LightHelix)
elseif spell.english:startswith('Nocto') then
equip(sets.midcast.DarkHelix)
else
equip(sets.midcast.Helix)
end
if state.HelixMode.value == 'Duration' then
equip(sets.Bookworm)
end
end
if buffactive['Klimaform'] and spell.element == world.weather_element then
equip(sets.buff['Klimaform'])
end
end
if spell.action_type == 'Magic' then
apply_grimoire_bonuses(spell, action, spellMap, eventArgs)
end
if spell.skill == 'Enfeebling Magic' then
if spell.type == "WhiteMagic" and (buffactive["Light Arts"] or buffactive["Addendum: White"]) then
equip(sets.LightArts)
elseif spell.type == "BlackMagic" and (buffactive["Dark Arts"] or buffactive["Addendum: Black"]) then
equip(sets.DarkArts)
end
end
if spell.skill == 'Elemental Magic' and state.MagicBurst.value then
equip(sets.magic_burst)
if spell.english == "Impact" then
equip(sets.midcast.Impact)
end
end
if spell.skill == 'Elemental Magic' or spell.english == "Kaustra" then
if (spell.element == world.weather_element and (get_weather_intensity() == 2 and spell.element ~= elements.weak_to[world.day_element])) and spellMap ~= 'Helix' then
equip(sets.Obi)
-- Target distance under 1.7 yalms.
elseif spell.target.distance < (1.7 + spell.target.model_size) then
equip({waist="Orpheus's Sash"})
-- Matching day and weather.
elseif (spell.element == world.day_element and spell.element == world.weather_element) and spellMap ~= 'Helix' then
equip(sets.Obi)
-- Target distance under 8 yalms.
elseif spell.target.distance < (8 + spell.target.model_size) then
equip({waist="Orpheus's Sash"})
-- Match day or weather.
elseif (spell.element == world.day_element or spell.element == world.weather_element) and spellMap ~= 'Helix' then
equip(sets.Obi)
end
end
if spell.skill == 'Enhancing Magic' then
if classes.NoSkillSpells:contains(spell.english) then
equip(sets.midcast.EnhancingDuration)
if spellMap == 'Refresh' then
equip(sets.midcast.Refresh)
end
end
if spellMap == "Regen" and state.RegenMode.value == 'Duration' then
equip(sets.midcast.RegenDuration)
end
if state.Buff.Perpetuance then
equip(sets.buff['Perpetuance'])
end
if spellMap == "Storm" and state.StormSurge.value then
equip (sets.midcast.Stormsurge)
end
end
end
function job_aftercast(spell, action, spellMap, eventArgs)
if not spell.interrupted then
if spell.english == "Sleep II" then
send_command('@timers c "Sleep II ['..spell.target.name..']" 90 down spells/00259.png')
elseif spell.english == "Sleep" or spell.english == "Sleepga" then -- Sleep & Sleepga Countdown --
send_command('@timers c "Sleep ['..spell.target.name..']" 60 down spells/00253.png')
elseif spell.english == "Break" then
send_command('@timers c "Break ['..spell.target.name..']" 30 down spells/00255.png')
end
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 == "Sublimation: Activated" then
handle_equipping_gear(player.status)
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
-- Handle notifications of general user state change.
function job_state_change(stateField, newValue, oldValue)
if state.WeaponLock.value == true then
disable('main','sub')
else
enable('main','sub')
end
end
-------------------------------------------------------------------------------------------------------------------
-- User code that supplements standard library decisions.
-------------------------------------------------------------------------------------------------------------------
function job_handle_equipping_gear(playerStatus, eventArgs)
check_rings()
check_moving()
end
-- Called by the 'update' self-command.
function job_update(cmdParams, eventArgs)
end
-- Custom spell mapping.
function job_get_spell_map(spell, default_spell_map)
if spell.action_type == 'Magic' then
if default_spell_map == 'Cure' or default_spell_map == 'Curaga' then
if (world.weather_element == 'Light' or world.day_element == 'Light') then
return 'CureWeather'
end
elseif spell.skill == 'Enfeebling Magic' then
if spell.type == 'WhiteMagic' then
return 'MndEnfeebles'
else
return 'IntEnfeebles'
end
end
end
end
function customize_idle_set(idleSet)
if state.Buff['Sublimation: Activated'] then
idleSet = set_combine(idleSet, sets.buff.FullSublimation)
end
if player.mpp < 51 then
idleSet = set_combine(idleSet, sets.latent_refresh)
end
-- if state.CP.current == 'on' then
-- equip(sets.CP)
-- disable('back')
-- else
-- enable('back')
-- end
if state.Auto_Kite.value == true then
idleSet = set_combine(idleSet, sets.Kiting)
end
return idleSet
end
-- Function to display the current relevant user state when doing an update.
-- Return true if display was handled, and you don't want the default info shown.
function display_current_job_state(eventArgs)
local c_msg = state.CastingMode.value
local h_msg = state.HelixMode.value
local r_msg = state.RegenMode.value
local d_msg = 'None'
if state.DefenseMode.value ~= 'None' then
d_msg = state.DefenseMode.value .. state[state.DefenseMode.value .. 'DefenseMode'].value
end
local i_msg = state.IdleMode.value
local msg = ''
if state.MagicBurst.value then
msg = ' Burst: On |'
end
if state.Kiting.value then
msg = msg .. ' Kiting: On |'
end
add_to_chat(060, '| Magic: ' ..string.char(31,001)..c_msg.. string.char(31,002).. ' |'
..string.char(31,060).. ' Helix: ' ..string.char(31,001)..h_msg.. string.char(31,002).. ' |'
..string.char(31,060).. ' Regen: ' ..string.char(31,001)..r_msg.. string.char(31,002).. ' |'
..string.char(31,004).. ' Defense: ' ..string.char(31,001)..d_msg.. string.char(31,002).. ' |'
..string.char(31,008).. ' Idle: ' ..string.char(31,001)..i_msg.. string.char(31,002).. ' |'
..string.char(31,002)..msg)
eventArgs.handled = true
end
-------------------------------------------------------------------------------------------------------------------
-- User code that supplements self-commands.
-------------------------------------------------------------------------------------------------------------------
-- Called for direct player commands.
function job_self_command(cmdParams, eventArgs)
gearinfo(cmdParams, eventArgs)
if cmdParams[1]:lower() == 'scholar' then
handle_strategems(cmdParams)
eventArgs.handled = true
elseif cmdParams[1]:lower() == 'nuke' then
handle_nuking(cmdParams)
eventArgs.handled = true
end
end
-------------------------------------------------------------------------------------------------------------------
-- Utility functions specific to this job.
-------------------------------------------------------------------------------------------------------------------
function gearinfo(cmdParams, eventArgs)
if cmdParams[1] == 'gearinfo' then
if type(cmdParams[4]) == 'string' then
if cmdParams[4] == 'true' then
moving = true
elseif cmdParams[4] == 'false' then
moving = false
end
end
if not midaction() then
job_update()
end
end
end
-- Reset the state vars tracking strategems.
function update_active_strategems()
state.Buff['Ebullience'] = buffactive['Ebullience'] or false
state.Buff['Rapture'] = buffactive['Rapture'] or false
state.Buff['Perpetuance'] = buffactive['Perpetuance'] or false