-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVarrout_RDM.lua
459 lines (396 loc) · 17.7 KB
/
Varrout_RDM.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
-------------------------------------------------------------------------------------------------------------------
-- Setup functions for this job. Generally should not be modified.
-------------------------------------------------------------------------------------------------------------------
-- Local Settings, setting the zones prior to use
toau_zones = S{
"Leujaoam Sanctum", -- Assault
"Mamool Ja Training Grounds", -- Assault
"Lebros Cavern", -- Assault
"Periqia", -- Assault
"Ilrusi Atoll", -- Assault
"Nyzul Isle", -- Assault
"Bhaflau Remnants", -- Salvage
"Arrapago Remnants", -- Salvage
"Silver Sea Remnants", -- Salvage
"Zhayolm Remnants" -- Salvage
}
enfeebling_int = S{
"Blind",
"Blind II",
"Poison",
"Poison II",
"Sleep",
"SLeep II",
"Sleepga",
"Break",
"Bind",
"Dispel",
"Gravity",
"Gravity II",
"Distract",
"Distract II",
"Distract III",
"Frazzle",
"Frazzle II",
"Frazzle III"
}
enfeebling_mnd = S{
"Slow",
"Slow II",
"Paralyze",
"Paralyze II",
"Dia",
"Dia II",
"Dia III",
"Diaga",
"Silence",
"Addle",
"Inundation"
}
-- Initialization function for this job file.
function get_sets()
mote_include_version = 2
-- Load and initialize the include file.
include('Mote-Include.lua')
include('common_lists.lua')
end
-- Setup vars that are user-independent. state.Buff vars initialized here will automatically be tracked.
function job_setup()
state.Buff.Saboteur = buffactive.saboteur or false
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('None', 'Normal')
-- state.HybridMode:options('Normal', 'PhysicalDef', 'MagicalDef')
-- state.CastingMode:options('Normal', 'Resistant')
-- state.IdleMode:options('Normal', 'PDT', 'MDT')
-- gear.default.obi_waist = "Sekhmet Corset"
select_default_macro_book()
state.CP = M(false, "CP Mode")
state.Dyna = M(false, "Dyna Mode")
send_command('bind @c gs c toggle CP')
send_command('bind @x gs c toggle Dyna')
end
function user_unload()
send_command('unbind @c')
send_command('unbind @x')
end
-- Define sets and vars used by this job file.
function init_gear_sets()
--------------------------------------
-- Start defining the sets
--------------------------------------
-- Toggle specific gear
sets.CP = { back={ name="Mecisto. Mantle",
augments={'Cap. Point+31%','INT+2','Attack+3','DEF+8',}},}
sets.JSENeck = { neck="Duelist's Torque"}
-- Precast Sets
-- Precast sets to enhance JAs
sets.precast.JA['Chainspell'] = {
body = "Vitiation Tabard"
}
-- Fast cast sets for spells
-- 80% Fast Cast (including trait) for all spells, plus 5% quick cast NEED TO RE-CALCULATE
-- No other FC sets necessary.
sets.precast.FC = {
main = "Boonwell Staff",
sub = "Ariesian Grip",
ammo = "Mana Ampulla",
head = "Atrophy Chapeau +2",
body = "Chelona Blazer",
hands = "Nares Cuffs",
legs = "Nisse Slacks",
feet = "Chelona Boots",
neck = "Eidolon Pendant +1",
waist = "Austerity Belt",
left_ear = { name = "Moonshade Earring",
augments = {'MP+25','Latent effect: "Refresh"+1',}},
right_ear = "Infused Earring",
left_ring = "Angha Ring",
right_ring = "Star Ring",
back = "Felicitas Cape",
}
sets.midcast.Cure = {
main = { name="Arka IV",
augments={'"Cure" potency +24%',}},
sub = "Enki Strap",
ammo = "Quartz Tathlum +1",
head = { name="Vanya Hood",
augments={'Healing magic skill +20','"Cure" spellcasting time -7%','Magic dmg. taken -3',}},
body = { name="Kaykaus Bliaut",
augments={'MP+60','"Cure" potency +5%','"Conserve MP"+6',}},
hands = { name="Chironic Gloves",
augments={'AGI+4','Crit.hit rate+1','"Refresh"+1','Accuracy+1 Attack+1',}},
legs = "Atrophy Tights +1",
feet = { name="Vanya Clogs",
augments={'Healing magic skill +20','"Cure" spellcasting time -7%','Magic dmg. taken -3',}},
neck = "Colossus's Torque",
waist = "Bishop's Sash",
left_ear = "Beatific Earring",
right_ear = "Mendi. Earring",
left_ring = "Janniston Ring",
right_ring = "Sirona's Ring",
back = "Altruistic Cape",
}
sets.midcast.Curaga = sets.midcast.Cure
-- sets.midcast.CureSelf = {ring1="Kunaji Ring",ring2="Asklepian Ring"}
sets.midcast['Enhancing Magic'] = {
main = "Bolelabunga",
sub = "Ammurapi Shield",
ammo = "Homiliary",
head = "Befouled Crown",
body = "Jhakri Robe +2",
hands = gear.RelicHands,
legs = { name = "Telchine Braconi",
augments = {'Enh. Mag. eff. dur. +9',}},
feet = gear.EmpyreanFeet,
neck = { name = "Duelist's Torque",
augments = {'Path: A',}},
waist = "Olympus Sash",
left_ear = "Mimir Earring",
right_ear = "Andoaa Earring",
left_ring = "Stikini Ring +1",
right_ring = "Stikini Ring",
back = { name = "Sucellos's Cape",
augments = {'MND+20','Mag. Acc+20 /Mag. Dmg.+20','Mag. Acc.+10','"Fast Cast"+10',}},
}
sets.midcast.Refresh = set_combine(sets.midcast['Enhancing Magic'], {
legs="Lethargy Fuseau +2"
})
sets.midcast.Stoneskin = set_combine(sets.midcast['Enhancing Magic'], {
neck = "Nodens Gorget",
waist = "Siegel Sash",
left_ear = "Earthcry Earring"
})
sets.midcast.Regen = set_combine(sets.midcast['Enhancing Magic'], {
main = "Bolelabunga"
})
-- sets.midcast['Enfeebling Magic'] = {
sets.midcast.enfeeblingBase = {
main = { name = "Mpaca's Staff",
augments = {'Path: A',}},
sub = "Enki Strap",
ammo = "Regal Gem",
head = { name = "Viti. Chapeau +1",
augments = {'Enfeebling Magic duration','Magic Accuracy',}},
body = "Atrophy Tabard +3",
hands = "Jhakri Cuffs +2",
legs = "Malignance Tights",
feet = { name = "Vitiation Boots +1",
augments = {'Immunobreak Chance',}},
neck = { name = "Duelist's Torque",
augments = {'Path: A',}},
waist = "Luminary Sash",
left_ear = "Vor Earring",
right_ear = "Snotra Earring",
left_ring = "Stikini Ring +1",
right_ring = "Stikini Ring",
back = { name = "Sucellos's Cape",
augments = {'MND+20','Mag. Acc+20 /Mag. Dmg.+20','Mag. Acc.+10','"Fast Cast"+10',}},
}
sets.midcast.enfeeblingMNDCape = {
back = { name = "Sucellos's Cape",
augments = {'MND+20','Mag. Acc+20 /Mag. Dmg.+20','Mag. Acc.+10','"Fast Cast"+10',}},
}
sets.midcast.enfeeblingINTCape = {
back = { name = "Sucellos's Cape",
augments = {'INT+20','Mag. Acc+20 /Mag. Dmg.+20','Mag. Acc.+10','"Mag.Atk.Bns."+10',}},
}
sets.midcast['Phalanx II'] = set_combine(sets.midcast['Enhancing Magic'], {hands = "Duelist's Gloves +2"})
sets.midcast['Elemental Magic'] = {
main = "Lehbrailg +2",
sub = "Zuuxowu Grip",
ammo = "Dosis Tathlum",
head = "Hagondes Hat",
neck = "Eddy Necklace",
ear1 = "Friomisi Earring",
ear2 = "Hecate's Earring",
body = "Hagondes Coat",
hands = "Yaoyotl Gloves",
ring1 = "Icesoul Ring",
ring2 = "Acumen Ring",
back = "Toro Cape",
waist = gear.ElementalObi,
legs = "Hagondes Pants",
feet = "Hagondes Sabots"
}
-- sets.midcast.Impact = set_combine(sets.midcast['Elemental Magic'], {head=empty,body="Twilight Cloak"})
sets.midcast['Dark Magic'] = {
main = "Lehbrailg +2",
sub = "Mephitis Grip",
ammo = "Kalboron Stone",
head = "Atrophy Chapeau +2",
neck = "Weike Torque",
ear1 = "Lifestorm Earring",
ear2 = "Psystorm Earring",
body = "Vanir Cotehardie",
hands = "Gendewitha Gages",
ring1 = "Prolix Ring",
ring2 = "Sangoma Ring",
back = "Refraction Cape",
waist = "Goading Belt",
legs = "Bokwus Slops",
feet = "Bokwus Boots"
}
--sets.midcast.Stun = set_combine(sets.midcast['Dark Magic'], {})
sets.midcast.Drain = set_combine(sets.midcast['Dark Magic'], {
ring1 = "Excelsis Ring",
waist = "Fucho-no-Obi"
})
sets.midcast.Aspir = sets.midcast.Drain
-- Sets for special buff conditions on spells.
-- sets.midcast.EnhancingDuration = {hands="Atrophy Gloves +1",back="Estoqueur's Cape",feet="Lethargy Houseaux"}
sets.buff.ComposureOther = {
head = "Lethargy Chappel",
body = "Lethargy Sayon",
hands = "Lethargy Gantherots",
legs = "Estoqueur's Fuseau +2",
feet = "Lethargy Houseaux"
}
sets.buff.Saboteur = {hands="Lethargy Gantherots"}
-- Sets to return to when not performing an action.
-- Resting sets
sets.resting = {
main="Boonwell Staff",
sub="Ariesian Grip",
ammo="Mana Ampulla",
head="Orvail Corona +1",
body="Chelona Blazer",
hands="Nares Cuffs",
legs="Nisse Slacks",
feet="Chelona Boots",
neck="Eidolon Pendant +1",
waist="Austerity Belt",
left_ear={ name="Moonshade Earring", augments={'MP+25','Latent effect: "Refresh"+1',}},
right_ear="Infused Earring",
left_ring="Angha Ring",
right_ring="Star Ring",
back="Felicitas Cape",
}
-- Idle sets
sets.idle = {
main = { name = "Mpaca's Staff",
augments = {'Path: A',}},
sub = "Enki Strap",
ammo = "Homiliary",
head = { name = "Viti. Chapeau +1",
augments = {'Enfeebling Magic duration','Magic Accuracy',}},
body = "Jhakri Robe +2",
hands = { name = "Chironic Gloves",
augments = {'Pet: MND+10','Attack+5','"Refresh"+2','Mag. Acc.+5 "Mag.Atk.Bns."+5',}},
legs = { name = "Chironic Hose",
augments = {'Accuracy+7','CHR+5','"Refresh"+2','Mag. Acc.+1 "Mag.Atk.Bns."+1',}},
feet = { name = "Chironic Slippers",
augments = {'Pet: DEX+15','VIT+8','"Refresh"+2','Accuracy+12 Attack+12',}},
neck = { name = "Loricate Torque +1",
augments = {'Path: A',}},
waist = "Fucho-no-Obi",
left_ear = { name = "Moonshade Earring",
augments = {'MP+25','Latent effect: "Refresh"+1',}},
right_ear = "Infused Earring",
left_ring = "Gurebu-Ogurebu's Ring",
right_ring = "Defending Ring",
back = "Solemnity Cape",
}
-- sets.idle.Town = {main="Bolelabunga",sub="Genbu's Shield",ammo="Impatiens",
-- head="Atrophy Chapeau +1",neck="Wiglen Gorget",ear1="Bloodgem Earring",ear2="Loquacious Earring",
-- body="Atrophy Tabard +1",hands="Atrophy Gloves +1",ring1="Sheltered Ring",ring2="Paguroidea Ring",
-- back="Shadow Mantle",waist="Flume Belt",legs="Crimson Cuisses",feet="Hagondes Sabots"}
-- sets.idle.Weak = {main="Bolelabunga",sub="Genbu's Shield",ammo="Impatiens",
-- head="Vitivation Chapeau",neck="Wiglen Gorget",ear1="Bloodgem Earring",ear2="Loquacious Earring",
-- body="Atrophy Tabard +1",hands="Serpentes Cuffs",ring1="Sheltered Ring",ring2="Paguroidea Ring",
-- back="Shadow Mantle",waist="Flume Belt",legs="Crimson Cuisses",feet="Hagondes Sabots"}
-- sets.idle.PDT = {main="Bolelabunga",sub="Genbu's Shield",ammo="Demonry Stone",
-- head="Gendewitha Caubeen +1",neck="Twilight Torque",ear1="Bloodgem Earring",ear2="Loquacious Earring",
-- body="Gendewitha Bliaut +1",hands="Gendewitha Gages",ring1="Defending Ring",ring2=gear.DarkRing.physical,
-- back="Shadow Mantle",waist="Flume Belt",legs="Osmium Cuisses",feet="Gendewitha Galoshes"}
-- sets.idle.MDT = {main="Bolelabunga",sub="Genbu's Shield",ammo="Demonry Stone",
-- head="Gendewitha Caubeen +1",neck="Twilight Torque",ear1="Bloodgem Earring",ear2="Loquacious Earring",
-- body="Gendewitha Caubeen +1",hands="Yaoyotl Gloves",ring1="Defending Ring",ring2="Shadow Ring",
-- back="Engulfer Cape",waist="Flume Belt",legs="Osmium Cuisses",feet="Gendewitha Galoshes"}
-- Defense sets
-- sets.defense.PDT = {
-- head="Atrophy Chapeau +1",neck="Twilight Torque",ear1="Bloodgem Earring",ear2="Loquacious Earring",
-- body="Hagondes Coat",hands="Gendewitha Gages",ring1="Defending Ring",ring2=gear.DarkRing.physical,
-- back="Shadow Mantle",waist="Flume Belt",legs="Hagondes Pants",feet="Gendewitha Galoshes"}
-- sets.defense.MDT = {ammo="Demonry Stone",
-- head="Atrophy Chapeau +1",neck="Twilight Torque",ear1="Bloodgem Earring",ear2="Loquacious Earring",
-- body="Atrophy Tabard +1",hands="Yaoyotl Gloves",ring1="Defending Ring",ring2="Shadow Ring",
-- back="Engulfer Cape",waist="Flume Belt",legs="Bokwus Slops",feet="Gendewitha Galoshes"}
-- sets.Kiting = {legs="Crimson Cuisses"}
sets.latent_refresh = {waist="Fucho-no-obi"}
sets.ToAU = {right_ring="Balrahn's Ring"}
end
-------------------------------------------------------------------------------------------------------------------
-- Job-specific hooks for standard casting events.
-------------------------------------------------------------------------------------------------------------------
-- Run after the default 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 spell.skill == 'Enfeebling Magic' then
add_to_chat(123, spell.name)
outputString = "Enfeebling: "
enfeebling_set = sets.midcast.enfeeblingBase
if enfeebling_int:contains(spell.name) then
-- outputString = outputString .. "INT Based"
enfeebling_set = set_combine(enfeebling_set, sets.midcast.enfeeblingINTCape)
else
-- outputString = outputString .. "MND Based"
enfeebling_set = set_combine(enfeebling_set, sets.midcast.enfeeblingMNDCape)
end
if state.Buff.Saboteur then
-- outputString = outputString .. " :: Saboteur Active"
enfeebling_set = set_combine(enfeebling_set, sets.buff.Saboteur)
end
windower.add_to_chat(8, outputString)
equip(enfeebling_set)
elseif spell.skill == 'Enhancing Magic' then
equip(sets.midcast.EnhancingDuration)
if buffactive.composure and spell.target.type == 'PLAYER' then
equip(sets.buff.ComposureOther)
end
-- elseif spellMap == 'Cure' and spell.target.type == 'SELF' then
-- equip(sets.midcast.CureSelf)
end
end
-------------------------------------------------------------------------------------------------------------------
-- User code that supplements standard library decisions.
-------------------------------------------------------------------------------------------------------------------
-- Modify the default idle set after it was constructed.
function customize_idle_set(idleSet)
if state.CP.current == 'on' then
equip(sets.CP)
disable('back')
else
enable('back')
end
if state.Dyna.current == 'on' then
equip(sets.JSENeck)
disable('neck')
else
enable('neck')
end
if player.mpp < 51 then
idleSet = set_combine(idleSet, sets.latent_refresh)
end
if toau_zones:contains(world.area) then
idleSet = set_combine(idleSet, sets.ToAU)
end
return idleSet
end
-- Set eventArgs.handled to true if we don't want the automatic display to be run.
function display_current_job_state(eventArgs)
display_current_caster_state()
eventArgs.handled = true
end
-------------------------------------------------------------------------------------------------------------------
-- Utility functions specific to this job.
-------------------------------------------------------------------------------------------------------------------
-- Select default macro book on initial load or subjob change.
function select_default_macro_book()
-- Default macro set/book
set_macro_page(1, 9)
end