oops
its because you have this
equip(equipSet)
to equip the proper set you need to use equipSet = in your equip_song_gear function
like this
function equip_song_gear(spell)
if Terpander == 'ON' then
equipSet = sets.Precast.Terpander
else
if TerpaSongs:contains(spell.english) then
equipSet = sets.Precast.Terpander
add_to_chat(158,'Terpander: [ON]')
else
if spell.target.type == 'MONSTER' then
equipSet = sets.Midcast.Wind
if string.find(spell.english,'Finale') then equipSet = sets.Midcast.Finale end
if string.find(spell.english,'Lullaby') then equipSet = sets.Midcast.Lullaby) end
else
equip(sets.Midcast.WindBuff)
if string.find(spell.english,'March') then equipSet = sets.Midcast.March end
if string.find(spell.english,'Minuet') then equipSet = sets.Midcast.Minuet end
if string.find(spell.english,'Madrigal') then equipSet = sets.Midcast.Madrigal end
if string.find(spell.english,'Ballad') then equipSet = sets.Midcast.Ballad end
if string.find(spell.english,'Scherzo') then equipSet = sets.Midcast.Scherzo end
if string.find(spell.english,'Mazurka') then equipSet = sets.Midcast.Mazurka end
if string.find(spell.english,'Paeon') then equipSet = sets.Midcast.Paeon end
end
end
end
end
its all because this is after your coding for songs
equip(equipSet)
you might ask why equipSet ={} can be changed by another function this is because its a global variable not local variable
to denote a local variable you would put it like this
local equipSet ={}