global $city_cloak_on, $city_cloak_off, $city_last_attack, $city_last_cloaker, $city_cloak_time, $city_cloak_countdown; if(empty($city_tag)) { $city_tag = array( "What did you expect?", "Just when you thought it was safe to log into AO", "Prepare to be probed....", "I declare open hunting season on aliens!!", "Help Rubi-Ka put Aliens on the endangered list", "Alien, the other white meat", "Resistance is everything", "Yarrrr.. here there be.... Aliens???? Wtf!!!", "OMGOMGOMGOMGOMGOMGOMG", "fap fap!"); } if (!$city_cloak_time) { send($sender,$botcolor."Im sorry, but i dont seem to have witnessed any changes in status since my last restart."); } else { $temptime = date("H:i:s",$city_cloak_time-date("Z")) . " GMT"; $temptime2 = date("H:i:s D dS M",$city_last_attack-date("Z")) . " (GMT)"; if ( (3600-(time()-$city_cloak_time)) > 0 ) // determines if the cloak is still locked { $avilmin = date("i",3600-(time()-$city_cloak_time)); // Used to calc the remaining time in mins $avilsec = date("s",3600-(time()-$city_cloak_time)); // Used to calc the remaining time in secs if ($city_cloak_on == 1) // if the cloak is online waiting to unlock will show time remaining { send($sender,$botcolor."The cloaking device was enabled at". " ".$temptime." by ".$city_last_cloaker." and will be ". "available to turn back off in ". $avilmin." mins and ". $avilsec." secs."); } if ($city_cloak_off == 1) // if the cloak is offline waiting to unlock will show time remaining { send($sender,$botcolor."The cloaking device was disabled ". "at ".$temptime." by ".$city_last_cloaker." and will be ". "available to turn back on in ". $avilmin." mins and ". $avilsec." secs."); } } else // handles every thing after cloak comes out of locked time { // shows status of cloak if ($city_cloak_off == 1) { $mystatus = "disabled"; } else { $mystatus = "enabled"; } $rdmseed = rand(0,count($city_tag)-1); $rdmtag = $city_tag[$rdmseed]; send($sender,$botcolor."The cloaking device is currently ". "".$mystatus.".". " Last changed by ".$city_last_cloaker."". " at ".$temptime.". Last city attack was ".$temptime2.". ".$rdmtag); } } $noreply=1; ?>