-
Notifications
You must be signed in to change notification settings - Fork 1
/
NinjaDDT.lua
772 lines (668 loc) · 26.7 KB
/
NinjaDDT.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
-- Welcome to Logical's Ninja Lua. This Lua is used for changing gear during precast and midcast and then swapping to the appropriate set for aftercast.
-- It will also cancel shadows for you when necessary to recast new shadows.
-- Please refer to my video on my NextGames YouTube channel for how to properly utilize this LUA.
-- This is what sets the initial set that you normally want to be in by default.
tp_mode = 'dw0'
mb_mode = 'mbnin'
function self_command(command)
local args = split_args(command)
if args[1] == 'tp' then
tp_mode = args[2]
elseif args[1] == 'mb' then
mb_mode = args[2]
end
end
function split_args(args)
fields = {}
args:gsub("([^ ]*) ?", function(c)
table.insert(fields, c)
end)
return fields
end
function get_sets()
-- This is where we will define our precast sets. These are sets of gear that get equiped BEFORE the spell or ability is used.
sets.precast = {}
sets.precast.fc = {
ammo="Sapience Orb",
head={ name="Herculean Helm", augments={'Accuracy+13','"Fast Cast"+6',}},
body={ name="Adhemar Jacket +1", augments={'HP+105','"Fast Cast"+10','Magic dmg. taken -4',}},
hands={ name="Leyline Gloves", augments={'Accuracy+15','Mag. Acc.+15','"Mag.Atk.Bns."+15','"Fast Cast"+3',}},
legs={ name="Herculean Trousers", augments={'"Waltz" potency +11%','INT+4',}},
feet="Hattori Kyahan +1",
neck="Orunmila's Torque",
waist="Oneiros Belt",
left_ear="Loquac. Earring",
right_ear="Enchntr. Earring +1",
left_ring="Rahab Ring",
right_ring="Kishar Ring",
back={ name="Andartia's Mantle", augments={'INT+20','Mag. Acc+20 /Mag. Dmg.+20','Mag. Acc.+10','"Fast Cast"+10',}},
}
sets.precast.utsusemi = {
ammo="Sapience Orb",
head={ name="Herculean Helm", augments={'Accuracy+13','"Fast Cast"+6',}},
body={ name="Adhemar Jacket +1", augments={'HP+105','"Fast Cast"+10','Magic dmg. taken -4',}},
hands={ name="Leyline Gloves", augments={'Accuracy+15','Mag. Acc.+15','"Mag.Atk.Bns."+15','"Fast Cast"+3',}},
legs={ name="Herculean Trousers", augments={'Mag. Acc.+14 "Mag.Atk.Bns."+14','"Fast Cast"+6',}},
feet={ name="Herculean Boots", augments={'Mag. Acc.+4','"Fast Cast"+6','INT+7',}},
neck="Orunmila's Torque",
waist="Oneiros Belt",
left_ear="Loquac. Earring",
right_ear="Enchntr. Earring +1",
left_ring="Rahab Ring",
right_ring="Kishar Ring",
back={ name="Andartia's Mantle", augments={'INT+20','Mag. Acc+20 /Mag. Dmg.+20','Mag. Acc.+10','"Fast Cast"+10',}},
}
-- This is where we will define our midcast sets. These are sets of gear that get equiped BEFORE the spell or ability lands.
sets.midcast = {}
sets.midcast.enmity = {
ammo="Date Shuriken",
head="Genmei Kabuto",
body={ name="Emet Harness +1", augments={'Path: A',}},
hands="Kurys Gloves",
legs={ name="Zoar Subligar +1", augments={'Path: A',}},
feet={ name="Mochi. Kyahan +3", augments={'Enh. Ninj. Mag. Acc/Cast Time Red.',}},
neck="Moonlight Necklace",
waist="Trance Belt",
left_ear="Trux Earring",
right_ear="Cryptic Earring",
left_ring="Supershear Ring",
right_ring="Eihwaz Ring",
back={ name="Andartia's Mantle", augments={'MND+20','Eva.+20 /Mag. Eva.+20','Mag. Evasion+10','Enmity+10','Mag. Evasion+15',}},
}
sets.midcast.elenin = {
ammo={ name="Ghastly Tathlum +1", augments={'Path: A',}},
head={ name="Mochi. Hatsuburi +3", augments={'Enhances "Yonin" and "Innin" effect',}},
body="Gyve Doublet",
hands={ name="Herculean Gloves", augments={'"Resist Silence"+8','"Mag.Atk.Bns."+27','Mag. Acc.+20 "Mag.Atk.Bns."+20',}},
legs="Gyve Trousers",
feet={ name="Mochi. Kyahan +3", augments={'Enh. Ninj. Mag. Acc/Cast Time Red.',}},
neck="Baetyl Pendant",
waist="Orpheus's Sash",
left_ear="Crematio Earring",
right_ear="Friomisi Earring",
left_ring="Shiva Ring +1",
right_ring={ name="Metamor. Ring +1", augments={'Path: A',}},
back={ name="Andartia's Mantle", augments={'INT+20','Mag. Acc+20 /Mag. Dmg.+20','INT+10','"Mag.Atk.Bns."+10',}},
}
sets.midcast.mbnin = {
ammo={ name="Ghastly Tathlum +1", augments={'Path: A',}},
head={ name="Mochi. Hatsuburi +3", augments={'Enhances "Yonin" and "Innin" effect',}},
body={ name="Samnuha Coat", augments={'Mag. Acc.+12','"Mag.Atk.Bns."+12','"Dual Wield"+3',}},
hands={ name="Herculean Gloves", augments={'CHR+10','"Dbl.Atk."+1','Quadruple Attack +3',}},
legs="Gyve Trousers",
feet={ name="Mochi. Kyahan +3", augments={'Enh. Ninj. Mag. Acc/Cast Time Red.',}},
neck={ name="Warder's Charm +1", augments={'Path: A',}},
waist="Orpheus's Sash",
left_ear="Static Earring",
right_ear="Friomisi Earring",
left_ring="Locus Ring",
right_ring="Mujin Band",
back={ name="Andartia's Mantle", augments={'INT+20','Mag. Acc+20 /Mag. Dmg.+20','INT+10','"Mag.Atk.Bns."+10',}},
}
sets.midcast.futae = {
ammo={ name="Ghastly Tathlum +1", augments={'Path: A',}},
head={ name="Mochi. Hatsuburi +3", augments={'Enhances "Yonin" and "Innin" effect',}},
body="Gyve Doublet",
hands="Hattori Tekko +1",
legs="Gyve Trousers",
feet={ name="Mochi. Kyahan +3", augments={'Enh. Ninj. Mag. Acc/Cast Time Red.',}},
neck="Baetyl Pendant",
waist="Orpheus's Sash",
left_ear="Crematio Earring",
right_ear="Friomisi Earring",
left_ring="Shiva Ring +1",
right_ring={ name="Metamor. Ring +1", augments={'Path: A',}},
back={ name="Andartia's Mantle", augments={'INT+20','Mag. Acc+20 /Mag. Dmg.+20','INT+10','"Mag.Atk.Bns."+10',}},
}
sets.midcast.enfnin = {
ammo="Yamarang",
head="Hachiya Hatsu. +3",
body="Malignance Tabard",
hands="Malignance Gloves",
legs="Malignance Tights",
feet="Hachiya Kyahan +3",
neck="Incanter's Torque",
waist="Eschan Stone",
left_ear="Digni. Earring",
right_ear="Hnoss Earring",
left_ring={ name="Metamor. Ring +1", augments={'Path: A',}},
right_ring="Stikini Ring +1",
back={ name="Andartia's Mantle", augments={'INT+20','Mag. Acc+20 /Mag. Dmg.+20','Mag. Acc.+10','"Fast Cast"+10',}},
}
sets.midcast.waltz = {
ammo="Yamarang",
head="Mummu Bonnet +2",
hands={ name="Herculean Gloves", augments={'Accuracy+16 Attack+16','"Waltz" potency +11%','MND+6',}},
legs={ name="Herculean Trousers", augments={'"Waltz" potency +11%','INT+4',}},
feet={ name="Herculean Boots", augments={'Attack+7','"Waltz" potency +11%','AGI+6',}},
right_ring="Valseur's Ring",
}
sets.midcast.bladehi = {
ammo="Yetshila +1",
head={ name="Adhemar Bonnet +1", augments={'STR+12','DEX+12','Attack+20',}},
body="Ken. Samue +1",
hands={ name="Ryuo Tekko +1", augments={'DEX+12','Accuracy+25','"Dbl.Atk."+4',}},
legs={ name="Mochi. Hakama +3", augments={'Enhances "Mijin Gakure" effect',}},
feet={ name="Adhe. Gamashes +1", augments={'STR+12','DEX+12','Attack+20',}},
neck={ name="Ninja Nodowa +2", augments={'Path: A',}},
waist={ name="Sailfi Belt +1", augments={'Path: A',}},
left_ear="Odr Earring",
right_ear={ name="Lugra Earring +1", augments={'Path: A',}},
left_ring="Gere Ring",
right_ring="Regal Ring",
back={ name="Andartia's Mantle", augments={'AGI+20','Accuracy+20 Attack+20','AGI+10','Weapon skill damage +10%',}},
}
sets.midcast.blademetsu = {
ammo={ name="Seeth. Bomblet +1", augments={'Path: A',}},
head="Hachiya Hatsu. +3",
body={ name="Adhemar Jacket +1", augments={'STR+12','DEX+12','Attack+20',}},
hands={ name="Mochizuki Tekko +3", augments={'Enh. "Ninja Tool Expertise" effect',}},
legs={ name="Mochi. Hakama +3", augments={'Enhances "Mijin Gakure" effect',}},
feet={ name="Mochi. Kyahan +3", augments={'Enh. Ninj. Mag. Acc/Cast Time Red.',}},
neck={ name="Ninja Nodowa +2", augments={'Path: A',}},
waist={ name="Sailfi Belt +1", augments={'Path: A',}},
left_ear="Odr Earring",
right_ear={ name="Lugra Earring +1", augments={'Path: A',}},
left_ring="Gere Ring",
right_ring="Regal Ring",
back={ name="Andartia's Mantle", augments={'DEX+20','Accuracy+20 Attack+20','DEX+10','Weapon skill damage +10%',}},
}
sets.midcast.bladeshun = {
ammo={ name="Seeth. Bomblet +1", augments={'Path: A',}},
head={ name="Adhemar Bonnet +1", augments={'STR+12','DEX+12','Attack+20',}},
body={ name="Adhemar Jacket +1", augments={'STR+12','DEX+12','Attack+20',}},
hands={ name="Adhemar Wrist. +1", augments={'STR+12','DEX+12','Attack+20',}},
legs={ name="Rao Haidate +1", augments={'STR+12','DEX+12','Attack+20',}},
feet={ name="Mochi. Kyahan +3", augments={'Enh. Ninj. Mag. Acc/Cast Time Red.',}},
neck="Fotia Gorget",
waist="Fotia Belt",
left_ear={ name="Moonshade Earring", augments={'Accuracy+4','TP Bonus +250',}},
right_ear={ name="Lugra Earring +1", augments={'Path: A',}},
left_ring="Ilabrat Ring",
right_ring="Regal Ring",
back={ name="Andartia's Mantle", augments={'DEX+20','Accuracy+20 Attack+20','DEX+10','"Dbl.Atk."+10','Damage taken-5%',}},
}
sets.midcast.bladeten = {
ammo={ name="Seeth. Bomblet +1", augments={'Path: A',}},
head="Hachiya Hatsu. +3",
body={ name="Adhemar Jacket +1", augments={'STR+12','DEX+12','Attack+20',}},
hands={ name="Mochizuki Tekko +3", augments={'Enh. "Ninja Tool Expertise" effect',}},
legs={ name="Mochi. Hakama +3", augments={'Enhances "Mijin Gakure" effect',}},
feet={ name="Mochi. Kyahan +3", augments={'Enh. Ninj. Mag. Acc/Cast Time Red.',}},
neck={ name="Ninja Nodowa +2", augments={'Path: A',}},
waist={ name="Sailfi Belt +1", augments={'Path: A',}},
left_ear={ name="Moonshade Earring", augments={'Accuracy+4','TP Bonus +250',}},
right_ear={ name="Lugra Earring +1", augments={'Path: A',}},
left_ring="Gere Ring",
right_ring="Regal Ring",
back={ name="Andartia's Mantle", augments={'STR+20','Accuracy+20 Attack+20','STR+10','Weapon skill damage +10%',}},
}
sets.midcast.bladekamu = {
ammo={ name="Seeth. Bomblet +1", augments={'Path: A',}},
head="Hachiya Hatsu. +3",
body="Ken. Samue +1",
hands={ name="Mochizuki Tekko +3", augments={'Enh. "Ninja Tool Expertise" effect',}},
legs={ name="Mochi. Hakama +3", augments={'Enhances "Mijin Gakure" effect',}},
feet={ name="Ryuo Sune-Ate +1", augments={'STR+12','DEX+12','Accuracy+20',}},
neck={ name="Ninja Nodowa +2", augments={'Path: A',}},
waist={ name="Sailfi Belt +1", augments={'Path: A',}},
left_ear="Mache Earring +1",
right_ear={ name="Lugra Earring +1", augments={'Path: A',}},
left_ring="Gere Ring",
right_ring="Epona's Ring",
back={ name="Andartia's Mantle", augments={'STR+20','Accuracy+20 Attack+20','STR+10','Weapon skill damage +10%',}},
}
sets.midcast.bladeku = {
ammo={ name="Seeth. Bomblet +1", augments={'Path: A',}},
head={ name="Adhemar Bonnet +1", augments={'STR+12','DEX+12','Attack+20',}},
body={ name="Adhemar Jacket +1", augments={'STR+12','DEX+12','Attack+20',}},
hands={ name="Mochizuki Tekko +3", augments={'Enh. "Ninja Tool Expertise" effect',}},
legs={ name="Mochi. Hakama +3", augments={'Enhances "Mijin Gakure" effect',}},
feet={ name="Mochi. Kyahan +3", augments={'Enh. Ninj. Mag. Acc/Cast Time Red.',}},
neck="Fotia Gorget",
waist="Fotia Belt",
left_ear="Mache Earring +1",
right_ear={ name="Lugra Earring +1", augments={'Path: A',}},
left_ring="Gere Ring",
right_ring="Regal Ring",
back={ name="Andartia's Mantle", augments={'STR+20','Accuracy+20 Attack+20','STR+10','Weapon skill damage +10%',}},
}
sets.midcast.bladechi = {
ammo={ name="Seeth. Bomblet +1", augments={'Path: A',}},
head={ name="Mochi. Hatsuburi +3", augments={'Enhances "Yonin" and "Innin" effect',}},
body="Nyame Mail",
hands="Nyame Gauntlets",
legs={ name="Mochi. Hakama +3", augments={'Enhances "Mijin Gakure" effect',}},
feet="Nyame Sollerets",
neck={ name="Ninja Nodowa +2", augments={'Path: A',}},
waist="Orpheus's Sash",
left_ear="Friomisi Earring",
right_ear={ name="Moonshade Earring", augments={'Accuracy+4','TP Bonus +250',}},
left_ring="Gere Ring",
right_ring="Epaminondas's Ring",
back={ name="Andartia's Mantle", augments={'STR+20','Mag. Acc+20 /Mag. Dmg.+20','STR+10','Weapon skill damage +10%',}},
}
sets.midcast.savageblade = {
ammo={ name="Seeth. Bomblet +1", augments={'Path: A',}},
head="Hachiya Hatsu. +3",
body={ name="Herculean Vest", augments={'Weapon skill damage +5%','STR+9','Attack+13',}},
hands={ name="Herculean Gloves", augments={'Accuracy+10','Weapon skill damage +5%','Attack+10',}},
legs={ name="Mochi. Hakama +3", augments={'Enhances "Mijin Gakure" effect',}},
feet={ name="Herculean Boots", augments={'Attack+9','Weapon skill damage +5%','AGI+8','Accuracy+13',}},
neck={ name="Ninja Nodowa +2", augments={'Path: A',}},
waist={ name="Sailfi Belt +1", augments={'Path: A',}},
left_ear={ name="Lugra Earring +1", augments={'Path: A',}},
right_ear={ name="Moonshade Earring", augments={'Accuracy+4','TP Bonus +250',}},
left_ring="Regal Ring",
right_ring="Epaminondas's Ring",
back={ name="Andartia's Mantle", augments={'STR+20','Mag. Acc+20 /Mag. Dmg.+20','STR+10','Weapon skill damage +10%',}},
}
sets.midcast.edge = {
ammo={ name="Seeth. Bomblet +1", augments={'Path: A',}},
head={ name="Mochi. Hatsuburi +3", augments={'Enhances "Yonin" and "Innin" effect',}},
body="Gyve Doublet",
hands={ name="Herculean Gloves", augments={'"Resist Silence"+8','"Mag.Atk.Bns."+27','Mag. Acc.+20 "Mag.Atk.Bns."+20',}},
legs={ name="Mochi. Hakama +3", augments={'Enhances "Mijin Gakure" effect',}},
feet={ name="Herculean Boots", augments={'Sklchn.dmg.+4%','"Mag.Atk.Bns."+23','Accuracy+9 Attack+9','Mag. Acc.+11 "Mag.Atk.Bns."+11',}},
neck={ name="Ninja Nodowa +2", augments={'Path: A',}},
waist="Orpheus's Sash",
left_ear="Friomisi Earring",
right_ear={ name="Moonshade Earring", augments={'Accuracy+4','TP Bonus +250',}},
left_ring="Gere Ring",
right_ring="Epaminondas's Ring",
back={ name="Andartia's Mantle", augments={'STR+20','Mag. Acc+20 /Mag. Dmg.+20','STR+10','Weapon skill damage +10%',}},
}
sets.midcast.evis = {
ammo="Yetshila +1",
head={ name="Adhemar Bonnet +1", augments={'STR+12','DEX+12','Attack+20',}},
body="Ken. Samue +1",
hands={ name="Ryuo Tekko +1", augments={'DEX+12','Accuracy+25','"Dbl.Atk."+4',}},
legs="Ken. Hakama +1",
feet={ name="Adhe. Gamashes +1", augments={'STR+12','DEX+12','Attack+20',}},
neck={ name="Ninja Nodowa +2", augments={'Path: A',}},
waist="Gerdr Belt +1",
left_ear="Odr Earring",
right_ear={ name="Lugra Earring +1", augments={'Path: A',}},
left_ring="Begrudging Ring",
right_ring="Regal Ring",
back={ name="Andartia's Mantle", augments={'AGI+20','Accuracy+20 Attack+20','AGI+10','Crit.hit rate+10',}},
}
sets.midcast.truestrike = {
ammo={ name="Seeth. Bomblet +1", augments={'Path: A',}},
head="Hachiya Hatsu. +3",
body={ name="Herculean Vest", augments={'Weapon skill damage +5%','STR+9','Attack+13',}},
hands={ name="Herculean Gloves", augments={'Accuracy+10','Weapon skill damage +5%','Attack+10',}},
legs={ name="Mochi. Hakama +3", augments={'Enhances "Mijin Gakure" effect',}},
feet={ name="Herculean Boots", augments={'Attack+9','Weapon skill damage +5%','AGI+8','Accuracy+13',}},
neck={ name="Ninja Nodowa +2", augments={'Path: A',}},
waist={ name="Sailfi Belt +1", augments={'Path: A',}},
left_ear={ name="Lugra Earring +1", augments={'Path: A',}},
right_ear={ name="Moonshade Earring", augments={'Accuracy+4','TP Bonus +250',}},
left_ring="Regal Ring",
right_ring="Epaminondas's Ring",
back={ name="Andartia's Mantle", augments={'STR+20','Mag. Acc+20 /Mag. Dmg.+20','STR+10','Weapon skill damage +10%',}},
}
-- This is where we will define our aftercast sets. These are sets of gear that get equiped AFTER the spell or ability is used. Normally this is used to put you back into your current TP set.
sets.aftercast = {}
sets.aftercast.dw40 = {
ammo="Date Shuriken",
head={ name="Ryuo Somen +1", augments={'HP+65','"Store TP"+5','"Subtle Blow"+8',}},
body="Ken. Samue +1",
hands="Ken. Tekko +1",
legs="Ken. Hakama +1",
feet="Ken. Sune-Ate +1",
neck={ name="Ninja Nodowa +2", augments={'Path: A',}},
waist="Shetal Stone",
left_ear="Eabani Earring",
right_ear="Suppanomimi",
left_ring="Gere Ring",
right_ring="Haverton Ring",
back={ name="Andartia's Mantle", augments={'AGI+20','Eva.+20 /Mag. Eva.+20','Evasion+10','"Dual Wield"+10','Evasion+15',}},
}
sets.aftercast.dw20 = {
ammo="Date Shuriken",
head="Ken. Jinpachi +1",
body="Ken. Samue +1",
hands="Ken. Tekko +1",
legs="Ken. Hakama +1",
feet="Ken. Sune-Ate +1",
neck={ name="Ninja Nodowa +2", augments={'Path: A',}},
waist="Shetal Stone",
left_ear="Eabani Earring",
right_ear="Suppanomimi",
left_ring="Gere Ring",
right_ring="Haverton Ring",
back={ name="Andartia's Mantle", augments={'DEX+20','Accuracy+20 Attack+20','Accuracy+10','"Store TP"+10','Damage taken-5%',}},
}
sets.aftercast.dw0 = {
ammo="Date Shuriken",
head="Ken. Jinpachi +1",
body="Ken. Samue +1",
hands="Ken. Tekko +1",
legs="Ken. Hakama +1",
feet="Ken. Sune-Ate +1",
neck={ name="Ninja Nodowa +2", augments={'Path: A',}},
waist={ name="Sailfi Belt +1", augments={'Path: A',}},
left_ear="Dedition Earring",
right_ear="Telos Earring",
left_ring="Gere Ring",
right_ring="Epona's Ring",
back={ name="Andartia's Mantle", augments={'DEX+20','Accuracy+20 Attack+20','Accuracy+10','"Store TP"+10','Damage taken-5%',}},
}
sets.aftercast.accuracy = {
ammo="Date Shuriken",
head="Ken. Jinpachi +1",
body="Ken. Samue +1",
hands="Ken. Tekko +1",
legs="Ken. Hakama +1",
feet="Ken. Sune-Ate +1",
neck={ name="Ninja Nodowa +2", augments={'Path: A',}},
waist={ name="Kentarch Belt +1", augments={'Path: A',}},
left_ear="Mache Earring +1",
right_ear={ name="Domin. Earring +1", augments={'Path: A',}},
left_ring={ name="Cacoethic Ring +1", augments={'Path: A',}},
right_ring="Chirich Ring +1",
back={ name="Andartia's Mantle", augments={'DEX+20','Accuracy+20 Attack+20','Accuracy+10','"Store TP"+10','Damage taken-5%',}},
}
sets.aftercast.evasion = {
ammo="Yamarang",
head="Malignance Chapeau",
body="Malignance Tabard",
hands="Malignance Gloves",
legs="Malignance Tights",
feet="Malignance Boots",
neck={ name="Bathy Choker +1", augments={'Path: A',}},
waist="Svelt. Gouriz +1",
left_ear="Eabani Earring",
right_ear="Infused Earring",
left_ring="Vengeful Ring",
right_ring="Hizamaru Ring",
back={ name="Andartia's Mantle", augments={'AGI+20','Eva.+20 /Mag. Eva.+20','Evasion+10','"Dual Wield"+10','Evasion+15',}},
}
sets.aftercast.magiceva = {
ammo="Yamarang",
head="Malignance Chapeau",
body="Malignance Tabard",
hands="Malignance Gloves",
legs="Malignance Tights",
feet="Malignance Boots",
neck="Moonlight Necklace",
waist="Engraved Belt",
left_ear="Eabani Earring",
right_ear="Flashward Earring",
left_ring="Purity Ring",
right_ring="Vengeful Ring",
back={ name="Andartia's Mantle", augments={'MND+20','Eva.+20 /Mag. Eva.+20','Mag. Evasion+10','Enmity+10','Mag. Evasion+15',}},
}
sets.aftercast.magicdef = {
ammo="Staunch Tathlum +1",
head="Mpaca's Cap",
body="Mpaca's Doublet",
hands="Mpaca's Gloves",
legs="Mpaca's Hose",
feet="Mpaca's Boots",
neck={ name="Bathy Choker +1", augments={'Path: A',}},
waist="Engraved Belt",
left_ear="Eabani Earring",
right_ear={ name="Odnowa Earring +1", augments={'Path: A',}},
left_ring="Purity Ring",
right_ring="Defending Ring",
back={ name="Andartia's Mantle", augments={'HP+60','Eva.+20 /Mag. Eva.+20','Enmity+10','System: 1 ID: 640 Val: 4',}},
}
end
-----------------------------------------------------------------------------------
-- This is the precast section. It is used for things you want to happen before you start to start to use the ability or spell.
function precast(spell, act)
if spell.english:startswith('Utsusemi') then
if buffactive['Copy Image'] then
send_command('cancel 66')
elseif buffactive['Copy Image (2)'] then
send_command('cancel 444')
elseif buffactive['Copy Image (3)'] then
send_command('cancel 445')
elseif buffactive['Copy Image (4+)'] then
send_command('cancel 446')
end
end
if spell.english:startswith('Utsusemi') then
equip(sets.precast.utsusemi)
end
if spell.english:startswith('Monomi') then
equip (sets.precast.fc)
end
if spell.english:startswith('Tonko') then
equip (sets.precast.fc)
end
if spell.english:startswith('Gekka') then
equip (sets.precast.fc)
end
if spell.english:startswith('Yain') then
equip (sets.precast.fc)
end
if spell.english:startswith('Kakka') then
equip (sets.precast.fc)
end
if spell.english:startswith('Myoshu') then
equip (sets.precast.fc)
end
if spell.english:startswith('Migawari') then
equip (sets.precast.fc)
end
if spell.english:startswith('Yurin') then
equip (sets.precast.fc)
end
if spell.english:startswith('Dokumori') then
equip (sets.precast.fc)
end
if spell.english:startswith('Aisha') then
equip (sets.precast.fc)
end
if spell.english:startswith('Kurayami') then
equip (sets.precast.fc)
end
if spell.english:startswith('Hojo') then
equip (sets.precast.fc)
end
if spell.english:startswith('Jubaku') then
equip (sets.precast.fc)
end
if spell.english:startswith('Katon') then
equip(sets.precast.fc)
end
if spell.english:startswith('Hyoton') then
equip(sets.precast.fc)
end
if spell.english:startswith('Huton') then
equip(sets.precast.fc)
end
if spell.english:startswith('Doton') then
equip(sets.precast.fc)
end
if spell.english:startswith('Raiton') then
equip(sets.precast.fc)
end
if spell.english:startswith('Suiton') then
equip(sets.precast.fc)
end
if spell.type == "WhiteMagic" then
equip (sets.precast.fc)
end
if spell.type == "BlackMagic" then
equip (sets.precast.fc)
end
if spell.type == "Trust" then
equip(sets.precast.fc)
end
end
-----------------------------------------------------------------------------------
-- This is the midcast section. It is used to designate gear that you want on as the ability or spell is used.
function midcast(spell, act)
-- The below command is used to cancel old shadows if they can not be overwritten by the newly cased Utsusemi.
if spell.english:startswith('Utsusemi') then
equip(sets.precast.utsusemi)
end
if spell.english == "Provoke" then
equip (sets.midcast.enmity)
end
if spell.english == "Warcry" then
equip (sets.midcast.enmity)
end
if spell.english == "Animated Flourish" then
equip (sets.midcast.enmity)
end
if spell.english == "Violent Flourish" then
equip (sets.midcast.enfnin)
end
if spell.english:startswith('Curing') then
equip (sets.midcast.waltz)
end
if spell.english == "Divine Waltz" then
equip (sets.midcast.waltz)
end
if spell.english:startswith('Migawari') then
equip (sets.midcast.migawari)
end
if spell.english:startswith('Kurayami') then
equip (sets.midcast.enfnin)
end
if spell.english:startswith('Hojo') then
equip (sets.midcast.enfnin)
end
if spell.english:startswith('Jubaku') then
equip (sets.midcast.enfnin)
end
if spell.english:startswith('Aisha') then
equip (sets.midcast.enfnin)
end
if spell.english:startswith('Yurin') then
equip (sets.midcast.enfnin)
end
if spell.type == "WhiteMagic" then
equip (sets.midcast.enfnin)
end
if spell.type == "BlackMagic" then
equip (sets.midcast.enfnin)
end
if spell.english:startswith('Katon') then
set = sets.midcast
if set[mb_mode] then
set = set[mb_mode]
end
equip(set)
end
if spell.english:startswith('Hyoton') then
set = sets.midcast
if set[mb_mode] then
set = set[mb_mode]
end
equip(set)
end
if spell.english:startswith('Huton') then
set = sets.midcast
if set[mb_mode] then
set = set[mb_mode]
end
equip(set)
end
if spell.english:startswith('Doton') then
set = sets.midcast
if set[mb_mode] then
set = set[mb_mode]
end
equip(set)
end
if spell.english:startswith('Raiton') then
set = sets.midcast
if set[mb_mode] then
set = set[mb_mode]
end
equip(set)
end
if spell.english:startswith('Suiton')then
set = sets.midcast
if set[mb_mode] then
set = set[mb_mode]
end
equip(set)
end
if spell.english == "Blade: Hi" then
equip (sets.midcast.bladehi)
end
if spell.english == "Blade: Metsu" then
equip (sets.midcast.blademetsu)
end
if spell.english == "Blade: Shun" then
equip (sets.midcast.bladeshun)
end
if spell.english == "Blade: Ten" then
equip (sets.midcast.bladeten)
end
if spell.english == "Blade: Chi" then
equip (sets.midcast.bladechi)
end
if spell.english == "Blade: To" then
equip (sets.midcast.bladechi)
end
if spell.english == "Blade: Yu" then
equip (sets.midcast.bladechi)
end
if spell.english == "Blade: Kamu" then
equip (sets.midcast.bladechi)
end
if spell.english == "Blade: Teki" then
equip (sets.midcast.bladechi)
end
if spell.english == "Blade: Retsu" then
equip (sets.midcast.bladeten)
end
if spell.english == "Blade: Rin" then
equip (sets.midcast.bladeten)
end
if spell.english == "Blade: Jin" then
equip (sets.midcast.bladeten)
end
if spell.english == "Savage Blade" then
equip (sets.midcast.savageblade)
end
if spell.english == "Aeolian Edge" then
equip (sets.midcast.savageblade)
end
if spell.english == "Evisceration" then
equip (sets.midcast.evis)
end
if spell.english == "True Strike" then
equip (sets.midcast.truestrike)
end
if spell.english == "Tachi: Ageha" then
equip (sets.midcast.enfnin)
end
if spell.english == "Tachi: Kasha" then
equip (sets.midcast.savageblade)
end
if spell.english == "Tachi: Koki" then
equip (sets.midcast.bladechi)
end
if spell.english == "Tachi: Jinpu" then
equip (sets.midcast.bladeten)
end
if spell.english == "Tachi: Kagero" then
equip (sets.midcast.bladechi)
end
if spell.english == "Tachi:Goten" then
equip (sets.midcast.bladeten)
end
if spell.type == "Trust" then
equip(sets.precast.fc)
end
end
-----------------------------------------------------------------------------------
-- This section is the aftercast section that makes it so that after any of the above abilities you get put back into the correct gearset.
-- You can create tp_mode gearsets for ANY purpose. Just make sure you label them correctly. All must be in the sets.aftercast section. For instance sets.aftercast.dw40.
-- Don't forget to create a new gearset section defining the gear you want in it if you don't want to use my predefined sets. Ie create a gearset for sets.aftercast.storetp.
function aftercast(spell, act, spellMap, eventArgs)
set = sets.aftercast
if set[tp_mode] then
set = set[tp_mode]
end
equip(set)
end