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;
}
}
stop();
mochi.as2.MochiAd.showPreGameAd({id:"c22e78351499806b", res:"650x450"});
loadingBar._xscale = 1;
var loadingCall = setInterval(preloadSite, 50);
Frame 4
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();
}
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);
};
_root.bscore.onRelease = function () {
gotoAndPlay (195);
_root.sondi.gotoAndPlay(2);
};
Frame 104
stop();
_root.exit.onRelease = function () {
gotoAndPlay (105);
_root.sondi.gotoAndPlay(2);
};
_root.tr1.onRollOver = function () {
_root.it1.gotoAndStop(2);
};
_root.tr1.onRollOut = function () {
_root.it1.gotoAndStop(1);
};
_root.tr2.onRollOver = function () {
_root.it2.gotoAndStop(2);
};
_root.tr2.onRollOut = function () {
_root.it2.gotoAndStop(1);
};
_root.tr3.onRollOver = function () {
_root.it3.gotoAndStop(2);
};
_root.tr3.onRollOut = function () {
_root.it3.gotoAndStop(1);
};
_root.tr4.onRollOver = function () {
_root.it4.gotoAndStop(2);
};
_root.tr4.onRollOut = function () {
_root.it4.gotoAndStop(1);
};
_root.tr5.onRollOver = function () {
_root.it5.gotoAndStop(2);
};
_root.tr5.onRollOut = function () {
_root.it5.gotoAndStop(1);
};
_root.tr6.onRollOver = function () {
_root.it6.gotoAndStop(2);
};
_root.tr6.onRollOut = function () {
_root.it6.gotoAndStop(1);
};
_root.tr7.onRollOver = function () {
_root.it7.gotoAndStop(2);
};
_root.tr7.onRollOut = function () {
_root.it7.gotoAndStop(1);
};
_root.tr8.onRollOver = function () {
_root.it8.gotoAndStop(2);
};
_root.tr8.onRollOut = function () {
_root.it8.gotoAndStop(1);
};
_root.tr9.onRollOver = function () {
_root.it9.gotoAndStop(2);
};
_root.tr9.onRollOut = function () {
_root.it9.gotoAndStop(1);
};
_root.tr10.onRollOver = function () {
_root.it10.gotoAndStop(2);
};
_root.tr10.onRollOut = function () {
_root.it10.gotoAndStop(1);
};
_root.tr11.onRollOver = function () {
_root.it11.gotoAndStop(2);
};
_root.tr11.onRollOut = function () {
_root.it11.gotoAndStop(1);
};
_root.tr12.onRollOver = function () {
_root.it12.gotoAndStop(2);
};
_root.tr12.onRollOut = function () {
_root.it12.gotoAndStop(1);
};
_root.tr13.onRollOver = function () {
_root.it13.gotoAndStop(2);
};
_root.tr13.onRollOut = function () {
_root.it13.gotoAndStop(1);
};
_root.tr14.onRollOver = function () {
_root.it14.gotoAndStop(2);
};
_root.tr14.onRollOut = function () {
_root.it14.gotoAndStop(1);
};
_root.tr15.onRollOver = function () {
_root.it15.gotoAndStop(2);
};
_root.tr15.onRollOut = function () {
_root.it15.gotoAndStop(1);
};
_root.tr16.onRollOver = function () {
_root.it16.gotoAndStop(2);
};
_root.tr16.onRollOut = function () {
_root.it16.gotoAndStop(1);
};
_root.tr17.onRollOver = function () {
_root.it17.gotoAndStop(2);
};
_root.tr17.onRollOut = function () {
_root.it17.gotoAndStop(1);
};
_root.tr18.onRollOver = function () {
_root.it18.gotoAndStop(2);
};
_root.tr18.onRollOut = function () {
_root.it18.gotoAndStop(1);
};
_root.tr19.onRollOver = function () {
_root.it19.gotoAndStop(2);
};
_root.tr19.onRollOut = function () {
_root.it19.gotoAndStop(1);
};
_root.tr20.onRollOver = function () {
_root.it20.gotoAndStop(2);
};
_root.tr20.onRollOut = function () {
_root.it20.gotoAndStop(1);
};
_root.tr21.onRollOver = function () {
_root.it21.gotoAndStop(2);
};
_root.tr21.onRollOut = function () {
_root.it21.gotoAndStop(1);
};
_root.tr22.onRollOver = function () {
_root.it22.gotoAndStop(2);
};
_root.tr22.onRollOut = function () {
_root.it22.gotoAndStop(1);
};
_root.tr23.onRollOver = function () {
_root.it23.gotoAndStop(2);
};
_root.tr23.onRollOut = function () {
_root.it23.gotoAndStop(1);
};
_root.tr24.onRollOver = function () {
_root.it24.gotoAndStop(2);
};
_root.tr24.onRollOut = function () {
_root.it24.gotoAndStop(1);
};
_root.tr25.onRollOver = function () {
_root.it25.gotoAndStop(2);
};
_root.tr25.onRollOut = function () {
_root.it25.gotoAndStop(1);
};
_root.tr26.onRollOver = function () {
_root.it26.gotoAndStop(2);
};
_root.tr26.onRollOut = function () {
_root.it26.gotoAndStop(1);
};
_root.tr27.onRollOver = function () {
_root.it27.gotoAndStop(2);
};
_root.tr27.onRollOut = function () {
_root.it27.gotoAndStop(1);
};
_root.tr28.onRollOver = function () {
_root.it28.gotoAndStop(2);
};
_root.tr28.onRollOut = function () {
_root.it28.gotoAndStop(1);
};
_root.tr29.onRollOver = function () {
_root.it29.gotoAndStop(2);
};
_root.tr29.onRollOut = function () {
_root.it29.gotoAndStop(1);
};
_root.tr30.onRollOver = function () {
_root.it30.gotoAndStop(2);
};
_root.tr30.onRollOut = function () {
_root.it30.gotoAndStop(1);
};
_root.tr31.onRollOver = function () {
_root.it31.gotoAndStop(2);
};
_root.tr31.onRollOut = function () {
_root.it31.gotoAndStop(1);
};
_root.tr32.onRollOver = function () {
_root.it32.gotoAndStop(2);
};
_root.tr32.onRollOut = function () {
_root.it32.gotoAndStop(1);
};
_root.tr33.onRollOver = function () {
_root.it33.gotoAndStop(2);
};
_root.tr33.onRollOut = function () {
_root.it33.gotoAndStop(1);
};
_root.tr34.onRollOver = function () {
_root.it34.gotoAndStop(2);
};
_root.tr34.onRollOut = function () {
_root.it34.gotoAndStop(1);
};
_root.tr35.onRollOver = function () {
_root.it35.gotoAndStop(2);
};
_root.tr35.onRollOut = function () {
_root.it35.gotoAndStop(1);
};
_root.tr36.onRollOver = function () {
_root.it36.gotoAndStop(2);
};
_root.tr36.onRollOut = function () {
_root.it36.gotoAndStop(1);
};
_root.tr37.onRollOver = function () {
_root.it37.gotoAndStop(2);
};
_root.tr37.onRollOut = function () {
_root.it37.gotoAndStop(1);
};
_root.tr38.onRollOver = function () {
_root.it38.gotoAndStop(2);
};
_root.tr38.onRollOut = function () {
_root.it38.gotoAndStop(1);
};
_root.tr39.onRollOver = function () {
_root.it39.gotoAndStop(2);
};
_root.tr39.onRollOut = function () {
_root.it39.gotoAndStop(1);
};
_root.tr40.onRollOver = function () {
_root.it40.gotoAndStop(2);
};
_root.tr40.onRollOut = function () {
_root.it40.gotoAndStop(1);
};
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 (237);
}
};
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 204
function verscorer() {
if (showit == 1) {
datain.load("http://www.fliptic.com/mcgetdata.php", "GET");
}
if (showit == 2) {
datain.load("http://www.fliptic.com/mcgetdata2.php", "GET");
}
if (showit == 3) {
datain.load("http://www.fliptic.com/mcgetdata3.php", "GET");
}
if (showit == 4) {
datain.load("http://www.fliptic.com/mcgetdata4.php", "GET");
}
}
function scoreload() {
i = 0;
while (i < scoline.length) {
liny = _root[scoline[i]];
r = 0;
while (r < namesc.length) {
namy = liny[namesc[r]];
namy.gotoAndStop(1);
r++;
}
g = 0;
while (g < numsc.length) {
numy = liny[numsc[g]];
numy.gotoAndStop(1);
g++;
}
i++;
}
i = 0;
while (i < scoline.length) {
liny = _root[scoline[i]];
r = 0;
while (r < namesc.length) {
namy = liny[namesc[r]];
namy.gotoAndStop(dataname[i][r]);
if (dataname[i][r] == 0) {
namy._alpha = 0;
}
if (dataname[i][r] > 0) {
namy._alpha = 100;
}
r++;
}
g = 0;
while (g < numsc.length) {
numy = liny[numsc[g]];
numy.gotoAndStop(datascore[i][g] + 1);
g++;
}
bmmillo = Math.floor(tempscore[i] / 100000000);
bmillodeci = Math.floor((tempscore[i] - (bmmillo * 100000000)) / 10000000);
bmillouni = Math.floor(((tempscore[i] - (bmmillo * 100000000)) - (bmillodeci * 10000000)) / 1000000);
bmmil = Math.floor((((tempscore[i] - (bmmillo * 100000000)) - (bmillodeci * 10000000)) - (bmillouni * 1000000)) / 100000);
bmildeci = Math.floor(((((tempscore[i] - (bmmillo * 100000000)) - (bmillodeci * 10000000)) - (bmillouni * 1000000)) - (bmmil * 100000)) / 10000);
bmiluni = Math.floor((((((tempscore[i] - (bmmillo * 100000000)) - (bmillodeci * 10000000)) - (bmillouni * 1000000)) - (bmmil * 100000)) - (bmildeci * 10000)) / 1000);
bmil = Math.floor(((((((tempscore[i] - (bmmillo * 100000000)) - (bmillodeci * 10000000)) - (bmillouni * 1000000)) - (bmmil * 100000)) - (bmildeci * 10000)) - (bmiluni * 1000)) / 100);
bdeci = Math.floor((((((((tempscore[i] - (bmmillo * 100000000)) - (bmillodeci * 10000000)) - (bmillouni * 1000000)) - (bmmil * 100000)) - (bmildeci * 10000)) - (bmiluni * 1000)) - (bmil * 100)) / 10);
buni = Math.floor((((((((tempscore[i] - (bmmillo * 100000000)) - (bmillodeci * 10000000)) - (bmillouni * 1000000)) - (bmmil * 100000)) - (bmildeci * 10000)) - (bmiluni * 1000)) - (bmil * 100)) - (bdeci * 10));
if (bmmillo > 0) {
liny.cu9._alpha = 100;
liny.cu8._alpha = 100;
liny.cu7._alpha = 100;
liny.cu6._alpha = 100;
liny.cu5._alpha = 100;
liny.cu4._alpha = 100;
liny.cu3._alpha = 100;
liny.cu2._alpha = 100;
liny.cu1._alpha = 100;
} else if (bmillodeci > 0) {
liny.cu9._alpha = 0;
liny.cu8._alpha = 100;
liny.cu7._alpha = 100;
liny.cu6._alpha = 100;
liny.cu5._alpha = 100;
liny.cu4._alpha = 100;
liny.cu3._alpha = 100;
liny.cu2._alpha = 100;
liny.cu1._alpha = 100;
} else if (bmillouni > 0) {
liny.cu9._alpha = 0;
liny.cu8._alpha = 0;
liny.cu7._alpha = 100;
liny.cu6._alpha = 100;
liny.cu5._alpha = 100;
liny.cu4._alpha = 100;
liny.cu3._alpha = 100;
liny.cu2._alpha = 100;
liny.cu1._alpha = 100;
} else if (bmmil > 0) {
liny.cu9._alpha = 0;
liny.cu8._alpha = 0;
liny.cu7._alpha = 0;
liny.cu6._alpha = 100;
liny.cu5._alpha = 100;
liny.cu4._alpha = 100;
liny.cu3._alpha = 100;
liny.cu2._alpha = 100;
liny.cu1._alpha = 100;
} else if (bmildeci > 0) {
liny.cu9._alpha = 0;
liny.cu8._alpha = 0;
liny.cu7._alpha = 0;
liny.cu6._alpha = 0;
liny.cu5._alpha = 100;
liny.cu4._alpha = 100;
liny.cu3._alpha = 100;
liny.cu2._alpha = 100;
liny.cu1._alpha = 100;
} else if (bmiluni > 0) {
liny.cu9._alpha = 0;
liny.cu8._alpha = 0;
liny.cu7._alpha = 0;
liny.cu6._alpha = 0;
liny.cu5._alpha = 0;
liny.cu4._alpha = 100;
liny.cu3._alpha = 100;
liny.cu2._alpha = 100;
liny.cu1._alpha = 100;
} else if (bmil > 0) {
liny.cu9._alpha = 0;
liny.cu8._alpha = 0;
liny.cu7._alpha = 0;
liny.cu6._alpha = 0;
liny.cu5._alpha = 0;
liny.cu4._alpha = 0;
liny.cu3._alpha = 100;
liny.cu2._alpha = 100;
liny.cu1._alpha = 100;
} else if (bdeci > 0) {
liny.cu9._alpha = 0;
liny.cu8._alpha = 0;
liny.cu7._alpha = 0;
liny.cu6._alpha = 0;
liny.cu5._alpha = 0;
liny.cu4._alpha = 0;
liny.cu3._alpha = 0;
liny.cu2._alpha = 100;
liny.cu1._alpha = 100;
} else if (buni > 0) {
liny.cu9._alpha = 0;
liny.cu8._alpha = 0;
liny.cu7._alpha = 0;
liny.cu6._alpha = 0;
liny.cu5._alpha = 0;
liny.cu4._alpha = 0;
liny.cu3._alpha = 0;
liny.cu2._alpha = 0;
liny.cu1._alpha = 100;
} else if ((((((buni == 0) && (bdeci == 0)) && (bmil == 0)) && (bmiluni == 0)) && (bmildeci == 0)) && (bmmil == 0)) {
liny.cu9._alpha = 0;
liny.cu8._alpha = 0;
liny.cu7._alpha = 0;
liny.cu6._alpha = 0;
liny.cu5._alpha = 0;
liny.cu4._alpha = 0;
liny.cu3._alpha = 0;
liny.cu2._alpha = 0;
liny.cu1._alpha = 100;
}
i++;
}
_root.sc1._alpha = 100;
_root.sc2._alpha = 100;
_root.sc3._alpha = 100;
_root.sc4._alpha = 100;
_root.sc5._alpha = 100;
_root.sc6._alpha = 100;
_root.sc7._alpha = 100;
_root.sc8._alpha = 100;
_root.sc9._alpha = 100;
_root.sc10._alpha = 100;
}
function loading() {
datain.onLoad = function () {
dataname = [];
tempscore = [];
datascore = [];
dataname = [this.name1.split(","), this.name2.split(","), this.name3.split(","), this.name4.split(","), this.name5.split(","), this.name6.split(","), this.name7.split(","), this.name8.split(","), this.name9.split(","), this.name10.split(",")];
tempscore = [this.score1, this.score2, this.score3, this.score4, this.score5, this.score6, this.score7, this.score8, this.score9, this.score10];
datascore = [[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, 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, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0]];
t = 0;
while (t < datascore.length) {
bmmillo = Math.floor(tempscore[t] / 100000000);
bmillodeci = Math.floor((tempscore[t] - (bmmillo * 100000000)) / 10000000);
bmillouni = Math.floor(((tempscore[t] - (bmmillo * 100000000)) - (bmillodeci * 10000000)) / 1000000);
bmmil = Math.floor((((tempscore[t] - (bmmillo * 100000000)) - (bmillodeci * 10000000)) - (bmillouni * 1000000)) / 100000);
bmildeci = Math.floor(((((tempscore[t] - (bmmillo * 100000000)) - (bmillodeci * 10000000)) - (bmillouni * 1000000)) - (bmmil * 100000)) / 10000);
bmiluni = Math.floor((((((tempscore[t] - (bmmillo * 100000000)) - (bmillodeci * 10000000)) - (bmillouni * 1000000)) - (bmmil * 100000)) - (bmildeci * 10000)) / 1000);
bmil = Math.floor(((((((tempscore[t] - (bmmillo * 100000000)) - (bmillodeci * 10000000)) - (bmillouni * 1000000)) - (bmmil * 100000)) - (bmildeci * 10000)) - (bmiluni * 1000)) / 100);
bdeci = Math.floor((((((((tempscore[t] - (bmmillo * 100000000)) - (bmillodeci * 10000000)) - (bmillouni * 1000000)) - (bmmil * 100000)) - (bmildeci * 10000)) - (bmiluni * 1000)) - (bmil * 100)) / 10);
buni = Math.floor((((((((tempscore[t] - (bmmillo * 100000000)) - (bmillodeci * 10000000)) - (bmillouni * 1000000)) - (bmmil * 100000)) - (bmildeci * 10000)) - (bmiluni * 1000)) - (bmil * 100)) - (bdeci * 10));
datascore[t][0] = buni;
datascore[t][1] = bdeci;
datascore[t][2] = bmil;
datascore[t][3] = bmiluni;
datascore[t][4] = bmildeci;
datascore[t][5] = bmmil;
datascore[t][6] = bmillouni;
datascore[t][7] = bmillodeci;
datascore[t][8] = bmmillo;
t++;
}
scoreload();
};
}
stop();
var datain = new LoadVars();
var showit = 1;
var namesc = new Array();
var numsc = new Array();
var scoline = new Array();
var dataname = new Array();
var datascore = new Array();
var tempscore = new Array();
namesc = ["cu10", "cu11", "cu12", "cu13", "cu14", "cu15", "cu16", "cu17"];
numsc = ["cu1", "cu2", "cu3", "cu4", "cu5", "cu6", "cu7", "cu8", "cu9"];
scoline = ["sc1", "sc2", "sc3", "sc4", "sc5", "sc6", "sc7", "sc8", "sc9", "sc10"];
_root.sc1._alpha = 0;
_root.sc2._alpha = 0;
_root.sc3._alpha = 0;
_root.sc4._alpha = 0;
_root.sc5._alpha = 0;
_root.sc6._alpha = 0;
_root.sc7._alpha = 0;
_root.sc8._alpha = 0;
_root.sc9._alpha = 0;
_root.sc10._alpha = 0;
verscorer();
loading();
_root.exit.onRelease = function () {
gotoAndPlay (207);
_root.sondi.gotoAndPlay(2);
};
_root.backsb.onRelease = function () {
if (showit != 1) {
showit = showit - 1;
_root.sondi.gotoAndPlay(2);
_root.sc1._alpha = 0;
_root.sc2._alpha = 0;
_root.sc3._alpha = 0;
_root.sc4._alpha = 0;
_root.sc5._alpha = 0;
_root.sc6._alpha = 0;
_root.sc7._alpha = 0;
_root.sc8._alpha = 0;
_root.sc9._alpha = 0;
_root.sc10._alpha = 0;
verscorer();
loading();
_root.qcastle.prevFrame();
}
};
_root.nextsb.onRelease = function () {
if (showit != 4) {
showit = showit + 1;
_root.sondi.gotoAndPlay(2);
_root.sc1._alpha = 0;
_root.sc2._alpha = 0;
_root.sc3._alpha = 0;
_root.sc4._alpha = 0;
_root.sc5._alpha = 0;
_root.sc6._alpha = 0;
_root.sc7._alpha = 0;
_root.sc8._alpha = 0;
_root.sc9._alpha = 0;
_root.sc10._alpha = 0;
verscorer();
loading();
_root.qcastle.nextFrame();
}
};
Frame 212
gotoAndStop (89);
Frame 238
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, 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, 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, 4, 4, 4, 4, 0], [13, 13, 13, 13, 13, 13, 13, 4, 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, 4, 4, 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, 4, 4, 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], [4, 4, 4, 4, 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, 14, 14, 14, 14, 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, 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], [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, 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], [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, 4, 4, 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], [4, 21, 21, 21, 21, 4, 4, 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], [14, 14, 23, 23, 23, 23, 23, 23, 22, 22, 22, 22, 20, 20, 20, 20, 20, 0], [23, 23, 23, 23, 23, 14, 14, 14, 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, 15, 15, 27, 27, 27, 27, 24, 0], [21, 21, 21, 21, 22, 22, 22, 22, 23, 23, 23, 23, 14, 14, 14, 14, 15, 15, 15, 26, 26, 26, 27, 27, 27, 27, 28, 28, 28, 0], [30, 30, 30, 30, 30, 29, 29, 29, 28, 28, 28, 28, 14, 14, 14, 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, 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, 5, 0], [12, 12, 12, 12, 12, 12, 17, 12, 17, 12, 17, 12, 17, 12, 17, 12, 17, 0], [5, 5, 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, 5, 5, 5, 5, 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, 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], [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, 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, 4, 5, 16, 17, 18, 11, 12, 13, 4, 5, 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, 4, 4, 4, 0], [16, 16, 16, 16, 16, 16, 21, 21, 21, 21, 13, 13, 13, 13, 5, 5, 5, 5, 0], [12, 12, 12, 12, 12, 12, 17, 12, 17, 12, 17, 12, 17, 12, 17, 12, 17, 0], [4, 15, 4, 15, 4, 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, 4, 4, 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, 4, 4, 4, 5, 5, 4, 4, 4, 5, 5, 5, 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], [14, 14, 18, 18, 18, 14, 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, 15, 15, 15, 14, 14, 15, 15, 14, 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], [15, 15, 15, 15, 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], [14, 14, 14, 14, 14, 15, 15, 15, 15, 28, 28, 28, 28, 28, 27, 27, 27, 27, 27, 0], [21, 21, 21, 22, 22, 22, 23, 23, 23, 14, 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, 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, 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, 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, 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, 4, 4, 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], [5, 21, 5, 21, 5, 21, 5, 21, 15, 21, 13, 13, 13, 13, 13, 0], [4, 4, 21, 21, 21, 21, 4, 4, 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, 14, 14, 14, 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, 15, 15, 15, 27, 27, 27, 27, 4, 4, 4, 0], [21, 21, 21, 21, 22, 22, 22, 22, 23, 23, 23, 23, 4, 4, 15, 15, 15, 26, 26, 26, 27, 27, 27, 27, 28, 28, 28, 0], [30, 30, 30, 30, 30, 29, 29, 29, 28, 28, 28, 28, 14, 14, 14, 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, 15, 15, 15, 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], [14, 23, 14, 23, 24, 23, 14, 23, 27, 27, 27, 27, 27, 0], [19, 19, 19, 19, 25, 25, 25, 15, 15, 14, 14, 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, 14, 14, 14, 25, 15, 15, 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, 14, 14, 14, 15, 15, 15, 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);
}
};
if (Key.isDown(32)) {
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);
}
};
_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 usekeys() {
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);
}
}
}
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() {
a = 0;
while (a < 9) {
if (soldierbox[soldierwave - 1][numsoldier + a] == 1) {
newfin = _root.game["net" + a];
newfin.gotoAndStop(2);
}
if (soldierbox[soldierwave - 1][numsoldier + a] == 2) {
newfin = _root.game["net" + a];
newfin.gotoAndStop(3);
}
if (soldierbox[soldierwave - 1][numsoldier + a] == 3) {
newfin = _root.game["net" + a];
newfin.gotoAndStop(4);
}
if (soldierbox[soldierwave - 1][numsoldier + a] == 4) {
newfin = _root.game["net" + a];
newfin.gotoAndStop(5);
}
if (soldierbox[soldierwave - 1][numsoldier + a] == 5) {
newfin = _root.game["net" + a];
newfin.gotoAndStop(6);
}
if (soldierbox[soldierwave - 1][numsoldier + a] == 6) {
newfin = _root.game["net" + a];
newfin.gotoAndStop(7);
}
if (soldierbox[soldierwave - 1][numsoldier + a] == 7) {
newfin = _root.game["net" + a];
newfin.gotoAndStop(8);
}
if (soldierbox[soldierwave - 1][numsoldier + a] == 8) {
newfin = _root.game["net" + a];
newfin.gotoAndStop(9);
}
if (soldierbox[soldierwave - 1][numsoldier + a] == 9) {
newfin = _root.game["net" + a];
newfin.gotoAndStop(10);
}
if (soldierbox[soldierwave - 1][numsoldier + a] == 10) {
newfin = _root.game["net" + a];
newfin.gotoAndStop(11);
}
if (soldierbox[soldierwave - 1][numsoldier + a] == 11) {
newfin = _root.game["net" + a];
newfin.gotoAndStop(2);
}
if (soldierbox[soldierwave - 1][numsoldier + a] == 12) {
newfin = _root.game["net" + a];
newfin.gotoAndStop(3);
}
if (soldierbox[soldierwave - 1][numsoldier + a] == 13) {
newfin = _root.game["net" + a];
newfin.gotoAndStop(4);
}
if (soldierbox[soldierwave - 1][numsoldier + a] == 14) {
newfin = _root.game["net" + a];
newfin.gotoAndStop(5);
}
if (soldierbox[soldierwave - 1][numsoldier + a] == 15) {
newfin = _root.game["net" + a];
newfin.gotoAndStop(6);
}
if (soldierbox[soldierwave - 1][numsoldier + a] == 16) {
newfin = _root.game["net" + a];
newfin.gotoAndStop(7);
}
if (soldierbox[soldierwave - 1][numsoldier + a] == 17) {
newfin = _root.game["net" + a];
newfin.gotoAndStop(8);
}
if (soldierbox[soldierwave - 1][numsoldier + a] == 18) {
newfin = _root.game["net" + a];
newfin.gotoAndStop(9);
}
if (soldierbox[soldierwave - 1][numsoldier + a] == 19) {
newfin = _root.game["net" + a];
newfin.gotoAndStop(10);
}
if (soldierbox[soldierwave - 1][numsoldier + a] == 20) {
newfin = _root.game["net" + a];
newfin.gotoAndStop(11);
}
if (soldierbox[soldierwave - 1][numsoldier + a] == 21) {
newfin = _root.game["net" + a];
newfin.gotoAndStop(2);
}
if (soldierbox[soldierwave - 1][numsoldier + a] == 22) {
newfin = _root.game["net" + a];
newfin.gotoAndStop(3);
}
if (soldierbox[soldierwave - 1][numsoldier + a] == 23) {
newfin = _root.game["net" + a];
newfin.gotoAndStop(4);
}
if (soldierbox[soldierwave - 1][numsoldier + a] == 24) {
newfin = _root.game["net" + a];
newfin.gotoAndStop(5);
}
if (soldierbox[soldierwave - 1][numsoldier + a] == 25) {
newfin = _root.game["net" + a];
newfin.gotoAndStop(6);
}
if (soldierbox[soldierwave - 1][numsoldier + a] == 26) {
newfin = _root.game["net" + a];
newfin.gotoAndStop(7);
}
if (soldierbox[soldierwave - 1][numsoldier + a] == 27) {
newfin = _root.game["net" + a];
newfin.gotoAndStop(8);
}
if (soldierbox[soldierwave - 1][numsoldier + a] == 28) {
newfin = _root.game["net" + a];
newfin.gotoAndStop(9);
}
if (soldierbox[soldierwave - 1][numsoldier + a] == 29) {
newfin = _root.game["net" + a];
newfin.gotoAndStop(10);
}
if (soldierbox[soldierwave - 1][numsoldier + a] == 30) {
newfin = _root.game["net" + a];
newfin.gotoAndStop(11);
}
if (soldierbox[soldierwave - 1][numsoldier + a] == 0) {
newfin = _root.game["net" + a];
newfin.gotoAndStop(1);
}
if (soldierbox[soldierwave - 1][numsoldier + a] == undefined) {
newfin = _root.game["net" + a];
newfin.gotoAndStop(1);
}
a++;
}
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;
scorem = scorem + 10;
}
if (selects.types == 2) {
runnere = runnere + 1;
scorem = scorem + 10;
}
if (selects.types == 3) {
defendere = defendere + 1;
scorem = scorem + 10;
}
if (selects.types == 4) {
warriore = warriore + 1;
scorem = scorem + 30;
}
if (selects.types == 5) {
kamikazee = kamikazee + 1;
scorem = scorem + 30;
}
if (selects.types == 6) {
prieste = prieste + 1;
scorem = scorem + 30;
}
if (selects.types == 7) {
hikere = hikere + 1;
scorem = scorem + 30;
}
if (selects.types == 8) {
magee = magee + 1;
scorem = scorem + 30;
}
if (selects.types == 9) {
titane = titane + 1;
scorem = scorem + 100;
}
if (selects.types == 10) {
hermese = hermese + 1;
scorem = scorem + 100;
}
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;
if (selects.types == 7) {
selects.hike = 0;
}
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;
var _local2 = hpqueen * 1000;
var _local3 = Math.floor(boneshave / 100);
local_data.data.finalscore = (scorem + _local3) + _local2;
if ((((difficulty == 1) || (difficulty == 2)) || (difficulty == 3)) || (difficulty == 4)) {
local_data.data.castlebe = 1;
}
if ((((difficulty == 5) || (difficulty == 6)) || (difficulty == 7)) || (difficulty == 8)) {
local_data.data.castlebe = 2;
}
if ((((difficulty == 9) || (difficulty == 10)) || (difficulty == 11)) || (difficulty == 12)) {
local_data.data.castlebe = 3;
}
if ((((difficulty == 13) || (difficulty == 14)) || (difficulty == 15)) || (difficulty == 16)) {
local_data.data.castlebe = 4;
}
local_data.flush();
if (victory == false) {
gotoAndPlay (237);
}
if (victory == true) {
gotoAndStop (240);
}
}
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 (237);
}
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 scorem = 0;
var scorefinal = 0;
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();
usekeys();
}
adchivments();
};
Frame 240
function givename() {
if (letra < 0) {
letra = 0;
}
if (letra > 7) {
letra = 7;
}
if (putl == false) {
_root.ab.onPress = function () {
namesub[letra] = 2;
letra++;
putl = true;
};
_root.bb.onPress = function () {
namesub[letra] = 3;
letra++;
putl = true;
};
_root.cb.onPress = function () {
namesub[letra] = 4;
letra++;
putl = true;
};
_root.db.onPress = function () {
namesub[letra] = 5;
letra++;
putl = true;
};
_root.eb.onPress = function () {
namesub[letra] = 6;
letra++;
putl = true;
};
_root.fb.onPress = function () {
namesub[letra] = 7;
letra++;
putl = true;
};
_root.gb.onPress = function () {
namesub[letra] = 8;
letra++;
putl = true;
};
_root.hb.onPress = function () {
namesub[letra] = 9;
letra++;
putl = true;
};
_root.ib.onPress = function () {
namesub[letra] = 10;
letra++;
putl = true;
};
_root.jb.onPress = function () {
namesub[letra] = 11;
letra++;
putl = true;
};
_root.kb.onPress = function () {
namesub[letra] = 12;
letra++;
putl = true;
};
_root.lb.onPress = function () {
namesub[letra] = 13;
letra++;
putl = true;
};
_root.mb.onPress = function () {
namesub[letra] = 14;
letra++;
putl = true;
};
_root.nb.onPress = function () {
namesub[letra] = 15;
letra++;
putl = true;
};
_root.ob.onPress = function () {
namesub[letra] = 16;
letra++;
putl = true;
};
_root.pb.onPress = function () {
namesub[letra] = 17;
letra++;
putl = true;
};
_root.qb.onPress = function () {
namesub[letra] = 18;
letra++;
putl = true;
};
_root.rb.onPress = function () {
namesub[letra] = 19;
letra++;
putl = true;
};
_root.sb.onPress = function () {
namesub[letra] = 20;
letra++;
putl = true;
};
_root.tb.onPress = function () {
namesub[letra] = 21;
letra++;
putl = true;
};
_root.ub.onPress = function () {
namesub[letra] = 22;
letra++;
putl = true;
};
_root.vb.onPress = function () {
namesub[letra] = 23;
letra++;
putl = true;
};
_root.wb.onPress = function () {
namesub[letra] = 24;
letra++;
putl = true;
};
_root.xb.onPress = function () {
namesub[letra] = 25;
letra++;
putl = true;
};
_root.yb.onPress = function () {
namesub[letra] = 26;
letra++;
putl = true;
};
_root.zb.onPress = function () {
namesub[letra] = 27;
letra++;
putl = true;
};
_root.backb.onPress = function () {
namesub[letra - 1] = 1;
namesub[letra] = 1;
letra--;
putl = true;
};
}
if (putl == true) {
_root.let1.gotoAndStop(namesub[0]);
_root.let2.gotoAndStop(namesub[1]);
_root.let3.gotoAndStop(namesub[2]);
_root.let4.gotoAndStop(namesub[3]);
_root.let5.gotoAndStop(namesub[4]);
_root.let6.gotoAndStop(namesub[5]);
_root.let7.gotoAndStop(namesub[6]);
_root.let8.gotoAndStop(namesub[7]);
putl = false;
}
}
function sendscore() {
_root.finishb.onPress = function () {
if ((((((((namesub[0] == 0) && (namesub[1] == 0)) && (namesub[2] == 0)) && (namesub[3] == 0)) && (namesub[4] == 0)) && (namesub[5] == 0)) && (namesub[6] == 0)) && (namesub[7] == 0)) {
dataout.nom1 = 15;
dataout.nom2 = 16;
dataout.nom3 = 15;
dataout.nom4 = 2;
dataout.nom5 = 14;
dataout.nom6 = 6;
dataout.nom7 = 0;
dataout.nom8 = 0;
} else {
dataout.nom1 = namesub[0];
dataout.nom2 = namesub[1];
dataout.nom3 = namesub[2];
dataout.nom4 = namesub[3];
dataout.nom5 = namesub[4];
dataout.nom6 = namesub[5];
dataout.nom7 = namesub[6];
dataout.nom8 = namesub[7];
}
dataout.scorek = finalscore;
dataout.castlek = castlebe;
dataout.sendAndLoad("http://www.fliptic.com/mcsavedata.php", dataout, "POST");
_root.cortinag.play();
};
if (_root.cortinag._currentframe == 15) {
gotoAndPlay (242);
}
}
function numberscore() {
bmmillo = Math.floor(finalscore / 100000000);
bmillodeci = Math.floor((finalscore - (bmmillo * 100000000)) / 10000000);
bmillouni = Math.floor(((finalscore - (bmmillo * 100000000)) - (bmillodeci * 10000000)) / 1000000);
bmmil = Math.floor((((finalscore - (bmmillo * 100000000)) - (bmillodeci * 10000000)) - (bmillouni * 1000000)) / 100000);
bmildeci = Math.floor(((((finalscore - (bmmillo * 100000000)) - (bmillodeci * 10000000)) - (bmillouni * 1000000)) - (bmmil * 100000)) / 10000);
bmiluni = Math.floor((((((finalscore - (bmmillo * 100000000)) - (bmillodeci * 10000000)) - (bmillouni * 1000000)) - (bmmil * 100000)) - (bmildeci * 10000)) / 1000);
bmil = Math.floor(((((((finalscore - (bmmillo * 100000000)) - (bmillodeci * 10000000)) - (bmillouni * 1000000)) - (bmmil * 100000)) - (bmildeci * 10000)) - (bmiluni * 1000)) / 100);
bdeci = Math.floor((((((((finalscore - (bmmillo * 100000000)) - (bmillodeci * 10000000)) - (bmillouni * 1000000)) - (bmmil * 100000)) - (bmildeci * 10000)) - (bmiluni * 1000)) - (bmil * 100)) / 10);
buni = Math.floor((((((((finalscore - (bmmillo * 100000000)) - (bmillodeci * 10000000)) - (bmillouni * 1000000)) - (bmmil * 100000)) - (bmildeci * 10000)) - (bmiluni * 1000)) - (bmil * 100)) - (bdeci * 10));
_root.bouni.gotoAndStop(buni + 1);
_root.bodeci.gotoAndStop(bdeci + 1);
_root.bomil.gotoAndStop(bmil + 1);
_root.bomiluni.gotoAndStop(bmiluni + 1);
_root.bomildeci.gotoAndStop(bmildeci + 1);
_root.bommil.gotoAndStop(bmmil + 1);
_root.bomillouni.gotoAndStop(bmillouni + 1);
_root.bomillodeci.gotoAndStop(bmillodeci + 1);
_root.bommillo.gotoAndStop(bmmillo + 1);
if (bmmillo > 0) {
_root.bouni._alpha = 100;
_root.bodeci._alpha = 100;
_root.bomil._alpha = 100;
_root.bomiluni._alpha = 100;
_root.bomildeci._alpha = 100;
_root.bommil._alpha = 100;
_root.bomillouni._alpha = 100;
_root.bomillodeci._alpha = 100;
_root.bommillo._alpha = 100;
} else if (bmillodeci > 0) {
_root.bouni._alpha = 100;
_root.bodeci._alpha = 100;
_root.bomil._alpha = 100;
_root.bomiluni._alpha = 100;
_root.bomildeci._alpha = 100;
_root.bommil._alpha = 100;
_root.bomillouni._alpha = 100;
_root.bomillodeci._alpha = 100;
_root.bommillo._alpha = 0;
} else if (bmillouni > 0) {
_root.bouni._alpha = 100;
_root.bodeci._alpha = 100;
_root.bomil._alpha = 100;
_root.bomiluni._alpha = 100;
_root.bomildeci._alpha = 100;
_root.bommil._alpha = 100;
_root.bomillouni._alpha = 100;
_root.bomillodeci._alpha = 0;
_root.bommillo._alpha = 0;
} else if (bmmil > 0) {
_root.bouni._alpha = 100;
_root.bodeci._alpha = 100;
_root.bomil._alpha = 100;
_root.bomiluni._alpha = 100;
_root.bomildeci._alpha = 100;
_root.bommil._alpha = 100;
_root.bomillouni._alpha = 0;
_root.bomillodeci._alpha = 0;
_root.bommillo._alpha = 0;
} else if (bmildeci > 0) {
_root.bouni._alpha = 100;
_root.bodeci._alpha = 100;
_root.bomil._alpha = 100;
_root.bomiluni._alpha = 100;
_root.bomildeci._alpha = 100;
_root.bommil._alpha = 0;
_root.bomillouni._alpha = 0;
_root.bomillodeci._alpha = 0;
_root.bommillo._alpha = 0;
} else if (bmiluni > 0) {
_root.bouni._alpha = 100;
_root.bodeci._alpha = 100;
_root.bomil._alpha = 100;
_root.bomiluni._alpha = 100;
_root.bomildeci._alpha = 0;
_root.bommil._alpha = 0;
_root.bomillouni._alpha = 0;
_root.bomillodeci._alpha = 0;
_root.bommillo._alpha = 0;
} else if (bmil > 0) {
_root.bouni._alpha = 100;
_root.bodeci._alpha = 100;
_root.bomil._alpha = 100;
_root.bomiluni._alpha = 0;
_root.bomildeci._alpha = 0;
_root.bommil._alpha = 0;
_root.bomillouni._alpha = 0;
_root.bomillodeci._alpha = 0;
_root.bommillo._alpha = 0;
} else if (bdeci > 0) {
_root.bouni._alpha = 100;
_root.bodeci._alpha = 100;
_root.bomil._alpha = 0;
_root.bomiluni._alpha = 0;
_root.bomildeci._alpha = 0;
_root.bommil._alpha = 0;
_root.bomillouni._alpha = 0;
_root.bomillodeci._alpha = 0;
_root.bommillo._alpha = 0;
} else if (buni > 0) {
_root.bouni._alpha = 100;
_root.bodeci._alpha = 0;
_root.bomil._alpha = 0;
_root.bomiluni._alpha = 0;
_root.bomildeci._alpha = 0;
_root.bommil._alpha = 0;
_root.bomillouni._alpha = 0;
_root.bomillodeci._alpha = 0;
_root.bommillo._alpha = 0;
} else if ((((((buni == 0) && (bdeci == 0)) && (bmil == 0)) && (bmiluni == 0)) && (bmildeci == 0)) && (bmmil == 0)) {
_root.bouni._alpha = 100;
_root.bodeci._alpha = 0;
_root.bomil._alpha = 0;
_root.bomiluni._alpha = 0;
_root.bomildeci._alpha = 0;
_root.bommil._alpha = 0;
_root.bomillouni._alpha = 0;
_root.bomillodeci._alpha = 0;
_root.bommillo._alpha = 0;
}
}
stop();
Mouse.show();
local_data = SharedObject.getLocal("MS_datatemp");
var dataout = new LoadVars();
var finalscore = local_data.data.finalscore;
var castlebe = local_data.data.castlebe;
var letra = 0;
var namesub = new Array();
var retai = new Array();
namesub = [0, 0, 0, 0, 0, 0, 0, 0];
var putl = false;
_root.game.onEnterFrame = function () {
givename();
sendscore();
numberscore();
};
Frame 242
function verscorer() {
if (showit == 1) {
datain.load("http://www.fliptic.com/mcgetdata.php", "GET");
}
if (showit == 2) {
datain.load("http://www.fliptic.com/mcgetdata2.php", "GET");
}
if (showit == 3) {
datain.load("http://www.fliptic.com/mcgetdata3.php", "GET");
}
if (showit == 4) {
datain.load("http://www.fliptic.com/mcgetdata4.php", "GET");
}
}
function scoreload() {
i = 0;
while (i < scoline.length) {
liny = _root[scoline[i]];
r = 0;
while (r < namesc.length) {
namy = liny[namesc[r]];
namy.gotoAndStop(1);
r++;
}
g = 0;
while (g < numsc.length) {
numy = liny[numsc[g]];
numy.gotoAndStop(1);
g++;
}
i++;
}
i = 0;
while (i < scoline.length) {
liny = _root[scoline[i]];
r = 0;
while (r < namesc.length) {
namy = liny[namesc[r]];
namy.gotoAndStop(dataname[i][r]);
if (dataname[i][r] == 0) {
namy._alpha = 0;
}
if (dataname[i][r] > 0) {
namy._alpha = 100;
}
r++;
}
g = 0;
while (g < numsc.length) {
numy = liny[numsc[g]];
numy.gotoAndStop(datascore[i][g] + 1);
g++;
}
bmmillo = Math.floor(tempscore[i] / 100000000);
bmillodeci = Math.floor((tempscore[i] - (bmmillo * 100000000)) / 10000000);
bmillouni = Math.floor(((tempscore[i] - (bmmillo * 100000000)) - (bmillodeci * 10000000)) / 1000000);
bmmil = Math.floor((((tempscore[i] - (bmmillo * 100000000)) - (bmillodeci * 10000000)) - (bmillouni * 1000000)) / 100000);
bmildeci = Math.floor(((((tempscore[i] - (bmmillo * 100000000)) - (bmillodeci * 10000000)) - (bmillouni * 1000000)) - (bmmil * 100000)) / 10000);
bmiluni = Math.floor((((((tempscore[i] - (bmmillo * 100000000)) - (bmillodeci * 10000000)) - (bmillouni * 1000000)) - (bmmil * 100000)) - (bmildeci * 10000)) / 1000);
bmil = Math.floor(((((((tempscore[i] - (bmmillo * 100000000)) - (bmillodeci * 10000000)) - (bmillouni * 1000000)) - (bmmil * 100000)) - (bmildeci * 10000)) - (bmiluni * 1000)) / 100);
bdeci = Math.floor((((((((tempscore[i] - (bmmillo * 100000000)) - (bmillodeci * 10000000)) - (bmillouni * 1000000)) - (bmmil * 100000)) - (bmildeci * 10000)) - (bmiluni * 1000)) - (bmil * 100)) / 10);
buni = Math.floor((((((((tempscore[i] - (bmmillo * 100000000)) - (bmillodeci * 10000000)) - (bmillouni * 1000000)) - (bmmil * 100000)) - (bmildeci * 10000)) - (bmiluni * 1000)) - (bmil * 100)) - (bdeci * 10));
if (bmmillo > 0) {
liny.cu9._alpha = 100;
liny.cu8._alpha = 100;
liny.cu7._alpha = 100;
liny.cu6._alpha = 100;
liny.cu5._alpha = 100;
liny.cu4._alpha = 100;
liny.cu3._alpha = 100;
liny.cu2._alpha = 100;
liny.cu1._alpha = 100;
} else if (bmillodeci > 0) {
liny.cu9._alpha = 0;
liny.cu8._alpha = 100;
liny.cu7._alpha = 100;
liny.cu6._alpha = 100;
liny.cu5._alpha = 100;
liny.cu4._alpha = 100;
liny.cu3._alpha = 100;
liny.cu2._alpha = 100;
liny.cu1._alpha = 100;
} else if (bmillouni > 0) {
liny.cu9._alpha = 0;
liny.cu8._alpha = 0;
liny.cu7._alpha = 100;
liny.cu6._alpha = 100;
liny.cu5._alpha = 100;
liny.cu4._alpha = 100;
liny.cu3._alpha = 100;
liny.cu2._alpha = 100;
liny.cu1._alpha = 100;
} else if (bmmil > 0) {
liny.cu9._alpha = 0;
liny.cu8._alpha = 0;
liny.cu7._alpha = 0;
liny.cu6._alpha = 100;
liny.cu5._alpha = 100;
liny.cu4._alpha = 100;
liny.cu3._alpha = 100;
liny.cu2._alpha = 100;
liny.cu1._alpha = 100;
} else if (bmildeci > 0) {
liny.cu9._alpha = 0;
liny.cu8._alpha = 0;
liny.cu7._alpha = 0;
liny.cu6._alpha = 0;
liny.cu5._alpha = 100;
liny.cu4._alpha = 100;
liny.cu3._alpha = 100;
liny.cu2._alpha = 100;
liny.cu1._alpha = 100;
} else if (bmiluni > 0) {
liny.cu9._alpha = 0;
liny.cu8._alpha = 0;
liny.cu7._alpha = 0;
liny.cu6._alpha = 0;
liny.cu5._alpha = 0;
liny.cu4._alpha = 100;
liny.cu3._alpha = 100;
liny.cu2._alpha = 100;
liny.cu1._alpha = 100;
} else if (bmil > 0) {
liny.cu9._alpha = 0;
liny.cu8._alpha = 0;
liny.cu7._alpha = 0;
liny.cu6._alpha = 0;
liny.cu5._alpha = 0;
liny.cu4._alpha = 0;
liny.cu3._alpha = 100;
liny.cu2._alpha = 100;
liny.cu1._alpha = 100;
} else if (bdeci > 0) {
liny.cu9._alpha = 0;
liny.cu8._alpha = 0;
liny.cu7._alpha = 0;
liny.cu6._alpha = 0;
liny.cu5._alpha = 0;
liny.cu4._alpha = 0;
liny.cu3._alpha = 0;
liny.cu2._alpha = 100;
liny.cu1._alpha = 100;
} else if (buni > 0) {
liny.cu9._alpha = 0;
liny.cu8._alpha = 0;
liny.cu7._alpha = 0;
liny.cu6._alpha = 0;
liny.cu5._alpha = 0;
liny.cu4._alpha = 0;
liny.cu3._alpha = 0;
liny.cu2._alpha = 0;
liny.cu1._alpha = 100;
} else if ((((((buni == 0) && (bdeci == 0)) && (bmil == 0)) && (bmiluni == 0)) && (bmildeci == 0)) && (bmmil == 0)) {
liny.cu9._alpha = 0;
liny.cu8._alpha = 0;
liny.cu7._alpha = 0;
liny.cu6._alpha = 0;
liny.cu5._alpha = 0;
liny.cu4._alpha = 0;
liny.cu3._alpha = 0;
liny.cu2._alpha = 0;
liny.cu1._alpha = 100;
}
i++;
}
_root.sc1._alpha = 100;
_root.sc2._alpha = 100;
_root.sc3._alpha = 100;
_root.sc4._alpha = 100;
_root.sc5._alpha = 100;
_root.sc6._alpha = 100;
_root.sc7._alpha = 100;
_root.sc8._alpha = 100;
_root.sc9._alpha = 100;
_root.sc10._alpha = 100;
}
function loading() {
datain.onLoad = function () {
dataname = [];
tempscore = [];
datascore = [];
dataname = [this.name1.split(","), this.name2.split(","), this.name3.split(","), this.name4.split(","), this.name5.split(","), this.name6.split(","), this.name7.split(","), this.name8.split(","), this.name9.split(","), this.name10.split(",")];
tempscore = [this.score1, this.score2, this.score3, this.score4, this.score5, this.score6, this.score7, this.score8, this.score9, this.score10];
datascore = [[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, 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, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0]];
t = 0;
while (t < datascore.length) {
bmmillo = Math.floor(tempscore[t] / 100000000);
bmillodeci = Math.floor((tempscore[t] - (bmmillo * 100000000)) / 10000000);
bmillouni = Math.floor(((tempscore[t] - (bmmillo * 100000000)) - (bmillodeci * 10000000)) / 1000000);
bmmil = Math.floor((((tempscore[t] - (bmmillo * 100000000)) - (bmillodeci * 10000000)) - (bmillouni * 1000000)) / 100000);
bmildeci = Math.floor(((((tempscore[t] - (bmmillo * 100000000)) - (bmillodeci * 10000000)) - (bmillouni * 1000000)) - (bmmil * 100000)) / 10000);
bmiluni = Math.floor((((((tempscore[t] - (bmmillo * 100000000)) - (bmillodeci * 10000000)) - (bmillouni * 1000000)) - (bmmil * 100000)) - (bmildeci * 10000)) / 1000);
bmil = Math.floor(((((((tempscore[t] - (bmmillo * 100000000)) - (bmillodeci * 10000000)) - (bmillouni * 1000000)) - (bmmil * 100000)) - (bmildeci * 10000)) - (bmiluni * 1000)) / 100);
bdeci = Math.floor((((((((tempscore[t] - (bmmillo * 100000000)) - (bmillodeci * 10000000)) - (bmillouni * 1000000)) - (bmmil * 100000)) - (bmildeci * 10000)) - (bmiluni * 1000)) - (bmil * 100)) / 10);
buni = Math.floor((((((((tempscore[t] - (bmmillo * 100000000)) - (bmillodeci * 10000000)) - (bmillouni * 1000000)) - (bmmil * 100000)) - (bmildeci * 10000)) - (bmiluni * 1000)) - (bmil * 100)) - (bdeci * 10));
datascore[t][0] = buni;
datascore[t][1] = bdeci;
datascore[t][2] = bmil;
datascore[t][3] = bmiluni;
datascore[t][4] = bmildeci;
datascore[t][5] = bmmil;
datascore[t][6] = bmillouni;
datascore[t][7] = bmillodeci;
datascore[t][8] = bmmillo;
t++;
}
scoreload();
};
}
function actions() {
if (_root.cortinag._currentframe == 15) {
gotoAndPlay (160);
}
}
stop();
var datain = new LoadVars();
var showit = 1;
var namesc = new Array();
var numsc = new Array();
var scoline = new Array();
var dataname = new Array();
var datascore = new Array();
var tempscore = new Array();
namesc = ["cu10", "cu11", "cu12", "cu13", "cu14", "cu15", "cu16", "cu17"];
numsc = ["cu1", "cu2", "cu3", "cu4", "cu5", "cu6", "cu7", "cu8", "cu9"];
scoline = ["sc1", "sc2", "sc3", "sc4", "sc5", "sc6", "sc7", "sc8", "sc9", "sc10"];
_root.sc1._alpha = 0;
_root.sc2._alpha = 0;
_root.sc3._alpha = 0;
_root.sc4._alpha = 0;
_root.sc5._alpha = 0;
_root.sc6._alpha = 0;
_root.sc7._alpha = 0;
_root.sc8._alpha = 0;
_root.sc9._alpha = 0;
_root.sc10._alpha = 0;
verscorer();
loading();
_root.backsb.onRelease = function () {
if (showit != 1) {
showit = showit - 1;
_root.sondi.gotoAndPlay(2);
_root.sc1._alpha = 0;
_root.sc2._alpha = 0;
_root.sc3._alpha = 0;
_root.sc4._alpha = 0;
_root.sc5._alpha = 0;
_root.sc6._alpha = 0;
_root.sc7._alpha = 0;
_root.sc8._alpha = 0;
_root.sc9._alpha = 0;
_root.sc10._alpha = 0;
verscorer();
loading();
_root.qcastle.prevFrame();
}
};
_root.nextsb.onRelease = function () {
if (showit != 4) {
showit = showit + 1;
_root.sondi.gotoAndPlay(2);
_root.sc1._alpha = 0;
_root.sc2._alpha = 0;
_root.sc3._alpha = 0;
_root.sc4._alpha = 0;
_root.sc5._alpha = 0;
_root.sc6._alpha = 0;
_root.sc7._alpha = 0;
_root.sc8._alpha = 0;
_root.sc9._alpha = 0;
_root.sc10._alpha = 0;
verscorer();
loading();
_root.qcastle.nextFrame();
}
};
_root.exit.onPress = function () {
_root.cortinag.play();
};
_root.game.onEnterFrame = function () {
actions();
};
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 132 MovieClip Frame 13
_parent.gotoAndStop(3);
Symbol 133 MovieClip Frame 1
stop();
Symbol 133 MovieClip Frame 13
gotoAndStop (1);
Symbol 147 MovieClip Frame 15
_parent.gotoAndStop(6);
Symbol 175 MovieClip Frame 26
_parent.gotoAndStop(6);
Symbol 189 MovieClip Frame 15
_parent.gotoAndStop(9);
Symbol 213 MovieClip Frame 26
_parent.gotoAndStop(9);
Symbol 215 MovieClip Frame 61
stop();
Symbol 217 MovieClip Frame 61
stop();
Symbol 219 MovieClip Frame 61
stop();
Symbol 220 MovieClip [mudmanclip] Frame 1
stop();
Symbol 220 MovieClip [mudmanclip] Frame 2
stop();
Symbol 220 MovieClip [mudmanclip] Frame 3
stop();
Symbol 220 MovieClip [mudmanclip] Frame 4
stop();
Symbol 220 MovieClip [mudmanclip] Frame 5
stop();
Symbol 220 MovieClip [mudmanclip] Frame 6
stop();
Symbol 220 MovieClip [mudmanclip] Frame 7
stop();
Symbol 220 MovieClip [mudmanclip] Frame 8
stop();
Symbol 220 MovieClip [mudmanclip] Frame 9
stop();
Symbol 220 MovieClip [mudmanclip] Frame 10
stop();
Symbol 220 MovieClip [mudmanclip] Frame 20
stop();
Symbol 220 MovieClip [mudmanclip] Frame 21
stop();
Symbol 220 MovieClip [mudmanclip] Frame 22
stop();
Symbol 227 MovieClip Frame 12
_parent.gotoAndStop(3);
Symbol 253 MovieClip Frame 15
_parent.gotoAndStop(5);
Symbol 278 MovieClip Frame 16
_parent.gotoAndStop(7);
Symbol 313 MovieClip Frame 61
stop();
Symbol 315 MovieClip Frame 61
stop();
Symbol 317 MovieClip Frame 61
stop();
Symbol 318 MovieClip [corpeclip] Frame 1
stop();
Symbol 318 MovieClip [corpeclip] Frame 2
stop();
Symbol 318 MovieClip [corpeclip] Frame 3
stop();
Symbol 318 MovieClip [corpeclip] Frame 4
stop();
Symbol 318 MovieClip [corpeclip] Frame 5
stop();
Symbol 318 MovieClip [corpeclip] Frame 6
stop();
Symbol 318 MovieClip [corpeclip] Frame 7
stop();
Symbol 318 MovieClip [corpeclip] Frame 20
stop();
Symbol 318 MovieClip [corpeclip] Frame 21
stop();
Symbol 318 MovieClip [corpeclip] Frame 22
stop();
Symbol 320 MovieClip Frame 1
stop();
Symbol 320 MovieClip Frame 13
gotoAndStop (1);
Symbol 327 MovieClip Frame 11
_parent.gotoAndStop(3);
Symbol 338 MovieClip Frame 1
stop();
Symbol 338 MovieClip Frame 13
gotoAndStop (1);
Symbol 348 MovieClip Frame 11
_parent.gotoAndStop(5);
Symbol 360 MovieClip Frame 1
stop();
Symbol 360 MovieClip Frame 13
gotoAndStop (1);
Symbol 370 MovieClip Frame 11
_parent.gotoAndStop(7);
Symbol 382 MovieClip Frame 61
stop();
Symbol 384 MovieClip Frame 61
stop();
Symbol 386 MovieClip Frame 61
stop();
Symbol 387 MovieClip [hiveclip] Frame 1
stop();
Symbol 387 MovieClip [hiveclip] Frame 2
stop();
Symbol 387 MovieClip [hiveclip] Frame 3
stop();
Symbol 387 MovieClip [hiveclip] Frame 4
stop();
Symbol 387 MovieClip [hiveclip] Frame 5
stop();
Symbol 387 MovieClip [hiveclip] Frame 6
stop();
Symbol 387 MovieClip [hiveclip] Frame 7
stop();
Symbol 387 MovieClip [hiveclip] Frame 20
stop();
Symbol 387 MovieClip [hiveclip] Frame 21
stop();
Symbol 387 MovieClip [hiveclip] Frame 22
stop();
Symbol 388 MovieClip Frame 1
stop();
Symbol 388 MovieClip Frame 13
gotoAndStop (1);
Symbol 397 MovieClip Frame 13
_parent.gotoAndStop(3);
Symbol 412 MovieClip Frame 13
_parent.gotoAndStop(5);
Symbol 424 MovieClip Frame 13
_parent.gotoAndStop(3);
Symbol 435 MovieClip Frame 13
_parent.gotoAndStop(8);
Symbol 453 MovieClip Frame 16
_parent.gotoAndStop(10);
Symbol 464 MovieClip Frame 13
_parent.gotoAndStop(8);
Symbol 475 MovieClip Frame 13
_parent.gotoAndStop(13);
Symbol 499 MovieClip Frame 19
_parent.gotoAndStop(15);
Symbol 514 MovieClip Frame 13
_parent.gotoAndStop(13);
Symbol 516 MovieClip Frame 61
stop();
Symbol 518 MovieClip Frame 61
stop();
Symbol 520 MovieClip Frame 61
stop();
Symbol 521 MovieClip [demonclip] Frame 1
stop();
Symbol 521 MovieClip [demonclip] Frame 2
stop();
Symbol 521 MovieClip [demonclip] Frame 3
stop();
Symbol 521 MovieClip [demonclip] Frame 4
stop();
Symbol 521 MovieClip [demonclip] Frame 5
stop();
Symbol 521 MovieClip [demonclip] Frame 6
stop();
Symbol 521 MovieClip [demonclip] Frame 7
stop();
Symbol 521 MovieClip [demonclip] Frame 8
stop();
Symbol 521 MovieClip [demonclip] Frame 9
stop();
Symbol 521 MovieClip [demonclip] Frame 10
stop();
Symbol 521 MovieClip [demonclip] Frame 11
stop();
Symbol 521 MovieClip [demonclip] Frame 12
stop();
Symbol 521 MovieClip [demonclip] Frame 13
stop();
Symbol 521 MovieClip [demonclip] Frame 14
stop();
Symbol 521 MovieClip [demonclip] Frame 15
stop();
Symbol 521 MovieClip [demonclip] Frame 16
stop();
Symbol 521 MovieClip [demonclip] Frame 20
stop();
Symbol 521 MovieClip [demonclip] Frame 21
stop();
Symbol 521 MovieClip [demonclip] Frame 22
stop();
Symbol 522 MovieClip Frame 1
stop();
Symbol 522 MovieClip Frame 13
gotoAndStop (1);
Symbol 531 MovieClip Frame 13
_parent.gotoAndStop(3);
Symbol 538 MovieClip Frame 1
stop();
Symbol 538 MovieClip Frame 13
gotoAndStop (1);
Symbol 551 MovieClip Frame 13
_parent.gotoAndStop(5);
Symbol 566 MovieClip Frame 12
_parent.gotoAndStop(7);
Symbol 579 MovieClip Frame 61
stop();
Symbol 581 MovieClip Frame 61
stop();
Symbol 583 MovieClip Frame 61
stop();
Symbol 584 MovieClip [slimeclip] Frame 1
stop();
Symbol 584 MovieClip [slimeclip] Frame 2
stop();
Symbol 584 MovieClip [slimeclip] Frame 3
stop();
Symbol 584 MovieClip [slimeclip] Frame 4
stop();
Symbol 584 MovieClip [slimeclip] Frame 5
stop();
Symbol 584 MovieClip [slimeclip] Frame 6
stop();
Symbol 584 MovieClip [slimeclip] Frame 7
stop();
Symbol 584 MovieClip [slimeclip] Frame 20
stop();
Symbol 584 MovieClip [slimeclip] Frame 21
stop();
Symbol 584 MovieClip [slimeclip] Frame 22
stop();
Symbol 585 MovieClip Frame 1
stop();
Symbol 585 MovieClip Frame 13
gotoAndStop (1);
Symbol 597 MovieClip Frame 17
_parent.gotoAndStop(3);
Symbol 607 MovieClip Frame 10
_parent.gotoAndStop(3);
Symbol 624 MovieClip Frame 17
_parent.gotoAndStop(6);
Symbol 634 MovieClip Frame 13
_parent.gotoAndStop(6);
Symbol 635 MovieClip Frame 1
stop();
Symbol 635 MovieClip Frame 13
gotoAndStop (1);
Symbol 651 MovieClip Frame 17
_parent.gotoAndStop(9);
Symbol 668 MovieClip Frame 17
_parent.gotoAndStop(9);
Symbol 670 MovieClip Frame 61
stop();
Symbol 672 MovieClip Frame 61
stop();
Symbol 674 MovieClip Frame 61
stop();
Symbol 675 MovieClip [plantclip] Frame 1
stop();
Symbol 675 MovieClip [plantclip] Frame 2
stop();
Symbol 675 MovieClip [plantclip] Frame 3
stop();
Symbol 675 MovieClip [plantclip] Frame 4
stop();
Symbol 675 MovieClip [plantclip] Frame 5
stop();
Symbol 675 MovieClip [plantclip] Frame 6
stop();
Symbol 675 MovieClip [plantclip] Frame 7
stop();
Symbol 675 MovieClip [plantclip] Frame 8
stop();
Symbol 675 MovieClip [plantclip] Frame 9
stop();
Symbol 675 MovieClip [plantclip] Frame 10
stop();
Symbol 675 MovieClip [plantclip] Frame 20
stop();
Symbol 675 MovieClip [plantclip] Frame 21
stop();
Symbol 675 MovieClip [plantclip] Frame 22
stop();
Symbol 676 MovieClip Frame 1
stop();
Symbol 676 MovieClip Frame 13
gotoAndStop (1);
Symbol 686 MovieClip Frame 13
_parent.gotoAndPlay(3);
Symbol 695 MovieClip Frame 8
_parent.gotoAndStop(3);
Symbol 700 MovieClip Frame 1
stop();
Symbol 700 MovieClip Frame 13
gotoAndStop (1);
Symbol 712 MovieClip Frame 13
_parent.gotoAndStop(6);
Symbol 722 MovieClip Frame 8
_parent.gotoAndStop(6);
Symbol 723 MovieClip Frame 1
stop();
Symbol 723 MovieClip Frame 13
gotoAndStop (1);
Symbol 736 MovieClip Frame 13
_parent.gotoAndStop(9);
Symbol 746 MovieClip Frame 8
_parent.gotoAndStop(9);
Symbol 748 MovieClip Frame 61
stop();
Symbol 750 MovieClip Frame 61
stop();
Symbol 752 MovieClip Frame 61
stop();
Symbol 753 MovieClip [skullclip] Frame 1
stop();
Symbol 753 MovieClip [skullclip] Frame 2
stop();
Symbol 753 MovieClip [skullclip] Frame 3
stop();
Symbol 753 MovieClip [skullclip] Frame 4
stop();
Symbol 753 MovieClip [skullclip] Frame 5
stop();
Symbol 753 MovieClip [skullclip] Frame 6
stop();
Symbol 753 MovieClip [skullclip] Frame 7
stop();
Symbol 753 MovieClip [skullclip] Frame 8
stop();
Symbol 753 MovieClip [skullclip] Frame 9
stop();
Symbol 753 MovieClip [skullclip] Frame 10
stop();
Symbol 753 MovieClip [skullclip] Frame 20
stop();
Symbol 753 MovieClip [skullclip] Frame 21
stop();
Symbol 753 MovieClip [skullclip] Frame 22
stop();
Symbol 770 MovieClip Frame 17
_parent.gotoAndStop(3);
Symbol 792 MovieClip Frame 17
stop();
Symbol 797 MovieClip Frame 61
_parent.gotoAndStop(3);
Symbol 798 MovieClip [soldierj] Frame 1
stop();
Symbol 798 MovieClip [soldierj] Frame 2
stop();
Symbol 798 MovieClip [soldierj] Frame 3
stop();
Symbol 798 MovieClip [soldierj] Frame 4
stop();
Symbol 798 MovieClip [soldierj] Frame 5
stop();
Symbol 798 MovieClip [soldierj] Frame 6
stop();
Symbol 798 MovieClip [soldierj] Frame 10
stop();
Symbol 812 MovieClip Frame 13
_parent.gotoAndStop(3);
Symbol 840 MovieClip Frame 17
stop();
Symbol 843 MovieClip Frame 61
_parent.gotoAndStop(3);
Symbol 844 MovieClip [soldieri] Frame 1
stop();
Symbol 844 MovieClip [soldieri] Frame 2
stop();
Symbol 844 MovieClip [soldieri] Frame 3
stop();
Symbol 844 MovieClip [soldieri] Frame 4
stop();
Symbol 844 MovieClip [soldieri] Frame 5
stop();
Symbol 844 MovieClip [soldieri] Frame 10
stop();
Symbol 861 MovieClip Frame 17
_parent.gotoAndStop(3);
Symbol 883 MovieClip Frame 17
stop();
Symbol 900 MovieClip Frame 18
stop();
Symbol 902 MovieClip Frame 61
_parent.gotoAndStop(3);
Symbol 903 MovieClip [soldierh] Frame 1
stop();
Symbol 903 MovieClip [soldierh] Frame 2
stop();
Symbol 903 MovieClip [soldierh] Frame 3
stop();
Symbol 903 MovieClip [soldierh] Frame 4
stop();
Symbol 903 MovieClip [soldierh] Frame 5
stop();
Symbol 903 MovieClip [soldierh] Frame 6
stop();
Symbol 903 MovieClip [soldierh] Frame 7
stop();
Symbol 903 MovieClip [soldierh] Frame 10
stop();
Symbol 920 MovieClip Frame 17
_parent.gotoAndStop(3);
Symbol 942 MovieClip Frame 17
stop();
Symbol 960 MovieClip Frame 24
stop();
Symbol 962 MovieClip Frame 61
_parent.gotoAndStop(3);
Symbol 963 MovieClip [soldierg] Frame 1
stop();
Symbol 963 MovieClip [soldierg] Frame 2
stop();
Symbol 963 MovieClip [soldierg] Frame 3
stop();
Symbol 963 MovieClip [soldierg] Frame 4
stop();
Symbol 963 MovieClip [soldierg] Frame 5
stop();
Symbol 963 MovieClip [soldierg] Frame 6
stop();
Symbol 963 MovieClip [soldierg] Frame 10
stop();
Symbol 980 MovieClip Frame 17
_parent.gotoAndStop(3);
Symbol 1002 MovieClip Frame 17
stop();
Symbol 1005 MovieClip Frame 61
_parent.gotoAndStop(3);
Symbol 1006 MovieClip [soldierf] Frame 1
stop();
Symbol 1006 MovieClip [soldierf] Frame 2
stop();
Symbol 1006 MovieClip [soldierf] Frame 3
stop();
Symbol 1006 MovieClip [soldierf] Frame 4
stop();
Symbol 1006 MovieClip [soldierf] Frame 5
stop();
Symbol 1006 MovieClip [soldierf] Frame 6
stop();
Symbol 1006 MovieClip [soldierf] Frame 10
stop();
Symbol 1023 MovieClip Frame 17
_parent.gotoAndStop(3);
Symbol 1046 MovieClip Frame 17
stop();
Symbol 1057 MovieClip Frame 10
stop();
Symbol 1059 MovieClip Frame 61
_parent.gotoAndStop(3);
Symbol 1060 MovieClip [soldiere] Frame 1
stop();
Symbol 1060 MovieClip [soldiere] Frame 2
stop();
Symbol 1060 MovieClip [soldiere] Frame 3
stop();
Symbol 1060 MovieClip [soldiere] Frame 4
stop();
Symbol 1060 MovieClip [soldiere] Frame 5
stop();
Symbol 1060 MovieClip [soldiere] Frame 6
stop();
Symbol 1060 MovieClip [soldiere] Frame 10
stop();
Symbol 1077 MovieClip Frame 17
_parent.gotoAndStop(3);
Symbol 1099 MovieClip Frame 17
stop();
Symbol 1107 MovieClip Frame 41
stop();
Symbol 1109 MovieClip Frame 61
_parent.gotoAndStop(3);
Symbol 1110 MovieClip [soldierd] Frame 1
stop();
Symbol 1110 MovieClip [soldierd] Frame 2
stop();
Symbol 1110 MovieClip [soldierd] Frame 3
stop();
Symbol 1110 MovieClip [soldierd] Frame 4
stop();
Symbol 1110 MovieClip [soldierd] Frame 5
stop();
Symbol 1110 MovieClip [soldierd] Frame 6
stop();
Symbol 1110 MovieClip [soldierd] Frame 10
stop();
Symbol 1127 MovieClip Frame 17
_parent.gotoAndStop(3);
Symbol 1149 MovieClip Frame 17
stop();
Symbol 1152 MovieClip Frame 61
_parent.gotoAndStop(3);
Symbol 1153 MovieClip [soldierc] Frame 1
stop();
Symbol 1153 MovieClip [soldierc] Frame 2
stop();
Symbol 1153 MovieClip [soldierc] Frame 3
stop();
Symbol 1153 MovieClip [soldierc] Frame 4
stop();
Symbol 1153 MovieClip [soldierc] Frame 5
stop();
Symbol 1153 MovieClip [soldierc] Frame 10
stop();
Symbol 1170 MovieClip Frame 17
_parent.gotoAndStop(3);
Symbol 1192 MovieClip Frame 17
stop();
Symbol 1195 MovieClip Frame 61
_parent.gotoAndStop(3);
Symbol 1196 MovieClip [soldierb] Frame 1
stop();
Symbol 1196 MovieClip [soldierb] Frame 2
stop();
Symbol 1196 MovieClip [soldierb] Frame 3
stop();
Symbol 1196 MovieClip [soldierb] Frame 4
stop();
Symbol 1196 MovieClip [soldierb] Frame 5
stop();
Symbol 1196 MovieClip [soldierb] Frame 10
stop();
Symbol 1213 MovieClip Frame 17
_parent.gotoAndStop(3);
Symbol 1235 MovieClip Frame 17
stop();
Symbol 1238 MovieClip Frame 61
_parent.gotoAndStop(3);
Symbol 1239 MovieClip [soldieraclip] Frame 1
stop();
Symbol 1239 MovieClip [soldieraclip] Frame 2
stop();
Symbol 1239 MovieClip [soldieraclip] Frame 3
stop();
Symbol 1239 MovieClip [soldieraclip] Frame 4
stop();
Symbol 1239 MovieClip [soldieraclip] Frame 5
stop();
Symbol 1239 MovieClip [soldieraclip] Frame 10
stop();
Symbol 1245 MovieClip Frame 6
stop();
Symbol 1246 MovieClip [bloodred] Frame 1
stop();
Symbol 1246 MovieClip [bloodred] Frame 2
stop();
Symbol 1997 MovieClip [__Packages.mochi.as2.MochiAd] Frame 0
class mochi.as2.MochiAd
{
function MochiAd () {
}
static function getVersion() {
return(mochi.as2.MochiServices.getVersion());
}
static function showPreGameAd(options) {
var _local26 = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, no_progress_bar:false, ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}, ad_skipped:function () {
}, ad_progress:function (percent) {
}};
options = _parseOptions(options, _local26);
if ("c862232051e0a94e1c3609b3916ddb17".substr(0) == "dfeada81ac97cde83665f81c12da7def") {
options.ad_started();
options.ad_finished();
return(undefined);
}
var clip = options.clip;
var _local23 = 11000;
var _local19 = options.ad_timeout;
if (options.skip) {
_local19 = 0;
}
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local14 = _getRes(options);
var _local4 = _local14[0];
var _local13 = _local14[1];
mc._x = _local4 * 0.5;
mc._y = _local13 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local4 * -0.5;
chk._y = _local13 * -0.5;
var _local6 = chk.createEmptyMovieClip("_mochiad_bar", 4);
if (options.no_progress_bar) {
_local6._visible = false;
delete options.no_progress_bar;
} else {
_local6._x = 10;
_local6._y = _local13 - 20;
}
var _local22 = options.color;
delete options.color;
var _local20 = options.background;
delete options.background;
var _local24 = options.outline;
delete options.outline;
var _local5 = _local6.createEmptyMovieClip("_outline", 1);
_local5.beginFill(_local20);
_local5.moveTo(0, 0);
_local5.lineTo(_local4 - 20, 0);
_local5.lineTo(_local4 - 20, 10);
_local5.lineTo(0, 10);
_local5.lineTo(0, 0);
_local5.endFill();
var _local3 = _local6.createEmptyMovieClip("_inside", 2);
_local3.beginFill(_local22);
_local3.moveTo(0, 0);
_local3.lineTo(_local4 - 20, 0);
_local3.lineTo(_local4 - 20, 10);
_local3.lineTo(0, 10);
_local3.lineTo(0, 0);
_local3.endFill();
_local3._xscale = 0;
var _local7 = _local6.createEmptyMovieClip("_outline", 3);
_local7.lineStyle(0, _local24, 100);
_local7.moveTo(0, 0);
_local7.lineTo(_local4 - 20, 0);
_local7.lineTo(_local4 - 20, 10);
_local7.lineTo(0, 10);
_local7.lineTo(0, 0);
chk.ad_msec = _local23;
chk.ad_timeout = _local19;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
mochi.as2.MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
var sendHostProgress = false;
mc.lc.sendHostLoadProgress = function (lc_name) {
sendHostProgress = true;
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec;
};
mc.lc.rpc = function (callbackID, arg) {
mochi.as2.MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
chk.onEnterFrame = function () {
var _local6 = this._parent._parent;
var _local11 = this._parent._mochiad_ctr;
var _local5 = getTimer() - this.started;
var _local3 = false;
var _local4 = _local6.getBytesTotal();
var _local8 = _local6.getBytesLoaded();
var _local2 = (100 * _local8) / _local4;
var _local10 = (100 * _local5) / chk.ad_msec;
var _local9 = this._mochiad_bar._inside;
var _local13 = Math.min(100, Math.min(_local2 || 0, _local10));
_local13 = Math.max(this.last_pcnt, _local13);
this.last_pcnt = _local13;
_local9._xscale = _local13;
options.ad_progress(_local13);
if (sendHostProgress) {
mochi.as2.MochiAd.containerNotify(clip, {id:"hostLoadPcnt", pcnt:_local2}, clip._mochiad._containerLCName);
if (_local2 == 100) {
sendHostProgress = false;
}
}
if (!chk.showing) {
var _local7 = _local11.getBytesTotal();
if ((_local7 > 0) || (typeof(_local7) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if ((_local5 > chk.ad_timeout) && (_local2 == 100)) {
options.ad_failed();
_local3 = true;
}
}
if (_local5 > chk.ad_msec) {
_local3 = true;
}
if (((_local4 > 0) && (_local8 >= _local4)) && (_local3)) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
}
}
};
}
static function showClickAwayAd(options) {
var _local10 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showClickAwayAd", res:"300x250", no_bg:true, ad_started:function () {
}, ad_finished:function () {
}, ad_loaded:function (width, height) {
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_skipped:function () {
}};
options = _parseOptions(options, _local10);
var clip = options.clip;
var _local9 = options.ad_timeout;
delete options.ad_timeout;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var _local3 = clip._mochiad;
_local3.onUnload = function () {
options.ad_finished();
};
var _local5 = _getRes(options);
var _local11 = _local5[0];
var _local8 = _local5[1];
_local3._x = _local11 * 0.5;
_local3._y = _local8 * 0.5;
var chk = _local3.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_timeout = _local9;
chk.started = getTimer();
chk.showing = false;
_local3.lc.adLoaded = options.ad_loaded;
_local3.lc.adSkipped = options.ad_skipped;
_local3.lc.rpc = function (callbackID, arg) {
mochi.as2.MochiAd.rpc(clip, callbackID, arg);
};
_local3.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
var _local21 = false;
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
_local2 = true;
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
options.ad_failed();
_local2 = true;
}
}
if (_local2) {
delete this.onEnterFrame;
}
};
}
static function showInterLevelAd(options) {
var _local13 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}, ad_skipped:function () {
}};
options = _parseOptions(options, _local13);
var clip = options.clip;
var _local10 = 11000;
var _local12 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local5 = _getRes(options);
var _local14 = _local5[0];
var _local11 = _local5[1];
mc._x = _local14 * 0.5;
mc._y = _local11 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = _local10;
chk.ad_timeout = _local12;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
mochi.as2.MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec - 250;
};
mc.lc.rpc = function (callbackID, arg) {
mochi.as2.MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
options.ad_failed();
_local2 = true;
}
}
if (_local4 > chk.ad_msec) {
_local2 = true;
}
if (_local2) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
}
}
};
}
static function showPreloaderAd(options) {
trace("[MochiAd] DEPRECATED: showPreloaderAd was renamed to showPreGameAd in 2.0");
showPreGameAd(options);
}
static function showTimedAd(options) {
trace("[MochiAd] DEPRECATED: showTimedAd was renamed to showInterLevelAd in 2.0");
showInterLevelAd(options);
}
static function _allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function load(options) {
var _local12 = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = _parseOptions(options, _local12);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local6 = options.clip;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local6._mochiad_loaded) {
return(null);
}
var _local11 = options.depth;
delete options.depth;
var mc = _local6.createEmptyMovieClip("_mochiad", _local11);
var _local10 = _getRes(options);
options.res = (_local10[0] + "x") + _local10[1];
options.server = options.server + options.id;
delete options.id;
_local6._mochiad_loaded = true;
if (_local6._url.indexOf("http") != 0) {
trace("[MochiAd] NOTE: Security Sandbox Violation errors below are normal");
}
var _local4 = mc.createEmptyMovieClip("_mochiad_ctr", 1);
for (var _local7 in options) {
_local4[_local7] = options[_local7];
}
var _local9 = _local4.server;
delete _local4.server;
var _local13 = _allowDomains(_local9);
mc.onEnterFrame = function () {
if (this._mochiad_ctr._url != this._url) {
this.onEnterFrame = function () {
if (!this._mochiad_ctr) {
delete this.onEnterFrame;
mochi.as2.MochiAd.unload(this._parent);
}
};
}
};
var _local5 = new Object();
var _local8 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local5.mc = mc;
_local5.name = _local8;
_local5.hostname = _local13;
_local5.allowDomain = function (d) {
return(true);
};
_local5.allowInsecureDomain = _local5.allowDomain;
_local5.connect(_local8);
mc.lc = _local5;
mc.lc.regContLC = function (lc_name) {
mc._containerLCName = lc_name;
};
_local4.lc = _local8;
_local4.st = getTimer();
if (!options.skip) {
_local4.loadMovie(_local9 + ".swf", "POST");
}
return(mc);
}
static function unload(clip) {
if (typeof(clip) == "undefined") {
clip = _root;
}
if (clip.clip && (clip.clip._mochiad)) {
clip = clip.clip;
}
if (!clip._mochiad) {
return(false);
}
containerNotify(clip, {id:"unload"}, clip._mochiad._containerLCName);
clip._mochiad.removeMovieClip();
delete clip._mochiad_loaded;
delete clip._mochiad;
return(true);
}
static function _isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function _getRes(options) {
var _local3 = options.clip.getBounds();
var _local2 = 0;
var _local1 = 0;
if (typeof(options.res) != "undefined") {
var _local4 = options.res.split("x");
_local2 = parseFloat(_local4[0]);
_local1 = parseFloat(_local4[1]);
} else {
_local2 = _local3.xMax - _local3.xMin;
_local1 = _local3.yMax - _local3.yMin;
}
if ((_local2 == 0) || (_local1 == 0)) {
_local2 = Stage.width;
_local1 = Stage.height;
}
return([_local2, _local1]);
}
static function _parseOptions(options, defaults) {
var _local4 = {};
for (var _local8 in defaults) {
_local4[_local8] = defaults[_local8];
}
if (options) {
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
}
if (_root.mochiad_options) {
var _local5 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local5.length) {
var _local3 = _local5[_local2].split("=");
_local4[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
if (_local4.id == "test") {
trace("[MochiAd] WARNING: Using the MochiAds test identifier, make sure to use the code from your dashboard, not this example!");
}
return(_local4);
}
static function rpc(clip, callbackID, arg) {
switch (arg.id) {
case "setValue" :
setValue(clip, arg.objectName, arg.value);
break;
case "getValue" :
var _local4 = getValue(clip, arg.objectName);
containerRpcResult(clip, callbackID, _local4, clip._mochiad._containerLCName);
break;
case "runMethod" :
var _local3 = runMethod(clip, arg.method, arg.args);
containerRpcResult(clip, callbackID, _local3, clip._mochiad._containerLCName);
break;
default :
trace("[mochiads rpc] unknown rpc id: " + arg.id);
}
}
static function setValue(base, objectName, value) {
var _local2 = objectName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
base[_local2[_local1]] = value;
}
static function getValue(base, objectName) {
var _local2 = objectName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
return(base[_local2[_local1]]);
}
static function runMethod(base, methodName, argsArray) {
var _local2 = methodName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
if (typeof(base[_local2[_local1]]) == "function") {
return(base[_local2[_local1]].apply(base, argsArray));
}
return(undefined);
}
static function containerNotify(clip, args, lcName) {
var _local1 = clip._mochiad._mochiad_ctr.ad.app;
if (_local1.notify) {
_local1.notify(args);
} else {
new LocalConnection().send(lcName, "notify", args);
}
}
static function containerRpcResult(clip, callbackID, val, lcName) {
var _local1 = clip._mochiad._mochiad_ctr.ad.app;
if (_local1.rpcResult) {
_local1.rpcResult(callbackID, val);
} else {
new LocalConnection().send(lcName, "rpcResult", callbackID, val);
}
}
}
Symbol 1998 MovieClip [__Packages.mochi.as2.MochiSync] Frame 0
class mochi.as2.MochiSync
{
var _syncContainer;
function MochiSync () {
_syncContainer = {};
}
function getProp(name) {
return(_syncContainer[name]);
}
function setProp(name, value) {
if (_syncContainer[name] == value) {
return(undefined);
}
_syncContainer[name] = value;
mochi.as2.MochiServices.send("sync_propUpdate", {name:name, value:value});
}
function triggerEvent(eventType, args) {
switch (eventType) {
case SYNC_REQUEST :
mochi.as2.MochiServices.send("sync_syncronize", _syncContainer);
break;
case SYNC_PROPERTY :
_syncContainer[args.name] = args.value;
}
}
static var SYNC_REQUEST = "SyncRequest";
static var SYNC_PROPERTY = "UpdateProperty";
}
Symbol 1999 MovieClip [__Packages.mochi.as2.MochiServices] Frame 0
class mochi.as2.MochiServices
{
static var _id, _container, _clip, _sendChannelName, __get__comChannelName, onError, _listenChannel, _sendChannel;
function MochiServices () {
}
static function get id() {
return(_id);
}
static function get clip() {
return(_container);
}
static function get childClip() {
return(_clip);
}
static function getVersion() {
return("3.8 as2");
}
static function allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function get isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function set comChannelName(val) {
if (val != undefined) {
if (val.length > 3) {
_sendChannelName = val + "_fromgame";
initComChannels();
}
}
//return(__get__comChannelName());
}
static function get connected() {
return(_connected);
}
static function connect(id, clip, onError) {
warnID(id, false);
if ((!_connected) && (_clip == undefined)) {
trace("MochiServices Connecting...");
_connecting = true;
init(id, clip);
}
if (onError != undefined) {
mochi.as2.MochiServices.onError = onError;
} else if (mochi.as2.MochiServices.onError == undefined) {
mochi.as2.MochiServices.onError = function (errorCode) {
trace(errorCode);
};
}
}
static function disconnect() {
if (_connected || (_connecting)) {
_connecting = (_connected = false);
flush(true);
if (_clip != undefined) {
_clip.removeMovieClip();
delete _clip;
}
_listenChannel.close();
}
}
static function init(id, clip) {
_id = id;
if (clip != undefined) {
_container = clip;
} else {
_container = _root;
}
loadCommunicator(id, _container);
}
static function loadCommunicator(id, clip) {
var _local6 = "_mochiservices_com_" + id;
var _local5 = new MovieClipLoader();
var _local3 = {};
if (_clip != null) {
return(_clip);
}
if (!isNetworkAvailable) {
return(null);
}
if (urlOptions().servURL) {
_servURL = urlOptions().servURL;
}
var _local4 = _servURL + _services;
if (urlOptions().servicesURL) {
_local4 = urlOptions().servicesURL;
}
allowDomains(_local4);
_clip = clip.createEmptyMovieClip(_local6, 10336, false);
_listenChannelName = _listenChannelName + ((Math.floor(new Date().getTime()) + "_") + Math.floor(Math.random() * 99999));
listen();
if (_local3.waitInterval != null) {
clearInterval(_local3.waitInterval);
}
_local3.onLoadError = loadError;
_local3.onLoadStart = function (target_mc) {
this.isLoading = true;
};
_local3.onLoadComplete = function (target_mc) {
target_mc.MochiServices = mochi.as2.MochiServices;
};
_local3.startTime = getTimer();
_local3.wait = function () {
if ((getTimer() - this.startTime) > 10000) {
if (!this.isLoading) {
mochi.as2.MochiServices.disconnect();
mochi.as2.MochiServices.onError.apply(null, ["IOError"]);
}
clearInterval(this.waitInterval);
}
};
_local3.waitInterval = setInterval(_local3, "wait", 1000);
_local5.addListener(_local3);
_local5.loadClip((((((_local4 + "?listenLC=") + _listenChannelName) + "&mochiad_options=") + escape(_root.mochiad_options)) + "&api_version=") + getVersion(), _clip);
_sendChannel = new LocalConnection();
_sendChannel._queue = [];
return(_clip);
}
static function loadError(target_mc, errorCode, httpStatus) {
trace("MochiServices could not load.");
disconnect();
onError.apply(null, [errorCode]);
}
static function onStatus(infoObject) {
if (!(infoObject.level === "error")) {
} else {
_connected = false;
_listenChannel.connect(_listenChannelName);
}
}
static function listen() {
_listenChannel = new LocalConnection();
_listenChannel.handshake = function (args) {
mochi.as2.MochiServices.__set__comChannelName(args.newChannel);
};
_listenChannel.allowDomain = function (d) {
return(true);
};
_listenChannel.allowInsecureDomain = _listenChannel.allowDomain;
_listenChannel._nextcallbackID = 0;
_listenChannel._callbacks = {};
_listenChannel.connect(_listenChannelName);
trace("Waiting for MochiAds services to connect...");
}
static function initComChannels() {
if (!_connected) {
_sendChannel.onStatus = function (infoObject) {
mochi.as2.MochiServices.onStatus(infoObject);
};
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"handshakeDone"});
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"registerGame", id:_id, version:getVersion()});
_listenChannel.onStatus = function (infoObject) {
mochi.as2.MochiServices.onStatus(infoObject);
};
_listenChannel.onReceive = function (pkg) {
var _local5 = pkg.callbackID;
var _local4 = this._callbacks[_local5];
if (!_local4) {
return(undefined);
}
var _local2 = _local4.callbackMethod;
var _local3 = _local4.callbackObject;
if (_local3 && (typeof(_local2) == "string")) {
_local2 = _local3[_local2];
}
if (_local2 != undefined) {
_local2.apply(_local3, pkg.args);
}
delete this._callbacks[_local5];
};
_listenChannel.onEvent = function (pkg) {
switch (pkg.target) {
case "events" :
mochi.as2.MochiEvents.triggerEvent(pkg.event, pkg.args);
break;
case "coins" :
mochi.as2.MochiSocial.triggerEvent(pkg.event, pkg.args);
break;
case "sync" :
mochi.as2.MochiServices.servicesSync.triggerEvent(pkg.event, pkg.args);
}
};
_listenChannel.onError = function () {
mochi.as2.MochiServices.onError.apply(null, ["IOError"]);
};
trace("[SERVICES_API] connected!");
_connecting = false;
_connected = true;
while (_sendChannel._queue.length > 0) {
_sendChannel.send(_sendChannelName, "onReceive", _sendChannel._queue.shift());
}
}
}
static function updateCopy(args) {
send("coins_updateCopy", args, null, null);
}
static function flush(error) {
var _local1;
var _local2;
while (_sendChannel._queue.length > 0) {
_local1 = _sendChannel._queue.shift();
if (_local1.callbackID != null) {
_local2 = _listenChannel._callbacks[_local1.callbackID];
}
delete _listenChannel._callbacks[_local1.callbackID];
if (error) {
handleError(_local1.args, _local2.callbackObject, _local2.callbackMethod);
}
}
}
static function handleError(args, callbackObject, callbackMethod) {
if (args != null) {
if (args.onError != null) {
args.onError.apply(null, ["NotConnected"]);
}
if ((args.options != null) && (args.options.onError != null)) {
args.options.onError.apply(null, ["NotConnected"]);
}
}
if (callbackMethod != null) {
args = {};
args.error = true;
args.errorCode = "NotConnected";
if ((callbackObject != null) && (typeof(callbackMethod) == "string")) {
callbackObject[callbackMethod](args);
} else if (callbackMethod != null) {
callbackMethod.apply(args);
}
}
}
static function send(methodName, args, callbackObject, callbackMethod) {
if (_connected) {
_sendChannel.send(_sendChannelName, "onReceive", {methodName:methodName, args:args, callbackID:_listenChannel._nextcallbackID});
} else {
if ((_clip == undefined) || (!_connecting)) {
trace("Error: MochiServices not connected. Please call MochiServices.connect(). Function: " + methodName);
handleError(args, callbackObject, callbackMethod);
flush(true);
return(undefined);
}
_sendChannel._queue.push({methodName:methodName, args:args, callbackID:_listenChannel._nextcallbackID});
}
_listenChannel._callbacks[_listenChannel._nextcallbackID] = {callbackObject:callbackObject, callbackMethod:callbackMethod};
_listenChannel._nextcallbackID++;
}
static function urlOptions() {
var _local5 = {};
var _local6;
if (_root._url.indexOf("mochiad_options") != -1) {
var _local2 = (_root._url.indexOf("mochiad_options") + "mochiad_options".length) + 1;
_local6 = _root._url.substr(_local2, _root._url.length);
} else if (_root.mochiad_options) {
_local6 = _root.mochiad_options;
}
if (_local6) {
var _local4 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = _local4[_local2].split("=");
_local5[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
return(_local5);
}
static function warnID(bid, leaderboard) {
bid = bid.toLowerCase();
if (bid.length != 16) {
trace(("WARNING: " + (leaderboard ? "board" : "game")) + " ID is not the appropriate length");
return(undefined);
}
if (bid == "1e113c7239048b3f") {
if (leaderboard) {
trace("WARNING: Using testing board ID");
} else {
trace("WARNING: Using testing board ID as game ID");
}
return(undefined);
}
if (bid == "84993a1de4031cd8") {
if (leaderboard) {
trace("WARNING: Using testing game ID as board ID");
} else {
trace("WARNING: Using testing game ID");
}
return(undefined);
}
var _local1 = 0;
while (_local1 < bid.length) {
switch (bid.charAt(_local1)) {
case "0" :
case "1" :
case "2" :
case "3" :
case "4" :
case "5" :
case "6" :
case "7" :
case "8" :
case "9" :
case "a" :
case "b" :
case "c" :
case "d" :
case "e" :
case "f" :
break;
default :
trace("WARNING: Board ID contains illegal characters: " + bid);
return(undefined);
}
_local1++;
}
}
static function addLinkEvent(url, burl, btn, onClick) {
var timeout = 1500;
var t0 = getTimer();
var _local2 = new Object();
_local2.mav = getVersion();
_local2.swfv = btn.getSWFVersion() || 6;
_local2.swfurl = btn._url;
_local2.fv = System.capabilities.version;
_local2.os = System.capabilities.os;
_local2.lang = System.capabilities.language;
_local2.scres = (System.capabilities.screenResolutionX + "x") + System.capabilities.screenResolutionY;
var s = "?";
var _local3 = 0;
for (var _local6 in _local2) {
if (_local3 != 0) {
s = s + "&";
}
_local3++;
s = ((s + _local6) + "=") + escape(_local2[_local6]);
}
if (!(netupAttempted || (_connected))) {
var ping = btn.createEmptyMovieClip("ping", 777);
var _local7 = btn.createEmptyMovieClip("nettest", 778);
netupAttempted = true;
ping.loadMovie("http://x.mochiads.com/linkping.swf?t=" + getTimer());
_local7.onEnterFrame = function () {
if ((ping._totalframes > 0) && (ping._totalframes == ping._framesloaded)) {
delete this.onEnterFrame;
} else if ((getTimer() - t0) > timeout) {
delete this.onEnterFrame;
mochi.as2.MochiServices.netup = false;
}
};
}
var _local4 = btn.createEmptyMovieClip("clk", 1001);
_local4._alpha = 0;
_local4.beginFill(1044735);
_local4.moveTo(0, 0);
_local4.lineTo(0, btn._height);
_local4.lineTo(btn._width, btn._height);
_local4.lineTo(btn._width, 0);
_local4.lineTo(0, 0);
_local4.endFill();
_local4.onRelease = function () {
if (mochi.as2.MochiServices.netup) {
getURL (url + s, "_blank");
} else {
getURL (burl, "_blank");
}
if (onClick != undefined) {
onClick();
}
};
}
static function setContainer(clip) {
}
static function stayOnTop(clip) {
}
static var _servURL = "http://www.mochiads.com/static/lib/services/";
static var _services = "services.swf";
static var _mochiLC = "MochiLC.swf";
static var _listenChannelName = "__ms_";
static var _connecting = false;
static var _connected = false;
static var netup = true;
static var netupAttempted = false;
static var servicesSync = new mochi.as2.MochiSync();
}
Symbol 2000 MovieClip [__Packages.mochi.as2.MochiEventDispatcher] Frame 0
class mochi.as2.MochiEventDispatcher
{
var eventTable;
function MochiEventDispatcher () {
eventTable = {};
}
function buildDelegate(thisObject, thatObject) {
var _local2 = {thisObject:thisObject, thatObject:thatObject};
if (thatObject != undefined) {
var funct = ((typeof(thatObject) == "string") ? (thisObject[thatObject]) : (thatObject));
_local2.delegate = function (args) {
funct.call(thisObject, args);
};
} else {
_local2.delegate = thisObject;
}
return(_local2);
}
function compareDelegate(d_A, d_B) {
if ((d_A.thisObject != d_B.thisObject) || (d_A.thatObject != d_B.thatObject)) {
return(false);
}
return(true);
}
function addEventListener(event, thisObject, thatObject) {
removeEventListener(event, thisObject, thatObject);
eventTable[event].push(buildDelegate(thisObject, thatObject));
}
function removeEventListener(event, thisObject, thatObject) {
var _local3 = buildDelegate(thisObject, thatObject);
if (eventTable[event] == undefined) {
eventTable[event] = [];
return(undefined);
}
for (var _local4 in eventTable[event]) {
if (!compareDelegate(eventTable[event][_local4], _local3)) {
continue;
}
eventTable[event].splice(Number(_local4), 1);
}
}
function triggerEvent(event, args) {
if (eventTable[event] == undefined) {
return(undefined);
}
for (var _local4 in eventTable[event]) {
eventTable[event][_local4].delegate(args);
}
}
}
Symbol 2001 MovieClip [__Packages.mochi.as2.MochiEvents] Frame 0
class mochi.as2.MochiEvents
{
function MochiEvents () {
}
static function getVersion() {
return(mochi.as2.MochiServices.getVersion());
}
static function startSession(achievementID) {
mochi.as2.MochiServices.send("events_beginSession", {achievementID:achievementID}, null, null);
}
static function setNotifications(clip, style) {
var _local2 = {};
for (var _local3 in style) {
_local2[_local3] = style[_local3];
}
_local2.clip = clip;
mochi.as2.MochiServices.send("events_setNotifications", _local2, null, null);
}
static function addEventListener(eventType, thisObject, thatObject) {
_dispatcher.addEventListener(eventType, thisObject, thatObject);
}
static function triggerEvent(eventType, args) {
_dispatcher.triggerEvent(eventType, args);
}
static function removeEventListener(eventType, thisObject, thatObject) {
_dispatcher.removeEventListener(eventType, thisObject, thatObject);
}
static function startPlay(tag) {
if (tag == undefined) {
tag = "gameplay";
}
mochi.as2.MochiServices.send("events_setRoundID", {tag:String(tag)}, null, null);
}
static function endPlay() {
mochi.as2.MochiServices.send("events_clearRoundID", null, null, null);
}
static function trackEvent(tag, value) {
mochi.as2.MochiServices.send("events_trackEvent", {tag:tag, value:value}, null, null);
}
static var ACHIEVEMENT_RECEIVED = "AchievementReceived";
static var ALIGN_TOP_LEFT = "ALIGN_TL";
static var ALIGN_TOP = "ALIGN_T";
static var ALIGN_TOP_RIGHT = "ALIGN_TR";
static var ALIGN_LEFT = "ALIGN_L";
static var ALIGN_CENTER = "ALIGN_C";
static var ALIGN_RIGHT = "ALIGN_R";
static var ALIGN_BOTTOM_LEFT = "ALIGN_BL";
static var ALIGN_BOTTOM = "ALIGN_B";
static var ALIGN_BOTTOM_RIGHT = "ALIGN_BR";
static var FORMAT_SHORT = "ShortForm";
static var FORMAT_LONG = "LongForm";
static var _dispatcher = new mochi.as2.MochiEventDispatcher();
}
Symbol 2002 MovieClip [__Packages.mochi.as2.MochiSocial] Frame 0
class mochi.as2.MochiSocial
{
function MochiSocial () {
}
static function getVersion() {
return(mochi.as2.MochiServices.getVersion());
}
static function showLoginWidget(options) {
mochi.as2.MochiServices.setContainer();
mochi.as2.MochiServices.stayOnTop();
mochi.as2.MochiServices.send("coins_showLoginWidget", {options:options});
}
static function hideLoginWidget() {
mochi.as2.MochiServices.send("coins_hideLoginWidget");
}
static function requestLogin() {
mochi.as2.MochiServices.send("coins_requestLogin");
}
static function getUserInfo() {
mochi.as2.MochiServices.send("coins_getUserInfo");
}
static function saveUserProperties(properties) {
mochi.as2.MochiServices.send("coins_saveUserProperties", properties);
}
static function addEventListener(eventType, delegate) {
_dispatcher.addEventListener(eventType, delegate);
}
static function triggerEvent(eventType, args) {
_dispatcher.triggerEvent(eventType, args);
}
static function removeEventListener(eventType, delegate) {
_dispatcher.removeEventListener(eventType, delegate);
}
static var LOGGED_IN = "LoggedIn";
static var LOGGED_OUT = "LoggedOut";
static var LOGIN_SHOW = "LoginShow";
static var LOGIN_HIDE = "LoginHide";
static var LOGIN_SHOWN = "LoginShown";
static var PROFILE_SHOW = "ProfileShow";
static var PROFILE_HIDE = "ProfileHide";
static var PROPERTIES_SAVED = "PropertySaved";
static var WIDGET_LOADED = "WidgetLoaded";
static var USER_INFO = "UserInfo";
static var ERROR = "Error";
static var IO_ERROR = "IOError";
static var NO_USER = "NoUser";
static var PROPERTIES_SIZE = "PropertiesSize";
static var _dispatcher = new mochi.as2.MochiEventDispatcher();
}
Symbol 1273 MovieClip Frame 1
stop();
Symbol 1273 MovieClip Frame 2
stop();
Symbol 1276 MovieClip Frame 1
stop();
Symbol 1289 MovieClip Frame 1
stop();
Symbol 1289 MovieClip Frame 2
stop();
Symbol 1291 MovieClip Frame 1
stop();
Symbol 1291 MovieClip Frame 2
stop();
Symbol 1293 MovieClip Frame 1
stop();
Symbol 1293 MovieClip Frame 2
stop();
Symbol 1295 MovieClip Frame 1
stop();
Symbol 1295 MovieClip Frame 2
stop();
Symbol 1297 MovieClip Frame 1
stop();
Symbol 1297 MovieClip Frame 2
stop();
Symbol 1299 MovieClip Frame 1
stop();
Symbol 1299 MovieClip Frame 2
stop();
Symbol 1301 MovieClip Frame 1
stop();
Symbol 1301 MovieClip Frame 2
stop();
Symbol 1303 MovieClip Frame 1
stop();
Symbol 1303 MovieClip Frame 2
stop();
Symbol 1305 MovieClip Frame 1
stop();
Symbol 1305 MovieClip Frame 2
stop();
Symbol 1307 MovieClip Frame 1
stop();
Symbol 1307 MovieClip Frame 2
stop();
Symbol 1309 MovieClip Frame 1
stop();
Symbol 1309 MovieClip Frame 2
stop();
Symbol 1311 MovieClip Frame 1
stop();
Symbol 1311 MovieClip Frame 2
stop();
Symbol 1313 MovieClip Frame 1
stop();
Symbol 1313 MovieClip Frame 2
stop();
Symbol 1315 MovieClip Frame 1
stop();
Symbol 1315 MovieClip Frame 2
stop();
Symbol 1317 MovieClip Frame 1
stop();
Symbol 1317 MovieClip Frame 2
stop();
Symbol 1319 MovieClip Frame 1
stop();
Symbol 1319 MovieClip Frame 2
stop();
Symbol 1321 MovieClip Frame 1
stop();
Symbol 1321 MovieClip Frame 2
stop();
Symbol 1323 MovieClip Frame 1
stop();
Symbol 1323 MovieClip Frame 2
stop();
Symbol 1325 MovieClip Frame 1
stop();
Symbol 1325 MovieClip Frame 2
stop();
Symbol 1327 MovieClip Frame 1
stop();
Symbol 1327 MovieClip Frame 2
stop();
Symbol 1329 MovieClip Frame 1
stop();
Symbol 1329 MovieClip Frame 2
stop();
Symbol 1331 MovieClip Frame 1
stop();
Symbol 1331 MovieClip Frame 2
stop();
Symbol 1333 MovieClip Frame 1
stop();
Symbol 1333 MovieClip Frame 2
stop();
Symbol 1335 MovieClip Frame 1
stop();
Symbol 1335 MovieClip Frame 2
stop();
Symbol 1337 MovieClip Frame 1
stop();
Symbol 1337 MovieClip Frame 2
stop();
Symbol 1339 MovieClip Frame 1
stop();
Symbol 1339 MovieClip Frame 2
stop();
Symbol 1341 MovieClip Frame 1
stop();
Symbol 1341 MovieClip Frame 2
stop();
Symbol 1343 MovieClip Frame 1
stop();
Symbol 1343 MovieClip Frame 2
stop();
Symbol 1345 MovieClip Frame 1
stop();
Symbol 1345 MovieClip Frame 2
stop();
Symbol 1347 MovieClip Frame 1
stop();
Symbol 1347 MovieClip Frame 2
stop();
Symbol 1349 MovieClip Frame 1
stop();
Symbol 1349 MovieClip Frame 2
stop();
Symbol 1351 MovieClip Frame 1
stop();
Symbol 1351 MovieClip Frame 2
stop();
Symbol 1353 MovieClip Frame 1
stop();
Symbol 1353 MovieClip Frame 2
stop();
Symbol 1355 MovieClip Frame 1
stop();
Symbol 1355 MovieClip Frame 2
stop();
Symbol 1357 MovieClip Frame 1
stop();
Symbol 1357 MovieClip Frame 2
stop();
Symbol 1359 MovieClip Frame 1
stop();
Symbol 1359 MovieClip Frame 2
stop();
Symbol 1361 MovieClip Frame 1
stop();
Symbol 1361 MovieClip Frame 2
stop();
Symbol 1363 MovieClip Frame 1
stop();
Symbol 1363 MovieClip Frame 2
stop();
Symbol 1364 MovieClip Frame 1
stop();
Symbol 1364 MovieClip Frame 2
stop();
Symbol 1365 MovieClip Frame 1
stop();
Symbol 1365 MovieClip Frame 2
stop();
Symbol 1369 MovieClip Frame 1
stop();
Symbol 1369 MovieClip Frame 2
stop();
Symbol 1371 MovieClip Frame 1
stop();
Symbol 1371 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 1381 MovieClip Frame 1
stop();
Symbol 1381 MovieClip Frame 2
stop();
Symbol 1383 MovieClip Frame 1
stop();
Symbol 1383 MovieClip Frame 2
stop();
Symbol 1385 MovieClip Frame 1
stop();
Symbol 1385 MovieClip Frame 2
stop();
Symbol 1387 MovieClip Frame 1
stop();
Symbol 1387 MovieClip Frame 2
stop();
Symbol 1389 MovieClip Frame 1
stop();
Symbol 1389 MovieClip Frame 2
stop();
Symbol 1390 MovieClip Frame 1
stop();
Symbol 1390 MovieClip Frame 2
stop();
Symbol 1392 MovieClip Frame 1
stop();
Symbol 1392 MovieClip Frame 2
stop();
Symbol 1394 MovieClip Frame 1
stop();
Symbol 1394 MovieClip Frame 2
stop();
Symbol 1395 MovieClip Frame 1
stop();
Symbol 1395 MovieClip Frame 2
stop();
Symbol 1397 MovieClip Frame 1
stop();
Symbol 1397 MovieClip Frame 2
stop();
Symbol 1399 MovieClip Frame 1
stop();
Symbol 1399 MovieClip Frame 2
stop();
Symbol 1400 MovieClip Frame 1
stop();
Symbol 1400 MovieClip Frame 2
stop();
Symbol 1402 MovieClip Frame 1
stop();
Symbol 1402 MovieClip Frame 2
stop();
Symbol 1404 MovieClip Frame 1
stop();
Symbol 1404 MovieClip Frame 2
stop();
Symbol 1405 MovieClip Frame 1
stop();
Symbol 1405 MovieClip Frame 2
stop();
Symbol 1407 MovieClip Frame 1
stop();
Symbol 1407 MovieClip Frame 2
stop();
Symbol 1409 MovieClip Frame 1
stop();
Symbol 1409 MovieClip Frame 2
stop();
Symbol 1411 MovieClip Frame 1
stop();
Symbol 1411 MovieClip Frame 2
stop();
Symbol 1413 MovieClip Frame 1
stop();
Symbol 1413 MovieClip Frame 2
stop();
Symbol 1415 MovieClip Frame 1
stop();
Symbol 1415 MovieClip Frame 2
stop();
Symbol 1417 MovieClip Frame 1
stop();
Symbol 1417 MovieClip Frame 2
stop();
Symbol 1419 MovieClip Frame 1
stop();
Symbol 1419 MovieClip Frame 2
stop();
Symbol 1421 MovieClip Frame 1
stop();
Symbol 1421 MovieClip Frame 2
stop();
Symbol 1423 MovieClip Frame 1
stop();
Symbol 1423 MovieClip Frame 2
stop();
Symbol 1425 MovieClip Frame 1
stop();
Symbol 1425 MovieClip Frame 2
stop();
Symbol 1427 MovieClip Frame 1
stop();
Symbol 1427 MovieClip Frame 2
stop();
Symbol 1429 MovieClip Frame 1
stop();
Symbol 1429 MovieClip Frame 2
stop();
Symbol 1431 MovieClip Frame 1
stop();
Symbol 1431 MovieClip Frame 2
stop();
Symbol 1433 MovieClip Frame 1
stop();
Symbol 1433 MovieClip Frame 2
stop();
Symbol 1435 MovieClip Frame 1
stop();
Symbol 1435 MovieClip Frame 2
stop();
Symbol 1437 MovieClip Frame 1
stop();
Symbol 1437 MovieClip Frame 2
stop();
Symbol 1439 MovieClip Frame 1
stop();
Symbol 1439 MovieClip Frame 2
stop();
Symbol 1441 MovieClip Frame 1
stop();
Symbol 1441 MovieClip Frame 2
stop();
Symbol 1443 MovieClip Frame 1
stop();
Symbol 1443 MovieClip Frame 2
stop();
Symbol 1454 MovieClip Frame 1
stop();
Symbol 1454 MovieClip Frame 2
stop();
Symbol 1456 MovieClip Frame 1
stop();
Symbol 1456 MovieClip Frame 2
stop();
Symbol 1458 MovieClip Frame 1
stop();
Symbol 1458 MovieClip Frame 2
stop();
Symbol 1460 MovieClip Frame 1
stop();
Symbol 1460 MovieClip Frame 2
stop();
Symbol 1465 MovieClip Frame 1
stop();
Symbol 1465 MovieClip Frame 15
stop();
Symbol 1502 MovieClip Frame 1
stop();
Symbol 1502 MovieClip Frame 2
stop();
Symbol 1502 MovieClip Frame 3
stop();
Symbol 1502 MovieClip Frame 4
stop();
Symbol 1502 MovieClip Frame 5
stop();
Symbol 1502 MovieClip Frame 6
stop();
Symbol 1502 MovieClip Frame 7
stop();
Symbol 1502 MovieClip Frame 8
stop();
Symbol 1502 MovieClip Frame 9
stop();
Symbol 1502 MovieClip Frame 10
stop();
Symbol 1502 MovieClip Frame 11
stop();
Symbol 1502 MovieClip Frame 12
stop();
Symbol 1502 MovieClip Frame 13
stop();
Symbol 1502 MovieClip Frame 14
stop();
Symbol 1502 MovieClip Frame 15
stop();
Symbol 1502 MovieClip Frame 16
stop();
Symbol 1502 MovieClip Frame 17
stop();
Symbol 1502 MovieClip Frame 18
stop();
Symbol 1502 MovieClip Frame 19
stop();
Symbol 1502 MovieClip Frame 20
stop();
Symbol 1502 MovieClip Frame 21
stop();
Symbol 1502 MovieClip Frame 22
stop();
Symbol 1502 MovieClip Frame 23
stop();
Symbol 1502 MovieClip Frame 24
stop();
Symbol 1502 MovieClip Frame 25
stop();
Symbol 1502 MovieClip Frame 26
stop();
Symbol 1502 MovieClip Frame 27
stop();
Symbol 1512 MovieClip Frame 1
stop();
Symbol 1512 MovieClip Frame 2
stop();
Symbol 1512 MovieClip Frame 3
stop();
Symbol 1512 MovieClip Frame 4
stop();
Symbol 1512 MovieClip Frame 5
stop();
Symbol 1512 MovieClip Frame 6
stop();
Symbol 1512 MovieClip Frame 7
stop();
Symbol 1512 MovieClip Frame 8
stop();
Symbol 1512 MovieClip Frame 9
stop();
Symbol 1512 MovieClip Frame 10
stop();
Symbol 1513 MovieClip Frame 1
stop();
Symbol 1514 MovieClip Frame 1
stop();
Symbol 1515 MovieClip Frame 1
stop();
Symbol 1516 MovieClip Frame 1
stop();
Symbol 1517 MovieClip Frame 1
stop();
Symbol 1518 MovieClip Frame 1
stop();
Symbol 1519 MovieClip Frame 1
stop();
Symbol 1520 MovieClip Frame 1
stop();
Symbol 1521 MovieClip Frame 1
stop();
Symbol 1528 MovieClip Frame 1
stop();
Symbol 1528 MovieClip Frame 2
stop();
Symbol 1528 MovieClip Frame 3
stop();
Symbol 1528 MovieClip Frame 4
stop();
Symbol 1534 MovieClip Frame 1
stop();
Symbol 1534 MovieClip Frame 2
stop();
Symbol 1537 MovieClip Frame 1
stop();
Symbol 1537 MovieClip Frame 2
stop();
Symbol 1540 MovieClip Frame 1
stop();
Symbol 1540 MovieClip Frame 2
stop();
Symbol 1543 MovieClip Frame 1
stop();
Symbol 1543 MovieClip Frame 2
stop();
Symbol 1546 MovieClip Frame 1
stop();
Symbol 1546 MovieClip Frame 2
stop();
Symbol 1549 MovieClip Frame 1
stop();
Symbol 1549 MovieClip Frame 2
stop();
Symbol 1552 MovieClip Frame 1
stop();
Symbol 1552 MovieClip Frame 2
stop();
Symbol 1555 MovieClip Frame 1
stop();
Symbol 1555 MovieClip Frame 2
stop();
Symbol 1558 MovieClip Frame 1
stop();
Symbol 1558 MovieClip Frame 2
stop();
Symbol 1561 MovieClip Frame 1
stop();
Symbol 1561 MovieClip Frame 2
stop();
Symbol 1564 MovieClip Frame 1
stop();
Symbol 1564 MovieClip Frame 2
stop();
Symbol 1567 MovieClip Frame 1
stop();
Symbol 1567 MovieClip Frame 2
stop();
Symbol 1578 MovieClip Frame 1
stop();
Symbol 1578 MovieClip Frame 2
stop();
Symbol 1578 MovieClip Frame 3
stop();
Symbol 1578 MovieClip Frame 4
stop();
Symbol 1578 MovieClip Frame 5
stop();
Symbol 1578 MovieClip Frame 6
stop();
Symbol 1578 MovieClip Frame 7
stop();
Symbol 1578 MovieClip Frame 8
stop();
Symbol 1578 MovieClip Frame 9
stop();
Symbol 1578 MovieClip Frame 10
stop();
Symbol 1581 MovieClip Frame 1
stop();
Symbol 1581 MovieClip Frame 2
stop();
Symbol 1585 MovieClip Frame 1
stop();
Symbol 1585 MovieClip Frame 2
stop();
Symbol 1598 MovieClip Frame 12
gotoAndPlay (1);
Symbol 1598 MovieClip Frame 13
stop();
Symbol 1611 MovieClip Frame 1
stop();
Symbol 1611 MovieClip Frame 2
stop();
Symbol 1611 MovieClip Frame 3
stop();
Symbol 1611 MovieClip Frame 4
stop();
Symbol 1611 MovieClip Frame 5
stop();
Symbol 1611 MovieClip Frame 6
stop();
Symbol 1611 MovieClip Frame 7
stop();
Symbol 1611 MovieClip Frame 8
stop();
Symbol 1611 MovieClip Frame 9
stop();
Symbol 1611 MovieClip Frame 10
stop();
Symbol 1611 MovieClip Frame 11
stop();
Symbol 1611 MovieClip Frame 12
stop();
Symbol 1611 MovieClip Frame 13
stop();
Symbol 1611 MovieClip Frame 14
stop();
Symbol 1611 MovieClip Frame 15
stop();
Symbol 1611 MovieClip Frame 16
stop();
Symbol 1622 MovieClip Frame 1
stop();
Symbol 1622 MovieClip Frame 2
stop();
Symbol 1622 MovieClip Frame 3
stop();
Symbol 1622 MovieClip Frame 4
stop();
Symbol 1622 MovieClip Frame 5
stop();
Symbol 1622 MovieClip Frame 6
stop();
Symbol 1622 MovieClip Frame 7
stop();
Symbol 1622 MovieClip Frame 8
stop();
Symbol 1622 MovieClip Frame 9
stop();
Symbol 1626 MovieClip Frame 1
stop();
Symbol 1626 MovieClip Frame 2
stop();
Symbol 1629 MovieClip Frame 1
stop();
Symbol 1629 MovieClip Frame 2
stop();
Symbol 1632 MovieClip Frame 1
stop();
Symbol 1632 MovieClip Frame 2
stop();
Symbol 1641 MovieClip Frame 1
stop();
Symbol 1641 MovieClip Frame 2
stop();
Symbol 1641 MovieClip Frame 3
stop();
Symbol 1641 MovieClip Frame 4
stop();
Symbol 1641 MovieClip Frame 5
stop();
Symbol 1641 MovieClip Frame 6
stop();
Symbol 1641 MovieClip Frame 7
stop();
Symbol 1641 MovieClip Frame 8
stop();
Symbol 1646 MovieClip Frame 1
stop();
Symbol 1646 MovieClip Frame 2
stop();
Symbol 1646 MovieClip Frame 3
stop();
Symbol 1646 MovieClip Frame 4
stop();
Symbol 1659 MovieClip Frame 1
stop();
Symbol 1659 MovieClip Frame 2
stop();
Symbol 1659 MovieClip Frame 3
stop();
Symbol 1659 MovieClip Frame 4
stop();
Symbol 1659 MovieClip Frame 5
stop();
Symbol 1659 MovieClip Frame 6
stop();
Symbol 1659 MovieClip Frame 7
stop();
Symbol 1659 MovieClip Frame 8
stop();
Symbol 1659 MovieClip Frame 9
stop();
Symbol 1659 MovieClip Frame 10
stop();
Symbol 1661 MovieClip Frame 1
stop();
Symbol 1661 MovieClip Frame 2
stop();
Symbol 1661 MovieClip Frame 3
stop();
Symbol 1661 MovieClip Frame 4
stop();
Symbol 1661 MovieClip Frame 5
stop();
Symbol 1661 MovieClip Frame 6
stop();
Symbol 1661 MovieClip Frame 7
stop();
Symbol 1661 MovieClip Frame 8
stop();
Symbol 1661 MovieClip Frame 9
stop();
Symbol 1661 MovieClip Frame 10
stop();
Symbol 1662 MovieClip Frame 1
stop();
Symbol 1662 MovieClip Frame 2
stop();
Symbol 1662 MovieClip Frame 3
stop();
Symbol 1662 MovieClip Frame 4
stop();
Symbol 1664 MovieClip Frame 1
stop();
Symbol 1664 MovieClip Frame 2
stop();
Symbol 1664 MovieClip Frame 3
stop();
Symbol 1665 MovieClip Frame 1
stop();
Symbol 1665 MovieClip Frame 2
stop();
Symbol 1675 MovieClip Frame 1
stop();
Symbol 1675 MovieClip Frame 2
stop();
Symbol 1675 MovieClip Frame 3
stop();
Symbol 1675 MovieClip Frame 4
stop();
Symbol 1675 MovieClip Frame 5
stop();
Symbol 1675 MovieClip Frame 6
stop();
Symbol 1675 MovieClip Frame 7
stop();
Symbol 1675 MovieClip Frame 8
stop();
Symbol 1676 MovieClip Frame 1
stop();
Symbol 1676 MovieClip Frame 2
stop();
Symbol 1676 MovieClip Frame 3
stop();
Symbol 1689 MovieClip Frame 1
stop();
Symbol 1689 MovieClip Frame 2
stop();
Symbol 1689 MovieClip Frame 3
stop();
Symbol 1689 MovieClip Frame 4
stop();
Symbol 1689 MovieClip Frame 5
stop();
Symbol 1689 MovieClip Frame 6
stop();
Symbol 1694 MovieClip Frame 60
stop();
Symbol 1694 MovieClip Frame 61
stop();
Symbol 1695 MovieClip Frame 1
stop();
Symbol 1695 MovieClip Frame 2
stop();
Symbol 1699 MovieClip Frame 61
stop();
Symbol 1699 MovieClip Frame 62
stop();
Symbol 1700 MovieClip Frame 1
stop();
Symbol 1700 MovieClip Frame 2
stop();
Symbol 1710 MovieClip Frame 10
_parent.gotoAndStop(1);
Symbol 1711 MovieClip Frame 1
stop();
Symbol 1711 MovieClip Frame 2
stop();
Symbol 1722 MovieClip Frame 11
_parent.gotoAndStop(1);
Symbol 1723 MovieClip Frame 1
stop();
Symbol 1723 MovieClip Frame 2
stop();
Symbol 1730 MovieClip Frame 7
_parent.gotoAndStop(1);
Symbol 1731 MovieClip Frame 1
stop();
Symbol 1731 MovieClip Frame 2
stop();
Symbol 1732 MovieClip Frame 10
_parent.gotoAndStop(1);
Symbol 1733 MovieClip Frame 1
stop();
Symbol 1733 MovieClip Frame 2
stop();
Symbol 1739 MovieClip Frame 1
stop();
Symbol 1739 MovieClip Frame 2
stop();
Symbol 1743 MovieClip Frame 1
stop();
Symbol 1743 MovieClip Frame 2
stop();
Symbol 1749 MovieClip Frame 1
stop();
Symbol 1749 MovieClip Frame 7
stop();
Symbol 1762 MovieClip Frame 11
stop();
Symbol 1765 MovieClip Frame 4
_parent.gotoAndStop(1);
Symbol 1777 MovieClip Frame 25
stop();
Symbol 1778 MovieClip Frame 1
stop();
Symbol 1778 MovieClip Frame 2
stop();
Symbol 1778 MovieClip Frame 3
stop();
Symbol 1778 MovieClip Frame 4
stop();
Symbol 1778 MovieClip Frame 5
stop();
Symbol 1780 MovieClip Frame 41
stop();
Symbol 1782 MovieClip Frame 41
stop();
Symbol 1784 MovieClip Frame 41
stop();
Symbol 1786 MovieClip Frame 41
stop();
Symbol 1788 MovieClip Frame 41
stop();
Symbol 1790 MovieClip Frame 41
stop();
Symbol 1792 MovieClip Frame 41
stop();
Symbol 1794 MovieClip Frame 41
stop();
Symbol 1796 MovieClip Frame 41
stop();
Symbol 1798 MovieClip Frame 41
stop();
Symbol 1800 MovieClip Frame 41
stop();
Symbol 1802 MovieClip Frame 41
stop();
Symbol 1804 MovieClip Frame 41
stop();
Symbol 1806 MovieClip Frame 41
stop();
Symbol 1808 MovieClip Frame 41
stop();
Symbol 1810 MovieClip Frame 41
stop();
Symbol 1812 MovieClip Frame 41
stop();
Symbol 1814 MovieClip Frame 41
stop();
Symbol 1816 MovieClip Frame 41
stop();
Symbol 1818 MovieClip Frame 41
stop();
Symbol 1820 MovieClip Frame 41
stop();
Symbol 1822 MovieClip Frame 41
stop();
Symbol 1824 MovieClip Frame 41
stop();
Symbol 1826 MovieClip Frame 41
stop();
Symbol 1828 MovieClip Frame 41
stop();
Symbol 1830 MovieClip Frame 41
stop();
Symbol 1832 MovieClip Frame 41
stop();
Symbol 1834 MovieClip Frame 41
stop();
Symbol 1836 MovieClip Frame 41
stop();
Symbol 1838 MovieClip Frame 41
stop();
Symbol 1840 MovieClip Frame 41
stop();
Symbol 1842 MovieClip Frame 41
stop();
Symbol 1844 MovieClip Frame 41
stop();
Symbol 1846 MovieClip Frame 41
stop();
Symbol 1848 MovieClip Frame 41
stop();
Symbol 1850 MovieClip Frame 41
stop();
Symbol 1852 MovieClip Frame 41
stop();
Symbol 1854 MovieClip Frame 41
stop();
Symbol 1856 MovieClip Frame 41
stop();
Symbol 1858 MovieClip Frame 41
stop();
Symbol 1859 MovieClip Frame 1
stop();
Symbol 1859 MovieClip Frame 2
stop();
Symbol 1859 MovieClip Frame 3
stop();
Symbol 1859 MovieClip Frame 4
stop();
Symbol 1859 MovieClip Frame 5
stop();
Symbol 1859 MovieClip Frame 6
stop();
Symbol 1859 MovieClip Frame 7
stop();
Symbol 1859 MovieClip Frame 8
stop();
Symbol 1859 MovieClip Frame 9
stop();
Symbol 1859 MovieClip Frame 10
stop();
Symbol 1859 MovieClip Frame 11
stop();
Symbol 1859 MovieClip Frame 12
stop();
Symbol 1859 MovieClip Frame 13
stop();
Symbol 1859 MovieClip Frame 14
stop();
Symbol 1859 MovieClip Frame 15
stop();
Symbol 1859 MovieClip Frame 16
stop();
Symbol 1859 MovieClip Frame 17
stop();
Symbol 1859 MovieClip Frame 18
stop();
Symbol 1859 MovieClip Frame 19
stop();
Symbol 1859 MovieClip Frame 20
stop();
Symbol 1859 MovieClip Frame 21
stop();
Symbol 1859 MovieClip Frame 22
stop();
Symbol 1859 MovieClip Frame 23
stop();
Symbol 1859 MovieClip Frame 24
stop();
Symbol 1859 MovieClip Frame 25
stop();
Symbol 1859 MovieClip Frame 26
stop();
Symbol 1859 MovieClip Frame 27
stop();
Symbol 1859 MovieClip Frame 28
stop();
Symbol 1859 MovieClip Frame 29
stop();
Symbol 1859 MovieClip Frame 30
stop();
Symbol 1859 MovieClip Frame 31
stop();
Symbol 1859 MovieClip Frame 32
stop();
Symbol 1859 MovieClip Frame 33
stop();
Symbol 1859 MovieClip Frame 34
stop();
Symbol 1859 MovieClip Frame 35
stop();
Symbol 1859 MovieClip Frame 36
stop();
Symbol 1859 MovieClip Frame 37
stop();
Symbol 1859 MovieClip Frame 38
stop();
Symbol 1859 MovieClip Frame 39
stop();
Symbol 1859 MovieClip Frame 40
stop();
Symbol 1859 MovieClip Frame 41
stop();
Symbol 1869 MovieClip Frame 1
stop();
Symbol 1869 MovieClip Frame 2
stop();
Symbol 1872 MovieClip Frame 1
stop();
Symbol 1872 MovieClip Frame 2
stop();
Symbol 1872 MovieClip Frame 3
stop();
Symbol 1872 MovieClip Frame 4
stop();
Symbol 1872 MovieClip Frame 5
stop();
Symbol 1872 MovieClip Frame 6
stop();
Symbol 1872 MovieClip Frame 7
stop();
Symbol 1872 MovieClip Frame 8
stop();
Symbol 1872 MovieClip Frame 9
stop();
Symbol 1872 MovieClip Frame 10
stop();
Symbol 1872 MovieClip Frame 11
stop();
Symbol 1874 MovieClip Frame 8
stop();
Symbol 1874 MovieClip Frame 15
stop();
Symbol 1876 MovieClip Frame 1
stop();
Symbol 1878 MovieClip Frame 1
stop();
Symbol 1880 MovieClip Frame 1
stop();
Symbol 1882 MovieClip Frame 1
stop();
Symbol 1884 MovieClip Frame 1
stop();
Symbol 1886 MovieClip Frame 1
stop();
Symbol 1888 MovieClip Frame 1
stop();
Symbol 1890 MovieClip Frame 1
stop();
Symbol 1892 MovieClip Frame 1
stop();
Symbol 1893 MovieClip Frame 1
stop();
Symbol 1895 MovieClip Frame 1
stop();
Symbol 1897 MovieClip Frame 1
stop();
Symbol 1899 MovieClip Frame 1
stop();
Symbol 1901 MovieClip Frame 1
stop();
Symbol 1904 MovieClip Frame 1
stop();
Symbol 1906 MovieClip Frame 1
stop();
Symbol 1908 MovieClip Frame 1
stop();
Symbol 1994 MovieClip Frame 1
stop();
Symbol 1994 MovieClip Frame 2
stop();
Symbol 1994 MovieClip Frame 3
stop();
Symbol 1994 MovieClip Frame 4
stop();
Symbol 1994 MovieClip Frame 5
stop();
Symbol 1994 MovieClip Frame 6
stop();
Symbol 1994 MovieClip Frame 7
stop();
Symbol 1994 MovieClip Frame 8
stop();
Symbol 1994 MovieClip Frame 9
stop();
Symbol 1994 MovieClip Frame 10
stop();
Symbol 1994 MovieClip Frame 11
stop();
Symbol 1994 MovieClip Frame 12
stop();
Symbol 1994 MovieClip Frame 13
stop();
Symbol 1994 MovieClip Frame 14
stop();
Symbol 1994 MovieClip Frame 15
stop();
Symbol 1994 MovieClip Frame 16
stop();
Symbol 1994 MovieClip Frame 17
stop();
Symbol 1994 MovieClip Frame 18
stop();
Symbol 1994 MovieClip Frame 19
stop();
Symbol 1994 MovieClip Frame 20
stop();
Symbol 1994 MovieClip Frame 21
stop();
Symbol 1994 MovieClip Frame 22
stop();
Symbol 1994 MovieClip Frame 23
stop();
Symbol 1994 MovieClip Frame 24
stop();
Symbol 1994 MovieClip Frame 25
stop();
Symbol 1994 MovieClip Frame 26
stop();
Symbol 1994 MovieClip Frame 27
stop();