on *:text:!stopwatch*:#:{ if (!$2) { if (%stopwatch [ $+ [ $nick ] ] == ON) { //notice $nick You ended your stopwatch with $base(%stopwatchhr [ $+ [ $nick ] ],10,10,2) $+ : $+ $base(%stopwatchmin [ $+ [ $nick ] ],10,10,2) $+ : $+ $base(%stopwatchsec [ $+ [ $nick ] ],10,10,2) //set %stopwatch [ $+ [ $nick ] ] OFF //set %stopwatchsec [ $+ [ $nick ] ] 0 //set %stopwatchmin [ $+ [ $nick ] ] 0 //set %stopwatchhr [ $+ [ $nick ] ] 0 //timerstopwatchs [ $+ [ $nick ] ] off //timerstopwatchm1 [ $+ [ $nick ] ] off //timerstopwatchm2 [ $+ [ $nick ] ] off //timerstopwatchh1 [ $+ [ $nick ] ] off //timerstopwatchh2 [ $+ [ $nick ] ] off } elseif (%stopwatch [ $+ [ $nick ] ] == OFF) || (%stopwatch [ $+ [ $nick ] ] == $null) { //notice $nick Your stopwatch has been turned ON. //set %stopwatch [ $+ [ $nick ] ] ON //set %stopwatchsec [ $+ [ $nick ] ] 0 //timerstopwatchs [ $+ [ $nick ] ] 0 1 //inc %stopwatchsec [ $+ [ $nick ] ] 1 //timerstopwatchm1 [ $+ [ $nick ] ] 0 60 //set %stopwatchsec [ $+ [ $nick ] ] 0 //timerstopwatchm2 [ $+ [ $nick ] ] 0 60 //inc %stopwatchmin [ $+ [ $nick ] ] 1 //timerstopwatchh1 [ $+ [ $nick ] ] 0 3600 //set %stopwatchmin [ $+ [ $nick ] ] 0 //timerstopwatchh2 [ $+ [ $nick ] ] 0 3600 //inc %stopwatchhr [ $+ [ $nick ] ] 1 } } else { if ($2 == status) //notice $nick Your stopwatch is currently %stopwatch [ $+ [ $nick ] ] $+ . if (%stopwatch [ $+ [ $nick ] ] == ON) //notice $nick Your stopwatch currently reads $base(%stopwatchhr [ $+ [ $nick ] ],10,10,2) $+ : $+ $base(%stopwatchmin [ $+ [ $nick ] ],10,10,2) $+ : $+ $base(%stopwatchsec [ $+ [ $nick ] ],10,10,2) } }