Frame 1
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=7&fv=") + fv) + "&v=") + escape(getVersion())) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
function lvltospd(num) {
if (num == 1) {
return(0.985714285714286);
}
if (num == 2) {
return(0.966666666666667);
}
return(0.9);
}
var myMenu = new ContextMenu();
myMenu.hideBuiltInItems();
_root.menu = myMenu;
MochiKey.initialize();
__com_mochibot__("c868075b", this, 10301, true);
var fc0000b9d9e8e0f8 = "fc0000b8e9d8e0f8";
var fc0000b8e8d9e0f8 = "fc0000b9e8d9d0f8";
var fc0000b8d9d8e0f8 = "fc0000b8e9d9d0f8";
var fc0000b9d9e9d0f8 = "fc0000b8d9d8e0f8";
var fc0000b8d9e9e0f8 = "fc0000b8e8d9d0f8";
var fc0000b9e8e8d0f8 = "fc0000b8e8d9e0f8";
var fc0000b8e9d8e0f8 = "fc0000b9d9e9d0f8";
var fc0000b8e8e9d0f8 = "fc0000b9d9e8e0f8";
var fc0000b9e8e8e0f8 = "fc0000b8d9e8e0f8";
var fc0000b8e8d8e0f8 = "fc0000b9e8e9d0f8";
var fc0000b9e8e9d0f8 = "fc0000b9e8e9e0f8";
var fc0000b8e8d8d0f8 = "fc0000b9d9e9d0f8";
var fc0000b9e8d9d0f8 = "fc0000b8e8e9d0f8";
var fc0000b8d9e8e0f8 = "fc0000b9e8e8d0f8";
var fc0000b8e8d9d0f8 = "fc0000b8e9d8e0f8";
var fc0000b9e8e9e0f8 = "fc0000b9e8e8d0f8";
mochi.MochiServices.connect(_root[_root[_root[_root[_root[fc0000b9e8d9d0f8]]]]]);
deadtime = 100;
allscale = 51.4053344726563;
i = 0;
while (i < 20) {
createEmptyMovieClip("soundmc" + i, 30 + i);
i++;
}
createEmptyMovieClip("musicmc", 29);
songplaying = -1;
sounds = new Array(20);
i = 0;
while (i < 20) {
sounds[i] = new Sound(_root["soundmc" + i]);
i++;
}
songsoundi = new Sound(_root.musicmc);
swordsok = false;
pwsongsound = new Array(6);
musicoff = false;
pwsongsound[0] = 0;
pwsongsound[1] = 140;
pwsongsound[2] = 80;
pwsongsound[3] = 180;
pwsongsound[4] = 100;
pwsongsound[5] = 100;
maptosong = function (numnu) {
if (numnu == 3) {
return(4);
}
if (numnu == 4) {
return(3);
}
if (numnu == 11) {
return(5);
}
if (numnu == 12) {
return(2);
}
if (numnu == 13) {
return(5);
}
if (numnu == 14) {
return(2);
}
if (numnu == 15) {
return(3);
}
if (numnu == 16) {
return(4);
}
if (numnu == 17) {
return(2);
}
if (numnu == 18) {
return(5);
}
};
songfade = function () {
musicmc.onEnterFrame = function () {
if (songsoundi.getVolume() > 0) {
songsoundi.setVolume(Math.max(songsoundi.getVolume() - 2, 0));
} else {
songsoundi.stop();
songplaying = -1;
delete musicmc.onEnterFrame;
}
};
};
songsound = function (numnum) {
if (songplaying == numnum) {
return(undefined);
}
delete _root.musicmc.onEnterFrame;
if (musicvol) {
musicoff = false;
}
if (!musicoff) {
songplaying = numnum;
songsoundi.stop();
songsoundi.attachSound("song" + numnum);
songsoundi.setVolume((pwsongsound[numnum] * musicvol) / 100);
songsoundi.start(0, 9999);
}
};
soundc = 0;
msound = function (snd, volme) {
if (volme == undefined) {
volme = 100;
}
var sondvl = ((volme * soundvol) / 100);
if (sondvl) {
sounds[soundc].stop();
sounds[soundc].attachSound(snd);
sounds[soundc].setVolume(sondvl);
sounds[soundc].start();
soundc = (soundc + 1) % 20;
}
};
soundmake = function (soundt, num, dist) {
var rnd = (random(num) + 1);
if (dist < 400) {
msound(soundt + rnd);
} else if (dist < 1200) {
msound(soundt + rnd, 150 - (0.125 * dist));
}
};
picksound = function (postx, posty) {
var dist = Math.sqrt(((postx - h._x) * (postx - h._x)) + ((posty - h._y) * (posty - h._y)));
soundmake("pickup", 1, dist);
};
trwcsound = function (postx, posty) {
var dist = Math.sqrt(((postx - h._x) * (postx - h._x)) + ((posty - h._y) * (posty - h._y)));
soundmake("switchtrw", 1, dist);
};
appearsound = function (postx, posty) {
var dist = Math.sqrt(((postx - h._x) * (postx - h._x)) + ((posty - h._y) * (posty - h._y)));
soundmake("appear", 1, dist);
};
disappearsound = function (postx, posty) {
var dist = Math.sqrt(((postx - h._x) * (postx - h._x)) + ((posty - h._y) * (posty - h._y)));
soundmake("disappear", 1, dist);
};
change1sound = function (postx, posty) {
var dist = Math.sqrt(((postx - h._x) * (postx - h._x)) + ((posty - h._y) * (posty - h._y)));
soundmake("swordchange", 1, dist);
};
change2sound = function (postx, posty) {
var dist = Math.sqrt(((postx - h._x) * (postx - h._x)) + ((posty - h._y) * (posty - h._y)));
soundmake("bowchange", 1, dist);
};
throwsound = function (postx, posty) {
var dist = Math.sqrt(((postx - h._x) * (postx - h._x)) + ((posty - h._y) * (posty - h._y)));
soundmake("throw", 1, dist);
};
blockedsound = function (postx, posty) {
var dist = Math.sqrt(((postx - h._x) * (postx - h._x)) + ((posty - h._y) * (posty - h._y)));
soundmake("blocked", 2, dist);
};
arrowhitsound = function (postx, posty) {
var dist = Math.sqrt(((postx - h._x) * (postx - h._x)) + ((posty - h._y) * (posty - h._y)));
soundmake("arrowhit", 1, dist);
};
bloodsound = function (postx, posty) {
var dist = Math.sqrt(((postx - h._x) * (postx - h._x)) + ((posty - h._y) * (posty - h._y)));
soundmake("blood", 2, dist);
};
manhitsound = function (postx, posty) {
var dist = Math.sqrt(((postx - h._x) * (postx - h._x)) + ((posty - h._y) * (posty - h._y)));
soundmake("manhit", 4, dist);
};
arrowsound = function (postx, posty) {
if (swordsok) {
var dist = Math.sqrt(((postx - h._x) * (postx - h._x)) + ((posty - h._y) * (posty - h._y)));
soundmake("arrow", 1, dist);
}
};
swordsound = function (postx, posty) {
if (swordsok) {
var dist = Math.sqrt(((postx - h._x) * (postx - h._x)) + ((posty - h._y) * (posty - h._y)));
soundmake("sword", 3, dist);
}
};
bombsound = function (postx, posty) {
var dist = Math.sqrt(((postx - h._x) * (postx - h._x)) + ((posty - h._y) * (posty - h._y)));
soundmake("bomb", 1, dist);
};
var savefile = SharedObject.getLocal("Arcane8");
if (isNaN(savefile.data.musicvol)) {
savefile.data.gamequality = "MEDIUM";
savefile.data.missfx = true;
savefile.data.arrowsfx = true;
savefile.data.musicvol = 100;
savefile.data.soundvol = 100;
}
missfx = savefile.data.missfx;
arrowsfx = savefile.data.arrowsfx;
gamequality = savefile.data.gamequality;
soundvol = savefile.data.soundvol;
musicvol = savefile.data.musicvol;
if (!musicvol) {
musicoff = true;
}
keyListener = new Object();
keyListener.onKeyDown = function () {
keyp = String.fromCharCode(Key.getAscii());
if (!bef) {
switch (keyp) {
case "r" :
trwleft();
return;
case "t" :
trwright();
return;
case "i" :
hudopen();
hud.stats.doto();
return;
case "p" :
hud.options.doto();
return;
case "o" :
hud.options.doto();
return;
case "b" :
if (h.iarmor2 != 34) {
_root.msound("placed");
var tsp = h.iarmor;
h.iarmor = h.iarmor2;
h.iarmor2 = tsp;
h["p" + h._currentframe].body.gotoAndStop(1);
h["p" + h._currentframe].legu1.gotoAndStop(1);
h["p" + h._currentframe].legu2.gotoAndStop(1);
h["p" + h._currentframe].legd1.gotoAndStop(1);
h["p" + h._currentframe].legd2.gotoAndStop(1);
h.rh.hndd1.gotoAndStop(1);
h.lh.hndd2.gotoAndStop(1);
h.rh.shldr.gotoAndStop(1);
h.lh.shldr.gotoAndStop(1);
h.lh.shield.gotoAndStop(1);
hud.stash.slide1.moveto(Number(!hud.stash.slide1.cp));
hud.stats.t2.text = 10 * _root.armor[h.iarmor - 2].wepa;
hud.stats.t3.text = 10 * _root.armor[h.iarmor - 2].bowa;
hud.stats.t4.text = walktotalk(_root.armor[h.iarmor - 2].walk);
h.speed = walktospeed(_root.armor[_root.h.iarmor - 2].walk);
hud.stats.t8.text = (100 * _root.armor[h.iarmor - 2].chance) + "%";
}
return;
case "e" :
firtrw();
return;
case " " :
if (h.both) {
if (freeze) {
if (h.bow) {
_root.change1sound(h._x, h._y);
hud.stash.slide3.moveto(0);
if (!h.dead) {
h.rh.gotoAndPlay(34);
h.lh.gotoAndPlay(34);
}
} else {
_root.change2sound(h._x, h._y);
hud.stash.slide3.moveto(1);
if (!h.dead) {
h.rh.gotoAndPlay(159);
h.lh.gotoAndPlay(55);
}
}
h.bow = !h.bow;
} else {
hud.stash.slide3.moveto(Number(!hud.stash.slide3.cp));
}
}
return;
case "s" :
if (freeze && (!h.dead)) {
if ((!duck) && (!h.down)) {
duck = true;
uduck = false;
h.gotoAndStop(7);
}
}
return;
case "w" :
if (!(freeze && (!h.dead))) {
break;
}
if (!(((!duck) && (!h.djump)) && (wflag))) {
break;
}
h.fwall = null;
wflag = false;
if (h.jump) {
h.djump = true;
} else {
h.vx = h.bvx;
}
h.bvx = 0;
h.vy = h.svy;
h.down = true;
h.jump = true;
if (h.djump) {
h.gotoAndStop(5);
h.p5.gotoAndPlay(1);
} else {
h.gotoAndStop(4);
}
}
}
};
onmadi = function () {
if (hud.stats.cac.b1.hitTest(_xmouse, _ymouse, false)) {
if (((!hud.stash.cac.openb.up) && (!hud.stats.up)) && (!hud.options._visible)) {
hudopen();
hud.stats.doto();
}
} else if (hud.stash.cac.openb.hitTest(_xmouse, _ymouse, false) || (hud.hud.cac.b1.hitTest(_xmouse, _ymouse, false))) {
if (hud.stash.cac.openb.up == hud.stats.up) {
hudopen();
hud.stats.doto();
}
} else if (hud.hud.cac.b2.hitTest(_xmouse, _ymouse, false)) {
hud.options.doto();
} else if (hud.options.cac.b1.hitTest(_xmouse, _ymouse, false)) {
if (!hud.options.up) {
_root.msound("clickd");
hud.options.doto();
}
} else {
if (!hud.stash.cac.openb.up) {
if (hud.stash.cac.s1.hitTest(_xmouse, _ymouse, true)) {
if (h.iarmor2 != 34) {
_root.msound("placed");
if (hud.stash.slide1.cp) {
var tsp = h.iarmor;
h.iarmor = h.iarmor2;
h.iarmor2 = tsp;
h["p" + h._currentframe].body.gotoAndStop(1);
h["p" + h._currentframe].legu1.gotoAndStop(1);
h["p" + h._currentframe].legu2.gotoAndStop(1);
h["p" + h._currentframe].legd1.gotoAndStop(1);
h["p" + h._currentframe].legd2.gotoAndStop(1);
h.rh.hndd1.gotoAndStop(1);
h.lh.hndd2.gotoAndStop(1);
h.rh.shldr.gotoAndStop(1);
h.lh.shldr.gotoAndStop(1);
h.lh.shield.gotoAndStop(1);
hud.stats.t2.text = _root.armor[h.iarmor - 2].wepa * 10;
hud.stats.t3.text = _root.armor[h.iarmor - 2].bowa * 10;
hud.stats.t4.text = walktotalk(_root.armor[h.iarmor - 2].walk);
h.speed = walktospeed(_root.armor[_root.h.iarmor - 2].walk);
hud.stats.t8.text = (100 * _root.armor[h.iarmor - 2].chance) + "%";
}
hud.stash.slide1.moveto(0);
}
} else if (hud.stash.cac.s2.hitTest(_xmouse, _ymouse, false)) {
if (h.iarmor2 != 34) {
_root.msound("placed");
if (!hud.stash.slide1.cp) {
var tsp = h.iarmor;
h.iarmor = h.iarmor2;
h.iarmor2 = tsp;
h["p" + h._currentframe].body.gotoAndStop(1);
h["p" + h._currentframe].legu1.gotoAndStop(1);
h["p" + h._currentframe].legu2.gotoAndStop(1);
h["p" + h._currentframe].legd1.gotoAndStop(1);
h["p" + h._currentframe].legd2.gotoAndStop(1);
h.rh.hndd1.gotoAndStop(1);
h.lh.hndd2.gotoAndStop(1);
h.rh.shldr.gotoAndStop(1);
h.lh.shldr.gotoAndStop(1);
h.lh.shield.gotoAndStop(1);
hud.stats.t2.text = _root.armor[h.iarmor - 2].wepa * 10;
hud.stats.t3.text = _root.armor[h.iarmor - 2].bowa * 10;
hud.stats.t4.text = walktotalk(_root.armor[h.iarmor - 2].walk);
h.speed = walktospeed(_root.armor[_root.h.iarmor - 2].walk);
hud.stats.t8.text = (100 * _root.armor[h.iarmor - 2].chance) + "%";
}
hud.stash.slide1.moveto(1);
}
} else if (hud.stash.cac.s3.hitTest(_xmouse, _ymouse, false)) {
if (w1 != 3) {
_root.trwcsound(h._x, h._y);
hud.stash.slide2.moveto(0);
h.trw = w1;
hud.hud.trwn.text = w1n;
hud.hud.trwd.text = ((throws[w1 - 1].damage + ",") + (100 * throws[w1 - 1].chance)) + "%";
hud.stats.t7.text = ((throws[h.trw - 1].damage + ",") + (100 * throws[h.trw - 1].chance)) + "%";
}
} else if (hud.stash.cac.s4.hitTest(_xmouse, _ymouse, false)) {
if (w2 != 3) {
_root.trwcsound(h._x, h._y);
hud.stash.slide2.moveto(1);
h.trw = w2;
hud.hud.trwn.text = w2n;
hud.hud.trwd.text = ((throws[w2 - 1].damage + ",") + (100 * throws[w2 - 1].chance)) + "%";
hud.stats.t7.text = ((throws[h.trw - 1].damage + ",") + (100 * throws[h.trw - 1].chance)) + "%";
}
} else if (hud.stash.cac.s5.hitTest(_xmouse, _ymouse, false)) {
if (w3 != 3) {
_root.trwcsound(h._x, h._y);
hud.stash.slide2.moveto(2);
h.trw = w3;
hud.hud.trwn.text = w3n;
hud.hud.trwd.text = ((throws[w3 - 1].damage + ",") + (100 * throws[w3 - 1].chance)) + "%";
hud.stats.t7.text = ((throws[h.trw - 1].damage + ",") + (100 * throws[h.trw - 1].chance)) + "%";
}
} else if (hud.stash.cac.s6.hitTest(_xmouse, _ymouse, false)) {
if (w4 != 3) {
_root.trwcsound(h._x, h._y);
hud.stash.slide2.moveto(3);
h.trw = w4;
hud.hud.trwn.text = w4n;
hud.hud.trwd.text = ((throws[w4 - 1].damage + ",") + (100 * throws[w4 - 1].chance)) + "%";
hud.stats.t7.text = ((throws[h.trw - 1].damage + ",") + (100 * throws[h.trw - 1].chance)) + "%";
}
} else if (hud.stash.cac.s7.hitTest(_xmouse, _ymouse, false)) {
if (w5 != 3) {
_root.trwcsound(h._x, h._y);
hud.stash.slide2.moveto(4);
h.trw = w5;
hud.hud.trwn.text = w5n;
hud.hud.trwd.text = ((throws[w5 - 1].damage + ",") + (100 * throws[w5 - 1].chance)) + "%";
hud.stats.t7.text = ((throws[h.trw - 1].damage + ",") + (100 * throws[h.trw - 1].chance)) + "%";
}
} else if (hud.stash.cac.s8.hitTest(_xmouse, _ymouse, false)) {
if (w6 != 3) {
_root.trwcsound(h._x, h._y);
hud.stash.slide2.moveto(5);
h.trw = w6;
hud.hud.trwn.text = w6n;
hud.hud.trwd.text = ((throws[w6 - 1].damage + ",") + (100 * throws[w6 - 1].chance)) + "%";
hud.stats.t7.text = ((throws[h.trw - 1].damage + ",") + (100 * throws[h.trw - 1].chance)) + "%";
}
} else if (hud.stash.cac.s9.hitTest(_xmouse, _ymouse, false)) {
if (h.both) {
change1sound(h._x, h._y);
hud.stash.slide3.moveto(0);
}
} else if (hud.stash.cac.s10.hitTest(_xmouse, _ymouse, false)) {
if (h.both) {
change2sound(h._x, h._y);
hud.stash.slide3.moveto(1);
}
}
}
if (hud.stash.cac.s11.hitTest(_xmouse, _ymouse, false)) {
if (pot1 == 2) {
_root.msound("bubbles");
hud.stash.p1.gone();
hud.stash.p2.down();
hud.pb1.todo();
pot1--;
} else if (pot1 == 1) {
_root.msound("bubbles");
if (hud.stash.p2.pre) {
hud.stash.p2.gone();
hud.pb1.todo();
pot1--;
}
}
} else if (hud.stash.cac.s13.hitTest(_xmouse, _ymouse, false)) {
if (pot2 == 2) {
_root.msound("bubbles");
hud.stash.p3.gone();
hud.stash.p4.down();
hud.pb2.todo();
pot2--;
} else if (pot2 == 1) {
_root.msound("bubbles");
if (hud.stash.p4.pre) {
hud.stash.p4.gone();
hud.pb2.todo();
pot2--;
}
}
} else if (hud.stash.cac.s15.hitTest(_xmouse, _ymouse, false)) {
if (pot3 == 2) {
_root.msound("bubbles");
hud.stash.p5.gone();
hud.stash.p6.down();
hud.pb3.todo();
pot3--;
} else if (pot3 == 1) {
_root.msound("bubbles");
if (hud.stash.p6.pre) {
hud.stash.p6.gone();
hud.pb3.todo();
pot3--;
}
}
} else if (hud.stash.cac.s17.hitTest(_xmouse, _ymouse, false) && (!h.dead)) {
if (pot4 == 2) {
_root.msound("bubbles");
hud.stash.p7.gone();
hud.stash.p8.down();
pot4--;
h.hp = 100;
hud.hud.hp.bar._yscale = 100;
h.star.mask._yscale = 100;
} else if (pot4 == 1) {
_root.msound("bubbles");
if (hud.stash.p8.pre) {
hud.stash.p8.gone();
pot4--;
}
h.hp = 100;
hud.hud.hp.bar._yscale = 100;
h.star.mask._yscale = 100;
}
} else if (freeze && (!h.dead)) {
if (h.bow) {
if ((_root.h.lh._currentframe == 1) && (_root.h.rh._currentframe == 1)) {
_root.h.lh.play();
_root.h.rh.play();
_root.h.lh.bow.bow.play();
}
} else if (_root.h.rh._currentframe == 65) {
var rand = random(5);
switch (rand) {
case 0 :
_root.h.rh.gotoAndPlay(66);
break;
case 1 :
_root.h.rh.gotoAndPlay(82);
break;
case 2 :
_root.h.rh.gotoAndPlay(102);
break;
case 3 :
_root.h.rh.gotoAndPlay(125);
break;
case 4 :
_root.h.rh.gotoAndPlay(143);
}
}
}
}
if (hud.options._visible) {
if (hud.options.ear1.ear.hitTest(_xmouse, _ymouse, false)) {
hud.options.ear1.ear.onEnterFrame = function () {
if (MochiKey.isDown(1)) {
this._x = Math.min(Math.max(this._parent._xmouse, this._parent.xmin), this._parent.xmax);
soundvol = (100 * (this._x - this._parent.xmin)) / (this._parent.xmax - this._parent.xmin);
} else {
delete this.onEnterFrame;
}
};
} else if (hud.options.ear1.hitTest(_xmouse, _ymouse, false)) {
hud.options.ear1.ear._x = Math.min(Math.max(hud.options.ear1._xmouse, hud.options.ear1.xmin), hud.options.ear1.xmax);
soundvol = (100 * (hud.options.ear1.ear._x - hud.options.ear1.xmin)) / (hud.options.ear1.xmax - hud.options.ear1.xmin);
} else if (hud.options.ear2.ear.hitTest(_xmouse, _ymouse, false)) {
hud.options.ear2.ear.onEnterFrame = function () {
if (MochiKey.isDown(1)) {
this._x = Math.min(Math.max(this._parent._xmouse, this._parent.xmin), this._parent.xmax);
musicvol = (100 * (this._x - this._parent.xmin)) / (this._parent.xmax - this._parent.xmin);
} else {
delete this.onEnterFrame;
}
if ((pwsongsound[maptosong(_root._currentframe)] * musicvol) / 100) {
if (musicoff) {
musicoff = false;
songsoundi.stop();
songsoundi.attachSound("song" + maptosong(_root._currentframe));
songsoundi.setVolume((pwsongsound[maptosong(_root._currentframe)] * musicvol) / 100);
songsoundi.start(0, 9999);
}
songsoundi.setVolume((pwsongsound[maptosong(_root._currentframe)] * musicvol) / 100);
} else {
musicoff = true;
songsoundi.stop();
}
};
} else if (hud.options.ear2.hitTest(_xmouse, _ymouse, false)) {
hud.options.ear2.ear._x = Math.min(Math.max(hud.options.ear2._xmouse, hud.options.ear2.xmin), hud.options.ear2.xmax);
musicvol = (100 * (hud.options.ear2.ear._x - hud.options.ear2.xmin)) / (hud.options.ear2.xmax - hud.options.ear2.xmin);
if (musicvol < 5) {
musicvol = 0;
}
if ((pwsongsound[maptosong(_root._currentframe)] * musicvol) / 100) {
if (musicoff) {
musicoff = false;
songsoundi.stop();
songsoundi.attachSound("song" + maptosong(_root._currentframe));
songsoundi.setVolume((pwsongsound[maptosong(_root._currentframe)] * musicvol) / 100);
songsoundi.start(0, 9999);
}
songsoundi.setVolume((pwsongsound[maptosong(_root._currentframe)] * musicvol) / 100);
} else {
musicoff = true;
songsoundi.stop();
}
} else if (hud.options.cac.b2.hitTest(_xmouse, _ymouse, false)) {
_root.msound("clickd");
_root.savefile.data.musicvol = _root.musicvol;
_root.savefile.data.soundvol = _root.soundvol;
_root.hud.stats._visible = false;
contin = true;
delete onMouseDown;
onEnterFrame = function () {
songfade();
this._alpha = this._alpha - 10;
if (this._alpha <= 0) {
this._alpha = 0;
playerscore = kills[0].score;
curntmap = _root._currentframe;
if (playmode == 1) {
savefile.data.playtime = savefile.data.playtime + battletime;
}
_root.gotoAndStop(6);
delete onEnterFrame;
}
};
bef = true;
} else if (hud.options.cac.b3.hitTest(_xmouse, _ymouse, false)) {
hud.options.cac.qlow._xscale = (hud.options.cac.qlow._yscale = 140);
hud.options.cac.qmedium._xscale = (hud.options.cac.qmedium._yscale = 100);
hud.options.cac.qhigh._xscale = (hud.options.cac.qhigh._yscale = 100);
_quality = ((savefile.data.gamequality = (gamequality = "LOW")));
} else if (hud.options.cac.b4.hitTest(_xmouse, _ymouse, false)) {
hud.options.cac.qlow._xscale = (hud.options.cac.qlow._yscale = 100);
hud.options.cac.qmedium._xscale = (hud.options.cac.qmedium._yscale = 140);
hud.options.cac.qhigh._xscale = (hud.options.cac.qhigh._yscale = 100);
_quality = ((savefile.data.gamequality = (gamequality = "MEDIUM")));
} else if (hud.options.cac.b5.hitTest(_xmouse, _ymouse, false)) {
hud.options.cac.qlow._xscale = (hud.options.cac.qlow._yscale = 100);
hud.options.cac.qmedium._xscale = (hud.options.cac.qmedium._yscale = 100);
hud.options.cac.qhigh._xscale = (hud.options.cac.qhigh._yscale = 140);
_quality = ((savefile.data.gamequality = (gamequality = "HIGH")));
} else if (hud.options.cac.b6.hitTest(_xmouse, _ymouse, false)) {
arrowsfx = true;
hud.options.cac.aon._xscale = (hud.options.cac.aon._yscale = 140);
hud.options.cac.aoff._xscale = (hud.options.cac.aoff._yscale = 100);
savefile.data.arrowsfx = arrowsfx;
} else if (hud.options.cac.b7.hitTest(_xmouse, _ymouse, false)) {
arrowsfx = false;
hud.options.cac.aon._xscale = (hud.options.cac.aon._yscale = 100);
hud.options.cac.aoff._xscale = (hud.options.cac.aoff._yscale = 140);
savefile.data.arrowsfx = arrowsfx;
} else if (hud.options.cac.b8.hitTest(_xmouse, _ymouse, false)) {
missfx = true;
hud.options.cac.ton._xscale = (hud.options.cac.ton._yscale = 140);
hud.options.cac.toff._xscale = (hud.options.cac.toff._yscale = 100);
savefile.data.missfx = missfx;
} else if (hud.options.cac.b9.hitTest(_xmouse, _ymouse, false)) {
missfx = false;
hud.options.cac.ton._xscale = (hud.options.cac.ton._yscale = 100);
hud.options.cac.toff._xscale = (hud.options.cac.toff._yscale = 140);
savefile.data.missfx = missfx;
}
}
};
whtm = 5;
whelt = whtm;
var mouseListener = new Object();
mouseListener.onMouseWheel = function (delta) {
if (whelt >= whtm) {
whelt = 0;
if (delta > 0) {
trwright();
} else {
trwleft();
}
}
};
ontar = function () {
if (_root.arrd > 1950) {
_root.arrd = 1000;
}
if (battletime == 10) {
songsound(maptosong(_root._currentframe));
}
intr++;
if (MochiKey.isDown(4)) {
firtrw();
}
if (whelt < whtm) {
whelt++;
}
if (hud.stash.cac.s11.hitTest(_xmouse, _ymouse, false)) {
if (pot1) {
hud.hud.potext.text = "Armor Potion: +50% Armor, 10 seconds";
}
} else if (hud.stash.cac.s13.hitTest(_xmouse, _ymouse, false)) {
if (pot2) {
hud.hud.potext.text = "Attack Rating Potion: +50% Attack Rating, 10 seconds";
}
} else if (hud.stash.cac.s15.hitTest(_xmouse, _ymouse, false)) {
if (pot3) {
hud.hud.potext.text = "Damage Potion: +50% Damage, 10 seconds";
}
} else if (hud.stash.cac.s17.hitTest(_xmouse, _ymouse, false)) {
if (pot4) {
hud.hud.potext.text = "HP Potion: full HP";
}
} else {
hud.hud.potext.text = "";
}
if (freeze) {
battletime++;
if (!h.dead) {
if ((((h._x < (c1._x - 300)) || (h._x > (c2._x + 300))) || (h._y < (c1._y - 300))) || (h._y > (c2._y + 300))) {
h._x = checks[0].x;
h._y = checks[0].y;
}
wlen = _root.walls.length;
if (!MochiKey.isDown(87)) {
wflag = true;
}
if (h.down) {
if (MochiKey.isDown(65)) {
h.vx = h.vx - (h.speed / 20);
if (h.vx < (-h.speed)) {
h.vx = -h.speed;
}
} else if (MochiKey.isDown(68)) {
h.vx = h.vx + (h.speed / 20);
if (h.vx > h.speed) {
h.vx = h.speed;
}
}
h._x = h._x + h.vx;
h._y = h._y - h.vy;
h.vy = h.vy - g;
}
if (_xmouse > h._x) {
if (h._xscale < 0) {
h._xscale = h._xscale * -1;
}
} else if (h._xscale > 0) {
h._xscale = h._xscale * -1;
}
var b = ((-Math.atan2(h._ymouse - h.rh._y, h._xmouse - h.rh._x)) + (Math.PI/2));
var yb = Math.sqrt(((h._ymouse - h.rh._y) * (h._ymouse - h.rh._y)) + ((h._xmouse - h.rh._x) * (h._xmouse - h.rh._x)));
var c = Math.asin((n2 * Math.sin(n1)) / yb);
h.rh._rotation = ((((Math.PI/4) - b) - c) * 180) / Math.PI;
if (h.bow) {
h.lh._rotation = 0;
var p = {x:_root.h.rh.c1._x, y:_root.h.rh.c1._y};
_root.h.rh.localToGlobal(p);
_root.h.globalToLocal(p);
b = (-Math.atan2(p.y - h.lh._y, p.x - h.lh._x)) + (Math.PI/2);
yb = Math.sqrt(((p.y - h.lh._y) * (p.y - h.lh._y)) + ((p.x - h.lh._x) * (p.x - h.lh._x)));
c = Math.asin((n4 * Math.sin(n3)) / yb);
h.lh._rotation = ((((Math.PI/2) - b) - c) * 180) / Math.PI;
h.lh.bow._rotation = (h.rh._rotation - h.lh._rotation) + 34.55;
if ((h.lh._currentframe >= 67) && (h.lh._currentframe <= 79)) {
h.lh.bow._rotation = h.lh.bow._rotation + (((79 - h.lh._currentframe) * 90) / 13);
}
} else {
var b = ((-Math.atan2(h._ymouse - h.lh._y, h._xmouse - h.lh._x)) + (Math.PI/2));
var yb = Math.sqrt(((h._ymouse - h.lh._y) * (h._ymouse - h.lh._y)) + ((h._xmouse - h.lh._x) * (h._xmouse - h.lh._x)));
if (yb > 45) {
var c = Math.asin((n4 * Math.sin(n3)) / yb);
h.lh._rotation = (((((Math.PI/4) - b) - c) * 180) / Math.PI) + 34.55;
} else {
h.lh._rotation = 0;
var p = {x:_root.h.rh.c1._x, y:_root.h.rh.c1._y};
_root.h.rh.localToGlobal(p);
_root.h.globalToLocal(p);
b = (-Math.atan2(p.y - h.lh._y, p.x - h.lh._x)) + (Math.PI/2);
yb = Math.sqrt(((p.y - h.lh._y) * (p.y - h.lh._y)) + ((p.x - h.lh._x) * (p.x - h.lh._x)));
c = Math.asin((n4 * Math.sin(n3)) / yb);
h.lh._rotation = ((((Math.PI/2) - b) - c) * 180) / Math.PI;
}
}
if (duck) {
if (uduck) {
if (MochiKey.isDown(83)) {
uduck = false;
h.p7.gotoAndPlay(21 - h.p7._currentframe);
}
} else if (!MochiKey.isDown(83)) {
uduck = true;
h.p7.gotoAndPlay(21 - h.p7._currentframe);
}
}
if ((h._currentframe == 6) || (duck)) {
if (h.bvx > 0) {
if (h.bvx < (h.speed / 20)) {
h.bvx = 0;
} else {
h.bvx = h.bvx - (h.speed / 20);
}
} else if (h.bvx > ((-h.speed) / 20)) {
h.bvx = 0;
} else {
h.bvx = h.bvx + (h.speed / 20);
}
h._x = h._x + (h.bvx * Math.cos(h.fwall.a));
h._y = h._y + (h.bvx * Math.sin(h.fwall.a));
} else if ((!h.jump) && (!h.down)) {
if (MochiKey.isDown(65)) {
if (h._xscale < 0) {
h.bvx = h.bvx - (h.speed / 20);
if (h.bvx < (-h.speed)) {
h.bvx = -h.speed;
}
h._x = h._x + (h.bvx * Math.cos(h.fwall.a));
h._y = h._y + (h.bvx * Math.sin(h.fwall.a));
h.gotoAndStop(2);
} else {
h.bvx = h.bvx - (h.speed / 20);
if (h.bvx < ((-h.speed) * 0.7)) {
h.bvx = (-h.speed) * 0.7;
}
h._x = h._x + (h.bvx * Math.cos(h.fwall.a));
h._y = h._y + (h.bvx * Math.sin(h.fwall.a));
h.gotoAndStop(3);
}
} else if (MochiKey.isDown(68)) {
if (h._xscale > 0) {
h.bvx = h.bvx + (h.speed / 20);
if (h.bvx > h.speed) {
h.bvx = h.speed;
}
h._x = h._x + (h.bvx * Math.cos(h.fwall.a));
h._y = h._y + (h.bvx * Math.sin(h.fwall.a));
h.gotoAndStop(2);
} else {
h.bvx = h.bvx + (h.speed / 20);
if (h.bvx > (h.speed * 0.7)) {
h.bvx = h.speed * 0.7;
}
h._x = h._x + (h.bvx * Math.cos(h.fwall.a));
h._y = h._y + (h.bvx * Math.sin(h.fwall.a));
h.gotoAndStop(3);
}
} else {
if (h.bvx > 0) {
if (h._xscale > 0) {
h.gotoAndStop(2);
} else {
h.gotoAndStop(3);
}
if (h.bvx < (h.speed / 20)) {
h.bvx = 0;
} else {
h.bvx = h.bvx - (h.speed / 20);
}
} else {
if (h._xscale > 0) {
h.gotoAndStop(3);
} else {
h.gotoAndStop(2);
}
if (h.bvx > ((-h.speed) / 20)) {
h.bvx = 0;
} else {
h.bvx = h.bvx + (h.speed / 20);
}
}
h._x = h._x + (h.bvx * Math.cos(h.fwall.a));
h._y = h._y + (h.bvx * Math.sin(h.fwall.a));
if (!h.bvx) {
h.gotoAndStop(1);
}
}
}
checkhits(h);
h.star._x = h._x;
h.star._y = h._y;
if (h.fwall != null) {
h.ca = h.fwall.ca;
h.cb = h.fwall.cb;
}
}
enemiesdo();
ccamera(h);
hud._x = -_x;
hud._y = -_y;
}
};
ccamera = function (mc) {
if (c1._x < (mc._x - 320)) {
if (c1._y < (mc._y - 240)) {
if (c2._x > (mc._x + 320)) {
if (c2._y > (mc._y + 240)) {
_x = ((-mc._x) + 320);
_y = ((-mc._y) + 240);
} else {
_x = ((-mc._x) + 320);
_y = ((-c2._y) + 480);
}
} else if (c2._y > (mc._y + 240)) {
_x = ((-c2._x) + 640);
_y = ((-mc._y) + 240);
} else {
_x = ((-c2._x) + 640);
_y = ((-c2._y) + 480);
}
} else if (c2._x > (mc._x + 320)) {
_x = ((-mc._x) + 320);
_y = (-c1._y);
} else {
_x = ((-c2._x) + 640);
_y = (-c1._y);
}
} else if (c1._y < (mc._y - 240)) {
if (c2._y > (mc._y + 240)) {
_x = (-c1._x);
_y = ((-mc._y) + 240);
} else {
_x = (-c1._x);
_y = ((-c2._y) + 480);
}
} else {
_x = (-c1._x);
_y = (-c1._y);
}
};
checkhits = function (mc) {
var saved = false;
p.x = mc.c5._x;
p.y = mc.c5._y;
mc.localToGlobal(p);
var x5 = (p.x - _root._x);
var y5 = (p.y - _root._y);
p.x = mc.c6._x;
p.y = mc.c6._y;
mc.localToGlobal(p);
var x6 = (p.x - _root._x);
var y6 = (p.y - _root._y);
p.x = mc.c7._x;
p.y = mc.c7._y;
mc.localToGlobal(p);
var x7 = (p.x - _root._x);
var y7 = (p.y - _root._y);
if (x5 > x6) {
var tmp = x5;
x5 = x6;
x6 = tmp;
tmp = y5;
y5 = y6;
y6 = tmp;
}
mc.xmin = x5;
mc.xmax = x6;
mc.ymin = y5;
mc.ymax = y7;
i = 0;
while (i < walls.length) {
if ((((walls[i].x2 > x5) && (x6 > walls[i].x1)) && (walls[i].yMax > y5)) && (y7 > walls[i].yMin)) {
var p = new Object();
if (walls[i].ts.t1) {
if (walls[i].ts.t10) {
if (lines(walls[i].x1, walls[i].y1, walls[i].x2, walls[i].y2, x5, y5, x6, y6, p)) {
mc._x = mc._x + (p.x - x6);
mc.bvx = 0;
if (mc.vx > 0) {
mc.vx = mc.vx * -0.2;
}
} else if ((lines(walls[i].x1, walls[i].y1, walls[i].x2, walls[i].y2, x7, y7, x6, y6, p) && (mc.down)) && (lines(walls[i].x1, walls[i].y1, 9999999, walls[i].y1, x7, y7, x6, y6, p))) {
mc._x = mc._x + (walls[i].x1 - p.x);
if (mc.vx > 0) {
mc.vx = mc.vx * -0.2;
}
}
} else if (lines(walls[i].x1, walls[i].y1, walls[i].x2, walls[i].y2, x5, y5, x6, y6, p)) {
mc._x = mc._x + (p.x - x5);
mc.bvx = 0;
if (mc.vx < 0) {
mc.vx = mc.vx * -0.2;
}
} else if ((lines(walls[i].x1, walls[i].y1, walls[i].x2, walls[i].y2, x5, y5, x7, y7, p) && (mc.down)) && (lines(-9999999, walls[i].y2, walls[i].x2, walls[i].y2, x5, y5, x7, y7, p))) {
mc._x = mc._x + (walls[i].x2 - p.x);
if (mc.vx < 0) {
mc.vx = mc.vx * -0.2;
}
}
} else if (walls[i].ts.t10) {
if (mc.down) {
var flag1 = lines(walls[i].x1, walls[i].y1, walls[i].x2, walls[i].y2, x5, y5, x7, y7, p);
var flag2 = lines(walls[i].x1, walls[i].y1, walls[i].x2, walls[i].y2, x7, y7, x6, y6, p2);
var flag3 = lines(walls[i].x1, walls[i].y1, walls[i].x2, walls[i].y2, x5, y5, x6, y6, p3);
if (flag3) {
if (flag1) {
mc._y = mc._y + (p.y - p3.y);
if (mc.vy > 0) {
mc.vy = mc.vy * -0.2;
}
} else if (flag2) {
mc._y = mc._y + (p2.y - p3.y);
if (mc.vy > 0) {
mc.vy = mc.vy * -0.2;
}
} else {
mc._y = mc._y + (Math.max(walls[i].y1, walls[i].y2) - y5);
if (mc.vy > 0) {
mc.vy = mc.vy * -0.2;
}
}
} else if (flag1) {
if ((flag2 && ((p2.y - y5) < 12)) && ((p.y - y5) < 12)) {
mc._y = mc._y + (Math.max(p.y, p2.y) - y5);
if (mc.vy > 0) {
mc.vy = mc.vy * -0.2;
}
} else if (walls[i].ts.right) {
if (lines(-9999999, walls[i].y2, walls[i].x2, walls[i].y2, x5, y5, x7, y7, p)) {
mc._x = mc._x + (walls[i].x2 - p.x);
if (mc.vx < 0) {
mc.vx = mc.vx * -0.2;
}
} else {
mc._y = mc._y + (p.y - y5);
if (mc.vy > 0) {
mc.vy = mc.vy * -0.2;
}
}
}
} else if (flag2) {
if (walls[i].ts.left) {
if (lines(walls[i].x1, walls[i].y1, 9999999, walls[i].y1, x7, y7, x6, y6, p)) {
mc._x = mc._x + (walls[i].x1 - p.x);
if (mc.vx > 0) {
mc.vx = mc.vx * -0.2;
}
}
} else {
mc._y = mc._y + (p2.y - y5);
if (mc.vy > 0) {
mc.vy = mc.vy * -0.2;
}
}
}
}
} else if (mc.down) {
if (mc.vy < 5) {
if (walls[i].ts.a < 0) {
if (lines(walls[i].x1, walls[i].y1, walls[i].x2, walls[i].y2, x5, y5, x7, y7, p)) {
mc._y = mc._y - (((y7 - p.y) - (Math.tan(walls[i].ts.a) * (x7 - p.x))) - 5);
saved = true;
if (mc.fwall != walls[i].ts) {
mc.fwall = walls[i].ts;
if (((mc.ca != mc.fwall.ca) || (mc.cb != mc.fwall.cb)) && ((mc.ca != mc.fwall.cb) || (mc.cb != mc.fwall.ca))) {
mc.ca = mc.fwall.ca;
mc.cb = mc.fwall.cb;
}
mc.jump = false;
mc.rjump = false;
mc.djump = false;
if (mc.down) {
mc.gotoAndStop(6);
mc.bvx = mc.vx;
mc.down = false;
}
}
}
} else if (lines(walls[i].x1, walls[i].y1, walls[i].x2, walls[i].y2, x7, y7, x6, y6, p)) {
mc._y = mc._y - (((y7 - p.y) - (Math.tan(walls[i].ts.a) * (p.x - x7))) - 5);
saved = true;
if (mc.fwall != walls[i].ts) {
mc.fwall = walls[i].ts;
if (((mc.ca != mc.fwall.ca) || (mc.cb != mc.fwall.cb)) && ((mc.ca != mc.fwall.cb) || (mc.cb != mc.fwall.ca))) {
mc.ca = mc.fwall.ca;
mc.cb = mc.fwall.cb;
}
mc.jump = false;
mc.rjump = false;
mc.djump = false;
if (mc.down) {
mc.gotoAndStop(6);
mc.bvx = mc.vx;
mc.down = false;
}
}
}
}
} else if (lines(walls[i].x1, walls[i].y1, walls[i].x2, walls[i].y2, x5, y5, x7, y7, p)) {
mc._y = mc._y - (((y7 - p.y) - (Math.tan(walls[i].ts.a) * (x7 - p.x))) - 5);
saved = true;
if (mc.fwall != walls[i].ts) {
mc.fwall = walls[i].ts;
mc.jump = false;
mc.djump = false;
if (mc.down) {
mc.gotoAndStop(6);
mc.bvx = mc.vx;
mc.down = false;
}
}
} else if (lines(walls[i].x1, walls[i].y1, walls[i].x2, walls[i].y2, x7, y7, x6, y6, p)) {
mc._y = mc._y - (((y7 - p.y) - (Math.tan(walls[i].ts.a) * (p.x - x7))) - 5);
saved = true;
if (mc.fwall != walls[i].ts) {
mc.fwall = walls[i].ts;
mc.jump = false;
mc.djump = false;
if (mc.down) {
mc.gotoAndStop(6);
mc.bvx = mc.vx;
mc.down = false;
}
}
}
}
i++;
}
if ((!saved) && (!mc.down)) {
mc.fwall = null;
mc.djump = true;
mc.gotoAndStop(4);
mc.vy = 0;
mc.vx = mc.bvx;
mc.down = true;
}
};
lines = function (x1, y1, x2, y2, x3, y3, x4, y4, p) {
if ((x2 >= x3) && (x4 >= x1)) {
if ((x3 == x4) || (x1 == x2)) {
if (x1 == x2) {
return(lines2(x1, y1, y2, x3, y3, x4, y4, p));
}
return(lines2(x3, y3, y4, x1, y1, x2, y2, p));
}
var a = ((y2 - y1) / (x2 - x1));
var b = (y2 - (a * x2));
var c = ((y4 - y3) / (x4 - x3));
var d = (y4 - (c * x4));
if (a == c) {
if (d == b) {
if ((x1 <= x3) && (x3 <= x2)) {
p.x = x3;
p.y = y3;
return(true);
}
p.x = x4;
p.y = y4;
return(true);
}
return(false);
}
p.x = (d - b) / (a - c);
p.y = (a * p.x) + b;
if ((((x1 <= p.x) && (p.x <= x2)) && (x3 <= p.x)) && (p.x <= x4)) {
return(true);
}
return(false);
}
return(false);
};
lines2 = function (x1, y1, y2, x3, y3, x4, y4, p) {
if (x3 == x4) {
if (x1 == x3) {
var min = Math.min(y1, y2);
var max = Math.max(y1, y2);
if ((min <= y3) && (y3 <= max)) {
p.x = x1;
p.y = y3;
return(true);
}
if ((min <= y4) && (y4 <= max)) {
p.x = x1;
p.y = y4;
return(true);
}
return(false);
}
return(false);
}
var a = ((y4 - y3) / (x4 - x3));
if (!a) {
var b = y4;
} else {
var b = (y4 - (a * x4));
}
if ((x3 <= x1) && (x1 <= x4)) {
var min = Math.min(y1, y2);
var max = Math.max(y1, y2);
if (!a) {
var k = b;
} else {
var k = ((a * x1) + b);
}
if ((min <= k) && (k <= max)) {
p.x = x1;
p.y = k;
return(true);
}
return(false);
}
return(false);
};
enemiesdo = function () {
var left;
var len = team1.length;
var i = 1;
while (i < len) {
enemiedo(team1[i], team1);
i++;
}
var len = team2.length;
var i = 0;
while (i < len) {
enemiedo(team2[i], team2);
i++;
}
var len = team3.length;
var i = 0;
while (i < len) {
enemiedo(team3[i], team3);
i++;
}
var len = team4.length;
var i = 0;
while (i < len) {
enemiedo(team4[i], team4);
i++;
}
var len = team5.length;
var i = 0;
while (i < len) {
enemiedo(team5[i], team5);
i++;
}
var len = team6.length;
var i = 0;
while (i < len) {
enemiedo(team6[i], team6);
i++;
}
var len = allteam.length;
var i = 0;
while (i < len) {
var tsi = allteam[i];
if (!tsi.dead) {
var j = (i + 1);
var j = (i + 1);
while (j < len) {
var tsj = allteam[j];
if (((tsi.xmax > tsj.xmin) && (tsj.xmax > tsi.xmin)) && (!tsj.dead)) {
if ((tsi.ymax > tsj.ymin) && (tsj.ymax > tsi.ymin)) {
if (tsi.xmax < tsj.xmax) {
var k = (tsi.xmax - tsj.xmin);
tsi._x = tsi._x - (k / 2);
tsj._x = tsj._x + (k / 2);
if (tsi.down) {
if (tsi.vx > 0) {
tsi.vx = 0;
}
} else if (tsi.bvx > 0) {
tsi.bvx = 0;
}
if (tsj.down) {
if (tsj.vx < 0) {
tsj.vx = 0;
}
} else if (tsj.bvx < 0) {
tsj.bvx = 0;
}
} else {
var k = (tsj.xmax - tsi.xmin);
tsi._x = tsi._x + (k / 2);
tsj._x = tsj._x - (k / 2);
if (tsi.down) {
if (tsi.vx < 0) {
tsi.vx = 0;
}
} else if (tsi.bvx < 0) {
tsi.bvx = 0;
}
if (tsj.down) {
if (tsj.vx > 0) {
tsj.vx = 0;
}
} else if (tsj.bvx > 0) {
tsj.bvx = 0;
}
}
}
}
j++;
}
}
i++;
}
var bounds = new Object();
var i = 0;
while (i < len) {
var tsi = allteam[i];
bounds = tsi.getBounds(_root);
tsi.xMin = bounds.xMin;
tsi.xMax = bounds.xMax;
tsi.yMin = bounds.yMin;
tsi.yMax = bounds.yMax;
i++;
}
};
enemiedo = function (ts, team) {
if (!ts.dead) {
if ((((ts._x < (c1._x - 300)) || (ts._x > (c2._x + 300))) || (ts._y < (c1._y - 300))) || (ts._y > (c2._y + 300))) {
ts._x = checks[0].x;
ts._y = checks[0].y;
}
if ((ts.t == null) || (ts.t.dead)) {
var maxlen = Infinity;
} else {
var maxlen = (((ts._x - ts.t._x) * (ts._x - ts.t._x)) + ((ts._y - ts.t._y) * (ts._y - ts.t._y)));
}
var len = allteam.length;
var i = 0;
while (i < len) {
var tsi = allteam[i];
if (!tsi.dead) {
var tmplen = (((ts._x - tsi._x) * (ts._x - tsi._x)) + ((ts._y - tsi._y) * (ts._y - tsi._y)));
if ((tsi.team != ts.team) && (tmplen < maxlen)) {
ts.t = tsi;
maxlen = tmplen;
}
}
i++;
}
if (maxlen == Infinity) {
if (ts.down) {
ts._y = ts._y - ts.vy;
ts.vy = ts.vy - g;
}
p.y = (ts._y + _y) - 6;
if (ts._xscale < 0) {
p.x = (ts._x - 50) + _x;
} else {
p.x = (ts._x + 50) + _x;
}
ts.gotoAndStop(1);
} else {
var t = ts.t;
var tx = t._x;
var ty = (t._y + ts.stya);
if (ts.fwall != null) {
if (((ts.ca != ts.fwall.ca) && (ts.cb != ts.fwall.cb)) && ((ts.ca != ts.fwall.cb) && (ts.cb != ts.fwall.ca))) {
ts.ca = ts.fwall.ca;
ts.cb = ts.fwall.cb;
}
}
if (Math.abs(ts._x - carr[ts.cb].x) < 4) {
if (ts.cb == t.ca) {
ts.cb = t.cb;
ts.ca = t.ca;
} else if (ts.cb == t.cb) {
ts.cb = t.ca;
ts.ca = t.cb;
} else {
var kzk = (((w[ts.cb][t.ca] + Math.sqrt(((carr[t.ca].x - t._x) * (carr[t.ca].x - t._x)) + (((carr[t.ca].y - t._y) - 60) * ((carr[t.ca].y - t._y) - 60)))) < (w[ts.cb][t.cb] + Math.sqrt(((carr[t.cb].x - t._x) * ((carr[t.cb].x - t._y) - 60)) + ((carr[t.cb].x - t._y) * ((carr[t.cb].y - t._y) - 60))))) ? (pai[ts.cb][t.ca]) : (pai[ts.cb][t.cb]));
if (carr[ts.cb]["j" + kzk]) {
if (ts.down) {
if (carr[ts.cb]["r" + kzk] ^ (ts.vx < 0)) {
ts.rjump = true;
ts.drjump = true;
ts.ca = ts.cb;
ts.cb = kzk;
}
} else {
ts.rjump = true;
ts.drjump = true;
ts.ca = ts.cb;
ts.cb = kzk;
}
} else {
ts.ca = ts.cb;
ts.cb = kzk;
}
}
}
if (ts.rjump) {
if ((carr[ts.ca]["j" + ts.cb] && (carr[ts.ca]["r" + ts.cb])) || ((!carr[ts.ca]["j" + ts.cb]) && (carr[ts.cb].x > ts._x))) {
if (ts.down) {
if ((carr[ts.ca]["d" + ts.cb] && (ts.drjump)) && (ts.vy <= 0.5)) {
ts.drjump = false;
ts.vy = ts.svy;
ts.gotoAndStop(5);
ts.p5.gotoAndPlay(1);
}
} else if ((ts.bvx >= 0) && (Math.abs(ts._x - carr[ts.ca].x) < 4)) {
ts.fwall = null;
ts.vx = ts.bvx;
ts.bvx = 0;
ts.vy = ts.svy;
ts.down = true;
ts.gotoAndStop(4);
ts.jump = true;
}
left = false;
} else {
if (ts.down) {
if ((carr[ts.ca]["d" + ts.cb] && (ts.drjump)) && (ts.vy <= 0.5)) {
ts.drjump = false;
ts.vy = ts.svy;
ts.gotoAndStop(5);
ts.p5.gotoAndPlay(1);
}
} else if ((ts.bvx <= 0) && (Math.abs(ts._x - carr[ts.ca].x) < 4)) {
ts.fwall = null;
ts.vx = ts.bvx;
ts.bvx = 0;
ts.vy = ts.svy;
ts.down = true;
ts.gotoAndStop(4);
ts.jump = true;
}
left = true;
}
} else {
if (((ts.cb != t.ca) && (ts.cb != t.cb)) && (((Math.min(w[ts.ca][t.ca] + Math.sqrt(Math.pow(t._x - carr[t.ca].x, 2) + Math.pow((t._y + 60) - carr[t.ca].y, 2)), w[ts.ca][t.cb] + Math.sqrt(Math.pow(t._x - carr[t.cb].x, 2) + Math.pow((t._y + 60) - carr[t.cb].y, 2))) + Math.sqrt(Math.pow(ts._x - carr[ts.ca].x, 2) + Math.pow((ts._y + 60) - carr[ts.ca].y, 2))) + 30) < (Math.min(w[ts.cb][t.ca] + Math.sqrt(Math.pow(t._x - carr[t.ca].x, 2) + Math.pow((t._y + 60) - carr[t.ca].y, 2)), w[ts.cb][t.cb] + Math.sqrt(Math.pow(t._x - carr[t.cb].x, 2) + Math.pow((t._y + 60) - carr[t.cb].y, 2))) + Math.sqrt(Math.pow(ts._x - carr[ts.cb].x, 2) + Math.pow((ts._y + 60) - carr[ts.cb].y, 2))))) {
var ctmp = ts.ca;
ts.ca = ts.cb;
ts.cb = ctmp;
}
if (((ts.ca == t.ca) && (ts.cb == t.cb)) || ((ts.ca == t.cb) && (ts.cb == t.ca))) {
left = ts._x > t._x;
} else {
left = ts._x > carr[ts.cb].x;
}
}
var gflag = false;
var adsf = Math.sqrt(((ts._x - t._x) * (ts._x - t._x)) + ((ts._y - t._y) * (ts._y - t._y)));
if ((ts.bow && (adsf < 600)) || ((!ts.bow) && (adsf < 300))) {
var ggflag = false;
var len = walls.length;
if (ts._x < t._x) {
var j = 0;
while (j < len) {
if (lines(ts._x, ts._y, t._x, t._y, walls[j].x1, walls[j].y1, walls[j].x2, walls[j].y2, p)) {
ggflag = true;
j = len;
}
j++;
}
} else {
var j = 0;
while (j < len) {
if (lines(t._x, t._y, ts._x, ts._y, walls[j].x1, walls[j].y1, walls[j].x2, walls[j].y2, p)) {
ggflag = true;
j = len;
}
j++;
}
}
if (!ggflag) {
decide = ts.sug;
if (ts.sug == 3) {
if (Math.sqrt(((t._x - ts._x) * (t._x - ts._x)) + ((t._y - ts._y) * (t._y - ts._y))) > 200) {
if (!ts.bow) {
_root.change2sound(ts._x, ts._y);
ts.bow = true;
ts.rh.gotoAndPlay(159);
ts.lh.gotoAndPlay(55);
}
decide = 1;
} else {
if (ts.bow) {
_root.change1sound(ts._x, ts._y);
ts.bow = false;
ts.rh.gotoAndPlay(34);
ts.lh.gotoAndPlay(34);
}
decide = 2;
}
}
if (decide == 1) {
if (Math.abs(t._x - ts._x) < 100) {
if (ts.runc == 0) {
bleft = !bleft;
}
left = bleft;
ts.runc++;
opt = true;
if (ts.runc > 50) {
ts.runc = 0;
}
} else {
opt = false;
ts.runc = 0;
if (ts._x > t._x) {
if ((t._x + 310) < ts._x) {
left = true;
} else if ((t._x + 290) > ts._x) {
left = false;
} else {
left = (ts.down ? (ts.vx < 0) : (ts.bvx < 0));
}
} else if ((t._x - 290) < ts._x) {
left = true;
} else if ((t._x - 310) > ts._x) {
left = false;
} else {
left = (ts.down ? (ts.vx < 0) : (ts.bvx < 0));
}
}
gflag = true;
if (((!ts.down) || (ts.jump)) && ((Math.random() > 0.98) || (opt && (Math.random() > 0.9)))) {
if (ts.down) {
if (ts.drjump) {
ts.drjump = false;
ts.vy = ts.svy;
ts.gotoAndStop(5);
ts.p5.gotoAndPlay(1);
}
} else {
ts.drjump = true;
ts.fwall = null;
ts.vx = ts.bvx;
ts.bvx = 0;
ts.vy = ts.svy;
ts.down = true;
ts.gotoAndStop(4);
ts.jump = true;
ts.down = true;
}
}
if (((Math.sqrt(((ts._x - t._x) * (ts._x - t._x)) + ((ts._y - t._y) * (ts._y - t._y))) < 360) && (ts.lh._currentframe == 1)) && (ts.rh._currentframe == 1)) {
if (Math.random() > lvltospd(lvl)) {
var gggflag = true;
var len = team.length;
if (t._x < ts._x) {
var j = 0;
while (j < len) {
if ((team[j] != ts) && lines2(team[j]._x, team[j]._y + 58, team[j]._y - 37, t._x, t._y, ts._x, ts._y, p)) {
gggflag = false;
j = len;
}
j++;
}
} else {
var j = 0;
while (j < len) {
if ((team[j] != ts) && lines2(team[j]._x, team[j]._y + 58, team[j]._y - 37, ts._x, t._y, t._x, ts._y, p)) {
gggflag = false;
j = len;
}
j++;
}
}
if (gggflag) {
if (ts._xscale > 0) {
if (ts.rh._rotation > -45) {
var k = (135 - ts.rh._rotation);
} else {
var k = (-225 - ts.rh._rotation);
}
} else {
var k = (ts.rh._rotation + 45);
}
var l = Math.abs(k + ((180 * Math.atan2(ts._y - t._y, ts._x - t._x)) / Math.PI));
if (l > 180) {
l = 360 - l;
}
if (l < 45) {
ts.lh.play();
ts.rh.play();
ts.lh.bow.bow.play();
ts.stya = -37 + random(60);
}
}
}
}
} else if (decide == 2) {
if (Math.abs(t._x - ts._x) < 30) {
if (ts.runc == 0) {
bleft = !bleft;
}
left = bleft;
ts.runc++;
opt = true;
if (ts.runc > 50) {
ts.runc = 0;
}
} else {
opt = false;
ts.runc = 0;
if (ts._x > t._x) {
if ((t._x + 65) < ts._x) {
left = true;
} else if ((t._x + 60) > ts._x) {
left = false;
} else {
left = (ts.down ? (ts.vx < 0) : (ts.bvx < 0));
}
} else if ((t._x - 60) < ts._x) {
left = true;
} else if ((t._x - 65) > ts._x) {
left = false;
} else {
left = (ts.down ? (ts.vx < 0) : (ts.bvx < 0));
}
}
gflag = true;
if (((!ts.down) || (ts.jump)) && ((Math.random() > 0.98) || (opt && (Math.random() > 0.9)))) {
if (ts.down) {
if (ts.drjump) {
ts.drjump = false;
ts.vy = ts.svy;
ts.gotoAndStop(5);
ts.p5.gotoAndPlay(1);
}
} else {
ts.drjump = true;
ts.fwall = null;
ts.vx = ts.bvx;
ts.bvx = 0;
ts.vy = ts.svy;
ts.down = true;
ts.gotoAndStop(4);
ts.jump = true;
ts.down = true;
}
}
if ((((((ts.rh._currentframe == 66) || (ts.rh._currentframe == 82)) || (ts.rh._currentframe == 102)) || (ts.rh._currentframe == 125)) || (ts.rh._currentframe == 143)) || (ts.rh._currentframe == 181)) {
ts.rh.play();
}
if (ts.rh._currentframe == 65) {
if (ts.tsya) {
ts.tsya = false;
ts.stya = -37 + random(25);
}
var abst = Math.abs(t._x - ts._x);
if ((abst > 100) && (abst < 200)) {
if ((Math.random() > ((lvltospd(lvl) * 5) - 4)) && (ts.trwn > 0)) {
var gggflag = true;
var len = team.length;
if (t._x < ts._x) {
var j = 0;
while (j < len) {
if ((team[j] != ts) && lines2(team[j]._x, team[j]._y + 58, team[j]._y - 37, t._x, t._y, ts._x, ts._y, p)) {
gggflag = false;
j = len;
}
j++;
}
} else {
var j = 0;
while (j < len) {
if ((team[j] != ts) && lines2(team[j]._x, team[j]._y + 58, team[j]._y - 37, ts._x, t._y, t._x, ts._y, p)) {
gggflag = false;
j = len;
}
j++;
}
}
if (gggflag) {
ts.tsya = true;
ts.rh.gotoAndPlay(181);
}
}
} else if (Math.abs(t._y - ts._y) < 67) {
if (((abst < 67) && (Math.random() > lvltospd(lvl))) || ((abst < 90) && (Math.random() > lvltospd(lvl)))) {
ts.tsya = true;
var rand = random(5);
switch (rand) {
case 0 :
ts.rh.gotoAndPlay(66);
break;
case 1 :
ts.rh.gotoAndPlay(82);
break;
case 2 :
ts.rh.gotoAndPlay(102);
break;
case 3 :
ts.rh.gotoAndPlay(125);
break;
case 4 :
ts.rh.gotoAndPlay(143);
}
}
}
}
}
}
}
if (ts.down) {
if (left) {
ts.vx = ts.vx - (ts.speed / 20);
if (ts.vx < (-ts.speed)) {
ts.vx = -ts.speed;
}
} else {
ts.vx = ts.vx + (ts.speed / 20);
if (ts.vx > ts.speed) {
ts.vx = ts.speed;
}
}
ts._x = ts._x + ts.vx;
ts._y = ts._y - ts.vy;
ts.vy = ts.vy - g;
} else if (left) {
if (ts._xscale < 0) {
ts.bvx = ts.bvx - (ts.speed / 20);
if (ts.bvx < (-ts.speed)) {
ts.bvx = -ts.speed;
}
ts._x = ts._x + (ts.bvx * Math.cos(ts.fwall.a));
ts._y = ts._y + (ts.bvx * Math.sin(ts.fwall.a));
ts.gotoAndStop(2);
} else {
ts.bvx = ts.bvx - (ts.speed / 20);
if (ts.bvx < ((-ts.speed) * 0.7)) {
ts.bvx = (-ts.speed) * 0.7;
}
ts._x = ts._x + (ts.bvx * Math.cos(ts.fwall.a));
ts._y = ts._y + (ts.bvx * Math.sin(ts.fwall.a));
ts.gotoAndStop(3);
}
} else if (ts._xscale > 0) {
ts.bvx = ts.bvx + (ts.speed / 20);
if (ts.bvx > ts.speed) {
ts.bvx = ts.speed;
}
ts._x = ts._x + (ts.bvx * Math.cos(ts.fwall.a));
ts._y = ts._y + (ts.bvx * Math.sin(ts.fwall.a));
ts.gotoAndStop(2);
} else {
ts.bvx = ts.bvx + (ts.speed / 20);
if (ts.bvx > (ts.speed * 0.7)) {
ts.bvx = ts.speed * 0.7;
}
ts._x = ts._x + (ts.bvx * Math.cos(ts.fwall.a));
ts._y = ts._y + (ts.bvx * Math.sin(ts.fwall.a));
ts.gotoAndStop(3);
}
if (gflag) {
p.x = tx + _x;
p.y = ty + _y;
} else {
p.y = (ts._y + _y) - 6;
if (left) {
p.x = (ts._x - 50) + _x;
} else {
p.x = (ts._x + 50) + _x;
}
}
}
ts.globalToLocal(p);
var ln = Math.sqrt((p.x * p.x) + (p.y * p.y));
var rad2 = Math.atan2(p.y, p.x);
if (Math.abs(ts.rad - rad2) < Math.PI) {
ts.rad = ts.rad + ((rad2 - ts.rad) / 5);
} else if (ts.rad > rad2) {
ts.rad = ts.rad + ((((Math.PI*2) + rad2) - ts.rad) / 5);
if (ts.rad > Math.PI) {
ts.rad = ts.rad - (Math.PI*2);
}
} else {
ts.rad = ts.rad - ((((Math.PI*2) - rad2) + ts.rad) / 5);
if (ts.rad < -3.14159265358979) {
ts.rad = ts.rad + (Math.PI*2);
}
}
if ((ts.rad < -1.5707963267949) || (ts.rad > (Math.PI/2))) {
ts._xscale = ts._xscale * -1;
}
ts.px = ln * Math.cos(ts.rad);
ts.py = ln * Math.sin(ts.rad);
var b = ((-Math.atan2(ts.py - ts.rh._y, ts.px - ts.rh._x)) + (Math.PI/2));
var yb = Math.sqrt(((ts.py - ts.rh._y) * (ts.py - ts.rh._y)) + ((ts.px - ts.rh._x) * (ts.px - ts.rh._x)));
var c = Math.asin((n2 * Math.sin(n1)) / yb);
ts.rh._rotation = ((((Math.PI/4) - b) - c) * 180) / Math.PI;
ts.lh._rotation = 0;
var p = {x:ts.rh.c1._x, y:ts.rh.c1._y};
ts.rh.localToGlobal(p);
ts.globalToLocal(p);
b = (-Math.atan2(p.y - ts.lh._y, p.x - ts.lh._x)) + (Math.PI/2);
yb = Math.sqrt(((p.y - ts.lh._y) * (p.y - ts.lh._y)) + ((p.x - ts.lh._x) * (p.x - ts.lh._x)));
c = Math.asin((n4 * Math.sin(n3)) / yb);
ts.lh._rotation = ((((Math.PI/2) - b) - c) * 180) / Math.PI;
ts.lh.bow._rotation = (ts.rh._rotation - ts.lh._rotation) + 34.55;
if ((ts.lh._currentframe >= 67) && (ts.lh._currentframe <= 79)) {
ts.lh.bow._rotation = ts.lh.bow._rotation + (((79 - ts.lh._currentframe) * 90) / 13);
}
checkhits(ts);
ts.star._x = ts._x;
ts.star._y = ts._y;
}
};
thingstuck = function (A, b) {
if (arrowsfx) {
var size = A.length;
var i = 0;
while (i < size) {
b.attachMovie(A[i].sg, "A" + i, i, {_rotation:A[i].rot, _x:A[i].x, _y:A[i].y});
i++;
}
b.m.swapDepths(1000);
}
};
bloodmake = function (x, y) {
_root.bloodsound(x, y);
_root.attachMovie("blood", "blood" + bldi, bldi, {_x:x, _y:y, _xscale:300, _yscale:300});
bldi++;
};
hitfolks = function (mc) {
if (mc.y1 < mc.y2) {
mc.tmp = mc.y1;
mc.tmp2 = mc.y2;
} else {
mc.tmp = mc.y2;
mc.tmp2 = mc.y1;
}
mc.i = 0;
while (mc.i < mc.esize2) {
mc.ts = mc.arr2[mc.i];
if (((mc.tim >= 2) && ((mc.tim >= 7) || (mc.par != mc.ts))) && (!mc.ts.dead)) {
if ((((mc.x1 < mc.ts.xMax) && (mc.x2 > mc.ts.xMin)) && (mc.tmp < mc.ts.yMax)) && (mc.tmp2 > mc.ts.yMin)) {
mc.flag2 = false;
if ((!mc.ts.bow) && (mc.ts.lh._currentframe >= 47)) {
mc.bounds.x = mc.ts.lh.shield.c1._x;
mc.bounds.y = mc.ts.lh.shield.c1._y;
mc.ts.lh.shield.localToGlobal(mc.bounds);
mc.a = mc.bounds.x - _root._x;
mc.b = mc.bounds.y - _root._y;
mc.bounds.x = mc.ts.lh.shield.c2._x;
mc.bounds.y = mc.ts.lh.shield.c2._y;
mc.ts.lh.shield.localToGlobal(mc.bounds);
mc.c = mc.bounds.x - _root._x;
mc.d = mc.bounds.y - _root._y;
mc.tmp = false;
if (mc.a > mc.c) {
mc.tmp = mc.a;
mc.a = mc.c;
mc.c = mc.tmp;
mc.tmp = mc.b;
mc.b = mc.d;
mc.d = mc.tmp;
mc.tmp = true;
}
if (_root.lines(mc.a, mc.b, mc.c, mc.d, mc.x1, mc.y1, mc.x2, mc.y2, mc.p)) {
if (mc.tmp) {
mc.tmp = Math.atan2(mc.a - mc.c, mc.d - mc.b);
} else {
mc.tmp = Math.atan2(mc.c - mc.a, mc.b - mc.d);
}
if (mc.ts._xscale > 0) {
mc.tmp = mc.tmp - (Math.PI/2);
} else {
mc.tmp = mc.tmp + (Math.PI/2);
}
if (mc.sgn) {
mc.tmp = mc.tmp - (Math.PI/2);
}
if (mc.tmp > Math.PI) {
mc.tmp = mc.tmp - (Math.PI*2);
} else if (mc.tmp < -3.14159265358979) {
mc.tmp = mc.tmp + (Math.PI*2);
}
if (mc.sgn) {
mc.tmp = Math.abs(mc.tmp - mc.rot);
} else {
mc.tmp = Math.abs(mc.tmp - mc.k);
}
if (mc.tmp > Math.PI) {
mc.tmp = (Math.PI*2) - mc.tmp;
}
if (mc.tmp > (Math.PI/2)) {
mc.flag2 = true;
}
}
}
if (mc.flag2) {
mc.flagpie = false;
mc.iii = 0;
while (mc.iii < mc.esize3) {
if (mc.arr3[mc.iii] == mc.ts) {
mc.flagpie = true;
mc.iii = mc.esize3;
}
mc.iii++;
}
if (mc.flagpie) {
_root.blockedsound(mc.ts._x, mc.ts._y);
if (missfx) {
_root.attachMovie("blocked", "m" + _root.arrd, _root.arrd, {_x:mc.ts._x, _y:mc.ts._y - 20});
_root.arrd++;
}
mc.tmp = Math.atan2(mc.b - mc.d, mc.a - mc.c);
if (mc.sgn) {
switch (mc.sgn) {
case 1 :
_root.esizezero(mc);
mc.tmp2 = Math.sqrt((mc.vx * mc.vx) + (mc.vy * mc.vy)) / 5;
break;
case 2 :
mc.cno = mc.ts;
mc.tmp2 = Math.sqrt((mc.vx * mc.vx) + (mc.vy * mc.vy)) / 2;
mc.tt = 0;
if (mc.tmp2 < 0.4) {
_root.esizezero(mc);
}
break;
case 3 :
mc.tmp2 = Math.sqrt((mc.vx * mc.vx) + (mc.vy * mc.vy)) * 0.8;
break;
case 4 :
mc.cno = mc.ts;
mc.tmp2 = Math.sqrt((mc.vx * mc.vx) + (mc.vy * mc.vy)) * 0.8;
break;
case 5 :
mc.cno = mc.ts;
mc.rr = mc.rr * -0.8;
mc.tmp2 = Math.sqrt((mc.vx * mc.vx) + (mc.vy * mc.vy)) / 2;
if (mc.tmp2 < 0.4) {
_root.esizezero(mc);
}
break;
case 6 :
mc.tmp2 = Math.sqrt((mc.vx * mc.vx) + (mc.vy * mc.vy)) / 5;
mc.gc = 1;
_root.esizezero(mc);
break;
case 7 :
mc.tmp2 = Math.sqrt((mc.vx * mc.vx) + (mc.vy * mc.vy)) * 0.8;
_root.esizezero(mc);
}
mc.rot = (Math.PI - mc.rot) + (2 * mc.tmp);
mc.vx = (-mc.tmp2) * Math.cos(mc.rot);
mc.vy = (-mc.tmp2) * Math.sin(mc.rot);
mc.rot = Math.atan2(mc.vx, mc.vy);
} else {
mc.tmp2 = Math.sqrt((mc.vx * mc.vx) + (mc.vy * mc.vy)) / 10;
mc.k = (Math.PI - mc.k) + (2 * mc.tmp);
mc.vx = mc.tmp2 * Math.sin(mc.k);
mc.vy = mc.tmp2 * Math.cos(mc.k);
mc.k = Math.atan2(mc.vx, mc.vy);
mc._rotation = (mc.k * 180) / Math.PI;
mc._x = mc.p.x + (30 * Math.sin(mc.k));
mc._y = mc.p.y - (30 * Math.cos(mc.k));
_root.esizezero(mc);
}
} else {
mc.flagpie2 = true;
mc.iii = 0;
while (mc.iii < mc.esize33) {
if (mc.arr33[mc.iii] == mc.ts) {
mc.flagpie2 = false;
mc.iii = mc.esize33;
}
mc.iii++;
}
if (mc.flagpie2) {
if ((mc.sgn == 2) && (mc.par == mc.ts)) {
picksound(mc.par._x, mc.par._y);
if (mc.par == h) {
var tmpa = 1;
while (tmpa <= 6) {
if (_root["w" + tmpa] == 2) {
_root[("w" + tmpa) + "n"]++;
if (h.trw == 2) {
_root.hud.hud.trwn.text = _root[("w" + tmpa) + "n"];
}
tmpa = 9;
}
tmpa++;
}
if (tmpa == 7) {
var tmpa = 1;
while (tmpa <= 6) {
if (_root["w" + tmpa] == 3) {
_root["w" + tmpa] = 2;
_root.hud.stash["w" + tmpa].gotoAndStop(2);
_root[("w" + tmpa) + "n"] = 1;
if (h.trw == 2) {
_root.hud.hud.trwn.text = _root[("w" + tmpa) + "n"];
}
tmpa = 8;
}
tmpa++;
}
}
} else {
mc.par.trwn++;
}
mc.removeMovieClip();
return(undefined);
}
mc.arr33[mc.esize33++] = mc.ts;
if (missfx) {
_root.attachMovie("missedshield", "m" + _root.arrd, _root.arrd, {_x:mc.ts._x, _y:mc.ts._y - 20});
_root.arrd++;
}
}
}
}
if ((!mc.flag2) || (mc.flag2 && (!mc.flagpie))) {
mc.xmed = (mc.x1 + mc.x2) / 2;
mc.ymed = (mc.y1 + mc.y2) / 2;
if ((Math.abs(mc.ts._x - mc.xmed) < 30) && (Math.abs(mc.ts._y - mc.ymed) < 50)) {
if ((mc.sgn == 2) && (mc.par == mc.ts)) {
picksound(mc.par._x, mc.par._y);
if (mc.par == h) {
var tmpa = 1;
while (tmpa <= 6) {
if (_root["w" + tmpa] == 2) {
_root[("w" + tmpa) + "n"]++;
if (h.trw == 2) {
_root.hud.hud.trwn.text = _root[("w" + tmpa) + "n"];
}
tmpa = 9;
}
tmpa++;
}
if (tmpa == 7) {
var tmpa = 1;
while (tmpa <= 6) {
if (_root["w" + tmpa] == 3) {
_root["w" + tmpa] = 2;
_root.hud.stash["w" + tmpa].gotoAndStop(2);
_root[("w" + tmpa) + "n"] = 1;
if (h.trw == 2) {
_root.hud.hud.trwn.text = _root[("w" + tmpa) + "n"];
}
tmpa = 8;
}
tmpa++;
}
}
} else {
mc.par.trwn++;
}
mc.removeMovieClip();
return(undefined);
}
mc.tid = mc.i;
while (mc.tid < mc.esize2) {
mc.arr2[mc.tid] = mc.arr2[mc.tid + 1];
mc.tid++;
}
mc.esize2--;
if (missfx) {
_root.attachMovie("missed", "m" + _root.arrd, _root.arrd, {_x:mc.ts._x, _y:mc.ts._y - 20});
_root.arrd++;
}
}
}
}
}
mc.i++;
}
mc.i = 0;
for ( ; mc.i < mc.esize ; mc.i++) {
mc.ts = mc.arr1[mc.i];
if (((mc.tim >= 2) && ((mc.tim >= 7) || (mc.par != mc.ts))) && (!mc.ts.dead)) {
if ((((mc.x1 < mc.ts.xMax) && (mc.x2 > mc.ts.xMin)) && (mc.tmp < mc.ts.yMax)) && (mc.tmp2 > mc.ts.yMin)) {
mc.flag2 = false;
if ((!mc.ts.bow) && (mc.ts.lh._currentframe >= 47)) {
mc.bounds.x = mc.ts.lh.shield.c1._x;
mc.bounds.y = mc.ts.lh.shield.c1._y;
mc.ts.lh.shield.localToGlobal(mc.bounds);
mc.a = mc.bounds.x - _root._x;
mc.b = mc.bounds.y - _root._y;
mc.bounds.x = mc.ts.lh.shield.c2._x;
mc.bounds.y = mc.ts.lh.shield.c2._y;
mc.ts.lh.shield.localToGlobal(mc.bounds);
mc.c = mc.bounds.x - _root._x;
mc.d = mc.bounds.y - _root._y;
mc.tmp = false;
if (mc.a > mc.c) {
mc.tmp = mc.a;
mc.a = mc.c;
mc.c = mc.tmp;
mc.tmp = mc.b;
mc.b = mc.d;
mc.d = mc.tmp;
mc.tmp = true;
}
if (_root.lines(mc.a, mc.b, mc.c, mc.d, mc.x1, mc.y1, mc.x2, mc.y2, mc.p)) {
if (mc.tmp) {
mc.tmp = Math.atan2(mc.a - mc.c, mc.d - mc.b);
} else {
mc.tmp = Math.atan2(mc.c - mc.a, mc.b - mc.d);
}
if (mc.ts._xscale > 0) {
mc.tmp = mc.tmp - (Math.PI/2);
} else {
mc.tmp = mc.tmp + (Math.PI/2);
}
if (mc.sgn) {
mc.tmp = mc.tmp - (Math.PI/2);
}
if (mc.tmp > Math.PI) {
mc.tmp = mc.tmp - (Math.PI*2);
} else if (mc.tmp < -3.14159265358979) {
mc.tmp = mc.tmp + (Math.PI*2);
}
if (mc.sgn) {
mc.tmp = Math.abs(mc.tmp - mc.rot);
} else {
mc.tmp = Math.abs(mc.tmp - mc.k);
}
if (mc.tmp > Math.PI) {
mc.tmp = (Math.PI*2) - mc.tmp;
}
if (mc.tmp > (Math.PI/2)) {
mc.flag2 = true;
}
}
}
if (mc.flag2) {
mc.flagpie = false;
mc.iii = 0;
while (mc.iii < mc.esize3) {
if (mc.arr3[mc.iii] == mc.ts) {
mc.flagpie = true;
mc.iii = mc.esize3;
}
mc.iii++;
}
if (mc.flagpie) {
_root.blockedsound(mc.ts._x, mc.ts._y);
if (missfx) {
_root.attachMovie("blocked", "m" + _root.arrd, _root.arrd, {_x:mc.ts._x, _y:mc.ts._y - 20});
_root.arrd++;
}
mc.tmp = Math.atan2(mc.b - mc.d, mc.a - mc.c);
if (mc.sgn) {
switch (mc.sgn) {
case 1 :
_root.esizezero(mc);
mc.tmp2 = Math.sqrt((mc.vx * mc.vx) + (mc.vy * mc.vy)) / 5;
break;
case 2 :
mc.cno = mc.ts;
mc.tmp2 = Math.sqrt((mc.vx * mc.vx) + (mc.vy * mc.vy)) / 2;
mc.tt = 0;
if (mc.tmp2 < 0.4) {
_root.esizezero(mc);
}
break;
case 3 :
mc.tmp2 = Math.sqrt((mc.vx * mc.vx) + (mc.vy * mc.vy)) * 0.8;
break;
case 4 :
mc.cno = mc.ts;
mc.tmp2 = Math.sqrt((mc.vx * mc.vx) + (mc.vy * mc.vy)) * 0.8;
break;
case 5 :
mc.cno = mc.ts;
mc.rr = mc.rr * -0.8;
mc.tmp2 = Math.sqrt((mc.vx * mc.vx) + (mc.vy * mc.vy)) / 2;
if (mc.tmp2 < 0.4) {
_root.esizezero(mc);
}
break;
case 6 :
mc.tmp2 = Math.sqrt((mc.vx * mc.vx) + (mc.vy * mc.vy)) / 5;
mc.gc = 1;
_root.esizezero(mc);
break;
case 7 :
mc.tmp2 = Math.sqrt((mc.vx * mc.vx) + (mc.vy * mc.vy)) * 0.8;
_root.esizezero(mc);
}
mc.rot = (Math.PI - mc.rot) + (2 * mc.tmp);
mc.vx = (-mc.tmp2) * Math.cos(mc.rot);
mc.vy = (-mc.tmp2) * Math.sin(mc.rot);
mc.rot = Math.atan2(mc.vx, mc.vy);
} else {
mc.tmp2 = Math.sqrt((mc.vx * mc.vx) + (mc.vy * mc.vy)) / 10;
mc.k = (Math.PI - mc.k) + (2 * mc.tmp);
mc.vx = mc.tmp2 * Math.sin(mc.k);
mc.vy = mc.tmp2 * Math.cos(mc.k);
mc.k = Math.atan2(mc.vx, mc.vy);
mc._rotation = (mc.k * 180) / Math.PI;
mc._x = mc.p.x + (30 * Math.sin(mc.k));
mc._y = mc.p.y - (30 * Math.cos(mc.k));
_root.esizezero(mc);
}
} else {
mc.flagpie2 = false;
mc.iii = 0;
while (mc.iii < mc.esize33) {
if (mc.arr33[mc.iii] == mc.ts) {
mc.flagpie2 = true;
mc.iii = mc.esize33;
}
mc.iii++;
}
if (!mc.flagpie2) {
mc.arr33[mc.esize33++] = mc.ts;
if (missfx) {
_root.attachMovie("missedshield", "m" + _root.arrd, _root.arrd, {_x:mc.ts._x, _y:mc.ts._y - 20});
_root.arrd++;
}
}
}
}
if ((!mc.flag2) || (mc.flag2 && (!mc.flagpie))) {
mc.bounds.x = mc.ts.rh.hndu1.c1._x;
mc.bounds.y = mc.ts.rh.hndu1.c1._y;
mc.ts.rh.hndu1.localToGlobal(mc.bounds);
mc.a = mc.bounds.x - _root._x;
mc.b = mc.bounds.y - _root._y;
mc.bounds.x = mc.ts.rh.hndu1.c2._x;
mc.bounds.y = mc.ts.rh.hndu1.c2._y;
mc.ts.rh.hndu1.localToGlobal(mc.bounds);
mc.c = mc.bounds.x - _root._x;
mc.d = mc.bounds.y - _root._y;
if (mc.a > mc.c) {
mc.tmp = mc.a;
mc.a = mc.c;
mc.c = mc.tmp;
mc.tmp = mc.b;
mc.b = mc.d;
mc.d = mc.tmp;
}
if (_root.lines(mc.a, mc.b, mc.c, mc.d, mc.x1, mc.y1, mc.x2, mc.y2, mc.p)) {
if (((((((mc.sgn == 2) && (mc.tt != 0)) || (mc.sgn == 1)) || (mc.sgn == 7)) || (mc.sgn == 6)) || (((mc.sgn == 5) && (!mc.fivf)) && (mc.cno != mc.ts))) || (mc.sgn == 0)) {
hpthrow(mc, 1);
}
if (mc.sgn == 5) {
_root.mcfv(mc);
}
if (((mc.sgn >= 2) && (mc.sgn <= 4)) || ((mc.sgn == 5) && (mc.fivf || (mc.cno == mc.ts)))) {
_root.mcb(mc);
continue;
}
_root.bloodmake(mc.p.x, mc.p.y);
_root.mctmp(mc);
if (mc.sgn != 7) {
mc.p = {x:mc._x + _root._x, y:mc._y + _root._y};
mc.ts.rh.hndu1.globalToLocal(mc.p);
mc.ob = {x:mc.p.x, y:mc.p.y, rot:((mc.ts._xscale > 0) ? (((180 - mc._rotation) + mc.ts.rh.hndu1._rotation) + mc.ts.rh._rotation) : (((180 + mc._rotation) + mc.ts.rh.hndu1._rotation) + mc.ts.rh._rotation))};
if ((mc.sgn != 0) && (mc.ts._xscale > 0)) {
mc.ob.rot = mc.ob.rot + 180;
}
mc.ob.sg = mc.sg;
_root.mcob(mc);
mc.ts.arrhndu1.push(mc.ob);
_root.thingstuck(mc.ts.arrhndu1, mc.ts.rh.hndu1);
}
mc.removeMovieClip();
return(undefined);
}
mc.bounds.x = mc.ts.rh.hndd1.c1._x;
mc.bounds.y = mc.ts.rh.hndd1.c1._y;
mc.ts.rh.hndd1.localToGlobal(mc.bounds);
mc.a = mc.bounds.x - _root._x;
mc.b = mc.bounds.y - _root._y;
mc.bounds.x = mc.ts.rh.hndd1.c2._x;
mc.bounds.y = mc.ts.rh.hndd1.c2._y;
mc.ts.rh.hndd1.localToGlobal(mc.bounds);
mc.c = mc.bounds.x - _root._x;
mc.d = mc.bounds.y - _root._y;
if (mc.a > mc.c) {
mc.tmp = mc.a;
mc.a = mc.c;
mc.c = mc.tmp;
mc.tmp = mc.b;
mc.b = mc.d;
mc.d = mc.tmp;
}
if (_root.lines(mc.a, mc.b, mc.c, mc.d, mc.x1, mc.y1, mc.x2, mc.y2, mc.p)) {
if (((((((mc.sgn == 2) && (mc.tt != 0)) || (mc.sgn == 1)) || (mc.sgn == 7)) || (mc.sgn == 6)) || (((mc.sgn == 5) && (!mc.fivf)) && (mc.cno != mc.ts))) || (mc.sgn == 0)) {
hpthrow(mc, 1);
}
if (mc.sgn == 5) {
_root.mcfv(mc);
}
if (((mc.sgn >= 2) && (mc.sgn <= 4)) || ((mc.sgn == 5) && (mc.fivf || (mc.cno == mc.ts)))) {
_root.mcb(mc);
continue;
}
_root.bloodmake(mc.p.x, mc.p.y);
_root.mctmp(mc);
if (mc.sgn != 7) {
mc.p = {x:mc._x + _root._x, y:mc._y + _root._y};
mc.ts.rh.hndd1.globalToLocal(mc.p);
mc.ob = {x:mc.p.x, y:mc.p.y, rot:((mc.ts._xscale > 0) ? ((mc._rotation - mc.ts.rh.hndd1._rotation) - mc.ts.rh._rotation) : (((-mc._rotation) - mc.ts.rh.hndd1._rotation) - mc.ts.rh._rotation))};
if ((mc.sgn != 0) && (mc.ts._xscale < 0)) {
mc.ob.rot = mc.ob.rot + 180;
}
mc.ob.sg = mc.sg;
_root.mcob(mc);
mc.ts.arrhndd1.push(mc.ob);
_root.thingstuck(mc.ts.arrhndd1, mc.ts.rh.hndd1);
}
mc.removeMovieClip();
return(undefined);
}
mc.bounds.x = mc.ts.lh.hndu2.c1._x;
mc.bounds.y = mc.ts.lh.hndu2.c1._y;
mc.ts.lh.hndu2.localToGlobal(mc.bounds);
mc.a = mc.bounds.x - _root._x;
mc.b = mc.bounds.y - _root._y;
mc.bounds.x = mc.ts.lh.hndu2.c2._x;
mc.bounds.y = mc.ts.lh.hndu2.c2._y;
mc.ts.lh.hndu2.localToGlobal(mc.bounds);
mc.c = mc.bounds.x - _root._x;
mc.d = mc.bounds.y - _root._y;
if (mc.a > mc.c) {
mc.tmp = mc.a;
mc.a = mc.c;
mc.c = mc.tmp;
mc.tmp = mc.b;
mc.b = mc.d;
mc.d = mc.tmp;
}
if (_root.lines(mc.a, mc.b, mc.c, mc.d, mc.x1, mc.y1, mc.x2, mc.y2, mc.p)) {
if (((((((mc.sgn == 2) && (mc.tt != 0)) || (mc.sgn == 1)) || (mc.sgn == 7)) || (mc.sgn == 6)) || (((mc.sgn == 5) && (!mc.fivf)) && (mc.cno != mc.ts))) || (mc.sgn == 0)) {
hpthrow(mc, 1);
}
if (mc.sgn == 5) {
_root.mcfv(mc);
}
if (((mc.sgn >= 2) && (mc.sgn <= 4)) || ((mc.sgn == 5) && (mc.fivf || (mc.cno == mc.ts)))) {
_root.mcb(mc);
continue;
}
_root.bloodmake(mc.p.x, mc.p.y);
_root.mctmp(mc);
if (mc.sgn != 7) {
mc.p = {x:mc._x + _root._x, y:mc._y + _root._y};
mc.ts.lh.hndu2.globalToLocal(mc.p);
mc.ob = {x:mc.p.x, y:mc.p.y, rot:((mc.ts._xscale > 0) ? (((180 - mc._rotation) + mc.ts.lh.hndu2._rotation) + mc.ts.lh._rotation) : (((180 + mc._rotation) + mc.ts.lh.hndu2._rotation) + mc.ts.lh._rotation))};
if ((mc.sgn != 0) && (mc.ts._xscale > 0)) {
mc.ob.rot = mc.ob.rot + 180;
}
mc.ob.sg = mc.sg;
_root.mcob(mc);
mc.ts.arrhndu2.push(mc.ob);
_root.thingstuck(mc.ts.arrhndu2, mc.ts.lh.hndu2);
}
mc.removeMovieClip();
return(undefined);
}
mc.bounds.x = mc.ts.lh.hndd2.c1._x;
mc.bounds.y = mc.ts.lh.hndd2.c1._y;
mc.ts.lh.hndd2.localToGlobal(mc.bounds);
mc.a = mc.bounds.x - _root._x;
mc.b = mc.bounds.y - _root._y;
mc.bounds.x = mc.ts.lh.hndd2.c2._x;
mc.bounds.y = mc.ts.lh.hndd2.c2._y;
mc.ts.lh.hndd2.localToGlobal(mc.bounds);
mc.c = mc.bounds.x - _root._x;
mc.d = mc.bounds.y - _root._y;
if (mc.a > mc.c) {
mc.tmp = mc.a;
mc.a = mc.c;
mc.c = mc.tmp;
mc.tmp = mc.b;
mc.b = mc.d;
mc.d = mc.tmp;
}
if (_root.lines(mc.a, mc.b, mc.c, mc.d, mc.x1, mc.y1, mc.x2, mc.y2, mc.p)) {
if (((((((mc.sgn == 2) && (mc.tt != 0)) || (mc.sgn == 1)) || (mc.sgn == 7)) || (mc.sgn == 6)) || (((mc.sgn == 5) && (!mc.fivf)) && (mc.cno != mc.ts))) || (mc.sgn == 0)) {
hpthrow(mc, 1);
}
if (mc.sgn == 5) {
_root.mcfv(mc);
}
if (((mc.sgn >= 2) && (mc.sgn <= 4)) || ((mc.sgn == 5) && (mc.fivf || (mc.cno == mc.ts)))) {
_root.mcb(mc);
continue;
}
_root.bloodmake(mc.p.x, mc.p.y);
_root.mctmp(mc);
if (mc.sgn != 7) {
mc.p = {x:mc._x + _root._x, y:mc._y + _root._y};
mc.ts.lh.hndd2.globalToLocal(mc.p);
mc.ob = {x:mc.p.x, y:mc.p.y, rot:((mc.ts._xscale > 0) ? ((mc._rotation - mc.ts.lh.hndd2._rotation) - mc.ts.lh._rotation) : (((-mc._rotation) - mc.ts.lh.hndd2._rotation) - mc.ts.lh._rotation))};
if ((mc.sgn != 0) && (mc.ts._xscale < 0)) {
mc.ob.rot = mc.ob.rot + 180;
}
mc.ob.sg = mc.sg;
_root.mcob(mc);
mc.ts.arrhndd2.push(mc.ob);
_root.thingstuck(mc.ts.arrhndd2, mc.ts.lh.hndd2);
}
mc.removeMovieClip();
return(undefined);
}
mc.bounds.x = mc.ts["p" + mc.ts._currentframe].head.c1._x;
mc.bounds.y = mc.ts["p" + mc.ts._currentframe].head.c1._y;
mc.ts["p" + mc.ts._currentframe].head.localToGlobal(mc.bounds);
mc.c = (mc.a = mc.bounds.x - _root._x);
mc.b = mc.bounds.y - _root._y;
mc.bounds.y = mc.ts["p" + mc.ts._currentframe].head.c2._y;
mc.ts["p" + mc.ts._currentframe].head.localToGlobal(mc.bounds);
mc.d = mc.bounds.y - _root._y;
if (_root.lines2(mc.a, mc.b, mc.d, mc.x1, mc.y1, mc.x2, mc.y2, mc.p)) {
if (((((((mc.sgn == 2) && (mc.tt != 0)) || (mc.sgn == 1)) || (mc.sgn == 7)) || (mc.sgn == 6)) || (((mc.sgn == 5) && (!mc.fivf)) && (mc.cno != mc.ts))) || (mc.sgn == 0)) {
hpthrow(mc, 2);
}
if (mc.sgn == 5) {
_root.mcfv(mc);
}
if (((mc.sgn >= 2) && (mc.sgn <= 4)) || ((mc.sgn == 5) && (mc.fivf || (mc.cno == mc.ts)))) {
_root.mcb(mc);
continue;
}
_root.manhitsound(mc.p.x, mc.p.y);
_root.bloodmake(mc.p.x, mc.p.y);
_root.mctmp(mc);
if (mc.sgn != 7) {
mc.p = {x:mc._x + _root._x, y:mc._y + _root._y};
mc.ts["p" + mc.ts._currentframe].head.globalToLocal(mc.p);
mc.ob = {x:mc.p.x, y:mc.p.y, rot:((mc.ts._xscale > 0) ? (mc._rotation) : (-mc._rotation))};
if ((mc.sgn != 0) && (mc.ts._xscale < 0)) {
mc.ob.rot = mc.ob.rot + 180;
}
mc.ob.sg = mc.sg;
_root.mcob(mc);
mc.ts.arrhead.push(mc.ob);
_root.thingstuck(mc.ts.arrhead, mc.ts["p" + mc.ts._currentframe].head);
}
mc.removeMovieClip();
return(undefined);
}
mc.bounds.x = mc.ts["p" + mc.ts._currentframe].body.c1._x;
mc.bounds.y = mc.ts["p" + mc.ts._currentframe].body.c1._y;
mc.ts["p" + mc.ts._currentframe].body.localToGlobal(mc.bounds);
mc.c = (mc.a = mc.bounds.x - _root._x);
mc.b = mc.bounds.y - _root._y;
mc.bounds.y = mc.ts["p" + mc.ts._currentframe].body.c2._y;
mc.ts["p" + mc.ts._currentframe].body.localToGlobal(mc.bounds);
mc.d = mc.bounds.y - _root._y;
if (_root.lines2(mc.a, mc.b, mc.d, mc.x1, mc.y1, mc.x2, mc.y2, mc.p)) {
if (((((((mc.sgn == 2) && (mc.tt != 0)) || (mc.sgn == 1)) || (mc.sgn == 7)) || (mc.sgn == 6)) || (((mc.sgn == 5) && (!mc.fivf)) && (mc.cno != mc.ts))) || (mc.sgn == 0)) {
hpthrow(mc, 1);
}
if (mc.sgn == 5) {
_root.mcfv(mc);
}
if (((mc.sgn >= 2) && (mc.sgn <= 4)) || ((mc.sgn == 5) && (mc.fivf || (mc.cno == mc.ts)))) {
_root.mcb(mc);
continue;
}
_root.bloodmake(mc.p.x, mc.p.y);
_root.mctmp(mc);
if (mc.sgn != 7) {
mc.p = {x:mc._x + _root._x, y:mc._y + _root._y};
mc.ts["p" + mc.ts._currentframe].body.globalToLocal(mc.p);
mc.ob = {x:mc.p.x, y:mc.p.y, rot:((mc.ts._xscale > 0) ? (mc._rotation) : (-mc._rotation))};
if ((mc.sgn != 0) && (mc.ts._xscale < 0)) {
mc.ob.rot = mc.ob.rot + 180;
}
mc.ob.sg = mc.sg;
_root.mcob(mc);
mc.ts.arrbody.push(mc.ob);
_root.thingstuck(mc.ts.arrbody, mc.ts["p" + mc.ts._currentframe].body);
}
mc.removeMovieClip();
return(undefined);
}
mc.bounds.x = mc.ts["p" + mc.ts._currentframe].legu1.c1._x;
mc.bounds.y = mc.ts["p" + mc.ts._currentframe].legu1.c1._y;
mc.ts["p" + mc.ts._currentframe].legu1.localToGlobal(mc.bounds);
mc.a = mc.bounds.x - _root._x;
mc.b = mc.bounds.y - _root._y;
mc.bounds.x = mc.ts["p" + mc.ts._currentframe].legu1.c2._x;
mc.bounds.y = mc.ts["p" + mc.ts._currentframe].legu1.c2._y;
mc.ts["p" + mc.ts._currentframe].legu1.localToGlobal(mc.bounds);
mc.c = mc.bounds.x - _root._x;
mc.d = mc.bounds.y - _root._y;
if (mc.a > mc.c) {
mc.tmp = mc.a;
mc.a = mc.c;
mc.c = mc.tmp;
mc.tmp = mc.b;
mc.b = mc.d;
mc.d = mc.tmp;
}
if (_root.lines(mc.a, mc.b, mc.c, mc.d, mc.x1, mc.y1, mc.x2, mc.y2, mc.p)) {
if (((((((mc.sgn == 2) && (mc.tt != 0)) || (mc.sgn == 1)) || (mc.sgn == 7)) || (mc.sgn == 6)) || (((mc.sgn == 5) && (!mc.fivf)) && (mc.cno != mc.ts))) || (mc.sgn == 0)) {
hpthrow(mc, 0);
}
if (mc.sgn == 5) {
_root.mcfv(mc);
}
if (((mc.sgn >= 2) && (mc.sgn <= 4)) || ((mc.sgn == 5) && (mc.fivf || (mc.cno == mc.ts)))) {
_root.mcb(mc);
continue;
}
_root.bloodmake(mc.p.x, mc.p.y);
_root.mctmp(mc);
if (mc.sgn != 7) {
mc.p = {x:mc._x + _root._x, y:mc._y + _root._y};
mc.ts["p" + mc.ts._currentframe].legu1.globalToLocal(mc.p);
mc.ob = {x:mc.p.x, y:mc.p.y, rot:((mc.ts._xscale > 0) ? (mc._rotation - mc.ts["p" + mc.ts._currentframe].legu1._rotation) : ((-mc._rotation) - mc.ts["p" + mc.ts._currentframe].legu1._rotation))};
if ((mc.sgn != 0) && (mc.ts._xscale < 0)) {
mc.ob.rot = mc.ob.rot + 180;
}
mc.ob.sg = mc.sg;
_root.mcob(mc);
mc.ts.arrlegu1.push(mc.ob);
_root.thingstuck(mc.ts.arrlegu1, mc.ts["p" + mc.ts._currentframe].legu1);
}
mc.removeMovieClip();
return(undefined);
}
mc.bounds.x = mc.ts["p" + mc.ts._currentframe].legu2.c1._x;
mc.bounds.y = mc.ts["p" + mc.ts._currentframe].legu2.c1._y;
mc.ts["p" + mc.ts._currentframe].legu2.localToGlobal(mc.bounds);
mc.a = mc.bounds.x - _root._x;
mc.b = mc.bounds.y - _root._y;
mc.bounds.x = mc.ts["p" + mc.ts._currentframe].legu2.c2._x;
mc.bounds.y = mc.ts["p" + mc.ts._currentframe].legu2.c2._y;
mc.ts["p" + mc.ts._currentframe].legu2.localToGlobal(mc.bounds);
mc.c = mc.bounds.x - _root._x;
mc.d = mc.bounds.y - _root._y;
if (mc.a > mc.c) {
mc.tmp = mc.a;
mc.a = mc.c;
mc.c = mc.tmp;
mc.tmp = mc.b;
mc.b = mc.d;
mc.d = mc.tmp;
}
if (_root.lines(mc.a, mc.b, mc.c, mc.d, mc.x1, mc.y1, mc.x2, mc.y2, mc.p)) {
if (((((((mc.sgn == 2) && (mc.tt != 0)) || (mc.sgn == 1)) || (mc.sgn == 7)) || (mc.sgn == 6)) || (((mc.sgn == 5) && (!mc.fivf)) && (mc.cno != mc.ts))) || (mc.sgn == 0)) {
hpthrow(mc, 0);
}
if (mc.sgn == 5) {
_root.mcfv(mc);
}
if (((mc.sgn >= 2) && (mc.sgn <= 4)) || ((mc.sgn == 5) && (mc.fivf || (mc.cno == mc.ts)))) {
_root.mcb(mc);
continue;
}
_root.bloodmake(mc.p.x, mc.p.y);
_root.mctmp(mc);
if (mc.sgn != 7) {
mc.p = {x:mc._x + _root._x, y:mc._y + _root._y};
mc.ts["p" + mc.ts._currentframe].legu2.globalToLocal(mc.p);
mc.ob = {x:mc.p.x, y:mc.p.y, rot:((mc.ts._xscale > 0) ? (mc._rotation - mc.ts["p" + mc.ts._currentframe].legu2._rotation) : ((-mc._rotation) - mc.ts["p" + mc.ts._currentframe].legu2._rotation))};
if ((mc.sgn != 0) && (mc.ts._xscale < 0)) {
mc.ob.rot = mc.ob.rot + 180;
}
mc.ob.sg = mc.sg;
_root.mcob(mc);
mc.ts.arrlegu2.push(mc.ob);
_root.thingstuck(mc.ts.arrlegu2, mc.ts["p" + mc.ts._currentframe].legu2);
}
mc.removeMovieClip();
return(undefined);
}
mc.bounds.x = mc.ts["p" + mc.ts._currentframe].legd1.c1._x;
mc.bounds.y = mc.ts["p" + mc.ts._currentframe].legd1.c1._y;
mc.ts["p" + mc.ts._currentframe].legd1.localToGlobal(mc.bounds);
mc.a = mc.bounds.x - _root._x;
mc.b = mc.bounds.y - _root._y;
mc.bounds.x = mc.ts["p" + mc.ts._currentframe].legd1.c2._x;
mc.bounds.y = mc.ts["p" + mc.ts._currentframe].legd1.c2._y;
mc.ts["p" + mc.ts._currentframe].legd1.localToGlobal(mc.bounds);
mc.c = mc.bounds.x - _root._x;
mc.d = mc.bounds.y - _root._y;
if (mc.a > mc.c) {
mc.tmp = mc.a;
mc.a = mc.c;
mc.c = mc.tmp;
mc.tmp = mc.b;
mc.b = mc.d;
mc.d = mc.tmp;
}
if (_root.lines(mc.a, mc.b, mc.c, mc.d, mc.x1, mc.y1, mc.x2, mc.y2, mc.p)) {
if (((((((mc.sgn == 2) && (mc.tt != 0)) || (mc.sgn == 1)) || (mc.sgn == 7)) || (mc.sgn == 6)) || (((mc.sgn == 5) && (!mc.fivf)) && (mc.cno != mc.ts))) || (mc.sgn == 0)) {
hpthrow(mc, 0);
}
if (mc.sgn == 5) {
_root.mcfv(mc);
}
if (((mc.sgn >= 2) && (mc.sgn <= 4)) || ((mc.sgn == 5) && (mc.fivf || (mc.cno == mc.ts)))) {
_root.mcb(mc);
continue;
}
_root.bloodmake(mc.p.x, mc.p.y);
_root.mctmp(mc);
if (mc.sgn != 7) {
mc.p = {x:mc._x + _root._x, y:mc._y + _root._y};
mc.ts["p" + mc.ts._currentframe].legd1.globalToLocal(mc.p);
mc.ob = {x:mc.p.x, y:mc.p.y, rot:((mc.ts._xscale > 0) ? (mc._rotation - mc.ts["p" + mc.ts._currentframe].legd1._rotation) : ((-mc._rotation) - mc.ts["p" + mc.ts._currentframe].legd1._rotation))};
if ((mc.sgn != 0) && (mc.ts._xscale < 0)) {
mc.ob.rot = mc.ob.rot + 180;
}
mc.ob.sg = mc.sg;
_root.mcob(mc);
mc.ts.arrlegd1.push(mc.ob);
_root.thingstuck(mc.ts.arrlegd1, mc.ts["p" + mc.ts._currentframe].legd1);
}
mc.removeMovieClip();
return(undefined);
}
mc.bounds.x = mc.ts["p" + mc.ts._currentframe].legd2.c1._x;
mc.bounds.y = mc.ts["p" + mc.ts._currentframe].legd2.c1._y;
mc.ts["p" + mc.ts._currentframe].legd2.localToGlobal(mc.bounds);
mc.a = mc.bounds.x - _root._x;
mc.b = mc.bounds.y - _root._y;
mc.bounds.x = mc.ts["p" + mc.ts._currentframe].legd2.c2._x;
mc.bounds.y = mc.ts["p" + mc.ts._currentframe].legd2.c2._y;
mc.ts["p" + mc.ts._currentframe].legd2.localToGlobal(mc.bounds);
mc.c = mc.bounds.x - _root._x;
mc.d = mc.bounds.y - _root._y;
if (mc.a > mc.c) {
mc.tmp = mc.a;
mc.a = mc.c;
mc.c = mc.tmp;
mc.tmp = mc.b;
mc.b = mc.d;
mc.d = mc.tmp;
}
if (_root.lines(mc.a, mc.b, mc.c, mc.d, mc.x1, mc.y1, mc.x2, mc.y2, mc.p)) {
if (((((((mc.sgn == 2) && (mc.tt != 0)) || (mc.sgn == 1)) || (mc.sgn == 7)) || (mc.sgn == 6)) || (((mc.sgn == 5) && (!mc.fivf)) && (mc.cno != mc.ts))) || (mc.sgn == 0)) {
hpthrow(mc, 0);
}
if (mc.sgn == 5) {
_root.mcfv(mc);
}
if (((mc.sgn >= 2) && (mc.sgn <= 4)) || ((mc.sgn == 5) && (mc.fivf || (mc.cno == mc.ts)))) {
_root.mcb(mc);
} else {
_root.bloodmake(mc.p.x, mc.p.y);
_root.mctmp(mc);
if (mc.sgn != 7) {
mc.p = {x:mc._x + _root._x, y:mc._y + _root._y};
mc.ts["p" + mc.ts._currentframe].legd2.globalToLocal(mc.p);
mc.ob = {x:mc.p.x, y:mc.p.y, rot:((mc.ts._xscale > 0) ? (mc._rotation - mc.ts["p" + mc.ts._currentframe].legd2._rotation) : ((-mc._rotation) - mc.ts["p" + mc.ts._currentframe].legd2._rotation))};
if ((mc.sgn != 0) && (mc.ts._xscale < 0)) {
mc.ob.rot = mc.ob.rot + 180;
}
mc.ob.sg = mc.sg;
_root.mcob(mc);
mc.ts.arrlegd2.push(mc.ob);
_root.thingstuck(mc.ts.arrlegd2, mc.ts["p" + mc.ts._currentframe].legd2);
}
mc.removeMovieClip();
return(undefined);
}
}
}
}
}
}
};
mctmp = function (mc) {
switch (mc.sgn) {
case 0 :
mc.tmp = (mc.p.x - ((mc.x1 + mc.x2) / 2)) + ((random(31) - 15) * Math.sin(mc.k));
mc._x = mc._x + mc.tmp;
mc._y = mc._y - (mc.tmp / Math.tan(mc.k));
return;
case 1 :
mc.tmp = (mc.p.x - mc._x) + ((random(11) - 5) * Math.cos(mc.rot));
mc._x = mc._x + mc.tmp;
mc._y = mc._y + (mc.tmp * Math.tan(mc.rot));
return;
case 5 :
mc.tmp = (mc.p.x - mc._x) + ((random(21) - 10) * Math.cos(mc.rot));
mc._x = mc._x + mc.tmp;
mc._y = mc._y + (mc.tmp * Math.tan(mc.rot));
return;
case 6 :
mc.tmp = (mc.p.x - mc._x) + ((random(11) - 5) * Math.cos(mc.rot));
mc._x = mc._x + mc.tmp;
mc._y = mc._y + (mc.tmp * Math.tan(mc.rot));
}
};
mcob = function (mc) {
if (!(mc.sgn === 1)) {
return;
}
};
mcb = function (mc) {
if (mc.cno != mc.ts) {
mc.cno = mc.ts;
switch (mc.sgn) {
case 2 :
mc.rot = Math.atan2(mc.vy, mc.vx);
mc.len = Math.sqrt((mc.vx * mc.vx) + (mc.vy * mc.vy));
mc.rot = mc.rot - (Math.PI/2);
mc.vx = mc.len * Math.sin(mc.rot);
mc.vy = mc.len * Math.cos(mc.rot);
mc.rr = mc.rr * 0.5;
mc.vx = mc.vx * 0.6;
mc.vy = mc.vy * 0.6;
mc.tt = 0;
return;
case 3 :
mc.rot = Math.atan2(mc.vy, mc.vx);
mc.len = Math.sqrt((mc.vx * mc.vx) + (mc.vy * mc.vy));
mc.rot = mc.rot - (Math.PI/2);
mc.vx = mc.len * Math.sin(mc.rot);
mc.vy = mc.len * Math.cos(mc.rot);
mc.rr = mc.rr * -0.8;
mc.rot = Math.atan2(mc.vy, mc.vx);
mc.vx = mc.vx * 0.6;
mc.vy = mc.vy * 0.6;
return;
case 4 :
mc.rot = Math.atan2(mc.vy, mc.vx);
mc.len = Math.sqrt((mc.vx * mc.vx) + (mc.vy * mc.vy));
mc.rot = mc.rot - (Math.PI/2);
mc.vx = mc.len * Math.sin(mc.rot);
mc.vy = mc.len * Math.cos(mc.rot);
mc.rr = mc.rr * -0.8;
mc.rot = Math.atan2(mc.vy, mc.vx);
mc.vx = mc.vx * 0.6;
mc.vy = mc.vy * 0.6;
return;
case 5 :
mc.rot = Math.atan2(mc.vy, mc.vx);
mc.len = Math.sqrt((mc.vx * mc.vx) + (mc.vy * mc.vy));
mc.rot = mc.rot - (Math.PI/2);
mc.vx = mc.len * Math.sin(mc.rot);
mc.vy = mc.len * Math.cos(mc.rot);
mc.rr = mc.rr * -0.8;
mc.rot = Math.atan2(mc.vy, mc.vx);
mc.vx = mc.vx * 0.6;
mc.vy = mc.vy * 0.6;
}
}
};
mcfv = function (mc) {
};
missornot = function (wep) {
return(Math.random() < wep);
};
blocked = function (player) {
return(Math.random() < armor[player.iarmor - 2].chance);
};
esizezero = function (mc) {
mc.esize = 0;
mc.esize2 = 0;
mc.esize3 = 0;
};
swordhit = function (mc) {
len = allteam.length;
i = 0;
while (i < len) {
mc.ts = allteam[i];
if ((mc.team != mc.ts.team) && (!mc.ts.dead)) {
if ((((mc._x - mc.ts._x) * (mc._x - mc.ts._x)) + ((mc._y - mc.ts._y) * (mc._y - mc.ts._y))) < 100000) {
if (mc.swordall) {
mc.p = {x:mc.rh.weapon.c1._x, y:mc.rh.weapon.c1._y};
mc.rh.weapon.localToGlobal(mc.p);
mc.x1 = mc.p.x - _root._x;
mc.y1 = mc.p.y - _root._y;
mc.p = {x:mc.rh.weapon.c2._x, y:mc.rh.weapon.c2._y};
mc.rh.weapon.localToGlobal(mc.p);
mc.x2 = mc.p.x - _root._x;
mc.y2 = mc.p.y - _root._y;
if (mc.x2 < mc.x1) {
var tmp = mc.x1;
mc.x1 = mc.x2;
mc.x2 = tmp;
tmp = mc.y1;
mc.y1 = mc.y2;
mc.y2 = tmp;
}
}
if (mc.blockall && (!mc.ts.bow)) {
mc.p = {x:mc.ts.lh.shield.c1._x, y:mc.ts.lh.shield.c1._y};
mc.ts.lh.shield.localToGlobal(mc.p);
mc.xd1 = mc.p.x - _root._x;
mc.yd1 = mc.p.y - _root._y;
mc.p = {x:mc.ts.lh.shield.c2._x, y:mc.ts.lh.shield.c2._y};
mc.ts.lh.shield.localToGlobal(mc.p);
mc.xd2 = mc.p.x - _root._x;
mc.yd2 = mc.p.y - _root._y;
if (mc.xd2 < mc.xd1) {
var tmp = mc.xd1;
mc.xd1 = mc.xd2;
mc.xd2 = tmp;
tmp = mc.yd1;
mc.yd1 = mc.yd2;
mc.yd2 = tmp;
}
}
if (mc.blockall && (!mc.ts.bow)) {
if (lines(mc.xd1, mc.yd1, mc.xd2, mc.yd2, mc.x1, mc.y1, mc.x2, mc.y2, mc.p)) {
mc.blockall = false;
if (blocked(mc.ts)) {
_root.blockedsound(mc.ts._x, mc.ts._y);
if (missfx) {
_root.attachMovie("blocked", "m" + _root.arrd, _root.arrd, {_x:mc.ts._x, _y:mc.ts._y - 20});
_root.arrd++;
}
mc.swordall = false;
} else if (missfx) {
_root.attachMovie("missedshield", "m" + _root.arrd, _root.arrd, {_x:mc.ts._x, _y:mc.ts._y - 20});
_root.arrd++;
}
}
}
if (mc.swordall) {
if (lines2(mc.ts._x, mc.ts._y + 55, mc.ts._y - 35, mc.x1, mc.y1, mc.x2, mc.y2, mc.p)) {
if (missornot(weapons[mc.wep - 2].chance)) {
if ((mc.ts._y - mc.p.y) > 15) {
_root.manhitsound(mc.p.x, mc.p.y);
mc.ts.hp = mc.ts.hp - ((((weapons[mc.wep - 2].damage / armor[mc.ts.iarmor - 2].wepa) * 3) * mc.pdam) / mc.ts.pdef);
} else if ((mc.ts._y - mc.p.y) > -15) {
mc.ts.hp = mc.ts.hp - (((weapons[mc.wep - 2].damage / armor[mc.ts.iarmor - 2].wepa) * mc.pdam) / mc.ts.pdef);
} else {
mc.ts.hp = mc.ts.hp - ((((weapons[mc.wep - 2].damage / armor[mc.ts.iarmor - 2].wepa) / 3) * mc.pdam) / mc.ts.pdef);
}
hpchange(mc, mc.ts);
bloodmake(mc.p.x, mc.p.y);
} else if (missfx) {
_root.attachMovie("missed", "m" + _root.arrd, _root.arrd, {_x:mc.ts._x, _y:mc.ts._y - 20});
_root.arrd++;
}
mc.blockall = false;
mc.swordall = false;
}
}
}
}
i++;
}
};
hudopen = function () {
if (playmode == 1) {
_root.msound("screech");
} else {
_root.msound("wind");
}
hud.stats.t1.text = Math.max(Math.ceil(_root.h.hp), 0);
if (hud.stash.cac.openb.up) {
if (freeze) {
pausegame();
}
hud.stash.cac.openb.up = false;
hud.stash.cac.openb.uptmp = false;
endy = 190;
strty = hud.stash._y;
hdunf();
} else {
if ((!freeze) && (hud.stats._visible == false)) {
pausegame();
}
hud.stash.cac.openb.uptmp = true;
endy = 12.25;
strty = hud.stash._y;
hdunf();
}
};
hdunf = function () {
hud.stash.cac.openb.c = strty;
hud.stash.cac.openb.a = (((2 * (hud.stash.cac.openb.c - endy)) / hud.stash.cac.openb.te) / hud.stash.cac.openb.te) / hud.stash.cac.openb.te;
hud.stash.cac.openb.b = ((-3 * hud.stash.cac.openb.a) * hud.stash.cac.openb.te) / 2;
t = 0;
hud.stash.cac.openb.onEnterFrame = function () {
t++;
hud.stash._y = ((((this.a * t) * t) * t) + ((this.b * t) * t)) + this.c;
if (t >= this.te) {
hud.stash.cac.openb.up = hud.stash.cac.openb.uptmp;
hud.stash._y = endy;
delete this.onEnterFrame;
}
};
};
pausegame = function () {
if (freeze) {
var len = allteam.length;
var i = 0;
while (i < len) {
allteam[i]["p" + allteam[i]._currentframe].stop();
allteam[i].lh.bow.bow.stop();
allteam[i].rh.stop();
allteam[i].lh.stop();
i++;
}
} else {
if (h.bow && (!hud.stash.slide3.cp)) {
h.rh.gotoAndPlay(34);
h.lh.gotoAndPlay(34);
h.bow = false;
} else if ((!h.bow) && (hud.stash.slide3.cp)) {
h.rh.gotoAndPlay(159);
h.lh.gotoAndPlay(55);
h.bow = true;
}
var len = allteam.length;
var i = 0;
while (i < len) {
if (!allteam[i].dead) {
allteam[i]["p" + allteam[i]._currentframe].play();
if (allteam[i].lh.bow.bow._currentframe != 1) {
allteam[i].lh.bow.bow.play();
}
if ((allteam[i].rh._currentframe != 1) && (allteam[i].rh._currentframe != 65)) {
allteam[i].rh.play();
}
if ((allteam[i].lh._currentframe != 1) && (allteam[i].lh._currentframe != 53)) {
allteam[i].lh.play();
}
}
i++;
}
}
freeze = !freeze;
};
trwright = function () {
if (!bef) {
_root.trwcsound(h._x, h._y);
var tmp = hud.stash.slide2.cp;
tmp++;
if (tmp > 5) {
tmp = tmp - 6;
}
while ((hud.stash.slide2.cp != tmp) && (_root["w" + (tmp + 1)] == 3)) {
tmp++;
if (tmp > 5) {
tmp = tmp - 6;
}
}
if (_root["w" + (tmp + 1)] != 3) {
hud.stash.slide2.moveto(tmp);
h.trw = _root["w" + (tmp + 1)];
if (hud.stash.cac.openb.up) {
hud.hud.flash.todo(_root["w" + (tmp + 1)]);
}
hud.hud.trwn.text = _root[("w" + (tmp + 1)) + "n"];
hud.hud.trwd.text = ((throws[_root["w" + (tmp + 1)] - 1].damage + ",") + (100 * throws[_root["w" + (tmp + 1)] - 1].chance)) + "%";
hud.stats.t7.text = hud.hud.trwd.text;
}
}
};
trwleft = function () {
if (!bef) {
_root.trwcsound(h._x, h._y);
var tmp = hud.stash.slide2.cp;
tmp--;
if (tmp < 0) {
tmp = tmp + 6;
}
while ((hud.stash.slide2.cp != tmp) && (_root["w" + (tmp + 1)] == 3)) {
tmp--;
if (tmp < 0) {
tmp = tmp + 6;
}
}
if (_root["w" + (tmp + 1)] != 3) {
hud.stash.slide2.moveto(tmp);
h.trw = _root["w" + (tmp + 1)];
if (hud.stash.cac.openb.up) {
hud.hud.flash.todo(_root["w" + (tmp + 1)]);
}
hud.hud.trwn.text = _root[("w" + (tmp + 1)) + "n"];
hud.hud.trwd.text = ((throws[_root["w" + (tmp + 1)] - 1].damage + ",") + (100 * throws[_root["w" + (tmp + 1)] - 1].chance)) + "%";
hud.stats.t7.text = hud.hud.trwd.text;
}
}
};
firtrw = function () {
if ((freeze && (!h.dead)) && ((((((w1 != 3) || (w2 != 3)) || (w3 != 3)) || (w4 != 3)) || (w5 != 3)) || (w6 != 3))) {
var tmpa = 1;
while (tmpa <= 6) {
if ((_root["w" + tmpa] == h.trw) && (_root[("w" + tmpa) + "n"] > 0)) {
tmpa = 8;
}
tmpa++;
}
if (tmpa == 9) {
if ((h.rh._currentframe < 181) || (h.rh._currentframe > 192)) {
if (!h.bow) {
h.rh.gotoAndPlay(181);
}
}
}
}
};
walktospeed = function (num) {
switch (num) {
case 1 :
return(4);
case 2 :
return(5);
case 3 :
return(6);
case 4 :
return(7);
case 5 :
return(8);
}
};
walktotalk = function (num) {
switch (num) {
case 1 :
return("Very Slow");
case 2 :
return("Slow");
case 3 :
return("Normal");
case 4 :
return("Fast");
case 5 :
return("Very Fast");
}
};
weaponsdo = function () {
weapons = new Array(17);
var i = 0;
while (i < 17) {
weapons[i] = new Object();
weapons[i].price = 100;
i++;
}
weapons[0].damage = 20;
weapons[0].chance = 1;
weapons[0].price = 50;
weapons[1].damage = 35;
weapons[1].chance = 0.85;
weapons[1].price = 120;
weapons[2].damage = 50;
weapons[2].chance = 1;
weapons[2].price = 200;
weapons[3].damage = 80;
weapons[3].chance = 0.9;
weapons[3].price = 320;
weapons[4].damage = 100;
weapons[4].chance = 0.85;
weapons[4].price = 700;
weapons[5].damage = 160;
weapons[5].chance = 0.9;
weapons[5].price = 1450;
weapons[6].damage = 240;
weapons[6].chance = 0.85;
weapons[6].price = 2400;
weapons[7].damage = 320;
weapons[7].chance = 1;
weapons[7].price = 4900;
weapons[8].damage = 500;
weapons[8].chance = 0.9;
weapons[8].price = 9300;
weapons[9].damage = 750;
weapons[9].chance = 0.9;
weapons[9].price = 16900;
weapons[10].damage = 1100;
weapons[10].chance = 0.95;
weapons[10].price = 23000;
weapons[11].damage = 1500;
weapons[11].chance = 0.9;
weapons[11].price = 31000;
weapons[12].damage = 2000;
weapons[12].chance = 1;
weapons[12].price = 45000;
weapons[13].damage = 3000;
weapons[13].chance = 1;
weapons[13].price = 70000 /* 0x011170 */;
weapons[14].damage = 5100;
weapons[14].chance = 0.85;
weapons[14].price = 100000 /* 0x0186A0 */;
weapons[15].damage = 6500;
weapons[15].chance = 0.9;
weapons[15].price = 150000 /* 0x0249F0 */;
weapons[16].damage = 10000;
weapons[16].chance = 1;
weapons[16].price = 300000 /* 0x0493E0 */;
armor = new Array(31);
var i = 0;
while (i < 31) {
armor[i] = new Object();
armor[i].chance = 0.5;
armor[i].bowa = 1.1;
armor[i].wepa = 1.1;
armor[i].walk = 4;
armor[i].price = 400;
i++;
}
armor[0].chance = 0.9;
armor[0].bowa = 0.5;
armor[0].wepa = 0.5;
armor[0].walk = 3;
armor[0].price = 100;
armor[1].chance = 0.95;
armor[1].bowa = 0.6;
armor[1].wepa = 0.6;
armor[1].walk = 4;
armor[1].price = 150;
armor[2].chance = 0.75;
armor[2].bowa = 0.7;
armor[2].wepa = 1;
armor[2].walk = 3;
armor[2].price = 240;
armor[3].chance = 0.9;
armor[3].bowa = 0.8;
armor[3].wepa = 1.5;
armor[3].walk = 2;
armor[3].price = 300;
armor[4].chance = 0.9;
armor[4].bowa = 1.5;
armor[4].wepa = 0.8;
armor[4].walk = 2;
armor[4].price = 300;
armor[5].chance = 0.75;
armor[5].bowa = 1.1;
armor[5].wepa = 2.1;
armor[5].walk = 5;
armor[5].price = 400;
armor[6].chance = 0.6;
armor[6].bowa = 2.5;
armor[6].wepa = 3.2;
armor[6].walk = 1;
armor[6].price = 700;
armor[7].chance = 0.9;
armor[7].bowa = 3.5;
armor[7].wepa = 3.6;
armor[7].walk = 3;
armor[7].price = 1300;
armor[8].chance = 0.9;
armor[8].bowa = 3.5;
armor[8].wepa = 1.2;
armor[8].walk = 5;
armor[8].price = 1900;
armor[9].chance = 0.85;
armor[9].bowa = 4.9;
armor[9].wepa = 5.2;
armor[9].walk = 3;
armor[9].price = 3000;
armor[10].chance = 0.75;
armor[10].bowa = 7;
armor[10].wepa = 6.3;
armor[10].walk = 2;
armor[10].price = 4150;
armor[11].chance = 0.95;
armor[11].bowa = 8.5;
armor[11].wepa = 9;
armor[11].walk = 4;
armor[11].price = 6200;
armor[12].chance = 0.95;
armor[12].bowa = 4;
armor[12].wepa = 19.5;
armor[12].walk = 3;
armor[12].price = 8800;
armor[13].chance = 0.95;
armor[13].bowa = 19.5;
armor[13].wepa = 4;
armor[13].walk = 3;
armor[13].price = 8800;
armor[14].chance = 0.8;
armor[14].bowa = 15;
armor[14].wepa = 15;
armor[14].walk = 3;
armor[14].price = 11000;
armor[15].chance = 0.7;
armor[15].bowa = 13.5;
armor[15].wepa = 13;
armor[15].walk = 5;
armor[15].price = 12500;
armor[16].chance = 0.7;
armor[16].bowa = 29.5;
armor[16].wepa = 6.5;
armor[16].walk = 3;
armor[16].price = 17000;
armor[17].chance = 0.7;
armor[17].bowa = 6.5;
armor[17].wepa = 29.5;
armor[17].walk = 3;
armor[17].price = 17000;
armor[18].chance = 0.7;
armor[18].bowa = 25;
armor[18].wepa = 25;
armor[18].walk = 3;
armor[18].price = 20000;
armor[19].chance = 0.8;
armor[19].bowa = 29;
armor[19].wepa = 30;
armor[19].walk = 4;
armor[19].price = 27200;
armor[20].chance = 0.9;
armor[20].bowa = 40.5;
armor[20].wepa = 36;
armor[20].walk = 2;
armor[20].price = 32500;
armor[21].chance = 0.95;
armor[21].bowa = 39;
armor[21].wepa = 41;
armor[21].walk = 4;
armor[21].price = 40000;
armor[22].chance = 0.8;
armor[22].bowa = 18;
armor[22].wepa = 74;
armor[22].walk = 4;
armor[22].price = 45000;
armor[23].chance = 0.8;
armor[23].bowa = 74;
armor[23].wepa = 18;
armor[23].walk = 4;
armor[23].price = 45000;
armor[24].chance = 0.75;
armor[24].bowa = 58;
armor[24].wepa = 58;
armor[24].walk = 3;
armor[24].price = 53000;
armor[25].chance = 0.85;
armor[25].bowa = 70;
armor[25].wepa = 70;
armor[25].walk = 3;
armor[25].price = 65000;
armor[26].chance = 0.9;
armor[26].bowa = 85;
armor[26].wepa = 80;
armor[26].walk = 3;
armor[26].price = 75000 /* 0x0124F8 */;
armor[27].chance = 0.85;
armor[27].bowa = 110;
armor[27].wepa = 110;
armor[27].walk = 4;
armor[27].price = 105000 /* 0x019A28 */;
armor[28].chance = 0.85;
armor[28].bowa = 141;
armor[28].wepa = 141;
armor[28].walk = 2;
armor[28].price = 105000 /* 0x019A28 */;
armor[29].chance = 1;
armor[29].bowa = 325;
armor[29].wepa = 325;
armor[29].walk = 1;
armor[29].price = 150000 /* 0x0249F0 */;
armor[30].chance = 1;
armor[30].bowa = 300;
armor[30].wepa = 300;
armor[30].walk = 5;
armor[30].price = 300000 /* 0x0493E0 */;
bows = new Array(6);
var i = 0;
while (i < 6) {
bows[i] = new Object();
bows[i].price = 200;
i++;
}
bows[0].damage = 120;
bows[0].chance = 0.8;
bows[0].price = 400;
bows[1].damage = 210;
bows[1].chance = 1;
bows[1].price = 2500;
bows[2].damage = 500;
bows[2].chance = 1;
bows[2].price = 10000;
bows[3].damage = 1100;
bows[3].chance = 0.9;
bows[3].price = 20000;
bows[4].damage = 3800;
bows[4].chance = 0.85;
bows[4].price = 80000 /* 0x013880 */;
bows[5].damage = 10000;
bows[5].chance = 1;
bows[5].price = 300000 /* 0x0493E0 */;
throws = new Array(7);
var i = 0;
while (i < 7) {
throws[i] = new Object();
throws[i].price = 10;
i++;
}
throws[0].damage = 20;
throws[0].chance = 1;
throws[0].price = 5;
throws[1].damage = 35;
throws[1].chance = 1;
throws[1].price = 10;
throws[4].damage = 100;
throws[4].price = 50;
throws[4].chance = 0.9;
throws[5].damage = 2000;
throws[5].chance = 1;
throws[5].price = 1500;
throws[3].damage = (throws[6].damage = 30);
throws[3].chance = (throws[6].chance = 1);
throws[3].price = (throws[6].price = 25);
};
hpchange = function (mc, ts) {
ts.star.mask._yscale = ts.hp;
if (ts == h) {
hud.hud.hp.bar._yscale = h.hp;
}
if (ts.hp <= 0) {
if (playmode == 1) {
if (ts == h) {
hdeaths++;
}
if (mc == h) {
hkills++;
}
if (ts.team == mc.team) {
teams[mc.team - 1].score--;
teams[mc.team - 1].unscore++;
} else {
teams[mc.team - 1].score++;
teams[ts.team - 1].unscore++;
}
kills[teams[mc.team - 1].place].text.text = (kills[teams[mc.team - 1].place].score = teams[mc.team - 1].score);
checkkills();
} else if (playmode == 2) {
if (ts == h) {
songfade();
pausegame();
delete onMouseDown;
onEnterFrame = function () {
this._alpha = this._alpha - 2;
if (this._alpha <= 0) {
this._alpha = 0;
playerscore = kills[0].score;
curntmap = _root._currentframe;
_root.gotoAndStop(6);
delete onEnterFrame;
}
};
bef = true;
} else {
kills[0].score++;
kills[0].text.text = kills[0].score;
if (kills[0].score == 8) {
armor[18].walk = 2;
} else if (kills[0].score == 16) {
armor[18].bowa = 4.2;
lvl = 2;
} else if (kills[0].score == 24) {
armor[18].bowa = 5.6;
armor[18].chance = 0.6;
armor[18].walk = 3;
} else if (kills[0].score == 32) {
armor[18].bowa = 7.2;
armor[18].chance = 0.7;
lvl = 3;
} else if (kills[0].score == 40) {
armor[18].bowa = 9.9;
armor[18].chance = 0.8;
armor[18].walk = 4;
} else if (kills[0].score == 48) {
armor[18].bowa = 12.5;
armor[18].chance = 0.9;
} else if (kills[0].score == 56) {
armor[18].walk = 5;
} else if (kills[0].score >= 60) {
armor[18].bowa = (0.415 * kills[0].score) - 8.2;
}
i = 0;
while (i < 6) {
tss = allteam[i];
if (tss != h) {
tss.speed = (_root.walktospeed(_root.armor[tss.iarmor - 2].walk) + (Math.random() * 0.1)) - 0.05;
}
i++;
}
}
} else if (playmode == 3) {
if (ts == h) {
songfade();
pausegame();
delete onMouseDown;
onEnterFrame = function () {
this._alpha = this._alpha - 2;
if (this._alpha <= 0) {
this._alpha = 0;
playerscore = kills[0].score;
curntmap = _root._currentframe;
_root.gotoAndStop(6);
delete onEnterFrame;
}
};
bef = true;
} else {
kills[0].score++;
kills[0].text.text = kills[0].score;
if (kills[0].score == 8) {
armor[9].walk = 2;
} else if (kills[0].score == 16) {
armor[9].wepa = 4.2;
lvl = 2;
} else if (kills[0].score == 24) {
armor[9].wepa = 5.6;
armor[9].walk = 3;
} else if (kills[0].score == 32) {
armor[9].wepa = 7.2;
lvl = 3;
} else if (kills[0].score == 40) {
armor[9].wepa = 9.9;
armor[9].walk = 4;
} else if (kills[0].score == 48) {
armor[9].wepa = 12.5;
} else if (kills[0].score == 56) {
armor[9].walk = 5;
} else if (kills[0].score >= 60) {
armor[9].wepa = (0.415 * kills[0].score) - 8.2;
}
i = 0;
while (i < 6) {
tss = allteam[i];
if (tss != h) {
tss.speed = (_root.walktospeed(_root.armor[tss.iarmor - 2].walk) + (Math.random() * 0.1)) - 0.05;
}
i++;
}
}
} else if (playmode == 4) {
if (ts == allteam[1]) {
songfade();
pausegame();
delete onMouseDown;
onEnterFrame = function () {
this._alpha = this._alpha - 2;
if (this._alpha <= 0) {
this._alpha = 0;
playerscore = kills[0].score;
curntmap = _root._currentframe;
_root.gotoAndStop(6);
delete onEnterFrame;
}
};
bef = true;
} else if (ts == h) {
} else {
kills[0].score++;
kills[0].text.text = kills[0].score;
if (kills[0].score == 8) {
armor[27].walk = 2;
} else if (kills[0].score == 16) {
armor[27].bowa = (armor[27].wepa = 4.2);
lvl = 2;
} else if (kills[0].score == 24) {
armor[27].bowa = (armor[27].wepa = 5.6);
armor[27].walk = 3;
} else if (kills[0].score == 32) {
armor[27].bowa = (armor[27].wepa = 7.2);
lvl = 3;
} else if (kills[0].score == 40) {
armor[27].bowa = (armor[27].wepa = 9.9);
armor[27].walk = 4;
} else if (kills[0].score == 48) {
armor[27].bowa = (armor[27].wepa = 12.5);
} else if (kills[0].score == 56) {
armor[27].walk = 5;
} else if (kills[0].score >= 60) {
armor[27].bowa = (armor[27].wepa = (0.415 * kills[0].score) - 8.2);
}
i = 0;
while (i < 6) {
tss = allteam[i];
if (tss != h) {
tss.speed = (_root.walktospeed(_root.armor[tss.iarmor - 2].walk) + (Math.random() * 0.1)) - 0.05;
}
i++;
}
}
}
ts.dead = true;
ts["p" + ts._currentframe].stop();
ts.lh.bow.bow.stop();
ts.rh.stop();
ts.lh.stop();
_root.disappearsound(ts._x, ts._y);
_root.attachMovie("dead", "d" + _root.arrd, _root.arrd, {_x:ts._x, _y:ts._y});
_root["d" + _root.arrd].onEnterFrame = function () {
this._x = ts._x;
this._y = ts._y;
if (Math.abs(ts._xscale) <= 10) {
ts._xscale = allscale;
ts._visible = false;
ts.star._visible = false;
ts.ti = 0;
ts.onEnterFrame = function () {
if (_root.freeze) {
if (this.ti >= _root.deadtime) {
this._visible = true;
this.star._visible = true;
this.star.mask._yscale = 100;
this.dead = false;
this.hp = 100;
var z = random(_root.maxc);
this._x = checks[z].x;
this._y = checks[z].y;
_root.appearsound(this._x, this._y);
this.ca = checks[z].ca;
this.cb = checks[z].cb;
if (checks[z].lft) {
this._xscale = this._xscale * -1;
}
if ((this == h) && (playmode == 4)) {
if (MochiKey.isDown(65)) {
this._x = allteam[1]._x - 20;
this._y = allteam[1]._y;
} else if (MochiKey.isDown(68)) {
this._x = allteam[1]._x + 20;
this._y = allteam[1]._y;
} else {
this._x = allteam[1]._x + ((random(2) - 0.5) * 40);
this._y = allteam[1]._y;
}
this.ca = allteam[1].ca;
this.cb = allteam[1].cb;
}
deletearr(this.arrbody);
deletearr(this.arrhead);
deletearr(this.arrlegu1);
deletearr(this.arrlegu2);
deletearr(this.arrlegd1);
deletearr(this.arrlegd2);
deletearr2(this.arrhndu1, this.rh.hndu1);
deletearr2(this.arrhndu2, this.lh.hndu2);
deletearr2(this.arrhndd1, this.rh.hndd1);
deletearr2(this.arrhndd2, this.lh.hndd2);
this.arrbody = new Array();
this.arrhead = new Array();
this.arrlegu1 = new Array();
this.arrlegu2 = new Array();
this.arrlegd1 = new Array();
this.arrlegd2 = new Array();
this.arrhndu1 = new Array();
this.arrhndu2 = new Array();
this.arrhndd1 = new Array();
this.arrhndd2 = new Array();
this.gotoAndStop(5);
this.p5.gotoAndStop(20);
this.lh.bow.bow.gotoAndStop(1);
this.down = true;
this.fwall = null;
this.vx = (this.vy = 0);
this.rh._rotation = (this.lh._rotation = 0);
this.rad = 0;
this.runc = 0;
this.bleft = random(2);
_root.attachMovie("alive", "a" + _root.arrd, _root.arrd, {_x:ts._x, _y:this._y});
_root.arrd++;
if (this == h) {
if ((((playmode == 1) && (_root.hud.stash.slide3.cp)) || ((playmode == 2) && h.bow)) || ((playmode == 4) && h.bow)) {
this.bow = true;
this.lh.gotoAndStop(1);
this.rh.gotoAndStop(1);
} else {
this.bow = false;
this.lh.gotoAndStop(53);
this.rh.gotoAndStop(65);
}
_root.hud.hud.hp.bar._yscale = 100;
this.rh._x = -23.4;
this.rh._y = -29.05;
this.lh._x = 4.7;
this.lh._y = -34.3;
_root.duck = false;
_root.uduck = false;
} else if (this.sug == 1) {
this.rh.gotoAndStop(1);
this.lh.gotoAndStop(1);
} else if (this.sug == 2) {
this.rh.gotoAndStop(65);
this.lh.gotoAndStop(53);
} else {
var maxlen = Infinity;
var len = allteam.length;
var i = 0;
while (i < len) {
var tsi = allteam[i];
if (!tsi.dead) {
var tmplen = (((this._x - tsi._x) * (this._x - tsi._x)) + ((this._y - tsi._y) * (this._y - tsi._y)));
if ((tsi.team != ts.team) && (tmplen < maxlen)) {
ts.t = tsi;
maxlen = tmplen;
}
}
i++;
}
if (maxlen > 40000) {
this.rh.gotoAndStop(1);
this.lh.gotoAndStop(1);
this.bow = true;
} else {
this.bow = false;
this.rh.gotoAndStop(65);
this.lh.gotoAndStop(53);
}
}
delete this.onEnterFrame;
} else {
this.ti++;
}
}
};
delete this.onEnterFrame;
} else if (ts._xscale > 0) {
ts._xscale = ts._xscale - 10;
} else {
ts._xscale = ts._xscale + 10;
}
};
_root.arrd++;
}
};
hpthrow = function (mc, level) {
arrowhitsound(mc._x, mc._y);
if (mc.sgn) {
switch (level) {
case 0 :
mc.ts.hp = mc.ts.hp - ((((throws[mc.sgn - 1].damage / armor[mc.ts.iarmor - 2].bowa) / 3) * mc.par.pdam) / mc.ts.pdef);
break;
case 1 :
mc.ts.hp = mc.ts.hp - (((throws[mc.sgn - 1].damage / armor[mc.ts.iarmor - 2].bowa) * mc.par.pdam) / mc.ts.pdef);
break;
case 2 :
mc.ts.hp = mc.ts.hp - ((((throws[mc.sgn - 1].damage / armor[mc.ts.iarmor - 2].bowa) * 3) * mc.par.pdam) / mc.ts.pdef);
}
} else {
switch (level) {
case 0 :
mc.ts.hp = mc.ts.hp - ((((bows[mc.par.bown - 2].damage / armor[mc.ts.iarmor - 2].bowa) / 3) * mc.par.pdam) / mc.ts.pdef);
break;
case 1 :
mc.ts.hp = mc.ts.hp - (((bows[mc.par.bown - 2].damage / armor[mc.ts.iarmor - 2].bowa) * mc.par.pdam) / mc.ts.pdef);
break;
case 2 :
mc.ts.hp = mc.ts.hp - ((((bows[mc.par.bown - 2].damage / armor[mc.ts.iarmor - 2].bowa) * 3) * mc.par.pdam) / mc.ts.pdef);
}
}
hpchange(mc.par, mc.ts);
};
checkkills = function () {
if (!bef) {
if (kilgo) {
var i = (nteams - 1);
while (i >= 1) {
if (kills[i].score > kills[i - 1].score) {
kilgo = false;
teams[kills[i].team].place--;
teams[kills[i - 1].team].place++;
kills[i - 1].down();
kills[i].up();
var tmp = kills[i];
kills[i] = kills[i - 1];
kills[i - 1] = tmp;
i = 0;
}
i--;
}
}
if (((playmode == 1) && (kills[0].score >= maxscore)) && (!bef)) {
savefile.data.playtime = savefile.data.playtime + battletime;
t = 0;
pausegame();
delete onMouseDown;
if (((!_root.kills[0].team) && (levelsstate == 20)) && (levelsstate == stagenum)) {
songfade();
_root.money = _root.money + _root.moneyif;
levelsstate++;
onEnterFrame = function () {
_alpha = (_alpha - 2);
if (_alpha <= 0) {
_alpha = 100;
delete onEnterFrame;
wmovie = 21;
gotoAndStop (22);
}
};
} else {
onEnterFrame = onend;
}
bef = true;
}
}
};
deletearr = function (A) {
var len = A.length;
i = 0;
while (i < len) {
delete A[i];
i++;
}
delete A;
};
deletearr2 = function (A, b) {
var len = A.length;
i = 0;
while (i < len) {
b["A" + i].removeMovieClip();
delete A[i];
i++;
}
delete A;
};
onstar = function () {
if (t == 20) {
attachMovie("start", "startd", 10001);
}
if (t == 0) {
if (playmode == 4) {
h._x = _root.checks[1].x - ((_root.checks[1].lft - 0.5) * 150);
h._y = _root.checks[1].y;
h.ca = _root.checks[1].ca;
h.cb = _root.checks[1].cb;
if (!_root.checks[1].lft) {
h._xscale = h._xscale * -1;
}
} else {
h._x = _root.checks[0].x;
h._y = _root.checks[0].y;
h.ca = _root.checks[0].ca;
h.cb = _root.checks[0].cb;
if (_root.checks[0].lft) {
h._xscale = h._xscale * -1;
}
}
h.star = _root.attachMovie("star", "s" + _root.stard, _root.stard, {clr:_root.teams[0].clr, _x:h._x, _y:h._y});
_root.stard++;
h["p" + h._currentframe].body.gotoAndStop(1);
h["p" + h._currentframe].legu1.gotoAndStop(1);
h["p" + h._currentframe].legu2.gotoAndStop(1);
h["p" + h._currentframe].legd1.gotoAndStop(1);
h["p" + h._currentframe].legd2.gotoAndStop(1);
h["p" + h._currentframe].head.hair.gotoAndStop(1);
h.rh.hndd1.gotoAndStop(1);
h.lh.hndd2.gotoAndStop(1);
h.rh.shldr.gotoAndStop(1);
h.lh.shldr.gotoAndStop(1);
h.lh.shield.gotoAndStop(1);
h.lh.bow.gotoAndStop(1);
h.rh.weapon.gotoAndStop(1);
makechars();
hud._alpha = 0;
_yscale = (48000 / (c2._y - c1._y));
_xscale = (48000 / (c2._y - c1._y));
sca = _xscale;
sx = ((-c1._x) * _xscale) / 100;
ex = 640 - ((c2._x * _xscale) / 100);
te = 50;
te2 = 70;
te3 = 90;
tc = sx;
ta = (((2 * (tc - ex)) / te) / te) / te;
tb = ((-3 * ta) * te) / 2;
_y = (((-c1._y) * _yscale) / 100);
ey = ((-c1._y) * _yscale) / 100;
if (c1._x < (h._x - 320)) {
if (c1._y < (h._y - 240)) {
if (c2._x > (h._x + 320)) {
if (c2._y > (h._y + 240)) {
hx = (-h._x) + 320;
hy = (-h._y) + 240;
} else {
hx = (-h._x) + 320;
hy = (-c2._y) + 480;
}
} else if (c2._y > (h._y + 240)) {
hx = (-c2._x) + 640;
hy = (-h._y) + 240;
} else {
hx = (-c2._x) + 640;
hy = (-c2._y) + 480;
}
} else if (c2._x > (h._x + 320)) {
hx = (-h._x) + 320;
hy = -c1._y;
} else {
hx = (-c2._x) + 640;
hy = -c1._y;
}
} else if (c1._y < (h._y - 240)) {
if (c2._y > (h._y + 240)) {
hx = -c1._x;
hy = (-h._y) + 240;
} else {
hx = -c1._x;
hy = -c2._y;
}
} else {
hx = -c1._x;
hy = -c1._y;
}
}
if (t <= 10) {
_alpha = (10 * t);
}
if (t <= te) {
_x = (((((ta * t) * t) * t) + ((tb * t) * t)) + tc);
} else if (t <= te2) {
_x = (ex + (((te - t) * (hx - ex)) / (te - te2)));
_y = (ey + (((te - t) * (hy - ey)) / (te - te2)));
_yscale = (sca + (((te - t) * (100 - sca)) / (te - te2)));
_xscale = (sca + (((te - t) * (100 - sca)) / (te - te2)));
} else if (t <= te3) {
hud._x = -_x;
hud._y = -_y;
hud._alpha = ((t - te2) * 100) / (te3 - te2);
} else {
battletime = 0;
_yscale = 100;
_xscale = 100;
bef = false;
onEnterFrame = ontar;
onMouseDown = onmadi;
}
if (t >= 20) {
startd._x = (100 * (320 - _x)) / _xscale;
startd._y = (100 * (240 - _y)) / _xscale;
}
t++;
};
startall = function () {
Mouse.show();
swordsok = true;
_quality = gamequality;
if (gamequality == "LOW") {
hud.options.cac.qlow._xscale = (hud.options.cac.qlow._yscale = 140);
} else if (gamequality == "MEDIUM") {
hud.options.cac.qmedium._xscale = (hud.options.cac.qmedium._yscale = 140);
} else if (gamequality == "HIGH") {
hud.options.cac.qhigh._xscale = (hud.options.cac.qhigh._yscale = 140);
}
if (missfx) {
hud.options.cac.ton._xscale = (hud.options.cac.ton._yscale = 140);
} else {
hud.options.cac.toff._xscale = (hud.options.cac.toff._yscale = 140);
}
if (arrowsfx) {
hud.options.cac.aon._xscale = (hud.options.cac.aon._yscale = 140);
} else {
hud.options.cac.aoff._xscale = (hud.options.cac.aoff._yscale = 140);
}
head1 = 2;
weaponsdo();
if (playmode == 1) {
stages(stagenum);
} else if (playmode == 2) {
maxscore = 1000;
w1 = (w2 = (w3 = (w4 = (w5 = (w6 = 3)))));
h.lh.gotoAndStop(1);
h.rh.gotoAndStop(1);
h.bow = true;
hud.stash.slide3.cp = 1;
h.both = false;
h.iarmor = 32;
h.iarmor2 = 34;
h.bown = 4;
h.wep = NaN;
h.ihead = head1;
h.team = 1;
hud.stash._visible = false;
teamsum = 0;
pln = 2;
plr = 5;
clr1 = 16711680 /* 0xFF0000 */;
clr2 = 255;
pl = new Array(5);
pl[0] = new Object();
pl[1] = new Object();
pl[2] = new Object();
pl[3] = new Object();
pl[4] = new Object();
pl[0].team = 2;
pl[0].sug = 2;
pl[0].wep = 16;
pl[0].trw = 1;
pl[0].trwn = 0;
pl[0].iarmor = 20;
pl[0].ihead = 3;
pl[1].team = 2;
pl[1].sug = 2;
pl[1].wep = 16;
pl[1].trw = 1;
pl[1].trwn = 0;
pl[1].iarmor = 20;
pl[1].ihead = 4;
pl[2].team = 2;
pl[2].sug = 2;
pl[2].wep = 16;
pl[2].trw = 1;
pl[2].trwn = 0;
pl[2].iarmor = 20;
pl[2].ihead = 5;
pl[3].team = 2;
pl[3].sug = 2;
pl[3].wep = 16;
pl[3].trw = 1;
pl[3].trwn = 0;
pl[3].iarmor = 20;
pl[3].ihead = 6;
pl[4].team = 2;
pl[4].sug = 2;
pl[4].wep = 16;
pl[4].trw = 1;
pl[4].trwn = 0;
pl[4].iarmor = 20;
pl[4].ihead = 7;
armor[30].chance = 0.5;
armor[30].bowa = 1000;
armor[30].wepa = 10;
armor[30].walk = 4;
bows[2].damage = 500;
bows[2].chance = 1;
armor[18].chance = 0.5;
armor[18].bowa = 2.8;
armor[18].wepa = 1000;
armor[18].walk = 1;
weapons[14].damage = 100;
weapons[14].chance = 1;
lvl = 1;
} else if (playmode == 3) {
maxscore = 1000;
w1 = (w2 = (w3 = (w4 = (w5 = (w6 = 3)))));
h.lh.gotoAndStop(53);
h.rh.gotoAndStop(65);
hud.stash.slide3.cp = 0;
h.bow = false;
h.both = false;
h.iarmor = 15;
h.iarmor2 = 34;
h.wep = 18;
h.bown = NaN;
h.ihead = head1;
h.team = 1;
hud.stash._visible = false;
teamsum = 0;
pln = 2;
plr = 5;
clr1 = 16711680 /* 0xFF0000 */;
clr2 = 16776960 /* 0xFFFF00 */;
pl = new Array(5);
pl[0] = new Object();
pl[1] = new Object();
pl[2] = new Object();
pl[3] = new Object();
pl[4] = new Object();
pl[0].team = 2;
pl[0].sug = 1;
pl[0].bown = 3;
pl[0].trw = 1;
pl[0].trwn = 0;
pl[0].iarmor = 11;
pl[0].ihead = 8;
pl[1].team = 2;
pl[1].sug = 1;
pl[1].bown = 3;
pl[1].trw = 1;
pl[1].trwn = 0;
pl[1].iarmor = 11;
pl[1].ihead = 10;
pl[2].team = 2;
pl[2].sug = 1;
pl[2].bown = 3;
pl[2].trw = 1;
pl[2].trwn = 0;
pl[2].iarmor = 11;
pl[2].ihead = 11;
pl[3].team = 2;
pl[3].sug = 1;
pl[3].bown = 3;
pl[3].trw = 1;
pl[3].trwn = 0;
pl[3].iarmor = 11;
pl[3].ihead = 9;
pl[4].team = 2;
pl[4].sug = 1;
pl[4].bown = 3;
pl[4].trw = 1;
pl[4].trwn = 0;
pl[4].iarmor = 11;
pl[4].ihead = 15;
armor[13].chance = 1;
armor[13].bowa = 10;
armor[13].wepa = 100000 /* 0x0186A0 */;
armor[13].walk = 3;
weapons[16].damage = 500;
weapons[16].chance = 1;
armor[9].bowa = 100000 /* 0x0186A0 */;
armor[9].wepa = 2.8;
armor[9].walk = 1;
bows[1].damage = 100;
bows[1].chance = 1;
lvl = 1;
} else if (playmode == 4) {
maxscore = 1000;
w1 = (w2 = (w3 = (w4 = (w5 = (w6 = 3)))));
h.lh.gotoAndStop(53);
h.rh.gotoAndStop(65);
hud.stash.slide3.cp = 0;
h.bow = false;
h.both = true;
h.iarmor = 15;
h.iarmor2 = 34;
h.wep = 18;
h.bown = 4;
h.ihead = head1;
h.team = 1;
hud.stash._visible = false;
teamsum = 1;
pln = 2;
plr = 5;
clr1 = 16711680 /* 0xFF0000 */;
clr2 = 11189145 /* 0xAABB99 */;
pl = new Array(5);
pl[0] = new Object();
pl[1] = new Object();
pl[2] = new Object();
pl[3] = new Object();
pl[4] = new Object();
pl[0].team = 1;
pl[0].sug = 2;
pl[0].wep = 16;
pl[0].trw = 1;
pl[0].trwn = 0;
pl[0].iarmor = 31;
pl[0].ihead = 12;
pl[1].team = 2;
pl[1].sug = 1;
pl[1].bown = 3;
pl[1].trw = 1;
pl[1].trwn = 0;
pl[1].iarmor = 29;
pl[1].ihead = 17;
pl[2].team = 2;
pl[2].sug = 1;
pl[2].bown = 3;
pl[2].trw = 1;
pl[2].trwn = 0;
pl[2].iarmor = 29;
pl[2].ihead = 18;
pl[3].team = 2;
pl[3].sug = 1;
pl[3].bown = 3;
pl[3].trw = 1;
pl[3].trwn = 0;
pl[3].iarmor = 29;
pl[3].ihead = 19;
pl[4].team = 2;
pl[4].sug = 1;
pl[4].bown = 3;
pl[4].trw = 1;
pl[4].trwn = 0;
pl[4].iarmor = 29;
pl[4].ihead = 20;
armor[13].chance = 1;
armor[13].bowa = 14;
armor[13].wepa = 1000;
armor[13].walk = 4;
weapons[16].damage = 500;
weapons[16].chance = 1;
bows[2].damage = 500;
bows[2].chance = 1;
armor[29].bowa = 50;
armor[29].wepa = 2.8;
armor[29].walk = 1;
armor[29].chance = 1;
weapons[16].damage = 5000;
weapons[16].chance = 1;
armor[27].wepa = 2.8;
armor[27].bowa = 2.8;
armor[27].walk = 1;
bows[1].damage = 500;
bows[1].chance = 1;
lvl = 1;
}
if (pot1 == 0) {
hud.stash.p1._visible = false;
hud.stash.p2._visible = false;
} else if (pot1 == 1) {
hud.stash.p1._visible = false;
hud.stash.p2._y = 30.45;
}
if (pot2 == 0) {
hud.stash.p3._visible = false;
hud.stash.p4._visible = false;
} else if (pot2 == 1) {
hud.stash.p3._visible = false;
hud.stash.p4._y = 30.45;
}
if (pot3 == 0) {
hud.stash.p5._visible = false;
hud.stash.p6._visible = false;
} else if (pot3 == 1) {
hud.stash.p5._visible = false;
hud.stash.p6._y = 30.45;
}
if (pot4 == 0) {
hud.stash.p7._visible = false;
hud.stash.p8._visible = false;
} else if (pot4 == 1) {
hud.stash.p7._visible = false;
hud.stash.p8._y = 30.45;
}
bef = true;
kilgo = true;
nteams = pln;
teams = new Array(nteams);
kills = new Array(nteams);
i = 0;
while (i < nteams) {
teams[i] = new Object();
teams[i].clr = _root["clr" + (i + 1)];
i++;
}
if (playmode == 1) {
hud.stash.attachMovie("maxscore", "maxscoremc", 100, {_x:260, _y:95});
hud.stash.maxscoremc.maxscore.text = "MAX SCORE " + maxscore;
i = 0;
while (i < nteams) {
teams[i].score = 0;
teams[i].unscore = 0;
hud.stash.attachMovie("kills", "kills" + i, i, {clr:teams[i].clr, _x:260, _y:(95 + (i * 25)) + 25, score:0, team:i});
teams[i].place = i;
kills[i] = hud.stash["kills" + i];
i++;
}
} else {
kills[0] = hud.attachMovie("kills", "kills0", 0, {clr:teams[0].clr, _x:610, _y:100, score:0, team:0});
}
kills[0]._xscale = (kills[0]._yscale = 150);
allteam = new Array();
team1 = new Array();
team2 = new Array();
team3 = new Array();
team4 = new Array();
team5 = new Array();
team6 = new Array();
h.ca = 2;
h.cb = 3;
h.trw = w1;
hud.stash.w1.gotoAndStop(w1);
hud.stash.w2.gotoAndStop(w2);
hud.stash.w3.gotoAndStop(w3);
hud.stash.w4.gotoAndStop(w4);
hud.stash.w5.gotoAndStop(w5);
hud.stash.w6.gotoAndStop(w6);
freeze = true;
ar = 1;
h.pchance = 1;
h.pdam = 1;
h.pdef = 1;
h.bvx = 0;
duck = false;
power = 55;
stard = 300;
arrd = 1000;
bldi = 2000;
hdeaths = (hkills = 0);
h.hp = 100;
h.arrbody = new Array();
h.arrhead = new Array();
h.arrlegu1 = new Array();
h.arrlegu2 = new Array();
h.arrlegd1 = new Array();
h.arrlegd2 = new Array();
h.arrhndu1 = new Array();
h.arrhndu2 = new Array();
h.arrhndd1 = new Array();
h.arrhndd2 = new Array();
h.down = true;
h.svy = 8.5;
h.speed = 6;
hud.swapDepths(10000);
h.swapDepths(1);
h.vx = (h.vy = 0);
h.jump = false;
h.djump = false;
team1.push(h);
h.team = 1;
allteam.push(h);
uduck = false;
h.fwall = null;
g = 0.5;
wflag = true;
p = new Object();
p2 = new Object();
p3 = new Object();
_root.createEmptyMovieClip("tgs", 400);
tgs.cacheAsBitmap = true;
tgs.i = 0;
tgs.j = 0;
tgs.onEnterFrame = function () {
if ((this.j + 15) < this.i) {
this["a" + this.j].onEnterFrame = function () {
this._alpha = this._alpha - 2;
if (this._alpha <= 0) {
this.removeMovieClip();
}
};
this["a" + (this.j + 1)].onEnterFrame = function () {
this._alpha = this._alpha - 2;
if (this._alpha <= 0) {
this.removeMovieClip();
}
};
this.j = this.j + 2;
}
};
Key.addListener(keyListener);
Mouse.addListener(mouseListener);
t = 0;
onEnterFrame = onstar;
lfunc();
if (isNaN(h.wep)) {
hud.hud.cd.text = "";
} else {
hud.hud.cd.text = ((weapons[h.wep - 2].damage + ",") + (100 * weapons[h.wep - 2].chance)) + "%";
}
if (isNaN(h.bown)) {
hud.hud.bd.text = "";
} else {
hud.hud.bd.text = ((bows[h.bown - 2].damage + ",") + (100 * bows[h.bown - 2].chance)) + "%";
}
if (w1 == 3) {
hud.hud.trwn.text = (hud.hud.trwd.text = "");
} else {
hud.hud.trwn.text = w1n;
hud.hud.trwd.text = ((throws[h.trw - 1].damage + ",") + (100 * throws[h.trw - 1].chance)) + "%";
}
hud.stats.t1.text = _root.h.hp;
hud.stats.t2.text = 10 * _root.armor[_root.h.iarmor - 2].wepa;
hud.stats.t3.text = 10 * _root.armor[_root.h.iarmor - 2].bowa;
hud.stats.t4.text = walktotalk(_root.armor[_root.h.iarmor - 2].walk);
h.speed = walktospeed(_root.armor[_root.h.iarmor - 2].walk);
if (isNaN(h.wep)) {
hud.stats.t5.text = "";
} else {
hud.stats.t5.text = ((_root.weapons[_root.h.wep - 2].damage + ",") + (100 * _root.weapons[_root.h.wep - 2].chance)) + "%";
}
if (isNaN(h.bown)) {
hud.stats.t6.text = "";
} else {
hud.stats.t6.text = ((_root.bows[_root.h.bown - 2].damage + ",") + (100 * _root.bows[_root.h.bown - 2].chance)) + "%";
}
if (w1 == 3) {
hud.stats.t7.text = "";
} else {
hud.stats.t7.text = ((_root.throws[_root.h.trw - 1].damage + ",") + (100 * _root.throws[_root.h.trw - 1].chance)) + "%";
}
hud.stats.t8.text = (100 * _root.armor[_root.h.iarmor - 2].chance) + "%";
};
makechars = function () {
i = 0;
while (i < plr) {
_root.attachMovie("character", "char" + (i + 2), i + 2);
var ts = _root["char" + (i + 2)];
ts._x = _root.checks[i + 1].x;
ts._y = _root.checks[i + 1].y;
ts.ca = _root.checks[i + 1].ca;
ts.cb = _root.checks[i + 1].cb;
if (!_root.checks[i + 1].lft) {
ts._xscale = ts._xscale * -1;
}
ts._xscale = (ts._yscale = _root.allscale);
ts.team = pl[i].team;
_root["team" + ts.team].push(ts);
_root.allteam.push(ts);
ts.sug = pl[i].sug;
ts.ihead = pl[i].ihead;
ts.down = true;
ts.vx = (ts.vy = 0);
ts.rad = 0;
ts.arrbody = new Array();
ts.arrhead = new Array();
ts.arrlegu1 = new Array();
ts.arrlegu2 = new Array();
ts.arrlegd1 = new Array();
ts.arrlegd2 = new Array();
ts.arrhndu1 = new Array();
ts.arrhndu2 = new Array();
ts.arrhndd1 = new Array();
ts.arrhndd2 = new Array();
ts.hp = 100;
ts.svy = 8.5;
ts.pchance = 1;
ts.pdam = 1;
ts.pdef = 1;
ts.runc = 0;
ts.bleft = random(2);
ts.t = null;
ts.star = _root.attachMovie("star", "s" + _root.stard, _root.stard, {clr:_root.teams[ts.team - 1].clr, _x:ts._x, _y:ts._y});
_root.stard++;
ts.iarmor = pl[i].iarmor;
ts.speed = (_root.walktospeed(_root.armor[ts.iarmor - 2].walk) + (Math.random() * 0.1)) - 0.05;
if (ts.sug == 1) {
ts.both = false;
ts.bow = true;
ts.bown = pl[i].bown;
ts.stya = -37 + random(60);
} else if (ts.sug == 2) {
ts.both = false;
ts.bow = false;
ts.wep = pl[i].wep;
ts.trw = pl[i].trw;
ts.trwn = pl[i].trwn;
ts.stya = -37 + random(25);
ts.rh.gotoAndStop(65);
ts.lh.gotoAndStop(53);
} else {
ts.both = true;
ts.bow = random(2);
ts.bown = pl[i].bown;
ts.wep = pl[i].wep;
ts.trw = pl[i].trw;
ts.trwn = pl[i].trwn;
if (!ts.bow) {
ts.rh.gotoAndStop(65);
ts.lh.gotoAndStop(53);
}
ts.stya = -37 + random(25);
}
ts.ca = 1;
ts.cb = 4;
i++;
}
};
onend = function () {
if (t == 0) {
songfade();
swordsok = false;
te = 10;
te2 = 60;
te3 = 80;
hud._alpha = 100;
hx = _x;
hy = _y;
sca = 48000 / (c2._y - c1._y);
ex = (((((-c1._x) * sca) / 100) + 640) - ((c2._x * sca) / 100)) / 2;
ey = ((-c1._y) * sca) / 100;
sx2 = ex;
ex2 = ((-c2._x) * sca) / 100;
tc = sx2;
ta = (((2 * (tc - ex2)) / (te3 - te2)) / (te3 - te2)) / (te3 - te2);
tb = ((-3 * ta) * (te3 - te2)) / 2;
_root.attachMovie("finalresults", "finalresults", 11);
finalresults._xscale = (finalresults._yscale = 10000 / sca);
finalresults._x = c2._x;
finalresults._y = c2._y;
} else if (t <= te) {
hud._alpha = 100 - ((t * 100) / te);
} else if (t <= te2) {
hud._alpha = 100;
hud._visible = false;
_x = (hx + (((t - te) * (ex - hx)) / (te2 - te)));
_y = (hy + (((t - te) * (ey - hy)) / (te2 - te)));
_yscale = (100 + (((t - te) * (sca - 100)) / (te2 - te)));
_xscale = (100 + (((t - te) * (sca - 100)) / (te2 - te)));
} else if (t <= te3) {
_x = (((((ta * (t - te2)) * (t - te2)) * (t - te2)) + ((tb * (t - te2)) * (t - te2))) + tc);
} else if (t == (te3 + 1)) {
songsound(1);
}
t++;
};
cleanall = function () {
delete maxc;
delete checks;
finalresults.removeMovieClip();
i = 0;
while (i < allteam.length) {
allteam[i].removeMovieClip();
i++;
}
hud.removeMovieClip();
tgs.removeMovieClip();
i = 1000;
while (i < 2000) {
tmp = _root.getInstanceAtDepth(i);
if (tmp != undefined) {
tmp.removeMovieClip();
}
i++;
}
i = 300;
while (i < 310) {
tmp = _root.getInstanceAtDepth(i);
if (tmp != undefined) {
tmp.removeMovieClip();
}
i++;
}
delete walls;
_y = 0;
_x = 0;
_yscale = 100;
_xscale = 100;
};
playlevel = function (num) {
flag = true;
i = 0;
while (i < (bodies(num) + 1)) {
if (!_root["aquid" + (i + 1)]) {
notaq.num = i + 1;
notaq.gotoAndPlay(2);
i = 4;
flag = false;
}
i++;
}
if (flag && (num <= levelsstate)) {
if ((num != levelsstate) || (((num != 1) && (num != 10)) && (num != 20))) {
_root.songfade();
}
_root.msound("clickd");
stagenum = num;
mouse._visible = false;
onEnterFrame = function () {
_alpha = (_alpha - 10);
if (_alpha <= 0) {
delete onEnterFrame;
_alpha = 0;
Mouse.show();
if ((num == levelsstate) && (((num == 1) || (num == 10)) || (num == 20))) {
wmovie = num;
gotoAndStop (22);
} else {
gotoAndStop(maps(num));
}
}
};
} else {
_root.msound("error");
}
};
saveitems = function () {
delete itemsa;
itemsa = new Array();
itemsnum = 0;
i = 1;
while (i <= _root.R) {
j = 1;
while (j <= _root.C) {
if (inv[(("b" + i) + "b") + j].taken) {
tmp = inv[(("b" + i) + "b") + j].it;
flag = true;
l = 0;
while (l < itemsnum) {
if ((itemsa[l].ix == tmp.ix) && (itemsa[l].iy == tmp.iy)) {
flag = false;
l = itemsnum;
}
l++;
}
if (flag) {
itemsa[itemsnum] = new Object();
itemsa[itemsnum].ix = tmp.ix;
itemsa[itemsnum].iy = tmp.iy;
itemsa[itemsnum].fr = tmp._currentframe;
if (tmp.par != null) {
if (tmp.par == pal1.pal.pal) {
if (itemsa[itemsnum].fr <= 32) {
itemsa[itemsnum].arm2 = pal1.pal.pal.itarm != tmp;
}
itemsa[itemsnum].p = 1;
} else if (tmp.par == pal2.pal.pal) {
itemsa[itemsnum].p = 2;
} else if (tmp.par == pal3.pal.pal) {
itemsa[itemsnum].p = 3;
}
} else {
it.p = 0;
}
if (itemsa[itemsnum].fr >= 56) {
itemsa[itemsnum].num = tmp.num.text;
}
itemsnum++;
}
}
j++;
}
i++;
}
savefile.data.itemsa = itemsa;
savefile.data.itemsnum = itemsnum;
savefile.data.money = money;
};
stages = function (num) {
clr1 = 16711680 /* 0xFF0000 */;
clr2 = 255;
clr3 = 65280;
clr4 = 65535;
clr5 = 16711935 /* 0xFF00FF */;
clr6 = 16776960 /* 0xFFFF00 */;
if (palpa1.iarmor == undefined) {
h.iarmor = palpa1.iarmor2;
h.iarmor2 = 34;
} else {
h.iarmor = palpa1.iarmor;
if (palpa1.iarmor2 == undefined) {
h.iarmor2 = 34;
} else {
h.iarmor2 = palpa1.iarmor2;
}
}
h.wep = palpa1.wep;
h.bown = palpa1.bown;
h.ihead = head1;
h.team = 1;
if (isNaN(h.bown)) {
hud.stash.bow.gotoAndStop(8);
hud.stash.slide3.cp = 0;
hud.stash.slide3._x = -229;
hud.stash.slide3._y = -148.75;
h.lh.gotoAndStop(53);
h.rh.gotoAndStop(65);
h.bow = false;
} else {
hud.stash.slide3.cp = 1;
h.bow = true;
}
if (isNaN(h.wep)) {
hud.stash.weapon.gotoAndStop(19);
}
if (isNaN(h.bown) || (isNaN(h.wep))) {
h.both = false;
} else {
h.both = true;
}
if (num == 1) {
teamsum = 0;
pln = 2;
plr = 1;
} else if (num == 2) {
teamsum = 0;
pln = 3;
plr = 2;
} else if (num == 3) {
teamsum = 0;
pln = 4;
plr = 3;
} else if (num == 4) {
teamsum = 0;
pln = 3;
plr = 4;
} else if (num == 5) {
teamsum = 1;
pln = 2;
plr = 3;
} else if (num == 6) {
teamsum = 1;
pln = 2;
plr = 3;
} else if (num == 7) {
teamsum = 1;
pln = 2;
plr = 4;
} else if (num == 8) {
teamsum = 1;
pln = 3;
plr = 5;
} else if (num == 9) {
teamsum = 0;
pln = 6;
plr = 5;
} else if (num == 10) {
teamsum = 0;
pln = 2;
plr = 1;
} else if (num == 11) {
teamsum = 2;
pln = 2;
plr = 5;
} else if (num == 12) {
teamsum = 2;
pln = 2;
plr = 5;
} else if (num == 13) {
teamsum = 2;
pln = 2;
plr = 5;
} else if (num == 14) {
teamsum = 1;
pln = 3;
plr = 5;
} else if (num == 15) {
teamsum = 1;
pln = 2;
plr = 5;
} else if (num == 16) {
teamsum = 0;
pln = 2;
plr = 5;
} else if (num == 17) {
teamsum = 2;
pln = 2;
plr = 5;
} else if (num == 18) {
teamsum = 2;
pln = 2;
plr = 5;
} else if (num == 19) {
teamsum = 2;
pln = 2;
plr = 5;
} else if (num == 20) {
teamsum = 0;
pln = 2;
plr = 1;
}
pl = new Array(plr);
i = 0;
while (i < plr) {
pl[i] = new Object();
i++;
}
i = plr - teamsum;
while (i < plr) {
tmp = (i - (plr - teamsum)) + 2;
pl[i].team = 1;
pl[i].ihead = _root["head" + tmp];
pl[i].iarmor = _root["palpa" + tmp].iarmor;
pl[i].wep = _root["palpa" + tmp].wep;
pl[i].bown = _root["palpa" + tmp].bown;
pl[i].trwn = 0;
if ((!isNaN(pl[i].wep)) && (!isNaN(pl[i].bown))) {
pl[i].sug = 3;
} else if (!isNaN(pl[i].wep)) {
pl[i].sug = 2;
} else {
pl[i].sug = 1;
}
i++;
}
moneyifs(num);
if (num == 1) {
pl[0].team = 2;
pl[0].sug = 2;
pl[0].wep = 2;
pl[0].trwn = 0;
pl[0].iarmor = 2;
pl[0].ihead = 14;
pot1 = 0;
pot2 = 0;
pot3 = 0;
pot4 = 1;
maxscore = 5;
lvl = 1;
} else if (num == 2) {
pl[0].team = 2;
pl[0].sug = 2;
pl[0].wep = 2;
pl[0].trw = 1;
pl[0].trwn = Infinity;
pl[0].iarmor = 3;
pl[0].ihead = 4;
pl[1].team = 3;
pl[1].sug = 2;
pl[1].wep = 3;
pl[1].trw = 1;
pl[1].trwn = Infinity;
pl[1].iarmor = 2;
pl[1].ihead = 5;
pot1 = 0;
pot2 = 0;
pot3 = 0;
pot4 = 1;
maxscore = 10;
lvl = 1;
} else if (num == 3) {
pl[0].team = 2;
pl[0].sug = 2;
pl[0].wep = 4;
pl[0].trw = 1;
pl[0].trwn = Infinity;
pl[0].iarmor = 5;
pl[0].ihead = 6;
pl[1].team = 3;
pl[1].sug = 2;
pl[1].wep = 5;
pl[1].trw = 1;
pl[1].trwn = Infinity;
pl[1].iarmor = 4;
pl[1].ihead = 7;
pl[2].team = 4;
pl[2].sug = 1;
pl[2].bown = 2;
pl[2].trwn = 0;
pl[2].iarmor = 4;
pl[2].ihead = 8;
pot1 = 0;
pot2 = 0;
pot3 = 1;
pot4 = 2;
maxscore = 15;
lvl = 1;
} else if (num == 4) {
pl[0].team = 2;
pl[0].sug = 2;
pl[0].wep = 4;
pl[0].trw = 1;
pl[0].trwn = 0;
pl[0].iarmor = 6;
pl[0].ihead = 10;
pl[1].team = 2;
pl[1].sug = 2;
pl[1].wep = 4;
pl[1].trw = 1;
pl[1].trwn = 0;
pl[1].iarmor = 6;
pl[1].ihead = 11;
pl[2].team = 3;
pl[2].sug = 1;
pl[2].bown = 2;
pl[2].trwn = 0;
pl[2].iarmor = 5;
pl[2].ihead = 9;
pl[3].team = 3;
pl[3].sug = 1;
pl[3].bown = 2;
pl[3].trwn = 0;
pl[3].iarmor = 5;
pl[3].ihead = 15;
pot1 = 0;
pot2 = 1;
pot3 = 1;
pot4 = 2;
maxscore = 15;
lvl = 1;
} else if (num == 5) {
pl[0].team = 2;
pl[0].sug = 2;
pl[0].wep = 4;
pl[0].trw = 1;
pl[0].trwn = 0;
pl[0].iarmor = 7;
pl[0].ihead = 16;
pl[1].team = 2;
pl[1].sug = 2;
pl[1].wep = 4;
pl[1].trw = 1;
pl[1].trwn = 0;
pl[1].iarmor = 7;
pl[1].ihead = 17;
pot1 = 1;
pot2 = 1;
pot3 = 1;
pot4 = 0;
maxscore = 15;
lvl = 2;
} else if (num == 6) {
pl[0].team = 2;
pl[0].sug = 3;
pl[0].bown = 2;
pl[0].wep = 5;
pl[0].trw = 1;
pl[0].trwn = 0;
pl[0].iarmor = 7;
pl[0].ihead = 18;
pl[1].team = 2;
pl[1].sug = 3;
pl[1].bown = 2;
pl[1].wep = 5;
pl[1].trw = 1;
pl[1].trwn = 0;
pl[1].iarmor = 7;
pl[1].ihead = 19;
pot1 = 1;
pot2 = 1;
pot3 = 2;
pot4 = 1;
maxscore = 15;
lvl = 2;
} else if (num == 7) {
pl[0].team = 2;
pl[0].sug = 2;
pl[0].wep = 5;
pl[0].trw = 2;
pl[0].trwn = Infinity;
pl[0].iarmor = 8;
pl[0].ihead = 20;
pl[1].team = 2;
pl[1].sug = 2;
pl[1].wep = 5;
pl[1].trw = 2;
pl[1].trwn = Infinity;
pl[1].iarmor = 8;
pl[1].ihead = 21;
pl[2].team = 2;
pl[2].sug = 2;
pl[2].wep = 5;
pl[2].trw = 2;
pl[2].trwn = Infinity;
pl[2].iarmor = 8;
pl[2].ihead = 22;
pot1 = 2;
pot2 = 0;
pot3 = 0;
pot4 = 2;
maxscore = 15;
lvl = 2;
} else if (num == 8) {
pl[0].team = 2;
pl[0].sug = 2;
pl[0].wep = 6;
pl[0].trw = 2;
pl[0].trwn = Infinity;
pl[0].iarmor = 9;
pl[0].ihead = 23;
pl[1].team = 2;
pl[1].sug = 2;
pl[1].wep = 6;
pl[1].trw = 2;
pl[1].trwn = Infinity;
pl[1].iarmor = 9;
pl[1].ihead = 3;
pl[2].team = 3;
pl[2].sug = 1;
pl[2].bown = 3;
pl[2].trwn = 0;
pl[2].iarmor = 8;
pl[2].ihead = 4;
pl[3].team = 3;
pl[3].sug = 1;
pl[3].bown = 3;
pl[3].trwn = 0;
pl[3].iarmor = 8;
pl[3].ihead = 5;
pot1 = 2;
pot2 = 1;
pot3 = 0;
pot4 = 1;
maxscore = 20;
lvl = 2;
} else if (num == 9) {
pl[0].team = 2;
pl[0].sug = 2;
pl[0].wep = 6;
pl[0].trw = 2;
pl[0].trwn = 0;
pl[0].iarmor = 14;
pl[0].ihead = 6;
pl[1].team = 3;
pl[1].sug = 2;
pl[1].wep = 6;
pl[1].trw = 2;
pl[1].trwn = 0;
pl[1].iarmor = 15;
pl[1].ihead = 7;
pl[2].team = 4;
pl[2].sug = 2;
pl[2].wep = 7;
pl[2].trw = 2;
pl[2].trwn = 0;
pl[2].iarmor = 13;
pl[2].ihead = 8;
pl[3].team = 5;
pl[3].sug = 1;
pl[3].bown = 3;
pl[3].trwn = 0;
pl[3].iarmor = 11;
pl[3].ihead = 10;
pl[4].team = 6;
pl[4].sug = 1;
pl[4].bown = 3;
pl[4].trwn = 0;
pl[4].iarmor = 12;
pl[4].ihead = 11;
pot1 = 2;
pot2 = 1;
pot3 = 2;
pot4 = 1;
maxscore = 20;
lvl = 2;
} else if (num == 10) {
pl[0].team = 2;
pl[0].sug = 3;
pl[0].bown = 4;
pl[0].wep = 11;
pl[0].trw = 5;
pl[0].trwn = Infinity;
pl[0].iarmor = 15;
pl[0].ihead = 12;
pot1 = 0;
pot2 = 0;
pot3 = 0;
pot4 = 0;
maxscore = 10;
lvl = 3;
} else if (num == 11) {
pl[0].team = 2;
pl[0].sug = 2;
pl[0].wep = 10;
pl[0].trw = 5;
pl[0].trwn = Infinity;
pl[0].iarmor = 16;
pl[0].ihead = 9;
pl[1].team = 2;
pl[1].sug = 2;
pl[1].wep = 10;
pl[1].trw = 5;
pl[1].trwn = Infinity;
pl[1].iarmor = 16;
pl[1].ihead = 15;
pl[2].team = 2;
pl[2].sug = 1;
pl[2].bown = 5;
pl[2].trwn = 0;
pl[2].iarmor = 15;
pl[2].ihead = 16;
pot1 = 1;
pot2 = 2;
pot3 = 1;
pot4 = 0;
maxscore = 20;
lvl = 3;
} else if (num == 12) {
pl[0].team = 2;
pl[0].sug = 2;
pl[0].wep = 11;
pl[0].trw = 5;
pl[0].trwn = Infinity;
pl[0].iarmor = 18;
pl[0].ihead = 17;
pl[1].team = 2;
pl[1].sug = 2;
pl[1].wep = 11;
pl[1].trw = 5;
pl[1].trwn = Infinity;
pl[1].iarmor = 18;
pl[1].ihead = 18;
pl[2].team = 2;
pl[2].sug = 1;
pl[2].bown = 5;
pl[2].trwn = 0;
pl[2].iarmor = 16;
pl[2].ihead = 19;
pot1 = 0;
pot2 = 1;
pot3 = 1;
pot4 = 1;
maxscore = 20;
lvl = 3;
} else if (num == 13) {
pl[0].team = 2;
pl[0].sug = 2;
pl[0].wep = 12;
pl[0].trw = 5;
pl[0].trwn = Infinity;
pl[0].iarmor = 20;
pl[0].ihead = 20;
pl[1].team = 2;
pl[1].sug = 1;
pl[1].bown = 5;
pl[1].trwn = 0;
pl[1].iarmor = 19;
pl[1].ihead = 18;
pl[2].team = 2;
pl[2].sug = 1;
pl[2].bown = 5;
pl[2].trwn = 0;
pl[2].iarmor = 19;
pl[2].ihead = 15;
pot1 = 1;
pot2 = 0;
pot3 = 1;
pot4 = 1;
maxscore = 20;
lvl = 3;
} else if (num == 14) {
pl[0].team = 2;
pl[0].sug = 2;
pl[0].wep = 12;
pl[0].trw = 5;
pl[0].trwn = Infinity;
pl[0].iarmor = 22;
pl[0].ihead = 17;
pl[1].team = 2;
pl[1].sug = 2;
pl[1].wep = 12;
pl[1].trw = 5;
pl[1].trwn = Infinity;
pl[1].iarmor = 22;
pl[1].ihead = 19;
pl[2].team = 3;
pl[2].sug = 1;
pl[2].bown = 5;
pl[2].trwn = 0;
pl[2].iarmor = 21;
pl[2].ihead = 20;
pl[3].team = 3;
pl[3].sug = 1;
pl[3].bown = 5;
pl[3].trwn = 0;
pl[3].iarmor = 21;
pl[3].ihead = 21;
pot1 = 0;
pot2 = 0;
pot3 = 1;
pot4 = 2;
maxscore = 20;
lvl = 3;
} else if (num == 15) {
pl[0].team = 2;
pl[0].sug = 2;
pl[0].wep = 13;
pl[0].trw = 5;
pl[0].trwn = Infinity;
pl[0].iarmor = 24;
pl[0].ihead = 22;
pl[1].team = 2;
pl[1].sug = 2;
pl[1].wep = 13;
pl[1].trw = 5;
pl[1].trwn = Infinity;
pl[1].iarmor = 24;
pl[1].ihead = 23;
pl[2].team = 2;
pl[2].sug = 1;
pl[2].bown = 5;
pl[2].trwn = 0;
pl[2].iarmor = 24;
pl[2].ihead = 18;
pl[3].team = 2;
pl[3].sug = 1;
pl[3].bown = 5;
pl[3].trwn = 0;
pl[3].iarmor = 24;
pl[3].ihead = 3;
pot1 = 1;
pot2 = 1;
pot3 = 2;
pot4 = 0;
maxscore = 20;
lvl = 3;
} else if (num == 16) {
pl[0].team = 2;
pl[0].sug = 1;
pl[0].bown = 5;
pl[0].trwn = 0;
pl[0].iarmor = 26;
pl[0].ihead = 4;
pl[1].team = 2;
pl[1].sug = 1;
pl[1].bown = 5;
pl[1].trwn = 0;
pl[1].iarmor = 26;
pl[1].ihead = 5;
pl[2].team = 2;
pl[2].sug = 1;
pl[2].bown = 5;
pl[2].trwn = 0;
pl[2].iarmor = 26;
pl[2].ihead = 6;
pl[3].team = 2;
pl[3].sug = 1;
pl[3].bown = 5;
pl[3].trwn = 0;
pl[3].iarmor = 26;
pl[3].ihead = 7;
pl[4].team = 2;
pl[4].sug = 1;
pl[4].bown = 5;
pl[4].trwn = 0;
pl[4].iarmor = 26;
pl[4].ihead = 8;
pot1 = 1;
pot2 = 1;
pot3 = 1;
pot4 = 1;
maxscore = 20;
lvl = 3;
} else if (num == 17) {
pl[0].team = 2;
pl[0].sug = 2;
pl[0].wep = 14;
pl[0].trw = 5;
pl[0].trwn = Infinity;
pl[0].iarmor = 27;
pl[0].ihead = 15;
pl[1].team = 2;
pl[1].sug = 2;
pl[1].wep = 14;
pl[1].trw = 5;
pl[1].trwn = Infinity;
pl[1].iarmor = 27;
pl[1].ihead = 17;
pl[2].team = 2;
pl[2].sug = 1;
pl[2].bown = 5;
pl[2].trwn = 0;
pl[2].iarmor = 27;
pl[2].ihead = 18;
pot1 = 2;
pot2 = 2;
pot3 = 0;
pot4 = 1;
maxscore = 20;
lvl = 3;
} else if (num == 18) {
pl[0].team = 2;
pl[0].sug = 2;
pl[0].wep = 15;
pl[0].trw = 5;
pl[0].trwn = Infinity;
pl[0].iarmor = 29;
pl[0].ihead = 10;
pl[1].team = 2;
pl[1].sug = 2;
pl[1].wep = 15;
pl[1].trw = 5;
pl[1].trwn = Infinity;
pl[1].iarmor = 29;
pl[1].ihead = 11;
pl[2].team = 2;
pl[2].sug = 2;
pl[2].wep = 15;
pl[2].trw = 5;
pl[2].trwn = Infinity;
pl[2].iarmor = 29;
pl[2].ihead = 17;
pot1 = 1;
pot2 = 1;
pot3 = 2;
pot4 = 0;
maxscore = 20;
lvl = 3;
} else if (num == 19) {
pl[0].team = 2;
pl[0].sug = 1;
pl[0].bown = 6;
pl[0].trwn = 0;
pl[0].iarmor = 30;
pl[0].ihead = 9;
pl[1].team = 2;
pl[1].sug = 1;
pl[1].bown = 6;
pl[1].trwn = 0;
pl[1].iarmor = 30;
pl[1].ihead = 9;
pl[2].team = 2;
pl[2].sug = 1;
pl[2].bown = 6;
pl[2].trwn = 0;
pl[2].iarmor = 30;
pl[2].ihead = 15;
pot1 = 1;
pot2 = 0;
pot3 = 0;
pot4 = 2;
maxscore = 20;
lvl = 3;
} else if (num == 20) {
pl[0].team = 2;
pl[0].sug = 3;
pl[0].wep = 18;
pl[0].trw = 6;
pl[0].bown = 7;
pl[0].trwn = Infinity;
pl[0].iarmor = 32;
pl[0].ihead = 13;
pot1 = 0;
pot2 = 0;
pot3 = 0;
pot4 = 0;
maxscore = 20;
lvl = 3;
}
};
moneyifs = function (num) {
if (num == 1) {
moneyif = 100;
} else if (num == 2) {
moneyif = 250;
} else if (num == 3) {
moneyif = 350;
} else if (num == 4) {
moneyif = 600;
} else if (num == 5) {
moneyif = 1100;
} else if (num == 6) {
moneyif = 2000;
} else if (num == 7) {
moneyif = 3500;
} else if (num == 8) {
moneyif = 5000;
} else if (num == 9) {
moneyif = 7500;
} else if (num == 10) {
moneyif = 28000;
} else if (num == 11) {
moneyif = 35000;
} else if (num == 12) {
moneyif = 42000;
} else if (num == 13) {
moneyif = 50000;
} else if (num == 14) {
moneyif = 60000;
} else if (num == 15) {
moneyif = 70000 /* 0x011170 */;
} else if (num == 16) {
moneyif = 100000 /* 0x0186A0 */;
} else if (num == 17) {
moneyif = 140000 /* 0x0222E0 */;
} else if (num == 18) {
moneyif = 200000 /* 0x030D40 */;
} else if (num == 19) {
moneyif = 400000 /* 0x061A80 */;
} else if (num == 20) {
moneyif = 1000000 /* 0x0F4240 */;
}
};
makeshop = function (num) {
if (num == 1) {
SHPBDY = 2;
SHPWP = 2;
SHPBW = 1;
SHPTRW = 0;
} else if (num == 2) {
SHPBDY = 3;
SHPWP = 3;
SHPBW = 1;
SHPTRW = 0;
} else if (num == 3) {
SHPBDY = 5;
SHPWP = 4;
SHPBW = 1;
SHPTRW = 1;
} else if (num == 4) {
SHPBDY = 6;
SHPWP = 4;
SHPBW = 1;
SHPTRW = 2;
} else if (num == 5) {
SHPBDY = 7;
SHPWP = 5;
SHPBW = 2;
SHPTRW = 2;
} else if (num == 6) {
SHPBDY = 8;
SHPWP = 6;
SHPBW = 2;
SHPTRW = 2;
} else if (num == 7) {
SHPBDY = 10;
SHPWP = 7;
SHPBW = 2;
SHPTRW = 3;
} else if (num == 8) {
SHPBDY = 11;
SHPWP = 8;
SHPBW = 2;
SHPTRW = 3;
} else if (num == 9) {
SHPBDY = 12;
SHPWP = 8;
SHPBW = 3;
SHPTRW = 3;
} else if (num == 10) {
SHPBDY = 14;
SHPWP = 9;
SHPBW = 3;
SHPTRW = 4;
} else if (num == 11) {
SHPBDY = 16;
SHPWP = 10;
SHPBW = 3;
SHPTRW = 4;
} else if (num == 12) {
SHPBDY = 18;
SHPWP = 11;
SHPBW = 4;
SHPTRW = 4;
} else if (num == 13) {
SHPBDY = 20;
SHPWP = 11;
SHPBW = 4;
SHPTRW = 4;
} else if (num == 14) {
SHPBDY = 22;
SHPWP = 12;
SHPBW = 4;
SHPTRW = 4;
} else if (num == 15) {
SHPBDY = 24;
SHPWP = 13;
SHPBW = 4;
SHPTRW = 4;
} else if (num == 16) {
SHPBDY = 26;
SHPWP = 14;
SHPBW = 5;
SHPTRW = 4;
} else if (num == 17) {
SHPBDY = 27;
SHPWP = 14;
SHPBW = 5;
SHPTRW = 4;
} else if (num == 18) {
SHPBDY = 29;
SHPWP = 15;
SHPBW = 5;
SHPTRW = 4;
} else if (num == 19) {
SHPBDY = 30;
SHPWP = 15;
SHPBW = 6;
SHPTRW = 5;
} else if (num == 20) {
SHPBDY = 30;
SHPWP = 16;
SHPBW = 6;
SHPTRW = 5;
} else if (num == 21) {
SHPBDY = 31;
SHPWP = 17;
SHPBW = 6;
SHPTRW = 5;
}
};
maps = function (num) {
if (num == 1) {
return(13);
}
if (num == 2) {
return(14);
}
if (num == 3) {
return(3);
}
if (num == 4) {
return(4);
}
if (num == 5) {
return(11);
}
if (num == 6) {
return(12);
}
if (num == 7) {
return(15);
}
if (num == 8) {
return(16);
}
if (num == 9) {
return(17);
}
if (num == 10) {
return(11);
}
if (num == 11) {
return(18);
}
if (num == 12) {
return(16);
}
if (num == 13) {
return(15);
}
if (num == 14) {
return(3);
}
if (num == 15) {
return(4);
}
if (num == 16) {
return(14);
}
if (num == 17) {
return(13);
}
if (num == 18) {
return(17);
}
if (num == 19) {
return(18);
}
if (num == 20) {
return(12);
}
};
bodies = function (num) {
if (num == 1) {
return(0);
}
if (num == 2) {
return(0);
}
if (num == 3) {
return(0);
}
if (num == 4) {
return(0);
}
if (num == 5) {
return(1);
}
if (num == 6) {
return(1);
}
if (num == 7) {
return(1);
}
if (num == 8) {
return(1);
}
if (num == 9) {
return(0);
}
if (num == 10) {
return(0);
}
if (num == 11) {
return(2);
}
if (num == 12) {
return(2);
}
if (num == 13) {
return(2);
}
if (num == 14) {
return(1);
}
if (num == 15) {
return(1);
}
if (num == 16) {
return(0);
}
if (num == 17) {
return(2);
}
if (num == 18) {
return(2);
}
if (num == 19) {
return(2);
}
if (num == 20) {
return(0);
}
};
Frame 2
stop();
onEnterFrame = function () {
if (_root.getBytesLoaded() == _root.getBytesTotal()) {
percent.text = "";
} else {
percent.text = (Math.round((1000 * _root.getBytesLoaded()) / _root.getBytesTotal()) / 10) + "%";
}
};
onADclose = function () {
delete onEnterFrame;
gotoAndStop (24);
};
MochiAd.showPreGameAd({id:_root[_root[_root[_root[_root[fc0000b9e8d9d0f8]]]]], res:"640x480", background:16777215, color:16711680, outline:0, no_bg:true, ad_finished:onADclose});
wmovie = 50;
levelsstate = 1;
menuon = "main";
Frame 3
stop();
lfunc = function () {
carr = new Array(10);
carr[0] = new Object();
carr[0].x = -727.05;
carr[0].y = 174;
carr[0].n = 1;
carr[0].k1 = 2;
carr[1] = new Object();
carr[1].x = -404.2;
carr[1].y = 178.65;
carr[1].n = 3;
carr[1].k1 = 1;
carr[1].k2 = 3;
carr[1].k3 = 5;
carr[2] = new Object();
carr[2].x = -235.85;
carr[2].y = 74.85;
carr[2].n = 3;
carr[2].k1 = 2;
carr[2].k2 = 4;
carr[2].k3 = 8;
carr[3] = new Object();
carr[3].x = 797.2;
carr[3].y = 95.6;
carr[3].n = 3;
carr[3].k1 = 3;
carr[3].k2 = 5;
carr[3].k3 = 9;
carr[4] = new Object();
carr[4].x = 928.65;
carr[4].y = 201.7;
carr[4].n = 3;
carr[4].k1 = 2;
carr[4].k2 = 4;
carr[4].k3 = 6;
carr[5] = new Object();
carr[5].x = 1166.15;
carr[5].y = 180.95;
carr[5].n = 1;
carr[5].k1 = 5;
carr[6] = new Object();
carr[6].x = -714.1;
carr[6].y = -62.95;
carr[6].n = 1;
carr[6].k1 = 8;
carr[7] = new Object();
carr[7].x = -459.3;
carr[7].y = 33.1;
carr[7].n = 2;
carr[7].k1 = 7;
carr[7].k2 = 3;
carr[8] = new Object();
carr[8].x = 940.85;
carr[8].y = 37.3;
carr[8].n = 2;
carr[8].k1 = 4;
carr[8].k2 = 10;
carr[9] = new Object();
carr[9].x = 1174.9;
carr[9].y = -50.5;
carr[9].n = 1;
carr[9].k1 = 9;
carr[1].j2 = true;
carr[1].r2 = true;
carr[1].d2 = true;
carr[2].j7 = true;
carr[2].r7 = false;
carr[2].d7 = true;
carr[4].j3 = true;
carr[4].r3 = false;
carr[4].d3 = true;
carr[3].j8 = true;
carr[3].r8 = true;
carr[3].d8 = false;
carr[8].j3 = true;
carr[8].r3 = false;
carr[8].d3 = false;
carr[7].j2 = true;
carr[7].r2 = true;
carr[7].d2 = false;
w = new Array();
w[0] = new Array();
w[0][0] = 0;
w[0][1] = 322.883485176929;
w[0][2] = 520.661548925162;
w[0][3] = 1553.91992174389;
w[0][4] = 1655.9327809646;
w[0][5] = 1894.33750512081;
w[0][6] = 1020.28091473503;
w[0][7] = 747.97843127225;
w[0][8] = 1708.94963663752;
w[0][9] = 1958.9261205315;
w[1] = new Array();
w[1][0] = 322.883485176929;
w[1][1] = 0;
w[1][2] = 197.778063748233;
w[1][3] = 1231.03643656696;
w[1][4] = 1333.04929578767;
w[1][5] = 1571.45401994388;
w[1][6] = 697.397429558105;
w[1][7] = 425.094946095321;
w[1][8] = 1386.06615146059;
w[1][9] = 1636.04263535457;
w[2] = new Array();
w[2][0] = 520.661548925162;
w[2][1] = 197.778063748233;
w[2][2] = 0;
w[2][3] = 1033.25837281873;
w[2][4] = 1202.18531708754;
w[2][5] = 1440.59004124376;
w[2][6] = 499.619365809873;
w[2][7] = 227.316882347088;
w[2][8] = 1188.28808771235;
w[2][9] = 1438.26457160634;
w[3] = new Array();
w[3][0] = 1553.91992174389;
w[3][1] = 1231.03643656696;
w[3][2] = 1033.25837281873;
w[3][3] = 0;
w[3][4] = 168.926944268817;
w[3][5] = 407.33166842503;
w[3][6] = 1532.8777386286;
w[3][7] = 1260.57525516581;
w[3][8] = 155.029714893629;
w[3][9] = 405.006198787615;
w[4] = new Array();
w[4][0] = 1655.9327809646;
w[4][1] = 1333.04929578767;
w[4][2] = 1202.18531708754;
w[4][3] = 168.926944268817;
w[4][4] = 0;
w[4][5] = 238.404724156213;
w[4][6] = 1701.80468289742;
w[4][7] = 1429.50219943463;
w[4][8] = 323.956659162446;
w[4][9] = 573.933143056432;
w[5] = new Array();
w[5][0] = 1894.33750512081;
w[5][1] = 1571.45401994388;
w[5][2] = 1440.59004124376;
w[5][3] = 407.33166842503;
w[5][4] = 238.404724156213;
w[5][5] = 0;
w[5][6] = 1940.20940705363;
w[5][7] = 1667.90692359084;
w[5][8] = 562.361383318659;
w[5][9] = 812.337867212645;
w[6] = new Array();
w[6][0] = 1020.28091473503;
w[6][1] = 697.397429558105;
w[6][2] = 499.619365809873;
w[6][3] = 1532.8777386286;
w[6][4] = 1701.80468289742;
w[6][5] = 1940.20940705363;
w[6][6] = 0;
w[6][7] = 272.302483462784;
w[6][8] = 1687.90745352223;
w[6][9] = 1937.88393741621;
w[7] = new Array();
w[7][0] = 747.97843127225;
w[7][1] = 425.094946095321;
w[7][2] = 227.316882347088;
w[7][3] = 1260.57525516581;
w[7][4] = 1429.50219943463;
w[7][5] = 1667.90692359084;
w[7][6] = 272.302483462784;
w[7][7] = 0;
w[7][8] = 1415.60497005944;
w[7][9] = 1665.58145395343;
w[8] = new Array();
w[8][0] = 1708.94963663752;
w[8][1] = 1386.06615146059;
w[8][2] = 1188.28808771235;
w[8][3] = 155.029714893629;
w[8][4] = 323.956659162446;
w[8][5] = 562.361383318659;
w[8][6] = 1687.90745352223;
w[8][7] = 1415.60497005944;
w[8][8] = 0;
w[8][9] = 249.976483893986;
w[9] = new Array();
w[9][0] = 1958.9261205315;
w[9][1] = 1636.04263535457;
w[9][2] = 1438.26457160634;
w[9][3] = 405.006198787615;
w[9][4] = 573.933143056432;
w[9][5] = 812.337867212645;
w[9][6] = 1937.88393741621;
w[9][7] = 1665.58145395343;
w[9][8] = 249.976483893986;
w[9][9] = 0;
pai = new Array();
pai[0] = new Array();
pai[0][0] = 0;
pai[0][1] = 1;
pai[0][2] = 1;
pai[0][3] = 1;
pai[0][4] = 1;
pai[0][5] = 1;
pai[0][6] = 1;
pai[0][7] = 1;
pai[0][8] = 1;
pai[0][9] = 1;
pai[1] = new Array();
pai[1][0] = 0;
pai[1][1] = 1;
pai[1][2] = 2;
pai[1][3] = 2;
pai[1][4] = 4;
pai[1][5] = 4;
pai[1][6] = 2;
pai[1][7] = 2;
pai[1][8] = 2;
pai[1][9] = 2;
pai[2] = new Array();
pai[2][0] = 1;
pai[2][1] = 1;
pai[2][2] = 2;
pai[2][3] = 3;
pai[2][4] = 3;
pai[2][5] = 3;
pai[2][6] = 7;
pai[2][7] = 7;
pai[2][8] = 3;
pai[2][9] = 3;
pai[3] = new Array();
pai[3][0] = 2;
pai[3][1] = 2;
pai[3][2] = 2;
pai[3][3] = 3;
pai[3][4] = 4;
pai[3][5] = 4;
pai[3][6] = 2;
pai[3][7] = 2;
pai[3][8] = 8;
pai[3][9] = 8;
pai[4] = new Array();
pai[4][0] = 1;
pai[4][1] = 1;
pai[4][2] = 3;
pai[4][3] = 3;
pai[4][4] = 4;
pai[4][5] = 5;
pai[4][6] = 3;
pai[4][7] = 3;
pai[4][8] = 3;
pai[4][9] = 3;
pai[5] = new Array();
pai[5][0] = 4;
pai[5][1] = 4;
pai[5][2] = 4;
pai[5][3] = 4;
pai[5][4] = 4;
pai[5][5] = 5;
pai[5][6] = 4;
pai[5][7] = 4;
pai[5][8] = 4;
pai[5][9] = 4;
pai[6] = new Array();
pai[6][0] = 7;
pai[6][1] = 7;
pai[6][2] = 7;
pai[6][3] = 7;
pai[6][4] = 7;
pai[6][5] = 7;
pai[6][6] = 6;
pai[6][7] = 7;
pai[6][8] = 7;
pai[6][9] = 7;
pai[7] = new Array();
pai[7][0] = 2;
pai[7][1] = 2;
pai[7][2] = 2;
pai[7][3] = 2;
pai[7][4] = 2;
pai[7][5] = 2;
pai[7][6] = 6;
pai[7][7] = 7;
pai[7][8] = 2;
pai[7][9] = 2;
pai[8] = new Array();
pai[8][0] = 3;
pai[8][1] = 3;
pai[8][2] = 3;
pai[8][3] = 3;
pai[8][4] = 3;
pai[8][5] = 3;
pai[8][6] = 3;
pai[8][7] = 3;
pai[8][8] = 8;
pai[8][9] = 9;
pai[9] = new Array();
pai[9][0] = 8;
pai[9][1] = 8;
pai[9][2] = 8;
pai[9][3] = 8;
pai[9][4] = 8;
pai[9][5] = 8;
pai[9][6] = 8;
pai[9][7] = 8;
pai[9][8] = 8;
pai[9][9] = 9;
};
startall();
Instance of Symbol 1127 MovieClip in Frame 3
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 1;
var cb = 4;
}
Instance of Symbol 1127 MovieClip in Frame 3
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 1;
var cb = 4;
}
Instance of Symbol 1127 MovieClip in Frame 3
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 1;
var cb = 4;
}
Instance of Symbol 1127 MovieClip in Frame 3
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 2;
var cb = 3;
}
Instance of Symbol 1127 MovieClip in Frame 3
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 2;
var cb = 3;
}
Instance of Symbol 1127 MovieClip in Frame 3
onClipEvent (load) {
var t1 = false;
var t10 = true;
var right = false;
var left = true;
}
Instance of Symbol 1127 MovieClip in Frame 3
onClipEvent (load) {
var t1 = false;
var t10 = true;
var right = false;
var left = false;
}
Instance of Symbol 1127 MovieClip in Frame 3
onClipEvent (load) {
var t1 = false;
var t10 = true;
var right = true;
var left = false;
}
Instance of Symbol 1127 MovieClip in Frame 3
onClipEvent (load) {
var t1 = true;
var t10 = false;
var fred = true;
}
Instance of Symbol 1127 MovieClip in Frame 3
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 0;
var cb = 1;
}
Instance of Symbol 1127 MovieClip in Frame 3
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 6;
var cb = 7;
}
Instance of Symbol 1127 MovieClip in Frame 3
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 6;
var cb = 7;
}
Instance of Symbol 1127 MovieClip in Frame 3
onClipEvent (load) {
var t1 = false;
var t10 = true;
var right = false;
var left = false;
}
Instance of Symbol 1127 MovieClip in Frame 3
onClipEvent (load) {
var t1 = false;
var t10 = true;
var right = true;
var left = false;
}
Instance of Symbol 1127 MovieClip in Frame 3
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 4;
var cb = 5;
}
Instance of Symbol 1127 MovieClip in Frame 3
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 8;
var cb = 9;
}
Instance of Symbol 1127 MovieClip in Frame 3
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 8;
var cb = 9;
}
Instance of Symbol 1127 MovieClip in Frame 3
onClipEvent (load) {
var t1 = false;
var t10 = true;
var right = false;
var left = true;
}
Instance of Symbol 1127 MovieClip in Frame 3
onClipEvent (load) {
var t1 = false;
var t10 = true;
var right = false;
var left = false;
}
Instance of Symbol 1127 MovieClip in Frame 3
onClipEvent (load) {
var t1 = true;
var t10 = true;
var fred = true;
}
Instance of Symbol 1127 MovieClip in Frame 3
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 2;
var cb = 3;
}
Instance of Symbol 1235 MovieClip in Frame 3
onClipEvent (load) {
ca = 2;
cb = 3;
left = false;
}
Instance of Symbol 1235 MovieClip in Frame 3
onClipEvent (load) {
ca = 1;
cb = 4;
left = false;
}
Instance of Symbol 1235 MovieClip in Frame 3
onClipEvent (load) {
ca = 0;
cb = 1;
left = false;
}
Instance of Symbol 1235 MovieClip in Frame 3
onClipEvent (load) {
ca = 6;
cb = 7;
left = false;
}
Instance of Symbol 1235 MovieClip in Frame 3
onClipEvent (load) {
ca = 8;
cb = 9;
left = true;
}
Instance of Symbol 1235 MovieClip in Frame 3
onClipEvent (load) {
ca = 4;
cb = 5;
left = true;
}
Frame 4
stop();
lfunc = function () {
carr = new Array(8);
carr[0] = new Object();
carr[0].x = -459.3;
carr[0].y = 378.05;
carr[0].n = 1;
carr[0].k1 = 2;
carr[1] = new Object();
carr[1].x = -212.15;
carr[1].y = 378.05;
carr[1].n = 3;
carr[1].k1 = 1;
carr[1].k2 = 3;
carr[1].k3 = 4;
carr[2] = new Object();
carr[2].x = 1134.1;
carr[2].y = 378.05;
carr[2].n = 1;
carr[2].k1 = 2;
carr[3] = new Object();
carr[3].x = -92.05;
carr[3].y = 249.95;
carr[3].n = 2;
carr[3].k1 = 2;
carr[3].k2 = 5;
carr[4] = new Object();
carr[4].x = 828.8;
carr[4].y = -10.7;
carr[4].n = 3;
carr[4].k1 = 4;
carr[4].k2 = 8;
carr[4].k3 = undefined;
carr[5] = new Object();
carr[5].x = 1138.1;
carr[5].y = -10.5;
carr[5].n = 1;
carr[5].k1 = 5;
carr[6] = new Object();
carr[6].x = 105.05;
carr[6].y = -80.45;
carr[6].n = 1;
carr[6].k1 = 8;
carr[7] = new Object();
carr[7].x = 608.5;
carr[7].y = -80.45;
carr[7].n = 2;
carr[7].k1 = 5;
carr[7].k2 = 7;
carr[1].j3 = true;
carr[1].r3 = true;
carr[1].d3 = true;
carr[4].j7 = true;
carr[4].r7 = false;
carr[4].d7 = false;
w = new Array();
w[0] = new Array();
w[0][0] = 0;
w[0][1] = 247.15;
w[0][2] = 1593.4;
w[0][3] = 422.745045488191;
w[0][4] = 1379.77333399381;
w[0][5] = Infinity;
w[0][6] = 2114.30157290869;
w[0][7] = 1610.85157290869;
w[1] = new Array();
w[1][0] = 247.15;
w[1][1] = 0;
w[1][2] = 1346.25;
w[1][3] = 175.595045488191;
w[1][4] = 1132.62333399381;
w[1][5] = Infinity;
w[1][6] = 1867.15157290869;
w[1][7] = 1363.70157290869;
w[2] = new Array();
w[2][0] = 1593.4;
w[2][1] = 1346.25;
w[2][2] = 0;
w[2][3] = 1521.84504548819;
w[2][4] = 2478.87333399381;
w[2][5] = Infinity;
w[2][6] = 3213.40157290869;
w[2][7] = 2709.95157290869;
w[3] = new Array();
w[3][0] = 422.745045488191;
w[3][1] = 175.595045488191;
w[3][2] = 1521.84504548819;
w[3][3] = 0;
w[3][4] = 957.028288505622;
w[3][5] = Infinity;
w[3][6] = 1691.5565274205;
w[3][7] = 1188.1065274205;
w[4] = new Array();
w[4][0] = 1379.77333399381;
w[4][1] = 1132.62333399381;
w[4][2] = 2478.87333399381;
w[4][3] = 957.028288505622;
w[4][4] = 0;
w[4][5] = Infinity;
w[4][6] = 734.528238914875;
w[4][7] = 231.078238914875;
w[5] = new Array();
w[5][0] = 1689.07339865595;
w[5][1] = 1441.92339865595;
w[5][2] = 2788.17339865595;
w[5][3] = 1266.32835316776;
w[5][4] = 309.300064662134;
w[5][5] = 0;
w[5][6] = 1043.82830357701;
w[5][7] = 540.378303577009;
w[6] = new Array();
w[6][0] = 2114.30157290869;
w[6][1] = 1867.15157290869;
w[6][2] = 3213.40157290869;
w[6][3] = 1691.5565274205;
w[6][4] = 734.528238914875;
w[6][5] = Infinity;
w[6][6] = 0;
w[6][7] = 503.45;
w[7] = new Array();
w[7][0] = 1610.85157290869;
w[7][1] = 1363.70157290869;
w[7][2] = 2709.95157290869;
w[7][3] = 1188.1065274205;
w[7][4] = 231.078238914875;
w[7][5] = Infinity;
w[7][6] = 503.45;
w[7][7] = 0;
pai = new Array();
pai[0] = new Array();
pai[0][0] = 0;
pai[0][1] = 1;
pai[0][2] = 1;
pai[0][3] = 1;
pai[0][4] = 1;
pai[0][5] = Infinity;
pai[0][6] = 1;
pai[0][7] = 1;
pai[1] = new Array();
pai[1][0] = 0;
pai[1][1] = 1;
pai[1][2] = 2;
pai[1][3] = 3;
pai[1][4] = 3;
pai[1][5] = Infinity;
pai[1][6] = 3;
pai[1][7] = 3;
pai[2] = new Array();
pai[2][0] = 1;
pai[2][1] = 1;
pai[2][2] = 2;
pai[2][3] = 1;
pai[2][4] = 1;
pai[2][5] = Infinity;
pai[2][6] = 1;
pai[2][7] = 1;
pai[3] = new Array();
pai[3][0] = 1;
pai[3][1] = 1;
pai[3][2] = 1;
pai[3][3] = 3;
pai[3][4] = 4;
pai[3][5] = Infinity;
pai[3][6] = 4;
pai[3][7] = 4;
pai[4] = new Array();
pai[4][0] = 3;
pai[4][1] = 3;
pai[4][2] = 3;
pai[4][3] = 3;
pai[4][4] = 4;
pai[4][5] = Infinity;
pai[4][6] = 7;
pai[4][7] = 7;
pai[5] = new Array();
pai[5][0] = 4;
pai[5][1] = 4;
pai[5][2] = 4;
pai[5][3] = 4;
pai[5][4] = 4;
pai[5][5] = 5;
pai[5][6] = 4;
pai[5][7] = 4;
pai[6] = new Array();
pai[6][0] = 7;
pai[6][1] = 7;
pai[6][2] = 7;
pai[6][3] = 7;
pai[6][4] = 7;
pai[6][5] = Infinity;
pai[6][6] = 6;
pai[6][7] = 7;
pai[7] = new Array();
pai[7][0] = 4;
pai[7][1] = 4;
pai[7][2] = 4;
pai[7][3] = 4;
pai[7][4] = 4;
pai[7][5] = Infinity;
pai[7][6] = 6;
pai[7][7] = 7;
};
startall();
Instance of Symbol 1127 MovieClip in Frame 4
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 1;
var cb = 2;
}
Instance of Symbol 1127 MovieClip in Frame 4
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 1;
var cb = 2;
}
Instance of Symbol 1127 MovieClip in Frame 4
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 1;
var cb = 2;
}
Instance of Symbol 1127 MovieClip in Frame 4
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 6;
var cb = 7;
}
Instance of Symbol 1127 MovieClip in Frame 4
onClipEvent (load) {
var t1 = false;
var t10 = true;
var right = false;
var left = true;
}
Instance of Symbol 1127 MovieClip in Frame 4
onClipEvent (load) {
var t1 = false;
var t10 = true;
var right = true;
var left = false;
}
Instance of Symbol 1127 MovieClip in Frame 4
onClipEvent (load) {
var t1 = true;
var t10 = false;
}
Instance of Symbol 1127 MovieClip in Frame 4
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 0;
var cb = 1;
}
Instance of Symbol 1127 MovieClip in Frame 4
onClipEvent (load) {
var t1 = true;
var t10 = true;
}
Instance of Symbol 1235 MovieClip in Frame 4
onClipEvent (load) {
ca = 6;
cb = 7;
left = false;
}
Instance of Symbol 1235 MovieClip in Frame 4
onClipEvent (load) {
ca = 1;
cb = 2;
left = false;
}
Instance of Symbol 1235 MovieClip in Frame 4
onClipEvent (load) {
ca = 0;
cb = 1;
left = false;
}
Instance of Symbol 1235 MovieClip in Frame 4
onClipEvent (load) {
ca = 4;
cb = 5;
left = true;
}
Instance of Symbol 1235 MovieClip in Frame 4
onClipEvent (load) {
ca = 3;
cb = 4;
left = false;
}
Instance of Symbol 1235 MovieClip in Frame 4
onClipEvent (load) {
ca = 1;
cb = 2;
left = true;
}
Instance of Symbol 1127 MovieClip in Frame 4
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 1;
var cb = 2;
}
Instance of Symbol 1127 MovieClip in Frame 4
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 3;
var cb = 4;
}
Instance of Symbol 1127 MovieClip in Frame 4
onClipEvent (load) {
var t1 = false;
var t10 = true;
var right = false;
var left = true;
}
Instance of Symbol 1127 MovieClip in Frame 4
onClipEvent (load) {
var t1 = false;
var t10 = true;
var right = false;
var left = false;
}
Instance of Symbol 1127 MovieClip in Frame 4
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 3;
var cb = 4;
}
Instance of Symbol 1127 MovieClip in Frame 4
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 3;
var cb = 4;
}
Instance of Symbol 1127 MovieClip in Frame 4
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 4;
var cb = 5;
}
Instance of Symbol 1127 MovieClip in Frame 4
onClipEvent (load) {
var t1 = false;
var t10 = true;
var right = false;
var left = false;
}
Instance of Symbol 1127 MovieClip in Frame 4
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 6;
var cb = 7;
}
Frame 5
stop();
onMouseDown = function () {
gotoAndPlay (4);
delete onMouseDown;
};
moneyif = 200;
pln = 3;
plr = 3;
clr1 = 16711680 /* 0xFF0000 */;
clr2 = 65280;
clr3 = 255;
pl = new Array(3);
pl[0] = new Object();
pl[1] = new Object();
pl[2] = new Object();
pl[0].team = 3;
pl[0].sug = 1;
pl[0].bown = 2;
pl[0].iarmor = 8;
pl[0].ihead = 8;
pl[1].team = 2;
pl[1].sug = 3;
pl[1].bown = 2;
pl[1].wep = 4;
pl[1].trw = 1;
pl[1].trwn = Infinity;
pl[1].iarmor = 3;
pl[1].ihead = 10;
pl[2].team = 1;
pl[2].sug = 2;
pl[2].iarmor = 2;
pl[2].ihead = 8;
pl[2].trw = 5;
pl[2].trwn = 10;
pl[2].wep = 13;
maxscore = 10;
Frame 6
cleanall();
if (playmode == 1) {
if (contin) {
gotoAndStop (7);
} else {
_alpha = 0;
stagenum = againlvl;
mouse._visible = false;
gotoAndStop(maps(againlvl));
}
} else {
gotoAndStop (20);
}
Frame 7
songsound(1);
mouseIsDown = false;
onMouseDown = function () {
mouseIsDown = true;
};
onMouseUp = function () {
mouseIsDown = false;
};
if (levelsstate == 1) {
head1 = 2;
unlocked = 1;
secondw = (thirdw = false);
lockopen = true;
w1 = (w2 = (w3 = (w4 = (w5 = (w6 = 3)))));
weaponsdo();
playmode = 1;
if (resetgame || (isNaN(savefile.data.levelsstate))) {
savefile.data.playtime = 0;
money = 100;
rama = 1;
itemsnum = 2;
itemsa = new Array(itemsnum);
i = 0;
while (i < itemsnum) {
itemsa[i] = new Object();
i++;
}
itemsa[0].ix = 1;
itemsa[0].iy = 1;
itemsa[0].fr = 3;
itemsa[0].p = 1;
itemsa[0].arm2 = false;
itemsa[1].ix = 3;
itemsa[1].iy = 1;
itemsa[1].fr = 34;
itemsa[1].p = 1;
} else {
levelsstate = savefile.data.levelsstate;
rama = savefile.data.rama;
money = savefile.data.money;
itemsa = savefile.data.itemsa;
itemsnum = savefile.data.itemsnum;
head2 = savefile.data.head2;
head3 = savefile.data.head3;
ww = 1;
ij = 0;
while (ij < itemsnum) {
tmp = itemsa[ij];
if (tmp.fr >= 56) {
zzztmp = tmp.fr - 55;
if (zzztmp >= 3) {
zzztmp++;
}
_root["w" + ww] = zzztmp;
_root[("w" + ww) + "n"] = tmp.num;
if (isNaN(_root[("w" + ww) + "n"])) {
_root[("w" + ww) + "n"] = 0;
}
ww++;
}
ij++;
}
}
}
savefile.data.levelsstate = levelsstate;
savefile.data.rama = rama;
savefile.data.money = money;
savefile.data.itemsa = itemsa;
savefile.data.itemsnum = itemsnum;
savefile.data.head2 = head2;
savefile.data.head3 = head3;
_quality = "HIGH";
makeshop(levelsstate);
if (rama == 1) {
pal2._visible = false;
pal3._visible = false;
} else if (rama == 2) {
pal2._visible = true;
pal3._visible = false;
} else {
pal2._visible = true;
pal3._visible = true;
}
updatecash = function () {
cash.cash.text = money + "$";
};
updatecash();
pal2.pal.pal.wep = 19;
pal2.pal.pal.bown = 19;
pal3.pal.pal.wep = 19;
pal3.pal.pal.bown = 19;
sizes = new Array(60);
i = 0;
while (i < 60) {
sizes[i] = new Object();
i++;
}
i = 0;
while (i < 31) {
sizes[i].X = 2;
sizes[i].Y = 4;
i++;
}
sizes[31].X = 1;
sizes[31].Y = 2;
sizes[32].X = 1;
sizes[32].Y = 2;
sizes[33].X = 1;
sizes[33].Y = 3;
sizes[34].X = 1;
sizes[34].Y = 2;
sizes[35].X = 1;
sizes[35].Y = 5;
sizes[36].X = 2;
sizes[36].Y = 2;
sizes[37].X = 1;
sizes[37].Y = 2;
sizes[38].X = 1;
sizes[38].Y = 2;
sizes[39].X = 1;
sizes[39].Y = 2;
sizes[40].X = 2;
sizes[40].Y = 2;
sizes[41].X = 1;
sizes[41].Y = 5;
sizes[42].X = 1;
sizes[42].Y = 2;
sizes[43].X = 1;
sizes[43].Y = 2;
sizes[44].X = 1;
sizes[44].Y = 5;
sizes[45].X = 1;
sizes[45].Y = 2;
sizes[46].X = 2;
sizes[46].Y = 2;
sizes[47].X = 1;
sizes[47].Y = 3;
sizes[48].X = 2;
sizes[48].Y = 3;
sizes[49].X = 2;
sizes[49].Y = 3;
sizes[50].X = 2;
sizes[50].Y = 3;
sizes[51].X = 2;
sizes[51].Y = 3;
sizes[52].X = 2;
sizes[52].Y = 3;
sizes[53].X = 3;
sizes[53].Y = 3;
sizes[54].X = 1;
sizes[54].Y = 1;
sizes[55].X = 1;
sizes[55].Y = 1;
sizes[56].X = 1;
sizes[56].Y = 1;
sizes[57].X = 1;
sizes[57].Y = 1;
sizes[58].X = 1;
sizes[58].Y = 1;
armorname = new Array(31);
armorname[0] = "WARRIOR ARMOR";
armorname[1] = "HORDAN'S SUIT";
armorname[2] = "MAGELLANIC VEST";
armorname[3] = "IRON VINES PLATE";
armorname[4] = "BRONZE BODY";
armorname[5] = "THE TREASURE";
armorname[6] = "SHARK FLESH";
armorname[7] = "KHARMIC ARMOR";
armorname[8] = "LIZARD SKIN";
armorname[9] = "TELURIAN SUIT";
armorname[10] = "LORD KAMU'S SUIT";
armorname[11] = "NINJA NIGHT";
armorname[12] = "THE GOD'S GIFT";
armorname[13] = "DRAGON'S BLOOD";
armorname[14] = "JUNGLE NINJA";
armorname[15] = "CHROME HORNS";
armorname[16] = "FIVE GOD'S PLATE";
armorname[17] = "MINION'S CARAPACE";
armorname[18] = "OBLIVION'S COVER";
armorname[19] = "BEAR PLATE";
armorname[20] = "G. KNIGHTS ARMOR";
armorname[21] = "RED ARMY VEST";
armorname[22] = "NORTH SUN PLATE";
armorname[23] = "MERCILESS ARMOR";
armorname[24] = "UNFATHOMABLE SKIN";
armorname[25] = "MEDUSA'S STONE HIDE";
armorname[26] = "CRYSTALLIZED BLOOD";
armorname[27] = "ROOTS CARAPACE";
armorname[28] = "FENIX ARMOR";
armorname[29] = "KING'S ARMOR";
armorname[30] = "BLACK KNIGHT VEST";
updatebody = function () {
shopb1.gotoAndStop(34);
shopb2.gotoAndStop(34);
shopb3.gotoAndStop(34);
shopb4.gotoAndStop(34);
shopb5.gotoAndStop(34);
minb = Math.min(SHPBDY, 5);
if (SHPBDYCI < 0) {
SHPBDYCI = SHPBDYCI + SHPBDY;
} else if (SHPBDYCI >= SHPBDY) {
SHPBDYCI = SHPBDYCI - SHPBDY;
}
i = 1;
while (i <= minb) {
_root["shopb" + i].gotoAndStop((((i - 1) + SHPBDYCI) % SHPBDY) + 2);
i++;
}
};
updatewep = function () {
shopw1.weapon.gotoAndStop(19);
shopw2.weapon.gotoAndStop(19);
shopw3.weapon.gotoAndStop(19);
shopw4.weapon.gotoAndStop(19);
minb = Math.min(SHPWP, 4);
if (SHPWPCI < 0) {
SHPWPCI = SHPWPCI + SHPWP;
} else if (SHPWPCI >= SHPWP) {
SHPWPCI = SHPWPCI - SHPWP;
}
i = 1;
while (i <= minb) {
_root["shopw" + i].weapon.gotoAndStop((((i - 1) + SHPWPCI) % SHPWP) + 2);
i++;
}
};
updatebow = function () {
shopbw1.bow.gotoAndStop(8);
shopbw2.bow.gotoAndStop(8);
shopbw3.bow.gotoAndStop(8);
shopbw4.bow.gotoAndStop(8);
minb = Math.min(SHPBW, 4);
if (SHPBWCI < 0) {
SHPBWCI = SHPBWCI + SHPBW;
} else if (SHPBWCI >= SHPBW) {
SHPBWCI = SHPBWCI - SHPBW;
}
i = 1;
while (i <= minb) {
_root["shopbw" + i].bow.gotoAndStop((((i - 1) + SHPBWCI) % SHPBW) + 2);
i++;
}
};
updatetrw = function () {
shopt1.trow.gotoAndStop(7);
shopt2.trow.gotoAndStop(7);
shopt3.trow.gotoAndStop(7);
shopt4.trow.gotoAndStop(7);
shopt5.trow.gotoAndStop(7);
minb = Math.min(SHPTRW, 5);
if (SHPTRWCI < 0) {
SHPTRWCI = SHPTRWCI + SHPTRW;
} else if (SHPTRWCI >= SHPTRW) {
SHPTRWCI = SHPTRWCI - SHPTRW;
}
i = 1;
while (i <= minb) {
_root["shopt" + i].trow.gotoAndStop((((i - 1) + SHPTRWCI) % SHPTRW) + 2);
i++;
}
};
SHPBDYCI = Math.max(SHPBDY - 5, 0);
SHPWPCI = Math.max(SHPWP - 4, 0);
SHPBWCI = Math.max(SHPBW - 4, 0);
SHPTRWCI = Math.max(SHPTRW - 5, 0);
updatebody();
updatewep();
updatebow();
updatetrw();
clickd = false;
maina = true;
lastW = 0;
Mouse.hide();
_alpha = 0;
onEnterFrame = function () {
mouse._x = _xmouse;
mouse._y = _ymouse;
_alpha = (_alpha + 10);
if (_alpha >= 100) {
_alpha = 100;
onEnterFrame = entef;
}
};
backspace = false;
onst = function () {
if (backspace && (Key.isDown(8))) {
trwbuy.removeMovieClip();
notenoughmoney.removeMovieClip();
inventoryisfull.removeMovieClip();
backspace = false;
lockopen = true;
moneyifs(levelsstate);
levelsstate++;
money = money + moneyif;
saveitems();
i = 1;
while (i <= C) {
j = 1;
while (j <= R) {
if (inv[(("b" + j) + "b") + i].taken) {
if (inv[(("b" + j) + "b") + i].it._currentframe >= 56) {
_root["w" + kkk] = inv[(("b" + j) + "b") + i].it._currentframe - 55;
if (_root["w" + kkk] >= 3) {
_root["w" + kkk]++;
}
_root[("w" + kkk) + "n"] = inv[(("b" + j) + "b") + i].it.num;
if (isNaN(_root[("w" + kkk) + "n"])) {
_root[("w" + kkk) + "n"] = 0;
}
}
}
j++;
}
i++;
}
i = 1;
while (i <= C) {
j = 1;
while (j <= R) {
if (inv[(("b" + j) + "b") + i].taken) {
inv[(("b" + j) + "b") + i].it.removeMovieClip();
}
j++;
}
i++;
}
gotoAndStop (10);
}
mouse._x = _xmouse;
mouse._y = _ymouse;
sx = Math.round((_xmouse - 283.8) / xdim) + 1;
sy = Math.round((_ymouse - 274.3) / ydim) + 1;
pal1.pal.bl.gotoAndStop(1);
pal2.pal.bl.gotoAndStop(1);
pal3.pal.bl.gotoAndStop(1);
if ((hold != null) && (hold.par != null)) {
hold.par._parent.bl.gotoAndStop(2);
}
if (mouse._currentframe != 3) {
gbox.gotoAndStop(1);
if (((((sx >= 1) && (sx <= C)) && (sy >= 1)) && (sy <= R)) && (inv[(("b" + sy) + "b") + sx].taken)) {
it = inv[(("b" + sy) + "b") + sx].it;
if (it._currentframe <= 32) {
gbox.gotoAndStop(2);
gbox.armor.gotoAndStop(it._currentframe);
} else if (it._currentframe <= 49) {
gbox.gotoAndStop(3);
gbox.weapon.weapon.gotoAndStop(it._currentframe - 31);
} else if (it._currentframe <= 55) {
gbox.gotoAndStop(4);
gbox.bow.bow.gotoAndStop(it._currentframe - 48);
} else {
gbox.gotoAndStop(5);
gbox.trow.trow.gotoAndStop(it._currentframe - 54);
}
inv[(("b" + sy) + "b") + sx].it.par._parent.bl.gotoAndStop(2);
mouse.gotoAndStop(2);
gbox.sell = true;
} else {
gbox.sell = false;
mouse.gotoAndStop(1);
}
if (shopb1.hitTest(_xmouse, _ymouse, false)) {
gbox.gotoAndStop(2);
gbox.armor.gotoAndStop(SHPBDYCI + 2);
mouse.gotoAndStop(2);
} else if (shopb2.hitTest(_xmouse, _ymouse, false)) {
if (SHPBDY >= 2) {
gbox.gotoAndStop(2);
gbox.armor.gotoAndStop(((SHPBDYCI + 1) % SHPBDY) + 2);
mouse.gotoAndStop(2);
}
} else if (shopb3.hitTest(_xmouse, _ymouse, false)) {
if (SHPBDY >= 3) {
gbox.gotoAndStop(2);
gbox.armor.gotoAndStop(((SHPBDYCI + 2) % SHPBDY) + 2);
mouse.gotoAndStop(2);
}
} else if (shopb4.hitTest(_xmouse, _ymouse, false)) {
if (SHPBDY >= 4) {
gbox.gotoAndStop(2);
gbox.armor.gotoAndStop(((SHPBDYCI + 3) % SHPBDY) + 2);
mouse.gotoAndStop(2);
}
} else if (shopb5.hitTest(_xmouse, _ymouse, false)) {
if (SHPBDY >= 5) {
gbox.gotoAndStop(2);
gbox.armor.gotoAndStop(((SHPBDYCI + 4) % SHPBDY) + 2);
mouse.gotoAndStop(2);
}
} else if (shopw1.hitTest(_xmouse, _ymouse, false)) {
gbox.gotoAndStop(3);
gbox.weapon.weapon.gotoAndStop(SHPWPCI + 2);
mouse.gotoAndStop(2);
} else if (shopw2.hitTest(_xmouse, _ymouse, false)) {
if (SHPWP >= 2) {
gbox.gotoAndStop(3);
gbox.weapon.weapon.gotoAndStop(((SHPWPCI + 1) % SHPWP) + 2);
mouse.gotoAndStop(2);
}
} else if (shopw3.hitTest(_xmouse, _ymouse, false)) {
if (SHPWP >= 3) {
gbox.gotoAndStop(3);
gbox.weapon.weapon.gotoAndStop(((SHPWPCI + 2) % SHPWP) + 2);
mouse.gotoAndStop(2);
}
} else if (shopw4.hitTest(_xmouse, _ymouse, false)) {
if (SHPWP >= 4) {
gbox.gotoAndStop(3);
gbox.weapon.weapon.gotoAndStop(((SHPWPCI + 3) % SHPWP) + 2);
mouse.gotoAndStop(2);
}
} else if (shopbw1.hitTest(_xmouse, _ymouse, false)) {
gbox.gotoAndStop(4);
gbox.bow.bow.gotoAndStop(SHPBWCI + 2);
mouse.gotoAndStop(2);
} else if (shopbw2.hitTest(_xmouse, _ymouse, false)) {
if (SHPBW >= 2) {
gbox.gotoAndStop(4);
gbox.bow.bow.gotoAndStop(((SHPBWCI + 1) % SHPBW) + 2);
mouse.gotoAndStop(2);
}
} else if (shopbw3.hitTest(_xmouse, _ymouse, false)) {
if (SHPBW >= 3) {
gbox.gotoAndStop(4);
gbox.bow.bow.gotoAndStop(((SHPBWCI + 2) % SHPBW) + 2);
mouse.gotoAndStop(2);
}
} else if (shopbw4.hitTest(_xmouse, _ymouse, false)) {
if (SHPBW >= 4) {
gbox.gotoAndStop(4);
gbox.bow.bow.gotoAndStop(((SHPBWCI + 3) % SHPBW) + 2);
mouse.gotoAndStop(2);
}
} else if (shopt1.hitTest(_xmouse, _ymouse, false)) {
if (SHPTRW >= 1) {
gbox.gotoAndStop(5);
gbox.trow.trow.gotoAndStop(SHPTRWCI + 2);
mouse.gotoAndStop(2);
}
} else if (shopt2.hitTest(_xmouse, _ymouse, false)) {
if (SHPTRW >= 2) {
gbox.gotoAndStop(5);
gbox.trow.trow.gotoAndStop(((SHPTRWCI + 1) % SHPTRW) + 2);
mouse.gotoAndStop(2);
}
} else if (shopt3.hitTest(_xmouse, _ymouse, false)) {
if (SHPTRW >= 3) {
gbox.gotoAndStop(5);
gbox.trow.trow.gotoAndStop(((SHPTRWCI + 2) % SHPTRW) + 2);
mouse.gotoAndStop(2);
}
} else if (shopt4.hitTest(_xmouse, _ymouse, false)) {
if (SHPTRW >= 4) {
gbox.gotoAndStop(5);
gbox.trow.trow.gotoAndStop(((SHPTRWCI + 3) % SHPTRW) + 2);
mouse.gotoAndStop(2);
}
} else if (shopt5.hitTest(_xmouse, _ymouse, false)) {
if (SHPTRW >= 5) {
gbox.gotoAndStop(5);
gbox.trow.trow.gotoAndStop(((SHPTRWCI + 4) % SHPTRW) + 2);
mouse.gotoAndStop(2);
}
}
}
if (mouseIsDown) {
if (!clickd) {
sx = Math.round((_xmouse - 283.8) / xdim) + 1;
sy = Math.round((_ymouse - 274.3) / ydim) + 1;
if ((((sx >= 1) && (sx <= C)) && (sy >= 1)) && (sy <= R)) {
if (inv[(("b" + sy) + "b") + sx].taken) {
_root.msound("placed");
mouse.gotoAndStop(3);
hold = inv[(("b" + sy) + "b") + sx].it;
it = hold;
it.swapDepths(1999);
xch = it._x - _xmouse;
ych = it._y - _ymouse;
i = it.ix;
while (i < (it.ix + it.X)) {
j = it.iy;
while (j < (it.iy + it.Y)) {
inv[(("b" + j) + "b") + i].taken = false;
inv[(("b" + j) + "b") + i].it = null;
j++;
}
i++;
}
}
} else if (shopb1.hitTest(_xmouse, _ymouse, false)) {
_root.msound("placed");
mouse.gotoAndStop(3);
it = attachMovie("item", "it" + indit, 1999);
it.gotoAndStop(SHPBDYCI + 2);
take2(it);
} else if (shopb2.hitTest(_xmouse, _ymouse, false)) {
if (SHPBDY >= 2) {
_root.msound("placed");
mouse.gotoAndStop(3);
it = attachMovie("item", "it" + indit, 1999);
it.gotoAndStop(((SHPBDYCI + 1) % SHPBDY) + 2);
take2(it);
}
} else if (shopb3.hitTest(_xmouse, _ymouse, false)) {
if (SHPBDY >= 3) {
_root.msound("placed");
mouse.gotoAndStop(3);
it = attachMovie("item", "it" + indit, 1999);
it.gotoAndStop(((SHPBDYCI + 2) % SHPBDY) + 2);
take2(it);
}
} else if (shopb4.hitTest(_xmouse, _ymouse, false)) {
if (SHPBDY >= 4) {
_root.msound("placed");
mouse.gotoAndStop(3);
it = attachMovie("item", "it" + indit, 1999);
it.gotoAndStop(((SHPBDYCI + 3) % SHPBDY) + 2);
take2(it);
}
} else if (shopb5.hitTest(_xmouse, _ymouse, false)) {
if (SHPBDY >= 5) {
_root.msound("placed");
mouse.gotoAndStop(3);
it = attachMovie("item", "it" + indit, 1999);
it.gotoAndStop(((SHPBDYCI + 4) % SHPBDY) + 2);
take2(it);
}
} else if (shopw1.hitTest(_xmouse, _ymouse, false)) {
_root.msound("placed");
mouse.gotoAndStop(3);
it = attachMovie("item", "it" + indit, 1999);
it.gotoAndStop(SHPWPCI + 33);
take2(it);
} else if (shopw2.hitTest(_xmouse, _ymouse, false)) {
if (SHPWP >= 2) {
_root.msound("placed");
mouse.gotoAndStop(3);
it = attachMovie("item", "it" + indit, 1999);
it.gotoAndStop(((SHPWPCI + 1) % SHPWP) + 33);
take2(it);
}
} else if (shopw3.hitTest(_xmouse, _ymouse, false)) {
if (SHPWP >= 3) {
_root.msound("placed");
mouse.gotoAndStop(3);
it = attachMovie("item", "it" + indit, 1999);
it.gotoAndStop(((SHPWPCI + 2) % SHPWP) + 33);
take2(it);
}
} else if (shopw4.hitTest(_xmouse, _ymouse, false)) {
if (SHPWP >= 4) {
_root.msound("placed");
mouse.gotoAndStop(3);
it = attachMovie("item", "it" + indit, 1999);
it.gotoAndStop(((SHPWPCI + 3) % SHPWP) + 33);
take2(it);
}
} else if (shopbw1.hitTest(_xmouse, _ymouse, false)) {
_root.msound("placed");
mouse.gotoAndStop(3);
it = attachMovie("item", "it" + indit, 1999);
it.gotoAndStop(SHPBWCI + 50);
take2(it);
} else if (shopbw2.hitTest(_xmouse, _ymouse, false)) {
if (SHPBW >= 2) {
_root.msound("placed");
mouse.gotoAndStop(3);
it = attachMovie("item", "it" + indit, 1999);
it.gotoAndStop(((SHPBWCI + 1) % SHPBW) + 50);
take2(it);
}
} else if (shopbw3.hitTest(_xmouse, _ymouse, false)) {
if (SHPBW >= 3) {
_root.msound("placed");
mouse.gotoAndStop(3);
it = attachMovie("item", "it" + indit, 1999);
it.gotoAndStop(((SHPBWCI + 2) % SHPBW) + 50);
take2(it);
}
} else if (shopbw4.hitTest(_xmouse, _ymouse, false)) {
if (SHPBW >= 4) {
_root.msound("placed");
mouse.gotoAndStop(3);
it = attachMovie("item", "it" + indit, 1999);
it.gotoAndStop(((SHPBWCI + 3) % SHPBW) + 50);
take2(it);
}
} else if (shopt1.hitTest(_xmouse, _ymouse, false)) {
if (SHPTRW >= 1) {
_root.msound("placed");
mouse.gotoAndStop(3);
it = attachMovie("item", "it" + indit, 1999);
it.gotoAndStop(SHPTRWCI + 56);
take2(it);
}
} else if (shopt2.hitTest(_xmouse, _ymouse, false)) {
if (SHPTRW >= 2) {
_root.msound("placed");
mouse.gotoAndStop(3);
it = attachMovie("item", "it" + indit, 1999);
it.gotoAndStop(((SHPTRWCI + 1) % SHPTRW) + 56);
take2(it);
}
} else if (shopt3.hitTest(_xmouse, _ymouse, false)) {
if (SHPTRW >= 3) {
_root.msound("placed");
mouse.gotoAndStop(3);
it = attachMovie("item", "it" + indit, 1999);
it.gotoAndStop(((SHPTRWCI + 2) % SHPTRW) + 56);
take2(it);
}
} else if (shopt4.hitTest(_xmouse, _ymouse, false)) {
if (SHPTRW >= 4) {
_root.msound("placed");
mouse.gotoAndStop(3);
it = attachMovie("item", "it" + indit, 1999);
it.gotoAndStop(((SHPTRWCI + 3) % SHPTRW) + 56);
take2(it);
}
} else if (shopt5.hitTest(_xmouse, _ymouse, false)) {
if (SHPTRW >= 5) {
_root.msound("placed");
mouse.gotoAndStop(3);
it = attachMovie("item", "it" + indit, 1999);
it.gotoAndStop(((SHPTRWCI + 4) % SHPTRW) + 56);
take2(it);
}
}
}
clickd = true;
} else {
if (clickd) {
i = 1;
while (i <= _root.R) {
j = 1;
while (j <= _root.C) {
_root.inv[(("b" + i) + "b") + j].gotoAndStop(1);
j++;
}
i++;
}
if (hold != null) {
flag = true;
it = hold;
it.swapDepths(it.dep);
sx = Math.round((it._x - 283.8) / xdim) + 1;
sy = Math.round((it._y - 274.3) / ydim) + 1;
if ((((sx >= 1) && (((sx + it.X) - 1) <= _root.C)) && (sy >= 1)) && (((sy + it.Y) - 1) <= _root.R)) {
i = sx;
while (i < (sx + it.X)) {
j = sy;
while (j < (sy + it.Y)) {
if (inv[(("b" + j) + "b") + i].taken) {
flag = false;
}
j++;
}
i++;
}
} else {
flag = false;
}
if ((it._currentframe >= 56) && (it._currentframe == inv[(("b" + sy) + "b") + sx].it._currentframe)) {
flag = true;
}
if (flag) {
if ((it._currentframe >= 56) && (it.ix == null)) {
_root.msound("placed");
trwbuy._visible = true;
trwbuy.trow.trow.gotoAndStop(it._currentframe - 54);
trwbuy.buy.text = 1;
tmpontar = onEnterFrame;
s2x = sx;
s2y = sy;
onEnterFrame = function () {
mouse._x = _xmouse;
mouse._y = _ymouse;
mouse.gotoAndStop(1);
if (isNaN(Number(trwbuy.buy.text)) || (Number(trwbuy.buy.text) <= 0)) {
trwbuy.costt.text = "";
} else {
trwbuy.costt.text = (Number(trwbuy.buy.text) * throws[dtd(it._currentframe - 56)].price) + "$";
}
if (trwbuy.invisiblewall.hitTest(_xmouse, _ymouse, false)) {
mouse._visible = false;
} else {
mouse._visible = true;
}
};
onEnterFrame();
} else if ((money >= gbox.cost) || (it.ix != null)) {
if (it.ix == null) {
_root.msound("sold");
money = money - gbox.cost;
updatecash();
} else {
_root.msound("placed");
}
i = sx;
while (i < (sx + it.X)) {
j = sy;
while (j < (sy + it.Y)) {
inv[(("b" + j) + "b") + i].taken = true;
inv[(("b" + j) + "b") + i].it = it;
j++;
}
i++;
}
it._x = 283.8 + ((sx - 1) * xdim);
it._y = 274.3 + ((sy - 1) * ydim);
it.ix = sx;
it.iy = sy;
} else {
it.removeMovieClip();
it = null;
_root.msound("error");
notenoughmoney.gotoAndPlay(2);
}
} else {
if ((it.ix != null) && (it.iy != null)) {
if (shopback.hitTest(_xmouse, _ymouse, false)) {
_root.msound("sold");
if (it._currentframe >= 56) {
money = money + (gbox.cost * it.num.text);
} else {
money = money + gbox.cost;
}
updatecash();
if (it.par != null) {
if (it._currentframe <= 32) {
tmp = it.par;
if (pal1.pal.pal == tmp) {
if (tmp.itarm == it) {
flag = true;
} else {
flag = false;
}
}
if (tmp != null) {
if (pal1.pal.pal == tmp) {
if (flag) {
tmp.itarm = null;
} else {
tmp.itarm2 = null;
}
} else {
tmp.itarm = null;
}
if ((tmp != pal1.pal.pal) || (flag == maina)) {
tmp.iarmor = 33;
tmp.p1.body.gotoAndStop(1);
tmp.p1.legu1.gotoAndStop(1);
tmp.p1.legu2.gotoAndStop(1);
tmp.p1.legd1.gotoAndStop(1);
tmp.p1.legd2.gotoAndStop(1);
tmp.rh.hndd1.gotoAndStop(1);
tmp.lh.hndd2.gotoAndStop(1);
tmp.rh.shldr.gotoAndStop(1);
tmp.lh.shldr.gotoAndStop(1);
tmp.lh.shield.gotoAndStop(1);
}
}
} else if (it._currentframe <= 49) {
tmp = it.par;
if (tmp != null) {
tmp.itwep = null;
tmp.wep = 19;
if (tmp.itbow == null) {
tmp.rh.gotoAndStop(65);
tmp.lh.gotoAndStop(53);
tmp.bow = false;
tmp.rh.weapon.gotoAndStop(1);
} else if (!tmp.bow) {
tmp.rh.gotoAndStop(1);
tmp.lh.gotoAndStop(1);
tmp.bow = true;
}
tmp.both = false;
}
} else if (it._currentframe <= 55) {
tmp = it.par;
if (tmp != null) {
tmp.itbow = null;
tmp.bown = 19;
if (tmp.itwep == null) {
tmp.rh.gotoAndStop(65);
tmp.lh.gotoAndStop(53);
tmp.bow = false;
tmp.rh.weapon.gotoAndStop(1);
} else if (tmp.bow) {
tmp.rh.gotoAndStop(65);
tmp.lh.gotoAndStop(53);
tmp.bow = false;
}
tmp.both = false;
}
}
}
it.removeMovieClip();
it = null;
} else {
if (((!W1.hitTest(_xmouse, _ymouse, false)) && ((!W2.hitTest(_xmouse, _ymouse, false)) || (rama < 2))) && ((!W3.hitTest(_xmouse, _ymouse, false)) || (rama < 3))) {
_root.msound("error");
}
i = it.ix;
while (i < (it.ix + it.X)) {
j = it.iy;
while (j < (it.iy + it.Y)) {
inv[(("b" + j) + "b") + i].taken = true;
inv[(("b" + j) + "b") + i].it = it;
j++;
}
i++;
}
it._x = 283.8 + ((it.ix - 1) * xdim);
it._y = 274.3 + ((it.iy - 1) * ydim);
}
} else {
if ((((sx >= 1) && (((sx + it.X) - 1) <= _root.C)) && (sy >= 1)) && (((sy + it.Y) - 1) <= _root.R)) {
_root.msound("error");
}
if (it._currentframe >= 56) {
if (W1.hitTest(_xmouse, _ymouse, false)) {
flag = true;
i = 1;
while (i <= C) {
j = 1;
while (j <= R) {
if ((!inv[(("b" + j) + "b") + i].taken) || (inv[(("b" + j) + "b") + i].it._currentframe == it._currentframe)) {
flag = false;
s2x = i;
s2y = j;
i = (j = R + C);
trwbuy._visible = true;
trwbuy.trow.trow.gotoAndStop(it._currentframe - 54);
trwbuy.buy.text = 1;
tmpontar = onEnterFrame;
onEnterFrame = function () {
mouse._x = _xmouse;
mouse._y = _ymouse;
mouse.gotoAndStop(1);
if (isNaN(Number(trwbuy.buy.text)) || (Number(trwbuy.buy.text) <= 0)) {
trwbuy.costt.text = "";
} else {
trwbuy.costt.text = (Number(trwbuy.buy.text) * throws[dtd(it._currentframe - 56)].price) + "$";
}
if (trwbuy.invisiblewall.hitTest(_xmouse, _ymouse, false)) {
mouse._visible = false;
} else {
mouse._visible = true;
}
};
onEnterFrame();
}
j++;
}
i++;
}
if (flag) {
_root.msound("error");
inventoryisfull.gotoAndPlay(2);
it.removeMovieClip();
it = null;
}
} else {
it.removeMovieClip();
it = null;
}
} else if ((W1.hitTest(_xmouse, _ymouse, false) || (W2.hitTest(_xmouse, _ymouse, false) && (rama >= 2))) || (W3.hitTest(_xmouse, _ymouse, false) && (rama >= 3))) {
if (money >= it.cost) {
i = 1;
while (i <= ((C - it.X) + 1)) {
j = 1;
while (j <= ((R - it.Y) + 1)) {
flag = true;
ii = i;
while (ii < (i + it.X)) {
jj = j;
while (jj < (j + it.Y)) {
if (inv[(("b" + jj) + "b") + ii].taken) {
flag = false;
}
jj++;
}
ii++;
}
if (flag) {
_root.msound("sold");
money = money - it.cost;
updatecash();
it.ix = i;
it.iy = j;
ii = i;
while (ii < (i + it.X)) {
jj = j;
while (jj < (j + it.Y)) {
inv[(("b" + jj) + "b") + ii].taken = true;
inv[(("b" + jj) + "b") + ii].it = it;
jj++;
}
ii++;
}
it.par = null;
it._x = 283.8 + ((it.ix - 1) * xdim);
it._y = 274.3 + ((it.iy - 1) * ydim);
i = (j = R + C);
}
j++;
}
i++;
}
if (!flag) {
_root.msound("error");
inventoryisfull.gotoAndPlay(2);
it.removeMovieClip();
it = null;
}
} else {
it.removeMovieClip();
it = null;
_root.msound("error");
notenoughmoney.gotoAndPlay(2);
}
} else {
it.removeMovieClip();
it = null;
}
}
if (it != null) {
if (W1.hitTest(_xmouse, _ymouse, false)) {
_root.msound("placed");
p = pal1.pal.pal;
if (it._currentframe <= 32) {
tmp = it.par;
if (p == tmp) {
if (tmp.itarm == it) {
flag = true;
} else {
flag = false;
}
}
if (maina) {
tmp2 = p.itarm;
if (p.itarm != null) {
p.itarm.par = it.par;
}
it.par = p;
p.itarm = it;
} else {
tmp2 = p.itarm2;
if (p.itarm2 != null) {
p.itarm2.par = it.par;
}
it.par = p;
p.itarm2 = it;
}
if (tmp != null) {
if (p == tmp) {
if (flag) {
tmp.itarm = tmp2;
} else {
tmp.itarm2 = tmp2;
}
} else {
tmp.itarm = tmp2;
}
if (tmp2 == null) {
tmp.iarmor = 33;
} else {
tmp.iarmor = tmp2._currentframe;
}
tmp.p1.body.gotoAndStop(1);
tmp.p1.legu1.gotoAndStop(1);
tmp.p1.legu2.gotoAndStop(1);
tmp.p1.legd1.gotoAndStop(1);
tmp.p1.legd2.gotoAndStop(1);
tmp.rh.hndd1.gotoAndStop(1);
tmp.lh.hndd2.gotoAndStop(1);
tmp.rh.shldr.gotoAndStop(1);
tmp.lh.shldr.gotoAndStop(1);
tmp.lh.shield.gotoAndStop(1);
}
p.iarmor = it._currentframe;
p.p1.body.gotoAndStop(1);
p.p1.legu1.gotoAndStop(1);
p.p1.legu2.gotoAndStop(1);
p.p1.legd1.gotoAndStop(1);
p.p1.legd2.gotoAndStop(1);
p.rh.hndd1.gotoAndStop(1);
p.lh.hndd2.gotoAndStop(1);
p.rh.shldr.gotoAndStop(1);
p.lh.shldr.gotoAndStop(1);
p.lh.shield.gotoAndStop(1);
} else if (it._currentframe <= 49) {
tmp = it.par;
tmp2 = p.itwep;
if (p.itwep != null) {
p.itwep.par = it.par;
}
it.par = p;
p.itwep = it;
p.wep = it._currentframe - 31;
if (p.bow) {
p.rh.gotoAndStop(65);
p.lh.gotoAndStop(53);
p.bow = false;
}
p.rh.weapon.gotoAndStop(1);
if (tmp != null) {
tmp.itwep = tmp2;
if (tmp2 == null) {
tmp.wep = 19;
if (tmp.itbow == null) {
tmp.rh.gotoAndStop(65);
tmp.lh.gotoAndStop(53);
tmp.bow = false;
tmp.rh.weapon.gotoAndStop(1);
} else if (!tmp.bow) {
tmp.rh.gotoAndStop(1);
tmp.lh.gotoAndStop(1);
tmp.bow = true;
}
} else {
tmp.wep = tmp2._currentframe - 31;
if (tmp.bow) {
tmp.rh.gotoAndStop(65);
tmp.lh.gotoAndStop(53);
tmp.bow = false;
}
tmp.rh.weapon.gotoAndStop(1);
}
if ((tmp.itwep != null) && (tmp.itbow != null)) {
tmp.both = true;
} else {
tmp.both = false;
}
}
if ((p.itwep != null) && (p.itbow != null)) {
p.both = true;
} else {
p.both = false;
}
} else if (it._currentframe <= 55) {
tmp = it.par;
tmp2 = p.itbow;
if (p.itbow != null) {
p.itbow.par = it.par;
}
it.par = p;
p.itbow = it;
p.bown = it._currentframe - 48;
if (!p.bow) {
p.rh.gotoAndStop(1);
p.lh.gotoAndStop(1);
p.bow = true;
}
p.lh.bow.gotoAndStop(1);
if (tmp != null) {
tmp.itbow = tmp2;
if (tmp2 == null) {
tmp.bown = 19;
if (tmp.itwep == null) {
tmp.rh.gotoAndStop(65);
tmp.lh.gotoAndStop(53);
tmp.bow = false;
tmp.rh.weapon.gotoAndStop(1);
} else if (tmp.bow) {
tmp.rh.gotoAndStop(65);
tmp.lh.gotoAndStop(53);
tmp.bow = false;
}
} else {
tmp.bown = tmp2._currentframe - 48;
if (!tmp.bow) {
tmp.rh.gotoAndStop(1);
tmp.lh.gotoAndStop(1);
tmp.bow = true;
}
tmp.lh.bow.gotoAndStop(1);
}
if ((tmp.itwep != null) && (tmp.itbow != null)) {
tmp.both = true;
} else {
tmp.both = false;
}
}
if ((p.itwep != null) && (p.itbow != null)) {
p.both = true;
} else {
p.both = false;
}
}
} else if (W2.hitTest(_xmouse, _ymouse, false) && (rama >= 2)) {
_root.msound("placed");
p = pal2.pal.pal;
if (it._currentframe <= 32) {
tmp = it.par;
if (pal1.pal.pal == tmp) {
if (tmp.itarm == it) {
flag = true;
} else {
flag = false;
}
}
tmp2 = p.itarm;
if (p.itarm != null) {
p.itarm.par = it.par;
}
it.par = p;
p.itarm = it;
if (tmp != null) {
if (pal1.pal.pal == tmp) {
if (flag) {
tmp.itarm = tmp2;
} else {
tmp.itarm2 = tmp2;
}
} else {
tmp.itarm = tmp2;
}
if ((tmp != pal1.pal.pal) || (flag == maina)) {
if (tmp2 == null) {
tmp.iarmor = 33;
} else {
tmp.iarmor = tmp2._currentframe;
}
tmp.p1.body.gotoAndStop(1);
tmp.p1.legu1.gotoAndStop(1);
tmp.p1.legu2.gotoAndStop(1);
tmp.p1.legd1.gotoAndStop(1);
tmp.p1.legd2.gotoAndStop(1);
tmp.rh.hndd1.gotoAndStop(1);
tmp.lh.hndd2.gotoAndStop(1);
tmp.rh.shldr.gotoAndStop(1);
tmp.lh.shldr.gotoAndStop(1);
tmp.lh.shield.gotoAndStop(1);
}
}
p.iarmor = it._currentframe;
p.p1.body.gotoAndStop(1);
p.p1.legu1.gotoAndStop(1);
p.p1.legu2.gotoAndStop(1);
p.p1.legd1.gotoAndStop(1);
p.p1.legd2.gotoAndStop(1);
p.rh.hndd1.gotoAndStop(1);
p.lh.hndd2.gotoAndStop(1);
p.rh.shldr.gotoAndStop(1);
p.lh.shldr.gotoAndStop(1);
p.lh.shield.gotoAndStop(1);
} else if (it._currentframe <= 49) {
tmp = it.par;
tmp2 = p.itwep;
if (p.itwep != null) {
p.itwep.par = it.par;
}
it.par = p;
p.itwep = it;
p.wep = it._currentframe - 31;
if (p.bow) {
p.rh.gotoAndStop(65);
p.lh.gotoAndStop(53);
p.bow = false;
}
p.rh.weapon.gotoAndStop(1);
if (tmp != null) {
tmp.itwep = tmp2;
if (tmp2 == null) {
tmp.wep = 19;
if (tmp.itbow == null) {
tmp.rh.gotoAndStop(65);
tmp.lh.gotoAndStop(53);
tmp.bow = false;
tmp.rh.weapon.gotoAndStop(1);
} else if (!tmp.bow) {
tmp.rh.gotoAndStop(1);
tmp.lh.gotoAndStop(1);
tmp.bow = true;
}
} else {
tmp.wep = tmp2._currentframe - 31;
if (tmp.bow) {
tmp.rh.gotoAndStop(65);
tmp.lh.gotoAndStop(53);
tmp.bow = false;
}
tmp.rh.weapon.gotoAndStop(1);
}
if ((tmp.itwep != null) && (tmp.itbow != null)) {
tmp.both = true;
} else {
tmp.both = false;
}
}
if ((p.itwep != null) && (p.itbow != null)) {
p.both = true;
} else {
p.both = false;
}
} else if (it._currentframe <= 55) {
tmp = it.par;
tmp2 = p.itbow;
if (p.itbow != null) {
p.itbow.par = it.par;
}
it.par = p;
p.itbow = it;
p.bown = it._currentframe - 48;
if (!p.bow) {
p.rh.gotoAndStop(1);
p.lh.gotoAndStop(1);
p.bow = true;
}
p.lh.bow.gotoAndStop(1);
if (tmp != null) {
tmp.itbow = tmp2;
if (tmp2 == null) {
tmp.bown = 19;
if (tmp.itwep == null) {
tmp.rh.gotoAndStop(65);
tmp.lh.gotoAndStop(53);
tmp.bow = false;
tmp.rh.weapon.gotoAndStop(1);
} else if (tmp.bow) {
tmp.rh.gotoAndStop(65);
tmp.lh.gotoAndStop(53);
tmp.bow = false;
}
} else {
tmp.bown = tmp2._currentframe - 48;
if (!tmp.bow) {
tmp.rh.gotoAndStop(1);
tmp.lh.gotoAndStop(1);
tmp.bow = true;
}
tmp.lh.bow.gotoAndStop(1);
}
if ((tmp.itwep != null) && (tmp.itbow != null)) {
tmp.both = true;
} else {
tmp.both = false;
}
}
if ((p.itwep != null) && (p.itbow != null)) {
p.both = true;
} else {
p.both = false;
}
}
} else if (W3.hitTest(_xmouse, _ymouse, false) && (rama >= 3)) {
_root.msound("placed");
p = pal3.pal.pal;
if (it._currentframe <= 32) {
tmp = it.par;
if (pal1.pal.pal == tmp) {
if (tmp.itarm == it) {
flag = true;
} else {
flag = false;
}
}
tmp2 = p.itarm;
if (p.itarm != null) {
p.itarm.par = it.par;
}
it.par = p;
p.itarm = it;
if (tmp != null) {
if (pal1.pal.pal == tmp) {
if (flag) {
tmp.itarm = tmp2;
} else {
tmp.itarm2 = tmp2;
}
} else {
tmp.itarm = tmp2;
}
if ((tmp != pal1.pal.pal) || (flag == maina)) {
if (tmp2 == null) {
tmp.iarmor = 33;
} else {
tmp.iarmor = tmp2._currentframe;
}
tmp.p1.body.gotoAndStop(1);
tmp.p1.legu1.gotoAndStop(1);
tmp.p1.legu2.gotoAndStop(1);
tmp.p1.legd1.gotoAndStop(1);
tmp.p1.legd2.gotoAndStop(1);
tmp.rh.hndd1.gotoAndStop(1);
tmp.lh.hndd2.gotoAndStop(1);
tmp.rh.shldr.gotoAndStop(1);
tmp.lh.shldr.gotoAndStop(1);
tmp.lh.shield.gotoAndStop(1);
}
}
p.iarmor = it._currentframe;
p.p1.body.gotoAndStop(1);
p.p1.legu1.gotoAndStop(1);
p.p1.legu2.gotoAndStop(1);
p.p1.legd1.gotoAndStop(1);
p.p1.legd2.gotoAndStop(1);
p.rh.hndd1.gotoAndStop(1);
p.lh.hndd2.gotoAndStop(1);
p.rh.shldr.gotoAndStop(1);
p.lh.shldr.gotoAndStop(1);
p.lh.shield.gotoAndStop(1);
} else if (it._currentframe <= 49) {
tmp = it.par;
tmp2 = p.itwep;
if (p.itwep != null) {
p.itwep.par = it.par;
}
it.par = p;
p.itwep = it;
p.wep = it._currentframe - 31;
if (p.bow) {
p.rh.gotoAndStop(65);
p.lh.gotoAndStop(53);
p.bow = false;
}
p.rh.weapon.gotoAndStop(1);
if (tmp != null) {
tmp.itwep = tmp2;
if (tmp2 == null) {
tmp.wep = 19;
if (tmp.itbow == null) {
tmp.rh.gotoAndStop(65);
tmp.lh.gotoAndStop(53);
tmp.bow = false;
tmp.rh.weapon.gotoAndStop(1);
} else if (!tmp.bow) {
tmp.rh.gotoAndStop(1);
tmp.lh.gotoAndStop(1);
tmp.bow = true;
}
} else {
tmp.wep = tmp2._currentframe - 31;
if (tmp.bow) {
tmp.rh.gotoAndStop(65);
tmp.lh.gotoAndStop(53);
tmp.bow = false;
}
tmp.rh.weapon.gotoAndStop(1);
}
if ((tmp.itwep != null) && (tmp.itbow != null)) {
tmp.both = true;
} else {
tmp.both = false;
}
}
if ((p.itwep != null) && (p.itbow != null)) {
p.both = true;
} else {
p.both = false;
}
} else if (it._currentframe <= 55) {
tmp = it.par;
tmp2 = p.itbow;
if (p.itbow != null) {
p.itbow.par = it.par;
}
it.par = p;
p.itbow = it;
p.bown = it._currentframe - 48;
if (!p.bow) {
p.rh.gotoAndStop(1);
p.lh.gotoAndStop(1);
p.bow = true;
}
p.lh.bow.gotoAndStop(1);
if (tmp != null) {
tmp.itbow = tmp2;
if (tmp2 == null) {
tmp.bown = 19;
if (tmp.itwep == null) {
tmp.rh.gotoAndStop(65);
tmp.lh.gotoAndStop(53);
tmp.bow = false;
tmp.rh.weapon.gotoAndStop(1);
} else if (tmp.bow) {
tmp.rh.gotoAndStop(65);
tmp.lh.gotoAndStop(53);
tmp.bow = false;
}
} else {
tmp.bown = tmp2._currentframe - 48;
if (!tmp.bow) {
tmp.rh.gotoAndStop(1);
tmp.lh.gotoAndStop(1);
tmp.bow = true;
}
tmp.lh.bow.gotoAndStop(1);
}
if ((tmp.itwep != null) && (tmp.itbow != null)) {
tmp.both = true;
} else {
tmp.both = false;
}
}
if ((p.itwep != null) && (p.itbow != null)) {
p.both = true;
} else {
p.both = false;
}
}
}
}
}
}
sx = Math.round((_xmouse - 283.8) / xdim) + 1;
sy = Math.round((_ymouse - 274.3) / ydim) + 1;
if (((((sx >= 1) && (sx <= C)) && (sy >= 1)) && (sy <= R)) && (inv[(("b" + sy) + "b") + sx].taken)) {
inv[(("b" + sy) + "b") + sx].it.par._parent.bl.gotoAndStop(2);
mouse.gotoAndStop(2);
} else {
mouse.gotoAndStop(1);
}
}
hold = null;
clickd = false;
}
if (hold != null) {
it = hold;
if (it._currentframe <= 32) {
gbox.gotoAndStop(2);
gbox.armor.gotoAndStop(it._currentframe);
if (gbox.cost != undefined) {
it.cost = gbox.cost;
}
} else if (it._currentframe <= 49) {
gbox.gotoAndStop(3);
gbox.weapon.weapon.gotoAndStop(it._currentframe - 31);
if (gbox.cost != undefined) {
it.cost = gbox.cost;
}
} else if (it._currentframe <= 55) {
gbox.gotoAndStop(4);
gbox.bow.bow.gotoAndStop(it._currentframe - 48);
if (gbox.cost != undefined) {
it.cost = gbox.cost;
}
} else {
gbox.gotoAndStop(5);
gbox.trow.trow.gotoAndStop(it._currentframe - 54);
if (gbox.cost != undefined) {
it.cost = gbox.cost;
}
}
}
if (W1.hitTest(_xmouse, _ymouse, false)) {
pal1.pal.bl.gotoAndStop(2);
pal2.pal.bl.gotoAndStop(1);
pal3.pal.bl.gotoAndStop(1);
if (lastW != 1) {
_root.msound("wuwm");
i = 1;
while (i <= C) {
j = 1;
while (j <= R) {
inv[(("b" + j) + "b") + i].gotoAndStop(1);
j++;
}
i++;
}
}
p = pal1.pal.pal;
it2 = p.itbow;
i = it2.ix;
while (i < (it2.ix + it2.X)) {
j = it2.iy;
while (j < (it2.iy + it2.Y)) {
inv[(("b" + j) + "b") + i].gotoAndStop(3);
j++;
}
i++;
}
it2 = p.itwep;
i = it2.ix;
while (i < (it2.ix + it2.X)) {
j = it2.iy;
while (j < (it2.iy + it2.Y)) {
inv[(("b" + j) + "b") + i].gotoAndStop(3);
j++;
}
i++;
}
it2 = p.itarm;
i = it2.ix;
while (i < (it2.ix + it2.X)) {
j = it2.iy;
while (j < (it2.iy + it2.Y)) {
inv[(("b" + j) + "b") + i].gotoAndStop(3);
j++;
}
i++;
}
it2 = p.itarm2;
i = it2.ix;
while (i < (it2.ix + it2.X)) {
j = it2.iy;
while (j < (it2.iy + it2.Y)) {
inv[(("b" + j) + "b") + i].gotoAndStop(3);
j++;
}
i++;
}
gbox.gotoAndStop(6);
lastW = 1;
} else if (W2.hitTest(_xmouse, _ymouse, false) && (rama >= 2)) {
pal1.pal.bl.gotoAndStop(1);
pal2.pal.bl.gotoAndStop(2);
pal3.pal.bl.gotoAndStop(1);
if (lastW != 2) {
_root.msound("wuwm");
i = 1;
while (i <= C) {
j = 1;
while (j <= R) {
inv[(("b" + j) + "b") + i].gotoAndStop(1);
j++;
}
i++;
}
}
p = pal2.pal.pal;
it2 = p.itbow;
i = it2.ix;
while (i < (it2.ix + it2.X)) {
j = it2.iy;
while (j < (it2.iy + it2.Y)) {
inv[(("b" + j) + "b") + i].gotoAndStop(3);
j++;
}
i++;
}
it2 = p.itwep;
i = it2.ix;
while (i < (it2.ix + it2.X)) {
j = it2.iy;
while (j < (it2.iy + it2.Y)) {
inv[(("b" + j) + "b") + i].gotoAndStop(3);
j++;
}
i++;
}
it2 = p.itarm;
i = it2.ix;
while (i < (it2.ix + it2.X)) {
j = it2.iy;
while (j < (it2.iy + it2.Y)) {
inv[(("b" + j) + "b") + i].gotoAndStop(3);
j++;
}
i++;
}
gbox.gotoAndStop(7);
lastW = 2;
} else if (W3.hitTest(_xmouse, _ymouse, false) && (rama >= 3)) {
pal1.pal.bl.gotoAndStop(1);
pal2.pal.bl.gotoAndStop(1);
pal3.pal.bl.gotoAndStop(2);
if (lastW != 3) {
_root.msound("wuwm");
i = 1;
while (i <= C) {
j = 1;
while (j <= R) {
inv[(("b" + j) + "b") + i].gotoAndStop(1);
j++;
}
i++;
}
}
p = pal3.pal.pal;
it2 = p.itbow;
i = it2.ix;
while (i < (it2.ix + it2.X)) {
j = it2.iy;
while (j < (it2.iy + it2.Y)) {
inv[(("b" + j) + "b") + i].gotoAndStop(3);
j++;
}
i++;
}
it2 = p.itwep;
i = it2.ix;
while (i < (it2.ix + it2.X)) {
j = it2.iy;
while (j < (it2.iy + it2.Y)) {
inv[(("b" + j) + "b") + i].gotoAndStop(3);
j++;
}
i++;
}
it2 = p.itarm;
i = it2.ix;
while (i < (it2.ix + it2.X)) {
j = it2.iy;
while (j < (it2.iy + it2.Y)) {
inv[(("b" + j) + "b") + i].gotoAndStop(3);
j++;
}
i++;
}
gbox.gotoAndStop(8);
lastW = 3;
} else {
if (lastW) {
i = 1;
while (i <= C) {
j = 1;
while (j <= R) {
inv[(("b" + j) + "b") + i].gotoAndStop(1);
j++;
}
i++;
}
}
lastW = false;
}
};
take = function (it) {
it._x = 283.8 + ((it.ix - 1) * xdim);
it._y = 274.3 + ((it.iy - 1) * ydim);
i = it.ix;
while (i < (it.ix + it.X)) {
j = it.iy;
while (j < (it.iy + it.Y)) {
inv[(("b" + j) + "b") + i].taken = true;
inv[(("b" + j) + "b") + i].it = it;
j++;
}
i++;
}
};
take2 = function (it) {
it.dep = indit;
indit++;
it.ix = null;
it.iy = null;
it.X = sizes[it._currentframe - 2].X;
it.Y = sizes[it._currentframe - 2].Y;
xch = ((-(it.X - 2)) * xdim) / 2;
ych = ((-(it.Y - 1)) * ydim) / 2;
it._x = _xmouse + xch;
it._y = _ymouse + ych;
hold = it;
};
mouse.removeMovieClip();
attachMovie("newwar", "newwar", 3699);
attachMovie("mousehand", "mouse", 4000);
mouse._x = _xmouse;
mouse._y = _ymouse;
attachMovie("trwbuy", "trwbuy", 2000, {_x:272.3, _y:135.1});
attachMovie("notenoughmoney", "notenoughmoney", 3000, {_x:320.3, _y:240});
attachMovie("inventoryisfull", "inventoryisfull", 3001, {_x:320.3, _y:240});
R = 6;
C = 13;
xdim = 27.5;
ydim = 27;
hold = null;
i = 1;
while (i < C) {
j = 1;
while (j < R) {
inv[(("b" + i) + "b") + j].taken = false;
inv[(("b" + i) + "b") + j].it = null;
j++;
}
i++;
}
indit = 107;
p = pal1.pal.pal;
p.gotoAndStop(1);
p.bow = false;
p.rh.gotoAndStop(65);
p.lh.gotoAndStop(53);
p.ihead = head1;
p.iarmor = 33;
p.wep = 19;
p.bown = 19;
p.both = false;
p.itbow = null;
p.itwep = null;
p.itarm = null;
p.itarm2 = null;
p.onEnterFrame = function () {
if (this.bow) {
this.lh.bow._rotation = (this.rh._rotation - this.lh._rotation) + 34.55;
if ((this.lh._currentframe >= 67) && (this.lh._currentframe <= 79)) {
this.lh.bow._rotation = this.lh.bow._rotation + (((79 - this.lh._currentframe) * 90) / 13);
}
}
if (this.bow && (this.rh._currentframe == 6)) {
this.rh.gotoAndPlay(9);
}
if ((Math.random() > 0.98) && ((this.itwep != null) || (this.itbow != null))) {
if (this.both && (Math.random() > 0.7)) {
if (this.bow) {
if ((this.rh._currentframe == 1) && (this.lh._currentframe == 1)) {
this.rh.gotoAndPlay(34);
this.lh.gotoAndPlay(34);
this.bow = false;
}
} else if ((this.rh._currentframe == 65) && (this.lh._currentframe == 53)) {
this.rh.gotoAndPlay(159);
this.lh.gotoAndPlay(55);
this.bow = true;
}
} else if (this.bow) {
if ((this.rh._currentframe == 1) && (this.lh._currentframe == 1)) {
this.lh.play();
this.rh.play();
this.lh.bow.bow.play();
} else if (this.rh._currentframe == 159) {
this.rh.play();
}
} else if ((this.rh._currentframe == 65) && (this.lh._currentframe == 53)) {
rand = random(5);
switch (rand) {
case 0 :
this.rh.gotoAndPlay(66);
break;
case 1 :
this.rh.gotoAndPlay(82);
break;
case 2 :
this.rh.gotoAndPlay(102);
break;
case 3 :
this.rh.gotoAndPlay(125);
break;
case 4 :
this.rh.gotoAndPlay(143);
}
} else if ((((((this.rh._currentframe == 66) || (this.rh._currentframe == 82)) || (this.rh._currentframe == 102)) || (this.rh._currentframe == 125)) || (this.rh._currentframe == 143)) || (this.rh._currentframe == 34)) {
this.rh.play();
} else if (this.lh._currentframe == 34) {
this.lh.play();
}
}
};
p = pal2.pal.pal;
p.gotoAndStop(1);
p.bow = false;
p.rh.gotoAndStop(65);
p.lh.gotoAndStop(53);
p.ihead = head2;
p.iarmor = 33;
p.wep = 19;
p.bown = 19;
p.both = false;
p.itbow = null;
p.itwep = null;
p.itarm = null;
p.onEnterFrame = function () {
if (this.bow) {
this.lh.bow._rotation = (this.rh._rotation - this.lh._rotation) + 34.55;
if ((this.lh._currentframe >= 67) && (this.lh._currentframe <= 79)) {
this.lh.bow._rotation = this.lh.bow._rotation + (((79 - this.lh._currentframe) * 90) / 13);
}
}
if (this.bow && (this.rh._currentframe == 6)) {
this.rh.gotoAndPlay(9);
}
if ((Math.random() > 0.98) && ((this.itwep != null) || (this.itbow != null))) {
if (this.both && (Math.random() > 0.7)) {
if (this.bow) {
if ((this.rh._currentframe == 1) && (this.lh._currentframe == 1)) {
this.rh.gotoAndPlay(34);
this.lh.gotoAndPlay(34);
this.bow = false;
}
} else if ((this.rh._currentframe == 65) && (this.lh._currentframe == 53)) {
this.rh.gotoAndPlay(159);
this.lh.gotoAndPlay(55);
this.bow = true;
}
} else if (this.bow) {
if ((this.rh._currentframe == 1) && (this.lh._currentframe == 1)) {
this.lh.play();
this.rh.play();
this.lh.bow.bow.play();
} else if (this.rh._currentframe == 159) {
this.rh.play();
}
} else if ((this.rh._currentframe == 65) && (this.lh._currentframe == 53)) {
rand = random(5);
switch (rand) {
case 0 :
this.rh.gotoAndPlay(66);
break;
case 1 :
this.rh.gotoAndPlay(82);
break;
case 2 :
this.rh.gotoAndPlay(102);
break;
case 3 :
this.rh.gotoAndPlay(125);
break;
case 4 :
this.rh.gotoAndPlay(143);
}
} else if ((((((this.rh._currentframe == 66) || (this.rh._currentframe == 82)) || (this.rh._currentframe == 102)) || (this.rh._currentframe == 125)) || (this.rh._currentframe == 143)) || (this.rh._currentframe == 34)) {
this.rh.play();
} else if (this.lh._currentframe == 34) {
this.lh.play();
}
}
};
p = pal3.pal.pal;
p.gotoAndStop(1);
p.bow = false;
p.rh.gotoAndStop(65);
p.lh.gotoAndStop(53);
p.ihead = head3;
p.iarmor = 33;
p.wep = 19;
p.bown = 19;
p.both = false;
p.itbow = null;
p.itwep = null;
p.itarm = null;
p.onEnterFrame = function () {
if (this.bow) {
this.lh.bow._rotation = (this.rh._rotation - this.lh._rotation) + 34.55;
if ((this.lh._currentframe >= 67) && (this.lh._currentframe <= 79)) {
this.lh.bow._rotation = this.lh.bow._rotation + (((79 - this.lh._currentframe) * 90) / 13);
}
}
if (this.bow && (this.rh._currentframe == 6)) {
this.rh.gotoAndPlay(9);
}
if ((Math.random() > 0.98) && ((this.itwep != null) || (this.itbow != null))) {
if (this.both && (Math.random() > 0.7)) {
if (this.bow) {
if ((this.rh._currentframe == 1) && (this.lh._currentframe == 1)) {
this.rh.gotoAndPlay(34);
this.lh.gotoAndPlay(34);
this.bow = false;
}
} else if ((this.rh._currentframe == 65) && (this.lh._currentframe == 53)) {
this.rh.gotoAndPlay(159);
this.lh.gotoAndPlay(55);
this.bow = true;
}
} else if (this.bow) {
if ((this.rh._currentframe == 1) && (this.lh._currentframe == 1)) {
this.lh.play();
this.rh.play();
this.lh.bow.bow.play();
} else if (this.rh._currentframe == 159) {
this.rh.play();
}
} else if ((this.rh._currentframe == 65) && (this.lh._currentframe == 53)) {
rand = random(5);
switch (rand) {
case 0 :
this.rh.gotoAndPlay(66);
break;
case 1 :
this.rh.gotoAndPlay(82);
break;
case 2 :
this.rh.gotoAndPlay(102);
break;
case 3 :
this.rh.gotoAndPlay(125);
break;
case 4 :
this.rh.gotoAndPlay(143);
}
} else if ((((((this.rh._currentframe == 66) || (this.rh._currentframe == 82)) || (this.rh._currentframe == 102)) || (this.rh._currentframe == 125)) || (this.rh._currentframe == 143)) || (this.rh._currentframe == 34)) {
this.rh.play();
} else if (this.lh._currentframe == 34) {
this.lh.play();
}
}
};
ij = 0;
while (ij < itemsnum) {
tmp = itemsa[ij];
flag = true;
if (tmp.fr >= 56) {
zzztmp = tmp.fr - 55;
if (zzztmp >= 3) {
zzztmp++;
}
iaia = 1;
while (iaia <= 6) {
if (_root["w" + iaia] == zzztmp) {
tmp.num = _root[("w" + iaia) + "n"];
iaia = 8;
}
iaia++;
}
if (iaia != 9) {
tmp.num = 0;
}
if (tmp.num == 0) {
flag = false;
}
}
if (flag) {
tmp2 = attachMovie("item", ["it" + indit], indit);
tmp2.gotoAndStop(tmp.fr);
tmp2.ix = tmp.ix;
tmp2.iy = tmp.iy;
tmp2.X = sizes[tmp.fr - 2].X;
tmp2.Y = sizes[tmp.fr - 2].Y;
tmp2.dep = indit;
if (tmp.fr >= 56) {
tmp2.num.text = tmp.num;
}
indit++;
take(tmp2);
if (tmp.p) {
tmp2.par = _root["pal" + tmp.p].pal.pal;
if (tmp.fr <= 32) {
if ((tmp.p == 1) && (tmp.arm2)) {
tmp2.par.itarm2 = tmp2;
} else {
tmp2.par.itarm = tmp2;
tmp2.par.iarmor = tmp.fr;
tmp2.par.p1.body.gotoAndStop(1);
tmp2.par.p1.legu1.gotoAndStop(1);
tmp2.par.p1.legu2.gotoAndStop(1);
tmp2.par.p1.legd1.gotoAndStop(1);
tmp2.par.p1.legd2.gotoAndStop(1);
tmp2.par.rh.hndd1.gotoAndStop(1);
tmp2.par.lh.hndd2.gotoAndStop(1);
tmp2.par.rh.shldr.gotoAndStop(1);
tmp2.par.lh.shldr.gotoAndStop(1);
tmp2.par.lh.shield.gotoAndStop(1);
}
} else if (tmp.fr <= 49) {
tmp2.par.itwep = tmp2;
tmp2.par.wep = tmp.fr - 31;
} else if (tmp.fr <= 55) {
tmp2.par.itbow = tmp2;
tmp2.par.bown = tmp.fr - 48;
}
} else {
tmp2.par = null;
}
}
ij++;
}
i = 1;
while (i <= 3) {
p = _root["pal" + i].pal.pal;
if (p.wep != 19) {
p.rh.gotoAndStop(65);
p.lh.gotoAndStop(53);
p.bow = false;
p.rh.weapon.gotoAndStop(1);
} else if (p.bown != 19) {
p.rh.gotoAndStop(1);
p.lh.gotoAndStop(1);
p.bow = true;
} else {
p.rh.gotoAndStop(65);
p.lh.gotoAndStop(53);
p.bow = false;
}
if ((p.wep != 19) && (p.bown != 19)) {
p.both = true;
}
i++;
}
dtd = function (num) {
if (num == 0) {
return(0);
}
if (num == 1) {
return(1);
}
if (num == 2) {
return(3);
}
if (num == 3) {
return(4);
}
if (num == 4) {
return(5);
}
};
if (secondw || (thirdw)) {
if (secondw) {
_root.savefile.data.head2 = 3;
rama = 2;
} else {
rama = 3;
_root.savefile.data.head3 = 3;
}
_root.savefile.data.rama = _root.rama;
newwar._visible = true;
entef = function () {
mouse._x = _xmouse;
mouse._y = _ymouse;
};
} else {
entef = onst;
newwar._visible = false;
}
Mouse.hide();
aquid = function () {
aquid1 = true;
aquid2 = true;
aquid3 = true;
if ((isNaN(palpa1.iarmor) && (isNaN(palpa1.iarmor2))) || (isNaN(palpa1.wep) && (isNaN(palpa1.bown)))) {
aquid1 = false;
}
if (isNaN(palpa2.iarmor) || (isNaN(palpa2.wep) && (isNaN(palpa2.bown)))) {
aquid2 = false;
}
if (isNaN(palpa3.iarmor) || (isNaN(palpa3.wep) && (isNaN(palpa3.bown)))) {
aquid3 = false;
}
};
Frame 8
stop();
onMouseDown = function () {
gotoAndStop (7);
delete onMouseDown;
};
Frame 9
_quality = "HIGH";
bu.gotoAndStop(1);
bd.gotoAndStop(1);
if (levelsstate == 21) {
lockopen = false;
lvls.lvls.gotoAndStop(1061);
} else if (lockopen) {
lvls.lvls.gotoAndStop((levelsstate * 53) - 51);
} else {
lvls.lvls.gotoAndStop((levelsstate * 53) + 1);
}
lvls.lvls._y = Math.max(-210, Math.min(172.2, 420 - (69 * Math.ceil(levelsstate / 2))));
onEnterFrame = function () {
mouse._x = _xmouse;
mouse._y = _ymouse;
_alpha = (_alpha + 10);
if (_alpha >= 100) {
_alpha = 100;
if (lockopen) {
lockopen = false;
lvls.lvls.play();
}
onEnterFrame = function () {
mouse._x = _xmouse;
mouse._y = _ymouse;
if (bu.hitTest(_xmouse, _ymouse, false)) {
if (lvls.lvls._y < 172.2) {
lvls.lvls._y = lvls.lvls._y + 12;
}
bu.gotoAndStop(2);
} else {
bu.gotoAndStop(1);
}
if (bd.hitTest(_xmouse, _ymouse, false)) {
if (lvls.lvls._y > -210) {
lvls.lvls._y = lvls.lvls._y - 12;
}
bd.gotoAndStop(2);
} else {
bd.gotoAndStop(1);
}
};
}
};
Frame 10
gotoAndStop (7);
Frame 11
stop();
lfunc = function () {
carr = new Array(15);
carr[0] = new Object();
carr[0].x = -299.25;
carr[0].y = 682.15;
carr[0].n = 1;
carr[0].k1 = 2;
carr[1] = new Object();
carr[1].x = 192.45;
carr[1].y = 682.15;
carr[1].n = 4;
carr[1].k1 = 1;
carr[1].k2 = 3;
carr[1].k3 = 5;
carr[1].k4 = 6;
carr[2] = new Object();
carr[2].x = 724.7;
carr[2].y = 682.15;
carr[2].n = 1;
carr[2].k1 = 2;
carr[3] = new Object();
carr[3].x = -168.05;
carr[3].y = 389.95;
carr[3].n = 2;
carr[3].k1 = 5;
carr[3].k2 = 8;
carr[4] = new Object();
carr[4].x = 70.05;
carr[4].y = 541.45;
carr[4].n = 2;
carr[4].k1 = 2;
carr[4].k2 = 4;
carr[5] = new Object();
carr[5].x = 317.9;
carr[5].y = 541.45;
carr[5].n = 2;
carr[5].k1 = 2;
carr[5].k2 = 7;
carr[6] = new Object();
carr[6].x = 712.6;
carr[6].y = 409.95;
carr[6].n = 2;
carr[6].k1 = 6;
carr[6].k2 = 9;
carr[7] = new Object();
carr[7].x = 8.4;
carr[7].y = 285.85;
carr[7].n = 2;
carr[7].k1 = 4;
carr[7].k2 = 9;
carr[8] = new Object();
carr[8].x = 601.95;
carr[8].y = 285.85;
carr[8].n = 3;
carr[8].k1 = 7;
carr[8].k2 = 8;
carr[8].k3 = 14;
carr[9] = new Object();
carr[9].x = -272.15;
carr[9].y = 21.7;
carr[9].n = 1;
carr[9].k1 = 11;
carr[10] = new Object();
carr[10].x = -34.05;
carr[10].y = 21.7;
carr[10].n = 2;
carr[10].k1 = 10;
carr[10].k2 = 12;
carr[11] = new Object();
carr[11].x = 112.5;
carr[11].y = 125.8;
carr[11].n = 2;
carr[11].k1 = 11;
carr[11].k2 = 13;
carr[12] = new Object();
carr[12].x = 569.95;
carr[12].y = 125.8;
carr[12].n = 2;
carr[12].k1 = 12;
carr[12].k2 = 14;
carr[13] = new Object();
carr[13].x = 786;
carr[13].y = 181.75;
carr[13].n = 3;
carr[13].k1 = 9;
carr[13].k2 = 13;
carr[13].k3 = 15;
carr[14] = new Object();
carr[14].x = 962.05;
carr[14].y = 181.75;
carr[14].n = 1;
carr[14].k1 = 14;
carr[1].j4 = true;
carr[1].r4 = false;
carr[1].d4 = true;
carr[1].j5 = true;
carr[1].r5 = true;
carr[1].d5 = true;
carr[3].j7 = true;
carr[3].r7 = true;
carr[3].d7 = true;
carr[6].j8 = true;
carr[6].r8 = false;
carr[6].d8 = true;
carr[8].j13 = true;
carr[8].r13 = true;
carr[8].d13 = true;
carr[11].j10 = true;
carr[11].r10 = false;
carr[11].d10 = true;
carr[12].j13 = true;
carr[12].r13 = true;
carr[12].d13 = false;
carr[13].j12 = true;
carr[13].r12 = false;
carr[13].d12 = true;
w = new Array();
w[0] = new Array();
w[0][0] = 0;
w[0][1] = 491.7;
w[0][2] = 1023.95;
w[0][3] = 960.401713544231;
w[0][4] = 678.189275831078;
w[0][5] = 680.205152449476;
w[0][6] = 1096.23440622858;
w[0][7] = 1165.27097063275;
w[0][8] = 1262.49995437371;
w[0][9] = 2572.43743814074;
w[0][10] = 2334.33743814074;
w[0][11] = 2154.5772854372;
w[0][12] = 1697.1272854372;
w[0][13] = 1473.95021448232;
w[0][14] = 1650.00021448232;
w[1] = new Array();
w[1][0] = 491.7;
w[1][1] = 0;
w[1][2] = 532.25;
w[1][3] = 468.701713544231;
w[1][4] = 186.489275831078;
w[1][5] = 188.505152449476;
w[1][6] = 604.534406228582;
w[1][7] = 673.570970632746;
w[1][8] = 770.79995437371;
w[1][9] = 2080.73743814074;
w[1][10] = 1842.63743814074;
w[1][11] = 1662.8772854372;
w[1][12] = 1205.4272854372;
w[1][13] = 982.250214482323;
w[1][14] = 1158.30021448232;
w[2] = new Array();
w[2][0] = 1023.95;
w[2][1] = 532.25;
w[2][2] = 0;
w[2][3] = 1000.95171354423;
w[2][4] = 718.739275831078;
w[2][5] = 720.755152449476;
w[2][6] = 1136.78440622858;
w[2][7] = 1205.82097063275;
w[2][8] = 1303.04995437371;
w[2][9] = 2612.98743814074;
w[2][10] = 2374.88743814074;
w[2][11] = 2195.1272854372;
w[2][12] = 1737.6772854372;
w[2][13] = 1514.50021448232;
w[2][14] = 1690.55021448232;
w[3] = new Array();
w[3][0] = 960.401713544231;
w[3][1] = 468.701713544231;
w[3][2] = 1000.95171354423;
w[3][3] = 0;
w[3][4] = 282.212437713153;
w[3][5] = 657.206865993706;
w[3][6] = 964.684805233643;
w[3][7] = 204.869257088515;
w[3][8] = 798.419257088515;
w[3][9] = 2108.35674085555;
w[3][10] = 1870.25674085555;
w[3][11] = 1690.49658815201;
w[3][12] = 1233.04658815201;
w[3][13] = 1009.86951719713;
w[3][14] = 1185.91951719713;
w[4] = new Array();
w[4][0] = 678.189275831078;
w[4][1] = 186.489275831078;
w[4][2] = 718.739275831078;
w[4][3] = 282.212437713153;
w[4][4] = 0;
w[4][5] = 374.994428280554;
w[4][6] = 791.02368205966;
w[4][7] = 487.081694801667;
w[4][8] = 957.289230204788;
w[4][9] = 2267.22671397182;
w[4][10] = 2029.12671397182;
w[4][11] = 1849.36656126828;
w[4][12] = 1391.91656126828;
w[4][13] = 1168.7394903134;
w[4][14] = 1344.7894903134;
w[5] = new Array();
w[5][0] = 680.205152449476;
w[5][1] = 188.505152449476;
w[5][2] = 720.755152449476;
w[5][3] = 657.206865993706;
w[5][4] = 374.994428280554;
w[5][5] = 0;
w[5][6] = 416.029253779106;
w[5][7] = 862.076123082221;
w[5][8] = 582.294801924235;
w[5][9] = 1892.23228569127;
w[5][10] = 1654.13228569127;
w[5][11] = 1474.37213298773;
w[5][12] = 1016.92213298773;
w[5][13] = 793.745062032847;
w[5][14] = 969.795062032848;
w[6] = new Array();
w[6][0] = 1096.23440622858;
w[6][1] = 604.534406228582;
w[6][2] = 1136.78440622858;
w[6][3] = 964.684805233643;
w[6][4] = 791.02368205966;
w[6][5] = 416.029253779106;
w[6][6] = 0;
w[6][7] = 759.815548145128;
w[6][8] = 166.265548145128;
w[6][9] = 1476.20303191216;
w[6][10] = 1238.10303191216;
w[6][11] = 1058.34287920862;
w[6][12] = 600.892879208622;
w[6][13] = 377.715808253741;
w[6][14] = 553.765808253741;
w[7] = new Array();
w[7][0] = 1165.27097063275;
w[7][1] = 673.570970632746;
w[7][2] = 1205.82097063275;
w[7][3] = 204.869257088515;
w[7][4] = 487.081694801667;
w[7][5] = 862.076123082221;
w[7][6] = 759.815548145128;
w[7][7] = 0;
w[7][8] = 593.55;
w[7][9] = 1903.48748376703;
w[7][10] = 1665.38748376703;
w[7][11] = 1485.62733106349;
w[7][12] = 1028.17733106349;
w[7][13] = 805.000260108613;
w[7][14] = 981.050260108613;
w[8] = new Array();
w[8][0] = 1262.49995437371;
w[8][1] = 770.79995437371;
w[8][2] = 1303.04995437371;
w[8][3] = 798.419257088515;
w[8][4] = 957.289230204788;
w[8][5] = 582.294801924235;
w[8][6] = 166.265548145128;
w[8][7] = 593.55;
w[8][8] = 0;
w[8][9] = 1309.93748376703;
w[8][10] = 1071.83748376703;
w[8][11] = 892.077331063494;
w[8][12] = 434.627331063494;
w[8][13] = 211.450260108613;
w[8][14] = 387.500260108613;
w[9] = new Array();
w[9][0] = 2572.43743814074;
w[9][1] = 2080.73743814074;
w[9][2] = 2612.98743814074;
w[9][3] = 2108.35674085555;
w[9][4] = 2267.22671397182;
w[9][5] = 1892.23228569127;
w[9][6] = 1476.20303191216;
w[9][7] = 1903.48748376703;
w[9][8] = 1309.93748376703;
w[9][9] = 0;
w[9][10] = 238.1;
w[9][11] = 417.86015270354;
w[9][12] = 875.31015270354;
w[9][13] = 1098.48722365842;
w[9][14] = 1274.53722365842;
w[10] = new Array();
w[10][0] = 2334.33743814074;
w[10][1] = 1842.63743814074;
w[10][2] = 2374.88743814074;
w[10][3] = 1870.25674085555;
w[10][4] = 2029.12671397182;
w[10][5] = 1654.13228569127;
w[10][6] = 1238.10303191216;
w[10][7] = 1665.38748376703;
w[10][8] = 1071.83748376703;
w[10][9] = 238.1;
w[10][10] = 0;
w[10][11] = 179.76015270354;
w[10][12] = 637.21015270354;
w[10][13] = 860.387223658421;
w[10][14] = 1036.43722365842;
w[11] = new Array();
w[11][0] = 2154.5772854372;
w[11][1] = 1662.8772854372;
w[11][2] = 2195.1272854372;
w[11][3] = 1690.49658815201;
w[11][4] = 1849.36656126828;
w[11][5] = 1474.37213298773;
w[11][6] = 1058.34287920862;
w[11][7] = 1485.62733106349;
w[11][8] = 892.077331063494;
w[11][9] = 417.86015270354;
w[11][10] = 179.76015270354;
w[11][11] = 0;
w[11][12] = 457.45;
w[11][13] = 680.627070954881;
w[11][14] = 856.677070954881;
w[12] = new Array();
w[12][0] = 1697.1272854372;
w[12][1] = 1205.4272854372;
w[12][2] = 1737.6772854372;
w[12][3] = 1233.04658815201;
w[12][4] = 1391.91656126828;
w[12][5] = 1016.92213298773;
w[12][6] = 600.892879208622;
w[12][7] = 1028.17733106349;
w[12][8] = 434.627331063494;
w[12][9] = 875.31015270354;
w[12][10] = 637.21015270354;
w[12][11] = 457.45;
w[12][12] = 0;
w[12][13] = 223.177070954881;
w[12][14] = 399.227070954881;
w[13] = new Array();
w[13][0] = 1473.95021448232;
w[13][1] = 982.250214482323;
w[13][2] = 1514.50021448232;
w[13][3] = 1009.86951719713;
w[13][4] = 1168.7394903134;
w[13][5] = 793.745062032847;
w[13][6] = 377.715808253741;
w[13][7] = 805.000260108613;
w[13][8] = 211.450260108613;
w[13][9] = 1098.48722365842;
w[13][10] = 860.387223658421;
w[13][11] = 680.627070954881;
w[13][12] = 223.177070954881;
w[13][13] = 0;
w[13][14] = 176.05;
w[14] = new Array();
w[14][0] = 1650.00021448232;
w[14][1] = 1158.30021448232;
w[14][2] = 1690.55021448232;
w[14][3] = 1185.91951719713;
w[14][4] = 1344.7894903134;
w[14][5] = 969.795062032848;
w[14][6] = 553.765808253741;
w[14][7] = 981.050260108613;
w[14][8] = 387.500260108613;
w[14][9] = 1274.53722365842;
w[14][10] = 1036.43722365842;
w[14][11] = 856.677070954881;
w[14][12] = 399.227070954881;
w[14][13] = 176.05;
w[14][14] = 0;
pai = new Array();
pai[0] = new Array();
pai[0][0] = 0;
pai[0][1] = 1;
pai[0][2] = 1;
pai[0][3] = 1;
pai[0][4] = 1;
pai[0][5] = 1;
pai[0][6] = 1;
pai[0][7] = 1;
pai[0][8] = 1;
pai[0][9] = 1;
pai[0][10] = 1;
pai[0][11] = 1;
pai[0][12] = 1;
pai[0][13] = 1;
pai[0][14] = 1;
pai[1] = new Array();
pai[1][0] = 0;
pai[1][1] = 1;
pai[1][2] = 2;
pai[1][3] = 4;
pai[1][4] = 4;
pai[1][5] = 5;
pai[1][6] = 5;
pai[1][7] = 4;
pai[1][8] = 5;
pai[1][9] = 5;
pai[1][10] = 5;
pai[1][11] = 5;
pai[1][12] = 5;
pai[1][13] = 5;
pai[1][14] = 5;
pai[2] = new Array();
pai[2][0] = 1;
pai[2][1] = 1;
pai[2][2] = 2;
pai[2][3] = 1;
pai[2][4] = 1;
pai[2][5] = 1;
pai[2][6] = 1;
pai[2][7] = 1;
pai[2][8] = 1;
pai[2][9] = 1;
pai[2][10] = 1;
pai[2][11] = 1;
pai[2][12] = 1;
pai[2][13] = 1;
pai[2][14] = 1;
pai[3] = new Array();
pai[3][0] = 4;
pai[3][1] = 4;
pai[3][2] = 4;
pai[3][3] = 3;
pai[3][4] = 4;
pai[3][5] = 4;
pai[3][6] = 7;
pai[3][7] = 7;
pai[3][8] = 7;
pai[3][9] = 7;
pai[3][10] = 7;
pai[3][11] = 7;
pai[3][12] = 7;
pai[3][13] = 7;
pai[3][14] = 7;
pai[4] = new Array();
pai[4][0] = 1;
pai[4][1] = 1;
pai[4][2] = 1;
pai[4][3] = 3;
pai[4][4] = 4;
pai[4][5] = 1;
pai[4][6] = 1;
pai[4][7] = 3;
pai[4][8] = 1;
pai[4][9] = 1;
pai[4][10] = 1;
pai[4][11] = 1;
pai[4][12] = 1;
pai[4][13] = 1;
pai[4][14] = 1;
pai[5] = new Array();
pai[5][0] = 1;
pai[5][1] = 1;
pai[5][2] = 1;
pai[5][3] = 1;
pai[5][4] = 1;
pai[5][5] = 5;
pai[5][6] = 6;
pai[5][7] = 1;
pai[5][8] = 6;
pai[5][9] = 6;
pai[5][10] = 6;
pai[5][11] = 6;
pai[5][12] = 6;
pai[5][13] = 6;
pai[5][14] = 6;
pai[6] = new Array();
pai[6][0] = 5;
pai[6][1] = 5;
pai[6][2] = 5;
pai[6][3] = 8;
pai[6][4] = 5;
pai[6][5] = 5;
pai[6][6] = 6;
pai[6][7] = 8;
pai[6][8] = 8;
pai[6][9] = 8;
pai[6][10] = 8;
pai[6][11] = 8;
pai[6][12] = 8;
pai[6][13] = 8;
pai[6][14] = 8;
pai[7] = new Array();
pai[7][0] = 3;
pai[7][1] = 3;
pai[7][2] = 3;
pai[7][3] = 3;
pai[7][4] = 3;
pai[7][5] = 3;
pai[7][6] = 8;
pai[7][7] = 7;
pai[7][8] = 8;
pai[7][9] = 8;
pai[7][10] = 8;
pai[7][11] = 8;
pai[7][12] = 8;
pai[7][13] = 8;
pai[7][14] = 8;
pai[8] = new Array();
pai[8][0] = 6;
pai[8][1] = 6;
pai[8][2] = 6;
pai[8][3] = 7;
pai[8][4] = 6;
pai[8][5] = 6;
pai[8][6] = 6;
pai[8][7] = 7;
pai[8][8] = 8;
pai[8][9] = 13;
pai[8][10] = 13;
pai[8][11] = 13;
pai[8][12] = 13;
pai[8][13] = 13;
pai[8][14] = 13;
pai[9] = new Array();
pai[9][0] = 10;
pai[9][1] = 10;
pai[9][2] = 10;
pai[9][3] = 10;
pai[9][4] = 10;
pai[9][5] = 10;
pai[9][6] = 10;
pai[9][7] = 10;
pai[9][8] = 10;
pai[9][9] = 9;
pai[9][10] = 10;
pai[9][11] = 10;
pai[9][12] = 10;
pai[9][13] = 10;
pai[9][14] = 10;
pai[10] = new Array();
pai[10][0] = 11;
pai[10][1] = 11;
pai[10][2] = 11;
pai[10][3] = 11;
pai[10][4] = 11;
pai[10][5] = 11;
pai[10][6] = 11;
pai[10][7] = 11;
pai[10][8] = 11;
pai[10][9] = 9;
pai[10][10] = 10;
pai[10][11] = 11;
pai[10][12] = 11;
pai[10][13] = 11;
pai[10][14] = 11;
pai[11] = new Array();
pai[11][0] = 12;
pai[11][1] = 12;
pai[11][2] = 12;
pai[11][3] = 12;
pai[11][4] = 12;
pai[11][5] = 12;
pai[11][6] = 12;
pai[11][7] = 12;
pai[11][8] = 12;
pai[11][9] = 10;
pai[11][10] = 10;
pai[11][11] = 11;
pai[11][12] = 12;
pai[11][13] = 12;
pai[11][14] = 12;
pai[12] = new Array();
pai[12][0] = 13;
pai[12][1] = 13;
pai[12][2] = 13;
pai[12][3] = 13;
pai[12][4] = 13;
pai[12][5] = 13;
pai[12][6] = 13;
pai[12][7] = 13;
pai[12][8] = 13;
pai[12][9] = 11;
pai[12][10] = 11;
pai[12][11] = 11;
pai[12][12] = 12;
pai[12][13] = 13;
pai[12][14] = 13;
pai[13] = new Array();
pai[13][0] = 8;
pai[13][1] = 8;
pai[13][2] = 8;
pai[13][3] = 8;
pai[13][4] = 8;
pai[13][5] = 8;
pai[13][6] = 8;
pai[13][7] = 8;
pai[13][8] = 8;
pai[13][9] = 12;
pai[13][10] = 12;
pai[13][11] = 12;
pai[13][12] = 12;
pai[13][13] = 13;
pai[13][14] = 14;
pai[14] = new Array();
pai[14][0] = 13;
pai[14][1] = 13;
pai[14][2] = 13;
pai[14][3] = 13;
pai[14][4] = 13;
pai[14][5] = 13;
pai[14][6] = 13;
pai[14][7] = 13;
pai[14][8] = 13;
pai[14][9] = 13;
pai[14][10] = 13;
pai[14][11] = 13;
pai[14][12] = 13;
pai[14][13] = 13;
pai[14][14] = 14;
};
startall();
Instance of Symbol 1235 MovieClip in Frame 11
onClipEvent (load) {
ca = 7;
cb = 8;
left = false;
}
Instance of Symbol 1235 MovieClip in Frame 11
onClipEvent (load) {
ca = 9;
cb = 10;
left = false;
}
Instance of Symbol 1235 MovieClip in Frame 11
onClipEvent (load) {
ca = 13;
cb = 14;
left = false;
}
Instance of Symbol 1235 MovieClip in Frame 11
onClipEvent (load) {
ca = 11;
cb = 12;
left = false;
}
Instance of Symbol 1235 MovieClip in Frame 11
onClipEvent (load) {
ca = 0;
cb = 1;
left = true;
}
Instance of Symbol 1235 MovieClip in Frame 11
onClipEvent (load) {
ca = 0;
cb = 1;
left = true;
}
Instance of Symbol 1127 MovieClip in Frame 11
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 0;
var cb = 1;
}
Instance of Symbol 1127 MovieClip in Frame 11
onClipEvent (load) {
var t1 = true;
var t10 = true;
}
Instance of Symbol 1127 MovieClip in Frame 11
onClipEvent (load) {
var t1 = true;
var t10 = false;
}
Instance of Symbol 1127 MovieClip in Frame 11
onClipEvent (load) {
var t1 = false;
var t10 = true;
var right = true;
var left = false;
}
Instance of Symbol 1127 MovieClip in Frame 11
onClipEvent (load) {
var t1 = false;
var t10 = true;
var right = false;
var left = true;
}
Instance of Symbol 1127 MovieClip in Frame 11
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 3;
var cb = 4;
}
Instance of Symbol 1127 MovieClip in Frame 11
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 5;
var cb = 6;
}
Instance of Symbol 1127 MovieClip in Frame 11
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 3;
var cb = 4;
}
Instance of Symbol 1127 MovieClip in Frame 11
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 5;
var cb = 6;
}
Instance of Symbol 1127 MovieClip in Frame 11
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 3;
var cb = 4;
}
Instance of Symbol 1127 MovieClip in Frame 11
onClipEvent (load) {
var t1 = true;
var t10 = false;
}
Instance of Symbol 1127 MovieClip in Frame 11
onClipEvent (load) {
var t1 = true;
var t10 = true;
}
Instance of Symbol 1127 MovieClip in Frame 11
onClipEvent (load) {
var t1 = true;
var t10 = true;
}
Instance of Symbol 1127 MovieClip in Frame 11
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 13;
var cb = 14;
}
Instance of Symbol 1127 MovieClip in Frame 11
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 13;
var cb = 14;
}
Instance of Symbol 1127 MovieClip in Frame 11
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 1;
var cb = 4;
}
Instance of Symbol 1127 MovieClip in Frame 11
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 13;
var cb = 14;
}
Instance of Symbol 1127 MovieClip in Frame 11
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 13;
var cb = 14;
}
Instance of Symbol 1127 MovieClip in Frame 11
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 11;
var cb = 12;
}
Instance of Symbol 1127 MovieClip in Frame 11
onClipEvent (load) {
var t1 = true;
var t10 = true;
}
Instance of Symbol 1127 MovieClip in Frame 11
onClipEvent (load) {
var t1 = true;
var t10 = false;
}
Instance of Symbol 1127 MovieClip in Frame 11
onClipEvent (load) {
var t1 = false;
var t10 = true;
var right = false;
var left = false;
}
Instance of Symbol 1127 MovieClip in Frame 11
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 7;
var cb = 8;
}
Instance of Symbol 1127 MovieClip in Frame 11
onClipEvent (load) {
var t1 = true;
var t10 = true;
}
Instance of Symbol 1127 MovieClip in Frame 11
onClipEvent (load) {
var t1 = true;
var t10 = false;
}
Instance of Symbol 1127 MovieClip in Frame 11
onClipEvent (load) {
var t1 = false;
var t10 = true;
var right = false;
var left = false;
}
Instance of Symbol 1127 MovieClip in Frame 11
onClipEvent (load) {
var t1 = true;
var t10 = true;
}
Instance of Symbol 1127 MovieClip in Frame 11
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 9;
var cb = 10;
}
Instance of Symbol 1127 MovieClip in Frame 11
onClipEvent (load) {
var t1 = true;
var t10 = false;
}
Instance of Symbol 1127 MovieClip in Frame 11
onClipEvent (load) {
var t1 = false;
var t10 = true;
var right = false;
var left = false;
}
Frame 12
stop();
lfunc = function () {
carr = new Array(14);
carr[0] = new Object();
carr[0].x = -419.25;
carr[0].y = 150;
carr[0].n = 2;
carr[0].k1 = 2;
carr[0].k2 = 12;
carr[1] = new Object();
carr[1].x = -271.65;
carr[1].y = 293.85;
carr[1].n = 2;
carr[1].k1 = 1;
carr[1].k2 = 3;
carr[2] = new Object();
carr[2].x = -96;
carr[2].y = 446;
carr[2].n = 3;
carr[2].k1 = 2;
carr[2].k2 = 4;
carr[2].k3 = 10;
carr[3] = new Object();
carr[3].x = 78.05;
carr[3].y = 597.5;
carr[3].n = 2;
carr[3].k1 = 3;
carr[3].k2 = 5;
carr[4] = new Object();
carr[4].x = 222.1;
carr[4].y = 693.6;
carr[4].n = 2;
carr[4].k1 = 4;
carr[4].k2 = 14;
carr[5] = new Object();
carr[5].x = 525.95;
carr[5].y = 593.5;
carr[5].n = 2;
carr[5].k1 = 7;
carr[5].k2 = 14;
carr[6] = new Object();
carr[6].x = 708.6;
carr[6].y = 445.95;
carr[6].n = 3;
carr[6].k1 = 6;
carr[6].k2 = 8;
carr[6].k3 = 11;
carr[7] = new Object();
carr[7].x = 884.6;
carr[7].y = 289.85;
carr[7].n = 2;
carr[7].k1 = 7;
carr[7].k2 = 9;
carr[8] = new Object();
carr[8].x = 1030.1;
carr[8].y = 149.7;
carr[8].n = 2;
carr[8].k1 = 8;
carr[8].k2 = 13;
carr[9] = new Object();
carr[9].x = 96.5;
carr[9].y = 282.1;
carr[9].n = 2;
carr[9].k1 = 11;
carr[9].k2 = undefined;
carr[10] = new Object();
carr[10].x = 505.85;
carr[10].y = 282.1;
carr[10].n = 2;
carr[10].k1 = 7;
carr[10].k2 = 10;
carr[11] = new Object();
carr[11].x = -135.55;
carr[11].y = 62.05;
carr[11].n = 2;
carr[11].k1 = 1;
carr[11].k2 = 13;
carr[12] = new Object();
carr[12].x = 780.5;
carr[12].y = 62.05;
carr[12].n = 2;
carr[12].k1 = 9;
carr[12].k2 = 12;
carr[13] = new Object();
carr[13].x = 370.1;
carr[13].y = 693.6;
carr[13].n = 2;
carr[13].k1 = 5;
carr[13].k2 = 6;
carr[0].j11 = true;
carr[0].r11 = true;
carr[0].d11 = true;
carr[1].j0 = true;
carr[1].r0 = false;
carr[1].d0 = true;
carr[2].j1 = true;
carr[2].r1 = false;
carr[2].d1 = true;
carr[3].j2 = true;
carr[3].r2 = false;
carr[3].d2 = true;
carr[4].j3 = true;
carr[4].r3 = false;
carr[4].d3 = true;
carr[13].j5 = true;
carr[13].r5 = true;
carr[13].d5 = true;
carr[5].j6 = true;
carr[5].r6 = true;
carr[5].d6 = true;
carr[6].j7 = true;
carr[6].r7 = true;
carr[6].d7 = true;
carr[7].j8 = true;
carr[7].r8 = true;
carr[7].d8 = true;
carr[8].j12 = true;
carr[8].r12 = false;
carr[8].d12 = true;
carr[2].j9 = true;
carr[2].r9 = true;
carr[2].d9 = true;
carr[6].j10 = true;
carr[6].r10 = false;
carr[6].d10 = true;
carr[12].j8 = true;
carr[12].r8 = true;
carr[12].d8 = false;
carr[11].j0 = true;
carr[11].r0 = false;
carr[11].d0 = false;
carr[9].j2 = true;
carr[9].r2 = false;
carr[9].d2 = false;
carr[10].j6 = true;
carr[10].r6 = true;
carr[10].d6 = false;
w = new Array();
w[0] = new Array();
w[0][0] = 0;
w[0][1] = 206.103329667427;
w[0][2] = 438.487806343473;
w[0][3] = 669.238001359642;
w[0][4] = 842.401544000696;
w[0][5] = 1175.62905950528;
w[0][6] = 1361.34140665938;
w[0][7] = 1596.59278285089;
w[0][8] = 1477.61242245229;
w[0][9] = 691.310787893806;
w[0][10] = 1100.66078789381;
w[0][11] = 297.020020368998;
w[0][12] = 1213.070020369;
w[0][13] = 990.401544000696;
w[1] = new Array();
w[1][0] = 206.103329667427;
w[1][1] = 0;
w[1][2] = 232.384476676047;
w[1][3] = 463.134671692216;
w[1][4] = 636.298214333269;
w[1][5] = 969.525729837851;
w[1][6] = 1155.23807699195;
w[1][7] = 1390.48945318346;
w[1][8] = 1592.50992863088;
w[1][9] = 485.207458226379;
w[1][10] = 894.55745822638;
w[1][11] = 503.123350036425;
w[1][12] = 1419.17335003642;
w[1][13] = 784.298214333269;
w[2] = new Array();
w[2][0] = 438.487806343473;
w[2][1] = 232.384476676047;
w[2][2] = 0;
w[2][3] = 230.750195016169;
w[2][4] = 403.913737657223;
w[2][5] = 737.141253161804;
w[2][6] = 922.853600315902;
w[2][7] = 1158.10497650741;
w[2][8] = 1360.12545195483;
w[2][9] = 252.822981550333;
w[2][10] = 662.172981550333;
w[2][11] = 735.507826712471;
w[2][12] = 1624.66785403813;
w[2][13] = 551.913737657223;
w[3] = new Array();
w[3][0] = 669.238001359642;
w[3][1] = 463.134671692216;
w[3][2] = 230.750195016169;
w[3][3] = 0;
w[3][4] = 173.163542641054;
w[3][5] = 506.391058145635;
w[3][6] = 741.193155666079;
w[3][7] = 976.44453185759;
w[3][8] = 1178.46500730501;
w[3][9] = 483.573176566502;
w[3][10] = 892.923176566502;
w[3][11] = 966.25802172864;
w[3][12] = 1443.0074093883;
w[3][13] = 321.163542641054;
w[4] = new Array();
w[4][0] = 842.401544000696;
w[4][1] = 636.298214333269;
w[4][2] = 403.913737657223;
w[4][3] = 173.163542641054;
w[4][4] = 0;
w[4][5] = 333.227515504582;
w[4][6] = 568.029613025025;
w[4][7] = 803.280989216537;
w[4][8] = 1005.30146466395;
w[4][9] = 656.736719207556;
w[4][10] = 828.710231790594;
w[4][11] = 1139.42156436969;
w[4][12] = 1269.84386674725;
w[4][13] = 148;
w[5] = new Array();
w[5][0] = 1175.62905950528;
w[5][1] = 969.525729837851;
w[5][2] = 737.141253161804;
w[5][3] = 506.391058145635;
w[5][4] = 333.227515504582;
w[5][5] = 0;
w[5][6] = 234.802097520444;
w[5][7] = 470.053473711955;
w[5][8] = 672.073949159371;
w[5][9] = 904.832716286013;
w[5][10] = 495.482716286013;
w[5][11] = 1472.64907987428;
w[5][12] = 936.616351242667;
w[5][13] = 185.227515504582;
w[6] = new Array();
w[6][0] = 1410.43115702572;
w[6][1] = 1204.32782735829;
w[6][2] = 971.943350682248;
w[6][3] = 741.193155666079;
w[6][4] = 568.029613025025;
w[6][5] = 234.802097520444;
w[6][6] = 0;
w[6][7] = 235.251376191511;
w[6][8] = 437.271851638927;
w[6][9] = 670.030618765569;
w[6][10] = 260.680618765569;
w[6][11] = 1617.86425372222;
w[6][12] = 701.814253722223;
w[6][13] = 420.029613025025;
w[7] = new Array();
w[7][0] = 1645.68253321723;
w[7][1] = 1439.57920354981;
w[7][2] = 1207.19472687376;
w[7][3] = 976.44453185759;
w[7][4] = 803.280989216537;
w[7][5] = 470.053473711955;
w[7][6] = 235.251376191511;
w[7][7] = 0;
w[7][8] = 202.020475447416;
w[7][9] = 905.281994957081;
w[7][10] = 495.93199495708;
w[7][11] = 1382.61287753071;
w[7][12] = 466.562877530712;
w[7][13] = 655.280989216537;
w[8] = new Array();
w[8][0] = 1477.61242245229;
w[8][1] = 1641.59967899722;
w[8][2] = 1409.21520232118;
w[8][3] = 1178.46500730501;
w[8][4] = 1005.30146466395;
w[8][5] = 672.073949159371;
w[8][6] = 437.271851638927;
w[8][7] = 202.020475447416;
w[8][8] = 0;
w[8][9] = 1107.3024704045;
w[8][10] = 697.952470404497;
w[8][11] = 1180.5924020833;
w[8][12] = 264.542402083296;
w[8][13] = 857.301464663953;
w[9] = new Array();
w[9][0] = 2080.46177579129;
w[9][1] = 1874.35844612386;
w[9][2] = 1641.97396944782;
w[9][3] = 1411.22377443165;
w[9][4] = 1238.06023179059;
w[9][5] = 904.832716286013;
w[9][6] = 670.030618765569;
w[9][7] = 905.281994957081;
w[9][8] = 1107.3024704045;
w[9][9] = 0;
w[9][10] = 409.35;
w[9][11] = 2287.89487248779;
w[9][12] = 1371.84487248779;
w[9][13] = 1090.06023179059;
w[10] = new Array();
w[10][0] = 1671.11177579129;
w[10][1] = 1465.00844612386;
w[10][2] = 1232.62396944782;
w[10][3] = 1001.87377443165;
w[10][4] = 828.710231790594;
w[10][5] = 495.482716286013;
w[10][6] = 260.680618765569;
w[10][7] = 495.93199495708;
w[10][8] = 697.952470404497;
w[10][9] = 409.35;
w[10][10] = 0;
w[10][11] = 1878.54487248779;
w[10][12] = 962.494872487792;
w[10][13] = 680.710231790594;
w[11] = new Array();
w[11][0] = 297.020020368998;
w[11][1] = 503.123350036425;
w[11][2] = 735.507826712471;
w[11][3] = 966.25802172864;
w[11][4] = 1139.42156436969;
w[11][5] = 1472.64907987428;
w[11][6] = 1617.86425372222;
w[11][7] = 1382.61287753071;
w[11][8] = 1180.5924020833;
w[11][9] = 988.330808262804;
w[11][10] = 1397.6808082628;
w[11][11] = 0;
w[11][12] = 916.05;
w[11][13] = 1287.42156436969;
w[12] = new Array();
w[12][0] = 1213.070020369;
w[12][1] = 1419.17335003642;
w[12][2] = 1651.55782671247;
w[12][3] = 1443.0074093883;
w[12][4] = 1269.84386674725;
w[12][5] = 936.616351242667;
w[12][6] = 701.814253722223;
w[12][7] = 466.562877530712;
w[12][8] = 264.542402083296;
w[12][9] = 1371.84487248779;
w[12][10] = 962.494872487792;
w[12][11] = 916.05;
w[12][12] = 0;
w[12][13] = 1121.84386674725;
w[13] = new Array();
w[13][0] = 990.401544000696;
w[13][1] = 784.298214333269;
w[13][2] = 551.913737657223;
w[13][3] = 321.163542641054;
w[13][4] = 148;
w[13][5] = 185.227515504582;
w[13][6] = 420.029613025025;
w[13][7] = 655.280989216537;
w[13][8] = 857.301464663953;
w[13][9] = 804.736719207555;
w[13][10] = 680.710231790594;
w[13][11] = 1287.42156436969;
w[13][12] = 1121.84386674725;
w[13][13] = 0;
pai = new Array();
pai[0] = new Array();
pai[0][0] = 0;
pai[0][1] = 1;
pai[0][2] = 1;
pai[0][3] = 1;
pai[0][4] = 1;
pai[0][5] = 1;
pai[0][6] = 1;
pai[0][7] = 1;
pai[0][8] = 11;
pai[0][9] = 1;
pai[0][10] = 1;
pai[0][11] = 11;
pai[0][12] = 11;
pai[0][13] = 1;
pai[1] = new Array();
pai[1][0] = 0;
pai[1][1] = 1;
pai[1][2] = 2;
pai[1][3] = 2;
pai[1][4] = 2;
pai[1][5] = 2;
pai[1][6] = 2;
pai[1][7] = 2;
pai[1][8] = 2;
pai[1][9] = 2;
pai[1][10] = 2;
pai[1][11] = 0;
pai[1][12] = 0;
pai[1][13] = 2;
pai[2] = new Array();
pai[2][0] = 1;
pai[2][1] = 1;
pai[2][2] = 2;
pai[2][3] = 3;
pai[2][4] = 3;
pai[2][5] = 3;
pai[2][6] = 9;
pai[2][7] = 9;
pai[2][8] = 9;
pai[2][9] = 9;
pai[2][10] = 9;
pai[2][11] = 1;
pai[2][12] = 9;
pai[2][13] = 3;
pai[3] = new Array();
pai[3][0] = 2;
pai[3][1] = 2;
pai[3][2] = 2;
pai[3][3] = 3;
pai[3][4] = 4;
pai[3][5] = 4;
pai[3][6] = 4;
pai[3][7] = 4;
pai[3][8] = 4;
pai[3][9] = 2;
pai[3][10] = 2;
pai[3][11] = 2;
pai[3][12] = 4;
pai[3][13] = 4;
pai[4] = new Array();
pai[4][0] = 3;
pai[4][1] = 3;
pai[4][2] = 3;
pai[4][3] = 3;
pai[4][4] = 4;
pai[4][5] = 13;
pai[4][6] = 13;
pai[4][7] = 13;
pai[4][8] = 13;
pai[4][9] = 3;
pai[4][10] = 13;
pai[4][11] = 3;
pai[4][12] = 13;
pai[4][13] = 13;
pai[5] = new Array();
pai[5][0] = 13;
pai[5][1] = 13;
pai[5][2] = 13;
pai[5][3] = 13;
pai[5][4] = 13;
pai[5][5] = 5;
pai[5][6] = 6;
pai[5][7] = 6;
pai[5][8] = 6;
pai[5][9] = 6;
pai[5][10] = 6;
pai[5][11] = 13;
pai[5][12] = 6;
pai[5][13] = 13;
pai[6] = new Array();
pai[6][0] = 5;
pai[6][1] = 5;
pai[6][2] = 5;
pai[6][3] = 5;
pai[6][4] = 5;
pai[6][5] = 5;
pai[6][6] = 6;
pai[6][7] = 7;
pai[6][8] = 7;
pai[6][9] = 10;
pai[6][10] = 10;
pai[6][11] = 7;
pai[6][12] = 7;
pai[6][13] = 5;
pai[7] = new Array();
pai[7][0] = 6;
pai[7][1] = 6;
pai[7][2] = 6;
pai[7][3] = 6;
pai[7][4] = 6;
pai[7][5] = 6;
pai[7][6] = 6;
pai[7][7] = 7;
pai[7][8] = 8;
pai[7][9] = 6;
pai[7][10] = 6;
pai[7][11] = 8;
pai[7][12] = 8;
pai[7][13] = 6;
pai[8] = new Array();
pai[8][0] = 12;
pai[8][1] = 7;
pai[8][2] = 7;
pai[8][3] = 7;
pai[8][4] = 7;
pai[8][5] = 7;
pai[8][6] = 7;
pai[8][7] = 7;
pai[8][8] = 8;
pai[8][9] = 7;
pai[8][10] = 7;
pai[8][11] = 12;
pai[8][12] = 12;
pai[8][13] = 7;
pai[9] = new Array();
pai[9][0] = 10;
pai[9][1] = 10;
pai[9][2] = 10;
pai[9][3] = 10;
pai[9][4] = 10;
pai[9][5] = 10;
pai[9][6] = 10;
pai[9][7] = 10;
pai[9][8] = 10;
pai[9][9] = 9;
pai[9][10] = 10;
pai[9][11] = 10;
pai[9][12] = 10;
pai[9][13] = 10;
pai[10] = new Array();
pai[10][0] = 6;
pai[10][1] = 6;
pai[10][2] = 6;
pai[10][3] = 6;
pai[10][4] = 6;
pai[10][5] = 6;
pai[10][6] = 6;
pai[10][7] = 6;
pai[10][8] = 6;
pai[10][9] = 9;
pai[10][10] = 10;
pai[10][11] = 6;
pai[10][12] = 6;
pai[10][13] = 6;
pai[11] = new Array();
pai[11][0] = 0;
pai[11][1] = 0;
pai[11][2] = 0;
pai[11][3] = 0;
pai[11][4] = 0;
pai[11][5] = 0;
pai[11][6] = 12;
pai[11][7] = 12;
pai[11][8] = 12;
pai[11][9] = 0;
pai[11][10] = 0;
pai[11][11] = 11;
pai[11][12] = 12;
pai[11][13] = 0;
pai[12] = new Array();
pai[12][0] = 11;
pai[12][1] = 11;
pai[12][2] = 11;
pai[12][3] = 8;
pai[12][4] = 8;
pai[12][5] = 8;
pai[12][6] = 8;
pai[12][7] = 8;
pai[12][8] = 8;
pai[12][9] = 8;
pai[12][10] = 8;
pai[12][11] = 11;
pai[12][12] = 12;
pai[12][13] = 8;
pai[13] = new Array();
pai[13][0] = 4;
pai[13][1] = 4;
pai[13][2] = 4;
pai[13][3] = 4;
pai[13][4] = 4;
pai[13][5] = 5;
pai[13][6] = 5;
pai[13][7] = 5;
pai[13][8] = 5;
pai[13][9] = 4;
pai[13][10] = 5;
pai[13][11] = 4;
pai[13][12] = 5;
pai[13][13] = 13;
};
startall();
Instance of Symbol 1127 MovieClip in Frame 12
onClipEvent (load) {
var t1 = true;
var t10 = true;
}
Instance of Symbol 1235 MovieClip in Frame 12
onClipEvent (load) {
ca = 9;
cb = 10;
left = false;
}
Instance of Symbol 1235 MovieClip in Frame 12
onClipEvent (load) {
ca = 11;
cb = 12;
left = false;
}
Instance of Symbol 1235 MovieClip in Frame 12
onClipEvent (load) {
ca = 11;
cb = 12;
left = false;
}
Instance of Symbol 1235 MovieClip in Frame 12
onClipEvent (load) {
ca = 0;
cb = 1;
left = false;
}
Instance of Symbol 1235 MovieClip in Frame 12
onClipEvent (load) {
ca = 7;
cb = 8;
left = true;
}
Instance of Symbol 1235 MovieClip in Frame 12
onClipEvent (load) {
ca = 4;
cb = 13;
left = true;
}
Instance of Symbol 1127 MovieClip in Frame 12
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 4;
var cb = 13;
}
Instance of Symbol 1127 MovieClip in Frame 12
onClipEvent (load) {
var t1 = true;
var t10 = false;
}
Instance of Symbol 1127 MovieClip in Frame 12
onClipEvent (load) {
var t1 = true;
var t10 = false;
}
Instance of Symbol 1127 MovieClip in Frame 12
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 0;
var cb = 1;
}
Instance of Symbol 1127 MovieClip in Frame 12
onClipEvent (load) {
var t1 = false;
var t10 = true;
var right = true;
var left = false;
}
Instance of Symbol 1127 MovieClip in Frame 12
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 1;
var cb = 2;
}
Instance of Symbol 1127 MovieClip in Frame 12
onClipEvent (load) {
var t1 = false;
var t10 = true;
var right = true;
var left = false;
}
Instance of Symbol 1127 MovieClip in Frame 12
onClipEvent (load) {
var t1 = true;
var t10 = false;
}
Instance of Symbol 1127 MovieClip in Frame 12
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 1;
var cb = 2;
}
Instance of Symbol 1127 MovieClip in Frame 12
onClipEvent (load) {
var t1 = false;
var t10 = true;
var right = true;
var left = false;
}
Instance of Symbol 1127 MovieClip in Frame 12
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 2;
var cb = 3;
}
Instance of Symbol 1127 MovieClip in Frame 12
onClipEvent (load) {
var t1 = false;
var t10 = true;
var right = true;
var left = false;
}
Instance of Symbol 1127 MovieClip in Frame 12
onClipEvent (load) {
var t1 = true;
var t10 = false;
}
Instance of Symbol 1127 MovieClip in Frame 12
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 2;
var cb = 3;
}
Instance of Symbol 1127 MovieClip in Frame 12
onClipEvent (load) {
var t1 = false;
var t10 = true;
var right = true;
var left = false;
}
Instance of Symbol 1127 MovieClip in Frame 12
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 3;
var cb = 4;
}
Instance of Symbol 1127 MovieClip in Frame 12
onClipEvent (load) {
var t1 = false;
var t10 = true;
var right = true;
var left = false;
}
Instance of Symbol 1127 MovieClip in Frame 12
onClipEvent (load) {
var t1 = true;
var t10 = false;
}
Instance of Symbol 1127 MovieClip in Frame 12
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 3;
var cb = 4;
}
Instance of Symbol 1127 MovieClip in Frame 12
onClipEvent (load) {
var t1 = false;
var t10 = true;
var right = true;
var left = false;
}
Instance of Symbol 1127 MovieClip in Frame 12
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 4;
var cb = 13;
}
Instance of Symbol 1127 MovieClip in Frame 12
onClipEvent (load) {
var t1 = false;
var t10 = true;
var right = true;
var left = false;
}
Instance of Symbol 1127 MovieClip in Frame 12
onClipEvent (load) {
var t1 = true;
var t10 = true;
}
Instance of Symbol 1127 MovieClip in Frame 12
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 7;
var cb = 8;
}
Instance of Symbol 1127 MovieClip in Frame 12
onClipEvent (load) {
var t1 = false;
var t10 = true;
var right = false;
var left = true;
}
Instance of Symbol 1127 MovieClip in Frame 12
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 6;
var cb = 7;
}
Instance of Symbol 1127 MovieClip in Frame 12
onClipEvent (load) {
var t1 = false;
var t10 = true;
var right = false;
var left = true;
}
Instance of Symbol 1127 MovieClip in Frame 12
onClipEvent (load) {
var t1 = true;
var t10 = true;
}
Instance of Symbol 1127 MovieClip in Frame 12
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 6;
var cb = 7;
}
Instance of Symbol 1127 MovieClip in Frame 12
onClipEvent (load) {
var t1 = false;
var t10 = true;
var right = false;
var left = true;
}
Instance of Symbol 1127 MovieClip in Frame 12
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 5;
var cb = 6;
}
Instance of Symbol 1127 MovieClip in Frame 12
onClipEvent (load) {
var t1 = false;
var t10 = true;
var right = false;
var left = true;
}
Instance of Symbol 1127 MovieClip in Frame 12
onClipEvent (load) {
var t1 = true;
var t10 = true;
}
Instance of Symbol 1127 MovieClip in Frame 12
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 5;
var cb = 6;
}
Instance of Symbol 1127 MovieClip in Frame 12
onClipEvent (load) {
var t1 = false;
var t10 = true;
var right = false;
var left = true;
}
Instance of Symbol 1127 MovieClip in Frame 12
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 5;
var cb = 13;
}
Instance of Symbol 1127 MovieClip in Frame 12
onClipEvent (load) {
var t1 = false;
var t10 = true;
var right = false;
var left = true;
}
Instance of Symbol 1127 MovieClip in Frame 12
onClipEvent (load) {
var t1 = true;
var t10 = true;
}
Instance of Symbol 1127 MovieClip in Frame 12
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 5;
var cb = 13;
}
Instance of Symbol 1127 MovieClip in Frame 12
onClipEvent (load) {
var t1 = false;
var t10 = true;
var right = false;
var left = true;
}
Instance of Symbol 1127 MovieClip in Frame 12
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 4;
var cb = 13;
}
Instance of Symbol 1127 MovieClip in Frame 12
onClipEvent (load) {
var t1 = false;
var t10 = true;
var right = false;
var left = true;
}
Instance of Symbol 1127 MovieClip in Frame 12
onClipEvent (load) {
var t1 = false;
var t10 = true;
var right = false;
var left = true;
}
Instance of Symbol 1127 MovieClip in Frame 12
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 2;
var cb = 3;
}
Instance of Symbol 1127 MovieClip in Frame 12
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 9;
var cb = 10;
}
Instance of Symbol 1127 MovieClip in Frame 12
onClipEvent (load) {
var t1 = false;
var t10 = true;
var right = false;
var left = true;
}
Instance of Symbol 1127 MovieClip in Frame 12
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 2;
var cb = 3;
}
Instance of Symbol 1127 MovieClip in Frame 12
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 2;
var cb = 3;
}
Instance of Symbol 1127 MovieClip in Frame 12
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 11;
var cb = 12;
}
Instance of Symbol 1127 MovieClip in Frame 12
onClipEvent (load) {
var t1 = false;
var t10 = true;
var right = false;
var left = true;
}
Instance of Symbol 1127 MovieClip in Frame 12
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 2;
var cb = 3;
}
Instance of Symbol 1127 MovieClip in Frame 12
onClipEvent (load) {
var t1 = false;
var t10 = true;
var right = true;
var left = false;
}
Instance of Symbol 1127 MovieClip in Frame 12
onClipEvent (load) {
var t1 = false;
var t10 = true;
var right = true;
var left = false;
}
Frame 13
stop();
lfunc = function () {
carr = new Array(9);
carr[0] = new Object();
carr[0].x = -263.65;
carr[0].y = 534.05;
carr[0].n = 1;
carr[0].k1 = 2;
carr[1] = new Object();
carr[1].x = 373.8;
carr[1].y = 534.1;
carr[1].n = 2;
carr[1].k1 = 1;
carr[1].k2 = 3;
carr[2] = new Object();
carr[2].x = 1108.85;
carr[2].y = 417.95;
carr[2].n = 2;
carr[2].k1 = 2;
carr[2].k2 = 4;
carr[3] = new Object();
carr[3].x = 932.65;
carr[3].y = 337.9;
carr[3].n = 2;
carr[3].k1 = 3;
carr[3].k2 = 5;
carr[4] = new Object();
carr[4].x = 534.15;
carr[4].y = 62.05;
carr[4].n = 3;
carr[4].k1 = 4;
carr[4].k2 = 6;
carr[4].k3 = 9;
carr[5] = new Object();
carr[5].x = 241.9;
carr[5].y = 62.05;
carr[5].n = 2;
carr[5].k1 = 5;
carr[5].k2 = 7;
carr[6] = new Object();
carr[6].x = 76.45;
carr[6].y = 58.05;
carr[6].n = 2;
carr[6].k1 = 6;
carr[6].k2 = 8;
carr[7] = new Object();
carr[7].x = -255.65;
carr[7].y = 58.05;
carr[7].n = 1;
carr[7].k1 = 7;
carr[8] = new Object();
carr[8].x = 88.55;
carr[8].y = 341.9;
carr[8].n = 1;
carr[8].k1 = 5;
w = new Array();
w[0] = new Array();
w[0][0] = 0;
w[0][1] = 637.450001960938;
w[0][2] = 1381.62022778296;
w[0][3] = 1575.15173038654;
w[0][4] = 2059.81189225257;
w[0][5] = 2352.06189225257;
w[0][6] = 2517.56023816575;
w[0][7] = 2849.66023816575;
w[0][8] = 2586.00138521114;
w[1] = new Array();
w[1][0] = 637.450001960938;
w[1][1] = 0;
w[1][2] = 744.170225822023;
w[1][3] = 937.701728425604;
w[1][4] = 1422.36189029163;
w[1][5] = 1714.61189029163;
w[1][6] = 1880.11023620481;
w[1][7] = 2212.21023620481;
w[1][8] = 1948.5513832502;
w[2] = new Array();
w[2][0] = 1381.62022778296;
w[2][1] = 744.170225822023;
w[2][2] = 0;
w[2][3] = 193.531502603581;
w[2][4] = 678.191664469605;
w[2][5] = 970.441664469605;
w[2][6] = 1135.94001038279;
w[2][7] = 1468.04001038279;
w[2][8] = 1204.38115742818;
w[3] = new Array();
w[3][0] = 1575.15173038654;
w[3][1] = 937.701728425604;
w[3][2] = 193.531502603581;
w[3][3] = 0;
w[3][4] = 484.660161866023;
w[3][5] = 776.910161866024;
w[3][6] = 942.408507779208;
w[3][7] = 1274.50850777921;
w[3][8] = 1010.8496548246;
w[4] = new Array();
w[4][0] = 2059.81189225257;
w[4][1] = 1422.36189029163;
w[4][2] = 678.191664469605;
w[4][3] = 484.660161866023;
w[4][4] = 0;
w[4][5] = 292.25;
w[4][6] = 457.748345913184;
w[4][7] = 789.848345913184;
w[4][8] = 526.189492958573;
w[5] = new Array();
w[5][0] = 2352.06189225257;
w[5][1] = 1714.61189029163;
w[5][2] = 970.441664469605;
w[5][3] = 776.910161866024;
w[5][4] = 292.25;
w[5][5] = 0;
w[5][6] = 165.498345913184;
w[5][7] = 497.598345913184;
w[5][8] = 818.439492958573;
w[6] = new Array();
w[6][0] = 2517.56023816575;
w[6][1] = 1880.11023620481;
w[6][2] = 1135.94001038279;
w[6][3] = 942.408507779208;
w[6][4] = 457.748345913184;
w[6][5] = 165.498345913184;
w[6][6] = 0;
w[6][7] = 332.1;
w[6][8] = 983.937838871757;
w[7] = new Array();
w[7][0] = 2849.66023816575;
w[7][1] = 2212.21023620481;
w[7][2] = 1468.04001038279;
w[7][3] = 1274.50850777921;
w[7][4] = 789.848345913184;
w[7][5] = 497.598345913184;
w[7][6] = 332.1;
w[7][7] = 0;
w[7][8] = 1316.03783887176;
w[8] = new Array();
w[8][0] = 2586.00138521114;
w[8][1] = 1948.5513832502;
w[8][2] = 1204.38115742818;
w[8][3] = 1010.8496548246;
w[8][4] = 526.189492958573;
w[8][5] = 818.439492958573;
w[8][6] = 983.937838871757;
w[8][7] = 1316.03783887176;
w[8][8] = 0;
pai = new Array();
pai[0] = new Array();
pai[0][0] = 0;
pai[0][1] = 1;
pai[0][2] = 1;
pai[0][3] = 1;
pai[0][4] = 1;
pai[0][5] = 1;
pai[0][6] = 1;
pai[0][7] = 1;
pai[0][8] = 1;
pai[1] = new Array();
pai[1][0] = 0;
pai[1][1] = 1;
pai[1][2] = 2;
pai[1][3] = 2;
pai[1][4] = 2;
pai[1][5] = 2;
pai[1][6] = 2;
pai[1][7] = 2;
pai[1][8] = 2;
pai[2] = new Array();
pai[2][0] = 1;
pai[2][1] = 1;
pai[2][2] = 2;
pai[2][3] = 3;
pai[2][4] = 3;
pai[2][5] = 3;
pai[2][6] = 3;
pai[2][7] = 3;
pai[2][8] = 3;
pai[3] = new Array();
pai[3][0] = 2;
pai[3][1] = 2;
pai[3][2] = 2;
pai[3][3] = 3;
pai[3][4] = 4;
pai[3][5] = 4;
pai[3][6] = 4;
pai[3][7] = 4;
pai[3][8] = 4;
pai[4] = new Array();
pai[4][0] = 3;
pai[4][1] = 3;
pai[4][2] = 3;
pai[4][3] = 3;
pai[4][4] = 4;
pai[4][5] = 5;
pai[4][6] = 5;
pai[4][7] = 5;
pai[4][8] = 8;
pai[5] = new Array();
pai[5][0] = 4;
pai[5][1] = 4;
pai[5][2] = 4;
pai[5][3] = 4;
pai[5][4] = 4;
pai[5][5] = 5;
pai[5][6] = 6;
pai[5][7] = 6;
pai[5][8] = 4;
pai[6] = new Array();
pai[6][0] = 5;
pai[6][1] = 5;
pai[6][2] = 5;
pai[6][3] = 5;
pai[6][4] = 5;
pai[6][5] = 5;
pai[6][6] = 6;
pai[6][7] = 7;
pai[6][8] = 5;
pai[7] = new Array();
pai[7][0] = 6;
pai[7][1] = 6;
pai[7][2] = 6;
pai[7][3] = 6;
pai[7][4] = 6;
pai[7][5] = 6;
pai[7][6] = 6;
pai[7][7] = 7;
pai[7][8] = 6;
pai[8] = new Array();
pai[8][0] = 4;
pai[8][1] = 4;
pai[8][2] = 4;
pai[8][3] = 4;
pai[8][4] = 4;
pai[8][5] = 4;
pai[8][6] = 4;
pai[8][7] = 4;
pai[8][8] = 8;
carr[2].j3 = true;
carr[2].r3 = false;
carr[2].d3 = true;
carr[3].j2 = true;
carr[3].r2 = true;
carr[3].d2 = false;
carr[4].j5 = true;
carr[4].r5 = false;
carr[4].d5 = true;
carr[5].j4 = true;
carr[5].r4 = true;
carr[5].d4 = true;
carr[6].j7 = true;
carr[6].r7 = false;
carr[6].d7 = true;
carr[7].j6 = true;
carr[7].r6 = true;
carr[7].d6 = true;
};
startall();
Instance of Symbol 1127 MovieClip in Frame 13
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 0;
var cb = 1;
}
Instance of Symbol 1127 MovieClip in Frame 13
onClipEvent (load) {
var t1 = true;
var t10 = false;
}
Instance of Symbol 1127 MovieClip in Frame 13
onClipEvent (load) {
var t1 = true;
var t10 = true;
}
Instance of Symbol 1235 MovieClip in Frame 13
onClipEvent (load) {
ca = 0;
cb = 1;
left = false;
}
Instance of Symbol 1235 MovieClip in Frame 13
onClipEvent (load) {
ca = 4;
cb = 8;
left = false;
}
Instance of Symbol 1235 MovieClip in Frame 13
onClipEvent (load) {
ca = 0;
cb = 1;
left = false;
}
Instance of Symbol 1235 MovieClip in Frame 13
onClipEvent (load) {
ca = 7;
cb = 7;
left = false;
}
Instance of Symbol 1235 MovieClip in Frame 13
onClipEvent (load) {
ca = 1;
cb = 2;
left = true;
}
Instance of Symbol 1235 MovieClip in Frame 13
onClipEvent (load) {
ca = 5;
cb = 6;
left = true;
}
Instance of Symbol 1127 MovieClip in Frame 13
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 1;
var cb = 2;
}
Instance of Symbol 1127 MovieClip in Frame 13
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 7;
var cb = 7;
}
Instance of Symbol 1127 MovieClip in Frame 13
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 5;
var cb = 6;
}
Instance of Symbol 1127 MovieClip in Frame 13
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 3;
var cb = 4;
}
Instance of Symbol 1127 MovieClip in Frame 13
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 4;
var cb = 8;
}
Instance of Symbol 1127 MovieClip in Frame 13
onClipEvent (load) {
var t1 = true;
var t10 = false;
}
Instance of Symbol 1127 MovieClip in Frame 13
onClipEvent (load) {
var t1 = false;
var t10 = true;
var right = false;
var left = false;
}
Instance of Symbol 1127 MovieClip in Frame 13
onClipEvent (load) {
var t1 = false;
var t10 = true;
var right = false;
var left = false;
}
Instance of Symbol 1127 MovieClip in Frame 13
onClipEvent (load) {
var t1 = false;
var t10 = true;
var right = false;
var left = false;
}
Instance of Symbol 1127 MovieClip in Frame 13
onClipEvent (load) {
var t1 = true;
var t10 = false;
}
Instance of Symbol 1127 MovieClip in Frame 13
onClipEvent (load) {
var t1 = true;
var t10 = true;
}
Instance of Symbol 1127 MovieClip in Frame 13
onClipEvent (load) {
var t1 = true;
var t10 = false;
}
Instance of Symbol 1127 MovieClip in Frame 13
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 1;
var cb = 2;
}
Instance of Symbol 1127 MovieClip in Frame 13
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 4;
var cb = 8;
}
Instance of Symbol 1127 MovieClip in Frame 13
onClipEvent (load) {
var t1 = true;
var t10 = false;
}
Instance of Symbol 1127 MovieClip in Frame 13
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 4;
var cb = 8;
}
Instance of Symbol 1127 MovieClip in Frame 13
onClipEvent (load) {
var t1 = true;
var t10 = true;
}
Frame 14
stop();
lfunc = function () {
carr = new Array(13);
carr[0] = new Object();
carr[0].x = -386.55;
carr[0].y = 430;
carr[0].n = 2;
carr[0].k1 = 2;
carr[0].k2 = 7;
carr[1] = new Object();
carr[1].x = -260.15;
carr[1].y = 341.9;
carr[1].n = 2;
carr[1].k1 = 1;
carr[1].k2 = 3;
carr[2] = new Object();
carr[2].x = -100.15;
carr[2].y = 278.1;
carr[2].n = 2;
carr[2].k1 = 2;
carr[2].k2 = 4;
carr[3] = new Object();
carr[3].x = 29.7;
carr[3].y = 243.8;
carr[3].n = 2;
carr[3].k1 = 3;
carr[3].k2 = 5;
carr[4] = new Object();
carr[4].x = 162.55;
carr[4].y = 193.9;
carr[4].n = 2;
carr[4].k1 = 4;
carr[4].k2 = 6;
carr[5] = new Object();
carr[5].x = 290.85;
carr[5].y = 142;
carr[5].n = 2;
carr[5].k1 = 5;
carr[5].k2 = 8;
carr[6] = new Object();
carr[6].x = 377.95;
carr[6].y = 500.35;
carr[6].n = 2;
carr[6].k1 = 1;
carr[6].k2 = 12;
carr[7] = new Object();
carr[7].x = 453.4;
carr[7].y = 139.7;
carr[7].n = 2;
carr[7].k1 = 6;
carr[7].k2 = 9;
carr[8] = new Object();
carr[8].x = 602.6;
carr[8].y = 193.9;
carr[8].n = 2;
carr[8].k1 = 8;
carr[8].k2 = 10;
carr[9] = new Object();
carr[9].x = 729.5;
carr[9].y = 243.8;
carr[9].n = 2;
carr[9].k1 = 9;
carr[9].k2 = 11;
carr[10] = new Object();
carr[10].x = 872.75;
carr[10].y = 339.9;
carr[10].n = 2;
carr[10].k1 = 10;
carr[10].k2 = 13;
carr[11] = new Object();
carr[11].x = 921.4;
carr[11].y = 500.35;
carr[11].n = 2;
carr[11].k1 = 7;
carr[11].k2 = 13;
carr[12] = new Object();
carr[12].x = 1017.3;
carr[12].y = 420.45;
carr[12].n = 2;
carr[12].k1 = 11;
carr[12].k2 = 12;
w = new Array();
w[0] = new Array();
w[0][0] = 0;
w[0][1] = 154.073261794511;
w[0][2] = 326.324357582027;
w[0][3] = 460.628164303952;
w[0][4] = 602.540575670963;
w[0][5] = 740.940358907788;
w[0][6] = 767.730012764904;
w[0][7] = 903.50663000976;
w[0][8] = 1062.24629109041;
w[0][9] = 1198.60471583931;
w[0][10] = 1371.10333177578;
w[0][11] = 1311.1800127649;
w[0][12] = 1436.00316766815;
w[1] = new Array();
w[1][0] = 154.073261794511;
w[1][1] = 0;
w[1][2] = 172.251095787516;
w[1][3] = 306.55490250944;
w[1][4] = 448.467313876452;
w[1][5] = 586.867097113277;
w[1][6] = 921.803274559415;
w[1][7] = 749.433368215249;
w[1][8] = 908.1730292959;
w[1][9] = 1044.53145404479;
w[1][10] = 1217.03006998127;
w[1][11] = 1465.25327455942;
w[1][12] = 1382.50818031614;
w[2] = new Array();
w[2][0] = 326.324357582027;
w[2][1] = 172.251095787516;
w[2][2] = 0;
w[2][3] = 134.303806721924;
w[2][4] = 276.216218088936;
w[2][5] = 414.616001325761;
w[2][6] = 1094.05437034693;
w[2][7] = 577.182272427733;
w[2][8] = 735.921933508384;
w[2][9] = 872.280358257279;
w[2][10] = 1044.77897419376;
w[2][11] = 1335.08023943187;
w[2][12] = 1210.25708452863;
w[3] = new Array();
w[3][0] = 460.628164303952;
w[3][1] = 306.55490250944;
w[3][2] = 134.303806721924;
w[3][3] = 0;
w[3][4] = 141.912411367012;
w[3][5] = 280.312194603836;
w[3][6] = 1228.35817706886;
w[3][7] = 442.878465705809;
w[3][8] = 601.61812678646;
w[3][9] = 737.976551535355;
w[3][10] = 910.475167471831;
w[3][11] = 1200.77643270995;
w[3][12] = 1075.9532778067;
w[4] = new Array();
w[4][0] = 602.540575670963;
w[4][1] = 448.467313876452;
w[4][2] = 276.216218088936;
w[4][3] = 141.912411367012;
w[4][4] = 0;
w[4][5] = 138.399783236824;
w[4][6] = 1370.27058843587;
w[4][7] = 300.966054338797;
w[4][8] = 459.705715419448;
w[4][9] = 596.064140168343;
w[4][10] = 768.562756104819;
w[4][11] = 1058.86402134294;
w[4][12] = 934.040866439691;
w[5] = new Array();
w[5][0] = 740.940358907788;
w[5][1] = 586.867097113277;
w[5][2] = 414.616001325761;
w[5][3] = 280.312194603836;
w[5][4] = 138.399783236824;
w[5][5] = 0;
w[5][6] = 1463.91423810611;
w[5][7] = 162.566271101972;
w[5][8] = 321.305932182624;
w[5][9] = 457.664356931518;
w[5][10] = 630.162972867995;
w[5][11] = 920.464238106114;
w[5][12] = 795.641083202867;
w[6] = new Array();
w[6][0] = 767.730012764904;
w[6][1] = 921.803274559415;
w[6][2] = 1094.05437034693;
w[6][3] = 1228.35817706886;
w[6][4] = 1370.27058843587;
w[6][5] = 1463.91423810611;
w[6][6] = 0;
w[6][7] = 1301.34796700414;
w[6][8] = 1142.60830592349;
w[6][9] = 1006.2498811746;
w[6][10] = 833.751265238119;
w[6][11] = 543.45;
w[6][12] = 668.273154903247;
w[7] = new Array();
w[7][0] = 903.50663000976;
w[7][1] = 749.433368215249;
w[7][2] = 577.182272427733;
w[7][3] = 442.878465705809;
w[7][4] = 300.966054338797;
w[7][5] = 162.566271101972;
w[7][6] = 1301.34796700414;
w[7][7] = 0;
w[7][8] = 158.739661080651;
w[7][9] = 295.098085829546;
w[7][10] = 467.596701766022;
w[7][11] = 757.897967004141;
w[7][12] = 633.074812100894;
w[8] = new Array();
w[8][0] = 1062.24629109041;
w[8][1] = 908.1730292959;
w[8][2] = 735.921933508384;
w[8][3] = 601.61812678646;
w[8][4] = 459.705715419448;
w[8][5] = 321.305932182624;
w[8][6] = 1142.60830592349;
w[8][7] = 158.739661080651;
w[8][8] = 0;
w[8][9] = 136.358424748895;
w[8][10] = 308.857040685371;
w[8][11] = 599.15830592349;
w[8][12] = 474.335151020243;
w[9] = new Array();
w[9][0] = 1198.60471583931;
w[9][1] = 1044.53145404479;
w[9][2] = 872.280358257279;
w[9][3] = 737.976551535355;
w[9][4] = 596.064140168343;
w[9][5] = 457.664356931518;
w[9][6] = 1006.2498811746;
w[9][7] = 295.098085829546;
w[9][8] = 136.358424748895;
w[9][9] = 0;
w[9][10] = 172.498615936476;
w[9][11] = 462.799881174595;
w[9][12] = 337.976726271348;
w[10] = new Array();
w[10][0] = 1371.10333177578;
w[10][1] = 1217.03006998127;
w[10][2] = 1044.77897419376;
w[10][3] = 910.475167471831;
w[10][4] = 768.562756104819;
w[10][5] = 630.162972867995;
w[10][6] = 833.751265238119;
w[10][7] = 467.596701766022;
w[10][8] = 308.857040685371;
w[10][9] = 172.498615936476;
w[10][10] = 0;
w[10][11] = 290.301265238119;
w[10][12] = 165.478110334872;
w[11] = new Array();
w[11][0] = 1311.1800127649;
w[11][1] = 1465.25327455942;
w[11][2] = 1335.08023943187;
w[11][3] = 1200.77643270995;
w[11][4] = 1058.86402134294;
w[11][5] = 920.464238106114;
w[11][6] = 543.45;
w[11][7] = 757.897967004141;
w[11][8] = 599.15830592349;
w[11][9] = 462.799881174595;
w[11][10] = 290.301265238119;
w[11][11] = 0;
w[11][12] = 124.823154903247;
w[12] = new Array();
w[12][0] = 1436.00316766815;
w[12][1] = 1382.50818031614;
w[12][2] = 1210.25708452863;
w[12][3] = 1075.9532778067;
w[12][4] = 934.040866439691;
w[12][5] = 795.641083202867;
w[12][6] = 668.273154903247;
w[12][7] = 633.074812100894;
w[12][8] = 474.335151020243;
w[12][9] = 337.976726271348;
w[12][10] = 165.478110334872;
w[12][11] = 124.823154903247;
w[12][12] = 0;
pai = new Array();
pai[0] = new Array();
pai[0][0] = 0;
pai[0][1] = 1;
pai[0][2] = 1;
pai[0][3] = 1;
pai[0][4] = 1;
pai[0][5] = 1;
pai[0][6] = 6;
pai[0][7] = 1;
pai[0][8] = 1;
pai[0][9] = 1;
pai[0][10] = 1;
pai[0][11] = 6;
pai[0][12] = 6;
pai[1] = new Array();
pai[1][0] = 0;
pai[1][1] = 1;
pai[1][2] = 2;
pai[1][3] = 2;
pai[1][4] = 2;
pai[1][5] = 2;
pai[1][6] = 0;
pai[1][7] = 2;
pai[1][8] = 2;
pai[1][9] = 2;
pai[1][10] = 2;
pai[1][11] = 0;
pai[1][12] = 2;
pai[2] = new Array();
pai[2][0] = 1;
pai[2][1] = 1;
pai[2][2] = 2;
pai[2][3] = 3;
pai[2][4] = 3;
pai[2][5] = 3;
pai[2][6] = 1;
pai[2][7] = 3;
pai[2][8] = 3;
pai[2][9] = 3;
pai[2][10] = 3;
pai[2][11] = 3;
pai[2][12] = 3;
pai[3] = new Array();
pai[3][0] = 2;
pai[3][1] = 2;
pai[3][2] = 2;
pai[3][3] = 3;
pai[3][4] = 4;
pai[3][5] = 4;
pai[3][6] = 2;
pai[3][7] = 4;
pai[3][8] = 4;
pai[3][9] = 4;
pai[3][10] = 4;
pai[3][11] = 4;
pai[3][12] = 4;
pai[4] = new Array();
pai[4][0] = 3;
pai[4][1] = 3;
pai[4][2] = 3;
pai[4][3] = 3;
pai[4][4] = 4;
pai[4][5] = 5;
pai[4][6] = 3;
pai[4][7] = 5;
pai[4][8] = 5;
pai[4][9] = 5;
pai[4][10] = 5;
pai[4][11] = 5;
pai[4][12] = 5;
pai[5] = new Array();
pai[5][0] = 4;
pai[5][1] = 4;
pai[5][2] = 4;
pai[5][3] = 4;
pai[5][4] = 4;
pai[5][5] = 5;
pai[5][6] = 7;
pai[5][7] = 7;
pai[5][8] = 7;
pai[5][9] = 7;
pai[5][10] = 7;
pai[5][11] = 7;
pai[5][12] = 7;
pai[6] = new Array();
pai[6][0] = 0;
pai[6][1] = 0;
pai[6][2] = 0;
pai[6][3] = 0;
pai[6][4] = 0;
pai[6][5] = 11;
pai[6][6] = 6;
pai[6][7] = 11;
pai[6][8] = 11;
pai[6][9] = 11;
pai[6][10] = 11;
pai[6][11] = 11;
pai[6][12] = 11;
pai[7] = new Array();
pai[7][0] = 5;
pai[7][1] = 5;
pai[7][2] = 5;
pai[7][3] = 5;
pai[7][4] = 5;
pai[7][5] = 5;
pai[7][6] = 8;
pai[7][7] = 7;
pai[7][8] = 8;
pai[7][9] = 8;
pai[7][10] = 8;
pai[7][11] = 8;
pai[7][12] = 8;
pai[8] = new Array();
pai[8][0] = 7;
pai[8][1] = 7;
pai[8][2] = 7;
pai[8][3] = 7;
pai[8][4] = 7;
pai[8][5] = 7;
pai[8][6] = 9;
pai[8][7] = 7;
pai[8][8] = 8;
pai[8][9] = 9;
pai[8][10] = 9;
pai[8][11] = 9;
pai[8][12] = 9;
pai[9] = new Array();
pai[9][0] = 8;
pai[9][1] = 8;
pai[9][2] = 8;
pai[9][3] = 8;
pai[9][4] = 8;
pai[9][5] = 8;
pai[9][6] = 10;
pai[9][7] = 8;
pai[9][8] = 8;
pai[9][9] = 9;
pai[9][10] = 10;
pai[9][11] = 10;
pai[9][12] = 10;
pai[10] = new Array();
pai[10][0] = 9;
pai[10][1] = 9;
pai[10][2] = 9;
pai[10][3] = 9;
pai[10][4] = 9;
pai[10][5] = 9;
pai[10][6] = 12;
pai[10][7] = 9;
pai[10][8] = 9;
pai[10][9] = 9;
pai[10][10] = 10;
pai[10][11] = 12;
pai[10][12] = 12;
pai[11] = new Array();
pai[11][0] = 6;
pai[11][1] = 6;
pai[11][2] = 12;
pai[11][3] = 12;
pai[11][4] = 12;
pai[11][5] = 12;
pai[11][6] = 6;
pai[11][7] = 12;
pai[11][8] = 12;
pai[11][9] = 12;
pai[11][10] = 12;
pai[11][11] = 11;
pai[11][12] = 12;
pai[12] = new Array();
pai[12][0] = 11;
pai[12][1] = 10;
pai[12][2] = 10;
pai[12][3] = 10;
pai[12][4] = 10;
pai[12][5] = 10;
pai[12][6] = 11;
pai[12][7] = 10;
pai[12][8] = 10;
pai[12][9] = 10;
pai[12][10] = 10;
pai[12][11] = 11;
pai[12][12] = 12;
carr[0].j1 = true;
carr[0].r1 = true;
carr[0].d1 = true;
carr[1].j2 = true;
carr[1].r2 = true;
carr[1].d2 = false;
carr[2].j3 = true;
carr[2].r3 = true;
carr[2].d3 = false;
carr[3].j4 = true;
carr[3].r4 = true;
carr[3].d4 = false;
carr[4].j5 = true;
carr[4].r5 = true;
carr[4].d5 = false;
carr[5].j7 = true;
carr[5].r7 = true;
carr[5].d7 = false;
carr[7].j5 = true;
carr[7].r5 = false;
carr[7].d5 = false;
carr[8].j7 = true;
carr[8].r7 = false;
carr[8].d7 = false;
carr[9].j8 = true;
carr[9].r8 = false;
carr[9].d8 = false;
carr[10].j9 = true;
carr[10].r9 = false;
carr[10].d9 = true;
carr[12].j10 = true;
carr[12].r10 = false;
carr[12].d10 = true;
carr[11].j12 = true;
carr[11].r12 = true;
carr[11].d12 = true;
};
startall();
Instance of Symbol 1235 MovieClip in Frame 14
onClipEvent (load) {
ca = 5;
cb = 5;
left = false;
}
Instance of Symbol 1235 MovieClip in Frame 14
onClipEvent (load) {
ca = 0;
cb = 11;
left = false;
}
Instance of Symbol 1235 MovieClip in Frame 14
onClipEvent (load) {
ca = 0;
cb = 11;
left = false;
}
Instance of Symbol 1235 MovieClip in Frame 14
onClipEvent (load) {
ca = 2;
cb = 2;
left = false;
}
Instance of Symbol 1235 MovieClip in Frame 14
onClipEvent (load) {
ca = 8;
cb = 8;
left = true;
}
Instance of Symbol 1235 MovieClip in Frame 14
onClipEvent (load) {
ca = 12;
cb = 12;
left = true;
}
Instance of Symbol 1127 MovieClip in Frame 14
onClipEvent (load) {
var t1 = true;
var t10 = false;
}
Instance of Symbol 1127 MovieClip in Frame 14
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 0;
var cb = 6;
}
Instance of Symbol 1127 MovieClip in Frame 14
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 0;
var cb = 6;
}
Instance of Symbol 1127 MovieClip in Frame 14
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 0;
var cb = 11;
}
Instance of Symbol 1127 MovieClip in Frame 14
onClipEvent (load) {
var t1 = true;
var t10 = true;
}
Instance of Symbol 1127 MovieClip in Frame 14
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 12;
var cb = 12;
}
Instance of Symbol 1127 MovieClip in Frame 14
onClipEvent (load) {
var t1 = true;
var t10 = true;
}
Instance of Symbol 1127 MovieClip in Frame 14
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 5;
var cb = 5;
}
Instance of Symbol 1127 MovieClip in Frame 14
onClipEvent (load) {
var t1 = true;
var t10 = true;
}
Instance of Symbol 1127 MovieClip in Frame 14
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 4;
var cb = 4;
}
Instance of Symbol 1127 MovieClip in Frame 14
onClipEvent (load) {
var t1 = true;
var t10 = false;
}
Instance of Symbol 1127 MovieClip in Frame 14
onClipEvent (load) {
var t1 = true;
var t10 = true;
}
Instance of Symbol 1127 MovieClip in Frame 14
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 3;
var cb = 3;
}
Instance of Symbol 1127 MovieClip in Frame 14
onClipEvent (load) {
var t1 = true;
var t10 = true;
}
Instance of Symbol 1127 MovieClip in Frame 14
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 2;
var cb = 2;
}
Instance of Symbol 1127 MovieClip in Frame 14
onClipEvent (load) {
var t1 = true;
var t10 = true;
}
Instance of Symbol 1127 MovieClip in Frame 14
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 1;
var cb = 1;
}
Instance of Symbol 1127 MovieClip in Frame 14
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 7;
var cb = 7;
}
Instance of Symbol 1127 MovieClip in Frame 14
onClipEvent (load) {
var t1 = true;
var t10 = false;
}
Instance of Symbol 1127 MovieClip in Frame 14
onClipEvent (load) {
var t1 = true;
var t10 = true;
}
Instance of Symbol 1127 MovieClip in Frame 14
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 8;
var cb = 8;
}
Instance of Symbol 1127 MovieClip in Frame 14
onClipEvent (load) {
var t1 = true;
var t10 = false;
}
Instance of Symbol 1127 MovieClip in Frame 14
onClipEvent (load) {
var t1 = true;
var t10 = true;
}
Instance of Symbol 1127 MovieClip in Frame 14
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 9;
var cb = 9;
}
Instance of Symbol 1127 MovieClip in Frame 14
onClipEvent (load) {
var t1 = true;
var t10 = false;
}
Instance of Symbol 1127 MovieClip in Frame 14
onClipEvent (load) {
var t1 = true;
var t10 = true;
}
Instance of Symbol 1127 MovieClip in Frame 14
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 10;
var cb = 10;
}
Instance of Symbol 1127 MovieClip in Frame 14
onClipEvent (load) {
var t1 = true;
var t10 = false;
}
Instance of Symbol 1127 MovieClip in Frame 14
onClipEvent (load) {
var t1 = true;
var t10 = true;
}
Instance of Symbol 1127 MovieClip in Frame 14
onClipEvent (load) {
var t1 = false;
var t10 = true;
var right = false;
var left = false;
}
Instance of Symbol 1127 MovieClip in Frame 14
onClipEvent (load) {
var t1 = false;
var t10 = true;
var right = false;
var left = false;
}
Instance of Symbol 1127 MovieClip in Frame 14
onClipEvent (load) {
var t1 = false;
var t10 = true;
var right = false;
var left = false;
}
Instance of Symbol 1127 MovieClip in Frame 14
onClipEvent (load) {
var t1 = false;
var t10 = true;
var right = false;
var left = false;
}
Instance of Symbol 1127 MovieClip in Frame 14
onClipEvent (load) {
var t1 = false;
var t10 = true;
var right = false;
var left = true;
}
Frame 15
stop();
lfunc = function () {
carr = new Array(14);
carr[0] = new Object();
carr[0].x = -303.3;
carr[0].y = 66.3;
carr[0].n = 2;
carr[0].k1 = 2;
carr[0].k2 = 3;
carr[1] = new Object();
carr[1].x = -117.2;
carr[1].y = 33.35;
carr[1].n = 1;
carr[1].k1 = 1;
carr[2] = new Object();
carr[2].x = 61.1;
carr[2].y = 327;
carr[2].n = 3;
carr[2].k1 = 1;
carr[2].k2 = 4;
carr[2].k3 = 5;
carr[3] = new Object();
carr[3].x = 153.45;
carr[3].y = 442.55;
carr[3].n = 2;
carr[3].k1 = 3;
carr[3].k2 = 7;
carr[4] = new Object();
carr[4].x = 277.6;
carr[4].y = 327.6;
carr[4].n = 2;
carr[4].k1 = 3;
carr[4].k2 = 9;
carr[5] = new Object();
carr[5].x = 374.2;
carr[5].y = 66.3;
carr[5].n = 2;
carr[5].k1 = 8;
carr[5].k2 = 13;
carr[6] = new Object();
carr[6].x = 430.45;
carr[6].y = 680.9;
carr[6].n = 1;
carr[6].k1 = 4;
carr[7] = new Object();
carr[7].x = 543.4;
carr[7].y = -25.3;
carr[7].n = 2;
carr[7].k1 = 6;
carr[7].k2 = 10;
carr[8] = new Object();
carr[8].x = 768.65;
carr[8].y = 323.85;
carr[8].n = 2;
carr[8].k1 = 5;
carr[8].k2 = 11;
carr[9] = new Object();
carr[9].x = 842.4;
carr[9].y = -25.3;
carr[9].n = 1;
carr[9].k1 = 8;
carr[10] = new Object();
carr[10].x = 865.25;
carr[10].y = 456.15;
carr[10].n = 2;
carr[10].k1 = 9;
carr[10].k2 = 12;
carr[11] = new Object();
carr[11].x = 987.25;
carr[11].y = 327;
carr[11].n = 2;
carr[11].k1 = 11;
carr[11].k2 = 14;
carr[12] = new Object();
carr[12].x = 1009.8;
carr[12].y = 187.95;
carr[12].n = 2;
carr[12].k1 = 6;
carr[12].k2 = 14;
carr[13] = new Object();
carr[13].x = 1088.8;
carr[13].y = 284.55;
carr[13].n = 2;
carr[13].k1 = 12;
carr[13].k2 = 13;
w = new Array();
w[0] = new Array();
w[0][0] = 0;
w[0][1] = 188.994477432543;
w[0][2] = 448.053400835213;
w[0][3] = 595.973396102925;
w[0][4] = 664.554232242393;
w[0][5] = 2379.08618838091;
w[0][6] = 961.404268498786;
w[0][7] = 2571.48993054826;
w[0][8] = 1155.61855084027;
w[0][9] = 2870.48993054826;
w[0][10] = 1319.43201182563;
w[0][11] = 1497.0938324287;
w[0][12] = 1731.94935393243;
w[0][13] = 1607.15929022542;
w[1] = new Array();
w[1][0] = 188.994477432543;
w[1][1] = 0;
w[1][2] = 637.047878267756;
w[1][3] = 784.967873535468;
w[1][4] = 853.548709674936;
w[1][5] = 2568.08066581345;
w[1][6] = 1150.39874593133;
w[1][7] = 2760.4844079808;
w[1][8] = 1344.61302827282;
w[1][9] = 3059.4844079808;
w[1][10] = 1508.42648925817;
w[1][11] = 1686.08830986125;
w[1][12] = 1920.94383136497;
w[1][13] = 1796.15376765796;
w[2] = new Array();
w[2][0] = 448.053400835213;
w[2][1] = 637.047878267756;
w[2][2] = 0;
w[2][3] = 147.919995267712;
w[2][4] = 216.50083140718;
w[2][5] = 1931.0327875457;
w[2][6] = 513.350867663573;
w[2][7] = 2123.43652971305;
w[2][8] = 707.56515000506;
w[2][9] = 2422.43652971305;
w[2][10] = 871.378610990413;
w[2][11] = 1049.04043159349;
w[2][12] = 1283.89595309721;
w[2][13] = 1159.1058893902;
w[3] = new Array();
w[3][0] = 595.973396102925;
w[3][1] = 784.967873535468;
w[3][2] = 147.919995267712;
w[3][3] = 0;
w[3][4] = 364.420826674892;
w[3][5] = 2078.95278281341;
w[3][6] = 365.430872395861;
w[3][7] = 2271.35652498076;
w[3][8] = 855.485145272772;
w[3][9] = 2570.35652498076;
w[3][10] = 1019.29860625813;
w[3][11] = 1196.9604268612;
w[3][12] = 1431.81594836493;
w[3][13] = 1307.02588465792;
w[4] = new Array();
w[4][0] = 664.554232242393;
w[4][1] = 853.548709674936;
w[4][2] = 216.50083140718;
w[4][3] = 364.420826674892;
w[4][4] = 0;
w[4][5] = 1714.53195613852;
w[4][6] = 729.851699070753;
w[4][7] = 1906.93569830587;
w[4][8] = 491.06431859788;
w[4][9] = 2205.93569830587;
w[4][10] = 654.877779583234;
w[4][11] = 832.539600186311;
w[4][12] = 1067.39512169004;
w[4][13] = 942.605057983024;
w[5] = new Array();
w[5][0] = 2379.08618838091;
w[5][1] = 2568.08066581345;
w[5][2] = 1931.0327875457;
w[5][3] = 2078.95278281341;
w[5][4] = 1714.53195613852;
w[5][5] = 0;
w[5][6] = 2444.38365520927;
w[5][7] = 192.40374216735;
w[5][8] = 1223.46763754064;
w[5][9] = 491.40374216735;
w[5][10] = 1059.65417655528;
w[5][11] = 881.992355952205;
w[5][12] = 647.136834448481;
w[5][13] = 771.926898155492;
w[6] = new Array();
w[6][0] = 961.404268498786;
w[6][1] = 1150.39874593133;
w[6][2] = 513.350867663573;
w[6][3] = 365.430872395861;
w[6][4] = 729.851699070753;
w[6][5] = 2444.38365520927;
w[6][6] = 0;
w[6][7] = 2636.78739737662;
w[6][8] = 1220.91601766863;
w[6][9] = 2935.78739737662;
w[6][10] = 1384.72947865399;
w[6][11] = 1562.39129925706;
w[6][12] = 1797.24682076079;
w[6][13] = 1672.45675705378;
w[7] = new Array();
w[7][0] = 2571.48993054826;
w[7][1] = 2760.4844079808;
w[7][2] = 2123.43652971305;
w[7][3] = 2271.35652498076;
w[7][4] = 1906.93569830587;
w[7][5] = 192.40374216735;
w[7][6] = 2636.78739737662;
w[7][7] = 0;
w[7][8] = 1415.87137970799;
w[7][9] = 299;
w[7][10] = 1252.05791872263;
w[7][11] = 1074.39609811955;
w[7][12] = 839.54057661583;
w[7][13] = 964.330640322842;
w[8] = new Array();
w[8][0] = 1155.61855084027;
w[8][1] = 1344.61302827282;
w[8][2] = 707.56515000506;
w[8][3] = 855.485145272772;
w[8][4] = 491.06431859788;
w[8][5] = 1223.46763754064;
w[8][6] = 1220.91601766863;
w[8][7] = 1415.87137970799;
w[8][8] = 0;
w[8][9] = 1714.87137970799;
w[8][10] = 163.813460985354;
w[8][11] = 341.475281588431;
w[8][12] = 576.330803092155;
w[8][13] = 451.540739385144;
w[9] = new Array();
w[9][0] = 2870.48993054826;
w[9][1] = 3059.4844079808;
w[9][2] = 2422.43652971305;
w[9][3] = 2570.35652498076;
w[9][4] = 2205.93569830587;
w[9][5] = 491.40374216735;
w[9][6] = 2935.78739737662;
w[9][7] = 299;
w[9][8] = 1714.87137970799;
w[9][9] = 0;
w[9][10] = 1551.05791872263;
w[9][11] = 1373.39609811955;
w[9][12] = 1138.54057661583;
w[9][13] = 1263.33064032284;
w[10] = new Array();
w[10][0] = 1319.43201182563;
w[10][1] = 1508.42648925817;
w[10][2] = 871.378610990413;
w[10][3] = 1019.29860625813;
w[10][4] = 654.877779583234;
w[10][5] = 1059.65417655528;
w[10][6] = 1384.72947865399;
w[10][7] = 1252.05791872263;
w[10][8] = 163.813460985354;
w[10][9] = 1551.05791872263;
w[10][10] = 0;
w[10][11] = 177.661820603077;
w[10][12] = 412.517342106802;
w[10][13] = 287.72727839979;
w[11] = new Array();
w[11][0] = 1497.0938324287;
w[11][1] = 1686.08830986125;
w[11][2] = 1049.04043159349;
w[11][3] = 1196.9604268612;
w[11][4] = 832.539600186311;
w[11][5] = 881.992355952205;
w[11][6] = 1562.39129925706;
w[11][7] = 1074.39609811955;
w[11][8] = 341.475281588431;
w[11][9] = 1373.39609811955;
w[11][10] = 177.661820603077;
w[11][11] = 0;
w[11][12] = 234.855521503724;
w[11][13] = 110.065457796713;
w[12] = new Array();
w[12][0] = 1731.94935393243;
w[12][1] = 1920.94383136497;
w[12][2] = 1283.89595309721;
w[12][3] = 1431.81594836493;
w[12][4] = 1067.39512169004;
w[12][5] = 647.136834448481;
w[12][6] = 1797.24682076079;
w[12][7] = 839.54057661583;
w[12][8] = 576.330803092155;
w[12][9] = 1138.54057661583;
w[12][10] = 412.517342106802;
w[12][11] = 234.855521503724;
w[12][12] = 0;
w[12][13] = 124.790063707011;
w[13] = new Array();
w[13][0] = 1607.15929022542;
w[13][1] = 1796.15376765796;
w[13][2] = 1159.1058893902;
w[13][3] = 1307.02588465792;
w[13][4] = 942.605057983024;
w[13][5] = 771.926898155492;
w[13][6] = 1672.45675705378;
w[13][7] = 964.330640322842;
w[13][8] = 451.540739385144;
w[13][9] = 1263.33064032284;
w[13][10] = 287.72727839979;
w[13][11] = 110.065457796713;
w[13][12] = 124.790063707011;
w[13][13] = 0;
pai = new Array();
pai[0] = new Array();
pai[0][0] = 0;
pai[0][1] = 1;
pai[0][2] = 2;
pai[0][3] = 2;
pai[0][4] = 2;
pai[0][5] = 2;
pai[0][6] = 2;
pai[0][7] = 2;
pai[0][8] = 2;
pai[0][9] = 2;
pai[0][10] = 2;
pai[0][11] = 2;
pai[0][12] = 2;
pai[0][13] = 2;
pai[1] = new Array();
pai[1][0] = 0;
pai[1][1] = 1;
pai[1][2] = 0;
pai[1][3] = 0;
pai[1][4] = 0;
pai[1][5] = 0;
pai[1][6] = 0;
pai[1][7] = 0;
pai[1][8] = 0;
pai[1][9] = 0;
pai[1][10] = 0;
pai[1][11] = 0;
pai[1][12] = 0;
pai[1][13] = 0;
pai[2] = new Array();
pai[2][0] = 0;
pai[2][1] = 0;
pai[2][2] = 2;
pai[2][3] = 3;
pai[2][4] = 4;
pai[2][5] = 4;
pai[2][6] = 3;
pai[2][7] = 4;
pai[2][8] = 4;
pai[2][9] = 4;
pai[2][10] = 4;
pai[2][11] = 4;
pai[2][12] = 4;
pai[2][13] = 4;
pai[3] = new Array();
pai[3][0] = 2;
pai[3][1] = 2;
pai[3][2] = 2;
pai[3][3] = 3;
pai[3][4] = 2;
pai[3][5] = 2;
pai[3][6] = 6;
pai[3][7] = 2;
pai[3][8] = 2;
pai[3][9] = 2;
pai[3][10] = 2;
pai[3][11] = 2;
pai[3][12] = 2;
pai[3][13] = 2;
pai[4] = new Array();
pai[4][0] = 2;
pai[4][1] = 2;
pai[4][2] = 2;
pai[4][3] = 2;
pai[4][4] = 4;
pai[4][5] = 8;
pai[4][6] = 2;
pai[4][7] = 8;
pai[4][8] = 8;
pai[4][9] = 8;
pai[4][10] = 8;
pai[4][11] = 8;
pai[4][12] = 8;
pai[4][13] = 8;
pai[5] = new Array();
pai[5][0] = 12;
pai[5][1] = 12;
pai[5][2] = 12;
pai[5][3] = 12;
pai[5][4] = 12;
pai[5][5] = 5;
pai[5][6] = 12;
pai[5][7] = 7;
pai[5][8] = 12;
pai[5][9] = 7;
pai[5][10] = 12;
pai[5][11] = 12;
pai[5][12] = 12;
pai[5][13] = 12;
pai[6] = new Array();
pai[6][0] = 3;
pai[6][1] = 3;
pai[6][2] = 3;
pai[6][3] = 3;
pai[6][4] = 3;
pai[6][5] = 3;
pai[6][6] = 6;
pai[6][7] = 3;
pai[6][8] = 3;
pai[6][9] = 3;
pai[6][10] = 3;
pai[6][11] = 3;
pai[6][12] = 3;
pai[6][13] = 3;
pai[7] = new Array();
pai[7][0] = 5;
pai[7][1] = 5;
pai[7][2] = 5;
pai[7][3] = 5;
pai[7][4] = 5;
pai[7][5] = 5;
pai[7][6] = 5;
pai[7][7] = 7;
pai[7][8] = 5;
pai[7][9] = 9;
pai[7][10] = 5;
pai[7][11] = 5;
pai[7][12] = 5;
pai[7][13] = 5;
pai[8] = new Array();
pai[8][0] = 4;
pai[8][1] = 4;
pai[8][2] = 4;
pai[8][3] = 4;
pai[8][4] = 4;
pai[8][5] = 10;
pai[8][6] = 4;
pai[8][7] = 10;
pai[8][8] = 8;
pai[8][9] = 10;
pai[8][10] = 10;
pai[8][11] = 10;
pai[8][12] = 10;
pai[8][13] = 10;
pai[9] = new Array();
pai[9][0] = 7;
pai[9][1] = 7;
pai[9][2] = 7;
pai[9][3] = 7;
pai[9][4] = 7;
pai[9][5] = 7;
pai[9][6] = 7;
pai[9][7] = 7;
pai[9][8] = 7;
pai[9][9] = 9;
pai[9][10] = 7;
pai[9][11] = 7;
pai[9][12] = 7;
pai[9][13] = 7;
pai[10] = new Array();
pai[10][0] = 8;
pai[10][1] = 8;
pai[10][2] = 8;
pai[10][3] = 8;
pai[10][4] = 8;
pai[10][5] = 11;
pai[10][6] = 8;
pai[10][7] = 11;
pai[10][8] = 8;
pai[10][9] = 11;
pai[10][10] = 10;
pai[10][11] = 11;
pai[10][12] = 11;
pai[10][13] = 11;
pai[11] = new Array();
pai[11][0] = 10;
pai[11][1] = 10;
pai[11][2] = 10;
pai[11][3] = 10;
pai[11][4] = 10;
pai[11][5] = 13;
pai[11][6] = 10;
pai[11][7] = 13;
pai[11][8] = 10;
pai[11][9] = 13;
pai[11][10] = 10;
pai[11][11] = 11;
pai[11][12] = 13;
pai[11][13] = 13;
pai[12] = new Array();
pai[12][0] = 13;
pai[12][1] = 13;
pai[12][2] = 13;
pai[12][3] = 13;
pai[12][4] = 13;
pai[12][5] = 5;
pai[12][6] = 13;
pai[12][7] = 5;
pai[12][8] = 13;
pai[12][9] = 5;
pai[12][10] = 13;
pai[12][11] = 13;
pai[12][12] = 12;
pai[12][13] = 13;
pai[13] = new Array();
pai[13][0] = 11;
pai[13][1] = 11;
pai[13][2] = 11;
pai[13][3] = 11;
pai[13][4] = 11;
pai[13][5] = 12;
pai[13][6] = 11;
pai[13][7] = 12;
pai[13][8] = 11;
pai[13][9] = 12;
pai[13][10] = 11;
pai[13][11] = 11;
pai[13][12] = 12;
pai[13][13] = 13;
carr[0].j1 = true;
carr[0].r1 = true;
carr[0].d1 = true;
carr[3].j2 = true;
carr[3].r2 = false;
carr[3].d2 = true;
carr[4].j2 = true;
carr[4].r2 = false;
carr[4].d2 = false;
carr[2].j4 = true;
carr[2].r4 = true;
carr[2].d4 = true;
carr[10].j8 = true;
carr[10].r8 = false;
carr[10].d8 = true;
carr[10].j11 = true;
carr[10].r11 = true;
carr[10].d11 = true;
carr[13].j12 = true;
carr[13].r12 = false;
carr[13].d12 = true;
carr[5].j7 = true;
carr[5].r7 = true;
carr[5].d7 = true;
};
startall();
Instance of Symbol 1235 MovieClip in Frame 15
onClipEvent (load) {
ca = 5;
cb = 12;
left = false;
}
Instance of Symbol 1235 MovieClip in Frame 15
onClipEvent (load) {
ca = 3;
cb = 6;
left = true;
}
Instance of Symbol 1235 MovieClip in Frame 15
onClipEvent (load) {
ca = 11;
cb = 13;
left = true;
}
Instance of Symbol 1235 MovieClip in Frame 15
onClipEvent (load) {
ca = 1;
cb = 1;
left = true;
}
Instance of Symbol 1235 MovieClip in Frame 15
onClipEvent (load) {
ca = 7;
cb = 9;
left = true;
}
Instance of Symbol 1235 MovieClip in Frame 15
onClipEvent (load) {
ca = 10;
cb = 10;
left = true;
}
Instance of Symbol 1127 MovieClip in Frame 15
onClipEvent (load) {
var t1 = true;
var t10 = true;
}
Instance of Symbol 1127 MovieClip in Frame 15
onClipEvent (load) {
var t1 = false;
var t10 = true;
var right = false;
var left = false;
}
Instance of Symbol 1127 MovieClip in Frame 15
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 4;
var cb = 8;
}
Instance of Symbol 1127 MovieClip in Frame 15
onClipEvent (load) {
var t1 = true;
var t10 = false;
}
Instance of Symbol 1127 MovieClip in Frame 15
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 0;
var cb = 2;
}
Instance of Symbol 1127 MovieClip in Frame 15
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 0;
var cb = 2;
}
Instance of Symbol 1127 MovieClip in Frame 15
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 0;
var cb = 2;
}
Instance of Symbol 1127 MovieClip in Frame 15
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 1;
var cb = 1;
}
Instance of Symbol 1127 MovieClip in Frame 15
onClipEvent (load) {
var t1 = false;
var t10 = true;
var right = false;
var left = true;
}
Instance of Symbol 1127 MovieClip in Frame 15
onClipEvent (load) {
var t1 = false;
var t10 = true;
var right = false;
var left = false;
}
Instance of Symbol 1127 MovieClip in Frame 15
onClipEvent (load) {
var t1 = false;
var t10 = true;
var right = false;
var left = false;
}
Instance of Symbol 1127 MovieClip in Frame 15
onClipEvent (load) {
var t1 = true;
var t10 = true;
}
Instance of Symbol 1127 MovieClip in Frame 15
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 7;
var cb = 9;
}
Instance of Symbol 1127 MovieClip in Frame 15
onClipEvent (load) {
var t1 = false;
var t10 = true;
var right = false;
var left = true;
}
Instance of Symbol 1127 MovieClip in Frame 15
onClipEvent (load) {
var t1 = false;
var t10 = true;
var right = false;
var left = false;
}
Instance of Symbol 1127 MovieClip in Frame 15
onClipEvent (load) {
var t1 = true;
var t10 = true;
}
Instance of Symbol 1127 MovieClip in Frame 15
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 5;
var cb = 12;
}
Instance of Symbol 1127 MovieClip in Frame 15
onClipEvent (load) {
var t1 = false;
var t10 = true;
var right = true;
var left = false;
}
Instance of Symbol 1127 MovieClip in Frame 15
onClipEvent (load) {
var t1 = false;
var t10 = true;
var right = false;
var left = false;
}
Instance of Symbol 1127 MovieClip in Frame 15
onClipEvent (load) {
var t1 = false;
var t10 = true;
var right = false;
var left = true;
}
Instance of Symbol 1127 MovieClip in Frame 15
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 5;
var cb = 12;
}
Instance of Symbol 1127 MovieClip in Frame 15
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 5;
var cb = 12;
}
Instance of Symbol 1127 MovieClip in Frame 15
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 11;
var cb = 13;
}
Instance of Symbol 1127 MovieClip in Frame 15
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 11;
var cb = 13;
}
Instance of Symbol 1127 MovieClip in Frame 15
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 11;
var cb = 13;
}
Instance of Symbol 1127 MovieClip in Frame 15
onClipEvent (load) {
var t1 = false;
var t10 = true;
var right = false;
var left = true;
}
Instance of Symbol 1127 MovieClip in Frame 15
onClipEvent (load) {
var t1 = false;
var t10 = true;
var right = false;
var left = true;
}
Instance of Symbol 1127 MovieClip in Frame 15
onClipEvent (load) {
var t1 = true;
var t10 = true;
}
Instance of Symbol 1127 MovieClip in Frame 15
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 10;
var cb = 10;
}
Instance of Symbol 1127 MovieClip in Frame 15
onClipEvent (load) {
var t1 = false;
var t10 = true;
var right = true;
var left = false;
}
Instance of Symbol 1127 MovieClip in Frame 15
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 3;
var cb = 6;
}
Instance of Symbol 1127 MovieClip in Frame 15
onClipEvent (load) {
var t1 = false;
var t10 = true;
var right = false;
var left = true;
}
Instance of Symbol 1127 MovieClip in Frame 15
onClipEvent (load) {
var t1 = false;
var t10 = true;
var right = false;
var left = true;
}
Instance of Symbol 1127 MovieClip in Frame 15
onClipEvent (load) {
var t1 = true;
var t10 = true;
}
Instance of Symbol 1127 MovieClip in Frame 15
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 3;
var cb = 6;
}
Instance of Symbol 1127 MovieClip in Frame 15
onClipEvent (load) {
var t1 = false;
var t10 = true;
var right = true;
var left = false;
}
Instance of Symbol 1127 MovieClip in Frame 15
onClipEvent (load) {
var t1 = true;
var t10 = false;
}
Instance of Symbol 1127 MovieClip in Frame 15
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 3;
var cb = 6;
}
Instance of Symbol 1127 MovieClip in Frame 15
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 0;
var cb = 2;
}
Frame 16
stop();
lfunc = function () {
carr = new Array(9);
carr[0] = new Object();
carr[0].x = -415.35;
carr[0].y = 149.45;
carr[0].n = 1;
carr[0].k1 = 3;
carr[1] = new Object();
carr[1].x = -353.25;
carr[1].y = 721.5;
carr[1].n = 1;
carr[1].k1 = 5;
carr[2] = new Object();
carr[2].x = -78.95;
carr[2].y = 275.5;
carr[2].n = 3;
carr[2].k1 = 1;
carr[2].k2 = 4;
carr[2].k3 = 6;
carr[3] = new Object();
carr[3].x = 49.15;
carr[3].y = 193.45;
carr[3].n = 2;
carr[3].k1 = 3;
carr[3].k2 = 8;
carr[4] = new Object();
carr[4].x = 677.6;
carr[4].y = 703.6;
carr[4].n = 2;
carr[4].k1 = 2;
carr[4].k2 = 7;
carr[5] = new Object();
carr[5].x = 726.3;
carr[5].y = 435.1;
carr[5].n = 2;
carr[5].k1 = 3;
carr[5].k2 = 7;
carr[6] = new Object();
carr[6].x = 902.45;
carr[6].y = 540.9;
carr[6].n = 3;
carr[6].k1 = 5;
carr[6].k2 = 6;
carr[6].k3 = 9;
carr[7] = new Object();
carr[7].x = 1006.55;
carr[7].y = -129.4;
carr[7].n = 1;
carr[7].k1 = 4;
carr[8] = new Object();
carr[8].x = 1236.75;
carr[8].y = 703.6;
carr[8].n = 1;
carr[8].k1 = 7;
w = new Array();
w[0] = new Array();
w[0][0] = 0;
w[0][1] = 2694.18131343353;
w[0][2] = 359.240257348755;
w[0][3] = 511.364589721982;
w[0][4] = 1663.17591456309;
w[0][5] = 1180.15421294946;
w[0][6] = 1385.6352643873;
w[0][7] = 1521.73426588017;
w[0][8] = 1757.42523197653;
w[1] = new Array();
w[1][0] = 2694.18131343353;
w[1][1] = 0;
w[1][2] = 2334.94105608478;
w[1][3] = 2487.06538845801;
w[1][4] = 1031.00539887044;
w[1][5] = 1514.02710048407;
w[1][6] = 1308.54604904623;
w[1][7] = 3497.43506461619;
w[1][8] = 1680.33601663546;
w[2] = new Array();
w[2][0] = 359.240257348755;
w[2][1] = 2334.94105608478;
w[2][2] = 0;
w[2][3] = 152.124332373227;
w[2][4] = 1303.93565721434;
w[2][5] = 820.913955600708;
w[2][6] = 1026.39500703855;
w[2][7] = 1162.49400853141;
w[2][8] = 1398.18497462778;
w[3] = new Array();
w[3][0] = 511.364589721982;
w[3][1] = 2487.06538845801;
w[3][2] = 152.124332373227;
w[3][3] = 0;
w[3][4] = 1456.05998958756;
w[3][5] = 973.038287973934;
w[3][6] = 1178.51933941177;
w[3][7] = 1010.36967615819;
w[3][8] = 1550.309307001;
w[4] = new Array();
w[4][0] = 1663.17591456309;
w[4][1] = 1031.00539887044;
w[4][2] = 1303.93565721434;
w[4][3] = 1456.05998958756;
w[4][4] = 0;
w[4][5] = 483.021701613629;
w[4][6] = 277.54065017579;
w[4][7] = 2466.42966574575;
w[4][8] = 649.330617765019;
w[5] = new Array();
w[5][0] = 1180.15421294946;
w[5][1] = 1514.02710048407;
w[5][2] = 820.913955600708;
w[5][3] = 973.038287973934;
w[5][4] = 483.021701613629;
w[5][5] = 0;
w[5][6] = 205.481051437839;
w[5][7] = 1983.40796413212;
w[5][8] = 577.271019027068;
w[6] = new Array();
w[6][0] = 1385.6352643873;
w[6][1] = 1308.54604904623;
w[6][2] = 1026.39500703855;
w[6][3] = 1178.51933941177;
w[6][4] = 277.54065017579;
w[6][5] = 205.481051437839;
w[6][6] = 0;
w[6][7] = 2188.88901556996;
w[6][8] = 371.789967589229;
w[7] = new Array();
w[7][0] = 1521.73426588017;
w[7][1] = 3497.43506461619;
w[7][2] = 1162.49400853141;
w[7][3] = 1010.36967615819;
w[7][4] = 2466.42966574575;
w[7][5] = 1983.40796413212;
w[7][6] = 2188.88901556996;
w[7][7] = 0;
w[7][8] = 2560.67898315919;
w[8] = new Array();
w[8][0] = 1757.42523197653;
w[8][1] = 1680.33601663546;
w[8][2] = 1398.18497462778;
w[8][3] = 1550.309307001;
w[8][4] = 649.330617765019;
w[8][5] = 577.271019027068;
w[8][6] = 371.789967589229;
w[8][7] = 2560.67898315919;
w[8][8] = 0;
pai = new Array();
pai[0] = new Array();
pai[0][0] = 0;
pai[0][1] = 2;
pai[0][2] = 2;
pai[0][3] = 2;
pai[0][4] = 2;
pai[0][5] = 2;
pai[0][6] = 2;
pai[0][7] = 2;
pai[0][8] = 2;
pai[1] = new Array();
pai[1][0] = 4;
pai[1][1] = 1;
pai[1][2] = 4;
pai[1][3] = 4;
pai[1][4] = 4;
pai[1][5] = 4;
pai[1][6] = 4;
pai[1][7] = 4;
pai[1][8] = 4;
pai[2] = new Array();
pai[2][0] = 0;
pai[2][1] = 5;
pai[2][2] = 2;
pai[2][3] = 3;
pai[2][4] = 5;
pai[2][5] = 5;
pai[2][6] = 5;
pai[2][7] = 3;
pai[2][8] = 5;
pai[3] = new Array();
pai[3][0] = 2;
pai[3][1] = 2;
pai[3][2] = 2;
pai[3][3] = 3;
pai[3][4] = 2;
pai[3][5] = 2;
pai[3][6] = 2;
pai[3][7] = 7;
pai[3][8] = 2;
pai[4] = new Array();
pai[4][0] = 6;
pai[4][1] = 1;
pai[4][2] = 6;
pai[4][3] = 6;
pai[4][4] = 4;
pai[4][5] = 6;
pai[4][6] = 6;
pai[4][7] = 6;
pai[4][8] = 6;
pai[5] = new Array();
pai[5][0] = 2;
pai[5][1] = 6;
pai[5][2] = 2;
pai[5][3] = 2;
pai[5][4] = 6;
pai[5][5] = 5;
pai[5][6] = 6;
pai[5][7] = 2;
pai[5][8] = 6;
pai[6] = new Array();
pai[6][0] = 5;
pai[6][1] = 4;
pai[6][2] = 5;
pai[6][3] = 5;
pai[6][4] = 4;
pai[6][5] = 5;
pai[6][6] = 6;
pai[6][7] = 5;
pai[6][8] = 8;
pai[7] = new Array();
pai[7][0] = 3;
pai[7][1] = 3;
pai[7][2] = 3;
pai[7][3] = 3;
pai[7][4] = 3;
pai[7][5] = 3;
pai[7][6] = 3;
pai[7][7] = 7;
pai[7][8] = 3;
pai[8] = new Array();
pai[8][0] = 6;
pai[8][1] = 6;
pai[8][2] = 6;
pai[8][3] = 6;
pai[8][4] = 6;
pai[8][5] = 6;
pai[8][6] = 6;
pai[8][7] = 6;
pai[8][8] = 8;
carr[2].j3 = true;
carr[2].r3 = true;
carr[2].d3 = true;
carr[6].j5 = true;
carr[6].r5 = false;
carr[6].d5 = true;
};
startall();
Instance of Symbol 1127 MovieClip in Frame 16
onClipEvent (load) {
var t1 = false;
var t10 = true;
var right = false;
var left = true;
}
Instance of Symbol 1127 MovieClip in Frame 16
onClipEvent (load) {
var t1 = false;
var t10 = true;
var right = false;
var left = false;
}
Instance of Symbol 1235 MovieClip in Frame 16
onClipEvent (load) {
ca = 3;
cb = 7;
left = true;
}
Instance of Symbol 1235 MovieClip in Frame 16
onClipEvent (load) {
ca = 3;
cb = 7;
left = false;
}
Instance of Symbol 1235 MovieClip in Frame 16
onClipEvent (load) {
ca = 1;
cb = 4;
left = false;
}
Instance of Symbol 1235 MovieClip in Frame 16
onClipEvent (load) {
ca = 0;
cb = 2;
left = false;
}
Instance of Symbol 1235 MovieClip in Frame 16
onClipEvent (load) {
ca = 6;
cb = 8;
left = true;
}
Instance of Symbol 1235 MovieClip in Frame 16
onClipEvent (load) {
ca = 2;
cb = 5;
left = true;
}
Instance of Symbol 1127 MovieClip in Frame 16
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 0;
var cb = 2;
}
Instance of Symbol 1127 MovieClip in Frame 16
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 0;
var cb = 2;
}
Instance of Symbol 1127 MovieClip in Frame 16
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 0;
var cb = 2;
}
Instance of Symbol 1127 MovieClip in Frame 16
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 0;
var cb = 2;
}
Instance of Symbol 1127 MovieClip in Frame 16
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 2;
var cb = 5;
}
Instance of Symbol 1127 MovieClip in Frame 16
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 2;
var cb = 5;
}
Instance of Symbol 1127 MovieClip in Frame 16
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 2;
var cb = 5;
}
Instance of Symbol 1127 MovieClip in Frame 16
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 2;
var cb = 5;
}
Instance of Symbol 1127 MovieClip in Frame 16
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 2;
var cb = 5;
}
Instance of Symbol 1127 MovieClip in Frame 16
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 2;
var cb = 5;
}
Instance of Symbol 1127 MovieClip in Frame 16
onClipEvent (load) {
var t1 = false;
var t10 = true;
var right = true;
var left = false;
}
Instance of Symbol 1127 MovieClip in Frame 16
onClipEvent (load) {
var t1 = false;
var t10 = true;
var right = false;
var left = false;
}
Instance of Symbol 1127 MovieClip in Frame 16
onClipEvent (load) {
var t1 = true;
var t10 = false;
}
Instance of Symbol 1127 MovieClip in Frame 16
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 1;
var cb = 4;
}
Instance of Symbol 1127 MovieClip in Frame 16
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 1;
var cb = 4;
}
Instance of Symbol 1127 MovieClip in Frame 16
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 1;
var cb = 4;
}
Instance of Symbol 1127 MovieClip in Frame 16
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 4;
var cb = 6;
}
Instance of Symbol 1127 MovieClip in Frame 16
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 4;
var cb = 6;
}
Instance of Symbol 1127 MovieClip in Frame 16
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 6;
var cb = 8;
}
Instance of Symbol 1127 MovieClip in Frame 16
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 6;
var cb = 8;
}
Instance of Symbol 1127 MovieClip in Frame 16
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 6;
var cb = 8;
}
Instance of Symbol 1127 MovieClip in Frame 16
onClipEvent (load) {
var t1 = true;
var t10 = true;
}
Instance of Symbol 1127 MovieClip in Frame 16
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 3;
var cb = 7;
}
Instance of Symbol 1127 MovieClip in Frame 16
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 3;
var cb = 7;
}
Instance of Symbol 1127 MovieClip in Frame 16
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 3;
var cb = 7;
}
Instance of Symbol 1127 MovieClip in Frame 16
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 3;
var cb = 7;
}
Instance of Symbol 1127 MovieClip in Frame 16
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 3;
var cb = 7;
}
Frame 17
stop();
lfunc = function () {
carr = new Array(6);
carr[0] = new Object();
carr[0].x = -1499.6;
carr[0].y = 367.6;
carr[0].n = 1;
carr[0].k1 = 2;
carr[1] = new Object();
carr[1].x = -561.3;
carr[1].y = 197.45;
carr[1].n = 2;
carr[1].k1 = 1;
carr[1].k2 = 3;
carr[2] = new Object();
carr[2].x = -26.95;
carr[2].y = 227.45;
carr[2].n = 2;
carr[2].k1 = 2;
carr[2].k2 = 4;
carr[3] = new Object();
carr[3].x = 481.25;
carr[3].y = 323;
carr[3].n = 2;
carr[3].k1 = 3;
carr[3].k2 = 5;
carr[4] = new Object();
carr[4].x = 885.65;
carr[4].y = 387.6;
carr[4].n = 2;
carr[4].k1 = 4;
carr[4].k2 = 6;
carr[5] = new Object();
carr[5].x = 2342.7;
carr[5].y = 391.6;
carr[5].n = 1;
carr[5].k1 = 5;
w = new Array();
w[0] = new Array();
w[0][0] = 0;
w[0][1] = 953.602596735139;
w[0][2] = 1488.79407882356;
w[0][3] = 2005.89855811184;
w[0][4] = 2415.42574890629;
w[0][5] = 3872.48123944191;
w[1] = new Array();
w[1][0] = 953.602596735139;
w[1][1] = 0;
w[1][2] = 535.19148208842;
w[1][3] = 1052.2959613767;
w[1][4] = 1461.82315217116;
w[1][5] = 2918.87864270678;
w[2] = new Array();
w[2][0] = 1488.79407882356;
w[2][1] = 535.19148208842;
w[2][2] = 0;
w[2][3] = 517.104479288277;
w[2][4] = 926.631670082735;
w[2][5] = 2383.68716061836;
w[3] = new Array();
w[3][0] = 2005.89855811184;
w[3][1] = 1052.2959613767;
w[3][2] = 517.104479288277;
w[3][3] = 0;
w[3][4] = 409.527190794458;
w[3][5] = 1866.58268133008;
w[4] = new Array();
w[4][0] = 2415.42574890629;
w[4][1] = 1461.82315217116;
w[4][2] = 926.631670082735;
w[4][3] = 409.527190794458;
w[4][4] = 0;
w[4][5] = 1457.05549053562;
w[5] = new Array();
w[5][0] = 3872.48123944191;
w[5][1] = 2918.87864270678;
w[5][2] = 2383.68716061836;
w[5][3] = 1866.58268133008;
w[5][4] = 1457.05549053562;
w[5][5] = 0;
pai = new Array();
pai[0] = new Array();
pai[0][0] = 0;
pai[0][1] = 1;
pai[0][2] = 1;
pai[0][3] = 1;
pai[0][4] = 1;
pai[0][5] = 1;
pai[1] = new Array();
pai[1][0] = 0;
pai[1][1] = 1;
pai[1][2] = 2;
pai[1][3] = 2;
pai[1][4] = 2;
pai[1][5] = 2;
pai[2] = new Array();
pai[2][0] = 1;
pai[2][1] = 1;
pai[2][2] = 2;
pai[2][3] = 3;
pai[2][4] = 3;
pai[2][5] = 3;
pai[3] = new Array();
pai[3][0] = 2;
pai[3][1] = 2;
pai[3][2] = 2;
pai[3][3] = 3;
pai[3][4] = 4;
pai[3][5] = 4;
pai[4] = new Array();
pai[4][0] = 3;
pai[4][1] = 3;
pai[4][2] = 3;
pai[4][3] = 3;
pai[4][4] = 4;
pai[4][5] = 5;
pai[5] = new Array();
pai[5][0] = 4;
pai[5][1] = 4;
pai[5][2] = 4;
pai[5][3] = 4;
pai[5][4] = 4;
pai[5][5] = 5;
};
startall();
Instance of Symbol 1127 MovieClip in Frame 17
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 0;
var cb = 1;
}
Instance of Symbol 1127 MovieClip in Frame 17
onClipEvent (load) {
var t1 = true;
var t10 = false;
}
Instance of Symbol 1127 MovieClip in Frame 17
onClipEvent (load) {
var t1 = true;
var t10 = true;
}
Instance of Symbol 1235 MovieClip in Frame 17
onClipEvent (load) {
ca = 2;
cb = 3;
left = false;
}
Instance of Symbol 1235 MovieClip in Frame 17
onClipEvent (load) {
ca = 4;
cb = 5;
left = false;
}
Instance of Symbol 1235 MovieClip in Frame 17
onClipEvent (load) {
ca = 1;
cb = 2;
left = false;
}
Instance of Symbol 1235 MovieClip in Frame 17
onClipEvent (load) {
ca = 0;
cb = 1;
left = false;
}
Instance of Symbol 1235 MovieClip in Frame 17
onClipEvent (load) {
ca = 4;
cb = 5;
left = true;
}
Instance of Symbol 1235 MovieClip in Frame 17
onClipEvent (load) {
ca = 4;
cb = 5;
left = true;
}
Instance of Symbol 1127 MovieClip in Frame 17
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 0;
var cb = 1;
}
Instance of Symbol 1127 MovieClip in Frame 17
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 1;
var cb = 2;
}
Instance of Symbol 1127 MovieClip in Frame 17
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 1;
var cb = 2;
}
Instance of Symbol 1127 MovieClip in Frame 17
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 2;
var cb = 3;
}
Instance of Symbol 1127 MovieClip in Frame 17
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 2;
var cb = 3;
}
Instance of Symbol 1127 MovieClip in Frame 17
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 3;
var cb = 4;
}
Instance of Symbol 1127 MovieClip in Frame 17
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 3;
var cb = 4;
}
Instance of Symbol 1127 MovieClip in Frame 17
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 4;
var cb = 5;
}
Frame 18
stop();
lfunc = function () {
carr = new Array(10);
carr[0] = new Object();
carr[0].x = -175.25;
carr[0].y = 675.65;
carr[0].n = 1;
carr[0].k1 = 6;
carr[1] = new Object();
carr[1].x = -167.25;
carr[1].y = 287.5;
carr[1].n = 1;
carr[1].k1 = 5;
carr[2] = new Object();
carr[2].x = -14.95;
carr[2].y = -8.6;
carr[2].n = 1;
carr[2].k1 = 8;
carr[3] = new Object();
carr[3].x = 49.15;
carr[3].y = 122.95;
carr[3].n = 1;
carr[3].k1 = 7;
carr[4] = new Object();
carr[4].x = 537.55;
carr[4].y = 291.5;
carr[4].n = 2;
carr[4].k1 = 2;
carr[4].k2 = 6;
carr[5] = new Object();
carr[5].x = 678.3;
carr[5].y = 303.5;
carr[5].n = 3;
carr[5].k1 = 1;
carr[5].k2 = 5;
carr[5].k3 = 9;
carr[6] = new Object();
carr[6].x = 694.3;
carr[6].y = 123.45;
carr[6].n = 2;
carr[6].k1 = 4;
carr[6].k2 = 9;
carr[7] = new Object();
carr[7].x = 770.4;
carr[7].y = -12.55;
carr[7].n = 2;
carr[7].k1 = 3;
carr[7].k2 = 10;
carr[8] = new Object();
carr[8].x = 818.45;
carr[8].y = 151.5;
carr[8].n = 3;
carr[8].k1 = 6;
carr[8].k2 = 7;
carr[8].k3 = 10;
carr[9] = new Object();
carr[9].x = 974.45;
carr[9].y = 27.4;
carr[9].n = 2;
carr[9].k1 = 8;
carr[9].k2 = 9;
w = new Array();
w[0] = new Array();
w[0][0] = 0;
w[0][1] = 1777.22352827158;
w[0][2] = 2330.52758011966;
w[0][3] = 1910.33218358316;
w[0][4] = 1072.41217762518;
w[0][5] = 931.151558555319;
w[0][6] = 1265.1819898298;
w[0][7] = 1545.16764671332;
w[0][8] = 1137.90267100698;
w[0][9] = 1337.2436101038;
w[1] = new Array();
w[1][0] = 1777.22352827158;
w[1][1] = 0;
w[1][2] = 2245.4479912806;
w[1][3] = 1825.2525947441;
w[1][4] = 704.811350646398;
w[1][5] = 846.071969716258;
w[1][6] = 1180.10240099074;
w[1][7] = 1460.08805787426;
w[1][8] = 1052.82308216792;
w[1][9] = 1252.16402126474;
w[2] = new Array();
w[2][0] = 2330.52758011966;
w[2][1] = 2245.4479912806;
w[2][2] = 0;
w[2][3] = 1965.05442168885;
w[2][4] = 1540.6366406342;
w[2][5] = 1399.37602156434;
w[2][6] = 1319.90422793549;
w[2][7] = 785.359933406333;
w[2][8] = 1192.62490911268;
w[2][9] = 993.28397001586;
w[3] = new Array();
w[3][0] = 1910.33218358316;
w[3][1] = 1825.2525947441;
w[3][2] = 1965.05442168885;
w[3][3] = 0;
w[3][4] = 1120.4412440977;
w[3][5] = 979.18062502784;
w[3][6] = 645.150193753362;
w[3][7] = 1179.69448828252;
w[3][8] = 772.429512576178;
w[3][9] = 971.770451672992;
w[4] = new Array();
w[4][0] = 1072.41217762518;
w[4][1] = 704.811350646398;
w[4][2] = 1540.6366406342;
w[4][3] = 1120.4412440977;
w[4][4] = 0;
w[4][5] = 141.26061906986;
w[4][6] = 475.291050344338;
w[4][7] = 755.276707227864;
w[4][8] = 348.011731521522;
w[4][9] = 547.352670618337;
w[5] = new Array();
w[5][0] = 931.151558555319;
w[5][1] = 846.071969716258;
w[5][2] = 1399.37602156434;
w[5][3] = 979.18062502784;
w[5][4] = 141.26061906986;
w[5][5] = 0;
w[5][6] = 334.030431274478;
w[5][7] = 614.016088158004;
w[5][8] = 206.751112451663;
w[5][9] = 406.092051548477;
w[6] = new Array();
w[6][0] = 1265.1819898298;
w[6][1] = 1180.10240099074;
w[6][2] = 1319.90422793549;
w[6][3] = 645.150193753362;
w[6][4] = 475.291050344338;
w[6][5] = 334.030431274478;
w[6][6] = 0;
w[6][7] = 534.544294529158;
w[6][8] = 127.279318822816;
w[6][9] = 326.620257919631;
w[7] = new Array();
w[7][0] = 1545.16764671332;
w[7][1] = 1460.08805787426;
w[7][2] = 785.359933406333;
w[7][3] = 1179.69448828252;
w[7][4] = 755.276707227864;
w[7][5] = 614.016088158004;
w[7][6] = 534.544294529158;
w[7][7] = 0;
w[7][8] = 407.264975706342;
w[7][9] = 207.924036609527;
w[8] = new Array();
w[8][0] = 1137.90267100698;
w[8][1] = 1052.82308216792;
w[8][2] = 1192.62490911268;
w[8][3] = 772.429512576178;
w[8][4] = 348.011731521522;
w[8][5] = 206.751112451663;
w[8][6] = 127.279318822816;
w[8][7] = 407.264975706342;
w[8][8] = 0;
w[8][9] = 199.340939096815;
w[9] = new Array();
w[9][0] = 1337.2436101038;
w[9][1] = 1252.16402126474;
w[9][2] = 993.28397001586;
w[9][3] = 971.770451672992;
w[9][4] = 547.352670618337;
w[9][5] = 406.092051548477;
w[9][6] = 326.620257919631;
w[9][7] = 207.924036609527;
w[9][8] = 199.340939096815;
w[9][9] = 0;
pai = new Array();
pai[0] = new Array();
pai[0][0] = 0;
pai[0][1] = 5;
pai[0][2] = 5;
pai[0][3] = 5;
pai[0][4] = 5;
pai[0][5] = 5;
pai[0][6] = 5;
pai[0][7] = 5;
pai[0][8] = 5;
pai[0][9] = 5;
pai[1] = new Array();
pai[1][0] = 4;
pai[1][1] = 1;
pai[1][2] = 4;
pai[1][3] = 4;
pai[1][4] = 4;
pai[1][5] = 4;
pai[1][6] = 4;
pai[1][7] = 4;
pai[1][8] = 4;
pai[1][9] = 4;
pai[2] = new Array();
pai[2][0] = 7;
pai[2][1] = 7;
pai[2][2] = 2;
pai[2][3] = 7;
pai[2][4] = 7;
pai[2][5] = 7;
pai[2][6] = 7;
pai[2][7] = 7;
pai[2][8] = 7;
pai[2][9] = 7;
pai[3] = new Array();
pai[3][0] = 6;
pai[3][1] = 6;
pai[3][2] = 6;
pai[3][3] = 3;
pai[3][4] = 6;
pai[3][5] = 6;
pai[3][6] = 6;
pai[3][7] = 6;
pai[3][8] = 6;
pai[3][9] = 6;
pai[4] = new Array();
pai[4][0] = 5;
pai[4][1] = 1;
pai[4][2] = 5;
pai[4][3] = 5;
pai[4][4] = 4;
pai[4][5] = 5;
pai[4][6] = 5;
pai[4][7] = 5;
pai[4][8] = 5;
pai[4][9] = 5;
pai[5] = new Array();
pai[5][0] = 0;
pai[5][1] = 4;
pai[5][2] = 8;
pai[5][3] = 8;
pai[5][4] = 4;
pai[5][5] = 5;
pai[5][6] = 8;
pai[5][7] = 8;
pai[5][8] = 8;
pai[5][9] = 8;
pai[6] = new Array();
pai[6][0] = 8;
pai[6][1] = 8;
pai[6][2] = 8;
pai[6][3] = 3;
pai[6][4] = 8;
pai[6][5] = 8;
pai[6][6] = 6;
pai[6][7] = 8;
pai[6][8] = 8;
pai[6][9] = 8;
pai[7] = new Array();
pai[7][0] = 9;
pai[7][1] = 9;
pai[7][2] = 2;
pai[7][3] = 9;
pai[7][4] = 9;
pai[7][5] = 9;
pai[7][6] = 9;
pai[7][7] = 7;
pai[7][8] = 9;
pai[7][9] = 9;
pai[8] = new Array();
pai[8][0] = 5;
pai[8][1] = 5;
pai[8][2] = 9;
pai[8][3] = 6;
pai[8][4] = 5;
pai[8][5] = 5;
pai[8][6] = 6;
pai[8][7] = 9;
pai[8][8] = 8;
pai[8][9] = 9;
pai[9] = new Array();
pai[9][0] = 8;
pai[9][1] = 8;
pai[9][2] = 7;
pai[9][3] = 8;
pai[9][4] = 8;
pai[9][5] = 8;
pai[9][6] = 8;
pai[9][7] = 7;
pai[9][8] = 8;
pai[9][9] = 9;
carr[5].j4 = true;
carr[5].r4 = false;
carr[5].d4 = true;
carr[8].j6 = true;
carr[8].r6 = false;
carr[8].d6 = true;
carr[9].j7 = true;
carr[9].r7 = false;
carr[9].d7 = true;
};
startall();
Instance of Symbol 1127 MovieClip in Frame 18
onClipEvent (load) {
var t1 = true;
var t10 = false;
}
Instance of Symbol 1127 MovieClip in Frame 18
onClipEvent (load) {
var t1 = true;
var t10 = true;
}
Instance of Symbol 1235 MovieClip in Frame 18
onClipEvent (load) {
ca = 2;
cb = 7;
left = false;
}
Instance of Symbol 1235 MovieClip in Frame 18
onClipEvent (load) {
ca = 3;
cb = 6;
left = false;
}
Instance of Symbol 1235 MovieClip in Frame 18
onClipEvent (load) {
ca = 0;
cb = 0;
left = false;
}
Instance of Symbol 1235 MovieClip in Frame 18
onClipEvent (load) {
ca = 1;
cb = 4;
left = false;
}
Instance of Symbol 1235 MovieClip in Frame 18
onClipEvent (load) {
ca = 9;
cb = 10;
left = true;
}
Instance of Symbol 1235 MovieClip in Frame 18
onClipEvent (load) {
ca = 1;
cb = 4;
left = true;
}
Instance of Symbol 1127 MovieClip in Frame 18
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 0;
var cb = 0;
}
Instance of Symbol 1127 MovieClip in Frame 18
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 5;
var cb = 8;
}
Instance of Symbol 1127 MovieClip in Frame 18
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 9;
var cb = 9;
}
Instance of Symbol 1127 MovieClip in Frame 18
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 3;
var cb = 6;
}
Instance of Symbol 1127 MovieClip in Frame 18
onClipEvent (load) {
var t1 = true;
var t10 = true;
}
Instance of Symbol 1127 MovieClip in Frame 18
onClipEvent (load) {
var t1 = true;
var t10 = false;
}
Instance of Symbol 1127 MovieClip in Frame 18
onClipEvent (load) {
var t1 = false;
var t10 = true;
var right = false;
var left = false;
}
Instance of Symbol 1127 MovieClip in Frame 18
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 1;
var cb = 4;
}
Instance of Symbol 1127 MovieClip in Frame 18
onClipEvent (load) {
var t1 = true;
var t10 = false;
}
Instance of Symbol 1127 MovieClip in Frame 18
onClipEvent (load) {
var t1 = false;
var t10 = true;
var right = false;
var left = false;
}
Instance of Symbol 1127 MovieClip in Frame 18
onClipEvent (load) {
var t1 = false;
var t10 = false;
var ca = 2;
var cb = 7;
}
Instance of Symbol 1127 MovieClip in Frame 18
onClipEvent (load) {
var t1 = true;
var t10 = true;
}
Instance of Symbol 1127 MovieClip in Frame 18
onClipEvent (load) {
var t1 = true;
var t10 = false;
}
Instance of Symbol 1127 MovieClip in Frame 18
onClipEvent (load) {
var t1 = false;
var t10 = true;
var right = false;
var left = false;
}
Frame 19
playmode = 4;
gotoAndStop (16);
Frame 20
songsound(1);
free2.mode.gotoAndStop(2);
Mouse.hide();
wantclosef = false;
if (playmode == 3) {
free2.mode.gotoAndStop(1);
} else if (playmode == 2) {
free2.mode.gotoAndStop(2);
} else {
free2.mode.gotoAndStop(3);
}
if (curntmap <= 4) {
free2.map.gotoAndStop(curntmap - 2);
} else {
free2.map.gotoAndStop(curntmap - 8);
}
mouse.onEnterFrame = function () {
if (mouse.getDepth() != (_root.getNextHighestDepth() - 1)) {
mouse.swapDepths(_root.getNextHighestDepth() + 2);
}
mouse._x = _xmouse;
mouse._y = _ymouse;
};
onclose = function () {
trace("CLOSED");
if (wantclosef) {
wantclosef = false;
} else if (cehckow) {
}
};
onADstart = function () {
songfade();
};
onADclose = function () {
songsoundi.stop();
songplaying = -1;
delete musicmc.onEnterFrame;
songsound(1);
Mouse.hide();
t = ttot;
onEnterFrame = function () {
if (t >= 0) {
AAA._x = (((ax * t) * t) * t) + ((bx * t) * t);
AAA._y = (((ay * t) * t) * t) + ((by * t) * t);
t--;
} else {
cehckow = true;
delete onEnterFrame;
}
};
};
boardid = function (num) {
if (playmode == 2) {
if (num == 1) {
return("fe6684155a21c061");
}
if (num == 2) {
return("76838c486f4fdf3d");
}
if (num == 3) {
return("8dfd0fadad4d8a68");
}
if (num == 4) {
return("31d2f19f6f326de9");
}
if (num == 5) {
return("7582c0a7b8b11fd0");
}
if (num == 6) {
return("e6614ea48ae16904");
}
if (num == 7) {
return("779483ec483dc40d");
}
if (num == 8) {
return("054c79c9ec28a95a");
}
if (num == 9) {
return("43d0dfbd7c13609f");
}
if (num == 10) {
return("09a86af98f0668ae");
}
} else if (playmode == 3) {
if (num == 1) {
return("0496ba230afc6da9");
}
if (num == 2) {
return("1223c5ed0728271d");
}
if (num == 3) {
return("0d7bb8c250698409");
}
if (num == 4) {
return("6260a8f6faf0d1d4");
}
if (num == 5) {
return("ab1309ffedc31f56");
}
if (num == 6) {
return("e792a5ca1fecc024");
}
if (num == 7) {
return("d6fe69e23938b489");
}
if (num == 8) {
return("775a60f6433a8057");
}
if (num == 9) {
return("93a7bc6bc4d97960");
}
if (num == 10) {
return("b42204893bddb524");
}
} else if (playmode == 4) {
if (num == 1) {
return("abba21174936b22f");
}
if (num == 2) {
return("d9876f92a82fd11b");
}
if (num == 3) {
return("14fe391194ab82e9");
}
if (num == 4) {
return("a0aed59111aea670");
}
if (num == 5) {
return("e1e4914100365c38");
}
if (num == 6) {
return("b2c2822d233e2182");
}
if (num == 7) {
return("37cbfc903b029598");
}
if (num == 8) {
return("68849cb8b043105c");
}
if (num == 9) {
return("c8586934bb829cd4");
}
if (num == 10) {
return("29d65b3c7938ae85");
}
}
};
ondisplay = function () {
trace("OPEN");
};
onerror = function () {
trace("ERROR123");
if (wantclosef) {
wantclosef = false;
}
};
createEmptyMovieClip("AAA", _root.getNextHighestDepth() + 2);
mochi.MochiScores.showLeaderboard({boardID:boardid(free2.map._currentframe), onClose:onclose, onDisplay:ondisplay, score:playerscore, onError:onerror, clip:AAA});
zak = new Object();
wantclose = false;
cehckow = true;
dx = 125;
dy = -100;
ttot = 30;
bx = (3 * dx) / (ttot * ttot);
ax = (-(2 * bx)) / (3 * ttot);
by = (3 * dy) / (ttot * ttot);
ay = (-(2 * by)) / (3 * ttot);
t = 0;
adtimer.text = "20";
_alpha = 0;
onEnterFrame = function () {
if (_alpha < 100) {
_alpha = (_alpha + 10);
}
t++;
if ((t % 30) == 0) {
adtimer.text = adtimer.text - 1;
if (adtimer.text == "0") {
adtimer.text = "";
showadd();
}
}
};
createEmptyMovieClip("BBB", _root.getNextHighestDepth() + 2);
showadd = function () {
if (cehckow) {
cehckow = false;
MochiAd.showInterLevelAd({clip:BBB, id:_root[_root[_root[_root[_root[fc0000b9e8d9d0f8]]]]], res:"640x480", background:16777215, color:16711680, outline:0, no_bg:true, ad_finished:onADclose, ad_started:onADstart});
BBB._y = 90;
t = 0;
onEnterFrame = function () {
if (t <= ttot) {
AAA._x = (((ax * t) * t) * t) + ((bx * t) * t);
AAA._y = (((ay * t) * t) * t) + ((by * t) * t);
t++;
}
};
}
};
stop();
Frame 21
_quality = "HIGH";
stop();
_root.songsound(1);
menuo = _root[menuon];
asklock = false;
main._visible = false;
creditsm._visible = false;
campaign._visible = false;
options._visible = false;
free._visible = false;
free2._visible = false;
menuo._visible = true;
_root._alpha = 0;
lockfunc = false;
Mouse.hide();
mouse.onEnterFrame = function () {
mouse._x = _xmouse;
mouse._y = _ymouse;
};
onEnterFrame = function () {
_root._alpha = _root._alpha + 10;
if (_root._alpha >= 100) {
_root._alpha = 100;
delete onEnterFrame;
}
};
switchmenu = function (newmenu) {
_root._alpha = 100;
if (!lockfunc) {
onEnterFrame = function () {
if (newmenu == free2) {
arcanesym._alpha = arcanesym._alpha - 10;
}
menuo._alpha = menuo._alpha - 10;
if (menuo._alpha <= 0) {
if (newmenu == free2) {
arcanesym._alpha = 100;
arcanesym._visible = false;
}
menuo._alpha = 100;
menuo._visible = false;
lastmen = menuo;
menuo = newmenu;
if (lastmen == free2) {
arcanesym._alpha = 0;
arcanesym._visible = true;
}
menuo._visible = true;
menuo._alpha = 0;
onEnterFrame = function () {
if (lastmen == free2) {
arcanesym._alpha = arcanesym._alpha + 10;
}
menuo._alpha = menuo._alpha + 10;
if (menuo._alpha >= 100) {
if (lastmen == free2) {
arcanesym._alpha = 100;
}
menuo._alpha = 100;
delete onEnterFrame;
}
};
}
};
}
};
onMouseDown = function () {
if (options._visible) {
if (options.ear1.ear.hitTest(_xmouse, _ymouse, false)) {
options.ear1.ear.onEnterFrame = function () {
if (Key.isDown(1)) {
this._x = Math.min(Math.max(this._parent._xmouse, this._parent.xmin), this._parent.xmax);
soundvol = (100 * (this._x - this._parent.xmin)) / (this._parent.xmax - this._parent.xmin);
} else {
delete this.onEnterFrame;
}
};
} else if (options.ear1.hitTest(_xmouse, _ymouse, false)) {
options.ear1.ear._x = Math.min(Math.max(options.ear1._xmouse, options.ear1.xmin), options.ear1.xmax);
soundvol = (100 * (options.ear1.ear._x - options.ear1.xmin)) / (options.ear1.xmax - options.ear1.xmin);
} else if (options.ear2.ear.hitTest(_xmouse, _ymouse, false)) {
options.ear2.ear.onEnterFrame = function () {
if (Key.isDown(1)) {
this._x = Math.min(Math.max(this._parent._xmouse, this._parent.xmin), this._parent.xmax);
musicvol = (100 * (this._x - this._parent.xmin)) / (this._parent.xmax - this._parent.xmin);
} else {
delete this.onEnterFrame;
}
if (musicvol) {
if (musicoff) {
musicoff = false;
_root.songsound(1);
}
songsoundi.setVolume((pwsongsound[1] * musicvol) / 100);
} else {
songplaying = -1;
musicoff = true;
songsoundi.stop();
}
};
} else if (options.ear2.hitTest(_xmouse, _ymouse, false)) {
options.ear2.ear._x = Math.min(Math.max(options.ear2._xmouse, options.ear2.xmin), options.ear2.xmax);
musicvol = (100 * (options.ear2.ear._x - options.ear2.xmin)) / (options.ear2.xmax - options.ear2.xmin);
if (musicvol < 5) {
musicvol = 0;
}
if (musicvol) {
if (musicoff) {
musicoff = false;
_root.songsound(1);
}
songsoundi.setVolume((pwsongsound[1] * musicvol) / 100);
} else {
songplaying = -1;
musicoff = true;
songsoundi.stop();
}
} else if (options.cac.b2.hitTest(_xmouse, _ymouse, false)) {
_root.savefile.data.musicvol = _root.musicvol;
_root.savefile.data.soundvol = _root.soundvol;
_root.stats._visible = false;
contin = true;
delete onMouseDown;
onEnterFrame = function () {
this._alpha = this._alpha - 10;
if (this._alpha <= 0) {
this._alpha = 0;
_root.gotoAndStop(6);
delete onEnterFrame;
}
};
bef = true;
} else if (options.cac.b3.hitTest(_xmouse, _ymouse, false)) {
options.cac.qlow._xscale = (options.cac.qlow._yscale = 140);
options.cac.qmedium._xscale = (options.cac.qmedium._yscale = 100);
options.cac.qhigh._xscale = (options.cac.qhigh._yscale = 100);
_quality = ((savefile.data.gamequality = (gamequality = "LOW")));
} else if (options.cac.b4.hitTest(_xmouse, _ymouse, false)) {
options.cac.qlow._xscale = (options.cac.qlow._yscale = 100);
options.cac.qmedium._xscale = (options.cac.qmedium._yscale = 140);
options.cac.qhigh._xscale = (options.cac.qhigh._yscale = 100);
_quality = ((savefile.data.gamequality = (gamequality = "MEDIUM")));
} else if (options.cac.b5.hitTest(_xmouse, _ymouse, false)) {
options.cac.qlow._xscale = (options.cac.qlow._yscale = 100);
options.cac.qmedium._xscale = (options.cac.qmedium._yscale = 100);
options.cac.qhigh._xscale = (options.cac.qhigh._yscale = 140);
_quality = ((savefile.data.gamequality = (gamequality = "HIGH")));
} else if (options.cac.b6.hitTest(_xmouse, _ymouse, false)) {
arrowsfx = true;
options.cac.aon._xscale = (options.cac.aon._yscale = 140);
options.cac.aoff._xscale = (options.cac.aoff._yscale = 100);
savefile.data.arrowsfx = arrowsfx;
} else if (options.cac.b7.hitTest(_xmouse, _ymouse, false)) {
arrowsfx = false;
options.cac.aon._xscale = (options.cac.aon._yscale = 100);
options.cac.aoff._xscale = (options.cac.aoff._yscale = 140);
savefile.data.arrowsfx = arrowsfx;
} else if (options.cac.b8.hitTest(_xmouse, _ymouse, false)) {
missfx = true;
options.cac.ton._xscale = (options.cac.ton._yscale = 140);
options.cac.toff._xscale = (options.cac.toff._yscale = 100);
savefile.data.missfx = missfx;
} else if (options.cac.b9.hitTest(_xmouse, _ymouse, false)) {
missfx = false;
options.cac.ton._xscale = (options.cac.ton._yscale = 100);
options.cac.toff._xscale = (options.cac.toff._yscale = 140);
savefile.data.missfx = missfx;
}
}
};
if (isNaN(savefile.data.musicvol)) {
savefile.data.gamequality = "MEDIUM";
savefile.data.missfx = true;
savefile.data.arrowsfx = true;
savefile.data.musicvol = 100;
savefile.data.soundvol = 100;
}
missfx = savefile.data.missfx;
arrowsfx = savefile.data.arrowsfx;
gamequality = savefile.data.gamequality;
soundvol = savefile.data.soundvol;
musicvol = savefile.data.musicvol;
if (gamequality == "LOW") {
options.cac.qlow._xscale = (options.cac.qlow._yscale = 140);
} else if (gamequality == "MEDIUM") {
options.cac.qmedium._xscale = (options.cac.qmedium._yscale = 140);
} else if (gamequality == "HIGH") {
options.cac.qhigh._xscale = (options.cac.qhigh._yscale = 140);
}
if (missfx) {
options.cac.ton._xscale = (options.cac.ton._yscale = 140);
} else {
options.cac.toff._xscale = (options.cac.toff._yscale = 140);
}
if (arrowsfx) {
options.cac.aon._xscale = (options.cac.aon._yscale = 140);
} else {
options.cac.aoff._xscale = (options.cac.aoff._yscale = 140);
}
Frame 22
delete _root.musicmc.onEnterFrame;
songplaying = -1;
songsoundi.stop();
_quality = "HIGH";
Mouse.hide();
mouse.onEnterFrame = function () {
mouse._x = _xmouse;
mouse._y = _ymouse;
};
_alpha = 100;
if (wmovie == 1) {
movies.gotoAndStop(1);
} else if (wmovie == 10) {
movies.gotoAndStop(2);
} else if (wmovie == 20) {
movies.gotoAndStop(3);
} else if (wmovie == 21) {
savefile.data.levelsstate = levelsstate;
savefile.data.money = money;
cleanall();
movies.gotoAndStop(6);
} else if (wmovie == 50) {
movies.gotoAndStop(4);
} else if (wmovie == 100) {
movies.gotoAndStop(5);
} else if (wmovie == 777) {
movies.gotoAndStop(5);
}
movies.movie.gotoAndPlay(1);
endshowwithfade = function () {
if ((((wmovie != 50) && (wmovie != 100)) && (wmovie != 21)) && (wmovie != 777)) {
_root.songfade();
}
onEnterFrame = function () {
if (_alpha > 0) {
_alpha = (_alpha - 5);
} else {
delete onEnterFrame;
_alpha = 100;
endshow();
}
};
};
endshow = function () {
delete onMouseDown;
stopAllSounds();
if (wmovie == 21) {
_root.showorsob = false;
gotoAndStop (23);
} else if (wmovie == 50) {
gotoAndStop (21);
} else if (wmovie == 100) {
gotoAndStop (7);
} else if (wmovie == 777) {
gotoAndStop (21);
} else {
_alpha = 0;
gotoAndStop(maps(wmovie));
}
};
Frame 23
Mouse.show();
songsound(1);
_alpha = 0;
onEnterFrame = function () {
if (_alpha >= 100) {
_alpha = 100;
delete onEnterFrame;
} else {
_alpha = (_alpha + 10);
}
};
onADstart = function () {
songfade();
};
onADclose = function () {
songsoundi.stop();
songplaying = -1;
delete musicmc.onEnterFrame;
songsound(1);
onEnterFrame = function () {
if (_alpha <= 0) {
_alpha = 0;
delete onEnterFrame;
_root.mouse.removeMovieClip();
gotoAndStop (21);
} else {
_alpha = (_alpha - 10);
}
};
};
onclose = function () {
MochiAd.showInterLevelAd({id:_root[_root[_root[_root[_root[fc0000b9e8d9d0f8]]]]], res:"640x480", background:16777215, color:16711680, outline:0, no_bg:true, ad_finished:onADclose, ad_started:onADstart});
};
if (showorsob) {
mochi.MochiScores.showLeaderboard({boardID:"981d2fc7de6fa172", onClose:onclose});
} else {
mochi.MochiScores.showLeaderboard({boardID:"981d2fc7de6fa172", score:1000 * Math.floor(savefile.data.playtime / 30), onClose:onclose});
}
Frame 24
gotoAndStop (22);
Frame 25
stop();
Symbol 64 MovieClip Frame 1
gotoAndStop(_parent._parent._parent.ihead);
this.swapDepths(1001);
Symbol 66 MovieClip [c] Frame 1
_visible = false;
Symbol 67 MovieClip Frame 1
_root.thingstuck(_parent._parent.arrhead, this);
Symbol 72 Button
on (press) {
_root.msound("clickd");
if (hair.hair._currentframe == 2) {
hair.hair.gotoAndStop(23);
} else {
hair.hair.gotoAndStop(hair.hair._currentframe - 1);
}
}
on (rollOver) {
_root.msound("wuwm");
}
Symbol 73 Button
on (press) {
_root.msound("clickd");
if (hair.hair._currentframe == 23) {
hair.hair.gotoAndStop(2);
} else {
hair.hair.gotoAndStop(hair.hair._currentframe + 1);
}
}
on (rollOver) {
_root.msound("wuwm");
}
Symbol 78 Button
on (release) {
_root.msound("clickd");
_visible = false;
_root.onEnterFrame = _root.onst;
if (_root.secondw) {
_root.pal2._visible = true;
_root.pal2._alpha = 0;
_root.head2 = (_root.pal2.pal.pal.ihead = hair.hair._currentframe);
_root.pal2.pal.pal.p1.head.hair.gotoAndStop(_root.head2);
_root.savefile.data.head2 = _root.head2;
} else {
_root.pal3._visible = true;
_root.pal3._alpha = 0;
_root.head3 = (_root.pal3.pal.pal.ihead = hair.hair._currentframe);
_root.pal3.pal.pal.p1.head.hair.gotoAndStop(_root.head3);
_root.savefile.data.head3 = _root.head3;
}
t = 0;
onEnterFrame = function () {
if (_root.secondw) {
_root.pal2._alpha = _root.pal2._alpha + 20;
if (_root.pal2._alpha >= 100) {
_root.pal2._alpha = 100;
_root.secondw = (_root.thirdw = false);
delete onEnterFrame;
}
} else {
_root.pal3._alpha = _root.pal3._alpha + 20;
if (_root.pal3._alpha >= 100) {
_root.pal3._alpha = 100;
_root.secondw = (_root.thirdw = false);
delete onEnterFrame;
}
}
};
}
on (rollOver) {
_root.msound("wuwm");
}
Symbol 79 MovieClip [newwar] Frame 1
hair.hair.gotoAndStop(random(22) + 2);
Symbol 82 MovieClip [notenoughmoney] Frame 1
stop();
Symbol 82 MovieClip [notenoughmoney] Frame 23
gotoAndStop (1);
Symbol 100 MovieClip Frame 1
var str = String(this);
_root.thingstuck(_parent._parent["arrhndu" + str.charAt(str.length - 1)], this);
Symbol 133 MovieClip Frame 1
gotoAndStop(_parent._parent.iarmor);
Symbol 231 MovieClip Frame 1
m.swapDepths(1);
m.removeMovieClip();
gotoAndStop(_parent._parent.iarmor);
var str = String(this);
_root.thingstuck(_parent._parent["arrhndd" + str.charAt(str.length - 1)], this);
Symbol 239 MovieClip Frame 1
stop();
Symbol 241 MovieClip Frame 1
stop();
Symbol 243 MovieClip Frame 1
stop();
Symbol 245 MovieClip Frame 1
stop();
Symbol 247 MovieClip Frame 1
stop();
Symbol 249 MovieClip Frame 1
stop();
Symbol 250 MovieClip Frame 1
gotoAndStop(_parent._parent.bown);
Symbol 282 MovieClip Frame 1
gotoAndStop(_parent._parent.iarmor);
Symbol 283 MovieClip Frame 1
var a = Math.sqrt((c1._x * c1._x) + (c1._y * c1._y));
var c = Math.sqrt((c2._x * c2._x) + (c2._y * c2._y));
var b = Math.sqrt(((c1._x - c2._x) * (c1._x - c2._x)) + ((c1._y - c2._y) * (c1._y - c2._y)));
_root.n3 = Math.acos((((a * a) + (b * b)) - (c * c)) / ((2 * a) * b));
_root.n4 = a;
stop();
Symbol 283 MovieClip Frame 33
gotoAndStop (1);
Symbol 283 MovieClip Frame 53
stop();
Symbol 283 MovieClip Frame 68
bow._x = ((c1._x - bow._x) / 12) + bow._x;
bow._y = ((c1._y - bow._y) / 12) + bow._y;
Symbol 283 MovieClip Frame 69
bow._x = ((c1._x - bow._x) / 11) + bow._x;
bow._y = ((c1._y - bow._y) / 11) + bow._y;
Symbol 283 MovieClip Frame 70
bow._x = ((c1._x - bow._x) / 10) + bow._x;
bow._y = ((c1._y - bow._y) / 10) + bow._y;
Symbol 283 MovieClip Frame 71
bow._x = ((c1._x - bow._x) / 9) + bow._x;
bow._y = ((c1._y - bow._y) / 9) + bow._y;
Symbol 283 MovieClip Frame 72
bow._x = ((c1._x - bow._x) / 8) + bow._x;
bow._y = ((c1._y - bow._y) / 8) + bow._y;
Symbol 283 MovieClip Frame 73
bow._x = ((c1._x - bow._x) / 7) + bow._x;
bow._y = ((c1._y - bow._y) / 7) + bow._y;
Symbol 283 MovieClip Frame 74
bow._x = ((c1._x - bow._x) / 6) + bow._x;
bow._y = ((c1._y - bow._y) / 6) + bow._y;
Symbol 283 MovieClip Frame 75
bow._x = ((c1._x - bow._x) / 5) + bow._x;
bow._y = ((c1._y - bow._y) / 5) + bow._y;
Symbol 283 MovieClip Frame 76
bow._x = ((c1._x - bow._x) / 4) + bow._x;
bow._y = ((c1._y - bow._y) / 4) + bow._y;
Symbol 283 MovieClip Frame 77
bow._x = ((c1._x - bow._x) / 3) + bow._x;
bow._y = ((c1._y - bow._y) / 3) + bow._y;
Symbol 283 MovieClip Frame 78
bow._x = ((c1._x - bow._x) / 2) + bow._x;
bow._y = ((c1._y - bow._y) / 2) + bow._y;
Symbol 283 MovieClip Frame 79
bow._x = c1._x;
bow._y = c1._y;
Symbol 381 MovieClip Frame 1
m.swapDepths(1);
m.removeMovieClip();
gotoAndStop(_parent._parent.iarmor);
var str = String(this);
_root.thingstuck(_parent._parent["arrlegu" + str.charAt(str.length - 1)], this);
Symbol 479 MovieClip Frame 1
m.swapDepths(1);
m.removeMovieClip();
gotoAndStop(_parent._parent.iarmor);
_root.thingstuck(_parent._parent.arrbody, this);
Symbol 577 MovieClip Frame 1
m.swapDepths(1);
m.removeMovieClip();
gotoAndStop(_parent._parent.iarmor);
var str = String(this);
_root.thingstuck(_parent._parent["arrlegd" + str.charAt(str.length - 1)], this);
Symbol 581 MovieClip [arrow] Frame 1
stop();
Symbol 601 MovieClip Frame 1
gotoAndStop(_parent._parent.wep);
Symbol 620 MovieClip Frame 1
stop();
Symbol 623 MovieClip Frame 1
var a = Math.sqrt((c1._x * c1._x) + (c1._y * c1._y));
var c = Math.sqrt((c2._x * c2._x) + (c2._y * c2._y));
var b = Math.sqrt(((c1._x - c2._x) * (c1._x - c2._x)) + ((c1._y - c2._y) * (c1._y - c2._y)));
_root.n1 = Math.acos((((a * a) + (b * b)) - (c * c)) / ((2 * a) * b));
_root.n2 = a;
hez._visible = _parent.hezvis;
stop();
Symbol 623 MovieClip Frame 4
_root.arrowsound(_parent._x, _parent._y);
Symbol 623 MovieClip Frame 7
var p = {x:hez._x, y:hez._y};
this.localToGlobal(p);
Symbol 623 MovieClip Frame 8
_root.attachMovie("ar" + _root.ar, "a" + _root.arrd, _root.arrd, {_x:p.x - _root._x, _y:p.y - _root._y, _rotation:((_parent._xscale > 0) ? (135 + _rotation) : (225 - _rotation)), _xscale:Math.abs(_parent._xscale), _yscale:Math.abs(_parent._yscale), ar:_root.ar});
var ttt = _root["a" + _root.arrd];
if (_parent._xscale > 0) {
ttt.vx = _root.power * Math.sin((ttt._rotation * Math.PI) / 180);
ttt.vy = _root.power * Math.cos((ttt._rotation * Math.PI) / 180);
} else {
ttt.vx = (-_root.power) * Math.sin(((ttt._rotation + 180) * Math.PI) / 180);
ttt.vy = (-_root.power) * Math.cos(((ttt._rotation + 180) * Math.PI) / 180);
}
ttt.p = new Object();
ttt.flag = false;
ttt.k = (ttt._rotation * Math.PI) / 180;
ttt.ob = new Object();
ttt.par = _parent;
ttt.tim = 0;
ttt.bounds = new Object();
ttt.arr1 = new Array();
ttt.arr2 = new Array();
ttt.arr3 = new Array();
ttt.arr33 = new Array();
var len = _root.allteam.length;
ttt.esize = 0;
ttt.esize2 = 0;
ttt.esize3 = 0;
ttt.esize33 = 0;
var i = 0;
while (i < len) {
if (_root.missornot(_root.bows[_parent.bown - 2].chance * _parent.pchance)) {
ttt.arr1[ttt.esize++] = _root.allteam[i];
} else {
ttt.arr2[ttt.esize2++] = _root.allteam[i];
}
if (_root.blocked(_root.allteam[i])) {
ttt.arr3[ttt.esize3++] = _root.allteam[i];
}
i++;
}
ttt.sg = "ar1";
ttt.sgn = 0;
ttt.onEnterFrame = function () {
if (_root.freeze) {
this.tim++;
if (this.tim > 400) {
this.removeMovieClip();
return(undefined);
}
if (this.flag) {
this.px = this._x;
this.py = this._y;
this._x = this._x + this.vx;
this._y = this._y - this.vy;
this.vy = this.vy - _root.g;
this.k = Math.atan2(this._x - this.px, this.py - this._y);
this._rotation = (this.k * 180) / Math.PI;
}
this.p.x = this.c1._x;
this.p.y = this.c1._y;
this.localToGlobal(this.p);
this.x1 = this.p.x - _root._x;
this.y1 = this.p.y - _root._y;
this.p.x = this.c2._x;
this.p.y = this.c2._y;
this.localToGlobal(this.p);
this.x2 = this.p.x - _root._x;
this.y2 = this.p.y - _root._y;
if (this.x1 > this.x2) {
this.tmp = this.x1;
this.x1 = this.x2;
this.x2 = this.tmp;
this.tmp = this.y1;
this.y1 = this.y2;
this.y2 = this.tmp;
}
_root.hitfolks(this);
this.i = 0;
while (this.i < _root.wlen) {
if (!_root.walls[this.i].ts.fred) {
if (_root.lines(this.x1, this.y1, this.x2, this.y2, _root.walls[this.i].x1, _root.walls[this.i].y1, _root.walls[this.i].x2, _root.walls[this.i].y2, this.p)) {
this._x = this.p.x - (20 * Math.sin(this.k));
this._y = this.p.y + (20 * Math.cos(this.k));
this.i = this.siz;
delete this.onEnterFrame;
_root.tgs.attachMovie("ar" + this.ar, "a" + _root.tgs.i, _root.tgs.i, {_x:this._x, _y:this._y, _xscale:this._xscale, _yscale:this._yscale, _rotation:this._rotation});
_root.arrowhitsound(this._x, this._y);
this.removeMovieClip();
_root.tgs.i++;
}
}
this.i++;
}
this.flag = true;
}
};
ttt.onEnterFrame();
_root.arrd++;
Symbol 623 MovieClip Frame 33
gotoAndStop (1);
Symbol 623 MovieClip Frame 65
stop();
Symbol 623 MovieClip Frame 66
_parent.swordall = true;
_parent.blockall = true;
Symbol 623 MovieClip Frame 70
_root.swordhit(_parent);
Symbol 623 MovieClip Frame 71
_root.swordsound(_parent._x, _parent._y);
_root.swordhit(_parent);
Symbol 623 MovieClip Frame 72
_root.swordhit(_parent);
Symbol 623 MovieClip Frame 73
_root.swordhit(_parent);
Symbol 623 MovieClip Frame 74
_root.swordhit(_parent);
Symbol 623 MovieClip Frame 75
_root.swordhit(_parent);
Symbol 623 MovieClip Frame 76
_root.swordhit(_parent);
Symbol 623 MovieClip Frame 81
gotoAndStop (65);
Symbol 623 MovieClip Frame 82
_parent.swordall = true;
_parent.blockall = true;
Symbol 623 MovieClip Frame 88
_root.swordsound(_parent._x, _parent._y);
_root.swordhit(_parent);
Symbol 623 MovieClip Frame 89
_root.swordhit(_parent);
Symbol 623 MovieClip Frame 90
_root.swordhit(_parent);
Symbol 623 MovieClip Frame 91
_root.swordhit(_parent);
Symbol 623 MovieClip Frame 92
_root.swordhit(_parent);
Symbol 623 MovieClip Frame 93
_root.swordhit(_parent);
Symbol 623 MovieClip Frame 94
_root.swordhit(_parent);
Symbol 623 MovieClip Frame 101
gotoAndStop (65);
Symbol 623 MovieClip Frame 102
_parent.swordall = true;
_parent.blockall = true;
Symbol 623 MovieClip Frame 111
_root.swordsound(_parent._x, _parent._y);
_root.swordhit(_parent);
Symbol 623 MovieClip Frame 112
_root.swordhit(_parent);
Symbol 623 MovieClip Frame 113
_root.swordhit(_parent);
Symbol 623 MovieClip Frame 114
_root.swordhit(_parent);
Symbol 623 MovieClip Frame 115
_root.swordhit(_parent);
Symbol 623 MovieClip Frame 116
_root.swordhit(_parent);
Symbol 623 MovieClip Frame 117
_root.swordhit(_parent);
Symbol 623 MovieClip Frame 118
_root.swordhit(_parent);
Symbol 623 MovieClip Frame 124
gotoAndStop (65);
Symbol 623 MovieClip Frame 125
_parent.swordall = true;
_parent.blockall = true;
Symbol 623 MovieClip Frame 131
_root.swordsound(_parent._x, _parent._y);
_root.swordhit(_parent);
Symbol 623 MovieClip Frame 132
_root.swordhit(_parent);
Symbol 623 MovieClip Frame 133
_root.swordhit(_parent);
Symbol 623 MovieClip Frame 134
_root.swordhit(_parent);
Symbol 623 MovieClip Frame 135
_root.swordhit(_parent);
Symbol 623 MovieClip Frame 136
_root.swordhit(_parent);
Symbol 623 MovieClip Frame 137
_root.swordhit(_parent);
Symbol 623 MovieClip Frame 142
gotoAndStop (65);
Symbol 623 MovieClip Frame 143
_parent.swordall = true;
_parent.blockall = true;
Symbol 623 MovieClip Frame 146
_root.swordhit(_parent);
Symbol 623 MovieClip Frame 147
_root.swordsound(_parent._x, _parent._y);
_root.swordhit(_parent);
Symbol 623 MovieClip Frame 148
_root.swordhit(_parent);
Symbol 623 MovieClip Frame 149
_root.swordhit(_parent);
Symbol 623 MovieClip Frame 150
_root.swordhit(_parent);
Symbol 623 MovieClip Frame 158
gotoAndStop (65);
Symbol 623 MovieClip Frame 167
hez._visible = _parent.hezvis;
Symbol 623 MovieClip Frame 180
gotoAndStop (1);
Symbol 623 MovieClip Frame 181
play();
Symbol 623 MovieClip Frame 189
_root.throwsound(_parent._x, _parent._y);
trwp.gotoAndStop(_parent.trw);
Symbol 623 MovieClip Frame 192
var p = {x:c3._x, y:c3._y};
this.localToGlobal(p);
p.x = p.x - _root._x;
p.y = p.y - _root._y;
var kaf = _parent.trw;
if (_parent == _root.h) {
var tmpa = 1;
while (tmpa <= 6) {
if (_root["w" + tmpa] == kaf) {
_root[("w" + tmpa) + "n"]--;
_root.hud.hud.trwn.text = _root[("w" + tmpa) + "n"];
if (!_root[("w" + tmpa) + "n"]) {
_root["w" + tmpa] = 3;
_root.hud.stash["w" + tmpa].gotoAndStop(3);
}
tmpa = 7;
}
tmpa++;
}
} else {
_parent.trwn--;
}
if (kaf == 1) {
_root.attachMovie("w1", "trw" + _root.arrd, _root.arrd, {_xscale:51.4, _yscale:51.4, _x:p.x, _y:p.y, vx:(((_parent._xscale > 0) ? -1 : 1) * 25) * Math.sin((Math.PI * (_rotation - 45)) / 180), vy:25 * Math.cos((Math.PI * (_rotation - 45)) / 180)});
var ttt = _root["trw" + _root.arrd];
ttt.p = new Object();
ttt.bounds = new Object();
ttt.arr1 = new Array();
ttt.arr2 = new Array();
ttt.arr3 = new Array();
ttt.arr33 = new Array();
var len = _root.allteam.length;
ttt.esize = 0;
ttt.esize2 = 0;
ttt.esize3 = 0;
ttt.esize33 = 0;
var i = 0;
while (i < len) {
if (_root.missornot(_root.throws[kaf - 1].chance * _parent.pchance)) {
ttt.arr1[ttt.esize++] = _root.allteam[i];
} else {
ttt.arr2[ttt.esize2++] = _root.allteam[i];
}
if (_root.blocked(_root.allteam[i])) {
ttt.arr3[ttt.esize3++] = _root.allteam[i];
}
i++;
}
ttt.tim = 0;
ttt.par = _parent;
ttt.sg = "w1";
ttt.sgn = 1;
ttt.onEnterFrame = function () {
if (_root.freeze) {
this.tim++;
if (this.tim > 200) {
this.removeMovieClip();
return(undefined);
}
this.vy = this.vy + 1;
this.px = this._x;
this.py = this._y;
this._x = this._x + this.vx;
this._y = this._y + this.vy;
this.rot = Math.atan2(this._y - this.py, this._x - this.px);
this._rotation = (this.rot * 180) / Math.PI;
if (this.vx > 0) {
this.x1 = this._x - (50 * Math.cos(this.rot));
this.y1 = this._y - (50 * Math.sin(this.rot));
this.x2 = this._x + (9 * Math.cos(this.rot));
this.y2 = this._y + (9 * Math.sin(this.rot));
} else {
this.x1 = this._x + (9 * Math.cos(this.rot));
this.y1 = this._y + (9 * Math.sin(this.rot));
this.x2 = this._x - (50 * Math.cos(this.rot));
this.y2 = this._y - (50 * Math.sin(this.rot));
}
_root.hitfolks(this);
this.i = 0;
while (this.i < _root.wlen) {
if (!_root.walls[this.i].ts.fred) {
if (_root.lines(this.x1, this.y1, this.x2, this.y2, _root.walls[this.i].x1, _root.walls[this.i].y1, _root.walls[this.i].x2, _root.walls[this.i].y2, this.p)) {
this.rot = ((Math.PI/2) + this.rot) - (2 * _root.walls[this.i].ts.a);
if (_root.walls[this.i].ts.t1 ^ _root.walls[this.i].ts.t10) {
this.a2 = _root.walls[this.i].ts.a + Math.PI;
if (this.a2 > Math.PI) {
this.a2 = this.a2 - (Math.PI*2);
}
} else {
this.a2 = _root.walls[this.i].ts.a;
}
this.kot = -3.14159265358979 - this.rot;
if (this.kot < -3.14159265358979) {
this.kot = this.kot + (Math.PI*2);
}
this.yot = Math.abs(this.kot - this.a2);
if (this.yot > Math.PI) {
this.yot = (Math.PI*2) - this.yot;
}
if (this.yot < (Math.PI/2)) {
_root.arrowhitsound(this._x, this._y);
this._x = this.p.x;
this._y = this.p.y;
_root.tgs.attachMovie("w1", "a" + _root.tgs.i, _root.tgs.i, {_x:this._x, _y:this._y, _xscale:this._xscale, _yscale:this._yscale, _rotation:this._rotation});
this.removeMovieClip();
_root.tgs.i++;
return(undefined);
}
}
}
this.i++;
}
}
};
_root.arrd++;
} else if (kaf == 2) {
_root.attachMovie("w2", "trw" + _root.arrd, _root.arrd, {_xscale:51.4, _yscale:51.4, _x:p.x, _y:p.y, vx:(((_parent._xscale > 0) ? -1 : 1) * 25) * Math.sin((Math.PI * (_rotation - 45)) / 180), vy:25 * Math.cos((Math.PI * (_rotation - 45)) / 180)});
var ttt = _root["trw" + _root.arrd];
ttt.p = new Object();
ttt.bounds = new Object();
ttt.arr1 = new Array();
ttt.arr2 = new Array();
ttt.arr3 = new Array();
ttt.arr33 = new Array();
var len = _root.allteam.length;
ttt.esize = 0;
ttt.esize2 = 0;
ttt.esize3 = 0;
ttt.esize33 = 0;
var i = 0;
while (i < len) {
if (_root.allteam[i] == _parent) {
ttt.arr2[ttt.esize2++] = _root.allteam[i];
} else {
if (_root.missornot(_root.throws[kaf - 1].chance * _parent.pchance)) {
ttt.arr1[ttt.esize++] = _root.allteam[i];
} else {
ttt.arr2[ttt.esize2++] = _root.allteam[i];
}
if (_root.blocked(_root.allteam[i])) {
ttt.arr3[ttt.esize3++] = _root.allteam[i];
}
}
i++;
}
ttt.ax = (-2 * ttt.vx) / 45;
ttt.ay = ((2 * (80 - (ttt.vy * 45))) / 45) / 45;
ttt.tt = 50;
if (ttt.vx > 0) {
ttt.rr = 42;
} else {
ttt.rr = -42;
}
ttt.tim = 0;
ttt.par = _parent;
ttt.sgn = 2;
ttt.cno = null;
ttt.onEnterFrame = function () {
if (_root.freeze) {
this.tim++;
if (this.tim > 200) {
this.removeMovieClip();
return(undefined);
}
if (this.tt > 0) {
this.tt--;
this.vy = this.vy + this.ay;
this.vx = this.vx + this.ax;
} else {
this.vy = this.vy + 1;
}
this.px = this._x;
this.py = this._y;
this._x = this._x + this.vx;
this._y = this._y + this.vy;
this.rot = Math.atan2(this._y - this.py, this._x - this.px);
this._rotation = this._rotation + this.rr;
if (this.vx > 0) {
this.x1 = this._x - (50 * Math.cos(this.rot));
this.y1 = this._y - (50 * Math.sin(this.rot));
this.x2 = this._x + (6 * Math.cos(this.rot));
this.y2 = this._y + (6 * Math.sin(this.rot));
} else {
this.x1 = this._x + (6 * Math.cos(this.rot));
this.y1 = this._y + (6 * Math.sin(this.rot));
this.x2 = this._x - (50 * Math.cos(this.rot));
this.y2 = this._y - (50 * Math.sin(this.rot));
}
_root.hitfolks(this);
this.i = 0;
while (this.i < _root.wlen) {
if (!_root.walls[this.i].ts.fred) {
if (_root.lines(this.x1, this.y1, this.x2, this.y2, _root.walls[this.i].x1, _root.walls[this.i].y1, _root.walls[this.i].x2, _root.walls[this.i].y2, this.p)) {
this.rot = ((Math.PI/2) + this.rot) - (2 * _root.walls[this.i].ts.a);
if (_root.walls[this.i].ts.t1 ^ _root.walls[this.i].ts.t10) {
this.a2 = _root.walls[this.i].ts.a + Math.PI;
if (this.a2 > Math.PI) {
this.a2 = this.a2 - (Math.PI*2);
}
} else {
this.a2 = _root.walls[this.i].ts.a;
}
this.kot = -3.14159265358979 - this.rot;
if (this.kot < -3.14159265358979) {
this.kot = this.kot + (Math.PI*2);
}
this.yot = Math.abs(this.kot - this.a2);
if (this.yot > Math.PI) {
this.yot = (Math.PI*2) - this.yot;
}
if (this.yot < (Math.PI/2)) {
_root.arrowhitsound(this._x, this._y);
this.rot = Math.atan2(this.vy, this.vx);
this._x = this.p.x;
this._y = this.p.y;
this.len = Math.sqrt((this.vx * this.vx) + (this.vy * this.vy));
if (((this.len > 6) || (_root.walls[this.i].ts.t10)) || (_root.walls[this.i].ts.t1)) {
this.rot = ((Math.PI/2) + this.rot) - (2 * _root.walls[this.i].ts.a);
this.vx = this.len * Math.sin(this.rot);
this.vy = this.len * Math.cos(this.rot);
this.rr = this.rr * 0.5;
this.vx = this.vx * 0.6;
this.vy = this.vy * 0.6;
this.tt = 0;
this.i = _root.wlen;
this.cno = null;
} else {
_root.tgs.attachMovie("w2", "a" + _root.tgs.i, _root.tgs.i, {_x:this._x, _y:this._y, _xscale:this._xscale, _yscale:this._yscale, _rotation:this._rotation});
this.removeMovieClip();
_root.tgs.i++;
return(undefined);
}
}
}
}
this.i++;
}
}
};
_root.arrd++;
} else if (kaf == 4) {
_root.attachMovie("w4", "trw" + _root.arrd, _root.arrd, {_xscale:51.4, _yscale:51.4, _x:p.x, _y:p.y, vx:(((_parent._xscale > 0) ? -1 : 1) * 15) * Math.sin((Math.PI * (_rotation - 45)) / 180), vy:15 * Math.cos((Math.PI * (_rotation - 45)) / 180)});
var ttt = _root["trw" + _root.arrd];
ttt.flag = true;
ttt.p = new Object();
ttt.bounds = new Object();
ttt.arr1 = new Array();
ttt.arr2 = new Array();
ttt.arr3 = new Array();
ttt.arr33 = new Array();
var len = _root.allteam.length;
ttt.esize = 0;
ttt.esize2 = 0;
ttt.esize3 = 0;
ttt.esize33 = 0;
var i = 0;
while (i < len) {
if (_root.missornot(_root.throws[kaf - 1].chance * _parent.pchance)) {
ttt.arr1[ttt.esize++] = _root.allteam[i];
} else {
ttt.arr2[ttt.esize2++] = _root.allteam[i];
}
if (_root.blocked(_root.allteam[i])) {
ttt.arr3[ttt.esize3++] = _root.allteam[i];
}
i++;
}
ttt.tt = 45;
ttt.par = _parent;
ttt.sgn = 4;
ttt.cno = null;
ttt.tim = 0;
ttt.onEnterFrame = function () {
if (_root.freeze) {
this.tim++;
this.tt--;
if (this.tt <= 0) {
_root.bombsound(this._x, this._y);
_root.attachMovie("fire", "f" + _root.arrd, _root.arrd, {_x:this._x, _y:this._y});
_root.arrd++;
this.i = 1;
while (this.i < 16) {
_root.attachMovie("op", "op" + _root.arrd, _root.arrd, {rr:Math.random() * 360, _x:this._x, _y:this._y, vx:15 * Math.sin((this.i * Math.PI) / 8), vy:15 * Math.cos((this.i * Math.PI) / 8)});
this.ttt = _root["op" + _root.arrd];
this.ttt.p = new Object();
this.ttt.bounds = new Object();
this.ttt.arr1 = new Array();
this.ttt.arr2 = new Array();
this.ttt.arr3 = new Array();
this.ttt.arr33 = new Array();
var len = _root.allteam.length;
this.ttt.esize = 0;
this.ttt.esize2 = 0;
this.ttt.esize3 = 0;
this.ttt.esize33 = 0;
var ii = 0;
while (ii < len) {
if (_root.missornot(_root.throws[6].chance * _parent.pchance)) {
this.ttt.arr1[this.ttt.esize++] = _root.allteam[ii];
} else {
this.ttt.arr2[this.ttt.esize2++] = _root.allteam[ii];
}
if (_root.blocked(_root.allteam[ii])) {
this.ttt.arr3[this.ttt.esize3++] = _root.allteam[ii];
}
ii++;
}
this.ttt.par = _parent;
this.ttt.sgn = 7;
this.ttt.cno = null;
this.ttt.tim = 0;
this.ttt.onEnterFrame = function () {
if (_root.freeze) {
this.tim++;
if (this.tim >= 60) {
this.removeMovieClip();
return(undefined);
}
this._rotation = this._rotation + this.rr;
this.vy = this.vy + 1;
this.px = this._x;
this.py = this._y;
this._x = this._x + this.vx;
this._y = this._y + this.vy;
this.rot = Math.atan2(this._y - this.py, this._x - this.px);
if (this.vx > 0) {
this.x1 = this._x - (50 * Math.cos(this.rot));
this.y1 = this._y - (50 * Math.sin(this.rot));
this.x2 = this._x + (6 * Math.cos(this.rot));
this.y2 = this._y + (6 * Math.sin(this.rot));
} else {
this.x1 = this._x + (6 * Math.cos(this.rot));
this.y1 = this._y + (6 * Math.sin(this.rot));
this.x2 = this._x - (50 * Math.cos(this.rot));
this.y2 = this._y - (50 * Math.sin(this.rot));
}
_root.hitfolks(this);
this.i = 0;
while (this.i < _root.wlen) {
if (!_root.walls[this.i].ts.fred) {
if (_root.lines(this.x1, this.y1, this.x2, this.y2, _root.walls[this.i].x1, _root.walls[this.i].y1, _root.walls[this.i].x2, _root.walls[this.i].y2, this.p)) {
this.rot = ((Math.PI/2) + this.rot) - (2 * _root.walls[this.i].ts.a);
if (_root.walls[this.i].ts.t1 ^ _root.walls[this.i].ts.t10) {
this.a2 = _root.walls[this.i].ts.a + Math.PI;
if (this.a2 > Math.PI) {
this.a2 = this.a2 - (Math.PI*2);
}
} else {
this.a2 = _root.walls[this.i].ts.a;
}
this.kot = -3.14159265358979 - this.rot;
if (this.kot < -3.14159265358979) {
this.kot = this.kot + (Math.PI*2);
}
this.yot = Math.abs(this.kot - this.a2);
if (this.yot > Math.PI) {
this.yot = (Math.PI*2) - this.yot;
}
if (this.yot < (Math.PI/2)) {
this._x = this.p.x;
this._y = this.p.y;
this.len = Math.sqrt((this.vx * this.vx) + (this.vy * this.vy));
if (((this.len > 6) || _root.walls[this.i].ts.t10) || _root.walls[this.i].ts.t1) {
this.rot = ((Math.PI/2) + this.rot) - (2 * _root.walls[this.i].ts.a);
this.vx = this.len * Math.sin(this.rot);
this.vy = this.len * Math.cos(this.rot);
this.rr = this.rr * -0.8;
this.rot = Math.atan2(this.vy, this.vx);
this.vx = this.vx * 0.6;
this.vy = this.vy * 0.6;
this.i = _root.wlen;
this.cno = null;
} else {
this.removeMovieClip();
return(undefined);
}
}
}
}
this.i++;
}
}
};
_root.arrd++;
this.i++;
}
this.removeMovieClip();
return(undefined);
}
if (this.flag) {
this.vy = this.vy + 1;
this.px = this._x;
this.py = this._y;
this._x = this._x + this.vx;
this._y = this._y + this.vy;
this.rot = Math.atan2(this._y - this.py, this._x - this.px);
if (this.vx > 0) {
this.x1 = this._x - (50 * Math.cos(this.rot));
this.y1 = this._y - (50 * Math.sin(this.rot));
this.x2 = this._x + (6 * Math.cos(this.rot));
this.y2 = this._y + (6 * Math.sin(this.rot));
} else {
this.x1 = this._x + (6 * Math.cos(this.rot));
this.y1 = this._y + (6 * Math.sin(this.rot));
this.x2 = this._x - (50 * Math.cos(this.rot));
this.y2 = this._y - (50 * Math.sin(this.rot));
}
_root.hitfolks(this);
this.i = 0;
while (this.i < _root.wlen) {
if (!_root.walls[this.i].ts.fred) {
if (_root.lines(this.x1, this.y1, this.x2, this.y2, _root.walls[this.i].x1, _root.walls[this.i].y1, _root.walls[this.i].x2, _root.walls[this.i].y2, this.p)) {
this.rot = ((Math.PI/2) + this.rot) - (2 * _root.walls[this.i].ts.a);
if (_root.walls[this.i].ts.t1 ^ _root.walls[this.i].ts.t10) {
this.a2 = _root.walls[this.i].ts.a + Math.PI;
if (this.a2 > Math.PI) {
this.a2 = this.a2 - (Math.PI*2);
}
} else {
this.a2 = _root.walls[this.i].ts.a;
}
this.kot = -3.14159265358979 - this.rot;
if (this.kot < -3.14159265358979) {
this.kot = this.kot + (Math.PI*2);
}
this.yot = Math.abs(this.kot - this.a2);
if (this.yot > Math.PI) {
this.yot = (Math.PI*2) - this.yot;
}
if (this.yot < (Math.PI/2)) {
_root.arrowhitsound(this._x, this._y);
this.rot = Math.atan2(this.vy, this.vx);
this._x = this.p.x;
this._y = this.p.y;
this.len = Math.sqrt((this.vx * this.vx) + (this.vy * this.vy));
if (((this.len > 6) || _root.walls[this.i].ts.t10) || _root.walls[this.i].ts.t1) {
this.rot = ((Math.PI/2) + this.rot) - (2 * _root.walls[this.i].ts.a);
this.vx = this.len * Math.sin(this.rot);
this.vy = this.len * Math.cos(this.rot);
this.rr = this.rr * -0.8;
this.rot = Math.atan2(this.vy, this.vx);
this.vx = this.vx * 0.6;
this.vy = this.vy * 0.6;
this.i = _root.wlen;
} else {
this.flag = false;
}
}
}
}
this.i++;
}
}
}
};
_root.arrd++;
} else if (kaf == 5) {
_root.attachMovie("w5", "trw" + _root.arrd, _root.arrd, {_xscale:51.4, _yscale:51.4, _x:p.x, _y:p.y, vx:(((_parent._xscale > 0) ? -1 : 1) * 25) * Math.sin((Math.PI * (_rotation - 45)) / 180), vy:25 * Math.cos((Math.PI * (_rotation - 45)) / 180)});
var ttt = _root["trw" + _root.arrd];
ttt.p = new Object();
ttt.p2 = new Object();
ttt.bounds = new Object();
ttt.arr1 = new Array();
ttt.arr2 = new Array();
ttt.arr3 = new Array();
ttt.arr33 = new Array();
var len = _root.allteam.length;
ttt.esize = 0;
ttt.esize2 = 0;
ttt.esize3 = 0;
ttt.esize33 = 0;
var i = 0;
while (i < len) {
if (_root.missornot(_root.throws[kaf - 1].chance * _parent.pchance)) {
ttt.arr1[ttt.esize++] = _root.allteam[i];
} else {
ttt.arr2[ttt.esize2++] = _root.allteam[i];
}
if (_root.blocked(_root.allteam[i])) {
ttt.arr3[ttt.esize3++] = _root.allteam[i];
}
i++;
}
if (ttt.vx > 0) {
ttt.rr = 30 + (50 * Math.random());
} else {
ttt.rr = -80 + (50 * Math.random());
}
ttt.tim = 0;
ttt.par = _parent;
ttt.sg = "w5";
ttt.sgn = 5;
ttt.cno = null;
ttt.fivf = Math.random() > 0.7;
ttt.onEnterFrame = function () {
if (_root.freeze) {
this.tim++;
if (this.tim > 200) {
this.removeMovieClip();
return(undefined);
}
this.vy = this.vy + 1;
this.px = this._x;
this.py = this._y;
this._x = this._x + this.vx;
this._y = this._y + this.vy;
this.rot = Math.atan2(this._y - this.py, this._x - this.px);
this._rotation = this._rotation + this.rr;
if (this.vx > 0) {
this.x1 = this._x - (50 * Math.cos(this.rot));
this.y1 = this._y - (50 * Math.sin(this.rot));
this.x2 = this._x + (9 * Math.cos(this.rot));
this.y2 = this._y + (9 * Math.sin(this.rot));
} else {
this.x1 = this._x + (9 * Math.cos(this.rot));
this.y1 = this._y + (9 * Math.sin(this.rot));
this.x2 = this._x - (50 * Math.cos(this.rot));
this.y2 = this._y - (50 * Math.sin(this.rot));
}
_root.hitfolks(this);
if (this.vx > 0) {
this.x1 = this._x - (50 * Math.cos(this.rot));
this.y1 = this._y - (50 * Math.sin(this.rot));
this.x2 = this._x + (9 * Math.cos(this.rot));
this.y2 = this._y + (9 * Math.sin(this.rot));
} else {
this.x1 = this._x + (9 * Math.cos(this.rot));
this.y1 = this._y + (9 * Math.sin(this.rot));
this.x2 = this._x - (50 * Math.cos(this.rot));
this.y2 = this._y - (50 * Math.sin(this.rot));
}
this.i = 0;
while (this.i < _root.wlen) {
if (!_root.walls[this.i].ts.fred) {
if (_root.lines(this.x1, this.y1, this.x2, this.y2, _root.walls[this.i].x1, _root.walls[this.i].y1, _root.walls[this.i].x2, _root.walls[this.i].y2, this.p)) {
this.rot = ((Math.PI/2) + this.rot) - (2 * _root.walls[this.i].ts.a);
if (_root.walls[this.i].ts.t1 ^ _root.walls[this.i].ts.t10) {
this.a2 = _root.walls[this.i].ts.a + Math.PI;
if (this.a2 > Math.PI) {
this.a2 = this.a2 - (Math.PI*2);
}
} else {
this.a2 = _root.walls[this.i].ts.a;
}
this.kot = -3.14159265358979 - this.rot;
if (this.kot < -3.14159265358979) {
this.kot = this.kot + (Math.PI*2);
}
this.yot = Math.abs(this.kot - this.a2);
if (this.yot > Math.PI) {
this.yot = (Math.PI*2) - this.yot;
}
if (this.yot < (Math.PI/2)) {
_root.arrowhitsound(this._x, this._y);
this.rot = Math.atan2(this.vy, this.vx);
this._x = this.p.x;
this._y = this.p.y;
this.len = Math.sqrt((this.vx * this.vx) + (this.vy * this.vy));
this.p.x = this.c1._x;
this.p.y = this.c1._y;
this.localToGlobal(this.p);
this.x1 = this.p.x - _root._x;
this.y1 = this.p.y - _root._y;
this.p.x = this.c2._x;
this.p.y = this.c2._y;
this.localToGlobal(this.p);
this.x2 = this.p.x - _root._x;
this.y2 = this.p.y - _root._y;
if (this.x1 > this.x2) {
tmp = this.x1;
this.x1 = this.x2;
this.x2 = tmp;
tmp = this.y1;
this.y1 = this.y2;
this.y2 = tmp;
}
if ((((this.len < 8) && (!_root.walls[this.i].ts.t10)) && (!_root.walls[this.i].ts.t1)) || _root.lines(this.x1, this.y1, this.x2, this.y2, _root.walls[this.i].x1, _root.walls[this.i].y1, _root.walls[this.i].x2, _root.walls[this.i].y2, this.p)) {
_root.tgs.attachMovie("w5", "a" + _root.tgs.i, _root.tgs.i, {_x:this._x, _y:this._y, _xscale:this._xscale, _yscale:this._yscale, _rotation:this._rotation});
this.removeMovieClip();
_root.tgs.i++;
return(undefined);
}
this.rot = ((Math.PI/2) + this.rot) - (2 * _root.walls[this.i].ts.a);
this.vx = this.len * Math.sin(this.rot);
this.vy = this.len * Math.cos(this.rot);
this.rr = this.rr * -0.8;
this.rot = Math.atan2(this.vy, this.vx);
this.vx = this.vx * 0.6;
this.vy = this.vy * 0.6;
this.cno = null;
this.i = _root.wlen;
}
}
}
this.i++;
}
}
};
_root.arrd++;
} else if (kaf == 6) {
_root.attachMovie("w6", "trw" + _root.arrd, _root.arrd, {_xscale:51.4, _yscale:51.4, _x:p.x, _y:p.y, vx:(((_parent._xscale > 0) ? -1 : 1) * 35) * Math.sin((Math.PI * (_rotation - 45)) / 180), vy:35 * Math.cos((Math.PI * (_rotation - 45)) / 180)});
var ttt = _root["trw" + _root.arrd];
ttt.p = new Object();
ttt.bounds = new Object();
ttt.arr1 = new Array();
ttt.arr2 = new Array();
ttt.arr3 = new Array();
ttt.arr33 = new Array();
var len = _root.allteam.length;
ttt.esize = 0;
ttt.esize2 = 0;
ttt.esize3 = 0;
ttt.esize33 = 0;
var i = 0;
while (i < len) {
if (_root.missornot(_root.throws[kaf - 1].chance * _parent.pchance)) {
ttt.arr1[ttt.esize++] = _root.allteam[i];
} else {
ttt.arr2[ttt.esize2++] = _root.allteam[i];
}
if (_root.blocked(_root.allteam[i])) {
ttt.arr3[ttt.esize3++] = _root.allteam[i];
}
i++;
}
ttt.tim = 0;
ttt.par = _parent;
ttt.sg = "w6";
ttt.sgn = 6;
ttt.gc = 0.5;
ttt.onEnterFrame = function () {
if (_root.freeze) {
this.tim++;
if (this.tim > 200) {
this.removeMovieClip();
return(undefined);
}
this.vy = this.vy + this.gc;
this.px = this._x;
this.py = this._y;
this._x = this._x + this.vx;
this._y = this._y + this.vy;
this.rot = Math.atan2(this._y - this.py, this._x - this.px);
this._rotation = this._rotation - 37;
if (this.vx > 0) {
this.x1 = this._x - (50 * Math.cos(this.rot));
this.y1 = this._y - (50 * Math.sin(this.rot));
this.x2 = this._x + (9 * Math.cos(this.rot));
this.y2 = this._y + (9 * Math.sin(this.rot));
} else {
this.x1 = this._x + (9 * Math.cos(this.rot));
this.y1 = this._y + (9 * Math.sin(this.rot));
this.x2 = this._x - (50 * Math.cos(this.rot));
this.y2 = this._y - (50 * Math.sin(this.rot));
}
_root.hitfolks(this);
this.i = 0;
while (this.i < _root.wlen) {
if (!_root.walls[this.i].ts.fred) {
if (_root.lines(this.x1, this.y1, this.x2, this.y2, _root.walls[this.i].x1, _root.walls[this.i].y1, _root.walls[this.i].x2, _root.walls[this.i].y2, this.p)) {
this.rot = ((Math.PI/2) + this.rot) - (2 * _root.walls[this.i].ts.a);
if (_root.walls[this.i].ts.t1 ^ _root.walls[this.i].ts.t10) {
this.a2 = _root.walls[this.i].ts.a + Math.PI;
if (this.a2 > Math.PI) {
this.a2 = this.a2 - (Math.PI*2);
}
} else {
this.a2 = _root.walls[this.i].ts.a;
}
this.kot = -3.14159265358979 - this.rot;
if (this.kot < -3.14159265358979) {
this.kot = this.kot + (Math.PI*2);
}
this.yot = Math.abs(this.kot - this.a2);
if (this.yot > Math.PI) {
this.yot = (Math.PI*2) - this.yot;
}
if (this.yot < (Math.PI/2)) {
_root.arrowhitsound(this._x, this._y);
this._x = this.p.x;
this._y = this.p.y;
_root.tgs.attachMovie("w6", "a" + _root.tgs.i, _root.tgs.i, {_x:this._x, _y:this._y, _xscale:this._xscale, _yscale:this._yscale, _rotation:this._rotation});
this.removeMovieClip();
_root.tgs.i++;
return(undefined);
}
}
}
this.i++;
}
}
};
_root.arrd++;
}
Symbol 623 MovieClip Frame 218
gotoAndStop (65);
Symbol 626 MovieClip Frame 6
_parent.gotoAndStop(5);
_parent.p5.gotoAndPlay(1);
Symbol 627 MovieClip Frame 20
stop();
Symbol 628 MovieClip Frame 10
_parent.gotoAndStop(1);
_root.jump = false;
_root.djump = false;
Symbol 629 MovieClip Frame 1
_parent.rh._x = _parent.c1._x;
_parent.rh._y = _parent.c1._y;
_parent.lh._x = _parent.c3._x;
_parent.lh._y = _parent.c3._y;
rhx = (_parent.c2._x - _parent.c1._x) / 9;
rhy = (_parent.c2._y - _parent.c1._y) / 9;
lhx = (_parent.c4._x - _parent.c3._x) / 9;
lhy = (_parent.c4._y - _parent.c3._y) / 9;
Symbol 629 MovieClip Frame 2
_parent.rh._x = _parent.c1._x + rhx;
_parent.rh._y = _parent.c1._y + rhy;
_parent.lh._x = _parent.c3._x + lhx;
_parent.lh._y = _parent.c3._y + lhy;
Symbol 629 MovieClip Frame 3
_parent.rh._x = _parent.c1._x + (2 * rhx);
_parent.rh._y = _parent.c1._y + (2 * rhy);
_parent.lh._x = _parent.c3._x + (2 * lhx);
_parent.lh._y = _parent.c3._y + (2 * lhy);
Symbol 629 MovieClip Frame 4
_parent.rh._x = _parent.c1._x + (3 * rhx);
_parent.rh._y = _parent.c1._y + (3 * rhy);
_parent.lh._x = _parent.c3._x + (3 * lhx);
_parent.lh._y = _parent.c3._y + (3 * lhy);
Symbol 629 MovieClip Frame 5
_parent.rh._x = _parent.c1._x + (4 * rhx);
_parent.rh._y = _parent.c1._y + (4 * rhy);
_parent.lh._x = _parent.c3._x + (4 * lhx);
_parent.lh._y = _parent.c3._y + (4 * lhy);
Symbol 629 MovieClip Frame 6
_parent.rh._x = _parent.c1._x + (5 * rhx);
_parent.rh._y = _parent.c1._y + (5 * rhy);
_parent.lh._x = _parent.c3._x + (5 * lhx);
_parent.lh._y = _parent.c3._y + (5 * lhy);
Symbol 629 MovieClip Frame 7
_parent.rh._x = _parent.c1._x + (6 * rhx);
_parent.rh._y = _parent.c1._y + (6 * rhy);
_parent.lh._x = _parent.c3._x + (6 * lhx);
_parent.lh._y = _parent.c3._y + (6 * lhy);
Symbol 629 MovieClip Frame 8
_parent.rh._x = _parent.c1._x + (7 * rhx);
_parent.rh._y = _parent.c1._y + (7 * rhy);
_parent.lh._x = _parent.c3._x + (7 * lhx);
_parent.lh._y = _parent.c3._y + (7 * lhy);
Symbol 629 MovieClip Frame 9
_parent.rh._x = _parent.c1._x + (8 * rhx);
_parent.rh._y = _parent.c1._y + (8 * rhy);
_parent.lh._x = _parent.c3._x + (8 * lhx);
_parent.lh._y = _parent.c3._y + (8 * lhy);
Symbol 629 MovieClip Frame 10
_parent.rh._x = _parent.c1._x + (9 * rhx);
_parent.rh._y = _parent.c1._y + (9 * rhy);
_parent.lh._x = _parent.c3._x + (9 * lhx);
_parent.lh._y = _parent.c3._y + (9 * lhy);
stop();
Symbol 629 MovieClip Frame 11
_parent.rh._x = _parent.c1._x + (9 * rhx);
_parent.rh._y = _parent.c1._y + (9 * rhy);
_parent.lh._x = _parent.c3._x + (9 * lhx);
_parent.lh._y = _parent.c3._y + (9 * lhy);
Symbol 629 MovieClip Frame 12
_parent.rh._x = _parent.c1._x + (8 * rhx);
_parent.rh._y = _parent.c1._y + (8 * rhy);
_parent.lh._x = _parent.c3._x + (8 * lhx);
_parent.lh._y = _parent.c3._y + (8 * lhy);
Symbol 629 MovieClip Frame 13
_parent.rh._x = _parent.c1._x + (7 * rhx);
_parent.rh._y = _parent.c1._y + (7 * rhy);
_parent.lh._x = _parent.c3._x + (7 * lhx);
_parent.lh._y = _parent.c3._y + (7 * lhy);
Symbol 629 MovieClip Frame 14
_parent.rh._x = _parent.c1._x + (6 * rhx);
_parent.rh._y = _parent.c1._y + (6 * rhy);
_parent.lh._x = _parent.c3._x + (6 * lhx);
_parent.lh._y = _parent.c3._y + (6 * lhy);
Symbol 629 MovieClip Frame 15
_parent.rh._x = _parent.c1._x + (5 * rhx);
_parent.rh._y = _parent.c1._y + (5 * rhy);
_parent.lh._x = _parent.c3._x + (5 * lhx);
_parent.lh._y = _parent.c3._y + (5 * lhy);
Symbol 629 MovieClip Frame 16
_parent.rh._x = _parent.c1._x + (4 * rhx);
_parent.rh._y = _parent.c1._y + (4 * rhy);
_parent.lh._x = _parent.c3._x + (4 * lhx);
_parent.lh._y = _parent.c3._y + (4 * lhy);
Symbol 629 MovieClip Frame 17
_parent.rh._x = _parent.c1._x + (3 * rhx);
_parent.rh._y = _parent.c1._y + (3 * rhy);
_parent.lh._x = _parent.c3._x + (3 * lhx);
_parent.lh._y = _parent.c3._y + (3 * lhy);
Symbol 629 MovieClip Frame 18
_parent.rh._x = _parent.c1._x + (2 * rhx);
_parent.rh._y = _parent.c1._y + (2 * rhy);
_parent.lh._x = _parent.c3._x + (2 * lhx);
_parent.lh._y = _parent.c3._y + (2 * lhy);
Symbol 629 MovieClip Frame 19
_parent.rh._x = _parent.c1._x + rhx;
_parent.rh._y = _parent.c1._y + rhy;
_parent.lh._x = _parent.c3._x + lhx;
_parent.lh._y = _parent.c3._y + lhy;
Symbol 629 MovieClip Frame 20
_parent.rh._x = _parent.c1._x;
_parent.rh._y = _parent.c1._y;
_parent.lh._x = _parent.c3._x;
_parent.lh._y = _parent.c3._y;
stop();
_root.duck = false;
_root.uduck = false;
Symbol 630 MovieClip [character] Frame 1
stop();
Symbol 630 MovieClip [character] Frame 2
stop();
Symbol 630 MovieClip [character] Frame 3
stop();
Symbol 630 MovieClip [character] Frame 4
stop();
Symbol 630 MovieClip [character] Frame 5
stop();
Symbol 630 MovieClip [character] Frame 6
stop();
Symbol 630 MovieClip [character] Frame 7
stop();
Symbol 653 Button
on (release) {
_root.songfade();
_root.contin = false;
_root.againlvl = _root.stagenum;
onEnterFrame = function () {
_alpha = (_alpha - 10);
if (_alpha <= 0) {
_alpha = 0;
_root.gotoAndStop(6);
}
};
}
on (rollOver) {
_root.msound("wuwm");
}
on (press) {
_root.msound("clickd");
}
Symbol 658 Button
on (release) {
_root.contin = true;
onEnterFrame = function () {
_alpha = (_alpha - 10);
if (_alpha <= 0) {
_alpha = 0;
_root.gotoAndStop(6);
}
};
}
on (rollOver) {
_root.msound("wuwm");
}
on (press) {
_root.msound("clickd");
}
Symbol 659 MovieClip [finalresults] Frame 1
if (_root.kills[0].team) {
somt.me.text = "0$";
wonlost.gotoAndStop(1);
} else {
if (_root.levelsstate == _root.stagenum) {
_root.lockopen = true;
_root.levelsstate++;
if (_root.levelsstate == 5) {
_root.secondw = true;
}
if (_root.levelsstate == 11) {
_root.thirdw = true;
}
}
_root.money = _root.money + _root.moneyif;
somt.me.text = _root.moneyif + "$";
wonlost.gotoAndStop(2);
}
gotoAndStop(_root.nteams - 1);
somt.hhead.hair.gotoAndStop(_root.h.ihead);
somt.k.text = _root.hkills;
somt.d.text = _root.hdeaths;
somt.bt.text = (Math.floor((_root.battletime / 30) / 60) + ":") + Math.floor((_root.battletime / 30) % 60);
somt.ym.text = _root.money + "$";
i = 1;
while (i <= _root.nteams) {
this["tm" + i].my_color = new Color(this["tm" + i].tc);
this["tm" + i].my_color.setRGB(_root.teams[i - 1].clr);
this["tm" + i].k.text = _root.teams[i - 1].score;
this["tm" + i].d.text = _root.teams[i - 1].unscore;
if (_root["team" + i].length <= 2) {
this["tm" + i].p3._visible = false;
if (_root["team" + i].length <= 1) {
this["tm" + i].p2._visible = false;
}
}
j = 1;
while (j <= _root["team" + i].length) {
var p = this["tm" + i]["p" + j];
var mc = _root["team" + i][j - 1];
p.gotoAndStop(1);
if (mc.bow) {
p.bow = true;
p.rh.gotoAndStop(1);
p.lh.gotoAndStop(1);
} else {
p.bow = false;
p.rh.gotoAndStop(65);
p.lh.gotoAndStop(53);
}
p.both = mc.both;
p.ihead = mc.ihead;
p.iarmor = mc.iarmor;
p.wep = mc.wep;
p.bown = mc.bown;
p.bow = mc.bow;
p.onEnterFrame = function () {
if (this.bow) {
this.lh.bow._rotation = (this.rh._rotation - this.lh._rotation) + 34.55;
if ((this.lh._currentframe >= 67) && (this.lh._currentframe <= 79)) {
this.lh.bow._rotation = this.lh.bow._rotation + (((79 - this.lh._currentframe) * 90) / 13);
}
}
if (this.bow && (this.rh._currentframe == 6)) {
this.rh.gotoAndPlay(9);
}
if (Math.random() > 0.98) {
if (this.both && (Math.random() > 0.7)) {
if (this.bow) {
if ((this.rh._currentframe == 1) && (this.lh._currentframe == 1)) {
this.rh.gotoAndPlay(34);
this.lh.gotoAndPlay(34);
this.bow = false;
}
} else if ((this.rh._currentframe == 65) && (this.lh._currentframe == 53)) {
this.rh.gotoAndPlay(159);
this.lh.gotoAndPlay(55);
this.bow = true;
}
} else if (this.bow) {
if ((this.rh._currentframe == 1) && (this.lh._currentframe == 1)) {
this.lh.play();
this.rh.play();
this.lh.bow.bow.play();
} else if (this.rh._currentframe == 159) {
this.rh.play();
}
} else if ((this.rh._currentframe == 65) && (this.lh._currentframe == 53)) {
rand = random(5);
switch (rand) {
case 0 :
this.rh.gotoAndPlay(66);
break;
case 1 :
this.rh.gotoAndPlay(82);
break;
case 2 :
this.rh.gotoAndPlay(102);
break;
case 3 :
this.rh.gotoAndPlay(125);
break;
case 4 :
this.rh.gotoAndPlay(143);
}
} else if ((((((this.rh._currentframe == 66) || (this.rh._currentframe == 82)) || (this.rh._currentframe == 102)) || (this.rh._currentframe == 125)) || (this.rh._currentframe == 143)) || (this.rh._currentframe == 34)) {
this.rh.play();
} else if (this.lh._currentframe == 34) {
this.lh.play();
}
}
};
j++;
}
i++;
}
Symbol 691 MovieClip [dead] Frame 31
this.removeMovieClip();
Symbol 719 MovieClip [alive] Frame 31
this.removeMovieClip();
Symbol 723 MovieClip [kills] Frame 1
var my_color = new Color(kills);
my_color.setRGB(clr);
te = 20;
scl = _xscale;
up = function () {
this.swapDepths(_parent.getNextHighestDepth());
strty = _y;
endy = _y - 25;
c = strty;
a = (((2 * (c - endy)) / te) / te) / te;
b = ((-3 * a) * te) / 2;
t = 0;
onEnterFrame = function () {
t++;
_y = (((((a * t) * t) * t) + ((b * t) * t)) + c);
_yscale = (scl + (50 * Math.sin((Math.PI * t) / te)));
_xscale = (scl + (50 * Math.sin((Math.PI * t) / te)));
if (t >= te) {
_y = endy;
_yscale = scl;
_xscale = scl;
delete onEnterFrame;
_root.kilgo = true;
_root.checkkills();
}
};
};
down = function () {
this.swapDepths(_parent.getNextHighestDepth());
strty = _y;
endy = _y + 25;
c = strty;
a = (((2 * (c - endy)) / te) / te) / te;
b = ((-3 * a) * te) / 2;
t = 0;
onEnterFrame = function () {
t++;
_y = (((((a * t) * t) * t) + ((b * t) * t)) + c);
_yscale = (scl - (50 * Math.sin((Math.PI * t) / te)));
_xscale = (scl - (50 * Math.sin((Math.PI * t) / te)));
if (t >= te) {
_yscale = scl;
_xscale = scl;
_y = endy;
delete onEnterFrame;
}
};
};
Symbol 737 MovieClip [fire] Frame 14
this.removeMovieClip();
Symbol 741 MovieClip [blocked] Frame 25
this.removeMovieClip();
Symbol 745 MovieClip [missedshield] Frame 25
this.removeMovieClip();
Symbol 749 MovieClip [missed] Frame 25
this.removeMovieClip();
Symbol 757 MovieClip Frame 7
_parent.removeMovieClip();
Symbol 764 MovieClip Frame 7
_parent.removeMovieClip();
Symbol 772 MovieClip Frame 8
_parent.removeMovieClip();
Symbol 779 MovieClip Frame 7
_parent.removeMovieClip();
Symbol 780 MovieClip [blood] Frame 1
gotoAndStop(random(5) + 2);
if (random(2)) {
_xscale = -100;
}
Symbol 789 MovieClip [op] Frame 1
gotoAndStop(random(8) + 2);
Symbol 794 MovieClip [star] Frame 1
var my_color = new Color(sclr);
my_color.setRGB(clr);
Symbol 803 MovieClip [start] Frame 5
_root.msound("bip");
Symbol 803 MovieClip [start] Frame 25
_root.msound("bip");
Symbol 803 MovieClip [start] Frame 45
_root.msound("bip");
Symbol 803 MovieClip [start] Frame 70
_root.msound("bap");
Symbol 803 MovieClip [start] Frame 94
this.removeMovieClip();
Symbol 1070 MovieClip [item] Frame 1
X = 2;
Y = 4;
onEnterFrame = function () {
if (_root.hold == this) {
_x = (_root._xmouse + _root.xch);
_y = (_root._ymouse + _root.ych);
sx = Math.round((_x - 283.8) / _root.xdim) + 1;
sy = Math.round((_y - 274.3) / _root.ydim) + 1;
i = 1;
while (i <= _root.R) {
j = 1;
while (j <= _root.C) {
_root.inv[(("b" + i) + "b") + j].gotoAndStop(1);
j++;
}
i++;
}
if ((((sx >= 1) && (((sx + X) - 1) <= _root.C)) && (sy >= 1)) && (((sy + Y) - 1) <= _root.R)) {
_x = (283.8 + ((sx - 1) * _root.xdim));
_y = (274.3 + ((sy - 1) * _root.ydim));
i = sx;
while (i < (sx + X)) {
j = sy;
while (j < (sy + Y)) {
if ((((i >= 1) && (i <= _root.C)) && (j >= 1)) && (j <= _root.R)) {
if (_root.inv[(("b" + j) + "b") + i].taken) {
_root.inv[(("b" + j) + "b") + i].gotoAndStop(2);
} else {
_root.inv[(("b" + j) + "b") + i].gotoAndStop(3);
}
}
j++;
}
i++;
}
}
}
};
stop();
Symbol 1070 MovieClip [item] Frame 33
X = 1;
Y = 2;
Symbol 1070 MovieClip [item] Frame 34
X = 1;
Y = 2;
Symbol 1070 MovieClip [item] Frame 35
X = 1;
Y = 3;
Symbol 1070 MovieClip [item] Frame 36
X = 1;
Y = 2;
Symbol 1070 MovieClip [item] Frame 37
X = 1;
Y = 5;
Symbol 1070 MovieClip [item] Frame 38
X = 2;
Y = 2;
Symbol 1070 MovieClip [item] Frame 39
X = 1;
Y = 2;
Symbol 1070 MovieClip [item] Frame 40
X = 1;
Y = 2;
Symbol 1070 MovieClip [item] Frame 41
X = 1;
Y = 2;
Symbol 1070 MovieClip [item] Frame 42
X = 2;
Y = 2;
Symbol 1070 MovieClip [item] Frame 43
X = 1;
Y = 5;
Symbol 1070 MovieClip [item] Frame 44
X = 1;
Y = 2;
Symbol 1070 MovieClip [item] Frame 45
X = 1;
Y = 2;
Symbol 1070 MovieClip [item] Frame 46
X = 1;
Y = 5;
Symbol 1070 MovieClip [item] Frame 47
X = 1;
Y = 2;
Symbol 1070 MovieClip [item] Frame 48
X = 2;
Y = 2;
Symbol 1070 MovieClip [item] Frame 49
X = 1;
Y = 3;
Symbol 1070 MovieClip [item] Frame 50
X = 2;
Y = 3;
Symbol 1070 MovieClip [item] Frame 51
X = 2;
Y = 3;
Symbol 1070 MovieClip [item] Frame 52
X = 2;
Y = 3;
Symbol 1070 MovieClip [item] Frame 53
X = 2;
Y = 3;
Symbol 1070 MovieClip [item] Frame 54
X = 2;
Y = 3;
Symbol 1070 MovieClip [item] Frame 55
X = 3;
Y = 3;
Symbol 1070 MovieClip [item] Frame 56
X = 1;
Y = 1;
Symbol 1070 MovieClip [item] Frame 57
X = 1;
Y = 1;
Symbol 1070 MovieClip [item] Frame 58
X = 1;
Y = 1;
Symbol 1070 MovieClip [item] Frame 59
X = 1;
Y = 1;
Symbol 1070 MovieClip [item] Frame 60
X = 1;
Y = 1;
Symbol 1077 MovieClip Frame 1
stop();
Symbol 1082 Button
on (press) {
_root.msound("clickd");
if (isNaN(Number(buy.text))) {
buy.text = "1";
} else if (Number(buy.text) < 9999) {
buy.text = Number(buy.text) + 1;
} else {
buy.text = "1";
}
}
on (rollOver) {
_root.msound("wuwm");
}
Symbol 1083 Button
on (press) {
_root.msound("clickd");
if (isNaN(Number(buy.text))) {
buy.text = "1";
} else if (Number(buy.text) > 1) {
buy.text = Number(buy.text) - 1;
}
}
on (rollOver) {
_root.msound("wuwm");
}
Symbol 1086 Button
on (release) {
if (isNaN(Number(buy.text)) || (Number(buy.text) <= 0)) {
_root.msound("error");
buy.text = "1";
} else {
cost = Number(buy.text) * _root.throws[_root.dtd(_root.it._currentframe - 56)].price;
if (_root.money >= cost) {
_root.msound("sold");
_root.money = _root.money - cost;
_root.updatecash();
_visible = false;
flag = true;
i = 1;
while (i <= _root.R) {
j = 1;
while (j <= _root.C) {
if (_root.inv[(("b" + i) + "b") + j].it._currentframe == _root.it._currentframe) {
flag = false;
_root.inv[(("b" + i) + "b") + j].it.num.text = Number(_root.inv[(("b" + i) + "b") + j].it.num.text) + Number(buy.text);
_root.it.removeMovieClip();
i = (j = _root.R + _root.C);
}
j++;
}
i++;
}
if (flag) {
_root.inv[(("b" + _root.s2y) + "b") + _root.s2x].taken = true;
_root.inv[(("b" + _root.s2y) + "b") + _root.s2x].it = _root.it;
_root.it._x = 283.8 + ((_root.s2x - 1) * _root.xdim);
_root.it._y = 274.3 + ((_root.s2y - 1) * _root.ydim);
_root.it.ix = _root.s2x;
_root.it.iy = _root.s2y;
_root.it.num.text = Number(buy.text);
}
_root.onEnterFrame = _root.tmpontar;
} else {
_root.notenoughmoney.gotoAndPlay(2);
_root.msound("error");
buy.text = "1";
}
}
}
on (rollOver) {
_root.msound("wuwm");
}
Symbol 1089 Button
on (release) {
_root.msound("clickd");
_root.it.removeMovieClip();
_visible = false;
_root.onEnterFrame = _root.tmpontar;
}
on (rollOver) {
_root.msound("wuwm");
}
Symbol 1091 MovieClip Frame 1
_visible = false;
Symbol 1092 MovieClip [trwbuy] Frame 1
_visible = false;
Symbol 1095 MovieClip [inventoryisfull] Frame 1
stop();
Symbol 1095 MovieClip [inventoryisfull] Frame 23
gotoAndStop (1);
Symbol 1102 MovieClip [mousehand] Frame 1
stop();
Symbol 3208 MovieClip [__Packages.MochiKey] Frame 0
class MochiKey extends Key
{
static var _downKeys, _keyListener, _revert;
function MochiKey () {
super();
}
static function initialize() {
_downKeys = new Array();
_keyListener = new Object();
_keyListener.onKeyDown = function () {
MochiKey.onKeyDown();
};
_keyListener.onKeyUp = function () {
MochiKey.onKeyUp();
};
Key.addListener(_keyListener);
}
static function onKeyDown() {
_downKeys[Key.getCode()] = true;
}
static function onKeyUp() {
_downKeys[Key.getCode()] = false;
}
static function isDown(keyCode) {
if (Key.isDown(keyCode)) {
_revert = true;
return(true);
}
if (_revert) {
return(false);
}
if (!isNaN(keyCode)) {
if (_downKeys[keyCode] != null) {
return(_downKeys[keyCode]);
}
}
return(false);
}
static function letterIsDown(keyChar) {
if (Key.isDown(Key.getAscii(keyChar))) {
_revert = true;
return(true);
}
if (_revert) {
return(false);
}
if (keyChar.length == 1) {
var keyCode = Key.getAscii(keyChar);
return(isDown(keyCode));
}
return(false);
}
}
Symbol 3209 MovieClip [__Packages.mochi.MochiServices] Frame 0
class mochi.MochiServices
{
static var _id, _container, _clip, _sendChannelName, _rcvChannelName, __get__comChannelName, onError, _listenChannel, _rcvChannel, _loader, _loaderListener, _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("1.2");
}
static function allowDomains(server) {
var hostname = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(hostname);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(hostname);
}
}
return(hostname);
}
static function get isNetworkAvailable() {
if (System.security) {
var o = System.security;
if (o.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function set comChannelName(val) {
if (val != undefined) {
if (val.length > 3) {
_sendChannelName = val + "_fromgame";
_rcvChannelName = val;
initComChannels();
}
}
//return(__get__comChannelName());
}
static function get connected() {
return(_connected);
}
static function connect(id, clip, onError) {
if ((!_connected) && (_clip == undefined)) {
trace("MochiServices Connecting...");
_connecting = true;
init(id, clip);
}
if (onError != undefined) {
mochi.MochiServices.onError = onError;
} else if (mochi.MochiServices.onError == undefined) {
mochi.MochiServices.onError = function (errorCode) {
trace(errorCode);
};
}
}
static function disconnect() {
if (_connected || (_connecting)) {
_connecting = (_connected = false);
flush(true);
if (_clip != undefined) {
_clip.removeMovieClip();
delete _clip;
}
_listenChannel.close();
_rcvChannel.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 clipname = ("_mochiservices_com_" + id);
if (_clip != null) {
return(_clip);
}
if (!isNetworkAvailable) {
return(null);
}
allowDomains(_gatewayURL);
_clip = clip.createEmptyMovieClip(clipname, 10336, false);
_loader = new MovieClipLoader();
if (_loaderListener.waitInterval != null) {
clearInterval(_loaderListener.waitInterval);
}
_loaderListener = {};
_loaderListener.onLoadError = function (target_mc, errorCode, httpStatus) {
trace("MochiServices could not load.");
mochi.MochiServices.disconnect();
mochi.MochiServices.onError.apply(null, [errorCode]);
};
_loaderListener.onLoadStart = function (target_mc) {
this.isLoading = true;
};
_loaderListener.startTime = getTimer();
_loaderListener.wait = function () {
if ((getTimer() - this.startTime) > 10000) {
if (!this.isLoading) {
mochi.MochiServices.disconnect();
mochi.MochiServices.onError.apply(null, ["IOError"]);
}
clearInterval(this.waitInterval);
}
};
_loaderListener.waitInterval = setInterval(_loaderListener, "wait", 1000);
_loader.addListener(_loaderListener);
_loader.loadClip(_gatewayURL, _clip);
_sendChannel = new LocalConnection();
_sendChannel._queue = [];
_rcvChannel = new LocalConnection();
_rcvChannel.allowDomain = function (d) {
return(true);
};
_rcvChannel.allowInsecureDomain = _rcvChannel.allowDomain;
_rcvChannel._nextcallbackID = 0;
_rcvChannel._callbacks = {};
listen();
return(_clip);
}
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.MochiServices.__set__comChannelName(args.newChannel);
};
_listenChannel.allowDomain = function (d) {
return(true);
};
_listenChannel.allowInsecureDomain = _listenChannel.allowDomain;
_listenChannel.connect(_listenChannelName);
trace("Waiting for MochiAds services to connect...");
}
static function initComChannels() {
if (!_connected) {
_sendChannel.onStatus = function (infoObject) {
mochi.MochiServices.onStatus(infoObject);
};
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"handshakeDone"});
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"registerGame", id:_id, clip:_clip, version:getVersion()});
_rcvChannel.onStatus = function (infoObject) {
mochi.MochiServices.onStatus(infoObject);
};
_rcvChannel.onReceive = function (pkg) {
var cb = pkg.callbackID;
var cblst = this._callbacks[cb];
if (!cblst) {
return(undefined);
}
var method = cblst.callbackMethod;
var obj = cblst.callbackObject;
if (obj && (typeof(method) == "string")) {
method = obj[method];
}
if (method != undefined) {
method.apply(obj, pkg.args);
}
delete this._callbacks[cb];
};
_rcvChannel.onError = function () {
mochi.MochiServices.onError.apply(null, ["IOError"]);
};
_rcvChannel.connect(_rcvChannelName);
trace("connected!");
_connecting = false;
_connected = true;
_listenChannel.close();
while (_sendChannel._queue.length > 0) {
_sendChannel.send(_sendChannelName, "onReceive", _sendChannel._queue.shift());
}
}
}
static function flush(error) {
var request;
var callback;
while (_sendChannel._queue.length > 0) {
request = _sendChannel._queue.shift();
delete callback;
if (request.callbackID != null) {
callback = _rcvChannel._callbacks[request.callbackID];
}
delete _rcvChannel._callbacks[request.callbackID];
if (error) {
handleError(request.args, callback.callbackObject, callback.callbackMethod);
}
}
}
static function handleError(args, callbackObject, callbackMethod) {
if (args != null) {
if (args.onError != null) {
args.onError.apply(null, ["NotConnected"]);
}
}
if (callbackMethod != null) {
args = {};
args.error = true;
args.errorCode = "NotConnected";
if ((callbackObject != null) && (typeof(callbackMethod) == "string")) {
callbackObject[callbackMethod](args);
} else if (callbackMethod != null) {
callbackMethod.apply(args);
}
}
}
static function send(methodName, args, callbackObject, callbackMethod) {
if (_connected) {
_sendChannel.send(_sendChannelName, "onReceive", {methodName:methodName, args:args, callbackID:_rcvChannel._nextcallbackID});
} else {
if ((_clip == undefined) || (!_connecting)) {
onError.apply(null, ["NotConnected"]);
handleError(args, callbackObject, callbackMethod);
flush(true);
return(undefined);
}
_sendChannel._queue.push({methodName:methodName, args:args, callbackID:_rcvChannel._nextcallbackID});
}
_rcvChannel._callbacks[_rcvChannel._nextcallbackID] = {callbackObject:callbackObject, callbackMethod:callbackMethod};
_rcvChannel._nextcallbackID++;
}
static var _gatewayURL = "http://www.mochiads.com/static/lib/services/services.swf";
static var _listenChannelName = "__mochiservices";
static var _connecting = false;
static var _connected = false;
}
Symbol 3210 MovieClip [__Packages.MochiAd] Frame 0
class MochiAd
{
function MochiAd () {
}
static function getVersion() {
return("2.4");
}
static function showPreGameAd(options) {
var DEFAULTS = {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, DEFAULTS);
if ("5cc6f7dfb67f2f08341c831480f7c2a7".length == 0) {
options.ad_started();
options.ad_finished();
return(undefined);
}
var clip = options.clip;
var ad_msec = 11000;
var ad_timeout = 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 wh = _getRes(options);
var w = wh[0];
var h = wh[1];
mc._x = w * 0.5;
mc._y = h * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = w * -0.5;
chk._y = h * -0.5;
var bar = chk.createEmptyMovieClip("_mochiad_bar", 4);
if (options.no_progress_bar) {
bar._visible = false;
delete options.no_progress_bar;
} else {
bar._x = 10;
bar._y = h - 20;
}
var bar_color = options.color;
delete options.color;
var bar_background = options.background;
delete options.background;
var bar_outline = options.outline;
delete options.outline;
var backing = bar.createEmptyMovieClip("_outline", 1);
backing.beginFill(bar_background);
backing.moveTo(0, 0);
backing.lineTo(w - 20, 0);
backing.lineTo(w - 20, 10);
backing.lineTo(0, 10);
backing.lineTo(0, 0);
backing.endFill();
var inside = bar.createEmptyMovieClip("_inside", 2);
inside.beginFill(bar_color);
inside.moveTo(0, 0);
inside.lineTo(w - 20, 0);
inside.lineTo(w - 20, 10);
inside.lineTo(0, 10);
inside.lineTo(0, 0);
inside.endFill();
inside._xscale = 0;
var outline = bar.createEmptyMovieClip("_outline", 3);
outline.lineStyle(0, bar_outline, 100);
outline.moveTo(0, 0);
outline.lineTo(w - 20, 0);
outline.lineTo(w - 20, 10);
outline.lineTo(0, 10);
outline.lineTo(0, 0);
chk.ad_msec = ad_msec;
chk.ad_timeout = ad_timeout;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var p = (100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time)));
if (p > 0) {
this._parent._alpha = p;
} else {
var _clip = this._parent._parent;
MochiAd.unload(_clip);
delete this.onEnterFrame;
}
};
mc.lc.regContLC = function (lc_name) {
mc._containerLCName = lc_name;
};
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 _chk = this.mc._mochiad_wait;
_chk.server_control = true;
_chk.started = getTimer();
_chk.ad_msec = msec;
};
mc.lc.rpc = function (callbackID, arg) {
MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
chk.onEnterFrame = function () {
var _clip = this._parent._parent;
var ad_clip = this._parent._mochiad_ctr;
var elapsed = (getTimer() - this.started);
var finished = false;
var clip_total = _clip.getBytesTotal();
var clip_loaded = _clip.getBytesLoaded();
var clip_pcnt = ((100 * clip_loaded) / clip_total);
var ad_pcnt = ((100 * elapsed) / chk.ad_msec);
var _inside = this._mochiad_bar._inside;
var pcnt = Math.min(100, Math.min(clip_pcnt || 0, ad_pcnt));
pcnt = Math.max(this.last_pcnt, pcnt);
this.last_pcnt = pcnt;
_inside._xscale = pcnt;
options.ad_progress(pcnt);
if (sendHostProgress) {
clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"hostLoadPcnt", pcnt:clip_pcnt});
if (clip_pcnt == 100) {
sendHostProgress = false;
}
}
if (!chk.showing) {
var total = ad_clip.getBytesTotal();
if ((total > 0) || (typeof(total) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if ((elapsed > chk.ad_timeout) && (clip_pcnt == 100)) {
options.ad_failed();
finished = true;
}
}
if (elapsed > chk.ad_msec) {
finished = true;
}
if (((clip_total > 0) && (clip_loaded >= clip_total)) && (finished)) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
}
}
};
}
static function showClickAwayAd(options) {
var DEFAULTS = {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, DEFAULTS);
var clip = options.clip;
var ad_timeout = options.ad_timeout;
delete options.ad_timeout;
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 wh = _getRes(options);
var w = wh[0];
var h = wh[1];
mc._x = w * 0.5;
mc._y = h * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_timeout = ad_timeout;
chk.started = getTimer();
chk.showing = false;
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.rpc = function (callbackID, arg) {
MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
var sendHostProgress = false;
mc.lc.regContLC = function (lc_name) {
mc._containerLCName = lc_name;
};
chk.onEnterFrame = function () {
var ad_clip = this._parent._mochiad_ctr;
var elapsed = (getTimer() - this.started);
var finished = false;
if (!chk.showing) {
var total = ad_clip.getBytesTotal();
if ((total > 0) || (typeof(total) == "undefined")) {
finished = true;
chk.showing = true;
chk.started = getTimer();
} else if (elapsed > chk.ad_timeout) {
options.ad_failed();
finished = true;
}
}
if (finished) {
delete this.onEnterFrame;
}
};
}
static function showInterLevelAd(options) {
var DEFAULTS = {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, DEFAULTS);
var clip = options.clip;
var ad_msec = 11000;
var ad_timeout = 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 wh = _getRes(options);
var w = wh[0];
var h = wh[1];
mc._x = w * 0.5;
mc._y = h * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = ad_msec;
chk.ad_timeout = ad_timeout;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var p = (100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time)));
if (p > 0) {
this._parent._alpha = p;
} else {
var _clip = this._parent._parent;
MochiAd.unload(_clip);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var _chk = this.mc._mochiad_wait;
_chk.server_control = true;
_chk.started = getTimer();
_chk.ad_msec = msec - 250;
};
mc.lc.rpc = function (callbackID, arg) {
MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
chk.onEnterFrame = function () {
var ad_clip = this._parent._mochiad_ctr;
var elapsed = (getTimer() - this.started);
var finished = false;
if (!chk.showing) {
var total = ad_clip.getBytesTotal();
if ((total > 0) || (typeof(total) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (elapsed > chk.ad_timeout) {
options.ad_failed();
finished = true;
}
}
if (elapsed > chk.ad_msec) {
finished = true;
}
if (finished) {
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 hostname = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(hostname);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(hostname);
}
}
return(hostname);
}
static function load(options) {
var DEFAULTS = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = _parseOptions(options, DEFAULTS);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var clip = options.clip;
if (!_isNetworkAvailable()) {
return(null);
}
if (clip._mochiad_loaded) {
return(null);
}
var depth = options.depth;
delete options.depth;
var mc = clip.createEmptyMovieClip("_mochiad", depth);
var wh = _getRes(options);
options.res = (wh[0] + "x") + wh[1];
options.server = options.server + options.id;
delete options.id;
clip._mochiad_loaded = true;
var lv = mc.createEmptyMovieClip("_mochiad_ctr", 1);
for (var k in options) {
lv[k] = options[k];
}
var server = lv.server;
delete lv.server;
var hostname = _allowDomains(server);
mc.onEnterFrame = function () {
if (this._mochiad_ctr._url != this._url) {
this.onEnterFrame = function () {
if (!this._mochiad_ctr) {
delete this.onEnterFrame;
MochiAd.unload(this._parent);
}
};
}
};
var lc = new LocalConnection();
var name = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
lc.mc = mc;
lc.name = name;
lc.hostname = hostname;
lc.allowDomain = function (d) {
return(true);
};
lc.allowInsecureDomain = lc.allowDomain;
lc.connect(name);
mc.lc = lc;
lv.lc = name;
lv.st = getTimer();
lv.loadMovie(server + ".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);
}
if (clip._mochiad._containerLCName != undefined) {
clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"unload"});
}
clip._mochiad.removeMovieClip();
delete clip._mochiad_loaded;
delete clip._mochiad;
return(true);
}
static function _isNetworkAvailable() {
if (System.security) {
var o = System.security;
if (o.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function _getRes(options) {
var b = options.clip.getBounds();
var w = 0;
var h = 0;
if (typeof(options.res) != "undefined") {
var xy = options.res.split("x");
w = parseFloat(xy[0]);
h = parseFloat(xy[1]);
} else {
w = b.xMax - b.xMin;
h = b.yMax - b.yMin;
}
if ((w == 0) || (h == 0)) {
w = Stage.width;
h = Stage.height;
}
return([w, h]);
}
static function _parseOptions(options, defaults) {
var optcopy = {};
for (var k in defaults) {
optcopy[k] = defaults[k];
}
if (options) {
for (var k in options) {
optcopy[k] = options[k];
}
}
if (_root.mochiad_options) {
var pairs = _root.mochiad_options.split("&");
var i = 0;
while (i < pairs.length) {
var kv = pairs[i].split("=");
optcopy[unescape(kv[0])] = unescape(kv[1]);
i++;
}
}
if (optcopy.id == "test") {
trace("[MochiAd] WARNING: Using the MochiAds test identifier, make sure to use the code from your dashboard, not this example!");
}
return(optcopy);
}
static function rpc(clip, callbackID, arg) {
switch (arg.id) {
case "setValue" :
setValue(clip, arg.objectName, arg.value);
return;
case "getValue" :
var val = getValue(clip, arg.objectName);
clip._mochiad.lc.send(clip._mochiad._containerLCName, "rpcResult", callbackID, val);
return;
case "runMethod" :
var ret = runMethod(clip, arg.method, arg.args);
clip._mochiad.lc.send(clip._mochiad._containerLCName, "rpcResult", callbackID, ret);
return;
default :
trace("[mochiads rpc] unknown rpc id: " + arg.id);
}
}
static function setValue(base, objectName, value) {
var nameArray = objectName.split(".");
var i;
i = 0;
while (i < (nameArray.length - 1)) {
if ((base[nameArray[i]] == undefined) || (base[nameArray[i]] == null)) {
return(undefined);
}
base = base[nameArray[i]];
i++;
}
base[nameArray[i]] = value;
}
static function getValue(base, objectName) {
var nameArray = objectName.split(".");
var i;
i = 0;
while (i < (nameArray.length - 1)) {
if ((base[nameArray[i]] == undefined) || (base[nameArray[i]] == null)) {
return(undefined);
}
base = base[nameArray[i]];
i++;
}
return(base[nameArray[i]]);
}
static function runMethod(base, methodName, argsArray) {
var nameArray = methodName.split(".");
var i;
i = 0;
while (i < (nameArray.length - 1)) {
if ((base[nameArray[i]] == undefined) || (base[nameArray[i]] == null)) {
return(undefined);
}
base = base[nameArray[i]];
i++;
}
if (typeof(base[nameArray[i]]) == "function") {
return(base[nameArray[i]].apply(base, argsArray));
}
return(undefined);
}
}
Symbol 3211 MovieClip [__Packages.mochi.MochiScores] Frame 0
class mochi.MochiScores
{
static var boardID, onClose, onError;
function MochiScores () {
}
static function setBoardID(boardID) {
mochi.MochiScores.boardID = boardID;
mochi.MochiServices.send("scores_setBoardID", {boardID:boardID});
}
static function showLeaderboard(options) {
if (options.clip != null) {
if (options.clip != mochi.MochiServices.__get__clip()) {
mochi.MochiServices.disconnect();
mochi.MochiServices.connect(mochi.MochiServices.__get__id(), options.clip);
}
delete options.clip;
}
if (options.name != null) {
if (typeof(options.name) == "object") {
if (options.name.text != undefined) {
options.name = options.name.text;
}
}
}
if (options.score != null) {
if (typeof(options.score) == "object") {
if (options.score.text != undefined) {
options.score = options.score.text;
}
}
}
if (options.onDisplay != null) {
options.onDisplay();
} else {
mochi.MochiServices.__get__clip().stop();
}
if (options.onClose != null) {
onClose = options.onClose;
} else {
onClose = function () {
mochi.MochiServices.__get__clip().play();
};
}
if (options.onError != null) {
onError = options.onError;
} else {
onError = onClose;
}
if (options.boardID == null) {
if (boardID != null) {
options.boardID = boardID;
}
}
mochi.MochiServices.send("scores_showLeaderboard", {options:options}, null, doClose);
}
static function closeLeaderboard() {
mochi.MochiServices.send("scores_closeLeaderboard");
}
static function getPlayerInfo(callbackObj, callbackMethod) {
mochi.MochiServices.send("scores_getPlayerInfo", null, callbackObj, callbackMethod);
}
static function submit(score, name, callbackObj, callbackMethod) {
mochi.MochiServices.send("scores_submit", {score:score, name:name}, callbackObj, callbackMethod);
}
static function requestList(callbackObj, callbackMethod) {
mochi.MochiServices.send("scores_requestList", null, callbackObj, callbackMethod);
}
static function scoresArrayToObjects(scores) {
var so = {};
var i;
var j;
var o;
var row_obj;
for (var item in scores) {
if (typeof(scores[item]) == "object") {
if ((scores[item].cols != null) && (scores[item].rows != null)) {
so[item] = [];
o = scores[item];
j = 0;
while (j < o.rows.length) {
row_obj = {};
i = 0;
while (i < o.cols.length) {
row_obj[o.cols[i]] = o.rows[j][i];
i++;
}
so[item].push(row_obj);
j++;
}
} else {
so[item] = {};
for (var param in scores[item]) {
so[item][param] = scores[item][param];
}
}
} else {
so[item] = scores[item];
}
}
return(so);
}
static function doClose(args) {
if (args.error == true) {
if (args.errorCode == undefined) {
args.errorCode = "IOError";
}
onError.apply(null, [args.errorCode]);
} else {
onClose.apply();
}
}
}
Symbol 1127 MovieClip Frame 1
_visible = false;
var wall = {ts:this, x:_x, y:_y, wid:_width, hei:_height, xMax:_x + (_width / 2), xMin:_x - (_width / 2), yMax:_y + (_height / 2), yMin:_y - (_height / 2)};
a = (_rotation * Math.PI) / 180;
var p = {x:c1._x, y:c1._y};
this.localToGlobal(p);
wall.x1 = p.x;
wall.y1 = p.y;
var p = {x:c2._x, y:c2._y};
this.localToGlobal(p);
wall.x2 = p.x;
wall.y2 = p.y;
if (wall.x1 > wall.x2) {
var tmp = wall.x1;
wall.x1 = wall.x2;
wall.x2 = tmp;
tmp = wall.y1;
wall.y1 = wall.y2;
wall.y2 = tmp;
}
if (_root.walls == undefined) {
_root.walls = new Array();
}
_root.walls.push(wall);
Symbol 1130 MovieClip Frame 1
up = true;
te = 30;
Symbol 1138 MovieClip Frame 1
moveto = function (p) {
strtx = _x;
strty = _y;
endx = points[p].x;
endy = points[p].y;
cx = strtx;
ax = (((2 * (cx - endx)) / te) / te) / te;
bx = ((-3 * ax) * te) / 2;
cy = strty;
ay = (((2 * (cy - endy)) / te) / te) / te;
by = ((-3 * ay) * te) / 2;
t = 0;
onEnterFrame = function () {
t++;
_x = (((((this.ax * t) * t) * t) + ((this.bx * t) * t)) + this.cx);
_y = (((((this.ay * t) * t) * t) + ((this.by * t) * t)) + this.cy);
if (t >= this.te) {
_x = endx;
_y = endy;
delete this.onEnterFrame;
}
};
cp = p;
};
Symbol 1140 MovieClip Frame 1
pre = true;
gone = function () {
onEnterFrame = function () {
_alpha = (_alpha - 10);
if (_alpha <= 0) {
_alpha = 100;
_visible = false;
delete onEnterFrame;
}
};
};
down = function () {
pre = false;
onEnterFrame = function () {
_y = (_y + 4);
if (_y >= 30.45) {
_y = 30.45;
pre = true;
delete onEnterFrame;
}
};
};
Symbol 1142 MovieClip Frame 1
pre = true;
gone = function () {
onEnterFrame = function () {
_alpha = (_alpha - 10);
if (_alpha <= 0) {
_alpha = 100;
_visible = false;
delete onEnterFrame;
}
};
};
down = function () {
pre = false;
onEnterFrame = function () {
_y = (_y + 4);
if (_y >= 30.45) {
_y = 30.45;
pre = true;
delete onEnterFrame;
}
};
};
Symbol 1144 MovieClip Frame 1
pre = true;
gone = function () {
onEnterFrame = function () {
_alpha = (_alpha - 10);
if (_alpha <= 0) {
_alpha = 100;
_visible = false;
delete onEnterFrame;
}
};
};
down = function () {
pre = false;
onEnterFrame = function () {
_y = (_y + 4);
if (_y >= 30.45) {
_y = 30.45;
pre = true;
delete onEnterFrame;
}
};
};
Symbol 1146 MovieClip Frame 1
pre = true;
gone = function () {
onEnterFrame = function () {
_alpha = (_alpha - 10);
if (_alpha <= 0) {
_alpha = 100;
_visible = false;
delete onEnterFrame;
}
};
};
down = function () {
pre = false;
onEnterFrame = function () {
_y = (_y + 4);
if (_y >= 30.45) {
_y = 30.45;
pre = true;
delete onEnterFrame;
}
};
};
Symbol 1149 MovieClip Frame 1
if (_root.palpa1.iarmor == undefined) {
_parent.iarmor = 34;
} else {
_parent.iarmor = _root.palpa1.iarmor;
}
body1.gotoAndStop(1);
body2.onEnterFrame = function () {
if (_root.palpa1.iarmor2 == undefined) {
_parent.iarmor = 34;
} else {
_parent.iarmor = _root.palpa1.iarmor2;
}
this.gotoAndStop(1);
delete this.onEnterFrame;
};
weapon.gotoAndStop(_root.palpa1.wep);
bow.gotoAndStop(_root.palpa1.bown);
body1.cacheAsBitmap = true;
body2.cacheAsBitmap = true;
weapon.cacheAsBitmap = true;
bow.cacheAsBitmap = true;
w1.cacheAsBitmap = true;
w2.cacheAsBitmap = true;
w3.cacheAsBitmap = true;
w4.cacheAsBitmap = true;
w5.cacheAsBitmap = true;
w6.cacheAsBitmap = true;
palpa1.cacheAsBitmap = true;
p2.cacheAsBitmap = true;
p3.cacheAsBitmap = true;
p4.cacheAsBitmap = true;
p5.cacheAsBitmap = true;
p6.cacheAsBitmap = true;
p7.cacheAsBitmap = true;
p8.cacheAsBitmap = true;
slide1.cacheAsBitmap = true;
slide2.cacheAsBitmap = true;
slide3.cacheAsBitmap = true;
cac.cacheAsBitmap = true;
Instance of Symbol 1138 MovieClip "slide1" in Symbol 1149 MovieClip Frame 1
onClipEvent (load) {
if (_root.palpa1.iarmor == undefined) {
cp = 1;
_x = 174.45;
_y = -146.25;
} else {
cp = 0;
}
te = 15;
var points = new Array(2);
points[0] = new Object();
points[0].x = 75.5;
points[0].y = -146.25;
points[1] = new Object();
points[1].x = 174.45;
points[1].y = -146.25;
}
Instance of Symbol 1138 MovieClip "slide2" in Symbol 1149 MovieClip Frame 1
onClipEvent (load) {
cp = 0;
te = 8;
var points = new Array(2);
points[0] = new Object();
points[0].x = -43.2;
points[0].y = -148.75;
points[1] = new Object();
points[1].x = -4.95;
points[1].y = -148.75;
points[2] = new Object();
points[2].x = 32.9;
points[2].y = -148.75;
points[3] = new Object();
points[3].x = -43.2;
points[3].y = -110.65;
points[4] = new Object();
points[4].x = -4.95;
points[4].y = -110.65;
points[5] = new Object();
points[5].x = 32.9;
points[5].y = -110.65;
}
Instance of Symbol 1138 MovieClip "slide3" in Symbol 1149 MovieClip Frame 1
onClipEvent (load) {
te = 15;
var points = new Array(2);
points[0] = new Object();
points[0].x = -229;
points[0].y = -148.75;
points[1] = new Object();
points[1].x = -134.8;
points[1].y = -148.75;
}
Symbol 1160 MovieClip Frame 1
_visible = false;
todo = function (num) {
trw.gotoAndStop(num);
_visible = true;
_alpha = 0;
onEnterFrame = function () {
_alpha = (_alpha + 10);
if (_alpha >= 100) {
_alpha = 100;
onEnterFrame = function () {
_alpha = (_alpha - 10);
if (_alpha <= 0) {
_alpha = 100;
_visible = false;
delete onEnterFrame;
}
};
}
};
};
Symbol 1168 MovieClip Frame 1
cac.cacheAsBitmap = true;
hp.cacheAsBitmap = true;
Symbol 1190 MovieClip Frame 1
cac.cacheAsBitmap = true;
_visible = false;
up = true;
doto = function () {
if (up) {
if (_root.freeze) {
_root.pausegame();
}
_visible = true;
if (_alpha == 100) {
_alpha = 0;
}
up = false;
onEnterFrame = function () {
_alpha = (_alpha + 5);
if (_alpha >= 100) {
_alpha = 100;
delete onEnterFrame;
}
};
} else {
onEnterFrame = function () {
_alpha = (_alpha - 5);
if (_alpha <= 0) {
up = true;
_alpha = 100;
_visible = false;
if (_root.hud.options.up) {
_root.pausegame();
}
delete onEnterFrame;
}
};
}
};
Symbol 1192 MovieClip Frame 1
_visible = false;
todo = function () {
_root.h.pchance = 1.5;
_visible = true;
_alpha = 30;
t = 300;
up = true;
onEnterFrame = function () {
if (_root.freeze) {
t--;
if (up) {
_alpha = (_alpha + 3);
} else {
_alpha = (_alpha - 3);
}
if (_alpha >= 100) {
_alpha = 100;
up = false;
} else if (_alpha <= 50) {
up = true;
}
if (t <= 0) {
onEnterFrame = function () {
_alpha = (_alpha - 10);
if (_alpha <= 0) {
_alpha = 100;
_visible = false;
delete onEnterFrame;
_root.h.pchance = 1;
}
};
}
}
if (m.hitTest(_root._xmouse, _root._ymouse)) {
text._visible = true;
text.text = ("Armor Increase, " + (Math.ceil(t / 3) / 10)) + "s";
} else {
text._visible = false;
}
};
};
Symbol 1194 MovieClip Frame 1
_visible = false;
todo = function () {
_root.h.pchance = 1.5;
_visible = true;
_alpha = 30;
t = 300;
up = true;
onEnterFrame = function () {
if (_root.freeze) {
t--;
if (up) {
_alpha = (_alpha + 3);
} else {
_alpha = (_alpha - 3);
}
if (_alpha >= 100) {
_alpha = 100;
up = false;
} else if (_alpha <= 50) {
up = true;
}
if (t <= 0) {
onEnterFrame = function () {
_alpha = (_alpha - 10);
if (_alpha <= 0) {
_alpha = 100;
_visible = false;
delete onEnterFrame;
_root.h.pchance = 1;
}
};
}
}
if (m.hitTest(_root._xmouse, _root._ymouse)) {
text._visible = true;
text.text = ("Attack Rating Increase, " + (Math.ceil(t / 3) / 10)) + "s";
} else {
text._visible = false;
}
};
};
Symbol 1196 MovieClip Frame 1
_visible = false;
todo = function () {
_root.h.pdam = 1.5;
_visible = true;
_alpha = 30;
t = 300;
up = true;
onEnterFrame = function () {
if (_root.freeze) {
t--;
if (up) {
_alpha = (_alpha + 3);
} else {
_alpha = (_alpha - 3);
}
if (_alpha >= 100) {
_alpha = 100;
up = false;
} else if (_alpha <= 50) {
up = true;
}
if (t <= 0) {
onEnterFrame = function () {
_alpha = (_alpha - 10);
if (_alpha <= 0) {
_alpha = 100;
_visible = false;
delete onEnterFrame;
_root.h.pdam = 1;
}
};
}
}
if (m.hitTest(_root._xmouse, _root._ymouse)) {
text._visible = true;
text.text = ("Damage Increase, " + (Math.ceil(t / 3) / 10)) + "s";
} else {
text._visible = false;
}
};
};
Symbol 1226 MovieClip Frame 1
_visible = false;
Symbol 1231 MovieClip Frame 1
xmin = c1._x;
xmax = c2._x;
_parent.ear1.ear._x = _parent.ear1.xmin + ((_root.soundvol * (_parent.ear1.xmax - _parent.ear1.xmin)) / 100);
_parent.ear2.ear._x = _parent.ear2.xmin + ((_root.musicvol * (_parent.ear2.xmax - _parent.ear2.xmin)) / 100);
Symbol 1232 MovieClip Frame 1
cac.cacheAsBitmap = true;
_visible = false;
up = true;
doto = function () {
_root.msound("wind");
if (up) {
if (_root.freeze) {
_root.pausegame();
}
_visible = true;
if (_alpha == 100) {
_alpha = 0;
}
up = false;
onEnterFrame = function () {
_alpha = (_alpha + 5);
if (_alpha >= 100) {
_alpha = 100;
delete onEnterFrame;
}
};
} else {
_root.savefile.data.musicvol = _root.musicvol;
_root.savefile.data.soundvol = _root.soundvol;
onEnterFrame = function () {
_alpha = (_alpha - 5);
if (_alpha <= 0) {
up = true;
_alpha = 100;
_visible = false;
if (_root.hud.stats.up) {
_root.pausegame();
}
delete onEnterFrame;
}
};
}
};
Symbol 1235 MovieClip Frame 1
if (_root.maxc == undefined) {
_root.checks = new Array();
_root.maxc = 0;
}
_root.checks[_root.maxc] = new Object();
_root.checks[_root.maxc].x = _x;
_root.checks[_root.maxc].y = _y;
_root.checks[_root.maxc].ca = ca;
_root.checks[_root.maxc].cb = cb;
_root.checks[_root.maxc].lft = left;
_root.maxc++;
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
Symbol 1502 MovieClip Frame 1
stop();
Symbol 1517 MovieClip Frame 1
stop();
Symbol 1534 MovieClip Frame 1
stop();
Symbol 1549 MovieClip Frame 1
stop();
Symbol 1608 MovieClip Frame 1
stop();
Symbol 1608 MovieClip Frame 2
arm = armor._currentframe;
cheap.gotoAndStop(arm);
chance.text = (100 * _root.armor[arm - 2].chance) + "%";
range.text = 10 * _root.armor[arm - 2].bowa;
melee.text = 10 * _root.armor[arm - 2].wepa;
cost = _root.armor[arm - 2].price;
if (sell) {
cost = cost * 0.8;
}
price.text = cost + "$";
speed.text = _root.walktotalk(_root.armor[arm - 2].walk);
size.text = (_root.sizes[arm].X + "x") + _root.sizes[arm].Y;
armorname.text = _root.armorname[arm - 2];
Symbol 1608 MovieClip Frame 3
arm = weapon.weapon._currentframe;
damage.text = _root.weapons[arm - 2].damage;
chance.text = (_root.weapons[arm - 2].chance * 100) + "%";
cost = _root.weapons[arm - 2].price;
if (sell) {
cost = cost * 0.8;
}
price.text = cost + "$";
size.text = (_root.sizes[arm + 29].X + "x") + _root.sizes[arm + 29].Y;
Symbol 1608 MovieClip Frame 4
ibow = bow.bow._currentframe;
damage.text = _root.bows[ibow - 2].damage;
chance.text = (_root.bows[ibow - 2].chance * 100) + "%";
cost = _root.bows[ibow - 2].price;
if (sell) {
cost = cost * 0.8;
}
price.text = cost + "$";
size.text = (_root.sizes[ibow + 46].X + "x") + _root.sizes[ibow + 46].Y;
Symbol 1608 MovieClip Frame 5
trw = _root.dtd(trow.trow._currentframe - 2);
damage.text = _root.throws[trw].damage;
chance.text = (_root.throws[trw].chance * 100) + "%";
cost = _root.throws[trw].price;
if (sell) {
cost = cost * 0.8;
}
price.text = cost + "$";
size.text = (_root.sizes[trow.trow._currentframe + 52].X + "x") + _root.sizes[trow.trow._currentframe + 52].Y;
Symbol 1608 MovieClip Frame 6
p = _root.pal1.pal.pal;
iarm = p.itarm._currentframe;
iarm2 = p.itarm2._currentframe;
iwep = p.itwep._currentframe - 31;
ibow = p.itbow._currentframe - 48;
if (iarm == undefined) {
speed.text = "";
marmor.text = "";
rarmor.text = "";
blchance.text = "";
} else {
speed.text = _root.walktotalk(_root.armor[iarm - 2].walk);
marmor.text = 10 * _root.armor[iarm - 2].wepa;
rarmor.text = 10 * _root.armor[iarm - 2].bowa;
blchance.text = (100 * _root.armor[iarm - 2].chance) + "%";
}
if (iarm2 == undefined) {
speed2.text = "";
marmor2.text = "";
rarmor2.text = "";
blchance2.text = "";
} else {
speed2.text = _root.walktotalk(_root.armor[iarm2 - 2].walk);
marmor2.text = 10 * _root.armor[iarm2 - 2].wepa;
rarmor2.text = 10 * _root.armor[iarm2 - 2].bowa;
blchance2.text = (100 * _root.armor[iarm2 - 2].chance) + "%";
}
if (p.both) {
mdamage.text = _root.weapons[iwep - 2].damage;
mchance.text = (_root.weapons[iwep - 2].chance * 100) + "%";
bdamage.text = _root.bows[ibow - 2].damage;
bchance.text = (_root.bows[ibow - 2].chance * 100) + "%";
} else if (isNaN(iwep) && (isNaN(ibow))) {
mdamage.text = "";
mchance.text = "";
bdamage.text = "";
bchance.text = "";
} else if (p.bow) {
mdamage.text = "";
mchance.text = "";
bdamage.text = _root.bows[ibow - 2].damage;
bchance.text = (_root.bows[ibow - 2].chance * 100) + "%";
} else {
mdamage.text = _root.weapons[iwep - 2].damage;
mchance.text = (_root.weapons[iwep - 2].chance * 100) + "%";
bdamage.text = "";
bchance.text = "";
}
Symbol 1608 MovieClip Frame 7
p = _root.pal2.pal.pal;
iarm = p.itarm._currentframe;
iwep = p.itwep._currentframe - 31;
ibow = p.itbow._currentframe - 48;
if (iarm == undefined) {
speed.text = "";
marmor.text = "";
rarmor.text = "";
blchance.text = "";
} else {
speed.text = _root.walktotalk(_root.armor[iarm - 2].walk);
marmor.text = 10 * _root.armor[iarm - 2].wepa;
rarmor.text = 10 * _root.armor[iarm - 2].bowa;
blchance.text = (100 * _root.armor[iarm - 2].chance) + "%";
}
if (p.both) {
mdamage.text = _root.weapons[iwep - 2].damage;
mchance.text = (_root.weapons[iwep - 2].chance * 100) + "%";
bdamage.text = _root.bows[ibow - 2].damage;
bchance.text = (_root.bows[ibow - 2].chance * 100) + "%";
} else if (isNaN(iwep) && (isNaN(ibow))) {
mdamage.text = "";
mchance.text = "";
bdamage.text = "";
bchance.text = "";
} else if (p.bow) {
mdamage.text = "";
mchance.text = "";
bdamage.text = _root.bows[ibow - 2].damage;
bchance.text = (_root.bows[ibow - 2].chance * 100) + "%";
} else {
mdamage.text = _root.weapons[iwep - 2].damage;
mchance.text = (_root.weapons[iwep - 2].chance * 100) + "%";
bdamage.text = "";
bchance.text = "";
}
Symbol 1608 MovieClip Frame 8
p = _root.pal3.pal.pal;
iarm = p.itarm._currentframe;
iwep = p.itwep._currentframe - 31;
ibow = p.itbow._currentframe - 48;
if (iarm == undefined) {
speed.text = "";
marmor.text = "";
rarmor.text = "";
blchance.text = "";
} else {
speed.text = _root.walktotalk(_root.armor[iarm - 2].walk);
marmor.text = 10 * _root.armor[iarm - 2].wepa;
rarmor.text = 10 * _root.armor[iarm - 2].bowa;
blchance.text = (100 * _root.armor[iarm - 2].chance) + "%";
}
if (p.both) {
mdamage.text = _root.weapons[iwep - 2].damage;
mchance.text = (_root.weapons[iwep - 2].chance * 100) + "%";
bdamage.text = _root.bows[ibow - 2].damage;
bchance.text = (_root.bows[ibow - 2].chance * 100) + "%";
} else if (isNaN(iwep) && (isNaN(ibow))) {
mdamage.text = "";
mchance.text = "";
bdamage.text = "";
bchance.text = "";
} else if (p.bow) {
mdamage.text = "";
mchance.text = "";
bdamage.text = _root.bows[ibow - 2].damage;
bchance.text = (_root.bows[ibow - 2].chance * 100) + "%";
} else {
mdamage.text = _root.weapons[iwep - 2].damage;
mchance.text = (_root.weapons[iwep - 2].chance * 100) + "%";
bdamage.text = "";
bchance.text = "";
}
Symbol 1614 MovieClip Frame 1
stop();
Symbol 1625 Button
on (release) {
if ((!newwar._visible) && (!trwbuy._visible)) {
_root.onEnterFrame = function () {
_root._alpha = _root._alpha - 10;
if (_root._alpha <= 0) {
_root._alpha = 0;
delete _root.onEnterFrame;
menuon = "main";
trwbuy.removeMovieClip();
notenoughmoney.removeMovieClip();
inventoryisfull.removeMovieClip();
saveitems();
i = 1;
while (i <= C) {
j = 1;
while (j <= R) {
if (inv[(("b" + j) + "b") + i].taken) {
inv[(("b" + j) + "b") + i].it.removeMovieClip();
}
j++;
}
i++;
}
mouse.removeMovieClip();
_root.gotoAndStop(21);
}
};
}
}
on (rollOver) {
_root.msound("wuwm");
}
on (press) {
if ((!newwar._visible) && (!trwbuy._visible)) {
_root.msound("clickd");
}
}
Symbol 1630 Button
on (release) {
if ((!newwar._visible) && (!trwbuy._visible)) {
trwbuy.removeMovieClip();
notenoughmoney.removeMovieClip();
inventoryisfull.removeMovieClip();
saveitems();
onEnterFrame = function () {
mouse._x = _xmouse;
mouse._y = _ymouse;
_alpha = (_alpha - 10);
if (_alpha <= 0) {
palpa1 = new Object();
palpa2 = new Object();
palpa3 = new Object();
palpa1.iarmor = pal1.pal.pal.itarm._currentframe;
palpa1.iarmor2 = pal1.pal.pal.itarm2._currentframe;
palpa1.wep = pal1.pal.pal.itwep._currentframe - 31;
palpa1.bown = pal1.pal.pal.itbow._currentframe - 48;
palpa2.iarmor = pal2.pal.pal.itarm._currentframe;
palpa2.wep = pal2.pal.pal.itwep._currentframe - 31;
palpa2.bown = pal2.pal.pal.itbow._currentframe - 48;
palpa3.iarmor = pal3.pal.pal.itarm._currentframe;
palpa3.wep = pal3.pal.pal.itwep._currentframe - 31;
palpa3.bown = pal3.pal.pal.itbow._currentframe - 48;
aquid();
w1 = (w2 = (w3 = (w4 = (w5 = (w6 = 3)))));
w1n = (w2n = (w3n = (w4n = (w5n = (w6n = 0)))));
kkk = 1;
i = 1;
while (i <= C) {
j = 1;
while (j <= R) {
if (inv[(("b" + j) + "b") + i].taken) {
if (inv[(("b" + j) + "b") + i].it._currentframe >= 56) {
_root["w" + kkk] = inv[(("b" + j) + "b") + i].it._currentframe - 55;
if (_root["w" + kkk] >= 3) {
_root["w" + kkk]++;
}
_root[("w" + kkk) + "n"] = inv[(("b" + j) + "b") + i].it.num.text;
kkk++;
}
}
j++;
}
i++;
}
i = 1;
while (i <= C) {
j = 1;
while (j <= R) {
if (inv[(("b" + j) + "b") + i].taken) {
inv[(("b" + j) + "b") + i].it.removeMovieClip();
}
j++;
}
i++;
}
_alpha = 0;
gotoAndStop (9);
}
};
}
}
on (rollOver) {
_root.msound("wuwm");
}
on (press) {
if ((!newwar._visible) && (!trwbuy._visible)) {
_root.msound("clickd");
}
}
Symbol 1635 Button
on (release) {
_root.SHPBDYCI++;
_root.updatebody();
}
on (rollOver) {
_root.msound("wuwm");
}
on (press) {
_root.msound("clickd");
}
Symbol 1636 Button
on (release) {
_root.SHPWPCI++;
_root.updatewep();
}
on (rollOver) {
_root.msound("wuwm");
}
on (press) {
_root.msound("clickd");
}
Symbol 1637 Button
on (release) {
_root.SHPTRWCI++;
_root.updatetrw();
}
on (rollOver) {
_root.msound("wuwm");
}
on (press) {
_root.msound("clickd");
}
Symbol 1638 Button
on (release) {
_root.SHPBDYCI--;
_root.updatebody();
}
on (rollOver) {
_root.msound("wuwm");
}
on (press) {
_root.msound("clickd");
}
Symbol 1639 Button
on (release) {
_root.SHPWPCI--;
_root.updatewep();
}
on (rollOver) {
_root.msound("wuwm");
}
on (press) {
_root.msound("clickd");
}
Symbol 1640 Button
on (release) {
_root.SHPTRWCI--;
_root.updatetrw();
}
on (rollOver) {
_root.msound("wuwm");
}
on (press) {
_root.msound("clickd");
}
Symbol 1641 Button
on (release) {
_root.SHPBWCI++;
_root.updatebow();
}
on (rollOver) {
_root.msound("wuwm");
}
on (press) {
_root.msound("clickd");
}
Symbol 1642 Button
on (release) {
_root.SHPBWCI--;
_root.updatebow();
}
on (rollOver) {
_root.msound("wuwm");
}
on (press) {
_root.msound("clickd");
}
Symbol 1647 MovieClip Frame 1
_visible = false;
Symbol 1649 MovieClip Frame 1
stop();
Symbol 1654 MovieClip Frame 1
stop();
Symbol 1659 Button
on (release) {
p = _root.pal1.pal.pal;
if (p.itarm2 == null) {
p.iarmor = 33;
} else {
p.iarmor = p.itarm2._currentframe;
}
p.p1.body.gotoAndStop(1);
p.p1.legu1.gotoAndStop(1);
p.p1.legu2.gotoAndStop(1);
p.p1.legd1.gotoAndStop(1);
p.p1.legd2.gotoAndStop(1);
p.rh.hndd1.gotoAndStop(1);
p.lh.hndd2.gotoAndStop(1);
p.rh.shldr.gotoAndStop(1);
p.lh.shldr.gotoAndStop(1);
p.lh.shield.gotoAndStop(1);
_root.maina = false;
gotoAndStop (2);
}
on (rollOver) {
_root.msound("wuwm");
}
Symbol 1661 Button
on (release) {
p = _root.pal1.pal.pal;
if (p.itarm == null) {
p.iarmor = 33;
} else {
p.iarmor = p.itarm._currentframe;
}
p.p1.body.gotoAndStop(1);
p.p1.legu1.gotoAndStop(1);
p.p1.legu2.gotoAndStop(1);
p.p1.legd1.gotoAndStop(1);
p.p1.legd2.gotoAndStop(1);
p.rh.hndd1.gotoAndStop(1);
p.lh.hndd2.gotoAndStop(1);
p.rh.shldr.gotoAndStop(1);
p.lh.shldr.gotoAndStop(1);
p.lh.shield.gotoAndStop(1);
_root.maina = true;
gotoAndStop (1);
}
on (rollOver) {
_root.msound("wuwm");
}
Symbol 1662 MovieClip Frame 1
stop();
Symbol 1682 Button
on (release) {
_root.playlevel(1);
}
on (rollOver) {
_root.msound("wuwm");
}
Symbol 1690 Button
on (release) {
_root.playlevel(2);
}
on (rollOver) {
_root.msound("wuwm");
}
Symbol 1696 Button
on (release) {
_root.playlevel(3);
}
on (rollOver) {
_root.msound("wuwm");
}
Symbol 1702 Button
on (release) {
_root.playlevel(4);
}
on (rollOver) {
_root.msound("wuwm");
}
Symbol 1709 Button
on (release) {
_root.playlevel(5);
}
on (rollOver) {
_root.msound("wuwm");
}
Symbol 1715 Button
on (release) {
_root.playlevel(6);
}
on (rollOver) {
_root.msound("wuwm");
}
Symbol 1722 Button
on (release) {
_root.playlevel(7);
}
on (rollOver) {
_root.msound("wuwm");
}
Symbol 1729 Button
on (release) {
_root.playlevel(8);
}
on (rollOver) {
_root.msound("wuwm");
}
Symbol 1736 Button
on (release) {
_root.playlevel(9);
}
on (rollOver) {
_root.msound("wuwm");
}
Symbol 1740 Button
on (release) {
_root.playlevel(10);
}
on (rollOver) {
_root.msound("wuwm");
}
Symbol 1747 Button
on (release) {
_root.playlevel(11);
}
on (rollOver) {
_root.msound("wuwm");
}
Symbol 1750 Button
on (release) {
_root.playlevel(12);
}
on (rollOver) {
_root.msound("wuwm");
}
Symbol 1753 Button
on (release) {
_root.playlevel(13);
}
on (rollOver) {
_root.msound("wuwm");
}
Symbol 1757 Button
on (release) {
_root.playlevel(14);
}
on (rollOver) {
_root.msound("wuwm");
}
Symbol 1761 Button
on (release) {
_root.playlevel(15);
}
on (rollOver) {
_root.msound("wuwm");
}
Symbol 1765 Button
on (release) {
_root.playlevel(16);
}
on (rollOver) {
_root.msound("wuwm");
}
Symbol 1769 Button
on (release) {
_root.playlevel(17);
}
on (rollOver) {
_root.msound("wuwm");
}
Symbol 1772 Button
on (release) {
_root.playlevel(18);
}
on (rollOver) {
_root.msound("wuwm");
}
Symbol 1775 Button
on (release) {
_root.playlevel(19);
}
on (rollOver) {
_root.msound("wuwm");
}
Symbol 1778 Button
on (release) {
_root.playlevel(20);
}
on (rollOver) {
_root.msound("wuwm");
}
Symbol 1840 MovieClip Frame 1
_root.msound("glass");
Instance of Symbol 1738 MovieClip in Symbol 1843 MovieClip Frame 1
on (release) {
_root.playlevel(10);
}
Symbol 1843 MovieClip Frame 54
stop();
Symbol 1843 MovieClip Frame 107
stop();
Symbol 1843 MovieClip Frame 160
stop();
Symbol 1843 MovieClip Frame 213
stop();
Symbol 1843 MovieClip Frame 266
stop();
Symbol 1843 MovieClip Frame 319
stop();
Symbol 1843 MovieClip Frame 372
stop();
Symbol 1843 MovieClip Frame 425
stop();
Symbol 1843 MovieClip Frame 478
stop();
Symbol 1843 MovieClip Frame 531
stop();
Symbol 1843 MovieClip Frame 584
stop();
Symbol 1843 MovieClip Frame 637
stop();
Symbol 1843 MovieClip Frame 690
stop();
Symbol 1843 MovieClip Frame 743
stop();
Symbol 1843 MovieClip Frame 796
stop();
Symbol 1843 MovieClip Frame 849
stop();
Symbol 1843 MovieClip Frame 902
stop();
Symbol 1843 MovieClip Frame 955
stop();
Symbol 1843 MovieClip Frame 1008
stop();
Symbol 1843 MovieClip Frame 1061
stop();
Symbol 1844 MovieClip Frame 1
stop();
Symbol 1856 Button
on (release) {
onEnterFrame = function () {
mouse._x = _xmouse;
mouse._y = _ymouse;
_alpha = (_alpha - 10);
if (_alpha <= 0) {
_alpha = 0;
gotoAndStop (7);
}
};
}
on (rollOver) {
_root.msound("wuwm");
}
on (press) {
_root.msound("clickd");
}
Symbol 1857 Button
on (release) {
_root.onEnterFrame = function () {
_root._alpha = _root._alpha - 10;
if (_root._alpha <= 0) {
_root._alpha = 0;
delete _root.onEnterFrame;
menuon = "main";
mouse.removeMovieClip();
_root.gotoAndStop(21);
}
};
}
on (rollOver) {
_root.msound("wuwm");
}
on (press) {
_root.msound("clickd");
}
Symbol 1862 MovieClip Frame 1
stop();
Symbol 1862 MovieClip Frame 2
t.t.text = ("warrior" + num) + " has no armor or weapon";
Symbol 1907 Button
on (release) {
_root.wantclosef = true;
mochi.MochiScores.closeLeaderboard();
mochi.MochiScores.showLeaderboard({boardID:_root.boardid((map._currentframe % 10) + 1), onClose:_root.onclose, onDisplay:_root.ondisplay, onClose:_root.onclose, onError:_root.onerror, clip:_root.AAA});
map.gotoAndStop((map._currentframe % 10) + 1);
}
on (rollOver) {
_root.msound("wuwm");
}
on (press) {
_root.msound("clickd");
}
Symbol 1910 Button
on (release) {
if (_root.cehckow) {
_root.songfade();
mochi.MochiScores.closeLeaderboard();
delete _root.onMouseDown;
_root.onEnterFrame = function () {
_root._alpha = _root._alpha - 10;
if (_root._alpha <= 0) {
_root.mouse.removeMovieClip();
Mouse.show();
_root._alpha = 0;
delete _root.onEnterFrame;
if (map._currentframe <= 2) {
_root.gotoAndStop(map._currentframe + 2);
} else {
_root.gotoAndStop(map._currentframe + 8);
}
}
};
}
}
on (rollOver) {
_root.msound("wuwm");
}
on (press) {
_root.msound("clickd");
}
Symbol 1915 Button
on (release) {
_root.wantclosef = true;
mochi.MochiScores.closeLeaderboard();
mochi.MochiScores.showLeaderboard({boardID:_root.boardid(((map._currentframe + 8) % 10) + 1), onClose:_root.onclose, onDisplay:_root.ondisplay, onClose:_root.onclose, onError:_root.onerror, clip:_root.AAA});
map.gotoAndStop(((map._currentframe + 8) % 10) + 1);
}
on (rollOver) {
_root.msound("wuwm");
}
on (press) {
_root.msound("clickd");
}
Symbol 1917 Button
on (release) {
if (_root.cehckow) {
mochi.MochiScores.closeLeaderboard();
delete _root.onMouseDown;
_root.onEnterFrame = function () {
_root._alpha = _root._alpha - 10;
if (_root._alpha <= 0) {
_root._alpha = 0;
delete _root.onEnterFrame;
_root.gotoAndStop(21);
}
};
}
}
on (rollOver) {
_root.msound("wuwm");
}
on (press) {
_root.msound("clickd");
}
Symbol 1924 Button
on (release) {
getURL ("http://www.rustyarcade.com/permalinks/arcane/", "_blank");
}
Symbol 1927 Button
on (release) {
map.gotoAndStop((map._currentframe % 10) + 1);
}
on (rollOver) {
_root.msound("wuwm");
}
on (press) {
_root.msound("clickd");
}
Symbol 1928 Button
on (release) {
_root.songfade();
delete _root.onMouseDown;
if (mode._currentframe == 1) {
_root.playmode = 3;
} else if (mode._currentframe == 2) {
_root.playmode = 2;
} else {
_root.playmode = 4;
}
_root.onEnterFrame = function () {
_root._alpha = _root._alpha - 10;
if (_root._alpha <= 0) {
_root.mouse.removeMovieClip();
Mouse.show();
_root._alpha = 0;
delete _root.onEnterFrame;
if (map._currentframe <= 2) {
_root.gotoAndStop(map._currentframe + 2);
} else {
_root.gotoAndStop(map._currentframe + 8);
}
}
};
}
on (rollOver) {
_root.msound("wuwm");
}
on (press) {
_root.msound("clickd");
}
Symbol 1929 Button
on (release) {
map.gotoAndStop(((map._currentframe + 8) % 10) + 1);
}
on (rollOver) {
_root.msound("wuwm");
}
on (press) {
_root.msound("clickd");
}
Symbol 1930 Button
on (release) {
_root.switchmenu(_root.free);
}
on (rollOver) {
_root.msound("wuwm");
}
on (press) {
_root.msound("clickd");
}
Symbol 1934 Button
on (release) {
_root.switchmenu(_root.campaign);
}
on (rollOver) {
_root.msound("wuwm");
}
on (press) {
_root.msound("clickd");
}
Symbol 1937 Button
on (release) {
_root.switchmenu(_root.free);
}
on (rollOver) {
_root.msound("wuwm");
}
on (press) {
_root.msound("clickd");
}
Symbol 1940 Button
on (release) {
_root.switchmenu(_root.options);
}
on (rollOver) {
_root.msound("wuwm");
}
on (press) {
_root.msound("clickd");
}
Symbol 1943 Button
on (release) {
getURL ("http://www.rustyarcade.com/permalinks/arcane/walkthrough.php", "_blank");
}
on (rollOver) {
_root.msound("wuwm");
}
on (press) {
_root.msound("clickd");
}
Symbol 1946 Button
on (release) {
_root.switchmenu(_root.creditsm);
}
on (rollOver) {
_root.msound("wuwm");
}
on (press) {
_root.msound("clickd");
}
Symbol 1953 Button
on (release) {
_root.savefile.data.musicvol = _root.musicvol;
_root.savefile.data.soundvol = _root.soundvol;
_root.switchmenu(_root.main);
}
on (rollOver) {
_root.msound("wuwm");
}
on (press) {
_root.msound("clickd");
}
Symbol 1955 MovieClip Frame 1
cac.cacheAsBitmap = true;
_visible = false;
up = true;
doto = function () {
if (up) {
if (_root.freeze) {
_root.pausegame();
}
_visible = true;
if (_alpha == 100) {
_alpha = 0;
}
up = false;
onEnterFrame = function () {
_alpha = (_alpha + 5);
if (_alpha >= 100) {
_alpha = 100;
delete onEnterFrame;
}
};
} else {
onEnterFrame = function () {
_alpha = (_alpha - 5);
if (_alpha <= 0) {
up = true;
_alpha = 100;
_visible = false;
if (_root.hud.stats.up) {
_root.pausegame();
}
delete onEnterFrame;
}
};
}
};
Symbol 1960 Button
on (release) {
if (!_root.asklock) {
_root.levelsstate = 1;
if (!isNaN(_root.savefile.data.levelsstate)) {
warning._alpha = 0;
warning._visible = true;
_root.asklock = true;
_root.onEnterFrame = function () {
warning._alpha = warning._alpha + 10;
if (warning._alpha >= 100) {
warning._alpha = 100;
delete _root.onEnterFrame;
}
};
} else {
delete _root.onMouseDown;
_root.resetgame = true;
_root.lockfunc = true;
_root.onEnterFrame = function () {
_root._alpha = _root._alpha - 10;
if (_root._alpha <= 0) {
_root.wmovie = 100;
_root._alpha = 0;
delete _root.onEnterFrame;
_root.gotoAndStop(22);
}
};
}
}
}
on (rollOver) {
if (!_root.asklock) {
_root.msound("wuwm");
}
}
on (press) {
if (!_root.asklock) {
_root.msound("clickd");
}
}
Symbol 1961 Button
on (release) {
if (!_root.asklock) {
_root.switchmenu(_root.main);
}
}
on (rollOver) {
if (!_root.asklock) {
_root.msound("wuwm");
}
}
on (press) {
if (!_root.asklock) {
_root.msound("clickd");
}
}
Symbol 1967 Button
on (release) {
if (!_root.asklock) {
delete _root.onMouseDown;
_root.levelsstate = 1;
_root.resetgame = false;
_root.lockfunc = true;
_root.onEnterFrame = function () {
_root._alpha = _root._alpha - 10;
if (_root._alpha <= 0) {
_root._alpha = 0;
delete _root.onEnterFrame;
_root.gotoAndStop(7);
}
};
}
}
on (rollOver) {
if (!_root.asklock) {
_root.msound("wuwm");
}
}
on (press) {
if (!_root.asklock) {
_root.msound("clickd");
}
}
Symbol 1971 Button
on (release) {
if (!_root.asklock) {
delete _root.onMouseDown;
_root.lockfunc = true;
_root.onEnterFrame = function () {
_root._alpha = _root._alpha - 10;
if (_root._alpha <= 0) {
_root._alpha = 0;
_root.mouse.removeMovieClip();
delete _root.onEnterFrame;
_root.showorsob = true;
_root.gotoAndStop(23);
}
};
}
}
on (rollOver) {
if (!_root.asklock) {
_root.msound("wuwm");
}
}
on (press) {
if (!_root.asklock) {
_root.msound("clickd");
}
}
Symbol 1974 Button
on (release) {
if (!_root.asklock) {
delete _root.onMouseDown;
_root.lockfunc = true;
_root.onEnterFrame = function () {
_root._alpha = _root._alpha - 10;
if (_root._alpha <= 0) {
_root.wmovie = 777;
_root._alpha = 0;
delete _root.onEnterFrame;
_root.gotoAndStop(22);
}
};
}
}
on (rollOver) {
if (!_root.asklock) {
_root.msound("wuwm");
}
}
on (press) {
if (!_root.asklock) {
_root.msound("clickd");
}
}
Symbol 1979 Button
on (release) {
delete _root.onMouseDown;
_root.resetgame = true;
_root.lockfunc = true;
_root.onEnterFrame = function () {
_root._alpha = _root._alpha - 10;
if (_root._alpha <= 0) {
_root.wmovie = 100;
_root._alpha = 0;
delete _root.onEnterFrame;
_root.gotoAndStop(22);
}
};
}
on (rollOver) {
_root.msound("wuwm");
}
on (press) {
_root.msound("clickd");
}
Symbol 1982 Button
on (release) {
_root.onEnterFrame = function () {
_root.campaign.warning._alpha = _root.campaign.warning._alpha - 10;
if (_root.campaign.warning._alpha <= 0) {
_root.campaign.warning._alpha = 100;
_root.campaign.warning._visible = false;
_root.asklock = false;
delete _root.onEnterFrame;
}
};
}
on (rollOver) {
_root.msound("wuwm");
}
on (press) {
_root.msound("clickd");
}
Symbol 1984 MovieClip Frame 1
warning._visible = false;
Symbol 1988 Button
on (release) {
if (!_root.asklock) {
_root.free2.map.gotoAndStop(1);
_root.free2.mode.gotoAndStop(3);
_root.switchmenu(_root.free2);
}
}
on (rollOver) {
_root.msound("wuwm");
}
on (press) {
_root.msound("clickd");
}
Symbol 1989 Button
on (release) {
if (!_root.asklock) {
_root.switchmenu(_root.main);
}
}
on (rollOver) {
_root.msound("wuwm");
}
on (press) {
_root.msound("clickd");
}
Symbol 1995 Button
on (release) {
if (!_root.asklock) {
_root.free2.map.gotoAndStop(1);
_root.free2.mode.gotoAndStop(2);
_root.switchmenu(_root.free2);
}
}
on (rollOver) {
_root.msound("wuwm");
}
on (press) {
_root.msound("clickd");
}
Symbol 1999 Button
on (release) {
if (!_root.asklock) {
_root.free2.map.gotoAndStop(1);
_root.free2.mode.gotoAndStop(1);
_root.switchmenu(_root.free2);
}
}
on (rollOver) {
_root.msound("wuwm");
}
on (press) {
_root.msound("clickd");
}
Symbol 2025 Button
on (release) {
stop();
_root.endshowwithfade();
}
Symbol 2086 MovieClip Frame 1590
stop();
_root.endshowwithfade();
Symbol 2282 MovieClip Frame 1859
stop();
_root.endshowwithfade();
Symbol 2323 MovieClip Frame 1255
stop();
_root.endshowwithfade();
Symbol 2347 Button
on (release) {
gotoAndStop (2);
}
Symbol 2363 MovieClip Frame 112
stop();
_parent.play();
Symbol 2668 MovieClip Frame 1
gotoAndStop(_parent._parent.iarmor);
var str = String(this);
_root.thingstuck(_parent._parent["arrhndd" + str.charAt(str.length - 1)], this);
Symbol 2702 MovieClip Frame 1
stop();
Symbol 2702 MovieClip Frame 2
stop();
Symbol 2702 MovieClip Frame 7349
stop();
_root.endshowwithfade();
Symbol 2709 Button
on (release) {
gotoAndStop (2313);
}
on (rollOver) {
_root.msound("wuwm");
}
on (press) {
_root.msound("clickd");
}
Symbol 2716 Button
on (release) {
gotoAndPlay (2);
}
on (rollOver) {
_root.msound("wuwm");
}
on (press) {
_root.msound("clickd");
}
Symbol 2720 Button
on (release) {
gotoAndStop (2313);
}
Symbol 2725 MovieClip Frame 1
stop();
Symbol 2728 MovieClip Frame 1
stop();
Symbol 2731 MovieClip Frame 1
stop();
Symbol 2827 MovieClip Frame 1
stop();
Symbol 2832 MovieClip Frame 1
stop();
Symbol 2836 MovieClip Frame 1
stop();
Symbol 2920 MovieClip Frame 124
stop();
Symbol 2924 Button
on (press) {
nextFrame();
gotoAndStop;
}
Symbol 2929 Button
on (press) {
prevFrame();
gotoAndStop;
}
Symbol 3008 MovieClip Frame 1
stop();
Symbol 3106 Button
on (press) {
nextFrame();
gotoAndPlay;
}
Symbol 3136 Button
on (release) {
_root.endshowwithfade();
}
on (rollOver) {
_root.msound("wuwm");
}
on (press) {
_root.msound("clickd");
}
Symbol 3137 MovieClip Frame 1
stop();
Symbol 3137 MovieClip Frame 1956
stop();
Symbol 3137 MovieClip Frame 1972
play();
Symbol 3137 MovieClip Frame 2312
stop();
_root.endshowwithfade();
Symbol 3137 MovieClip Frame 2313
stop();
Symbol 3201 MovieClip Frame 1603
stop();
_root.endshowwithfade();