Id: 4555; Nick: Len; Timestamp: 2008-01-22 18:36:01; Pasted as: mIRC
Description: Here you go Allen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
on $*:text:/^!next(\s\S+)?$/i:#nationcup:{ 
  if ($nick isop $chan) {
    if (%round < $rounds) { inc %round | topic $chan Round = %round yada yada }
    if (%round == $rounds) {
      if ($2) { unset %round | topic $chan Cup finished winning team $2 }
      else { msg $chan You've not specified the winning team. }
    }
  }
  else { notice $nick You don't have access to that command. }
}
alias rounds {
  var %x = %teams, %rounds
  while (%x != 2) { var %x = $calc(%x /2) | inc %rounds }
  return $calc(%rounds +1)
}
Options: New, Download,
, mIRC Parser;
Copyright © 2006 by Zyberdog - Some rights reserved. (Browse/Disclaimer/Stats/About)