This is how you do the Utsusemi one, so you'll need to find out the IDs of the Buffs you want:
Code
if spell.type == 'Ninjutsu' then
if spell.english == 'Utsusemi: Ichi' then
equip(sets.midcast.Ninjutsu['Utsusemi'])
if buffactive['Copy Image'] or buffactive['Copy Image (2)'] or buffactive['Copy Image (3)'] or buffactive['Copy Image (4+)'] then
send_command('wait 1;cancel 66;cancel 446;cancel 445;cancel 444;')
Edit, just looked for you: Hasso/Siegen use the buff ID of 353 for Hasso, 354 for Seigan.
For reference: Windower4 > Res > Buffs.lua