Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Gearswap file for Samurai(FFXI)
- function get_sets()
- --JA Sets for Precast Functions--
- sets.JA = {}
- sets.JA['Meikyo Shisui'] = {feet="Sakonji Sune-Ate +1"}
- sets.JA['Third Eye'] = {legs="Sakonji Haidate +1"}
- sets.JA['Hasso'] = {hands="Wakido Kote +1"}
- sets.JA['Meditate'] = {head="Wakido Kabuto +1",hands="Sakonji Kote"}
- sets.JA['Shikikoyo'] = {legs="Sakonji Haidate +1"}
- sets.JA['Blade Bash'] = {hands="Sakonji Kote"}
- sets.JA['Sengikori'] = {feet="Unkai Sune-Ate +2"}
- --If user has Yoichinoyumi then simply replace Cibitshavore--
- --Range/Ammo slots do not need to be defined, can simply delete range=/ammo=, as well --
- --TP Sets--
- sets.TP = {}
- sets.TP.index = {'Reg','Acc','PDT'}
- TP_Index = 1
- sets.TP.Reg = {range="Cibitshavore",
- head="Otomi Helm",neck="Asperity Necklace", ear1="Steelflash Earring", ear2="Bladeborn Earring",
- body="Wakido Domaru +1",hands="Wakido Kote +1",ring1="Rajas Ring",ring2="K'ayres Ring",
- back="Takaha Mantle",waist="Cetl belt",legs="Wakido Haidate +1",feet="Whirlpool Greaves"}
- sets.TP.Acc = {range="Cibitshavore",
- head="Yaoyotl helm",neck="Iqabi necklace", ear1="Steelflash earring", ear2="Bladeborn earring",
- body="Sakonji Domaru +1",hands="Wakido Kote +1",ring1="Rajas ring",ring2="Patricius Ring",
- back="Takaha mantle",waist="Anguinus Belt",legs="Miki. Cuisses",feet="Whirlpool Greaves"}
- sets.TP.PDT = {range="Cibitshavore",
- head="Lithelimb Cap",neck="Twilight Torque", ear1="Steelflash earring", ear2="Bladeborn earring",
- body="Miki. breastplate",hands="Umuthi Gloves",ring1="Defending Ring",ring2="Patricius Ring",
- back="Mollusca Mantle",waist="Cetl belt",legs="Wakido Haidate +1",feet="Whirlpool Greaves"}
- --Range and Ammo slots do not need to be defined as long as the user preferred weapon and ammo are already equipped--
- --Range TP--
- sets.RA = {}
- sets.RA = {ammo="Tulfaire Arrow",
- head="Sakonji Kabuto +1",neck="Iqabi Necklace",ear1="Clearview Earring",ear2="Matanki Earring",
- body="Kyujutsugi",hands="Buremte Gloves",ring1="Hajduk Ring +1",ring2="Hajduk Ring +1",
- back="Thall Mantle",waist="Saotome Koshi-Ate",legs="Aetosaur Trousers +1",feet="Wakido Sune-Ate +1"}
- --Weaponskill Sets--
- sets.WS = {}
- sets.WS.index = {'Reg','Acc'}
- WS_Index = 1
- sets.WS.Reg = {range="Cibitshavore",
- head="Otomi helm",neck="Asperity Necklace",ear1="Brutal earring",ear2="Moonshade earring",
- body="Sakonji Domaru +1",hands="Boor Bracelets",ring1="Rajas ring",ring2="Pyrosoul Ring",
- back="Buquwik cape",waist="Windbuffet Belt",legs="Wakido haidate +1",feet="Sak. Sune-Ate +1"}
- sets.WS.Acc = {range="Cibitshavore",
- head="Yaoyotl helm",neck="Iqabi Necklace",ear1="Brutal earring",ear2="Moonshade earring",
- body="Sakonji Domaru +1",hands="Boor Bracelets",ring1="Rajas ring",ring2="Pyrosoul Ring",
- back="Takaha Mantle",waist="Anguinus Belt",legs="Wakido haidate +1",feet="Whirlpool Greaves"}
- --Tachi: Shoha--
- sets.Shoha = {}
- sets.Shoha.index = {'Reg','Acc'}
- Shoha_Index = 1
- sets.Shoha.Reg = {range="Cibitshavore",
- head="Otomi helm",neck="Breeze Gorget",ear1="Brutal earring",ear2="Moonshade earring",
- body="Sakonji Domaru +1",hands="Miki. Gauntlets",ring1="Rajas Ring",ring2="Pyrosoul Ring",
- back="Atheling Mantle",waist="Windbuffet belt",legs="Miki. Cuisses",feet="Sak. Sune-Ate +1"}
- sets.Shoha.Acc = {range="Cibitshavore",
- head="Yaoyotl helm",neck="Breeze Gorget",ear1="Brutal earring",ear2="Moonshade earring",
- body="Sakonji Domaru +1",hands="Miki. Gauntlets",ring1="Rajas Ring",ring2="Pyrosoul Ring",
- back="Takaha Mantle",waist="Windbuffet belt",legs="Miki. Cuisses",feet="Sak. Sune-Ate +1"}
- --Tachi: Fudo/Tachi: Kaiten--
- sets.Fudo = {}
- sets.Fudo.index = {'Reg','Acc'}
- Fudo_Index = 1
- sets.Fudo.Reg = {range="Cibitshavore",
- head="Otomi helm",neck="Light Gorget",ear1="Brutal earring",ear2="Moonshade earring",
- body="Sakonji Domaru +1",hands="Boor Bracelets",ring1="Rajas ring",ring2="Pyrosoul Ring",
- back="Buquwik cape",waist="Light belt",legs="Wakido haidate +1",feet="Sak. Sune-Ate +1"}
- sets.Fudo.Acc = {range="Cibitshavore",
- head="Yaoyotl helm",neck="Light Gorget",ear1="Brutal earring",ear2="Moonshade earring",
- body="Sakonji Domaru +1",hands="Boor Bracelets",ring1="Rajas ring",ring2="Pyrosoul Ring",
- back="Buquwik cape",waist="Light belt",legs="Wakido haidate +1",feet="Whirlpool Greaves"}
- --Apex Arrow--
- --Range and Ammo slots do not need to be defined as long as the user preferred weapon and ammo are already equipped--
- sets.Apex = {}
- sets.Apex.index = {'Reg','Acc'}
- Apex_Index = 1
- sets.Apex.Reg = {range="Cibitshavore",ammo="Tulfaire Arrow",
- head="Sakonji Kabuto +1",neck="Thunder Gorget",ear1="Moonshade Earring",ear2="Breeze Pearl",
- body="Phorcys Korazin",hands="Unkai Kote +2",ring1="Stormsoul Ring",ring2="Stormsoul Ring",
- back="Ik Cape",waist="Thunder Belt",legs="Wakido Haidate +1",feet="Wakido Sune-Ate +1"}
- sets.Apex.Acc = {range="Cibitshavore",ammo="Tulfaire Arrow",
- head="Sakonji Kabuto +1",neck="Iqabi Necklace",ear1="Clearview Earring",ear2="Matanki Earring",
- body="Kyujutsugi",hands="Buremte Gloves",ring1="Hajduk Ring +1",ring2="Hajduk Ring +1",
- back="Thall Mantle",waist="Thunder Belt",legs="Aetosaur Trousers +1",feet="Wakido Sune-Ate +1"}
- --Namas Arrow--
- sets.Nama = {}
- sets.Nama.index = {'Reg','Acc'}
- Nama_Index = 1
- sets.Nama.Reg = {range="Yoichinoyumi",ammo="Tulfaire Arrow",
- head="Sakonji Kabuto +1",neck="Light Gorget",ear1="Vulcan's Pearl",ear2="Vulcan's Pearl",
- body="Phorcys Korazin",hands="Unkai Kote +2",ring1="Rajas Ring",ring2="Pyrosoul Ring",
- back="Buquwik Cape",waist="Light Gorget",legs="Wakido Haidate +1",feet="Wakido Sune-Ate +1"}
- sets.Nama.Acc = {range="Yoichinoyumi",ammo="Tulfaire Arrow",
- head="Sakonji Kabuto +1",neck="Iqabi Necklace",ear1="Clearview Earring",ear2="Matanki Earring",
- body="Kyujutsugi",hands="Buremte Gloves",ring1="Hajduk Ring +1",ring2="Hajduk Ring +1",
- back="Thall Mantle",waist="Light Belt",legs="Aetosaur Trousers +1",feet="Wakido Sune-Ate +1"}
- end
- --Precast Functions--
- function precast(spell)
- 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 == "Tachi: Shoha" then
- equip(sets.Shoha[sets.Shoha.index[Shoha_Index]])
- end
- if spell.english == "Tachi: Kaiten" or spell.english == "Tachi: Fudo" then
- equip(sets.Fudo[sets.Fudo.index[Fudo_Index]])
- end
- if spell.english == "Apex Arrow" then
- equip(sets.Apex[sets.Apex.index[Apex_Index]])
- end
- if spell.english == "Namas Arrow" then
- equip(sets.Nama[sets.Nama.index[Nama_Index]])
- end
- end
- --Midcast Function if using Ranged Attack to TP--
- --Mirror's Precast to ensure desired effects are applied--
- function midcast(spell,act)
- if spell.name == "Ranged" then
- equip(sets.RA)
- end
- 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 == "Tachi: Shoha" then
- equip(sets.Shoha[sets.Shoha.index[Shoha_Index]])
- end
- if spell.english == "Tachi: Kaiten" or spell.english == "Tachi: Fudo" then
- equip(sets.Fudo[sets.Fudo.index[Fudo_Index]])
- end
- if spell.english == "Apex Arrow" then
- equip(sets.Apex[sets.Apex.index[Apex_Index]])
- end
- if spell.english == "Namas Arrow" then
- equip(sets.Nama[sets.Nama.index[Nama_Index]])
- end
- end
- --Aftercast Functions--
- function aftercast(spell,act)
- if player.status == 'Engaged' and buffactive['Sekkanoki'] then
- equip{hands="Unkai Kote +2"}
- elseif player.status == 'Engaged' then
- equip(sets.TP[sets.TP.index[TP_Index]])
- end
- if player.status == 'Engaged' and buffactive['Reive Mark'] then
- equip{neck="Ygnas's Resolve"}
- end
- end
- function buff_change(new,old)
- if buffactive['Sekkanoki'] then
- equip{hands="Unkai Kote +2"}
- end
- if player.status == 'Engaged' and buffactive['Reive Mark'] then
- equip{neck="Ygnas's Resolve"}
- end
- end
- function status_change(new,old)
- if new == 'Engaged' then
- equip(sets.TP[sets.TP.index[TP_Index]])
- end
- if buffactive['Sekkanoki'] and new == 'Engaged' then
- equip{hands="Unkai Kote +2"}
- end
- if player.status == 'Engaged' and buffactive['Reive Mark'] then
- equip{neck="Ygnas's Resolve"}
- 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 Fudo 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 Shoha set' then
- Shoha_Index = Shoha_Index +1
- if Shoha_Index > #sets.Shoha.index then Shoha_Index = 1 end
- send_command('@input /echo >>> Tachi: Shoha Set changed to: '..sets.Shoha.index[Shoha_Index]..' ')
- equip(sets.Shoha[sets.Shoha.index[Shoha_Index]])
- elseif command == 'toggle Fudo set' then
- Fudo_Index = Fudo_Index +1
- if Fudo_Index > #sets.Fudo.index then Fudo_Index = 1 end
- send_command('@input /echo >>> Tachi: Fudo/Kaiten Set changed to: '..sets.Fudo.index[Fudo_Index]..' ')
- equip(sets.Fudo[sets.Fudo.index[Fudo_Index]])
- elseif command == 'toggle Apex set' then
- Apex_Index = Apex_Index +1
- if Apex_Index > #sets.Apex.index then Apex_Index = 1 end
- send_command('@input /echo >>> Apex Arrow Set Changed to: '..sets.Apex.index[Apex_Index]..' ')
- equip(sets.Apex[sets.Apex.index[Apex_Index]])
- elseif command == 'toggle Namas set' then
- Nama_Index = Nama_Index +1
- if Nama_Index > #sets.Nama.index then Nama_Index = 1 end
- send_command('@input /echo >>> Namas Arrow Set Changed to: '..sets.Nama.index[Nama_Index]..' ')
- equip(sets.Nama[sets.Nama.index[Nama_Index]])
- elseif command == 'toggle WeaponSkill set' then
- WS_Index = WS_Index +1
- if WS_Index > #sets.WS.index then WS_Index = 1 end
- send_command('@input /echo >>> WeaponSkill Set Changed to: '..sets.WS.index[WS_Index]..' ')
- equip(sets.WS[sets.WS.index[WS_Index]])
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement