Frame 1
function itemHandler1(obj, item) {
getURL ("http://www.truedarkness.tk/");
}
function itemHandler2(obj, item) {
getURL ("http://www.buzzwerd.deviantart.com");
}
fscommand ("showMenu", false);
var myMenu = new ContextMenu();
myMenu.hideBuiltInItems();
item1 = new ContextMenuItem("True_Darkness", itemHandler1);
myMenu.customItems.push(item1);
item2 = new ContextMenuItem("Buzzwerd", itemHandler2);
myMenu.customItems.push(item2);
_root.menu = myMenu;
stop();
loada = 1;
stopAllSounds();
tv = 0;
Instance of Symbol 3 MovieClip "tva" in Frame 1
onClipEvent (enterFrame) {
this._x = _root.player._x;
if (_root.tv == 1) {
this.gotoAndStop(2);
}
if (_root.tv == 0) {
this.gotoAndStop(1);
}
}
Instance of Symbol 15 MovieClip "percent" in Frame 1
onClipEvent (load) {
totalb = _root.getBytesTotal();
totalkb = int(totalb / 4064);
}
onClipEvent (enterFrame) {
var loadedb = _root.getBytesLoaded();
if (loadedb == totalb) {
trace("nadfinm");
_root.gotoAndStop(2);
} else {
loadedkb = int(loadedb / 4064);
percent = (loadedb / totalb) * 100;
_root.loader.gotoAndStop(int(percent));
pl1 = ("" + int(percent)) + "%";
pl2 = ((("" + loadedkb) + " / ") + totalkb) + " kb";
}
}
Instance of Symbol 24 MovieClip in Frame 1
on (release) {
getURL ("http://www.armorgames.com", "_blank");
}
Frame 2
stop();
stop();
Instance of Symbol 44 MovieClip in Frame 5
onClipEvent (enterFrame) {
if (this.hitTest(_root.world.bullet)) {
this.gotoAndPlay("die");
}
}
Instance of Symbol 47 MovieClip in Frame 5
onClipEvent (enterFrame) {
if (_root.loada == 1) {
this._xscale = 10000;
this._yscale = 10000;
}
}
onClipEvent (enterFrame) {
if (_root.loada == 0) {
this.removeMovieClip();
}
}
Frame 771
intro = 0;
Frame 799
_root.play();
Frame 800
stop();
_x = 0;
cmon = 0;
_root.checkpoint = 0;
Instance of Symbol 86 MovieClip in Frame 800
onClipEvent (enterFrame) {
var my_date = new Date();
var hours = my_date.getHours();
gotoAndStop(statet);
if ((hours > 4) && (hours < 10)) {
this.backg.gotoAndStop(1);
statet = 1;
}
if ((hours > 9) && (hours < 11)) {
this.backg.gotoAndStop(1);
statet = 2;
}
if ((hours > 12) && (hours < 18)) {
this.backg.gotoAndStop(2);
statet = 3;
}
if (hours > 17) {
this.backg.gotoAndStop(3);
statet = 4;
}
}
onClipEvent (enterFrame) {
_x = _root.player._x;
if (_root.blink._currentframe == 1) {
if (Key.isDown(37)) {
this._x = _x - 0;
} else if (Key.isDown(39)) {
this._x = _x + 0;
}
} else if (Key.isDown(37)) {
this._x = _x;
} else if (Key.isDown(39)) {
this._x = _x;
}
}
Instance of Symbol 155 MovieClip "menucoming" in Frame 800
onClipEvent (enterFrame) {
checkpoint = 0;
_x = _root.player._x;
if (_root.blink._currentframe == 1) {
if (Key.isDown(37)) {
this._x = _x - 0;
} else if (Key.isDown(39)) {
this._x = _x + 0;
}
} else if (Key.isDown(37)) {
this._x = _x;
} else if (Key.isDown(39)) {
this._x = _x;
}
}
onClipEvent (load) {
if (_root.fix == 1) {
_parent._x = 0;
}
}
Frame 801
stop();
_root.menucoming._alpha = 0;
Instance of Symbol 86 MovieClip in Frame 801
onClipEvent (enterFrame) {
var my_date = new Date();
var hours = my_date.getHours();
gotoAndStop(statet);
if ((hours > 4) && (hours < 10)) {
this.backg.gotoAndStop(1);
statet = 1;
}
if ((hours > 9) && (hours < 11)) {
this.backg.gotoAndStop(1);
statet = 2;
}
if ((hours > 12) && (hours < 18)) {
this.backg.gotoAndStop(2);
statet = 3;
}
if (hours > 17) {
this.backg.gotoAndStop(3);
statet = 4;
}
}
Instance of Symbol 174 MovieClip "menuthing" in Frame 801
onClipEvent (enterFrame) {
_x = _root.player._x;
if (_root.blink._currentframe == 1) {
if (Key.isDown(37)) {
this._x = _x - 0;
} else if (Key.isDown(39)) {
this._x = _x + 0;
}
} else if (Key.isDown(37)) {
this._x = _x;
} else if (Key.isDown(39)) {
this._x = _x;
}
}
Frame 802
stop();
Instance of Symbol 200 MovieClip in Frame 802
on (release) {
if (this._currentframe == 1) {
gotoAndStop (2);
}
}
on (rollOver) {
this.chest2.play();
}
on (rollOut) {
this.chest2.gotoAndStop(1);
}
onClipEvent (enterFrame) {
if (this._currentframe == 3) {
this.useHandCursor = false;
}
}
Frame 804
stop();
Instance of Symbol 294 MovieClip in Frame 805
on (release) {
if (this._currentframe == 1) {
gotoAndStop (2);
}
}
on (rollOver) {
this.chest2.play();
}
on (rollOut) {
this.chest2.gotoAndStop(1);
}
onClipEvent (enterFrame) {
if (this._currentframe == 3) {
this.useHandCursor = false;
}
}
Frame 814
stop();
Frame 815
_root.presse._visible = false;
_root.presse2._visible = false;
_root.shopfor._visible = false;
moneySave = _root.moolaa.moneya;
fix = 0;
function stopall(tgt) {
for (var _local2 in tgt) {
tgt[_local2].stop();
stopall(tgt[_local2]);
}
}
function playall(tgt) {
for (var _local2 in tgt) {
tgt[_local2].play();
playall(tgt[_local2]);
}
}
var i = 0;
while (i < 10) {
_root["troll" + i].blocking = 0;
i++;
}
var i = 0;
while (i < 10) {
_root["demon" + i].blocking2 = 0;
i++;
}
var i = 0;
while (i < 10) {
_root["darkknight" + i].blocking3 = 0;
i++;
}
var i = 0;
while (i < 10) {
_root["death" + i].blocking4 = 0;
i++;
}
_root.monvf = 0;
weapon = 0;
armor = 0;
stop();
pausea = 0;
deathkill2 = 0;
_root.moola.money = 0;
trollkill = 0;
gettinghit = 0;
dknight3 = 0;
trollkill2 = 0;
demonkill2 = 0;
trollis = 0;
win1 = 0;
_root.forpant._visible = false;
moolaa.moneya = _root.moola.money;
s1 = 0;
_root.cheat = 0;
Instance of Symbol 301 MovieClip "backgrounda" in Frame 815
onClipEvent (enterFrame) {
this._x = _root.player._x / 1.123;
}
Instance of Symbol 308 MovieClip in Frame 815
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.shopfor._currentframe == 1)) {
_root.presse2._visible = true;
} else {
if (!this.hitTest(_root.player)) {
_root.presse2._visible = false;
}
if (shopfor._currentframe != 2) {
_root.presse2._visible = false;
}
}
}
on (keyPress "e") {
if (this.hitTest(_root.player) && (_root.shopfor._currentframe == 1)) {
_root.shopfor._visible = true;
_root.shopfor.gotoAndPlay(2);
_root.pauseaing2.gotoAndStop(2);
}
}
on (keyPress "E") {
if (this.hitTest(_root.player) && (_root.shopfor._currentframe == 1)) {
_root.shopfor._visible = true;
_root.shopfor.gotoAndPlay(2);
_root.pauseaing2.gotoAndStop(2);
}
}
Instance of Symbol 314 MovieClip "asf" in Frame 815
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (this._currentframe == 1)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 314 MovieClip "asfgfh" in Frame 815
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (this._currentframe == 1)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 318 MovieClip in Frame 815
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
this.heart.gotoAndStop(2);
}
}
Instance of Symbol 348 MovieClip in Frame 815
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (this._currentframe == 1)) {
_root.presse._visible = true;
} else if (!this.hitTest(_root.player)) {
_root.presse._visible = false;
}
}
onClipEvent (enterFrame) {
if ((this.hitTest(_root.player) && (this._currentframe == 1)) && (Key.isDown(69))) {
this.gotoAndStop(3);
}
}
onClipEvent (enterFrame) {
if (this._currentframe == 1) {
this.useHandCursor = false;
}
}
Instance of Symbol 353 MovieClip in Frame 815
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.player._currentframe <= 3)) {
_root.ground.plat1.play();
}
}
Instance of Symbol 384 MovieClip "troll2" in Frame 815
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (this.hitTest(_root.player) && (_root.player._currentframe <= 3)) {
this.gotoAndStop("attack");
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (this._currentframe == 3) {
this.gotoAndStop(3);
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (_root.player._x > _x) {
_xscale = -100;
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (_root.player._x < _x) {
_xscale = 100;
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (this.hitTest(_root.player) && ((((_root.player._currentframe <= 3) || (_root.player._currentframe == 8)) || (_root.player._currentframe == 6)) || (_root.player._currentframe == 11))) {
this.gotoAndStop("attack");
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
distance = Math.sqrt(((_root.player._x - this._x) * (_root.player._x - this._x)) + ((_root.player._y - this._y) * (_root.player._y - this._y)));
if (blocking == 0) {
if ((distance < 225) && (!this.hitTest(_root.player))) {
if ((_currentframe != 3) && (_currentframe != 6)) {
if (_x >= _root.player._x) {
this.gotoAndStop(4);
this._x = this._x - 4;
} else if (_x < _root.player._x) {
this.gotoAndStop(4);
this._x = this._x + 4;
}
}
} else if (((!this.hitTest(_root.player)) && (_currentframe != 3)) && (_currentframe != 6)) {
gotoAndStop (1);
}
} else if (blocking == 1) {
if ((distance < 225) && (!this.hitTest(_root.player))) {
if ((_currentframe != 3) && (_currentframe != 6)) {
if (_x >= _root.player._x) {
this.gotoAndStop(1);
this._x = this._x - 0;
} else if (_x < _root.player._x) {
this.gotoAndStop(1);
this._x = this._x + 0;
}
}
} else if (((!this.hitTest(_root.player)) && (_currentframe != 3)) && (_currentframe != 6)) {
gotoAndStop (1);
}
}
}
}
onClipEvent (enterFrame) {
if (_root.trollis == 0) {
this._visible = true;
}
}
onClipEvent (enterFrame) {
if (_root.trollis == 1) {
this._visible = false;
this.gotoAndStop("dead");
}
}
onClipEvent (enterFrame) {
if (this._currentframe >= 6) {
this._visible = false;
this.removeMovieClip();
}
}
Instance of Symbol 416 MovieClip "demon1" in Frame 815
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (this.hitTest(_root.player) && (_root.player._currentframe <= 3)) {
this.gotoAndStop("attack");
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (this._currentframe == 3) {
this.gotoAndStop(3);
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (_root.player._x > _x) {
_xscale = -60;
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (_root.player._x < _x) {
_xscale = 60;
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (this.hitTest(_root.player) && ((((_root.player._currentframe <= 3) || (_root.player._currentframe == 8)) || (_root.player._currentframe == 6)) || (_root.player._currentframe == 11))) {
this.gotoAndStop("attack");
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
distance = Math.sqrt(((_root.player._x - this._x) * (_root.player._x - this._x)) + ((_root.player._y - this._y) * (_root.player._y - this._y)));
if (blocking2 == 0) {
if ((distance < 225) && (!this.hitTest(_root.player))) {
if ((_currentframe != 5) && (_currentframe != 6)) {
if (_x >= _root.player._x) {
this.gotoAndStop(3);
this._x = this._x - 4;
} else if (_x < _root.player._x) {
this.gotoAndStop(3);
this._x = this._x + 4;
}
}
} else if (((!this.hitTest(_root.player)) && (_currentframe != 5)) && (_currentframe != 6)) {
gotoAndStop (1);
}
} else if (blocking2 == 1) {
if ((distance < 225) && (!this.hitTest(_root.player))) {
if ((_currentframe != 5) && (_currentframe != 6)) {
if (_x >= _root.player._x) {
this.gotoAndStop(1);
this._x = this._x - 0;
} else if (_x < _root.player._x) {
this.gotoAndStop(1);
this._x = this._x + 0;
}
}
} else if (((!this.hitTest(_root.player)) && (_currentframe != 5)) && (_currentframe != 6)) {
gotoAndStop (1);
}
}
}
}
Instance of Symbol 438 MovieClip "darkknight1" in Frame 815
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (this.hitTest(_root.player) && (_root.player._currentframe <= 3)) {
this.gotoAndStop("attack");
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (this._currentframe == 3) {
this.gotoAndStop(3);
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (_root.player._x > _x) {
_xscale = -65;
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (_root.player._x < _x) {
_xscale = 65;
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (this.hitTest(_root.player) && ((((_root.player._currentframe <= 3) || (_root.player._currentframe == 8)) || (_root.player._currentframe == 6)) || (_root.player._currentframe == 11))) {
this.gotoAndStop("attack");
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
distance = Math.sqrt(((_root.player._x - this._x) * (_root.player._x - this._x)) + ((_root.player._y - this._y) * (_root.player._y - this._y)));
if (blocking3 == 0) {
if ((distance < 225) && (!this.hitTest(_root.player))) {
if ((_currentframe != 3) && (_currentframe != 6)) {
if (_x >= _root.player._x) {
this.gotoAndStop(4);
this._x = this._x - 4;
} else if (_x < _root.player._x) {
this.gotoAndStop(4);
this._x = this._x + 4;
}
}
} else if (((!this.hitTest(_root.player)) && (_currentframe != 3)) && (_currentframe != 6)) {
gotoAndStop (1);
}
} else if (blocking3 == 1) {
if ((distance < 225) && (!this.hitTest(_root.player))) {
if ((_currentframe != 3) && (_currentframe != 6)) {
if (_x >= _root.player._x) {
this.gotoAndStop(1);
this._x = this._x - 0;
} else if (_x < _root.player._x) {
this.gotoAndStop(1);
this._x = this._x + 0;
}
}
} else if (((!this.hitTest(_root.player)) && (_currentframe != 3)) && (_currentframe != 6)) {
gotoAndStop (1);
}
}
}
}
Instance of Symbol 441 MovieClip in Frame 815
onClipEvent (enterFrame) {
if (_root.ground.crate1._currentframe >= 2) {
this.gotoAndStop(2);
}
}
Instance of Symbol 440 MovieClip in Frame 815
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
_alpha = 0;
if (this.hitTest(_root["troll" + i])) {
_root["troll" + i].blocking = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if ((_root["demon" + i]._xscale > 0) && (this.hitTest(_root["demon" + i]))) {
_root["demon" + i].blocking2 = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if (this.hitTest(_root["darkknight" + i])) {
_root["darkknight" + i].blocking3 = 1;
}
i++;
}
}
Instance of Symbol 440 MovieClip in Frame 815
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
_alpha = 0;
if ((_root["troll" + i]._xscale < 0) && (this.hitTest(_root["troll" + i]))) {
_root["troll" + i].blocking = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if ((_root["demon" + i]._xscale < 0) && (this.hitTest(_root["demon" + i]))) {
_root["demon" + i].blocking2 = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if ((_root["darkknight" + i]._xscale < 0) && (this.hitTest(_root["darkknight" + i]))) {
_root["darkknight" + i].blocking3 = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if ((_root["death" + i]._xscale < 0) && (this.hitTest(_root["death" + i]))) {
_root["death" + i].blocking4 = 1;
}
i++;
}
}
Instance of Symbol 441 MovieClip in Frame 815
onClipEvent (enterFrame) {
if (_root.ground.crate2._currentframe >= 2) {
this.gotoAndStop(2);
}
}
Instance of Symbol 441 MovieClip in Frame 815
onClipEvent (enterFrame) {
if (_root.ground.crate3._currentframe >= 2) {
this.gotoAndStop(2);
}
}
Instance of Symbol 441 MovieClip in Frame 815
onClipEvent (enterFrame) {
if (_root.ground.crate4._currentframe >= 2) {
this.gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
if (_root.ground.crate3._currentframe >= 2) {
this.gotoAndStop(2);
}
}
Instance of Symbol 441 MovieClip in Frame 815
onClipEvent (enterFrame) {
if (_root.ground.crate4._currentframe >= 2) {
this.gotoAndStop(2);
}
}
Instance of Symbol 445 MovieClip in Frame 815
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.fadetolevel._currentframe == 1)) {
_root.fadetolevel.play();
}
}
Instance of Symbol 460 MovieClip "bar" in Frame 815
onClipEvent (enterFrame) {
_x = _root.player._x;
if (_root.blink._currentframe == 1) {
if (Key.isDown(37)) {
this._x = _x - 0;
} else if (Key.isDown(39)) {
this._x = _x + 0;
}
} else if (Key.isDown(37)) {
this._x = _x;
} else if (Key.isDown(39)) {
this._x = _x;
}
}
Instance of Symbol 488 MovieClip "lives" in Frame 815
onClipEvent (enterFrame) {
_x = _root.player._x;
if (_root.blink._currentframe == 1) {
if (Key.isDown(37)) {
this._x = _x - 0;
} else if (Key.isDown(39)) {
this._x = _x + 0;
}
} else if (Key.isDown(37)) {
this._x = _x;
} else if (Key.isDown(39)) {
this._x = _x;
}
}
Instance of Symbol 489 MovieClip "money" in Frame 815
onClipEvent (enterFrame) {
_x = _root.player._x;
if (_root.blink._currentframe == 1) {
if (Key.isDown(37)) {
this._x = _x - 0;
} else if (Key.isDown(39)) {
this._x = _x + 0;
}
} else if (Key.isDown(37)) {
this._x = _x;
} else if (Key.isDown(39)) {
this._x = _x;
}
}
Instance of Symbol 575 MovieClip "player" in Frame 815
onClipEvent (enterFrame) {
if (_root.player._name == "player") {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
_visible = true;
_alpha = 100;
if (this._currentframe <= 3) {
if (!grounded) {
yspeed = yspeed + grav;
_y = (_y + yspeed);
}
if (this._currentframe != 4) {
if (Key.isDown(37)) {
_xscale = -100;
_x = (_x - speed);
if (this._currentframe == 3) {
} else {
(this.gotoAndStop(2));// not popped
}
}
if (Key.isDown(39)) {
_xscale = 100;
_x = (_x + speed);
if (this._currentframe == 3) {
} else {
(this.gotoAndStop(2));// not popped
}
}
if ((Key.isDown(32) && (this._currentframe != 3)) && (grounded)) {
this.gotoAndStop(3);
}
}
while (_root.ground.hitTest(_x, _y - h, true)) {
_y = (_y + 0.1);
}
while (_root.ground.hitTest(_x + w, _y, true)) {
_x = (_x - 0.1);
}
while (_root.ground.hitTest(_x - w, _y, true)) {
_x = (_x + 0.1);
}
((yspeed > 0) ? ((falling = true)(falling = true)(falling = true)) : null);
if (_root.ground.hitTest(_x, _y + h, true) && (falling == true)) {
((this._currentframe == 3) ? (jumpa.play()) : null);
grounded = true;
yspeed = 0;
falling = false;
} else {
grounded = false;
}
while (_root.ground.hitTest(_x, _y + h, true)) {
_y = (_y - 0.1);
}
if (!((((!Key.isDown(39)) && (!Key.isDown(37))) && (this._currentframe != 3)) && (this._currentframe != 4))) {
} else {
(this.gotoAndStop(1));// not popped
}
} else if (Key.isDown(32)) {
this.gotoAndStop(3);
jump.gotoAndPlay(5);
}
}
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if (this._currentframe <= 3) {
if (Key.isDown(17) && (_root.blahh.cycle._currentframe == 2)) {
_x = _root.tankid._x;
_root.tankid = "none";
_visible = true;
}
}
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if ((this._currentframe <= 3) && (_root.blahh.cycle._currentframe != 2)) {
if ((Key.isDown(32) && (this._currentframe != 3)) && (grounded)) {
if ((this._currentframe == 2) && (this._xscale == 100)) {
this._x = this._x - this.speed;
} else if ((this._currentframe == 2) && (this._xscale == 100)) {
this._x = this._x + this.speed;
}
}
}
}
cx = cx + (_x - cx);
_root._x = (Stage.width / 2) - cx;
}
}
on (keyPress "a") {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if (this._currentframe <= 2) {
this.gotoAndStop("punch");
}
}
}
}
on (keyPress "A") {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if (this._currentframe <= 2) {
this.gotoAndStop("punch");
}
}
}
}
on (keyPress "s") {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if (this._currentframe <= 2) {
this.gotoAndStop("slit");
}
}
}
}
on (keyPress "S") {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if (this._currentframe <= 2) {
this.gotoAndStop("slit");
}
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if (this._y > 430) {
this.gotoAndStop(1);
_x = defX;
_y = defY;
_root.def.play();
_root.blink.play();
}
if (Key.isDown(37) && (Key.isDown(39) && (Key.isDown(40) && (this._currentframe == 2)))) {
this.gotoAndStop(1);
}
}
}
}
on (keyPress "c") {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if ((yspeed == 0) && (_root.hud.cpt != 0)) {
_root.cp.play();
defX = _x;
defY = _y;
_root.hud.cpt--;
}
}
}
}
on (keyPress "d") {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if (this._currentframe <= 2) {
this.gotoAndStop("block");
}
}
}
}
on (keyPress "D") {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if (this._currentframe <= 2) {
this.gotoAndStop("block");
}
}
}
}
onClipEvent (keyUp) {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if (this._currentframe == 6) {
this.gotoAndStop(1);
}
}
}
}
onClipEvent (enterFrame) {
this.useHandCursor = false;
}
onClipEvent (keyUp) {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if (this._currentframe == 9) {
this.gotoAndStop(1);
}
}
}
}
onClipEvent (enterFrame) {
_root.money._x = _x;
}
onClipEvent (enterFrame) {
_root.presse2._x = _x;
}
onClipEvent (enterFrame) {
_root.maze._x = _x;
}
onClipEvent (enterFrame) {
_root.moola._x = _x;
}
onClipEvent (enterFrame) {
_root.shopfor._x = _x;
}
onClipEvent (enterFrame) {
_root.gomenu._x = _x;
}
on (keyPress "p") {
_root.pauseaing.nextFrame();
}
on (keyPress "P") {
_root.pauseaing.nextFrame();
}
onClipEvent (enterFrame) {
_root.pauseaing._x = _x;
}
onClipEvent (enterFrame) {
_root.presse._x = _x;
}
onClipEvent (enterFrame) {
_root.stuff._x = _x;
}
on (keyPress "m") {
_root.gomenu.gotoAndStop(2);
}
on (keyPress "M") {
_root.gomenu.gotoAndStop(2);
}
onClipEvent (enterFrame) {
if (_root.win1 == 1) {
_root.lives.prevFrame();
_root.lives.prevFrame();
_root.lives.prevFrame();
_root.win1 = 0;
}
}
Instance of Symbol 579 MovieClip "cheat" in Frame 815
onClipEvent (load) {
_root.cheat = 0;
}
Instance of Symbol 440 MovieClip in Frame 815
onClipEvent (enterFrame) {
_alpha = 0;
var i = 0;
while (i > 10) {
if ((_root["troll" + i]._xscale > 0) && (this.hitTest(_root["troll" + i]))) {
_root["troll" + i].blocking = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i > 10) {
if ((_root["demon" + i]._xscale > 0) && (this.hitTest(_root["demon" + i]))) {
_root["demon" + i].blocking2 = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i > 10) {
if ((_root["darkknight" + i]._xscale > 0) && (this.hitTest(_root["darkknight" + i]))) {
_root["darkknight" + i].blocking3 = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i > 10) {
if ((_root["death" + i]._xscale > 0) && (this.hitTest(_root["death" + i]))) {
_root["death" + i].blocking4 = 1;
}
i++;
}
}
Instance of Symbol 440 MovieClip in Frame 815
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
_alpha = 0;
if ((_root["troll" + i]._xscale < 0) && (this.hitTest(_root["troll" + i]))) {
_root["troll" + i].blocking = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if ((_root["demon" + i]._xscale < 0) && (this.hitTest(_root["demon" + i]))) {
_root["demon" + i].blocking2 = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if ((_root["darkknight" + i]._xscale < 0) && (this.hitTest(_root["darkknight" + i]))) {
_root["darkknight" + i].blocking3 = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if ((_root["death" + i]._xscale < 0) && (this.hitTest(_root["death" + i]))) {
_root["death" + i].blocking4 = 1;
}
i++;
}
}
Instance of Symbol 384 MovieClip "troll1" in Frame 815
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (this.hitTest(_root.player) && (_root.player._currentframe <= 3)) {
this.gotoAndStop("attack");
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (this._currentframe == 3) {
this.gotoAndStop(3);
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (_root.player._x > _x) {
_xscale = -100;
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (_root.player._x < _x) {
_xscale = 100;
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (this.hitTest(_root.player) && ((((_root.player._currentframe <= 3) || (_root.player._currentframe == 8)) || (_root.player._currentframe == 6)) || (_root.player._currentframe == 11))) {
this.gotoAndStop("attack");
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
distance = Math.sqrt(((_root.player._x - this._x) * (_root.player._x - this._x)) + ((_root.player._y - this._y) * (_root.player._y - this._y)));
if (blocking == 0) {
if ((distance < 225) && (!this.hitTest(_root.player))) {
if ((_currentframe != 3) && (_currentframe != 6)) {
if (_x >= _root.player._x) {
this.gotoAndStop(4);
this._x = this._x - 4;
} else if (_x < _root.player._x) {
this.gotoAndStop(4);
this._x = this._x + 4;
}
}
} else if (((!this.hitTest(_root.player)) && (_currentframe != 3)) && (_currentframe != 6)) {
gotoAndStop (1);
}
} else if (blocking == 1) {
if ((distance < 225) && (!this.hitTest(_root.player))) {
if ((_currentframe != 3) && (_currentframe != 6)) {
if (_x >= _root.player._x) {
this.gotoAndStop(1);
this._x = this._x - 0;
} else if (_x < _root.player._x) {
this.gotoAndStop(1);
this._x = this._x + 0;
}
}
} else if (((!this.hitTest(_root.player)) && (_currentframe != 3)) && (_currentframe != 6)) {
gotoAndStop (1);
}
}
}
}
onClipEvent (enterFrame) {
if (_root.trollis == 0) {
this._visible = true;
}
}
onClipEvent (enterFrame) {
if (_root.trollis == 1) {
this._visible = false;
this.gotoAndStop("dead");
}
}
onClipEvent (enterFrame) {
if (this._currentframe >= 6) {
this._visible = false;
this.removeMovieClip();
}
}
Instance of Symbol 581 MovieClip "moola" in Frame 815
onClipEvent (enterFrame) {
_x = _root.player._x;
if (_root.blink._currentframe == 1) {
if (Key.isDown(37)) {
this._x = _x - 0;
} else if (Key.isDown(39)) {
this._x = _x + 0;
}
} else if (Key.isDown(37)) {
this._x = _x;
} else if (Key.isDown(39)) {
this._x = _x;
}
}
Instance of Symbol 584 MovieClip "pauseaing" in Frame 815
onClipEvent (enterFrame) {
this._x = _root.player._x;
}
Instance of Symbol 585 MovieClip "pauseaing2" in Frame 815
onClipEvent (enterFrame) {
this._x = _root.player._x;
}
Instance of Symbol 588 MovieClip "flasha" in Frame 815
onClipEvent (enterFrame) {
_x = _root.player._x;
if (_root.blink._currentframe == 1) {
if (Key.isDown(37)) {
this._x = _x - 7;
} else if (Key.isDown(39)) {
this._x = _x + 7;
}
} else if (Key.isDown(37)) {
this._x = _x;
} else if (Key.isDown(39)) {
this._x = _x;
}
}
Instance of Symbol 590 MovieClip in Frame 815
onClipEvent (enterFrame) {
this._x = _root.player._x;
}
Instance of Symbol 614 MovieClip "gomenu" in Frame 815
onClipEvent (enterFrame) {
_x = _root.player._x;
if (_root.blink._currentframe == 1) {
if (Key.isDown(37)) {
this._x = _x - 0;
} else if (Key.isDown(39)) {
this._x = _x + 0;
}
} else if (Key.isDown(37)) {
this._x = _x;
} else if (Key.isDown(39)) {
this._x = _x;
}
}
Instance of Symbol 618 MovieClip "fadeout" in Frame 815
onClipEvent (enterFrame) {
this._x = _root.player._x;
}
Instance of Symbol 674 MovieClip "shopfor" in Frame 815
onClipEvent (enterFrame) {
this._x = _root.player._x;
this._alpha = 100;
}
Instance of Symbol 700 MovieClip "maze" in Frame 815
onClipEvent (enterFrame) {
_x = _root.player._x;
if (_root.blink._currentframe == 1) {
if (Key.isDown(37)) {
this._x = _x - 0;
} else if (Key.isDown(39)) {
this._x = _x + 0;
}
} else if (Key.isDown(37)) {
this._x = _x;
} else if (Key.isDown(39)) {
this._x = _x;
}
}
Instance of Symbol 702 MovieClip "presse" in Frame 815
onClipEvent (enterFrame) {
_x = _root.player._x;
if (_root.blink._currentframe == 1) {
if (Key.isDown(37)) {
this._x = _x - 0;
} else if (Key.isDown(39)) {
this._x = _x + 0;
}
} else if (Key.isDown(37)) {
this._x = _x;
} else if (Key.isDown(39)) {
this._x = _x;
}
}
Instance of Symbol 704 MovieClip "presse2" in Frame 815
onClipEvent (enterFrame) {
_x = _root.player._x;
if (_root.blink._currentframe == 1) {
if (Key.isDown(37)) {
this._x = _x - 0;
} else if (Key.isDown(39)) {
this._x = _x + 0;
}
} else if (Key.isDown(37)) {
this._x = _x;
} else if (Key.isDown(39)) {
this._x = _x;
}
}
Instance of Symbol 707 MovieClip "fadetolevel" in Frame 815
onClipEvent (enterFrame) {
this._x = _root.player._x;
}
Instance of Symbol 759 MovieClip "gameover" in Frame 815
onClipEvent (enterFrame) {
this._x = _root.player._x;
}
Frame 816
stop();
_root.kc._visible = true;
_root.kc._alpha = 100;
_root.ka._visible = true;
_root.ka._alpha = 100;
stopAllSounds();
_root._x = 0;
Instance of Symbol 86 MovieClip "kc" in Frame 816
onClipEvent (enterFrame) {
var my_date = new Date();
var hours = my_date.getHours();
gotoAndStop(statet);
if ((hours > 4) && (hours < 10)) {
this.backg.gotoAndStop(1);
statet = 1;
}
if ((hours > 9) && (hours < 11)) {
this.backg.gotoAndStop(1);
statet = 2;
}
if ((hours > 12) && (hours < 18)) {
this.backg.gotoAndStop(2);
statet = 3;
}
if (hours > 17) {
this.backg.gotoAndStop(3);
statet = 4;
}
}
Frame 817
_root.presse._visible = false;
_root.presse2._visible = false;
_root.shopfor._visible = false;
fix = 0;
function stopall(tgt) {
for (var _local2 in tgt) {
tgt[_local2].stop();
stopall(tgt[_local2]);
}
}
function playall(tgt) {
for (var _local2 in tgt) {
tgt[_local2].play();
playall(tgt[_local2]);
}
}
var i = 0;
while (i < 10) {
_root["troll" + i].blocking = 0;
i++;
}
var i = 0;
while (i < 10) {
_root["demon" + i].blocking2 = 0;
i++;
}
var i = 0;
while (i < 10) {
_root["darkknight" + i].blocking3 = 0;
i++;
}
stop();
pausea = 0;
trollkill = 0;
gettinghit = 0;
dknight3 = 0;
trollkill2 = 0;
demonkill2 = 0;
trollis = 0;
win1 = 0;
if (_root.cmon == 1) {
_root.moola.money = 0;
}
_root.forpant._visible = false;
Instance of Symbol 301 MovieClip "backgrounda" in Frame 817
onClipEvent (enterFrame) {
this._x = _root.player._x / 1.123;
}
Instance of Symbol 318 MovieClip in Frame 817
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
this.heart.gotoAndStop(2);
}
}
Instance of Symbol 308 MovieClip in Frame 817
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.shopfor._currentframe == 1)) {
_root.presse2._visible = true;
} else {
if (!this.hitTest(_root.player)) {
_root.presse2._visible = false;
}
if (shopfor._currentframe != 2) {
_root.presse2._visible = false;
}
}
}
onClipEvent (enterFrame) {
if ((this.hitTest(_root.player) && (_root.shopfor._currentframe == 1)) && (Key.isDown(69))) {
_root.shopfor._visible = true;
_root.shopfor.gotoAndPlay(2);
_root.pauseaing2.gotoAndStop(2);
}
}
Instance of Symbol 314 MovieClip "asf" in Frame 817
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (this._currentframe == 1)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 318 MovieClip in Frame 817
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
this.heart.gotoAndStop(2);
}
}
Instance of Symbol 314 MovieClip "asfgfh" in Frame 817
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (this._currentframe == 1)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 488 MovieClip "lives" in Frame 817
onClipEvent (enterFrame) {
_x = _root.player._x;
if (_root.blink._currentframe == 1) {
if (Key.isDown(37)) {
this._x = _x - 0;
} else if (Key.isDown(39)) {
this._x = _x + 0;
}
} else if (Key.isDown(37)) {
this._x = _x;
} else if (Key.isDown(39)) {
this._x = _x;
}
}
Instance of Symbol 460 MovieClip "bar" in Frame 817
onClipEvent (enterFrame) {
_x = _root.player._x;
if (_root.blink._currentframe == 1) {
if (Key.isDown(37)) {
this._x = _x - 0;
} else if (Key.isDown(39)) {
this._x = _x + 0;
}
} else if (Key.isDown(37)) {
this._x = _x;
} else if (Key.isDown(39)) {
this._x = _x;
}
}
Instance of Symbol 489 MovieClip "money" in Frame 817
onClipEvent (enterFrame) {
_x = _root.player._x;
if (_root.blink._currentframe == 1) {
if (Key.isDown(37)) {
this._x = _x - 0;
} else if (Key.isDown(39)) {
this._x = _x + 0;
}
} else if (Key.isDown(37)) {
this._x = _x;
} else if (Key.isDown(39)) {
this._x = _x;
}
}
Instance of Symbol 384 MovieClip "troll1" in Frame 817
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (this.hitTest(_root.player) && (_root.player._currentframe <= 3)) {
this.gotoAndStop("attack");
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (this._currentframe == 3) {
this.gotoAndStop(3);
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (_root.player._x > _x) {
_xscale = -100;
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (_root.player._x < _x) {
_xscale = 100;
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (this.hitTest(_root.player) && ((((_root.player._currentframe <= 3) || (_root.player._currentframe == 8)) || (_root.player._currentframe == 6)) || (_root.player._currentframe == 11))) {
this.gotoAndStop("attack");
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
distance = Math.sqrt(((_root.player._x - this._x) * (_root.player._x - this._x)) + ((_root.player._y - this._y) * (_root.player._y - this._y)));
if (blocking == 0) {
if ((distance < 225) && (!this.hitTest(_root.player))) {
if ((_currentframe != 3) && (_currentframe != 6)) {
if (_x >= _root.player._x) {
this.gotoAndStop(4);
this._x = this._x - 4;
} else if (_x < _root.player._x) {
this.gotoAndStop(4);
this._x = this._x + 4;
}
}
} else if (((!this.hitTest(_root.player)) && (_currentframe != 3)) && (_currentframe != 6)) {
gotoAndStop (1);
}
} else if (blocking == 1) {
if ((distance < 225) && (!this.hitTest(_root.player))) {
if ((_currentframe != 3) && (_currentframe != 6)) {
if (_x >= _root.player._x) {
this.gotoAndStop(1);
this._x = this._x - 0;
} else if (_x < _root.player._x) {
this.gotoAndStop(1);
this._x = this._x + 0;
}
}
} else if (((!this.hitTest(_root.player)) && (_currentframe != 3)) && (_currentframe != 6)) {
gotoAndStop (1);
}
}
}
}
onClipEvent (enterFrame) {
if (_root.trollis == 0) {
this._visible = true;
}
}
onClipEvent (enterFrame) {
if (_root.trollis == 1) {
this._visible = false;
this.gotoAndStop("dead");
}
}
onClipEvent (enterFrame) {
if (this._currentframe >= 6) {
this._visible = false;
this.removeMovieClip();
}
}
Instance of Symbol 575 MovieClip "player" in Frame 817
onClipEvent (enterFrame) {
if (_root.player._name == "player") {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
_visible = true;
_alpha = 100;
if (this._currentframe <= 3) {
if (!grounded) {
yspeed = yspeed + grav;
_y = (_y + yspeed);
}
if (this._currentframe != 4) {
if (Key.isDown(37)) {
_xscale = -100;
_x = (_x - speed);
if (this._currentframe == 3) {
} else {
(this.gotoAndStop(2));// not popped
}
}
if (Key.isDown(39)) {
_xscale = 100;
_x = (_x + speed);
if (this._currentframe == 3) {
} else {
(this.gotoAndStop(2));// not popped
}
}
if ((Key.isDown(32) && (this._currentframe != 3)) && (grounded)) {
this.gotoAndStop(3);
}
}
while (_root.ground.hitTest(_x, _y - h, true)) {
_y = (_y + 0.1);
}
while (_root.ground.hitTest(_x + w, _y, true)) {
_x = (_x - 0.1);
}
while (_root.ground.hitTest(_x - w, _y, true)) {
_x = (_x + 0.1);
}
((yspeed > 0) ? ((falling = true)(falling = true)(falling = true)) : null);
if (_root.ground.hitTest(_x, _y + h, true) && (falling == true)) {
((this._currentframe == 3) ? (jumpa.play()) : null);
grounded = true;
yspeed = 0;
falling = false;
} else {
grounded = false;
}
while (_root.ground.hitTest(_x, _y + h, true)) {
_y = (_y - 0.1);
}
if (!((((!Key.isDown(39)) && (!Key.isDown(37))) && (this._currentframe != 3)) && (this._currentframe != 4))) {
} else {
(this.gotoAndStop(1));// not popped
}
} else if (Key.isDown(32)) {
this.gotoAndStop(3);
jump.gotoAndPlay(5);
}
}
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if (this._currentframe <= 3) {
if (Key.isDown(17) && (_root.blahh.cycle._currentframe == 2)) {
_x = _root.tankid._x;
_root.tankid = "none";
_visible = true;
}
}
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if ((this._currentframe <= 3) && (_root.blahh.cycle._currentframe != 2)) {
if ((Key.isDown(32) && (this._currentframe != 3)) && (grounded)) {
if ((this._currentframe == 2) && (this._xscale == 100)) {
this._x = this._x - this.speed;
} else if ((this._currentframe == 2) && (this._xscale == 100)) {
this._x = this._x + this.speed;
}
}
}
}
cx = cx + (_x - cx);
_root._x = (Stage.width / 2) - cx;
}
}
on (keyPress "a") {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if (this._currentframe <= 2) {
this.gotoAndStop("punch");
}
}
}
}
on (keyPress "A") {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if (this._currentframe <= 2) {
this.gotoAndStop("punch");
}
}
}
}
on (keyPress "s") {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if (this._currentframe <= 2) {
this.gotoAndStop("slit");
}
}
}
}
on (keyPress "S") {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if (this._currentframe <= 2) {
this.gotoAndStop("slit");
}
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if (this._y > 430) {
this.gotoAndStop(1);
_x = defX;
_y = defY;
_root.def.play();
_root.blink.play();
}
if (Key.isDown(37) && (Key.isDown(39) && (Key.isDown(40) && (this._currentframe == 2)))) {
this.gotoAndStop(1);
}
}
}
}
on (keyPress "c") {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if ((yspeed == 0) && (_root.hud.cpt != 0)) {
_root.cp.play();
defX = _x;
defY = _y;
_root.hud.cpt--;
}
}
}
}
on (keyPress "d") {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if (this._currentframe <= 2) {
this.gotoAndStop("block");
}
}
}
}
on (keyPress "D") {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if (this._currentframe <= 2) {
this.gotoAndStop("block");
}
}
}
}
onClipEvent (keyUp) {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if (this._currentframe == 6) {
this.gotoAndStop(1);
}
}
}
}
onClipEvent (enterFrame) {
this.useHandCursor = false;
}
onClipEvent (keyUp) {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if (this._currentframe == 9) {
this.gotoAndStop(1);
}
}
}
}
onClipEvent (enterFrame) {
_root.money._x = _x;
}
onClipEvent (enterFrame) {
_root.presse2._x = _x;
}
onClipEvent (enterFrame) {
_root.maze._x = _x;
}
onClipEvent (enterFrame) {
_root.moola._x = _x;
}
onClipEvent (enterFrame) {
_root.shopfor._x = _x;
}
onClipEvent (enterFrame) {
_root.gomenu._x = _x;
}
on (keyPress "p") {
_root.pauseaing.nextFrame();
}
on (keyPress "P") {
_root.pauseaing.nextFrame();
}
onClipEvent (enterFrame) {
_root.pauseaing._x = _x;
}
onClipEvent (enterFrame) {
_root.presse._x = _x;
}
onClipEvent (enterFrame) {
_root.stuff._x = _x;
}
on (keyPress "m") {
_root.gomenu.gotoAndStop(2);
}
on (keyPress "M") {
_root.gomenu.gotoAndStop(2);
}
onClipEvent (enterFrame) {
if (_root.win1 == 1) {
_root.lives.prevFrame();
_root.lives.prevFrame();
_root.lives.prevFrame();
_root.win1 = 0;
}
}
Instance of Symbol 438 MovieClip "darkknight1" in Frame 817
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (this.hitTest(_root.player) && (_root.player._currentframe <= 3)) {
this.gotoAndStop("attack");
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (this._currentframe == 3) {
this.gotoAndStop(3);
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (_root.player._x > _x) {
_xscale = -65;
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (_root.player._x < _x) {
_xscale = 65;
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (this.hitTest(_root.player) && ((((_root.player._currentframe <= 3) || (_root.player._currentframe == 8)) || (_root.player._currentframe == 6)) || (_root.player._currentframe == 11))) {
this.gotoAndStop("attack");
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
distance = Math.sqrt(((_root.player._x - this._x) * (_root.player._x - this._x)) + ((_root.player._y - this._y) * (_root.player._y - this._y)));
if (blocking3 == 0) {
if ((distance < 225) && (!this.hitTest(_root.player))) {
if ((_currentframe != 3) && (_currentframe != 6)) {
if (_x >= _root.player._x) {
this.gotoAndStop(4);
this._x = this._x - 4;
} else if (_x < _root.player._x) {
this.gotoAndStop(4);
this._x = this._x + 4;
}
}
} else if (((!this.hitTest(_root.player)) && (_currentframe != 3)) && (_currentframe != 6)) {
gotoAndStop (1);
}
} else if (blocking3 == 1) {
if ((distance < 225) && (!this.hitTest(_root.player))) {
if ((_currentframe != 3) && (_currentframe != 6)) {
if (_x >= _root.player._x) {
this.gotoAndStop(1);
this._x = this._x - 0;
} else if (_x < _root.player._x) {
this.gotoAndStop(1);
this._x = this._x + 0;
}
}
} else if (((!this.hitTest(_root.player)) && (_currentframe != 3)) && (_currentframe != 6)) {
gotoAndStop (1);
}
}
}
}
Instance of Symbol 441 MovieClip in Frame 817
onClipEvent (enterFrame) {
if (_root.ground.crate3._currentframe >= 2) {
this.gotoAndStop(2);
}
}
Instance of Symbol 440 MovieClip in Frame 817
onClipEvent (enterFrame) {
_alpha = 0;
var i = 0;
while (i > 10) {
if ((_root["troll" + i]._xscale > 0) && (this.hitTest(_root["troll" + i]))) {
_root["troll" + i].blocking = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i > 10) {
if ((_root["demon" + i]._xscale > 0) && (this.hitTest(_root["demon" + i]))) {
_root["demon" + i].blocking2 = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i > 10) {
if ((_root["darkknight" + i]._xscale > 0) && (this.hitTest(_root["darkknight" + i]))) {
_root["darkknight" + i].blocking3 = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i > 10) {
if ((_root["death" + i]._xscale > 0) && (this.hitTest(_root["death" + i]))) {
_root["death" + i].blocking4 = 1;
}
i++;
}
}
Instance of Symbol 441 MovieClip in Frame 817
onClipEvent (enterFrame) {
if (_root.ground.crate8._currentframe >= 2) {
this.gotoAndStop(2);
}
}
Instance of Symbol 441 MovieClip in Frame 817
onClipEvent (enterFrame) {
if (_root.ground.crate2._currentframe >= 2) {
this.gotoAndStop(2);
}
}
Instance of Symbol 441 MovieClip in Frame 817
onClipEvent (enterFrame) {
if (_root.ground.crate1._currentframe >= 2) {
this.gotoAndStop(2);
}
}
Instance of Symbol 441 MovieClip in Frame 817
onClipEvent (enterFrame) {
if (_root.ground.crate9._currentframe >= 2) {
this.gotoAndStop(2);
}
}
Instance of Symbol 441 MovieClip in Frame 817
onClipEvent (enterFrame) {
if (_root.ground.crate9._currentframe >= 2) {
this.gotoAndStop(2);
}
}
Instance of Symbol 438 MovieClip "darkknight2" in Frame 817
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (this.hitTest(_root.player) && (_root.player._currentframe <= 3)) {
this.gotoAndStop("attack");
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (this._currentframe == 3) {
this.gotoAndStop(3);
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (_root.player._x > _x) {
_xscale = -65;
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (_root.player._x < _x) {
_xscale = 65;
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (this.hitTest(_root.player) && ((((_root.player._currentframe <= 3) || (_root.player._currentframe == 8)) || (_root.player._currentframe == 6)) || (_root.player._currentframe == 11))) {
this.gotoAndStop("attack");
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
distance = Math.sqrt(((_root.player._x - this._x) * (_root.player._x - this._x)) + ((_root.player._y - this._y) * (_root.player._y - this._y)));
if (blocking3 == 0) {
if ((distance < 225) && (!this.hitTest(_root.player))) {
if ((_currentframe != 3) && (_currentframe != 6)) {
if (_x >= _root.player._x) {
this.gotoAndStop(4);
this._x = this._x - 4;
} else if (_x < _root.player._x) {
this.gotoAndStop(4);
this._x = this._x + 4;
}
}
} else if (((!this.hitTest(_root.player)) && (_currentframe != 3)) && (_currentframe != 6)) {
gotoAndStop (1);
}
} else if (blocking3 == 1) {
if ((distance < 225) && (!this.hitTest(_root.player))) {
if ((_currentframe != 3) && (_currentframe != 6)) {
if (_x >= _root.player._x) {
this.gotoAndStop(1);
this._x = this._x - 0;
} else if (_x < _root.player._x) {
this.gotoAndStop(1);
this._x = this._x + 0;
}
}
} else if (((!this.hitTest(_root.player)) && (_currentframe != 3)) && (_currentframe != 6)) {
gotoAndStop (1);
}
}
}
}
Instance of Symbol 445 MovieClip in Frame 817
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.fadetolevel._currentframe == 1)) {
_root.fadetolevel.play();
}
}
Instance of Symbol 440 MovieClip in Frame 817
onClipEvent (enterFrame) {
_alpha = 0;
var i = 0;
while (i < 10) {
if ((_root["troll" + i]._xscale < 0) && (this.hitTest(_root["troll" + i]))) {
_root["troll" + i].blocking = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if ((_root["demon" + i]._xscale < 0) && (this.hitTest(_root["demon" + i]))) {
_root["demon" + i].blocking2 = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if ((_root["darkknight" + i]._xscale < 0) && (this.hitTest(_root["darkknight" + i]))) {
_root["darkknight" + i].blocking3 = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if ((_root["death" + i]._xscale < 0) && (this.hitTest(_root["death" + i]))) {
_root["death" + i].blocking4 = 1;
}
i++;
}
}
Instance of Symbol 440 MovieClip in Frame 817
onClipEvent (enterFrame) {
_alpha = 0;
var i = 0;
while (i > 10) {
if ((_root["troll" + i]._xscale > 0) && (this.hitTest(_root["troll" + i]))) {
_root["troll" + i].blocking = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i > 10) {
if ((_root["demon" + i]._xscale > 0) && (this.hitTest(_root["demon" + i]))) {
_root["demon" + i].blocking2 = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i > 10) {
if ((_root["darkknight" + i]._xscale > 0) && (this.hitTest(_root["darkknight" + i]))) {
_root["darkknight" + i].blocking3 = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i > 10) {
if ((_root["death" + i]._xscale > 0) && (this.hitTest(_root["death" + i]))) {
_root["death" + i].blocking4 = 1;
}
i++;
}
}
Instance of Symbol 440 MovieClip in Frame 817
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
_alpha = 0;
if ((_root["troll" + i]._xscale < 0) && (this.hitTest(_root["troll" + i]))) {
_root["troll" + i].blocking = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if ((_root["demon" + i]._xscale < 0) && (this.hitTest(_root["demon" + i]))) {
_root["demon" + i].blocking2 = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if ((_root["darkknight" + i]._xscale < 0) && (this.hitTest(_root["darkknight" + i]))) {
_root["darkknight" + i].blocking3 = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if ((_root["death" + i]._xscale < 0) && (this.hitTest(_root["death" + i]))) {
_root["death" + i].blocking4 = 1;
}
i++;
}
}
Instance of Symbol 416 MovieClip "demon1" in Frame 817
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (this.hitTest(_root.player) && (_root.player._currentframe <= 3)) {
this.gotoAndStop("attack");
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (this._currentframe == 3) {
this.gotoAndStop(3);
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (_root.player._x > _x) {
_xscale = -60;
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (_root.player._x < _x) {
_xscale = 60;
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (this.hitTest(_root.player) && ((((_root.player._currentframe <= 3) || (_root.player._currentframe == 8)) || (_root.player._currentframe == 6)) || (_root.player._currentframe == 11))) {
this.gotoAndStop("attack");
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
distance = Math.sqrt(((_root.player._x - this._x) * (_root.player._x - this._x)) + ((_root.player._y - this._y) * (_root.player._y - this._y)));
if (blocking2 == 0) {
if ((distance < 225) && (!this.hitTest(_root.player))) {
if ((_currentframe != 5) && (_currentframe != 6)) {
if (_x >= _root.player._x) {
this.gotoAndStop(3);
this._x = this._x - 4;
} else if (_x < _root.player._x) {
this.gotoAndStop(3);
this._x = this._x + 4;
}
}
} else if (((!this.hitTest(_root.player)) && (_currentframe != 5)) && (_currentframe != 6)) {
gotoAndStop (1);
}
} else if (blocking2 == 1) {
if ((distance < 225) && (!this.hitTest(_root.player))) {
if ((_currentframe != 5) && (_currentframe != 6)) {
if (_x >= _root.player._x) {
this.gotoAndStop(1);
this._x = this._x - 0;
} else if (_x < _root.player._x) {
this.gotoAndStop(1);
this._x = this._x + 0;
}
}
} else if (((!this.hitTest(_root.player)) && (_currentframe != 5)) && (_currentframe != 6)) {
gotoAndStop (1);
}
}
}
}
Instance of Symbol 584 MovieClip "pauseaing" in Frame 817
onClipEvent (enterFrame) {
this._x = _root.player._x;
}
Instance of Symbol 585 MovieClip "pauseaing2" in Frame 817
onClipEvent (enterFrame) {
this._x = _root.player._x;
}
Instance of Symbol 588 MovieClip "flasha" in Frame 817
onClipEvent (enterFrame) {
_x = _root.player._x;
if (_root.blink._currentframe == 1) {
if (Key.isDown(37)) {
this._x = _x - 7;
} else if (Key.isDown(39)) {
this._x = _x + 7;
}
} else if (Key.isDown(37)) {
this._x = _x;
} else if (Key.isDown(39)) {
this._x = _x;
}
}
Instance of Symbol 590 MovieClip in Frame 817
onClipEvent (enterFrame) {
this._x = _root.player._x;
}
Instance of Symbol 614 MovieClip "gomenu" in Frame 817
onClipEvent (enterFrame) {
_x = _root.player._x;
if (_root.blink._currentframe == 1) {
if (Key.isDown(37)) {
this._x = _x - 0;
} else if (Key.isDown(39)) {
this._x = _x + 0;
}
} else if (Key.isDown(37)) {
this._x = _x;
} else if (Key.isDown(39)) {
this._x = _x;
}
}
Instance of Symbol 618 MovieClip "fadeout" in Frame 817
onClipEvent (enterFrame) {
this._x = _root.player._x;
}
Instance of Symbol 674 MovieClip "shopfor" in Frame 817
onClipEvent (enterFrame) {
this._x = _root.player._x;
this._alpha = 100;
}
Instance of Symbol 700 MovieClip "maze" in Frame 817
onClipEvent (enterFrame) {
_x = _root.player._x;
if (_root.blink._currentframe == 1) {
if (Key.isDown(37)) {
this._x = _x - 0;
} else if (Key.isDown(39)) {
this._x = _x + 0;
}
} else if (Key.isDown(37)) {
this._x = _x;
} else if (Key.isDown(39)) {
this._x = _x;
}
}
Instance of Symbol 702 MovieClip "presse" in Frame 817
onClipEvent (enterFrame) {
_x = _root.player._x;
if (_root.blink._currentframe == 1) {
if (Key.isDown(37)) {
this._x = _x - 0;
} else if (Key.isDown(39)) {
this._x = _x + 0;
}
} else if (Key.isDown(37)) {
this._x = _x;
} else if (Key.isDown(39)) {
this._x = _x;
}
}
Instance of Symbol 704 MovieClip "presse2" in Frame 817
onClipEvent (enterFrame) {
_x = _root.player._x;
if (_root.blink._currentframe == 1) {
if (Key.isDown(37)) {
this._x = _x - 0;
} else if (Key.isDown(39)) {
this._x = _x + 0;
}
} else if (Key.isDown(37)) {
this._x = _x;
} else if (Key.isDown(39)) {
this._x = _x;
}
}
Instance of Symbol 707 MovieClip "fadetolevel" in Frame 817
onClipEvent (enterFrame) {
this._x = _root.player._x;
}
Frame 818
stop();
_root.kc._visible = true;
_root.kc._alpha = 100;
_root.ka._visible = true;
_root.ka._alpha = 100;
stopAllSounds();
_root.checkpoint = 1;
_root._x = 0;
Instance of Symbol 86 MovieClip "kc" in Frame 818
onClipEvent (enterFrame) {
var my_date = new Date();
var hours = my_date.getHours();
gotoAndStop(statet);
if ((hours > 4) && (hours < 10)) {
this.backg.gotoAndStop(1);
statet = 1;
}
if ((hours > 9) && (hours < 11)) {
this.backg.gotoAndStop(1);
statet = 2;
}
if ((hours > 12) && (hours < 18)) {
this.backg.gotoAndStop(2);
statet = 3;
}
if (hours > 17) {
this.backg.gotoAndStop(3);
statet = 4;
}
}
Frame 819
_root.presse._visible = false;
_root.presse2._visible = false;
_root.shopfor._visible = false;
moneySave = _root.moola.money;
fix = 0;
function stopall(tgt) {
for (var _local2 in tgt) {
tgt[_local2].stop();
stopall(tgt[_local2]);
}
}
function playall(tgt) {
for (var _local2 in tgt) {
tgt[_local2].play();
playall(tgt[_local2]);
}
}
var i = 0;
while (i < 10) {
_root["troll" + i].blocking = 0;
i++;
}
var i = 0;
while (i < 10) {
_root["demon" + i].blocking2 = 0;
i++;
}
var i = 0;
while (i < 10) {
_root["darkknight" + i].blocking3 = 0;
i++;
}
var i = 0;
while (i < 10) {
_root["death" + i].blocking4 = 0;
i++;
}
stop();
pausea = 0;
trollkill = 0;
gettinghit = 0;
deathkill2 = 0;
dknight3 = 0;
trollkill2 = 0;
demonkill2 = 0;
trollis = 0;
win1 = 0;
if (_root.cmon == 1) {
_root.moola.money = 0;
}
_root.forpant._visible = false;
Instance of Symbol 777 MovieClip "backgrounda" in Frame 819
onClipEvent (enterFrame) {
this._x = _root.player._x / 1.123;
}
Instance of Symbol 308 MovieClip in Frame 819
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.shopfor._currentframe == 1)) {
_root.presse2._visible = true;
} else {
if (!this.hitTest(_root.player)) {
_root.presse2._visible = false;
}
if (shopfor._currentframe != 2) {
_root.presse2._visible = false;
}
}
}
onClipEvent (enterFrame) {
if ((this.hitTest(_root.player) && (_root.shopfor._currentframe == 1)) && (Key.isDown(69))) {
_root.shopfor._visible = true;
_root.shopfor.gotoAndPlay(2);
_root.pauseaing2.gotoAndStop(2);
}
}
Instance of Symbol 314 MovieClip "asf" in Frame 819
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (this._currentframe == 1)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 314 MovieClip "asfa" in Frame 819
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (this._currentframe == 1)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 318 MovieClip in Frame 819
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
this.heart.gotoAndStop(2);
}
}
Instance of Symbol 488 MovieClip "lives" in Frame 819
onClipEvent (enterFrame) {
_x = _root.player._x;
if (_root.blink._currentframe == 1) {
if (Key.isDown(37)) {
this._x = _x - 0;
} else if (Key.isDown(39)) {
this._x = _x + 0;
}
} else if (Key.isDown(37)) {
this._x = _x;
} else if (Key.isDown(39)) {
this._x = _x;
}
}
Instance of Symbol 460 MovieClip "bar" in Frame 819
onClipEvent (enterFrame) {
_x = _root.player._x;
if (_root.blink._currentframe == 1) {
if (Key.isDown(37)) {
this._x = _x - 0;
} else if (Key.isDown(39)) {
this._x = _x + 0;
}
} else if (Key.isDown(37)) {
this._x = _x;
} else if (Key.isDown(39)) {
this._x = _x;
}
}
Instance of Symbol 489 MovieClip "money" in Frame 819
onClipEvent (enterFrame) {
_x = _root.player._x;
if (_root.blink._currentframe == 1) {
if (Key.isDown(37)) {
this._x = _x - 0;
} else if (Key.isDown(39)) {
this._x = _x + 0;
}
} else if (Key.isDown(37)) {
this._x = _x;
} else if (Key.isDown(39)) {
this._x = _x;
}
}
Instance of Symbol 575 MovieClip "player" in Frame 819
onClipEvent (enterFrame) {
if (_root.player._name == "player") {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
_visible = true;
_alpha = 100;
if (this._currentframe <= 3) {
if (!grounded) {
yspeed = yspeed + grav;
_y = (_y + yspeed);
}
if (this._currentframe != 4) {
if (Key.isDown(37)) {
_xscale = -100;
_x = (_x - speed);
if (this._currentframe == 3) {
} else {
(this.gotoAndStop(2));// not popped
}
}
if (Key.isDown(39)) {
_xscale = 100;
_x = (_x + speed);
if (this._currentframe == 3) {
} else {
(this.gotoAndStop(2));// not popped
}
}
if ((Key.isDown(32) && (this._currentframe != 3)) && (grounded)) {
this.gotoAndStop(3);
}
}
while (_root.ground.hitTest(_x, _y - h, true)) {
_y = (_y + 0.1);
}
while (_root.ground.hitTest(_x + w, _y, true)) {
_x = (_x - 0.1);
}
while (_root.ground.hitTest(_x - w, _y, true)) {
_x = (_x + 0.1);
}
((yspeed > 0) ? ((falling = true)(falling = true)(falling = true)) : null);
if (_root.ground.hitTest(_x, _y + h, true) && (falling == true)) {
((this._currentframe == 3) ? (jumpa.play()) : null);
grounded = true;
yspeed = 0;
falling = false;
} else {
grounded = false;
}
while (_root.ground.hitTest(_x, _y + h, true)) {
_y = (_y - 0.1);
}
if (!((((!Key.isDown(39)) && (!Key.isDown(37))) && (this._currentframe != 3)) && (this._currentframe != 4))) {
} else {
(this.gotoAndStop(1));// not popped
}
} else if (Key.isDown(32)) {
this.gotoAndStop(3);
jump.gotoAndPlay(5);
}
}
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if (this._currentframe <= 3) {
if (Key.isDown(17) && (_root.blahh.cycle._currentframe == 2)) {
_x = _root.tankid._x;
_root.tankid = "none";
_visible = true;
}
}
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if ((this._currentframe <= 3) && (_root.blahh.cycle._currentframe != 2)) {
if ((Key.isDown(32) && (this._currentframe != 3)) && (grounded)) {
if ((this._currentframe == 2) && (this._xscale == 100)) {
this._x = this._x - this.speed;
} else if ((this._currentframe == 2) && (this._xscale == 100)) {
this._x = this._x + this.speed;
}
}
}
}
cx = cx + (_x - cx);
_root._x = (Stage.width / 2) - cx;
}
}
on (keyPress "a") {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if (this._currentframe <= 2) {
this.gotoAndStop("punch");
}
}
}
}
on (keyPress "A") {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if (this._currentframe <= 2) {
this.gotoAndStop("punch");
}
}
}
}
on (keyPress "s") {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if (this._currentframe <= 2) {
this.gotoAndStop("slit");
}
}
}
}
on (keyPress "S") {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if (this._currentframe <= 2) {
this.gotoAndStop("slit");
}
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if (this._y > 430) {
this.gotoAndStop(1);
_x = defX;
_y = defY;
_root.def.play();
_root.blink.play();
}
if (Key.isDown(37) && (Key.isDown(39) && (Key.isDown(40) && (this._currentframe == 2)))) {
this.gotoAndStop(1);
}
}
}
}
on (keyPress "c") {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if ((yspeed == 0) && (_root.hud.cpt != 0)) {
_root.cp.play();
defX = _x;
defY = _y;
_root.hud.cpt--;
}
}
}
}
on (keyPress "d") {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if (this._currentframe <= 2) {
this.gotoAndStop("block");
}
}
}
}
on (keyPress "D") {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if (this._currentframe <= 2) {
this.gotoAndStop("block");
}
}
}
}
onClipEvent (keyUp) {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if (this._currentframe == 6) {
this.gotoAndStop(1);
}
}
}
}
onClipEvent (enterFrame) {
this.useHandCursor = false;
}
onClipEvent (keyUp) {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if (this._currentframe == 9) {
this.gotoAndStop(1);
}
}
}
}
onClipEvent (enterFrame) {
_root.money._x = _x;
}
onClipEvent (enterFrame) {
_root.presse2._x = _x;
}
onClipEvent (enterFrame) {
_root.maze._x = _x;
}
onClipEvent (enterFrame) {
_root.moola._x = _x;
}
onClipEvent (enterFrame) {
_root.shopfor._x = _x;
}
onClipEvent (enterFrame) {
_root.gomenu._x = _x;
}
on (keyPress "p") {
_root.pauseaing.nextFrame();
}
on (keyPress "P") {
_root.pauseaing.nextFrame();
}
onClipEvent (enterFrame) {
_root.pauseaing._x = _x;
}
onClipEvent (enterFrame) {
_root.presse._x = _x;
}
onClipEvent (enterFrame) {
_root.stuff._x = _x;
}
on (keyPress "m") {
_root.gomenu.gotoAndStop(2);
}
on (keyPress "M") {
_root.gomenu.gotoAndStop(2);
}
onClipEvent (enterFrame) {
if (_root.win1 == 1) {
_root.lives.prevFrame();
_root.lives.prevFrame();
_root.lives.prevFrame();
_root.win1 = 0;
}
}
Instance of Symbol 440 MovieClip in Frame 819
onClipEvent (enterFrame) {
_alpha = 0;
var i = 0;
while (i > 10) {
if ((_root["troll" + i]._xscale > 0) && (this.hitTest(_root["troll" + i]))) {
_root["troll" + i].blocking = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i > 10) {
if ((_root["demon" + i]._xscale > 0) && (this.hitTest(_root["demon" + i]))) {
_root["demon" + i].blocking2 = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i > 10) {
if ((_root["darkknight" + i]._xscale > 0) && (this.hitTest(_root["darkknight" + i]))) {
_root["darkknight" + i].blocking3 = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i > 10) {
if ((_root["death" + i]._xscale > 0) && (this.hitTest(_root["death" + i]))) {
_root["death" + i].blocking4 = 1;
}
i++;
}
}
Instance of Symbol 441 MovieClip in Frame 819
onClipEvent (enterFrame) {
if (_root.ground.crate1._currentframe >= 2) {
this.gotoAndStop(2);
}
}
Instance of Symbol 849 MovieClip "death1" in Frame 819
onClipEvent (enterFrame) {
if ((this._currentframe == 3) && (this.hitTest(_root.player))) {
this.gotoAndStop(3);
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if ((this.hitTest(_root.player) && (_root.player._currentframe <= 2)) && (this._currentframe != 3)) {
this.gotoAndStop("attack");
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (this._currentframe == 3) {
this.gotoAndStop(3);
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (_root.player._x > _x) {
_xscale = -100;
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (_root.player._x < _x) {
_xscale = 100;
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if ((this.hitTest(_root.player) && (this._currentframe != 3)) && ((((_root.player._currentframe <= 3) || (_root.player._currentframe == 8)) || (_root.player._currentframe == 6)) || (_root.player._currentframe == 11))) {
this.gotoAndStop("attack");
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
distance = Math.sqrt(((_root.player._x - this._x) * (_root.player._x - this._x)) + ((_root.player._y - this._y) * (_root.player._y - this._y)));
if (blocking4 == 0) {
if ((distance < 225) && (!this.hitTest(_root.player))) {
if ((_currentframe != 3) && (_currentframe != 6)) {
if (_x >= _root.player._x) {
this.gotoAndStop(4);
this._x = this._x - 4;
} else if (_x < _root.player._x) {
this.gotoAndStop(4);
this._x = this._x + 4;
}
}
} else if (((!this.hitTest(_root.player)) && (_currentframe != 3)) && (_currentframe != 6)) {
gotoAndStop (1);
}
} else if (blocking4 == 1) {
if ((distance < 225) && (!this.hitTest(_root.player))) {
if ((_currentframe != 3) && (_currentframe != 6)) {
if (_x >= _root.player._x) {
this.gotoAndStop(1);
this._x = this._x - 0;
} else if (_x < _root.player._x) {
this.gotoAndStop(1);
this._x = this._x + 0;
}
}
} else if (((!this.hitTest(_root.player)) && (_currentframe != 3)) && (_currentframe != 6)) {
gotoAndStop (1);
}
}
}
}
Instance of Symbol 441 MovieClip in Frame 819
onClipEvent (enterFrame) {
if (_root.ground.crate2._currentframe >= 2) {
this.gotoAndStop(2);
}
}
Instance of Symbol 441 MovieClip in Frame 819
onClipEvent (enterFrame) {
if (_root.ground.crate2._currentframe >= 2) {
this.gotoAndStop(2);
}
}
Instance of Symbol 416 MovieClip "demon1" in Frame 819
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (this.hitTest(_root.player) && (_root.player._currentframe <= 3)) {
this.gotoAndStop("attack");
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (this._currentframe == 3) {
this.gotoAndStop(3);
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (_root.player._x > _x) {
_xscale = -60;
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (_root.player._x < _x) {
_xscale = 60;
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (this.hitTest(_root.player) && ((((_root.player._currentframe <= 3) || (_root.player._currentframe == 8)) || (_root.player._currentframe == 6)) || (_root.player._currentframe == 11))) {
this.gotoAndStop("attack");
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
distance = Math.sqrt(((_root.player._x - this._x) * (_root.player._x - this._x)) + ((_root.player._y - this._y) * (_root.player._y - this._y)));
if (blocking2 == 0) {
if ((distance < 225) && (!this.hitTest(_root.player))) {
if ((_currentframe != 5) && (_currentframe != 6)) {
if (_x >= _root.player._x) {
this.gotoAndStop(3);
this._x = this._x - 4;
} else if (_x < _root.player._x) {
this.gotoAndStop(3);
this._x = this._x + 4;
}
}
} else if (((!this.hitTest(_root.player)) && (_currentframe != 5)) && (_currentframe != 6)) {
gotoAndStop (1);
}
} else if (blocking2 == 1) {
if ((distance < 225) && (!this.hitTest(_root.player))) {
if ((_currentframe != 5) && (_currentframe != 6)) {
if (_x >= _root.player._x) {
this.gotoAndStop(1);
this._x = this._x - 0;
} else if (_x < _root.player._x) {
this.gotoAndStop(1);
this._x = this._x + 0;
}
}
} else if (((!this.hitTest(_root.player)) && (_currentframe != 5)) && (_currentframe != 6)) {
gotoAndStop (1);
}
}
}
}
Instance of Symbol 441 MovieClip in Frame 819
onClipEvent (enterFrame) {
if (_root.ground.crate1._currentframe >= 2) {
this.gotoAndStop(2);
}
}
Instance of Symbol 416 MovieClip "demon2" in Frame 819
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (this.hitTest(_root.player) && (_root.player._currentframe <= 3)) {
this.gotoAndStop("attack");
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (this._currentframe == 3) {
this.gotoAndStop(3);
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (_root.player._x > _x) {
_xscale = -60;
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (_root.player._x < _x) {
_xscale = 60;
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (this.hitTest(_root.player) && ((((_root.player._currentframe <= 3) || (_root.player._currentframe == 8)) || (_root.player._currentframe == 6)) || (_root.player._currentframe == 11))) {
this.gotoAndStop("attack");
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
distance = Math.sqrt(((_root.player._x - this._x) * (_root.player._x - this._x)) + ((_root.player._y - this._y) * (_root.player._y - this._y)));
if (blocking2 == 0) {
if ((distance < 225) && (!this.hitTest(_root.player))) {
if ((_currentframe != 5) && (_currentframe != 6)) {
if (_x >= _root.player._x) {
this.gotoAndStop(3);
this._x = this._x - 4;
} else if (_x < _root.player._x) {
this.gotoAndStop(3);
this._x = this._x + 4;
}
}
} else if (((!this.hitTest(_root.player)) && (_currentframe != 5)) && (_currentframe != 6)) {
gotoAndStop (1);
}
} else if (blocking2 == 1) {
if ((distance < 225) && (!this.hitTest(_root.player))) {
if ((_currentframe != 5) && (_currentframe != 6)) {
if (_x >= _root.player._x) {
this.gotoAndStop(1);
this._x = this._x - 0;
} else if (_x < _root.player._x) {
this.gotoAndStop(1);
this._x = this._x + 0;
}
}
} else if (((!this.hitTest(_root.player)) && (_currentframe != 5)) && (_currentframe != 6)) {
gotoAndStop (1);
}
}
}
}
Instance of Symbol 438 MovieClip "darkknight1" in Frame 819
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (this.hitTest(_root.player) && (_root.player._currentframe <= 3)) {
this.gotoAndStop("attack");
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (this._currentframe == 3) {
this.gotoAndStop(3);
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (_root.player._x > _x) {
_xscale = -65;
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (_root.player._x < _x) {
_xscale = 65;
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (this.hitTest(_root.player) && ((((_root.player._currentframe <= 3) || (_root.player._currentframe == 8)) || (_root.player._currentframe == 6)) || (_root.player._currentframe == 11))) {
this.gotoAndStop("attack");
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
distance = Math.sqrt(((_root.player._x - this._x) * (_root.player._x - this._x)) + ((_root.player._y - this._y) * (_root.player._y - this._y)));
if (blocking3 == 0) {
if ((distance < 225) && (!this.hitTest(_root.player))) {
if ((_currentframe != 3) && (_currentframe != 6)) {
if (_x >= _root.player._x) {
this.gotoAndStop(4);
this._x = this._x - 4;
} else if (_x < _root.player._x) {
this.gotoAndStop(4);
this._x = this._x + 4;
}
}
} else if (((!this.hitTest(_root.player)) && (_currentframe != 3)) && (_currentframe != 6)) {
gotoAndStop (1);
}
} else if (blocking3 == 1) {
if ((distance < 225) && (!this.hitTest(_root.player))) {
if ((_currentframe != 3) && (_currentframe != 6)) {
if (_x >= _root.player._x) {
this.gotoAndStop(1);
this._x = this._x - 0;
} else if (_x < _root.player._x) {
this.gotoAndStop(1);
this._x = this._x + 0;
}
}
} else if (((!this.hitTest(_root.player)) && (_currentframe != 3)) && (_currentframe != 6)) {
gotoAndStop (1);
}
}
}
}
Instance of Symbol 441 MovieClip in Frame 819
onClipEvent (enterFrame) {
if (_root.ground.crate4._currentframe >= 2) {
this.gotoAndStop(2);
}
}
Instance of Symbol 441 MovieClip in Frame 819
onClipEvent (enterFrame) {
if (_root.ground.crate4._currentframe >= 2) {
this.gotoAndStop(2);
}
}
Instance of Symbol 441 MovieClip in Frame 819
onClipEvent (enterFrame) {
if (_root.ground.crate5._currentframe >= 2) {
this.gotoAndStop(2);
}
}
Instance of Symbol 441 MovieClip in Frame 819
onClipEvent (enterFrame) {
if (_root.ground.crate5._currentframe >= 2) {
this.gotoAndStop(2);
}
}
Instance of Symbol 441 MovieClip in Frame 819
onClipEvent (enterFrame) {
if (_root.ground.crate6._currentframe >= 2) {
this.gotoAndStop(2);
}
}
Instance of Symbol 441 MovieClip in Frame 819
onClipEvent (enterFrame) {
if (_root.ground.crate8._currentframe >= 2) {
this.gotoAndStop(2);
}
}
Instance of Symbol 440 MovieClip in Frame 819
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
_alpha = 0;
if (this.hitTest(_root["troll" + i])) {
_root["troll" + i].blocking = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if ((_root["demon" + i]._xscale > 0) && (this.hitTest(_root["demon" + i]))) {
_root["demon" + i].blocking2 = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if (this.hitTest(_root["darkknight" + i])) {
_root["darkknight" + i].blocking3 = 1;
}
i++;
}
}
Instance of Symbol 440 MovieClip in Frame 819
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
_alpha = 0;
if (this.hitTest(_root["troll" + i])) {
_root["troll" + i].blocking = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if ((_root["demon" + i]._xscale > 0) && (this.hitTest(_root["demon" + i]))) {
_root["demon" + i].blocking2 = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if (this.hitTest(_root["darkknight" + i])) {
_root["darkknight" + i].blocking3 = 1;
}
i++;
}
}
Instance of Symbol 440 MovieClip in Frame 819
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
_alpha = 0;
if (this.hitTest(_root["troll" + i])) {
_root["troll" + i].blocking = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if ((_root["demon" + i]._xscale > 0) && (this.hitTest(_root["demon" + i]))) {
_root["demon" + i].blocking2 = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if (this.hitTest(_root["darkknight" + i])) {
_root["darkknight" + i].blocking3 = 1;
}
i++;
}
}
Instance of Symbol 440 MovieClip in Frame 819
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
_alpha = 0;
if (this.hitTest(_root["troll" + i])) {
_root["troll" + i].blocking = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if ((_root["demon" + i]._xscale > 0) && (this.hitTest(_root["demon" + i]))) {
_root["demon" + i].blocking2 = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if (this.hitTest(_root["darkknight" + i])) {
_root["darkknight" + i].blocking3 = 1;
}
i++;
}
}
Instance of Symbol 440 MovieClip in Frame 819
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
_alpha = 0;
if (this.hitTest(_root["troll" + i])) {
_root["troll" + i].blocking = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if ((_root["demon" + i]._xscale > 0) && (this.hitTest(_root["demon" + i]))) {
_root["demon" + i].blocking2 = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if (this.hitTest(_root["darkknight" + i])) {
_root["darkknight" + i].blocking3 = 1;
}
i++;
}
}
Instance of Symbol 384 MovieClip "troll1" in Frame 819
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (this.hitTest(_root.player) && (_root.player._currentframe <= 3)) {
this.gotoAndStop("attack");
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (this._currentframe == 3) {
this.gotoAndStop(3);
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (_root.player._x > _x) {
_xscale = -100;
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (_root.player._x < _x) {
_xscale = 100;
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (this.hitTest(_root.player) && ((((_root.player._currentframe <= 3) || (_root.player._currentframe == 8)) || (_root.player._currentframe == 6)) || (_root.player._currentframe == 11))) {
this.gotoAndStop("attack");
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
distance = Math.sqrt(((_root.player._x - this._x) * (_root.player._x - this._x)) + ((_root.player._y - this._y) * (_root.player._y - this._y)));
if (blocking == 0) {
if ((distance < 225) && (!this.hitTest(_root.player))) {
if ((_currentframe != 3) && (_currentframe != 6)) {
if (_x >= _root.player._x) {
this.gotoAndStop(4);
this._x = this._x - 4;
} else if (_x < _root.player._x) {
this.gotoAndStop(4);
this._x = this._x + 4;
}
}
} else if (((!this.hitTest(_root.player)) && (_currentframe != 3)) && (_currentframe != 6)) {
gotoAndStop (1);
}
} else if (blocking == 1) {
if ((distance < 225) && (!this.hitTest(_root.player))) {
if ((_currentframe != 3) && (_currentframe != 6)) {
if (_x >= _root.player._x) {
this.gotoAndStop(1);
this._x = this._x - 0;
} else if (_x < _root.player._x) {
this.gotoAndStop(1);
this._x = this._x + 0;
}
}
} else if (((!this.hitTest(_root.player)) && (_currentframe != 3)) && (_currentframe != 6)) {
gotoAndStop (1);
}
}
}
}
onClipEvent (enterFrame) {
if (_root.trollis == 0) {
this._visible = true;
}
}
onClipEvent (enterFrame) {
if (_root.trollis == 1) {
this._visible = false;
this.gotoAndStop("dead");
}
}
onClipEvent (enterFrame) {
if (this._currentframe >= 6) {
this._visible = false;
this.removeMovieClip();
}
}
Instance of Symbol 438 MovieClip "darkknight2" in Frame 819
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (this.hitTest(_root.player) && (_root.player._currentframe <= 3)) {
this.gotoAndStop("attack");
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (this._currentframe == 3) {
this.gotoAndStop(3);
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (_root.player._x > _x) {
_xscale = -65;
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (_root.player._x < _x) {
_xscale = 65;
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (this.hitTest(_root.player) && ((((_root.player._currentframe <= 3) || (_root.player._currentframe == 8)) || (_root.player._currentframe == 6)) || (_root.player._currentframe == 11))) {
this.gotoAndStop("attack");
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
distance = Math.sqrt(((_root.player._x - this._x) * (_root.player._x - this._x)) + ((_root.player._y - this._y) * (_root.player._y - this._y)));
if (blocking3 == 0) {
if ((distance < 225) && (!this.hitTest(_root.player))) {
if ((_currentframe != 3) && (_currentframe != 6)) {
if (_x >= _root.player._x) {
this.gotoAndStop(4);
this._x = this._x - 4;
} else if (_x < _root.player._x) {
this.gotoAndStop(4);
this._x = this._x + 4;
}
}
} else if (((!this.hitTest(_root.player)) && (_currentframe != 3)) && (_currentframe != 6)) {
gotoAndStop (1);
}
} else if (blocking3 == 1) {
if ((distance < 225) && (!this.hitTest(_root.player))) {
if ((_currentframe != 3) && (_currentframe != 6)) {
if (_x >= _root.player._x) {
this.gotoAndStop(1);
this._x = this._x - 0;
} else if (_x < _root.player._x) {
this.gotoAndStop(1);
this._x = this._x + 0;
}
}
} else if (((!this.hitTest(_root.player)) && (_currentframe != 3)) && (_currentframe != 6)) {
gotoAndStop (1);
}
}
}
}
Instance of Symbol 445 MovieClip in Frame 819
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.fadetolevel._currentframe == 1)) {
_root.fadetolevel.play();
}
}
Instance of Symbol 440 MovieClip in Frame 819
onClipEvent (enterFrame) {
_alpha = 0;
var i = 0;
while (i > 10) {
if ((_root["troll" + i]._xscale > 0) && (this.hitTest(_root["troll" + i]))) {
_root["troll" + i].blocking = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i > 10) {
if ((_root["demon" + i]._xscale > 0) && (this.hitTest(_root["demon" + i]))) {
_root["demon" + i].blocking2 = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i > 10) {
if ((_root["darkknight" + i]._xscale > 0) && (this.hitTest(_root["darkknight" + i]))) {
_root["darkknight" + i].blocking3 = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i > 10) {
if ((_root["death" + i]._xscale > 0) && (this.hitTest(_root["death" + i]))) {
_root["death" + i].blocking4 = 1;
}
i++;
}
}
Instance of Symbol 440 MovieClip in Frame 819
onClipEvent (enterFrame) {
_alpha = 0;
var i = 0;
while (i < 10) {
if ((_root["troll" + i]._xscale < 0) && (this.hitTest(_root["troll" + i]))) {
_root["troll" + i].blocking = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if ((_root["demon" + i]._xscale < 0) && (this.hitTest(_root["demon" + i]))) {
_root["demon" + i].blocking2 = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if ((_root["darkknight" + i]._xscale < 0) && (this.hitTest(_root["darkknight" + i]))) {
_root["darkknight" + i].blocking3 = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if ((_root["death" + i]._xscale < 0) && (this.hitTest(_root["death" + i]))) {
_root["death" + i].blocking4 = 1;
}
i++;
}
}
Instance of Symbol 584 MovieClip "pauseaing" in Frame 819
onClipEvent (enterFrame) {
this._x = _root.player._x;
}
Instance of Symbol 585 MovieClip "pauseaing2" in Frame 819
onClipEvent (enterFrame) {
this._x = _root.player._x;
}
Instance of Symbol 588 MovieClip "flasha" in Frame 819
onClipEvent (enterFrame) {
_x = _root.player._x;
if (_root.blink._currentframe == 1) {
if (Key.isDown(37)) {
this._x = _x - 7;
} else if (Key.isDown(39)) {
this._x = _x + 7;
}
} else if (Key.isDown(37)) {
this._x = _x;
} else if (Key.isDown(39)) {
this._x = _x;
}
}
Instance of Symbol 590 MovieClip in Frame 819
onClipEvent (enterFrame) {
this._x = _root.player._x;
}
Instance of Symbol 614 MovieClip "gomenu" in Frame 819
onClipEvent (enterFrame) {
_x = _root.player._x;
if (_root.blink._currentframe == 1) {
if (Key.isDown(37)) {
this._x = _x - 0;
} else if (Key.isDown(39)) {
this._x = _x + 0;
}
} else if (Key.isDown(37)) {
this._x = _x;
} else if (Key.isDown(39)) {
this._x = _x;
}
}
Instance of Symbol 618 MovieClip "fadeout" in Frame 819
onClipEvent (enterFrame) {
this._x = _root.player._x;
}
Instance of Symbol 674 MovieClip "shopfor" in Frame 819
onClipEvent (enterFrame) {
this._x = _root.player._x;
this._alpha = 100;
}
Instance of Symbol 700 MovieClip "maze" in Frame 819
onClipEvent (enterFrame) {
_x = _root.player._x;
if (_root.blink._currentframe == 1) {
if (Key.isDown(37)) {
this._x = _x - 0;
} else if (Key.isDown(39)) {
this._x = _x + 0;
}
} else if (Key.isDown(37)) {
this._x = _x;
} else if (Key.isDown(39)) {
this._x = _x;
}
}
Instance of Symbol 702 MovieClip "presse" in Frame 819
onClipEvent (enterFrame) {
_x = _root.player._x;
if (_root.blink._currentframe == 1) {
if (Key.isDown(37)) {
this._x = _x - 0;
} else if (Key.isDown(39)) {
this._x = _x + 0;
}
} else if (Key.isDown(37)) {
this._x = _x;
} else if (Key.isDown(39)) {
this._x = _x;
}
}
Instance of Symbol 704 MovieClip "presse2" in Frame 819
onClipEvent (enterFrame) {
_x = _root.player._x;
if (_root.blink._currentframe == 1) {
if (Key.isDown(37)) {
this._x = _x - 0;
} else if (Key.isDown(39)) {
this._x = _x + 0;
}
} else if (Key.isDown(37)) {
this._x = _x;
} else if (Key.isDown(39)) {
this._x = _x;
}
}
Instance of Symbol 707 MovieClip "fadetolevel" in Frame 819
onClipEvent (enterFrame) {
this._x = _root.player._x;
}
Frame 820
stop();
_root.kc._visible = true;
_root.kc._alpha = 100;
_root.ka._visible = true;
_root.ka._alpha = 100;
stopAllSounds();
_root._x = 0;
Instance of Symbol 86 MovieClip "kc" in Frame 820
onClipEvent (enterFrame) {
var my_date = new Date();
var hours = my_date.getHours();
gotoAndStop(statet);
if ((hours > 4) && (hours < 10)) {
this.backg.gotoAndStop(1);
statet = 1;
}
if ((hours > 9) && (hours < 11)) {
this.backg.gotoAndStop(1);
statet = 2;
}
if ((hours > 12) && (hours < 18)) {
this.backg.gotoAndStop(2);
statet = 3;
}
if (hours > 17) {
this.backg.gotoAndStop(3);
statet = 4;
}
}
Frame 821
_root.presse._visible = false;
_root.presse2._visible = false;
_root.shopfor._visible = false;
_root.shopfor.gotoAndStop(1);
fix = 0;
function stopall(tgt) {
for (var _local2 in tgt) {
tgt[_local2].stop();
stopall(tgt[_local2]);
}
}
function playall(tgt) {
for (var _local2 in tgt) {
tgt[_local2].play();
playall(tgt[_local2]);
}
}
var i = 0;
while (i < 10) {
_root["troll" + i].blocking = 0;
i++;
}
var i = 0;
while (i < 10) {
_root["demon" + i].blocking2 = 0;
i++;
}
var i = 0;
while (i < 10) {
_root["darkknight" + i].blocking3 = 0;
i++;
}
var i = 0;
while (i < 10) {
_root["death" + i].blocking4 = 0;
i++;
}
stop();
pausea = 0;
trollkill = 0;
gettinghit = 0;
deathkill2 = 0;
dknight3 = 0;
trollkill2 = 0;
demonkill2 = 0;
trollis = 0;
win1 = 0;
_root.forpant._visible = false;
Instance of Symbol 777 MovieClip "backgrounda" in Frame 821
onClipEvent (enterFrame) {
this._x = _root.player._x / 1.123;
}
Instance of Symbol 308 MovieClip in Frame 821
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.shopfor._currentframe == 1)) {
_root.presse2._visible = true;
} else {
if (!this.hitTest(_root.player)) {
_root.presse2._visible = false;
}
if (shopfor._currentframe != 2) {
_root.presse2._visible = false;
}
}
}
onClipEvent (enterFrame) {
if ((this.hitTest(_root.player) && (_root.shopfor._currentframe == 1)) && (Key.isDown(69))) {
_root.shopfor._visible = true;
_root.shopfor.gotoAndPlay(2);
_root.pauseaing2.gotoAndStop(2);
}
}
Instance of Symbol 318 MovieClip in Frame 821
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
this.heart.gotoAndStop(2);
}
}
Instance of Symbol 314 MovieClip "asf" in Frame 821
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (this._currentframe == 1)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 314 MovieClip in Frame 821
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (this._currentframe == 1)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 348 MovieClip in Frame 821
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (this._currentframe == 1)) {
_root.presse._visible = true;
} else if (!this.hitTest(_root.player)) {
_root.presse._visible = false;
}
}
onClipEvent (enterFrame) {
if ((this.hitTest(_root.player) && (this._currentframe == 1)) && (Key.isDown(69))) {
this.gotoAndStop(3);
}
}
onClipEvent (enterFrame) {
if (this._currentframe == 1) {
this.useHandCursor = false;
}
}
Instance of Symbol 488 MovieClip "lives" in Frame 821
onClipEvent (enterFrame) {
_x = _root.player._x;
if (_root.blink._currentframe == 1) {
if (Key.isDown(37)) {
this._x = _x - 0;
} else if (Key.isDown(39)) {
this._x = _x + 0;
}
} else if (Key.isDown(37)) {
this._x = _x;
} else if (Key.isDown(39)) {
this._x = _x;
}
}
Instance of Symbol 460 MovieClip "bar" in Frame 821
onClipEvent (enterFrame) {
_x = _root.player._x;
if (_root.blink._currentframe == 1) {
if (Key.isDown(37)) {
this._x = _x - 0;
} else if (Key.isDown(39)) {
this._x = _x + 0;
}
} else if (Key.isDown(37)) {
this._x = _x;
} else if (Key.isDown(39)) {
this._x = _x;
}
}
Instance of Symbol 489 MovieClip "money" in Frame 821
onClipEvent (enterFrame) {
_x = _root.player._x;
if (_root.blink._currentframe == 1) {
if (Key.isDown(37)) {
this._x = _x - 0;
} else if (Key.isDown(39)) {
this._x = _x + 0;
}
} else if (Key.isDown(37)) {
this._x = _x;
} else if (Key.isDown(39)) {
this._x = _x;
}
}
Instance of Symbol 575 MovieClip "player" in Frame 821
onClipEvent (enterFrame) {
if (_root.player._name == "player") {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
_visible = true;
_alpha = 100;
if (this._currentframe <= 3) {
if (!grounded) {
yspeed = yspeed + grav;
_y = (_y + yspeed);
}
if (this._currentframe != 4) {
if (Key.isDown(37)) {
_xscale = -100;
_x = (_x - speed);
if (this._currentframe == 3) {
} else {
(this.gotoAndStop(2));// not popped
}
}
if (Key.isDown(39)) {
_xscale = 100;
_x = (_x + speed);
if (this._currentframe == 3) {
} else {
(this.gotoAndStop(2));// not popped
}
}
if ((Key.isDown(32) && (this._currentframe != 3)) && (grounded)) {
this.gotoAndStop(3);
}
}
while (_root.ground.hitTest(_x, _y - h, true)) {
_y = (_y + 0.1);
}
while (_root.ground.hitTest(_x + w, _y, true)) {
_x = (_x - 0.1);
}
while (_root.ground.hitTest(_x - w, _y, true)) {
_x = (_x + 0.1);
}
((yspeed > 0) ? ((falling = true)(falling = true)(falling = true)) : null);
if (_root.ground.hitTest(_x, _y + h, true) && (falling == true)) {
((this._currentframe == 3) ? (jumpa.play()) : null);
grounded = true;
yspeed = 0;
falling = false;
} else {
grounded = false;
}
while (_root.ground.hitTest(_x, _y + h, true)) {
_y = (_y - 0.1);
}
if (!((((!Key.isDown(39)) && (!Key.isDown(37))) && (this._currentframe != 3)) && (this._currentframe != 4))) {
} else {
(this.gotoAndStop(1));// not popped
}
} else if (Key.isDown(32)) {
this.gotoAndStop(3);
jump.gotoAndPlay(5);
}
}
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if (this._currentframe <= 3) {
if (Key.isDown(17) && (_root.blahh.cycle._currentframe == 2)) {
_x = _root.tankid._x;
_root.tankid = "none";
_visible = true;
}
}
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if ((this._currentframe <= 3) && (_root.blahh.cycle._currentframe != 2)) {
if ((Key.isDown(32) && (this._currentframe != 3)) && (grounded)) {
if ((this._currentframe == 2) && (this._xscale == 100)) {
this._x = this._x - this.speed;
} else if ((this._currentframe == 2) && (this._xscale == 100)) {
this._x = this._x + this.speed;
}
}
}
}
cx = cx + (_x - cx);
_root._x = (Stage.width / 2) - cx;
}
}
on (keyPress "a") {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if (this._currentframe <= 2) {
this.gotoAndStop("punch");
}
}
}
}
on (keyPress "A") {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if (this._currentframe <= 2) {
this.gotoAndStop("punch");
}
}
}
}
on (keyPress "s") {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if (this._currentframe <= 2) {
this.gotoAndStop("slit");
}
}
}
}
on (keyPress "S") {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if (this._currentframe <= 2) {
this.gotoAndStop("slit");
}
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if (this._y > 430) {
this.gotoAndStop(1);
_x = defX;
_y = defY;
_root.def.play();
_root.blink.play();
}
if (Key.isDown(37) && (Key.isDown(39) && (Key.isDown(40) && (this._currentframe == 2)))) {
this.gotoAndStop(1);
}
}
}
}
on (keyPress "c") {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if ((yspeed == 0) && (_root.hud.cpt != 0)) {
_root.cp.play();
defX = _x;
defY = _y;
_root.hud.cpt--;
}
}
}
}
on (keyPress "d") {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if (this._currentframe <= 2) {
this.gotoAndStop("block");
}
}
}
}
on (keyPress "D") {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if (this._currentframe <= 2) {
this.gotoAndStop("block");
}
}
}
}
onClipEvent (keyUp) {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if (this._currentframe == 6) {
this.gotoAndStop(1);
}
}
}
}
onClipEvent (enterFrame) {
this.useHandCursor = false;
}
onClipEvent (keyUp) {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if (this._currentframe == 9) {
this.gotoAndStop(1);
}
}
}
}
onClipEvent (enterFrame) {
_root.money._x = _x;
}
onClipEvent (enterFrame) {
_root.presse2._x = _x;
}
onClipEvent (enterFrame) {
_root.maze._x = _x;
}
onClipEvent (enterFrame) {
_root.moola._x = _x;
}
onClipEvent (enterFrame) {
_root.shopfor._x = _x;
}
onClipEvent (enterFrame) {
_root.gomenu._x = _x;
}
on (keyPress "p") {
_root.pauseaing.nextFrame();
}
on (keyPress "P") {
_root.pauseaing.nextFrame();
}
onClipEvent (enterFrame) {
_root.pauseaing._x = _x;
}
onClipEvent (enterFrame) {
_root.presse._x = _x;
}
onClipEvent (enterFrame) {
_root.stuff._x = _x;
}
on (keyPress "m") {
_root.gomenu.gotoAndStop(2);
}
on (keyPress "M") {
_root.gomenu.gotoAndStop(2);
}
onClipEvent (enterFrame) {
if (_root.win1 == 1) {
_root.lives.prevFrame();
_root.lives.prevFrame();
_root.lives.prevFrame();
_root.win1 = 0;
}
}
Instance of Symbol 440 MovieClip in Frame 821
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
_alpha = 0;
if (this.hitTest(_root["troll" + i])) {
_root["troll" + i].blocking = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if ((_root["demon" + i]._xscale > 0) && (this.hitTest(_root["demon" + i]))) {
_root["demon" + i].blocking2 = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if (this.hitTest(_root["darkknight" + i])) {
_root["darkknight" + i].blocking3 = 1;
}
i++;
}
}
Instance of Symbol 445 MovieClip in Frame 821
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.fadetolevel._currentframe == 1)) {
_root.fadetolevel.play();
}
}
Instance of Symbol 849 MovieClip "death2" in Frame 821
onClipEvent (enterFrame) {
if ((this._currentframe == 3) && (this.hitTest(_root.player))) {
this.gotoAndStop(3);
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if ((this.hitTest(_root.player) && (_root.player._currentframe <= 2)) && (this._currentframe != 3)) {
this.gotoAndStop("attack");
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (this._currentframe == 3) {
this.gotoAndStop(3);
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (_root.player._x > _x) {
_xscale = -100;
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (_root.player._x < _x) {
_xscale = 100;
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if ((this.hitTest(_root.player) && (this._currentframe != 3)) && ((((_root.player._currentframe <= 3) || (_root.player._currentframe == 8)) || (_root.player._currentframe == 6)) || (_root.player._currentframe == 11))) {
this.gotoAndStop("attack");
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
distance = Math.sqrt(((_root.player._x - this._x) * (_root.player._x - this._x)) + ((_root.player._y - this._y) * (_root.player._y - this._y)));
if (blocking4 == 0) {
if ((distance < 225) && (!this.hitTest(_root.player))) {
if ((_currentframe != 3) && (_currentframe != 6)) {
if (_x >= _root.player._x) {
this.gotoAndStop(4);
this._x = this._x - 4;
} else if (_x < _root.player._x) {
this.gotoAndStop(4);
this._x = this._x + 4;
}
}
} else if (((!this.hitTest(_root.player)) && (_currentframe != 3)) && (_currentframe != 6)) {
gotoAndStop (1);
}
} else if (blocking4 == 1) {
if ((distance < 225) && (!this.hitTest(_root.player))) {
if ((_currentframe != 3) && (_currentframe != 6)) {
if (_x >= _root.player._x) {
this.gotoAndStop(1);
this._x = this._x - 0;
} else if (_x < _root.player._x) {
this.gotoAndStop(1);
this._x = this._x + 0;
}
}
} else if (((!this.hitTest(_root.player)) && (_currentframe != 3)) && (_currentframe != 6)) {
gotoAndStop (1);
}
}
}
}
Instance of Symbol 849 MovieClip "death1" in Frame 821
onClipEvent (enterFrame) {
if ((this._currentframe == 3) && (this.hitTest(_root.player))) {
this.gotoAndStop(3);
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if ((this.hitTest(_root.player) && (_root.player._currentframe <= 2)) && (this._currentframe != 3)) {
this.gotoAndStop("attack");
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (this._currentframe == 3) {
this.gotoAndStop(3);
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (_root.player._x > _x) {
_xscale = -100;
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (_root.player._x < _x) {
_xscale = 100;
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if ((this.hitTest(_root.player) && (this._currentframe != 3)) && ((((_root.player._currentframe <= 3) || (_root.player._currentframe == 8)) || (_root.player._currentframe == 6)) || (_root.player._currentframe == 11))) {
this.gotoAndStop("attack");
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
distance = Math.sqrt(((_root.player._x - this._x) * (_root.player._x - this._x)) + ((_root.player._y - this._y) * (_root.player._y - this._y)));
if (blocking4 == 0) {
if ((distance < 225) && (!this.hitTest(_root.player))) {
if ((_currentframe != 3) && (_currentframe != 6)) {
if (_x >= _root.player._x) {
this.gotoAndStop(4);
this._x = this._x - 4;
} else if (_x < _root.player._x) {
this.gotoAndStop(4);
this._x = this._x + 4;
}
}
} else if (((!this.hitTest(_root.player)) && (_currentframe != 3)) && (_currentframe != 6)) {
gotoAndStop (1);
}
} else if (blocking4 == 1) {
if ((distance < 225) && (!this.hitTest(_root.player))) {
if ((_currentframe != 3) && (_currentframe != 6)) {
if (_x >= _root.player._x) {
this.gotoAndStop(1);
this._x = this._x - 0;
} else if (_x < _root.player._x) {
this.gotoAndStop(1);
this._x = this._x + 0;
}
}
} else if (((!this.hitTest(_root.player)) && (_currentframe != 3)) && (_currentframe != 6)) {
gotoAndStop (1);
}
}
}
}
Instance of Symbol 416 MovieClip "demon1" in Frame 821
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (this.hitTest(_root.player) && (_root.player._currentframe <= 3)) {
this.gotoAndStop("attack");
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (this._currentframe == 3) {
this.gotoAndStop(3);
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (_root.player._x > _x) {
_xscale = -60;
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (_root.player._x < _x) {
_xscale = 60;
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (this.hitTest(_root.player) && ((((_root.player._currentframe <= 3) || (_root.player._currentframe == 8)) || (_root.player._currentframe == 6)) || (_root.player._currentframe == 11))) {
this.gotoAndStop("attack");
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
distance = Math.sqrt(((_root.player._x - this._x) * (_root.player._x - this._x)) + ((_root.player._y - this._y) * (_root.player._y - this._y)));
if (blocking2 == 0) {
if ((distance < 225) && (!this.hitTest(_root.player))) {
if ((_currentframe != 5) && (_currentframe != 6)) {
if (_x >= _root.player._x) {
this.gotoAndStop(3);
this._x = this._x - 4;
} else if (_x < _root.player._x) {
this.gotoAndStop(3);
this._x = this._x + 4;
}
}
} else if (((!this.hitTest(_root.player)) && (_currentframe != 5)) && (_currentframe != 6)) {
gotoAndStop (1);
}
} else if (blocking2 == 1) {
if ((distance < 225) && (!this.hitTest(_root.player))) {
if ((_currentframe != 5) && (_currentframe != 6)) {
if (_x >= _root.player._x) {
this.gotoAndStop(1);
this._x = this._x - 0;
} else if (_x < _root.player._x) {
this.gotoAndStop(1);
this._x = this._x + 0;
}
}
} else if (((!this.hitTest(_root.player)) && (_currentframe != 5)) && (_currentframe != 6)) {
gotoAndStop (1);
}
}
}
}
Instance of Symbol 441 MovieClip in Frame 821
onClipEvent (enterFrame) {
if (_root.ground.crate1._currentframe >= 2) {
this.gotoAndStop(2);
}
}
Instance of Symbol 441 MovieClip in Frame 821
onClipEvent (enterFrame) {
if (_root.ground.crate1._currentframe >= 2) {
this.gotoAndStop(2);
}
}
Instance of Symbol 441 MovieClip in Frame 821
onClipEvent (enterFrame) {
if (_root.ground.crate2._currentframe >= 2) {
this.gotoAndStop(2);
}
}
Instance of Symbol 441 MovieClip in Frame 821
onClipEvent (enterFrame) {
if (_root.ground.crate2._currentframe >= 2) {
this.gotoAndStop(2);
}
}
Instance of Symbol 441 MovieClip in Frame 821
onClipEvent (enterFrame) {
if (_root.ground.crate3._currentframe >= 2) {
this.gotoAndStop(2);
}
}
Instance of Symbol 441 MovieClip in Frame 821
onClipEvent (enterFrame) {
if (_root.ground.crate3._currentframe >= 2) {
this.gotoAndStop(2);
}
}
Instance of Symbol 441 MovieClip in Frame 821
onClipEvent (enterFrame) {
if (_root.ground.crate4._currentframe >= 2) {
this.gotoAndStop(2);
}
}
Instance of Symbol 441 MovieClip in Frame 821
onClipEvent (enterFrame) {
if (_root.ground.crate4._currentframe >= 2) {
this.gotoAndStop(2);
}
}
Instance of Symbol 441 MovieClip in Frame 821
onClipEvent (enterFrame) {
if (_root.ground.crate7._currentframe >= 2) {
this.gotoAndStop(2);
}
}
Instance of Symbol 441 MovieClip in Frame 821
onClipEvent (enterFrame) {
if (_root.ground.crate7._currentframe >= 2) {
this.gotoAndStop(2);
}
}
Instance of Symbol 441 MovieClip in Frame 821
onClipEvent (enterFrame) {
if (_root.ground.crate8._currentframe >= 2) {
this.gotoAndStop(2);
}
}
Instance of Symbol 441 MovieClip in Frame 821
onClipEvent (enterFrame) {
if (_root.ground.crate8._currentframe >= 2) {
this.gotoAndStop(2);
}
}
Instance of Symbol 440 MovieClip in Frame 821
onClipEvent (enterFrame) {
_alpha = 0;
var i = 0;
while (i > 10) {
if ((_root["troll" + i]._xscale > 0) && (this.hitTest(_root["troll" + i]))) {
_root["troll" + i].blocking = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i > 10) {
if ((_root["demon" + i]._xscale > 0) && (this.hitTest(_root["demon" + i]))) {
_root["demon" + i].blocking2 = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i > 10) {
if ((_root["darkknight" + i]._xscale > 0) && (this.hitTest(_root["darkknight" + i]))) {
_root["darkknight" + i].blocking3 = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i > 10) {
if ((_root["death" + i]._xscale > 0) && (this.hitTest(_root["death" + i]))) {
_root["death" + i].blocking4 = 1;
}
i++;
}
}
Instance of Symbol 440 MovieClip in Frame 821
onClipEvent (enterFrame) {
_alpha = 0;
var i = 0;
while (i < 10) {
if ((_root["troll" + i]._xscale < 0) && (this.hitTest(_root["troll" + i]))) {
_root["troll" + i].blocking = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if ((_root["demon" + i]._xscale < 0) && (this.hitTest(_root["demon" + i]))) {
_root["demon" + i].blocking2 = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if ((_root["darkknight" + i]._xscale < 0) && (this.hitTest(_root["darkknight" + i]))) {
_root["darkknight" + i].blocking3 = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if ((_root["death" + i]._xscale < 0) && (this.hitTest(_root["death" + i]))) {
_root["death" + i].blocking4 = 1;
}
i++;
}
}
Instance of Symbol 384 MovieClip "troll1" in Frame 821
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (this.hitTest(_root.player) && (_root.player._currentframe <= 3)) {
this.gotoAndStop("attack");
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (this._currentframe == 3) {
this.gotoAndStop(3);
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (_root.player._x > _x) {
_xscale = -100;
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (_root.player._x < _x) {
_xscale = 100;
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (this.hitTest(_root.player) && ((((_root.player._currentframe <= 3) || (_root.player._currentframe == 8)) || (_root.player._currentframe == 6)) || (_root.player._currentframe == 11))) {
this.gotoAndStop("attack");
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
distance = Math.sqrt(((_root.player._x - this._x) * (_root.player._x - this._x)) + ((_root.player._y - this._y) * (_root.player._y - this._y)));
if (blocking == 0) {
if ((distance < 225) && (!this.hitTest(_root.player))) {
if ((_currentframe != 3) && (_currentframe != 6)) {
if (_x >= _root.player._x) {
this.gotoAndStop(4);
this._x = this._x - 4;
} else if (_x < _root.player._x) {
this.gotoAndStop(4);
this._x = this._x + 4;
}
}
} else if (((!this.hitTest(_root.player)) && (_currentframe != 3)) && (_currentframe != 6)) {
gotoAndStop (1);
}
} else if (blocking == 1) {
if ((distance < 225) && (!this.hitTest(_root.player))) {
if ((_currentframe != 3) && (_currentframe != 6)) {
if (_x >= _root.player._x) {
this.gotoAndStop(1);
this._x = this._x - 0;
} else if (_x < _root.player._x) {
this.gotoAndStop(1);
this._x = this._x + 0;
}
}
} else if (((!this.hitTest(_root.player)) && (_currentframe != 3)) && (_currentframe != 6)) {
gotoAndStop (1);
}
}
}
}
onClipEvent (enterFrame) {
if (_root.forpant._visible == true) {
this.gotoAndStop(5);
}
}
Instance of Symbol 440 MovieClip in Frame 821
onClipEvent (enterFrame) {
_alpha = 0;
var i = 0;
while (i > 10) {
if ((_root["troll" + i]._xscale > 0) && (this.hitTest(_root["troll" + i]))) {
_root["troll" + i].blocking = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i > 10) {
if ((_root["demon" + i]._xscale > 0) && (this.hitTest(_root["demon" + i]))) {
_root["demon" + i].blocking2 = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i > 10) {
if ((_root["darkknight" + i]._xscale > 0) && (this.hitTest(_root["darkknight" + i]))) {
_root["darkknight" + i].blocking3 = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i > 10) {
if ((_root["death" + i]._xscale > 0) && (this.hitTest(_root["death" + i]))) {
_root["death" + i].blocking4 = 1;
}
i++;
}
}
Instance of Symbol 440 MovieClip in Frame 821
onClipEvent (enterFrame) {
_alpha = 0;
var i = 0;
while (i > 10) {
if ((_root["troll" + i]._xscale > 0) && (this.hitTest(_root["troll" + i]))) {
_root["troll" + i].blocking = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i > 10) {
if ((_root["demon" + i]._xscale > 0) && (this.hitTest(_root["demon" + i]))) {
_root["demon" + i].blocking2 = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i > 10) {
if ((_root["darkknight" + i]._xscale > 0) && (this.hitTest(_root["darkknight" + i]))) {
_root["darkknight" + i].blocking3 = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i > 10) {
if ((_root["death" + i]._xscale > 0) && (this.hitTest(_root["death" + i]))) {
_root["death" + i].blocking4 = 1;
}
i++;
}
}
Instance of Symbol 440 MovieClip in Frame 821
onClipEvent (enterFrame) {
_alpha = 0;
var i = 0;
while (i < 10) {
if ((_root["troll" + i]._xscale < 0) && (this.hitTest(_root["troll" + i]))) {
_root["troll" + i].blocking = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if ((_root["demon" + i]._xscale < 0) && (this.hitTest(_root["demon" + i]))) {
_root["demon" + i].blocking2 = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if ((_root["darkknight" + i]._xscale < 0) && (this.hitTest(_root["darkknight" + i]))) {
_root["darkknight" + i].blocking3 = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if ((_root["death" + i]._xscale < 0) && (this.hitTest(_root["death" + i]))) {
_root["death" + i].blocking4 = 1;
}
i++;
}
}
Instance of Symbol 440 MovieClip in Frame 821
onClipEvent (enterFrame) {
_alpha = 0;
var i = 0;
while (i < 10) {
if ((_root["troll" + i]._xscale < 0) && (this.hitTest(_root["troll" + i]))) {
_root["troll" + i].blocking = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if ((_root["demon" + i]._xscale < 0) && (this.hitTest(_root["demon" + i]))) {
_root["demon" + i].blocking2 = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if ((_root["darkknight" + i]._xscale < 0) && (this.hitTest(_root["darkknight" + i]))) {
_root["darkknight" + i].blocking3 = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if ((_root["death" + i]._xscale < 0) && (this.hitTest(_root["death" + i]))) {
_root["death" + i].blocking4 = 1;
}
i++;
}
}
Instance of Symbol 584 MovieClip "pauseaing" in Frame 821
onClipEvent (enterFrame) {
this._x = _root.player._x;
}
Instance of Symbol 585 MovieClip "pauseaing2" in Frame 821
onClipEvent (enterFrame) {
this._x = _root.player._x;
}
Instance of Symbol 588 MovieClip "flasha" in Frame 821
onClipEvent (enterFrame) {
_x = _root.player._x;
if (_root.blink._currentframe == 1) {
if (Key.isDown(37)) {
this._x = _x - 7;
} else if (Key.isDown(39)) {
this._x = _x + 7;
}
} else if (Key.isDown(37)) {
this._x = _x;
} else if (Key.isDown(39)) {
this._x = _x;
}
}
Instance of Symbol 590 MovieClip in Frame 821
onClipEvent (enterFrame) {
this._x = _root.player._x;
}
Instance of Symbol 614 MovieClip "gomenu" in Frame 821
onClipEvent (enterFrame) {
_x = _root.player._x;
if (_root.blink._currentframe == 1) {
if (Key.isDown(37)) {
this._x = _x - 0;
} else if (Key.isDown(39)) {
this._x = _x + 0;
}
} else if (Key.isDown(37)) {
this._x = _x;
} else if (Key.isDown(39)) {
this._x = _x;
}
}
Instance of Symbol 618 MovieClip "fadeout" in Frame 821
onClipEvent (enterFrame) {
this._x = _root.player._x;
}
Instance of Symbol 861 MovieClip "maze" in Frame 821
onClipEvent (enterFrame) {
_x = _root.player._x;
if (_root.blink._currentframe == 1) {
if (Key.isDown(37)) {
this._x = _x - 0;
} else if (Key.isDown(39)) {
this._x = _x + 0;
}
} else if (Key.isDown(37)) {
this._x = _x;
} else if (Key.isDown(39)) {
this._x = _x;
}
}
Instance of Symbol 702 MovieClip "presse" in Frame 821
onClipEvent (enterFrame) {
_x = _root.player._x;
if (_root.blink._currentframe == 1) {
if (Key.isDown(37)) {
this._x = _x - 0;
} else if (Key.isDown(39)) {
this._x = _x + 0;
}
} else if (Key.isDown(37)) {
this._x = _x;
} else if (Key.isDown(39)) {
this._x = _x;
}
}
Instance of Symbol 704 MovieClip "presse2" in Frame 821
onClipEvent (enterFrame) {
_x = _root.player._x;
if (_root.blink._currentframe == 1) {
if (Key.isDown(37)) {
this._x = _x - 0;
} else if (Key.isDown(39)) {
this._x = _x + 0;
}
} else if (Key.isDown(37)) {
this._x = _x;
} else if (Key.isDown(39)) {
this._x = _x;
}
}
Instance of Symbol 674 MovieClip "shopfor" in Frame 821
onClipEvent (enterFrame) {
this._x = _root.player._x;
this._alpha = 100;
}
Instance of Symbol 707 MovieClip "fadetolevel" in Frame 821
onClipEvent (enterFrame) {
this._x = _root.player._x;
}
Frame 822
stop();
_root.kc._visible = true;
_root.kc._alpha = 100;
_root.ka._visible = true;
_root.ka._alpha = 100;
stopAllSounds();
_root.checkpoint = 2;
_root._x = 0;
Instance of Symbol 86 MovieClip "kc" in Frame 822
onClipEvent (enterFrame) {
var my_date = new Date();
var hours = my_date.getHours();
gotoAndStop(statet);
if ((hours > 4) && (hours < 10)) {
this.backg.gotoAndStop(1);
statet = 1;
}
if ((hours > 9) && (hours < 11)) {
this.backg.gotoAndStop(1);
statet = 2;
}
if ((hours > 12) && (hours < 18)) {
this.backg.gotoAndStop(2);
statet = 3;
}
if (hours > 17) {
this.backg.gotoAndStop(3);
statet = 4;
}
}
Frame 823
_root.presse._visible = false;
_root.presse2._visible = false;
_root.shopfor._visible = false;
moneySave = _root.moola.money;
fix = 0;
function stopall(tgt) {
for (var _local2 in tgt) {
tgt[_local2].stop();
stopall(tgt[_local2]);
}
}
function playall(tgt) {
for (var _local2 in tgt) {
tgt[_local2].play();
playall(tgt[_local2]);
}
}
var i = 0;
while (i < 10) {
_root["troll" + i].blocking = 0;
i++;
}
var i = 0;
while (i < 10) {
_root["demon" + i].blocking2 = 0;
i++;
}
var i = 0;
while (i < 10) {
_root["darkknight" + i].blocking3 = 0;
i++;
}
var i = 0;
while (i < 10) {
_root["death" + i].blocking4 = 0;
i++;
}
stop();
pausea = 0;
trollkill = 0;
gettinghit = 0;
deathkill2 = 0;
dknight3 = 0;
trollkill2 = 0;
demonkill2 = 0;
trollis = 0;
win1 = 0;
if (_root.cmon == 1) {
_root.moola.money = 0;
}
_root.forpant._visible = false;
cavekill2 = 0;
cavekill = 0;
Instance of Symbol 869 MovieClip "backgrounda" in Frame 823
onClipEvent (enterFrame) {
this._x = _root.player._x / 1.123;
}
Instance of Symbol 314 MovieClip "xdcvdsxvs" in Frame 823
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (this._currentframe == 1)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 318 MovieClip in Frame 823
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
this.heart.gotoAndStop(2);
}
}
Instance of Symbol 318 MovieClip in Frame 823
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
this.heart.gotoAndStop(2);
}
}
Instance of Symbol 348 MovieClip in Frame 823
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (this._currentframe == 1)) {
_root.presse._visible = true;
} else if (!this.hitTest(_root.player)) {
_root.presse._visible = false;
}
}
onClipEvent (enterFrame) {
if ((this.hitTest(_root.player) && (this._currentframe == 1)) && (Key.isDown(69))) {
this.gotoAndStop(3);
}
}
onClipEvent (enterFrame) {
if (this._currentframe == 1) {
this.useHandCursor = false;
}
}
Instance of Symbol 488 MovieClip "lives" in Frame 823
onClipEvent (enterFrame) {
_x = _root.player._x;
if (_root.blink._currentframe == 1) {
if (Key.isDown(37)) {
this._x = _x - 0;
} else if (Key.isDown(39)) {
this._x = _x + 0;
}
} else if (Key.isDown(37)) {
this._x = _x;
} else if (Key.isDown(39)) {
this._x = _x;
}
}
Instance of Symbol 460 MovieClip "bar" in Frame 823
onClipEvent (enterFrame) {
_x = _root.player._x;
if (_root.blink._currentframe == 1) {
if (Key.isDown(37)) {
this._x = _x - 0;
} else if (Key.isDown(39)) {
this._x = _x + 0;
}
} else if (Key.isDown(37)) {
this._x = _x;
} else if (Key.isDown(39)) {
this._x = _x;
}
}
Instance of Symbol 489 MovieClip "money" in Frame 823
onClipEvent (enterFrame) {
_x = _root.player._x;
if (_root.blink._currentframe == 1) {
if (Key.isDown(37)) {
this._x = _x - 0;
} else if (Key.isDown(39)) {
this._x = _x + 0;
}
} else if (Key.isDown(37)) {
this._x = _x;
} else if (Key.isDown(39)) {
this._x = _x;
}
}
Instance of Symbol 575 MovieClip "player" in Frame 823
onClipEvent (enterFrame) {
if (_root.player._name == "player") {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
_visible = true;
_alpha = 100;
if (this._currentframe <= 3) {
if (!grounded) {
yspeed = yspeed + grav;
_y = (_y + yspeed);
}
if (this._currentframe != 4) {
if (Key.isDown(37)) {
_xscale = -100;
_x = (_x - speed);
if (this._currentframe == 3) {
} else {
(this.gotoAndStop(2));// not popped
}
}
if (Key.isDown(39)) {
_xscale = 100;
_x = (_x + speed);
if (this._currentframe == 3) {
} else {
(this.gotoAndStop(2));// not popped
}
}
if ((Key.isDown(32) && (this._currentframe != 3)) && (grounded)) {
this.gotoAndStop(3);
}
}
while (_root.ground.hitTest(_x, _y - h, true)) {
_y = (_y + 0.1);
}
while (_root.ground.hitTest(_x + w, _y, true)) {
_x = (_x - 0.1);
}
while (_root.ground.hitTest(_x - w, _y, true)) {
_x = (_x + 0.1);
}
((yspeed > 0) ? ((falling = true)(falling = true)(falling = true)) : null);
if (_root.ground.hitTest(_x, _y + h, true) && (falling == true)) {
((this._currentframe == 3) ? (jumpa.play()) : null);
grounded = true;
yspeed = 0;
falling = false;
} else {
grounded = false;
}
while (_root.ground.hitTest(_x, _y + h, true)) {
_y = (_y - 0.1);
}
if (!((((!Key.isDown(39)) && (!Key.isDown(37))) && (this._currentframe != 3)) && (this._currentframe != 4))) {
} else {
(this.gotoAndStop(1));// not popped
}
} else if (Key.isDown(32)) {
this.gotoAndStop(3);
jump.gotoAndPlay(5);
}
}
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if (this._currentframe <= 3) {
if (Key.isDown(17) && (_root.blahh.cycle._currentframe == 2)) {
_x = _root.tankid._x;
_root.tankid = "none";
_visible = true;
}
}
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if ((this._currentframe <= 3) && (_root.blahh.cycle._currentframe != 2)) {
if ((Key.isDown(32) && (this._currentframe != 3)) && (grounded)) {
if ((this._currentframe == 2) && (this._xscale == 100)) {
this._x = this._x - this.speed;
} else if ((this._currentframe == 2) && (this._xscale == 100)) {
this._x = this._x + this.speed;
}
}
}
}
cx = cx + (_x - cx);
_root._x = (Stage.width / 2) - cx;
}
}
on (keyPress "a") {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if (this._currentframe <= 2) {
this.gotoAndStop("punch");
}
}
}
}
on (keyPress "A") {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if (this._currentframe <= 2) {
this.gotoAndStop("punch");
}
}
}
}
on (keyPress "s") {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if (this._currentframe <= 2) {
this.gotoAndStop("slit");
}
}
}
}
on (keyPress "S") {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if (this._currentframe <= 2) {
this.gotoAndStop("slit");
}
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if (this._y > 430) {
this.gotoAndStop(1);
_x = defX;
_y = defY;
_root.def.play();
_root.blink.play();
}
if (Key.isDown(37) && (Key.isDown(39) && (Key.isDown(40) && (this._currentframe == 2)))) {
this.gotoAndStop(1);
}
}
}
}
on (keyPress "c") {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if ((yspeed == 0) && (_root.hud.cpt != 0)) {
_root.cp.play();
defX = _x;
defY = _y;
_root.hud.cpt--;
}
}
}
}
on (keyPress "d") {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if (this._currentframe <= 2) {
this.gotoAndStop("block");
}
}
}
}
on (keyPress "D") {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if (this._currentframe <= 2) {
this.gotoAndStop("block");
}
}
}
}
onClipEvent (keyUp) {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if (this._currentframe == 6) {
this.gotoAndStop(1);
}
}
}
}
onClipEvent (enterFrame) {
this.useHandCursor = false;
}
onClipEvent (keyUp) {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if (this._currentframe == 9) {
this.gotoAndStop(1);
}
}
}
}
onClipEvent (enterFrame) {
_root.money._x = _x;
}
onClipEvent (enterFrame) {
_root.presse2._x = _x;
}
onClipEvent (enterFrame) {
_root.maze._x = _x;
}
onClipEvent (enterFrame) {
_root.moola._x = _x;
}
onClipEvent (enterFrame) {
_root.shopfor._x = _x;
}
onClipEvent (enterFrame) {
_root.gomenu._x = _x;
}
on (keyPress "p") {
_root.pauseaing.nextFrame();
}
on (keyPress "P") {
_root.pauseaing.nextFrame();
}
onClipEvent (enterFrame) {
_root.pauseaing._x = _x;
}
onClipEvent (enterFrame) {
_root.presse._x = _x;
}
onClipEvent (enterFrame) {
_root.stuff._x = _x;
}
on (keyPress "m") {
_root.gomenu.gotoAndStop(2);
}
on (keyPress "M") {
_root.gomenu.gotoAndStop(2);
}
onClipEvent (enterFrame) {
if (_root.win1 == 1) {
_root.lives.prevFrame();
_root.lives.prevFrame();
_root.lives.prevFrame();
_root.win1 = 0;
}
}
Instance of Symbol 440 MovieClip in Frame 823
onClipEvent (enterFrame) {
_alpha = 0;
var i = 0;
while (i < 10) {
if (this.hitTest(_root["troll" + i])) {
_root["troll" + i].blocking = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if ((_root["demon" + i]._xscale > 0) && (this.hitTest(_root["demon" + i]))) {
_root["demon" + i].blocking2 = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if (this.hitTest(_root["darkknight" + i])) {
_root["darkknight" + i].blocking3 = 1;
}
i++;
}
}
Instance of Symbol 441 MovieClip in Frame 823
onClipEvent (enterFrame) {
if (_root.ground.crate1._currentframe >= 2) {
this.gotoAndStop(2);
}
}
Instance of Symbol 441 MovieClip in Frame 823
onClipEvent (enterFrame) {
if (_root.ground.crate2._currentframe >= 2) {
this.gotoAndStop(2);
}
}
Instance of Symbol 441 MovieClip in Frame 823
onClipEvent (enterFrame) {
if (_root.ground.crate2._currentframe >= 2) {
this.gotoAndStop(2);
}
}
Instance of Symbol 416 MovieClip "demon1" in Frame 823
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (this.hitTest(_root.player) && (_root.player._currentframe <= 3)) {
this.gotoAndStop("attack");
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (this._currentframe == 3) {
this.gotoAndStop(3);
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (_root.player._x > _x) {
_xscale = -60;
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (_root.player._x < _x) {
_xscale = 60;
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (this.hitTest(_root.player) && ((((_root.player._currentframe <= 3) || (_root.player._currentframe == 8)) || (_root.player._currentframe == 6)) || (_root.player._currentframe == 11))) {
this.gotoAndStop("attack");
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
distance = Math.sqrt(((_root.player._x - this._x) * (_root.player._x - this._x)) + ((_root.player._y - this._y) * (_root.player._y - this._y)));
if (blocking2 == 0) {
if ((distance < 225) && (!this.hitTest(_root.player))) {
if ((_currentframe != 5) && (_currentframe != 6)) {
if (_x >= _root.player._x) {
this.gotoAndStop(3);
this._x = this._x - 4;
} else if (_x < _root.player._x) {
this.gotoAndStop(3);
this._x = this._x + 4;
}
}
} else if (((!this.hitTest(_root.player)) && (_currentframe != 5)) && (_currentframe != 6)) {
gotoAndStop (1);
}
} else if (blocking2 == 1) {
if ((distance < 225) && (!this.hitTest(_root.player))) {
if ((_currentframe != 5) && (_currentframe != 6)) {
if (_x >= _root.player._x) {
this.gotoAndStop(1);
this._x = this._x - 0;
} else if (_x < _root.player._x) {
this.gotoAndStop(1);
this._x = this._x + 0;
}
}
} else if (((!this.hitTest(_root.player)) && (_currentframe != 5)) && (_currentframe != 6)) {
gotoAndStop (1);
}
}
}
}
Instance of Symbol 441 MovieClip in Frame 823
onClipEvent (enterFrame) {
if (_root.ground.crate1._currentframe >= 2) {
this.gotoAndStop(2);
}
}
Instance of Symbol 438 MovieClip "darkknight1" in Frame 823
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (this.hitTest(_root.player) && (_root.player._currentframe <= 3)) {
this.gotoAndStop("attack");
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (this._currentframe == 3) {
this.gotoAndStop(3);
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (_root.player._x > _x) {
_xscale = -65;
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (_root.player._x < _x) {
_xscale = 65;
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (this.hitTest(_root.player) && ((((_root.player._currentframe <= 3) || (_root.player._currentframe == 8)) || (_root.player._currentframe == 6)) || (_root.player._currentframe == 11))) {
this.gotoAndStop("attack");
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
distance = Math.sqrt(((_root.player._x - this._x) * (_root.player._x - this._x)) + ((_root.player._y - this._y) * (_root.player._y - this._y)));
if (blocking3 == 0) {
if ((distance < 225) && (!this.hitTest(_root.player))) {
if ((_currentframe != 3) && (_currentframe != 6)) {
if (_x >= _root.player._x) {
this.gotoAndStop(4);
this._x = this._x - 4;
} else if (_x < _root.player._x) {
this.gotoAndStop(4);
this._x = this._x + 4;
}
}
} else if (((!this.hitTest(_root.player)) && (_currentframe != 3)) && (_currentframe != 6)) {
gotoAndStop (1);
}
} else if (blocking3 == 1) {
if ((distance < 225) && (!this.hitTest(_root.player))) {
if ((_currentframe != 3) && (_currentframe != 6)) {
if (_x >= _root.player._x) {
this.gotoAndStop(1);
this._x = this._x - 0;
} else if (_x < _root.player._x) {
this.gotoAndStop(1);
this._x = this._x + 0;
}
}
} else if (((!this.hitTest(_root.player)) && (_currentframe != 3)) && (_currentframe != 6)) {
gotoAndStop (1);
}
}
}
}
Instance of Symbol 441 MovieClip in Frame 823
onClipEvent (enterFrame) {
if (_root.ground.crate4._currentframe >= 2) {
this.gotoAndStop(2);
}
}
Instance of Symbol 441 MovieClip in Frame 823
onClipEvent (enterFrame) {
if (_root.ground.crate4._currentframe >= 2) {
this.gotoAndStop(2);
}
}
Instance of Symbol 441 MovieClip in Frame 823
onClipEvent (enterFrame) {
if (_root.ground.crate5._currentframe >= 2) {
this.gotoAndStop(2);
}
}
Instance of Symbol 441 MovieClip in Frame 823
onClipEvent (enterFrame) {
if (_root.ground.crate5._currentframe >= 2) {
this.gotoAndStop(2);
}
}
Instance of Symbol 441 MovieClip in Frame 823
onClipEvent (enterFrame) {
if (_root.ground.crate6._currentframe >= 2) {
this.gotoAndStop(2);
}
}
Instance of Symbol 441 MovieClip in Frame 823
onClipEvent (enterFrame) {
if (_root.ground.crate8._currentframe >= 2) {
this.gotoAndStop(2);
}
}
Instance of Symbol 440 MovieClip in Frame 823
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
_alpha = 0;
if (this.hitTest(_root["troll" + i])) {
_root["troll" + i].blocking = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if ((_root["demon" + i]._xscale > 0) && (this.hitTest(_root["demon" + i]))) {
_root["demon" + i].blocking2 = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if (this.hitTest(_root["darkknight" + i])) {
_root["darkknight" + i].blocking3 = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if (this.hitTest(_root["death" + i])) {
_root["death" + i].blocking4 = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if (this.hitTest(_root["death" + i])) {
_root["death" + i].blocking4 = 1;
}
i++;
}
}
Instance of Symbol 440 MovieClip in Frame 823
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
_alpha = 0;
if (this.hitTest(_root["troll" + i])) {
_root["troll" + i].blocking = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if ((_root["demon" + i]._xscale > 0) && (this.hitTest(_root["demon" + i]))) {
_root["demon" + i].blocking2 = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if (this.hitTest(_root["darkknight" + i])) {
_root["darkknight" + i].blocking3 = 1;
}
i++;
}
}
Instance of Symbol 440 MovieClip in Frame 823
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
_alpha = 0;
if (this.hitTest(_root["troll" + i])) {
_root["troll" + i].blocking = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if ((_root["demon" + i]._xscale > 0) && (this.hitTest(_root["demon" + i]))) {
_root["demon" + i].blocking2 = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if (this.hitTest(_root["darkknight" + i])) {
_root["darkknight" + i].blocking3 = 1;
}
i++;
}
}
Instance of Symbol 440 MovieClip in Frame 823
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
_alpha = 0;
if (this.hitTest(_root["troll" + i])) {
_root["troll" + i].blocking = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if ((_root["demon" + i]._xscale > 0) && (this.hitTest(_root["demon" + i]))) {
_root["demon" + i].blocking2 = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if (this.hitTest(_root["darkknight" + i])) {
_root["darkknight" + i].blocking3 = 1;
}
i++;
}
}
Instance of Symbol 440 MovieClip in Frame 823
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
_alpha = 0;
if (this.hitTest(_root["troll" + i])) {
_root["troll" + i].blocking = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if ((_root["demon" + i]._xscale > 0) && (this.hitTest(_root["demon" + i]))) {
_root["demon" + i].blocking2 = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if (this.hitTest(_root["darkknight" + i])) {
_root["darkknight" + i].blocking3 = 1;
}
i++;
}
}
Instance of Symbol 445 MovieClip in Frame 823
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.fadetolevel._currentframe == 1)) {
_root.fadetolevel.play();
}
}
Instance of Symbol 928 MovieClip "cave1" in Frame 823
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (this.hitTest(_root.player) && (_root.player._currentframe <= 3)) {
this.gotoAndStop("attack");
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (this._currentframe == 3) {
this.gotoAndStop(3);
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (this._currentframe == 1) {
if (_root.player._x > _x) {
_xscale = -60;
}
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (this._currentframe == 1) {
if (_root.player._x < _x) {
_xscale = 60;
}
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (this.hitTest(_root.player) && ((((_root.player._currentframe <= 3) || (_root.player._currentframe == 8)) || (_root.player._currentframe == 6)) || (_root.player._currentframe == 11))) {
this.gotoAndStop("attack");
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
distance = Math.sqrt(((_root.player._x - this._x) * (_root.player._x - this._x)) + ((_root.player._y - this._y) * (_root.player._y - this._y)));
if ((distance < 225) && (!this.hitTest(_root.player))) {
if ((_currentframe != 5) && (_currentframe != 6)) {
this.gotoAndStop("attack");
}
}
}
}
Instance of Symbol 440 MovieClip in Frame 823
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
_alpha = 0;
if (this.hitTest(_root["troll" + i])) {
_root["troll" + i].blocking = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if ((_root["demon" + i]._xscale > 0) && (this.hitTest(_root["demon" + i]))) {
_root["demon" + i].blocking2 = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if (this.hitTest(_root["darkknight" + i])) {
_root["darkknight" + i].blocking3 = 1;
}
i++;
}
}
Instance of Symbol 440 MovieClip in Frame 823
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
_alpha = 0;
if (this.hitTest(_root["troll" + i])) {
_root["troll" + i].blocking = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if ((_root["demon" + i]._xscale > 0) && (this.hitTest(_root["demon" + i]))) {
_root["demon" + i].blocking2 = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if (this.hitTest(_root["darkknight" + i])) {
_root["darkknight" + i].blocking3 = 1;
}
i++;
}
}
Instance of Symbol 440 MovieClip in Frame 823
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
_alpha = 0;
if (this.hitTest(_root["troll" + i])) {
_root["troll" + i].blocking = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if ((_root["demon" + i]._xscale > 0) && (this.hitTest(_root["demon" + i]))) {
_root["demon" + i].blocking2 = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if (this.hitTest(_root["darkknight" + i])) {
_root["darkknight" + i].blocking3 = 1;
}
i++;
}
}
Instance of Symbol 440 MovieClip in Frame 823
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
_alpha = 0;
if (this.hitTest(_root["troll" + i])) {
_root["troll" + i].blocking = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if ((_root["demon" + i]._xscale > 0) && (this.hitTest(_root["demon" + i]))) {
_root["demon" + i].blocking2 = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if (this.hitTest(_root["darkknight" + i])) {
_root["darkknight" + i].blocking3 = 1;
}
i++;
}
}
Instance of Symbol 438 MovieClip "darkknight2" in Frame 823
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (this.hitTest(_root.player) && (_root.player._currentframe <= 3)) {
this.gotoAndStop("attack");
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (this._currentframe == 3) {
this.gotoAndStop(3);
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (_root.player._x > _x) {
_xscale = -65;
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (_root.player._x < _x) {
_xscale = 65;
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (this.hitTest(_root.player) && ((((_root.player._currentframe <= 3) || (_root.player._currentframe == 8)) || (_root.player._currentframe == 6)) || (_root.player._currentframe == 11))) {
this.gotoAndStop("attack");
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
distance = Math.sqrt(((_root.player._x - this._x) * (_root.player._x - this._x)) + ((_root.player._y - this._y) * (_root.player._y - this._y)));
if (blocking3 == 0) {
if ((distance < 225) && (!this.hitTest(_root.player))) {
if ((_currentframe != 3) && (_currentframe != 6)) {
if (_x >= _root.player._x) {
this.gotoAndStop(4);
this._x = this._x - 4;
} else if (_x < _root.player._x) {
this.gotoAndStop(4);
this._x = this._x + 4;
}
}
} else if (((!this.hitTest(_root.player)) && (_currentframe != 3)) && (_currentframe != 6)) {
gotoAndStop (1);
}
} else if (blocking3 == 1) {
if ((distance < 225) && (!this.hitTest(_root.player))) {
if ((_currentframe != 3) && (_currentframe != 6)) {
if (_x >= _root.player._x) {
this.gotoAndStop(1);
this._x = this._x - 0;
} else if (_x < _root.player._x) {
this.gotoAndStop(1);
this._x = this._x + 0;
}
}
} else if (((!this.hitTest(_root.player)) && (_currentframe != 3)) && (_currentframe != 6)) {
gotoAndStop (1);
}
}
}
}
Instance of Symbol 849 MovieClip "death1" in Frame 823
onClipEvent (enterFrame) {
if ((this._currentframe == 3) && (this.hitTest(_root.player))) {
this.gotoAndStop(3);
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if ((this.hitTest(_root.player) && (_root.player._currentframe <= 2)) && (this._currentframe != 3)) {
this.gotoAndStop("attack");
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (this._currentframe == 3) {
this.gotoAndStop(3);
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (_root.player._x > _x) {
_xscale = -100;
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (_root.player._x < _x) {
_xscale = 100;
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if ((this.hitTest(_root.player) && (this._currentframe != 3)) && ((((_root.player._currentframe <= 3) || (_root.player._currentframe == 8)) || (_root.player._currentframe == 6)) || (_root.player._currentframe == 11))) {
this.gotoAndStop("attack");
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
distance = Math.sqrt(((_root.player._x - this._x) * (_root.player._x - this._x)) + ((_root.player._y - this._y) * (_root.player._y - this._y)));
if (blocking4 == 0) {
if ((distance < 225) && (!this.hitTest(_root.player))) {
if ((_currentframe != 3) && (_currentframe != 6)) {
if (_x >= _root.player._x) {
this.gotoAndStop(4);
this._x = this._x - 4;
} else if (_x < _root.player._x) {
this.gotoAndStop(4);
this._x = this._x + 4;
}
}
} else if (((!this.hitTest(_root.player)) && (_currentframe != 3)) && (_currentframe != 6)) {
gotoAndStop (1);
}
} else if (blocking4 == 1) {
if ((distance < 225) && (!this.hitTest(_root.player))) {
if ((_currentframe != 3) && (_currentframe != 6)) {
if (_x >= _root.player._x) {
this.gotoAndStop(1);
this._x = this._x - 0;
} else if (_x < _root.player._x) {
this.gotoAndStop(1);
this._x = this._x + 0;
}
}
} else if (((!this.hitTest(_root.player)) && (_currentframe != 3)) && (_currentframe != 6)) {
gotoAndStop (1);
}
}
}
}
Instance of Symbol 314 MovieClip "asf" in Frame 823
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (this._currentframe == 1)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 584 MovieClip "pauseaing" in Frame 823
onClipEvent (enterFrame) {
this._x = _root.player._x;
}
Instance of Symbol 585 MovieClip "pauseaing2" in Frame 823
onClipEvent (enterFrame) {
this._x = _root.player._x;
}
Instance of Symbol 588 MovieClip "flasha" in Frame 823
onClipEvent (enterFrame) {
_x = _root.player._x;
if (_root.blink._currentframe == 1) {
if (Key.isDown(37)) {
this._x = _x - 7;
} else if (Key.isDown(39)) {
this._x = _x + 7;
}
} else if (Key.isDown(37)) {
this._x = _x;
} else if (Key.isDown(39)) {
this._x = _x;
}
}
Instance of Symbol 590 MovieClip in Frame 823
onClipEvent (enterFrame) {
this._x = _root.player._x;
}
Instance of Symbol 614 MovieClip "gomenu" in Frame 823
onClipEvent (enterFrame) {
_x = _root.player._x;
if (_root.blink._currentframe == 1) {
if (Key.isDown(37)) {
this._x = _x - 0;
} else if (Key.isDown(39)) {
this._x = _x + 0;
}
} else if (Key.isDown(37)) {
this._x = _x;
} else if (Key.isDown(39)) {
this._x = _x;
}
}
Instance of Symbol 618 MovieClip "fadeout" in Frame 823
onClipEvent (enterFrame) {
this._x = _root.player._x;
}
Instance of Symbol 930 MovieClip "maze" in Frame 823
onClipEvent (enterFrame) {
_x = _root.player._x;
if (_root.blink._currentframe == 1) {
if (Key.isDown(37)) {
this._x = _x - 0;
} else if (Key.isDown(39)) {
this._x = _x + 0;
}
} else if (Key.isDown(37)) {
this._x = _x;
} else if (Key.isDown(39)) {
this._x = _x;
}
}
Instance of Symbol 702 MovieClip "presse" in Frame 823
onClipEvent (enterFrame) {
_x = _root.player._x;
if (_root.blink._currentframe == 1) {
if (Key.isDown(37)) {
this._x = _x - 0;
} else if (Key.isDown(39)) {
this._x = _x + 0;
}
} else if (Key.isDown(37)) {
this._x = _x;
} else if (Key.isDown(39)) {
this._x = _x;
}
}
Instance of Symbol 704 MovieClip "presse2" in Frame 823
onClipEvent (enterFrame) {
_x = _root.player._x;
if (_root.blink._currentframe == 1) {
if (Key.isDown(37)) {
this._x = _x - 0;
} else if (Key.isDown(39)) {
this._x = _x + 0;
}
} else if (Key.isDown(37)) {
this._x = _x;
} else if (Key.isDown(39)) {
this._x = _x;
}
}
Instance of Symbol 674 MovieClip "shopfor" in Frame 823
onClipEvent (enterFrame) {
this._x = _root.player._x;
this._alpha = 100;
}
Instance of Symbol 707 MovieClip "fadetolevel" in Frame 823
onClipEvent (enterFrame) {
this._x = _root.player._x;
}
Frame 824
stop();
_root.kc._visible = true;
_root.kc._alpha = 100;
_root.ka._visible = true;
_root.ka._alpha = 100;
stopAllSounds();
_root.checkpoint = 2;
_root._x = 0;
Instance of Symbol 86 MovieClip "kc" in Frame 824
onClipEvent (enterFrame) {
var my_date = new Date();
var hours = my_date.getHours();
gotoAndStop(statet);
if ((hours > 4) && (hours < 10)) {
this.backg.gotoAndStop(1);
statet = 1;
}
if ((hours > 9) && (hours < 11)) {
this.backg.gotoAndStop(1);
statet = 2;
}
if ((hours > 12) && (hours < 18)) {
this.backg.gotoAndStop(2);
statet = 3;
}
if (hours > 17) {
this.backg.gotoAndStop(3);
statet = 4;
}
}
Frame 825
_root.presse._visible = false;
_root.presse2._visible = false;
_root.shopfor._visible = false;
moneySave = _root.moola.money;
fix = 0;
function stopall(tgt) {
for (var _local2 in tgt) {
tgt[_local2].stop();
stopall(tgt[_local2]);
}
}
function playall(tgt) {
for (var _local2 in tgt) {
tgt[_local2].play();
playall(tgt[_local2]);
}
}
var i = 0;
while (i < 10) {
_root["troll" + i].blocking = 0;
i++;
}
var i = 0;
while (i < 10) {
_root["demon" + i].blocking2 = 0;
i++;
}
var i = 0;
while (i < 10) {
_root["darkknight" + i].blocking3 = 0;
i++;
}
var i = 0;
while (i < 10) {
_root["death" + i].blocking4 = 0;
i++;
}
stop();
pausea = 0;
trollkill = 0;
gettinghit = 0;
deathkill2 = 0;
dknight3 = 0;
trollkill2 = 0;
demonkill2 = 0;
trollis = 0;
win1 = 0;
_root.forpant._visible = false;
cavekill2 = 0;
cavekill = 0;
Instance of Symbol 869 MovieClip "backgrounda" in Frame 825
onClipEvent (enterFrame) {
this._x = _root.player._x / 1.123;
}
Instance of Symbol 314 MovieClip in Frame 825
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (this._currentframe == 1)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 314 MovieClip in Frame 825
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (this._currentframe == 1)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 318 MovieClip in Frame 825
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
this.heart.gotoAndStop(2);
}
}
Instance of Symbol 318 MovieClip in Frame 825
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
this.heart.gotoAndStop(2);
}
}
Instance of Symbol 488 MovieClip "lives" in Frame 825
onClipEvent (enterFrame) {
_x = _root.player._x;
if (_root.blink._currentframe == 1) {
if (Key.isDown(37)) {
this._x = _x - 0;
} else if (Key.isDown(39)) {
this._x = _x + 0;
}
} else if (Key.isDown(37)) {
this._x = _x;
} else if (Key.isDown(39)) {
this._x = _x;
}
}
Instance of Symbol 460 MovieClip "bar" in Frame 825
onClipEvent (enterFrame) {
_x = _root.player._x;
if (_root.blink._currentframe == 1) {
if (Key.isDown(37)) {
this._x = _x - 0;
} else if (Key.isDown(39)) {
this._x = _x + 0;
}
} else if (Key.isDown(37)) {
this._x = _x;
} else if (Key.isDown(39)) {
this._x = _x;
}
}
Instance of Symbol 489 MovieClip "money" in Frame 825
onClipEvent (enterFrame) {
_x = _root.player._x;
if (_root.blink._currentframe == 1) {
if (Key.isDown(37)) {
this._x = _x - 0;
} else if (Key.isDown(39)) {
this._x = _x + 0;
}
} else if (Key.isDown(37)) {
this._x = _x;
} else if (Key.isDown(39)) {
this._x = _x;
}
}
Instance of Symbol 575 MovieClip "player" in Frame 825
onClipEvent (enterFrame) {
if (_root.player._name == "player") {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
_visible = true;
_alpha = 100;
if (this._currentframe <= 3) {
if (!grounded) {
yspeed = yspeed + grav;
_y = (_y + yspeed);
}
if (this._currentframe != 4) {
if (Key.isDown(37)) {
_xscale = -100;
_x = (_x - speed);
if (this._currentframe == 3) {
} else {
(this.gotoAndStop(2));// not popped
}
}
if (Key.isDown(39)) {
_xscale = 100;
_x = (_x + speed);
if (this._currentframe == 3) {
} else {
(this.gotoAndStop(2));// not popped
}
}
if ((Key.isDown(32) && (this._currentframe != 3)) && (grounded)) {
this.gotoAndStop(3);
}
}
while (_root.ground.hitTest(_x, _y - h, true)) {
_y = (_y + 0.1);
}
while (_root.ground.hitTest(_x + w, _y, true)) {
_x = (_x - 0.1);
}
while (_root.ground.hitTest(_x - w, _y, true)) {
_x = (_x + 0.1);
}
((yspeed > 0) ? ((falling = true)(falling = true)(falling = true)) : null);
if (_root.ground.hitTest(_x, _y + h, true) && (falling == true)) {
((this._currentframe == 3) ? (jumpa.play()) : null);
grounded = true;
yspeed = 0;
falling = false;
} else {
grounded = false;
}
while (_root.ground.hitTest(_x, _y + h, true)) {
_y = (_y - 0.1);
}
if (!((((!Key.isDown(39)) && (!Key.isDown(37))) && (this._currentframe != 3)) && (this._currentframe != 4))) {
} else {
(this.gotoAndStop(1));// not popped
}
} else if (Key.isDown(32)) {
this.gotoAndStop(3);
jump.gotoAndPlay(5);
}
}
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if (this._currentframe <= 3) {
if (Key.isDown(17) && (_root.blahh.cycle._currentframe == 2)) {
_x = _root.tankid._x;
_root.tankid = "none";
_visible = true;
}
}
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if ((this._currentframe <= 3) && (_root.blahh.cycle._currentframe != 2)) {
if ((Key.isDown(32) && (this._currentframe != 3)) && (grounded)) {
if ((this._currentframe == 2) && (this._xscale == 100)) {
this._x = this._x - this.speed;
} else if ((this._currentframe == 2) && (this._xscale == 100)) {
this._x = this._x + this.speed;
}
}
}
}
cx = cx + (_x - cx);
_root._x = (Stage.width / 2) - cx;
}
}
on (keyPress "a") {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if (this._currentframe <= 2) {
this.gotoAndStop("punch");
}
}
}
}
on (keyPress "A") {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if (this._currentframe <= 2) {
this.gotoAndStop("punch");
}
}
}
}
on (keyPress "s") {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if (this._currentframe <= 2) {
this.gotoAndStop("slit");
}
}
}
}
on (keyPress "S") {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if (this._currentframe <= 2) {
this.gotoAndStop("slit");
}
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if (this._y > 430) {
this.gotoAndStop(1);
_x = defX;
_y = defY;
_root.def.play();
_root.blink.play();
}
if (Key.isDown(37) && (Key.isDown(39) && (Key.isDown(40) && (this._currentframe == 2)))) {
this.gotoAndStop(1);
}
}
}
}
on (keyPress "c") {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if ((yspeed == 0) && (_root.hud.cpt != 0)) {
_root.cp.play();
defX = _x;
defY = _y;
_root.hud.cpt--;
}
}
}
}
on (keyPress "d") {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if (this._currentframe <= 2) {
this.gotoAndStop("block");
}
}
}
}
on (keyPress "D") {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if (this._currentframe <= 2) {
this.gotoAndStop("block");
}
}
}
}
onClipEvent (keyUp) {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if (this._currentframe == 6) {
this.gotoAndStop(1);
}
}
}
}
onClipEvent (enterFrame) {
this.useHandCursor = false;
}
onClipEvent (keyUp) {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if (this._currentframe == 9) {
this.gotoAndStop(1);
}
}
}
}
onClipEvent (enterFrame) {
_root.money._x = _x;
}
onClipEvent (enterFrame) {
_root.presse2._x = _x;
}
onClipEvent (enterFrame) {
_root.maze._x = _x;
}
onClipEvent (enterFrame) {
_root.moola._x = _x;
}
onClipEvent (enterFrame) {
_root.shopfor._x = _x;
}
onClipEvent (enterFrame) {
_root.gomenu._x = _x;
}
on (keyPress "p") {
_root.pauseaing.nextFrame();
}
on (keyPress "P") {
_root.pauseaing.nextFrame();
}
onClipEvent (enterFrame) {
_root.pauseaing._x = _x;
}
onClipEvent (enterFrame) {
_root.presse._x = _x;
}
onClipEvent (enterFrame) {
_root.stuff._x = _x;
}
on (keyPress "m") {
_root.gomenu.gotoAndStop(2);
}
on (keyPress "M") {
_root.gomenu.gotoAndStop(2);
}
onClipEvent (enterFrame) {
if (_root.win1 == 1) {
_root.lives.prevFrame();
_root.lives.prevFrame();
_root.lives.prevFrame();
_root.win1 = 0;
}
}
Instance of Symbol 440 MovieClip in Frame 825
onClipEvent (enterFrame) {
_alpha = 0;
var i = 0;
while (i < 10) {
if (this.hitTest(_root["troll" + i])) {
_root["troll" + i].blocking = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if ((_root["demon" + i]._xscale > 0) && (this.hitTest(_root["demon" + i]))) {
_root["demon" + i].blocking2 = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if (this.hitTest(_root["darkknight" + i])) {
_root["darkknight" + i].blocking3 = 1;
}
i++;
}
}
Instance of Symbol 441 MovieClip in Frame 825
onClipEvent (enterFrame) {
if (_root.ground.crate1._currentframe >= 2) {
this.gotoAndStop(2);
}
}
Instance of Symbol 441 MovieClip in Frame 825
onClipEvent (enterFrame) {
if (_root.ground.crate2._currentframe >= 2) {
this.gotoAndStop(2);
}
}
Instance of Symbol 441 MovieClip in Frame 825
onClipEvent (enterFrame) {
if (_root.ground.crate2._currentframe >= 2) {
this.gotoAndStop(2);
}
}
Instance of Symbol 416 MovieClip "demon1" in Frame 825
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (this.hitTest(_root.player) && (_root.player._currentframe <= 3)) {
this.gotoAndStop("attack");
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (this._currentframe == 3) {
this.gotoAndStop(3);
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (_root.player._x > _x) {
_xscale = -60;
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (_root.player._x < _x) {
_xscale = 60;
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (this.hitTest(_root.player) && ((((_root.player._currentframe <= 3) || (_root.player._currentframe == 8)) || (_root.player._currentframe == 6)) || (_root.player._currentframe == 11))) {
this.gotoAndStop("attack");
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
distance = Math.sqrt(((_root.player._x - this._x) * (_root.player._x - this._x)) + ((_root.player._y - this._y) * (_root.player._y - this._y)));
if (blocking2 == 0) {
if ((distance < 225) && (!this.hitTest(_root.player))) {
if ((_currentframe != 5) && (_currentframe != 6)) {
if (_x >= _root.player._x) {
this.gotoAndStop(3);
this._x = this._x - 4;
} else if (_x < _root.player._x) {
this.gotoAndStop(3);
this._x = this._x + 4;
}
}
} else if (((!this.hitTest(_root.player)) && (_currentframe != 5)) && (_currentframe != 6)) {
gotoAndStop (1);
}
} else if (blocking2 == 1) {
if ((distance < 225) && (!this.hitTest(_root.player))) {
if ((_currentframe != 5) && (_currentframe != 6)) {
if (_x >= _root.player._x) {
this.gotoAndStop(1);
this._x = this._x - 0;
} else if (_x < _root.player._x) {
this.gotoAndStop(1);
this._x = this._x + 0;
}
}
} else if (((!this.hitTest(_root.player)) && (_currentframe != 5)) && (_currentframe != 6)) {
gotoAndStop (1);
}
}
}
}
Instance of Symbol 441 MovieClip in Frame 825
onClipEvent (enterFrame) {
if (_root.ground.crate1._currentframe >= 2) {
this.gotoAndStop(2);
}
}
Instance of Symbol 441 MovieClip in Frame 825
onClipEvent (enterFrame) {
if (_root.ground.crate4._currentframe >= 2) {
this.gotoAndStop(2);
}
}
Instance of Symbol 441 MovieClip in Frame 825
onClipEvent (enterFrame) {
if (_root.ground.crate4._currentframe >= 2) {
this.gotoAndStop(2);
}
}
Instance of Symbol 441 MovieClip in Frame 825
onClipEvent (enterFrame) {
if (_root.ground.crate5._currentframe >= 2) {
this.gotoAndStop(2);
}
}
Instance of Symbol 441 MovieClip in Frame 825
onClipEvent (enterFrame) {
if (_root.ground.crate5._currentframe >= 2) {
this.gotoAndStop(2);
}
}
Instance of Symbol 441 MovieClip in Frame 825
onClipEvent (enterFrame) {
if (_root.ground.crate8._currentframe >= 2) {
this.gotoAndStop(2);
}
}
Instance of Symbol 440 MovieClip in Frame 825
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
_alpha = 0;
if (this.hitTest(_root["troll" + i])) {
_root["troll" + i].blocking = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if ((_root["demon" + i]._xscale > 0) && (this.hitTest(_root["demon" + i]))) {
_root["demon" + i].blocking2 = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if (this.hitTest(_root["darkknight" + i])) {
_root["darkknight" + i].blocking3 = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if (this.hitTest(_root["death" + i])) {
_root["death" + i].blocking4 = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if (this.hitTest(_root["death" + i])) {
_root["death" + i].blocking4 = 1;
}
i++;
}
}
Instance of Symbol 440 MovieClip in Frame 825
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
_alpha = 0;
if (this.hitTest(_root["troll" + i])) {
_root["troll" + i].blocking = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if ((_root["demon" + i]._xscale > 0) && (this.hitTest(_root["demon" + i]))) {
_root["demon" + i].blocking2 = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if (this.hitTest(_root["darkknight" + i])) {
_root["darkknight" + i].blocking3 = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if (this.hitTest(_root["death" + i])) {
_root["death" + i].blocking4 = 1;
}
i++;
}
}
Instance of Symbol 440 MovieClip in Frame 825
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
_alpha = 0;
if (this.hitTest(_root["troll" + i])) {
_root["troll" + i].blocking = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if ((_root["demon" + i]._xscale > 0) && (this.hitTest(_root["demon" + i]))) {
_root["demon" + i].blocking2 = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if (this.hitTest(_root["darkknight" + i])) {
_root["darkknight" + i].blocking3 = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if (this.hitTest(_root["death" + i])) {
_root["death" + i].blocking4 = 1;
}
i++;
}
}
Instance of Symbol 445 MovieClip in Frame 825
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.fadetolevel._currentframe == 1)) {
_root.fadetolevel.play();
}
}
Instance of Symbol 928 MovieClip "cave1" in Frame 825
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (this.hitTest(_root.player) && (_root.player._currentframe <= 3)) {
this.gotoAndStop("attack");
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (this._currentframe == 3) {
this.gotoAndStop(3);
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (this._currentframe == 1) {
if (_root.player._x > _x) {
_xscale = -60;
}
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (this._currentframe == 1) {
if (_root.player._x < _x) {
_xscale = 60;
}
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (this.hitTest(_root.player) && ((((_root.player._currentframe <= 3) || (_root.player._currentframe == 8)) || (_root.player._currentframe == 6)) || (_root.player._currentframe == 11))) {
this.gotoAndStop("attack");
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
distance = Math.sqrt(((_root.player._x - this._x) * (_root.player._x - this._x)) + ((_root.player._y - this._y) * (_root.player._y - this._y)));
if ((distance < 225) && (!this.hitTest(_root.player))) {
if ((_currentframe != 5) && (_currentframe != 6)) {
this.gotoAndStop("attack");
}
}
}
}
Instance of Symbol 440 MovieClip in Frame 825
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
_alpha = 0;
if (this.hitTest(_root["troll" + i])) {
_root["troll" + i].blocking = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if ((_root["demon" + i]._xscale > 0) && (this.hitTest(_root["demon" + i]))) {
_root["demon" + i].blocking2 = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if (this.hitTest(_root["darkknight" + i])) {
_root["darkknight" + i].blocking3 = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if (this.hitTest(_root["death" + i])) {
_root["death" + i].blocking4 = 1;
}
i++;
}
}
Instance of Symbol 440 MovieClip in Frame 825
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
_alpha = 0;
if (this.hitTest(_root["troll" + i])) {
_root["troll" + i].blocking = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if ((_root["demon" + i]._xscale > 0) && (this.hitTest(_root["demon" + i]))) {
_root["demon" + i].blocking2 = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if (this.hitTest(_root["darkknight" + i])) {
_root["darkknight" + i].blocking3 = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if (this.hitTest(_root["death" + i])) {
_root["death" + i].blocking4 = 1;
}
i++;
}
}
Instance of Symbol 849 MovieClip "death1" in Frame 825
onClipEvent (enterFrame) {
if ((this._currentframe == 3) && (this.hitTest(_root.player))) {
this.gotoAndStop(3);
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if ((this.hitTest(_root.player) && (_root.player._currentframe <= 2)) && (this._currentframe != 3)) {
this.gotoAndStop("attack");
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (this._currentframe == 3) {
this.gotoAndStop(3);
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (_root.player._x > _x) {
_xscale = -100;
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (_root.player._x < _x) {
_xscale = 100;
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if ((this.hitTest(_root.player) && (this._currentframe != 3)) && ((((_root.player._currentframe <= 3) || (_root.player._currentframe == 8)) || (_root.player._currentframe == 6)) || (_root.player._currentframe == 11))) {
this.gotoAndStop("attack");
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
distance = Math.sqrt(((_root.player._x - this._x) * (_root.player._x - this._x)) + ((_root.player._y - this._y) * (_root.player._y - this._y)));
if (blocking4 == 0) {
if ((distance < 225) && (!this.hitTest(_root.player))) {
if ((_currentframe != 3) && (_currentframe != 6)) {
if (_x >= _root.player._x) {
this.gotoAndStop(4);
this._x = this._x - 4;
} else if (_x < _root.player._x) {
this.gotoAndStop(4);
this._x = this._x + 4;
}
}
} else if (((!this.hitTest(_root.player)) && (_currentframe != 3)) && (_currentframe != 6)) {
gotoAndStop (1);
}
} else if (blocking4 == 1) {
if ((distance < 225) && (!this.hitTest(_root.player))) {
if ((_currentframe != 3) && (_currentframe != 6)) {
if (_x >= _root.player._x) {
this.gotoAndStop(1);
this._x = this._x - 0;
} else if (_x < _root.player._x) {
this.gotoAndStop(1);
this._x = this._x + 0;
}
}
} else if (((!this.hitTest(_root.player)) && (_currentframe != 3)) && (_currentframe != 6)) {
gotoAndStop (1);
}
}
}
}
Instance of Symbol 928 MovieClip "cave2" in Frame 825
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (this.hitTest(_root.player) && (_root.player._currentframe <= 3)) {
this.gotoAndStop("attack");
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (this._currentframe == 3) {
this.gotoAndStop(3);
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (this._currentframe == 1) {
if (_root.player._x > _x) {
_xscale = -60;
}
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (this._currentframe == 1) {
if (_root.player._x < _x) {
_xscale = 60;
}
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (this.hitTest(_root.player) && ((((_root.player._currentframe <= 3) || (_root.player._currentframe == 8)) || (_root.player._currentframe == 6)) || (_root.player._currentframe == 11))) {
this.gotoAndStop("attack");
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
distance = Math.sqrt(((_root.player._x - this._x) * (_root.player._x - this._x)) + ((_root.player._y - this._y) * (_root.player._y - this._y)));
if ((distance < 225) && (!this.hitTest(_root.player))) {
if ((_currentframe != 5) && (_currentframe != 6)) {
this.gotoAndStop("attack");
}
}
}
}
Instance of Symbol 441 MovieClip in Frame 825
onClipEvent (enterFrame) {
if (_root.ground.crate8._currentframe >= 2) {
this.gotoAndStop(2);
}
}
Instance of Symbol 849 MovieClip "death2" in Frame 825
onClipEvent (enterFrame) {
if ((this._currentframe == 3) && (this.hitTest(_root.player))) {
this.gotoAndStop(3);
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if ((this.hitTest(_root.player) && (_root.player._currentframe <= 2)) && (this._currentframe != 3)) {
this.gotoAndStop("attack");
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (this._currentframe == 3) {
this.gotoAndStop(3);
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (_root.player._x > _x) {
_xscale = -100;
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (_root.player._x < _x) {
_xscale = 100;
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if ((this.hitTest(_root.player) && (this._currentframe != 3)) && ((((_root.player._currentframe <= 3) || (_root.player._currentframe == 8)) || (_root.player._currentframe == 6)) || (_root.player._currentframe == 11))) {
this.gotoAndStop("attack");
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
distance = Math.sqrt(((_root.player._x - this._x) * (_root.player._x - this._x)) + ((_root.player._y - this._y) * (_root.player._y - this._y)));
if (blocking4 == 0) {
if ((distance < 225) && (!this.hitTest(_root.player))) {
if ((_currentframe != 3) && (_currentframe != 6)) {
if (_x >= _root.player._x) {
this.gotoAndStop(4);
this._x = this._x - 4;
} else if (_x < _root.player._x) {
this.gotoAndStop(4);
this._x = this._x + 4;
}
}
} else if (((!this.hitTest(_root.player)) && (_currentframe != 3)) && (_currentframe != 6)) {
gotoAndStop (1);
}
} else if (blocking4 == 1) {
if ((distance < 225) && (!this.hitTest(_root.player))) {
if ((_currentframe != 3) && (_currentframe != 6)) {
if (_x >= _root.player._x) {
this.gotoAndStop(1);
this._x = this._x - 0;
} else if (_x < _root.player._x) {
this.gotoAndStop(1);
this._x = this._x + 0;
}
}
} else if (((!this.hitTest(_root.player)) && (_currentframe != 3)) && (_currentframe != 6)) {
gotoAndStop (1);
}
}
}
}
Instance of Symbol 318 MovieClip in Frame 825
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
this.heart.gotoAndStop(2);
}
}
Instance of Symbol 584 MovieClip "pauseaing" in Frame 825
onClipEvent (enterFrame) {
this._x = _root.player._x;
}
Instance of Symbol 585 MovieClip "pauseaing2" in Frame 825
onClipEvent (enterFrame) {
this._x = _root.player._x;
}
Instance of Symbol 588 MovieClip "flasha" in Frame 825
onClipEvent (enterFrame) {
_x = _root.player._x;
if (_root.blink._currentframe == 1) {
if (Key.isDown(37)) {
this._x = _x - 7;
} else if (Key.isDown(39)) {
this._x = _x + 7;
}
} else if (Key.isDown(37)) {
this._x = _x;
} else if (Key.isDown(39)) {
this._x = _x;
}
}
Instance of Symbol 590 MovieClip in Frame 825
onClipEvent (enterFrame) {
this._x = _root.player._x;
}
Instance of Symbol 614 MovieClip "gomenu" in Frame 825
onClipEvent (enterFrame) {
_x = _root.player._x;
if (_root.blink._currentframe == 1) {
if (Key.isDown(37)) {
this._x = _x - 0;
} else if (Key.isDown(39)) {
this._x = _x + 0;
}
} else if (Key.isDown(37)) {
this._x = _x;
} else if (Key.isDown(39)) {
this._x = _x;
}
}
Instance of Symbol 618 MovieClip "fadeout" in Frame 825
onClipEvent (enterFrame) {
this._x = _root.player._x;
}
Instance of Symbol 674 MovieClip "shopfor" in Frame 825
onClipEvent (enterFrame) {
this._x = _root.player._x;
this._alpha = 100;
}
Instance of Symbol 930 MovieClip "maze" in Frame 825
onClipEvent (enterFrame) {
_x = _root.player._x;
if (_root.blink._currentframe == 1) {
if (Key.isDown(37)) {
this._x = _x - 0;
} else if (Key.isDown(39)) {
this._x = _x + 0;
}
} else if (Key.isDown(37)) {
this._x = _x;
} else if (Key.isDown(39)) {
this._x = _x;
}
}
Instance of Symbol 702 MovieClip "presse" in Frame 825
onClipEvent (enterFrame) {
_x = _root.player._x;
if (_root.blink._currentframe == 1) {
if (Key.isDown(37)) {
this._x = _x - 0;
} else if (Key.isDown(39)) {
this._x = _x + 0;
}
} else if (Key.isDown(37)) {
this._x = _x;
} else if (Key.isDown(39)) {
this._x = _x;
}
}
Instance of Symbol 704 MovieClip "presse2" in Frame 825
onClipEvent (enterFrame) {
_x = _root.player._x;
if (_root.blink._currentframe == 1) {
if (Key.isDown(37)) {
this._x = _x - 0;
} else if (Key.isDown(39)) {
this._x = _x + 0;
}
} else if (Key.isDown(37)) {
this._x = _x;
} else if (Key.isDown(39)) {
this._x = _x;
}
}
Instance of Symbol 707 MovieClip "fadetolevel" in Frame 825
onClipEvent (enterFrame) {
this._x = _root.player._x;
}
Frame 826
stop();
_root.kc._visible = true;
_root.kc._alpha = 100;
_root.ka._visible = true;
_root.ka._alpha = 100;
stopAllSounds();
_root.checkpoint = 3;
_root._x = 0;
Instance of Symbol 86 MovieClip "kc" in Frame 826
onClipEvent (enterFrame) {
var my_date = new Date();
var hours = my_date.getHours();
gotoAndStop(statet);
if ((hours > 4) && (hours < 10)) {
this.backg.gotoAndStop(1);
statet = 1;
}
if ((hours > 9) && (hours < 11)) {
this.backg.gotoAndStop(1);
statet = 2;
}
if ((hours > 12) && (hours < 18)) {
this.backg.gotoAndStop(2);
statet = 3;
}
if (hours > 17) {
this.backg.gotoAndStop(3);
statet = 4;
}
}
Frame 827
_root.presse._visible = false;
_root.presse2._visible = false;
_root.shopfor._visible = false;
moneySave = _root.moola.money;
fix = 0;
function stopall(tgt) {
for (var _local2 in tgt) {
tgt[_local2].stop();
stopall(tgt[_local2]);
}
}
function playall(tgt) {
for (var _local2 in tgt) {
tgt[_local2].play();
playall(tgt[_local2]);
}
}
var i = 0;
while (i < 10) {
_root["troll" + i].blocking = 0;
i++;
}
var i = 0;
while (i < 10) {
_root["demon" + i].blocking2 = 0;
i++;
}
var i = 0;
while (i < 10) {
_root["darkknight" + i].blocking3 = 0;
i++;
}
var i = 0;
while (i < 10) {
_root["death" + i].blocking4 = 0;
i++;
}
stop();
pausea = 0;
trollkill = 0;
gettinghit = 0;
deathkill2 = 0;
dknight3 = 0;
trollkill2 = 0;
demonkill2 = 0;
trollis = 0;
win1 = 0;
if (_root.cmon == 1) {
_root.moola.money = 0;
}
_root.forpant._visible = false;
cavekill2 = 0;
cavekill = 0;
Instance of Symbol 946 MovieClip "backgrounda" in Frame 827
onClipEvent (enterFrame) {
this._x = _root.player._x / 1.123;
}
Instance of Symbol 314 MovieClip in Frame 827
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (this._currentframe == 1)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 314 MovieClip in Frame 827
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (this._currentframe == 1)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 318 MovieClip in Frame 827
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
this.heart.gotoAndStop(2);
}
}
Instance of Symbol 318 MovieClip in Frame 827
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
this.heart.gotoAndStop(2);
}
}
Instance of Symbol 308 MovieClip in Frame 827
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.shopfor._currentframe == 1)) {
_root.presse2._visible = true;
} else {
if (!this.hitTest(_root.player)) {
_root.presse2._visible = false;
}
if (shopfor._currentframe != 2) {
_root.presse2._visible = false;
}
}
}
onClipEvent (enterFrame) {
if ((this.hitTest(_root.player) && (_root.shopfor._currentframe == 1)) && (Key.isDown(69))) {
_root.shopfor._visible = true;
_root.shopfor.gotoAndPlay(2);
_root.pauseaing2.gotoAndStop(2);
}
}
Instance of Symbol 488 MovieClip "lives" in Frame 827
onClipEvent (enterFrame) {
_x = _root.player._x;
if (_root.blink._currentframe == 1) {
if (Key.isDown(37)) {
this._x = _x - 0;
} else if (Key.isDown(39)) {
this._x = _x + 0;
}
} else if (Key.isDown(37)) {
this._x = _x;
} else if (Key.isDown(39)) {
this._x = _x;
}
}
Instance of Symbol 460 MovieClip "bar" in Frame 827
onClipEvent (enterFrame) {
_x = _root.player._x;
if (_root.blink._currentframe == 1) {
if (Key.isDown(37)) {
this._x = _x - 0;
} else if (Key.isDown(39)) {
this._x = _x + 0;
}
} else if (Key.isDown(37)) {
this._x = _x;
} else if (Key.isDown(39)) {
this._x = _x;
}
}
Instance of Symbol 489 MovieClip "money" in Frame 827
onClipEvent (enterFrame) {
_x = _root.player._x;
if (_root.blink._currentframe == 1) {
if (Key.isDown(37)) {
this._x = _x - 0;
} else if (Key.isDown(39)) {
this._x = _x + 0;
}
} else if (Key.isDown(37)) {
this._x = _x;
} else if (Key.isDown(39)) {
this._x = _x;
}
}
Instance of Symbol 575 MovieClip "player" in Frame 827
onClipEvent (enterFrame) {
if (_root.player._name == "player") {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
_visible = true;
_alpha = 100;
if (this._currentframe <= 3) {
if (!grounded) {
yspeed = yspeed + grav;
_y = (_y + yspeed);
}
if (this._currentframe != 4) {
if (Key.isDown(37)) {
_xscale = -100;
_x = (_x - speed);
if (this._currentframe == 3) {
} else {
(this.gotoAndStop(2));// not popped
}
}
if (Key.isDown(39)) {
_xscale = 100;
_x = (_x + speed);
if (this._currentframe == 3) {
} else {
(this.gotoAndStop(2));// not popped
}
}
if ((Key.isDown(32) && (this._currentframe != 3)) && (grounded)) {
this.gotoAndStop(3);
}
}
while (_root.ground.hitTest(_x, _y - h, true)) {
_y = (_y + 0.1);
}
while (_root.ground.hitTest(_x + w, _y, true)) {
_x = (_x - 0.1);
}
while (_root.ground.hitTest(_x - w, _y, true)) {
_x = (_x + 0.1);
}
((yspeed > 0) ? ((falling = true)(falling = true)(falling = true)) : null);
if (_root.ground.hitTest(_x, _y + h, true) && (falling == true)) {
((this._currentframe == 3) ? (jumpa.play()) : null);
grounded = true;
yspeed = 0;
falling = false;
} else {
grounded = false;
}
while (_root.ground.hitTest(_x, _y + h, true)) {
_y = (_y - 0.1);
}
if (!((((!Key.isDown(39)) && (!Key.isDown(37))) && (this._currentframe != 3)) && (this._currentframe != 4))) {
} else {
(this.gotoAndStop(1));// not popped
}
} else if (Key.isDown(32)) {
this.gotoAndStop(3);
jump.gotoAndPlay(5);
}
}
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if (this._currentframe <= 3) {
if (Key.isDown(17) && (_root.blahh.cycle._currentframe == 2)) {
_x = _root.tankid._x;
_root.tankid = "none";
_visible = true;
}
}
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if ((this._currentframe <= 3) && (_root.blahh.cycle._currentframe != 2)) {
if ((Key.isDown(32) && (this._currentframe != 3)) && (grounded)) {
if ((this._currentframe == 2) && (this._xscale == 100)) {
this._x = this._x - this.speed;
} else if ((this._currentframe == 2) && (this._xscale == 100)) {
this._x = this._x + this.speed;
}
}
}
}
cx = cx + (_x - cx);
_root._x = (Stage.width / 2) - cx;
}
}
on (keyPress "a") {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if (this._currentframe <= 2) {
this.gotoAndStop("punch");
}
}
}
}
on (keyPress "A") {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if (this._currentframe <= 2) {
this.gotoAndStop("punch");
}
}
}
}
on (keyPress "s") {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if (this._currentframe <= 2) {
this.gotoAndStop("slit");
}
}
}
}
on (keyPress "S") {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if (this._currentframe <= 2) {
this.gotoAndStop("slit");
}
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if (this._y > 430) {
this.gotoAndStop(1);
_x = defX;
_y = defY;
_root.def.play();
_root.blink.play();
}
if (Key.isDown(37) && (Key.isDown(39) && (Key.isDown(40) && (this._currentframe == 2)))) {
this.gotoAndStop(1);
}
}
}
}
on (keyPress "c") {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if ((yspeed == 0) && (_root.hud.cpt != 0)) {
_root.cp.play();
defX = _x;
defY = _y;
_root.hud.cpt--;
}
}
}
}
on (keyPress "d") {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if (this._currentframe <= 2) {
this.gotoAndStop("block");
}
}
}
}
on (keyPress "D") {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if (this._currentframe <= 2) {
this.gotoAndStop("block");
}
}
}
}
onClipEvent (keyUp) {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if (this._currentframe == 6) {
this.gotoAndStop(1);
}
}
}
}
onClipEvent (enterFrame) {
this.useHandCursor = false;
}
onClipEvent (keyUp) {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if (this._currentframe == 9) {
this.gotoAndStop(1);
}
}
}
}
onClipEvent (enterFrame) {
_root.money._x = _x;
}
onClipEvent (enterFrame) {
_root.presse2._x = _x;
}
onClipEvent (enterFrame) {
_root.maze._x = _x;
}
onClipEvent (enterFrame) {
_root.moola._x = _x;
}
onClipEvent (enterFrame) {
_root.shopfor._x = _x;
}
onClipEvent (enterFrame) {
_root.gomenu._x = _x;
}
on (keyPress "p") {
_root.pauseaing.nextFrame();
}
on (keyPress "P") {
_root.pauseaing.nextFrame();
}
onClipEvent (enterFrame) {
_root.pauseaing._x = _x;
}
onClipEvent (enterFrame) {
_root.presse._x = _x;
}
onClipEvent (enterFrame) {
_root.stuff._x = _x;
}
on (keyPress "m") {
_root.gomenu.gotoAndStop(2);
}
on (keyPress "M") {
_root.gomenu.gotoAndStop(2);
}
onClipEvent (enterFrame) {
if (_root.win1 == 1) {
_root.lives.prevFrame();
_root.lives.prevFrame();
_root.lives.prevFrame();
_root.win1 = 0;
}
}
Instance of Symbol 440 MovieClip in Frame 827
onClipEvent (enterFrame) {
_alpha = 0;
var i = 0;
while (i < 10) {
if (this.hitTest(_root["troll" + i])) {
_root["troll" + i].blocking = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if ((_root["demon" + i]._xscale > 0) && (this.hitTest(_root["demon" + i]))) {
_root["demon" + i].blocking2 = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if (this.hitTest(_root["darkknight" + i])) {
_root["darkknight" + i].blocking3 = 1;
}
i++;
}
}
Instance of Symbol 441 MovieClip in Frame 827
onClipEvent (enterFrame) {
if (_root.ground.crate1._currentframe >= 2) {
this.gotoAndStop(2);
}
}
Instance of Symbol 441 MovieClip in Frame 827
onClipEvent (enterFrame) {
if (_root.ground.crate2._currentframe >= 2) {
this.gotoAndStop(2);
}
}
Instance of Symbol 441 MovieClip in Frame 827
onClipEvent (enterFrame) {
if (_root.ground.crate3._currentframe >= 2) {
this.gotoAndStop(2);
}
}
Instance of Symbol 416 MovieClip "demon1" in Frame 827
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (this.hitTest(_root.player) && (_root.player._currentframe <= 3)) {
this.gotoAndStop("attack");
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (this._currentframe == 3) {
this.gotoAndStop(3);
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (_root.player._x > _x) {
_xscale = -60;
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (_root.player._x < _x) {
_xscale = 60;
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (this.hitTest(_root.player) && ((((_root.player._currentframe <= 3) || (_root.player._currentframe == 8)) || (_root.player._currentframe == 6)) || (_root.player._currentframe == 11))) {
this.gotoAndStop("attack");
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
distance = Math.sqrt(((_root.player._x - this._x) * (_root.player._x - this._x)) + ((_root.player._y - this._y) * (_root.player._y - this._y)));
if (blocking2 == 0) {
if ((distance < 225) && (!this.hitTest(_root.player))) {
if ((_currentframe != 5) && (_currentframe != 6)) {
if (_x >= _root.player._x) {
this.gotoAndStop(3);
this._x = this._x - 4;
} else if (_x < _root.player._x) {
this.gotoAndStop(3);
this._x = this._x + 4;
}
}
} else if (((!this.hitTest(_root.player)) && (_currentframe != 5)) && (_currentframe != 6)) {
gotoAndStop (1);
}
} else if (blocking2 == 1) {
if ((distance < 225) && (!this.hitTest(_root.player))) {
if ((_currentframe != 5) && (_currentframe != 6)) {
if (_x >= _root.player._x) {
this.gotoAndStop(1);
this._x = this._x - 0;
} else if (_x < _root.player._x) {
this.gotoAndStop(1);
this._x = this._x + 0;
}
}
} else if (((!this.hitTest(_root.player)) && (_currentframe != 5)) && (_currentframe != 6)) {
gotoAndStop (1);
}
}
}
}
Instance of Symbol 441 MovieClip in Frame 827
onClipEvent (enterFrame) {
if (_root.ground.crate1._currentframe >= 2) {
this.gotoAndStop(2);
}
}
Instance of Symbol 441 MovieClip in Frame 827
onClipEvent (enterFrame) {
if (_root.ground.crate4._currentframe >= 2) {
this.gotoAndStop(2);
}
}
Instance of Symbol 441 MovieClip in Frame 827
onClipEvent (enterFrame) {
if (_root.ground.crate4._currentframe >= 2) {
this.gotoAndStop(2);
}
}
Instance of Symbol 441 MovieClip in Frame 827
onClipEvent (enterFrame) {
if (_root.ground.crate5._currentframe >= 2) {
this.gotoAndStop(2);
}
}
Instance of Symbol 441 MovieClip in Frame 827
onClipEvent (enterFrame) {
if (_root.ground.crate5._currentframe >= 2) {
this.gotoAndStop(2);
}
}
Instance of Symbol 445 MovieClip in Frame 827
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.fadetolevel._currentframe == 1)) {
_root.fadetolevel.play();
}
}
Instance of Symbol 928 MovieClip "cave1" in Frame 827
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (this.hitTest(_root.player) && (_root.player._currentframe <= 3)) {
this.gotoAndStop("attack");
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (this._currentframe == 3) {
this.gotoAndStop(3);
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (this._currentframe == 1) {
if (_root.player._x > _x) {
_xscale = -60;
}
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (this._currentframe == 1) {
if (_root.player._x < _x) {
_xscale = 60;
}
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (this.hitTest(_root.player) && ((((_root.player._currentframe <= 3) || (_root.player._currentframe == 8)) || (_root.player._currentframe == 6)) || (_root.player._currentframe == 11))) {
this.gotoAndStop("attack");
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
distance = Math.sqrt(((_root.player._x - this._x) * (_root.player._x - this._x)) + ((_root.player._y - this._y) * (_root.player._y - this._y)));
if ((distance < 225) && (!this.hitTest(_root.player))) {
if ((_currentframe != 5) && (_currentframe != 6)) {
this.gotoAndStop("attack");
}
}
}
}
Instance of Symbol 849 MovieClip "death1" in Frame 827
onClipEvent (enterFrame) {
if ((this._currentframe == 3) && (this.hitTest(_root.player))) {
this.gotoAndStop(3);
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if ((this.hitTest(_root.player) && (_root.player._currentframe <= 2)) && (this._currentframe != 3)) {
this.gotoAndStop("attack");
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (this._currentframe == 3) {
this.gotoAndStop(3);
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (_root.player._x > _x) {
_xscale = -100;
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (_root.player._x < _x) {
_xscale = 100;
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if ((this.hitTest(_root.player) && (this._currentframe != 3)) && ((((_root.player._currentframe <= 3) || (_root.player._currentframe == 8)) || (_root.player._currentframe == 6)) || (_root.player._currentframe == 11))) {
this.gotoAndStop("attack");
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
distance = Math.sqrt(((_root.player._x - this._x) * (_root.player._x - this._x)) + ((_root.player._y - this._y) * (_root.player._y - this._y)));
if (blocking4 == 0) {
if ((distance < 225) && (!this.hitTest(_root.player))) {
if ((_currentframe != 3) && (_currentframe != 6)) {
if (_x >= _root.player._x) {
this.gotoAndStop(4);
this._x = this._x - 4;
} else if (_x < _root.player._x) {
this.gotoAndStop(4);
this._x = this._x + 4;
}
}
} else if (((!this.hitTest(_root.player)) && (_currentframe != 3)) && (_currentframe != 6)) {
gotoAndStop (1);
}
} else if (blocking4 == 1) {
if ((distance < 225) && (!this.hitTest(_root.player))) {
if ((_currentframe != 3) && (_currentframe != 6)) {
if (_x >= _root.player._x) {
this.gotoAndStop(1);
this._x = this._x - 0;
} else if (_x < _root.player._x) {
this.gotoAndStop(1);
this._x = this._x + 0;
}
}
} else if (((!this.hitTest(_root.player)) && (_currentframe != 3)) && (_currentframe != 6)) {
gotoAndStop (1);
}
}
}
}
Instance of Symbol 416 MovieClip "demon2" in Frame 827
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (this.hitTest(_root.player) && (_root.player._currentframe <= 3)) {
this.gotoAndStop("attack");
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (this._currentframe == 3) {
this.gotoAndStop(3);
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (_root.player._x > _x) {
_xscale = -60;
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (_root.player._x < _x) {
_xscale = 60;
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (this.hitTest(_root.player) && ((((_root.player._currentframe <= 3) || (_root.player._currentframe == 8)) || (_root.player._currentframe == 6)) || (_root.player._currentframe == 11))) {
this.gotoAndStop("attack");
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
distance = Math.sqrt(((_root.player._x - this._x) * (_root.player._x - this._x)) + ((_root.player._y - this._y) * (_root.player._y - this._y)));
if (blocking2 == 0) {
if ((distance < 225) && (!this.hitTest(_root.player))) {
if ((_currentframe != 5) && (_currentframe != 6)) {
if (_x >= _root.player._x) {
this.gotoAndStop(3);
this._x = this._x - 4;
} else if (_x < _root.player._x) {
this.gotoAndStop(3);
this._x = this._x + 4;
}
}
} else if (((!this.hitTest(_root.player)) && (_currentframe != 5)) && (_currentframe != 6)) {
gotoAndStop (1);
}
} else if (blocking2 == 1) {
if ((distance < 225) && (!this.hitTest(_root.player))) {
if ((_currentframe != 5) && (_currentframe != 6)) {
if (_x >= _root.player._x) {
this.gotoAndStop(1);
this._x = this._x - 0;
} else if (_x < _root.player._x) {
this.gotoAndStop(1);
this._x = this._x + 0;
}
}
} else if (((!this.hitTest(_root.player)) && (_currentframe != 5)) && (_currentframe != 6)) {
gotoAndStop (1);
}
}
}
}
Instance of Symbol 441 MovieClip in Frame 827
onClipEvent (enterFrame) {
if (_root.ground.crate4._currentframe >= 2) {
this.gotoAndStop(2);
}
}
Instance of Symbol 441 MovieClip in Frame 827
onClipEvent (enterFrame) {
if (_root.ground.crate2._currentframe >= 2) {
this.gotoAndStop(2);
}
}
Instance of Symbol 440 MovieClip in Frame 827
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
_alpha = 0;
if (this.hitTest(_root["troll" + i])) {
_root["troll" + i].blocking = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if ((_root["demon" + i]._xscale > 0) && (this.hitTest(_root["demon" + i]))) {
_root["demon" + i].blocking2 = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if (this.hitTest(_root["darkknight" + i])) {
_root["darkknight" + i].blocking3 = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if (this.hitTest(_root["death" + i])) {
_root["death" + i].blocking4 = 1;
}
i++;
}
}
Instance of Symbol 584 MovieClip "pauseaing" in Frame 827
onClipEvent (enterFrame) {
this._x = _root.player._x;
}
Instance of Symbol 585 MovieClip "pauseaing2" in Frame 827
onClipEvent (enterFrame) {
this._x = _root.player._x;
}
Instance of Symbol 588 MovieClip "flasha" in Frame 827
onClipEvent (enterFrame) {
_x = _root.player._x;
if (_root.blink._currentframe == 1) {
if (Key.isDown(37)) {
this._x = _x - 7;
} else if (Key.isDown(39)) {
this._x = _x + 7;
}
} else if (Key.isDown(37)) {
this._x = _x;
} else if (Key.isDown(39)) {
this._x = _x;
}
}
Instance of Symbol 590 MovieClip in Frame 827
onClipEvent (enterFrame) {
this._x = _root.player._x;
}
Instance of Symbol 614 MovieClip "gomenu" in Frame 827
onClipEvent (enterFrame) {
_x = _root.player._x;
if (_root.blink._currentframe == 1) {
if (Key.isDown(37)) {
this._x = _x - 0;
} else if (Key.isDown(39)) {
this._x = _x + 0;
}
} else if (Key.isDown(37)) {
this._x = _x;
} else if (Key.isDown(39)) {
this._x = _x;
}
}
Instance of Symbol 618 MovieClip "fadeout" in Frame 827
onClipEvent (enterFrame) {
this._x = _root.player._x;
}
Instance of Symbol 674 MovieClip "shopfor" in Frame 827
onClipEvent (enterFrame) {
this._x = _root.player._x;
this._alpha = 100;
}
Instance of Symbol 930 MovieClip "maze" in Frame 827
onClipEvent (enterFrame) {
_x = _root.player._x;
if (_root.blink._currentframe == 1) {
if (Key.isDown(37)) {
this._x = _x - 0;
} else if (Key.isDown(39)) {
this._x = _x + 0;
}
} else if (Key.isDown(37)) {
this._x = _x;
} else if (Key.isDown(39)) {
this._x = _x;
}
}
Instance of Symbol 702 MovieClip "presse" in Frame 827
onClipEvent (enterFrame) {
_x = _root.player._x;
if (_root.blink._currentframe == 1) {
if (Key.isDown(37)) {
this._x = _x - 0;
} else if (Key.isDown(39)) {
this._x = _x + 0;
}
} else if (Key.isDown(37)) {
this._x = _x;
} else if (Key.isDown(39)) {
this._x = _x;
}
}
Instance of Symbol 704 MovieClip "presse2" in Frame 827
onClipEvent (enterFrame) {
_x = _root.player._x;
if (_root.blink._currentframe == 1) {
if (Key.isDown(37)) {
this._x = _x - 0;
} else if (Key.isDown(39)) {
this._x = _x + 0;
}
} else if (Key.isDown(37)) {
this._x = _x;
} else if (Key.isDown(39)) {
this._x = _x;
}
}
Instance of Symbol 707 MovieClip "fadetolevel" in Frame 827
onClipEvent (enterFrame) {
this._x = _root.player._x;
}
Frame 828
stop();
_root.kc._visible = true;
_root.kc._alpha = 100;
_root.ka._visible = true;
_root.ka._alpha = 100;
stopAllSounds();
_root.checkpoint = 3;
_root._x = 0;
Instance of Symbol 86 MovieClip "kc" in Frame 828
onClipEvent (enterFrame) {
var my_date = new Date();
var hours = my_date.getHours();
gotoAndStop(statet);
if ((hours > 4) && (hours < 10)) {
this.backg.gotoAndStop(1);
statet = 1;
}
if ((hours > 9) && (hours < 11)) {
this.backg.gotoAndStop(1);
statet = 2;
}
if ((hours > 12) && (hours < 18)) {
this.backg.gotoAndStop(2);
statet = 3;
}
if (hours > 17) {
this.backg.gotoAndStop(3);
statet = 4;
}
}
Frame 829
_root.presse._visible = false;
_root.presse2._visible = false;
_root.shopfor._visible = false;
moneySave = _root.moola.money;
fix = 0;
function stopall(tgt) {
for (var _local2 in tgt) {
tgt[_local2].stop();
stopall(tgt[_local2]);
}
}
function playall(tgt) {
for (var _local2 in tgt) {
tgt[_local2].play();
playall(tgt[_local2]);
}
}
var i = 0;
while (i < 10) {
_root["troll" + i].blocking = 0;
i++;
}
var i = 0;
while (i < 10) {
_root["demon" + i].blocking2 = 0;
i++;
}
var i = 0;
while (i < 10) {
_root["darkknight" + i].blocking3 = 0;
i++;
}
var i = 0;
while (i < 10) {
_root["death" + i].blocking4 = 0;
i++;
}
stop();
pausea = 0;
trollkill = 0;
gettinghit = 0;
deathkill2 = 0;
dknight3 = 0;
trollkill2 = 0;
demonkill2 = 0;
trollis = 0;
win1 = 0;
if (_root.cmon == 1) {
_root.moola.money = 0;
}
_root.forpant._visible = false;
cavekill2 = 0;
cavekill = 0;
Instance of Symbol 946 MovieClip "backgrounda" in Frame 829
onClipEvent (enterFrame) {
this._x = _root.player._x / 1.123;
}
Instance of Symbol 314 MovieClip in Frame 829
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (this._currentframe == 1)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 314 MovieClip in Frame 829
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (this._currentframe == 1)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 318 MovieClip in Frame 829
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
this.heart.gotoAndStop(2);
}
}
Instance of Symbol 308 MovieClip in Frame 829
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.shopfor._currentframe == 1)) {
_root.presse2._visible = true;
} else {
if (!this.hitTest(_root.player)) {
_root.presse2._visible = false;
}
if (shopfor._currentframe != 2) {
_root.presse2._visible = false;
}
}
}
onClipEvent (enterFrame) {
if ((this.hitTest(_root.player) && (_root.shopfor._currentframe == 1)) && (Key.isDown(69))) {
_root.shopfor._visible = true;
_root.shopfor.gotoAndPlay(2);
_root.pauseaing2.gotoAndStop(2);
}
}
Instance of Symbol 488 MovieClip "lives" in Frame 829
onClipEvent (enterFrame) {
_x = _root.player._x;
if (_root.blink._currentframe == 1) {
if (Key.isDown(37)) {
this._x = _x - 0;
} else if (Key.isDown(39)) {
this._x = _x + 0;
}
} else if (Key.isDown(37)) {
this._x = _x;
} else if (Key.isDown(39)) {
this._x = _x;
}
}
Instance of Symbol 460 MovieClip "bar" in Frame 829
onClipEvent (enterFrame) {
_x = _root.player._x;
if (_root.blink._currentframe == 1) {
if (Key.isDown(37)) {
this._x = _x - 0;
} else if (Key.isDown(39)) {
this._x = _x + 0;
}
} else if (Key.isDown(37)) {
this._x = _x;
} else if (Key.isDown(39)) {
this._x = _x;
}
}
Instance of Symbol 489 MovieClip "money" in Frame 829
onClipEvent (enterFrame) {
_x = _root.player._x;
if (_root.blink._currentframe == 1) {
if (Key.isDown(37)) {
this._x = _x - 0;
} else if (Key.isDown(39)) {
this._x = _x + 0;
}
} else if (Key.isDown(37)) {
this._x = _x;
} else if (Key.isDown(39)) {
this._x = _x;
}
}
Instance of Symbol 575 MovieClip "player" in Frame 829
onClipEvent (enterFrame) {
if (_root.player._name == "player") {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
_visible = true;
_alpha = 100;
if (this._currentframe <= 3) {
if (!grounded) {
yspeed = yspeed + grav;
_y = (_y + yspeed);
}
if (this._currentframe != 4) {
if (Key.isDown(37)) {
_xscale = -100;
_x = (_x - speed);
if (this._currentframe == 3) {
} else {
(this.gotoAndStop(2));// not popped
}
}
if (Key.isDown(39)) {
_xscale = 100;
_x = (_x + speed);
if (this._currentframe == 3) {
} else {
(this.gotoAndStop(2));// not popped
}
}
if ((Key.isDown(32) && (this._currentframe != 3)) && (grounded)) {
this.gotoAndStop(3);
}
}
while (_root.ground.hitTest(_x, _y - h, true)) {
_y = (_y + 0.1);
}
while (_root.ground.hitTest(_x + w, _y, true)) {
_x = (_x - 0.1);
}
while (_root.ground.hitTest(_x - w, _y, true)) {
_x = (_x + 0.1);
}
((yspeed > 0) ? ((falling = true)(falling = true)(falling = true)) : null);
if (_root.ground.hitTest(_x, _y + h, true) && (falling == true)) {
((this._currentframe == 3) ? (jumpa.play()) : null);
grounded = true;
yspeed = 0;
falling = false;
} else {
grounded = false;
}
while (_root.ground.hitTest(_x, _y + h, true)) {
_y = (_y - 0.1);
}
if (!((((!Key.isDown(39)) && (!Key.isDown(37))) && (this._currentframe != 3)) && (this._currentframe != 4))) {
} else {
(this.gotoAndStop(1));// not popped
}
} else if (Key.isDown(32)) {
this.gotoAndStop(3);
jump.gotoAndPlay(5);
}
}
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if (this._currentframe <= 3) {
if (Key.isDown(17) && (_root.blahh.cycle._currentframe == 2)) {
_x = _root.tankid._x;
_root.tankid = "none";
_visible = true;
}
}
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if ((this._currentframe <= 3) && (_root.blahh.cycle._currentframe != 2)) {
if ((Key.isDown(32) && (this._currentframe != 3)) && (grounded)) {
if ((this._currentframe == 2) && (this._xscale == 100)) {
this._x = this._x - this.speed;
} else if ((this._currentframe == 2) && (this._xscale == 100)) {
this._x = this._x + this.speed;
}
}
}
}
cx = cx + (_x - cx);
_root._x = (Stage.width / 2) - cx;
}
}
on (keyPress "a") {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if (this._currentframe <= 2) {
this.gotoAndStop("punch");
}
}
}
}
on (keyPress "A") {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if (this._currentframe <= 2) {
this.gotoAndStop("punch");
}
}
}
}
on (keyPress "s") {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if (this._currentframe <= 2) {
this.gotoAndStop("slit");
}
}
}
}
on (keyPress "S") {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if (this._currentframe <= 2) {
this.gotoAndStop("slit");
}
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if (this._y > 430) {
this.gotoAndStop(1);
_x = defX;
_y = defY;
_root.def.play();
_root.blink.play();
}
if (Key.isDown(37) && (Key.isDown(39) && (Key.isDown(40) && (this._currentframe == 2)))) {
this.gotoAndStop(1);
}
}
}
}
on (keyPress "c") {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if ((yspeed == 0) && (_root.hud.cpt != 0)) {
_root.cp.play();
defX = _x;
defY = _y;
_root.hud.cpt--;
}
}
}
}
on (keyPress "d") {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if (this._currentframe <= 2) {
this.gotoAndStop("block");
}
}
}
}
on (keyPress "D") {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if (this._currentframe <= 2) {
this.gotoAndStop("block");
}
}
}
}
onClipEvent (keyUp) {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if (this._currentframe == 6) {
this.gotoAndStop(1);
}
}
}
}
onClipEvent (enterFrame) {
this.useHandCursor = false;
}
onClipEvent (keyUp) {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if (this._currentframe == 9) {
this.gotoAndStop(1);
}
}
}
}
onClipEvent (enterFrame) {
_root.money._x = _x;
}
onClipEvent (enterFrame) {
_root.presse2._x = _x;
}
onClipEvent (enterFrame) {
_root.maze._x = _x;
}
onClipEvent (enterFrame) {
_root.moola._x = _x;
}
onClipEvent (enterFrame) {
_root.shopfor._x = _x;
}
onClipEvent (enterFrame) {
_root.gomenu._x = _x;
}
on (keyPress "p") {
_root.pauseaing.nextFrame();
}
on (keyPress "P") {
_root.pauseaing.nextFrame();
}
onClipEvent (enterFrame) {
_root.pauseaing._x = _x;
}
onClipEvent (enterFrame) {
_root.presse._x = _x;
}
onClipEvent (enterFrame) {
_root.stuff._x = _x;
}
on (keyPress "m") {
_root.gomenu.gotoAndStop(2);
}
on (keyPress "M") {
_root.gomenu.gotoAndStop(2);
}
onClipEvent (enterFrame) {
if (_root.win1 == 1) {
_root.lives.prevFrame();
_root.lives.prevFrame();
_root.lives.prevFrame();
_root.win1 = 0;
}
}
Instance of Symbol 440 MovieClip in Frame 829
onClipEvent (enterFrame) {
_alpha = 0;
var i = 0;
while (i < 10) {
if (this.hitTest(_root["troll" + i])) {
_root["troll" + i].blocking = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if ((_root["demon" + i]._xscale > 0) && (this.hitTest(_root["demon" + i]))) {
_root["demon" + i].blocking2 = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if (this.hitTest(_root["darkknight" + i])) {
_root["darkknight" + i].blocking3 = 1;
}
i++;
}
}
Instance of Symbol 441 MovieClip in Frame 829
onClipEvent (enterFrame) {
if (_root.ground.crate1._currentframe >= 2) {
this.gotoAndStop(2);
}
}
Instance of Symbol 441 MovieClip in Frame 829
onClipEvent (enterFrame) {
if (_root.ground.crate2._currentframe >= 2) {
this.gotoAndStop(2);
}
}
Instance of Symbol 441 MovieClip in Frame 829
onClipEvent (enterFrame) {
if (_root.ground.crate3._currentframe >= 2) {
this.gotoAndStop(2);
}
}
Instance of Symbol 441 MovieClip in Frame 829
onClipEvent (enterFrame) {
if (_root.ground.crate1._currentframe >= 2) {
this.gotoAndStop(2);
}
}
Instance of Symbol 441 MovieClip in Frame 829
onClipEvent (enterFrame) {
if (_root.ground.crate1._currentframe >= 2) {
this.gotoAndStop(2);
}
}
Instance of Symbol 441 MovieClip in Frame 829
onClipEvent (enterFrame) {
if (_root.ground.crate1._currentframe >= 2) {
this.gotoAndStop(2);
}
}
Instance of Symbol 441 MovieClip in Frame 829
onClipEvent (enterFrame) {
if (_root.ground.crate5._currentframe >= 2) {
this.gotoAndStop(2);
}
}
Instance of Symbol 441 MovieClip in Frame 829
onClipEvent (enterFrame) {
if (_root.ground.crate5._currentframe >= 2) {
this.gotoAndStop(2);
}
}
Instance of Symbol 445 MovieClip in Frame 829
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.fadetolevel._currentframe == 1)) {
_root.fadetolevel.play();
}
}
Instance of Symbol 928 MovieClip "cave1" in Frame 829
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (this.hitTest(_root.player) && (_root.player._currentframe <= 3)) {
this.gotoAndStop("attack");
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (this._currentframe == 3) {
this.gotoAndStop(3);
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (this._currentframe == 1) {
if (_root.player._x > _x) {
_xscale = -60;
}
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (this._currentframe == 1) {
if (_root.player._x < _x) {
_xscale = 60;
}
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (this.hitTest(_root.player) && ((((_root.player._currentframe <= 3) || (_root.player._currentframe == 8)) || (_root.player._currentframe == 6)) || (_root.player._currentframe == 11))) {
this.gotoAndStop("attack");
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
distance = Math.sqrt(((_root.player._x - this._x) * (_root.player._x - this._x)) + ((_root.player._y - this._y) * (_root.player._y - this._y)));
if ((distance < 225) && (!this.hitTest(_root.player))) {
if ((_currentframe != 5) && (_currentframe != 6)) {
this.gotoAndStop("attack");
}
}
}
}
Instance of Symbol 849 MovieClip "death1" in Frame 829
onClipEvent (enterFrame) {
if ((this._currentframe == 3) && (this.hitTest(_root.player))) {
this.gotoAndStop(3);
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if ((this.hitTest(_root.player) && (_root.player._currentframe <= 2)) && (this._currentframe != 3)) {
this.gotoAndStop("attack");
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (this._currentframe == 3) {
this.gotoAndStop(3);
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (_root.player._x > _x) {
_xscale = -100;
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (_root.player._x < _x) {
_xscale = 100;
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if ((this.hitTest(_root.player) && (this._currentframe != 3)) && ((((_root.player._currentframe <= 3) || (_root.player._currentframe == 8)) || (_root.player._currentframe == 6)) || (_root.player._currentframe == 11))) {
this.gotoAndStop("attack");
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
distance = Math.sqrt(((_root.player._x - this._x) * (_root.player._x - this._x)) + ((_root.player._y - this._y) * (_root.player._y - this._y)));
if (blocking4 == 0) {
if ((distance < 225) && (!this.hitTest(_root.player))) {
if ((_currentframe != 3) && (_currentframe != 6)) {
if (_x >= _root.player._x) {
this.gotoAndStop(4);
this._x = this._x - 4;
} else if (_x < _root.player._x) {
this.gotoAndStop(4);
this._x = this._x + 4;
}
}
} else if (((!this.hitTest(_root.player)) && (_currentframe != 3)) && (_currentframe != 6)) {
gotoAndStop (1);
}
} else if (blocking4 == 1) {
if ((distance < 225) && (!this.hitTest(_root.player))) {
if ((_currentframe != 3) && (_currentframe != 6)) {
if (_x >= _root.player._x) {
this.gotoAndStop(1);
this._x = this._x - 0;
} else if (_x < _root.player._x) {
this.gotoAndStop(1);
this._x = this._x + 0;
}
}
} else if (((!this.hitTest(_root.player)) && (_currentframe != 3)) && (_currentframe != 6)) {
gotoAndStop (1);
}
}
}
}
Instance of Symbol 441 MovieClip in Frame 829
onClipEvent (enterFrame) {
if (_root.ground.crate4._currentframe >= 2) {
this.gotoAndStop(2);
}
}
Instance of Symbol 441 MovieClip in Frame 829
onClipEvent (enterFrame) {
if (_root.ground.crate2._currentframe >= 2) {
this.gotoAndStop(2);
}
}
Instance of Symbol 384 MovieClip "troll1" in Frame 829
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (this.hitTest(_root.player) && (_root.player._currentframe <= 3)) {
this.gotoAndStop("attack");
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (this._currentframe == 3) {
this.gotoAndStop(3);
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (_root.player._x > _x) {
_xscale = -100;
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (_root.player._x < _x) {
_xscale = 100;
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (this.hitTest(_root.player) && ((((_root.player._currentframe <= 3) || (_root.player._currentframe == 8)) || (_root.player._currentframe == 6)) || (_root.player._currentframe == 11))) {
this.gotoAndStop("attack");
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
distance = Math.sqrt(((_root.player._x - this._x) * (_root.player._x - this._x)) + ((_root.player._y - this._y) * (_root.player._y - this._y)));
if (blocking == 0) {
if ((distance < 225) && (!this.hitTest(_root.player))) {
if ((_currentframe != 3) && (_currentframe != 6)) {
if (_x >= _root.player._x) {
this.gotoAndStop(4);
this._x = this._x - 4;
} else if (_x < _root.player._x) {
this.gotoAndStop(4);
this._x = this._x + 4;
}
}
} else if (((!this.hitTest(_root.player)) && (_currentframe != 3)) && (_currentframe != 6)) {
gotoAndStop (1);
}
} else if (blocking == 1) {
if ((distance < 225) && (!this.hitTest(_root.player))) {
if ((_currentframe != 3) && (_currentframe != 6)) {
if (_x >= _root.player._x) {
this.gotoAndStop(1);
this._x = this._x - 0;
} else if (_x < _root.player._x) {
this.gotoAndStop(1);
this._x = this._x + 0;
}
}
} else if (((!this.hitTest(_root.player)) && (_currentframe != 3)) && (_currentframe != 6)) {
gotoAndStop (1);
}
}
}
}
onClipEvent (enterFrame) {
if (_root.trollis == 0) {
this._visible = true;
}
}
onClipEvent (enterFrame) {
if (_root.trollis == 1) {
this._visible = false;
this.gotoAndStop("dead");
}
}
onClipEvent (enterFrame) {
if (this._currentframe >= 6) {
this._visible = false;
this.removeMovieClip();
}
}
Instance of Symbol 438 MovieClip "darkknight1" in Frame 829
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (this.hitTest(_root.player) && (_root.player._currentframe <= 3)) {
this.gotoAndStop("attack");
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (this._currentframe == 3) {
this.gotoAndStop(3);
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (_root.player._x > _x) {
_xscale = -65;
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (_root.player._x < _x) {
_xscale = 65;
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (this.hitTest(_root.player) && ((((_root.player._currentframe <= 3) || (_root.player._currentframe == 8)) || (_root.player._currentframe == 6)) || (_root.player._currentframe == 11))) {
this.gotoAndStop("attack");
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
distance = Math.sqrt(((_root.player._x - this._x) * (_root.player._x - this._x)) + ((_root.player._y - this._y) * (_root.player._y - this._y)));
if (blocking3 == 0) {
if ((distance < 225) && (!this.hitTest(_root.player))) {
if ((_currentframe != 3) && (_currentframe != 6)) {
if (_x >= _root.player._x) {
this.gotoAndStop(4);
this._x = this._x - 4;
} else if (_x < _root.player._x) {
this.gotoAndStop(4);
this._x = this._x + 4;
}
}
} else if (((!this.hitTest(_root.player)) && (_currentframe != 3)) && (_currentframe != 6)) {
gotoAndStop (1);
}
} else if (blocking3 == 1) {
if ((distance < 225) && (!this.hitTest(_root.player))) {
if ((_currentframe != 3) && (_currentframe != 6)) {
if (_x >= _root.player._x) {
this.gotoAndStop(1);
this._x = this._x - 0;
} else if (_x < _root.player._x) {
this.gotoAndStop(1);
this._x = this._x + 0;
}
}
} else if (((!this.hitTest(_root.player)) && (_currentframe != 3)) && (_currentframe != 6)) {
gotoAndStop (1);
}
}
}
}
Instance of Symbol 440 MovieClip in Frame 829
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
_alpha = 0;
if (this.hitTest(_root["troll" + i])) {
_root["troll" + i].blocking = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if ((_root["demon" + i]._xscale > 0) && (this.hitTest(_root["demon" + i]))) {
_root["demon" + i].blocking2 = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if (this.hitTest(_root["darkknight" + i])) {
_root["darkknight" + i].blocking3 = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if (this.hitTest(_root["death" + i])) {
_root["death" + i].blocking4 = 1;
}
i++;
}
}
Instance of Symbol 584 MovieClip "pauseaing" in Frame 829
onClipEvent (enterFrame) {
this._x = _root.player._x;
}
Instance of Symbol 585 MovieClip "pauseaing2" in Frame 829
onClipEvent (enterFrame) {
this._x = _root.player._x;
}
Instance of Symbol 588 MovieClip "flasha" in Frame 829
onClipEvent (enterFrame) {
_x = _root.player._x;
if (_root.blink._currentframe == 1) {
if (Key.isDown(37)) {
this._x = _x - 7;
} else if (Key.isDown(39)) {
this._x = _x + 7;
}
} else if (Key.isDown(37)) {
this._x = _x;
} else if (Key.isDown(39)) {
this._x = _x;
}
}
Instance of Symbol 590 MovieClip in Frame 829
onClipEvent (enterFrame) {
this._x = _root.player._x;
}
Instance of Symbol 614 MovieClip "gomenu" in Frame 829
onClipEvent (enterFrame) {
_x = _root.player._x;
if (_root.blink._currentframe == 1) {
if (Key.isDown(37)) {
this._x = _x - 0;
} else if (Key.isDown(39)) {
this._x = _x + 0;
}
} else if (Key.isDown(37)) {
this._x = _x;
} else if (Key.isDown(39)) {
this._x = _x;
}
}
Instance of Symbol 618 MovieClip "fadeout" in Frame 829
onClipEvent (enterFrame) {
this._x = _root.player._x;
}
Instance of Symbol 674 MovieClip "shopfor" in Frame 829
onClipEvent (enterFrame) {
this._x = _root.player._x;
this._alpha = 100;
}
Instance of Symbol 930 MovieClip "maze" in Frame 829
onClipEvent (enterFrame) {
_x = _root.player._x;
if (_root.blink._currentframe == 1) {
if (Key.isDown(37)) {
this._x = _x - 0;
} else if (Key.isDown(39)) {
this._x = _x + 0;
}
} else if (Key.isDown(37)) {
this._x = _x;
} else if (Key.isDown(39)) {
this._x = _x;
}
}
Instance of Symbol 702 MovieClip "presse" in Frame 829
onClipEvent (enterFrame) {
_x = _root.player._x;
if (_root.blink._currentframe == 1) {
if (Key.isDown(37)) {
this._x = _x - 0;
} else if (Key.isDown(39)) {
this._x = _x + 0;
}
} else if (Key.isDown(37)) {
this._x = _x;
} else if (Key.isDown(39)) {
this._x = _x;
}
}
Instance of Symbol 704 MovieClip "presse2" in Frame 829
onClipEvent (enterFrame) {
_x = _root.player._x;
if (_root.blink._currentframe == 1) {
if (Key.isDown(37)) {
this._x = _x - 0;
} else if (Key.isDown(39)) {
this._x = _x + 0;
}
} else if (Key.isDown(37)) {
this._x = _x;
} else if (Key.isDown(39)) {
this._x = _x;
}
}
Instance of Symbol 707 MovieClip "fadetolevel" in Frame 829
onClipEvent (enterFrame) {
this._x = _root.player._x;
}
Frame 830
stop();
_root.kc._visible = true;
_root.kc._alpha = 100;
_root.ka._visible = true;
_root.ka._alpha = 100;
stopAllSounds();
_root.checkpoint = 4;
_root._x = 0;
Instance of Symbol 86 MovieClip "kc" in Frame 830
onClipEvent (enterFrame) {
var my_date = new Date();
var hours = my_date.getHours();
gotoAndStop(statet);
if ((hours > 4) && (hours < 10)) {
this.backg.gotoAndStop(1);
statet = 1;
}
if ((hours > 9) && (hours < 11)) {
this.backg.gotoAndStop(1);
statet = 2;
}
if ((hours > 12) && (hours < 18)) {
this.backg.gotoAndStop(2);
statet = 3;
}
if (hours > 17) {
this.backg.gotoAndStop(3);
statet = 4;
}
}
Frame 831
_root.presse._visible = false;
_root.presse2._visible = false;
_root.shopfor._visible = false;
fix = 0;
function stopall(tgt) {
for (var _local2 in tgt) {
tgt[_local2].stop();
stopall(tgt[_local2]);
}
}
function playall(tgt) {
for (var _local2 in tgt) {
tgt[_local2].play();
playall(tgt[_local2]);
}
}
var i = 0;
while (i < 10) {
_root["troll" + i].blocking = 0;
i++;
}
var i = 0;
while (i < 10) {
_root["demon" + i].blocking2 = 0;
i++;
}
var i = 0;
while (i < 10) {
_root["darkknight" + i].blocking3 = 0;
i++;
}
var i = 0;
while (i < 10) {
_root["death" + i].blocking4 = 0;
i++;
}
stop();
pausea = 0;
trollkill = 0;
gettinghit = 0;
deathkill2 = 0;
dknight3 = 0;
trollkill2 = 0;
demonkill2 = 0;
trollis = 0;
win1 = 0;
if (_root.cmon == 1) {
_root.moola.money = 0;
}
_root.forpant._visible = false;
cavekill2 = 0;
cavekill = 0;
Instance of Symbol 983 MovieClip "backgrounda" in Frame 831
onClipEvent (enterFrame) {
this._x = _root.player._x / 1.123;
}
Instance of Symbol 318 MovieClip in Frame 831
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
this.heart.gotoAndStop(2);
}
}
Instance of Symbol 314 MovieClip in Frame 831
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (this._currentframe == 1)) {
this.gotoAndStop(2);
}
}
Instance of Symbol 308 MovieClip in Frame 831
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.shopfor._currentframe == 1)) {
_root.presse2._visible = true;
} else {
if (!this.hitTest(_root.player)) {
_root.presse2._visible = false;
}
if (shopfor._currentframe != 2) {
_root.presse2._visible = false;
}
}
}
onClipEvent (enterFrame) {
if ((this.hitTest(_root.player) && (_root.shopfor._currentframe == 1)) && (Key.isDown(69))) {
_root.shopfor._visible = true;
_root.shopfor.gotoAndPlay(2);
_root.pauseaing2.gotoAndStop(2);
}
}
Instance of Symbol 488 MovieClip "lives" in Frame 831
onClipEvent (enterFrame) {
_x = _root.player._x;
if (_root.blink._currentframe == 1) {
if (Key.isDown(37)) {
this._x = _x - 0;
} else if (Key.isDown(39)) {
this._x = _x + 0;
}
} else if (Key.isDown(37)) {
this._x = _x;
} else if (Key.isDown(39)) {
this._x = _x;
}
}
Instance of Symbol 460 MovieClip "bar" in Frame 831
onClipEvent (enterFrame) {
_x = _root.player._x;
if (_root.blink._currentframe == 1) {
if (Key.isDown(37)) {
this._x = _x - 0;
} else if (Key.isDown(39)) {
this._x = _x + 0;
}
} else if (Key.isDown(37)) {
this._x = _x;
} else if (Key.isDown(39)) {
this._x = _x;
}
}
Instance of Symbol 489 MovieClip "money" in Frame 831
onClipEvent (enterFrame) {
_x = _root.player._x;
if (_root.blink._currentframe == 1) {
if (Key.isDown(37)) {
this._x = _x - 0;
} else if (Key.isDown(39)) {
this._x = _x + 0;
}
} else if (Key.isDown(37)) {
this._x = _x;
} else if (Key.isDown(39)) {
this._x = _x;
}
}
Instance of Symbol 575 MovieClip "player" in Frame 831
onClipEvent (enterFrame) {
if (_root.player._name == "player") {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
_visible = true;
_alpha = 100;
if (this._currentframe <= 3) {
if (!grounded) {
yspeed = yspeed + grav;
_y = (_y + yspeed);
}
if (this._currentframe != 4) {
if (Key.isDown(37)) {
_xscale = -100;
_x = (_x - speed);
if (this._currentframe == 3) {
} else {
(this.gotoAndStop(2));// not popped
}
}
if (Key.isDown(39)) {
_xscale = 100;
_x = (_x + speed);
if (this._currentframe == 3) {
} else {
(this.gotoAndStop(2));// not popped
}
}
if ((Key.isDown(32) && (this._currentframe != 3)) && (grounded)) {
this.gotoAndStop(3);
}
}
while (_root.ground.hitTest(_x, _y - h, true)) {
_y = (_y + 0.1);
}
while (_root.ground.hitTest(_x + w, _y, true)) {
_x = (_x - 0.1);
}
while (_root.ground.hitTest(_x - w, _y, true)) {
_x = (_x + 0.1);
}
((yspeed > 0) ? ((falling = true)(falling = true)(falling = true)) : null);
if (_root.ground.hitTest(_x, _y + h, true) && (falling == true)) {
((this._currentframe == 3) ? (jumpa.play()) : null);
grounded = true;
yspeed = 0;
falling = false;
} else {
grounded = false;
}
while (_root.ground.hitTest(_x, _y + h, true)) {
_y = (_y - 0.1);
}
if (!((((!Key.isDown(39)) && (!Key.isDown(37))) && (this._currentframe != 3)) && (this._currentframe != 4))) {
} else {
(this.gotoAndStop(1));// not popped
}
} else if (Key.isDown(32)) {
this.gotoAndStop(3);
jump.gotoAndPlay(5);
}
}
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if (this._currentframe <= 3) {
if (Key.isDown(17) && (_root.blahh.cycle._currentframe == 2)) {
_x = _root.tankid._x;
_root.tankid = "none";
_visible = true;
}
}
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if ((this._currentframe <= 3) && (_root.blahh.cycle._currentframe != 2)) {
if ((Key.isDown(32) && (this._currentframe != 3)) && (grounded)) {
if ((this._currentframe == 2) && (this._xscale == 100)) {
this._x = this._x - this.speed;
} else if ((this._currentframe == 2) && (this._xscale == 100)) {
this._x = this._x + this.speed;
}
}
}
}
cx = cx + (_x - cx);
_root._x = (Stage.width / 2) - cx;
}
}
on (keyPress "a") {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if (this._currentframe <= 2) {
this.gotoAndStop("punch");
}
}
}
}
on (keyPress "A") {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if (this._currentframe <= 2) {
this.gotoAndStop("punch");
}
}
}
}
on (keyPress "s") {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if (this._currentframe <= 2) {
this.gotoAndStop("slit");
}
}
}
}
on (keyPress "S") {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if (this._currentframe <= 2) {
this.gotoAndStop("slit");
}
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if (this._y > 430) {
this.gotoAndStop(1);
_x = defX;
_y = defY;
_root.def.play();
_root.blink.play();
}
if (Key.isDown(37) && (Key.isDown(39) && (Key.isDown(40) && (this._currentframe == 2)))) {
this.gotoAndStop(1);
}
}
}
}
on (keyPress "c") {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if ((yspeed == 0) && (_root.hud.cpt != 0)) {
_root.cp.play();
defX = _x;
defY = _y;
_root.hud.cpt--;
}
}
}
}
on (keyPress "d") {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if (this._currentframe <= 2) {
this.gotoAndStop("block");
}
}
}
}
on (keyPress "D") {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if (this._currentframe <= 2) {
this.gotoAndStop("block");
}
}
}
}
onClipEvent (keyUp) {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if (this._currentframe == 6) {
this.gotoAndStop(1);
}
}
}
}
onClipEvent (enterFrame) {
this.useHandCursor = false;
}
onClipEvent (keyUp) {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if (this._currentframe == 9) {
this.gotoAndStop(1);
}
}
}
}
onClipEvent (enterFrame) {
_root.money._x = _x;
}
onClipEvent (enterFrame) {
_root.presse2._x = _x;
}
onClipEvent (enterFrame) {
_root.maze._x = _x;
}
onClipEvent (enterFrame) {
_root.moola._x = _x;
}
onClipEvent (enterFrame) {
_root.shopfor._x = _x;
}
onClipEvent (enterFrame) {
_root.gomenu._x = _x;
}
on (keyPress "p") {
_root.pauseaing.nextFrame();
}
on (keyPress "P") {
_root.pauseaing.nextFrame();
}
onClipEvent (enterFrame) {
_root.pauseaing._x = _x;
}
onClipEvent (enterFrame) {
_root.presse._x = _x;
}
onClipEvent (enterFrame) {
_root.stuff._x = _x;
}
on (keyPress "m") {
_root.gomenu.gotoAndStop(2);
}
on (keyPress "M") {
_root.gomenu.gotoAndStop(2);
}
onClipEvent (enterFrame) {
if (_root.win1 == 1) {
_root.lives.prevFrame();
_root.lives.prevFrame();
_root.lives.prevFrame();
_root.win1 = 0;
}
}
Instance of Symbol 440 MovieClip in Frame 831
onClipEvent (enterFrame) {
_alpha = 0;
var i = 0;
while (i < 10) {
if (this.hitTest(_root["troll" + i])) {
_root["troll" + i].blocking = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if ((_root["demon" + i]._xscale > 0) && (this.hitTest(_root["demon" + i]))) {
_root["demon" + i].blocking2 = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if (this.hitTest(_root["darkknight" + i])) {
_root["darkknight" + i].blocking3 = 1;
}
i++;
}
}
Instance of Symbol 445 MovieClip in Frame 831
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.fadetolevel._currentframe == 1)) {
_root.fadetolevel.play();
}
}
Instance of Symbol 441 MovieClip in Frame 831
onClipEvent (enterFrame) {
if (_root.ground.crate1._currentframe >= 2) {
this.gotoAndStop(2);
}
}
Instance of Symbol 441 MovieClip in Frame 831
onClipEvent (enterFrame) {
if (_root.ground.crate1._currentframe >= 2) {
this.gotoAndStop(2);
}
}
Instance of Symbol 440 MovieClip in Frame 831
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
_alpha = 0;
if ((_root["troll" + i]._xscale < 0) && (this.hitTest(_root["troll" + i]))) {
_root["troll" + i].blocking = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if ((_root["demon" + i]._xscale < 0) && (this.hitTest(_root["demon" + i]))) {
_root["demon" + i].blocking2 = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if ((_root["darkknight" + i]._xscale < 0) && (this.hitTest(_root["darkknight" + i]))) {
_root["darkknight" + i].blocking3 = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if ((_root["death" + i]._xscale < 0) && (this.hitTest(_root["death" + i]))) {
_root["death" + i].blocking4 = 1;
}
i++;
}
}
Instance of Symbol 440 MovieClip in Frame 831
onClipEvent (enterFrame) {
_alpha = 0;
var i = 0;
while (i > 10) {
if ((_root["troll" + i]._xscale > 0) && (this.hitTest(_root["troll" + i]))) {
_root["troll" + i].blocking = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i > 10) {
if ((_root["demon" + i]._xscale > 0) && (this.hitTest(_root["demon" + i]))) {
_root["demon" + i].blocking2 = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i > 10) {
if ((_root["darkknight" + i]._xscale > 0) && (this.hitTest(_root["darkknight" + i]))) {
_root["darkknight" + i].blocking3 = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i > 10) {
if ((_root["death" + i]._xscale > 0) && (this.hitTest(_root["death" + i]))) {
_root["death" + i].blocking4 = 1;
}
i++;
}
}
Instance of Symbol 441 MovieClip in Frame 831
onClipEvent (enterFrame) {
if (_root.ground.crate2._currentframe >= 2) {
this.gotoAndStop(2);
}
}
Instance of Symbol 441 MovieClip in Frame 831
onClipEvent (enterFrame) {
if (_root.ground.crate2._currentframe >= 2) {
this.gotoAndStop(2);
}
}
Instance of Symbol 441 MovieClip in Frame 831
onClipEvent (enterFrame) {
if (_root.ground.crate3._currentframe >= 2) {
this.gotoAndStop(2);
}
}
Instance of Symbol 441 MovieClip in Frame 831
onClipEvent (enterFrame) {
if (_root.ground.crate4._currentframe >= 2) {
this.gotoAndStop(2);
}
}
Instance of Symbol 440 MovieClip in Frame 831
onClipEvent (enterFrame) {
_alpha = 0;
var i = 0;
while (i < 10) {
if ((_root["troll" + i]._xscale < 0) && (this.hitTest(_root["troll" + i]))) {
_root["troll" + i].blocking = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if ((_root["demon" + i]._xscale < 0) && (this.hitTest(_root["demon" + i]))) {
_root["demon" + i].blocking2 = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if ((_root["darkknight" + i]._xscale < 0) && (this.hitTest(_root["darkknight" + i]))) {
_root["darkknight" + i].blocking3 = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if ((_root["death" + i]._xscale < 0) && (this.hitTest(_root["death" + i]))) {
_root["death" + i].blocking4 = 1;
}
i++;
}
}
Instance of Symbol 849 MovieClip "death1" in Frame 831
onClipEvent (enterFrame) {
if ((this._currentframe == 3) && (this.hitTest(_root.player))) {
this.gotoAndStop(3);
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if ((this.hitTest(_root.player) && (_root.player._currentframe <= 2)) && (this._currentframe != 3)) {
this.gotoAndStop("attack");
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (this._currentframe == 3) {
this.gotoAndStop(3);
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (_root.player._x > _x) {
_xscale = -100;
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (_root.player._x < _x) {
_xscale = 100;
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if ((this.hitTest(_root.player) && (this._currentframe != 3)) && ((((_root.player._currentframe <= 3) || (_root.player._currentframe == 8)) || (_root.player._currentframe == 6)) || (_root.player._currentframe == 11))) {
this.gotoAndStop("attack");
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
distance = Math.sqrt(((_root.player._x - this._x) * (_root.player._x - this._x)) + ((_root.player._y - this._y) * (_root.player._y - this._y)));
if (blocking4 == 0) {
if ((distance < 225) && (!this.hitTest(_root.player))) {
if ((_currentframe != 3) && (_currentframe != 6)) {
if (_x >= _root.player._x) {
this.gotoAndStop(4);
this._x = this._x - 4;
} else if (_x < _root.player._x) {
this.gotoAndStop(4);
this._x = this._x + 4;
}
}
} else if (((!this.hitTest(_root.player)) && (_currentframe != 3)) && (_currentframe != 6)) {
gotoAndStop (1);
}
} else if (blocking4 == 1) {
if ((distance < 225) && (!this.hitTest(_root.player))) {
if ((_currentframe != 3) && (_currentframe != 6)) {
if (_x >= _root.player._x) {
this.gotoAndStop(1);
this._x = this._x - 0;
} else if (_x < _root.player._x) {
this.gotoAndStop(1);
this._x = this._x + 0;
}
}
} else if (((!this.hitTest(_root.player)) && (_currentframe != 3)) && (_currentframe != 6)) {
gotoAndStop (1);
}
}
}
}
Instance of Symbol 438 MovieClip "darkknight1" in Frame 831
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (this.hitTest(_root.player) && (_root.player._currentframe <= 3)) {
this.gotoAndStop("attack");
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (this._currentframe == 3) {
this.gotoAndStop(3);
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (_root.player._x > _x) {
_xscale = -65;
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (_root.player._x < _x) {
_xscale = 65;
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (this.hitTest(_root.player) && ((((_root.player._currentframe <= 3) || (_root.player._currentframe == 8)) || (_root.player._currentframe == 6)) || (_root.player._currentframe == 11))) {
this.gotoAndStop("attack");
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
distance = Math.sqrt(((_root.player._x - this._x) * (_root.player._x - this._x)) + ((_root.player._y - this._y) * (_root.player._y - this._y)));
if (blocking3 == 0) {
if ((distance < 225) && (!this.hitTest(_root.player))) {
if ((_currentframe != 3) && (_currentframe != 6)) {
if (_x >= _root.player._x) {
this.gotoAndStop(4);
this._x = this._x - 4;
} else if (_x < _root.player._x) {
this.gotoAndStop(4);
this._x = this._x + 4;
}
}
} else if (((!this.hitTest(_root.player)) && (_currentframe != 3)) && (_currentframe != 6)) {
gotoAndStop (1);
}
} else if (blocking3 == 1) {
if ((distance < 225) && (!this.hitTest(_root.player))) {
if ((_currentframe != 3) && (_currentframe != 6)) {
if (_x >= _root.player._x) {
this.gotoAndStop(1);
this._x = this._x - 0;
} else if (_x < _root.player._x) {
this.gotoAndStop(1);
this._x = this._x + 0;
}
}
} else if (((!this.hitTest(_root.player)) && (_currentframe != 3)) && (_currentframe != 6)) {
gotoAndStop (1);
}
}
}
}
Instance of Symbol 416 MovieClip "demon1" in Frame 831
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (this.hitTest(_root.player) && (_root.player._currentframe <= 3)) {
this.gotoAndStop("attack");
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (this._currentframe == 3) {
this.gotoAndStop(3);
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (_root.player._x > _x) {
_xscale = -60;
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (_root.player._x < _x) {
_xscale = 60;
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (this.hitTest(_root.player) && ((((_root.player._currentframe <= 3) || (_root.player._currentframe == 8)) || (_root.player._currentframe == 6)) || (_root.player._currentframe == 11))) {
this.gotoAndStop("attack");
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
distance = Math.sqrt(((_root.player._x - this._x) * (_root.player._x - this._x)) + ((_root.player._y - this._y) * (_root.player._y - this._y)));
if (blocking2 == 0) {
if ((distance < 225) && (!this.hitTest(_root.player))) {
if ((_currentframe != 5) && (_currentframe != 6)) {
if (_x >= _root.player._x) {
this.gotoAndStop(3);
this._x = this._x - 4;
} else if (_x < _root.player._x) {
this.gotoAndStop(3);
this._x = this._x + 4;
}
}
} else if (((!this.hitTest(_root.player)) && (_currentframe != 5)) && (_currentframe != 6)) {
gotoAndStop (1);
}
} else if (blocking2 == 1) {
if ((distance < 225) && (!this.hitTest(_root.player))) {
if ((_currentframe != 5) && (_currentframe != 6)) {
if (_x >= _root.player._x) {
this.gotoAndStop(1);
this._x = this._x - 0;
} else if (_x < _root.player._x) {
this.gotoAndStop(1);
this._x = this._x + 0;
}
}
} else if (((!this.hitTest(_root.player)) && (_currentframe != 5)) && (_currentframe != 6)) {
gotoAndStop (1);
}
}
}
}
Instance of Symbol 384 MovieClip "troll1" in Frame 831
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (this.hitTest(_root.player) && (_root.player._currentframe <= 3)) {
this.gotoAndStop("attack");
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (this._currentframe == 3) {
this.gotoAndStop(3);
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (_root.player._x > _x) {
_xscale = -100;
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (_root.player._x < _x) {
_xscale = 100;
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (this.hitTest(_root.player) && ((((_root.player._currentframe <= 3) || (_root.player._currentframe == 8)) || (_root.player._currentframe == 6)) || (_root.player._currentframe == 11))) {
this.gotoAndStop("attack");
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
distance = Math.sqrt(((_root.player._x - this._x) * (_root.player._x - this._x)) + ((_root.player._y - this._y) * (_root.player._y - this._y)));
if (blocking == 0) {
if ((distance < 225) && (!this.hitTest(_root.player))) {
if ((_currentframe != 3) && (_currentframe != 6)) {
if (_x >= _root.player._x) {
this.gotoAndStop(4);
this._x = this._x - 4;
} else if (_x < _root.player._x) {
this.gotoAndStop(4);
this._x = this._x + 4;
}
}
} else if (((!this.hitTest(_root.player)) && (_currentframe != 3)) && (_currentframe != 6)) {
gotoAndStop (1);
}
} else if (blocking == 1) {
if ((distance < 225) && (!this.hitTest(_root.player))) {
if ((_currentframe != 3) && (_currentframe != 6)) {
if (_x >= _root.player._x) {
this.gotoAndStop(1);
this._x = this._x - 0;
} else if (_x < _root.player._x) {
this.gotoAndStop(1);
this._x = this._x + 0;
}
}
} else if (((!this.hitTest(_root.player)) && (_currentframe != 3)) && (_currentframe != 6)) {
gotoAndStop (1);
}
}
}
}
onClipEvent (enterFrame) {
if (_root.trollis == 0) {
this._visible = true;
}
}
onClipEvent (enterFrame) {
if (_root.trollis == 1) {
this._visible = false;
this.gotoAndStop("dead");
}
}
onClipEvent (enterFrame) {
if (this._currentframe >= 6) {
this._visible = false;
this.removeMovieClip();
}
}
Instance of Symbol 584 MovieClip "pauseaing" in Frame 831
onClipEvent (enterFrame) {
this._x = _root.player._x;
}
Instance of Symbol 585 MovieClip "pauseaing2" in Frame 831
onClipEvent (enterFrame) {
this._x = _root.player._x;
}
Instance of Symbol 588 MovieClip "flasha" in Frame 831
onClipEvent (enterFrame) {
_x = _root.player._x;
if (_root.blink._currentframe == 1) {
if (Key.isDown(37)) {
this._x = _x - 7;
} else if (Key.isDown(39)) {
this._x = _x + 7;
}
} else if (Key.isDown(37)) {
this._x = _x;
} else if (Key.isDown(39)) {
this._x = _x;
}
}
Instance of Symbol 590 MovieClip in Frame 831
onClipEvent (enterFrame) {
this._x = _root.player._x;
}
Instance of Symbol 614 MovieClip "gomenu" in Frame 831
onClipEvent (enterFrame) {
_x = _root.player._x;
if (_root.blink._currentframe == 1) {
if (Key.isDown(37)) {
this._x = _x - 0;
} else if (Key.isDown(39)) {
this._x = _x + 0;
}
} else if (Key.isDown(37)) {
this._x = _x;
} else if (Key.isDown(39)) {
this._x = _x;
}
}
Instance of Symbol 618 MovieClip "fadeout" in Frame 831
onClipEvent (enterFrame) {
this._x = _root.player._x;
}
Instance of Symbol 674 MovieClip "shopfor" in Frame 831
onClipEvent (enterFrame) {
this._x = _root.player._x;
this._alpha = 100;
}
Instance of Symbol 989 MovieClip "maze" in Frame 831
onClipEvent (enterFrame) {
_x = _root.player._x;
if (_root.blink._currentframe == 1) {
if (Key.isDown(37)) {
this._x = _x - 0;
} else if (Key.isDown(39)) {
this._x = _x + 0;
}
} else if (Key.isDown(37)) {
this._x = _x;
} else if (Key.isDown(39)) {
this._x = _x;
}
}
Instance of Symbol 702 MovieClip "presse" in Frame 831
onClipEvent (enterFrame) {
_x = _root.player._x;
if (_root.blink._currentframe == 1) {
if (Key.isDown(37)) {
this._x = _x - 0;
} else if (Key.isDown(39)) {
this._x = _x + 0;
}
} else if (Key.isDown(37)) {
this._x = _x;
} else if (Key.isDown(39)) {
this._x = _x;
}
}
Instance of Symbol 704 MovieClip "presse2" in Frame 831
onClipEvent (enterFrame) {
_x = _root.player._x;
if (_root.blink._currentframe == 1) {
if (Key.isDown(37)) {
this._x = _x - 0;
} else if (Key.isDown(39)) {
this._x = _x + 0;
}
} else if (Key.isDown(37)) {
this._x = _x;
} else if (Key.isDown(39)) {
this._x = _x;
}
}
Instance of Symbol 707 MovieClip "fadetolevel" in Frame 831
onClipEvent (enterFrame) {
this._x = _root.player._x;
}
Frame 832
stop();
_root.kc._visible = true;
_root.kc._alpha = 100;
_root.ka._visible = true;
_root.ka._alpha = 100;
stopAllSounds();
_root.checkpoint = 3;
_root._x = 0;
Instance of Symbol 86 MovieClip "kc" in Frame 832
onClipEvent (enterFrame) {
var my_date = new Date();
var hours = my_date.getHours();
gotoAndStop(statet);
if ((hours > 4) && (hours < 10)) {
this.backg.gotoAndStop(1);
statet = 1;
}
if ((hours > 9) && (hours < 11)) {
this.backg.gotoAndStop(1);
statet = 2;
}
if ((hours > 12) && (hours < 18)) {
this.backg.gotoAndStop(2);
statet = 3;
}
if (hours > 17) {
this.backg.gotoAndStop(3);
statet = 4;
}
}
Frame 833
_root.presse._visible = false;
_root.presse2._visible = false;
_root.shopfor._visible = false;
moneySave = _root.moola.money;
fix = 0;
function stopall(tgt) {
for (var _local2 in tgt) {
tgt[_local2].stop();
stopall(tgt[_local2]);
}
}
function playall(tgt) {
for (var _local2 in tgt) {
tgt[_local2].play();
playall(tgt[_local2]);
}
}
var i = 0;
while (i < 10) {
_root["troll" + i].blocking = 0;
i++;
}
var i = 0;
while (i < 10) {
_root["demon" + i].blocking2 = 0;
i++;
}
var i = 0;
while (i < 10) {
_root["darkknight" + i].blocking3 = 0;
i++;
}
var i = 0;
while (i < 10) {
_root["death" + i].blocking4 = 0;
i++;
}
stop();
pausea = 0;
trollkill = 0;
gettinghit = 0;
deathkill2 = 0;
dknight3 = 0;
trollkill2 = 0;
demonkill2 = 0;
trollis = 0;
win1 = 0;
if (_root.cmon == 1) {
_root.moola.money = 0;
}
_root.forpant._visible = false;
cavekill2 = 0;
cavekill = 0;
Instance of Symbol 983 MovieClip "backgrounda" in Frame 833
onClipEvent (enterFrame) {
this._x = _root.player._x / 1.123;
}
Instance of Symbol 488 MovieClip "lives" in Frame 833
onClipEvent (enterFrame) {
_x = _root.player._x;
if (_root.blink._currentframe == 1) {
if (Key.isDown(37)) {
this._x = _x - 0;
} else if (Key.isDown(39)) {
this._x = _x + 0;
}
} else if (Key.isDown(37)) {
this._x = _x;
} else if (Key.isDown(39)) {
this._x = _x;
}
}
Instance of Symbol 460 MovieClip "bar" in Frame 833
onClipEvent (enterFrame) {
_x = _root.player._x;
if (_root.blink._currentframe == 1) {
if (Key.isDown(37)) {
this._x = _x - 0;
} else if (Key.isDown(39)) {
this._x = _x + 0;
}
} else if (Key.isDown(37)) {
this._x = _x;
} else if (Key.isDown(39)) {
this._x = _x;
}
}
Instance of Symbol 489 MovieClip "money" in Frame 833
onClipEvent (enterFrame) {
_x = _root.player._x;
if (_root.blink._currentframe == 1) {
if (Key.isDown(37)) {
this._x = _x - 0;
} else if (Key.isDown(39)) {
this._x = _x + 0;
}
} else if (Key.isDown(37)) {
this._x = _x;
} else if (Key.isDown(39)) {
this._x = _x;
}
}
Instance of Symbol 575 MovieClip "player" in Frame 833
onClipEvent (enterFrame) {
if (_root.player._name == "player") {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
_visible = true;
_alpha = 100;
if (this._currentframe <= 3) {
if (!grounded) {
yspeed = yspeed + grav;
_y = (_y + yspeed);
}
if (this._currentframe != 4) {
if (Key.isDown(37)) {
_xscale = -100;
_x = (_x - speed);
if (this._currentframe == 3) {
} else {
(this.gotoAndStop(2));// not popped
}
}
if (Key.isDown(39)) {
_xscale = 100;
_x = (_x + speed);
if (this._currentframe == 3) {
} else {
(this.gotoAndStop(2));// not popped
}
}
if ((Key.isDown(32) && (this._currentframe != 3)) && (grounded)) {
this.gotoAndStop(3);
}
}
while (_root.ground.hitTest(_x, _y - h, true)) {
_y = (_y + 0.1);
}
while (_root.ground.hitTest(_x + w, _y, true)) {
_x = (_x - 0.1);
}
while (_root.ground.hitTest(_x - w, _y, true)) {
_x = (_x + 0.1);
}
((yspeed > 0) ? ((falling = true)(falling = true)(falling = true)) : null);
if (_root.ground.hitTest(_x, _y + h, true) && (falling == true)) {
((this._currentframe == 3) ? (jumpa.play()) : null);
grounded = true;
yspeed = 0;
falling = false;
} else {
grounded = false;
}
while (_root.ground.hitTest(_x, _y + h, true)) {
_y = (_y - 0.1);
}
if (!((((!Key.isDown(39)) && (!Key.isDown(37))) && (this._currentframe != 3)) && (this._currentframe != 4))) {
} else {
(this.gotoAndStop(1));// not popped
}
} else if (Key.isDown(32)) {
this.gotoAndStop(3);
jump.gotoAndPlay(5);
}
}
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if (this._currentframe <= 3) {
if (Key.isDown(17) && (_root.blahh.cycle._currentframe == 2)) {
_x = _root.tankid._x;
_root.tankid = "none";
_visible = true;
}
}
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if ((this._currentframe <= 3) && (_root.blahh.cycle._currentframe != 2)) {
if ((Key.isDown(32) && (this._currentframe != 3)) && (grounded)) {
if ((this._currentframe == 2) && (this._xscale == 100)) {
this._x = this._x - this.speed;
} else if ((this._currentframe == 2) && (this._xscale == 100)) {
this._x = this._x + this.speed;
}
}
}
}
cx = cx + (_x - cx);
_root._x = (Stage.width / 2) - cx;
}
}
on (keyPress "a") {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if (this._currentframe <= 2) {
this.gotoAndStop("punch");
}
}
}
}
on (keyPress "A") {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if (this._currentframe <= 2) {
this.gotoAndStop("punch");
}
}
}
}
on (keyPress "s") {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if (this._currentframe <= 2) {
this.gotoAndStop("slit");
}
}
}
}
on (keyPress "S") {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if (this._currentframe <= 2) {
this.gotoAndStop("slit");
}
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if (this._y > 430) {
this.gotoAndStop(1);
_x = defX;
_y = defY;
_root.def.play();
_root.blink.play();
}
if (Key.isDown(37) && (Key.isDown(39) && (Key.isDown(40) && (this._currentframe == 2)))) {
this.gotoAndStop(1);
}
}
}
}
on (keyPress "c") {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if ((yspeed == 0) && (_root.hud.cpt != 0)) {
_root.cp.play();
defX = _x;
defY = _y;
_root.hud.cpt--;
}
}
}
}
on (keyPress "d") {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if (this._currentframe <= 2) {
this.gotoAndStop("block");
}
}
}
}
on (keyPress "D") {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if (this._currentframe <= 2) {
this.gotoAndStop("block");
}
}
}
}
onClipEvent (keyUp) {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if (this._currentframe == 6) {
this.gotoAndStop(1);
}
}
}
}
onClipEvent (enterFrame) {
this.useHandCursor = false;
}
onClipEvent (keyUp) {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if (this._currentframe == 9) {
this.gotoAndStop(1);
}
}
}
}
onClipEvent (enterFrame) {
_root.money._x = _x;
}
onClipEvent (enterFrame) {
_root.presse2._x = _x;
}
onClipEvent (enterFrame) {
_root.maze._x = _x;
}
onClipEvent (enterFrame) {
_root.moola._x = _x;
}
onClipEvent (enterFrame) {
_root.shopfor._x = _x;
}
onClipEvent (enterFrame) {
_root.gomenu._x = _x;
}
on (keyPress "p") {
_root.pauseaing.nextFrame();
}
on (keyPress "P") {
_root.pauseaing.nextFrame();
}
onClipEvent (enterFrame) {
_root.pauseaing._x = _x;
}
onClipEvent (enterFrame) {
_root.presse._x = _x;
}
onClipEvent (enterFrame) {
_root.stuff._x = _x;
}
on (keyPress "m") {
_root.gomenu.gotoAndStop(2);
}
on (keyPress "M") {
_root.gomenu.gotoAndStop(2);
}
onClipEvent (enterFrame) {
if (_root.win1 == 1) {
_root.lives.prevFrame();
_root.lives.prevFrame();
_root.lives.prevFrame();
_root.win1 = 0;
}
}
Instance of Symbol 440 MovieClip in Frame 833
onClipEvent (enterFrame) {
_alpha = 0;
var i = 0;
while (i < 10) {
if (this.hitTest(_root["troll" + i])) {
_root["troll" + i].blocking = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if ((_root["demon" + i]._xscale > 0) && (this.hitTest(_root["demon" + i]))) {
_root["demon" + i].blocking2 = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if (this.hitTest(_root["darkknight" + i])) {
_root["darkknight" + i].blocking3 = 1;
}
i++;
}
}
Instance of Symbol 445 MovieClip in Frame 833
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.fadetolevel._currentframe == 1)) {
_root.fadetolevel.play();
}
}
Instance of Symbol 584 MovieClip "pauseaing" in Frame 833
onClipEvent (enterFrame) {
this._x = _root.player._x;
}
Instance of Symbol 585 MovieClip "pauseaing2" in Frame 833
onClipEvent (enterFrame) {
this._x = _root.player._x;
}
Instance of Symbol 588 MovieClip "flasha" in Frame 833
onClipEvent (enterFrame) {
_x = _root.player._x;
if (_root.blink._currentframe == 1) {
if (Key.isDown(37)) {
this._x = _x - 7;
} else if (Key.isDown(39)) {
this._x = _x + 7;
}
} else if (Key.isDown(37)) {
this._x = _x;
} else if (Key.isDown(39)) {
this._x = _x;
}
}
Instance of Symbol 590 MovieClip in Frame 833
onClipEvent (enterFrame) {
this._x = _root.player._x;
}
Instance of Symbol 614 MovieClip "gomenu" in Frame 833
onClipEvent (enterFrame) {
_x = _root.player._x;
if (_root.blink._currentframe == 1) {
if (Key.isDown(37)) {
this._x = _x - 0;
} else if (Key.isDown(39)) {
this._x = _x + 0;
}
} else if (Key.isDown(37)) {
this._x = _x;
} else if (Key.isDown(39)) {
this._x = _x;
}
}
Instance of Symbol 618 MovieClip "fadeout" in Frame 833
onClipEvent (enterFrame) {
this._x = _root.player._x;
}
Instance of Symbol 674 MovieClip "shopfor" in Frame 833
onClipEvent (enterFrame) {
this._x = _root.player._x;
this._alpha = 100;
}
Instance of Symbol 989 MovieClip "maze" in Frame 833
onClipEvent (enterFrame) {
_x = _root.player._x;
if (_root.blink._currentframe == 1) {
if (Key.isDown(37)) {
this._x = _x - 0;
} else if (Key.isDown(39)) {
this._x = _x + 0;
}
} else if (Key.isDown(37)) {
this._x = _x;
} else if (Key.isDown(39)) {
this._x = _x;
}
}
Instance of Symbol 702 MovieClip "presse" in Frame 833
onClipEvent (enterFrame) {
_x = _root.player._x;
if (_root.blink._currentframe == 1) {
if (Key.isDown(37)) {
this._x = _x - 0;
} else if (Key.isDown(39)) {
this._x = _x + 0;
}
} else if (Key.isDown(37)) {
this._x = _x;
} else if (Key.isDown(39)) {
this._x = _x;
}
}
Instance of Symbol 704 MovieClip "presse2" in Frame 833
onClipEvent (enterFrame) {
_x = _root.player._x;
if (_root.blink._currentframe == 1) {
if (Key.isDown(37)) {
this._x = _x - 0;
} else if (Key.isDown(39)) {
this._x = _x + 0;
}
} else if (Key.isDown(37)) {
this._x = _x;
} else if (Key.isDown(39)) {
this._x = _x;
}
}
Instance of Symbol 707 MovieClip "fadetolevel" in Frame 833
onClipEvent (enterFrame) {
this._x = _root.player._x;
}
Frame 834
stop();
_root._x = 0;
Instance of Symbol 759 MovieClip "gameover" in Frame 834
onClipEvent (enterFrame) {
this._x = _root.player._x;
}
Instance of Symbol 707 MovieClip "fadetolevel" in Frame 834
onClipEvent (enterFrame) {
this._x = _root.player._x;
}
Frame 835
_root.presse._visible = false;
_root.presse2._visible = false;
_root.shopfor._visible = false;
moneySave = _root.moola.money;
fix = 0;
function stopall(tgt) {
for (var _local2 in tgt) {
tgt[_local2].stop();
stopall(tgt[_local2]);
}
}
function playall(tgt) {
for (var _local2 in tgt) {
tgt[_local2].play();
playall(tgt[_local2]);
}
}
var i = 0;
while (i < 10) {
_root["troll" + i].blocking = 0;
i++;
}
var i = 0;
while (i < 10) {
_root["demon" + i].blocking2 = 0;
i++;
}
var i = 0;
while (i < 10) {
_root["darkknight" + i].blocking3 = 0;
i++;
}
var i = 0;
while (i < 10) {
_root["death" + i].blocking4 = 0;
i++;
}
stop();
pausea = 0;
trollkill = 0;
gettinghit = 0;
deathkill2 = 0;
dknight3 = 0;
trollkill2 = 0;
demonkill2 = 0;
trollis = 0;
win1 = 0;
function stopall(tgt) {
for (var _local2 in tgt) {
tgt[_local2].stop();
stopall(tgt[_local2]);
}
}
function playall(tgt) {
for (var _local2 in tgt) {
tgt[_local2].play();
playall(tgt[_local2]);
}
}
var i = 0;
while (i < 10) {
_root["troll" + i].blocking = 0;
i++;
}
var i = 0;
while (i < 10) {
_root["demon" + i].blocking2 = 0;
i++;
}
var i = 0;
while (i < 10) {
_root["darkknight" + i].blocking3 = 0;
i++;
}
var i = 0;
while (i < 10) {
_root["death" + i].blocking4 = 0;
i++;
}
stop();
pausea = 0;
trollkill = 0;
gettinghit = 0;
deathkill2 = 0;
dknight3 = 0;
trollkill2 = 0;
demonkill2 = 0;
trollis = 0;
win1 = 0;
_root.forpant._visible = false;
cavekill2 = 0;
cavekill = 0;
_root.timer.timea = 30;
Instance of Symbol 983 MovieClip "backgrounda" in Frame 835
onClipEvent (enterFrame) {
this._x = _root.player._x / 1.123;
}
Instance of Symbol 1062 MovieClip "timer" in Frame 835
onClipEvent (enterFrame) {
_x = _root.player._x;
if (_root.blink._currentframe == 1) {
if (Key.isDown(37)) {
this._x = _x - 0;
} else if (Key.isDown(39)) {
this._x = _x + 0;
}
} else {
if (Key.isDown(37)) {
this._x = _x;
} else if (Key.isDown(39)) {
this._x = _x;
}
if (this.timea <= 0) {
_root.gameover.play();
pausea = 1;
}
}
}
Instance of Symbol 488 MovieClip "lives" in Frame 835
onClipEvent (enterFrame) {
_x = _root.player._x;
if (_root.blink._currentframe == 1) {
if (Key.isDown(37)) {
this._x = _x - 0;
} else if (Key.isDown(39)) {
this._x = _x + 0;
}
} else if (Key.isDown(37)) {
this._x = _x;
} else if (Key.isDown(39)) {
this._x = _x;
}
}
Instance of Symbol 440 MovieClip in Frame 835
onClipEvent (enterFrame) {
_alpha = 0;
var i = 0;
while (i < 10) {
if (this.hitTest(_root["troll" + i])) {
_root["troll" + i].blocking = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if ((_root["demon" + i]._xscale > 0) && (this.hitTest(_root["demon" + i]))) {
_root["demon" + i].blocking2 = 1;
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if (this.hitTest(_root["darkknight" + i])) {
_root["darkknight" + i].blocking3 = 1;
}
i++;
}
}
Instance of Symbol 445 MovieClip in Frame 835
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.fadetolevel._currentframe == 1)) {
_root.fadetolevel.play();
_root.red.stop();
}
}
Instance of Symbol 1102 MovieClip "player" in Frame 835
onClipEvent (enterFrame) {
if (_root.player._name == "player") {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
_visible = true;
_alpha = 100;
if (this._currentframe <= 3) {
if (!grounded) {
yspeed = yspeed + grav;
_y = (_y + yspeed);
}
if (this._currentframe != 4) {
if (Key.isDown(37)) {
_xscale = -100;
_x = (_x - speed);
if (this._currentframe == 3) {
} else {
(this.gotoAndStop(2));// not popped
}
}
if (Key.isDown(39)) {
_xscale = 100;
_x = (_x + speed);
if (this._currentframe == 3) {
} else {
(this.gotoAndStop(2));// not popped
}
}
if ((Key.isDown(32) && (this._currentframe != 3)) && (grounded)) {
this.gotoAndStop(3);
}
}
while (_root.ground.hitTest(_x, _y - h, true)) {
_y = (_y + 0.1);
}
while (_root.ground.hitTest(_x + w, _y, true)) {
_x = (_x - 0.1);
}
while (_root.ground.hitTest(_x - w, _y, true)) {
_x = (_x + 0.1);
}
((yspeed > 0) ? ((falling = true)(falling = true)(falling = true)) : null);
if (_root.ground.hitTest(_x, _y + h, true) && (falling == true)) {
((this._currentframe == 3) ? (jumpa.play()) : null);
grounded = true;
yspeed = 0;
falling = false;
} else {
grounded = false;
}
while (_root.ground.hitTest(_x, _y + h, true)) {
_y = (_y - 0.1);
}
if (!((((!Key.isDown(39)) && (!Key.isDown(37))) && (this._currentframe != 3)) && (this._currentframe != 4))) {
} else {
(this.gotoAndStop(1));// not popped
}
} else if (Key.isDown(32)) {
this.gotoAndStop(3);
jump.gotoAndPlay(5);
}
}
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if (this._currentframe <= 3) {
if (Key.isDown(17) && (_root.blahh.cycle._currentframe == 2)) {
_x = _root.tankid._x;
_root.tankid = "none";
_visible = true;
}
}
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if ((this._currentframe <= 3) && (_root.blahh.cycle._currentframe != 2)) {
if ((Key.isDown(32) && (this._currentframe != 3)) && (grounded)) {
if ((this._currentframe == 2) && (this._xscale == 100)) {
this._x = this._x - this.speed;
} else if ((this._currentframe == 2) && (this._xscale == 100)) {
this._x = this._x + this.speed;
}
}
}
}
cx = cx + (_x - cx);
_root._x = (Stage.width / 2) - cx;
}
}
on (keyPress "a") {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if (this._currentframe <= 2) {
this.gotoAndStop("punch");
}
}
}
}
on (keyPress "A") {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if (this._currentframe <= 2) {
this.gotoAndStop("punch");
}
}
}
}
on (keyPress "s") {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if (this._currentframe <= 2) {
this.gotoAndStop("slit");
}
}
}
}
on (keyPress "S") {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if (this._currentframe <= 2) {
this.gotoAndStop("slit");
}
}
}
}
onClipEvent (enterFrame) {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if (this._y > 430) {
this.gotoAndStop(1);
_x = defX;
_y = defY;
_root.def.play();
_root.blink.play();
}
if (Key.isDown(37) && (Key.isDown(39) && (Key.isDown(40) && (this._currentframe == 2)))) {
this.gotoAndStop(1);
}
}
}
}
on (keyPress "c") {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if ((yspeed == 0) && (_root.hud.cpt != 0)) {
_root.cp.play();
defX = _x;
defY = _y;
_root.hud.cpt--;
}
}
}
}
on (keyPress "d") {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if (this._currentframe <= 2) {
this.gotoAndStop("block");
}
}
}
}
on (keyPress "D") {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if (this._currentframe <= 2) {
this.gotoAndStop("block");
}
}
}
}
onClipEvent (keyUp) {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if (this._currentframe == 6) {
this.gotoAndStop(1);
}
}
}
}
onClipEvent (enterFrame) {
this.useHandCursor = false;
}
onClipEvent (keyUp) {
if (_root.pausea == 0) {
if (_root.blink._currentframe == 1) {
if (this._currentframe == 9) {
this.gotoAndStop(1);
}
}
}
}
onClipEvent (enterFrame) {
_root.money._x = _x;
}
onClipEvent (enterFrame) {
_root.timer._x = _x;
}
onClipEvent (enterFrame) {
_root.presse2._x = _x;
}
onClipEvent (enterFrame) {
_root.maze._x = _x;
}
onClipEvent (enterFrame) {
_root.moola._x = _x;
}
onClipEvent (enterFrame) {
_root.shopfor._x = _x;
}
onClipEvent (enterFrame) {
_root.gomenu._x = _x;
}
on (keyPress "p") {
_root.pauseaing.nextFrame();
}
on (keyPress "P") {
_root.pauseaing.nextFrame();
}
onClipEvent (enterFrame) {
_root.pauseaing._x = _x;
}
onClipEvent (enterFrame) {
_root.presse._x = _x;
}
on (keyPress "m") {
_root.gomenu.gotoAndStop(2);
}
on (keyPress "M") {
_root.gomenu.gotoAndStop(2);
}
onClipEvent (enterFrame) {
if (_root.win1 == 1) {
_root.lives.prevFrame();
_root.lives.prevFrame();
_root.lives.prevFrame();
_root.win1 = 0;
}
}
Instance of Symbol 1116 MovieClip in Frame 835
onClipEvent (enterFrame) {
this._x = _root.player._x;
}
Instance of Symbol 581 MovieClip "moola" in Frame 835
onClipEvent (enterFrame) {
_x = _root.player._x;
if (_root.blink._currentframe == 1) {
if (Key.isDown(37)) {
this._x = _x - 0;
} else if (Key.isDown(39)) {
this._x = _x + 0;
}
} else if (Key.isDown(37)) {
this._x = _x;
} else if (Key.isDown(39)) {
this._x = _x;
}
}
Instance of Symbol 590 MovieClip in Frame 835
onClipEvent (enterFrame) {
this._x = _root.player._x;
}
Instance of Symbol 588 MovieClip "flasha" in Frame 835
onClipEvent (enterFrame) {
_x = _root.player._x;
if (_root.blink._currentframe == 1) {
if (Key.isDown(37)) {
this._x = _x - 7;
} else if (Key.isDown(39)) {
this._x = _x + 7;
}
} else if (Key.isDown(37)) {
this._x = _x;
} else if (Key.isDown(39)) {
this._x = _x;
}
}
Instance of Symbol 590 MovieClip in Frame 835
onClipEvent (enterFrame) {
this._x = _root.player._x;
}
Instance of Symbol 614 MovieClip "gomenu" in Frame 835
onClipEvent (enterFrame) {
_x = _root.player._x;
if (_root.blink._currentframe == 1) {
if (Key.isDown(37)) {
this._x = _x - 0;
} else if (Key.isDown(39)) {
this._x = _x + 0;
}
} else if (Key.isDown(37)) {
this._x = _x;
} else if (Key.isDown(39)) {
this._x = _x;
}
}
Instance of Symbol 618 MovieClip "fadeout" in Frame 835
onClipEvent (enterFrame) {
this._x = _root.player._x;
}
Instance of Symbol 707 MovieClip "fadetolevel" in Frame 835
onClipEvent (enterFrame) {
this._x = _root.player._x;
}
Instance of Symbol 759 MovieClip "gameover" in Frame 835
onClipEvent (enterFrame) {
this._x = _root.player._x;
}
Frame 836
_root._x = 0;
stop();
Symbol 3 MovieClip Frame 1
stop();
Symbol 3 MovieClip Frame 2
stop();
Symbol 13 MovieClip Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 500;
if (PercentLoaded != 100) {
setProperty(bar, _yscale , PercentLoaded);
} else {
gotoAndPlay ("loaded");
}
Symbol 13 MovieClip Frame 2
_root.loade.gotoAndPlay(1);
Symbol 13 MovieClip Frame 3
_root.gotoAndStop(2);
Symbol 30 Button
on (release) {
getURL ("http://www.armorgames.com", "blank");
}
Symbol 35 MovieClip Frame 70
_root.loada = 0;
Symbol 35 MovieClip Frame 81
_root.play();
_root.play();
Symbol 47 MovieClip Frame 1
if (_root.loada == 1) {
_root.gotoAndPlay("loade");
trace("loaded");
}
Symbol 51 Button
on (release) {
_root.gotoAndPlay("endofintro");
}
Symbol 85 MovieClip Frame 1
stop();
Symbol 85 MovieClip Frame 2
stop();
Symbol 85 MovieClip Frame 3
stop();
Symbol 90 MovieClip Frame 1
stop();
Symbol 90 MovieClip Frame 72
gotoAndPlay (2);
Symbol 95 MovieClip Frame 1
_parent.gotoAndPlay(3);
Symbol 106 MovieClip Frame 15
stop();
_root.gotoAndStop("options");
Symbol 107 MovieClip Frame 1
stop();
Symbol 107 MovieClip Frame 2
stop();
Symbol 107 MovieClip Frame 3
stop();
Symbol 118 MovieClip Frame 15
stop();
_root.gotoAndPlay("credits");
Symbol 119 MovieClip Frame 1
stop();
Symbol 119 MovieClip Frame 2
stop();
Symbol 119 MovieClip Frame 3
stop();
Symbol 130 MovieClip Frame 15
stop();
_root.pauseaing2.nextFrame();
_root.maze.nextFrame();
Symbol 132 MovieClip Frame 1
stop();
Symbol 132 MovieClip Frame 2
stop();
Symbol 132 MovieClip Frame 15
getURL ("http://www.armorgames.com", "blank");
Symbol 136 MovieClip Frame 1
stop();
Symbol 136 MovieClip Frame 2
stop();
Symbol 136 MovieClip Frame 23
_root.gotoAndStop("start");
delete _root.menucoming;
Symbol 139 MovieClip Frame 1
stop();
Symbol 139 MovieClip Frame 2
stop();
Symbol 139 MovieClip Frame 3
stop();
Symbol 149 MovieClip Frame 15
stop();
if (_root.checkpoint == 0) {
eval (null)();
}
if (_root.checkpoint == 1) {
_root.cmon = 1;
_root.gotoAndStop(818);
}
if (_root.checkpoint == 2) {
_root.cmon = 1;
_root.gotoAndStop(822);
}
if (_root.checkpoint == 3) {
_root.cmon = 1;
_root.gotoAndStop(826);
}
if (_root.checkpoint == 4) {
_root.cmon = 1;
_root.gotoAndStop(830);
}
_root.pauseaing2.nextFrame();
_root.maze.nextFrame();
Symbol 150 MovieClip Frame 1
stop();
Symbol 150 MovieClip Frame 2
stop();
Symbol 150 MovieClip Frame 3
stop();
Instance of Symbol 107 MovieClip in Symbol 155 MovieClip Frame 1
on (release) {
if (this._currentframe == 1) {
gotoAndStop (2);
}
}
on (rollOver) {
this.chest2.play();
}
on (rollOut) {
this.chest2.gotoAndStop(1);
}
onClipEvent (enterFrame) {
if (this._currentframe == 3) {
this.useHandCursor = false;
}
}
Instance of Symbol 119 MovieClip in Symbol 155 MovieClip Frame 1
on (release) {
if (this._currentframe == 1) {
gotoAndStop (2);
}
}
on (rollOver) {
this.chest2.play();
}
on (rollOut) {
this.chest2.gotoAndStop(1);
}
onClipEvent (enterFrame) {
if (this._currentframe == 3) {
this.useHandCursor = false;
}
}
Instance of Symbol 132 MovieClip in Symbol 155 MovieClip Frame 1
on (release) {
if (this._currentframe == 1) {
gotoAndStop (2);
}
}
on (rollOver) {
this.chest2.play();
}
on (rollOut) {
this.chest2.gotoAndStop(1);
}
onClipEvent (enterFrame) {
if (this._currentframe == 3) {
this.useHandCursor = false;
}
}
Instance of Symbol 136 MovieClip in Symbol 155 MovieClip Frame 1
on (release) {
if (this._currentframe == 1) {
gotoAndStop (2);
}
}
on (rollOver) {
this.chest2.play();
}
on (rollOut) {
this.chest2.gotoAndStop(1);
}
onClipEvent (enterFrame) {
if (this._currentframe == 3) {
this.useHandCursor = false;
}
}
Instance of Symbol 139 MovieClip in Symbol 155 MovieClip Frame 1
on (release) {
if (this._currentframe == 1) {
gotoAndStop (2);
}
}
on (rollOver) {
this.chest2.play();
}
on (rollOut) {
this.chest2.gotoAndStop(1);
}
onClipEvent (enterFrame) {
if (this._currentframe == 3) {
this.useHandCursor = false;
}
}
Instance of Symbol 150 MovieClip in Symbol 155 MovieClip Frame 18
on (release) {
if (this._currentframe == 1) {
gotoAndStop (2);
}
}
on (rollOver) {
this.chest2.play();
}
on (rollOut) {
this.chest2.gotoAndStop(1);
}
onClipEvent (enterFrame) {
if (this._currentframe == 3) {
this.useHandCursor = false;
}
}
Symbol 155 MovieClip Frame 38
stop();
Symbol 166 Button
on (release) {
_root.menuthing.play();
}
Symbol 170 Button
on (release) {
_root.gotoAndStop("tut");
}
Symbol 174 MovieClip Frame 1
stop();
Symbol 174 MovieClip Frame 2
stopAllSounds();
Symbol 174 MovieClip Frame 25
_root.gotoAndStop("game1");
Symbol 174 MovieClip Frame 50
_root.gotoAndStop("tut");
Symbol 179 Button
on (release) {
_quality = "HIGH";
}
Symbol 181 Button
on (release) {
_quality = "MEDIUM";
}
Symbol 183 Button
on (release) {
_quality = "LOW";
}
Symbol 186 Button
on (release) {
_root.tv = 1;
}
Symbol 188 Button
on (release) {
_root.tv = 0;
}
Symbol 199 MovieClip Frame 15
stop();
_root.gotoAndStop(800);
Symbol 200 MovieClip Frame 1
stop();
Symbol 200 MovieClip Frame 2
stop();
Symbol 200 MovieClip Frame 3
stop();
stopAllSounds();
Symbol 222 Button
on (release) {
_root.gotoAndPlay("credits");
}
Symbol 224 Button
on (release) {
_root.gotoAndStop(800);
}
Symbol 225 MovieClip Frame 1
stop();
Symbol 225 MovieClip Frame 2
stop();
_root.thing.chest._x = _root.thing.chest._x - 1000;
Instance of Symbol 219 MovieClip "hola" in Symbol 226 MovieClip Frame 1
onClipEvent (enterFrame) {
this._y = this._y - 2;
}
Instance of Symbol 220 MovieClip in Symbol 226 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.thing.hola.end)) {
_root.thing.choose.gotoAndStop(2);
trace("asdm");
}
}
Instance of Symbol 200 MovieClip "chest" in Symbol 226 MovieClip Frame 1
on (release) {
if (this._currentframe == 1) {
gotoAndStop (2);
}
}
on (rollOver) {
this.chest2.play();
}
on (rollOut) {
this.chest2.gotoAndStop(1);
}
onClipEvent (enterFrame) {
if (this._currentframe == 3) {
this.useHandCursor = false;
}
}
Symbol 226 MovieClip Frame 295
gotoAndPlay (15);
Symbol 258 MovieClip Frame 5
stop();
Symbol 283 MovieClip Frame 17
stop();
Symbol 293 MovieClip Frame 15
stop();
_root.gotoAndStop(801);
Symbol 294 MovieClip Frame 1
stop();
Symbol 294 MovieClip Frame 2
stop();
Symbol 294 MovieClip Frame 3
stop();
Symbol 299 MovieClip Frame 90
_root.play();
stop();
Symbol 301 MovieClip Frame 1
stop();
Symbol 314 MovieClip Frame 1
stop();
Symbol 314 MovieClip Frame 2
stop();
_root.moola.money = _root.moola.money + 15;
Symbol 317 MovieClip Frame 1
stop();
Symbol 317 MovieClip Frame 2
_root.lives.prevFrame();
Symbol 318 MovieClip Frame 1
if (_root.pausea == 1) {
stop();
}
if (_root.pausea == 0) {
play();
}
Symbol 328 MovieClip Frame 1
stop();
if (_root.pausea == 0) {
this.play();
}
Symbol 336 MovieClip Frame 11
stop();
_root.mark3.play();
Symbol 338 MovieClip Frame 1
stop();
if (_root.tut == 1) {
gotoAndStop (3);
}
if (_root.tut == 0) {
stop();
}
Symbol 338 MovieClip Frame 2
stop();
Symbol 338 MovieClip Frame 3
stop();
if (_root.tut == 1) {
stop();
}
if (_root.tut == 0) {
gotoAndStop (1);
}
Symbol 345 MovieClip Frame 1
if (_root.pausea == 0) {
play();
}
Symbol 345 MovieClip Frame 9
stop();
Symbol 346 MovieClip Frame 1
stop();
Symbol 346 MovieClip Frame 2
stop();
Instance of Symbol 345 MovieClip in Symbol 346 MovieClip Frame 2
onClipEvent (enterFrame) {
if (this.hitTest(_root.darkknight1)) {
_root.darkknight1.gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
if (_root.weapon == 0) {
if (this.hitTest(_root.darkknight1) && (_root.darkknight1.die._currentframe >= 4)) {
_root.darkknight1.gotoAndStop(3);
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.ground.crate1)) {
_root.ground.crate1.gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
if (_root.weapon == 1) {
if (this.hitTest(_root.darkknight1) && (_root.darkknight1.die._currentframe >= 3)) {
_root.darkknight1.gotoAndStop(3);
}
}
}
onClipEvent (enterFrame) {
if (_root.weapon == 2) {
if (this.hitTest(_root.darkknight1) && (_root.darkknight1.die._currentframe >= 3)) {
_root.darkknight1.gotoAndStop(3);
}
}
}
onClipEvent (enterFrame) {
if (_root.weapon == 3) {
if (this.hitTest(_root.darkknight1) && (_root.darkknight1.die._currentframe >= 1)) {
_root.darkknight1.gotoAndStop(3);
}
}
}
Instance of Symbol 328 MovieClip "plat1" in Symbol 347 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.player._currentframe == 1)) {
_root.ground.plat1.play();
}
}
Instance of Symbol 328 MovieClip "plat1" in Symbol 347 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.player._currentframe == 1)) {
_root.ground.plat1.play();
}
}
Instance of Symbol 328 MovieClip "plat1" in Symbol 347 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.player._currentframe == 1)) {
_root.ground.plat1.play();
}
}
Symbol 348 MovieClip Frame 1
stop();
Symbol 348 MovieClip Frame 2
stop();
Symbol 348 MovieClip Frame 3
stop();
Symbol 350 MovieClip Frame 1
stop();
_root.player.defX = _root.player._x;
_root.player.defY = _root.player._y;
_root.player.speed = 7;
_root.player.h = _root.player._height / 2;
_root.player.w = _root.player._width / 3;
_root.player.grounded = false;
_root.player.yspeed = 0;
_root.player.grav = 1;
_root.player.jump = -30;
_root.player.cx = _root.player._x;
_root.player.cy = _root.player._y;
_root.player.falling = false;
Symbol 350 MovieClip Frame 2
_root.player._alpha = 0;
_root.player.gotoAndStop(1);
_root.player.yspeed = 0;
_root.lives.nextFrame();
Symbol 350 MovieClip Frame 6
_root.player._alpha = 100;
Symbol 350 MovieClip Frame 10
_root.player._alpha = 0;
Symbol 350 MovieClip Frame 14
_root.player._alpha = 100;
Symbol 350 MovieClip Frame 18
_root.player._alpha = 0;
Symbol 350 MovieClip Frame 21
_root.player._alpha = 100;
Symbol 350 MovieClip Frame 24
_root.player._alpha = 0;
Symbol 350 MovieClip Frame 27
_root.player._alpha = 100;
Symbol 350 MovieClip Frame 30
_root.player._alpha = 0;
Symbol 350 MovieClip Frame 32
_root.player._alpha = 100;
Symbol 350 MovieClip Frame 34
_root.player._alpha = 0;
Symbol 350 MovieClip Frame 36
_root.player._alpha = 100;
Symbol 350 MovieClip Frame 38
_root.player._alpha = 0;
Symbol 350 MovieClip Frame 39
_root.player._alpha = 100;
Symbol 350 MovieClip Frame 40
_root.player._alpha = 0;
Symbol 350 MovieClip Frame 41
_root.player._alpha = 100;
Symbol 350 MovieClip Frame 42
_root.player._alpha = 0;
Symbol 350 MovieClip Frame 43
_root.player._alpha = 100;
gotoAndStop (1);
Symbol 351 MovieClip Frame 1
stop();
_root.deff = 0;
Symbol 351 MovieClip Frame 2
_root.deff = 1;
Symbol 351 MovieClip Frame 3
gotoAndStop (1);
Symbol 351 MovieClip Frame 4
stop();
_root.deff = 2;
Symbol 352 MovieClip Frame 1
stop();
Symbol 359 MovieClip Frame 1
stop();
Symbol 359 MovieClip Frame 2
stop();
Symbol 362 MovieClip Frame 1
stop();
Symbol 362 MovieClip Frame 2
stop();
Symbol 362 MovieClip Frame 3
stop();
Symbol 362 MovieClip Frame 4
stop();
Symbol 362 MovieClip Frame 5
var i = 0;
while (i < 10) {
_root["troll" + i].gotoAndStop(3);
i++;
}
Symbol 367 MovieClip Frame 9
_parent.gotoAndStop(1);
Symbol 374 MovieClip Frame 1
_root.trollkill = 1;
Symbol 374 MovieClip Frame 9
_root.trollkill2 = 1;
Symbol 374 MovieClip Frame 11
stop();
_root.trollkill2 = 1;
Symbol 380 MovieClip Frame 1
if (_root.pausea == 0) {
play();
}
if (_root.pausea == 1) {
stop();
}
Instance of Symbol 382 MovieClip in Symbol 383 MovieClip Frame 12
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.player._currentframe <= 2)) {
_root.player.gotoAndStop("hit");
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.player._currentframe == 6)) {
_root.player.gotoAndStop("hitb");
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.player._currentframe == 5)) {
_root.player.gotoAndStop("hit");
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.player._currentframe == 4)) {
_root.player.gotoAndStop("hit");
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.player.hit._currentframe == 6)) {
_root.player.hit.gotoAndPlay(1);
}
}
onClipEvent (enterFrame) {
if ((_root.player._currentframe == 11) && (this.hitTest(_root.player))) {
_root.player.gotoAndStop(7);
_root.forpant._visible = true;
}
}
Symbol 384 MovieClip Frame 1
stop();
_root.trollis = 0;
Symbol 384 MovieClip Frame 2
stop();
die.nextFrame();
Symbol 384 MovieClip Frame 3
stop();
die = 1;
var i = 0;
while (i < 10) {
_root["troll" + i].die.gotoAndStop(1);
i++;
}
_root.trollkill2 = 1;
Symbol 384 MovieClip Frame 4
stop();
Symbol 384 MovieClip Frame 5
stop();
if (die == 1) {
this.gotoAndStop("dead");
}
Symbol 384 MovieClip Frame 6
if (_root.trollkill2 == 1) {
_root.moola.money = _root.moola.money + 13;
}
_root.trollkill2 = 0;
play();
var i = 0;
while (i < 10) {
_parent["troll" + i]._visible = false;
i++;
}
_root.trollis = 1;
Symbol 384 MovieClip Frame 9
stop();
_root.trollkill2 = 0;
_root.trollis = 1;
var i = 0;
while (i < 10) {
_root["troll" + i].removeMovieClip();
i++;
}
Symbol 396 MovieClip Frame 1
stop();
Symbol 396 MovieClip Frame 2
stop();
Symbol 396 MovieClip Frame 3
stop();
Symbol 396 MovieClip Frame 4
stop();
Symbol 396 MovieClip Frame 5
var i = 0;
while (i < 10) {
_root["demon" + i].gotoAndStop("die");
i++;
}
Instance of Symbol 382 MovieClip in Symbol 404 MovieClip Frame 8
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.player._currentframe <= 2)) {
_root.player.gotoAndStop("hit");
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.player._currentframe == 6)) {
_root.player.gotoAndStop("hitb");
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.player._currentframe == 5)) {
_root.player.gotoAndStop("hit");
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.player._currentframe == 4)) {
_root.player.gotoAndStop("hit");
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.player.hit._currentframe == 6)) {
_root.player.hit.gotoAndPlay(1);
}
}
onClipEvent (enterFrame) {
if ((_root.player._currentframe == 11) && (this.hitTest(_root.player))) {
_root.player.gotoAndStop(7);
_root.forpant._visible = true;
}
}
Symbol 410 MovieClip Frame 6
_parent.gotoAndStop(1);
Symbol 415 MovieClip Frame 5
_root.demonkill2 = 1;
Symbol 415 MovieClip Frame 9
stop();
Symbol 416 MovieClip Frame 1
stop();
Symbol 416 MovieClip Frame 2
stop();
if (die == 1) {
this.gotoAndStop("dead");
}
Symbol 416 MovieClip Frame 3
stop();
Symbol 416 MovieClip Frame 4
stop();
var i = 0;
while (i < 10) {
_root["demon" + i].diea.nextFrame();
i++;
}
Symbol 416 MovieClip Frame 5
stop();
var i = 0;
while (i < 10) {
_root["demon" + i].diea.gotoAndStop(1);
i++;
}
die = 1;
Symbol 416 MovieClip Frame 6
stop();
if (_root.demonkill2 == 1) {
_root.moola.money = _root.moola.money + 13;
}
_root.demonkill2 = 0;
Symbol 427 MovieClip Frame 1
stop();
Symbol 427 MovieClip Frame 2
stop();
Symbol 427 MovieClip Frame 3
stop();
Symbol 427 MovieClip Frame 4
stop();
Symbol 427 MovieClip Frame 5
stop();
Symbol 427 MovieClip Frame 6
var i = 0;
while (i < 10) {
_root["darkknight" + i].gotoAndStop(3);
i++;
}
Symbol 428 MovieClip Frame 7
_parent.gotoAndStop(1);
Symbol 434 MovieClip Frame 1
_root.dknight3 = 1;
Symbol 434 MovieClip Frame 8
_root.dknight3 = 1;
Symbol 434 MovieClip Frame 11
stop();
if (die == 1) {
_parent.gotoAndStop("dead");
}
Instance of Symbol 382 MovieClip in Symbol 437 MovieClip Frame 14
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.player._currentframe <= 2)) {
_root.player.gotoAndStop("hit");
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.player._currentframe == 6)) {
_root.player.gotoAndStop("hitb");
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.player._currentframe == 5)) {
_root.player.gotoAndStop("hit");
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.player._currentframe == 4)) {
_root.player.gotoAndStop("hit");
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.player.hit._currentframe == 6)) {
_root.player.hit.gotoAndPlay(1);
}
}
onClipEvent (enterFrame) {
if ((_root.player._currentframe == 11) && (this.hitTest(_root.player))) {
_root.player.gotoAndStop(7);
_root.forpant._visible = true;
}
}
Instance of Symbol 382 MovieClip in Symbol 437 MovieClip Frame 15
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.player._currentframe <= 2)) {
_root.player.gotoAndStop("hit");
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.player._currentframe == 6)) {
_root.player.gotoAndStop("hitb");
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.player._currentframe == 5)) {
_root.player.gotoAndStop("hit");
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.player._currentframe == 4)) {
_root.player.gotoAndStop("hit");
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.player._currentframe == 11)) {
_root.player.gotoAndStop("hit");
}
}
Symbol 438 MovieClip Frame 1
stop();
Instance of Symbol 427 MovieClip "die" in Symbol 438 MovieClip Frame 1
onClipEvent (enterFrame) {
this._visible = false;
}
Symbol 438 MovieClip Frame 2
stop();
var i = 0;
while (i < 10) {
_root["darkknight" + i].die.nextFrame();
i++;
}
Symbol 438 MovieClip Frame 3
stop();
die.gotoAndStop(1);
die = 1;
Symbol 438 MovieClip Frame 5
stop();
if (die == 1) {
this.gotoAndStop("dead");
}
Symbol 438 MovieClip Frame 6
stop();
if (_root.dknight3 == 1) {
_root.moola.money = _root.moola.money + 13;
}
dknight3 = 0;
Symbol 440 MovieClip Frame 1
stop();
Symbol 440 MovieClip Frame 2
stop();
Symbol 441 MovieClip Frame 1
stop();
Instance of Symbol 440 MovieClip in Symbol 441 MovieClip Frame 1
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
_alpha = 0;
if (this.hitTest(_root["troll" + i])) {
_root["troll" + i].blocking = 1;
}
i++;
}
var i = 0;
while (i < 10) {
if (this.hitTest(_root["demon" + i])) {
_root["demon" + i].blocking2 = 1;
}
i++;
}
var i = 0;
while (i < 10) {
if (this.hitTest(_root["darkknight" + i])) {
_root["darkknight" + i].blocking3 = 1;
}
i++;
}
var i = 0;
while (i < 10) {
if (this.hitTest(_root["death" + i])) {
_root["death" + i].blocking4 = 1;
}
i++;
}
}
Symbol 441 MovieClip Frame 2
stop();
Instance of Symbol 440 MovieClip in Symbol 441 MovieClip Frame 2
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
_alpha = 0;
if (this.hitTest(_root["troll" + i])) {
_root["troll" + i].blocking = 0;
}
i++;
}
var i = 0;
while (i < 10) {
if (this.hitTest(_root["demon" + i])) {
_root["demon" + i].blocking2 = 0;
}
i++;
}
var i = 0;
while (i < 10) {
if (this.hitTest(_root["darkknight" + i])) {
_root["darkknight" + i].blocking3 = 0;
}
i++;
}
var i = 0;
while (i < 10) {
if (this.hitTest(_root["death" + i])) {
_root["death" + i].blocking4 = 0;
}
i++;
}
}
Instance of Symbol 450 MovieClip "bara" in Symbol 460 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this._xscale <= 0) {
this._xscale = 100;
}
}
onClipEvent (enterFrame) {
if (this._xscale <= 190) {
this._xscale = this._xscale + 0.2;
}
}
Instance of Symbol 452 MovieClip in Symbol 460 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.bar.bara.bartip)) {
_root.player.gotoAndStop(1);
}
}
Instance of Symbol 453 MovieClip in Symbol 460 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.forpant._visible == false) {
if (this.hitTest(_root.bar.bara.bartip)) {
_root.player.gotoAndStop("pant");
}
}
}
onClipEvent (enterFrame) {
if (_root.forpant._visible == true) {
eval (null)();
}
}
onClipEvent (enterFrame) {
if (!this.hitTest(_root.bar.bara.bartip)) {
_root.forpant._visible == false;
}
}
Symbol 461 MovieClip Frame 1
if (_root.pausea == 1) {
stop();
}
if (_root.pausea == 0) {
play();
}
Symbol 479 MovieClip Frame 1
if (_root.pausea == 1) {
stop();
}
if (_root.pausea == 0) {
play();
}
Symbol 488 MovieClip Frame 1
stop();
Symbol 488 MovieClip Frame 2
stop();
Symbol 488 MovieClip Frame 3
stop();
Symbol 488 MovieClip Frame 4
stop();
Symbol 488 MovieClip Frame 5
stop();
Symbol 488 MovieClip Frame 6
stop();
Symbol 488 MovieClip Frame 7
stop();
Symbol 488 MovieClip Frame 8
stop();
Symbol 488 MovieClip Frame 9
stop();
Symbol 488 MovieClip Frame 10
stop();
Symbol 488 MovieClip Frame 11
_root.player.gotoAndStop("dead");
Symbol 488 MovieClip Frame 12
_root.player.gotoAndStop("dead");
Symbol 488 MovieClip Frame 13
_root.player.gotoAndStop("dead");
Symbol 488 MovieClip Frame 14
_root.player.gotoAndStop("dead");
Symbol 488 MovieClip Frame 15
_root.player.gotoAndStop("dead");
Symbol 488 MovieClip Frame 16
_root.player.gotoAndStop("dead");
Symbol 488 MovieClip Frame 17
_root.player.gotoAndStop("dead");
Symbol 495 MovieClip Frame 1
if ((_root.pausea = 1)) {
stop();
}
if ((_root.pausea = 0)) {
play();
}
Symbol 501 MovieClip Frame 1
if (_root.armor == 0) {
stop();
}
if (_root.armor == 1) {
gotoAndStop (2);
}
if (_root.armor == 2) {
gotoAndStop (3);
}
Symbol 501 MovieClip Frame 2
stop();
if (_root.armor == 1) {
stop();
}
Symbol 501 MovieClip Frame 3
stop();
if (_root.armor == 2) {
stop();
}
Symbol 506 MovieClip Frame 1
if (_root.armor == 0) {
stop();
}
if (_root.armor == 1) {
gotoAndStop (2);
}
if (_root.armor == 2) {
gotoAndStop (3);
}
Symbol 506 MovieClip Frame 2
stop();
if (_root.armor == 1) {
stop();
}
Symbol 506 MovieClip Frame 3
stop();
if (_root.armor == 2) {
stop();
}
Symbol 516 MovieClip Frame 1
if (_root.weapon == 0) {
stop();
}
if (_root.weapon == 1) {
gotoAndStop (2);
}
if (_root.weapon == 2) {
gotoAndStop (3);
}
if (_root.weapon == 3) {
gotoAndStop (4);
}
if (_root.weapon == 4) {
gotoAndStop (5);
}
Symbol 516 MovieClip Frame 2
if (_root.weapon == 1) {
stop();
}
Symbol 516 MovieClip Frame 3
stop();
if (_root.weapon == 2) {
stop();
}
Symbol 516 MovieClip Frame 4
stop();
if (_root.weapon == 3) {
stop();
}
Symbol 516 MovieClip Frame 5
stop();
if (_root.weapon == 4) {
stop();
}
Symbol 531 MovieClip Frame 1
if (_root.armor == 0) {
stop();
}
if (_root.armor == 1) {
gotoAndStop (2);
}
if (_root.armor == 2) {
gotoAndStop (3);
}
Symbol 531 MovieClip Frame 2
stop();
if (_root.armor == 1) {
stop();
}
Symbol 531 MovieClip Frame 3
stop();
if (_root.armor == 2) {
stop();
}
Symbol 542 MovieClip Frame 5
_parent.yspeed = _parent.jump;
_parent.jumping = true;
Symbol 542 MovieClip Frame 6
_parent.yspeed = _parent.yspeed / 2.1;
stop();
if (_parent.jumping == false) {
play();
}
stop();
Symbol 542 MovieClip Frame 12
_parent.gotoAndStop(1);
Instance of Symbol 382 MovieClip "gethit" in Symbol 544 MovieClip Frame 15
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if (this.hitTest(_root["troll" + i]) && (_root["troll" + i]._currentframe != 3)) {
_root["troll" + i].gotoAndStop(2);
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if (_root.weapon == 0) {
if (this.hitTest(_root["troll" + i]) && (_root["troll" + i].die._currentframe >= 2)) {
_root["troll" + i].gotoAndStop(3);
}
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if (_root.weapon == 1) {
if (this.hitTest(_root["troll" + i]) && (_root["troll" + i].die._currentframe >= 2)) {
_root["troll" + i].gotoAndStop(3);
}
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if (_root.weapon == 2) {
if (this.hitTest(_root["troll" + i]) && (_root["troll" + i].die._currentframe >= 1)) {
_root["troll" + i].gotoAndStop(3);
}
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if (this.hitTest(_root.ground["crate" + i])) {
_root.ground["crate" + i].gotoAndStop(2);
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if (this.hitTest(_root["demon" + i]) && (_root["demon" + i]._currentframe != 5)) {
_root["demon" + i].gotoAndStop("hit");
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if (_root.weapon == 0) {
if (this.hitTest(_root["demon" + i]) && (_root["demon" + i].diea._currentframe >= 2)) {
_root["demon" + i].gotoAndStop("die");
}
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if (_root.weapon == 1) {
if (this.hitTest(_root["demon" + i]) && (_root["demon" + i].diea._currentframe >= 2)) {
_root["demon" + i].gotoAndStop("die");
}
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if (_root.weapon == 2) {
if (this.hitTest(_root["demon" + i]) && (_root["demon" + i].diea._currentframe >= 1)) {
_root["demon" + i].gotoAndStop("die");
}
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if (_root.weapon == 2) {
if (this.hitTest(_root["troll" + i]) && (_root["troll" + i].die._currentframe >= 1)) {
_root["troll" + i].gotoAndStop(3);
}
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if (_root.weapon == 2) {
if (this.hitTest(_root["troll" + i]) && (_root["troll" + i].die._currentframe >= 1)) {
_root["troll" + i].gotoAndStop(3);
}
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if (_root.weapon == 3) {
if (this.hitTest(_root["demon" + i]) && (_root["demon" + i].diea._currentframe >= 1)) {
_root["demon" + i].gotoAndStop("die");
}
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if (_root.weapon == 4) {
if (this.hitTest(_root["demon" + i]) && (_root["demon" + i].diea._currentframe >= 1)) {
_root["demon" + i].gotoAndStop("die");
}
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if (_root.weapon == 4) {
if (this.hitTest(_root["troll" + i]) && (_root["troll" + i].die._currentframe >= 1)) {
_root["troll" + i].gotoAndStop(3);
}
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if (_root.weapon == 3) {
if (this.hitTest(_root["demon" + i]) && (_root["demon" + i].diea._currentframe >= 1)) {
_root["demon" + i].gotoAndStop("die");
}
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if (_root.weapon == 3) {
if (this.hitTest(_root["troll" + i]) && (_root["troll" + i].die._currentframe >= 1)) {
_root["troll" + i].gotoAndStop(3);
}
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if (this.hitTest(_root["darkknight" + i]) && (_root["darkknight" + i]._currentframe != 3)) {
_root["darkknight" + i].gotoAndStop(2);
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if (_root.weapon == 0) {
if (this.hitTest(_root["darkknight" + i]) && (_root["darkknight" + i].die._currentframe >= 4)) {
_root["darkknight" + i].gotoAndStop(3);
}
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if (_root.weapon == 1) {
if (this.hitTest(_root["darkknight" + i]) && (_root["darkknight" + i].die._currentframe >= 4)) {
_root["darkknight" + i].gotoAndStop(3);
}
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if (this.hitTest(_root.ground._root["crate" + i])) {
_root.ground._root["crate" + i].gotoAndStop(2);
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if (_root.weapon == 2) {
if (this.hitTest(_root["darkknight" + i]) && (_root["darkknight" + i].die._currentframe >= 3)) {
_root["darkknight" + i].gotoAndStop(3);
}
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if (_root.weapon == 3) {
if (this.hitTest(_root["darkknight" + i]) && (_root["darkknight" + i].die._currentframe >= 1)) {
_root["darkknight" + i].gotoAndStop(3);
}
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if (_root.weapon == 4) {
if (this.hitTest(_root["darkknight" + i]) && (_root["darkknight" + i].die._currentframe >= 1)) {
_root["darkknight" + i].gotoAndStop(3);
}
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if (this.hitTest(_root["death" + i]) && (_root["death" + i]._currentframe != 3)) {
_root["death" + i].gotoAndStop(2);
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if (_root.weapon == 0) {
if (this.hitTest(_root["death" + i]) && (_root["death" + i].die._currentframe >= 3)) {
_root["death" + i].gotoAndStop(3);
}
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if (_root.weapon == 1) {
if (this.hitTest(_root["death" + i]) && (_root["death" + i].die._currentframe >= 3)) {
_root["death" + i].gotoAndStop(3);
}
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if (_root.weapon == 2) {
if (this.hitTest(_root["death" + i]) && (_root["death" + i].die._currentframe >= 1)) {
_root["death" + i].gotoAndStop(3);
}
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if (_root.weapon == 3) {
if (this.hitTest(_root["death" + i]) && (_root["death" + i].die._currentframe >= 1)) {
_root["death" + i].gotoAndStop(3);
}
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if (_root.weapon == 4) {
if (this.hitTest(_root["death" + i]) && (_root["death" + i].die._currentframe >= 1)) {
_root["death" + i].gotoAndStop(3);
}
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if (this.hitTest(_root["cave" + i]) && (_root["cave" + i].die._currentframe >= 1)) {
_root["cave" + i].gotoAndStop(5);
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if (_root.weapon == 0) {
if (this.hitTest(_root["cave" + i]) && (_root["cave" + i].die._currentframe >= 1)) {
_root["cave" + i].gotoAndStop(5);
}
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if (_root.weapon == 1) {
if (this.hitTest(_root["cave" + i]) && (_root["cave" + i].die._currentframe >= 1)) {
_root["cave" + i].gotoAndStop(5);
}
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if (_root.weapon == 2) {
if (this.hitTest(_root["cave" + i]) && (_root["cave" + i].die._currentframe >= 1)) {
_root["cave" + i].gotoAndStop(5);
}
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if (_root.weapon == 3) {
if (this.hitTest(_root["cave" + i]) && (_root["cave" + i].die._currentframe >= 1)) {
_root["cave" + i].gotoAndStop(5);
}
}
i++;
}
}
Symbol 544 MovieClip Frame 17
_root.bar.bara._xscale = _root.bar.bara._xscale - 36;
Symbol 544 MovieClip Frame 21
_parent.gotoAndStop(1);
Instance of Symbol 547 MovieClip in Symbol 548 MovieClip Frame 8
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if (this.hitTest(_root["troll" + i]) && (_root["troll" + i]._currentframe != 3)) {
_root["troll" + i].gotoAndStop(2);
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if (_root.weapon == 0) {
if (this.hitTest(_root["troll" + i]) && (_root["troll" + i].die._currentframe >= 4)) {
_root["troll" + i].gotoAndStop(3);
}
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if (_root.weapon == 1) {
if (this.hitTest(_root["demon" + i]) && (_root["demon" + i].diea._currentframe >= 3)) {
_root["demon" + i].gotoAndStop("hit");
}
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if (this.hitTest(_root.ground.mc["crate" + i])) {
_root.ground.crate1.gotoAndStop(2);
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if (this.hitTest(_root["demon" + i]) && (_root["demon" + i]._currentframe != 5)) {
_root["demon" + i].gotoAndStop("hit");
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if (_root.weapon == 0) {
if (this.hitTest(_root["demon" + i]) && (_root["demon" + i].diea._currentframe >= 4)) {
_root["demon" + i].gotoAndStop("die");
}
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if (_root.weapon == 1) {
if (this.hitTest(_root["troll" + i]) && (_root["troll" + i].die._currentframe >= 3)) {
_root["troll" + i].gotoAndStop(3);
}
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if (_root.weapon == 2) {
if (this.hitTest(_root["demon" + i]) && (_root["demon" + i].diea._currentframe >= 2)) {
_root["demon" + i].gotoAndStop("die");
}
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if (_root.weapon == 2) {
if (this.hitTest(_root["troll" + i]) && (_root["troll" + i].die._currentframe >= 1)) {
_root["troll" + i].gotoAndStop(3);
}
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if (_root.weapon == 3) {
if (this.hitTest(_root["demon" + i]) && (_root["demon" + i].diea._currentframe >= 1)) {
_root["demon" + i].gotoAndStop("die");
}
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if (_root.weapon == 3) {
if (this.hitTest(_root["troll" + i]) && (_root["troll" + i].die._currentframe >= 1)) {
_root["troll" + i].gotoAndStop(3);
}
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if (this.hitTest(_root["darkknight" + i]) && (_root["darkknight" + i]._currentframe != 3)) {
_root.darkknight1.gotoAndStop(2);
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if (_root.weapon == 0) {
if (this.hitTest(_root["darkknight" + i]) && (_root.darkknight1.die._currentframe >= 5)) {
_root["darkknight" + i].gotoAndStop(3);
_root["darkknight" + i].die.gotoAndStop(1);
}
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if (this.hitTest(_root.ground["crate" + i])) {
_root.ground["crate" + i].gotoAndStop(2);
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if (_root.weapon == 1) {
if (this.hitTest(_root["darkknight" + i]) && (_root.darkknight1.die._currentframe >= 4)) {
_root["darkknight" + i].gotoAndStop(3);
_root["darkknight" + i].die.gotoAndStop(1);
}
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if (_root.weapon == 2) {
if (this.hitTest(_root["darkknight" + i]) && (_root.darkknight1.die._currentframe >= 3)) {
_root["darkknight" + i].gotoAndStop(3);
_root["darkknight" + i].die.gotoAndStop(1);
}
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if (_root.weapon == 3) {
if (this.hitTest(_root["darkknight" + i]) && (_root.darkknight1.die._currentframe >= 1)) {
_root["darkknight" + i].gotoAndStop(3);
_root["darkknight" + i].die.gotoAndStop(1);
}
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if (this.hitTest(_root["death" + i]) && (_root["death" + i]._currentframe != 3)) {
_root["death" + i].gotoAndStop(2);
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if (_root.weapon == 0) {
if (this.hitTest(_root["death" + i]) && (_root["death" + i].die._currentframe >= 4)) {
_root["death" + i].gotoAndStop(3);
}
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if (_root.weapon == 1) {
if ((this.hitTest(_root["death" + i]) && (_root["death" + i].die._currentframe >= 3)) && (_root["death" + i]._currentframe != 3)) {
_root["death" + i].gotoAndStop(3);
}
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if (_root.weapon == 2) {
if ((this.hitTest(_root["death" + i]) && (_root["death" + i].die._currentframe >= 3)) && (_root["death" + i]._currentframe != 3)) {
_root["death" + i].gotoAndStop(3);
}
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if (_root.weapon == 3) {
if ((this.hitTest(_root["death" + i]) && (_root["death" + i].die._currentframe >= 1)) && (_root["death" + i]._currentframe != 3)) {
_root["death" + i].gotoAndStop(3);
}
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if (this.hitTest(_root["cave" + i])) {
_root["cave" + i].gotoAndStop(5);
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if (_root.weapon == 0) {
if (this.hitTest(_root["cave" + i]) && (_root["cave" + i].diea._currentframe >= 1)) {
_root["cave" + i].gotoAndStop(5);
}
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if (_root.weapon == 1) {
if (this.hitTest(_root["cave" + i]) && (_root["cave" + i].die._currentframe >= 1)) {
_root["cave" + i].gotoAndStop(5);
}
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if (_root.weapon == 2) {
if (this.hitTest(_root["cave" + i]) && (_root["cave" + i].die._currentframe >= 1)) {
_root["cave" + i].gotoAndStop(5);
}
}
i++;
}
}
onClipEvent (enterFrame) {
var i = 0;
while (i < 10) {
if (_root.weapon == 3) {
if (this.hitTest(_root["cave" + i]) && (_root["cave" + i].die._currentframe >= 1)) {
_root["cave" + i].gotoAndStop(5);
}
}
i++;
}
}
Symbol 548 MovieClip Frame 11
_root.bar.bara._xscale = _root.bar.bara._xscale - 21.5;
Symbol 548 MovieClip Frame 15
_parent.gotoAndStop(1);
Symbol 549 MovieClip Frame 1
if ((block = 1)) {
this.gotoAndStop(7);
}
Symbol 549 MovieClip Frame 7
stop();
Symbol 550 MovieClip Frame 6
if (_root.forpant._visible == false) {
_parent.gotoAndStop(1);
}
if (_root.forpant._visible == true) {
_root.player.gotoAndStop("pant");
}
_root.gettinghit = 0;
Symbol 557 MovieClip Frame 8
_parent.gotoAndStop("block");
block = 1;
Symbol 566 MovieClip Frame 8
stop();
_root.player._visible = false;
_root.player._name = "blah";
_parent.gotoAndStop("deadd");
dead = 1;
Symbol 575 MovieClip Frame 1
_root.forpant._visible = false;
if (_root.forpant._visible == true) {
_root.player.gotoAndStop(7);
}
_root.gettinghit = 0;
Symbol 575 MovieClip Frame 2
_root.forpant._visible = false;
_root.gettinghit = 0;
Symbol 575 MovieClip Frame 3
_root.forpant._visible = false;
_root.gettinghit = 0;
Symbol 575 MovieClip Frame 4
_root.forpant._visible = false;
_root.gettinghit = 0;
Symbol 575 MovieClip Frame 5
_root.forpant._visible = false;
_root.gettinghit = 0;
Symbol 575 MovieClip Frame 6
_root.forpant._visible = false;
_root.gettinghit = 0;
Symbol 575 MovieClip Frame 7
_root.lives.nextFrame();
_root.flasha.play();
_root.gettinghit = 1;
if (_root.gettinghit == 1) {
stop();
}
Symbol 575 MovieClip Frame 8
_root.forpant._visible = false;
_root.gettinghit = 0;
Symbol 575 MovieClip Frame 9
_root.forpant._visible = false;
_root.gettinghit = 0;
Symbol 575 MovieClip Frame 10
_root.forpant._visible = false;
if (_root.gameover._currentframe == 1) {
_root.gameover.play();
}
if ((dead = 1)) {
gotoAndStop ("deadd");
}
_root.gettinghit = 0;
Symbol 575 MovieClip Frame 11
_root.forpant._visible = false;
_root.gettinghit = 0;
if (_root.gettinghit == 1) {
_root.player.gotoAndStop(7);
}
_root.panting = 1;
Symbol 575 MovieClip Frame 12
_root.forpant._visible = false;
Symbol 579 MovieClip Frame 1
stop();
Instance of Symbol 577 MovieClip in Symbol 579 MovieClip Frame 1
on (keyPress "l") {
if (_root.cheat != 1) {
_root.cheat.nextFrame();
}
}
Instance of Symbol 577 MovieClip in Symbol 579 MovieClip Frame 2
on (keyPress "i") {
if (_root.cheat != 1) {
_root.cheat.nextFrame();
}
}
Instance of Symbol 577 MovieClip in Symbol 579 MovieClip Frame 3
on (keyPress "g") {
if (_root.cheat != 1) {
_root.cheat.nextFrame();
}
}
Instance of Symbol 577 MovieClip in Symbol 579 MovieClip Frame 4
on (keyPress "h") {
if (_root.cheat != 1) {
_root.cheat.nextFrame();
}
}
Instance of Symbol 577 MovieClip in Symbol 579 MovieClip Frame 5
on (keyPress "t") {
if (_root.cheat != 1) {
_root.cheat.nextFrame();
}
}
Symbol 579 MovieClip Frame 6
stop();
_root.weapon = 4;
_root.cheat = 1;
Symbol 584 MovieClip Frame 1
stop();
_root.pausea = 0;
Symbol 584 MovieClip Frame 2
stop();
_root.pausea = 1;
_root.stopall(_root);
_root.all.setVolume((_x + 100) / 2);
Symbol 584 MovieClip Frame 3
_root.pausea = 0;
var i = 0;
while (i < 10) {
_root["troll" + i].gotoAndStop(1);
i++;
}
var i = 0;
while (i < 10) {
if (_root.trollkill2 == 1) {
_root["troll" + i].gotoAndStop("dead");
}
i++;
}
var i = 0;
while (i < 10) {
if (((_root.trollkill == 1) && (_root.trollkill2 == 0)) && (_root["troll" + i]._currentframe == 3)) {
_root["troll" + i].gotoAndStop(3);
}
i++;
}
var i = 0;
while (i < 10) {
if (_root["troll" + i]._currentframe >= 6) {
_root["troll" + i].removeMovieClip(_root["troll" + i]);
}
i++;
}
_root.pausea = 0;
var i = 0;
while (i < 10) {
_root["demon" + i].gotoAndStop(1);
i++;
}
var i = 0;
while (i < 10) {
if (_root.demonkill2 == 1) {
_root["demon" + i].gotoAndStop("dead");
}
i++;
}
var i = 0;
while (i < 10) {
if (_root["demon" + i]._currentframe >= 6) {
_root["demon" + i].removeMovieClip(_root["demon" + i]);
}
i++;
}
if (_root.gettinghit == 1) {
_root.player.gotoAndStop(1);
}
_root.flasha.gotoAndStop(1);
gotoAndStop (1);
Symbol 585 MovieClip Frame 1
stop();
_root.pausea = 0;
Symbol 585 MovieClip Frame 2
stop();
_root.pausea = 1;
_root.stopall(_root);
_root.all.setVolume((_x + 100) / 2);
_root.shopfor.play();
if (_root.pausea == 0) {
_root.pauseaing2.gotoAndPlay(3);
}
Symbol 585 MovieClip Frame 3
_root.pausea = 0;
var i = 0;
while (i < 10) {
_root["troll" + i].gotoAndStop(1);
i++;
}
var i = 0;
while (i < 10) {
if (_root.trollkill2 == 1) {
_root["troll" + i].gotoAndStop("dead");
}
i++;
}
var i = 0;
while (i < 10) {
if (((_root.trollkill == 1) && (_root.trollkill2 == 0)) && (_root["troll" + i]._currentframe == 3)) {
_root["troll" + i].gotoAndStop(3);
}
i++;
}
var i = 0;
while (i < 10) {
if (_root["troll" + i]._currentframe >= 6) {
_root["troll" + i].removeMovieClip(_root["troll" + i]);
}
i++;
}
_root.pausea = 0;
var i = 0;
while (i < 10) {
_root["demon" + i].gotoAndStop(1);
i++;
}
var i = 0;
while (i < 10) {
if (_root.demonkill2 == 1) {
_root["demon" + i].gotoAndStop("dead");
}
i++;
}
var i = 0;
while (i < 10) {
if (_root["demon" + i]._currentframe >= 6) {
_root["demon" + i].removeMovieClip(_root["demon" + i]);
}
i++;
}
if (_root.gettinghit == 1) {
_root.player.gotoAndStop(1);
}
_root.flasha.gotoAndStop(1);
gotoAndStop (1);
Symbol 588 MovieClip Frame 1
stop();
Instance of Symbol 600 MovieClip in Symbol 603 MovieClip Frame 1
on (release) {
_root.fadeout.play();
}
Instance of Symbol 602 MovieClip in Symbol 603 MovieClip Frame 1
on (release) {
_root.gomenu.gotoAndStop(1);
_root.pauseaing2.gotoAndPlay(3);
}
Symbol 614 MovieClip Frame 1
stop();
_root.pauseaing2.gotoAndStop(1);
Symbol 614 MovieClip Frame 2
stop();
_root.pauseaing2.gotoAndStop(2);
Symbol 614 MovieClip Frame 6
_root.fadeout.play();
Symbol 614 MovieClip Frame 25
stop();
Symbol 618 MovieClip Frame 1
stop();
Symbol 618 MovieClip Frame 31
stopAllSounds();
_root.fix = 1;
_root.player.newName = "pizzapie";
_root.pauseaing.gotoAndStop(1);
_root.gotoAndPlay("endofintro");
Symbol 639 Button
on (press) {
_root.shop = 1;
_root.armora = 1;
}
Symbol 640 Button
on (press) {
_root.shop = 2;
_root.armora = 2;
}
Symbol 641 Button
on (press) {
_root.shop = 3;
_root.armora = 3;
}
Symbol 642 MovieClip Frame 1
_root.gettinghit = 0;
Instance of Symbol 516 MovieClip in Symbol 642 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.armora == 0) {
stop();
}
if (_root.armora == 1) {
gotoAndStop (2);
}
if (_root.armora == 2) {
gotoAndStop (3);
}
if (_root.armora == 3) {
gotoAndStop (4);
}
}
Symbol 649 Button
on (press) {
_root.shop = 1;
_root.armora = 1;
cost = "Cost: 65";
}
Symbol 650 Button
on (press) {
_root.shop = 2;
_root.armora = 2;
cost = "Cost: 110";
}
Symbol 651 Button
on (press) {
_root.shop = 3;
_root.armora = 3;
cost = "Cost: 250";
}
Symbol 652 Button
on (release) {
if ((_root.shopfor.white.money >= 65) && (_root.armora == 1)) {
_root.shopfor.buy.gotoAndStop(2);
}
}
on (release) {
if ((_root.shopfor.white.money < 65) && (_root.armora == 1)) {
_root.shopfor.cantbuy.gotoAndStop(2);
}
}
on (release) {
if ((_root.shopfor.white.money >= 110) && (_root.armora == 2)) {
_root.shopfor.buy.gotoAndStop(2);
}
}
on (release) {
if ((_root.shopfor.white.money < 110) && (_root.armora == 2)) {
_root.shopfor.cantbuy.gotoAndStop(2);
}
}
on (release) {
if ((_root.shopfor.white.money >= 250) && (_root.armora == 3)) {
_root.shopfor.buy.gotoAndStop(2);
}
}
on (release) {
if ((_root.shopfor.white.money < 250) && (_root.armora == 3)) {
_root.shopfor.cantbuy.gotoAndStop(2);
}
}
on (release) {
if ((_root.armora == 1) && (_root.weapon == 1)) {
_root.shopfor.bought.gotoAndStop(2);
}
}
on (release) {
if ((_root.armora == 2) && (_root.weapon == 2)) {
_root.shopfor.bought.gotoAndStop(2);
}
}
on (release) {
if ((_root.armora == 3) && (_root.weapon == 3)) {
_root.shopfor.bought.gotoAndStop(2);
}
}
Symbol 653 Button
on (release) {
_root.shopfor.gotoAndStop(1);
_root.shopfor._visible = false;
_root.shopfor.buy.gotoAndStop(1);
_root.pauseaing2.gotoAndPlay(3);
_root.player.gotoAndPlay("blinko");
}
Instance of Symbol 600 MovieClip in Symbol 658 MovieClip Frame 1
on (release) {
if (_root.armora == 1) {
_parent.white.money = _parent.white.money - 65;
_root.moola.money = _root.moola.money - 65;
_root.weapon = 1;
_root.shopfor.buy.gotoAndPlay("quit");
_root.player.gotoAndPlay("blinko");
_root.s1 = 1;
}
}
on (release) {
if (_root.armora == 2) {
_parent.white.money = _parent.white.money - 110;
_root.moola.money = _root.moola.money - 110;
_root.weapon = 2;
_root.shopfor.buy.gotoAndPlay("quit");
_root.player.gotoAndPlay("blinko");
}
}
on (release) {
if (_root.armora == 3) {
_parent.white.money = _parent.white.money - 250;
_root.moola.money = _root.moola.money - 250;
_root.weapon = 3;
_root.shopfor.buy.gotoAndPlay("quit");
_root.player.gotoAndPlay("blinko");
}
}
Instance of Symbol 602 MovieClip in Symbol 658 MovieClip Frame 1
on (release) {
_root.shopfor.buy.gotoAndPlay("quit");
}
Instance of Symbol 600 MovieClip in Symbol 659 MovieClip Frame 1
on (release) {
_root.fadeout.play();
}
Instance of Symbol 602 MovieClip in Symbol 659 MovieClip Frame 1
on (release) {
_root.gomenu.gotoAndStop(1);
_root.pauseaing2.gotoAndPlay(3);
}
Symbol 660 MovieClip Frame 1
stop();
Symbol 660 MovieClip Frame 2
stop();
Symbol 660 MovieClip Frame 4
stop();
Instance of Symbol 666 MovieClip in Symbol 667 MovieClip Frame 1
on (release) {
_root.shopfor.cantbuy.gotoAndPlay("quit");
}
Symbol 668 MovieClip Frame 1
stop();
Symbol 668 MovieClip Frame 2
stop();
Symbol 668 MovieClip Frame 4
stop();
Instance of Symbol 666 MovieClip in Symbol 672 MovieClip Frame 1
on (release) {
_root.shopfor.bought.gotoAndPlay("quit");
}
Symbol 673 MovieClip Frame 1
stop();
Symbol 673 MovieClip Frame 2
stop();
Symbol 673 MovieClip Frame 4
stop();
Symbol 674 MovieClip Frame 1
stop();
Symbol 674 MovieClip Frame 2
play();
Instance of Symbol 632 MovieClip "white" in Symbol 674 MovieClip Frame 16
onClipEvent (enterFrame) {
this.money = _root.moola.money;
}
Symbol 674 MovieClip Frame 56
_root.pausea = 1;
Symbol 674 MovieClip Frame 57
stop();
armora = 0;
_root.pausea = 1;
if (_root.s1 == 1) {
button1.removeMovieClip();
}
Symbol 682 Button
on (rollOver) {
_root.goo = 1;
_root.maze.nextFrame();
}
Symbol 684 Button
on (rollOver) {
if (_root.goo == 1) {
gotoAndPlay ("lose");
}
}
Symbol 687 Button
on (rollOver) {
_root.maze.gotoAndPlay("win");
}
Symbol 695 MovieClip Frame 1
stop();
Symbol 695 MovieClip Frame 5
_root.maze.gotoAndStop(2);
Symbol 696 MovieClip Frame 8
stop();
_root.maze.play();
Symbol 700 MovieClip Frame 1
stop();
Symbol 700 MovieClip Frame 2
goo = 0;
stop();
Symbol 700 MovieClip Frame 3
stop();
_root.onMouseDown = function () {
_root.maze.blackfade.play();
};
Instance of Symbol 689 MovieClip in Symbol 700 MovieClip Frame 3
on (rollOver) {
_root.maze.blackfade.play();
}
Instance of Symbol 691 MovieClip in Symbol 700 MovieClip Frame 3
on (rollOver) {
_root.maze.blackfade.play();
}
Instance of Symbol 689 MovieClip in Symbol 700 MovieClip Frame 3
on (rollOver) {
_root.maze.blackfade.play();
}
Instance of Symbol 689 MovieClip in Symbol 700 MovieClip Frame 3
on (rollOver) {
_root.maze.blackfade.play();
}
Symbol 700 MovieClip Frame 4
stop();
Symbol 700 MovieClip Frame 27
_root.pauseaing2.gotoAndPlay(3);
_root.presse._visible = false;
_root.maze.gotoAndStop(1);
Symbol 700 MovieClip Frame 29
stop();
_root.win1 = 1;
Symbol 700 MovieClip Frame 53
_root.pauseaing2.gotoAndPlay(3);
_root.presse._visible = false;
_root.maze.gotoAndStop(1);
Symbol 707 MovieClip Frame 1
stop();
Symbol 707 MovieClip Frame 51
_root.nextFrame();
Symbol 739 Button
on (release) {
getURL ("http://www.armorgames.com", "_blank");
}
Symbol 740 Button
on (release) {
play();
}
Symbol 759 MovieClip Frame 1
stop();
Symbol 759 MovieClip Frame 2
stopAllSounds();
Symbol 759 MovieClip Frame 50
stopAllSounds();
_root.gameover._visible = true;
Symbol 759 MovieClip Frame 91
stop();
Symbol 759 MovieClip Frame 122
_root.gotoAndStop(800);
Symbol 765 MovieClip Frame 90
_root.play();
stop();
Instance of Symbol 328 MovieClip "plat1" in Symbol 769 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.player._currentframe == 1)) {
_root.ground.plat1.play();
}
}
Instance of Symbol 328 MovieClip "plat1" in Symbol 769 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.player._currentframe == 1)) {
_root.ground.plat1.play();
}
}
Symbol 774 MovieClip Frame 90
_root.play();
stop();
Symbol 777 MovieClip Frame 1
stop();
Symbol 789 MovieClip Frame 1
stop();
Symbol 789 MovieClip Frame 2
stop();
Symbol 789 MovieClip Frame 3
stop();
Symbol 789 MovieClip Frame 4
stop();
Symbol 789 MovieClip Frame 5
i = 0;
while (i < 10) {
_root["death" + i].gotoAndStop(3);
i++;
}
Symbol 800 MovieClip Frame 11
_parent.gotoAndStop(1);
Symbol 823 MovieClip Frame 24
_root.moola.money = _root.moola.money + 14;
Symbol 823 MovieClip Frame 35
stop();
die = 1;
Instance of Symbol 382 MovieClip in Symbol 848 MovieClip Frame 6
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.player._currentframe <= 2)) {
_root.player.gotoAndStop("hit");
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.player._currentframe == 6)) {
_root.player.gotoAndStop("hitb");
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.player._currentframe == 5)) {
_root.player.gotoAndStop("hit");
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.player._currentframe == 4)) {
_root.player.gotoAndStop("hit");
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.player.hit._currentframe == 6)) {
_root.player.hit.gotoAndPlay(1);
}
}
onClipEvent (enterFrame) {
if ((_root.player._currentframe == 11) && (this.hitTest(_root.player))) {
_root.player.gotoAndStop(7);
_root.forpant._visible = true;
}
}
Symbol 848 MovieClip Frame 33
_parent.gotoAndStop(1);
Symbol 849 MovieClip Frame 1
stop();
Symbol 849 MovieClip Frame 2
stop();
die.nextFrame();
Symbol 849 MovieClip Frame 3
stop();
var i = 0;
while (i < 10) {
_root["death" + i].die.gotoAndStop(1);
i++;
}
Symbol 849 MovieClip Frame 4
stop();
if (die == 1) {
this.gotoAndStop("dead");
}
Symbol 849 MovieClip Frame 5
stop();
Symbol 849 MovieClip Frame 6
if (_root.deathkill2 == 1) {
_root.moola.money = _root.moola.money + 13;
}
_root.deathkill2 = 0;
play();
var i = 0;
while (i < 10) {
_parent["death" + i]._visible = false;
i++;
}
_root.deathis = 1;
Symbol 849 MovieClip Frame 9
stop();
_root.deathkill2 = 0;
_root.trollis = 1;
var i = 0;
while (i < 10) {
_root["death" + i].removeMovieClip();
i++;
}
Symbol 855 MovieClip Frame 90
_root.play();
stop();
Symbol 860 Button
on (rollOver) {
if (_root.goo == 1) {
gotoAndPlay ("lose");
}
}
Symbol 861 MovieClip Frame 1
stop();
Symbol 861 MovieClip Frame 2
goo = 0;
stop();
Symbol 861 MovieClip Frame 3
stop();
_root.onMouseDown = function () {
_root.maze.blackfade.play();
};
Instance of Symbol 689 MovieClip in Symbol 861 MovieClip Frame 3
on (rollOver) {
_root.maze.blackfade.play();
}
Instance of Symbol 691 MovieClip in Symbol 861 MovieClip Frame 3
on (rollOver) {
_root.maze.blackfade.play();
}
Instance of Symbol 689 MovieClip in Symbol 861 MovieClip Frame 3
on (rollOver) {
_root.maze.blackfade.play();
}
Instance of Symbol 689 MovieClip in Symbol 861 MovieClip Frame 3
on (rollOver) {
_root.maze.blackfade.play();
}
Symbol 861 MovieClip Frame 4
stop();
Symbol 861 MovieClip Frame 27
_root.pauseaing2.gotoAndPlay(3);
_root.presse._visible = false;
_root.maze.gotoAndStop(1);
Symbol 861 MovieClip Frame 29
stop();
_root.win1 = 1;
Symbol 861 MovieClip Frame 53
_root.pauseaing2.gotoAndPlay(3);
_root.presse._visible = false;
_root.maze.gotoAndStop(1);
Symbol 866 MovieClip Frame 90
_root.play();
stop();
Symbol 869 MovieClip Frame 1
stop();
Instance of Symbol 880 MovieClip in Symbol 881 MovieClip Frame 1
onClipEvent (enterFrame) {
if (((this.hitTest(_root.player) && (_root.player._currentframe <= 2)) && (_parent._parent._currentframe >= 5)) && (_parent._parent._currentframe <= 20)) {
_root.player.gotoAndStop("hit");
}
}
onClipEvent (enterFrame) {
if (((this.hitTest(_root.player) && (_root.player._currentframe == 6)) && (_parent._parent._currentframe >= 5)) && (_parent._parent._currentframe <= 20)) {
_root.player.gotoAndStop("hitb");
}
}
onClipEvent (enterFrame) {
if (((this.hitTest(_root.player) && (_root.player._currentframe == 5)) && (_parent._parent._currentframe >= 5)) && (_parent._parent._currentframe <= 20)) {
_root.player.gotoAndStop("hit");
}
}
onClipEvent (enterFrame) {
if (((this.hitTest(_root.player) && (_root.player._currentframe == 4)) && (_parent._parent._currentframe >= 5)) && (_parent._parent._currentframe <= 20)) {
_root.player.gotoAndStop("hit");
}
}
onClipEvent (enterFrame) {
if (((this.hitTest(_root.player) && (_root.player.hit._currentframe == 6)) && (_parent._parent._currentframe >= 5)) && (_parent._parent._currentframe <= 20)) {
_root.player.hit.gotoAndPlay(1);
}
}
onClipEvent (enterFrame) {
if ((((_root.player._currentframe == 11) && (this.hitTest(_root.player))) && (_parent._parent._currentframe >= 5)) && (_parent._parent._currentframe <= 20)) {
_root.player.gotoAndStop(7);
_root.forpant._visible = true;
}
}
Symbol 883 MovieClip Frame 1
stop();
Symbol 883 MovieClip Frame 2
stop();
Symbol 883 MovieClip Frame 3
var i = 0;
while (i < 10) {
_root["cave" + i].gotoAndStop("die");
i++;
}
Symbol 908 MovieClip Frame 47
stop();
_parent.gotoAndStop(1);
Symbol 911 MovieClip Frame 10
_parent.gotoAndStop(1);
Symbol 926 MovieClip Frame 13
_root.cavekill2 = 1;
Symbol 926 MovieClip Frame 18
_root.moola.money = _root.moola.money + 14;
Symbol 926 MovieClip Frame 24
stop();
Symbol 928 MovieClip Frame 1
stop();
Symbol 928 MovieClip Frame 2
stop();
if (die == 1) {
this.gotoAndStop("dead");
}
Symbol 928 MovieClip Frame 3
stop();
Symbol 928 MovieClip Frame 4
stop();
var i = 0;
while (i < 10) {
_root["cave" + i].diea.nextFrame();
i++;
}
Symbol 928 MovieClip Frame 5
stop();
die = 1;
Symbol 928 MovieClip Frame 6
stop();
if (_root.cavekill2 == 1) {
_root.moola.money = _root.moola.money + 13;
}
_root.cavekill2 = 0;
Symbol 929 Button
on (rollOver) {
gotoAndPlay ("lose");
}
Symbol 930 MovieClip Frame 1
stop();
Symbol 930 MovieClip Frame 2
goo = 0;
stop();
Symbol 930 MovieClip Frame 3
stop();
_root.onMouseDown = function () {
_root.maze.blackfade.play();
};
Instance of Symbol 689 MovieClip in Symbol 930 MovieClip Frame 3
on (rollOver) {
_root.maze.blackfade.play();
}
Instance of Symbol 691 MovieClip in Symbol 930 MovieClip Frame 3
on (rollOver) {
_root.maze.blackfade.play();
}
Instance of Symbol 689 MovieClip in Symbol 930 MovieClip Frame 3
on (rollOver) {
_root.maze.blackfade.play();
}
Instance of Symbol 689 MovieClip in Symbol 930 MovieClip Frame 3
on (rollOver) {
_root.maze.blackfade.play();
}
Symbol 930 MovieClip Frame 4
stop();
Symbol 930 MovieClip Frame 27
_root.pauseaing2.gotoAndPlay(3);
_root.presse._visible = false;
_root.maze.gotoAndStop(1);
Symbol 930 MovieClip Frame 29
stop();
_root.win1 = 1;
Symbol 930 MovieClip Frame 53
_root.pauseaing2.gotoAndPlay(3);
_root.presse._visible = false;
_root.maze.gotoAndStop(1);
Symbol 936 MovieClip Frame 90
_root.play();
stop();
Symbol 943 MovieClip Frame 90
_root.play();
stop();
Symbol 946 MovieClip Frame 1
stop();
Symbol 957 MovieClip Frame 90
_root.play();
stop();
Symbol 968 MovieClip Frame 90
_root.play();
stop();
Symbol 983 MovieClip Frame 1
stop();
Instance of Symbol 328 MovieClip "plat1" in Symbol 986 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.player._currentframe == 1)) {
_root.ground.plat1.play();
}
}
Instance of Symbol 985 MovieClip "plat1" in Symbol 986 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.player._currentframe == 1)) {
_root.ground.plat1.play();
}
}
Symbol 989 MovieClip Frame 1
stop();
Symbol 989 MovieClip Frame 2
goo = 0;
stop();
Symbol 989 MovieClip Frame 3
stop();
_root.onMouseDown = function () {
_root.maze.blackfade.play();
};
Instance of Symbol 689 MovieClip in Symbol 989 MovieClip Frame 3
on (rollOver) {
_root.maze.blackfade.play();
}
Instance of Symbol 691 MovieClip in Symbol 989 MovieClip Frame 3
on (rollOver) {
_root.maze.blackfade.play();
}
Instance of Symbol 689 MovieClip in Symbol 989 MovieClip Frame 3
on (rollOver) {
_root.maze.blackfade.play();
}
Instance of Symbol 689 MovieClip in Symbol 989 MovieClip Frame 3
on (rollOver) {
_root.maze.blackfade.play();
}
Symbol 989 MovieClip Frame 4
stop();
Symbol 989 MovieClip Frame 27
_root.pauseaing2.gotoAndPlay(3);
_root.presse._visible = false;
_root.maze.gotoAndStop(1);
Symbol 989 MovieClip Frame 29
stop();
_root.win1 = 1;
Symbol 989 MovieClip Frame 53
_root.pauseaing2.gotoAndPlay(3);
_root.presse._visible = false;
_root.maze.gotoAndStop(1);
Symbol 995 MovieClip Frame 90
_root.play();
stop();
Symbol 1059 MovieClip Frame 1
stopAllSounds();
Symbol 1059 MovieClip Frame 234
_root.play();
Instance of Symbol 985 MovieClip "plat1" in Symbol 1068 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.player._currentframe == 1)) {
_root.ground.plat1.play();
}
}
Instance of Symbol 985 MovieClip "plat1" in Symbol 1068 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.player._currentframe == 1)) {
_root.ground.plat1.play();
}
}
Instance of Symbol 985 MovieClip "plat1" in Symbol 1068 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.player._currentframe == 1)) {
_root.ground.plat1.play();
}
}
Instance of Symbol 985 MovieClip "plat1" in Symbol 1068 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.player._currentframe == 1)) {
_root.ground.plat1.play();
}
}
Instance of Symbol 1067 MovieClip "plat1" in Symbol 1068 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.player._currentframe == 1)) {
_root.ground.plat1.play();
}
}
Instance of Symbol 1067 MovieClip "plat1" in Symbol 1068 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.player._currentframe == 1)) {
_root.ground.plat1.play();
}
}
Symbol 1101 MovieClip Frame 2
_parent.yspeed = _parent.jump;
_parent.jumping = true;
Symbol 1101 MovieClip Frame 3
_parent.yspeed = _parent.yspeed / 2.1;
stop();
if (_parent.jumping == false) {
play();
}
Symbol 1101 MovieClip Frame 6
_parent.gotoAndStop(1);
Symbol 1123 MovieClip Frame 90
_root.timer.timea--;
gotoAndPlay ("yayy");
Symbol 1193 MovieClip Frame 1
stopAllSounds();
Symbol 1193 MovieClip Frame 937
stopAllSounds();
Symbol 1193 MovieClip Frame 938
_root.gotoAndStop(800);