If you just want total, then all you do is change the nick part to work like the total part...

Code:
on *:text:*you sent*:#: {
  var %file = $+(prizes,$chan,.ini)
  writeini -n %file Total Total $calc($readini(%file,Total,Total) + 1)
  writeini -n %file $nick Total $calc($readini(%file,$nick,Total) + 1)
}
on *:text:!prizes*:#: {
  var %file = $+(prizes,$chan,.ini)
  if (!$2) { msg $chan $iif($readini(%file,Total,Total),$v1,0) prizes sent to $chan $+ . }
  else { msg $chan $2 sent $iif($readini(%file,$2,Total),$v1,0) prizes. }
}


Keep in mind that if someone using the nick "Total", it will cause problems. If you think that may happen, you can replace Total with something that isn't likely to be used as a nick.

Last edited by Riamus2; 06/06/11 02:01 PM.