Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -------------------------------------------------------------------------------------------------------------------
- -- Setup functions for this job. Generally should not be modified.
- -------------------------------------------------------------------------------------------------------------------
- --[[
- Custom commands:
- ExtraSongsMode may take one of three values: None, Dummy, FullLength
- You can set these via the standard 'set' and 'cycle' self-commands. EG:
- gs c cycle ExtraSongsMode
- gs c set ExtraSongsMode Dummy
- The Dummy state will equip the bonus song instrument and ensure non-duration gear is equipped.
- The FullLength state will simply equip the bonus song instrument on top of standard gear.
- Simple macro to cast a dummy Daurdabla song:
- /console gs c set ExtraSongsMode Dummy
- /ma "Shining Fantasia" <me>
- To use a Terpander rather than Daurdabla, set the info.ExtraSongInstrument variable to
- 'Terpander', and info.ExtraSongs to 1.
- --]]
- -- 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.ExtraSongsMode = M{['description']='Extra Songs', 'None', 'Dummy', 'FullLength'}
- state.Buff['Pianissimo'] = buffactive['pianissimo'] or false
- -- For tracking current recast timers via the Timers plugin.
- custom_timers = {}
- 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', 'AM3', 'DT')
- state.CastingMode:options('Normal', 'Resistant')
- state.IdleMode:options('Normal', 'PDT')
- -- Adjust this if using the Terpander (new +song instrument)
- info.ExtraSongInstrument = {ranged="Daurdabla"}
- -- How many extra songs we can keep from Daurdabla/Terpander
- info.ExtraSongs = 2
- -- Set this to false if you don't want to use custom timers.
- state.UseCustomTimers = M(true, 'Use Custom Timers')
- send_command('wait 6;input /lockstyleset 2')
- select_default_macro_book()
- end
- -- Called when this job file is unloaded (eg: job change)
- function user_unload()
- send_command('unbind ^`')
- send_command('unbind !`')
- end
- -- Define sets and vars used by this job file.
- function init_gear_sets()
- --------------------------------------
- -- Start defining the sets
- --------------------------------------
- -- Precast Sets
- -- Fast cast sets for spells
- sets.precast.FC = {head="C. Palug Crown",
- body="Inyanga Jubbah +2",
- hands={ name="Gende. Gages +1", augments={'Phys. dmg. taken -3%','Magic dmg. taken -2%','Song spellcasting time -5%',}},
- legs="Volte Brais",
- feet="Telchine Pigaches",
- waist="Embla Sash",
- right_ear="Loquac. Earring",
- left_ear="Etiolation Earring",
- left_ring="Kishar Ring",
- back={ name="Intarabus's Cape", augments={'CHR+20','Mag. Acc+20 /Mag. Dmg.+20','Mag. Acc.+10','"Fast Cast"+10','Phys. dmg. taken-10%',}},}
- sets.precast.FC.Cure = set_combine(sets.precast.FC, {})
- sets.precast.FC.Stoneskin = set_combine(sets.precast.FC, {})
- sets.precast.FC['Enhancing Magic'] = set_combine(sets.precast.FC, {waist="Siegel Sash"})
- sets.precast.FC.BardSong = {
- head="Fili Calot +2",
- body="Inyanga Jubbah +2",
- hands={ name="Gende. Gages +1", augments={'Phys. dmg. taken -3%','Magic dmg. taken -2%','Song spellcasting time -5%',}},
- legs="Volte Brais",
- feet={ name="Bihu Slippers +3", augments={'Enhances "Nightingale" effect',}},
- waist="Embla Sash",
- right_ear="Loquac. Earring",
- left_ear="Etiolation Earring",
- left_ring="Kishar Ring",
- back={ name="Intarabus's Cape", augments={'CHR+20','Mag. Acc+20 /Mag. Dmg.+20','Mag. Acc.+10','"Fast Cast"+10','Phys. dmg. taken-10%',}},}
- sets.precast.FC.Daurdabla = set_combine(sets.precast.FC.BardSong, {range=info.ExtraSongInstrument})
- -- Precast sets to enhance JAs+
- sets.precast.JA.Nightingale = {feet="Bihu Slippers +3"}
- sets.precast.JA.Troubadour = {body="Bihu Jstcorps. +3"}
- sets.precast.JA['Soul Voice'] = {legs="Bihu Cannions +3"}
- -- Waltz set (chr and vit)
- sets.precast.Waltz = {}
- -- Weaponskill sets
- -- Default set for any weaponskill that isn't any more specifically defined
- sets.precast.WS = {range={ name="Linos", augments={'Accuracy+15','"Store TP"+4','STR+4 DEX+4',}},
- head="Nyame Helm",
- body={ name="Bihu Jstcorps. +3", augments={'Enhances "Troubadour" effect',}},
- hands="Nyame Gauntlets",
- legs="Nyame Flanchard",
- feet="Nyame Sollerets",
- neck="Bard's Charm +2",
- waist={ name="Sailfi Belt +1", augments={'Path: A',}},
- left_ear={ name="Moonshade Earring", augments={'Attack+4','TP Bonus +250',}},
- right_ear="Regal Earring",
- left_ring="Rufescent Ring",
- right_ring="Shukuyu Ring",
- back={ name="Intarabus's Cape", augments={'STR+20','Accuracy+20 Attack+20','STR+10','Weapon skill damage +10%','Phys. dmg. taken-10%',}},}
- -- Specific weaponskill sets. Uses the base set if an appropriate WSMod version isn't found.
- sets.precast.WS['Evisceration'] = {range={ name="Linos", augments={'Accuracy+15','"Store TP"+4','STR+4 DEX+4',}},
- head="Blistering Sallet +1",
- body={ name="Bihu Jstcorps. +3", augments={'Enhances "Troubadour" effect',}},
- hands={ name="Bihu Cuffs +3", augments={'Enhances "Con Brio" effect',}},
- legs={ name="Bihu Cannions +3", augments={'Enhances "Soul Voice" effect',}},
- feet="Lustratio Leggings +1",
- neck="Fotia Gorget",
- waist="Fotia Belt",
- left_ear={ name="Moonshade Earring", augments={'Attack+4','TP Bonus +250',}},
- right_ear="Ishvara Earring",
- left_ring="Petrov Ring",
- right_ring="Ilabrat Ring",
- back={ name="Intarabus's Cape", augments={'DEX+20','Accuracy+20 Attack+20','Accuracy+10','"Store TP"+10','Phys. dmg. taken-10%',}},}
- sets.precast.WS['Exenterator'] = {}
- sets.precast.WS["Rudra's Storm"] = {range={ name="Linos", augments={'Accuracy+15','"Store TP"+4','STR+4 DEX+4',}},
- head="Nyame Helm",
- body={ name="Nyame Mail", augments={'Path: B',}},
- hands="Nyame Gauntlets",
- legs="Nyame Flanchard",
- feet="Nyame Sollerets",
- neck={ name="Bard's Charm +2", augments={'Path: A',}},
- waist="Sailfi Belt +1",
- left_ear={ name="Moonshade Earring", augments={'Attack+4','TP Bonus +250',}},
- right_ear="Ishvara Earring",
- left_ring="Petrov Ring",
- right_ring="Ilabrat Ring",
- back={ name="Intarabus's Cape", augments={'STR+20','Accuracy+20 Attack+20','STR+10','Weapon skill damage +10%','Phys. dmg. taken-10%',}},}
- sets.precast.WS['Mordant Rime'] = {range={ name="Linos", augments={'Accuracy+15','"Store TP"+4','STR+4 DEX+4',}},
- head="Nyame Helm",
- body={ name="Bihu Jstcorps. +3", augments={'Enhances "Troubadour" effect',}},
- hands="Nyame Gauntlets",
- legs="Nyame Flanchard",
- feet="Nyame Sollerets",
- neck="Bard's Charm +2",
- waist="Sailfi Belt +1",
- left_ear="Regal Earring",
- right_ear="Ishvara Earring",
- left_ring="Metamorph Ring +1",
- right_ring="Ilabrat Ring",
- back={ name="Intarabus's Cape", augments={'CHR+20','Accuracy+20 Attack+20','CHR+10','Weapon skill damage +10%','Phys. dmg. taken-10%',}},}
- sets.precast.WS['Aeolian Edge'] = {range={ name="Linos", augments={'Accuracy+15','"Store TP"+4','STR+4 DEX+4',}},
- 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="Sibyl Scarf",
- waist="Eschan Stone",
- left_ear={ name="Moonshade Earring", augments={'Attack+4','TP Bonus +250',}},
- right_ear="Friomisi Earring",
- left_ring={ name="Metamor. Ring +1", augments={'Path: A',}},
- right_ring="Epaminondas's Ring",
- back={ name="Intarabus's Cape", augments={'STR+20','Accuracy+20 Attack+20','STR+10','Weapon skill damage +10%','Phys. dmg. taken-10%',}},}
- sets.precast.WS['Earth Crusher'] = {range={ name="Linos", augments={'Accuracy+15','"Store TP"+4','STR+4 DEX+4',}},
- 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="Sibyl Scarf",
- waist="Eschan Stone",
- left_ear={ name="Moonshade Earring", augments={'Attack+4','TP Bonus +250',}},
- right_ear="Friomisi Earring",
- left_ring={ name="Metamor. Ring +1", augments={'Path: A',}},
- right_ring="Epaminondas's Ring",
- back={ name="Intarabus's Cape", augments={'STR+20','Accuracy+20 Attack+20','STR+10','Weapon skill damage +10%','Phys. dmg. taken-10%',}},}
- sets.precast.WS['Rock Crusher'] = {range={ name="Linos", augments={'Accuracy+15','"Store TP"+4','STR+4 DEX+4',}},
- 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="Sibyl Scarf",
- waist="Eschan Stone",
- left_ear={ name="Moonshade Earring", augments={'Attack+4','TP Bonus +250',}},
- right_ear="Friomisi Earring",
- left_ring={ name="Metamor. Ring +1", augments={'Path: A',}},
- right_ring="Epaminondas's Ring",
- back={ name="Intarabus's Cape", augments={'STR+20','Accuracy+20 Attack+20','STR+10','Weapon skill damage +10%','Phys. dmg. taken-10%',}},}
- sets.precast.WS['Savage Blade'] = {range={ name="Linos", augments={'Accuracy+15','"Store TP"+4','STR+4 DEX+4',}},
- head="Nyame Helm",
- body="Nyame Mail",
- hands="Nyame Gauntlets",
- legs="Nyame Flanchard",
- feet="Nyame Sollerets",
- neck="Bard's Charm +2",
- waist={ name="Sailfi Belt +1", augments={'Path: A',}},
- left_ear={ name="Moonshade Earring", augments={'Attack+4','TP Bonus +250',}},
- right_ear="Regal Earring",
- left_ring="Rufescent Ring",
- right_ring="Shukuyu Ring",
- back={ name="Intarabus'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['Savage Blade'], {})
- sets.precast.WS['Cataclysm'] = {range={ name="Linos", augments={'Accuracy+15','"Store TP"+4','STR+4 DEX+4',}},
- head="Pixie Hairpin +1",
- 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="Sibyl Scarf",
- waist="Hachirin-no-Obi",
- left_ear={ name="Moonshade Earring", augments={'Attack+4','TP Bonus +250',}},
- right_ear="Regal Earring",
- left_ring="Archon Ring",
- right_ring="Epaminondas's Ring",
- back={ name="Intarabus's Cape", augments={'STR+20','Accuracy+20 Attack+20','STR+10','Weapon skill damage +10%','Phys. dmg. taken-10%',}},}
- sets.precast.WS['Sanguine Blade'] = {range={ name="Linos", augments={'Accuracy+15','"Store TP"+4','STR+4 DEX+4',}},
- head="Pixie Hairpin +1",
- 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="Sibyl Scarf",
- waist="Hachirin-no-Obi",
- left_ear={ name="Moonshade Earring", augments={'Attack+4','TP Bonus +250',}},
- right_ear="Regal Earring",
- left_ring="Archon Ring",
- right_ring="Epaminondas's Ring",
- back={ name="Intarabus's Cape", augments={'STR+20','Accuracy+20 Attack+20','STR+10','Weapon skill damage +10%','Phys. dmg. taken-10%',}},}
- -- Midcast Sets
- -- General set for recast times.
- sets.midcast.FastRecast = {head="C. Palug Crown",
- body="Inyanga Jubbah +2",
- hands={ name="Gende. Gages +1", augments={'Phys. dmg. taken -3%','Magic dmg. taken -2%','Song spellcasting time -5%',}},
- legs="Volte Brais",
- feet="Telchine Pigaches",
- waist="Embla Sash",
- right_ear="Loquac. Earring",
- left_ear="Etiolation Earring",
- left_ring="Kishar Ring",
- back={ name="Intarabus's Cape", augments={'CHR+20','Mag. Acc+20 /Mag. Dmg.+20','Mag. Acc.+10','"Fast Cast"+10','Phys. dmg. taken-10%',}},}
- -- Gear to enhance certain classes of songs. No instruments added here since Gjallarhorn is being used.
- sets.midcast.Ballad = {legs="Fili Rhingrave +2"}
- sets.midcast.Lullaby = {hands="Brioso Cuffs +3"}
- sets.midcast.AOELullaby = {ranged="Daurdabla", hands="Brioso Cuffs +3"}
- sets.midcast.Madrigal = {head="Fili Calot +2", back={ name="Intarabus's Cape", augments={'CHR+20','Mag. Acc+20 /Mag. Dmg.+20','Mag. Acc.+10','"Fast Cast"+10','Phys. dmg. taken-10%',}},}
- sets.midcast.March = {hands="Fili Manchettes +2"}
- sets.midcast.HonorMarch = {ranged="Marsyas", hands="Fili Manchettes +2"}
- sets.midcast.Minuet = {body="Fili Hongreline +2"}
- sets.midcast.Etude = {head="Mousai Turban +1"}
- sets.midcast.Minne = {legs="Mousai Seraweels +1"}
- sets.midcast.Paeon = {head="Brioso Roundlet +3"}
- sets.midcast.Carol = {hands="Mousai Gages"}
- sets.midcast.Mambo = {feet="Mousai Crackows +1"}
- sets.midcast["Sentinel's Scherzo"] = {feet="Fili Cothurnes +2"}
- sets.midcast['Magic Finale'] = {}
- sets.midcast.Threnody = {body="Mousai Manteel +1"}
- sets.midcast.Prelude = {back={ name="Intarabus's Cape", augments={'CHR+20','Mag. Acc+20 /Mag. Dmg.+20','Mag. Acc.+10','"Fast Cast"+10','Phys. dmg. taken-10%',}},}
- sets.midcast['Ltng. Threnody II'] = set_combine(sets.midcast.Threnody, {})
- sets.midcast.Mazurka = {info.ExtraSongInstrument}
- -- For song buffs (duration and AF3 set bonus)
- sets.midcast.SongEffect = {head="Fili Calot +2",
- body="Fili Hongreline +2",
- hands="Fili Manchettes +2",
- legs="Inyanga Shalwar +2",
- feet="Brioso Slippers +3",
- neck="Mnbw. Whistle +1",
- left_ring="Moonlight Ring",
- right_ring="Gelatinous Ring +1",
- back={ name="Intarabus's Cape", augments={'CHR+20','Mag. Acc+20 /Mag. Dmg.+20','Mag. Acc.+10','"Fast Cast"+10','Phys. dmg. taken-10%',}},}
- -- For song defbuffs (duration primary, accuracy secondary)
- sets.midcast.SongDebuff = {range="Gjallarhorn",
- head="Brioso Roundlet +3",
- body="Brioso Justau. +3",
- hands="Inyanga Dastanas +2",
- legs="Brioso Cannions +3",
- feet="Brioso Slippers +3",
- ring1="Stikini Ring",
- ring2="Stikini Ring",
- neck="Mnbw. Whistle +1",
- waist="Luminary Sash",
- left_ear="Regal Earring",
- right_ear="Crepuscular Earring",
- back={ name="Intarabus's Cape", augments={'CHR+20','Mag. Acc+20 /Mag. Dmg.+20','Mag. Acc.+10','"Fast Cast"+10','Phys. dmg. taken-10%',}},}
- -- For song defbuffs (accuracy primary, duration secondary)
- sets.midcast.ResistantSongDebuff = {range="Gjallarhorn",
- head="Brioso Roundlet +3",
- body="Brioso Justau. +3",
- hands="Inyanga Dastanas +2",
- legs="Brioso Cannions +3",
- feet="Brioso Slippers +3",
- ring1="Stikini Ring",
- ring2="Stikini Ring",
- neck="Mnbw. Whistle +1",
- waist="Luminary Sash",
- left_ear="Regal Earring",
- right_ear="Crepuscular Earring",
- back={ name="Intarabus's Cape", augments={'CHR+20','Mag. Acc+20 /Mag. Dmg.+20','Mag. Acc.+10','"Fast Cast"+10','Phys. dmg. taken-10%',}},}
- -- Song-specific recast reduction
- sets.midcast.SongRecast = {legs="Fili Rhingrave +2"}
- -- Other general spells and classes.
- 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="Kaykaus Tights",
- feet={ name="Vanya Clogs", augments={'Healing magic skill +20','"Cure" spellcasting time -7%','Magic dmg. taken -3',}},
- neck="Nodens Gorget",
- waist="Carrier's Sash",
- left_ear="Mendi. Earring",
- left_ring="Menelaus's Ring",
- right_ring="Haoma's Ring",}
- sets.midcast.Curaga = set_combine(sets.midcast.Cure, {})
- sets.midcast.Stoneskin = {neck="Nodens Gorget",
- waist="Siegel Sash"}
- sets.midcast.Haste = {sub="Ammurapi Shield",
- head="Telchine Cap",
- body="Telchine Chas.",
- hands="Telchine Gloves",
- legs="Telchine Braconi",}
- sets.midcast.Flurry = {sub="Ammurapi Shield",
- head="Telchine Cap",
- body="Telchine Chas.",
- hands="Telchine Gloves",
- legs="Telchine Braconi",}
- sets.midcast.Cursna = {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',}},
- hands="Inyan. Dastanas +2",
- 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="Mendi. Earring",
- left_ring="Menelaus's Ring",
- right_ring="Haoma's Ring",
- back="Oretan. Cape +1",}
- -- 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 = {
- head="Nyame Helm",
- body="Nyame Mail",
- hands="Nyame Gauntlets",
- legs="Nyame Flanchard",
- feet="Fili Cothurnes +2",
- neck={ name="Bard's Charm +2", augments={'Path: A',}},
- waist="Carrier's Sash",
- left_ear="Etiolation Earring",
- right_ear="Infused Earring",
- left_ring="Fortified Ring",
- right_ring="Defending Ring",
- back={ name="Intarabus's Cape", augments={'DEX+20','Accuracy+20 Attack+20','Accuracy+10','"Store TP"+10','Phys. dmg. taken-10%',}},}
- sets.idle.PDT = {head="Nyame Helm",
- body="Nyame Mail",
- hands="Nyame Gauntlets",
- legs="Nyame Flanchard",
- feet="Fili Cothurnes +2",
- neck={ name="Bard's Charm +2", augments={'Path: A',}},
- waist="Carrier's Sash",
- left_ear="Etiolation Earring",
- right_ear="Infused Earring",
- left_ring="Fortified Ring",
- right_ring="Defending Ring",
- back={ name="Intarabus's Cape", augments={'DEX+20','Accuracy+20 Attack+20','Accuracy+10','"Store TP"+10','Phys. dmg. taken-10%',}},}
- sets.idle.Town = {
- head="Nyame Helm",
- body="Nyame Mail",
- hands="Nyame Gauntlets",
- legs="Nyame Flanchard",
- feet="Fili Cothurnes +2",
- neck={ name="Bard's Charm +2", augments={'Path: A',}},
- waist="Carrier's Sash",
- left_ear="Etiolation Earring",
- right_ear="Infused Earring",
- left_ring="Fortified Ring",
- right_ring="Defending Ring",
- back={ name="Intarabus's Cape", augments={'DEX+20','Accuracy+20 Attack+20','Accuracy+10','"Store TP"+10','Phys. dmg. taken-10%',}},}
- sets.idle.Weak = set_combine(sets.idle, {})
- -- Defense sets
- sets.defense.PDT = {}
- sets.defense.MDT = {}
- sets.Kiting = {feet="Fili Cothurnes +2"}
- sets.latent_refresh = {}
- -- 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
- -- Basic set for if no TP weapon is defined.
- sets.engaged = {range={ name="Linos", augments={'Accuracy+14','"Store TP"+3','Quadruple Attack +3',}},
- head={ name="Bunzi's Hat", augments={'Path: A',}},
- body="Ashera Harness",
- hands={ name="Bunzi's Gloves", augments={'Path: A',}},
- legs="Volte Tights",
- feet="Volte Spats",
- neck={ name="Bard's Charm +2", augments={'Path: A',}},
- waist="Windbuffet Belt +1",
- left_ear="Telos Earring",
- right_ear="Crep. Earring",
- left_ring="Lehko's Ring",
- right_ring="Moonlight Ring",
- back={ name="Intarabus's Cape", augments={'DEX+20','Accuracy+20 Attack+20','Accuracy+10','"Dual Wield"+10','Damage taken-5%',}},}
- -- Set if AM up
- sets.engaged.AM3 = {range={ name="Linos", augments={'Accuracy+14','"Store TP"+3','Quadruple Attack +3',}},
- head={ name="Bunzi's Hat", augments={'Path: A',}},
- body="Ashera Harness",
- hands={ name="Bunzi's Gloves", augments={'Path: A',}},
- legs="Volte Tights",
- feet="Volte Spats",
- neck={ name="Bard's Charm +2", augments={'Path: A',}},
- waist="Windbuffet Belt +1",
- left_ear="Telos Earring",
- right_ear="Crep. Earring",
- left_ring="Lehko's Ring",
- right_ring="Moonlight Ring",
- back={ name="Intarabus's Cape", augments={'DEX+20','Accuracy+20 Attack+20','Accuracy+10','"Dual Wield"+10','Damage taken-5%',}},}
- sets.engaged.DT = {range={ name="Linos", augments={'Accuracy+14','"Store TP"+3','Quadruple Attack +3',}},
- head={ name="Bunzi's Hat", augments={'Path: A',}},
- body="Ashera Harness",
- hands={ name="Bunzi's Gloves", augments={'Path: A',}},
- legs="Volte Tights",
- feet="Nyame Sollerets",
- neck={ name="Bard's Charm +2", augments={'Path: A',}},
- waist="Windbuffet Belt +1",
- left_ear="Telos Earring",
- right_ear="Crep. Earring",
- left_ring="Lehko's Ring",
- right_ring="Moonlight Ring",
- back={ name="Intarabus's Cape", augments={'DEX+20','Accuracy+20 Attack+20','Accuracy+10','"Store TP"+10','Phys. dmg. taken-10%',}},}
- end
- -------------------------------------------------------------------------------------------------------------------
- -- Job-specific hooks for standard casting events.
- -------------------------------------------------------------------------------------------------------------------
- -- Set eventArgs.handled to true if we don't want any automatic gear equipping to be done.
- -- Set eventArgs.useMidcastGear to true if we want midcast gear equipped on precast.
- function job_precast(spell, action, spellMap, eventArgs)
- if spell.type == 'BardSong' then
- -- Auto-Pianissimo
- if ((spell.target.type == 'PLAYER' and not spell.target.charmed) or (spell.target.type == 'NPC' and spell.target.in_party)) and
- not state.Buff['Pianissimo'] then
- local spell_recasts = windower.ffxi.get_spell_recasts()
- if spell_recasts[spell.recast_id] < 2 then
- send_command('@input /ja "Pianissimo" <me>; wait 1.5; input /ma "'..spell.name..'" '..spell.target.name)
- eventArgs.cancel = true
- return
- end
- end
- end
- end
- function job_post_precast(spell, action, spellMap, eventArgs)
- if spell.name == 'Honor March' then
- equip({ranged="Marsyas"})
- end
- end
- -- Set eventArgs.handled to true if we don't want any automatic gear equipping to be done.
- function job_midcast(spell, action, spellMap, eventArgs)
- if spell.action_type == 'Magic' then
- if spell.type == 'BardSong' then
- -- layer general gear on first, then let default handler add song-specific gear.
- local generalClass = get_song_class(spell)
- if generalClass and sets.midcast[generalClass] then
- equip(sets.midcast[generalClass])
- end
- end
- end
- end
- function job_post_midcast(spell, action, spellMap, eventArgs)
- if spell.type == 'BardSong' then
- if state.ExtraSongsMode.value == 'FullLength' then
- equip(sets.midcast.Daurdabla)
- end
- state.ExtraSongsMode:reset()
- end
- if spell.name == 'Honor March' then
- equip(sets.midcast.HonorMarch)
- end
- if spell.name == 'Horde Lullaby' or spell.name == 'Horde Lullaby II' then
- equip(sets.midcast.AOELullaby)
- end
- end
- -- Set eventArgs.handled to true if we don't want automatic gear equipping to be done.
- function job_aftercast(spell, action, spellMap, eventArgs)
- if spell.type == 'BardSong' and not spell.interrupted then
- if spell.target and spell.target.type == 'SELF' then
- adjust_timers(spell, spellMap)
- end
- end
- end
- -------------------------------------------------------------------------------------------------------------------
- -- Job-specific hooks for non-casting events.
- -------------------------------------------------------------------------------------------------------------------
- -- 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','ammo')
- else
- enable('main','sub','ammo')
- end
- end
- end
- -------------------------------------------------------------------------------------------------------------------
- -- User code that supplements standard library decisions.
- -------------------------------------------------------------------------------------------------------------------
- -- Modify the default idle set after it was constructed.
- function customize_idle_set(idleSet)
- if player.mpp < 51 then
- idleSet = set_combine(idleSet, sets.latent_refresh)
- end
- return idleSet
- end
- -- Function to display the current relevant user state when doing an update.
- function display_current_job_state(eventArgs)
- display_current_caster_state()
- eventArgs.handled = true
- end
- -------------------------------------------------------------------------------------------------------------------
- -- Utility functions specific to this job.
- -------------------------------------------------------------------------------------------------------------------
- -- Determine the custom class to use for the given song.
- function get_song_class(spell)
- -- Can't use spell.targets:contains() because this is being pulled from resources
- if set.contains(spell.targets, 'Enemy') then
- if state.CastingMode.value == 'Resistant' then
- return 'ResistantSongDebuff'
- else
- return 'SongDebuff'
- end
- elseif state.ExtraSongsMode.value == 'Dummy' then
- return 'DaurdablaDummy'
- else
- return 'SongEffect'
- end
- end
- -- Function to create custom buff-remaining timers with the Timers plugin,
- -- keeping only the actual valid songs rather than spamming the default
- -- buff remaining timers.
- function adjust_timers(spell, spellMap)
- if state.UseCustomTimers.value == false then
- return
- end
- local current_time = os.time()
- -- custom_timers contains a table of song names, with the os time when they
- -- will expire.
- -- Eliminate songs that have already expired from our local list.
- local temp_timer_list = {}
- for song_name,expires in pairs(custom_timers) do
- if expires < current_time then
- temp_timer_list[song_name] = true
- end
- end
- for song_name,expires in pairs(temp_timer_list) do
- custom_timers[song_name] = nil
- end
- local dur = calculate_duration(spell.name, spellMap)
- if custom_timers[spell.name] then
- -- Songs always overwrite themselves now, unless the new song has
- -- less duration than the old one (ie: old one was NT version, new
- -- one has less duration than what's remaining).
- -- If new song will outlast the one in our list, replace it.
- if custom_timers[spell.name] < (current_time + dur) then
- send_command('timers delete "'..spell.name..'"')
- custom_timers[spell.name] = current_time + dur
- send_command('timers create "'..spell.name..'" '..dur..' down')
- end
- else
- -- Figure out how many songs we can maintain.
- local maxsongs = 2
- if player.equipment.range == info.ExtraSongInstrument then
- maxsongs = maxsongs + info.ExtraSongs
- end
- if buffactive['Clarion Call'] then
- maxsongs = maxsongs + 1
- end
- -- If we have more songs active than is currently apparent, we can still overwrite
- -- them while they're active, even if not using appropriate gear bonuses (ie: Daur).
- if maxsongs < table.length(custom_timers) then
- maxsongs = table.length(custom_timers)
- end
- -- Create or update new song timers.
- if table.length(custom_timers) < maxsongs then
- custom_timers[spell.name] = current_time + dur
- send_command('timers create "'..spell.name..'" '..dur..' down')
- else
- local rep,repsong
- for song_name,expires in pairs(custom_timers) do
- if current_time + dur > expires then
- if not rep or rep > expires then
- rep = expires
- repsong = song_name
- end
- end
- end
- if repsong then
- custom_timers[repsong] = nil
- send_command('timers delete "'..repsong..'"')
- custom_timers[spell.name] = current_time + dur
- send_command('timers create "'..spell.name..'" '..dur..' down')
- end
- end
- end
- end
- -- Function to calculate the duration of a song based on the equipment used to cast it.
- -- Called from adjust_timers(), which is only called on aftercast().
- function calculate_duration(spellName, spellMap)
- local mult = 1
- if player.equipment.range == 'Daurdabla' then mult = mult + 0.3 end -- change to 0.25 with 90 Daur
- if player.equipment.range == "Gjallarhorn" then mult = mult + 0.4 end -- change to 0.3 with 95 Gjall
- if player.equipment.main == "Carnwenhan" then mult = mult + 0.1 end -- 0.1 for 75, 0.4 for 95, 0.5 for 99/119
- if player.equipment.main == "Legato Dagger" then mult = mult + 0.05 end
- if player.equipment.sub == "Legato Dagger" then mult = mult + 0.05 end
- if player.equipment.neck == "Aoidos' Matinee" then mult = mult + 0.1 end
- if player.equipment.body == "Aoidos' Hngrln. +2" then mult = mult + 0.1 end
- if player.equipment.legs == "Mdk. Shalwar +1" then mult = mult + 0.1 end
- if player.equipment.feet == "Brioso Slippers +3" then mult = mult + 0.1 end
- if player.equipment.feet == "Brioso Slippers +3" then mult = mult + 0.11 end
- if spellMap == 'Paeon' and player.equipment.head == "Brioso Roundlet" then mult = mult + 0.1 end
- if spellMap == 'Paeon' and player.equipment.head == "Brioso Roundlet +3" then mult = mult + 0.1 end
- if spellMap == 'Madrigal' and player.equipment.head == "Fili Calot +2" then mult = mult + 0.1 end
- if spellMap == 'Minuet' and player.equipment.body == "Aoidos' Hngrln. +2" then mult = mult + 0.1 end
- if spellMap == 'March' and player.equipment.hands == 'Ad. Mnchtte. +2' then mult = mult + 0.1 end
- if spellMap == 'Ballad' and player.equipment.legs == "Fili Rhingrave +2" then mult = mult + 0.1 end
- if spellName == "Sentinel's Scherzo" and player.equipment.feet == "Fili Cothurnes +2" then mult = mult + 0.1 end
- if buffactive.Troubadour then
- mult = mult*2
- end
- if spellName == "Sentinel's Scherzo" then
- if buffactive['Soul Voice'] then
- mult = mult*2
- elseif buffactive['Marcato'] then
- mult = mult*1.5
- end
- end
- local totalDuration = math.floor(mult*120)
- return totalDuration
- end
- -- Function to reset timers.
- function reset_timers()
- for i,v in pairs(custom_timers) do
- send_command('timers delete "'..i..'"')
- end
- custom_timers = {}
- end
- -- Select default macro book on initial load or subjob change.
- function select_default_macro_book()
- set_macro_page(1, 10)
- end
- windower.raw_register_event('zone change',reset_timers)
- windower.raw_register_event('logout',reset_timers)
Advertisement
Add Comment
Please, Sign In to add comment