Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Gearswap file for Ranger(FFXI)
- --Highly recommend reviewing gearsets and replacing with personal items.
- --Also recommend changing key bind keys since everyone's keyboard and play style are different. ^ = CTRL, != ALT.
- function get_sets()
- --Keybinds--
- --F9 =Ranged Attack/RA
- --F10 = Barrage
- --F11 = Coronach
- --F12 = Last Stand
- send_command('bind f9 input /ra <t>')
- send_command('bind f10 input /ja Barrage <me>')
- send_command('bind f11 input /ws "Coronach" <t>')
- send_command('bind f12 input /ws "Last Stand" <t>')
- --CTRL+F9 = RA index toggle
- --CTRL+F10 = Barrage index toggle
- --CTRL+F11 = RA WS index toggle
- --CTRL+F12 = Eagle Eye Shot
- send_command('bind ^f9 gs c toggle RangeTP set')
- send_command('bind ^f10 gs c toggle Barrage set')
- send_command('bind ^f11 gs c toggle Ranged WS sets')
- send_command('bind ^f12 input /ja "Eagle Eye Shot" <t>')
- --ALT+F9 = Melee TP toggle
- --ALT+F10 = Exen Toggle
- send_command('bind !f9 gs c toggle TP set')
- send_command('bind !f10 gs c toggle Exenterator set')
- function file_unload()
- send_command('unbind f9')
- send_command('unbind f10')
- send_command('unbind f11')
- send_command('unbind f12')
- send_command('unbind ^f9')
- send_command('unbind ^f10')
- send_command('unbind ^f11')
- send_command('unbind ^f12')
- send_command('unbind !f9')
- send_command('unbind !f10')
- end
- --JA Sets for Precast Function--
- sets.JA = {}
- sets.JA['Eagle Eye Shot'] = {head="Meghanada Visor +1",
- neck="Ocachi Gorget",ear1="Clearview Earring",ear2="Sylvan Earring",body="Meghanada Cuirie +1",
- hands="Meghanada Gloves +1",ring1="Rajas Ring",ring2="Longshot Ring",back="Lutian Cape",
- waist="Elanid Belt",legs="Arcadian Braccae +1",feet="Meghanada Jambeaux +1"}
- sets.JA['Velocity Shot'] = {body="Sylvan Caban +2"}
- sets.JA['Sharpshot'] = {legs="Orion Braccae +1"}
- sets.JA['Barrage'] = {hands="Orion Bracers +1"}
- sets.JA['Double Shot'] = {head="Sylvan Gapette +2"}
- sets.JA['Shadowbind'] = {hands="Orion Bracers +1"}
- sets.JA['Camouflage'] = {body="Orion Jerkin +1"}
- sets.JA['Scavenge'] = {feet="Orion Socks +1"}
- sets.JA['Bounty Shot'] = {hands="Sylvan Glovettes +2"}
- --TP set for Melee or solo scenario--
- sets.TP = {}
- sets.TP.index = {'Reg','Acc'}
- TP_Index = 1
- sets.TP.Reg = {head="Dampening Tam",
- neck="Asperity Necklace",ear1="Cessance Earring",ear2="Sherida Earring",body="Adhemar Jacket +1",
- hands="Adhemar Wristbands +1",ring1="Rajas Ring",ring2="Epona's Ring",back="Atheling Mantle",waist="Windbuffet Belt",
- legs="Meghanada Chausses +2",feet="Herculean Boots"}
- sets.TP.Acc = set_combine(sets.TP.Reg,{hands="Floral Gauntlets",ring1="Ramuh Ring +1",ring2="Ramuh Ring +1",
- back="Agema Cape",waist="Hurch'lan Sash"})
- --Utility Sets for Snapshot aka Ranged Attack Precast--
- sets.Utility = {}
- sets.Utility.Snapshot = {head="Sylvan Gapette +2",
- body="Sylvan Caban +2",hands="Iuitl Wristbands +1",legs="Nahtirah Trousers",back="Lutian Cape",waist="Ponente Sash",feet="Meghanada Jambeaux +1"}
- --Ranged Attack TP Sets--
- sets.RangeTP = {}
- sets.RangeTP.index = {'Reg', 'Acc'}
- RangeTP_Index = 1
- sets.RangeTP.Reg = {head="Arcadian Beret +1",
- neck="Ocachi Gorget",ear1="Tripudio Earring",ear2="Volley Earring",body="Meghanada Cuirie +1",
- hands="Meghanada Gloves +1",ring1="Rajas Ring",ring2="Hajduk ring",back="Sylvan Chlamys",
- waist="Ponente Sash",legs="Meghanada Chausses +2",feet="Meghanada Jambeaux +1"}
- sets.RangeTP.Acc = {head="Meghanada Visor +1",
- neck="Erudition Necklace",ear1="Clearview Earring",ear2="Volley Earring",body="Meghanada Cuirie +1",
- hands="Meghanada Gloves +1",ring1="Longshot Ring",ring2="Hajduk ring",back="Lutian Cape",
- waist="Elanid Belt",legs="Meghanada Chausses +2",feet="Meghanada Jambeaux +1"}
- --Barrage--
- sets.Barrage = {}
- sets.Barrage.index = {'Reg','Acc'}
- Barrage_Index = 1
- sets.Barrage.Reg = {head="Meghanada Visor +1",
- neck="Ocachi Gorget",ear1="Clearview Earring",ear2="Volley Earring",body="Meghanada Cuirie +1",
- hands="Orion Bracers +1",ring1="Longshot Ring",ring2="Hajduk ring",back="Lutian Cape",
- waist="Elanid Belt",legs="Meghanada Chausses +2",feet="Meghanada Jambeaux +1"}
- sets.Barrage.Acc = {head="Meghanada Visor +1",
- neck="Ej Necklace",ear1="Clearview Earring",ear2="Volley Earring",body="Meghanada Cuirie +1",
- hands="Orion Bracers +1",ring1="Longshot Ring",ring2="Hajduk ring",back="Lutian Cape",
- waist="Elanid Belt",legs="Meghanada Chausses +2",feet="Meghanada Jambeaux +1"}
- --Exenterator Sets--
- sets.Exen = {}
- sets.Exen.index = {'Reg','Acc'}
- Exen_Index = 1
- sets.Exen.Reg = set_combine(sets.TP.Reg,{neck="Fotia Gorget",
- ring1="Rajas Ring",ring2="Ramuh Ring +1",waist="Fotia Belt"})
- sets.Exen.Acc = set_combine(sets.TP.Acc,{neck="Fotia Gorget",waist="Fotia Belt"})
- --Ranged WS Sets--
- --Coronach/Namas Arrow/Sidewinder/Slug Shot/Refulgent Arrow--
- sets.Coronach = {}
- sets.Coronach.index = {'Reg','Acc'}
- Coronach_Index = 1
- sets.Coronach.Reg = {head="Meghanada Visor +1",
- neck="Fotia Gorget",ear1="Moonshade Earring",ear2="Kuwunga Earring",body="Meghanada Cuirie +1",
- hands="Meghanada Gloves +1",ring1="Rajas Ring",ring2="Ifrit Ring +1",back="Lutian Cape",
- waist="Fotia Belt",legs="Meghanada Chausses +2",feet="Meghanada Jambeaux +1"}
- sets.Coronach.Acc = {head="Meghanada Visor +1",
- neck="Fotia Gorget",ear1="Moonshade Earring",ear2="Volley Earring",body="Meghanada Cuirie +1",
- hands="Meghanada Gloves +1",ring1="Longshot Ring",ring2="Hajduk ring",back="Lutian Cape",
- waist="Fotia Belt",legs="Meghanada Chausses +2",feet="Meghanada Jambeaux +1"}
- --Wildfire--
- sets.Wildfire = {}
- sets.Wildfire.index = {'Reg','Acc'}
- Wildfire_Index = 1
- sets.Wildfire.Reg = {head="Herculean Helm",
- neck="Sanctity Necklace",ear1="Friomisi Earring",ear2="Moonshade Earring",body="Rawhide Vest",
- hands="Leyline Gloves",ring1="Acumen Ring",ring2="Arvina Ringlet +1",back="Argochampsa Mantle",
- waist="Yambuki-no-obi",legs="Limbo Trousers",feet="Herculean Boots"}
- sets.Wildfire.Acc = {head="Herculean Helm",
- neck="Sanctity Necklace",ear1="Friomisi Earring",ear2="Moonshade Earring",body="Rawhide Vest",
- hands="Leyline Gloves",ring1="Acumen Ring",ring2="Arvina Ringlet +1",back="Argochampsa Mantle",
- waist="Yambuki-no-obi",legs="Limbo Trousers",feet="Herculean Boots"}
- --Trueflight---
- sets.Trueflight = {}
- sets.Trueflight.index = {'Reg','Acc'}
- Trueflight_Index = 1
- sets.Trueflight.Reg = set_combine(sets.Wildfire.Reg,{ring2="Weatherspoon Ring +1"})
- sets.Trueflight.Acc = set_combine(sets.Wildfire.Acc,{ring2="Weatherspoon Ring +1"})
- --Last Stand/Apex Arrow Sets--
- sets.LastS = {}
- sets.LastS.index = {'Reg','Acc'}
- LastS_Index = 1
- sets.LastS.Reg = {head="Meghanada Visor +1",
- neck="Fotia Gorget",ear1="Moonshade Earring",ear2="Sylvan Earring",body="Meghanada Cuirie +1",
- hands="Meghanada Gloves +1",ring1="Garuda Ring",ring2="Garuda Ring",back="Lutian Cape",
- waist="Fotia Belt",legs="Meghanada Chausses +2",feet="Arcadian Socks +1"}
- sets.LastS.Acc = {head="Meghana Visor +1",
- neck="Fotia Gorget",ear1="Moonshade Earring",ear2="Volley Earring",body="Meghanada Cuirie +1",
- hands="Meghanada Gloves +1",ring1="Garuda Ring",ring2="Longshot Ring",back="Lutian Cape",
- waist="Fotia Belt",legs="Meghanada Chausses +2",feet="Orion Socks +1"}
- --Jishnu's Radiance / Heavy Shot / Arching Arrow Sets --
- -- Jishnu's has a dex modifier, but Range Attack crits are modified by AGI--
- sets.Jishnu = {}
- sets.Jishnu.index = {'Reg','Acc'}
- Jishnu_Index = 1
- sets.Jishnu.Reg = {head="Uk'uxkaj Cap",
- neck="Light Gorget",ear1="Moonshade Earring",ear2="Kuwunga Earring",body="Kyujutsugi",
- hands="Arcadian Bracers +1",ring1="Rajas Ring",ring2="Stormsoul Ring",back="Buquwik Cape",
- waist="Fotia Belt",legs="Nahtirah Trousers",feet="Arcadian Socks +1"}
- sets.Jishnu.Acc = {head="Umbani Cap",
- neck="Light Gorget",ear1="Moonshade Earring",ear2="Volley Earring",body="Orion Jerkin +1",
- hands="Buremte Gloves",ring1="Hajduk Ring",ring2="Longshot Ring",back="Lutian Cape",
- waist="Fotia Belt",legs="Arcadian Braccae +1",feet="Orion Socks +1"}
- end
- --Precast Functions for JAs, Ranged Attacks, and Weaponskills--
- function precast(spell,act)
- if spell.type == 'JobAbility' then
- if sets.JA[spell.english] then
- equip(sets.JA[spell.english])
- end
- end
- if spell.name == "Ranged" then
- equip(sets.Utility.Snapshot)
- end
- --Weaponskill sets coupled based on Stat Attribute Modifier/Crit Modifier--
- if spell.english == "Coronach" or spell.english == "Namas Arrow" then
- equip(sets.Coronach[sets.Coronach.index[Coronach_Index]])
- end
- if spell.english == "Slug Shot" or spell.english == "Sidewinder" then
- equip(sets.Coronach[sets.Coronach.index[Coronach_Index]])
- end
- if spell.english == "Refulgent Arrow" then
- equip(sets.Coronach[sets.Coronach.index[Coronach_Index]])
- end
- if spell.english == "Jishnu's Radiance" then
- equip(sets.Jishnu[sets.Jishnu.index[Jishnu_Index]])
- end
- if spell.english == "Heavy Shot" or spell.english == "Arching Arrow" then
- equip(sets.Jishnu[sets.Jishnu.index[Jishnu_Index]])
- end
- if spell.english == "Wildfire" then
- equip(sets.Wildfire[sets.Wildfire.index[Wildfire_Index]])
- end
- if spell.english == "Trueflight" then
- equip(sets.Trueflight[sets.Trueflight.index[Trueflight_Index]])
- end
- if spell.english == "Last Stand" or spell.english == "Apex Arrow" then
- equip(sets.LastS[sets.LastS.index[LastS_Index]])
- end
- if spell.english == "Detonator" or spell.english == "Empyreal Arrow" then
- equip(sets.LastS[sets.LastS.index[LastS_Index]])
- end
- if spell.english == "Exenterator" then
- equip(sets.Exen[sets.Exen.index[Exen_Index]])
- end
- end
- --Midcast functions to equip midshot sets for Ranged Attacks and when Barrage is active--
- --Mirror's Precast to ensure desired effects are applied--
- function midcast(spell,act)
- if spell.name == "Ranged" then
- if buffactive.Barrage then
- equip(sets.Barrage[sets.Barrage.index[Barrage_Index]])
- else
- equip(sets.RangeTP[sets.RangeTP.index[RangeTP_Index]])
- end
- end
- if spell.type == 'JobAbility' then
- if sets.JA[spell.english] then
- equip(sets.JA[spell.english])
- end
- end
- --Weaponskill sets coupled based on Stat Attribute Modifier/Crit Modifier--
- if spell.english == "Coronach" or spell.english == "Namas Arrow" then
- equip(sets.Coronach[sets.Coronach.index[Coronach_Index]])
- end
- if spell.english == "Slug Shot" or spell.english == "Sidewinder" then
- equip(sets.Coronach[sets.Coronach.index[Coronach_Index]])
- end
- if spell.english == "Refulgent Arrow" then
- equip(sets.Coronach[sets.Coronach.index[Coronach_Index]])
- end
- if spell.english == "Jishnu's Radiance" then
- equip(sets.Jishnu[sets.Jishnu.index[Jishnu_Index]])
- end
- if spell.english == "Heavy Shot" or spell.english == "Arching Arrow" then
- equip(sets.Jishnu[sets.Jishnu.index[Jishnu_Index]])
- end
- if spell.english == "Wildfire" then
- equip(sets.Wildfire[sets.Wildfire.index[Wildfire_Index]])
- end
- if spell.english == "Trueflight" then
- equip(sets.Trueflight[sets.Trueflight.index[Trueflight_Index]])
- end
- if spell.english == "Last Stand" or spell.english == "Apex Arrow" then
- equip(sets.LastS[sets.LastS.index[LastS_Index]])
- end
- if spell.english == "Detonator" or spell.english == "Empyreal Arrow" then
- equip(sets.LastS[sets.LastS.index[LastS_Index]])
- end
- if spell.english == "Exenterator" then
- equip(sets.Exen[sets.Exen.index[Exen_Index]])
- end
- end
- --Aftercast function, returns user to TP/Melee set after action is complete--
- function aftercast(spell,act)
- if player.status == 'Engaged' then
- equip(sets.TP[sets.TP.index[TP_Index]])
- else
- equip(sets.Utility.Snapshot)
- end
- end
- function buff_change(new,old)
- if buffactive['Barrage'] then
- equip(sets.JA['Barrage'])
- end
- end
- --Status Change function, switches user to TP set upon engaging--
- function status_change(new,old)
- if player.status == 'Engaged' then
- equip(sets.TP[sets.TP.index[TP_index]])
- else
- equip(sets.Utility.Snapshot)
- end
- if buffactive['Barrage'] and new == 'Engaged' then
- equip(sets.JA['Barrage'])
- 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 RangeTP set
- -- Index is set to 1 or 'Reg', press button once to switch to 'Acc', and so on.
- 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 RangeTP set' then
- RangeTP_Index = RangeTP_Index +1
- if RangeTP_Index > #sets.RangeTP.index then RangeTP_Index = 1 end
- send_command('@input /echo >>> Range TP set changed to: '..sets.RangeTP.index[RangeTP_Index]..' ')
- equip(sets.RangeTP[sets.RangeTP.index[RangeTP_Index]])
- elseif command == 'toggle Barrage set' then
- Barrage_Index = Barrage_Index +1
- if Barrage_Index > #sets.Barrage.index then Barrage_Index = 1 end
- send_command('@input /echo >>> Barrage Set Changed to: '..sets.Barrage.index[Barrage_Index]..' ')
- equip(sets.Barrage[sets.Barrage.index[Barrage_Index]])
- elseif command == 'toggle Ranged WS sets' then
- Coronach_Index = Coronach_Index +1
- if Coronach_Index > #sets.Coronach.index then Coronach_Index = 1 end
- Wildfire_Index = Wildfire_Index +1
- if Wildfire_Index > #sets.Wildfire.index then Wildfire_Index = 1 end
- Trueflight_Index = Trueflight_Index +1
- if Trueflight_Index > #sets.Trueflight.index then Trueflight_Index = 1 end
- LastS_Index = LastS_Index +1
- if LastS_Index > #sets.LastS.index then LastS_Index = 1 end
- Jishnu_Index = Jishnu_Index +1
- if Jishnu_Index > #sets.Jishnu.index then Jishnu_Index = 1 end
- send_command('@input /echo >>>Ranged WS sets changed to: '..sets.Jishnu.index[Jishnu_Index]..' ')
- elseif command == 'toggle Exenterator set' then
- Exen_Index = Exen_Index +1
- if Exen_Index > #sets.Exen.index then Exen_Index = 1 end
- send_command('@input /echo >>> Exenterator Set Changed to: '..sets.Exen.index[Exen_Index]..' ')
- equip(sets.Exen[sets.Exen.index[Exen_Index]])
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement