[[2004/C2]] #include "spy.nqh" int a; task main() { a=0; OnRev(OUT_A+OUT_B) ;Wait(300); while (true) { if (a<2){ if (SENSOR_1 == 1 ) { PlaySound(SOUND_UP); OnFwd(OUT_A+OUT_B) ; Wait(75); OnRev(OUT_B); Wait(150); OnRev(OUT_A+OUT_B) ; a=a+1; }} else { OnRev(OUT_A+OUT_B) ; Wait(700); OnFwd(OUT_A+OUT_B) ; Wait(700); }} }