Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Setup vars that are user-dependent. Can override this function in a sidecar file.
- function user_setup()
- -- Options: Override default values
- state.OffenseMode:options('Normal','SomeAcc','Acc','FullAcc','Fodder')
- state.HybridMode:options('Normal','PDT')
- state.RangedMode:options('Normal', 'Acc')
- state.WeaponskillMode:options('Match','Normal','SomeAcc','Acc','FullAcc','Fodder')
- state.IdleMode:options('Normal', 'Sphere')
- state.PhysicalDefenseMode:options('PDT')
- state.MagicalDefenseMode:options('MDT')
- state.ResistDefenseMode:options('MEVA')
- state.Weapons:options('Aeneas','MagicWeapons','LowBuff','Throwing')
- state.ExtraMeleeMode = M{['description']='Extra Melee Mode','None','Suppa','DWEarrings','DWMax'}
- state.AmbushMode = M(false, 'Ambush Mode')
- -- Additional local binds
- send_command('bind ^` input /ja "Flee" <me>')
- send_command('bind !` input /ra <t>')
- send_command('bind @` gs c cycle SkillchainMode')
- send_command('bind @f10 gs c toggle AmbushMode')
- send_command('bind ^backspace gs c weapons Throwing;gs c update')
- send_command('bind !backspace input /ja "Hide" <me>')
- send_command('bind !r gs c weapons MagicWeapons;gs c update')
- send_command('bind ^\\\\ input /ja "Despoil" <t>')
- send_command('bind !\\\\ input /ja "Mug" <t>')
- select_default_macro_book()
- end
- -- Define sets and vars used by this job file.
- function init_gear_sets()
- --------------------------------------
- -- Special sets (required by rules)
- --------------------------------------
- sets.TreasureHunter = set_combine(sets.TreasureHunter, {hands="Plunderer's Armlets +1",waist="Chaac Belt"})
- sets.ExtraRegen = {}
- sets.Kiting = {feet="Skadi's Jambeaux +1"}
- sets.buff.Doom = set_combine(sets.buff.Doom, {})
- sets.buff.Sleep = {head="Frenzy Sallet"}
- sets.buff['Sneak Attack'] = {}
- sets.buff['Trick Attack'] = {}
- -- Extra Melee sets. Apply these on top of melee sets.
- sets.Knockback = {}
- sets.Suppa = {}
- sets.DWEarrings = {}
- sets.DWMax = {}
- sets.Ambush = {} --body="Plunderer's Vest +1"
- -- Weapons sets
- sets.weapons.Aeneas = {main="Aeneas",sub="Taming Sari"}
- sets.weapons.LowBuff = {main="Aeneas",sub="Blurred Knife +1"}
- sets.weapons.MagicWeapons = {main="Malevolence",sub="Malevolence"}
- sets.weapons.Throwing = {}
- -- Actions we want to use to tag TH.
- sets.precast.Step = {}
- sets.precast.JA['Violent Flourish'] = {}
- sets.precast.JA['Animated Flourish'] = sets.TreasureHunter
- sets.precast.JA.Provoke = sets.TreasureHunter
- --------------------------------------
- -- Precast sets
- --------------------------------------
- -- Precast sets to enhance JAs
- sets.precast.JA['Collaborator'] = {} --head="Skulker's Bonnet"
- sets.precast.JA['Accomplice'] = {} --head="Skulker's Bonnet"
- sets.precast.JA['Flee'] = {} --feet="Pillager's Poulaines +1"
- sets.precast.JA['Hide'] = {} --body="Pillager's Vest +1"
- sets.precast.JA['Conspirator'] = {} --body="Skulker's Vest"
- sets.precast.JA['Steal'] = {hands="Pill. Armlets +1"}
- sets.precast.JA['Mug'] = {}
- sets.precast.JA['Despoil'] = {}
- sets.precast.JA['Perfect Dodge'] = {hands="Plunderer's Armlets +1"}
- sets.precast.JA['Feint'] = {} -- {}
- sets.precast.JA['Sneak Attack'] = sets.buff['Sneak Attack']
- sets.precast.JA['Trick Attack'] = sets.buff['Trick Attack']
- -- Waltz set (chr and vit)
- sets.precast.Waltz = {}
- sets.Self_Waltz = {}
- -- Don't need any special gear for Healing Waltz.
- sets.precast.Waltz['Healing Waltz'] = {}
- -- Fast cast sets for spells
- sets.precast.FC = {}
- sets.precast.FC.Utsusemi = set_combine(sets.precast.FC, {neck="Magoraga Beads"})
- -- Ranged snapshot gear
- sets.precast.RA = {}
- -- Weaponskill sets
- -- Default set for any weaponskill that isn't any more specifically defined
- sets.precast.WS = {
- ammo="Falcon Eye",
- head={ name="Adhemar Bonnet +1", augments={'STR+12','DEX+12','Attack+20',}},
- body="Meg. Cuirie +2",
- hands="Meg. Gloves +2",
- legs={ name="Herculean Trousers", augments={'Accuracy+18 Attack+18','Weapon skill damage +4%','STR+8',}},
- feet={ name="Herculean Boots", augments={'"Waltz" potency +2%','CHR+10','Weapon skill damage +8%','Accuracy+9 Attack+9','Mag. Acc.+9 "Mag.Atk.Bns."+9',}},
- neck="Combatant's Torque",
- waist="Prosilio Belt +1",
- left_ear="Ishvara Earring",
- right_ear={ name="Moonshade Earring", augments={'Accuracy+4','TP Bonus +250',}},
- left_ring="Ilabrat Ring",
- right_ring="Epaminondas's Ring",
- back={ name="Mecisto. Mantle", augments={'Cap. Point+46%','Mag. Acc.+2','DEF+13',}},
- }
- sets.precast.WS.SomeAcc = set_combine(sets.precast.WS, {})
- sets.precast.WS.Acc = set_combine(sets.precast.WS, {})
- sets.precast.WS.FullAcc = set_combine(sets.precast.WS, {})
- -- Specific weaponskill sets. Uses the base set if an appropriate WSMod version isn't found.
- sets.precast.WS["Rudra's Storm"] = set_combine(sets.precast.WS, {})
- sets.precast.WS["Rudra's Storm"].SomeAcc = set_combine(sets.precast.WS.SomeAcc, {})
- sets.precast.WS["Rudra's Storm"].Acc = set_combine(sets.precast.WS.Acc, {})
- sets.precast.WS["Rudra's Storm"].FullAcc = set_combine(sets.precast.WS.FullAcc, {})
- sets.precast.WS["Rudra's Storm"].Fodder = set_combine(sets.precast.WS["Rudra's Storm"], {})
- sets.precast.WS["Rudra's Storm"].SA = set_combine(sets.precast.WS["Rudra's Storm"].Fodder, {})
- sets.precast.WS["Rudra's Storm"].TA = set_combine(sets.precast.WS["Rudra's Storm"].Fodder, {})
- sets.precast.WS["Rudra's Storm"].SATA = set_combine(sets.precast.WS["Rudra's Storm"].Fodder, {})
- sets.precast.WS["Mandalic Stab"] = set_combine(sets.precast.WS, {})
- sets.precast.WS["Mandalic Stab"].SomeAcc = set_combine(sets.precast.WS.SomeAcc, {})
- sets.precast.WS["Mandalic Stab"].Acc = set_combine(sets.precast.WS.Acc, {})
- sets.precast.WS["Mandalic Stab"].FullAcc = set_combine(sets.precast.WS.FullAcc, {})
- sets.precast.WS["Mandalic Stab"].Fodder = set_combine(sets.precast.WS["Mandalic Stab"], {})
- sets.precast.WS["Mandalic Stab"].SA = set_combine(sets.precast.WS["Mandalic Stab"].Fodder, {})
- sets.precast.WS["Mandalic Stab"].TA = set_combine(sets.precast.WS["Mandalic Stab"].Fodder, {})
- sets.precast.WS["Mandalic Stab"].SATA = set_combine(sets.precast.WS["Mandalic Stab"].Fodder, {})
- sets.precast.WS["Shark Bite"] = set_combine(sets.precast.WS, {})
- sets.precast.WS["Shark Bite"].SomeAcc = set_combine(sets.precast.WS.SomeAcc, {})
- sets.precast.WS["Shark Bite"].Acc = set_combine(sets.precast.WS.Acc, {})
- sets.precast.WS["Shark Bite"].FullAcc = set_combine(sets.precast.WS.FullAcc, {})
- sets.precast.WS["Shark Bite"].Fodder = set_combine(sets.precast.WS["Shark Bite"], {})
- sets.precast.WS["Shark Bite"].SA = set_combine(sets.precast.WS["Shark Bite"].Fodder, {})
- sets.precast.WS["Shark Bite"].TA = set_combine(sets.precast.WS["Shark Bite"].Fodder, {})
- sets.precast.WS["Shark Bite"].SATA = set_combine(sets.precast.WS["Shark Bite"].Fodder, {})
- sets.precast.WS['Evisceration'] = set_combine(sets.precast.WS, {
- hands={ name="Adhemar Wrist. +1", augments={'STR+12','DEX+12','Attack+20',}},
- legs="Meg. Chausses +2",
- feet={ name="Herculean Boots", augments={'Accuracy+30','"Triple Atk."+3','Attack+12',}},
- neck="Fotia Gorget",
- waist="Fotia Belt",
- left_ear="Sherida Earring",
- right_ear={ name="Moonshade Earring", augments={'Accuracy+4','TP Bonus +250',}},
- right_ring="Begrudging Ring",
- })
- sets.precast.WS['Evisceration'].SomeAcc = set_combine(sets.precast.WS.SomeAcc, {})
- sets.precast.WS['Evisceration'].Acc = set_combine(sets.precast.WS.Acc, {})
- sets.precast.WS['Evisceration'].FullAcc = set_combine(sets.precast.WS.FullAcc, {})
- sets.precast.WS['Evisceration'].Fodder = set_combine(sets.precast.WS['Evisceration'], {})
- sets.precast.WS['Evisceration'].SA = set_combine(sets.precast.WS['Evisceration'].Fodder, {})
- sets.precast.WS['Evisceration'].TA = set_combine(sets.precast.WS['Evisceration'].Fodder, {})
- sets.precast.WS['Evisceration'].SATA = set_combine(sets.precast.WS['Evisceration'].Fodder, {})
- sets.precast.WS['Last Stand'] = {}
- sets.precast.WS['Aeolian Edge'] = {
- ammo="Pemphredo Tathlum",
- head={ name="Herculean Helm", augments={'Magic dmg. taken -5%','"Mag.Atk.Bns."+30','Accuracy+5 Attack+5','Mag. Acc.+17 "Mag.Atk.Bns."+17',}},
- body={ name="Samnuha Coat", augments={'Mag. Acc.+14','"Mag.Atk.Bns."+13','"Fast Cast"+4','"Dual Wield"+3',}},
- hands="Meg. Gloves +2",
- legs={ name="Herculean Trousers", augments={'INT+10','Mag. Acc.+16','Accuracy+20 Attack+20','Mag. Acc.+16 "Mag.Atk.Bns."+16',}},
- feet={ name="Herculean Boots", augments={'"Waltz" potency +2%','CHR+10','Weapon skill damage +8%','Accuracy+9 Attack+9','Mag. Acc.+9 "Mag.Atk.Bns."+9',}},
- neck="Baetyl Pendant",
- waist="Eschan Stone",
- left_ear="Friomisi Earring",
- right_ear={ name="Moonshade Earring", augments={'Accuracy+4','TP Bonus +250',}},
- left_ring="Dingir Ring",
- right_ring="Epaminondas's Ring",
- back={ name="Mecisto. Mantle", augments={'Cap. Point+46%','Mag. Acc.+2','DEF+13',}},
- }
- sets.precast.WS['Aeolian Edge'].TH = set_combine(sets.precast.WS['Aeolian Edge'], sets.TreasureHunter)
- -- Swap to these on Moonshade using WS if at 3000 TP
- sets.MaxTP = {ear2="Sherida Earring"}
- sets.AccMaxTP = sets.MaxTP
- --------------------------------------
- -- Midcast sets
- --------------------------------------
- sets.midcast.FastRecast = {}
- -- Specific spells
- sets.midcast.Utsusemi = set_combine(sets.midcast.FastRecast, {})
- sets.midcast.Dia = set_combine(sets.midcast.FastRecast, sets.TreasureHunter)
- sets.midcast.Diaga = set_combine(sets.midcast.FastRecast, sets.TreasureHunter)
- sets.midcast['Dia II'] = set_combine(sets.midcast.FastRecast, sets.TreasureHunter)
- sets.midcast.Bio = set_combine(sets.midcast.FastRecast, sets.TreasureHunter)
- sets.midcast['Bio II'] = set_combine(sets.midcast.FastRecast, sets.TreasureHunter)
- -- Ranged gear
- sets.midcast.RA = {}
- sets.midcast.RA.Acc = {}
- --------------------------------------
- -- Idle/resting/defense sets
- --------------------------------------
- -- Resting sets
- sets.resting = {}
- -- Idle sets (default idle set not needed since the other three are defined, but leaving for testing purposes)
- sets.idle = {
- ammo="Staunch Tathlum +1",
- head="Meghanada Visor +2",
- body="Meg. Cuirie +2",
- hands="Meg. Gloves +2",
- legs="Meg. Chausses +2",
- feet="Skd. Jambeaux +1",
- neck="Loricate Torque +1",
- waist="Flume Belt",
- left_ear="Infused Earring",
- right_ear="Etiolation Earring",
- left_ring="Defending Ring",
- right_ring="Patricius Ring",
- back={ name="Mecisto. Mantle", augments={'Cap. Point+46%','Mag. Acc.+2','DEF+13',}},
- }
- sets.idle.Sphere = set_combine(sets.idle, {})
- sets.idle.Weak = set_combine(sets.idle, {})
- sets.DayIdle = set_combine(sets.idle, {})
- sets.NightIdle = set_combine(sets.idle, {})
- -- Defense sets
- sets.defense.PDT = {
- ammo="Staunch Tathlum +1",
- head="Meghanada Visor +2",
- body="Meg. Cuirie +2",
- hands="Meg. Gloves +2",
- legs="Meg. Chausses +2",
- feet="Skd. Jambeaux +1",
- neck="Loricate Torque +1",
- waist="Flume Belt",
- left_ear="Infused Earring",
- right_ear="Etiolation Earring",
- left_ring="Defending Ring",
- right_ring="Patricius Ring",
- back={ name="Mecisto. Mantle", augments={'Cap. Point+46%','Mag. Acc.+2','DEF+13',}},
- }
- sets.defense.MDT = sets.defense.PDT
- sets.defense.MEVA = sets.defense.PDT
- --------------------------------------
- -- Melee sets
- --------------------------------------
- -- Normal melee group
- sets.engaged = {
- ammo="Ginsen",
- head="Adhemar Bonnet +1",
- body="Adhemar Jacket +1",
- hands="Adhemar Wrist. +1",
- legs={ name="Samnuha Tights", augments={'STR+10','DEX+10','"Dbl.Atk."+3','"Triple Atk."+3',}},
- feet={ name="Herculean Boots", augments={'Accuracy+30','"Triple Atk."+3','Attack+12',}},
- neck="Combatant's Torque",
- waist="Windbuffet Belt +1",
- left_ear="Sherida Earring",
- right_ear="Suppanomimi",
- left_ring="Epona's Ring",
- right_ring="Ilabrat Ring",
- back={ name="Mecisto. Mantle", augments={'Cap. Point+46%','Mag. Acc.+2','DEF+13',}},
- }
- sets.engaged.SomeAcc = set_combine(sets.engaged, {})
- sets.engaged.Acc = set_combine(sets.engaged, {})
- sets.engaged.FullAcc = set_combine(sets.engaged, {})
- sets.engaged.Fodder = set_combine(sets.engaged, {})
- sets.engaged.PDT = {
- ammo="Staunch Tathlum +1",
- head="Meghanada Visor +2",
- body="Adhemar Jacket +1",
- hands="Meg. Gloves +2",
- legs="Meg. Chausses +2",
- feet={ name="Herculean Boots", augments={'Accuracy+30','"Triple Atk."+3','Attack+12',}},
- neck="Loricate Torque +1",
- waist="Flume Belt",
- left_ear="Sherida Earring",
- right_ear="Suppanomimi",
- left_ring="Defending Ring",
- right_ring="Epona's Ring",
- back={ name="Mecisto. Mantle", augments={'Cap. Point+46%','Mag. Acc.+2','DEF+13',}},
- }
- sets.engaged.SomeAcc.PDT = set_combine(sets.engaged.PDT, {})
- sets.engaged.Acc.PDT = set_combine(sets.engaged.PDT, {})
- sets.engaged.FullAcc.PDT = set_combine(sets.engaged.PDT, {})
- sets.engaged.Fodder.PDT = set_combine(sets.engaged.PDT, {})
- end
- -- Select default macro book on initial load or subjob change.
- function select_default_macro_book()
- -- Default macro set/book
- if player.sub_job == 'DNC' then
- set_macro_page(6, 1)
- elseif player.sub_job == 'WAR' then
- set_macro_page(6, 1)
- elseif player.sub_job == 'NIN' then
- set_macro_page(6, 1)
- else
- set_macro_page(6, 1)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement