import java.io.*;
import java.util.StringTokenizer;
import java.util.Calendar;
import java.util.GregorianCalendar;
import java.net.InetAddress;
import java.net.URL;
import java.awt.*;
import java.awt.event.*;
import java.net.*;
public class MiniWars {
public static int MiniWarsTimer = 1320; //Timer for the actual CastleWars game (10 Minutes)
public static int StartTimer = 500; //Timer that initates the MiniWarz Game
public static int SaraScore = 0; //Team Saradomin's Score
public static int ZammyScore = 0; //Team Zamorak's Score
public static boolean MiniWarsOn = false; //Turns MiniWars On or Off
public static boolean Miniinterface = false; //Turns the CW Interface ON/OFF
public static boolean ZammyFlagCapture = false; //Tells if the Zammy Flag has been captured
public static boolean SaraFlagCapture = false; //Tells if the Sara Flag has been captured
public static boolean catoperational = true; //Makes Catapult Operational
public static int doorhealth = 1000; //Makes the Minis's doors have 100% health.
public static int maxPlayers = 50; //Max players allowed total in CW
public static int maxZammy = 0; //Max players on Zammy Team
public static int maxSara = 0; //Max players on Saradomin Team
public MiniWars() {
//misc.println("[CW] Mini Wars - (C) ByronTheOmnipotent");
}
public static boolean setUp() {
/* Skill Setup */
return true;
}
public boolean process () { //Happening every 500MS
StartTimer += 1; //Makes the Timer to start cw go up
if (StartTimer >= 600 && MiniWarsOn == false) { //If Mini wars is not on, and the start timer reaches 5 mins,
PlayerHandler.messageToAll = "A MiniWars game has begun!!!";
MiniWarsOn = true;
StartTimer = 0;
Miniinterface = false;
}
if (MiniWarsOn == true && MiniWarsTimer >= 0) {
MiniWarsTimer -= 1;
}
if (MiniWarsOn == true && MiniWarsTimer < 0) {
MiniWarsEnd();
}
return true;
}
public static void MiniLoop(int cwTimer) {
if(cwTimer == 0)
return;
}
public static void MiniWarsEnd() { //Void to end MiniWars
MiniWarsTimer = 1320;
StartTimer = 0; //Timer that initates the MiniWarz Game (loops back to 0)
SaraScore = 0; //Team Saradomin's Score
ZammyScore = 0; //Team Zamorak's Score
Miniinterface = true; //Turns the CW Interface ON/OFF
MiniWarsOn = false; //Stop Mini Wars from Running.
client.Miniinter = false;
SaraFlagCapture = false; //Makes Saradomin Flag Uncaptured
ZammyFlagCapture = false; //Makes Zamorak Flag Uncaptured
PlayerHandler.messageToAll = "A MiniWars game has just ended"; //Tell's everyone that the MiniWars game ended.
maxSara = 0;
maxZammy = 0;
}
}