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);
gotoAndStop (2);
}
}
stop();
loadingBar._xscale = 1;
var loadingCall = setInterval(preloadSite, 50);
Frame 2
mochi.as2.MochiAd.showPreGameAd({id:"7c5235ecc0a0fdf3", res:"480x360"});
Frame 3
local_data = SharedObject.getLocal("MCD_datatemp");
existdata = local_data.data.existdata;
if (existdata != 1) {
local_data.data.existdata = 1;
local_data.data.gameplay = 0;
local_data.data.mute = 0;
local_data.data.level = 0;
local_data.data.difficulty = 0;
local_data.data.doad = [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.adchivement = [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.levelop = [1, 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.flush();
}
Frame 41
generals = new Sound(_root.masa);
generals.attachSound("introg");
generals.musis = new Sound(_root.masa);
generals.musis.attachSound("introg");
local_data = SharedObject.getLocal("MCD_datatemp");
var mute = local_data.data.mute;
if (mute == 0) {
generals.setVolume(100);
}
if (mute == 1) {
generals.setVolume(0);
}
generals.musis.start(0, 999);
Frame 42
stop();
Frame 43
stop();
generals = new Sound();
generals.sound1 = new Sound(_root.buti);
generals.sound1.attachSound("boti");
local_data = SharedObject.getLocal("MCD_datatemp");
gameplay = local_data.data.gameplay;
var menugo = 0;
var mute = local_data.data.mute;
if (mute == 0) {
generals.setVolume(100);
_root.muteb.gotoAndStop(1);
}
if (mute == 1) {
generals.setVolume(0);
_root.muteb.gotoAndStop(2);
}
_root.startb.onEnterFrame = function () {
_root.muteb.muteno.onRelease = function () {
_root.muteb.gotoAndStop(2);
generals.setVolume(0);
mute = 1;
};
_root.muteb.mutesi.onRelease = function () {
_root.muteb.gotoAndStop(1);
generals.setVolume(100);
mute = 0;
};
_root.startb.onRelease = function () {
menugo = 0;
_root.cortim.gotoAndStop(2);
generals.sound1.start(0, 1);
};
_root.moreb.onRelease = function () {
getURL ("http://www.fliptic.com/game.php", "_blank");
direct = Math.floor(Math.random() * 4);
if (direct == 0) {
getURL ("http://www.mochigames.com/game/running-warrior/", "_blank");
} else if (direct == 1) {
getURL ("http://www.mochigames.com/game/abduction-xp/", "_blank");
} else if (direct == 2) {
getURL ("http://www.mochigames.com/game/minibot-xp_v259242/", "_blank");
} else if (direct == 3) {
getURL ("http://www.mochigames.com/game/apocalipseed/", "_blank");
}
generals.sound1.start(0, 1);
};
if (_root.cortim.ini._currentframe == 16) {
if (gameplay == 1) {
gotoAndStop (45);
}
if (gameplay == 0) {
gotoAndPlay (48);
local_data.data.gameplay = 1;
local_data.flush();
}
local_data.data.mute = mute;
local_data.flush();
}
};
Frame 44
stop();
generals = new Sound();
generals.sound1 = new Sound(_root.buti);
generals.sound1.attachSound("boti");
local_data = SharedObject.getLocal("MCD_datatemp");
gameplay = local_data.data.gameplay;
var menugo = 0;
var mute = local_data.data.mute;
if (mute == 0) {
generals.setVolume(100);
_root.muteb.gotoAndStop(1);
}
if (mute == 1) {
generals.setVolume(0);
_root.muteb.gotoAndStop(2);
}
_root.startb.onEnterFrame = function () {
_root.muteb.muteno.onRelease = function () {
_root.muteb.gotoAndStop(2);
generals.setVolume(0);
mute = 1;
};
_root.muteb.mutesi.onRelease = function () {
_root.muteb.gotoAndStop(1);
generals.setVolume(100);
mute = 0;
};
_root.startb.onRelease = function () {
menugo = 0;
_root.cortim.gotoAndStop(2);
generals.sound1.start(0, 1);
};
_root.moreb.onRelease = function () {
getURL ("http://www.fliptic.com/game.php", "_blank");
direct = Math.floor(Math.random() * 4);
if (direct == 0) {
getURL ("http://www.mochigames.com/game/running-warrior/", "_blank");
} else if (direct == 1) {
getURL ("http://www.mochigames.com/game/abduction-xp/", "_blank");
} else if (direct == 2) {
getURL ("http://www.mochigames.com/game/minibot-xp_v259242/", "_blank");
} else if (direct == 3) {
getURL ("http://www.mochigames.com/game/apocalipseed/", "_blank");
}
generals.sound1.start(0, 1);
};
if (_root.cortim.ini._currentframe == 16) {
if (gameplay == 1) {
gotoAndStop (45);
}
if (gameplay == 0) {
gotoAndPlay (48);
local_data.data.gameplay = 1;
local_data.flush();
}
local_data.data.mute = mute;
local_data.flush();
}
};
Frame 45
function openicons() {
i = 0;
while (i < levelop.length) {
tempo = _root[iconname[i]];
if (levelop[i] == 1) {
tempo.gotoAndStop(2);
}
if (levelop[i] == 2) {
tempo.gotoAndStop(3);
}
if (levelop[i] == 3) {
tempo.gotoAndStop(4);
}
if (levelop[i] == 4) {
tempo.gotoAndStop(5);
}
i++;
}
}
function selectlevel() {
_root.l11.onRelease = function () {
if (_root.l11._currentframe > 1) {
generals.sound1.start(0, 1);
menugo = 3;
_root.cortim.gotoAndStop(2);
local_data.data.level = 1;
local_data.data.difficulty = 1;
}
};
_root.l12.onRelease = function () {
if (_root.l12._currentframe > 1) {
generals.sound1.start(0, 1);
menugo = 3;
_root.cortim.gotoAndStop(2);
local_data.data.level = 1;
local_data.data.difficulty = 2;
}
};
_root.l13.onRelease = function () {
if (_root.l13._currentframe > 1) {
generals.sound1.start(0, 1);
menugo = 3;
_root.cortim.gotoAndStop(2);
local_data.data.level = 1;
local_data.data.difficulty = 3;
}
};
_root.l21.onRelease = function () {
if (_root.l21._currentframe > 1) {
generals.sound1.start(0, 1);
menugo = 3;
_root.cortim.gotoAndStop(2);
local_data.data.level = 2;
local_data.data.difficulty = 1;
}
};
_root.l22.onRelease = function () {
if (_root.l22._currentframe > 1) {
generals.sound1.start(0, 1);
menugo = 3;
_root.cortim.gotoAndStop(2);
local_data.data.level = 2;
local_data.data.difficulty = 2;
}
};
_root.l23.onRelease = function () {
if (_root.l23._currentframe > 1) {
generals.sound1.start(0, 1);
menugo = 3;
_root.cortim.gotoAndStop(2);
local_data.data.level = 2;
local_data.data.difficulty = 3;
}
};
_root.l31.onRelease = function () {
if (_root.l31._currentframe > 1) {
generals.sound1.start(0, 1);
menugo = 3;
_root.cortim.gotoAndStop(2);
local_data.data.level = 3;
local_data.data.difficulty = 1;
}
};
_root.l32.onRelease = function () {
if (_root.l32._currentframe > 1) {
generals.sound1.start(0, 1);
menugo = 3;
_root.cortim.gotoAndStop(2);
local_data.data.level = 3;
local_data.data.difficulty = 2;
}
};
_root.l33.onRelease = function () {
if (_root.l33._currentframe > 1) {
generals.sound1.start(0, 1);
menugo = 3;
_root.cortim.gotoAndStop(2);
local_data.data.level = 3;
local_data.data.difficulty = 3;
}
};
_root.l41.onRelease = function () {
if (_root.l41._currentframe > 1) {
generals.sound1.start(0, 1);
menugo = 3;
_root.cortim.gotoAndStop(2);
local_data.data.level = 4;
local_data.data.difficulty = 1;
}
};
_root.l42.onRelease = function () {
if (_root.l42._currentframe > 1) {
generals.sound1.start(0, 1);
menugo = 3;
_root.cortim.gotoAndStop(2);
local_data.data.level = 4;
local_data.data.difficulty = 2;
}
};
_root.l43.onRelease = function () {
if (_root.l43._currentframe > 1) {
generals.sound1.start(0, 1);
menugo = 3;
_root.cortim.gotoAndStop(2);
local_data.data.level = 4;
local_data.data.difficulty = 3;
}
};
_root.l51.onRelease = function () {
if (_root.l51._currentframe > 1) {
generals.sound1.start(0, 1);
menugo = 3;
_root.cortim.gotoAndStop(2);
local_data.data.level = 5;
local_data.data.difficulty = 1;
}
};
_root.l52.onRelease = function () {
if (_root.l52._currentframe > 1) {
generals.sound1.start(0, 1);
menugo = 3;
_root.cortim.gotoAndStop(2);
local_data.data.level = 5;
local_data.data.difficulty = 2;
}
};
_root.l53.onRelease = function () {
if (_root.l53._currentframe > 1) {
generals.sound1.start(0, 1);
menugo = 3;
_root.cortim.gotoAndStop(2);
local_data.data.level = 5;
local_data.data.difficulty = 3;
}
};
_root.l61.onRelease = function () {
if (_root.l61._currentframe > 1) {
generals.sound1.start(0, 1);
menugo = 3;
_root.cortim.gotoAndStop(2);
local_data.data.level = 6;
local_data.data.difficulty = 1;
}
};
_root.l62.onRelease = function () {
if (_root.l62._currentframe > 1) {
generals.sound1.start(0, 1);
menugo = 3;
_root.cortim.gotoAndStop(2);
local_data.data.level = 6;
local_data.data.difficulty = 2;
}
};
_root.l63.onRelease = function () {
if (_root.l63._currentframe > 1) {
generals.sound1.start(0, 1);
menugo = 3;
_root.cortim.gotoAndStop(2);
local_data.data.level = 6;
local_data.data.difficulty = 3;
}
};
_root.l71.onRelease = function () {
if (_root.l71._currentframe > 1) {
generals.sound1.start(0, 1);
menugo = 3;
_root.cortim.gotoAndStop(2);
local_data.data.level = 7;
local_data.data.difficulty = 1;
}
};
_root.l72.onRelease = function () {
if (_root.l72._currentframe > 1) {
generals.sound1.start(0, 1);
menugo = 3;
_root.cortim.gotoAndStop(2);
local_data.data.level = 7;
local_data.data.difficulty = 2;
}
};
_root.l73.onRelease = function () {
if (_root.l73._currentframe > 1) {
generals.sound1.start(0, 1);
menugo = 3;
_root.cortim.gotoAndStop(2);
local_data.data.level = 7;
local_data.data.difficulty = 3;
}
};
_root.l81.onRelease = function () {
if (_root.l81._currentframe > 1) {
generals.sound1.start(0, 1);
menugo = 3;
_root.cortim.gotoAndStop(2);
local_data.data.level = 8;
local_data.data.difficulty = 1;
}
};
_root.l82.onRelease = function () {
if (_root.l82._currentframe > 1) {
generals.sound1.start(0, 1);
menugo = 3;
_root.cortim.gotoAndStop(2);
local_data.data.level = 8;
local_data.data.difficulty = 2;
}
};
_root.l83.onRelease = function () {
if (_root.l83._currentframe > 1) {
generals.sound1.start(0, 1);
menugo = 3;
_root.cortim.gotoAndStop(2);
local_data.data.level = 8;
local_data.data.difficulty = 3;
}
};
}
stop();
generals = new Sound();
generals.sound1 = new Sound(_root.buti);
generals.sound1.attachSound("boti");
local_data = SharedObject.getLocal("MCD_datatemp");
levelop = local_data.data.levelop;
level = local_data.data.level;
difficulty = local_data.data.difficulty;
var iconname = new Array();
iconname = ["l11", "l12", "l13", "l21", "l22", "l23", "l31", "l32", "l33", "l41", "l42", "l43", "l51", "l52", "l53", "l61", "l62", "l63", "l71", "l72", "l73", "l81", "l82", "l83"];
var menugo = 0;
var mute = local_data.data.mute;
if (mute == 0) {
generals.setVolume(100);
_root.muteb.gotoAndStop(1);
}
if (mute == 1) {
generals.setVolume(0);
_root.muteb.gotoAndStop(2);
}
openicons();
_root.adchieveb.onEnterFrame = function () {
_root.muteb.muteno.onRelease = function () {
_root.muteb.gotoAndStop(2);
generals.setVolume(0);
mute = 1;
};
_root.muteb.mutesi.onRelease = function () {
_root.muteb.gotoAndStop(1);
generals.setVolume(100);
mute = 0;
};
_root.backb.onRelease = function () {
menugo = 0;
_root.cortim.gotoAndStop(2);
generals.sound1.start(0, 1);
};
_root.adchieveb.onRelease = function () {
menugo = 1;
_root.cortim.gotoAndStop(2);
generals.sound1.start(0, 1);
};
_root.tutob.onRelease = function () {
menugo = 2;
_root.cortim.gotoAndStop(2);
generals.sound1.start(0, 1);
};
selectlevel();
if (_root.cortim.ini._currentframe == 16) {
if (menugo == 0) {
gotoAndStop (44);
}
if (menugo == 1) {
gotoAndStop (46);
}
if (menugo == 2) {
gotoAndPlay (49);
stopAllSounds();
local_data.data.level = 0;
local_data.data.difficulty = 0;
local_data.flush();
}
if (menugo == 3) {
gotoAndPlay (51);
stopAllSounds();
local_data.flush();
}
local_data.data.mute = mute;
local_data.flush();
}
_root.moreb.onRelease = function () {
getURL ("http://www.fliptic.com/game.php", "_blank");
direct = Math.floor(Math.random() * 4);
if (direct == 0) {
getURL ("http://www.mochigames.com/game/running-warrior/", "_blank");
} else if (direct == 1) {
getURL ("http://www.mochigames.com/game/abduction-xp/", "_blank");
} else if (direct == 2) {
getURL ("http://www.mochigames.com/game/minibot-xp_v259242/", "_blank");
} else if (direct == 3) {
getURL ("http://www.mochigames.com/game/apocalipseed/", "_blank");
}
generals.sound1.start(0, 1);
};
};
Frame 46
function troicons() {
i = 0;
while (i < adchivement.length) {
tempo = _root[troname[i]];
if (adchivement[i] == 1) {
tempo.gotoAndStop(2);
}
i++;
}
}
stop();
generals = new Sound();
generals.sound1 = new Sound(_root.buti);
generals.sound1.attachSound("boti");
local_data = SharedObject.getLocal("MCD_datatemp");
adchivement = local_data.data.adchivement;
var troname = new Array();
troname = ["ad1", "ad2", "ad3", "ad4", "ad5", "ad6", "ad7", "ad8", "ad9", "ad10", "ad11", "ad12", "ad13", "ad14", "ad15", "ad16", "ad17", "ad18", "ad19", "ad20", "ad21", "ad22", "ad23", "ad24", "ad25", "ad26", "ad27", "ad28", "ad29", "ad30", "ad31", "ad32", "ad33"];
var menugo = 0;
var mute = local_data.data.mute;
if (mute == 0) {
generals.setVolume(100);
_root.muteb.gotoAndStop(1);
}
if (mute == 1) {
generals.setVolume(0);
_root.muteb.gotoAndStop(2);
}
troicons();
_root.backb.onEnterFrame = function () {
_root.muteb.muteno.onRelease = function () {
_root.muteb.gotoAndStop(2);
generals.setVolume(0);
mute = 1;
};
_root.muteb.mutesi.onRelease = function () {
_root.muteb.gotoAndStop(1);
generals.setVolume(100);
mute = 0;
};
_root.backb.onRelease = function () {
menugo = 0;
_root.cortim.gotoAndStop(2);
generals.sound1.start(0, 1);
};
if (_root.cortim.ini._currentframe == 16) {
if (menugo == 0) {
gotoAndStop (45);
}
local_data.data.mute = mute;
local_data.flush();
}
};
Frame 47
function openicons() {
i = 0;
while (i < levelop.length) {
tempo = _root[iconname[i]];
if (levelop[i] == 1) {
tempo.gotoAndStop(2);
}
if (levelop[i] == 2) {
tempo.gotoAndStop(3);
}
if (levelop[i] == 3) {
tempo.gotoAndStop(4);
}
if (levelop[i] == 4) {
tempo.gotoAndStop(5);
}
i++;
}
}
function selectlevel() {
_root.l11.onRelease = function () {
if (_root.l11._currentframe > 1) {
generals.sound1.start(0, 1);
menugo = 3;
_root.cortim.gotoAndStop(2);
local_data.data.level = 1;
local_data.data.difficulty = 1;
}
};
_root.l12.onRelease = function () {
if (_root.l12._currentframe > 1) {
generals.sound1.start(0, 1);
menugo = 3;
_root.cortim.gotoAndStop(2);
local_data.data.level = 1;
local_data.data.difficulty = 2;
}
};
_root.l13.onRelease = function () {
if (_root.l13._currentframe > 1) {
generals.sound1.start(0, 1);
menugo = 3;
_root.cortim.gotoAndStop(2);
local_data.data.level = 1;
local_data.data.difficulty = 3;
}
};
_root.l21.onRelease = function () {
if (_root.l21._currentframe > 1) {
generals.sound1.start(0, 1);
menugo = 3;
_root.cortim.gotoAndStop(2);
local_data.data.level = 2;
local_data.data.difficulty = 1;
}
};
_root.l22.onRelease = function () {
if (_root.l22._currentframe > 1) {
generals.sound1.start(0, 1);
menugo = 3;
_root.cortim.gotoAndStop(2);
local_data.data.level = 2;
local_data.data.difficulty = 2;
}
};
_root.l23.onRelease = function () {
if (_root.l23._currentframe > 1) {
generals.sound1.start(0, 1);
menugo = 3;
_root.cortim.gotoAndStop(2);
local_data.data.level = 2;
local_data.data.difficulty = 3;
}
};
_root.l31.onRelease = function () {
if (_root.l31._currentframe > 1) {
generals.sound1.start(0, 1);
menugo = 3;
_root.cortim.gotoAndStop(2);
local_data.data.level = 3;
local_data.data.difficulty = 1;
}
};
_root.l32.onRelease = function () {
if (_root.l32._currentframe > 1) {
generals.sound1.start(0, 1);
menugo = 3;
_root.cortim.gotoAndStop(2);
local_data.data.level = 3;
local_data.data.difficulty = 2;
}
};
_root.l33.onRelease = function () {
if (_root.l33._currentframe > 1) {
generals.sound1.start(0, 1);
menugo = 3;
_root.cortim.gotoAndStop(2);
local_data.data.level = 3;
local_data.data.difficulty = 3;
}
};
_root.l41.onRelease = function () {
if (_root.l41._currentframe > 1) {
generals.sound1.start(0, 1);
menugo = 3;
_root.cortim.gotoAndStop(2);
local_data.data.level = 4;
local_data.data.difficulty = 1;
}
};
_root.l42.onRelease = function () {
if (_root.l42._currentframe > 1) {
generals.sound1.start(0, 1);
menugo = 3;
_root.cortim.gotoAndStop(2);
local_data.data.level = 4;
local_data.data.difficulty = 2;
}
};
_root.l43.onRelease = function () {
if (_root.l43._currentframe > 1) {
generals.sound1.start(0, 1);
menugo = 3;
_root.cortim.gotoAndStop(2);
local_data.data.level = 4;
local_data.data.difficulty = 3;
}
};
_root.l51.onRelease = function () {
if (_root.l51._currentframe > 1) {
generals.sound1.start(0, 1);
menugo = 3;
_root.cortim.gotoAndStop(2);
local_data.data.level = 5;
local_data.data.difficulty = 1;
}
};
_root.l52.onRelease = function () {
if (_root.l52._currentframe > 1) {
generals.sound1.start(0, 1);
menugo = 3;
_root.cortim.gotoAndStop(2);
local_data.data.level = 5;
local_data.data.difficulty = 2;
}
};
_root.l53.onRelease = function () {
if (_root.l53._currentframe > 1) {
generals.sound1.start(0, 1);
menugo = 3;
_root.cortim.gotoAndStop(2);
local_data.data.level = 5;
local_data.data.difficulty = 3;
}
};
_root.l61.onRelease = function () {
if (_root.l61._currentframe > 1) {
generals.sound1.start(0, 1);
menugo = 3;
_root.cortim.gotoAndStop(2);
local_data.data.level = 6;
local_data.data.difficulty = 1;
}
};
_root.l62.onRelease = function () {
if (_root.l62._currentframe > 1) {
generals.sound1.start(0, 1);
menugo = 3;
_root.cortim.gotoAndStop(2);
local_data.data.level = 6;
local_data.data.difficulty = 2;
}
};
_root.l63.onRelease = function () {
if (_root.l63._currentframe > 1) {
generals.sound1.start(0, 1);
menugo = 3;
_root.cortim.gotoAndStop(2);
local_data.data.level = 6;
local_data.data.difficulty = 3;
}
};
_root.l71.onRelease = function () {
if (_root.l71._currentframe > 1) {
generals.sound1.start(0, 1);
menugo = 3;
_root.cortim.gotoAndStop(2);
local_data.data.level = 7;
local_data.data.difficulty = 1;
}
};
_root.l72.onRelease = function () {
if (_root.l72._currentframe > 1) {
generals.sound1.start(0, 1);
menugo = 3;
_root.cortim.gotoAndStop(2);
local_data.data.level = 7;
local_data.data.difficulty = 2;
}
};
_root.l73.onRelease = function () {
if (_root.l73._currentframe > 1) {
generals.sound1.start(0, 1);
menugo = 3;
_root.cortim.gotoAndStop(2);
local_data.data.level = 7;
local_data.data.difficulty = 3;
}
};
_root.l81.onRelease = function () {
if (_root.l81._currentframe > 1) {
generals.sound1.start(0, 1);
menugo = 3;
_root.cortim.gotoAndStop(2);
local_data.data.level = 8;
local_data.data.difficulty = 1;
}
};
_root.l82.onRelease = function () {
if (_root.l82._currentframe > 1) {
generals.sound1.start(0, 1);
menugo = 3;
_root.cortim.gotoAndStop(2);
local_data.data.level = 8;
local_data.data.difficulty = 2;
}
};
_root.l83.onRelease = function () {
if (_root.l83._currentframe > 1) {
generals.sound1.start(0, 1);
menugo = 3;
_root.cortim.gotoAndStop(2);
local_data.data.level = 8;
local_data.data.difficulty = 3;
}
};
}
stop();
generals = new Sound();
generals.musis = new Sound(_root.masa);
generals.musis.attachSound("introg");
generals.sound1 = new Sound(_root.buti);
generals.sound1.attachSound("boti");
local_data = SharedObject.getLocal("MCD_datatemp");
levelop = local_data.data.levelop;
level = local_data.data.level;
difficulty = local_data.data.difficulty;
var iconname = new Array();
iconname = ["l11", "l12", "l13", "l21", "l22", "l23", "l31", "l32", "l33", "l41", "l42", "l43", "l51", "l52", "l53", "l61", "l62", "l63", "l71", "l72", "l73", "l81", "l82", "l83"];
var menugo = 0;
var mute = local_data.data.mute;
if (mute == 0) {
generals.setVolume(100);
_root.muteb.gotoAndStop(1);
}
if (mute == 1) {
generals.setVolume(0);
_root.muteb.gotoAndStop(2);
}
generals.musis.start(0, 999);
openicons();
_root.adchieveb.onEnterFrame = function () {
_root.muteb.muteno.onRelease = function () {
_root.muteb.gotoAndStop(2);
generals.setVolume(0);
mute = 1;
};
_root.muteb.mutesi.onRelease = function () {
_root.muteb.gotoAndStop(1);
generals.setVolume(100);
mute = 0;
};
_root.backb.onRelease = function () {
menugo = 0;
_root.cortim.gotoAndStop(2);
generals.sound1.start(0, 1);
};
_root.adchieveb.onRelease = function () {
menugo = 1;
_root.cortim.gotoAndStop(2);
generals.sound1.start(0, 1);
};
_root.tutob.onRelease = function () {
menugo = 2;
_root.cortim.gotoAndStop(2);
generals.sound1.start(0, 1);
};
selectlevel();
if (_root.cortim.ini._currentframe == 16) {
if (menugo == 0) {
gotoAndStop (44);
}
if (menugo == 1) {
gotoAndStop (46);
}
if (menugo == 2) {
gotoAndPlay (49);
stopAllSounds();
local_data.data.level = 0;
local_data.data.difficulty = 0;
local_data.flush();
}
if (menugo == 3) {
gotoAndPlay (51);
stopAllSounds();
local_data.flush();
}
local_data.data.mute = mute;
local_data.flush();
}
_root.moreb.onRelease = function () {
getURL ("http://www.fliptic.com/game.php", "_blank");
direct = Math.floor(Math.random() * 4);
if (direct == 0) {
getURL ("http://www.mochigames.com/game/running-warrior/", "_blank");
} else if (direct == 1) {
getURL ("http://www.mochigames.com/game/abduction-xp/", "_blank");
} else if (direct == 2) {
getURL ("http://www.mochigames.com/game/minibot-xp_v259242/", "_blank");
} else if (direct == 3) {
getURL ("http://www.mochigames.com/game/apocalipseed/", "_blank");
}
generals.sound1.start(0, 1);
};
};
Frame 48
stop();
_root.skipb.onEnterFrame = function () {
_root.skipb.onRelease = function () {
_root.cortim.gotoAndStop(2);
};
if (_root.anim._currentframe == 408) {
_root.cortim.gotoAndStop(2);
}
if (_root.cortim.ini._currentframe == 16) {
gotoAndPlay (49);
stopAllSounds();
}
};
Frame 49
local_data = SharedObject.getLocal("MCD_datatemp");
var level = local_data.data.level;
var difficulty = local_data.data.difficulty;
if (level == 0) {
if (difficulty == 0) {
soldierbox = [[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, 11, 11, 11, 11, 11, 11, 11, 11, 0], [1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 1, 1, 1, 1, 2, 2, 2, 2, 0], [1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 3, 3, 3, 0]];
local_data.data.soldierbox = soldierbox;
local_data.data.tombhold = ["ss1", "ss5", "ss6", "ss7", "ss8", "ss2", "ss3", "ss9", "ss10", "ss11", "ss12", "ss13", "ss14", "ss15", "ss16", "ss17", "ss18", "ss19", "ss20", "ss21", "ss22", "ss23", "ss24", "ss25", "ss26", "ss27", "ss28", "ss29", "ss30"];
local_data.data.sumonlist = ["ss4"];
}
}
local_data.data.bones = 100;
local_data.flush();
Frame 50
function startgame() {
_root.game.cas.gotoAndStop(level);
i = 0;
while (i < sumonlist.length) {
tempo = _root.game.cas[sumonlist[i]];
tempo.gotoAndStop(3);
i++;
}
i = 0;
while (i < invers.length) {
tempo = _root.game.cas[invers[i]];
tempo._xscale = -100;
i++;
}
var _local2 = soldierbox.length;
wdeci = Math.floor(_local2 / 10);
wuni = Math.floor(_local2 - (wdeci * 10));
_root.game.wwouni.gotoAndStop(wuni + 1);
_root.game.wwodeci.gotoAndStop(wdeci + 1);
if (wdeci > 0) {
_root.game.wwouni._alpha = 100;
_root.game.wwodeci._alpha = 100;
} else if (wuni > 0) {
_root.game.wwouni._alpha = 100;
_root.game.wwodeci._alpha = 0;
} else if ((wuni == 0) && (wdeci == 0)) {
_root.game.wwouni._alpha = 100;
_root.game.wwodeci._alpha = 0;
}
}
function numobj() {
bmmil = Math.floor(bones / 100000);
bmildeci = Math.floor((bones - (bmmil * 100000)) / 10000);
bmiluni = Math.floor(((bones - (bmmil * 100000)) - (bmildeci * 10000)) / 1000);
bmil = Math.floor((((bones - (bmmil * 100000)) - (bmildeci * 10000)) - (bmiluni * 1000)) / 100);
bdeci = Math.floor(((((bones - (bmmil * 100000)) - (bmildeci * 10000)) - (bmiluni * 1000)) - (bmil * 100)) / 10);
buni = Math.floor(((((bones - (bmmil * 100000)) - (bmildeci * 10000)) - (bmiluni * 1000)) - (bmil * 100)) - (bdeci * 10));
_root.game.bouni.gotoAndStop(buni + 1);
_root.game.bodeci.gotoAndStop(bdeci + 1);
_root.game.bomil.gotoAndStop(bmil + 1);
_root.game.bomiluni.gotoAndStop(bmiluni + 1);
_root.game.bomildeci.gotoAndStop(bmildeci + 1);
_root.game.bommil.gotoAndStop(bmmil + 1);
if (bmmil > 0) {
_root.game.bouni._alpha = 100;
_root.game.bodeci._alpha = 100;
_root.game.bomil._alpha = 100;
_root.game.bomiluni._alpha = 100;
_root.game.bomildeci._alpha = 100;
_root.game.bommil._alpha = 100;
} else if (bmildeci > 0) {
_root.game.bouni._alpha = 100;
_root.game.bodeci._alpha = 100;
_root.game.bomil._alpha = 100;
_root.game.bomiluni._alpha = 100;
_root.game.bomildeci._alpha = 100;
_root.game.bommil._alpha = 0;
} else if (bmiluni > 0) {
_root.game.bouni._alpha = 100;
_root.game.bodeci._alpha = 100;
_root.game.bomil._alpha = 100;
_root.game.bomiluni._alpha = 100;
_root.game.bomildeci._alpha = 0;
_root.game.bommil._alpha = 0;
} else if (bmil > 0) {
_root.game.bouni._alpha = 100;
_root.game.bodeci._alpha = 100;
_root.game.bomil._alpha = 100;
_root.game.bomiluni._alpha = 0;
_root.game.bomildeci._alpha = 0;
_root.game.bommil._alpha = 0;
} else if (bdeci > 0) {
_root.game.bouni._alpha = 100;
_root.game.bodeci._alpha = 100;
_root.game.bomil._alpha = 0;
_root.game.bomiluni._alpha = 0;
_root.game.bomildeci._alpha = 0;
_root.game.bommil._alpha = 0;
} else if (buni > 0) {
_root.game.bouni._alpha = 100;
_root.game.bodeci._alpha = 0;
_root.game.bomil._alpha = 0;
_root.game.bomiluni._alpha = 0;
_root.game.bomildeci._alpha = 0;
_root.game.bommil._alpha = 0;
} else if ((((((buni == 0) && (bdeci == 0)) && (bmil == 0)) && (bmiluni == 0)) && (bmildeci == 0)) && (bmmil == 0)) {
_root.game.bouni._alpha = 100;
_root.game.bodeci._alpha = 0;
_root.game.bomil._alpha = 0;
_root.game.bomiluni._alpha = 0;
_root.game.bomildeci._alpha = 0;
_root.game.bommil._alpha = 0;
}
swdeci = Math.floor(soldierwave / 10);
swuni = Math.floor(soldierwave - (swdeci * 10));
_root.game.swouni.gotoAndStop(swuni + 1);
_root.game.swodeci.gotoAndStop(swdeci + 1);
if (swdeci > 0) {
_root.game.swouni._alpha = 100;
_root.game.swodeci._alpha = 100;
} else if (swuni > 0) {
_root.game.swouni._alpha = 100;
_root.game.swodeci._alpha = 0;
} else if ((swuni == 0) && (swdeci == 0)) {
_root.game.swouni._alpha = 100;
_root.game.swodeci._alpha = 0;
}
exsdeci = Math.floor(bonusbones / 10);
exsuni = Math.floor(bonusbones - (exsdeci * 10));
_root.game.exnum.exuni.gotoAndStop(exsuni + 1);
_root.game.exnum.exdeci.gotoAndStop(exsdeci + 1);
if (exsdeci > 0) {
_root.game.exnum.exuni._alpha = 100;
_root.game.exnum.exdeci._alpha = 100;
_root.game.exnum._alpha = 100;
_root.game.exnum.masi.gotoAndStop(2);
} else if (exsuni > 0) {
_root.game.exnum.exuni._alpha = 100;
_root.game.exnum.exdeci._alpha = 0;
_root.game.exnum._alpha = 100;
_root.game.exnum.masi.gotoAndStop(1);
} else if ((exsuni == 0) && (exsdeci == 0)) {
_root.game.exnum._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;
}
if ((enkilled >= 800) && (tombhold.length > 0)) {
enkilled = enkilled - 800;
rantomp = Math.floor(Math.random() * tombhold.length);
sumonlist.push(tombhold[rantomp]);
_root.game.cas[tombhold[rantomp]].gotoAndStop(2);
tombhold.splice(rantomp, 1);
}
}
function checktombs() {
if (selecttomb == false) {
i = 0;
while (i < sumonlist.length) {
freearea = _root.game.cas[sumonlist[i]];
freearea.onPress = displaybuy;
i++;
}
}
}
function displaybuy() {
generals.clic.start(0, 1);
if ((tutosec == 0) && (secnum == 0)) {
_root.game.tutoc.tb1.gotoAndStop(2);
secnum++;
}
if ((tutosec == 0) && (secnum == 2)) {
_root.game.tutoc.tb1.gotoAndStop(4);
secnum++;
}
if ((tutosec == 2) && (secnum == 0)) {
_root.game.tutoc.tb2.gotoAndStop(2);
secnum++;
}
selecttomb = true;
r = 0;
while (r < sumonlist.length) {
freearea = _root.game.cas[sumonlist[r]];
if (freearea._currentframe != 1) {
freearea.gotoAndStop(3);
}
r++;
}
this.gotoAndStop(4);
tombusing = this._name;
_root.game.tmenu.gotoAndStop(2);
_root.game.tmenu._x = this._x;
_root.game.tmenu._alpha = 100;
_root.game.tmenu._y = this._y;
if (((tutosec == 0) && (secnum == 1)) || (tutosec > 2)) {
if (bones >= 20) {
_root.game.tmenu.m1.gotoAndStop(2);
}
}
if (((tutosec == 0) && (secnum == 3)) || (tutosec > 2)) {
if (bones >= 40) {
_root.game.tmenu.m2.gotoAndStop(2);
}
}
if (((tutosec == 2) && (secnum == 1)) || (tutosec > 2)) {
if (bones >= 50) {
_root.game.tmenu.m3.gotoAndStop(2);
}
}
if (((tutosec > 2) && (secnum == 0)) || (tutosec > 2)) {
if (bones >= 100) {
_root.game.tmenu.m4.gotoAndStop(2);
}
if (bones >= 80) {
_root.game.tmenu.m5.gotoAndStop(2);
}
if (bones >= 200) {
_root.game.tmenu.m6.gotoAndStop(2);
}
if (bones >= 150) {
_root.game.tmenu.m7.gotoAndStop(2);
}
if (bones >= 100) {
_root.game.tmenu.m8.gotoAndStop(2);
}
}
}
function activet() {
if (selecttomb == true) {
if (_root.game.tmenu.cira._currentframe >= 1) {
if (((tutosec == 0) && (secnum == 1)) || (tutosec > 2)) {
if (bones >= 20) {
_root.game.tmenu.m1.gotoAndStop(2);
}
}
if (((tutosec == 0) && (secnum == 3)) || (tutosec > 2)) {
if (bones >= 40) {
_root.game.tmenu.m2.gotoAndStop(2);
}
}
if (((tutosec == 2) && (secnum == 1)) || (tutosec > 2)) {
if (bones >= 50) {
_root.game.tmenu.m3.gotoAndStop(2);
}
}
if (((tutosec > 2) && (secnum == 0)) || (tutosec > 2)) {
if (bones >= 100) {
_root.game.tmenu.m4.gotoAndStop(2);
}
if (bones >= 80) {
_root.game.tmenu.m5.gotoAndStop(2);
}
if (bones >= 200) {
_root.game.tmenu.m6.gotoAndStop(2);
}
if (bones >= 150) {
_root.game.tmenu.m7.gotoAndStop(2);
}
if (bones >= 100) {
_root.game.tmenu.m8.gotoAndStop(2);
}
}
}
if (((tutosec == 0) && (secnum == 1)) || (tutosec > 2)) {
if (bones >= 20) {
_root.game.tmenu.m1.gotoAndStop(2);
}
}
if (((tutosec == 0) && (secnum == 3)) || (tutosec > 2)) {
if (bones >= 40) {
_root.game.tmenu.m2.gotoAndStop(2);
}
}
if (((tutosec == 2) && (secnum == 1)) || (tutosec > 2)) {
if (bones >= 50) {
_root.game.tmenu.m3.gotoAndStop(2);
}
}
if (((tutosec > 2) && (secnum == 0)) || (tutosec > 2)) {
if (bones >= 100) {
_root.game.tmenu.m4.gotoAndStop(2);
}
if (bones >= 80) {
_root.game.tmenu.m5.gotoAndStop(2);
}
if (bones >= 200) {
_root.game.tmenu.m6.gotoAndStop(2);
}
if (bones >= 150) {
_root.game.tmenu.m7.gotoAndStop(2);
}
if (bones >= 100) {
_root.game.tmenu.m8.gotoAndStop(2);
}
}
if (_root.game.cas[tombusing]._xscale == -100) {
_root.game.tmenu.infm._xscale = -100;
} else {
_root.game.tmenu.infm._xscale = 100;
}
_root.game.tmenu.m1.onRollOver = function () {
onthing = true;
_root.game.tmenu.infm.gotoAndStop(2);
};
_root.game.tmenu.m2.onRollOver = function () {
onthing = true;
_root.game.tmenu.infm.gotoAndStop(3);
};
_root.game.tmenu.m3.onRollOver = function () {
onthing = true;
_root.game.tmenu.infm.gotoAndStop(4);
};
_root.game.tmenu.m4.onRollOver = function () {
onthing = true;
_root.game.tmenu.infm.gotoAndStop(5);
};
_root.game.tmenu.m5.onRollOver = function () {
onthing = true;
_root.game.tmenu.infm.gotoAndStop(6);
};
_root.game.tmenu.m6.onRollOver = function () {
onthing = true;
_root.game.tmenu.infm.gotoAndStop(7);
};
_root.game.tmenu.m7.onRollOver = function () {
onthing = true;
_root.game.tmenu.infm.gotoAndStop(8);
};
_root.game.tmenu.m8.onRollOver = function () {
onthing = true;
_root.game.tmenu.infm.gotoAndStop(9);
};
_root.game.tmenu.m1.onRollOut = function () {
onthing = false;
_root.game.tmenu.infm.gotoAndStop(1);
};
_root.game.tmenu.m2.onRollOut = function () {
onthing = false;
_root.game.tmenu.infm.gotoAndStop(1);
};
_root.game.tmenu.m3.onRollOut = function () {
onthing = false;
_root.game.tmenu.infm.gotoAndStop(1);
};
_root.game.tmenu.m4.onRollOut = function () {
onthing = false;
_root.game.tmenu.infm.gotoAndStop(1);
};
_root.game.tmenu.m5.onRollOut = function () {
onthing = false;
_root.game.tmenu.infm.gotoAndStop(1);
};
_root.game.tmenu.m6.onRollOut = function () {
onthing = false;
_root.game.tmenu.infm.gotoAndStop(1);
};
_root.game.tmenu.m7.onRollOut = function () {
onthing = false;
_root.game.tmenu.infm.gotoAndStop(1);
};
_root.game.tmenu.m8.onRollOut = function () {
onthing = false;
_root.game.tmenu.infm.gotoAndStop(1);
};
_root.game.tmenu.m1.onPress = function () {
if (_root.game.tmenu.m1._currentframe == 2) {
selecttomb = false;
_root.game.cas[tombusing].gotoAndStop(1);
_root.game.tmenu.gotoAndStop(1);
_root.game.attachMovie("skullclip", "creature" + deep, deep, {_x:_root.game.cas[tombusing]._x, _y:_root.game.cas[tombusing]._y + 9, exist:1, atk:5, range:20, xp:0, typec:1, typeatk:1, zone:tombusing, nextlv:50, money:20, dir:0, selectcs:0, espaciou:this._name, lv:1, obj:0, objtar:0, frozen:0, transfo:1});
_root.game["creature" + deep].gotoAndStop(2);
creaturelist.push("creature" + deep);
if (_root.game.cas[tombusing]._xscale == -100) {
_root.game["creature" + deep].dir = 1;
_root.game["creature" + deep]._xscale = -100;
_root.game["creature" + deep].star._xscale = -100;
}
generals.tra.start(0, 1);
doad[0] = doad[0] + 1;
bones = bones - 20;
deep++;
onthing = false;
if ((tutosec == 0) && (secnum == 1)) {
_root.game.tutoc.tb1.gotoAndStop(3);
sumonlist.push("ss5");
_root.game.cas.ss5.gotoAndStop(2);
secnum++;
}
}
};
_root.game.tmenu.m2.onPress = function () {
if (_root.game.tmenu.m2._currentframe == 2) {
selecttomb = false;
_root.game.cas[tombusing].gotoAndStop(1);
_root.game.tmenu.gotoAndStop(1);
_root.game.attachMovie("plantclip", "creature" + deep, deep, {_x:_root.game.cas[tombusing]._x, _y:_root.game.cas[tombusing]._y + 9, exist:1, atk:3, range:300, xp:0, typec:2, typeatk:1, zone:tombusing, nextlv:50, money:40, dir:0, selectcs:0, espaciou:this._name, lv:1, atktempo:0, obj:0, objtar:0, frozen:0, transfo:1});
_root.game["creature" + deep].gotoAndStop(2);
creaturelist.push("creature" + deep);
if (_root.game.cas[tombusing]._xscale == -100) {
_root.game["creature" + deep].dir = 1;
_root.game["creature" + deep]._xscale = -100;
_root.game["creature" + deep].star._xscale = -100;
}
generals.tra.start(0, 1);
doad[3] = doad[3] + 1;
bones = bones - 40;
deep++;
onthing = false;
if ((tutosec == 0) && (secnum == 3)) {
_root.game.tutoc.tb1.gotoAndStop(5);
secnum++;
}
}
};
_root.game.tmenu.m3.onPress = function () {
if (_root.game.tmenu.m3._currentframe == 2) {
selecttomb = false;
_root.game.cas[tombusing].gotoAndStop(1);
_root.game.tmenu.gotoAndStop(1);
_root.game.attachMovie("slimeclip", "creature" + deep, deep, {_x:_root.game.cas[tombusing]._x, _y:_root.game.cas[tombusing]._y + 9, exist:1, atk:4, range:20, xp:0, typec:3, typeatk:2, zone:tombusing, nextlv:100, money:50, dir:0, selectcs:0, espaciou:this._name, lv:1, atktempo:0, obj:0, objtar:0, frozen:0, transfo:1});
_root.game["creature" + deep].gotoAndStop(2);
creaturelist.push("creature" + deep);
if (_root.game.cas[tombusing]._xscale == -100) {
_root.game["creature" + deep].dir = 1;
_root.game["creature" + deep]._xscale = -100;
_root.game["creature" + deep].star._xscale = -100;
}
generals.tra.start(0, 1);
doad[6] = doad[6] + 1;
bones = bones - 50;
deep++;
onthing = false;
if ((tutosec == 2) && (secnum == 1)) {
_root.game.tutoc.tb2.gotoAndStop(3);
secnum++;
}
}
};
_root.game.tmenu.m4.onPress = function () {
if (_root.game.tmenu.m4._currentframe == 2) {
selecttomb = false;
_root.game.cas[tombusing].gotoAndStop(1);
_root.game.tmenu.gotoAndStop(1);
_root.game.attachMovie("demonclip", "creature" + deep, deep, {_x:_root.game.cas[tombusing]._x, _y:_root.game.cas[tombusing]._y + 9, exist:1, atk:3, range:20, xp:0, typec:4, typeatk:3, zone:tombusing, nextlv:10, money:100, dir:0, selectcs:0, espaciou:this._name, lv:1, obj:0, objtar:0, frozen:0, transfo:0, atktempo:0, stopu:0, calm:1});
_root.game["creature" + deep].gotoAndStop(2);
creaturelist.push("creature" + deep);
if (_root.game.cas[tombusing]._xscale == -100) {
_root.game["creature" + deep].dir = 1;
_root.game["creature" + deep]._xscale = -100;
_root.game["creature" + deep].star._xscale = -100;
}
doad[9] = doad[9] + 1;
bones = bones - 100;
deep++;
onthing = false;
}
};
_root.game.tmenu.m5.onPress = function () {
if (_root.game.tmenu.m5._currentframe == 2) {
selecttomb = false;
_root.game.cas[tombusing].gotoAndStop(1);
_root.game.tmenu.gotoAndStop(1);
_root.game.attachMovie("hiveclip", "creature" + deep, deep, {_x:_root.game.cas[tombusing]._x, _y:_root.game.cas[tombusing]._y + 9, exist:1, atk:5, range:80, xp:0, typec:5, typeatk:1, zone:tombusing, nextlv:25, money:80, dir:0, selectcs:0, espaciou:this._name, lv:1, atktempo:0, obj:0, objtar:0, frozen:0, transfo:0, calm:0, targ:1});
_root.game["creature" + deep].gotoAndStop(2);
creaturelist.push("creature" + deep);
if (_root.game.cas[tombusing]._xscale == -100) {
_root.game["creature" + deep].dir = 1;
_root.game["creature" + deep]._xscale = -100;
_root.game["creature" + deep].star._xscale = -100;
}
doad[12] = doad[12] + 1;
bones = bones - 80;
deep++;
onthing = false;
}
};
_root.game.tmenu.m6.onPress = function () {
if (_root.game.tmenu.m6._currentframe == 2) {
selecttomb = false;
_root.game.cas[tombusing].gotoAndStop(1);
_root.game.tmenu.gotoAndStop(1);
_root.game.attachMovie("corpeclip", "creature" + deep, deep, {_x:_root.game.cas[tombusing]._x, _y:_root.game.cas[tombusing]._y + 9, exist:1, atk:1, range:0, xp:0, typec:6, typeatk:4, zone:tombusing, nextlv:50, money:200, dir:0, selectcs:0, espaciou:this._name, lv:1, atktempo:0, obj:0, objtar:0, frozen:0, transfo:1, produce:240});
_root.game["creature" + deep].gotoAndStop(2);
creaturelist.push("creature" + deep);
if (_root.game.cas[tombusing]._xscale == -100) {
_root.game["creature" + deep].dir = 1;
_root.game["creature" + deep]._xscale = -100;
_root.game["creature" + deep].star._xscale = -100;
}
doad[15] = doad[15] + 1;
bonusbones = bonusbones + 1;
bones = bones - 200;
deep++;
onthing = false;
}
};
_root.game.tmenu.m7.onPress = function () {
if (_root.game.tmenu.m7._currentframe == 2) {
selecttomb = false;
_root.game.cas[tombusing].gotoAndStop(1);
_root.game.tmenu.gotoAndStop(1);
_root.game.attachMovie("mudmanclip", "creature" + deep, deep, {_x:_root.game.cas[tombusing]._x, _y:_root.game.cas[tombusing]._y + 9, exist:1, atk:5, range:80, xp:0, typec:7, typeatk:1, zone:tombusing, nextlv:100, money:150, dir:0, selectcs:0, espaciou:this._name, lv:1, atktempo:0, obj:0, objtar:0, frozen:0, transfo:1});
_root.game["creature" + deep].gotoAndStop(2);
creaturelist.push("creature" + deep);
if (_root.game.cas[tombusing]._xscale == -100) {
_root.game["creature" + deep].dir = 1;
_root.game["creature" + deep]._xscale = -100;
_root.game["creature" + deep].star._xscale = -100;
}
doad[18] = doad[18] + 1;
bones = bones - 150;
deep++;
onthing = false;
}
};
_root.game.tmenu.m8.onPress = function () {
if (_root.game.tmenu.m8._currentframe == 2) {
selecttomb = false;
_root.game.cas[tombusing].gotoAndStop(1);
_root.game.tmenu.gotoAndStop(1);
_root.game.attachMovie("dragonclip", "creature" + deep, deep, {_x:_root.game.cas[tombusing]._x, _y:_root.game.cas[tombusing]._y + 9, exist:1, atk:5, range:40, xp:0, typec:8, typeatk:1, zone:tombusing, nextlv:100, money:100, dir:0, selectcs:0, espaciou:this._name, lv:1, atktempo:0, obj:0, objtar:0, frozen:0, transfo:1});
_root.game["creature" + deep].gotoAndStop(2);
creaturelist.push("creature" + deep);
if (_root.game.cas[tombusing]._xscale == -100) {
_root.game["creature" + deep].dir = 1;
_root.game["creature" + deep]._xscale = -100;
_root.game["creature" + deep].star._xscale = -100;
}
doad[21] = doad[21] + 1;
bones = bones - 100;
deep++;
onthing = false;
}
};
}
if (selectmon == true) {
_root.game.monmenu.atkb.onRollOver = function () {
onthing = true;
};
_root.game.monmenu.upgb.onRollOver = function () {
onthing = true;
};
_root.game.monmenu.sellb.onRollOver = function () {
onthing = true;
};
_root.game.monmenu.atkb.onRollOut = function () {
onthing = false;
};
_root.game.monmenu.upgb.onRollOut = function () {
onthing = false;
};
_root.game.monmenu.sellb.onRollOut = function () {
onthing = false;
};
_root.game.monmenu.atkb.onPress = function () {
generals.clic.start(0, 1);
if (_root.game.monmenu.atkb._currentframe == 2) {
if ((tutosec == 2) && (secnum == 3)) {
_root.game.tutoc.tb2.gotoAndStop(5);
secnum++;
if (bones >= (_root.game[monusing].money / 2)) {
bones = bones - (_root.game[monusing].money / 2);
_root.game[monusing].atk = _root.game[monusing].atk + 1;
if (_root.game[monusing].typec == 6) {
bonusbones = bonusbones + 1;
}
_root.game[monusing].money = _root.game[monusing].money + (_root.game[monusing].money / 2);
selectmon = false;
_root.game.monmenu.gotoAndStop(1);
onthing = false;
}
}
}
if (_root.game.monmenu.atkb._currentframe == 1) {
_root.game.monmenu.atkb.gotoAndStop(2);
_root.game.monmenu.upgb.gotoAndStop(1);
_root.game.monmenu.sellb.gotoAndStop(1);
_root.game.monmenu.statusmon.gotoAndStop(2);
xmil = Math.floor(_root.game[monusing].atk / 100);
xdeci = Math.floor((_root.game[monusing].atk - (xmil * 100)) / 10);
xuni = Math.floor((_root.game[monusing].atk - (xmil * 100)) - (xdeci * 10));
_root.game.monmenu.statusmon.souni.gotoAndStop(xuni + 1);
_root.game.monmenu.statusmon.sodeci.gotoAndStop(xdeci + 1);
_root.game.monmenu.statusmon.somil.gotoAndStop(xmil + 1);
if (xmil > 0) {
_root.game.monmenu.statusmon.souni._alpha = 100;
_root.game.monmenu.statusmon.sodeci._alpha = 100;
_root.game.monmenu.statusmon.somil._alpha = 100;
} else if (xdeci > 0) {
_root.game.monmenu.statusmon.souni._alpha = 100;
_root.game.monmenu.statusmon.sodeci._alpha = 100;
_root.game.monmenu.statusmon.somil._alpha = 0;
} else if (xuni > 0) {
_root.game.monmenu.statusmon.souni._alpha = 100;
_root.game.monmenu.statusmon.sodeci._alpha = 0;
_root.game.monmenu.statusmon.somil._alpha = 0;
} else if (((xuni == 0) && (xdeci == 0)) && (xmil == 0)) {
_root.game.monmenu.statusmon.souni._alpha = 100;
_root.game.monmenu.statusmon.sodeci._alpha = 0;
_root.game.monmenu.statusmon.somil._alpha = 0;
}
xmil = Math.floor((_root.game[monusing].atk + 1) / 100);
xdeci = Math.floor(((_root.game[monusing].atk + 1) - (xmil * 100)) / 10);
xuni = Math.floor(((_root.game[monusing].atk + 1) - (xmil * 100)) - (xdeci * 10));
_root.game.monmenu.statusmon.ssouni.gotoAndStop(xuni + 1);
_root.game.monmenu.statusmon.ssodeci.gotoAndStop(xdeci + 1);
_root.game.monmenu.statusmon.ssomil.gotoAndStop(xmil + 1);
if (xmil > 0) {
_root.game.monmenu.statusmon.ssouni._alpha = 100;
_root.game.monmenu.statusmon.ssodeci._alpha = 100;
_root.game.monmenu.statusmon.ssomil._alpha = 100;
} else if (xdeci > 0) {
_root.game.monmenu.statusmon.ssouni._alpha = 100;
_root.game.monmenu.statusmon.ssodeci._alpha = 100;
_root.game.monmenu.statusmon.ssomil._alpha = 0;
} else if (xuni > 0) {
_root.game.monmenu.statusmon.ssouni._alpha = 100;
_root.game.monmenu.statusmon.ssodeci._alpha = 0;
_root.game.monmenu.statusmon.ssomil._alpha = 0;
} else if (((xuni == 0) && (xdeci == 0)) && (xmil == 0)) {
_root.game.monmenu.statusmon.ssouni._alpha = 100;
_root.game.monmenu.statusmon.ssodeci._alpha = 0;
_root.game.monmenu.statusmon.ssomil._alpha = 0;
}
xmil = Math.floor((_root.game[monusing].money / 2) / 100);
xdeci = Math.floor(((_root.game[monusing].money / 2) - (xmil * 100)) / 10);
xuni = Math.floor(((_root.game[monusing].money / 2) - (xmil * 100)) - (xdeci * 10));
_root.game.monmenu.statusmon.mouni.gotoAndStop(xuni + 1);
_root.game.monmenu.statusmon.modeci.gotoAndStop(xdeci + 1);
_root.game.monmenu.statusmon.momil.gotoAndStop(xmil + 1);
if (xmil > 0) {
_root.game.monmenu.statusmon.mouni._alpha = 100;
_root.game.monmenu.statusmon.modeci._alpha = 100;
_root.game.monmenu.statusmon.momil._alpha = 100;
} else if (xdeci > 0) {
_root.game.monmenu.statusmon.mouni._alpha = 100;
_root.game.monmenu.statusmon.modeci._alpha = 100;
_root.game.monmenu.statusmon.momil._alpha = 0;
} else if (xuni > 0) {
_root.game.monmenu.statusmon.mouni._alpha = 100;
_root.game.monmenu.statusmon.modeci._alpha = 0;
_root.game.monmenu.statusmon.momil._alpha = 0;
} else if (((xuni == 0) && (xdeci == 0)) && (xmil == 0)) {
_root.game.monmenu.statusmon.mouni._alpha = 100;
_root.game.monmenu.statusmon.modeci._alpha = 0;
_root.game.monmenu.statusmon.momil._alpha = 0;
}
}
};
_root.game.monmenu.upgb.onPress = function () {
generals.clic.start(0, 1);
if (_root.game.monmenu.upgb._currentframe == 2) {
if (((((_root.game[monusing].lv < 3) && (_root.game[monusing].frozen == 0)) && (_root.game[monusing].xp >= _root.game[monusing].nextlv)) && (tutosec == 4)) && (secnum == 1)) {
if ((_root.game[monusing].typec == 1) && (_root.game[monusing].lv == 1)) {
_root.game[monusing].transfo = 1;
_root.game[monusing].gotoAndStop(5);
_root.game[monusing].nextlv = 100;
_root.game[monusing].xp = 0;
doad[1] = doad[1] + 1;
generals.tra.start(0, 1);
}
if ((_root.game[monusing].typec == 1) && (_root.game[monusing].lv == 2)) {
_root.game[monusing].transfo = 1;
_root.game[monusing].nextlv = 300;
_root.game[monusing].gotoAndStop(8);
_root.game[monusing].xp = 0;
_root.game[monusing].star._alpha = 0;
doad[2] = doad[2] + 1;
generals.tra.start(0, 1);
}
if ((_root.game[monusing].typec == 2) && (_root.game[monusing].lv == 1)) {
_root.game[monusing].transfo = 1;
_root.game[monusing].nextlv = 200;
_root.game[monusing].xp = 0;
_root.game[monusing].gotoAndStop(5);
_root.game[monusing].atk = _root.game[monusing].atk + 1;
if ((tutosec == 4) && (secnum == 1)) {
_root.game.tutoc.tb3.gotoAndStop(6);
secnum++;
}
doad[4] = doad[4] + 1;
generals.tra.start(0, 1);
}
if ((_root.game[monusing].typec == 2) && (_root.game[monusing].lv == 2)) {
_root.game[monusing].transfo = 1;
_root.game[monusing].gotoAndStop(8);
_root.game[monusing].xp = 0;
_root.game[monusing].atk = _root.game[monusing].atk + 1;
_root.game[monusing].star._alpha = 0;
doad[5] = doad[5] + 1;
generals.tra.start(0, 1);
}
if ((_root.game[monusing].typec == 3) && (_root.game[monusing].lv == 1)) {
_root.game[monusing].transfo = 1;
_root.game[monusing].nextlv = 150;
_root.game[monusing].xp = 0;
_root.game[monusing].gotoAndStop(4);
_root.game[monusing].atk = _root.game[monusing].atk + 1;
doad[7] = doad[7] + 1;
generals.tra.start(0, 1);
}
if ((_root.game[monusing].typec == 3) && (_root.game[monusing].lv == 2)) {
_root.game[monusing].transfo = 1;
_root.game[monusing].nextlv = 2000;
_root.game[monusing].gotoAndStop(6);
_root.game[monusing].xp = 0;
_root.game[monusing].star._alpha = 0;
doad[8] = doad[8] + 1;
}
if ((_root.game[monusing].typec == 4) && (_root.game[monusing].lv == 1)) {
_root.game[monusing].transfo = 1;
_root.game[monusing].nextlv = 25;
_root.game[monusing].gotoAndStop(7);
_root.game[monusing].xp = 0;
_root.game[monusing].atk = _root.game[monusing].atk + 2;
doad[10] = doad[10] + 1;
}
if ((_root.game[monusing].typec == 4) && (_root.game[monusing].lv == 2)) {
_root.game[monusing].transfo = 1;
_root.game[monusing].nextlv = 25;
_root.game[monusing].gotoAndStop(12);
_root.game[monusing].xp = 0;
_root.game[monusing].atk = _root.game[monusing].atk + 2;
_root.game[monusing].star._alpha = 0;
doad[11] = doad[11] + 1;
}
if ((_root.game[monusing].typec == 5) && (_root.game[monusing].lv == 1)) {
_root.game[monusing].transfo = 1;
_root.game[monusing].nextlv = 100;
_root.game[monusing].gotoAndStop(4);
_root.game[monusing].atk = _root.game[monusing].atk + 1;
_root.game[monusing].xp = 0;
doad[13] = doad[13] + 1;
}
if ((_root.game[monusing].typec == 5) && (_root.game[monusing].lv == 2)) {
_root.game[monusing].transfo = 1;
_root.game[monusing].nextlv = 200;
_root.game[monusing].gotoAndStop(6);
_root.game[monusing].atk = _root.game[monusing].atk + 1;
_root.game[monusing].xp = 0;
_root.game[monusing].star._alpha = 0;
doad[14] = doad[14] + 1;
}
if ((_root.game[monusing].typec == 6) && (_root.game[monusing].lv == 1)) {
_root.game[monusing].transfo = 1;
_root.game[monusing].nextlv = 100;
_root.game[monusing].gotoAndStop(4);
_root.game[monusing].atk = _root.game[monusing].atk + 1;
bonusbones = bonusbones + 1;
_root.game[monusing].xp = 0;
doad[16] = doad[16] + 1;
}
if ((_root.game[monusing].typec == 6) && (_root.game[monusing].lv == 2)) {
_root.game[monusing].transfo = 1;
_root.game[monusing].nextlv = 200;
_root.game[monusing].gotoAndStop(6);
_root.game[monusing].atk = _root.game[monusing].atk + 1;
bonusbones = bonusbones + 1;
_root.game[monusing].xp = 0;
_root.game[monusing].star._alpha = 0;
doad[17] = doad[17] + 1;
}
if ((_root.game[monusing].typec == 7) && (_root.game[monusing].lv == 1)) {
_root.game[monusing].transfo = 1;
_root.game[monusing].gotoAndStop(5);
_root.game[monusing].atk = _root.game[monusing].atk + 1;
_root.game[monusing].xp = 0;
doad[19] = doad[19] + 1;
}
if ((_root.game[monusing].typec == 7) && (_root.game[monusing].lv == 2)) {
_root.game[monusing].transfo = 1;
_root.game[monusing].gotoAndStop(8);
_root.game[monusing].atk = _root.game[monusing].atk + 1;
_root.game[monusing].xp = 0;
_root.game[monusing].star._alpha = 0;
doad[20] = doad[20] + 1;
}
if ((_root.game[monusing].typec == 8) && (_root.game[monusing].lv == 1)) {
_root.game[monusing].transfo = 1;
_root.game[monusing].nextlv = 150;
_root.game[monusing].gotoAndStop(5);
_root.game[monusing].atk = _root.game[monusing].atk + 1;
_root.game[monusing].xp = 0;
doad[22] = doad[22] + 1;
}
if ((_root.game[monusing].typec == 8) && (_root.game[monusing].lv == 2)) {
_root.game[monusing].transfo = 1;
_root.game[monusing].nextlv = 300;
_root.game[monusing].gotoAndStop(9);
_root.game[monusing].atk = _root.game[monusing].atk + 1;
_root.game[monusing].xp = 0;
_root.game[monusing].star._alpha = 0;
doad[23] = doad[23] + 1;
}
_root.game[monusing].lv = _root.game[monusing].lv + 1;
selectmon = false;
onthing = false;
_root.game.monmenu.gotoAndStop(1);
}
}
if ((_root.game.monmenu.upgb._currentframe == 1) && (_root.game[monusing].lv < 3)) {
_root.game.monmenu.atkb.gotoAndStop(1);
_root.game.monmenu.upgb.gotoAndStop(2);
_root.game.monmenu.sellb.gotoAndStop(1);
_root.game.monmenu.statusmon.gotoAndStop(3);
_root.game.monmenu.statusmon.evo.gotoAndStop(_root.game[monusing].typec + 1);
_root.game.monmenu.statusmon.evo.ev.gotoAndStop(_root.game[monusing].lv);
}
};
_root.game.monmenu.sellb.onPress = function () {
};
}
if ((magict < 1200) && (magicused == true)) {
magict = magict + 1;
}
if ((magict >= 1200) && (magicused == true)) {
magicused = false;
}
_root.game.queen.onPress = function () {
generals.clic.start(0, 1);
if ((tutosec == 3.5) && (secnum == 0)) {
_root.game.tutoc.tb3.gotoAndStop(2);
tutosec = 3.6;
}
selectmagic = true;
_root.game.magicm.gotoAndStop(2);
_root.game.magicm.magics.firem.maski._yscale = (magict * 100) / 1200;
_root.game.magicm.magics.icem.maski._yscale = (magict * 100) / 1200;
_root.game.magicm.magics.slimem.maski._yscale = (magict * 100) / 1200;
};
_root.game.magicm.magics.firem.maski._yscale = (magict * 100) / 1200;
_root.game.magicm.magics.icem.maski._yscale = (magict * 100) / 1200;
_root.game.magicm.magics.slimem.maski._yscale = (magict * 100) / 1200;
_root.game.magicm.magics.icem._alpha = 20;
_root.game.magicm.magics.slimem._alpha = 20;
if (selectmagic == true) {
_root.game.magicm.magics.firem.onRollOver = function () {
onthing = true;
};
_root.game.magicm.magics.icem.onRollOver = function () {
onthing = true;
};
_root.game.magicm.magics.slimem.onRollOver = function () {
onthing = true;
};
_root.game.magicm.magics.firem.onRollOut = function () {
onthing = false;
};
_root.game.magicm.magics.icem.onRollOut = function () {
onthing = false;
};
_root.game.magicm.magics.slimem.onRollOut = function () {
onthing = false;
};
}
_root.game.magicm.magics.firem.onPress = function () {
if ((tutosec == 3.6) && (secnum == 0)) {
if ((bones >= 200) && (magicused == false)) {
generals.clic.start(0, 1);
selectmagic = false;
onthing = false;
_root.game.magicm.gotoAndStop(1);
bones = bones - 200;
magict = 0;
magicused = true;
_root.game.firemag.gotoAndStop(2);
}
magtuto = false;
tutosec = 3.7;
_root.game.tutoc.tb3.gotoAndStop(3);
}
};
if (_root.game.slimemag.slimy._currentframe == 13) {
s = 0;
while (s < soldierlist.length) {
selects = _root.game[soldierlist[s]];
selects.slowt = 240;
selects.slow = 10;
selects.slimy.gotoAndStop(3);
s++;
}
}
_root.onMouseDown = function () {
if ((selecttomb == true) && (onthing == false)) {
selecttomb = false;
_root.game.cas[tombusing].gotoAndStop(3);
_root.game.tmenu.gotoAndStop(1);
selectmon = false;
selectmagic = false;
_root.game.monmenu.gotoAndStop(1);
if ((tutosec == 0) && (secnum == 1)) {
_root.game.tutoc.tb1.gotoAndStop(1);
secnum--;
}
if ((tutosec == 0) && (secnum == 3)) {
_root.game.tutoc.tb1.gotoAndStop(3);
secnum--;
}
if ((tutosec == 2) && (secnum == 1)) {
_root.game.tutoc.tb2.gotoAndStop(1);
secnum--;
}
}
if ((selectmon == true) && (onthing == false)) {
selectmon = false;
selecttomb = false;
selectmagic = false;
_root.game.tmenu.gotoAndStop(1);
_root.game.monmenu.gotoAndStop(1);
if ((tutosec == 0) && (secnum == 1)) {
_root.game.tutoc.tb1.gotoAndStop(1);
secnum--;
}
if ((tutosec == 0) && (secnum == 3)) {
_root.game.tutoc.tb1.gotoAndStop(3);
secnum--;
}
if ((tutosec == 2) && (secnum == 3)) {
_root.game.tutoc.tb2.gotoAndStop(3);
secnum--;
}
if ((tutosec == 4) && (secnum == 1)) {
_root.game.tutoc.tb3.gotoAndStop(4);
secnum--;
}
}
if ((selectmagic == true) && (onthing == false)) {
selectmon = false;
selecttomb = false;
selectmagic = false;
_root.game.magicm.gotoAndStop(1);
_root.game.tmenu.gotoAndStop(1);
_root.game.monmenu.gotoAndStop(1);
if ((tutosec == 0) && (secnum == 1)) {
_root.game.tutoc.tb1.gotoAndStop(1);
secnum--;
}
if ((tutosec == 0) && (secnum == 3)) {
_root.game.tutoc.tb1.gotoAndStop(3);
secnum--;
}
}
};
}
function monsters() {
i = 0;
while (i < creaturelist.length) {
selectc = _root.game[creaturelist[i]];
if (selectc.exist != 1) {
creaturelist.splice(i, 1);
}
selectc.star.expcon.expb._xscale = (selectc.xp * 100) / selectc.nextlv;
selectc.onPress = function () {
generals.clic.start(0, 1);
this.rangec.gotoAndPlay(2);
selectmon = true;
monusing = this._name;
_root.game.monmenu._x = this._x;
_root.game.monmenu._y = this._y + 20;
_root.game.monmenu.gotoAndStop(2);
if ((tutosec == 2) && (secnum == 2)) {
_root.game.tutoc.tb2.gotoAndStop(4);
secnum++;
}
if ((tutosec == 4) && (secnum == 0)) {
_root.game.tutoc.tb3.gotoAndStop(5);
secnum++;
}
};
if ((selectc.transfo == 1) && (selectc.trans._currentframe == 10)) {
selectc.transfo = 0;
}
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(10);
}
}
}
}
i++;
}
}
function soldiers() {
if (_root.game.gameov.times._currentframe == 39) {
_root.cortiout.gotoAndPlay(2);
}
if (_root.game.victo.times._currentframe == 69) {
_root.cortiout.gotoAndPlay(2);
}
if (wavedeath == true) {
_root.game.nextwi._alpha = 100;
_root.game.nextwi.maski._yscale = (nextwavec * 100) / 60;
keysecondss++;
_root.game.nextwi.onPress = function () {
if (((((tutosec == 0) && (secnum == 4)) || ((tutosec == 2) && (secnum == 4))) || ((tutosec == 4) && (secnum == 2))) || ((tutosec == 6) && (secnum == 0))) {
_root.game.nextwi._x = -100;
if (nextwavec <= 60) {
bones = bones + nextwavec;
}
nextwavec = 0;
generals.cam.start(0, 1);
}
if ((tutosec == 0) && (secnum == 4)) {
_root.game.tutoc.gotoAndStop(1);
tutosec++;
}
if ((tutosec == 2) && (secnum == 4)) {
_root.game.tutoc.gotoAndStop(1);
tutosec++;
}
if ((tutosec == 4) && (secnum == 2)) {
_root.game.tutoc.gotoAndStop(1);
tutosec++;
}
if ((tutosec == 6) && (secnum == 0)) {
_root.game.tutoc.gotoAndStop(1);
tutosec++;
}
};
if (keysecondss >= 12) {
keysecondss = 0;
nextwavec = nextwavec - 1;
}
if (nextwavec <= 0) {
keysecondss = 0;
soldierlist = [];
bloodlist = [];
wavedeath = false;
_root.game.nextwi._alpha = 0;
}
if (tutosec == 0) {
_root.game.tutoc.gotoAndStop(2);
}
}
if ((hpqueen < 0) && (_root.game.queen.gulp._currentframe == 35)) {
_root.game.gameov.gotoAndStop(2);
}
if (((wavedeath == false) && (victory == false)) && (gameover == false)) {
keysecondss++;
if ((keysecondss >= 16) && (soldierbox[soldierwave - 1][numsoldier] != 0)) {
if (soldierbox[soldierwave - 1][numsoldier] == 1) {
_root.game.attachMovie("soldieraclip", "soldier" + deeps, deeps, {_x:-50, _y:300, exist:1, types:1, money:10, dir:0, hp:5, hpt:5, speed:3, lev:1, slow:0, acid:0, stopu:0, froze:0, blow:0, special:0, killhim:0, mdeath:0, slowt:0, stoput:0});
_root.game["soldier" + deeps].gotoAndStop(2);
soldierlist.push("soldier" + deeps);
deeps--;
numsoldier++;
}
if (soldierbox[soldierwave - 1][numsoldier] == 2) {
_root.game.attachMovie("soldierb", "soldier" + deeps, deeps, {_x:-50, _y:300, exist:1, types:2, money:10, dir:0, hp:10, hpt:10, speed:5, lev:1, slow:0, acid:0, stopu:0, froze:0, blow:0, special:0, killhim:0, mdeath:0, slowt:0, stoput:0});
_root.game["soldier" + deeps].gotoAndStop(2);
soldierlist.push("soldier" + deeps);
deeps--;
numsoldier++;
}
if (soldierbox[soldierwave - 1][numsoldier] == 3) {
_root.game.attachMovie("soldierc", "soldier" + deeps, deeps, {_x:-50, _y:300, exist:1, types:3, money:15, dir:0, hp:15, hpt:15, speed:2, lev:1, slow:0, acid:0, stopu:0, froze:0, blow:0, special:0, killhim:0, mdeath:0, slowt:0, stoput:0});
_root.game["soldier" + deeps].gotoAndStop(2);
soldierlist.push("soldier" + deeps);
deeps--;
numsoldier++;
}
if (soldierbox[soldierwave - 1][numsoldier] == 5) {
_root.game.attachMovie("soldiere", "soldier" + deeps, deeps, {_x:-50, _y:300, exist:1, types:5, money:20, dir:0, hp:100, hpt:100, speed:1, lev:1, slow:0, acid:0, stopu:0, froze:0, blow:0, special:0, killhim:0, mdeath:0, slowt:0, stoput:0});
_root.game["soldier" + deeps].gotoAndStop(2);
soldierlist.push("soldier" + deeps);
deeps--;
numsoldier++;
}
if (soldierbox[soldierwave - 1][numsoldier] == 6) {
_root.game.attachMovie("soldierf", "soldier" + deeps, deeps, {_x:-50, _y:300, exist:1, types:6, 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, slowt:0, stoput:0});
_root.game["soldier" + deeps].gotoAndStop(2);
soldierlist.push("soldier" + deeps);
deeps--;
numsoldier++;
}
if (soldierbox[soldierwave - 1][numsoldier] == 7) {
_root.game.attachMovie("soldierg", "soldier" + deeps, deeps, {_x:-50, _y:300, exist:1, types:7, 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, hike:2, mdeath:0, slowt:0, stoput:0});
_root.game["soldier" + deeps].gotoAndStop(2);
soldierlist.push("soldier" + deeps);
deeps--;
numsoldier++;
}
if (soldierbox[soldierwave - 1][numsoldier] == 8) {
_root.game.attachMovie("soldierh", "soldier" + deeps, deeps, {_x:-50, _y:300, exist:1, types:8, money:20, dir:0, hp:80, hpt:80, speed:3, lev:1, slow:0, acid:0, stopu:0, froze:0, blow:0, special:0, killhim:0, mdeath:0, slowt:0, stoput:0});
_root.game["soldier" + deeps].gotoAndStop(2);
soldierlist.push("soldier" + deeps);
deeps--;
numsoldier++;
}
if (soldierbox[soldierwave - 1][numsoldier] == 9) {
_root.game.attachMovie("soldieri", "soldier" + deeps, deeps, {_x:-50, _y:300, exist:1, types:9, money:50, 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, slowt:0, stoput:0});
_root.game["soldier" + deeps].gotoAndStop(2);
soldierlist.push("soldier" + deeps);
deeps--;
numsoldier++;
}
if (soldierbox[soldierwave - 1][numsoldier] == 10) {
_root.game.attachMovie("soldierj", "soldier" + deeps, deeps, {_x:-50, _y:300, exist:1, types:10, money:50, dir:0, hp:200, hpt:200, speed:7, lev:1, slow:0, acid:0, stopu:0, froze:0, blow:0, special:0, killhim:0, mdeath:0, slowt:0, stoput:0});
_root.game["soldier" + deeps].gotoAndStop(2);
soldierlist.push("soldier" + deeps);
deeps--;
numsoldier++;
}
if (soldierbox[soldierwave - 1][numsoldier] == 11) {
_root.game.attachMovie("soldieraclip", "soldier" + deeps, deeps, {_x:-50, _y:300, exist:1, types:1, money:10, 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, slowt:0, stoput:0});
_root.game["soldier" + deeps].gotoAndStop(2);
soldierlist.push("soldier" + deeps);
deeps--;
numsoldier++;
}
if (soldierbox[soldierwave - 1][numsoldier] == 12) {
_root.game.attachMovie("soldierb", "soldier" + deeps, deeps, {_x:-50, _y:300, exist:1, types:2, money:10, dir:0, hp:120, hpt:120, speed:5, lev:1, slow:0, acid:0, stopu:0, froze:0, blow:0, special:0, killhim:0, mdeath:0, slowt:0, stoput:0});
_root.game["soldier" + deeps].gotoAndStop(2);
soldierlist.push("soldier" + deeps);
deeps--;
numsoldier++;
}
if (soldierbox[soldierwave - 1][numsoldier] == 13) {
_root.game.attachMovie("soldierc", "soldier" + deeps, deeps, {_x:-50, _y:300, exist:1, types:3, money:15, 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, slowt:0, stoput:0});
_root.game["soldier" + deeps].gotoAndStop(2);
soldierlist.push("soldier" + deeps);
deeps--;
numsoldier++;
}
if (soldierbox[soldierwave - 1][numsoldier] == 15) {
_root.game.attachMovie("soldiere", "soldier" + deeps, deeps, {_x:-50, _y:300, exist:1, types:5, money:20, dir:0, hp:400, hpt:400, speed:1, lev:1, slow:0, acid:0, stopu:0, froze:0, blow:0, special:0, killhim:0, mdeath:0, slowt:0, stoput:0});
_root.game["soldier" + deeps].gotoAndStop(2);
soldierlist.push("soldier" + deeps);
deeps--;
numsoldier++;
}
if (soldierbox[soldierwave - 1][numsoldier] == 16) {
_root.game.attachMovie("soldierf", "soldier" + deeps, deeps, {_x:-50, _y:300, exist:1, types:6, 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, slowt:0, stoput:0});
_root.game["soldier" + deeps].gotoAndStop(2);
soldierlist.push("soldier" + deeps);
deeps--;
numsoldier++;
}
if (soldierbox[soldierwave - 1][numsoldier] == 17) {
_root.game.attachMovie("soldierg", "soldier" + deeps, deeps, {_x:-50, _y:300, exist:1, types:7, 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, hike:2, mdeath:0, slowt:0, stoput:0});
_root.game["soldier" + deeps].gotoAndStop(2);
soldierlist.push("soldier" + deeps);
deeps--;
numsoldier++;
}
if (soldierbox[soldierwave - 1][numsoldier] == 18) {
_root.game.attachMovie("soldierh", "soldier" + deeps, deeps, {_x:-50, _y:300, exist:1, types:8, money:20, dir:0, hp:320, hpt:320, speed:3, lev:1, slow:0, acid:0, stopu:0, froze:0, blow:0, special:0, killhim:0, mdeath:0, slowt:0, stoput:0});
_root.game["soldier" + deeps].gotoAndStop(2);
soldierlist.push("soldier" + deeps);
deeps--;
numsoldier++;
}
if (soldierbox[soldierwave - 1][numsoldier] == 19) {
_root.game.attachMovie("soldieri", "soldier" + deeps, deeps, {_x:-50, _y:300, exist:1, types:9, money:50, dir:0, hp:2000, hpt:2000, speed:1, lev:1, slow:0, acid:0, stopu:0, froze:0, blow:0, special:0, killhim:0, mdeath:0, slowt:0, stoput:0});
_root.game["soldier" + deeps].gotoAndStop(2);
soldierlist.push("soldier" + deeps);
deeps--;
numsoldier++;
}
if (soldierbox[soldierwave - 1][numsoldier] == 20) {
_root.game.attachMovie("soldierj", "soldier" + deeps, deeps, {_x:-50, _y:300, exist:1, types:10, money:50, dir:0, hp:800, hpt:800, speed:7, lev:1, slow:0, acid:0, stopu:0, froze:0, blow:0, special:0, killhim:0, mdeath:0, slowt:0, stoput:0});
_root.game["soldier" + deeps].gotoAndStop(2);
soldierlist.push("soldier" + deeps);
deeps--;
numsoldier++;
}
if (soldierbox[soldierwave - 1][numsoldier] == 21) {
_root.game.attachMovie("soldieraclip", "soldier" + deeps, deeps, {_x:-50, _y:300, exist:1, types:1, money:10, 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, slowt:0, stoput:0});
_root.game["soldier" + deeps].gotoAndStop(2);
soldierlist.push("soldier" + deeps);
deeps--;
numsoldier++;
}
if (soldierbox[soldierwave - 1][numsoldier] == 22) {
_root.game.attachMovie("soldierb", "soldier" + deeps, deeps, {_x:-50, _y:300, exist:1, types:2, money:10, dir:0, hp:300, hpt:300, speed:5, lev:1, slow:0, acid:0, stopu:0, froze:0, blow:0, special:0, killhim:0, mdeath:0, slowt:0, stoput:0});
_root.game["soldier" + deeps].gotoAndStop(2);
soldierlist.push("soldier" + deeps);
deeps--;
numsoldier++;
}
if (soldierbox[soldierwave - 1][numsoldier] == 23) {
_root.game.attachMovie("soldierc", "soldier" + deeps, deeps, {_x:-50, _y:300, exist:1, types:3, money:15, dir:0, hp:1000, hpt:1000, speed:2, lev:1, slow:0, acid:0, stopu:0, froze:0, blow:0, special:0, killhim:0, mdeath:0, slowt:0, stoput:0});
_root.game["soldier" + deeps].gotoAndStop(2);
soldierlist.push("soldier" + deeps);
deeps--;
numsoldier++;
}
if (soldierbox[soldierwave - 1][numsoldier] == 25) {
_root.game.attachMovie("soldiere", "soldier" + deeps, deeps, {_x:-50, _y:300, exist:1, types:5, money:20, 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, slowt:0, stoput:0});
_root.game["soldier" + deeps].gotoAndStop(2);
soldierlist.push("soldier" + deeps);
deeps--;
numsoldier++;
}
if (soldierbox[soldierwave - 1][numsoldier] == 26) {
_root.game.attachMovie("soldierf", "soldier" + deeps, deeps, {_x:-50, _y:300, exist:1, types:6, money:20, dir:0, hp:500, hpt:500, speed:3, lev:1, slow:0, acid:0, stopu:0, froze:0, blow:0, special:0, killhim:0, mdeath:0, slowt:0, stoput:0});
_root.game["soldier" + deeps].gotoAndStop(2);
soldierlist.push("soldier" + deeps);
deeps--;
numsoldier++;
}
if (soldierbox[soldierwave - 1][numsoldier] == 27) {
_root.game.attachMovie("soldierg", "soldier" + deeps, deeps, {_x:-50, _y:300, exist:1, types:7, money:20, dir:0, hp:500, hpt:500, speed:3, lev:1, slow:0, acid:0, stopu:0, froze:0, blow:0, special:0, killhim:0, hike:2, mdeath:0, slowt:0, stoput:0});
_root.game["soldier" + deeps].gotoAndStop(2);
soldierlist.push("soldier" + deeps);
deeps--;
numsoldier++;
}
if (soldierbox[soldierwave - 1][numsoldier] == 28) {
_root.game.attachMovie("soldierh", "soldier" + deeps, deeps, {_x:-50, _y:300, exist:1, types:8, money:20, dir:0, hp:800, hpt:800, speed:3, lev:1, slow:0, acid:0, stopu:0, froze:0, blow:0, special:0, killhim:0, mdeath:0, slowt:0, stoput:0});
_root.game["soldier" + deeps].gotoAndStop(2);
soldierlist.push("soldier" + deeps);
deeps--;
numsoldier++;
}
if (soldierbox[soldierwave - 1][numsoldier] == 29) {
_root.game.attachMovie("soldieri", "soldier" + deeps, deeps, {_x:-50, _y:300, exist:1, types:9, money:50, dir:0, hp:5000, hpt:5000, speed:1, lev:1, slow:0, acid:0, stopu:0, froze:0, blow:0, special:0, killhim:0, mdeath:0, slowt:0, stoput:0});
_root.game["soldier" + deeps].gotoAndStop(2);
soldierlist.push("soldier" + deeps);
deeps--;
numsoldier++;
}
if (soldierbox[soldierwave - 1][numsoldier] == 30) {
_root.game.attachMovie("soldierj", "soldier" + deeps, deeps, {_x:-50, _y:300, exist:1, types:10, money:50, dir:0, hp:2000, hpt:2000, speed:7, lev:1, slow:0, acid:0, stopu:0, froze:0, blow:0, special:0, killhim:0, mdeath:0, slowt:0, stoput:0});
_root.game["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) {
victory = true;
stopAllSounds();
generals.victo.start(0, 1);
soldierwave = soldierbox.length;
_root.game.victo.gotoAndStop(2);
}
if (victory == false) {
nextwavec = 200;
_root.game.nextwi._x = 30;
if (tutosec == 1) {
_root.game.tutoc.gotoAndStop(3);
sumonlist.push("ss3");
_root.game.cas.ss3.gotoAndStop(2);
tutosec++;
secnum = 0;
}
if (tutosec == 3.7) {
_root.game.tutoc.tb3.gotoAndStop(4);
tutosec = 4;
secnum = 0;
}
if (tutosec == 5) {
_root.game.tutoc.gotoAndStop(5);
tutosec++;
secnum = 0;
}
}
}
s = 0;
while (s < soldierlist.length) {
selects = _root.game[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 != 3)) {
selects.special = 1;
selects.gotoAndStop(5);
_root.game.queen.gotoAndStop(2);
}
if (((((distalxq < 35) && (distalyq < 30)) && (selects._x > _root.game.queen._x)) && (hpqueen <= 0)) && (_root.game.queen._currentframe != 3)) {
selects.special = 1;
selects.gotoAndStop(5);
_root.game.queen.gotoAndStop(3);
}
if (((((distalxq < 35) && (distalyq < 30)) && (selects._x > _root.game.queen._x)) && (_root.game.queen.eat._currentframe == 9)) || ((((distalxq < 35) && (distalyq < 30)) && (selects._x > _root.game.queen._x)) && (_root.game.queen.gulp._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);
}
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) && (hike != 1)) {
selects.stopu = 0;
selects.gotoAndStop(10);
if (selects.cold._currentframe == 60) {
selects.froze = 0;
}
}
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;
}
if ((((((((selects._x > 95) && (selects.stopu <= 0)) && (selects.types == 7)) && (selects.hike == 2)) && (selects.hp < (selects.hpt / 2))) && (selects.special == 0)) && (selects._currentframe == 3)) && (selects.froze == 0)) {
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 - 7;
}
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 - 4;
}
if (((((selects.types == 7) && (selects.attack._currentframe == 21)) && (selects.special == 1)) && (selects.hike == 1)) && (selects.froze == 0)) {
if (selects.lev == 1) {
selects._y = 240;
}
if (selects.lev == 2) {
selects._y = 180;
}
if (selects.lev == 3) {
selects._y = 120;
}
}
if ((((selects.types == 7) && (selects.attack._currentframe == 24)) && (selects.dir == 0)) && (selects.hike == 1)) {
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 < 95) && (selects.dir == 1)) {
selects._xscale = 100;
selects.hpbase._xscale = 100;
selects.dir = 0;
}
if ((selects._x > 385) && (selects.dir == 0)) {
selects._xscale = -100;
selects.hpbase._xscale = -100;
selects.dir = 1;
}
if (((selects.slimy._currentframe == 2) && (selects.slowt <= 0)) || ((selects.slimy._currentframe == 3) && (selects.slowt <= 0))) {
selects.slimy.gotoAndStop(1);
}
if (selects.slimy._currentframe == 3) {
selects.hp = selects.hp - 0.2;
}
if ((((_root.game.firemag.fireon._currentframe > 18) && (_root.game.firemag.fireon._currentframe < 130)) && (selects._y > 200)) && (selects._x > 10)) {
selects.hp = selects.hp - 5;
}
if ((selects.stopu > 0) && (selects.froze == 0)) {
selects.stopu = selects.stopu - 1;
selects.gotoAndStop(5);
}
if ((((selects.dir == 0) && (selects._currentframe == 3)) || ((selects.dir == 0) && (selects._currentframe == 5))) || ((selects.dir == 0) && (selects._currentframe == 6))) {
if (selects.special == 0) {
if ((selects.blow == 1) && (selects.types != 9)) {
selects._x = selects._x - 10;
selects.blow = 0;
}
if (selects.slowt >= 0) {
speedtotal = selects.speed - selects.slow;
selects.slowt = selects.slowt - 1;
if (speedtotal <= 0) {
speedtotal = 1;
}
if ((selects._currentframe != 3) && (selects.stopu <= 0)) {
selects.gotoAndStop(3);
}
if (selects.stopu <= 0) {
selects._x = selects._x + speedtotal;
}
}
if ((selects.stopu <= 0) && (selects.slowt <= 0)) {
selects._x = selects._x + selects.speed;
if (selects._currentframe != 3) {
selects.gotoAndStop(3);
}
}
}
}
if ((((selects.dir == 1) && (selects._currentframe == 3)) || ((selects.dir == 1) && (selects._currentframe == 5))) || ((selects.dir == 1) && (selects._currentframe == 6))) {
if (selects.special == 0) {
if ((selects.blow == 1) && (selects.types != 9)) {
selects._x = selects._x + 10;
selects.blow = 0;
}
if (selects.slowt >= 0) {
speedtotal = selects.speed - selects.slow;
selects.slowt = selects.slowt - 1;
if (speedtotal <= 0) {
speedtotal = 1;
}
if ((selects._currentframe != 3) && (selects.stopu <= 0)) {
selects.gotoAndStop(3);
}
if (selects.stopu <= 0) {
selects._x = selects._x - speedtotal;
}
}
if ((selects.stopu <= 0) && (selects.slowt <= 0)) {
selects._x = selects._x - selects.speed;
if (selects._currentframe != 3) {
selects.gotoAndStop(3);
}
}
}
}
if (selects.hp <= 0) {
_root.game.attachMovie("bloodred", "splash" + deepr, deepr, {_x:selects._x, _y:selects._y - 12.5, exist:1});
_root.game["splash" + deepr].gotoAndStop(2);
bloodlist.push("splash" + deepr);
deepr++;
if (selects.mdeath == 0) {
bones = bones + (selects.money + bonusbones);
}
enkilled++;
generals.ende.start(0, 1);
if (((selects.types == 1) && (selects.types == 11)) && (selects.types == 21)) {
doad[24] = doad[24] + 1;
}
if (((selects.types == 2) && (selects.types == 12)) && (selects.types == 22)) {
doad[25] = doad[25] + 1;
}
if (((selects.types == 3) && (selects.types == 13)) && (selects.types == 23)) {
doad[26] = doad[26] + 1;
}
if (((selects.types == 5) && (selects.types == 15)) && (selects.types == 25)) {
doad[27] = doad[27] + 1;
}
if (((selects.types == 6) && (selects.types == 16)) && (selects.types == 26)) {
doad[28] = doad[28] + 1;
}
if (((selects.types == 7) && (selects.types == 17)) && (selects.types == 27)) {
doad[29] = doad[29] + 1;
}
if (((selects.types == 8) && (selects.types == 18)) && (selects.types == 28)) {
doad[30] = doad[30] + 1;
}
if (((selects.types == 9) && (selects.types == 19)) && (selects.types == 29)) {
doad[31] = doad[31] + 1;
}
if (((selects.types == 10) && (selects.types == 20)) && (selects.types == 30)) {
doad[32] = doad[32] + 1;
}
selects.exist = 0;
selects.removeMovieClip();
soldierlist.splice(s, 1);
}
selects.mdeath = 0;
if ((selects.types == 5) && (selects.attack._currentframe == 10)) {
selects.exist = 0;
selects.removeMovieClip();
soldierlist.splice(s, 1);
}
if (((selects.exit._currentframe >= 1) && (selects.exit._currentframe <= 5)) && (selects._alpha < 100)) {
selects._alpha = selects._alpha + 20;
}
if (((selects.statess._currentframe >= 1) && (selects.statess._currentframe <= 10)) && (selects._alpha > 0)) {
selects._alpha = selects._alpha - 10;
}
if (((level >= 0) && (level <= 4)) || (level == 7)) {
if ((selects.exit._currentframe == 17) && (selects.lev == 1)) {
selects._x = _root.game.cas.ds2._x;
selects._y = _root.game.cas.ds2._y + 20;
selects.gotoAndStop(2);
selects.hpbase._alpha = 100;
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.cas.ds4._x;
selects._y = _root.game.cas.ds4._y + 20;
selects.gotoAndStop(2);
selects.hpbase._alpha = 100;
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.cas.ds6._x;
selects._y = _root.game.cas.ds6._y + 20;
selects.gotoAndStop(2);
selects.hpbase._alpha = 100;
selects.dir = 1;
selects._xscale = -100;
selects.hpbase._xscale = -100;
selects.lev = 4;
}
}
if (level == 5) {
if ((selects.exit._currentframe == 17) && (selects.lev == 1)) {
randatk = Math.floor(Math.random() * 2);
if (randatk == 0) {
selects._x = _root.game.cas.ds2._x;
selects._y = _root.game.cas.ds2._y + 20;
selects.gotoAndStop(2);
selects.hpbase._alpha = 100;
selects.dir = 0;
selects._xscale = 100;
selects.hpbase._xscale = 100;
selects.lev = 2;
}
if (randatk == 1) {
selects._x = _root.game.cas.ds4._x;
selects._y = _root.game.cas.ds4._y + 20;
selects.gotoAndStop(2);
selects.hpbase._alpha = 100;
selects.dir = 0;
selects._xscale = 100;
selects.hpbase._xscale = 100;
selects.lev = 3;
}
}
if (((selects.exit._currentframe == 17) && (selects.lev == 2)) || ((selects.exit._currentframe == 17) && (selects.lev == 3))) {
selects._x = _root.game.cas.ds6._x;
selects._y = _root.game.cas.ds6._y + 20;
selects.gotoAndStop(2);
selects.hpbase._alpha = 100;
selects.dir = 1;
selects._xscale = -100;
selects.hpbase._xscale = -100;
selects.lev = 4;
}
}
if (level == 6) {
if ((selects.exit._currentframe == 17) && (selects.lev == 1)) {
randatk = Math.floor(Math.random() * 2);
if (randatk == 0) {
selects._x = _root.game.cas.ds2._x;
selects._y = _root.game.cas.ds2._y + 20;
selects.gotoAndStop(2);
selects.hpbase._alpha = 100;
selects.dir = 1;
selects._xscale = -100;
selects.hpbase._xscale = -100;
selects.lev = 2;
}
if (randatk == 1) {
selects._x = _root.game.cas.ds3._x;
selects._y = _root.game.cas.ds3._y + 20;
selects.gotoAndStop(2);
selects.hpbase._alpha = 100;
selects.dir = 0;
selects._xscale = 100;
selects.hpbase._xscale = 100;
selects.lev = 2;
}
}
if ((selects.exit._currentframe == 17) && (selects.lev == 2)) {
randatk = Math.floor(Math.random() * 2);
if (randatk == 0) {
selects._x = _root.game.cas.ds5._x;
selects._y = _root.game.cas.ds5._y + 20;
selects.gotoAndStop(2);
selects.hpbase._alpha = 100;
selects.dir = 1;
selects._xscale = -100;
selects.hpbase._xscale = -100;
selects.lev = 3;
}
if (randatk == 1) {
selects._x = _root.game.cas.ds6._x;
selects._y = _root.game.cas.ds6._y + 20;
selects.gotoAndStop(2);
selects.hpbase._alpha = 100;
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.cas.ds8._x;
selects._y = _root.game.cas.ds8._y + 20;
selects.gotoAndStop(2);
selects.hpbase._alpha = 100;
selects.dir = 1;
selects._xscale = -100;
selects.hpbase._xscale = -100;
selects.lev = 4;
}
}
if (level == 8) {
if ((selects.exit._currentframe == 17) && (selects.lev == 1)) {
randatk = Math.floor(Math.random() * 4);
if (randatk == 0) {
selects._x = _root.game.cas.ds2._x;
selects._y = _root.game.cas.ds2._y + 20;
selects.gotoAndStop(2);
selects.hpbase._alpha = 100;
selects.dir = 1;
selects._xscale = -100;
selects.hpbase._xscale = -100;
selects.lev = 2;
}
if (randatk == 1) {
selects._x = _root.game.cas.ds4._x;
selects._y = _root.game.cas.ds4._y + 20;
selects.gotoAndStop(2);
selects.hpbase._alpha = 100;
selects.dir = 0;
selects._xscale = 100;
selects.hpbase._xscale = 100;
selects.lev = 2;
}
if (randatk == 2) {
selects._x = _root.game.cas.ds3._x;
selects._y = _root.game.cas.ds3._y + 20;
selects.gotoAndStop(2);
selects.hpbase._alpha = 100;
selects.dir = 1;
selects._xscale = -100;
selects.hpbase._xscale = -100;
selects.lev = 3;
}
if (randatk == 3) {
selects._x = _root.game.cas.ds5._x;
selects._y = _root.game.cas.ds5._y + 20;
selects.gotoAndStop(2);
selects.hpbase._alpha = 100;
selects.dir = 0;
selects._xscale = 100;
selects.hpbase._xscale = 100;
selects.lev = 3;
}
}
if (((selects.exit._currentframe == 17) && (selects.lev == 2)) || ((selects.exit._currentframe == 17) && (selects.lev == 3))) {
selects._x = _root.game.cas.ds8._x;
selects._y = _root.game.cas.ds8._y + 20;
selects.gotoAndStop(2);
selects.hpbase._alpha = 100;
selects.dir = 1;
selects._xscale = -100;
selects.hpbase._xscale = -100;
selects.lev = 4;
}
}
}
if ((((level >= 0) && (level <= 4)) || (level == 7)) || (level == 5)) {
if (((selects._x >= (_root.game.cas.ds1._x - 5)) && (selects._x <= (_root.game.cas.ds1._x + 5))) && (selects.lev == 1)) {
selects._x = _root.game.cas.ds1._x;
selects.gotoAndStop(4);
if ((tutosec == 3) && (magtuto == false)) {
_root.game.tutoc.gotoAndStop(4);
tutosec = 3.5;
magtuto = true;
secnum = 0;
}
}
if (((selects._x >= (_root.game.cas.ds3._x - 5)) && (selects._x <= (_root.game.cas.ds3._x + 5))) && (selects.lev == 2)) {
selects._x = _root.game.cas.ds3._x;
selects.gotoAndStop(4);
}
if (((selects._x >= (_root.game.cas.ds5._x - 5)) && (selects._x <= (_root.game.cas.ds5._x + 5))) && (selects.lev == 3)) {
selects._x = _root.game.cas.ds5._x;
selects.gotoAndStop(4);
}
}
if (level == 6) {
if (((selects._x >= (_root.game.cas.ds1._x - 5)) && (selects._x <= (_root.game.cas.ds1._x + 5))) && (selects.lev == 1)) {
selects._x = _root.game.cas.ds1._x;
selects.gotoAndStop(4);
}
if (((selects._x >= (_root.game.cas.ds4._x - 5)) && (selects._x <= (_root.game.cas.ds4._x + 5))) && (selects.lev == 2)) {
selects._x = _root.game.cas.ds4._x;
selects.gotoAndStop(4);
}
if (((selects._x >= (_root.game.cas.ds7._x - 5)) && (selects._x <= (_root.game.cas.ds7._x + 5))) && (selects.lev == 3)) {
selects._x = _root.game.cas.ds7._x;
selects.gotoAndStop(4);
}
}
if (level == 8) {
if (((selects._x >= (_root.game.cas.ds1._x - 5)) && (selects._x <= (_root.game.cas.ds1._x + 5))) && (selects.lev == 1)) {
selects._x = _root.game.cas.ds1._x;
selects.gotoAndStop(4);
}
if (((selects._x >= (_root.game.cas.ds6._x - 5)) && (selects._x <= (_root.game.cas.ds6._x + 5))) && (selects.lev == 2)) {
selects._x = _root.game.cas.ds6._x;
selects.gotoAndStop(4);
}
if (((selects._x >= (_root.game.cas.ds7._x - 5)) && (selects._x <= (_root.game.cas.ds7._x + 5))) && (selects.lev == 3)) {
selects._x = _root.game.cas.ds7._x;
selects.gotoAndStop(4);
}
}
s++;
}
}
}
function bulletmoves() {
p = 0;
while (p < bulletlist.length) {
bulls = _root.game[bulletlist[p]];
if (bulls.exist != 1) {
bulletlist.splice(p, 1);
}
if ((((((bulls.types == 1) || (bulls.types == 2)) || (bulls.types == 4)) || (bulls.types == 5)) || (bulls.types == 7)) || (bulls.types == 8)) {
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[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();
}
}
if (((((((bulls.types == 1) || (bulls.types == 2)) || (bulls.types == 4)) || (bulls.types == 5)) || (bulls.types == 6)) || (bulls.types == 7)) || (bulls.types == 8)) {
if (((bulls.dir == 0) && (bulls._x < -10)) && (bulls._y > 250)) {
bulls.removeMovieClip();
}
if (((bulls.dir == 0) && (bulls._x < 90)) && (bulls._y <= 250)) {
bulls.removeMovieClip();
}
if ((bulls.dir == 1) && (bulls._x > 395)) {
bulls.removeMovieClip();
}
}
f = 0;
while (f < soldierlist.length) {
soldierbc = _root.game[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();
}
}
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();
}
}
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();
}
}
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;
}
}
}
if (bulls.types == 7) {
if (((distalx < 10) && (distaly < 30)) && (bulls.exist == 1)) {
soldierbc.hp = soldierbc.hp - bulls.dmg;
bulls.exist = 0;
bulls.removeMovieClip();
}
}
if (bulls.types == 8) {
if (((distalx < 10) && (distaly < 30)) && (bulls.exist == 1)) {
soldierbc.hp = soldierbc.hp - bulls.dmg;
bulls.exist = 0;
soldierbc.froze = 1;
bulls.removeMovieClip();
}
}
f++;
}
p++;
}
}
function monstermove() {
r = 0;
while (r < creaturelist.length) {
selectc = _root.game[creaturelist[r]];
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, _y:selectc._y - 11, 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++;
generals.planti.start(0, 1);
}
if (((selectc.lv == 1) && (selectc.dir == 1)) && (selectc.atktempo == 1)) {
_root.game.attachMovie("spellet", "bullet" + deepb, deepb, {_x:selectc._x + 8, _y:selectc._y - 11, 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++;
generals.planti.start(0, 1);
}
if ((((selectc.lv == 2) && (selectc.dir == 0)) && (selectc.atktempo == 2)) && (selectc.attack._currentframe == 6)) {
randatk = Math.floor(Math.random() * 2);
if (randatk == 0) {
masatk = 1;
}
if (randatk == 1) {
masatk = 3;
}
_root.game.attachMovie("spellet", "bullet" + deepb, deepb, {_x:selectc._x - 13, _y:selectc._y - 13, exist:1, types:1, dir:selectc.dir, dmg:selectc.atk * masatk});
if (randatk == 0) {
_root.game["bullet" + deepb].gotoAndStop(2);
}
if (randatk == 1) {
_root.game["bullet" + deepb].gotoAndStop(3);
}
bulletlist.push("bullet" + deepb);
deepb++;
selectc.atktempo = 1;
selectc.xp++;
generals.planti.start(0, 1);
}
if ((((selectc.lv == 2) && (selectc.dir == 1)) && (selectc.atktempo == 2)) && (selectc.attack._currentframe == 6)) {
randatk = Math.floor(Math.random() * 2);
if (randatk == 0) {
masatk = 1;
}
if (randatk == 1) {
masatk = 3;
}
_root.game.attachMovie("spellet", "bullet" + deepb, deepb, {_x:selectc._x + 13, _y:selectc._y - 13, exist:1, types:1, dir:selectc.dir, dmg:selectc.atk * masatk});
if (randatk == 0) {
_root.game["bullet" + deepb].gotoAndStop(2);
}
if (randatk == 1) {
_root.game["bullet" + deepb].gotoAndStop(3);
}
bulletlist.push("bullet" + deepb);
deepb++;
selectc.atktempo = 1;
selectc.xp++;
generals.planti.start(0, 1);
}
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++;
generals.planti.start(0, 1);
}
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++;
generals.planti.start(0, 1);
}
}
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);
}
if (selectc.lv == 2) {
selectc.gotoAndStop(11);
}
if (selectc.lv == 3) {
selectc.gotoAndStop(16);
}
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;
}
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;
}
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;
}
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++;
}
}
if (selectc.typec == 8) {
if ((((selectc.lv == 3) && (selectc.dir == 0)) && (selectc.atktempo == 0)) && (selectc.attack._currentframe == 10)) {
_root.game.attachMovie("fireball", "bullet" + deepb, deepb, {_x:selectc._x - 8, _y:selectc._y - 11, exist:1, types:7, dir:selectc.dir, dmg:selectc.atk * 4});
_root.game["bullet" + deepb].gotoAndStop(2);
bulletlist.push("bullet" + deepb);
deepb++;
selectc.atktempo = 0;
}
if ((((selectc.lv == 3) && (selectc.dir == 1)) && (selectc.atktempo == 0)) && (selectc.attack._currentframe == 10)) {
_root.game.attachMovie("fireball", "bullet" + deepb, deepb, {_x:selectc._x + 8, _y:selectc._y - 11, exist:1, types:7, dir:selectc.dir, dmg:selectc.atk * 4});
_root.game["bullet" + deepb].gotoAndStop(2);
_root.game["bullet" + deepb]._xscale = -100;
bulletlist.push("bullet" + deepb);
deepb++;
selectc.atktempo = 0;
}
if ((((selectc.lv == 3) && (selectc.dir == 0)) && (selectc.atktempo == 1)) && (selectc.attack._currentframe == 10)) {
_root.game.attachMovie("fireball", "bullet" + deepb, deepb, {_x:selectc._x - 8, _y:selectc._y - 11, exist:1, types:8, dir:selectc.dir, dmg:selectc.atk});
_root.game["bullet" + deepb].gotoAndStop(3);
bulletlist.push("bullet" + deepb);
deepb++;
selectc.atktempo = 0;
}
if ((((selectc.lv == 3) && (selectc.dir == 1)) && (selectc.atktempo == 1)) && (selectc.attack._currentframe == 10)) {
_root.game.attachMovie("fireball", "bullet" + deepb, deepb, {_x:selectc._x + 8, _y:selectc._y - 11, exist:1, types:8, dir:selectc.dir, dmg:selectc.atk});
_root.game["bullet" + deepb].gotoAndStop(3);
_root.game["bullet" + deepb]._xscale = -100;
bulletlist.push("bullet" + deepb);
deepb++;
selectc.atktempo = 0;
}
}
t = 0;
while (t < soldierlist.length) {
soldierbc = _root.game[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[selectc.objtar];
if (attackcheck.exist != 1) {
if (selectc.frozen == 0) {
selectc.objtar = 0;
selectc.obj = 0;
}
}
if (soldierbc.dir == 0) {
if (((((soldierbc.types == 5) && (distalx < 10)) && (distaly < 30)) && (soldierbc._x < selectc._x)) && (soldierbc.special == 0)) {
soldierbc.special = 1;
selectc.objtar = soldierbc._name;
soldierbc.gotoAndStop(6);
}
if (((((soldierbc.types == 5) && (distalx < 10)) && (distaly < 30)) && (soldierbc.killhim == 1)) && (soldierbc._x < selectc._x)) {
soldierbc.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 - selectc.atk;
}
_root.game.cas[selectc.zone].gotoAndStop(2);
selectc.removeMovieClip();
creaturelist.splice(r, 1);
}
if (((((((soldierbc.types == 8) && (distalx < 25)) && (distaly < 30)) && (soldierbc._x < selectc._x)) && (soldierbc.special == 0)) && (selectc.obj == 0)) && (soldierbc.froze == 0)) {
soldierbc.special = 1;
selectc.obj = 1;
selectc.objtar = selects._name;
soldierbc.gotoAndStop(6);
}
if (((((soldierbc.types == 8) && (distalx < 25)) && (distaly < 30)) && (soldierbc.killhim == 1)) && (soldierbc._x < selectc._x)) {
soldierbc.killhim = 0;
selectc.frozen = 1;
}
}
if (soldierbc.dir == 1) {
if (((((soldierbc.types == 5) && (distalx < 10)) && (distaly < 30)) && (soldierbc._x > selectc._x)) && (soldierbc.special == 0)) {
soldierbc.special = 1;
selectc.objtar = soldierbc._name;
soldierbc.gotoAndStop(6);
}
if (((((soldierbc.types == 5) && (distalx < 10)) && (distaly < 30)) && (soldierbc.killhim == 1)) && (soldierbc._x > selectc._x)) {
soldierbc.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 - selectc.atk;
}
_root.game.cas[selectc.zone].gotoAndStop(1);
selectc.removeMovieClip();
creaturelist.splice(r, 1);
}
if (((((((soldierbc.types == 8) && (distalx < 25)) && (distaly < 30)) && (soldierbc._x > selectc._x)) && (soldierbc.special == 0)) && (selectc.obj == 0)) && (soldierbc.froze == 0)) {
soldierbc.special = 1;
selectc.obj = 1;
selectc.objtar = selects._name;
soldierbc.gotoAndStop(6);
}
if (((((soldierbc.types == 8) && (distalx < 25)) && (distaly < 30)) && (soldierbc.killhim == 1)) && (soldierbc._x > selectc._x)) {
soldierbc.killhim = 0;
selectc.frozen = 1;
}
}
if (((selectc.frozen == 0) && (selectc.transfo == 0)) && (selectc.hike != 1)) {
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++;
generals.cala.start(0, 1);
}
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++;
generals.cala.start(0, 1);
}
if (((((selectc.lv == 2) && (distalx < 20)) && (distaly < 30)) && (selectc.dir == 0)) && (soldierbc._x < selectc._x)) {
selectc._xscale = 100;
selectc.star._xscale = 100;
selectc.gotoAndStop(7);
}
if (((((selectc.lv == 2) && (distalx < 20)) && (distaly < 30)) && (selectc.dir == 0)) && (soldierbc._x > selectc._x)) {
selectc._xscale = -100;
selectc.star._xscale = -100;
selectc.gotoAndStop(7);
}
if (((((selectc.lv == 2) && (distalx < 20)) && (distaly < 30)) && (selectc.dir == 1)) && (soldierbc._x > selectc._x)) {
selectc._xscale = -100;
selectc.star._xscale = -100;
selectc.gotoAndStop(7);
}
if (((((selectc.lv == 2) && (distalx < 20)) && (distaly < 30)) && (selectc.dir == 1)) && (soldierbc._x < selectc._x)) {
selectc._xscale = 100;
selectc.star._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++;
generals.cala.start(0, 1);
}
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++;
generals.cala.start(0, 1);
}
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++;
generals.cala.start(0, 1);
}
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++;
generals.cala.start(0, 1);
}
if (((((selectc.lv == 3) && (distalx < 40)) && (distaly < 30)) && (selectc.dir == 0)) && (soldierbc._x < selectc._x)) {
selectc._xscale = 100;
selectc.star._xscale = 100;
selectc.gotoAndStop(10);
}
if (((((selectc.lv == 3) && (distalx < 40)) && (distaly < 30)) && (selectc.dir == 0)) && (soldierbc._x > selectc._x)) {
selectc._xscale = -100;
selectc.star._xscale = -100;
selectc.gotoAndStop(10);
}
if (((((selectc.lv == 3) && (distalx < 40)) && (distaly < 30)) && (selectc.dir == 1)) && (soldierbc._x > selectc._x)) {
selectc._xscale = -100;
selectc.star._xscale = -100;
selectc.gotoAndStop(10);
}
if (((((selectc.lv == 3) && (distalx < 40)) && (distaly < 30)) && (selectc.dir == 1)) && (soldierbc._x < selectc._x)) {
selectc._xscale = 100;
selectc.star._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)) && (soldierbc.slowt <= 0)) {
soldierbc.slowt = selectc.atk * 10;
soldierbc.slow = selectc.atk;
soldierbc.slimy.gotoAndStop(2);
selectc.xp++;
}
if ((((selectc.lv == 2) && (distalx < 25)) && (distaly < 30)) && (soldierbc.slowt <= 0)) {
soldierbc.slowt = selectc.atk * 10;
soldierbc.slow = selectc.atk;
soldierbc.slimy.gotoAndStop(2);
selectc.xp++;
}
if ((((selectc.lv == 3) && (distalx < 25)) && (distaly < 30)) && (soldierbc.slowt <= 0)) {
soldierbc.slowt = selectc.atk * 10;
soldierbc.slow = selectc.atk;
soldierbc.slimy.gotoAndStop(3);
selectc.xp++;
}
}
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)) && (soldierbc.hike != 1)) {
if ((selectc.stopu == 0) && (selectc.calm == 0)) {
selectc.gotoAndStop(4);
selectc.atktempo = selectc.atk * 12;
selectc.stopu = 1;
}
if ((selectc.stopu == 1) && (soldierbc.stopu <= 0)) {
soldierbc.stopu = selectc.atktempo;
}
}
if ((((((selectc.lv == 1) && (distalx < 30)) && (distaly < 30)) && (selectc.dir == 1)) && (soldierbc._x > selectc._x)) && (soldierbc.hike != 1)) {
if ((selectc.stopu == 0) && (selectc.calm == 0)) {
selectc.gotoAndStop(4);
selectc.atktempo = selectc.atk * 12;
selectc.stopu = 1;
}
if ((selectc.stopu == 1) && (soldierbc.stopu <= 0)) {
soldierbc.stopu = selectc.atktempo;
}
}
if ((((((selectc.lv == 2) && (distalx < 30)) && (distaly < 30)) && (selectc.dir == 0)) && (soldierbc._x < selectc._x)) && (soldierbc.hike != 1)) {
if ((selectc.stopu == 0) && (selectc.calm == 0)) {
selectc.gotoAndStop(9);
selectc.atktempo = selectc.atk * 12;
selectc.stopu = 1;
}
if ((selectc.stopu == 1) && (soldierbc.stopu <= 0)) {
soldierbc.stopu = selectc.atktempo;
}
}
if ((((((selectc.lv == 2) && (distalx < 30)) && (distaly < 30)) && (selectc.dir == 1)) && (soldierbc._x > selectc._x)) && (soldierbc.hike != 1)) {
if ((selectc.stopu == 0) && (selectc.calm == 0)) {
selectc.gotoAndStop(9);
selectc.atktempo = selectc.atk * 12;
selectc.stopu = 1;
}
if ((selectc.stopu == 1) && (soldierbc.stopu <= 0)) {
soldierbc.stopu = selectc.atktempo;
}
}
if ((((((selectc.lv == 3) && (distalx < 30)) && (distaly < 30)) && (selectc.dir == 0)) && (soldierbc._x < selectc._x)) && (soldierbc.hike != 1)) {
if ((selectc.stopu == 0) && (selectc.calm == 0)) {
selectc.gotoAndStop(14);
selectc.atktempo = selectc.atk * 12;
selectc.stopu = 1;
}
if ((selectc.stopu == 1) && (soldierbc.stopu <= 0)) {
soldierbc.stopu = selectc.atktempo;
}
}
if ((((((selectc.lv == 3) && (distalx < 30)) && (distaly < 30)) && (selectc.dir == 1)) && (soldierbc._x > selectc._x)) && (soldierbc.hike != 1)) {
if ((selectc.stopu == 0) && (selectc.calm == 0)) {
selectc.gotoAndStop(14);
selectc.atktempo = selectc.atk * 12;
selectc.stopu = 1;
}
if ((selectc.stopu == 1) && (soldierbc.stopu <= 0)) {
soldierbc.stopu = selectc.atktempo;
}
}
}
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)) {
randatk = Math.floor(Math.random() * 4);
if (((randatk == 0) || (randatk == 1)) || (randatk == 2)) {
selectc.gotoAndStop(7);
}
if (randatk == 3) {
selectc.gotoAndStop(8);
}
}
if (((((((selectc.lv == 2) && (distalx < 45)) && (distaly < 35)) && (selectc.dir == 1)) && (soldierbc._x > selectc._x)) && (selectc._currentframe != 7)) && (selectc._currentframe != 8)) {
randatk = Math.floor(Math.random() * 4);
if (((randatk == 0) || (randatk == 1)) || (randatk == 2)) {
selectc.gotoAndStop(7);
}
if (randatk == 3) {
selectc.gotoAndStop(8);
}
}
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;
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;
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 == 3) && (distalx < 200)) && (distaly < 35)) && (selectc.dir == 0)) && (soldierbc._x < selectc._x)) && (selectc._currentframe != 11)) && (selectc._currentframe != 12)) {
randatk = Math.floor(Math.random() * 4);
if (((randatk == 0) || (randatk == 1)) || (randatk == 2)) {
selectc.gotoAndStop(11);
selectc.xp++;
}
if (randatk == 3) {
selectc.gotoAndStop(12);
selectc.atktempo = 1;
selectc.xp++;
}
}
if (((((((selectc.lv == 3) && (distalx < 200)) && (distaly < 35)) && (selectc.dir == 1)) && (soldierbc._x > selectc._x)) && (selectc._currentframe != 11)) && (selectc._currentframe != 12)) {
randatk = Math.floor(Math.random() * 4);
if (((randatk == 0) || (randatk == 1)) || (randatk == 2)) {
selectc.gotoAndStop(11);
selectc.xp++;
}
if (randatk == 3) {
selectc.gotoAndStop(12);
selectc.atktempo = 1;
selectc.xp++;
}
}
}
}
t++;
}
r++;
}
}
function bloody() {
k = 0;
while (k < bloodlist.length) {
selectr = _root.game[bloodlist[k]];
if (selectr.exist != 1) {
bloodlist.splice(k, 1);
}
if (selectr.splashy._currentframe == 6) {
selectr.removeMovieClip();
}
k++;
}
}
function adchiv() {
if ((adchivement[0] == 0) && (doad[0] >= 10)) {
adchivement[0] = 1;
_root.game.trofeos.gotoAndStop(2);
}
if ((adchivement[1] == 0) && (doad[1] >= 10)) {
adchivement[1] = 1;
_root.game.trofeos.gotoAndStop(3);
}
if ((adchivement[2] == 0) && (doad[2] >= 10)) {
adchivement[2] = 1;
_root.game.trofeos.gotoAndStop(4);
}
if ((adchivement[3] == 0) && (doad[3] >= 10)) {
adchivement[3] = 1;
_root.game.trofeos.gotoAndStop(5);
}
if ((adchivement[4] == 0) && (doad[4] >= 10)) {
adchivement[4] = 1;
_root.game.trofeos.gotoAndStop(6);
}
if ((adchivement[5] == 0) && (doad[5] >= 10)) {
adchivement[5] = 1;
_root.game.trofeos.gotoAndStop(7);
}
if ((adchivement[6] == 0) && (doad[6] >= 10)) {
adchivement[6] = 1;
_root.game.trofeos.gotoAndStop(8);
}
if ((adchivement[7] == 0) && (doad[7] >= 10)) {
adchivement[7] = 1;
_root.game.trofeos.gotoAndStop(9);
}
if ((adchivement[8] == 0) && (doad[8] >= 10)) {
adchivement[8] = 1;
_root.game.trofeos.gotoAndStop(10);
}
if ((adchivement[9] == 0) && (doad[9] >= 10)) {
adchivement[9] = 1;
_root.game.trofeos.gotoAndStop(11);
}
if ((adchivement[10] == 0) && (doad[10] >= 10)) {
adchivement[10] = 1;
_root.game.trofeos.gotoAndStop(12);
}
if ((adchivement[11] == 0) && (doad[11] >= 10)) {
adchivement[11] = 1;
_root.game.trofeos.gotoAndStop(13);
}
if ((adchivement[12] == 0) && (doad[12] >= 10)) {
adchivement[12] = 1;
_root.game.trofeos.gotoAndStop(14);
}
if ((adchivement[13] == 0) && (doad[13] >= 10)) {
adchivement[13] = 1;
_root.game.trofeos.gotoAndStop(15);
}
if ((adchivement[14] == 0) && (doad[14] >= 10)) {
adchivement[14] = 1;
_root.game.trofeos.gotoAndStop(16);
}
if ((adchivement[15] == 0) && (doad[15] >= 10)) {
adchivement[15] = 1;
_root.game.trofeos.gotoAndStop(17);
}
if ((adchivement[16] == 0) && (doad[16] >= 10)) {
adchivement[16] = 1;
_root.game.trofeos.gotoAndStop(18);
}
if ((adchivement[17] == 0) && (doad[17] >= 10)) {
adchivement[17] = 1;
_root.game.trofeos.gotoAndStop(19);
}
if ((adchivement[18] == 0) && (doad[18] >= 10)) {
adchivement[18] = 1;
_root.game.trofeos.gotoAndStop(20);
}
if ((adchivement[19] == 0) && (doad[19] >= 10)) {
adchivement[19] = 1;
_root.game.trofeos.gotoAndStop(21);
}
if ((adchivement[20] == 0) && (doad[20] >= 10)) {
adchivement[20] = 1;
_root.game.trofeos.gotoAndStop(22);
}
if ((adchivement[21] == 0) && (doad[21] >= 10)) {
adchivement[21] = 1;
_root.game.trofeos.gotoAndStop(23);
}
if ((adchivement[22] == 0) && (doad[22] >= 10)) {
adchivement[22] = 1;
_root.game.trofeos.gotoAndStop(24);
}
if ((adchivement[23] == 0) && (doad[23] >= 10)) {
adchivement[23] = 1;
_root.game.trofeos.gotoAndStop(25);
}
if ((adchivement[24] == 0) && (doad[24] >= 100)) {
adchivement[24] = 1;
_root.game.trofeos.gotoAndStop(26);
}
if ((adchivement[25] == 0) && (doad[25] >= 100)) {
adchivement[25] = 1;
_root.game.trofeos.gotoAndStop(27);
}
if ((adchivement[26] == 0) && (doad[26] >= 100)) {
adchivement[26] = 1;
_root.game.trofeos.gotoAndStop(28);
}
if ((adchivement[27] == 0) && (doad[27] >= 100)) {
adchivement[27] = 1;
_root.game.trofeos.gotoAndStop(29);
}
if ((adchivement[28] == 0) && (doad[28] >= 100)) {
adchivement[28] = 1;
_root.game.trofeos.gotoAndStop(30);
}
if ((adchivement[29] == 0) && (doad[29] >= 100)) {
adchivement[29] = 1;
_root.game.trofeos.gotoAndStop(31);
}
if ((adchivement[30] == 0) && (doad[30] >= 100)) {
adchivement[30] = 1;
_root.game.trofeos.gotoAndStop(32);
}
if ((adchivement[31] == 0) && (doad[31] >= 100)) {
adchivement[31] = 1;
_root.game.trofeos.gotoAndStop(33);
}
if ((adchivement[32] == 0) && (doad[32] >= 100)) {
adchivement[32] = 1;
_root.game.trofeos.gotoAndStop(34);
}
}
stop();
generals = new Sound();
generals.music1 = new Sound(_root.masa);
generals.music1.attachSound("playg");
generals.music1.start(0, 999);
generals.tra = new Sound(_root.game.s1);
generals.tra.attachSound("tran");
generals.tra.setVolume(40);
generals.cam = new Sound(_root.game.s2);
generals.cam.attachSound("camp");
generals.cam.setVolume(120);
generals.victo = new Sound(_root.game.s3);
generals.victo.attachSound("victos");
generals.victo.setVolume(100);
generals.gove = new Sound(_root.game.s4);
generals.gove.attachSound("gover");
generals.gove.setVolume(100);
generals.cala = new Sound(_root.game.s5);
generals.cala.attachSound("calaca");
generals.cala.setVolume(50);
generals.planti = new Sound(_root.game.s6);
generals.planti.attachSound("planty");
generals.planti.setVolume(20);
generals.ende = new Sound(_root.game.s7);
generals.ende.attachSound("endet");
generals.ende.setVolume(30);
generals.wasp = new Sound(_root.game.s8);
generals.wasp.attachSound("wasps");
generals.wasp.setVolume(50);
generals.drago = new Sound(_root.game.s9);
generals.drago.attachSound("dragons");
generals.drago.setVolume(40);
generals.clic = new Sound(_root.game.s10);
generals.clic.attachSound("clicks");
generals.clic.setVolume(100);
generals.mondet = new Sound(_root.game.s11);
generals.mondet.attachSound("mondets");
generals.mondet.setVolume(50);
generals.adch = new Sound(_root.game.s12);
generals.adch.attachSound("adchis");
generals.adch.setVolume(50);
generals.explot = new Sound(_root.game.s13);
generals.explot.attachSound("exploti");
generals.explot.setVolume(50);
generals.firemm = new Sound(_root.game.s14);
generals.firemm.attachSound("firemmm");
generals.firemm.setVolume(50);
generals.icemm = new Sound(_root.game.s15);
generals.icemm.attachSound("icemmm");
generals.icemm.setVolume(50);
generals.slimemm = new Sound(_root.game.s16);
generals.slimemm.attachSound("slimemmm");
generals.slimemm.setVolume(50);
local_data = SharedObject.getLocal("MCD_datatemp");
var bones = local_data.data.bones;
var soldierbox = local_data.data.soldierbox;
var doad = local_data.data.doad;
var adchivement = local_data.data.adchivement;
var tombhold = local_data.data.tombhold;
var sumonlist = local_data.data.sumonlist;
var level = local_data.data.level;
var difficulty = local_data.data.difficulty;
var tombusing = "";
var monusing = "";
var hpqueen = 4;
var soldierwave = 1;
var deep = 100000;
var deeps = 300000;
var deepb = 500000;
var deepr = 700000;
var nextwavec = 200;
var keysecondss = 0;
var numsoldier = 0;
var bonusbones = 0;
var magict = 1200;
var enkilled = 0;
var tutosec = 0;
var secnum = 0;
var magtuto = false;
var magicused = false;
var victory = false;
var gameover = false;
var wavedeath = true;
var onthing = false;
var selectmagic = false;
var selecttomb = false;
var selectmons = false;
var atkbs = false;
var upgbs = false;
var sellbs = false;
var soldierlist = new Array();
var bulletlist = new Array();
var creaturelist = new Array();
var bloodlist = new Array();
var creaturelist = new Array();
var invers = new Array();
var mute = local_data.data.mute;
if (mute == 0) {
nowSound.setVolume(100);
_root.game.muteb.gotoAndStop(1);
}
if (mute == 1) {
nowSound.setVolume(0);
_root.game.muteb.gotoAndStop(2);
}
_root.game.tutoc.swapDepths(800006);
_root.game.gameov.swapDepths(800005);
_root.game.victo.swapDepths(800004);
_root.game.monmenu.swapDepths(800003);
_root.game.tmenu.swapDepths(800002);
_root.game.puertam.swapDepths(800001);
_root.game.magicm.swapDepths(800000);
startgame();
_root.game.onEnterFrame = function () {
numobj();
if (magtuto == false) {
monsters();
monstermove();
soldiers();
bulletmoves();
}
checktombs();
activet();
adchiv();
if (_root.cortiout._currentframe == 17) {
stopAllSounds();
gotoAndStop (47);
}
_root.game.skipb.onPress = function () {
if (_root.cortiout._currentframe == 1) {
generals.clic.start(0, 1);
_root.cortiout.gotoAndPlay(2);
}
};
};
Frame 51
local_data = SharedObject.getLocal("MCD_datatemp");
var level = local_data.data.level;
var difficulty = local_data.data.difficulty;
if (level == 1) {
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, 11, 11, 11, 0], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 0], [1, 1, 11, 11, 2, 2, 11, 2, 2, 11, 11, 11, 11, 11, 11, 11, 2, 2, 2, 0], [11, 11, 11, 11, 11, 11, 11, 3, 3, 2, 2, 2, 2, 2, 2, 0]];
local_data.data.soldierbox = soldierbox;
local_data.data.tombhold = ["ss9", "ss10", "ss11", "ss12", "ss13", "ss14", "ss15", "ss16", "ss17", "ss18", "ss19", "ss20", "ss21", "ss22", "ss23", "ss24", "ss25", "ss26", "ss27", "ss28", "ss29", "ss30"];
local_data.data.sumonlist = ["ss1", "ss2", "ss3", "ss4", "ss5", "ss6", "ss7", "ss8"];
}
if (difficulty == 2) {
soldierbox = [[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, 1, 1, 1, 11, 11, 11, 11, 0], [1, 1, 1, 1, 1, 1, 1, 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]];
local_data.data.soldierbox = soldierbox;
local_data.data.tombhold = ["ss7", "ss8", "ss1", "ss2", "ss9", "ss10", "ss11", "ss12", "ss13", "ss14", "ss15", "ss16", "ss17", "ss18", "ss19", "ss20", "ss21", "ss22", "ss23", "ss24", "ss25", "ss26", "ss27", "ss28", "ss29", "ss30"];
local_data.data.sumonlist = ["ss3", "ss4", "ss5", "ss6"];
}
if (difficulty == 3) {
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, 1, 1, 1, 1, 1, 1, 11, 11, 11, 0], [1, 1, 1, 1, 1, 1, 1, 1, 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, 3, 3, 3, 3, 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], [3, 3, 3, 3, 11, 7, 11, 7, 11, 7, 11, 7, 11, 7, 0], [3, 3, 3, 13, 12, 12, 12, 12, 11, 11, 11, 7, 7, 7, 5, 11, 11, 11, 5, 11, 11, 5, 0], [11, 11, 11, 11, 5, 3, 3, 13, 13, 12, 12, 12, 9, 9, 9, 0]];
local_data.data.soldierbox = soldierbox;
local_data.data.tombhold = ["ss6", "ss3", "ss7", "ss8", "ss1", "ss2", "ss9", "ss10", "ss11", "ss12", "ss13", "ss14", "ss15", "ss16", "ss17", "ss18", "ss19", "ss20", "ss21", "ss22", "ss23", "ss24", "ss25", "ss26", "ss27", "ss28", "ss29", "ss30"];
local_data.data.sumonlist = ["ss4", "ss5"];
}
}
if (level == 2) {
if (difficulty == 1) {
soldierbox = [[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, 1, 1, 1, 1, 1, 1, 1, 11, 11, 11, 11, 0], [1, 1, 1, 1, 1, 1, 1, 1, 11, 11, 11, 11, 11, 11, 2, 2, 2, 11, 11, 11, 11, 2, 2, 2, 0], [11, 11, 11, 11, 2, 2, 2, 2, 11, 11, 11, 11, 11, 2, 2, 0], [11, 11, 11, 2, 2, 2, 2, 11, 11, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 0]];
local_data.data.soldierbox = soldierbox;
local_data.data.tombhold = ["ss9", "ss10", "ss11", "ss12", "ss13", "ss14", "ss15", "ss16", "ss17", "ss18", "ss19", "ss20", "ss21", "ss22", "ss23", "ss24", "ss25", "ss26", "ss27", "ss28", "ss29", "ss30"];
local_data.data.sumonlist = ["ss1", "ss2", "ss3", "ss4", "ss5", "ss6", "ss7", "ss8"];
}
if (difficulty == 2) {
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, 1, 1, 1, 1, 11, 11, 11, 11, 11, 11, 0], [1, 1, 1, 1, 1, 1, 1, 1, 11, 11, 11, 11, 1, 1, 1, 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]];
local_data.data.soldierbox = soldierbox;
local_data.data.tombhold = ["ss7", "ss8", "ss1", "ss2", "ss9", "ss10", "ss11", "ss12", "ss13", "ss14", "ss15", "ss16", "ss17", "ss18", "ss19", "ss20", "ss21", "ss22", "ss23", "ss24", "ss25", "ss26", "ss27", "ss28", "ss29", "ss30"];
local_data.data.sumonlist = ["ss3", "ss4", "ss5", "ss6"];
}
if (difficulty == 3) {
soldierbox = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 11, 11, 11, 11, 0], [1, 1, 1, 1, 1, 1, 1, 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, 3, 3, 8, 8, 2, 2, 2, 2, 2, 11, 11, 11, 11, 11, 11, 0], [5, 6, 6, 6, 6, 5, 2, 2, 2, 2, 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, 11, 11, 11, 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, 11, 11, 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, 15, 16, 17, 18, 0], [8, 8, 8, 8, 8, 8, 8, 8, 8, 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, 23, 23, 23, 21, 21, 21, 0]];
local_data.data.soldierbox = soldierbox;
local_data.data.tombhold = ["ss6", "ss3", "ss7", "ss8", "ss1", "ss2", "ss9", "ss10", "ss11", "ss12", "ss13", "ss14", "ss15", "ss16", "ss17", "ss18", "ss19", "ss20", "ss21", "ss22", "ss23", "ss24", "ss25", "ss26", "ss27", "ss28", "ss29", "ss30"];
local_data.data.sumonlist = ["ss4", "ss5"];
}
}
if (level == 3) {
if (difficulty == 1) {
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, 1, 1, 1, 1, 1, 1, 1, 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, 11, 11, 3, 3, 2, 2, 2, 11, 11, 3, 3, 0], [11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 3, 3, 3, 3, 2, 2, 2, 2, 2, 0], [11, 11, 11, 11, 11, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 11, 11, 11, 11, 11, 0], [11, 11, 11, 11, 11, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 0], [3, 3, 3, 3, 11, 11, 11, 11, 2, 2, 2, 2, 2, 11, 11, 11, 11, 11, 11, 0], [6, 6, 6, 6, 11, 11, 11, 11, 11, 11, 11, 0], [3, 3, 3, 2, 2, 2, 2, 11, 11, 11, 6, 6, 6, 11, 11, 9, 0]];
local_data.data.soldierbox = soldierbox;
local_data.data.tombhold = ["ss9", "ss10", "ss11", "ss12", "ss13", "ss14", "ss15", "ss16", "ss17", "ss18", "ss19", "ss20", "ss21", "ss22", "ss23", "ss24", "ss25", "ss26", "ss27", "ss28", "ss29", "ss30"];
local_data.data.sumonlist = ["ss1", "ss2", "ss3", "ss4", "ss5", "ss6", "ss7", "ss8"];
}
if (difficulty == 2) {
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, 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, 3, 3, 3, 3, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 0], [3, 3, 3, 3, 3, 3, 3, 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, 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]];
local_data.data.soldierbox = soldierbox;
local_data.data.tombhold = ["ss7", "ss8", "ss1", "ss2", "ss9", "ss10", "ss11", "ss12", "ss13", "ss14", "ss15", "ss16", "ss17", "ss18", "ss19", "ss20", "ss21", "ss22", "ss23", "ss24", "ss25", "ss26", "ss27", "ss28", "ss29", "ss30"];
local_data.data.sumonlist = ["ss3", "ss4", "ss5", "ss6"];
}
if (difficulty == 3) {
soldierbox = [[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, 1, 1, 1, 1, 1, 1, 11, 11, 11, 11, 11, 11, 0], [1, 1, 1, 1, 1, 1, 1, 1, 1, 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], [11, 11, 11, 11, 8, 8, 3, 3, 3, 3, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 0], [3, 3, 3, 3, 3, 3, 3, 12, 12, 12, 7, 7, 7, 7, 12, 12, 12, 12, 12, 11, 11, 11, 11, 12, 12, 12, 12, 12, 0], [3, 3, 3, 3, 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, 3, 3, 3, 3, 3, 3, 11, 11, 11, 11, 11, 3, 3, 3, 9, 9, 9, 9, 9, 0], [13, 13, 13, 13, 13, 12, 12, 12, 12, 11, 11, 11, 11, 11, 11, 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, 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]];
local_data.data.soldierbox = soldierbox;
local_data.data.tombhold = ["ss6", "ss3", "ss7", "ss8", "ss1", "ss2", "ss9", "ss10", "ss11", "ss12", "ss13", "ss14", "ss15", "ss16", "ss17", "ss18", "ss19", "ss20", "ss21", "ss22", "ss23", "ss24", "ss25", "ss26", "ss27", "ss28", "ss29", "ss30"];
local_data.data.sumonlist = ["ss4", "ss5"];
}
}
if (level == 4) {
if (difficulty == 1) {
soldierbox = [[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, 1, 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], [11, 11, 11, 11, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 0], [11, 11, 11, 6, 6, 6, 11, 11, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 0], [11, 11, 11, 11, 3, 3, 3, 3, 3, 6, 6, 6, 6, 0], [3, 3, 3, 2, 2, 2, 2, 11, 11, 11, 11, 11, 6, 6, 6, 0], [11, 11, 3, 3, 11, 11, 11, 9, 0], [11, 11, 11, 11, 11, 11, 21, 21, 21, 21, 21, 21, 13, 13, 0], [2, 2, 2, 2, 21, 21, 21, 21, 21, 21, 21, 9, 9, 0]];
local_data.data.soldierbox = soldierbox;
local_data.data.tombhold = ["ss4", "ss9", "ss10", "ss11", "ss12", "ss13", "ss14", "ss15", "ss16", "ss17", "ss18", "ss19", "ss21", "ss22", "ss23", "ss24", "ss25", "ss26", "ss27", "ss28", "ss29", "ss30"];
local_data.data.sumonlist = ["ss1", "ss2", "ss3", "ss5", "ss6", "ss7", "ss8"];
}
if (difficulty == 2) {
soldierbox = [[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, 0], [1, 1, 1, 1, 1, 1, 1, 1, 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], [12, 12, 12, 12, 12, 12, 3, 3, 3, 3, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 0], [3, 3, 3, 3, 3, 3, 3, 12, 12, 12, 12, 12, 12, 12, 12, 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, 12, 12, 12, 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, 17, 17, 17, 17, 20, 20, 20, 16, 16, 16, 16, 0]];
local_data.data.soldierbox = soldierbox;
local_data.data.tombhold = ["ss6", "ss4", "ss7", "ss8", "ss9", "ss10", "ss11", "ss12", "ss13", "ss14", "ss15", "ss16", "ss17", "ss18", "ss19", "ss21", "ss22", "ss23", "ss24", "ss25", "ss26", "ss27", "ss28", "ss29", "ss30"];
local_data.data.sumonlist = ["ss1", "ss2", "ss3", "ss5"];
}
if (difficulty == 3) {
soldierbox = [[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, 1, 1, 11, 11, 11, 11, 11, 11, 0], [1, 1, 1, 1, 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, 3, 3, 3, 3, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 0], [3, 3, 3, 3, 3, 3, 3, 12, 12, 12, 8, 8, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 0], [5, 5, 3, 3, 3, 3, 3, 3, 7, 7, 7, 7, 7, 7, 6, 6, 6, 6, 6, 6, 3, 3, 3, 5, 5, 5, 5, 0], [12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 11, 11, 11, 11, 11, 3, 3, 3, 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, 5, 5, 8, 8, 5, 5, 0], [9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 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, 8, 8, 8, 8, 8, 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], [8, 8, 8, 8, 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, 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]];
local_data.data.soldierbox = soldierbox;
local_data.data.tombhold = ["ss5", "ss4", "ss6", "ss7", "ss8", "ss9", "ss10", "ss11", "ss12", "ss13", "ss14", "ss15", "ss16", "ss17", "ss18", "ss19", "ss21", "ss22", "ss23", "ss24", "ss25", "ss26", "ss27", "ss28", "ss29", "ss30"];
local_data.data.sumonlist = ["ss1", "ss2", "ss3"];
}
}
if (level == 5) {
if (difficulty == 1) {
soldierbox = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 11, 11, 11, 0], [1, 1, 1, 1, 1, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 1, 1, 1, 1, 1, 0], [11, 11, 11, 3, 3, 2, 11, 11, 3, 3, 2, 2, 2, 11, 11, 11, 0], [11, 11, 11, 11, 2, 2, 2, 2, 11, 11, 11, 3, 3, 3, 2, 2, 2, 2, 2, 3, 3, 3, 0], [11, 11, 11, 2, 2, 11, 11, 11, 3, 3, 3, 11, 11, 11, 11, 11, 11, 0], [3, 3, 3, 11, 2, 2, 2, 2, 2, 11, 11, 11, 3, 3, 3, 11, 0], [3, 3, 3, 3, 3, 11, 11, 11, 11, 12, 12, 12, 12, 3, 3, 3, 0], [8, 11, 11, 12, 12, 12, 12, 12, 3, 3, 3, 3, 3, 3, 21, 0], [3, 3, 3, 3, 3, 3, 9, 9, 9, 9, 1, 1, 1, 1, 1, 1, 21, 0]];
local_data.data.soldierbox = soldierbox;
local_data.data.tombhold = ["ss1", "ss2", "ss9", "ss11", "ss12", "ss13", "ss14", "ss15", "ss16", "ss17", "ss18", "ss19", "ss20", "ss21", "ss22", "ss24", "ss25", "ss26", "ss27", "ss28", "ss29", "ss30"];
local_data.data.sumonlist = ["ss3", "ss4", "ss5", "ss6", "ss7", "ss8", "ss10", "ss23"];
}
if (difficulty == 2) {
soldierbox = [[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, 1, 1, 1, 1, 11, 11, 11, 11, 0], [1, 1, 1, 1, 11, 11, 2, 11, 2, 11, 2, 11, 2, 1, 1, 1, 1, 1, 0], [11, 11, 11, 6, 6, 2, 11, 11, 6, 6, 2, 2, 2, 11, 11, 11, 0], [11, 11, 11, 11, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 2, 2, 2, 2, 2, 3, 3, 3, 0], [6, 6, 6, 2, 2, 6, 6, 6, 3, 3, 3, 11, 11, 11, 6, 6, 6, 0], [3, 3, 3, 8, 2, 2, 2, 2, 2, 11, 11, 11, 3, 3, 3, 8, 0], [3, 3, 3, 12, 12, 12, 3, 3, 3, 11, 11, 11, 12, 12, 12, 3, 3, 3, 3, 0], [21, 21, 21, 21, 21, 7, 7, 7, 7, 8, 8, 8, 12, 12, 12, 12, 0], [11, 11, 11, 12, 12, 12, 12, 10, 10, 11, 11, 3, 3, 3, 6, 6, 6, 0], [12, 12, 12, 12, 13, 13, 13, 13, 7, 7, 7, 7, 7, 16, 16, 16, 16, 16, 0], [9, 9, 9, 9, 8, 8, 8, 16, 16, 16, 16, 11, 11, 11, 11, 11, 11, 11, 0], [21, 21, 21, 21, 16, 16, 16, 16, 16, 17, 17, 17, 21, 21, 21, 21, 0], [13, 13, 13, 12, 13, 13, 13, 13, 12, 13, 13, 13, 13, 12, 13, 13, 0], [10, 13, 10, 13, 10, 13, 10, 10, 17, 17, 17, 17, 13, 13, 13, 13, 19, 0]];
local_data.data.soldierbox = soldierbox;
local_data.data.tombhold = ["ss3", "ss4", "ss5", "ss6", "ss1", "ss2", "ss9", "ss11", "ss12", "ss13", "ss14", "ss15", "ss16", "ss17", "ss18", "ss19", "ss20", "ss21", "ss22", "ss24", "ss25", "ss26", "ss27", "ss28", "ss29", "ss30"];
local_data.data.sumonlist = ["ss7", "ss8", "ss10", "ss23"];
}
if (difficulty == 3) {
soldierbox = [[1, 1, 1, 1, 1, 1, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 11, 11, 11, 11, 0], [1, 1, 1, 1, 11, 11, 1, 1, 1, 1, 11, 11, 11, 11, 11, 11, 11, 1, 1, 1, 1, 1, 0], [11, 11, 11, 2, 2, 2, 11, 11, 1, 1, 2, 2, 2, 11, 11, 11, 0], [11, 11, 11, 11, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 2, 2, 2, 2, 2, 3, 3, 3, 0], [6, 6, 6, 2, 2, 6, 6, 6, 3, 3, 3, 11, 11, 11, 6, 6, 6, 0], [3, 3, 3, 8, 2, 2, 2, 2, 2, 11, 11, 11, 3, 3, 3, 8, 0], [3, 3, 3, 12, 12, 12, 3, 3, 3, 11, 11, 11, 12, 12, 12, 3, 3, 3, 3, 0], [21, 21, 21, 21, 21, 7, 7, 7, 7, 8, 8, 8, 12, 12, 12, 12, 0], [11, 11, 11, 12, 12, 12, 12, 10, 10, 11, 11, 3, 3, 3, 6, 6, 6, 0], [3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0], [21, 21, 21, 16, 16, 16, 17, 17, 17, 17, 12, 12, 12, 12, 12, 0], [9, 21, 9, 21, 9, 21, 9, 21, 9, 12, 3, 12, 3, 12, 3, 12, 3, 0], [12, 12, 12, 8, 17, 17, 17, 8, 12, 12, 12, 8, 16, 16, 16, 16, 0], [13, 12, 13, 12, 13, 12, 13, 12, 13, 21, 21, 21, 21, 21, 0], [5, 12, 12, 12, 5, 21, 21, 13, 13, 13, 0], [16, 16, 16, 16, 16, 16, 16, 8, 8, 8, 8, 9, 9, 17, 17, 17, 0], [12, 10, 12, 10, 12, 10, 12, 10, 12, 10, 12, 10, 12, 0], [21, 21, 21, 21, 21, 18, 18, 18, 18, 11, 11, 11, 11, 11, 0], [9, 9, 9, 9, 9, 5, 12, 5, 12, 5, 12, 5, 12, 0], [13, 13, 13, 13, 21, 21, 21, 18, 18, 18, 12, 12, 12, 12, 0], [17, 12, 13, 10, 17, 12, 13, 10, 17, 12, 13, 10, 17, 12, 13, 10, 0], [21, 21, 21, 21, 26, 26, 26, 26, 21, 21, 21, 27, 27, 27, 27, 28, 0], [23, 21, 15, 23, 21, 23, 21, 15, 26, 26, 26, 27, 27, 27, 15, 0], [9, 9, 9, 19, 19, 29, 0]];
local_data.data.soldierbox = soldierbox;
local_data.data.tombhold = ["ss3", "ss7", "ss4", "ss5", "ss6", "ss8", "ss1", "ss2", "ss11", "ss12", "ss13", "ss14", "ss15", "ss16", "ss17", "ss18", "ss19", "ss20", "ss21", "ss22", "ss24", "ss25", "ss26", "ss27", "ss28", "ss29", "ss30"];
local_data.data.sumonlist = ["ss10", "ss23", "ss9", "ss24"];
}
}
if (level == 6) {
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, 1, 1, 1, 11, 11, 11, 0], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 11, 11, 2, 2, 2, 2, 1, 1, 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, 3, 3, 3, 3, 11, 11, 11, 11, 11, 11, 11, 11, 11, 0], [11, 11, 11, 11, 11, 21, 21, 21, 21, 21, 11, 6, 11, 11, 6, 11, 6, 11, 0], [3, 3, 3, 3, 11, 21, 11, 21, 11, 21, 11, 21, 11, 21, 0], [3, 3, 3, 21, 12, 12, 12, 12, 11, 11, 11, 11, 11, 11, 21, 11, 11, 11, 21, 11, 11, 21, 0], [11, 11, 11, 11, 10, 3, 3, 11, 11, 12, 12, 12, 11, 11, 9, 0]];
local_data.data.soldierbox = soldierbox;
local_data.data.tombhold = ["ss7", "ss8", "ss1", "ss2", "ss9", "ss10", "ss14", "ss15", "ss17", "ss18", "ss22", "ss23", "ss25", "ss26", "ss27", "ss28", "ss29", "ss30"];
local_data.data.sumonlist = ["ss3", "ss4", "ss5", "ss6", "ss19", "ss16", "ss11", "ss24"];
}
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, 1, 1, 1, 11, 11, 11, 0], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3, 3, 3, 3, 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], [3, 3, 3, 3, 11, 7, 11, 7, 11, 7, 11, 7, 11, 7, 0], [3, 3, 3, 13, 12, 12, 12, 12, 11, 11, 11, 7, 7, 7, 5, 11, 11, 11, 5, 11, 11, 5, 0], [11, 11, 11, 11, 5, 3, 3, 13, 13, 12, 12, 12, 9, 9, 9, 0], [8, 8, 8, 8, 8, 8, 3, 3, 3, 3, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 0], [3, 3, 3, 3, 3, 3, 3, 12, 12, 12, 8, 8, 8, 8, 12, 12, 12, 12, 12, 8, 8, 8, 8, 12, 12, 12, 12, 12, 0], [6, 6, 6, 6, 6, 11, 11, 11, 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], [13, 13, 13, 13, 13, 12, 12, 12, 12, 11, 11, 11, 11, 11, 11, 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], [18, 18, 18, 18, 18, 18, 21, 21, 21, 21, 21, 21, 0], [10, 10, 10, 9, 9, 9, 9, 12, 12, 12, 12, 12, 19, 0]];
local_data.data.soldierbox = soldierbox;
local_data.data.tombhold = ["ss6", "ss3", "ss7", "ss8", "ss1", "ss2", "ss9", "ss10", "ss14", "ss15", "ss17", "ss18", "ss22", "ss23", "ss25", "ss26", "ss27", "ss28", "ss29", "ss30"];
local_data.data.sumonlist = ["ss4", "ss5", "ss19", "ss16", "ss11", "ss24"];
}
if (difficulty == 3) {
soldierbox = [[1, 1, 1, 1, 1, 1, 1, 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, 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, 1, 1, 1, 1, 1, 1, 1, 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, 3, 3, 3, 3, 11, 11, 2, 2, 2, 2, 2, 6, 6, 0], [11, 11, 11, 11, 11, 6, 6, 6, 6, 6, 8, 11, 8, 11, 8, 11, 8, 11, 0], [3, 3, 3, 3, 11, 7, 11, 7, 11, 7, 11, 7, 11, 7, 0], [3, 3, 3, 3, 12, 12, 12, 12, 11, 11, 11, 7, 7, 7, 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, 12, 12, 12, 12, 13, 13, 13, 13, 6, 6, 6, 6, 6, 6, 0], [3, 3, 3, 3, 3, 3, 13, 13, 8, 8, 8, 8, 8, 9, 9, 9, 0], [6, 6, 6, 6, 6, 6, 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, 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, 5, 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], [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, 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], [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, 29, 0]];
local_data.data.soldierbox = soldierbox;
local_data.data.tombhold = ["ss3", "ss4", "ss5", "ss6", "ss7", "ss8", "ss1", "ss2", "ss9", "ss10", "ss14", "ss15", "ss17", "ss18", "ss22", "ss23", "ss25", "ss26", "ss27", "ss28", "ss29", "ss30"];
local_data.data.sumonlist = ["ss19", "ss16", "ss11", "ss24"];
}
}
if (level == 7) {
if (difficulty == 1) {
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, 1, 1, 1, 1, 1, 1, 1, 11, 11, 11, 0], [1, 1, 1, 1, 1, 1, 1, 1, 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, 11, 11, 11, 11, 11, 11, 11, 11, 11, 3, 3, 3, 3, 2, 2, 2, 2, 2, 0], [2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 11, 11, 11, 11, 11, 0], [3, 3, 3, 3, 3, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 0], [3, 3, 3, 3, 11, 11, 11, 11, 2, 2, 2, 2, 2, 11, 11, 11, 7, 7, 7, 0], [6, 6, 6, 6, 11, 11, 11, 11, 11, 11, 11, 0], [3, 3, 3, 2, 2, 2, 2, 6, 6, 6, 6, 11, 11, 11, 11, 9, 0], [11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 3, 3, 3, 3, 3, 3, 0], [3, 3, 3, 21, 21, 21, 21, 21, 2, 2, 2, 2, 21, 21, 21, 21, 3, 3, 3, 3, 6, 6, 6, 7, 7, 12, 12, 12, 12, 0], [6, 6, 6, 6, 6, 21, 21, 21, 21, 21, 12, 12, 12, 12, 12, 12, 9, 0], [11, 11, 11, 11, 11, 11, 13, 13, 13, 13, 13, 13, 13, 12, 12, 12, 12, 12, 12, 0], [21, 21, 21, 21, 9, 9, 21, 21, 21, 10, 13, 13, 13, 13, 13, 13, 0]];
local_data.data.soldierbox = soldierbox;
local_data.data.tombhold = ["ss6", "ss7", "ss8", "ss1", "ss10", "ss11", "ss12", "ss13", "ss15", "ss16", "ss18", "ss19", "ss20", "ss21", "ss23", "ss24", "ss25", "ss26", "ss27", "ss28", "ss29", "ss30"];
local_data.data.sumonlist = ["ss17", "ss22", "ss14", "ss9", "ss2", "ss3", "ss4", "ss5"];
}
if (difficulty == 2) {
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, 1, 1, 1, 1, 1, 1, 11, 11, 11, 11, 0], [1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3, 3, 8, 8, 2, 2, 2, 2, 2, 11, 11, 11, 11, 11, 11, 0], [5, 6, 6, 6, 6, 5, 2, 2, 2, 2, 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, 11, 11, 11, 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, 11, 11, 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, 15, 16, 17, 18, 0], [8, 8, 8, 8, 8, 8, 8, 8, 8, 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]];
local_data.data.soldierbox = soldierbox;
local_data.data.tombhold = ["ss22", "ss9", "ss6", "ss7", "ss8", "ss1", "ss10", "ss11", "ss12", "ss13", "ss15", "ss16", "ss18", "ss19", "ss20", "ss21", "ss23", "ss24", "ss25", "ss26", "ss27", "ss28", "ss29", "ss30"];
local_data.data.sumonlist = ["ss17", "ss14", "ss2", "ss3", "ss4", "ss5"];
}
if (difficulty == 3) {
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, 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], [11, 12, 13, 15, 16, 17, 18, 11, 12, 13, 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], [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, 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], [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], [23, 23, 23, 23, 23, 23, 22, 22, 22, 22, 20, 20, 20, 20, 20, 0], [23, 23, 23, 23, 23, 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, 0], [21, 21, 21, 21, 22, 22, 22, 22, 23, 23, 23, 23, 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, 0]];
local_data.data.soldierbox = soldierbox;
local_data.data.tombhold = ["ss2", "ss3", "ss22", "ss9", "ss6", "ss7", "ss8", "ss1", "ss10", "ss11", "ss12", "ss13", "ss15", "ss16", "ss18", "ss19", "ss20", "ss21", "ss23", "ss24", "ss25", "ss26", "ss27", "ss28", "ss29", "ss30"];
local_data.data.sumonlist = ["ss17", "ss14", "ss4", "ss5"];
}
}
if (level == 8) {
if (difficulty == 1) {
soldierbox = [[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, 1, 11, 11, 11, 0], [1, 1, 1, 1, 1, 1, 1, 1, 11, 11, 2, 2, 2, 11, 11, 11, 11, 2, 2, 2, 0], [11, 11, 11, 11, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 0], [11, 11, 11, 11, 11, 11, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 0], [11, 11, 11, 11, 3, 3, 3, 3, 3, 12, 12, 12, 12, 0], [3, 3, 3, 2, 2, 2, 2, 11, 11, 11, 11, 11, 12, 12, 12, 0], [3, 3, 3, 3, 13, 13, 13, 13, 0], [6, 6, 6, 6, 6, 6, 21, 21, 21, 21, 21, 21, 3, 3, 0], [2, 2, 2, 2, 21, 21, 21, 3, 3, 13, 13, 9, 0]];
local_data.data.soldierbox = soldierbox;
local_data.data.tombhold = ["ss1", "ss2", "ss3", "ss4", "ss9", "ss11", "ss14", "ss16", "ss17", "ss19", "ss22", "ss24", "ss25", "ss26", "ss27", "ss28", "ss29", "ss30"];
local_data.data.sumonlist = ["ss5", "ss6", "ss7", "ss8", "ss18", "ss23", "ss15", "ss10"];
}
if (difficulty == 2) {
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, 1, 1, 1, 1, 1, 1, 1, 1, 11, 11, 11, 11, 0], [1, 1, 1, 1, 1, 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], [12, 12, 12, 12, 12, 12, 3, 3, 3, 3, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 0], [3, 3, 3, 3, 3, 3, 3, 12, 12, 12, 12, 12, 12, 12, 12, 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, 12, 12, 12, 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, 17, 17, 17, 17, 20, 20, 20, 16, 16, 16, 16, 0]];
local_data.data.soldierbox = soldierbox;
local_data.data.tombhold = ["ss5", "ss1", "ss8", "ss2", "ss3", "ss4", "ss9", "ss11", "ss14", "ss16", "ss17", "ss19", "ss22", "ss24", "ss25", "ss26", "ss27", "ss28", "ss29", "ss30"];
local_data.data.sumonlist = ["ss6", "ss7", "ss18", "ss23", "ss15", "ss10"];
}
if (difficulty == 3) {
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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 11, 11, 11, 11, 11, 11, 11, 0], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 11, 11, 11, 11, 11, 11, 2, 2, 2, 2, 11, 11, 11, 11, 2, 2, 2, 2, 0], [1, 1, 1, 1, 1, 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, 3, 3, 3, 3, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 0], [3, 3, 3, 3, 3, 3, 3, 12, 12, 12, 8, 8, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 0], [5, 5, 3, 3, 3, 3, 3, 3, 7, 7, 7, 7, 7, 7, 6, 6, 6, 6, 6, 6, 3, 3, 3, 5, 5, 5, 5, 0], [12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 11, 11, 11, 11, 11, 3, 3, 3, 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, 5, 5, 8, 8, 5, 5, 0], [9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 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, 8, 8, 8, 8, 8, 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], [8, 8, 8, 8, 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, 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, 19, 19, 19, 0], [21, 21, 21, 22, 22, 22, 21, 21, 21, 22, 22, 22, 20, 20, 0], [26, 26, 26, 26, 21, 21, 21, 27, 27, 23, 23, 0], [15, 21, 21, 21, 15, 26, 26, 26, 15, 23, 23, 30, 0], [21, 21, 21, 21, 29, 0]];
local_data.data.soldierbox = soldierbox;
local_data.data.tombhold = ["ss5", "ss1", "ss8", "ss2", "ss3", "ss4", "ss9", "ss11", "ss14", "ss16", "ss17", "ss19", "ss22", "ss24", "ss25", "ss26", "ss27", "ss28", "ss29", "ss30"];
local_data.data.sumonlist = ["ss7", "ss18", "ss23", "ss15", "ss10"];
}
}
local_data.data.bones = 100;
local_data.flush();
Frame 52
function startgame() {
_root.game.cas.gotoAndStop(level);
i = 0;
while (i < sumonlist.length) {
tempo = _root.game.cas[sumonlist[i]];
tempo.gotoAndStop(3);
i++;
}
i = 0;
while (i < invers.length) {
tempo = _root.game.cas[invers[i]];
tempo._xscale = -100;
i++;
}
var _local2 = soldierbox.length;
wdeci = Math.floor(_local2 / 10);
wuni = Math.floor(_local2 - (wdeci * 10));
_root.game.wwouni.gotoAndStop(wuni + 1);
_root.game.wwodeci.gotoAndStop(wdeci + 1);
if (wdeci > 0) {
_root.game.wwouni._alpha = 100;
_root.game.wwodeci._alpha = 100;
} else if (wuni > 0) {
_root.game.wwouni._alpha = 100;
_root.game.wwodeci._alpha = 0;
} else if ((wuni == 0) && (wdeci == 0)) {
_root.game.wwouni._alpha = 100;
_root.game.wwodeci._alpha = 0;
}
}
function numobj() {
bmmil = Math.floor(bones / 100000);
bmildeci = Math.floor((bones - (bmmil * 100000)) / 10000);
bmiluni = Math.floor(((bones - (bmmil * 100000)) - (bmildeci * 10000)) / 1000);
bmil = Math.floor((((bones - (bmmil * 100000)) - (bmildeci * 10000)) - (bmiluni * 1000)) / 100);
bdeci = Math.floor(((((bones - (bmmil * 100000)) - (bmildeci * 10000)) - (bmiluni * 1000)) - (bmil * 100)) / 10);
buni = Math.floor(((((bones - (bmmil * 100000)) - (bmildeci * 10000)) - (bmiluni * 1000)) - (bmil * 100)) - (bdeci * 10));
_root.game.bouni.gotoAndStop(buni + 1);
_root.game.bodeci.gotoAndStop(bdeci + 1);
_root.game.bomil.gotoAndStop(bmil + 1);
_root.game.bomiluni.gotoAndStop(bmiluni + 1);
_root.game.bomildeci.gotoAndStop(bmildeci + 1);
_root.game.bommil.gotoAndStop(bmmil + 1);
if (bmmil > 0) {
_root.game.bouni._alpha = 100;
_root.game.bodeci._alpha = 100;
_root.game.bomil._alpha = 100;
_root.game.bomiluni._alpha = 100;
_root.game.bomildeci._alpha = 100;
_root.game.bommil._alpha = 100;
} else if (bmildeci > 0) {
_root.game.bouni._alpha = 100;
_root.game.bodeci._alpha = 100;
_root.game.bomil._alpha = 100;
_root.game.bomiluni._alpha = 100;
_root.game.bomildeci._alpha = 100;
_root.game.bommil._alpha = 0;
} else if (bmiluni > 0) {
_root.game.bouni._alpha = 100;
_root.game.bodeci._alpha = 100;
_root.game.bomil._alpha = 100;
_root.game.bomiluni._alpha = 100;
_root.game.bomildeci._alpha = 0;
_root.game.bommil._alpha = 0;
} else if (bmil > 0) {
_root.game.bouni._alpha = 100;
_root.game.bodeci._alpha = 100;
_root.game.bomil._alpha = 100;
_root.game.bomiluni._alpha = 0;
_root.game.bomildeci._alpha = 0;
_root.game.bommil._alpha = 0;
} else if (bdeci > 0) {
_root.game.bouni._alpha = 100;
_root.game.bodeci._alpha = 100;
_root.game.bomil._alpha = 0;
_root.game.bomiluni._alpha = 0;
_root.game.bomildeci._alpha = 0;
_root.game.bommil._alpha = 0;
} else if (buni > 0) {
_root.game.bouni._alpha = 100;
_root.game.bodeci._alpha = 0;
_root.game.bomil._alpha = 0;
_root.game.bomiluni._alpha = 0;
_root.game.bomildeci._alpha = 0;
_root.game.bommil._alpha = 0;
} else if ((((((buni == 0) && (bdeci == 0)) && (bmil == 0)) && (bmiluni == 0)) && (bmildeci == 0)) && (bmmil == 0)) {
_root.game.bouni._alpha = 100;
_root.game.bodeci._alpha = 0;
_root.game.bomil._alpha = 0;
_root.game.bomiluni._alpha = 0;
_root.game.bomildeci._alpha = 0;
_root.game.bommil._alpha = 0;
}
swdeci = Math.floor(soldierwave / 10);
swuni = Math.floor(soldierwave - (swdeci * 10));
_root.game.swouni.gotoAndStop(swuni + 1);
_root.game.swodeci.gotoAndStop(swdeci + 1);
if (swdeci > 0) {
_root.game.swouni._alpha = 100;
_root.game.swodeci._alpha = 100;
} else if (swuni > 0) {
_root.game.swouni._alpha = 100;
_root.game.swodeci._alpha = 0;
} else if ((swuni == 0) && (swdeci == 0)) {
_root.game.swouni._alpha = 100;
_root.game.swodeci._alpha = 0;
}
exsdeci = Math.floor(bonusbones / 10);
exsuni = Math.floor(bonusbones - (exsdeci * 10));
_root.game.exnum.exuni.gotoAndStop(exsuni + 1);
_root.game.exnum.exdeci.gotoAndStop(exsdeci + 1);
if (exsdeci > 0) {
_root.game.exnum.exuni._alpha = 100;
_root.game.exnum.exdeci._alpha = 100;
_root.game.exnum._alpha = 100;
_root.game.exnum.masi.gotoAndStop(2);
} else if (exsuni > 0) {
_root.game.exnum.exuni._alpha = 100;
_root.game.exnum.exdeci._alpha = 0;
_root.game.exnum._alpha = 100;
_root.game.exnum.masi.gotoAndStop(1);
} else if ((exsuni == 0) && (exsdeci == 0)) {
_root.game.exnum._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;
}
if ((enkilled >= 8) && (tombhold.length > 0)) {
enkilled = enkilled - 8;
rantomp = Math.floor(Math.random() * tombhold.length);
sumonlist.push(tombhold[rantomp]);
_root.game.cas[tombhold[rantomp]].gotoAndStop(2);
tombhold.splice(rantomp, 1);
}
}
function checktombs() {
if (selecttomb == false) {
i = 0;
while (i < sumonlist.length) {
freearea = _root.game.cas[sumonlist[i]];
freearea.onPress = displaybuy;
i++;
}
}
}
function displaybuy() {
if (pausestate == false) {
generals.clic.start(0, 1);
selecttomb = true;
r = 0;
while (r < sumonlist.length) {
freearea = _root.game.cas[sumonlist[r]];
if (freearea._currentframe != 1) {
freearea.gotoAndStop(3);
}
r++;
}
this.gotoAndStop(4);
tombusing = this._name;
_root.game.tmenu.gotoAndStop(2);
_root.game.tmenu._x = this._x;
_root.game.tmenu._alpha = 100;
_root.game.tmenu._y = this._y;
if (bones >= 20) {
_root.game.tmenu.m1.gotoAndStop(2);
}
if (bones >= 40) {
_root.game.tmenu.m2.gotoAndStop(2);
}
if (bones >= 50) {
_root.game.tmenu.m3.gotoAndStop(2);
}
if (bones >= 100) {
_root.game.tmenu.m4.gotoAndStop(2);
}
if (bones >= 80) {
_root.game.tmenu.m5.gotoAndStop(2);
}
if (bones >= 200) {
_root.game.tmenu.m6.gotoAndStop(2);
}
if (bones >= 150) {
_root.game.tmenu.m7.gotoAndStop(2);
}
if (bones >= 100) {
_root.game.tmenu.m8.gotoAndStop(2);
}
}
}
function activet() {
if (selecttomb == true) {
if (_root.game.tmenu.cira._currentframe >= 1) {
if (bones >= 20) {
_root.game.tmenu.cira.m1.gotoAndStop(2);
}
if (bones >= 40) {
_root.game.tmenu.cira.m2.gotoAndStop(2);
}
if (bones >= 50) {
_root.game.tmenu.cira.m3.gotoAndStop(2);
}
if (bones >= 100) {
_root.game.tmenu.cira.m4.gotoAndStop(2);
}
if (bones >= 80) {
_root.game.tmenu.cira.m5.gotoAndStop(2);
}
if (bones >= 200) {
_root.game.tmenu.cira.m6.gotoAndStop(2);
}
if (bones >= 150) {
_root.game.tmenu.cira.m7.gotoAndStop(2);
}
if (bones >= 100) {
_root.game.tmenu.cira.m8.gotoAndStop(2);
}
}
if (bones >= 20) {
_root.game.tmenu.m1.gotoAndStop(2);
}
if (bones >= 40) {
_root.game.tmenu.m2.gotoAndStop(2);
}
if (bones >= 50) {
_root.game.tmenu.m3.gotoAndStop(2);
}
if (bones >= 100) {
_root.game.tmenu.m4.gotoAndStop(2);
}
if (bones >= 80) {
_root.game.tmenu.m5.gotoAndStop(2);
}
if (bones >= 200) {
_root.game.tmenu.m6.gotoAndStop(2);
}
if (bones >= 150) {
_root.game.tmenu.m7.gotoAndStop(2);
}
if (bones >= 100) {
_root.game.tmenu.m8.gotoAndStop(2);
}
if (_root.game.cas[tombusing]._xscale == -100) {
_root.game.tmenu.infm._xscale = -100;
} else {
_root.game.tmenu.infm._xscale = 100;
}
_root.game.tmenu.m1.onRollOver = function () {
onthing = true;
_root.game.tmenu.infm.gotoAndStop(2);
};
_root.game.tmenu.m2.onRollOver = function () {
onthing = true;
_root.game.tmenu.infm.gotoAndStop(3);
};
_root.game.tmenu.m3.onRollOver = function () {
onthing = true;
_root.game.tmenu.infm.gotoAndStop(4);
};
_root.game.tmenu.m4.onRollOver = function () {
onthing = true;
_root.game.tmenu.infm.gotoAndStop(5);
};
_root.game.tmenu.m5.onRollOver = function () {
onthing = true;
_root.game.tmenu.infm.gotoAndStop(6);
};
_root.game.tmenu.m6.onRollOver = function () {
onthing = true;
_root.game.tmenu.infm.gotoAndStop(7);
};
_root.game.tmenu.m7.onRollOver = function () {
onthing = true;
_root.game.tmenu.infm.gotoAndStop(8);
};
_root.game.tmenu.m8.onRollOver = function () {
onthing = true;
_root.game.tmenu.infm.gotoAndStop(9);
};
_root.game.tmenu.m1.onRollOut = function () {
onthing = false;
_root.game.tmenu.infm.gotoAndStop(1);
};
_root.game.tmenu.m2.onRollOut = function () {
onthing = false;
_root.game.tmenu.infm.gotoAndStop(1);
};
_root.game.tmenu.m3.onRollOut = function () {
onthing = false;
_root.game.tmenu.infm.gotoAndStop(1);
};
_root.game.tmenu.m4.onRollOut = function () {
onthing = false;
_root.game.tmenu.infm.gotoAndStop(1);
};
_root.game.tmenu.m5.onRollOut = function () {
onthing = false;
_root.game.tmenu.infm.gotoAndStop(1);
};
_root.game.tmenu.m6.onRollOut = function () {
onthing = false;
_root.game.tmenu.infm.gotoAndStop(1);
};
_root.game.tmenu.m7.onRollOut = function () {
onthing = false;
_root.game.tmenu.infm.gotoAndStop(1);
};
_root.game.tmenu.m8.onRollOut = function () {
onthing = false;
_root.game.tmenu.infm.gotoAndStop(1);
};
_root.game.tmenu.m1.onPress = function () {
if (_root.game.tmenu.m1._currentframe == 2) {
selecttomb = false;
_root.game.cas[tombusing].gotoAndStop(1);
_root.game.tmenu.gotoAndStop(1);
_root.game.attachMovie("skullclip", "creature" + deep, deep, {_x:_root.game.cas[tombusing]._x, _y:_root.game.cas[tombusing]._y + 9, exist:1, atk:5, range:20, xp:0, typec:1, typeatk:1, zone:tombusing, nextlv:50, money:20, dir:0, selectcs:0, espaciou:this._name, lv:1, obj:0, objtar:0, frozen:0, transfo:1});
_root.game["creature" + deep].gotoAndStop(2);
creaturelist.push("creature" + deep);
if (_root.game.cas[tombusing]._xscale == -100) {
_root.game["creature" + deep].dir = 1;
_root.game["creature" + deep]._xscale = -100;
_root.game["creature" + deep].star._xscale = -100;
}
generals.tra.start(0, 1);
doad[0] = doad[0] + 1;
bones = bones - 20;
deep++;
onthing = false;
}
};
_root.game.tmenu.m2.onPress = function () {
if (_root.game.tmenu.m2._currentframe == 2) {
selecttomb = false;
_root.game.cas[tombusing].gotoAndStop(1);
_root.game.tmenu.gotoAndStop(1);
_root.game.attachMovie("plantclip", "creature" + deep, deep, {_x:_root.game.cas[tombusing]._x, _y:_root.game.cas[tombusing]._y + 9, exist:1, atk:3, range:300, xp:0, typec:2, typeatk:1, zone:tombusing, nextlv:75, money:40, dir:0, selectcs:0, espaciou:this._name, lv:1, atktempo:0, obj:0, objtar:0, frozen:0, transfo:1});
_root.game["creature" + deep].gotoAndStop(2);
creaturelist.push("creature" + deep);
if (_root.game.cas[tombusing]._xscale == -100) {
_root.game["creature" + deep].dir = 1;
_root.game["creature" + deep]._xscale = -100;
_root.game["creature" + deep].star._xscale = -100;
}
generals.tra.start(0, 1);
doad[3] = doad[3] + 1;
bones = bones - 40;
deep++;
onthing = false;
}
};
_root.game.tmenu.m3.onPress = function () {
if (_root.game.tmenu.m3._currentframe == 2) {
selecttomb = false;
_root.game.cas[tombusing].gotoAndStop(1);
_root.game.tmenu.gotoAndStop(1);
_root.game.attachMovie("slimeclip", "creature" + deep, deep, {_x:_root.game.cas[tombusing]._x, _y:_root.game.cas[tombusing]._y + 9, exist:1, atk:2, range:20, xp:0, typec:3, typeatk:2, zone:tombusing, nextlv:100, money:50, dir:0, selectcs:0, espaciou:this._name, lv:1, atktempo:0, obj:0, objtar:0, frozen:0, transfo:1});
_root.game["creature" + deep].gotoAndStop(2);
creaturelist.push("creature" + deep);
if (_root.game.cas[tombusing]._xscale == -100) {
_root.game["creature" + deep].dir = 1;
_root.game["creature" + deep]._xscale = -100;
_root.game["creature" + deep].star._xscale = -100;
}
generals.tra.start(0, 1);
doad[6] = doad[6] + 1;
bones = bones - 50;
deep++;
onthing = false;
}
};
_root.game.tmenu.m4.onPress = function () {
if (_root.game.tmenu.m4._currentframe == 2) {
selecttomb = false;
_root.game.cas[tombusing].gotoAndStop(1);
_root.game.tmenu.gotoAndStop(1);
_root.game.attachMovie("demonclip", "creature" + deep, deep, {_x:_root.game.cas[tombusing]._x, _y:_root.game.cas[tombusing]._y + 9, exist:1, atk:3, range:20, xp:0, typec:4, typeatk:3, zone:tombusing, nextlv:10, money:100, dir:0, selectcs:0, espaciou:this._name, lv:1, obj:0, objtar:0, frozen:0, transfo:0, atktempo:0, stopu:0, calm:1});
_root.game["creature" + deep].gotoAndStop(2);
creaturelist.push("creature" + deep);
if (_root.game.cas[tombusing]._xscale == -100) {
_root.game["creature" + deep].dir = 1;
_root.game["creature" + deep]._xscale = -100;
_root.game["creature" + deep].star._xscale = -100;
}
generals.tra.start(0, 1);
doad[9] = doad[9] + 1;
bones = bones - 100;
deep++;
onthing = false;
}
};
_root.game.tmenu.m5.onPress = function () {
if (_root.game.tmenu.m5._currentframe == 2) {
selecttomb = false;
_root.game.cas[tombusing].gotoAndStop(1);
_root.game.tmenu.gotoAndStop(1);
_root.game.attachMovie("hiveclip", "creature" + deep, deep, {_x:_root.game.cas[tombusing]._x, _y:_root.game.cas[tombusing]._y + 9, exist:1, atk:5, range:80, xp:0, typec:5, typeatk:1, zone:tombusing, nextlv:25, money:80, dir:0, selectcs:0, espaciou:this._name, lv:1, atktempo:0, obj:0, objtar:0, frozen:0, transfo:0, calm:0, targ:1});
_root.game["creature" + deep].gotoAndStop(2);
creaturelist.push("creature" + deep);
if (_root.game.cas[tombusing]._xscale == -100) {
_root.game["creature" + deep].dir = 1;
_root.game["creature" + deep]._xscale = -100;
_root.game["creature" + deep].star._xscale = -100;
}
generals.tra.start(0, 1);
doad[12] = doad[12] + 1;
bones = bones - 80;
deep++;
onthing = false;
}
};
_root.game.tmenu.m6.onPress = function () {
if (_root.game.tmenu.m6._currentframe == 2) {
selecttomb = false;
_root.game.cas[tombusing].gotoAndStop(1);
_root.game.tmenu.gotoAndStop(1);
_root.game.attachMovie("corpeclip", "creature" + deep, deep, {_x:_root.game.cas[tombusing]._x, _y:_root.game.cas[tombusing]._y + 9, exist:1, atk:1, range:0, xp:0, typec:6, typeatk:4, zone:tombusing, nextlv:50, money:200, dir:0, selectcs:0, espaciou:this._name, lv:1, atktempo:0, obj:0, objtar:0, frozen:0, transfo:1, produce:240});
_root.game["creature" + deep].gotoAndStop(2);
creaturelist.push("creature" + deep);
if (_root.game.cas[tombusing]._xscale == -100) {
_root.game["creature" + deep].dir = 1;
_root.game["creature" + deep]._xscale = -100;
_root.game["creature" + deep].star._xscale = -100;
}
generals.tra.start(0, 1);
doad[15] = doad[15] + 1;
bonusbones = bonusbones + 1;
bones = bones - 200;
deep++;
onthing = false;
}
};
_root.game.tmenu.m7.onPress = function () {
if (_root.game.tmenu.m7._currentframe == 2) {
selecttomb = false;
_root.game.cas[tombusing].gotoAndStop(1);
_root.game.tmenu.gotoAndStop(1);
_root.game.attachMovie("mudmanclip", "creature" + deep, deep, {_x:_root.game.cas[tombusing]._x, _y:_root.game.cas[tombusing]._y + 9, exist:1, atk:5, range:80, xp:0, typec:7, typeatk:1, zone:tombusing, nextlv:100, money:150, dir:0, selectcs:0, espaciou:this._name, lv:1, atktempo:0, obj:0, objtar:0, frozen:0, transfo:1});
_root.game["creature" + deep].gotoAndStop(2);
creaturelist.push("creature" + deep);
if (_root.game.cas[tombusing]._xscale == -100) {
_root.game["creature" + deep].dir = 1;
_root.game["creature" + deep]._xscale = -100;
_root.game["creature" + deep].star._xscale = -100;
}
generals.tra.start(0, 1);
doad[18] = doad[18] + 1;
bones = bones - 150;
deep++;
onthing = false;
}
};
_root.game.tmenu.m8.onPress = function () {
if (_root.game.tmenu.m8._currentframe == 2) {
selecttomb = false;
_root.game.cas[tombusing].gotoAndStop(1);
_root.game.tmenu.gotoAndStop(1);
_root.game.attachMovie("dragonclip", "creature" + deep, deep, {_x:_root.game.cas[tombusing]._x, _y:_root.game.cas[tombusing]._y + 9, exist:1, atk:5, range:40, xp:0, typec:8, typeatk:1, zone:tombusing, nextlv:100, money:100, dir:0, selectcs:0, espaciou:this._name, lv:1, atktempo:0, obj:0, objtar:0, frozen:0, transfo:1});
_root.game["creature" + deep].gotoAndStop(2);
creaturelist.push("creature" + deep);
if (_root.game.cas[tombusing]._xscale == -100) {
_root.game["creature" + deep].dir = 1;
_root.game["creature" + deep]._xscale = -100;
_root.game["creature" + deep].star._xscale = -100;
}
generals.tra.start(0, 1);
doad[21] = doad[21] + 1;
bones = bones - 100;
deep++;
onthing = false;
}
};
}
if (selectmon == true) {
_root.game.monmenu.atkb.onRollOver = function () {
onthing = true;
};
_root.game.monmenu.upgb.onRollOver = function () {
onthing = true;
};
_root.game.monmenu.sellb.onRollOver = function () {
onthing = true;
};
_root.game.monmenu.atkb.onRollOut = function () {
onthing = false;
};
_root.game.monmenu.upgb.onRollOut = function () {
onthing = false;
};
_root.game.monmenu.sellb.onRollOut = function () {
onthing = false;
};
_root.game.monmenu.atkb.onPress = function () {
generals.clic.start(0, 1);
if (_root.game.monmenu.atkb._currentframe == 2) {
if (bones >= (_root.game[monusing].money / 2)) {
bones = bones - (_root.game[monusing].money / 2);
_root.game[monusing].atk = _root.game[monusing].atk + 1;
if (_root.game[monusing].typec == 6) {
bonusbones = bonusbones + 1;
}
_root.game[monusing].money = _root.game[monusing].money + (_root.game[monusing].money / 2);
selectmon = false;
_root.game.monmenu.gotoAndStop(1);
onthing = false;
}
}
if (_root.game.monmenu.atkb._currentframe == 1) {
_root.game.monmenu.atkb.gotoAndStop(2);
_root.game.monmenu.upgb.gotoAndStop(1);
_root.game.monmenu.sellb.gotoAndStop(1);
_root.game.monmenu.statusmon.gotoAndStop(2);
xmil = Math.floor(_root.game[monusing].atk / 100);
xdeci = Math.floor((_root.game[monusing].atk - (xmil * 100)) / 10);
xuni = Math.floor((_root.game[monusing].atk - (xmil * 100)) - (xdeci * 10));
_root.game.monmenu.statusmon.souni.gotoAndStop(xuni + 1);
_root.game.monmenu.statusmon.sodeci.gotoAndStop(xdeci + 1);
_root.game.monmenu.statusmon.somil.gotoAndStop(xmil + 1);
if (xmil > 0) {
_root.game.monmenu.statusmon.souni._alpha = 100;
_root.game.monmenu.statusmon.sodeci._alpha = 100;
_root.game.monmenu.statusmon.somil._alpha = 100;
} else if (xdeci > 0) {
_root.game.monmenu.statusmon.souni._alpha = 100;
_root.game.monmenu.statusmon.sodeci._alpha = 100;
_root.game.monmenu.statusmon.somil._alpha = 0;
} else if (xuni > 0) {
_root.game.monmenu.statusmon.souni._alpha = 100;
_root.game.monmenu.statusmon.sodeci._alpha = 0;
_root.game.monmenu.statusmon.somil._alpha = 0;
} else if (((xuni == 0) && (xdeci == 0)) && (xmil == 0)) {
_root.game.monmenu.statusmon.souni._alpha = 100;
_root.game.monmenu.statusmon.sodeci._alpha = 0;
_root.game.monmenu.statusmon.somil._alpha = 0;
}
xmil = Math.floor((_root.game[monusing].atk + 1) / 100);
xdeci = Math.floor(((_root.game[monusing].atk + 1) - (xmil * 100)) / 10);
xuni = Math.floor(((_root.game[monusing].atk + 1) - (xmil * 100)) - (xdeci * 10));
_root.game.monmenu.statusmon.ssouni.gotoAndStop(xuni + 1);
_root.game.monmenu.statusmon.ssodeci.gotoAndStop(xdeci + 1);
_root.game.monmenu.statusmon.ssomil.gotoAndStop(xmil + 1);
if (xmil > 0) {
_root.game.monmenu.statusmon.ssouni._alpha = 100;
_root.game.monmenu.statusmon.ssodeci._alpha = 100;
_root.game.monmenu.statusmon.ssomil._alpha = 100;
} else if (xdeci > 0) {
_root.game.monmenu.statusmon.ssouni._alpha = 100;
_root.game.monmenu.statusmon.ssodeci._alpha = 100;
_root.game.monmenu.statusmon.ssomil._alpha = 0;
} else if (xuni > 0) {
_root.game.monmenu.statusmon.ssouni._alpha = 100;
_root.game.monmenu.statusmon.ssodeci._alpha = 0;
_root.game.monmenu.statusmon.ssomil._alpha = 0;
} else if (((xuni == 0) && (xdeci == 0)) && (xmil == 0)) {
_root.game.monmenu.statusmon.ssouni._alpha = 100;
_root.game.monmenu.statusmon.ssodeci._alpha = 0;
_root.game.monmenu.statusmon.ssomil._alpha = 0;
}
xmil = Math.floor((_root.game[monusing].money / 2) / 100);
xdeci = Math.floor(((_root.game[monusing].money / 2) - (xmil * 100)) / 10);
xuni = Math.floor(((_root.game[monusing].money / 2) - (xmil * 100)) - (xdeci * 10));
_root.game.monmenu.statusmon.mouni.gotoAndStop(xuni + 1);
_root.game.monmenu.statusmon.modeci.gotoAndStop(xdeci + 1);
_root.game.monmenu.statusmon.momil.gotoAndStop(xmil + 1);
if (xmil > 0) {
_root.game.monmenu.statusmon.mouni._alpha = 100;
_root.game.monmenu.statusmon.modeci._alpha = 100;
_root.game.monmenu.statusmon.momil._alpha = 100;
} else if (xdeci > 0) {
_root.game.monmenu.statusmon.mouni._alpha = 100;
_root.game.monmenu.statusmon.modeci._alpha = 100;
_root.game.monmenu.statusmon.momil._alpha = 0;
} else if (xuni > 0) {
_root.game.monmenu.statusmon.mouni._alpha = 100;
_root.game.monmenu.statusmon.modeci._alpha = 0;
_root.game.monmenu.statusmon.momil._alpha = 0;
} else if (((xuni == 0) && (xdeci == 0)) && (xmil == 0)) {
_root.game.monmenu.statusmon.mouni._alpha = 100;
_root.game.monmenu.statusmon.modeci._alpha = 0;
_root.game.monmenu.statusmon.momil._alpha = 0;
}
}
};
_root.game.monmenu.upgb.onPress = function () {
generals.clic.start(0, 1);
if (_root.game.monmenu.upgb._currentframe == 2) {
if (((_root.game[monusing].lv < 3) && (_root.game[monusing].frozen == 0)) && (_root.game[monusing].xp >= _root.game[monusing].nextlv)) {
generals.tra.start(0, 1);
if ((_root.game[monusing].typec == 1) && (_root.game[monusing].lv == 1)) {
_root.game[monusing].transfo = 1;
_root.game[monusing].gotoAndStop(5);
_root.game[monusing].nextlv = 100;
_root.game[monusing].xp = 0;
doad[1] = doad[1] + 1;
}
if ((_root.game[monusing].typec == 1) && (_root.game[monusing].lv == 2)) {
_root.game[monusing].transfo = 1;
_root.game[monusing].nextlv = 300;
_root.game[monusing].gotoAndStop(8);
_root.game[monusing].xp = 0;
_root.game[monusing].star._alpha = 0;
doad[2] = doad[2] + 1;
}
if ((_root.game[monusing].typec == 2) && (_root.game[monusing].lv == 1)) {
_root.game[monusing].transfo = 1;
_root.game[monusing].nextlv = 200;
_root.game[monusing].xp = 0;
_root.game[monusing].gotoAndStop(5);
_root.game[monusing].atk = _root.game[monusing].atk + 1;
doad[4] = doad[4] + 1;
}
if ((_root.game[monusing].typec == 2) && (_root.game[monusing].lv == 2)) {
_root.game[monusing].transfo = 1;
_root.game[monusing].gotoAndStop(8);
_root.game[monusing].xp = 0;
_root.game[monusing].atk = _root.game[monusing].atk + 1;
_root.game[monusing].star._alpha = 0;
doad[5] = doad[5] + 1;
}
if ((_root.game[monusing].typec == 3) && (_root.game[monusing].lv == 1)) {
_root.game[monusing].transfo = 1;
_root.game[monusing].nextlv = 150;
_root.game[monusing].xp = 0;
_root.game[monusing].gotoAndStop(4);
_root.game[monusing].atk = _root.game[monusing].atk + 1;
doad[7] = doad[7] + 1;
}
if ((_root.game[monusing].typec == 3) && (_root.game[monusing].lv == 2)) {
_root.game[monusing].transfo = 1;
_root.game[monusing].nextlv = 2000;
_root.game[monusing].gotoAndStop(6);
_root.game[monusing].xp = 0;
_root.game[monusing].star._alpha = 0;
doad[8] = doad[8] + 1;
}
if ((_root.game[monusing].typec == 4) && (_root.game[monusing].lv == 1)) {
_root.game[monusing].transfo = 1;
_root.game[monusing].nextlv = 25;
_root.game[monusing].gotoAndStop(7);
_root.game[monusing].xp = 0;
_root.game[monusing].atk = _root.game[monusing].atk + 2;
doad[10] = doad[10] + 1;
}
if ((_root.game[monusing].typec == 4) && (_root.game[monusing].lv == 2)) {
_root.game[monusing].transfo = 1;
_root.game[monusing].nextlv = 25;
_root.game[monusing].gotoAndStop(12);
_root.game[monusing].xp = 0;
_root.game[monusing].atk = _root.game[monusing].atk + 2;
_root.game[monusing].star._alpha = 0;
doad[11] = doad[11] + 1;
}
if ((_root.game[monusing].typec == 5) && (_root.game[monusing].lv == 1)) {
_root.game[monusing].transfo = 1;
_root.game[monusing].nextlv = 100;
_root.game[monusing].gotoAndStop(4);
_root.game[monusing].atk = _root.game[monusing].atk + 1;
_root.game[monusing].xp = 0;
doad[13] = doad[13] + 1;
}
if ((_root.game[monusing].typec == 5) && (_root.game[monusing].lv == 2)) {
_root.game[monusing].transfo = 1;
_root.game[monusing].nextlv = 200;
_root.game[monusing].gotoAndStop(6);
_root.game[monusing].atk = _root.game[monusing].atk + 1;
_root.game[monusing].xp = 0;
_root.game[monusing].star._alpha = 0;
doad[14] = doad[14] + 1;
}
if ((_root.game[monusing].typec == 6) && (_root.game[monusing].lv == 1)) {
_root.game[monusing].transfo = 1;
_root.game[monusing].nextlv = 100;
_root.game[monusing].gotoAndStop(4);
_root.game[monusing].atk = _root.game[monusing].atk + 1;
bonusbones = bonusbones + 1;
_root.game[monusing].xp = 0;
doad[16] = doad[16] + 1;
}
if ((_root.game[monusing].typec == 6) && (_root.game[monusing].lv == 2)) {
_root.game[monusing].transfo = 1;
_root.game[monusing].nextlv = 200;
_root.game[monusing].gotoAndStop(6);
_root.game[monusing].atk = _root.game[monusing].atk + 1;
bonusbones = bonusbones + 1;
_root.game[monusing].xp = 0;
_root.game[monusing].star._alpha = 0;
doad[17] = doad[17] + 1;
}
if ((_root.game[monusing].typec == 7) && (_root.game[monusing].lv == 1)) {
_root.game[monusing].transfo = 1;
_root.game[monusing].gotoAndStop(5);
_root.game[monusing].atk = _root.game[monusing].atk + 1;
_root.game[monusing].xp = 0;
doad[19] = doad[19] + 1;
}
if ((_root.game[monusing].typec == 7) && (_root.game[monusing].lv == 2)) {
_root.game[monusing].transfo = 1;
_root.game[monusing].gotoAndStop(8);
_root.game[monusing].atk = _root.game[monusing].atk + 1;
_root.game[monusing].xp = 0;
_root.game[monusing].star._alpha = 0;
doad[20] = doad[20] + 1;
}
if ((_root.game[monusing].typec == 8) && (_root.game[monusing].lv == 1)) {
_root.game[monusing].transfo = 1;
_root.game[monusing].nextlv = 150;
_root.game[monusing].gotoAndStop(5);
_root.game[monusing].atk = _root.game[monusing].atk + 1;
_root.game[monusing].xp = 0;
doad[22] = doad[22] + 1;
}
if ((_root.game[monusing].typec == 8) && (_root.game[monusing].lv == 2)) {
_root.game[monusing].transfo = 1;
_root.game[monusing].nextlv = 300;
_root.game[monusing].gotoAndStop(9);
_root.game[monusing].atk = _root.game[monusing].atk + 1;
_root.game[monusing].xp = 0;
_root.game[monusing].star._alpha = 0;
doad[23] = doad[23] + 1;
}
_root.game[monusing].lv = _root.game[monusing].lv + 1;
selectmon = false;
onthing = false;
_root.game.monmenu.gotoAndStop(1);
}
}
if ((_root.game.monmenu.upgb._currentframe == 1) && (_root.game[monusing].lv < 3)) {
_root.game.monmenu.atkb.gotoAndStop(1);
_root.game.monmenu.upgb.gotoAndStop(2);
_root.game.monmenu.sellb.gotoAndStop(1);
_root.game.monmenu.statusmon.gotoAndStop(3);
_root.game.monmenu.statusmon.evo.gotoAndStop(_root.game[monusing].typec + 1);
_root.game.monmenu.statusmon.evo.ev.gotoAndStop(_root.game[monusing].lv);
}
};
_root.game.monmenu.sellb.onPress = function () {
generals.clic.start(0, 1);
if (_root.game.monmenu.sellb._currentframe == 2) {
generals.mondet.start(0, 1);
bones = bones + (_root.game[monusing].money / 2);
if (_root.game[monusing].typec == 6) {
bonusbones = bonusbones - _root.game[monusing].atk;
}
_root.game.sellblood._x = _root.game[monusing]._x;
_root.game.sellblood._y = _root.game[monusing]._y - 15.5;
_root.game.sellblood.gotoAndPlay(2);
_root.game.cas[_root.game[monusing].zone].gotoAndStop(2);
_root.game[monusing].removeMovieClip();
selectmon = false;
onthing = false;
_root.game.monmenu.gotoAndStop(1);
}
if (_root.game.monmenu.sellb._currentframe == 1) {
_root.game.monmenu.atkb.gotoAndStop(1);
_root.game.monmenu.upgb.gotoAndStop(1);
_root.game.monmenu.sellb.gotoAndStop(2);
_root.game.monmenu.statusmon.gotoAndStop(4);
xmil = Math.floor((_root.game[monusing].money / 2) / 100);
xdeci = Math.floor(((_root.game[monusing].money / 2) - (xmil * 100)) / 10);
xuni = Math.floor(((_root.game[monusing].money / 2) - (xmil * 100)) - (xdeci * 10));
_root.game.monmenu.statusmon.mouni.gotoAndStop(xuni + 1);
_root.game.monmenu.statusmon.modeci.gotoAndStop(xdeci + 1);
_root.game.monmenu.statusmon.momil.gotoAndStop(xmil + 1);
if (xmil > 0) {
_root.game.monmenu.statusmon.mouni._alpha = 100;
_root.game.monmenu.statusmon.modeci._alpha = 100;
_root.game.monmenu.statusmon.momil._alpha = 100;
} else if (xdeci > 0) {
_root.game.monmenu.statusmon.mouni._alpha = 100;
_root.game.monmenu.statusmon.modeci._alpha = 100;
_root.game.monmenu.statusmon.momil._alpha = 0;
} else if (xuni > 0) {
_root.game.monmenu.statusmon.mouni._alpha = 100;
_root.game.monmenu.statusmon.modeci._alpha = 0;
_root.game.monmenu.statusmon.momil._alpha = 0;
} else if (((xuni == 0) && (xdeci == 0)) && (xmil == 0)) {
_root.game.monmenu.statusmon.mouni._alpha = 100;
_root.game.monmenu.statusmon.modeci._alpha = 0;
_root.game.monmenu.statusmon.momil._alpha = 0;
}
}
};
}
if ((magict < 1200) && (magicused == true)) {
magict = magict + 1;
}
if ((magict >= 1200) && (magicused == true)) {
magicused = false;
}
_root.game.queen.onPress = function () {
if (pausestate == false) {
selectmagic = true;
generals.clic.start(0, 1);
_root.game.magicm.gotoAndStop(2);
_root.game.magicm.magics.firem.maski._yscale = (magict * 100) / 1200;
_root.game.magicm.magics.icem.maski._yscale = (magict * 100) / 1200;
_root.game.magicm.magics.slimem.maski._yscale = (magict * 100) / 1200;
}
};
_root.game.magicm.magics.firem.maski._yscale = (magict * 100) / 1200;
_root.game.magicm.magics.icem.maski._yscale = (magict * 100) / 1200;
_root.game.magicm.magics.slimem.maski._yscale = (magict * 100) / 1200;
if (selectmagic == true) {
_root.game.magicm.magics.firem.onRollOver = function () {
onthing = true;
};
_root.game.magicm.magics.icem.onRollOver = function () {
onthing = true;
};
_root.game.magicm.magics.slimem.onRollOver = function () {
onthing = true;
};
_root.game.magicm.magics.firem.onRollOut = function () {
onthing = false;
};
_root.game.magicm.magics.icem.onRollOut = function () {
onthing = false;
};
_root.game.magicm.magics.slimem.onRollOut = function () {
onthing = false;
};
_root.game.magicm.magics.firem.onPress = function () {
if ((bones >= 200) && (magicused == false)) {
generals.clic.start(0, 1);
selectmagic = false;
onthing = false;
_root.game.magicm.gotoAndStop(1);
bones = bones - 200;
magict = 0;
magicused = true;
_root.game.firemag.gotoAndStop(2);
}
};
_root.game.magicm.magics.icem.onPress = function () {
if ((bones >= 100) && (magicused == false)) {
generals.clic.start(0, 1);
selectmagic = false;
onthing = false;
_root.game.magicm.gotoAndStop(1);
bones = bones - 100;
magict = 0;
magicused = true;
_root.game.icemag.gotoAndStop(2);
s = 0;
while (s < soldierlist.length) {
selects = _root.game[soldierlist[s]];
if (selects._currentframe == 3) {
selects.icecy.gotoAndStop(2);
selects.froze = 1;
}
s++;
}
}
};
_root.game.magicm.magics.slimem.onPress = function () {
if ((bones >= 300) && (magicused == false)) {
generals.clic.start(0, 1);
selectmagic = false;
onthing = false;
_root.game.magicm.gotoAndStop(1);
bones = bones - 300;
magict = 0;
magicused = true;
_root.game.slimemag.gotoAndStop(2);
}
};
}
if (_root.game.firemag.fireon._currentframe == 22) {
generals.firemm.start(0, 1);
}
if (_root.game.icemag.an._currentframe == 4) {
generals.icemm.start(0, 1);
}
if ((_root.game.slimemag.slimy._currentframe == 14) || (_root.game.slimemag.slimy._currentframe == 17)) {
generals.slimemm.start(0, 1);
}
if (_root.game.slimemag.slimy._currentframe == 13) {
s = 0;
while (s < soldierlist.length) {
selects = _root.game[soldierlist[s]];
selects.slowt = 240;
selects.slow = 10;
selects.slimy.gotoAndStop(3);
s++;
}
}
_root.onMouseDown = function () {
if ((selecttomb == true) && (onthing == false)) {
selecttomb = false;
_root.game.cas[tombusing].gotoAndStop(3);
_root.game.tmenu.gotoAndStop(1);
selectmon = false;
selectmagic = false;
_root.game.monmenu.gotoAndStop(1);
}
if ((selectmon == true) && (onthing == false)) {
selectmon = false;
selecttomb = false;
selectmagic = false;
_root.game.tmenu.gotoAndStop(1);
_root.game.monmenu.gotoAndStop(1);
}
if ((selectmagic == true) && (onthing == false)) {
selectmon = false;
selecttomb = false;
selectmagic = false;
_root.game.magicm.gotoAndStop(1);
_root.game.tmenu.gotoAndStop(1);
_root.game.monmenu.gotoAndStop(1);
}
};
}
function monsters() {
i = 0;
while (i < creaturelist.length) {
selectc = _root.game[creaturelist[i]];
if (selectc.exist != 1) {
creaturelist.splice(i, 1);
}
selectc.star.expcon.expb._xscale = (selectc.xp * 100) / selectc.nextlv;
selectc.onPress = function () {
if (pausestate == false) {
generals.clic.start(0, 1);
this.rangec.gotoAndPlay(2);
selectmon = true;
monusing = this._name;
_root.game.monmenu._x = this._x;
_root.game.monmenu._y = this._y + 20;
_root.game.monmenu.gotoAndStop(2);
}
};
if ((selectc.transfo == 1) && (selectc.trans._currentframe == 10)) {
selectc.transfo = 0;
}
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(10);
}
}
}
}
i++;
}
}
function soldiers() {
if (_root.game.gameov.times._currentframe == 39) {
_root.cortiout.gotoAndPlay(2);
}
if (_root.game.victo.times._currentframe == 69) {
_root.cortiout.gotoAndPlay(2);
}
if (_root.game.victo.times._currentframe == 30) {
_root.game.victo.times.starp.gotoAndStop(starpoints + 1);
}
if (wavedeath == true) {
_root.game.nextwi._alpha = 100;
_root.game.nextwi.maski._yscale = (nextwavec * 100) / 60;
keysecondss++;
_root.game.nextwi.onPress = function () {
if (pausestate == false) {
_root.game.nextwi._x = -100;
if (nextwavec <= 60) {
bones = bones + nextwavec;
}
nextwavec = 0;
generals.cam.start(0, 1);
}
};
if (keysecondss >= 12) {
keysecondss = 0;
nextwavec = nextwavec - 1;
}
if (nextwavec <= 0) {
keysecondss = 0;
soldierlist = [];
bloodlist = [];
wavedeath = false;
_root.game.nextwi._alpha = 0;
}
}
if ((hpqueen < 0) && (_root.game.queen.gulp._currentframe == 34)) {
_root.game.gameov.gotoAndStop(2);
gameover = true;
stopAllSounds();
generals.gove.start(0, 1);
}
if (((wavedeath == false) && (victory == false)) && (gameover == false)) {
keysecondss++;
if ((keysecondss >= 16) && (soldierbox[soldierwave - 1][numsoldier] != 0)) {
if (soldierbox[soldierwave - 1][numsoldier] == 1) {
_root.game.attachMovie("soldieraclip", "soldier" + deeps, deeps, {_x:-50, _y:300, 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, slowt:0, stoput:0});
_root.game["soldier" + deeps].gotoAndStop(2);
soldierlist.push("soldier" + deeps);
deeps--;
numsoldier++;
}
if (soldierbox[soldierwave - 1][numsoldier] == 2) {
_root.game.attachMovie("soldierb", "soldier" + deeps, deeps, {_x:-50, _y:300, 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, slowt:0, stoput:0});
_root.game["soldier" + deeps].gotoAndStop(2);
soldierlist.push("soldier" + deeps);
deeps--;
numsoldier++;
}
if (soldierbox[soldierwave - 1][numsoldier] == 3) {
_root.game.attachMovie("soldierc", "soldier" + deeps, deeps, {_x:-50, _y:300, exist:1, types:3, money:15, 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, slowt:0, stoput:0});
_root.game["soldier" + deeps].gotoAndStop(2);
soldierlist.push("soldier" + deeps);
deeps--;
numsoldier++;
}
if (soldierbox[soldierwave - 1][numsoldier] == 5) {
_root.game.attachMovie("soldiere", "soldier" + deeps, deeps, {_x:-50, _y:300, exist:1, types:5, money:20, dir:0, hp:100, hpt:100, speed:1, lev:1, slow:0, acid:0, stopu:0, froze:0, blow:0, special:0, killhim:0, mdeath:0, slowt:0, stoput:0});
_root.game["soldier" + deeps].gotoAndStop(2);
soldierlist.push("soldier" + deeps);
deeps--;
numsoldier++;
}
if (soldierbox[soldierwave - 1][numsoldier] == 6) {
_root.game.attachMovie("soldierf", "soldier" + deeps, deeps, {_x:-50, _y:300, exist:1, types:6, 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, slowt:0, stoput:0});
_root.game["soldier" + deeps].gotoAndStop(2);
soldierlist.push("soldier" + deeps);
deeps--;
numsoldier++;
}
if (soldierbox[soldierwave - 1][numsoldier] == 7) {
_root.game.attachMovie("soldierg", "soldier" + deeps, deeps, {_x:-50, _y:300, exist:1, types:7, 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, hike:2, mdeath:0, slowt:0, stoput:0});
_root.game["soldier" + deeps].gotoAndStop(2);
soldierlist.push("soldier" + deeps);
deeps--;
numsoldier++;
}
if (soldierbox[soldierwave - 1][numsoldier] == 8) {
_root.game.attachMovie("soldierh", "soldier" + deeps, deeps, {_x:-50, _y:300, exist:1, types:8, money:20, dir:0, hp:80, hpt:80, speed:3, lev:1, slow:0, acid:0, stopu:0, froze:0, blow:0, special:0, killhim:0, mdeath:0, slowt:0, stoput:0});
_root.game["soldier" + deeps].gotoAndStop(2);
soldierlist.push("soldier" + deeps);
deeps--;
numsoldier++;
}
if (soldierbox[soldierwave - 1][numsoldier] == 9) {
_root.game.attachMovie("soldieri", "soldier" + deeps, deeps, {_x:-50, _y:300, exist:1, types:9, money:50, 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, slowt:0, stoput:0});
_root.game["soldier" + deeps].gotoAndStop(2);
soldierlist.push("soldier" + deeps);
deeps--;
numsoldier++;
}
if (soldierbox[soldierwave - 1][numsoldier] == 10) {
_root.game.attachMovie("soldierj", "soldier" + deeps, deeps, {_x:-50, _y:300, exist:1, types:10, money:50, dir:0, hp:200, hpt:200, speed:7, lev:1, slow:0, acid:0, stopu:0, froze:0, blow:0, special:0, killhim:0, mdeath:0, slowt:0, stoput:0});
_root.game["soldier" + deeps].gotoAndStop(2);
soldierlist.push("soldier" + deeps);
deeps--;
numsoldier++;
}
if (soldierbox[soldierwave - 1][numsoldier] == 11) {
_root.game.attachMovie("soldieraclip", "soldier" + deeps, deeps, {_x:-50, _y:300, exist:1, types:1, money:10, 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, slowt:0, stoput:0});
_root.game["soldier" + deeps].gotoAndStop(2);
soldierlist.push("soldier" + deeps);
deeps--;
numsoldier++;
}
if (soldierbox[soldierwave - 1][numsoldier] == 12) {
_root.game.attachMovie("soldierb", "soldier" + deeps, deeps, {_x:-50, _y:300, exist:1, types:2, money:10, dir:0, hp:120, hpt:120, speed:5, lev:1, slow:0, acid:0, stopu:0, froze:0, blow:0, special:0, killhim:0, mdeath:0, slowt:0, stoput:0});
_root.game["soldier" + deeps].gotoAndStop(2);
soldierlist.push("soldier" + deeps);
deeps--;
numsoldier++;
}
if (soldierbox[soldierwave - 1][numsoldier] == 13) {
_root.game.attachMovie("soldierc", "soldier" + deeps, deeps, {_x:-50, _y:300, exist:1, types:3, money:15, 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, slowt:0, stoput:0});
_root.game["soldier" + deeps].gotoAndStop(2);
soldierlist.push("soldier" + deeps);
deeps--;
numsoldier++;
}
if (soldierbox[soldierwave - 1][numsoldier] == 15) {
_root.game.attachMovie("soldiere", "soldier" + deeps, deeps, {_x:-50, _y:300, exist:1, types:5, money:20, dir:0, hp:400, hpt:400, speed:1, lev:1, slow:0, acid:0, stopu:0, froze:0, blow:0, special:0, killhim:0, mdeath:0, slowt:0, stoput:0});
_root.game["soldier" + deeps].gotoAndStop(2);
soldierlist.push("soldier" + deeps);
deeps--;
numsoldier++;
}
if (soldierbox[soldierwave - 1][numsoldier] == 16) {
_root.game.attachMovie("soldierf", "soldier" + deeps, deeps, {_x:-50, _y:300, exist:1, types:6, 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, slowt:0, stoput:0});
_root.game["soldier" + deeps].gotoAndStop(2);
soldierlist.push("soldier" + deeps);
deeps--;
numsoldier++;
}
if (soldierbox[soldierwave - 1][numsoldier] == 17) {
_root.game.attachMovie("soldierg", "soldier" + deeps, deeps, {_x:-50, _y:300, exist:1, types:7, 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, hike:2, mdeath:0, slowt:0, stoput:0});
_root.game["soldier" + deeps].gotoAndStop(2);
soldierlist.push("soldier" + deeps);
deeps--;
numsoldier++;
}
if (soldierbox[soldierwave - 1][numsoldier] == 18) {
_root.game.attachMovie("soldierh", "soldier" + deeps, deeps, {_x:-50, _y:300, exist:1, types:8, money:20, dir:0, hp:320, hpt:320, speed:3, lev:1, slow:0, acid:0, stopu:0, froze:0, blow:0, special:0, killhim:0, mdeath:0, slowt:0, stoput:0});
_root.game["soldier" + deeps].gotoAndStop(2);
soldierlist.push("soldier" + deeps);
deeps--;
numsoldier++;
}
if (soldierbox[soldierwave - 1][numsoldier] == 19) {
_root.game.attachMovie("soldieri", "soldier" + deeps, deeps, {_x:-50, _y:300, exist:1, types:9, money:50, dir:0, hp:2000, hpt:2000, speed:1, lev:1, slow:0, acid:0, stopu:0, froze:0, blow:0, special:0, killhim:0, mdeath:0, slowt:0, stoput:0});
_root.game["soldier" + deeps].gotoAndStop(2);
soldierlist.push("soldier" + deeps);
deeps--;
numsoldier++;
}
if (soldierbox[soldierwave - 1][numsoldier] == 20) {
_root.game.attachMovie("soldierj", "soldier" + deeps, deeps, {_x:-50, _y:300, exist:1, types:10, money:50, dir:0, hp:800, hpt:800, speed:7, lev:1, slow:0, acid:0, stopu:0, froze:0, blow:0, special:0, killhim:0, mdeath:0, slowt:0, stoput:0});
_root.game["soldier" + deeps].gotoAndStop(2);
soldierlist.push("soldier" + deeps);
deeps--;
numsoldier++;
}
if (soldierbox[soldierwave - 1][numsoldier] == 21) {
_root.game.attachMovie("soldieraclip", "soldier" + deeps, deeps, {_x:-50, _y:300, exist:1, types:1, money:10, 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, slowt:0, stoput:0});
_root.game["soldier" + deeps].gotoAndStop(2);
soldierlist.push("soldier" + deeps);
deeps--;
numsoldier++;
}
if (soldierbox[soldierwave - 1][numsoldier] == 22) {
_root.game.attachMovie("soldierb", "soldier" + deeps, deeps, {_x:-50, _y:300, exist:1, types:2, money:10, dir:0, hp:300, hpt:300, speed:5, lev:1, slow:0, acid:0, stopu:0, froze:0, blow:0, special:0, killhim:0, mdeath:0, slowt:0, stoput:0});
_root.game["soldier" + deeps].gotoAndStop(2);
soldierlist.push("soldier" + deeps);
deeps--;
numsoldier++;
}
if (soldierbox[soldierwave - 1][numsoldier] == 23) {
_root.game.attachMovie("soldierc", "soldier" + deeps, deeps, {_x:-50, _y:300, exist:1, types:3, money:15, dir:0, hp:1000, hpt:1000, speed:2, lev:1, slow:0, acid:0, stopu:0, froze:0, blow:0, special:0, killhim:0, mdeath:0, slowt:0, stoput:0});
_root.game["soldier" + deeps].gotoAndStop(2);
soldierlist.push("soldier" + deeps);
deeps--;
numsoldier++;
}
if (soldierbox[soldierwave - 1][numsoldier] == 25) {
_root.game.attachMovie("soldiere", "soldier" + deeps, deeps, {_x:-50, _y:300, exist:1, types:5, money:20, 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, slowt:0, stoput:0});
_root.game["soldier" + deeps].gotoAndStop(2);
soldierlist.push("soldier" + deeps);
deeps--;
numsoldier++;
}
if (soldierbox[soldierwave - 1][numsoldier] == 26) {
_root.game.attachMovie("soldierf", "soldier" + deeps, deeps, {_x:-50, _y:300, exist:1, types:6, money:20, dir:0, hp:500, hpt:500, speed:3, lev:1, slow:0, acid:0, stopu:0, froze:0, blow:0, special:0, killhim:0, mdeath:0, slowt:0, stoput:0});
_root.game["soldier" + deeps].gotoAndStop(2);
soldierlist.push("soldier" + deeps);
deeps--;
numsoldier++;
}
if (soldierbox[soldierwave - 1][numsoldier] == 27) {
_root.game.attachMovie("soldierg", "soldier" + deeps, deeps, {_x:-50, _y:300, exist:1, types:7, money:20, dir:0, hp:500, hpt:500, speed:3, lev:1, slow:0, acid:0, stopu:0, froze:0, blow:0, special:0, killhim:0, hike:2, mdeath:0, slowt:0, stoput:0});
_root.game["soldier" + deeps].gotoAndStop(2);
soldierlist.push("soldier" + deeps);
deeps--;
numsoldier++;
}
if (soldierbox[soldierwave - 1][numsoldier] == 28) {
_root.game.attachMovie("soldierh", "soldier" + deeps, deeps, {_x:-50, _y:300, exist:1, types:8, money:20, dir:0, hp:800, hpt:800, speed:3, lev:1, slow:0, acid:0, stopu:0, froze:0, blow:0, special:0, killhim:0, mdeath:0, slowt:0, stoput:0});
_root.game["soldier" + deeps].gotoAndStop(2);
soldierlist.push("soldier" + deeps);
deeps--;
numsoldier++;
}
if (soldierbox[soldierwave - 1][numsoldier] == 29) {
_root.game.attachMovie("soldieri", "soldier" + deeps, deeps, {_x:-50, _y:300, exist:1, types:9, money:50, dir:0, hp:5000, hpt:5000, speed:1, lev:1, slow:0, acid:0, stopu:0, froze:0, blow:0, special:0, killhim:0, mdeath:0, slowt:0, stoput:0});
_root.game["soldier" + deeps].gotoAndStop(2);
soldierlist.push("soldier" + deeps);
deeps--;
numsoldier++;
}
if (soldierbox[soldierwave - 1][numsoldier] == 30) {
_root.game.attachMovie("soldierj", "soldier" + deeps, deeps, {_x:-50, _y:300, exist:1, types:10, money:50, dir:0, hp:2000, hpt:2000, speed:7, lev:1, slow:0, acid:0, stopu:0, froze:0, blow:0, special:0, killhim:0, mdeath:0, slowt:0, stoput:0});
_root.game["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) && (hpqueen >= 0)) {
victory = true;
stopAllSounds();
generals.victo.start(0, 1);
soldierwave = soldierbox.length;
_root.game.victo.gotoAndStop(2);
if (hpqueen == 4) {
starpoints++;
}
if (hpqueen >= 2) {
starpoints++;
}
if (bones > 500) {
starpoints++;
}
}
if (victory == false) {
nextwavec = 60;
_root.game.nextwi._x = 30;
}
}
s = 0;
while (s < soldierlist.length) {
selects = _root.game[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 != 3)) {
selects.special = 1;
selects.gotoAndStop(5);
_root.game.queen.gotoAndStop(2);
}
if (((((distalxq < 35) && (distalyq < 30)) && (selects._x > _root.game.queen._x)) && (hpqueen <= 0)) && (_root.game.queen._currentframe != 3)) {
selects.special = 1;
selects.gotoAndStop(5);
_root.game.queen.gotoAndStop(3);
}
if (((((distalxq < 35) && (distalyq < 30)) && (selects._x > _root.game.queen._x)) && (_root.game.queen.eat._currentframe == 9)) || ((((distalxq < 35) && (distalyq < 30)) && (selects._x > _root.game.queen._x)) && (_root.game.queen.gulp._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);
generals.ende.start(0, 1);
_root.hdeath.gotoAndPlay(2);
}
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) && (hike != 1)) {
selects.stopu = 0;
selects.gotoAndStop(10);
if (selects.cold._currentframe == 60) {
selects.froze = 0;
}
}
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;
}
if (((((((((selects._x > 95) && (selects.stopu <= 0)) && (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 - 7;
}
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 - 4;
}
if (((((selects.types == 7) && (selects.attack._currentframe == 21)) && (selects.special == 1)) && (selects.hike == 1)) && (selects.froze == 0)) {
if (selects.lev == 1) {
selects._y = 240;
}
if (selects.lev == 2) {
selects._y = 180;
}
if (selects.lev == 3) {
selects._y = 120;
}
}
if ((((selects.types == 7) && (selects.attack._currentframe == 24)) && (selects.dir == 0)) && (selects.hike == 1)) {
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 < 95) && (selects.dir == 1)) {
selects._xscale = 100;
selects.hpbase._xscale = 100;
selects.dir = 0;
}
if ((selects._x > 385) && (selects.dir == 0)) {
selects._xscale = -100;
selects.hpbase._xscale = -100;
selects.dir = 1;
}
if (((selects.slimy._currentframe == 2) && (selects.slowt <= 0)) || ((selects.slimy._currentframe == 3) && (selects.slowt <= 0))) {
selects.slimy.gotoAndStop(1);
}
if (selects.slimy._currentframe == 3) {
selects.hp = selects.hp - 0.2;
}
if ((((_root.game.firemag.fireon._currentframe > 18) && (_root.game.firemag.fireon._currentframe < 130)) && (selects._y > 200)) && (selects._x > 10)) {
selects.hp = selects.hp - 5;
}
if ((selects.stopu > 0) && (selects.froze == 0)) {
selects.stopu = selects.stopu - 1;
selects.gotoAndStop(5);
}
if ((((selects.dir == 0) && (selects._currentframe == 3)) || ((selects.dir == 0) && (selects._currentframe == 5))) || ((selects.dir == 0) && (selects._currentframe == 6))) {
if (selects.special == 0) {
if ((selects.blow == 1) && (selects.types != 9)) {
selects._x = selects._x - 10;
selects.blow = 0;
}
if (selects.slowt >= 0) {
speedtotal = selects.speed - selects.slow;
selects.slowt = selects.slowt - 1;
if (speedtotal <= 0) {
speedtotal = 1;
}
if ((selects._currentframe != 3) && (selects.stopu <= 0)) {
selects.gotoAndStop(3);
}
if (selects.stopu <= 0) {
selects._x = selects._x + speedtotal;
}
}
if ((selects.stopu <= 0) && (selects.slowt <= 0)) {
selects._x = selects._x + selects.speed;
if (selects._currentframe != 3) {
selects.gotoAndStop(3);
}
}
}
}
if ((((selects.dir == 1) && (selects._currentframe == 3)) || ((selects.dir == 1) && (selects._currentframe == 5))) || ((selects.dir == 1) && (selects._currentframe == 6))) {
if (selects.special == 0) {
if ((selects.blow == 1) && (selects.types != 9)) {
selects._x = selects._x + 10;
selects.blow = 0;
}
if (selects.slowt >= 0) {
speedtotal = selects.speed - selects.slow;
selects.slowt = selects.slowt - 1;
if (speedtotal <= 0) {
speedtotal = 1;
}
if ((selects._currentframe != 3) && (selects.stopu <= 0)) {
selects.gotoAndStop(3);
}
if (selects.stopu <= 0) {
selects._x = selects._x - speedtotal;
}
}
if ((selects.stopu <= 0) && (selects.slowt <= 0)) {
selects._x = selects._x - selects.speed;
if (selects._currentframe != 3) {
selects.gotoAndStop(3);
}
}
}
}
if (selects.hp <= 0) {
_root.game.attachMovie("bloodred", "splash" + deepr, deepr, {_x:selects._x, _y:selects._y - 12.5, exist:1});
_root.game["splash" + deepr].gotoAndStop(2);
bloodlist.push("splash" + deepr);
deepr++;
if (selects.mdeath == 0) {
bones = bones + (selects.money + bonusbones);
}
generals.ende.start(0, 1);
enkilled++;
if (((selects.types == 1) && (selects.types == 11)) && (selects.types == 21)) {
doad[24] = doad[24] + 1;
}
if (((selects.types == 2) && (selects.types == 12)) && (selects.types == 22)) {
doad[25] = doad[25] + 1;
}
if (((selects.types == 3) && (selects.types == 13)) && (selects.types == 23)) {
doad[26] = doad[26] + 1;
}
if (((selects.types == 5) && (selects.types == 15)) && (selects.types == 25)) {
doad[27] = doad[27] + 1;
}
if (((selects.types == 6) && (selects.types == 16)) && (selects.types == 26)) {
doad[28] = doad[28] + 1;
}
if (((selects.types == 7) && (selects.types == 17)) && (selects.types == 27)) {
doad[29] = doad[29] + 1;
}
if (((selects.types == 8) && (selects.types == 18)) && (selects.types == 28)) {
doad[30] = doad[30] + 1;
}
if (((selects.types == 9) && (selects.types == 19)) && (selects.types == 29)) {
doad[31] = doad[31] + 1;
}
if (((selects.types == 10) && (selects.types == 20)) && (selects.types == 30)) {
doad[32] = doad[32] + 1;
}
selects.exist = 0;
selects.removeMovieClip();
soldierlist.splice(s, 1);
}
selects.mdeath = 0;
if ((selects.types == 5) && (selects.attack._currentframe == 10)) {
selects.exist = 0;
selects.removeMovieClip();
soldierlist.splice(s, 1);
}
if (((selects.exit._currentframe >= 1) && (selects.exit._currentframe <= 5)) && (selects._alpha < 100)) {
selects._alpha = selects._alpha + 20;
}
if (((selects.statess._currentframe >= 1) && (selects.statess._currentframe <= 10)) && (selects._alpha > 0)) {
selects._alpha = selects._alpha - 10;
}
if (((level >= 1) && (level <= 4)) || (level == 7)) {
if ((selects.exit._currentframe == 17) && (selects.lev == 1)) {
selects._x = _root.game.cas.ds2._x;
selects._y = _root.game.cas.ds2._y + 20;
selects.gotoAndStop(2);
selects.hpbase._alpha = 100;
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.cas.ds4._x;
selects._y = _root.game.cas.ds4._y + 20;
selects.gotoAndStop(2);
selects.hpbase._alpha = 100;
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.cas.ds6._x;
selects._y = _root.game.cas.ds6._y + 20;
selects.gotoAndStop(2);
selects.hpbase._alpha = 100;
selects.dir = 1;
selects._xscale = -100;
selects.hpbase._xscale = -100;
selects.lev = 4;
}
}
if (level == 5) {
if ((selects.exit._currentframe == 17) && (selects.lev == 1)) {
randatk = Math.floor(Math.random() * 2);
if (randatk == 0) {
selects._x = _root.game.cas.ds2._x;
selects._y = _root.game.cas.ds2._y + 20;
selects.gotoAndStop(2);
selects.hpbase._alpha = 100;
selects.dir = 0;
selects._xscale = 100;
selects.hpbase._xscale = 100;
selects.lev = 2;
}
if (randatk == 1) {
selects._x = _root.game.cas.ds4._x;
selects._y = _root.game.cas.ds4._y + 20;
selects.gotoAndStop(2);
selects.hpbase._alpha = 100;
selects.dir = 0;
selects._xscale = 100;
selects.hpbase._xscale = 100;
selects.lev = 3;
}
}
if (((selects.exit._currentframe == 17) && (selects.lev == 2)) || ((selects.exit._currentframe == 17) && (selects.lev == 3))) {
selects._x = _root.game.cas.ds6._x;
selects._y = _root.game.cas.ds6._y + 20;
selects.gotoAndStop(2);
selects.hpbase._alpha = 100;
selects.dir = 1;
selects._xscale = -100;
selects.hpbase._xscale = -100;
selects.lev = 4;
}
}
if (level == 6) {
if ((selects.exit._currentframe == 17) && (selects.lev == 1)) {
randatk = Math.floor(Math.random() * 2);
if (randatk == 0) {
selects._x = _root.game.cas.ds2._x;
selects._y = _root.game.cas.ds2._y + 20;
selects.gotoAndStop(2);
selects.hpbase._alpha = 100;
selects.dir = 1;
selects._xscale = -100;
selects.hpbase._xscale = -100;
selects.lev = 2;
}
if (randatk == 1) {
selects._x = _root.game.cas.ds3._x;
selects._y = _root.game.cas.ds3._y + 20;
selects.gotoAndStop(2);
selects.hpbase._alpha = 100;
selects.dir = 0;
selects._xscale = 100;
selects.hpbase._xscale = 100;
selects.lev = 2;
}
}
if ((selects.exit._currentframe == 17) && (selects.lev == 2)) {
randatk = Math.floor(Math.random() * 2);
if (randatk == 0) {
selects._x = _root.game.cas.ds5._x;
selects._y = _root.game.cas.ds5._y + 20;
selects.gotoAndStop(2);
selects.hpbase._alpha = 100;
selects.dir = 1;
selects._xscale = -100;
selects.hpbase._xscale = -100;
selects.lev = 3;
}
if (randatk == 1) {
selects._x = _root.game.cas.ds6._x;
selects._y = _root.game.cas.ds6._y + 20;
selects.gotoAndStop(2);
selects.hpbase._alpha = 100;
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.cas.ds8._x;
selects._y = _root.game.cas.ds8._y + 20;
selects.gotoAndStop(2);
selects.hpbase._alpha = 100;
selects.dir = 1;
selects._xscale = -100;
selects.hpbase._xscale = -100;
selects.lev = 4;
}
}
if (level == 8) {
if ((selects.exit._currentframe == 17) && (selects.lev == 1)) {
randatk = Math.floor(Math.random() * 4);
if (randatk == 0) {
selects._x = _root.game.cas.ds2._x;
selects._y = _root.game.cas.ds2._y + 20;
selects.gotoAndStop(2);
selects.hpbase._alpha = 100;
selects.dir = 1;
selects._xscale = -100;
selects.hpbase._xscale = -100;
selects.lev = 2;
}
if (randatk == 1) {
selects._x = _root.game.cas.ds4._x;
selects._y = _root.game.cas.ds4._y + 20;
selects.gotoAndStop(2);
selects.hpbase._alpha = 100;
selects.dir = 0;
selects._xscale = 100;
selects.hpbase._xscale = 100;
selects.lev = 2;
}
if (randatk == 2) {
selects._x = _root.game.cas.ds3._x;
selects._y = _root.game.cas.ds3._y + 20;
selects.gotoAndStop(2);
selects.hpbase._alpha = 100;
selects.dir = 1;
selects._xscale = -100;
selects.hpbase._xscale = -100;
selects.lev = 3;
}
if (randatk == 3) {
selects._x = _root.game.cas.ds5._x;
selects._y = _root.game.cas.ds5._y + 20;
selects.gotoAndStop(2);
selects.hpbase._alpha = 100;
selects.dir = 0;
selects._xscale = 100;
selects.hpbase._xscale = 100;
selects.lev = 3;
}
}
if (((selects.exit._currentframe == 17) && (selects.lev == 2)) || ((selects.exit._currentframe == 17) && (selects.lev == 3))) {
selects._x = _root.game.cas.ds8._x;
selects._y = _root.game.cas.ds8._y + 20;
selects.gotoAndStop(2);
selects.hpbase._alpha = 100;
selects.dir = 1;
selects._xscale = -100;
selects.hpbase._xscale = -100;
selects.lev = 4;
}
}
}
if ((((level >= 1) && (level <= 4)) || (level == 7)) || (level == 5)) {
if (((selects._x >= (_root.game.cas.ds1._x - 5)) && (selects._x <= (_root.game.cas.ds1._x + 5))) && (selects.lev == 1)) {
selects._x = _root.game.cas.ds1._x;
selects.gotoAndStop(4);
}
if (((selects._x >= (_root.game.cas.ds3._x - 5)) && (selects._x <= (_root.game.cas.ds3._x + 5))) && (selects.lev == 2)) {
selects._x = _root.game.cas.ds3._x;
selects.gotoAndStop(4);
}
if (((selects._x >= (_root.game.cas.ds5._x - 5)) && (selects._x <= (_root.game.cas.ds5._x + 5))) && (selects.lev == 3)) {
selects._x = _root.game.cas.ds5._x;
selects.gotoAndStop(4);
}
}
if (level == 6) {
if (((selects._x >= (_root.game.cas.ds1._x - 5)) && (selects._x <= (_root.game.cas.ds1._x + 5))) && (selects.lev == 1)) {
selects._x = _root.game.cas.ds1._x;
selects.gotoAndStop(4);
}
if (((selects._x >= (_root.game.cas.ds4._x - 5)) && (selects._x <= (_root.game.cas.ds4._x + 5))) && (selects.lev == 2)) {
selects._x = _root.game.cas.ds4._x;
selects.gotoAndStop(4);
}
if (((selects._x >= (_root.game.cas.ds7._x - 5)) && (selects._x <= (_root.game.cas.ds7._x + 5))) && (selects.lev == 3)) {
selects._x = _root.game.cas.ds7._x;
selects.gotoAndStop(4);
}
}
if (level == 8) {
if (((selects._x >= (_root.game.cas.ds1._x - 5)) && (selects._x <= (_root.game.cas.ds1._x + 5))) && (selects.lev == 1)) {
selects._x = _root.game.cas.ds1._x;
selects.gotoAndStop(4);
}
if (((selects._x >= (_root.game.cas.ds6._x - 5)) && (selects._x <= (_root.game.cas.ds6._x + 5))) && (selects.lev == 2)) {
selects._x = _root.game.cas.ds6._x;
selects.gotoAndStop(4);
}
if (((selects._x >= (_root.game.cas.ds7._x - 5)) && (selects._x <= (_root.game.cas.ds7._x + 5))) && (selects.lev == 3)) {
selects._x = _root.game.cas.ds7._x;
selects.gotoAndStop(4);
}
}
s++;
}
}
}
function bulletmoves() {
p = 0;
while (p < bulletlist.length) {
bulls = _root.game[bulletlist[p]];
if (bulls.exist != 1) {
bulletlist.splice(p, 1);
}
if ((((((bulls.types == 1) || (bulls.types == 2)) || (bulls.types == 4)) || (bulls.types == 5)) || (bulls.types == 7)) || (bulls.types == 8)) {
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[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();
}
}
if (((((((bulls.types == 1) || (bulls.types == 2)) || (bulls.types == 4)) || (bulls.types == 5)) || (bulls.types == 6)) || (bulls.types == 7)) || (bulls.types == 8)) {
if (((bulls.dir == 0) && (bulls._x < -10)) && (bulls._y > 250)) {
bulls.removeMovieClip();
}
if (((bulls.dir == 0) && (bulls._x < 90)) && (bulls._y <= 250)) {
bulls.removeMovieClip();
}
if ((bulls.dir == 1) && (bulls._x > 395)) {
bulls.removeMovieClip();
}
}
f = 0;
while (f < soldierlist.length) {
soldierbc = _root.game[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();
}
}
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();
}
}
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 > 90)) {
soldierbc._x = soldierbc._x - 5;
}
if (((soldierbc.dir == 1) && (soldierbc.types != 9)) && (soldierbc._x < 395)) {
soldierbc._x = soldierbc._x + 5;
}
bulls.exist = 0;
bulls.removeMovieClip();
}
}
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 > 90)) {
soldierbc._x = soldierbc._x - 5;
}
if (((soldierbc.dir == 1) && (soldierbc.types != 9)) && (soldierbc._x < 395)) {
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 > 90)) {
soldierbc._x = soldierbc._x - 2;
}
if (((soldierbc.dir == 1) && (soldierbc.types != 9)) && (soldierbc._x < 395)) {
soldierbc._x = soldierbc._x + 2;
}
}
}
if (bulls.types == 7) {
if (((distalx < 10) && (distaly < 30)) && (bulls.exist == 1)) {
soldierbc.hp = soldierbc.hp - bulls.dmg;
bulls.exist = 0;
bulls.removeMovieClip();
}
}
if (bulls.types == 8) {
if (((distalx < 10) && (distaly < 30)) && (bulls.exist == 1)) {
soldierbc.hp = soldierbc.hp - bulls.dmg;
bulls.exist = 0;
soldierbc.froze = 1;
bulls.removeMovieClip();
}
}
f++;
}
p++;
}
}
function monstermove() {
r = 0;
while (r < creaturelist.length) {
selectc = _root.game[creaturelist[r]];
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, _y:selectc._y - 11, 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++;
generals.planti.start(0, 1);
}
if (((selectc.lv == 1) && (selectc.dir == 1)) && (selectc.atktempo == 1)) {
_root.game.attachMovie("spellet", "bullet" + deepb, deepb, {_x:selectc._x + 8, _y:selectc._y - 11, 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++;
generals.planti.start(0, 1);
}
if ((((selectc.lv == 2) && (selectc.dir == 0)) && (selectc.atktempo == 2)) && (selectc.attack._currentframe == 6)) {
randatk = Math.floor(Math.random() * 2);
if (randatk == 0) {
masatk = 1;
}
if (randatk == 1) {
masatk = 3;
}
_root.game.attachMovie("spellet", "bullet" + deepb, deepb, {_x:selectc._x - 13, _y:selectc._y - 13, exist:1, types:1, dir:selectc.dir, dmg:selectc.atk * masatk});
if (randatk == 0) {
_root.game["bullet" + deepb].gotoAndStop(2);
}
if (randatk == 1) {
_root.game["bullet" + deepb].gotoAndStop(3);
}
bulletlist.push("bullet" + deepb);
deepb++;
selectc.atktempo = 1;
selectc.xp++;
generals.planti.start(0, 1);
}
if ((((selectc.lv == 2) && (selectc.dir == 1)) && (selectc.atktempo == 2)) && (selectc.attack._currentframe == 6)) {
randatk = Math.floor(Math.random() * 2);
if (randatk == 0) {
masatk = 1;
}
if (randatk == 1) {
masatk = 3;
}
_root.game.attachMovie("spellet", "bullet" + deepb, deepb, {_x:selectc._x + 13, _y:selectc._y - 13, exist:1, types:1, dir:selectc.dir, dmg:selectc.atk * masatk});
if (randatk == 0) {
_root.game["bullet" + deepb].gotoAndStop(2);
}
if (randatk == 1) {
_root.game["bullet" + deepb].gotoAndStop(3);
}
bulletlist.push("bullet" + deepb);
deepb++;
selectc.atktempo = 1;
selectc.xp++;
generals.planti.start(0, 1);
}
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++;
generals.planti.start(0, 1);
}
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++;
generals.planti.start(0, 1);
}
}
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);
}
if (selectc.lv == 2) {
selectc.gotoAndStop(11);
}
if (selectc.lv == 3) {
selectc.gotoAndStop(16);
}
generals.tra.start(0, 1);
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;
generals.wasp.start(0, 1);
}
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;
generals.wasp.start(0, 1);
}
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;
generals.wasp.start(0, 1);
}
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++;
generals.planti.start(0, 1);
}
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++;
generals.planti.start(0, 1);
}
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++;
generals.planti.start(0, 1);
}
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++;
generals.planti.start(0, 1);
}
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++;
generals.planti.start(0, 1);
}
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++;
generals.planti.start(0, 1);
}
}
if (selectc.typec == 8) {
if ((((selectc.lv == 3) && (selectc.dir == 0)) && (selectc.atktempo == 0)) && (selectc.attack._currentframe == 10)) {
_root.game.attachMovie("fireball", "bullet" + deepb, deepb, {_x:selectc._x - 8, _y:selectc._y - 11, exist:1, types:7, dir:selectc.dir, dmg:selectc.atk * 4});
_root.game["bullet" + deepb].gotoAndStop(2);
bulletlist.push("bullet" + deepb);
deepb++;
selectc.atktempo = 0;
}
if ((((selectc.lv == 3) && (selectc.dir == 1)) && (selectc.atktempo == 0)) && (selectc.attack._currentframe == 10)) {
_root.game.attachMovie("fireball", "bullet" + deepb, deepb, {_x:selectc._x + 8, _y:selectc._y - 11, exist:1, types:7, dir:selectc.dir, dmg:selectc.atk * 4});
_root.game["bullet" + deepb].gotoAndStop(2);
_root.game["bullet" + deepb]._xscale = -100;
bulletlist.push("bullet" + deepb);
deepb++;
selectc.atktempo = 0;
}
if ((((selectc.lv == 3) && (selectc.dir == 0)) && (selectc.atktempo == 1)) && (selectc.attack._currentframe == 10)) {
_root.game.attachMovie("fireball", "bullet" + deepb, deepb, {_x:selectc._x - 8, _y:selectc._y - 11, exist:1, types:8, dir:selectc.dir, dmg:selectc.atk});
_root.game["bullet" + deepb].gotoAndStop(3);
bulletlist.push("bullet" + deepb);
deepb++;
selectc.atktempo = 0;
}
if ((((selectc.lv == 3) && (selectc.dir == 1)) && (selectc.atktempo == 1)) && (selectc.attack._currentframe == 10)) {
_root.game.attachMovie("fireball", "bullet" + deepb, deepb, {_x:selectc._x + 8, _y:selectc._y - 11, exist:1, types:8, dir:selectc.dir, dmg:selectc.atk});
_root.game["bullet" + deepb].gotoAndStop(3);
_root.game["bullet" + deepb]._xscale = -100;
bulletlist.push("bullet" + deepb);
deepb++;
selectc.atktempo = 0;
}
}
t = 0;
while (t < soldierlist.length) {
soldierbc = _root.game[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[selectc.objtar];
if (attackcheck.exist != 1) {
if (selectc.frozen == 0) {
selectc.objtar = 0;
selectc.obj = 0;
}
}
if (soldierbc.dir == 0) {
if (((((soldierbc.types == 5) && (distalx < 10)) && (distaly < 30)) && (soldierbc._x < selectc._x)) && (soldierbc.special == 0)) {
soldierbc.special = 1;
selectc.objtar = soldierbc._name;
soldierbc.gotoAndStop(6);
}
if (((((soldierbc.types == 5) && (distalx < 10)) && (distaly < 30)) && (soldierbc.killhim == 1)) && (soldierbc._x < selectc._x)) {
soldierbc.killhim = 0;
generals.explot.start(0, 1);
_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 - selectc.atk;
}
_root.game.cas[selectc.zone].gotoAndStop(2);
selectc.removeMovieClip();
creaturelist.splice(r, 1);
}
if (((((((soldierbc.types == 8) && (distalx < 25)) && (distaly < 30)) && (soldierbc._x < selectc._x)) && (soldierbc.special == 0)) && (selectc.obj == 0)) && (soldierbc.froze == 0)) {
soldierbc.special = 1;
selectc.obj = 1;
selectc.objtar = selects._name;
soldierbc.gotoAndStop(6);
}
if (((((soldierbc.types == 8) && (distalx < 25)) && (distaly < 30)) && (soldierbc.killhim == 1)) && (soldierbc._x < selectc._x)) {
soldierbc.killhim = 0;
selectc.frozen = 1;
}
}
if (soldierbc.dir == 1) {
if (((((soldierbc.types == 5) && (distalx < 10)) && (distaly < 30)) && (soldierbc._x > selectc._x)) && (soldierbc.special == 0)) {
soldierbc.special = 1;
selectc.objtar = soldierbc._name;
soldierbc.gotoAndStop(6);
}
if (((((soldierbc.types == 5) && (distalx < 10)) && (distaly < 30)) && (soldierbc.killhim == 1)) && (soldierbc._x > selectc._x)) {
soldierbc.killhim = 0;
generals.explot.start(0, 1);
_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 - selectc.atk;
}
_root.game.cas[selectc.zone].gotoAndStop(1);
selectc.removeMovieClip();
creaturelist.splice(r, 1);
}
if (((((((soldierbc.types == 8) && (distalx < 25)) && (distaly < 30)) && (soldierbc._x > selectc._x)) && (soldierbc.special == 0)) && (selectc.obj == 0)) && (soldierbc.froze == 0)) {
soldierbc.special = 1;
selectc.obj = 1;
selectc.objtar = selects._name;
soldierbc.gotoAndStop(6);
}
if (((((soldierbc.types == 8) && (distalx < 25)) && (distaly < 30)) && (soldierbc.killhim == 1)) && (soldierbc._x > selectc._x)) {
soldierbc.killhim = 0;
selectc.frozen = 1;
}
}
if (((selectc.frozen == 0) && (selectc.transfo == 0)) && (selectc.hike != 1)) {
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._currentframe != 4)) {
selectc.gotoAndStop(4);
}
if ((((((selectc.lv == 1) && (distalx < 20)) && (distaly < 30)) && (selectc.dir == 1)) && (soldierbc._x > selectc._x)) && (selectc._currentframe != 4)) {
selectc.gotoAndStop(4);
}
if ((((((selectc.lv == 1) && (distalx < 20)) && (distaly < 30)) && (selectc.dir == 0)) && (soldierbc._x < selectc._x)) && (selectc.attack._currentframe == 4)) {
soldierbc.hp = soldierbc.hp - selectc.atk;
selectc.xp++;
generals.cala.start(0, 1);
}
if ((((((selectc.lv == 1) && (distalx < 20)) && (distaly < 30)) && (selectc.dir == 1)) && (soldierbc._x > selectc._x)) && (selectc.attack._currentframe == 4)) {
soldierbc.hp = soldierbc.hp - selectc.atk;
selectc.xp++;
generals.cala.start(0, 1);
}
if ((((((selectc.lv == 2) && (distalx < 20)) && (distaly < 30)) && (selectc.dir == 0)) && (soldierbc._x < selectc._x)) && (selectc._currentframe != 7)) {
selectc._xscale = 100;
selectc.star._xscale = 100;
selectc.gotoAndStop(7);
}
if ((((((selectc.lv == 2) && (distalx < 20)) && (distaly < 30)) && (selectc.dir == 0)) && (soldierbc._x > selectc._x)) && (selectc._currentframe != 7)) {
selectc._xscale = -100;
selectc.star._xscale = -100;
selectc.gotoAndStop(7);
}
if ((((((selectc.lv == 2) && (distalx < 20)) && (distaly < 30)) && (selectc.dir == 1)) && (soldierbc._x > selectc._x)) && (selectc._currentframe != 7)) {
selectc._xscale = -100;
selectc.star._xscale = -100;
selectc.gotoAndStop(7);
}
if ((((((selectc.lv == 2) && (distalx < 20)) && (distaly < 30)) && (selectc.dir == 1)) && (soldierbc._x < selectc._x)) && (selectc._currentframe != 7)) {
selectc._xscale = 100;
selectc.star._xscale = 100;
selectc.gotoAndStop(7);
}
if ((((((selectc.lv == 2) && (distalx < 20)) && (distaly < 30)) && (selectc.dir == 0)) && (soldierbc._x < selectc._x)) && (selectc.attack._currentframe == 4)) {
soldierbc.hp = soldierbc.hp - selectc.atk;
selectc.xp++;
generals.cala.start(0, 1);
}
if ((((((selectc.lv == 2) && (distalx < 20)) && (distaly < 30)) && (selectc.dir == 0)) && (soldierbc._x > selectc._x)) && (selectc.attack._currentframe == 4)) {
soldierbc.hp = soldierbc.hp - selectc.atk;
selectc.xp++;
generals.cala.start(0, 1);
}
if ((((((selectc.lv == 2) && (distalx < 20)) && (distaly < 30)) && (selectc.dir == 1)) && (soldierbc._x > selectc._x)) && (selectc.attack._currentframe == 4)) {
soldierbc.hp = soldierbc.hp - selectc.atk;
selectc.xp++;
generals.cala.start(0, 1);
}
if ((((((selectc.lv == 2) && (distalx < 20)) && (distaly < 30)) && (selectc.dir == 1)) && (soldierbc._x < selectc._x)) && (selectc.attack._currentframe == 4)) {
soldierbc.hp = soldierbc.hp - selectc.atk;
selectc.xp++;
generals.cala.start(0, 1);
}
if ((((((selectc.lv == 3) && (distalx < 40)) && (distaly < 30)) && (selectc.dir == 0)) && (soldierbc._x < selectc._x)) && (selectc._currentframe != 10)) {
selectc._xscale = 100;
selectc.star._xscale = 100;
selectc.gotoAndStop(10);
}
if ((((((selectc.lv == 3) && (distalx < 40)) && (distaly < 30)) && (selectc.dir == 0)) && (soldierbc._x > selectc._x)) && (selectc._currentframe != 10)) {
selectc._xscale = -100;
selectc.star._xscale = -100;
selectc.gotoAndStop(10);
}
if ((((((selectc.lv == 3) && (distalx < 40)) && (distaly < 30)) && (selectc.dir == 1)) && (soldierbc._x > selectc._x)) && (selectc._currentframe != 10)) {
selectc._xscale = -100;
selectc.star._xscale = -100;
selectc.gotoAndStop(10);
}
if ((((((selectc.lv == 3) && (distalx < 40)) && (distaly < 30)) && (selectc.dir == 1)) && (soldierbc._x < selectc._x)) && (selectc._currentframe != 10)) {
selectc._xscale = 100;
selectc.star._xscale = 100;
selectc.gotoAndStop(10);
}
if ((((((selectc.lv == 3) && (distalx < 40)) && (distaly < 30)) && (selectc.dir == 0)) && (soldierbc._x < selectc._x)) && (selectc.attack._currentframe == 4)) {
soldierbc.hp = soldierbc.hp - selectc.atk;
selectc.xp++;
generals.cala.start(0, 1);
}
if ((((((selectc.lv == 3) && (distalx < 40)) && (distaly < 30)) && (selectc.dir == 0)) && (soldierbc._x > selectc._x)) && (selectc.attack._currentframe == 4)) {
soldierbc.hp = soldierbc.hp - selectc.atk;
selectc.xp++;
generals.cala.start(0, 1);
}
if ((((((selectc.lv == 3) && (distalx < 40)) && (distaly < 30)) && (selectc.dir == 1)) && (soldierbc._x > selectc._x)) && (selectc.attack._currentframe == 4)) {
soldierbc.hp = soldierbc.hp - selectc.atk;
selectc.xp++;
generals.cala.start(0, 1);
}
if ((((((selectc.lv == 3) && (distalx < 40)) && (distaly < 30)) && (selectc.dir == 1)) && (soldierbc._x < selectc._x)) && (selectc.attack._currentframe == 4)) {
soldierbc.hp = soldierbc.hp - selectc.atk;
selectc.xp++;
generals.cala.start(0, 1);
}
}
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._currentframe != 4)) {
selectc.gotoAndStop(4);
}
if ((((((selectc.lv == 1) && (distalx < 200)) && (distaly < 30)) && (selectc.dir == 1)) && (soldierbc._x > selectc._x)) && (selectc._currentframe != 4)) {
selectc.gotoAndStop(4);
}
if ((((((selectc.lv == 1) && (distalx < 200)) && (distaly < 30)) && (selectc.dir == 0)) && (soldierbc._x < selectc._x)) && (selectc.attack._currentframe == 6)) {
selectc.atktempo = 1;
}
if ((((((selectc.lv == 1) && (distalx < 200)) && (distaly < 30)) && (selectc.dir == 1)) && (soldierbc._x > selectc._x)) && (selectc.attack._currentframe == 6)) {
selectc.atktempo = 1;
}
if ((((((selectc.lv == 2) && (distalx < 200)) && (distaly < 30)) && (selectc.dir == 0)) && (soldierbc._x < selectc._x)) && (selectc._currentframe != 7)) {
selectc.gotoAndStop(7);
}
if ((((((selectc.lv == 2) && (distalx < 200)) && (distaly < 30)) && (selectc.dir == 1)) && (soldierbc._x > selectc._x)) && (selectc._currentframe != 7)) {
selectc.gotoAndStop(7);
}
if ((((((selectc.lv == 2) && (distalx < 200)) && (distaly < 30)) && (selectc.dir == 0)) && (soldierbc._x < selectc._x)) && (selectc.attack._currentframe == 5)) {
selectc.atktempo = 2;
}
if ((((((selectc.lv == 2) && (distalx < 200)) && (distaly < 30)) && (selectc.dir == 1)) && (soldierbc._x > selectc._x)) && (selectc.attack._currentframe == 5)) {
selectc.atktempo = 2;
}
if ((((((selectc.lv == 3) && (distalx < 100)) && (distaly < 30)) && (selectc.dir == 0)) && (soldierbc._x < selectc._x)) && (selectc._currentframe != 10)) {
selectc.gotoAndStop(10);
}
if ((((((selectc.lv == 3) && (distalx < 100)) && (distaly < 30)) && (selectc.dir == 1)) && (soldierbc._x > selectc._x)) && (selectc._currentframe != 10)) {
selectc.gotoAndStop(10);
}
if ((((((selectc.lv == 3) && (distalx < 100)) && (distaly < 30)) && (selectc.dir == 0)) && (soldierbc._x < selectc._x)) && (selectc.attack._currentframe == 5)) {
selectc.atktempo = 1;
}
if ((((((selectc.lv == 3) && (distalx < 100)) && (distaly < 30)) && (selectc.dir == 1)) && (soldierbc._x > selectc._x)) && (selectc.attack._currentframe == 5)) {
selectc.atktempo = 1;
}
}
if (selectc.typec == 3) {
if ((((selectc.lv == 1) && (distalx < 15)) && (distaly < 30)) && (soldierbc.slowt <= 0)) {
soldierbc.slowt = selectc.atk * 10;
soldierbc.slow = selectc.atk;
soldierbc.slimy.gotoAndStop(2);
selectc.xp++;
}
if ((((selectc.lv == 2) && (distalx < 25)) && (distaly < 30)) && (soldierbc.slowt <= 0)) {
soldierbc.slowt = selectc.atk * 10;
soldierbc.slow = selectc.atk;
soldierbc.slimy.gotoAndStop(2);
selectc.xp++;
}
if ((((selectc.lv == 3) && (distalx < 25)) && (distaly < 30)) && (soldierbc.slowt <= 0)) {
soldierbc.slowt = selectc.atk * 10;
soldierbc.slow = selectc.atk;
soldierbc.slimy.gotoAndStop(3);
selectc.xp++;
}
}
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)) && (soldierbc.hike != 1)) {
if ((selectc.stopu == 0) && (selectc.calm == 0)) {
selectc.gotoAndStop(4);
selectc.atktempo = selectc.atk * 12;
selectc.stopu = 1;
generals.tra.start(0, 1);
}
if ((selectc.stopu == 1) && (soldierbc.stopu <= 0)) {
soldierbc.stopu = selectc.atktempo;
}
}
if ((((((selectc.lv == 1) && (distalx < 30)) && (distaly < 30)) && (selectc.dir == 1)) && (soldierbc._x > selectc._x)) && (soldierbc.hike != 1)) {
if ((selectc.stopu == 0) && (selectc.calm == 0)) {
selectc.gotoAndStop(4);
selectc.atktempo = selectc.atk * 12;
selectc.stopu = 1;
generals.tra.start(0, 1);
}
if ((selectc.stopu == 1) && (soldierbc.stopu <= 0)) {
soldierbc.stopu = selectc.atktempo;
}
}
if ((((((selectc.lv == 2) && (distalx < 30)) && (distaly < 30)) && (selectc.dir == 0)) && (soldierbc._x < selectc._x)) && (soldierbc.hike != 1)) {
if ((selectc.stopu == 0) && (selectc.calm == 0)) {
selectc.gotoAndStop(9);
selectc.atktempo = selectc.atk * 12;
selectc.stopu = 1;
generals.tra.start(0, 1);
}
if ((selectc.stopu == 1) && (soldierbc.stopu <= 0)) {
soldierbc.stopu = selectc.atktempo;
}
}
if ((((((selectc.lv == 2) && (distalx < 30)) && (distaly < 30)) && (selectc.dir == 1)) && (soldierbc._x > selectc._x)) && (soldierbc.hike != 1)) {
if ((selectc.stopu == 0) && (selectc.calm == 0)) {
selectc.gotoAndStop(9);
selectc.atktempo = selectc.atk * 12;
selectc.stopu = 1;
generals.tra.start(0, 1);
}
if ((selectc.stopu == 1) && (soldierbc.stopu <= 0)) {
soldierbc.stopu = selectc.atktempo;
}
}
if ((((((selectc.lv == 3) && (distalx < 30)) && (distaly < 30)) && (selectc.dir == 0)) && (soldierbc._x < selectc._x)) && (soldierbc.hike != 1)) {
if ((selectc.stopu == 0) && (selectc.calm == 0)) {
selectc.gotoAndStop(14);
selectc.atktempo = selectc.atk * 12;
selectc.stopu = 1;
generals.tra.start(0, 1);
}
if ((selectc.stopu == 1) && (soldierbc.stopu <= 0)) {
soldierbc.stopu = selectc.atktempo;
}
}
if ((((((selectc.lv == 3) && (distalx < 30)) && (distaly < 30)) && (selectc.dir == 1)) && (soldierbc._x > selectc._x)) && (soldierbc.hike != 1)) {
if ((selectc.stopu == 0) && (selectc.calm == 0)) {
selectc.gotoAndStop(14);
selectc.atktempo = selectc.atk * 12;
selectc.stopu = 1;
generals.tra.start(0, 1);
}
if ((selectc.stopu == 1) && (soldierbc.stopu <= 0)) {
soldierbc.stopu = selectc.atktempo;
}
}
}
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._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._currentframe != 4)) {
selectc.gotoAndStop(4);
}
if ((((((selectc.lv == 1) && (distalx < 80)) && (distaly < 30)) && (selectc.dir == 1)) && (soldierbc._x > selectc._x)) && (selectc._currentframe != 4)) {
selectc.gotoAndStop(4);
}
if ((((((selectc.lv == 1) && (distalx < 80)) && (distaly < 30)) && (selectc.dir == 0)) && (soldierbc._x < selectc._x)) && (selectc.attack._currentframe == 7)) {
selectc.atktempo = 1;
}
if ((((((selectc.lv == 1) && (distalx < 80)) && (distaly < 30)) && (selectc.dir == 1)) && (soldierbc._x > selectc._x)) && (selectc.attack._currentframe == 7)) {
selectc.atktempo = 1;
}
if ((((((selectc.lv == 2) && (distalx < 120)) && (distaly < 30)) && (selectc.dir == 0)) && (soldierbc._x < selectc._x)) && (selectc._currentframe != 7)) {
selectc.gotoAndStop(7);
}
if ((((((selectc.lv == 2) && (distalx < 120)) && (distaly < 30)) && (selectc.dir == 1)) && (soldierbc._x > selectc._x)) && (selectc._currentframe != 7)) {
selectc.gotoAndStop(7);
}
if ((((((selectc.lv == 2) && (distalx < 120)) && (distaly < 30)) && (selectc.dir == 0)) && (soldierbc._x < selectc._x)) && (selectc.attack._currentframe == 16)) {
selectc.atktempo = 1;
}
if ((((((selectc.lv == 2) && (distalx < 120)) && (distaly < 30)) && (selectc.dir == 1)) && (soldierbc._x > selectc._x)) && (selectc.attack._currentframe == 16)) {
selectc.atktempo = 1;
}
if ((((((selectc.lv == 3) && (distalx < 120)) && (distaly < 30)) && (selectc.dir == 0)) && (soldierbc._x < selectc._x)) && (selectc._currentframe != 10)) {
selectc.gotoAndStop(10);
}
if ((((((selectc.lv == 3) && (distalx < 120)) && (distaly < 30)) && (selectc.dir == 1)) && (soldierbc._x > selectc._x)) && (selectc._currentframe != 10)) {
selectc.gotoAndStop(10);
}
if ((((((selectc.lv == 3) && (distalx < 120)) && (distaly < 30)) && (selectc.dir == 0)) && (soldierbc._x < selectc._x)) && (selectc.attack._currentframe == 16)) {
selectc.atktempo = 1;
}
if ((((((selectc.lv == 3) && (distalx < 120)) && (distaly < 30)) && (selectc.dir == 1)) && (soldierbc._x > selectc._x)) && (selectc.attack._currentframe == 16)) {
selectc.atktempo = 1;
}
}
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._currentframe != 4)) {
selectc.gotoAndStop(4);
generals.drago.start(0, 1);
}
if ((((((selectc.lv == 1) && (distalx < 40)) && (distaly < 35)) && (selectc.dir == 1)) && (soldierbc._x > selectc._x)) && (selectc._currentframe != 4)) {
selectc.gotoAndStop(4);
generals.drago.start(0, 1);
}
if ((((((selectc.lv == 1) && (distalx < 40)) && (distaly < 35)) && (selectc.dir == 0)) && (soldierbc._x < selectc._x)) && (selectc.attack._currentframe == 6)) {
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)) {
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)) {
randatk = Math.floor(Math.random() * 4);
if (((randatk == 0) || (randatk == 1)) || (randatk == 2)) {
selectc.gotoAndStop(7);
}
if (randatk == 3) {
selectc.gotoAndStop(8);
}
generals.drago.start(0, 1);
}
if (((((((selectc.lv == 2) && (distalx < 45)) && (distaly < 35)) && (selectc.dir == 1)) && (soldierbc._x > selectc._x)) && (selectc._currentframe != 7)) && (selectc._currentframe != 8)) {
randatk = Math.floor(Math.random() * 4);
if (((randatk == 0) || (randatk == 1)) || (randatk == 2)) {
selectc.gotoAndStop(7);
}
if (randatk == 3) {
selectc.gotoAndStop(8);
}
generals.drago.start(0, 1);
}
if (((((((selectc.lv == 2) && (distalx < 45)) && (distaly < 35)) && (selectc.dir == 0)) && (soldierbc._x < selectc._x)) && (selectc._currentframe == 7)) && (selectc.attack._currentframe == 6)) {
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 == 7)) && (selectc.attack._currentframe == 6)) {
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 == 8)) && (selectc.attack._currentframe == 6)) && (soldierbc._currentframe != 2)) && (soldierbc._currentframe != 4)) {
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)) {
soldierbc.froze = 1;
soldierbc.hp = soldierbc.hp - selectc.atk;
selectc.xp++;
}
if (((((((selectc.lv == 3) && (distalx < 200)) && (distaly < 35)) && (selectc.dir == 0)) && (soldierbc._x < selectc._x)) && (selectc._currentframe != 11)) && (selectc._currentframe != 12)) {
randatk = Math.floor(Math.random() * 4);
if (((randatk == 0) || (randatk == 1)) || (randatk == 2)) {
selectc.gotoAndStop(11);
selectc.xp++;
generals.drago.start(0, 1);
}
if (randatk == 3) {
selectc.gotoAndStop(12);
selectc.atktempo = 1;
selectc.xp++;
generals.drago.start(0, 1);
}
}
if (((((((selectc.lv == 3) && (distalx < 200)) && (distaly < 35)) && (selectc.dir == 1)) && (soldierbc._x > selectc._x)) && (selectc._currentframe != 11)) && (selectc._currentframe != 12)) {
randatk = Math.floor(Math.random() * 4);
if (((randatk == 0) || (randatk == 1)) || (randatk == 2)) {
selectc.gotoAndStop(11);
selectc.xp++;
generals.drago.start(0, 1);
}
if (randatk == 3) {
selectc.gotoAndStop(12);
selectc.atktempo = 1;
selectc.xp++;
generals.drago.start(0, 1);
}
}
}
}
t++;
}
r++;
}
}
function bloody() {
k = 0;
while (k < bloodlist.length) {
selectr = _root.game[bloodlist[k]];
if (selectr.exist != 1) {
bloodlist.splice(k, 1);
}
if (selectr.splashy._currentframe == 6) {
selectr.removeMovieClip();
}
k++;
}
}
function adchiv() {
if ((adchivement[0] == 0) && (doad[0] >= 10)) {
adchivement[0] = 1;
_root.game.trofeos.gotoAndStop(2);
generals.adch.start(0, 1);
}
if ((adchivement[1] == 0) && (doad[1] >= 10)) {
adchivement[1] = 1;
_root.game.trofeos.gotoAndStop(3);
generals.adch.start(0, 1);
}
if ((adchivement[2] == 0) && (doad[2] >= 10)) {
adchivement[2] = 1;
_root.game.trofeos.gotoAndStop(4);
generals.adch.start(0, 1);
}
if ((adchivement[3] == 0) && (doad[3] >= 10)) {
adchivement[3] = 1;
_root.game.trofeos.gotoAndStop(5);
generals.adch.start(0, 1);
}
if ((adchivement[4] == 0) && (doad[4] >= 10)) {
adchivement[4] = 1;
_root.game.trofeos.gotoAndStop(6);
generals.adch.start(0, 1);
}
if ((adchivement[5] == 0) && (doad[5] >= 10)) {
adchivement[5] = 1;
_root.game.trofeos.gotoAndStop(7);
generals.adch.start(0, 1);
}
if ((adchivement[6] == 0) && (doad[6] >= 10)) {
adchivement[6] = 1;
_root.game.trofeos.gotoAndStop(8);
generals.adch.start(0, 1);
}
if ((adchivement[7] == 0) && (doad[7] >= 10)) {
adchivement[7] = 1;
_root.game.trofeos.gotoAndStop(9);
generals.adch.start(0, 1);
}
if ((adchivement[8] == 0) && (doad[8] >= 10)) {
adchivement[8] = 1;
_root.game.trofeos.gotoAndStop(10);
generals.adch.start(0, 1);
}
if ((adchivement[9] == 0) && (doad[9] >= 10)) {
adchivement[9] = 1;
_root.game.trofeos.gotoAndStop(11);
generals.adch.start(0, 1);
}
if ((adchivement[10] == 0) && (doad[10] >= 10)) {
adchivement[10] = 1;
_root.game.trofeos.gotoAndStop(12);
generals.adch.start(0, 1);
}
if ((adchivement[11] == 0) && (doad[11] >= 10)) {
adchivement[11] = 1;
_root.game.trofeos.gotoAndStop(13);
generals.adch.start(0, 1);
}
if ((adchivement[12] == 0) && (doad[12] >= 10)) {
adchivement[12] = 1;
_root.game.trofeos.gotoAndStop(14);
generals.adch.start(0, 1);
}
if ((adchivement[13] == 0) && (doad[13] >= 10)) {
adchivement[13] = 1;
_root.game.trofeos.gotoAndStop(15);
generals.adch.start(0, 1);
}
if ((adchivement[14] == 0) && (doad[14] >= 10)) {
adchivement[14] = 1;
_root.game.trofeos.gotoAndStop(16);
generals.adch.start(0, 1);
}
if ((adchivement[15] == 0) && (doad[15] >= 10)) {
adchivement[15] = 1;
_root.game.trofeos.gotoAndStop(17);
generals.adch.start(0, 1);
}
if ((adchivement[16] == 0) && (doad[16] >= 10)) {
adchivement[16] = 1;
_root.game.trofeos.gotoAndStop(18);
generals.adch.start(0, 1);
}
if ((adchivement[17] == 0) && (doad[17] >= 10)) {
adchivement[17] = 1;
_root.game.trofeos.gotoAndStop(19);
generals.adch.start(0, 1);
}
if ((adchivement[18] == 0) && (doad[18] >= 10)) {
adchivement[18] = 1;
_root.game.trofeos.gotoAndStop(20);
generals.adch.start(0, 1);
}
if ((adchivement[19] == 0) && (doad[19] >= 10)) {
adchivement[19] = 1;
_root.game.trofeos.gotoAndStop(21);
generals.adch.start(0, 1);
}
if ((adchivement[20] == 0) && (doad[20] >= 10)) {
adchivement[20] = 1;
_root.game.trofeos.gotoAndStop(22);
generals.adch.start(0, 1);
}
if ((adchivement[21] == 0) && (doad[21] >= 10)) {
adchivement[21] = 1;
_root.game.trofeos.gotoAndStop(23);
generals.adch.start(0, 1);
}
if ((adchivement[22] == 0) && (doad[22] >= 10)) {
adchivement[22] = 1;
_root.game.trofeos.gotoAndStop(24);
generals.adch.start(0, 1);
}
if ((adchivement[23] == 0) && (doad[23] >= 10)) {
adchivement[23] = 1;
_root.game.trofeos.gotoAndStop(25);
generals.adch.start(0, 1);
}
if ((adchivement[24] == 0) && (doad[24] >= 100)) {
adchivement[24] = 1;
_root.game.trofeos.gotoAndStop(26);
generals.adch.start(0, 1);
}
if ((adchivement[25] == 0) && (doad[25] >= 100)) {
adchivement[25] = 1;
_root.game.trofeos.gotoAndStop(27);
generals.adch.start(0, 1);
}
if ((adchivement[26] == 0) && (doad[26] >= 100)) {
adchivement[26] = 1;
_root.game.trofeos.gotoAndStop(28);
generals.adch.start(0, 1);
}
if ((adchivement[27] == 0) && (doad[27] >= 100)) {
adchivement[27] = 1;
_root.game.trofeos.gotoAndStop(29);
generals.adch.start(0, 1);
}
if ((adchivement[28] == 0) && (doad[28] >= 100)) {
adchivement[28] = 1;
_root.game.trofeos.gotoAndStop(30);
generals.adch.start(0, 1);
}
if ((adchivement[29] == 0) && (doad[29] >= 100)) {
adchivement[29] = 1;
_root.game.trofeos.gotoAndStop(31);
generals.adch.start(0, 1);
}
if ((adchivement[30] == 0) && (doad[30] >= 100)) {
adchivement[30] = 1;
_root.game.trofeos.gotoAndStop(32);
generals.adch.start(0, 1);
}
if ((adchivement[31] == 0) && (doad[31] >= 100)) {
adchivement[31] = 1;
_root.game.trofeos.gotoAndStop(33);
generals.adch.start(0, 1);
}
if ((adchivement[32] == 0) && (doad[32] >= 100)) {
adchivement[32] = 1;
_root.game.trofeos.gotoAndStop(34);
generals.adch.start(0, 1);
}
}
function pausework() {
if (((pausestate == false) && (gameover == false)) && (victory == false)) {
pausestate = true;
_root.game.pausescreen.gotoAndStop(2);
q = 0;
while (q < soldierlist.length) {
selects = _root.game[soldierlist[q]];
selects.stop();
selects.statess.stop();
selects.states.stop();
selects.cold.stop();
selects.exit.stop();
selects.attack.stop();
q++;
}
_root.game.queen.states.stop();
_root.game.slimemag.slimy.stop();
_root.game.firemag.fireon.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.trans.stop();
selectc.cold.stop();
selectc.attack.stop();
r++;
}
}
}
function unpause() {
pausestate = false;
_root.game.pausescreen.gotoAndStop(1);
q = 0;
while (q < soldierlist.length) {
selects = _root.game[soldierlist[q]];
selects.statess.play();
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();
_root.game.slimemag.slimy.play();
_root.game.firemag.fireon.play();
r = 0;
while (r < creaturelist.length) {
selectc = _root.game[creaturelist[r]];
selectc.trans.play();
selectc.states.play();
selectc.cold.play();
selectc.attack.play();
r++;
}
}
stop();
generals = new Sound();
generals.music1 = new Sound(_root.masa);
generals.music1.attachSound("playg");
generals.music1.start(0, 999);
generals.tra = new Sound(_root.game.s1);
generals.tra.attachSound("tran");
generals.tra.setVolume(40);
generals.cam = new Sound(_root.game.s2);
generals.cam.attachSound("camp");
generals.cam.setVolume(120);
generals.victo = new Sound(_root.game.s3);
generals.victo.attachSound("victos");
generals.victo.setVolume(100);
generals.gove = new Sound(_root.game.s4);
generals.gove.attachSound("gover");
generals.gove.setVolume(100);
generals.cala = new Sound(_root.game.s5);
generals.cala.attachSound("calaca");
generals.cala.setVolume(50);
generals.planti = new Sound(_root.game.s6);
generals.planti.attachSound("planty");
generals.planti.setVolume(20);
generals.ende = new Sound(_root.game.s7);
generals.ende.attachSound("endet");
generals.ende.setVolume(30);
generals.wasp = new Sound(_root.game.s8);
generals.wasp.attachSound("wasps");
generals.wasp.setVolume(50);
generals.drago = new Sound(_root.game.s9);
generals.drago.attachSound("dragons");
generals.drago.setVolume(40);
generals.clic = new Sound(_root.game.s10);
generals.clic.attachSound("clicks");
generals.clic.setVolume(100);
generals.mondet = new Sound(_root.game.s11);
generals.mondet.attachSound("mondets");
generals.mondet.setVolume(50);
generals.adch = new Sound(_root.game.s12);
generals.adch.attachSound("adchis");
generals.adch.setVolume(50);
generals.explot = new Sound(_root.game.s13);
generals.explot.attachSound("exploti");
generals.explot.setVolume(50);
generals.firemm = new Sound(_root.game.s14);
generals.firemm.attachSound("firemmm");
generals.firemm.setVolume(50);
generals.icemm = new Sound(_root.game.s15);
generals.icemm.attachSound("icemmm");
generals.icemm.setVolume(50);
generals.slimemm = new Sound(_root.game.s16);
generals.slimemm.attachSound("slimemmm");
generals.slimemm.setVolume(50);
local_data = SharedObject.getLocal("MCD_datatemp");
var bones = local_data.data.bones;
var soldierbox = local_data.data.soldierbox;
var doad = local_data.data.doad;
var adchivement = local_data.data.adchivement;
var tombhold = local_data.data.tombhold;
var sumonlist = local_data.data.sumonlist;
var level = local_data.data.level;
var levelop = local_data.data.levelop;
var tombusing = "";
var monusing = "";
var hpqueen = 4;
var soldierwave = 1;
var deep = 100000;
var deeps = 300000;
var deepb = 500000;
var deepr = 700000;
var nextwavec = 200;
var keysecondss = 0;
var numsoldier = 0;
var bonusbones = 0;
var magict = 1200;
var enkilled = 0;
var starpoints = 0;
var replayg = false;
var menugo = false;
var pausestate = false;
var magicused = false;
var victory = false;
var gameover = false;
var wavedeath = true;
var onthing = false;
var selectmagic = false;
var selecttomb = false;
var selectmons = false;
var atkbs = false;
var upgbs = false;
var sellbs = false;
var soldierlist = new Array();
var bulletlist = new Array();
var creaturelist = new Array();
var bloodlist = new Array();
var creaturelist = new Array();
var invers = new Array();
if ((((level >= 1) && (level <= 4)) || (level == 7)) || (level == 6)) {
invers = ["ss9", "ss10", "ss11", "ss12", "ss13", "ss14", "ss15", "ss16", "ss25", "ss26", "ss27", "ss28", "ss29", "ss30"];
}
if (level == 5) {
invers = ["ss25", "ss26", "ss27", "ss28", "ss29", "ss30"];
}
if (level == 8) {
invers = ["ss25", "ss26", "ss27", "ss28", "ss29", "ss30", "ss16", "ss15", "ss11", "ss14", "ss10", "ss9"];
}
var mute = local_data.data.mute;
if (mute == 0) {
nowSound.setVolume(100);
_root.game.muteb.gotoAndStop(1);
}
if (mute == 1) {
nowSound.setVolume(0);
_root.game.muteb.gotoAndStop(2);
}
_root.game.skipb.gotoAndStop(2);
_root.game.pausescreen.swapDepths(800008);
_root.game.gameov.swapDepths(800005);
_root.game.victo.swapDepths(800004);
_root.game.monmenu.swapDepths(800003);
_root.game.tmenu.swapDepths(800002);
_root.game.puertam.swapDepths(800001);
_root.game.magicm.swapDepths(800000);
startgame();
_root.game.onEnterFrame = function () {
if (pausestate == false) {
numobj();
monsters();
monstermove();
soldiers();
bulletmoves();
checktombs();
activet();
adchiv();
}
if (_root.cortiout._currentframe == 17) {
if (victory == true) {
levelbes = (((level - 1) * 3) + difficulty) - 1;
if ((starpoints + 1) > levelop[levelbes]) {
levelop[levelbes] = starpoints + 1;
}
if (((difficulty == 1) && (levelop[levelbes + 3] == 0)) && (level != 8)) {
levelop[levelbes + 3] = 1;
levelop[levelbes + 1] = 1;
}
if (((difficulty == 2) && (levelop[levelbes + 1] == 0)) && (level != 8)) {
levelop[levelbes + 1] = 1;
}
if ((difficulty == 1) && (level == 8)) {
levelop[levelbes + 1] = 1;
}
if ((difficulty == 2) && (level == 8)) {
levelop[levelbes + 1] = 1;
}
}
if (replay == true) {
replay = false;
local_data.data.mute = mute;
local_data.flush();
stopAllSounds();
gotoAndStop (53);
}
if (((victory == true) || (gameover == true)) || (menugo == true)) {
stopAllSounds();
if (((level == 8) && (victory == true)) && (gameover == false)) {
gotoAndStop (55);
}
if ((((victory == false) && (gameover == true)) || (menugo == true)) || ((level != 8) && (victory == true))) {
gotoAndStop (47);
}
local_data.data.levelop = levelop;
local_data.data.doad = doad;
local_data.data.mute = mute;
local_data.data.adchivement = adchivement;
local_data.flush();
}
}
_root.game.pauseb.onPress = function () {
pausework();
};
_root.game.pausescreen.resumeb.onPress = function () {
unpause();
};
_root.game.pausescreen.replayb.onPress = function () {
_root.cortiout.gotoAndPlay(2);
replay = true;
};
_root.game.pausescreen.menub.onPress = function () {
_root.cortiout.gotoAndPlay(2);
menugo = true;
};
_root.game.muteb.muteno.onRelease = function () {
_root.game.muteb.gotoAndStop(2);
generals.setVolume(0);
mute = 1;
};
_root.game.muteb.mutesi.onRelease = function () {
_root.game.muteb.gotoAndStop(1);
generals.setVolume(100);
mute = 0;
};
};
Frame 53
stop();
gotoAndStop (54);
Frame 54
stop();
gotoAndPlay (51);
Frame 55
stop();
generals = new Sound();
generals.musis = new Sound();
generals.musis.attachSound("introg");
local_data = SharedObject.getLocal("MCD_datatemp");
var mute = local_data.data.mute;
if (mute == 0) {
nowSound.setVolume(100);
}
if (mute == 1) {
nowSound.setVolume(0);
}
generals.musis.start(0, 999);
_root.skipb.onEnterFrame = function () {
_root.skipb.onRelease = function () {
_root.cortim.gotoAndStop(2);
};
if (_root.anim._currentframe == 346) {
_root.cortim.gotoAndStop(2);
}
if (_root.cortim.ini._currentframe == 16) {
gotoAndPlay (45);
}
};
Symbol 26 MovieClip [fireball] Frame 1
stop();
Symbol 26 MovieClip [fireball] Frame 2
stop();
Symbol 26 MovieClip [fireball] Frame 3
stop();
Symbol 30 MovieClip [kbee] Frame 1
stop();
Symbol 30 MovieClip [kbee] Frame 2
stop();
Symbol 33 MovieClip [spellet] Frame 1
stop();
Symbol 33 MovieClip [spellet] Frame 2
stop();
Symbol 33 MovieClip [spellet] Frame 3
stop();
Symbol 37 MovieClip [rockbullet] Frame 1
stop();
Symbol 37 MovieClip [rockbullet] Frame 2
stop();
Symbol 39 MovieClip [mudball] Frame 1
stop();
Symbol 39 MovieClip [mudball] Frame 2
stop();
Symbol 41 MovieClip [ironball] Frame 1
stop();
Symbol 41 MovieClip [ironball] Frame 2
stop();
Symbol 47 MovieClip Frame 6
stop();
Symbol 48 MovieClip [bloodred] Frame 1
stop();
Symbol 48 MovieClip [bloodred] Frame 2
stop();
Symbol 50 MovieClip [bigpellet] Frame 1
stop();
Symbol 50 MovieClip [bigpellet] Frame 2
stop();
Symbol 60 MovieClip Frame 17
_parent.gotoAndStop(3);
Symbol 67 MovieClip Frame 1
stop();
Symbol 67 MovieClip Frame 2
stop();
Symbol 67 MovieClip Frame 3
stop();
Symbol 90 MovieClip Frame 9
_parent.gotoAndStop(1);
Symbol 91 MovieClip Frame 1
stop();
Symbol 91 MovieClip Frame 2
stop();
Symbol 100 MovieClip Frame 17
stop();
Symbol 119 MovieClip Frame 27
gotoAndPlay (14);
Symbol 121 MovieClip Frame 61
_parent.gotoAndStop(3);
Symbol 122 MovieClip [soldierj] Frame 1
stop();
Symbol 122 MovieClip [soldierj] Frame 2
stop();
Symbol 122 MovieClip [soldierj] Frame 3
stop();
Symbol 122 MovieClip [soldierj] Frame 4
stop();
Symbol 122 MovieClip [soldierj] Frame 5
stop();
Symbol 122 MovieClip [soldierj] Frame 6
stop();
Symbol 122 MovieClip [soldierj] Frame 10
stop();
Symbol 133 MovieClip Frame 13
_parent.gotoAndStop(3);
Symbol 159 MovieClip Frame 17
stop();
Symbol 162 MovieClip Frame 61
_parent.gotoAndStop(3);
Symbol 163 MovieClip [soldieri] Frame 1
stop();
Symbol 163 MovieClip [soldieri] Frame 2
stop();
Symbol 163 MovieClip [soldieri] Frame 3
stop();
Symbol 163 MovieClip [soldieri] Frame 4
stop();
Symbol 163 MovieClip [soldieri] Frame 5
stop();
Symbol 163 MovieClip [soldieri] Frame 10
stop();
Symbol 173 MovieClip Frame 17
_parent.gotoAndStop(3);
Symbol 195 MovieClip Frame 17
stop();
Symbol 211 MovieClip Frame 18
stop();
Symbol 213 MovieClip Frame 61
_parent.gotoAndStop(3);
Symbol 214 MovieClip [soldierh] Frame 1
stop();
Symbol 214 MovieClip [soldierh] Frame 2
stop();
Symbol 214 MovieClip [soldierh] Frame 3
stop();
Symbol 214 MovieClip [soldierh] Frame 4
stop();
Symbol 214 MovieClip [soldierh] Frame 5
stop();
Symbol 214 MovieClip [soldierh] Frame 6
stop();
Symbol 214 MovieClip [soldierh] Frame 7
stop();
Symbol 214 MovieClip [soldierh] Frame 10
stop();
Symbol 223 MovieClip Frame 17
_parent.gotoAndStop(3);
Symbol 245 MovieClip Frame 17
stop();
Symbol 259 MovieClip Frame 24
stop();
Symbol 261 MovieClip Frame 61
_parent.gotoAndStop(3);
Symbol 262 MovieClip [soldierg] Frame 1
stop();
Symbol 262 MovieClip [soldierg] Frame 2
stop();
Symbol 262 MovieClip [soldierg] Frame 3
stop();
Symbol 262 MovieClip [soldierg] Frame 4
stop();
Symbol 262 MovieClip [soldierg] Frame 5
stop();
Symbol 262 MovieClip [soldierg] Frame 6
stop();
Symbol 262 MovieClip [soldierg] Frame 10
stop();
Symbol 271 MovieClip Frame 17
_parent.gotoAndStop(3);
Symbol 293 MovieClip Frame 17
stop();
Symbol 296 MovieClip Frame 61
_parent.gotoAndStop(3);
Symbol 297 MovieClip [soldierf] Frame 1
stop();
Symbol 297 MovieClip [soldierf] Frame 2
stop();
Symbol 297 MovieClip [soldierf] Frame 3
stop();
Symbol 297 MovieClip [soldierf] Frame 4
stop();
Symbol 297 MovieClip [soldierf] Frame 5
stop();
Symbol 297 MovieClip [soldierf] Frame 6
stop();
Symbol 297 MovieClip [soldierf] Frame 10
stop();
Symbol 306 MovieClip Frame 17
_parent.gotoAndStop(3);
Symbol 330 MovieClip Frame 17
stop();
Symbol 341 MovieClip Frame 10
stop();
Symbol 343 MovieClip Frame 61
_parent.gotoAndStop(3);
Symbol 344 MovieClip [soldiere] Frame 1
stop();
Symbol 344 MovieClip [soldiere] Frame 2
stop();
Symbol 344 MovieClip [soldiere] Frame 3
stop();
Symbol 344 MovieClip [soldiere] Frame 4
stop();
Symbol 344 MovieClip [soldiere] Frame 5
stop();
Symbol 344 MovieClip [soldiere] Frame 6
stop();
Symbol 344 MovieClip [soldiere] Frame 10
stop();
Symbol 353 MovieClip Frame 17
_parent.gotoAndStop(3);
Symbol 375 MovieClip Frame 17
stop();
Symbol 378 MovieClip Frame 61
_parent.gotoAndStop(3);
Symbol 379 MovieClip [soldierc] Frame 1
stop();
Symbol 379 MovieClip [soldierc] Frame 2
stop();
Symbol 379 MovieClip [soldierc] Frame 3
stop();
Symbol 379 MovieClip [soldierc] Frame 4
stop();
Symbol 379 MovieClip [soldierc] Frame 5
stop();
Symbol 379 MovieClip [soldierc] Frame 10
stop();
Symbol 388 MovieClip Frame 17
_parent.gotoAndStop(3);
Symbol 410 MovieClip Frame 17
stop();
Symbol 413 MovieClip Frame 61
_parent.gotoAndStop(3);
Symbol 414 MovieClip [soldierb] Frame 1
stop();
Symbol 414 MovieClip [soldierb] Frame 2
stop();
Symbol 414 MovieClip [soldierb] Frame 3
stop();
Symbol 414 MovieClip [soldierb] Frame 4
stop();
Symbol 414 MovieClip [soldierb] Frame 5
stop();
Symbol 414 MovieClip [soldierb] Frame 10
stop();
Symbol 424 MovieClip Frame 17
_parent.gotoAndStop(3);
Symbol 446 MovieClip Frame 17
stop();
Symbol 449 MovieClip Frame 61
_parent.gotoAndStop(3);
Symbol 450 MovieClip [soldieraclip] Frame 1
stop();
Symbol 450 MovieClip [soldieraclip] Frame 2
stop();
Symbol 450 MovieClip [soldieraclip] Frame 3
stop();
Symbol 450 MovieClip [soldieraclip] Frame 4
stop();
Symbol 450 MovieClip [soldieraclip] Frame 5
stop();
Symbol 450 MovieClip [soldieraclip] Frame 10
stop();
Symbol 456 MovieClip Frame 1
stop();
Symbol 456 MovieClip Frame 13
gotoAndStop (1);
Symbol 469 MovieClip Frame 13
_parent.gotoAndStop(3);
Symbol 478 MovieClip Frame 1
stop();
Symbol 478 MovieClip Frame 2
stop();
Symbol 489 MovieClip Frame 1
stop();
Symbol 489 MovieClip Frame 13
gotoAndStop (1);
Symbol 502 MovieClip Frame 13
_parent.gotoAndStop(5);
Symbol 518 MovieClip Frame 12
_parent.gotoAndStop(7);
Symbol 528 MovieClip Frame 61
stop();
Symbol 530 MovieClip Frame 61
stop();
Symbol 532 MovieClip Frame 61
stop();
Symbol 533 MovieClip [slimeclip] Frame 1
stop();
Symbol 533 MovieClip [slimeclip] Frame 2
stop();
Symbol 533 MovieClip [slimeclip] Frame 3
stop();
Symbol 533 MovieClip [slimeclip] Frame 4
stop();
Symbol 533 MovieClip [slimeclip] Frame 5
stop();
Symbol 533 MovieClip [slimeclip] Frame 6
stop();
Symbol 533 MovieClip [slimeclip] Frame 7
stop();
Symbol 533 MovieClip [slimeclip] Frame 20
stop();
Symbol 533 MovieClip [slimeclip] Frame 21
stop();
Symbol 533 MovieClip [slimeclip] Frame 22
stop();
Symbol 539 MovieClip Frame 1
stop();
Symbol 539 MovieClip Frame 13
gotoAndStop (1);
Symbol 550 MovieClip Frame 15
_parent.gotoAndStop(3);
Symbol 566 MovieClip Frame 13
_parent.gotoAndStop(3);
Symbol 567 MovieClip Frame 1
stop();
Symbol 567 MovieClip Frame 13
gotoAndStop (1);
Symbol 581 MovieClip Frame 15
_parent.gotoAndStop(6);
Symbol 607 MovieClip Frame 26
_parent.gotoAndStop(6);
Symbol 621 MovieClip Frame 15
_parent.gotoAndStop(9);
Symbol 645 MovieClip Frame 26
_parent.gotoAndStop(9);
Symbol 647 MovieClip Frame 61
stop();
Symbol 649 MovieClip Frame 61
stop();
Symbol 651 MovieClip Frame 61
stop();
Symbol 652 MovieClip [mudmanclip] Frame 1
stop();
Symbol 652 MovieClip [mudmanclip] Frame 2
stop();
Symbol 652 MovieClip [mudmanclip] Frame 3
stop();
Symbol 652 MovieClip [mudmanclip] Frame 4
stop();
Symbol 652 MovieClip [mudmanclip] Frame 5
stop();
Symbol 652 MovieClip [mudmanclip] Frame 6
stop();
Symbol 652 MovieClip [mudmanclip] Frame 7
stop();
Symbol 652 MovieClip [mudmanclip] Frame 8
stop();
Symbol 652 MovieClip [mudmanclip] Frame 9
stop();
Symbol 652 MovieClip [mudmanclip] Frame 10
stop();
Symbol 652 MovieClip [mudmanclip] Frame 20
stop();
Symbol 652 MovieClip [mudmanclip] Frame 21
stop();
Symbol 652 MovieClip [mudmanclip] Frame 22
stop();
Symbol 658 MovieClip Frame 1
stop();
Symbol 658 MovieClip Frame 13
gotoAndStop (1);
Symbol 665 MovieClip Frame 11
_parent.gotoAndStop(3);
Symbol 676 MovieClip Frame 1
stop();
Symbol 676 MovieClip Frame 13
gotoAndStop (1);
Symbol 686 MovieClip Frame 11
_parent.gotoAndStop(5);
Symbol 703 MovieClip Frame 1
stop();
Symbol 703 MovieClip Frame 13
gotoAndStop (1);
Symbol 713 MovieClip Frame 11
_parent.gotoAndStop(7);
Symbol 725 MovieClip Frame 61
stop();
Symbol 727 MovieClip Frame 61
stop();
Symbol 729 MovieClip Frame 61
stop();
Symbol 730 MovieClip [hiveclip] Frame 1
stop();
Symbol 730 MovieClip [hiveclip] Frame 2
stop();
Symbol 730 MovieClip [hiveclip] Frame 3
stop();
Symbol 730 MovieClip [hiveclip] Frame 4
stop();
Symbol 730 MovieClip [hiveclip] Frame 5
stop();
Symbol 730 MovieClip [hiveclip] Frame 6
stop();
Symbol 730 MovieClip [hiveclip] Frame 7
stop();
Symbol 730 MovieClip [hiveclip] Frame 20
stop();
Symbol 730 MovieClip [hiveclip] Frame 21
stop();
Symbol 730 MovieClip [hiveclip] Frame 22
stop();
Symbol 732 MovieClip Frame 1
stop();
Symbol 732 MovieClip Frame 13
gotoAndStop (1);
Symbol 743 MovieClip Frame 15
_parent.gotoAndStop(3);
Symbol 756 MovieClip Frame 12
_parent.gotoAndStop(3);
Symbol 770 MovieClip Frame 15
_parent.gotoAndStop(6);
Symbol 786 MovieClip Frame 13
_parent.gotoAndStop(6);
Symbol 793 MovieClip Frame 13
_parent.gotoAndStop(6);
Symbol 807 MovieClip Frame 15
_parent.gotoAndStop(10);
Symbol 813 MovieClip Frame 1
stop();
Symbol 813 MovieClip Frame 13
gotoAndStop (1);
Symbol 828 MovieClip Frame 14
_parent.gotoAndStop(10);
Symbol 834 MovieClip Frame 14
_parent.gotoAndStop(10);
Symbol 836 MovieClip Frame 61
stop();
Symbol 838 MovieClip Frame 61
stop();
Symbol 840 MovieClip Frame 61
stop();
Symbol 841 MovieClip [dragonclip] Frame 1
stop();
Symbol 841 MovieClip [dragonclip] Frame 2
stop();
Symbol 841 MovieClip [dragonclip] Frame 3
stop();
Symbol 841 MovieClip [dragonclip] Frame 4
stop();
Symbol 841 MovieClip [dragonclip] Frame 5
stop();
Symbol 841 MovieClip [dragonclip] Frame 6
stop();
Symbol 841 MovieClip [dragonclip] Frame 7
stop();
Symbol 841 MovieClip [dragonclip] Frame 8
stop();
Symbol 841 MovieClip [dragonclip] Frame 9
stop();
Symbol 841 MovieClip [dragonclip] Frame 20
stop();
Symbol 841 MovieClip [dragonclip] Frame 21
stop();
Symbol 841 MovieClip [dragonclip] Frame 22
stop();
Symbol 842 MovieClip Frame 1
stop();
Symbol 842 MovieClip Frame 13
gotoAndStop (1);
Symbol 851 MovieClip Frame 13
_parent.gotoAndStop(3);
Symbol 868 MovieClip Frame 13
_parent.gotoAndStop(5);
Symbol 880 MovieClip Frame 13
_parent.gotoAndStop(3);
Symbol 891 MovieClip Frame 13
_parent.gotoAndStop(8);
Symbol 911 MovieClip Frame 16
_parent.gotoAndStop(10);
Symbol 922 MovieClip Frame 13
_parent.gotoAndStop(8);
Symbol 933 MovieClip Frame 13
_parent.gotoAndStop(13);
Symbol 956 MovieClip Frame 19
_parent.gotoAndStop(15);
Symbol 968 MovieClip Frame 13
_parent.gotoAndStop(13);
Symbol 970 MovieClip Frame 61
stop();
Symbol 972 MovieClip Frame 61
stop();
Symbol 974 MovieClip Frame 61
stop();
Symbol 975 MovieClip [demonclip] Frame 1
stop();
Symbol 975 MovieClip [demonclip] Frame 2
stop();
Symbol 975 MovieClip [demonclip] Frame 3
stop();
Symbol 975 MovieClip [demonclip] Frame 4
stop();
Symbol 975 MovieClip [demonclip] Frame 5
stop();
Symbol 975 MovieClip [demonclip] Frame 6
stop();
Symbol 975 MovieClip [demonclip] Frame 7
stop();
Symbol 975 MovieClip [demonclip] Frame 8
stop();
Symbol 975 MovieClip [demonclip] Frame 9
stop();
Symbol 975 MovieClip [demonclip] Frame 10
stop();
Symbol 975 MovieClip [demonclip] Frame 11
stop();
Symbol 975 MovieClip [demonclip] Frame 12
stop();
Symbol 975 MovieClip [demonclip] Frame 13
stop();
Symbol 975 MovieClip [demonclip] Frame 14
stop();
Symbol 975 MovieClip [demonclip] Frame 15
stop();
Symbol 975 MovieClip [demonclip] Frame 16
stop();
Symbol 975 MovieClip [demonclip] Frame 20
stop();
Symbol 975 MovieClip [demonclip] Frame 21
stop();
Symbol 975 MovieClip [demonclip] Frame 22
stop();
Symbol 981 MovieClip Frame 12
_parent.gotoAndStop(3);
Symbol 1005 MovieClip Frame 15
_parent.gotoAndStop(5);
Symbol 1029 MovieClip Frame 16
_parent.gotoAndStop(7);
Symbol 1063 MovieClip Frame 61
stop();
Symbol 1065 MovieClip Frame 61
stop();
Symbol 1067 MovieClip Frame 61
stop();
Symbol 1068 MovieClip [corpeclip] Frame 1
stop();
Symbol 1068 MovieClip [corpeclip] Frame 2
stop();
Symbol 1068 MovieClip [corpeclip] Frame 3
stop();
Symbol 1068 MovieClip [corpeclip] Frame 4
stop();
Symbol 1068 MovieClip [corpeclip] Frame 5
stop();
Symbol 1068 MovieClip [corpeclip] Frame 6
stop();
Symbol 1068 MovieClip [corpeclip] Frame 7
stop();
Symbol 1068 MovieClip [corpeclip] Frame 20
stop();
Symbol 1068 MovieClip [corpeclip] Frame 21
stop();
Symbol 1068 MovieClip [corpeclip] Frame 22
stop();
Symbol 1080 MovieClip Frame 17
_parent.gotoAndStop(3);
Symbol 1090 MovieClip Frame 10
_parent.gotoAndStop(3);
Symbol 1106 MovieClip Frame 17
_parent.gotoAndStop(6);
Symbol 1115 MovieClip Frame 13
_parent.gotoAndStop(6);
Symbol 1116 MovieClip Frame 1
stop();
Symbol 1116 MovieClip Frame 13
gotoAndStop (1);
Symbol 1131 MovieClip Frame 17
_parent.gotoAndStop(9);
Symbol 1148 MovieClip Frame 17
_parent.gotoAndStop(9);
Symbol 1150 MovieClip Frame 61
stop();
Symbol 1152 MovieClip Frame 61
stop();
Symbol 1154 MovieClip Frame 61
stop();
Symbol 1155 MovieClip [plantclip] Frame 1
stop();
Symbol 1155 MovieClip [plantclip] Frame 2
stop();
Symbol 1155 MovieClip [plantclip] Frame 3
stop();
Symbol 1155 MovieClip [plantclip] Frame 4
stop();
Symbol 1155 MovieClip [plantclip] Frame 5
stop();
Symbol 1155 MovieClip [plantclip] Frame 6
stop();
Symbol 1155 MovieClip [plantclip] Frame 7
stop();
Symbol 1155 MovieClip [plantclip] Frame 8
stop();
Symbol 1155 MovieClip [plantclip] Frame 9
stop();
Symbol 1155 MovieClip [plantclip] Frame 10
stop();
Symbol 1155 MovieClip [plantclip] Frame 20
stop();
Symbol 1155 MovieClip [plantclip] Frame 21
stop();
Symbol 1155 MovieClip [plantclip] Frame 22
stop();
Symbol 1161 MovieClip Frame 1
stop();
Symbol 1161 MovieClip Frame 13
gotoAndStop (1);
Symbol 1171 MovieClip Frame 13
_parent.gotoAndPlay(3);
Symbol 1185 MovieClip Frame 8
_parent.gotoAndStop(3);
Symbol 1190 MovieClip Frame 1
stop();
Symbol 1190 MovieClip Frame 13
gotoAndStop (1);
Symbol 1203 MovieClip Frame 13
_parent.gotoAndStop(6);
Symbol 1216 MovieClip Frame 8
_parent.gotoAndStop(6);
Symbol 1217 MovieClip Frame 1
stop();
Symbol 1217 MovieClip Frame 13
gotoAndStop (1);
Symbol 1230 MovieClip Frame 13
_parent.gotoAndStop(9);
Symbol 1243 MovieClip Frame 8
_parent.gotoAndStop(9);
Symbol 1245 MovieClip Frame 61
stop();
Symbol 1247 MovieClip Frame 61
stop();
Symbol 1249 MovieClip Frame 61
stop();
Symbol 1250 MovieClip [skullclip] Frame 1
stop();
Symbol 1250 MovieClip [skullclip] Frame 2
stop();
Symbol 1250 MovieClip [skullclip] Frame 3
stop();
Symbol 1250 MovieClip [skullclip] Frame 4
stop();
Symbol 1250 MovieClip [skullclip] Frame 5
stop();
Symbol 1250 MovieClip [skullclip] Frame 6
stop();
Symbol 1250 MovieClip [skullclip] Frame 7
stop();
Symbol 1250 MovieClip [skullclip] Frame 8
stop();
Symbol 1250 MovieClip [skullclip] Frame 9
stop();
Symbol 1250 MovieClip [skullclip] Frame 10
stop();
Symbol 1250 MovieClip [skullclip] Frame 20
stop();
Symbol 1250 MovieClip [skullclip] Frame 21
stop();
Symbol 1250 MovieClip [skullclip] Frame 22
stop();
Symbol 2047 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 _local27 = {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, _local27);
if ("c862232051e0a94e1c3609b3916ddb17".substr(0) == "dfeada81ac97cde83665f81c12da7def") {
options.ad_started();
options.ad_finished();
return(undefined);
}
var clip = options.clip;
var _local24 = 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 _local15 = _getRes(options);
var _local5 = _local15[0];
var _local14 = _local15[1];
mc._x = _local5 * 0.5;
mc._y = _local14 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local5 * -0.5;
chk._y = _local14 * -0.5;
var _local7 = chk.createEmptyMovieClip("_mochiad_bar", 4);
if (options.no_progress_bar) {
_local7._visible = false;
delete options.no_progress_bar;
} else {
_local7._x = 10;
_local7._y = _local14 - 20;
}
var _local23 = options.color;
delete options.color;
var _local21 = options.background;
delete options.background;
var _local25 = options.outline;
delete options.outline;
var _local6 = _local7.createEmptyMovieClip("_outline", 1);
_local6.beginFill(_local21);
_local6.moveTo(0, 0);
_local6.lineTo(_local5 - 20, 0);
_local6.lineTo(_local5 - 20, 10);
_local6.lineTo(0, 10);
_local6.lineTo(0, 0);
_local6.endFill();
var _local4 = _local7.createEmptyMovieClip("_inside", 2);
_local4.beginFill(_local23);
_local4.moveTo(0, 0);
_local4.lineTo(_local5 - 20, 0);
_local4.lineTo(_local5 - 20, 10);
_local4.lineTo(0, 10);
_local4.lineTo(0, 0);
_local4.endFill();
_local4._xscale = 0;
var _local8 = _local7.createEmptyMovieClip("_outline", 3);
_local8.lineStyle(0, _local25, 100);
_local8.moveTo(0, 0);
_local8.lineTo(_local5 - 20, 0);
_local8.lineTo(_local5 - 20, 10);
_local8.lineTo(0, 10);
_local8.lineTo(0, 0);
chk.ad_msec = _local24;
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 _local10 = this._parent._parent;
var _local3 = _local10;
while ((!_local3.getBytesTotal()) && (_local3)) {
_local3 = _local3._parent;
}
if (!_local3) {
_local3 = _root;
}
var _local13 = this._parent._mochiad_ctr;
var _local7 = getTimer() - this.started;
var _local5 = false;
var _local6 = _local3.getBytesTotal();
var _local9 = _local3.getBytesLoaded();
var _local4 = (100 * _local9) / _local6;
var _local12 = (100 * _local7) / chk.ad_msec;
var _local11 = this._mochiad_bar._inside;
var _local15 = Math.min(100, Math.min(_local4 || 0, _local12));
_local15 = Math.max(this.last_pcnt, _local15);
this.last_pcnt = _local15;
_local11._xscale = _local15;
options.ad_progress(_local15);
if (sendHostProgress) {
mochi.as2.MochiAd.containerNotify(clip, {id:"hostLoadPcnt", pcnt:_local4}, clip._mochiad._containerLCName);
if (_local4 == 100) {
sendHostProgress = false;
}
}
if (!chk.showing) {
var _local8 = _local13.getBytesTotal();
if ((_local8 > 0) || (typeof(_local8) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if ((_local7 > chk.ad_timeout) && (_local4 == 100)) {
options.ad_failed();
_local5 = true;
}
}
if (_local7 > chk.ad_msec) {
_local5 = true;
}
if (((_local6 > 0) && (_local9 >= _local6)) && (_local5)) {
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 2048 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 2049 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.9.4 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) {
if (onError != undefined) {
mochi.as2.MochiServices.onError = onError;
} else if (mochi.as2.MochiServices.onError == undefined) {
mochi.as2.MochiServices.onError = function (errorCode) {
trace(errorCode);
};
}
warnID(id, false);
if ((!_connected) && (_clip == undefined)) {
trace("MochiServices Connecting...");
_connecting = true;
init(id, clip);
}
}
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) {
onError("NotConnected");
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("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(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 "services" :
mochi.as2.MochiServices.triggerEvent(pkg.event, pkg.args);
break;
case "events" :
mochi.as2.MochiEvents.triggerEvent(pkg.event, pkg.args);
break;
case "coins" :
mochi.as2.MochiCoins.triggerEvent(pkg.event, pkg.args);
break;
case "social" :
mochi.as2.MochiSocial.triggerEvent(pkg.event, pkg.args);
}
};
_listenChannel.onError = function () {
mochi.as2.MochiServices.onError("IOError");
};
trace("[SERVICES_API] connected!");
_connecting = false;
_connected = true;
while (_sendChannel._queue.length > 0) {
_sendChannel.send(_sendChannelName, "onReceive", _sendChannel._queue.shift());
}
}
}
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("NotConnected");
}
if ((args.options != null) && (args.options.onError != null)) {
args.options.onError("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://link.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 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 var CONNECTED = "onConnected";
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 _dispatcher = new mochi.as2.MochiEventDispatcher();
}
Symbol 2050 MovieClip [__Packages.mochi.as2.MochiEvents] Frame 0
class mochi.as2.MochiEvents
{
function MochiEvents () {
}
static function getVersion() {
return(mochi.as2.MochiServices.getVersion());
}
static function getAchievements(properties) {
mochi.as2.MochiServices.send("events_getAchievements", properties);
}
static function unlockAchievement(properties) {
mochi.as2.MochiServices.send("events_unlockAchievement", properties);
}
static function startSession(achievementID) {
mochi.as2.MochiServices.send("events_beginSession", {achievementID:achievementID}, null, null);
}
static function showAwards(options) {
mochi.as2.MochiServices.send("events_showAwards", options, null, null);
}
static function setNotifications(style) {
mochi.as2.MochiServices.send("events_setNotifications", style, 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 ACHIEVEMENTS_OWNED = "AchievementOwned";
static var ACHIEVEMENT_NEW = "AchievementReceived";
static var GAME_ACHIEVEMENTS = "GameAchievements";
static var ERROR = "Error";
static var IO_ERROR = "IOError";
static var IO_PENDING = "IOPending";
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 FORMAT_NONE = "NoForm";
static var _dispatcher = new mochi.as2.MochiEventDispatcher();
}
Symbol 2051 MovieClip [__Packages.mochi.as2.MochiCoins] Frame 0
class mochi.as2.MochiCoins
{
function MochiCoins () {
}
static function getVersion() {
return(mochi.as2.MochiServices.getVersion());
}
static function showStore(options) {
mochi.as2.MochiServices.send("coins_showStore", {options:options}, null, null);
}
static function showItem(options) {
if ((options == undefined) || (typeof(options.item) != "string")) {
trace("ERROR: showItem call must pass an Object with an item key");
return(undefined);
}
mochi.as2.MochiServices.send("coins_showItem", {options:options}, null, null);
}
static function showVideo(options) {
if ((options == undefined) || (typeof(options.item) != "string")) {
trace("ERROR: showVideo call must pass an Object with an item key");
return(undefined);
}
mochi.as2.MochiServices.send("coins_showVideo", {options:options}, null, null);
}
static function getStoreItems() {
mochi.as2.MochiServices.send("coins_getStoreItems");
}
static function requestFunding(properties) {
mochi.as2.MochiServices.send("social_requestFunding", 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 STORE_SHOW = "StoreShow";
static var STORE_HIDE = "StoreHide";
static var ITEM_OWNED = "ItemOwned";
static var ITEM_NEW = "ItemNew";
static var STORE_ITEMS = "StoreItems";
static var ERROR = "Error";
static var IO_ERROR = "IOError";
static var NO_USER = "NoUser";
static var _dispatcher = new mochi.as2.MochiEventDispatcher();
}
Symbol 2052 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("social_showLoginWidget", {options:options});
}
static function hideLoginWidget() {
mochi.as2.MochiServices.send("social_hideLoginWidget");
}
static function requestLogin(properties) {
mochi.as2.MochiServices.send("social_requestLogin", properties);
}
static function getFriendsList(properties) {
mochi.as2.MochiServices.send("social_getFriendsList", properties);
}
static function showProfile(options) {
mochi.as2.MochiServices.setContainer();
mochi.as2.MochiServices.stayOnTop();
mochi.as2.MochiServices.send("social_showProfile", options);
}
static function postToStream(properties) {
mochi.as2.MochiServices.send("social_postToStream", properties);
}
static function inviteFriends(properties) {
mochi.as2.MochiServices.send("social_inviteFriends", properties);
}
static function requestFan(properties) {
mochi.as2.MochiServices.send("social_requestFan", properties);
}
static function saveUserProperties(properties) {
mochi.as2.MochiServices.send("social_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 FRIEND_LIST = "FriendsList";
static var PROFILE_DATA = "ProfileData";
static var GAMEPLAY_DATA = "GameplayData";
static var ACTION_CANCELED = "onCancel";
static var ACTION_COMPLETE = "onComplete";
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 1286 MovieClip Frame 1
stop();
Symbol 1286 MovieClip Frame 2
stop();
Symbol 1306 MovieClip Frame 16
_parent.gotoAndStop(43);
Symbol 1321 MovieClip Frame 16
stop();
Symbol 1322 MovieClip Frame 1
stop();
Symbol 1322 MovieClip Frame 2
stop();
Symbol 1337 MovieClip Frame 16
stop();
Symbol 1352 MovieClip Frame 1
stop();
Symbol 1352 MovieClip Frame 2
stop();
Symbol 1352 MovieClip Frame 3
stop();
Symbol 1352 MovieClip Frame 4
stop();
Symbol 1352 MovieClip Frame 5
stop();
Symbol 1357 MovieClip Frame 1
stop();
Symbol 1357 MovieClip Frame 2
stop();
Symbol 1360 MovieClip Frame 1
stop();
Symbol 1360 MovieClip Frame 2
stop();
Symbol 1363 MovieClip Frame 1
stop();
Symbol 1363 MovieClip Frame 2
stop();
Symbol 1366 MovieClip Frame 1
stop();
Symbol 1366 MovieClip Frame 2
stop();
Symbol 1369 MovieClip Frame 1
stop();
Symbol 1369 MovieClip Frame 2
stop();
Symbol 1372 MovieClip Frame 1
stop();
Symbol 1372 MovieClip Frame 2
stop();
Symbol 1375 MovieClip Frame 1
stop();
Symbol 1375 MovieClip Frame 2
stop();
Symbol 1378 MovieClip Frame 1
stop();
Symbol 1378 MovieClip Frame 2
stop();
Symbol 1381 MovieClip Frame 1
stop();
Symbol 1381 MovieClip Frame 2
stop();
Symbol 1384 MovieClip Frame 1
stop();
Symbol 1384 MovieClip Frame 2
stop();
Symbol 1387 MovieClip Frame 1
stop();
Symbol 1387 MovieClip Frame 2
stop();
Symbol 1390 MovieClip Frame 1
stop();
Symbol 1390 MovieClip Frame 2
stop();
Symbol 1393 MovieClip Frame 1
stop();
Symbol 1393 MovieClip Frame 2
stop();
Symbol 1396 MovieClip Frame 1
stop();
Symbol 1396 MovieClip Frame 2
stop();
Symbol 1399 MovieClip Frame 1
stop();
Symbol 1399 MovieClip Frame 2
stop();
Symbol 1402 MovieClip Frame 1
stop();
Symbol 1402 MovieClip Frame 2
stop();
Symbol 1405 MovieClip Frame 1
stop();
Symbol 1405 MovieClip Frame 2
stop();
Symbol 1408 MovieClip Frame 1
stop();
Symbol 1408 MovieClip Frame 2
stop();
Symbol 1411 MovieClip Frame 1
stop();
Symbol 1411 MovieClip Frame 2
stop();
Symbol 1414 MovieClip Frame 1
stop();
Symbol 1414 MovieClip Frame 2
stop();
Symbol 1417 MovieClip Frame 1
stop();
Symbol 1417 MovieClip Frame 2
stop();
Symbol 1420 MovieClip Frame 1
stop();
Symbol 1420 MovieClip Frame 2
stop();
Symbol 1423 MovieClip Frame 1
stop();
Symbol 1423 MovieClip Frame 2
stop();
Symbol 1426 MovieClip Frame 1
stop();
Symbol 1426 MovieClip Frame 2
stop();
Symbol 1429 MovieClip Frame 1
stop();
Symbol 1429 MovieClip Frame 2
stop();
Symbol 1432 MovieClip Frame 1
stop();
Symbol 1432 MovieClip Frame 2
stop();
Symbol 1435 MovieClip Frame 1
stop();
Symbol 1435 MovieClip Frame 2
stop();
Symbol 1438 MovieClip Frame 1
stop();
Symbol 1438 MovieClip Frame 2
stop();
Symbol 1441 MovieClip Frame 1
stop();
Symbol 1441 MovieClip Frame 2
stop();
Symbol 1444 MovieClip Frame 1
stop();
Symbol 1444 MovieClip Frame 2
stop();
Symbol 1447 MovieClip Frame 1
stop();
Symbol 1447 MovieClip Frame 2
stop();
Symbol 1450 MovieClip Frame 1
stop();
Symbol 1450 MovieClip Frame 2
stop();
Symbol 1453 MovieClip Frame 1
stop();
Symbol 1453 MovieClip Frame 2
stop();
Symbol 1494 MovieClip Frame 423
stop();
Symbol 1496 MovieClip Frame 1
stop();
Symbol 1496 MovieClip Frame 2
stop();
Symbol 1529 MovieClip Frame 8
_parent.gotoAndStop(3);
Symbol 1532 MovieClip Frame 1
stop();
Symbol 1532 MovieClip Frame 2
stop();
Symbol 1532 MovieClip Frame 3
stop();
Symbol 1532 MovieClip Frame 4
stop();
Symbol 1537 MovieClip Frame 1
stop();
Symbol 1537 MovieClip Frame 2
stop();
Symbol 1537 MovieClip Frame 3
stop();
Symbol 1537 MovieClip Frame 4
stop();
Symbol 1537 MovieClip Frame 5
stop();
Symbol 1537 MovieClip Frame 6
stop();
Symbol 1537 MovieClip Frame 7
stop();
Symbol 1537 MovieClip Frame 8
stop();
Symbol 1551 MovieClip Frame 1
stop();
Symbol 1551 MovieClip Frame 2
stop();
Symbol 1551 MovieClip Frame 3
stop();
Symbol 1551 MovieClip Frame 4
stop();
Symbol 1551 MovieClip Frame 5
stop();
Symbol 1551 MovieClip Frame 6
stop();
Symbol 1551 MovieClip Frame 7
stop();
Symbol 1551 MovieClip Frame 8
stop();
Symbol 1551 MovieClip Frame 9
stop();
Symbol 1551 MovieClip Frame 10
stop();
Symbol 1562 MovieClip Frame 1
stop();
Symbol 1562 MovieClip Frame 2
stop();
Symbol 1562 MovieClip Frame 3
stop();
Symbol 1562 MovieClip Frame 4
stop();
Symbol 1562 MovieClip Frame 5
stop();
Symbol 1562 MovieClip Frame 6
stop();
Symbol 1562 MovieClip Frame 7
stop();
Symbol 1562 MovieClip Frame 8
stop();
Symbol 1562 MovieClip Frame 9
stop();
Symbol 1562 MovieClip Frame 10
stop();
Symbol 1565 MovieClip Frame 1
stop();
Symbol 1565 MovieClip Frame 2
stop();
Symbol 1583 MovieClip Frame 1
stop();
Symbol 1583 MovieClip Frame 2
stop();
Symbol 1590 MovieClip Frame 1
stop();
Symbol 1590 MovieClip Frame 2
stop();
Symbol 1594 MovieClip Frame 1
stop();
Symbol 1594 MovieClip Frame 2
stop();
Symbol 1598 MovieClip Frame 1
stop();
Symbol 1598 MovieClip Frame 2
stop();
Symbol 1602 MovieClip Frame 1
stop();
Symbol 1602 MovieClip Frame 2
stop();
Symbol 1606 MovieClip Frame 1
stop();
Symbol 1606 MovieClip Frame 2
stop();
Symbol 1610 MovieClip Frame 1
stop();
Symbol 1610 MovieClip Frame 2
stop();
Symbol 1613 MovieClip Frame 1
stop();
Symbol 1613 MovieClip Frame 2
stop();
Symbol 1617 MovieClip Frame 1
stop();
Symbol 1617 MovieClip Frame 2
stop();
Symbol 1621 MovieClip Frame 4
_parent.gotoAndStop(3);
Symbol 1626 MovieClip Frame 1
stop();
Symbol 1626 MovieClip Frame 2
stop();
Symbol 1626 MovieClip Frame 3
stop();
Symbol 1626 MovieClip Frame 4
stop();
Symbol 1626 MovieClip Frame 5
stop();
Symbol 1626 MovieClip Frame 6
stop();
Symbol 1626 MovieClip Frame 7
stop();
Symbol 1626 MovieClip Frame 8
stop();
Symbol 1626 MovieClip Frame 9
stop();
Symbol 1626 MovieClip Frame 10
stop();
Symbol 1627 MovieClip Frame 1
stop();
Symbol 1627 MovieClip Frame 2
stop();
Symbol 1627 MovieClip Frame 3
stop();
Symbol 1632 MovieClip Frame 1
stop();
Symbol 1632 MovieClip Frame 2
stop();
Symbol 1635 MovieClip Frame 1
stop();
Symbol 1635 MovieClip Frame 2
stop();
Symbol 1638 MovieClip Frame 1
stop();
Symbol 1638 MovieClip Frame 2
stop();
Symbol 1641 MovieClip Frame 5
_parent.gotoAndStop(3);
Symbol 1654 MovieClip Frame 1
stop();
Symbol 1654 MovieClip Frame 2
stop();
Symbol 1654 MovieClip Frame 3
stop();
Symbol 1654 MovieClip Frame 4
stop();
Symbol 1654 MovieClip Frame 5
stop();
Symbol 1654 MovieClip Frame 6
stop();
Symbol 1654 MovieClip Frame 7
stop();
Symbol 1654 MovieClip Frame 8
stop();
Symbol 1654 MovieClip Frame 9
stop();
Symbol 1654 MovieClip Frame 10
stop();
Symbol 1665 MovieClip Frame 1
stop();
Symbol 1665 MovieClip Frame 2
stop();
Symbol 1665 MovieClip Frame 3
stop();
Symbol 1665 MovieClip Frame 4
stop();
Symbol 1665 MovieClip Frame 5
stop();
Symbol 1665 MovieClip Frame 6
stop();
Symbol 1665 MovieClip Frame 7
stop();
Symbol 1665 MovieClip Frame 8
stop();
Symbol 1665 MovieClip Frame 9
stop();
Symbol 1665 MovieClip Frame 10
stop();
Symbol 1669 MovieClip Frame 1
stop();
Symbol 1669 MovieClip Frame 2
stop();
Symbol 1669 MovieClip Frame 3
stop();
Symbol 1672 MovieClip Frame 1
stop();
Symbol 1672 MovieClip Frame 2
stop();
Symbol 1675 MovieClip Frame 1
stop();
Symbol 1675 MovieClip Frame 2
stop();
Symbol 1678 MovieClip Frame 1
stop();
Symbol 1678 MovieClip Frame 2
stop();
Symbol 1681 MovieClip Frame 1
stop();
Symbol 1681 MovieClip Frame 2
stop();
Symbol 1684 MovieClip Frame 1
stop();
Symbol 1684 MovieClip Frame 2
stop();
Symbol 1687 MovieClip Frame 1
stop();
Symbol 1687 MovieClip Frame 2
stop();
Symbol 1690 MovieClip Frame 1
stop();
Symbol 1690 MovieClip Frame 2
stop();
Symbol 1691 MovieClip Frame 1
stop();
Symbol 1691 MovieClip Frame 2
stop();
Symbol 1691 MovieClip Frame 3
stop();
Symbol 1691 MovieClip Frame 4
stop();
Symbol 1691 MovieClip Frame 5
stop();
Symbol 1691 MovieClip Frame 6
stop();
Symbol 1691 MovieClip Frame 7
stop();
Symbol 1691 MovieClip Frame 8
stop();
Symbol 1691 MovieClip Frame 9
stop();
Symbol 1693 MovieClip Frame 1
stop();
Symbol 1693 MovieClip Frame 2
stop();
Symbol 1693 MovieClip Frame 3
stop();
Symbol 1693 MovieClip Frame 4
stop();
Symbol 1694 MovieClip Frame 1
stop();
Symbol 1694 MovieClip Frame 2
stop();
Symbol 1694 MovieClip Frame 3
stop();
Symbol 1710 MovieClip Frame 14
_parent.gotoAndStop(1);
Symbol 1730 MovieClip Frame 35
stop();
Symbol 1731 MovieClip Frame 1
stop();
Symbol 1731 MovieClip Frame 2
stop();
Symbol 1731 MovieClip Frame 3
stop();
Symbol 1732 MovieClip Frame 1
stop();
Symbol 1732 MovieClip Frame 7
stop();
Symbol 1752 MovieClip Frame 26
stop();
Symbol 1755 MovieClip Frame 26
stop();
Symbol 1756 MovieClip Frame 26
stop();
Symbol 1757 MovieClip Frame 1
stop();
Symbol 1757 MovieClip Frame 2
stop();
Symbol 1757 MovieClip Frame 3
stop();
stop();
Symbol 1757 MovieClip Frame 4
stop();
Symbol 1758 MovieClip Frame 70
stop();
Symbol 1759 MovieClip Frame 1
stop();
Symbol 1759 MovieClip Frame 2
stop();
Symbol 1765 MovieClip Frame 40
stop();
Symbol 1766 MovieClip Frame 1
stop();
Symbol 1766 MovieClip Frame 2
stop();
Symbol 1768 MovieClip Frame 41
stop();
Symbol 1770 MovieClip Frame 41
stop();
Symbol 1772 MovieClip Frame 41
stop();
Symbol 1774 MovieClip Frame 41
stop();
Symbol 1776 MovieClip Frame 41
stop();
Symbol 1778 MovieClip Frame 41
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 1833 MovieClip Frame 1
stop();
Symbol 1833 MovieClip Frame 2
stop();
Symbol 1833 MovieClip Frame 3
stop();
Symbol 1833 MovieClip Frame 4
stop();
Symbol 1833 MovieClip Frame 5
stop();
Symbol 1833 MovieClip Frame 6
stop();
Symbol 1833 MovieClip Frame 7
stop();
Symbol 1833 MovieClip Frame 8
stop();
Symbol 1833 MovieClip Frame 9
stop();
Symbol 1833 MovieClip Frame 10
stop();
Symbol 1833 MovieClip Frame 11
stop();
Symbol 1833 MovieClip Frame 12
stop();
Symbol 1833 MovieClip Frame 13
stop();
Symbol 1833 MovieClip Frame 14
stop();
Symbol 1833 MovieClip Frame 15
stop();
Symbol 1833 MovieClip Frame 16
stop();
Symbol 1833 MovieClip Frame 17
stop();
Symbol 1833 MovieClip Frame 18
stop();
Symbol 1833 MovieClip Frame 19
stop();
Symbol 1833 MovieClip Frame 20
stop();
Symbol 1833 MovieClip Frame 21
stop();
Symbol 1833 MovieClip Frame 22
stop();
Symbol 1833 MovieClip Frame 23
stop();
Symbol 1833 MovieClip Frame 24
stop();
Symbol 1833 MovieClip Frame 25
stop();
Symbol 1833 MovieClip Frame 26
stop();
Symbol 1833 MovieClip Frame 27
stop();
Symbol 1833 MovieClip Frame 28
stop();
Symbol 1833 MovieClip Frame 29
stop();
Symbol 1833 MovieClip Frame 30
stop();
Symbol 1833 MovieClip Frame 31
stop();
Symbol 1833 MovieClip Frame 32
stop();
Symbol 1833 MovieClip Frame 33
stop();
Symbol 1833 MovieClip Frame 34
stop();
Symbol 1854 MovieClip Frame 5
_parent.gotoAndStop(3);
Symbol 1856 MovieClip Frame 1
stop();
Symbol 1856 MovieClip Frame 2
stop();
Symbol 1856 MovieClip Frame 3
stop();
Symbol 1877 MovieClip Frame 142
_parent.gotoAndStop(1);
Symbol 1878 MovieClip Frame 1
stop();
Symbol 1878 MovieClip Frame 2
stop();
Symbol 1880 MovieClip Frame 34
_parent.gotoAndStop(1);
Symbol 1881 MovieClip Frame 1
stop();
Symbol 1881 MovieClip Frame 2
stop();
Symbol 1908 MovieClip Frame 44
_parent.gotoAndStop(1);
Symbol 1909 MovieClip Frame 1
stop();
Symbol 1909 MovieClip Frame 2
stop();
Symbol 1914 MovieClip Frame 1
stop();
Symbol 1914 MovieClip Frame 2
stop();
Symbol 1914 MovieClip Frame 3
stop();
Symbol 1914 MovieClip Frame 4
stop();
Symbol 1914 MovieClip Frame 5
stop();
Symbol 1918 MovieClip Frame 1
stop();
Symbol 1918 MovieClip Frame 2
stop();
Symbol 1918 MovieClip Frame 3
stop();
Symbol 1918 MovieClip Frame 4
stop();
Symbol 1918 MovieClip Frame 5
stop();
Symbol 1924 MovieClip Frame 1
stop();
Symbol 1924 MovieClip Frame 2
stop();
Symbol 1924 MovieClip Frame 3
stop();
Symbol 1924 MovieClip Frame 4
stop();
Symbol 1924 MovieClip Frame 5
stop();
Symbol 1924 MovieClip Frame 6
stop();
Symbol 1926 MovieClip Frame 1
stop();
Symbol 1926 MovieClip Frame 2
stop();
Symbol 1926 MovieClip Frame 3
stop();
Symbol 1926 MovieClip Frame 4
stop();
Symbol 1926 MovieClip Frame 5
stop();
Symbol 1935 MovieClip Frame 1
stop();
Symbol 1935 MovieClip Frame 2
stop();
Symbol 1969 MovieClip Frame 16
stop();
Symbol 1971 MovieClip Frame 1
stop();
Symbol 1971 MovieClip Frame 17
stop();
Symbol 2046 MovieClip Frame 354
stop();