Frame 1
stop();
fscommand ("allowscale", "false");
_root.speed = 5;
_root.armor = 5;
Instance of Symbol 21 MovieClip "x" in Frame 1
onClipEvent (load) {
_xscale = 0;
gesamt = _root.getBytesTotal();
}
onClipEvent (enterFrame) {
x = _xscale;
geladen = _root.getBytesLoaded();
pgeladen = int((geladen / gesamt) * 10) * 10;
ptext = int((geladen / gesamt) * 100) + "%";
x_fin = pgeladen;
dx = (dx + ((x_fin - x) / 2)) / 1.5;
x = x + dx;
_xscale = x;
_yscale = x;
if (pgeladen == 100) {
i++;
if (i >= 30) {
myThreat = new Sound();
myThreat.attachSound("threat");
myThreat.start();
_parent.gotoAndPlay(_parent._currentframe + 1);
}
}
}
Frame 5
stop();
Frame 6
stop();
Instance of Symbol 59 MovieClip in Frame 6
onClipEvent (enterFrame) {
stop();
}
Frame 7
function checkMove() {
if (moveit == 1) {
gotoAndStop (8);
}
if (moveit == 2) {
gotoAndStop (9);
}
}
stop();
Instance of Symbol 98 MovieClip in Frame 7
onClipEvent (load) {
_root.spiritham = 1;
_root.protect = 1;
_root.healall = 1;
_root.impact = 0;
_root.fiends = 0;
_root.stopswing = 0;
final = 0;
holynum = 0;
arrive = 0;
fall = 10;
fall2 = 10;
fall3 = 10;
popup = 10;
puke = 0;
ow = 0;
take = 0;
dragged = 0;
onlyone = 0;
oneroar = 0;
oneroar2 = 0;
oneroar3 = 0;
oneroar4 = 0;
_root.worm.reset = 0;
_root.worm.tumble = 0;
_root.angel.angelica.stoparm = 0;
_root.heft = 0;
impmov = 10;
impmov2 = 10;
demov = 10;
dvmov = 10;
dvmov2 = 10;
dvmov3 = 10;
bzmov = 10;
die = 0;
die2 = 0;
die3 = 0;
die4 = 0;
die5 = 0;
die6 = 0;
die7 = 0;
die8 = 0;
diedl = 0;
knock = 1;
knock2 = 1;
knock3 = 1;
_root.layhands = 3;
_root.hitpts = 144;
_root.spellh = 0;
_root.spellp = 0;
heal = 0;
spell1 = 0;
hamster = 0;
timer1 = 200;
timer2 = 280;
timer4 = 32;
timer5 = 40;
timer6 = 12;
timer7 = 50;
timer8 = 3;
_root.timer9 = 0;
timer11 = 100;
timer12 = 80;
nearend = 0;
penend = 0;
satanhp = 666;
_root.satan.satan2.satanhead.openit = 0;
_root.moveit = 0;
_root.satan.dlstop = 0;
_root.dlhp = 100;
myMusic = new Sound();
myMusic.attachSound("ringfire");
myMusic.start(0, 9999);
}
onClipEvent (enterFrame) {
if (_root.hitpts > 0) {
if (dragged == 0) {
if ((penend < 4.5) || (penend > 4.5)) {
if (penend < 8) {
if (_root.knight._x < 460) {
if (Key.isDown(39)) {
_root.knight.gotoAndStop(1);
_root.knight.fighter.sword.gotoAndStop(1);
_root.knight.fighter.bodyleft._alpha = 0;
_root.knight.fighter.helmetleft._alpha = 0;
_root.knight._x = _root.knight._x + (11 + _root.speed);
}
}
if (_root.knight._x > 80) {
if (Key.isDown(37)) {
if (penend < 7) {
_root.knight.gotoAndStop(2);
_root.knight.fighter.sword.gotoAndStop(2);
_root.knight.fighter.bodyleft._alpha = 100;
_root.knight.fighter.helmetleft._alpha = 100;
}
if (penend > 5) {
_root.knight.gotoAndStop(1);
_root.knight.fighter.sword.gotoAndStop(1);
_root.knight.fighter.bodyleft._alpha = 0;
_root.knight.fighter.helmetleft._alpha = 0;
}
_root.knight._x = _root.knight._x - (11 + _root.speed);
}
}
}
}
}
}
if (penend == 4.5) {
_root.knight.gotoAndStop(1);
_root.knight.fighter.sword.gotoAndStop(1);
_root.knight.fighter.bodyleft._alpha = 0;
_root.knight.fighter.helmetleft._alpha = 0;
_root.stopswing = 1;
if (_root.knight._x > 226) {
_root.knight._x = _root.knight._x - 4;
}
if (_root.knight._x < 220) {
_root.knight._x = _root.knight._x + 4;
}
}
if (penend == 8) {
_root.knight.gotoAndStop(1);
_root.knight.fighter.sword.gotoAndStop(1);
_root.knight.fighter.bodyleft._alpha = 0;
_root.knight.fighter.helmetleft._alpha = 0;
_root.stopswing = 1;
if (_root.knight._x > 256) {
_root.knight._x = _root.knight._x - 10;
}
if (_root.knight._x < 254) {
_root.knight._x = _root.knight._x + 10;
}
}
if (_root.stopswing == 2) {
if (_root.heft == 1) {
_root.timer9--;
if (_root.timer9 < 1) {
_root.heft = 0;
}
}
}
_root.beam._x = _root.knight._x;
if (penend < 4) {
if (_root.fiends > 200) {
if (fall > 0) {
ranball = int(Math.random() * 400);
_root.rock._x = 10 + ranball;
fall = random(40);
}
}
}
if (fall == 0) {
_root.rock._y = _root.rock._y + 28;
_root.rock._rotation++;
}
if (_root.rock._y > 400) {
fall = 10;
_root.rock._y = -400;
knock = 1;
}
if ((penend < 4) || (penend > 4.5)) {
if (penend < 8) {
if (_root.fiends > 100) {
if (fall2 > 0) {
ranball2 = int(Math.random() * 400);
_root.rock2._x = 10 + ranball2;
fall2 = random(40);
}
}
}
}
if (fall2 == 0) {
_root.rock2._y = _root.rock2._y + 32;
_root.rock2._rotation++;
}
if (_root.rock2._y > 400) {
fall2 = 10;
_root.rock2._y = -400;
knock2 = 1;
}
if ((penend < 4) || (penend > 4.5)) {
if (penend < 8) {
if (fall3 > 0) {
ranball3 = int(Math.random() * 400);
_root.rock3._x = 10 + ranball3;
fall3 = random(40);
}
}
}
if (fall3 == 0) {
_root.rock3._y = _root.rock3._y + 28;
_root.rock3._rotation++;
}
if (_root.rock3._y > 400) {
fall3 = 10;
_root.rock3._y = -400;
knock3 = 1;
}
if (penend < 1) {
if (_root.fiends > 300) {
if (popup > 0) {
ranworm = int(Math.random() * 510);
_root.worm._x = 20 + ranworm;
popup = random(50);
}
}
}
if (popup == 0) {
_root.worm.play();
}
if (_root.worm.reset == 1) {
popup = 10;
_root.worm.reset = 0;
}
if (nearend < 1) {
if (_root.fiends < 400) {
if (impmov > 0) {
impmov = random(16);
}
}
}
if (impmov == 0) {
_root.imps._x = _root.imps._x - 18;
}
if (_root.imps._x < 0) {
_root.imps._x = 650;
impmov = 10;
}
if (nearend < 1) {
if (_root.fiends < 200) {
if (impmov2 > 0) {
impmov2 = random(16);
}
}
}
if (impmov2 == 0) {
_root.imps2._x = _root.imps2._x + 18;
}
if (_root.imps2._x > 650) {
_root.imps2._x = -300;
impmov2 = 10;
}
if (nearend < 1) {
if (_root.fiends > 200) {
if (demov > 0) {
demov = random(20);
}
}
}
if (demov == 0) {
_root.demon._x = _root.demon._x - 20;
}
if (_root.demon._x < 0) {
_root.demon._x = 650;
demov = 10;
}
if (nearend < 1) {
if (_root.fiends > 100) {
if (dvmov > 0) {
dvmov = random(20);
}
}
}
if (dvmov == 0) {
_root.devil1._x = _root.devil1._x - 14;
}
if (_root.devil1._x < 0) {
_root.devil1._x = 700;
dvmov = 10;
}
if (nearend < 1) {
if (_root.fiends > 100) {
if (dvmov2 > 0) {
dvmov2 = random(20);
}
}
}
if (dvmov2 == 0) {
_root.devil2._x = _root.devil2._x + 14;
}
if (_root.devil2._x > 650) {
_root.devil2._x = -200;
dvmov2 = 10;
}
if (nearend < 1) {
if (dvmov3 > 0) {
dvmov3 = random(20);
}
}
if (dvmov3 == 0) {
_root.devil3._x = _root.devil3._x + 14;
}
if (_root.devil3._x > 650) {
_root.devil3._x = -200;
dvmov3 = 10;
}
if (nearend < 1) {
if (_root.fiends > 400) {
if (bzmov > 0) {
bzmov = random(30);
}
}
}
if (bzmov == 0) {
_root.buzzy._x = _root.buzzy._x + 28;
}
if (_root.buzzy._x > 650) {
_root.buzzy._x = -200;
bzmov = 10;
}
if (_root.knight.fighter.blade.hitTest(_root.devil1.tar)) {
if (die == 0) {
mySound = new Sound();
mySound.attachSound("roar");
mySound.start();
_root.fiends++;
}
die = 1;
dvmov = 10;
}
if (_root.knight.fighter.blade.hitTest(_root.devil2.tar)) {
if (die3 == 0) {
mySound = new Sound();
mySound.attachSound("roar");
mySound.start();
_root.fiends++;
}
die3 = 1;
dvmov2 = 10;
}
if (_root.knight.fighter.blade.hitTest(_root.devil3.tar)) {
if (die4 == 0) {
mySound = new Sound();
mySound.attachSound("roar");
mySound.start();
_root.fiends++;
}
die4 = 1;
dvmov3 = 10;
}
if (_root.knight.fighter.blade.hitTest(_root.demon)) {
if (die2 == 0) {
mySound = new Sound();
mySound.attachSound("roar");
mySound.start();
_root.fiends++;
}
die2 = 1;
demov = 10;
}
if (_root.knight.fighter.blade.hitTest(_root.buzzy)) {
if (die5 == 0) {
_root.fiends++;
}
die5 = 1;
bzmov = 10;
}
if (_root.knight.fighter.blade.hitTest(_root.worm.tar)) {
if (die6 == 0) {
if (_root.fiends < 666) {
mySound = new Sound();
mySound.attachSound("roar");
mySound.start();
_root.fiends++;
}
}
die6 = 1;
}
if (_root.knight.fighter.blade.hitTest(_root.imps.tar)) {
if (die7 == 0) {
mySound = new Sound();
mySound.attachSound("roar");
mySound.start();
_root.fiends++;
_root.fiends++;
}
die7 = 1;
impmov = 10;
}
if (_root.knight.fighter.blade.hitTest(_root.imps2.tar)) {
if (die8 == 0) {
mySound = new Sound();
mySound.attachSound("roar");
mySound.start();
_root.fiends++;
_root.fiends++;
}
die8 = 1;
impmov2 = 10;
}
if (_root.hammer.hitTest(_root.devil1.tar) && (_root.hammer._x < 570)) {
if (die == 0) {
mySound = new Sound();
mySound.attachSound("roar");
mySound.start();
_root.fiends++;
}
die = 1;
dvmov = 10;
}
if (_root.hammer.hitTest(_root.devil2.tar) && (_root.hammer._x > -10)) {
if (die3 == 0) {
mySound = new Sound();
mySound.attachSound("roar");
mySound.start();
_root.fiends++;
}
die3 = 1;
dvmov2 = 10;
}
if (_root.hammer.hitTest(_root.devil3.tar) && (_root.hammer._x > -10)) {
if (die4 == 0) {
mySound = new Sound();
mySound.attachSound("roar");
mySound.start();
_root.fiends++;
}
die4 = 1;
dvmov3 = 10;
}
if (_root.hammer.hitTest(_root.demon) && (_root.hammer._x < 560)) {
if (die2 == 0) {
mySound = new Sound();
mySound.attachSound("roar");
mySound.start();
_root.fiends++;
}
die2 = 1;
demov = 10;
}
if (_root.hammer.hitTest(_root.buzzy) && (_root.hammer._x > -10)) {
if (die5 == 0) {
_root.fiends++;
}
die5 = 1;
bzmov = 10;
}
if (_root.hammer.hitTest(_root.worm.tar)) {
if (die6 == 0) {
if (_root.fiends < 666) {
mySound = new Sound();
mySound.attachSound("roar");
mySound.start();
_root.fiends++;
}
}
die6 = 1;
}
if (_root.hammer.hitTest(_root.imps.tar) && (_root.hammer._x < 560)) {
if (die7 == 0) {
mySound = new Sound();
mySound.attachSound("roar");
mySound.start();
_root.fiends++;
_root.fiends++;
}
die7 = 1;
impmov = 10;
}
if (_root.hammer.hitTest(_root.imps2.tar) && (_root.hammer._x > -10)) {
if (die8 == 0) {
mySound = new Sound();
mySound.attachSound("roar");
mySound.start();
_root.fiends++;
_root.fiends++;
}
die8 = 1;
impmov2 = 10;
}
if (die == 1) {
_root.devil1._y = _root.devil1._y + 16;
_root.devil1._rotation = _root.devil1._rotation + 8;
if (_root.devil1._y > 500) {
die = 0;
_root.devil1._rotation = 0;
_root.devil1._y = 350;
_root.devil1._x = 700;
dvmov = 10;
}
}
if (die2 == 1) {
_root.demon._y = _root.demon._y + 24;
_root.demon._rotation = _root.demon._rotation + 12;
if (_root.demon._y > 500) {
die2 = 0;
_root.demon._rotation = 0;
_root.demon._y = 350;
_root.demon._x = 700;
demov = 10;
}
}
if (die3 == 1) {
_root.devil2._y = _root.devil2._y + 16;
_root.devil2._rotation = _root.devil2._rotation - 8;
if (_root.devil2._y > 500) {
die3 = 0;
_root.devil2._rotation = 180;
_root.devil2._y = 350;
_root.devil2._x = -200;
dvmov2 = 10;
}
}
if (die4 == 1) {
_root.devil3._y = _root.devil3._y + 16;
_root.devil3._rotation = _root.devil3._rotation - 8;
if (_root.devil3._y > 500) {
die4 = 0;
_root.devil3._rotation = 180;
_root.devil3._y = 350;
_root.devil3._x = -200;
dvmov3 = 10;
}
}
if (die5 == 1) {
_root.buzzy._y = _root.buzzy._y + 30;
_root.buzzy._rotation = _root.buzzy._rotation - 28;
if (_root.buzzy._y > 500) {
die5 = 0;
_root.buzzy._rotation = 180;
_root.buzzy._y = 280;
_root.buzzy._x = -200;
bzmov = 10;
}
}
if (die6 == 1) {
_root.worm._rotation = _root.worm._rotation + 4;
_root.worm.wormy.gotoAndStop(10);
if (_root.worm.tumble == 1) {
die6 = 0;
_root.worm._rotation = 0;
_root.worm.wormy.gotoAndStop(1);
_root.worm.tumble = 0;
}
}
if (die7 == 1) {
_root.imps._y = _root.imps._y + 24;
_root.imps._rotation = _root.imps._rotation + 12;
if (_root.imps._y > 500) {
die7 = 0;
_root.imps._rotation = 0;
_root.imps._y = 316;
_root.imps._x = 700;
impmov = 10;
}
}
if (die8 == 1) {
_root.imps2._y = _root.imps2._y + 24;
_root.imps2._rotation = _root.imps2._rotation - 12;
if (_root.imps2._y > 500) {
die8 = 0;
_root.imps2._rotation = 180;
_root.imps2._y = 316;
_root.imps2._x = -200;
impmov2 = 10;
}
}
if (_root.spellp < 1) {
if (_root.knight.fighter.flesh.hitTest(_root.devil1.claws) && (die == 0)) {
_root.hitpts = _root.hitpts - (13 - _root.armor);
_root.knight.fighter.helmet.play();
_root.knight.fighter.helmetleft.play();
}
if (_root.knight.fighter.flesh.hitTest(_root.devil2.claws) && (die3 == 0)) {
_root.hitpts = _root.hitpts - (13 - _root.armor);
_root.knight.fighter.helmet.play();
_root.knight.fighter.helmetleft.play();
}
if (_root.knight.fighter.flesh.hitTest(_root.devil3.claws) && (die4 == 0)) {
_root.hitpts = _root.hitpts - (13 - _root.armor);
_root.knight.fighter.helmet.play();
_root.knight.fighter.helmetleft.play();
}
if (_root.knight.fighter.flesh.hitTest(_root.demon) && (die2 == 0)) {
_root.hitpts = _root.hitpts - (13 - _root.armor);
_root.knight.fighter.helmet.play();
_root.knight.fighter.helmetleft.play();
}
if (_root.knight.fighter.flesh.hitTest(_root.buzzy) && (die5 == 0)) {
_root.hitpts = _root.hitpts - (11 - _root.armor);
_root.knight.fighter.helmet.play();
_root.knight.fighter.helmetleft.play();
}
if (_root.knight.fighter.flesh.hitTest(_root.worm.tar) && (die6 == 0)) {
_root.hitpts = _root.hitpts - (13 - _root.armor);
_root.knight.fighter.helmet.play();
_root.knight.fighter.helmetleft.play();
}
if (_root.knight.fighter.flesh.hitTest(_root.imps.point) && (die7 == 0)) {
_root.hitpts = _root.hitpts - (11 - _root.armor);
_root.knight.fighter.helmet.play();
_root.knight.fighter.helmetleft.play();
}
if (_root.knight.fighter.flesh.hitTest(_root.imps2.point) && (die8 == 0)) {
_root.hitpts = _root.hitpts - (11 - _root.armor);
_root.knight.fighter.helmet.play();
_root.knight.fighter.helmetleft.play();
}
}
if (_root.spellp == 1) {
timer1--;
if (timer1 < 0) {
_root.knight.fighter.shieldlight.gotoAndStop(1);
_root.spellp = 0;
}
}
if (_root.knight.fighter.head.hitTest(_root.rock)) {
if (knock == 1) {
_root.knight.fighter.helmet.gotoAndPlay(10);
_root.knight.fighter.helmetleft.gotoAndPlay(10);
knock = 0;
}
_root.hitpts = _root.hitpts - (12 - _root.armor);
}
if (_root.knight.fighter.head.hitTest(_root.rock2)) {
if (knock2 == 1) {
_root.knight.fighter.helmet.gotoAndPlay(10);
_root.knight.fighter.helmetleft.gotoAndPlay(10);
knock2 = 0;
}
_root.hitpts = _root.hitpts - (12 - _root.armor);
}
if (_root.knight.fighter.head.hitTest(_root.rock3)) {
if (knock3 == 1) {
_root.knight.fighter.helmet.gotoAndPlay(10);
_root.knight.fighter.helmetleft.gotoAndPlay(10);
knock3 = 0;
}
_root.hitpts = _root.hitpts - (12 - _root.armor);
}
flash = random(10);
if (flash == 1) {
_root.storm.play();
}
if (_root.count > 0) {
_root.count--;
}
if (_root.count == 0) {
_root.laying._y = -200;
}
if (_root.spellh == 1) {
timer2--;
if (spell1 == 0) {
_root.hammer._x = _root.knight._x;
_root.hammer._y = 220;
_root.hammer._rotation = 0;
spell1 = 1;
}
if ((hamster == 0) && (Key.isDown(39))) {
hamster = 1;
_root.hammer._rotation = _root.hammer._rotation + 20;
}
if (hamster == 1) {
_root.hammer._x = _root.hammer._x + 52;
_root.hammer._y = _root.hammer._y + 14;
}
if ((hamster == 0) && (Key.isDown(37))) {
hamster = 2;
_root.hammer._rotation = _root.hammer._rotation - 20;
}
if (hamster == 2) {
_root.hammer._x = _root.hammer._x - 52;
_root.hammer._y = _root.hammer._y + 14;
}
if (_root.hammer._x < -150) {
spell1 = 0;
hamster = 0;
}
if (_root.hammer._x > 700) {
spell1 = 0;
hamster = 0;
}
if (timer2 < 0) {
_root.spellh = 0;
_root.hammer._rotation = 0;
_root.hammer._y = 800;
}
}
if (_root.fiends > 659) {
nearend = 1;
}
if (penend < 1) {
if (_root.fiends > 665) {
_root.fiends = 666;
penend = 1;
}
}
if (penend == 1) {
_root.dlord.gotoAndStop(1);
timer4--;
if (timer4 < 0) {
penend = 4;
}
}
if (penend == 4) {
_root.dlord.gotoAndStop(15);
if (oneroar3 == 0) {
myBoom = new Sound();
myBoom.attachSound("boom");
myBoom.start();
_root.spellh = 0;
_root.spellp = 0;
_root.hammer._rotation = 0;
_root.hammer._y = 900;
_root.knight.fighter.shieldlight.gotoAndStop(1);
_root.protect = 0;
_root.healall = 0;
_root.spiritham = 0;
_root.hamicon._alpha = 0;
_root.healicon._alpha = 0;
_root.shieldicon._alpha = 0;
oneroar3 = 1;
}
timer5--;
if (timer5 < 0) {
_root.dlord.gotoAndStop(1);
_root.dlord._y = _root.dlord._y - 20;
if (oneroar2 == 0) {
myMonster = new Sound();
myMonster.attachSound("monster");
myMonster.start();
oneroar2 = 1;
}
}
if (_root.dlord._y < -1200) {
penend = 4.5;
}
}
if (penend == 1) {
if (oneroar == 0) {
myMusic.stop();
mySound.start();
oneroar = 1;
}
}
if (penend == 4.5) {
if (_root.hitpts > 0) {
if (arrive == 0) {
_root.angel._x = _root.angel._x - 6;
_root.angel._y = _root.angel._y + 8;
myHoly = new Sound();
myHoly.attachSound("holy");
myHoly.start();
}
}
if (arrive == 0) {
if (_root.angel._y > 260) {
arrive = 1;
}
}
if (arrive == 1) {
_root.angel.angelica.play();
}
if ((arrive == 1) && (_root.angel.angelica.stoparm == 1)) {
_root.angel.angelica.gotoAndStop(8);
arrive = 2;
}
if (arrive == 2) {
_root.knight.fighter.heallight.play();
_root.knight.fighter.shieldlight.gotoAndStop(2);
_root.hitpts = 144;
arrive = 3;
}
if (arrive == 3) {
timer8--;
if (timer8 < 1) {
arrive = 4;
}
}
if (arrive == 4) {
_root.angel.angelica.play();
}
if ((arrive == 4) && (_root.angel.angelica.stoparm == 2)) {
_root.angel.angelica.gotoAndStop(1);
arrive = 4.5;
}
if (arrive == 4.5) {
_root.bless._y = 120;
timer11--;
if (timer11 < 1) {
_root.bless._y = 800;
arrive = 5;
}
}
if (arrive == 5) {
myBoom = new Sound();
myBoom.attachSound("boom");
myBoom.start();
_root.satan._x = _root.angel._x + 20;
_root.satan.play();
arrive = 6;
timer8 = 9;
}
if (arrive == 6) {
timer8--;
if (timer8 < 1) {
arrive = 7;
}
}
if (arrive == 7) {
if (oneroar4 == 0) {
myCry = new Sound();
myCry.attachSound("cry");
myCry.start();
oneroar4 = 1;
}
_root.angel._y = _root.angel._y + 40;
_root.angel._x = _root.angel._x + 4;
_root.angel._rotation = _root.angel._rotation + 6;
_root.angel.angelica.gotoAndStop(8);
if (_root.angel._y > 600) {
arrive = 8;
timer8 = 20;
}
}
if (arrive == 8) {
timer8--;
if (timer8 < 1) {
arrive = 9;
penend = 5;
timer8 = 12;
}
}
}
if (penend == 5) {
if (_root.hitpts > 0) {
if (final == 0) {
dive = random(260);
spear = int(Math.random() * 20);
_root.satan._x = (_root.knight._x + dive) - 50;
}
}
if (spear == 10) {
_root.satan.dlstop = 1;
final = 1;
spear = 0;
onlyone = 0;
myBoom.start();
}
if (final == 1) {
_root.satan.play();
}
if (_root.satan.dlstop == 0) {
final = 0;
}
}
if (_root.satan.tipback == 1) {
if (onlyone == 0) {
if ((_root.knight.fighter.flesh.hitTest(_root.satan.satan2.dlarm.tips) || (_root.knight.fighter.head.hitTest(_root.satan.satan2.dlarm.tips))) || (_root.knight.fighter.flesh2.hitTest(_root.satan.satan2.dlarm.tips))) {
_root.hitpts = _root.hitpts - ((20 - _root.armor) + random(10));
_root.knight.fighter.helmet.play();
_root.knight.fighter.helmetleft.play();
onlyone = 1;
if (penend == 7) {
dragged = 1;
}
}
}
}
if ((_root.knight.fighter.flesh.hitTest(_root.goop.tar) || (_root.knight.fighter.head.hitTest(_root.goop.tar))) || (_root.knight.fighter.flesh2.hitTest(_root.goop.tar))) {
if (_root.goop._y < 400) {
_root.hitpts = _root.hitpts - (2 + random(6));
_root.knight.fighter.helmet.play();
_root.knight.fighter.helmetleft.play();
}
}
if ((_root.knight.fighter.flesh.hitTest(_root.goop2.tar) || (_root.knight.fighter.head.hitTest(_root.goop2.tar))) || (_root.knight.fighter.flesh2.hitTest(_root.goop2.tar))) {
if (_root.goop2._y < 400) {
_root.hitpts = _root.hitpts - (2 + random(6));
_root.knight.fighter.helmet.play();
_root.knight.fighter.helmetleft.play();
}
}
if ((_root.knight.fighter.flesh.hitTest(_root.goop3.tar) || (_root.knight.fighter.head.hitTest(_root.goop3.tar))) || (_root.knight.fighter.flesh2.hitTest(_root.goop3.tar))) {
if (_root.goop3._y < 400) {
_root.hitpts = _root.hitpts - (2 + random(6));
_root.knight.fighter.helmet.play();
_root.knight.fighter.helmetleft.play();
}
}
if (penend < 7) {
if (_root.knight.fighter.blade.hitTest(_root.satan.satan2.satantar)) {
if (diedl == 0) {
mySound = new Sound();
mySound.attachSound("roar");
mySound.start();
_root.satan.satan2.satanhead.gotoAndPlay(10);
diedl = 1;
holystrike = random(14);
}
}
if (diedl == 1) {
_root.hitdl.powdl = (17 + holystrike) * -1;
satanhp = satanhp + _root.hitdl.powdl;
diedl = 2;
_root.hitdl._y = 245;
_root.hitdl._x = _root.knight._x + 20;
}
if (diedl == 2) {
timer6--;
_root.hitdl._x = _root.knight._x + 20;
}
if (timer6 < 0) {
_root.satan.satan2.satanhead.gotoAndPlay(1);
_root.hitdl._y = -100;
_root.hitdl._x = 200;
diedl = 0;
timer6 = 12;
}
}
if (penend > 6) {
if (_root.knight.fighter.blade.hitTest(_root.satan.satan2.satantar)) {
mySound = new Sound();
mySound.attachSound("roar");
mySound.start();
_root.satan.satan2.satanhead.gotoAndPlay(10);
diedl = 1;
holystrike = random(14);
}
if (diedl == 1) {
_root.hitdl.powdl = (17 + holystrike) * -1;
satanhp = satanhp + _root.hitdl.powdl;
diedl = 2;
_root.hitdl._y = 245;
_root.hitdl._x = _root.knight._x + 20;
}
if (diedl == 2) {
timer6--;
_root.hitdl._x = _root.knight._x + 20;
}
if (timer6 < 0) {
_root.satan.satan2.satanhead.gotoAndPlay(1);
_root.hitdl._y = -100;
_root.hitdl._x = 200;
lunge = 1;
diedl = 0;
timer6 = 12;
}
}
if (penend == 5) {
_root.stopswing = 0;
if (satanhp < 400) {
penend = 6;
if (ow == 0) {
mySound.start();
mySound.start();
ow = 1;
}
}
}
if (penend == 6) {
timer7--;
if (timer7 < 1) {
_root.satan.gotoAndStop(6);
_root.satan._y = 340;
_root.satan._x = 840;
_root.satan._yscale = 88;
_root.satan._xscale = 88;
_root.satan.satan2.dlarm.gotoAndStop(2);
oneroar2 = 0;
penend = 7;
_root.stopswing = 2;
}
}
if (penend == 7) {
if (satanhp > 0) {
if (_root.hitpts > 0) {
if (final == 0) {
dive = random(200);
spear = int(Math.random() * 30);
}
}
if (spear == 10) {
_root.satan.satan2.dlarm.gotoAndStop(2);
onlyone = 0;
final = 1;
spear = 0;
}
if (final == 1) {
if (_root.satan._x > (dive + 200)) {
_root.satan._x = _root.satan._x - 42;
}
}
if ((_root.satan._x < (dive + 200)) || (_root.satan._x == (dive + 200))) {
final = 2;
}
if (final == 2) {
dragged = 0;
_root.satan._x = _root.satan._x + 38;
if (_root.satan._x > 840) {
_root.satan._x = 840;
final = 0;
}
}
}
}
if (penend == 7) {
if (_root.hitpts > 0) {
if (satanhp > 0) {
if (dragged == 1) {
if (final == 1) {
if (_root.knight._x > 80) {
_root.knight._x = _root.knight._x - 42;
}
}
}
}
}
}
if (penend == 7) {
if (_root.hitpts > 0) {
if (satanhp > 0) {
if (puke == 0) {
drop = -10 - random(10);
drop2 = -10 - random(10);
drop3 = -10 - random(10);
barf = random(3);
dis = random(10);
dis2 = random(20);
dis3 = random(30);
if (barf == 1) {
if (_root.satan._x < 520) {
puke = 1;
}
}
}
}
}
if (puke == 1) {
if (satanhp > 0) {
if (_root.satan._x < 520) {
_root.satan.satan2.satanhead.gotoAndStop(10);
_root.goop._x = _root.satan._x + 20;
_root.goop._y = 180;
_root.goop2._x = _root.satan._x + 20;
_root.goop2._y = 180;
_root.goop3._x = _root.satan._x + 20;
_root.goop3._y = 180;
puke = 2;
}
}
}
if (puke == 2) {
timer8--;
if (timer8 < 1) {
_root.satan.satan2.satanhead.gotoAndStop(1);
timer8 = 400;
}
_root.goop._x = _root.goop._x - (3 + dis);
_root.goop._y = _root.goop._y + drop;
_root.goop2._x = _root.goop2._x - (3 + dis2);
_root.goop2._y = _root.goop2._y + drop2;
_root.goop3._x = _root.goop3._x - (3 + dis3);
_root.goop3._y = _root.goop3._y + drop3;
drop = drop + 3;
drop2 = drop2 + 3;
drop3 = drop3 + 3;
_root.goop._xscale = _root.goop._xscale + 2;
_root.goop._yscale = _root.goop._yscale + 2;
_root.goop2._xscale = _root.goop2._xscale + 2;
_root.goop2._yscale = _root.goop2._yscale + 2;
_root.goop3._xscale = _root.goop3._xscale + 2;
_root.goop3._yscale = _root.goop3._yscale + 2;
if (_root.goop._y > 700) {
puke = 0;
timer8 = 3;
_root.goop._x = 600;
_root.goop2._x = 600;
_root.goop3._x = 600;
_root.goop._xscale = 40;
_root.goop._yscale = 40;
_root.goop2._xscale = 40;
_root.goop2._yscale = 40;
_root.goop3._xscale = 40;
_root.goop3._yscale = 40;
}
}
}
if (penend > 6) {
if (_root.knight.fighter.blade.hitTest(_root.satan.satan2.dlarm.knock)) {
_root.satan.satan2.dlarm.play();
dragged = 0;
}
}
if (satanhp < 1) {
_root.satan.satan2.satanhead.play();
if (oneroar2 == 0) {
myMonster.start();
mySound.start();
myBoom.start();
myBoom.start();
oneroar2 = 1;
}
_root.satan._y = _root.satan._y + 16;
_root.satan._rotation--;
if (_root.satan._y > 700) {
penend = 8;
_root.moveit = 2;
}
}
if (penend == 8) {
if (take == 0) {
timer12--;
if (timer12 < 1) {
_root.angelx1._x = _root.angelx1._x + 8;
_root.angelx1._y = _root.angelx1._y + 8;
_root.angelx2._x = _root.angelx2._x - 8;
_root.angelx2._y = _root.angelx2._y + 8;
}
if (_root.angelx1._y > 300) {
take = 1;
}
}
if (take == 1) {
_root.angelx1._y = _root.angelx1._y - 18;
_root.angelx2._y = _root.angelx2._y - 18;
_root.knight._y = _root.knight._y - 18;
if (_root.angelx1._y < -200) {
take = 2;
_root.blue._x = 0;
_root.blue._y = 0;
_root.blue._xscale = 100;
_root.blue._yscale = 100;
}
}
if (take == 2) {
_root.win._y = 140;
_root.blue._alpha = _root.blue._alpha + 2;
_root.fluff._alpha = _root.fluff._alpha + 3;
if (_root.fluff._y > 360) {
_root.fluff._y = _root.fluff._y - 2;
}
if (_root.blue._alpha > 99) {
timer12 = 60;
take = 3;
}
}
if (take == 3) {
timer12--;
if (timer12 < 1) {
take = 4;
}
}
if (take == 4) {
_root.win._alpha = _root.win._alpha - 8;
if (_root.win._alpha < 1) {
_root.win._y = 600;
take = 5;
}
}
if (take == 5) {
_root.knight._alpha = 100;
_root.knight.fighter.gotoAndStop(10);
_root.knight.fighter.shieldlight.gotoAndStop(1);
_root.knight._y = 280;
_root.knight._x = -100;
_root.knight._rotation = 10;
_root.angelx2._y = 345;
_root.angelx2._x = 325;
_root.angelx2._rotation = 35;
take = 6;
}
if (take == 6) {
_root.knight._x = _root.knight._x + 28;
if (_root.knight._x > 220) {
take = 7;
}
}
if (take == 7) {
_root.knight._rotation = _root.knight._rotation + 18;
_root.knight._x = _root.knight._x + 16;
_root.knight._y = _root.knight._y - 14;
if (_root.knight._rotation > 50) {
take = 8;
}
}
if (take == 8) {
_root.knight._y = _root.knight._y + 28;
_root.angelx2._y = _root.angelx2._y + 28;
if (_root.knight._y > 600) {
take = 9;
}
}
if (take == 9) {
_root.ender._y = 240;
}
}
if (_root.hitpts < 1) {
if (_root.knight._y > -600) {
_root.spotlight._x = _root.knight._x + 17;
_root.spotlight.attachMovie("beam", "beamy", 0);
_root.knight.gotoAndStop(1);
_root.knight.fighter.sword.gotoAndStop(1);
_root.knight.fighter.bodyleft._alpha = 0;
_root.knight.fighter.helmetleft._alpha = 0;
_root.knight.fighter.gotoAndStop(10);
_root.knight.fighter.shieldlight.gotoAndStop(1);
_root.knight._alpha = 65;
_root.hitpts = 0;
_root.spellh = 0;
_root.spellp = 0;
_root.hammer._rotation = 0;
_root.hammer._y = 900;
_root.knight._y = _root.knight._y - 38;
myMusic.stop();
} else {
removeMovieClip("_root.spotlight.beamy");
_root.knight._alpha = 100;
_root.knight.fighter.gotoAndStop(1);
_root.moveit = 1;
}
}
_root.checkMove();
}
Instance of Symbol 59 MovieClip "hamicon" in Frame 7
onClipEvent (enterFrame) {
stop();
}
Frame 8
trace("score is " + _root.fiends);
pncom.storeScore(_root.fiends);
stop();
Frame 9
trace("score is " + _root.fiends);
pncom.storeScore(_root.fiends);
stop();
Symbol 10 MovieClip [pnFlashGames] Frame 1
#initclip 1
pnFlashGames = function () {
var _local1 = this;
_local1.gid = _root.pn_gid;
_local1.uname = _root.pn_uname;
_local1.busy = false;
_local1.gameSaved = null;
_local1.gameLoaded = null;
_local1.scoreStored = null;
_local1.gameData = "";
};
pnFlashGames.prototype.saveGame = function (gameData) {
var _local1 = this;
_local1.busy = true;
varsObj = new LoadVars();
varsObj.func = "saveGame";
varsObj.gid = _local1.gid;
varsObj.gameData = gameData;
varsObj.type = "user";
varsObj.module = "pnFlashGames";
varsObj.parent = _local1;
varsObj.onLoad = _local1.saveGame_Result;
varsObj.sendAndLoad("index.php", varsObj, "POST");
};
pnFlashGames.prototype.saveGame_Result = function (success) {
var _local1 = this;
_local1.parent._parent.incoming = _local1.opSuccess;
if (_local1.opSuccess == "true") {
_local1.parent.gameSaved = true;
} else {
_local1.parent.gameSaved = false;
}
_local1.parent.busy = false;
};
pnFlashGames.prototype.loadGame = function () {
var _local1 = this;
_local1.busy = true;
varsObj = new LoadVars();
varsObj.func = "loadGame";
varsObj.gid = _local1.gid;
varsObj.type = "user";
varsObj.module = "pnFlashGames";
varsObj.parent = _local1;
varsObj.onLoad = _local1.loadGame_Result;
varsObj.sendAndLoad("index.php", varsObj, "POST");
};
pnFlashGames.prototype.loadGame_Result = function (success) {
var _local1 = this;
if (_local1.opSuccess == "true") {
_local1.parent.gameLoaded = true;
_local1.parent.gameData = gameData;
} else {
_local1.parent.gameLoaded = false;
}
if (_local1.parent.onLoadGame != null) {
_local1.parent.onLoadGame(_local1.gameData);
}
_local1.parent.busy = false;
};
pnFlashGames.prototype.storeScore = function (score) {
var _local1 = this;
_local1.busy = true;
varsObj = new LoadVars();
varsObj.score = score;
varsObj.func = "storeScore";
varsObj.gid = _local1.gid;
varsObj.type = "user";
varsObj.module = "pnFlashGames";
varsObj.parent = _local1;
varsObj.onLoad = _local1.storeScore_Result;
varsObj.sendAndLoad("index.php", varsObj, "POST");
};
pnFlashGames.prototype.storeScore_Result = function (success) {
var _local1 = this;
if (_local1.opSuccess == "true") {
_local1.parent.scoreStored = true;
} else {
_local1.parent.scoreStored = false;
}
_local1.parent.busy = false;
};
Object.registerClass("pnFlashGames", pnFlashGames);
#endinitclip
Symbol 16 MovieClip [bullet] Frame 1
stop();
Symbol 16 MovieClip [bullet] Frame 5
stop();
Symbol 16 MovieClip [bullet] Frame 8
stop();
Symbol 31 Button
on (release) {
gotoAndStop (6);
}
Symbol 37 Button
on (release) {
gotoAndPlay (7);
}
Symbol 45 Button
on (release) {
if (_root.armor < 10) {
_root.armor++;
_root.speed--;
}
}
Symbol 46 Button
on (release) {
if (_root.speed < 10) {
_root.armor--;
_root.speed++;
}
}
Symbol 70 MovieClip Frame 3
flick = random(20);
if (flick == 0) {
gotoAndPlay (3);
}
if (flick == 1) {
gotoAndPlay (1);
}
if (flick > 1) {
gotoAndPlay (2);
}
Symbol 81 MovieClip Frame 14
gotoAndPlay (1);
Symbol 94 MovieClip Frame 1
stop();
Symbol 94 MovieClip Frame 8
stoparm = 1;
Symbol 94 MovieClip Frame 13
stoparm = 2;
Symbol 100 MovieClip Frame 1
stop();
Symbol 100 MovieClip Frame 2
stop();
Symbol 112 MovieClip Frame 1
stop();
Symbol 112 MovieClip Frame 4
gotoAndStop (1);
Symbol 116 MovieClip Frame 1
stop();
Symbol 116 MovieClip Frame 2
stop();
Symbol 127 MovieClip Frame 1
stop();
Symbol 137 MovieClip Frame 1
stop();
Symbol 137 MovieClip Frame 5
gotoAndStop (1);
Symbol 139 MovieClip Frame 1
stop();
Symbol 139 MovieClip Frame 2
stop();
Symbol 152 Button
on (keyPress "<Space>") {
if (_root.stopswing == 0) {
_root.knight.fighter.play();
}
if (_root.stopswing == 2) {
if (_root.heft == 0) {
_root.knight.fighter.play();
_root.heft = 1;
_root.timer9 = 3;
}
}
}
on (keyPress "<Up>") {
if (_root.hitpts > 0) {
if (_root.layhands > 0) {
_root.laying._y = 135;
_root.count = 20;
heal = int(Math.random() * 20);
_root.healed = 20 + heal;
_root.hitpts = _root.hitpts + (20 + heal);
_root.layhands = _root.layhands - 1;
if (_root.layhands == 2) {
_root.hand1._alpha = 0;
}
if (_root.layhands == 1) {
_root.hand2._alpha = 0;
}
if (_root.layhands == 0) {
_root.hand3._alpha = 0;
}
if (_root.hitpts > 144) {
_root.hitpts = 144;
}
}
}
}
on (keyPress "h") {
if (_root.hitpts > 0) {
if (_root.spiritham == 1) {
_root.spellh = 1;
_root.spiritham = 0;
_root.hamicon._alpha = 0;
}
}
}
on (keyPress "p") {
if (_root.hitpts > 0) {
if (_root.protect == 1) {
_root.knight.fighter.shieldlight.gotoAndStop(2);
_root.spellp = 1;
_root.protect = 0;
_root.shieldicon._alpha = 0;
}
}
}
on (keyPress "<Down>") {
if (_root.hitpts > 0) {
if (_root.healall == 1) {
_root.knight.fighter.heallight.play();
_root.healicon._alpha = 0;
_root.hitpts = 144;
_root.healall = 0;
}
}
}
Symbol 173 MovieClip Frame 5
gotoAndPlay (1);
Symbol 173 MovieClip Frame 10
stop();
Symbol 174 MovieClip Frame 1
stop();
Symbol 174 MovieClip Frame 27
reset = 1;
tumble = 1;
Symbol 182 MovieClip Frame 1
stop();
Symbol 182 MovieClip Frame 5
gotoAndStop (1);
Symbol 187 MovieClip Frame 1
stop();
if (openit == 1) {
gotoAndPlay (2);
}
Symbol 191 MovieClip Frame 1
stop();
tipback = 1;
Symbol 191 MovieClip Frame 12
tipback = 0;
Symbol 191 MovieClip Frame 20
dlstop = 0;
gotoAndStop (1);
Symbol 222 Button
on (release) {
_root.hitpts = 144;
_root.knight._y = 336;
_root.restart._y = 600;
_root.fiends = 0;
_root.layhands = 3;
_root.hand1._alpha = 100;
_root.hand2._alpha = 100;
_root.hand3._alpha = 100;
_root.shieldicon._alpha = 100;
_root.hamicon._alpha = 100;
_root.healicon._alpha = 100;
}
Symbol 224 Button
on (release) {
_root.fiends = 0;
gotoAndPlay (6);
}