function get_sets()
sets = {}
-- Precast Sets
sets.precast_Nightingale = {feet="Brd. Slippers +2"}
sets.precast_Troubadour = {body="Bard's Justaucorps +2"}
sets['precast_Soul Voice'] = {legs="Brd. Cannions +2"}
sets.precast_FC_Song = {main="Terra's Staff",sub="Verse Strap",head="Aoidos' Calot +2",neck="Aoidos' Matinee",
ear1="Loquac. Earring",ear2="Aoidos' Earring",body="Marduk's Jubbah +1",hands="Mdk. Dastanas +1",
ring1="Minstrel's ring",ring2="Prolix Ring",back="Swith Cape +1",waist="Aoidos' Belt",legs="Gendewitha Spats",
feet="Bokwus Boots"}
sets.precast_FC = {head="Nahtirah Hat",neck="Orunmila's Torque",ear1="Loquac. Earring",body="Marduk's Jubbah +1",
hands="Gendewitha Gages",ring2="Prolix Ring",back="Swith Cape +1",waist="Siegel Sash",legs="Orvail Pants",
feet="Nabu's Crackows"}
sets.precast_Cure = {head="Iaso Mitra",body="Heka's Kalasiris",legs="Nabu's Shalwar",back="Pahtli Cape",feet="Iaso Boots"}
sets.precast_FC_Thunder = {main='Apamajas I'}
sets.precast_FC_Fire = {main='Atar I'}
-- Midcast Sets
sets.midcast_Haste = {main="Terra's Staff",sub="Arbuda Grip",
head="Zelus Tiara",neck="Orunmila's Torque",ear1="Loquac. Earring",
body="Hedera's Cotehardie",hands="Gendewitha Gages",ring2="Prolix Ring",
back="Swith Cape +1",waist="Ninurta's Sash",legs="Gendewitha Spats",feet="Gende. Galoshes"}
sets.midcast_Debuff = {main="Chatoyant Staff",sub="Mephitis grip",
head="Buremte Hat",neck="Wind Torque",ear1="Psystorm Earring",ear2="Lifestorm earring",
body="Aoidos' Hngrln. +2",hands="Ad. Mnchtte. +2",ring1="Sangoma Ring",ring2="Maquette ring",
back="Mesmeric Cape",waist="Aristo belt",legs="Bokwus Slops",feet="Bokwus Boots"}
sets.midcast_Buff = {head="Aoidos' Calot +2",neck="Aoidos' Matinee",
body="Aoidos' Hngrln. +2",hands="Ad. Mnchtte. +2",legs="Mdk. Shalwar +1",feet="Aoidos' Cothrn. +2"}
sets.midcast_DBuff = {range="Daurdabla"}
sets.midcast_GBuff = {range="Gjallarhorn"}
sets.midcast_Ballad = {legs="Aoidos' Rhing. +2"}
sets.midcast_Base = sets.midcast_Haste
sets.midcast_Cure = {main="Arka IV",sub="Vivid Strap",
head="Zelus Tiara",neck="Colossus’s Torque",ear2="Novia earring",
hands="Bokwus Gloves",ring1="Ephedra Ring",ring2="Sirona’s Ring",
back="Swith Cape +1",waist="Cascade Belt",legs="Brd. Cannions +2",feet="Bokwus Boots"}
sets.midcast_Stoneskin = {neck="Stone Gorget",ear1="Earthcry Earring",legs="Haven Hose"}
--Aftercast Sets
sets.aftercast_Regen = {main="Terra's Staff",sub="Mephitis Grip",
head="Wivre Hairpin",neck="Wiglen Gorget",ear1="Loquac. Earring",ear2="Moonshade Earring",
body="Marduk's Jubbah +1",hands="Serpentes Cuffs",ring1="Sheltered Ring",ring2="Paguroidea Ring",
back="Umbra Cape",waist="Slipor Sash",legs="Nares Trews",feet="Aoidos' Cothrn. +2"}
sets.aftercast_PDT = {main="Terra's Staff",sub="Mephitis Grip",
head="Gende. Caubeen",neck="Wiglen Gorget",ear1="Loquac. Earring",ear2="Moonshade Earring",
body="Gendewitha Bliaut",hands="Gendewitha Gages",ring1="Sheltered Ring",ring2="Paguroidea Ring",
back="Umbra Cape",waist="Slipor Sash","Gendewitha Spats",feet="Gende. Galoshes"}
sets.aftercast_Idle = sets.aftercast_Regen
end
function precast(spell,action)
if spell.type == 'BardSong' then
if string.find(world.area:lower(),'cirdas caverns') then
cast_delay(0.5)
else
verify_equip()
end
if spell.target.type == 'PLAYER' and not buffactive.pianissimo then
cast_delay(1.5)
send_command('@input /raw /ja "Pianissimo" <me>')
end
if buffactive['nightingale'] then
equip_song_gear(spell)
else
equip_song_gear(spell)
equip(sets.precast_FC_Song)
end
elseif action.type == 'Magic' then
equip(sets.precast_FC)
if string.find(spell.english,'Cur') then
equip(sets.precast_Cure)
end
end
if sets['precast_FC_'..tostring(spell.element)] then equip(sets['precast_FC_'..spell.element]) end
if sets['precast_'..spell.english] then equip(sets['precast_'..spell.english]) end
end
function midcast(spell,action)
if spell.type == 'BardSong' then
equip_song_gear(spell)
elseif string.find(spell.english,'Cur') then
equip(sets.midcast_Base,sets.midcast_Cure)
elseif spell.english=='Stoneskin' then
equip(sets.midcast_Base,sets.midcast_Stoneskin)
end
end
function aftercast(spell,action)
equip(sets['aftercast_Idle'])
end
function status_change(new,old)
if T{'Idle','Resting'}:contains(new) then
equip(sets['aftercast_Idle'])
end
end
function equip_song_gear(spell)
if spell.english == 'Dark Carol' or spell.english == 'Dark Carol II' or spell.english == 'Light Carol' or spell.english == 'Light Carol II' then
equip(sets.midcast_Base,sets.midcast_DBuff)
else
if spell.target.type == 'MONSTER' then
equip(sets.midcast_Base,sets.midcast_Debuff,sets.m idcast_GBuff)
else
equip(sets.midcast_Base,sets.midcast_Buff,sets.mid cast_GBuff)
if string.find(spell.english,'Ballad') then equip(sets.midcast_Ballad) end
end
end
end