-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathTristamgreen_DRG.lua
528 lines (465 loc) · 15.8 KB
/
Tristamgreen_DRG.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
------------
-- Utility functions specific to this job.
-------------------------------------------------------------------------------------------------------------------
require("common_gs_functions")
-- Define sets and vars used by this job file.
function get_sets()
sets.weapon = {
main = "Gungnir",
sub = "Pole Grip"
}
-- idle set
sets.idle = {
ammo = "Fenrir's Stone",
head = "Blood Mask",
body = "Hydra Mail +1",
hands = "Askar Manopolas",
legs = "Blood Cuisses",
feet = "Askar Gambieras",
neck = "Orochi Nodowa +1",
waist = "Wyrm Belt",
left_ear = "Ethereal Earring",
right_ear = "Novia Earring",
left_ring = "Patronus Ring",
right_ring = "Shadow Ring",
back = "Shadow Mantle"
}
sets.dayregen = {
waist = "Lycopodium Sash",
}
sets.callwyvern = {
head = "Wivre Mask +1",
body = "Askar Korazin",
hands = "Askar Manopolas",
legs = "Blood Cuisses",
feet = "Askar Gambieras",
neck = "Orochi Nodowa +1",
waist = "Wyrm Belt",
left_ear = "Triton Earring",
right_ear = "Triton Earring",
left_ring = "Patronus Ring",
right_ring = "Shadow Ring",
back = "Shadow Mantle"
}
-- fast cast set
sets.fastcast = {
main = "",
sub = "",
ammo = "Bibiki Seashell",
head = "Walahra Turban",
neck = "Evasion Torque",
left_ear = "Loquacious Earring",
right_ear = "",
body = "Blood Scale Mail",
hands = "Homam Manopolas",
left_ring = "Jelly Ring",
right_ring = "Defending Ring",
back = "Shadow Mantle",
waist = "Ninurta's Sash",
legs = "Homam Cosciales",
feet = "Drn. Greaves +1"
}
sets.Breath = {
main = "",
sub = "",
ammo = "Verthandi's Gem",
head = "Drachen Armet +1",
neck = "Bloodbead Gorget",
left_ear = "Harmonius Earring",
right_ear = "Harmonius Earring",
body = "Wyrm Mail +1",
hands = "Dusk Gloves +1",
left_ring = "Bloodbead Ring",
right_ring = "Bomb Queen Ring",
back = "Gigant Mantle",
waist = "Steppe Sash",
legs = "Dusk Trousers +1",
feet = "Homam Gambieras"
}
sets.Breath.Wyvern = {
body = "Wyvern Mail",
legs = "Drachen Brais +1",
feet = "Homam Gambieras",
neck = "Chanoix's Gorget",
hands = "Ostreger Mitts",
head = "Wyrm Armet +1",
ear1 = "Dragoon's Earring"
}
-- Hasted cast set
sets.recast = {
main = "Fenrir's Stone",
head = "Walahra Turban",
neck = "Evasion Torque",
left_ear = "Loquacious Earring",
right_ear = "",
body = "Wym. Mail +1",
hands = "Dusk Gloves +1",
left_ring = "Blitz Ring",
right_ring = "",
back = "",
waist = "Ninurta's Sash",
legs = "Homam Cosciales",
feet = "Homam Gambieras"
}
-- Full haste set
sets.Haste = {
main = "",
sub = "",
ammo = "Black Tathlum",
head = "Walahra Turban",
neck = "Love Torque",
left_ear = "Ethereal Earring",
right_ear = "Brutal Earring",
body = "Wym. Mail +1",
hands = "Homam Manopolas",
left_ring = "Rajas Ring",
right_ring = "Blitz Ring",
back = "Cuchulain's Mantle",
waist = "Ninurta's Sash",
legs = "Homam Cosciales",
feet = "Homam Gambieras"
}
-- Hybrid DD set
sets.Hybrid = {
main = "",
sub = "",
ammo = "Black Tathlum",
head = "Ace's Helm",
neck = "Love Torque",
left_ear = "Ethereal Earring",
right_ear = "Brutal Earring",
body = "Askar Korazin",
hands = "Homam Manopolas",
left_ring = "Rajas Ring",
right_ring = "Blitz Ring",
back = "Cuchulain's Mantle",
waist = "Ninurta's Sash",
legs = "Homam Cosciales",
feet = "Homam Gambieras"
}
sets.rosestrap = {
main = { name="Gungnir", augments={'Accuracy+15','Attack+15','"Triple Atk."+3',}},
sub = "Rose Strap",
ammo = "White Tathlum",
head = "Nocturnus Helm",
body = "Aurum Cuirass",
hands = "Homam Manopolas",
legs = "Homam Cosciales",
feet = "Homam Gambieras",
neck = "Love Torque",
waist = "Ninurta's Sash",
left_ear = "Ethereal Earring",
right_ear = "Brutal Earring",
left_ring = "Rajas Ring",
right_ring = "Blitz Ring",
back = "Cerb. Mantle +1"
}
-- Evasion set
sets.evasion = {
main = "",
sub = "",
ammo = "Fenrir's Stone",
head = "Wivre Mask +1",
neck = "Evasion Torque",
left_ear = "Novia Earring",
right_ear = "Triton Earring",
body = "Scorpion Harness +1",
hands = "Drn. Fng. Gnt. +1",
left_ring = "Wivre Ring +1",
right_ring = "Wivre Ring +1",
back = "Boxer's Mantle",
waist = "Steppe Sash",
legs = "Askar Dirs",
feet = "Wyrm Greaves +1"
}
-- HMP set
sets.hhp = {
body = "Wyvern Mail",
neck = "Grandiose Chain",
head = "Mirror Tiara",
hands = "Wym. Fng. Gnt. +1",
legs = "Wyrm Brais +1",
feet = "Wyrm Greaves +1",
left_ear = "Relaxing Earring",
right_ear = "Sanative Earring",
right_ring = "Celestial Ring",
left_ring = "Celestial Ring"
}
-------- WS and JA section ---------
-- Drakesbane set
sets.drakesbane = {
main = "",
sub = "",
ammo = "Black Tathlum",
head = "Hecatomb Cap +1",
neck = "Fotia Gorget",
left_ear = "Harmonius Earring",
right_ear = "Harmonius Earring",
body = "Nocturnus Mail",
hands = "Alkyoneus's Bracelets",
left_ring = "Rajas Ring",
right_ring = "Mars's Ring",
back = "Cerb. Mantle +1",
waist = "Warwolf Belt",
legs = "Hct. Subligar +1",
feet = "Hct. Leggings +1"
}
-- Geirskogul set
sets.geirskogul = {
main = "",
sub = "",
ammo = "Black Tathlum",
head = "Nocturnus Helm",
neck = "Fotia Gorget",
left_ear = "Assault Earring",
right_ear = "Harmonius Earring",
body = "Nocturnus Mail",
hands = "Hecatomb Mittens +1",
left_ring = "Rajas Ring",
right_ring = "Mars's Ring",
back = "Cerb. Mantle +1",
waist = "Warwolf Belt",
legs = "Hct. Subligar +1",
feet = "Hct. Leggings +1"
}
-- Generic WS set
sets.ws = {
main = "",
sub = "",
ammo = "Black Tathlum",
head = "Hecatomb Cap +1",
neck = "Fotia Gorget",
left_ear = "Harmonius Earring",
right_ear = "Harmonius Earring",
body = "Nocturnus Mail",
hands = "Alkyoneus's Bracelets",
left_ring = "Rajas Ring",
right_ring = "Mars's Ring",
back = "Cerb. Mantle +1",
waist = "Warwolf Belt",
legs = "Hct. Subligar +1",
feet = "Hct. Leggings +1"
}
-- Jump set
sets.Jump = {
ammo = "Bibiki Seashell",
head = "Nocturnus Helm",
neck = "Love Torque",
left_ear = "Assault Earring",
right_ear = "Brutal Earring",
body = "Conte Corazza",
hands = "Hecatomb Mittens +1",
left_ring = "Rajas Ring",
right_ring = "Corneus Ring",
back = "Cerb. Mantle +1",
waist = "Wyrm Belt",
legs = "Conte Cosciales",
feet = "Drn. Greaves +1"
}
-- Angon
sets.Angon = {
ammo = "Angon"
}
-- MP down set for job-change or GS-load initialization
sets.mpdown = {
left_ear = "Cassie Earring",
right_ear = "Intruder Earring",
left_ring = "Bloodbead Ring"
}
sets.Stoneskin = {
head = "Maat's Cap",
ammo = "Jasper Tathlum",
neck = "Stone Gorget",
left_ear = "Celestial Earring",
right_ear = "Celestial Earring",
body = "Blood Scale Mail",
hands = "Stone Mufflers",
left_ring = "Celestial Ring",
right_ring = "Celestial Ring",
back = "Merciful Cape",
waist = "Ninurta's Sash",
legs = "Homam Cosciales",
feet = "Homam Gambieras"
}
end
-- Handle equipping of idle set with/without Regen item(s), re-supply quiver
function equip_idle()
common_idle_equip()
if pet.isvalid then
equip({hands="Wym. Fng. Gnt. +1"})
end
end
-- Handle equipping auto-attacking mode sets (Fenrir's Earring equips during daytime)
function equip_Attackmode()
--if world.time <= 1080 and world.time >= 360 then
-- windower.add_to_chat(8,"[ (" .. player.equipment.main .. ") - [[- " .. mode .. " -]] mode is selected - Fenrir's Earring Activated!]")
-- equip(sets[mode],{left_ear="Fenrir's Earring"})
-- else
windower.add_to_chat(8,"[ (" .. player.equipment.main .. ") - [[- " .. mode .. " -]] mode is selected!]")
equip(sets[mode])
-- end
end
-- Equips the HMP+ set while resting
function equip_rest()
windower.add_to_chat(8,'[Knight of the Holy Crest, now at rest...]')
equip(sets.hhp)
end
function equip_ws(spell)
windower.add_to_chat(8,'[Weapon Skill]')
if spell.name == 'Drakesbane' then
equip(sets.drakesbane)
elseif spell.name == 'Geirskogul' then
equip(sets.geirskogul)
else
equip(sets.ws)
end
if world.time <= 1080 and world.time >= 360 then
windower.add_to_chat(8,"[- " .. spell.name .. " with Fenrir's Earring using " .. player.tp .. "TP -]")
equip({left_ear="Fenrir's Earring"})
else
windower.add_to_chat(8,"[- " .. spell.name .. " using " .. player.tp .. "TP -]")
end
end
--[[ ********************
Casting and WS functions
********************* --]]
------- Precase Section -------
function precast(spell, spellMap, action)
if spell.action_type == 'Magic' then
-- Cancel magic when it is not up yet
local spell_recasts = windower.ffxi.get_spell_recasts()
if spell_recasts[spell.recast_id] > 60 then -- 1s margin
add_to_chat(167,spell.english .. ' is still on cooldown!')
cancel_spell()
else
if spell.name == 'Stoneskin' then
windower.add_to_chat(8,'[Fast Cast]')
equip(sets.fastcast)
else
windower.add_to_chat(8,'[- Pre-Cast Set Active -]')
equip(sets.Breath)
end
end
-- Cancel status effects for spells that don't overwrite themselves
if spell.name == "Sneak" then send_command("cancel sneak") end
if spell.name == "Stoneskin" then send_command("wait 4;cancel stoneskin") end
if spell.name == "Reraise" then send_command("cancel reraise") end
if spell.name == "Blink" then send_command("wait 4;cancel blink") end
if spell.name == "Aquaveil" then send_command("wait 4;cancel aquaveil") end
end
if spell.english == 'Angon' then
windower.add_to_chat(8,"[- " .. spell.name .. " with " .. player.tp .. "TP -]")
equip(sets.Angon)
end
if spell.type == 'WeaponSkill' then
equip_ws(spell)
end
if spell.name == 'Ancient Circle' then
windower.add_to_chat(8,"[- No dragons allowed... -]")
equip(sets.Circle)
end
if spell.name == 'Spirit Link' then
windower.add_to_chat(8,'[- Hungry fella? There ya go! -]')
equip(sets.Spirit)
end
if spell.name:contains('Jump') then
if windower.ffxi.get_ability_recasts()[spell.recast_id] > 0 then
windower.add_to_chat(8,'[-Selected Jump is not ready for use!-]')
else
windower.add_to_chat(8,'[- UP! -]')
equip(sets.Jump)
if spell.name == 'High Jump' then
windower.add_to_chat(8,'[- HIGHER!! -]')
equip(sets.Jump,{legs="Wyrm Brais +1"})
end
end
end
end
------- Midcast Section -------
function midcast(spell)
if spell.action_type == 'Magic' then
if spell.name == 'Stoneskin' then
windower.add_to_chat(8,'[Stoneskin Midcast]')
equip(sets.Stoneskin)
else
windower.add_to_chat(8,'[Breath Activation]')
equip(sets.Breath)
end
end
end
function pet_midcast(spell)
if spell.name:contains('Breath') then
windower.add_to_chat(8,'[Breath Potency]')
equip(sets.Breath,sets.Breath.Wyvern)
send_command('gs disable all')
end
end
------- Aftercast Section -------
-- post-cast, return to idle
function aftercast(spell)
choose_set()
end
-- After pet breath
function pet_aftercast(spell)
send_command('gs enable all')
choose_set()
end
function status_change(new,old)
choose_set()
end
-- Main function that decides whether to equip engaged/idle/resting gear
function choose_set()
if player.status == "Engaged" then
equip_Attackmode(mode)
elseif player.status == "Resting" then
equip_rest()
else
equip_idle()
end
end
function buff_change(name,gain)
debuff_items()
end
-- Melee mode selectorizer --
function self_command(m)
-- mode selectors are run by the macro command /console gs c [modename]
-- modes included here are:
-- M+ cycles between Hybrid mode and Evasion mode.
-- fivehit toggles fivehit mode (never used, don't really need)
if m == "M+" then
if mode == "Hybrid" then
mode = "Evasion"
else
mode = "Hybrid"
end
windower.add_to_chat(8,'[Mode Selection: [[' .. mode .. ']]')
end
-- if m == "fivehit" then
-- if 5hit == false then
-- 5hit = true
-- windower.add_to_chat(8,'[5-hit: ON]')
-- choose_set()
-- else
-- ev = false
-- windower.add_to_chat(8,'[5-hit: OFF]')
-- choose_set()
-- end
-- end
end
-- **** Run once @ start ****
--Default attack mode:
mode = "Hybrid"
-- Evasion is off by default:
-- 5hit = false
-- Select default macro book on initial load or subjob change.
send_command('wait 1;input /lockstyleset 14; wait 1; gs equip mpdown; wait 1; gs equip idle; wait .1; gs equip weapon')
send_command('input /macro book 14; wait .5; input /u !myth')
if player.sub_job == "BLU" then
send_command('input /macro set 7; //asets removeall; wait 1; input //asets spellset dragoon_blusub')
elseif player.sub_job == "RDM" then
send_command('input /macro set 5')
elseif player.sub_job == "SAM" then
send_command('input /macro set 3')
else
send_command('input /macro set 1')
end