Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Gearswap file for Monk(FFXI)--
- function get_sets ()
- -- Job Ability sets for Precast Function --
- -- Chi Blast and others intentionally omitted --
- sets.JA = {}
- sets.JA['Hundred Fist'] = {legs="Hesychast's Hose +1"}
- sets.JA['Boost'] = {hands="Anchorite's Gloves"}
- sets.JA['Focus'] = {head="Anchorite's Crown +1"}
- sets.JA['Impetus'] = {body="Tantra Cyclas +2"}
- sets.JA['Dodge'] = {feet="Anchorite's Gaiters +1"}
- sets.JA['Counterstance'] = {feet="Hesychast's Gaiters +1"}
- sets.JA['Mantra'] = {feet="Hesychast's Gaiters +1"}
- sets.JA['Formless Strikes'] = {body="Hesychast's Cyclas +1"}
- sets.JA['Chakra'] = {head="Lithelimb Cap",
- body="Anchorite's Cyclas +1",neck="Tjukurrpa Medal",ear1="Upsurge Earring",ear2="Impregnable Earring",
- hands="Hesychast's Gloves +1",ring1="Terrasoul Ring",ring2="Terrasoul Ring",back="Iximulew Cape",
- waist="Caudata Belt",legs="Ighwa Trousers",feet="Qaaxo Leggings"}
- --TP Sets--
- sets.TP = {}
- sets.TP.index = {'Reg','Acc','PDT',}
- TP_Index = 1
- sets.TP.Reg = {ammo="Ginsen",
- head="Felistris Mask",neck="Asperity Necklace",ear1="Bladeborn Earring",ear2="Steelflash Earring",
- body="Qaaxo Harness",hands="Hesychast's Gloves +1",ring1="Rajas Ring",ring2="Epona's Ring",
- back="Atheling Mantle",waist="Windbuffet Belt",legs="Hesychast's Hose +1",feet="Qaaxo Leggings"}
- sets.TP.Acc = {ammo="Honed Tathlum",
- head="Whirlpool Mask",neck="Ej Necklace",ear1="Bladeborn Earring",ear2="Steelflash Earring",
- body="Manibozho Jerkin",hands="Hesychast's Gloves +1",ring1="Beeline Ring",ring2="Patricius Ring",
- back="Anchoret's Mantle",waist="Anguinus Belt",legs="Ighwa Trousers",feet="Qaaxo Leggings"}
- sets.TP.PDT = {head="Lithelimb Cap",
- body="Qaaxo Harness",neck="Twilight Torque",ring1="Defending Ring",ring2="Patricius Ring",
- back="Mollusca Mantle",waist="Black Belt",legs="Ighwa Trousers"}
- --Impetus TP--
- sets.Imp = {}
- sets.Imp.index = {'Reg','Acc'}
- Imp_Index = 1
- sets.Imp.Reg = set_combine(sets.TP.Reg,{body="Tantra Cyclas +2"})
- sets.Imp.Acc = set_combine(sets.TP.Acc,{body="Tantra Cyclas +2"})
- --WS Sets--
- sets.WS = {}
- sets.WS.index = {'Reg','Acc',}
- WS_Index = 1
- sets.WS.Reg = {ammo="Ginsen",
- head="Felistris Mask",neck="Asperity Necklace", ear1="Moonshade Earring",ear2="Brutal Earring",
- body="Anchorite's Cyclas +1",hands="Hesychast's Gloves +1",ring1="Pyrosoul Ring",ring2="Epona's Ring",
- back="Buquwik Cape",waist="Caudata Belt",legs="Hesychast's Hose +1",feet="Qaaxo Leggings"}
- sets.WS.Acc = {ammo="Honed Tathlum",
- head="Whirlpool Mask",neck="Asperity Necklace",ear1="Moonshade Earring",ear2="Brutal Earring",
- body="Manibozho Jerkin",hands="Hesychast's Gloves +1",ring1="Rajas Ring",ring2="Beeline Ring",
- body="Anchorite's Mantle", waist="Caudata Belt",legs="Ighwa Trousers",feet="Qaaxo Leggings"}
- --Victory Smite/Ascetic's Fury--
- sets.VS = {}
- sets.VS.index = {'Reg','Acc','Imp'}
- VS_Index = 1
- sets.VS.Reg = {ammo="Ginsen",
- head="Uk'uxkaj Cap",neck="Light Gorget", ear1="Moonshade Earring",ear2="Brutal Earring",
- body="Anchorite's Cyclas +1",hands="Hesychast's Gloves +1",ring1="Pyrosoul Ring",ring2="Epona's Ring",
- back="Buquwik Cape",waist="Caudata Belt",legs="Hesychast's Hose +1",feet="Qaaxo Leggings"}
- sets.VS.Acc = {ammo="Honed Tathlum",
- head="Whirlpool Mask",neck="Light Gorget",ear1="Moonshade Earring",ear2="Brutal Earring",
- body="Manibozho Jerkin",hands="Hesychast's Gloves +1",ring1="Rajas Ring",ring2="Beeline Ring",
- body="Anchorite's Mantle", waist="Caudata Belt",legs="Ighwa Trousers",feet="Qaaxo Leggings"}
- sets.VS.Imp = set_combine(sets.VS.Reg,{body="Tantra Cyclas +2"})
- --Asuran Fists--
- sets.AF = {}
- sets.AF.index = {'Reg','Acc'}
- AF_Index = 1
- sets.AF.Reg = set_combine(sets.WS.Reg,{back="Vespid Mantle"})
- sets.AF.Acc = set_combine(sets.WS.Acc,{back="Vespid Mantle"})
- end
- --Precast Functions--
- function precast(spell,act)
- if spell.type == 'JobAbility' then
- if sets.JA[spell.english] then
- equip(sets.JA[spell.english])
- end
- end
- if spell.type == 'WeaponSkill' then
- equip(sets.WS[sets.WS.index[WS_Index]])
- end
- if spell.english == "Victory Smite" or spell.english == "Ascetic's Fury" then
- equip(sets.VS[sets.VS.index[VS_Index]])
- end
- if spell.english == "Asuran Fists" then
- equip(sets.AF[sets.AF.index[AF_Index]])
- end
- if buffactive['Impetus'] and (spell.english == "Victory Smite" or spell.english == "Ascetic's Fury") then
- equip(sets.VS.Imp)
- end
- end
- --Mirror's Precast to ensure desired effects are applied--
- function midcast(spell,act)
- if spell.type == 'JobAbility' then
- if sets.JA[spell.english] then
- equip(sets.JA[spell.english])
- end
- end
- if spell.type == 'WeaponSkill' then
- equip(sets.WS[sets.WS.index[WS_Index]])
- end
- if spell.english == "Victory Smite" or spell.english == "Ascetic's Fury" then
- equip(sets.VS[sets.VS.index[VS_Index]])
- end
- if spell.english == "Asuran Fists" then
- equip(sets.AF[sets.AF.index[AF_Index]])
- end
- if buffactive['Impetus'] and (spell.english == "Victory Smite" or spell.english == "Ascetic's Fury") then
- equip(sets.VS.Imp)
- end
- end
- --Aftercast Functions--
- function aftercast(spell,act)
- if player.status == 'Engaged' and buffactive['Impetus'] then
- equip(sets.Imp[sets.Imp.index[Imp_Index]])
- elseif player.status == 'Engaged' then
- equip(sets.TP[sets.TP.index[TP_Index]])
- end
- end
- --Buff Change Function for Impetus gear--
- function buff_change(new,old)
- if buffactive['Impetus'] then
- equip(sets.Imp[sets.Imp.index[Imp_Index]])
- end
- end
- --Function to retain Impetus Gear after mob is defeated, while status is still active--
- function status_change(new,old)
- if new == 'Engaged' then
- equip(sets.TP[sets.TP.index[TP_Index]])
- end
- if buffactive['Impetus'] and new == 'Engaged' then
- equip(sets.Imp[sets.Imp.index[Imp_Index]])
- end
- end
- --Toggle Command functions--
- --Gearswap direct command = //gs c toggle 'x' set
- --Macro line = /console gs c toggle x set
- --ex: /console gs c toggle TP set
- -- Index is set to 1 or 'Reg', press button once to switch to 'Acc', press again to switch 'PDT', and again to return to 'Reg'
- function self_command(command)
- if command == 'toggle TP set' then
- TP_Index = TP_Index +1
- if TP_Index > #sets.TP.index then TP_Index = 1 end
- send_command('@ input /echo >>> TP set changed to '..sets.TP.index[TP_Index]..' ')
- equip(sets.TP[sets.TP.index[TP_Index]])
- elseif command == 'toggle WS set' then
- WS_Index = WS_Index +1
- if WS_Index > #sets.WS.index then WS_Index = 1 end
- send_command('@ input /echo >>> WS set changed to '..sets.WS.index[WS_Index]..' ')
- equip(sets.WS[sets.WS.index[WS_Index]])
- elseif command == 'toggle VS set' then
- VS_Index = VS_Index +1
- if VS_Index > #sets.VS.index then VS_Index = 1 end
- send_command('@ input /echo >>> VS set changed to '..sets.VS.index[VS_Index]..' ')
- equip(sets.VS[sets.VS.index[VS_Index]])
- elseif command == 'toggle AF set' then
- AF_Index = AF_Index +1
- if AF_Index > #sets.AF.index then AF_Index = 1 end
- send_command('@ input /echo >>> AF set changed to '..sets.AF.index[AF_Index]..' ')
- equip(sets.AF[sets.AF.index[AF_Index]])
- elseif command == 'toggle Imp set' then
- Imp_Index = Imp_Index +1
- if Imp_Index > #sets.Imp.index then Imp_Index = 1 end
- send_command('@ input /echo >>> Imp set changed to '..sets.Imp.index[Imp_Index]..' ')
- equip(sets.Imp[sets.Imp.index[Imp_Index]])
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement