Frame 1
function preloadSite() {
var _local3 = _root.getBytesLoaded();
var _local2 = _root.getBytesTotal();
var _local4 = Math.round((_local3 / _local2) * 100);
loadingBar._xscale = _local4;
percentDisplay.text = _local4 + "%";
percentClip._x = loadingBar._x + loadingBar._width;
if (_local3 >= _local2) {
clearInterval(loadingCall);
_root.firstscreen._alpha = 0;
gotoAndPlay (2);
local_data = SharedObject.getLocal("MS_datatemp");
existdata = local_data.data.existdata;
if (existdata != 1) {
local_data.data.existdata = 1;
local_data.data.difficulty = 0;
local_data.data.mute = 0;
local_data.data.medal = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
local_data.data.skulll1 = 0;
local_data.data.skulll2 = 0;
local_data.data.skulll3 = 0;
local_data.data.plantl1 = 0;
local_data.data.plantl2 = 0;
local_data.data.plantl3 = 0;
local_data.data.slimel1 = 0;
local_data.data.slimel2 = 0;
local_data.data.slimel3 = 0;
local_data.data.demonl1 = 0;
local_data.data.demonl2 = 0;
local_data.data.demonl3 = 0;
local_data.data.hivel1 = 0;
local_data.data.hivel2 = 0;
local_data.data.hivel3 = 0;
local_data.data.corpel1 = 0;
local_data.data.corpel2 = 0;
local_data.data.corpel3 = 0;
local_data.data.mudmanl1 = 0;
local_data.data.mudmanl2 = 0;
local_data.data.mudmanl3 = 0;
local_data.data.dragonl1 = 0;
local_data.data.dragonl2 = 0;
local_data.data.dragonl3 = 0;
local_data.data.soldiere = 0;
local_data.data.runnere = 0;
local_data.data.defendere = 0;
local_data.data.warriore = 0;
local_data.data.kamikazee = 0;
local_data.data.prieste = 0;
local_data.data.hikere = 0;
local_data.data.magee = 0;
local_data.data.titane = 0;
local_data.data.hermese = 0;
local_data.data.blazec = 0;
local_data.data.blizzardc = 0;
local_data.data.thunderc = 0;
local_data.data.tornadoc = 0;
local_data.data.cas11 = 1;
local_data.data.cas12 = 1;
local_data.data.cas13 = 0;
local_data.data.cas14 = 0;
local_data.data.cas21 = 0;
local_data.data.cas22 = 0;
local_data.data.cas23 = 0;
local_data.data.cas24 = 0;
local_data.data.cas31 = 0;
local_data.data.cas32 = 0;
local_data.data.cas33 = 0;
local_data.data.cas34 = 0;
local_data.data.cas41 = 0;
local_data.data.cas42 = 0;
local_data.data.cas43 = 0;
local_data.data.cas44 = 0;
local_data.data.mute = 0;
local_data.flush();
}
}
}
stop();
loadingBar._xscale = 1;
var loadingCall = setInterval(preloadSite, 50);
Frame 69
function soldiersgo() {
if (mute == 0) {
_root.titleson = new Sound();
_root.titleson.setVolume(300);
_root.bmute.gotoAndStop(1);
}
if (mute == 1) {
_root.titleson = new Sound();
_root.titleson.setVolume(0);
_root.bmute.gotoAndStop(2);
}
_root.bmute.sicon.onRelease = function () {
_root.titleson = new Sound();
_root.titleson.setVolume(0);
_root.bmute.gotoAndStop(2);
_root.cliky.gotoAndPlay(2);
mute = 1;
};
_root.bmute.nsicon.onRelease = function () {
_root.titleson = new Sound();
_root.titleson.setVolume(300);
_root.bmute.gotoAndStop(1);
_root.cliky.gotoAndPlay(2);
mute = 0;
};
keysecondss++;
if (keysecondss >= 18) {
keysecondss = 0;
if (soldierbox[solto] == 1) {
_root.game.attachMovie("soldieraclip", "soldier" + deeps, deeps, {_x:88, _y:417, exist:1, types:1, money:10, dir:0, hp:10, hpt:10, speed:3, lev:1, slow:0, acid:0, stopu:0, froze:0, blow:0, special:0, killhim:0, mdeath:0});
_root.game["soldier" + deeps].gotoAndStop(3);
soldierlist.push("soldier" + deeps);
deeps++;
}
if (soldierbox[solto] == 2) {
_root.game.attachMovie("soldierb", "soldier" + deeps, deeps, {_x:88, _y:417, exist:1, types:2, money:10, dir:0, hp:30, hpt:30, speed:5, lev:1, slow:0, acid:0, stopu:0, froze:0, blow:0, special:0, killhim:0, mdeath:0});
_root.game["soldier" + deeps].gotoAndStop(3);
soldierlist.push("soldier" + deeps);
deeps++;
}
if (soldierbox[solto] == 3) {
_root.game.attachMovie("soldierc", "soldier" + deeps, deeps, {_x:88, _y:417, exist:1, types:3, money:10, dir:0, hp:100, hpt:100, speed:2, lev:1, slow:0, acid:0, stopu:0, froze:0, blow:0, special:0, killhim:0, mdeath:0});
_root.game["soldier" + deeps].gotoAndStop(3);
soldierlist.push("soldier" + deeps);
soldie++;
deeps++;
}
if (soldierbox[solto] == 4) {
_root.game.attachMovie("soldierd", "soldier" + deeps, deeps, {_x:88, _y:417, exist:1, types:4, money:10, dir:0, hp:50, hpt:50, speed:2, lev:1, slow:0, acid:0, stopu:0, froze:0, blow:0, special:0, killhim:0, mdeath:0});
_root.game["soldier" + deeps].gotoAndStop(3);
soldierlist.push("soldier" + deeps);
soldie++;
deeps++;
}
if (soldierbox[solto] == 5) {
_root.game.attachMovie("soldiere", "soldier" + deeps, deeps, {_x:88, _y:417, exist:1, types:5, money:20, dir:0, hp:80, hpt:80, speed:1, lev:1, slow:0, acid:0, stopu:0, froze:0, blow:0, special:0, killhim:0, mdeath:0});
_root.game["soldier" + deeps].gotoAndStop(3);
soldierlist.push("soldier" + deeps);
soldie++;
deeps++;
}
if (soldierbox[solto] == 6) {
_root.game.attachMovie("soldierf", "soldier" + deeps, deeps, {_x:88, _y:417, exist:1, types:6, money:20, dir:0, hp:40, hpt:40, speed:3, lev:1, slow:0, acid:0, stopu:0, froze:0, blow:0, special:0, killhim:0, mdeath:0});
_root.game["soldier" + deeps].gotoAndStop(3);
soldierlist.push("soldier" + deeps);
soldie++;
deeps++;
}
if (soldierbox[solto] == 7) {
_root.game.attachMovie("soldierg", "soldier" + deeps, deeps, {_x:88, _y:417, exist:1, types:7, money:20, dir:0, hp:60, hpt:60, speed:3, lev:1, slow:0, acid:0, stopu:0, froze:0, blow:0, special:0, killhim:0, hike:2, mdeath:0});
_root.game["soldier" + deeps].gotoAndStop(3);
soldierlist.push("soldier" + deeps);
soldie++;
deeps++;
}
if (soldierbox[solto] == 8) {
_root.game.attachMovie("soldierh", "soldier" + deeps, deeps, {_x:88, _y:417, exist:1, types:8, money:20, dir:0, hp:50, hpt:50, speed:3, lev:1, slow:0, acid:0, stopu:0, froze:0, blow:0, special:0, killhim:0, mdeath:0});
_root.game["soldier" + deeps].gotoAndStop(3);
soldierlist.push("soldier" + deeps);
soldie++;
deeps++;
}
if (soldierbox[solto] == 9) {
_root.game.attachMovie("soldieri", "soldier" + deeps, deeps, {_x:88, _y:417, exist:1, types:9, money:100, dir:0, hp:500, hpt:500, speed:1, lev:1, slow:0, acid:0, stopu:0, froze:0, blow:0, special:0, killhim:0, mdeath:0});
_root.game["soldier" + deeps].gotoAndStop(3);
soldierlist.push("soldier" + deeps);
soldie++;
deeps++;
}
if (soldierbox[solto] == 10) {
_root.game.attachMovie("soldierj", "soldier" + deeps, deeps, {_x:88, _y:417, exist:1, types:10, money:100, dir:0, hp:100, hpt:100, speed:7, lev:1, slow:0, acid:0, stopu:0, froze:0, blow:0, special:0, killhim:0, mdeath:0});
_root.game["soldier" + deeps].gotoAndStop(3);
soldierlist.push("soldier" + deeps);
soldie++;
deeps++;
}
solto++;
if (solto == 10) {
solto = 0;
}
}
s = 0;
while (s < soldierlist.length) {
selects = _root.game[soldierlist[s]];
if (selects._x >= 800) {
selects.exist = 0;
selects.removeMovieClip();
soldierlist.splice(s, 1);
}
if (selects.types == 1) {
selects._x = selects._x + 3;
}
if (selects.types == 2) {
selects._x = selects._x + 3;
}
if (selects.types == 3) {
selects._x = selects._x + 3;
}
if (selects.types == 4) {
selects._x = selects._x + 3;
}
if (selects.types == 5) {
selects._x = selects._x + selects.speed;
}
if (selects.types == 6) {
selects._x = selects._x + 3;
}
if (selects.types == 7) {
selects._x = selects._x + 3;
}
if (selects.types == 8) {
selects._x = selects._x + 3;
}
if (selects.types == 9) {
selects._x = selects._x + selects.speed;
}
if (selects.types == 10) {
selects._x = selects._x + selects.speed;
}
s++;
}
}
local_data = SharedObject.getLocal("MS_datatemp");
var mute = local_data.data.mute;
var soldierbox = new Array();
var soldierlist = new Array();
soldierlist = [];
soldierbox = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 0];
var solto = 0;
deeps = 100;
_root.titleson = new Sound();
_root.titleson.setVolume(300);
var keysecondss = 0;
_root.game.onEnterFrame = function () {
soldiersgo();
};
Frame 74
stop();
_root.pressh.onRelease = function () {
_root.sondi.gotoAndPlay(2);
gotoAndPlay (76);
};
Frame 89
stop();
_root.startg.onRelease = function () {
gotoAndPlay (120);
_root.sondi.gotoAndPlay(2);
};
_root.trophi.onRelease = function () {
gotoAndPlay (90);
_root.sondi.gotoAndPlay(2);
};
Frame 104
stop();
_root.exit.onRelease = function () {
gotoAndPlay (105);
_root.sondi.gotoAndPlay(2);
};
var trophiesbas = new Array();
trophiesbas = ["tr1", "tr2", "tr3", "tr4", "tr5", "tr6", "tr7", "tr8", "tr9", "tr10", "tr11", "tr12", "tr13", "tr14", "tr15", "tr16", "tr17", "tr18", "tr19", "tr20", "tr21", "tr22", "tr23", "tr24", "tr25", "tr26", "tr27", "tr28", "tr29", "tr30", "tr31", "tr32", "tr33", "tr34", "tr35", "tr36", "tr37", "tr38", "tr39", "tr40"];
local_data = SharedObject.getLocal("MS_datatemp");
medal = local_data.data.medal;
i = 0;
while (i < medal.length) {
trop = _root[trophiesbas[i]];
if (medal[i] == 1) {
trop.gotoAndStop(2);
}
i++;
}
Frame 114
Mouse.show();
gotoAndStop (89);
Frame 138
stop();
Mouse.show();
local_data = SharedObject.getLocal("MS_datatemp");
cas11 = local_data.data.cas11;
cas12 = local_data.data.cas12;
cas13 = local_data.data.cas13;
cas14 = local_data.data.cas14;
cas21 = local_data.data.cas21;
cas22 = local_data.data.cas22;
cas23 = local_data.data.cas23;
cas24 = local_data.data.cas24;
cas31 = local_data.data.cas31;
cas32 = local_data.data.cas32;
cas33 = local_data.data.cas33;
cas34 = local_data.data.cas34;
cas41 = local_data.data.cas41;
cas42 = local_data.data.cas42;
cas43 = local_data.data.cas43;
cas44 = local_data.data.cas44;
difficulty = local_data.data.difficulty;
if (cas11 == 1) {
_root.b11.gotoAndStop(2);
}
if (cas12 == 1) {
_root.b12.gotoAndStop(2);
}
if (cas13 == 1) {
_root.b13.gotoAndStop(2);
}
if (cas14 == 1) {
_root.b14.gotoAndStop(2);
}
if (cas21 == 1) {
_root.b21.gotoAndStop(2);
}
if (cas22 == 1) {
_root.b22.gotoAndStop(2);
}
if (cas23 == 1) {
_root.b23.gotoAndStop(2);
}
if (cas24 == 1) {
_root.b24.gotoAndStop(2);
}
if (cas31 == 1) {
_root.b31.gotoAndStop(2);
}
if (cas32 == 1) {
_root.b32.gotoAndStop(2);
}
if (cas33 == 1) {
_root.b33.gotoAndStop(2);
}
if (cas34 == 1) {
_root.b34.gotoAndStop(2);
}
if (cas41 == 1) {
_root.b41.gotoAndStop(2);
}
if (cas42 == 1) {
_root.b42.gotoAndStop(2);
}
if (cas43 == 1) {
_root.b43.gotoAndStop(2);
}
if (cas44 == 1) {
_root.b44.gotoAndStop(2);
}
_root.b11.onRelease = function () {
local_data.data.mute = mute;
_root.sondi.gotoAndPlay(2);
_root.cortinag.play();
difficulty = 1;
local_data.data.difficulty = difficulty;
local_data.flush();
};
_root.b12.onRelease = function () {
local_data.data.mute = mute;
_root.sondi.gotoAndPlay(2);
_root.cortinag.play();
difficulty = 2;
local_data.data.difficulty = difficulty;
local_data.data.mute = mute;
local_data.flush();
};
_root.b13.onRelease = function () {
local_data.data.mute = mute;
_root.sondi.gotoAndPlay(2);
_root.cortinag.play();
difficulty = 3;
local_data.data.difficulty = difficulty;
local_data.flush();
};
_root.b14.onRelease = function () {
local_data.data.mute = mute;
_root.sondi.gotoAndPlay(2);
_root.cortinag.play();
difficulty = 4;
local_data.data.difficulty = difficulty;
local_data.flush();
};
_root.b21.onRelease = function () {
local_data.data.mute = mute;
_root.sondi.gotoAndPlay(2);
_root.cortinag.play();
difficulty = 5;
local_data.data.difficulty = difficulty;
local_data.flush();
};
_root.b22.onRelease = function () {
local_data.data.mute = mute;
_root.sondi.gotoAndPlay(2);
_root.cortinag.play();
difficulty = 6;
local_data.data.difficulty = difficulty;
local_data.flush();
};
_root.b23.onRelease = function () {
local_data.data.mute = mute;
_root.sondi.gotoAndPlay(2);
_root.cortinag.play();
difficulty = 7;
local_data.data.difficulty = difficulty;
local_data.flush();
};
_root.b24.onRelease = function () {
local_data.data.mute = mute;
_root.sondi.gotoAndPlay(2);
_root.cortinag.play();
difficulty = 8;
local_data.data.difficulty = difficulty;
local_data.flush();
};
_root.b31.onRelease = function () {
local_data.data.mute = mute;
_root.sondi.gotoAndPlay(2);
_root.cortinag.play();
difficulty = 9;
local_data.data.difficulty = difficulty;
local_data.flush();
};
_root.b32.onRelease = function () {
local_data.data.mute = mute;
_root.sondi.gotoAndPlay(2);
_root.cortinag.play();
difficulty = 10;
local_data.data.difficulty = difficulty;
local_data.flush();
};
_root.b33.onRelease = function () {
local_data.data.mute = mute;
_root.sondi.gotoAndPlay(2);
_root.cortinag.play();
difficulty = 11;
local_data.data.difficulty = difficulty;
local_data.flush();
};
_root.b34.onRelease = function () {
local_data.data.mute = mute;
_root.sondi.gotoAndPlay(2);
_root.cortinag.play();
difficulty = 12;
local_data.data.difficulty = difficulty;
local_data.flush();
};
_root.b41.onRelease = function () {
local_data.data.mute = mute;
_root.sondi.gotoAndPlay(2);
_root.cortinag.play();
difficulty = 13;
local_data.data.difficulty = difficulty;
local_data.flush();
};
_root.b42.onRelease = function () {
local_data.data.mute = mute;
_root.sondi.gotoAndPlay(2);
_root.cortinag.play();
difficulty = 14;
local_data.data.difficulty = difficulty;
local_data.flush();
};
_root.b43.onRelease = function () {
local_data.data.mute = mute;
_root.sondi.gotoAndPlay(2);
_root.cortinag.play();
difficulty = 15;
local_data.data.difficulty = difficulty;
local_data.flush();
};
_root.b44.onRelease = function () {
local_data.data.mute = mute;
_root.sondi.gotoAndPlay(2);
_root.cortinag.play();
difficulty = 16;
local_data.data.difficulty = difficulty;
local_data.flush();
};
_root.cortinag.onEnterFrame = function () {
if (_root.cortinag._currentframe == 15) {
gotoAndPlay (190);
}
};
Frame 154
Mouse.show();
gotoAndStop (89);
Frame 160
Mouse.show();
if (cas11 == 1) {
_root.b11.gotoAndStop(2);
}
if (cas12 == 1) {
_root.b12.gotoAndStop(2);
}
if (cas13 == 1) {
_root.b13.gotoAndStop(2);
}
if (cas14 == 1) {
_root.b14.gotoAndStop(2);
}
if (cas21 == 1) {
_root.b21.gotoAndStop(2);
}
if (cas22 == 1) {
_root.b22.gotoAndStop(2);
}
if (cas23 == 1) {
_root.b23.gotoAndStop(2);
}
if (cas24 == 1) {
_root.b24.gotoAndStop(2);
}
if (cas31 == 1) {
_root.b31.gotoAndStop(2);
}
if (cas32 == 1) {
_root.b32.gotoAndStop(2);
}
if (cas33 == 1) {
_root.b33.gotoAndStop(2);
}
if (cas34 == 1) {
_root.b34.gotoAndStop(2);
}
if (cas41 == 1) {
_root.b41.gotoAndStop(2);
}
if (cas42 == 1) {
_root.b42.gotoAndStop(2);
}
if (cas43 == 1) {
_root.b43.gotoAndStop(2);
}
if (cas44 == 1) {
_root.b44.gotoAndStop(2);
}
Frame 171
Mouse.show();
gotoAndStop (138);
Frame 191
function startgame() {
if ((((difficulty == 1) || (difficulty == 5)) || (difficulty == 9)) || (difficulty == 13)) {
boneshave = 300;
}
if ((((difficulty == 2) || (difficulty == 6)) || (difficulty == 10)) || (difficulty == 14)) {
boneshave = 200;
}
if ((((difficulty == 3) || (difficulty == 7)) || (difficulty == 11)) || (difficulty == 15)) {
boneshave = 100;
}
if ((((difficulty == 4) || (difficulty == 8)) || (difficulty == 12)) || (difficulty == 16)) {
boneshave = 40;
}
if (difficulty == 1) {
soldierbox = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 0], [11, 11, 11, 11, 11, 11, 11, 2, 2, 2, 2, 11, 11, 11, 11, 2, 2, 2, 2, 2, 2, 2, 0], [11, 11, 11, 11, 3, 3, 3, 3, 3, 3, 11, 11, 2, 2, 2, 2, 3, 3, 3, 0], [3, 3, 3, 11, 11, 11, 3, 3, 3, 3, 3, 2, 2, 2, 2, 0]];
}
if (difficulty == 2) {
soldierbox = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 0], [11, 11, 11, 11, 11, 11, 11, 2, 2, 2, 2, 11, 11, 11, 11, 2, 2, 2, 2, 2, 2, 2, 0], [11, 11, 11, 11, 3, 3, 3, 3, 3, 3, 11, 11, 2, 2, 2, 2, 3, 3, 3, 0], [3, 3, 3, 3, 3, 11, 11, 11, 3, 3, 3, 3, 3, 2, 2, 2, 2, 0], [11, 11, 13, 13, 13, 13, 11, 11, 6, 6, 6, 6, 6, 6, 6, 0], [11, 11, 11, 11, 11, 6, 6, 6, 6, 6, 8, 11, 8, 11, 8, 11, 8, 11, 0], [13, 13, 13, 13, 11, 7, 11, 7, 11, 7, 11, 7, 11, 7, 0], [13, 13, 13, 13, 12, 12, 12, 12, 11, 11, 11, 17, 17, 17, 11, 11, 11, 11, 11, 0], [11, 11, 11, 11, 13, 13, 13, 13, 12, 12, 12, 9, 9, 9, 0]];
}
if (difficulty == 3) {
soldierbox = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 0], [11, 11, 11, 11, 11, 11, 11, 2, 2, 2, 2, 11, 11, 11, 11, 2, 2, 2, 2, 2, 2, 2, 0], [11, 11, 11, 11, 3, 3, 3, 3, 3, 3, 11, 11, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 0], [3, 3, 3, 3, 11, 11, 11, 11, 3, 3, 3, 3, 3, 2, 2, 2, 2, 0], [11, 11, 13, 13, 13, 13, 11, 11, 6, 6, 6, 6, 6, 6, 6, 0], [11, 11, 11, 11, 11, 6, 6, 6, 6, 6, 8, 11, 8, 11, 8, 11, 8, 11, 0], [13, 13, 13, 13, 11, 7, 11, 7, 11, 7, 11, 7, 11, 7, 0], [13, 13, 13, 13, 12, 12, 12, 12, 11, 11, 11, 17, 17, 17, 5, 11, 11, 11, 5, 11, 11, 5, 0], [11, 11, 11, 11, 5, 13, 13, 13, 13, 12, 12, 12, 9, 9, 9, 0], [11, 11, 11, 11, 11, 11, 11, 13, 13, 13, 13, 13, 13, 13, 13, 16, 16, 16, 16, 16, 16, 0], [13, 13, 13, 13, 13, 13, 13, 13, 8, 8, 8, 8, 8, 8, 9, 9, 9, 0], [16, 16, 16, 16, 16, 16, 16, 16, 7, 7, 7, 7, 7, 7, 7, 12, 12, 12, 12, 12, 12, 5, 5, 0], [13, 13, 13, 13, 13, 13, 13, 16, 16, 16, 8, 8, 8, 8, 8, 8, 8, 8, 5, 5, 0], [16, 16, 16, 16, 16, 16, 16, 16, 8, 8, 8, 8, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 0], [13, 13, 13, 13, 13, 13, 13, 16, 16, 16, 17, 17, 17, 17, 17, 9, 9, 9, 9, 9, 10, 10, 0], [13, 13, 13, 13, 13, 13, 13, 18, 18, 18, 18, 18, 18, 0], [13, 13, 13, 13, 13, 13, 13, 5, 5, 5, 13, 13, 13, 13, 13, 13, 9, 9, 9, 9, 9, 9, 0], [16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 17, 17, 17, 5, 16, 16, 16, 16, 5, 5, 0], [13, 13, 13, 13, 13, 13, 10, 10, 10, 10, 10, 10, 10, 10, 10, 9, 9, 9, 9, 9, 9, 0]];
}
if (difficulty == 4) {
soldierbox = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 0], [11, 11, 11, 11, 11, 11, 11, 2, 2, 2, 2, 11, 11, 11, 11, 2, 2, 2, 2, 2, 2, 2, 0], [11, 11, 11, 11, 3, 3, 3, 3, 3, 3, 11, 11, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 0], [3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 2, 2, 2, 2, 0], [11, 11, 13, 13, 13, 13, 11, 11, 4, 6, 6, 6, 4, 6, 6, 6, 6, 0], [11, 11, 11, 11, 11, 6, 6, 6, 6, 6, 8, 11, 8, 11, 8, 11, 8, 11, 0], [13, 13, 13, 13, 4, 11, 7, 11, 7, 11, 7, 11, 7, 11, 7, 0], [13, 13, 13, 13, 12, 12, 12, 12, 11, 11, 11, 17, 17, 17, 5, 11, 11, 11, 5, 11, 11, 5, 0], [11, 11, 11, 11, 4, 4, 5, 13, 13, 13, 13, 12, 12, 12, 9, 9, 9, 0], [11, 11, 11, 11, 11, 11, 11, 13, 13, 13, 13, 13, 13, 13, 13, 16, 16, 16, 16, 16, 16, 0], [13, 13, 13, 13, 13, 13, 13, 13, 8, 8, 8, 8, 8, 8, 4, 4, 4, 9, 9, 9, 0], [16, 16, 16, 16, 16, 16, 16, 16, 7, 7, 7, 7, 7, 7, 7, 12, 12, 12, 12, 12, 12, 5, 5, 0], [13, 13, 13, 13, 13, 13, 13, 16, 16, 16, 8, 8, 8, 8, 8, 8, 8, 8, 5, 5, 5, 5, 0], [16, 16, 16, 16, 16, 16, 16, 16, 4, 4, 8, 8, 8, 8, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 0], [13, 13, 13, 13, 13, 13, 13, 16, 16, 16, 17, 17, 17, 17, 17, 9, 9, 9, 9, 9, 10, 10, 0], [13, 13, 13, 13, 13, 13, 13, 18, 18, 18, 18, 18, 18, 14, 14, 14, 14, 0], [13, 13, 13, 13, 13, 13, 13, 14, 14, 5, 5, 5, 13, 13, 13, 13, 13, 13, 9, 9, 9, 9, 9, 9, 0], [16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 17, 17, 17, 5, 5, 5, 16, 16, 16, 16, 5, 5, 14, 14, 0], [13, 13, 13, 13, 13, 13, 14, 14, 10, 10, 10, 10, 10, 10, 10, 10, 10, 9, 9, 9, 9, 9, 9, 0], [23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 0], [22, 22, 22, 22, 22, 22, 21, 21, 21, 21, 22, 22, 21, 21, 21, 21, 0], [21, 21, 21, 21, 21, 23, 23, 23, 23, 23, 23, 23, 17, 17, 17, 17, 17, 0], [23, 23, 23, 23, 23, 16, 16, 16, 16, 16, 16, 14, 14, 0], [18, 18, 18, 18, 18, 18, 21, 21, 21, 21, 21, 15, 21, 21, 15, 21, 15, 21, 15, 0], [21, 21, 21, 21, 21, 21, 22, 22, 22, 22, 22, 22, 23, 23, 23, 23, 23, 23, 26, 26, 26, 26, 17, 17, 17, 17, 17, 17, 17, 0], [14, 14, 14, 14, 23, 23, 23, 23, 23, 23, 23, 15, 23, 15, 23, 15, 23, 15, 0], [26, 26, 26, 26, 26, 26, 23, 23, 23, 23, 26, 26, 26, 26, 27, 27, 27, 27, 27, 0], [19, 19, 19, 19, 20, 20, 20, 20, 20, 18, 18, 18, 18, 18, 18, 19, 19, 19, 19, 19, 0], [23, 15, 23, 15, 23, 15, 23, 15, 22, 22, 22, 22, 22, 22, 23, 15, 23, 15, 23, 15, 23, 24, 24, 24, 24, 0]];
}
if (difficulty == 5) {
soldierbox = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0], [1, 1, 1, 1, 1, 1, 1, 1, 11, 11, 11, 11, 11, 11, 11, 11, 11, 0], [1, 1, 1, 1, 11, 11, 11, 11, 11, 11, 2, 2, 2, 11, 11, 11, 11, 2, 2, 2, 0], [3, 3, 3, 3, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 0], [6, 6, 6, 6, 6, 6, 7, 7, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 0]];
}
if (difficulty == 6) {
soldierbox = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0], [1, 1, 1, 1, 1, 1, 1, 1, 11, 11, 11, 11, 11, 11, 11, 11, 11, 0], [1, 1, 1, 1, 1, 11, 11, 11, 11, 11, 11, 2, 2, 2, 2, 11, 11, 11, 11, 2, 2, 2, 2, 0], [11, 11, 11, 11, 11, 3, 3, 3, 3, 3, 2, 2, 2, 2, 0], [11, 11, 11, 11, 3, 3, 3, 3, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0], [6, 6, 6, 6, 6, 6, 2, 2, 2, 2, 2, 2, 2, 2, 6, 6, 7, 7, 3, 3, 3, 3, 3, 0], [3, 3, 3, 3, 3, 3, 2, 2, 2, 2, 3, 3, 3, 6, 6, 6, 6, 6, 7, 7, 7, 7, 0], [8, 8, 8, 8, 8, 8, 13, 13, 13, 13, 2, 2, 2, 2, 2, 13, 13, 13, 13, 13, 0], [13, 13, 13, 13, 13, 13, 13, 12, 12, 12, 8, 8, 8, 8, 12, 12, 12, 12, 12, 8, 8, 8, 8, 12, 12, 12, 12, 12, 0], [13, 13, 13, 13, 13, 13, 7, 7, 7, 7, 7, 7, 6, 6, 6, 6, 6, 6, 13, 13, 13, 0], [12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 11, 11, 11, 11, 11, 13, 13, 13, 9, 9, 9, 9, 9, 0], [13, 13, 13, 13, 13, 12, 12, 12, 12, 11, 11, 11, 14, 14, 14, 14, 8, 8, 8, 8, 8, 17, 17, 17, 17, 17, 17, 0], [13, 13, 13, 13, 16, 16, 16, 16, 16, 12, 12, 12, 12, 12, 16, 16, 16, 16, 16, 0], [12, 12, 12, 12, 12, 12, 12, 12, 16, 16, 16, 16, 8, 8, 8, 8, 8, 8, 5, 5, 5, 8, 8, 8, 8, 8, 8, 8, 8, 0], [9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 8, 8, 8, 8, 8, 8, 8, 8, 10, 10, 10, 10, 10, 10, 12, 12, 12, 12, 12, 12, 12, 0]];
}
if (difficulty == 7) {
soldierbox = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0], [1, 1, 1, 1, 1, 1, 1, 1, 11, 11, 11, 11, 11, 11, 11, 11, 11, 0], [1, 1, 1, 1, 1, 11, 11, 11, 11, 11, 11, 2, 2, 2, 2, 11, 11, 11, 11, 2, 2, 2, 2, 0], [11, 11, 11, 11, 11, 3, 3, 3, 3, 3, 2, 2, 2, 2, 0], [11, 11, 11, 11, 3, 3, 3, 3, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 3, 3, 3, 3, 0], [6, 6, 6, 6, 6, 6, 2, 2, 2, 2, 2, 2, 2, 2, 6, 6, 7, 7, 3, 3, 3, 3, 3, 0], [3, 3, 3, 3, 3, 3, 2, 2, 2, 2, 3, 3, 3, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 0], [8, 8, 8, 8, 8, 8, 13, 13, 13, 13, 2, 2, 2, 2, 2, 13, 13, 13, 13, 13, 0], [13, 13, 13, 13, 13, 13, 13, 12, 12, 12, 8, 8, 8, 8, 12, 12, 12, 12, 12, 8, 8, 8, 8, 12, 12, 12, 12, 12, 0], [5, 13, 13, 13, 13, 13, 13, 7, 7, 7, 7, 7, 7, 6, 6, 6, 6, 6, 6, 13, 13, 13, 5, 5, 0], [12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 11, 11, 11, 11, 11, 13, 13, 13, 9, 9, 9, 9, 9, 0], [13, 13, 13, 13, 13, 12, 12, 12, 12, 11, 11, 11, 8, 8, 8, 8, 8, 17, 17, 17, 17, 17, 17, 0], [13, 13, 13, 13, 16, 16, 16, 16, 16, 12, 12, 12, 12, 12, 16, 16, 16, 16, 16, 0], [12, 12, 12, 12, 12, 12, 12, 12, 16, 16, 16, 16, 8, 8, 8, 8, 8, 8, 5, 8, 8, 8, 8, 8, 5, 8, 8, 8, 0], [9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 8, 8, 8, 8, 8, 8, 8, 8, 10, 10, 10, 10, 10, 10, 12, 12, 12, 12, 12, 12, 12, 0], [13, 13, 13, 13, 13, 12, 12, 12, 12, 12, 16, 16, 16, 16, 16, 16, 16, 8, 8, 8, 8, 8, 8, 8, 8, 0], [21, 21, 21, 21, 21, 21, 21, 21, 16, 16, 16, 16, 16, 18, 18, 18, 18, 18, 17, 17, 17, 17, 17, 17, 17, 0], [13, 13, 13, 13, 13, 5, 5, 13, 13, 13, 13, 5, 5, 13, 13, 13, 0], [18, 18, 18, 18, 12, 12, 12, 12, 5, 5, 5, 5, 5, 5, 13, 13, 13, 13, 13, 13, 0], [9, 9, 9, 9, 9, 9, 21, 21, 21, 21, 21, 21, 21, 13, 13, 13, 18, 18, 18, 18, 18, 18, 0], [13, 13, 13, 13, 13, 12, 12, 12, 12, 12, 12, 12, 17, 17, 17, 17, 17, 17, 17, 0], [12, 12, 12, 12, 12, 12, 12, 12, 12, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 0], [15, 21, 15, 21, 15, 21, 15, 21, 15, 21, 13, 13, 13, 13, 13, 0], [21, 21, 21, 21, 18, 18, 18, 18, 17, 17, 17, 17, 0], [13, 13, 13, 13, 13, 20, 20, 20, 20, 20, 21, 21, 21, 21, 17, 17, 17, 16, 16, 16, 16, 16, 16, 16, 10, 10, 10, 10, 0]];
}
if (difficulty == 8) {
soldierbox = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0], [1, 1, 1, 1, 1, 1, 1, 1, 11, 11, 11, 11, 11, 11, 11, 11, 11, 0], [1, 1, 1, 1, 1, 11, 11, 11, 11, 11, 11, 2, 2, 2, 2, 11, 11, 11, 11, 2, 2, 2, 2, 0], [11, 11, 11, 11, 11, 3, 3, 3, 3, 3, 2, 2, 2, 2, 0], [11, 11, 11, 11, 3, 3, 3, 3, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 3, 3, 3, 4, 3, 3, 3, 3, 0], [6, 6, 6, 6, 6, 6, 2, 2, 2, 2, 2, 2, 2, 2, 6, 6, 7, 7, 3, 3, 3, 3, 3, 0], [3, 3, 3, 3, 3, 3, 2, 2, 2, 2, 3, 3, 3, 4, 4, 5, 5, 5, 4, 6, 6, 6, 6, 6, 7, 7, 7, 7, 0], [8, 8, 8, 8, 8, 8, 13, 13, 13, 13, 2, 2, 2, 2, 2, 13, 13, 13, 13, 13, 0], [13, 13, 13, 13, 13, 13, 13, 12, 12, 12, 8, 8, 8, 8, 12, 12, 12, 12, 12, 8, 8, 8, 8, 12, 12, 12, 12, 12, 0], [5, 5, 13, 13, 13, 13, 13, 13, 7, 7, 7, 7, 7, 7, 6, 6, 6, 6, 6, 6, 13, 13, 13, 5, 5, 0], [12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 11, 11, 11, 11, 11, 13, 13, 13, 9, 9, 9, 9, 9, 0], [13, 13, 13, 13, 13, 12, 12, 12, 12, 11, 11, 11, 14, 14, 8, 8, 8, 8, 8, 17, 17, 17, 17, 17, 17, 0], [13, 13, 13, 13, 16, 16, 16, 16, 16, 12, 12, 12, 12, 12, 16, 16, 16, 16, 16, 0], [12, 12, 12, 12, 12, 12, 12, 12, 16, 16, 16, 16, 8, 8, 8, 8, 8, 8, 5, 8, 8, 8, 8, 8, 5, 8, 8, 8, 0], [9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 8, 8, 8, 8, 8, 8, 8, 8, 10, 10, 10, 10, 10, 10, 12, 12, 12, 12, 12, 12, 12, 0], [13, 13, 13, 13, 13, 12, 12, 12, 12, 12, 16, 16, 16, 16, 16, 16, 16, 8, 8, 8, 8, 8, 8, 8, 8, 0], [21, 21, 21, 21, 21, 21, 21, 21, 16, 16, 16, 16, 16, 18, 18, 18, 18, 18, 17, 17, 17, 17, 17, 17, 17, 0], [13, 13, 13, 13, 13, 5, 5, 13, 13, 13, 13, 5, 5, 13, 13, 13, 4, 4, 4, 0], [18, 18, 18, 18, 12, 12, 12, 12, 5, 5, 5, 4, 4, 13, 13, 13, 13, 13, 13, 0], [9, 9, 9, 9, 9, 9, 21, 21, 21, 21, 21, 21, 21, 13, 13, 13, 18, 18, 18, 18, 18, 18, 0], [13, 13, 13, 13, 13, 12, 12, 12, 12, 12, 12, 12, 17, 17, 17, 17, 17, 17, 17, 0], [12, 12, 12, 12, 12, 12, 12, 12, 12, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 0], [15, 21, 15, 21, 15, 21, 15, 21, 15, 21, 13, 13, 13, 13, 13, 0], [14, 21, 21, 21, 21, 14, 14, 18, 18, 18, 18, 17, 17, 17, 17, 0], [13, 13, 13, 13, 13, 20, 20, 20, 20, 20, 21, 21, 21, 21, 17, 17, 17, 16, 16, 16, 16, 16, 16, 16, 10, 10, 10, 10, 0], [21, 21, 21, 21, 21, 22, 22, 22, 22, 22, 22, 22, 21, 21, 21, 21, 0], [21, 21, 21, 21, 21, 21, 21, 23, 23, 23, 23, 23, 23, 23, 22, 22, 22, 22, 22, 22, 22, 23, 23, 23, 23, 0], [23, 23, 23, 23, 23, 23, 26, 26, 26, 26, 26, 26, 26, 23, 23, 23, 22, 22, 22, 22, 22, 0], [26, 26, 26, 26, 26, 18, 18, 18, 18, 18, 18, 23, 23, 23, 23, 23, 15, 15, 0], [24, 24, 23, 23, 23, 23, 23, 23, 22, 22, 22, 22, 20, 20, 20, 20, 20, 0], [23, 23, 23, 23, 23, 24, 24, 24, 26, 26, 26, 26, 27, 27, 27, 27, 27, 27, 27, 0], [28, 28, 28, 28, 28, 28, 19, 19, 19, 19, 19, 19, 28, 28, 28, 28, 28, 22, 22, 22, 22, 22, 0], [22, 22, 22, 22, 22, 22, 25, 25, 25, 27, 27, 27, 27, 24, 0], [21, 21, 21, 21, 22, 22, 22, 22, 23, 23, 23, 23, 24, 24, 24, 24, 25, 25, 25, 26, 26, 26, 27, 27, 27, 27, 28, 28, 28, 0], [30, 30, 30, 30, 30, 29, 29, 29, 28, 28, 28, 28, 24, 24, 24, 0]];
}
if (difficulty == 9) {
soldierbox = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 0], [1, 1, 1, 1, 1, 11, 11, 11, 11, 11, 11, 11, 2, 2, 2, 2, 2, 2, 2, 2, 0], [11, 11, 11, 11, 2, 2, 2, 3, 3, 3, 3, 2, 2, 2, 3, 3, 3, 3, 0], [3, 3, 3, 3, 3, 3, 6, 6, 6, 6, 6, 3, 3, 3, 3, 2, 2, 2, 2, 2, 0], [2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 6, 6, 6, 6, 6, 0], [3, 3, 3, 3, 3, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 0], [3, 3, 3, 3, 8, 8, 8, 8, 2, 2, 2, 2, 2, 7, 7, 7, 7, 7, 7, 0], [6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 0], [3, 3, 3, 2, 2, 2, 2, 6, 6, 6, 6, 7, 7, 7, 7, 9, 0]];
}
if (difficulty == 10) {
soldierbox = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 0], [1, 1, 1, 1, 1, 11, 11, 11, 11, 11, 11, 11, 2, 2, 2, 2, 2, 2, 2, 2, 0], [11, 11, 11, 11, 2, 2, 2, 3, 3, 3, 3, 2, 2, 2, 3, 3, 3, 3, 0], [3, 3, 3, 3, 3, 3, 6, 6, 6, 6, 6, 3, 3, 3, 3, 2, 2, 2, 2, 2, 0], [2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 6, 6, 6, 6, 6, 0], [3, 3, 3, 3, 3, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 0], [3, 3, 3, 3, 8, 8, 8, 8, 2, 2, 2, 2, 2, 7, 7, 7, 7, 7, 7, 0], [6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 0], [3, 3, 3, 2, 2, 2, 2, 6, 6, 6, 6, 7, 7, 7, 7, 9, 0], [11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 3, 3, 3, 3, 3, 3, 0], [3, 3, 3, 3, 8, 8, 8, 8, 2, 2, 2, 2, 8, 8, 8, 8, 3, 3, 3, 3, 7, 7, 7, 7, 7, 12, 12, 12, 12, 0], [6, 6, 6, 6, 6, 8, 8, 8, 8, 8, 7, 7, 7, 7, 7, 7, 9, 0], [11, 11, 11, 11, 11, 11, 13, 13, 13, 13, 13, 13, 13, 12, 12, 12, 12, 12, 12, 0], [9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 13, 13, 13, 13, 13, 13, 0]];
}
if (difficulty == 11) {
soldierbox = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 0], [1, 1, 1, 1, 1, 11, 11, 11, 11, 11, 11, 11, 2, 2, 2, 2, 2, 2, 2, 2, 0], [11, 11, 11, 11, 2, 2, 2, 3, 3, 3, 3, 2, 2, 2, 3, 3, 3, 3, 0], [3, 3, 3, 3, 3, 3, 6, 6, 6, 6, 6, 3, 3, 3, 3, 2, 2, 2, 2, 2, 0], [2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 6, 6, 6, 6, 6, 0], [5, 3, 3, 3, 3, 3, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 0], [3, 3, 3, 3, 8, 8, 8, 8, 2, 2, 2, 2, 2, 7, 7, 7, 7, 7, 7, 0], [5, 6, 6, 6, 6, 5, 7, 7, 7, 7, 7, 7, 7, 0], [3, 3, 3, 2, 2, 2, 2, 6, 6, 6, 6, 7, 7, 7, 7, 9, 4, 4, 4, 0], [11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 3, 3, 3, 3, 3, 3, 0], [3, 3, 3, 3, 8, 8, 8, 8, 2, 2, 2, 2, 8, 8, 8, 8, 3, 3, 3, 3, 7, 7, 7, 7, 7, 12, 12, 12, 12, 0], [6, 6, 6, 6, 6, 8, 8, 8, 8, 8, 7, 7, 7, 7, 7, 7, 9, 0], [11, 11, 11, 11, 11, 11, 13, 13, 13, 13, 13, 13, 13, 12, 12, 12, 12, 12, 12, 5, 5, 5, 0], [9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 13, 13, 13, 13, 13, 13, 8, 8, 8, 8, 8, 0], [13, 13, 13, 13, 13, 13, 12, 12, 12, 12, 12, 16, 16, 16, 16, 16, 16, 0], [11, 12, 13, 15, 16, 17, 18, 11, 12, 13, 14, 15, 16, 17, 18, 0], [18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 0], [9, 9, 9, 9, 21, 21, 21, 21, 21, 21, 18, 18, 18, 0], [16, 16, 16, 16, 16, 16, 21, 21, 21, 21, 13, 13, 13, 13, 15, 15, 0], [12, 12, 12, 12, 12, 12, 17, 12, 17, 12, 17, 12, 17, 12, 17, 12, 17, 0], [15, 15, 18, 18, 18, 18, 18, 18, 21, 21, 21, 0], [9, 9, 9, 9, 9, 9, 9, 9, 21, 21, 21, 21, 13, 13, 13, 13, 13, 17, 17, 17, 17, 0], [10, 12, 10, 12, 10, 12, 10, 12, 10, 12, 10, 12, 10, 12, 10, 12, 0], [19, 19, 19, 19, 15, 15, 15, 15, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 18, 18, 18, 18, 18, 0]];
}
if (difficulty == 12) {
soldierbox = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 0], [1, 1, 1, 1, 1, 11, 11, 11, 11, 11, 11, 11, 2, 2, 2, 2, 2, 2, 2, 2, 0], [11, 11, 11, 11, 2, 2, 2, 3, 3, 3, 3, 2, 2, 2, 3, 3, 3, 3, 0], [3, 3, 3, 3, 3, 3, 6, 6, 6, 6, 6, 3, 3, 3, 3, 2, 2, 2, 2, 2, 0], [2, 2, 2, 2, 2, 4, 4, 3, 3, 3, 3, 3, 6, 6, 6, 6, 6, 0], [5, 5, 5, 4, 4, 3, 3, 3, 3, 3, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 0], [3, 3, 3, 3, 8, 8, 8, 8, 2, 2, 2, 2, 2, 7, 7, 7, 7, 7, 7, 0], [5, 5, 5, 5, 6, 6, 6, 6, 5, 5, 5, 7, 7, 7, 7, 7, 7, 7, 0], [3, 3, 3, 2, 2, 2, 2, 6, 6, 6, 6, 7, 7, 7, 7, 9, 4, 4, 0], [11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 3, 3, 3, 3, 3, 3, 0], [3, 3, 3, 3, 8, 8, 8, 8, 2, 2, 2, 2, 8, 8, 8, 8, 3, 3, 3, 3, 7, 7, 7, 7, 7, 12, 12, 12, 12, 0], [4, 4, 6, 6, 6, 6, 6, 4, 4, 8, 8, 8, 8, 8, 7, 7, 7, 7, 7, 7, 9, 0], [11, 11, 11, 11, 11, 11, 13, 13, 13, 13, 13, 13, 13, 12, 12, 12, 12, 12, 12, 5, 5, 0], [9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 13, 13, 13, 13, 13, 13, 8, 8, 8, 8, 8, 0], [13, 13, 13, 13, 13, 13, 12, 12, 12, 12, 12, 16, 16, 16, 16, 16, 16, 0], [11, 12, 13, 14, 15, 16, 17, 18, 11, 12, 13, 14, 15, 16, 17, 18, 0], [18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 0], [9, 9, 9, 9, 21, 21, 21, 21, 21, 21, 18, 18, 18, 14, 14, 14, 0], [16, 16, 16, 16, 16, 16, 21, 21, 21, 21, 13, 13, 13, 13, 15, 15, 15, 15, 0], [12, 12, 12, 12, 12, 12, 17, 12, 17, 12, 17, 12, 17, 12, 17, 12, 17, 0], [14, 15, 14, 15, 14, 15, 18, 18, 18, 18, 18, 18, 21, 21, 21, 0], [9, 9, 9, 9, 9, 9, 9, 9, 21, 21, 21, 21, 13, 13, 13, 13, 13, 17, 17, 17, 17, 0], [10, 12, 10, 12, 10, 12, 10, 12, 10, 12, 10, 12, 10, 12, 10, 12, 0], [19, 19, 19, 19, 15, 15, 14, 14, 15, 15, 18, 18, 18, 18, 18, 0], [21, 21, 21, 21, 22, 21, 22, 21, 22, 21, 22, 21, 22, 21, 22, 0], [21, 21, 21, 22, 23, 22, 23, 22, 23, 22, 23, 16, 16, 16, 16, 16, 0], [23, 23, 23, 23, 23, 14, 14, 14, 14, 15, 15, 14, 14, 14, 15, 15, 15, 18, 18, 18, 18, 18, 0], [22, 22, 22, 22, 22, 22, 22, 26, 26, 26, 26, 26, 26, 26, 23, 23, 23, 23, 0], [24, 24, 18, 18, 18, 24, 17, 17, 17, 17, 17, 17, 0], [23, 22, 23, 22, 23, 22, 16, 22, 16, 22, 26, 18, 18, 18, 18, 0], [28, 28, 28, 28, 28, 28, 28, 28, 23, 23, 23, 23, 23, 23, 22, 22, 0], [16, 16, 16, 16, 16, 23, 23, 23, 21, 21, 21, 21, 19, 19, 19, 19, 19, 0], [20, 20, 20, 20, 20, 20, 25, 25, 25, 24, 24, 25, 25, 24, 0], [23, 23, 23, 23, 28, 28, 27, 28, 27, 28, 27, 28, 27, 0], [21, 21, 21, 21, 21, 23, 23, 23, 23, 23, 29, 29, 29, 29, 29, 0], [25, 25, 25, 25, 22, 22, 22, 22, 22, 22, 22, 23, 23, 23, 23, 27, 27, 27, 27, 26, 26, 26, 26, 0], [9, 9, 9, 9, 9, 9, 19, 19, 19, 19, 19, 19, 29, 29, 29, 29, 29, 0], [24, 24, 24, 24, 24, 25, 25, 25, 25, 28, 28, 28, 28, 28, 27, 27, 27, 27, 27, 0], [21, 21, 21, 22, 22, 22, 23, 23, 23, 24, 25, 26, 26, 26, 27, 27, 27, 27, 28, 28, 28, 29, 29, 29, 30, 30, 30, 30, 0]];
}
if (difficulty == 13) {
soldierbox = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0], [1, 1, 1, 1, 1, 1, 1, 1, 11, 11, 11, 11, 11, 11, 11, 11, 11, 0], [1, 1, 1, 1, 11, 11, 11, 11, 11, 11, 2, 2, 2, 11, 11, 11, 11, 2, 2, 2, 0], [3, 3, 3, 3, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 0], [6, 6, 6, 6, 6, 6, 7, 7, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 0], [8, 8, 8, 8, 3, 3, 3, 3, 3, 6, 6, 6, 6, 0], [3, 3, 3, 2, 2, 2, 2, 7, 7, 7, 7, 7, 6, 6, 6, 0], [3, 3, 3, 3, 9, 9, 9, 9, 0], [8, 8, 8, 8, 8, 8, 21, 21, 21, 21, 21, 21, 13, 13, 0], [2, 2, 2, 2, 21, 21, 21, 13, 13, 13, 13, 19, 0]];
}
if (difficulty == 14) {
soldierbox = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0], [1, 1, 1, 1, 1, 1, 1, 1, 11, 11, 11, 11, 11, 11, 11, 11, 11, 0], [1, 1, 1, 1, 1, 11, 11, 11, 11, 11, 11, 2, 2, 2, 2, 11, 11, 11, 11, 2, 2, 2, 2, 0], [11, 11, 11, 11, 11, 3, 3, 3, 3, 3, 2, 2, 2, 2, 0], [11, 11, 11, 11, 3, 3, 3, 3, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0], [6, 6, 6, 6, 6, 6, 2, 2, 2, 2, 2, 2, 2, 2, 6, 6, 7, 7, 3, 3, 3, 3, 3, 0], [3, 3, 3, 3, 3, 3, 2, 2, 2, 2, 3, 3, 3, 6, 6, 6, 6, 6, 7, 7, 7, 7, 0], [8, 8, 8, 8, 8, 8, 13, 13, 13, 13, 2, 2, 2, 2, 2, 13, 13, 13, 13, 13, 0], [13, 13, 13, 13, 13, 13, 13, 12, 12, 12, 8, 8, 8, 8, 12, 12, 12, 12, 12, 8, 8, 8, 8, 12, 12, 12, 12, 12, 0], [13, 13, 13, 13, 13, 13, 7, 7, 7, 7, 7, 7, 6, 6, 6, 6, 6, 6, 13, 13, 13, 0], [12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 11, 11, 11, 11, 11, 13, 13, 13, 9, 9, 9, 9, 9, 0], [13, 13, 13, 13, 13, 12, 12, 12, 12, 11, 11, 11, 8, 8, 8, 8, 8, 17, 17, 17, 17, 17, 17, 0], [13, 13, 13, 13, 16, 16, 16, 16, 16, 12, 12, 12, 12, 12, 16, 16, 16, 16, 16, 0], [12, 12, 12, 12, 12, 12, 12, 12, 16, 16, 16, 16, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 0], [9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 8, 8, 8, 8, 8, 8, 8, 8, 10, 10, 10, 10, 10, 10, 12, 12, 12, 12, 12, 12, 12, 0], [18, 18, 18, 18, 18, 18, 18, 0], [19, 19, 19, 19, 21, 21, 21, 13, 13, 13, 13, 13, 17, 17, 17, 17, 0], [18, 18, 18, 18, 13, 13, 13, 12, 12, 12, 12, 12, 12, 0], [18, 18, 18, 18, 18, 18, 13, 13, 13, 13, 20, 12, 20, 12, 20, 12, 20, 12, 20, 12, 0], [19, 22, 19, 22, 19, 22, 19, 22, 18, 18, 17, 17, 17, 17, 20, 20, 20, 20, 16, 16, 16, 16, 0]];
}
if (difficulty == 15) {
soldierbox = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0], [1, 1, 1, 1, 1, 1, 1, 1, 11, 11, 11, 11, 11, 11, 11, 11, 11, 0], [1, 1, 1, 1, 1, 11, 11, 11, 11, 11, 11, 2, 2, 2, 2, 11, 11, 11, 11, 2, 2, 2, 2, 0], [11, 11, 11, 11, 11, 3, 3, 3, 3, 3, 2, 2, 2, 2, 0], [11, 11, 11, 11, 3, 3, 3, 3, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0], [6, 6, 6, 6, 6, 6, 2, 2, 2, 2, 2, 2, 2, 2, 6, 6, 7, 7, 3, 3, 3, 3, 3, 0], [3, 3, 3, 3, 3, 3, 2, 2, 2, 2, 3, 3, 3, 5, 5, 5, 4, 4, 6, 6, 6, 6, 6, 7, 7, 7, 7, 0], [8, 8, 8, 8, 8, 8, 13, 13, 13, 13, 2, 2, 2, 2, 2, 13, 13, 13, 13, 13, 0], [13, 13, 13, 13, 13, 13, 13, 12, 12, 12, 8, 8, 8, 8, 12, 12, 12, 12, 12, 8, 8, 8, 8, 12, 12, 12, 12, 12, 0], [5, 5, 13, 13, 13, 13, 13, 13, 7, 7, 7, 7, 7, 7, 6, 6, 6, 6, 6, 6, 13, 13, 13, 5, 5, 5, 5, 0], [12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 11, 11, 11, 11, 11, 13, 13, 13, 9, 9, 9, 9, 9, 0], [13, 13, 13, 13, 13, 12, 12, 12, 12, 11, 11, 11, 8, 8, 8, 8, 8, 17, 17, 17, 17, 17, 17, 0], [13, 13, 13, 13, 16, 16, 16, 16, 16, 12, 12, 12, 12, 12, 16, 16, 16, 16, 16, 0], [12, 12, 12, 12, 12, 12, 12, 12, 16, 16, 16, 16, 8, 8, 8, 8, 8, 8, 5, 5, 8, 8, 8, 8, 8, 5, 5, 8, 8, 8, 0], [9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 8, 8, 8, 8, 8, 8, 8, 8, 10, 10, 10, 10, 10, 10, 12, 12, 12, 12, 12, 12, 12, 0], [13, 13, 13, 13, 13, 12, 12, 12, 12, 12, 16, 16, 16, 16, 16, 16, 16, 8, 8, 8, 8, 8, 8, 8, 8, 0], [21, 21, 21, 21, 21, 21, 21, 21, 16, 16, 16, 16, 16, 18, 18, 18, 18, 18, 17, 17, 17, 17, 17, 17, 17, 0], [13, 13, 13, 13, 13, 5, 5, 13, 13, 13, 13, 5, 5, 13, 13, 13, 0], [18, 18, 18, 18, 12, 12, 12, 12, 5, 5, 5, 5, 5, 5, 4, 4, 4, 4, 13, 13, 13, 13, 13, 13, 0], [9, 9, 9, 9, 9, 9, 21, 21, 21, 21, 21, 21, 21, 13, 13, 13, 18, 18, 18, 18, 18, 18, 0], [13, 13, 13, 13, 13, 12, 12, 12, 12, 12, 12, 12, 17, 17, 17, 17, 17, 17, 17, 0], [12, 12, 12, 12, 12, 12, 12, 12, 12, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 0], [15, 21, 15, 21, 15, 21, 15, 21, 15, 21, 13, 13, 13, 13, 13, 0], [21, 21, 21, 21, 18, 18, 18, 18, 17, 17, 17, 17, 0], [13, 13, 13, 13, 13, 20, 20, 20, 20, 20, 21, 21, 21, 21, 17, 17, 17, 16, 16, 16, 16, 16, 16, 16, 10, 10, 10, 10, 0], [23, 23, 23, 23, 23, 23, 23, 9, 9, 9, 9, 9, 9, 19, 19, 19, 19, 0], [15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 0], [21, 21, 21, 21, 21, 22, 22, 22, 22, 22, 10, 10, 10, 10, 0], [18, 18, 18, 18, 26, 26, 26, 26, 17, 17, 17, 17, 0], [22, 20, 22, 20, 22, 20, 22, 20, 22, 22, 22, 22, 22, 22, 0], [23, 23, 23, 23, 23, 26, 26, 29, 0]];
}
if (difficulty == 16) {
soldierbox = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0], [1, 1, 1, 1, 1, 1, 1, 1, 11, 11, 11, 11, 11, 11, 11, 11, 11, 0], [1, 1, 1, 1, 1, 11, 11, 11, 11, 11, 11, 2, 2, 2, 2, 11, 11, 11, 11, 2, 2, 2, 2, 0], [11, 11, 11, 11, 11, 3, 3, 3, 3, 3, 2, 2, 2, 2, 0], [11, 11, 11, 11, 3, 3, 3, 3, 2, 2, 2, 2, 3, 3, 3, 3, 4, 3, 3, 3, 4, 3, 3, 3, 3, 0], [6, 6, 6, 6, 6, 6, 2, 2, 2, 2, 2, 2, 2, 2, 6, 6, 7, 7, 3, 3, 3, 3, 3, 0], [3, 3, 3, 3, 3, 3, 2, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 4, 6, 6, 6, 6, 6, 7, 7, 7, 7, 0], [8, 8, 8, 8, 8, 8, 13, 13, 13, 13, 2, 2, 2, 2, 2, 13, 13, 13, 13, 13, 0], [13, 13, 13, 13, 13, 13, 13, 12, 12, 12, 8, 8, 8, 8, 12, 12, 12, 12, 12, 8, 8, 8, 8, 12, 12, 12, 12, 12, 0], [5, 5, 5, 5, 13, 13, 13, 13, 13, 13, 7, 7, 7, 7, 7, 7, 6, 6, 6, 6, 6, 6, 13, 13, 13, 5, 5, 5, 5, 0], [12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 11, 11, 11, 11, 11, 13, 13, 13, 9, 9, 9, 9, 9, 0], [13, 13, 13, 13, 13, 12, 12, 12, 12, 11, 11, 11, 14, 14, 8, 8, 8, 8, 8, 17, 17, 17, 17, 17, 17, 0], [13, 13, 13, 13, 16, 16, 16, 16, 16, 12, 12, 12, 12, 12, 16, 16, 16, 16, 16, 0], [12, 12, 12, 12, 12, 12, 12, 12, 16, 16, 16, 16, 8, 8, 8, 8, 8, 8, 5, 5, 5, 8, 8, 8, 8, 8, 5, 5, 5, 8, 8, 8, 0], [9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 8, 8, 8, 8, 8, 8, 8, 8, 10, 10, 10, 10, 10, 10, 12, 12, 12, 12, 12, 12, 12, 0], [13, 13, 13, 13, 13, 12, 12, 12, 12, 12, 16, 16, 16, 16, 16, 16, 16, 8, 8, 8, 8, 8, 8, 8, 8, 0], [21, 21, 21, 21, 21, 21, 21, 21, 16, 16, 16, 16, 16, 18, 18, 18, 18, 18, 17, 17, 17, 17, 17, 17, 17, 0], [13, 13, 13, 13, 13, 5, 5, 5, 5, 13, 13, 13, 13, 5, 5, 5, 5, 13, 13, 13, 4, 4, 4, 0], [18, 18, 18, 18, 12, 12, 12, 12, 5, 5, 5, 5, 5, 5, 4, 4, 4, 4, 13, 13, 13, 13, 13, 13, 0], [9, 9, 9, 9, 9, 9, 21, 21, 21, 21, 21, 21, 21, 13, 13, 13, 18, 18, 18, 18, 18, 18, 0], [13, 13, 13, 13, 13, 12, 12, 12, 12, 12, 12, 12, 17, 17, 17, 17, 17, 17, 17, 0], [12, 12, 12, 12, 12, 12, 12, 12, 12, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 0], [15, 21, 15, 21, 15, 21, 15, 21, 15, 21, 13, 13, 13, 13, 13, 0], [14, 14, 21, 21, 21, 21, 14, 14, 18, 18, 18, 18, 17, 17, 17, 17, 0], [13, 13, 13, 13, 13, 20, 20, 20, 20, 20, 21, 21, 21, 21, 17, 17, 17, 16, 16, 16, 16, 16, 16, 16, 10, 10, 10, 10, 0], [21, 21, 21, 21, 21, 22, 22, 22, 22, 22, 22, 22, 21, 21, 21, 21, 0], [21, 21, 21, 21, 21, 21, 21, 23, 23, 23, 23, 23, 23, 23, 22, 22, 22, 22, 22, 22, 22, 23, 23, 23, 23, 0], [23, 23, 23, 23, 23, 23, 26, 26, 26, 26, 26, 26, 26, 23, 23, 23, 22, 22, 22, 22, 22, 0], [26, 26, 26, 26, 26, 18, 18, 18, 18, 18, 18, 23, 23, 23, 23, 23, 15, 15, 15, 15, 0], [24, 24, 23, 23, 23, 23, 23, 23, 22, 22, 22, 22, 20, 20, 20, 20, 20, 0], [23, 23, 23, 23, 23, 24, 24, 24, 26, 26, 26, 26, 27, 27, 27, 27, 27, 27, 27, 0], [28, 28, 28, 28, 28, 28, 19, 19, 19, 19, 19, 19, 28, 28, 28, 28, 28, 22, 22, 22, 22, 22, 0], [22, 22, 22, 22, 22, 22, 25, 25, 25, 25, 25, 25, 27, 27, 27, 27, 24, 24, 24, 0], [21, 21, 21, 21, 22, 22, 22, 22, 23, 23, 23, 23, 24, 24, 24, 24, 25, 25, 25, 26, 26, 26, 27, 27, 27, 27, 28, 28, 28, 0], [30, 30, 30, 30, 30, 29, 29, 29, 28, 28, 28, 28, 24, 24, 24, 0], [26, 26, 26, 26, 26, 27, 27, 27, 27, 27, 27, 21, 21, 21, 21, 21, 0], [28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 25, 25, 25, 0], [2, 2, 2, 2, 12, 12, 12, 12, 12, 22, 22, 22, 22, 22, 20, 20, 20, 20, 20, 30, 30, 30, 30, 0], [24, 23, 24, 23, 24, 23, 24, 23, 27, 27, 27, 27, 27, 0], [19, 19, 19, 19, 25, 25, 25, 25, 25, 24, 24, 0], [29, 29, 29, 29, 29, 0], [23, 23, 23, 23, 23, 22, 22, 22, 22, 23, 23, 23, 23, 26, 26, 26, 26, 0], [29, 29, 29, 30, 30, 30, 22, 22, 22, 22, 22, 26, 26, 26, 0], [1, 1, 1, 1, 1, 11, 11, 11, 11, 11, 21, 21, 21, 21, 21, 21, 21, 21, 29, 0], [21, 21, 21, 21, 22, 22, 22, 23, 23, 23, 24, 24, 24, 25, 25, 25, 26, 26, 26, 27, 27, 27, 28, 28, 28, 29, 29, 29, 30, 30, 30, 21, 21, 21, 21, 22, 22, 22, 23, 23, 23, 24, 24, 24, 25, 25, 25, 26, 26, 26, 27, 27, 27, 28, 28, 28, 29, 29, 29, 30, 30, 30, 0]];
}
if (mute == 0) {
_root.titleson = new Sound();
_root.titleson.setVolume(300);
_root.game.tabb.bmute.gotoAndStop(1);
}
if (mute == 1) {
_root.titleson = new Sound();
_root.titleson.setVolume(0);
_root.game.tabb.bmute.gotoAndStop(2);
}
_root.game.castlec.gotoAndStop(difficulty);
i = 0;
while (i < sumonlist.length) {
tempo = _root.game.castlec[sumonlist[i]];
tempo.gotoAndStop(13);
tempo.free = 0;
i++;
}
var _local2 = soldierbox.length;
wdeci = Math.floor(_local2 / 10);
wuni = Math.floor(_local2 - (wdeci * 10));
_root.game.tabb.wwouni.gotoAndStop(wuni + 1);
_root.game.tabb.wwodeci.gotoAndStop(wdeci + 1);
if (wdeci > 0) {
_root.game.tabb.wwouni._alpha = 100;
_root.game.tabb.wwodeci._alpha = 100;
} else if (wuni > 0) {
_root.game.tabb.wwouni._alpha = 100;
_root.game.tabb.wwodeci._alpha = 0;
} else if ((wuni == 0) && (wdeci == 0)) {
_root.game.tabb.wwouni._alpha = 100;
_root.game.tabb.wwodeci._alpha = 0;
}
}
function counters() {
if ((buyingc == true) && (usingmagic == false)) {
if (_root.game.mickey._y < 190) {
_root.game.mickey._xscale = -100;
}
if ((_root.game.mickey._y > 191) && (_root.game.mickey._y < 270)) {
_root.game.mickey._xscale = 100;
}
if ((_root.game.mickey._y > 271) && (_root.game.mickey._y < 340)) {
_root.game.mickey._xscale = -100;
}
if (_root.game.mickey._y > 341) {
_root.game.mickey._xscale = 100;
}
}
if (((buyingc == false) && (usingmagic == false)) || ((buyingc == false) && (usingmagic == true))) {
_root.game.mickey._xscale = 100;
}
bmmil = Math.floor(boneshave / 100000);
bmildeci = Math.floor((boneshave - (bmmil * 100000)) / 10000);
bmiluni = Math.floor(((boneshave - (bmmil * 100000)) - (bmildeci * 10000)) / 1000);
bmil = Math.floor((((boneshave - (bmmil * 100000)) - (bmildeci * 10000)) - (bmiluni * 1000)) / 100);
bdeci = Math.floor(((((boneshave - (bmmil * 100000)) - (bmildeci * 10000)) - (bmiluni * 1000)) - (bmil * 100)) / 10);
buni = Math.floor(((((boneshave - (bmmil * 100000)) - (bmildeci * 10000)) - (bmiluni * 1000)) - (bmil * 100)) - (bdeci * 10));
_root.game.tabb.bouni.gotoAndStop(buni + 1);
_root.game.tabb.bodeci.gotoAndStop(bdeci + 1);
_root.game.tabb.bomil.gotoAndStop(bmil + 1);
_root.game.tabb.bomiluni.gotoAndStop(bmiluni + 1);
_root.game.tabb.bomildeci.gotoAndStop(bmildeci + 1);
_root.game.tabb.bommil.gotoAndStop(bmmil + 1);
if (bmmil > 0) {
_root.game.tabb.bouni._alpha = 100;
_root.game.tabb.bodeci._alpha = 100;
_root.game.tabb.bomil._alpha = 100;
_root.game.tabb.bomiluni._alpha = 100;
_root.game.tabb.bomildeci._alpha = 100;
_root.game.tabb.bommil._alpha = 100;
} else if (bmildeci > 0) {
_root.game.tabb.bouni._alpha = 100;
_root.game.tabb.bodeci._alpha = 100;
_root.game.tabb.bomil._alpha = 100;
_root.game.tabb.bomiluni._alpha = 100;
_root.game.tabb.bomildeci._alpha = 100;
_root.game.tabb.bommil._alpha = 0;
} else if (bmiluni > 0) {
_root.game.tabb.bouni._alpha = 100;
_root.game.tabb.bodeci._alpha = 100;
_root.game.tabb.bomil._alpha = 100;
_root.game.tabb.bomiluni._alpha = 100;
_root.game.tabb.bomildeci._alpha = 0;
_root.game.tabb.bommil._alpha = 0;
} else if (bmil > 0) {
_root.game.tabb.bouni._alpha = 100;
_root.game.tabb.bodeci._alpha = 100;
_root.game.tabb.bomil._alpha = 100;
_root.game.tabb.bomiluni._alpha = 0;
_root.game.tabb.bomildeci._alpha = 0;
_root.game.tabb.bommil._alpha = 0;
} else if (bdeci > 0) {
_root.game.tabb.bouni._alpha = 100;
_root.game.tabb.bodeci._alpha = 100;
_root.game.tabb.bomil._alpha = 0;
_root.game.tabb.bomiluni._alpha = 0;
_root.game.tabb.bomildeci._alpha = 0;
_root.game.tabb.bommil._alpha = 0;
} else if (buni > 0) {
_root.game.tabb.bouni._alpha = 100;
_root.game.tabb.bodeci._alpha = 0;
_root.game.tabb.bomil._alpha = 0;
_root.game.tabb.bomiluni._alpha = 0;
_root.game.tabb.bomildeci._alpha = 0;
_root.game.tabb.bommil._alpha = 0;
} else if ((((((buni == 0) && (bdeci == 0)) && (bmil == 0)) && (bmiluni == 0)) && (bmildeci == 0)) && (bmmil == 0)) {
_root.game.tabb.bouni._alpha = 100;
_root.game.tabb.bodeci._alpha = 0;
_root.game.tabb.bomil._alpha = 0;
_root.game.tabb.bomiluni._alpha = 0;
_root.game.tabb.bomildeci._alpha = 0;
_root.game.tabb.bommil._alpha = 0;
}
swdeci = Math.floor(soldierwave / 10);
swuni = Math.floor(soldierwave - (swdeci * 10));
_root.game.tabb.swouni.gotoAndStop(swuni + 1);
_root.game.tabb.swodeci.gotoAndStop(swdeci + 1);
if (swdeci > 0) {
_root.game.tabb.swouni._alpha = 100;
_root.game.tabb.swodeci._alpha = 100;
} else if (swuni > 0) {
_root.game.tabb.swouni._alpha = 100;
_root.game.tabb.swodeci._alpha = 0;
} else if ((swuni == 0) && (swdeci == 0)) {
_root.game.tabb.swouni._alpha = 100;
_root.game.tabb.swodeci._alpha = 0;
}
if (wavedeath == false) {
_root.game.tabb.nwouni._alpha = 0;
_root.game.tabb.nwodeci._alpha = 0;
}
if (wavedeath == true) {
nwdeci = Math.floor(nextwavec / 10);
nwuni = Math.floor(nextwavec - (nwdeci * 10));
_root.game.tabb.nwouni.gotoAndStop(nwuni + 1);
_root.game.tabb.nwodeci.gotoAndStop(nwdeci + 1);
if (nwdeci > 0) {
_root.game.tabb.nwouni._alpha = 100;
_root.game.tabb.nwodeci._alpha = 100;
} else if (nwuni > 0) {
_root.game.tabb.nwouni._alpha = 100;
_root.game.tabb.nwodeci._alpha = 0;
} else if ((nwuni == 0) && (nwdeci == 0)) {
_root.game.tabb.nwouni._alpha = 100;
_root.game.tabb.nwodeci._alpha = 0;
}
}
if (hpqueen == 4) {
_root.game.flag1._alpha = 100;
_root.game.flag2._alpha = 100;
_root.game.flag3._alpha = 100;
_root.game.flag4._alpha = 100;
}
if (hpqueen == 3) {
_root.game.flag1._alpha = 0;
_root.game.flag2._alpha = 100;
_root.game.flag3._alpha = 100;
_root.game.flag4._alpha = 100;
}
if (hpqueen == 2) {
_root.game.flag1._alpha = 0;
_root.game.flag2._alpha = 0;
_root.game.flag3._alpha = 100;
_root.game.flag4._alpha = 100;
}
if (hpqueen == 1) {
_root.game.flag1._alpha = 0;
_root.game.flag2._alpha = 0;
_root.game.flag3._alpha = 0;
_root.game.flag4._alpha = 100;
}
if (hpqueen <= 0) {
_root.game.flag1._alpha = 0;
_root.game.flag2._alpha = 0;
_root.game.flag3._alpha = 0;
_root.game.flag4._alpha = 0;
}
}
function tablero() {
if (boneshave >= 20) {
_root.game.tabb.skullbuton.gotoAndStop(2);
}
if (boneshave < 20) {
_root.game.tabb.skullbuton.gotoAndStop(1);
}
if (boneshave >= 40) {
_root.game.tabb.plantbuton.gotoAndStop(2);
}
if (boneshave < 40) {
_root.game.tabb.plantbuton.gotoAndStop(1);
}
if (boneshave >= 50) {
_root.game.tabb.slimebuton.gotoAndStop(2);
}
if (boneshave < 50) {
_root.game.tabb.slimebuton.gotoAndStop(1);
}
if (boneshave >= 150) {
_root.game.tabb.mudmanbuton.gotoAndStop(2);
}
if (boneshave < 150) {
_root.game.tabb.mudmanbuton.gotoAndStop(1);
}
if (boneshave >= 100) {
_root.game.tabb.dragonbuton.gotoAndStop(2);
_root.game.tabb.demonbuton.gotoAndStop(2);
}
if (boneshave < 100) {
_root.game.tabb.dragonbuton.gotoAndStop(1);
_root.game.tabb.demonbuton.gotoAndStop(1);
}
if (boneshave >= 80) {
_root.game.tabb.hivebuton.gotoAndStop(2);
}
if (boneshave < 80) {
_root.game.tabb.hivebuton.gotoAndStop(1);
}
if (boneshave >= 200) {
_root.game.tabb.corpebuton.gotoAndStop(2);
}
if (boneshave < 200) {
_root.game.tabb.corpebuton.gotoAndStop(1);
}
if (boneshave >= 100) {
_root.game.tabb.firespell.gotoAndStop(2);
}
if (boneshave < 100) {
_root.game.tabb.firespell.gotoAndStop(1);
}
if (boneshave >= 50) {
_root.game.tabb.icespell.gotoAndStop(2);
}
if (boneshave < 50) {
_root.game.tabb.icespell.gotoAndStop(1);
}
if (boneshave >= 200) {
_root.game.tabb.windspell.gotoAndStop(2);
}
if (boneshave < 200) {
_root.game.tabb.windspell.gotoAndStop(1);
}
if (boneshave >= 400) {
_root.game.tabb.thunderspell.gotoAndStop(2);
}
if (boneshave < 400) {
_root.game.tabb.thunderspell.gotoAndStop(1);
}
if (nextwavec > 0) {
_root.game.tabb.beginw.gotoAndStop(2);
} else if (nextwavec <= 0) {
_root.game.tabb.beginw.gotoAndStop(1);
}
_root.game.tabb.beginw.onRelease = function () {
if (bulletlist.length == 0) {
nextwavec = 0;
_root.cliky.gotoAndPlay(2);
}
};
_root.game.tabb.skullbuton.onRelease = function () {
if (boneshave >= 20) {
whatc = 1;
buyingc = true;
usingmagic = false;
_root.game.mickey.gotoAndStop(3);
_root.game.mickey.monsshow.gotoAndStop(1);
_root.game.buydes.gotoAndStop(2);
_root.game.statusm.gotoAndStop(1);
freespace();
_root.cliky.gotoAndPlay(2);
}
};
_root.game.tabb.plantbuton.onRelease = function () {
if (boneshave >= 40) {
whatc = 2;
buyingc = true;
usingmagic = false;
_root.game.mickey.gotoAndStop(3);
_root.game.mickey.monsshow.gotoAndStop(2);
_root.game.buydes.gotoAndStop(3);
_root.game.statusm.gotoAndStop(1);
freespace();
_root.cliky.gotoAndPlay(2);
}
};
_root.game.tabb.slimebuton.onRelease = function () {
if (boneshave >= 50) {
whatc = 3;
buyingc = true;
usingmagic = false;
_root.game.mickey.gotoAndStop(3);
_root.game.mickey.monsshow.gotoAndStop(3);
_root.game.buydes.gotoAndStop(4);
_root.game.statusm.gotoAndStop(1);
freespace();
_root.cliky.gotoAndPlay(2);
}
};
_root.game.tabb.demonbuton.onRelease = function () {
if (boneshave >= 100) {
whatc = 4;
buyingc = true;
usingmagic = false;
_root.game.mickey.gotoAndStop(3);
_root.game.mickey.monsshow.gotoAndStop(4);
_root.game.buydes.gotoAndStop(5);
_root.game.statusm.gotoAndStop(1);
freespace();
_root.cliky.gotoAndPlay(2);
}
};
_root.game.tabb.hivebuton.onRelease = function () {
if (boneshave >= 80) {
whatc = 5;
buyingc = true;
usingmagic = false;
_root.game.mickey.gotoAndStop(3);
_root.game.mickey.monsshow.gotoAndStop(5);
_root.game.buydes.gotoAndStop(6);
_root.game.statusm.gotoAndStop(1);
freespace();
_root.cliky.gotoAndPlay(2);
}
};
_root.game.tabb.corpebuton.onRelease = function () {
if (boneshave >= 200) {
whatc = 6;
buyingc = true;
usingmagic = false;
_root.game.mickey.gotoAndStop(3);
_root.game.mickey.monsshow.gotoAndStop(6);
_root.game.buydes.gotoAndStop(7);
_root.game.statusm.gotoAndStop(1);
freespace();
_root.cliky.gotoAndPlay(2);
}
};
_root.game.tabb.mudmanbuton.onRelease = function () {
if (boneshave >= 150) {
whatc = 7;
buyingc = true;
usingmagic = false;
_root.game.mickey.gotoAndStop(3);
_root.game.mickey.monsshow.gotoAndStop(7);
_root.game.buydes.gotoAndStop(8);
_root.game.statusm.gotoAndStop(1);
freespace();
_root.cliky.gotoAndPlay(2);
}
};
_root.game.tabb.dragonbuton.onRelease = function () {
if (boneshave >= 100) {
whatc = 8;
buyingc = true;
usingmagic = false;
_root.game.mickey.gotoAndStop(3);
_root.game.mickey.monsshow.gotoAndStop(8);
_root.game.buydes.gotoAndStop(9);
_root.game.statusm.gotoAndStop(1);
freespace();
_root.cliky.gotoAndPlay(2);
}
};
_root.game.tabb.firespell.onRelease = function () {
if (boneshave >= 100) {
whatm = 1;
buyingc = false;
usingmagic = true;
_root.game.mickey.gotoAndStop(2);
_root.cliky.gotoAndPlay(2);
}
};
_root.game.tabb.icespell.onRelease = function () {
if (boneshave >= 50) {
whatm = 2;
buyingc = false;
usingmagic = true;
_root.game.mickey.gotoAndStop(2);
_root.cliky.gotoAndPlay(2);
}
};
_root.game.tabb.thunderspell.onRelease = function () {
if (boneshave >= 400) {
whatm = 3;
buyingc = false;
usingmagic = true;
_root.game.mickey.gotoAndStop(2);
_root.cliky.gotoAndPlay(2);
}
};
_root.game.tabb.windspell.onRelease = function () {
if (boneshave >= 200) {
whatm = 4;
buyingc = false;
usingmagic = true;
_root.game.mickey.gotoAndStop(2);
_root.cliky.gotoAndPlay(2);
}
};
if (Key.isDown(81)) {
if (boneshave >= 20) {
whatc = 1;
buyingc = true;
usingmagic = false;
_root.game.mickey.gotoAndStop(3);
_root.game.mickey.monsshow.gotoAndStop(1);
_root.game.buydes.gotoAndStop(2);
_root.game.statusm.gotoAndStop(1);
freespace();
_root.cliky.gotoAndPlay(2);
}
}
if (Key.isDown(87)) {
if (boneshave >= 40) {
whatc = 2;
buyingc = true;
usingmagic = false;
_root.game.mickey.gotoAndStop(3);
_root.game.mickey.monsshow.gotoAndStop(2);
_root.game.buydes.gotoAndStop(3);
_root.game.statusm.gotoAndStop(1);
freespace();
_root.cliky.gotoAndPlay(2);
}
}
if (Key.isDown(69)) {
if (boneshave >= 50) {
whatc = 3;
buyingc = true;
usingmagic = false;
_root.game.mickey.gotoAndStop(3);
_root.game.mickey.monsshow.gotoAndStop(3);
_root.game.buydes.gotoAndStop(4);
_root.game.statusm.gotoAndStop(1);
freespace();
_root.cliky.gotoAndPlay(2);
}
}
if (Key.isDown(82)) {
if (boneshave >= 100) {
whatc = 4;
buyingc = true;
usingmagic = false;
_root.game.mickey.gotoAndStop(3);
_root.game.mickey.monsshow.gotoAndStop(4);
_root.game.buydes.gotoAndStop(5);
_root.game.statusm.gotoAndStop(1);
freespace();
_root.cliky.gotoAndPlay(2);
}
}
if (Key.isDown(65)) {
if (boneshave >= 80) {
whatc = 5;
buyingc = true;
usingmagic = false;
_root.game.mickey.gotoAndStop(3);
_root.game.mickey.monsshow.gotoAndStop(5);
_root.game.buydes.gotoAndStop(6);
_root.game.statusm.gotoAndStop(1);
freespace();
_root.cliky.gotoAndPlay(2);
}
}
if (Key.isDown(83)) {
if (boneshave >= 200) {
whatc = 6;
buyingc = true;
usingmagic = false;
_root.game.mickey.gotoAndStop(3);
_root.game.mickey.monsshow.gotoAndStop(6);
_root.game.buydes.gotoAndStop(7);
_root.game.statusm.gotoAndStop(1);
freespace();
_root.cliky.gotoAndPlay(2);
}
}
if (Key.isDown(68)) {
if (boneshave >= 150) {
whatc = 7;
buyingc = true;
usingmagic = false;
_root.game.mickey.gotoAndStop(3);
_root.game.mickey.monsshow.gotoAndStop(7);
_root.game.buydes.gotoAndStop(8);
_root.game.statusm.gotoAndStop(1);
freespace();
_root.cliky.gotoAndPlay(2);
}
}
if (Key.isDown(70)) {
if (boneshave >= 100) {
whatc = 8;
buyingc = true;
usingmagic = false;
_root.game.mickey.gotoAndStop(3);
_root.game.mickey.monsshow.gotoAndStop(8);
_root.game.buydes.gotoAndStop(9);
_root.game.statusm.gotoAndStop(1);
freespace();
_root.cliky.gotoAndPlay(2);
}
}
if (Key.isDown(90)) {
if (boneshave >= 100) {
whatm = 1;
buyingc = false;
usingmagic = true;
_root.game.buydes.gotoAndStop(1);
_root.game.mickey.gotoAndStop(2);
_root.cliky.gotoAndPlay(2);
}
}
if (Key.isDown(88)) {
if (boneshave >= 50) {
whatm = 2;
buyingc = false;
usingmagic = true;
_root.game.buydes.gotoAndStop(1);
_root.game.mickey.gotoAndStop(2);
_root.cliky.gotoAndPlay(2);
}
}
if (Key.isDown(67)) {
if (boneshave >= 400) {
whatm = 3;
buyingc = false;
usingmagic = true;
_root.game.buydes.gotoAndStop(1);
_root.game.mickey.gotoAndStop(2);
_root.cliky.gotoAndPlay(2);
}
}
if (Key.isDown(86)) {
if (boneshave >= 200) {
whatm = 4;
buyingc = false;
usingmagic = true;
_root.game.buydes.gotoAndStop(1);
_root.game.mickey.gotoAndStop(2);
_root.cliky.gotoAndPlay(2);
}
}
_root.game.buydes.nosale.onPress = function () {
whatc = 0;
buyingc = false;
_root.game.mickey.gotoAndStop(1);
_root.game.buydes.gotoAndStop(1);
i = 0;
while (i < sumonlist.length) {
tempo = _root.game.castlec[sumonlist[i]];
tempo.gotoAndStop(13);
_root.cliky.gotoAndPlay(2);
i++;
}
};
if (buyingc == true) {
i = 0;
while (i < sumonlist.length) {
freearea = _root.game.castlec[sumonlist[i]];
freearea.onPress = putcreature;
i++;
}
}
}
function freespace() {
i = 0;
while (i < sumonlist.length) {
tempo = _root.game.castlec[sumonlist[i]];
if (tempo.free == 1) {
tempo.gotoAndStop(13);
}
if (tempo.free == 0) {
tempo.gotoAndPlay(1);
}
i++;
}
w = 0;
while (w < creaturelist.length) {
selectcc = _root.game[creaturelist[w]];
selectcc.flecha._alpha = 0;
selectcc.selectcs = 0;
w++;
}
}
function putcreature() {
if (this.free == 0) {
this.free = 1;
_root.aparicions.gotoAndPlay(2);
if (whatc == 1) {
_root.game.attachMovie("skullclip", "creature" + deep, deep, {_x:this._x, _y:this._y + 8, exist:1, atk:5, range:20, xp:0, typec:1, typeatk:1, zone:freearea, nextlv:50, money:20, dir:0, selectcs:0, espaciou:this._name, lv:1, obj:0, objtar:0, frozen:0});
_root.game["creature" + deep].gotoAndStop(2);
creaturelist.push("creature" + deep);
if ((_root.game["creature" + deep]._y == 342) || (_root.game["creature" + deep]._y == 192)) {
_root.game["creature" + deep]._xscale = -100;
_root.game["creature" + deep].dir = 1;
_root.game["creature" + deep]._x = _root.game["creature" + deep]._x + 2;
}
buyingc = false;
whatc = 0;
boneshave = boneshave - 20;
_root.game.mickey.gotoAndStop(1);
_root.game.buydes.gotoAndStop(1);
deep++;
i = 0;
while (i < sumonlist.length) {
tempo = _root.game.castlec[sumonlist[i]];
tempo.gotoAndStop(13);
i++;
}
skulll1 = skulll1 + 1;
}
if (whatc == 2) {
_root.game.attachMovie("plantclip", "creature" + deep, deep, {_x:this._x, _y:this._y + 8, exist:1, atk:2, range:300, xp:0, typec:2, typeatk:1, zone:freearea, nextlv:75, money:40, dir:0, selectcs:0, espaciou:this._name, lv:1, atktempo:0, obj:0, objtar:0, frozen:0});
_root.game["creature" + deep].gotoAndStop(2);
creaturelist.push("creature" + deep);
if ((_root.game["creature" + deep]._y == 342) || (_root.game["creature" + deep]._y == 192)) {
_root.game["creature" + deep]._xscale = -100;
_root.game["creature" + deep].dir = 1;
_root.game["creature" + deep]._x = _root.game["creature" + deep]._x + 2;
}
buyingc = false;
whatc = 0;
boneshave = boneshave - 40;
_root.game.mickey.gotoAndStop(1);
_root.game.buydes.gotoAndStop(1);
deep++;
i = 0;
while (i < sumonlist.length) {
tempo = _root.game.castlec[sumonlist[i]];
tempo.gotoAndStop(13);
i++;
}
plantl1 = plantl1 + 1;
}
if (whatc == 3) {
_root.game.attachMovie("slimeclip", "creature" + deep, deep, {_x:this._x, _y:this._y + 8, exist:1, atk:2, range:20, xp:0, typec:3, typeatk:2, zone:freearea, nextlv:500, money:50, dir:0, selectcs:0, espaciou:this._name, lv:1, atktempo:0, obj:0, objtar:0, frozen:0});
_root.game["creature" + deep].gotoAndStop(2);
creaturelist.push("creature" + deep);
if ((_root.game["creature" + deep]._y == 342) || (_root.game["creature" + deep]._y == 192)) {
_root.game["creature" + deep]._xscale = -100;
_root.game["creature" + deep].dir = 1;
_root.game["creature" + deep]._x = _root.game["creature" + deep]._x + 2;
}
buyingc = false;
whatc = 0;
boneshave = boneshave - 50;
_root.game.mickey.gotoAndStop(1);
_root.game.buydes.gotoAndStop(1);
deep++;
i = 0;
while (i < sumonlist.length) {
tempo = _root.game.castlec[sumonlist[i]];
tempo.gotoAndStop(13);
i++;
}
slimel1 = slimel1 + 1;
}
if (whatc == 4) {
_root.game.attachMovie("demonclip", "creature" + deep, deep, {_x:this._x, _y:this._y + 8, exist:1, atk:3, range:20, xp:0, typec:4, typeatk:3, zone:freearea, nextlv:10, money:100, dir:0, selectcs:0, espaciou:this._name, lv:1, atktempo:0, stopu:0, calm:0, obj:0, objtar:0, frozen:0});
_root.game["creature" + deep].gotoAndStop(2);
creaturelist.push("creature" + deep);
if ((_root.game["creature" + deep]._y == 342) || (_root.game["creature" + deep]._y == 192)) {
_root.game["creature" + deep]._xscale = -100;
_root.game["creature" + deep].dir = 1;
_root.game["creature" + deep]._x = _root.game["creature" + deep]._x + 2;
}
buyingc = false;
whatc = 0;
boneshave = boneshave - 100;
_root.game.mickey.gotoAndStop(1);
_root.game.buydes.gotoAndStop(1);
deep++;
i = 0;
while (i < sumonlist.length) {
tempo = _root.game.castlec[sumonlist[i]];
tempo.gotoAndStop(13);
i++;
}
demonl1 = demonl1 + 1;
}
if (whatc == 5) {
_root.game.attachMovie("hiveclip", "creature" + deep, deep, {_x:this._x, _y:this._y + 8, exist:1, atk:5, range:80, xp:0, typec:5, typeatk:1, zone:freearea, nextlv:25, money:80, dir:0, selectcs:0, espaciou:this._name, lv:1, calm:0, targ:0, obj:0, objtar:0, frozen:0});
_root.game["creature" + deep].gotoAndStop(2);
creaturelist.push("creature" + deep);
if ((_root.game["creature" + deep]._y == 342) || (_root.game["creature" + deep]._y == 192)) {
_root.game["creature" + deep]._xscale = -100;
_root.game["creature" + deep].dir = 1;
_root.game["creature" + deep]._x = _root.game["creature" + deep]._x + 2;
}
buyingc = false;
whatc = 0;
boneshave = boneshave - 80;
_root.game.mickey.gotoAndStop(1);
_root.game.buydes.gotoAndStop(1);
deep++;
i = 0;
while (i < sumonlist.length) {
tempo = _root.game.castlec[sumonlist[i]];
tempo.gotoAndStop(13);
i++;
}
hivel1 = hivel1 + 1;
}
if (whatc == 6) {
_root.game.attachMovie("corpeclip", "creature" + deep, deep, {_x:this._x, _y:this._y + 8, exist:1, atk:3, range:0, xp:0, typec:6, typeatk:4, zone:freearea, nextlv:50, money:200, dir:0, selectcs:0, espaciou:this._name, lv:1, produce:240, obj:0, objtar:0, frozen:0});
_root.game["creature" + deep].gotoAndStop(2);
creaturelist.push("creature" + deep);
if ((_root.game["creature" + deep]._y == 342) || (_root.game["creature" + deep]._y == 192)) {
_root.game["creature" + deep]._xscale = -100;
_root.game["creature" + deep].dir = 1;
_root.game["creature" + deep]._x = _root.game["creature" + deep]._x + 2;
}
buyingc = false;
whatc = 0;
boneshave = boneshave - 200;
bonusbones = bonusbones + 3;
_root.game.mickey.gotoAndStop(1);
_root.game.buydes.gotoAndStop(1);
deep++;
i = 0;
while (i < sumonlist.length) {
tempo = _root.game.castlec[sumonlist[i]];
tempo.gotoAndStop(13);
i++;
}
corpel1 = corpel1 + 1;
}
if (whatc == 7) {
_root.game.attachMovie("mudmanclip", "creature" + deep, deep, {_x:this._x, _y:this._y + 8, exist:1, atk:5, range:80, xp:0, typec:7, typeatk:1, zone:freearea, nextlv:100, money:150, dir:0, selectcs:0, espaciou:this._name, lv:1, atktempo:0, obj:0, objtar:0, frozen:0});
_root.game["creature" + deep].gotoAndStop(2);
creaturelist.push("creature" + deep);
if ((_root.game["creature" + deep]._y == 342) || (_root.game["creature" + deep]._y == 192)) {
_root.game["creature" + deep]._xscale = -100;
_root.game["creature" + deep].dir = 1;
_root.game["creature" + deep]._x = _root.game["creature" + deep]._x + 2;
}
buyingc = false;
whatc = 0;
boneshave = boneshave - 150;
_root.game.mickey.gotoAndStop(1);
_root.game.buydes.gotoAndStop(1);
deep++;
i = 0;
while (i < sumonlist.length) {
tempo = _root.game.castlec[sumonlist[i]];
tempo.gotoAndStop(13);
i++;
}
mudmanl1 = mudmanl1 + 1;
}
if (whatc == 8) {
_root.game.attachMovie("dragonclip", "creature" + deep, deep, {_x:this._x, _y:this._y + 8, exist:1, atk:5, range:40, xp:0, typec:8, typeatk:1, zone:freearea, nextlv:70, money:100, dir:0, selectcs:0, espaciou:this._name, lv:1, obj:0, objtar:0, frozen:0});
_root.game["creature" + deep].gotoAndStop(2);
creaturelist.push("creature" + deep);
if ((_root.game["creature" + deep]._y == 342) || (_root.game["creature" + deep]._y == 192)) {
_root.game["creature" + deep]._xscale = -100;
_root.game["creature" + deep].dir = 1;
_root.game["creature" + deep]._x = _root.game["creature" + deep]._x + 2;
}
buyingc = false;
whatc = 0;
boneshave = boneshave - 100;
_root.game.mickey.gotoAndStop(1);
_root.game.buydes.gotoAndStop(1);
deep++;
i = 0;
while (i < sumonlist.length) {
tempo = _root.game.castlec[sumonlist[i]];
tempo.gotoAndStop(13);
i++;
}
dragonl1 = dragonl1 + 1;
}
}
}
function seestatus() {
r = 0;
while (r < creaturelist.length) {
selectc = _root.game[creaturelist[r]];
if (selectc.selectcs == 0) {
selectc.rangec.gotoAndStop(1);
}
selectc.onPress = function () {
if (buyingc == false) {
w = 0;
while (w < creaturelist.length) {
selectcc = _root.game[creaturelist[w]];
if (selectcc.selectcs == 1) {
selectcc.selectcs = 0;
selectcc.flecha._alpha = 0;
}
w++;
}
this.selectcs = 1;
this.flecha._alpha = 100;
this.rangec.gotoAndPlay(2);
firstcb = 0;
firstca = 0;
_root.game.statusm.gotoAndStop(1);
_root.game.buydes.gotoAndStop(1);
_root.game.statusm.gotoAndStop(2);
_root.game.statusm.namemon.gotoAndStop(this.typec);
_root.game.statusm.tiatk.gotoAndStop(this.typeatk);
_root.game.statusm.xpbar._xscale = (this.xp * 100) / this.nextlv;
atdeci = Math.floor(this.atk / 10);
atuni = Math.floor(this.atk - (atdeci * 10));
_root.game.statusm.atouni.gotoAndStop(atuni + 1);
_root.game.statusm.atodeci.gotoAndStop(atdeci + 1);
if (atdeci > 0) {
_root.game.statusm.atouni._alpha = 100;
_root.game.statusm.atodeci._alpha = 100;
} else if (atuni > 0) {
_root.game.statusm.atouni._alpha = 100;
_root.game.statusm.atodeci._alpha = 0;
} else if ((atuni == 0) && (atdeci == 0)) {
_root.game.statusm.atouni._alpha = 100;
_root.game.statusm.atodeci._alpha = 0;
}
}
};
r++;
}
_root.game.statusm.sellbuton.onRollOver = function () {
_root.game.statusm.sellbuton.gotoAndStop(2);
};
_root.game.statusm.sellbuton.onRollOut = function () {
_root.game.statusm.sellbuton.gotoAndStop(1);
};
_root.game.statusm.sellbuton.onPress = function () {
firstca = 0;
r = 0;
while (r < creaturelist.length) {
selectc = _root.game[creaturelist[r]];
if ((firstcb == 1) && (selectc.selectcs == 1)) {
firstcb = firstcb + 1;
boneshave = boneshave + (selectc.money / 2);
_root.game.statusm.butoninfo.gotoAndStop(1);
_root.game.statusm.gotoAndStop(1);
_root.game.sellblood._x = selectc._x;
_root.game.sellblood._y = selectc._y - 15.5;
_root.game.sellblood.gotoAndPlay(2);
_root.game.castlec[selectc.espaciou].free = 0;
selectc.removeMovieClip();
creaturelist.splice(r, 1);
_root.cdeath.gotoAndPlay(2);
break;
}
if ((firstcb == 0) && (selectc.selectcs == 1)) {
firstcb = firstcb + 1;
_root.game.statusm.butoninfo.gotoAndStop(3);
xmmil = Math.floor((selectc.money / 2) / 100000);
xmildeci = Math.floor(((selectc.money / 2) - (xmmil * 100000)) / 10000);
xmiluni = Math.floor((((selectc.money / 2) - (xmmil * 100000)) - (xmildeci * 10000)) / 1000);
xmil = Math.floor(((((selectc.money / 2) - (xmmil * 100000)) - (xmildeci * 10000)) - (xmiluni * 1000)) / 100);
xdeci = Math.floor((((((selectc.money / 2) - (xmmil * 100000)) - (xmildeci * 10000)) - (xmiluni * 1000)) - (xmil * 100)) / 10);
xuni = Math.floor((((((selectc.money / 2) - (xmmil * 100000)) - (xmildeci * 10000)) - (xmiluni * 1000)) - (xmil * 100)) - (xdeci * 10));
_root.game.statusm.butoninfo.souni.gotoAndStop(xuni + 1);
_root.game.statusm.butoninfo.sodeci.gotoAndStop(xdeci + 1);
_root.game.statusm.butoninfo.somil.gotoAndStop(xmil + 1);
_root.game.statusm.butoninfo.somiluni.gotoAndStop(xmiluni + 1);
_root.game.statusm.butoninfo.somildeci.gotoAndStop(xmildeci + 1);
_root.game.statusm.butoninfo.sommil.gotoAndStop(xmmil + 1);
if (xmmil > 0) {
_root.game.statusm.butoninfo.souni._alpha = 100;
_root.game.statusm.butoninfo.sodeci._alpha = 100;
_root.game.statusm.butoninfo.somil._alpha = 100;
_root.game.statusm.butoninfo.somiluni._alpha = 100;
_root.game.statusm.butoninfo.somildeci._alpha = 100;
_root.game.statusm.butoninfo.sommil._alpha = 100;
} else if (xmildeci > 0) {
_root.game.statusm.butoninfo.souni._alpha = 100;
_root.game.statusm.butoninfo.sodeci._alpha = 100;
_root.game.statusm.butoninfo.somil._alpha = 100;
_root.game.statusm.butoninfo.somiluni._alpha = 100;
_root.game.statusm.butoninfo.somildeci._alpha = 100;
_root.game.statusm.butoninfo.sommil._alpha = 0;
} else if (xmiluni > 0) {
_root.game.statusm.butoninfo.souni._alpha = 100;
_root.game.statusm.butoninfo.sodeci._alpha = 100;
_root.game.statusm.butoninfo.somil._alpha = 100;
_root.game.statusm.butoninfo.somiluni._alpha = 100;
_root.game.statusm.butoninfo.somildeci._alpha = 0;
_root.game.statusm.butoninfo.sommil._alpha = 0;
} else if (xmil > 0) {
_root.game.statusm.butoninfo.souni._alpha = 100;
_root.game.statusm.butoninfo.sodeci._alpha = 100;
_root.game.statusm.butoninfo.somil._alpha = 100;
_root.game.statusm.butoninfo.somiluni._alpha = 0;
_root.game.statusm.butoninfo.somildeci._alpha = 0;
_root.game.statusm.butoninfo.sommil._alpha = 0;
} else if (xdeci > 0) {
_root.game.statusm.butoninfo.souni._alpha = 100;
_root.game.statusm.butoninfo.sodeci._alpha = 100;
_root.game.statusm.butoninfo.somil._alpha = 0;
_root.game.statusm.butoninfo.somiluni._alpha = 0;
_root.game.statusm.butoninfo.somildeci._alpha = 0;
_root.game.statusm.butoninfo.sommil._alpha = 0;
} else if (xuni > 0) {
_root.game.statusm.butoninfo.souni._alpha = 100;
_root.game.statusm.butoninfo.sodeci._alpha = 0;
_root.game.statusm.butoninfo.somil._alpha = 0;
_root.game.statusm.butoninfo.somiluni._alpha = 0;
_root.game.statusm.butoninfo.somildeci._alpha = 0;
_root.game.statusm.butoninfo.sommil._alpha = 0;
} else if ((((((xuni == 0) && (xdeci == 0)) && (xmil == 0)) && (xmiluni == 0)) && (xmildeci == 0)) && (xmmil == 0)) {
_root.game.statusm.butoninfo.souni._alpha = 100;
_root.game.statusm.butoninfo.sodeci._alpha = 0;
_root.game.statusm.butoninfo.somil._alpha = 0;
_root.game.statusm.butoninfo.somiluni._alpha = 0;
_root.game.statusm.butoninfo.somildeci._alpha = 0;
_root.game.statusm.butoninfo.sommil._alpha = 0;
}
break;
}
if (firstcb >= 2) {
firstcb = 0;
break;
}
r++;
}
};
if (Key.isDown(66)) {
firstca = 0;
r = 0;
while (r < creaturelist.length) {
selectc = _root.game[creaturelist[r]];
if ((firstcb == 1) && (selectc.selectcs == 1)) {
firstcb = firstcb + 1;
boneshave = boneshave + (selectc.money / 2);
_root.game.statusm.butoninfo.gotoAndStop(1);
_root.game.statusm.gotoAndStop(1);
_root.game.sellblood._x = selectc._x;
_root.game.sellblood._y = selectc._y - 15.5;
_root.game.sellblood.gotoAndPlay(2);
_root.game.castlec[selectc.espaciou].free = 0;
selectc.removeMovieClip();
creaturelist.splice(r, 1);
_root.cdeath.gotoAndPlay(2);
break;
}
if ((firstcb == 0) && (selectc.selectcs == 1)) {
firstcb = firstcb + 1;
_root.game.statusm.butoninfo.gotoAndStop(3);
xmmil = Math.floor((selectc.money / 2) / 100000);
xmildeci = Math.floor(((selectc.money / 2) - (xmmil * 100000)) / 10000);
xmiluni = Math.floor((((selectc.money / 2) - (xmmil * 100000)) - (xmildeci * 10000)) / 1000);
xmil = Math.floor(((((selectc.money / 2) - (xmmil * 100000)) - (xmildeci * 10000)) - (xmiluni * 1000)) / 100);
xdeci = Math.floor((((((selectc.money / 2) - (xmmil * 100000)) - (xmildeci * 10000)) - (xmiluni * 1000)) - (xmil * 100)) / 10);
xuni = Math.floor((((((selectc.money / 2) - (xmmil * 100000)) - (xmildeci * 10000)) - (xmiluni * 1000)) - (xmil * 100)) - (xdeci * 10));
_root.game.statusm.butoninfo.souni.gotoAndStop(xuni + 1);
_root.game.statusm.butoninfo.sodeci.gotoAndStop(xdeci + 1);
_root.game.statusm.butoninfo.somil.gotoAndStop(xmil + 1);
_root.game.statusm.butoninfo.somiluni.gotoAndStop(xmiluni + 1);
_root.game.statusm.butoninfo.somildeci.gotoAndStop(xmildeci + 1);
_root.game.statusm.butoninfo.sommil.gotoAndStop(xmmil + 1);
if (xmmil > 0) {
_root.game.statusm.butoninfo.souni._alpha = 100;
_root.game.statusm.butoninfo.sodeci._alpha = 100;
_root.game.statusm.butoninfo.somil._alpha = 100;
_root.game.statusm.butoninfo.somiluni._alpha = 100;
_root.game.statusm.butoninfo.somildeci._alpha = 100;
_root.game.statusm.butoninfo.sommil._alpha = 100;
} else if (xmildeci > 0) {
_root.game.statusm.butoninfo.souni._alpha = 100;
_root.game.statusm.butoninfo.sodeci._alpha = 100;
_root.game.statusm.butoninfo.somil._alpha = 100;
_root.game.statusm.butoninfo.somiluni._alpha = 100;
_root.game.statusm.butoninfo.somildeci._alpha = 100;
_root.game.statusm.butoninfo.sommil._alpha = 0;
} else if (xmiluni > 0) {
_root.game.statusm.butoninfo.souni._alpha = 100;
_root.game.statusm.butoninfo.sodeci._alpha = 100;
_root.game.statusm.butoninfo.somil._alpha = 100;
_root.game.statusm.butoninfo.somiluni._alpha = 100;
_root.game.statusm.butoninfo.somildeci._alpha = 0;
_root.game.statusm.butoninfo.sommil._alpha = 0;
} else if (xmil > 0) {
_root.game.statusm.butoninfo.souni._alpha = 100;
_root.game.statusm.butoninfo.sodeci._alpha = 100;
_root.game.statusm.butoninfo.somil._alpha = 100;
_root.game.statusm.butoninfo.somiluni._alpha = 0;
_root.game.statusm.butoninfo.somildeci._alpha = 0;
_root.game.statusm.butoninfo.sommil._alpha = 0;
} else if (xdeci > 0) {
_root.game.statusm.butoninfo.souni._alpha = 100;
_root.game.statusm.butoninfo.sodeci._alpha = 100;
_root.game.statusm.butoninfo.somil._alpha = 0;
_root.game.statusm.butoninfo.somiluni._alpha = 0;
_root.game.statusm.butoninfo.somildeci._alpha = 0;
_root.game.statusm.butoninfo.sommil._alpha = 0;
} else if (xuni > 0) {
_root.game.statusm.butoninfo.souni._alpha = 100;
_root.game.statusm.butoninfo.sodeci._alpha = 0;
_root.game.statusm.butoninfo.somil._alpha = 0;
_root.game.statusm.butoninfo.somiluni._alpha = 0;
_root.game.statusm.butoninfo.somildeci._alpha = 0;
_root.game.statusm.butoninfo.sommil._alpha = 0;
} else if ((((((xuni == 0) && (xdeci == 0)) && (xmil == 0)) && (xmiluni == 0)) && (xmildeci == 0)) && (xmmil == 0)) {
_root.game.statusm.butoninfo.souni._alpha = 100;
_root.game.statusm.butoninfo.sodeci._alpha = 0;
_root.game.statusm.butoninfo.somil._alpha = 0;
_root.game.statusm.butoninfo.somiluni._alpha = 0;
_root.game.statusm.butoninfo.somildeci._alpha = 0;
_root.game.statusm.butoninfo.sommil._alpha = 0;
}
break;
}
if (firstcb >= 2) {
firstcb = 0;
break;
}
r++;
}
}
_root.game.statusm.risebuton.onRollOver = function () {
_root.game.statusm.risebuton.gotoAndStop(2);
};
_root.game.statusm.risebuton.onRollOut = function () {
_root.game.statusm.risebuton.gotoAndStop(1);
};
_root.game.statusm.risebuton.onPress = function () {
firstcb = 0;
r = 0;
while (r < creaturelist.length) {
selectc = _root.game[creaturelist[r]];
if (((firstca == 1) && (selectc.selectcs == 1)) && (boneshave >= (selectc.money / 2))) {
firstca = firstca + 1;
boneshave = boneshave - Math.floor(selectc.money / 2);
selectc.atk = selectc.atk + 1;
if (selectc.typec == 6) {
bonusbones++;
}
selectc.money = selectc.money + Math.floor(selectc.money / 2);
_root.game.statusm.butoninfo.gotoAndStop(1);
_root.game.statusm.gotoAndStop(1);
break;
}
if ((firstca == 0) && (selectc.selectcs == 1)) {
firstca = firstca + 1;
_root.game.statusm.butoninfo.gotoAndStop(2);
xmmil = Math.floor((selectc.money / 2) / 100000);
xmildeci = Math.floor(((selectc.money / 2) - (xmmil * 100000)) / 10000);
xmiluni = Math.floor((((selectc.money / 2) - (xmmil * 100000)) - (xmildeci * 10000)) / 1000);
xmil = Math.floor(((((selectc.money / 2) - (xmmil * 100000)) - (xmildeci * 10000)) - (xmiluni * 1000)) / 100);
xdeci = Math.floor((((((selectc.money / 2) - (xmmil * 100000)) - (xmildeci * 10000)) - (xmiluni * 1000)) - (xmil * 100)) / 10);
xuni = Math.floor((((((selectc.money / 2) - (xmmil * 100000)) - (xmildeci * 10000)) - (xmiluni * 1000)) - (xmil * 100)) - (xdeci * 10));
_root.game.statusm.butoninfo.souni.gotoAndStop(xuni + 1);
_root.game.statusm.butoninfo.sodeci.gotoAndStop(xdeci + 1);
_root.game.statusm.butoninfo.somil.gotoAndStop(xmil + 1);
_root.game.statusm.butoninfo.somiluni.gotoAndStop(xmiluni + 1);
_root.game.statusm.butoninfo.somildeci.gotoAndStop(xmildeci + 1);
_root.game.statusm.butoninfo.sommil.gotoAndStop(xmmil + 1);
_root.game.statusm.butoninfo.dispa.gotoAndStop(selectc.typeatk);
if (xmmil > 0) {
_root.game.statusm.butoninfo.souni._alpha = 100;
_root.game.statusm.butoninfo.sodeci._alpha = 100;
_root.game.statusm.butoninfo.somil._alpha = 100;
_root.game.statusm.butoninfo.somiluni._alpha = 100;
_root.game.statusm.butoninfo.somildeci._alpha = 100;
_root.game.statusm.butoninfo.sommil._alpha = 100;
} else if (xmildeci > 0) {
_root.game.statusm.butoninfo.souni._alpha = 100;
_root.game.statusm.butoninfo.sodeci._alpha = 100;
_root.game.statusm.butoninfo.somil._alpha = 100;
_root.game.statusm.butoninfo.somiluni._alpha = 100;
_root.game.statusm.butoninfo.somildeci._alpha = 100;
_root.game.statusm.butoninfo.sommil._alpha = 0;
} else if (xmiluni > 0) {
_root.game.statusm.butoninfo.souni._alpha = 100;
_root.game.statusm.butoninfo.sodeci._alpha = 100;
_root.game.statusm.butoninfo.somil._alpha = 100;
_root.game.statusm.butoninfo.somiluni._alpha = 100;
_root.game.statusm.butoninfo.somildeci._alpha = 0;
_root.game.statusm.butoninfo.sommil._alpha = 0;
} else if (xmil > 0) {
_root.game.statusm.butoninfo.souni._alpha = 100;
_root.game.statusm.butoninfo.sodeci._alpha = 100;
_root.game.statusm.butoninfo.somil._alpha = 100;
_root.game.statusm.butoninfo.somiluni._alpha = 0;
_root.game.statusm.butoninfo.somildeci._alpha = 0;
_root.game.statusm.butoninfo.sommil._alpha = 0;
} else if (xdeci > 0) {
_root.game.statusm.butoninfo.souni._alpha = 100;
_root.game.statusm.butoninfo.sodeci._alpha = 100;
_root.game.statusm.butoninfo.somil._alpha = 0;
_root.game.statusm.butoninfo.somiluni._alpha = 0;
_root.game.statusm.butoninfo.somildeci._alpha = 0;
_root.game.statusm.butoninfo.sommil._alpha = 0;
} else if (xuni > 0) {
_root.game.statusm.butoninfo.souni._alpha = 100;
_root.game.statusm.butoninfo.sodeci._alpha = 0;
_root.game.statusm.butoninfo.somil._alpha = 0;
_root.game.statusm.butoninfo.somiluni._alpha = 0;
_root.game.statusm.butoninfo.somildeci._alpha = 0;
_root.game.statusm.butoninfo.sommil._alpha = 0;
} else if ((((((xuni == 0) && (xdeci == 0)) && (xmil == 0)) && (xmiluni == 0)) && (xmildeci == 0)) && (xmmil == 0)) {
_root.game.statusm.butoninfo.souni._alpha = 100;
_root.game.statusm.butoninfo.sodeci._alpha = 0;
_root.game.statusm.butoninfo.somil._alpha = 0;
_root.game.statusm.butoninfo.somiluni._alpha = 0;
_root.game.statusm.butoninfo.somildeci._alpha = 0;
_root.game.statusm.butoninfo.sommil._alpha = 0;
}
atsdeci = Math.floor(selectc.atk / 10);
atsuni = Math.floor(selectc.atk - (atsdeci * 10));
_root.game.statusm.butoninfo.auni.gotoAndStop(atsuni + 1);
_root.game.statusm.butoninfo.adeci.gotoAndStop(atsdeci + 1);
if (atsdeci > 0) {
_root.game.statusm.butoninfo.auni._alpha = 100;
_root.game.statusm.butoninfo.adeci._alpha = 100;
} else if (atsuni > 0) {
_root.game.statusm.butoninfo.auni._alpha = 100;
_root.game.statusm.butoninfo.adeci._alpha = 0;
} else if ((atsuni == 0) && (atsdeci == 0)) {
_root.game.statusm.butoninfo.auni._alpha = 100;
_root.game.statusm.butoninfo.adeci._alpha = 0;
}
riseat = selectc.atk + 1;
aatsdeci = Math.floor(riseat / 10);
aatsuni = Math.floor(riseat - (aatsdeci * 10));
_root.game.statusm.butoninfo.aduni.gotoAndStop(aatsuni + 1);
_root.game.statusm.butoninfo.addeci.gotoAndStop(aatsdeci + 1);
if (aatsdeci > 0) {
_root.game.statusm.butoninfo.aduni._alpha = 100;
_root.game.statusm.butoninfo.addeci._alpha = 100;
} else if (aatsuni > 0) {
_root.game.statusm.butoninfo.aduni._alpha = 100;
_root.game.statusm.butoninfo.addeci._alpha = 0;
} else if ((aatsuni == 0) && (aatsdeci == 0)) {
_root.game.statusm.butoninfo.aduni._alpha = 100;
_root.game.statusm.butoninfo.addeci._alpha = 0;
}
break;
}
if (firstca >= 2) {
firstca = 0;
break;
}
r++;
}
};
if (Key.isDown(84)) {
firstcb = 0;
r = 0;
while (r < creaturelist.length) {
selectc = _root.game[creaturelist[r]];
if (((firstca == 1) && (selectc.selectcs == 1)) && (boneshave >= (selectc.money / 2))) {
firstca = firstca + 1;
boneshave = boneshave - Math.floor(selectc.money / 2);
selectc.atk = selectc.atk + 1;
if (selectc.typec == 6) {
bonusbones++;
}
selectc.money = selectc.money + Math.floor(selectc.money / 2);
_root.game.statusm.butoninfo.gotoAndStop(1);
_root.game.statusm.gotoAndStop(1);
break;
}
if ((firstca == 0) && (selectc.selectcs == 1)) {
firstca = firstca + 1;
_root.game.statusm.butoninfo.gotoAndStop(2);
xmmil = Math.floor((selectc.money / 2) / 100000);
xmildeci = Math.floor(((selectc.money / 2) - (xmmil * 100000)) / 10000);
xmiluni = Math.floor((((selectc.money / 2) - (xmmil * 100000)) - (xmildeci * 10000)) / 1000);
xmil = Math.floor(((((selectc.money / 2) - (xmmil * 100000)) - (xmildeci * 10000)) - (xmiluni * 1000)) / 100);
xdeci = Math.floor((((((selectc.money / 2) - (xmmil * 100000)) - (xmildeci * 10000)) - (xmiluni * 1000)) - (xmil * 100)) / 10);
xuni = Math.floor((((((selectc.money / 2) - (xmmil * 100000)) - (xmildeci * 10000)) - (xmiluni * 1000)) - (xmil * 100)) - (xdeci * 10));
_root.game.statusm.butoninfo.souni.gotoAndStop(xuni + 1);
_root.game.statusm.butoninfo.sodeci.gotoAndStop(xdeci + 1);
_root.game.statusm.butoninfo.somil.gotoAndStop(xmil + 1);
_root.game.statusm.butoninfo.somiluni.gotoAndStop(xmiluni + 1);
_root.game.statusm.butoninfo.somildeci.gotoAndStop(xmildeci + 1);
_root.game.statusm.butoninfo.sommil.gotoAndStop(xmmil + 1);
_root.game.statusm.butoninfo.dispa.gotoAndStop(selectc.typeatk);
if (xmmil > 0) {
_root.game.statusm.butoninfo.souni._alpha = 100;
_root.game.statusm.butoninfo.sodeci._alpha = 100;
_root.game.statusm.butoninfo.somil._alpha = 100;
_root.game.statusm.butoninfo.somiluni._alpha = 100;
_root.game.statusm.butoninfo.somildeci._alpha = 100;
_root.game.statusm.butoninfo.sommil._alpha = 100;
} else if (xmildeci > 0) {
_root.game.statusm.butoninfo.souni._alpha = 100;
_root.game.statusm.butoninfo.sodeci._alpha = 100;
_root.game.statusm.butoninfo.somil._alpha = 100;
_root.game.statusm.butoninfo.somiluni._alpha = 100;
_root.game.statusm.butoninfo.somildeci._alpha = 100;
_root.game.statusm.butoninfo.sommil._alpha = 0;
} else if (xmiluni > 0) {
_root.game.statusm.butoninfo.souni._alpha = 100;
_root.game.statusm.butoninfo.sodeci._alpha = 100;
_root.game.statusm.butoninfo.somil._alpha = 100;
_root.game.statusm.butoninfo.somiluni._alpha = 100;
_root.game.statusm.butoninfo.somildeci._alpha = 0;
_root.game.statusm.butoninfo.sommil._alpha = 0;
} else if (xmil > 0) {
_root.game.statusm.butoninfo.souni._alpha = 100;
_root.game.statusm.butoninfo.sodeci._alpha = 100;
_root.game.statusm.butoninfo.somil._alpha = 100;
_root.game.statusm.butoninfo.somiluni._alpha = 0;
_root.game.statusm.butoninfo.somildeci._alpha = 0;
_root.game.statusm.butoninfo.sommil._alpha = 0;
} else if (xdeci > 0) {
_root.game.statusm.butoninfo.souni._alpha = 100;
_root.game.statusm.butoninfo.sodeci._alpha = 100;
_root.game.statusm.butoninfo.somil._alpha = 0;
_root.game.statusm.butoninfo.somiluni._alpha = 0;
_root.game.statusm.butoninfo.somildeci._alpha = 0;
_root.game.statusm.butoninfo.sommil._alpha = 0;
} else if (xuni > 0) {
_root.game.statusm.butoninfo.souni._alpha = 100;
_root.game.statusm.butoninfo.sodeci._alpha = 0;
_root.game.statusm.butoninfo.somil._alpha = 0;
_root.game.statusm.butoninfo.somiluni._alpha = 0;
_root.game.statusm.butoninfo.somildeci._alpha = 0;
_root.game.statusm.butoninfo.sommil._alpha = 0;
} else if ((((((xuni == 0) && (xdeci == 0)) && (xmil == 0)) && (xmiluni == 0)) && (xmildeci == 0)) && (xmmil == 0)) {
_root.game.statusm.butoninfo.souni._alpha = 100;
_root.game.statusm.butoninfo.sodeci._alpha = 0;
_root.game.statusm.butoninfo.somil._alpha = 0;
_root.game.statusm.butoninfo.somiluni._alpha = 0;
_root.game.statusm.butoninfo.somildeci._alpha = 0;
_root.game.statusm.butoninfo.sommil._alpha = 0;
}
atsdeci = Math.floor(selectc.atk / 10);
atsuni = Math.floor(selectc.atk - (atsdeci * 10));
_root.game.statusm.butoninfo.auni.gotoAndStop(atsuni + 1);
_root.game.statusm.butoninfo.adeci.gotoAndStop(atsdeci + 1);
if (atsdeci > 0) {
_root.game.statusm.butoninfo.auni._alpha = 100;
_root.game.statusm.butoninfo.adeci._alpha = 100;
} else if (atsuni > 0) {
_root.game.statusm.butoninfo.auni._alpha = 100;
_root.game.statusm.butoninfo.adeci._alpha = 0;
} else if ((atsuni == 0) && (atsdeci == 0)) {
_root.game.statusm.butoninfo.auni._alpha = 100;
_root.game.statusm.butoninfo.adeci._alpha = 0;
}
riseat = selectc.atk + 1;
aatsdeci = Math.floor(riseat / 10);
aatsuni = Math.floor(riseat - (aatsdeci * 10));
_root.game.statusm.butoninfo.aduni.gotoAndStop(aatsuni + 1);
_root.game.statusm.butoninfo.addeci.gotoAndStop(aatsdeci + 1);
if (aatsdeci > 0) {
_root.game.statusm.butoninfo.aduni._alpha = 100;
_root.game.statusm.butoninfo.addeci._alpha = 100;
} else if (aatsuni > 0) {
_root.game.statusm.butoninfo.aduni._alpha = 100;
_root.game.statusm.butoninfo.addeci._alpha = 0;
} else if ((aatsuni == 0) && (aatsdeci == 0)) {
_root.game.statusm.butoninfo.aduni._alpha = 100;
_root.game.statusm.butoninfo.addeci._alpha = 0;
}
break;
}
if (firstca >= 2) {
firstca = 0;
break;
}
r++;
}
}
_root.game.statusm.upgradebuton.onRollOver = function () {
_root.game.statusm.upgradebuton.gotoAndStop(2);
};
_root.game.statusm.upgradebuton.onRollOut = function () {
_root.game.statusm.upgradebuton.gotoAndStop(1);
};
_root.game.statusm.upgradebuton.onPress = function () {
r = 0;
while (r < creaturelist.length) {
selectc = _root.game[creaturelist[r]];
if (((selectc.selectcs == 1) && (selectc.lv < 3)) && (selectc.xp == selectc.nextlv)) {
if ((selectc.typec == 1) && (selectc.lv == 1)) {
selectc.gotoAndStop(5);
selectc.nextlv = 100;
selectc.xp = 0;
skulll2 = skulll2 + 1;
_root.aparicions.gotoAndPlay(2);
}
if ((selectc.typec == 1) && (selectc.lv == 2)) {
selectc.nextlv = 300;
selectc.gotoAndStop(8);
selectc.xp = 0;
skulll3 = skulll3 + 1;
_root.aparicions.gotoAndPlay(2);
}
if ((selectc.typec == 2) && (selectc.lv == 1)) {
selectc.nextlv = 300;
selectc.xp = 0;
selectc.gotoAndStop(5);
selectc.atk = selectc.atk + 1;
plantl2 = plantl2 + 1;
_root.aparicions.gotoAndPlay(2);
}
if ((selectc.typec == 2) && (selectc.lv == 2)) {
selectc.gotoAndStop(8);
selectc.xp = 0;
selectc.atk = selectc.atk + 1;
plantl3 = plantl3 + 1;
_root.aparicions.gotoAndPlay(2);
}
if ((selectc.typec == 3) && (selectc.lv == 1)) {
selectc.nextlv = 800;
selectc.xp = 0;
selectc.gotoAndStop(4);
selectc.atk = selectc.atk + 1;
slimel2 = slimel2 + 1;
_root.aparicions.gotoAndPlay(2);
}
if ((selectc.typec == 3) && (selectc.lv == 2)) {
selectc.nextlv = 2000;
selectc.gotoAndStop(6);
selectc.xp = 0;
slimel3 = slimel3 + 1;
_root.aparicions.gotoAndPlay(2);
}
if ((selectc.typec == 4) && (selectc.lv == 1)) {
selectc.nextlv = 25;
selectc.gotoAndStop(7);
selectc.xp = 0;
selectc.atk = selectc.atk + 2;
demonl2 = demonl2 + 1;
_root.aparicions.gotoAndPlay(2);
}
if ((selectc.typec == 4) && (selectc.lv == 2)) {
selectc.nextlv = 25;
selectc.gotoAndStop(12);
selectc.xp = 0;
selectc.atk = selectc.atk + 2;
demonl3 = demonl3 + 1;
_root.aparicions.gotoAndPlay(2);
}
if ((selectc.typec == 5) && (selectc.lv == 1)) {
selectc.nextlv = 100;
selectc.gotoAndStop(4);
selectc.atk = selectc.atk + 1;
selectc.xp = 0;
hivel2 = hivel2 + 1;
_root.aparicions.gotoAndPlay(2);
}
if ((selectc.typec == 5) && (selectc.lv == 2)) {
selectc.nextlv = 200;
selectc.gotoAndStop(6);
selectc.atk = selectc.atk + 1;
selectc.xp = 0;
hivel3 = hivel3 + 1;
_root.aparicions.gotoAndPlay(2);
}
if ((selectc.typec == 6) && (selectc.lv == 1)) {
selectc.nextlv = 100;
selectc.gotoAndStop(4);
selectc.atk = selectc.atk + 2;
bonusbones = bonusbones + 2;
selectc.xp = 0;
corpel2 = corpel2 + 1;
_root.aparicions.gotoAndPlay(2);
}
if ((selectc.typec == 6) && (selectc.lv == 2)) {
selectc.nextlv = 200;
selectc.gotoAndStop(6);
selectc.atk = selectc.atk + 2;
bonusbones = bonusbones + 2;
selectc.xp = 0;
corpel3 = corpel3 + 1;
_root.aparicions.gotoAndPlay(2);
}
if ((selectc.typec == 7) && (selectc.lv == 1)) {
selectc.gotoAndStop(5);
selectc.atk = selectc.atk + 1;
selectc.xp = 0;
mudmanl2 = mudmanl2 + 1;
_root.aparicions.gotoAndPlay(2);
}
if ((selectc.typec == 7) && (selectc.lv == 2)) {
selectc.gotoAndStop(8);
selectc.atk = selectc.atk + 1;
selectc.xp = 0;
mudmanl3 = mudmanl3 + 1;
_root.aparicions.gotoAndPlay(2);
}
if ((selectc.typec == 8) && (selectc.lv == 1)) {
selectc.nextlv = 150;
selectc.gotoAndStop(5);
selectc.atk = selectc.atk + 1;
selectc.xp = 0;
dragonl2 = dragonl2 + 1;
_root.aparicions.gotoAndPlay(2);
}
if ((selectc.typec == 8) && (selectc.lv == 2)) {
selectc.nextlv = 300;
selectc.atk = selectc.atk + 1;
selectc.xp = 0;
}
_root.game.statusm.butoninfo.gotoAndStop(1);
_root.game.statusm.gotoAndStop(1);
selectc.lv = selectc.lv + 1;
break;
}
if (((selectc.selectcs == 1) && (selectc.lv == 3)) && (selectc.xp == selectc.nextlv)) {
_root.game.statusm.butoninfo.gotoAndStop(1);
_root.game.statusm.gotoAndStop(1);
selectc.xp = 0;
selectc.atk = selectc.atk + 1;
break;
}
r++;
}
};
if (Key.isDown(71)) {
r = 0;
while (r < creaturelist.length) {
selectc = _root.game[creaturelist[r]];
if (((selectc.selectcs == 1) && (selectc.lv < 3)) && (selectc.xp == selectc.nextlv)) {
if ((selectc.typec == 1) && (selectc.lv == 1)) {
selectc.gotoAndStop(5);
selectc.nextlv = 100;
selectc.xp = 0;
skulll2 = skulll2 + 1;
_root.aparicions.gotoAndPlay(2);
}
if ((selectc.typec == 1) && (selectc.lv == 2)) {
selectc.nextlv = 300;
selectc.gotoAndStop(8);
selectc.xp = 0;
skulll3 = skulll3 + 1;
_root.aparicions.gotoAndPlay(2);
}
if ((selectc.typec == 2) && (selectc.lv == 1)) {
selectc.nextlv = 300;
selectc.xp = 0;
selectc.gotoAndStop(5);
selectc.atk = selectc.atk + 1;
plantl2 = plantl2 + 1;
_root.aparicions.gotoAndPlay(2);
}
if ((selectc.typec == 2) && (selectc.lv == 2)) {
selectc.gotoAndStop(8);
selectc.xp = 0;
selectc.atk = selectc.atk + 1;
plantl3 = plantl3 + 1;
_root.aparicions.gotoAndPlay(2);
}
if ((selectc.typec == 3) && (selectc.lv == 1)) {
selectc.nextlv = 800;
selectc.xp = 0;
selectc.gotoAndStop(4);
selectc.atk = selectc.atk + 1;
slimel2 = slimel2 + 1;
_root.aparicions.gotoAndPlay(2);
}
if ((selectc.typec == 3) && (selectc.lv == 2)) {
selectc.nextlv = 2000;
selectc.gotoAndStop(6);
selectc.xp = 0;
slimel3 = slimel3 + 1;
_root.aparicions.gotoAndPlay(2);
}
if ((selectc.typec == 4) && (selectc.lv == 1)) {
selectc.nextlv = 25;
selectc.gotoAndStop(7);
selectc.xp = 0;
selectc.atk = selectc.atk + 2;
demonl2 = demonl2 + 1;
_root.aparicions.gotoAndPlay(2);
}
if ((selectc.typec == 4) && (selectc.lv == 2)) {
selectc.nextlv = 25;
selectc.gotoAndStop(12);
selectc.xp = 0;
selectc.atk = selectc.atk + 2;
demonl3 = demonl3 + 1;
_root.aparicions.gotoAndPlay(2);
}
if ((selectc.typec == 5) && (selectc.lv == 1)) {
selectc.nextlv = 100;
selectc.gotoAndStop(4);
selectc.atk = selectc.atk + 1;
selectc.xp = 0;
hivel2 = hivel2 + 1;
_root.aparicions.gotoAndPlay(2);
}
if ((selectc.typec == 5) && (selectc.lv == 2)) {
selectc.nextlv = 200;
selectc.gotoAndStop(6);
selectc.atk = selectc.atk + 1;
selectc.xp = 0;
hivel3 = hivel3 + 1;
_root.aparicions.gotoAndPlay(2);
}
if ((selectc.typec == 6) && (selectc.lv == 1)) {
selectc.nextlv = 100;
selectc.gotoAndStop(4);
selectc.atk = selectc.atk + 2;
bonusbones = bonusbones + 2;
selectc.xp = 0;
corpel2 = corpel2 + 1;
_root.aparicions.gotoAndPlay(2);
}
if ((selectc.typec == 6) && (selectc.lv == 2)) {
selectc.nextlv = 200;
selectc.gotoAndStop(6);
selectc.atk = selectc.atk + 2;
bonusbones = bonusbones + 2;
selectc.xp = 0;
corpel3 = corpel3 + 1;
_root.aparicions.gotoAndPlay(2);
}
if ((selectc.typec == 7) && (selectc.lv == 1)) {
selectc.gotoAndStop(5);
selectc.atk = selectc.atk + 1;
selectc.xp = 0;
mudmanl2 = mudmanl2 + 1;
_root.aparicions.gotoAndPlay(2);
}
if ((selectc.typec == 7) && (selectc.lv == 2)) {
selectc.gotoAndStop(8);
selectc.atk = selectc.atk + 1;
selectc.xp = 0;
mudmanl3 = mudmanl3 + 1;
_root.aparicions.gotoAndPlay(2);
}
if ((selectc.typec == 8) && (selectc.lv == 1)) {
selectc.nextlv = 150;
selectc.gotoAndStop(5);
selectc.atk = selectc.atk + 1;
selectc.xp = 0;
dragonl2 = dragonl2 + 1;
_root.aparicions.gotoAndPlay(2);
}
if ((selectc.typec == 8) && (selectc.lv == 2)) {
selectc.nextlv = 300;
selectc.atk = selectc.atk + 1;
selectc.xp = 0;
}
_root.game.statusm.butoninfo.gotoAndStop(1);
_root.game.statusm.gotoAndStop(1);
selectc.lv = selectc.lv + 1;
break;
}
if (((selectc.selectcs == 1) && (selectc.lv == 3)) && (selectc.xp == selectc.nextlv)) {
_root.game.statusm.butoninfo.gotoAndStop(1);
_root.game.statusm.gotoAndStop(1);
selectc.xp = 0;
selectc.atk = selectc.atk + 1;
break;
}
r++;
}
}
}
function soldiersgo() {
if (wavedeath == true) {
keysecondss++;
if (keysecondss >= 12) {
keysecondss = 0;
nextwavec = nextwavec - 1;
}
if (nextwavec <= 0) {
keysecondss = 0;
bulletlist = [];
soldierlist = [];
bloodlist = [];
if (soldierwave <= soldierbox.length) {
_root.beginws.gotoAndPlay(2);
}
wavedeath = false;
}
}
if (_root.game.victorys.times._currentframe == 60) {
_root.cortinag.play();
_root.game.victorys.times.gotoAndStop(61);
}
if (_root.game.gameovers.times._currentframe == 60) {
_root.cortinag.play();
_root.game.gameovers.times.gotoAndStop(61);
}
if (((wavedeath == false) && (victory == false)) && (gameover == false)) {
keysecondss++;
if ((keysecondss >= 16) && (soldierbox[soldierwave - 1][numsoldier] != 0)) {
if (soldierbox[soldierwave - 1][numsoldier] == 1) {
_root.game.castlec.attachMovie("soldieraclip", "soldier" + deeps, deeps, {_x:88, _y:417, exist:1, types:1, money:10, dir:0, hp:10, hpt:10, speed:3, lev:1, slow:0, acid:0, stopu:0, froze:0, blow:0, special:0, killhim:0, mdeath:0});
_root.game.castlec["soldier" + deeps].gotoAndStop(2);
soldierlist.push("soldier" + deeps);
deeps--;
numsoldier++;
}
if (soldierbox[soldierwave - 1][numsoldier] == 2) {
_root.game.castlec.attachMovie("soldierb", "soldier" + deeps, deeps, {_x:88, _y:417, exist:1, types:2, money:10, dir:0, hp:30, hpt:30, speed:5, lev:1, slow:0, acid:0, stopu:0, froze:0, blow:0, special:0, killhim:0, mdeath:0});
_root.game.castlec["soldier" + deeps].gotoAndStop(2);
soldierlist.push("soldier" + deeps);
deeps--;
numsoldier++;
}
if (soldierbox[soldierwave - 1][numsoldier] == 3) {
_root.game.castlec.attachMovie("soldierc", "soldier" + deeps, deeps, {_x:88, _y:417, exist:1, types:3, money:10, dir:0, hp:100, hpt:100, speed:2, lev:1, slow:0, acid:0, stopu:0, froze:0, blow:0, special:0, killhim:0, mdeath:0});
_root.game.castlec["soldier" + deeps].gotoAndStop(2);
soldierlist.push("soldier" + deeps);
deeps--;
numsoldier++;
}
if (soldierbox[soldierwave - 1][numsoldier] == 4) {
_root.game.castlec.attachMovie("soldierd", "soldier" + deeps, deeps, {_x:88, _y:417, exist:1, types:4, money:10, dir:0, hp:50, hpt:50, speed:2, lev:1, slow:0, acid:0, stopu:0, froze:0, blow:0, special:0, killhim:0, mdeath:0});
_root.game.castlec["soldier" + deeps].gotoAndStop(2);
soldierlist.push("soldier" + deeps);
deeps--;
numsoldier++;
}
if (soldierbox[soldierwave - 1][numsoldier] == 5) {
_root.game.castlec.attachMovie("soldiere", "soldier" + deeps, deeps, {_x:88, _y:417, exist:1, types:5, money:20, dir:0, hp:80, hpt:80, speed:1, lev:1, slow:0, acid:0, stopu:0, froze:0, blow:0, special:0, killhim:0, mdeath:0});
_root.game.castlec["soldier" + deeps].gotoAndStop(2);
soldierlist.push("soldier" + deeps);
deeps--;
numsoldier++;
}
if (soldierbox[soldierwave - 1][numsoldier] == 6) {
_root.game.castlec.attachMovie("soldierf", "soldier" + deeps, deeps, {_x:88, _y:417, exist:1, types:6, money:20, dir:0, hp:40, hpt:40, speed:3, lev:1, slow:0, acid:0, stopu:0, froze:0, blow:0, special:0, killhim:0, mdeath:0});
_root.game.castlec["soldier" + deeps].gotoAndStop(2);
soldierlist.push("soldier" + deeps);
deeps--;
numsoldier++;
}
if (soldierbox[soldierwave - 1][numsoldier] == 7) {
_root.game.castlec.attachMovie("soldierg", "soldier" + deeps, deeps, {_x:88, _y:417, exist:1, types:7, money:20, dir:0, hp:60, hpt:60, speed:3, lev:1, slow:0, acid:0, stopu:0, froze:0, blow:0, special:0, killhim:0, hike:2, mdeath:0});
_root.game.castlec["soldier" + deeps].gotoAndStop(2);
soldierlist.push("soldier" + deeps);
deeps--;
numsoldier++;
}
if (soldierbox[soldierwave - 1][numsoldier] == 8) {
_root.game.castlec.attachMovie("soldierh", "soldier" + deeps, deeps, {_x:88, _y:417, exist:1, types:8, money:20, dir:0, hp:50, hpt:50, speed:3, lev:1, slow:0, acid:0, stopu:0, froze:0, blow:0, special:0, killhim:0, mdeath:0});
_root.game.castlec["soldier" + deeps].gotoAndStop(2);
soldierlist.push("soldier" + deeps);
deeps--;
numsoldier++;
}
if (soldierbox[soldierwave - 1][numsoldier] == 9) {
_root.game.castlec.attachMovie("soldieri", "soldier" + deeps, deeps, {_x:88, _y:417, exist:1, types:9, money:100, dir:0, hp:500, hpt:500, speed:1, lev:1, slow:0, acid:0, stopu:0, froze:0, blow:0, special:0, killhim:0, mdeath:0});
_root.game.castlec["soldier" + deeps].gotoAndStop(2);
soldierlist.push("soldier" + deeps);
deeps--;
numsoldier++;
}
if (soldierbox[soldierwave - 1][numsoldier] == 10) {
_root.game.castlec.attachMovie("soldierj", "soldier" + deeps, deeps, {_x:88, _y:417, exist:1, types:10, money:100, dir:0, hp:100, hpt:100, speed:7, lev:1, slow:0, acid:0, stopu:0, froze:0, blow:0, special:0, killhim:0, mdeath:0});
_root.game.castlec["soldier" + deeps].gotoAndStop(2);
soldierlist.push("soldier" + deeps);
deeps--;
numsoldier++;
}
if (soldierbox[soldierwave - 1][numsoldier] == 11) {
_root.game.castlec.attachMovie("soldieraclip", "soldier" + deeps, deeps, {_x:88, _y:417, exist:1, types:1, money:10, dir:0, hp:30, hpt:30, speed:3, lev:1, slow:0, acid:0, stopu:0, froze:0, blow:0, special:0, killhim:0, mdeath:0});
_root.game.castlec["soldier" + deeps].gotoAndStop(2);
soldierlist.push("soldier" + deeps);
deeps--;
numsoldier++;
}
if (soldierbox[soldierwave - 1][numsoldier] == 12) {
_root.game.castlec.attachMovie("soldierb", "soldier" + deeps, deeps, {_x:88, _y:417, exist:1, types:2, money:10, dir:0, hp:90, hpt:90, speed:5, lev:1, slow:0, acid:0, stopu:0, froze:0, blow:0, special:0, killhim:0, mdeath:0});
_root.game.castlec["soldier" + deeps].gotoAndStop(2);
soldierlist.push("soldier" + deeps);
deeps--;
numsoldier++;
}
if (soldierbox[soldierwave - 1][numsoldier] == 13) {
_root.game.castlec.attachMovie("soldierc", "soldier" + deeps, deeps, {_x:88, _y:417, exist:1, types:3, money:10, dir:0, hp:200, hpt:200, speed:2, lev:1, slow:0, acid:0, stopu:0, froze:0, blow:0, special:0, killhim:0, mdeath:0});
_root.game.castlec["soldier" + deeps].gotoAndStop(2);
soldierlist.push("soldier" + deeps);
deeps--;
numsoldier++;
}
if (soldierbox[soldierwave - 1][numsoldier] == 14) {
_root.game.castlec.attachMovie("soldierd", "soldier" + deeps, deeps, {_x:88, _y:417, exist:1, types:4, money:10, dir:0, hp:150, hpt:150, speed:2, lev:1, slow:0, acid:0, stopu:0, froze:0, blow:0, special:0, killhim:0, mdeath:0});
_root.game.castlec["soldier" + deeps].gotoAndStop(2);
soldierlist.push("soldier" + deeps);
deeps--;
numsoldier++;
}
if (soldierbox[soldierwave - 1][numsoldier] == 15) {
_root.game.castlec.attachMovie("soldiere", "soldier" + deeps, deeps, {_x:88, _y:417, exist:1, types:5, money:20, dir:0, hp:180, hpt:180, speed:1, lev:1, slow:0, acid:0, stopu:0, froze:0, blow:0, special:0, killhim:0, mdeath:0});
_root.game.castlec["soldier" + deeps].gotoAndStop(2);
soldierlist.push("soldier" + deeps);
deeps--;
numsoldier++;
}
if (soldierbox[soldierwave - 1][numsoldier] == 16) {
_root.game.castlec.attachMovie("soldierf", "soldier" + deeps, deeps, {_x:88, _y:417, exist:1, types:6, money:20, dir:0, hp:90, hpt:90, speed:3, lev:1, slow:0, acid:0, stopu:0, froze:0, blow:0, special:0, killhim:0, mdeath:0});
_root.game.castlec["soldier" + deeps].gotoAndStop(2);
soldierlist.push("soldier" + deeps);
deeps--;
numsoldier++;
}
if (soldierbox[soldierwave - 1][numsoldier] == 17) {
_root.game.castlec.attachMovie("soldierg", "soldier" + deeps, deeps, {_x:88, _y:417, exist:1, types:7, money:20, dir:0, hp:150, hpt:150, speed:3, lev:1, slow:0, acid:0, stopu:0, froze:0, blow:0, special:0, killhim:0, hike:2, mdeath:0});
_root.game.castlec["soldier" + deeps].gotoAndStop(2);
soldierlist.push("soldier" + deeps);
deeps--;
numsoldier++;
}
if (soldierbox[soldierwave - 1][numsoldier] == 18) {
_root.game.castlec.attachMovie("soldierh", "soldier" + deeps, deeps, {_x:88, _y:417, exist:1, types:8, money:20, dir:0, hp:100, hpt:100, speed:3, lev:1, slow:0, acid:0, stopu:0, froze:0, blow:0, special:0, killhim:0, mdeath:0});
_root.game.castlec["soldier" + deeps].gotoAndStop(2);
soldierlist.push("soldier" + deeps);
deeps--;
numsoldier++;
}
if (soldierbox[soldierwave - 1][numsoldier] == 19) {
_root.game.castlec.attachMovie("soldieri", "soldier" + deeps, deeps, {_x:88, _y:417, exist:1, types:9, money:100, dir:0, hp:1000, hpt:1000, speed:1, lev:1, slow:0, acid:0, stopu:0, froze:0, blow:0, special:0, killhim:0, mdeath:0});
_root.game.castlec["soldier" + deeps].gotoAndStop(2);
soldierlist.push("soldier" + deeps);
deeps--;
numsoldier++;
}
if (soldierbox[soldierwave - 1][numsoldier] == 20) {
_root.game.castlec.attachMovie("soldierj", "soldier" + deeps, deeps, {_x:88, _y:417, exist:1, types:10, money:100, dir:0, hp:300, hpt:300, speed:7, lev:1, slow:0, acid:0, stopu:0, froze:0, blow:0, special:0, killhim:0, mdeath:0});
_root.game.castlec["soldier" + deeps].gotoAndStop(2);
soldierlist.push("soldier" + deeps);
deeps--;
numsoldier++;
}
if (soldierbox[soldierwave - 1][numsoldier] == 21) {
_root.game.castlec.attachMovie("soldieraclip", "soldier" + deeps, deeps, {_x:88, _y:417, exist:1, types:1, money:10, dir:0, hp:60, hpt:60, speed:3, lev:1, slow:0, acid:0, stopu:0, froze:0, blow:0, special:0, killhim:0, mdeath:0});
_root.game.castlec["soldier" + deeps].gotoAndStop(2);
soldierlist.push("soldier" + deeps);
deeps--;
numsoldier++;
}
if (soldierbox[soldierwave - 1][numsoldier] == 22) {
_root.game.castlec.attachMovie("soldierb", "soldier" + deeps, deeps, {_x:88, _y:417, exist:1, types:2, money:10, dir:0, hp:180, hpt:180, speed:5, lev:1, slow:0, acid:0, stopu:0, froze:0, blow:0, special:0, killhim:0, mdeath:0});
_root.game.castlec["soldier" + deeps].gotoAndStop(2);
soldierlist.push("soldier" + deeps);
deeps--;
numsoldier++;
}
if (soldierbox[soldierwave - 1][numsoldier] == 23) {
_root.game.castlec.attachMovie("soldierc", "soldier" + deeps, deeps, {_x:88, _y:417, exist:1, types:3, money:10, dir:0, hp:400, hpt:400, speed:2, lev:1, slow:0, acid:0, stopu:0, froze:0, blow:0, special:0, killhim:0, mdeath:0});
_root.game.castlec["soldier" + deeps].gotoAndStop(2);
soldierlist.push("soldier" + deeps);
deeps--;
numsoldier++;
}
if (soldierbox[soldierwave - 1][numsoldier] == 24) {
_root.game.castlec.attachMovie("soldierd", "soldier" + deeps, deeps, {_x:88, _y:417, exist:1, types:4, money:10, dir:0, hp:300, hpt:300, speed:2, lev:1, slow:0, acid:0, stopu:0, froze:0, blow:0, special:0, killhim:0, mdeath:0});
_root.game.castlec["soldier" + deeps].gotoAndStop(2);
soldierlist.push("soldier" + deeps);
deeps--;
numsoldier++;
}
if (soldierbox[soldierwave - 1][numsoldier] == 25) {
_root.game.castlec.attachMovie("soldiere", "soldier" + deeps, deeps, {_x:88, _y:417, exist:1, types:5, money:20, dir:0, hp:300, hpt:300, speed:1, lev:1, slow:0, acid:0, stopu:0, froze:0, blow:0, special:0, killhim:0, mdeath:0});
_root.game.castlec["soldier" + deeps].gotoAndStop(2);
soldierlist.push("soldier" + deeps);
deeps--;
numsoldier++;
}
if (soldierbox[soldierwave - 1][numsoldier] == 26) {
_root.game.castlec.attachMovie("soldierf", "soldier" + deeps, deeps, {_x:88, _y:417, exist:1, types:6, money:20, dir:0, hp:180, hpt:180, speed:3, lev:1, slow:0, acid:0, stopu:0, froze:0, blow:0, special:0, killhim:0, mdeath:0});
_root.game.castlec["soldier" + deeps].gotoAndStop(2);
soldierlist.push("soldier" + deeps);
deeps--;
numsoldier++;
}
if (soldierbox[soldierwave - 1][numsoldier] == 27) {
_root.game.castlec.attachMovie("soldierg", "soldier" + deeps, deeps, {_x:88, _y:417, exist:1, types:7, money:20, dir:0, hp:300, hpt:300, speed:3, lev:1, slow:0, acid:0, stopu:0, froze:0, blow:0, special:0, killhim:0, hike:2, mdeath:0});
_root.game.castlec["soldier" + deeps].gotoAndStop(2);
soldierlist.push("soldier" + deeps);
deeps--;
numsoldier++;
}
if (soldierbox[soldierwave - 1][numsoldier] == 28) {
_root.game.castlec.attachMovie("soldierh", "soldier" + deeps, deeps, {_x:88, _y:417, exist:1, types:8, money:20, dir:0, hp:200, hpt:200, speed:3, lev:1, slow:0, acid:0, stopu:0, froze:0, blow:0, special:0, killhim:0, mdeath:0});
_root.game.castlec["soldier" + deeps].gotoAndStop(2);
soldierlist.push("soldier" + deeps);
deeps--;
numsoldier++;
}
if (soldierbox[soldierwave - 1][numsoldier] == 29) {
_root.game.castlec.attachMovie("soldieri", "soldier" + deeps, deeps, {_x:88, _y:417, exist:1, types:9, money:100, dir:0, hp:2000, hpt:2000, speed:2, lev:1, slow:0, acid:0, stopu:0, froze:0, blow:0, special:0, killhim:0, mdeath:0});
_root.game.castlec["soldier" + deeps].gotoAndStop(2);
soldierlist.push("soldier" + deeps);
deeps--;
numsoldier++;
}
if (soldierbox[soldierwave - 1][numsoldier] == 30) {
_root.game.castlec.attachMovie("soldierj", "soldier" + deeps, deeps, {_x:88, _y:417, exist:1, types:10, money:100, dir:0, hp:600, hpt:600, speed:7, lev:1, slow:0, acid:0, stopu:0, froze:0, blow:0, special:0, killhim:0, mdeath:0});
_root.game.castlec["soldier" + deeps].gotoAndStop(2);
soldierlist.push("soldier" + deeps);
deeps--;
numsoldier++;
}
keysecondss = 0;
}
if ((((soldierbox[soldierwave - 1][numsoldier] == 0) && (soldierlist.length == 0)) && (gameover == false)) && (victory == false)) {
wavedeath = true;
numsoldier = 0;
soldierwave = soldierwave + 1;
if (((soldierwave > soldierbox.length) && (gameover == false)) && (hpqueen >= 1)) {
victory = true;
soldierwave = soldierbox.length;
_root.game.victorys.gotoAndStop(2);
}
if (victory == false) {
nextwavec = 30;
}
}
s = 0;
while (s < soldierlist.length) {
selects = _root.game.castlec[soldierlist[s]];
qx = selects._x - _root.game.queen._x;
qy = selects._y - _root.game.queen._y;
distalxq = Math.sqrt(qx * qx);
distalyq = Math.sqrt(qy * qy);
if ((((((distalxq < 35) && (distalyq < 30)) && (selects._x > _root.game.queen._x)) && (hpqueen >= 1)) && (_root.game.queen._currentframe != 4)) || (((((distalxq < 35) && (distalyq < 30)) && (selects._x > _root.game.queen._x)) && (hpqueen >= 1)) && (_root.game.queen._currentframe != 5))) {
selects.special = 1;
selects.gotoAndStop(5);
_root.game.queen.gotoAndStop(2);
}
if ((((distalxq < 35) && (distalyq < 30)) && (selects._x > _root.game.queen._x)) && (_root.game.queen.eat._currentframe == 9)) {
_root.game.castlec.attachMovie("bloodred", "splash" + deepr, deepr, {_x:selects._x, _y:selects._y - 12.5});
_root.game.castlec["splash" + deepr].gotoAndStop(2);
bloodlist.push("splash" + deepr);
deepr++;
hpqueen = hpqueen - 1;
selects.exist = 0;
selects.removeMovieClip();
soldierlist.splice(s, 1);
_root.hdeath.gotoAndPlay(2);
}
if (hpqueen == 4) {
_root.game.flag1._alpha = 100;
_root.game.flag2._alpha = 100;
_root.game.flag3._alpha = 100;
_root.game.flag4._alpha = 100;
} else if (hpqueen == 3) {
_root.game.flag1._alpha = 0;
_root.game.flag2._alpha = 100;
_root.game.flag3._alpha = 100;
_root.game.flag4._alpha = 100;
} else if (hpqueen == 2) {
_root.game.flag1._alpha = 0;
_root.game.flag2._alpha = 0;
_root.game.flag3._alpha = 100;
_root.game.flag4._alpha = 100;
} else if (hpqueen == 1) {
_root.game.flag1._alpha = 0;
_root.game.flag2._alpha = 0;
_root.game.flag3._alpha = 0;
_root.game.flag4._alpha = 100;
} else if (hpqueen == 0) {
_root.game.flag1._alpha = 0;
_root.game.flag2._alpha = 0;
_root.game.flag3._alpha = 0;
_root.game.flag4._alpha = 0;
}
selects.hpbase.hpbar._xscale = (selects.hp * 100) / selects.hpt;
if ((((((((((selects.types == 1) || (selects.types == 2)) || (selects.types == 3)) || (selects.types == 4)) || (selects.types == 5)) || (selects.types == 6)) || (selects.types == 7)) || (selects.types == 8)) || (selects.types == 9)) || (selects.types == 10)) {
if ((((selects.froze == 1) && (selects.types != 7)) && (selects.special != 1)) || (((selects.froze == 1) && (selects.types == 7)) && (selects.special != 1))) {
selects.gotoAndStop(10);
if (selects.cold._currentframe == 60) {
selects.froze = 0;
}
}
if ((selects.types == 4) && (selects.special == 1)) {
if (selects.attack._currentframe == 41) {
selects.special = 0;
selects.killhim = 1;
selects.gotoAndStop(3);
}
}
if ((selects.types == 5) && (selects.special == 1)) {
if (selects.attack._currentframe == 3) {
selects.killhim = 1;
}
}
if ((selects.types == 6) && (selects.hp < selects.hpt)) {
selects.hp = selects.hp + 0.2;
}
selects.froze = 0;
if (((((((selects.types == 7) && (selects.hike == 2)) && (selects.hp < (selects.hpt / 2))) && (selects.special == 0)) && (selects._currentframe == 3)) && (selects.froze == 0)) && (selects.lev != 4)) {
selects.special = 1;
selects.hike = 1;
selects.gotoAndStop(6);
}
if (((((((selects.types == 7) && (selects.attack._currentframe == 5)) && (selects.special == 1)) && (selects.hike == 1)) && (selects.froze == 0)) || (((((selects.types == 7) && (selects.attack._currentframe == 6)) && (selects.special == 1)) && (selects.hike == 1)) && (selects.froze == 0))) || (((((selects.types == 7) && (selects.attack._currentframe == 10)) && (selects.special == 1)) && (selects.hike == 1)) && (selects.froze == 0))) {
selects._y = selects._y - 5;
}
if ((((((selects.types == 7) && (selects.attack._currentframe >= 11)) && (selects.attack._currentframe <= 20)) && (selects.special == 1)) && (selects.hike == 1)) && (selects.froze == 0)) {
selects._y = selects._y - 6;
}
if (((((selects.types == 7) && (selects.attack._currentframe == 24)) && (selects.dir == 0)) && (selects.hike == 1)) && (selects.froze == 0)) {
selects.gotoAndStop(3);
selects.special = 0;
selects._xscale = -100;
selects.hpbase._xscale = -100;
selects.dir = 1;
selects.lev = selects.lev + 1;
selects.hike = 0;
}
if ((((selects.types == 7) && (selects.attack._currentframe == 24)) && (selects.dir == 1)) && (selects.hike == 1)) {
selects.gotoAndStop(3);
selects.special = 0;
selects._xscale = 100;
selects.hpbase._xscale = 100;
selects.dir = 0;
selects.lev = selects.lev + 1;
selects.hike = 0;
}
if ((selects.types == 8) && (selects.special == 1)) {
if (selects.attack._currentframe == 13) {
selects.killhim = 1;
}
if (selects.attack._currentframe == 18) {
selects.special = 0;
selects.gotoAndStop(3);
}
}
if ((selects._x < 75) && (selects.dir == 1)) {
selects._xscale = 100;
selects.hpbase._xscale = 100;
selects.dir = 0;
}
if ((selects._x > 395) && (selects.dir == 0)) {
selects._xscale = -100;
selects.hpbase._xscale = -100;
selects.dir = 1;
}
if ((((selects.dir == 0) && (selects._currentframe == 3)) || ((selects.dir == 0) && (selects._currentframe == 5))) || ((selects.dir == 0) && (selects._currentframe == 6))) {
r = 0;
while (r < creaturelist.length) {
soldierbc = _root.game[creaturelist[r]];
dx = selects._x - soldierbc._x;
dy = selects._y - soldierbc._y;
distalx = Math.sqrt(dx * dx);
distaly = Math.sqrt(dy * dy);
if (soldierbc.typec == 3) {
if (((soldierbc.lv == 1) && (distalx < 15)) && (distaly < 30)) {
selects.slow = soldierbc.atk;
}
if (((soldierbc.lv == 2) && (distalx < 25)) && (distaly < 30)) {
selects.slow = soldierbc.atk;
}
if (((soldierbc.lv == 3) && (distalx < 25)) && (distaly < 30)) {
selects.slow = soldierbc.atk;
selects.acid = 1;
}
}
if (soldierbc.typec == 4) {
if ((((soldierbc.lv == 1) && (distalx < 35)) && (distaly < 30)) && (soldierbc.stopu == 1)) {
selects.stopu = 1;
}
if ((((soldierbc.lv == 2) && (distalx < 35)) && (distaly < 30)) && (soldierbc.stopu == 1)) {
selects.stopu = 1;
}
if ((((soldierbc.lv == 3) && (distalx < 35)) && (distaly < 30)) && (soldierbc.stopu == 1)) {
selects.stopu = 1;
}
}
if ((((((((selects.types == 4) && (distalx < 25)) && (distaly < 30)) && (selects._x < soldierbc._x)) && (selects.special == 0)) && (soldierbc.typec != 3)) && (soldierbc.obj == 0)) && (selects.froze == 0)) {
selects.special = 1;
soldierbc.obj = 1;
soldierbc.objtar = selects._name;
selects.gotoAndStop(6);
}
if (((((selects.types == 4) && (distalx < 25)) && (distaly < 30)) && (selects.killhim == 1)) && (selects._x < soldierbc._x)) {
selects.killhim = 0;
_root.game.sellblood._x = soldierbc._x;
_root.game.sellblood._y = soldierbc._y - 15.5;
_root.game.sellblood.gotoAndPlay(2);
if (soldierbc.typec == 6) {
bonusbones = bonusbones - soldierbc.atk;
}
_root.game.castlec[soldierbc.espaciou].free = 0;
soldierbc.removeMovieClip();
creaturelist.splice(r, 1);
_root.cdeath.gotoAndPlay(2);
break;
}
if (((((((selects.types == 5) && (distalx < 10)) && (distaly < 30)) && (selects._x < soldierbc._x)) && (selects.special == 0)) && (soldierbc.obj == 0)) && (selects.froze == 0)) {
selects.special = 1;
soldierbc.obj = 1;
soldierbc.objtar = selects._name;
selects.gotoAndStop(6);
_root.kamis.gotoAndPlay(2);
}
if (((((selects.types == 5) && (distalx < 10)) && (distaly < 30)) && (selects.killhim == 1)) && (selects._x < soldierbc._x)) {
selects.killhim = 0;
_root.game.sellblood._x = soldierbc._x;
_root.game.sellblood._y = soldierbc._y - 15.5;
_root.game.sellblood.gotoAndPlay(2);
if (soldierbc.typec == 6) {
bonusbones = bonusbones - soldierbc.atk;
}
_root.game.castlec[soldierbc.espaciou].free = 0;
soldierbc.removeMovieClip();
creaturelist.splice(r, 1);
_root.cdeath.gotoAndPlay(2);
break;
}
if (((((((selects.types == 8) && (distalx < 25)) && (distaly < 30)) && (selects._x < soldierbc._x)) && (selects.special == 0)) && (soldierbc.obj == 0)) && (selects.froze == 0)) {
selects.special = 1;
soldierbc.obj = 1;
soldierbc.objtar = selects._name;
selects.gotoAndStop(6);
}
if (((((selects.types == 8) && (distalx < 25)) && (distaly < 30)) && (selects.killhim == 1)) && (selects._x < soldierbc._x)) {
selects.killhim = 0;
soldierbc.frozen = 1;
}
r++;
}
if (selects.special == 0) {
if ((selects.blow == 1) && (selects.types != 9)) {
selects._x = selects._x - 10;
selects.blow = 0;
}
if (selects.slow > 0) {
speedtotal = selects.speed - selects.slow;
selects.slow = 0;
if (selects.acid == 1) {
selects.hp = selects.hp - 0.1;
selects.acid = 0;
}
if (speedtotal <= 0) {
speedtotal = 1;
}
selects._x = selects._x + speedtotal;
selects.gotoAndStop(3);
} else if (selects.stopu == 1) {
selects.gotoAndStop(5);
selects.stopu = 0;
} else {
selects._x = selects._x + selects.speed;
selects.gotoAndStop(3);
}
}
}
if ((((selects.dir == 1) && (selects._currentframe == 3)) || ((selects.dir == 1) && (selects._currentframe == 5))) || ((selects.dir == 1) && (selects._currentframe == 6))) {
r = 0;
while (r < creaturelist.length) {
soldierbc = _root.game[creaturelist[r]];
dx = selects._x - soldierbc._x;
dy = selects._y - soldierbc._y;
distalx = Math.sqrt(dx * dx);
distaly = Math.sqrt(dy * dy);
if (soldierbc.typec == 3) {
if (((soldierbc.lv == 1) && (distalx < 15)) && (distaly < 30)) {
selects.slow = soldierbc.atk;
}
if (((soldierbc.lv == 2) && (distalx < 25)) && (distaly < 30)) {
selects.slow = soldierbc.atk;
}
if (((soldierbc.lv == 3) && (distalx < 25)) && (distaly < 30)) {
selects.slow = soldierbc.atk;
selects.acid = 1;
}
}
if (soldierbc.typec == 4) {
if ((((soldierbc.lv == 1) && (distalx < 30)) && (distaly < 30)) && (soldierbc.stopu == 1)) {
selects.stopu = 1;
}
if ((((soldierbc.lv == 2) && (distalx < 30)) && (distaly < 30)) && (soldierbc.stopu == 1)) {
selects.stopu = 1;
}
if ((((soldierbc.lv == 3) && (distalx < 30)) && (distaly < 30)) && (soldierbc.stopu == 1)) {
selects.stopu = 1;
}
}
if ((((((((selects.types == 4) && (distalx < 25)) && (distaly < 30)) && (selects._x > soldierbc._x)) && (selects.special == 0)) && (soldierbc.typec != 3)) && (soldierbc.obj == 0)) && (selects.froze == 0)) {
selects.special = 1;
soldierbc.obj = 1;
soldierbc.objtar = selects._name;
selects.gotoAndStop(6);
}
if (((((selects.types == 4) && (distalx < 25)) && (distaly < 30)) && (selects.killhim == 1)) && (selects._x > soldierbc._x)) {
selects.killhim = 0;
_root.game.sellblood._x = soldierbc._x;
_root.game.sellblood._y = soldierbc._y - 15.5;
_root.game.sellblood.gotoAndPlay(2);
if (soldierbc.typec == 6) {
bonusbones = bonusbones - soldierbc.atk;
}
_root.game.castlec[soldierbc.espaciou].free = 0;
soldierbc.removeMovieClip();
creaturelist.splice(r, 1);
_root.cdeath.gotoAndPlay(2);
}
if (((((((selects.types == 5) && (distalx < 10)) && (distaly < 30)) && (selects._x > soldierbc._x)) && (selects.special == 0)) && (soldierbc.obj == 0)) && (selects.froze == 0)) {
selects.special = 1;
soldierbc.obj = 1;
soldierbc.objtar = selects._name;
selects.gotoAndStop(6);
_root.kamis.gotoAndPlay(2);
}
if (((((selects.types == 5) && (distalx < 10)) && (distaly < 30)) && (selects.killhim == 1)) && (selects._x > soldierbc._x)) {
selects.killhim = 0;
_root.game.sellblood._x = soldierbc._x;
_root.game.sellblood._y = soldierbc._y - 15.5;
_root.game.sellblood.gotoAndPlay(2);
if (soldierbc.typec == 6) {
bonusbones = bonusbones - soldierbc.atk;
}
_root.game.castlec[soldierbc.espaciou].free = 0;
soldierbc.removeMovieClip();
creaturelist.splice(r, 1);
_root.cdeath.gotoAndPlay(2);
break;
}
if (((((((selects.types == 8) && (distalx < 25)) && (distaly < 30)) && (selects._x > soldierbc._x)) && (selects.special == 0)) && (soldierbc.obj == 0)) && (selects.froze == 0)) {
selects.special = 1;
soldierbc.obj = 1;
soldierbc.objtar = selects._name;
selects.gotoAndStop(6);
}
if (((((selects.types == 8) && (distalx < 25)) && (distaly < 30)) && (selects.killhim == 1)) && (selects._x > soldierbc._x)) {
selects.killhim = 0;
soldierbc.frozen = 1;
}
r++;
}
if (selects.special == 0) {
if ((selects.blow == 1) && (selects.types != 9)) {
selects._x = selects._x + 10;
selects.blow = 0;
}
if (selects.slow > 0) {
speedtotal = selects.speed - selects.slow;
selects.slow = 0;
if (selects.acid == 1) {
selects.hp = selects.hp - 0.1;
selects.acid = 0;
}
if (speedtotal <= 0) {
speedtotal = 1;
}
selects._x = selects._x - speedtotal;
selects.gotoAndStop(3);
} else if (selects.stopu == 1) {
selects.stopu = 0;
selects.gotoAndStop(5);
} else {
selects._x = selects._x - selects.speed;
selects.gotoAndStop(3);
}
}
}
if (selects.hp <= 0) {
_root.game.castlec.attachMovie("bloodred", "splash" + deepr, deepr, {_x:selects._x, _y:selects._y - 12.5});
_root.game.castlec["splash" + deepr].gotoAndStop(2);
bloodlist.push("splash" + deepr);
deepr++;
_root.hdeath.gotoAndPlay(2);
if (selects.mdeath == 0) {
boneshave = boneshave + (selects.money + bonusbones);
}
if (selects.types == 1) {
soldiere = soldiere + 1;
}
if (selects.types == 2) {
runnere = runnere + 1;
}
if (selects.types == 3) {
defendere = defendere + 1;
}
if (selects.types == 4) {
warriore = warriore + 1;
}
if (selects.types == 5) {
kamikazee = kamikazee + 1;
}
if (selects.types == 6) {
prieste = prieste + 1;
}
if (selects.types == 7) {
hikere = hikere + 1;
}
if (selects.types == 8) {
magee = magee + 1;
}
if (selects.types == 9) {
titane = titane + 1;
}
if (selects.types == 10) {
hermese = hermese + 1;
}
selects.exist = 0;
selects.removeMovieClip();
soldierlist.splice(s, 1);
}
selects.mdeath = 0;
if ((selects.types == 5) && (selects.attack._currentframe == 10)) {
selects.exist = 0;
selects.removeMovieClip();
soldierlist.splice(s, 1);
}
if ((selects.exit._currentframe == 17) && (selects.lev == 1)) {
selects._x = _root.game.castlec.ds2._x;
selects._y = _root.game.castlec.ds2._y;
selects.gotoAndStop(2);
selects.dir = 1;
selects._xscale = -100;
selects.hpbase._xscale = -100;
selects.lev = 2;
}
if ((selects.exit._currentframe == 17) && (selects.lev == 2)) {
selects._x = _root.game.castlec.ds4._x;
selects._y = _root.game.castlec.ds4._y;
selects.gotoAndStop(2);
selects.dir = 0;
selects._xscale = 100;
selects.hpbase._xscale = 100;
selects.lev = 3;
}
if ((selects.exit._currentframe == 17) && (selects.lev == 3)) {
selects._x = _root.game.castlec.ds6._x;
selects._y = _root.game.castlec.ds6._y;
selects.gotoAndStop(2);
selects.dir = 1;
selects._xscale = -100;
selects.hpbase._xscale = -100;
selects.lev = 4;
}
}
if (((selects._x >= (_root.game.castlec.ds1._x - 5)) && (selects._x <= (_root.game.castlec.ds1._x + 5))) && (selects.lev == 1)) {
selects._x = _root.game.castlec.ds1._x;
selects.gotoAndStop(4);
}
if (((selects._x >= (_root.game.castlec.ds3._x - 5)) && (selects._x <= (_root.game.castlec.ds3._x + 5))) && (selects.lev == 2)) {
selects._x = _root.game.castlec.ds3._x;
selects.gotoAndStop(4);
}
if (((selects._x >= (_root.game.castlec.ds5._x - 5)) && (selects._x <= (_root.game.castlec.ds5._x + 5))) && (selects.lev == 3)) {
selects._x = _root.game.castlec.ds5._x;
selects.gotoAndStop(4);
}
s++;
}
}
}
function bulletmoves() {
p = 0;
while (p < bulletlist.length) {
bulls = _root.game[bulletlist[p]];
if (((bulls.types == 1) || (bulls.types == 2)) || (bulls.types == 4)) {
if (bulls.dir == 0) {
bulls._x = bulls._x - 5;
}
if (bulls.dir == 1) {
bulls._x = bulls._x + 5;
}
}
if (bulls.types == 5) {
if (bulls.dir == 0) {
bulls._x = bulls._x - 5;
}
if (bulls.dir == 1) {
bulls._x = bulls._x + 5;
}
}
if (bulls.types == 6) {
if (bulls.dir == 0) {
bulls._x = bulls._x - 10;
}
if (bulls.dir == 1) {
bulls._x = bulls._x + 10;
}
}
if (bulls.types == 3) {
targy = _root.game.castlec[bulls.targ];
if (targy.exist == 1) {
if (targy._x < bulls._x) {
bulls._x = bulls._x - 6;
bulls._xscale = 100;
}
if (targy._x > bulls._x) {
bulls._x = bulls._x + 6;
bulls._xscale = -100;
}
if (targy._y < bulls._y) {
bulls._y = bulls._y - 6;
}
if (targy._y > bulls._y) {
bulls._y = bulls._y + 6;
}
}
if (targy.exist != 1) {
bulls.removeMovieClip();
bulletlist.splice(p, 1);
break;
}
}
p++;
}
m = 0;
while (m < bulletlist.length) {
bulls = _root.game[bulletlist[m]];
if (((((bulls.types == 1) || (bulls.types == 2)) || (bulls.types == 4)) || (bulls.types == 5)) || (bulls.types == 6)) {
if ((bulls.dir == 0) && (bulls._x < 60)) {
bulls.removeMovieClip();
bulletlist.splice(m, 1);
}
if ((bulls.dir == 1) && (bulls._x > 410)) {
bulls.removeMovieClip();
bulletlist.splice(m, 1);
}
}
f = 0;
while (f < soldierlist.length) {
soldierbc = _root.game.castlec[soldierlist[f]];
dx = bulls._x - soldierbc._x;
dy = bulls._y - soldierbc._y;
distalx = Math.sqrt(dx * dx);
distaly = Math.sqrt(dy * dy);
if (bulls.types == 1) {
if (((distalx < 10) && (distaly < 30)) && (bulls.exist == 1)) {
soldierbc.hp = soldierbc.hp - bulls.dmg;
bulls.exist = 0;
bulls.removeMovieClip();
bulletlist.splice(m, 1);
break;
}
}
if (bulls.types == 2) {
if ((distalx < 5) && (distaly < 30)) {
soldierbc.hp = soldierbc.hp - bulls.dmg;
}
}
if (bulls.types == 3) {
if (((distalx < 10) && (distaly < 10)) && (bulls.exist == 1)) {
soldierbc.hp = soldierbc.hp - bulls.dmg;
bulls.exist = 0;
bulls.removeMovieClip();
bulletlist.splice(m, 1);
break;
}
}
if (bulls.types == 4) {
if ((((((distalx < 10) && (distaly < 30)) && (bulls.exist == 1)) && (soldierbc._currentframe == 3)) || ((((distalx < 10) && (distaly < 30)) && (bulls.exist == 1)) && (soldierbc._currentframe == 10))) || ((((distalx < 10) && (distaly < 30)) && (bulls.exist == 1)) && (soldierbc._currentframe == 5))) {
soldierbc.hp = soldierbc.hp - bulls.dmg;
if ((soldierbc.dir == 0) && (soldierbc.types != 9)) {
soldierbc._x = soldierbc._x - 5;
}
if ((soldierbc.dir == 1) && (soldierbc.types != 9)) {
soldierbc._x = soldierbc._x + 5;
}
bulls.exist = 0;
bulls.removeMovieClip();
bulletlist.splice(m, 1);
break;
}
}
if (bulls.types == 5) {
if ((((((distalx < 20) && (distaly < 30)) && (bulls.exist == 1)) && (soldierbc._currentframe == 3)) || ((((distalx < 20) && (distaly < 30)) && (bulls.exist == 1)) && (soldierbc._currentframe == 10))) || ((((distalx < 20) && (distaly < 30)) && (bulls.exist == 1)) && (soldierbc._currentframe == 5))) {
if (bulls.roko._currentframe == 1) {
soldierbc.hp = soldierbc.hp - bulls.dmg;
if ((soldierbc.dir == 0) && (soldierbc.types != 9)) {
soldierbc._x = soldierbc._x - 5;
}
if ((soldierbc.dir == 1) && (soldierbc.types != 9)) {
soldierbc._x = soldierbc._x + 5;
}
}
}
}
if (bulls.types == 6) {
if ((((((distalx < 10) && (distaly < 30)) && (bulls.exist == 1)) && (soldierbc._currentframe == 3)) || ((((distalx < 10) && (distaly < 30)) && (bulls.exist == 1)) && (soldierbc._currentframe == 10))) || ((((distalx < 10) && (distaly < 30)) && (bulls.exist == 1)) && (soldierbc._currentframe == 5))) {
soldierbc.hp = soldierbc.hp - bulls.dmg;
if ((soldierbc.dir == 0) && (soldierbc.types != 9)) {
soldierbc._x = soldierbc._x - 2;
}
if ((soldierbc.dir == 1) && (soldierbc.types != 9)) {
soldierbc._x = soldierbc._x + 2;
}
}
}
f++;
}
m++;
}
}
function monstermove() {
r = 0;
while (r < creaturelist.length) {
selectc = _root.game[creaturelist[r]];
if (selectc.xp > selectc.nextlv) {
selectc.xp = selectc.nextlv;
}
if (selectc.xp >= selectc.nextlv) {
selectc.star.gotoAndStop(2);
}
if (selectc.xp < selectc.nextlv) {
selectc.star.gotoAndStop(1);
}
if (selectc.frozen == 1) {
if (selectc.typec == 1) {
if (selectc.lv == 1) {
selectc.gotoAndStop(20);
if (selectc.cold._currentframe == 61) {
selectc.frozen = 0;
selectc.objtar = 0;
selectc.obj = 0;
selectc.gotoAndStop(3);
}
}
if (selectc.lv == 2) {
selectc.gotoAndStop(21);
if (selectc.cold._currentframe == 61) {
selectc.frozen = 0;
selectc.objtar = 0;
selectc.obj = 0;
selectc.gotoAndStop(6);
}
}
if (selectc.lv == 3) {
selectc.gotoAndStop(22);
if (selectc.cold._currentframe == 61) {
selectc.frozen = 0;
selectc.objtar = 0;
selectc.obj = 0;
selectc.gotoAndStop(9);
}
}
}
if (selectc.typec == 2) {
if (selectc.lv == 1) {
selectc.gotoAndStop(20);
if (selectc.cold._currentframe == 61) {
selectc.frozen = 0;
selectc.objtar = 0;
selectc.obj = 0;
selectc.gotoAndStop(3);
}
}
if (selectc.lv == 2) {
selectc.gotoAndStop(21);
if (selectc.cold._currentframe == 61) {
selectc.frozen = 0;
selectc.objtar = 0;
selectc.obj = 0;
selectc.gotoAndStop(6);
}
}
if (selectc.lv == 3) {
selectc.gotoAndStop(22);
if (selectc.cold._currentframe == 61) {
selectc.frozen = 0;
selectc.objtar = 0;
selectc.obj = 0;
selectc.gotoAndStop(9);
}
}
}
if (selectc.typec == 3) {
if (selectc.lv == 1) {
selectc.gotoAndStop(20);
if (selectc.cold._currentframe == 61) {
selectc.frozen = 0;
selectc.objtar = 0;
selectc.obj = 0;
selectc.gotoAndStop(3);
}
}
if (selectc.lv == 2) {
selectc.gotoAndStop(21);
if (selectc.cold._currentframe == 61) {
selectc.frozen = 0;
selectc.objtar = 0;
selectc.obj = 0;
selectc.gotoAndStop(5);
}
}
if (selectc.lv == 3) {
selectc.gotoAndStop(22);
if (selectc.cold._currentframe == 61) {
selectc.frozen = 0;
selectc.objtar = 0;
selectc.obj = 0;
selectc.gotoAndStop(7);
}
}
}
if (selectc.typec == 4) {
if (selectc.lv == 1) {
selectc.gotoAndStop(20);
if (selectc.cold._currentframe == 61) {
selectc.frozen = 0;
selectc.objtar = 0;
selectc.obj = 0;
selectc.gotoAndStop(3);
}
}
if (selectc.lv == 2) {
selectc.gotoAndStop(21);
if (selectc.cold._currentframe == 61) {
selectc.frozen = 0;
selectc.objtar = 0;
selectc.obj = 0;
selectc.gotoAndStop(8);
}
}
if (selectc.lv == 3) {
selectc.gotoAndStop(22);
if (selectc.cold._currentframe == 61) {
selectc.frozen = 0;
selectc.objtar = 0;
selectc.obj = 0;
selectc.gotoAndStop(13);
}
}
}
if (selectc.typec == 5) {
if (selectc.lv == 1) {
selectc.gotoAndStop(20);
if (selectc.cold._currentframe == 61) {
selectc.frozen = 0;
selectc.objtar = 0;
selectc.obj = 0;
selectc.gotoAndStop(3);
}
}
if (selectc.lv == 2) {
selectc.gotoAndStop(21);
if (selectc.cold._currentframe == 61) {
selectc.frozen = 0;
selectc.objtar = 0;
selectc.obj = 0;
selectc.gotoAndStop(5);
}
}
if (selectc.lv == 3) {
selectc.gotoAndStop(22);
if (selectc.cold._currentframe == 61) {
selectc.frozen = 0;
selectc.objtar = 0;
selectc.obj = 0;
selectc.gotoAndStop(7);
}
}
}
if (selectc.typec == 6) {
if (selectc.lv == 1) {
selectc.gotoAndStop(20);
if (selectc.cold._currentframe == 61) {
selectc.frozen = 0;
selectc.objtar = 0;
selectc.obj = 0;
selectc.gotoAndStop(3);
}
}
if (selectc.lv == 2) {
selectc.gotoAndStop(21);
if (selectc.cold._currentframe == 61) {
selectc.frozen = 0;
selectc.objtar = 0;
selectc.obj = 0;
selectc.gotoAndStop(5);
}
}
if (selectc.lv == 3) {
selectc.gotoAndStop(22);
if (selectc.cold._currentframe == 61) {
selectc.frozen = 0;
selectc.objtar = 0;
selectc.obj = 0;
selectc.gotoAndStop(7);
}
}
}
if (selectc.typec == 7) {
if (selectc.lv == 1) {
selectc.gotoAndStop(20);
if (selectc.cold._currentframe == 61) {
selectc.frozen = 0;
selectc.objtar = 0;
selectc.obj = 0;
selectc.gotoAndStop(3);
}
}
if (selectc.lv == 2) {
selectc.gotoAndStop(21);
if (selectc.cold._currentframe == 61) {
selectc.frozen = 0;
selectc.objtar = 0;
selectc.obj = 0;
selectc.gotoAndStop(6);
}
}
if (selectc.lv == 3) {
selectc.gotoAndStop(22);
if (selectc.cold._currentframe == 61) {
selectc.frozen = 0;
selectc.objtar = 0;
selectc.obj = 0;
selectc.gotoAndStop(9);
}
}
}
if (selectc.typec == 8) {
if (selectc.lv == 1) {
selectc.gotoAndStop(20);
if (selectc.cold._currentframe == 61) {
selectc.frozen = 0;
selectc.objtar = 0;
selectc.obj = 0;
selectc.gotoAndStop(3);
}
}
if (selectc.lv == 2) {
selectc.gotoAndStop(21);
if (selectc.cold._currentframe == 61) {
selectc.frozen = 0;
selectc.objtar = 0;
selectc.obj = 0;
selectc.gotoAndStop(6);
}
}
if (selectc.lv == 3) {
selectc.gotoAndStop(22);
if (selectc.cold._currentframe == 61) {
selectc.frozen = 0;
selectc.objtar = 0;
selectc.obj = 0;
selectc.gotoAndStop(6);
}
}
}
}
if (selectc.typec == 2) {
if (((selectc.lv == 1) && (selectc.dir == 0)) && (selectc.atktempo == 1)) {
_root.game.attachMovie("spellet", "bullet" + deepb, deepb, {_x:selectc._x - 8.5, _y:selectc._y - 11.5, exist:1, types:1, dir:selectc.dir, dmg:selectc.atk});
_root.game["bullet" + deepb].gotoAndStop(2);
bulletlist.push("bullet" + deepb);
deepb++;
selectc.atktempo = 0;
selectc.xp++;
}
if (((selectc.lv == 1) && (selectc.dir == 1)) && (selectc.atktempo == 1)) {
_root.game.attachMovie("spellet", "bullet" + deepb, deepb, {_x:selectc._x + 8.5, _y:selectc._y - 11.5, exist:1, types:1, dir:selectc.dir, dmg:selectc.atk});
_root.game["bullet" + deepb].gotoAndStop(2);
bulletlist.push("bullet" + deepb);
deepb++;
selectc.atktempo = 0;
selectc.xp++;
}
if ((((selectc.lv == 2) && (selectc.dir == 0)) && (selectc.atktempo == 2)) && (selectc.attack._currentframe == 6)) {
_root.game.attachMovie("spellet", "bullet" + deepb, deepb, {_x:selectc._x - 13.5, _y:selectc._y - 13.5, exist:1, types:1, dir:selectc.dir, dmg:selectc.atk});
_root.game["bullet" + deepb].gotoAndStop(2);
bulletlist.push("bullet" + deepb);
deepb++;
selectc.atktempo = 1;
selectc.xp++;
}
if ((((selectc.lv == 2) && (selectc.dir == 0)) && (selectc.atktempo == 1)) && (selectc.attack._currentframe == 8)) {
_root.game.attachMovie("spellet", "bullet" + deepb, deepb, {_x:selectc._x - 13.5, _y:selectc._y - 13.5, exist:1, types:1, dir:selectc.dir, dmg:selectc.atk});
_root.game["bullet" + deepb].gotoAndStop(2);
bulletlist.push("bullet" + deepb);
deepb++;
selectc.atktempo = 0;
selectc.xp++;
}
if ((((selectc.lv == 2) && (selectc.dir == 1)) && (selectc.atktempo == 2)) && (selectc.attack._currentframe == 6)) {
_root.game.attachMovie("spellet", "bullet" + deepb, deepb, {_x:selectc._x + 13.5, _y:selectc._y - 13.5, exist:1, types:1, dir:selectc.dir, dmg:selectc.atk});
_root.game["bullet" + deepb].gotoAndStop(2);
bulletlist.push("bullet" + deepb);
deepb++;
selectc.atktempo = 1;
selectc.xp++;
}
if ((((selectc.lv == 2) && (selectc.dir == 1)) && (selectc.atktempo == 1)) && (selectc.attack._currentframe == 8)) {
_root.game.attachMovie("spellet", "bullet" + deepb, deepb, {_x:selectc._x + 13.5, _y:selectc._y - 13.5, exist:1, types:1, dir:selectc.dir, dmg:selectc.atk});
_root.game["bullet" + deepb].gotoAndStop(2);
bulletlist.push("bullet" + deepb);
deepb++;
selectc.atktempo = 0;
selectc.xp++;
}
if (((selectc.lv == 3) && (selectc.dir == 0)) && (selectc.atktempo == 1)) {
_root.game.attachMovie("bigpellet", "bullet" + deepb, deepb, {_x:selectc._x - 12, _y:selectc._y - 16, exist:1, types:2, dir:selectc.dir, dmg:selectc.atk});
_root.game["bullet" + deepb].gotoAndStop(2);
bulletlist.push("bullet" + deepb);
deepb++;
selectc.atktempo = 0;
selectc.xp++;
}
if (((selectc.lv == 3) && (selectc.dir == 1)) && (selectc.atktempo == 1)) {
_root.game.attachMovie("bigpellet", "bullet" + deepb, deepb, {_x:selectc._x + 12, _y:selectc._y - 16, exist:1, types:2, dir:selectc.dir, dmg:selectc.atk});
_root.game["bullet" + deepb].gotoAndStop(2);
bulletlist.push("bullet" + deepb);
deepb++;
selectc.atktempo = 0;
selectc.xp++;
}
}
if (selectc.typec == 3) {
if (selectc.atktempo == 1) {
selectc.atktempo = 0;
selectc.xp++;
}
}
if (selectc.typec == 4) {
if (selectc.frozen == 0) {
if (selectc.stopu == 1) {
selectc.atktempo = selectc.atktempo - 1;
if (selectc.atktempo <= 0) {
selectc.stopu = 0;
selectc.atktempo = 48;
if (selectc.lv == 1) {
selectc.gotoAndStop(6);
_root.aparicions.gotoAndPlay(2);
}
if (selectc.lv == 2) {
selectc.gotoAndStop(11);
_root.aparicions.gotoAndPlay(2);
}
if (selectc.lv == 3) {
selectc.gotoAndStop(16);
_root.aparicions.gotoAndPlay(2);
}
selectc.calm = 1;
}
}
if (selectc.calm == 1) {
selectc.atktempo = selectc.atktempo - 1;
if (selectc.atktempo <= 0) {
selectc.atktempo = 0;
selectc.calm = 0;
selectc.xp++;
}
}
}
if (selectc.frozen == 1) {
selectc.atktempo = 0;
selectc.calm = 0;
selectc.stopu = 0;
}
}
if (selectc.typec == 5) {
if ((selectc.lv == 1) && (selectc.calm == 36)) {
selectc.calm = selectc.calm - 1;
_root.game.attachMovie("kbee", "bullet" + deepb, deepb, {_x:selectc._x - 8, _y:selectc._y - 11, exist:1, types:3, dmg:selectc.atk, targ:selectc.targ});
_root.game["bullet" + deepb].gotoAndStop(2);
bulletlist.push("bullet" + deepb);
deepb++;
selectc.xp++;
selectc.targ = 0;
_root.hivesound.gotoAndPlay(2);
}
if ((selectc.lv == 2) && (selectc.calm == 24)) {
selectc.calm = selectc.calm - 1;
_root.game.attachMovie("kbee", "bullet" + deepb, deepb, {_x:selectc._x - 8, _y:selectc._y - 11, exist:1, types:3, dmg:selectc.atk, targ:selectc.targ});
_root.game["bullet" + deepb].gotoAndStop(2);
bulletlist.push("bullet" + deepb);
deepb++;
selectc.xp++;
selectc.targ = 0;
_root.hivesound.gotoAndPlay(2);
}
if ((selectc.lv == 3) && (selectc.calm == 12)) {
selectc.calm = selectc.calm - 1;
_root.game.attachMovie("kbee", "bullet" + deepb, deepb, {_x:selectc._x - 8, _y:selectc._y - 11, exist:1, types:3, dmg:selectc.atk, targ:selectc.targ});
_root.game["bullet" + deepb].gotoAndStop(2);
bulletlist.push("bullet" + deepb);
deepb++;
selectc.xp++;
selectc.targ = 0;
_root.hivesound.gotoAndPlay(2);
}
if (selectc.calm > 0) {
selectc.calm = selectc.calm - 1;
}
if (selectc.calm < 0) {
selectc.calm = 0;
}
}
if (selectc.typec == 6) {
if (selectc.produce == 0) {
selectc.produce = 120;
selectc.xp++;
}
selectc.produce = selectc.produce - 1;
}
if (selectc.typec == 7) {
if (((selectc.lv == 1) && (selectc.dir == 0)) && (selectc.atktempo == 1)) {
_root.game.attachMovie("mudball", "bullet" + deepb, deepb, {_x:selectc._x - 12, _y:selectc._y - 11, exist:1, types:4, dir:selectc.dir, dmg:selectc.atk});
_root.game["bullet" + deepb].gotoAndStop(2);
bulletlist.push("bullet" + deepb);
deepb++;
selectc.atktempo = 0;
selectc.xp++;
}
if (((selectc.lv == 1) && (selectc.dir == 1)) && (selectc.atktempo == 1)) {
_root.game.attachMovie("mudball", "bullet" + deepb, deepb, {_x:selectc._x + 12, _y:selectc._y - 11, exist:1, types:4, dir:selectc.dir, dmg:selectc.atk});
_root.game["bullet" + deepb].gotoAndStop(2);
_root.game["bullet" + deepb]._xscale = -100;
bulletlist.push("bullet" + deepb);
deepb++;
selectc.atktempo = 0;
selectc.xp++;
}
if (((selectc.lv == 2) && (selectc.dir == 0)) && (selectc.atktempo == 1)) {
_root.game.attachMovie("rockbullet", "bullet" + deepb, deepb, {_x:selectc._x - 16, _y:selectc._y - 7.5, exist:1, types:5, dir:selectc.dir, dmg:selectc.atk});
_root.game["bullet" + deepb].gotoAndStop(2);
bulletlist.push("bullet" + deepb);
deepb++;
selectc.atktempo = 0;
selectc.xp++;
}
if (((selectc.lv == 2) && (selectc.dir == 1)) && (selectc.atktempo == 1)) {
_root.game.attachMovie("rockbullet", "bullet" + deepb, deepb, {_x:selectc._x + 16, _y:selectc._y - 7.5, exist:1, types:5, dir:selectc.dir, dmg:selectc.atk});
_root.game["bullet" + deepb].gotoAndStop(2);
_root.game["bullet" + deepb]._xscale = -100;
bulletlist.push("bullet" + deepb);
deepb++;
selectc.atktempo = 0;
selectc.xp++;
}
if (((selectc.lv == 3) && (selectc.dir == 0)) && (selectc.atktempo == 1)) {
_root.game.attachMovie("ironball", "bullet" + deepb, deepb, {_x:selectc._x - 12, _y:selectc._y - 11.5, exist:1, types:6, dir:selectc.dir, dmg:selectc.atk});
_root.game["bullet" + deepb].gotoAndStop(2);
bulletlist.push("bullet" + deepb);
deepb++;
selectc.atktempo = 0;
selectc.xp++;
}
if (((selectc.lv == 3) && (selectc.dir == 1)) && (selectc.atktempo == 1)) {
_root.game.attachMovie("ironball", "bullet" + deepb, deepb, {_x:selectc._x + 12, _y:selectc._y - 11.5, exist:1, types:6, dir:selectc.dir, dmg:selectc.atk});
_root.game["bullet" + deepb].gotoAndStop(2);
_root.game["bullet" + deepb]._xscale = -100;
bulletlist.push("bullet" + deepb);
deepb++;
selectc.atktempo = 0;
selectc.xp++;
}
}
t = 0;
while (t < soldierlist.length) {
soldierbc = _root.game.castlec[soldierlist[t]];
dx = selectc._x - soldierbc._x;
dy = selectc._y - soldierbc._y;
distalx = Math.sqrt(dx * dx);
distaly = Math.sqrt(dy * dy);
attackcheck = _root.game.castlec[selectc.objtar];
if (attackcheck.exist != 1) {
if (selectc.frozen == 0) {
selectc.objtar = 0;
selectc.obj = 0;
}
}
if (selectc.frozen == 0) {
if (((((selectc.typec == 1) && (selectc.lv == 1)) && (selectc.attack._currentframe == 4)) || (((selectc.typec == 1) && (selectc.lv == 2)) && (selectc.attack._currentframe == 4))) || (((selectc.typec == 1) && (selectc.lv == 3)) && (selectc.attack._currentframe == 4))) {
_root.skullsound.gotoAndPlay(2);
}
if (((((selectc.typec == 1) && (selectc._currentframe != 1)) || ((selectc.typec == 1) && (selectc._currentframe != 2))) || ((selectc.typec == 1) && (selectc._currentframe != 5))) || ((selectc.typec == 1) && (selectc._currentframe != 8))) {
if (((((selectc.lv == 1) && (distalx < 20)) && (distaly < 30)) && (selectc.dir == 0)) && (soldierbc._x < selectc._x)) {
selectc.gotoAndStop(4);
}
if (((((selectc.lv == 1) && (distalx < 20)) && (distaly < 30)) && (selectc.dir == 1)) && (soldierbc._x > selectc._x)) {
selectc.gotoAndStop(4);
}
if ((((((selectc.lv == 1) && (distalx < 20)) && (distaly < 30)) && (selectc.dir == 0)) && (soldierbc._x < selectc._x)) && (selectc.attack._currentframe == 4)) {
selectc.gotoAndStop(4);
soldierbc.hp = soldierbc.hp - selectc.atk;
selectc.xp++;
}
if ((((((selectc.lv == 1) && (distalx < 20)) && (distaly < 30)) && (selectc.dir == 1)) && (soldierbc._x > selectc._x)) && (selectc.attack._currentframe == 4)) {
selectc.gotoAndStop(4);
soldierbc.hp = soldierbc.hp - selectc.atk;
selectc.xp++;
}
if (((((selectc.lv == 2) && (distalx < 20)) && (distaly < 30)) && (selectc.dir == 0)) && (soldierbc._x < selectc._x)) {
selectc._xscale = 100;
selectc.gotoAndStop(7);
}
if (((((selectc.lv == 2) && (distalx < 20)) && (distaly < 30)) && (selectc.dir == 0)) && (soldierbc._x > selectc._x)) {
selectc._xscale = -100;
selectc.gotoAndStop(7);
}
if (((((selectc.lv == 2) && (distalx < 20)) && (distaly < 30)) && (selectc.dir == 1)) && (soldierbc._x > selectc._x)) {
selectc._xscale = -100;
selectc.gotoAndStop(7);
}
if (((((selectc.lv == 2) && (distalx < 20)) && (distaly < 30)) && (selectc.dir == 1)) && (soldierbc._x < selectc._x)) {
selectc._xscale = 100;
selectc.gotoAndStop(7);
}
if ((((((selectc.lv == 2) && (distalx < 20)) && (distaly < 30)) && (selectc.dir == 0)) && (soldierbc._x < selectc._x)) && (selectc.attack._currentframe == 4)) {
selectc.gotoAndStop(7);
soldierbc.hp = soldierbc.hp - selectc.atk;
selectc.xp++;
}
if ((((((selectc.lv == 2) && (distalx < 20)) && (distaly < 30)) && (selectc.dir == 0)) && (soldierbc._x > selectc._x)) && (selectc.attack._currentframe == 4)) {
selectc.gotoAndStop(7);
soldierbc.hp = soldierbc.hp - selectc.atk;
selectc.xp++;
}
if ((((((selectc.lv == 2) && (distalx < 20)) && (distaly < 30)) && (selectc.dir == 1)) && (soldierbc._x > selectc._x)) && (selectc.attack._currentframe == 4)) {
selectc.gotoAndStop(7);
soldierbc.hp = soldierbc.hp - selectc.atk;
selectc.xp++;
}
if ((((((selectc.lv == 2) && (distalx < 20)) && (distaly < 30)) && (selectc.dir == 1)) && (soldierbc._x < selectc._x)) && (selectc.attack._currentframe == 4)) {
selectc.gotoAndStop(7);
soldierbc.hp = soldierbc.hp - selectc.atk;
selectc.xp++;
}
if (((((selectc.lv == 3) && (distalx < 40)) && (distaly < 30)) && (selectc.dir == 0)) && (soldierbc._x < selectc._x)) {
selectc._xscale = 100;
selectc.gotoAndStop(10);
}
if (((((selectc.lv == 3) && (distalx < 40)) && (distaly < 30)) && (selectc.dir == 0)) && (soldierbc._x > selectc._x)) {
selectc._xscale = -100;
selectc.gotoAndStop(10);
}
if (((((selectc.lv == 3) && (distalx < 40)) && (distaly < 30)) && (selectc.dir == 1)) && (soldierbc._x > selectc._x)) {
selectc._xscale = -100;
selectc.gotoAndStop(10);
}
if (((((selectc.lv == 3) && (distalx < 40)) && (distaly < 30)) && (selectc.dir == 1)) && (soldierbc._x < selectc._x)) {
selectc._xscale = 100;
selectc.gotoAndStop(10);
}
if ((((((selectc.lv == 3) && (distalx < 40)) && (distaly < 30)) && (selectc.dir == 0)) && (soldierbc._x < selectc._x)) && (selectc.attack._currentframe == 4)) {
selectc.gotoAndStop(10);
soldierbc.hp = soldierbc.hp - selectc.atk;
selectc.xp++;
}
if ((((((selectc.lv == 3) && (distalx < 40)) && (distaly < 30)) && (selectc.dir == 0)) && (soldierbc._x > selectc._x)) && (selectc.attack._currentframe == 4)) {
selectc.gotoAndStop(10);
soldierbc.hp = soldierbc.hp - selectc.atk;
selectc.xp++;
}
if ((((((selectc.lv == 3) && (distalx < 40)) && (distaly < 30)) && (selectc.dir == 1)) && (soldierbc._x > selectc._x)) && (selectc.attack._currentframe == 4)) {
selectc.gotoAndStop(10);
soldierbc.hp = soldierbc.hp - selectc.atk;
selectc.xp++;
}
if ((((((selectc.lv == 3) && (distalx < 40)) && (distaly < 30)) && (selectc.dir == 1)) && (soldierbc._x < selectc._x)) && (selectc.attack._currentframe == 4)) {
selectc.gotoAndStop(10);
soldierbc.hp = soldierbc.hp - selectc.atk;
selectc.xp++;
}
}
if (((((selectc.typec == 2) && (selectc.lv == 1)) && (selectc.attack._currentframe == 6)) || (((selectc.typec == 2) && (selectc.lv == 2)) && (selectc.attack._currentframe == 6))) || (((selectc.typec == 2) && (selectc.lv == 3)) && (selectc.attack._currentframe == 6))) {
_root.plantsound.gotoAndPlay(2);
}
if (((((selectc.typec == 2) && (selectc._currentframe != 1)) || ((selectc.typec == 2) && (selectc._currentframe != 2))) || ((selectc.typec == 2) && (selectc._currentframe != 5))) || ((selectc.typec == 2) && (selectc._currentframe != 8))) {
if (((((selectc.lv == 1) && (distalx < 200)) && (distaly < 30)) && (selectc.dir == 0)) && (soldierbc._x < selectc._x)) {
selectc.gotoAndStop(4);
}
if (((((selectc.lv == 1) && (distalx < 200)) && (distaly < 30)) && (selectc.dir == 1)) && (soldierbc._x > selectc._x)) {
selectc.gotoAndStop(4);
}
if ((((((selectc.lv == 1) && (distalx < 200)) && (distaly < 30)) && (selectc.dir == 0)) && (soldierbc._x < selectc._x)) && (selectc.attack._currentframe == 6)) {
selectc.gotoAndStop(4);
selectc.atktempo = 1;
}
if ((((((selectc.lv == 1) && (distalx < 200)) && (distaly < 30)) && (selectc.dir == 1)) && (soldierbc._x > selectc._x)) && (selectc.attack._currentframe == 6)) {
selectc.gotoAndStop(4);
selectc.atktempo = 1;
}
if (((((selectc.lv == 2) && (distalx < 200)) && (distaly < 30)) && (selectc.dir == 0)) && (soldierbc._x < selectc._x)) {
selectc.gotoAndStop(7);
}
if (((((selectc.lv == 2) && (distalx < 200)) && (distaly < 30)) && (selectc.dir == 1)) && (soldierbc._x > selectc._x)) {
selectc.gotoAndStop(7);
}
if ((((((selectc.lv == 2) && (distalx < 200)) && (distaly < 30)) && (selectc.dir == 0)) && (soldierbc._x < selectc._x)) && (selectc.attack._currentframe == 5)) {
selectc.gotoAndStop(7);
selectc.atktempo = 2;
}
if ((((((selectc.lv == 2) && (distalx < 200)) && (distaly < 30)) && (selectc.dir == 1)) && (soldierbc._x > selectc._x)) && (selectc.attack._currentframe == 5)) {
selectc.gotoAndStop(7);
selectc.atktempo = 2;
}
if (((((selectc.lv == 3) && (distalx < 100)) && (distaly < 30)) && (selectc.dir == 0)) && (soldierbc._x < selectc._x)) {
selectc.gotoAndStop(10);
}
if (((((selectc.lv == 3) && (distalx < 100)) && (distaly < 30)) && (selectc.dir == 1)) && (soldierbc._x > selectc._x)) {
selectc.gotoAndStop(10);
}
if ((((((selectc.lv == 3) && (distalx < 100)) && (distaly < 30)) && (selectc.dir == 0)) && (soldierbc._x < selectc._x)) && (selectc.attack._currentframe == 5)) {
selectc.gotoAndStop(10);
selectc.atktempo = 1;
}
if ((((((selectc.lv == 3) && (distalx < 100)) && (distaly < 30)) && (selectc.dir == 1)) && (soldierbc._x > selectc._x)) && (selectc.attack._currentframe == 5)) {
selectc.gotoAndStop(10);
selectc.atktempo = 1;
}
}
if (selectc.typec == 3) {
if (((selectc.lv == 1) && (distalx < 15)) && (distaly < 30)) {
selectc.atktempo = 1;
}
if ((((selectc.lv == 2) && (distalx < 25)) && (distaly < 30)) || (((selectc.lv == 3) && (distalx < 25)) && (distaly < 30))) {
selectc.atktempo = 1;
}
}
if (((((selectc.typec == 4) && (selectc._currentframe != 1)) || ((selectc.typec == 4) && (selectc._currentframe != 2))) || ((selectc.typec == 4) && (selectc._currentframe != 7))) || ((selectc.typec == 4) && (selectc._currentframe != 12))) {
if (((((((selectc.lv == 1) && (distalx < 30)) && (distaly < 30)) && (selectc.dir == 0)) && (soldierbc._x < selectc._x)) && (selectc.stopu == 0)) && (selectc.calm == 0)) {
selectc.gotoAndStop(4);
_root.aparicions.gotoAndPlay(2);
selectc.atktempo = selectc.atk * 12;
selectc.stopu = 1;
}
if (((((((selectc.lv == 1) && (distalx < 30)) && (distaly < 30)) && (selectc.dir == 1)) && (soldierbc._x > selectc._x)) && (selectc.stopu == 0)) && (selectc.calm == 0)) {
selectc.gotoAndStop(4);
_root.aparicions.gotoAndPlay(2);
selectc.atktempo = selectc.atk * 12;
selectc.stopu = 1;
}
if (((((((selectc.lv == 2) && (distalx < 30)) && (distaly < 30)) && (selectc.dir == 0)) && (soldierbc._x < selectc._x)) && (selectc.stopu == 0)) && (selectc.calm == 0)) {
selectc.gotoAndStop(9);
_root.aparicions.gotoAndPlay(2);
selectc.atktempo = selectc.atk * 12;
selectc.stopu = 1;
}
if (((((((selectc.lv == 2) && (distalx < 30)) && (distaly < 30)) && (selectc.dir == 1)) && (soldierbc._x > selectc._x)) && (selectc.stopu == 0)) && (selectc.calm == 0)) {
selectc.gotoAndStop(9);
_root.aparicions.gotoAndPlay(2);
selectc.atktempo = selectc.atk * 12;
selectc.stopu = 1;
}
if (((((((selectc.lv == 3) && (distalx < 30)) && (distaly < 30)) && (selectc.dir == 0)) && (soldierbc._x < selectc._x)) && (selectc.stopu == 0)) && (selectc.calm == 0)) {
selectc.gotoAndStop(14);
_root.aparicions.gotoAndPlay(2);
selectc.atktempo = selectc.atk * 12;
selectc.stopu = 1;
}
if (((((((selectc.lv == 3) && (distalx < 30)) && (distaly < 30)) && (selectc.dir == 1)) && (soldierbc._x > selectc._x)) && (selectc.stopu == 0)) && (selectc.calm == 0)) {
selectc.gotoAndStop(14);
_root.aparicions.gotoAndPlay(2);
selectc.atktempo = selectc.atk * 12;
selectc.stopu = 1;
}
}
if (((((selectc.typec == 5) && (selectc._currentframe != 1)) || ((selectc.typec == 5) && (selectc._currentframe != 2))) || ((selectc.typec == 5) && (selectc._currentframe != 4))) || ((selectc.typec == 5) && (selectc._currentframe != 6))) {
if ((((selectc.lv == 1) && (distalx < 20)) && (distaly < 100)) && (selectc.calm == 0)) {
selectc.calm = 36;
selectc.targ = soldierbc._name;
}
if ((((selectc.lv == 2) && (distalx < 30)) && (distaly < 100)) && (selectc.calm == 0)) {
selectc.calm = 24;
selectc.targ = soldierbc._name;
}
if ((((selectc.lv == 3) && (distalx < 50)) && (distaly < 100)) && (selectc.calm == 0)) {
selectc.calm = 12;
selectc.targ = soldierbc._name;
}
}
if (((((selectc.typec == 7) && (selectc.lv == 1)) && (selectc.attack._currentframe == 7)) || (((selectc.typec == 7) && (selectc.lv == 2)) && (selectc.attack._currentframe == 16))) || (((selectc.typec == 7) && (selectc.lv == 3)) && (selectc.attack._currentframe == 16))) {
_root.plantsound.gotoAndPlay(2);
}
if (((((selectc.typec == 7) && (selectc._currentframe != 1)) || ((selectc.typec == 7) && (selectc._currentframe != 2))) || ((selectc.typec == 7) && (selectc._currentframe != 5))) || ((selectc.typec == 7) && (selectc._currentframe != 8))) {
if (((((selectc.lv == 1) && (distalx < 80)) && (distaly < 30)) && (selectc.dir == 0)) && (soldierbc._x < selectc._x)) {
selectc.gotoAndStop(4);
}
if (((((selectc.lv == 1) && (distalx < 80)) && (distaly < 30)) && (selectc.dir == 1)) && (soldierbc._x > selectc._x)) {
selectc.gotoAndStop(4);
}
if ((((((selectc.lv == 1) && (distalx < 80)) && (distaly < 30)) && (selectc.dir == 0)) && (soldierbc._x < selectc._x)) && (selectc.attack._currentframe == 7)) {
selectc.gotoAndStop(4);
selectc.atktempo = 1;
}
if ((((((selectc.lv == 1) && (distalx < 80)) && (distaly < 30)) && (selectc.dir == 1)) && (soldierbc._x > selectc._x)) && (selectc.attack._currentframe == 7)) {
selectc.gotoAndStop(4);
selectc.atktempo = 1;
}
if (((((selectc.lv == 2) && (distalx < 120)) && (distaly < 30)) && (selectc.dir == 0)) && (soldierbc._x < selectc._x)) {
selectc.gotoAndStop(7);
}
if (((((selectc.lv == 2) && (distalx < 120)) && (distaly < 30)) && (selectc.dir == 1)) && (soldierbc._x > selectc._x)) {
selectc.gotoAndStop(7);
}
if ((((((selectc.lv == 2) && (distalx < 120)) && (distaly < 30)) && (selectc.dir == 0)) && (soldierbc._x < selectc._x)) && (selectc.attack._currentframe == 16)) {
selectc.gotoAndStop(7);
selectc.atktempo = 1;
}
if ((((((selectc.lv == 2) && (distalx < 120)) && (distaly < 30)) && (selectc.dir == 1)) && (soldierbc._x > selectc._x)) && (selectc.attack._currentframe == 16)) {
selectc.gotoAndStop(7);
selectc.atktempo = 1;
}
if (((((selectc.lv == 3) && (distalx < 120)) && (distaly < 30)) && (selectc.dir == 0)) && (soldierbc._x < selectc._x)) {
selectc.gotoAndStop(10);
}
if (((((selectc.lv == 3) && (distalx < 120)) && (distaly < 30)) && (selectc.dir == 1)) && (soldierbc._x > selectc._x)) {
selectc.gotoAndStop(10);
}
if ((((((selectc.lv == 3) && (distalx < 120)) && (distaly < 30)) && (selectc.dir == 0)) && (soldierbc._x < selectc._x)) && (selectc.attack._currentframe == 16)) {
selectc.gotoAndStop(10);
selectc.atktempo = 1;
}
if ((((((selectc.lv == 3) && (distalx < 120)) && (distaly < 30)) && (selectc.dir == 1)) && (soldierbc._x > selectc._x)) && (selectc.attack._currentframe == 16)) {
selectc.gotoAndStop(10);
selectc.atktempo = 1;
}
}
if (((((selectc.typec == 8) && (selectc.lv == 1)) && (selectc.attack._currentframe == 5)) || (((selectc.typec == 8) && (selectc.lv == 2)) && (selectc.attack._currentframe == 5))) || (((selectc.typec == 8) && (selectc.lv == 3)) && (selectc.attack._currentframe == 5))) {
_root.dragonsound.gotoAndPlay(2);
}
if ((((selectc.typec == 8) && (selectc._currentframe != 1)) || ((selectc.typec == 8) && (selectc._currentframe != 2))) || ((selectc.typec == 8) && (selectc._currentframe != 5))) {
if (((((selectc.lv == 1) && (distalx < 40)) && (distaly < 35)) && (selectc.dir == 0)) && (soldierbc._x < selectc._x)) {
selectc.gotoAndStop(4);
}
if (((((selectc.lv == 1) && (distalx < 40)) && (distaly < 35)) && (selectc.dir == 1)) && (soldierbc._x > selectc._x)) {
selectc.gotoAndStop(4);
}
if ((((((selectc.lv == 1) && (distalx < 40)) && (distaly < 35)) && (selectc.dir == 0)) && (soldierbc._x < selectc._x)) && (selectc.attack._currentframe == 6)) {
selectc.gotoAndStop(4);
soldierbc.hp = soldierbc.hp - selectc.atk;
selectc.xp++;
}
if ((((((selectc.lv == 1) && (distalx < 40)) && (distaly < 35)) && (selectc.dir == 1)) && (soldierbc._x > selectc._x)) && (selectc.attack._currentframe == 6)) {
selectc.gotoAndStop(4);
soldierbc.hp = soldierbc.hp - selectc.atk;
selectc.xp++;
}
if ((((((((selectc.lv == 2) && (distalx < 45)) && (distaly < 35)) && (selectc.dir == 0)) && (soldierbc._x < selectc._x)) && (selectc._currentframe != 7)) && (selectc._currentframe != 8)) && (selectc._currentframe != 9)) {
randatk = Math.floor(Math.random() * 6);
if ((randatk == 0) || (randatk == 3)) {
selectc.gotoAndStop(7);
}
if (randatk == 1) {
selectc.gotoAndStop(8);
}
if (((randatk == 2) || (randatk == 4)) || (randatk == 5)) {
selectc.gotoAndStop(9);
}
}
if ((((((((selectc.lv == 2) && (distalx < 45)) && (distaly < 35)) && (selectc.dir == 1)) && (soldierbc._x > selectc._x)) && (selectc._currentframe != 7)) && (selectc._currentframe != 8)) && (selectc._currentframe != 9)) {
randatk = Math.floor(Math.random() * 5);
if ((randatk == 0) || (randatk == 3)) {
selectc.gotoAndStop(7);
}
if (randatk == 1) {
selectc.gotoAndStop(8);
}
if (((randatk == 2) || (randatk == 4)) || (randatk == 5)) {
selectc.gotoAndStop(9);
}
}
if (((((((selectc.lv == 2) && (distalx < 45)) && (distaly < 35)) && (selectc.dir == 0)) && (soldierbc._x < selectc._x)) && (selectc._currentframe == 7)) && (selectc.attack._currentframe == 6)) {
selectc.gotoAndStop(7);
soldierbc.hp = soldierbc.hp - (selectc.atk * 2);
selectc.xp++;
}
if (((((((selectc.lv == 2) && (distalx < 45)) && (distaly < 35)) && (selectc.dir == 1)) && (soldierbc._x > selectc._x)) && (selectc._currentframe == 7)) && (selectc.attack._currentframe == 6)) {
selectc.gotoAndStop(7);
soldierbc.hp = soldierbc.hp - (selectc.atk * 2);
selectc.xp++;
}
if (((((((((selectc.lv == 2) && (distalx < 45)) && (distaly < 35)) && (selectc.dir == 0)) && (soldierbc._x < selectc._x)) && (selectc._currentframe == 8)) && (selectc.attack._currentframe == 6)) && (soldierbc._currentframe != 2)) && (soldierbc._currentframe != 4)) {
selectc.gotoAndStop(8);
soldierbc.froze = 1;
soldierbc.hp = soldierbc.hp - selectc.atk;
selectc.xp++;
}
if (((((((((selectc.lv == 2) && (distalx < 45)) && (distaly < 35)) && (selectc.dir == 1)) && (soldierbc._x > selectc._x)) && (selectc._currentframe == 8)) && (selectc.attack._currentframe == 6)) && (soldierbc._currentframe != 2)) && (soldierbc._currentframe != 4)) {
selectc.gotoAndStop(8);
soldierbc.froze = 1;
soldierbc.hp = soldierbc.hp - selectc.atk;
selectc.xp++;
}
if (((((((((selectc.lv == 2) && (distalx < 45)) && (distaly < 35)) && (selectc.dir == 0)) && (soldierbc._x < selectc._x)) && (selectc._currentframe == 9)) && (selectc.attack._currentframe == 6)) && (soldierbc._currentframe != 2)) && (soldierbc._currentframe != 4)) {
selectc.gotoAndStop(9);
soldierbc.hp = soldierbc.hp - Math.floor(selectc.atk / 2);
soldierbc.blow = 1;
selectc.xp++;
}
if (((((((((selectc.lv == 2) && (distalx < 45)) && (distaly < 35)) && (selectc.dir == 1)) && (soldierbc._x > selectc._x)) && (selectc._currentframe == 9)) && (selectc.attack._currentframe == 6)) && (soldierbc._currentframe != 2)) && (soldierbc._currentframe != 4)) {
selectc.gotoAndStop(9);
soldierbc.hp = soldierbc.hp - Math.floor(selectc.atk / 2);
soldierbc.blow = 1;
selectc.xp++;
}
if ((((((((selectc.lv == 3) && (distalx < 45)) && (distaly < 35)) && (selectc.dir == 0)) && (soldierbc._x < selectc._x)) && (selectc._currentframe != 7)) && (selectc._currentframe != 8)) && (selectc._currentframe != 9)) {
randatk = Math.floor(Math.random() * 3);
if (randatk == 0) {
selectc.gotoAndStop(7);
}
if (randatk == 1) {
selectc.gotoAndStop(8);
}
if (randatk == 2) {
selectc.gotoAndStop(9);
}
}
if ((((((((selectc.lv == 3) && (distalx < 45)) && (distaly < 35)) && (selectc.dir == 1)) && (soldierbc._x > selectc._x)) && (selectc._currentframe != 7)) && (selectc._currentframe != 8)) && (selectc._currentframe != 9)) {
randatk = Math.floor(Math.random() * 3);
if (randatk == 0) {
selectc.gotoAndStop(7);
}
if (randatk == 1) {
selectc.gotoAndStop(8);
}
if (randatk == 2) {
selectc.gotoAndStop(9);
}
}
if (((((((selectc.lv == 3) && (distalx < 45)) && (distaly < 35)) && (selectc.dir == 0)) && (soldierbc._x < selectc._x)) && (selectc._currentframe == 7)) && (selectc.attack._currentframe == 6)) {
selectc.gotoAndStop(7);
soldierbc.hp = soldierbc.hp - selectc.atk;
selectc.xp++;
}
if (((((((selectc.lv == 3) && (distalx < 45)) && (distaly < 35)) && (selectc.dir == 1)) && (soldierbc._x > selectc._x)) && (selectc._currentframe == 7)) && (selectc.attack._currentframe == 6)) {
selectc.gotoAndStop(7);
soldierbc.hp = soldierbc.hp - selectc.atk;
selectc.xp++;
}
if (((((((((selectc.lv == 3) && (distalx < 45)) && (distaly < 35)) && (selectc.dir == 0)) && (soldierbc._x < selectc._x)) && (selectc._currentframe == 8)) && (selectc.attack._currentframe == 6)) && (soldierbc._currentframe != 2)) && (soldierbc._currentframe != 4)) {
selectc.gotoAndStop(8);
soldierbc.froze = 1;
selectc.xp++;
}
if (((((((((selectc.lv == 3) && (distalx < 45)) && (distaly < 35)) && (selectc.dir == 1)) && (soldierbc._x > selectc._x)) && (selectc._currentframe == 8)) && (selectc.attack._currentframe == 6)) && (soldierbc._currentframe != 2)) && (soldierbc._currentframe != 4)) {
selectc.gotoAndStop(8);
soldierbc.froze = 1;
selectc.xp++;
}
if (((((((((selectc.lv == 3) && (distalx < 45)) && (distaly < 35)) && (selectc.dir == 0)) && (soldierbc._x < selectc._x)) && (selectc._currentframe == 9)) && (selectc.attack._currentframe == 6)) && (soldierbc._currentframe != 2)) && (soldierbc._currentframe != 4)) {
selectc.gotoAndStop(9);
soldierbc.hp = soldierbc.hp - Math.floor(selectc.atk / 2);
soldierbc.blow = 1;
selectc.xp++;
}
if (((((((((selectc.lv == 3) && (distalx < 45)) && (distaly < 35)) && (selectc.dir == 1)) && (soldierbc._x > selectc._x)) && (selectc._currentframe == 9)) && (selectc.attack._currentframe == 6)) && (soldierbc._currentframe != 2)) && (soldierbc._currentframe != 4)) {
selectc.gotoAndStop(9);
soldierbc.hp = soldierbc.hp - Math.floor(selectc.atk / 2);
soldierbc.blow = 1;
selectc.xp++;
}
}
}
t++;
}
r++;
}
}
function bloody() {
k = 0;
while (k < bloodlist.length) {
selectr = _root.game.castlec[bloodlist[k]];
if (selectr.splashy._currentframe == 6) {
selectr.removeMovieClip();
bloodlist.splice(k, 1);
break;
}
k++;
}
}
function tutopanel() {
_root.game.tutorial.gotoAndStop(pages);
_root.game.tutorial.skipt.onRelease = function () {
_root.cliky.gotoAndPlay(2);
if (pausestate == false) {
_root.game.tutorial.gotoAndStop(6);
pages = 6;
tutoon = false;
}
if (pausestate == true) {
_root.game.tutorial.gotoAndStop(6);
pages = 6;
tutoon = false;
_root.game.pausem.gotoAndStop(2);
}
};
_root.game.tutorial.backt.onRelease = function () {
_root.cliky.gotoAndPlay(2);
pages = pages - 1;
if (pages < 1) {
pages = 1;
}
};
_root.game.tutorial.goot.onRelease = function () {
_root.cliky.gotoAndPlay(2);
pages = pages + 1;
};
if (_root.game.tutorial._currentframe == 6) {
if (pausestate == false) {
tutoon = false;
}
if (pausestate == true) {
tutoon = false;
_root.game.pausem.gotoAndStop(2);
}
}
}
function magicspell() {
if (usingmagic == true) {
_root.game.msensor.gotoAndStop(2);
_root.game.msensor.cancelm.onRelease = function () {
whatm = 0;
_root.cliky.gotoAndPlay(2);
_root.game.msensor.gotoAndStop(1);
_root.game.mickey.gotoAndStop(1);
usingmagic = false;
};
_root.game.msensor.magicshoot.onRelease = function () {
if (whatm == 1) {
boneshave = boneshave - 100;
blazec = blazec + 1;
_root.firesound.gotoAndPlay(2);
if (_root.game.mickey._y < 190) {
_root.game.blazem._y = 183;
_root.game.blazem._x = _root.game.mickey._x;
_root.game.blazem.gotoAndStop(2);
}
if ((_root.game.mickey._y > 191) && (_root.game.mickey._y < 270)) {
_root.game.blazem._y = 258;
_root.game.blazem._x = _root.game.mickey._x;
_root.game.blazem.gotoAndStop(2);
}
if ((_root.game.mickey._y > 271) && (_root.game.mickey._y < 340)) {
_root.game.blazem._y = 333;
_root.game.blazem._x = _root.game.mickey._x;
_root.game.blazem.gotoAndStop(2);
}
if (_root.game.mickey._y > 341) {
_root.game.blazem._y = 408;
_root.game.blazem._x = _root.game.mickey._x;
_root.game.blazem.gotoAndStop(2);
}
f = 0;
while (f < soldierlist.length) {
soldierbc = _root.game.castlec[soldierlist[f]];
dx = _root.game.blazem._x - soldierbc._x;
dy = _root.game.blazem._y - soldierbc._y;
distalx = Math.sqrt(dx * dx);
distaly = Math.sqrt(dy * dy);
if ((distalx < 50) && (distaly < 30)) {
soldierbc.hp = soldierbc.hp - 50;
soldierbc.mdeath = 1;
}
f++;
}
}
if (whatm == 2) {
boneshave = boneshave - 50;
blizzardc = blizzardc + 1;
_root.icesound.gotoAndPlay(2);
if (_root.game.mickey._y < 190) {
_root.game.blizzardm._y = 190;
_root.game.blizzardm._x = _root.game.mickey._x;
_root.game.blizzardm.gotoAndStop(2);
}
if ((_root.game.mickey._y > 191) && (_root.game.mickey._y < 270)) {
_root.game.blizzardm._y = 265;
_root.game.blizzardm._x = _root.game.mickey._x;
_root.game.blizzardm.gotoAndStop(2);
}
if ((_root.game.mickey._y > 271) && (_root.game.mickey._y < 340)) {
_root.game.blizzardm._y = 340;
_root.game.blizzardm._x = _root.game.mickey._x;
_root.game.blizzardm.gotoAndStop(2);
}
if (_root.game.mickey._y > 341) {
_root.game.blizzardm._y = 415;
_root.game.blizzardm._x = _root.game.mickey._x;
_root.game.blizzardm.gotoAndStop(2);
}
f = 0;
while (f < soldierlist.length) {
soldierbc = _root.game.castlec[soldierlist[f]];
dx = _root.game.blizzardm._x - soldierbc._x;
dy = _root.game.blizzardm._y - soldierbc._y;
distalx = Math.sqrt(dx * dx);
distaly = Math.sqrt(dy * dy);
if ((distalx < 50) && (distaly < 30)) {
soldierbc.froze = 1;
}
f++;
}
}
if (whatm == 3) {
boneshave = boneshave - 400;
thunderc = thunderc + 1;
_root.thundersound.gotoAndPlay(2);
_root.game.thunderm._x = _root.game.mickey._x + 0.5;
_root.game.thunderm.gotoAndStop(2);
_root.game.tflashm.gotoAndStop(2);
f = 0;
while (f < soldierlist.length) {
soldierbc = _root.game.castlec[soldierlist[f]];
dx = _root.game.thunderm._x - soldierbc._x;
dy = _root.game.thunderm._y - soldierbc._y;
distalx = Math.sqrt(dx * dx);
distaly = Math.sqrt(dy * dy);
if ((distalx < 50) && (distaly < 800)) {
soldierbc.hp = soldierbc.hp - 100;
soldierbc.mdeath = 1;
if (((soldierbc.dir == 0) && (soldierbc._x > 80)) && (soldierbc._currentframe == 3)) {
soldierbc._x = soldierbc._x - 10;
}
if (((soldierbc.dir == 1) && (soldierbc._x < 390)) && (soldierbc._currentframe == 3)) {
soldierbc._x = soldierbc._x + 10;
}
}
f++;
}
}
if (whatm == 4) {
boneshave = boneshave - 200;
tornadoc = tornadoc + 1;
windcounter = 240;
_root.windsound.gotoAndPlay(2);
if (_root.game.mickey._y < 190) {
_root.game.tornadom._y = 170;
_root.game.tornadom.gotoAndStop(2);
}
if ((_root.game.mickey._y > 191) && (_root.game.mickey._y < 270)) {
_root.game.tornadom._y = 245;
_root.game.tornadom.gotoAndStop(2);
}
if ((_root.game.mickey._y > 271) && (_root.game.mickey._y < 340)) {
_root.game.tornadom._y = 320;
_root.game.tornadom.gotoAndStop(2);
}
if (_root.game.mickey._y > 341) {
_root.game.tornadom._y = 395;
_root.game.tornadom.gotoAndStop(2);
}
}
whatm = 0;
usingmagic = false;
_root.game.mickey.gotoAndStop(1);
};
}
if (usingmagic == false) {
_root.game.msensor.gotoAndStop(1);
}
if (windcounter > 0) {
windcounter = windcounter - 1;
f = 0;
while (f < soldierlist.length) {
soldierbc = _root.game.castlec[soldierlist[f]];
dx = _root.game.tornadom._x - soldierbc._x;
dy = _root.game.tornadom._y - soldierbc._y;
distalx = Math.sqrt(dx * dx);
distaly = Math.sqrt(dy * dy);
if ((distalx < 250) && (distaly < 30)) {
soldierbc.slow = 5;
}
f++;
}
}
if (windcounter <= 0) {
_root.game.tornadom.gotoAndStop(1);
}
}
function adchivments() {
if ((medal[0] == 0) && (skulll1 > 9)) {
medal[0] = 1;
_root.game.trofeos.gotoAndStop(2);
_root.adsound.gotoAndPlay(2);
}
if ((medal[1] == 0) && (skulll2 > 9)) {
medal[1] = 1;
_root.game.trofeos.gotoAndStop(3);
_root.adsound.gotoAndPlay(2);
}
if ((medal[2] == 0) && (skulll3 > 9)) {
medal[2] = 1;
_root.game.trofeos.gotoAndStop(4);
_root.adsound.gotoAndPlay(2);
}
if ((medal[3] == 0) && (plantl1 > 9)) {
medal[3] = 1;
_root.game.trofeos.gotoAndStop(5);
_root.adsound.gotoAndPlay(2);
}
if ((medal[4] == 0) && (plantl2 > 9)) {
medal[4] = 1;
_root.game.trofeos.gotoAndStop(6);
_root.adsound.gotoAndPlay(2);
}
if ((medal[5] == 0) && (plantl3 > 9)) {
medal[5] = 1;
_root.game.trofeos.gotoAndStop(7);
_root.adsound.gotoAndPlay(2);
}
if ((medal[6] == 0) && (slimel1 > 9)) {
medal[6] = 1;
_root.game.trofeos.gotoAndStop(8);
_root.adsound.gotoAndPlay(2);
}
if ((medal[7] == 0) && (slimel2 > 9)) {
medal[7] = 1;
_root.game.trofeos.gotoAndStop(9);
_root.adsound.gotoAndPlay(2);
}
if ((medal[8] == 0) && (slimel3 > 9)) {
medal[8] = 1;
_root.game.trofeos.gotoAndStop(10);
_root.adsound.gotoAndPlay(2);
}
if ((medal[9] == 0) && (demonl1 > 9)) {
medal[9] = 1;
_root.game.trofeos.gotoAndStop(11);
_root.adsound.gotoAndPlay(2);
}
if ((medal[10] == 0) && (demonl2 > 9)) {
medal[10] = 1;
_root.game.trofeos.gotoAndStop(12);
_root.adsound.gotoAndPlay(2);
}
if ((medal[11] == 0) && (demonl3 > 9)) {
medal[11] = 1;
_root.game.trofeos.gotoAndStop(13);
_root.adsound.gotoAndPlay(2);
}
if ((medal[12] == 0) && (hivel1 > 9)) {
medal[12] = 1;
_root.game.trofeos.gotoAndStop(14);
_root.adsound.gotoAndPlay(2);
}
if ((medal[13] == 0) && (hivel2 > 9)) {
medal[13] = 1;
_root.game.trofeos.gotoAndStop(15);
_root.adsound.gotoAndPlay(2);
}
if ((medal[14] == 0) && (hivel3 > 9)) {
medal[14] = 1;
_root.game.trofeos.gotoAndStop(16);
_root.adsound.gotoAndPlay(2);
}
if ((medal[15] == 0) && (corpel1 > 9)) {
medal[15] = 1;
_root.game.trofeos.gotoAndStop(17);
_root.adsound.gotoAndPlay(2);
}
if ((medal[16] == 0) && (corpel2 > 9)) {
medal[16] = 1;
_root.game.trofeos.gotoAndStop(18);
_root.adsound.gotoAndPlay(2);
}
if ((medal[17] == 0) && (corpel3 > 9)) {
medal[17] = 1;
_root.game.trofeos.gotoAndStop(19);
_root.adsound.gotoAndPlay(2);
}
if ((medal[18] == 0) && (mudmanl1 > 9)) {
medal[18] = 1;
_root.game.trofeos.gotoAndStop(20);
_root.adsound.gotoAndPlay(2);
}
if ((medal[19] == 0) && (mudmanl2 > 9)) {
medal[19] = 1;
_root.game.trofeos.gotoAndStop(21);
_root.adsound.gotoAndPlay(2);
}
if ((medal[20] == 0) && (mudmanl3 > 9)) {
medal[20] = 1;
_root.game.trofeos.gotoAndStop(22);
_root.adsound.gotoAndPlay(2);
}
if ((medal[21] == 0) && (dragonl1 > 9)) {
medal[21] = 1;
_root.game.trofeos.gotoAndStop(23);
_root.adsound.gotoAndPlay(2);
}
if ((medal[22] == 0) && (dragonl2 > 9)) {
medal[22] = 1;
_root.game.trofeos.gotoAndStop(24);
_root.adsound.gotoAndPlay(2);
}
if ((medal[23] == 0) && (soldiere > 99)) {
medal[23] = 1;
_root.game.trofeos.gotoAndStop(25);
_root.adsound.gotoAndPlay(2);
}
if ((medal[24] == 0) && (runnere > 99)) {
medal[24] = 1;
_root.game.trofeos.gotoAndStop(26);
_root.adsound.gotoAndPlay(2);
}
if ((medal[25] == 0) && (defendere > 99)) {
medal[25] = 1;
_root.game.trofeos.gotoAndStop(27);
_root.adsound.gotoAndPlay(2);
}
if ((medal[26] == 0) && (warriore > 99)) {
medal[26] = 1;
_root.game.trofeos.gotoAndStop(28);
_root.adsound.gotoAndPlay(2);
}
if ((medal[27] == 0) && (kamikazee > 99)) {
medal[27] = 1;
_root.game.trofeos.gotoAndStop(29);
_root.adsound.gotoAndPlay(2);
}
if ((medal[28] == 0) && (prieste > 99)) {
medal[28] = 1;
_root.game.trofeos.gotoAndStop(30);
_root.adsound.gotoAndPlay(2);
}
if ((medal[29] == 0) && (hikere > 99)) {
medal[29] = 1;
_root.game.trofeos.gotoAndStop(31);
_root.adsound.gotoAndPlay(2);
}
if ((medal[30] == 0) && (magee > 99)) {
medal[30] = 1;
_root.game.trofeos.gotoAndStop(32);
_root.adsound.gotoAndPlay(2);
}
if ((medal[31] == 0) && (titane > 99)) {
medal[31] = 1;
_root.game.trofeos.gotoAndStop(33);
_root.adsound.gotoAndPlay(2);
}
if ((medal[32] == 0) && (hermese > 99)) {
medal[32] = 1;
_root.game.trofeos.gotoAndStop(34);
_root.adsound.gotoAndPlay(2);
}
if ((medal[33] == 0) && (blazec > 9)) {
medal[33] = 1;
_root.game.trofeos.gotoAndStop(35);
_root.adsound.gotoAndPlay(2);
}
if ((medal[34] == 0) && (blizzardc > 9)) {
medal[34] = 1;
_root.game.trofeos.gotoAndStop(36);
_root.adsound.gotoAndPlay(2);
}
if ((medal[35] == 0) && (thunderc > 9)) {
medal[35] = 1;
_root.game.trofeos.gotoAndStop(37);
_root.adsound.gotoAndPlay(2);
}
if ((medal[36] == 0) && (tornadoc > 9)) {
medal[36] = 1;
_root.game.trofeos.gotoAndStop(38);
_root.adsound.gotoAndPlay(2);
}
if (((((medal[37] == 0) && (cas12 == 1)) && (cas22 == 1)) && (cas32 == 1)) && (cas42 == 1)) {
medal[37] = 1;
_root.game.trofeos.gotoAndStop(39);
_root.adsound.gotoAndPlay(2);
}
if (((((medal[38] == 0) && (cas13 == 1)) && (cas23 == 1)) && (cas33 == 1)) && (cas43 == 1)) {
medal[38] = 1;
_root.game.trofeos.gotoAndStop(40);
_root.adsound.gotoAndPlay(2);
}
if (((((medal[39] == 0) && (cas14 == 1)) && (cas24 == 1)) && (cas34 == 1)) && (cas44 == 1)) {
medal[39] = 1;
_root.game.trofeos.gotoAndStop(41);
_root.adsound.gotoAndPlay(2);
}
_root.game.tabb.pauseb.onRelease = function () {
if (pausestate == false) {
pausestate = true;
_root.cliky.gotoAndPlay(2);
_root.game.pausem.gotoAndStop(2);
q = 0;
while (q < soldierlist.length) {
selects = _root.game.castlec[soldierlist[q]];
selects.stop();
selects.states.stop();
selects.cold.stop();
selects.exit.stop();
selects.attack.stop();
q++;
}
_root.game.queen.states.stop();
_root.game.queen.gulp.stop();
_root.game.queen.eat.stop();
r = 0;
while (r < creaturelist.length) {
selectc = _root.game[creaturelist[r]];
selectc.stop();
selectc.states.stop();
selectc.cold.stop();
selectc.attack.stop();
r++;
}
}
};
_root.game.pausem.resumeb.onRelease = function () {
pausestate = false;
_root.cliky.gotoAndPlay(2);
_root.game.pausem.gotoAndStop(1);
q = 0;
while (q < soldierlist.length) {
selects = _root.game.castlec[soldierlist[q]];
selects.states.play();
selects.cold.play();
selects.exit.play();
selects.attack.play();
q++;
}
_root.game.queen.states.play();
_root.game.queen.gulp.play();
_root.game.queen.eat.play();
r = 0;
while (r < creaturelist.length) {
selectc = _root.game[creaturelist[r]];
selectc.states.play();
selectc.cold.play();
selectc.attack.play();
r++;
}
};
_root.game.pausem.replayb.onRelease = function () {
_root.cortinag.play();
_root.cliky.gotoAndPlay(2);
finishg = 1;
};
_root.game.pausem.mainb.onRelease = function () {
_root.cortinag.play();
_root.cliky.gotoAndPlay(2);
finishg = 2;
};
_root.game.pausem.helpb.onRelease = function () {
_root.game.tutorial.gotoAndStop(1);
_root.cliky.gotoAndPlay(2);
pages = 1;
tutoon = true;
_root.game.pausem.gotoAndStop(1);
};
if ((_root.cortinag._currentframe == 15) && (finishg == 0)) {
if (victory == true) {
if (difficulty == 1) {
cas21 = 1;
}
if (difficulty == 2) {
cas22 = 1;
cas13 = 1;
}
if (difficulty == 3) {
cas14 = 1;
cas23 = 1;
}
if (difficulty == 4) {
cas24 = 1;
}
if (difficulty == 5) {
cas31 = 1;
}
if (difficulty == 6) {
cas32 = 1;
}
if (difficulty == 7) {
cas33 = 1;
}
if (difficulty == 8) {
cas34 = 1;
}
if (difficulty == 9) {
cas41 = 1;
}
if (difficulty == 10) {
cas42 = 1;
}
if (difficulty == 11) {
cas43 = 1;
}
if (difficulty == 12) {
cas44 = 1;
}
}
local_data.data.mute = mute;
local_data.data.skulll1 = skulll1;
local_data.data.skulll2 = skulll2;
local_data.data.skulll3 = skulll3;
local_data.data.plantl1 = plantl1;
local_data.data.plantl2 = plantl2;
local_data.data.plantl3 = plantl3;
local_data.data.slimel1 = slimel1;
local_data.data.slimel2 = slimel2;
local_data.data.slimel3 = slimel3;
local_data.data.demonl1 = demonl1;
local_data.data.demonl2 = demonl2;
local_data.data.demonl3 = demonl3;
local_data.data.hivel1 = hivel1;
local_data.data.hivel2 = hivel2;
local_data.data.hivel3 = hivel3;
local_data.data.corpel1 = corpel1;
local_data.data.corpel2 = corpel2;
local_data.data.corpel3 = corpel3;
local_data.data.mudmanl1 = mudmanl1;
local_data.data.mudmanl2 = mudmanl2;
local_data.data.mudmanl3 = mudmanl3;
local_data.data.dragonl1 = dragonl1;
local_data.data.dragonl2 = dragonl2;
local_data.data.dragonl3 = dragonl3;
local_data.data.soldiere = soldiere;
local_data.data.runnere = runnere;
local_data.data.defendere = defendere;
local_data.data.warriore = warriore;
local_data.data.kamikazee = kamikazee;
local_data.data.prieste = prieste;
local_data.data.hikere = hikere;
local_data.data.magee = magee;
local_data.data.titane = titane;
local_data.data.hermese = hermese;
local_data.data.blazec = blazec;
local_data.data.blizzardc = blizzardc;
local_data.data.thunderc = thunderc;
local_data.data.tornadoc = tornadoc;
local_data.data.cas11 = cas11;
local_data.data.cas12 = cas12;
local_data.data.cas13 = cas13;
local_data.data.cas14 = cas14;
local_data.data.cas21 = cas21;
local_data.data.cas22 = cas22;
local_data.data.cas23 = cas23;
local_data.data.cas24 = cas24;
local_data.data.cas31 = cas31;
local_data.data.cas32 = cas32;
local_data.data.cas33 = cas33;
local_data.data.cas34 = cas34;
local_data.data.cas41 = cas41;
local_data.data.cas42 = cas42;
local_data.data.cas43 = cas43;
local_data.data.cas44 = cas44;
local_data.flush();
if (victory == false) {
gotoAndPlay (190);
}
if (victory == true) {
gotoAndPlay (160);
}
}
if ((_root.cortinag._currentframe == 15) && (finishg == 1)) {
local_data.data.mute = mute;
local_data.data.skulll1 = skulll1;
local_data.data.skulll2 = skulll2;
local_data.data.skulll3 = skulll3;
local_data.data.plantl1 = plantl1;
local_data.data.plantl2 = plantl2;
local_data.data.plantl3 = plantl3;
local_data.data.slimel1 = slimel1;
local_data.data.slimel2 = slimel2;
local_data.data.slimel3 = slimel3;
local_data.data.demonl1 = demonl1;
local_data.data.demonl2 = demonl2;
local_data.data.demonl3 = demonl3;
local_data.data.hivel1 = hivel1;
local_data.data.hivel2 = hivel2;
local_data.data.hivel3 = hivel3;
local_data.data.corpel1 = corpel1;
local_data.data.corpel2 = corpel2;
local_data.data.corpel3 = corpel3;
local_data.data.mudmanl1 = mudmanl1;
local_data.data.mudmanl2 = mudmanl2;
local_data.data.mudmanl3 = mudmanl3;
local_data.data.dragonl1 = dragonl1;
local_data.data.dragonl2 = dragonl2;
local_data.data.dragonl3 = dragonl3;
local_data.data.soldiere = soldiere;
local_data.data.runnere = runnere;
local_data.data.defendere = defendere;
local_data.data.warriore = warriore;
local_data.data.kamikazee = kamikazee;
local_data.data.prieste = prieste;
local_data.data.hikere = hikere;
local_data.data.magee = magee;
local_data.data.titane = titane;
local_data.data.hermese = hermese;
local_data.data.blazec = blazec;
local_data.data.blizzardc = blizzardc;
local_data.data.thunderc = thunderc;
local_data.data.tornadoc = tornadoc;
local_data.data.cas11 = cas11;
local_data.data.cas12 = cas12;
local_data.data.cas13 = cas13;
local_data.data.cas14 = cas14;
local_data.data.cas21 = cas21;
local_data.data.cas22 = cas22;
local_data.data.cas23 = cas23;
local_data.data.cas24 = cas24;
local_data.data.cas31 = cas31;
local_data.data.cas32 = cas32;
local_data.data.cas33 = cas33;
local_data.data.cas34 = cas34;
local_data.data.cas41 = cas41;
local_data.data.cas42 = cas42;
local_data.data.cas43 = cas43;
local_data.data.cas44 = cas44;
local_data.flush();
gotoAndPlay (190);
}
if ((_root.cortinag._currentframe == 15) && (finishg == 2)) {
local_data.data.mute = mute;
local_data.data.skulll1 = skulll1;
local_data.data.skulll2 = skulll2;
local_data.data.skulll3 = skulll3;
local_data.data.plantl1 = plantl1;
local_data.data.plantl2 = plantl2;
local_data.data.plantl3 = plantl3;
local_data.data.slimel1 = slimel1;
local_data.data.slimel2 = slimel2;
local_data.data.slimel3 = slimel3;
local_data.data.demonl1 = demonl1;
local_data.data.demonl2 = demonl2;
local_data.data.demonl3 = demonl3;
local_data.data.hivel1 = hivel1;
local_data.data.hivel2 = hivel2;
local_data.data.hivel3 = hivel3;
local_data.data.corpel1 = corpel1;
local_data.data.corpel2 = corpel2;
local_data.data.corpel3 = corpel3;
local_data.data.mudmanl1 = mudmanl1;
local_data.data.mudmanl2 = mudmanl2;
local_data.data.mudmanl3 = mudmanl3;
local_data.data.dragonl1 = dragonl1;
local_data.data.dragonl2 = dragonl2;
local_data.data.dragonl3 = dragonl3;
local_data.data.soldiere = soldiere;
local_data.data.runnere = runnere;
local_data.data.defendere = defendere;
local_data.data.warriore = warriore;
local_data.data.kamikazee = kamikazee;
local_data.data.prieste = prieste;
local_data.data.hikere = hikere;
local_data.data.magee = magee;
local_data.data.titane = titane;
local_data.data.hermese = hermese;
local_data.data.blazec = blazec;
local_data.data.blizzardc = blizzardc;
local_data.data.thunderc = thunderc;
local_data.data.tornadoc = tornadoc;
local_data.data.cas11 = cas11;
local_data.data.cas12 = cas12;
local_data.data.cas13 = cas13;
local_data.data.cas14 = cas14;
local_data.data.cas21 = cas21;
local_data.data.cas22 = cas22;
local_data.data.cas23 = cas23;
local_data.data.cas24 = cas24;
local_data.data.cas31 = cas31;
local_data.data.cas32 = cas32;
local_data.data.cas33 = cas33;
local_data.data.cas34 = cas34;
local_data.data.cas41 = cas41;
local_data.data.cas42 = cas42;
local_data.data.cas43 = cas43;
local_data.data.cas44 = cas44;
local_data.flush();
gotoAndPlay (145);
}
_root.game.tabb.bmute.sicon.onRelease = function () {
_root.titleson = new Sound();
_root.titleson.setVolume(0);
_root.game.tabb.bmute.gotoAndStop(2);
_root.cliky.gotoAndPlay(2);
mute = 1;
};
_root.game.tabb.bmute.nsicon.onRelease = function () {
_root.titleson = new Sound();
_root.titleson.setVolume(300);
_root.game.tabb.bmute.gotoAndStop(1);
_root.cliky.gotoAndPlay(2);
mute = 0;
};
if (_root.game.victorys.times._currentframe == 3) {
_root.bmusic.gotoAndStop(2);
_root.victorys.gotoAndPlay(2);
}
if (_root.game.gameovers.times._currentframe == 3) {
_root.gameovers.gotoAndPlay(2);
_root.bmusic.gotoAndStop(2);
}
}
stop();
local_data = SharedObject.getLocal("MS_datatemp");
difficulty = local_data.data.difficulty;
mutestate = local_data.data.mutestate;
medal = local_data.data.medal;
mute = local_data.data.mute;
var skulll1 = local_data.data.skulll1;
var skulll2 = local_data.data.skulll2;
var skulll3 = local_data.data.skulll3;
var plantl1 = local_data.data.plantl1;
var plantl2 = local_data.data.plantl2;
var plantl3 = local_data.data.plantl3;
var slimel1 = local_data.data.slimel1;
var slimel2 = local_data.data.slimel2;
var slimel3 = local_data.data.slimel3;
var demonl1 = local_data.data.demonl1;
var demonl2 = local_data.data.demonl2;
var demonl3 = local_data.data.demonl3;
var hivel1 = local_data.data.hivel1;
var hivel2 = local_data.data.hivel2;
var hivel3 = local_data.data.hivel3;
var corpel1 = local_data.data.corpel1;
var corpel2 = local_data.data.corpel2;
var corpel3 = local_data.data.corpel3;
var mudmanl1 = local_data.data.mudmanl1;
var mudmanl2 = local_data.data.mudmanl2;
var mudmanl3 = local_data.data.mudmanl3;
var dragonl1 = local_data.data.dragonl1;
var dragonl2 = local_data.data.dragonl2;
var dragonl3 = local_data.data.dragonl3;
var soldiere = local_data.data.soldiere;
var runnere = local_data.data.runnere;
var defendere = local_data.data.defendere;
var warriore = local_data.data.warriore;
var kamikazee = local_data.data.kamikazee;
var prieste = local_data.data.prieste;
var hikere = local_data.data.hikere;
var magee = local_data.data.magee;
var titane = local_data.data.titane;
var hermese = local_data.data.hermese;
var blazec = local_data.data.blazec;
var blizzardc = local_data.data.blizzardc;
var thunderc = local_data.data.thunderc;
var tornadoc = local_data.data.tornadoc;
var cas11 = local_data.data.cas11;
var cas12 = local_data.data.cas12;
var cas13 = local_data.data.cas13;
var cas14 = local_data.data.cas14;
var cas21 = local_data.data.cas21;
var cas22 = local_data.data.cas22;
var cas23 = local_data.data.cas23;
var cas24 = local_data.data.cas24;
var cas31 = local_data.data.cas31;
var cas32 = local_data.data.cas32;
var cas33 = local_data.data.cas33;
var cas34 = local_data.data.cas34;
var cas41 = local_data.data.cas41;
var cas42 = local_data.data.cas42;
var cas43 = local_data.data.cas43;
var cas44 = local_data.data.cas44;
var finishg = 0;
var pausestate = false;
var windcounter = 0;
var tutoon = true;
var pages = 1;
var boneshave = 0;
var soldierwave = 1;
var nextwavec = 60;
var buyingc = false;
var whatc = 0;
var pausegame = false;
var usingmagic = false;
var whatm = 0;
var checkstatus = false;
var gameover = false;
var hpqueen = 4;
var mselected = 0;
var sselected = 0;
var wavedeath = true;
var deep = 100000;
var deeps = 300000;
var deepb = 500000;
var deepr = 700000;
var firstca = 0;
var firstcb = 0;
var keysecondss = 0;
var numsoldier = 0;
var bonusbones = 0;
var gameover = false;
var victory = false;
var soldierlist = new Array();
var bulletlist = new Array();
var creaturelist = new Array();
var bloodlist = new Array();
var soldierbox = new Array();
var doorlist = new Array();
doorlist = ["ds1", "ds2", "ds3", "ds4"];
var sumonlist = new Array();
sumonlist = ["ss1", "ss2", "ss3", "ss4", "ss5", "ss6", "ss7", "ss8", "ss9", "ss10", "ss11", "ss12", "ss13", "ss14", "ss15", "ss16", "ss17", "ss18", "ss19", "ss20", "ss21", "ss22", "ss23", "ss24", "ss25", "ss26", "ss27", "ss28", "ss29", "ss30", "ss31", "ss32", "ss33", "ss34", "ss35", "ss36"];
Mouse.hide();
startDrag (_root.game.mickey, true);
_root.game.mickey.swapDepths(10000016);
_root.game.pausem.swapDepths(10000015);
_root.game.gameovers.swapDepths(10000014);
_root.game.victorys.swapDepths(10000013);
_root.game.tutorial.swapDepths(10000012);
_root.game.tabb.swapDepths(10000011);
_root.game.table.swapDepths(10000010);
_root.game.blazem.swapDepths(10000009);
_root.game.blizzardm.swapDepths(10000008);
_root.game.thunderm.swapDepths(10000007);
_root.game.tflashm.swapDepths(10000006);
_root.game.tornadom.swapDepths(10000005);
_root.game.msensor.swapDepths(10000004);
startgame();
counters();
_root.game.onEnterFrame = function () {
if ((hpqueen <= 0) && (_root.game.queen.gulp._currentframe == 25)) {
gameover = true;
_root.game.gameovers.gotoAndStop(2);
}
if ((_root.game.queen.eat._currentframe == 11) && (hpqueen >= 1)) {
_root.game.queen.gotoAndStop(4);
}
if ((_root.game.queen.eat._currentframe == 11) && (hpqueen <= 0)) {
_root.game.queen.gotoAndStop(5);
}
if (tutoon == true) {
tutopanel();
}
if ((tutoon == false) && (pausestate == false)) {
counters();
tablero();
seestatus();
soldiersgo();
bulletmoves();
monstermove();
bloody();
magicspell();
}
adchivments();
};
Symbol 2 MovieClip [ironball] Frame 1
stop();
Symbol 2 MovieClip [ironball] Frame 2
stop();
Symbol 6 MovieClip [rockbullet] Frame 1
stop();
Symbol 6 MovieClip [rockbullet] Frame 2
stop();
Symbol 8 MovieClip [mudball] Frame 1
stop();
Symbol 8 MovieClip [mudball] Frame 2
stop();
Symbol 10 MovieClip [bigpellet] Frame 1
stop();
Symbol 10 MovieClip [bigpellet] Frame 2
stop();
Symbol 14 MovieClip [kbee] Frame 1
stop();
Symbol 14 MovieClip [kbee] Frame 2
stop();
Symbol 16 MovieClip [spellet] Frame 1
stop();
Symbol 16 MovieClip [spellet] Frame 2
stop();
Symbol 22 MovieClip Frame 1
stop();
Symbol 22 MovieClip Frame 13
gotoAndStop (1);
Symbol 37 MovieClip Frame 15
_parent.gotoAndStop(3);
Symbol 41 MovieClip Frame 1
stop();
Symbol 41 MovieClip Frame 2
stop();
Symbol 56 MovieClip Frame 12
_parent.gotoAndStop(3);
Symbol 70 MovieClip Frame 15
_parent.gotoAndStop(6);
Symbol 85 MovieClip Frame 13
_parent.gotoAndStop(6);
Symbol 92 MovieClip Frame 13
_parent.gotoAndStop(6);
Symbol 99 MovieClip Frame 13
_parent.gotoAndStop(6);
Symbol 101 MovieClip Frame 61
stop();
Symbol 103 MovieClip Frame 61
stop();
Symbol 104 MovieClip [dragonclip] Frame 1
stop();
Symbol 104 MovieClip [dragonclip] Frame 2
stop();
Symbol 104 MovieClip [dragonclip] Frame 3
stop();
Symbol 104 MovieClip [dragonclip] Frame 4
stop();
Symbol 104 MovieClip [dragonclip] Frame 5
stop();
Symbol 104 MovieClip [dragonclip] Frame 6
stop();
Symbol 104 MovieClip [dragonclip] Frame 7
stop();
Symbol 104 MovieClip [dragonclip] Frame 8
stop();
Symbol 104 MovieClip [dragonclip] Frame 9
stop();
Symbol 104 MovieClip [dragonclip] Frame 20
stop();
Symbol 104 MovieClip [dragonclip] Frame 21
stop();
Symbol 104 MovieClip [dragonclip] Frame 22
stop();
Symbol 105 MovieClip Frame 1
stop();
Symbol 105 MovieClip Frame 13
gotoAndStop (1);
Symbol 116 MovieClip Frame 15
_parent.gotoAndStop(3);
Symbol 131 MovieClip Frame 13
_parent.gotoAndStop(3);
Symbol 132 MovieClip Frame 1
stop();
Symbol 132 MovieClip Frame 13
gotoAndStop (1);
Symbol 146 MovieClip Frame 15
_parent.gotoAndStop(6);
Symbol 174 MovieClip Frame 26
_parent.gotoAndStop(6);
Symbol 188 MovieClip Frame 15
_parent.gotoAndStop(9);
Symbol 212 MovieClip Frame 26
_parent.gotoAndStop(9);
Symbol 214 MovieClip Frame 61
stop();
Symbol 216 MovieClip Frame 61
stop();
Symbol 218 MovieClip Frame 61
stop();
Symbol 219 MovieClip [mudmanclip] Frame 1
stop();
Symbol 219 MovieClip [mudmanclip] Frame 2
stop();
Symbol 219 MovieClip [mudmanclip] Frame 3
stop();
Symbol 219 MovieClip [mudmanclip] Frame 4
stop();
Symbol 219 MovieClip [mudmanclip] Frame 5
stop();
Symbol 219 MovieClip [mudmanclip] Frame 6
stop();
Symbol 219 MovieClip [mudmanclip] Frame 7
stop();
Symbol 219 MovieClip [mudmanclip] Frame 8
stop();
Symbol 219 MovieClip [mudmanclip] Frame 9
stop();
Symbol 219 MovieClip [mudmanclip] Frame 10
stop();
Symbol 219 MovieClip [mudmanclip] Frame 20
stop();
Symbol 219 MovieClip [mudmanclip] Frame 21
stop();
Symbol 219 MovieClip [mudmanclip] Frame 22
stop();
Symbol 226 MovieClip Frame 12
_parent.gotoAndStop(3);
Symbol 252 MovieClip Frame 15
_parent.gotoAndStop(5);
Symbol 277 MovieClip Frame 16
_parent.gotoAndStop(7);
Symbol 312 MovieClip Frame 61
stop();
Symbol 314 MovieClip Frame 61
stop();
Symbol 316 MovieClip Frame 61
stop();
Symbol 317 MovieClip [corpeclip] Frame 1
stop();
Symbol 317 MovieClip [corpeclip] Frame 2
stop();
Symbol 317 MovieClip [corpeclip] Frame 3
stop();
Symbol 317 MovieClip [corpeclip] Frame 4
stop();
Symbol 317 MovieClip [corpeclip] Frame 5
stop();
Symbol 317 MovieClip [corpeclip] Frame 6
stop();
Symbol 317 MovieClip [corpeclip] Frame 7
stop();
Symbol 317 MovieClip [corpeclip] Frame 20
stop();
Symbol 317 MovieClip [corpeclip] Frame 21
stop();
Symbol 317 MovieClip [corpeclip] Frame 22
stop();
Symbol 319 MovieClip Frame 1
stop();
Symbol 319 MovieClip Frame 13
gotoAndStop (1);
Symbol 326 MovieClip Frame 11
_parent.gotoAndStop(3);
Symbol 337 MovieClip Frame 1
stop();
Symbol 337 MovieClip Frame 13
gotoAndStop (1);
Symbol 347 MovieClip Frame 11
_parent.gotoAndStop(5);
Symbol 359 MovieClip Frame 1
stop();
Symbol 359 MovieClip Frame 13
gotoAndStop (1);
Symbol 369 MovieClip Frame 11
_parent.gotoAndStop(7);
Symbol 381 MovieClip Frame 61
stop();
Symbol 383 MovieClip Frame 61
stop();
Symbol 385 MovieClip Frame 61
stop();
Symbol 386 MovieClip [hiveclip] Frame 1
stop();
Symbol 386 MovieClip [hiveclip] Frame 2
stop();
Symbol 386 MovieClip [hiveclip] Frame 3
stop();
Symbol 386 MovieClip [hiveclip] Frame 4
stop();
Symbol 386 MovieClip [hiveclip] Frame 5
stop();
Symbol 386 MovieClip [hiveclip] Frame 6
stop();
Symbol 386 MovieClip [hiveclip] Frame 7
stop();
Symbol 386 MovieClip [hiveclip] Frame 20
stop();
Symbol 386 MovieClip [hiveclip] Frame 21
stop();
Symbol 386 MovieClip [hiveclip] Frame 22
stop();
Symbol 387 MovieClip Frame 1
stop();
Symbol 387 MovieClip Frame 13
gotoAndStop (1);
Symbol 396 MovieClip Frame 13
_parent.gotoAndStop(3);
Symbol 411 MovieClip Frame 13
_parent.gotoAndStop(5);
Symbol 423 MovieClip Frame 13
_parent.gotoAndStop(3);
Symbol 434 MovieClip Frame 13
_parent.gotoAndStop(8);
Symbol 452 MovieClip Frame 16
_parent.gotoAndStop(10);
Symbol 463 MovieClip Frame 13
_parent.gotoAndStop(8);
Symbol 474 MovieClip Frame 13
_parent.gotoAndStop(13);
Symbol 498 MovieClip Frame 19
_parent.gotoAndStop(15);
Symbol 511 MovieClip Frame 13
_parent.gotoAndStop(13);
Symbol 513 MovieClip Frame 61
stop();
Symbol 515 MovieClip Frame 61
stop();
Symbol 517 MovieClip Frame 61
stop();
Symbol 518 MovieClip [demonclip] Frame 1
stop();
Symbol 518 MovieClip [demonclip] Frame 2
stop();
Symbol 518 MovieClip [demonclip] Frame 3
stop();
Symbol 518 MovieClip [demonclip] Frame 4
stop();
Symbol 518 MovieClip [demonclip] Frame 5
stop();
Symbol 518 MovieClip [demonclip] Frame 6
stop();
Symbol 518 MovieClip [demonclip] Frame 7
stop();
Symbol 518 MovieClip [demonclip] Frame 8
stop();
Symbol 518 MovieClip [demonclip] Frame 9
stop();
Symbol 518 MovieClip [demonclip] Frame 10
stop();
Symbol 518 MovieClip [demonclip] Frame 11
stop();
Symbol 518 MovieClip [demonclip] Frame 12
stop();
Symbol 518 MovieClip [demonclip] Frame 13
stop();
Symbol 518 MovieClip [demonclip] Frame 14
stop();
Symbol 518 MovieClip [demonclip] Frame 15
stop();
Symbol 518 MovieClip [demonclip] Frame 16
stop();
Symbol 518 MovieClip [demonclip] Frame 20
stop();
Symbol 518 MovieClip [demonclip] Frame 21
stop();
Symbol 518 MovieClip [demonclip] Frame 22
stop();
Symbol 519 MovieClip Frame 1
stop();
Symbol 519 MovieClip Frame 13
gotoAndStop (1);
Symbol 528 MovieClip Frame 13
_parent.gotoAndStop(3);
Symbol 535 MovieClip Frame 1
stop();
Symbol 535 MovieClip Frame 13
gotoAndStop (1);
Symbol 548 MovieClip Frame 13
_parent.gotoAndStop(5);
Symbol 563 MovieClip Frame 12
_parent.gotoAndStop(7);
Symbol 576 MovieClip Frame 61
stop();
Symbol 578 MovieClip Frame 61
stop();
Symbol 580 MovieClip Frame 61
stop();
Symbol 581 MovieClip [slimeclip] Frame 1
stop();
Symbol 581 MovieClip [slimeclip] Frame 2
stop();
Symbol 581 MovieClip [slimeclip] Frame 3
stop();
Symbol 581 MovieClip [slimeclip] Frame 4
stop();
Symbol 581 MovieClip [slimeclip] Frame 5
stop();
Symbol 581 MovieClip [slimeclip] Frame 6
stop();
Symbol 581 MovieClip [slimeclip] Frame 7
stop();
Symbol 581 MovieClip [slimeclip] Frame 20
stop();
Symbol 581 MovieClip [slimeclip] Frame 21
stop();
Symbol 581 MovieClip [slimeclip] Frame 22
stop();
Symbol 582 MovieClip Frame 1
stop();
Symbol 582 MovieClip Frame 13
gotoAndStop (1);
Symbol 594 MovieClip Frame 17
_parent.gotoAndStop(3);
Symbol 604 MovieClip Frame 10
_parent.gotoAndStop(3);
Symbol 621 MovieClip Frame 17
_parent.gotoAndStop(6);
Symbol 631 MovieClip Frame 13
_parent.gotoAndStop(6);
Symbol 632 MovieClip Frame 1
stop();
Symbol 632 MovieClip Frame 13
gotoAndStop (1);
Symbol 648 MovieClip Frame 17
_parent.gotoAndStop(9);
Symbol 665 MovieClip Frame 17
_parent.gotoAndStop(9);
Symbol 667 MovieClip Frame 61
stop();
Symbol 669 MovieClip Frame 61
stop();
Symbol 671 MovieClip Frame 61
stop();
Symbol 672 MovieClip [plantclip] Frame 1
stop();
Symbol 672 MovieClip [plantclip] Frame 2
stop();
Symbol 672 MovieClip [plantclip] Frame 3
stop();
Symbol 672 MovieClip [plantclip] Frame 4
stop();
Symbol 672 MovieClip [plantclip] Frame 5
stop();
Symbol 672 MovieClip [plantclip] Frame 6
stop();
Symbol 672 MovieClip [plantclip] Frame 7
stop();
Symbol 672 MovieClip [plantclip] Frame 8
stop();
Symbol 672 MovieClip [plantclip] Frame 9
stop();
Symbol 672 MovieClip [plantclip] Frame 10
stop();
Symbol 672 MovieClip [plantclip] Frame 20
stop();
Symbol 672 MovieClip [plantclip] Frame 21
stop();
Symbol 672 MovieClip [plantclip] Frame 22
stop();
Symbol 673 MovieClip Frame 1
stop();
Symbol 673 MovieClip Frame 13
gotoAndStop (1);
Symbol 683 MovieClip Frame 13
_parent.gotoAndPlay(3);
Symbol 692 MovieClip Frame 8
_parent.gotoAndStop(3);
Symbol 697 MovieClip Frame 1
stop();
Symbol 697 MovieClip Frame 13
gotoAndStop (1);
Symbol 709 MovieClip Frame 13
_parent.gotoAndStop(6);
Symbol 719 MovieClip Frame 8
_parent.gotoAndStop(6);
Symbol 720 MovieClip Frame 1
stop();
Symbol 720 MovieClip Frame 13
gotoAndStop (1);
Symbol 733 MovieClip Frame 13
_parent.gotoAndStop(9);
Symbol 743 MovieClip Frame 8
_parent.gotoAndStop(9);
Symbol 745 MovieClip Frame 61
stop();
Symbol 747 MovieClip Frame 61
stop();
Symbol 749 MovieClip Frame 61
stop();
Symbol 750 MovieClip [skullclip] Frame 1
stop();
Symbol 750 MovieClip [skullclip] Frame 2
stop();
Symbol 750 MovieClip [skullclip] Frame 3
stop();
Symbol 750 MovieClip [skullclip] Frame 4
stop();
Symbol 750 MovieClip [skullclip] Frame 5
stop();
Symbol 750 MovieClip [skullclip] Frame 6
stop();
Symbol 750 MovieClip [skullclip] Frame 7
stop();
Symbol 750 MovieClip [skullclip] Frame 8
stop();
Symbol 750 MovieClip [skullclip] Frame 9
stop();
Symbol 750 MovieClip [skullclip] Frame 10
stop();
Symbol 750 MovieClip [skullclip] Frame 20
stop();
Symbol 750 MovieClip [skullclip] Frame 21
stop();
Symbol 750 MovieClip [skullclip] Frame 22
stop();
Symbol 767 MovieClip Frame 17
_parent.gotoAndStop(3);
Symbol 789 MovieClip Frame 17
stop();
Symbol 794 MovieClip Frame 61
_parent.gotoAndStop(3);
Symbol 795 MovieClip [soldierj] Frame 1
stop();
Symbol 795 MovieClip [soldierj] Frame 2
stop();
Symbol 795 MovieClip [soldierj] Frame 3
stop();
Symbol 795 MovieClip [soldierj] Frame 4
stop();
Symbol 795 MovieClip [soldierj] Frame 5
stop();
Symbol 795 MovieClip [soldierj] Frame 6
stop();
Symbol 795 MovieClip [soldierj] Frame 10
stop();
Symbol 809 MovieClip Frame 13
_parent.gotoAndStop(3);
Symbol 837 MovieClip Frame 17
stop();
Symbol 840 MovieClip Frame 61
_parent.gotoAndStop(3);
Symbol 841 MovieClip [soldieri] Frame 1
stop();
Symbol 841 MovieClip [soldieri] Frame 2
stop();
Symbol 841 MovieClip [soldieri] Frame 3
stop();
Symbol 841 MovieClip [soldieri] Frame 4
stop();
Symbol 841 MovieClip [soldieri] Frame 5
stop();
Symbol 841 MovieClip [soldieri] Frame 10
stop();
Symbol 858 MovieClip Frame 17
_parent.gotoAndStop(3);
Symbol 880 MovieClip Frame 17
stop();
Symbol 897 MovieClip Frame 18
stop();
Symbol 899 MovieClip Frame 61
_parent.gotoAndStop(3);
Symbol 900 MovieClip [soldierh] Frame 1
stop();
Symbol 900 MovieClip [soldierh] Frame 2
stop();
Symbol 900 MovieClip [soldierh] Frame 3
stop();
Symbol 900 MovieClip [soldierh] Frame 4
stop();
Symbol 900 MovieClip [soldierh] Frame 5
stop();
Symbol 900 MovieClip [soldierh] Frame 6
stop();
Symbol 900 MovieClip [soldierh] Frame 7
stop();
Symbol 900 MovieClip [soldierh] Frame 10
stop();
Symbol 917 MovieClip Frame 17
_parent.gotoAndStop(3);
Symbol 939 MovieClip Frame 17
stop();
Symbol 957 MovieClip Frame 24
stop();
Symbol 959 MovieClip Frame 61
_parent.gotoAndStop(3);
Symbol 960 MovieClip [soldierg] Frame 1
stop();
Symbol 960 MovieClip [soldierg] Frame 2
stop();
Symbol 960 MovieClip [soldierg] Frame 3
stop();
Symbol 960 MovieClip [soldierg] Frame 4
stop();
Symbol 960 MovieClip [soldierg] Frame 5
stop();
Symbol 960 MovieClip [soldierg] Frame 6
stop();
Symbol 960 MovieClip [soldierg] Frame 10
stop();
Symbol 977 MovieClip Frame 17
_parent.gotoAndStop(3);
Symbol 999 MovieClip Frame 17
stop();
Symbol 1002 MovieClip Frame 61
_parent.gotoAndStop(3);
Symbol 1003 MovieClip [soldierf] Frame 1
stop();
Symbol 1003 MovieClip [soldierf] Frame 2
stop();
Symbol 1003 MovieClip [soldierf] Frame 3
stop();
Symbol 1003 MovieClip [soldierf] Frame 4
stop();
Symbol 1003 MovieClip [soldierf] Frame 5
stop();
Symbol 1003 MovieClip [soldierf] Frame 6
stop();
Symbol 1003 MovieClip [soldierf] Frame 10
stop();
Symbol 1020 MovieClip Frame 17
_parent.gotoAndStop(3);
Symbol 1043 MovieClip Frame 17
stop();
Symbol 1054 MovieClip Frame 10
stop();
Symbol 1056 MovieClip Frame 61
_parent.gotoAndStop(3);
Symbol 1057 MovieClip [soldiere] Frame 1
stop();
Symbol 1057 MovieClip [soldiere] Frame 2
stop();
Symbol 1057 MovieClip [soldiere] Frame 3
stop();
Symbol 1057 MovieClip [soldiere] Frame 4
stop();
Symbol 1057 MovieClip [soldiere] Frame 5
stop();
Symbol 1057 MovieClip [soldiere] Frame 6
stop();
Symbol 1057 MovieClip [soldiere] Frame 10
stop();
Symbol 1074 MovieClip Frame 17
_parent.gotoAndStop(3);
Symbol 1096 MovieClip Frame 17
stop();
Symbol 1104 MovieClip Frame 41
stop();
Symbol 1106 MovieClip Frame 61
_parent.gotoAndStop(3);
Symbol 1107 MovieClip [soldierd] Frame 1
stop();
Symbol 1107 MovieClip [soldierd] Frame 2
stop();
Symbol 1107 MovieClip [soldierd] Frame 3
stop();
Symbol 1107 MovieClip [soldierd] Frame 4
stop();
Symbol 1107 MovieClip [soldierd] Frame 5
stop();
Symbol 1107 MovieClip [soldierd] Frame 6
stop();
Symbol 1107 MovieClip [soldierd] Frame 10
stop();
Symbol 1124 MovieClip Frame 17
_parent.gotoAndStop(3);
Symbol 1146 MovieClip Frame 17
stop();
Symbol 1149 MovieClip Frame 61
_parent.gotoAndStop(3);
Symbol 1150 MovieClip [soldierc] Frame 1
stop();
Symbol 1150 MovieClip [soldierc] Frame 2
stop();
Symbol 1150 MovieClip [soldierc] Frame 3
stop();
Symbol 1150 MovieClip [soldierc] Frame 4
stop();
Symbol 1150 MovieClip [soldierc] Frame 5
stop();
Symbol 1150 MovieClip [soldierc] Frame 10
stop();
Symbol 1167 MovieClip Frame 17
_parent.gotoAndStop(3);
Symbol 1189 MovieClip Frame 17
stop();
Symbol 1192 MovieClip Frame 61
_parent.gotoAndStop(3);
Symbol 1193 MovieClip [soldierb] Frame 1
stop();
Symbol 1193 MovieClip [soldierb] Frame 2
stop();
Symbol 1193 MovieClip [soldierb] Frame 3
stop();
Symbol 1193 MovieClip [soldierb] Frame 4
stop();
Symbol 1193 MovieClip [soldierb] Frame 5
stop();
Symbol 1193 MovieClip [soldierb] Frame 10
stop();
Symbol 1210 MovieClip Frame 17
_parent.gotoAndStop(3);
Symbol 1232 MovieClip Frame 17
stop();
Symbol 1235 MovieClip Frame 61
_parent.gotoAndStop(3);
Symbol 1236 MovieClip [soldieraclip] Frame 1
stop();
Symbol 1236 MovieClip [soldieraclip] Frame 2
stop();
Symbol 1236 MovieClip [soldieraclip] Frame 3
stop();
Symbol 1236 MovieClip [soldieraclip] Frame 4
stop();
Symbol 1236 MovieClip [soldieraclip] Frame 5
stop();
Symbol 1236 MovieClip [soldieraclip] Frame 10
stop();
Symbol 1242 MovieClip Frame 6
stop();
Symbol 1243 MovieClip [bloodred] Frame 1
stop();
Symbol 1243 MovieClip [bloodred] Frame 2
stop();
Symbol 1270 MovieClip Frame 1
stop();
Symbol 1270 MovieClip Frame 2
stop();
Symbol 1273 MovieClip Frame 1
stop();
Symbol 1284 MovieClip Frame 1
stop();
Symbol 1284 MovieClip Frame 2
stop();
Symbol 1286 MovieClip Frame 1
stop();
Symbol 1286 MovieClip Frame 2
stop();
Symbol 1288 MovieClip Frame 1
stop();
Symbol 1288 MovieClip Frame 2
stop();
Symbol 1290 MovieClip Frame 1
stop();
Symbol 1290 MovieClip Frame 2
stop();
Symbol 1292 MovieClip Frame 1
stop();
Symbol 1292 MovieClip Frame 2
stop();
Symbol 1294 MovieClip Frame 1
stop();
Symbol 1294 MovieClip Frame 2
stop();
Symbol 1296 MovieClip Frame 1
stop();
Symbol 1296 MovieClip Frame 2
stop();
Symbol 1298 MovieClip Frame 1
stop();
Symbol 1298 MovieClip Frame 2
stop();
Symbol 1300 MovieClip Frame 1
stop();
Symbol 1300 MovieClip Frame 2
stop();
Symbol 1302 MovieClip Frame 1
stop();
Symbol 1302 MovieClip Frame 2
stop();
Symbol 1304 MovieClip Frame 1
stop();
Symbol 1304 MovieClip Frame 2
stop();
Symbol 1306 MovieClip Frame 1
stop();
Symbol 1306 MovieClip Frame 2
stop();
Symbol 1308 MovieClip Frame 1
stop();
Symbol 1308 MovieClip Frame 2
stop();
Symbol 1310 MovieClip Frame 1
stop();
Symbol 1310 MovieClip Frame 2
stop();
Symbol 1312 MovieClip Frame 1
stop();
Symbol 1312 MovieClip Frame 2
stop();
Symbol 1314 MovieClip Frame 1
stop();
Symbol 1314 MovieClip Frame 2
stop();
Symbol 1316 MovieClip Frame 1
stop();
Symbol 1316 MovieClip Frame 2
stop();
Symbol 1318 MovieClip Frame 1
stop();
Symbol 1318 MovieClip Frame 2
stop();
Symbol 1320 MovieClip Frame 1
stop();
Symbol 1320 MovieClip Frame 2
stop();
Symbol 1322 MovieClip Frame 1
stop();
Symbol 1322 MovieClip Frame 2
stop();
Symbol 1324 MovieClip Frame 1
stop();
Symbol 1324 MovieClip Frame 2
stop();
Symbol 1326 MovieClip Frame 1
stop();
Symbol 1326 MovieClip Frame 2
stop();
Symbol 1328 MovieClip Frame 1
stop();
Symbol 1328 MovieClip Frame 2
stop();
Symbol 1330 MovieClip Frame 1
stop();
Symbol 1330 MovieClip Frame 2
stop();
Symbol 1332 MovieClip Frame 1
stop();
Symbol 1332 MovieClip Frame 2
stop();
Symbol 1334 MovieClip Frame 1
stop();
Symbol 1334 MovieClip Frame 2
stop();
Symbol 1336 MovieClip Frame 1
stop();
Symbol 1336 MovieClip Frame 2
stop();
Symbol 1338 MovieClip Frame 1
stop();
Symbol 1338 MovieClip Frame 2
stop();
Symbol 1340 MovieClip Frame 1
stop();
Symbol 1340 MovieClip Frame 2
stop();
Symbol 1342 MovieClip Frame 1
stop();
Symbol 1342 MovieClip Frame 2
stop();
Symbol 1344 MovieClip Frame 1
stop();
Symbol 1344 MovieClip Frame 2
stop();
Symbol 1346 MovieClip Frame 1
stop();
Symbol 1346 MovieClip Frame 2
stop();
Symbol 1348 MovieClip Frame 1
stop();
Symbol 1348 MovieClip Frame 2
stop();
Symbol 1350 MovieClip Frame 1
stop();
Symbol 1350 MovieClip Frame 2
stop();
Symbol 1352 MovieClip Frame 1
stop();
Symbol 1352 MovieClip Frame 2
stop();
Symbol 1354 MovieClip Frame 1
stop();
Symbol 1354 MovieClip Frame 2
stop();
Symbol 1356 MovieClip Frame 1
stop();
Symbol 1356 MovieClip Frame 2
stop();
Symbol 1358 MovieClip Frame 1
stop();
Symbol 1358 MovieClip Frame 2
stop();
Symbol 1359 MovieClip Frame 1
stop();
Symbol 1359 MovieClip Frame 2
stop();
Symbol 1360 MovieClip Frame 1
stop();
Symbol 1360 MovieClip Frame 2
stop();
Symbol 1373 MovieClip Frame 1
stop();
Symbol 1373 MovieClip Frame 2
stop();
Symbol 1375 MovieClip Frame 1
stop();
Symbol 1375 MovieClip Frame 2
stop();
Symbol 1377 MovieClip Frame 1
stop();
Symbol 1377 MovieClip Frame 2
stop();
Symbol 1379 MovieClip Frame 1
stop();
Symbol 1379 MovieClip Frame 2
stop();
Symbol 1384 MovieClip Frame 1
stop();
Symbol 1384 MovieClip Frame 15
stop();
Symbol 1393 MovieClip Frame 1
stop();
Symbol 1393 MovieClip Frame 2
stop();
Symbol 1396 MovieClip Frame 1
stop();
Symbol 1396 MovieClip Frame 2
stop();
Symbol 1399 MovieClip Frame 1
stop();
Symbol 1399 MovieClip Frame 2
stop();
Symbol 1402 MovieClip Frame 1
stop();
Symbol 1402 MovieClip Frame 2
stop();
Symbol 1405 MovieClip Frame 1
stop();
Symbol 1405 MovieClip Frame 2
stop();
Symbol 1408 MovieClip Frame 1
stop();
Symbol 1408 MovieClip Frame 2
stop();
Symbol 1411 MovieClip Frame 1
stop();
Symbol 1411 MovieClip Frame 2
stop();
Symbol 1414 MovieClip Frame 1
stop();
Symbol 1414 MovieClip Frame 2
stop();
Symbol 1417 MovieClip Frame 1
stop();
Symbol 1417 MovieClip Frame 2
stop();
Symbol 1420 MovieClip Frame 1
stop();
Symbol 1420 MovieClip Frame 2
stop();
Symbol 1423 MovieClip Frame 1
stop();
Symbol 1423 MovieClip Frame 2
stop();
Symbol 1426 MovieClip Frame 1
stop();
Symbol 1426 MovieClip Frame 2
stop();
Symbol 1437 MovieClip Frame 1
stop();
Symbol 1437 MovieClip Frame 2
stop();
Symbol 1437 MovieClip Frame 3
stop();
Symbol 1437 MovieClip Frame 4
stop();
Symbol 1437 MovieClip Frame 5
stop();
Symbol 1437 MovieClip Frame 6
stop();
Symbol 1437 MovieClip Frame 7
stop();
Symbol 1437 MovieClip Frame 8
stop();
Symbol 1437 MovieClip Frame 9
stop();
Symbol 1437 MovieClip Frame 10
stop();
Symbol 1440 MovieClip Frame 1
stop();
Symbol 1440 MovieClip Frame 2
stop();
Symbol 1444 MovieClip Frame 1
stop();
Symbol 1444 MovieClip Frame 2
stop();
Symbol 1457 MovieClip Frame 12
gotoAndPlay (1);
Symbol 1457 MovieClip Frame 13
stop();
Symbol 1470 MovieClip Frame 1
stop();
Symbol 1470 MovieClip Frame 2
stop();
Symbol 1470 MovieClip Frame 3
stop();
Symbol 1470 MovieClip Frame 4
stop();
Symbol 1470 MovieClip Frame 5
stop();
Symbol 1470 MovieClip Frame 6
stop();
Symbol 1470 MovieClip Frame 7
stop();
Symbol 1470 MovieClip Frame 8
stop();
Symbol 1470 MovieClip Frame 9
stop();
Symbol 1470 MovieClip Frame 10
stop();
Symbol 1470 MovieClip Frame 11
stop();
Symbol 1470 MovieClip Frame 12
stop();
Symbol 1470 MovieClip Frame 13
stop();
Symbol 1470 MovieClip Frame 14
stop();
Symbol 1470 MovieClip Frame 15
stop();
Symbol 1470 MovieClip Frame 16
stop();
Symbol 1481 MovieClip Frame 1
stop();
Symbol 1481 MovieClip Frame 2
stop();
Symbol 1481 MovieClip Frame 3
stop();
Symbol 1481 MovieClip Frame 4
stop();
Symbol 1481 MovieClip Frame 5
stop();
Symbol 1481 MovieClip Frame 6
stop();
Symbol 1481 MovieClip Frame 7
stop();
Symbol 1481 MovieClip Frame 8
stop();
Symbol 1481 MovieClip Frame 9
stop();
Symbol 1485 MovieClip Frame 1
stop();
Symbol 1485 MovieClip Frame 2
stop();
Symbol 1488 MovieClip Frame 1
stop();
Symbol 1488 MovieClip Frame 2
stop();
Symbol 1491 MovieClip Frame 1
stop();
Symbol 1491 MovieClip Frame 2
stop();
Symbol 1500 MovieClip Frame 1
stop();
Symbol 1500 MovieClip Frame 2
stop();
Symbol 1500 MovieClip Frame 3
stop();
Symbol 1500 MovieClip Frame 4
stop();
Symbol 1500 MovieClip Frame 5
stop();
Symbol 1500 MovieClip Frame 6
stop();
Symbol 1500 MovieClip Frame 7
stop();
Symbol 1500 MovieClip Frame 8
stop();
Symbol 1505 MovieClip Frame 1
stop();
Symbol 1505 MovieClip Frame 2
stop();
Symbol 1505 MovieClip Frame 3
stop();
Symbol 1505 MovieClip Frame 4
stop();
Symbol 1518 MovieClip Frame 1
stop();
Symbol 1518 MovieClip Frame 2
stop();
Symbol 1518 MovieClip Frame 3
stop();
Symbol 1518 MovieClip Frame 4
stop();
Symbol 1518 MovieClip Frame 5
stop();
Symbol 1518 MovieClip Frame 6
stop();
Symbol 1518 MovieClip Frame 7
stop();
Symbol 1518 MovieClip Frame 8
stop();
Symbol 1518 MovieClip Frame 9
stop();
Symbol 1518 MovieClip Frame 10
stop();
Symbol 1520 MovieClip Frame 1
stop();
Symbol 1520 MovieClip Frame 2
stop();
Symbol 1520 MovieClip Frame 3
stop();
Symbol 1520 MovieClip Frame 4
stop();
Symbol 1520 MovieClip Frame 5
stop();
Symbol 1520 MovieClip Frame 6
stop();
Symbol 1520 MovieClip Frame 7
stop();
Symbol 1520 MovieClip Frame 8
stop();
Symbol 1520 MovieClip Frame 9
stop();
Symbol 1520 MovieClip Frame 10
stop();
Symbol 1521 MovieClip Frame 1
stop();
Symbol 1521 MovieClip Frame 2
stop();
Symbol 1521 MovieClip Frame 3
stop();
Symbol 1521 MovieClip Frame 4
stop();
Symbol 1523 MovieClip Frame 1
stop();
Symbol 1523 MovieClip Frame 2
stop();
Symbol 1523 MovieClip Frame 3
stop();
Symbol 1524 MovieClip Frame 1
stop();
Symbol 1524 MovieClip Frame 2
stop();
Symbol 1534 MovieClip Frame 1
stop();
Symbol 1534 MovieClip Frame 2
stop();
Symbol 1534 MovieClip Frame 3
stop();
Symbol 1534 MovieClip Frame 4
stop();
Symbol 1534 MovieClip Frame 5
stop();
Symbol 1534 MovieClip Frame 6
stop();
Symbol 1534 MovieClip Frame 7
stop();
Symbol 1534 MovieClip Frame 8
stop();
Symbol 1535 MovieClip Frame 1
stop();
Symbol 1535 MovieClip Frame 2
stop();
Symbol 1535 MovieClip Frame 3
stop();
Symbol 1548 MovieClip Frame 1
stop();
Symbol 1548 MovieClip Frame 2
stop();
Symbol 1548 MovieClip Frame 3
stop();
Symbol 1548 MovieClip Frame 4
stop();
Symbol 1548 MovieClip Frame 5
stop();
Symbol 1548 MovieClip Frame 6
stop();
Symbol 1553 MovieClip Frame 60
stop();
Symbol 1553 MovieClip Frame 61
stop();
Symbol 1554 MovieClip Frame 1
stop();
Symbol 1554 MovieClip Frame 2
stop();
Symbol 1558 MovieClip Frame 61
stop();
Symbol 1558 MovieClip Frame 62
stop();
Symbol 1559 MovieClip Frame 1
stop();
Symbol 1559 MovieClip Frame 2
stop();
Symbol 1569 MovieClip Frame 10
_parent.gotoAndStop(1);
Symbol 1570 MovieClip Frame 1
stop();
Symbol 1570 MovieClip Frame 2
stop();
Symbol 1581 MovieClip Frame 11
_parent.gotoAndStop(1);
Symbol 1582 MovieClip Frame 1
stop();
Symbol 1582 MovieClip Frame 2
stop();
Symbol 1589 MovieClip Frame 7
_parent.gotoAndStop(1);
Symbol 1590 MovieClip Frame 1
stop();
Symbol 1590 MovieClip Frame 2
stop();
Symbol 1592 MovieClip Frame 10
_parent.gotoAndStop(1);
Symbol 1593 MovieClip Frame 1
stop();
Symbol 1593 MovieClip Frame 2
stop();
Symbol 1599 MovieClip Frame 1
stop();
Symbol 1599 MovieClip Frame 2
stop();
Symbol 1603 MovieClip Frame 1
stop();
Symbol 1603 MovieClip Frame 2
stop();
Symbol 1609 MovieClip Frame 1
stop();
Symbol 1609 MovieClip Frame 7
stop();
Symbol 1622 MovieClip Frame 11
stop();
Symbol 1625 MovieClip Frame 4
_parent.gotoAndStop(1);
Symbol 1637 MovieClip Frame 25
stop();
Symbol 1638 MovieClip Frame 1
stop();
Symbol 1638 MovieClip Frame 2
stop();
Symbol 1638 MovieClip Frame 3
stop();
Symbol 1638 MovieClip Frame 4
stop();
Symbol 1638 MovieClip Frame 5
stop();
Symbol 1640 MovieClip Frame 41
stop();
Symbol 1642 MovieClip Frame 41
stop();
Symbol 1644 MovieClip Frame 41
stop();
Symbol 1646 MovieClip Frame 41
stop();
Symbol 1648 MovieClip Frame 41
stop();
Symbol 1650 MovieClip Frame 41
stop();
Symbol 1652 MovieClip Frame 41
stop();
Symbol 1654 MovieClip Frame 41
stop();
Symbol 1656 MovieClip Frame 41
stop();
Symbol 1658 MovieClip Frame 41
stop();
Symbol 1660 MovieClip Frame 41
stop();
Symbol 1662 MovieClip Frame 41
stop();
Symbol 1664 MovieClip Frame 41
stop();
Symbol 1666 MovieClip Frame 41
stop();
Symbol 1668 MovieClip Frame 41
stop();
Symbol 1670 MovieClip Frame 41
stop();
Symbol 1672 MovieClip Frame 41
stop();
Symbol 1674 MovieClip Frame 41
stop();
Symbol 1676 MovieClip Frame 41
stop();
Symbol 1678 MovieClip Frame 41
stop();
Symbol 1680 MovieClip Frame 41
stop();
Symbol 1682 MovieClip Frame 41
stop();
Symbol 1684 MovieClip Frame 41
stop();
Symbol 1686 MovieClip Frame 41
stop();
Symbol 1688 MovieClip Frame 41
stop();
Symbol 1690 MovieClip Frame 41
stop();
Symbol 1692 MovieClip Frame 41
stop();
Symbol 1694 MovieClip Frame 41
stop();
Symbol 1696 MovieClip Frame 41
stop();
Symbol 1698 MovieClip Frame 41
stop();
Symbol 1700 MovieClip Frame 41
stop();
Symbol 1702 MovieClip Frame 41
stop();
Symbol 1704 MovieClip Frame 41
stop();
Symbol 1706 MovieClip Frame 41
stop();
Symbol 1708 MovieClip Frame 41
stop();
Symbol 1710 MovieClip Frame 41
stop();
Symbol 1712 MovieClip Frame 41
stop();
Symbol 1714 MovieClip Frame 41
stop();
Symbol 1716 MovieClip Frame 41
stop();
Symbol 1718 MovieClip Frame 41
stop();
Symbol 1719 MovieClip Frame 1
stop();
Symbol 1719 MovieClip Frame 2
stop();
Symbol 1719 MovieClip Frame 3
stop();
Symbol 1719 MovieClip Frame 4
stop();
Symbol 1719 MovieClip Frame 5
stop();
Symbol 1719 MovieClip Frame 6
stop();
Symbol 1719 MovieClip Frame 7
stop();
Symbol 1719 MovieClip Frame 8
stop();
Symbol 1719 MovieClip Frame 9
stop();
Symbol 1719 MovieClip Frame 10
stop();
Symbol 1719 MovieClip Frame 11
stop();
Symbol 1719 MovieClip Frame 12
stop();
Symbol 1719 MovieClip Frame 13
stop();
Symbol 1719 MovieClip Frame 14
stop();
Symbol 1719 MovieClip Frame 15
stop();
Symbol 1719 MovieClip Frame 16
stop();
Symbol 1719 MovieClip Frame 17
stop();
Symbol 1719 MovieClip Frame 18
stop();
Symbol 1719 MovieClip Frame 19
stop();
Symbol 1719 MovieClip Frame 20
stop();
Symbol 1719 MovieClip Frame 21
stop();
Symbol 1719 MovieClip Frame 22
stop();
Symbol 1719 MovieClip Frame 23
stop();
Symbol 1719 MovieClip Frame 24
stop();
Symbol 1719 MovieClip Frame 25
stop();
Symbol 1719 MovieClip Frame 26
stop();
Symbol 1719 MovieClip Frame 27
stop();
Symbol 1719 MovieClip Frame 28
stop();
Symbol 1719 MovieClip Frame 29
stop();
Symbol 1719 MovieClip Frame 30
stop();
Symbol 1719 MovieClip Frame 31
stop();
Symbol 1719 MovieClip Frame 32
stop();
Symbol 1719 MovieClip Frame 33
stop();
Symbol 1719 MovieClip Frame 34
stop();
Symbol 1719 MovieClip Frame 35
stop();
Symbol 1719 MovieClip Frame 36
stop();
Symbol 1719 MovieClip Frame 37
stop();
Symbol 1719 MovieClip Frame 38
stop();
Symbol 1719 MovieClip Frame 39
stop();
Symbol 1719 MovieClip Frame 40
stop();
Symbol 1719 MovieClip Frame 41
stop();
Symbol 1729 MovieClip Frame 1
stop();
Symbol 1729 MovieClip Frame 2
stop();
Symbol 1731 MovieClip Frame 8
stop();
Symbol 1731 MovieClip Frame 15
stop();
Symbol 1733 MovieClip Frame 1
stop();
Symbol 1735 MovieClip Frame 1
stop();
Symbol 1737 MovieClip Frame 1
stop();
Symbol 1739 MovieClip Frame 1
stop();
Symbol 1741 MovieClip Frame 1
stop();
Symbol 1743 MovieClip Frame 1
stop();
Symbol 1745 MovieClip Frame 1
stop();
Symbol 1747 MovieClip Frame 1
stop();
Symbol 1749 MovieClip Frame 1
stop();
Symbol 1750 MovieClip Frame 1
stop();
Symbol 1752 MovieClip Frame 1
stop();
Symbol 1754 MovieClip Frame 1
stop();
Symbol 1756 MovieClip Frame 1
stop();
Symbol 1758 MovieClip Frame 1
stop();
Symbol 1761 MovieClip Frame 1
stop();
Symbol 1763 MovieClip Frame 1
stop();
Symbol 1765 MovieClip Frame 1
stop();