From your post, I am guessing that you don't have the script anymore and need the entire thing?

If so, here you are...

Code:
on *:text:*you sent*:#: {
  var %file = $+(prizes,$chan,.ini)
  writeini %file Total Total $calc($readini(%file,Total,Total) + 1)
  writeini %file $nick $calc($ini(%file,$nick,0) + 1) $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($ini(%file,$2,0),$v1,0) prizes. }
}


One thing to note... this assumes that each nick's items will be numbered sequentially ... 1,2,3,4,etc. If you delete one so that you have something like 1,3,4,etc., then this is going to overwrite one of your items. Based on your post, I don't think this is an issue, so I didn't put in any checks that may not be needed. If you plan to remove items without putting them back in sequential order, then we'll need to add checks to avoid overwriting items.

Last edited by Riamus2; 05/06/11 10:14 PM.