Code:
on *:text:+dj *:#: {
  if ($2 == off) {
    set %no-dj_ctime $ctime
    inc %OnAir. $+ $nick $calc($ctime - %dj_ctime)
    inc %OnAir.Staff $calc($ctime - %dj_ctime)
    set %DJ Playlist
    msg $chan Off
    writeini -n radio.ini DJ Current Playlist
    writeini -n radio.ini DJ Time $time
    writeini -n radio.ini DJ Date $date
  }
  else ($2 == on) {
    set %dj_ctime $ctime
    inc %OnAir.Playlist $calc($ctime - %no-dj_ctime)
    set %DJ $nick
    msg $chan On
    writeini -n radio.ini DJ Current $nick
  }  
}
on *:TEXT:!look *:#:{
  msg $chan Time: $duration($($+(%,OnAir.,$2),2))
}


Ok, so this is what I have.

So this script counts up a DJs airtime AND it counts up the total airtime for ALL DJs as a combined element. So you have 2 stats, one for 1 DJ and the other for all DJs.

I want to throw something else into fishpond here, when the DJs are off air we have a playlist so I have counted the playlist as another DJ---> inc %OnAir.Playlist $calc($ctime - %no-dj_ctime)

I want to try and work out a % airtime for total staff and playlist, Is this possible?

Code:
inc %OnAir.Staff $calc($ctime - %dj_ctime) <---Staff total
inc %OnAir.Playlist $calc($ctime - %no-dj_ctime) <--- Playlist total


So it looks like:

Code:
[10:10:12] mumra_2790: !airtime 
[10:10:13] Dinky: So far our DJs have been on air for 76% of the time!


Agian any help is welcome!