All pastes #346125 Raw Edit

Stuff

public text v1 · immutable
·published 2007-02-09 02:27 UTC
rendered paste body
  if (($1 == !startgame) && ($1- != !startgame)) {
    if (($nick isop $chan) || ($nick ishop $chan)) {
      if ($2 isnum 1-25) {
        if (%resetcyle != yes) {
          /set %cwarmins $2
          /set %cwarworld $3
          /set %cwarteam $4
          /set %cwarmins_temp %cwarmins
        }
        if (%resetcycle == yes) {
          /set %cwarmins 25
          /set %cwarmins_temp %cwarmins
        }
        msg $chan The game will start in %cwarmins_temp minutes, world %cwarworld $+ , team %cwarteam $+ .
        .timer 1 $calc(%cwarmins_temp * 60) msg $chan The game has started in world %cwarworld $+ , team %cwarteam $+ !
        .timer 1 $calc(%cwarmins_temp * 60) set %resetcycle yes
        dec %cwarmins_temp
        while (%cwarmins > 0) {
          .timer 1 60 msg $chan The game will start in %cwarmins_temp minutes, world %cwarworld $+ , team %cwarteam $+ .
          dec %cwarmins_temp 
        }
        /set %cwarmins_temp Game in progress
      }
    }
  }