Frame 1
fscommand ("fullscreen", false);
fscommand ("trapallkeys", true);
fscommand ("showmenu", false);
fscommand ("allowscale", false);
_root.bgm = new Sound();
_root.efek1 = new Sound();
_root.efek2 = new Sound();
_root.efek3 = new Sound();
_root.efek4 = new Sound();
_root.efek5 = new Sound();
_root.efek6 = new Sound();
_root.efek7 = new Sound();
_root.efek8 = new Sound();
var sins = 1;
_root.bgm.setVolume(80);
var myMenu = new ContextMenu();
myMenu.hideBuiltInItems();
_root.menu = myMenu;
stop();
Instance of Symbol 78 MovieClip in Frame 1
on (release) {
getURL ("http://www.freegamesjungle.com", "_blank");
}
Frame 5
function sounder(r, n) {
r.attachSound(n);
r.start();
}
_root.gameonz = 0;
_root.bgm.onSoundComplete = function () {
_root.bgm.start();
};
_root.bgm.stop();
_root.bgm.attachSound("bgms");
_root.bgm.start();
function init2() {
var _local2 = (smhp = (shipen = (mshipen = (satp = (sdef = (sspd = (gpsx = 0)))))));
_root.smhp = 100;
_root.mshipen = 100;
_root.satp = 2;
_root.sdef = 0;
_root.sspd = 0.2;
_root.gpsx = 2000;
_root.shp = _root.smhp;
_root.shipen = _root.mshipen;
}
function init() {
_root.pauss = 0;
_root.startz = 0;
_root.gp = 2000;
_root.egp = 2000 + ((_root.stage - 1) * 1000);
if (_root.unlocked[5] == 1) {
_root.egp = _root.egp + 5000;
}
if (_root.unlocked[7] == 1) {
_root.egp = _root.egp + 5000;
}
if (_root.unlocked[8] == 1) {
_root.egp = _root.egp + 10000;
}
_root.slot1 = new Array(7);
_root.slot1 = [0, 0, 0, 0, 0, 0, 0];
_root.pos1 = [0, 0, 0, 0, 0, 0, 0];
_root.itemz = 0;
_root.nowply = 1;
_root.st1slot = [0, 0, 0, 0, 0, 0, 0];
_root.st2slot = [0, 0, 0, 0, 0, 0, 0];
_root.st3slot = [0, 0, 0, 0, 0, 0, 0];
_root.st4slot = [0, 0, 0, 0, 0, 0, 0];
_root.st5slot = [0, 0, 0, 0, 0, 0, 0];
_root.st6slot = [0, 0, 0, 0, 0, 0, 0];
_root.st7slot = [0, 0, 0, 0, 0, 0, 0];
_root.st8slot = [0, 0, 0, 0, 0, 0, 0];
_root.st1pos = [0, 0, 0, 0, 0, 0, 0];
_root.st2pos = [0, 0, 0, 0, 0, 0, 0];
_root.st3pos = [0, 0, 0, 0, 0, 0, 0];
_root.st4pos = [0, 0, 0, 0, 0, 0, 0];
_root.st5pos = [0, 0, 0, 0, 0, 0, 0];
_root.st6pos = [0, 0, 0, 0, 0, 0, 0];
_root.st7pos = [0, 0, 0, 0, 0, 0, 0];
_root.st8pos = [0, 0, 0, 0, 0, 0, 0];
_root.itemz2 = 0;
_root.buycom = 0;
_root.polin = "";
_root.nowdmg = 0;
_root.nowppt = 0;
_root.nowbpt = 0;
_root.fainted1 = 0;
_root.fainted2 = 0;
_root.faints1 = 0;
_root.faints2 = 0;
}
_root.player1 = [0, 300, 1000, 80, 0, 2, 0, 0, 500, 1, "MARSMAN"];
_root.player2 = [0, 500, 1500, 100, 2, 0, 2, 0, 250, 1, "FROGISTRON"];
_root.player3 = [0, 300, 2000, 120, 4, 0, 0, 0, 400, 1, "ORANGIE"];
_root.player4 = [0, 450, 3000, 130, 0, 0, 0, 2, 200, 2, "BLUGAZER"];
_root.player5 = [0, 650, 4000, 70, 0, 0, 2, 4, 200, 0, "BLOCEYE"];
_root.player6 = [0, 550, 3500, 80, 0, 2, 2, 0, 500, 0, "GRENDANGA"];
_root.player7 = [0, 400, 3000, 100, 4, 4, 0, 0, 750, 1, "BEOMARS"];
_root.player8 = [0, 720, 4500, 150, 5, 5, 5, 5, 1000, 1, "OCTOMARS"];
_root.plycx1 = 0;
_root.plycx2 = 0;
_root.colonx = [0, 0, 0, 0, 0, 0, 0, 0, 0];
_root.plyer = 0;
_root.stagerx = 0;
_root.stage = 1;
var fpsx = 30;
_root.gamemode = "main";
_root.init();
_root.init2();
stop();
function saves() {
_root.so = SharedObject.getLocal(gamename, "/");
_root.so.data.canload = _root.canload;
_root.so.data.plyer = _root.plyer;
_root.so.data.stagerx = _root.stagerx;
_root.so.data.shp = _root.shp;
_root.so.data.smhp = _root.smhp;
_root.so.data.shipen = _root.shipen;
_root.so.data.mshipen = _root.mshipen;
_root.so.data.satp = _root.satp;
_root.so.data.sdef = _root.sdef;
_root.so.data.sspd = _root.sspd;
_root.so.data.gpsx = _root.gpsx;
i = 1;
while (i <= 8) {
_root.so.data.unlocked[i] = _root.unlocked[i];
_root.so.data.colonx[i] = _root.colonx[i];
i++;
}
_root.so.data.coinreward = _root.coinreward;
_root.so.data.coinreward2 = _root.coinreward2;
_root.so.flush();
}
function loads() {
_root.so = SharedObject.getLocal(gamename, "/");
_root.canload = _root.so.data.canload;
_root.coinreward = _root.so.data.coinreward;
_root.coinreward2 = _root.so.data.coinreward2;
_root.plyer = _root.so.data.plyer;
_root.stagerx = _root.so.data.stagerx;
_root.shp = _root.so.data.shp;
_root.smhp = _root.so.data.smhp;
_root.shipen = _root.so.data.shipen;
_root.mshipen = _root.so.data.mshipen;
_root.satp = _root.so.data.satp;
_root.sdef = _root.so.data.sdef;
_root.sspd = _root.so.data.sspd;
_root.gpsx = _root.so.data.gpsx;
i = 1;
while (i <= 8) {
_root.unlocked[i] = _root.so.data.unlocked[i];
_root.colonx[i] = _root.so.data.colonx[i];
i++;
}
_root.sistem = _root.so.data.sistem;
}
_root.xorang = [[0, 0], [1, 1], [3, 1], [2, 2], [3, 1], [5, 2], [4, 2], [6, 3], [10, 5]];
_root.xarit = [[0, 0], [20, 5], [20, 5], [18, 6], [20, 5], [44, 8], [40, 10], [60, 14], [100, 20]];
_root.xgrowth = [0, 82, 82, 70, 62, 59, 58, 56, 45];
_root.xresist = [0, 57, 60, 53, 58, 72, 70, 80, 100];
_root.xrace = ["", "EASY", "EASY", "EASY", "EASY", "MED", "MED", "HARD", "???"];
var unlocked = [0, 1, 1, 1, 1, 0, 0, 0, 0];
var colonx = [0, 0, 0, 0, 0, 0, 0, 0, 0];
var plyer = 0;
var stagerx = 0;
var canload = 0;
var gamename = "marscolonizer";
_root.coinreward = 0;
_root.coinreward2 = 0;
_root.loads();
if (_root.sistem != 1) {
trace("SYSTEM CREATED");
_root.so = SharedObject.getLocal(gamename, "/");
_root.so.data.unlocked = new Array(9);
_root.so.data.colonx = new Array(9);
_root.so.data.plyer = 0;
_root.so.data.stagerx = 0;
_root.so.data.coinreward = _root.coinreward;
_root.so.data.coinreward2 = _root.coinreward2;
_root.so.data.shp = 0;
_root.so.data.smhp = 0;
_root.so.data.shipen = 0;
_root.so.data.mshipen = 0;
_root.so.data.satp = 0;
_root.so.data.sdef = 0;
_root.so.data.sspd = 0;
_root.so.data.gpsx = 0;
_root.so.data.canload = 0;
_root.so.data.unlocked = [0, 1, 1, 1, 1, 0, 0, 0, 0];
_root.so.data.colonx = [0, 0, 0, 0, 0, 0, 0, 0, 0];
_root.sistem = 1;
_root.so.data.sistem = 1;
_root.so.flush();
}
if ((_root.coinreward == 1) or (_root.coinreward2 == 1)) {
_root.ceko._visible = 1;
_root.animset.gotoAndStop(2);
} else {
_root.ceko._visible = 0;
}
Instance of Symbol 257 MovieClip "bgo" in Frame 5
onClipEvent (load) {
this.gotoAndStop(_root.plycx1);
}
Instance of Symbol 267 MovieClip "bgf" in Frame 5
onClipEvent (load) {
this.gotoAndStop(_root.plycx1);
}
Instance of Symbol 35 MovieClip [muteButton] "mButton" in Frame 5
onClipEvent (load) {
if (_root.sins == 1) {
this.gotoAndStop(1);
} else {
this.gotoAndStop("off");
}
}
Instance of Symbol 322 MovieClip "vpx" in Frame 5
onClipEvent (load) {
this._visible = 0;
}
Frame 10
function datas(n) {
e = 1;
while (e <= 9) {
_root.sele["w" + e] = _root["player" + n][e];
e++;
}
_root.sele.w10 = _root.abil[n];
_root.nnm.nn = _root["player" + n][10];
_root.sele.w4 = (_root.sele.w4 * 5) + "%";
_root.sele.w5 = (_root.sele.w5 * 5) + "%";
_root.sele.w6 = (_root.sele.w6 * 5) + "%";
_root.sele.w7 = (_root.sele.w7 * 5) + "%";
_root.sele.w9 = (_root.sele.w9 * 5) + "%";
}
e = 1;
while (e <= 8) {
if ((_root.unlocked[e] == 1) || ((e > 0) && (e <= 4))) {
_root["pl" + e].gotoAndStop(e);
_root["pl" + e].codes = e;
_root["pl" + e].onRelease = function () {
_root.sounder(_root.efek2, "selx");
_root.plycx1 = this.codes;
_root.plyer = _root.plycx1;
_root.colonx[_root.plycx1] = 1;
_root.mshipen = _root["player" + _root.plycx1][3];
_root.smhp = 100;
_root.satp = 2;
_root.sdef = 0;
_root.sspd = 0.2;
_root.gpsx = 2000;
_root.shp = _root.smhp;
_root.shipen = _root.mshipen;
_root.gotoAndStop("mapselect");
};
_root["pl" + e].onRollOver = function () {
_root.sounder(_root.efek1, "rolls");
_root.sele.gotoAndStop(2);
_root.datas(this.codes);
this._xscale = 110;
this._yscale = 110;
};
_root["pl" + e].onRollOut = function () {
_root.sele.gotoAndStop(1);
_root.nnm.nn = "NONAME";
this._xscale = 100;
this._yscale = 100;
};
} else {
_root["pl" + e].gotoAndStop(9);
delete _root["pl" + e].onRelease;
delete _root["pl" + e].onRollOver;
delete _root["pl" + e].onRollOut;
}
e++;
}
Frame 16
_root.j1.attachMovie("peoplex", "pic", 2);
_root.j1.pic.gotoAndStop(1);
_root.j2.attachMovie("peoplex", "pic", 2);
_root.j2.pic.gotoAndStop(3);
_root.j7.attachMovie("peoplex", "pic", 2);
_root.j7.pic.gotoAndStop(2);
_root.j8.attachMovie("peoplex", "pic", 2);
_root.j8.pic.gotoAndStop(4);
_root.j3.attachMovie("buildx", "pic", 2);
_root.j3.pic.gotoAndStop(2);
_root.j4.attachMovie("buildx", "pic", 2);
_root.j4.pic.gotoAndStop(3);
_root.j9.attachMovie("buildx", "pic", 2);
_root.j9.pic.gotoAndStop(4);
_root.j10.attachMovie("buildx", "pic", 2);
_root.j10.pic.gotoAndStop(6);
_root.j5.attachMovie("peoplex", "pic", 2);
_root.j5.pic.gotoAndStop(3);
_root.j6.attachMovie("buildx", "pic", 2);
_root.j6.pic.gotoAndStop(5);
Frame 17
_root.init();
i = 1;
while (i <= 2) {
_root["mhp" + i] = _root["player" + _root["plycx" + i]][1] / 100;
_root["mbp" + i] = _root["player" + _root["plycx" + i]][2] / 100;
_root["men" + i] = _root["player" + _root["plycx" + i]][3] / 100;
_root["hp" + i] = _root["player" + _root["plycx" + i]][1];
_root["bp" + i] = _root["player" + _root["plycx" + i]][2];
_root["en" + i] = _root["player" + _root["plycx" + i]][3];
i++;
}
Mouse.show();
_root.bgm.stop();
_root.bgm.attachSound("sndprep");
_root.bgm.start();
Instance of Symbol 257 MovieClip "bgo" in Frame 17
onClipEvent (load) {
this.gotoAndStop(_root.plycx2);
}
Instance of Symbol 267 MovieClip "bgf" in Frame 17
onClipEvent (load) {
this.gotoAndStop(_root.plycx2);
}
Instance of Symbol 381 MovieClip "lovo" in Frame 17
onClipEvent (load) {
this.gotoAndStop(_root.stage);
}
Frame 29
function changelevel() {
_root.gpsx = _root.gpsx + (_root.stage * 5000);
_root.stage++;
_root.stagerx = _root.stage;
_root.colonx[_root.plycx2] = 1;
if (_root.stage >= 8) {
_root.gotoAndStop("coiner");
} else {
_root.gotoAndStop("mapselect");
}
}
_root.pasin._visible = 0;
_root.pauss = 0;
_root.pason._visible = 0;
k = 1;
while (k <= 2) {
_root["txhp" + k].codes = k;
_root["txhp" + k].onRollOver = function () {
this.gotoAndStop(2);
this.txt = (_root["hp" + this.codes] + " / ") + _root["player" + _root["plycx" + this.codes]][1];
};
_root["txhp" + k].onRollOut = function () {
this.gotoAndStop(1);
};
_root["txbp" + k].codes = k;
_root["txbp" + k].onRollOver = function () {
this.gotoAndStop(2);
this.txt = (_root["bp" + this.codes] + " / ") + _root["player" + _root["plycx" + this.codes]][2];
};
_root["txbp" + k].onRollOut = function () {
this.gotoAndStop(1);
};
_root["txen" + k].codes = k;
_root["txen" + k].onRollOver = function () {
this.gotoAndStop(2);
this.txt = (_root["en" + this.codes] + " / ") + _root["player" + _root["plycx" + this.codes]][3];
};
_root["txen" + k].onRollOut = function () {
this.gotoAndStop(1);
};
k++;
}
trace(_root.egp);
_root.gamemode = "battle";
_root.bgm.stop();
_root.bgm.attachSound("bgmb1");
_root.bgm.start();
function randim() {
tup = random(2) + 1;
_root["resi" + tup].gotoAndPlay(2);
i = 1;
while (i <= 6) {
_root["s" + i]._visible = 0;
i++;
}
i = 1;
while (i <= 2) {
_root["txbp" + i].enabled = 0;
_root["txhp" + i].enabled = 0;
_root["txen" + i].enabled = 0;
i++;
}
}
function enebuy() {
if (_root.itemz2 == 0) {
_root.buycom = 0;
_root.buycom2 = 0;
do {
rol1 = random(4) + 1;
switch (rol1) {
case 1 :
rol2 = random(_root.buildgp.length - 1) + 1;
if (_root.buildgp[rol2] <= _root.egp) {
_root.itemz2++;
_root.egp = _root.egp - _root.buildgp[rol2];
_root[("st" + _root.stage) + "slot"][_root.itemz2] = rol2;
_root[("st" + _root.stage) + "pos"][_root.itemz2] = rol1;
}
break;
case 2 :
rol2 = random(_root.peoplegp.length - 1) + 1;
if (_root.peoplegp[rol2] <= _root.egp) {
_root.itemz2++;
_root.egp = _root.egp - _root.peoplegp[rol2];
_root[("st" + _root.stage) + "slot"][_root.itemz2] = rol2;
_root[("st" + _root.stage) + "pos"][_root.itemz2] = rol1;
}
break;
case 3 :
rol2 = random(_root.defensegp.length - 1) + 1;
if (_root.defensegp[rol2] <= _root.egp) {
_root.itemz2++;
_root.egp = _root.egp - _root.defensegp[rol2];
_root[("st" + _root.stage) + "slot"][_root.itemz2] = rol2;
_root[("st" + _root.stage) + "pos"][_root.itemz2] = rol1;
}
break;
case 4 :
if (!((_root.buycom2 != 1) and (_root.itemz2 <= 4))) {
break;
}
rol2 = random(_root.combogp.length - 1) + 1;
if (_root.combogp[rol2] > _root.egp) {
break;
}
_root.egp = _root.egp - _root.combogp[rol2];
_root.itemz2++;
_root[("st" + _root.stage) + "slot"][_root.itemz2] = 0;
_root[("st" + _root.stage) + "pos"][_root.itemz2] = 0;
_root.itemz2++;
_root[("st" + _root.stage) + "slot"][_root.itemz2] = rol2;
_root[("st" + _root.stage) + "pos"][_root.itemz2] = rol1;
_root.buycom2 = 1;
}
} while (_root.itemz2 != 6);
_root.refitemene();
}
i = 1;
while (i <= 6) {
_root["s" + i]._visible = 1;
i++;
}
i = 1;
while (i <= 2) {
_root["txbp" + i].enabled = 1;
_root["txhp" + i].enabled = 1;
_root["txen" + i].enabled = 1;
i++;
}
}
function refitemene() {
i = 1;
while (i <= 6) {
pol = "";
switch (_root[("st" + _root.stage) + "pos"][i]) {
case 1 :
pol = "build";
break;
case 2 :
pol = "people";
break;
case 3 :
pol = "defense";
break;
case 4 :
pol = "combo";
}
_root["e" + i].plac = i;
_root["e" + i].pos = _root[("st" + _root.stage) + "pos"][i];
_root["e" + i].code = _root[("st" + _root.stage) + "slot"][i];
if (_root[("st" + _root.stage) + "slot"][i] != 0) {
_root["e" + i].attachMovie(pol + "x", "pic", 2);
_root["e" + i].pic.gotoAndStop(_root[("st" + _root.stage) + "slot"][i]);
}
i++;
}
}
function refbd() {
plk = 1;
while (plk <= 2) {
if (_root["bp" + plk] >= 300) {
_root["bozz" + plk] = 1;
} else if (_root["bp" + plk] >= 200) {
_root["bozz" + plk] = 2;
} else if (_root["bp" + plk] >= 100) {
_root["bozz" + plk] = 3;
} else if (_root["bp" + plk] >= 0) {
_root["bozz" + plk] = 4;
}
_root["rmh" + plk].ro.gotoAndStop(_root["bozz" + plk]);
plk++;
}
if (_root.bp2 <= 1) {
_root.sounder(_root.efek6, "des");
_root.pauss = 1;
_root.pasin._visible = 1;
_root.pason._visible = 1;
i = 1;
while (i <= 2) {
_root["resi" + i].gotoAndStop(1);
i++;
}
_root.pasin.gotoAndStop("win");
}
if (_root.bp1 <= 1) {
_root.sounder(_root.efek6, "des");
_root.pauss = 1;
_root.pasin._visible = 1;
_root.pason._visible = 1;
i = 1;
while (i <= 2) {
_root["resi" + i].gotoAndStop(1);
i++;
}
_root.pasin.gotoAndStop("lose");
}
}
function refhp() {
i = 1;
while (i <= 2) {
if (_root["bp" + i] <= 1) {
_root["bp" + i] = 0;
}
if (_root["hp" + i] <= 1) {
_root["hp" + i] = 0;
}
if (_root["en" + i] <= 1) {
_root["en" + i] = 0;
}
_root["abshp" + i] = _root["hp" + i] / _root["mhp" + i];
_root["absbp" + i] = _root["bp" + i] / _root["mbp" + i];
_root["absen" + i] = _root["en" + i] / _root["men" + i];
if (_root["abshp" + i] < 1) {
_root["abshp" + i] = 1;
}
if (_root["absbp" + i] < 1) {
_root["absbp" + i] = 1;
}
if (_root["absen" + i] < 1) {
_root["absen" + i] = 1;
}
_root["fat" + i].ges.gotoAndStop(int(_root["abshp" + i]));
_root["hun" + i].ges.gotoAndStop(int(_root["absbp" + i]));
_root["ens" + i].ges.gotoAndStop(int(_root["absen" + i]));
i++;
}
if (_root.fainted1 >= 1) {
_root.orang.attachMovie("stun", "stunz", 5);
_root.orang.stunz._xscale = 200;
_root.orang.stunz._yscale = 200;
_root.sounder(_root.efek4, "stunz");
} else {
_root.orang.stunz.removeMovieClip();
}
if (_root.fainted2 >= 1) {
_root.orang2.attachMovie("stun", "stunz", 5);
_root.orang2.stunz._xscale = 200;
_root.orang2.stunz._yscale = 200;
_root.efek4.stop();
_root.efek4.attachSound("stunz");
_root.efek4.start();
} else {
_root.orang2.stunz.removeMovieClip();
}
_root.refbd();
}
function dealt1(d, p, b, cdx) {
boz = _root.stage - 1;
if (cdx == 1) {
if (_root.comn[1] == 1) {
_root.efek2.stop();
_root.efek2.attachSound("b" + _root.comi[1]);
_root.efek2.start();
_root.efek3.stop();
_root.efek3.attachSound("bb" + _root.comi[1]);
_root.efek3.start();
damix = int(d + (((d * _root["player" + _root.plycx1][5]) * 5) / 100));
defix = int(damix - (((d * _root["player" + _root.plycx2][7]) * 5) / 100));
d = defix;
if (_root.counter2 == 1) {
_root.bp1 = _root.bp1 - d;
_root.orang.gotoAndPlay("aw");
_root.orang.om.gotoAndStop(_root.plycx1);
} else {
_root.bp2 = _root.bp2 - d;
_root.gp = _root.gp + (b * _root.bbns);
_root.orang2.gotoAndPlay("aw");
_root.orang2.om.gotoAndStop(_root.plycx2);
}
}
if (_root.comn[1] == 2) {
_root.efek2.stop();
_root.efek2.attachSound("m" + _root.comi[1]);
_root.efek2.start();
_root.efek3.stop();
_root.efek3.attachSound("mm" + _root.comi[1]);
_root.efek3.start();
damix = int(d + (((d * _root["player" + _root.plycx1][4]) * 5) / 100));
defix = int(damix - (((d * _root["player" + _root.plycx2][6]) * 5) / 100));
d = defix;
if (_root.counter2 == 1) {
_root.hp1 = _root.hp1 - d;
_root.orang.gotoAndPlay("aw");
_root.orang.om.gotoAndStop(_root.plycx1);
} else {
_root.hp2 = _root.hp2 - d;
_root.gp = _root.gp + (p * _root.pbns);
_root.orang2.gotoAndPlay("aw");
_root.orang2.om.gotoAndStop(_root.plycx2);
}
}
if (_root.comn[1] == 4) {
_root.efek2.stop();
_root.efek2.attachSound("c1");
_root.efek2.start();
a = _root.combonum;
cpt = _root.comboap[a];
if (_root.counter2 == 1) {
if (_root.comboatp2 == 1) {
_root.fainted1 = 1;
_root.comboatp2 = 0;
}
_root.orang.gotoAndPlay("aw");
if ((a == 1) or (a == 2)) {
_root.hp1 = _root.hp1 - _root.comboap[a];
} else if ((a == 3) or (a == 4)) {
_root.bp1 = _root.bp1 - _root.comboap[a];
} else {
_root.hp1 = _root.hp1 - _root.comboap[a];
_root.bp1 = _root.bp1 - (_root.comboap[a] + 300);
}
} else {
if (_root.comboatp == 1) {
_root.fainted2 = 1;
_root.comboatp = 0;
}
_root.orang2.gotoAndPlay("aw");
_root.orang2.om.gotoAndStop(_root.plycx2);
if ((a == 1) or (a == 2)) {
_root.hp2 = _root.hp2 - _root.comboap[a];
_root.gp = _root.gp + (cpt * _root.pbns);
} else if ((a == 3) or (a == 4)) {
_root.bp2 = _root.bp2 - _root.comboap[a];
_root.gp = _root.gp + (cpt * _root.bbns);
} else {
_root.hp2 = _root.hp2 - _root.comboap[a];
_root.bp2 = _root.bp2 - (_root.comboap[a] + 300);
_root.gp = _root.gp + (cpt * _root.pbns);
_root.gp = _root.gp + ((cpt + 300) * _root.bbns);
}
}
}
} else {
if (_root.plys2b == 1) {
_root.efek2.stop();
_root.efek2.attachSound("b" + _root.plys2a);
_root.efek2.start();
_root.efek3.stop();
_root.efek3.attachSound("bb" + _root.plys2a);
_root.efek3.start();
damix = int(d + (((d * _root["player" + _root.plycx2][5]) * 5) / 100));
defix = int(damix - (((d * _root["player" + _root.plycx1][7]) * 5) / 100));
d = defix;
if (_root.counter1 == 1) {
_root.bp2 = _root.bp2 - d;
_root.orang2.gotoAndPlay("aw");
_root.orang2.om.gotoAndStop(_root.plycx2);
} else {
_root.bp1 = _root.bp1 - d;
_root.egp = _root.egp + (b * (_root.bbns + boz));
_root.orang.gotoAndPlay("aw");
_root.orang.om.gotoAndStop(_root.plycx1);
}
}
if (_root.plys2b == 2) {
_root.efek2.stop();
_root.efek2.attachSound("m" + _root.plys2a);
_root.efek2.start();
_root.efek3.stop();
_root.efek3.attachSound("mm" + _root.plys2a);
_root.efek3.start();
damix = int(d + (((d * _root["player" + _root.plycx2][4]) * 5) / 100));
defix = int(damix - (((d * _root["player" + _root.plycx1][6]) * 5) / 100));
d = defix;
if (_root.counter1 == 1) {
_root.hp2 = _root.hp2 - d;
if (_root.comboatp == 1) {
_root.fainted2 = 1;
_root.comtim = 0;
_root.comboatp = 0;
}
_root.orang2.gotoAndPlay("aw");
_root.orang2.om.gotoAndStop(_root.plycx2);
} else {
_root.hp1 = _root.hp1 - d;
_root.egp = _root.egp + (p * (_root.pbns + boz));
_root.orang.gotoAndPlay("aw");
_root.orang.om.gotoAndStop(_root.plycx1);
}
}
if (_root.plys2b == 4) {
_root.efek2.stop();
_root.efek2.attachSound("c1");
_root.efek2.start();
a = _root.combonum;
cpt = _root.comboap[a];
if (_root.counter1 == 0) {
if (_root.comboatp2 == 1) {
_root.fainted1 = 1;
_root.comboatp2 = 0;
}
_root.orang.gotoAndPlay("aw");
_root.orang.om.gotoAndStop(_root.plycx1);
if ((a == 1) or (a == 2)) {
_root.hp1 = _root.hp1 - _root.comboap[a];
_root.egp = _root.egp + (cpt * (_root.pbns + boz));
} else if ((a == 3) or (a == 4)) {
_root.bp1 = _root.bp1 - _root.comboap[a];
_root.egp = _root.egp + (cpt * (_root.bbns + boz));
} else {
_root.hp1 = _root.hp1 - _root.comboap[a];
_root.bp1 = _root.bp1 - (_root.comboap[a] + 300);
_root.egp = _root.egp + (cpt * (_root.pbns + boz));
_root.egp = _root.egp + ((cpt + 300) * (_root.bbns + boz));
}
} else {
if (_root.comboatp == 1) {
_root.fainted2 = 1;
_root.comboatp = 0;
}
_root.orang2.gotoAndPlay("aw");
_root.orang2.om.gotoAndStop(_root.plycx2);
if ((a == 1) or (a == 2)) {
_root.hp2 = _root.hp2 - _root.comboap[a];
} else if ((a == 3) or (a == 4)) {
_root.bp2 = _root.bp2 - _root.comboap[a];
} else {
_root.hp2 = _root.hp2 - _root.comboap[a];
_root.bp2 = _root.bp2 - (_root.comboap[a] + 300);
}
}
}
}
if (((_root.hp1 <= 1) and (_root.fainted1 != 3)) and (_root.faints1 != 1)) {
_root.faints1 = 1;
_root.hp1 = 1;
_root.fainted1 = _root.stunef;
_root.orang.attachMovie("stun", "stunz", 5);
_root.orang.stunz._xscale = 200;
_root.orang.stunz._yscale = 200;
}
if (((_root.hp2 <= 1) and (_root.fainted2 != 3)) and (_root.faints2 != 1)) {
_root.faints2 = 1;
_root.hp2 = 1;
_root.fainted2 = _root.stunef;
_root.orang2.attachMovie("stun", "stunz", 5);
_root.orang2.stunz._xscale = 200;
_root.orang2.stunz._yscale = 200;
}
_root.refhp();
}
function attack1() {
if (_root.fainted1 == 0) {
if (_root.plychoise == 3) {
}
if (_root.plychoise == 1) {
_root.nowphase = 1;
a = _root.comi[1];
b = _root.plac[1];
c = _root.comn[1];
if (((c == 1) or (c == 2)) or (c == 4)) {
_root.polin = "";
switch (_root.comn[1]) {
case 1 :
_root.polin = "build";
break;
case 2 :
_root.polin = "people";
break;
case 3 :
_root.polin = "defense";
break;
case 4 :
_root.polin = "combo";
}
if ((c == 4) and (a == 3)) {
_root.orang.gotoAndPlay("rock");
_root.orang.om.gotoAndStop(_root.plycx1);
} else if ((c == 4) and (a == 4)) {
_root.orang.gotoAndPlay("las");
_root.orang.om.gotoAndStop(_root.plycx1);
} else {
_root.orang.gotoAndStop("atk");
_root.orang.brg.attachMovie(_root.polin, "boz", 2);
_root.orang.brg.boz.gotoAndStop(_root.comi[1]);
_root.orang.gotoAndPlay("atk");
_root.orang.om.gotoAndStop(_root.plycx1);
}
bpt = _root.buildap[a];
ppt = _root.peopleap[a];
} else if (c == 3) {
}
if (c == 1) {
if (_root.deftype2 != 0) {
dmg = bpt / 2;
} else {
dmg = bpt;
}
if (dmg <= 0) {
dmg = 0;
}
} else if (c == 2) {
if (_root.deftype2 != 0) {
dmg = ppt / 2;
} else {
dmg = ppt;
}
if (dmg <= 0) {
dmg = 0;
}
} else if (c == 3) {
} else if (c == 4) {
_root.comboatp = 1;
_root.combonum = a;
cpt = _root.comboap[a];
}
_root.nowdmg = dmg;
_root.nowppt = ppt;
_root.nowbpt = bpt;
}
}
}
function attack2() {
if ((_root.fainted2 == 0) and (_root.buycom != 1)) {
if (_root.enechoise == 3) {
}
if (_root.enechoise == 1) {
_root.nowphase = 2;
a = _root.plys2a;
c = _root.plys2b;
if (((c == 1) or (c == 2)) or (c == 4)) {
_root.polin = "";
switch (_root.plys2b) {
case 1 :
_root.polin = "build";
break;
case 2 :
_root.polin = "people";
break;
case 3 :
_root.polin = "defense";
break;
case 4 :
_root.polin = "combo";
}
if ((c == 4) and (a == 3)) {
_root.orang2.gotoAndPlay("rock");
_root.orang2.om.gotoAndStop(_root.plycx2);
} else if ((c == 4) and (a == 4)) {
_root.orang2.gotoAndPlay("las");
_root.orang2.om.gotoAndStop(_root.plycx2);
} else {
_root.orang2.gotoAndStop("atk");
_root.orang2.om.gotoAndStop(_root.plycx2);
_root.orang2.brg.attachMovie(_root.polin, "boz", 2);
_root.orang2.brg.boz.gotoAndStop(_root.plys2a);
_root.orang2.gotoAndPlay("atk");
}
bpt = _root.buildap[a];
ppt = _root.peopleap[a];
}
if (c == 1) {
if (_root.deftype1 != 0) {
dmg = bpt / 2;
} else {
dmg = bpt;
}
if (dmg <= 0) {
dmg = 0;
}
} else if (c == 2) {
if (_root.deftype1 != 0) {
dmg = ppt / 2;
} else {
dmg = ppt;
}
if (dmg <= 0) {
dmg = 0;
}
} else if (c == 3) {
} else if (c == 4) {
_root.comboatp2 = 1;
_root.combonum = a;
cpt = _root.comboap[a];
}
_root.nowdmg = dmg;
_root.nowppt = ppt;
_root.nowbpt = bpt;
}
}
}
function defturn() {
_root.deftype1 = 0;
_root.deftype2 = 0;
_root.counter1 = 0;
_root.counter2 = 0;
if (_root.fainted1 == 0) {
if (_root.plychoise == 3) {
if (_root.comi[1] == 1) {
_root.counter1 = 1;
_root.orang.gotoAndStop("def2");
_root.efek2.stop();
_root.efek2.attachSound("fan");
_root.efek2.start();
_root.orang.om.gotoAndStop(_root.plycx1);
}
if (_root.comi[1] == 2) {
_root.bp1 = _root.bp1 + _root.defenseap[2];
_root.orang.gotoAndPlay("rep");
_root.sounder(_root.efek2, "reps");
_root.orang.om.gotoAndStop(_root.plycx1);
}
if (_root.comi[1] == 3) {
_root.hp1 = _root.hp1 + _root.defenseap[3];
_root.orang.gotoAndPlay("cup");
_root.efek2.stop();
_root.efek2.attachSound("cup");
_root.efek2.start();
_root.orang.om.gotoAndStop(_root.plycx1);
}
if (_root.comi[1] == 4) {
_root.deftype1 = _root.defenseap[4];
_root.orang.gotoAndStop("def");
_root.efek2.stop();
_root.efek2.attachSound("pay");
_root.efek2.start();
_root.orang.om.gotoAndStop(_root.plycx1);
}
}
}
if ((_root.fainted2 == 0) and (_root.buycom != 1)) {
if (_root.enechoise == 3) {
a = _root.plys2a;
c = _root.plys2b;
if (a == 1) {
_root.orang2.gotoAndStop("def2");
_root.counter2 = 1;
_root.efek2.stop();
_root.efek2.attachSound("fan");
_root.efek2.start();
}
if (a == 2) {
_root.bp2 = _root.bp2 + _root.defenseap[2];
_root.orang2.gotoAndPlay("rep");
_root.efek2.stop();
_root.efek2.attachSound("reps");
_root.efek2.start();
}
if (a == 3) {
_root.hp2 = _root.hp2 + _root.defenseap[3];
_root.orang2.gotoAndPlay("cup");
_root.efek2.stop();
_root.efek2.attachSound("cup");
_root.efek2.start();
}
if (a == 4) {
_root.deftype2 = _root.defenseap[4];
_root.orang2.gotoAndStop("def");
_root.orang2.om.gotoAndStop(_root.plycx2);
_root.efek2.stop();
_root.efek2.attachSound("pay");
_root.efek2.start();
}
_root.orang2.om.gotoAndStop(_root.plycx2);
}
}
_root.refhp();
}
function eneprep() {
_root.gameonz = 1;
_root.sopin._visible = 0;
if ((_root.fainted2 == 0) and (_root.buycom != 1)) {
ok = 0;
do {
t = random(6) + 1;
if (_root[("st" + _root.stage) + "slot"][t] != 0) {
_root.plys2a = _root[("st" + _root.stage) + "slot"][t];
_root.plys2b = _root[("st" + _root.stage) + "pos"][t];
if ((_root.plys2b == 4) and (_root.comtim != 1)) {
_root.buycom = 1;
} else {
_root[("st" + _root.stage) + "slot"][t] = 0;
_root["e" + t].pic.removeMovieClip();
}
ok = 1;
}
} while (ok != 1);
a = _root.plys2a;
c = _root.plys2b;
if (c == 3) {
_root.itemz2--;
_root.enechoise = 3;
} else if (c == 4) {
if (_root.comtim == 1) {
_root.enechoise = 1;
_root.itemz2 = _root.itemz2 - 2;
_root.comtim = 0;
} else {
_root.buycom = 1;
_root.comtim = 1;
}
} else {
_root.itemz2--;
_root.enechoise = 1;
}
}
}
function used(n, p, l) {
_root.nocom = 1;
if (p == 3) {
_root.plychoise = 3;
_root.deftype = _root.defenseap[n];
} else {
_root.plychoise = 1;
}
_root.comi[_root.nocom] = n;
_root.plac[_root.nocom] = l;
_root.comn[_root.nocom] = p;
_root.slot1[_root.plac[1]] = 0;
_root["s" + _root.plac[1]].code = 0;
_root.itemz--;
_root["s" + _root.plac[1]].pic.removeMovieClip();
_root.dat.removeMovieClip();
_root.randim();
}
function combinx() {
if ((_root.combos == 1) and (_root.fainted1 == 0)) {
if (_root.comn2[1] == _root.comn2[2]) {
_root.comi2.sort(16);
if ((_root.comi2[1] == 1) and (_root.comi2[2] == 3)) {
if (_root.comn2[1] == 2) {
_root.itemz--;
_root.slot1[_root.plac2[1]] = 1;
_root.slot1[_root.plac2[2]] = 0;
_root["s" + _root.plac2[2]].code = 0;
_root["s" + _root.plac2[2]].pic.removeMovieClip();
_root["s" + _root.plac2[1]].pos = 4;
_root.pos1[_root.plac2[1]] = 4;
_root["s" + _root.plac2[1]].code = _root.slot1[_root.plac2[1]];
_root["s" + _root.plac2[1]].attachMovie("combox", "pic", 2);
_root["s" + _root.plac2[1]].pic.gotoAndStop(_root.slot1[_root.plac2[1]]);
_root.efek4.stop();
_root.efek4.attachSound("combi");
_root.efek4.start();
}
}
if ((_root.comi2[1] == 2) and (_root.comi2[2] == 4)) {
if (_root.comn2[1] == 2) {
_root.itemz--;
_root.slot1[_root.plac2[1]] = 2;
_root.slot1[_root.plac2[2]] = 0;
_root["s" + _root.plac2[2]].code = 0;
_root.pos1[_root.plac2[1]] = 4;
_root["s" + _root.plac2[2]].pic.removeMovieClip();
_root["s" + _root.plac2[1]].pos = 4;
_root["s" + _root.plac2[1]].code = _root.slot1[_root.plac2[1]];
_root["s" + _root.plac2[1]].attachMovie("combox", "pic", 2);
_root["s" + _root.plac2[1]].pic.gotoAndStop(_root.slot1[_root.plac2[1]]);
_root.efek4.stop();
_root.efek4.attachSound("combi");
_root.efek4.start();
}
}
if ((_root.comi2[1] == 2) and (_root.comi2[2] == 3)) {
if (_root.comn2[1] == 1) {
_root.itemz--;
_root.slot1[_root.plac2[1]] = 3;
_root.slot1[_root.plac2[2]] = 0;
_root["s" + _root.plac2[2]].code = 0;
_root.pos1[_root.plac2[1]] = 4;
_root["s" + _root.plac2[2]].pic.removeMovieClip();
_root["s" + _root.plac2[1]].pos = 4;
_root["s" + _root.plac2[1]].code = _root.slot1[_root.plac2[1]];
_root["s" + _root.plac2[1]].attachMovie("combox", "pic", 2);
_root["s" + _root.plac2[1]].pic.gotoAndStop(_root.slot1[_root.plac2[1]]);
_root.efek4.stop();
_root.efek4.attachSound("combi");
_root.efek4.start();
}
}
if ((_root.comi2[1] == 4) and (_root.comi2[2] == 6)) {
if (_root.comn2[1] == 1) {
_root.itemz--;
_root.slot1[_root.plac2[1]] = 4;
_root.slot1[_root.plac2[2]] = 0;
_root.pos1[_root.plac2[1]] = 4;
_root["s" + _root.plac2[2]].code = 0;
_root["s" + _root.plac2[2]].pic.removeMovieClip();
_root["s" + _root.plac2[1]].pos = 4;
_root["s" + _root.plac2[1]].code = _root.slot1[_root.plac2[1]];
_root["s" + _root.plac2[1]].attachMovie("combox", "pic", 2);
_root["s" + _root.plac2[1]].pic.gotoAndStop(_root.slot1[_root.plac2[1]]);
_root.efek4.stop();
_root.efek4.attachSound("combi");
_root.efek4.start();
}
}
} else if ((((_root.comi2[1] == 3) and (_root.comn[1] == 2)) and ((_root.comi2[2] == 5) and (_root.comn[2] == 1))) or (((_root.comi2[1] == 5) and (_root.comn[1] == 1)) and ((_root.comi2[2] == 3) and (_root.comn[2] == 2)))) {
_root.itemz--;
_root.slot1[_root.plac2[1]] = 5;
_root.slot1[_root.plac2[2]] = 0;
_root["s" + _root.plac2[2]].code = 0;
_root["s" + _root.plac2[2]].pic.removeMovieClip();
_root["s" + _root.plac2[1]].pos = 4;
_root.pos1[_root.plac2[1]] = 4;
_root["s" + _root.plac2[1]].code = _root.slot1[_root.plac2[1]];
_root["s" + _root.plac2[1]].attachMovie("combox", "pic", 2);
_root["s" + _root.plac2[1]].pic.gotoAndStop(_root.slot1[_root.plac2[1]]);
_root.efek4.stop();
_root.efek4.attachSound("combi");
_root.efek4.start();
}
_root.combos = 0;
}
if (_root.fainted1 != 0) {
_root.fainted1--;
if (_root.fainted1 <= 0) {
_root.fainted1 = 0;
_root.orang.stunz.removeMovieClip();
if (_root.faints1 == 1) {
_root.hp1 = _root.mhp1 / 2;
_root.faints1 = 0;
}
_root.refhp();
}
}
if (_root.fainted2 != 0) {
_root.fainted2--;
if (_root.fainted2 <= 0) {
_root.fainted2 = 0;
_root.orang2.stunz.removeMovieClip();
if (_root.faints2 == 1) {
_root.hp2 = _root.mhp2 / 2;
_root.faints2 = 0;
}
_root.refhp();
}
}
_root.orang.gotoAndStop(1);
_root.orang2.gotoAndStop(1);
_root.orang2.om.gotoAndStop(_root.plycx2);
_root.gameonz = 0;
_root.nocom = 1;
_root.cok = 0;
_root.sopin._visible = 1;
if (_root.fainted1 != 0) {
_root.randim();
}
if (_root.buycom == 1) {
_root.buycom = 0;
}
i = 1;
while (i <= 6) {
_root["s" + i].gotoAndStop(1);
i++;
}
_root.gp = _root.gp + _root["player" + _root.plycx1][8];
_root.egp = _root.egp + _root["player" + _root.plycx2][8];
}
function comed(n, p, l) {
_root.comi[_root.nocom] = n;
_root.plac[_root.nocom] = l;
_root.comn[_root.nocom] = p;
if (_root.cok != l) {
_root.nocom++;
_root.cok = l;
_root["s" + l].gotoAndStop(2);
}
_root.dat.removeMovieClip();
if (_root.nocom == 3) {
_root.cok = 0;
_root.nocom = 1;
_root.plychoise = 5;
_root.comn2[1] = _root.comn[1];
_root.comn2[2] = _root.comn[2];
_root.comi2[1] = _root.comi[1];
_root.comi2[2] = _root.comi[2];
_root.plac2[1] = _root.plac[1];
_root.plac2[2] = _root.plac[2];
_root.combos = 1;
_root.randim();
}
}
stop();
_root.boz = 0;
_root.combonum = 0;
_root.comboatp = 0;
_root.comboatp2 = 0;
_root.comtim = 0;
_root.cok = 0;
_root.bozz1 = 1;
_root.bozz2 = 1;
_root.gameonz = 0;
_root.nowphase = 0;
_root.combos = 0;
_root.orang.codex = 1;
_root.orang2.codex = 2;
_root.atox1.codex = 1;
_root.atox2.codex = 2;
_root.orang.om.gotoAndStop(_root.plycx1);
_root.rmh1.gotoAndStop(_root.plycx1);
_root.orang2.om.gotoAndStop(_root.plycx2);
_root.rmh2.gotoAndStop(_root.plycx2);
i = 1;
while (i <= 6) {
_root["e" + i]._visible = 0;
_root["s" + l].gotoAndStop(1);
i++;
}
_root.nowsel = 0;
_root.nowplac = 0;
_root.nowpos = 0;
_root.comi = [0, 0, 0];
_root.plac = [0, 0, 0];
_root.comn = [0, 0, 0];
_root.comi2 = [0, 0, 0];
_root.plac2 = [0, 0, 0];
_root.comn2 = [0, 0, 0];
_root.nocom = 1;
_root.counter1 = 0;
_root.counter2 = 0;
_root.enechoise = 0;
_root.plychoise = 0;
_root.deftype1 = 0;
_root.deftype2 = 0;
_root.plys1 = 0;
_root.plys2a = 0;
_root.plys2b = 0;
_root.bbns = 10;
_root.pbns = 10;
_root.stunef = 3;
_root.buildna = ["", "GREENBOMB", "2X GREENBOMB", "HOMINBLUE", "2X HOMINBLUE", "ROCKET BLAST", "2X ROCKETBLAST", "SKY MISSILE"];
_root.buildgp = [0, 0, 1000, 3000, 5000, 7000, 10000, 13000];
_root.buildap = [0, 100, 200, 300, 400, 600, 800, 1000];
_root.peoplena = ["", "LASER", "2X LASER", "ACID", "2X ACID", "FIREBALL", "MULTI FIREBALL", "BEOMET"];
_root.peoplegp = [0, 2000, 4000, 6000, 8000, 10000, 12000, 15000];
_root.peopleap = [0, 100, 200, 300, 400, 500, 600, 750];
_root.defensena = ["", "MIRROR SHIELD", "REPAIR KIT", "HEALING HEART", "DEFENSE BARRIER"];
_root.defensetu = ["", "Counters any attack from enemy", "Building HP UP", "Unit HP UP", "Reduce damage from enemy's attack"];
_root.defensegp = [0, 8000, 5000, 5000, 5000];
_root.defenseap = [0, 1, 1000, 500, 1];
_root.comboap = [0, 400, 600, 750, 1500, 400];
_root.combogp = [0, 8000, 12000, 7500, 15000, 13000];
i = 1;
while (i <= 6) {
pol = "";
switch (_root.pos1[i]) {
case 1 :
pol = "build";
break;
case 2 :
pol = "people";
break;
case 3 :
pol = "defense";
break;
case 4 :
pol = "combo";
}
_root["s" + i].plac = i;
_root["s" + i].pos = _root.pos1[i];
_root["s" + i].code = _root.slot1[i];
if (_root.slot1[i] != 0) {
_root["s" + i].attachMovie(pol + "x", "pic", 2);
_root["s" + i].pic.gotoAndStop(_root.slot1[i]);
}
_root["s" + i].onRelease = function () {
_root.sounder(_root.efek1, "rolls");
_root.dat.removeMovieClip();
if (this.code != 0) {
_root.attachMovie("dat", "dat", 3);
_root.dat._x = this._x;
_root.dat._y = this._y;
_root.nowsel = this.code;
_root.nowpos = this.pos;
_root.nowplac = this.plac;
}
};
i++;
}
i = 1;
while (i <= 15) {
_root["kotak" + i].removeMovieClip();
i++;
}
_root.dat.removeMovieClip();
if (_root.startz != 1) {
_root.startz = 1;
_root.enebuy();
}
_root.refitemene();
_root.refhp();
stop();
Instance of Symbol 381 MovieClip "tingkat" in Frame 29
onClipEvent (load) {
this.gotoAndStop(_root.stage);
}
Instance of Symbol 421 MovieClip "resi1" in Frame 29
onClipEvent (enterFrame) {
_root.orang.om.gotoAndStop(_root.plycx1);
_root.orang2.om.gotoAndStop(_root.plycx2);
}
Instance of Symbol 443 MovieClip "pason" in Frame 29
on (release) {
}
Instance of Symbol 444 MovieClip "paus" in Frame 29
onClipEvent (enterFrame) {
}
onClipEvent (load) {
nopause = function () {
_root.pasin._visible = 0;
_root.pason._visible = 0;
_root.pauss = 0;
_root.blak._visible = 0;
};
}
Frame 32
_root.gamemode = "shop";
_root.pasin._visible = 0;
_root.pauss = 0;
_root.pason._visible = 0;
_root.dat.removeMovieClip();
_root.tax = "";
_root.nax = "";
_root.gax = "";
i = 1;
while (i <= 7) {
_root["r" + i].attachMovie("buildx", "pic", 2);
_root["r" + i].pic.gotoAndStop(i);
_root["kotak" + i].nm = "build";
_root["kotak" + i].pos = 1;
_root["kotak" + i].code = i;
_root["kotak" + i].price = _root[_root["kotak" + i].nm + "gp"][_root["kotak" + i].code];
i++;
}
i = 8;
while (i <= 14) {
_root["r" + i].attachMovie("peoplex", "pic", 2);
_root["r" + i].pic.gotoAndStop(i - 7);
_root["kotak" + i].nm = "people";
_root["kotak" + i].pos = 2;
_root["kotak" + i].code = i - 7;
_root["kotak" + i].price = _root[_root["kotak" + i].nm + "gp"][_root["kotak" + i].code];
i++;
}
i = 15;
while (i <= 18) {
_root["r" + i].attachMovie("defensex", "pic", 2);
_root["r" + i].pic.gotoAndStop(i - 14);
_root["kotak" + i].nm = "defense";
_root["kotak" + i].pos = 3;
_root["kotak" + i].code = i - 14;
_root["kotak" + i].price = _root[_root["kotak" + i].nm + "gp"][_root["kotak" + i].code];
i++;
}
i = 1;
while (i <= 18) {
_root["kotak" + i].onRollOver = function () {
_root.nax = _root[this.nm + "na"][this.code];
if (this.pos == 3) {
_root.tax = _root[this.nm + "tu"][this.code];
} else {
cat = "";
switch (this.pos) {
case 1 :
cat = "Building";
break;
case 2 :
cat = "Unit";
}
_root.tax = (("Does " + _root[this.nm + "ap"][this.code]) + " damage to ") + cat;
}
_root.gax = _root[this.nm + "gp"][this.code];
if (_root[this.nm + "gp"][this.code] == 0) {
_root.gax = "FREE";
}
this.gotoAndStop(2);
};
_root["kotak" + i].onRollOut = function () {
_root.nax = "";
_root.tax = "";
_root.gax = "";
this.gotoAndStop(1);
};
_root["kotak" + i].onRelease = function () {
but = 0;
if ((_root.itemz < 6) and (this.price <= _root.gp)) {
i = 1;
while (i <= 6) {
if (_root.slot1[i] == 0) {
_root.slot1[i] = this.code;
_root.pos1[i] = this.pos;
_root.itemz++;
_root.gp = _root.gp - this.price;
_root.sounder(_root.efek4, "goli");
but = 1;
break;
}
i++;
}
}
if (but == 0) {
_root.sounder(_root.efek4, "nox");
}
};
i++;
}
Frame 38
var okbo = 0;
_root.phint._visible = 0;
_root.gamemode = "ship";
Mouse.show();
_root.bgm.stop();
_root.bgm.attachSound("bgmap");
_root.bgm.start();
_root.invr._visible = false;
_root.lo.loki.removeMovieClip();
i = 1;
while (i <= 8) {
if (_root.colonx[i] == 1) {
_root["g" + i].gotoAndStop(_root.plycx1);
_root["g" + i].onRelease = function () {
_root.nonono.gotoAndPlay(55);
};
} else {
_root["g" + i].gotoAndStop(i);
_root["g" + i].codes = i;
_root["g" + i].onRelease = function () {
if (this.codes != _root.plycx1) {
_root.plycx2 = this.codes;
_root.createEmptyMovieClip("lo", 2);
_root.okbo = 1;
_root.invr._visible = true;
_root.invr.gotoAndPlay(2);
abc = _root.lo.attachMovie("loki", "loki", 2);
abc._x = this._x;
abc._y = this._y;
}
};
_root["g" + i].onRollOver = function () {
_root.sounder(_root.efek1, "rolls");
_root.phint._visible = 1;
_root.phint.dic = _root.xrace[this.codes];
_root.phint.rst = _root.xresist[this.codes];
_root.phint.grw = 100 - _root.xgrowth[this.codes];
};
_root["g" + i].onRollOut = function () {
_root.phint._visible = 0;
};
}
i++;
}
Frame 40
Mouse.hide();
_root.shootauto = false;
_root.pres = _root.xresist[_root.plycx2];
_root.shp = _root.smhp;
_root.shipen = _root.mshipen;
var _width_ = _root.stagex._width;
_root.stagex.gotoAndStop(_root.plycx2);
if (_quality == "HIGH") {
_quality = "MEDIUM";
}
nomusic = random(3) + 2;
_root.bgm.stop();
_root.bgm.attachSound("bgmb" + nomusic);
_root.bgm.start();
Instance of Symbol 611 MovieClip "stagex" in Frame 40
onClipEvent (enterFrame) {
var d = this.ufi._x;
this._x = 0;
if (d > 450) {
this._x = (450 - d) - 1;
if (this._x > 0) {
this._x = 0;
} else if (((-this._x) + 640) > _root._width_) {
this._x = -(_root._width_ - 640);
}
}
}
Instance of Symbol 621 MovieClip "cccap" in Frame 40
onClipEvent (enterFrame) {
if (_root.cccap._visible) {
if (_root.pres > 10) {
_root.cccap._visible = false;
}
} else if (_root.pres <= 10) {
_root.cccap._visible = true;
}
}
Instance of Symbol 623 MovieClip "tttom" in Frame 40
onClipEvent (enterFrame) {
if (_root.tttom._visible) {
if (_root.pres <= 10) {
_root.tttom._visible = false;
}
} else if (_root.pres > 10) {
_root.tttom._visible = true;
}
}
Instance of Symbol 631 MovieClip "maptut" in Frame 40
onClipEvent (load) {
this._visible = 0;
}
Instance of Symbol 633 MovieClip "poin" in Frame 40
onClipEvent (enterFrame) {
_x = _root._xmouse;
_y = _root._ymouse;
}
Instance of Symbol 649 MovieClip in Frame 40
onClipEvent (enterFrame) {
if (_root.shipen < 10) {
if (_root.dfsdf._currentframe != 245) {
_root.dfsdf.gotoAndPlay(245);
}
} else if (_root.dfsdf._currentframe > 244) {
_root.dfsdf.gotoAndPlay(244);
}
if ((_root.shipen <= 0) || (_root.shp <= 0)) {
trace("its dead!");
if (_root.deader._currentframe == 1) {
_root.shipen = 1;
_root.shp = 1;
_root.deader.play();
}
}
}
Frame 44
_root.coinreward = 1;
if (((_root.plycx1 <= 4) and (_root.unlocked[5] != 1)) and (_root.unlocked[6] != 1)) {
_root.unlik.gotoAndStop(2);
_root.unlocked[5] = 1;
_root.unlocked[6] = 1;
} else if (((_root.plycx1 == 5) or (_root.plycx1 == 6)) and (_root.unlocked[7] != 1)) {
_root.unlik.gotoAndStop(3);
_root.unlocked[7] = 1;
} else if ((_root.plycx1 == 7) and (_root.unlocked[8] != 1)) {
_root.unlik.gotoAndStop(4);
_root.unlocked[8] = 1;
} else if (_root.plycx1 == 8) {
_root.unlik.gotoAndStop(5);
}
_root.canload = 0;
_root.colonx = [0, 0, 0, 0, 0, 0, 0, 0, 0];
_root.stagerx = 1;
_root.saves();
Instance of Symbol 257 MovieClip "bgo" in Frame 44
onClipEvent (load) {
this.gotoAndStop(_root.plycx1);
}
Instance of Symbol 267 MovieClip "bgf" in Frame 44
onClipEvent (load) {
this.gotoAndStop(_root.plycx1);
}
Symbol 12 MovieClip Frame 1
stop();
Symbol 16 MovieClip [panah] Frame 1
var speed = 20;
var lifetime = 75;
var dx = 0;
var dy = 0;
noi = random(2) + 1;
_root.sounder(_root.efek2, "las" + noi);
dx = this.speed * Math.sin((Math.PI/180) * this._rotation);
dy = (-this.speed) * Math.cos((Math.PI/180) * this._rotation);
if (this.coco == 1) {
this.ppic.gotoAndStop(_root.plycx1);
} else {
this.ppic.gotoAndStop(_root.plycx2);
}
onEnterFrame = function () {
this._x = this._x + dx;
this._y = this._y + dy;
if (_parent.wall.hitTest(_parent._x + this._x, _parent._y + this._y, true)) {
this.gotoAndPlay("mati");
}
lifetime--;
if (lifetime <= 0) {
this.gotoAndPlay("mati");
}
if ((this.coco != 1) and _parent.ufi.hitTest(_parent._x + this._x, _parent._y + this._y, true)) {
_root.shp = _root.shp - this.damages;
_root.sounder(_root.efek3, "hitlas");
this.gotoAndPlay("mati");
}
var _local4 = 0;
while (_local4 <= _parent.max_box) {
if (_parent["box" + _local4] == undefined) {
} else if (!_parent["box" + _local4]._visible) {
} else if (_parent["box" + _local4].mati) {
} else if ((this.coco != 2) and _parent["box" + _local4].hitTest(_parent._x + this._x, _parent._y + this._y, true)) {
_parent["box" + _local4].life = _parent["box" + _local4].life - _root.satp;
this.gotoAndPlay("mati");
if (_parent["box" + _local4].life <= 0) {
_parent["box" + _local4].gotoAndPlay("mati");
}
}
_local4++;
}
_local4 = 0;
while (_local4 <= _parent.max_pop) {
if (_parent["boxp" + _local4] == undefined) {
} else if (!_parent["boxp" + _local4]._visible) {
} else if (_parent["boxp" + _local4].mati) {
} else if ((this.coco != 2) and _parent["boxp" + _local4].hitTest(_parent._x + this._x, _parent._y + this._y, true)) {
_parent["boxp" + _local4].life--;
this.gotoAndPlay("mati");
if (_parent["boxp" + _local4].life <= 0) {
_parent["boxp" + _local4].gotoAndPlay("mati");
}
}
_local4++;
}
};
stop();
Symbol 16 MovieClip [panah] Frame 2
dx = 0;
dy = 0;
delete onEnterFrame;
Symbol 16 MovieClip [panah] Frame 11
this.removeMovieClip();
Symbol 26 MovieClip [ball_itself] Frame 1
stop();
Symbol 31 MovieClip [sele] Frame 1
stop();
Symbol 35 MovieClip [muteButton] Frame 4
stop();
Symbol 37 Button
on (release) {
getURL ("http://www.freegamesjungle.com", "_blank");
}
Symbol 78 MovieClip Frame 2
if ((_root.getBytesLoaded() / _root.getBytesTotal()) >= 1) {
loaderbar.GotoAndStop(100);
gotoAndPlay (2);
} else {
total_loaded = _root.getBytesLoaded() / _root.getBytesTotal();
total_loaded = Math.round(total_loaded * 100);
loaderbar.GotoAndStop(total_loaded);
gotoAndPlay (1);
}
Symbol 78 MovieClip Frame 217
_root.play();
stop();
Symbol 109 MovieClip Frame 5
gotoAndPlay (2);
Symbol 110 MovieClip [build] Frame 1
stop();
Symbol 113 MovieClip [buildx] Frame 1
stop();
Symbol 119 MovieClip [combo] Frame 1
stop();
Symbol 124 MovieClip [combox] Frame 1
stop();
Symbol 129 Button
on (release) {
_root.comed(_root.nowsel, _root.nowpos, _root.nowplac);
}
Symbol 132 Button
on (release) {
_root.used(_root.nowsel, _root.nowpos, _root.nowplac);
}
Symbol 138 MovieClip [defense] Frame 1
stop();
Symbol 140 MovieClip [defensex] Frame 1
stop();
Symbol 163 MovieClip [kar1] Frame 1
stop();
Symbol 166 MovieClip [kotak] Frame 1
stop();
Symbol 174 MovieClip [people] Frame 1
stop();
Symbol 177 MovieClip [peoplex] Frame 1
stop();
Symbol 187 MovieClip Frame 1
stop();
Symbol 193 MovieClip Frame 1
stop();
Symbol 201 MovieClip Frame 1
stop();
Symbol 208 MovieClip Frame 1
stop();
Symbol 214 MovieClip Frame 1
stop();
Symbol 222 MovieClip Frame 1
stop();
Symbol 229 MovieClip Frame 1
stop();
Symbol 233 MovieClip Frame 1
stop();
Symbol 238 MovieClip Frame 1
stop();
Symbol 240 MovieClip [anakan] Frame 1
stop();
var mati = false;
var mlife = _root.xorang[_root.plycx2][0];
var atkx = _root.xorang[_root.plycx2][1];
var model = 1;
var life = mlife;
Symbol 240 MovieClip [anakan] Frame 10
mati = true;
_root.pres = _root.pres - 3;
_root.gpsx = _root.gpsx + 100;
Symbol 240 MovieClip [anakan] Frame 18
this._visible = false;
stop();
Symbol 257 MovieClip Frame 1
stop();
Symbol 267 MovieClip Frame 1
stop();
Symbol 272 Button
on (release) {
if (_root.canload == 1) {
_root.loads();
_root.plycx1 = _root.plyer;
_root.stage = _root.stagerx;
_root.gotoAndStop("mapselect");
}
}
Symbol 276 Button
on (release) {
_root.gotoAndStop("tut");
}
Symbol 280 Button
on (release) {
getURL ("http://www.freegamesjungle.com", "_blank");
}
Symbol 283 Button
on (release) {
_root.gotoAndStop("sel");
}
Symbol 288 Button
on (release) {
getURL ("http://www.arcadebomb.com", "_blank");
}
Symbol 290 Button
on (release) {
if (_root.sins == 1) {
i = 1;
while (i <= 6) {
_root["efek" + i].setVolume(0);
i++;
}
_root.mySound.setVolume(0);
_root.mButton.gotoAndStop("off");
_root.bgm.setVolume(0);
_root.sins = 0;
} else {
_root.mButton.gotoAndStop(1);
_root.sins = 1;
i = 1;
while (i <= 6) {
_root["efek" + i].setVolume(100);
i++;
}
_root.bgm.setVolume(80);
_root.mySound.setVolume(80);
}
}
Symbol 297 Button
on (release) {
if (!_root.mutesounds) {
_root.click2.start();
}
getURL ("http://www.freegamesjungle.com", "_blank");
}
on (rollOver) {
if (!_root.mutesounds) {
_root.click1.start();
}
}
Symbol 303 Button
on (release) {
getURL ("http://www.freegamesjungle.com/coin_reward.html", "_blank");
}
Symbol 311 Button
on (rollOver) {
_root.vpx._visible = 1;
}
on (rollOut) {
_root.vpx._visible = 0;
}
Symbol 330 MovieClip Frame 1
stop();
Symbol 349 MovieClip Frame 1
stop();
Symbol 356 Button
on (release) {
_root.gotoAndStop("main");
}
Symbol 360 Button
on (release) {
if (_root.gamemode == "main") {
_root.gotoAndStop("main");
} else if (_root.gamemode == "ship") {
_root.gotoAndStop("mapselect");
} else if (_root.gamemode == "shop") {
_root.gotoAndStop("sop");
}
}
Symbol 364 Button
on (release) {
_root.gotoAndStop("tut2");
}
Symbol 370 Button
on (release) {
_root.gotoAndStop("tut");
}
Symbol 371 Button
on (release) {
_root.gotoAndStop("tut3");
}
Symbol 375 Button
on (release) {
_root.gotoAndStop("tut2");
}
Symbol 381 MovieClip Frame 1
stop();
Symbol 391 MovieClip Frame 1
stop();
stop();
Symbol 393 MovieClip Frame 1
stop();
Symbol 401 MovieClip Frame 1
stop();
Symbol 402 MovieClip Frame 1
stop();
Symbol 403 MovieClip Frame 1
stop();
Symbol 404 MovieClip Frame 1
stop();
Symbol 410 MovieClip Frame 1
stop();
Symbol 413 MovieClip Frame 1
stop();
Symbol 414 MovieClip Frame 1
stop();
if (codex == 2) {
_root.orang2.om.gotoAndStop(_root.plycx2);
}
if (codex == 1) {
_root.orang.om.gotoAndStop(_root.plycx1);
}
Symbol 414 MovieClip Frame 11
gotoAndStop (1);
Symbol 414 MovieClip Frame 34
if (codex == 1) {
if (_root.comn[1] == 1) {
if (_root.counter2 != 1) {
gotoAndPlay ("atk1");
_root.orang.om.gotoAndStop(_root.plycx1);
_root.atox1.gotoAndPlay("atk1");
} else {
_root.orang.om.gotoAndStop(_root.plycx1);
gotoAndPlay ("con1");
_root.atox1.gotoAndPlay("con1");
}
_root.atox1.brg.attachMovie(_root.polin, "boz", 2);
_root.atox1.brg.boz.gotoAndStop(_root.comi[1]);
}
if ((_root.comn[1] == 2) or (_root.comn[1] == 4)) {
if (_root.counter2 != 1) {
gotoAndPlay ("atk2");
_root.orang.om.gotoAndStop(_root.plycx1);
_root.atox1.gotoAndPlay("atk2");
} else {
gotoAndPlay ("con2");
_root.orang.om.gotoAndStop(_root.plycx1);
_root.atox1.gotoAndPlay("con2");
}
_root.atox1.brg.attachMovie(_root.polin, "boz", 2);
_root.atox1.brg.boz.gotoAndStop(_root.comi[1]);
}
} else {
if (_root.plys2b == 1) {
if (_root.counter1 != 1) {
gotoAndPlay ("atk1");
_root.orang2.om.gotoAndStop(_root.plycx2);
_root.atox2.gotoAndPlay("atk1");
} else {
gotoAndPlay ("con1");
_root.orang2.om.gotoAndStop(_root.plycx2);
_root.atox2.gotoAndPlay("con1");
}
_root.atox2.brg.attachMovie(_root.polin, "boz", 2);
_root.atox2.brg.boz.gotoAndStop(_root.plys2a);
}
if ((_root.plys2b == 2) or (_root.plys2b == 4)) {
if (_root.counter1 != 1) {
gotoAndPlay ("atk2");
_root.orang2.om.gotoAndStop(_root.plycx2);
_root.atox2.gotoAndPlay("atk2");
} else {
gotoAndPlay ("con2");
_root.orang2.om.gotoAndStop(_root.plycx2);
_root.atox2.gotoAndPlay("con2");
}
_root.atox2.brg.attachMovie(_root.polin, "boz", 2);
_root.atox2.brg.boz.gotoAndStop(_root.plys2a);
}
}
Symbol 414 MovieClip Frame 35
tr = random(3) + 1;
_root.efek1.stop();
_root.efek1.attachSound("lem" + tr);
_root.efek1.start();
Symbol 414 MovieClip Frame 60
Symbol 414 MovieClip Frame 64
gotoAndStop (1);
Symbol 414 MovieClip Frame 69
tr = random(3) + 1;
_root.efek1.stop();
_root.efek1.attachSound("lem" + tr);
_root.efek1.start();
Symbol 414 MovieClip Frame 95
Symbol 414 MovieClip Frame 99
gotoAndStop (1);
Symbol 414 MovieClip Frame 113
Symbol 414 MovieClip Frame 117
gotoAndStop (1);
Symbol 414 MovieClip Frame 126
Symbol 414 MovieClip Frame 130
gotoAndStop (1);
Symbol 414 MovieClip Frame 159
gotoAndStop (1);
Symbol 414 MovieClip Frame 174
gotoAndStop (1);
Symbol 414 MovieClip Frame 186
if (codex == 1) {
if (_root.counter2 != 1) {
_root.orang.om.gotoAndStop(_root.plycx1);
_root.atox1.gotoAndPlay("atk1");
} else {
_root.orang.om.gotoAndStop(_root.plycx1);
_root.atox1.gotoAndPlay("con1");
}
_root.atox1.brg.attachMovie("build", "boz", 2);
_root.atox1.brg.boz.gotoAndStop(7);
} else {
if (_root.counter1 != 1) {
_root.orang2.om.gotoAndStop(_root.stage + 1);
_root.atox2.gotoAndPlay("atk1");
} else {
_root.orang2.om.gotoAndStop(_root.stage + 1);
_root.atox2.gotoAndPlay("con1");
}
_root.atox2.brg.attachMovie("build", "boz", 2);
_root.atox2.brg.boz.gotoAndStop(7);
}
Symbol 414 MovieClip Frame 194
gotoAndStop (1);
Symbol 414 MovieClip Frame 202
if (codex == 1) {
if (_root.counter2 != 1) {
_root.orang.om.gotoAndStop(_root.plycx1);
_root.atox1.gotoAndPlay("atk1");
} else {
_root.orang.om.gotoAndStop(_root.plycx1);
_root.atox1.gotoAndPlay("con1");
}
_root.atox1.brg.attachMovie("build", "boz", 2);
_root.atox1.brg.boz.gotoAndStop(8);
} else {
if (_root.counter1 != 1) {
_root.orang2.om.gotoAndStop(_root.stage + 1);
_root.atox2.gotoAndPlay("atk1");
} else {
_root.orang2.om.gotoAndStop(_root.stage + 1);
_root.atox2.gotoAndPlay("con1");
}
_root.atox2.brg.attachMovie("build", "boz", 2);
_root.atox2.brg.boz.gotoAndStop(8);
}
Symbol 414 MovieClip Frame 205
gotoAndStop (1);
Symbol 421 MovieClip Frame 1
stop();
Symbol 421 MovieClip Frame 2
_root.eneprep();
Symbol 421 MovieClip Frame 8
_root.defturn();
Symbol 421 MovieClip Frame 25
_root.attack1();
Symbol 421 MovieClip Frame 50
_root.attack2();
Symbol 421 MovieClip Frame 85
_root.enebuy();
_root.combinx();
Symbol 422 MovieClip Frame 1
stop();
Symbol 422 MovieClip Frame 2
_root.eneprep();
Symbol 422 MovieClip Frame 8
_root.defturn();
Symbol 422 MovieClip Frame 25
_root.attack2();
Symbol 422 MovieClip Frame 50
_root.attack1();
Symbol 422 MovieClip Frame 85
_root.enebuy();
_root.combinx();
Symbol 425 MovieClip Frame 1
stop();
Symbol 432 MovieClip Frame 1
stop();
Symbol 436 MovieClip Frame 1
stop();
Symbol 436 MovieClip Frame 2
tr = random(3) + 1;
_root.efek1.stop();
_root.efek1.attachSound("lem" + tr);
_root.efek1.start();
Symbol 436 MovieClip Frame 16
_root.dealt1(_root.nowdmg, _root.nowppt, _root.nowbpt, codex);
Symbol 436 MovieClip Frame 21
gotoAndStop (1);
Symbol 436 MovieClip Frame 22
tr = random(3) + 1;
_root.efek1.stop();
_root.efek1.attachSound("lem" + tr);
_root.efek1.start();
Symbol 436 MovieClip Frame 37
_root.dealt1(_root.nowdmg, _root.nowppt, _root.nowbpt, codex);
Symbol 436 MovieClip Frame 42
gotoAndStop (1);
Symbol 436 MovieClip Frame 43
tr = random(3) + 1;
_root.efek1.stop();
_root.efek1.attachSound("lem" + tr);
_root.efek1.start();
Symbol 436 MovieClip Frame 59
_root.dealt1(_root.nowdmg, _root.nowppt, _root.nowbpt, codex);
Symbol 436 MovieClip Frame 63
gotoAndStop (1);
Symbol 436 MovieClip Frame 64
tr = random(3) + 1;
_root.efek1.stop();
_root.efek1.attachSound("lem" + tr);
_root.efek1.start();
Symbol 436 MovieClip Frame 81
_root.dealt1(_root.nowdmg, _root.nowppt, _root.nowbpt, codex);
Symbol 436 MovieClip Frame 85
gotoAndStop (1);
Symbol 439 Button
on (release) {
_root.gotoAndStop("sop");
}
Symbol 444 MovieClip Frame 1
stop();
Symbol 445 Button
on (release) {
_root.pasin._visible = 0;
_root.pason._visible = 0;
_root.pauss = 0;
}
Symbol 447 Button
on (release) {
_root.pasin._visible = 0;
_root.pason._visible = 0;
_root.pauss = 0;
_root.changelevel();
}
Symbol 448 Button
on (release) {
_root.pasin._visible = 0;
_root.pason._visible = 0;
_root.gotoAndStop("main");
}
Symbol 450 Button
on (release) {
_root.pasin._visible = 0;
_root.pason._visible = 0;
_root.pauss = 0;
_root.gotoAndStop("mapselect");
}
Symbol 452 MovieClip Frame 1
stop();
Symbol 452 MovieClip Frame 6
_root.efek5.stop();
_root.efek5.attachSound("win");
_root.efek5.start();
Symbol 452 MovieClip Frame 10
_root.efek5.stop();
_root.efek5.attachSound("lose");
_root.efek5.start();
Symbol 453 Button
on (release) {
_root.gotoAndStop("bat");
}
Symbol 465 Button
on (release) {
_root.gotoAndStop("tut3");
}
Symbol 484 Button
on (release) {
if (_root.okbo == 1) {
_root.lo.removeMovieClip();
_root.gotoAndStop("game");
}
}
Symbol 487 Button
on (release) {
_root.lo.loki.removeMovieClip();
_root.gotoAndStop("main");
}
Symbol 490 Button
on (release) {
_root.lo.loki.removeMovieClip();
_root.stz.gotoAndPlay(2);
}
Symbol 493 Button
on (release) {
_root.canload = 1;
_root.stz.gotoAndPlay("sav");
_root.saves();
}
Symbol 496 MovieClip Frame 53
gotoAndPlay (1);
Symbol 520 Button
on (release) {
play();
}
Symbol 521 Button
on (release) {
if ((_root.gpsx >= 25) and (_root.shp < _root.smhp)) {
_root.gpsx = _root.gpsx - 25;
_root.shp = _root.shp + 5;
if (_root.shp >= _root.smhp) {
_root.shp = _root.smhp;
}
}
}
on (rollOver) {
_root.stz.costy = 25;
}
on (rollOut) {
_root.stz.costy = 0;
}
Symbol 523 Button
on (release) {
bari = _root.smhp - _root.shp;
if ((_root.gpsx >= (bari * 5)) and (_root.shp < _root.smhp)) {
_root.gpsx = _root.gpsx - (bari * 5);
_root.shp = _root.smhp;
}
}
on (rollOver) {
bari = _root.smhp - _root.shp;
_root.stz.costy = bari * 5;
}
on (rollOut) {
_root.stz.costy = 0;
}
Symbol 528 MovieClip Frame 1
stop();
Symbol 531 MovieClip Frame 1
stop();
Symbol 531 MovieClip Frame 10
function ref() {
_root.shp = _root.smhp;
_root.shipen = _root.mshipen;
if (_root.sspd >= 1) {
this.u5.gotoAndStop(2);
delete this.u5.onRelease;
delete this.u5.onRollOver;
}
}
var harga = [0, 2000, 2000, 3000, 6000, 3000];
this.costy = 0;
i = 1;
while (i <= 5) {
this["u" + i].cost = harga[i];
this["u" + i].codes = i;
this["u" + i].onRelease = function () {
if (_root.gpsx >= this.cost) {
switch (this.codes) {
case 1 :
_root.smhp = _root.smhp + 5;
break;
case 2 :
_root.mshipen = _root.mshipen + 5;
break;
case 3 :
_root.satp = _root.satp + 2;
break;
case 4 :
_root.sdef = _root.sdef + 1;
break;
case 5 :
if (_root.sspd >= 1) {
_root.gpsx = _root.gpsx + this.cost;
} else {
_root.sspd = _root.sspd + 0.02;
}
}
_root.gpsx = _root.gpsx - this.cost;
this._parent.ref();
}
};
this["u" + i].onRollOver = function () {
_root.stz.costy = this.cost;
};
this["u" + i].onRollOut = function () {
_root.stz.costy = 0;
};
i++;
}
this._parent.ref();
stop();
Symbol 531 MovieClip Frame 11
i = 1;
while (i <= 5) {
delete this["u" + i].onRelease;
i++;
}
Symbol 531 MovieClip Frame 20
gotoAndStop (1);
Symbol 531 MovieClip Frame 40
gotoAndStop (1);
Symbol 532 Button
on (release) {
_root.gotoAndStop("tut");
}
Symbol 549 MovieClip Frame 1
stop();
Symbol 553 MovieClip Frame 1
stop();
Symbol 557 MovieClip Frame 1
stop();
Symbol 562 MovieClip Frame 1
stop();
Symbol 566 MovieClip Frame 1
stop();
Symbol 569 MovieClip Frame 1
stop();
Symbol 572 MovieClip Frame 1
stop();
Symbol 576 MovieClip Frame 1
stop();
Symbol 579 MovieClip Frame 1
stop();
Symbol 580 MovieClip Frame 1
stop();
var mati = false;
var mlife = _root.xarit[_root.plycx2][0];
var atkx = _root.xarit[_root.plycx2][1];
var model = 2;
var life = mlife;
Symbol 580 MovieClip Frame 10
mati = true;
_root.pres = _root.pres - 6;
_root.gpsx = _root.gpsx + 300;
Symbol 580 MovieClip Frame 18
this._visible = false;
stop();
Symbol 588 MovieClip Frame 1
stop();
Symbol 589 MovieClip Frame 1
var mati = false;
var life = (5 + ((_root.stage - 1) * 5));
stop();
Instance of Symbol 588 MovieClip "rik" in Symbol 589 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.plycx2);
}
Symbol 589 MovieClip Frame 2
mati = true;
Symbol 589 MovieClip Frame 10
this._visible = false;
Symbol 594 MovieClip Frame 1
var bounceY = true;
var bounceX = true;
var _first = true;
var ax = 1;
var ay = -1;
_visible = false;
Symbol 595 MovieClip Frame 1
stop();
Symbol 610 MovieClip Frame 1
stop();
var xspeed = 0;
var yspeed = 0;
var shot_count = 0;
t = 0;
st = 0;
onMouseMove = function () {
var _local3 = ((_xmouse < 0) ? 270 : 90);
var _local2 = ((Math.atan(_ymouse / _xmouse) * 180) / Math.PI) + _local3;
if (_local2 < 90) {
_local2 = 90;
} else if (_local2 > 270) {
_local2 = 270;
}
this.ball._rotation = _local2;
};
onMouseUp = function () {
_root.shootauto = false;
_root.shooterauto.stop();
};
onMouseDown = function () {
if (_root.shipen > 0) {
st++;
if (st >= 10) {
st = 0;
_root.shipen--;
}
abc = _root.stagex.attachMovie("panah", "shot" + shot_count, _root.stagex.getNextHighestDepth());
shot_count++;
abc.coco = 1;
abc._x = _root.stagex.ufi._x + xspeed;
abc._y = _root.stagex.ufi._y + yspeed;
abc._rotation = this.ball._rotation;
}
_root.shootauto = true;
_root.shooterauto.gotoAndPlay(2);
};
baksa = 0;
onEnterFrame = function () {
if (this.hitTest(_parent.land1x.boxu)) {
if (baksa == 0) {
baksa = 1;
_root.sounder(_root.efek4, "enu");
}
_root.shipen++;
if (_root.shipen >= _root.mshipen) {
_root.shipen = _root.mshipen;
}
_root.maptut._visible = 1;
_root.maptut.gotoAndStop(1);
} else if (this.hitTest(_parent.land2x.boxu)) {
if (_root.pres <= 10) {
_root.maptut._visible = 1;
_root.maptut.gotoAndStop(2);
} else {
_root.maptut._visible = 1;
_root.maptut.gotoAndStop(3);
}
} else {
baksa = 0;
_root.maptut._visible = 0;
}
if (Key.isDown(32) and this.hitTest(_parent.land1x.boxu)) {
_root.gotoAndStop("mapselect");
}
if (_root.pres <= 0) {
_root.pres = 0;
}
if ((Key.isDown(32) and this.hitTest(_parent.land2x.boxu)) and (_root.pres <= 10)) {
_root.gotoAndPlay("gen");
}
if (_root.shipen > 0) {
t++;
if (t >= _root.fpsx) {
t = 0;
_root.shipen--;
}
if ((_root.shipen <= 0) || (_root.shp <= 0)) {
_root.shipen = 1;
_root.shp = 1;
_root.deader.play();
}
var _local9 = 0.99;
var _local8 = _root.sspd;
if (Key.isDown(65)) {
xspeed = xspeed - _local8;
this.sxx._xscale = 100;
}
if (Key.isDown(68)) {
xspeed = xspeed + _local8;
this.sxx._xscale = -100;
}
if (Key.isDown(87)) {
yspeed = yspeed - _local8;
}
if (Key.isDown(83)) {
yspeed = yspeed + _local8;
}
xspeed = xspeed * _local9;
yspeed = yspeed * _local9;
if ((xspeed < 0.1) and (xspeed > -0.1)) {
xspeed = 0;
}
if ((yspeed < 0.1) and (yspeed > -0.1)) {
yspeed = 0;
}
last_y = this._y;
last_x = this._x;
this._y = this._y + yspeed;
this._x = this._x + xspeed;
_root.shp_txt.text = _root.shp;
var _local7 = true;
var _local5 = 0;
while (_local5 <= 7) {
var _local6 = false;
var _local4 = 0;
while (_local4 < _parent.max_box) {
if (_parent["box" + _local4] == undefined) {
} else if (!_parent["box" + _local4]._visible) {
} else if (_parent["box" + _local4].mati) {
} else {
_local6 = _local6 || (_parent["box" + _local4].hitTest((_parent._x + this["point" + _local5]._x) + this._x, (_parent._y + this["point" + _local5]._y) + this._y, true));
}
_local4++;
}
if (_parent.wall.hitTest((_parent._x + this["point" + _local5]._x) + this._x, (_parent._y + this["point" + _local5]._y) + this._y, true) || (_local6)) {
if (_local7) {
_root.shp--;
if (_root.shp < 0) {
_root.shp = 0;
_local7 = false;
}
}
if (this["point" + _local5].bounceY) {
yspeed = (-yspeed) / 1.6;
this._y = last_y;
}
if (this["point" + _local5].bounceX) {
xspeed = (-xspeed) / 1.6;
this._x = last_x;
}
}
_local5++;
}
if ((this.point4._x + this._x) >= 1920) {
xspeed = 0;
this._x = last_x;
} else if ((this.point2._x + this._x) <= 0) {
xspeed = 0;
this._x = last_x;
}
if ((this.point6._y + this._y) <= 0) {
yspeed = 0;
this._y = last_y;
}
}
};
Instance of Symbol 594 MovieClip "point0" in Symbol 610 MovieClip Frame 1
onClipEvent (enterFrame) {
if (!_first) {
return(undefined);
}
bounceY = true;
bounceX = false;
_first = false;
}
Instance of Symbol 594 MovieClip "point1" in Symbol 610 MovieClip Frame 1
onClipEvent (enterFrame) {
if (!_first) {
return(undefined);
}
bounceY = true;
bounceX = true;
_first = false;
}
Instance of Symbol 594 MovieClip "point2" in Symbol 610 MovieClip Frame 1
onClipEvent (enterFrame) {
if (!_first) {
return(undefined);
}
bounceY = false;
bounceX = true;
_first = false;
}
Instance of Symbol 594 MovieClip "point5" in Symbol 610 MovieClip Frame 1
onClipEvent (enterFrame) {
if (!_first) {
return(undefined);
}
bounceY = true;
bounceX = true;
_first = false;
}
Instance of Symbol 594 MovieClip "point3" in Symbol 610 MovieClip Frame 1
onClipEvent (enterFrame) {
if (!_first) {
return(undefined);
}
bounceY = true;
bounceX = true;
_first = false;
}
Instance of Symbol 594 MovieClip "point4" in Symbol 610 MovieClip Frame 1
onClipEvent (enterFrame) {
if (!_first) {
return(undefined);
}
bounceY = false;
bounceX = true;
_first = false;
}
Instance of Symbol 594 MovieClip "point6" in Symbol 610 MovieClip Frame 1
onClipEvent (enterFrame) {
if (!_first) {
return(undefined);
}
bounceY = true;
bounceX = false;
_first = false;
}
Instance of Symbol 594 MovieClip "point7" in Symbol 610 MovieClip Frame 1
onClipEvent (enterFrame) {
if (!_first) {
return(undefined);
}
bounceY = true;
bounceX = true;
_first = false;
}
Symbol 611 MovieClip Frame 1
function regenmap() {
i = 1;
while (i <= max_pop) {
asd = this["boxp" + i];
asd.mati = false;
asd.walkie = 0;
asd.tipex = 1;
asd.kode = i;
asd.races = _root.plycx2;
asd.gotoAndStop(asd.races);
asd.og.gotoAndStop(3);
asd.t = 0;
asd.rot = 0;
asd.wt = 0;
asd.revi = 0;
asd.hitox = 0;
asd.wtx = random(this.fpsx) + (_root.fpsx * 2);
asd.txs = random(60) + 30;
asd.onEnterFrame = function () {
if (this.mati == false) {
thelife = (this.life / this.mlife) * 100;
this.lbar.gotoAndStop(Math.floor(101 - thelife));
if (this.tipex == 1) {
this.distX = _root.stagex.ufi._x - this._x;
if (this.model == 1) {
this.mxx = 200;
} else {
this.mxx = 400;
}
if ((this.distX > (-this.mxx)) and (this.distX < this.mxx)) {
this.hitox = 0;
this.tail_nodes = 10;
this.nodes = new Array();
i = 1;
while (i < this.tail_nodes) {
this.nodes[i] = {x:this._x, y:this._y};
i++;
}
bbc = _root.stagex.createEmptyMovieClip("liner" + this.kode, 777 + this.kode);
bbc.clear();
bbc.lineStyle(0, 16777215, 0);
bbc.moveTo(this._x, this._y);
this.nodes[0] = {x:this._x, y:this._y};
var i = 1;
while (i < (this.tail_nodes - 1)) {
rotation = Math.atan2(_root.stagex.ufi._y - this.nodes[i - 1].y, _root.stagex.ufi._x - this.nodes[i - 1].x);
this.pos_x = this.nodes[i - 1].x + (40 * Math.cos(rotation));
this.pos_y = this.nodes[i - 1].y + (40 * Math.sin(rotation));
this.nodes[i] = {x:this.pos_x, y:this.pos_y};
if (_root.stagex.wall.hitTest(_root.stagex._x + this.pos_x, _root.stagex._y + this.pos_y, true)) {
this.hitox = 1;
}
bbc.lineTo(this.pos_x, this.pos_y);
i++;
}
this.aimX = this._x;
this.aimY = this._y;
this.aimXm = _root.stagex.ufi._x;
this.aimYm = _root.stagex.ufi._y - 10;
this.Xdiff = this.aimXm - this.aimX;
this.Ydiff = -(this.aimYm - this.aimY);
this.radAngle = Math.atan(this.Ydiff / this.Xdiff);
if (this.Xdiff < 0) {
this.corrFactor = 270;
} else {
this.corrFactor = 90;
}
this.og.hand._rotation = (((-this.radAngle) * 360) / (Math.PI*2)) + this.corrFactor;
this.buy._rotation = (((-this.radAngle) * 360) / (Math.PI*2)) + this.corrFactor;
this.t++;
if (this.t >= this.txs) {
if (this.hitox == 0) {
this.t = 0;
this.txs = random(60) + 30;
abcd = _root.stagex.attachMovie("panah", "shot" + shot_count, _root.stagex.getNextHighestDepth());
shot_count++;
abcd.damages = this.atkx - _root.sdef;
if (abcd.damages <= 0) {
abcd.damages = 1;
}
abcd.coco = 2;
abcd._x = this._x;
abcd._y = this._y;
abcd._rotation = this.buy._rotation;
}
}
} else {
_root.stagex["liner" + this.kode].removeMovieClip();
}
} else {
this.wt++;
if (this.wt >= this.wtx) {
this.wt = 0;
this.rani = random(2) + 1;
this.wtx = random(this.fpsx) + (_root.fpsx * 2);
this.og.gotoAndStop(2);
}
if (this.rani == 1) {
this._x++;
this.walkie++;
this._xscale = 40;
} else if (this.rani == 2) {
this._x--;
this.walkie--;
this._xscale = -40;
}
if ((this.walkie >= 30) or (this.walkie <= -30)) {
this.rani = 0;
this.og.gotoAndStop(1);
}
}
} else {
this.revi++;
if (this.revi >= (_root.fpsx * _root.xgrowth[_root.plycx2])) {
_root.pres = _root.pres + 2;
this.life = this.mlife;
this.revi = 0;
this.mati = false;
this._visible = 1;
this.gotoAndStop(this.races);
this.og.gotoAndStop(3);
}
}
};
i++;
}
}
var max_box = 15;
var max_pop = 40;
regenmap();
i = 34;
while (i <= 40) {
this["boxp" + i].tipex = 2;
i++;
}
Instance of Symbol 549 MovieClip "wall" in Symbol 611 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.plycx2);
}
Instance of Symbol 401 MovieClip "land1x" in Symbol 611 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.plycx1);
}
Instance of Symbol 401 MovieClip "land2x" in Symbol 611 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.plycx2);
}
Instance of Symbol 610 MovieClip "ufi" in Symbol 611 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.plycx1);
this.ball.ball_itself.gotoAndStop(_root.plycx1);
}
Symbol 611 MovieClip Frame 2
regenmap();
i = 34;
while (i <= 40) {
this["boxp" + i].tipex = 2;
i++;
}
Symbol 611 MovieClip Frame 3
regenmap();
i = 34;
while (i <= 40) {
this["boxp" + i].tipex = 2;
i++;
}
Symbol 611 MovieClip Frame 4
regenmap();
i = 34;
while (i <= 40) {
this["boxp" + i].tipex = 2;
i++;
}
Symbol 611 MovieClip Frame 5
regenmap();
i = 34;
while (i <= 40) {
this["boxp" + i].tipex = 2;
i++;
}
Symbol 611 MovieClip Frame 6
regenmap();
i = 34;
while (i <= 40) {
this["boxp" + i].tipex = 2;
i++;
}
Symbol 611 MovieClip Frame 7
regenmap();
i = 34;
while (i <= 40) {
this["boxp" + i].tipex = 2;
i++;
}
Symbol 611 MovieClip Frame 8
regenmap();
i = 34;
while (i <= 40) {
this["boxp" + i].tipex = 2;
i++;
}
Symbol 631 MovieClip Frame 1
stop();
Symbol 634 Button
on (release) {
_root.aborter.play();
}
Symbol 636 MovieClip Frame 1
stop();
Symbol 636 MovieClip Frame 7
if (_root.shipen > 0) {
_root.stagex.ufi.st++;
if (_root.stagex.ufi.st >= 10) {
_root.stagex.ufi.st = 0;
_root.shipen--;
}
_root.stagex.ufi.abc = _root.stagex.attachMovie("panah", "shot" + _root.stagex.ufi.shot_count, _root.stagex.getNextHighestDepth());
_root.stagex.ufi.shot_count++;
_root.stagex.ufi.abc.coco = 1;
_root.stagex.ufi.abc._x = _root.stagex.ufi._x + _root.stagex.ufi.xspeed;
_root.stagex.ufi.abc._y = _root.stagex.ufi._y + _root.stagex.ufi.yspeed;
_root.stagex.ufi.abc._rotation = _root.stagex.ufi.ball._rotation;
}
gotoAndPlay (2);
Symbol 641 MovieClip Frame 244
stop();
Symbol 647 MovieClip Frame 1
stop();
Symbol 647 MovieClip Frame 35
_root.bgm.stop();
_root.bgm.attachSound("bgms");
_root.bgm.start();
Mouse.show();
_root.gotoAndStop("mapselect");
stop();
Symbol 653 MovieClip Frame 1
stop();
Symbol 653 MovieClip Frame 3
_root.stagex.ufi.shpfrag.play();
Symbol 653 MovieClip Frame 35
_root.bgm.stop();
_root.bgm.attachSound("bgms");
_root.bgm.start();
Mouse.show();
_root.gotoAndStop("mapselect");
stop();
Symbol 654 Button
on (release) {
_root.gotoAndStop("main");
}
Symbol 663 MovieClip Frame 1
stop();