Here's one way to do it, and I've commented almost every line so you can understand what's going on.
SCAR Code:
Program Something;
const
MonsterColor= 12312041; // Random number
Procedure FightMonster;
var x,y: Integer;
begin
if FindColorTolerance(x,y,MonsterColor,MSx1,MSy1,MSx2,MSy2,4) then // Finds color
begin
Mouse(x,y,5,5,false) // Right-clicks on the color with a little randomness
Wait(200+random(300)) // For safety, and a little more humanlikeness
if ChooseOption('ttack') then Writeln('Attacked monster') // Chooses the option to attack
else Wait(2000+random(2000)) // Will wait if it didn't find "Attack"-option.
end;
end;
Enjoy.
-Knives