Code:
--To toggle gearsets:
--Main command: //gs c toggle x set where x = set name variable. Variables are as follows: --
--Idle sets: Idle, TP sets: TP--
--Resolution sets: Res, Requiescat sets: Req--
function get_sets()
--Idle Sets--
sets.Idle = {}
sets.Idle.index = {'Standard'}
Idle_ind = 1
sets.Idle.Standard = {ammo="Homiliary",
head="Ocelomeh headpiece +1",neck="Wiglen gorget", ear1="Ethereal earring",
body="Runeist coat",hands="Meghanada Gloves +1",ring1="Paguroidea ring",ring2="Sheltered ring",
back="Evasionist's cape",waist="Flume belt",legs="Meghanada Chausses",feet="Meghanada Jambeaux +1"}
--TP Sets--
sets.TP = {}
sets.TP.index = {'Standard', 'Solo', 'AccuracyLite', 'AccuracyFull', 'DT', 'DTAccuracy'}
--1=Standard, 2=Solo, 3=AccuracyLite, 4=AccuracyFull, 5=DT, 6=DTAccuracy--
TP_ind = 1
sets.TP.Standard = {ammo="Seething Bomblet +1",
head="Meghanada Visor +1",neck="Ej necklace", ear1="Steelflash earring", ear2="Bladeborn earring",
body="Meghanada Cuirie",hands="Meghanada Gloves +1",ring1="Yacuruna Ring",ring2="Defending ring",
back="Ogma's cape",waist="Ioskeha Belt",legs="Meghanada Chausses",feet="Meghanada Jambeaux +1"}
sets.TP.Solo = {ammo="Seething Bomblet +1",
head="Meghanada Visor +1",neck="Ej necklace", ear1="Steelflash earring", ear2="Bladeborn earring",
body="Erilaz Surcoat",hands="Meghanada Gloves +1",ring1="Yacuruna Ring",ring2="Defending ring",
back="Ogma's cape",waist="Ioskeha Belt",legs="Erilaz Leg Guards",feet="Meghanada Jambeaux +1"}
sets.TP.AccuracyLite = {ammo="Seething Bomblet +1",
head="Meghanada Visor +1",neck="Ej necklace", ear1="Steelflash earring", ear2="Bladeborn earring",
body="Meghanada Cuirie",hands="Meghanada Gloves +1",ring1="Yacuruna Ring",ring2="Defending ring",
back="Ogma's cape",waist="Ioskeha Belt",legs="Meghanada Chausses",feet="Meghanada Jambeaux +1"}
sets.TP.AccuracyFull = {ammo="Seething Bomblet +1",
head="Meghanada Visor +1",neck="Ej necklace", ear1="Steelflash earring", ear2="Bladeborn earring",
body="Meghanada Cuirie",hands="Meghanada Gloves +1",ring1="Yacuruna Ring",ring2="Defending ring",
back="Ogma's cape",waist="Ioskeha Belt",legs="Meghanada Chausses",feet="Meghanada Jambeaux +1"}
sets.TP.DT = {ammo="Staunch Tathlum",
head="Meghanada Visor +1",neck="Ej necklace", ear1="Steelflash earring", ear2="Bladeborn earring",
body="Futhark Coat",hands="Meghanada Gloves +1",ring1="Yacuruna Ring",ring2="Defending ring",
back="Ogma's cape",waist="Flume belt",legs="Erilaz Leg Guards",feet="Erilaz Greaves"}
sets.TP.DTAccuracy = {ammo="Staunch Tathlum",
head="Meghanada Visor +1",neck="Ej necklace", ear1="Steelflash earring", ear2="Bladeborn earring",
body="Meghanada Cuirie",hands="Meghanada Gloves +1",ring1="Yacuruna Ring",ring2="Defending ring",
back="Ogma's cape",waist="Flume belt",legs="Meghanada Chausses",feet="Meghanada Jambeaux +1"}
--Weaponskill Sets--
sets.WS = {}
sets.Resolution = {}
sets.Resolution.index = {'Attack','Accuracy'}
Resolution_ind = 1
sets.Resolution.Attack = {ammo="Seething Bomblet +1",
head="Meghanada Visor +1",neck="Ej necklace", ear1="Steelflash earring", ear2="Bladeborn earring",
body="Meghanada Cuirie",hands="Meghanada Gloves +1",ring1="Yacuruna Ring",ring2="Defending ring",
back="Ogma's cape",waist="Ioskeha Belt",legs="Meghanada Chausses",feet="Meghanada Jambeaux +1"}
sets.Resolution.Accuracy = {ammo="Seething Bomblet +1",
head="Meghanada Visor +1",neck="Ej necklace", ear1="Steelflash earring", ear2="Bladeborn earring",
body="Meghanada Cuirie",hands="Meghanada Gloves +1",ring1="Yacuruna Ring",ring2="Defending ring",
back="Ogma's cape",waist="Ioskeha Belt",legs="Meghanada Chausses",feet="Meghanada Jambeaux +1"}
sets.Requiescat = {}
sets.Requiescat.index = {'Attack','Accuracy'}
Requiescat_ind = 1
sets.Requiescat.Attack = {ammo="Seething Bomblet +1",
head="Meghanada Visor +1",neck="Ej necklace", ear1="Steelflash earring", ear2="Bladeborn earring",
body="Meghanada Cuirie",hands="Meghanada Gloves +1",ring1="Yacuruna Ring",ring2="Defending ring",
back="Ogma's cape",waist="Ioskeha Belt",legs="Meghanada Chausses",feet="Meghanada Jambeaux +1"}
sets.Requiescat.Accuracy = {ammo="Seething Bomblet +1",
head="Meghanada Visor +1",neck="Ej necklace", ear1="Steelflash earring", ear2="Bladeborn earring",
body="Meghanada Cuirie",hands="Meghanada Gloves +1",ring1="Yacuruna Ring",ring2="Defending ring",
back="Ogma's cape",waist="Ioskeha Belt",legs="Meghanada Chausses",feet="Meghanada Jambeaux +1"}
--Utility Sets--
sets.Utility = {}
sets.Utility.PDT = {ammo="Staunch Tathlum",
head="Meghanada Visor +1",neck="Ej necklace", ear1="Steelflash earring", ear2="Bladeborn earring",
body="Erilaz surcoat",hands="Meghanada Gloves +1",ring1="Yacuruna Ring",ring2="Defending ring",
back="Ogma's cape",waist="Flume belt",legs="Erilaz Leg Guards",feet="Erilaz Greaves"}
sets.Utility.MDT = {ammo="Staunch Tathlum",
head="Erilaz Galea",neck="Ej necklace", ear1="Steelflash earring", ear2="Bladeborn earring",
body="Erilaz surcoat",hands="Erilaz gauntlets",ring1="Yacuruna Ring",ring2="Defending ring",
back="Engulfer cape",waist="Flume belt",legs="Erilaz Leg Guards",feet="Erilaz Greaves"}
sets.Utility.Stoneskin = {head="Erilaz Galea",neck="Stone Gorget",ear1="Loquac. earring",ear2="Earthcry earring",
body="Futhark coat",hands="Runeist mitons",ring1="Prolix ring",
back="Swith cape",waist="Siegel sash",legs="Futhark trousers",feet="Erilaz Greaves"}
sets.Utility.Phalanx = {head="Futhark bandeau",neck="Colossus's torque",ear1="Loquac. earring",ear2="Augment. earring",
body="Futhark coat",hands="Runeist mitons",ring1="Prolix ring",
back="Swith cape",waist="Cascade belt",legs="Futhark trousers",feet="Erilaz Greaves"}
sets.Utility.Regen = {head="Runeist bandeau",neck="Colossus's torque",ear1="Loquac. earring",ear2="Augment. earring",
body="Futhark coat",hands="Runeist mitons",ring1="Prolix ring",
back="Swith cape",waist="Pythia sash +1",legs="Futhark trousers",feet="Erilaz Greaves"}
sets.Utility.Utsusemi = {head="Runeist bandeau",neck="Jeweled collar",ear1="Loquac. earring",
body="Futhark coat",hands="Meghanada Gloves +1",ring1="Prolix ring",
back="Swith cape",waist="Hurch'lan sash",legs="Erilaz leg guards",feet="Erilaz Greaves"}
sets.Utility.Refresh = {ammo="Staunch Tathlum",
head="Erilaz galea",neck="Ej necklace", ear1="Steelflash earring", ear2="Bladeborn earring",
body="Futhark Coat",hands="Meghanada Gloves +1",ring1="Yacuruna Ring",ring2="Defending ring",
back="Ogma's cape",waist="Flume belt",legs="Erilaz Leg Guards",feet="Erilaz Greaves"}
sets.Utility.EmnityCast = {ammo="Staunch Tathlum",
head="Erilaz galea",neck="Ej necklace", ear1="Steelflash earring", ear2="Bladeborn earring",
body="Futhark Coat",hands="Meghanada Gloves +1",ring1="Provocare Ring",ring2="Defending ring",
back="Ogma's cape",waist="Flume belt",legs="Erilaz Leg Guards",feet="Erilaz Greaves"}
--Job Ability Sets--
sets.JA = {}
sets.JA.Lunge = {ammo="Erlene's notebook",
head="A'as circlet",neck="Eddy necklace",lear="Hecate's earring",rear="Friomisi earring",
body="Mirke wardecors",hands="Spolia cuffs",
back="Evasionist's cape",legs="Shneddick tights",feet="Weatherspoon souliers"}
sets.JA.Vallation = {body="Runeist coat",
legs="Futhark trousers",back="Ogma's cape"}
sets.JA.Battuta = {head="Futhark bandeau"}
sets.JA.Gambit = {hands="Runeist mitons"}
sets.JA.Pflug = {head="Runeist bottes"}
sets.JA.Vivacious = {head="Erilaz Galea"}
sets.JA.Liement = {body="Futhark coat"}
sets.JA.Rayke = {feet="Futhark boots"}
--Precast Sets--
sets.precast = {}
sets.precast.FC = {}
sets.precast.FC.Standard = {head="Runeist bandeau",neck="Jeweled collar", ear1="Loquac. Earring",
body="Mirke wardecors",hands="Thaumas Gloves",
legs="Futhark trousers",feet="Chelona Boots"}
sets.precast.FC.Enhancing = {head="Runeist bandeau",neck="Jeweled collar", ear1="Loquac. Earring",
body="Mirke wardecors",hands="Thaumas Gloves",
legs="Futhark trousers",feet="Chelona Boots"}
end
function precast(spell)
if spell.action_type == 'Magic' then
equip(sets.precast.FC.Standard)
end
if spell.action_type == 'Enhancing' then
equip(sets.precast.FC.Enhancing)
end
if spell.action_type == 'Ninjutsu' then
equip(sets.precast.FC.Standard)
end
if spell.english == 'Lunge' or spell.english == 'Swipe' then
equip(sets.JA.Lunge)
end
if spell.english == 'Vallation' or spell.english == 'Valiance' then
equip(sets.JA.Vallation)
end
if spell.english == 'Battuta' then
equip(sets.JA.Battuta)
end
if spell.english == 'Pflug' then
equip(sets.JA.Pflug)
end
if spell.english == 'Gambit' then
equip(sets.JA.Gambit)
end
if spell.english == 'Vivacious Pulse' then
equip(sets.JA.Vivacious)
end
if spell.english == 'Liement' then
equip(sets.JA.Liement)
end
if spell.english == 'Rayke' then
equip(sets.JA.Rayke)
end
if spell.english == 'Resolution' or spell.english == 'Shockwave' then
equip(sets.Resolution[sets.Resolution.index[Resolution_ind]])
end
if spell.english == 'Dimidiation' or spell.english == 'Shockwave' then
equip(sets.Resolution[sets.Resolution.index[Resolution_ind]])
end
if spell.english == 'Requiescat' then
equip(sets.Requiescat[sets.Requiescat.index[Requiescat_ind]])
end
end
function midcast(spell,act)
if spell.english == 'Stoneskin' then
equip(sets.Utility.Stoneskin)
if buffactive['Stoneskin'] then
send_command('@wait 0.7; input //cancel Stoneskin; input /echo Refreshing Stoneskin.')
end
end
if spell.english == 'Phalanx' or spell.english == 'Bar*' then
equip(sets.Utility.Phalanx)
end
if spell.english == 'Refresh' then
equip(sets.Utility.Refresh)
end
if spell.english == 'Regen' then
equip(sets.Utility.Regen)
end
if spell.english == 'Flash' then
equip(sets.Utility.EmnityCast)
end
if spell.english == 'Foil' then
equip(sets.Utility.EmnityCast)
end
if spell.english == 'C' then
equip(sets.Utility.EmnityCast)
end
if spell.english == 'Utsusemi: Ichi' then
equip(sets.Utility.Utsusemi)
if buffactive['Copy Image (3)'] then
send_command('@wait 0.3; input //cancel Copy Image*')
end
if buffactive['Copy Image (2)'] then
send_command('@wait 0.3; input //cancel Copy Image*')
end
if buffactive['Copy Image (1)'] then
send_command('@wait 0.3; input //cancel Copy Image*')
end
if buffactive['Copy Image'] then
send_command('@wait 0.3; input //cancel Copy Image*')
end
end
if spell.english == 'Utsusemi: Ni' then
equip(sets.Utility.Utsusemi)
end
end
function aftercast(spell)
if player.status == 'Engaged' then
equip(sets.TP[sets.TP.index[TP_ind]])
else
equip(sets.Idle[sets.Idle.index[Idle_ind]])
end
end
function status_change(new,old)
if new == 'Engaged' then
equip(sets.TP[sets.TP.index[TP_ind]])
else
equip(sets.Idle[sets.Idle.index[Idle_ind]])
end
end
function self_command(command)
if command == 'toggle TP set' then
TP_ind = TP_ind +1
if TP_ind > #sets.TP.index then TP_ind = 1 end
send_command('@input /echo <----- TP Set changed to '..sets.TP.index[TP_ind]..' ----->')
equip(sets.TP[equ])
elseif command == 'toggle Idle set' then
Idle_ind = Idle_ind +1
if Idle_ind > #sets.Idle.index then Idle_ind = 1 end
send_command('@input /echo <----- Idle Set changed to '..sets.Idle.index[Idle_ind]..' ----->')
equip(sets.Idle[sets.Idle.index[Idle_ind]])
elseif command == 'toggle Res set' then
Resolution_ind = Resolution_ind +1
if Resolution_ind > #sets.Resolution.index then Resolution_ind = 1 end
send_command('@input /echo <----- Resolution set changed to '..sets.Resolution.index[Resolution_ind]..' ----->')
elseif command == 'toggle Req set' then
Requiescat_ind = Requiescat_ind +1
if Requiescat_ind > #sets.Requiescat.index then Requiescat_ind = 1 end
send_command('@input /echo <----- Requiescat Set changed to '..sets.Requiescat.index[Requiescat_ind]..' ----->')
elseif command == 'equip TP set' then
equip(sets.TP[sets.TP.index[TP_ind]])
elseif command == 'equip Idle set' then
equip(sets.Idle[sets.Idle.index[Idle_ind]])
end
end
function self_command(command)
local comArgs = command
if #comArgs:split(' ') >= 2 then
comArgs = T(comArgs:split(' '))
end
if type(comArgs) == "table" then
if comArgs[1]:lower() == "set" then
if comArgs[1]:lower() == "tp" then
--replace the ? with the name of the set that corisponds to the following TP_ind number (in lowercase letters)
if comArgs[1]:lower() == "Standard" then
TP_ind = 1
elseif comArgs[1]:lower() == "Solo" then
TP_ind = 2
elseif comArgs[1]:lower() == "AccuracyLite" then
TP_ind = 3
elseif comArgs[1]:lower() == "AccuracyFull" then
TP_ind = 4
elseif comArgs[1]:lower() == "DT" then
TP_ind = 5
elseif comArgs[1]:lower() == "DTAccuracy" then
TP_ind = 6
end
equip(sets.TP.index[TP_ind])
end
end
end
end