Combined Code
button 8 {
on (release) {
com.newgrounds.API.loadNewgrounds();
}
}
movieClip 21 {
}
button 27 {
on (release) {
nextFrame();
}
}
button 28 {
on (release) {
prevFrame();
}
}
button 32 {
on (release) {
selectPeriod('Today');
}
}
button 35 {
on (release) {
selectPeriod('This Week');
}
}
button 38 {
on (release) {
selectPeriod('This Month');
}
}
button 41 {
on (release) {
selectPeriod('This Year');
}
}
button 44 {
on (release) {
selectPeriod('All-Time');
}
}
movieClip 45 {
frame 1 {
function selectPeriod(p) {
_parent.loadScores(10, p);
period = p;
gotoAndStop(1);
}
stop();
}
}
movieClip 46 Score Board (NewgroundsAPI) {
#initclip
Object.registerClass('Score Board (NewgroundsAPI)', com.newgrounds.components.ScoreTable);
#endinitclip
frame 1 {
loadScores(10);
}
}
movieClip 73 {
frame 1 {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (865 % 511) * true;
if (!'') {
} else {}
return ;
}
var = -67 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
+= 374;
-= 28;
var eval( != 287) = true;
-= 514;
+= 348;
+= 608;
-= 521;
-= 268;
-= 160;
-= 678;
+= 737;
+= 747;
-= 291;
+= 270;
+= 302;
-= 204;
-= 753;
+= 398;
-= 819;
-= 748;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
'';
1;
!'';
eval(true);
}
}
movieClip 74 {
frame 11 {
gotoAndPlay(1);
}
}
movieClip 75 Flash Ad (NewgroundsAPI) {
#initclip
Object.registerClass('Flash Ad (NewgroundsAPI)', com.newgrounds.components.FlashAd);
#endinitclip
}
movieClip 82 {
frame 1 {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (2892 % 511) * true;
if (!'') {
} else {}
return ;
}
var = -160 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
+= 121;
+= 93;
+= 246;
-= 382;
-= 147;
+= 208;
+= 89;
-= 786;
+= 713;
+= 421;
+= 632;
+= 170;
-= 505;
-= 131;
+= 308;
var = 1;
-= 763;
-= 219;
-= 263;
+= 510;
+= 775;
-= 327;
+= 46;
-= 421;
+= 250;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
!= 177;
true;
'';
eval(!true);
true;
}
}
movieClip 84 {
frame 10 {
stop();
}
}
movieClip 86 {
frame 37 {
_parent.setGotoFrame('done');
stop();
}
}
movieClip 88 {
}
movieClip 90 NewgroundsAPIAsset_Medal_Icon_Placeholder {
}
movieClip 98 NewgroundsAPIAsset_Medal_Popup {
frame 1 {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (737 % 511) * true;
if (!'') {
} else {}
return ;
}
var = 9 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
+= 132;
-= 891;
var eval( != 235) = true;
+= 345;
+= 166;
// An attempt to read a value from empty stack
+= 77;
+= 206;
-= 422;
-= 355;
-= 135;
-= 235;
-= 105;
-= 669;
+= 29;
-= 171;
-= 128;
+= 953;
-= 490;
+= 556;
-= 54;
-= 408;
+= 401;
+= 185;
+= 252;
+= 541;
+= 568;
-= 293;
-= 318;
-= 688;
-= 425;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
!undefined;
true;
true;
'';
true;
'';
eval(1);
}
frame 2 {
medal.attachIcon(icon);
}
frame 10 {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (2142 % 511) * true;
if (!'') {
} else {}
return ;
}
var = 78 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
+= 609;
+= 436;
+= 231;
+= 5;
+= 93;
+= 176;
+= 286;
-= 784;
+= 356;
+= 909;
-= 455;
+= 716;
-= 447;
+= 515;
+= 342;
+= 890;
-= 600;
-= 210;
var eval(1) = true;
-= 347;
-= 25;
-= 224;
-= 252;
-= 791;
-= 170;
-= 121;
-= 150;
-= 549;
-= 124;
-= 859;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
!= 176;
true;
!true;
true;
'';
;
}
frame 21 {
this.removeMovieClip();
_visible = false;
stop();
}
}
movieClip 104 NewgroundsAPIAsset_Login_Warning {
frame 1 {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (2309 % 511) * true;
if (!'') {
} else {}
return ;
}
var = 253 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
-= 105;
+= 855;
+= 520;
+= 184;
-= 889;
-= 443;
var eval(true) = '';
-= 669;
-= 472;
+= 117;
+= 423;
+= 503;
-= 308;
+= 574;
-= 739;
+= 231;
-= 419;
+= 63;
-= 24;
+= 346;
-= 46;
+= 151;
+= 275;
-= 2;
-= 338;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
eval( != 518);
'';
!1;
true;
true;
}
frame 10 {
stop();
}
frame 21 {
this.removeMovieClip();
_visible = false;
stop();
}
}
movieClip 107 NewgroundsAPIAsset_Connection_Error {
frame 1 {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (1793 % 511) * true;
if (!'') {
} else {}
return ;
}
var = 705 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
-= 568;
+= 3;
-= 156;
+= 917;
-= 334;
+= 421;
-= 509;
+= 266;
+= 482;
+= 39;
+= 216;
-= 595;
var = eval(!1);
-= 616;
-= 339;
+= 62;
-= 73;
-= 724;
+= 346;
-= 468;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
!= 965;
true;
true;
'';
}
frame 10 {
stop();
}
frame 21 {
this.removeMovieClip();
_visible = false;
stop();
}
}
movieClip 109 {
}
movieClip 111 {
}
movieClip 113 {
}
movieClip 115 {
}
movieClip 117 {
}
movieClip 119 {
}
movieClip 121 {
}
movieClip 123 {
}
movieClip 125 {
}
movieClip 127 {
}
movieClip 128 NewgroundsAPIAsset_big_popup_background {
frame 1 {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (827 % 511) * true;
if (!'') {
} else {}
return ;
}
var = 669 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
-= 86;
+= 812;
+= 156;
-= 229;
-= 400;
-= 450;
+= 77;
-= 377;
+= 565;
-= 221;
-= 116;
-= 534;
+= 234;
-= 553;
+= 145;
-= 96;
+= 96;
+= 666;
+= 162;
+= 199;
+= 165;
-= 47;
-= 105;
+= 166;
var = 1;
-= 111;
-= 30;
+= 364;
-= 18;
-= 779;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
!= 985;
!true;
true;
true;
true;
;
}
}
button 132 {
on (release) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (2726 % 511) * true;
if (!'') {
} else {}
return ;
}
var = 118 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
+= 703;
-= 63;
+= 37;
-= 852;
-= 553;
-= 15;
+= 840;
+= 107;
-= 319;
-= 280;
-= 74;
+= 115;
+= 315;
+= 448;
+= 215;
-= 481;
-= 40;
-= 136;
+= 357;
+= 53;
-= 355;
var eval(true) = true;
-= 221;
-= 732;
+= 183;
-= 21;
-= 243;
+= 530;
+= 682;
-= 833;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
!= 289;
eval(!true);
true;
'';
'';
1;
}
}
button 138 {
on (release) {
getURL(official_version_url, '_blank');
}
}
movieClip 140 NewgroundsAsset_New_Version_Available {
frame 1 {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (980 % 511) * true;
if (!'') {
} else {}
return ;
}
var = -291 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
+= 237;
+= 80;
-= 86;
-= 744;
-= 541;
+= 96;
+= 723;
-= 947;
var eval( != 178) = eval(!true);
+= 553;
+= 317;
+= 419;
+= 713;
+= 16;
-= 541;
+= 471;
-= 807;
+= 75;
-= 332;
-= 116;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
'';
1;
true;
'';
}
}
button 141 {
on (release) {
getURL(official_version_url, '_blank');
}
}
movieClip 145 NewgroundsAsset_Illegal_Host {
frame 1 {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (2307 % 511) * true;
if (!'') {
} else {}
return ;
}
var = -142 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
+= 383;
+= 45;
+= 276;
-= 104;
var eval( != 121) = !true;
+= 305;
+= 176;
+= 243;
+= 6;
-= 560;
+= 388;
+= 359;
+= 409;
-= 527;
+= 561;
-= 903;
-= 615;
-= 315;
+= 89;
-= 203;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
'';
eval(true);
'';
1;
}
}
movieClip 146 API Connector (NewgroundsAPI) {
#initclip
Object.registerClass('API Connector (NewgroundsAPI)', com.newgrounds.components.APIConnector);
#endinitclip
frame 20 {
_visible = false;
}
}
frame 1 {
function loadSaveFile() {
_root.dropIn.swapDepths(_root.getNextHighestDepth());
_root.hasGym = _root.savefile.data.hasGym;
_root.hasbod = _root.savefile.data.hasbod;
_root.gymlvl = _root.savefile.data.gymlvl;
_root.haswall = _root.savefile.data.haswall;
_root.clickdmg = _root.savefile.data.clickdmg;
_root.waveNumber = _root.savefile.data.waveNumber;
_root.numhppacks = _root.savefile.data.numhppacks;
_root.bossWave = _root.savefile.data.bossWave;
_root.lol = _root.savefile.data.lol;
_root.hp = _root.savefile.data.hp;
_root.gold = _root.savefile.data.gold;
_root.totalkill = _root.savefile.data.totalkill;
_root.roundkill = _root.savefile.data.roundkill;
_root.hasFire = _root.savefile.data.hasFire;
_root.hasPoop = _root.savefile.data.hasPoop;
_root.hasLax = _root.savefile.data.hasLax;
_root.wallLVL = _root.savefile.data.wallLVL;
_root.wavenum = _root.savefile.data.wavenum;
_root.dothings.round2 = _root.savefile.data.round2;
_root.gold = _root.savefile.data.gold;
_root.knight1._x = _root.savefile.data.knightx;
_root.knight1._y = _root.savefile.data.knighty;
_root.archer1._x = _root.savefile.data.archerx;
_root.archer1._y = _root.savefile.data.archery;
_root.cannon1._x = _root.savefile.data.cannonx;
_root.cannon1._y = _root.savefile.data.cannony;
_root.mech._x = _root.savefile.data.mechx;
_root.mech._y = _root.savefile.data.mechy;
_root.knight1.gotoAndStop(_root.savefile.data.knightlvl);
_root.archer1.gotoAndStop(_root.savefile.data.archerlvl);
_root.cannon1.gotoAndStop(_root.savefile.data.cannonlvl);
_root.mm.knighticon._x = _root.savefile.data.knighticonx;
_root.mm.archericon._x = _root.savefile.data.archericonx;
_root.mm.cannonicon._x = _root.savefile.data.cannoniconx;
_root.mm.wallicon._x = _root.savefile.data.walliconx;
_root.mm.knighticon._y = _root.savefile.data.knighticony;
_root.mm.archericon._y = _root.savefile.data.archericony;
_root.mm.cannonicon._y = _root.savefile.data.cannonicony;
_root.mm.wallicon._y = _root.savefile.data.wallicony;
_root.bg1.stage2 = _root.savefile.data.stage2;
_root.bg1.stage3 = _root.savefile.data.stage3;
if (_root.haswall == true) {
_root.wall._x = _root.savefile.data.wallx;
_root.wall._y = 390;
_root.wall.hp = 100 * _root.wallLVL;
_root.wall.wall.wall.gotoAndStop(_root.wallLVL);
}
_root.bossDead = true;
_root.bossRound = false;
_root.wavePeople = 0;
_root.numPeople = 0;
_root.gameOver = false;
_root.gut.gotoAndStop(1);
_root.dropIn.gotoAndStop(38);
_root.gameover._visible = false;
}
function openSun() {}
function noFun() {}
function sitelock(urls_allowed) {
lock = true;
domain_parts = _url.split('://');
real_domain = domain_parts[1].split('/');
domain.text = real_domain[0];
for (x in urls_allowed) {
if (urls_allowed[x] == real_domain[0]) {
lock = false;
}
}
if (lock) {
} else {
_root.anotherad.removeMovieClip();
_root.anotherad.unloadMovie();
removeMovieClip(_root.anotherad);
}
}
var savefile = SharedObject.getLocal('RedDragon');
_root._quality = 'High';
var tankout = false;
var wavenum = 1;
var numPeople = 0;
var maxPeople = 3;
var wavePeople = 4;
var inStore = false;
var hasGym = false;
var gymlvl = 0;
var numInGym = 0;
var haswall = false;
var clickdmg = 1;
var waveNumber = 1;
var numhppacks = 3;
var bossWave = false;
var lol = 2;
var hp = 100;
var gold = 0;
var fpsCount = 0;
var winmsg = '';
var killcount = '';
var bossDead = true;
var bossRound = false;
var totalkill = 0;
var roundkill = 1 + wavenum * 3;
var checkTalk = false;
var hasFire = false;
var hasPoop = false;
var wallLVL = 1;
var hasLax = false;
var pauseGame = false;
var ACslash = false;
var gameOver = false;
var continueGame = false;
stop();
var custom_menu = new ContextMenu();
custom_menu.builtInItems.play = false;
custom_menu.builtInItems.stop = false;
custom_menu.builtInItems.loop = false;
custom_menu.builtInItems.rewind = false;
custom_menu.builtInItems.forward_back = false;
var sunStuds = new ContextMenuItem('Armor Games', openSun);
sunStuds.separatorBefore = true;
var meAuthor = new ContextMenuItem('Coded by: Hank Fox', noFun);
meAuthor.enabled = false;
var gonzoAuthor = new ContextMenuItem('Drawn by: Gonzo', noFun);
gonzoAuthor.enabled = false;
custom_menu.customItems.push(meAuthor);
custom_menu.customItems.push(gonzoAuthor);
custom_menu.customItems.push(sunStuds);
_root.menu = custom_menu;
var CPMStarContentSpotID = '4143QAC0EBF4C';
System.security.allowDomain('server.cpmstar.com');
_root.anotherad.adBox.loadMovie('http://server.cpmstar.com/adviewas2.swf?contentspotid=4143QAC0EBF4C');
urls_allowed = ['armorgames.com', 'www.armorgames.com'];
sitelock(urls_allowed);
currentDomain = _url.split('/');
currentDomain = currentDomain[2];
if (currentDomain.indexOf('armorgames.com') != -1) {
_root.anotherad._visible = false;
_root.anotherad.removeMovieClip();
_root.anotherad.unloadMovie();
removeMovieClip(_root.anotherad);
}
}
movieClip 152 {
}
movieClip 155 {
}
movieClip 157 {
}
movieClip 159 {
}
movieClip 160 {
}
movieClip 161 {
}
movieClip 162 {
}
movieClip 166 {
}
button 170 {
on (release) {
getURL('http://www.youtube.com/user/Gonzossm', '_new', 'GET');
}
}
movieClip 174 {
}
button 178 {
on (release) {
getURL('http://cha0tic221.newgrounds.com/', '_new', 'GET');
}
}
movieClip 183 {
}
button 186 {
on (release) {
getURL('http://www.youtube.com/user/WeeklyTubeShow2', '_new', 'GET');
}
}
movieClip 190 {
}
button 194 {
on (release) {
getURL('http://thatcomposerguy.newgrounds.com/', '_new', 'GET');
}
}
movieClip 196 {
}
movieClip 197 {
}
button 213 {
on (release) {
_root.startingad.removeMovieClip();
_root.startingad.unloadMovie();
_root.play();
}
}
movieClip 214 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
frame 7 {
stop();
}
frame 8 {
stop();
}
frame 9 {
stop();
}
frame 10 {
stop();
}
frame 11 {
stop();
}
}
instance of movieClip 214 {
onClipEvent (load) {
var loaded = _root.getBytesLoaded() / _root.getBytesTotal();
}
onClipEvent (enterFrame) {
loaded = Math.floor((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if (loaded < 100) {
gotoAndStop(loaded / 10);
} else {
gotoAndStop(11);
}
}
}
movieClip 216 {
}
movieClip 49 __Packages.com.newgrounds.API {
#initclip
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (1221 % 511) * true;
if (!'') {
} else {}
return ;
}
var = -124 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
if ( == 75) {
for (;;) {
-= 2;
if ( != 34) break;
+= 873;
-= 166;
-= 198;
-= 23;
-= 2;
+= 506;
-= 165;
-= 39;
-= 518;
-= 616;
+= 404;
+= 30;
-= 168;
-= 233;
+= 6;
-= 571;
-= 371;
-= 24;
+= 400;
-= 310;
var eval(!eval(true)) = true;
+= 137;
-= 108;
-= 171;
}
true;
!= 644;
'';
'';
1;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
#endinitclip
}
movieClip 50 __Packages.com.newgrounds.Bridge {
#initclip
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (1997 % 511) * true;
if (!'') {
} else {}
return ;
}
var = -85 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
if ( == 379) {
for (;;) {
-= 70;
if ( != 745) break;
+= 224;
if ( != 565) goto 273;
-= 487;
label 273:
+= 618;
-= 490;
var eval(1) = != 127;
-= 518;
-= 35;
-= 154;
+= 366;
+= 383;
+= 300;
-= 287;
-= 102;
+= 627;
+= 192;
+= 35;
-= 220;
-= 100;
-= 78;
}
true;
'';
true;
!;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
#endinitclip
}
movieClip 51 __Packages.com.newgrounds.SaveFile {
#initclip
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (1727 % 511) * true;
if (!'') {
} else {}
return ;
}
var = -55 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
if ( == 139) {
for (;;) {
+= 289;
if ( != 270) break;
+= 502;
if ( != 326) goto 269;
+= 446;
label 269:
-= 253;
-= 546;
-= 85;
+= 39;
+= 170;
+= 307;
+= 725;
-= 268;
-= 476;
+= 392;
-= 457;
+= 99;
+= 384;
+= 491;
+= 155;
-= 669;
-= 191;
-= 135;
-= 188;
-= 550;
+= 561;
+= 83;
+= 781;
-= 44;
var eval(true) = true;
+= 453;
-= 581;
}
true;
!= 951;
!eval(true);
'';
'';
1;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
#endinitclip
}
movieClip 52 __Packages.com.newgrounds.SaveGroup {
#initclip
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (1082 % 511) * true;
if (!'') {
} else {}
return ;
}
var = -27 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
if ( == 33) {
for (;;) {
+= 408;
if ( == 462) {
-= 333;
if (!true) {
}
+= 36;
}
if ( == 165) {
+= 281;
}
if ( != 869) goto 368;
-= 224;
label 368:
+= 36;
+= 148;
-= 150;
+= 281;
+= 299;
-= 293;
-= 282;
-= 262;
+= 690;
+= 266;
+= 205;
-= 883;
+= 5;
+= 192;
-= 741;
-= 301;
+= 473;
-= 823;
var = true;
-= 327;
+= 240;
+= 492;
-= 250;
+= 878;
-= 18;
-= 125;
}
true;
!= 129;
true;
true;
'';
eval(!1);
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
#endinitclip
}
movieClip 54 __Packages.com.newgrounds.SaveGroupQuery {
#initclip
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (1695 % 511) * true;
if (!'') {
} else {}
return ;
}
var = 421 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
if ( == 583) {
for (;;) {
+= 204;
if ( != 661) break;
-= 34;
if ( != 868) goto 268;
-= 762;
label 268:
for (;;) {
if ( == 787) {
+= 171;
}
}
-= 90;
-= 70;
-= 309;
+= 788;
+= 231;
+= 121;
+= 346;
-= 252;
-= 512;
+= 490;
+= 17;
-= 345;
var eval(eval(true)) = '';
-= 552;
+= 53;
-= 370;
}
true;
'';
1;
== 958;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
#endinitclip
}
movieClip 56 __Packages.com.newgrounds.encoders.ImageScanner {
#initclip
for (;;) {
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (2740 % 511) * true;
if (!'') {
} else {}
return ;
}
var = 685 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
if ( == 870) {
for (;;) {
-= 455;
if ( != 269) break;
+= 296;
if ( == 415) {
-= 41;
goto 1324;
label 1324:
}
-= 568;
-= 61;
+= 883;
var eval(true) = != 837;
+= 688;
// An attempt to read a value from empty stack
-= 151;
-= 114;
+= 143;
-= 732;
+= 82;
-= 50;
-= 647;
}
!eval(undefined);
'';
'';
1;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
#endinitclip
}
movieClip 55 __Packages.com.newgrounds.encoders.BaseN {
#initclip
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (263 % 511) * true;
if (!'') {
} else {}
return ;
}
var = 299 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
if ( == 562) {
for (;;) {
+= 403;
if ( != 245) break;
+= 52;
if ( != 200) goto 273;
+= 325;
label 273:
+= 833;
+= 527;
+= 269;
var eval(1) = eval( != 46);
-= 765;
+= 470;
+= 332;
+= 41;
+= 149;
-= 537;
-= 676;
+= 577;
+= 112;
-= 273;
-= 581;
-= 634;
-= 497;
}
true;
!'';
'';
true;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
#endinitclip
}
movieClip 64 __Packages.com.newgrounds.APIEventDispatcher {
#initclip
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (595 % 511) * true;
if (!'') {
} else {}
return ;
}
var = 240 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
if ( == 324) {
for (;;) {
+= 240;
if ( != 635) break;
+= 101;
if ( != 513) goto 286;
+= 17;
label 286:
+= 436;
+= 433;
+= 89;
-= 505;
-= 62;
-= 158;
-= 288;
-= 530;
-= 515;
-= 668;
+= 630;
var = eval(1);
+= 168;
+= 125;
+= 295;
+= 7;
-= 31;
}
true;
!= 245;
!'';
true;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
#endinitclip
}
movieClip 48 __Packages.com.newgrounds.APIEvent {
#initclip
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (1375 % 511) * true;
if (!'') {
} else {}
return ;
}
var = 491 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
if ( == 844) {
for (;;) {
-= 510;
if ( != 74) break;
+= 788;
if ( == 123) {
+= 790;
for (;;) {
}
}
-= 302;
-= 28;
+= 369;
+= 599;
-= 112;
-= 824;
-= 155;
-= 596;
+= 34;
-= 185;
-= 49;
+= 313;
-= 105;
-= 658;
-= 134;
-= 99;
+= 280;
var eval(eval(!true)) = true;
-= 230;
+= 43;
-= 625;
-= 688;
}
true;
!= 744;
'';
'';
1;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
#endinitclip
}
movieClip 47 __Packages.com.newgrounds.APIError {
#initclip
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (678 % 511) * true;
if (!'') {
} else {}
return ;
}
var = 334 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
if ( == 501) {
for (;;) {
+= 48;
if ( != 215) break;
+= 492;
if ( != 895) goto 281;
-= 713;
label 281:
for (;;) {
if ( == 549) {
-= 296;
}
}
+= 614;
-= 866;
+= 525;
+= 405;
-= 100;
-= 521;
-= 607;
+= 329;
+= 556;
-= 109;
+= 562;
-= 716;
+= 939;
+= 443;
+= 98;
-= 182;
-= 136;
+= 153;
var eval(eval(true)) = '';
-= 654;
-= 976;
}
true;
== 362;
'';
1;
true;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
#endinitclip
}
movieClip 60 __Packages.com.newgrounds.Medal {
#initclip
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (1006 % 511) * true;
if (!'') {
} else {}
return ;
}
var = 27 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
if ( == 522) {
for (;;) {
+= 73;
if ( != 157) break;
+= 134;
if ( == 438) {
-= 431;
goto 298;
label 298:
}
-= 475;
-= 141;
-= 165;
+= 159;
+= 145;
-= 325;
-= 291;
var eval(true) = '';
+= 488;
+= 152;
+= 261;
-= 379;
-= 775;
+= 952;
+= 23;
-= 285;
-= 295;
-= 377;
-= 312;
+= 686;
+= 237;
+= 495;
}
true;
!= 595;
eval(true);
'';
!1;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
#endinitclip
}
movieClip 3 __Packages.com.newgrounds.components.ScoreTable {
#initclip
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (1203 % 511) * true;
if (!'') {
} else {}
return ;
}
var = 616 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
if ( == 797) {
for (;;) {
-= 581;
if ( != 27) break;
+= 683;
if ( != 450) goto 264;
-= 423;
label 264:
+= 245;
-= 419;
var = != 357;
-= 347;
-= 147;
+= 267;
-= 53;
+= 439;
+= 178;
-= 183;
+= 355;
-= 566;
}
eval(true);
'';
!1;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
#endinitclip
}
movieClip 53 __Packages.com.newgrounds.ValidationTools {
#initclip
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (872 % 511) * true;
if (!'') {
} else {}
return ;
}
var = 209 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
if ( == 570) {
for (;;) {
+= 407;
if ( != 588) break;
+= 333;
-= 518;
+= 302;
for (;;) {
+= 2;
}
+= 455;
+= 175;
-= 336;
+= 420;
-= 921;
-= 22;
-= 800;
+= 326;
+= 298;
-= 362;
-= 244;
+= 221;
var = !1;
-= 220;
+= 347;
}
true;
!= 945;
true;
;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
#endinitclip
}
movieClip 57 __Packages.com.newgrounds.encoders.SerialXML {
#initclip
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (2879 % 511) * true;
if (!'') {
} else {}
return ;
}
var = -58 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
if ( == 266) {
for (;;) {
+= 423;
if ( != 650) break;
-= 578;
if ( == 694) {
-= 583;
goto 285;
label 285:
}
if ( != 511) goto 340;
+= 259;
label 340:
+= 10;
+= 400;
+= 729;
-= 272;
+= 664;
-= 434;
+= 39;
-= 390;
-= 88;
-= 115;
+= 419;
+= 145;
-= 169;
var eval(1) = !true;
-= 61;
+= 265;
-= 20;
-= 54;
+= 85;
+= 29;
-= 229;
+= 164;
+= 242;
+= 91;
-= 262;
-= 914;
}
true;
eval( != 370);
'';
true;
true;
'';
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
#endinitclip
}
movieClip 58 __Packages.com.newgrounds.encoders.LZW2 {
#initclip
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (1433 % 511) * true;
if (!'') {
} else {}
return ;
}
var = -183 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
if ( == 228) {
for (;;) {
+= 628;
if ( != 546) break;
-= 425;
if ( != 301) goto 276;
-= 203;
label 276:
-= 88;
-= 233;
+= 297;
-= 322;
+= 11;
-= 542;
-= 744;
-= 108;
+= 412;
-= 786;
+= 443;
-= 491;
+= 460;
-= 389;
+= 581;
-= 448;
var = 1;
+= 298;
-= 15;
+= 323;
+= 481;
-= 724;
}
true;
!= 209;
!= 856;
!true;
eval(true);
'';
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
#endinitclip
}
movieClip 59 __Packages.com.newgrounds.encoders.LZW {
#initclip
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (423 % 511) * true;
if (!'') {
} else {}
return ;
}
var = 264 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
if ( == 687) {
for (;;) {
-= 521;
if ( != 239) break;
-= 183;
if ( == 166) {
-= 96;
goto 498;
label 498:
}
-= 30;
+= 239;
-= 52;
+= 165;
-= 601;
-= 666;
+= 343;
-= 139;
var eval(true) = '';
-= 589;
+= 775;
+= 21;
+= 23;
-= 385;
+= 201;
+= 712;
-= 832;
+= 2;
+= 42;
-= 578;
-= 221;
+= 463;
}
true;
!= 154;
true;
'';
!eval(1);
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
#endinitclip
}
movieClip 61 __Packages.com.newgrounds.ScoreBoard {
#initclip
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (1967 % 511) * true;
if (!'') {
} else {}
return ;
}
var = -285 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
if ( == 149) {
for (;;) {
-= 13;
if ( != 389) break;
-= 92;
if ( != 470) goto 291;
-= 190;
label 291:
-= 291;
-= 482;
+= 73;
-= 318;
+= 610;
+= 45;
-= 228;
-= 133;
-= 487;
-= 318;
-= 80;
-= 134;
+= 367;
+= 135;
+= 554;
var eval(true) = !true;
+= 474;
+= 137;
-= 75;
-= 538;
-= 510;
-= 26;
+= 834;
+= 189;
-= 688;
+= 615;
-= 622;
}
true;
'';
1;
!= 868;
'';
eval(true);
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
#endinitclip
}
movieClip 62 __Packages.com.newgrounds.encoders.RC4 {
#initclip
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (38 % 511) * true;
if (!'') {
} else {}
return ;
}
var = 295 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
if ( == 333) {
for (;;) {
+= 438;
if ( == 783) {
-= 417;
if (!true) {
}
+= 254;
}
if ( == 61) {
+= 722;
}
if ( != 144) goto 341;
+= 847;
label 341:
+= 97;
+= 39;
+= 22;
+= 428;
var eval( != 47) = '';
+= 303;
+= 807;
-= 62;
-= 542;
-= 291;
-= 806;
-= 541;
+= 254;
-= 361;
-= 404;
+= 282;
+= 327;
-= 28;
+= 441;
+= 764;
+= 207;
-= 746;
-= 478;
-= 142;
-= 351;
-= 326;
}
true ::: !true;
eval(true);
true;
true;
'';
1;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
#endinitclip
}
movieClip 63 __Packages.com.newgrounds.encoders.JSON {
#initclip
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (1418 % 511) * true;
if (!'') {
} else {}
return ;
}
var = 14 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
if ( == 410) {
for (;;) {
-= 391;
if ( != 448) break;
+= 143;
if ( != 539) goto 1810;
-= 505;
label 1810:
+= 112;
+= 627;
+= 233;
-= 198;
-= 587;
-= 212;
-= 179;
-= 195;
-= 765;
-= 340;
-= 40;
var eval(true) = '';
+= 447;
-= 157;
-= 25;
+= 575;
+= 272;
+= 112;
+= 138;
+= 11;
+= 400;
-= 434;
}
true;
== 315;
eval( != 19);
true;
'';
1;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
#endinitclip
}
movieClip 65 __Packages.com.newgrounds.encoders.MD5 {
#initclip
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (2764 % 511) * true;
if (!'') {
} else {}
return ;
}
var = 750 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
if ( == 959) {
for (;;) {
-= 281;
if ( != 419) break;
-= 77;
if ( != 816) goto 263;
-= 462;
label 263:
for (;;) {
if ( == 678) {
-= 340;
}
}
-= 261;
+= 234;
+= 177;
+= 132;
-= 632;
-= 918;
-= 48;
+= 340;
+= 574;
+= 74;
+= 175;
var eval(1) = true;
+= 713;
+= 481;
+= 341;
-= 709;
}
eval(true);
!= 338;
'';
!'';
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
#endinitclip
}
movieClip 66 __Packages.com.newgrounds.Score {
#initclip
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (145 % 511) * true;
if (!'') {
} else {}
return ;
}
var = 543 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
if ( == 688) {
for (;;) {
-= 276;
if ( != 967) break;
-= 668;
if ( != 704) goto 279;
+= 197;
label 279:
+= 63;
+= 104;
+= 303;
+= 278;
+= 425;
-= 569;
+= 564;
-= 231;
+= 337;
-= 664;
-= 590;
-= 671;
-= 570;
var eval(!true) = != 236;
-= 72;
+= 388;
-= 45;
+= 196;
-= 376;
+= 391;
-= 845;
+= 9;
}
true;
'';
1;
true;
;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
#endinitclip
}
movieClip 67 __Packages.com.newgrounds.components.FlashAd {
#initclip
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (2350 % 511) * true;
if (!'') {
} else {}
return ;
}
var = -239 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
if ( == 67) {
for (;;) {
+= 206;
if ( != 957) break;
-= 70;
if ( != 822) goto 283;
-= 332;
label 283:
+= 663;
-= 489;
-= 675;
+= 342;
+= 529;
+= 440;
+= 66;
+= 151;
-= 490;
+= 468;
-= 946;
var eval(!1) = '';
}
true;
eval( != 224);
'';
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
#endinitclip
}
movieClip 76 __Packages.com.newgrounds.components.APIConnector {
#initclip
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
Unknown action: 0xfc
function () {
= (2421 % 511) * true;
if (!'') {
} else {}
return ;
}
var = -320 + ();
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
for (;;) {
if ( == 57) {
for (;;) {
+= 233;
if ( != 608) break;
-= 3;
if ( != 269) goto 258;
+= 360;
label 258:
for (;;) {
if ( == 290) {
-= 110;
}
}
-= 470;
+= 197;
+= 218;
+= 141;
-= 340;
+= 810;
-= 14;
var = !true;
+= 40;
-= 374;
-= 617;
-= 352;
-= 158;
+= 247;
-= 2;
-= 68;
+= 468;
+= 478;
-= 117;
+= 115;
+= 317;
+= 110;
+= 69;
+= 291;
-= 50;
-= 507;
}
eval(true);
!= 731;
true;
true;
'';
1;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
#endinitclip
}
movieClip 218 {
}
movieClip 220 {
}
movieClip 223 {
}
movieClip 224 {
}
movieClip 226 {
}
movieClip 229 {
}
movieClip 230 {
}
movieClip 231 {
}
movieClip 234 {
}
button 235 {
on (release) {
gotoAndPlay('title');
}
}
button 237 {
on (release) {
getURL('www.armorgames.com', '_new', 'GET');
}
}
movieClip 245 {
}
button 250 {
on (press) {
getURL('http://www.armorgames.com', '_blank');
}
}
movieClip 253 {
frame 1 {
_root.stop();
gotoAndPlay(2);
}
frame 218 {
_root.play();
_root.nextFrame();
}
}
movieClip 254 {
frame 95 {
stop();
}
}
frame 3 {
play();
}
movieClip 256 {
}
movieClip 259 {
}
movieClip 261 {
}
movieClip 263 {
}
frame 493 {
_root.savefile.data.introunlock = true;
}
movieClip 265 {
}
movieClip 268 {
}
movieClip 270 {
}
movieClip 274 {
}
movieClip 275 {
}
movieClip 279 {
}
movieClip 281 {
}
button 294 {
on (release) {
_root.stopAllSounds();
_root.gotoAndStop('Survival');
}
}
button 298 {
on (release) {
stopAllSounds();
_root.stopAllSounds();
_root.gotoAndStop('campaign');
}
}
button 302 {
on (release) {
stopAllSounds();
_root.stopAllSounds();
_root.continueGame = true;
_root.gotoAndStop('campaign');
}
}
frame 509 {
_root.medals.removeMovieClip();
_root.medals.unloadMovie();
}
frame 510 {
}
frame 510 {
function checkall() {
if (_root.savefile.data.introunlock == true && _root.savefile.data.poopthrown == true && _root.savefile.data.firstblood == true && _root.savefile.data.diedonce == true && _root.savefile.data.firepoopthrown == true && _root.savefile.data.gameovertrue == true && _root.savefile.data.castlecrashed == true && _root.savefile.data.turtled == true) {
if (_root.savefile.data.predatordie == true && _root.savefile.data.maxarcher == true && _root.savefile.data.maxknight == true && _root.savefile.data.rufuskill == true && _root.savefile.data.mouserkill == true && _root.savefile.data.tankkilled == true && _root.savefile.data.racist == true && _root.savefile.data.fireballer == true) {
if (_root.savefile.data.lotsgold == true && _root.savefile.data.awesomez == true && _root.savefile.data.maxcannon == true && _root.savefile.data.golden == true && _root.savefile.data.cannonbought == true && _root.savefile.data.wallmax == true && _root.savefile.data.maxgym == true && _root.savefile.data.heardall == true) {
if (_root.savefile.data.wave1 == true && _root.savefile.data.wave2 == true && _root.savefile.data.wave3 == true && _root.savefile.data.kill1 == true && _root.savefile.data.kill2 == true && _root.savefile.data.kill3 == true && _root.savefile.data.allcannon == true) {
_root.savefile.data.unlockall = true;
_root.savefile.flush();
}
}
}
}
}
var medalname;
var medal;
}
frame 510 {
mainmusic = new Sound(this);
ingamemusic = new Sound(_root.controlsound);
bossmusic = new Sound(_root.bosssound);
var mute = false;
_root.onEnterFrame = function () {
if (_root.dothings.round2 == 0) {
ingamemusic.setVolume(0);
}
};
}
frame 510 {
var intromedal = com.newgrounds.API.getMedal('Intro');
var thrower = com.newgrounds.API.getMedal('Throw');
var firstblood = com.newgrounds.API.getMedal('First Blood');
var deader = com.newgrounds.API.getMedal('Dead');
var firepoop = com.newgrounds.API.getMedal('Fire Poop');
var countdown = com.newgrounds.API.getMedal('Count Down');
var castle = com.newgrounds.API.getMedal('Crashin the Castle');
var turtlez = com.newgrounds.API.getMedal('Turtlez');
var whatru = com.newgrounds.API.getMedal('What are you?!');
var maxrcher = com.newgrounds.API.getMedal('Max Archer');
var maxknight = com.newgrounds.API.getMedal('Max Knight');
var rufusslay = com.newgrounds.API.getMedal('Rufus Slayer');
var mouserkill = com.newgrounds.API.getMedal('Mouser Killer');
var antitank = com.newgrounds.API.getMedal('Anti-Tank');
var racister = com.newgrounds.API.getMedal('Racist');
var firestarter = com.newgrounds.API.getMedal('Fire Starter');
var goldhoarder = com.newgrounds.API.getMedal('Gold Hoarder');
var potu = com.newgrounds.API.getMedal('Protectors of the Universe');
var leet = com.newgrounds.API.getMedal('1337 Launcher');
var goldenripper = com.newgrounds.API.getMedal('Golden Ripper');
var fcannon = com.newgrounds.API.getMedal('Canoneer');
var im = com.newgrounds.API.getMedal('Immovable Object');
var uf = com.newgrounds.API.getMedal('Unstoppable Force');
var sawal = com.newgrounds.API.getMedal('Stay a While and Listen');
var w10 = com.newgrounds.API.getMedal('Wave 10');
var w15 = com.newgrounds.API.getMedal('Wave 15');
var w25 = com.newgrounds.API.getMedal('Wave 25');
var k10 = com.newgrounds.API.getMedal('10 Kill');
var k25 = com.newgrounds.API.getMedal('25 Kill');
var k50 = com.newgrounds.API.getMedal('50 Kill');
var cannonm = com.newgrounds.API.getMedal('Cannon Master');
var mmm = com.newgrounds.API.getMedal('Master of the Trade');
_root.onEnterFrame = function () {
_root.mainmusic.setVolume(100);
_root.ingamemusic.setVolume(100);
if (_root.savefile.data.wallmax == true && im.__get__unlocked() == false && _root.savefile.data.imb != true) {
com.newgrounds.API.unlockMedal('Immovable Object', 375, 300);
_root.medalgeticon.play();
im = com.newgrounds.API.getMedal('Immovable Object');
_root.savefile.data.imb = true;
_root.savefile.flush();
}
if (_root.savefile.data.maxgym == true && uf.__get__unlocked() == false && _root.savefile.data.ufb != true) {
com.newgrounds.API.unlockMedal('Unstoppable Force', 375, 300);
_root.medalgeticon.play();
uf = com.newgrounds.API.getMedal('Unstoppable Force');
_root.savefile.data.ufb = true;
_root.savefile.flush();
}
if (_root.savefile.data.heardall == true && sawal.__get__unlocked() == false && _root.savefile.data.sawalb != true) {
com.newgrounds.API.unlockMedal('Stay a While and Listen', 375, 300);
_root.medalgeticon.play();
sawal = com.newgrounds.API.getMedal('Stay a While and Listen');
_root.savefile.data.sawalb = true;
_root.savefile.flush();
}
if (_root.savefile.data.maxcannon == true && leet.__get__unlocked() == false && _root.savefile.data.leetb != true) {
com.newgrounds.API.unlockMedal('1337 Launcher', 375, 300);
_root.medalgeticon.play();
leet = com.newgrounds.API.getMedal('1337 Launcher');
_root.savefile.data.leetb = true;
_root.savefile.flush();
}
if (_root.savefile.data.golden == true && goldenripper.__get__unlocked() == false && _root.savefile.data.goldenripperb != true) {
com.newgrounds.API.unlockMedal('Golden Ripper', 375, 300);
_root.medalgeticon.play();
goldenripper = com.newgrounds.API.getMedal('Golden Ripper');
_root.savefile.data.goldenripperb = true;
_root.savefile.flush();
}
if (_root.savefile.data.boughtcannon == true && fcannon.__get__unlocked() == false && _root.savefile.data.fcannonb != true) {
com.newgrounds.API.unlockMedal('Canoneer', 375, 300);
_root.medalgeticon.play();
fcannon = com.newgrounds.API.getMedal('Canoneer');
_root.savefile.data.fcannonb = true;
_root.savefile.flush();
}
if (_root.savefile.data.introunlock == true && intromedal.__get__unlocked() == false && _root.savefile.data.intromedalb != true) {
com.newgrounds.API.unlockMedal('Intro', 375, 300);
_root.medalgeticon.play();
intromedal = com.newgrounds.API.getMedal('Intro');
_root.savefile.data.intromedalb = true;
_root.savefile.flush();
}
if (_root.savefile.data.poopthrown == true && thrower.__get__unlocked() == false && _root.savefile.data.throwerb != true) {
com.newgrounds.API.unlockMedal('Throw', 375, 300);
_root.medalgeticon.play();
thrower = com.newgrounds.API.getMedal('Throw');
_root.savefile.data.throwerb = true;
_root.savefile.flush();
}
if (_root.savefile.data.firstblood == true && firstblood.__get__unlocked() == false && _root.savefile.data.firstbloodb != true) {
com.newgrounds.API.unlockMedal('First Blood', 375, 300);
_root.medalgeticon.play();
firstblood = com.newgrounds.API.getMedal('First Blood');
_root.savefile.data.firstbloodb = true;
_root.savefile.flush();
}
if (_root.savefile.data.diedonce == true && deader.__get__unlocked() == false && _root.savefile.data.deaderb != true) {
com.newgrounds.API.unlockMedal('Dead', 375, 300);
_root.medalgeticon.play();
deader = com.newgrounds.API.getMedal('Dead');
_root.savefile.data.deaderb = true;
_root.savefile.flush();
}
if (_root.savefile.data.firepoopthrown == true && firepoop.__get__unlocked() == false && _root.savefile.data.firepoopb != true) {
com.newgrounds.API.unlockMedal('Fire Poop', 375, 300);
_root.medalgeticon.play();
firepoop = com.newgrounds.API.getMedal('Fire Poop');
_root.savefile.data.firepoopb = true;
_root.savefile.flush();
}
if (_root.savefile.data.gameovertrue == true && countdown.__get__unlocked() == false && _root.savefile.data.countdownb != true) {
com.newgrounds.API.unlockMedal('Count Down', 375, 300);
_root.medalgeticon.play();
countdown = com.newgrounds.API.getMedal('Count Down');
_root.savefile.data.countdownb = true;
_root.savefile.flush();
}
if (_root.savefile.data.castlecrashed == true && castle.__get__unlocked() == false && _root.savefile.data.castleb != true) {
com.newgrounds.API.unlockMedal('Crashin the Castle', 375, 300);
_root.medalgeticon.play();
castle = com.newgrounds.API.getMedal('Crashin the Castle');
_root.savefile.data.castleb = true;
_root.savefile.flush();
}
if (_root.savefile.data.turtled == true && turtlez.__get__unlocked() == false && _root.savefile.data.turtlezb != true) {
com.newgrounds.API.unlockMedal('Turtlez', 375, 300);
_root.medalgeticon.play();
turtlez = com.newgrounds.API.getMedal('Turtlez');
_root.savefile.data.turtlezb = true;
_root.savefile.flush();
}
if (_root.savefile.data.predatordie == true && whatru.__get__unlocked() == false && _root.savefile.data.whatrub != true) {
com.newgrounds.API.unlockMedal('What are you?!', 375, 300);
_root.medalgeticon.play();
whatru = com.newgrounds.API.getMedal('What are you?!');
_root.savefile.data.whatrub = true;
_root.savefile.flush();
}
if (_root.savefile.data.maxarcher == true && maxrcher.__get__unlocked() == false && _root.savefile.data.maxrcherb != true) {
com.newgrounds.API.unlockMedal('Max Archer', 375, 300);
_root.medalgeticon.play();
maxrcher = com.newgrounds.API.getMedal('Max Archer');
_root.savefile.data.maxrcherb = true;
_root.savefile.flush();
}
if (_root.savefile.data.maxknight == true && maxknight.__get__unlocked() == false && _root.savefile.data.maxknightb != true) {
com.newgrounds.API.unlockMedal('Max Knight', 375, 300);
_root.medalgeticon.play();
maxknight = com.newgrounds.API.getMedal('Max Knight');
_root.savefile.data.maxknightb = true;
_root.savefile.flush();
}
if (_root.savefile.data.rufuskill == true && rufusslay.__get__unlocked() == false && _root.savefile.data.rufusslayb != true) {
com.newgrounds.API.unlockMedal('Rufus Slayer', 375, 300);
_root.medalgeticon.play();
rufusslay = com.newgrounds.API.getMedal('Rufus Slayer');
_root.savefile.data.rufusslayb = true;
_root.savefile.flush();
}
if (_root.savefile.data.mouserkill == true && mouserkill.__get__unlocked() == false && _root.savefile.data.mouserkillb != true) {
com.newgrounds.API.unlockMedal('Mouser Killer', 375, 300);
_root.medalgeticon.play();
mouserkill = com.newgrounds.API.getMedal('Mouser Killer');
_root.savefile.data.mouserkillb = true;
_root.savefile.flush();
}
if (_root.savefile.data.tankkilled == true && antitank.__get__unlocked() == false && _root.savefile.data.antitankb != true) {
com.newgrounds.API.unlockMedal('Anti-Tank', 375, 300);
_root.medalgeticon.play();
antitank = com.newgrounds.API.getMedal('Anti-Tank');
_root.savefile.data.antitankb = true;
_root.savefile.flush();
}
if (_root.savefile.data.racist == true && racister.__get__unlocked() == false && _root.savefile.data.racisterb != true) {
com.newgrounds.API.unlockMedal('Racist', 375, 300);
_root.medalgeticon.play();
racister = com.newgrounds.API.getMedal('Racist');
_root.savefile.data.racisterb = true;
_root.savefile.flush();
}
if (_root.savefile.data.fireballer == true && firestarter.__get__unlocked() == false && _root.savefile.data.firestarterb != true) {
com.newgrounds.API.unlockMedal('Fire Starter', 375, 300);
_root.medalgeticon.play();
firestarter = com.newgrounds.API.getMedal('Fire Starter');
_root.savefile.data.firestarterb = true;
_root.savefile.flush();
}
if (_root.savefile.data.lotsgold == true && goldhoarder.__get__unlocked() == false && _root.savefile.data.goldhoarderb != true) {
com.newgrounds.API.unlockMedal('Gold Hoarder', 375, 300);
_root.medalgeticon.play();
goldhoarder = com.newgrounds.API.getMedal('Gold Hoarder');
_root.savefile.data.goldhoarderb = true;
_root.savefile.flush();
}
if (_root.savefile.data.awesomez == true && potu.__get__unlocked() == false && _root.savefile.data.potub != true) {
com.newgrounds.API.unlockMedal('Prtoectors of the Universe', 375, 300);
_root.medalgeticon.play();
potu = com.newgrounds.API.getMedal('Protectors of the Universe');
_root.savefile.data.potub = true;
_root.savefile.flush();
}
if (_root.savefile.data.wave1 == true && w10.__get__unlocked() == false && _root.savefile.data.w10b != true) {
com.newgrounds.API.unlockMedal('Wave 10', 375, 300);
_root.medalgeticon.play();
w10 = com.newgrounds.API.getMedal('Wave 10');
_root.savefile.data.w10b = true;
_root.savefile.flush();
}
if (_root.savefile.data.wave2 == true && w15.__get__unlocked() == false && _root.savefile.data.w15b != true) {
com.newgrounds.API.unlockMedal('Wave 15', 375, 300);
_root.medalgeticon.play();
w15 = com.newgrounds.API.getMedal('Wave 15');
_root.savefile.data.w15b = true;
_root.savefile.flush();
}
if (_root.savefile.data.wave3 == true && w25.__get__unlocked() == false && _root.savefile.data.w25b != true) {
com.newgrounds.API.unlockMedal('Wave 25', 375, 300);
_root.medalgeticon.play();
w25 = com.newgrounds.API.getMedal('Wave 25');
_root.savefile.data.w25b = true;
_root.savefile.flush();
}
if (_root.savefile.data.kill1 == true && k10.__get__unlocked() == false && _root.savefile.data.k10b != true) {
com.newgrounds.API.unlockMedal('Kill 10', 375, 300);
_root.medalgeticon.play();
k10 = com.newgrounds.API.getMedal('Kill 10');
_root.savefile.data.k10b = true;
_root.savefile.flush();
}
if (_root.savefile.data.kill2 == true && k25.__get__unlocked() == false && _root.savefile.data.k25b != true) {
com.newgrounds.API.unlockMedal('Kill 25', 375, 300);
_root.medalgeticon.play();
k25 = com.newgrounds.API.getMedal('Kill 25');
_root.savefile.data.k25b = true;
_root.savefile.flush();
}
if (_root.savefile.data.kill3 == true && k50.__get__unlocked() == false && _root.savefile.data.k50b != true) {
com.newgrounds.API.unlockMedal('Kill 50', 375, 300);
_root.medalgeticon.play();
k50 = com.newgrounds.API.getMedal('Kill 50');
_root.savefile.data.k50b = true;
_root.savefile.flush();
}
if (_root.savefile.data.allcannon == true && cannonm.__get__unlocked() == false && _root.savefile.data.cannonmb != true) {
com.newgrounds.API.unlockMedal('Cannon Master', 375, 300);
_root.medalgeticon.play();
cannonm = com.newgrounds.API.getMedal('Cannon Master');
_root.savefile.data.cannonmb = true;
_root.savefile.flush();
}
if (_root.savefile.data.unlockall == true && mmm.__get__unlocked() == false && _root.savefile.data.mmmb != true) {
com.newgrounds.API.unlockMedal('Master of the Trade', 375, 300);
_root.medalgeticon.play();
mmm = com.newgrounds.API.getMedal('Master of the Trade');
_root.savefile.data.mmmb = true;
_root.savefile.flush();
}
};
stop();
}
button 303 {
on (release) {
fireplacething.stop();
_root.instructs._visible = true;
_root.instructs.gotoAndStop(1);
stopAllSounds();
_root.stopAllSounds();
_root.mainmusic.attachSound('ingame');
_root.ingamemusic.attachSound('ingame');
_root.bossmusic.attachSound('bossmusic');
_root.ingamemusic.start(0, 9999);
_root.mainmusic.setVolume(0);
_root.soundcontrol.gotoAndPlay(1);
}
}
button 307 {
on (release) {
getURL('http://www.facebook.com/ArmorGames', '_new', 'GET');
}
}
button 311 {
on (release) {
getURL('http://twitter.com/armorgames', '_new', 'GET');
}
}
movieClip 313 {
}
movieClip 315 {
}
button 316 {
on (release) {
getURL('www.armorgames.com', '_new', 'GET');
}
}
button 321 {
on (release) {
if (_root.savefile.data.hazgame == true) {
stopAllSounds();
_root.stopAllSounds();
_root.continueGame = true;
_root.gotoAndStop('campaign');
_root.mainmusic.attachSound('ingame');
_root.ingamemusic.attachSound('ingame');
_root.bossmusic.attachSound('bossmusic');
_root.ingamemusic.start(0, 9999);
_root.mainmusic.setVolume(0);
_root.soundcontrol.gotoAndPlay(1);
}
}
}
button 328 {
on (release) {
_root.instructs.nextFrame();
}
}
button 331 {
on (release) {
_root.gotoAndStop('campaign');
}
}
movieClip 332 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
}
instance instructs of movieClip 332 {
onClipEvent (load) {
_visible = false;
}
}
movieClip 334 {
frame 1 {
_root.mainmusic.setVolume(10);
}
frame 3 {
_root.mainmusic.setVolume(20);
}
frame 5 {
_root.mainmusic.setVolume(30);
}
frame 7 {
_root.mainmusic.setVolume(40);
}
frame 9 {
_root.mainmusic.setVolume(50);
}
frame 11 {
_root.mainmusic.setVolume(60);
}
frame 13 {
_root.mainmusic.setVolume(70);
}
frame 15 {
_root.mainmusic.setVolume(80);
}
frame 17 {
_root.mainmusic.setVolume(90);
}
frame 19 {
_root.mainmusic.setVolume(100);
stop();
}
frame 21 {
_root.mainmusic.setVolume(90);
}
frame 23 {
_root.mainmusic.setVolume(80);
}
frame 25 {
_root.mainmusic.setVolume(70);
}
frame 27 {
_root.mainmusic.setVolume(60);
}
frame 29 {
_root.mainmusic.setVolume(50);
}
frame 31 {
_root.mainmusic.setVolume(40);
}
frame 33 {
_root.mainmusic.setVolume(30);
}
frame 35 {
_root.mainmusic.setVolume(20);
}
frame 37 {
_root.mainmusic.setVolume(10);
}
frame 39 {
_root.mainmusic.setVolume(0);
stop();
}
}
instance soundcontrol of movieClip 334 {
onClipEvent (load) {
gotoAndStop(20);
var mutedvol = false;
}
onClipEvent (enterFrame) {
trace(_root.soundcontrol.getVolume());
}
}
movieClip 336 {
}
instance bosssound of movieClip 336 {
onClipEvent (load) {
gotoAndStop(1);
}
}
movieClip 338 {
frame 718 {
stop();
}
}
instance continuesound of movieClip 338 {
onClipEvent (load) {
gotoAndStop(619);
}
}
movieClip 341 {
}
button 342 {
on (rollOver) {
_root.medal = 'Intro Watcher';
_root.medalname = 'Watch the intro :D';
}
on (rollOut) {
_root.medal = '';
_root.medalname = 'Scroll Over Any Medal';
}
}
movieClip 344 {
}
button 345 {
on (rollOver) {
_root.medal = 'Poop Thrower';
_root.medalname = 'Throw some poopy';
}
on (rollOut) {
_root.medal = '';
_root.medalname = 'Scroll Over Any Medal';
}
}
movieClip 347 {
}
button 348 {
on (rollOver) {
_root.medal = 'First Blood!!';
_root.medalname = 'Deal your first deathly blow. >:D';
}
on (rollOut) {
_root.medal = '';
_root.medalname = 'Scroll Over Any Medal';
}
}
movieClip 350 {
}
button 351 {
on (rollOver) {
_root.medal = 'Loser';
_root.medalname = 'Die... Right now... go do it.';
}
on (rollOut) {
_root.medal = '';
_root.medalname = 'Scroll Over Any Medal';
}
}
movieClip 353 {
}
button 354 {
on (rollOver) {
_root.medal = 'Fire Poops';
_root.medalname = 'Throw some fire poopy';
}
on (rollOut) {
_root.medal = '';
_root.medalname = 'Scroll Over Any Medal';
}
}
movieClip 356 {
}
button 357 {
on (rollOver) {
_root.medal = 'Countdown Watcher';
_root.medalname = 'Let the continue hit 0';
}
on (rollOut) {
_root.medal = '';
_root.medalname = 'Scroll Over Any Medal';
}
}
movieClip 359 {
}
button 360 {
on (rollOver) {
_root.medal = 'Crash the Castle!!';
_root.medalname = 'Get the Castle Crasher';
}
on (rollOut) {
_root.medal = '';
_root.medalname = 'Scroll Over Any Medal';
}
}
button 363 {
on (rollOver) {
_root.medal = 'Fire Starter';
_root.medalname = 'Use fireballs';
}
on (rollOut) {
_root.medal = '';
_root.medalname = 'Scroll Over Any Medal';
}
}
button 366 {
on (rollOver) {
_root.medal = 'Gold Hoarder';
_root.medalname = 'Tons o\' Gold';
}
on (rollOut) {
_root.medal = '';
_root.medalname = 'Scroll Over Any Medal';
}
}
button 369 {
on (rollOver) {
_root.medal = 'Masters of the Universe';
_root.medalname = 'In Game Credits';
}
on (rollOut) {
_root.medal = '';
_root.medalname = 'Scroll Over Any Medal';
}
}
button 372 {
on (rollOver) {
_root.medal = '1337 Launcher';
_root.medalname = 'We all love the classic';
}
on (rollOut) {
_root.medal = '';
_root.medalname = 'Scroll Over Any Medal';
}
}
button 375 {
on (rollOver) {
_root.medal = 'Golden Ripper';
_root.medalname = 'Get the best claws';
}
on (rollOut) {
_root.medal = '';
_root.medalname = 'Scroll Over Any Medal';
}
}
button 378 {
on (rollOver) {
_root.medal = 'Cannon';
_root.medalname = 'Buy a cannon';
}
on (rollOut) {
_root.medal = '';
_root.medalname = 'Scroll Over Any Medal';
}
}
button 381 {
on (rollOver) {
_root.medal = 'Immovable Object';
_root.medalname = 'Upgrade wall to max';
}
on (rollOut) {
_root.medal = '';
_root.medalname = 'Scroll Over Any Medal';
}
}
button 384 {
on (rollOver) {
_root.medal = 'Body Builder';
_root.medalname = 'Gym upgraded to max';
}
on (rollOut) {
_root.medal = '';
_root.medalname = 'Scroll Over Any Medal';
}
}
button 387 {
on (rollOver) {
_root.medal = 'Stay a While and Listen';
_root.medalname = 'Listen to all dragon quotes';
}
on (rollOut) {
_root.medal = '';
_root.medalname = 'Scroll Over Any Medal';
}
}
button 390 {
on (rollOver) {
_root.medal = 'Noob Survivor';
_root.medalname = 'Survive 10 waves';
}
on (rollOut) {
_root.medal = '';
_root.medalname = 'Scroll Over Any Medal';
}
}
button 393 {
on (rollOver) {
_root.medal = 'Average Survivor';
_root.medalname = 'Survive 15 waves';
}
on (rollOut) {
_root.medal = '';
_root.medalname = 'Scroll Over Any Medal';
}
}
button 396 {
on (rollOver) {
_root.medal = '1337 Survivor';
_root.medalname = 'Survive 25 waves';
}
on (rollOut) {
_root.medal = '';
_root.medalname = 'Scroll Over Any Medal';
}
}
button 399 {
on (rollOver) {
_root.medal = 'Manslaughter';
_root.medalname = 'Kill 10 enemies';
}
on (rollOut) {
_root.medal = '';
_root.medalname = 'Scroll Over Any Medal';
}
}
button 402 {
on (rollOver) {
_root.medal = 'Homocide';
_root.medalname = 'Kill 25 enemies';
}
on (rollOut) {
_root.medal = '';
_root.medalname = 'Scroll Over Any Medal';
}
}
button 405 {
on (rollOver) {
_root.medal = 'Genocide!';
_root.medalname = 'Kill 50 Enemies!!';
}
on (rollOut) {
_root.medal = '';
_root.medalname = 'Scroll Over Any Medal';
}
}
button 408 {
on (rollOver) {
_root.medal = 'Master of the Balls';
_root.medalname = 'Use each cannonball type';
}
on (rollOut) {
_root.medal = '';
_root.medalname = 'Scroll Over Any Medal';
}
}
movieClip 410 {
}
button 411 {
on (rollOver) {
_root.medal = 'Medal Monster';
_root.medalname = 'Acquire All Medals!';
}
on (rollOut) {
_root.medal = '';
_root.medalname = 'Scroll Over Any Medal';
}
}
movieClip 413 {
}
button 414 {
on (rollOver) {
_root.medal = 'TURTLEZ!!!';
_root.medalname = 'Get the turtle';
}
on (rollOut) {
_root.medal = '';
_root.medalname = 'Scroll Over Any Medal';
}
}
movieClip 416 {
}
button 418 {
on (rollOver) {
trace('WWWWWWTTTFFFFFFFFFFF\\DOUBLEYOUTEEEFF');
_root.medal = 'Knight Pro';
_root.medalname = 'Knight final upgrade';
}
on (rollOut) {
_root.medal = '';
_root.medalname = 'Scroll Over Any Medal';
}
}
button 421 {
on (rollOver) {
_root.medal = 'Rufus Slayer';
_root.medalname = 'Kill Rufus the Demon';
}
on (rollOut) {
_root.medal = '';
_root.medalname = 'Scroll Over Any Medal';
}
}
button 424 {
on (rollOver) {
_root.medal = 'Mouser Master';
_root.medalname = 'Slay the snickering Mouser';
}
on (rollOut) {
_root.medal = '';
_root.medalname = 'Scroll Over Any Medal';
}
}
button 427 {
on (rollOver) {
_root.medal = 'Tank Destroyer';
_root.medalname = 'Kill your first tank';
}
on (rollOut) {
_root.medal = '';
_root.medalname = 'Scroll Over Any Medal';
}
}
button 430 {
on (rollOver) {
_root.medal = 'Racist';
_root.medalname = 'Kill the Black Dude';
}
on (rollOut) {
_root.medal = '';
_root.medalname = 'Scroll Over Any Medal';
}
}
movieClip 432 {
}
button 433 {
on (rollOver) {
_root.medal = 'What the Hell Are You?!';
_root.medalname = 'A deathly boom';
}
on (rollOut) {
_root.medal = '';
_root.medalname = 'Scroll Over Any Medal';
}
}
movieClip 435 {
}
button 436 {
on (rollOver) {
_root.medal = 'Archer Pro';
_root.medalname = 'Archer final upgrade';
}
on (rollOut) {
_root.medal = '';
_root.medalname = 'Scroll Over Any Medal';
}
}
// unknown tag 88 length 73
movieClip 441 {
}
movieClip 442 {
}
movieClip 443 {
}
movieClip 444 {
}
movieClip 445 {
}
movieClip 446 {
}
movieClip 447 {
}
movieClip 448 {
}
movieClip 449 {
}
movieClip 450 {
}
movieClip 451 {
}
movieClip 452 {
}
movieClip 453 {
}
movieClip 454 {
}
movieClip 455 {
}
movieClip 456 {
}
movieClip 457 {
}
movieClip 458 {
}
movieClip 459 {
}
movieClip 460 {
}
movieClip 461 {
}
movieClip 462 {
}
movieClip 463 {
}
movieClip 464 {
}
movieClip 465 {
}
movieClip 466 {
}
movieClip 467 {
}
movieClip 468 {
}
movieClip 469 {
}
movieClip 470 {
}
movieClip 471 {
}
movieClip 472 {
}
button 476 {
on (release) {
_root.medals._visible = false;
}
}
movieClip 477 {
instance of movieClip 441 {
onClipEvent (enterFrame) {
if (_root.savefile.data.introunlock == true) {
_visible = false;
} else {
_visible = true;
}
}
}
instance of movieClip 442 {
onClipEvent (enterFrame) {
if (_root.savefile.data.poopthrown == true) {
_visible = false;
} else {
_visible = true;
}
}
}
instance of movieClip 443 {
onClipEvent (enterFrame) {
if (_root.savefile.data.firstblood == true) {
_visible = false;
} else {
_visible = true;
}
}
}
instance of movieClip 444 {
onClipEvent (enterFrame) {
if (_root.savefile.data.diedonce == true) {
_visible = false;
} else {
_visible = true;
}
}
}
instance of movieClip 445 {
onClipEvent (enterFrame) {
if (_root.savefile.data.firepoopthrown == true) {
_visible = false;
} else {
_visible = true;
}
}
}
instance of movieClip 446 {
onClipEvent (enterFrame) {
if (_root.savefile.data.gameovertrue == true) {
_visible = false;
} else {
_visible = true;
}
}
}
instance of movieClip 447 {
onClipEvent (enterFrame) {
if (_root.savefile.data.predatordie == true) {
_visible = false;
} else {
_visible = true;
}
}
}
instance of movieClip 448 {
onClipEvent (enterFrame) {
if (_root.savefile.data.maxarcher == true) {
_visible = false;
} else {
_visible = true;
}
}
}
instance of movieClip 449 {
onClipEvent (enterFrame) {
if (_root.savefile.data.maxknight == true) {
_visible = false;
} else {
_visible = true;
}
}
}
instance of movieClip 450 {
onClipEvent (enterFrame) {
if (_root.savefile.data.rufuskill == true) {
_visible = false;
} else {
_visible = true;
}
}
}
instance of movieClip 451 {
onClipEvent (enterFrame) {
if (_root.savefile.data.mouserkill == true) {
_visible = false;
} else {
_visible = true;
}
}
}
instance of movieClip 452 {
onClipEvent (enterFrame) {
if (_root.savefile.data.tankkilled == true) {
_visible = false;
} else {
_visible = true;
}
}
}
instance of movieClip 453 {
onClipEvent (enterFrame) {
if (_root.savefile.data.racist == true) {
_visible = false;
} else {
_visible = true;
}
}
}
instance of movieClip 454 {
onClipEvent (enterFrame) {
if (_root.savefile.data.fireballer == true) {
_visible = false;
} else {
_visible = true;
}
}
}
instance of movieClip 455 {
onClipEvent (enterFrame) {
if (_root.savefile.data.lotsgold == true) {
_visible = false;
} else {
_visible = true;
}
}
}
instance of movieClip 456 {
onClipEvent (enterFrame) {
if (_root.savefile.data.awesomez == true) {
_visible = false;
} else {
_visible = true;
}
}
}
instance of movieClip 457 {
onClipEvent (enterFrame) {
if (_root.savefile.data.maxcannon == true) {
_visible = false;
} else {
_visible = true;
}
}
}
instance of movieClip 458 {
onClipEvent (enterFrame) {
if (_root.savefile.data.golden == true) {
_visible = false;
} else {
_visible = true;
}
}
}
instance of movieClip 459 {
onClipEvent (enterFrame) {
if (_root.savefile.data.cannonbought == true) {
_visible = false;
} else {
_visible = true;
}
}
}
instance of movieClip 460 {
onClipEvent (enterFrame) {
if (_root.savefile.data.wallmax == true) {
_visible = false;
} else {
_visible = true;
}
}
}
instance of movieClip 461 {
onClipEvent (enterFrame) {
if (_root.savefile.data.maxgym == true) {
_visible = false;
} else {
_visible = true;
}
}
}
instance of movieClip 462 {
onClipEvent (enterFrame) {
if (_root.savefile.data.heardall == true) {
_visible = false;
} else {
_visible = true;
}
}
}
instance of movieClip 463 {
onClipEvent (enterFrame) {
if (_root.savefile.data.wave1 == true) {
_visible = false;
} else {
_visible = true;
}
}
}
instance of movieClip 464 {
onClipEvent (enterFrame) {
if (_root.savefile.data.wave2 == true) {
_visible = false;
} else {
_visible = true;
}
}
}
instance of movieClip 465 {
onClipEvent (enterFrame) {
if (_root.savefile.data.wave3 == true) {
_visible = false;
} else {
_visible = true;
}
}
}
instance of movieClip 466 {
onClipEvent (enterFrame) {
if (_root.savefile.data.kill1 == true) {
_visible = false;
} else {
_visible = true;
}
}
}
instance of movieClip 467 {
onClipEvent (enterFrame) {
if (_root.savefile.data.kill2 == true) {
_visible = false;
} else {
_visible = true;
}
}
}
instance of movieClip 468 {
onClipEvent (enterFrame) {
if (_root.savefile.data.kill3 == true) {
_visible = false;
} else {
_visible = true;
}
}
}
instance of movieClip 469 {
onClipEvent (enterFrame) {
if (_root.savefile.data.allcannon == true) {
_visible = false;
} else {
_visible = true;
}
}
}
instance of movieClip 470 {
onClipEvent (enterFrame) {
if (_root.savefile.data.unlockall == true) {
_visible = false;
} else {
_visible = true;
}
}
}
instance of movieClip 471 {
onClipEvent (enterFrame) {
if (_root.savefile.data.castlecrashed == true) {
_visible = false;
} else {
_visible = true;
}
}
}
instance of movieClip 472 {
onClipEvent (enterFrame) {
if (_root.savefile.data.turtled == true) {
_visible = false;
} else {
_visible = true;
}
}
}
}
instance medals of movieClip 477 {
onClipEvent (load) {
_visible = false;
_root.medal = '';
_root.medalname = 'Scroll Over Any Medal';
}
}
movieClip 479 {
}
movieClip 480 {
frame 1 {
stop();
}
}
instance medalgeticon of movieClip 480 {
onClipEvent (enterFrame) {
_x = _root.hpbar._x + 375;
}
}
frame 511 {
var besthigh = _root.savefile.data.highscore;
}
frame 511 {
function quitGame() {
_root._x = 0;
_root.knight1._y = 9999;
_root.archer1._y = 9999;
_root.cannon1._y = 9999;
_root.mech._y = 9999;
_root.gameover.removeMovieClip();
_root.pauseMenu._visible = false;
_root.pauseMenu.checkIt = false;
_root.pauseMenu.pressedP = false;
_root.pauseMenu.removeMovieClip();
_root.dropIn.removeMovieClip();
_root.soundcontrol.ingamemusic.setVolume(0);
_root.soundcontrol.setVolume(0);
_root.soundcontrol.ingamemusic.stop();
_root.soundcontrol.ingamemusic.stop();
_root.ingamemusic.stop();
_root.dothings.removeMovieClip();
_root.shop.removeMovieClip();
_root.gotoAndStop('opening');
}
function playSplat() {
_root.splatsound.gotoAndStop(Math.round(Math.random() + 2));
}
var knightkill = false;
var healdragon = false;
var intromedal = com.newgrounds.API.getMedal('Intro');
var thrower = com.newgrounds.API.getMedal('Throw');
var firstblood = com.newgrounds.API.getMedal('First Blood');
var deader = com.newgrounds.API.getMedal('Dead');
var firepoop = com.newgrounds.API.getMedal('Fire Poop');
var countdown = com.newgrounds.API.getMedal('Count Down');
var castle = com.newgrounds.API.getMedal('Crashin the Castle');
var turtlez = com.newgrounds.API.getMedal('Turtlez');
var whatru = com.newgrounds.API.getMedal('What are you?!');
var maxrcher = com.newgrounds.API.getMedal('Max Archer');
var maxknight = com.newgrounds.API.getMedal('Max Knight');
var rufusslay = com.newgrounds.API.getMedal('Rufus Slayer');
var mouserkill = com.newgrounds.API.getMedal('Mouser Killer');
var antitank = com.newgrounds.API.getMedal('Anti-Tank');
var racister = com.newgrounds.API.getMedal('Racist');
var firestarter = com.newgrounds.API.getMedal('Fire Starter');
var goldhoarder = com.newgrounds.API.getMedal('Gold Hoarder');
var potu = com.newgrounds.API.getMedal('Protectors of the Universe');
var leet = com.newgrounds.API.getMedal('1337 Launcher');
var goldenripper = com.newgrounds.API.getMedal('Golden Ripper');
var fcannon = com.newgrounds.API.getMedal('Cannoneer');
var im = com.newgrounds.API.getMedal('Immovable Object');
var uf = com.newgrounds.API.getMedal('Unstoppable Force');
var sawal = com.newgrounds.API.getMedal('Stay a While and Listen');
var w10 = com.newgrounds.API.getMedal('Wave 10');
var w15 = com.newgrounds.API.getMedal('Wave 15');
var w25 = com.newgrounds.API.getMedal('Wave 25');
var k10 = com.newgrounds.API.getMedal('Kill 10');
var k25 = com.newgrounds.API.getMedal('Kill 25');
var k50 = com.newgrounds.API.getMedal('Kill 50');
var cannonm = com.newgrounds.API.getMedal('Cannon Master');
var mmm = com.newgrounds.API.getMedal('Master of the Trade');
var enemyarray = new Array();
_root.dragon.onPress = function () {
_root.dragon.dragon.gotoAndStop('hold');
};
_root.dragon.onRelease = function () {
_root.dragon.dragon.gotoAndStop('fly');
if (_root.dragon.mcHold == _root.poop1) {
_root.dragon.dragon.gotoAndStop('fly');
_root.poop1.held = false;
_root.poop1.flung = true;
_root.poop1.xgrav = (_root.dragon._x - _root.grav._x) * 0.2;
_root.poop1.ygrav = (_root.dragon._y - _root.grav._y) * 0.2;
}
if (_root.dragon.mcHold == _root.poop2) {
_root.dragon.dragon.gotoAndStop('fly');
_root.poop2.held = false;
_root.poop2.flung = true;
_root.poop2.xgrav = (_root.dragon._x - _root.grav._x) * 0.2;
_root.poop2.ygrav = (_root.dragon._y - _root.grav._y) * 0.2;
}
_root.dragon.mcHold = undefined;
};
_root.dragon.onReleaseOutside = function () {
_root.dragon.dragon.gotoAndStop('fly');
};
var pressQ = false;
var refreshdelay = 60;
_root.onEnterFrame = function () {
--refreshdelay;
if (refreshdelay <= 0) {
refreshdelay = 300;
_root.knight1.spot = _root.homebase;
_root.knight1.inCombat = false;
_root.knight1.knight.gotoAndStop(1);
_root.archer1.spot = _root.homebase2;
_root.archer1.inCombat = false;
_root.archer1.archer.gotoAndStop(1);
_root.cannon1.spot = _root.homebase;
_root.cannon1.firing = false;
_root.mech.spot = _root.homebase;
_root.mech.inCombat = false;
_root.mech.gotoAndStop(1);
}
if (totalkill > 10) {
if (_root.savefile.data.kill1 != true) {
_root.savefile.data.kill1 = true;
_root.savefile.flush();
}
}
if (totalkill > 25) {
if (_root.savefile.data.kill2 != true) {
_root.savefile.data.kill2 = true;
_root.savefile.flush();
}
}
if (totalkill > 50) {
if (_root.savefile.data.kill3 != true) {
_root.savefile.data.kill3 = true;
_root.savefile.flush();
}
}
if (wavenum >= 10) {
if (_root.savefile.data.wave1 != true) {
_root.savefile.data.wave1 = true;
_root.savefile.flush();
}
}
if (wavenum >= 15) {
if (_root.savefile.data.wave2 != true) {
_root.savefile.data.wave2 = true;
_root.savefile.flush();
}
}
if (wavenum >= 25) {
if (_root.savefile.data.wave3 != true) {
_root.savefile.data.wave3 = true;
_root.savefile.flush();
}
}
if (_root.wavePeople >= 1 && wavenum > 4 && _root.numPeople == 0 && _root.wavePeople < 6 && _root.killingspreesound._currentframe == 1) {
_root.killingspreesound.play();
}
if (wavenum > 6 && _root.numPeople == 0 && _root.wavePeople <= 4 && _root.rampagesound._currentframe == 1 && _root.killingspreesound._currentframe >= 55 && _root.killingspreesound._currentframe <= 120) {
_root.rampagesound.play();
}
if (wavenum > 10 && _root.numPeople == 0 && _root.wavePeople < 4 && _root.godlikesound._currentframe == 1 && _root.rampagesound._currentframe >= 50 && _root.rampagesound._currentframe <= 75) {
_root.godlikesound.play();
}
if (enemyarray[0]._y > _root.knight1._y && enemyarray[0].getDepth() < _root.knight1.getDepth()) {
enemyarray[0].swapDepths(_root.knight1);
}
if (enemyarray[0]._y < _root.knight1._y && enemyarray[0].getDepth() > _root.knight1.getDepth()) {
enemyarray[0].swapDepths(_root.knight1);
}
if (enemyarray[0]._y > _root.archer1._y && enemyarray[0].getDepth() < _root.archer1.getDepth()) {
enemyarray[0].swapDepths(_root.archer1);
}
if (enemyarray[0]._y < _root.archer1._y && enemyarray[0].getDepth() > _root.archer1.getDepth()) {
enemyarray[0].swapDepths(_root.archer1);
}
if (enemyarray[0]._y > _root.cannon1._y && enemyarray[0].getDepth() < _root.cannon1.getDepth()) {
enemyarray[0].swapDepths(_root.cannon1);
}
if (enemyarray[0]._y < _root.cannon1._y && enemyarray[0].getDepth() > _root.cannon1.getDepth()) {
enemyarray[0].swapDepths(_root.cannon1);
}
if (enemyarray[0]._y > _root.mech._y && enemyarray[0].getDepth() < _root.mech.getDepth()) {
enemyarray[0].swapDepths(_root.mech);
}
if (enemyarray[0]._y < _root.mech._y && enemyarray[0].getDepth() > _root.mech.getDepth()) {
enemyarray[0].swapDepths(_root.mech);
}
iter = 1;
while (iter < enemyarray.length) {
if (enemyarray[iter]._y > enemyarray[iter - 1]._y && enemyarray[iter].getDepth() < enemyarray[iter - 1].getDepth()) {
enemyarray[iter].swapDepths(enemyarray[iter - 1]);
}
if (enemyarray[iter]._y < enemyarray[iter - 1]._y && enemyarray[iter].getDepth() > enemyarray[iter - 1].getDepth()) {
enemyarray[iter].swapDepths(enemyarray[iter - 1]);
}
if (enemyarray[iter]._y > _root.knight1._y && enemyarray[iter].getDepth() < _root.knight1.getDepth()) {
enemyarray[iter].swapDepths(_root.knight1);
}
if (enemyarray[iter]._y < _root.knight1._y && enemyarray[iter].getDepth() > _root.knight1.getDepth()) {
enemyarray[iter].swapDepths(_root.knight1);
}
if (enemyarray[iter]._y > _root.archer1._y && enemyarray[iter].getDepth() < _root.archer1.getDepth()) {
enemyarray[iter].swapDepths(_root.archer1);
}
if (enemyarray[iter]._y < _root.archer1._y && enemyarray[iter].getDepth() > _root.archer1.getDepth()) {
enemyarray[iter].swapDepths(_root.archer1);
}
if (enemyarray[iter]._y > _root.cannon1._y && enemyarray[iter].getDepth() < _root.cannon1.getDepth()) {
enemyarray[iter].swapDepths(_root.cannon1);
}
if (enemyarray[iter]._y < _root.cannon1._y && enemyarray[iter].getDepth() > _root.cannon1.getDepth()) {
enemyarray[iter].swapDepths(_root.cannon1);
}
if (enemyarray[iter]._y > _root.mech._y && enemyarray[iter].getDepth() < _root.mech.getDepth()) {
enemyarray[iter].swapDepths(_root.mech);
}
if (enemyarray[iter]._y < _root.mech._y && enemyarray[iter].getDepth() > _root.mech.getDepth()) {
enemyarray[iter].swapDepths(_root.mech);
}
++iter;
}
if (Key.isDown(70) && healdragon == false && _root.hp > 0) {
healdragon = true;
}
if (!Key.isDown(70) && healdragon == true) {
healdragon = false;
if (_root.numhppacks > 0) {
--_root.numhppacks;
if (_root.hasbod == true) {
_root.hp = 200;
} else {
_root.hp = 100;
}
}
}
if (Key.isDown(81) && pressQ == false) {
pressQ = true;
if (_root._quality == 'LOW') {
_root._quality = 'HIGH';
} else {
if (_root._quality == 'MEDIUM') {
_root._quality = 'LOW';
} else {
if (_root._quality == 'HIGH') {
_root._quality = 'MEDIUM';
}
}
}
}
if (!Key.isDown(81) && pressQ == true) {
pressQ = false;
}
if (hp <= 0 && gameOver == true) {
_root.gameover._visible = true;
}
if (bossRound == true) {
wavePeople = 0;
}
if (wavePeople < 1 && bossDead == true) {
wavePeople = 0;
if ((_root.head._currentframe == 1 || _root.head._currentframe == 2) && _root.dropIn._currentframe == 1) {
_root.head.talking = true;
_root.head.gotoAndStop(3);
_root.head.talk.gotoAndStop(Math.ceil(Math.random() * 5));
}
if (_root.dropIn._currentframe == 2) {
_root.head.gotoAndStop(1);
_root.head.talking = false;
killcount = 'Kills this round: ' + roundkill + '. Total kills: ' + totalkill + '.';
if (ACslash == true) {
winmsg += 'Slash Kill!\t+300\n';
_root.gold += 300;
}
if (ACarcherkill == true) {
winmsg += 'Archer kill!\t+200\n';
_root.gold += 200;
}
if (knightkill == true) {
winmsg += 'Knight kill!\t+200\n';
_root.gold += 200;
}
if (hasWall == true) {
winmsg += 'Wall is up!\t+100\n';
_root.gold += 100;
}
if (_root.dothings.round2 == 0) {
winmsg += 'BOSS ROUND!\t+1000\n';
_root.gold += 1000;
}
if (hp == 100) {
winmsg += 'Full health!\t+500\n';
_root.gold += 500;
}
if (_root.archer1.hp == 100 && _root.archer1.inUse == true) {
winmsg += 'Archer hp full!\t+300\n';
_root.gold += 300;
}
if (_root.knight1.hp == 100 && _root.knight1.inUse == true) {
winmsg += 'Knight hp full!\t+300\n';
_root.gold += 300;
}
if (_root.cannon1.hp == 100 && _root.cannon1.inUse == true) {
winmsg += 'Cannon hp full!\t+300\n';
_root.gold += 300;
}
}
if (_root.dropIn._currentframe == 37) {
_root.savefile.data.hasGym = hasGym;
_root.savefile.data.gymlvl = gymlvl;
_root.savefile.data.haswall = haswall;
_root.savefile.data.hasbod = hasbod;
_root.savefile.data.clickdmg = clickdmg;
_root.savefile.data.waveNumber = waveNumber;
_root.savefile.data.numhppacks = numhppacks;
_root.savefile.data.bossWave = bossWave;
_root.savefile.data.lol = lol;
_root.savefile.data.hp = hp;
_root.savefile.data.gold = gold;
_root.savefile.data.totalkill = totalkill;
_root.savefile.data.roundkill = roundkill;
_root.savefile.data.hasFire = hasFire;
_root.savefile.data.hasPoop = hasPoop;
_root.savefile.data.wallLVL = wallLVL;
_root.savefile.data.qualityString = _quality;
_root.savefile.data.knighthp = _root.knight1.hp;
_root.savefile.data.archerhp = _root.archer1.hp;
_root.savefile.data.cannonhp = _root.cannon1.hp;
_root.savefile.data.mechhp = _root.mech.hp;
_root.savefile.data.cannonlvl = _root.cannon1._currentframe;
_root.savefile.data.cannondmg = _root.cannon1.dmg;
_root.savefile.data.knightlvl = _root.knight1._currentframe;
_root.savefile.data.archerlvl = _root.archer1._currentframe;
_root.savefile.data.wavenum = wavenum;
_root.savefile.data.wavePeople = wavePeople;
_root.savefile.data.roundkill = roundkill;
_root.savefile.data.round2 = _root.dothings.round2;
_root.savefile.data.gold = _root.gold;
_root.savefile.data.hasLax = _root.hasLax;
_root.savefile.data.wallx = _root.wall._x;
_root.savefile.data.knightx = _root.knight1._x;
_root.savefile.data.knighty = _root.knight1._y;
_root.savefile.data.archerx = _root.archer1._x;
_root.savefile.data.archery = _root.archer1._y;
_root.savefile.data.cannonx = _root.cannon1._x;
_root.savefile.data.cannony = _root.cannon1._y;
_root.savefile.data.mechx = _root.mech._x;
_root.savefile.data.mechy = _root.mech._y;
_root.savefile.data.knightUse = _root.knight1.inUse;
_root.savefile.data.archerUse = _root.archer1.inUse;
_root.savefile.data.cannonUse = _root.cannon1.inUse;
_root.savefile.data.mechUse = _root.mech.inUse;
_root.savefile.data.knighticonx = _root.mm.knighticon._x;
_root.savefile.data.archericonx = _root.mm.archericon._x;
_root.savefile.data.cannoniconx = _root.mm.cannonicon._x;
_root.savefile.data.walliconx = _root.mm.wallicon._x;
_root.savefile.data.knighticony = _root.mm.knighticon._y;
_root.savefile.data.archericony = _root.mm.archericon._y;
_root.savefile.data.cannonicony = _root.mm.cannonicon._y;
_root.savefile.data.wallicony = _root.mm.wallicon._y;
_root.savefile.data.stage2 = _root.bg1.stage2;
_root.savefile.data.stage3 = _root.bg1.stage3;
_root.savefile.flush();
}
if (_root.dropIn._currentframe == 39) {
if (lol == 1) {
lol = 2;
} else {
if (lol == 2) {
lol = 4;
} else {
if (lol == 3) {
lol = 1;
} else {
if (lol == 4) {
lol = 3;
}
}
}
}
}
if (_root.dropIn._currentframe == 60) {
_root.rdy.play();
}
if (_root.dropIn._currentframe == 87) {
knightkill = false;
++wavenum;
ACslash = false;
winmsg = '';
wavePeople = 1 + wavenum * 3;
roundkill = 1 + wavenum * 3;
maxPeople += 0.15;
_root.dropIn.gotoAndStop(1);
}
}
if (_root.savefile.data.wallmax == true && im.__get__unlocked() == false && _root.savefile.data.imb != true) {
com.newgrounds.API.unlockMedal('Immovable Object', _root.medalgeticon._x, 300);
_root.medalgeticon.play();
im = com.newgrounds.API.getMedal('Immovable Object');
_root.savefile.data.imb = true;
_root.savefile.flush();
}
if (_root.savefile.data.maxgym == true && uf.__get__unlocked() == false && _root.savefile.data.ufb != true) {
com.newgrounds.API.unlockMedal('Unstoppable Force', _root.medalgeticon._x, 300);
_root.medalgeticon.play();
uf = com.newgrounds.API.getMedal('Unstoppable Force');
_root.savefile.data.ufb = true;
_root.savefile.flush();
}
if (_root.savefile.data.heardall == true && sawal.__get__unlocked() == false && _root.savefile.data.sawalb != true) {
com.newgrounds.API.unlockMedal('Stay a While and Listen', _root.medalgeticon._x, 300);
_root.medalgeticon.play();
sawal = com.newgrounds.API.getMedal('Stay a While and Listen');
_root.savefile.data.sawalb = true;
_root.savefile.flush();
}
if (_root.savefile.data.maxcannon == true && leet.__get__unlocked() == false && _root.savefile.data.leetb != true) {
com.newgrounds.API.unlockMedal('1337 Launcher', _root.medalgeticon._x, 300);
_root.medalgeticon.play();
leet = com.newgrounds.API.getMedal('1337 Launcher');
_root.savefile.data.leetb = true;
_root.savefile.flush();
}
if (_root.savefile.data.golden == true && goldenripper.__get__unlocked() == false && _root.savefile.data.goldenripperb != true) {
com.newgrounds.API.unlockMedal('Golden Ripper', _root.medalgeticon._x, 300);
_root.medalgeticon.play();
goldenripper = com.newgrounds.API.getMedal('Golden Ripper');
_root.savefile.data.goldenripperb = true;
_root.savefile.flush();
}
if (_root.savefile.data.boughtcannon == true && fcannon.__get__unlocked() == false && _root.savefile.data.fcannonb != true) {
com.newgrounds.API.unlockMedal('Canoneer', _root.medalgeticon._x, 300);
_root.medalgeticon.play();
fcannon = com.newgrounds.API.getMedal('Canoneer');
_root.savefile.data.fcannonb = true;
_root.savefile.flush();
}
if (_root.savefile.data.introunlock == true && intromedal.__get__unlocked() == false && _root.savefile.data.intromedalb != true) {
com.newgrounds.API.unlockMedal('Intro', _root.medalgeticon._x, 300);
_root.medalgeticon.play();
intromedal = com.newgrounds.API.getMedal('Intro');
_root.savefile.data.intromedalb = true;
_root.savefile.flush();
}
if (_root.savefile.data.poopthrown == true && thrower.__get__unlocked() == false && _root.savefile.data.throwerb != true) {
com.newgrounds.API.unlockMedal('Throw', _root.medalgeticon._x, 300);
_root.medalgeticon.play();
thrower = com.newgrounds.API.getMedal('Throw');
_root.savefile.data.throwerb = true;
_root.savefile.flush();
}
if (_root.savefile.data.firstblood == true && firstblood.__get__unlocked() == false && _root.savefile.data.firstbloodb != true) {
com.newgrounds.API.unlockMedal('First Blood', _root.medalgeticon._x, 300);
_root.medalgeticon.play();
firstblood = com.newgrounds.API.getMedal('First Blood');
_root.savefile.data.firstbloodb = true;
_root.savefile.flush();
}
if (_root.savefile.data.diedonce == true && deader.__get__unlocked() == false && _root.savefile.data.deaderb != true) {
com.newgrounds.API.unlockMedal('Dead', _root.medalgeticon._x, 300);
_root.medalgeticon.play();
deader = com.newgrounds.API.getMedal('Dead');
_root.savefile.data.deaderb = true;
_root.savefile.flush();
}
if (_root.savefile.data.firepoopthrown == true && firepoop.__get__unlocked() == false && _root.savefile.data.firepoopb != true) {
com.newgrounds.API.unlockMedal('Fire Poop', _root.medalgeticon._x, 300);
_root.medalgeticon.play();
firepoop = com.newgrounds.API.getMedal('Fire Poop');
_root.savefile.data.firepoopb = true;
_root.savefile.flush();
}
if (_root.savefile.data.gameovertrue == true && countdown.__get__unlocked() == false && _root.savefile.data.countdownb != true) {
com.newgrounds.API.unlockMedal('Count Down', _root.medalgeticon._x, 300);
_root.medalgeticon.play();
countdown = com.newgrounds.API.getMedal('Count Down');
_root.savefile.data.countdownb = true;
_root.savefile.flush();
}
if (_root.savefile.data.castlecrashed == true && castle.__get__unlocked() == false && _root.savefile.data.castleb != true) {
com.newgrounds.API.unlockMedal('Crashin the Castle', _root.medalgeticon._x, 300);
_root.medalgeticon.play();
castle = com.newgrounds.API.getMedal('Crashin the Castle');
_root.savefile.data.castleb = true;
_root.savefile.flush();
}
if (_root.savefile.data.turtled == true && turtlez.__get__unlocked() == false && _root.savefile.data.turtlezb != true) {
com.newgrounds.API.unlockMedal('Turtlez', _root.medalgeticon._x, 300);
_root.medalgeticon.play();
turtlez = com.newgrounds.API.getMedal('Turtlez');
_root.savefile.data.turtlezb = true;
_root.savefile.flush();
}
if (_root.savefile.data.predatordie == true && whatru.__get__unlocked() == false && _root.savefile.data.whatrub != true) {
com.newgrounds.API.unlockMedal('What are you?!', _root.medalgeticon._x, 300);
_root.medalgeticon.play();
whatru = com.newgrounds.API.getMedal('What are you?!');
_root.savefile.data.whatrub = true;
_root.savefile.flush();
}
if (_root.savefile.data.maxarcher == true && maxrcher.__get__unlocked() == false && _root.savefile.data.maxrcherb != true) {
com.newgrounds.API.unlockMedal('Max Archer', _root.medalgeticon._x, 300);
_root.medalgeticon.play();
maxrcher = com.newgrounds.API.getMedal('Max Archer');
_root.savefile.data.maxrcherb = true;
_root.savefile.flush();
}
if (_root.savefile.data.maxknight == true && maxknight.__get__unlocked() == false && _root.savefile.data.maxknightb != true) {
com.newgrounds.API.unlockMedal('Max Knight', _root.medalgeticon._x, 300);
_root.medalgeticon.play();
maxknight = com.newgrounds.API.getMedal('Max Knight');
_root.savefile.data.maxknightb = true;
_root.savefile.flush();
}
if (_root.savefile.data.rufuskill == true && rufusslay.__get__unlocked() == false && _root.savefile.data.rufusslayb != true) {
com.newgrounds.API.unlockMedal('Rufus Slayer', _root.medalgeticon._x, 300);
_root.medalgeticon.play();
rufusslay = com.newgrounds.API.getMedal('Rufus Slayer');
_root.savefile.data.rufusslayb = true;
_root.savefile.flush();
}
if (_root.savefile.data.mouserkill == true && mouserkill.__get__unlocked() == false && _root.savefile.data.mouserkillb != true) {
com.newgrounds.API.unlockMedal('Mouser Killer', _root.medalgeticon._x, 300);
_root.medalgeticon.play();
mouserkill = com.newgrounds.API.getMedal('Mouser Killer');
_root.savefile.data.mouserkillb = true;
_root.savefile.flush();
}
if (_root.savefile.data.tankkilled == true && antitank.__get__unlocked() == false && _root.savefile.data.antitankb != true) {
com.newgrounds.API.unlockMedal('Anti-Tank', _root.medalgeticon._x, 300);
_root.medalgeticon.play();
antitank = com.newgrounds.API.getMedal('Anti-Tank');
_root.savefile.data.antitankb = true;
_root.savefile.flush();
}
if (_root.savefile.data.racist == true && racister.__get__unlocked() == false && _root.savefile.data.racisterb != true) {
com.newgrounds.API.unlockMedal('Racist', _root.medalgeticon._x, 300);
_root.medalgeticon.play();
racister = com.newgrounds.API.getMedal('Racist');
_root.savefile.data.racisterb = true;
_root.savefile.flush();
}
if (_root.savefile.data.fireballer == true && firestarter.__get__unlocked() == false && _root.savefile.data.firestarterb != true) {
com.newgrounds.API.unlockMedal('Fire Starter', _root.medalgeticon._x, 300);
_root.medalgeticon.play();
firestarter = com.newgrounds.API.getMedal('Fire Starter');
_root.savefile.data.firestarterb = true;
_root.savefile.flush();
}
if (_root.savefile.data.lotsgold == true && goldhoarder.__get__unlocked() == false && _root.savefile.data.goldhoarderb != true) {
com.newgrounds.API.unlockMedal('Gold Hoarder', _root.medalgeticon._x, 300);
_root.medalgeticon.play();
goldhoarder = com.newgrounds.API.getMedal('Gold Hoarder');
_root.savefile.data.goldhoarderb = true;
_root.savefile.flush();
}
if (_root.savefile.data.awesomez == true && potu.__get__unlocked() == false && _root.savefile.data.potub != true) {
com.newgrounds.API.unlockMedal('Prtoectors of the Universe', _root.medalgeticon._x, 300);
_root.medalgeticon.play();
potu = com.newgrounds.API.getMedal('Protectors of the Universe');
_root.savefile.data.potub = true;
_root.savefile.flush();
}
if (_root.savefile.data.wave1 == true && w10.__get__unlocked() == false && _root.savefile.data.w10b != true) {
com.newgrounds.API.unlockMedal('Wave 10', _root.medalgeticon._x, 300);
_root.medalgeticon.play();
w10 = com.newgrounds.API.getMedal('Wave 10');
_root.savefile.data.w10b = true;
_root.savefile.flush();
}
if (_root.savefile.data.wave2 == true && w15.__get__unlocked() == false && _root.savefile.data.w15b != true) {
com.newgrounds.API.unlockMedal('Wave 15', _root.medalgeticon._x, 300);
_root.medalgeticon.play();
w15 = com.newgrounds.API.getMedal('Wave 15');
_root.savefile.data.w15b = true;
_root.savefile.flush();
}
if (_root.savefile.data.wave3 == true && w25.__get__unlocked() == false && _root.savefile.data.w25b != true) {
com.newgrounds.API.unlockMedal('Wave 25', _root.medalgeticon._x, 300);
_root.medalgeticon.play();
w25 = com.newgrounds.API.getMedal('Wave 25');
_root.savefile.data.w25b = true;
_root.savefile.flush();
}
if (_root.savefile.data.kill1 == true && k10.__get__unlocked() == false && _root.savefile.data.k10b != true) {
com.newgrounds.API.unlockMedal('Kill 10', _root.medalgeticon._x, 300);
_root.medalgeticon.play();
k10 = com.newgrounds.API.getMedal('Kill 10');
_root.savefile.data.k10b = true;
_root.savefile.flush();
}
if (_root.savefile.data.kill2 == true && k25.__get__unlocked() == false && _root.savefile.data.k25b != true) {
com.newgrounds.API.unlockMedal('Kill 25', _root.medalgeticon._x, 300);
_root.medalgeticon.play();
k25 = com.newgrounds.API.getMedal('Kill 25');
_root.savefile.data.k25b = true;
_root.savefile.flush();
}
if (_root.savefile.data.kill3 == true && k50.__get__unlocked() == false && _root.savefile.data.k50b != true) {
com.newgrounds.API.unlockMedal('Kill 50', _root.medalgeticon._x, 300);
_root.medalgeticon.play();
k50 = com.newgrounds.API.getMedal('Kill 50');
_root.savefile.data.k50b = true;
_root.savefile.flush();
}
if (_root.savefile.data.allcannon == true && cannonm.__get__unlocked() == false && _root.savefile.data.cannonmb != true) {
com.newgrounds.API.unlockMedal('Cannon Master', _root.medalgeticon._x, 300);
_root.medalgeticon.play();
cannonm = com.newgrounds.API.getMedal('Cannon Master');
_root.savefile.data.cannonmb = true;
_root.savefile.flush();
}
if (_root.savefile.data.unlockall == true && mmm.__get__unlocked() == false && _root.savefile.data.mmmb != true) {
com.newgrounds.API.unlockMedal('Master of the Trade', _root.medalgeticon._x, 300);
_root.medalgeticon.play();
mmm = com.newgrounds.API.getMedal('Master of the Trade');
_root.savefile.data.mmmb = true;
_root.savefile.flush();
}
};
}
frame 511 {
function clearYesNo() {
_root.shopmc.medno._visible = false;
_root.shopmc.medyes._visible = false;
_root.shopmc.cball1yes._visible = false;
_root.shopmc.cball1no._visible = false;
_root.shopmc.cball2yes._visible = false;
_root.shopmc.cball2no._visible = false;
_root.shopmc.cball3yes._visible = false;
_root.shopmc.cball3no._visible = false;
_root.shopmc.cball4yes._visible = false;
_root.shopmc.cball4no._visible = false;
_root.shopmc.armoryes._visible = false;
_root.shopmc.armorno._visible = false;
_root.shopmc.jalyes._visible = false;
_root.shopmc.jalno._visible = false;
_root.shopmc.laxyes._visible = false;
_root.shopmc.laxno._visible = false;
_root.shopmc.fireyes._visible = false;
_root.shopmc.fireno._visible = false;
_root.shopmc.gymyes._visible = false;
_root.shopmc.gymno._visible = false;
_root.shopmc.claw1yes._visible = false;
_root.shopmc.claw1no._visible = false;
_root.shopmc.claw2yes._visible = false;
_root.shopmc.claw2no._visible = false;
_root.shopmc.claw3yes._visible = false;
_root.shopmc.claw3no._visible = false;
_root.shopmc.claw4yes._visible = false;
_root.shopmc.claw4no._visible = false;
_root.shopmc.cannonyes._visible = false;
_root.shopmc.cannonno._visible = false;
_root.shopmc.knightyes._visible = false;
_root.shopmc.knightno._visible = false;
_root.shopmc.archeryes._visible = false;
_root.shopmc.archerno._visible = false;
_root.shopmc.mechyes._visible = false;
_root.shopmc.mechno._visible = false;
_root.shopmc.wallyes._visible = false;
_root.shopmc.wallno._visible = false;
}
function checkcannons() {
if (_root.savefile.data.cannon1buy == true && _root.savefile.data.cannon2buy == true && _root.savefile.data.cannon3buy == true && _root.savefile.data.cannon4buy == true) {
_root.savefile.data.allcannon = true;
_root.savefile.flush();
}
}
var rdrscore = 1337;
}
frame 511 {
checkheard = function () {
if (_root.savefile.data.heardall != true) {
if (_root.savefile.data.heardoh == true && _root.savefile.data.ohdamn == true && _root.savefile.data.grah == true && _root.savefile.data.gwuah == true && _root.savefile.data.gimmehelp == true && _root.savefile.data.gewdjobm == true && _root.savefile.data.congratssurvive == true && _root.savefile.data.somemore == true && _root.savefile.data.saveass == true && _root.savefile.data.sandwich == true && _root.savefile.data.grah == true && _root.savefile.data.whydidntusaveme == true && _root.savefile.data.doneyaa == true && _root.savefile.data.aawwoohh == true && _root.savefile.data.fierydiarea == true && _root.savefile.data.cookin == true && _root.savefile.data.shitfire == true && _root.savefile.data.nasty == true) {
_root.savefile.data.heardall = true;
_root.savefile.flush();
}
}
};
}
frame 511 {
_root.mainmusic.setVolume(100);
}
movieClip 482 {
}
movieClip 484 {
}
movieClip 490 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
}
movieClip 491 {
}
instance sky of movieClip 491 {
onClipEvent (enterFrame) {
this.sky.gotoAndStop(_root.bg1._currentframe);
if (_root.bg1.stage2 == true) {
_visible = false;
} else {
_visible = true;
}
}
}
movieClip 494 {
}
movieClip 495 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
}
instance midground of movieClip 495 {
onClipEvent (enterFrame) {
gotoAndStop(_root.bg1._currentframe);
if (_root.bg1.stage2 == true) {
_visible = false;
} else {
_visible = true;
}
}
}
movieClip 498 {
}
movieClip 499 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
}
instance bg2 of movieClip 499 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
gotoAndStop(_root.bg1._currentframe);
if (_root.bg1.stage2 == false) {
if (this.hitTest(_root.rightscreen) || this.hitTest(_root.leftscreen) || this.hitTest(_root.centerscreen)) {
_visible = true;
} else {
_visible = false;
}
} else {
_visible = false;
}
}
}
movieClip 502 {
frame 1 {
stop();
}
frame 2 {
_root.savefile.data.firstblood = true;
_root.savefile.flush();
}
}
movieClip 505 {
frame 1 {
stop();
}
}
movieClip 508 {
}
movieClip 509 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
}
instance bg7 of movieClip 509 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
gotoAndStop(_root.bg1._currentframe);
if (_root.bg1.stage2 == false) {
if (this.hitTest(_root.rightscreen) || this.hitTest(_root.leftscreen) || this.hitTest(_root.centerscreen)) {
_visible = true;
} else {
_visible = false;
}
} else {
_visible = false;
}
}
}
movieClip 512 {
}
movieClip 513 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
}
instance bg5 of movieClip 513 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
gotoAndStop(_root.bg1._currentframe);
if (_root.bg1.stage2 == false) {
if (this.hitTest(_root.rightscreen) || this.hitTest(_root.leftscreen) || this.hitTest(_root.centerscreen)) {
_visible = true;
} else {
_visible = false;
}
} else {
_visible = false;
}
}
}
movieClip 515 {
}
movieClip 516 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
}
instance bg10 of movieClip 516 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
gotoAndStop(_root.bg1._currentframe);
if (this.hitTest(_root.rightscreen) || this.hitTest(_root.leftscreen) || this.hitTest(_root.centerscreen)) {
_visible = true;
} else {
_visible = false;
}
}
}
movieClip 518 {
}
movieClip 519 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
}
instance bg9 of movieClip 519 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
gotoAndStop(_root.bg1._currentframe);
if (this.hitTest(_root.rightscreen) || this.hitTest(_root.leftscreen) || this.hitTest(_root.centerscreen)) {
_visible = true;
} else {
_visible = false;
}
}
}
movieClip 521 {
}
movieClip 522 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
}
instance bg8 of movieClip 522 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.bg1.stage2 == false) {
if (this.hitTest(_root.rightscreen) || this.hitTest(_root.leftscreen) || this.hitTest(_root.centerscreen)) {
_visible = true;
} else {
_visible = false;
}
} else {
_visible = false;
}
}
}
movieClip 524 {
}
movieClip 525 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
}
instance bg6 of movieClip 525 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
gotoAndStop(_root.bg1._currentframe);
if (_root.bg1.stage2 == false) {
if (this.hitTest(_root.rightscreen) || this.hitTest(_root.leftscreen) || this.hitTest(_root.centerscreen)) {
_visible = true;
} else {
_visible = false;
}
} else {
_visible = false;
}
}
}
movieClip 527 {
}
movieClip 528 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
}
instance bg4 of movieClip 528 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
gotoAndStop(_root.bg1._currentframe);
if (_root.bg1.stage2 == false) {
if (this.hitTest(_root.rightscreen) || this.hitTest(_root.leftscreen) || this.hitTest(_root.centerscreen)) {
_visible = true;
} else {
_visible = false;
}
} else {
_visible = false;
}
}
}
movieClip 530 {
}
movieClip 531 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
}
instance bg3 of movieClip 531 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
gotoAndStop(_root.bg1._currentframe);
if (_root.bg1.stage2 == false) {
if (this.hitTest(_root.rightscreen) || this.hitTest(_root.leftscreen) || this.hitTest(_root.centerscreen)) {
_visible = true;
} else {
_visible = false;
}
} else {}
}
}
movieClip 534 {
frame 1 {
stop();
}
}
movieClip 536 {
}
movieClip 537 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
}
instance bg1 of movieClip 537 {
onClipEvent (load) {
_root.secondbg._visible = false;
_root.secondmg._visible = false;
_root.secondfg._visible = false;
_root.backg3._visible = false;
_root.midg3._visible = false;
_root.fg3._visible = false;
var stage2 = false;
var stage3 = false;
_visible = false;
}
onClipEvent (enterFrame) {
gotoAndStop(_root.lol);
if (stage3 == true) {
_visible = false;
_root.backg3._visible = true;
_root.midg3._visible = true;
_root.fg3._visible = true;
if (_root.sky.sky._currentframe == 1) {
_root.backg3.gotoAndStop(4);
_root.midg3.gotoAndStop(4);
_root.fg3.gotoAndStop(4);
} else {
if (_root.sky.sky._currentframe == 2) {
_root.backg3.gotoAndStop(1);
_root.midg3.gotoAndStop(1);
_root.fg3.gotoAndStop(1);
} else {
if (_root.sky.sky._currentframe == 4) {
_root.backg3.gotoAndStop(2);
_root.midg3.gotoAndStop(2);
_root.fg3.gotoAndStop(2);
} else {
_root.backg3.gotoAndStop(3);
_root.midg3.gotoAndStop(3);
_root.fg3.gotoAndStop(3);
}
}
}
} else {
if (stage2 == true) {
_visible = false;
_root.secondbg._visible = true;
_root.secondmg._visible = true;
_root.secondfg._visible = true;
if (_root.sky.sky._currentframe == 1) {
_root.secondbg.gotoAndStop(4);
_root.secondmg.gotoAndStop(4);
_root.secondfg.gotoAndStop(4);
} else {
if (_root.sky.sky._currentframe == 2) {
_root.secondbg.gotoAndStop(1);
_root.secondmg.gotoAndStop(1);
_root.secondfg.gotoAndStop(1);
} else {
if (_root.sky.sky._currentframe == 4) {
_root.secondbg.gotoAndStop(2);
_root.secondmg.gotoAndStop(2);
_root.secondfg.gotoAndStop(2);
} else {
_root.secondbg.gotoAndStop(3);
_root.secondmg.gotoAndStop(3);
_root.secondfg.gotoAndStop(3);
}
}
}
} else {
_root.secondbg._visible = false;
_root.secondmg._visible = false;
_root.secondfg._visible = false;
_root.backg3._visible = false;
_root.midg3._visible = false;
_root.fg3._visible = false;
if (this.hitTest(_root.rightscreen) || this.hitTest(_root.leftscreen) || this.hitTest(_root.centerscreen)) {
_visible = true;
} else {
_visible = false;
}
}
}
}
}
movieClip 542 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
}
instance secondbg of movieClip 542 {
onClipEvent (load) {
_visible = false;
}
}
movieClip 551 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
}
movieClip 554 {
}
movieClip 555 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
}
movieClip 564 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
}
instance backg3 of movieClip 564 {
onClipEvent (load) {
_visible = false;
}
}
movieClip 573 {
}
movieClip 576 {
}
movieClip 577 {
}
movieClip 581 {
frame 3 {
stop();
}
}
movieClip 582 {
}
instance slime of movieClip 582 {
onClipEvent (enterFrame) {
if (_root.pauseGame == false) {
if (_alpha > 0) {
_alpha = _alpha - 0.5;
}
if (_alpha <= 0) {
_x = 9999;
_y = 9999;
}
}
}
}
movieClip 588 {
frame 6 {
stop();
}
}
movieClip 594 {
frame 6 {
stop();
}
}
movieClip 595 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 601 {
}
movieClip 602 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 611 {
}
movieClip 612 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 618 {
}
movieClip 619 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 622 {
instance window of movieClip 602 {
onClipEvent (enterFrame) {
if (_currentframe == 2) {
_root.hasUpgraded = true;
}
}
}
instance window of movieClip 612 {
onClipEvent (enterFrame) {
if (_currentframe == 2) {
_root.hasUpgraded = true;
}
}
}
instance window of movieClip 619 {
onClipEvent (enterFrame) {
if (_currentframe == 2) {
_root.hasUpgraded = true;
}
}
}
}
instance gym of movieClip 622 {
onClipEvent (enterFrame) {
stop();
if (_root.hasGym == true) {
_visible = true;
gotoAndStop(_root.gymlvl);
} else {
_visible = false;
}
}
}
movieClip 627 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
if (_root.savefile.data.wallmax != true) {
_root.savefile.data.wallmax = true;
_root.savefile.flush();
}
stop();
}
}
movieClip 631 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
}
movieClip 635 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
}
movieClip 639 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
}
movieClip 640 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
}
movieClip 641 {
}
instance wall of movieClip 641 {
onClipEvent (load) {
var hp;
}
onClipEvent (enterFrame) {
if (_y != 9999 && _y != 590) {
if (_root.pauseGame == false) {
stop();
if (hp <= 0) {
_root.haswall = false;
hp = 0;
_y = 9999;
}
if (hp / _root.wallLVL == 100) {
this.wall.gotoAndStop(1);
} else {
if (hp / _root.wallLVL == 66) {
this.wall.gotoAndStop(2);
} else {
if (hp / _root.wallLVL > 33) {
this.wall.gotoAndStop(3);
} else {
if (hp / _root.wallLVL > 0) {
this.wall.gotoAndStop(4);
}
}
}
}
this.wall.wall.gotoAndStop(_root.wallLVL);
}
}
}
}
movieClip 646 {
}
movieClip 651 {
}
movieClip 656 {
}
movieClip 661 {
}
movieClip 666 {
}
movieClip 671 {
}
movieClip 672 {
frame 1 {
stop();
}
instance of movieClip 646 {
onClipEvent (enterFrame) {
if (_root.pauseMenu._visible == true) {
stop();
} else {
play();
}
}
}
frame 2 {
stop();
}
instance of movieClip 651 {
onClipEvent (enterFrame) {
if (_root.pauseMenu._visible == true) {
stop();
} else {
play();
}
}
}
frame 3 {
stop();
}
instance of movieClip 656 {
onClipEvent (enterFrame) {
if (_root.pauseMenu._visible == true) {
stop();
} else {
play();
}
}
}
frame 4 {
stop();
}
instance of movieClip 661 {
onClipEvent (enterFrame) {
if (_root.pauseMenu._visible == true) {
stop();
} else {
play();
}
}
}
frame 5 {
stop();
}
instance of movieClip 666 {
onClipEvent (enterFrame) {
if (_root.pauseMenu._visible == true) {
stop();
} else {
play();
}
}
}
frame 6 {
stop();
}
instance of movieClip 671 {
onClipEvent (enterFrame) {
if (_root.pauseMenu._visible == true) {
stop();
} else {
play();
}
}
}
}
instance coin of movieClip 672 {
onClipEvent (enterFrame) {
if (_root.dropIn.getDepth() < this.getDepth()) {
this.swapDepths(_root.dropIn);
}
if (_name != 'coin') {
if (this.coin._currentframe == 7) {
_alpha = _alpha - 5;
}
if (_alpha <= 5) {
this.removeMovieClip();
removeMovieClip(this);
this.unloadMovie();
loadMovie('', this);
}
}
if (_root.dragon.hitTest(this)) {
if (_currentframe == 1) {
_root.gold += 10;
} else {
if (_currentframe == 2) {
_root.gold += 50;
} else {
if (_currentframe == 3) {
_root.gold += 100;
} else {
if (_currentframe == 4) {
_root.gold += 200;
} else {
if (_currentframe == 5) {
_root.gold += 400;
} else {
if (_currentframe == 6) {
_root.gold += 600;
}
}
}
}
}
}
this.removeMovieClip();
removeMovieClip(this);
this.unloadMovie();
loadMovie('', this);
}
}
}
movieClip 674 {
}
instance mousearm1 of movieClip 674 {
onClipEvent (load) {
var rot = Math.random() * 20 - 10;
_alpha = 100;
_x = _root.boss1._x;
_y = _root.boss1._y;
var ground = _root.boss1._y;
var delay = 150;
var xmove = Math.random() * 60 - 30;
if (Math.abs(xmove) < 5) {
xmove = (Math.abs(xmove) / xmove) * 5;
}
var ymove = Math.random() * -25 - 5;
}
onClipEvent (enterFrame) {
if (Math.abs(ground - _y) > 10) {
_rotation = _rotation + rot;
}
if (_root.pauseGame == false) {
if (_name != 'mousearm1') {
if (Math.abs(ymove) < 1 && Math.abs(ground - _y) < 10) {
_rotation = _rotation + Math.abs(xmove) / xmove;
}
_y = _y + ymove;
_x = _x + xmove;
xmove *= 0.9;
if (_y >= ground) {
_y = ground;
if (Math.abs(ymove) > 2) {
ymove *= -0.4;
} else {
ymove = 0;
}
}
++ymove;
--delay;
if (delay <= 0 && _alpha > 0) {
_alpha = _alpha - 1;
_alpha = _alpha - 1;
if (_alpha <= 0) {
this.removeMovieClip();
removeMovieClip(this);
loadMovie('', this);
}
}
}
}
}
}
instance mousearm2 of movieClip 674 {
onClipEvent (load) {
var rot = Math.random() * 20 - 10;
_alpha = 100;
_x = _root.boss1._x;
_y = _root.boss1._y;
var ground = _root.boss1._y;
var delay = 150;
var xmove = Math.random() * 60 - 30;
if (Math.abs(xmove) < 5) {
xmove = (Math.abs(xmove) / xmove) * 5;
}
var ymove = Math.random() * -25 - 5;
}
onClipEvent (enterFrame) {
if (Math.abs(ground - _y) > 10) {
_rotation = _rotation + rot;
}
if (_root.pauseGame == false) {
if (_name != 'mousearm2') {
if (Math.abs(ymove) < 1 && Math.abs(ground - _y) < 10) {
_rotation = _rotation + Math.abs(xmove) / xmove;
}
_y = _y + ymove;
_x = _x + xmove;
xmove *= 0.9;
if (_y >= ground) {
_y = ground;
if (Math.abs(ymove) > 2) {
ymove *= -0.4;
} else {
ymove = 0;
}
}
++ymove;
--delay;
if (delay <= 0 && _alpha > 0) {
_alpha = _alpha - 1;
_alpha = _alpha - 1;
if (_alpha <= 0) {
this.removeMovieClip();
removeMovieClip(this);
loadMovie('', this);
}
}
}
}
}
}
movieClip 676 {
}
instance mousefoot1 of movieClip 676 {
onClipEvent (load) {
var rot = Math.random() * 20 - 10;
_alpha = 100;
_x = _root.boss1._x;
_y = _root.boss1._y;
var ground = _root.boss1._y;
var delay = 150;
var xmove = Math.random() * 60 - 30;
if (Math.abs(xmove) < 5) {
xmove = (Math.abs(xmove) / xmove) * 5;
}
var ymove = Math.random() * -25 - 5;
}
onClipEvent (enterFrame) {
if (Math.abs(ground - _y) > 10) {
_rotation = _rotation + rot;
}
if (_root.pauseGame == false) {
if (_name != 'mousefoot1') {
if (Math.abs(ymove) < 1 && Math.abs(ground - _y) < 10) {
_rotation = _rotation + Math.abs(xmove) / xmove;
}
_y = _y + ymove;
_x = _x + xmove;
xmove *= 0.9;
if (_y >= ground) {
_y = ground;
if (Math.abs(ymove) > 2) {
ymove *= -0.4;
} else {
ymove = 0;
}
}
++ymove;
--delay;
if (delay <= 0 && _alpha > 0) {
_alpha = _alpha - 1;
_alpha = _alpha - 1;
if (_alpha <= 0) {
this.removeMovieClip();
removeMovieClip(this);
loadMovie('', this);
}
}
}
}
}
}
instance mousefoot2 of movieClip 676 {
onClipEvent (load) {
var rot = Math.random() * 20 - 10;
_alpha = 100;
_x = _root.boss1._x;
_y = _root.boss1._y;
var ground = _root.boss1._y;
var delay = 150;
var xmove = Math.random() * 60 - 30;
if (Math.abs(xmove) < 5) {
xmove = (Math.abs(xmove) / xmove) * 5;
}
var ymove = Math.random() * -25 - 5;
}
onClipEvent (enterFrame) {
if (Math.abs(ground - _y) > 10) {
_rotation = _rotation + rot;
}
if (_root.pauseGame == false) {
if (_name != 'mousefoot2') {
if (Math.abs(ymove) < 1 && Math.abs(ground - _y) < 10) {
_rotation = _rotation + Math.abs(xmove) / xmove;
}
_y = _y + ymove;
_x = _x + xmove;
xmove *= 0.9;
if (_y >= ground) {
_y = ground;
if (Math.abs(ymove) > 2) {
ymove *= -0.4;
} else {
ymove = 0;
}
}
++ymove;
--delay;
if (delay <= 0 && _alpha > 0) {
_alpha = _alpha - 1;
_alpha = _alpha - 1;
if (_alpha <= 0) {
this.removeMovieClip();
removeMovieClip(this);
loadMovie('', this);
}
}
}
}
}
}
movieClip 678 {
}
instance mousebod of movieClip 678 {
onClipEvent (load) {
var rot = Math.random() * 20 - 10;
_alpha = 100;
_x = _root.boss1._x;
_y = _root.boss1._y;
var ground = _root.boss1._y;
var delay = 150;
var xmove = Math.random() * 60 - 30;
if (Math.abs(xmove) < 5) {
xmove = (Math.abs(xmove) / xmove) * 5;
}
var ymove = Math.random() * -25 - 5;
}
onClipEvent (enterFrame) {
if (Math.abs(ground - _y) > 10) {
_rotation = _rotation + rot;
}
if (_root.pauseGame == false) {
if (_name != 'mousebod') {
if (Math.abs(ymove) < 1 && Math.abs(ground - _y) < 10) {
_rotation = _rotation + Math.abs(xmove) / xmove;
}
_y = _y + ymove;
_x = _x + xmove;
xmove *= 0.9;
if (_y >= ground) {
_y = ground;
if (Math.abs(ymove) > 2) {
ymove *= -0.4;
} else {
ymove = 0;
}
}
++ymove;
--delay;
if (delay <= 0 && _alpha > 0) {
_alpha = _alpha - 1;
_alpha = _alpha - 1;
if (_alpha <= 0) {
this.removeMovieClip();
removeMovieClip(this);
loadMovie('', this);
}
}
}
}
}
}
movieClip 680 {
}
instance mousehead of movieClip 680 {
onClipEvent (load) {
var rot = Math.random() * 20 - 10;
_alpha = 100;
_x = _root.boss1._x;
_y = _root.boss1._y;
var ground = _root.boss1._y;
var delay = 150;
var xmove = Math.random() * 60 - 30;
if (Math.abs(xmove) < 5) {
xmove = (Math.abs(xmove) / xmove) * 5;
}
var ymove = Math.random() * -25 - 5;
}
onClipEvent (enterFrame) {
if (Math.abs(ground - _y) > 10) {
_rotation = _rotation + rot;
}
if (_root.pauseGame == false) {
if (_name != 'mousebod') {
if (Math.abs(ymove) < 1 && Math.abs(ground - _y) < 10) {
_rotation = _rotation + Math.abs(xmove) / xmove;
}
_y = _y + ymove;
_x = _x + xmove;
xmove *= 0.9;
if (_y >= ground) {
_y = ground;
if (Math.abs(ymove) > 2) {
ymove *= -0.4;
} else {
ymove = 0;
}
}
++ymove;
--delay;
if (delay <= 0 && _alpha > 0) {
_alpha = _alpha - 1;
_alpha = _alpha - 1;
if (_alpha <= 0) {
this.removeMovieClip();
removeMovieClip(this);
loadMovie('', this);
}
}
}
}
}
}
movieClip 682 {
}
instance mouseear of movieClip 682 {
onClipEvent (load) {
var rot = Math.random() * 20 - 10;
_alpha = 100;
_x = _root.boss1._x;
_y = _root.boss1._y;
var ground = _root.boss1._y;
var delay = 150;
var xmove = Math.random() * 60 - 30;
if (Math.abs(xmove) < 5) {
xmove = (Math.abs(xmove) / xmove) * 5;
}
var ymove = Math.random() * -25 - 5;
}
onClipEvent (enterFrame) {
if (Math.abs(ground - _y) > 10) {
_rotation = _rotation + rot;
}
if (_root.pauseGame == false) {
if (_name != 'mouseear') {
if (Math.abs(ymove) < 1 && Math.abs(ground - _y) < 10) {
_rotation = _rotation + Math.abs(xmove) / xmove;
}
_y = _y + ymove;
_x = _x + xmove;
xmove *= 0.9;
if (_y >= ground) {
_y = ground;
if (Math.abs(ymove) > 2) {
ymove *= -0.4;
} else {
ymove = 0;
}
}
++ymove;
--delay;
if (delay <= 0 && _alpha > 0) {
_alpha = _alpha - 1;
_alpha = _alpha - 1;
if (_alpha <= 0) {
this.removeMovieClip();
removeMovieClip(this);
loadMovie('', this);
}
}
}
}
}
}
movieClip 684 {
}
instance leftbound of movieClip 684 {
onClipEvent (enterFrame) {
if (_root.pauseGame == false) {
if (!Key.isDown(65)) {
doubleTap = 0;
}
if (_root.inStore == false) {
if (!this.hitTest(_root.leftedge) && !Key.isDown(68) && _root.dropIn._currentframe == 1) {
if (Key.isDown(65) && doubleTap >= 30) {
_root._x += 10;
_x = _x - 10;
_root.sky._x -= 10;
_root.goldmc._x -= 10;
_root.eqsign._x -= 10;
_root.hpbar1._x -= 10;
_root.knight1hp._x -= 10;
_root.archer1hp._x -= 10;
_root.cannon1hp._x -= 10;
_root.goldicon._x -= 10;
_root.midground._x -= 2.7;
_root.secondbg._x -= 10;
_root.secondmg._x -= 2.7;
_root.backg3._x -= 10;
_root.midg3._x -= 2.7;
_root.mutebutton._x -= 10;
_root.qualitybutton._x -= 10;
_root.hpbar._x -= 10;
_root.rightbound._x -= 10;
_root.rightscreen._x -= 10;
_root.leftscreen._x -= 10;
_root.centerscreen._x -= 10;
_root.mechhp._x -= 10;
_root.wallhp._x -= 10;
}
if (Key.isDown(65) && doubleTap < 30 && _root.dropIn._currentframe == 1) {
_root._x += 5;
_x = _x - 5;
_root.sky._x -= 5;
_root.goldmc._x -= 5;
_root.eqsign._x -= 5;
_root.hpbar1._x -= 5;
_root.knight1hp._x -= 5;
_root.archer1hp._x -= 5;
_root.cannon1hp._x -= 5;
_root.goldicon._x -= 5;
_root.midground._x -= 1.35;
_root.mutebutton._x -= 5;
_root.qualitybutton._x -= 5;
_root.secondbg._x -= 5;
_root.secondmg._x -= 1.35;
_root.backg3._x -= 5;
_root.midg3._x -= 1.35;
_root.hpbar._x -= 5;
_root.rightbound._x -= 5;
_root.rightscreen._x -= 5;
_root.leftscreen._x -= 5;
_root.centerscreen._x -= 5;
_root.mechhp._x -= 5;
_root.wallhp._x -= 5;
++doubleTap;
}
}
}
}
}
onClipEvent (load) {
_visible = false;
var fast = false;
var fuck = false;
var doubleTap = 5;
}
}
instance rightbound of movieClip 684 {
onClipEvent (enterFrame) {
if (_root.dropIn._currentframe > 1 && !this.hitTest(_root.rightedge)) {
_root._x -= 10;
_x = _x + 10;
_root.sky._x += 10;
_root.goldmc._x += 10;
_root.eqsign._x += 10;
_root.hpbar1._x += 10;
_root.knight1hp._x += 10;
_root.archer1hp._x += 10;
_root.cannon1hp._x += 10;
_root.goldicon._x += 10;
_root.midground._x += 2.7;
_root.hpbar._x += 10;
_root.leftbound._x += 10;
_root.rightscreen._x += 10;
_root.leftscreen._x += 10;
_root.centerscreen._x += 10;
_root.mechhp._x += 10;
_root.wallhp._x += 10;
_root.mutebutton._x += 10;
_root.qualitybutton._x += 10;
_root.secondbg._x += 10;
_root.secondmg._x += 2.7;
_root.backg3._x += 10;
_root.midg3._x += 2.7;
}
if (_root.pauseGame == false) {
if (!Key.isDown(68)) {
rightCheckButton = 0;
}
if (_root.inStore == false) {
if (!this.hitTest(_root.rightedge) && !Key.isDown(65)) {
if (Key.isDown(68) && rightCheckButton >= 30 && _root.dropIn._currentframe == 1) {
_root._x -= 10;
_x = _x + 10;
_root.sky._x += 10;
_root.goldmc._x += 10;
_root.eqsign._x += 10;
_root.hpbar1._x += 10;
_root.knight1hp._x += 10;
_root.archer1hp._x += 10;
_root.cannon1hp._x += 10;
_root.goldicon._x += 10;
_root.midground._x += 2.7;
_root.mutebutton._x += 10;
_root.qualitybutton._x += 10;
_root.secondbg._x += 10;
_root.secondmg._x += 2.7;
_root.backg3._x += 10;
_root.midg3._x += 2.7;
_root.hpbar._x += 10;
_root.leftbound._x += 10;
_root.rightscreen._x += 10;
_root.leftscreen._x += 10;
_root.centerscreen._x += 10;
_root.mechhp._x += 10;
_root.wallhp._x += 10;
}
if (Key.isDown(68) && rightCheckButton < 30 && _root.dropIn._currentframe == 1) {
_root._x -= 5;
_x = _x + 5;
_root.sky._x += 5;
_root.goldmc._x += 5;
_root.eqsign._x += 5;
_root.hpbar1._x += 5;
_root.knight1hp._x += 5;
_root.archer1hp._x += 5;
_root.cannon1hp._x += 5;
_root.goldicon._x += 5;
_root.midground._x += 1.35;
_root.mutebutton._x += 5;
_root.qualitybutton._x += 5;
_root.secondbg._x += 5;
_root.secondmg._x += 1.35;
_root.backg3._x += 5;
_root.midg3._x += 1.35;
_root.hpbar._x += 5;
_root.leftbound._x += 5;
_root.rightscreen._x += 5;
_root.leftscreen._x += 5;
_root.centerscreen._x += 5;
_root.mechhp._x += 5;
_root.wallhp._x += 5;
++rightCheckButton;
}
}
}
}
}
onClipEvent (load) {
_visible = false;
var fast = false;
var fuck = false;
var rightCheckButton = 5;
}
}
instance leftscreen of movieClip 684 {
onClipEvent (load) {
_visible = false;
}
}
instance rightscreen of movieClip 684 {
onClipEvent (load) {
_visible = false;
}
}
movieClip 686 {
}
instance centerscreen of movieClip 686 {
onClipEvent (load) {
_visible = false;
}
}
movieClip 702 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
frame 7 {
stop();
}
frame 8 {
stop();
}
frame 9 {
stop();
}
frame 10 {
stop();
}
frame 11 {
stop();
}
frame 12 {
stop();
}
frame 13 {
stop();
}
frame 14 {
stop();
}
frame 15 {
if (_root.savefile.data.lotsgold != true) {
_root.savefile.data.lotsgold = true;
_root.savefile.flush();
}
stop();
}
}
instance money of movieClip 702 {
onClipEvent (enterFrame) {
if (_root.gold > 15000) {
gotoAndStop(15);
} else {
gotoAndStop(Math.round(_root.gold / 1000));
}
}
}
movieClip 704 {
}
instance rightedge of movieClip 704 {
onClipEvent (load) {
_visible = false;
}
}
movieClip 710 {
}
movieClip 712 {
}
movieClip 713 {
}
instance of movieClip 713 {
onClipEvent (enterFrame) {
if (_root.pauseMenu._visible == true) {
stop();
} else {
play();
}
}
}
movieClip 715 {
}
movieClip 722 {
}
movieClip 729 {
}
movieClip 731 {
frame 1 {
stop();
}
instance of movieClip 722 {
onClipEvent (enterFrame) {
stop();
if (_root.clickdmg == 1 || _root.clickdmg == 2 || _root.clickdmg == 3) {
gotoAndStop(_root.clickdmg);
}
if (_root.clickdmg == 5) {
gotoAndStop(4);
}
if (_root.clickdmg == 7) {
gotoAndStop(5);
}
}
}
frame 2 {
stop();
}
instance of movieClip 729 {
onClipEvent (enterFrame) {
stop();
if (_root.clickdmg == 1 || _root.clickdmg == 2 || _root.clickdmg == 3) {
gotoAndStop(_root.clickdmg);
}
if (_root.clickdmg == 5) {
gotoAndStop(4);
}
if (_root.clickdmg == 7) {
gotoAndStop(5);
}
}
}
}
movieClip 733 {
}
movieClip 734 {
}
instance dragon of movieClip 734 {
onClipEvent (load) {
var mcHold;
var randommc;
randommc = randommc.duplicateMovieClip('random', _root.getNextHighestDepth());
var top = false;
var isHiding = true;
}
onClipEvent (enterFrame) {
trace('POOOOOOOOOOOOOOP: ' + mcHold);
if (_root.pauseMenu._visible == true) {
stop();
} else {
play();
}
if (this.hitTest(_root.dropIn)) {
isHiding = false;
}
if (this.hitTest(_root.pauseMenu)) {
isHiding = false;
}
if (this.hitTest(_root.shopmc) && _root.shopmc._visible == true) {
isHiding = false;
}
if (isHiding == true) {
Mouse.hide();
} else {
Mouse.show();
}
if (_root.pauseMenu._visible == false) {
_root.grav._x = _x;
_root.grav._y = _y;
_x = _root._xmouse;
_y = _root._ymouse;
}
if (_root.gut.hitTest(_x, _y, true) && top == false) {
this.swapDepths(_root.grav);
top = true;
} else {
if (!this.hitTest(_root.gut) && top == true) {
this.swapDepths(_root.grav);
top = false;
}
}
}
}
movieClip 736 {
frame 1 {
stop();
}
}
movieClip 754 {
}
movieClip 757 {
}
movieClip 765 {
}
movieClip 767 {
frame 1 {
stop();
}
instance poopspurt of movieClip 754 {
onClipEvent (enterFrame) {
if (_root.pauseMenu._visible == true) {
stop();
} else {
play();
}
}
}
frame 2 {
stop();
}
frame 3 {
stop();
}
instance poopspurt2 of movieClip 765 {
onClipEvent (enterFrame) {
if (_root.pauseMenu._visible == true) {
stop();
} else {
play();
}
}
}
frame 4 {
stop();
}
}
instance poop1 of movieClip 767 {
onClipEvent (load) {
var held = false;
var flung = false;
var moveSpeed = 2;
var xgrav;
var ygrav;
var ground = _y;
var hits = 1;
var depth = 0;
var pooper = 900;
var dragonDepth;
}
onClipEvent (enterFrame) {
if (_root.pauseGame == false) {
if (pooper == 100 && _root.hasPoop == true) {
_root.head.pooing = true;
_root.head.poop.gotoAndStop(Math.ceil(Math.random() * 4));
}
if (_currentframe == 2 && _root.hasPoop == true) {
_currentframe == 4;
}
if (_visible == false) {
--pooper;
}
if (_visible == true) {
if (Key.isDown(87) && (_root.dragon.mcHold == null || _root.dragon.mcHold == undefined)) {
if (flung == false) {
_root.dragon.mcHold = this;
held = true;
if (_root.savefile.data.poopthrown != true) {
_root.savefile.data.poopthrown = true;
_root.savefile.flush();
}
if (_root.hasPoop == true && _root.savefile.data.firepoopthrown != true) {
_root.savefile.data.firepoopthrown = true;
_root.savefile.flush();
}
}
}
}
if (pooper <= 0) {
_root.head.pooing = false;
_visible = true;
if (_root.hasLax) {
pooper = 500;
} else {
pooper = 900;
}
_x = 443.4;
_y = 263.9;
if (_root.hasPoop == false) {
gotoAndStop(1);
} else {
gotoAndStop(3);
}
}
if (this.poopspurt._currentframe == 20) {
gotoAndStop(2);
}
if (this.poopspurt2._currentframe == 20) {
gotoAndStop(4);
}
if (held == true) {
_x = _root._xmouse;
_y = _root._ymouse + _height / 2;
} else {
depth = 0;
}
if (flung == true && _y < ground + 30) {
_rotation = _rotation + 10;
_x = _x + xgrav;
_y = _y + ygrav;
++ygrav;
xgrav *= 0.99;
}
if (held == false && flung == true && _y > ground + 30) {
_root.splode._x = _x;
_root.splode._y = 380;
if (_currentframe == 2) {
_root.splode.gotoAndStop(1);
_root.slime._y = 375;
_root.slime._x = _x;
_root.slime._alpha = 100;
} else {
_root.splode.gotoAndStop(2);
_root.firesplatter._alpha = 100;
_root.firesplatter._x = _x;
_root.firesplatter._y = 383;
}
_root.slime.slime.gotoAndPlay(1);
_root.splode.splode.gotoAndPlay(1);
held = false;
_root.shade._y = 9999;
flung = false;
_rotation = 0;
_visible = false;
_root.dragon.mcHold = null;
pooper = _root.poop2.pooper;
if (_root.hasLax) {
_root.poop2.pooper = 500;
} else {
_root.poop2.pooper = 900;
}
}
}
}
onClipEvent (press) {
_root.dragon.dragon.gotoAndStop('hold');
if (flung == false) {
_root.dragon.mcHold = this;
held = true;
}
}
onClipEvent (release) {
_root.dragon.dragon.gotoAndStop('fly');
held = false;
flung = true;
xgrav = (_root.dragon._x - _root.grav._x) * 0.2;
ygrav = (_root.dragon._y - _root.grav._y) * 0.2;
if (_root.savefile.data.poopthrown != true) {
_root.savefile.data.poopthrown = true;
_root.savefile.flush();
}
if (_root.hasPoop == true && _root.savefile.data.firepoopthrown != true) {
_root.savefile.data.firepoopthrown = true;
_root.savefile.flush();
}
}
onClipEvent (releaseOutside) {
_root.dragon.dragon.gotoAndStop('fly');
held = false;
flung = true;
xgrav = (_root.dragon._x - _root.grav._x) * 0.2;
ygrav = (_root.dragon._y - _root.grav._y) * 0.2;
if (_root.savefile.data.poopthrown != true) {
_root.savefile.data.poopthrown = true;
_root.savefile.flush();
}
if (_root.hasPoop == true && _root.savefile.data.firepoopthrown != true) {
_root.savefile.data.firepoopthrown = true;
_root.savefile.flush();
}
}
}
movieClip 769 {
}
instance poop2 of movieClip 767 {
onClipEvent (load) {
var held = false;
var flung = false;
var moveSpeed = 2;
var xgrav;
var ygrav;
var ground = _y;
var hits = 1;
var depth = 0;
var pooper = 900;
}
onClipEvent (enterFrame) {
if (_root.pauseGame == false) {
if (pooper == 100 && _root.hasPoop == true) {
_root.head.pooing = true;
_root.head.poop.gotoAndStop(Math.ceil(Math.random() * 4));
}
if (_currentframe == 2 && _root.hasPoop == true) {
_currentframe == 4;
}
if (_visible == false && _root.poop1.pooper == 900) {
--pooper;
}
if (_visible == true && _root.poop1._visible == false) {
if (Key.isDown(87) && (_root.dragon.mcHold == null || _root.dragon.mcHold == undefined)) {
if (flung == false) {
_root.dragon.mcHold = this;
held = true;
if (_root.savefile.data.poopthrown != true) {
_root.savefile.data.poopthrown = true;
_root.savefile.flush();
}
if (_root.hasPoop == true && _root.savefile.data.firepoopthrown != true) {
_root.savefile.data.firepoopthrown = true;
_root.savefile.flush();
}
}
}
}
if (pooper <= 0) {
_root.head.pooing = false;
_visible = true;
if (_root.hasLax) {
pooper = 500;
} else {
pooper = 900;
}
_x = 473.4;
_y = 263.9;
if (_root.hasPoop == false) {
gotoAndStop(1);
} else {
gotoAndStop(3);
}
}
if (this.poopspurt._currentframe == 20) {
gotoAndStop(2);
}
if (this.poopspurt2._currentframe == 20) {
gotoAndStop(4);
}
if (held == true) {
_x = _root._xmouse;
_y = _root._ymouse + _height / 2;
} else {
depth = 0;
}
if (flung == true && _y < ground + 30) {
_rotation = _rotation + 10;
_x = _x + xgrav;
_y = _y + ygrav;
++ygrav;
xgrav *= 0.99;
}
if (held == false && flung == true && _y > ground + 30) {
_root.splode._x = _x;
_root.splode._y = 383;
if (_currentframe == 2) {
_root.splode.gotoAndStop(1);
_root.slime._y = 375;
_root.slime._x = _x;
_root.slime._alpha = 100;
} else {
_root.splode.gotoAndStop(2);
_root.firesplatter._alpha = 100;
_root.firesplatter._x = _x;
_root.firesplatter._y = 383;
}
_root.slime.slime.gotoAndPlay(1);
_root.splode.splode.gotoAndPlay(1);
held = false;
_root.shade._y = 9999;
flung = false;
_rotation = 0;
_visible = false;
_root.dragon.mcHold = null;
}
}
}
onClipEvent (press) {
_root.dragon.dragon.gotoAndStop('hold');
if (flung == false) {
_root.dragon.mcHold = this;
held = true;
}
}
onClipEvent (release) {
_root.dragon.dragon.gotoAndStop('fly');
held = false;
flung = true;
xgrav = (_root.dragon._x - _root.grav._x) * 0.2;
ygrav = (_root.dragon._y - _root.grav._y) * 0.2;
if (_root.savefile.data.poopthrown != true) {
_root.savefile.data.poopthrown = true;
_root.savefile.flush();
}
if (_root.hasPoop == true && _root.savefile.data.firepoopthrown != true) {
_root.savefile.data.firepoopthrown = true;
_root.savefile.flush();
}
}
onClipEvent (releaseOutside) {
_root.dragon.dragon.gotoAndStop('fly');
held = false;
flung = true;
xgrav = (_root.dragon._x - _root.grav._x) * 0.2;
ygrav = (_root.dragon._y - _root.grav._y) * 0.2;
if (_root.savefile.data.poopthrown != true) {
_root.savefile.data.poopthrown = true;
_root.savefile.flush();
}
if (_root.hasPoop == true && _root.savefile.data.firepoopthrown != true) {
_root.savefile.data.firepoopthrown = true;
_root.savefile.flush();
}
}
}
movieClip 771 {
}
movieClip 773 {
}
movieClip 774 {
frame 1 {
stop();
}
}
movieClip 776 {
}
movieClip 777 {
}
movieClip 779 {
}
movieClip 783 {
}
movieClip 784 {
frame 1 {
stop();
}
}
movieClip 786 {
}
movieClip 787 {
frame 1 {
stop();
}
instance of movieClip 777 {
onClipEvent (enterFrame) {
if (_root.pauseMenu._visible == true) {
stop();
} else {
play();
}
}
}
frame 2 {
stop();
}
frame 3 {
stop();
}
}
instance gut of movieClip 787 {
onClipEvent (enterFrame) {
if (_root.hp > 0) {
if (_root.hasbod == true) {
gotoAndStop(2);
} else {
gotoAndStop(1);
}
}
if (_root.hp <= 0) {
gotoAndStop(3);
} else {
if (_root.head.talking == false) {
if (this.gut._currentframe == 2) {
if (_root.head._currentframe != 2) {
_root.head.gotoAndStop('talk');
_root.head.hurttalk.gotoAndStop(Math.ceil(Math.random() * 5));
}
} else {
if (_root.head.hurttalk.talk._currentframe == 32) {
_root.head.hurttalk.gotoAndStop(Math.ceil(Math.random() * 5));
_root.head.gotoAndStop('idle');
} else {
if (_root.head._currentframe == 4) {
_root.head.gotoAndStop('idle');
}
}
}
}
}
}
}
movieClip 791 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
button 792 {
on (release) {
_root.soundcontrol.gotoAndPlay(42 - _root.soundcontrol._currentframe);
if (_root.soundcontrol.mutedvol == false) {
_root.soundcontrol.mutedvol = true;
} else {
_root.soundcontrol.mutedvol = false;
}
if (_root.dothings.round2 == 0 && _root.bosssound._currentframe == 1) {
_root.bosssound.play();
} else {
_root.bosssound.gotoAndStop(1);
}
trace(_root.volume);
}
}
button 794 {
on (release) {
_root.setVolume(100);
_root.mute._y = _y;
_y = 1000;
}
}
movieClip 796 {
frame 1 {
stop();
}
}
instance qualitybutton of movieClip 796 {
onClipEvent (release) {
if (_root._quality == 'LOW') {
_root._quality = 'HIGH';
} else {
if (_root._quality == 'MEDIUM') {
_root._quality = 'LOW';
} else {
if (_root._quality == 'HIGH') {
_root._quality = 'MEDIUM';
}
}
}
_xscale = 120;
_yscale = 120;
}
onClipEvent (rollOver) {
_xscale = 120;
_yscale = 120;
}
onClipEvent (rollOut) {
_xscale = 100;
_yscale = 100;
}
onClipEvent (press) {
_xscale = 130;
_yscale = 80;
}
onClipEvent (releaseOutside) {
_xscale = 100;
_yscale = 100;
}
}
instance mutebutton of movieClip 791 {
onClipEvent (release) {
_root.soundcontrol.gotoAndPlay(42 - _root.soundcontrol._currentframe);
if (_root.soundcontrol.mutedvol == false) {
_root.soundcontrol.mutedvol = true;
gotoAndStop(2);
} else {
_root.soundcontrol.mutedvol = false;
gotoAndStop(1);
}
if (_root.dothings.round2 == 0 && _root.bosssound._currentframe == 1) {
_root.bosssound.play();
} else {
_root.bosssound.gotoAndStop(1);
}
_xscale = 120;
_yscale = 120;
}
onClipEvent (rollOver) {
_xscale = 120;
_yscale = 120;
}
onClipEvent (rollOut) {
_xscale = 100;
_yscale = 100;
}
onClipEvent (press) {
_xscale = 130;
_yscale = 80;
}
onClipEvent (releaseOutside) {
_xscale = 100;
_yscale = 100;
}
}
movieClip 798 {
}
instance grav of movieClip 798 {
onClipEvent (load) {
_visible = false;
}
}
instance leftedge of movieClip 704 {
onClipEvent (load) {
_visible = false;
}
}
movieClip 800 {
}
instance shade of movieClip 800 {
onClipEvent (enterFrame) {
if (_root.dragon.mcHold == _root.rock) {
_x = _root.rock._x;
if (_root.rock.held == true) {
_root.rock.ground = _y;
if (_root.dragon._y <= 180) {
_xscale = 70;
_yscale = 70;
_y = 340;
_root.rock.depth = 1;
}
if (_root.dragon._y > 180 && _root.dragon._y <= 200) {
_y = 360;
_xscale = 80;
_yscale = 80;
_root.rock.depth = 2;
}
if (_root.dragon._y > 200 && _root.dragon._y <= 220) {
_y = 380;
_xscale = 90;
_yscale = 90;
_root.rock.depth = 3;
}
if (_root.dragon._y > 220) {
_y = 400;
_xscale = 100;
_yscale = 100;
_root.rock.depth = 4;
}
}
}
if (_root.dragon.mcHold == _root.poop) {
_x = _root.poop._x;
if (_root.poop.held == true) {
_root.poop.ground = _y;
if (_root.dragon._y <= 180) {
_xscale = 70;
_yscale = 70;
_y = 340;
_root.poop.depth = 1;
} else {
if (_root.dragon._y > 180 && _root.dragon._y <= 200) {
_y = 360;
_xscale = 80;
_yscale = 80;
_root.poop.depth = 2;
} else {
if (_root.dragon._y > 200 && _root.dragon._y <= 220) {
_y = 380;
_xscale = 90;
_yscale = 90;
_root.poop.depth = 3;
} else {
if (_root.dragon._y > 220 && _root.dragon._y <= 240) {
_y = 400;
_xscale = 100;
_yscale = 100;
_root.poop.depth = 4;
}
}
}
}
}
}
}
}
movieClip 803 {
}
movieClip 806 {
}
movieClip 809 {
}
movieClip 812 {
}
movieClip 815 {
}
movieClip 818 {
}
movieClip 821 {
}
movieClip 824 {
}
movieClip 827 {
}
movieClip 830 {
}
movieClip 833 {
}
movieClip 834 {
}
movieClip 841 {
}
movieClip 842 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 843 {
instance hp of movieClip 834 {
onClipEvent (enterFrame) {
stop();
if (_root.hp <= 0) {
_root.hp = 0;
}
if (_root.hasbod == true) {
gotoAndStop(Math.round(101 - _root.hp / 2));
} else {
gotoAndStop(Math.round(101 - _root.hp));
}
}
}
}
instance hpbar of movieClip 843 {
onClipEvent (enterFrame) {
trace('HEALTH = ' + _root.hp);
}
}
movieClip 851 {
}
movieClip 853 {
}
movieClip 854 {
}
movieClip 856 {
}
movieClip 861 {
frame 1 {
if (_root.pauseMenu._visible == true) {
stop();
} else {
play();
}
}
frame 2 {
if (_root.pauseMenu._visible == true) {
stop();
} else {
play();
}
}
frame 3 {
if (_root.pauseMenu._visible == true) {
stop();
} else {
play();
}
}
frame 4 {
if (_root.pauseMenu._visible == true) {
stop();
} else {
play();
}
}
}
movieClip 862 {
frame 29 {
_root.savefile.data.heardoh = true;
_root.savefile.flush();
_root.checkheard();
}
}
movieClip 863 {
frame 28 {
_root.savefile.data.ohdamn = true;
_root.savefile.flush();
_root.checkheard();
}
}
movieClip 864 {
frame 27 {
_root.savefile.data.grah = true;
_root.savefile.flush();
_root.checkheard();
}
}
movieClip 865 {
frame 25 {
_root.savefile.data.gwuah = true;
_root.savefile.flush();
_root.checkheard();
}
}
movieClip 866 {
frame 26 {
_root.savefile.data.gimmehelp = true;
_root.savefile.flush();
_root.checkheard();
}
}
movieClip 867 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
}
movieClip 870 {
}
movieClip 876 {
}
movieClip 881 {
frame 85 {
_root.savefile.data.gewdjobm = true;
_root.savefile.flush();
_root.checkheard();
}
frame 92 {
if (_root.dropIn._currentframe == 1) {
_root.dropIn.play();
_root.head.talking = false;
}
stop();
}
}
movieClip 886 {
frame 77 {
_root.savefile.data.congratssurvive = true;
_root.savefile.flush();
_root.checkheard();
}
frame 91 {
if (_root.dropIn._currentframe == 1) {
_root.dropIn.play();
_root.head.talking = false;
}
stop();
}
}
movieClip 893 {
frame 112 {
_root.savefile.data.somemore = true;
_root.savefile.flush();
_root.checkheard();
}
frame 119 {
if (_root.dropIn._currentframe == 1) {
_root.dropIn.play();
_root.head.talking = false;
}
stop();
}
}
movieClip 899 {
frame 45 {
_root.savefile.data.saveass = true;
_root.savefile.flush();
_root.checkheard();
}
frame 58 {
if (_root.dropIn._currentframe == 1) {
_root.dropIn.play();
_root.head.talking = false;
}
stop();
}
}
movieClip 904 {
frame 80 {
_root.savefile.data.sandwich = true;
_root.savefile.flush();
_root.checkheard();
}
frame 90 {
if (_root.dropIn._currentframe == 1) {
_root.dropIn.play();
_root.head.talking = false;
}
stop();
}
}
movieClip 909 {
frame 58 {
_root.savefile.data.grah = true;
_root.savefile.flush();
_root.checkheard();
}
frame 64 {
if (_root.dropIn._currentframe == 1) {
_root.dropIn.play();
_root.head.talking = false;
}
stop();
}
}
movieClip 910 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
}
movieClip 916 {
frame 1 {
if (_root.pauseMenu._visible == true) {
stop();
} else {
play();
}
}
frame 2 {
if (_root.pauseMenu._visible == true) {
stop();
} else {
play();
}
}
frame 3 {
if (_root.pauseMenu._visible == true) {
stop();
} else {
play();
}
}
frame 4 {
if (_root.pauseMenu._visible == true) {
stop();
} else {
play();
}
}
}
movieClip 920 {
frame 60 {
_root.savefile.data.whydidntusaveme = true;
_root.savefile.flush();
_root.checkheard();
}
frame 63 {
_root.gameOver = true;
stop();
}
}
movieClip 924 {
frame 43 {
_root.savefile.data.doneyaa = true;
_root.savefile.flush();
_root.checkheard();
}
frame 49 {
_root.gameOver = true;
stop();
}
}
movieClip 928 {
frame 39 {
_root.savefile.data.aawwoohh = true;
_root.savefile.flush();
_root.checkheard();
}
frame 47 {
_root.gameOver = true;
stop();
}
}
movieClip 929 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
}
movieClip 933 {
}
movieClip 935 {
}
movieClip 936 {
}
movieClip 942 {
frame 1 {
if (_root.pauseMenu._visible == true) {
stop();
} else {
play();
}
}
frame 2 {
if (_root.pauseMenu._visible == true) {
stop();
} else {
play();
}
}
frame 3 {
if (_root.pauseMenu._visible == true) {
stop();
} else {
play();
}
}
frame 4 {
if (_root.pauseMenu._visible == true) {
stop();
} else {
play();
}
}
}
movieClip 949 {
frame 78 {
_root.savefile.data.fierydiarea = true;
_root.savefile.flush();
_root.checkheard();
}
frame 88 {
_root.head.pooing = false;
_root.head.gotoAndStop('idle');
}
}
movieClip 957 {
frame 71 {
_root.savefile.data.cookin = true;
_root.savefile.flush();
_root.checkheard();
}
frame 79 {
_root.head.pooing = false;
_root.head.gotoAndStop('idle');
}
}
movieClip 964 {
frame 58 {
_root.savefile.data.shitfire = true;
_root.savefile.flush();
_root.checkheard();
}
frame 64 {
_root.head.pooing = false;
_root.head.gotoAndStop('idle');
}
}
movieClip 970 {
frame 41 {
_root.savefile.data.nasty = true;
_root.savefile.flush();
_root.checkheard();
}
frame 49 {
_root.head.pooing = false;
_root.head.gotoAndStop('idle');
}
}
movieClip 971 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
}
movieClip 972 {
frame 1 {
stop();
}
instance of movieClip 854 {
onClipEvent (enterFrame) {
if (_root.pauseMenu._visible == true) {
stop();
} else {
play();
}
}
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
instance fireshoot of movieClip 936 {
onClipEvent (enterFrame) {
if (_root.pauseMenu._visible == true) {
stop();
} else {
play();
}
}
}
frame 6 {
stop();
}
}
instance head of movieClip 972 {
onClipEvent (load) {
var talking = false;
var fire = false;
var firenum = 450;
var pooing = false;
}
onClipEvent (enterFrame) {
if (_x > 660) {
_root._x -= 20;
_x = _x + 20;
_root.sky._x += 20;
_root.goldmc._x += 20;
_root.eqsign._x += 20;
_root.hpbar1._x += 20;
_root.knight1hp._x += 20;
_root.archer1hp._x += 20;
_root.cannon1hp._x += 20;
_root.goldicon._x += 20;
_root.midground._x += 5.4;
_root.hpbar._x += 20;
_root.leftbound._x += 20;
_root.rightscreen._x += 20;
_root.leftscreen._x += 20;
_root.centerscreen._x += 20;
_root.mechhp._x += 20;
_root.wallhp._x += 20;
}
if (_root.gut._currentframe == 3) {
if (_currentframe != 4) {
gotoAndStop(4);
this.dragondead.gotoAndStop(Math.ceil(Math.random() * 3));
}
} else {
if (pooing == true && _currentframe == 1) {
gotoAndStop('poop');
}
if (this.fireshoot._currentframe == 22) {
fire = false;
gotoAndStop(1);
}
if (fire == false) {
if (_currentframe == 3) {
}
if (talking == false) {
if (_currentframe != 1) {
_root.hpbar.icon.gotoAndStop(2);
} else {
_root.hpbar.icon.gotoAndStop(1);
}
}
} else {
gotoAndStop(5);
}
if (_root.hasFire) {
--firenum;
}
if (firenum < 0 && _root.dropIn._currentframe == 1 && _currentframe != 3) {
fire = true;
fireshoot.gotoAndPlay(1);
firenum = 460;
}
}
}
}
movieClip 977 {
frame 1 {
stop();
}
frame 5 {
_alpha = 0;
stop();
}
}
// unknown tag 88 length 62
movieClip 986 {
}
movieClip 988 {
}
movieClip 993 {
}
movieClip 997 {
frame 34 {
_parent._parent.deadgone = true;
stop();
}
}
movieClip 998 {
frame 1 {
stop();
}
instance attacking of movieClip 986 {
onClipEvent (enterFrame) {
if (_root.pauseMenu._visible == true) {
stop();
} else {
play();
}
}
}
frame 2 {
stop();
}
instance stand of movieClip 988 {
onClipEvent (enterFrame) {
if (_root.pauseMenu._visible == true) {
stop();
} else {
play();
}
}
}
frame 3 {
stop();
}
instance run of movieClip 993 {
onClipEvent (enterFrame) {
if (_root.pauseMenu._visible == true) {
stop();
} else {
play();
}
}
}
frame 4 {
stop();
}
}
movieClip 1005 {
}
movieClip 1007 {
}
movieClip 1012 {
}
movieClip 1029 {
frame 39 {
_root.bmbsplode._x = _root.knight1._x;
_root.bmbsplode._y = _root.knight1._y;
if (_root.savefile.data.predatordie != true) {
_root.savefile.data.predatordie = true;
_root.savefile.flush();
}
}
frame 40 {
_root.bmbsplode._x = 9999;
_root.bmbsplode._y = 9999;
}
frame 45 {
_parent._parent.deadgone = true;
stop();
}
}
movieClip 1030 {
frame 1 {
stop();
}
instance attacking of movieClip 1005 {
onClipEvent (enterFrame) {
if (_root.pauseMenu._visible == true) {
stop();
} else {
play();
}
}
}
frame 2 {
stop();
}
instance of movieClip 1007 {
onClipEvent (enterFrame) {
if (_root.pauseMenu._visible == true) {
stop();
} else {
play();
}
}
}
frame 3 {
stop();
}
instance of movieClip 1012 {
onClipEvent (enterFrame) {
if (_root.pauseMenu._visible == true) {
stop();
} else {
play();
}
}
}
frame 4 {
stop();
}
}
movieClip 1037 {
}
movieClip 1039 {
}
movieClip 1042 {
}
movieClip 1049 {
frame 24 {
_parent._parent.deadgone = true;
stop();
}
}
movieClip 1050 {
frame 1 {
stop();
}
instance attacking of movieClip 1037 {
onClipEvent (enterFrame) {
if (_root.pauseMenu._visible == true) {
stop();
} else {
play();
}
}
}
frame 2 {
stop();
}
instance stand of movieClip 1039 {
onClipEvent (enterFrame) {
if (_root.pauseMenu._visible == true) {
stop();
} else {
play();
}
}
}
frame 3 {
stop();
}
instance run of movieClip 1042 {
onClipEvent (enterFrame) {
if (_root.pauseMenu._visible == true) {
stop();
} else {
play();
}
}
}
frame 4 {
stop();
}
instance die of movieClip 1049 {
onClipEvent (enterFrame) {
if (_root.pauseMenu._visible == true) {
stop();
} else {
play();
}
}
}
}
movieClip 1057 {
}
movieClip 1059 {
}
movieClip 1062 {
}
movieClip 1069 {
frame 24 {
_parent._parent.deadgone = true;
stop();
}
}
movieClip 1070 {
frame 1 {
stop();
}
instance attacking of movieClip 1057 {
onClipEvent (enterFrame) {
if (_root.pauseMenu._visible == true) {
stop();
} else {
play();
}
}
}
frame 2 {
stop();
}
instance stand of movieClip 1059 {
onClipEvent (enterFrame) {
if (_root.pauseMenu._visible == true) {
stop();
} else {
play();
}
}
}
frame 3 {
stop();
}
instance run of movieClip 1062 {
onClipEvent (enterFrame) {
if (_root.pauseMenu._visible == true) {
stop();
} else {
play();
}
}
}
frame 4 {
stop();
}
instance die of movieClip 1069 {
onClipEvent (enterFrame) {
if (_root.pauseMenu._visible == true) {
stop();
} else {
play();
}
}
}
}
movieClip 1077 {
}
movieClip 1079 {
}
movieClip 1084 {
}
movieClip 1097 {
frame 7 {
_root.bmbsplode._x = _root.knight1._x;
_root.bmbsplode._y = _root.knight1._y;
}
frame 8 {
_root.bmbsplode._x = 9999;
_root.bmbsplode._y = 9999;
}
frame 17 {
_parent._parent.deadgone = true;
stop();
}
}
movieClip 1098 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
}
movieClip 1109 {
}
movieClip 1111 {
frame 1 {
if (_root.savefile.data.maxknight != true) {
_root.savefile.data.maxknight = true;
_root.savefile.flush();
}
}
}
movieClip 1120 {
}
movieClip 1135 {
frame 11 {
_root.bmbsplode._x = _root.knight1._x;
_root.bmbsplode._y = _root.knight1._y;
}
frame 12 {
_root.bmbsplode._x = 9999;
_root.bmbsplode._y = 9999;
}
frame 22 {
_parent._parent.deadgone = true;
stop();
}
}
movieClip 1136 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
}
movieClip 1137 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
}
instance knight1 of movieClip 1137 {
onClipEvent (load) {
var speed = 3;
var inCombat = false;
if (_root.savefile.data.knighthp == undefined || _root.continueGame == false) {
var hp = 100;
} else {
var hp = _root.savefile.data.knighthp;
}
var damage = 1;
var counter = 30;
var depth = 4;
var xdir = -1;
var ydir = -1;
var spot;
var spot2;
var homing = false;
if (_root.savefile.data.knightUse == undefined || _root.continueGame == false) {
var inUse = false;
} else {
var inUse = _root.savefile.data.knightUse;
}
if (_root.savefile.data.knightlvl == undefined || _root.continueGame == false) {
var lvl = 1;
} else {
var lvl = _root.savefile.data.knightlvl;
}
var maxhp = 100 * lvl;
var upgrading = false;
var countdown = 300;
var deadgone = false;
}
onClipEvent (enterFrame) {
if (_currentframe == 5) {
if (_root.savefile.data.castlecrashed != true) {
_root.savefile.data.castlecrashed = true;
_root.savefile.flush();
}
}
if (inUse == true && (spot == null || spot == undefined)) {
spot = _root.homebase;
}
if (spot._name == _root.homebase._name && _x == _root.homebase._x && _y == _root.homebase._y) {
gotoAndStop('stand');
}
if (inUse == false && deadgone == true) {
_x = 9999;
_y = 9999;
} else {
deadgone = false;
}
if (_y < _root.archer1._y && _root.archer1.getDepth() < this.getDepth()) {
this.swapDepths(_root.archer1);
}
if (_y < _root.cannon1._y && _root.cannon1.getDepth() < this.getDepth()) {
this.swapDepths(_root.cannon1);
}
if (_y < _root.mech._y && _root.mech.getDepth() < this.getDepth()) {
this.swapDepths(_root.mech);
}
if (_root.pauseGame == false) {
if (hp > 100) {
hp = 100;
}
if (upgrading == true) {
_visible = false;
if (countdown > 0) {
--countdown;
_root.gym.window.gotoAndStop(2);
}
if (countdown <= 0) {
_root.gym.window.gotoAndStop(1);
countdown = 300;
upgrading = false;
nextFrame();
_y = shopspot._y + 100;
spot = _root.homebase;
inCombat = false;
}
} else {
_visible = true;
if (spot._name == 'shopspot' && this.hitTest(_root.shopspot) && _y == _root.shopspot._y) {
upgrading = true;
countdown = 300 / _root.gymlvl;
}
lvl = _currentframe;
damage = 1 * lvl;
if (_root.dragon.mchold._name == spot._name && _root.dragon.mchold.held == true) {
if (_currentframe != 6) {
spot = _root.homebase;
inCombat = false;
} else {
if (_root.dragon.mchold._name == spot2._name) {
spot = _root.homebase;
inCombat = false;
}
}
}
if (spot._y < 340 && spot._name != 'shopspot') {
if (_currentframe != 6) {
spot = _root.homebase;
inCombat = false;
} else {
if (spot2._y < 340) {
spot = _root.homebase;
inCombat = false;
}
}
}
if (this.knight._currentframe == 4 && this._currentframe != 2) {
_alpha = _alpha - 1;
_alpha = _alpha - 1;
if (_alpha <= 0) {
_y = 9999;
}
}
if (this.knight._currentframe == 4 && this._currentframe == 2) {
if (this.knight.die._currentframe == 45) {
speed = 3;
_y = 9999;
}
}
if (inUse == true) {
if (inCombat == true) {
if (spot2 == undefined) {
spot2 = spot1;
}
damage = 1 * lvl;
spot._xscale = (Math.abs(_xscale) / _xscale) * 100;
spot.fight = true;
spot.hpbar.counter = 30;
spot.hpbar._alpha = 100;
hpbar.counter = 30;
hpbar._alpha = 100;
if (this.knight.attacking._currentframe == 6 && _currentframe == 1) {
spot.hp -= damage;
}
if (this.knight.attacking._currentframe == 6 && _currentframe == 2) {
spot.hp -= damage;
}
if (this.knight.attacking._currentframe == 8 && _currentframe == 3) {
spot.hp -= damage;
}
if (this.knight.attacking._currentframe == 9 && _currentframe == 4) {
spot.hp -= damage;
}
if ((this.knight.attacking._currentframe == 5 || this.knight.attacking._currentframe == 1) && _currentframe == 5) {
spot.hp -= damage;
}
if (this.knight.attacking._currentframe == 7 && _currentframe == 6) {
spot.hp -= damage + 2;
}
if (this.knight.attacking._currentframe == 20 && _currentframe == 6) {
spot.hp -= damage + 2;
}
if (spot.hp <= 0) {
spot.gotoAndStop('smack');
spot.dead = true;
_root.knightkill = true;
spot.fight = false;
spot = spot2;
if (spot2.dead == true) {
spot = _root.homebase;
inCombat = false;
}
}
if (spot2.hp <= 0) {
spot2.gotoAndStop('smack');
spot2.dead = true;
spot2.fight = false;
spot2 = spot;
if (spot.dead == true) {
spot = _root.homebase;
inCombat = false;
}
}
if (hp <= 0) {
this.knight.gotoAndStop('die');
inCombat = false;
inUse = false;
spot.fight = false;
spot = _root.homebase;
spot2.fight = false;
hp = 0;
} else {
this.knight.gotoAndStop('attacking');
}
} else {
if (upgrading == false && spot._name != 'homebase' && (this.hitTest(spot) || spot.hitTest(_x - 10 * (Math.abs(_xscale) / _xscale), _y, true)) && _y == spot._y) {
spot.opp = this;
spot.swapDepths(this);
spot.fight = true;
inCombat = true;
}
--counter;
if (_y >= _root.lane1._y && _y <= _root.lane2._y) {
depth = 1;
}
if (_y > _root.lane2._y && _y <= _root.lane3._y) {
depth = 2;
}
if (_y > _root.lane3._y && _y <= _root.lane4._y) {
depth = 3;
}
if (_y > _root.lane4._y && _y <= _root.lane5._y) {
depth = 4;
}
if (homing == true && inCombat == false) {
if (spot._x > _x) {
_xscale = -100;
this.upgrd._xscale = -100;
} else {
_xscale = 100;
}
this.knight.gotoAndStop('run');
if (Math.abs(spot._x + spot._width / 2 - _x) < speed) {
_x = _x + Math.abs(spot._x + spot._width / 2 - _x) * ((spot._x - _x) / Math.abs(spot._x - _x));
} else {
_x = _x + speed * ((spot._x - _x) / Math.abs(spot._x - _x));
}
if (Math.abs(spot._y - _y) < speed) {
_y = _y + Math.abs(spot._y - _y) * ((spot._y - _y) / Math.abs(spot._y - _y));
} else {
_y = _y + speed * ((spot._y - _y) / Math.abs(spot._y - _y));
}
}
if (spot.hp <= 0 || spot.dead == true) {
spot = _root.homebase;
}
if (this.hitTest(_root.homebase) && spot._name == 'homebase') {
homing = false;
this.knight.gotoAndStop('stand');
_xscale = 100;
}
if (hp <= 0) {
hp = 0;
gotoAndStop('die');
}
}
}
}
}
}
}
movieClip 1140 {
}
movieClip 1151 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
}
movieClip 1153 {
}
movieClip 1154 {
}
instance knight1hp of movieClip 1154 {
onClipEvent (load) {
var hp = 0;
}
onClipEvent (release) {
if (_root.dropIn._currentframe == 1) {
_root.upgrade1.play();
_root.dragon.isHiding = false;
}
}
onClipEvent (enterFrame) {
_visible = _root.knight1.inUse;
hpbar.stop();
hp = _root.knight1.hp;
icon.gotoAndStop(_root.knight1.lvl);
if (hp == 100) {
hpbar.gotoAndStop(1);
} else {
if (hp < 100 && hp >= 50) {
hpbar.gotoAndStop(2);
} else {
if (hp < 50 && hp >= 25) {
hpbar.gotoAndStop(3);
} else {
if (hp < 25 && hp > 0) {
hpbar.gotoAndStop(4);
} else {
if (hp <= 0) {
hpbar.gotoAndStop(5);
}
}
}
}
}
}
}
movieClip 1160 {
frame 180 {
stop();
}
}
movieClip 1172 {
frame 120 {
stop();
}
}
movieClip 1186 {
frame 2 {
if (_root.savefile.data.maxcannon != true && _root.cannon1.dmg == 5) {
_root.savefile.data.maxcannon = true;
_root.savefile.flush();
}
}
frame 60 {
stop();
}
}
movieClip 1187 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
}
instance cannon1 of movieClip 1187 {
onClipEvent (load) {
var firing = false;
if (_root.savefile.data.cannonhp == undefined || _root.continueGame == false) {
var hp = 100;
} else {
var hp = _root.savefile.data.cannonhp;
}
var damage = 5;
var counter = 30;
var depth = 4;
var xdir = -1;
var ydir = -1;
var spot;
if (_root.savefile.data.cannonUse == undefined || _root.continueGame == false) {
var inUse = false;
} else {
var inUse = _root.savefile.data.cannonUse;
}
if (_root.savefile.data.cannonlvl == undefined || _root.continueGame == false) {
var lvl = 1;
} else {
var lvl = _root.savefile.data.cannonlvl;
}
var maxhp = 100 * lvl;
var upgrading = false;
if (_root.savefile.data.cannondmg == undefined || _root.continueGame == false) {
var dmg = 1;
} else {
var dmg = _root.savefile.data.cannondmg;
}
var countdown = 300;
var cannonball;
}
onClipEvent (enterFrame) {
if (inUse == false) {
_x = 9999;
_y = 9999;
} else {
if (_currentframe == 3) {
_root.pauseMenu.upcannon._visible = false;
} else {
_root.pauseMenu.upcannon._visible = true;
}
}
if (spot == undefined) {
firing = false;
}
if (spot == undefined || substring(spot._name, 0, 4) == 'home') {
firing = false;
}
if (spot._x > _x && substring(spot._name, 0, 4) == 'tank') {
spot = _root.homebase;
}
if (_y < _root.archer1._y && _root.archer1.getDepth() < this.getDepth()) {
this.swapDepths(_root.archer1);
}
if (_y < _root.knight1._y && _root.knight1.getDepth() < this.getDepth()) {
this.swapDepths(_root.knight1);
}
if (_y < _root.mech._y && _root.mech.getDepth() < this.getDepth()) {
this.swapDepths(_root.mech);
}
if (_root.pauseGame == false) {
if (hp > 100) {
hp = 100;
}
if (upgrading == true) {
this.cannon.gotoAndStop('upgrading');
if (countdown > 0) {
--countdown;
}
if (countdown <= 0) {
countdown = 300;
upgrading = false;
nextFrame();
firing = false;
}
} else {
_visible = true;
lvl = _currentframe;
damage = 1 * lvl * dmg;
if (_root.dragon.mchold._name == spot._name && _root.dragon.mchold.held == true) {
firing = false;
}
if (spot._y < 340 && spot._name != 'shopspot') {
firing = false;
}
if (this.knight._currentframe == 4) {
_alpha = _alpha - 1;
_alpha = _alpha - 1;
if (_alpha <= 0) {
_y = 9999;
}
}
if (inUse == true) {
if (firing == true) {
if (spot._x > _x - 50 && spot._x <= _x) {
spot._x = _x - 50;
if (spot._y > _y + 2) {
spot._y -= 2;
} else {
if (spot._y < _y - 2) {
spot._y += 2;
}
}
if (Math.abs(spot._y - _y) < 2) {
spot.opp = this;
spot.fight = true;
}
}
if (spot._x >= _x) {
firing = false;
spot = undefined;
}
damage = 2 * lvl * dmg;
if (this.cannon._currentframe == 1) {
cannonball = _root.cball.duplicateMovieClip('cball' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
cannonball.gotoAndStop(dmg);
cannonball._x = _x;
cannonball._y = _y;
cannonball.nme = spot;
cannonball.cannon = this;
cannonball.ymove = -25;
if (spot._currentframe == 1) {
cannonball.xmove = Math.abs(_x - (spot._x + spot.moveSpeed * 35)) / 50;
} else {
cannonball.xmove = Math.abs(_x - spot._x) / 50;
}
}
if (spot.hp <= 0) {
spot.gotoAndStop('smack');
spot.dead = true;
spot.fight = false;
firing = false;
}
if (hp <= 0) {
this.cannon.gotoAndStop('die');
firing = false;
inUse = false;
spot.fight = false;
hp = 0;
} else {
if (firing == true) {
this.cannon.play();
} else {
this.cannon.gotoAndStop(20);
}
}
} else {
if (spot._name != 'homebase' && spot != undefined) {
firing = true;
}
--counter;
if (spot.hp <= 0 || spot.dead == true) {
firing = false;
}
if (hp <= 0) {
hp = 0;
loadMovie('', this);
}
}
}
}
}
}
}
movieClip 1189 {
}
movieClip 1195 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
}
instance cball of movieClip 1195 {
onClipEvent (load) {
var xmove;
var ymove;
var nme;
var splode = _root.xsplode1;
var flame;
var looper = 0;
var cannon;
}
onClipEvent (enterFrame) {
if (_root.pauseGame == false) {
if (_y > 5000) {
ymove = 0;
_y = 4500;
}
_rotation = _rotation - 10;
_x = _x - xmove;
_y = _y + ymove;
++ymove;
gotoAndStop(cannon.dmg);
if (_y >= nme._y && ymove > 0) {
splode.cannon = cannon;
splode.gotoAndStop(_currentframe);
if (_currentframe == 3) {
_root.flame._x = _x;
_root.flame._alpha = 100;
_root.flame._y = nme._y;
}
if (_currentframe == 4) {
_root.ice._x = _x;
_root.ice._alpha = 100;
_root.ice._y = nme._y;
}
splode.splode.gotoAndPlay(1);
splode._x = _x;
splode._y = nme._y;
this.removeMovieClip();
}
}
}
}
movieClip 1201 {
}
movieClip 1202 {
}
instance flame of movieClip 1202 {
onClipEvent (enterFrame) {
if (_root.pauseGame == false) {
_alpha = _alpha - 2;
if (_alpha <= 0) {
_alpha = 0;
_y = 9999;
}
}
}
}
movieClip 1209 {
frame 13 {
stop();
}
}
movieClip 1216 {
frame 13 {
stop();
}
}
movieClip 1226 {
frame 18 {
stop();
}
}
movieClip 1237 {
frame 13 {
stop();
}
}
movieClip 1243 {
frame 11 {
stop();
}
}
movieClip 1244 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
}
instance xsplode1 of movieClip 1244 {
onClipEvent (load) {
var cannon;
}
onClipEvent (enterFrame) {
if (_root.pauseGame == false) {
stop();
if (_currentframe == 1 || _currentframe == 2) {
if (this.splode._currentframe == 18) {
_y = 99999;
}
}
if (_currentframe == 3) {
if (this.splode._currentframe == 15) {
_y = 99999;
}
}
}
}
}
movieClip 1246 {
}
movieClip 1255 {
}
movieClip 1260 {
}
movieClip 1268 {
frame 27 {
_parent._parent.deadgone = true;
stop();
}
}
movieClip 1269 {
frame 1 {
stop();
}
instance of movieClip 1246 {
onClipEvent (enterFrame) {
if (_root.pauseMenu._visible == true) {
stop();
} else {
play();
}
}
}
frame 2 {
stop();
}
instance attacking of movieClip 1255 {
onClipEvent (enterFrame) {
if (_root.pauseMenu._visible == true) {
stop();
} else {
play();
}
}
}
frame 3 {
stop();
}
instance of movieClip 1260 {
onClipEvent (enterFrame) {
if (_root.pauseMenu._visible == true) {
stop();
} else {
play();
}
}
}
frame 4 {
stop();
}
}
movieClip 1271 {
}
movieClip 1279 {
}
movieClip 1284 {
}
movieClip 1292 {
frame 27 {
_parent._parent.deadgone = true;
stop();
}
}
movieClip 1293 {
frame 1 {
stop();
}
instance of movieClip 1271 {
onClipEvent (enterFrame) {
if (_root.pauseMenu._visible == true) {
stop();
} else {
play();
}
}
}
frame 2 {
stop();
}
instance attacking of movieClip 1279 {
onClipEvent (enterFrame) {
if (_root.pauseMenu._visible == true) {
stop();
} else {
play();
}
}
}
frame 3 {
stop();
}
instance of movieClip 1284 {
onClipEvent (enterFrame) {
if (_root.pauseMenu._visible == true) {
stop();
} else {
play();
}
}
}
frame 4 {
stop();
}
}
movieClip 1298 {
}
movieClip 1300 {
}
movieClip 1309 {
}
movieClip 1317 {
frame 33 {
_parent._parent.deadgone = true;
stop();
}
}
movieClip 1318 {
frame 1 {
stop();
}
instance of movieClip 1298 {
onClipEvent (enterFrame) {
if (_root.pauseMenu._visible == true) {
stop();
} else {
play();
}
}
}
frame 2 {
stop();
}
instance of movieClip 1300 {
onClipEvent (enterFrame) {
if (_root.pauseMenu._visible == true) {
stop();
} else {
play();
}
}
}
frame 3 {
stop();
}
instance attacking of movieClip 1309 {
onClipEvent (enterFrame) {
if (_root.pauseMenu._visible == true) {
stop();
} else {
play();
}
}
}
frame 4 {
stop();
}
}
movieClip 1323 {
}
movieClip 1325 {
}
movieClip 1334 {
}
movieClip 1342 {
frame 33 {
_parent._parent.deadgone = true;
stop();
}
}
movieClip 1343 {
frame 1 {
stop();
}
instance of movieClip 1323 {
onClipEvent (enterFrame) {
if (_root.pauseMenu._visible == true) {
stop();
} else {
play();
}
}
}
frame 2 {
stop();
}
instance of movieClip 1325 {
onClipEvent (enterFrame) {
if (_root.pauseMenu._visible == true) {
stop();
} else {
play();
}
}
}
frame 3 {
stop();
}
instance attacking of movieClip 1334 {
onClipEvent (enterFrame) {
if (_root.pauseMenu._visible == true) {
stop();
} else {
play();
}
}
}
frame 4 {
stop();
}
}
movieClip 1348 {
}
movieClip 1350 {
}
movieClip 1371 {
}
movieClip 1380 {
frame 13 {
_parent._parent.deadgone = true;
stop();
}
}
movieClip 1381 {
frame 1 {
stop();
}
instance of movieClip 1348 {
onClipEvent (enterFrame) {
if (_root.pauseMenu._visible == true) {
stop();
} else {
play();
}
}
}
frame 2 {
stop();
}
instance of movieClip 1350 {
onClipEvent (enterFrame) {
if (_root.pauseMenu._visible == true) {
stop();
} else {
play();
}
}
}
frame 3 {
stop();
}
instance attacking of movieClip 1371 {
onClipEvent (enterFrame) {
if (_root.pauseMenu._visible == true) {
stop();
} else {
play();
}
}
}
frame 4 {
stop();
}
}
movieClip 1386 {
frame 9 {
if (_root.savefile.data.maxarcher != true) {
_root.savefile.data.maxarcher = true;
_root.savefile.flush();
}
}
}
movieClip 1388 {
}
movieClip 1396 {
}
movieClip 1405 {
frame 19 {
_parent._parent.deadgone = true;
stop();
}
}
movieClip 1406 {
frame 1 {
stop();
}
instance of movieClip 1386 {
onClipEvent (enterFrame) {
if (_root.pauseMenu._visible == true) {
stop();
} else {
play();
}
}
}
frame 2 {
stop();
}
instance of movieClip 1388 {
onClipEvent (enterFrame) {
if (_root.pauseMenu._visible == true) {
stop();
} else {
play();
}
}
}
frame 3 {
stop();
}
instance attacking of movieClip 1396 {
onClipEvent (enterFrame) {
if (_root.pauseMenu._visible == true) {
stop();
} else {
play();
}
}
}
frame 4 {
stop();
}
}
movieClip 1407 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
}
instance archer1 of movieClip 1407 {
onClipEvent (load) {
var speed = 3;
var inCombat = false;
if (_root.savefile.data.archerhp == undefined || _root.continueGame == false) {
var hp = 100;
} else {
var hp = _root.savefile.data.archerhp;
}
var damage = 1;
var counter = 30;
var depth = 4;
var xdir = -1;
var ydir = -1;
var spot;
var homing = false;
if (_root.savefile.data.archerUse == undefined || _root.continueGame == false) {
var inUse = false;
} else {
var inUse = _root.savefile.data.archerUse;
}
if (_root.savefile.data.archerlvl == undefined || _root.continueGame == false) {
var lvl = 1;
} else {
var lvl = _root.savefile.data.archerlvl;
}
var maxhp = 100 * lvl;
var upgrading = false;
var countdown = 300;
var deadgone = false;
}
onClipEvent (enterFrame) {
if (_currentframe == 5) {
if (_root.savefile.data.turtled != true) {
_root.savefile.data.turtled = true;
_root.savefile.flush();
}
}
if (inUse == false && deadgone == true) {
_x = 9999;
_y = 9999;
this.archer.gotoAndStop('stand');
} else {
deadgone = false;
}
if (_y < _root.knight1._y && _root.knight1.getDepth() < this.getDepth()) {
this.swapDepths(_root.knight1);
}
if (_y < _root.cannon1._y && _root.cannon1.getDepth() < this.getDepth()) {
this.swapDepths(_root.cannon1);
}
if (_y < _root.mech._y && _root.mech.getDepth() < this.getDepth()) {
this.swapDepths(_root.mech);
}
if (_root.pauseGame == false) {
if (hp > 100) {
hp = 100;
}
if (upgrading == true) {
_visible = false;
if (countdown > 0) {
--countdown;
_root.gym.window.gotoAndStop(2);
}
if (countdown <= 0) {
_root.gym.window.gotoAndStop(1);
countdown = 300;
upgrading = false;
nextFrame();
_y = shopspot._y + 100;
spot = _root.homebase2;
inCombat = false;
}
} else {
_visible = true;
if (spot._name == 'shopspot' && this.hitTest(_root.shopspot) && _y == _root.shopspot._y) {
upgrading = true;
countdown = 300 / _root.gymlvl;
}
lvl = _currentframe;
damage = 1;
if (_root.dragon.mchold._name == spot._name && _root.dragon.mchold.held == true) {
spot = _root.homebase2;
inCombat = false;
}
if (spot._y < 340 && spot._name != 'shopspot') {
spot = _root.homebase2;
inCombat = false;
}
if (this.archer._currentframe == 4) {
_alpha = _alpha - 1;
_alpha = _alpha - 1;
if (_alpha <= 0) {
_y = 9999;
}
}
if (inUse == true) {
if (inCombat == true) {
if (this.hitTest(spot)) {
spot.fight = true;
spot.opp = this;
}
if (_currentframe < 5) {
damage = 1 * _currentframe;
} else {
damage = 2 * _currentframe;
}
spot._xscale = (Math.abs(_xscale) / _xscale) * 100;
spot.hpbar.counter = 30;
spot.hpbar._alpha = 100;
hpbar.counter = 30;
hpbar._alpha = 100;
if (this.archer.attacking._currentframe == 18 && _currentframe == 1) {
spot.hp -= damage;
}
if (this.archer.attacking._currentframe == 10 && _currentframe == 2) {
spot.hp -= damage;
}
if (this.archer.attacking._currentframe == 7 && (_currentframe == 3 || _currentframe == 4)) {
spot.hp -= damage;
}
if (this.archer.attacking._currentframe == 6 && _currentframe == 5) {
spot.hp -= damage;
if (substring(spot._name, 0, 3) != 'guy') {
spot._x -= 5;
spot.fight = false;
}
}
if (this.archer.attacking._currentframe == 1 && _currentframe == 6) {
spot.hp -= damage;
if (substring(spot._name, 0, 3) != 'guy') {
spot._x -= 10;
spot.fight = false;
}
}
if (spot.hp <= 0) {
spot.gotoAndStop('smack');
spot.dead = true;
spot.fight = false;
spot = _root.homebase2;
inCombat = false;
}
if (hp <= 0) {
this.archer.gotoAndStop('die');
inCombat = false;
inUse = false;
spot.fight = false;
spot = _root.homebase2;
hp = 0;
} else {
this.archer.gotoAndStop('attacking');
}
} else {
if (spot._name != 'homebase2' && _y == spot._y && spot._name != 'shopspot') {
spot.swapDepths(this);
inCombat = true;
}
if (_y == spot._y && spot._name == 'shopspot') {
archer.gotoAndStop('run');
if (Math.abs(spot._x - _x) < speed) {
_x = _x + Math.abs(spot._x - _x) * ((spot._x - _x) / Math.abs(spot._x - _x));
} else {
_x = _x + speed * ((spot._x - _x) / Math.abs(spot._x - _x));
}
}
--counter;
if (homing == false && inCombat == false) {
this.archer.gotoAndStop('stand');
}
if (homing == true && inCombat == false) {
if (spot._x > _x) {
if (spot._name != 'homebase2') {
_xscale = -100;
}
} else {
_xscale = 100;
}
this.archer.gotoAndStop('run');
if (Math.abs(spot._y - _y) < speed) {
_y = _y + Math.abs(spot._y - _y) * ((spot._y - _y) / Math.abs(spot._y - _y));
} else {
_y = _y + speed * ((spot._y - _y) / Math.abs(spot._y - _y));
}
}
if (spot._name != 'shopspot' && _y == spot._y && inCombat == false) {
this.archer.gotoAndStop('stand');
}
if (spot.hp <= 0 || spot.dead == true) {
spot = _root.homebase2;
}
if (this.hitTest(_root.homebase2) && spot._name == 'homebase2') {
homing = false;
this.archer.gotoAndStop('stand');
_xscale = 100;
}
if (hp <= 0) {
hp = 0;
loadMovie('', this);
}
}
}
}
}
}
}
movieClip 1409 {
}
movieClip 1413 {
frame 5 {
stop();
}
}
instance ice of movieClip 1413 {
onClipEvent (enterFrame) {
if (_root.pauseGame == false) {
_alpha = _alpha - 2;
if (_alpha <= 0) {
_alpha = 0;
_y = 9999;
}
}
}
}
movieClip 1415 {
}
movieClip 1416 {
}
instance archer1hp of movieClip 1416 {
onClipEvent (load) {
var hp = 0;
}
onClipEvent (release) {
if (_root.dropIn._currentframe == 1) {
_root.upgrade2.play();
_root.dragon.isHiding = false;
}
}
onClipEvent (enterFrame) {
_visible = _root.archer1.inUse;
hpbar.stop();
hp = _root.archer1.hp;
icon.gotoAndStop(_root.archer1.lvl);
if (hp == 100) {
hpbar.gotoAndStop(1);
} else {
if (hp < 100 && hp >= 50) {
hpbar.gotoAndStop(2);
} else {
if (hp < 50 && hp >= 25) {
hpbar.gotoAndStop(3);
} else {
if (hp < 25 && hp > 0) {
hpbar.gotoAndStop(4);
} else {
if (hp <= 0) {
hpbar.gotoAndStop(5);
}
}
}
}
}
}
}
movieClip 1418 {
}
movieClip 1419 {
instance icon of movieClip 1418 {
onClipEvent (enterFrame) {
gotoAndStop(_root.cannon1._currentframe);
}
}
}
instance cannon1hp of movieClip 1419 {
onClipEvent (load) {
var hp = 0;
}
onClipEvent (release) {
if (_root.dropIn._currentframe == 1) {
_root.upgrade3.play();
_root.dragon.isHiding = false;
}
}
onClipEvent (enterFrame) {
_visible = _root.pauseMenu.cannoniconthingy._currentframe == 1;
hpbar.stop();
hp = _root.cannon1.hp;
icon.gotoAndStop(_root.cannon1.lvl);
if (hp == 100) {
hpbar.gotoAndStop(1);
} else {
if (hp < 100 && hp >= 50) {
hpbar.gotoAndStop(2);
} else {
if (hp < 50 && hp >= 25) {
hpbar.gotoAndStop(3);
} else {
if (hp < 25 && hp > 0) {
hpbar.gotoAndStop(4);
} else {
if (hp <= 0) {
hpbar.gotoAndStop(5);
}
}
}
}
}
}
}
movieClip 1421 {
}
instance dothings of movieClip 1421 {
onClipEvent (load) {
if (_root.continueGame == true) {
_root.loadSaveFile();
}
if (_root.continueGame == false || _root.savefile.data.round2 == undefined) {
var round2 = 1;
} else {
var round2 = _root.savefile.data.round2;
}
var startTime = 0;
var boss = 0;
var goldDelay = 5;
var chooser;
}
onClipEvent (enterFrame) {
if (_root.continueGame == true) {
--goldDelay;
if (goldDelay < 0) {
_root.continueGame = false;
_root.gold = _root.savefile.data.gold;
}
}
if (_root.pauseGame == false) {
if (_root.dropIn._currentframe == 85) {
++round2;
}
if (round2 == 4) {
_root.enemyarray = new Array();
_root.winmsg = '';
_root.soundcontrol.ingamemusic.setVolume(0);
_root.soundcontrol.setVolume(0);
_root.soundcontrol.ingamemusic.stop();
_root.soundcontrol.ingamemusic.stop();
_root.ingamemusic.stop();
_root.bosssound.play();
chooser = Math.round(Math.random() + 1);
if (chooser == 1) {
_root.bossRound = true;
_root.bossDead = false;
_root.rufusintro.play();
boss = Math.floor(Math.random() * 2) + 1;
boss = 2;
round2 = 0;
trace(_root.wavenum);
_root.boss2.hp = _root.wavenum * 5;
_root.boss2.dead = false;
_root.boss2.speed = 1;
_root.boss2.attackDelay = 60;
_root.boss2.isAttacking = false;
_root.boss2.isHurt = false;
_root.boss2._x = -550;
_root.boss2._y = 343;
_root.boss2.bossy = 1;
_root.boss1.bossy = 0;
_root.boss1.hp = 0;
_root.boss1.dead = true;
_root.boss1.speed = 1;
_root.boss1.attackDelay = 60;
_root.boss1.isAttacking = false;
_root.boss1.isHurt = false;
_root.boss1._x = -500;
_root.boss1._y = 9001;
_root.wavePeople = 0;
_root.roundkill = 0;
} else {
_root.bossRound = true;
_root.bossDead = false;
_root.mouserintro.play();
boss = Math.floor(Math.random() * 2) + 1;
boss = 2;
round2 = 0;
trace(_root.wavenum);
_root.boss1.hp = _root.wavenum * 5;
_root.boss1.dead = false;
_root.boss1.speed = 1;
_root.boss1.attackDelay = 60;
_root.boss1.isAttacking = false;
_root.boss1.isHurt = false;
_root.boss1._x = -550;
_root.boss1._y = 343;
_root.boss2.bossy = 0;
_root.boss1.bossy = 1;
_root.boss2.hp = 0;
_root.boss2.dead = true;
_root.boss2.speed = 1;
_root.boss2.attackDelay = 60;
_root.boss2.isAttacking = false;
_root.boss2.isHurt = false;
_root.boss2._x = -500;
_root.boss2._y = 9001;
_root.wavePeople = 0;
_root.roundkill = 0;
}
}
}
}
}
movieClip 1424 {
frame 1 {
stop();
}
}
movieClip 1427 {
frame 1 {
stop();
}
}
movieClip 1430 {
frame 1 {
stop();
}
}
movieClip 1438 {
}
instance fireballz of movieClip 1438 {
onClipEvent (load) {
var damage = 10;
var inUse = false;
}
onClipEvent (enterFrame) {
if (_root.pauseGame == false) {
_visible = inUse;
if (inUse == true) {
_x = _x - 10;
if (_x < -5000) {
inUse = false;
}
}
if (_root.head.fireshoot._currentframe == 15) {
if (_root.savefile.data.fireballer != true) {
_root.savefile.data.fireballer = true;
_root.savefile.flush();
}
inUse = true;
_x = _root.head._x;
_y = _root.head._y + _root.head._height / 2;
}
}
if (_root.pauseMenu._visible == true) {
stop();
} else {
play();
}
}
}
movieClip 1445 {
}
instance firesplatter of movieClip 1445 {
onClipEvent (enterFrame) {
if (_root.pauseMenu._visible == true) {
stop();
} else {
play();
}
if (_root.pauseGame == false) {
if (_alpha > 0) {
_alpha = _alpha - 1;
_alpha = _alpha - 1;
}
if (_alpha <= 0) {
_x = 9999;
_y = 9999;
}
}
}
}
movieClip 1455 {
frame 17 {
stop();
}
}
instance firesplode of movieClip 1455 {
onClipEvent (load) {
gotoAndStop(5);
}
}
movieClip 1460 {
}
movieClip 1463 {
}
movieClip 1465 {
}
movieClip 1472 {
}
movieClip 1474 {
}
movieClip 1496 {
}
movieClip 1503 {
}
movieClip 1510 {
frame 1 {
_root.playSplat();
}
frame 3 {
if (_root.savefile.data.racist != true) {
_root.savefile.data.racist = true;
_root.savefile.flush();
}
}
frame 15 {
stop();
}
}
movieClip 1511 {
frame 1 {
stop();
}
instance run of movieClip 1460 {
onClipEvent (enterFrame) {
if (_root.pauseMenu._visible == true) {
stop();
} else {
play();
}
}
}
instance hpbar of movieClip 1465 {
onClipEvent (load) {
stop();
_alpha = 0;
var counter = 0;
}
onClipEvent (enterFrame) {
stop();
if (counter > 0) {
--counter;
_alpha = 100;
}
if (counter == 0) {
_alpha = _alpha - 5;
}
if (_currentframe == 25) {
_visible = false;
} else {
_visible = true;
}
gotoAndStop(25 - _parent.hp / 2);
if (Key.isDown(16)) {
counter = 30;
_alpha = 100;
}
}
}
frame 2 {
stop();
}
instance hurt1 of movieClip 1472 {
onClipEvent (enterFrame) {
if (_root.pauseMenu._visible == true) {
stop();
} else {
play();
}
}
}
frame 3 {
stop();
}
instance held of movieClip 1474 {
onClipEvent (enterFrame) {
if (_root.pauseMenu._visible == true) {
stop();
} else {
play();
}
}
}
frame 4 {
stop();
}
instance attacking of movieClip 1496 {
onClipEvent (enterFrame) {
if (_root.pauseMenu._visible == true) {
stop();
} else {
play();
}
}
}
instance hpbar of movieClip 1465 {
onClipEvent (load) {
stop();
_alpha = 0;
var counter = 0;
}
onClipEvent (enterFrame) {
stop();
if (counter > 0) {
--counter;
_alpha = 100;
}
if (counter == 0) {
_alpha = _alpha - 5;
}
if (_currentframe == 25) {
_visible = false;
} else {
_visible = true;
}
gotoAndStop(25 - _parent.hp / 2);
}
}
frame 5 {
stop();
}
instance hit1 of movieClip 1503 {
onClipEvent (enterFrame) {
if (_root.pauseMenu._visible == true) {
stop();
} else {
play();
}
}
}
frame 6 {
stop();
}
}
instance blackguyoriginal of movieClip 1511 {
onClipEvent (load) {
var defense = 3;
var damage = 8;
var hitGround = false;
var first;
var hurt = false;
var held = false;
var flung = false;
var moveSpeed = Math.random() * 5 + _root.wavenum / 7 + 1;
var xgrav;
var ygrav;
var shdw = _root.nmeshade;
var delay = 180;
var clone;
var dead = false;
var depth;
_y = 320 + 20 * depth;
var ground = _y;
var hp = 50;
var cc;
var fight = false;
var opp;
var fireCount = 10;
var looper = 0;
var mc;
var frozen = false;
var icedelay = 50;
var icemc;
}
onClipEvent (enterFrame) {
if (frozen == true) {
--icedelay;
}
if (icedelay <= 0 && frozen == true) {
frozen = false;
}
if (_root._currentframe != 511) {
loadMovie('', this);
this.removeMovieClip();
removeMovieClip(this);
}
if (_root.pauseGame == false && frozen == false) {
if (this.hit1._currentframe == 2) {
mc = _root.oroblood.duplicateMovieClip(_root.getNextHighestDepth() + 'blood', _root.getNextHighestDepth());
this.swapDepths(mc);
mc._x = _x;
mc._y = _y;
mc._alpha = 100;
}
if (_root.hp <= 0 && _name != 'blackguyoriginal') {
loadMovie('', this);
this.removeMovieClip();
}
if (_root.gameOver == false && _root.hp > 0) {
if (_root.wavenum >= 13) {
if (_root.dothings.round != 0) {
if (this.hitTest(_root.deletewall) && _name != 'blackguyoriginal') {
_x = -300;
}
if (Math.abs(_x - _root.gut._x) < 20 && _y > _root.gut._y + _root.gut._height) {
_y = _y - 10;
_x = _root.gut._x - moveSpeed;
}
--fireCount;
if (fireCount < 0) {
fireCount = 10;
}
if (this.hitTest(_root.flame) && fireCount == 0 && hp > 0) {
--hp;
mc = _root.flamethrower.duplicateMovieClip('flame' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
mc._x = _x;
mc._y = _y;
hurt = true;
this.gotoAndStop('hurt');
if (hp <= 0 && _y == ground) {
gotoAndStop('smack');
dead = true;
fight = false;
}
}
if (this.hitTest(_root.bmbsplode) && hp > 0) {
if (flung == false) {
hp -= 3;
}
this.hpbar.counter = 30;
this.hpbar._alpha = 100;
_y = _y - 50;
fight = false;
flung = true;
held = false;
ygrav = -10;
gotoAndStop('held');
}
looper = 1;
while (looper < 2) {
if (this.hitTest(_root['xsplode' + looper]) && hp > 0) {
if (flung == false) {
hp -= _root['xsplode' + looper].cannon.damage;
}
this.hpbar.counter = 30;
this.hpbar._alpha = 100;
fight = false;
flung = true;
held = false;
gotoAndStop('held');
if (_root['xsplode' + looper]._currentframe != 4) {
_y = _y - 50;
ygrav = -10 - 5 * _root['xsplode' + looper].cannon.lvl;
xgrav = Math.round(_x - _root['xsplode' + looper]._x) / 20;
} else {
frozen = true;
icedelay = 50;
icemc = _root.icefang.duplicateMovieClip('ice' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
icemc._x = _x;
icemc.swapDepths(this.getDepth() + 1);
icemc._y = _y;
}
}
++looper;
}
if (this.hitTest(_root.fireballz) && hp > 0) {
hp -= _root.fireballz.damage;
_root.fireballz.inUse = false;
_root.fireballz._x = -4000;
_root.firesplode.gotoAndPlay(1);
_root.firesplode._x = _x;
_root.firesplode._y = _y;
_y = _y - 50;
fight = false;
flung = true;
held = false;
ygrav = -20;
gotoAndStop('held');
xgrav = -5;
}
if (this.hitTest(_root.splode) && hp > 0 && _currentframe != 6) {
if (flung == false) {
hp /= 2;
}
this.hpbar.counter = 30;
this.hpbar._alpha = 100;
_y = _y - 50;
fight = false;
flung = true;
held = false;
ygrav = -20;
gotoAndStop('held');
xgrav = Math.round(_x - _root.splode._x) / 20;
}
if (fight == true) {
gotoAndStop('attack');
if (this.attacking._currentframe == 12 || this.attacking._currentframe == 18 || this.attacking._currentframe == 24 || this.attacking._currentframe == 30 || this.attacking._currentframe == 36 || this.attacking._currentframe == 42 || this.attacking._currentframe == 48) {
opp.hp -= damage;
}
if (hp <= 0) {
fight = false;
dead = true;
}
} else {
_xscale = 100;
looper = 1;
while (looper < 2) {
if (_x > _root.steppad._x && _x < _root.deletewall._x && _root['knight' + looper].inCombat == false && _root['knight' + looper].spot._name == 'homebase' && hp > 0) {
_root['knight' + looper].homing = true;
_root['knight' + looper].spot = this;
if (_root['knight' + looper]._currentframe == 6) {
if (_root['knight' + looper].spot._name != _name) {
_root['knight' + looper].spot2 = this;
}
}
}
if (_x > _root.steppad2._x && _x < _root.deletewall._x && _root['archer' + looper].inCombat == false && _root['archer' + looper].spot._name == 'homebase2' && hp > 0) {
_root['archer' + looper].homing = true;
_root['archer' + looper].spot = this;
}
if (_x > _root.steppad4._x && _x < _root.deletewall._x && _root.mech.inCombat == false && _root.mech.spot._name == 'homebase4' && hp > 0) {
_root.mech.homing = true;
_root.mech.spot = this;
}
if (_x > _root.fireArea._x && _x < _root.deletewall._x && _root['cannon' + looper].firing == false && hp > 0) {
_root['cannon' + looper].firing = true;
_root['cannon' + looper].spot = this;
}
++looper;
}
if (this.hit1._currentframe == 22 || held == true || flung == true) {
hitGround = false;
hurt = false;
}
if (hp <= 0) {
hp = 0;
}
if (dead == false) {
if (this.hitTest(_root.rock) && _root.rock.flung == true && _root.rock.depth == this.depth) {
_root.rock.flung = false;
_root.rock._rotation = 0;
_root.rock._x = _x;
_root.rock._y = _y;
--_root.rock.hits;
gotoAndStop('smack');
dead = true;
_y = ground;
flung = true;
this.swapDepths(_root.rock);
if (_alpha <= 0) {
this.removeMovieClip();
}
}
if (this.hitTest(_root.poop) && _root.poop.depth == depth) {
_root.poop.flung = false;
_root.poop._rotation = 0;
_root.poop._x = _x;
_root.poop._y = _y;
--_root.poop.hits;
_root.poop.play();
gotoAndStop('smack');
dead = true;
_y = ground;
flung = true;
this.swapDepths(_root.poop);
if (_alpha <= 0) {
this.removeMovieClip();
}
}
--delay;
if (_root.dropIn._currentframe == 1 && delay <= 0 && _root.numPeople < _root.maxPeople && _root.wavePeople > _root.numPeople && _root.wavePeople - _root.numPeople > 0) {
delay = (Math.random() * 240 + 60) * (1 / Math.pow(_root.wavenum, 0.1428571428571429));
clone = this.duplicateMovieClip('guy' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
++_root.numPeople;
_root.enemyarray.push(clone);
clone._x = -300;
clone._alpha = 100;
clone.depth = Math.round(Math.random() * 3 + 1);
_root.dothings.swapDepths(_root.getNextHighestDepth() + 8);
clone.swapDepths(dothings.getDepth() - 2 * (5 - depth));
clone._rotation = 0;
clone.held = false;
clone.dead = false;
clone.flung = false;
}
if (held == false && flung == false && hitGround == false) {
if (hurt == false) {
if (_root.gut.hitTest(_x + _width / 2, _y, true)) {
gotoAndStop('attack');
if (this.attacking._currentframe == 12 || this.attacking._currentframe == 18 || this.attacking._currentframe == 24 || this.attacking._currentframe == 30 || this.attacking._currentframe == 36 || this.attacking._currentframe == 42 || this.attacking._currentframe == 48) {
_root.hp -= damage;
if (_root.gut.gut._currentframe == 1) {
_root.gut.gut.play();
}
}
} else {
if (_root.wall.hitTest(_x + _width / 2, _y, true)) {
gotoAndStop('attack');
if (this.attacking._currentframe == 12 || this.attacking._currentframe == 18 || this.attacking._currentframe == 24 || this.attacking._currentframe == 30 || this.attacking._currentframe == 36 || this.attacking._currentframe == 42 || this.attacking._currentframe == 48) {
_root.wall.hp -= damage;
if (_root.wall.wall._currentframe == 1) {
_root.wall.wall.play();
}
}
} else {
gotoAndStop('run');
_x = _x + moveSpeed;
if (depth == 4 && _x >= 470) {
_y = _y - 1;
_y = _y - 1;
}
}
}
} else {
if (this.hurt1._currentframe == 6) {
hurt = false;
}
}
}
if (held == true) {
gotoAndStop('held');
_x = _root._xmouse;
_y = _root._ymouse + _height / 2;
shdw._x = _x;
if (held == true) {
if (_root.dragon._y <= 180) {
shdw._root.nmeshade._xscale = 70;
shdw._yscale = 70;
shdw._y = 340;
}
if (_root.dragon._y > 180 && _root.dragon._y <= 200) {
shdw._y = 360;
shdw._xscale = 80;
shdw._yscale = 80;
}
if (_root.dragon._y > 200 && _root.dragon._y <= 220) {
shdw._y = 380;
shdw._xscale = 90;
shdw._yscale = 90;
}
if (_root.dragon._y > 220) {
shdw._y = 400;
shdw._xscale = 100;
shdw._yscale = 100;
}
}
}
if (flung == true) {
shdw._y = 999;
if (_y >= ground - 2 * _height / 3) {
hp -= Math.round((Math.abs(xgrav) + Math.abs(ygrav)) / defense);
this.hpbar.counter = 30;
gotoAndStop('hit');
hitGround = true;
this.hpbar._alpha = 100;
}
if (_y < ground - 2 * _height / 3) {
gotoAndStop('held');
_rotation = _rotation + 10;
_x = _x + xgrav;
_y = _y + ygrav;
++ygrav;
} else {
if (hp <= 0) {
gotoAndStop('smack');
_y = ground;
_rotation = 0;
dead = true;
if (_alpha <= 0) {
this.removeMovieClip();
}
} else {
_y = ground;
flung = false;
held = false;
_rotation = 0;
}
}
}
} else {
if (_alpha == 100) {
mc = _root.oroblood.duplicateMovieClip(_root.getNextHighestDepth() + 'blood', _root.getNextHighestDepth());
this.swapDepths(mc);
mc._x = _x;
mc._y = _y;
mc._alpha = 100;
--_root.wavePeople;
--_root.numPeople;
++_root.totalkill;
cc = _root.coin.duplicateMovieClip('cc' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
cc._y = _y;
cc.gotoAndStop(6);
cc._x = _x;
}
_alpha = _alpha - 1;
_alpha = _alpha - 1;
gotoAndStop('smack');
if (_alpha <= 0) {
loadMovie('', this);
this.removeMovieClip();
removeMovieClip(this);
}
}
}
}
}
}
}
}
onClipEvent (press) {
_root.dragon.dragon.gotoAndStop(2);
if (hp > 0) {
if (hp <= 13) {
if (held == false) {
hp -= _root.clickdmg;
if (hp <= 0) {
gotoAndStop('smack');
dead = true;
_root.ACslash = true;
fight = false;
}
}
if (this.hpbar._alpha <= 0) {
this.hpbar.counter = 30;
}
this.hpbar._alpha = 100;
_root.ring.play();
_root.ring._x = _root._xmouse;
_root.ring._y = _root._ymouse;
_root.dragon.dragon.gotoAndStop('hold');
_root.dragon.mcHold = this;
held = true;
} else {
hurt = true;
this.gotoAndStop('hurt');
this.hurt1.gotoAndPlay(1);
hp -= _root.clickdmg;
this.hpbar.counter = 30;
}
}
}
onClipEvent (release) {
_root.dragon.dragon.gotoAndStop(1);
if (held == true) {
_root.ring._alpha = 100;
_root.ring._y = 999999;
_root.dragon.dragon.gotoAndStop('fly');
held = false;
flung = true;
xgrav = (_root.dragon._x - _root.grav._x) * 0.2;
ygrav = (_root.dragon._y - _root.grav._y) * 0.2;
}
}
onClipEvent (releaseOutside) {
_root.dragon.dragon.gotoAndStop(1);
if (held == true) {
_root.ring._alpha = 100;
_root.ring._y = 999999;
_root.dragon.dragon.gotoAndStop('fly');
held = false;
flung = true;
xgrav = (_root.dragon._x - _root.grav._x) * 0.2;
ygrav = (_root.dragon._y - _root.grav._y) * 0.2;
}
}
}
movieClip 1518 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
}
movieClip 1528 {
}
movieClip 1532 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
}
movieClip 1536 {
}
movieClip 1537 {
instance tanky of movieClip 1532 {
onClipEvent (enterFrame) {
if (_parent._parent._parent.hp > 125) {
this.gotoAndStop(1);
} else {
if (_parent._parent._parent.hp > 75) {
this.gotoAndStop(2);
} else {
if (_parent._parent._parent.hp > 0) {
this.gotoAndStop(3);
}
}
}
}
}
}
movieClip 1538 {
}
movieClip 1540 {
}
instance tankoro of movieClip 1540 {
onClipEvent (load) {
var damage = 20;
var hitGround = false;
var delay = 180;
var clone;
var dead = false;
var depth;
_y = 320 + 20 * depth;
var ground = _y;
var hp = 225;
var cc;
var fireCount = 10;
var looper = 0;
var mc;
var fight = false;
}
onClipEvent (enterFrame) {
if (_root.dropIn._currentframe != 1 && _name != 'tankoro') {
loadMovie('', this);
this.removeMovieClip();
removeMovieClip(this);
}
if (_root._currentframe != 511) {
loadMovie('', this);
this.removeMovieClip();
removeMovieClip(this);
}
if (_root.pauseGame == false) {
if (_root.hp <= 0 && _name != 'tankoro') {
loadMovie('', this);
this.removeMovieClip();
}
if (_root.gameOver == false && _root.hp > 0) {
if (_root.wavenum >= 20) {
if (_root.dothings.round != 0) {
if (this.hitTest(_root.deletewall) && _name != 'tankoro') {
_x = -300;
}
if (Math.abs(_x - _root.gut._x) < 20 && _y > _root.gut._y + _root.gut._height) {
_y = _y - 10;
_x = _root.gut._x - moveSpeed;
}
--fireCount;
if (fireCount < 0) {
fireCount = 10;
}
if (this.hitTest(_root.flame) && fireCount == 0) {
--hp;
}
if (this.hitTest(_root.bmbsplode)) {
hp -= 3;
}
looper = 1;
while (looper < 2) {
if (this.hitTest(_root['xsplode' + looper]) && hp > 0) {
hp -= _root['xsplode' + looper].cannon.damage;
}
++looper;
}
if (this.hitTest(_root.fireballz) && hp > 0) {
hp -= _root.fireballz.damage;
_root.fireballz.inUse = false;
_root.fireballz._x = -4000;
_root.firesplode.gotoAndPlay(1);
_root.firesplode._x = _x;
_root.firesplode._y = _y;
}
if (this.hitTest(_root.splode)) {
hp -= 35;
}
if (hp > 125) {
this.tank.tank.tanky.gotoAndStop(1);
} else {
if (hp > 75) {
this.tank.tank.tanky.gotoAndStop(2);
} else {
if (hp > 0) {
this.tank.tank.tanky.gotoAndStop(3);
}
}
}
if (fight == true) {
} else {
_xscale = 100;
if (hp <= 0) {
hp = 0;
dead = true;
if (_root.savefile.data.tankkilled != true) {
_root.savefile.data.tankkilled = true;
_root.savefile.flush();
}
this.tank.tank.gotoAndStop(1);
_root.tanksplode.play();
_root.tanksplode._x = _x;
this.tank.tank.stop();
_root.tanksplode._y = _y;
_root.tankout = false;
_root.tanksplode.swapDepths(_root.getNextHighestDepth());
--_root.wavePeople;
++_root.totalkill;
--_root.numPeople;
mc = _root.oroblood.duplicateMovieClip(_root.getNextHighestDepth() + 'blood', _root.getNextHighestDepth());
this.swapDepths(mc);
mc._x = _x;
mc._y = _y;
mc._alpha = 100;
cc = _root.coin.duplicateMovieClip('cc' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
cc._y = _y;
cc.gotoAndStop(6);
cc._x = _x;
loadMovie('', this);
this.removeMovieClip();
removeMovieClip(this);
}
if (dead == false) {
--delay;
if (_root.tankout == false && _root.dropIn._currentframe == 1 && delay <= 0 && _root.numPeople < _root.maxPeople && _root.wavePeople > _root.numPeople && _root.wavePeople - _root.numPeople > 0) {
delay = (Math.random() * 240 + 60) * (1 / Math.pow(_root.wavenum, 0.125));
clone = this.duplicateMovieClip('tank' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
++_root.numPeople;
_root.enemyarray.push(clone);
clone._x = -300;
clone._alpha = 100;
clone.depth = Math.round(Math.random() * 3 + 1);
_root.dothings.swapDepths(_root.getNextHighestDepth() + 8);
clone.swapDepths(dothings.getDepth() - 2 * (5 - depth));
clone._rotation = 0;
clone.held = false;
clone.dead = false;
clone.flung = false;
_root.tankout = true;
}
if (_x < _root.gut._x - 100) {
_x = _x + 0.5;
}
if (this.tank.tank._currentframe == 182 && hp > 0 && _name != 'tankoro') {
if (_root.gut.gut._currentframe == 1) {
_root.gut.gut.play();
_root.hp -= 15;
}
}
} else {
if (_alpha == 100) {
mc = _root.oroblood.duplicateMovieClip(_root.getNextHighestDepth() + 'blood', _root.getNextHighestDepth());
this.swapDepths(mc);
mc._x = _x;
mc._y = _y;
mc._alpha = 100;
--_root.wavePeople;
--_root.numPeople;
++_root.totalkill;
cc = _root.coin.duplicateMovieClip('cc' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
cc._y = _y;
cc.gotoAndStop(6);
cc._x = _x;
}
_alpha = 99;
gotoAndStop('splode');
if (splode._currentframe == 50) {
loadMovie('', this);
this.removeMovieClip();
removeMovieClip(this);
}
}
}
}
}
}
}
}
onClipEvent (press) {
_root.dragon.dragon.gotoAndStop(2);
hp -= _root.clickdmg;
}
onClipEvent (release) {
_root.dragon.dragon.gotoAndStop(1);
}
}
movieClip 1547 {
frame 1 {
stop();
}
}
movieClip 1549 {
instance hpbar of movieClip 1151 {
onClipEvent (enterFrame) {
if (_root.mech.hp == 100) {
gotoAndStop(1);
} else {
if (_root.mech.hp > 66) {
gotoAndStop(2);
} else {
if (_root.mech.hp > 33) {
gotoAndStop(3);
} else {
if (_root.mech.hp > 0) {
gotoAndStop(4);
} else {
gotoAndStop(5);
}
}
}
}
}
}
}
instance mechhp of movieClip 1549 {
onClipEvent (release) {
if (_root.dropIn._currentframe == 1) {
_root.upgrade4.play();
_root.dragon.isHiding = false;
}
}
onClipEvent (enterFrame) {
_visible = _root.mech.inUse;
}
}
movieClip 1551 {
instance hpbar of movieClip 1151 {
onClipEvent (enterFrame) {
if (_root.wall.hp * _root.wallLVL == 100) {
gotoAndStop(1);
} else {
if (_root.wall.hp * _root.wallLVL > 66) {
gotoAndStop(2);
} else {
if (_root.wall.hp * _root.wallLVL > 33) {
gotoAndStop(3);
} else {
if (_root.wall.hp * _root.wallLVL > 0) {
gotoAndStop(4);
} else {
gotoAndStop(5);
}
}
}
}
}
}
}
instance wallhp of movieClip 1551 {
onClipEvent (release) {
if (_root.dropIn._currentframe == 1) {
_root.upgrade5.play();
_root.dragon.isHiding = false;
}
}
onClipEvent (enterFrame) {
_visible = _root.wall._y == 390;
}
}
// unknown tag 88 length 73
movieClip 1556 {
frame 1 {
stop();
}
frame 5 {
stop();
}
}
instance upgrade1 of movieClip 1556 {
onClipEvent (load) {
var knight = _root.knight1;
var onTop = false;
msg = 'What do you want?';
}
onClipEvent (enterFrame) {
if (knight.upgrading == true) {
gotoAndStop(1);
}
if (onTop) {
gotoAndStop(5);
}
_x = _root.knight1hp._x + 30;
_y = _root.knight1hp._y + 70;
_root.up1._y = _y - 15;
_root.hp1._y = _root.up1._y;
_root.sell1._y = _root.up1._y;
_root.up1._x = _x - 60;
_root.hp1._x = _root.up1._x + 49;
_root.sell1._x = _root.hp1._x + 49;
if (_currentframe == 5) {
_root.up1._visible = true;
_root.hp1._visible = true;
_root.sell1._visible = true;
} else {
_root.up1._visible = false;
_root.hp1._visible = false;
_root.sell1._visible = false;
}
}
onClipEvent (rollOver) {
_root.dragon.isHiding = false;
}
onClipEvent (rollOut) {
if (onTop == false) {
gotoAndStop(1);
}
_root.dragon.isHiding = true;
}
}
instance upgrade2 of movieClip 1556 {
onClipEvent (load) {
var archer = _root.archer1;
var onTop = false;
msg = 'What do you want?';
}
onClipEvent (enterFrame) {
if (archer.upgrading == true) {
gotoAndStop(1);
}
if (onTop) {
gotoAndStop(5);
}
_x = _root.archer1hp._x + 30;
_y = _root.archer1hp._y + 70;
_root.up2._y = _y - 15;
_root.hp2._y = _root.up2._y;
_root.sell2._y = _root.up2._y;
_root.up2._x = _x - 60;
_root.hp2._x = _root.up2._x + 49;
_root.sell2._x = _root.hp2._x + 49;
if (_currentframe == 5) {
_root.up2._visible = true;
_root.hp2._visible = true;
_root.sell2._visible = true;
} else {
_root.up2._visible = false;
_root.hp2._visible = false;
_root.sell2._visible = false;
}
}
onClipEvent (rollOver) {
_root.dragon.isHiding = false;
}
onClipEvent (rollOut) {
if (onTop == false) {
gotoAndStop(1);
}
_root.dragon.isHiding = true;
}
}
instance upgrade3 of movieClip 1556 {
onClipEvent (load) {
var cannon = _root.cannon1;
var onTop = false;
msg = 'What do you want?';
}
onClipEvent (enterFrame) {
if (cannon.upgrading == true) {
gotoAndStop(1);
}
if (onTop) {
gotoAndStop(5);
}
_x = _root.cannon1hp._x + 30;
_y = _root.cannon1hp._y + 70;
_root.up3._y = _y - 15;
_root.hp3._y = _root.up3._y;
_root.sell3._y = _root.up3._y;
_root.up3._x = _x - 60;
_root.hp3._x = _root.up3._x + 49;
_root.sell3._x = _root.hp3._x + 49;
if (_currentframe == 5) {
_root.up3._visible = true;
_root.hp3._visible = true;
_root.sell3._visible = true;
} else {
_root.up3._visible = false;
_root.hp3._visible = false;
_root.sell3._visible = false;
}
}
onClipEvent (rollOver) {
_root.dragon.isHiding = false;
}
onClipEvent (rollOut) {
if (onTop == false) {
gotoAndStop(1);
}
_root.dragon.isHiding = true;
}
}
instance upgrade4 of movieClip 1556 {
onClipEvent (load) {
var onTop = false;
msg = 'What do you want?';
}
onClipEvent (enterFrame) {
if (onTop) {
gotoAndStop(5);
}
_x = _root.mechhp._x + 30;
_y = _root.mechhp._y + 70;
_root.hp4._y = _y - 15;
_root.sell4._y = _y - 15;
_root.hp4._x = _x - 35;
_root.sell4._x = _root.hp4._x + 55;
if (_currentframe == 5) {
_root.hp4._visible = true;
_root.sell4._visible = true;
} else {
_root.hp4._visible = false;
_root.sell4._visible = false;
}
}
onClipEvent (rollOver) {
_root.dragon.isHiding = false;
}
onClipEvent (rollOut) {
if (onTop == false) {
gotoAndStop(1);
}
_root.dragon.isHiding = true;
}
}
instance upgrade5 of movieClip 1556 {
onClipEvent (load) {
var onTop = false;
msg = 'What do you want?';
}
onClipEvent (enterFrame) {
if (mech.spot == this) {
gotoAndStop(1);
}
if (onTop) {
gotoAndStop(5);
}
_x = _root.wallhp._x + 30;
_y = _root.wallhp._y + 70;
_root.up5._y = _y - 15;
_root.hp5._y = _root.up5._y;
_root.sell5._y = _root.up5._y;
_root.up5._x = _x - 60;
_root.hp5._x = _root.up5._x + 49;
_root.sell5._x = _root.hp5._x + 49;
if (_currentframe == 5) {
_root.up5._visible = true;
_root.hp5._visible = true;
_root.sell5._visible = true;
} else {
_root.up5._visible = false;
_root.hp5._visible = false;
_root.sell5._visible = false;
}
}
onClipEvent (rollOver) {
_root.dragon.isHiding = false;
}
onClipEvent (rollOut) {
if (onTop == false) {
gotoAndStop(1);
}
_root.dragon.isHiding = true;
}
}
button 1560 {
on (release) {
if (_root.hasGym == true && _root.gold >= 500 * _root.upgrade1.knight.lvl && _root.upgrade1.knight.spot._name != 'shopspot' && _root.upgrade1.knight.lvl < 6) {
_root.gold -= 500 * _root.upgrade1.knight.lvl;
_root.upgrade1.knight.inCombat = false;
_root.upgrade1.knight.spot.fight = false;
_root.upgrade1.knight.spot = _root.shopspot;
_root.upgrade1.knight.homing = true;
_root.upgrade1.msg = 'LEVEL : ' + (_root.upgrade1.knight.lvl + 1) + '!!!';
}
}
on (rollOver) {
_root.upgrade1.onTop = true;
if (_root.hasGym == true) {
if (_root.upgrade1.knight.lvl < 4) {
_root.upgrade1.msg = 'Level up! Cost $' + _root.upgrade1.knight.lvl * 500;
} else {
_root.upgrade1.msg = 'MAXIMUM LEVEL!!';
}
} else {
_root.upgrade1.msg = 'Buy the Gym first!!';
}
}
on (rollOut) {
_root.upgrade1.onTop = false;
_root.upgrade1.msg = 'What do you want?';
}
}
button 1564 {
on (release) {
if (_root.numhppacks > 0) {
_root.upgrade1.knight.hp += 100;
--_root.numhppacks;
if (_root.numhppacks > 0) {
_root.upgrade1.msg = 'Use a healthpack! ' + _root.numhppacks + ' left.';
} else {
_root.upgrade1.msg = 'No healthpacks left...';
}
}
}
on (rollOver) {
_root.upgrade1.onTop = true;
if (_root.numhppacks > 0) {
_root.upgrade1.msg = 'Use a healthpack! ' + _root.numhppacks + ' left.';
} else {
_root.upgrade1.msg = 'No healthpacks left...';
}
}
on (rollOut) {
_root.upgrade1.onTop = false;
_root.upgrade1.msg = 'What do you want?';
}
}
button 1568 {
on (release) {
if (_root.upgrade1.knight.inUse == true && _root.upgrade1.knight.spot._name != 'shopspot') {
_root.gold += 400 * _root.upgrade1.knight.lvl;
_root.upgrade1.knight.inUse = false;
_root.upgrade1.knight.spot.fight = false;
_root.upgrade1.knight.inCombat = false;
_root.upgrade1.knight.homing = false;
_root.upgrade1.knight.spot = _root.homebase;
_root.upgrade1.knight.hp = 0;
_root.upgrade1.knight.knight.gotoAndStop('die');
_root.upgrade1.msg = 'This knight is gone. =\'(';
_root.upgrade1.gotoAndStop(1);
}
}
on (rollOver) {
_root.upgrade1.onTop = true;
if (_root.upgrade1.knight.inUse == false) {
_root.upgrade1.msg = 'This knight is gone. =\'(';
} else {
_root.upgrade1.msg = 'Sell this knight. =(';
}
}
on (rollOut) {
_root.upgrade1.onTop = false;
_root.upgrade1.msg = 'What do you want?';
}
}
button 1569 {
on (release) {
if (_root.hasGym == true && _root.gold >= 500 * _root.upgrade2.archer.lvl && _root.upgrade2.archer.spot._name != 'shopspot' && _root.upgrade2.archer.lvl < 6) {
_root.gold -= 500 * _root.upgrade2.archer.lvl;
_root.upgrade2.archer.inCombat = false;
_root.upgrade2.archer.spot.fight = false;
_root.upgrade2.archer.spot = _root.shopspot;
_root.upgrade2.archer.homing = true;
_root.upgrade2.msg = 'LEVEL : ' + (_root.upgrade2.archer.lvl + 1) + '!!!';
}
}
on (rollOver) {
_root.upgrade2.onTop = true;
if (_root.hasGym == true) {
if (_root.upgrade2.archer.lvl < 5) {
_root.upgrade2.msg = 'Level up! Cost $' + _root.upgrade2.archer.lvl * 500;
} else {
_root.upgrade2.msg = 'MAXIMUM LEVEL!!';
}
} else {
_root.upgrade2.msg = 'Buy the Gym first!!';
}
}
on (rollOut) {
_root.upgrade2.onTop = false;
_root.upgrade2.msg = 'What do you want?';
}
}
button 1570 {
on (release) {
if (_root.numhppacks > 0) {
_root.upgrade2.archer.hp += 100;
--_root.numhppacks;
if (_root.numhppacks > 0) {
_root.upgrade2.msg = 'Use a healthpack! ' + _root.numhppacks + ' left.';
} else {
_root.upgrade2.msg = 'No healthpacks left...';
}
}
}
on (rollOver) {
_root.upgrade2.onTop = true;
if (_root.numhppacks > 0) {
_root.upgrade2.msg = 'Use a healthpack! ' + _root.numhppacks + ' left.';
} else {
_root.upgrade2.msg = 'No healthpacks left...';
}
}
on (rollOut) {
_root.upgrade2.onTop = false;
_root.upgrade2.msg = 'What do you want?';
}
}
button 1571 {
on (release) {
if (_root.upgrade2.archer.inUse == true && _root.upgrade2.archer.spot._name != 'shopspot') {
_root.gold += 400 * _root.upgrade2.archer.lvl;
_root.upgrade2.archer.inUse = false;
_root.upgrade2.archer.spot.fight = false;
_root.upgrade2.archer.inCombat = false;
_root.upgrade2.archer.homing = false;
_root.upgrade2.archer.spot = _root.homebase;
_root.upgrade2.archer.hp = 0;
_root.upgrade2.archer.archer.gotoAndStop('die');
_root.upgrade2.msg = 'This archer is gone. =\'(';
_root.upgrade2.gotoAndStop(1);
}
}
on (rollOver) {
_root.upgrade2.onTop = true;
if (_root.upgrade2.archer.inUse == false) {
_root.upgrade2.msg = 'This archer is gone. =\'(';
} else {
_root.upgrade2.msg = 'Sell this archer. =(';
}
}
on (rollOut) {
_root.upgrade2.onTop = false;
_root.upgrade2.msg = 'What do you want?';
}
}
button 1572 {
on (release) {
if (_root.gold >= 500 * _root.upgrade3.cannon.lvl && _root.upgrade3.cannon.spot._name != 'shopspot' && _root.upgrade3.cannon.lvl < 3) {
_root.gold -= 500 * _root.upgrade3.cannon.lvl;
_root.upgrade3.cannon.inCombat = false;
_root.upgrade3.cannon.spot.fight = false;
_root.upgrade3.cannon.spot = _root.shopspot;
_root.upgrade3.cannon.homing = true;
_root.upgrade3.msg = 'LEVEL : ' + (_root.upgrade3.cannon.lvl + 1) + '!!!';
}
}
on (rollOver) {
_root.upgrade3.onTop = true;
if (_root.upgrade3.cannon.lvl < 3) {
_root.upgrade3.msg = 'Level up! Cost $' + _root.upgrade3.cannon.lvl * 500;
} else {
_root.upgrade3.msg = 'MAXIMUM LEVEL!!';
}
}
on (rollOut) {
_root.upgrade3.onTop = false;
_root.upgrade3.msg = 'What do you want?';
}
}
button 1573 {
on (release) {
if (_root.numhppacks > 0) {
_root.upgrade3.cannon.hp += 100;
--_root.numhppacks;
if (_root.numhppacks > 0) {
_root.upgrade3.msg = 'Use a healthpack! ' + _root.numhppacks + ' left.';
} else {
_root.upgrade3.msg = 'No healthpacks left...';
}
}
}
on (rollOver) {
_root.upgrade3.onTop = true;
if (_root.numhppacks > 0) {
_root.upgrade3.msg = 'Use a healthpack! ' + _root.numhppacks + ' left.';
} else {
_root.upgrade3.msg = 'No healthpacks left...';
}
}
on (rollOut) {
_root.upgrade3.onTop = false;
_root.upgrade3.msg = 'What do you want?';
}
}
button 1574 {
on (release) {
if (_root.upgrade3.cannon.inUse == true && _root.upgrade3.cannon.spot._name != 'shopspot') {
_root.gold += 400 * _root.upgrade3.cannon.lvl;
_root.upgrade3.cannon.inUse = false;
_root.upgrade3.cannon.spot.fight = false;
_root.upgrade3.cannon.inCombat = false;
_root.upgrade3.cannon.homing = false;
_root.upgrade3.cannon.spot = _root.homebase;
_root.upgrade3.cannon.hp = 0;
_root.upgrade3.cannon.cannon.gotoAndStop('die');
_root.upgrade3.msg = 'This cannon is gone. =\'(';
_root.upgrade3.gotoAndStop(1);
}
}
on (rollOver) {
_root.upgrade3.onTop = true;
if (_root.upgrade3.cannon.inUse == false) {
_root.upgrade3.msg = 'This cannon is gone. =\'(';
} else {
_root.upgrade3.msg = 'Sell this cannon. =(';
}
}
on (rollOut) {
_root.upgrade3.onTop = false;
_root.upgrade3.msg = 'What do you want?';
}
}
button 1575 {
on (release) {
if (_root.numhppacks > 0) {
_root.mech.hp = 100;
--_root.numhppacks;
if (_root.numhppacks > 0) {
_root.upgrade4.msg = 'Use a healthpack! ' + _root.numhppacks + ' left.';
} else {
_root.upgrade4.msg = 'No healthpacks left...';
}
}
}
on (rollOver) {
_root.upgrade4.onTop = true;
if (_root.numhppacks > 0) {
_root.upgrade4.msg = 'Use a healthpack! ' + _root.numhppacks + ' left.';
} else {
_root.upgrade4.msg = 'No healthpacks left...';
}
}
on (rollOut) {
_root.upgrade4.onTop = false;
_root.upgrade4.msg = 'What do you want?';
}
}
button 1576 {
on (release) {
if (_root.mech.inUse == true) {
_root.gold += 400;
_root.mech.inUse = false;
_root.mech.spot.fight = false;
_root.mech.inCombat = false;
_root.mech.homing = false;
_root.mech.spot = _root.homebase4;
_root.mech.hp = 0;
_root.mech.gotoAndStop('die');
_root.upgrade4.msg = 'This mech is dead. QQ';
_root.upgrade4.gotoAndStop(1);
}
}
on (rollOver) {
_root.upgrade4.onTop = true;
if (_root.mech.inUse == false) {
_root.upgrade4.msg = 'This mech is dead. QQ';
} else {
_root.upgrade4.msg = 'Sell this mech. =(';
}
}
on (rollOut) {
_root.upgrade4.onTop = false;
_root.upgrade4.msg = 'What do you want?';
}
}
button 1577 {
on (release) {
if (_root.gold >= 1000 && _root.wallLVL < 3 && _root.mech.inUse) {
if (_root.gold >= 1000 && _root.mech.inUse) {
_root.mech.homing = true;
_root.mech.spot = _root.wall;
_root.mech.work = 'up';
_root.gold -= 1000;
}
_root.upgrade5.msg = 'LEVEL : ' + (_root.wallLVL + 1) + '!!!';
}
}
on (rollOver) {
if (_root.mech.inUse == true) {
grade5.onTop = true;
if (_root.wallLVL < 3) {
_root.upgrade5.msg = 'Level up! Cost $1000';
} else {
_root.upgrade5.msg = 'MAXIMUM LEVEL!!';
}
} else {
_root.upgrade5.msg = 'Hire a mechanic first!';
}
}
on (rollOut) {
_root.upgrade5.onTop = false;
_root.upgrade5.msg = 'What do you want?';
}
}
button 1578 {
on (release) {
if (_root.mech.inUse == true) {
if (_root.haswall == true) {
_root.mech.homing = true;
_root.mech.spot = _root.wall;
_root.mech.work = 'heal';
}
_root.upgrade5.msg = 'Repairing wall...';
} else {
_root.upgrade5.msg = 'Hire a mechanic first!';
}
}
on (rollOver) {
_root.upgrade5.onTop = true;
if (_root.mech.inUse) {
_root.upgrade5.msg = 'Repair the wall.';
} else {
_root.upgrade5.msg = 'Hire a mechanic first!';
}
}
on (rollOut) {
_root.upgrade5.onTop = false;
_root.upgrade5.msg = 'What do you want?';
}
}
button 1579 {
on (release) {
if (_root.haswall == true) {
_root.gold += 400 * _root.wallLVL;
_root.haswall = false;
_root.wallLVL = 0;
_root.upgrade5.msg = 'This wall is gone. =\'(';
_root.upgrade5.gotoAndStop(1);
}
}
on (rollOver) {
_root.upgrade5.onTop = true;
if (_root.upgrade5.cannon.inUse == false) {
_root.upgrade5.msg = 'This wall is gone. =\'(';
} else {
_root.upgrade5.msg = 'Sell this wall. =(';
}
}
on (rollOut) {
_root.upgrade5.onTop = false;
_root.upgrade5.msg = 'What do you want?';
}
}
movieClip 1581 {
}
movieClip 1596 {
frame 38 {
stop();
}
}
movieClip 1607 {
}
movieClip 1614 {
}
movieClip 1619 {
}
movieClip 1620 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
instance attacking of movieClip 1607 {
onClipEvent (enterFrame) {
if (_root.pauseMenu._visible == true) {
stop();
} else {
play();
}
}
}
frame 4 {
stop();
}
instance fixing of movieClip 1614 {
onClipEvent (enterFrame) {
if (_root.pauseMenu._visible == true) {
stop();
} else {
play();
}
}
}
frame 5 {
stop();
}
instance run of movieClip 1619 {
onClipEvent (enterFrame) {
if (_root.pauseMenu._visible == true) {
stop();
} else {
play();
}
}
}
}
instance mech of movieClip 1620 {
onClipEvent (load) {
var speed = 3;
var inCombat = false;
if (_root.savefile.data.mechhp == undefined || _root.continueGame == false) {
var hp = 100;
} else {
var hp = _root.savefile.data.mechhp;
}
var damage = 1;
var counter = 30;
var depth = 4;
var xdir = -1;
var ydir = -1;
var spot = _root.homebase4;
var homing = false;
if (_root.savefile.data.mechUse == undefined || _root.continueGame == false) {
var inUse = false;
} else {
var inUse = _root.savefile.data.mechUse;
}
var maxhp = 100;
var upgrading = false;
var countdown = 300;
var doWork = false;
var upgradeNum = 150;
var work = '';
var deadgone = false;
}
onClipEvent (enterFrame) {
if (inUse == false && deadgone == true) {
_x = 9999;
_y = 9999;
} else {
deadgone = false;
}
if (_y < _root.archer1._y && _root.archer1.getDepth() < this.getDepth()) {
this.swapDepths(_root.archer1);
}
if (_y < _root.cannon1._y && _root.cannon1.getDepth() < this.getDepth()) {
this.swapDepths(_root.cannon1);
}
if (_y < _root.knight1._y && _root.knight1.getDepth() < this.getDepth()) {
this.swapDepths(_root.knight1);
}
if (_root.pauseGame == false) {
if (hp > 100) {
hp = 100;
}
if (doWork == true) {
gotoAndStop('fixing');
if (work == 'heal') {
if (spot._name == 'wall') {
++spot.hp;
if (this.fixing._currentframe == 10) {
_root.gold -= 100;
if (_root.gold < 0) {
_root.gold = 0;
}
}
if (spot.hp >= _root.wallLVL * 100) {
spot.hp = _root.wallLVL * 100;
doWork = false;
spot = _root.homebase4;
homing = true;
}
if (_root.gold <= 0) {
spot.hp = _root.wallLVL * 100;
doWork = false;
spot = _root.homebase4;
homing = true;
}
}
if (spot._name == 'cannon1') {
++spot.hp;
if (this.fixing._currentframe == 10) {
_root.gold -= 100;
if (_root.gold < 0) {
_root.gold = 0;
}
}
if (spot.hp >= 100) {
spot.hp = 100;
doWork = false;
spot = _root.homebase4;
homing = true;
}
if (_root.gold <= 0) {
spot.hp = _root.wallLVL * 100;
doWork = false;
spot = _root.homebase4;
homing = true;
}
}
} else {
if (work == 'up') {
if (this.fixing._currentframe == 8) {
upgradeNum -= 15;
}
if (upgradeNum <= 0) {
if (spot._name == 'cannon1') {
_root.cannon1.nextFrame();
} else {
if (spot._name == 'wall') {
++_root.wallLVL;
_root.wall.hp = (_root.wall.hp / (_root.wallLVL - 1)) * _root.wallLVL;
}
}
doWork = false;
spot = _root.homebase4;
homing = true;
}
}
}
} else {
_visible = true;
if (spot._name == 'wall' && this.hitTest(_root.wall)) {
doWork = true;
_x = _root.wall._x + 25;
upgradeNum = 150;
gotoAndStop('fixing');
}
if (spot._name == 'cannon1' && this.hitTest(_root.cannon1)) {
doWork = true;
if (this.getDepth() < _root.cannon1.getDepth()) {
this.swapDepths(_root.cannon1);
}
_y = _root.cannon1._y;
upgradeNum = 150;
gotoAndStop('fixing');
}
damage = 1;
if (_root.dragon.mchold._name == spot._name && _root.dragon.mchold.held == true) {
spot = _root.homebase4;
inCombat = false;
}
if (spot._y < 340 && spot._name != 'shopspot') {
spot = _root.homebase4;
inCombat = false;
}
if (this._currentframe == 2) {
_alpha = _alpha - 1;
_alpha = _alpha - 1;
if (_alpha <= 0) {
_y = 9999;
}
}
if (inUse == true) {
if (spot._name == 'homebase4') {
inCombat = false;
}
if (inCombat == true) {
damage = 1;
spot._xscale = (Math.abs(_xscale) / _xscale) * 100;
spot.fight = true;
spot.hpbar.counter = 30;
spot.hpbar._alpha = 100;
hpbar.counter = 30;
hpbar._alpha = 100;
if (this.attacking._currentframe == 6 || this.attacking._currentframe == 16) {
spot.hp -= damage;
}
if (spot.hp <= 0) {
spot.gotoAndStop('smack');
spot.dead = true;
spot.fight = false;
spot = _root.homebase4;
inCombat = false;
}
if (hp <= 0) {
this.gotoAndStop('die');
inCombat = false;
inUse = false;
spot.fight = false;
spot = _root.homebase4;
hp = 0;
} else {
this.gotoAndStop('attacking');
}
} else {
if (upgrading == false && spot._name != 'homebase4' && spot._name != 'wall' && spot._name != 'cannon1' && (this.hitTest(spot) || spot.hitTest(_x - 10 * (Math.abs(_xscale) / _xscale), _y, true)) && _y == spot._y) {
spot.opp = this;
spot.swapDepths(this);
spot.fight = true;
inCombat = true;
}
--counter;
if (_y >= _root.lane1._y && _y <= _root.lane2._y) {
depth = 1;
}
if (_y > _root.lane2._y && _y <= _root.lane3._y) {
depth = 2;
}
if (_y > _root.lane3._y && _y <= _root.lane4._y) {
depth = 3;
}
if (_y > _root.lane4._y && _y <= _root.lane5._y) {
depth = 4;
}
if (homing == true && inCombat == false) {
if (spot._x > _x) {
_xscale = -100;
this.upgrd._xscale = -100;
} else {
_xscale = 100;
}
this.gotoAndStop('run');
if (Math.abs(spot._x + spot._width / 2 - _x) < speed) {
_x = _x + Math.abs(spot._x + spot._width / 2 - _x) * ((spot._x - _x) / Math.abs(spot._x - _x));
} else {
_x = _x + speed * ((spot._x - _x) / Math.abs(spot._x - _x));
}
if (Math.abs(spot._y - _y) < speed) {
_y = _y + Math.abs(spot._y - _y) * ((spot._y - _y) / Math.abs(spot._y - _y));
} else {
_y = _y + speed * ((spot._y - _y) / Math.abs(spot._y - _y));
}
}
if (spot.hp <= 0 || spot.dead == true) {
spot = _root.homebase4;
}
if (this.hitTest(_root.homebase4) && spot._name == 'homebase4') {
homing = false;
this.gotoAndStop('stand');
_xscale = 100;
}
if (hp <= 0) {
hp = 0;
gotoAndStop('die');
}
}
}
}
}
}
}
movieClip 1623 {
}
movieClip 1624 {
}
movieClip 1625 {
}
instance icefang of movieClip 1625 {
onClipEvent (load) {
var delay = 50;
}
onClipEvent (enterFrame) {
if (_name != 'icefang') {
--delay;
_alpha = _alpha - 1;
_alpha = _alpha - 1;
if (delay < 0) {
this.removeMovieClip();
removeMovieClip(this);
this.unloadMovie();
loadMovie('', this);
}
}
}
}
movieClip 1630 {
}
instance flamethrower of movieClip 1630 {
onClipEvent (load) {
var delay = 30;
}
onClipEvent (enterFrame) {
if (_name != 'flamethrower') {
--delay;
_alpha = _alpha - 1;
_alpha = _alpha - 1;
if (delay < 0) {
this.removeMovieClip();
removeMovieClip(this);
this.unloadMovie();
loadMovie('', this);
}
}
}
}
movieClip 1632 {
}
instance lane4 of movieClip 1632 {
onClipEvent (load) {
_visible = false;
}
}
instance lane3 of movieClip 1632 {
onClipEvent (load) {
_visible = false;
}
}
instance lane2 of movieClip 1632 {
onClipEvent (load) {
_visible = false;
}
}
instance lane1 of movieClip 1632 {
onClipEvent (load) {
_visible = false;
}
}
instance lane5 of movieClip 1632 {
onClipEvent (load) {
_visible = false;
}
}
movieClip 1634 {
}
instance homebase of movieClip 1634 {
onClipEvent (load) {
_visible = false;
var hp = 999999;
var dead = true;
}
}
instance steppad of movieClip 1634 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_x = _root.homebase - 417.3;
}
}
movieClip 1635 {
}
instance shopspot of movieClip 1635 {
onClipEvent (load) {
var hp = 99999999;
var dead = false;
}
}
instance lane4 of movieClip 1632 {
onClipEvent (load) {
_visible = false;
}
}
instance lane3 of movieClip 1632 {
onClipEvent (load) {
_visible = false;
}
}
instance lane2 of movieClip 1632 {
onClipEvent (load) {
_visible = false;
}
}
instance lane1 of movieClip 1632 {
onClipEvent (load) {
_visible = false;
}
}
instance lane5 of movieClip 1632 {
onClipEvent (load) {
_visible = false;
}
}
instance homebase4 of movieClip 1634 {
onClipEvent (load) {
_visible = false;
var hp = 999999;
var dead = false;
}
}
instance steppad4 of movieClip 1634 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_x = _root.homebase - 173.6;
}
}
instance shopspot of movieClip 1635 {
onClipEvent (load) {
var hp = 99999999;
var dead = false;
}
}
instance lane4 of movieClip 1632 {
onClipEvent (load) {
_visible = false;
}
}
instance lane3 of movieClip 1632 {
onClipEvent (load) {
_visible = false;
}
}
instance lane2 of movieClip 1632 {
onClipEvent (load) {
_visible = false;
}
}
instance lane1 of movieClip 1632 {
onClipEvent (load) {
_visible = false;
}
}
instance lane5 of movieClip 1632 {
onClipEvent (load) {
_visible = false;
}
}
instance homebase2 of movieClip 1634 {
onClipEvent (load) {
_visible = false;
var hp = 999999;
var dead = false;
}
onClipEvent (enterFrame) {
}
}
instance steppad2 of movieClip 1634 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_x = _root.homebase2 - 417.3;
}
}
instance shopspot of movieClip 1635 {
onClipEvent (load) {
var hp = 99999999;
var dead = false;
}
}
instance fireArea of movieClip 1634 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_x = _root.cannon1._x - _width;
}
}
movieClip 1640 {
}
movieClip 1643 {
}
movieClip 1645 {
}
movieClip 1651 {
}
movieClip 1657 {
frame 5 {
stop();
}
}
movieClip 1664 {
}
movieClip 1670 {
frame 5 {
if (_parent.counter == 1) {
_parent.held = true;
} else {
_parent.hurt = false;
}
}
}
movieClip 1677 {
frame 1 {
_root.playSplat();
if (_root.savefile.data.firstblood != true) {
_root.savefile.data.firstblood = true;
_root.savefile.flush();
_root.firstbloodsound.play();
}
}
frame 9 {
stop();
}
}
movieClip 1678 {
frame 1 {
stop();
}
instance of movieClip 1640 {
onClipEvent (enterFrame) {
if (_root.pauseMenu._visible == true) {
stop();
} else {
play();
}
}
}
instance hpbar of movieClip 1643 {
onClipEvent (load) {
stop();
_alpha = 0;
var counter = 0;
}
onClipEvent (enterFrame) {
stop();
if (counter > 0) {
--counter;
_alpha = 100;
}
if (counter == 0) {
_alpha = _alpha - 5;
}
gotoAndStop(11 - _parent.hp);
if (Key.isDown(16)) {
counter = 30;
_alpha = 100;
}
}
}
frame 2 {
stop();
}
instance of movieClip 1645 {
onClipEvent (enterFrame) {
if (_root.pauseMenu._visible == true) {
stop();
} else {
play();
}
}
}
frame 3 {
stop();
}
instance attacking of movieClip 1651 {
onClipEvent (enterFrame) {
if (_root.pauseMenu._visible == true) {
stop();
} else {
play();
}
}
}
instance hpbar of movieClip 1643 {
onClipEvent (load) {
stop();
_alpha = 0;
var counter = 0;
}
onClipEvent (enterFrame) {
stop();
if (counter > 0) {
--counter;
_alpha = 100;
}
if (counter == 0) {
_alpha = _alpha - 5;
}
gotoAndStop(11 - _parent.hp);
if (Key.isDown(16)) {
counter = 30;
_alpha = 100;
}
}
}
frame 4 {
stop();
}
instance hit of movieClip 1664 {
onClipEvent (enterFrame) {
if (_root.pauseMenu._visible == true) {
stop();
} else {
play();
}
}
}
frame 5 {
stop();
}
instance hurt1 of movieClip 1670 {
onClipEvent (enterFrame) {
if (_root.pauseMenu._visible == true) {
stop();
} else {
play();
}
}
}
frame 6 {
stop();
}
}
movieClip 1683 {
}
movieClip 1692 {
frame 7 {
_parent.hurt = false;
}
}
movieClip 1694 {
frame 1 {
stop();
}
}
movieClip 1715 {
}
movieClip 1723 {
}
movieClip 1731 {
frame 15 {
stop();
}
}
movieClip 1732 {
frame 1 {
stop();
}
instance of movieClip 1683 {
onClipEvent (enterFrame) {
if (_root.pauseMenu._visible == true) {
stop();
} else {
play();
}
}
}
instance hpbar of movieClip 1465 {
onClipEvent (load) {
stop();
_alpha = 0;
var counter = 0;
}
onClipEvent (enterFrame) {
stop();
if (counter > 0) {
--counter;
_alpha = 100;
}
if (counter == 0) {
_alpha = _alpha - 5;
}
if (_currentframe == 25) {
_visible = false;
} else {
_visible = true;
}
gotoAndStop(25 - _parent.hp);
if (Key.isDown(16)) {
counter = 30;
_alpha = 100;
}
}
}
frame 2 {
stop();
}
instance hurt1 of movieClip 1692 {
onClipEvent (enterFrame) {
if (_root.pauseMenu._visible == true) {
stop();
} else {
play();
}
}
}
frame 3 {
stop();
}
instance of movieClip 1694 {
onClipEvent (enterFrame) {
if (_root.pauseMenu._visible == true) {
stop();
} else {
play();
}
}
}
frame 4 {
stop();
}
instance attacking of movieClip 1715 {
onClipEvent (enterFrame) {
if (_root.pauseMenu._visible == true) {
stop();
} else {
play();
}
}
}
instance hpbar of movieClip 1465 {
onClipEvent (load) {
stop();
_alpha = 0;
var counter = 0;
}
onClipEvent (enterFrame) {
stop();
if (counter > 0) {
--counter;
_alpha = 100;
}
if (counter == 0) {
_alpha = _alpha - 5;
}
if (_currentframe == 25) {
_visible = false;
} else {
_visible = true;
}
gotoAndStop(25 - _parent.hp);
}
}
frame 5 {
stop();
}
instance hit1 of movieClip 1723 {
onClipEvent (enterFrame) {
if (_root.pauseMenu._visible == true) {
stop();
} else {
play();
}
}
}
frame 6 {
stop();
}
}
instance buffguyasd1 of movieClip 1732 {
onClipEvent (load) {
var defense = 3;
var damage = 3;
var hitGround = false;
var first;
var hurt = false;
var held = false;
var flung = false;
var moveSpeed = Math.random() * 5 + _root.wavenum / 5;
var xgrav;
var ygrav;
var shdw = _root.nmeshade;
var delay = 180;
var clone;
var dead = false;
var depth;
_y = 320 + 20 * depth;
var ground = _y;
var hp = 25;
var cc;
var fight = false;
var opp;
var fireCount = 10;
var looper = 0;
var mc;
var frozen = false;
var icedelay = 50;
var icemc;
}
onClipEvent (enterFrame) {
if (frozen == true) {
--icedelay;
}
if (icedelay <= 0 && frozen == true) {
frozen = false;
}
if (_root._currentframe != 511) {
loadMovie('', this);
this.removeMovieClip();
removeMovieClip(this);
}
if (_root.pauseGame == false && frozen == false) {
if (this.hit1._currentframe == 2) {
mc = _root.oroblood.duplicateMovieClip(_root.getNextHighestDepth() + 'blood', _root.getNextHighestDepth());
this.swapDepths(mc);
mc._x = _x;
mc._y = _y;
mc._alpha = 100;
}
if (_root.hp <= 0 && _name != 'buffguyasd1') {
loadMovie('', this);
this.removeMovieClip();
}
if (_root.gameOver == false && _root.hp > 0) {
if (_root.wavenum >= 2) {
if (_root.dothings.round != 0) {
if (this.hitTest(_root.deletewall) && _name != 'buffguyasd1') {
_x = -300;
}
if (Math.abs(_x - _root.gut._x) < 20 && _y > _root.gut._y + _root.gut._height) {
_y = _y - 10;
_x = _root.gut._x - moveSpeed;
}
--fireCount;
if (fireCount < 0) {
fireCount = 10;
}
if (this.hitTest(_root.flame) && fireCount == 0) {
--hp;
mc = _root.flamethrower.duplicateMovieClip('flame' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
mc._x = _x;
mc._y = _y;
hurt = true;
this.gotoAndStop('hurt');
if (hp <= 0 && _y == ground) {
gotoAndStop('smack');
dead = true;
fight = false;
}
}
if (this.hitTest(_root.bmbsplode)) {
if (flung == false) {
hp -= 3;
}
this.hpbar.counter = 30;
this.hpbar._alpha = 100;
_y = _y - 50;
fight = false;
flung = true;
held = false;
ygrav = -10;
gotoAndStop('held');
}
looper = 1;
while (looper < 2) {
if (this.hitTest(_root['xsplode' + looper]) && hp > 0) {
if (flung == false) {
hp -= _root['xsplode' + looper].cannon.damage;
}
this.hpbar.counter = 30;
this.hpbar._alpha = 100;
fight = false;
flung = true;
held = false;
gotoAndStop('held');
if (_root['xsplode' + looper]._currentframe != 4) {
_y = _y - 50;
ygrav = -10 - 5 * _root['xsplode' + looper].cannon.lvl;
xgrav = Math.round(_x - _root['xsplode' + looper]._x) / 20;
} else {
frozen = true;
icedelay = 50;
icemc = _root.icefang.duplicateMovieClip('ice' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
icemc.swapDepths(this.getDepth() + 1);
icemc._x = _x;
icemc._y = _y;
}
}
++looper;
}
if (this.hitTest(_root.fireballz) && hp > 0) {
hp -= _root.fireballz.damage;
_root.fireballz.inUse = false;
_root.fireballz._x = -4000;
_root.firesplode.gotoAndPlay(1);
_root.firesplode._x = _x;
_root.firesplode._y = _y;
_y = _y - 50;
fight = false;
flung = true;
held = false;
ygrav = -20;
gotoAndStop('held');
xgrav = -5;
}
if (this.hitTest(_root.splode) && hp > 0 && _currentframe != 6) {
if (flung == false) {
hp /= 2;
}
this.hpbar.counter = 30;
this.hpbar._alpha = 100;
_y = _y - 50;
fight = false;
flung = true;
held = false;
ygrav = -20;
gotoAndStop('held');
xgrav = Math.round(_x - _root.splode._x) / 20;
}
if (fight == true) {
gotoAndStop('attack');
if (this.attacking._currentframe == 12 || this.attacking._currentframe == 18 || this.attacking._currentframe == 24 || this.attacking._currentframe == 30 || this.attacking._currentframe == 36 || this.attacking._currentframe == 42 || this.attacking._currentframe == 48) {
opp.hp -= damage;
}
if (hp <= 0) {
fight = false;
dead = true;
}
} else {
_xscale = 100;
looper = 1;
while (looper < 2) {
if (_x > _root.steppad._x && _x < _root.deletewall._x && _root['knight' + looper].inCombat == false && _root['knight' + looper].spot._name == 'homebase' && hp > 0) {
_root['knight' + looper].homing = true;
_root['knight' + looper].spot = this;
if (_root['knight' + looper]._currentframe == 6) {
if (_root['knight' + looper].spot._name != _name) {
_root['knight' + looper].spot2 = this;
}
}
}
if (_x > _root.steppad2._x && _x < _root.deletewall._x && _root['archer' + looper].inCombat == false && _root['archer' + looper].spot._name == 'homebase2' && hp > 0) {
_root['archer' + looper].homing = true;
_root['archer' + looper].spot = this;
}
if (_x > _root.steppad4._x && _x < _root.deletewall._x && _root.mech.inCombat == false && _root.mech.spot._name == 'homebase4' && hp > 0) {
_root.mech.homing = true;
_root.mech.spot = this;
}
if (_x > _root.fireArea._x && _x < _root.deletewall._x && _root['cannon' + looper].firing == false && hp > 0) {
_root['cannon' + looper].firing = true;
_root['cannon' + looper].spot = this;
}
++looper;
}
if (this.hit1._currentframe == 22 || held == true || flung == true) {
hitGround = false;
hurt = false;
}
if (hp <= 0) {
hp = 0;
}
if (dead == false) {
if (this.hitTest(_root.rock) && _root.rock.flung == true && _root.rock.depth == this.depth) {
_root.rock.flung = false;
_root.rock._rotation = 0;
_root.rock._x = _x;
_root.rock._y = _y;
--_root.rock.hits;
gotoAndStop('smack');
dead = true;
_y = ground;
flung = true;
this.swapDepths(_root.rock);
if (_alpha <= 0) {
this.removeMovieClip();
}
}
if (this.hitTest(_root.poop) && _root.poop.depth == depth) {
_root.poop.flung = false;
_root.poop._rotation = 0;
_root.poop._x = _x;
_root.poop._y = _y;
--_root.poop.hits;
_root.poop.play();
gotoAndStop('smack');
dead = true;
_y = ground;
flung = true;
this.swapDepths(_root.poop);
if (_alpha <= 0) {
this.removeMovieClip();
}
}
--delay;
if (_root.dropIn._currentframe == 1 && delay <= 0 && _root.numPeople < _root.maxPeople && _root.wavePeople > _root.numPeople && _root.wavePeople - _root.numPeople > 0) {
delay = (Math.random() * 240 + 60) * (1 / Math.pow(_root.wavenum, 0.2));
clone = this.duplicateMovieClip('guy' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
++_root.numPeople;
_root.enemyarray.push(clone);
clone._x = -300;
clone._alpha = 100;
clone.depth = Math.round(Math.random() * 3 + 1);
_root.dothings.swapDepths(_root.getNextHighestDepth() + 8);
clone.swapDepths(dothings.getDepth() - 2 * (5 - depth));
clone._rotation = 0;
clone.held = false;
clone.dead = false;
clone.flung = false;
}
if (held == false && flung == false && hitGround == false) {
if (hurt == false) {
if (_root.gut.hitTest(_x + _width / 2, _y, true)) {
gotoAndStop('attack');
if (this.attacking._currentframe == 12 || this.attacking._currentframe == 18 || this.attacking._currentframe == 24 || this.attacking._currentframe == 30 || this.attacking._currentframe == 36 || this.attacking._currentframe == 42 || this.attacking._currentframe == 48) {
_root.hp -= damage;
if (_root.gut.gut._currentframe == 1) {
_root.gut.gut.play();
}
}
} else {
if (_root.wall.hitTest(_x + _width / 2, _y, true)) {
gotoAndStop('attack');
if (this.attacking._currentframe == 12 || this.attacking._currentframe == 18 || this.attacking._currentframe == 24 || this.attacking._currentframe == 30 || this.attacking._currentframe == 36 || this.attacking._currentframe == 42 || this.attacking._currentframe == 48) {
_root.wall.hp -= damage;
if (_root.wall.wall._currentframe == 1) {
_root.wall.wall.play();
}
}
} else {
gotoAndStop('run');
_x = _x + moveSpeed;
if (depth == 4 && _x >= 470) {
_y = _y - 1;
_y = _y - 1;
}
}
}
} else {
if (this.hurt1._currentframe == 6) {
hurt = false;
}
}
}
if (held == true) {
gotoAndStop('held');
_x = _root._xmouse;
_y = _root._ymouse + _height / 2;
shdw._x = _x;
if (held == true) {
if (_root.dragon._y <= 180) {
shdw._root.nmeshade._xscale = 70;
shdw._yscale = 70;
shdw._y = 340;
}
if (_root.dragon._y > 180 && _root.dragon._y <= 200) {
shdw._y = 360;
shdw._xscale = 80;
shdw._yscale = 80;
}
if (_root.dragon._y > 200 && _root.dragon._y <= 220) {
shdw._y = 380;
shdw._xscale = 90;
shdw._yscale = 90;
}
if (_root.dragon._y > 220) {
shdw._y = 400;
shdw._xscale = 100;
shdw._yscale = 100;
}
}
}
if (flung == true) {
shdw._y = 999;
if (_y >= ground - 2 * _height / 3) {
hp -= Math.round((Math.abs(xgrav) + Math.abs(ygrav)) / defense);
this.hpbar.counter = 30;
gotoAndStop('hit');
hitGround = true;
this.hpbar._alpha = 100;
}
if (_y < ground - 2 * _height / 3) {
gotoAndStop('held');
_rotation = _rotation + 10;
_x = _x + xgrav;
_y = _y + ygrav;
++ygrav;
} else {
if (hp <= 0) {
gotoAndStop('smack');
_y = ground;
_rotation = 0;
dead = true;
if (_alpha <= 0) {
this.removeMovieClip();
}
} else {
_y = ground;
flung = false;
held = false;
_rotation = 0;
}
}
}
} else {
if (_alpha == 100) {
mc = _root.oroblood.duplicateMovieClip(_root.getNextHighestDepth() + 'blood', _root.getNextHighestDepth());
this.swapDepths(mc);
mc._x = _x;
mc._y = _y;
mc._alpha = 100;
--_root.wavePeople;
--_root.numPeople;
++_root.totalkill;
cc = _root.coin.duplicateMovieClip('cc' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
cc._y = _y;
cc.gotoAndStop(2);
cc._x = _x;
}
_alpha = _alpha - 1;
_alpha = _alpha - 1;
gotoAndStop('smack');
if (_alpha <= 0) {
loadMovie('', this);
this.removeMovieClip();
removeMovieClip(this);
}
}
}
}
}
}
}
}
onClipEvent (press) {
_root.dragon.dragon.gotoAndStop(2);
_root.buffheld.play();
if (hp > 0) {
if (hp <= 13) {
if (held == false) {
hp -= _root.clickdmg;
if (hp <= 0) {
gotoAndStop('smack');
dead = true;
_root.ACslash = true;
fight = false;
}
}
if (this.hpbar._alpha <= 0) {
this.hpbar.counter = 30;
}
this.hpbar._alpha = 100;
_root.ring.play();
_root.ring._x = _root._xmouse;
_root.ring._y = _root._ymouse;
_root.dragon.dragon.gotoAndStop('hold');
_root.dragon.mcHold = this;
held = true;
} else {
hurt = true;
this.gotoAndStop('hurt');
this.hurt1.gotoAndPlay(1);
hp -= _root.clickdmg;
this.hpbar.counter = 30;
}
}
}
onClipEvent (release) {
_root.dragon.dragon.gotoAndStop(1);
if (held == true) {
_root.ring._alpha = 100;
_root.ring._y = 999999;
_root.dragon.dragon.gotoAndStop('fly');
held = false;
flung = true;
xgrav = (_root.dragon._x - _root.grav._x) * 0.2;
ygrav = (_root.dragon._y - _root.grav._y) * 0.2;
if (Math.abs(ygrav) > 2) {
if (_root.bufftoss._currentframe == 1 || _root.bufftoss._currentframe == 4) {
_root.bufftoss.gotoAndStop(2);
} else {
_root.bufftoss.nextFrame();
}
}
}
}
onClipEvent (releaseOutside) {
_root.dragon.dragon.gotoAndStop(1);
if (held == true) {
_root.ring._alpha = 100;
_root.ring._y = 999999;
_root.dragon.dragon.gotoAndStop('fly');
held = false;
flung = true;
xgrav = (_root.dragon._x - _root.grav._x) * 0.2;
ygrav = (_root.dragon._y - _root.grav._y) * 0.2;
if (Math.abs(ygrav) > 2) {
if (_root.bufftoss._currentframe == 1 || _root.bufftoss._currentframe == 4) {
_root.bufftoss.gotoAndStop(2);
} else {
_root.bufftoss.nextFrame();
}
}
}
}
}
movieClip 1738 {
}
movieClip 1743 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
}
instance guy1asdfa2 of movieClip 1678 {
onClipEvent (load) {
var defense = 3;
var damage = 1;
var hitGround = false;
var cc;
var first;
var held = false;
var flung = false;
var moveSpeed = Math.random() * 5 + _root.wavenum / 3 + 1;
var xgrav;
var ygrav;
var shdw = _root.nmeshade;
var delay = 180;
var clone;
var dead = false;
var depth = Math.round(Math.random() * 3 + 1);
_root.dothings.swapDepths(_root.getNextHighestDepth() + 8);
clone.swapDepths(dothings.getDepth() - 2 * (5 - depth) - 8);
_y = 320 + 20 * depth;
var ground = _y;
var hp = 10;
var counter = 0;
var hurt = false;
var isHolding = false;
var fight = false;
var opp;
var looper = 0;
var fireCount = 10;
var mc;
var frozen = false;
var icedelay = 50;
var icemc;
}
onClipEvent (enterFrame) {
if (frozen == true) {
--icedelay;
}
if (icedelay <= 0 && frozen == true) {
frozen = false;
}
if (_root.dropIn._currentframe != 1 && _name != 'guy1asdfa2') {
loadMovie('', this);
this.removeMovieClip();
removeMovieClip(this);
}
if (_root._currentframe != 511) {
loadMovie('', this);
this.removeMovieClip();
removeMovieClip(this);
}
if (_root.pauseGame == false && frozen == false) {
if (this.hit._currentframe == 2) {
mc = _root.oroblood.duplicateMovieClip(_root.getNextHighestDepth() + 'blood', _root.getNextHighestDepth());
this.swapDepths(mc);
mc._x = _x;
mc._y = _y;
mc._alpha = 100;
}
if (_root.hp <= 0 && _name != 'guy1asdfa2') {
loadMovie('', this);
this.removeMovieClip();
}
if (_root.gameOver == false && _root.hp > 0) {
if (_root.dothings.round != 0) {
if (this.hitTest(_root.deletewall) && _name != 'guy1asdfa2') {
_x = -300;
}
if (Math.abs(_x - _root.gut._x) < 20 && _y > _root.gut._y + _root.gut._height) {
_y = _y - 10;
_x = _root.gut._x - moveSpeed;
}
--fireCount;
if (fireCount < 0) {
fireCount = 10;
}
if (this.hitTest(_root.flame) && fireCount == 0) {
--hp;
mc = _root.flamethrower.duplicateMovieClip('flame' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
mc._x = _x;
mc._y = _y;
hurt = true;
this.gotoAndStop('hurt');
if (hp <= 0 && _y == ground) {
gotoAndStop('smack');
dead = true;
fight = false;
}
}
if (this.hitTest(_root.bmbsplode)) {
if (flung == false) {
hp -= 2;
}
this.hpbar.counter = 30;
this.hpbar._alpha = 100;
_y = _y - 50;
fight = false;
flung = true;
held = false;
ygrav = -10;
gotoAndStop('held');
}
looper = 1;
while (looper < 2) {
if (this.hitTest(_root['xsplode' + looper]) && hp > 0) {
if (flung == false) {
hp -= _root['xsplode' + looper].cannon.damage;
}
this.hpbar.counter = 30;
this.hpbar._alpha = 100;
for (;;) {
if (!(_root.splode.hitTest(this) && hp > 0 && _currentframe != 6)) break;
_y = _y - 1;
_y = _y - 1;
}
fight = false;
flung = true;
held = false;
gotoAndStop('held');
if (_root['xsplode' + looper]._currentframe != 4) {
ygrav = -10 - 5 * _root['xsplode' + looper].cannon.lvl;
xgrav = Math.round(_x - _root['xsplode' + looper]._x) / 20;
} else {
frozen = true;
icedelay = 50;
icemc = _root.icefang.duplicateMovieClip('ice' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
icemc._x = _x;
icemc.swapDepths(this.getDepth() + 1);
icemc._y = _y;
hp = 5;
}
}
++looper;
}
if (this.hitTest(_root.fireballz) && hp > 0) {
hp -= _root.fireballz.damage;
_root.fireballz.inUse = false;
_root.fireballz._x = -4000;
_root.firesplode.gotoAndPlay(1);
_root.firesplode._x = _x;
_root.firesplode._y = _y;
_y = _y - 50;
fight = false;
flung = true;
held = false;
ygrav = -20;
gotoAndStop('held');
xgrav = -5;
}
if (this.hitTest(_root.splode) && hp > 0 && _currentframe != 6) {
if (flung == false) {
hp /= 2;
}
this.hpbar.counter = 30;
this.hpbar._alpha = 100;
_y = _y - 50;
fight = false;
flung = true;
held = false;
ygrav = -20;
gotoAndStop('held');
xgrav = Math.round(_x - _root.splode._x) / 20;
}
if (fight == true) {
gotoAndStop('attack');
if (this.attacking._currentframe == 12) {
opp.hp -= damage;
}
if (hp <= 0 && _y >= ground - 2 * _height / 3) {
fight = false;
dead = true;
}
} else {
_xscale = 100;
looper = 1;
while (looper < 2) {
if (_x > _root.steppad._x && _x < _root.deletewall._x && _root['knight' + looper].inCombat == false && _root['knight' + looper].spot._name == 'homebase' && hp > 0) {
_root['knight' + looper].homing = true;
_root['knight' + looper].spot = this;
}
if (_x > _root.steppad2._x && _x < _root.deletewall._x && _root['archer' + looper].inCombat == false && _root['archer' + looper].spot._name == 'homebase2' && hp > 0) {
_root['archer' + looper].homing = true;
_root['archer' + looper].spot = this;
}
if (_x > _root.steppad4._x && _x < _root.deletewall._x && _root.mech.inCombat == false && _root.mech.spot._name == 'homebase4' && hp > 0) {
_root.mech.homing = true;
_root.mech.spot = this;
}
if (_x > _root.fireArea._x && _x < _root.deletewall._x && _root['cannon' + looper].firing == false && hp > 0) {
_root['cannon' + looper].firing = true;
_root['cannon' + looper].spot = this;
}
++looper;
}
if (this.hit._currentframe == 19 || held == true || flung == true) {
hitGround = false;
hurt = false;
}
if (hp <= 0) {
hp = 0;
}
if (dead == false) {
if (this.hitTest(_root.rock) && _root.rock.flung == true && _root.rock.depth == this.depth) {
_root.rock.flung = false;
_root.rock._rotation = 0;
_root.rock._x = _x;
_root.rock._y = _y;
--_root.rock.hits;
gotoAndStop('smack');
dead = true;
_y = ground;
flung = true;
this.swapDepths(_root.rock);
}
if (this.hitTest(_root.poop) && _root.poop.depth == depth) {
_root.poop.flung = false;
_root.poop._rotation = 0;
_root.poop._x = _x;
_root.poop._y = _y;
--_root.poop.hits;
_root.poop.play();
gotoAndStop('smack');
dead = true;
_y = ground;
flung = true;
this.swapDepths(_root.poop);
}
--delay;
trace('Penis');
if (_root.dropIn._currentframe == 1 && delay <= 0 && _root.numPeople < _root.maxPeople && _root.wavePeople > _root.numPeople && _root.wavePeople - _root.numPeople > 0) {
delay = (Math.random() * 240 + 60) * (1 / Math.pow(_root.wavenum, 0.3333333333333333));
clone = this.duplicateMovieClip('guy' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
++_root.numPeople;
_root.enemyarray.push(clone);
clone._x = -300;
clone._alpha = 100;
clone._rotation = 0;
clone.depth = Math.round(Math.random() * 3 + 1);
clone.held = false;
clone.dead = false;
clone.flung = false;
}
if (held == false && flung == false && hitGround == false) {
if (hurt == false) {
if (_root.gut.hitTest(_x + _width / 2, _y, true)) {
gotoAndStop('attack');
if (this.attacking._currentframe == 12) {
_root.hp -= damage;
if (_root.gut.gut._currentframe == 1) {
_root.gut.gut.play();
}
}
} else {
if (_root.wall.hitTest(_x + _width / 2, _y, true)) {
gotoAndStop('attack');
if (this.attacking._currentframe == 12) {
_root.wall.hp -= damage;
if (_root.wall.wall._currentframe == 1) {
_root.wall.wall.play();
}
}
} else {
gotoAndStop('run');
if (_root.slime.hitTest(this)) {
_x = _x + moveSpeed / 2;
} else {
_x = _x + moveSpeed;
}
if (depth == 4 && _x >= 470) {
_y = _y - 1;
_y = _y - 1;
}
}
}
} else {
if (this.hurt1._currentframe == 6) {
hurt = false;
}
}
}
if (held == true) {
gotoAndStop('held');
_x = _root._xmouse;
_y = _root._ymouse + _height / 2;
shdw._x = _x;
if (held == true) {
if (_root.dragon._y <= 180) {
shdw._root.nmeshade._xscale = 70;
shdw._yscale = 70;
shdw._y = 340;
}
if (_root.dragon._y > 180 && _root.dragon._y <= 200) {
shdw._y = 360;
shdw._xscale = 80;
shdw._yscale = 80;
}
if (_root.dragon._y > 200 && _root.dragon._y <= 220) {
shdw._y = 380;
shdw._xscale = 90;
shdw._yscale = 90;
}
if (_root.dragon._y > 220) {
shdw._y = 400;
shdw._xscale = 100;
shdw._yscale = 100;
}
}
}
if (flung == true) {
shdw._y = 999;
if (_y >= ground - 2 * _height / 3) {
hp -= Math.round((Math.abs(xgrav) + Math.abs(ygrav)) / defense);
gotoAndStop('hit');
flung = false;
hitGround = true;
this.hpbar.counter = 30;
this.hpbar._alpha = 100;
}
if (_y < ground - 2 * _height / 3) {
gotoAndStop('held');
_rotation = _rotation + 10;
_x = _x + xgrav;
_y = _y + ygrav;
++ygrav;
} else {
if (hp <= 0) {
gotoAndStop('smack');
_y = ground;
_rotation = 0;
dead = true;
} else {
_y = ground;
flung = false;
held = false;
_rotation = 0;
}
}
}
} else {
if (_alpha == 100) {
mc = _root.oroblood.duplicateMovieClip(_root.getNextHighestDepth() + 'blood', _root.getNextHighestDepth());
this.swapDepths(mc);
mc._x = _x;
mc._y = _y;
mc._alpha = 100;
--_root.wavePeople;
++_root.totalkill;
--_root.numPeople;
cc = _root.coin.duplicateMovieClip('cc' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
cc._y = _y;
cc._x = _x;
}
_alpha = _alpha - 1;
_alpha = _alpha - 1;
if (_alpha <= 0) {
loadMovie('', this);
this.removeMovieClip();
removeMovieClip(this);
}
}
}
}
}
}
}
onClipEvent (press) {
_root.dragon.dragon.gotoAndStop(2);
_root.guyheld.play();
if (hp > 0) {
++counter;
if (counter < 5) {
if (this.hurt._currentframe == 1) {
hp -= _root.clickdmg;
if (hp <= 0) {
}
}
hurt = true;
if (_currentframe != 4) {
this.gotoAndStop('hurt');
this.hurt.gotoAndPlay(1);
}
hp -= _root.clickdmg;
if (hp <= 0) {
_root.ACslash = true;
gotoAndStop('smack');
dead = true;
fight = false;
}
this.hpbar.counter = 30;
} else {
if (this.hpbar._alpha <= 0) {
this.hpbar.counter = 30;
}
this.hpbar._alpha = 100;
_root.ring.play();
_root.ring._x = _root._xmouse;
_root.ring._y = _root._ymouse;
_root.dragon.dragon.gotoAndStop('hold');
_root.dragon.mcHold = this;
held = true;
}
}
}
onClipEvent (release) {
_root.dragon.dragon.gotoAndStop(1);
isHolding = false;
counter = 0;
if (held == true) {
if (_root.guytoss._currentframe == 1 || _root.guytoss._currentframe == 4) {
_root.guytoss.gotoAndStop(2);
} else {
_root.guytoss.nextFrame();
}
_root.ring._alpha = 100;
_root.ring._y = 9999;
_root.dragon.dragon.gotoAndStop('fly');
held = false;
flung = true;
xgrav = (_root.dragon._x - _root.grav._x) * 0.2;
ygrav = (_root.dragon._y - _root.grav._y) * 0.2;
}
}
onClipEvent (releaseOutside) {
_root.dragon.dragon.gotoAndStop(1);
counter = 0;
isHolding = false;
if (held == true) {
if (_root.guytoss._currentframe == 1 || _root.guytoss._currentframe == 4) {
_root.guytoss.gotoAndStop(2);
} else {
_root.guytoss.nextFrame();
}
_root.ring._alpha = 100;
_root.ring._y = 9999;
_root.dragon.dragon.gotoAndStop('fly');
held = false;
flung = true;
xgrav = (_root.dragon._x - _root.grav._x) * 0.2;
ygrav = (_root.dragon._y - _root.grav._y) * 0.2;
}
}
}
movieClip 1746 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
instance har of movieClip 1746 {
onClipEvent (load) {
var xmove = Math.abs(_x - _root.gut._x) / 25;
var ymove = -20;
var nme;
var splode = _root.xsplode;
var flame;
var looper = 0;
var cannon;
var hit = false;
}
onClipEvent (enterFrame) {
if (_root.pauseGame == false) {
if (hit == false) {
_rotation = ymove * 2;
_x = _x + xmove;
_y = _y + ymove;
++ymove;
}
if (_root.gut.hitTest(_x - 35, _y - 20, true)) {
if (hit == false) {
_root.hp -= 1;
if (_root.gut.gut._currentframe == 1) {
_root.gut.gut.play();
}
}
hit = true;
gotoAndStop(2);
xmove = 0;
ymove = 0;
_alpha = _alpha - 5;
}
if (_alpha <= 0) {
loadMovie('', this);
removeMovieClip(this);
this.removeMovieClip();
}
}
}
onClipEvent (release) {
loadMovie('', this);
}
onClipEvent (releaseOutside) {
_root.dragon.dragon.gotoAndStop(1);
}
}
movieClip 1751 {
}
movieClip 1756 {
}
movieClip 1763 {
}
movieClip 1770 {
frame 1 {
_root.playSplat();
}
frame 13 {
stop();
}
}
movieClip 1776 {
}
movieClip 1778 {
}
movieClip 1785 {
frame 7 {
if (_parent.counter == 1) {
_parent.held = true;
} else {
hurt = false;
}
}
}
movieClip 1786 {
frame 1 {
stop();
}
instance of movieClip 1751 {
onClipEvent (enterFrame) {
if (_root.pauseMenu._visible == true) {
stop();
} else {
play();
}
}
}
instance hpbar of movieClip 1643 {
onClipEvent (load) {
stop();
_alpha = 0;
var counter = 0;
}
onClipEvent (enterFrame) {
stop();
if (counter > 0) {
--counter;
_alpha = 100;
}
if (counter == 0) {
_alpha = _alpha - 5;
}
gotoAndStop(11 - _parent.hp);
if (Key.isDown(16)) {
counter = 30;
_alpha = 100;
}
}
}
frame 2 {
stop();
}
instance attacking of movieClip 1756 {
onClipEvent (enterFrame) {
if (_root.pauseMenu._visible == true) {
stop();
} else {
play();
}
}
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
instance hit of movieClip 1776 {
onClipEvent (enterFrame) {
if (_root.pauseMenu._visible == true) {
stop();
} else {
play();
}
}
}
instance hpbar of movieClip 1643 {
onClipEvent (load) {
stop();
_alpha = 0;
var counter = 0;
}
onClipEvent (enterFrame) {
stop();
if (counter > 0) {
--counter;
_alpha = 100;
}
if (counter == 0) {
_alpha = _alpha - 5;
}
gotoAndStop(11 - _parent.hp);
}
}
frame 6 {
stop();
}
instance of movieClip 1778 {
onClipEvent (enterFrame) {
if (_root.pauseMenu._visible == true) {
stop();
} else {
play();
}
}
}
frame 7 {
stop();
}
instance hurt1 of movieClip 1785 {
onClipEvent (enterFrame) {
if (_root.pauseMenu._visible == true) {
stop();
} else {
play();
}
}
}
instance hpbar of movieClip 1643 {
onClipEvent (load) {
stop();
_alpha = 0;
var counter = 0;
}
onClipEvent (enterFrame) {
stop();
if (counter > 0) {
--counter;
_alpha = 100;
}
if (counter == 0) {
_alpha = _alpha - 5;
}
gotoAndStop(11 - _parent.hp);
if (Key.isDown(16)) {
counter = 30;
_alpha = 100;
}
}
}
}
instance teasdfa of movieClip 1786 {
onClipEvent (load) {
var defense = 3;
var damage = 1;
var hitGround = false;
var cc;
var first;
var held = false;
var flung = false;
var moveSpeed = Math.random() * 5 + 1;
var xgrav;
var ygrav;
var shdw = _root.nmeshade;
var delay = 180;
var clone;
var dead = false;
var depth = Math.round(Math.random() * 3 + 1);
_root.dothings.swapDepths(_root.getNextHighestDepth() + 8);
clone.swapDepths(dothings.getDepth() - 2 * (5 - depth));
_y = 320 + 20 * depth;
var ground = _y;
var hp = 10;
var counter = 0;
var hurt = false;
var isHolding = false;
var fight = false;
var opp;
var looper = 0;
var fireCount = 10;
var arr;
var attackDelay = 15;
var mc;
var frozen = false;
var icedelay = 50;
var icemc;
}
onClipEvent (enterFrame) {
if (frozen == true) {
--icedelay;
}
if (icedelay <= 0 && frozen == true) {
frozen = false;
}
if (_name == 'teasdfa') {
gotoAndStop('run');
}
if (hp <= 0 && _currentframe == 3) {
gotoAndStop(1);
}
if (_root._currentframe != 511) {
loadMovie('', this);
this.removeMovieClip();
removeMovieClip(this);
}
if (_root.pauseGame == false && frozen == false) {
if (this.hit._currentframe == 2) {
mc = _root.oroblood.duplicateMovieClip(_root.getNextHighestDepth() + 'blood', _root.getNextHighestDepth());
this.swapDepths(mc);
mc._x = _x;
mc._y = _y;
mc._alpha = 100;
}
if (_root.hp <= 0 && _name != 'teasdfa') {
loadMovie('', this);
this.removeMovieClip();
}
if (_root.gameOver == false && _root.hp > 0) {
if (_root.wavenum >= 5) {
if (_root.dothings.round != 0) {
if (this.hitTest(_root.deletewall) && _name != 'teasdfa') {
_x = -300;
}
if (Math.abs(_x - _root.gut._x) < 20 && _y > _root.gut._y + _root.gut._height) {
_y = _y - 10;
_x = _root.gut._x - moveSpeed;
}
--fireCount;
--attackDelay;
if (this.shooting._currentframe == 21) {
attackDelay = 15;
}
if (fireCount < 0) {
fireCount = 10;
}
if (this.hitTest(_root.flame) && fireCount == 0 && hp > 0) {
--hp;
mc = _root.flamethrower.duplicateMovieClip('flame' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
mc._x = _x;
mc._y = _y;
hurt = true;
this.gotoAndStop('hurt');
if (hp <= 0 && _y == ground) {
gotoAndStop('smack');
dead = true;
fight = false;
}
}
if (this.hitTest(_root.bmbsplode) && hp > 0) {
if (flung == false) {
hp -= 2;
}
this.hpbar.counter = 30;
this.hpbar._alpha = 100;
_y = _y - 50;
fight = false;
flung = true;
held = false;
ygrav = -10;
gotoAndStop('held');
}
looper = 1;
while (looper < 2) {
if (this.hitTest(_root['xsplode' + looper]) && hp > 0) {
if (flung == false) {
hp -= _root['xsplode' + looper].cannon.damage;
}
this.hpbar.counter = 30;
this.hpbar._alpha = 100;
_y = _y - 50;
fight = false;
flung = true;
held = false;
gotoAndStop('held');
if (_root['xsplode' + looper]._currentframe != 4) {
ygrav = -10 - 5 * _root['xsplode' + looper].cannon.lvl;
xgrav = Math.round(_x - _root['xsplode' + looper]._x) / 20;
} else {
frozen = true;
icedelay = 50;
icemc = _root.icefang.duplicateMovieClip('ice' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
icemc._x = _x;
icemc.swapDepths(this.getDepth() + 1);
icemc._y = _y;
hp = 5;
}
}
++looper;
}
if (this.hitTest(_root.fireballz) && hp > 0) {
hp -= _root.fireballz.damage;
_root.fireballz.inUse = false;
_root.fireballz._x = -4000;
_root.firesplode.gotoAndPlay(1);
_root.firesplode._x = _x;
_root.firesplode._y = _y;
_y = _y - 50;
fight = false;
flung = true;
held = false;
ygrav = -20;
gotoAndStop('held');
xgrav = -5;
}
if (this.hitTest(_root.splode) && hp > 0 && _currentframe != 6) {
if (flung == false) {
hp /= 2;
}
this.hpbar.counter = 30;
this.hpbar._alpha = 100;
_y = _y - 50;
fight = false;
flung = true;
held = false;
ygrav = -20;
gotoAndStop('held');
xgrav = Math.round(_x - _root.splode._x) / 20;
}
if (fight == true) {
gotoAndStop('attack');
if (_name == 'teasdfa') {
gotoAndStop('run');
}
if (this.attacking._currentframe == 8) {
opp.hp -= damage;
}
if (hp <= 0) {
fight = false;
dead = true;
}
} else {
_xscale = 100;
looper = 1;
while (looper < 2) {
if (_x > _root.steppad._x && _x < _root.deletewall._x && _root['knight' + looper].inCombat == false && _root['knight' + looper].spot._name == 'homebase' && hp > 0) {
_root['knight' + looper].homing = true;
_root['knight' + looper].spot = this;
if (_root['knight' + looper]._currentframe == 6) {
if (_root['knight' + looper].spot._name != _name) {
_root['knight' + looper].spot2 = this;
}
}
}
if (_x > _root.steppad2._x && _x < _root.deletewall._x && _root['archer' + looper].inCombat == false && _root['archer' + looper].spot._name == 'homebase2' && hp > 0) {
_root['archer' + looper].homing = true;
_root['archer' + looper].spot = this;
}
if (_x > _root.steppad4._x && _x < _root.deletewall._x && _root.mech.inCombat == false && _root.mech.spot._name == 'homebase4' && hp > 0) {
_root.mech.homing = true;
_root.mech.spot = this;
}
if (_x > _root.fireArea._x && _x < _root.deletewall._x && _root['cannon' + looper].firing == false && hp > 0) {
_root['cannon' + looper].firing = true;
_root['cannon' + looper].spot = this;
}
++looper;
}
if (this.hit._currentframe == 15 || held == true || flung == true) {
hitGround = false;
hurt = false;
}
if (hp <= 0) {
hp = 0;
}
if (dead == false) {
if (this.hitTest(_root.rock) && _root.rock.flung == true && _root.rock.depth == this.depth) {
_root.rock.flung = false;
_root.rock._rotation = 0;
_root.rock._x = _x;
_root.rock._y = _y;
--_root.rock.hits;
gotoAndStop('smack');
dead = true;
_y = ground;
flung = true;
this.swapDepths(_root.rock);
}
if (this.hitTest(_root.poop) && _root.poop.depth == depth) {
_root.poop.flung = false;
_root.poop._rotation = 0;
_root.poop._x = _x;
_root.poop._y = _y;
--_root.poop.hits;
_root.poop.play();
gotoAndStop('smack');
dead = true;
_y = ground;
flung = true;
this.swapDepths(_root.poop);
}
--delay;
if (_root.dropIn._currentframe == 1 && delay <= 0 && _root.numPeople < _root.maxPeople && _root.wavePeople > _root.numPeople && _root.wavePeople - _root.numPeople > 1) {
delay = (Math.random() * 240 + 180) * (1 / Math.pow(_root.wavenum, 0.2));
clone = this.duplicateMovieClip('rcher' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
++_root.numPeople;
_root.enemyarray.push(clone);
clone._x = -300;
clone._alpha = 100;
clone._rotation = 0;
clone.depth = Math.round(Math.random() * 3 + 1);
clone.held = false;
clone.dead = false;
clone.flung = false;
}
if (held == false && flung == false && hitGround == false) {
if (hurt == false) {
if (attackDelay <= 0 || Math.abs(_root.gut._x - _x) < 200) {
gotoAndStop('shoot');
if (this.shooting._currentframe == 16) {
arr = _root.har.duplicateMovieClip('har' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
arr._x = _x;
arr._alpha = 100;
arr._y = _y;
arr.xmove = Math.abs(_x - _root.gut._x) / 25;
arr.ymove = -5;
}
} else {
if (_root.wall.hitTest(_x + _width / 2, _y, true)) {
gotoAndStop('attack');
if (_name == 'teasdfa') {
gotoAndStop('run');
}
if (this.attacking._currentframe == 8) {
_root.wall.hp -= damage;
if (_root.wall.wall._currentframe == 1) {
_root.wall.wall.play();
}
}
} else {
gotoAndStop('run');
if (_root.slime.hitTest(this)) {
_x = _x + moveSpeed / 2;
} else {
_x = _x + moveSpeed;
}
if (depth == 4 && _x >= 470) {
_y = _y - 1;
_y = _y - 1;
}
}
}
} else {
if (this.hurt1._currentframe == 6) {
hurt = false;
}
}
}
if (held == true) {
gotoAndStop('held');
_x = _root._xmouse;
_y = _root._ymouse + _height / 2;
shdw._x = _x;
if (held == true) {
if (_root.dragon._y <= 180) {
shdw._root.nmeshade._xscale = 70;
shdw._yscale = 70;
shdw._y = 340;
}
if (_root.dragon._y > 180 && _root.dragon._y <= 200) {
shdw._y = 360;
shdw._xscale = 80;
shdw._yscale = 80;
}
if (_root.dragon._y > 200 && _root.dragon._y <= 220) {
shdw._y = 380;
shdw._xscale = 90;
shdw._yscale = 90;
}
if (_root.dragon._y > 220) {
shdw._y = 400;
shdw._xscale = 100;
shdw._yscale = 100;
}
}
}
if (flung == true) {
shdw._y = 999;
if (_y >= ground - 2 * _height / 3) {
hp -= Math.round((Math.abs(xgrav) + Math.abs(ygrav)) / defense);
gotoAndStop('hit');
flung = false;
hitGround = true;
this.hpbar.counter = 30;
this.hpbar._alpha = 100;
}
if (_y < ground - 2 * _height / 3) {
gotoAndStop('held');
_rotation = _rotation + 10;
_x = _x + xgrav;
_y = _y + ygrav;
++ygrav;
} else {
if (hp <= 0) {
gotoAndStop('smack');
_y = ground;
_rotation = 0;
dead = true;
} else {
_y = ground;
flung = false;
held = false;
_rotation = 0;
}
}
}
} else {
if (_alpha == 100) {
mc = _root.oroblood.duplicateMovieClip(_root.getNextHighestDepth() + 'blood', _root.getNextHighestDepth());
this.swapDepths(mc);
mc._x = _x;
mc._y = _y;
mc._alpha = 100;
--_root.wavePeople;
--_root.numPeople;
++_root.totalkill;
cc = _root.coin.duplicateMovieClip('cc' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
cc._y = _y;
cc._x = _x;
}
_alpha = _alpha - 1;
_alpha = _alpha - 1;
gotoAndStop('smack');
if (_alpha <= 0) {
loadMovie('', this);
this.removeMovieClip();
removeMovieClip(this);
}
}
}
}
if (_name == 'teasdfa') {
gotoAndStop('run');
}
}
if (_name == 'teasdfa') {
gotoAndStop('run');
}
}
if (_name == 'teasdfa') {
gotoAndStop('run');
}
}
if (_name == 'teasdfa') {
gotoAndStop('run');
}
}
onClipEvent (press) {
_root.dragon.dragon.gotoAndStop(2);
if (hp > 0) {
if (_currentframe != 4) {
++counter;
if (counter < 5) {
if (this.hurt._currentframe == 1) {
hp -= _root.clickdmg;
}
hurt = true;
this.gotoAndStop('hurt');
this.hurt.gotoAndPlay(1);
hp -= _root.clickdmg;
if (hp <= 0) {
_root.ACslash = true;
gotoAndStop('smack');
dead = true;
fight = false;
}
this.hpbar.counter = 30;
} else {
if (this.hpbar._alpha <= 0) {
this.hpbar.counter = 30;
}
this.hpbar._alpha = 100;
_root.ring.play();
_root.ring._x = _root._xmouse;
_root.ring._y = _root._ymouse;
_root.dragon.dragon.gotoAndStop('hold');
_root.dragon.mcHold = this;
held = true;
}
}
}
}
onClipEvent (release) {
_root.dragon.dragon.gotoAndStop(1);
counter = 0;
isHolding = false;
if (held == true) {
counter = 0;
_root.ring._alpha = 100;
_root.ring._y = 999999;
_root.dragon.dragon.gotoAndStop('fly');
held = false;
flung = true;
xgrav = (_root.dragon._x - _root.grav._x) * 0.2;
ygrav = (_root.dragon._y - _root.grav._y) * 0.2;
}
}
onClipEvent (releaseOutside) {
_root.dragon.dragon.gotoAndStop(1);
counter = 0;
isHolding = false;
if (held == true) {
_root.ring._alpha = 100;
_root.ring._y = 999999;
_root.dragon.dragon.gotoAndStop('fly');
held = false;
flung = true;
xgrav = (_root.dragon._x - _root.grav._x) * 0.2;
ygrav = (_root.dragon._y - _root.grav._y) * 0.2;
}
}
}
movieClip 1793 {
}
movieClip 1795 {
}
movieClip 1802 {
frame 8 {
_parent._parent.hitGround = false;
_parent._parent.hurt = false;
_parent._parent.held = false;
_parent._parent.dead = false;
_parent._parent.flung = false;
_parent._parent.gotoAndStop(2);
}
}
movieClip 1803 {
frame 1 {
stop();
}
instance run of movieClip 1793 {
onClipEvent (enterFrame) {
if (_root.pauseMenu._visible == true) {
stop();
} else {
play();
}
}
}
frame 2 {
stop();
}
instance held of movieClip 1795 {
onClipEvent (enterFrame) {
if (_root.pauseMenu._visible == true) {
stop();
} else {
play();
}
}
}
frame 3 {
stop();
}
instance fell of movieClip 1802 {
onClipEvent (enterFrame) {
if (_root.pauseMenu._visible == true) {
stop();
} else {
play();
}
}
}
}
movieClip 1807 {
}
movieClip 1809 {
}
movieClip 1822 {
frame 7 {
_root.bmbsplode._x = _parent._parent._x;
_root.bmbsplode._y = _parent._parent._y;
}
frame 8 {
_root.bmbsplode._x = 9999;
_root.bmbsplode._y = 9999;
}
frame 12 {
stop();
}
}
movieClip 1823 {
frame 1 {
stop();
}
instance run of movieClip 1807 {
onClipEvent (enterFrame) {
if (_root.pauseMenu._visible == true) {
stop();
} else {
play();
}
}
}
frame 2 {
stop();
}
instance held of movieClip 1809 {
onClipEvent (enterFrame) {
if (_root.pauseMenu._visible == true) {
stop();
} else {
play();
}
}
}
frame 3 {
stop();
}
instance explode of movieClip 1822 {
onClipEvent (enterFrame) {
if (_root.pauseMenu._visible == true) {
stop();
} else {
play();
}
}
}
}
movieClip 1824 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
instance bmboriginal of movieClip 1824 {
onClipEvent (load) {
var defense = 3;
var damage = 10;
var hitGround = false;
var cc;
var first;
var held = false;
var flung = false;
var moveSpeed = Math.random() * 3 + 3;
var xgrav;
var ygrav;
var shdw = _root.nmeshade;
var delay = 180;
var clone;
var dead = false;
var depth = Math.round(Math.random() * 3 + 1);
_y = 320 + 20 * depth;
var ground = _y;
var hp = 10;
var counter = 0;
var hurt = false;
var isHolding = false;
var fight = false;
var opp;
var looper = 0;
var fireCount = 10;
}
onClipEvent (enterFrame) {
if (_root._currentframe != 511) {
loadMovie('', this);
this.removeMovieClip();
removeMovieClip(this);
}
if (_root.pauseGame == false) {
if (_root.hp <= 0 && _name != 'bmboriginal') {
loadMovie('', this);
this.removeMovieClip();
}
if (_root.gameOver == false && _root.hp > 0) {
if (_root.dothings.round != 0 || substring(_name, 0, 3) == 'bos') {
if (this.hitTest(_root.deletewall) && _name != 'bmboriginal') {
_x = -300;
}
if (Math.abs(_x - _root.gut._x) < 20 && _y > _root.gut._y + _root.gut._height) {
_y = _y - 10;
_x = _root.gut._x - moveSpeed;
}
if (Math.abs(_x - _root.gut._x) <= 100) {
gotoAndStop(2);
}
if (this.hitTest(_root.bmbsplode) && bomb.explode._currentframe < 2 && hp > 0) {
if (flung == false) {
}
_y = _y - 20;
fight = false;
flung = true;
held = false;
ygrav = -5;
bomb.gotoAndStop('held');
}
looper = 1;
while (looper < 2) {
if (this.hitTest(_root['xsplode' + looper]) && hp > 0) {
if (flung == false) {
}
_y = _y - 50;
fight = false;
flung = true;
held = false;
ygrav = -10 - 5 * _root['xsplode' + looper].cannon.lvl;
bomb.gotoAndStop('held');
xgrav = Math.round(_x - _root['xsplode' + looper]._x) / 20;
}
++looper;
}
if (this.hitTest(_root.fireballz) && hp > 0) {
_root.fireballz.inUse = false;
_root.fireballz._x = -4000;
_root.firesplode.gotoAndPlay(1);
_root.firesplode._x = _x;
_root.firesplode._y = _y;
_y = _y - 50;
fight = false;
flung = true;
held = false;
ygrav = -20;
gotoAndStop('held');
xgrav = -5;
}
if (this.hitTest(_root.splode) && hp > 0) {
if (flung == false) {
}
_y = _y - 50;
fight = false;
flung = true;
held = false;
ygrav = -20;
bomb.gotoAndStop('held');
xgrav = Math.round(_x - _root.splode._x) / 20;
}
if (fight == true) {
} else {
_xscale = 100;
if (this.hit._currentframe == 19 || held == true || flung == true) {
hitGround = false;
hurt = false;
}
if (hp <= 0) {
hp = 0;
}
if (dead == false) {
--delay;
if (_root.wavenum >= 10 && _root.dropIn._currentframe == 1 && substring(_name, 0, 4) != 'boss' && delay <= 0 && _root.numPeople < _root.maxPeople && _root.wavePeople > _root.numPeople && _root.wavePeople - _root.numPeople > 0) {
delay = (Math.random() * 240 + 60) * (1 / Math.pow(_root.wavenum, 0.1666666666666667));
clone = this.duplicateMovieClip('bmb' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
++_root.numPeople;
_root.enemyarray.push(clone);
clone._x = -300;
clone._alpha = 100;
clone._rotation = 0;
clone.depth = Math.round(Math.random() * 3 + 1);
_root.dothings.swapDepths(_root.getNextHighestDepth() + 8);
clone.swapDepths(dothings.getDepth() - 2 * (5 - depth));
clone.held = false;
clone.dead = false;
clone.flung = false;
}
if (held == false && flung == false && hitGround == false) {
if (hurt == false) {
if (_root.gut.hitTest(_x + _width / 2, _y, true)) {
bomb.gotoAndStop('explode');
if (this.bomb.explode._currentframe == 10) {
_root.hp -= damage;
if (_root.gut.gut._currentframe == 1) {
_root.gut.gut.play();
}
}
} else {
if (_root.wall.hitTest(_x + _width / 2, _y, true)) {
bomb.gotoAndStop('explode');
if (this.bomb.explode._currentframe == 10) {
_root.wall.hp -= damage;
if (_root.wall.wall._currentframe == 1) {
_root.wall.wall.play();
}
}
} else {
bomb.gotoAndStop('run');
if (_root.slime.hitTest(this)) {
_x = _x + (moveSpeed / 2) * _currentframe;
} else {
_x = _x + moveSpeed * _currentframe;
}
if (depth == 4 && _x >= 470) {
_y = _y - 1;
_y = _y - 1;
}
}
}
} else {
if (this.hurt1._currentframe == 6) {
hurt = false;
}
}
}
if (held == true) {
bomb.gotoAndStop('held');
_x = _root._xmouse;
_y = _root._ymouse + _height / 2;
shdw._x = _x;
if (held == true) {
if (_root.dragon._y <= 180) {
shdw._root.nmeshade._xscale = 70;
shdw._yscale = 70;
shdw._y = 340;
}
if (_root.dragon._y > 180 && _root.dragon._y <= 200) {
shdw._y = 360;
shdw._xscale = 80;
shdw._yscale = 80;
}
if (_root.dragon._y > 200 && _root.dragon._y <= 220) {
shdw._y = 380;
shdw._xscale = 90;
shdw._yscale = 90;
}
if (_root.dragon._y > 220) {
shdw._y = 400;
shdw._xscale = 100;
shdw._yscale = 100;
}
}
}
if (flung == true) {
shdw._y = 999;
if (_y >= ground - 2 * _height / 3) {
if (_currentframe == 2) {
bomb.gotoAndStop('explode');
} else {
bomb.gotoAndStop('fell');
}
flung = false;
hitGround = true;
}
if (_y < ground - 2 * _height / 3) {
bomb.gotoAndStop('held');
_rotation = _rotation + 10;
_x = _x + xgrav;
_y = _y + ygrav;
++ygrav;
} else {
if (hp <= 0) {
gotoAndStop('smack');
_y = ground;
_rotation = 0;
dead = true;
} else {
_y = ground;
flung = false;
held = false;
_rotation = 0;
}
}
}
} else {
if (this.bomb.explode._currentframe == 10) {
if (substring(_name, 0, 4) != 'boss') {
--_root.wavePeople;
--_root.numPeople;
}
++_root.totalkill;
cc = _root.coin.duplicateMovieClip('cc' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
cc._y = _y;
cc._x = _x;
cc.gotoAndStop(4);
}
}
}
if (this.bomb.explode._currentframe == 10) {
if (substring(_name, 0, 4) != 'boss') {
--_root.wavePeople;
--_root.numPeople;
}
++_root.totalkill;
cc = _root.coin.duplicateMovieClip('cc' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
cc._y = _y;
cc._x = _x;
cc.gotoAndStop(4);
loadMovie('', this);
}
}
}
}
}
onClipEvent (press) {
_root.dragon.dragon.gotoAndStop(2);
if (this.bomb._currentframe != 3) {
_root.ring.play();
_root.ring._x = _root._xmouse;
_root.ring._y = _root._ymouse;
_root.dragon.dragon.gotoAndStop('hold');
_root.dragon.mcHold = this;
held = true;
}
}
onClipEvent (release) {
_root.dragon.dragon.gotoAndStop(1);
counter = 0;
isHolding = false;
if (held == true) {
counter = 0;
_root.ring._alpha = 100;
_root.ring._y = 999999;
_root.dragon.dragon.gotoAndStop('fly');
held = false;
flung = true;
xgrav = (_root.dragon._x - _root.grav._x) * 0.2;
ygrav = (_root.dragon._y - _root.grav._y) * 0.2;
}
}
onClipEvent (releaseOutside) {
_root.dragon.dragon.gotoAndStop(1);
counter = 0;
isHolding = false;
if (held == true) {
_root.ring._alpha = 100;
_root.ring._y = 999999;
_root.dragon.dragon.gotoAndStop('fly');
held = false;
flung = true;
xgrav = (_root.dragon._x - _root.grav._x) * 0.2;
ygrav = (_root.dragon._y - _root.grav._y) * 0.2;
}
}
}
movieClip 1831 {
}
movieClip 1838 {
frame 11 {
_root.boss1.isHurt = false;
}
}
movieClip 1843 {
}
movieClip 1844 {
}
movieClip 1852 {
frame 11 {
stop();
}
}
movieClip 1861 {
}
movieClip 1866 {
frame 58 {
stop();
}
}
movieClip 1868 {
frame 3 {
if (_root.savefile.data.mouserkill != true) {
_root.savefile.data.mouserkill = true;
_root.savefile.flush();
}
}
frame 126 {
_root.bossroundwin.play();
stop();
}
}
movieClip 1869 {
frame 1 {
stop();
}
instance run of movieClip 1831 {
onClipEvent (enterFrame) {
if (_root.pauseMenu._visible == true) {
stop();
} else {
play();
}
}
}
frame 2 {
stop();
}
instance hurt of movieClip 1838 {
onClipEvent (enterFrame) {
if (_root.pauseMenu._visible == true) {
stop();
} else {
play();
}
}
}
frame 3 {
stop();
}
instance attacking of movieClip 1844 {
onClipEvent (enterFrame) {
if (_root.pauseMenu._visible == true) {
stop();
} else {
play();
}
}
}
frame 4 {
stop();
}
}
instance boss1 of movieClip 1869 {
onClipEvent (load) {
var speed = 1;
var attackdelay = 120;
var dead = false;
var isAttacking = false;
var bombmc;
var hp = 50;
var isHurt = false;
var mc;
var normattack = false;
var bossy = 0;
var rufuspunchi = false;
rufuspunchi = false;
var normattack = false;
}
onClipEvent (enterFrame) {
if (_root.gameover._visible == true) {
_root.boss1.bossy = 0;
_root.boss1.hp = 0;
_root.boss1.dead = true;
_root.boss1.speed = 1;
_root.boss1.attackDelay = 60;
_root.boss1.isAttacking = false;
_root.boss1.isHurt = false;
_root.boss1._x = -500;
_root.boss1._y = 9001;
_root.wavePeople = 0;
_root.roundkill = 0;
}
if (_root.dropIn._currentframe > 4 && _root.dropIn._currentframe < 83) {
_root.boss1.bossy = 0;
_root.boss1.hp = 0;
_root.boss1.dead = true;
_root.boss1.speed = 1;
_root.boss1.attackDelay = 60;
_root.boss1.isAttacking = false;
_root.boss1.isHurt = false;
_root.boss1._x = -500;
_root.boss1._y = 9001;
_root.wavePeople = 0;
_root.roundkill = 0;
}
if (bossy == 1) {
if (_root.pauseGame == false) {
if (this.death._currentframe == 69) {
mc = _root.mousehead.duplicateMovieClip(_root.getNextHighestDepth + 'yadda', _root.getNextHighestDepth());
mc = _root.mousebod.duplicateMovieClip(_root.getNextHighestDepth + 'yadda', _root.getNextHighestDepth());
mc = _root.mousefoot1.duplicateMovieClip(_root.getNextHighestDepth + 'yadda', _root.getNextHighestDepth());
mc = _root.mousefoot2.duplicateMovieClip(_root.getNextHighestDepth + 'yadda', _root.getNextHighestDepth());
mc = _root.mousearm1.duplicateMovieClip(_root.getNextHighestDepth + 'yadda', _root.getNextHighestDepth());
mc = _root.mousearm2.duplicateMovieClip(_root.getNextHighestDepth + 'yadda', _root.getNextHighestDepth());
mc = _root.mouseear.duplicateMovieClip(_root.getNextHighestDepth + 'yadda', _root.getNextHighestDepth());
mc = _root.bossblood.duplicateMovieClip(_root.getNextHighestDepth() + 'blood', _root.getNextHighestDepth());
mc._x = _x;
this.swapDepths(mc);
mc._y = _y;
}
if (_root.dothings.boss == 2) {
if (_root.bossRound == false) {
dead = true;
} else {
if (this.hurt._currentframe == 11) {
isHurt = false;
}
if (hp > 0) {
_root.bossDead = false;
}
if (this.hitTest(_root.bmbsplode) && hp > 0) {
hp -= 10;
gotoAndStop('hurt');
isAttacking = false;
attackdelay = 120;
isHurt = true;
hurt.gotoAndPlay(1);
}
--attackdelay;
if (attackdelay <= 0 && isHurt == false) {
isAttacking = true;
attackdelay = 120;
}
if (hp <= 0) {
hp = 0;
if (this.death._currentframe == 125) {
_root.bossDead = true;
_root.bossRound = false;
_root.wavePeople = 0;
_root.numPeople = 0;
_root.head.talking = true;
_root.head.gotoAndStop(3);
_root.head.talk.gotoAndStop(Math.ceil(Math.random() * 5));
}
gotoAndStop('death');
dead = true;
}
if (_root.wavenum == 2 && dead == true && _root.bossDead == true && _root.dropIn._currentframe == 87) {
dead = false;
hp = 20 * _root.wavenum / 4;
}
_xscale = 100;
if (this.attacking._currentframe == 10) {
bombmc = _root.bmboriginal.duplicateMovieClip('bossbmb' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
bombmc.gotoAndStop(2);
bombmc._x = _x + 132.8;
bombmc._y = _y;
bombmc._alpha = 100;
bombmc._rotation = 0;
bombmc.held = false;
bombmc.dead = false;
bombmc.flung = false;
isAttacking = false;
}
if (dead == false && isHurt == false) {
if (!_root.gut.hitTest(_x + _width / 2 + 200, _y, true) && isAttacking == false && isHurt == false) {
_x = _x + speed;
gotoAndStop('run');
} else {
if (isAttacking) {
gotoAndStop('attacking');
} else {
gotoAndStop('run');
}
}
}
}
}
}
}
}
onClipEvent (press) {
_root.dragon.dragon.gotoAndStop(2);
--hp;
}
onClipEvent (release) {
_root.dragon.dragon.gotoAndStop(1);
}
onClipEvent (releaseOutside) {
_root.dragon.dragon.gotoAndStop(1);
}
}
movieClip 1874 {
}
movieClip 1876 {
}
movieClip 1887 {
}
movieClip 1894 {
}
movieClip 1902 {
frame 1 {
_root.playSplat();
}
frame 16 {
stop();
}
}
movieClip 1903 {
frame 1 {
stop();
}
instance of movieClip 1874 {
onClipEvent (enterFrame) {
if (_root.pauseMenu._visible == true) {
stop();
} else {
play();
}
}
}
instance hpbar of movieClip 1643 {
onClipEvent (load) {
stop();
_alpha = 0;
var counter = 0;
}
onClipEvent (enterFrame) {
stop();
if (counter > 0) {
--counter;
_alpha = 100;
}
if (counter == 0) {
_alpha = _alpha - 5;
}
gotoAndStop(11 - _parent.hp);
if (Key.isDown(16)) {
counter = 30;
_alpha = 100;
}
}
}
frame 2 {
stop();
}
instance of movieClip 1876 {
onClipEvent (enterFrame) {
if (_root.pauseMenu._visible == true) {
stop();
} else {
play();
}
}
}
frame 3 {
stop();
}
instance attacking of movieClip 1887 {
onClipEvent (enterFrame) {
if (_root.pauseMenu._visible == true) {
stop();
} else {
play();
}
}
}
instance hpbar of movieClip 1643 {
onClipEvent (load) {
stop();
_alpha = 0;
var counter = 0;
}
onClipEvent (enterFrame) {
stop();
if (counter > 0) {
--counter;
_alpha = 100;
}
if (counter == 0) {
_alpha = _alpha - 5;
}
gotoAndStop(11 - _parent.hp);
if (Key.isDown(16)) {
counter = 30;
_alpha = 100;
}
}
}
frame 4 {
stop();
}
instance hit of movieClip 1894 {
onClipEvent (enterFrame) {
if (_root.pauseMenu._visible == true) {
stop();
} else {
play();
}
}
}
frame 5 {
stop();
}
instance hurt1 of movieClip 1670 {
onClipEvent (enterFrame) {
if (_root.pauseMenu._visible == true) {
stop();
} else {
play();
}
}
}
frame 6 {
stop();
}
}
instance sworddude of movieClip 1903 {
onClipEvent (load) {
var defense = 3;
var damage = 1;
var hitGround = false;
var cc;
var first;
var held = false;
var flung = false;
var moveSpeed = Math.random() * 5 + _root.wavenum / 4 + 1;
var xgrav;
var ygrav;
var shdw = _root.nmeshade;
var delay = 180;
var clone;
var dead = false;
var depth = Math.round(Math.random() * 3 + 1);
_y = 320 + 20 * depth;
var ground = _y;
var hp = 10;
var counter = 0;
var hurt = false;
var isHolding = false;
var fight = false;
var opp;
var looper = 0;
var fireCount = 10;
var mc;
var frozen = false;
var icedelay = 50;
var icemc;
}
onClipEvent (enterFrame) {
if (frozen == true) {
--icedelay;
}
if (icedelay <= 0 && frozen == true) {
frozen = false;
}
if (_root.dropIn._currentframe != 1 && _name != 'sworddude') {
loadMovie('', this);
this.removeMovieClip();
removeMovieClip(this);
}
if (_root._currentframe != 511) {
loadMovie('', this);
this.removeMovieClip();
removeMovieClip(this);
}
if (_root.pauseGame == false && frozen == false) {
if (this.hit._currentframe == 2) {
mc = _root.oroblood.duplicateMovieClip(_root.getNextHighestDepth() + 'blood', _root.getNextHighestDepth());
this.swapDepths(mc);
mc._x = _x;
mc._y = _y;
mc._alpha = 100;
}
if (_root.hp <= 0 && _name != 'sworddude') {
loadMovie('', this);
this.removeMovieClip();
}
if (_root.gameOver == false && _root.hp > 0) {
if (_root.wavenum > 7) {
if (_root.dothings.round != 0) {
if (this.hitTest(_root.deletewall) && _name != 'sworddude') {
_x = -300;
}
if (Math.abs(_x - _root.gut._x) < 20 && _y > _root.gut._y + _root.gut._height) {
_y = _y - 10;
_x = _root.gut._x - moveSpeed;
}
--fireCount;
if (fireCount < 0) {
fireCount = 10;
}
if (this.hitTest(_root.flame) && fireCount == 0 && hp > 0) {
--hp;
mc = _root.flamethrower.duplicateMovieClip('flame' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
mc._x = _x;
mc._y = _y;
hurt = true;
this.gotoAndStop('hurt');
if (hp <= 0 && _y == ground) {
gotoAndStop('smack');
dead = true;
fight = false;
}
}
if (this.hitTest(_root.bmbsplode) && hp > 0) {
if (flung == false) {
hp -= 2;
}
this.hpbar.counter = 30;
this.hpbar._alpha = 100;
_y = _y - 50;
fight = false;
flung = true;
held = false;
ygrav = -10;
gotoAndStop('held');
}
looper = 1;
while (looper < 2) {
if (this.hitTest(_root['xsplode' + looper]) && hp > 0) {
if (flung == false) {
hp -= _root['xsplode' + looper].cannon.damage;
}
this.hpbar.counter = 30;
this.hpbar._alpha = 100;
fight = false;
flung = true;
held = false;
gotoAndStop('held');
if (_root['xsplode' + looper]._currentframe != 4) {
_y = _y - 50;
ygrav = -10 - 5 * _root['xsplode' + looper].cannon.lvl;
xgrav = Math.round(_x - _root['xsplode' + looper]._x) / 20;
} else {
frozen = true;
icedelay = 50;
icemc = _root.icefang.duplicateMovieClip('ice' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
icemc._x = _x;
icemc.swapDepths(this.getDepth() + 1);
icemc._y = _y;
hp = 5;
}
}
++looper;
}
if (this.hitTest(_root.fireballz) && hp > 0) {
hp -= _root.fireballz.damage;
_root.fireballz.inUse = false;
_root.fireballz._x = -4000;
_root.firesplode.gotoAndPlay(1);
_root.firesplode._x = _x;
_root.firesplode._y = _y;
_y = _y - 50;
fight = false;
flung = true;
held = false;
ygrav = -20;
gotoAndStop('held');
xgrav = -5;
}
if (this.hitTest(_root.splode) && hp > 0 && _currentframe != 6) {
if (flung == false) {
hp /= 2;
}
this.hpbar.counter = 30;
this.hpbar._alpha = 100;
_y = _y - 50;
fight = false;
flung = true;
held = false;
ygrav = -20;
gotoAndStop('held');
xgrav = Math.round(_x - _root.splode._x) / 20;
}
if (fight == true) {
gotoAndStop('attack');
if (this.attacking._currentframe == 12 || this.attacking._currentframe == 5) {
opp.hp -= damage;
}
if (hp <= 0) {
fight = false;
dead = true;
}
} else {
_xscale = 100;
looper = 1;
while (looper < 2) {
if (_x > _root.steppad._x && _x < _root.deletewall._x && _root['knight' + looper].inCombat == false && _root['knight' + looper].spot._name == 'homebase' && hp > 0) {
_root['knight' + looper].homing = true;
_root['knight' + looper].spot = this;
}
if (_x > _root.steppad2._x && _x < _root.deletewall._x && _root['archer' + looper].inCombat == false && _root['archer' + looper].spot._name == 'homebase2' && hp > 0) {
_root['archer' + looper].homing = true;
_root['archer' + looper].spot = this;
}
if (_x > _root.steppad4._x && _x < _root.deletewall._x && _root.mech.inCombat == false && _root.mech.spot._name == 'homebase4' && hp > 0) {
_root.mech.homing = true;
_root.mech.spot = this;
}
if (_x > _root.fireArea._x && _x < _root.deletewall._x && _root['cannon' + looper].firing == false && hp > 0) {
_root['cannon' + looper].firing = true;
_root['cannon' + looper].spot = this;
}
++looper;
}
if (this.hit._currentframe == 16 || held == true || flung == true) {
hitGround = false;
hurt = false;
}
if (hp <= 0) {
hp = 0;
}
if (dead == false) {
if (this.hitTest(_root.rock) && _root.rock.flung == true && _root.rock.depth == this.depth) {
_root.rock.flung = false;
_root.rock._rotation = 0;
_root.rock._x = _x;
_root.rock._y = _y;
--_root.rock.hits;
gotoAndStop('smack');
dead = true;
_y = ground;
flung = true;
this.swapDepths(_root.rock);
}
if (this.hitTest(_root.poop) && _root.poop.depth == depth) {
_root.poop.flung = false;
_root.poop._rotation = 0;
_root.poop._x = _x;
_root.poop._y = _y;
--_root.poop.hits;
_root.poop.play();
gotoAndStop('smack');
dead = true;
_y = ground;
flung = true;
this.swapDepths(_root.poop);
}
--delay;
if (_root.dropIn._currentframe == 1 && delay <= 0 && _root.numPeople < _root.maxPeople && _root.wavePeople > _root.numPeople && _root.wavePeople - _root.numPeople > 0) {
delay = (Math.random() * 240 + 60) * (1 / Math.pow(_root.wavenum, 0.25));
clone = this.duplicateMovieClip('sword' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
++_root.numPeople;
_root.enemyarray.push(clone);
clone._x = -300;
clone._alpha = 100;
clone._rotation = 0;
clone.depth = Math.round(Math.random() * 3 + 1);
_root.dothings.swapDepths(_root.getNextHighestDepth() + 8);
clone.swapDepths(dothings.getDepth() - 2 * (5 - depth) - 8);
clone.held = false;
clone.dead = false;
clone.flung = false;
}
if (held == false && flung == false && hitGround == false) {
if (hurt == false) {
if (_root.gut.hitTest(_x + _width / 2, _y, true)) {
gotoAndStop('attack');
if (this.attacking._currentframe == 12 || this.attacking._currentframe == 5) {
_root.hp -= damage;
if (_root.gut.gut._currentframe == 1) {
_root.gut.gut.play();
}
}
} else {
if (_root.wall.hitTest(_x + _width / 2, _y, true)) {
gotoAndStop('attack');
if (this.attacking._currentframe == 12 || this.attacking._currentframe == 5) {
_root.wall.hp -= damage;
if (_root.wall.wall._currentframe == 1) {
_root.wall.wall.play();
}
}
} else {
gotoAndStop('run');
if (_root.slime.hitTest(this)) {
_x = _x + moveSpeed / 2;
} else {
_x = _x + moveSpeed;
}
if (depth == 4 && _x >= 470) {
_y = _y - 1;
_y = _y - 1;
}
}
}
} else {
if (this.hurt1._currentframe == 6) {
hurt = false;
}
}
}
if (held == true) {
gotoAndStop('held');
_x = _root._xmouse;
_y = _root._ymouse + _height / 2;
shdw._x = _x;
if (held == true) {
if (_root.dragon._y <= 180) {
shdw._root.nmeshade._xscale = 70;
shdw._yscale = 70;
shdw._y = 340;
}
if (_root.dragon._y > 180 && _root.dragon._y <= 200) {
shdw._y = 360;
shdw._xscale = 80;
shdw._yscale = 80;
}
if (_root.dragon._y > 200 && _root.dragon._y <= 220) {
shdw._y = 380;
shdw._xscale = 90;
shdw._yscale = 90;
}
if (_root.dragon._y > 220) {
shdw._y = 400;
shdw._xscale = 100;
shdw._yscale = 100;
}
}
}
if (flung == true) {
shdw._y = 999;
if (_y >= ground - 2 * _height / 3) {
hp -= Math.round((Math.abs(xgrav) + Math.abs(ygrav)) / defense);
gotoAndStop('hit');
flung = false;
hitGround = true;
this.hpbar.counter = 30;
this.hpbar._alpha = 100;
}
if (_y < ground - 2 * _height / 3) {
gotoAndStop('held');
_rotation = _rotation + 10;
_x = _x + xgrav;
_y = _y + ygrav;
++ygrav;
} else {
if (hp <= 0) {
gotoAndStop('smack');
_y = ground;
_rotation = 0;
dead = true;
} else {
_y = ground;
flung = false;
held = false;
_rotation = 0;
}
}
}
} else {
if (_alpha == 100) {
mc = _root.oroblood.duplicateMovieClip(_root.getNextHighestDepth() + 'blood', _root.getNextHighestDepth());
this.swapDepths(mc);
mc._x = _x;
mc._y = _y;
mc._alpha = 100;
--_root.wavePeople;
++_root.totalkill;
--_root.numPeople;
cc = _root.coin.duplicateMovieClip('cc' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
cc._y = _y;
cc._x = _x;
}
_alpha = _alpha - 1;
_alpha = _alpha - 1;
if (_alpha <= 0) {
loadMovie('', this);
this.removeMovieClip();
removeMovieClip(this);
}
}
}
}
}
}
}
}
onClipEvent (press) {
_root.dragon.dragon.gotoAndStop(2);
_root.swordheld.play();
if (hp > 0) {
++counter;
if (counter < 5) {
if (this.hurt._currentframe == 1) {
hp -= _root.clickdmg;
if (hp <= 0) {
}
}
hurt = true;
this.gotoAndStop('hurt');
this.hurt.gotoAndPlay(1);
hp -= _root.clickdmg;
if (hp <= 0) {
_root.ACslash = true;
gotoAndStop('smack');
dead = true;
fight = false;
}
this.hpbar.counter = 30;
} else {
if (this.hpbar._alpha <= 0) {
this.hpbar.counter = 30;
}
this.hpbar._alpha = 100;
_root.ring.play();
_root.ring._x = _root._xmouse;
_root.ring._y = _root._ymouse;
_root.dragon.dragon.gotoAndStop('hold');
_root.dragon.mcHold = this;
held = true;
}
}
}
onClipEvent (release) {
_root.dragon.dragon.gotoAndStop(1);
counter = 0;
isHolding = false;
if (held == true) {
counter = 0;
_root.ring._alpha = 100;
_root.ring._y = 9999;
_root.dragon.dragon.gotoAndStop('fly');
held = false;
flung = true;
xgrav = (_root.dragon._x - _root.grav._x) * 0.2;
ygrav = (_root.dragon._y - _root.grav._y) * 0.2;
}
}
onClipEvent (releaseOutside) {
_root.dragon.dragon.gotoAndStop(1);
counter = 0;
isHolding = false;
if (held == true) {
_root.ring._alpha = 100;
_root.ring._y = 999999;
_root.dragon.dragon.gotoAndStop('fly');
held = false;
flung = true;
xgrav = (_root.dragon._x - _root.grav._x) * 0.2;
ygrav = (_root.dragon._y - _root.grav._y) * 0.2;
}
}
}
movieClip 1908 {
}
movieClip 1917 {
}
movieClip 1937 {
}
movieClip 1946 {
}
movieClip 1954 {
}
movieClip 2010 {
frame 3 {
if (_root.savefile.data.rufuskill != true) {
_root.savefile.data.rufuskill = true;
_root.savefile.flush();
}
}
frame 126 {
_root.bossroundwin.play();
stop();
}
}
movieClip 2017 {
}
movieClip 2018 {
frame 1 {
stop();
}
instance attacking of movieClip 1908 {
onClipEvent (enterFrame) {
if (_root.pauseMenu._visible == true) {
stop();
} else {
play();
}
}
}
frame 2 {
stop();
}
instance throwing of movieClip 1937 {
onClipEvent (enterFrame) {
if (_root.pauseMenu._visible == true) {
stop();
} else {
play();
}
}
}
frame 3 {
stop();
}
instance run of movieClip 1946 {
onClipEvent (enterFrame) {
if (_root.pauseMenu._visible == true) {
stop();
} else {
play();
}
}
}
frame 4 {
stop();
}
instance hurt of movieClip 1954 {
onClipEvent (enterFrame) {
if (_root.pauseMenu._visible == true) {
stop();
} else {
play();
}
}
}
frame 5 {
stop();
}
frame 6 {
stop();
}
}
instance boss2 of movieClip 2018 {
onClipEvent (load) {
var speed = 1;
var attackDelay = 150;
var dead = false;
var isAttacking = false;
var bombmc;
var hp = 50;
var isHurt = false;
var mc;
var normattack = false;
var bossy = 0;
var rufuspunchi = false;
rufuspunchi = false;
var normattack = false;
}
onClipEvent (enterFrame) {
if (_root.gameover._visible == true) {
_root.boss2.bossy = 0;
_root.boss2.hp = 0;
_root.boss2.dead = true;
_root.boss2.speed = 1;
_root.boss2.attackDelay = 60;
_root.boss2.isAttacking = false;
_root.boss2.isHurt = false;
_root.boss2._x = -500;
_root.boss2._y = 9001;
_root.wavePeople = 0;
_root.roundkill = 0;
}
if (_root.dropIn._currentframe > 4 && _root.dropIn._currentframe < 83) {
_root.boss2.bossy = 0;
_root.boss2.hp = 0;
_root.boss2.dead = true;
_root.boss2.speed = 1;
_root.boss2.attackDelay = 60;
_root.boss2.isAttacking = false;
_root.boss2.isHurt = false;
_root.boss2._x = -500;
_root.boss2._y = 9001;
_root.wavePeople = 0;
_root.roundkill = 0;
}
if (bossy == 1) {
if (_root.pauseGame == false) {
if (this.death._currentframe == 69) {
mc = _root.rufushead.duplicateMovieClip(_root.getNextHighestDepth + 'yadda', _root.getNextHighestDepth());
mc = _root.rufusbod.duplicateMovieClip(_root.getNextHighestDepth + 'yadda', _root.getNextHighestDepth());
mc = _root.rufuswing1.duplicateMovieClip(_root.getNextHighestDepth + 'yadda', _root.getNextHighestDepth());
mc = _root.rufuswing2.duplicateMovieClip(_root.getNextHighestDepth + 'yadda', _root.getNextHighestDepth());
mc = _root.rufusleg1.duplicateMovieClip(_root.getNextHighestDepth + 'yadda', _root.getNextHighestDepth());
mc = _root.rufusleg2.duplicateMovieClip(_root.getNextHighestDepth + 'yadda', _root.getNextHighestDepth());
mc = _root.rufusarm1.duplicateMovieClip(_root.getNextHighestDepth + 'yadda', _root.getNextHighestDepth());
mc = _root.rufusarm2.duplicateMovieClip(_root.getNextHighestDepth + 'yadda', _root.getNextHighestDepth());
mc = _root.bossblood.duplicateMovieClip(_root.getNextHighestDepth() + 'blood', _root.getNextHighestDepth());
mc._x = _x;
this.swapDepths(mc);
mc._y = _y;
}
if (_currentframe == 4) {
_x = _x - 5;
}
if (_root.dothings.boss == 2) {
if (_root.bossRound == false) {
dead = true;
} else {
if (this.hurt._currentframe == 25) {
isHurt = false;
}
if (hp > 0) {
_root.bossDead = false;
}
if (this.hitTest(_root.bombmc) && isAttacking == false) {
hp -= 10;
gotoAndStop('hurt');
isAttacking = false;
attackDelay = 150;
isHurt = true;
hurt.gotoAndPlay(1);
}
if (this.hitTest(_root.bmbsplode) && hp > 0) {
hp -= 10;
gotoAndStop('hurt');
isAttacking = false;
attackDelay = 150;
isHurt = true;
hurt.gotoAndPlay(1);
}
--attackDelay;
if (normattack == true && this.pawnchie._currentframe == 4 || this.pawnchi._currentframe == 14) {
_root.hp -= 7;
if (_root.gut.gut._currentframe == 1) {
_root.gut.gut.play();
}
}
if (attackDelay <= 0 && isHurt == false) {
isAttacking = true;
attackDelay = 150;
}
if (hp <= 0) {
hp = 0;
if (this.death._currentframe == 125) {
_root.bossDead = true;
_root.bossRound = false;
_root.wavePeople = 0;
_root.numPeople = 0;
_root.head.talking = true;
_root.head.gotoAndStop(3);
_root.head.talk.gotoAndStop(Math.ceil(Math.random() * 5));
}
gotoAndStop('die');
dead = true;
}
if (_root.wavenum == 2 && dead == true && _root.bossDead == true && _root.dropIn._currentframe == 87) {
dead = false;
hp = 20 * _root.wavenum / 4;
}
_xscale = 100;
if (this.throwing._currentframe == 53) {
bombmc = _root.rock.duplicateMovieClip('concrete' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
bombmc._x = _x + 73.3;
bombmc._y = _y - 50;
bombmc._alpha = 100;
bombmc._rotation = 0;
bombmc.held = false;
bombmc.dead = false;
xmove = Math.abs(_x - _root.gut._x) / 25;
ymove = -20;
bombmc.flung = false;
isAttacking = false;
}
if (dead == false) {
if (rufuspunchi == false || rufuspunchi == undefined) {
if (normattack == false && !_root.gut.hitTest(_x + _width / 2 + 200, _y, true) && isAttacking == false && isHurt == false) {
_x = _x + speed;
gotoAndStop('run');
} else {
if (_x > 200) {
normattack = true;
} else {
normattack = false;
}
if (normattack == true) {
if (!_root.gut.hitTest(this)) {
_x = _x + speed;
gotoAndStop('run');
} else {
if (this.hitTest(_root.gut)) {
rufuspunchi = true;
this.gotoAndStop('pawnch');
}
}
} else {
if (isHurt == false) {
gotoAndStop('throw');
isAttacking = true;
}
}
}
} else {
gotoAndStop('pawnch');
if (normattack == true && this.pawnchie._currentframe == 4 || this.pawnchie._currentframe == 14) {
_root.hp -= 20;
if (_root.gut.gut._currentframe == 1) {
_root.gut.gut.play();
}
}
}
}
}
}
}
}
}
onClipEvent (press) {
_root.dragon.dragon.gotoAndStop(2);
--hp;
}
onClipEvent (release) {
_root.dragon.dragon.gotoAndStop(1);
}
onClipEvent (releaseOutside) {
_root.dragon.dragon.gotoAndStop(1);
}
}
instance rock of movieClip 1917 {
onClipEvent (load) {
var xmove = Math.abs(_x - _root.gut._x) / 25;
if (xmove < 14) {
xmove = 14;
}
var ymove = -20;
var nme;
var splode = _root.xsplode;
var flame;
var looper = 0;
var cannon;
var xstart = _x;
var hit = false;
var ground = _root.boss2._y;
var clicked = false;
var held = false;
var flung = false;
var hitBoss = false;
var iter = 0;
var parts = 50;
var prtcl;
var shardmc;
var fallnow = false;
}
onClipEvent (enterFrame) {
if (_name != 'rock') {
if (_root.boss2.hp <= 0) {
this.removeMovieClip();
removeMovieClip(this);
loadMovie('', this);
}
}
if (_root.pauseGame == false) {
if (hitBoss == false) {
if (clicked == false) {
if (hit == false) {
_rotation = ymove * 2;
if (xmove > 15) {
xmove = 15;
}
_x = _x + xmove;
++ymove;
}
if (_root.gut.hitTest(_x - 35, _y - 20, true)) {
if (hit == false) {
_root.poosh._x = _x;
_root.poosh._y = _y;
_root.poosh.play();
this.swapDepths(_root.poosh);
_root.rockbreak.play();
shardmc = _root.shard.duplicateMovieClip(_root.getNextHighestDepth() + 'shard', _root.getNextHighestDepth());
shardmc._x = _x;
shardmc._y = _y;
shardmc.xmove = -1 * Math.abs(shardmc.xmove) - 3;
shardmc = _root.shard.duplicateMovieClip(_root.getNextHighestDepth() + 'shard', _root.getNextHighestDepth());
shardmc._x = _x;
shardmc._y = _y;
shardmc.xmove = -1 * Math.abs(shardmc.xmove) - 3;
shardmc = _root.shard.duplicateMovieClip(_root.getNextHighestDepth() + 'shard', _root.getNextHighestDepth());
shardmc._x = _x;
shardmc._y = _y;
shardmc.xmove = -1 * Math.abs(shardmc.xmove) - 3;
_root.hp -= 40;
hit = true;
xmove *= -1;
flung = true;
if (_root.gut.gut._currentframe == 1) {
_root.gut.gut.play();
}
loadMovie('', this);
removeMovieClip(this);
this.removeMovieClip();
}
}
if (_alpha <= 0) {
loadMovie('', this);
removeMovieClip(this);
this.removeMovieClip();
}
} else {
if (held == true) {
_x = _root._xmouse;
_y = _root._ymouse;
} else {
if (flung == true) {
if (this.hitTest(_root.boss2) && fallnow == false) {
if (Math.abs(xmove) > 5) {
hitBoss = true;
held = false;
flung = false;
_root.boss2.hp -= 10;
_root.boss2.gotoAndStop('hurt');
_root.boss2.isHurt = true;
loadMovie('', this);
removeMovieClip(this);
this.removeMovieClip();
} else {
xmove = 5;
ymove = -5;
fallnow = true;
}
}
_rotation = ymove * 2 * Math.abs(xmove) / xmove;
_x = _x + xmove;
_y = _y + ymove;
++ymove;
if (_y >= ground) {
held = false;
flung = false;
xmove = 0;
ymove = 0;
_root.poosh._x = _x;
_root.poosh._y = _y;
_root.poosh.play();
this.swapDepths(_root.poosh);
_root.rockbreak.play();
shardmc = _root.shard.duplicateMovieClip(_root.getNextHighestDepth() + 'shard', _root.getNextHighestDepth());
shardmc._x = _x;
shardmc._y = _y;
shardmc = _root.shard.duplicateMovieClip(_root.getNextHighestDepth() + 'shard', _root.getNextHighestDepth());
shardmc._x = _x;
shardmc._y = _y;
shardmc = _root.shard.duplicateMovieClip(_root.getNextHighestDepth() + 'shard', _root.getNextHighestDepth());
shardmc._x = _x;
shardmc._y = _y;
loadMovie('', this);
removeMovieClip(this);
this.removeMovieClip();
_y = ground;
}
}
}
}
}
}
}
onClipEvent (release) {
_root.dragon.dragon.gotoAndStop('fly');
held = false;
flung = true;
xmove = (_root.dragon._x - _root.grav._x) * 0.2;
ymove = (_root.dragon._y - _root.grav._y) * 0.2;
}
onClipEvent (releaseOutside) {
_root.dragon.dragon.gotoAndStop('fly');
held = false;
flung = true;
xmove = (_root.dragon._x - _root.grav._x) * 0.2;
ymove = (_root.dragon._y - _root.grav._y) * 0.2;
}
onClipEvent (press) {
if (fallnow == false) {
_root.dragon.dragon.gotoAndStop('hold');
clicked = true;
held = true;
flung = false;
xmove = 0;
ymove = 0;
_x = _root._xmouse;
_y = _root._ymouse;
}
}
}
movieClip 2021 {
frame 1 {
stop();
}
}
movieClip 2023 {
}
instance rufushead of movieClip 2023 {
onClipEvent (load) {
var rot = Math.random() * 20 - 10;
_alpha = 100;
_x = _root.boss2._x;
_y = _root.boss2._y;
var ground = _root.boss2._y;
var delay = 150;
var xmove = Math.random() * 60 - 30;
if (Math.abs(xmove) < 5) {
xmove = (Math.abs(xmove) / xmove) * 5;
}
var ymove = Math.random() * -25 - 5;
}
onClipEvent (enterFrame) {
if (Math.abs(ground - _y) > 10) {
_rotation = _rotation + rot;
}
if (_root.pauseGame == false) {
if (_name != 'rufushead') {
if (Math.abs(ymove) < 1 && Math.abs(ground - _y) < 10) {
_rotation = _rotation + Math.abs(xmove) / xmove;
}
_y = _y + ymove;
_x = _x + xmove;
xmove *= 0.9;
if (_y >= ground) {
_y = ground;
if (Math.abs(ymove) > 2) {
ymove *= -0.4;
} else {
ymove = 0;
}
}
++ymove;
--delay;
if (delay <= 0 && _alpha > 0) {
_alpha = _alpha - 1;
_alpha = _alpha - 1;
if (_alpha <= 0) {
this.removeMovieClip();
removeMovieClip(this);
loadMovie('', this);
}
}
}
}
}
}
movieClip 2025 {
}
instance rufusarm1 of movieClip 2025 {
onClipEvent (load) {
var rot = Math.random() * 20 - 10;
_alpha = 100;
_x = _root.boss2._x;
_y = _root.boss2._y;
var ground = _root.boss2._y;
var delay = 150;
var xmove = Math.random() * 60 - 30;
if (Math.abs(xmove) < 5) {
xmove = (Math.abs(xmove) / xmove) * 5;
}
var ymove = Math.random() * -25 - 5;
}
onClipEvent (enterFrame) {
if (Math.abs(ground - _y) > 10) {
_rotation = _rotation + rot;
}
if (_root.pauseGame == false) {
if (_name != 'rufusarm1') {
if (Math.abs(ymove) < 1 && Math.abs(ground - _y) < 10) {
_rotation = _rotation + Math.abs(xmove) / xmove;
}
_y = _y + ymove;
_x = _x + xmove;
xmove *= 0.9;
if (_y >= ground) {
_y = ground;
if (Math.abs(ymove) > 2) {
ymove *= -0.4;
} else {
ymove = 0;
}
}
++ymove;
--delay;
if (delay <= 0 && _alpha > 0) {
_alpha = _alpha - 1;
_alpha = _alpha - 1;
if (_alpha <= 0) {
this.removeMovieClip();
removeMovieClip(this);
loadMovie('', this);
}
}
}
}
}
}
movieClip 2027 {
}
instance rufusbod of movieClip 2027 {
onClipEvent (load) {
var rot = Math.random() * 20 - 10;
_alpha = 100;
_x = _root.boss2._x;
_y = _root.boss2._y;
var ground = _root.boss2._y;
var delay = 150;
var xmove = Math.random() * 60 - 30;
if (Math.abs(xmove) < 5) {
xmove = (Math.abs(xmove) / xmove) * 5;
}
var ymove = Math.random() * -25 - 5;
}
onClipEvent (enterFrame) {
if (Math.abs(ground - _y) > 10) {
_rotation = _rotation + rot;
}
if (_root.pauseGame == false) {
if (_name != 'rufusbod') {
if (Math.abs(ymove) < 1 && Math.abs(ground - _y) < 10) {
_rotation = _rotation + Math.abs(xmove) / xmove;
}
_y = _y + ymove;
_x = _x + xmove;
xmove *= 0.9;
if (_y >= ground) {
_y = ground;
if (Math.abs(ymove) > 2) {
ymove *= -0.4;
} else {
ymove = 0;
}
}
++ymove;
--delay;
if (delay <= 0 && _alpha > 0) {
_alpha = _alpha - 1;
_alpha = _alpha - 1;
if (_alpha <= 0) {
this.removeMovieClip();
removeMovieClip(this);
loadMovie('', this);
}
}
}
}
}
}
movieClip 2029 {
}
instance rufusleg1 of movieClip 2029 {
onClipEvent (load) {
var rot = Math.random() * 20 - 10;
_alpha = 100;
_x = _root.boss2._x;
_y = _root.boss2._y;
var ground = _root.boss2._y;
var delay = 150;
var xmove = Math.random() * 60 - 30;
if (Math.abs(xmove) < 5) {
xmove = (Math.abs(xmove) / xmove) * 5;
}
var ymove = Math.random() * -25 - 5;
}
onClipEvent (enterFrame) {
if (Math.abs(ground - _y) > 10) {
_rotation = _rotation + rot;
}
if (_root.pauseGame == false) {
if (_name != 'rufusleg1') {
if (Math.abs(ymove) < 1 && Math.abs(ground - _y) < 10) {
_rotation = _rotation + Math.abs(xmove) / xmove;
}
_y = _y + ymove;
_x = _x + xmove;
xmove *= 0.9;
if (_y >= ground) {
_y = ground;
if (Math.abs(ymove) > 2) {
ymove *= -0.7;
} else {
ymove = 0;
}
}
++ymove;
--delay;
if (delay <= 0 && _alpha > 0) {
_alpha = _alpha - 1;
_alpha = _alpha - 1;
if (_alpha <= 0) {
this.removeMovieClip();
removeMovieClip(this);
loadMovie('', this);
}
}
}
}
}
}
movieClip 2031 {
}
instance rufuswing1 of movieClip 2031 {
onClipEvent (load) {
var rot = Math.random() * 20 - 10;
_alpha = 100;
_x = _root.boss2._x;
_y = _root.boss2._y;
var ground = _root.boss2._y;
var delay = 150;
var xmove = Math.random() * 60 - 30;
if (Math.abs(xmove) < 5) {
xmove = (Math.abs(xmove) / xmove) * 5;
}
var ymove = Math.random() * -25 - 5;
}
onClipEvent (enterFrame) {
if (Math.abs(ground - _y) > 10) {
_rotation = _rotation + rot;
}
if (_root.pauseGame == false) {
if (_name != 'rufuswing1') {
if (Math.abs(ymove) < 1 && Math.abs(ground - _y) < 10) {
_rotation = _rotation + Math.abs(xmove) / xmove;
}
_y = _y + ymove;
_x = _x + xmove;
xmove *= 0.9;
if (_y >= ground) {
_y = ground;
if (Math.abs(ymove) > 2) {
ymove *= -0.4;
} else {
ymove = 0;
}
}
++ymove;
--delay;
if (delay <= 0 && _alpha > 0) {
_alpha = _alpha - 1;
_alpha = _alpha - 1;
if (_alpha <= 0) {
this.removeMovieClip();
removeMovieClip(this);
loadMovie('', this);
}
}
}
}
}
}
movieClip 2042 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
}
instance oroblood of movieClip 2042 {
onClipEvent (load) {
var delay = 30;
_alpha = 100;
gotoAndStop(Math.floor(Math.random() * 4));
undefined + 1;
}
onClipEvent (enterFrame) {
if (_root.pauseGame == false) {
--delay;
if (_name != 'oroblood' && delay <= 0) {
_alpha = _alpha - 1;
_alpha = _alpha - 1;
if (_alpha <= 0) {
this.removeMovieClip();
loadMovie('', this);
removeMovieClip(this);
}
}
}
}
}
movieClip 2045 {
}
instance bossblood of movieClip 2045 {
onClipEvent (load) {
var delay = 30;
_alpha = 100;
}
onClipEvent (enterFrame) {
if (_root.pauseGame == false) {
--delay;
if (_name != 'bossblood' && delay <= 0) {
_alpha = _alpha - 1;
_alpha = _alpha - 1;
if (_alpha <= 0) {
this.removeMovieClip();
loadMovie('', this);
removeMovieClip(this);
}
}
}
}
}
instance rufusarm2 of movieClip 2025 {
onClipEvent (load) {
var rot = Math.random() * 20 - 10;
_alpha = 100;
_x = _root.boss2._x;
_y = _root.boss2._y;
var ground = _root.boss2._y;
var delay = 150;
var xmove = Math.random() * 60 - 30;
if (Math.abs(xmove) < 5) {
xmove = (Math.abs(xmove) / xmove) * 5;
}
var ymove = Math.random() * -25 - 5;
}
onClipEvent (enterFrame) {
if (Math.abs(ground - _y) > 10) {
_rotation = _rotation + rot;
}
if (_root.pauseGame == false) {
if (_name != 'rufusarm2') {
if (Math.abs(ymove) < 1 && Math.abs(ground - _y) < 10) {
_rotation = _rotation + Math.abs(xmove) / xmove;
}
_y = _y + ymove;
_x = _x + xmove;
xmove *= 0.9;
if (_y >= ground) {
_y = ground;
if (Math.abs(ymove) > 2) {
ymove *= -0.4;
} else {
ymove = 0;
}
}
++ymove;
--delay;
if (delay <= 0 && _alpha > 0) {
_alpha = _alpha - 1;
_alpha = _alpha - 1;
if (_alpha <= 0) {
this.removeMovieClip();
removeMovieClip(this);
loadMovie('', this);
}
}
}
}
}
}
instance rufusleg2 of movieClip 2029 {
onClipEvent (load) {
var rot = Math.random() * 20 - 10;
_alpha = 100;
_x = _root.boss2._x;
_y = _root.boss2._y;
var ground = _root.boss2._y;
var delay = 150;
var xmove = Math.random() * 60 - 30;
if (Math.abs(xmove) < 5) {
xmove = (Math.abs(xmove) / xmove) * 5;
}
var ymove = Math.random() * -25 - 5;
}
onClipEvent (enterFrame) {
if (Math.abs(ground - _y) > 10) {
_rotation = _rotation + rot;
}
if (_root.pauseGame == false) {
if (_name != 'rufusleg2') {
if (Math.abs(ymove) < 1 && Math.abs(ground - _y) < 10) {
_rotation = _rotation + Math.abs(xmove) / xmove;
}
_y = _y + ymove;
_x = _x + xmove;
xmove *= 0.9;
if (_y >= ground) {
_y = ground;
if (Math.abs(ymove) > 2) {
ymove *= -0.4;
} else {
ymove = 0;
}
}
++ymove;
--delay;
if (delay <= 0 && _alpha > 0) {
_alpha = _alpha - 1;
_alpha = _alpha - 1;
if (_alpha <= 0) {
this.removeMovieClip();
removeMovieClip(this);
loadMovie('', this);
}
}
}
}
}
}
instance rufuswing2 of movieClip 2031 {
onClipEvent (load) {
var rot = Math.random() * 20 - 10;
_alpha = 100;
_x = _root.boss2._x;
_y = _root.boss2._y;
var ground = _root.boss2._y;
var delay = 150;
var xmove = Math.random() * 60 - 30;
if (Math.abs(xmove) < 5) {
xmove = (Math.abs(xmove) / xmove) * 5;
}
var ymove = Math.random() * -25 - 5;
}
onClipEvent (enterFrame) {
if (Math.abs(ground - _y) > 10) {
_rotation = _rotation + rot;
}
if (_name != 'rufuswing2') {
if (Math.abs(ymove) < 1 && Math.abs(ground - _y) < 10) {
_rotation = _rotation + Math.abs(xmove) / xmove;
}
_y = _y + ymove;
_x = _x + xmove;
xmove *= 0.9;
if (_y >= ground) {
_y = ground;
if (Math.abs(ymove) > 2) {
ymove *= -0.4;
} else {
ymove = 0;
}
}
++ymove;
--delay;
if (delay <= 0 && _alpha > 0) {
_alpha = _alpha - 1;
_alpha = _alpha - 1;
if (_alpha <= 0) {
this.removeMovieClip();
removeMovieClip(this);
loadMovie('', this);
}
}
}
}
}
movieClip 2049 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
}
movieClip 2056 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 6 {
stop();
}
}
instance rock of movieClip 2056 {
onClipEvent (load) {
var held = false;
var flung = false;
var moveSpeed = 2;
var xgrav;
var ygrav;
var ground = _y;
var hits = 2;
var depth = 0;
}
onClipEvent (enterFrame) {
if (hits == 2) {
gotoAndStop(1);
}
if (hits == 1) {
gotoAndStop(2);
}
if (hits == 0) {
play();
--hits;
}
if (held == true) {
_x = _root._xmouse;
_y = _root._ymouse + _height / 2;
} else {
depth = 0;
}
if (flung == true && _y < ground + 30) {
_rotation = _rotation + 10;
_x = _x + xgrav;
_y = _y + ygrav;
++ygrav;
xgrav *= 0.99;
}
if (held == false && flung == true && _y > ground + 30) {
_y = ground;
held = false;
flung = false;
_rotation = 0;
}
}
onClipEvent (press) {
_root.dragon.dragon.gotoAndStop('hold');
_root.dragon.mcHold = this;
held = true;
flung = false;
_rotation = 0;
}
onClipEvent (release) {
_root.dragon.dragon.gotoAndStop('fly');
held = false;
flung = true;
xgrav = (_root.dragon._x - _root.grav._x) * 0.2;
ygrav = (_root.dragon._y - _root.grav._y) * 0.2;
}
onClipEvent (releaseOutside) {
_root.dragon.dragon.gotoAndStop('fly');
held = false;
flung = true;
xgrav = (_root.dragon._x - _root.grav._x) * 0.2;
ygrav = (_root.dragon._y - _root.grav._y) * 0.2;
}
}
movieClip 2065 {
}
movieClip 2068 {
}
button 2075 {
on (release) {
if (_root.dropIn._currentframe == 38) {
_root.shopmc._visible = true;
_root.shopmc.swapDepths(_root.getNextHighestDepth());
}
}
}
button 2079 {
on (release) {
if (_root.dothings.round2 == 0) {
if (_root.bg1.stage2 == true) {
_root.bg1.stage2 = false;
_root.bg1.stage3 = true;
} else {
if (_root.bg1.stage3 == true) {
_root.bg1.stage2 = false;
_root.bg1.stage3 = false;
} else {
_root.bg1.stage2 = true;
_root.bg1.stage3 = false;
}
}
_root.bosssound.stop();
_root.ingamemusic.stop();
_root.ingamemusic.start(0, 999);
_root.soundcontrol.ingamemusic.start(0, 999);
}
_root.inShop = false;
_parent.play();
}
}
movieClip 2080 {
}
movieClip 2083 {
}
button 2084 {
on (release) {
getURL('www.armorgames.com', '_new', 'GET');
}
}
movieClip 2085 {
frame 1 {
stop();
}
frame 28 {
_root.savefile.data.hazgame = true;
_root.savefile.flush();
}
frame 38 {
_root.archer1.spot = _root.homebase2;
_root.knight1.spot = _root.homebase;
_root.cannon1.spot = _root.homebase3;
urls_allowed = ['armorgames.com', 'www.armorgames.com'];
domain_parts = _url.split('://');
real_domain = domain_parts[1].split('/');
domain.text = real_domain[0];
for (x in urls_allowed) {
if (urls_allowed[x] == real_domain[0]) {
lock = false;
}
}
if (lock) {
System.security.allowDomain('server.cpmstar.com');
_root.dropIn.anotherad.adBox.loadMovie('http://server.cpmstar.com/adviewas2.swf?contentspotid=4144QCD2D9AB7');
} else {
_root.dropIn.anotherad.removeMovieClip();
_root.dropIn.anotherad.unloadMovie();
removeMovieClip(_root.dropIn.anotherad);
}
currentDomain = _url.split('/');
currentDomain = currentDomain[2];
if (currentDomain.indexOf('armorgames.com') != -1) {
_root.anotherad._visible = false;
_root.anotherad.removeMovieClip();
_root.anotherad.unloadMovie();
removeMovieClip(_root.anotherad);
}
stop();
}
frame 39 {
_root.enemyarray = new Array();
}
}
instance dropIn of movieClip 2085 {
onClipEvent (enterFrame) {
if (_currentframe != 1) {
_root.soundcontrol.ingamemusic.setVolume(30);
}
if (_root._currentframe == 511) {
if (_root.pauseGame == false) {
if (_currentframe == 4) {
this.swapDepths(_root.getNextHighestDepth());
_root.shopmc.swapDepths(_root.getNextHighestDepth());
}
_x = _root.hpbar._x + 109.3;
if (_currentframe == 38) {
if (_root.dragon.hitTest(this)) {
_root.dragon.isHiding = false;
} else {
_root.dragon.isHiding = true;
}
}
}
} else {
loadMovie('', this);
this.removeMovieClip();
removeMovieClip(this);
}
}
}
movieClip 2087 {
}
movieClip 2089 {
}
movieClip 2090 {
frame 31 {
stop();
}
}
instance rdy of movieClip 2090 {
onClipEvent (load) {
gotoAndStop(31);
}
onClipEvent (enterFrame) {
_x = _root.hpbar._x + 375;
}
}
movieClip 2095 {
}
movieClip 2098 {
}
movieClip 2101 {
}
movieClip 2109 {
}
movieClip 2116 {
}
button 2120 {
on (rollOver) {
_parent.txt = 'Zomfg? O_O?';
}
on (release) {
_parent.txt = 'FUCK YEAH!!!!!!11!!\nLOL, that\'s me on the left.';
_root.fukyeah._visible = true;
_root.fukyeah._alpha = 100;
_root.fukyeah.gotoAndPlay(1);
_root.fukyeah.play();
_root.fukyeah.swapDepths(_root.getNextHighestDepth());
}
}
movieClip 2121 {
}
movieClip 2123 {
}
movieClip 2125 {
}
button 2129 {
on (rollOver) {
txt = 'Buy the power of fire!\nDragon shoots fireballs at enemies!\nCost 2000 gold!';
}
on (press) {
_root.clearYesNo();
}
on (release) {
txt = 'Are you sure?';
_root.shopmc.fireyes._visible = true;
_root.shopmc.fireno._visible = true;
_root.shopmc.fireyes.swapDepths(_root.getNextHighestDepth());
_root.shopmc.fireno.swapDepths(_root.getNextHighestDepth());
}
}
button 2133 {
on (rollOver) {
txt = 'Buy some laxitive. (O_O)\nA different kind of kick for the different kind of sick.\nCost 1500 gold!';
}
on (press) {
_root.clearYesNo();
}
on (release) {
txt = 'Are you sure?';
_root.shopmc.laxyes._visible = true;
_root.shopmc.laxno._visible = true;
_root.shopmc.laxyes.swapDepths(_root.getNextHighestDepth());
_root.shopmc.laxno.swapDepths(_root.getNextHighestDepth());
}
}
button 2137 {
on (rollOver) {
txt = 'Buy a Jalepeno!!.\nGive your dragon a kick to his shit.\nCost 500 gold!';
}
on (press) {
_root.clearYesNo();
}
on (release) {
txt = 'Are you sure?';
_root.shopmc.jalyes._visible = true;
_root.shopmc.jalno._visible = true;
_root.shopmc.jalyes.swapDepths(_root.getNextHighestDepth());
_root.shopmc.jalno.swapDepths(_root.getNextHighestDepth());
}
}
button 2141 {
on (rollOver) {
txt = 'Buy Body Armor.\nProtect your big \'ol dragon!\nCost 2000 gold!';
}
on (press) {
_root.clearYesNo();
}
on (release) {
txt = 'Are you sure?';
_root.shopmc.armoryes._visible = true;
_root.shopmc.armorno._visible = true;
_root.shopmc.armoryes.swapDepths(_root.getNextHighestDepth());
_root.shopmc.armorno.swapDepths(_root.getNextHighestDepth());
}
}
button 2145 {
on (rollOver) {
if (_root.clickdmg < 7) {
txt = 'Buy level 1337 claws.\nDo extra damage when you grab your enemy. (+6)\nCost 100,000 gold!';
} else {
txt = 'You already have these claws...\nYou\'re not buying them again...';
}
}
on (press) {
_root.clearYesNo();
}
on (release) {
txt = 'Are you sure?';
_root.shopmc.claw4yes._visible = true;
_root.shopmc.claw4no._visible = true;
_root.shopmc.claw4yes.swapDepths(_root.getNextHighestDepth());
_root.shopmc.claw4no.swapDepths(_root.getNextHighestDepth());
}
}
button 2149 {
on (rollOver) {
if (_root.clickdmg < 5) {
txt = 'Buy level 3 claws.\nDo extra damage when you grab your enemy. (+4)\nCost 5000 gold!';
} else {
txt = 'You already have better claws...\nIf you buy these you\'re dumb. =(\nI won\'t stop you though. 5000 Gold';
}
}
on (press) {
_root.clearYesNo();
}
on (release) {
txt = 'Are you sure?';
_root.shopmc.claw3yes._visible = true;
_root.shopmc.claw3no._visible = true;
_root.shopmc.claw3yes.swapDepths(_root.getNextHighestDepth());
_root.shopmc.claw3no.swapDepths(_root.getNextHighestDepth());
}
}
button 2153 {
on (rollOver) {
if (_root.clickdmg < 3) {
txt = 'Buy level 2 claws.\nDo extra damage when you grab your enemy. (+2)\nCost 1500 gold!';
} else {
txt = 'You already have better claws...\nIf you buy these you\'re dumb. =(\nI won\'t stop you though. 1500 Gold';
}
}
on (press) {
_root.clearYesNo();
}
on (release) {
txt = 'Are you sure?';
_root.shopmc.claw2yes._visible = true;
_root.shopmc.claw2no._visible = true;
_root.shopmc.claw2yes.swapDepths(_root.getNextHighestDepth());
_root.shopmc.claw2no.swapDepths(_root.getNextHighestDepth());
}
}
button 2157 {
on (rollOver) {
if (_root.clickdmg == 1) {
txt = 'Buy level 1 claws.\nDo extra damage when you grab your enemy. (+1)\nCost 750 gold!';
} else {
txt = 'You already have better claws...\nIf you buy these you\'re dumb. =(\nI won\'t stop you though. 750 Gold';
}
}
on (press) {
_root.clearYesNo();
}
on (release) {
txt = 'Are you sure?';
_root.shopmc.claw1yes._visible = true;
_root.shopmc.claw1no._visible = true;
_root.shopmc.claw1yes.swapDepths(_root.getNextHighestDepth());
_root.shopmc.claw1no.swapDepths(_root.getNextHighestDepth());
}
}
button 2160 {
on (rollOver) {
txt = 'Buy a Cannon!\nBlast away your foes with the latest and greatest firearms!\nCosts 1500 gold.';
}
on (release) {
txt = 'Are you sure?';
_root.shopmc.cannonyes._visible = true;
_root.shopmc.cannonno._visible = true;
_root.shopmc.cannonyes.swapDepths(_root.getNextHighestDepth());
_root.shopmc.cannonno.swapDepths(_root.getNextHighestDepth());
}
on (press) {
_root.clearYesNo();
}
}
button 2164 {
on (rollOver) {
txt = 'Buy an AWSUM 1337 C4N|\\|0Nb411!\nSmash your enemies and launch \'em farther then ever! (+?)\nCost 5000 gold!';
}
on (release) {
txt = 'Are you sure?';
_root.shopmc.cball4yes._visible = true;
_root.shopmc.cball4no._visible = true;
_root.shopmc.cball4yes.swapDepths(_root.getNextHighestDepth());
_root.shopmc.cball4no.swapDepths(_root.getNextHighestDepth());
}
on (press) {
_root.clearYesNo();
}
}
button 2168 {
on (rollOver) {
if (_root.numhppacks < 3) {
txt = 'Buy a medkit!\nYou only get 3 at a time, watch it.\nCost 1000 gold! (You have: ' + _root.numhppacks + ' right now.)';
} else {
txt = 'Oh noes!\nYou only get 3 at a time.\nYou already have 3 health packs! NO MOAR!';
}
}
on (release) {
_root.shopmc.medyes._visible = true;
_root.shopmc.medno._visible = true;
_root.shopmc.medyes.swapDepths(_root.getNextHighestDepth());
_root.shopmc.medno.swapDepths(_root.getNextHighestDepth());
}
on (press) {
_root.clearYesNo();
}
}
button 2172 {
on (rollOver) {
txt = 'Hire a Builder!\nHe fixes and upgrades stuff.\nCost 1000 gold!';
}
on (press) {
_root.clearYesNo();
}
on (release) {
txt = 'Are you sure?';
_root.shopmc.mechyes._visible = true;
_root.shopmc.mechno._visible = true;
_root.shopmc.mechyes.swapDepths(_root.getNextHighestDepth());
_root.shopmc.mechno.swapDepths(_root.getNextHighestDepth());
}
}
button 2176 {
on (rollOver) {
txt = 'Hire an Archer!\nTake out your enemies from afar.\nCost 2000 gold!';
}
on (press) {
_root.clearYesNo();
}
on (release) {
txt = 'Are you sure?';
_root.shopmc.archeryes._visible = true;
_root.shopmc.archerno._visible = true;
_root.shopmc.archeryes.swapDepths(_root.getNextHighestDepth());
_root.shopmc.archerno.swapDepths(_root.getNextHighestDepth());
}
}
button 2180 {
on (rollOver) {
txt = 'Hire a Knight!\nHe does the dirty work so you don\'t have to!\nCost 2000 gold!';
}
on (press) {
_root.clearYesNo();
}
on (release) {
txt = 'Are you sure?';
_root.shopmc.knightyes._visible = true;
_root.shopmc.knightno._visible = true;
_root.shopmc.knightyes.swapDepths(_root.getNextHighestDepth());
_root.shopmc.knightno.swapDepths(_root.getNextHighestDepth());
}
}
button 2184 {
on (rollOver) {
txt = 'Buy a large cannonball!\nHit your enemies harder and farther. (+1)\nCost 500 gold!';
}
on (release) {
txt = 'Are you sure?';
_root.shopmc.cball1yes._visible = true;
_root.shopmc.cball1no._visible = true;
_root.shopmc.cball1yes.swapDepths(_root.getNextHighestDepth());
_root.shopmc.cball1no.swapDepths(_root.getNextHighestDepth());
}
on (press) {
_root.clearYesNo();
}
}
button 2188 {
on (rollOver) {
txt = 'Buy a flaming cannonball!\nBurn your enemies for more damage. (+2)\nCost 1000 gold!';
}
on (release) {
txt = 'Are you sure?';
_root.shopmc.cball2yes._visible = true;
_root.shopmc.cball2no._visible = true;
_root.shopmc.cball2yes.swapDepths(_root.getNextHighestDepth());
_root.shopmc.cball2no.swapDepths(_root.getNextHighestDepth());
}
on (press) {
_root.clearYesNo();
}
}
button 2192 {
on (rollOver) {
txt = 'Buy an ice cannonball!\nFreeze you enemies in their tracks. (+3)\nCost 2000 gold!';
}
on (release) {
txt = 'Are you sure?';
_root.shopmc.cball3yes._visible = true;
_root.shopmc.cball3no._visible = true;
_root.shopmc.cball3yes.swapDepths(_root.getNextHighestDepth());
_root.shopmc.cball3no.swapDepths(_root.getNextHighestDepth());
}
on (press) {
_root.clearYesNo();
}
}
button 2196 {
on (rollOver) {
txt = 'Buy a wall!!\nA big mass of stone. Exciting, no?\nCost 1000 gold!';
this.bb.roll = true;
this.bb.gotoAndStop(14);
}
on (rollOut) {
this.bb.roll = false;
}
on (press) {
_root.clearYesNo();
}
on (release) {
txt = 'Are you sure?';
_root.shopmc.wallyes._visible = true;
_root.shopmc.wallno._visible = true;
_root.shopmc.wallyes.swapDepths(_root.getNextHighestDepth());
_root.shopmc.wallno.swapDepths(_root.getNextHighestDepth());
}
}
button 2200 {
on (rollOver) {
txt = 'Buy a gym!\nGet stronger through hard work!(Or the push of a button)\nCost 1000 gold!';
this.bb.roll = true;
this.bb.gotoAndStop(14);
}
on (rollOut) {
this.bb.roll = false;
}
on (press) {
_root.clearYesNo();
}
on (release) {
txt = 'Are you sure?';
_root.shopmc.gymyes._visible = true;
_root.shopmc.gymno._visible = true;
_root.shopmc.gymyes.swapDepths(_root.getNextHighestDepth());
_root.shopmc.gymno.swapDepths(_root.getNextHighestDepth());
}
}
movieClip 2202 {
}
button 2206 {
on (release) {
_root.clearYesNo();
if (_root.numhppacks < 3) {
if (_root.gold >= 1000) {
_root.gold -= 1000;
_root.buysound.play();
++_root.numhppacks;
txt = 'Bought a Health Pack!\nYou now have ' + _root.numhppacks + ' health packs.';
} else {
txt = 'NOT ENOUGH GOLD!!\nYou need ' + (1000 - _root.gold) + ' more gold.';
}
} else {
txt = 'I SAID NO MOAR!!!! Stop being greedy!\nHealth care isn\'t free........ yet...';
}
}
}
button 2210 {
on (release) {
_root.clearYesNo();
}
}
button 2211 {
on (release) {
_root.clearYesNo();
if (_root.gold >= 500) {
_root.buysound.play();
_root.gold -= 500;
_root.cannon1.dmg = 2;
_root.savefile.data.cannon1buy = true;
_root.checkcannons();
txt = 'Bought Big Cannonball!\nHehe... boom.';
} else {
txt = 'NOT ENOUGH GOLD!!\nYou need ' + (500 - _root.gold) + ' more gold.';
}
}
}
button 2212 {
on (release) {
_root.clearYesNo();
}
}
button 2213 {
on (release) {
_root.clearYesNo();
if (_root.gold >= 1000) {
_root.buysound.play();
_root.gold -= 1000;
_root.cannon1.dmg = 3;
_root.savefile.data.cannon2buy = true;
_root.checkcannons();
txt = 'Bought Flaming Cannonball!\nFire burnin\', fire burnin\' on the dance floor!';
} else {
txt = 'NOT ENOUGH GOLD!!\nYou need ' + (1000 - _root.gold) + ' more gold.';
}
}
}
button 2214 {
on (release) {
_root.clearYesNo();
if (_root.gold >= 2000) {
_root.buysound.play();
_root.gold -= 2000;
_root.cannon1.dmg = 4;
_root.savefile.data.cannon3buy = true;
_root.checkcannons();
txt = 'Bought Ice Cannonball!\nFREEZE SUCKAH!!';
} else {
txt = 'NOT ENOUGH GOLD!!\nYou need ' + (2000 - _root.gold) + ' more gold.';
}
}
}
button 2215 {
on (release) {
_root.clearYesNo();
if (_root.gold >= 5000) {
_root.buysound.play();
_root.gold -= 5000;
_root.cannon1.dmg = 5;
_root.savefile.data.cannon4buy = true;
_root.checkcannons();
txt = 'Bought H4X012 AWSUM 1337 C4N|\\|0Nb411!\nUse HYRDO PUMP!!!!!(fail)!';
} else {
txt = 'NOT ENOUGH GOLD!!\nYou need ' + (5000 - _root.gold) + ' more gold.';
}
}
}
button 2216 {
on (release) {
_root.clearYesNo();
if (_root.gold >= 2000) {
if (_root.hasbod == true) {
txt = 'You already have a wall.';
} else {
if (_root.hasbod == true) {
txt = 'You already have the body armor!!';
} else {
_root.hp *= 2;
_root.hasbod = true;
_root.gold -= 2000;
_root.buysound.play();
}
txt = 'Bought the armor!!\nThat should take a load of your back...\tbut puts a ton or two on his...';
_root.gut.gotoAndStop(2);
}
} else {
txt = 'NOT ENOUGH GOLD!!\nYou need ' + (2000 - _root.gold) + ' more gold.';
}
}
}
button 2217 {
on (release) {
_root.clearYesNo();
if (_root.gold >= 500) {
if (_root.hasPoop == true) {
txt = 'You already have flaming shitz.';
} else {
if (_root.hasPoop == true) {
txt = 'You already have the flaming shitz.';
} else {
_root.hasPoop = true;
_root.gold -= 500;
_root.buysound.play();
}
txt = 'Bought Jalepeno!!\nOooooo, I feel one cookin.\nThat\'s gotta hurt...!!!';
}
} else {
txt = 'NOT ENOUGH GOLD!!\nYou need ' + (500 - _root.gold) + ' more gold.';
}
}
}
button 2218 {
on (release) {
_root.clearYesNo();
if (_root.gold >= 1500 && _root.hasLax == false) {
_root.gold -= 1500;
_root.buysound.play();
_root.hasLax = true;
txt = 'Bought the Laxitives!!!!\nPOOOOOOOOOOP!!!';
} else {
if (_root.gold < 1500) {
txt = 'NOT ENOUGH GOLD!!\nYou need ' + (1500 - _root.gold) + ' more gold.';
}
if (_root.hasLax) {
txt = 'You already bought the Laxitives.';
}
}
}
}
button 2219 {
on (release) {
_root.clearYesNo();
if (_root.gold >= 2000) {
if (_root.hasFire == true) {
txt = 'You already have fire breath.';
} else {
if (_root.hasFire == true) {
txt = 'You already have the fire breath!!';
} else {
_root.hasFire = true;
_root.gold -= 2000;
_root.buysound.play();
}
txt = 'Bought fire breath!!\nNow your big friend will helps ya out.\nWITH FIAH!!!';
}
} else {
txt = 'NOT ENOUGH GOLD!!\nYou need ' + (2000 - _root.gold) + ' more gold.';
}
}
}
button 2220 {
on (release) {
_root.clearYesNo();
if (_root.gold >= 1000) {
if (_root.haswall == true) {
txt = 'You already have a wall. :D';
} else {
_root.gold -= 1000;
_root.buysound.play();
_root.haswall = true;
_root.wall._y = 390;
_root.wallLVL = 1;
_root.wall.hp = 100;
txt = 'Bought the wall!!\nWhat better to hold your enemies back?';
_root.mm._visible = true;
_root.mm.swapDepths(_root.getNextHighestDepth());
_root.mm.mm.cur = _root.mm.mm.w;
}
}
}
}
button 2221 {
on (release) {
_root.clearYesNo();
if (_root.gold >= 1000) {
if (_root.hasGym == true && _root.gymlvl < 3) {
++_root.gymlvl;
if (_root.gymlvl == 3) {
_root.savefile.data.maxgym = true;
_root.savefile.flush();
}
_root.gold -= 1000;
_root.buysound.play();
txt = 'Upgraded the gym!!\nGET OFF THE JUICE MAN!!';
} else {
if (_root.gymlvl == 0) {
_root.hasGym = true;
_root.gold -= 1000;
_root.buysound.play();
_root.gymlvl = 1;
txt = 'Bought the gym!!\nGET HUUUUUUGE!!!!11!ONE!';
} else {
txt = 'YOU ALREADY HAVE THE BEST GYM!!!\nLevel 3 takes 3 seconds to upgrade.';
}
}
} else {
txt = 'NOT ENOUGH GOLD!!\nYou need ' + (1000 - _root.gold) + ' more gold.';
}
}
}
button 2222 {
on (release) {
_root.clearYesNo();
if (_root.gold >= 750) {
_root.clickdmg = 2;
_root.gold -= 750;
_root.buysound.play();
txt = 'Bought Claws!!!\nRip \'em to shreds!';
} else {
txt = 'NOT ENOUGH GOLD!!\nYou need ' + (750 - _root.gold) + ' more gold.';
}
}
}
button 2223 {
on (release) {
_root.clearYesNo();
if (_root.gold >= 1500) {
_root.gold -= 1500;
_root.buysound.play();
_root.clickdmg = 2;
txt = 'Bought Iron Claws!!\nTear their ass asunder!';
} else {
txt = 'NOT ENOUGH GOLD!!\nYou need ' + (1500 - _root.gold) + ' more gold.';
}
}
}
button 2224 {
on (release) {
_root.clearYesNo();
if (_root.gold >= 5000) {
_root.gold -= 5000;
_root.buysound.play();
_root.clickdmg = 3;
txt = 'Bought Dragon Claws!!\nRip them a new one!';
} else {
txt = 'NOT ENOUGH GOLD!!\nYou need ' + (5000 - _root.gold) + ' more gold.';
}
}
}
button 2225 {
on (release) {
_root.clearYesNo();
if (_root.clickdmg < 7) {
if (_root.gold >= 100000) {
_root.gold -= 100000;
_root.buysound.play();
_root.clickdmg = 7;
if (_root.savefile.data.golden != true) {
_root.savefile.data.golden = true;
_root.savefile.flush();
}
txt = 'Bought Gold Claws!!\nFUCK EM UP!!!';
} else {
txt = 'NOT ENOUGH GOLD!!\nYou need ' + (100000 - _root.gold) + ' more gold.';
}
}
}
}
button 2226 {
on (release) {
_root.clearYesNo();
if (_root.gold >= 1500) {
if (_root.cannon1.inUse == true) {
txt = 'You already have a cannon.';
} else {
_root.gold -= 1500;
if (_root.savefile.data.cannonbought != true) {
_root.savefile.data.cannonbought = true;
_root.savefile.flush();
}
_root.buysound.play();
_root.cannon1.inUse = true;
_root.cannon1.firing = false;
_root.cannon1.spot = _root.homebase;
_root.cannon1._alpha = 100;
_root.cannon1.hp = 100;
_root.cannon1.gotoAndStop(1);
txt = 'Bought Cannon!!\nDo you have a permit to use this thing?';
_root.mm._visible = true;
_root.mm.swapDepths(_root.getNextHighestDepth());
_root.mm.mm.cur = _root.mm.mm.c;
}
} else {
txt = 'NOT ENOUGH GOLD!!\nYou need ' + (1500 - _root.gold) + ' more gold.';
}
}
}
button 2227 {
on (release) {
_root.clearYesNo();
if (_root.gold >= 2000) {
if (_root.knight1.inUse == true) {
txt = 'You already have a knight.';
} else {
_root.gold -= 2000;
_root.buysound.play();
_root.knight1.inUse = true;
_root.knight1.inCombat = false;
_root.knight1.spot = _root.homebase;
_root.knight1._alpha = 100;
_root.knight1.gotoAndStop(1);
_root.knight1.hp = 100;
_root.knight1._x = 485;
_root.knight1._y = 370;
txt = 'Bought Knight!!\nPlay nice you two. ;D';
_root.mm._visible = true;
_root.mm.swapDepths(_root.getNextHighestDepth());
_root.mm.mm.cur = _root.mm.mm.k;
}
} else {
txt = 'NOT ENOUGH GOLD!!\nYou need ' + (2000 - _root.gold) + ' more gold.';
}
}
}
button 2228 {
on (release) {
_root.clearYesNo();
if (_root.gold >= 2000) {
if (_root.archer1.inUse == true) {
txt = 'You already have an archer.';
} else {
_root.gold -= 2000;
_root.buysound.play();
_root.archer1.inUse = true;
_root.archer1.inCombat = false;
_root.archer1.spot = _root.homebase2;
_root.archer1.gotoAndStop(1);
_root.archer1.hp = 100;
_root.archer1._alpha = 100;
_root.archer1._x = 440;
_root.archer1._y = 410;
txt = 'Bought Archer!!\nYou\'ll shoot yer eye out kid. (*_O)';
_root.mm._visible = true;
_root.mm.swapDepths(_root.getNextHighestDepth());
_root.mm.mm.cur = _root.mm.mm.ar;
}
} else {
txt = 'NOT ENOUGH GOLD!!\nYou need ' + (2000 - _root.gold) + ' more gold.';
}
}
}
button 2229 {
on (release) {
_root.clearYesNo();
if (_root.gold >= 1000) {
if (_root.mech.inUse == true) {
txt = 'You already have a builder.';
} else {
_root.gold -= 1000;
_root.buysound.play();
_root.mech.inUse = true;
_root.mech.inCombat = false;
_root.mech.spot = _root.homebase4;
_root.mech._alpha = 100;
_root.mech.hp = 100;
_root.mech._x = 468.25;
_root.mech._y = 347.25;
txt = 'Bought Builder!!\nGo fix some stuffz.';
}
} else {
txt = 'NOT ENOUGH GOLD!!\nYou need ' + (1000 - _root.gold) + ' more gold.';
}
}
}
button 2233 {
on (release) {
_root.hscore._visible = true;
_root.hscore.swapDepths(_root.getNextHighestDepth());
if (_root.gold > _root.savefile.data.highscore || _root.savefile.data.highscore == undefined) {
_root.savefile.data.highscore = _root.gold;
_root.savefile.flush();
}
}
}
button 2238 {
on (release) {
if (_root.dothings.round2 == 0) {
if (_root.bg1.stage2 == true) {
_root.bg1.stage2 = false;
_root.bg1.stage3 = true;
} else {
if (_root.bg1.stage3 == true) {
_root.bg1.stage2 = false;
_root.bg1.stage3 = false;
} else {
_root.bg1.stage2 = true;
_root.bg1.stage3 = false;
}
}
_root.bosssound.stop();
_root.ingamemusic.stop();
_root.ingamemusic.start(0, 999);
_root.soundcontrol.ingamemusic.start(0, 999);
}
_root.inShop = false;
_root._quality = 'low';
_root.shopmc._visible = false;
this._parent.dropIn.play();
}
}
button 2239 {
on (release) {
_root._quality = 'low';
_root.shopmc._visible = false;
}
}
button 2243 {
on (release) {
_root.medals._visible = true;
_root.medals.swapDepths(_root.getNextHighestDepth());
_root.checkall();
}
}
movieClip 2244 {
instance of movieClip 2109 {
onClipEvent (enterFrame) {
if (this._parent.bb._currentframe == 14) {
this._parent.bgym._visible = true;
this._parent.bwall._visible = true;
} else {
this._parent.bgym._visible = false;
this._parent.bwall._visible = false;
}
}
}
instance of movieClip 2121 {
onClipEvent (load) {
txt = 'Hello, welcome to the shop. What do you want to buy?';
}
}
instance of movieClip 2125 {
onClipEvent (load) {
txt = 'Hello, welcome to the shop. What do you want to buy?';
}
}
instance of movieClip 1140 {
onClipEvent (load) {
_root.gold = 0;
}
}
}
instance shopmc of movieClip 2244 {
onClipEvent (load) {
_root.clearYesNo();
_visible = false;
var qualitycheck = 'medium';
this.medyes._visible = false;
this.medno._visible = false;
}
onClipEvent (enterFrame) {
_root.inStore = _visible;
if (_visible == true && _root.fukyeah._visible == false) {
_root._quality = 'high';
} else {
if (_root.fukyeah._visible == false) {
qualitycheck = _root._quality;
_root._quality = qualitycheck;
} else {
_quality = 'low';
}
}
_x = _root.hpbar._x - 79.29000000000001;
_y = _root.hpbar._y - 20;
if (_root.dropIn._currentframe == 2) {
swapDepths(_root.getNextHighestDepth());
}
}
}
movieClip 2250 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
}
instance shard of movieClip 2250 {
onClipEvent (load) {
this.gotoAndStop(Math.round(Math.random() * 4 + 1));
var xmove = Math.random() * 30 - 15;
if (Math.abs(xmove) < 5) {
xmove = (Math.abs(xmove) / xmove) * 5;
}
var ymove = Math.random() * -10 - 5;
var ground = _root.boss2._y;
var rot = Math.random() * 25;
rot *= Math.abs(xmove) / xmove;
}
onClipEvent (enterFrame) {
if (_root.pauseGame == false) {
if (_name != 'shard') {
if (Math.abs(ymove) < 1 && Math.abs(ground - _y) < 10) {
_rotation = _rotation + Math.abs(xmove) / xmove;
}
_y = _y + ymove;
_x = _x + xmove;
xmove *= 0.9;
if (_y >= ground) {
_y = ground;
if (_y > ground) {
ymove *= -0.2;
_rotation = _rotation + rot;
} else {
rot *= 0.8;
ymove *= 0.8;
}
}
++ymove;
--delay;
if (delay <= 0 && _alpha > 0) {
_alpha = _alpha - 1;
_alpha = _alpha - 1;
if (_alpha <= 0) {
this.removeMovieClip();
removeMovieClip(this);
loadMovie('', this);
}
}
}
}
}
}
movieClip 2253 {
}
movieClip 2254 {
frame 12 {
stop();
}
}
movieClip 2256 {
}
movieClip 2258 {
}
movieClip 2260 {
}
movieClip 2261 {
}
movieClip 2262 {
instance mm of movieClip 2256 {
onClipEvent (release) {
xspot = _root.hpbar._x - 50 + _root._xmouse;
yspot = _root.hpbar._y - 10 + _root._ymouse;
if (xspot > 400 && xspot < 700 && yspot > 225 && yspot < 275) {
cur._x = xspot - _root.mm._x;
realx = (cur._x - 700) / 0.2580645;
if (cur._name != 'wallicon') {
cur._y = yspot;
realy = (cur._y - 25) / 0.625;
}
if (cur._name == 'knighticon') {
_root.knight1._x = realx;
_root.knight1._y = realy;
_root.homebase._x = realx;
_root.homebase._y = realy;
}
if (cur._name == 'cannonicon') {
_root.cannon1._x = realx;
_root.cannon1._y = realy;
}
if (cur._name == 'archericon') {
_root.archer1._x = realx;
_root.archer1._y = realy;
_root.homebase2._x = realx;
}
if (cur._name == 'wallicon') {
_root.wall._x = realx;
}
cur = null;
_parent._visible = false;
}
}
onClipEvent (load) {
var xspot;
var yspot;
var realx;
var realy;
var cur;
var c = _parent.cannonicon;
var k = _parent.knighticon;
var w = _parent.wallicon;
var ar = _parent.archericon;
}
}
instance cannonicon of movieClip 1418 {
onClipEvent (enterFrame) {
_visible = _root.cannon1.inUse;
if (_root.mm.mm.cur == this && (_root._xmouse > 400 && _root._xmouse < 700 && _root._ymouse > 225 && _root._ymouse < 275)) {
_y = _root._ymouse;
_x = _root._xmouse + 140;
}
}
}
instance wallicon of movieClip 2258 {
onClipEvent (enterFrame) {
if (_root.mm.mm.cur == this && (_root._xmouse > 400 && _root._xmouse < 700 && _root._ymouse > 225 && _root._ymouse < 275)) {
_x = _root._xmouse + 140;
}
}
}
instance knighticon of movieClip 2260 {
onClipEvent (enterFrame) {
_visible = _root.knight1.inUse;
if (_root.mm.mm.cur == this && (_root._xmouse > 400 && _root._xmouse < 700 && _root._ymouse > 225 && _root._ymouse < 275)) {
_y = _root._ymouse;
_x = _root._xmouse + 140;
}
}
}
instance archericon of movieClip 1415 {
onClipEvent (enterFrame) {
_visible = _root.archer1.inUse;
if (_root.mm.mm.cur == this && (_root._xmouse > 400 && _root._xmouse < 700 && _root._ymouse > 225 && _root._ymouse < 275)) {
_y = _root._ymouse;
_x = _root._xmouse + 140;
}
}
}
}
instance mm of movieClip 2262 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_x = _root.hpbar._x - 181.1;
_y = -4;
if (_root.dropIn._currentframe == 6) {
this.swapDepths(_root.getNextHighestDepth());
}
}
}
movieClip 2266 {
frame 1 {
stop();
}
frame 5 {
stop();
}
}
instance flasheffect of movieClip 2266 {
onClipEvent (enterFrame) {
if (_root.hp <= 0 && _currentframe == 1) {
play();
}
}
}
movieClip 2269 {
}
instance bloodsplat of movieClip 2269 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_x = _root.hpbar._x - 70;
if (_root.head._currentframe == 4) {
_visible = true;
} else {
_visible = false;
}
}
}
movieClip 2272 {
}
movieClip 2282 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
frame 7 {
stop();
}
frame 8 {
stop();
}
frame 9 {
stop();
}
}
button 2286 {
on (release) {
_root.quitGame();
}
}
movieClip 2292 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
}
movieClip 2298 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 2304 {
}
movieClip 2310 {
}
button 2311 {
on (release) {
if (_root.haswall == true) {
_root.mech.homing = true;
_root.mech.spot = _root.wall;
_root.mech.work = 'heal';
}
}
}
button 2312 {
on (release) {
if (_root.numhppacks > 0 && _root.archer1.inUse == true && _root.archer1.hp > 0) {
--_root.numhppacks;
_root.archer1.hp = 100;
}
}
}
button 2313 {
on (release) {
if (_root.numhppacks > 0 && _root.knight1.inUse == true && _root.knight1.hp > 0) {
--_root.numhppacks;
_root.knight1.hp = 100;
}
}
}
button 2314 {
on (release) {
if (_root.numhppacks > 0 && _root.mech.inUse == true && _root.mech.hp > 0) {
--_root.numhppacks;
_root.mech.hp = 100;
}
}
}
button 2315 {
on (release) {
if (_root.numhppacks > 0) {
--_root.numhppacks;
if (_root.hasbod == false) {
_root.hp = 100;
} else {
_root.hp = 200;
}
}
}
}
button 2316 {
on (release) {
if (_root.cannon1.inUse == true && _root.cannon1.hp > 0) {
_root.mech.homing = true;
_root.mech.spot = _root.cannon1;
_root.mech.work = 'heal';
}
}
}
movieClip 2319 {
}
movieClip 2322 {
}
movieClip 2325 {
}
movieClip 2328 {
}
movieClip 2331 {
}
button 2332 {
on (release) {
if (_root.gold >= 1000 && _root.mech.inUse) {
_root.mech.homing = true;
_root.mech.spot = _root.wall;
_root.mech.work = 'up';
_root.gold -= 1000;
}
}
}
button 2333 {
on (release) {
if (_currentframe == 1 && _root.hasGym == true && _root.gold >= 500 * _root.archer1.lvl && _root.archer1.spot._name != 'shopspot' && _root.archer1.lvl < 6) {
_root.gold -= 500 * _root.archer1.lvl;
_root.archer1.inCombat = false;
_root.archer1.spot.fight = false;
_root.archer1.spot = _root.shopspot;
_root.archer1.homing = true;
}
}
}
button 2334 {
on (release) {
if (_currentframe == 1 && _root.hasGym == true && _root.gold >= 500 * _root.knight1.lvl && _root.knight1.spot._name != 'shopspot' && _root.knight1.lvl < 6) {
_root.gold -= 500 * _root.knight1.lvl;
_root.knight1.inCombat = false;
_root.knight1.spot.fight = false;
_root.knight1.spot = _root.shopspot;
_root.knight1.homing = true;
}
}
}
button 2335 {
on (release) {
if (_root.gold >= 1000) {
_root.mech.homing = true;
_root.mech.spot = _root.cannon1;
_root.mech.work = 'up';
}
}
}
movieClip 2336 {
instance of movieClip 2272 {
onClipEvent (release) {
}
}
instance of movieClip 2282 {
onClipEvent (enterFrame) {
stop();
_visible = _root.haswall;
if (_root.haswall == true) {
if (_root.wall.hp == 100) {
gotoAndStop(1);
} else {
if (_root.wall.hp / _root.wallLVL > 80) {
gotoAndStop(2);
} else {
if (_root.wall.hp / _root.wallLVL > 60) {
gotoAndStop(3);
} else {
if (_root.wall.hp / _root.wallLVL > 50) {
gotoAndStop(4);
} else {
if (_root.wall.hp / _root.wallLVL > 40) {
gotoAndStop(5);
} else {
if (_root.wall.hp / _root.wallLVL > 30) {
gotoAndStop(6);
} else {
if (_root.wall.hp / _root.wallLVL > 10) {
gotoAndStop(7);
} else {
if (_root.wall.hp / _root.wallLVL > 0) {
gotoAndStop(8);
} else {
if (_root.wall.hp / _root.wallLVL == 0) {
gotoAndStop(9);
}
}
}
}
}
}
}
}
}
} else {
gotoAndStop(9);
}
}
}
instance of movieClip 2282 {
onClipEvent (enterFrame) {
stop();
_visible = _root.archer1.inUse;
if (_root.archer1.inUse == true) {
if (_root.archer1.hp == 100) {
gotoAndStop(1);
} else {
if (_root.archer1.hp > 80) {
gotoAndStop(2);
} else {
if (_root.archer1.hp > 60) {
gotoAndStop(3);
} else {
if (_root.archer1.hp > 50) {
gotoAndStop(4);
} else {
if (_root.archer1.hp > 40) {
gotoAndStop(5);
} else {
if (_root.archer1.hp > 30) {
gotoAndStop(6);
} else {
if (_root.archer1.hp > 10) {
gotoAndStop(7);
} else {
if (_root.archer1.hp > 0) {
gotoAndStop(8);
} else {
if (_root.archer1.hp == 0) {
gotoAndStop(9);
}
}
}
}
}
}
}
}
}
} else {
gotoAndStop(9);
}
}
}
instance of movieClip 2282 {
onClipEvent (enterFrame) {
stop();
_visible = _root.knight1.inUse;
if (_root.knight1.inUse == true) {
if (_root.knight1.hp == 100) {
gotoAndStop(1);
} else {
if (_root.knight1.hp > 80) {
gotoAndStop(2);
} else {
if (_root.knight1.hp > 60) {
gotoAndStop(3);
} else {
if (_root.knight1.hp > 50) {
gotoAndStop(4);
} else {
if (_root.knight1.hp > 40) {
gotoAndStop(5);
} else {
if (_root.knight1.hp > 30) {
gotoAndStop(6);
} else {
if (_root.knight1.hp > 10) {
gotoAndStop(7);
} else {
if (_root.knight1.hp > 0) {
gotoAndStop(8);
} else {
if (_root.knight1.hp == 0) {
gotoAndStop(9);
}
}
}
}
}
}
}
}
}
} else {
gotoAndStop(9);
}
}
}
instance of movieClip 2282 {
onClipEvent (enterFrame) {
stop();
_visible = _root.mech.inUse;
if (_root.mech.hp == 100) {
gotoAndStop(1);
} else {
if (_root.mech.hp > 80) {
gotoAndStop(2);
} else {
if (_root.mech.hp > 60) {
gotoAndStop(3);
} else {
if (_root.mech.hp > 50) {
gotoAndStop(4);
} else {
if (_root.mech.hp > 40) {
gotoAndStop(5);
} else {
if (_root.mech.hp > 30) {
gotoAndStop(6);
} else {
if (_root.mech.hp > 20) {
gotoAndStop(7);
} else {
if (_root.mech.hp > 10) {
gotoAndStop(8);
} else {
if (_root.mech.hp == 0) {
gotoAndStop(9);
}
}
}
}
}
}
}
}
}
}
}
instance of movieClip 2282 {
onClipEvent (enterFrame) {
stop();
_visible = _root.cannon1.inUse;
if (_root.cannon1.inUse == true) {
if (_root.cannon1.hp == 100) {
gotoAndStop(1);
} else {
if (_root.cannon1.hp > 80) {
gotoAndStop(2);
} else {
if (_root.cannon1.hp > 60) {
gotoAndStop(3);
} else {
if (_root.cannon1.hp > 50) {
gotoAndStop(4);
} else {
if (_root.cannon1.hp > 40) {
gotoAndStop(5);
} else {
if (_root.cannon1.hp > 30) {
gotoAndStop(6);
} else {
if (_root.cannon1.hp > 10) {
gotoAndStop(7);
} else {
if (_root.cannon1.hp > 0) {
gotoAndStop(8);
} else {
if (_root.cannon1.hp == 0) {
gotoAndStop(9);
}
}
}
}
}
}
}
}
}
} else {
gotoAndStop(9);
}
}
}
instance of movieClip 2282 {
onClipEvent (enterFrame) {
stop();
if (_root.hp == 100) {
gotoAndStop(1);
} else {
if (_root.hp > 80) {
gotoAndStop(2);
} else {
if (_root.hp > 60) {
gotoAndStop(3);
} else {
if (_root.hp > 50) {
gotoAndStop(4);
} else {
if (_root.hp > 40) {
gotoAndStop(5);
} else {
if (_root.hp > 30) {
gotoAndStop(6);
} else {
if (_root.hp > 10) {
gotoAndStop(7);
} else {
if (_root.hp > 0) {
gotoAndStop(8);
} else {
if (_root.hp == 0) {
gotoAndStop(9);
}
}
}
}
}
}
}
}
}
}
}
instance of movieClip 2292 {
onClipEvent (enterFrame) {
gotoAndStop(4 - _root.numhppacks);
}
}
instance of movieClip 2298 {
onClipEvent (enterFrame) {
_root.pauseMenu.healArcher._visible = _root.archer1.inUse;
if (_root.archer1.hp == 100 || _root.archer1.inUse == false) {
gotoAndStop(2);
_root.pauseMenu.healArcher._visible = false;
} else {
gotoAndStop(1);
_root.pauseMenu.healArcher._visible = true;
}
if (_root.archer1.inUse) {
_visible = !_root.pauseMenu.healArcher._visible;
} else {
_visible = false;
}
}
}
instance of movieClip 2298 {
onClipEvent (enterFrame) {
_root.pauseMenu.healKnight._visible = _root.knight1.inUse;
if (_root.knight1.hp == 100 || _root.knight1.inUse == false) {
gotoAndStop(2);
_root.pauseMenu.healKnight._visible = false;
} else {
gotoAndStop(1);
_root.pauseMenu.healKnight._visible = true;
}
if (_root.knight1.inUse) {
_visible = !_root.pauseMenu.healKnight._visible;
} else {
_visible = false;
}
}
}
instance of movieClip 2298 {
onClipEvent (enterFrame) {
_root.pauseMenu.healMech._visible = _root.mech.inUse;
if (_root.mech.hp == 100 || _root.mech.inUse == false) {
gotoAndStop(2);
_root.pauseMenu.healMech._visible = false;
} else {
gotoAndStop(1);
_root.pauseMenu.healMech._visible = true;
}
if (_root.mech.inUse) {
_visible = !_root.pauseMenu.healMech._visible;
} else {
_visible = false;
}
}
}
instance of movieClip 2304 {
onClipEvent (enterFrame) {
_root.pauseMenu.fixCannon._visible = _root.cannon1.inUse;
_visible = _root.cannon1.inUse;
if (_root.cannon1.hp == 100 || _root.cannon1.inUse == false) {
gotoAndStop(2);
_root.pauseMenu.fixCannon._visible = false;
} else {
gotoAndStop(1);
_root.pauseMenu.fixCannon._visible = true;
}
if (_root.cannon1.inUse) {
_visible = !_root.pauseMenu.healCannon._visible;
} else {
_visible = false;
}
}
}
instance of movieClip 2304 {
onClipEvent (enterFrame) {
_root.pauseMenu.fixWall._visible = _root.haswall;
if (_root.wall.hp == 100 || _root.haswall == false) {
gotoAndStop(2);
_root.pauseMenu.fixWall._visible = false;
} else {
if (_root.haswall == true) {
gotoAndStop(1);
_root.pauseMenu.fixWall._visible = true;
}
}
if (_root.haswall) {
_visible = !_root.pauseMenu.fixWall._visible;
} else {
_visible = false;
}
}
}
instance of movieClip 2298 {
onClipEvent (enterFrame) {
if (_root.hp == 100) {
gotoAndStop(2);
_root.pauseMenu.heal._visible = false;
} else {
gotoAndStop(1);
_root.pauseMenu.heal._visible = true;
}
}
}
instance of movieClip 2310 {
onClipEvent (enterFrame) {
_visible = _root.knight1.inUse;
if (_visible) {
if (_root.knight1.lvl == 6) {
gotoAndStop(2);
_root.pauseMenu.upknight._visible = false;
} else {
gotoAndStop(1);
_root.pauseMenu.upknight._visible = true;
}
} else {
_root.pauseMenu.upknight._visible = false;
}
}
}
instance of movieClip 2310 {
onClipEvent (enterFrame) {
_visible = _root.archer1.inUse;
if (_visible) {
if (_root.archer1.lvl == 6) {
gotoAndStop(2);
_root.pauseMenu.uparch._visible = false;
} else {
gotoAndStop(1);
_root.pauseMenu.uparch._visible = true;
}
} else {
_root.pauseMenu.uparch._visible = false;
}
}
}
instance of movieClip 2310 {
onClipEvent (enterFrame) {
_visible = _root.haswall;
if (_visible) {
if (_root.wallLVL == 3) {
gotoAndStop(2);
_root.pauseMenu.upwall._visible = false;
} else {
gotoAndStop(1);
_root.pauseMenu.upwall._visible = true;
}
} else {
_root.pauseMenu.upwall._visible = false;
}
}
}
instance of movieClip 2310 {
onClipEvent (enterFrame) {
_visible = _root.cannon1.inUse;
if (_visible) {
if (_root.cannon1.dmg == 3) {
gotoAndStop(2);
_root.pauseMenu.upcannon._visible = false;
} else {
gotoAndStop(1);
_root.pauseMenu.upcannon._visible = true;
}
} else {
_root.pauseMenu.upcannon._visible = false;
}
}
}
instance of movieClip 2319 {
onClipEvent (enterFrame) {
if (_root.haswall == true) {
gotoAndStop(1);
} else {
gotoAndStop(2);
}
}
}
instance of movieClip 2322 {
onClipEvent (enterFrame) {
if (_root.archer1.inUse) {
gotoAndStop(1);
} else {
gotoAndStop(2);
}
}
}
instance of movieClip 2325 {
onClipEvent (enterFrame) {
if (_root.knight1.inUse) {
gotoAndStop(1);
} else {
gotoAndStop(2);
}
}
}
instance cannoniconthingy of movieClip 2328 {
onClipEvent (enterFrame) {
if (_root.cannon1.inUse) {
gotoAndStop(1);
} else {
gotoAndStop(2);
}
}
}
instance of movieClip 2331 {
onClipEvent (enterFrame) {
if (_root.mech.inUse) {
gotoAndStop(1);
} else {
gotoAndStop(2);
}
}
}
}
instance pauseMenu of movieClip 2336 {
onClipEvent (load) {
_visible = false;
var pressedP = false;
var checkIt = false;
}
onClipEvent (enterFrame) {
if (_root.head._currentframe != 4 && _root.head._currentframe != 3) {
if (_root.dropIn._currentFrame == 1 && _root.hp > 0) {
_x = _root.hpbar._x - 92;
if (Key.isDown(80) && pressedP == false && checkIt == false) {
_root.pauseGame = true;
this.swapDepths(_root.getNextHighestDepth());
}
if (!Key.isDown(80) && pressedP == false && _root.pauseGame == true) {
pressedP = true;
}
if (Key.isDown(80) && pressedP == true) {
_root.pauseGame = false;
pressedP = false;
checkIt = true;
}
if (!Key.isDown(80) && pressedP == false && checkIt == true) {
checkIt = false;
}
if (_root.pauseGame == true) {
_visible = true;
} else {
_visible = false;
}
}
}
}
}
movieClip 2338 {
}
movieClip 2340 {
}
movieClip 2342 {
}
movieClip 2350 {
}
movieClip 2351 {
}
movieClip 2352 {
}
movieClip 2361 {
frame 1 {
if (_root.fukyeah._visible == false) {
stop();
} else {
play();
}
}
frame 2 {
if (_root.savefile.data.awesomez != true) {
_root.savefile.data.awesomez = true;
_root.savefile.flush();
}
}
frame 202 {
stop();
}
}
instance fukyeah of movieClip 2361 {
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_x = _root.hpbar._x + 375;
if (_alpha > 0 && _currentframe == 202) {
_alpha = _alpha - 2;
}
if (_alpha <= 0) {
_alpha = 0;
_visible = false;
}
}
onClipEvent (release) {
}
}
movieClip 2363 {
frame 1 {
stop();
}
}
movieClip 2367 {
}
movieClip 2368 {
}
movieClip 2374 {
}
movieClip 2385 {
}
movieClip 2391 {
}
button 2395 {
on (release) {
_root.ingamemusic.stop();
_root.ingamemusic.start(0, 999);
_root.soundcontrol.ingamemusic.start(0, 999);
_root.loadSaveFile();
}
}
movieClip 2397 {
}
movieClip 2399 {
}
movieClip 2401 {
}
movieClip 2403 {
}
movieClip 2405 {
}
movieClip 2407 {
}
movieClip 2409 {
}
movieClip 2411 {
}
movieClip 2413 {
}
movieClip 2415 {
}
movieClip 2417 {
}
movieClip 2418 {
frame 1 {
stop();
}
frame 2 {
_root.soundcontrol.ingamemusic.stop();
_root.soundcontrol.ingamemusic.stop();
_root.ingamemusic.stop();
_root.continuesound.gotoAndPlay(1);
if (_root.savefile.data.diedonce != true) {
_root.savefile.data.diedonce = true;
_root.savefile.flush();
}
_root.bosssound.stop();
}
frame 534 {
_root.gameover.contbutton._visible = false;
if (_root.savefile.data.gameovertrue != true) {
_root.savefile.data.gameovertrue = true;
_root.savefile.flush();
}
}
frame 680 {
_root.quitGame();
}
}
button 2422 {
on (release) {
_root.quitGame();
}
}
movieClip 2423 {
instance cont of movieClip 2418 {
onClipEvent (enterFrame) {
if (_root.gameover._visible == true) {
play();
} else {
gotoAndStop(1);
}
}
}
}
instance gameover of movieClip 2423 {
onClipEvent (enterFrame) {
if (_visible && _root.hp <= 0) {
if (this.getDepth() != _root.getNextHighestDepth() - 1) {
this.swapDepths(_root.getNextHighestDepth());
}
}
_x = _root.hpbar._x - 65.2;
_y = _root.hpbar._y - 20.7;
}
onClipEvent (load) {
_visible = false;
}
}
movieClip 2426 {
frame 1 {
stop();
}
}
movieClip 2430 {
frame 1 {
stop();
}
}
movieClip 2434 {
}
movieClip 2436 {
}
button 2439 {
on (release) {
_root.hscore._visible = false;
}
}
movieClip 2441 {
}
movieClip 2444 {
}
movieClip 2445 {
}
instance hscore of movieClip 2445 {
onClipEvent (load) {
_visible = false;
var besthigh = _root.savefile.data.highscore;
}
onClipEvent (enterFrame) {
if (_visible == true) {
_root.besthigh = _root.savefile.data.highscore;
if (_root.gold > _root.savefile.data.highscore) {
_root.savefile.data.highscore = _root.gold;
_root.besthigh = _root.gold;
_root.savefile.flush();
}
if (_root.savefile.data.highscore == null || _root.savefile.data.highscore == undefined) {
_root.savefile.data.highscore = _root.gold;
_root.besthigh = _root.gold;
_root.savefiled.flush();
}
}
}
}