function get_sets()
--Idle Sets--
sets.Idle = {}
sets.Idle.Standard = {main="Owleyes",sub="Genbu's shield",range="Incantor stone",
head="Savant's bonnet +2",neck="Twilight torque",ear1="Loquacious earring",ear2="Aredan earring",
body="Gendewitha bliaut",hands="Serpentes cuffs",ring1="Mediator's ring",ring2="Bilfrost ring",
back="Shadow mantle",waist="Oneiros sash",legs="Hagondes pants",feet="Serpentes sabots"}
sets.Idle.Sublimation = {main="Owleyes",sub="Genbu's shield",range="Incantor stone",
head="Savant's bonnet +2",neck="Twilight torque",ear1="Loquacious earring",ear2="Savant's earring", body="Argute gown",hands="Serpentes cuffs",ring1="Tamas ring",ring2="Maquette ring",
back="Shadow mantle",waist="Oneiros sash",legs="Hagondes pants",feet="Serpentes sabots"}
sets.Idle.Sandstorm = {main="Owleyes",sub="Genbu's shield",range="Incantor stone",
head="Savant's bonnet +2",neck="Twilight torque",ear1="Loquacious earring",ear2="Aredan earring",
body="Heka's kalasiris",hands="Serpentes cuffs",ring1="Mediator's ring",ring2="Bilfrost ring",
back="Shadow mantle",waist="Oneiros sash",legs="Hagondes pants",feet="Desert Boots"}
sets.Idle.SublimationSandstorm = {main="Owleyes",sub="Genbu's shield",range="Incantor stone",
head="Scholar's M.board",neck="Twilight torque",ear1="Loquacious earring",ear2="Savant's earring",
body="Argute gown",hands="Serpentes cuffs",ring1="Bilfrost ring",ring2="Mediator's ring",
back="Shadow mantle",waist="Oneiros sash",legs="Hagondes pants",feet="Desert Boots"}
--Precast Sets--
sets.Precast = {}
sets.Precast.FC = {}
sets.Precast.FC.Standard = {ammo='Incantor stone',
ear1='Loquac. earring',
hands='Magavan mitts',ring1='Prolix ring',
back='Swith cape',waist='Witful belt',legs='Hagondes pants',head='Haruspex hat'}
sets.Precast.FC.Cures = {ammo='Incantor stone',
ear1='Loquac. earring',
body='Heka's kalasiris',hands='Magavan mitts',ring1='Prolix ring',
back='Swith cape',waist='Witful belt',legs='Hagondes pants',head='Haruspex hat'}
sets.Precast.JA = {}
sets.Precast.JA.PenuryParsimony = {legs="Savant's pants +2"}
sets.Precast.JA.ImmanencePerpetuation = {hands="Svnt. Bracers +2"}
sets.Precast.JA.EbullienceRapture = {head="Svnt. bonnet +2"}
--Midcast Sets--
sets.Midcast = {}
sets.Midcast.Cures = {main='Arka IV',sub='Pax grip',ammo='Clarus stone',
head='Haruspex hat', neck="Savant's chain",ear1='Aredan earring',ear2='Loquacious earring',
body='Heka's kalasiris',hands='Augur's gloves',ring1='Ephedra ring',ring2="Sirona's ring",
back="Swith cape",waist='Cognizant belt',legs="Hagondes pants",feet='Gendewitha galoshes'}
sets.Midcast.LowNukes = {main='Atinian Staff',sub='Pax grip',ammo="Witchstone",
head='Argute mortarboard', neck="Stoicheion medal",ear1="Hecate's earring",ear2='Aredan earring',
body='Savant;s gown +2',hands='Helios gloves',ring1='Mediator's ring',ring2="Diamond ring",
back="Ogapepo cape",waist='Oneiros sash',legs="Hagondes pants",feet='Gendewitha galoshes'}
sets.Midcast.HighNukes = {main='Atinian Staff',sub='Pax grip',ammo="Savant's Treatise",
head='Argute mortarboard', neck="Stoicheion medal",ear1="Hecate's earring",ear2='Aredan earring',
body='Savant;s gown +2',hands='Helios gloves',ring1='Mediator's ring',ring2="Diamond ring",
back="Ogapepo cape",waist='Oneiros sash',legs="Hagondes pants",feet='Gendewitha galoshes'}
sets.Midcast.Helix = {main='Atinian Staff',sub='Pax grip',ammo="Savant's Treatise",
head='Argute mortarboard', neck="Stoicheion medal",ear1="Hecate's earring",ear2='Aredan earring',
body='Savant;s gown +2',hands='Helios gloves',ring1='Mediator's ring',ring2="Diamond ring",
back="Ogapepo cape",waist='Oneiros sash',legs="Hagondes pants",feet='Gendewitha galoshes'}
sets.Midcast.Stun = {main='Atinian Staff',sub='Pax grip',ammo="Savant's Treatise",
head='Argute mortarboard', neck="Stoicheion medal",ear1="Hecate's earring",ear2='Aredan earring',
body='Savant;s gown +2',hands='Helios gloves',ring1='Mediator's ring',ring2="Diamond ring",
back="Ogapepo cape",waist='Oneiros sash',legs="Hagondes pants",feet='Gendewitha galoshes'}
sets.Midcast.Enhancing = {ammo="Savant's treatise",
head="Savant's bonnet +2",neck="Colossus's torque",ear1='Loquac. earring',
body='Telchine chasuble',
back='Merciful cape',waist='Cognizant belt',legs="Hagondes pants"}
sets.Midcast.Enfeebling = {main="Eminent staff",sub="Pax grip",
head="Haruspex hat",neck="Stoicheion medal",ear1="Loquacious earring",ear2="Aredan earring",
body="Haruspex coat",hands="Magavan mitts",ring1="Mediator's ring",ring2="Prolix ring",
back="Swith cape",waist="Cognizant belt",legs="Savant's pants +2",feet="Haruspex pigaches"}
sets.Midcast.Stoneskin = {head="Haruspex hat",neck="Savant's chain",ear1="Aredan earring",ear2="Loquac. earring",
hands="Helios gloves",ring1="Prolix ring",
back="Swith cape",waist="Cognizant belt",legs="Hagondes pants",feet="Gendewitha galoshes"}
sets.Midcast.Regen = {main='Eminent Staff',sub='Pax grip',ammo='Clarus stone',
head="Svnt. bonnet +2", neck="Savant's chain",ear1='Aredan earring',ear2='Loquacious earring',
body='Telchine chasuble',hands='Augur's gloves',ring1='Ephedra ring',ring2="Sirona's ring",
back="Swith cape",waist='Cognizant belt',legs="Hagondes pants",feet='Gendewitha galoshes'}
sets.Obi = {}
sets.Obi.Fire = {waist='Karin Obi',back='Twilight Cape',ring1='Zodiac Ring'}
sets.Obi.Earth = {waist='Dorin Obi',back='Twilight Cape',ring1='Zodiac Ring'}
sets.Obi.Water = {waist='Suirin Obi',back='Twilight Cape',ring1='Zodiac Ring'}
sets.Obi.Wind = {waist='Furin Obi',back='Twilight Cape',ring1='Zodiac Ring'}
sets.Obi.Ice = {waist='Hyorin Obi',back='Twilight Cape',ring1='Zodiac Ring'}
sets.Obi.Thunder = {waist='Rairin Obi',back='Twilight Cape',ring1='Zodiac Ring'}
sets.Obi.Light = {waist='Korin Obi',back='Twilight Cape',ring1='Zodiac Ring'}
sets.Obi.Dark = {waist='Anrin Obi',back='Twilight Cape',ring1='Zodiac Ring'}
--Aftercast Sets--
sets.Aftercast = {}
end
function precast(spell)
if spell.action_type == 'Magic' then
equip(sets.Precast.FC.Standard)
if string.find(spell.english,'Cur') and spell.name ~= 'Cursna' then
equip(sets.Precast.FC.Cure)
end
end
if spell.english == 'Penury' or spell.english == 'Parsimony' then
equip(sets.Precast.JA.PenuryParsimony)
end
if spell.english == 'Ebullience' or spell.english == 'Rapture' then
equip(sets.Precast.JA.EbullienceRapture)
end
if spell.english == 'Immanence' or spell.english == 'Perpetuation' then
equip(sets.Precast.JA.ImmanencePerpetuation)
end
end
function midcast(spell)
if spell.english == 'Cure' or spell.english == 'Cure II' or spell.english == 'Cure III' or spell.english == 'Cure IV' then
equip(sets.Midcast.Cures)
if spell.element == world.weather_element or spell_element == world.day_element then
equip(sets.Obi[spell.element])
end
if buffactive.rapture then
equip(sets.Precast.JA.EbullienceRapture)
end
end
if string.find(spell.english,'helix') then
equip(sets.Midcast.Helix)
end
if spell.english == 'Kaustra' then
equip(sets.Midcast.Helix)
if spell.element == world.weather_element or spell_element == world.day_element then
equip(sets.Obi[spell.element])
end
end
if spell.english == 'Stone' or spell.english == 'Thunder' or spell.english == 'Water' or spell.english == 'Fire' or spell.english == 'Blizzard' or spell.english == 'Aero' then
equip(sets.Midcast.LowNukes)
if spell.element == world.weather_element or spell_element == world.day_element then
equip(sets.Obi[spell.element])
end
if buffactive.ebullience then
equip(sets.Precast.JA.EbullienceRapture)
end
if buffactive.klimaform then
equip ({feet="Savant's Loafers +2"})
end
end
if spell.english == 'Stone III' or spell.english == 'Thunder III' or spell.english == 'Water III' or spell.english == 'Fire III' or spell.english == 'Blizzard III' or spell.english == 'Aero III' or spell.english == 'Stone IV' or spell.english == 'Thunder IV' or spell.english == 'Water IV' or spell.english == 'Fire IV' or spell.english == 'Blizzard IV' or spell.english == 'Aero IV' or spell.english == 'Stone V' or spell.english == 'Thunder V' or spell.english == 'Water V' or spell.english == 'Fire V' or spell.english == 'Blizzard V' or spell.english == 'Aero V'then
equip(sets.Midcast.HighNukes)
if spell.element == world.weather_element or spell_element == world.day_element then
equip(sets.Obi[spell.element])
end
if buffactive.ebullience then
equip(sets.Precast.JA.EbullienceRapture)
end
if buffactive.klimaform then
equip ({feet="Savant's Loafers +2"})
end
end
if spell.skill == 'EnhancingMagic' then
if spell.english == 'Embrava' then
equip(sets.Midcast.Enhancing)
if not buffactive.perpetuance then
add_to_chat(8,'--------- Perpetuance is down ---------')
end
if not buffactive.accession then
add_to_chat(8,'--------- Accession is down ---------')
end
if not buffactive.penury then
add_to_chat(8,'--------- Penury is down ---------')
end
end
if buffactive.perpetuance then
equip(sets.Midcast.Enhancing,{hands="Savant's Bracers +2"})
else
equip(sets.Midcast.Enhancing)
end
end
if spell.english == 'Stoneskin' then
equip(sets.Midcast.Stoneskin)
if buffActive['Stoneskin'] then
send_command('@wait 2.5;@input //cancel Stoneskin')
end
end
if spell.english == 'Slow' or spell.english == 'Paralyze' or spell.english == 'Blind' or spell.english == 'Silence' or spell.english == 'Break' or spell.english == 'Sleep' or spell.english == 'Sleep II' or spell.english == 'Sleepga' or spell.english == 'Dispel' then
equip(sets.Midcast.Enfeebling)
end
if spell.english == 'Sneak' then
send_command('@wait 1.8;cancel 71;')
end
end
function aftercast(spell)
equip(sets.Idle.Standard)
if buffactive['Sublimation: Activated'] then
equip(sets.Idle.Sublimation)
end
if buffactive['Sandstorm'] then
equip(sets.Idle.Sandstorm)
if buffactive['Sublimation: Activated'] then
equip(sets.Idle.SublimationSandstorm)
end
end
if spell.english == 'Sleep' or spell.english == 'Sleepga' then
send_command('@wait 50;input /echo ------- '..spell.english..' is wearing off in 10 seconds -------')
elseif spell.english == 'Sleep II' or spell.english == 'Sleepga II' then
send_command('@wait 80;input /echo ------- '..spell.english..' is wearing off in 10 seconds -------')
elseif spell.english == 'Break' or spell.english == 'Breakga' then
send_command('@wait 20;input /echo ------- '..spell.english..' is wearing off in 10 seconds -------')
end
end