Frame 1
_root.gamequal = "HIGH";
testmode = true;
skipintro = true;
autostart = false;
stop();
fscommand ("showmenu", false);
fscommand ("allowscale", false);
scan_interval = 9;
weapondb = new Array();
platingdb = new Array();
chassisdb = new Array();
weaponref = new Array();
platingref = new Array();
chassisref = new Array();
itempedia = new Array();
weapondb[weapondb.length] = new Array();
weapondb[weapondb.length - 1][0] = "4CHAN \"NEVER RELAX\"";
weapondb[weapondb.length - 1][1] = "WEAPON: MAH LAZOR";
weapondb[weapondb.length - 1][2] = 1;
weapondb[weapondb.length - 1][3] = 1;
weapondb[weapondb.length - 1][4] = "red";
itempedia[weapondb[weapondb.length - 1][0]] = new Array();
itempedia[weapondb[weapondb.length - 1][0]].gungraphic = 16;
itempedia[weapondb[weapondb.length - 1][0]].damage = 99999 /* 0x01869F */;
itempedia[weapondb[weapondb.length - 1][0]].refirerate = 7;
itempedia[weapondb[weapondb.length - 1][0]].maxrange = 9001;
itempedia[weapondb[weapondb.length - 1][0]].minrange = 1;
itempedia[weapondb[weapondb.length - 1][0]].inaccuracy = 0;
itempedia[weapondb[weapondb.length - 1][0]].streakgraphic = 6;
itempedia[weapondb[weapondb.length - 1][0]].sparkgraphic = 6;
itempedia[weapondb[weapondb.length - 1][0]].dischargegraphic = 5;
itempedia[weapondb[weapondb.length - 1][0]].shootsound = "sdw";
itempedia[weapondb[weapondb.length - 1][0]].ricomin = 7;
itempedia[weapondb[weapondb.length - 1][0]].ricomax = 7;
itempedia[weapondb[weapondb.length - 1][0]].targetshostile = true;
itempedia[weapondb[weapondb.length - 1][0]].levelrequirement = 1;
weapondb[weapondb.length] = new Array();
weapondb[weapondb.length - 1][0] = "ZINTEK \"LP\"";
weapondb[weapondb.length - 1][1] = "WEAPON: BASIC GUN";
weapondb[weapondb.length - 1][2] = 2;
weapondb[weapondb.length - 1][3] = 250;
weapondb[weapondb.length - 1][4] = "red";
itempedia[weapondb[weapondb.length - 1][0]] = new Array();
itempedia[weapondb[weapondb.length - 1][0]].gungraphic = 10;
itempedia[weapondb[weapondb.length - 1][0]].damage = 10;
itempedia[weapondb[weapondb.length - 1][0]].refirerate = 50;
itempedia[weapondb[weapondb.length - 1][0]].maxrange = 170;
itempedia[weapondb[weapondb.length - 1][0]].minrange = 25;
itempedia[weapondb[weapondb.length - 1][0]].inaccuracy = 3;
itempedia[weapondb[weapondb.length - 1][0]].streakgraphic = 1;
itempedia[weapondb[weapondb.length - 1][0]].sparkgraphic = 1;
itempedia[weapondb[weapondb.length - 1][0]].dischargegraphic = 1;
itempedia[weapondb[weapondb.length - 1][0]].shootsound = "gun04";
itempedia[weapondb[weapondb.length - 1][0]].ricomin = 1;
itempedia[weapondb[weapondb.length - 1][0]].ricomax = 3;
itempedia[weapondb[weapondb.length - 1][0]].targetshostile = true;
itempedia[weapondb[weapondb.length - 1][0]].levelrequirement = 1;
weapondb[weapondb.length] = new Array();
weapondb[weapondb.length - 1][0] = "KEDRON \"SPKL-D4\"";
weapondb[weapondb.length - 1][1] = "WEAPON: FIREWORKS";
weapondb[weapondb.length - 1][2] = 3;
weapondb[weapondb.length - 1][3] = 450;
weapondb[weapondb.length - 1][4] = "red";
itempedia[weapondb[weapondb.length - 1][0]] = new Array();
itempedia[weapondb[weapondb.length - 1][0]].gungraphic = 14;
itempedia[weapondb[weapondb.length - 1][0]].damage = 9;
itempedia[weapondb[weapondb.length - 1][0]].refirerate = 190;
itempedia[weapondb[weapondb.length - 1][0]].maxrange = 120;
itempedia[weapondb[weapondb.length - 1][0]].minrange = 0;
itempedia[weapondb[weapondb.length - 1][0]].inaccuracy = 35;
itempedia[weapondb[weapondb.length - 1][0]].streakgraphic = 7;
itempedia[weapondb[weapondb.length - 1][0]].sparkgraphic = 7;
itempedia[weapondb[weapondb.length - 1][0]].dischargegraphic = 7;
itempedia[weapondb[weapondb.length - 1][0]].shootsound = "fwork";
itempedia[weapondb[weapondb.length - 1][0]].ricomin = 4;
itempedia[weapondb[weapondb.length - 1][0]].ricomax = 4;
itempedia[weapondb[weapondb.length - 1][0]].targetshostile = true;
itempedia[weapondb[weapondb.length - 1][0]].levelrequirement = 1;
weapondb[weapondb.length] = new Array();
weapondb[weapondb.length - 1][0] = "RAPTOR \"DT-01\"";
weapondb[weapondb.length - 1][1] = "WEAPON: BLASTER";
weapondb[weapondb.length - 1][2] = 3;
weapondb[weapondb.length - 1][3] = 500;
weapondb[weapondb.length - 1][4] = "red";
itempedia[weapondb[weapondb.length - 1][0]] = new Array();
itempedia[weapondb[weapondb.length - 1][0]].gungraphic = 1;
itempedia[weapondb[weapondb.length - 1][0]].damage = 35;
itempedia[weapondb[weapondb.length - 1][0]].refirerate = 40;
itempedia[weapondb[weapondb.length - 1][0]].maxrange = 150;
itempedia[weapondb[weapondb.length - 1][0]].minrange = 50;
itempedia[weapondb[weapondb.length - 1][0]].inaccuracy = 10;
itempedia[weapondb[weapondb.length - 1][0]].streakgraphic = 2;
itempedia[weapondb[weapondb.length - 1][0]].sparkgraphic = 2;
itempedia[weapondb[weapondb.length - 1][0]].dischargegraphic = 2;
itempedia[weapondb[weapondb.length - 1][0]].shootsound = "gun02";
itempedia[weapondb[weapondb.length - 1][0]].ricomin = 1;
itempedia[weapondb[weapondb.length - 1][0]].ricomax = 3;
itempedia[weapondb[weapondb.length - 1][0]].targetshostile = true;
itempedia[weapondb[weapondb.length - 1][0]].levelrequirement = 1;
weapondb[weapondb.length] = new Array();
weapondb[weapondb.length - 1][0] = "RAPTOR \"DT-02\"";
weapondb[weapondb.length - 1][1] = "WEAPON: BLASTER";
weapondb[weapondb.length - 1][2] = 5;
weapondb[weapondb.length - 1][3] = 700;
weapondb[weapondb.length - 1][4] = "red";
itempedia[weapondb[weapondb.length - 1][0]] = new Array();
itempedia[weapondb[weapondb.length - 1][0]].gungraphic = 2;
itempedia[weapondb[weapondb.length - 1][0]].damage = 50;
itempedia[weapondb[weapondb.length - 1][0]].refirerate = 45;
itempedia[weapondb[weapondb.length - 1][0]].maxrange = 140;
itempedia[weapondb[weapondb.length - 1][0]].minrange = 50;
itempedia[weapondb[weapondb.length - 1][0]].inaccuracy = 12;
itempedia[weapondb[weapondb.length - 1][0]].streakgraphic = 2;
itempedia[weapondb[weapondb.length - 1][0]].sparkgraphic = 3;
itempedia[weapondb[weapondb.length - 1][0]].dischargegraphic = 3;
itempedia[weapondb[weapondb.length - 1][0]].shootsound = "gun02";
itempedia[weapondb[weapondb.length - 1][0]].ricomin = 4;
itempedia[weapondb[weapondb.length - 1][0]].ricomax = 5;
itempedia[weapondb[weapondb.length - 1][0]].targetshostile = true;
itempedia[weapondb[weapondb.length - 1][0]].levelrequirement = 3;
weapondb[weapondb.length] = new Array();
weapondb[weapondb.length - 1][0] = "TORRIKA \"KJ-557\"";
weapondb[weapondb.length - 1][1] = "WEAPON: JACKHAMMER";
weapondb[weapondb.length - 1][2] = 7;
weapondb[weapondb.length - 1][3] = 900;
weapondb[weapondb.length - 1][4] = "red";
itempedia[weapondb[weapondb.length - 1][0]] = new Array();
itempedia[weapondb[weapondb.length - 1][0]].gungraphic = 12;
itempedia[weapondb[weapondb.length - 1][0]].damage = 39;
itempedia[weapondb[weapondb.length - 1][0]].refirerate = 100;
itempedia[weapondb[weapondb.length - 1][0]].maxrange = 50;
itempedia[weapondb[weapondb.length - 1][0]].minrange = 0;
itempedia[weapondb[weapondb.length - 1][0]].inaccuracy = 0;
itempedia[weapondb[weapondb.length - 1][0]].streakgraphic = 8;
itempedia[weapondb[weapondb.length - 1][0]].sparkgraphic = 9;
itempedia[weapondb[weapondb.length - 1][0]].dischargegraphic = 8;
itempedia[weapondb[weapondb.length - 1][0]].shootsound = "pact";
itempedia[weapondb[weapondb.length - 1][0]].ricomin = 1;
itempedia[weapondb[weapondb.length - 1][0]].ricomax = 3;
itempedia[weapondb[weapondb.length - 1][0]].targetshostile = true;
itempedia[weapondb[weapondb.length - 1][0]].playsanim = true;
itempedia[weapondb[weapondb.length - 1][0]].levelrequirement = 3;
weapondb[weapondb.length] = new Array();
weapondb[weapondb.length - 1][0] = "DARSIJ \"A101-1\"";
weapondb[weapondb.length - 1][1] = "WEAPON: MACHINE-GUN";
weapondb[weapondb.length - 1][2] = 8;
weapondb[weapondb.length - 1][3] = 1100;
weapondb[weapondb.length - 1][4] = "red";
itempedia[weapondb[weapondb.length - 1][0]] = new Array();
itempedia[weapondb[weapondb.length - 1][0]].gungraphic = 3;
itempedia[weapondb[weapondb.length - 1][0]].damage = 40;
itempedia[weapondb[weapondb.length - 1][0]].refirerate = 100;
itempedia[weapondb[weapondb.length - 1][0]].maxrange = 130;
itempedia[weapondb[weapondb.length - 1][0]].minrange = 25;
itempedia[weapondb[weapondb.length - 1][0]].inaccuracy = 16;
itempedia[weapondb[weapondb.length - 1][0]].streakgraphic = 3;
itempedia[weapondb[weapondb.length - 1][0]].sparkgraphic = 1;
itempedia[weapondb[weapondb.length - 1][0]].dischargegraphic = 1;
itempedia[weapondb[weapondb.length - 1][0]].shootsound = "gun04";
itempedia[weapondb[weapondb.length - 1][0]].ricomin = 4;
itempedia[weapondb[weapondb.length - 1][0]].ricomax = 5;
itempedia[weapondb[weapondb.length - 1][0]].targetshostile = true;
itempedia[weapondb[weapondb.length - 1][0]].levelrequirement = 5;
weapondb[weapondb.length] = new Array();
weapondb[weapondb.length - 1][0] = "TORRIKA \"KR-2\"";
weapondb[weapondb.length - 1][1] = "WEAPON: NAILGUN";
weapondb[weapondb.length - 1][2] = 10;
weapondb[weapondb.length - 1][3] = 1600;
weapondb[weapondb.length - 1][4] = "red";
itempedia[weapondb[weapondb.length - 1][0]] = new Array();
itempedia[weapondb[weapondb.length - 1][0]].gungraphic = 4;
itempedia[weapondb[weapondb.length - 1][0]].damage = 45;
itempedia[weapondb[weapondb.length - 1][0]].refirerate = 120;
itempedia[weapondb[weapondb.length - 1][0]].maxrange = 140;
itempedia[weapondb[weapondb.length - 1][0]].minrange = 30;
itempedia[weapondb[weapondb.length - 1][0]].inaccuracy = 16;
itempedia[weapondb[weapondb.length - 1][0]].streakgraphic = 3;
itempedia[weapondb[weapondb.length - 1][0]].sparkgraphic = 2;
itempedia[weapondb[weapondb.length - 1][0]].dischargegraphic = 2;
itempedia[weapondb[weapondb.length - 1][0]].shootsound = "gun03";
itempedia[weapondb[weapondb.length - 1][0]].ricomin = 1;
itempedia[weapondb[weapondb.length - 1][0]].ricomax = 3;
itempedia[weapondb[weapondb.length - 1][0]].targetshostile = true;
itempedia[weapondb[weapondb.length - 1][0]].levelrequirement = 7;
weapondb[weapondb.length] = new Array();
weapondb[weapondb.length - 1][0] = "ZENI \"PRS\"";
weapondb[weapondb.length - 1][1] = "TOOL: DISTRIBUTER";
weapondb[weapondb.length - 1][2] = 10;
weapondb[weapondb.length - 1][3] = 2000;
weapondb[weapondb.length - 1][4] = "purple";
itempedia[weapondb[weapondb.length - 1][0]] = new Array();
itempedia[weapondb[weapondb.length - 1][0]].gungraphic = 7;
itempedia[weapondb[weapondb.length - 1][0]].damage = -65;
itempedia[weapondb[weapondb.length - 1][0]].refirerate = 60;
itempedia[weapondb[weapondb.length - 1][0]].maxrange = 125;
itempedia[weapondb[weapondb.length - 1][0]].minrange = 0;
itempedia[weapondb[weapondb.length - 1][0]].inaccuracy = 5;
itempedia[weapondb[weapondb.length - 1][0]].streakgraphic = 4;
itempedia[weapondb[weapondb.length - 1][0]].sparkgraphic = 4;
itempedia[weapondb[weapondb.length - 1][0]].dischargegraphic = 4;
itempedia[weapondb[weapondb.length - 1][0]].shootsound = "heal02";
itempedia[weapondb[weapondb.length - 1][0]].ricomin = 1;
itempedia[weapondb[weapondb.length - 1][0]].ricomax = 3;
itempedia[weapondb[weapondb.length - 1][0]].targetshostile = false;
itempedia[weapondb[weapondb.length - 1][0]].levelrequirement = 9;
weapondb[weapondb.length] = new Array();
weapondb[weapondb.length - 1][0] = "DARSIK \"B301-1\"";
weapondb[weapondb.length - 1][1] = "WEAPON: MACHINE-GUN";
weapondb[weapondb.length - 1][2] = 11;
weapondb[weapondb.length - 1][3] = 2200;
weapondb[weapondb.length - 1][4] = "red";
itempedia[weapondb[weapondb.length - 1][0]] = new Array();
itempedia[weapondb[weapondb.length - 1][0]].gungraphic = 5;
itempedia[weapondb[weapondb.length - 1][0]].damage = 48;
itempedia[weapondb[weapondb.length - 1][0]].refirerate = 140;
itempedia[weapondb[weapondb.length - 1][0]].maxrange = 140;
itempedia[weapondb[weapondb.length - 1][0]].minrange = 30;
itempedia[weapondb[weapondb.length - 1][0]].inaccuracy = 16;
itempedia[weapondb[weapondb.length - 1][0]].streakgraphic = 2;
itempedia[weapondb[weapondb.length - 1][0]].sparkgraphic = 3;
itempedia[weapondb[weapondb.length - 1][0]].dischargegraphic = 3;
itempedia[weapondb[weapondb.length - 1][0]].shootsound = "gun01";
itempedia[weapondb[weapondb.length - 1][0]].ricomin = 4;
itempedia[weapondb[weapondb.length - 1][0]].ricomax = 5;
itempedia[weapondb[weapondb.length - 1][0]].targetshostile = true;
itempedia[weapondb[weapondb.length - 1][0]].levelrequirement = 10;
weapondb[weapondb.length] = new Array();
weapondb[weapondb.length - 1][0] = "PORANTIS \"R33\"";
weapondb[weapondb.length - 1][1] = "WEAPON: CANNON";
weapondb[weapondb.length - 1][2] = 13;
weapondb[weapondb.length - 1][3] = 2500;
weapondb[weapondb.length - 1][4] = "red";
itempedia[weapondb[weapondb.length - 1][0]] = new Array();
itempedia[weapondb[weapondb.length - 1][0]].gungraphic = 15;
itempedia[weapondb[weapondb.length - 1][0]].damage = 145;
itempedia[weapondb[weapondb.length - 1][0]].refirerate = 50;
itempedia[weapondb[weapondb.length - 1][0]].maxrange = 160;
itempedia[weapondb[weapondb.length - 1][0]].minrange = 40;
itempedia[weapondb[weapondb.length - 1][0]].inaccuracy = 2;
itempedia[weapondb[weapondb.length - 1][0]].streakgraphic = 8;
itempedia[weapondb[weapondb.length - 1][0]].sparkgraphic = 10;
itempedia[weapondb[weapondb.length - 1][0]].dischargegraphic = 10;
itempedia[weapondb[weapondb.length - 1][0]].shootsound = "cshot";
itempedia[weapondb[weapondb.length - 1][0]].ricomin = 7;
itempedia[weapondb[weapondb.length - 1][0]].ricomax = 7;
itempedia[weapondb[weapondb.length - 1][0]].targetshostile = true;
itempedia[weapondb[weapondb.length - 1][0]].levelrequirement = 10;
weapondb[weapondb.length] = new Array();
weapondb[weapondb.length - 1][0] = "CIRCES \"XT\"";
weapondb[weapondb.length - 1][1] = "WEAPON: PLASMA GUN";
weapondb[weapondb.length - 1][2] = 15;
weapondb[weapondb.length - 1][3] = 3300;
weapondb[weapondb.length - 1][4] = "red";
itempedia[weapondb[weapondb.length - 1][0]] = new Array();
itempedia[weapondb[weapondb.length - 1][0]].gungraphic = 6;
itempedia[weapondb[weapondb.length - 1][0]].damage = 260;
itempedia[weapondb[weapondb.length - 1][0]].refirerate = 30;
itempedia[weapondb[weapondb.length - 1][0]].maxrange = 200;
itempedia[weapondb[weapondb.length - 1][0]].minrange = 50;
itempedia[weapondb[weapondb.length - 1][0]].inaccuracy = 10;
itempedia[weapondb[weapondb.length - 1][0]].streakgraphic = 5;
itempedia[weapondb[weapondb.length - 1][0]].sparkgraphic = 5;
itempedia[weapondb[weapondb.length - 1][0]].dischargegraphic = 6;
itempedia[weapondb[weapondb.length - 1][0]].shootsound = "laser";
itempedia[weapondb[weapondb.length - 1][0]].ricomin = 6;
itempedia[weapondb[weapondb.length - 1][0]].ricomax = 6;
itempedia[weapondb[weapondb.length - 1][0]].targetshostile = true;
itempedia[weapondb[weapondb.length - 1][0]].levelrequirement = 11;
weapondb[weapondb.length] = new Array();
weapondb[weapondb.length - 1][0] = "ZENI \"PRZ-2\"";
weapondb[weapondb.length - 1][1] = "TOOL: DISTRIBUTER";
weapondb[weapondb.length - 1][2] = 18;
weapondb[weapondb.length - 1][3] = 4000;
weapondb[weapondb.length - 1][4] = "purple";
itempedia[weapondb[weapondb.length - 1][0]] = new Array();
itempedia[weapondb[weapondb.length - 1][0]].gungraphic = 8;
itempedia[weapondb[weapondb.length - 1][0]].damage = -80;
itempedia[weapondb[weapondb.length - 1][0]].refirerate = 80;
itempedia[weapondb[weapondb.length - 1][0]].maxrange = 135;
itempedia[weapondb[weapondb.length - 1][0]].minrange = 10;
itempedia[weapondb[weapondb.length - 1][0]].inaccuracy = 5;
itempedia[weapondb[weapondb.length - 1][0]].streakgraphic = 4;
itempedia[weapondb[weapondb.length - 1][0]].sparkgraphic = 4;
itempedia[weapondb[weapondb.length - 1][0]].dischargegraphic = 4;
itempedia[weapondb[weapondb.length - 1][0]].shootsound = "heal01";
itempedia[weapondb[weapondb.length - 1][0]].ricomin = 1;
itempedia[weapondb[weapondb.length - 1][0]].ricomax = 3;
itempedia[weapondb[weapondb.length - 1][0]].targetshostile = false;
itempedia[weapondb[weapondb.length - 1][0]].levelrequirement = 12;
weapondb[weapondb.length] = new Array();
weapondb[weapondb.length - 1][0] = "DEVENGE \"STK\"";
weapondb[weapondb.length - 1][1] = "WEAPON: RIFLE";
weapondb[weapondb.length - 1][2] = 20;
weapondb[weapondb.length - 1][3] = 5000;
weapondb[weapondb.length - 1][4] = "red";
itempedia[weapondb[weapondb.length - 1][0]] = new Array();
itempedia[weapondb[weapondb.length - 1][0]].gungraphic = 11;
itempedia[weapondb[weapondb.length - 1][0]].damage = 320;
itempedia[weapondb[weapondb.length - 1][0]].refirerate = 30;
itempedia[weapondb[weapondb.length - 1][0]].maxrange = 200;
itempedia[weapondb[weapondb.length - 1][0]].minrange = 70;
itempedia[weapondb[weapondb.length - 1][0]].inaccuracy = 2;
itempedia[weapondb[weapondb.length - 1][0]].streakgraphic = 2;
itempedia[weapondb[weapondb.length - 1][0]].sparkgraphic = 3;
itempedia[weapondb[weapondb.length - 1][0]].dischargegraphic = 3;
itempedia[weapondb[weapondb.length - 1][0]].shootsound = "snipe";
itempedia[weapondb[weapondb.length - 1][0]].ricomin = 1;
itempedia[weapondb[weapondb.length - 1][0]].ricomax = 3;
itempedia[weapondb[weapondb.length - 1][0]].targetshostile = true;
itempedia[weapondb[weapondb.length - 1][0]].playsanim = true;
itempedia[weapondb[weapondb.length - 1][0]].levelrequirement = 13;
weapondb[weapondb.length] = new Array();
weapondb[weapondb.length - 1][0] = "DARSIK \"R200-7\"";
weapondb[weapondb.length - 1][1] = "WEAPON: ASSULT RIFLE";
weapondb[weapondb.length - 1][2] = 22;
weapondb[weapondb.length - 1][3] = 6100;
weapondb[weapondb.length - 1][4] = "red";
itempedia[weapondb[weapondb.length - 1][0]] = new Array();
itempedia[weapondb[weapondb.length - 1][0]].gungraphic = 13;
itempedia[weapondb[weapondb.length - 1][0]].damage = 65;
itempedia[weapondb[weapondb.length - 1][0]].refirerate = 150;
itempedia[weapondb[weapondb.length - 1][0]].maxrange = 140;
itempedia[weapondb[weapondb.length - 1][0]].minrange = 30;
itempedia[weapondb[weapondb.length - 1][0]].inaccuracy = 5;
itempedia[weapondb[weapondb.length - 1][0]].streakgraphic = 2;
itempedia[weapondb[weapondb.length - 1][0]].sparkgraphic = 3;
itempedia[weapondb[weapondb.length - 1][0]].dischargegraphic = 3;
itempedia[weapondb[weapondb.length - 1][0]].shootsound = "gun02";
itempedia[weapondb[weapondb.length - 1][0]].ricomin = 1;
itempedia[weapondb[weapondb.length - 1][0]].ricomax = 3;
itempedia[weapondb[weapondb.length - 1][0]].targetshostile = true;
itempedia[weapondb[weapondb.length - 1][0]].levelrequirement = 14;
weapondb[weapondb.length] = new Array();
weapondb[weapondb.length - 1][0] = "THEMODIN \"CEREBUS\"";
weapondb[weapondb.length - 1][1] = "WEAPON: TESLACOIL";
weapondb[weapondb.length - 1][2] = 25;
weapondb[weapondb.length - 1][3] = 7500;
weapondb[weapondb.length - 1][4] = "red";
itempedia[weapondb[weapondb.length - 1][0]] = new Array();
itempedia[weapondb[weapondb.length - 1][0]].gungraphic = 9;
itempedia[weapondb[weapondb.length - 1][0]].damage = 220;
itempedia[weapondb[weapondb.length - 1][0]].refirerate = 50;
itempedia[weapondb[weapondb.length - 1][0]].maxrange = 220;
itempedia[weapondb[weapondb.length - 1][0]].minrange = 5;
itempedia[weapondb[weapondb.length - 1][0]].inaccuracy = 0;
itempedia[weapondb[weapondb.length - 1][0]].streakgraphic = 6;
itempedia[weapondb[weapondb.length - 1][0]].sparkgraphic = 6;
itempedia[weapondb[weapondb.length - 1][0]].dischargegraphic = 5;
itempedia[weapondb[weapondb.length - 1][0]].shootsound = "biglaser";
itempedia[weapondb[weapondb.length - 1][0]].ricomin = 7;
itempedia[weapondb[weapondb.length - 1][0]].ricomax = 7;
itempedia[weapondb[weapondb.length - 1][0]].targetshostile = true;
itempedia[weapondb[weapondb.length - 1][0]].levelrequirement = 14;
weapondb[weapondb.length] = new Array();
weapondb[weapondb.length - 1][0] = "SCREAM SHARD";
weapondb[weapondb.length - 1][1] = "WEAPON: LASER";
weapondb[weapondb.length - 1][2] = 30;
weapondb[weapondb.length - 1][3] = 10000;
weapondb[weapondb.length - 1][4] = "red";
itempedia[weapondb[weapondb.length - 1][0]] = new Array();
itempedia[weapondb[weapondb.length - 1][0]].gungraphic = 17;
itempedia[weapondb[weapondb.length - 1][0]].damage = 105;
itempedia[weapondb[weapondb.length - 1][0]].refirerate = 120;
itempedia[weapondb[weapondb.length - 1][0]].maxrange = 200;
itempedia[weapondb[weapondb.length - 1][0]].minrange = 5;
itempedia[weapondb[weapondb.length - 1][0]].inaccuracy = 0;
itempedia[weapondb[weapondb.length - 1][0]].streakgraphic = 8;
itempedia[weapondb[weapondb.length - 1][0]].sparkgraphic = 8;
itempedia[weapondb[weapondb.length - 1][0]].dischargegraphic = 9;
itempedia[weapondb[weapondb.length - 1][0]].shootsound = "plas";
itempedia[weapondb[weapondb.length - 1][0]].ricomin = 5;
itempedia[weapondb[weapondb.length - 1][0]].ricomax = 5;
itempedia[weapondb[weapondb.length - 1][0]].targetshostile = true;
itempedia[weapondb[weapondb.length - 1][0]].levelrequirement = 16;
weapondb[weapondb.length] = new Array();
weapondb[weapondb.length - 1][0] = "PRIZE DARSIK \"R200-Z\"";
weapondb[weapondb.length - 1][1] = "WEAPON: MACHINE-GUN";
weapondb[weapondb.length - 1][2] = 11;
weapondb[weapondb.length - 1][3] = 10000;
weapondb[weapondb.length - 1][4] = "red";
itempedia[weapondb[weapondb.length - 1][0]] = new Array();
itempedia[weapondb[weapondb.length - 1][0]].gungraphic = 18;
itempedia[weapondb[weapondb.length - 1][0]].damage = 70;
itempedia[weapondb[weapondb.length - 1][0]].refirerate = 160;
itempedia[weapondb[weapondb.length - 1][0]].maxrange = 150;
itempedia[weapondb[weapondb.length - 1][0]].minrange = 20;
itempedia[weapondb[weapondb.length - 1][0]].inaccuracy = 10;
itempedia[weapondb[weapondb.length - 1][0]].streakgraphic = 2;
itempedia[weapondb[weapondb.length - 1][0]].sparkgraphic = 3;
itempedia[weapondb[weapondb.length - 1][0]].dischargegraphic = 3;
itempedia[weapondb[weapondb.length - 1][0]].shootsound = "gun01";
itempedia[weapondb[weapondb.length - 1][0]].ricomin = 4;
itempedia[weapondb[weapondb.length - 1][0]].ricomax = 5;
itempedia[weapondb[weapondb.length - 1][0]].targetshostile = true;
itempedia[weapondb[weapondb.length - 1][0]].levelrequirement = 30;
platingdb[platingdb.length] = new Array();
platingdb[platingdb.length - 1][0] = "4CHAN \"ANON\"";
platingdb[platingdb.length - 1][1] = "PLATING: LEGENDARY THREAD";
platingdb[platingdb.length - 1][2] = 3;
platingdb[platingdb.length - 1][3] = 1;
platingdb[platingdb.length - 1][4] = "blue";
itempedia[platingdb[platingdb.length - 1][0]] = new Array();
itempedia[platingdb[platingdb.length - 1][0]].platinggraphic = 13;
itempedia[platingdb[platingdb.length - 1][0]].shielding = 99999 /* 0x01869F */;
itempedia[platingdb[platingdb.length - 1][0]].description = "WEIGHTLESS AND ANONYMOUS, THE 'ANON' IS UNABLE TO BE DESTROYED.";
itempedia[platingdb[platingdb.length - 1][0]].levelrequirement = 1;
platingdb[platingdb.length] = new Array();
platingdb[platingdb.length - 1][0] = "SANTRIN \"AURO\"";
platingdb[platingdb.length - 1][1] = "PLATING: FIBERGLASS";
platingdb[platingdb.length - 1][2] = 3;
platingdb[platingdb.length - 1][3] = 300;
platingdb[platingdb.length - 1][4] = "blue";
itempedia[platingdb[platingdb.length - 1][0]] = new Array();
itempedia[platingdb[platingdb.length - 1][0]].platinggraphic = 9;
itempedia[platingdb[platingdb.length - 1][0]].shielding = 200;
itempedia[platingdb[platingdb.length - 1][0]].description = "LIGHTWEIGHT AND PORTABLE, THE 'AURO' DELIVERS BASIC PROTECTION AGAINST WEAPONS AND VERSATILITY AT A VERY AFFORDABLE PRICE.";
itempedia[platingdb[platingdb.length - 1][0]].levelrequirement = 1;
platingdb[platingdb.length] = new Array();
platingdb[platingdb.length - 1][0] = "CHROMETEK \"LIGHT\"";
platingdb[platingdb.length - 1][1] = "PLATING: DEFLECTOR";
platingdb[platingdb.length - 1][2] = 4;
platingdb[platingdb.length - 1][3] = 550;
platingdb[platingdb.length - 1][4] = "blue";
itempedia[platingdb[platingdb.length - 1][0]] = new Array();
itempedia[platingdb[platingdb.length - 1][0]].platinggraphic = 1;
itempedia[platingdb[platingdb.length - 1][0]].shielding = 300;
itempedia[platingdb[platingdb.length - 1][0]].description = "THE CHROMETEK STEEL RECYCLING COMPANY HAVE ONLY RECENTLY REALISED THE PROFITABLE VENTURE OF SELLING LOW-END PLATING FOR BOTARENA PARTICIPANTS.";
itempedia[platingdb[platingdb.length - 1][0]].levelrequirement = 1;
platingdb[platingdb.length] = new Array();
platingdb[platingdb.length - 1][0] = "OVERWATCH \"R200\"";
platingdb[platingdb.length - 1][1] = "PLATING: DEFLECTOR";
platingdb[platingdb.length - 1][2] = 6;
platingdb[platingdb.length - 1][3] = 800;
platingdb[platingdb.length - 1][4] = "blue";
itempedia[platingdb[platingdb.length - 1][0]] = new Array();
itempedia[platingdb[platingdb.length - 1][0]].platinggraphic = 2;
itempedia[platingdb[platingdb.length - 1][0]].shielding = 500;
itempedia[platingdb[platingdb.length - 1][0]].description = "THE OVERWATCH \"R200\" IS A SUITABLE CHOICE FOR THOSE NEW TO STEPPING INTO BOTARENA, BECAUSE OF ITS COST-EFFICIENCY AND PROTECTION RATING.";
itempedia[platingdb[platingdb.length - 1][0]].levelrequirement = 2;
platingdb[platingdb.length] = new Array();
platingdb[platingdb.length - 1][0] = "GAIACORP \"LB-MK2\"";
platingdb[platingdb.length - 1][1] = "PLATING: DEFLECTOR";
platingdb[platingdb.length - 1][2] = 8;
platingdb[platingdb.length - 1][3] = 1200;
platingdb[platingdb.length - 1][4] = "blue";
itempedia[platingdb[platingdb.length - 1][0]] = new Array();
itempedia[platingdb[platingdb.length - 1][0]].platinggraphic = 6;
itempedia[platingdb[platingdb.length - 1][0]].shielding = 700;
itempedia[platingdb[platingdb.length - 1][0]].description = "INSPIRED BY THE EXTINCT LADYBUGS OF NATURE, THIS PLATING IS ACLAIMED AS ONE OF THE MOST RELIABLE IN IT'S CLASS.";
itempedia[platingdb[platingdb.length - 1][0]].levelrequirement = 4;
platingdb[platingdb.length] = new Array();
platingdb[platingdb.length - 1][0] = "OVERWATCH \"R760\"";
platingdb[platingdb.length - 1][1] = "PLATING: SHIELDING";
platingdb[platingdb.length - 1][2] = 9;
platingdb[platingdb.length - 1][3] = 1600;
platingdb[platingdb.length - 1][4] = "blue";
itempedia[platingdb[platingdb.length - 1][0]] = new Array();
itempedia[platingdb[platingdb.length - 1][0]].platinggraphic = 3;
itempedia[platingdb[platingdb.length - 1][0]].shielding = 900;
itempedia[platingdb[platingdb.length - 1][0]].description = "THE OVERWATCH \"R760\" IS A SUPERIOR SHEILDING CHOICE FOR THOSE WITH A MORE EXPENSIVE TASTE. 'PEACE OF MIND FOR THE COMPETITIVE MINDED'.";
itempedia[platingdb[platingdb.length - 1][0]].levelrequirement = 6;
platingdb[platingdb.length] = new Array();
platingdb[platingdb.length - 1][0] = "GAIACORP \"SC-RS\"";
platingdb[platingdb.length - 1][1] = "PLATING: SHIELDING";
platingdb[platingdb.length - 1][2] = 12;
platingdb[platingdb.length - 1][3] = 3000;
platingdb[platingdb.length - 1][4] = "blue";
itempedia[platingdb[platingdb.length - 1][0]] = new Array();
itempedia[platingdb[platingdb.length - 1][0]].platinggraphic = 4;
itempedia[platingdb[platingdb.length - 1][0]].shielding = 1300;
itempedia[platingdb[platingdb.length - 1][0]].description = "THE TRILICON CORPERATION HAS ACCEPTED A BID TO MERGE WITH GAIACORP, WITH A VISION TO CORNER THE 'TRENDY' YOUTH PLATING MARKET.";
itempedia[platingdb[platingdb.length - 1][0]].levelrequirement = 8;
platingdb[platingdb.length] = new Array();
platingdb[platingdb.length - 1][0] = "GAIACORP \"EG-PR\"";
platingdb[platingdb.length - 1][1] = "PLATING: SENTINEL";
platingdb[platingdb.length - 1][2] = 15;
platingdb[platingdb.length - 1][3] = 4500;
platingdb[platingdb.length - 1][4] = "blue";
itempedia[platingdb[platingdb.length - 1][0]] = new Array();
itempedia[platingdb[platingdb.length - 1][0]].platinggraphic = 7;
itempedia[platingdb[platingdb.length - 1][0]].shielding = 1700;
itempedia[platingdb[platingdb.length - 1][0]].description = "STYLISH AND POWERFUL, THE \"EG-PR\" PROVES TO THE USER'S COMPETITION THAT LOOKS DON'T ALWAYS COMPROMISE PERFORMANCE.";
itempedia[platingdb[platingdb.length - 1][0]].levelrequirement = 10;
platingdb[platingdb.length] = new Array();
platingdb[platingdb.length - 1][0] = "OVERWATCH \"Z\"";
platingdb[platingdb.length - 1][1] = "PLATING: SENTINEL";
platingdb[platingdb.length - 1][2] = 19;
platingdb[platingdb.length - 1][3] = 6000;
platingdb[platingdb.length - 1][4] = "blue";
itempedia[platingdb[platingdb.length - 1][0]] = new Array();
itempedia[platingdb[platingdb.length - 1][0]].platinggraphic = 5;
itempedia[platingdb[platingdb.length - 1][0]].shielding = 2000;
itempedia[platingdb[platingdb.length - 1][0]].description = "RECENTLY SURPASSED BY NEWER 'GUARDIAN' CLASS PLATING, THE OVERWATCH \"Z\" STILL MANAGES TO KEEP IT'S COMPETITIVE HOLD ON THE PLATING MARKET.";
itempedia[platingdb[platingdb.length - 1][0]].levelrequirement = 12;
platingdb[platingdb.length] = new Array();
platingdb[platingdb.length - 1][0] = "GAIACORP \"EG-SR\"";
platingdb[platingdb.length - 1][1] = "PLATING: GUARDIAN";
platingdb[platingdb.length - 1][2] = 22;
platingdb[platingdb.length - 1][3] = 7800;
platingdb[platingdb.length - 1][4] = "blue";
itempedia[platingdb[platingdb.length - 1][0]] = new Array();
itempedia[platingdb[platingdb.length - 1][0]].platinggraphic = 8;
itempedia[platingdb[platingdb.length - 1][0]].shielding = 2450;
itempedia[platingdb[platingdb.length - 1][0]].description = "CONCENTRATING ON IMPROVING THE COMPANY'S GROWING REPUTATION, GAIACORP HAVE SPENT MONTHS DEVELOPING THE \"EG-SR\" INTO ONE OF THE STRONGEST PLATING AVAILIBLE.";
itempedia[platingdb[platingdb.length - 1][0]].levelrequirement = 13;
platingdb[platingdb.length] = new Array();
platingdb[platingdb.length - 1][0] = "KURON \"SHRED-MK3\"";
platingdb[platingdb.length - 1][1] = "PLATING: GUARDIAN";
platingdb[platingdb.length - 1][2] = 25;
platingdb[platingdb.length - 1][3] = 9500;
platingdb[platingdb.length - 1][4] = "blue";
itempedia[platingdb[platingdb.length - 1][0]] = new Array();
itempedia[platingdb[platingdb.length - 1][0]].platinggraphic = 10;
itempedia[platingdb[platingdb.length - 1][0]].shielding = 2950;
itempedia[platingdb[platingdb.length - 1][0]].description = "BREATHTAKING IN BOTH LOOKS AND DURABILITY, THE \"SHRED-MK3\" IS HAILED AS THE MOST IMPRESSIVE PLATING CURRENTLY AVAILABLE.";
itempedia[platingdb[platingdb.length - 1][0]].levelrequirement = 15;
platingdb[platingdb.length] = new Array();
platingdb[platingdb.length - 1][0] = "PRIZE OVERWATCH \"R760\"";
platingdb[platingdb.length - 1][1] = "PLATING: SHIELDING";
platingdb[platingdb.length - 1][2] = 9;
platingdb[platingdb.length - 1][3] = 4500;
platingdb[platingdb.length - 1][4] = "blue";
itempedia[platingdb[platingdb.length - 1][0]] = new Array();
itempedia[platingdb[platingdb.length - 1][0]].platinggraphic = 11;
itempedia[platingdb[platingdb.length - 1][0]].shielding = 2000;
itempedia[platingdb[platingdb.length - 1][0]].description = "AS THE WINNER OF BOT ARENA, YOU HAVE WON THIS GOLDEN PLATING, AND OTHER GOLDEN ITEMS. CONGRATS!";
itempedia[platingdb[platingdb.length - 1][0]].levelrequirement = 30;
chassisdb[chassisdb.length] = new Array();
chassisdb[chassisdb.length - 1][0] = "4CHAN \"MOOT\"";
chassisdb[chassisdb.length - 1][1] = "CHASSIS: OVER 9000!!!";
chassisdb[chassisdb.length - 1][2] = 1;
chassisdb[chassisdb.length - 1][3] = 1;
chassisdb[chassisdb.length - 1][4] = 9001;
chassisdb[chassisdb.length - 1][5] = "green";
itempedia[chassisdb[chassisdb.length - 1][0]] = new Array();
itempedia[chassisdb[chassisdb.length - 1][0]].chassisgraphic = 13;
itempedia[chassisdb[chassisdb.length - 1][0]].shielding = 1;
itempedia[chassisdb[chassisdb.length - 1][0]].description = "4CHAN'S SPECIAL CHASIS DEFIES PHYSICS";
itempedia[chassisdb[chassisdb.length - 1][0]].levelrequirement = 1;
chassisdb[chassisdb.length] = new Array();
chassisdb[chassisdb.length - 1][0] = "AKAUMIN \"DLZ-250\"";
chassisdb[chassisdb.length - 1][1] = "CHASSIS: MEDIUM";
chassisdb[chassisdb.length - 1][2] = 8;
chassisdb[chassisdb.length - 1][3] = 4000;
chassisdb[chassisdb.length - 1][4] = 22;
chassisdb[chassisdb.length - 1][5] = "green";
chassisdb[chassisdb.length] = new Array();
chassisdb[chassisdb.length - 1][0] = "AKAUMIN \"DLZ-100\"";
chassisdb[chassisdb.length - 1][1] = "CHASSIS: LIGHT";
chassisdb[chassisdb.length - 1][2] = 5;
chassisdb[chassisdb.length - 1][3] = 3000;
chassisdb[chassisdb.length - 1][4] = 16;
chassisdb[chassisdb.length - 1][5] = "green";
itempedia[chassisdb[chassisdb.length - 1][0]] = new Array();
itempedia[chassisdb[chassisdb.length - 1][0]].chassisgraphic = 1;
itempedia[chassisdb[chassisdb.length - 1][0]].shielding = 50;
itempedia[chassisdb[chassisdb.length - 1][0]].description = "THE AKAUMIN CORPERATION ARE WELL KNOWN FOR THEIR RELIABLE CIRCUITBOARDS AND VEHICLES. COMBINING THE TWO FOR USE IN BOTARENA IS A NEW CONCEPT FOR AKAUMIN.";
itempedia[chassisdb[chassisdb.length - 1][0]].levelrequirement = 1;
chassisdb[chassisdb.length] = new Array();
chassisdb[chassisdb.length - 1][0] = "AKAUMIN \"DLZ-250\"";
chassisdb[chassisdb.length - 1][1] = "CHASSIS: MEDIUM";
chassisdb[chassisdb.length - 1][2] = 8;
chassisdb[chassisdb.length - 1][3] = 4000;
chassisdb[chassisdb.length - 1][4] = 22;
chassisdb[chassisdb.length - 1][5] = "green";
itempedia[chassisdb[chassisdb.length - 1][0]] = new Array();
itempedia[chassisdb[chassisdb.length - 1][0]].chassisgraphic = 2;
itempedia[chassisdb[chassisdb.length - 1][0]].shielding = 100;
itempedia[chassisdb[chassisdb.length - 1][0]].description = "PROVIDING ADDITIONAL WEIGHT HANDLING AND STABILITY, THE \"DLZ-250\" IS A VERY IDEAL CHOICE FOR MEDIUM LEVEL BOTAREA CONTESTANTS.";
itempedia[chassisdb[chassisdb.length - 1][0]].levelrequirement = 4;
chassisdb[chassisdb.length] = new Array();
chassisdb[chassisdb.length - 1][0] = "KHACOR \"SMARTMOVE\"";
chassisdb[chassisdb.length - 1][1] = "CHASSIS: HEAVY";
chassisdb[chassisdb.length - 1][2] = 10;
chassisdb[chassisdb.length - 1][3] = 5500;
chassisdb[chassisdb.length - 1][4] = 30;
chassisdb[chassisdb.length - 1][5] = "green";
itempedia[chassisdb[chassisdb.length - 1][0]] = new Array();
itempedia[chassisdb[chassisdb.length - 1][0]].chassisgraphic = 3;
itempedia[chassisdb[chassisdb.length - 1][0]].shielding = 200;
itempedia[chassisdb[chassisdb.length - 1][0]].description = "KHACOR HOLD A REPUTATION AS ONE OF THE LEADERS IN BOTARENA CHASSIS DEVELOPMENT. THE \"SMARTMOVE\" PROVIDES EFFICIENCY AT AN AFFORDABLE PRICE.";
itempedia[chassisdb[chassisdb.length - 1][0]].levelrequirement = 6;
chassisdb[chassisdb.length] = new Array();
chassisdb[chassisdb.length - 1][0] = "XEROI \"CLR-Z050\"";
chassisdb[chassisdb.length - 1][1] = "CHASSIS: ULTRA";
chassisdb[chassisdb.length - 1][2] = 15;
chassisdb[chassisdb.length - 1][3] = 7500;
chassisdb[chassisdb.length - 1][4] = 50;
chassisdb[chassisdb.length - 1][5] = "green";
itempedia[chassisdb[chassisdb.length - 1][0]] = new Array();
itempedia[chassisdb[chassisdb.length - 1][0]].chassisgraphic = 4;
itempedia[chassisdb[chassisdb.length - 1][0]].shielding = 400;
itempedia[chassisdb[chassisdb.length - 1][0]].description = "AN HONORABLE NAME IN CHASSIS DEVELOPMENT, YOU CAN TRUST THAT ANYTHING FROM XEROI WILL BE SUPIRIOR FROM ALL OTHERS, FOR THE RIGHT PRICE OF COURSE...";
itempedia[chassisdb[chassisdb.length - 1][0]].levelrequirement = 8;
chassisdb[chassisdb.length] = new Array();
chassisdb[chassisdb.length - 1][0] = "KHACOR \"ELECTRON\"";
chassisdb[chassisdb.length - 1][1] = "CHASSIS: ULTRA";
chassisdb[chassisdb.length - 1][2] = 19;
chassisdb[chassisdb.length - 1][3] = 8000;
chassisdb[chassisdb.length - 1][4] = 64;
chassisdb[chassisdb.length - 1][5] = "green";
itempedia[chassisdb[chassisdb.length - 1][0]] = new Array();
itempedia[chassisdb[chassisdb.length - 1][0]].chassisgraphic = 5;
itempedia[chassisdb[chassisdb.length - 1][0]].shielding = 550;
itempedia[chassisdb[chassisdb.length - 1][0]].description = "AN HONORABLE NAME IN CHASSIS DEVELOPMENT, YOU CAN TRUST THAT ANYTHING FROM XEROI WILL BE SUPIRIOR FROM ALL OTHERS, FOR THE RIGHT PRICE OF COURSE...";
itempedia[chassisdb[chassisdb.length - 1][0]].levelrequirement = 11;
chassisdb[chassisdb.length] = new Array();
chassisdb[chassisdb.length - 1][0] = "NTECH \"DURICHAS\"";
chassisdb[chassisdb.length - 1][1] = "CHASSIS: ULTRA";
chassisdb[chassisdb.length - 1][2] = 26;
chassisdb[chassisdb.length - 1][3] = 12000;
chassisdb[chassisdb.length - 1][4] = 70;
chassisdb[chassisdb.length - 1][5] = "green";
itempedia[chassisdb[chassisdb.length - 1][0]] = new Array();
itempedia[chassisdb[chassisdb.length - 1][0]].chassisgraphic = 6;
itempedia[chassisdb[chassisdb.length - 1][0]].shielding = 1200;
itempedia[chassisdb[chassisdb.length - 1][0]].description = "AN HONORABLE NAME IN CHASSIS DEVELOPMENT, YOU CAN TRUST THAT ANYTHING FROM XEROI WILL BE SUPIRIOR FROM ALL OTHERS, FOR THE RIGHT PRICE OF COURSE...";
itempedia[chassisdb[chassisdb.length - 1][0]].levelrequirement = 12;
chassisdb[chassisdb.length] = new Array();
chassisdb[chassisdb.length - 1][0] = "XEROI \"DELIVERANCE\"";
chassisdb[chassisdb.length - 1][1] = "CHASSIS: ULTRA";
chassisdb[chassisdb.length - 1][2] = 30;
chassisdb[chassisdb.length - 1][3] = 13000;
chassisdb[chassisdb.length - 1][4] = 85;
chassisdb[chassisdb.length - 1][5] = "green";
itempedia[chassisdb[chassisdb.length - 1][0]] = new Array();
itempedia[chassisdb[chassisdb.length - 1][0]].chassisgraphic = 7;
itempedia[chassisdb[chassisdb.length - 1][0]].shielding = 1000;
itempedia[chassisdb[chassisdb.length - 1][0]].description = "AN HONORABLE NAME IN CHASSIS DEVELOPMENT, YOU CAN TRUST THAT ANYTHING FROM XEROI WILL BE SUPIRIOR FROM ALL OTHERS, FOR THE RIGHT PRICE OF COURSE...";
itempedia[chassisdb[chassisdb.length - 1][0]].levelrequirement = 15;
chassisdb[chassisdb.length] = new Array();
chassisdb[chassisdb.length - 1][0] = "PRIZE XEROI \"DELIVERANCE\"";
chassisdb[chassisdb.length - 1][1] = "CHASSIS: ULTRA";
chassisdb[chassisdb.length - 1][2] = 30;
chassisdb[chassisdb.length - 1][3] = 25000;
chassisdb[chassisdb.length - 1][4] = 85;
chassisdb[chassisdb.length - 1][5] = "green";
itempedia[chassisdb[chassisdb.length - 1][0]] = new Array();
itempedia[chassisdb[chassisdb.length - 1][0]].chassisgraphic = 8;
itempedia[chassisdb[chassisdb.length - 1][0]].shielding = 1200;
itempedia[chassisdb[chassisdb.length - 1][0]].description = "AS THE WINNER OF BOT ARENA, YOU HAVE WON THIS GOLDEN CHASSIS, AND OTHER GOLDEN ITEMS. CONGRATS!";
itempedia[chassisdb[chassisdb.length - 1][0]].levelrequirement = 30;
generatereferences = function (target) {
rf = 0;
for(;;){
if (rf >= eval (target + "db").length) {
return(undefined);
}
eval (target + "ref")[String(eval (target + "db")[rf][0])] = eval (target + "db")[rf];
rf++;
};
};
generatereferences("weapon");
generatereferences("plating");
generatereferences("chassis");
this.createEmptyMovieClip("sholder", 3100201);
sndmgr = new Sound(sholder);
sholder.volpercent = 100;
sholder.setvol = function (perc) {
this.volpercent = perc;
sndmgr.setVolume((perc / 100) * sndset.sndvol);
};
sholder.fadeout = function (speed) {
this.speed = speed;
this.onEnterFrame = function () {
this.volpercent = this.volpercent - this.speed;
sndmgr.setVolume((this.volpercent / 100) * sndset.sndvol);
if (this.volpercent <= 0) {
this.volpercent = 0;
sndmgr.setVolume((this.volpercent / 100) * sndset.sndvol);
delete this.speed;
delete this.onEnterFrame;
}
};
};
sholder.fadein = function (speed) {
this.speed = speed;
this.onEnterFrame = function () {
this.volpercent = this.volpercent + this.speed;
sndmgr.setVolume((this.volpercent / 100) * sndset.sndvol);
if (this.volpercent >= 100) {
this.volpercent = 100;
sndmgr.setVolume((this.volpercent / 100) * sndset.sndvol);
delete this.speed;
delete this.onEnterFrame;
}
};
};
this.createEmptyMovieClip("mholder", 3100200);
musmgr = new Sound(mholder);
mholder.volpercent = 100;
mholder.setvol = function (perc) {
this.volpercent = perc;
musmgr.setVolume((perc / 100) * sndset.musvol);
};
mholder.fadeout = function (speed) {
trace("FADEOUT ISSUED");
this.speed = speed;
this.onEnterFrame = function () {
this.volpercent = this.volpercent - this.speed;
musmgr.setVolume((this.volpercent / 100) * sndset.musvol);
if (this.volpercent <= 0) {
this.volpercent = 0;
musmgr.setVolume((this.volpercent / 100) * sndset.musvol);
delete this.speed;
delete this.onEnterFrame;
}
};
};
mholder.fadein = function (speed) {
this.speed = speed;
this.onEnterFrame = function () {
this.volpercent = this.volpercent + this.speed;
musmgr.setVolume((this.volpercent / 100) * sndset.musvol);
if (this.volpercent >= 100) {
this.volpercent = 100;
musmgr.setVolume((this.volpercent / 100) * sndset.musvol);
delete this.speed;
delete this.onEnterFrame;
}
};
};
mholder.setvol(0);
sholder.setvol(0);
sndset = new Object();
sndset.true_shot = true;
sndset.true_hit = true;
sndset.true_miss = true;
sndset.false_shot = true;
sndset.false_hit = true;
sndset.false_miss = true;
sndset.misc = true;
sndset.music = true;
sndset.musvol = 35;
sndset.sndvol = 70;
playsound = function (sndname, sndtype) {
if (sndtype == "music") {
musmgr.attachSound(sndname);
musmgr.start(0, 999999);
return(undefined);
}
if (eval ("sndset." + sndtype) == true) {
sndmgr.attachSound(sndname);
trace(sndname);
sndmgr.start(0, 1);
}
};
sample.swapDepths(800093);
fader.swapDepths(200003);
lh._alpha = -10;
aretheresaves = function () {
trace("CHECKING FOR SAVES");
my_so = SharedObject.getLocal("ba2sd");
values = 0;
for (var _local1 in my_so.data) {
trace((_local1 + ": ") + my_so.data[_local1]);
values++;
}
trace("SAVE VALUES: " + values);
if (values == 0) {
my_so.flush();
delete my_so;
return(false);
}
my_so.flush();
delete my_so;
return(true);
};
savegame = function () {
my_so = SharedObject.getLocal("ba2sd");
my_so.data.botdb = botdb;
my_so.data.inventorydb = inventorydb;
my_so.data.playerlevel = playerlevel;
my_so.data.cash = cash;
my_so.data.wongame = wongame;
my_so.data.playercolor = playercolor;
my_so.flush();
delete my_so;
};
loadgame = function () {
my_so = SharedObject.getLocal("ba2sd");
values = 0;
for (var _local1 in my_so.data) {
trace((_local1 + ": ") + my_so.data[_local1]);
values++;
}
botdb = my_so.data.botdb;
inventorydb = my_so.data.inventorydb;
playerlevel = my_so.data.playerlevel;
cash = my_so.data.cash;
wongame = my_so.data.wongame;
playercolor = my_so.data.playercolor;
my_so.flush();
delete my_so;
};
onEnterFrame = function () {
if (lh._alpha < 100) {
lh._alpha = lh._alpha + 3;
}
if (loadpercent == 100) {
trace("loading complete");
this.onEnterFrame = function () {
if (lh._alpha > 0) {
lh._alpha = lh._alpha - 3;
return(undefined);
}
if (skipintro == true) {
gotoAndStop ("menu");
} else {
gotoAndStop ("intro");
}
delete loadedtext;
delete i;
delete eachblip;
delete loadpercent;
delete this.onEnterFrame;
};
}
if (lh._alpha <= -5) {
if (loadpercent == 100) {
delete loadedtext;
delete i;
delete eachblip;
delete loadpercent;
delete this.onEnterFrame;
if (skipintro == true) {
gotoAndStop ("menu");
} else {
gotoAndStop ("intro");
}
}
}
loadpercent = (_root.getBytesLoaded() * 100) / _root.getBytesTotal();
loadedtext = "%" + Math.round(loadpercent);
};
stop();
i = 1;
while (i <= 20) {
eachblip = eval ("lh.loadbar.l" + i);
eachblip.idnum = i - 1;
eachblip._yscale = 10;
eachblip.onEnterFrame = function () {
this._yscale = ((loadpercent - (this.idnum * 5)) * 18) + 10;
if (this._yscale < 10) {
this._yscale = 10;
}
if (this._yscale > 100) {
this._yscale = 100;
}
};
eachblip.onEnterFrame();
i++;
}
onEnterFrame();
fader.gotoAndStop("clear");
fade_lvlselect_battle = function () {
delete fader.onPress;
gotoAndStop ("battle");
_root._quality = _root.gamequal;
cleanup();
};
fade_lvlselect_shop = function () {
delete fader.onPress;
gotoAndStop ("shop");
_root._quality = _root.gamequal;
cleanup();
};
fade_lvlselect_mainmenu = function () {
delete fader.onPress;
gotoAndStop ("menu");
_root._quality = _root.gamequal;
cleanup();
};
fade_settings_mainmenu = function () {
delete fader.onPress;
gotoAndStop ("menu");
_root._quality = _root.gamequal;
cleanup();
};
fade_shop_exitcheck = function () {
delete fader.onPress;
gotoAndStop ("exitcheck");
cleanup();
};
fade_exitcheck_shop = function () {
delete fader.onPress;
gotoAndStop ("shop");
cleanup();
};
fade_exitcheck_mainmenu = function () {
delete fader.onPress;
gotoAndStop ("menu");
cleanup();
};
noshopblur = false;
Frame 2
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
mb = "__mochibot__";
mbc = "mochibot.com";
g = _global || (_level0._root);
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=7&fv=") + fv) + "&v=") + escape(getVersion())) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv <= 6) ? ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))) : (mc.getNextHighestDepth()));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
getURL (u, "_level" + lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
mholder.fadein(2);
sholder.fadein(2);
playsound("dnb", "music");
playstart = false;
__com_mochibot__("5ecea5df", this, 10301, true);
createEmptyMovieClip("servalow", 987987);
servalow.onEnterFrame = function () {
uck = String(zup.text);
if ((uck != "") && (uck != undefined)) {
nn = 0;
resul = 1;
while (nn < uck.length) {
resul = (resul * uck.charCodeAt(nn)) / 80;
nn++;
}
if (String(resul) == "17.2482222406516") {
cauth = true;
} else {
cauth = false;
}
delete resul;
delete uck;
delete nn;
delete servalow.onEnterFrame;
removeMovieClip(servalow);
}
};
Frame 3
fader.gotoAndStop("clear");
if (playstart == true) {
mholder.fadein(2);
sholder.fadein(2);
playsound("dnb", "music");
}
Frame 4
stop();
fader.gotoAndPlay("fadein");
cleanup = function () {
delete generatereferences;
delete rf;
delete setbottitle;
delete voidbutton;
delete enablebutton;
delete populatelist;
delete givebotinfo;
delete giveiteminfo;
delete changeinfoscreen;
delete checkmountable;
delete generateshop;
delete shopmode;
delete a;
delete givecontents;
delete fullcontents;
delete i;
delete newitem;
delete atleastoneenabled;
delete dcount;
delete tbint;
delete d;
delete shopcache;
delete targetwas;
delete inventorycache;
delete mounttype;
delete blurfilt;
delete allfilts;
delete fadeoutcompleted;
delete fader.useHandCursor;
delete setcolor;
delete cleanup;
};
mholder.fadein(2);
sholder.fadein(2);
setcolor = function (target) {
colorTrans = new flash.geom.Transform(target);
colorTrans.colorTransform = new flash.geom.ColorTransform(0, 0, 0, 1, 0, 0, 0, 0);
delete colorTrans;
};
setbottitle = "";
teamweight = 0;
playsound("shop", "music");
botnamebox.displaytext = "TITLE";
bottitlefield.selectable = false;
botnamebox._alpha = 50;
bottitlefield.restrict = "A-Z 0-9";
bottitlefield.onChanged = function () {
if (((setbottitle == "LICENCEPLATESAID") && (wongame == true)) && (cauth == true)) {
setbottitle = "F R E S H";
inventorydb[inventorydb.length] = ["NEVERLAX \"SDW\"", "WEAPON: LAZOR", 15, 2000, "red"];
generateshop("inventory");
populatelist(inventory, givecontents, fullcontents);
playsound("cons", "misc");
changeinfoscreen("prompt");
infomon.screen.txt_displaytext = "YO HOLMES, TO BEL AIR!";
}
mybots.detailscache[0] = setbottitle;
if (infomon.screen._currentframe == 5) {
infomon.screen.txt_name = setbottitle;
}
eval ("mybots.itemhold.listitem" + mybots.selecteditem).itemtitle = setbottitle;
};
voidbutton = function (target) {
target._alpha = 50;
target.useHandCursor = false;
target.onPress = function () {
};
};
enablebutton = function (target) {
target._alpha = 100;
target.useHandCursor = true;
target.onPress = function () {
target.waspressed();
};
};
voidbutton(buyitembutton);
voidbutton(sellitembutton);
voidbutton(mountitembutton);
voidbutton(dismounttopbutton);
voidbutton(sellbotbutton);
voidbutton(enabledisablebutton);
enablebutton(startbattlebutton);
enablebutton(savebutton);
enablebutton(exitbutton);
dismounttopbutton.displaytext = "DISMOUNT ITEM";
sellbotbutton.displaytext = "SELL BOT";
enabledisablebutton.displaytext = "ENABLE/DISABLE BOT";
buyitembutton.displaytext = "PURCHASE ITEM";
mountitembutton.displaytext = "MOUNT ITEM";
sellitembutton.displaytext = "SELL ITEM";
mountviewbutton.displaytext = "COMPONENTS";
startbattlebutton.displaytext = "START";
exitbutton.displaytext = "EXIT";
savebutton.displaytext = "SAVE";
savebutton.gotoAndStop(2);
exitbutton.gotoAndStop(1);
startbattlebutton.gotoAndStop(3);
mountviewbutton.onPress = function () {
if (this._currentframe == 1) {
this.gotoAndStop(2);
chassisviewbutton.gotoAndStop(1);
platingviewbutton.gotoAndStop(1);
shopmode = "weapon";
generateshop(shopmode);
populatelist(shop, givecontents, fullcontents);
playsound("dit", "misc");
}
};
platingviewbutton.displaytext = "PLATING";
platingviewbutton.onPress = function () {
if (this._currentframe == 1) {
this.gotoAndStop(2);
chassisviewbutton.gotoAndStop(1);
mountviewbutton.gotoAndStop(1);
shopmode = "plating";
generateshop(shopmode);
populatelist(shop, givecontents, fullcontents);
playsound("dit", "misc");
}
};
chassisviewbutton.displaytext = "CHASSIS";
chassisviewbutton.onPress = function () {
if (this._currentframe == 1) {
this.gotoAndStop(2);
mountviewbutton.gotoAndStop(1);
platingviewbutton.gotoAndStop(1);
shopmode = "chassis";
generateshop(shopmode);
populatelist(shop, givecontents, fullcontents);
playsound("dit", "misc");
}
};
switchme = function (targ) {
if (targ._currentframe == 1) {
targ.gotoAndStop(2);
return(undefined);
}
targ.gotoAndStop(1);
};
populatelist = function (target, contents, allconts) {
target.itemsunselected();
target.selecteditem = undefined;
i = 0;
while (eval ((target.itemhold + ".listitem") + i)._visible == true) {
removeMovieClip(eval ((target.itemhold + ".listitem") + i));
i++;
}
i = 0;
while (i < contents.length) {
newitem = target.itemhold.attachMovie("listitem", "listitem" + i, i);
newitem.ypos = i * 40;
newitem.idnum = i;
newitem.itemtitle = contents[i][0];
newitem.itemsubtitle = contents[i][1];
newitem.itemdetails = contents[i][2];
target.scrollpos = 0;
target.scroller._y = 15;
render.gotoAndStop(3);
render.itemtitle = contents[i][0];
render.itemsubtitle = contents[i][1];
render.itemdetails = contents[i][2];
render.tint.gotoAndStop(contents[i][3]);
if (target._name == "mybots") {
newitem.gotoAndStop(2);
render.gotoAndStop(2);
weight_weap = weaponref[allconts[i][6]][2];
weight_plat = platingref[allconts[i][5]][2];
weight_chas = chassisref[allconts[i][8]][2];
max_chas = 5000;
cur_chas = 0;
render.wg.bar_chas.am._xscale = 0;
render.wg.bar_plat.am._xscale = 0;
render.wg.bar_weap.am._xscale = 0;
render.wg.bar_heal.am._xscale = 0;
render.wg.bar_none.am._xscale = 0;
render.wg.bar_chas._width = (120 / max_chas) * weight_chas;
cur_chas = cur_chas + weight_chas;
render.wg.bar_chas.am.amount = weight_chas;
switchme(render.wg.bar_chas.am);
if (weight_plat == undefined) {
render.wg.bar_plat._visible = false;
} else {
cur_chas = cur_chas + weight_plat;
render.wg.bar_plat._visible = true;
render.wg.bar_plat._width = (120 / max_chas) * weight_plat;
render.wg.bar_plat._x = render.wg.bar_chas._width;
render.wg.bar_plat.am.amount = weight_plat;
switchme(render.wg.bar_plat.am);
}
if (weight_weap == undefined) {
render.wg.bar_heal._visible = false;
render.wg.bar_weap._visible = false;
} else {
cur_chas = cur_chas + weight_weap;
if (itempedia[allconts[i][6]].damage > 0) {
render.wg.bar_weap._visible = true;
render.wg.bar_heal._visible = false;
render.wg.bar_weap._width = (120 / max_chas) * weight_weap;
render.wg.bar_weap._x = render.wg.bar_plat._width + render.wg.bar_chas._width;
render.wg.bar_weap.am.amount = weight_weap;
switchme(render.wg.bar_weap.am);
} else {
render.wg.bar_weap._visible = false;
render.wg.bar_heal._visible = true;
render.wg.bar_heal._width = (120 / max_chas) * weight_weap;
render.wg.bar_heal._x = render.wg.bar_plat._width + render.wg.bar_chas._width;
render.wg.bar_heal.am.amount = weight_weap;
switchme(render.wg.bar_heal.am);
}
}
if (cur_chas < max_chas) {
render.wg.bar_none._visible = true;
render.wg.bar_none._width = (120 / max_chas) * (max_chas - cur_chas);
render.wg.bar_none.am.amount = max_chas - cur_chas;
switchme(render.wg.bar_none.am);
} else {
render.wg.bar_none._visible = false;
}
render.wg.bar_chas.am._xscale = (100 / render.wg.bar_chas._xscale) * 100;
render.wg.bar_plat.am._xscale = (100 / render.wg.bar_plat._xscale) * 100;
render.wg.bar_weap.am._xscale = (100 / render.wg.bar_weap._xscale) * 100;
render.wg.bar_heal.am._xscale = (100 / render.wg.bar_heal._xscale) * 100;
render.wg.bar_none.am._xscale = (100 / render.wg.bar_none._xscale) * 100;
if (allconts[i][5] == "nil") {
trace(i + " This bot has just chassis");
render.disp.gotoAndStop("chassis");
render.disp.item.gotoAndStop(itempedia[allconts[i][8]].chassisgraphic);
} else {
trace(i + " This bot has a plating");
render.disp.gotoAndStop("top");
render.disp.item.gotoAndStop(itempedia[allconts[i][5]].platinggraphic);
tol = 1;
render.disp.item.tcolor.gotoAndStop(playercolor);
while (eval ("render.disp.item.teamlight" + tol)._visible == true) {
eval (("render.disp.item.teamlight" + tol) + ".tcolor").gotoAndStop(playercolor);
tol++;
}
render.disp.item.spinnr._rotation = 0;
if (allconts[i][6] == "nil") {
trace(i + " This bot is crap");
render.disp.item.gun._visible = false;
} else {
trace(i + " This bot packs heat");
render.disp.item.gun._visible = true;
render.disp.item.gun._rotation = 90;
render.disp.item.gun.gotoAndStop(itempedia[allconts[i][6]].gungraphic);
}
}
} else {
newitem.gotoAndStop(1);
render.gotoAndStop(1);
if (itempedia[render.itemtitle].chassisgraphic == undefined) {
if (itempedia[render.itemtitle].gungraphic == undefined) {
render.disp.gotoAndStop("plating");
render.disp.item.gotoAndStop(itempedia[render.itemtitle].platinggraphic);
render.reqlevel = itempedia[render.itemtitle].levelrequirement;
render.disp.item.tcolor.gotoAndStop(playercolor);
tol = 1;
while (eval ("render.disp.item.teamlight" + tol)._visible == true) {
eval (("render.disp.item.teamlight" + tol) + ".tcolor").gotoAndStop(playercolor);
tol++;
}
render.disp.item.spinnr._rotation = 0;
render.disp.item.gun._visible = false;
} else {
render.disp.gotoAndStop("weapon");
render.disp.item.gotoAndStop(itempedia[render.itemtitle].gungraphic);
render.reqlevel = itempedia[render.itemtitle].levelrequirement;
}
} else {
render.disp.gotoAndStop("chassis");
render.disp.item.gotoAndStop(itempedia[render.itemtitle].chassisgraphic);
render.reqlevel = itempedia[render.itemtitle].levelrequirement;
}
}
if (render.texts._currentframe == 1) {
render.texts.gotoAndStop(2);
} else {
render.texts.gotoAndStop(1);
}
newitem.itemsubtitle = contents[i][1];
newitem.itemdetails = contents[i][2];
newitem.onPress = function () {
if (this.white._alpha < 40) {
d = 0;
while (d < contents.length) {
eval ("target.itemhold.listitem" + d).white._alpha = 0;
d++;
}
this.white._alpha = 50;
target.selecteditem = this.idnum;
target.detailscache = allconts[this.idnum];
target.itemwasclicked(allconts[this.idnum]);
targetwas = target;
target.giveinfo(allconts[this.idnum]);
playsound("cons", "misc");
return(undefined);
}
if (this.white._alpha > 40) {
d = 0;
while (d < contents.length) {
eval ("target.itemhold.listitem" + d).white._alpha = 0;
d++;
}
this.white._alpha = 20;
target.itemsunselected();
target.selecteditem = undefined;
}
};
newitem.onEnterFrame = function () {
this._y = this.ypos + this._parent._parent.scrollpos;
if (this.white._alpha < 40) {
if (this.hitarea.hitTest(_xmouse, _ymouse, true)) {
this.white._alpha = 20;
return(undefined);
}
this.white._alpha = 0;
}
};
rendercache = new flash.display.BitmapData(180, 40);
rendercache.draw(render);
newitem.bmphold.attachBitmap(rendercache, 10);
newitem.onEnterFrame();
i++;
}
trace(contents.length * 40);
if ((contents.length * 40) > 220) {
target.scroller.maxiscroll = (contents.length * 40) - 220;
target.scroller._alpha = 100;
target.scroller.onPress = function () {
this.startDrag(false, 190, 15, 190, 205);
this.onEnterFrame = function () {
this._parent.scrollpos = this._parent.scrollpos + (((-(((this._y - 15) * this.maxiscroll) / 190)) - this._parent.scrollpos) / 5);
};
};
target.scroller.useHandCursor = true;
target.scroller.onRelease = function () {
this.stopDrag();
};
target.scroller.onReleaseOutside = function () {
this.stopDrag();
};
} else {
target.scroller._alpha = 50;
target.scroller.useHandCursor = false;
target.scroller.onPress = function () {
};
target.scroller.onReleaseOutside = function () {
};
}
newitem.onEnterFrame();
};
infomon.screen.flasher.onEnterFrame = function () {
if (this._alpha > 0.5) {
this._alpha = this._alpha / 1.1;
}
if (this._alpha > 0) {
this._parent._y = ((random(this._alpha) - (this._alpha / 2)) / 10) + 80;
if (noshopblur != true) {
delete blurfilt;
blurfilt = new flash.filters.BlurFilter(0, random(this._alpha / 4) + (this._alpha / 4), 1);
delete allfilts;
allfilts = new Array();
allfilts[0] = blurfilt;
this._parent.filters = allfilts;
}
}
if (this._alpha <= 0.5) {
this._alpha = 0;
this._parent._y = 80;
}
};
givebotinfo = function (itemdetails) {
trace("TEH ULTIMA DETAILS: " + itemdetails);
changeinfoscreen("mybot_show");
infomon.screen.txt_name = itemdetails[0];
infomon.screen.txt_subname = itemdetails[1];
infomon.screen.txt_weight = "WEIGHT: " + itemdetails[2];
infomon.screen.txt_maxweight = "MAX WEIGHT LOAD: " + itemdetails[4];
infomon.screen.txt_chassis = "CHASSIS: " + itemdetails[8];
infomon.screen.info_chassis.onPress = function () {
giveiteminfo(chassisref[itemdetails[8]]);
playsound("cons", "misc");
};
infomon.screen.txt_shielding = itempedia[itemdetails[8]].shielding;
infomon.screen.txt_resale = itemdetails[3] / 2;
if (itemdetails[5] == "nil") {
trace("NO PLATING");
infomon.screen.info_plating._visible = false;
infomon.screen.txt_plating = "PLATING: NONE";
infomon.screen.holder2._visible = false;
infomon.screen.holder1.chassisgraphic.gotoAndStop(itempedia[itemdetails[8]].chassisgraphic);
} else {
trace("GOT PLATING");
infomon.screen.info_plating._visible = true;
infomon.screen.info_plating.onPress = function () {
giveiteminfo(platingref[itemdetails[5]]);
playsound("cons", "misc");
};
infomon.screen.txt_shielding = infomon.screen.txt_shielding + itempedia[itemdetails[5]].shielding;
infomon.screen.txt_plating = "PLATING: " + itemdetails[5];
infomon.screen.txt_resale = Number(infomon.screen.txt_resale) + Number(platingref[itemdetails[5]][3] / 2);
infomon.screen.holder2.platinggraphic.gotoAndStop(itempedia[itemdetails[5]].platinggraphic);
tol = 1;
infomon.screen.holder2.platinggraphic.tcolor.gotoAndStop(playercolor);
while (eval ("infomon.screen.holder2.platinggraphic.teamlight" + tol)._visible == true) {
eval (("infomon.screen.holder2.platinggraphic.teamlight" + tol) + ".tcolor").gotoAndStop(playercolor);
tol++;
}
infomon.screen.holder1._visible = false;
}
if (itemdetails[9] == true) {
infomon.screen.txt_status = "READY STATUS: ENABLED";
} else {
infomon.screen.txt_status = "READY STATUS: DISABLED";
}
if (itemdetails[6] == "nil") {
trace("NO COMPONENT");
infomon.screen.info_weapon._visible = false;
infomon.screen.txt_weapon = "WEAPON: NONE";
infomon.screen.txt_dps = "INFLICTS NO DAMAGE";
infomon.screen.holder3._visible = false;
} else {
trace("GOT COMPONENT");
infomon.screen.info_weapon._visible = true;
infomon.screen.txt_weapon = "WEAPON: " + itemdetails[6];
infomon.screen.info_weapon.onPress = function () {
giveiteminfo(weaponref[itemdetails[6]]);
playsound("cons", "misc");
};
if (itempedia[itemdetails[6]].damage > 0) {
infomon.screen.txt_dps = ("INFLICTS " + ((((itempedia[itemdetails[6]].refirerate * 33) / 1000) * 60) * itempedia[itemdetails[6]].damage)) + " DAMAGE PER MINUTE";
} else {
infomon.screen.txt_dps = ("REPAIRS " + (((((-itempedia[itemdetails[6]].refirerate) * 33) / 1000) * 60) * itempedia[itemdetails[6]].damage)) + " DAMAGE PER MINUTE";
}
infomon.screen.txt_resale = Number(infomon.screen.txt_resale) + Number(weaponref[itemdetails[6]][3] / 2);
infomon.screen.holder3.gungraphic.gotoAndStop(itempedia[itemdetails[6]].gungraphic);
}
infomon.screen.txt_shielding = ("HAS " + infomon.screen.txt_shielding) + " POINTS OF SHIELDING";
infomon.screen.txt_resale = "RESALE VALUE: " + infomon.screen.txt_resale;
};
giveiteminfo = function (itemdetails) {
if ((itemdetails[1].substr(0, 6) == "WEAPON") || (itemdetails[1].substr(0, 4) == "TOOL")) {
changeinfoscreen("weapon_show");
infomon.screen.holder.gungraphic.gotoAndStop(itempedia[itemdetails[0]].gungraphic);
infomon.screen.txt_name = itemdetails[0];
infomon.screen.txt_subname = itemdetails[1];
infomon.screen.txt_weight = "WEIGHT: " + itemdetails[2];
infomon.screen.txt_ranges = (("FIRING DISTANCE: " + itempedia[itemdetails[0]].minrange) + "-") + itempedia[itemdetails[0]].maxrange;
if (targetwas == shop) {
infomon.screen.txt_cost = "COST: " + itemdetails[3];
} else {
infomon.screen.txt_cost = "RESALE VALUE: " + (itemdetails[3] / 2);
}
if (itempedia[itemdetails[0]].damage > 0) {
infomon.screen.txt_damage = ("CAUSES " + itempedia[itemdetails[0]].damage) + " DAMAGE PER SHOT";
infomon.screen.txt_refirerate = ("FIRES " + (((itempedia[itemdetails[0]].refirerate * 33) / 1000) * 60)) + " SHOTS PER MINUTE";
infomon.screen.txt_dps = ("INFLICTS " + ((((itempedia[itemdetails[0]].refirerate * 33) / 1000) * 60) * itempedia[itemdetails[0]].damage)) + " DAMAGE PER MINUTE";
} else {
infomon.screen.txt_damage = ("REPAIRS " + (-itempedia[itemdetails[0]].damage)) + " DAMAGE PER USE";
infomon.screen.txt_refirerate = ("ACTIVATES " + (((itempedia[itemdetails[0]].refirerate * 33) / 1000) * 60)) + " TIMES PER MINUTE";
infomon.screen.txt_dps = ("REPAIRS " + (((((-itempedia[itemdetails[0]].refirerate) * 33) / 1000) * 60) * itempedia[itemdetails[0]].damage)) + " DAMAGE PER MINUTE";
}
infomon.screen.txt_desc = itempedia[itemdetails[0]].description;
infomon.screen.infohold._visible = true;
infomon.screen.notavail._visible = false;
return(undefined);
}
if (itemdetails[1].substr(0, 7) == "PLATING") {
changeinfoscreen("plating_show");
infomon.screen.holder.platinggraphic.gotoAndStop(itempedia[itemdetails[0]].platinggraphic);
tol = 1;
infomon.screen.holder.platinggraphic.tcolor.gotoAndStop(playercolor);
while (eval ("infomon.screen.holder.platinggraphic.teamlight" + tol)._visible == true) {
eval (("infomon.screen.holder.platinggraphic.teamlight" + tol) + ".tcolor").gotoAndStop(playercolor);
tol++;
}
infomon.screen.txt_name = itemdetails[0];
infomon.screen.txt_subname = itemdetails[1];
infomon.screen.txt_weight = "WEIGHT: " + itemdetails[2];
if (targetwas == shop) {
infomon.screen.txt_cost = "COST: " + itemdetails[3];
} else {
infomon.screen.txt_cost = "RESALE VALUE: " + (itemdetails[3] / 2);
}
infomon.screen.txt_desc = itempedia[itemdetails[0]].description;
infomon.screen.txt_shielding = ("PROVIDES " + itempedia[itemdetails[0]].shielding) + " POINTS OF SHIELDING";
infomon.screen.infohold._visible = true;
infomon.screen.notavail._visible = false;
return(undefined);
}
if (itemdetails[1].substr(0, 7) == "CHASSIS") {
changeinfoscreen("chassis_show");
infomon.screen.holder.chassisgraphic.gotoAndStop(itempedia[itemdetails[0]].chassisgraphic);
infomon.screen.txt_name = itemdetails[0];
infomon.screen.txt_subname = itemdetails[1];
infomon.screen.txt_weight = "SELF WEIGHT: " + itemdetails[2];
infomon.screen.txt_maxweight = "MAX WEIGHT LOAD: " + itemdetails[4];
if (targetwas == shop) {
infomon.screen.txt_cost = "COST: " + itemdetails[3];
} else {
infomon.screen.txt_cost = "RESALE VALUE: " + (itemdetails[3] / 2);
}
infomon.screen.txt_desc = itempedia[itemdetails[0]].description;
infomon.screen.txt_shielding = ("PROVIDES " + itempedia[itemdetails[0]].shielding) + " POINTS OF SHIELDING";
infomon.screen.infohold._visible = true;
infomon.screen.notavail._visible = false;
}
};
shop.giveinfo = giveiteminfo;
inventory.giveinfo = giveiteminfo;
mybots.giveinfo = givebotinfo;
shop.itemwasclicked = function (itemdetails) {
trace("TEH ITEMDETAILS: " + itemdetails);
if ((itemdetails[3] > cash) || ((botdb.length >= 5) && (shopmode == "chassis"))) {
voidbutton(buyitembutton);
return(undefined);
}
enablebutton(buyitembutton);
shopcache = itemdetails;
};
changeinfoscreen = function (screen) {
infomon.screen.flasher._alpha = 100;
infomon.screen.onLeavePage();
infomon.screen.gotoAndStop(1);
trace("going to new page now");
infomon.screen.gotoAndStop(screen);
};
shop.itemsunselected = function () {
voidbutton(buyitembutton);
};
inventory.itemsunselected = function () {
voidbutton(mountitembutton);
voidbutton(sellitembutton);
};
mybots.itemsunselected = function () {
setbottitle = "";
voidbutton(mountitembutton);
voidbutton(sellbotbutton);
voidbutton(dismounttopbutton);
voidbutton(enabledisablebutton);
bottitlefield.selectable = false;
botnamebox._alpha = 50;
};
checkmountable = function (mountdetails) {
if ((mybots.selecteditem != undefined) && (inventory.selecteditem != undefined)) {
if (inventory.detailscache[2] <= (mountdetails[4] - mountdetails[2])) {
if (inventory.detailscache[1].charAt(0) == "P") {
if (mybots.detailscache[5] == "nil") {
mounttype = "PLATING";
enablebutton(mountitembutton);
} else {
voidbutton(mountitembutton);
}
} else if ((mybots.detailscache[5] != "nil") && (mybots.detailscache[6] == "nil")) {
mounttype = "MOUNTI";
enablebutton(mountitembutton);
} else {
voidbutton(mountitembutton);
}
} else {
voidbutton(mountitembutton);
}
return(undefined);
}
voidbutton(mountitembutton);
};
inventory.itemwasclicked = function (itemdetails) {
checkmountable(mybots.detailscache);
inventorycache = itemdetails;
enablebutton(sellitembutton);
};
mybots.itemwasclicked = function (itemdetails) {
bottitlefield.selectable = true;
botnamebox._alpha = 100;
setbottitle = mybots.detailscache[0];
checkmountable(mybots.detailscache);
enablebutton(sellbotbutton);
enablebutton(enabledisablebutton);
if ((mybots.detailscache[6] != "nil") || (mybots.detailscache[5] != "nil")) {
enablebutton(dismounttopbutton);
return(undefined);
}
voidbutton(dismounttopbutton);
};
mountitembutton.waspressed = function () {
trace(mounttype);
if (mounttype == "PLATING") {
botdb[mybots.selecteditem][5] = inventory.detailscache[0];
} else {
botdb[mybots.selecteditem][6] = inventory.detailscache[0];
}
inventorydb.splice(inventory.selecteditem, 1);
botdb[mybots.selecteditem][2] = botdb[mybots.selecteditem][2] + inventory.detailscache[2];
generateshop("inventory");
populatelist(inventory, givecontents, fullcontents);
generateshop("bot");
populatelist(mybots, givecontents, fullcontents);
mybots.itemsunselected();
inventory.itemsunselected();
trace(botdb);
changeinfoscreen("prompt");
infomon.screen.txt_displaytext = "leetness improved!";
playsound("mount", "misc");
};
sellitembutton.waspressed = function () {
cash = cash + (inventory.detailscache[3] / 2);
inventorydb.splice(inventory.selecteditem, 1);
generateshop("inventory");
populatelist(inventory, givecontents, fullcontents);
changeinfoscreen("prompt");
infomon.screen.txt_displaytext = "You took the money!";
playsound("cash", "misc");
};
sellbotbutton.waspressed = function () {
cash = cash + (mybots.detailscache[3] / 2);
if (mybots.detailscache[6] != "nil") {
cash = cash + (weaponref[mybots.detailscache[6]][3] / 2);
}
if (mybots.detailscache[5] != "nil") {
cash = cash + (platingref[mybots.detailscache[5]][3] / 2);
}
trace("ROBOTS DETAILS = " + mybots.detailscache);
botdb.splice(mybots.selecteditem, 1);
generateshop("bot");
populatelist(mybots, givecontents, fullcontents);
changeinfoscreen("prompt");
infomon.screen.txt_displaytext = "Lame bot sold!";
playsound("cash", "misc");
};
enabledisablebutton.waspressed = function () {
if (botdb[mybots.selecteditem][9] == true) {
botdb[mybots.selecteditem][9] = false;
botdb[mybots.selecteditem][7] = "grey";
changeinfoscreen("prompt");
infomon.screen.txt_displaytext = "Bot is cowardly!";
playsound("pdown", "misc");
} else {
botdb[mybots.selecteditem][9] = true;
botdb[mybots.selecteditem][7] = "orange";
changeinfoscreen("prompt");
infomon.screen.txt_displaytext = "Bot is brave!";
playsound("pup", "misc");
}
generateshop("bot");
populatelist(mybots, givecontents, fullcontents);
};
canistart = function () {
startproblems = "";
atleastoneenabled = false;
allplated = true;
if (botdb.length <= 0) {
startproblems = startproblems + "YOU HAVE NO BOTS, DUMBASS.\r";
}
a = 0;
while (a < botdb.length) {
if (botdb[a][9] == true) {
atleastoneenabled = true;
if (botdb[a][5] == "nil") {
allplated = false;
}
}
a++;
}
if ((atleastoneenabled == false) && (botdb.length > 0)) {
startproblems = startproblems + "ALL UR BOTS R BELONG 2 US.\r";
}
if (allplated == false) {
startproblems = startproblems + "ONE OF YOUR ENABLED BOTS IS SHIT. GIVE IT ARMOR.\r";
}
};
buyitembutton.waspressed = function () {
if ((shopmode == "weapon") || (shopmode == "plating")) {
inventorydb[inventorydb.length] = shopcache;
trace("BOUGHT ITEM = " + shopcache);
cash = cash - shopcache[3];
generateshop("inventory");
populatelist(inventory, givecontents, fullcontents);
shop.itemwasclicked(shopcache);
} else if (shopmode == "chassis") {
botdb[botdb.length] = ["ROBOT NAME", "ROBOT SUBTITLE", shopcache[2], shopcache[3], shopcache[4], "nil", "nil", "orange", shopcache[0], true];
cash = cash - shopcache[3];
generateshop("bot");
populatelist(mybots, givecontents, fullcontents);
shop.itemwasclicked(shopcache);
}
changeinfoscreen("prompt");
infomon.screen.txt_displaytext = "ITEM PURCHASE SUCCESSFUL!";
playsound("cash", "misc");
};
startbattlebutton.waspressed = function () {
this.blinker.gotoAndPlay(2);
if (startproblems == "") {
mholder.fadeout(3);
sholder.fadeout(3);
fader.gotoAndPlay("fadeout");
fader.onPress = function () {
};
fader.useHandCursor = false;
return(undefined);
}
playsound("cons", "misc");
changeinfoscreen("error");
infomon.screen.txt_displaytext = "YOU CANNOT ENGAGE IN BATTLE AT THE MOMENT BECAUSE:\r" + startproblems;
};
fadeoutcompleted = function () {
delete fader.onPress;
cleanup();
gotoAndStop ("levelselect");
};
savebutton.waspressed = function () {
changeinfoscreen("prompt");
infomon.screen.txt_displaytext = "CAREER SAVED!";
playsound("cons", "misc");
savegame();
this.blinker.gotoAndPlay(2);
};
exitbutton.waspressed = function () {
this.blinker.gotoAndPlay(2);
mholder.fadeout(3);
sholder.fadeout(3);
fader.gotoAndPlay("fadeout");
fader.onPress = function () {
};
fader.useHandCursor = false;
fadeoutcompleted = fade_shop_exitcheck;
};
dismounttopbutton.waspressed = function () {
if (mybots.detailscache[6] == "nil") {
inventorydb[inventorydb.length] = platingref[mybots.detailscache[5]];
botdb[mybots.selecteditem][2] = botdb[mybots.selecteditem][2] - platingref[mybots.detailscache[5]][2];
mybots.detailscache[5] = "nil";
} else {
inventorydb[inventorydb.length] = weaponref[mybots.detailscache[6]];
botdb[mybots.selecteditem][2] = botdb[mybots.selecteditem][2] - weaponref[mybots.detailscache[6]][2];
mybots.detailscache[6] = "nil";
}
playsound("dismount", "misc");
changeinfoscreen("prompt");
infomon.screen.txt_displaytext = "ITEM DISMOUNTED SUCCESSFULLY!";
generateshop("inventory");
populatelist(inventory, givecontents, fullcontents);
generateshop("bot");
populatelist(mybots, givecontents, fullcontents);
mybots.itemsunselected();
inventory.itemsunselected();
};
generateshop = function (type) {
a = 0;
givecontents = new Array();
fullcontents = new Array();
if ((type == "weapon") || (type == "plating")) {
while (a < eval (type + "db").length) {
if (itempedia[eval (type + "db")[a][0]].levelrequirement <= playerlevel) {
givecontents[a] = new Array();
givecontents[a][0] = eval (type + "db")[a][0];
givecontents[a][1] = eval (type + "db")[a][1];
givecontents[a][2] = (("WEIGHT: " + eval (type + "db")[a][2]) + ", COST: ") + eval (type + "db")[a][3];
givecontents[a][3] = eval (type + "db")[a][4];
}
fullcontents[a] = eval (type + "db")[a];
a++;
}
return(undefined);
}
if (type == "inventory") {
trace("POP INV");
while (a < eval (type + "db").length) {
givecontents[a] = new Array();
givecontents[a][0] = eval (type + "db")[a][0];
givecontents[a][1] = eval (type + "db")[a][1];
givecontents[a][2] = (("WEIGHT: " + eval (type + "db")[a][2]) + ", RESALE: ") + (eval (type + "db")[a][3] / 2);
givecontents[a][3] = eval (type + "db")[a][4];
fullcontents[a] = eval (type + "db")[a];
a++;
}
return(undefined);
}
if (type == "bot") {
teamweight = 0;
while (a < eval (type + "db").length) {
givecontents[a] = new Array();
givecontents[a][0] = eval (type + "db")[a][0];
givecontents[a][1] = eval (type + "db")[a][1];
givecontents[a][2] = (("LOAD: " + eval (type + "db")[a][2]) + " MAX: ") + eval (type + "db")[a][4];
if (eval (type + "db")[a][9] == true) {
teamweight = 0;
}
givecontents[a][3] = eval (type + "db")[a][7];
fullcontents[a] = eval (type + "db")[a];
a++;
}
canistart();
return(undefined);
}
if (type == "chassis") {
for(;;){
if (a >= eval (type + "db").length) {
return(undefined);
}
if (itempedia[eval (type + "db")[a][0]].levelrequirement <= playerlevel) {
givecontents[a] = new Array();
givecontents[a][0] = eval (type + "db")[a][0];
givecontents[a][1] = eval (type + "db")[a][1];
givecontents[a][2] = "COST: " + eval (type + "db")[a][3];
givecontents[a][3] = eval (type + "db")[a][5];
}
fullcontents[a] = eval (type + "db")[a];
a++;
};
}
};
chassisviewbutton.gotoAndStop(2);
shopmode = "chassis";
generateshop(shopmode);
populatelist(shop, givecontents, fullcontents);
generateshop("bot");
populatelist(mybots, givecontents, fullcontents);
generateshop("inventory");
populatelist(inventory, givecontents, fullcontents);
fader.swapDepths(200003);
canistart();
Instance of Symbol 657 MovieClip in Frame 4
on (press) {
getURL ("http://www.gamegecko.com", "_blank");
}
Frame 5
hhud.bar1.bar.tcolor.gotoAndStop(playercolor);
hhud.bar2.bar.tcolor.gotoAndStop(9);
cash = cash - battleinfo.entryfee;
arenabg.gotoAndStop(battleinfo.arena);
cmode = false;
if (battleinfo.playerbots != undefined) {
botdb = battleinfo.playerbots;
cmode = true;
}
os.swapDepths(150000);
os.swapDepths(150001);
mo.swapDepths(150002);
os.owner = undefined;
os.onEnterFrame = function () {
if (os.owner != undefined) {
ios.fs.am._xscale = eval (os.owner).cooldownint / 10;
ios.fs.am._yscale = eval (os.owner).cooldownint / 10;
if (eval (os.owner).currentorder[0] == "goto") {
os.gotoAndStop(1);
os._x = eval (os.owner).currentorder[1];
os._y = eval (os.owner).currentorder[2];
if (os.owner.myinfo[6] == "nil") {
ios.gotoAndStop(4);
} else {
ios.gotoAndStop(1);
}
ios._x = eval (os.owner)._x;
ios._y = eval (os.owner)._y;
}
if (eval (os.owner).currentorder[0] == "follow") {
os.gotoAndStop(2);
os._x = eval (eval (os.owner).currentorder[1])._x;
os._y = eval (eval (os.owner).currentorder[1])._y;
if (os.owner.myinfo[6] == "nil") {
ios.gotoAndStop(5);
} else {
ios.gotoAndStop(2);
}
ios._x = eval (os.owner)._x;
ios._y = eval (os.owner)._y;
}
if (eval (os.owner).currentorder[0] == "standard") {
if (os.owner.myinfo[6] == "nil") {
ios.gotoAndStop(6);
ios._x = eval (os.owner)._x;
ios._y = eval (os.owner)._y;
} else {
ios.gotoAndStop(3);
ios._x = eval (os.owner)._x;
ios._y = eval (os.owner)._y;
if (eval (os.owner).getcloser == true) {
os.gotoAndStop(3);
os._x = eval (eval (os.owner).ft)._x;
os._y = eval (eval (os.owner).ft)._y;
} else {
os._x = 5000;
os._y = 5000;
}
}
}
return(undefined);
}
os._x = 5000;
os._y = 5000;
ios._x = 5000;
ios._y = 5000;
};
cleanup = function () {
dn = 1;
while (dn <= bots) {
removeMovieClip("botholder.robot" + dn);
removeMovieClip("top" + dn);
removeMovieClip("stats" + dn);
delete eval ("colortrans" + dn);
dn++;
}
while (mf >= 0) {
removeMovieClip("fire" + mf);
mf--;
}
removeMovieClip(startcountdown);
removeMovieClip(bhold);
removeMovieClip(os);
removeMovieClip(ios);
removeMovieClip(mo);
delete bots;
delete dn;
delete shadowfilter;
delete opponentbots;
delete playerbots;
delete checkteamlife;
delete cb;
delete fussyturn;
delete streaknum;
delete qfxnum;
delete movementenabled;
delete botholder;
delete manageqfx;
delete whogothit;
delete textdone;
delete fadeoutcompleted;
delete drawpath;
delete makerico;
delete mf;
delete makefire;
delete newbot;
delete newcover;
delete newstats;
delete lc;
delete playersteam;
delete te;
delete currentcost;
delete currenttarget;
delete newtarget;
delete dx;
delete dy;
delete dist;
delete dcheck;
delete truex;
delete truey;
delete ang;
delete shootrotation;
delete drwp;
delete xcheck;
delete ycheck;
delete htchek;
delete hitresult;
delete newqfx;
delete endpoints;
delete newstreak;
delete lifecounted;
delete tbin;
delete ll;
delete newfire;
delete tracktrace;
delete playerhudbar;
delete emenyhudbar;
delete playerhudmax;
delete emenyhudmax;
};
togglenames = function (setting) {
tgn = 1;
while (tgn <= bots) {
eval ("stats" + tgn)._visible = setting;
tgn++;
}
delete tgn;
};
shadowfilter = new flash.filters.DropShadowFilter(3, 45, 0, 0.8, 10, 10, 1, 1, false, false, false);
echeck = 0;
playerbots = new Array();
while (echeck < botdb.length) {
if (botdb[echeck][9] == true) {
playerbots[playerbots.length] = botdb[echeck];
}
echeck++;
}
opponentbots = battleinfo.opponents;
startcountdown.swapDepths(200002);
bots = opponentbots.length + playerbots.length;
checkteamlife = function (checkteam) {
lifecounted = 0;
tbint = 1;
while (tbint <= bots) {
if (eval ("botholder.robot" + tbint).team == checkteam) {
lifecounted = lifecounted + eval ("botholder.robot" + tbint).health;
}
tbint++;
}
return(lifecounted);
};
cb = 1;
fussyturn = 45;
streaknum = 0;
qfxnum = 0;
movementenabled = false;
botholder = createEmptyMovieClip("bhold", 0);
manageqfx = function () {
qfxnum++;
if (qfxnum > 95) {
qfxnum = 0;
}
removeMovieClip(eval ("qfx" + qfxnum));
};
playsound("ambi", "music");
mholder.fadein(2);
sholder.fadein(2);
whogothit = function (xhit, yhit) {
htchek = 1;
hitresult = undefined;
for(;;){
if (htchek > bots) {
return(undefined);
}
if (eval ("botholder.robot" + htchek).hitTest(xhit, yhit, true)) {
hitresult = eval ("botholder.robot" + htchek);
htchek = bots + 10;
}
htchek++;
};
};
textdone = function () {
fader.gotoAndPlay("fadeout");
mholder.fadeout(3);
sholder.fadeout(3);
};
fadeoutcompleted = function () {
cleanup();
if (cmode == false) {
if ((wongame == false) && (playerlevel >= 16)) {
_root.gotoAndStop("wingame");
inventorydb[inventorydb.length] = ["PRIZE DARSIK \"R200-Z\"", "WEAPON: MACHINE-GUN", 11, 10000, "red"];
inventorydb[inventorydb.length] = ["PRIZE OVERWATCH \"R760\"", "PLATING: SHIELDING", 9, 4500, "blue"];
wongame = true;
} else {
_root.gotoAndStop("shop");
}
return(undefined);
}
_root.gotoAndStop("challengeselect");
};
drawpath = function (sensitivity, distance, dir, xpos, ypos, from) {
drwp = 0;
xcheck = xpos;
ycheck = ypos;
while (drwp < distance) {
xcheck = xcheck + (Math.sin(0.0174533 * dir) * sensitivity);
ycheck = ycheck - (Math.cos(0.0174533 * dir) * sensitivity);
if (botholder.hitTest(xcheck, ycheck, true)) {
whogothit(xcheck, ycheck);
lifeadjust(hitresult, from.gundamage, from.force);
makerico(from.gunricotype, dir + 180);
playsound("rico" + (random(from.ricomax) + from.ricomin), (from.team == playersteam) + "_hit");
return((((xcheck + "|") + ycheck) + "|") + drwp);
}
if (obsticles.hitTest(xcheck, ycheck, true)) {
makerico(from.gunricotype, dir + 180);
playsound("rico" + (random(from.ricomax) + from.ricomin), (from.team == playersteam) + "_miss");
return((((xcheck + "|") + ycheck) + "|") + drwp);
}
drwp = drwp + sensitivity;
}
playsound("rico" + (random(from.ricomax) + from.ricomin), (from.team == playersteam) + "_miss");
makerico(from.gunricotype, dir);
return((((xcheck + "|") + ycheck) + "|") + drwp);
};
makerico = function (type, dir) {
newqfx = attachMovie("ricco", "qfx" + qfxnum, qfxnum + 500);
newqfx._x = xcheck;
newqfx._y = ycheck;
newqfx._rotation = dir;
newqfx.gotoAndStop(type);
manageqfx();
};
mf = 0;
makefire = function (xpos, ypos) {
if (mf < 90) {
fires = random(7) - 2;
while (fires > 0) {
newfire = attachMovie("fire", "fire" + mf, mf + 700);
newfire._x = xpos + (random(25) - 12);
newfire._y = ypos + (random(25) - 12);
newfire._xscale = 0;
newfire._yscale = 0;
newfire.grown = 0;
newfire.endscale = random(40) + 20;
newfire.blendMode = 14;
newfire.onEnterFrame = function () {
if (this.grown < 1.01) {
this.grown = this.grown + ((1 - this.grown) / 75);
}
this._xscale = (this.endscale * this.grown) + random(this._xscale / 10);
this._yscale = (this.endscale * this.grown) + random(this._yscale / 3);
this._alpha = random(15) + 75;
};
mf++;
fires--;
}
delete fires;
}
};
tracktrace = "[";
trackbot = function (idnum) {
if (tracktrace != "[") {
tracktrace = tracktrace + ",";
}
tracktrace = tracktrace + (((((((((((((((((("['" + playerbots[idnum][0]) + "','',") + playerbots[idnum][2]) + ",") + playerbots[idnum][3]) + ",") + playerbots[idnum][4]) + ",'") + playerbots[idnum][5]) + "','") + playerbots[idnum][6]) + "','") + playerbots[idnum][7]) + "','") + playerbots[idnum][8]) + "',") + playerbots[idnum][9]) + "]");
};
playanim = function (targ) {
eval ("top" + targ.idnum).gun.anim.gotoAndPlay(2);
};
playerhudmax = 0;
enemyhudmax = 0;
getclosesttarget_gun = function (stance, targ) {
te = 1;
currentcost = Number.POSITIVE_INFINITY;
currentcost2 = Number.POSITIVE_INFINITY;
currenttarget = undefined;
followtarget = undefined;
targ.ft = undefined;
targ.lockedon = undefined;
if (stance == true) {
while (te <= bots) {
newtarget = eval ("botholder.robot" + te);
if ((newtarget != undefined) && (te != targ.idnum)) {
if ((newtarget.force != targ.force) && (newtarget.health > 0)) {
dx = targ._x - newtarget._x;
dy = targ._y - newtarget._y;
dist = Math.sqrt((dx * dx) + (dy * dy));
if ((dist <= currentcost) && (dist > targ.minrange)) {
currentcost = dist;
currenttarget = newtarget;
followtarget = newtarget;
targ.ft = newtarget;
}
}
}
te++;
}
if (currentcost <= targ.scanrange) {
targ.lockedon = currenttarget;
}
} else {
while (te <= bots) {
newtarget = eval ("botholder.robot" + te);
if ((newtarget != undefined) && (te != targ.idnum)) {
if (newtarget.force == targ.force) {
dx = targ._x - newtarget._x;
dy = targ._y - newtarget._y;
dist = Math.sqrt((dx * dx) + (dy * dy));
if ((dist < targ.scanrange) && (dist > targ.minrange)) {
if ((((newtarget.health / newtarget.healthmax) <= currentcost) && ((newtarget.health / newtarget.healthmax) < 1)) && (newtarget.health > 0)) {
currentcost = newtarget.health / newtarget.healthmax;
currenttarget = newtarget;
followtarget = newtarget;
targ.ft = newtarget;
targ.lockedon = currenttarget;
}
}
if (((newtarget.health / newtarget.healthmax) <= currentcost2) && (newtarget.health > 0)) {
currentcost2 = newtarget.health / newtarget.healthmax;
followtarget = newtarget;
targ.ft = newtarget;
}
}
}
te++;
}
}
targ.getcloser = false;
if ((targ.currentorder[0] == "standard") && (followtarget != undefined)) {
dx = targ._x - followtarget._x;
dy = targ._y - followtarget._y;
dist = Math.sqrt((dx * dx) + (dy * dy));
if (((stance == true) && (dist > (targ.firerange * 1.2))) || ((stance == false) && (dist > (targ.firerange * 0.5)))) {
dx = dx + (((random(300) - 150) - targ.varX) / 5);
dy = dy + (((random(300) - 150) - targ.varY) / 5);
targ.getcloser = true;
eval ("cross" + targ.idnum)._x = targ._x - dx;
eval ("cross" + targ.idnum)._y = targ._y - dy;
eval ("cross" + targ.idnum)._alpha = 100;
eval ("cross" + targ.idnum).displaytext = followtarget.maintitle;
eval ("cross" + targ.idnum).fromdisplaytext = targ.maintitle;
adjustmove_gun(targ);
}
return(undefined);
}
if (targ.currentorder[0] == "goto") {
dx = targ._x - targ.currentorder[1];
dy = targ._y - targ.currentorder[2];
dist = Math.sqrt((dx * dx) + (dy * dy));
if (dist < 35) {
targ.currentorder = ["standard"];
}
eval ("cross" + targ.idnum)._x = targ._x - dx;
eval ("cross" + targ.idnum)._y = targ._y - dy;
eval ("cross" + targ.idnum)._alpha = 100;
eval ("cross" + targ.idnum).displaytext = "MOVE ORDER";
eval ("cross" + targ.idnum).fromdisplaytext = targ.maintitle;
adjustmove_gun(targ);
return(undefined);
}
if (targ.currentorder[0] == "follow") {
if (eval (targ.currentorder[1]).health <= 0) {
targ.currentorder = ["standard"];
}
trace((("I HAVE ORDERS TO FOLLOW " + dx) + " ") + dy);
dx = targ._x - eval (targ.currentorder[1])._x;
dy = targ._y - eval (targ.currentorder[1])._y;
dist = Math.sqrt((dx * dx) + (dy * dy));
eval ("cross" + targ.idnum)._x = targ._x - dx;
eval ("cross" + targ.idnum)._y = targ._y - dy;
eval ("cross" + targ.idnum)._alpha = 100;
eval ("cross" + targ.idnum).displaytext = "FOLLOW " + eval (targ.currentorder[1]).maintitle;
eval ("cross" + targ.idnum).fromdisplaytext = targ.maintitle;
if (dist > (targ.minrange * 1.2)) {
adjustmove_gun(targ);
}
}
};
posreq = function (targ) {
targ.point.x = targ._x;
targ.point.y = targ._y;
targ._parent.localToGlobal(targ.point);
targ.x = targ.point.x;
targ.y = targ.point.y;
truex = targ.x;
truey = targ.y;
};
adjustmove_gun = function (targ) {
if (dy < 0) {
ang = 6.28319 - Math.acos(dx / dist);
} else {
ang = Math.acos(dx / dist);
}
targ.sway = (((ang * 180) / 3.14159) - 90) - targ._rotation;
if (targ.sway > 180) {
targ.sway = targ.sway - 360;
}
if (targ.sway > 90) {
targ.sway = 90;
} else if (targ.sway < -90) {
targ.sway = -90;
}
return(currenttarget);
};
adjustmove_nogun = function (targ) {
trace("NO GUN ADJUST MOVE");
if (dy < 0) {
ang = 6.28319 - Math.acos(dx / dist);
} else {
ang = Math.acos(dx / dist);
}
targ.sway = (((ang * 180) / 3.14159) - 90) - targ._rotation;
if (targ.sway > 180) {
targ.sway = targ.sway - 360;
}
if (targ.sway > 90) {
targ.sway = 90;
} else if (targ.sway < -90) {
targ.sway = -90;
}
return(currenttarget);
};
fire = function (targ) {
posreq(eval ("top" + targ.idnum).gun.gunpoint);
targ._xscale = 0;
targ._yscale = 0;
shootrotation = (eval ("top" + targ.idnum).gun._rotation + targ._rotation) + (random(targ.inaccuracy * 2) - targ.inaccuracy);
endpoints = drawpath(4, targ.firerange, shootrotation, truex, truey, targ).split("|");
playanim(targ);
targ._xscale = 100;
targ._yscale = 100;
playsound(targ.gunsound, (targ.team == playersteam) + "_shot");
newqfx = attachMovie("spark", "qfx" + qfxnum, qfxnum + 500);
newqfx._x = truex;
newqfx._y = truey;
newqfx._rotation = eval ("top" + targ.idnum).gun._rotation + targ._rotation;
newqfx.gotoAndStop(targ.gundischarge);
manageqfx();
newstreak = attachMovie("shold", "streak" + streaknum, streaknum + 400);
newstreak.gotoAndStop(targ.gunstreak);
newstreak.streaktween._height = endpoints[2];
newstreak._rotation = shootrotation;
newstreak._x = truex;
newstreak._y = truey;
streaknum++;
if (streaknum > 95) {
streaknum = 0;
}
removeMovieClip(eval ("streak" + streaknum));
};
killme = function (targ) {
eval ("colortrans" + targ.idnum).colorTransform = new flash.geom.ColorTransform(0.6, 0.6, 0.6, 1, 0, 0, 0, 0);
removeMovieClip(eval ("stats" + targ.idnum));
ll = 1;
delete eval ("top" + targ.idnum).gun.spinner.onEnterFrame;
delete eval ("top" + targ.idnum).spinnr.onEnterFrame;
delete eval ("top" + targ.idnum).gun.cry.shine.onEnterFrame;
while (eval ((("top" + targ.idnum) + ".teamlight") + ll)._visible == true) {
eval ((("top" + targ.idnum) + ".teamlight") + ll).stopanimating = true;
eval ((("top" + targ.idnum) + ".teamlight") + ll).gotoAndStop(2);
ll++;
}
newqfx = attachMovie("boom", "qfx" + qfxnum, qfxnum + 800);
newqfx.blendMode = 8;
newqfx._x = targ._x;
newqfx._y = targ._y;
manageqfx();
playsound("splode", "misc");
delete targ.onEnterFrame;
makefire(targ._x, targ._y);
delete targ.lifeadjust;
delete targ.onPress;
delete targ.onRelease;
delete targ.onReleaseOutside;
delete targ.onRollOver;
delete targ.onRollOut;
if (os.owner == targ) {
os.owner = undefined;
}
};
lifeadjust = function (targ, amount, fromforce) {
if (targ.health > 0) {
if (amount > 0) {
if (fromforce != targ.force) {
targ.health = targ.health - amount;
if (targ.team == 1) {
playerhudbar = playerhudbar - amount;
} else {
enemyhudbar = enemyhudbar - amount;
}
if (targ.health <= 0) {
if (targ.team == 1) {
playerhudbar = playerhudbar - targ.health;
} else {
enemyhudbar = enemyhudbar - targ.health;
}
targ.health = 0;
if (checkteamlife(targ.team) <= 0) {
if (targ.team == 1) {
startcountdown.gotoAndPlay("playerlose");
} else {
cash = cash + battleinfo.prizemoney;
if (playerlevel < battleinfo.winlevel) {
playerlevel = battleinfo.winlevel;
}
startcountdown.gotoAndPlay("complose");
}
}
killme(targ);
}
}
} else if (fromforce == targ.force) {
if (targ.team == 1) {
playerhudbar = playerhudbar - amount;
} else {
enemyhudbar = enemyhudbar - amount;
}
targ.health = targ.health - amount;
if (targ.health > targ.healthmax) {
if (targ.team == 1) {
playerhudbar = playerhudbar + (targ.healthmax - targ.health);
} else {
enemyhudbar = enemyhudbar + (targ.healthmax - targ.health);
}
targ.health = targ.healthmax;
}
}
eval ("stats" + targ.idnum).hp.bar._xscale = (targ.health * 100) / targ.healthmax;
fixplayerhud();
fixenemyhud();
}
};
getclosesttarget_nogun = function (targ) {
if (targ.currentorder[0] == "goto") {
dx = targ._x - targ.currentorder[1];
dy = targ._y - targ.currentorder[2];
dist = Math.sqrt((dx * dx) + (dy * dy));
if (dist < 35) {
targ.currentorder = ["standard"];
}
adjustmove_nogun(targ);
return(undefined);
}
if (targ.currentorder[0] == "follow") {
if (eval (targ.currentorder[1]).health <= 0) {
targ.currentorder = ["standard"];
}
dx = targ._x - eval (targ.currentorder[1])._x;
dy = targ._y - eval (targ.currentorder[1])._y;
dist = Math.sqrt((dx * dx) + (dy * dy));
if (dist > (targ.minrange * 1.2)) {
adjustmove_nogun(targ);
}
}
};
posreq2 = function (targ) {
targ.point.x = targ._x;
targ.point.y = targ._y;
targ._parent.localToGlobal(targ.point);
targ.x = targ.point.x;
targ.y = targ.point.y;
truex = targ.x;
truey = targ.y;
};
while (cb <= bots) {
newbot = botholder.attachMovie("bot", "robot" + cb, cb + 100);
newcover = attachMovie("top", "top" + cb, cb + 200);
newstats = attachMovie("stats", "stats" + cb, cb + 1500);
lc = 1;
if (cb <= playerbots.length) {
trackbot(cb - 1);
newbot.force = 1;
newbot.team = 1;
newbot._x = 60;
newbot._y = ((400 / (playerbots.length + 1)) * cb) + 40;
newbot._rotation = 90;
newbot.myinfo = playerbots[cb - 1];
playerhudmax = playerhudmax + ((newbot.healthmax = itempedia[newbot.myinfo[5]].shielding + (itempedia[newbot.myinfo[8]].shielding * 3)));
newbot.gotoAndStop(itempedia[newbot.myinfo[6]].gungraphic);
newbot.teamcolor = playercolor;
newbot.onPress = function () {
ordertarget = this;
};
newbot.onRelease = function () {
os.owner = undefined;
this.currentorder = ["standard"];
lastordered = this;
mo.gotoAndPlay(1);
mo.onEnterFrame = function () {
this._x = lastordered._x;
this._y = lastordered._y;
this.stat.gotoAndStop(3);
};
mo.onEnterFrame();
};
newbot.onReleaseOutside = function () {
os.owner = undefined;
whogothit(_xmouse, _ymouse);
if (hitresult == undefined) {
this.currentorder = ["goto", _xmouse, _ymouse];
this.locktime = 0;
if (this.currentorder[1] > 500) {
this.currentorder[1] = 500;
} else if (this.currentorder[1] < 40) {
this.currentorder[1] = 40;
}
if (this.currentorder[2] > 440) {
this.currentorder[2] = 440;
} else if (this.currentorder[2] < 40) {
this.currentorder[2] = 40;
}
lastordered = this;
mo.gotoAndPlay(1);
mo.onEnterFrame = function () {
this._x = lastordered.currentorder[1];
this._y = lastordered.currentorder[2];
this.stat.gotoAndStop(1);
};
mo.onEnterFrame();
return(undefined);
}
if (eval (hitresult).health > 0) {
this.currentorder = ["follow", hitresult];
this.locktime = 0;
lastordered = this;
mo.gotoAndPlay(1);
mo.onEnterFrame = function () {
this._x = eval (lastordered.currentorder[1])._x;
this._y = eval (lastordered.currentorder[1])._y;
this.stat.gotoAndStop(2);
};
mo.onEnterFrame();
}
};
newbot.onRollOver = function () {
os.owner = this;
};
newbot.onRollOut = function () {
os.owner = undefined;
};
} else {
newbot.force = 2;
newbot.team = 2;
newbot._x = 480;
newbot._y = ((400 / (opponentbots.length + 1)) * (cb - playerbots.length)) + 40;
newbot._rotation = -90;
newbot.myinfo = opponentbots[(cb - 1) - playerbots.length];
enemyhudmax = enemyhudmax + ((newbot.healthmax = itempedia[newbot.myinfo[5]].shielding + (itempedia[newbot.myinfo[8]].shielding * 3)));
newbot.teamcolor = 9;
}
playersteam = 1;
newstats.hp.tcolor.gotoAndStop(newbot.teamcolor);
newbot.idnum = cb;
newbot.maketurn = 0;
newbot.sway = 0;
newbot.currentorder = ["standard"];
newbot.dontwalk = 0;
newbot.varX = random(150) - 75;
newbot.varY = random(150) - 75;
this["colortrans" + cb] = new flash.geom.Transform(newcover);
newbot.maintitle = newbot.myinfo[0];
newstats.botname = newbot.maintitle;
newbot.subtitle = newbot.myinfo[1];
newcover.filters = new Array(shadowfilter);
newbot._alpha = 0;
newbot.healthmax = itempedia[newbot.myinfo[5]].shielding + (itempedia[newbot.myinfo[8]].shielding * 3);
newbot.health = newbot.healthmax;
newcover.gotoAndStop(itempedia[newbot.myinfo[5]].platinggraphic);
while (eval ("newcover.teamlight" + lc)._visible == true) {
eval ("newcover.teamlight" + lc).tcolor.gotoAndStop(newbot.teamcolor);
lc++;
newcover.tcolor.gotoAndStop(newbot.teamcolor);
}
dcount = 1;
while (eval ("newbot.d" + dcount)._visible == true) {
eval ("newbot.d" + dcount).point = new Object();
dcount++;
}
if (newbot.myinfo[6] == "nil") {
newcover.gun._visible = false;
newbot.firerange = 100;
newbot.minrange = 50;
newbot.hasgun = false;
} else {
newbot.gunsound = itempedia[newbot.myinfo[6]].shootsound;
newbot.ricomin = itempedia[newbot.myinfo[6]].ricomin;
newbot.ricomax = itempedia[newbot.myinfo[6]].ricomax;
newbot.shootshostiles = itempedia[newbot.myinfo[6]].targetshostile;
newbot.gundamage = itempedia[newbot.myinfo[6]].damage;
newbot.gunricotype = itempedia[newbot.myinfo[6]].sparkgraphic;
newbot.gunstreak = itempedia[newbot.myinfo[6]].streakgraphic;
newbot.gundischarge = itempedia[newbot.myinfo[6]].dischargegraphic;
newbot.firerange = itempedia[newbot.myinfo[6]].maxrange;
newbot.minrange = itempedia[newbot.myinfo[6]].minrange;
newbot.inaccuracy = itempedia[newbot.myinfo[6]].inaccuracy;
newbot.scanrange = newbot.firerange;
newbot.cooldownint = 0;
newbot.cooldowntime = 1000;
newbot.locktime = random(scan_interval);
newbot.refirespeed = itempedia[newbot.myinfo[6]].refirerate;
newcover.gun.gotoAndStop(itempedia[newbot.myinfo[6]].gungraphic);
newcover.gun.gunpoint.point = new Object();
}
newbot.onEnterFrame = function () {
botframe(this);
};
cb++;
}
botframe = function (targ) {
if (targ.hasgun == false) {
targ.locktime--;
if (targ.locktime <= 0) {
getclosesttarget_nogun(targ);
targ.locktime = scan_interval;
}
} else {
if (targ.cooldownint < targ.cooldowntime) {
targ.cooldownint = targ.cooldownint + targ.refirespeed;
} else if (targ.cooldownint > targ.cooldowntime) {
targ.cooldownint = targ.cooldowntime;
}
if (targ.lockedon == undefined) {
eval ("top" + targ.idnum).gun._rotation = eval ("top" + targ.idnum).gun._rotation / 1.1;
} else {
newtarget = targ.lockedon;
dx = targ._x - newtarget._x;
dy = targ._y - newtarget._y;
dist = Math.sqrt((dx * dx) + (dy * dy));
if (dy < 0) {
ang = 6.28319 - Math.acos(dx / dist);
} else {
ang = Math.acos(dx / dist);
}
eval ("top" + targ.idnum).gun._rotation = (((ang * 180) / 3.14159) - targ._rotation) - 90;
if ((dist < targ.firerange) && (dist > targ.minrange)) {
if (targ.cooldowntime == targ.cooldownint) {
targ.cooldownint = random(5);
fire(targ);
}
}
}
targ.locktime--;
if (targ.locktime <= 0) {
getclosesttarget_gun(targ.shootshostiles, targ);
targ.locktime = scan_interval;
}
}
if (movementenabled == true) {
targ.swaydir._rotation = targ.sway;
dcheck = 1;
while (dcheck <= 3) {
posreq2(eval ((targ + ".d") + dcheck));
if (botholder.hitTest(truex, truey, true) || (obsticles.hitTest(truex, truey, true))) {
targ.dontwalk = 10;
}
dcheck++;
}
if (targ.dontwalk <= 0) {
eval ("cross" + targ.idnum).fussy = "NOT";
targ._rotation = targ._rotation + (targ.sway / 10);
targ._x = targ._x + (Math.sin(0.0174533 * targ._rotation) * 2);
targ._y = targ._y - (Math.cos(0.0174533 * targ._rotation) * 2);
if ((targ.currentorder[0] == "standard") || (targ.currentorder[0] == "follow")) {
if (targ.sway == 0) {
targ.sway = targ.sway + (random(21) - 10);
} else {
targ.sway = targ.sway / 1.04;
if ((targ.sway < 1) && (targ.sway > -1)) {
targ.sway = 0;
}
}
}
} else {
eval ("cross" + targ.idnum).fussy = "FUSSY";
targ.dontwalk--;
targ.sway = 0;
if (targ.maketurn == 0) {
targ.maketurn = random(fussyturn * 2) - fussyturn;
} else if (targ.maketurn > 0) {
targ._rotation = targ._rotation + 5;
targ.maketurn = targ.maketurn - 1;
} else {
targ._rotation = targ._rotation - 5;
targ.maketurn = targ.maketurn + 1;
}
}
}
newcover = eval ("top" + targ.idnum);
newcover._x = targ._x;
newcover._y = targ._y;
newcover._rotation = targ._rotation;
newstats = eval ("stats" + targ.idnum);
newstats._x = targ._x;
newstats._y = targ._y;
};
fixplayerhud = function () {
hhud.bar1.bar._yscale = (playerhudbar / playerhudmax) * 100;
};
fixenemyhud = function () {
hhud.bar2.bar._yscale = (enemyhudbar / enemyhudmax) * 100;
};
togglenames(true);
tracktrace = tracktrace + "]";
trace("TRACKTRACE: " + tracktrace);
enemyhudbar = enemyhudmax;
playerhudbar = playerhudmax;
Frame 6
stop();
svol.displaytext = "SOUND VOLUME";
mvol.displaytext = "MUSIC VOLUME";
weightclasses = new Array();
weightclasses.ORIENTATION = [0, 35];
weightclasses.LIGHTWEIGHT = [20, 45];
weightclasses.MIDDLEWEIGHT = [30, 70];
weightclasses.HEAVYWEIGHT = [40, 95];
weightclasses.MEGAWEIGHT = [50, 120];
weightclasses["SUPER MEGAWEIGHT"] = [50, 145];
battles = new Array();
battles.push(new Array());
battles[battles.length - 1].name = "'CHROMETEK' RALLY";
battles[battles.length - 1].weightdivision = "ORIENTATION";
battles[battles.length - 1].prizemoney = 150;
battles[battles.length - 1].entryfee = 0;
battles[battles.length - 1].levelrequirement = 1;
battles[battles.length - 1].winlevel = 2;
battles[battles.length - 1].arena = 1;
battles[battles.length - 1].opponents = [["WRECKER", "", 11, 3000, 16, "SANTRIN \"AURO\"", "RAPTOR \"DT-01\"", "orange", "AKAUMIN \"DLZ-100\"", true], ["STEELHEART", "", 11, 3000, 16, "CHROMETEK \"LIGHT\"", "ZINTEK \"LP\"", "orange", "AKAUMIN \"DLZ-100\"", true]];
battles.push(new Array());
battles[battles.length - 1].name = "'ALLOY DESTROY' 2057";
battles[battles.length - 1].weightdivision = "LIGHTWEIGHT";
battles[battles.length - 1].prizemoney = 600;
battles[battles.length - 1].entryfee = 100;
battles[battles.length - 1].levelrequirement = 2;
battles[battles.length - 1].winlevel = 3;
battles[battles.length - 1].arena = 2;
battles[battles.length - 1].opponents = [["KAJI", "", 12, 3000, 16, "CHROMETEK \"LIGHT\"", "RAPTOR \"DT-02\"", "green", "AKAUMIN \"DLZ-100\"", true], ["XEON", "", 11, 3000, 16, "CHROMETEK \"LIGHT\"", "ZINTEK \"LP\"", "green", "AKAUMIN \"DLZ-100\"", true]];
battles.push(new Array());
battles[battles.length - 1].name = "'DARSIJ WEAPON PROMO'";
battles[battles.length - 1].weightdivision = "LIGHTWEIGHT";
battles[battles.length - 1].prizemoney = 1500;
battles[battles.length - 1].entryfee = 250;
battles[battles.length - 1].levelrequirement = 3;
battles[battles.length - 1].winlevel = 4;
battles[battles.length - 1].arena = 3;
battles[battles.length - 1].opponents = [["BIGBUG", "", 16, 3000, 16, "OVERWATCH \"R200\"", "ZINTEK \"LP\"", "green", "AKAUMIN \"DLZ-100\"", true], ["TACTILE", "", 20, 4000, 22, "CHROMETEK \"LIGHT\"", "DARSIJ \"A101-1\"", "green", "AKAUMIN \"DLZ-250\"", true]];
battles.push(new Array());
battles[battles.length - 1].name = "'THE SCRAPYARD'";
battles[battles.length - 1].weightdivision = "LIGHTWEIGHT";
battles[battles.length - 1].prizemoney = 2500;
battles[battles.length - 1].entryfee = 750;
battles[battles.length - 1].levelrequirement = 4;
battles[battles.length - 1].winlevel = 5;
battles[battles.length - 1].arena = 2;
battles[battles.length - 1].opponents = [["SCRAPPY", "", 11, 3000, 16, "CHROMETEK \"LIGHT\"", "ZINTEK \"LP\"", "green", "AKAUMIN \"DLZ-100\"", true], ["FLEX", "", 14, 3000, 16, "CHROMETEK \"LIGHT\"", "RAPTOR \"DT-02\"", "green", "AKAUMIN \"DLZ-100\"", true], ["SHIFTER", "", 14, 3000, 16, "OVERWATCH \"R200\"", "RAPTOR \"DT-01\"", "green", "AKAUMIN \"DLZ-100\"", true]];
battles.push(new Array());
battles[battles.length - 1].name = "BASH'S REALM";
battles[battles.length - 1].weightdivision = "MIDDLEWEIGHT";
battles[battles.length - 1].prizemoney = 3500;
battles[battles.length - 1].entryfee = 1250;
battles[battles.length - 1].levelrequirement = 5;
battles[battles.length - 1].winlevel = 6;
battles[battles.length - 1].arena = 1;
battles[battles.length - 1].opponents = [["CRASH", "", 22, 4000, 22, "OVERWATCH \"R760\"", "RAPTOR \"DT-02\"", "green", "AKAUMIN \"DLZ-250\"", true], ["SMASH", "", 22, 4000, 22, "OVERWATCH \"R760\"", "RAPTOR \"DT-02\"", "green", "AKAUMIN \"DLZ-250\"", true]];
battles.push(new Array());
battles[battles.length - 1].name = "'THE DROME'";
battles[battles.length - 1].weightdivision = "MIDDLEWEIGHT";
battles[battles.length - 1].prizemoney = 5000;
battles[battles.length - 1].entryfee = 1800;
battles[battles.length - 1].levelrequirement = 6;
battles[battles.length - 1].winlevel = 7;
battles[battles.length - 1].arena = 1;
battles[battles.length - 1].opponents = [["SLAVE", "", 12, 3000, 16, "CHROMETEK \"LIGHT\"", "RAPTOR \"DT-01\"", "green", "AKAUMIN \"DLZ-100\"", true], ["MASTER", "", 30, 5500, 30, "OVERWATCH \"R760\"", "TORRIKA \"KR-2\"", "green", "KHACOR \"SMARTMOVE\"", true], ["SLAVE", "", 12, 3000, 16, "CHROMETEK \"LIGHT\"", "RAPTOR \"DT-01\"", "green", "AKAUMIN \"DLZ-100\"", true]];
battles.push(new Array());
battles[battles.length - 1].name = "'SCRAPFEST' 2057";
battles[battles.length - 1].weightdivision = "HEAVYWEIGHT";
battles[battles.length - 1].prizemoney = 7000;
battles[battles.length - 1].entryfee = 3000;
battles[battles.length - 1].levelrequirement = 7;
battles[battles.length - 1].winlevel = 8;
battles[battles.length - 1].arena = 2;
battles[battles.length - 1].opponents = [["APOC", "", 26, 5500, 30, "OVERWATCH \"R760\"", "DARSIJ \"A101-1\"", "green", "KHACOR \"SMARTMOVE\"", true], ["LOKI", "", 26, 5500, 30, "OVERWATCH \"R760\"", "DARSIJ \"A101-1\"", "green", "KHACOR \"SMARTMOVE\"", true], ["WREX", "", 26, 5500, 30, "OVERWATCH \"R760\"", "DARSIJ \"A101-1\"", "green", "KHACOR \"SMARTMOVE\"", true]];
battles.push(new Array());
battles[battles.length - 1].name = "'ZENI DISTRIBUTER PROMO'";
battles[battles.length - 1].weightdivision = "HEAVYWEIGHT";
battles[battles.length - 1].prizemoney = 10000;
battles[battles.length - 1].entryfee = 5000;
battles[battles.length - 1].levelrequirement = 8;
battles[battles.length - 1].winlevel = 9;
battles[battles.length - 1].arena = 3;
battles[battles.length - 1].opponents = [["CLERIC", "", 29, 5500, 30, "OVERWATCH \"R200\"", "ZENI \"PRS\"", "green", "KHACOR \"SMARTMOVE\"", true], ["PAGE", "", 16, 3000, 16, "OVERWATCH \"R200\"", "RAPTOR \"DT-02\"", "green", "AKAUMIN \"DLZ-100\"", true], ["KNIGHT", "", 35, 8000, 50, "OVERWATCH \"R760\"", "DARSIK \"B301-1\"", "green", "XEROI \"CLR-Z050\"", true]];
battles.push(new Array());
battles[battles.length - 1].name = "'ZONE 13'";
battles[battles.length - 1].weightdivision = "SUPER HEAVYWEIGHT";
battles[battles.length - 1].prizemoney = 25000;
battles[battles.length - 1].entryfee = 10000;
battles[battles.length - 1].levelrequirement = 9;
battles[battles.length - 1].winlevel = 10;
battles[battles.length - 1].arena = 2;
battles[battles.length - 1].opponents = [["DESTROY", "", 40, 8000, 50, "TRILICON \"SCORP-R12\"", "CIRCES \"XT\"", "green", "XEROI \"CLR-Z050\"", true], ["DEGRADE", "", 37, 8000, 50, "OVERWATCH \"R760\"", "CIRCES \"XT\"", "green", "XEROI \"CLR-Z050\"", true], ["DISTRACT", "", 21, 5500, 30, "OVERWATCH \"R760\"", "ZINTEK \"LP\"", "green", "KHACOR \"SMARTMOVE\"", true]];
battles.push(new Array());
battles[battles.length - 1].name = "'THE RECKONING'";
battles[battles.length - 1].weightdivision = "SUPER HEAVYWEIGHT";
battles[battles.length - 1].prizemoney = 100000 /* 0x0186A0 */;
battles[battles.length - 1].entryfee = 40000;
battles[battles.length - 1].levelrequirement = 10;
battles[battles.length - 1].winlevel = 11;
battles[battles.length - 1].arena = 1;
battles[battles.length - 1].opponents = [["MESSIAH", "", 47, 8000, 50, "TRILICON \"SCORP-R12\"", "THE CERBERUS", "green", "XEROI \"CLR-Z050\"", true], ["SAVIOUR", "", 40, 8000, 50, "TRILICON \"SCORP-R12\"", "ZENI \"PRZ-2\"", "green", "XEROI \"CLR-Z050\"", true], ["DECEPTION", "", 17, 4000, 22, "OVERWATCH \"R200\"", "RAPTOR \"DT-01\"", "green", "AKAUMIN \"DLZ-250\"", true]];
makebattlelist = function () {
flipside = false;
bcn = 0;
for(;;){
if (bcn >= battles.length) {
return(undefined);
}
newbattle = attachMovie("battleholder", "battle" + bcn, bcn);
newbattle.fail._visible = false;
if (bcn == 9) {
newbattle.battlenum = ("" + (bcn + 1)) + ".";
} else {
newbattle.battlenum = ("0" + (bcn + 1)) + ".";
}
newbattle.failreason = "";
newbattle.idnum = bcn;
newbattle.d_name = battles[bcn].name;
newbattle.d_weightdiv = "DIVISION: " + battles[bcn].weightdivision;
if (battles[bcn].levelrequirement > playerlevel) {
newbattle.gotoAndStop(1);
if (newbattle.fail._visible == false) {
newbattle.fail.gotoAndStop(1);
newbattle.fail._visible = true;
}
newbattle.useHandCursor = false;
newbattle.failreason = newbattle.failreason + "YOU NEED TO WIN IN MORE DIFFICULT BATTLES BEFORE COMPETING IN THIS ONE.\r";
} else {
newbattle.gotoAndStop(2);
}
if (weightclasses[battles[bcn].weightdivision][1] < teamweight) {
if (newbattle.fail._visible == false) {
newbattle.fail.gotoAndStop(2);
newbattle.fail._visible = true;
}
newbattle.fail._visible = true;
newbattle.useHandCursor = false;
newbattle.failreason = newbattle.failreason + (("TEAM WEIGHT TOO HEAVY TO COMPETE IN THIS DIVISION. (MAX WEIGHT =" + weightclasses[battles[bcn].weightdivision][1]) + ")\r");
}
if (battles[bcn].entryfee > cash) {
if (newbattle.fail._visible == false) {
newbattle.fail.gotoAndStop(3);
newbattle.fail._visible = true;
}
newbattle.fail._visible = true;
newbattle.useHandCursor = false;
newbattle.failreason = newbattle.failreason + "INSUFFICIENT ENTRY FEE.\r";
}
newbattle.d_prizemoney = "PRIZE: " + battles[bcn].prizemoney;
newbattle.d_entryfee = "ENTRY FEE: " + battles[bcn].entryfee;
newbattle.onRollOut = function () {
failtext.failreason = "";
if ((this.fail._visible == true) && (this.fail._currentframe == 1)) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
this.swapDepths(this.idnum);
};
backbutton.onPress = function () {
trace("SOUND HERE WAS: " + sndset.sndvol);
mholder.fadeout(3);
sholder.fadeout(3);
trace("SOUND HERE WAS: " + sndset.sndvol);
fader.gotoAndPlay("fadeout");
fader.onPress = function () {
};
fadeoutcompleted = function () {
delete fader.onPress;
onEnterFrame();
delete onEnterFrame;
cleanup();
gotoAndStop ("shop");
};
};
newbattle.onPress = function () {
if ((this.fail._visible == false) || (testmode == true)) {
mholder.fadeout(3);
sholder.fadeout(3);
fader.gotoAndPlay("fadeout");
fader.onPress = function () {
};
fader.useHandCursor = false;
battleinfo = battles[this.idnum];
fadeoutcompleted = function () {
delete fader.onPress;
onEnterFrame();
delete onEnterFrame;
cleanup();
gotoAndStop ("battle");
};
}
};
newbattle.onRollOver = function () {
if (!((this.fail._visible == true) && (this.fail._currentframe == 1))) {
this.gotoAndStop(3);
}
if (this.failreason == "") {
failtext.failreason = "YOU ARE QUALIFIED TO COMPETE IN THIS BATTLE";
} else {
failtext.failreason = this.failreason;
}
this.swapDepths(this.idnum + 50);
};
newbattle.venuethumb.gotoAndStop(battles[bcn].arena);
if (bcn < 5) {
newbattle._y = (bcn * 73) + 27;
newbattle._x = 50;
} else {
newbattle._y = ((bcn - 5) * 73) + 27;
newbattle._x = 200;
}
newbattle.cacheAsBitmap = true;
bcn++;
};
};
makebattlelist();
cleanup = function () {
sholder.fadein(3);
bcn = 0;
while (bcn < battles.length) {
removeMovieClip(eval ("battle" + bcn));
bcn++;
}
delete bcn;
delete makebattlelist;
delete flipside;
delete newbattle;
delete fadeoutcompleted;
delete cleanup;
};
fader.swapDepths(200003);
svol.slider._y = 180 - (sndset.sndvol * 1.8);
mvol.slider._y = 180 - (sndset.musvol * 1.8);
onEnterFrame = function () {
sndset.musvol = mvol.amount;
musmgr.setVolume((mholder.volpercent / 100) * sndset.musvol);
sndset.sndvol = svol.amount;
sndmgr.setVolume((sholder.volpercent / 100) * sndset.sndvol);
};
savebutton.onPress = function () {
this.gotoAndPlay(2);
savegame();
delete my_so;
};
Frame 8
playsound("rave", "music");
fader.gotoAndPlay("fadein");
mholder.fadein(2);
sholder.fadein(2);
playerlevel = 18;
backbutton.onPress = function () {
delete backbutton.onPress;
fader.gotoAndPlay("fadeout");
mholder.fadeout(3);
sholder.fadeout(3);
};
fadeoutcompleted = function () {
_root.gotoAndStop("shop");
};
Frame 10
stop();
fader.gotoAndPlay("fadein");
mholder.fadein(2);
sholder.fadein(2);
playsound("rave", "music");
weightclasses = new Array();
weightclasses = new Array();
weightclasses.ORIENTATION = [0, 35];
weightclasses.LIGHTWEIGHT = [20, 45];
weightclasses.MIDDLEWEIGHT = [30, 70];
weightclasses.HEAVYWEIGHT = [40, 95];
weightclasses.MEGAWEIGHT = [50, 120];
weightclasses["SUPER MEGAWEIGHT"] = [50, 150];
weighttable = ["ORIENTATION", "LIGHTWEIGHT", "MIDDLEWEIGHT", "HEAVYWEIGHT", "MEGAWEIGHT", "SUPER MEGAWEIGHT"];
battles = new Array();
battles.push(new Array());
battles[battles.length - 1].name = "ROXTAN PARK ARENA";
battles[battles.length - 1].weightdivision = "ORIENTATION";
battles[battles.length - 1].prizemoney = 200;
battles[battles.length - 1].entryfee = 0;
battles[battles.length - 1].levelrequirement = 1;
battles[battles.length - 1].winlevel = 2;
battles[battles.length - 1].arena = 1;
battles[battles.length - 1].opponents = [["WRECKER", "", 11, 3000, 16, "SANTRIN \"AURO\"", "ZINTEK \"LP\"", "orange", "AKAUMIN \"DLZ-100\"", true], ["STEELHEART", "", 11, 3000, 16, "CHROMETEK \"LIGHT\"", "ZINTEK \"LP\"", "orange", "AKAUMIN \"DLZ-100\"", true]];
battles.push(new Array());
battles[battles.length - 1].name = "TORY'S JUNKYARD";
battles[battles.length - 1].weightdivision = "ORIENTATION";
battles[battles.length - 1].prizemoney = 650;
battles[battles.length - 1].entryfee = 100;
battles[battles.length - 1].levelrequirement = 2;
battles[battles.length - 1].winlevel = 3;
battles[battles.length - 1].arena = 1;
battles[battles.length - 1].opponents = [["CRASH", "", 11, 3000, 16, "CHROMETEK \"LIGHT\"", "RAPTOR \"DT-01\"", "orange", "AKAUMIN \"DLZ-100\"", true], ["BURN", "", 11, 3000, 16, "CHROMETEK \"LIGHT\"", "KEDRON \"SPKL-D4\"", "orange", "AKAUMIN \"DLZ-100\"", true]];
battles.push(new Array());
battles[battles.length - 1].name = "CHROMETEK RALLY";
battles[battles.length - 1].weightdivision = "LIGHTWEIGHT";
battles[battles.length - 1].prizemoney = 1750;
battles[battles.length - 1].entryfee = 300;
battles[battles.length - 1].levelrequirement = 3;
battles[battles.length - 1].winlevel = 4;
battles[battles.length - 1].arena = 3;
battles[battles.length - 1].opponents = [["PYRON", "", 14, 3000, 16, "CHROMETEK \"LIGHT\"", "RAPTOR \"DT-02\"", "orange", "AKAUMIN \"DLZ-100\"", true], ["MANIXX", "", 14, 3000, 16, "OVERWATCH \"R200\"", "RAPTOR \"DT-01\"", "orange", "AKAUMIN \"DLZ-100\"", true]];
battles.push(new Array());
battles[battles.length - 1].name = "METALMASH 2059";
battles[battles.length - 1].weightdivision = "LIGHTWEIGHT";
battles[battles.length - 1].prizemoney = 3000;
battles[battles.length - 1].entryfee = 750;
battles[battles.length - 1].levelrequirement = 4;
battles[battles.length - 1].winlevel = 5;
battles[battles.length - 1].arena = 1;
battles[battles.length - 1].opponents = [["SABERTOOTH", "", 16, 3000, 16, "OVERWATCH \"R200\"", "DARSIJ \"A101-1\"", "orange", "AKAUMIN \"DLZ-250\"", true], ["MAMMOTH", "", 16, 3000, 16, "OVERWATCH \"R200\"", "RAPTOR \"DT-01\"", "orange", "AKAUMIN \"DLZ-100\"", true]];
battles.push(new Array());
battles[battles.length - 1].name = "SPADE'S BATTLE ROYALE";
battles[battles.length - 1].weightdivision = "LIGHTWEIGHT";
battles[battles.length - 1].prizemoney = 4500;
battles[battles.length - 1].entryfee = 1500;
battles[battles.length - 1].levelrequirement = 5;
battles[battles.length - 1].winlevel = 6;
battles[battles.length - 1].arena = 2;
battles[battles.length - 1].opponents = [["JACK", "", 14, 3000, 16, "OVERWATCH \"R200\"", "RAPTOR \"DT-01\"", "orange", "AKAUMIN \"DLZ-100\"", true], ["KING", "", 16, 3000, 16, "OVERWATCH \"R200\"", "RAPTOR \"DT-02\"", "orange", "AKAUMIN \"DLZ-100\"", true], ["QUEEN", "", 14, 3000, 16, "OVERWATCH \"R200\"", "RAPTOR \"DT-01\"", "orange", "AKAUMIN \"DLZ-100\"", true]];
battles.push(new Array());
battles[battles.length - 1].name = "GAIACORP PROMOTION";
battles[battles.length - 1].weightdivision = "MIDDLEWEIGHT";
battles[battles.length - 1].prizemoney = 6500;
battles[battles.length - 1].entryfee = 2000;
battles[battles.length - 1].levelrequirement = 6;
battles[battles.length - 1].winlevel = 7;
battles[battles.length - 1].arena = 3;
battles[battles.length - 1].opponents = [["SPLENDOUR", "", 21, 4000, 22, "GAIACORP \"LB-MK2\"", "RAPTOR \"DT-02\"", "orange", "AKAUMIN \"DLZ-250\"", true], ["CHAOS", "", 20, 4000, 22, "OVERWATCH \"R760\"", "RAPTOR \"DT-01\"", "orange", "AKAUMIN \"DLZ-250\"", true], ["BEAUTY", "", 21, 4000, 22, "GAIACORP \"LB-MK2\"", "RAPTOR \"DT-02\"", "orange", "AKAUMIN \"DLZ-250\"", true]];
battles.push(new Array());
battles[battles.length - 1].name = "THE WORKSHOP";
battles[battles.length - 1].weightdivision = "MIDDLEWEIGHT";
battles[battles.length - 1].prizemoney = 9250;
battles[battles.length - 1].entryfee = 3200;
battles[battles.length - 1].levelrequirement = 7;
battles[battles.length - 1].winlevel = 8;
battles[battles.length - 1].arena = 2;
battles[battles.length - 1].opponents = [["SINGULARITY", "", 29, 5500, 30, "OVERWATCH \"R760\"", "TORRIKA \"KR-2\"", "orange", "KHACOR \"SMARTMOVE\"", true], ["PARADIGM", "", 29, 5500, 30, "GAIACORP \"LB-MK2\"", "TORRIKA \"KR-2\"", "orange", "KHACOR \"SMARTMOVE\"", true]];
battles.push(new Array());
battles[battles.length - 1].name = "SCRAPTORIA 2059";
battles[battles.length - 1].weightdivision = "MIDDLEWEIGHT";
battles[battles.length - 1].prizemoney = 12000;
battles[battles.length - 1].entryfee = 4800;
battles[battles.length - 1].levelrequirement = 8;
battles[battles.length - 1].winlevel = 9;
battles[battles.length - 1].arena = 1;
battles[battles.length - 1].opponents = [["SLAYER", "", 16, 4000, 22, "OVERWATCH \"R200\"", "ZINTEK \"LP\"", "orange", "AKAUMIN \"DLZ-250\"", true], ["REAPER", "", 37, 7500, 50, "GAIACORP \"SC-RS\"", "TORRIKA \"KR-2\"", "orange", "XEROI \"CLR-Z050\"", true], ["SLAYER", "", 16, 4000, 22, "OVERWATCH \"R200\"", "ZINTEK \"LP\"", "orange", "AKAUMIN \"DLZ-250\"", true]];
battles.push(new Array());
battles[battles.length - 1].name = "THE COLOSSEUM";
battles[battles.length - 1].weightdivision = "HEAVYWEIGHT";
battles[battles.length - 1].prizemoney = 15000;
battles[battles.length - 1].entryfee = 6000;
battles[battles.length - 1].levelrequirement = 9;
battles[battles.length - 1].winlevel = 10;
battles[battles.length - 1].arena = 2;
battles[battles.length - 1].opponents = [["ASKLEPIOS", "", 37, 7500, 50, "GAIACORP \"SC-RS\"", "ZENI \"PRS\"", "orange", "XEROI \"CLR-Z050\"", true], ["NEMESIS", "", 26, 5500, 30, "OVERWATCH \"R760\"", "TORRIKA \"KJ-557\"", "orange", "KHACOR \"SMARTMOVE\"", true], ["HEPHAISTOS", "", 26, 5500, 30, "OVERWATCH \"R760\"", "TORRIKA \"KJ-557\"", "orange", "KHACOR \"SMARTMOVE\"", true]];
battles.push(new Array());
battles[battles.length - 1].name = "SKIRMESH";
battles[battles.length - 1].weightdivision = "HEAVYWEIGHT";
battles[battles.length - 1].prizemoney = 18000;
battles[battles.length - 1].entryfee = 8000;
battles[battles.length - 1].levelrequirement = 10;
battles[battles.length - 1].winlevel = 11;
battles[battles.length - 1].arena = 1;
battles[battles.length - 1].opponents = [["SABRE", "", 27, 5500, 30, "GAIACORP \"SC-RS\"", "RAPTOR \"DT-02\"", "orange", "KHACOR \"SMARTMOVE\"", true], ["RAPIER", "", 27, 5500, 30, "GAIACORP \"SC-RS\"", "RAPTOR \"DT-02\"", "orange", "KHACOR \"SMARTMOVE\"", true], ["CUTLASS", "", 30, 5500, 30, "OVERWATCH \"R760\"", "DARSIK \"B301-1\"", "orange", "KHACOR \"SMARTMOVE\"", true]];
battles.push(new Array());
battles[battles.length - 1].name = "VULCANDOME ARENA";
battles[battles.length - 1].weightdivision = "HEAVYWEIGHT";
battles[battles.length - 1].prizemoney = 22000;
battles[battles.length - 1].entryfee = 10050;
battles[battles.length - 1].levelrequirement = 11;
battles[battles.length - 1].winlevel = 12;
battles[battles.length - 1].arena = 2;
battles[battles.length - 1].opponents = [["PULSE", "", 45, 7500, 50, "OVERWATCH \"Z\"", "CIRCES \"XT\"", "orange", "XEROI \"CLR-Z050\"", true], ["SURGE", "", 45, 7500, 50, "GAIACORP \"EG-PR\"", "CIRCES \"XT\"", "orange", "XEROI \"CLR-Z050\"", true]];
battles.push(new Array());
battles[battles.length - 1].name = "THE FOUNDRY";
battles[battles.length - 1].weightdivision = "MEGAWEIGHT";
battles[battles.length - 1].prizemoney = 26000;
battles[battles.length - 1].entryfee = 12000;
battles[battles.length - 1].levelrequirement = 12;
battles[battles.length - 1].winlevel = 13;
battles[battles.length - 1].arena = 3;
battles[battles.length - 1].opponents = [["GUARDIAN", "", 38, 7500, 50, "GAIACORP \"SC-RS\"", "DARSIK \"B301-1\"", "orange", "XEROI \"CLR-Z050\"", true], ["EMPEROR", "", 37, 7500, 50, "GAIACORP \"SC-RS\"", "ZENI \"PRS\"", "orange", "XEROI \"CLR-Z050\"", true], ["GUARDIAN", "", 38, 7500, 50, "GAIACORP \"SC-RS\"", "DARSIK \"B301-1\"", "orange", "XEROI \"CLR-Z050\"", true]];
battles.push(new Array());
battles[battles.length - 1].name = "THE KAMIKAZE-DOME";
battles[battles.length - 1].weightdivision = "MEGAWEIGHT";
battles[battles.length - 1].prizemoney = 30000;
battles[battles.length - 1].entryfee = 14000;
battles[battles.length - 1].levelrequirement = 13;
battles[battles.length - 1].winlevel = 14;
battles[battles.length - 1].arena = 2;
battles[battles.length - 1].opponents = [["KAMI", "", 59, 12000, 70, "GAIACORP \"EG-SR\"", "DARSIK \"B301-1\"", "orange", "NTECH \"DURICHAS\"", true], ["KAZE", "", 59, 12000, 70, "GAIACORP \"EG-SR\"", "DARSIK \"B301-1\"", "orange", "NTECH \"DURICHAS\"", true]];
battles.push(new Array());
battles[battles.length - 1].name = "EXECUTE 2059";
battles[battles.length - 1].weightdivision = "MEGAWEIGHT";
battles[battles.length - 1].prizemoney = 35000;
battles[battles.length - 1].entryfee = 16500;
battles[battles.length - 1].levelrequirement = 14;
battles[battles.length - 1].winlevel = 15;
battles[battles.length - 1].arena = 1;
battles[battles.length - 1].opponents = [["THRASH", "", 59, 8000, 64, "GAIACORP \"EG-PR\"", "THEMODIN \"CEREBUS\"", "orange", "KHACOR \"ELECTRON\"", true], ["TREMOR", "", 59, 8000, 64, "KURON \"SHRED-MK3\"", "CIRCES \"XT\"", "orange", "KHACOR \"ELECTRON\"", true]];
battles.push(new Array());
battles[battles.length - 1].name = "THE FINAL HOUR";
battles[battles.length - 1].weightdivision = "SUPER MEGAWEIGHT";
battles[battles.length - 1].prizemoney = 50000;
battles[battles.length - 1].entryfee = 22000;
battles[battles.length - 1].levelrequirement = 15;
battles[battles.length - 1].winlevel = 16;
battles[battles.length - 1].arena = 2;
battles[battles.length - 1].opponents = [["S C R E A M", "", 85, 13000, 85, "KURON \"SHRED-MK3\"", "SCREAM SHARD", "orange", "XEROI \"DELIVERANCE\"", true], ["D E S P A I R", "", 63, 8000, 64, "OVERWATCH \"Z\"", "THEMODIN \"CEREBUS\"", "orange", "KHACOR \"ELECTRON\"", true]];
bholder._x = 640;
gotox = 0;
bholder.onEnterFrame = function () {
if (((gotox - this._x) > 2) || ((gotox - this._x) < -2)) {
this._x = this._x + ((gotox - this._x) / 5);
iholder._x = this._x + 640;
_root._quality = "LOW";
return(undefined);
}
this._x = gotox;
iholder._x = this._x + 640;
_root._quality = _root.gamequal;
};
bholder.onEnterFrame();
bnum = 0;
alt = false;
onEnterFrame = function () {
if (this.node.hitarea.hitTest(_xmouse, _ymouse, true)) {
this.node.thename._alpha = 100;
this.node.glower._alpha = 100;
} else if (this.node.thename._alpha > 0) {
this.node.thename._alpha = this.node.thename._alpha - 10;
this.node.glower._alpha = this.node.glower._alpha - 10;
}
if (this.wait == 0) {
if (this._currentframe == 1) {
this.gotoAndPlay(2);
this.node.gotoAndPlay("good");
if (playerlevel < this.lrequirement) {
this.node.gotoAndPlay("locked");
} else if ((teamweight > weightclasses[this.wrequirement][1]) && (this.crequirement > cash)) {
this.node.gotoAndPlay("bad");
} else if (teamweight > weightclasses[this.wrequirement][1]) {
this.node.gotoAndPlay("bad");
} else if (this.crequirement > cash) {
this.node.gotoAndPlay("poor");
} else {
this.node.gotoAndPlay("good");
}
}
return(undefined);
}
this.wait--;
};
while (bnum < battles.length) {
newnode = bholder.attachMovie("lnode", "levelnode" + bnum, bnum);
newnode._x = 250;
if (alt == true) {
newnode._x = newnode._x + 15;
}
alt = !alt;
newnode._y = ((400 / battles.length) * bnum) + 55;
newnode.stop();
newnode.wait = 3 * (bnum + 1);
newnode.id = bnum;
newnode.displayt = battles[bnum].name;
newnode.onEnterFrame = onEnterFrame;
newnode.lrequirement = battles[bnum].levelrequirement;
newnode.crequirement = battles[bnum].entryfee;
newnode.wrequirement = battles[bnum].weightdivision;
newnode.arena = battles[bnum].arena;
bnum++;
}
clickaction = function (target) {
gotox = -640;
if (playerlevel < target.lrequirement) {
iholder.gotoAndStop("locked");
iholder.playbutton._visible = false;
} else {
if ((teamweight > weightclasses[target.wrequirement][1]) && (target.crequirement > cash)) {
iholder.gotoAndStop("both");
} else if (teamweight > weightclasses[target.wrequirement][1]) {
iholder.gotoAndStop("bad");
} else if (target.crequirement > cash) {
iholder.gotoAndStop("poor");
} else {
iholder.gotoAndStop("good");
}
iholder.battlename = battles[target.id].name;
iholder.details = "";
iholder.details = iholder.details + (((("WEIGHT LIMIT: " + battles[target.id].weightdivision) + " (") + weightclasses[battles[target.id].weightdivision][1]) + ")");
iholder.details = iholder.details + "\r";
iholder.details = iholder.details + ("YOUR TEAM'S WEIGHT: " + teamweight);
iholder.details = iholder.details + "\r\r";
iholder.details = iholder.details + ("ENTRY COST: " + battles[target.id].entryfee);
iholder.details = iholder.details + "\r";
iholder.details = iholder.details + ("YOUR CASH: " + cash);
iholder.details = iholder.details + "\r\r";
iholder.details = iholder.details + ("PRIZE MONEY: " + battles[target.id].prizemoney);
iholder.map.bg.graphic.gotoAndStop(target.arena);
iholder.map.ob.graphic.gotoAndStop(target.arena);
iholder.playbutton._visible = true;
}
lastclicktarget = target;
};
bholder.backbutton.displaytext = "SHOP";
bholder.backbutton.onPress = function () {
gotox = 640;
mholder.fadeout(3);
sholder.fadeout(3);
fader.gotoAndPlay("fadeout");
fader.onPress = function () {
};
fader.useHandCursor = false;
battleinfo = battles[lastclicktarget.id];
fadeoutcompleted = fade_lvlselect_shop;
};
iholder.backbutton.displaytext = "BACK";
iholder.backbutton.onPress = function () {
gotox = 0;
};
iholder.playbutton.displaytext = "PLAY";
iholder.playbutton.onPress = function () {
gotox = -1280;
mholder.fadeout(6);
sholder.fadeout(6);
fader.gotoAndPlay("fadeout");
fader.onPress = function () {
};
fader.useHandCursor = false;
battleinfo = battles[lastclicktarget.id];
fadeoutcompleted = fade_lvlselect_battle;
};
cleanup = function () {
delete gotox;
delete alt;
delete newnode;
delete bnum;
delete weightclasses;
delete weighttable;
delete battles;
delete cleanup;
};
Frame 11
stop();
fader.gotoAndPlay("fadein");
mholder.fadein(2);
sholder.fadein(2);
playsound("rave", "music");
weightclasses = new Array();
weightclasses = new Array();
weightclasses.ORIENTATION = [0, 35];
weightclasses.LIGHTWEIGHT = [20, 45];
weightclasses.MIDDLEWEIGHT = [30, 70];
weightclasses.HEAVYWEIGHT = [40, 95];
weightclasses.MEGAWEIGHT = [50, 120];
weightclasses["SUPER MEGAWEIGHT"] = [50, 150];
weightclasses.ANYWEIGHT = [50, 9001];
weighttable = ["ORIENTATION", "LIGHTWEIGHT", "MIDDLEWEIGHT", "HEAVYWEIGHT", "MEGAWEIGHT", "SUPER MEGAWEIGHT"];
battles = new Array();
battles.push(new Array());
battles[battles.length - 1].name = "TRAINING: INTRODUCTION";
battles[battles.length - 1].weightdivision = "ANYWEIGHT";
battles[battles.length - 1].prizemoney = 0;
battles[battles.length - 1].entryfee = 0;
battles[battles.length - 1].levelrequirement = 1;
battles[battles.length - 1].winlevel = 2;
battles[battles.length - 1].arena = 1;
battles[battles.length - 1].playerbots = [["BULLYBOY", "", 15, 4000, 22, "CHROMETEK \"LIGHT\"", "RAPTOR \"DT-01\"", "orange", "AKAUMIN \"DLZ-250\"", true], ["SCRUFF", "", 15, 4000, 22, "CHROMETEK \"LIGHT\"", "RAPTOR \"DT-01\"", "orange", "AKAUMIN \"DLZ-250\"", true], ["BUTCH", "", 15, 4000, 22, "CHROMETEK \"LIGHT\"", "RAPTOR \"DT-01\"", "orange", "AKAUMIN \"DLZ-250\"", true]];
battles[battles.length - 1].opponents = [["ROUGHOUSE", "", 15, 4000, 22, "CHROMETEK \"LIGHT\"", "RAPTOR \"DT-01\"", "orange", "AKAUMIN \"DLZ-250\"", true], ["TOUGHGUY", "", 15, 4000, 22, "CHROMETEK \"LIGHT\"", "RAPTOR \"DT-01\"", "orange", "AKAUMIN \"DLZ-250\"", true], ["BRUISER", "", 15, 4000, 22, "CHROMETEK \"LIGHT\"", "RAPTOR \"DT-01\"", "orange", "AKAUMIN \"DLZ-250\"", true]];
battles[battles.length - 1].description = "GIVING EFFECTIVE ORDERS IS ONE OF THE KEY ELEMENTS TO WINNING BOT ARENA. IN THIS EVEN-SIDED SCENARIO, 'GANGING UP' ON A TARGET IS AN IDEAL STRATEGY TO WINNING THIS MATCH. READ THE GAME INSTRUCTIONS FOR INFORMATION ON GIVING ORDERS TO YOUR BOTS.";
battles.push(new Array());
battles[battles.length - 1].name = "TRAINING: EVASION";
battles[battles.length - 1].weightdivision = "ANYWEIGHT";
battles[battles.length - 1].prizemoney = 0;
battles[battles.length - 1].entryfee = 0;
battles[battles.length - 1].levelrequirement = 1;
battles[battles.length - 1].winlevel = 2;
battles[battles.length - 1].arena = 2;
battles[battles.length - 1].playerbots = [["PUPPY", "", 12, 3000, 16, "CHROMETEK \"LIGHT\"", "RAPTOR \"DT-01\"", "orange", "AKAUMIN \"DLZ-100\"", true]];
battles[battles.length - 1].opponents = [["SLAMMER", "", 26, 5500, 30, "OVERWATCH \"R760\"", "TORRIKA \"KJ-557\"", "orange", "KHACOR \"SMARTMOVE\"", true], ["POUNDER", "", 26, 5500, 30, "OVERWATCH \"R760\"", "TORRIKA \"KJ-557\"", "orange", "KHACOR \"SMARTMOVE\"", true], ["THUMPER", "", 26, 5500, 30, "OVERWATCH \"R760\"", "TORRIKA \"KJ-557\"", "orange", "KHACOR \"SMARTMOVE\"", true], ["PUNCHER", "", 26, 5500, 30, "OVERWATCH \"R760\"", "TORRIKA \"KJ-557\"", "orange", "KHACOR \"SMARTMOVE\"", true]];
battles[battles.length - 1].description = "YOU ARE AN INNOCENT LITTLE PUPPY IN A ROOM FULL OF JACKHAMMER WEILDING MANIACS. EVADE YOUR OPPONENTS FOR LONG ENOUGH AND THEY WILL GET TIRED AND CEASE CHASING YOU.";
battles.push(new Array());
battles[battles.length - 1].name = "TRAINING: STRATEGY";
battles[battles.length - 1].weightdivision = "ANYWEIGHT";
battles[battles.length - 1].prizemoney = 0;
battles[battles.length - 1].entryfee = 0;
battles[battles.length - 1].levelrequirement = 1;
battles[battles.length - 1].winlevel = 2;
battles[battles.length - 1].arena = 2;
battles[battles.length - 1].playerbots = [["QUEEN", "", 75, 13000, 85, "OVERWATCH \"R200\"", "DEVENGE \"STK\"", "orange", "KHACOR \"ELECTRON\"", true]];
battles[battles.length - 1].opponents = [["BISHOP", "", 43, 8000, 64, "OVERWATCH \"R200\"", "ZENI \"PRZ-2\"", "orange", "KHACOR \"ELECTRON\"", true], ["KNIGHT", "", 39, 8000, 64, "OVERWATCH \"Z\"", "DARSIJ \"A101-1\"", "orange", "KHACOR \"ELECTRON\"", true], ["PAWN", "", 35, 8000, 64, "OVERWATCH \"Z\"", "TORRIKA \"KJ-557\"", "orange", "KHACOR \"ELECTRON\"", true]];
battles[battles.length - 1].description = "CHESS IS A VERY STRATEGIC GAME, AND THE LOSER IS TYPICALLY THE ONE WHO IS LESS STRATIGICALLY ABLED. USE STRATEGY TO SOLVE THIS SITUATION.";
battles.push(new Array());
battles[battles.length - 1].name = "TRAINING: DISTRACTING";
battles[battles.length - 1].weightdivision = "ANYWEIGHT";
battles[battles.length - 1].prizemoney = 0;
battles[battles.length - 1].entryfee = 0;
battles[battles.length - 1].levelrequirement = 1;
battles[battles.length - 1].winlevel = 2;
battles[battles.length - 1].arena = 3;
battles[battles.length - 1].playerbots = [["SHIELD", "", 51, 12000, 70, "KURON \"SHRED-MK3\"", "nil", "orange", "NTECH \"DURICHAS\"", true], ["SWORD", "", 38, 7500, 50, "SANTRIN \"AURO\"", "DEVENGE \"STK\"", "orange", "XEROI \"CLR-Z050\"", true]];
battles[battles.length - 1].opponents = [["DRAGON", "", 62, 12000, 70, "OVERWATCH \"Z\"", "DEVENGE \"STK\"", "orange", "NTECH \"DURICHAS\"", true]];
battles[battles.length - 1].description = "THE GREATEST OF WARRIORS HAVE ALWAYS UNDERSTOOD THAT THE SWORD IS EQUALLY IMPORTANT AS THE SHIELD, AND THAT ONE IS USELESS WITHOUT THE OTHER. SLAY THE DRAGON BY MAINTAINING THIS BALANCE.";
battles.push(new Array());
battles[battles.length - 1].name = "TRAINING: RANGED";
battles[battles.length - 1].weightdivision = "ANYWEIGHT";
battles[battles.length - 1].prizemoney = 0;
battles[battles.length - 1].entryfee = 0;
battles[battles.length - 1].levelrequirement = 1;
battles[battles.length - 1].winlevel = 2;
battles[battles.length - 1].arena = 1;
battles[battles.length - 1].playerbots = [["SNIPER", "", 39, 7500, 50, "SANTRIN \"AURO\"", "DEVENGE \"STK\"", "orange", "AKAUMIN \"DLZ-100\"", true]];
battles[battles.length - 1].opponents = [["GUARD", "", 54, 12000, 70, "KURON \"SHRED-MK3\"", "KEDRON \"SPKL-D4\"", "orange", "NTECH \"DURICHAS\"", true], ["GUARD", "", 54, 12000, 70, "KURON \"SHRED-MK3\"", "KEDRON \"SPKL-D4\"", "orange", "NTECH \"DURICHAS\"", true], ["GUARD", "", 54, 12000, 70, "KURON \"SHRED-MK3\"", "KEDRON \"SPKL-D4\"", "orange", "NTECH \"DURICHAS\"", true]];
battles[battles.length - 1].description = "BOTS ARMED WITH LONG RANGE WEAPONS SHOULD STAY AS FAR AWAY FROM THE ENEMY AS POSSIBLE WHILE STILL BEING USEFUL. DEMONSTRATE THIS PRACTISE BY AVOIDING AND INFLICTING DAMAGE.";
battles.push(new Array());
battles[battles.length - 1].name = "TRAINING: PROTECTION";
battles[battles.length - 1].weightdivision = "ANYWEIGHT";
battles[battles.length - 1].prizemoney = 0;
battles[battles.length - 1].entryfee = 0;
battles[battles.length - 1].levelrequirement = 1;
battles[battles.length - 1].winlevel = 2;
battles[battles.length - 1].arena = 2;
battles[battles.length - 1].playerbots = [["MEDIC", "", 36, 7500, 50, "SANTRIN \"AURO\"", "ZENI \"PRZ-2\"", "orange", "XEROI \"CLR-Z050\"", true], ["SOLDIER", "", 43, 8000, 64, "GAIACORP \"LB-MK2\"", "RAPTOR \"DT-02\"", "orange", "KHACOR \"ELECTRON\"", true]];
battles[battles.length - 1].opponents = [["COMMANDER", "", 59, 12000, 70, "GAIACORP \"EG-SR\"", "DARSIK \"B301-1\"", "orange", "NTECH \"DURICHAS\"", true]];
battles[battles.length - 1].description = "BOTS ARMED WITH LONG RANGE WEAPONS SHOULD STAY AS FAR AWAY FROM THE ENEMY AS POSSIBLE WHILE STILL BEING USEFUL. DEMONSTRATE THIS PRACTISE BY AVOIDING AND INFLICTING DAMAGE.";
battles.push(new Array());
battles[battles.length - 1].name = "FUN: HAMMERTIME";
battles[battles.length - 1].weightdivision = "ANYWEIGHT";
battles[battles.length - 1].prizemoney = 0;
battles[battles.length - 1].entryfee = 0;
battles[battles.length - 1].levelrequirement = 1;
battles[battles.length - 1].winlevel = 2;
battles[battles.length - 1].arena = 3;
battles[battles.length - 1].playerbots = [["HAMMERHEAD", "", 26, 5500, 30, "OVERWATCH \"R760\"", "TORRIKA \"KJ-557\"", "orange", "KHACOR \"SMARTMOVE\"", true], ["HAMMERHEAD", "", 26, 5500, 30, "OVERWATCH \"R760\"", "TORRIKA \"KJ-557\"", "orange", "KHACOR \"SMARTMOVE\"", true], ["HAMMERHEAD", "", 26, 5500, 30, "OVERWATCH \"R760\"", "TORRIKA \"KJ-557\"", "orange", "KHACOR \"SMARTMOVE\"", true], ["HAMMERHEAD", "", 26, 5500, 30, "OVERWATCH \"R760\"", "TORRIKA \"KJ-557\"", "orange", "KHACOR \"SMARTMOVE\"", true]];
battles[battles.length - 1].opponents = [["HAMMERHEAD", "", 26, 5500, 30, "OVERWATCH \"R760\"", "TORRIKA \"KJ-557\"", "orange", "KHACOR \"SMARTMOVE\"", true], ["HAMMERHEAD", "", 26, 5500, 30, "OVERWATCH \"R760\"", "TORRIKA \"KJ-557\"", "orange", "KHACOR \"SMARTMOVE\"", true], ["HAMMERHEAD", "", 26, 5500, 30, "OVERWATCH \"R760\"", "TORRIKA \"KJ-557\"", "orange", "KHACOR \"SMARTMOVE\"", true], ["HAMMERHEAD", "", 26, 5500, 30, "OVERWATCH \"R760\"", "TORRIKA \"KJ-557\"", "orange", "KHACOR \"SMARTMOVE\"", true]];
battles[battles.length - 1].description = "STOP. HAMMERTIME!";
bholder._x = 640;
gotox = 0;
bholder.onEnterFrame = function () {
if (((gotox - this._x) > 2) || ((gotox - this._x) < -2)) {
this._x = this._x + ((gotox - this._x) / 5);
iholder._x = this._x + 640;
_root._quality = "LOW";
return(undefined);
}
this._x = gotox;
iholder._x = this._x + 640;
_root._quality = _root.gamequal;
};
bholder.onEnterFrame();
bnum = 0;
alt = false;
onEnterFrame = function () {
if (this.node.hitarea.hitTest(_xmouse, _ymouse, true)) {
this.node.thename._alpha = 100;
this.node.glower._alpha = 100;
} else if (this.node.thename._alpha > 0) {
this.node.thename._alpha = this.node.thename._alpha - 10;
this.node.glower._alpha = this.node.glower._alpha - 10;
}
if (this.wait == 0) {
if (this._currentframe == 1) {
this.gotoAndPlay(2);
this.node.gotoAndPlay("good");
if (playerlevel < this.lrequirement) {
this.node.gotoAndPlay("locked");
} else if ((teamweight > weightclasses[this.wrequirement][1]) && (this.crequirement > cash)) {
this.node.gotoAndPlay("bad");
} else if (teamweight > weightclasses[this.wrequirement][1]) {
this.node.gotoAndPlay("bad");
} else if (this.crequirement > cash) {
this.node.gotoAndPlay("poor");
} else {
this.node.gotoAndPlay("good");
}
}
return(undefined);
}
this.wait--;
};
while (bnum < battles.length) {
newnode = bholder.attachMovie("lnode", "levelnode" + bnum, bnum);
newnode._x = 250;
if (alt == true) {
newnode._x = newnode._x + 15;
}
alt = !alt;
newnode._y = ((300 / battles.length) * bnum) + 100;
newnode.stop();
newnode.wait = 3 * (bnum + 1);
newnode.id = bnum;
newnode.displayt = battles[bnum].name;
newnode.onEnterFrame = onEnterFrame;
newnode.lrequirement = battles[bnum].levelrequirement;
newnode.crequirement = battles[bnum].entryfee;
newnode.wrequirement = battles[bnum].weightdivision;
newnode.arena = battles[bnum].arena;
bnum++;
}
clickaction = function (target) {
gotox = -640;
if (playerlevel < target.lrequirement) {
iholder.gotoAndStop("locked");
iholder.playbutton._visible = false;
} else {
if ((teamweight > weightclasses[target.wrequirement][1]) && (target.crequirement > cash)) {
iholder.gotoAndStop("both");
} else if (teamweight > weightclasses[target.wrequirement][1]) {
iholder.gotoAndStop("bad");
} else if (target.crequirement > cash) {
iholder.gotoAndStop("poor");
} else {
iholder.gotoAndStop("good");
}
iholder.battlename = battles[target.id].name;
iholder.details = "";
iholder.details = iholder.details + battles[target.id].description;
iholder.map.bg.graphic.gotoAndStop(target.arena);
iholder.map.ob.graphic.gotoAndStop(target.arena);
iholder.playbutton._visible = true;
}
lastclicktarget = target;
};
bholder.backbutton.displaytext = "BACK";
bholder.backbutton.onPress = function () {
gotox = 640;
mholder.fadeout(3);
sholder.fadeout(3);
fader.gotoAndPlay("fadeout");
fader.onPress = function () {
};
fader.useHandCursor = false;
battleinfo = battles[lastclicktarget.id];
fadeoutcompleted = fade_lvlselect_mainmenu;
};
iholder.backbutton.displaytext = "BACK";
iholder.backbutton.onPress = function () {
gotox = 0;
};
iholder.playbutton.displaytext = "PLAY";
iholder.playbutton.onPress = function () {
gotox = -1280;
mholder.fadeout(6);
sholder.fadeout(6);
fader.gotoAndPlay("fadeout");
fader.onPress = function () {
};
fader.useHandCursor = false;
battleinfo = battles[lastclicktarget.id];
fadeoutcompleted = fade_lvlselect_battle;
};
cleanup = function () {
delete gotox;
delete alt;
delete newnode;
delete bnum;
delete weightclasses;
delete weighttable;
delete battles;
delete cleanup;
};
Frame 12
opt1.displaytext = "> DON'T SAVE, JUST EXIT";
opt2.displaytext = "> SAVE AND EXIT";
opt3.displaytext = "> RETURN TO CAREER";
opt1.onPress = function () {
fadeoutcompleted = fade_exitcheck_mainmenu;
mholder.fadeout(3);
sholder.fadeout(3);
fader.gotoAndPlay("fadeout");
fader.onPress = function () {
};
fader.useHandCursor = false;
};
opt2.onPress = function () {
fadeoutcompleted = fade_exitcheck_mainmenu;
savegame();
mholder.fadeout(3);
sholder.fadeout(3);
fader.gotoAndPlay("fadeout");
fader.onPress = function () {
};
fader.useHandCursor = false;
};
opt3.onPress = function () {
fadeoutcompleted = fade_exitcheck_shop;
mholder.fadeout(3);
sholder.fadeout(3);
fader.gotoAndPlay("fadeout");
fader.onPress = function () {
};
fader.useHandCursor = false;
};
Frame 13
svol.displaytext = "SOUND VOLUME";
mvol.displaytext = "MUSIC VOLUME";
svol.slider._y = 180 - (sndset.sndvol * 1.8);
mvol.slider._y = 180 - (sndset.musvol * 1.8);
onEnterFrame = function () {
sndset.musvol = mvol.amount;
musmgr.setVolume((mholder.volpercent / 100) * sndset.musvol);
sndset.sndvol = svol.amount;
sndmgr.setVolume((sholder.volpercent / 100) * sndset.sndvol);
};
donebut.onPress = function () {
delete onEnterFrame;
cancelstop = true;
fader.gotoAndPlay("fadeout");
fader.onPress = function () {
};
fader.useHandCursor = false;
fadeoutcompleted = fade_settings_mainmenu;
};
Symbol 43 MovieClip Frame 1
stop();
Symbol 53 MovieClip Frame 4
removeMovieClip(_parent);
Symbol 59 MovieClip Frame 6
removeMovieClip(_parent);
Symbol 63 MovieClip Frame 7
removeMovieClip(_parent);
Symbol 67 MovieClip Frame 7
removeMovieClip(_parent);
Symbol 71 MovieClip Frame 4
removeMovieClip(_parent);
Symbol 75 MovieClip Frame 4
removeMovieClip(_parent);
Symbol 109 MovieClip Frame 1
pickone = [2, 10, 19];
gotoAndPlay(pickone[random(3)]);
delete pickone;
Symbol 109 MovieClip Frame 9
removeMovieClip(this._parent);
Symbol 109 MovieClip Frame 18
removeMovieClip(this._parent);
Symbol 109 MovieClip Frame 27
removeMovieClip(this._parent);
Symbol 113 MovieClip Frame 5
removeMovieClip(this._parent);
Symbol 124 MovieClip Frame 8
removeMovieClip(this._parent);
Symbol 127 MovieClip Frame 7
removeMovieClip(this._parent);
Symbol 138 MovieClip Frame 8
removeMovieClip(this._parent);
Symbol 144 MovieClip Frame 6
removeMovieClip(this._parent);
Symbol 150 MovieClip Frame 6
removeMovieClip(this._parent);
Symbol 168 MovieClip Frame 20
stop();
Symbol 174 MovieClip Frame 1
this.onPress = function () {
_root.clickaction(this._parent._parent);
};
Symbol 191 MovieClip Frame 19
stop();
Symbol 217 MovieClip Frame 1
stop();
Symbol 217 MovieClip Frame 14
stop();
Symbol 217 MovieClip Frame 28
stop();
Symbol 217 MovieClip Frame 41
stop();
Symbol 217 MovieClip Frame 55
stop();
Symbol 218 MovieClip [lnode] Frame 5
stop();
Symbol 231 MovieClip Frame 1
pickone = [2, 6, 8, 11];
gotoAndPlay(pickone[random(4)]);
delete pickone;
Symbol 231 MovieClip Frame 4
removeMovieClip(_parent);
Symbol 231 MovieClip Frame 7
removeMovieClip(_parent);
Symbol 231 MovieClip Frame 10
removeMovieClip(_parent);
Symbol 231 MovieClip Frame 13
removeMovieClip(_parent);
Symbol 238 MovieClip Frame 8
removeMovieClip(this._parent);
Symbol 248 MovieClip Frame 5
removeMovieClip(this._parent);
Symbol 254 MovieClip Frame 7
removeMovieClip(this._parent);
Symbol 255 MovieClip Frame 5
removeMovieClip(this._parent);
Symbol 264 MovieClip Frame 7
removeMovieClip(this._parent);
Symbol 277 MovieClip Frame 1
if (this.stopanimating != true) {
gotoAndPlay(random(15));
}
Symbol 279 MovieClip Frame 1
stop();
Symbol 289 MovieClip Frame 1
stop();
_rotation = random(360);
onEnterFrame = function () {
this._rotation = this._rotation + 13;
};
Symbol 294 MovieClip Frame 1
stop();
Symbol 302 MovieClip Frame 1
stop();
Symbol 311 MovieClip Frame 1
shine.onEnterFrame = function () {
this._x = -(random(34) + 6);
trace(this._x);
};
Symbol 351 MovieClip Frame 1
onEnterFrame = function () {
this._rotation = this._rotation + 7.5;
};
Symbol 356 MovieClip [top] Frame 1
stop();
Symbol 365 MovieClip [bot] Frame 1
stop();
Symbol 365 MovieClip [bot] Frame 10
stop();
Symbol 372 MovieClip Frame 6
stop();
Instance of Symbol 372 MovieClip in Symbol 375 MovieClip [boom] Frame 1
onClipEvent (load) {
this._x = random(30) - 15;
this._y = random(30) - 15;
}
Instance of Symbol 372 MovieClip in Symbol 375 MovieClip [boom] Frame 4
onClipEvent (load) {
this._x = random(30) - 15;
this._y = random(30) - 15;
}
Instance of Symbol 372 MovieClip in Symbol 375 MovieClip [boom] Frame 5
onClipEvent (load) {
this._x = random(30) - 15;
this._y = random(30) - 15;
}
Instance of Symbol 372 MovieClip in Symbol 375 MovieClip [boom] Frame 8
onClipEvent (load) {
this._x = random(30) - 15;
this._y = random(30) - 15;
}
Symbol 375 MovieClip [boom] Frame 13
removeMovieClip(this);
Symbol 385 MovieClip Frame 1
onPress = function () {
getURL ("http://www.gamegecko.com", "geckowindow");
};
Instance of Symbol 385 MovieClip in Symbol 386 MovieClip Frame 1
on (press) {
getURL ("http://www.gamegecko.com", "_blank");
}
Symbol 389 MovieClip Frame 18
stop();
Symbol 389 MovieClip Frame 35
trace("CANCELSTOP: " + _root.cancelstop);
if (_root.cancelstop == undefined) {
stopAllSounds();
trace("ALL SOUNDS STOPPED!");
} else {
delete _root.cancelstop;
}
_parent.fadeoutcompleted();
Symbol 390 MovieClip Frame 1
stop();
Symbol 400 MovieClip Frame 1
onPress = function () {
getURL ("http://www.gamegecko.com", "_blank");
};
Symbol 415 MovieClip Frame 215
_parent.gotoAndStop("menu");
Symbol 421 MovieClip Frame 1
this.onEnterFrame = function () {
this.gotoAndStop(random(4) + 2);
this._alpha = 20;
this._alpha = this._alpha + random(30);
this._alpha = this._alpha + random(30);
this._alpha = this._alpha + random(30);
this._xscale = random(40) + 90;
this._yscale = this._xscale;
this._xscale = this._xscale - random(60);
this._yscale = this._yscale + random(60);
this._yscale = this._yscale + (Math.pow(random(3), 5) * 3);
this._rotation = random(30) - 15;
};
Instance of Symbol 426 MovieClip in Symbol 449 MovieClip Frame 1
on (press) {
getURL ("http://www.gamegecko.com", "_blank");
}
Symbol 461 MovieClip Frame 1
stop();
this.gotoAndStop(2);
if (this.ena == true) {
this.onRollOver = function () {
this.gotoAndStop(3);
};
this.onRollOut = function () {
this.gotoAndStop(2);
};
}
this.onPress = function () {
if (this.ena == true) {
if (this.act == "leave") {
if (this.ms == true) {
_root.mholder.fadeout(4);
_root.sholder.fadeout(4);
} else {
_root.cancelstop = true;
}
_parent.b1._visible = false;
_parent.b2._visible = false;
_parent.b3._visible = false;
_parent.b4._visible = false;
_parent.b5._visible = false;
_parent.b6._visible = false;
_parent.b0._visible = false;
this._visible = true;
delete this.onRollOut;
delete this.onRollOver;
_parent._parent.gotoAndPlay(61);
_parent._parent.butclicked = this._name;
return(undefined);
}
if (this.act == "stay") {
getURL ("http://www.gamegecko.com", "_BLANK");
}
}
};
Symbol 467 MovieClip Frame 1
b1.dt = "NEW CAREER";
b2.dt = "LOAD CAREER";
b3.dt = "CHALLENGE MODE";
b4.dt = "INSTRUCTIONS";
b5.dt = "SETTINGS/CREDITS";
b6.dt = "PLAY MORE GAMES";
b1.act = "leave";
b2.act = "leave";
b3.act = "leave";
b4.act = "leave";
b5.act = "leave";
b6.act = "stay";
b1.ms = true;
b2.ms = true;
b3.ms = true;
b4.ms = false;
b5.ms = false;
b6.ms = false;
b1.ena = true;
if (_root.aretheresaves() == true) {
trace("THERE WAS SAVES");
delete _root.my_so;
b2.ena = true;
} else {
trace("THERE WAS NO SAVES");
delete _root.my_so;
b2.ena = false;
b2._alpha = 50;
}
b3.ena = true;
b4.ena = true;
b5.ena = true;
b6.ena = true;
Symbol 468 MovieClip Frame 60
stop();
Symbol 468 MovieClip Frame 90
_root.fadeoutcompleted = function () {
};
_root.fader.gotoAndPlay("end");
_root.fader.onPress = function () {
};
_root.fader.useHandCursor = false;
if (butclicked == "b1") {
_root.playercolor = 1;
_root.playerlevel = 1;
_root.cash = 1000000 /* 0x0F4240 */;
_root.botdb = new Array();
_root.wongame = false;
_root.inventorydb = new Array();
_root.playstart = true;
_root.gotoAndStop("shop");
}
if (butclicked == "b2") {
_root.loadgame();
_root.playstart = true;
_root.gotoAndStop("shop");
}
if (butclicked == "b3") {
_root.playercolor = 1;
_root.playerlevel = 1;
_root.cash = 8200;
_root.botdb = new Array();
_root.wongame = false;
_root.inventorydb = new Array();
_root.playstart = true;
_root.gotoAndStop("challengeselect");
}
if (butclicked == "b4") {
_root.playstart = false;
_root.gotoAndStop("instructions");
}
if (butclicked == "b5") {
_root.playstart = false;
_root.gotoAndStop("settings");
}
Symbol 490 MovieClip Frame 1
stop();
Symbol 541 MovieClip Frame 1
gotoAndPlay(random(24));
Symbol 546 MovieClip Frame 1
gotoAndPlay(random(24));
Symbol 553 MovieClip Frame 1
gotoAndPlay(random(24));
Symbol 564 MovieClip Frame 1
gotoAndPlay(random(20) + 2);
Symbol 601 MovieClip Frame 1
stop();
Symbol 601 MovieClip Frame 2
trace("arrived at new page");
holder.gungraphic._rotation = 45;
holder.gungraphic.onEnterFrame = function () {
this._rotation++;
};
onLeavePage = function () {
trace("LEFT PAGE");
delete holder.gungraphic.onEnterFrame;
};
Symbol 601 MovieClip Frame 3
trace("arrived at new page");
holder.platinggraphic._rotation = 45;
holder.platinggraphic.gun.swapDepths(10);
removeMovieClip(holder.platinggraphic.gun);
holder.platinggraphic.onEnterFrame = function () {
this._rotation++;
};
onLeavePage = function () {
trace("LEFT PAGE");
delete holder.platinggraphic.onEnterFrame;
};
Symbol 601 MovieClip Frame 4
trace("arrived at new page");
holder.chassisgraphic._rotation = 45;
holder.chassisgraphic.onEnterFrame = function () {
this._rotation++;
};
onLeavePage = function () {
trace("LEFT PAGE");
delete holder.chassisgraphic.onEnterFrame;
};
Symbol 601 MovieClip Frame 5
holder3.gungraphic._rotation = 45;
holder2.platinggraphic._rotation = 45;
holder1.chassisgraphic._rotation = 45;
holder2.platinggraphic.gun.swapDepths(10);
removeMovieClip(holder2.platinggraphic.gun);
holder1.chassisgraphic.onEnterFrame = function () {
this._rotation++;
};
holder2.platinggraphic.onEnterFrame = function () {
this._rotation++;
};
holder3.gungraphic.onEnterFrame = function () {
this._rotation = this._rotation - 1.5;
};
onLeavePage = function () {
delete holder1.chassisgraphic.onEnterFrame;
delete holder2.platinggraphic.onEnterFrame;
delete holder3.gungraphic.onEnterFrame;
};
Symbol 610 MovieClip Frame 1
stop();
Symbol 652 MovieClip Frame 1
teamcolors = 8;
mtc = 1;
while (mtc <= teamcolors) {
newball = attachMovie("tcolorball", "tc" + mtc, mtc);
newball._width = 125 / teamcolors;
newball._x = (125 / teamcolors) * (mtc - 1);
newball.id = mtc;
newball.tcolor.gotoAndStop(mtc);
if (newball.id == _parent.playercolor) {
newball.shower._visible = true;
newball.hider._visible = false;
} else {
newball.shower._visible = false;
newball.hider._visible = true;
}
newball.onRollOver = function () {
if (this.id != _parent.playercolor) {
this.hider._visible = false;
}
};
newball.onRollOut = function () {
if (this.id != _parent.playercolor) {
this.hider._visible = true;
}
};
newball.onPress = function () {
if (this.id != _parent.playercolor) {
mtc = 1;
while (mtc <= teamcolors) {
eval ("tc" + mtc).hider._visible = true;
eval ("tc" + mtc).shower._visible = false;
mtc++;
}
this.shower._visible = true;
this.hider._visible = false;
_parent.playercolor = this.id;
_parent.playsound("cons", "misc");
_parent.changeinfoscreen("prompt");
_parent.infomon.screen.txt_displaytext = "TEAM COLOR CHANGED!";
_parent.generateshop("inventory");
_parent.populatelist(_parent.inventory, _parent.givecontents, _parent.fullcontents);
_parent.generateshop("bot");
_parent.populatelist(_parent.mybots, _parent.givecontents, _parent.fullcontents);
_parent.generateshop(_parent.shopmode);
_parent.populatelist(_parent.shop, _parent.givecontents, _parent.fullcontents);
_parent.mybots.itemsunselected();
_parent.inventory.itemsunselected();
_parent.shop.itemsunselected();
}
};
mtc++;
}
Symbol 679 MovieClip Frame 140
_parent.movementenabled = true;
Symbol 679 MovieClip Frame 161
stop();
Symbol 679 MovieClip Frame 231
_parent.textdone();
stop();
Symbol 679 MovieClip Frame 301
_parent.textdone();
stop();
Symbol 681 MovieClip Frame 1
onEnterFrame = function () {
_rotation = (_rotation + 1);
};
Symbol 689 MovieClip Frame 1
onEnterFrame = function () {
_rotation = (_rotation + 1);
};
Symbol 692 MovieClip Frame 1
onEnterFrame = function () {
_rotation = (_rotation + 1);
};
Symbol 700 MovieClip Frame 36
stop();
Symbol 706 MovieClip Frame 1
this.onEnterFrame = function () {
this._alpha = this._alpha - 5;
};
Instance of Symbol 426 MovieClip in Symbol 716 MovieClip Frame 1
on (press) {
getURL ("http://www.gamegecko.com", "_blank");
}
Instance of Symbol 739 MovieClip "slider" in Symbol 741 MovieClip Frame 1
on (press) {
this.startDrag(true, 0, 0, 0, 180);
}
on (release) {
this.stopDrag();
}
on (releaseOutside) {
this.stopDrag();
}
onClipEvent (enterFrame) {
this._parent.amount = Math.round(100 - (this._y / 1.8));
trace(this._parent.amount);
}
Instance of Symbol 750 MovieClip in Symbol 753 MovieClip Frame 1
on (press) {
_root._quality = "LOW";
_root.gamequal = "LOW";
}
Instance of Symbol 750 MovieClip in Symbol 753 MovieClip Frame 1
on (press) {
_root._quality = "MEDIUM";
_root.gamequal = "MEDIUM";
}
Instance of Symbol 750 MovieClip in Symbol 753 MovieClip Frame 1
on (press) {
_root._quality = "HIGH";
_root.gamequal = "HIGH";
}
Symbol 759 MovieClip Frame 1
stop();
Symbol 921 MovieClip Frame 1
stop();
Symbol 930 MovieClip Frame 1
this.onEnterFrame = function () {
this._rotation++;
};
Symbol 931 MovieClip Frame 1
this.onEnterFrame = function () {
this._rotation++;
};
Instance of Symbol 426 MovieClip in Symbol 942 MovieClip Frame 1
on (press) {
getURL ("http://www.gamegecko.com", "_blank");
}
Instance of Symbol 426 MovieClip in Symbol 942 MovieClip Frame 1
on (press) {
getURL ("http://www.gamegecko.com", "_blank");
}
Instance of Symbol 426 MovieClip in Symbol 942 MovieClip Frame 2
on (press) {
getURL ("http://www.gamegecko.com", "_blank");
}
Instance of Symbol 750 MovieClip in Symbol 961 MovieClip Frame 1
on (press) {
_root.noshopblur = false;
}
Instance of Symbol 750 MovieClip in Symbol 961 MovieClip Frame 1
on (press) {
_root.noshopblur = true;
}