Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -------------------------------------------------------------------------------------------------------------------
- -- 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()
- state.Buff['Sublimation: Activated'] = buffactive['Sublimation: Activated'] or false
- update_active_strategems()
- send_command('wait 6;input /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('None', 'Normal')
- state.CastingMode:options('Normal', 'Resistant')
- state.IdleMode:options('Normal', 'PDT')
- select_default_macro_book()
- end
- -- Define sets and vars used by this job file.
- function init_gear_sets()
- --------------------------------------
- -- Start defining the sets
- --------------------------------------
- -- Precast Sets
- -- Precast sets to enhance JAs
- sets.precast.JA['Tabula Rasa'] = {legs="Pedagogy Pants +3"}
- -- Fast cast sets for spells
- sets.precast.FC = {ammo="Sapience Orb",
- head={ name="Merlinic Hood", augments={'"Mag.Atk.Bns."+27','"Fast Cast"+6','MND+8',}},
- body={ name="Agwu's Robe", augments={'Path: A',}},
- hands={ name="Gende. Gages +1", augments={'Phys. dmg. taken -3%','Magic dmg. taken -2%','Song spellcasting time -5%',}},
- legs="Volte Brais",
- feet="Regal Pumps +1",
- neck="Warder's Charm +1",
- waist="Embla Sash",
- left_ear="Malignance Earring",
- right_ear="Loquac. Earring",
- left_ring="Kishar Ring",
- right_ring="Shneddick Ring",
- back={ name="Lugh's Cape", augments={'MND+20','Mag. Acc+20 /Mag. Dmg.+20','Mag. Acc.+10','"Fast Cast"+10','Phys. dmg. taken-10%',}},} --10
- 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, {})
- sets.precast.FC.Curaga = set_combine(sets.precast.FC, {})
- sets.precast.FC.Impact = set_combine(sets.precast.FC['Elemental Magic'], {head=empty,body="Twilight Cloak"})
- -- Midcast Sets
- sets.midcast.FastRecast = {ammo="Sapience Orb",
- head={ name="Merlinic Hood", augments={'"Mag.Atk.Bns."+27','"Fast Cast"+6','MND+8',}},
- body="Agwu's Robe",
- hands={ name="Gende. Gages +1", augments={'Phys. dmg. taken -3%','Magic dmg. taken -2%','Song spellcasting time -5%',}},
- legs="Volte Brais",
- feet="Regal Pumps +1",
- waist="Embla Sash",
- left_ear="Malignance Earring",
- right_ear="Loquac. Earring",
- left_ring="Kishar Ring",
- back={ name="Lugh's Cape", augments={'MND+20','Mag. Acc+20 /Mag. Dmg.+20','Mag. Acc.+10','"Fast Cast"+10','Phys. dmg. taken-10%',}},}
- sets.midcast.Cure = {head={ name="Kaykaus Mitra +1", augments={'MP+80','"Cure" spellcasting time -7%','Enmity-6',}},
- body={ name="Kaykaus Bliaut +1", augments={'MP+80','MND+12','Mag. Acc.+20',}},
- hands={ name="Kaykaus Cuffs", augments={'MP+60','MND+10','Mag. Acc.+15',}},
- legs="Acad. Pants +3",
- feet="Regal Pumps +1",
- neck="Nodens Gorget",
- waist="Gishdubar Sash",
- left_ear="Mendi. Earring",
- right_ear="Beatific Earring",
- left_ring="Naji's Loop",
- right_ring="Stikini Ring",
- back="Oretan. Cape +1",}
- sets.midcast.CureWithLightWeather = {head={ name="Kaykaus Mitra +1", augments={'MP+80','"Cure" spellcasting time -7%','Enmity-6',}},
- body={ name="Kaykaus Bliaut +1", augments={'MP+80','MND+12','Mag. Acc.+20',}},
- hands={ name="Kaykaus Cuffs", augments={'MP+60','MND+10','Mag. Acc.+15',}},
- legs="Acad. Pants +3",
- feet="Regal Pumps +1",
- neck="Nodens Gorget",
- waist="Gishdubar Sash",
- left_ear="Mendi. Earring",
- right_ear="Beatific Earring",
- left_ring="Naji's Loop",
- right_ring="Stikini Ring",
- back="Oretan. Cape +1",}
- sets.midcast.Curaga = set_combine(sets.midcast.Cure, {})
- sets.midcast.Regen = {main="Musa",
- sub="Enki Strap",
- head="Arbatel Bonnet +3",
- body={ name="Telchine Chas.", augments={'Enh. Mag. eff. dur. +10',}},
- hands="Arbatel bracers +3",
- legs={ name="Telchine Braconi", augments={'"Cure" potency +8%','Enh. Mag. eff. dur. +9',}},
- feet={ name="Telchine Pigaches", augments={'"Fast Cast"+4','Enh. Mag. eff. dur. +10',}},
- waist="Embla Sash",
- left_ring="Stikini Ring",
- right_ring="Stikini Ring",
- back="Bookworm's Cape"}
- sets.midcast.Cursna = {main={ name="Gada", augments={'Enh. Mag. eff. dur. +6','Mag. Acc.+13','"Mag.Atk.Bns."+7','DMG:+2',}},
- head={ name="Vanya Hood", augments={'Healing magic skill +20','"Cure" spellcasting time -7%','Magic dmg. taken -3',}},
- body={ name="Vanya Robe", augments={'Healing magic skill +20','"Cure" spellcasting time -7%','Magic dmg. taken -3',}},
- legs="Acad. Pants +3",
- feet={ name="Vanya Clogs", augments={'Healing magic skill +20','"Cure" spellcasting time -7%','Magic dmg. taken -3',}},
- neck="Debilis Medallion",
- waist="Gishdubar Sash",
- left_ear="Beatific Earring",
- left_ring="Menelaus's Ring",
- right_ring="Haoma's Ring",
- back="Oretan. Cape +1",}
- sets.midcast.Erase = set_combine(sets.midcast.FastRecast, {})
- sets.midcast['Enhancing Magic'] = {main="Musa",
- sub="Enki Strap",
- head={ name="Telchine Cap", augments={'Enh. Mag. eff. dur. +9',}},
- body={ name="Telchine Chas.", augments={'Enh. Mag. eff. dur. +10',}},
- hands={ name="Telchine Gloves", augments={'Enh. Mag. eff. dur. +10',}},
- legs={ name="Telchine Braconi", augments={'"Cure" potency +8%','Enh. Mag. eff. dur. +9',}},
- feet={ name="Telchine Pigaches", augments={'"Fast Cast"+4','Enh. Mag. eff. dur. +10',}},
- waist="Embla Sash",
- left_ring="Stikini Ring",
- right_ring="Stikini Ring",
- back={ name="Lugh's Cape", augments={'MND+20','Mag. Acc+20 /Mag. Dmg.+20','Mag. Acc.+10','"Fast Cast"+10','Phys. dmg. taken-10%',}},}
- sets.midcast.Stoneskin = set_combine(sets.midcast['Enhancing Magic'], {waist="Siegel Sash", neck="Nodens Gorget"})
- sets.midcast.Aquaveil = set_combine(sets.midcast['Enhancing Magic'], {head="Amalric Coif +1", hands="Regal Cuffs"})
- sets.midcast.Refresh = set_combine(sets.midcast['Enhancing Magic'], {})
- sets.midcast.Storm = set_combine(sets.midcast['Enhancing Magic'], {})
- sets.midcast.Haste = set_combine(sets.midcast['Enhancing Magic'], {})
- sets.midcast.Flurry = set_combine(sets.midcast['Enhancing Magic'], {})
- sets.midcast.Embrava = set_combine(sets.midcast['Enhancing Magic'], {})
- sets.midcast.Protect = {main="Musa",
- sub="Enki Strap",
- head={ name="Telchine Cap", augments={'Enh. Mag. eff. dur. +9',}},
- body={ name="Telchine Chas.", augments={'Enh. Mag. eff. dur. +10',}},
- hands={ name="Telchine Gloves", augments={'Enh. Mag. eff. dur. +10',}},
- legs={ name="Telchine Braconi", augments={'"Cure" potency +8%','Enh. Mag. eff. dur. +9',}},
- feet={ name="Telchine Pigaches", augments={'"Fast Cast"+4','Enh. Mag. eff. dur. +10',}},
- waist="Embla Sash",
- left_ring="Sheltered Ring",
- right_ring="Stikini Ring",
- back={ name="Lugh's Cape", augments={'MND+20','Mag. Acc+20 /Mag. Dmg.+20','Mag. Acc.+10','"Fast Cast"+10','Phys. dmg. taken-10%',}},}
- sets.midcast.Protectra = set_combine(sets.midcast.Protect, {})
- sets.midcast.Shell = set_combine(sets.midcast.Protect, {})
- sets.midcast.Shellra = set_combine(sets.midcast.Protect, {})
- -- Custom spell classes
- sets.midcast.MndEnfeebles = {main={ name="Opashoro", priority=2},
- sub="Enki Strap",
- ammo={ name="Ghastly Tathlum +1", augments={'Path: A',}},
- head="Arbatel Bonnet +3",
- body="arbatel gown +3",
- hands="Regal Cuffs",
- legs="Arbatel Pants +3",
- feet="Arbatel Loafers +3",
- neck="Argute Stole +2",
- waist={ name="Obstin. Sash", augments={'Path: A',}},
- left_ear="Malignance Earring",
- right_ear="Crep. Earring",
- left_ring={ name="Metamor. Ring +1", augments={'Path: A',}},
- right_ring="Kishar Ring",
- back={ name="Lugh's Cape", augments={'MND+20','Mag. Acc+20 /Mag. Dmg.+20','Mag. Acc.+10','"Fast Cast"+10','Phys. dmg. taken-10%',}},}
- sets.midcast.IntEnfeebles = {main={ name="Opashoro", priority=2},
- sub="Enki Strap",
- ammo={ name="Ghastly Tathlum +1", augments={'Path: A',}},
- head="Arbatel Bonnet +3",
- body="arbatel gown +3",
- hands="Regal Cuffs",
- legs="Arbatel Pants +3",
- feet="Arbatel Loafers +3",
- neck="Argute Stole +2",
- waist={ name="Obstin. Sash", augments={'Path: A',}},
- left_ear="Malignance Earring",
- right_ear="Arbatel Earring +1",
- left_ring={ name="Metamor. Ring +1", augments={'Path: A',}},
- right_ring="Kishar Ring",
- back={ name="Lugh's Cape", augments={'INT+20','Mag. Acc+20 /Mag. Dmg.+20','INT+10','"Mag.Atk.Bns."+10','Phys. dmg. taken-10%',}},}
- sets.midcast.ElementalEnfeeble = set_combine(sets.midcast.IntEnfeebles, {})
- sets.midcast['Dark Magic'] = {main={ name="Opashoro", priority=2},
- sub="Enki Strap",
- ammo={ name="Ghastly Tathlum +1", augments={'Path: A',}},
- head="Arbatel Bonnet +3",
- body="Arbatel Gown +3",
- hands="Arbatel Bracers +3",
- legs="Arbatel Pants +3",
- feet="Arbatel Loafers +3",
- neck="Argute Stole +2",
- waist={ name="Obstin. Sash", augments={'Path: A',}},
- left_ear="Malignance Earring",
- right_ear={ name="Arbatel Earring +1", augments={'System: 1 ID: 1676 Val: 0','Mag. Acc.+13','Enmity-3',}},
- left_ring="Stikini Ring",
- right_ring="Stikini Ring",
- back={ name="Lugh's Cape", augments={'INT+20','Mag. Acc+20 /Mag. Dmg.+20','INT+10','"Mag.Atk.Bns."+10','Phys. dmg. taken-10%',}},}
- sets.midcast.Kaustra = {main={ name="Opashoro", priority=2},
- sub="Enki Strap",
- ammo={ name="Ghastly Tathlum +1", augments={'Path: A',}},
- head="Pixie Hairpin +1",
- body={ name="Agwu's Robe", augments={'Path: A',}},
- hands={ name="Agwu's Gages", augments={'Path: A',}},
- legs={ name="Agwu's Slops", augments={'Path: A',}},
- feet="Arbatel Loafers +3",
- neck="Argute Stole +2",
- waist="Skrymir Cord",
- left_ear="Regal Earring",
- right_ear="Malignance Earring",
- left_ring="Freke Ring",
- right_ring="Metamorph Ring +1",
- back={ name="Lugh's Cape", augments={'INT+20','Mag. Acc+20 /Mag. Dmg.+20','INT+10','"Mag.Atk.Bns."+10','Phys. dmg. taken-10%',}},}
- sets.midcast.Drain = {main={ name="Opashoro", priority=2},
- sub="Enki Strap",
- ammo={ name="Ghastly Tathlum +1", augments={'Path: A',}},
- head="Pixie Hairpin +1",
- body="Arbatel Gown +3",
- hands={ name="Agwu's Gages", augments={'Path: A',}},
- legs="Arbatel Pants +3",
- feet={ name="Agwu's Pigaches", augments={'Path: A',}},
- neck="Erra Pendant",
- waist="Fucho-no-Obi",
- left_ear="Malignance Earring",
- right_ear="Hirudinea Earring",
- left_ring="Evanescence Ring",
- right_ring="Archon Ring",
- back={ name="Lugh's Cape", augments={'INT+20','Mag. Acc+20 /Mag. Dmg.+20','INT+10','"Mag.Atk.Bns."+10','Phys. dmg. taken-10%',}},}
- sets.midcast.Aspir = set_combine(sets.midcast.Drain, {})
- sets.midcast.Stun = set_combine(sets.midcast.IntEnfeebles, {})
- sets.midcast.Stun.Resistant = set_combine(sets.midcast.Stun, {})
- sets.midcast['Absorb-TP'] = {main={ name="Opashoro", priority=2},
- sub="Enki Strap",
- ammo={ name="Ghastly Tathlum +1", augments={'Path: A',}},
- head="Arbatel Bonnet +3",
- body="Arbatel Gown +3",
- hands="Arbatel Bracers +3",
- legs="Pedagogy Pants +3",
- feet="Arbatel Loafers +3",
- neck="Argute Stole +2",
- waist={ name="Obstin. Sash", augments={'Path: A',}},
- left_ear="Malignance Earring",
- right_ear={ name="Arbatel Earring +1", augments={'System: 1 ID: 1676 Val: 0','Mag. Acc.+13','Enmity-3',}},
- left_ring="Stikini Ring",
- right_ring="Stikini Ring",
- back={ name="Lugh's Cape", augments={'INT+20','Mag. Acc+20 /Mag. Dmg.+20','INT+10','"Mag.Atk.Bns."+10','Phys. dmg. taken-10%',}},}
- -- Elemental Magic sets are default for handling low-tier nukes.
- sets.midcast['Elemental Magic'] = {main={ name="Opashoro", priority=2},
- sub="Enki Strap",
- ammo={ name="Ghastly Tathlum +1", augments={'Path: A',}},
- head={ name="Agwu's Cap", augments={'Path: A',}},
- body={ name="Agwu's Robe", augments={'Path: A',}},
- hands={ name="Agwu's Gages", augments={'Path: A',}},
- legs={ name="Agwu's Slops", augments={'Path: A',}},
- feet="Arbatel Loafers +3",
- neck="Argute Stole +2",
- waist="Skrymir Cord",
- left_ear="Regal Earring",
- right_ear="Malignance Earring",
- left_ring="Freke Ring",
- right_ring={ name="Metamor. Ring +1", augments={'Path: A',}},
- back={ name="Lugh's Cape", augments={'INT+20','Mag. Acc+20 /Mag. Dmg.+20','INT+10','"Mag.Atk.Bns."+10','Phys. dmg. taken-10%',}},}
- sets.midcast['Elemental Magic'].Resistant = {main={ name="Opashoro", priority=2},
- sub="Enki Strap",
- ammo={ name="Ghastly Tathlum +1", augments={'Path: A',}},
- head={ name="Agwu's Cap", augments={'Path: A',}},
- body="Arbatel Gown +3",
- hands={ name="Agwu's Gages", augments={'Path: A',}},
- legs="Arbatel Pants +3",
- feet="Arbatel Loafers +3",
- neck="Argute Stole +2",
- waist="Skrymir Cord",
- left_ear="Regal Earring",
- right_ear="Arbatel Earring +1",
- left_ring="Freke Ring",
- right_ring={ name="Metamor. Ring +1", augments={'Path: A',}},
- back={ name="Lugh's Cape", augments={'INT+20','Mag. Acc+20 /Mag. Dmg.+20','INT+10','"Mag.Atk.Bns."+10','Phys. dmg. taken-10%',}},}
- sets.midcast.Helix = set_combine(sets.midcast['Elemental Magic'], {right_ring="Mujin Band", right_ear="Arbatel Earring +1"})
- sets.midcast.DarkHelix = set_combine(sets.midcast.Helix, {head="Pixie Hairpin +1", left_ring="Archon Ring"})
- sets.midcast.Impact = {}
- -- Sets to return to when not performing an action.
- -- Resting sets
- sets.resting = {}
- -- Idle sets (default idle set not needed since the other three are defined, but leaving for testing purposes)
- sets.idle.Town = {main={ name="Opashoro", priority=2},
- sub="Enki Strap",
- ammo="Homiliary",
- head="Arbatel Bonnet +3",
- body="arbatel gown +3",
- hands={ name="Nyame Gauntlets", augments={'Path: A',}},
- legs="Volte Brais",
- feet={ name="Nyame Sollerets", augments={'Path: B',}},
- neck="Warder's Charm +1",
- waist="Carrier's Sash",
- left_ear="Etiolation Earring",
- right_ear="Infused Earring",
- left_ring="Defending Ring",
- right_ring="Shneddick Ring",
- back={ name="Lugh's Cape", augments={'INT+20','Mag. Acc+20 /Mag. Dmg.+20','INT+10','"Mag.Atk.Bns."+10','Phys. dmg. taken-10%',}},}
- sets.idle.Field = {main={ name="Opashoro", priority=2},
- sub="Enki Strap",
- ammo="Homiliary",
- head="Arbatel Bonnet +3",
- body="arbatel gown +3",
- hands={ name="Nyame Gauntlets", augments={'Path: A',}},
- legs="Volte Brais",
- feet={ name="Nyame Sollerets", augments={'Path: B',}},
- neck="Warder's Charm +1",
- waist="Carrier's Sash",
- left_ear="Etiolation Earring",
- right_ear="Infused Earring",
- left_ring="Defending Ring",
- right_ring="Shneddick Ring",
- back={ name="Lugh's Cape", augments={'INT+20','Mag. Acc+20 /Mag. Dmg.+20','INT+10','"Mag.Atk.Bns."+10','Phys. dmg. taken-10%',}},}
- sets.idle.Weak = {main={ name="Opashoro", priority=2},
- sub="Enki Strap",
- ammo="Homiliary",
- head="Arbatel Bonnet +3",
- body="arbatel gown +3",
- hands={ name="Nyame Gauntlets", augments={'Path: A',}},
- legs="Volte Brais",
- feet={ name="Nyame Sollerets", augments={'Path: B',}},
- neck="Warder's Charm +1",
- waist="Carrier's Sash",
- left_ear="Etiolation Earring",
- right_ear="Infused Earring",
- left_ring="Defending Ring",
- right_ring="Shneddick Ring",
- back={ name="Lugh's Cape", augments={'INT+20','Mag. Acc+20 /Mag. Dmg.+20','INT+10','"Mag.Atk.Bns."+10','Phys. dmg. taken-10%',}},}
- -- Defense sets
- sets.latent_refresh = {waist="Fucho-no-obi"}
- -- Engaged sets
- -- Variations for TP weapon and (optional) offense/defense modes. Code will fall back on previous
- -- sets if more refined versions aren't defined.
- -- If you create a set with both offense and defense modes, the offense mode should be first.
- -- EG: sets.engaged.Dagger.Accuracy.Evasion
- -- Normal melee group
- sets.engaged = {ammo="Oshasha's Treatise",
- head="Arbatel Bonnet +3",
- body={ name="Nyame Mail", augments={'Path: B',}},
- hands="Nyame Gauntlets",
- legs={ name="Nyame Flanchard", augments={'Path: B',}},
- feet="Arbatel Loafers +3",
- neck="Sanctity Necklace",
- waist="Cornelia's Belt",
- left_ear="Crep. Earring",
- right_ear="Telos Earring",
- left_ring="Lehko's Ring",
- right_ring="Chirich Ring +1",
- back={ name="Lugh's Cape", augments={'DEX+20','Accuracy+20 Attack+20','Accuracy+10','"Store TP"+10','Phys. dmg. taken-10%',}},}
- sets.precast.WS = {ammo="Sroda Tathlum",
- head={ name="Agwu's Cap", augments={'Path: A',}},
- body={ name="Nyame Mail", augments={'Path: B',}},
- hands="Nyame Gauntlets",
- legs={ name="Nyame Flanchard", augments={'Path: B',}},
- feet="Arbatel Loafers +3",
- neck="Sibyl Scarf",
- waist="Hachirin-no-Obi",
- left_ear="Regal Earring",
- right_ear={ name="Moonshade Earring", augments={'Attack+4','TP Bonus +250',}},
- left_ring={ name="Metamor. Ring +1", augments={'Path: A',}},
- right_ring="Freke Ring",
- back={ name="Lugh's Cape", augments={'INT+20','Mag. Acc+20 /Mag. Dmg.+20','INT+10','Weapon skill damage +10%','Phys. dmg. taken-10%',}},}
- sets.precast.WS['Cataclysm'] = {ammo="Sroda Tathlum",
- head="Pixie Hairpin +1",
- body={ name="Nyame Mail", augments={'Path: B',}},
- hands="Nyame Gauntlets",
- legs={ name="Nyame Flanchard", augments={'Path: B',}},
- feet="Arbatel Loafers +3",
- neck="Sibyl Scarf",
- waist="Hachirin-no-Obi",
- left_ear="Malignance Earring",
- right_ear={ name="Moonshade Earring", augments={'Attack+4','TP Bonus +250',}},
- left_ring="Epaminondas's Ring",
- right_ring="Archon Ring",
- back={ name="Lugh's Cape", augments={'INT+20','Mag. Acc+20 /Mag. Dmg.+20','INT+10','Weapon skill damage +10%','Phys. dmg. taken-10%',}},}
- sets.precast.WS['Omniscience'] = set_combine(sets.precast.WS['Cataclysm'], {right_ear="Regal Earring"})
- sets.precast.WS['Earth Crusher'] = {ammo="Sroda Tathlum",
- head={ name="Agwu's Cap", augments={'Path: A',}},
- body={ name="Nyame Mail", augments={'Path: B',}},
- hands="Nyame Gauntlets",
- legs={ name="Nyame Flanchard", augments={'Path: B',}},
- feet="Arbatel Loafers +3",
- neck="Sibyl Scarf",
- waist="Hachirin-no-Obi",
- left_ear="Regal Earring",
- right_ear={ name="Moonshade Earring", augments={'Attack+4','TP Bonus +250',}},
- left_ring={ name="Metamor. Ring +1", augments={'Path: A',}},
- right_ring="Freke Ring",
- back={ name="Lugh's Cape", augments={'INT+20','Mag. Acc+20 /Mag. Dmg.+20','INT+10','Weapon skill damage +10%','Phys. dmg. taken-10%',}},}
- sets.precast.WS['Oshala'] = {ammo="Oshasha's Treatise",
- head={ name="Nyame Helm", augments={'Path: B',}},
- body={ name="Nyame Mail", augments={'Path: B',}},
- hands="Nyame Gauntlets",
- legs={ name="Nyame Flanchard", augments={'Path: B',}},
- feet={ name="Nyame Sollerets", augments={'Path: B',}},
- neck="Rep. Plat. Medal",
- waist="Cornelia's Belt",
- left_ear="Ishvara Earring",
- right_ear={ name="Moonshade Earring", augments={'Attack+4','TP Bonus +250',}},
- left_ring="Shukuyu Ring",
- right_ring="Epaminondas's Ring",
- back={ name="Lugh's Cape", augments={'STR+20','Accuracy+20 Attack+20','STR+10','Weapon skill damage +10%','Phys. dmg. taken-10%',}},}
- sets.precast.WS['Retribution'] = set_combine(sets.precast.WS['Oshala'], {})
- -- Buff sets: Gear that needs to be worn to actively enhance a current player buff.
- sets.buff['Ebullience'] = {head="Arbatel Bonnet +3"}
- sets.buff['Rapture'] = {head="Arbatel Bonnet +3"}
- sets.buff['Perpetuance'] = {hands="Arbatel bracers +3"}
- sets.buff['Immanence'] = {hands="Arbatel bracers +3"}
- sets.buff['Penury'] = {}
- sets.buff['Parsimony'] = {}
- sets.buff['Celerity'] = {}
- sets.buff['Alacrity'] = {}
- sets.buff['Focalization'] = {head="Pedagogy Mortarboard +3"}
- sets.buff['Klimaform'] = {feet="Arbatel Loafers +3"}
- sets.buff.FullSublimation = {waist="Embla Sash",}
- sets.buff.PDTSublimation = {}
- sets.Obi = {waist="Hachirin-no-Obi"}
- end
- -------------------------------------------------------------------------------------------------------------------
- -- Job-specific hooks for standard casting events.
- -------------------------------------------------------------------------------------------------------------------
- -- Run after the general midcast() is done.
- function job_post_midcast(spell, action, spellMap, eventArgs)
- if spell.action_type == 'Magic' then
- apply_grimoire_bonuses(spell, action, spellMap, eventArgs)
- end
- if spell.skill == 'Elemental Magic' then
- if spellMap == "Helix" then
- equip(sets.midcast['Elemental Magic'])
- if spell.english:startswith('Nocto') then
- equip(sets.midcast.DarkHelix)
- else
- equip(sets.midcast.Helix)
- end
- if buffactive['Klimaform'] and spell.element == world.weather_element then
- equip(sets.buff['Klimaform'])
- 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)
- elseif (spell.element == world.day_element and spell.element == world.weather_element) and spellMap ~= 'Helix' then
- equip(sets.Obi)
- elseif (spell.element == world.day_element or spell.element == world.weather_element) and spellMap ~= 'Helix' then
- equip(sets.Obi)
- end
- end
- if spell.action_type == 'Magic' then
- apply_grimoire_bonuses(spell, action, spellMap, eventArgs)
- 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
- end
- -- Handle notifications of general user state change.
- function job_state_change(stateField, newValue, oldValue)
- if stateField == 'Offense Mode' then
- if newValue == 'Normal' then
- disable('main','sub','range')
- else
- enable('main','sub','range')
- end
- end
- end
- -------------------------------------------------------------------------------------------------------------------
- -- User code that supplements standard library decisions.
- -------------------------------------------------------------------------------------------------------------------
- -- 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' then
- return 'CureWithLightWeather'
- 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
- if state.IdleMode.value == 'Normal' then
- idleSet = set_combine(idleSet, sets.buff.FullSublimation)
- elseif state.IdleMode.value == 'PDT' then
- idleSet = set_combine(idleSet, sets.buff.PDTSublimation)
- end
- end
- if player.mpp < 51 then
- idleSet = set_combine(idleSet, sets.latent_refresh)
- end
- return idleSet
- end
- -- Called by the 'update' self-command.
- function job_update(cmdParams, eventArgs)
- if cmdParams[1] == 'user' and not (buffactive['light arts'] or buffactive['dark arts'] or
- buffactive['addendum: white'] or buffactive['addendum: black']) then
- if state.IdleMode.value == 'Stun' then
- send_command('@input /ja "Dark Arts" <me>')
- else
- send_command('@input /ja "Light Arts" <me>')
- end
- end
- update_active_strategems()
- update_sublimation()
- 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)
- display_current_caster_state()
- eventArgs.handled = true
- end
- -------------------------------------------------------------------------------------------------------------------
- -- User code that supplements self-commands.
- -------------------------------------------------------------------------------------------------------------------
- -- Called for direct player commands.
- function job_self_command(cmdParams, eventArgs)
- if cmdParams[1]:lower() == 'scholar' then
- handle_strategems(cmdParams)
- eventArgs.handled = true
- end
- end
- -------------------------------------------------------------------------------------------------------------------
- -- Utility functions specific to this job.
- -------------------------------------------------------------------------------------------------------------------
- -- 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
- state.Buff['Immanence'] = buffactive['Immanence'] or false
- state.Buff['Penury'] = buffactive['Penury'] or false
- state.Buff['Parsimony'] = buffactive['Parsimony'] or false
- state.Buff['Celerity'] = buffactive['Celerity'] or false
- state.Buff['Alacrity'] = buffactive['Alacrity'] or false
- state.Buff['Klimaform'] = buffactive['Klimaform'] or false
- end
- function update_sublimation()
- state.Buff['Sublimation: Activated'] = buffactive['Sublimation: Activated'] or false
- end
- -- Equip sets appropriate to the active buffs, relative to the spell being cast.
- function apply_grimoire_bonuses(spell, action, spellMap)
- if state.Buff.Perpetuance and spell.type =='WhiteMagic' and spell.skill == 'Enhancing Magic' then
- equip(sets.buff['Perpetuance'])
- end
- if state.Buff.Rapture and (spellMap == 'Cure' or spellMap == 'Curaga') then
- equip(sets.buff['Rapture'])
- end
- if (spell.skill == 'Elemental Magic' or spell.skill == 'Dark Magic') and spellMap ~= 'ElementalEnfeeble' then
- if state.Buff.Ebullience and spell.english ~= 'Impact' then
- equip(sets.buff['Ebullience'])
- end
- if state.Buff.Immanence then
- equip(sets.buff['Immanence'])
- end
- if state.Buff.Klimaform and spell.element == world.weather_element then
- equip(sets.buff['Klimaform'])
- end
- end
- if state.Buff.Penury then equip(sets.buff['Penury']) end
- if state.Buff.Parsimony then equip(sets.buff['Parsimony']) end
- if state.Buff.Celerity then equip(sets.buff['Celerity']) end
- if state.Buff.Alacrity then equip(sets.buff['Alacrity']) end
- end
- -- General handling of strategems in an Arts-agnostic way.
- -- Format: gs c scholar <strategem>
- function handle_strategems(cmdParams)
- -- cmdParams[1] == 'scholar'
- -- cmdParams[2] == strategem to use
- if not cmdParams[2] then
- add_to_chat(123,'Error: No strategem command given.')
- return
- end
- local strategem = cmdParams[2]:lower()
- if strategem == 'light' then
- if buffactive['light arts'] then
- send_command('input /ja "Addendum: White" <me>')
- elseif buffactive['addendum: white'] then
- add_to_chat(122,'Error: Addendum: White is already active.')
- else
- send_command('input /ja "Light Arts" <me>')
- end
- elseif strategem == 'dark' then
- if buffactive['dark arts'] then
- send_command('input /ja "Addendum: Black" <me>')
- elseif buffactive['addendum: black'] then
- add_to_chat(122,'Error: Addendum: Black is already active.')
- else
- send_command('input /ja "Dark Arts" <me>')
- end
- elseif buffactive['light arts'] or buffactive['addendum: white'] then
- if strategem == 'cost' then
- send_command('input /ja Penury <me>')
- elseif strategem == 'speed' then
- send_command('input /ja Celerity <me>')
- elseif strategem == 'aoe' then
- send_command('input /ja Accession <me>')
- elseif strategem == 'power' then
- send_command('input /ja Rapture <me>')
- elseif strategem == 'duration' then
- send_command('input /ja Perpetuance <me>')
- elseif strategem == 'accuracy' then
- send_command('input /ja Altruism <me>')
- elseif strategem == 'enmity' then
- send_command('input /ja Tranquility <me>')
- elseif strategem == 'skillchain' then
- add_to_chat(122,'Error: Light Arts does not have a skillchain strategem.')
- elseif strategem == 'addendum' then
- send_command('input /ja "Addendum: White" <me>')
- else
- add_to_chat(123,'Error: Unknown strategem ['..strategem..']')
- end
- elseif buffactive['dark arts'] or buffactive['addendum: black'] then
- if strategem == 'cost' then
- send_command('input /ja Parsimony <me>')
- elseif strategem == 'speed' then
- send_command('input /ja Alacrity <me>')
- elseif strategem == 'aoe' then
- send_command('input /ja Manifestation <me>')
- elseif strategem == 'power' then
- send_command('input /ja Ebullience <me>')
- elseif strategem == 'duration' then
- add_to_chat(122,'Error: Dark Arts does not have a duration strategem.')
- elseif strategem == 'accuracy' then
- send_command('input /ja Focalization <me>')
- elseif strategem == 'enmity' then
- send_command('input /ja Equanimity <me>')
- elseif strategem == 'skillchain' then
- send_command('input /ja Immanence <me>')
- elseif strategem == 'addendum' then
- send_command('input /ja "Addendum: Black" <me>')
- else
- add_to_chat(123,'Error: Unknown strategem ['..strategem..']')
- end
- else
- add_to_chat(123,'No arts has been activated yet.')
- end
- end
- -- Gets the current number of available strategems based on the recast remaining
- -- and the level of the sch.
- function get_current_strategem_count()
- -- returns recast in seconds.
- local allRecasts = windower.ffxi.get_ability_recasts()
- local stratsRecast = allRecasts[231]
- local maxStrategems = (player.main_job_level + 10) / 20
- local fullRechargeTime = 4*60
- local currentCharges = math.floor(maxStrategems - maxStrategems * stratsRecast / fullRechargeTime)
- return currentCharges
- end
- -- Select default macro book on initial load or subjob change.
- function select_default_macro_book()
- set_macro_page(1, 3)
- end
Advertisement
Add Comment
Please, Sign In to add comment