Frame 1
var debug = true;
var gameName = "journeytotheeast";
stop();
fscommand ("showmenu", "false");
stagewidth = Stage.width;
stageheight = Stage.height;
btnFoggy._width = stagewidth;
btnFoggy._height = stageheight;
mcTaglines.swapDepths(99996);
prel.swapDepths(99997);
mcLogo.swapDepths(99998);
btnFoggy.swapDepths(99999);
fogNo = 0;
prel.onEnterFrame = function () {
var _local4 = Math.random();
if (_local4 < ((_root.getBytesLoaded() / _root.getBytesTotal()) / 5)) {
if (fogNo > 999) {
fogNo = 0;
}
var _local5 = random(2) + 1;
var _local3 = _root.attachMovie("fog_1", "fog" + (fogNo++), fogNo);
_local3.cacheAsBitmap = true;
_local3._x = stagewidth / 2;
_local3._y = stageheight / 2;
_local3._xscale = (_local3._yscale = 0);
_local3.gotoAndStop(random(10) + 1);
_local3.speed = 100;
_local3._alpha = 0;
_local3.grow = Math.random();
_local3.fade = false;
_local3.targetX = random(10);
if (_local3.targetX < 5) {
_local3.targetX = random(10);
if (_local3.targetX < 5) {
_local3.targetX = -100;
} else {
_local3.targetX = stagewidth + 100;
}
_local3.targetY = random(stageheight);
} else {
_local3.targetY = random(10);
if (_local3.targetY < 5) {
_local3.targetY = -100;
} else {
_local3.targetY = stageheight + 100;
}
_local3.targetX = random(stagewidth);
}
_local3.onEnterFrame = function () {
this._x = this._x + (((this.targetX - this._x) / this.speed) * 0.5);
this._y = this._y + (((this.targetY - this._y) / this.speed) * 0.5);
this.speed = this.speed * 0.99;
this._xscale = (this._yscale = this._yscale + (this.grow * 2));
if ((this._alpha < 100) && (!this.fade)) {
this._alpha = this._alpha + 2;
}
if (((((this._x < -50) || (this._y < -50)) || (this._x > (stagewidth + 50))) || (this._y > (stageheight + 50))) || (this._xscale > 200)) {
this.fade = true;
}
if (this.fade) {
this._alpha = this._alpha - 5;
if (this._alpha <= 0) {
delete this.onEnterFrame;
this.removeMovieClip();
}
}
};
}
prel.procent.text = Math.floor((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
prel.gotoAndStop(prel.procent.text);
if (Number(prel.procent.text) > 99) {
mcLogo.removeMovieClip();
play();
delete this.onEnterFrame;
}
};
Instance of Symbol 58 MovieClip in Frame 1
on (release) {
getURL ("http://www.freegamesforyourwebsite.com/click.php?gid=211&area=minilogo2", "_blank");
}
Frame 2
stop();
mcLogo.swapDepths(99998);
Frame 3
if (!okToPlay) {
gotoAndStop (2);
} else {
prel.removeMovieClip();
btnFoggy.removeMovieClip();
mcTaglines.removeMovieClip();
mcLogo.removeMovieClip();
}
Frame 4
gotoAndStop (25);
Instance of Symbol 666 MovieClip in Frame 4
onClipEvent (load) {
this._visible = false;
music = new Sound(this);
music.attachSound("europeMusic");
bikesound = 0;
}
onClipEvent (enterFrame) {
if (_root.music == true) {
if (_root.music == true) {
if (bikesound == 0) {
bikesound = 1;
}
}
} else if ((!_root.music) == true) {
bikesound = 0;
music.stop();
}
if (bikesound == 1) {
bikesound = 2;
music.start(0, 1);
}
music.onSoundComplete = function () {
bikesound = 0;
};
}
onClipEvent (enterFrame) {
if (_root.music == false) {
bikesound = 0;
music.stop();
}
}
Instance of Symbol 666 MovieClip in Frame 4
onClipEvent (load) {
this._visible = false;
music = new Sound(this);
music.attachSound("arabiaMusic");
bikesound = 0;
}
onClipEvent (enterFrame) {
if (_root.music2 == true) {
if (_root.music2 == true) {
if (bikesound == 0) {
bikesound = 1;
}
}
} else if ((!_root.music2) == true) {
bikesound = 0;
music.stop();
}
if (bikesound == 1) {
bikesound = 2;
music.start(0, 1);
}
music.onSoundComplete = function () {
bikesound = 0;
};
}
onClipEvent (enterFrame) {
if (_root.music2 == false) {
bikesound = 0;
music.stop();
}
}
Instance of Symbol 666 MovieClip in Frame 4
onClipEvent (load) {
this._visible = false;
music = new Sound(this);
music.attachSound("birdLoop");
bikesound = 0;
}
onClipEvent (enterFrame) {
if (_root.sound == true) {
if (_root.sound == true) {
if (bikesound == 0) {
bikesound = 1;
}
}
} else if ((!_root.sound) == true) {
bikesound = 0;
music.stop();
}
if (bikesound == 1) {
bikesound = 2;
music.start(0, 1);
}
music.onSoundComplete = function () {
bikesound = 0;
};
}
onClipEvent (enterFrame) {
if (_root.sound == false) {
bikesound = 0;
music.stop();
}
}
Instance of Symbol 666 MovieClip in Frame 4
onClipEvent (load) {
this._visible = false;
music = new Sound(this);
music.attachSound("windLoop");
bikesound = 0;
}
onClipEvent (enterFrame) {
if (_root.sound2 == true) {
if (_root.sound2 == true) {
if (bikesound == 0) {
bikesound = 1;
}
}
} else if ((!_root.sound2) == true) {
bikesound = 0;
music.stop();
}
if (bikesound == 1) {
bikesound = 2;
music.start(0, 1);
}
music.onSoundComplete = function () {
bikesound = 0;
};
}
onClipEvent (enterFrame) {
if (_root.sound2 == false) {
bikesound = 0;
music.stop();
}
}
Instance of Symbol 666 MovieClip in Frame 4
onClipEvent (load) {
this._visible = false;
music = new Sound(this);
music.attachSound("chineseMusic");
bikesound = 0;
}
onClipEvent (enterFrame) {
if (_root.music3 == true) {
if (_root.music3 == true) {
if (bikesound == 0) {
bikesound = 1;
}
}
} else if ((!_root.music3) == true) {
bikesound = 0;
music.stop();
}
if (bikesound == 1) {
bikesound = 2;
music.start(0, 1);
}
music.onSoundComplete = function () {
bikesound = 0;
};
}
onClipEvent (enterFrame) {
if (_root.music3 == false) {
bikesound = 0;
music.stop();
}
}
Instance of Symbol 666 MovieClip in Frame 4
onClipEvent (load) {
this._visible = false;
music = new Sound(this);
music.attachSound("menuMusic");
bikesound = 0;
}
onClipEvent (enterFrame) {
if (_root.music4 == true) {
if (_root.music4 == true) {
if (bikesound == 0) {
bikesound = 1;
}
}
} else if ((!_root.music4) == true) {
bikesound = 0;
music.stop();
}
if (bikesound == 1) {
bikesound = 2;
music.start(0, 1);
}
music.onSoundComplete = function () {
bikesound = 0;
};
}
onClipEvent (enterFrame) {
if (_root.music4 == false) {
bikesound = 0;
music.stop();
}
}
Instance of Symbol 666 MovieClip in Frame 4
onClipEvent (load) {
this._visible = false;
music = new Sound(this);
music.attachSound("japanMusic");
bikesound = 0;
}
onClipEvent (enterFrame) {
if (_root.music5 == true) {
if (_root.music5 == true) {
if (bikesound == 0) {
bikesound = 1;
}
}
} else if ((!_root.music5) == true) {
bikesound = 0;
music.stop();
}
if (bikesound == 1) {
bikesound = 2;
music.start(0, 1);
}
music.onSoundComplete = function () {
bikesound = 0;
};
}
onClipEvent (enterFrame) {
if (_root.music5 == false) {
bikesound = 0;
music.stop();
}
}
Instance of Symbol 666 MovieClip in Frame 4
onClipEvent (load) {
this._visible = false;
music = new Sound(this);
music.attachSound("spawnSound");
bikesound = 0;
}
onClipEvent (enterFrame) {
if (_root.sound3 == true) {
if (_root.sound3 == true) {
if (bikesound == 0) {
bikesound = 1;
}
}
} else if ((!_root.sound3) == true) {
bikesound = 0;
music.stop();
}
if (bikesound == 1) {
bikesound = 2;
music.start(0, 1);
}
music.onSoundComplete = function () {
_root.sound3 = false;
bikesound = 0;
};
}
onClipEvent (enterFrame) {
if (_root.sound3 == false) {
bikesound = 0;
music.stop();
}
}
Frame 25
levelUP = 1;
helmet = random(11) + 1;
tutorial = true;
passlevel = true;
sword = 2;
boots = 2;
pants = 2;
weaponDamage = 0;
body = 2;
helmet2 = 1;
shield = 2;
shield2 = 2;
shieldhand = 2;
gold = 250;
bootsP = 0;
bodyP = 0;
EXP = 0;
buyShoes = false;
buyBody = false;
buyHelmet = false;
armour = 5;
enemyHITPower = 0;
sound = false;
sound2 = false;
removeMovieClip(_root.heroAttach);
_quality = "LOW";
attachMovie("maskRoot", "maskRoot", 30, {_x:300, _y:200});
_root.setMask(maskRoot);
removeMovieClip(levelEnd);
_x = 0;
_y = 0;
levelFrame = 40;
stop();
swordE = 1;
bootsE = 33;
pantsE = 33;
weaponDamageE = 0;
bodyE = 2;
helmetE = 2;
shieldE = 2;
shield2E = 1;
shieldhandE = 1;
enemySpeed = 0;
hero.run = 10;
attackNum = 0;
attackNum2 = 0;
attackNum3 = 0;
attackNum4 = 0;
attackNum5 = 0;
canAttack = true;
jump2 = false;
runAttack = false;
standAttack = true;
jumpAttacked = false;
bows = false;
swords = false;
shieldDead = false;
sound1 = false;
sound = false;
sound2 = false;
sound3 = false;
music = false;
music2 = false;
music3 = false;
music4 = true;
music5 = false;
Frame 30
_x = 0;
_y = 0;
stop();
if (gold <= 0) {
gold = 0;
}
buyShoes = false;
buyBody = false;
buyHelmet = false;
buyShield = false;
buyWeapon = false;
buyHands = false;
buyPants = false;
_root.gotArrows = true;
_root.changeBow = false;
roundTime = 4000;
_root.attachMovie("attachBM", "attachBM", 50, {_x:300, _y:200});
_root.attachMovie("heroAttach", "heroAttach", 38, {_x:481.3, _y:275.1});
removeMovieClip(menu2);
removeMovieClip(levelEnd);
location.location = "Upgrade";
sound1 = false;
sound = false;
sound2 = false;
sound3 = false;
music = false;
music2 = false;
music3 = false;
music4 = true;
music5 = false;
shieldDead = false;
Instance of Symbol 1044 MovieClip "Items" in Frame 30
onClipEvent (enterFrame) {
sound3 = false;
_root.armour = ((((_root.helemtV + _root.bodyV) + _root.bootsV) + _root.shieldV) + _root.pantsV) + _root.handsV;
}
Instance of Symbol 652 MovieClip [upgradeAttach] "upup" in Frame 30
onClipEvent (enterFrame) {
if (_root.passlevel) {
this.play();
}
}
Instance of Symbol 1089 MovieClip in Frame 30
onClipEvent (load) {
if ((!_root.tutorial) == false) {
this.gotoAndStop(2);
}
}
Frame 37
stop();
_root.attachMovie("attachBM", "attachBM", 50, {_x:300, _y:200});
removeMovieClip(_root.heroAttach);
Instance of Symbol 1398 MovieClip in Frame 37
onClipEvent (load) {
this.gotoAndStop(_root.levelFrame);
}
Frame 40
swordE = 1;
bootsE = 31;
pantsE = 30;
weaponDamageE = 20;
bodyE = 1;
helmetE = 1;
shieldE = 1;
shield2E = 1;
shieldhandE = 1;
attackNum = 0;
attackNum2 = 0;
attackNum3 = 0;
attackNum4 = 0;
attackNum5 = 0;
gotArrows = true;
weaponDamage = 1;
HITMinusArmour = 0;
enemyHITPower = 45;
menu2.location.location = "Ireland";
_root.attachMovie("attachBM", "attachBM", 50, {_x:300, _y:200});
removeMovieClip(_root.heroAttach);
enemies = 1;
enemyHP = 5;
blooddummy._x = 0;
blooddummy._y = 0;
dep = 200;
gravity = 0.5;
hero.vx = 0;
hero.vy = 0;
hero.jumpPower = 20;
hero.grounded = false;
ScrollOb = hero;
spearfly = false;
spear = true;
hero.run = 7;
deadEnemyNum = 1000;
num = 0;
while (num <= enemies) {
this["enemy" + num].power = 20;
this["enemy" + num].HP = 5;
groundGNum = 1000;
groundGNum2 = -500;
this["enemy" + num].time = 500;
num++;
}
roundTime = 2100;
sound = true;
sound2 = false;
music = true;
music2 = false;
music3 = false;
music4 = false;
onEnterFrame = function () {
trace(roundTime);
roundTime = roundTime - 1;
if ((roundTime <= 0) and ((!heroDead) == true)) {
hero.HIT.gotoAndStop(2);
levelEnd.play();
removeMovieClip(menu2);
}
if ((!_root.HITMinusArmour) <= 1) {
_root.HITMinusArmour = _root.enemyHITPower - _root.armour;
}
if (_root.HITMinusArmour <= 1) {
_root.HITMinusArmour = 1;
}
trace(_root.HITMinusArmour);
if ((!pause) == true) {
num = 0;
while (num <= enemies) {
if (hero._x >= groundGNum) {
groundGNum = groundGNum + 500;
groundGNum2 = groundGNum2 + 500;
ground._x = ground._x + 500;
} else if (hero._x <= groundGNum2) {
groundGNum2 = groundGNum2 - 500;
groundGNum = groundGNum - 500;
ground._x = ground._x - 500;
}
if (EXP >= 1000) {
levelUP = levelUP + 1;
EXP = 0;
}
deadEnemyNum++;
this["enemy" + num];
if ((this["enemy" + num].AAA.jumpFrame == true) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num].air = true;
this["enemy" + num].gotoAndStop(3);
} else if (((this["enemy" + num].AAA.jumpFrame == false) and ground.hitTest(this["enemy" + num]._x, this["enemy" + num]._y + 5, true)) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num].air = false;
this["enemy" + num].power = 20;
this["enemy" + num].gotoAndStop(1);
}
if ((this["enemy" + num].AAA._currentframe == 52) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num].AAA.gotoAndPlay(random(500) + 1);
}
if (ground.hitTest(this["enemy" + num]._x - 6, this["enemy" + num]._y - 10, true) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num]._x = this["enemy" + num]._x + enemySpeed;
} else if (ground.hitTest(this["enemy" + num]._x + 6, this["enemy" + num]._y - 10, true) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num]._x = this["enemy" + num]._x - enemySpeed;
}
if ((this["enemy" + num]._currentframe == 3) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num].air = true;
this["enemy" + num]._y = this["enemy" + num]._y - this["enemy" + num].power;
if ((!this["enemy" + num].power) <= 0) {
this["enemy" + num].power = this["enemy" + num].power - 0.5;
if (this["enemy" + num]._xscale == 100) {
this["enemy" + num]._x = this["enemy" + num]._x - enemySpeed;
}
if (this["enemy" + num]._xscale == -100) {
this["enemy" + num]._x = this["enemy" + num]._x + enemySpeed;
}
}
if ((this["enemy" + num]._x >= (hero._x + 1)) and (this["enemy" + num]._xscale == -100)) {
this["enemy" + num].jumpy.gotoAndStop(10);
} else if ((this["enemy" + num]._x <= (hero._x - 1)) and (this["enemy" + num]._xscale == 100)) {
this["enemy" + num].jumpy.gotoAndStop(10);
}
}
if ((this["enemy" + num].hitTest(hero) and ((!_root.heroDead) == true)) and (this["enemy" + num].hero2.canAttack == true)) {
this["enemy" + num].hero2.canAttack = false;
this["enemy" + num].hero2.gotoAndPlay(_root.enemyRandomAttack);
}
if (this["enemy" + num].hero2.HIT.hitTest(hero.HIT)) {
this["enemy" + num].hero2.HIT.HITin.gotoAndPlay(2);
blink.play();
}
if (this["enemy" + num].jumpy.jumpHIT.HIT.hitTest(hero.HIT)) {
this["enemy" + num].jumpy.jumpHIT.HIT.HITin.gotoAndPlay(2);
blink.play();
}
if (this["enemy" + num].hero2.HIT2.hitTest(hero.HIT)) {
this["enemy" + num].hero2.HIT2.HITin.gotoAndPlay(2);
if (this["enemy" + num]._xscale == 100) {
hero._x = hero._x - 50;
blink.play();
}
if (this["enemy" + num]._xscale == -100) {
hero._x = hero._x + 50;
blink.play();
}
}
if (((hero._x > this["enemy" + num]._x) and ((!this["enemy" + num].dead) == true)) and ((!this["enemy" + num].air) == true)) {
this["enemy" + num]._xscale = -100;
} else if (((hero._x < this["enemy" + num]._x) and ((!this["enemy" + num].dead) == true)) and ((!this["enemy" + num].air) == true)) {
this["enemy" + num]._xscale = 100;
}
if (((((hero._x > (this["enemy" + num]._x + 70)) and ((!this["enemy" + num].dead) == true)) and this["enemy" + num].hitTest(this["enemy" + num].AAA)) and ((!this["enemy" + num].air) == true)) and ((!this["enemy" + num].hero2.kick) == true)) {
this["enemy" + num].legs.gotoAndStop(4);
this["enemy" + num]._x = this["enemy" + num]._x + enemySpeed;
} else if (((((hero._x < (this["enemy" + num]._x - 70)) and ((!this["enemy" + num].dead) == true)) and this["enemy" + num].hitTest(this["enemy" + num].AAA)) and ((!this["enemy" + num].air) == true)) and ((!this["enemy" + num].hero2.kick) == true)) {
this["enemy" + num]._x = this["enemy" + num]._x - enemySpeed;
this["enemy" + num].legs.gotoAndStop(4);
} else {
this["enemy" + num].legs.gotoAndStop(1);
}
this["enemy" + num]._y = this["enemy" + num]._y + 8;
while (ground.hitTest(this["enemy" + num]._x, this["enemy" + num]._y, true)) {
this["enemy" + num]._y = this["enemy" + num]._y - 1;
}
while (ground.hitTest(hero._root.SpearFall._x, hero._root.SpearFall._y, true)) {
_root.SpearFall._y = _root.SpearFall._y - 1;
}
if (hero.hero2.HIT.hitTest(this["enemy" + num].HIT) and ((!this["enemy" + num].dead) == true)) {
_root.attachMovie("bloodAttach", "bloodAttach", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.hero2.HIT.HITin.gotoAndPlay(2);
this["enemy" + num].HP = this["enemy" + num].HP - weaponDamage;
if (this["enemy" + num].HP <= 0) {
_root.attachMovie("heartAttach", "heartAttach", 38, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y});
gold = gold + (random(50) + 10);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
if ((sword == 5) or (sword == 8)) {
this["enemy" + num].die.gotoAndPlay(80);
} else {
this["enemy" + num].die.gotoAndPlay(1);
}
}
}
if (hero.hero2.HIT2.hitTest(this["enemy" + num].HIT) and ((!this["enemy" + num].dead) == true)) {
_root.attachMovie("bloodAttachKICK", "bloodAttachKICK", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.hero2.HIT2.HITin.gotoAndPlay(2);
this["enemy" + num].HP = this["enemy" + num].HP - (Math.ceil(weaponDamage) * 5);
if (this["enemy" + num].HP <= 0) {
_root.attachMovie("heartAttach", "heartAttach", 38, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y});
gold = gold + (random(50) + 10);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
this["enemy" + num].die.gotoAndPlay(60);
}
}
if (hero.hero2.HIT3.hitTest(this["enemy" + num].HIT) and ((!this["enemy" + num].dead) == true)) {
_root.attachMovie("bloodAttachKICK", "bloodAttachKICK", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.hero2.HIT3.HITin.gotoAndPlay(2);
this["enemy" + num].gotoAndStop(2);
this["enemy" + num].gotKicked.gotoAndPlay(37);
this["enemy" + num].HP = this["enemy" + num].HP - (Math.ceil(weaponDamage) / 3);
if (hero._xscale == 100) {
this["enemy" + num]._x = this["enemy" + num]._x - 60;
}
if (hero._xscale == -100) {
this["enemy" + num]._x = this["enemy" + num]._x + 60;
}
if (this["enemy" + num].HP <= 0) {
_root.attachMovie("heartAttach", "heartAttach", 38, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y});
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
this["enemy" + num].die.gotoAndPlay(60);
}
}
if (hero.jumpy.HIT.hitTest(this["enemy" + num].HIT) and ((!this["enemy" + num].dead) == true)) {
_root.attachMovie("bloodAttachKICK", "bloodAttachKICK", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.jumpy.HIT.HITin.gotoAndStop(2);
this["enemy" + num].HP = this["enemy" + num].HP - (weaponDamage * 3);
if (this["enemy" + num].HP <= 0) {
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
this["enemy" + num].die.gotoAndPlay(100);
}
}
if (hero.sit.HIT.hitTest(this["enemy" + num].legs) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num].gotoAndStop(2);
_root.attachMovie("bloodAttachKICK", "bloodAttachKICK", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.sit.HIT.HITin.gotoAndStop(2);
this["enemy" + num].HP = this["enemy" + num].HP - (Math.ceil(weaponDamage) / 3);
if (hero._xscale == 100) {
this["enemy" + num]._x = this["enemy" + num]._x - 50;
}
if (hero._xscale == -100) {
this["enemy" + num]._x = this["enemy" + num]._x + 50;
}
if (this["enemy" + num].HP <= 0) {
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
this["enemy" + num].die.gotoAndPlay(1);
}
}
if (hero.sit.HIT2.hitTest(this["enemy" + num].HIT) and ((!this["enemy" + num].dead) == true)) {
_root.attachMovie("bloodAttach", "bloodAttach", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.sit.HIT2.HITin.gotoAndStop(2);
this["enemy" + num].HP = this["enemy" + num].HP - (weaponDamage * 2);
if (this["enemy" + num].HP <= 0) {
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
this["enemy" + num].die.gotoAndPlay(80);
}
}
if (this["enemy" + num].hitTest(_root.bullet0) and ((!this["enemy" + num].dead) == true)) {
removeMovieClip(_root.bullet0);
this["enemy" + num].gotoAndStop(4);
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
_root.attachMovie("bloodAttach", "bloodAttach", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
_root.attachMovie("deadEnemy", "deadEnemy", deadEnemyNum, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
if (spearcankill == true) {
this["enemy" + num].die.gotoAndPlay(20);
}
if (spearcankill == false) {
this["enemy" + num].die.gotoAndPlay(40);
}
this["enemy" + num].dead = true;
}
if (this["enemy" + num].HIT.hitTest(_root.bullet1) and ((!this["enemy" + num].dead) == true)) {
removeMovieClip(_root.bullet1);
this["enemy" + num].gotoAndStop(4);
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
_root.attachMovie("bloodAttach", "bloodAttach", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
_root.attachMovie("deadEnemy", "deadEnemy", deadEnemyNum, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
if (spearcankill == true) {
this["enemy" + num].die.gotoAndPlay(20);
}
if (spearcankill == false) {
this["enemy" + num].die.gotoAndPlay(40);
}
this["enemy" + num].dead = true;
}
if ((((hero.hero2.HIT.hitTest(this["enemy" + num].hero2) or hero.hero2.HIT2.hitTest(this["enemy" + num].hero2)) or hero.hero2.HIT3.hitTest(this["enemy" + num].hero2)) or hero.jumpy.HIT.hitTest(this["enemy" + num].hero2)) or (((hero.sit.HIT2.hitTest(this["enemy" + num].hero2) and (this["enemy" + num].HIT._currentframe > 1)) and (_root.blink._currentframe == 1)) and ((!shieldDead) == true))) {
_root.attachMovie("bloodAttach0Defence", "bloodAttach0Defence", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.hero2.HIT.HITin.gotoAndPlay(2);
hero.hero2.HIT2.HITin.gotoAndPlay(2);
hero.hero2.HIT3.HITin.gotoAndPlay(2);
hero.jumpy.HIT.HITin.gotoAndPlay(2);
if (this["enemy" + num]._xscale == 100) {
this["enemy" + num]._x = this["enemy" + num]._x + 30;
}
if (this["enemy" + num]._xscale == -100) {
this["enemy" + num]._x = this["enemy" + num]._x - 30;
}
}
shieldDead == false;
if ((((((_root.hero.HIT._currentframe == 2) and (_root.blink._currentframe == 1)) and ((!shieldDead) == true)) and this["enemy" + num].hero2.HIT.hitTest(hero)) or this["enemy" + num].hero2.HIT2.hitTest(hero)) or this["enemy" + num].jumpy.jumpHIT.HIT.hitTest(hero)) {
_root.attachMovie("bloodAttach0Defence2", "bloodAttach0Defence2", 50, {_x:hero._x, _y:hero._y - 50});
this["enemy" + num].hero2.HIT.HITin.gotoAndPlay(2);
this["enemy" + num].hero2.HIT2.HITin.gotoAndPlay(2);
this["enemy" + num].jumpy.jumpHIT.HIT.HITin.gotoAndPlay(2);
if (this["enemy" + num]._xscale == -100) {
hero._x = hero._x + 30;
}
if (this["enemy" + num]._xscale == 100) {
hero._x = hero._x - 30;
}
}
if ((this["enemy" + num].live == true) and (this["enemy" + num].dead == true)) {
this["enemy" + num].gotoAndStop(7);
this["enemy" + num].time = this["enemy" + num].time - 1;
if (this["enemy" + num].time <= 0) {
this["enemy" + num].time = random(400) + 20;
this["enemy" + num].HP = _root.enemyHP;
this["enemy" + num].gotoAndStop(1);
this["enemy" + num].live = false;
this["enemy" + num].dead = false;
this["enemy" + num]._x = menu._x - livePosition;
this["enemy" + num]._y = hero._y;
}
}
if (this["enemy" + num]._x <= (menu._x - 660)) {
this["enemy" + num]._y = hero._y;
this["enemy" + num]._x = menu._x - livePosition;
} else if (this["enemy" + num]._x >= (menu._x + 660)) {
this["enemy" + num]._y = hero._y;
this["enemy" + num]._x = menu._x - livePosition;
}
if (this["enemy" + num].die.spearReSpawn == true) {
this["enemy" + num].die.spearReSpawn = false;
_root.attachMovie("SpearFall", "SpearFall", 100, {_x:this["enemy" + num]._x - 50, _y:this["enemy" + num]._y});
}
if (_root.groundHIT1.hitTest(_root.bullet0) and (_root.spearcankill == true)) {
_root.attachMovie("SpearFall", "SpearFall", 100, {_x:_root.bullet0._x, _y:_root.bullet0._y - 8});
removeMovieClip(_root.bullet0);
}
if (_root.groundHIT1.hitTest(_root.bullet1) and (_root.spearcankill == true)) {
_root.attachMovie("SpearFall", "SpearFall", 100, {_x:_root.bullet1._x, _y:_root.bullet1._y - 8});
removeMovieClip(_root.bullet1);
}
if (_root.groundHIT2.hitTest(_root.bullet0) and (_root.spearcankill == true)) {
_root.attachMovie("SpearFall", "SpearFall", 100, {_x:_root.bullet0._x, _y:_root.bullet0._y - 8});
removeMovieClip(_root.bullet0);
}
if (_root.groundHIT2.hitTest(_root.bullet1) and (_root.spearcankill == true)) {
_root.attachMovie("SpearFall", "SpearFall", 100, {_x:_root.bullet1._x, _y:_root.bullet1._y - 8});
removeMovieClip(_root.bullet1);
}
num++;
}
_x = (_x - Math.round((_x - (300 - ScrollOb._x)) / 10));
_y = (_y - Math.round((_y - (300 - ScrollOb._y)) / 10));
ScrollOb = hero;
menu._x = (-_x) + 300;
menu._y = (-_y) + 200;
wind._x = (-_x) + 300;
wind._y = (-_y) + 200;
snow._x = (-_x) + 43.4;
snow._y = (-_y) - 15.2;
menu2._x = (-_x) + 300;
menu2._y = (-_y) + 200;
maskRoot._x = (-_x) + 300;
maskRoot._y = (-_y) + 200;
bambook._x = (-_x) + 300;
groundHIT1._x = (-_x) + 1200;
groundHIT2._x = (-_x) - 600;
levelEnd._x = (-_x) + 300;
levelEnd._y = (-_y) + 200;
attachBM._x = (-_x) + 300;
attachBM._y = (-_y) + 200;
hero.gotoAndStop(frame);
jump = Key.isDown(38);
hero.vy = hero.vy + gravity;
hero._x = hero._x + hero.vx;
hero._y = hero._y + hero.vy;
if ((!pause) == true) {
if (jump) {
jumpnum = jumpnum - 1;
if (hero.grounded) {
hero.vy = -hero.jumpPower;
frame = "jump";
}
}
}
if (left) {
hero.vx = hero.vx - hero.spd;
hero._xscale = -100;
frame = "run";
} else if (right) {
hero.vx = hero.vx + hero.spd;
hero._xscale = 100;
frame = "run";
} else if (hero.grounded) {
hero.vx = hero.vx * 0.9;
frame = "stand";
} else {
frame = "jump";
}
if ((!pause) == true) {
if (Math.abs(hero.vx) > hero.maxSpd) {
hero.vx = hero.vx * 0.9;
}
}
hero.grounded = false;
if (ground.hitTest(hero._x, hero._y, true)) {
hero.vy = -Math.abs(hero.vy * 0.4);
hero.grounded = true;
frame = "stand";
while (ground.hitTest(hero._x, hero._y, true)) {
hero._y = hero._y - 0.2;
}
}
if (ground.hitTest(hero._x - (hero._width / 2), hero._y - (hero._height / 2), true)) {
hero.vx = Math.abs(hero.vx * 0.4);
while (ground.hitTest(hero._x - (hero._width / 2), hero._y - (hero._height / 2), true)) {
hero._x = hero._x + 0.2;
}
} else if (ground.hitTest(hero._x + (hero._width / 2), hero._y - (hero._height / 2), true)) {
hero.vx = -Math.abs(hero.vx * 0.4);
while (ground.hitTest(hero._x + (hero._width / 2), hero._y - (hero._height / 2), true)) {
hero._x = hero._x - 0.2;
}
}
}
};
stop();
Instance of Symbol 1481 MovieClip "menu" in Frame 40
onClipEvent (load) {
this.gotoAndStop(1);
}
Instance of Symbol 1494 MovieClip in Frame 40
onClipEvent (enterFrame) {
if (_root.groundHIT2.hitTest(this.HIT)) {
this._x = _root.groundHIT1._x - 200;
this.gotoAndStop(random(2) + 1);
} else if (_root.groundHIT1.hitTest(this.HIT)) {
this._x = _root.groundHIT2._x + 200;
this.gotoAndStop(random(2) + 1);
}
trace(this._x);
}
Instance of Symbol 1500 MovieClip "hero" in Frame 40
onClipEvent (enterFrame) {
if (((Key.isDown(40) and Key.isDown(37)) and Key.isDown(39)) and ((!_root.heroDead) == true)) {
this._x = this._x - run;
}
if (_root.heroDead == true) {
this.state = 4;
}
if ((Key.isDown(40) and ((!air) == true)) and ((!_root.heroDead) == true)) {
if (this._xscale == 100) {
this._x = this._x - run3;
if ((!run3) <= 0) {
run3--;
}
}
if (this._xscale == -100) {
this._x = this._x + run3;
if ((!run3) <= 0) {
run3--;
}
}
state = 5;
if (Key.isDown(37) and ((!_root.heroDead) == true)) {
_x = (_x + run);
}
if (Key.isDown(39) and ((!_root.heroDead) == true)) {
_x = (_x - run);
}
}
if (((state == 5) and (_root.spearflyCheker == true)) and ((!_root.heroDead) == true)) {
_root.spearflyCheker = false;
_root.spearfly = false;
_root.sword = 11;
}
if (((state == 5) and (_root.arrowflyCheker == true)) and ((!_root.heroDead) == true)) {
_root.arrowflyCheker = false;
_root.arrowfly = false;
}
if (((Key.isDown(38) and (_root.jump2 == true)) and ((!spearfly) == true)) and ((!_root.heroDead) == true)) {
_root.hero.vy = -_root.hero.jumpPower;
_root.jumpnum = 100;
}
if (((air == true) and (_root.spearflyCheker == true)) and ((!_root.heroDead) == true)) {
_root.spearflyCheker = false;
_root.spearfly = false;
_root.sword = 11;
}
if (((air == true) and (_root.arrowflyCheker == true)) and ((!_root.heroDead) == true)) {
_root.arrowflyCheker = false;
_root.arrowfly = false;
}
if (((!Key.isDown(38)) and (_root.jumpnum <= 2)) and ((!_root.heroDead) == true)) {
_root.jump2 = true;
} else {
_root.jump2 = false;
}
if ((!Key.isDown(40)) and ((!_root.heroDead) == true)) {
run3 = run;
}
if (Key.isDown(37) and ((!_root.heroDead) == true)) {
run2 = run;
_x = (_x - run);
this._xscale = 100;
this.legs.play();
}
if (((!(Key.isDown(37) or Key.isDown(39))) and (!Key.isDown(40))) and ((!_root.heroDead) == true)) {
this.legs.gotoAndStop(1);
if (this._xscale == 100) {
this._x = this._x - run2;
if ((!run2) <= 0) {
run2--;
}
}
if (this._xscale == -100) {
this._x = this._x + run2;
if ((!run2) <= 0) {
run2--;
}
}
}
if ((Key.isDown(37) && (Key.isDown(39))) and ((!_root.heroDead) == true)) {
this._x = this._x + run;
this._xscale = -100;
this.legs.play();
}
if (((air == true) && (Key.isDown(37))) and ((!_root.heroDead) == true)) {
state = 3;
}
if (Key.isDown(39) and ((!_root.heroDead) == true)) {
run2 = run;
_x = (_x + run);
this._xscale = -100;
this.legs.play();
}
if (((air == true) && (Key.isDown(39))) and ((!_root.heroDead) == true)) {
state = 3;
}
gotoAndStop(state);
if ((Key.isDown(65) && (air == true)) and ((!_root.heroDead) == true)) {
_root.hero.jumping.gotoAndPlay(6);
}
if (((Key.isDown(65) and (Key.isDown(37) or Key.isDown(39))) and ((!air) == true)) and ((!_root.heroDead) == true)) {
_root.standAttack = false;
_root.runAttack = true;
}
this._y = this._y + 8;
_y = (_y + gravity);
if (air == true) {
state = 3;
}
if (_root.ground.hitTest(_x, _y, true)) {
air = false;
_root.jumpnum = 2;
} else {
air = true;
state = 3;
}
if (air == false) {
state = 1;
}
if ((_root.arrowfly == true) and ((!_root.gotArrows) == false)) {
_root.menu2.arrows.gotoAndStop(_root.menu2.arrows._currentframe + 1);
_root.spearT = false;
totalbullet++;
if (totalbullet > 1) {
totalbullet = 0;
}
if (_root.hero._xscale == -100) {
_root.attachMovie("bullet", "bullet" + totalbullet, totalbullet, {_x:_x, _y:_y, _rotation:this._rotation});
} else if (_root.hero._xscale == 100) {
_root.attachMovie("bullet2", "bullet" + totalbullet, totalbullet, {_x:_x, _y:_y, _rotation:this._rotation});
}
}
if (_root.spearfly == true) {
_root.spearT = true;
totalbullet++;
if (totalbullet > 1) {
totalbullet = 0;
}
if (_root.hero._xscale == -100) {
_root.attachMovie("bullet", "bullet" + totalbullet, totalbullet, {_x:_x, _y:_y, _rotation:this._rotation});
} else if (_root.hero._xscale == 100) {
_root.attachMovie("bullet2", "bullet" + totalbullet, totalbullet, {_x:_x, _y:_y, _rotation:this._rotation});
}
}
}
onClipEvent (load) {
totalbullet = 0;
}
Instance of Symbol 1501 MovieClip "steam" in Frame 40
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 1502 MovieClip "blink" in Frame 40
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 616 MovieClip "groundHIT1" in Frame 40
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 616 MovieClip "groundHIT2" in Frame 40
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 1505 MovieClip "swordOrBow" in Frame 40
onClipEvent (enterFrame) {
if (_root.swords == true) {
this.gotoAndStop(1);
}
if (_root.bows == true) {
this.gotoAndStop(2);
}
}
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 1547 MovieClip "menu2" in Frame 40
onClipEvent (enterFrame) {
this.swapDepths((this._y * 100) + this._x);
}
Instance of Symbol 1549 MovieClip "levelEnd" in Frame 40
onClipEvent (enterFrame) {
this.swapDepths((this._y * 1000) + this._x);
}
Frame 41
levelFrame = 42;
gotoAndStop (30);
_x = 0;
_y = 0;
Frame 42
swordE = 2;
bootsE = 32;
pantsE = 30;
weaponDamageE = 20;
bodyE = 2;
helmetE = 2;
shieldE = 2;
shield2E = 1;
shieldhandE = 1;
attackNum = 0;
attackNum2 = 0;
attackNum3 = 0;
attackNum4 = 0;
attackNum5 = 0;
gotArrows = true;
weaponDamage = 1;
HITMinusArmour = 0;
enemyHITPower = 45;
menu2.location.location = "Scotland";
_root.attachMovie("attachBM", "attachBM", 50, {_x:300, _y:200});
removeMovieClip(_root.heroAttach);
enemies = 1;
enemyHP = 5;
blooddummy._x = 0;
blooddummy._y = 0;
dep = 200;
gravity = 0.5;
hero.vx = 0;
hero.vy = 0;
hero.jumpPower = 20;
hero.grounded = false;
ScrollOb = hero;
spearfly = false;
spear = true;
hero.run = 7;
deadEnemyNum = 1000;
num = 0;
while (num <= enemies) {
this["enemy" + num].power = 20;
this["enemy" + num].HP = 5;
groundGNum = 1000;
groundGNum2 = -500;
this["enemy" + num].time = 500;
num++;
}
roundTime = 2300;
music = true;
music2 = false;
music3 = false;
music4 = false;
onEnterFrame = function () {
trace(roundTime);
roundTime = roundTime - 1;
if ((roundTime <= 0) and ((!heroDead) == true)) {
hero.HIT.gotoAndStop(2);
levelEnd.play();
removeMovieClip(menu2);
}
if ((!_root.HITMinusArmour) <= 1) {
_root.HITMinusArmour = _root.enemyHITPower - _root.armour;
}
if (_root.HITMinusArmour <= 1) {
_root.HITMinusArmour = 1;
}
trace(_root.HITMinusArmour);
if ((!pause) == true) {
num = 0;
while (num <= enemies) {
if (hero._x >= groundGNum) {
groundGNum = groundGNum + 500;
groundGNum2 = groundGNum2 + 500;
ground._x = ground._x + 500;
} else if (hero._x <= groundGNum2) {
groundGNum2 = groundGNum2 - 500;
groundGNum = groundGNum - 500;
ground._x = ground._x - 500;
}
if (EXP >= 1000) {
levelUP = levelUP + 1;
EXP = 0;
}
deadEnemyNum++;
this["enemy" + num];
if ((this["enemy" + num].AAA.jumpFrame == true) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num].air = true;
this["enemy" + num].gotoAndStop(3);
} else if (((this["enemy" + num].AAA.jumpFrame == false) and ground.hitTest(this["enemy" + num]._x, this["enemy" + num]._y + 5, true)) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num].air = false;
this["enemy" + num].power = 20;
this["enemy" + num].gotoAndStop(1);
}
if ((this["enemy" + num].AAA._currentframe == 52) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num].AAA.gotoAndPlay(random(500) + 1);
}
if (ground.hitTest(this["enemy" + num]._x - 6, this["enemy" + num]._y - 10, true) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num]._x = this["enemy" + num]._x + enemySpeed;
} else if (ground.hitTest(this["enemy" + num]._x + 6, this["enemy" + num]._y - 10, true) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num]._x = this["enemy" + num]._x - enemySpeed;
}
if ((this["enemy" + num]._currentframe == 3) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num].air = true;
this["enemy" + num]._y = this["enemy" + num]._y - this["enemy" + num].power;
if ((!this["enemy" + num].power) <= 0) {
this["enemy" + num].power = this["enemy" + num].power - 0.5;
if (this["enemy" + num]._xscale == 100) {
this["enemy" + num]._x = this["enemy" + num]._x - enemySpeed;
}
if (this["enemy" + num]._xscale == -100) {
this["enemy" + num]._x = this["enemy" + num]._x + enemySpeed;
}
}
if ((this["enemy" + num]._x >= (hero._x + 1)) and (this["enemy" + num]._xscale == -100)) {
this["enemy" + num].jumpy.gotoAndStop(10);
} else if ((this["enemy" + num]._x <= (hero._x - 1)) and (this["enemy" + num]._xscale == 100)) {
this["enemy" + num].jumpy.gotoAndStop(10);
}
}
if ((this["enemy" + num].hitTest(hero) and ((!_root.heroDead) == true)) and (this["enemy" + num].hero2.canAttack == true)) {
this["enemy" + num].hero2.canAttack = false;
this["enemy" + num].hero2.gotoAndPlay(_root.enemyRandomAttack);
}
if (this["enemy" + num].hero2.HIT.hitTest(hero.HIT)) {
this["enemy" + num].hero2.HIT.HITin.gotoAndPlay(2);
blink.play();
}
if (this["enemy" + num].jumpy.jumpHIT.HIT.hitTest(hero.HIT)) {
this["enemy" + num].jumpy.jumpHIT.HIT.HITin.gotoAndPlay(2);
blink.play();
}
if (this["enemy" + num].hero2.HIT2.hitTest(hero.HIT)) {
this["enemy" + num].hero2.HIT2.HITin.gotoAndPlay(2);
if (this["enemy" + num]._xscale == 100) {
hero._x = hero._x - 50;
blink.play();
}
if (this["enemy" + num]._xscale == -100) {
hero._x = hero._x + 50;
blink.play();
}
}
if (((hero._x > this["enemy" + num]._x) and ((!this["enemy" + num].dead) == true)) and ((!this["enemy" + num].air) == true)) {
this["enemy" + num]._xscale = -100;
} else if (((hero._x < this["enemy" + num]._x) and ((!this["enemy" + num].dead) == true)) and ((!this["enemy" + num].air) == true)) {
this["enemy" + num]._xscale = 100;
}
if (((((hero._x > (this["enemy" + num]._x + 70)) and ((!this["enemy" + num].dead) == true)) and this["enemy" + num].hitTest(this["enemy" + num].AAA)) and ((!this["enemy" + num].air) == true)) and ((!this["enemy" + num].hero2.kick) == true)) {
this["enemy" + num].legs.gotoAndStop(4);
this["enemy" + num]._x = this["enemy" + num]._x + enemySpeed;
} else if (((((hero._x < (this["enemy" + num]._x - 70)) and ((!this["enemy" + num].dead) == true)) and this["enemy" + num].hitTest(this["enemy" + num].AAA)) and ((!this["enemy" + num].air) == true)) and ((!this["enemy" + num].hero2.kick) == true)) {
this["enemy" + num]._x = this["enemy" + num]._x - enemySpeed;
this["enemy" + num].legs.gotoAndStop(4);
} else {
this["enemy" + num].legs.gotoAndStop(1);
}
this["enemy" + num]._y = this["enemy" + num]._y + 8;
while (ground.hitTest(this["enemy" + num]._x, this["enemy" + num]._y, true)) {
this["enemy" + num]._y = this["enemy" + num]._y - 1;
}
while (ground.hitTest(hero._root.SpearFall._x, hero._root.SpearFall._y, true)) {
_root.SpearFall._y = _root.SpearFall._y - 1;
}
if (hero.hero2.HIT.hitTest(this["enemy" + num].HIT) and ((!this["enemy" + num].dead) == true)) {
_root.attachMovie("bloodAttach", "bloodAttach", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.hero2.HIT.HITin.gotoAndPlay(2);
this["enemy" + num].HP = this["enemy" + num].HP - weaponDamage;
if (this["enemy" + num].HP <= 0) {
_root.attachMovie("heartAttach", "heartAttach", 38, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y});
gold = gold + (random(50) + 10);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
if ((sword == 5) or (sword == 8)) {
this["enemy" + num].die.gotoAndPlay(80);
} else {
this["enemy" + num].die.gotoAndPlay(1);
}
}
}
if (hero.hero2.HIT2.hitTest(this["enemy" + num].HIT) and ((!this["enemy" + num].dead) == true)) {
_root.attachMovie("bloodAttachKICK", "bloodAttachKICK", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.hero2.HIT2.HITin.gotoAndPlay(2);
this["enemy" + num].HP = this["enemy" + num].HP - (Math.ceil(weaponDamage) * 5);
if (this["enemy" + num].HP <= 0) {
_root.attachMovie("heartAttach", "heartAttach", 38, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y});
gold = gold + (random(50) + 10);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
this["enemy" + num].die.gotoAndPlay(60);
}
}
if (hero.hero2.HIT3.hitTest(this["enemy" + num].HIT) and ((!this["enemy" + num].dead) == true)) {
_root.attachMovie("bloodAttachKICK", "bloodAttachKICK", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.hero2.HIT3.HITin.gotoAndPlay(2);
this["enemy" + num].gotoAndStop(2);
this["enemy" + num].gotKicked.gotoAndPlay(37);
this["enemy" + num].HP = this["enemy" + num].HP - (Math.ceil(weaponDamage) / 3);
if (hero._xscale == 100) {
this["enemy" + num]._x = this["enemy" + num]._x - 60;
}
if (hero._xscale == -100) {
this["enemy" + num]._x = this["enemy" + num]._x + 60;
}
if (this["enemy" + num].HP <= 0) {
_root.attachMovie("heartAttach", "heartAttach", 38, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y});
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
this["enemy" + num].die.gotoAndPlay(60);
}
}
if (hero.jumpy.HIT.hitTest(this["enemy" + num].HIT) and ((!this["enemy" + num].dead) == true)) {
_root.attachMovie("bloodAttachKICK", "bloodAttachKICK", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.jumpy.HIT.HITin.gotoAndStop(2);
this["enemy" + num].HP = this["enemy" + num].HP - (weaponDamage * 3);
if (this["enemy" + num].HP <= 0) {
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
this["enemy" + num].die.gotoAndPlay(100);
}
}
if (hero.sit.HIT.hitTest(this["enemy" + num].legs) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num].gotoAndStop(2);
_root.attachMovie("bloodAttachKICK", "bloodAttachKICK", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.sit.HIT.HITin.gotoAndStop(2);
this["enemy" + num].HP = this["enemy" + num].HP - (Math.ceil(weaponDamage) / 3);
if (hero._xscale == 100) {
this["enemy" + num]._x = this["enemy" + num]._x - 50;
}
if (hero._xscale == -100) {
this["enemy" + num]._x = this["enemy" + num]._x + 50;
}
if (this["enemy" + num].HP <= 0) {
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
this["enemy" + num].die.gotoAndPlay(1);
}
}
if (hero.sit.HIT2.hitTest(this["enemy" + num].HIT) and ((!this["enemy" + num].dead) == true)) {
_root.attachMovie("bloodAttach", "bloodAttach", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.sit.HIT2.HITin.gotoAndStop(2);
this["enemy" + num].HP = this["enemy" + num].HP - (weaponDamage * 2);
if (this["enemy" + num].HP <= 0) {
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
this["enemy" + num].die.gotoAndPlay(80);
}
}
if (this["enemy" + num].hitTest(_root.bullet0) and ((!this["enemy" + num].dead) == true)) {
removeMovieClip(_root.bullet0);
this["enemy" + num].gotoAndStop(4);
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
_root.attachMovie("bloodAttach", "bloodAttach", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
_root.attachMovie("deadEnemy", "deadEnemy", deadEnemyNum, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
if (spearcankill == true) {
this["enemy" + num].die.gotoAndPlay(20);
}
if (spearcankill == false) {
this["enemy" + num].die.gotoAndPlay(40);
}
this["enemy" + num].dead = true;
}
if (this["enemy" + num].HIT.hitTest(_root.bullet1) and ((!this["enemy" + num].dead) == true)) {
removeMovieClip(_root.bullet1);
this["enemy" + num].gotoAndStop(4);
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
_root.attachMovie("bloodAttach", "bloodAttach", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
_root.attachMovie("deadEnemy", "deadEnemy", deadEnemyNum, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
if (spearcankill == true) {
this["enemy" + num].die.gotoAndPlay(20);
}
if (spearcankill == false) {
this["enemy" + num].die.gotoAndPlay(40);
}
this["enemy" + num].dead = true;
}
if ((((hero.hero2.HIT.hitTest(this["enemy" + num].hero2) or hero.hero2.HIT2.hitTest(this["enemy" + num].hero2)) or hero.hero2.HIT3.hitTest(this["enemy" + num].hero2)) or hero.jumpy.HIT.hitTest(this["enemy" + num].hero2)) or (((hero.sit.HIT2.hitTest(this["enemy" + num].hero2) and (this["enemy" + num].HIT._currentframe > 1)) and (_root.blink._currentframe == 1)) and ((!shieldDead) == true))) {
_root.attachMovie("bloodAttach0Defence", "bloodAttach0Defence", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.hero2.HIT.HITin.gotoAndPlay(2);
hero.hero2.HIT2.HITin.gotoAndPlay(2);
hero.hero2.HIT3.HITin.gotoAndPlay(2);
hero.jumpy.HIT.HITin.gotoAndPlay(2);
if (this["enemy" + num]._xscale == 100) {
this["enemy" + num]._x = this["enemy" + num]._x + 30;
}
if (this["enemy" + num]._xscale == -100) {
this["enemy" + num]._x = this["enemy" + num]._x - 30;
}
}
shieldDead == false;
if ((((((_root.hero.HIT._currentframe == 2) and (_root.blink._currentframe == 1)) and ((!shieldDead) == true)) and this["enemy" + num].hero2.HIT.hitTest(hero)) or this["enemy" + num].hero2.HIT2.hitTest(hero)) or this["enemy" + num].jumpy.jumpHIT.HIT.hitTest(hero)) {
_root.attachMovie("bloodAttach0Defence2", "bloodAttach0Defence2", 50, {_x:hero._x, _y:hero._y - 50});
this["enemy" + num].hero2.HIT.HITin.gotoAndPlay(2);
this["enemy" + num].hero2.HIT2.HITin.gotoAndPlay(2);
this["enemy" + num].jumpy.jumpHIT.HIT.HITin.gotoAndPlay(2);
if (this["enemy" + num]._xscale == -100) {
hero._x = hero._x + 30;
}
if (this["enemy" + num]._xscale == 100) {
hero._x = hero._x - 30;
}
}
if ((this["enemy" + num].live == true) and (this["enemy" + num].dead == true)) {
this["enemy" + num].gotoAndStop(7);
this["enemy" + num].time = this["enemy" + num].time - 1;
if (this["enemy" + num].time <= 0) {
this["enemy" + num].time = random(400) + 20;
this["enemy" + num].HP = _root.enemyHP;
this["enemy" + num].gotoAndStop(1);
this["enemy" + num].live = false;
this["enemy" + num].dead = false;
this["enemy" + num]._x = menu._x - livePosition;
this["enemy" + num]._y = hero._y;
}
}
if (this["enemy" + num]._x <= (menu._x - 660)) {
this["enemy" + num]._y = hero._y;
this["enemy" + num]._x = menu._x - livePosition;
} else if (this["enemy" + num]._x >= (menu._x + 660)) {
this["enemy" + num]._y = hero._y;
this["enemy" + num]._x = menu._x - livePosition;
}
if (this["enemy" + num].die.spearReSpawn == true) {
this["enemy" + num].die.spearReSpawn = false;
_root.attachMovie("SpearFall", "SpearFall", 100, {_x:this["enemy" + num]._x - 50, _y:this["enemy" + num]._y});
}
if (_root.groundHIT1.hitTest(_root.bullet0) and (_root.spearcankill == true)) {
_root.attachMovie("SpearFall", "SpearFall", 100, {_x:_root.bullet0._x, _y:_root.bullet0._y - 8});
removeMovieClip(_root.bullet0);
}
if (_root.groundHIT1.hitTest(_root.bullet1) and (_root.spearcankill == true)) {
_root.attachMovie("SpearFall", "SpearFall", 100, {_x:_root.bullet1._x, _y:_root.bullet1._y - 8});
removeMovieClip(_root.bullet1);
}
if (_root.groundHIT2.hitTest(_root.bullet0) and (_root.spearcankill == true)) {
_root.attachMovie("SpearFall", "SpearFall", 100, {_x:_root.bullet0._x, _y:_root.bullet0._y - 8});
removeMovieClip(_root.bullet0);
}
if (_root.groundHIT2.hitTest(_root.bullet1) and (_root.spearcankill == true)) {
_root.attachMovie("SpearFall", "SpearFall", 100, {_x:_root.bullet1._x, _y:_root.bullet1._y - 8});
removeMovieClip(_root.bullet1);
}
num++;
}
_x = (_x - Math.round((_x - (300 - ScrollOb._x)) / 10));
_y = (_y - Math.round((_y - (300 - ScrollOb._y)) / 10));
ScrollOb = hero;
menu._x = (-_x) + 300;
menu._y = (-_y) + 200;
wind._x = (-_x) + 300;
wind._y = (-_y) + 200;
snow._x = (-_x) + 43.4;
snow._y = (-_y) - 15.2;
menu2._x = (-_x) + 300;
menu2._y = (-_y) + 200;
maskRoot._x = (-_x) + 300;
maskRoot._y = (-_y) + 200;
bambook._x = (-_x) + 300;
groundHIT1._x = (-_x) + 1200;
groundHIT2._x = (-_x) - 600;
levelEnd._x = (-_x) + 300;
levelEnd._y = (-_y) + 200;
attachBM._x = (-_x) + 300;
attachBM._y = (-_y) + 200;
hero.gotoAndStop(frame);
jump = Key.isDown(38);
hero.vy = hero.vy + gravity;
hero._x = hero._x + hero.vx;
hero._y = hero._y + hero.vy;
if ((!pause) == true) {
if (jump) {
jumpnum = jumpnum - 1;
if (hero.grounded) {
hero.vy = -hero.jumpPower;
frame = "jump";
}
}
}
if (left) {
hero.vx = hero.vx - hero.spd;
hero._xscale = -100;
frame = "run";
} else if (right) {
hero.vx = hero.vx + hero.spd;
hero._xscale = 100;
frame = "run";
} else if (hero.grounded) {
hero.vx = hero.vx * 0.9;
frame = "stand";
} else {
frame = "jump";
}
if ((!pause) == true) {
if (Math.abs(hero.vx) > hero.maxSpd) {
hero.vx = hero.vx * 0.9;
}
}
hero.grounded = false;
if (ground.hitTest(hero._x, hero._y, true)) {
hero.vy = -Math.abs(hero.vy * 0.4);
hero.grounded = true;
frame = "stand";
while (ground.hitTest(hero._x, hero._y, true)) {
hero._y = hero._y - 0.2;
}
}
if (ground.hitTest(hero._x - (hero._width / 2), hero._y - (hero._height / 2), true)) {
hero.vx = Math.abs(hero.vx * 0.4);
while (ground.hitTest(hero._x - (hero._width / 2), hero._y - (hero._height / 2), true)) {
hero._x = hero._x + 0.2;
}
} else if (ground.hitTest(hero._x + (hero._width / 2), hero._y - (hero._height / 2), true)) {
hero.vx = -Math.abs(hero.vx * 0.4);
while (ground.hitTest(hero._x + (hero._width / 2), hero._y - (hero._height / 2), true)) {
hero._x = hero._x - 0.2;
}
}
}
};
stop();
Instance of Symbol 1481 MovieClip "menu" in Frame 42
onClipEvent (load) {
this.gotoAndStop(2);
}
Instance of Symbol 1494 MovieClip in Frame 42
onClipEvent (enterFrame) {
if (_root.groundHIT2.hitTest(this.HIT)) {
this._x = _root.groundHIT1._x - 200;
this.gotoAndStop(random(2) + 1);
} else if (_root.groundHIT1.hitTest(this.HIT)) {
this._x = _root.groundHIT2._x + 200;
this.gotoAndStop(random(2) + 1);
}
trace(this._x);
}
Instance of Symbol 1500 MovieClip "hero" in Frame 42
onClipEvent (enterFrame) {
if (((Key.isDown(40) and Key.isDown(37)) and Key.isDown(39)) and ((!_root.heroDead) == true)) {
this._x = this._x - run;
}
if (_root.heroDead == true) {
this.state = 4;
}
if ((Key.isDown(40) and ((!air) == true)) and ((!_root.heroDead) == true)) {
if (this._xscale == 100) {
this._x = this._x - run3;
if ((!run3) <= 0) {
run3--;
}
}
if (this._xscale == -100) {
this._x = this._x + run3;
if ((!run3) <= 0) {
run3--;
}
}
state = 5;
if (Key.isDown(37) and ((!_root.heroDead) == true)) {
_x = (_x + run);
}
if (Key.isDown(39) and ((!_root.heroDead) == true)) {
_x = (_x - run);
}
}
if (((state == 5) and (_root.spearflyCheker == true)) and ((!_root.heroDead) == true)) {
_root.spearflyCheker = false;
_root.spearfly = false;
_root.sword = 11;
}
if (((state == 5) and (_root.arrowflyCheker == true)) and ((!_root.heroDead) == true)) {
_root.arrowflyCheker = false;
_root.arrowfly = false;
}
if (((Key.isDown(38) and (_root.jump2 == true)) and ((!spearfly) == true)) and ((!_root.heroDead) == true)) {
_root.hero.vy = -_root.hero.jumpPower;
_root.jumpnum = 100;
}
if (((air == true) and (_root.spearflyCheker == true)) and ((!_root.heroDead) == true)) {
_root.spearflyCheker = false;
_root.spearfly = false;
_root.sword = 11;
}
if (((air == true) and (_root.arrowflyCheker == true)) and ((!_root.heroDead) == true)) {
_root.arrowflyCheker = false;
_root.arrowfly = false;
}
if (((!Key.isDown(38)) and (_root.jumpnum <= 2)) and ((!_root.heroDead) == true)) {
_root.jump2 = true;
} else {
_root.jump2 = false;
}
if ((!Key.isDown(40)) and ((!_root.heroDead) == true)) {
run3 = run;
}
if (Key.isDown(37) and ((!_root.heroDead) == true)) {
run2 = run;
_x = (_x - run);
this._xscale = 100;
this.legs.play();
}
if (((!(Key.isDown(37) or Key.isDown(39))) and (!Key.isDown(40))) and ((!_root.heroDead) == true)) {
this.legs.gotoAndStop(1);
if (this._xscale == 100) {
this._x = this._x - run2;
if ((!run2) <= 0) {
run2--;
}
}
if (this._xscale == -100) {
this._x = this._x + run2;
if ((!run2) <= 0) {
run2--;
}
}
}
if ((Key.isDown(37) && (Key.isDown(39))) and ((!_root.heroDead) == true)) {
this._x = this._x + run;
this._xscale = -100;
this.legs.play();
}
if (((air == true) && (Key.isDown(37))) and ((!_root.heroDead) == true)) {
state = 3;
}
if (Key.isDown(39) and ((!_root.heroDead) == true)) {
run2 = run;
_x = (_x + run);
this._xscale = -100;
this.legs.play();
}
if (((air == true) && (Key.isDown(39))) and ((!_root.heroDead) == true)) {
state = 3;
}
gotoAndStop(state);
if ((Key.isDown(65) && (air == true)) and ((!_root.heroDead) == true)) {
_root.hero.jumping.gotoAndPlay(6);
}
if (((Key.isDown(65) and (Key.isDown(37) or Key.isDown(39))) and ((!air) == true)) and ((!_root.heroDead) == true)) {
_root.standAttack = false;
_root.runAttack = true;
}
this._y = this._y + 8;
_y = (_y + gravity);
if (air == true) {
state = 3;
}
if (_root.ground.hitTest(_x, _y, true)) {
air = false;
_root.jumpnum = 2;
} else {
air = true;
state = 3;
}
if (air == false) {
state = 1;
}
if ((_root.arrowfly == true) and ((!_root.gotArrows) == false)) {
_root.menu2.arrows.gotoAndStop(_root.menu2.arrows._currentframe + 1);
_root.spearT = false;
totalbullet++;
if (totalbullet > 1) {
totalbullet = 0;
}
if (_root.hero._xscale == -100) {
_root.attachMovie("bullet", "bullet" + totalbullet, totalbullet, {_x:_x, _y:_y, _rotation:this._rotation});
} else if (_root.hero._xscale == 100) {
_root.attachMovie("bullet2", "bullet" + totalbullet, totalbullet, {_x:_x, _y:_y, _rotation:this._rotation});
}
}
if (_root.spearfly == true) {
_root.spearT = true;
totalbullet++;
if (totalbullet > 1) {
totalbullet = 0;
}
if (_root.hero._xscale == -100) {
_root.attachMovie("bullet", "bullet" + totalbullet, totalbullet, {_x:_x, _y:_y, _rotation:this._rotation});
} else if (_root.hero._xscale == 100) {
_root.attachMovie("bullet2", "bullet" + totalbullet, totalbullet, {_x:_x, _y:_y, _rotation:this._rotation});
}
}
}
onClipEvent (load) {
totalbullet = 0;
}
Instance of Symbol 1501 MovieClip "steam" in Frame 42
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 1551 MovieClip "swordOrBow" in Frame 42
onClipEvent (enterFrame) {
if (_root.swords == true) {
this.gotoAndStop(1);
}
if (_root.bows == true) {
this.gotoAndStop(2);
}
}
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 1502 MovieClip "blink" in Frame 42
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 616 MovieClip "groundHIT1" in Frame 42
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 616 MovieClip "groundHIT2" in Frame 42
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 1547 MovieClip "menu2" in Frame 42
onClipEvent (enterFrame) {
this.swapDepths((this._y * 100) + this._x);
}
Instance of Symbol 1549 MovieClip "levelEnd" in Frame 42
onClipEvent (enterFrame) {
this.swapDepths((this._y * 1000) + this._x);
}
Frame 43
levelFrame = 44;
gotoAndStop (30);
_x = 0;
_y = 0;
Frame 44
swordE = 1;
bootsE = 33;
pantsE = 32;
weaponDamageE = 20;
bodyE = 3;
helmetE = 3;
shieldE = 2;
shield2E = 3;
shieldhandE = 4;
attackNum = 0;
attackNum2 = 0;
attackNum3 = 0;
attackNum4 = 0;
attackNum5 = 0;
gotArrows = true;
weaponDamage = 1;
HITMinusArmour = 0;
enemyHITPower = 60;
menu2.location.location = "England";
_root.attachMovie("attachBM", "attachBM", 50, {_x:300, _y:200});
removeMovieClip(_root.heroAttach);
enemies = 2;
enemyHP = 14;
blooddummy._x = 0;
blooddummy._y = 0;
dep = 200;
gravity = 0.5;
hero.vx = 0;
hero.vy = 0;
hero.jumpPower = 20;
hero.grounded = false;
ScrollOb = hero;
spearfly = false;
spear = true;
hero.run = 7;
deadEnemyNum = 1000;
num = 0;
while (num <= enemies) {
this["enemy" + num].power = 20;
this["enemy" + num].HP = 14;
groundGNum = 1000;
groundGNum2 = -500;
this["enemy" + num].time = 500;
num++;
}
roundTime = 2300;
music = true;
music2 = false;
music3 = false;
music4 = false;
onEnterFrame = function () {
trace(roundTime);
roundTime = roundTime - 1;
if ((roundTime <= 0) and ((!heroDead) == true)) {
hero.HIT.gotoAndStop(2);
levelEnd.play();
removeMovieClip(menu2);
}
if ((!_root.HITMinusArmour) <= 1) {
_root.HITMinusArmour = _root.enemyHITPower - _root.armour;
}
if (_root.HITMinusArmour <= 1) {
_root.HITMinusArmour = 1;
}
trace(_root.HITMinusArmour);
if ((!pause) == true) {
num = 0;
while (num <= enemies) {
if (hero._x >= groundGNum) {
groundGNum = groundGNum + 500;
groundGNum2 = groundGNum2 + 500;
ground._x = ground._x + 500;
} else if (hero._x <= groundGNum2) {
groundGNum2 = groundGNum2 - 500;
groundGNum = groundGNum - 500;
ground._x = ground._x - 500;
}
if (EXP >= 1000) {
levelUP = levelUP + 1;
EXP = 0;
}
deadEnemyNum++;
this["enemy" + num];
if ((this["enemy" + num].AAA.jumpFrame == true) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num].air = true;
this["enemy" + num].gotoAndStop(3);
} else if (((this["enemy" + num].AAA.jumpFrame == false) and ground.hitTest(this["enemy" + num]._x, this["enemy" + num]._y + 5, true)) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num].air = false;
this["enemy" + num].power = 20;
this["enemy" + num].gotoAndStop(1);
}
if ((this["enemy" + num].AAA._currentframe == 52) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num].AAA.gotoAndPlay(random(500) + 1);
}
if (ground.hitTest(this["enemy" + num]._x - 6, this["enemy" + num]._y - 10, true) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num]._x = this["enemy" + num]._x + enemySpeed;
} else if (ground.hitTest(this["enemy" + num]._x + 6, this["enemy" + num]._y - 10, true) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num]._x = this["enemy" + num]._x - enemySpeed;
}
if ((this["enemy" + num]._currentframe == 3) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num].air = true;
this["enemy" + num]._y = this["enemy" + num]._y - this["enemy" + num].power;
if ((!this["enemy" + num].power) <= 0) {
this["enemy" + num].power = this["enemy" + num].power - 0.5;
if (this["enemy" + num]._xscale == 100) {
this["enemy" + num]._x = this["enemy" + num]._x - enemySpeed;
}
if (this["enemy" + num]._xscale == -100) {
this["enemy" + num]._x = this["enemy" + num]._x + enemySpeed;
}
}
if ((this["enemy" + num]._x >= (hero._x + 1)) and (this["enemy" + num]._xscale == -100)) {
this["enemy" + num].jumpy.gotoAndStop(10);
} else if ((this["enemy" + num]._x <= (hero._x - 1)) and (this["enemy" + num]._xscale == 100)) {
this["enemy" + num].jumpy.gotoAndStop(10);
}
}
if ((this["enemy" + num].hitTest(hero) and ((!_root.heroDead) == true)) and (this["enemy" + num].hero2.canAttack == true)) {
this["enemy" + num].hero2.canAttack = false;
this["enemy" + num].hero2.gotoAndPlay(_root.enemyRandomAttack);
}
if (this["enemy" + num].hero2.HIT.hitTest(hero.HIT)) {
this["enemy" + num].hero2.HIT.HITin.gotoAndPlay(2);
blink.play();
}
if (this["enemy" + num].jumpy.jumpHIT.HIT.hitTest(hero.HIT)) {
this["enemy" + num].jumpy.jumpHIT.HIT.HITin.gotoAndPlay(2);
blink.play();
}
if (this["enemy" + num].hero2.HIT2.hitTest(hero.HIT)) {
this["enemy" + num].hero2.HIT2.HITin.gotoAndPlay(2);
if (this["enemy" + num]._xscale == 100) {
hero._x = hero._x - 50;
blink.play();
}
if (this["enemy" + num]._xscale == -100) {
hero._x = hero._x + 50;
blink.play();
}
}
if (((hero._x > this["enemy" + num]._x) and ((!this["enemy" + num].dead) == true)) and ((!this["enemy" + num].air) == true)) {
this["enemy" + num]._xscale = -100;
} else if (((hero._x < this["enemy" + num]._x) and ((!this["enemy" + num].dead) == true)) and ((!this["enemy" + num].air) == true)) {
this["enemy" + num]._xscale = 100;
}
if (((((hero._x > (this["enemy" + num]._x + 70)) and ((!this["enemy" + num].dead) == true)) and this["enemy" + num].hitTest(this["enemy" + num].AAA)) and ((!this["enemy" + num].air) == true)) and ((!this["enemy" + num].hero2.kick) == true)) {
this["enemy" + num].legs.gotoAndStop(4);
this["enemy" + num]._x = this["enemy" + num]._x + enemySpeed;
} else if (((((hero._x < (this["enemy" + num]._x - 70)) and ((!this["enemy" + num].dead) == true)) and this["enemy" + num].hitTest(this["enemy" + num].AAA)) and ((!this["enemy" + num].air) == true)) and ((!this["enemy" + num].hero2.kick) == true)) {
this["enemy" + num]._x = this["enemy" + num]._x - enemySpeed;
this["enemy" + num].legs.gotoAndStop(4);
} else {
this["enemy" + num].legs.gotoAndStop(1);
}
this["enemy" + num]._y = this["enemy" + num]._y + 8;
while (ground.hitTest(this["enemy" + num]._x, this["enemy" + num]._y, true)) {
this["enemy" + num]._y = this["enemy" + num]._y - 1;
}
while (ground.hitTest(hero._root.SpearFall._x, hero._root.SpearFall._y, true)) {
_root.SpearFall._y = _root.SpearFall._y - 1;
}
if (hero.hero2.HIT.hitTest(this["enemy" + num].HIT) and ((!this["enemy" + num].dead) == true)) {
_root.attachMovie("bloodAttach", "bloodAttach", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.hero2.HIT.HITin.gotoAndPlay(2);
this["enemy" + num].HP = this["enemy" + num].HP - weaponDamage;
if (this["enemy" + num].HP <= 0) {
_root.attachMovie("heartAttach", "heartAttach", 38, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y});
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
if ((sword == 5) or (sword == 8)) {
this["enemy" + num].die.gotoAndPlay(80);
} else {
this["enemy" + num].die.gotoAndPlay(1);
}
}
}
if (hero.hero2.HIT2.hitTest(this["enemy" + num].HIT) and ((!this["enemy" + num].dead) == true)) {
_root.attachMovie("bloodAttachKICK", "bloodAttachKICK", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.hero2.HIT2.HITin.gotoAndPlay(2);
this["enemy" + num].HP = this["enemy" + num].HP - (Math.ceil(weaponDamage) * 5);
if (this["enemy" + num].HP <= 0) {
_root.attachMovie("heartAttach", "heartAttach", 38, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y});
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
this["enemy" + num].die.gotoAndPlay(60);
}
}
if (hero.hero2.HIT3.hitTest(this["enemy" + num].HIT) and ((!this["enemy" + num].dead) == true)) {
_root.attachMovie("bloodAttachKICK", "bloodAttachKICK", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.hero2.HIT3.HITin.gotoAndPlay(2);
this["enemy" + num].gotoAndStop(2);
this["enemy" + num].gotKicked.gotoAndPlay(37);
this["enemy" + num].HP = this["enemy" + num].HP - (Math.ceil(weaponDamage) / 3);
if (hero._xscale == 100) {
this["enemy" + num]._x = this["enemy" + num]._x - 60;
}
if (hero._xscale == -100) {
this["enemy" + num]._x = this["enemy" + num]._x + 60;
}
if (this["enemy" + num].HP <= 0) {
_root.attachMovie("heartAttach", "heartAttach", 38, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y});
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
this["enemy" + num].die.gotoAndPlay(60);
}
}
if (hero.jumpy.HIT.hitTest(this["enemy" + num].HIT) and ((!this["enemy" + num].dead) == true)) {
_root.attachMovie("bloodAttachKICK", "bloodAttachKICK", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.jumpy.HIT.HITin.gotoAndStop(2);
this["enemy" + num].HP = this["enemy" + num].HP - (weaponDamage * 3);
if (this["enemy" + num].HP <= 0) {
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
this["enemy" + num].die.gotoAndPlay(100);
}
}
if (hero.sit.HIT.hitTest(this["enemy" + num].legs) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num].gotoAndStop(2);
_root.attachMovie("bloodAttachKICK", "bloodAttachKICK", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.sit.HIT.HITin.gotoAndStop(2);
this["enemy" + num].HP = this["enemy" + num].HP - (Math.ceil(weaponDamage) / 3);
if (hero._xscale == 100) {
this["enemy" + num]._x = this["enemy" + num]._x - 50;
}
if (hero._xscale == -100) {
this["enemy" + num]._x = this["enemy" + num]._x + 50;
}
if (this["enemy" + num].HP <= 0) {
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
this["enemy" + num].die.gotoAndPlay(1);
}
}
if (hero.sit.HIT2.hitTest(this["enemy" + num].HIT) and ((!this["enemy" + num].dead) == true)) {
_root.attachMovie("bloodAttach", "bloodAttach", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.sit.HIT2.HITin.gotoAndStop(2);
this["enemy" + num].HP = this["enemy" + num].HP - (weaponDamage * 2);
if (this["enemy" + num].HP <= 0) {
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
this["enemy" + num].die.gotoAndPlay(80);
}
}
if (this["enemy" + num].hitTest(_root.bullet0) and ((!this["enemy" + num].dead) == true)) {
removeMovieClip(_root.bullet0);
this["enemy" + num].gotoAndStop(4);
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
_root.attachMovie("bloodAttach", "bloodAttach", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
_root.attachMovie("deadEnemy", "deadEnemy", deadEnemyNum, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
if (spearcankill == true) {
this["enemy" + num].die.gotoAndPlay(20);
}
if (spearcankill == false) {
this["enemy" + num].die.gotoAndPlay(40);
}
this["enemy" + num].dead = true;
}
if (this["enemy" + num].HIT.hitTest(_root.bullet1) and ((!this["enemy" + num].dead) == true)) {
removeMovieClip(_root.bullet1);
this["enemy" + num].gotoAndStop(4);
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
_root.attachMovie("bloodAttach", "bloodAttach", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
_root.attachMovie("deadEnemy", "deadEnemy", deadEnemyNum, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
if (spearcankill == true) {
this["enemy" + num].die.gotoAndPlay(20);
}
if (spearcankill == false) {
this["enemy" + num].die.gotoAndPlay(40);
}
this["enemy" + num].dead = true;
}
if ((((hero.hero2.HIT.hitTest(this["enemy" + num].hero2) or hero.hero2.HIT2.hitTest(this["enemy" + num].hero2)) or hero.hero2.HIT3.hitTest(this["enemy" + num].hero2)) or hero.jumpy.HIT.hitTest(this["enemy" + num].hero2)) or (((hero.sit.HIT2.hitTest(this["enemy" + num].hero2) and (this["enemy" + num].HIT._currentframe > 1)) and (_root.blink._currentframe == 1)) and ((!shieldDead) == true))) {
_root.attachMovie("bloodAttach0Defence", "bloodAttach0Defence", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.hero2.HIT.HITin.gotoAndPlay(2);
hero.hero2.HIT2.HITin.gotoAndPlay(2);
hero.hero2.HIT3.HITin.gotoAndPlay(2);
hero.jumpy.HIT.HITin.gotoAndPlay(2);
if (this["enemy" + num]._xscale == 100) {
this["enemy" + num]._x = this["enemy" + num]._x + 30;
}
if (this["enemy" + num]._xscale == -100) {
this["enemy" + num]._x = this["enemy" + num]._x - 30;
}
}
shieldDead == false;
if ((((((_root.hero.HIT._currentframe == 2) and (_root.blink._currentframe == 1)) and ((!shieldDead) == true)) and this["enemy" + num].hero2.HIT.hitTest(hero)) or this["enemy" + num].hero2.HIT2.hitTest(hero)) or this["enemy" + num].jumpy.jumpHIT.HIT.hitTest(hero)) {
_root.attachMovie("bloodAttach0Defence2", "bloodAttach0Defence2", 50, {_x:hero._x, _y:hero._y - 50});
this["enemy" + num].hero2.HIT.HITin.gotoAndPlay(2);
this["enemy" + num].hero2.HIT2.HITin.gotoAndPlay(2);
this["enemy" + num].jumpy.jumpHIT.HIT.HITin.gotoAndPlay(2);
if (this["enemy" + num]._xscale == -100) {
hero._x = hero._x + 30;
}
if (this["enemy" + num]._xscale == 100) {
hero._x = hero._x - 30;
}
}
if ((this["enemy" + num].live == true) and (this["enemy" + num].dead == true)) {
this["enemy" + num].gotoAndStop(7);
this["enemy" + num].time = this["enemy" + num].time - 1;
if (this["enemy" + num].time <= 0) {
this["enemy" + num].time = random(100) + 20;
this["enemy" + num].HP = _root.enemyHP;
this["enemy" + num].gotoAndStop(1);
this["enemy" + num].live = false;
this["enemy" + num].dead = false;
this["enemy" + num]._x = menu._x - livePosition;
this["enemy" + num]._y = hero._y;
}
}
if (this["enemy" + num]._x <= (menu._x - 660)) {
this["enemy" + num]._y = hero._y;
this["enemy" + num]._x = menu._x - livePosition;
} else if (this["enemy" + num]._x >= (menu._x + 660)) {
this["enemy" + num]._y = hero._y;
this["enemy" + num]._x = menu._x - livePosition;
}
if (this["enemy" + num].die.spearReSpawn == true) {
this["enemy" + num].die.spearReSpawn = false;
_root.attachMovie("SpearFall", "SpearFall", 100, {_x:this["enemy" + num]._x - 50, _y:this["enemy" + num]._y});
}
if (_root.groundHIT1.hitTest(_root.bullet0) and (_root.spearcankill == true)) {
_root.attachMovie("SpearFall", "SpearFall", 100, {_x:_root.bullet0._x, _y:_root.bullet0._y - 8});
removeMovieClip(_root.bullet0);
}
if (_root.groundHIT1.hitTest(_root.bullet1) and (_root.spearcankill == true)) {
_root.attachMovie("SpearFall", "SpearFall", 100, {_x:_root.bullet1._x, _y:_root.bullet1._y - 8});
removeMovieClip(_root.bullet1);
}
if (_root.groundHIT2.hitTest(_root.bullet0) and (_root.spearcankill == true)) {
_root.attachMovie("SpearFall", "SpearFall", 100, {_x:_root.bullet0._x, _y:_root.bullet0._y - 8});
removeMovieClip(_root.bullet0);
}
if (_root.groundHIT2.hitTest(_root.bullet1) and (_root.spearcankill == true)) {
_root.attachMovie("SpearFall", "SpearFall", 100, {_x:_root.bullet1._x, _y:_root.bullet1._y - 8});
removeMovieClip(_root.bullet1);
}
num++;
}
_x = (_x - Math.round((_x - (300 - ScrollOb._x)) / 10));
_y = (_y - Math.round((_y - (300 - ScrollOb._y)) / 10));
ScrollOb = hero;
menu._x = (-_x) + 300;
menu._y = (-_y) + 200;
wind._x = (-_x) + 300;
wind._y = (-_y) + 200;
snow._x = (-_x) + 43.4;
snow._y = (-_y) - 15.2;
menu2._x = (-_x) + 300;
menu2._y = (-_y) + 200;
maskRoot._x = (-_x) + 300;
maskRoot._y = (-_y) + 200;
bambook._x = (-_x) + 300;
groundHIT1._x = (-_x) + 1200;
groundHIT2._x = (-_x) - 600;
levelEnd._x = (-_x) + 300;
levelEnd._y = (-_y) + 200;
attachBM._x = (-_x) + 300;
attachBM._y = (-_y) + 200;
hero.gotoAndStop(frame);
jump = Key.isDown(38);
hero.vy = hero.vy + gravity;
hero._x = hero._x + hero.vx;
hero._y = hero._y + hero.vy;
if ((!pause) == true) {
if (jump) {
jumpnum = jumpnum - 1;
if (hero.grounded) {
hero.vy = -hero.jumpPower;
frame = "jump";
}
}
}
if (left) {
hero.vx = hero.vx - hero.spd;
hero._xscale = -100;
frame = "run";
} else if (right) {
hero.vx = hero.vx + hero.spd;
hero._xscale = 100;
frame = "run";
} else if (hero.grounded) {
hero.vx = hero.vx * 0.9;
frame = "stand";
} else {
frame = "jump";
}
if ((!pause) == true) {
if (Math.abs(hero.vx) > hero.maxSpd) {
hero.vx = hero.vx * 0.9;
}
}
hero.grounded = false;
if (ground.hitTest(hero._x, hero._y, true)) {
hero.vy = -Math.abs(hero.vy * 0.4);
hero.grounded = true;
frame = "stand";
while (ground.hitTest(hero._x, hero._y, true)) {
hero._y = hero._y - 0.2;
}
}
if (ground.hitTest(hero._x - (hero._width / 2), hero._y - (hero._height / 2), true)) {
hero.vx = Math.abs(hero.vx * 0.4);
while (ground.hitTest(hero._x - (hero._width / 2), hero._y - (hero._height / 2), true)) {
hero._x = hero._x + 0.2;
}
} else if (ground.hitTest(hero._x + (hero._width / 2), hero._y - (hero._height / 2), true)) {
hero.vx = -Math.abs(hero.vx * 0.4);
while (ground.hitTest(hero._x + (hero._width / 2), hero._y - (hero._height / 2), true)) {
hero._x = hero._x - 0.2;
}
}
}
};
stop();
Instance of Symbol 1481 MovieClip "menu" in Frame 44
onClipEvent (load) {
this.gotoAndStop(1);
}
Instance of Symbol 1558 MovieClip in Frame 44
onClipEvent (enterFrame) {
if (_root.groundHIT2.hitTest(this.HIT)) {
this._x = _root.groundHIT1._x - (random(100) + 10);
this.gotoAndStop(random(4) + 1);
} else if (_root.groundHIT1.hitTest(this.HIT)) {
this._x = _root.groundHIT2._x + (random(100) + 10);
this.gotoAndStop(random(3) + 1);
}
}
Instance of Symbol 1494 MovieClip in Frame 44
onClipEvent (enterFrame) {
if (_root.groundHIT2.hitTest(this.HIT)) {
this._x = _root.groundHIT1._x - 200;
this.gotoAndStop(random(2) + 1);
} else if (_root.groundHIT1.hitTest(this.HIT)) {
this._x = _root.groundHIT2._x + 200;
this.gotoAndStop(random(2) + 1);
}
trace(this._x);
}
Instance of Symbol 1500 MovieClip "hero" in Frame 44
onClipEvent (enterFrame) {
if (((Key.isDown(40) and Key.isDown(37)) and Key.isDown(39)) and ((!_root.heroDead) == true)) {
this._x = this._x - run;
}
if (_root.heroDead == true) {
this.state = 4;
}
if ((Key.isDown(40) and ((!air) == true)) and ((!_root.heroDead) == true)) {
if (this._xscale == 100) {
this._x = this._x - run3;
if ((!run3) <= 0) {
run3--;
}
}
if (this._xscale == -100) {
this._x = this._x + run3;
if ((!run3) <= 0) {
run3--;
}
}
state = 5;
if (Key.isDown(37) and ((!_root.heroDead) == true)) {
_x = (_x + run);
}
if (Key.isDown(39) and ((!_root.heroDead) == true)) {
_x = (_x - run);
}
}
if (((state == 5) and (_root.spearflyCheker == true)) and ((!_root.heroDead) == true)) {
_root.spearflyCheker = false;
_root.spearfly = false;
_root.sword = 11;
}
if (((state == 5) and (_root.arrowflyCheker == true)) and ((!_root.heroDead) == true)) {
_root.arrowflyCheker = false;
_root.arrowfly = false;
}
if (((Key.isDown(38) and (_root.jump2 == true)) and ((!spearfly) == true)) and ((!_root.heroDead) == true)) {
_root.hero.vy = -_root.hero.jumpPower;
_root.jumpnum = 100;
}
if (((air == true) and (_root.spearflyCheker == true)) and ((!_root.heroDead) == true)) {
_root.spearflyCheker = false;
_root.spearfly = false;
_root.sword = 11;
}
if (((air == true) and (_root.arrowflyCheker == true)) and ((!_root.heroDead) == true)) {
_root.arrowflyCheker = false;
_root.arrowfly = false;
}
if (((!Key.isDown(38)) and (_root.jumpnum <= 2)) and ((!_root.heroDead) == true)) {
_root.jump2 = true;
} else {
_root.jump2 = false;
}
if ((!Key.isDown(40)) and ((!_root.heroDead) == true)) {
run3 = run;
}
if (Key.isDown(37) and ((!_root.heroDead) == true)) {
run2 = run;
_x = (_x - run);
this._xscale = 100;
this.legs.play();
}
if (((!(Key.isDown(37) or Key.isDown(39))) and (!Key.isDown(40))) and ((!_root.heroDead) == true)) {
this.legs.gotoAndStop(1);
if (this._xscale == 100) {
this._x = this._x - run2;
if ((!run2) <= 0) {
run2--;
}
}
if (this._xscale == -100) {
this._x = this._x + run2;
if ((!run2) <= 0) {
run2--;
}
}
}
if ((Key.isDown(37) && (Key.isDown(39))) and ((!_root.heroDead) == true)) {
this._x = this._x + run;
this._xscale = -100;
this.legs.play();
}
if (((air == true) && (Key.isDown(37))) and ((!_root.heroDead) == true)) {
state = 3;
}
if (Key.isDown(39) and ((!_root.heroDead) == true)) {
run2 = run;
_x = (_x + run);
this._xscale = -100;
this.legs.play();
}
if (((air == true) && (Key.isDown(39))) and ((!_root.heroDead) == true)) {
state = 3;
}
gotoAndStop(state);
if ((Key.isDown(65) && (air == true)) and ((!_root.heroDead) == true)) {
_root.hero.jumping.gotoAndPlay(6);
}
if (((Key.isDown(65) and (Key.isDown(37) or Key.isDown(39))) and ((!air) == true)) and ((!_root.heroDead) == true)) {
_root.standAttack = false;
_root.runAttack = true;
}
this._y = this._y + 8;
_y = (_y + gravity);
if (air == true) {
state = 3;
}
if (_root.ground.hitTest(_x, _y, true)) {
air = false;
_root.jumpnum = 2;
} else {
air = true;
state = 3;
}
if (air == false) {
state = 1;
}
if ((_root.arrowfly == true) and ((!_root.gotArrows) == false)) {
_root.menu2.arrows.gotoAndStop(_root.menu2.arrows._currentframe + 1);
_root.spearT = false;
totalbullet++;
if (totalbullet > 1) {
totalbullet = 0;
}
if (_root.hero._xscale == -100) {
_root.attachMovie("bullet", "bullet" + totalbullet, totalbullet, {_x:_x, _y:_y, _rotation:this._rotation});
} else if (_root.hero._xscale == 100) {
_root.attachMovie("bullet2", "bullet" + totalbullet, totalbullet, {_x:_x, _y:_y, _rotation:this._rotation});
}
}
if (_root.spearfly == true) {
_root.spearT = true;
totalbullet++;
if (totalbullet > 1) {
totalbullet = 0;
}
if (_root.hero._xscale == -100) {
_root.attachMovie("bullet", "bullet" + totalbullet, totalbullet, {_x:_x, _y:_y, _rotation:this._rotation});
} else if (_root.hero._xscale == 100) {
_root.attachMovie("bullet2", "bullet" + totalbullet, totalbullet, {_x:_x, _y:_y, _rotation:this._rotation});
}
}
}
onClipEvent (load) {
totalbullet = 0;
}
Instance of Symbol 1501 MovieClip "steam" in Frame 44
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 1505 MovieClip "swordOrBow" in Frame 44
onClipEvent (enterFrame) {
if (_root.swords == true) {
this.gotoAndStop(1);
}
if (_root.bows == true) {
this.gotoAndStop(2);
}
}
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 1502 MovieClip "blink" in Frame 44
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 616 MovieClip "groundHIT1" in Frame 44
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 616 MovieClip "groundHIT2" in Frame 44
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 1547 MovieClip "menu2" in Frame 44
onClipEvent (enterFrame) {
this.swapDepths((this._y * 100) + this._x);
}
Instance of Symbol 1549 MovieClip "levelEnd" in Frame 44
onClipEvent (enterFrame) {
this.swapDepths((this._y * 1000) + this._x);
}
Frame 45
levelFrame = 46;
gotoAndStop (30);
_x = 0;
_y = 0;
Frame 46
swordE = 6;
bootsE = 33;
pantsE = 32;
weaponDamageE = 20;
bodyE = 3;
helmetE = 5;
shieldE = 1;
shield2E = 3;
shieldhandE = 4;
attackNum = 0;
attackNum2 = 0;
attackNum3 = 0;
attackNum4 = 0;
attackNum5 = 0;
gotArrows = true;
weaponDamage = 1;
HITMinusArmour = 0;
enemyHITPower = 70;
menu2.location.location = "France";
_root.attachMovie("attachBM", "attachBM", 50, {_x:300, _y:200});
removeMovieClip(_root.heroAttach);
enemies = 2;
enemyHP = 7;
blooddummy._x = 0;
blooddummy._y = 0;
dep = 200;
gravity = 0.5;
hero.vx = 0;
hero.vy = 0;
hero.jumpPower = 20;
hero.grounded = false;
ScrollOb = hero;
spearfly = false;
spear = true;
hero.run = 7;
deadEnemyNum = 1000;
num = 0;
while (num <= enemies) {
this["enemy" + num].power = 20;
this["enemy" + num].HP = 7;
groundGNum = 1000;
groundGNum2 = -500;
this["enemy" + num].time = 500;
num++;
}
roundTime = 2300;
music = true;
music2 = false;
music3 = false;
music4 = false;
onEnterFrame = function () {
trace(roundTime);
roundTime = roundTime - 1;
if ((roundTime <= 0) and ((!heroDead) == true)) {
hero.HIT.gotoAndStop(2);
levelEnd.play();
removeMovieClip(menu2);
}
if ((!_root.HITMinusArmour) <= 1) {
_root.HITMinusArmour = _root.enemyHITPower - _root.armour;
}
if (_root.HITMinusArmour <= 1) {
_root.HITMinusArmour = 1;
}
trace(_root.HITMinusArmour);
if ((!pause) == true) {
num = 0;
while (num <= enemies) {
if (hero._x >= groundGNum) {
groundGNum = groundGNum + 500;
groundGNum2 = groundGNum2 + 500;
ground._x = ground._x + 500;
} else if (hero._x <= groundGNum2) {
groundGNum2 = groundGNum2 - 500;
groundGNum = groundGNum - 500;
ground._x = ground._x - 500;
}
if (EXP >= 1000) {
levelUP = levelUP + 1;
EXP = 0;
}
deadEnemyNum++;
this["enemy" + num];
if ((this["enemy" + num].AAA.jumpFrame == true) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num].air = true;
this["enemy" + num].gotoAndStop(3);
} else if (((this["enemy" + num].AAA.jumpFrame == false) and ground.hitTest(this["enemy" + num]._x, this["enemy" + num]._y + 5, true)) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num].air = false;
this["enemy" + num].power = 20;
this["enemy" + num].gotoAndStop(1);
}
if ((this["enemy" + num].AAA._currentframe == 52) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num].AAA.gotoAndPlay(random(500) + 1);
}
if (ground.hitTest(this["enemy" + num]._x - 6, this["enemy" + num]._y - 10, true) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num]._x = this["enemy" + num]._x + enemySpeed;
} else if (ground.hitTest(this["enemy" + num]._x + 6, this["enemy" + num]._y - 10, true) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num]._x = this["enemy" + num]._x - enemySpeed;
}
if ((this["enemy" + num]._currentframe == 3) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num].air = true;
this["enemy" + num]._y = this["enemy" + num]._y - this["enemy" + num].power;
if ((!this["enemy" + num].power) <= 0) {
this["enemy" + num].power = this["enemy" + num].power - 0.5;
if (this["enemy" + num]._xscale == 100) {
this["enemy" + num]._x = this["enemy" + num]._x - enemySpeed;
}
if (this["enemy" + num]._xscale == -100) {
this["enemy" + num]._x = this["enemy" + num]._x + enemySpeed;
}
}
if ((this["enemy" + num]._x >= (hero._x + 1)) and (this["enemy" + num]._xscale == -100)) {
this["enemy" + num].jumpy.gotoAndStop(10);
} else if ((this["enemy" + num]._x <= (hero._x - 1)) and (this["enemy" + num]._xscale == 100)) {
this["enemy" + num].jumpy.gotoAndStop(10);
}
}
if ((this["enemy" + num].hitTest(hero) and ((!_root.heroDead) == true)) and (this["enemy" + num].hero2.canAttack == true)) {
this["enemy" + num].hero2.canAttack = false;
this["enemy" + num].hero2.gotoAndPlay(_root.enemyRandomAttack);
}
if (this["enemy" + num].hero2.HIT.hitTest(hero.HIT)) {
this["enemy" + num].hero2.HIT.HITin.gotoAndPlay(2);
blink.play();
}
if (this["enemy" + num].jumpy.jumpHIT.HIT.hitTest(hero.HIT)) {
this["enemy" + num].jumpy.jumpHIT.HIT.HITin.gotoAndPlay(2);
blink.play();
}
if (this["enemy" + num].hero2.HIT2.hitTest(hero.HIT)) {
this["enemy" + num].hero2.HIT2.HITin.gotoAndPlay(2);
if (this["enemy" + num]._xscale == 100) {
hero._x = hero._x - 50;
blink.play();
}
if (this["enemy" + num]._xscale == -100) {
hero._x = hero._x + 50;
blink.play();
}
}
if (((hero._x > this["enemy" + num]._x) and ((!this["enemy" + num].dead) == true)) and ((!this["enemy" + num].air) == true)) {
this["enemy" + num]._xscale = -100;
} else if (((hero._x < this["enemy" + num]._x) and ((!this["enemy" + num].dead) == true)) and ((!this["enemy" + num].air) == true)) {
this["enemy" + num]._xscale = 100;
}
if (((((hero._x > (this["enemy" + num]._x + 70)) and ((!this["enemy" + num].dead) == true)) and this["enemy" + num].hitTest(this["enemy" + num].AAA)) and ((!this["enemy" + num].air) == true)) and ((!this["enemy" + num].hero2.kick) == true)) {
this["enemy" + num].legs.gotoAndStop(4);
this["enemy" + num]._x = this["enemy" + num]._x + enemySpeed;
} else if (((((hero._x < (this["enemy" + num]._x - 70)) and ((!this["enemy" + num].dead) == true)) and this["enemy" + num].hitTest(this["enemy" + num].AAA)) and ((!this["enemy" + num].air) == true)) and ((!this["enemy" + num].hero2.kick) == true)) {
this["enemy" + num]._x = this["enemy" + num]._x - enemySpeed;
this["enemy" + num].legs.gotoAndStop(4);
} else {
this["enemy" + num].legs.gotoAndStop(1);
}
this["enemy" + num]._y = this["enemy" + num]._y + 8;
while (ground.hitTest(this["enemy" + num]._x, this["enemy" + num]._y, true)) {
this["enemy" + num]._y = this["enemy" + num]._y - 1;
}
while (ground.hitTest(hero._root.SpearFall._x, hero._root.SpearFall._y, true)) {
_root.SpearFall._y = _root.SpearFall._y - 1;
}
if (hero.hero2.HIT.hitTest(this["enemy" + num].HIT) and ((!this["enemy" + num].dead) == true)) {
_root.attachMovie("bloodAttach", "bloodAttach", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.hero2.HIT.HITin.gotoAndPlay(2);
this["enemy" + num].HP = this["enemy" + num].HP - weaponDamage;
if (this["enemy" + num].HP <= 0) {
_root.attachMovie("heartAttach", "heartAttach", 38, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y});
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
if ((sword == 5) or (sword == 8)) {
this["enemy" + num].die.gotoAndPlay(80);
} else {
this["enemy" + num].die.gotoAndPlay(1);
}
}
}
if (hero.hero2.HIT2.hitTest(this["enemy" + num].HIT) and ((!this["enemy" + num].dead) == true)) {
_root.attachMovie("bloodAttachKICK", "bloodAttachKICK", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.hero2.HIT2.HITin.gotoAndPlay(2);
this["enemy" + num].HP = this["enemy" + num].HP - (Math.ceil(weaponDamage) * 5);
if (this["enemy" + num].HP <= 0) {
_root.attachMovie("heartAttach", "heartAttach", 38, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y});
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
this["enemy" + num].die.gotoAndPlay(60);
}
}
if (hero.hero2.HIT3.hitTest(this["enemy" + num].HIT) and ((!this["enemy" + num].dead) == true)) {
_root.attachMovie("bloodAttachKICK", "bloodAttachKICK", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.hero2.HIT3.HITin.gotoAndPlay(2);
this["enemy" + num].gotoAndStop(2);
this["enemy" + num].gotKicked.gotoAndPlay(37);
this["enemy" + num].HP = this["enemy" + num].HP - (Math.ceil(weaponDamage) / 3);
if (hero._xscale == 100) {
this["enemy" + num]._x = this["enemy" + num]._x - 60;
}
if (hero._xscale == -100) {
this["enemy" + num]._x = this["enemy" + num]._x + 60;
}
if (this["enemy" + num].HP <= 0) {
_root.attachMovie("heartAttach", "heartAttach", 38, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y});
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
this["enemy" + num].die.gotoAndPlay(60);
}
}
if (hero.jumpy.HIT.hitTest(this["enemy" + num].HIT) and ((!this["enemy" + num].dead) == true)) {
_root.attachMovie("bloodAttachKICK", "bloodAttachKICK", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.jumpy.HIT.HITin.gotoAndStop(2);
this["enemy" + num].HP = this["enemy" + num].HP - (weaponDamage * 3);
if (this["enemy" + num].HP <= 0) {
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
this["enemy" + num].die.gotoAndPlay(100);
}
}
if (hero.sit.HIT.hitTest(this["enemy" + num].legs) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num].gotoAndStop(2);
_root.attachMovie("bloodAttachKICK", "bloodAttachKICK", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.sit.HIT.HITin.gotoAndStop(2);
this["enemy" + num].HP = this["enemy" + num].HP - (Math.ceil(weaponDamage) / 3);
if (hero._xscale == 100) {
this["enemy" + num]._x = this["enemy" + num]._x - 50;
}
if (hero._xscale == -100) {
this["enemy" + num]._x = this["enemy" + num]._x + 50;
}
if (this["enemy" + num].HP <= 0) {
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
this["enemy" + num].die.gotoAndPlay(1);
}
}
if (hero.sit.HIT2.hitTest(this["enemy" + num].HIT) and ((!this["enemy" + num].dead) == true)) {
_root.attachMovie("bloodAttach", "bloodAttach", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.sit.HIT2.HITin.gotoAndStop(2);
this["enemy" + num].HP = this["enemy" + num].HP - (weaponDamage * 2);
if (this["enemy" + num].HP <= 0) {
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
this["enemy" + num].die.gotoAndPlay(80);
}
}
if (this["enemy" + num].hitTest(_root.bullet0) and ((!this["enemy" + num].dead) == true)) {
removeMovieClip(_root.bullet0);
this["enemy" + num].gotoAndStop(4);
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
_root.attachMovie("bloodAttach", "bloodAttach", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
_root.attachMovie("deadEnemy", "deadEnemy", deadEnemyNum, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
if (spearcankill == true) {
this["enemy" + num].die.gotoAndPlay(20);
}
if (spearcankill == false) {
this["enemy" + num].die.gotoAndPlay(40);
}
this["enemy" + num].dead = true;
}
if (this["enemy" + num].HIT.hitTest(_root.bullet1) and ((!this["enemy" + num].dead) == true)) {
removeMovieClip(_root.bullet1);
this["enemy" + num].gotoAndStop(4);
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
_root.attachMovie("bloodAttach", "bloodAttach", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
_root.attachMovie("deadEnemy", "deadEnemy", deadEnemyNum, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
if (spearcankill == true) {
this["enemy" + num].die.gotoAndPlay(20);
}
if (spearcankill == false) {
this["enemy" + num].die.gotoAndPlay(40);
}
this["enemy" + num].dead = true;
}
if ((((hero.hero2.HIT.hitTest(this["enemy" + num].hero2) or hero.hero2.HIT2.hitTest(this["enemy" + num].hero2)) or hero.hero2.HIT3.hitTest(this["enemy" + num].hero2)) or hero.jumpy.HIT.hitTest(this["enemy" + num].hero2)) or (((hero.sit.HIT2.hitTest(this["enemy" + num].hero2) and (this["enemy" + num].HIT._currentframe > 1)) and (_root.blink._currentframe == 1)) and ((!shieldDead) == true))) {
_root.attachMovie("bloodAttach0Defence", "bloodAttach0Defence", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.hero2.HIT.HITin.gotoAndPlay(2);
hero.hero2.HIT2.HITin.gotoAndPlay(2);
hero.hero2.HIT3.HITin.gotoAndPlay(2);
hero.jumpy.HIT.HITin.gotoAndPlay(2);
if (this["enemy" + num]._xscale == 100) {
this["enemy" + num]._x = this["enemy" + num]._x + 30;
}
if (this["enemy" + num]._xscale == -100) {
this["enemy" + num]._x = this["enemy" + num]._x - 30;
}
}
shieldDead == false;
if ((((((_root.hero.HIT._currentframe == 2) and (_root.blink._currentframe == 1)) and ((!shieldDead) == true)) and this["enemy" + num].hero2.HIT.hitTest(hero)) or this["enemy" + num].hero2.HIT2.hitTest(hero)) or this["enemy" + num].jumpy.jumpHIT.HIT.hitTest(hero)) {
_root.attachMovie("bloodAttach0Defence2", "bloodAttach0Defence2", 50, {_x:hero._x, _y:hero._y - 50});
this["enemy" + num].hero2.HIT.HITin.gotoAndPlay(2);
this["enemy" + num].hero2.HIT2.HITin.gotoAndPlay(2);
this["enemy" + num].jumpy.jumpHIT.HIT.HITin.gotoAndPlay(2);
if (this["enemy" + num]._xscale == -100) {
hero._x = hero._x + 30;
}
if (this["enemy" + num]._xscale == 100) {
hero._x = hero._x - 30;
}
}
if ((this["enemy" + num].live == true) and (this["enemy" + num].dead == true)) {
this["enemy" + num].gotoAndStop(7);
this["enemy" + num].time = this["enemy" + num].time - 1;
if (this["enemy" + num].time <= 0) {
this["enemy" + num].time = random(400) + 20;
this["enemy" + num].HP = _root.enemyHP;
this["enemy" + num].gotoAndStop(1);
this["enemy" + num].live = false;
this["enemy" + num].dead = false;
this["enemy" + num]._x = menu._x - livePosition;
this["enemy" + num]._y = hero._y;
}
}
if (this["enemy" + num]._x <= (menu._x - 660)) {
this["enemy" + num]._y = hero._y;
this["enemy" + num]._x = menu._x - livePosition;
} else if (this["enemy" + num]._x >= (menu._x + 660)) {
this["enemy" + num]._y = hero._y;
this["enemy" + num]._x = menu._x - livePosition;
}
if (this["enemy" + num].die.spearReSpawn == true) {
this["enemy" + num].die.spearReSpawn = false;
_root.attachMovie("SpearFall", "SpearFall", 100, {_x:this["enemy" + num]._x - 50, _y:this["enemy" + num]._y});
}
if (_root.groundHIT1.hitTest(_root.bullet0) and (_root.spearcankill == true)) {
_root.attachMovie("SpearFall", "SpearFall", 100, {_x:_root.bullet0._x, _y:_root.bullet0._y - 8});
removeMovieClip(_root.bullet0);
}
if (_root.groundHIT1.hitTest(_root.bullet1) and (_root.spearcankill == true)) {
_root.attachMovie("SpearFall", "SpearFall", 100, {_x:_root.bullet1._x, _y:_root.bullet1._y - 8});
removeMovieClip(_root.bullet1);
}
if (_root.groundHIT2.hitTest(_root.bullet0) and (_root.spearcankill == true)) {
_root.attachMovie("SpearFall", "SpearFall", 100, {_x:_root.bullet0._x, _y:_root.bullet0._y - 8});
removeMovieClip(_root.bullet0);
}
if (_root.groundHIT2.hitTest(_root.bullet1) and (_root.spearcankill == true)) {
_root.attachMovie("SpearFall", "SpearFall", 100, {_x:_root.bullet1._x, _y:_root.bullet1._y - 8});
removeMovieClip(_root.bullet1);
}
num++;
}
_x = (_x - Math.round((_x - (300 - ScrollOb._x)) / 10));
_y = (_y - Math.round((_y - (300 - ScrollOb._y)) / 10));
ScrollOb = hero;
menu._x = (-_x) + 300;
menu._y = (-_y) + 200;
wind._x = (-_x) + 300;
wind._y = (-_y) + 200;
snow._x = (-_x) + 43.4;
snow._y = (-_y) - 15.2;
menu2._x = (-_x) + 300;
menu2._y = (-_y) + 200;
maskRoot._x = (-_x) + 300;
maskRoot._y = (-_y) + 200;
bambook._x = (-_x) + 300;
groundHIT1._x = (-_x) + 1200;
groundHIT2._x = (-_x) - 600;
levelEnd._x = (-_x) + 300;
levelEnd._y = (-_y) + 200;
attachBM._x = (-_x) + 300;
attachBM._y = (-_y) + 200;
hero.gotoAndStop(frame);
jump = Key.isDown(38);
hero.vy = hero.vy + gravity;
hero._x = hero._x + hero.vx;
hero._y = hero._y + hero.vy;
if ((!pause) == true) {
if (jump) {
jumpnum = jumpnum - 1;
if (hero.grounded) {
hero.vy = -hero.jumpPower;
frame = "jump";
}
}
}
if (left) {
hero.vx = hero.vx - hero.spd;
hero._xscale = -100;
frame = "run";
} else if (right) {
hero.vx = hero.vx + hero.spd;
hero._xscale = 100;
frame = "run";
} else if (hero.grounded) {
hero.vx = hero.vx * 0.9;
frame = "stand";
} else {
frame = "jump";
}
if ((!pause) == true) {
if (Math.abs(hero.vx) > hero.maxSpd) {
hero.vx = hero.vx * 0.9;
}
}
hero.grounded = false;
if (ground.hitTest(hero._x, hero._y, true)) {
hero.vy = -Math.abs(hero.vy * 0.4);
hero.grounded = true;
frame = "stand";
while (ground.hitTest(hero._x, hero._y, true)) {
hero._y = hero._y - 0.2;
}
}
if (ground.hitTest(hero._x - (hero._width / 2), hero._y - (hero._height / 2), true)) {
hero.vx = Math.abs(hero.vx * 0.4);
while (ground.hitTest(hero._x - (hero._width / 2), hero._y - (hero._height / 2), true)) {
hero._x = hero._x + 0.2;
}
} else if (ground.hitTest(hero._x + (hero._width / 2), hero._y - (hero._height / 2), true)) {
hero.vx = -Math.abs(hero.vx * 0.4);
while (ground.hitTest(hero._x + (hero._width / 2), hero._y - (hero._height / 2), true)) {
hero._x = hero._x - 0.2;
}
}
}
};
stop();
Instance of Symbol 1481 MovieClip "menu" in Frame 46
onClipEvent (load) {
this.gotoAndStop(2);
}
Instance of Symbol 1558 MovieClip in Frame 46
onClipEvent (enterFrame) {
if (_root.groundHIT2.hitTest(this.HIT)) {
this._x = _root.groundHIT1._x - (random(100) + 10);
this.gotoAndStop(random(4) + 1);
} else if (_root.groundHIT1.hitTest(this.HIT)) {
this._x = _root.groundHIT2._x + (random(100) + 10);
this.gotoAndStop(random(3) + 1);
}
}
Instance of Symbol 1494 MovieClip in Frame 46
onClipEvent (enterFrame) {
if (_root.groundHIT2.hitTest(this.HIT)) {
this._x = _root.groundHIT1._x - 200;
this.gotoAndStop(random(2) + 1);
} else if (_root.groundHIT1.hitTest(this.HIT)) {
this._x = _root.groundHIT2._x + 200;
this.gotoAndStop(random(2) + 1);
}
trace(this._x);
}
Instance of Symbol 1500 MovieClip "hero" in Frame 46
onClipEvent (enterFrame) {
if (((Key.isDown(40) and Key.isDown(37)) and Key.isDown(39)) and ((!_root.heroDead) == true)) {
this._x = this._x - run;
}
if (_root.heroDead == true) {
this.state = 4;
}
if ((Key.isDown(40) and ((!air) == true)) and ((!_root.heroDead) == true)) {
if (this._xscale == 100) {
this._x = this._x - run3;
if ((!run3) <= 0) {
run3--;
}
}
if (this._xscale == -100) {
this._x = this._x + run3;
if ((!run3) <= 0) {
run3--;
}
}
state = 5;
if (Key.isDown(37) and ((!_root.heroDead) == true)) {
_x = (_x + run);
}
if (Key.isDown(39) and ((!_root.heroDead) == true)) {
_x = (_x - run);
}
}
if (((state == 5) and (_root.spearflyCheker == true)) and ((!_root.heroDead) == true)) {
_root.spearflyCheker = false;
_root.spearfly = false;
_root.sword = 11;
}
if (((state == 5) and (_root.arrowflyCheker == true)) and ((!_root.heroDead) == true)) {
_root.arrowflyCheker = false;
_root.arrowfly = false;
}
if (((Key.isDown(38) and (_root.jump2 == true)) and ((!spearfly) == true)) and ((!_root.heroDead) == true)) {
_root.hero.vy = -_root.hero.jumpPower;
_root.jumpnum = 100;
}
if (((air == true) and (_root.spearflyCheker == true)) and ((!_root.heroDead) == true)) {
_root.spearflyCheker = false;
_root.spearfly = false;
_root.sword = 11;
}
if (((air == true) and (_root.arrowflyCheker == true)) and ((!_root.heroDead) == true)) {
_root.arrowflyCheker = false;
_root.arrowfly = false;
}
if (((!Key.isDown(38)) and (_root.jumpnum <= 2)) and ((!_root.heroDead) == true)) {
_root.jump2 = true;
} else {
_root.jump2 = false;
}
if ((!Key.isDown(40)) and ((!_root.heroDead) == true)) {
run3 = run;
}
if (Key.isDown(37) and ((!_root.heroDead) == true)) {
run2 = run;
_x = (_x - run);
this._xscale = 100;
this.legs.play();
}
if (((!(Key.isDown(37) or Key.isDown(39))) and (!Key.isDown(40))) and ((!_root.heroDead) == true)) {
this.legs.gotoAndStop(1);
if (this._xscale == 100) {
this._x = this._x - run2;
if ((!run2) <= 0) {
run2--;
}
}
if (this._xscale == -100) {
this._x = this._x + run2;
if ((!run2) <= 0) {
run2--;
}
}
}
if ((Key.isDown(37) && (Key.isDown(39))) and ((!_root.heroDead) == true)) {
this._x = this._x + run;
this._xscale = -100;
this.legs.play();
}
if (((air == true) && (Key.isDown(37))) and ((!_root.heroDead) == true)) {
state = 3;
}
if (Key.isDown(39) and ((!_root.heroDead) == true)) {
run2 = run;
_x = (_x + run);
this._xscale = -100;
this.legs.play();
}
if (((air == true) && (Key.isDown(39))) and ((!_root.heroDead) == true)) {
state = 3;
}
gotoAndStop(state);
if ((Key.isDown(65) && (air == true)) and ((!_root.heroDead) == true)) {
_root.hero.jumping.gotoAndPlay(6);
}
if (((Key.isDown(65) and (Key.isDown(37) or Key.isDown(39))) and ((!air) == true)) and ((!_root.heroDead) == true)) {
_root.standAttack = false;
_root.runAttack = true;
}
this._y = this._y + 8;
_y = (_y + gravity);
if (air == true) {
state = 3;
}
if (_root.ground.hitTest(_x, _y, true)) {
air = false;
_root.jumpnum = 2;
} else {
air = true;
state = 3;
}
if (air == false) {
state = 1;
}
if ((_root.arrowfly == true) and ((!_root.gotArrows) == false)) {
_root.menu2.arrows.gotoAndStop(_root.menu2.arrows._currentframe + 1);
_root.spearT = false;
totalbullet++;
if (totalbullet > 1) {
totalbullet = 0;
}
if (_root.hero._xscale == -100) {
_root.attachMovie("bullet", "bullet" + totalbullet, totalbullet, {_x:_x, _y:_y, _rotation:this._rotation});
} else if (_root.hero._xscale == 100) {
_root.attachMovie("bullet2", "bullet" + totalbullet, totalbullet, {_x:_x, _y:_y, _rotation:this._rotation});
}
}
if (_root.spearfly == true) {
_root.spearT = true;
totalbullet++;
if (totalbullet > 1) {
totalbullet = 0;
}
if (_root.hero._xscale == -100) {
_root.attachMovie("bullet", "bullet" + totalbullet, totalbullet, {_x:_x, _y:_y, _rotation:this._rotation});
} else if (_root.hero._xscale == 100) {
_root.attachMovie("bullet2", "bullet" + totalbullet, totalbullet, {_x:_x, _y:_y, _rotation:this._rotation});
}
}
}
onClipEvent (load) {
totalbullet = 0;
}
Instance of Symbol 1501 MovieClip "steam" in Frame 46
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 1505 MovieClip "swordOrBow" in Frame 46
onClipEvent (enterFrame) {
if (_root.swords == true) {
this.gotoAndStop(1);
}
if (_root.bows == true) {
this.gotoAndStop(2);
}
}
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 1502 MovieClip "blink" in Frame 46
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 616 MovieClip "groundHIT1" in Frame 46
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 616 MovieClip "groundHIT2" in Frame 46
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 1547 MovieClip "menu2" in Frame 46
onClipEvent (enterFrame) {
this.swapDepths((this._y * 100) + this._x);
}
Instance of Symbol 1549 MovieClip "levelEnd" in Frame 46
onClipEvent (enterFrame) {
this.swapDepths((this._y * 1000) + this._x);
}
Frame 47
levelFrame = 48;
gotoAndStop (30);
_x = 0;
_y = 0;
Frame 48
swordE = 4;
bootsE = 34;
pantsE = 32;
weaponDamageE = 60;
bodyE = 4;
helmetE = 4;
shieldE = 3;
shield2E = 8;
shieldhandE = 8;
attackNum = 0;
attackNum2 = 0;
attackNum3 = 0;
attackNum4 = 0;
attackNum5 = 0;
gotArrows = true;
weaponDamage = 1;
HITMinusArmour = 0;
enemyHITPower = 80;
menu2.location.location = "Germany";
_root.attachMovie("attachBM", "attachBM", 50, {_x:300, _y:200});
removeMovieClip(_root.heroAttach);
enemies = 3;
enemyHP = 20;
blooddummy._x = 0;
blooddummy._y = 0;
dep = 200;
gravity = 0.5;
hero.vx = 0;
hero.vy = 0;
hero.jumpPower = 20;
hero.grounded = false;
ScrollOb = hero;
spearfly = false;
spear = true;
hero.run = 7;
deadEnemyNum = 1000;
num = 0;
while (num <= enemies) {
this["enemy" + num].power = 20;
this["enemy" + num].HP = 20;
groundGNum = 1000;
groundGNum2 = -500;
this["enemy" + num].time = 500;
num++;
}
roundTime = 2300;
music = true;
music2 = false;
music3 = false;
music4 = false;
onEnterFrame = function () {
trace(roundTime);
roundTime = roundTime - 1;
if ((roundTime <= 0) and ((!heroDead) == true)) {
hero.HIT.gotoAndStop(2);
levelEnd.play();
removeMovieClip(menu2);
}
if ((!_root.HITMinusArmour) <= 1) {
_root.HITMinusArmour = _root.enemyHITPower - _root.armour;
}
if (_root.HITMinusArmour <= 1) {
_root.HITMinusArmour = 1;
}
trace(_root.HITMinusArmour);
if ((!pause) == true) {
num = 0;
while (num <= enemies) {
if (hero._x >= groundGNum) {
groundGNum = groundGNum + 500;
groundGNum2 = groundGNum2 + 500;
ground._x = ground._x + 500;
} else if (hero._x <= groundGNum2) {
groundGNum2 = groundGNum2 - 500;
groundGNum = groundGNum - 500;
ground._x = ground._x - 500;
}
if (EXP >= 1000) {
levelUP = levelUP + 1;
EXP = 0;
}
deadEnemyNum++;
this["enemy" + num];
if ((this["enemy" + num].AAA.jumpFrame == true) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num].air = true;
this["enemy" + num].gotoAndStop(3);
} else if (((this["enemy" + num].AAA.jumpFrame == false) and ground.hitTest(this["enemy" + num]._x, this["enemy" + num]._y + 5, true)) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num].air = false;
this["enemy" + num].power = 20;
this["enemy" + num].gotoAndStop(1);
}
if ((this["enemy" + num].AAA._currentframe == 52) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num].AAA.gotoAndPlay(random(500) + 1);
}
if (ground.hitTest(this["enemy" + num]._x - 6, this["enemy" + num]._y - 10, true) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num]._x = this["enemy" + num]._x + enemySpeed;
} else if (ground.hitTest(this["enemy" + num]._x + 6, this["enemy" + num]._y - 10, true) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num]._x = this["enemy" + num]._x - enemySpeed;
}
if ((this["enemy" + num]._currentframe == 3) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num].air = true;
this["enemy" + num]._y = this["enemy" + num]._y - this["enemy" + num].power;
if ((!this["enemy" + num].power) <= 0) {
this["enemy" + num].power = this["enemy" + num].power - 0.5;
if (this["enemy" + num]._xscale == 100) {
this["enemy" + num]._x = this["enemy" + num]._x - enemySpeed;
}
if (this["enemy" + num]._xscale == -100) {
this["enemy" + num]._x = this["enemy" + num]._x + enemySpeed;
}
}
if ((this["enemy" + num]._x >= (hero._x + 1)) and (this["enemy" + num]._xscale == -100)) {
this["enemy" + num].jumpy.gotoAndStop(10);
} else if ((this["enemy" + num]._x <= (hero._x - 1)) and (this["enemy" + num]._xscale == 100)) {
this["enemy" + num].jumpy.gotoAndStop(10);
}
}
if ((this["enemy" + num].hitTest(hero) and ((!_root.heroDead) == true)) and (this["enemy" + num].hero2.canAttack == true)) {
this["enemy" + num].hero2.canAttack = false;
this["enemy" + num].hero2.gotoAndPlay(_root.enemyRandomAttack);
}
if (this["enemy" + num].hero2.HIT.hitTest(hero.HIT)) {
this["enemy" + num].hero2.HIT.HITin.gotoAndPlay(2);
blink.play();
}
if (this["enemy" + num].jumpy.jumpHIT.HIT.hitTest(hero.HIT)) {
this["enemy" + num].jumpy.jumpHIT.HIT.HITin.gotoAndPlay(2);
blink.play();
}
if (this["enemy" + num].hero2.HIT2.hitTest(hero.HIT)) {
this["enemy" + num].hero2.HIT2.HITin.gotoAndPlay(2);
if (this["enemy" + num]._xscale == 100) {
hero._x = hero._x - 50;
blink.play();
}
if (this["enemy" + num]._xscale == -100) {
hero._x = hero._x + 50;
blink.play();
}
}
if (((hero._x > this["enemy" + num]._x) and ((!this["enemy" + num].dead) == true)) and ((!this["enemy" + num].air) == true)) {
this["enemy" + num]._xscale = -100;
} else if (((hero._x < this["enemy" + num]._x) and ((!this["enemy" + num].dead) == true)) and ((!this["enemy" + num].air) == true)) {
this["enemy" + num]._xscale = 100;
}
if (((((hero._x > (this["enemy" + num]._x + 70)) and ((!this["enemy" + num].dead) == true)) and this["enemy" + num].hitTest(this["enemy" + num].AAA)) and ((!this["enemy" + num].air) == true)) and ((!this["enemy" + num].hero2.kick) == true)) {
this["enemy" + num].legs.gotoAndStop(4);
this["enemy" + num]._x = this["enemy" + num]._x + enemySpeed;
} else if (((((hero._x < (this["enemy" + num]._x - 70)) and ((!this["enemy" + num].dead) == true)) and this["enemy" + num].hitTest(this["enemy" + num].AAA)) and ((!this["enemy" + num].air) == true)) and ((!this["enemy" + num].hero2.kick) == true)) {
this["enemy" + num]._x = this["enemy" + num]._x - enemySpeed;
this["enemy" + num].legs.gotoAndStop(4);
} else {
this["enemy" + num].legs.gotoAndStop(1);
}
this["enemy" + num]._y = this["enemy" + num]._y + 8;
while (ground.hitTest(this["enemy" + num]._x, this["enemy" + num]._y, true)) {
this["enemy" + num]._y = this["enemy" + num]._y - 1;
}
while (ground.hitTest(hero._root.SpearFall._x, hero._root.SpearFall._y, true)) {
_root.SpearFall._y = _root.SpearFall._y - 1;
}
if (hero.hero2.HIT.hitTest(this["enemy" + num].HIT) and ((!this["enemy" + num].dead) == true)) {
_root.attachMovie("bloodAttach", "bloodAttach", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.hero2.HIT.HITin.gotoAndPlay(2);
this["enemy" + num].HP = this["enemy" + num].HP - weaponDamage;
if (this["enemy" + num].HP <= 0) {
_root.attachMovie("heartAttach", "heartAttach", 38, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y});
gold = gold + (random(50) + 10);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
if ((sword == 5) or (sword == 8)) {
this["enemy" + num].die.gotoAndPlay(80);
} else {
this["enemy" + num].die.gotoAndPlay(1);
}
}
}
if (hero.hero2.HIT2.hitTest(this["enemy" + num].HIT) and ((!this["enemy" + num].dead) == true)) {
_root.attachMovie("bloodAttachKICK", "bloodAttachKICK", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.hero2.HIT2.HITin.gotoAndPlay(2);
this["enemy" + num].HP = this["enemy" + num].HP - (Math.ceil(weaponDamage) * 5);
if (this["enemy" + num].HP <= 0) {
_root.attachMovie("heartAttach", "heartAttach", 38, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y});
gold = gold + (random(50) + 10);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
this["enemy" + num].die.gotoAndPlay(60);
}
}
if (hero.hero2.HIT3.hitTest(this["enemy" + num].HIT) and ((!this["enemy" + num].dead) == true)) {
_root.attachMovie("bloodAttachKICK", "bloodAttachKICK", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.hero2.HIT3.HITin.gotoAndPlay(2);
this["enemy" + num].gotoAndStop(2);
this["enemy" + num].gotKicked.gotoAndPlay(37);
this["enemy" + num].HP = this["enemy" + num].HP - (Math.ceil(weaponDamage) / 3);
if (hero._xscale == 100) {
this["enemy" + num]._x = this["enemy" + num]._x - 60;
}
if (hero._xscale == -100) {
this["enemy" + num]._x = this["enemy" + num]._x + 60;
}
if (this["enemy" + num].HP <= 0) {
_root.attachMovie("heartAttach", "heartAttach", 38, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y});
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
this["enemy" + num].die.gotoAndPlay(60);
}
}
if (hero.jumpy.HIT.hitTest(this["enemy" + num].HIT) and ((!this["enemy" + num].dead) == true)) {
_root.attachMovie("bloodAttachKICK", "bloodAttachKICK", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.jumpy.HIT.HITin.gotoAndStop(2);
this["enemy" + num].HP = this["enemy" + num].HP - (weaponDamage * 3);
if (this["enemy" + num].HP <= 0) {
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
this["enemy" + num].die.gotoAndPlay(100);
}
}
if (hero.sit.HIT.hitTest(this["enemy" + num].legs) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num].gotoAndStop(2);
_root.attachMovie("bloodAttachKICK", "bloodAttachKICK", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.sit.HIT.HITin.gotoAndStop(2);
this["enemy" + num].HP = this["enemy" + num].HP - (Math.ceil(weaponDamage) / 3);
if (hero._xscale == 100) {
this["enemy" + num]._x = this["enemy" + num]._x - 50;
}
if (hero._xscale == -100) {
this["enemy" + num]._x = this["enemy" + num]._x + 50;
}
if (this["enemy" + num].HP <= 0) {
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
this["enemy" + num].die.gotoAndPlay(1);
}
}
if (hero.sit.HIT2.hitTest(this["enemy" + num].HIT) and ((!this["enemy" + num].dead) == true)) {
_root.attachMovie("bloodAttach", "bloodAttach", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.sit.HIT2.HITin.gotoAndStop(2);
this["enemy" + num].HP = this["enemy" + num].HP - (weaponDamage * 2);
if (this["enemy" + num].HP <= 0) {
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
this["enemy" + num].die.gotoAndPlay(80);
}
}
if (this["enemy" + num].hitTest(_root.bullet0) and ((!this["enemy" + num].dead) == true)) {
removeMovieClip(_root.bullet0);
this["enemy" + num].gotoAndStop(4);
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
_root.attachMovie("bloodAttach", "bloodAttach", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
_root.attachMovie("deadEnemy", "deadEnemy", deadEnemyNum, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
if (spearcankill == true) {
this["enemy" + num].die.gotoAndPlay(20);
}
if (spearcankill == false) {
this["enemy" + num].die.gotoAndPlay(40);
}
this["enemy" + num].dead = true;
}
if (this["enemy" + num].HIT.hitTest(_root.bullet1) and ((!this["enemy" + num].dead) == true)) {
removeMovieClip(_root.bullet1);
this["enemy" + num].gotoAndStop(4);
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
_root.attachMovie("bloodAttach", "bloodAttach", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
_root.attachMovie("deadEnemy", "deadEnemy", deadEnemyNum, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
if (spearcankill == true) {
this["enemy" + num].die.gotoAndPlay(20);
}
if (spearcankill == false) {
this["enemy" + num].die.gotoAndPlay(40);
}
this["enemy" + num].dead = true;
}
if ((((hero.hero2.HIT.hitTest(this["enemy" + num].hero2) or hero.hero2.HIT2.hitTest(this["enemy" + num].hero2)) or hero.hero2.HIT3.hitTest(this["enemy" + num].hero2)) or hero.jumpy.HIT.hitTest(this["enemy" + num].hero2)) or (((hero.sit.HIT2.hitTest(this["enemy" + num].hero2) and (this["enemy" + num].HIT._currentframe > 1)) and (_root.blink._currentframe == 1)) and ((!shieldDead) == true))) {
_root.attachMovie("bloodAttach0Defence", "bloodAttach0Defence", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.hero2.HIT.HITin.gotoAndPlay(2);
hero.hero2.HIT2.HITin.gotoAndPlay(2);
hero.hero2.HIT3.HITin.gotoAndPlay(2);
hero.jumpy.HIT.HITin.gotoAndPlay(2);
if (this["enemy" + num]._xscale == 100) {
this["enemy" + num]._x = this["enemy" + num]._x + 30;
}
if (this["enemy" + num]._xscale == -100) {
this["enemy" + num]._x = this["enemy" + num]._x - 30;
}
}
shieldDead == false;
if ((((((_root.hero.HIT._currentframe == 2) and (_root.blink._currentframe == 1)) and ((!shieldDead) == true)) and this["enemy" + num].hero2.HIT.hitTest(hero)) or this["enemy" + num].hero2.HIT2.hitTest(hero)) or this["enemy" + num].jumpy.jumpHIT.HIT.hitTest(hero)) {
_root.attachMovie("bloodAttach0Defence2", "bloodAttach0Defence2", 50, {_x:hero._x, _y:hero._y - 50});
this["enemy" + num].hero2.HIT.HITin.gotoAndPlay(2);
this["enemy" + num].hero2.HIT2.HITin.gotoAndPlay(2);
this["enemy" + num].jumpy.jumpHIT.HIT.HITin.gotoAndPlay(2);
if (this["enemy" + num]._xscale == -100) {
hero._x = hero._x + 30;
}
if (this["enemy" + num]._xscale == 100) {
hero._x = hero._x - 30;
}
}
if ((this["enemy" + num].live == true) and (this["enemy" + num].dead == true)) {
this["enemy" + num].gotoAndStop(7);
this["enemy" + num].time = this["enemy" + num].time - 1;
if (this["enemy" + num].time <= 0) {
this["enemy" + num].time = random(100) + 20;
this["enemy" + num].HP = _root.enemyHP;
this["enemy" + num].gotoAndStop(1);
this["enemy" + num].live = false;
this["enemy" + num].dead = false;
this["enemy" + num]._x = menu._x - livePosition;
this["enemy" + num]._y = hero._y;
}
}
if (this["enemy" + num]._x <= (menu._x - 660)) {
this["enemy" + num]._y = hero._y;
this["enemy" + num]._x = menu._x - livePosition;
} else if (this["enemy" + num]._x >= (menu._x + 660)) {
this["enemy" + num]._y = hero._y;
this["enemy" + num]._x = menu._x - livePosition;
}
if (this["enemy" + num].die.spearReSpawn == true) {
this["enemy" + num].die.spearReSpawn = false;
_root.attachMovie("SpearFall", "SpearFall", 100, {_x:this["enemy" + num]._x - 50, _y:this["enemy" + num]._y});
}
if (_root.groundHIT1.hitTest(_root.bullet0) and (_root.spearcankill == true)) {
_root.attachMovie("SpearFall", "SpearFall", 100, {_x:_root.bullet0._x, _y:_root.bullet0._y - 8});
removeMovieClip(_root.bullet0);
}
if (_root.groundHIT1.hitTest(_root.bullet1) and (_root.spearcankill == true)) {
_root.attachMovie("SpearFall", "SpearFall", 100, {_x:_root.bullet1._x, _y:_root.bullet1._y - 8});
removeMovieClip(_root.bullet1);
}
if (_root.groundHIT2.hitTest(_root.bullet0) and (_root.spearcankill == true)) {
_root.attachMovie("SpearFall", "SpearFall", 100, {_x:_root.bullet0._x, _y:_root.bullet0._y - 8});
removeMovieClip(_root.bullet0);
}
if (_root.groundHIT2.hitTest(_root.bullet1) and (_root.spearcankill == true)) {
_root.attachMovie("SpearFall", "SpearFall", 100, {_x:_root.bullet1._x, _y:_root.bullet1._y - 8});
removeMovieClip(_root.bullet1);
}
num++;
}
_x = (_x - Math.round((_x - (300 - ScrollOb._x)) / 10));
_y = (_y - Math.round((_y - (300 - ScrollOb._y)) / 10));
ScrollOb = hero;
menu._x = (-_x) + 300;
menu._y = (-_y) + 200;
wind._x = (-_x) + 300;
wind._y = (-_y) + 200;
snow._x = (-_x) + 43.4;
snow._y = (-_y) - 15.2;
menu2._x = (-_x) + 300;
menu2._y = (-_y) + 200;
maskRoot._x = (-_x) + 300;
maskRoot._y = (-_y) + 200;
bambook._x = (-_x) + 300;
groundHIT1._x = (-_x) + 1200;
groundHIT2._x = (-_x) - 600;
levelEnd._x = (-_x) + 300;
levelEnd._y = (-_y) + 200;
attachBM._x = (-_x) + 300;
attachBM._y = (-_y) + 200;
hero.gotoAndStop(frame);
jump = Key.isDown(38);
hero.vy = hero.vy + gravity;
hero._x = hero._x + hero.vx;
hero._y = hero._y + hero.vy;
if ((!pause) == true) {
if (jump) {
jumpnum = jumpnum - 1;
if (hero.grounded) {
hero.vy = -hero.jumpPower;
frame = "jump";
}
}
}
if (left) {
hero.vx = hero.vx - hero.spd;
hero._xscale = -100;
frame = "run";
} else if (right) {
hero.vx = hero.vx + hero.spd;
hero._xscale = 100;
frame = "run";
} else if (hero.grounded) {
hero.vx = hero.vx * 0.9;
frame = "stand";
} else {
frame = "jump";
}
if ((!pause) == true) {
if (Math.abs(hero.vx) > hero.maxSpd) {
hero.vx = hero.vx * 0.9;
}
}
hero.grounded = false;
if (ground.hitTest(hero._x, hero._y, true)) {
hero.vy = -Math.abs(hero.vy * 0.4);
hero.grounded = true;
frame = "stand";
while (ground.hitTest(hero._x, hero._y, true)) {
hero._y = hero._y - 0.2;
}
}
if (ground.hitTest(hero._x - (hero._width / 2), hero._y - (hero._height / 2), true)) {
hero.vx = Math.abs(hero.vx * 0.4);
while (ground.hitTest(hero._x - (hero._width / 2), hero._y - (hero._height / 2), true)) {
hero._x = hero._x + 0.2;
}
} else if (ground.hitTest(hero._x + (hero._width / 2), hero._y - (hero._height / 2), true)) {
hero.vx = -Math.abs(hero.vx * 0.4);
while (ground.hitTest(hero._x + (hero._width / 2), hero._y - (hero._height / 2), true)) {
hero._x = hero._x - 0.2;
}
}
}
};
stop();
Instance of Symbol 1481 MovieClip "menu" in Frame 48
onClipEvent (load) {
this.gotoAndStop(4);
}
Instance of Symbol 1494 MovieClip in Frame 48
onClipEvent (enterFrame) {
if (_root.groundHIT2.hitTest(this.HIT)) {
this._x = _root.groundHIT1._x - 200;
this.gotoAndStop(random(2) + 1);
} else if (_root.groundHIT1.hitTest(this.HIT)) {
this._x = _root.groundHIT2._x + 200;
this.gotoAndStop(random(2) + 1);
}
trace(this._x);
}
Instance of Symbol 1500 MovieClip "hero" in Frame 48
onClipEvent (enterFrame) {
if (((Key.isDown(40) and Key.isDown(37)) and Key.isDown(39)) and ((!_root.heroDead) == true)) {
this._x = this._x - run;
}
if (_root.heroDead == true) {
this.state = 4;
}
if ((Key.isDown(40) and ((!air) == true)) and ((!_root.heroDead) == true)) {
if (this._xscale == 100) {
this._x = this._x - run3;
if ((!run3) <= 0) {
run3--;
}
}
if (this._xscale == -100) {
this._x = this._x + run3;
if ((!run3) <= 0) {
run3--;
}
}
state = 5;
if (Key.isDown(37) and ((!_root.heroDead) == true)) {
_x = (_x + run);
}
if (Key.isDown(39) and ((!_root.heroDead) == true)) {
_x = (_x - run);
}
}
if (((state == 5) and (_root.spearflyCheker == true)) and ((!_root.heroDead) == true)) {
_root.spearflyCheker = false;
_root.spearfly = false;
_root.sword = 11;
}
if (((state == 5) and (_root.arrowflyCheker == true)) and ((!_root.heroDead) == true)) {
_root.arrowflyCheker = false;
_root.arrowfly = false;
}
if (((Key.isDown(38) and (_root.jump2 == true)) and ((!spearfly) == true)) and ((!_root.heroDead) == true)) {
_root.hero.vy = -_root.hero.jumpPower;
_root.jumpnum = 100;
}
if (((air == true) and (_root.spearflyCheker == true)) and ((!_root.heroDead) == true)) {
_root.spearflyCheker = false;
_root.spearfly = false;
_root.sword = 11;
}
if (((air == true) and (_root.arrowflyCheker == true)) and ((!_root.heroDead) == true)) {
_root.arrowflyCheker = false;
_root.arrowfly = false;
}
if (((!Key.isDown(38)) and (_root.jumpnum <= 2)) and ((!_root.heroDead) == true)) {
_root.jump2 = true;
} else {
_root.jump2 = false;
}
if ((!Key.isDown(40)) and ((!_root.heroDead) == true)) {
run3 = run;
}
if (Key.isDown(37) and ((!_root.heroDead) == true)) {
run2 = run;
_x = (_x - run);
this._xscale = 100;
this.legs.play();
}
if (((!(Key.isDown(37) or Key.isDown(39))) and (!Key.isDown(40))) and ((!_root.heroDead) == true)) {
this.legs.gotoAndStop(1);
if (this._xscale == 100) {
this._x = this._x - run2;
if ((!run2) <= 0) {
run2--;
}
}
if (this._xscale == -100) {
this._x = this._x + run2;
if ((!run2) <= 0) {
run2--;
}
}
}
if ((Key.isDown(37) && (Key.isDown(39))) and ((!_root.heroDead) == true)) {
this._x = this._x + run;
this._xscale = -100;
this.legs.play();
}
if (((air == true) && (Key.isDown(37))) and ((!_root.heroDead) == true)) {
state = 3;
}
if (Key.isDown(39) and ((!_root.heroDead) == true)) {
run2 = run;
_x = (_x + run);
this._xscale = -100;
this.legs.play();
}
if (((air == true) && (Key.isDown(39))) and ((!_root.heroDead) == true)) {
state = 3;
}
gotoAndStop(state);
if ((Key.isDown(65) && (air == true)) and ((!_root.heroDead) == true)) {
_root.hero.jumping.gotoAndPlay(6);
}
if (((Key.isDown(65) and (Key.isDown(37) or Key.isDown(39))) and ((!air) == true)) and ((!_root.heroDead) == true)) {
_root.standAttack = false;
_root.runAttack = true;
}
this._y = this._y + 8;
_y = (_y + gravity);
if (air == true) {
state = 3;
}
if (_root.ground.hitTest(_x, _y, true)) {
air = false;
_root.jumpnum = 2;
} else {
air = true;
state = 3;
}
if (air == false) {
state = 1;
}
if ((_root.arrowfly == true) and ((!_root.gotArrows) == false)) {
_root.menu2.arrows.gotoAndStop(_root.menu2.arrows._currentframe + 1);
_root.spearT = false;
totalbullet++;
if (totalbullet > 1) {
totalbullet = 0;
}
if (_root.hero._xscale == -100) {
_root.attachMovie("bullet", "bullet" + totalbullet, totalbullet, {_x:_x, _y:_y, _rotation:this._rotation});
} else if (_root.hero._xscale == 100) {
_root.attachMovie("bullet2", "bullet" + totalbullet, totalbullet, {_x:_x, _y:_y, _rotation:this._rotation});
}
}
if (_root.spearfly == true) {
_root.spearT = true;
totalbullet++;
if (totalbullet > 1) {
totalbullet = 0;
}
if (_root.hero._xscale == -100) {
_root.attachMovie("bullet", "bullet" + totalbullet, totalbullet, {_x:_x, _y:_y, _rotation:this._rotation});
} else if (_root.hero._xscale == 100) {
_root.attachMovie("bullet2", "bullet" + totalbullet, totalbullet, {_x:_x, _y:_y, _rotation:this._rotation});
}
}
}
onClipEvent (load) {
totalbullet = 0;
}
Instance of Symbol 1501 MovieClip "steam" in Frame 48
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 1505 MovieClip "swordOrBow" in Frame 48
onClipEvent (enterFrame) {
if (_root.swords == true) {
this.gotoAndStop(1);
}
if (_root.bows == true) {
this.gotoAndStop(2);
}
}
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 1502 MovieClip "blink" in Frame 48
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 616 MovieClip "groundHIT1" in Frame 48
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 616 MovieClip "groundHIT2" in Frame 48
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 1547 MovieClip "menu2" in Frame 48
onClipEvent (enterFrame) {
this.swapDepths((this._y * 100) + this._x);
}
Instance of Symbol 1549 MovieClip "levelEnd" in Frame 48
onClipEvent (enterFrame) {
this.swapDepths((this._y * 1000) + this._x);
}
Frame 49
levelFrame = 50;
gotoAndStop (30);
_x = 0;
_y = 0;
Frame 50
swordE = 7;
bootsE = 32;
pantsE = 32;
weaponDamageE = 60;
bodyE = 5;
helmetE = 6;
shieldE = 4;
shield2E = 3;
shieldhandE = 4;
attackNum = 0;
attackNum2 = 0;
attackNum3 = 0;
attackNum4 = 0;
attackNum5 = 0;
gotArrows = true;
weaponDamage = 1;
HITMinusArmour = 0;
enemyHITPower = 100;
menu2.location.location = "Denmark";
_root.attachMovie("attachBM", "attachBM", 50, {_x:300, _y:200});
removeMovieClip(_root.heroAttach);
enemies = 3;
enemyHP = 30;
blooddummy._x = 0;
blooddummy._y = 0;
dep = 200;
gravity = 0.5;
hero.vx = 0;
hero.vy = 0;
hero.jumpPower = 20;
hero.grounded = false;
ScrollOb = hero;
spearfly = false;
spear = true;
hero.run = 7;
deadEnemyNum = 1000;
num = 0;
while (num <= enemies) {
this["enemy" + num].power = 20;
this["enemy" + num].HP = 20;
groundGNum = 1000;
groundGNum2 = -500;
this["enemy" + num].time = 500;
num++;
}
roundTime = 2300;
sound2 = true;
music = true;
music2 = false;
music3 = false;
music4 = false;
onEnterFrame = function () {
trace(roundTime);
roundTime = roundTime - 1;
if ((roundTime <= 0) and ((!heroDead) == true)) {
hero.HIT.gotoAndStop(2);
levelEnd.play();
removeMovieClip(menu2);
}
if ((!_root.HITMinusArmour) <= 1) {
_root.HITMinusArmour = _root.enemyHITPower - _root.armour;
}
if (_root.HITMinusArmour <= 1) {
_root.HITMinusArmour = 1;
}
trace(_root.HITMinusArmour);
if ((!pause) == true) {
num = 0;
while (num <= enemies) {
if (hero._x >= groundGNum) {
groundGNum = groundGNum + 500;
groundGNum2 = groundGNum2 + 500;
ground._x = ground._x + 500;
} else if (hero._x <= groundGNum2) {
groundGNum2 = groundGNum2 - 500;
groundGNum = groundGNum - 500;
ground._x = ground._x - 500;
}
if (EXP >= 1000) {
levelUP = levelUP + 1;
EXP = 0;
}
deadEnemyNum++;
this["enemy" + num];
if ((this["enemy" + num].AAA.jumpFrame == true) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num].air = true;
this["enemy" + num].gotoAndStop(3);
} else if (((this["enemy" + num].AAA.jumpFrame == false) and ground.hitTest(this["enemy" + num]._x, this["enemy" + num]._y + 5, true)) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num].air = false;
this["enemy" + num].power = 20;
this["enemy" + num].gotoAndStop(1);
}
if ((this["enemy" + num].AAA._currentframe == 52) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num].AAA.gotoAndPlay(random(500) + 1);
}
if (ground.hitTest(this["enemy" + num]._x - 6, this["enemy" + num]._y - 10, true) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num]._x = this["enemy" + num]._x + enemySpeed;
} else if (ground.hitTest(this["enemy" + num]._x + 6, this["enemy" + num]._y - 10, true) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num]._x = this["enemy" + num]._x - enemySpeed;
}
if ((this["enemy" + num]._currentframe == 3) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num].air = true;
this["enemy" + num]._y = this["enemy" + num]._y - this["enemy" + num].power;
if ((!this["enemy" + num].power) <= 0) {
this["enemy" + num].power = this["enemy" + num].power - 0.5;
if (this["enemy" + num]._xscale == 100) {
this["enemy" + num]._x = this["enemy" + num]._x - enemySpeed;
}
if (this["enemy" + num]._xscale == -100) {
this["enemy" + num]._x = this["enemy" + num]._x + enemySpeed;
}
}
if ((this["enemy" + num]._x >= (hero._x + 1)) and (this["enemy" + num]._xscale == -100)) {
this["enemy" + num].jumpy.gotoAndStop(10);
} else if ((this["enemy" + num]._x <= (hero._x - 1)) and (this["enemy" + num]._xscale == 100)) {
this["enemy" + num].jumpy.gotoAndStop(10);
}
}
if ((this["enemy" + num].hitTest(hero) and ((!_root.heroDead) == true)) and (this["enemy" + num].hero2.canAttack == true)) {
this["enemy" + num].hero2.canAttack = false;
this["enemy" + num].hero2.gotoAndPlay(_root.enemyRandomAttack);
}
if (this["enemy" + num].hero2.HIT.hitTest(hero.HIT)) {
this["enemy" + num].hero2.HIT.HITin.gotoAndPlay(2);
blink.play();
}
if (this["enemy" + num].jumpy.jumpHIT.HIT.hitTest(hero.HIT)) {
this["enemy" + num].jumpy.jumpHIT.HIT.HITin.gotoAndPlay(2);
blink.play();
}
if (this["enemy" + num].hero2.HIT2.hitTest(hero.HIT)) {
this["enemy" + num].hero2.HIT2.HITin.gotoAndPlay(2);
if (this["enemy" + num]._xscale == 100) {
hero._x = hero._x - 50;
blink.play();
}
if (this["enemy" + num]._xscale == -100) {
hero._x = hero._x + 50;
blink.play();
}
}
if (((hero._x > this["enemy" + num]._x) and ((!this["enemy" + num].dead) == true)) and ((!this["enemy" + num].air) == true)) {
this["enemy" + num]._xscale = -100;
} else if (((hero._x < this["enemy" + num]._x) and ((!this["enemy" + num].dead) == true)) and ((!this["enemy" + num].air) == true)) {
this["enemy" + num]._xscale = 100;
}
if (((((hero._x > (this["enemy" + num]._x + 70)) and ((!this["enemy" + num].dead) == true)) and this["enemy" + num].hitTest(this["enemy" + num].AAA)) and ((!this["enemy" + num].air) == true)) and ((!this["enemy" + num].hero2.kick) == true)) {
this["enemy" + num].legs.gotoAndStop(4);
this["enemy" + num]._x = this["enemy" + num]._x + enemySpeed;
} else if (((((hero._x < (this["enemy" + num]._x - 70)) and ((!this["enemy" + num].dead) == true)) and this["enemy" + num].hitTest(this["enemy" + num].AAA)) and ((!this["enemy" + num].air) == true)) and ((!this["enemy" + num].hero2.kick) == true)) {
this["enemy" + num]._x = this["enemy" + num]._x - enemySpeed;
this["enemy" + num].legs.gotoAndStop(4);
} else {
this["enemy" + num].legs.gotoAndStop(1);
}
this["enemy" + num]._y = this["enemy" + num]._y + 8;
while (ground.hitTest(this["enemy" + num]._x, this["enemy" + num]._y, true)) {
this["enemy" + num]._y = this["enemy" + num]._y - 1;
}
while (ground.hitTest(hero._root.SpearFall._x, hero._root.SpearFall._y, true)) {
_root.SpearFall._y = _root.SpearFall._y - 1;
}
if (hero.hero2.HIT.hitTest(this["enemy" + num].HIT) and ((!this["enemy" + num].dead) == true)) {
_root.attachMovie("bloodAttach", "bloodAttach", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.hero2.HIT.HITin.gotoAndPlay(2);
this["enemy" + num].HP = this["enemy" + num].HP - weaponDamage;
if (this["enemy" + num].HP <= 0) {
_root.attachMovie("heartAttach", "heartAttach", 38, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y});
gold = gold + (random(50) + 10);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
if ((sword == 5) or (sword == 8)) {
this["enemy" + num].die.gotoAndPlay(80);
} else {
this["enemy" + num].die.gotoAndPlay(1);
}
}
}
if (hero.hero2.HIT2.hitTest(this["enemy" + num].HIT) and ((!this["enemy" + num].dead) == true)) {
_root.attachMovie("bloodAttachKICK", "bloodAttachKICK", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.hero2.HIT2.HITin.gotoAndPlay(2);
this["enemy" + num].HP = this["enemy" + num].HP - (Math.ceil(weaponDamage) * 5);
if (this["enemy" + num].HP <= 0) {
_root.attachMovie("heartAttach", "heartAttach", 38, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y});
gold = gold + (random(50) + 10);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
this["enemy" + num].die.gotoAndPlay(60);
}
}
if (hero.hero2.HIT3.hitTest(this["enemy" + num].HIT) and ((!this["enemy" + num].dead) == true)) {
_root.attachMovie("bloodAttachKICK", "bloodAttachKICK", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.hero2.HIT3.HITin.gotoAndPlay(2);
this["enemy" + num].gotoAndStop(2);
this["enemy" + num].gotKicked.gotoAndPlay(37);
this["enemy" + num].HP = this["enemy" + num].HP - (Math.ceil(weaponDamage) / 3);
if (hero._xscale == 100) {
this["enemy" + num]._x = this["enemy" + num]._x - 60;
}
if (hero._xscale == -100) {
this["enemy" + num]._x = this["enemy" + num]._x + 60;
}
if (this["enemy" + num].HP <= 0) {
_root.attachMovie("heartAttach", "heartAttach", 38, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y});
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
this["enemy" + num].die.gotoAndPlay(60);
}
}
if (hero.jumpy.HIT.hitTest(this["enemy" + num].HIT) and ((!this["enemy" + num].dead) == true)) {
_root.attachMovie("bloodAttachKICK", "bloodAttachKICK", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.jumpy.HIT.HITin.gotoAndStop(2);
this["enemy" + num].HP = this["enemy" + num].HP - (weaponDamage * 3);
if (this["enemy" + num].HP <= 0) {
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
this["enemy" + num].die.gotoAndPlay(100);
}
}
if (hero.sit.HIT.hitTest(this["enemy" + num].legs) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num].gotoAndStop(2);
_root.attachMovie("bloodAttachKICK", "bloodAttachKICK", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.sit.HIT.HITin.gotoAndStop(2);
this["enemy" + num].HP = this["enemy" + num].HP - (Math.ceil(weaponDamage) / 3);
if (hero._xscale == 100) {
this["enemy" + num]._x = this["enemy" + num]._x - 50;
}
if (hero._xscale == -100) {
this["enemy" + num]._x = this["enemy" + num]._x + 50;
}
if (this["enemy" + num].HP <= 0) {
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
this["enemy" + num].die.gotoAndPlay(1);
}
}
if (hero.sit.HIT2.hitTest(this["enemy" + num].HIT) and ((!this["enemy" + num].dead) == true)) {
_root.attachMovie("bloodAttach", "bloodAttach", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.sit.HIT2.HITin.gotoAndStop(2);
this["enemy" + num].HP = this["enemy" + num].HP - (weaponDamage * 2);
if (this["enemy" + num].HP <= 0) {
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
this["enemy" + num].die.gotoAndPlay(80);
}
}
if (this["enemy" + num].hitTest(_root.bullet0) and ((!this["enemy" + num].dead) == true)) {
removeMovieClip(_root.bullet0);
this["enemy" + num].gotoAndStop(4);
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
_root.attachMovie("bloodAttach", "bloodAttach", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
_root.attachMovie("deadEnemy", "deadEnemy", deadEnemyNum, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
if (spearcankill == true) {
this["enemy" + num].die.gotoAndPlay(20);
}
if (spearcankill == false) {
this["enemy" + num].die.gotoAndPlay(40);
}
this["enemy" + num].dead = true;
}
if (this["enemy" + num].HIT.hitTest(_root.bullet1) and ((!this["enemy" + num].dead) == true)) {
removeMovieClip(_root.bullet1);
this["enemy" + num].gotoAndStop(4);
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
_root.attachMovie("bloodAttach", "bloodAttach", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
_root.attachMovie("deadEnemy", "deadEnemy", deadEnemyNum, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
if (spearcankill == true) {
this["enemy" + num].die.gotoAndPlay(20);
}
if (spearcankill == false) {
this["enemy" + num].die.gotoAndPlay(40);
}
this["enemy" + num].dead = true;
}
if ((((hero.hero2.HIT.hitTest(this["enemy" + num].hero2) or hero.hero2.HIT2.hitTest(this["enemy" + num].hero2)) or hero.hero2.HIT3.hitTest(this["enemy" + num].hero2)) or hero.jumpy.HIT.hitTest(this["enemy" + num].hero2)) or (((hero.sit.HIT2.hitTest(this["enemy" + num].hero2) and (this["enemy" + num].HIT._currentframe > 1)) and (_root.blink._currentframe == 1)) and ((!shieldDead) == true))) {
_root.attachMovie("bloodAttach0Defence", "bloodAttach0Defence", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.hero2.HIT.HITin.gotoAndPlay(2);
hero.hero2.HIT2.HITin.gotoAndPlay(2);
hero.hero2.HIT3.HITin.gotoAndPlay(2);
hero.jumpy.HIT.HITin.gotoAndPlay(2);
if (this["enemy" + num]._xscale == 100) {
this["enemy" + num]._x = this["enemy" + num]._x + 30;
}
if (this["enemy" + num]._xscale == -100) {
this["enemy" + num]._x = this["enemy" + num]._x - 30;
}
}
shieldDead == false;
if ((((((_root.hero.HIT._currentframe == 2) and (_root.blink._currentframe == 1)) and ((!shieldDead) == true)) and this["enemy" + num].hero2.HIT.hitTest(hero)) or this["enemy" + num].hero2.HIT2.hitTest(hero)) or this["enemy" + num].jumpy.jumpHIT.HIT.hitTest(hero)) {
_root.attachMovie("bloodAttach0Defence2", "bloodAttach0Defence2", 50, {_x:hero._x, _y:hero._y - 50});
this["enemy" + num].hero2.HIT.HITin.gotoAndPlay(2);
this["enemy" + num].hero2.HIT2.HITin.gotoAndPlay(2);
this["enemy" + num].jumpy.jumpHIT.HIT.HITin.gotoAndPlay(2);
if (this["enemy" + num]._xscale == -100) {
hero._x = hero._x + 30;
}
if (this["enemy" + num]._xscale == 100) {
hero._x = hero._x - 30;
}
}
if ((this["enemy" + num].live == true) and (this["enemy" + num].dead == true)) {
this["enemy" + num].gotoAndStop(7);
this["enemy" + num].time = this["enemy" + num].time - 1;
if (this["enemy" + num].time <= 0) {
this["enemy" + num].time = random(400) + 20;
this["enemy" + num].HP = _root.enemyHP;
this["enemy" + num].gotoAndStop(1);
this["enemy" + num].live = false;
this["enemy" + num].dead = false;
this["enemy" + num]._x = menu._x - livePosition;
this["enemy" + num]._y = hero._y;
}
}
if (this["enemy" + num]._x <= (menu._x - 660)) {
this["enemy" + num]._y = hero._y;
this["enemy" + num]._x = menu._x - livePosition;
} else if (this["enemy" + num]._x >= (menu._x + 660)) {
this["enemy" + num]._y = hero._y;
this["enemy" + num]._x = menu._x - livePosition;
}
if (this["enemy" + num].die.spearReSpawn == true) {
this["enemy" + num].die.spearReSpawn = false;
_root.attachMovie("SpearFall", "SpearFall", 100, {_x:this["enemy" + num]._x - 50, _y:this["enemy" + num]._y});
}
if (_root.groundHIT1.hitTest(_root.bullet0) and (_root.spearcankill == true)) {
_root.attachMovie("SpearFall", "SpearFall", 100, {_x:_root.bullet0._x, _y:_root.bullet0._y - 8});
removeMovieClip(_root.bullet0);
}
if (_root.groundHIT1.hitTest(_root.bullet1) and (_root.spearcankill == true)) {
_root.attachMovie("SpearFall", "SpearFall", 100, {_x:_root.bullet1._x, _y:_root.bullet1._y - 8});
removeMovieClip(_root.bullet1);
}
if (_root.groundHIT2.hitTest(_root.bullet0) and (_root.spearcankill == true)) {
_root.attachMovie("SpearFall", "SpearFall", 100, {_x:_root.bullet0._x, _y:_root.bullet0._y - 8});
removeMovieClip(_root.bullet0);
}
if (_root.groundHIT2.hitTest(_root.bullet1) and (_root.spearcankill == true)) {
_root.attachMovie("SpearFall", "SpearFall", 100, {_x:_root.bullet1._x, _y:_root.bullet1._y - 8});
removeMovieClip(_root.bullet1);
}
num++;
}
_x = (_x - Math.round((_x - (300 - ScrollOb._x)) / 10));
_y = (_y - Math.round((_y - (300 - ScrollOb._y)) / 10));
ScrollOb = hero;
menu._x = (-_x) + 300;
menu._y = (-_y) + 200;
wind._x = (-_x) + 300;
wind._y = (-_y) + 200;
snow._x = (-_x) + 43.4;
snow._y = (-_y) - 15.2;
menu2._x = (-_x) + 300;
menu2._y = (-_y) + 200;
maskRoot._x = (-_x) + 300;
maskRoot._y = (-_y) + 200;
bambook._x = (-_x) + 300;
groundHIT1._x = (-_x) + 1200;
groundHIT2._x = (-_x) - 600;
levelEnd._x = (-_x) + 300;
levelEnd._y = (-_y) + 200;
attachBM._x = (-_x) + 300;
attachBM._y = (-_y) + 200;
hero.gotoAndStop(frame);
jump = Key.isDown(38);
hero.vy = hero.vy + gravity;
hero._x = hero._x + hero.vx;
hero._y = hero._y + hero.vy;
if ((!pause) == true) {
if (jump) {
jumpnum = jumpnum - 1;
if (hero.grounded) {
hero.vy = -hero.jumpPower;
frame = "jump";
}
}
}
if (left) {
hero.vx = hero.vx - hero.spd;
hero._xscale = -100;
frame = "run";
} else if (right) {
hero.vx = hero.vx + hero.spd;
hero._xscale = 100;
frame = "run";
} else if (hero.grounded) {
hero.vx = hero.vx * 0.9;
frame = "stand";
} else {
frame = "jump";
}
if ((!pause) == true) {
if (Math.abs(hero.vx) > hero.maxSpd) {
hero.vx = hero.vx * 0.9;
}
}
hero.grounded = false;
if (ground.hitTest(hero._x, hero._y, true)) {
hero.vy = -Math.abs(hero.vy * 0.4);
hero.grounded = true;
frame = "stand";
while (ground.hitTest(hero._x, hero._y, true)) {
hero._y = hero._y - 0.2;
}
}
if (ground.hitTest(hero._x - (hero._width / 2), hero._y - (hero._height / 2), true)) {
hero.vx = Math.abs(hero.vx * 0.4);
while (ground.hitTest(hero._x - (hero._width / 2), hero._y - (hero._height / 2), true)) {
hero._x = hero._x + 0.2;
}
} else if (ground.hitTest(hero._x + (hero._width / 2), hero._y - (hero._height / 2), true)) {
hero.vx = -Math.abs(hero.vx * 0.4);
while (ground.hitTest(hero._x + (hero._width / 2), hero._y - (hero._height / 2), true)) {
hero._x = hero._x - 0.2;
}
}
}
};
stop();
Instance of Symbol 1481 MovieClip "menu" in Frame 50
onClipEvent (load) {
this.gotoAndStop(3);
}
Instance of Symbol 1491 MovieClip "ground" in Frame 50
onClipEvent (load) {
this.gotoAndStop(2);
}
Instance of Symbol 1494 MovieClip in Frame 50
onClipEvent (enterFrame) {
if (_root.groundHIT2.hitTest(this.HIT)) {
this._x = _root.groundHIT1._x - 200;
this.gotoAndStop(random(2) + 1);
} else if (_root.groundHIT1.hitTest(this.HIT)) {
this._x = _root.groundHIT2._x + 200;
this.gotoAndStop(random(2) + 1);
}
trace(this._x);
}
Instance of Symbol 1500 MovieClip "hero" in Frame 50
onClipEvent (enterFrame) {
if (((Key.isDown(40) and Key.isDown(37)) and Key.isDown(39)) and ((!_root.heroDead) == true)) {
this._x = this._x - run;
}
if (_root.heroDead == true) {
this.state = 4;
}
if ((Key.isDown(40) and ((!air) == true)) and ((!_root.heroDead) == true)) {
if (this._xscale == 100) {
this._x = this._x - run3;
if ((!run3) <= 0) {
run3--;
}
}
if (this._xscale == -100) {
this._x = this._x + run3;
if ((!run3) <= 0) {
run3--;
}
}
state = 5;
if (Key.isDown(37) and ((!_root.heroDead) == true)) {
_x = (_x + run);
}
if (Key.isDown(39) and ((!_root.heroDead) == true)) {
_x = (_x - run);
}
}
if (((state == 5) and (_root.spearflyCheker == true)) and ((!_root.heroDead) == true)) {
_root.spearflyCheker = false;
_root.spearfly = false;
_root.sword = 11;
}
if (((state == 5) and (_root.arrowflyCheker == true)) and ((!_root.heroDead) == true)) {
_root.arrowflyCheker = false;
_root.arrowfly = false;
}
if (((Key.isDown(38) and (_root.jump2 == true)) and ((!spearfly) == true)) and ((!_root.heroDead) == true)) {
_root.hero.vy = -_root.hero.jumpPower;
_root.jumpnum = 100;
}
if (((air == true) and (_root.spearflyCheker == true)) and ((!_root.heroDead) == true)) {
_root.spearflyCheker = false;
_root.spearfly = false;
_root.sword = 11;
}
if (((air == true) and (_root.arrowflyCheker == true)) and ((!_root.heroDead) == true)) {
_root.arrowflyCheker = false;
_root.arrowfly = false;
}
if (((!Key.isDown(38)) and (_root.jumpnum <= 2)) and ((!_root.heroDead) == true)) {
_root.jump2 = true;
} else {
_root.jump2 = false;
}
if ((!Key.isDown(40)) and ((!_root.heroDead) == true)) {
run3 = run;
}
if (Key.isDown(37) and ((!_root.heroDead) == true)) {
run2 = run;
_x = (_x - run);
this._xscale = 100;
this.legs.play();
}
if (((!(Key.isDown(37) or Key.isDown(39))) and (!Key.isDown(40))) and ((!_root.heroDead) == true)) {
this.legs.gotoAndStop(1);
if (this._xscale == 100) {
this._x = this._x - run2;
if ((!run2) <= 0) {
run2--;
}
}
if (this._xscale == -100) {
this._x = this._x + run2;
if ((!run2) <= 0) {
run2--;
}
}
}
if ((Key.isDown(37) && (Key.isDown(39))) and ((!_root.heroDead) == true)) {
this._x = this._x + run;
this._xscale = -100;
this.legs.play();
}
if (((air == true) && (Key.isDown(37))) and ((!_root.heroDead) == true)) {
state = 3;
}
if (Key.isDown(39) and ((!_root.heroDead) == true)) {
run2 = run;
_x = (_x + run);
this._xscale = -100;
this.legs.play();
}
if (((air == true) && (Key.isDown(39))) and ((!_root.heroDead) == true)) {
state = 3;
}
gotoAndStop(state);
if ((Key.isDown(65) && (air == true)) and ((!_root.heroDead) == true)) {
_root.hero.jumping.gotoAndPlay(6);
}
if (((Key.isDown(65) and (Key.isDown(37) or Key.isDown(39))) and ((!air) == true)) and ((!_root.heroDead) == true)) {
_root.standAttack = false;
_root.runAttack = true;
}
this._y = this._y + 8;
_y = (_y + gravity);
if (air == true) {
state = 3;
}
if (_root.ground.hitTest(_x, _y, true)) {
air = false;
_root.jumpnum = 2;
} else {
air = true;
state = 3;
}
if (air == false) {
state = 1;
}
if ((_root.arrowfly == true) and ((!_root.gotArrows) == false)) {
_root.menu2.arrows.gotoAndStop(_root.menu2.arrows._currentframe + 1);
_root.spearT = false;
totalbullet++;
if (totalbullet > 1) {
totalbullet = 0;
}
if (_root.hero._xscale == -100) {
_root.attachMovie("bullet", "bullet" + totalbullet, totalbullet, {_x:_x, _y:_y, _rotation:this._rotation});
} else if (_root.hero._xscale == 100) {
_root.attachMovie("bullet2", "bullet" + totalbullet, totalbullet, {_x:_x, _y:_y, _rotation:this._rotation});
}
}
if (_root.spearfly == true) {
_root.spearT = true;
totalbullet++;
if (totalbullet > 1) {
totalbullet = 0;
}
if (_root.hero._xscale == -100) {
_root.attachMovie("bullet", "bullet" + totalbullet, totalbullet, {_x:_x, _y:_y, _rotation:this._rotation});
} else if (_root.hero._xscale == 100) {
_root.attachMovie("bullet2", "bullet" + totalbullet, totalbullet, {_x:_x, _y:_y, _rotation:this._rotation});
}
}
}
onClipEvent (load) {
totalbullet = 0;
}
Instance of Symbol 1501 MovieClip "steam" in Frame 50
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 1505 MovieClip "swordOrBow" in Frame 50
onClipEvent (enterFrame) {
if (_root.swords == true) {
this.gotoAndStop(1);
}
if (_root.bows == true) {
this.gotoAndStop(2);
}
}
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 1502 MovieClip "blink" in Frame 50
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 616 MovieClip "groundHIT1" in Frame 50
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 616 MovieClip "groundHIT2" in Frame 50
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 1547 MovieClip "menu2" in Frame 50
onClipEvent (enterFrame) {
this.swapDepths((this._y * 100) + this._x);
}
Instance of Symbol 1549 MovieClip "levelEnd" in Frame 50
onClipEvent (enterFrame) {
this.swapDepths((this._y * 1000) + this._x);
}
Frame 51
levelFrame = 52;
gotoAndStop (30);
_x = 0;
_y = 0;
Frame 52
swordE = 4;
bootsE = 33;
pantsE = 32;
weaponDamageE = 60;
bodyE = 6;
helmetE = 7;
shieldE = 5;
shield2E = 5;
shieldhandE = 9;
attackNum = 0;
attackNum2 = 0;
attackNum3 = 0;
attackNum4 = 0;
attackNum5 = 0;
gotArrows = true;
weaponDamage = 1;
HITMinusArmour = 0;
enemyHITPower = 120;
menu2.location.location = "Trondelag";
_root.attachMovie("attachBM", "attachBM", 50, {_x:300, _y:200});
removeMovieClip(_root.heroAttach);
enemies = 3;
enemyHP = 40;
blooddummy._x = 0;
blooddummy._y = 0;
dep = 200;
gravity = 0.5;
hero.vx = 0;
hero.vy = 0;
hero.jumpPower = 20;
hero.grounded = false;
ScrollOb = hero;
spearfly = false;
spear = true;
hero.run = 7;
deadEnemyNum = 1000;
num = 0;
while (num <= enemies) {
this["enemy" + num].power = 20;
this["enemy" + num].HP = 20;
groundGNum = 1000;
groundGNum2 = -500;
this["enemy" + num].time = 500;
num++;
}
roundTime = 2300;
sound2 = true;
music = true;
music2 = false;
music3 = false;
music4 = false;
onEnterFrame = function () {
trace(roundTime);
roundTime = roundTime - 1;
if ((roundTime <= 0) and ((!heroDead) == true)) {
hero.HIT.gotoAndStop(2);
levelEnd.play();
removeMovieClip(menu2);
}
if ((!_root.HITMinusArmour) <= 1) {
_root.HITMinusArmour = _root.enemyHITPower - _root.armour;
}
if (_root.HITMinusArmour <= 1) {
_root.HITMinusArmour = 1;
}
trace(_root.HITMinusArmour);
if ((!pause) == true) {
num = 0;
while (num <= enemies) {
if (hero._x >= groundGNum) {
groundGNum = groundGNum + 500;
groundGNum2 = groundGNum2 + 500;
ground._x = ground._x + 500;
} else if (hero._x <= groundGNum2) {
groundGNum2 = groundGNum2 - 500;
groundGNum = groundGNum - 500;
ground._x = ground._x - 500;
}
if (EXP >= 1000) {
levelUP = levelUP + 1;
EXP = 0;
}
deadEnemyNum++;
this["enemy" + num];
if ((this["enemy" + num].AAA.jumpFrame == true) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num].air = true;
this["enemy" + num].gotoAndStop(3);
} else if (((this["enemy" + num].AAA.jumpFrame == false) and ground.hitTest(this["enemy" + num]._x, this["enemy" + num]._y + 5, true)) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num].air = false;
this["enemy" + num].power = 20;
this["enemy" + num].gotoAndStop(1);
}
if ((this["enemy" + num].AAA._currentframe == 52) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num].AAA.gotoAndPlay(random(500) + 1);
}
if (ground.hitTest(this["enemy" + num]._x - 6, this["enemy" + num]._y - 10, true) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num]._x = this["enemy" + num]._x + enemySpeed;
} else if (ground.hitTest(this["enemy" + num]._x + 6, this["enemy" + num]._y - 10, true) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num]._x = this["enemy" + num]._x - enemySpeed;
}
if ((this["enemy" + num]._currentframe == 3) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num].air = true;
this["enemy" + num]._y = this["enemy" + num]._y - this["enemy" + num].power;
if ((!this["enemy" + num].power) <= 0) {
this["enemy" + num].power = this["enemy" + num].power - 0.5;
if (this["enemy" + num]._xscale == 100) {
this["enemy" + num]._x = this["enemy" + num]._x - enemySpeed;
}
if (this["enemy" + num]._xscale == -100) {
this["enemy" + num]._x = this["enemy" + num]._x + enemySpeed;
}
}
if ((this["enemy" + num]._x >= (hero._x + 1)) and (this["enemy" + num]._xscale == -100)) {
this["enemy" + num].jumpy.gotoAndStop(10);
} else if ((this["enemy" + num]._x <= (hero._x - 1)) and (this["enemy" + num]._xscale == 100)) {
this["enemy" + num].jumpy.gotoAndStop(10);
}
}
if ((this["enemy" + num].hitTest(hero) and ((!_root.heroDead) == true)) and (this["enemy" + num].hero2.canAttack == true)) {
this["enemy" + num].hero2.canAttack = false;
this["enemy" + num].hero2.gotoAndPlay(_root.enemyRandomAttack);
}
if (this["enemy" + num].hero2.HIT.hitTest(hero.HIT)) {
this["enemy" + num].hero2.HIT.HITin.gotoAndPlay(2);
blink.play();
}
if (this["enemy" + num].jumpy.jumpHIT.HIT.hitTest(hero.HIT)) {
this["enemy" + num].jumpy.jumpHIT.HIT.HITin.gotoAndPlay(2);
blink.play();
}
if (this["enemy" + num].hero2.HIT2.hitTest(hero.HIT)) {
this["enemy" + num].hero2.HIT2.HITin.gotoAndPlay(2);
if (this["enemy" + num]._xscale == 100) {
hero._x = hero._x - 50;
blink.play();
}
if (this["enemy" + num]._xscale == -100) {
hero._x = hero._x + 50;
blink.play();
}
}
if (((hero._x > this["enemy" + num]._x) and ((!this["enemy" + num].dead) == true)) and ((!this["enemy" + num].air) == true)) {
this["enemy" + num]._xscale = -100;
} else if (((hero._x < this["enemy" + num]._x) and ((!this["enemy" + num].dead) == true)) and ((!this["enemy" + num].air) == true)) {
this["enemy" + num]._xscale = 100;
}
if (((((hero._x > (this["enemy" + num]._x + 70)) and ((!this["enemy" + num].dead) == true)) and this["enemy" + num].hitTest(this["enemy" + num].AAA)) and ((!this["enemy" + num].air) == true)) and ((!this["enemy" + num].hero2.kick) == true)) {
this["enemy" + num].legs.gotoAndStop(4);
this["enemy" + num]._x = this["enemy" + num]._x + enemySpeed;
} else if (((((hero._x < (this["enemy" + num]._x - 70)) and ((!this["enemy" + num].dead) == true)) and this["enemy" + num].hitTest(this["enemy" + num].AAA)) and ((!this["enemy" + num].air) == true)) and ((!this["enemy" + num].hero2.kick) == true)) {
this["enemy" + num]._x = this["enemy" + num]._x - enemySpeed;
this["enemy" + num].legs.gotoAndStop(4);
} else {
this["enemy" + num].legs.gotoAndStop(1);
}
this["enemy" + num]._y = this["enemy" + num]._y + 8;
while (ground.hitTest(this["enemy" + num]._x, this["enemy" + num]._y, true)) {
this["enemy" + num]._y = this["enemy" + num]._y - 1;
}
while (ground.hitTest(hero._root.SpearFall._x, hero._root.SpearFall._y, true)) {
_root.SpearFall._y = _root.SpearFall._y - 1;
}
if (hero.hero2.HIT.hitTest(this["enemy" + num].HIT) and ((!this["enemy" + num].dead) == true)) {
_root.attachMovie("bloodAttach", "bloodAttach", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.hero2.HIT.HITin.gotoAndPlay(2);
this["enemy" + num].HP = this["enemy" + num].HP - weaponDamage;
if (this["enemy" + num].HP <= 0) {
_root.attachMovie("heartAttach", "heartAttach", 38, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y});
gold = gold + (random(50) + 10);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
if ((sword == 5) or (sword == 8)) {
this["enemy" + num].die.gotoAndPlay(80);
} else {
this["enemy" + num].die.gotoAndPlay(1);
}
}
}
if (hero.hero2.HIT2.hitTest(this["enemy" + num].HIT) and ((!this["enemy" + num].dead) == true)) {
_root.attachMovie("bloodAttachKICK", "bloodAttachKICK", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.hero2.HIT2.HITin.gotoAndPlay(2);
this["enemy" + num].HP = this["enemy" + num].HP - (Math.ceil(weaponDamage) * 5);
if (this["enemy" + num].HP <= 0) {
_root.attachMovie("heartAttach", "heartAttach", 38, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y});
gold = gold + (random(50) + 10);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
this["enemy" + num].die.gotoAndPlay(60);
}
}
if (hero.hero2.HIT3.hitTest(this["enemy" + num].HIT) and ((!this["enemy" + num].dead) == true)) {
_root.attachMovie("bloodAttachKICK", "bloodAttachKICK", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.hero2.HIT3.HITin.gotoAndPlay(2);
this["enemy" + num].gotoAndStop(2);
this["enemy" + num].gotKicked.gotoAndPlay(37);
this["enemy" + num].HP = this["enemy" + num].HP - (Math.ceil(weaponDamage) / 3);
if (hero._xscale == 100) {
this["enemy" + num]._x = this["enemy" + num]._x - 60;
}
if (hero._xscale == -100) {
this["enemy" + num]._x = this["enemy" + num]._x + 60;
}
if (this["enemy" + num].HP <= 0) {
_root.attachMovie("heartAttach", "heartAttach", 38, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y});
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
this["enemy" + num].die.gotoAndPlay(60);
}
}
if (hero.jumpy.HIT.hitTest(this["enemy" + num].HIT) and ((!this["enemy" + num].dead) == true)) {
_root.attachMovie("bloodAttachKICK", "bloodAttachKICK", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.jumpy.HIT.HITin.gotoAndStop(2);
this["enemy" + num].HP = this["enemy" + num].HP - (weaponDamage * 3);
if (this["enemy" + num].HP <= 0) {
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
this["enemy" + num].die.gotoAndPlay(100);
}
}
if (hero.sit.HIT.hitTest(this["enemy" + num].legs) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num].gotoAndStop(2);
_root.attachMovie("bloodAttachKICK", "bloodAttachKICK", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.sit.HIT.HITin.gotoAndStop(2);
this["enemy" + num].HP = this["enemy" + num].HP - (Math.ceil(weaponDamage) / 3);
if (hero._xscale == 100) {
this["enemy" + num]._x = this["enemy" + num]._x - 50;
}
if (hero._xscale == -100) {
this["enemy" + num]._x = this["enemy" + num]._x + 50;
}
if (this["enemy" + num].HP <= 0) {
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
this["enemy" + num].die.gotoAndPlay(1);
}
}
if (hero.sit.HIT2.hitTest(this["enemy" + num].HIT) and ((!this["enemy" + num].dead) == true)) {
_root.attachMovie("bloodAttach", "bloodAttach", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.sit.HIT2.HITin.gotoAndStop(2);
this["enemy" + num].HP = this["enemy" + num].HP - (weaponDamage * 2);
if (this["enemy" + num].HP <= 0) {
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
this["enemy" + num].die.gotoAndPlay(80);
}
}
if (this["enemy" + num].hitTest(_root.bullet0) and ((!this["enemy" + num].dead) == true)) {
removeMovieClip(_root.bullet0);
this["enemy" + num].gotoAndStop(4);
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
_root.attachMovie("bloodAttach", "bloodAttach", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
_root.attachMovie("deadEnemy", "deadEnemy", deadEnemyNum, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
if (spearcankill == true) {
this["enemy" + num].die.gotoAndPlay(20);
}
if (spearcankill == false) {
this["enemy" + num].die.gotoAndPlay(40);
}
this["enemy" + num].dead = true;
}
if (this["enemy" + num].HIT.hitTest(_root.bullet1) and ((!this["enemy" + num].dead) == true)) {
removeMovieClip(_root.bullet1);
this["enemy" + num].gotoAndStop(4);
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
_root.attachMovie("bloodAttach", "bloodAttach", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
_root.attachMovie("deadEnemy", "deadEnemy", deadEnemyNum, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
if (spearcankill == true) {
this["enemy" + num].die.gotoAndPlay(20);
}
if (spearcankill == false) {
this["enemy" + num].die.gotoAndPlay(40);
}
this["enemy" + num].dead = true;
}
if ((((hero.hero2.HIT.hitTest(this["enemy" + num].hero2) or hero.hero2.HIT2.hitTest(this["enemy" + num].hero2)) or hero.hero2.HIT3.hitTest(this["enemy" + num].hero2)) or hero.jumpy.HIT.hitTest(this["enemy" + num].hero2)) or (((hero.sit.HIT2.hitTest(this["enemy" + num].hero2) and (this["enemy" + num].HIT._currentframe > 1)) and (_root.blink._currentframe == 1)) and ((!shieldDead) == true))) {
_root.attachMovie("bloodAttach0Defence", "bloodAttach0Defence", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.hero2.HIT.HITin.gotoAndPlay(2);
hero.hero2.HIT2.HITin.gotoAndPlay(2);
hero.hero2.HIT3.HITin.gotoAndPlay(2);
hero.jumpy.HIT.HITin.gotoAndPlay(2);
if (this["enemy" + num]._xscale == 100) {
this["enemy" + num]._x = this["enemy" + num]._x + 30;
}
if (this["enemy" + num]._xscale == -100) {
this["enemy" + num]._x = this["enemy" + num]._x - 30;
}
}
shieldDead == false;
if ((((((_root.hero.HIT._currentframe == 2) and (_root.blink._currentframe == 1)) and ((!shieldDead) == true)) and this["enemy" + num].hero2.HIT.hitTest(hero)) or this["enemy" + num].hero2.HIT2.hitTest(hero)) or this["enemy" + num].jumpy.jumpHIT.HIT.hitTest(hero)) {
_root.attachMovie("bloodAttach0Defence2", "bloodAttach0Defence2", 50, {_x:hero._x, _y:hero._y - 50});
this["enemy" + num].hero2.HIT.HITin.gotoAndPlay(2);
this["enemy" + num].hero2.HIT2.HITin.gotoAndPlay(2);
this["enemy" + num].jumpy.jumpHIT.HIT.HITin.gotoAndPlay(2);
if (this["enemy" + num]._xscale == -100) {
hero._x = hero._x + 30;
}
if (this["enemy" + num]._xscale == 100) {
hero._x = hero._x - 30;
}
}
if ((this["enemy" + num].live == true) and (this["enemy" + num].dead == true)) {
this["enemy" + num].gotoAndStop(7);
this["enemy" + num].time = this["enemy" + num].time - 1;
if (this["enemy" + num].time <= 0) {
this["enemy" + num].time = random(400) + 20;
this["enemy" + num].HP = _root.enemyHP;
this["enemy" + num].gotoAndStop(1);
this["enemy" + num].live = false;
this["enemy" + num].dead = false;
this["enemy" + num]._x = menu._x - livePosition;
this["enemy" + num]._y = hero._y;
}
}
if (this["enemy" + num]._x <= (menu._x - 660)) {
this["enemy" + num]._y = hero._y;
this["enemy" + num]._x = menu._x - livePosition;
} else if (this["enemy" + num]._x >= (menu._x + 660)) {
this["enemy" + num]._y = hero._y;
this["enemy" + num]._x = menu._x - livePosition;
}
if (this["enemy" + num].die.spearReSpawn == true) {
this["enemy" + num].die.spearReSpawn = false;
_root.attachMovie("SpearFall", "SpearFall", 100, {_x:this["enemy" + num]._x - 50, _y:this["enemy" + num]._y});
}
if (_root.groundHIT1.hitTest(_root.bullet0) and (_root.spearcankill == true)) {
_root.attachMovie("SpearFall", "SpearFall", 100, {_x:_root.bullet0._x, _y:_root.bullet0._y - 8});
removeMovieClip(_root.bullet0);
}
if (_root.groundHIT1.hitTest(_root.bullet1) and (_root.spearcankill == true)) {
_root.attachMovie("SpearFall", "SpearFall", 100, {_x:_root.bullet1._x, _y:_root.bullet1._y - 8});
removeMovieClip(_root.bullet1);
}
if (_root.groundHIT2.hitTest(_root.bullet0) and (_root.spearcankill == true)) {
_root.attachMovie("SpearFall", "SpearFall", 100, {_x:_root.bullet0._x, _y:_root.bullet0._y - 8});
removeMovieClip(_root.bullet0);
}
if (_root.groundHIT2.hitTest(_root.bullet1) and (_root.spearcankill == true)) {
_root.attachMovie("SpearFall", "SpearFall", 100, {_x:_root.bullet1._x, _y:_root.bullet1._y - 8});
removeMovieClip(_root.bullet1);
}
num++;
}
_x = (_x - Math.round((_x - (300 - ScrollOb._x)) / 10));
_y = (_y - Math.round((_y - (300 - ScrollOb._y)) / 10));
ScrollOb = hero;
menu._x = (-_x) + 300;
menu._y = (-_y) + 200;
wind._x = (-_x) + 300;
wind._y = (-_y) + 200;
snow._x = (-_x) + 43.4;
snow._y = (-_y) - 15.2;
menu2._x = (-_x) + 300;
menu2._y = (-_y) + 200;
maskRoot._x = (-_x) + 300;
maskRoot._y = (-_y) + 200;
bambook._x = (-_x) + 300;
groundHIT1._x = (-_x) + 1200;
groundHIT2._x = (-_x) - 600;
levelEnd._x = (-_x) + 300;
levelEnd._y = (-_y) + 200;
attachBM._x = (-_x) + 300;
attachBM._y = (-_y) + 200;
hero.gotoAndStop(frame);
jump = Key.isDown(38);
hero.vy = hero.vy + gravity;
hero._x = hero._x + hero.vx;
hero._y = hero._y + hero.vy;
if ((!pause) == true) {
if (jump) {
jumpnum = jumpnum - 1;
if (hero.grounded) {
hero.vy = -hero.jumpPower;
frame = "jump";
}
}
}
if (left) {
hero.vx = hero.vx - hero.spd;
hero._xscale = -100;
frame = "run";
} else if (right) {
hero.vx = hero.vx + hero.spd;
hero._xscale = 100;
frame = "run";
} else if (hero.grounded) {
hero.vx = hero.vx * 0.9;
frame = "stand";
} else {
frame = "jump";
}
if ((!pause) == true) {
if (Math.abs(hero.vx) > hero.maxSpd) {
hero.vx = hero.vx * 0.9;
}
}
hero.grounded = false;
if (ground.hitTest(hero._x, hero._y, true)) {
hero.vy = -Math.abs(hero.vy * 0.4);
hero.grounded = true;
frame = "stand";
while (ground.hitTest(hero._x, hero._y, true)) {
hero._y = hero._y - 0.2;
}
}
if (ground.hitTest(hero._x - (hero._width / 2), hero._y - (hero._height / 2), true)) {
hero.vx = Math.abs(hero.vx * 0.4);
while (ground.hitTest(hero._x - (hero._width / 2), hero._y - (hero._height / 2), true)) {
hero._x = hero._x + 0.2;
}
} else if (ground.hitTest(hero._x + (hero._width / 2), hero._y - (hero._height / 2), true)) {
hero.vx = -Math.abs(hero.vx * 0.4);
while (ground.hitTest(hero._x + (hero._width / 2), hero._y - (hero._height / 2), true)) {
hero._x = hero._x - 0.2;
}
}
}
};
stop();
Instance of Symbol 1481 MovieClip "menu" in Frame 52
onClipEvent (load) {
this.gotoAndStop(3);
}
Instance of Symbol 1491 MovieClip "ground" in Frame 52
onClipEvent (load) {
this.gotoAndStop(2);
}
Instance of Symbol 1494 MovieClip in Frame 52
onClipEvent (enterFrame) {
if (_root.groundHIT2.hitTest(this.HIT)) {
this._x = _root.groundHIT1._x - 200;
this.gotoAndStop(random(2) + 1);
} else if (_root.groundHIT1.hitTest(this.HIT)) {
this._x = _root.groundHIT2._x + 200;
this.gotoAndStop(random(2) + 1);
}
trace(this._x);
}
Instance of Symbol 1500 MovieClip "hero" in Frame 52
onClipEvent (enterFrame) {
if (((Key.isDown(40) and Key.isDown(37)) and Key.isDown(39)) and ((!_root.heroDead) == true)) {
this._x = this._x - run;
}
if (_root.heroDead == true) {
this.state = 4;
}
if ((Key.isDown(40) and ((!air) == true)) and ((!_root.heroDead) == true)) {
if (this._xscale == 100) {
this._x = this._x - run3;
if ((!run3) <= 0) {
run3--;
}
}
if (this._xscale == -100) {
this._x = this._x + run3;
if ((!run3) <= 0) {
run3--;
}
}
state = 5;
if (Key.isDown(37) and ((!_root.heroDead) == true)) {
_x = (_x + run);
}
if (Key.isDown(39) and ((!_root.heroDead) == true)) {
_x = (_x - run);
}
}
if (((state == 5) and (_root.spearflyCheker == true)) and ((!_root.heroDead) == true)) {
_root.spearflyCheker = false;
_root.spearfly = false;
_root.sword = 11;
}
if (((state == 5) and (_root.arrowflyCheker == true)) and ((!_root.heroDead) == true)) {
_root.arrowflyCheker = false;
_root.arrowfly = false;
}
if (((Key.isDown(38) and (_root.jump2 == true)) and ((!spearfly) == true)) and ((!_root.heroDead) == true)) {
_root.hero.vy = -_root.hero.jumpPower;
_root.jumpnum = 100;
}
if (((air == true) and (_root.spearflyCheker == true)) and ((!_root.heroDead) == true)) {
_root.spearflyCheker = false;
_root.spearfly = false;
_root.sword = 11;
}
if (((air == true) and (_root.arrowflyCheker == true)) and ((!_root.heroDead) == true)) {
_root.arrowflyCheker = false;
_root.arrowfly = false;
}
if (((!Key.isDown(38)) and (_root.jumpnum <= 2)) and ((!_root.heroDead) == true)) {
_root.jump2 = true;
} else {
_root.jump2 = false;
}
if ((!Key.isDown(40)) and ((!_root.heroDead) == true)) {
run3 = run;
}
if (Key.isDown(37) and ((!_root.heroDead) == true)) {
run2 = run;
_x = (_x - run);
this._xscale = 100;
this.legs.play();
}
if (((!(Key.isDown(37) or Key.isDown(39))) and (!Key.isDown(40))) and ((!_root.heroDead) == true)) {
this.legs.gotoAndStop(1);
if (this._xscale == 100) {
this._x = this._x - run2;
if ((!run2) <= 0) {
run2--;
}
}
if (this._xscale == -100) {
this._x = this._x + run2;
if ((!run2) <= 0) {
run2--;
}
}
}
if ((Key.isDown(37) && (Key.isDown(39))) and ((!_root.heroDead) == true)) {
this._x = this._x + run;
this._xscale = -100;
this.legs.play();
}
if (((air == true) && (Key.isDown(37))) and ((!_root.heroDead) == true)) {
state = 3;
}
if (Key.isDown(39) and ((!_root.heroDead) == true)) {
run2 = run;
_x = (_x + run);
this._xscale = -100;
this.legs.play();
}
if (((air == true) && (Key.isDown(39))) and ((!_root.heroDead) == true)) {
state = 3;
}
gotoAndStop(state);
if ((Key.isDown(65) && (air == true)) and ((!_root.heroDead) == true)) {
_root.hero.jumping.gotoAndPlay(6);
}
if (((Key.isDown(65) and (Key.isDown(37) or Key.isDown(39))) and ((!air) == true)) and ((!_root.heroDead) == true)) {
_root.standAttack = false;
_root.runAttack = true;
}
this._y = this._y + 8;
_y = (_y + gravity);
if (air == true) {
state = 3;
}
if (_root.ground.hitTest(_x, _y, true)) {
air = false;
_root.jumpnum = 2;
} else {
air = true;
state = 3;
}
if (air == false) {
state = 1;
}
if ((_root.arrowfly == true) and ((!_root.gotArrows) == false)) {
_root.menu2.arrows.gotoAndStop(_root.menu2.arrows._currentframe + 1);
_root.spearT = false;
totalbullet++;
if (totalbullet > 1) {
totalbullet = 0;
}
if (_root.hero._xscale == -100) {
_root.attachMovie("bullet", "bullet" + totalbullet, totalbullet, {_x:_x, _y:_y, _rotation:this._rotation});
} else if (_root.hero._xscale == 100) {
_root.attachMovie("bullet2", "bullet" + totalbullet, totalbullet, {_x:_x, _y:_y, _rotation:this._rotation});
}
}
if (_root.spearfly == true) {
_root.spearT = true;
totalbullet++;
if (totalbullet > 1) {
totalbullet = 0;
}
if (_root.hero._xscale == -100) {
_root.attachMovie("bullet", "bullet" + totalbullet, totalbullet, {_x:_x, _y:_y, _rotation:this._rotation});
} else if (_root.hero._xscale == 100) {
_root.attachMovie("bullet2", "bullet" + totalbullet, totalbullet, {_x:_x, _y:_y, _rotation:this._rotation});
}
}
}
onClipEvent (load) {
totalbullet = 0;
}
Instance of Symbol 1501 MovieClip "steam" in Frame 52
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 1505 MovieClip "swordOrBow" in Frame 52
onClipEvent (enterFrame) {
if (_root.swords == true) {
this.gotoAndStop(1);
}
if (_root.bows == true) {
this.gotoAndStop(2);
}
}
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 1502 MovieClip "blink" in Frame 52
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 616 MovieClip "groundHIT1" in Frame 52
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 616 MovieClip "groundHIT2" in Frame 52
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 1547 MovieClip "menu2" in Frame 52
onClipEvent (enterFrame) {
this.swapDepths((this._y * 100) + this._x);
}
Instance of Symbol 1549 MovieClip "levelEnd" in Frame 52
onClipEvent (enterFrame) {
this.swapDepths((this._y * 1000) + this._x);
}
Frame 53
levelFrame = 54;
gotoAndStop (30);
_x = 0;
_y = 0;
Frame 54
swordE = 4;
bootsE = 35;
pantsE = 33;
weaponDamageE = 60;
bodyE = 7;
helmetE = 8;
shieldE = 6;
shield2E = 5;
shieldhandE = 9;
attackNum = 0;
attackNum2 = 0;
attackNum3 = 0;
attackNum4 = 0;
attackNum5 = 0;
gotArrows = true;
weaponDamage = 1;
HITMinusArmour = 0;
enemyHITPower = 150;
menu2.location.location = "Muscovy";
_root.attachMovie("attachBM", "attachBM", 50, {_x:300, _y:200});
removeMovieClip(_root.heroAttach);
enemies = 3;
enemyHP = 45;
blooddummy._x = 0;
blooddummy._y = 0;
dep = 200;
gravity = 0.5;
hero.vx = 0;
hero.vy = 0;
hero.jumpPower = 20;
hero.grounded = false;
ScrollOb = hero;
spearfly = false;
spear = true;
hero.run = 7;
deadEnemyNum = 1000;
num = 0;
while (num <= enemies) {
this["enemy" + num].power = 20;
this["enemy" + num].HP = 20;
groundGNum = 1000;
groundGNum2 = -500;
this["enemy" + num].time = 500;
num++;
}
roundTime = 2300;
sound2 = true;
music = true;
music2 = false;
music3 = false;
music4 = false;
onEnterFrame = function () {
trace(roundTime);
roundTime = roundTime - 1;
if ((roundTime <= 0) and ((!heroDead) == true)) {
hero.HIT.gotoAndStop(2);
levelEnd.play();
removeMovieClip(menu2);
}
if ((!_root.HITMinusArmour) <= 1) {
_root.HITMinusArmour = _root.enemyHITPower - _root.armour;
}
if (_root.HITMinusArmour <= 1) {
_root.HITMinusArmour = 1;
}
trace(_root.HITMinusArmour);
if ((!pause) == true) {
num = 0;
while (num <= enemies) {
if (hero._x >= groundGNum) {
groundGNum = groundGNum + 500;
groundGNum2 = groundGNum2 + 500;
ground._x = ground._x + 500;
} else if (hero._x <= groundGNum2) {
groundGNum2 = groundGNum2 - 500;
groundGNum = groundGNum - 500;
ground._x = ground._x - 500;
}
if (EXP >= 1000) {
levelUP = levelUP + 1;
EXP = 0;
}
deadEnemyNum++;
this["enemy" + num];
if ((this["enemy" + num].AAA.jumpFrame == true) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num].air = true;
this["enemy" + num].gotoAndStop(3);
} else if (((this["enemy" + num].AAA.jumpFrame == false) and ground.hitTest(this["enemy" + num]._x, this["enemy" + num]._y + 5, true)) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num].air = false;
this["enemy" + num].power = 20;
this["enemy" + num].gotoAndStop(1);
}
if ((this["enemy" + num].AAA._currentframe == 52) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num].AAA.gotoAndPlay(random(500) + 1);
}
if (ground.hitTest(this["enemy" + num]._x - 6, this["enemy" + num]._y - 10, true) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num]._x = this["enemy" + num]._x + enemySpeed;
} else if (ground.hitTest(this["enemy" + num]._x + 6, this["enemy" + num]._y - 10, true) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num]._x = this["enemy" + num]._x - enemySpeed;
}
if ((this["enemy" + num]._currentframe == 3) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num].air = true;
this["enemy" + num]._y = this["enemy" + num]._y - this["enemy" + num].power;
if ((!this["enemy" + num].power) <= 0) {
this["enemy" + num].power = this["enemy" + num].power - 0.5;
if (this["enemy" + num]._xscale == 100) {
this["enemy" + num]._x = this["enemy" + num]._x - enemySpeed;
}
if (this["enemy" + num]._xscale == -100) {
this["enemy" + num]._x = this["enemy" + num]._x + enemySpeed;
}
}
if ((this["enemy" + num]._x >= (hero._x + 1)) and (this["enemy" + num]._xscale == -100)) {
this["enemy" + num].jumpy.gotoAndStop(10);
} else if ((this["enemy" + num]._x <= (hero._x - 1)) and (this["enemy" + num]._xscale == 100)) {
this["enemy" + num].jumpy.gotoAndStop(10);
}
}
if ((this["enemy" + num].hitTest(hero) and ((!_root.heroDead) == true)) and (this["enemy" + num].hero2.canAttack == true)) {
this["enemy" + num].hero2.canAttack = false;
this["enemy" + num].hero2.gotoAndPlay(_root.enemyRandomAttack);
}
if (this["enemy" + num].hero2.HIT.hitTest(hero.HIT)) {
this["enemy" + num].hero2.HIT.HITin.gotoAndPlay(2);
blink.play();
}
if (this["enemy" + num].jumpy.jumpHIT.HIT.hitTest(hero.HIT)) {
this["enemy" + num].jumpy.jumpHIT.HIT.HITin.gotoAndPlay(2);
blink.play();
}
if (this["enemy" + num].hero2.HIT2.hitTest(hero.HIT)) {
this["enemy" + num].hero2.HIT2.HITin.gotoAndPlay(2);
if (this["enemy" + num]._xscale == 100) {
hero._x = hero._x - 50;
blink.play();
}
if (this["enemy" + num]._xscale == -100) {
hero._x = hero._x + 50;
blink.play();
}
}
if (((hero._x > this["enemy" + num]._x) and ((!this["enemy" + num].dead) == true)) and ((!this["enemy" + num].air) == true)) {
this["enemy" + num]._xscale = -100;
} else if (((hero._x < this["enemy" + num]._x) and ((!this["enemy" + num].dead) == true)) and ((!this["enemy" + num].air) == true)) {
this["enemy" + num]._xscale = 100;
}
if (((((hero._x > (this["enemy" + num]._x + 70)) and ((!this["enemy" + num].dead) == true)) and this["enemy" + num].hitTest(this["enemy" + num].AAA)) and ((!this["enemy" + num].air) == true)) and ((!this["enemy" + num].hero2.kick) == true)) {
this["enemy" + num].legs.gotoAndStop(4);
this["enemy" + num]._x = this["enemy" + num]._x + enemySpeed;
} else if (((((hero._x < (this["enemy" + num]._x - 70)) and ((!this["enemy" + num].dead) == true)) and this["enemy" + num].hitTest(this["enemy" + num].AAA)) and ((!this["enemy" + num].air) == true)) and ((!this["enemy" + num].hero2.kick) == true)) {
this["enemy" + num]._x = this["enemy" + num]._x - enemySpeed;
this["enemy" + num].legs.gotoAndStop(4);
} else {
this["enemy" + num].legs.gotoAndStop(1);
}
this["enemy" + num]._y = this["enemy" + num]._y + 8;
while (ground.hitTest(this["enemy" + num]._x, this["enemy" + num]._y, true)) {
this["enemy" + num]._y = this["enemy" + num]._y - 1;
}
while (ground.hitTest(hero._root.SpearFall._x, hero._root.SpearFall._y, true)) {
_root.SpearFall._y = _root.SpearFall._y - 1;
}
if (hero.hero2.HIT.hitTest(this["enemy" + num].HIT) and ((!this["enemy" + num].dead) == true)) {
_root.attachMovie("bloodAttach", "bloodAttach", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.hero2.HIT.HITin.gotoAndPlay(2);
this["enemy" + num].HP = this["enemy" + num].HP - weaponDamage;
if (this["enemy" + num].HP <= 0) {
_root.attachMovie("heartAttach", "heartAttach", 38, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y});
gold = gold + (random(50) + 10);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
if ((sword == 5) or (sword == 8)) {
this["enemy" + num].die.gotoAndPlay(80);
} else {
this["enemy" + num].die.gotoAndPlay(1);
}
}
}
if (hero.hero2.HIT2.hitTest(this["enemy" + num].HIT) and ((!this["enemy" + num].dead) == true)) {
_root.attachMovie("bloodAttachKICK", "bloodAttachKICK", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.hero2.HIT2.HITin.gotoAndPlay(2);
this["enemy" + num].HP = this["enemy" + num].HP - (Math.ceil(weaponDamage) * 5);
if (this["enemy" + num].HP <= 0) {
_root.attachMovie("heartAttach", "heartAttach", 38, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y});
gold = gold + (random(50) + 10);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
this["enemy" + num].die.gotoAndPlay(60);
}
}
if (hero.hero2.HIT3.hitTest(this["enemy" + num].HIT) and ((!this["enemy" + num].dead) == true)) {
_root.attachMovie("bloodAttachKICK", "bloodAttachKICK", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.hero2.HIT3.HITin.gotoAndPlay(2);
this["enemy" + num].gotoAndStop(2);
this["enemy" + num].gotKicked.gotoAndPlay(37);
this["enemy" + num].HP = this["enemy" + num].HP - (Math.ceil(weaponDamage) / 3);
if (hero._xscale == 100) {
this["enemy" + num]._x = this["enemy" + num]._x - 60;
}
if (hero._xscale == -100) {
this["enemy" + num]._x = this["enemy" + num]._x + 60;
}
if (this["enemy" + num].HP <= 0) {
_root.attachMovie("heartAttach", "heartAttach", 38, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y});
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
this["enemy" + num].die.gotoAndPlay(60);
}
}
if (hero.jumpy.HIT.hitTest(this["enemy" + num].HIT) and ((!this["enemy" + num].dead) == true)) {
_root.attachMovie("bloodAttachKICK", "bloodAttachKICK", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.jumpy.HIT.HITin.gotoAndStop(2);
this["enemy" + num].HP = this["enemy" + num].HP - (weaponDamage * 3);
if (this["enemy" + num].HP <= 0) {
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
this["enemy" + num].die.gotoAndPlay(100);
}
}
if (hero.sit.HIT.hitTest(this["enemy" + num].legs) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num].gotoAndStop(2);
_root.attachMovie("bloodAttachKICK", "bloodAttachKICK", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.sit.HIT.HITin.gotoAndStop(2);
this["enemy" + num].HP = this["enemy" + num].HP - (Math.ceil(weaponDamage) / 3);
if (hero._xscale == 100) {
this["enemy" + num]._x = this["enemy" + num]._x - 50;
}
if (hero._xscale == -100) {
this["enemy" + num]._x = this["enemy" + num]._x + 50;
}
if (this["enemy" + num].HP <= 0) {
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
this["enemy" + num].die.gotoAndPlay(1);
}
}
if (hero.sit.HIT2.hitTest(this["enemy" + num].HIT) and ((!this["enemy" + num].dead) == true)) {
_root.attachMovie("bloodAttach", "bloodAttach", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.sit.HIT2.HITin.gotoAndStop(2);
this["enemy" + num].HP = this["enemy" + num].HP - (weaponDamage * 2);
if (this["enemy" + num].HP <= 0) {
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
this["enemy" + num].die.gotoAndPlay(80);
}
}
if (this["enemy" + num].hitTest(_root.bullet0) and ((!this["enemy" + num].dead) == true)) {
removeMovieClip(_root.bullet0);
this["enemy" + num].gotoAndStop(4);
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
_root.attachMovie("bloodAttach", "bloodAttach", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
_root.attachMovie("deadEnemy", "deadEnemy", deadEnemyNum, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
if (spearcankill == true) {
this["enemy" + num].die.gotoAndPlay(20);
}
if (spearcankill == false) {
this["enemy" + num].die.gotoAndPlay(40);
}
this["enemy" + num].dead = true;
}
if (this["enemy" + num].HIT.hitTest(_root.bullet1) and ((!this["enemy" + num].dead) == true)) {
removeMovieClip(_root.bullet1);
this["enemy" + num].gotoAndStop(4);
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
_root.attachMovie("bloodAttach", "bloodAttach", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
_root.attachMovie("deadEnemy", "deadEnemy", deadEnemyNum, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
if (spearcankill == true) {
this["enemy" + num].die.gotoAndPlay(20);
}
if (spearcankill == false) {
this["enemy" + num].die.gotoAndPlay(40);
}
this["enemy" + num].dead = true;
}
if ((((hero.hero2.HIT.hitTest(this["enemy" + num].hero2) or hero.hero2.HIT2.hitTest(this["enemy" + num].hero2)) or hero.hero2.HIT3.hitTest(this["enemy" + num].hero2)) or hero.jumpy.HIT.hitTest(this["enemy" + num].hero2)) or (((hero.sit.HIT2.hitTest(this["enemy" + num].hero2) and (this["enemy" + num].HIT._currentframe > 1)) and (_root.blink._currentframe == 1)) and ((!shieldDead) == true))) {
_root.attachMovie("bloodAttach0Defence", "bloodAttach0Defence", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.hero2.HIT.HITin.gotoAndPlay(2);
hero.hero2.HIT2.HITin.gotoAndPlay(2);
hero.hero2.HIT3.HITin.gotoAndPlay(2);
hero.jumpy.HIT.HITin.gotoAndPlay(2);
if (this["enemy" + num]._xscale == 100) {
this["enemy" + num]._x = this["enemy" + num]._x + 30;
}
if (this["enemy" + num]._xscale == -100) {
this["enemy" + num]._x = this["enemy" + num]._x - 30;
}
}
shieldDead == false;
if ((((((_root.hero.HIT._currentframe == 2) and (_root.blink._currentframe == 1)) and ((!shieldDead) == true)) and this["enemy" + num].hero2.HIT.hitTest(hero)) or this["enemy" + num].hero2.HIT2.hitTest(hero)) or this["enemy" + num].jumpy.jumpHIT.HIT.hitTest(hero)) {
_root.attachMovie("bloodAttach0Defence2", "bloodAttach0Defence2", 50, {_x:hero._x, _y:hero._y - 50});
this["enemy" + num].hero2.HIT.HITin.gotoAndPlay(2);
this["enemy" + num].hero2.HIT2.HITin.gotoAndPlay(2);
this["enemy" + num].jumpy.jumpHIT.HIT.HITin.gotoAndPlay(2);
if (this["enemy" + num]._xscale == -100) {
hero._x = hero._x + 30;
}
if (this["enemy" + num]._xscale == 100) {
hero._x = hero._x - 30;
}
}
if ((this["enemy" + num].live == true) and (this["enemy" + num].dead == true)) {
this["enemy" + num].gotoAndStop(7);
this["enemy" + num].time = this["enemy" + num].time - 1;
if (this["enemy" + num].time <= 0) {
this["enemy" + num].time = random(400) + 20;
this["enemy" + num].HP = _root.enemyHP;
this["enemy" + num].gotoAndStop(1);
this["enemy" + num].live = false;
this["enemy" + num].dead = false;
this["enemy" + num]._x = menu._x - livePosition;
this["enemy" + num]._y = hero._y;
}
}
if (this["enemy" + num]._x <= (menu._x - 660)) {
this["enemy" + num]._y = hero._y;
this["enemy" + num]._x = menu._x - livePosition;
} else if (this["enemy" + num]._x >= (menu._x + 660)) {
this["enemy" + num]._y = hero._y;
this["enemy" + num]._x = menu._x - livePosition;
}
if (this["enemy" + num].die.spearReSpawn == true) {
this["enemy" + num].die.spearReSpawn = false;
_root.attachMovie("SpearFall", "SpearFall", 100, {_x:this["enemy" + num]._x - 50, _y:this["enemy" + num]._y});
}
if (_root.groundHIT1.hitTest(_root.bullet0) and (_root.spearcankill == true)) {
_root.attachMovie("SpearFall", "SpearFall", 100, {_x:_root.bullet0._x, _y:_root.bullet0._y - 8});
removeMovieClip(_root.bullet0);
}
if (_root.groundHIT1.hitTest(_root.bullet1) and (_root.spearcankill == true)) {
_root.attachMovie("SpearFall", "SpearFall", 100, {_x:_root.bullet1._x, _y:_root.bullet1._y - 8});
removeMovieClip(_root.bullet1);
}
if (_root.groundHIT2.hitTest(_root.bullet0) and (_root.spearcankill == true)) {
_root.attachMovie("SpearFall", "SpearFall", 100, {_x:_root.bullet0._x, _y:_root.bullet0._y - 8});
removeMovieClip(_root.bullet0);
}
if (_root.groundHIT2.hitTest(_root.bullet1) and (_root.spearcankill == true)) {
_root.attachMovie("SpearFall", "SpearFall", 100, {_x:_root.bullet1._x, _y:_root.bullet1._y - 8});
removeMovieClip(_root.bullet1);
}
num++;
}
_x = (_x - Math.round((_x - (300 - ScrollOb._x)) / 10));
_y = (_y - Math.round((_y - (300 - ScrollOb._y)) / 10));
ScrollOb = hero;
menu._x = (-_x) + 300;
menu._y = (-_y) + 200;
wind._x = (-_x) + 300;
wind._y = (-_y) + 200;
snow._x = (-_x) + 43.4;
snow._y = (-_y) - 15.2;
menu2._x = (-_x) + 300;
menu2._y = (-_y) + 200;
maskRoot._x = (-_x) + 300;
maskRoot._y = (-_y) + 200;
bambook._x = (-_x) + 300;
groundHIT1._x = (-_x) + 1200;
groundHIT2._x = (-_x) - 600;
levelEnd._x = (-_x) + 300;
levelEnd._y = (-_y) + 200;
attachBM._x = (-_x) + 300;
attachBM._y = (-_y) + 200;
hero.gotoAndStop(frame);
jump = Key.isDown(38);
hero.vy = hero.vy + gravity;
hero._x = hero._x + hero.vx;
hero._y = hero._y + hero.vy;
if ((!pause) == true) {
if (jump) {
jumpnum = jumpnum - 1;
if (hero.grounded) {
hero.vy = -hero.jumpPower;
frame = "jump";
}
}
}
if (left) {
hero.vx = hero.vx - hero.spd;
hero._xscale = -100;
frame = "run";
} else if (right) {
hero.vx = hero.vx + hero.spd;
hero._xscale = 100;
frame = "run";
} else if (hero.grounded) {
hero.vx = hero.vx * 0.9;
frame = "stand";
} else {
frame = "jump";
}
if ((!pause) == true) {
if (Math.abs(hero.vx) > hero.maxSpd) {
hero.vx = hero.vx * 0.9;
}
}
hero.grounded = false;
if (ground.hitTest(hero._x, hero._y, true)) {
hero.vy = -Math.abs(hero.vy * 0.4);
hero.grounded = true;
frame = "stand";
while (ground.hitTest(hero._x, hero._y, true)) {
hero._y = hero._y - 0.2;
}
}
if (ground.hitTest(hero._x - (hero._width / 2), hero._y - (hero._height / 2), true)) {
hero.vx = Math.abs(hero.vx * 0.4);
while (ground.hitTest(hero._x - (hero._width / 2), hero._y - (hero._height / 2), true)) {
hero._x = hero._x + 0.2;
}
} else if (ground.hitTest(hero._x + (hero._width / 2), hero._y - (hero._height / 2), true)) {
hero.vx = -Math.abs(hero.vx * 0.4);
while (ground.hitTest(hero._x + (hero._width / 2), hero._y - (hero._height / 2), true)) {
hero._x = hero._x - 0.2;
}
}
}
};
stop();
Instance of Symbol 1481 MovieClip "menu" in Frame 54
onClipEvent (load) {
this.gotoAndStop(6);
}
Instance of Symbol 1491 MovieClip "ground" in Frame 54
onClipEvent (load) {
this.gotoAndStop(2);
}
Instance of Symbol 1494 MovieClip in Frame 54
onClipEvent (enterFrame) {
if (_root.groundHIT2.hitTest(this.HIT)) {
this._x = _root.groundHIT1._x - 200;
this.gotoAndStop(random(2) + 1);
} else if (_root.groundHIT1.hitTest(this.HIT)) {
this._x = _root.groundHIT2._x + 200;
this.gotoAndStop(random(2) + 1);
}
trace(this._x);
}
Instance of Symbol 1500 MovieClip "hero" in Frame 54
onClipEvent (enterFrame) {
if (((Key.isDown(40) and Key.isDown(37)) and Key.isDown(39)) and ((!_root.heroDead) == true)) {
this._x = this._x - run;
}
if (_root.heroDead == true) {
this.state = 4;
}
if ((Key.isDown(40) and ((!air) == true)) and ((!_root.heroDead) == true)) {
if (this._xscale == 100) {
this._x = this._x - run3;
if ((!run3) <= 0) {
run3--;
}
}
if (this._xscale == -100) {
this._x = this._x + run3;
if ((!run3) <= 0) {
run3--;
}
}
state = 5;
if (Key.isDown(37) and ((!_root.heroDead) == true)) {
_x = (_x + run);
}
if (Key.isDown(39) and ((!_root.heroDead) == true)) {
_x = (_x - run);
}
}
if (((state == 5) and (_root.spearflyCheker == true)) and ((!_root.heroDead) == true)) {
_root.spearflyCheker = false;
_root.spearfly = false;
_root.sword = 11;
}
if (((state == 5) and (_root.arrowflyCheker == true)) and ((!_root.heroDead) == true)) {
_root.arrowflyCheker = false;
_root.arrowfly = false;
}
if (((Key.isDown(38) and (_root.jump2 == true)) and ((!spearfly) == true)) and ((!_root.heroDead) == true)) {
_root.hero.vy = -_root.hero.jumpPower;
_root.jumpnum = 100;
}
if (((air == true) and (_root.spearflyCheker == true)) and ((!_root.heroDead) == true)) {
_root.spearflyCheker = false;
_root.spearfly = false;
_root.sword = 11;
}
if (((air == true) and (_root.arrowflyCheker == true)) and ((!_root.heroDead) == true)) {
_root.arrowflyCheker = false;
_root.arrowfly = false;
}
if (((!Key.isDown(38)) and (_root.jumpnum <= 2)) and ((!_root.heroDead) == true)) {
_root.jump2 = true;
} else {
_root.jump2 = false;
}
if ((!Key.isDown(40)) and ((!_root.heroDead) == true)) {
run3 = run;
}
if (Key.isDown(37) and ((!_root.heroDead) == true)) {
run2 = run;
_x = (_x - run);
this._xscale = 100;
this.legs.play();
}
if (((!(Key.isDown(37) or Key.isDown(39))) and (!Key.isDown(40))) and ((!_root.heroDead) == true)) {
this.legs.gotoAndStop(1);
if (this._xscale == 100) {
this._x = this._x - run2;
if ((!run2) <= 0) {
run2--;
}
}
if (this._xscale == -100) {
this._x = this._x + run2;
if ((!run2) <= 0) {
run2--;
}
}
}
if ((Key.isDown(37) && (Key.isDown(39))) and ((!_root.heroDead) == true)) {
this._x = this._x + run;
this._xscale = -100;
this.legs.play();
}
if (((air == true) && (Key.isDown(37))) and ((!_root.heroDead) == true)) {
state = 3;
}
if (Key.isDown(39) and ((!_root.heroDead) == true)) {
run2 = run;
_x = (_x + run);
this._xscale = -100;
this.legs.play();
}
if (((air == true) && (Key.isDown(39))) and ((!_root.heroDead) == true)) {
state = 3;
}
gotoAndStop(state);
if ((Key.isDown(65) && (air == true)) and ((!_root.heroDead) == true)) {
_root.hero.jumping.gotoAndPlay(6);
}
if (((Key.isDown(65) and (Key.isDown(37) or Key.isDown(39))) and ((!air) == true)) and ((!_root.heroDead) == true)) {
_root.standAttack = false;
_root.runAttack = true;
}
this._y = this._y + 8;
_y = (_y + gravity);
if (air == true) {
state = 3;
}
if (_root.ground.hitTest(_x, _y, true)) {
air = false;
_root.jumpnum = 2;
} else {
air = true;
state = 3;
}
if (air == false) {
state = 1;
}
if ((_root.arrowfly == true) and ((!_root.gotArrows) == false)) {
_root.menu2.arrows.gotoAndStop(_root.menu2.arrows._currentframe + 1);
_root.spearT = false;
totalbullet++;
if (totalbullet > 1) {
totalbullet = 0;
}
if (_root.hero._xscale == -100) {
_root.attachMovie("bullet", "bullet" + totalbullet, totalbullet, {_x:_x, _y:_y, _rotation:this._rotation});
} else if (_root.hero._xscale == 100) {
_root.attachMovie("bullet2", "bullet" + totalbullet, totalbullet, {_x:_x, _y:_y, _rotation:this._rotation});
}
}
if (_root.spearfly == true) {
_root.spearT = true;
totalbullet++;
if (totalbullet > 1) {
totalbullet = 0;
}
if (_root.hero._xscale == -100) {
_root.attachMovie("bullet", "bullet" + totalbullet, totalbullet, {_x:_x, _y:_y, _rotation:this._rotation});
} else if (_root.hero._xscale == 100) {
_root.attachMovie("bullet2", "bullet" + totalbullet, totalbullet, {_x:_x, _y:_y, _rotation:this._rotation});
}
}
}
onClipEvent (load) {
totalbullet = 0;
}
Instance of Symbol 1501 MovieClip "steam" in Frame 54
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 1505 MovieClip "swordOrBow" in Frame 54
onClipEvent (enterFrame) {
if (_root.swords == true) {
this.gotoAndStop(1);
}
if (_root.bows == true) {
this.gotoAndStop(2);
}
}
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 1502 MovieClip "blink" in Frame 54
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 616 MovieClip "groundHIT1" in Frame 54
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 616 MovieClip "groundHIT2" in Frame 54
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 1547 MovieClip "menu2" in Frame 54
onClipEvent (enterFrame) {
this.swapDepths((this._y * 100) + this._x);
}
Instance of Symbol 1549 MovieClip "levelEnd" in Frame 54
onClipEvent (enterFrame) {
this.swapDepths((this._y * 1000) + this._x);
}
Frame 55
levelFrame = 56;
gotoAndStop (30);
_x = 0;
_y = 0;
Frame 56
swordE = 10;
bootsE = 35;
pantsE = 33;
weaponDamageE = 60;
bodyE = 10;
helmetE = 11;
shieldE = 9;
shield2E = 5;
shieldhandE = 9;
attackNum = 0;
attackNum2 = 0;
attackNum3 = 0;
attackNum4 = 0;
attackNum5 = 0;
gotArrows = true;
weaponDamage = 1;
HITMinusArmour = 0;
enemyHITPower = 160;
menu2.location.location = "Novgorod";
_root.attachMovie("attachBM", "attachBM", 50, {_x:300, _y:200});
removeMovieClip(_root.heroAttach);
enemies = 3;
enemyHP = 35;
blooddummy._x = 0;
blooddummy._y = 0;
dep = 200;
gravity = 0.5;
hero.vx = 0;
hero.vy = 0;
hero.jumpPower = 20;
hero.grounded = false;
ScrollOb = hero;
spearfly = false;
spear = true;
hero.run = 7;
deadEnemyNum = 1000;
num = 0;
while (num <= enemies) {
this["enemy" + num].power = 20;
this["enemy" + num].HP = 18;
groundGNum = 1000;
groundGNum2 = -500;
this["enemy" + num].time = 500;
num++;
}
roundTime = 2300;
sound2 = true;
music = true;
music2 = false;
music3 = false;
music4 = false;
onEnterFrame = function () {
trace(roundTime);
roundTime = roundTime - 1;
if ((roundTime <= 0) and ((!heroDead) == true)) {
hero.HIT.gotoAndStop(2);
levelEnd.play();
removeMovieClip(menu2);
}
if ((!_root.HITMinusArmour) <= 1) {
_root.HITMinusArmour = _root.enemyHITPower - _root.armour;
}
if (_root.HITMinusArmour <= 1) {
_root.HITMinusArmour = 1;
}
trace(_root.HITMinusArmour);
if ((!pause) == true) {
num = 0;
while (num <= enemies) {
if (hero._x >= groundGNum) {
groundGNum = groundGNum + 500;
groundGNum2 = groundGNum2 + 500;
ground._x = ground._x + 500;
} else if (hero._x <= groundGNum2) {
groundGNum2 = groundGNum2 - 500;
groundGNum = groundGNum - 500;
ground._x = ground._x - 500;
}
if (EXP >= 1000) {
levelUP = levelUP + 1;
EXP = 0;
}
deadEnemyNum++;
this["enemy" + num];
if ((this["enemy" + num].AAA.jumpFrame == true) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num].air = true;
this["enemy" + num].gotoAndStop(3);
} else if (((this["enemy" + num].AAA.jumpFrame == false) and ground.hitTest(this["enemy" + num]._x, this["enemy" + num]._y + 5, true)) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num].air = false;
this["enemy" + num].power = 20;
this["enemy" + num].gotoAndStop(1);
}
if ((this["enemy" + num].AAA._currentframe == 52) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num].AAA.gotoAndPlay(random(500) + 1);
}
if (ground.hitTest(this["enemy" + num]._x - 6, this["enemy" + num]._y - 10, true) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num]._x = this["enemy" + num]._x + enemySpeed;
} else if (ground.hitTest(this["enemy" + num]._x + 6, this["enemy" + num]._y - 10, true) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num]._x = this["enemy" + num]._x - enemySpeed;
}
if ((this["enemy" + num]._currentframe == 3) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num].air = true;
this["enemy" + num]._y = this["enemy" + num]._y - this["enemy" + num].power;
if ((!this["enemy" + num].power) <= 0) {
this["enemy" + num].power = this["enemy" + num].power - 0.5;
if (this["enemy" + num]._xscale == 100) {
this["enemy" + num]._x = this["enemy" + num]._x - enemySpeed;
}
if (this["enemy" + num]._xscale == -100) {
this["enemy" + num]._x = this["enemy" + num]._x + enemySpeed;
}
}
if ((this["enemy" + num]._x >= (hero._x + 1)) and (this["enemy" + num]._xscale == -100)) {
this["enemy" + num].jumpy.gotoAndStop(10);
} else if ((this["enemy" + num]._x <= (hero._x - 1)) and (this["enemy" + num]._xscale == 100)) {
this["enemy" + num].jumpy.gotoAndStop(10);
}
}
if ((this["enemy" + num].hitTest(hero) and ((!_root.heroDead) == true)) and (this["enemy" + num].hero2.canAttack == true)) {
this["enemy" + num].hero2.canAttack = false;
this["enemy" + num].hero2.gotoAndPlay(_root.enemyRandomAttack);
}
if (this["enemy" + num].hero2.HIT.hitTest(hero.HIT)) {
this["enemy" + num].hero2.HIT.HITin.gotoAndPlay(2);
blink.play();
}
if (this["enemy" + num].jumpy.jumpHIT.HIT.hitTest(hero.HIT)) {
this["enemy" + num].jumpy.jumpHIT.HIT.HITin.gotoAndPlay(2);
blink.play();
}
if (this["enemy" + num].hero2.HIT2.hitTest(hero.HIT)) {
this["enemy" + num].hero2.HIT2.HITin.gotoAndPlay(2);
if (this["enemy" + num]._xscale == 100) {
hero._x = hero._x - 50;
blink.play();
}
if (this["enemy" + num]._xscale == -100) {
hero._x = hero._x + 50;
blink.play();
}
}
if (((hero._x > this["enemy" + num]._x) and ((!this["enemy" + num].dead) == true)) and ((!this["enemy" + num].air) == true)) {
this["enemy" + num]._xscale = -100;
} else if (((hero._x < this["enemy" + num]._x) and ((!this["enemy" + num].dead) == true)) and ((!this["enemy" + num].air) == true)) {
this["enemy" + num]._xscale = 100;
}
if (((((hero._x > (this["enemy" + num]._x + 70)) and ((!this["enemy" + num].dead) == true)) and this["enemy" + num].hitTest(this["enemy" + num].AAA)) and ((!this["enemy" + num].air) == true)) and ((!this["enemy" + num].hero2.kick) == true)) {
this["enemy" + num].legs.gotoAndStop(4);
this["enemy" + num]._x = this["enemy" + num]._x + enemySpeed;
} else if (((((hero._x < (this["enemy" + num]._x - 70)) and ((!this["enemy" + num].dead) == true)) and this["enemy" + num].hitTest(this["enemy" + num].AAA)) and ((!this["enemy" + num].air) == true)) and ((!this["enemy" + num].hero2.kick) == true)) {
this["enemy" + num]._x = this["enemy" + num]._x - enemySpeed;
this["enemy" + num].legs.gotoAndStop(4);
} else {
this["enemy" + num].legs.gotoAndStop(1);
}
this["enemy" + num]._y = this["enemy" + num]._y + 8;
while (ground.hitTest(this["enemy" + num]._x, this["enemy" + num]._y, true)) {
this["enemy" + num]._y = this["enemy" + num]._y - 1;
}
while (ground.hitTest(hero._root.SpearFall._x, hero._root.SpearFall._y, true)) {
_root.SpearFall._y = _root.SpearFall._y - 1;
}
if (hero.hero2.HIT.hitTest(this["enemy" + num].HIT) and ((!this["enemy" + num].dead) == true)) {
_root.attachMovie("bloodAttach", "bloodAttach", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.hero2.HIT.HITin.gotoAndPlay(2);
this["enemy" + num].HP = this["enemy" + num].HP - weaponDamage;
if (this["enemy" + num].HP <= 0) {
_root.attachMovie("heartAttach", "heartAttach", 38, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y});
gold = gold + (random(50) + 10);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
if ((sword == 5) or (sword == 8)) {
this["enemy" + num].die.gotoAndPlay(80);
} else {
this["enemy" + num].die.gotoAndPlay(1);
}
}
}
if (hero.hero2.HIT2.hitTest(this["enemy" + num].HIT) and ((!this["enemy" + num].dead) == true)) {
_root.attachMovie("bloodAttachKICK", "bloodAttachKICK", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.hero2.HIT2.HITin.gotoAndPlay(2);
this["enemy" + num].HP = this["enemy" + num].HP - (Math.ceil(weaponDamage) * 5);
if (this["enemy" + num].HP <= 0) {
_root.attachMovie("heartAttach", "heartAttach", 38, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y});
gold = gold + (random(50) + 10);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
this["enemy" + num].die.gotoAndPlay(60);
}
}
if (hero.hero2.HIT3.hitTest(this["enemy" + num].HIT) and ((!this["enemy" + num].dead) == true)) {
_root.attachMovie("bloodAttachKICK", "bloodAttachKICK", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.hero2.HIT3.HITin.gotoAndPlay(2);
this["enemy" + num].gotoAndStop(2);
this["enemy" + num].gotKicked.gotoAndPlay(37);
this["enemy" + num].HP = this["enemy" + num].HP - (Math.ceil(weaponDamage) / 3);
if (hero._xscale == 100) {
this["enemy" + num]._x = this["enemy" + num]._x - 60;
}
if (hero._xscale == -100) {
this["enemy" + num]._x = this["enemy" + num]._x + 60;
}
if (this["enemy" + num].HP <= 0) {
_root.attachMovie("heartAttach", "heartAttach", 38, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y});
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
this["enemy" + num].die.gotoAndPlay(60);
}
}
if (hero.jumpy.HIT.hitTest(this["enemy" + num].HIT) and ((!this["enemy" + num].dead) == true)) {
_root.attachMovie("bloodAttachKICK", "bloodAttachKICK", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.jumpy.HIT.HITin.gotoAndStop(2);
this["enemy" + num].HP = this["enemy" + num].HP - (weaponDamage * 3);
if (this["enemy" + num].HP <= 0) {
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
this["enemy" + num].die.gotoAndPlay(100);
}
}
if (hero.sit.HIT.hitTest(this["enemy" + num].legs) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num].gotoAndStop(2);
_root.attachMovie("bloodAttachKICK", "bloodAttachKICK", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.sit.HIT.HITin.gotoAndStop(2);
this["enemy" + num].HP = this["enemy" + num].HP - (Math.ceil(weaponDamage) / 3);
if (hero._xscale == 100) {
this["enemy" + num]._x = this["enemy" + num]._x - 50;
}
if (hero._xscale == -100) {
this["enemy" + num]._x = this["enemy" + num]._x + 50;
}
if (this["enemy" + num].HP <= 0) {
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
this["enemy" + num].die.gotoAndPlay(1);
}
}
if (hero.sit.HIT2.hitTest(this["enemy" + num].HIT) and ((!this["enemy" + num].dead) == true)) {
_root.attachMovie("bloodAttach", "bloodAttach", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.sit.HIT2.HITin.gotoAndStop(2);
this["enemy" + num].HP = this["enemy" + num].HP - (weaponDamage * 2);
if (this["enemy" + num].HP <= 0) {
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
this["enemy" + num].die.gotoAndPlay(80);
}
}
if (this["enemy" + num].hitTest(_root.bullet0) and ((!this["enemy" + num].dead) == true)) {
removeMovieClip(_root.bullet0);
this["enemy" + num].gotoAndStop(4);
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
_root.attachMovie("bloodAttach", "bloodAttach", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
_root.attachMovie("deadEnemy", "deadEnemy", deadEnemyNum, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
if (spearcankill == true) {
this["enemy" + num].die.gotoAndPlay(20);
}
if (spearcankill == false) {
this["enemy" + num].die.gotoAndPlay(40);
}
this["enemy" + num].dead = true;
}
if (this["enemy" + num].HIT.hitTest(_root.bullet1) and ((!this["enemy" + num].dead) == true)) {
removeMovieClip(_root.bullet1);
this["enemy" + num].gotoAndStop(4);
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
_root.attachMovie("bloodAttach", "bloodAttach", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
_root.attachMovie("deadEnemy", "deadEnemy", deadEnemyNum, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
if (spearcankill == true) {
this["enemy" + num].die.gotoAndPlay(20);
}
if (spearcankill == false) {
this["enemy" + num].die.gotoAndPlay(40);
}
this["enemy" + num].dead = true;
}
if ((((hero.hero2.HIT.hitTest(this["enemy" + num].hero2) or hero.hero2.HIT2.hitTest(this["enemy" + num].hero2)) or hero.hero2.HIT3.hitTest(this["enemy" + num].hero2)) or hero.jumpy.HIT.hitTest(this["enemy" + num].hero2)) or (((hero.sit.HIT2.hitTest(this["enemy" + num].hero2) and (this["enemy" + num].HIT._currentframe > 1)) and (_root.blink._currentframe == 1)) and ((!shieldDead) == true))) {
_root.attachMovie("bloodAttach0Defence", "bloodAttach0Defence", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.hero2.HIT.HITin.gotoAndPlay(2);
hero.hero2.HIT2.HITin.gotoAndPlay(2);
hero.hero2.HIT3.HITin.gotoAndPlay(2);
hero.jumpy.HIT.HITin.gotoAndPlay(2);
if (this["enemy" + num]._xscale == 100) {
this["enemy" + num]._x = this["enemy" + num]._x + 30;
}
if (this["enemy" + num]._xscale == -100) {
this["enemy" + num]._x = this["enemy" + num]._x - 30;
}
}
shieldDead == false;
if ((((((_root.hero.HIT._currentframe == 2) and (_root.blink._currentframe == 1)) and ((!shieldDead) == true)) and this["enemy" + num].hero2.HIT.hitTest(hero)) or this["enemy" + num].hero2.HIT2.hitTest(hero)) or this["enemy" + num].jumpy.jumpHIT.HIT.hitTest(hero)) {
_root.attachMovie("bloodAttach0Defence2", "bloodAttach0Defence2", 50, {_x:hero._x, _y:hero._y - 50});
this["enemy" + num].hero2.HIT.HITin.gotoAndPlay(2);
this["enemy" + num].hero2.HIT2.HITin.gotoAndPlay(2);
this["enemy" + num].jumpy.jumpHIT.HIT.HITin.gotoAndPlay(2);
if (this["enemy" + num]._xscale == -100) {
hero._x = hero._x + 30;
}
if (this["enemy" + num]._xscale == 100) {
hero._x = hero._x - 30;
}
}
if ((this["enemy" + num].live == true) and (this["enemy" + num].dead == true)) {
this["enemy" + num].gotoAndStop(7);
this["enemy" + num].time = this["enemy" + num].time - 1;
if (this["enemy" + num].time <= 0) {
this["enemy" + num].time = random(400) + 20;
this["enemy" + num].HP = _root.enemyHP;
this["enemy" + num].gotoAndStop(1);
this["enemy" + num].live = false;
this["enemy" + num].dead = false;
this["enemy" + num]._x = menu._x - livePosition;
this["enemy" + num]._y = hero._y;
}
}
if (this["enemy" + num]._x <= (menu._x - 660)) {
this["enemy" + num]._y = hero._y;
this["enemy" + num]._x = menu._x - livePosition;
} else if (this["enemy" + num]._x >= (menu._x + 660)) {
this["enemy" + num]._y = hero._y;
this["enemy" + num]._x = menu._x - livePosition;
}
if (this["enemy" + num].die.spearReSpawn == true) {
this["enemy" + num].die.spearReSpawn = false;
_root.attachMovie("SpearFall", "SpearFall", 100, {_x:this["enemy" + num]._x - 50, _y:this["enemy" + num]._y});
}
if (_root.groundHIT1.hitTest(_root.bullet0) and (_root.spearcankill == true)) {
_root.attachMovie("SpearFall", "SpearFall", 100, {_x:_root.bullet0._x, _y:_root.bullet0._y - 8});
removeMovieClip(_root.bullet0);
}
if (_root.groundHIT1.hitTest(_root.bullet1) and (_root.spearcankill == true)) {
_root.attachMovie("SpearFall", "SpearFall", 100, {_x:_root.bullet1._x, _y:_root.bullet1._y - 8});
removeMovieClip(_root.bullet1);
}
if (_root.groundHIT2.hitTest(_root.bullet0) and (_root.spearcankill == true)) {
_root.attachMovie("SpearFall", "SpearFall", 100, {_x:_root.bullet0._x, _y:_root.bullet0._y - 8});
removeMovieClip(_root.bullet0);
}
if (_root.groundHIT2.hitTest(_root.bullet1) and (_root.spearcankill == true)) {
_root.attachMovie("SpearFall", "SpearFall", 100, {_x:_root.bullet1._x, _y:_root.bullet1._y - 8});
removeMovieClip(_root.bullet1);
}
num++;
}
_x = (_x - Math.round((_x - (300 - ScrollOb._x)) / 10));
_y = (_y - Math.round((_y - (300 - ScrollOb._y)) / 10));
ScrollOb = hero;
menu._x = (-_x) + 300;
menu._y = (-_y) + 200;
wind._x = (-_x) + 300;
wind._y = (-_y) + 200;
snow._x = (-_x) + 43.4;
snow._y = (-_y) - 15.2;
menu2._x = (-_x) + 300;
menu2._y = (-_y) + 200;
maskRoot._x = (-_x) + 300;
maskRoot._y = (-_y) + 200;
bambook._x = (-_x) + 300;
groundHIT1._x = (-_x) + 1200;
groundHIT2._x = (-_x) - 600;
levelEnd._x = (-_x) + 300;
levelEnd._y = (-_y) + 200;
attachBM._x = (-_x) + 300;
attachBM._y = (-_y) + 200;
hero.gotoAndStop(frame);
jump = Key.isDown(38);
hero.vy = hero.vy + gravity;
hero._x = hero._x + hero.vx;
hero._y = hero._y + hero.vy;
if ((!pause) == true) {
if (jump) {
jumpnum = jumpnum - 1;
if (hero.grounded) {
hero.vy = -hero.jumpPower;
frame = "jump";
}
}
}
if (left) {
hero.vx = hero.vx - hero.spd;
hero._xscale = -100;
frame = "run";
} else if (right) {
hero.vx = hero.vx + hero.spd;
hero._xscale = 100;
frame = "run";
} else if (hero.grounded) {
hero.vx = hero.vx * 0.9;
frame = "stand";
} else {
frame = "jump";
}
if ((!pause) == true) {
if (Math.abs(hero.vx) > hero.maxSpd) {
hero.vx = hero.vx * 0.9;
}
}
hero.grounded = false;
if (ground.hitTest(hero._x, hero._y, true)) {
hero.vy = -Math.abs(hero.vy * 0.4);
hero.grounded = true;
frame = "stand";
while (ground.hitTest(hero._x, hero._y, true)) {
hero._y = hero._y - 0.2;
}
}
if (ground.hitTest(hero._x - (hero._width / 2), hero._y - (hero._height / 2), true)) {
hero.vx = Math.abs(hero.vx * 0.4);
while (ground.hitTest(hero._x - (hero._width / 2), hero._y - (hero._height / 2), true)) {
hero._x = hero._x + 0.2;
}
} else if (ground.hitTest(hero._x + (hero._width / 2), hero._y - (hero._height / 2), true)) {
hero.vx = -Math.abs(hero.vx * 0.4);
while (ground.hitTest(hero._x + (hero._width / 2), hero._y - (hero._height / 2), true)) {
hero._x = hero._x - 0.2;
}
}
}
};
stop();
Instance of Symbol 1481 MovieClip "menu" in Frame 56
onClipEvent (load) {
this.gotoAndStop(8);
}
Instance of Symbol 1491 MovieClip "ground" in Frame 56
onClipEvent (load) {
this.gotoAndStop(2);
}
Instance of Symbol 1494 MovieClip in Frame 56
onClipEvent (enterFrame) {
if (_root.groundHIT2.hitTest(this.HIT)) {
this._x = _root.groundHIT1._x - 200;
this.gotoAndStop(random(2) + 1);
} else if (_root.groundHIT1.hitTest(this.HIT)) {
this._x = _root.groundHIT2._x + 200;
this.gotoAndStop(random(2) + 1);
}
trace(this._x);
}
Instance of Symbol 1500 MovieClip "hero" in Frame 56
onClipEvent (enterFrame) {
if (((Key.isDown(40) and Key.isDown(37)) and Key.isDown(39)) and ((!_root.heroDead) == true)) {
this._x = this._x - run;
}
if (_root.heroDead == true) {
this.state = 4;
}
if ((Key.isDown(40) and ((!air) == true)) and ((!_root.heroDead) == true)) {
if (this._xscale == 100) {
this._x = this._x - run3;
if ((!run3) <= 0) {
run3--;
}
}
if (this._xscale == -100) {
this._x = this._x + run3;
if ((!run3) <= 0) {
run3--;
}
}
state = 5;
if (Key.isDown(37) and ((!_root.heroDead) == true)) {
_x = (_x + run);
}
if (Key.isDown(39) and ((!_root.heroDead) == true)) {
_x = (_x - run);
}
}
if (((state == 5) and (_root.spearflyCheker == true)) and ((!_root.heroDead) == true)) {
_root.spearflyCheker = false;
_root.spearfly = false;
_root.sword = 11;
}
if (((state == 5) and (_root.arrowflyCheker == true)) and ((!_root.heroDead) == true)) {
_root.arrowflyCheker = false;
_root.arrowfly = false;
}
if (((Key.isDown(38) and (_root.jump2 == true)) and ((!spearfly) == true)) and ((!_root.heroDead) == true)) {
_root.hero.vy = -_root.hero.jumpPower;
_root.jumpnum = 100;
}
if (((air == true) and (_root.spearflyCheker == true)) and ((!_root.heroDead) == true)) {
_root.spearflyCheker = false;
_root.spearfly = false;
_root.sword = 11;
}
if (((air == true) and (_root.arrowflyCheker == true)) and ((!_root.heroDead) == true)) {
_root.arrowflyCheker = false;
_root.arrowfly = false;
}
if (((!Key.isDown(38)) and (_root.jumpnum <= 2)) and ((!_root.heroDead) == true)) {
_root.jump2 = true;
} else {
_root.jump2 = false;
}
if ((!Key.isDown(40)) and ((!_root.heroDead) == true)) {
run3 = run;
}
if (Key.isDown(37) and ((!_root.heroDead) == true)) {
run2 = run;
_x = (_x - run);
this._xscale = 100;
this.legs.play();
}
if (((!(Key.isDown(37) or Key.isDown(39))) and (!Key.isDown(40))) and ((!_root.heroDead) == true)) {
this.legs.gotoAndStop(1);
if (this._xscale == 100) {
this._x = this._x - run2;
if ((!run2) <= 0) {
run2--;
}
}
if (this._xscale == -100) {
this._x = this._x + run2;
if ((!run2) <= 0) {
run2--;
}
}
}
if ((Key.isDown(37) && (Key.isDown(39))) and ((!_root.heroDead) == true)) {
this._x = this._x + run;
this._xscale = -100;
this.legs.play();
}
if (((air == true) && (Key.isDown(37))) and ((!_root.heroDead) == true)) {
state = 3;
}
if (Key.isDown(39) and ((!_root.heroDead) == true)) {
run2 = run;
_x = (_x + run);
this._xscale = -100;
this.legs.play();
}
if (((air == true) && (Key.isDown(39))) and ((!_root.heroDead) == true)) {
state = 3;
}
gotoAndStop(state);
if ((Key.isDown(65) && (air == true)) and ((!_root.heroDead) == true)) {
_root.hero.jumping.gotoAndPlay(6);
}
if (((Key.isDown(65) and (Key.isDown(37) or Key.isDown(39))) and ((!air) == true)) and ((!_root.heroDead) == true)) {
_root.standAttack = false;
_root.runAttack = true;
}
this._y = this._y + 8;
_y = (_y + gravity);
if (air == true) {
state = 3;
}
if (_root.ground.hitTest(_x, _y, true)) {
air = false;
_root.jumpnum = 2;
} else {
air = true;
state = 3;
}
if (air == false) {
state = 1;
}
if ((_root.arrowfly == true) and ((!_root.gotArrows) == false)) {
_root.menu2.arrows.gotoAndStop(_root.menu2.arrows._currentframe + 1);
_root.spearT = false;
totalbullet++;
if (totalbullet > 1) {
totalbullet = 0;
}
if (_root.hero._xscale == -100) {
_root.attachMovie("bullet", "bullet" + totalbullet, totalbullet, {_x:_x, _y:_y, _rotation:this._rotation});
} else if (_root.hero._xscale == 100) {
_root.attachMovie("bullet2", "bullet" + totalbullet, totalbullet, {_x:_x, _y:_y, _rotation:this._rotation});
}
}
if (_root.spearfly == true) {
_root.spearT = true;
totalbullet++;
if (totalbullet > 1) {
totalbullet = 0;
}
if (_root.hero._xscale == -100) {
_root.attachMovie("bullet", "bullet" + totalbullet, totalbullet, {_x:_x, _y:_y, _rotation:this._rotation});
} else if (_root.hero._xscale == 100) {
_root.attachMovie("bullet2", "bullet" + totalbullet, totalbullet, {_x:_x, _y:_y, _rotation:this._rotation});
}
}
}
onClipEvent (load) {
totalbullet = 0;
}
Instance of Symbol 1501 MovieClip "steam" in Frame 56
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 1502 MovieClip "blink" in Frame 56
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 616 MovieClip "groundHIT1" in Frame 56
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 616 MovieClip "groundHIT2" in Frame 56
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 1551 MovieClip "swordOrBow" in Frame 56
onClipEvent (enterFrame) {
if (_root.swords == true) {
this.gotoAndStop(1);
}
if (_root.bows == true) {
this.gotoAndStop(2);
}
}
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 1547 MovieClip "menu2" in Frame 56
onClipEvent (enterFrame) {
this.swapDepths((this._y * 100) + this._x);
}
Instance of Symbol 1549 MovieClip "levelEnd" in Frame 56
onClipEvent (enterFrame) {
this.swapDepths((this._y * 1000) + this._x);
}
Frame 57
levelFrame = 58;
gotoAndStop (30);
_x = 0;
_y = 0;
Frame 58
swordE = 6;
bootsE = 37;
pantsE = 33;
weaponDamageE = 60;
bodyE = 8;
helmetE = 9;
shieldE = 7;
shield2E = 7;
shieldhandE = 12;
attackNum = 0;
attackNum2 = 0;
attackNum3 = 0;
attackNum4 = 0;
attackNum5 = 0;
gotArrows = true;
weaponDamage = 1;
HITMinusArmour = 0;
enemyHITPower = 170;
menu2.location.location = "Rome";
_root.attachMovie("attachBM", "attachBM", 50, {_x:300, _y:200});
removeMovieClip(_root.heroAttach);
enemies = 3;
enemyHP = 30;
blooddummy._x = 0;
blooddummy._y = 0;
dep = 200;
gravity = 0.5;
hero.vx = 0;
hero.vy = 0;
hero.jumpPower = 20;
hero.grounded = false;
ScrollOb = hero;
spearfly = false;
spear = true;
hero.run = 7;
deadEnemyNum = 1000;
num = 0;
while (num <= enemies) {
this["enemy" + num].power = 20;
this["enemy" + num].HP = 20;
groundGNum = 1000;
groundGNum2 = -500;
this["enemy" + num].time = 500;
num++;
}
roundTime = 2300;
sound2 = true;
music = true;
music2 = false;
music3 = false;
music4 = false;
onEnterFrame = function () {
trace(roundTime);
roundTime = roundTime - 1;
if ((roundTime <= 0) and ((!heroDead) == true)) {
hero.HIT.gotoAndStop(2);
levelEnd.play();
removeMovieClip(menu2);
}
if ((!_root.HITMinusArmour) <= 1) {
_root.HITMinusArmour = _root.enemyHITPower - _root.armour;
}
if (_root.HITMinusArmour <= 1) {
_root.HITMinusArmour = 1;
}
trace(_root.HITMinusArmour);
if ((!pause) == true) {
num = 0;
while (num <= enemies) {
if (hero._x >= groundGNum) {
groundGNum = groundGNum + 500;
groundGNum2 = groundGNum2 + 500;
ground._x = ground._x + 500;
} else if (hero._x <= groundGNum2) {
groundGNum2 = groundGNum2 - 500;
groundGNum = groundGNum - 500;
ground._x = ground._x - 500;
}
if (EXP >= 1000) {
levelUP = levelUP + 1;
EXP = 0;
}
deadEnemyNum++;
this["enemy" + num];
if ((this["enemy" + num].AAA.jumpFrame == true) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num].air = true;
this["enemy" + num].gotoAndStop(3);
} else if (((this["enemy" + num].AAA.jumpFrame == false) and ground.hitTest(this["enemy" + num]._x, this["enemy" + num]._y + 5, true)) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num].air = false;
this["enemy" + num].power = 20;
this["enemy" + num].gotoAndStop(1);
}
if ((this["enemy" + num].AAA._currentframe == 52) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num].AAA.gotoAndPlay(random(500) + 1);
}
if (ground.hitTest(this["enemy" + num]._x - 6, this["enemy" + num]._y - 10, true) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num]._x = this["enemy" + num]._x + enemySpeed;
} else if (ground.hitTest(this["enemy" + num]._x + 6, this["enemy" + num]._y - 10, true) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num]._x = this["enemy" + num]._x - enemySpeed;
}
if ((this["enemy" + num]._currentframe == 3) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num].air = true;
this["enemy" + num]._y = this["enemy" + num]._y - this["enemy" + num].power;
if ((!this["enemy" + num].power) <= 0) {
this["enemy" + num].power = this["enemy" + num].power - 0.5;
if (this["enemy" + num]._xscale == 100) {
this["enemy" + num]._x = this["enemy" + num]._x - enemySpeed;
}
if (this["enemy" + num]._xscale == -100) {
this["enemy" + num]._x = this["enemy" + num]._x + enemySpeed;
}
}
if ((this["enemy" + num]._x >= (hero._x + 1)) and (this["enemy" + num]._xscale == -100)) {
this["enemy" + num].jumpy.gotoAndStop(10);
} else if ((this["enemy" + num]._x <= (hero._x - 1)) and (this["enemy" + num]._xscale == 100)) {
this["enemy" + num].jumpy.gotoAndStop(10);
}
}
if ((this["enemy" + num].hitTest(hero) and ((!_root.heroDead) == true)) and (this["enemy" + num].hero2.canAttack == true)) {
this["enemy" + num].hero2.canAttack = false;
this["enemy" + num].hero2.gotoAndPlay(_root.enemyRandomAttack);
}
if (this["enemy" + num].hero2.HIT.hitTest(hero.HIT)) {
this["enemy" + num].hero2.HIT.HITin.gotoAndPlay(2);
blink.play();
}
if (this["enemy" + num].jumpy.jumpHIT.HIT.hitTest(hero.HIT)) {
this["enemy" + num].jumpy.jumpHIT.HIT.HITin.gotoAndPlay(2);
blink.play();
}
if (this["enemy" + num].hero2.HIT2.hitTest(hero.HIT)) {
this["enemy" + num].hero2.HIT2.HITin.gotoAndPlay(2);
if (this["enemy" + num]._xscale == 100) {
hero._x = hero._x - 50;
blink.play();
}
if (this["enemy" + num]._xscale == -100) {
hero._x = hero._x + 50;
blink.play();
}
}
if (((hero._x > this["enemy" + num]._x) and ((!this["enemy" + num].dead) == true)) and ((!this["enemy" + num].air) == true)) {
this["enemy" + num]._xscale = -100;
} else if (((hero._x < this["enemy" + num]._x) and ((!this["enemy" + num].dead) == true)) and ((!this["enemy" + num].air) == true)) {
this["enemy" + num]._xscale = 100;
}
if (((((hero._x > (this["enemy" + num]._x + 70)) and ((!this["enemy" + num].dead) == true)) and this["enemy" + num].hitTest(this["enemy" + num].AAA)) and ((!this["enemy" + num].air) == true)) and ((!this["enemy" + num].hero2.kick) == true)) {
this["enemy" + num].legs.gotoAndStop(4);
this["enemy" + num]._x = this["enemy" + num]._x + enemySpeed;
} else if (((((hero._x < (this["enemy" + num]._x - 70)) and ((!this["enemy" + num].dead) == true)) and this["enemy" + num].hitTest(this["enemy" + num].AAA)) and ((!this["enemy" + num].air) == true)) and ((!this["enemy" + num].hero2.kick) == true)) {
this["enemy" + num]._x = this["enemy" + num]._x - enemySpeed;
this["enemy" + num].legs.gotoAndStop(4);
} else {
this["enemy" + num].legs.gotoAndStop(1);
}
this["enemy" + num]._y = this["enemy" + num]._y + 8;
while (ground.hitTest(this["enemy" + num]._x, this["enemy" + num]._y, true)) {
this["enemy" + num]._y = this["enemy" + num]._y - 1;
}
while (ground.hitTest(hero._root.SpearFall._x, hero._root.SpearFall._y, true)) {
_root.SpearFall._y = _root.SpearFall._y - 1;
}
if (hero.hero2.HIT.hitTest(this["enemy" + num].HIT) and ((!this["enemy" + num].dead) == true)) {
_root.attachMovie("bloodAttach", "bloodAttach", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.hero2.HIT.HITin.gotoAndPlay(2);
this["enemy" + num].HP = this["enemy" + num].HP - weaponDamage;
if (this["enemy" + num].HP <= 0) {
_root.attachMovie("heartAttach", "heartAttach", 38, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y});
gold = gold + (random(50) + 10);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
if ((sword == 5) or (sword == 8)) {
this["enemy" + num].die.gotoAndPlay(80);
} else {
this["enemy" + num].die.gotoAndPlay(1);
}
}
}
if (hero.hero2.HIT2.hitTest(this["enemy" + num].HIT) and ((!this["enemy" + num].dead) == true)) {
_root.attachMovie("bloodAttachKICK", "bloodAttachKICK", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.hero2.HIT2.HITin.gotoAndPlay(2);
this["enemy" + num].HP = this["enemy" + num].HP - (Math.ceil(weaponDamage) * 5);
if (this["enemy" + num].HP <= 0) {
_root.attachMovie("heartAttach", "heartAttach", 38, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y});
gold = gold + (random(50) + 10);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
this["enemy" + num].die.gotoAndPlay(60);
}
}
if (hero.hero2.HIT3.hitTest(this["enemy" + num].HIT) and ((!this["enemy" + num].dead) == true)) {
_root.attachMovie("bloodAttachKICK", "bloodAttachKICK", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.hero2.HIT3.HITin.gotoAndPlay(2);
this["enemy" + num].gotoAndStop(2);
this["enemy" + num].gotKicked.gotoAndPlay(37);
this["enemy" + num].HP = this["enemy" + num].HP - (Math.ceil(weaponDamage) / 3);
if (hero._xscale == 100) {
this["enemy" + num]._x = this["enemy" + num]._x - 60;
}
if (hero._xscale == -100) {
this["enemy" + num]._x = this["enemy" + num]._x + 60;
}
if (this["enemy" + num].HP <= 0) {
_root.attachMovie("heartAttach", "heartAttach", 38, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y});
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
this["enemy" + num].die.gotoAndPlay(60);
}
}
if (hero.jumpy.HIT.hitTest(this["enemy" + num].HIT) and ((!this["enemy" + num].dead) == true)) {
_root.attachMovie("bloodAttachKICK", "bloodAttachKICK", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.jumpy.HIT.HITin.gotoAndStop(2);
this["enemy" + num].HP = this["enemy" + num].HP - (weaponDamage * 3);
if (this["enemy" + num].HP <= 0) {
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
this["enemy" + num].die.gotoAndPlay(100);
}
}
if (hero.sit.HIT.hitTest(this["enemy" + num].legs) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num].gotoAndStop(2);
_root.attachMovie("bloodAttachKICK", "bloodAttachKICK", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.sit.HIT.HITin.gotoAndStop(2);
this["enemy" + num].HP = this["enemy" + num].HP - (Math.ceil(weaponDamage) / 3);
if (hero._xscale == 100) {
this["enemy" + num]._x = this["enemy" + num]._x - 50;
}
if (hero._xscale == -100) {
this["enemy" + num]._x = this["enemy" + num]._x + 50;
}
if (this["enemy" + num].HP <= 0) {
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
this["enemy" + num].die.gotoAndPlay(1);
}
}
if (hero.sit.HIT2.hitTest(this["enemy" + num].HIT) and ((!this["enemy" + num].dead) == true)) {
_root.attachMovie("bloodAttach", "bloodAttach", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.sit.HIT2.HITin.gotoAndStop(2);
this["enemy" + num].HP = this["enemy" + num].HP - (weaponDamage * 2);
if (this["enemy" + num].HP <= 0) {
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
this["enemy" + num].die.gotoAndPlay(80);
}
}
if (this["enemy" + num].hitTest(_root.bullet0) and ((!this["enemy" + num].dead) == true)) {
removeMovieClip(_root.bullet0);
this["enemy" + num].gotoAndStop(4);
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
_root.attachMovie("bloodAttach", "bloodAttach", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
_root.attachMovie("deadEnemy", "deadEnemy", deadEnemyNum, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
if (spearcankill == true) {
this["enemy" + num].die.gotoAndPlay(20);
}
if (spearcankill == false) {
this["enemy" + num].die.gotoAndPlay(40);
}
this["enemy" + num].dead = true;
}
if (this["enemy" + num].HIT.hitTest(_root.bullet1) and ((!this["enemy" + num].dead) == true)) {
removeMovieClip(_root.bullet1);
this["enemy" + num].gotoAndStop(4);
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
_root.attachMovie("bloodAttach", "bloodAttach", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
_root.attachMovie("deadEnemy", "deadEnemy", deadEnemyNum, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
if (spearcankill == true) {
this["enemy" + num].die.gotoAndPlay(20);
}
if (spearcankill == false) {
this["enemy" + num].die.gotoAndPlay(40);
}
this["enemy" + num].dead = true;
}
if ((((hero.hero2.HIT.hitTest(this["enemy" + num].hero2) or hero.hero2.HIT2.hitTest(this["enemy" + num].hero2)) or hero.hero2.HIT3.hitTest(this["enemy" + num].hero2)) or hero.jumpy.HIT.hitTest(this["enemy" + num].hero2)) or (((hero.sit.HIT2.hitTest(this["enemy" + num].hero2) and (this["enemy" + num].HIT._currentframe > 1)) and (_root.blink._currentframe == 1)) and ((!shieldDead) == true))) {
_root.attachMovie("bloodAttach0Defence", "bloodAttach0Defence", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.hero2.HIT.HITin.gotoAndPlay(2);
hero.hero2.HIT2.HITin.gotoAndPlay(2);
hero.hero2.HIT3.HITin.gotoAndPlay(2);
hero.jumpy.HIT.HITin.gotoAndPlay(2);
if (this["enemy" + num]._xscale == 100) {
this["enemy" + num]._x = this["enemy" + num]._x + 30;
}
if (this["enemy" + num]._xscale == -100) {
this["enemy" + num]._x = this["enemy" + num]._x - 30;
}
}
shieldDead == false;
if ((((((_root.hero.HIT._currentframe == 2) and (_root.blink._currentframe == 1)) and ((!shieldDead) == true)) and this["enemy" + num].hero2.HIT.hitTest(hero)) or this["enemy" + num].hero2.HIT2.hitTest(hero)) or this["enemy" + num].jumpy.jumpHIT.HIT.hitTest(hero)) {
_root.attachMovie("bloodAttach0Defence2", "bloodAttach0Defence2", 50, {_x:hero._x, _y:hero._y - 50});
this["enemy" + num].hero2.HIT.HITin.gotoAndPlay(2);
this["enemy" + num].hero2.HIT2.HITin.gotoAndPlay(2);
this["enemy" + num].jumpy.jumpHIT.HIT.HITin.gotoAndPlay(2);
if (this["enemy" + num]._xscale == -100) {
hero._x = hero._x + 30;
}
if (this["enemy" + num]._xscale == 100) {
hero._x = hero._x - 30;
}
}
if ((this["enemy" + num].live == true) and (this["enemy" + num].dead == true)) {
this["enemy" + num].gotoAndStop(7);
this["enemy" + num].time = this["enemy" + num].time - 1;
if (this["enemy" + num].time <= 0) {
this["enemy" + num].time = random(400) + 20;
this["enemy" + num].HP = _root.enemyHP;
this["enemy" + num].gotoAndStop(1);
this["enemy" + num].live = false;
this["enemy" + num].dead = false;
this["enemy" + num]._x = menu._x - livePosition;
this["enemy" + num]._y = hero._y;
}
}
if (this["enemy" + num]._x <= (menu._x - 660)) {
this["enemy" + num]._y = hero._y;
this["enemy" + num]._x = menu._x - livePosition;
} else if (this["enemy" + num]._x >= (menu._x + 660)) {
this["enemy" + num]._y = hero._y;
this["enemy" + num]._x = menu._x - livePosition;
}
if (this["enemy" + num].die.spearReSpawn == true) {
this["enemy" + num].die.spearReSpawn = false;
_root.attachMovie("SpearFall", "SpearFall", 100, {_x:this["enemy" + num]._x - 50, _y:this["enemy" + num]._y});
}
if (_root.groundHIT1.hitTest(_root.bullet0) and (_root.spearcankill == true)) {
_root.attachMovie("SpearFall", "SpearFall", 100, {_x:_root.bullet0._x, _y:_root.bullet0._y - 8});
removeMovieClip(_root.bullet0);
}
if (_root.groundHIT1.hitTest(_root.bullet1) and (_root.spearcankill == true)) {
_root.attachMovie("SpearFall", "SpearFall", 100, {_x:_root.bullet1._x, _y:_root.bullet1._y - 8});
removeMovieClip(_root.bullet1);
}
if (_root.groundHIT2.hitTest(_root.bullet0) and (_root.spearcankill == true)) {
_root.attachMovie("SpearFall", "SpearFall", 100, {_x:_root.bullet0._x, _y:_root.bullet0._y - 8});
removeMovieClip(_root.bullet0);
}
if (_root.groundHIT2.hitTest(_root.bullet1) and (_root.spearcankill == true)) {
_root.attachMovie("SpearFall", "SpearFall", 100, {_x:_root.bullet1._x, _y:_root.bullet1._y - 8});
removeMovieClip(_root.bullet1);
}
num++;
}
_x = (_x - Math.round((_x - (300 - ScrollOb._x)) / 10));
_y = (_y - Math.round((_y - (300 - ScrollOb._y)) / 10));
ScrollOb = hero;
menu._x = (-_x) + 300;
menu._y = (-_y) + 200;
wind._x = (-_x) + 300;
wind._y = (-_y) + 200;
snow._x = (-_x) + 43.4;
snow._y = (-_y) - 15.2;
menu2._x = (-_x) + 300;
menu2._y = (-_y) + 200;
maskRoot._x = (-_x) + 300;
maskRoot._y = (-_y) + 200;
bambook._x = (-_x) + 300;
groundHIT1._x = (-_x) + 1200;
groundHIT2._x = (-_x) - 600;
levelEnd._x = (-_x) + 300;
levelEnd._y = (-_y) + 200;
attachBM._x = (-_x) + 300;
attachBM._y = (-_y) + 200;
hero.gotoAndStop(frame);
jump = Key.isDown(38);
hero.vy = hero.vy + gravity;
hero._x = hero._x + hero.vx;
hero._y = hero._y + hero.vy;
if ((!pause) == true) {
if (jump) {
jumpnum = jumpnum - 1;
if (hero.grounded) {
hero.vy = -hero.jumpPower;
frame = "jump";
}
}
}
if (left) {
hero.vx = hero.vx - hero.spd;
hero._xscale = -100;
frame = "run";
} else if (right) {
hero.vx = hero.vx + hero.spd;
hero._xscale = 100;
frame = "run";
} else if (hero.grounded) {
hero.vx = hero.vx * 0.9;
frame = "stand";
} else {
frame = "jump";
}
if ((!pause) == true) {
if (Math.abs(hero.vx) > hero.maxSpd) {
hero.vx = hero.vx * 0.9;
}
}
hero.grounded = false;
if (ground.hitTest(hero._x, hero._y, true)) {
hero.vy = -Math.abs(hero.vy * 0.4);
hero.grounded = true;
frame = "stand";
while (ground.hitTest(hero._x, hero._y, true)) {
hero._y = hero._y - 0.2;
}
}
if (ground.hitTest(hero._x - (hero._width / 2), hero._y - (hero._height / 2), true)) {
hero.vx = Math.abs(hero.vx * 0.4);
while (ground.hitTest(hero._x - (hero._width / 2), hero._y - (hero._height / 2), true)) {
hero._x = hero._x + 0.2;
}
} else if (ground.hitTest(hero._x + (hero._width / 2), hero._y - (hero._height / 2), true)) {
hero.vx = -Math.abs(hero.vx * 0.4);
while (ground.hitTest(hero._x + (hero._width / 2), hero._y - (hero._height / 2), true)) {
hero._x = hero._x - 0.2;
}
}
}
};
stop();
Instance of Symbol 1481 MovieClip "menu" in Frame 58
onClipEvent (load) {
this.gotoAndStop(5);
}
Instance of Symbol 1491 MovieClip "ground" in Frame 58
onClipEvent (load) {
this.gotoAndStop(2);
}
Instance of Symbol 1494 MovieClip in Frame 58
onClipEvent (enterFrame) {
if (_root.groundHIT2.hitTest(this.HIT)) {
this._x = _root.groundHIT1._x - 200;
this.gotoAndStop(random(2) + 1);
} else if (_root.groundHIT1.hitTest(this.HIT)) {
this._x = _root.groundHIT2._x + 200;
this.gotoAndStop(random(2) + 1);
}
trace(this._x);
}
Instance of Symbol 1500 MovieClip "hero" in Frame 58
onClipEvent (enterFrame) {
if (((Key.isDown(40) and Key.isDown(37)) and Key.isDown(39)) and ((!_root.heroDead) == true)) {
this._x = this._x - run;
}
if (_root.heroDead == true) {
this.state = 4;
}
if ((Key.isDown(40) and ((!air) == true)) and ((!_root.heroDead) == true)) {
if (this._xscale == 100) {
this._x = this._x - run3;
if ((!run3) <= 0) {
run3--;
}
}
if (this._xscale == -100) {
this._x = this._x + run3;
if ((!run3) <= 0) {
run3--;
}
}
state = 5;
if (Key.isDown(37) and ((!_root.heroDead) == true)) {
_x = (_x + run);
}
if (Key.isDown(39) and ((!_root.heroDead) == true)) {
_x = (_x - run);
}
}
if (((state == 5) and (_root.spearflyCheker == true)) and ((!_root.heroDead) == true)) {
_root.spearflyCheker = false;
_root.spearfly = false;
_root.sword = 11;
}
if (((state == 5) and (_root.arrowflyCheker == true)) and ((!_root.heroDead) == true)) {
_root.arrowflyCheker = false;
_root.arrowfly = false;
}
if (((Key.isDown(38) and (_root.jump2 == true)) and ((!spearfly) == true)) and ((!_root.heroDead) == true)) {
_root.hero.vy = -_root.hero.jumpPower;
_root.jumpnum = 100;
}
if (((air == true) and (_root.spearflyCheker == true)) and ((!_root.heroDead) == true)) {
_root.spearflyCheker = false;
_root.spearfly = false;
_root.sword = 11;
}
if (((air == true) and (_root.arrowflyCheker == true)) and ((!_root.heroDead) == true)) {
_root.arrowflyCheker = false;
_root.arrowfly = false;
}
if (((!Key.isDown(38)) and (_root.jumpnum <= 2)) and ((!_root.heroDead) == true)) {
_root.jump2 = true;
} else {
_root.jump2 = false;
}
if ((!Key.isDown(40)) and ((!_root.heroDead) == true)) {
run3 = run;
}
if (Key.isDown(37) and ((!_root.heroDead) == true)) {
run2 = run;
_x = (_x - run);
this._xscale = 100;
this.legs.play();
}
if (((!(Key.isDown(37) or Key.isDown(39))) and (!Key.isDown(40))) and ((!_root.heroDead) == true)) {
this.legs.gotoAndStop(1);
if (this._xscale == 100) {
this._x = this._x - run2;
if ((!run2) <= 0) {
run2--;
}
}
if (this._xscale == -100) {
this._x = this._x + run2;
if ((!run2) <= 0) {
run2--;
}
}
}
if ((Key.isDown(37) && (Key.isDown(39))) and ((!_root.heroDead) == true)) {
this._x = this._x + run;
this._xscale = -100;
this.legs.play();
}
if (((air == true) && (Key.isDown(37))) and ((!_root.heroDead) == true)) {
state = 3;
}
if (Key.isDown(39) and ((!_root.heroDead) == true)) {
run2 = run;
_x = (_x + run);
this._xscale = -100;
this.legs.play();
}
if (((air == true) && (Key.isDown(39))) and ((!_root.heroDead) == true)) {
state = 3;
}
gotoAndStop(state);
if ((Key.isDown(65) && (air == true)) and ((!_root.heroDead) == true)) {
_root.hero.jumping.gotoAndPlay(6);
}
if (((Key.isDown(65) and (Key.isDown(37) or Key.isDown(39))) and ((!air) == true)) and ((!_root.heroDead) == true)) {
_root.standAttack = false;
_root.runAttack = true;
}
this._y = this._y + 8;
_y = (_y + gravity);
if (air == true) {
state = 3;
}
if (_root.ground.hitTest(_x, _y, true)) {
air = false;
_root.jumpnum = 2;
} else {
air = true;
state = 3;
}
if (air == false) {
state = 1;
}
if ((_root.arrowfly == true) and ((!_root.gotArrows) == false)) {
_root.menu2.arrows.gotoAndStop(_root.menu2.arrows._currentframe + 1);
_root.spearT = false;
totalbullet++;
if (totalbullet > 1) {
totalbullet = 0;
}
if (_root.hero._xscale == -100) {
_root.attachMovie("bullet", "bullet" + totalbullet, totalbullet, {_x:_x, _y:_y, _rotation:this._rotation});
} else if (_root.hero._xscale == 100) {
_root.attachMovie("bullet2", "bullet" + totalbullet, totalbullet, {_x:_x, _y:_y, _rotation:this._rotation});
}
}
if (_root.spearfly == true) {
_root.spearT = true;
totalbullet++;
if (totalbullet > 1) {
totalbullet = 0;
}
if (_root.hero._xscale == -100) {
_root.attachMovie("bullet", "bullet" + totalbullet, totalbullet, {_x:_x, _y:_y, _rotation:this._rotation});
} else if (_root.hero._xscale == 100) {
_root.attachMovie("bullet2", "bullet" + totalbullet, totalbullet, {_x:_x, _y:_y, _rotation:this._rotation});
}
}
}
onClipEvent (load) {
totalbullet = 0;
}
Instance of Symbol 1501 MovieClip "steam" in Frame 58
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 1502 MovieClip "blink" in Frame 58
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 616 MovieClip "groundHIT1" in Frame 58
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 616 MovieClip "groundHIT2" in Frame 58
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 1564 MovieClip "swordOrBow" in Frame 58
onClipEvent (enterFrame) {
if (_root.swords == true) {
this.gotoAndStop(1);
}
if (_root.bows == true) {
this.gotoAndStop(2);
}
}
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 1547 MovieClip "menu2" in Frame 58
onClipEvent (enterFrame) {
this.swapDepths((this._y * 100) + this._x);
}
Instance of Symbol 1549 MovieClip "levelEnd" in Frame 58
onClipEvent (enterFrame) {
this.swapDepths((this._y * 1000) + this._x);
}
Frame 59
levelFrame = 60;
gotoAndStop (30);
_x = 0;
_y = 0;
Frame 60
swordE = 9;
bootsE = 36;
pantsE = 34;
weaponDamageE = 60;
bodyE = 9;
helmetE = 10;
shieldE = 8;
shield2E = 6;
shieldhandE = 9;
attackNum = 0;
attackNum2 = 0;
attackNum3 = 0;
attackNum4 = 0;
attackNum5 = 0;
gotArrows = true;
weaponDamage = 1;
HITMinusArmour = 0;
enemyHITPower = 170;
menu2.location.location = "Malta";
_root.attachMovie("attachBM", "attachBM", 50, {_x:300, _y:200});
removeMovieClip(_root.heroAttach);
enemies = 3;
enemyHP = 35;
blooddummy._x = 0;
blooddummy._y = 0;
dep = 200;
gravity = 0.5;
hero.vx = 0;
hero.vy = 0;
hero.jumpPower = 20;
hero.grounded = false;
ScrollOb = hero;
spearfly = false;
spear = true;
hero.run = 7;
deadEnemyNum = 1000;
num = 0;
while (num <= enemies) {
this["enemy" + num].power = 20;
this["enemy" + num].HP = 25;
groundGNum = 1000;
groundGNum2 = -500;
this["enemy" + num].time = 500;
num++;
}
roundTime = 2300;
sound2 = false;
music = true;
music2 = false;
music3 = false;
music4 = false;
onEnterFrame = function () {
trace(roundTime);
roundTime = roundTime - 1;
if ((roundTime <= 0) and ((!heroDead) == true)) {
hero.HIT.gotoAndStop(2);
levelEnd.play();
removeMovieClip(menu2);
}
if ((!_root.HITMinusArmour) <= 1) {
_root.HITMinusArmour = _root.enemyHITPower - _root.armour;
}
if (_root.HITMinusArmour <= 1) {
_root.HITMinusArmour = 1;
}
trace(_root.HITMinusArmour);
if ((!pause) == true) {
num = 0;
while (num <= enemies) {
if (hero._x >= groundGNum) {
groundGNum = groundGNum + 500;
groundGNum2 = groundGNum2 + 500;
ground._x = ground._x + 500;
} else if (hero._x <= groundGNum2) {
groundGNum2 = groundGNum2 - 500;
groundGNum = groundGNum - 500;
ground._x = ground._x - 500;
}
if (EXP >= 1000) {
levelUP = levelUP + 1;
EXP = 0;
}
deadEnemyNum++;
this["enemy" + num];
if ((this["enemy" + num].AAA.jumpFrame == true) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num].air = true;
this["enemy" + num].gotoAndStop(3);
} else if (((this["enemy" + num].AAA.jumpFrame == false) and ground.hitTest(this["enemy" + num]._x, this["enemy" + num]._y + 5, true)) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num].air = false;
this["enemy" + num].power = 20;
this["enemy" + num].gotoAndStop(1);
}
if ((this["enemy" + num].AAA._currentframe == 52) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num].AAA.gotoAndPlay(random(500) + 1);
}
if (ground.hitTest(this["enemy" + num]._x - 6, this["enemy" + num]._y - 10, true) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num]._x = this["enemy" + num]._x + enemySpeed;
} else if (ground.hitTest(this["enemy" + num]._x + 6, this["enemy" + num]._y - 10, true) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num]._x = this["enemy" + num]._x - enemySpeed;
}
if ((this["enemy" + num]._currentframe == 3) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num].air = true;
this["enemy" + num]._y = this["enemy" + num]._y - this["enemy" + num].power;
if ((!this["enemy" + num].power) <= 0) {
this["enemy" + num].power = this["enemy" + num].power - 0.5;
if (this["enemy" + num]._xscale == 100) {
this["enemy" + num]._x = this["enemy" + num]._x - enemySpeed;
}
if (this["enemy" + num]._xscale == -100) {
this["enemy" + num]._x = this["enemy" + num]._x + enemySpeed;
}
}
if ((this["enemy" + num]._x >= (hero._x + 1)) and (this["enemy" + num]._xscale == -100)) {
this["enemy" + num].jumpy.gotoAndStop(10);
} else if ((this["enemy" + num]._x <= (hero._x - 1)) and (this["enemy" + num]._xscale == 100)) {
this["enemy" + num].jumpy.gotoAndStop(10);
}
}
if ((this["enemy" + num].hitTest(hero) and ((!_root.heroDead) == true)) and (this["enemy" + num].hero2.canAttack == true)) {
this["enemy" + num].hero2.canAttack = false;
this["enemy" + num].hero2.gotoAndPlay(_root.enemyRandomAttack);
}
if (this["enemy" + num].hero2.HIT.hitTest(hero.HIT)) {
this["enemy" + num].hero2.HIT.HITin.gotoAndPlay(2);
blink.play();
}
if (this["enemy" + num].jumpy.jumpHIT.HIT.hitTest(hero.HIT)) {
this["enemy" + num].jumpy.jumpHIT.HIT.HITin.gotoAndPlay(2);
blink.play();
}
if (this["enemy" + num].hero2.HIT2.hitTest(hero.HIT)) {
this["enemy" + num].hero2.HIT2.HITin.gotoAndPlay(2);
if (this["enemy" + num]._xscale == 100) {
hero._x = hero._x - 50;
blink.play();
}
if (this["enemy" + num]._xscale == -100) {
hero._x = hero._x + 50;
blink.play();
}
}
if (((hero._x > this["enemy" + num]._x) and ((!this["enemy" + num].dead) == true)) and ((!this["enemy" + num].air) == true)) {
this["enemy" + num]._xscale = -100;
} else if (((hero._x < this["enemy" + num]._x) and ((!this["enemy" + num].dead) == true)) and ((!this["enemy" + num].air) == true)) {
this["enemy" + num]._xscale = 100;
}
if (((((hero._x > (this["enemy" + num]._x + 70)) and ((!this["enemy" + num].dead) == true)) and this["enemy" + num].hitTest(this["enemy" + num].AAA)) and ((!this["enemy" + num].air) == true)) and ((!this["enemy" + num].hero2.kick) == true)) {
this["enemy" + num].legs.gotoAndStop(4);
this["enemy" + num]._x = this["enemy" + num]._x + enemySpeed;
} else if (((((hero._x < (this["enemy" + num]._x - 70)) and ((!this["enemy" + num].dead) == true)) and this["enemy" + num].hitTest(this["enemy" + num].AAA)) and ((!this["enemy" + num].air) == true)) and ((!this["enemy" + num].hero2.kick) == true)) {
this["enemy" + num]._x = this["enemy" + num]._x - enemySpeed;
this["enemy" + num].legs.gotoAndStop(4);
} else {
this["enemy" + num].legs.gotoAndStop(1);
}
this["enemy" + num]._y = this["enemy" + num]._y + 8;
while (ground.hitTest(this["enemy" + num]._x, this["enemy" + num]._y, true)) {
this["enemy" + num]._y = this["enemy" + num]._y - 1;
}
while (ground.hitTest(hero._root.SpearFall._x, hero._root.SpearFall._y, true)) {
_root.SpearFall._y = _root.SpearFall._y - 1;
}
if (hero.hero2.HIT.hitTest(this["enemy" + num].HIT) and ((!this["enemy" + num].dead) == true)) {
_root.attachMovie("bloodAttach", "bloodAttach", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.hero2.HIT.HITin.gotoAndPlay(2);
this["enemy" + num].HP = this["enemy" + num].HP - weaponDamage;
if (this["enemy" + num].HP <= 0) {
_root.attachMovie("heartAttach", "heartAttach", 38, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y});
gold = gold + (random(50) + 10);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
if ((sword == 5) or (sword == 8)) {
this["enemy" + num].die.gotoAndPlay(80);
} else {
this["enemy" + num].die.gotoAndPlay(1);
}
}
}
if (hero.hero2.HIT2.hitTest(this["enemy" + num].HIT) and ((!this["enemy" + num].dead) == true)) {
_root.attachMovie("bloodAttachKICK", "bloodAttachKICK", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.hero2.HIT2.HITin.gotoAndPlay(2);
this["enemy" + num].HP = this["enemy" + num].HP - (Math.ceil(weaponDamage) * 5);
if (this["enemy" + num].HP <= 0) {
_root.attachMovie("heartAttach", "heartAttach", 38, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y});
gold = gold + (random(50) + 10);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
this["enemy" + num].die.gotoAndPlay(60);
}
}
if (hero.hero2.HIT3.hitTest(this["enemy" + num].HIT) and ((!this["enemy" + num].dead) == true)) {
_root.attachMovie("bloodAttachKICK", "bloodAttachKICK", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.hero2.HIT3.HITin.gotoAndPlay(2);
this["enemy" + num].gotoAndStop(2);
this["enemy" + num].gotKicked.gotoAndPlay(37);
this["enemy" + num].HP = this["enemy" + num].HP - (Math.ceil(weaponDamage) / 3);
if (hero._xscale == 100) {
this["enemy" + num]._x = this["enemy" + num]._x - 60;
}
if (hero._xscale == -100) {
this["enemy" + num]._x = this["enemy" + num]._x + 60;
}
if (this["enemy" + num].HP <= 0) {
_root.attachMovie("heartAttach", "heartAttach", 38, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y});
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
this["enemy" + num].die.gotoAndPlay(60);
}
}
if (hero.jumpy.HIT.hitTest(this["enemy" + num].HIT) and ((!this["enemy" + num].dead) == true)) {
_root.attachMovie("bloodAttachKICK", "bloodAttachKICK", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.jumpy.HIT.HITin.gotoAndStop(2);
this["enemy" + num].HP = this["enemy" + num].HP - (weaponDamage * 3);
if (this["enemy" + num].HP <= 0) {
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
this["enemy" + num].die.gotoAndPlay(100);
}
}
if (hero.sit.HIT.hitTest(this["enemy" + num].legs) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num].gotoAndStop(2);
_root.attachMovie("bloodAttachKICK", "bloodAttachKICK", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.sit.HIT.HITin.gotoAndStop(2);
this["enemy" + num].HP = this["enemy" + num].HP - (Math.ceil(weaponDamage) / 3);
if (hero._xscale == 100) {
this["enemy" + num]._x = this["enemy" + num]._x - 50;
}
if (hero._xscale == -100) {
this["enemy" + num]._x = this["enemy" + num]._x + 50;
}
if (this["enemy" + num].HP <= 0) {
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
this["enemy" + num].die.gotoAndPlay(1);
}
}
if (hero.sit.HIT2.hitTest(this["enemy" + num].HIT) and ((!this["enemy" + num].dead) == true)) {
_root.attachMovie("bloodAttach", "bloodAttach", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.sit.HIT2.HITin.gotoAndStop(2);
this["enemy" + num].HP = this["enemy" + num].HP - (weaponDamage * 2);
if (this["enemy" + num].HP <= 0) {
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
this["enemy" + num].die.gotoAndPlay(80);
}
}
if (this["enemy" + num].hitTest(_root.bullet0) and ((!this["enemy" + num].dead) == true)) {
removeMovieClip(_root.bullet0);
this["enemy" + num].gotoAndStop(4);
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
_root.attachMovie("bloodAttach", "bloodAttach", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
_root.attachMovie("deadEnemy", "deadEnemy", deadEnemyNum, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
if (spearcankill == true) {
this["enemy" + num].die.gotoAndPlay(20);
}
if (spearcankill == false) {
this["enemy" + num].die.gotoAndPlay(40);
}
this["enemy" + num].dead = true;
}
if (this["enemy" + num].HIT.hitTest(_root.bullet1) and ((!this["enemy" + num].dead) == true)) {
removeMovieClip(_root.bullet1);
this["enemy" + num].gotoAndStop(4);
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
_root.attachMovie("bloodAttach", "bloodAttach", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
_root.attachMovie("deadEnemy", "deadEnemy", deadEnemyNum, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
if (spearcankill == true) {
this["enemy" + num].die.gotoAndPlay(20);
}
if (spearcankill == false) {
this["enemy" + num].die.gotoAndPlay(40);
}
this["enemy" + num].dead = true;
}
if ((((hero.hero2.HIT.hitTest(this["enemy" + num].hero2) or hero.hero2.HIT2.hitTest(this["enemy" + num].hero2)) or hero.hero2.HIT3.hitTest(this["enemy" + num].hero2)) or hero.jumpy.HIT.hitTest(this["enemy" + num].hero2)) or (((hero.sit.HIT2.hitTest(this["enemy" + num].hero2) and (this["enemy" + num].HIT._currentframe > 1)) and (_root.blink._currentframe == 1)) and ((!shieldDead) == true))) {
_root.attachMovie("bloodAttach0Defence", "bloodAttach0Defence", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.hero2.HIT.HITin.gotoAndPlay(2);
hero.hero2.HIT2.HITin.gotoAndPlay(2);
hero.hero2.HIT3.HITin.gotoAndPlay(2);
hero.jumpy.HIT.HITin.gotoAndPlay(2);
if (this["enemy" + num]._xscale == 100) {
this["enemy" + num]._x = this["enemy" + num]._x + 30;
}
if (this["enemy" + num]._xscale == -100) {
this["enemy" + num]._x = this["enemy" + num]._x - 30;
}
}
shieldDead == false;
if ((((((_root.hero.HIT._currentframe == 2) and (_root.blink._currentframe == 1)) and ((!shieldDead) == true)) and this["enemy" + num].hero2.HIT.hitTest(hero)) or this["enemy" + num].hero2.HIT2.hitTest(hero)) or this["enemy" + num].jumpy.jumpHIT.HIT.hitTest(hero)) {
_root.attachMovie("bloodAttach0Defence2", "bloodAttach0Defence2", 50, {_x:hero._x, _y:hero._y - 50});
this["enemy" + num].hero2.HIT.HITin.gotoAndPlay(2);
this["enemy" + num].hero2.HIT2.HITin.gotoAndPlay(2);
this["enemy" + num].jumpy.jumpHIT.HIT.HITin.gotoAndPlay(2);
if (this["enemy" + num]._xscale == -100) {
hero._x = hero._x + 30;
}
if (this["enemy" + num]._xscale == 100) {
hero._x = hero._x - 30;
}
}
if ((this["enemy" + num].live == true) and (this["enemy" + num].dead == true)) {
this["enemy" + num].gotoAndStop(7);
this["enemy" + num].time = this["enemy" + num].time - 1;
if (this["enemy" + num].time <= 0) {
this["enemy" + num].time = random(400) + 20;
this["enemy" + num].HP = _root.enemyHP;
this["enemy" + num].gotoAndStop(1);
this["enemy" + num].live = false;
this["enemy" + num].dead = false;
this["enemy" + num]._x = menu._x - livePosition;
this["enemy" + num]._y = hero._y;
}
}
if (this["enemy" + num]._x <= (menu._x - 660)) {
this["enemy" + num]._y = hero._y;
this["enemy" + num]._x = menu._x - livePosition;
} else if (this["enemy" + num]._x >= (menu._x + 660)) {
this["enemy" + num]._y = hero._y;
this["enemy" + num]._x = menu._x - livePosition;
}
if (this["enemy" + num].die.spearReSpawn == true) {
this["enemy" + num].die.spearReSpawn = false;
_root.attachMovie("SpearFall", "SpearFall", 100, {_x:this["enemy" + num]._x - 50, _y:this["enemy" + num]._y});
}
if (_root.groundHIT1.hitTest(_root.bullet0) and (_root.spearcankill == true)) {
_root.attachMovie("SpearFall", "SpearFall", 100, {_x:_root.bullet0._x, _y:_root.bullet0._y - 8});
removeMovieClip(_root.bullet0);
}
if (_root.groundHIT1.hitTest(_root.bullet1) and (_root.spearcankill == true)) {
_root.attachMovie("SpearFall", "SpearFall", 100, {_x:_root.bullet1._x, _y:_root.bullet1._y - 8});
removeMovieClip(_root.bullet1);
}
if (_root.groundHIT2.hitTest(_root.bullet0) and (_root.spearcankill == true)) {
_root.attachMovie("SpearFall", "SpearFall", 100, {_x:_root.bullet0._x, _y:_root.bullet0._y - 8});
removeMovieClip(_root.bullet0);
}
if (_root.groundHIT2.hitTest(_root.bullet1) and (_root.spearcankill == true)) {
_root.attachMovie("SpearFall", "SpearFall", 100, {_x:_root.bullet1._x, _y:_root.bullet1._y - 8});
removeMovieClip(_root.bullet1);
}
num++;
}
_x = (_x - Math.round((_x - (300 - ScrollOb._x)) / 10));
_y = (_y - Math.round((_y - (300 - ScrollOb._y)) / 10));
ScrollOb = hero;
menu._x = (-_x) + 300;
menu._y = (-_y) + 200;
wind._x = (-_x) + 300;
wind._y = (-_y) + 200;
snow._x = (-_x) + 43.4;
snow._y = (-_y) - 15.2;
menu2._x = (-_x) + 300;
menu2._y = (-_y) + 200;
maskRoot._x = (-_x) + 300;
maskRoot._y = (-_y) + 200;
bambook._x = (-_x) + 300;
groundHIT1._x = (-_x) + 1200;
groundHIT2._x = (-_x) - 600;
levelEnd._x = (-_x) + 300;
levelEnd._y = (-_y) + 200;
attachBM._x = (-_x) + 300;
attachBM._y = (-_y) + 200;
hero.gotoAndStop(frame);
jump = Key.isDown(38);
hero.vy = hero.vy + gravity;
hero._x = hero._x + hero.vx;
hero._y = hero._y + hero.vy;
if ((!pause) == true) {
if (jump) {
jumpnum = jumpnum - 1;
if (hero.grounded) {
hero.vy = -hero.jumpPower;
frame = "jump";
}
}
}
if (left) {
hero.vx = hero.vx - hero.spd;
hero._xscale = -100;
frame = "run";
} else if (right) {
hero.vx = hero.vx + hero.spd;
hero._xscale = 100;
frame = "run";
} else if (hero.grounded) {
hero.vx = hero.vx * 0.9;
frame = "stand";
} else {
frame = "jump";
}
if ((!pause) == true) {
if (Math.abs(hero.vx) > hero.maxSpd) {
hero.vx = hero.vx * 0.9;
}
}
hero.grounded = false;
if (ground.hitTest(hero._x, hero._y, true)) {
hero.vy = -Math.abs(hero.vy * 0.4);
hero.grounded = true;
frame = "stand";
while (ground.hitTest(hero._x, hero._y, true)) {
hero._y = hero._y - 0.2;
}
}
if (ground.hitTest(hero._x - (hero._width / 2), hero._y - (hero._height / 2), true)) {
hero.vx = Math.abs(hero.vx * 0.4);
while (ground.hitTest(hero._x - (hero._width / 2), hero._y - (hero._height / 2), true)) {
hero._x = hero._x + 0.2;
}
} else if (ground.hitTest(hero._x + (hero._width / 2), hero._y - (hero._height / 2), true)) {
hero.vx = -Math.abs(hero.vx * 0.4);
while (ground.hitTest(hero._x + (hero._width / 2), hero._y - (hero._height / 2), true)) {
hero._x = hero._x - 0.2;
}
}
}
};
stop();
Instance of Symbol 1481 MovieClip "menu" in Frame 60
onClipEvent (load) {
this.gotoAndStop(7);
}
Instance of Symbol 1491 MovieClip "ground" in Frame 60
onClipEvent (load) {
this.gotoAndStop(1);
}
Instance of Symbol 1494 MovieClip in Frame 60
onClipEvent (enterFrame) {
if (_root.groundHIT2.hitTest(this.HIT)) {
this._x = _root.groundHIT1._x - 200;
this.gotoAndStop(random(2) + 1);
} else if (_root.groundHIT1.hitTest(this.HIT)) {
this._x = _root.groundHIT2._x + 200;
this.gotoAndStop(random(2) + 1);
}
trace(this._x);
}
Instance of Symbol 1500 MovieClip "hero" in Frame 60
onClipEvent (enterFrame) {
if (((Key.isDown(40) and Key.isDown(37)) and Key.isDown(39)) and ((!_root.heroDead) == true)) {
this._x = this._x - run;
}
if (_root.heroDead == true) {
this.state = 4;
}
if ((Key.isDown(40) and ((!air) == true)) and ((!_root.heroDead) == true)) {
if (this._xscale == 100) {
this._x = this._x - run3;
if ((!run3) <= 0) {
run3--;
}
}
if (this._xscale == -100) {
this._x = this._x + run3;
if ((!run3) <= 0) {
run3--;
}
}
state = 5;
if (Key.isDown(37) and ((!_root.heroDead) == true)) {
_x = (_x + run);
}
if (Key.isDown(39) and ((!_root.heroDead) == true)) {
_x = (_x - run);
}
}
if (((state == 5) and (_root.spearflyCheker == true)) and ((!_root.heroDead) == true)) {
_root.spearflyCheker = false;
_root.spearfly = false;
_root.sword = 11;
}
if (((state == 5) and (_root.arrowflyCheker == true)) and ((!_root.heroDead) == true)) {
_root.arrowflyCheker = false;
_root.arrowfly = false;
}
if (((Key.isDown(38) and (_root.jump2 == true)) and ((!spearfly) == true)) and ((!_root.heroDead) == true)) {
_root.hero.vy = -_root.hero.jumpPower;
_root.jumpnum = 100;
}
if (((air == true) and (_root.spearflyCheker == true)) and ((!_root.heroDead) == true)) {
_root.spearflyCheker = false;
_root.spearfly = false;
_root.sword = 11;
}
if (((air == true) and (_root.arrowflyCheker == true)) and ((!_root.heroDead) == true)) {
_root.arrowflyCheker = false;
_root.arrowfly = false;
}
if (((!Key.isDown(38)) and (_root.jumpnum <= 2)) and ((!_root.heroDead) == true)) {
_root.jump2 = true;
} else {
_root.jump2 = false;
}
if ((!Key.isDown(40)) and ((!_root.heroDead) == true)) {
run3 = run;
}
if (Key.isDown(37) and ((!_root.heroDead) == true)) {
run2 = run;
_x = (_x - run);
this._xscale = 100;
this.legs.play();
}
if (((!(Key.isDown(37) or Key.isDown(39))) and (!Key.isDown(40))) and ((!_root.heroDead) == true)) {
this.legs.gotoAndStop(1);
if (this._xscale == 100) {
this._x = this._x - run2;
if ((!run2) <= 0) {
run2--;
}
}
if (this._xscale == -100) {
this._x = this._x + run2;
if ((!run2) <= 0) {
run2--;
}
}
}
if ((Key.isDown(37) && (Key.isDown(39))) and ((!_root.heroDead) == true)) {
this._x = this._x + run;
this._xscale = -100;
this.legs.play();
}
if (((air == true) && (Key.isDown(37))) and ((!_root.heroDead) == true)) {
state = 3;
}
if (Key.isDown(39) and ((!_root.heroDead) == true)) {
run2 = run;
_x = (_x + run);
this._xscale = -100;
this.legs.play();
}
if (((air == true) && (Key.isDown(39))) and ((!_root.heroDead) == true)) {
state = 3;
}
gotoAndStop(state);
if ((Key.isDown(65) && (air == true)) and ((!_root.heroDead) == true)) {
_root.hero.jumping.gotoAndPlay(6);
}
if (((Key.isDown(65) and (Key.isDown(37) or Key.isDown(39))) and ((!air) == true)) and ((!_root.heroDead) == true)) {
_root.standAttack = false;
_root.runAttack = true;
}
this._y = this._y + 8;
_y = (_y + gravity);
if (air == true) {
state = 3;
}
if (_root.ground.hitTest(_x, _y, true)) {
air = false;
_root.jumpnum = 2;
} else {
air = true;
state = 3;
}
if (air == false) {
state = 1;
}
if ((_root.arrowfly == true) and ((!_root.gotArrows) == false)) {
_root.menu2.arrows.gotoAndStop(_root.menu2.arrows._currentframe + 1);
_root.spearT = false;
totalbullet++;
if (totalbullet > 1) {
totalbullet = 0;
}
if (_root.hero._xscale == -100) {
_root.attachMovie("bullet", "bullet" + totalbullet, totalbullet, {_x:_x, _y:_y, _rotation:this._rotation});
} else if (_root.hero._xscale == 100) {
_root.attachMovie("bullet2", "bullet" + totalbullet, totalbullet, {_x:_x, _y:_y, _rotation:this._rotation});
}
}
if (_root.spearfly == true) {
_root.spearT = true;
totalbullet++;
if (totalbullet > 1) {
totalbullet = 0;
}
if (_root.hero._xscale == -100) {
_root.attachMovie("bullet", "bullet" + totalbullet, totalbullet, {_x:_x, _y:_y, _rotation:this._rotation});
} else if (_root.hero._xscale == 100) {
_root.attachMovie("bullet2", "bullet" + totalbullet, totalbullet, {_x:_x, _y:_y, _rotation:this._rotation});
}
}
}
onClipEvent (load) {
totalbullet = 0;
}
Instance of Symbol 1501 MovieClip "steam" in Frame 60
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 1502 MovieClip "blink" in Frame 60
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 616 MovieClip "groundHIT1" in Frame 60
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 616 MovieClip "groundHIT2" in Frame 60
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 1551 MovieClip "swordOrBow" in Frame 60
onClipEvent (enterFrame) {
if (_root.swords == true) {
this.gotoAndStop(1);
}
if (_root.bows == true) {
this.gotoAndStop(2);
}
}
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 1547 MovieClip "menu2" in Frame 60
onClipEvent (enterFrame) {
this.swapDepths((this._y * 100) + this._x);
}
Instance of Symbol 1549 MovieClip "levelEnd" in Frame 60
onClipEvent (enterFrame) {
this.swapDepths((this._y * 1000) + this._x);
}
Frame 61
levelFrame = 62;
gotoAndStop (30);
_x = 0;
_y = 0;
Frame 62
swordE = 6;
bootsE = 38;
pantsE = 33;
weaponDamageE = 60;
bodyE = 8;
helmetE = 12;
shieldE = 10;
shield2E = 8;
shieldhandE = 8;
attackNum = 0;
attackNum2 = 0;
attackNum3 = 0;
attackNum4 = 0;
attackNum5 = 0;
gotArrows = true;
weaponDamage = 1;
HITMinusArmour = 0;
enemyHITPower = 180;
menu2.location.location = "Sparta";
_root.attachMovie("attachBM", "attachBM", 50, {_x:300, _y:200});
removeMovieClip(_root.heroAttach);
enemies = 3;
enemyHP = 40;
blooddummy._x = 0;
blooddummy._y = 0;
dep = 200;
gravity = 0.5;
hero.vx = 0;
hero.vy = 0;
hero.jumpPower = 20;
hero.grounded = false;
ScrollOb = hero;
spearfly = false;
spear = true;
hero.run = 7;
deadEnemyNum = 1000;
num = 0;
while (num <= enemies) {
this["enemy" + num].power = 20;
this["enemy" + num].HP = 28;
groundGNum = 1000;
groundGNum2 = -500;
this["enemy" + num].time = 500;
num++;
}
roundTime = 2300;
music = true;
music2 = false;
music3 = false;
music4 = false;
onEnterFrame = function () {
trace(roundTime);
roundTime = roundTime - 1;
if ((roundTime <= 0) and ((!heroDead) == true)) {
hero.HIT.gotoAndStop(2);
levelEnd.play();
removeMovieClip(menu2);
}
if ((!_root.HITMinusArmour) <= 1) {
_root.HITMinusArmour = _root.enemyHITPower - _root.armour;
}
if (_root.HITMinusArmour <= 1) {
_root.HITMinusArmour = 1;
}
trace(_root.HITMinusArmour);
if ((!pause) == true) {
num = 0;
while (num <= enemies) {
if (hero._x >= groundGNum) {
groundGNum = groundGNum + 500;
groundGNum2 = groundGNum2 + 500;
ground._x = ground._x + 500;
} else if (hero._x <= groundGNum2) {
groundGNum2 = groundGNum2 - 500;
groundGNum = groundGNum - 500;
ground._x = ground._x - 500;
}
if (EXP >= 1000) {
levelUP = levelUP + 1;
EXP = 0;
}
deadEnemyNum++;
this["enemy" + num];
if ((this["enemy" + num].AAA.jumpFrame == true) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num].air = true;
this["enemy" + num].gotoAndStop(3);
} else if (((this["enemy" + num].AAA.jumpFrame == false) and ground.hitTest(this["enemy" + num]._x, this["enemy" + num]._y + 5, true)) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num].air = false;
this["enemy" + num].power = 20;
this["enemy" + num].gotoAndStop(1);
}
if ((this["enemy" + num].AAA._currentframe == 52) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num].AAA.gotoAndPlay(random(500) + 1);
}
if (ground.hitTest(this["enemy" + num]._x - 6, this["enemy" + num]._y - 10, true) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num]._x = this["enemy" + num]._x + enemySpeed;
} else if (ground.hitTest(this["enemy" + num]._x + 6, this["enemy" + num]._y - 10, true) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num]._x = this["enemy" + num]._x - enemySpeed;
}
if ((this["enemy" + num]._currentframe == 3) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num].air = true;
this["enemy" + num]._y = this["enemy" + num]._y - this["enemy" + num].power;
if ((!this["enemy" + num].power) <= 0) {
this["enemy" + num].power = this["enemy" + num].power - 0.5;
if (this["enemy" + num]._xscale == 100) {
this["enemy" + num]._x = this["enemy" + num]._x - enemySpeed;
}
if (this["enemy" + num]._xscale == -100) {
this["enemy" + num]._x = this["enemy" + num]._x + enemySpeed;
}
}
if ((this["enemy" + num]._x >= (hero._x + 1)) and (this["enemy" + num]._xscale == -100)) {
this["enemy" + num].jumpy.gotoAndStop(10);
} else if ((this["enemy" + num]._x <= (hero._x - 1)) and (this["enemy" + num]._xscale == 100)) {
this["enemy" + num].jumpy.gotoAndStop(10);
}
}
if ((this["enemy" + num].hitTest(hero) and ((!_root.heroDead) == true)) and (this["enemy" + num].hero2.canAttack == true)) {
this["enemy" + num].hero2.canAttack = false;
this["enemy" + num].hero2.gotoAndPlay(_root.enemyRandomAttack);
}
if (this["enemy" + num].hero2.HIT.hitTest(hero.HIT)) {
this["enemy" + num].hero2.HIT.HITin.gotoAndPlay(2);
blink.play();
}
if (this["enemy" + num].jumpy.jumpHIT.HIT.hitTest(hero.HIT)) {
this["enemy" + num].jumpy.jumpHIT.HIT.HITin.gotoAndPlay(2);
blink.play();
}
if (this["enemy" + num].hero2.HIT2.hitTest(hero.HIT)) {
this["enemy" + num].hero2.HIT2.HITin.gotoAndPlay(2);
if (this["enemy" + num]._xscale == 100) {
hero._x = hero._x - 50;
blink.play();
}
if (this["enemy" + num]._xscale == -100) {
hero._x = hero._x + 50;
blink.play();
}
}
if (((hero._x > this["enemy" + num]._x) and ((!this["enemy" + num].dead) == true)) and ((!this["enemy" + num].air) == true)) {
this["enemy" + num]._xscale = -100;
} else if (((hero._x < this["enemy" + num]._x) and ((!this["enemy" + num].dead) == true)) and ((!this["enemy" + num].air) == true)) {
this["enemy" + num]._xscale = 100;
}
if (((((hero._x > (this["enemy" + num]._x + 70)) and ((!this["enemy" + num].dead) == true)) and this["enemy" + num].hitTest(this["enemy" + num].AAA)) and ((!this["enemy" + num].air) == true)) and ((!this["enemy" + num].hero2.kick) == true)) {
this["enemy" + num].legs.gotoAndStop(4);
this["enemy" + num]._x = this["enemy" + num]._x + enemySpeed;
} else if (((((hero._x < (this["enemy" + num]._x - 70)) and ((!this["enemy" + num].dead) == true)) and this["enemy" + num].hitTest(this["enemy" + num].AAA)) and ((!this["enemy" + num].air) == true)) and ((!this["enemy" + num].hero2.kick) == true)) {
this["enemy" + num]._x = this["enemy" + num]._x - enemySpeed;
this["enemy" + num].legs.gotoAndStop(4);
} else {
this["enemy" + num].legs.gotoAndStop(1);
}
this["enemy" + num]._y = this["enemy" + num]._y + 8;
while (ground.hitTest(this["enemy" + num]._x, this["enemy" + num]._y, true)) {
this["enemy" + num]._y = this["enemy" + num]._y - 1;
}
while (ground.hitTest(hero._root.SpearFall._x, hero._root.SpearFall._y, true)) {
_root.SpearFall._y = _root.SpearFall._y - 1;
}
if (hero.hero2.HIT.hitTest(this["enemy" + num].HIT) and ((!this["enemy" + num].dead) == true)) {
_root.attachMovie("bloodAttach", "bloodAttach", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.hero2.HIT.HITin.gotoAndPlay(2);
this["enemy" + num].HP = this["enemy" + num].HP - weaponDamage;
if (this["enemy" + num].HP <= 0) {
_root.attachMovie("heartAttach", "heartAttach", 38, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y});
gold = gold + (random(50) + 10);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
if ((sword == 5) or (sword == 8)) {
this["enemy" + num].die.gotoAndPlay(80);
} else {
this["enemy" + num].die.gotoAndPlay(1);
}
}
}
if (hero.hero2.HIT2.hitTest(this["enemy" + num].HIT) and ((!this["enemy" + num].dead) == true)) {
_root.attachMovie("bloodAttachKICK", "bloodAttachKICK", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.hero2.HIT2.HITin.gotoAndPlay(2);
this["enemy" + num].HP = this["enemy" + num].HP - (Math.ceil(weaponDamage) * 5);
if (this["enemy" + num].HP <= 0) {
_root.attachMovie("heartAttach", "heartAttach", 38, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y});
gold = gold + (random(50) + 10);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
this["enemy" + num].die.gotoAndPlay(60);
}
}
if (hero.hero2.HIT3.hitTest(this["enemy" + num].HIT) and ((!this["enemy" + num].dead) == true)) {
_root.attachMovie("bloodAttachKICK", "bloodAttachKICK", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.hero2.HIT3.HITin.gotoAndPlay(2);
this["enemy" + num].gotoAndStop(2);
this["enemy" + num].gotKicked.gotoAndPlay(37);
this["enemy" + num].HP = this["enemy" + num].HP - (Math.ceil(weaponDamage) / 3);
if (hero._xscale == 100) {
this["enemy" + num]._x = this["enemy" + num]._x - 60;
}
if (hero._xscale == -100) {
this["enemy" + num]._x = this["enemy" + num]._x + 60;
}
if (this["enemy" + num].HP <= 0) {
_root.attachMovie("heartAttach", "heartAttach", 38, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y});
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
this["enemy" + num].die.gotoAndPlay(60);
}
}
if (hero.jumpy.HIT.hitTest(this["enemy" + num].HIT) and ((!this["enemy" + num].dead) == true)) {
_root.attachMovie("bloodAttachKICK", "bloodAttachKICK", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.jumpy.HIT.HITin.gotoAndStop(2);
this["enemy" + num].HP = this["enemy" + num].HP - (weaponDamage * 3);
if (this["enemy" + num].HP <= 0) {
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
this["enemy" + num].die.gotoAndPlay(100);
}
}
if (hero.sit.HIT.hitTest(this["enemy" + num].legs) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num].gotoAndStop(2);
_root.attachMovie("bloodAttachKICK", "bloodAttachKICK", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.sit.HIT.HITin.gotoAndStop(2);
this["enemy" + num].HP = this["enemy" + num].HP - (Math.ceil(weaponDamage) / 3);
if (hero._xscale == 100) {
this["enemy" + num]._x = this["enemy" + num]._x - 50;
}
if (hero._xscale == -100) {
this["enemy" + num]._x = this["enemy" + num]._x + 50;
}
if (this["enemy" + num].HP <= 0) {
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
this["enemy" + num].die.gotoAndPlay(1);
}
}
if (hero.sit.HIT2.hitTest(this["enemy" + num].HIT) and ((!this["enemy" + num].dead) == true)) {
_root.attachMovie("bloodAttach", "bloodAttach", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.sit.HIT2.HITin.gotoAndStop(2);
this["enemy" + num].HP = this["enemy" + num].HP - (weaponDamage * 2);
if (this["enemy" + num].HP <= 0) {
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
this["enemy" + num].die.gotoAndPlay(80);
}
}
if (this["enemy" + num].hitTest(_root.bullet0) and ((!this["enemy" + num].dead) == true)) {
removeMovieClip(_root.bullet0);
this["enemy" + num].gotoAndStop(4);
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
_root.attachMovie("bloodAttach", "bloodAttach", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
_root.attachMovie("deadEnemy", "deadEnemy", deadEnemyNum, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
if (spearcankill == true) {
this["enemy" + num].die.gotoAndPlay(20);
}
if (spearcankill == false) {
this["enemy" + num].die.gotoAndPlay(40);
}
this["enemy" + num].dead = true;
}
if (this["enemy" + num].HIT.hitTest(_root.bullet1) and ((!this["enemy" + num].dead) == true)) {
removeMovieClip(_root.bullet1);
this["enemy" + num].gotoAndStop(4);
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
_root.attachMovie("bloodAttach", "bloodAttach", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
_root.attachMovie("deadEnemy", "deadEnemy", deadEnemyNum, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
if (spearcankill == true) {
this["enemy" + num].die.gotoAndPlay(20);
}
if (spearcankill == false) {
this["enemy" + num].die.gotoAndPlay(40);
}
this["enemy" + num].dead = true;
}
if ((((hero.hero2.HIT.hitTest(this["enemy" + num].hero2) or hero.hero2.HIT2.hitTest(this["enemy" + num].hero2)) or hero.hero2.HIT3.hitTest(this["enemy" + num].hero2)) or hero.jumpy.HIT.hitTest(this["enemy" + num].hero2)) or (((hero.sit.HIT2.hitTest(this["enemy" + num].hero2) and (this["enemy" + num].HIT._currentframe > 1)) and (_root.blink._currentframe == 1)) and ((!shieldDead) == true))) {
_root.attachMovie("bloodAttach0Defence", "bloodAttach0Defence", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.hero2.HIT.HITin.gotoAndPlay(2);
hero.hero2.HIT2.HITin.gotoAndPlay(2);
hero.hero2.HIT3.HITin.gotoAndPlay(2);
hero.jumpy.HIT.HITin.gotoAndPlay(2);
if (this["enemy" + num]._xscale == 100) {
this["enemy" + num]._x = this["enemy" + num]._x + 30;
}
if (this["enemy" + num]._xscale == -100) {
this["enemy" + num]._x = this["enemy" + num]._x - 30;
}
}
shieldDead == false;
if ((((((_root.hero.HIT._currentframe == 2) and (_root.blink._currentframe == 1)) and ((!shieldDead) == true)) and this["enemy" + num].hero2.HIT.hitTest(hero)) or this["enemy" + num].hero2.HIT2.hitTest(hero)) or this["enemy" + num].jumpy.jumpHIT.HIT.hitTest(hero)) {
_root.attachMovie("bloodAttach0Defence2", "bloodAttach0Defence2", 50, {_x:hero._x, _y:hero._y - 50});
this["enemy" + num].hero2.HIT.HITin.gotoAndPlay(2);
this["enemy" + num].hero2.HIT2.HITin.gotoAndPlay(2);
this["enemy" + num].jumpy.jumpHIT.HIT.HITin.gotoAndPlay(2);
if (this["enemy" + num]._xscale == -100) {
hero._x = hero._x + 30;
}
if (this["enemy" + num]._xscale == 100) {
hero._x = hero._x - 30;
}
}
if ((this["enemy" + num].live == true) and (this["enemy" + num].dead == true)) {
this["enemy" + num].gotoAndStop(7);
this["enemy" + num].time = this["enemy" + num].time - 1;
if (this["enemy" + num].time <= 0) {
this["enemy" + num].time = random(200) + 20;
this["enemy" + num].HP = _root.enemyHP;
this["enemy" + num].gotoAndStop(1);
this["enemy" + num].live = false;
this["enemy" + num].dead = false;
this["enemy" + num]._x = menu._x - livePosition;
this["enemy" + num]._y = hero._y;
}
}
if (this["enemy" + num]._x <= (menu._x - 660)) {
this["enemy" + num]._y = hero._y;
this["enemy" + num]._x = menu._x - livePosition;
} else if (this["enemy" + num]._x >= (menu._x + 660)) {
this["enemy" + num]._y = hero._y;
this["enemy" + num]._x = menu._x - livePosition;
}
if (this["enemy" + num].die.spearReSpawn == true) {
this["enemy" + num].die.spearReSpawn = false;
_root.attachMovie("SpearFall", "SpearFall", 100, {_x:this["enemy" + num]._x - 50, _y:this["enemy" + num]._y});
}
if (_root.groundHIT1.hitTest(_root.bullet0) and (_root.spearcankill == true)) {
_root.attachMovie("SpearFall", "SpearFall", 100, {_x:_root.bullet0._x, _y:_root.bullet0._y - 8});
removeMovieClip(_root.bullet0);
}
if (_root.groundHIT1.hitTest(_root.bullet1) and (_root.spearcankill == true)) {
_root.attachMovie("SpearFall", "SpearFall", 100, {_x:_root.bullet1._x, _y:_root.bullet1._y - 8});
removeMovieClip(_root.bullet1);
}
if (_root.groundHIT2.hitTest(_root.bullet0) and (_root.spearcankill == true)) {
_root.attachMovie("SpearFall", "SpearFall", 100, {_x:_root.bullet0._x, _y:_root.bullet0._y - 8});
removeMovieClip(_root.bullet0);
}
if (_root.groundHIT2.hitTest(_root.bullet1) and (_root.spearcankill == true)) {
_root.attachMovie("SpearFall", "SpearFall", 100, {_x:_root.bullet1._x, _y:_root.bullet1._y - 8});
removeMovieClip(_root.bullet1);
}
num++;
}
_x = (_x - Math.round((_x - (300 - ScrollOb._x)) / 10));
_y = (_y - Math.round((_y - (300 - ScrollOb._y)) / 10));
ScrollOb = hero;
menu._x = (-_x) + 300;
menu._y = (-_y) + 200;
wind._x = (-_x) + 300;
wind._y = (-_y) + 200;
snow._x = (-_x) + 43.4;
snow._y = (-_y) - 15.2;
menu2._x = (-_x) + 300;
menu2._y = (-_y) + 200;
maskRoot._x = (-_x) + 300;
maskRoot._y = (-_y) + 200;
bambook._x = (-_x) + 300;
groundHIT1._x = (-_x) + 1200;
groundHIT2._x = (-_x) - 600;
levelEnd._x = (-_x) + 300;
levelEnd._y = (-_y) + 200;
attachBM._x = (-_x) + 300;
attachBM._y = (-_y) + 200;
hero.gotoAndStop(frame);
jump = Key.isDown(38);
hero.vy = hero.vy + gravity;
hero._x = hero._x + hero.vx;
hero._y = hero._y + hero.vy;
if ((!pause) == true) {
if (jump) {
jumpnum = jumpnum - 1;
if (hero.grounded) {
hero.vy = -hero.jumpPower;
frame = "jump";
}
}
}
if (left) {
hero.vx = hero.vx - hero.spd;
hero._xscale = -100;
frame = "run";
} else if (right) {
hero.vx = hero.vx + hero.spd;
hero._xscale = 100;
frame = "run";
} else if (hero.grounded) {
hero.vx = hero.vx * 0.9;
frame = "stand";
} else {
frame = "jump";
}
if ((!pause) == true) {
if (Math.abs(hero.vx) > hero.maxSpd) {
hero.vx = hero.vx * 0.9;
}
}
hero.grounded = false;
if (ground.hitTest(hero._x, hero._y, true)) {
hero.vy = -Math.abs(hero.vy * 0.4);
hero.grounded = true;
frame = "stand";
while (ground.hitTest(hero._x, hero._y, true)) {
hero._y = hero._y - 0.2;
}
}
if (ground.hitTest(hero._x - (hero._width / 2), hero._y - (hero._height / 2), true)) {
hero.vx = Math.abs(hero.vx * 0.4);
while (ground.hitTest(hero._x - (hero._width / 2), hero._y - (hero._height / 2), true)) {
hero._x = hero._x + 0.2;
}
} else if (ground.hitTest(hero._x + (hero._width / 2), hero._y - (hero._height / 2), true)) {
hero.vx = -Math.abs(hero.vx * 0.4);
while (ground.hitTest(hero._x + (hero._width / 2), hero._y - (hero._height / 2), true)) {
hero._x = hero._x - 0.2;
}
}
}
};
stop();
Instance of Symbol 1481 MovieClip "menu" in Frame 62
onClipEvent (load) {
this.gotoAndStop(9);
}
Instance of Symbol 1491 MovieClip "ground" in Frame 62
onClipEvent (load) {
this.gotoAndStop(1);
}
Instance of Symbol 1494 MovieClip in Frame 62
onClipEvent (enterFrame) {
if (_root.groundHIT2.hitTest(this.HIT)) {
this._x = _root.groundHIT1._x - 200;
this.gotoAndStop(random(2) + 1);
} else if (_root.groundHIT1.hitTest(this.HIT)) {
this._x = _root.groundHIT2._x + 200;
this.gotoAndStop(random(2) + 1);
}
trace(this._x);
}
Instance of Symbol 1500 MovieClip "hero" in Frame 62
onClipEvent (enterFrame) {
if (((Key.isDown(40) and Key.isDown(37)) and Key.isDown(39)) and ((!_root.heroDead) == true)) {
this._x = this._x - run;
}
if (_root.heroDead == true) {
this.state = 4;
}
if ((Key.isDown(40) and ((!air) == true)) and ((!_root.heroDead) == true)) {
if (this._xscale == 100) {
this._x = this._x - run3;
if ((!run3) <= 0) {
run3--;
}
}
if (this._xscale == -100) {
this._x = this._x + run3;
if ((!run3) <= 0) {
run3--;
}
}
state = 5;
if (Key.isDown(37) and ((!_root.heroDead) == true)) {
_x = (_x + run);
}
if (Key.isDown(39) and ((!_root.heroDead) == true)) {
_x = (_x - run);
}
}
if (((state == 5) and (_root.spearflyCheker == true)) and ((!_root.heroDead) == true)) {
_root.spearflyCheker = false;
_root.spearfly = false;
_root.sword = 11;
}
if (((state == 5) and (_root.arrowflyCheker == true)) and ((!_root.heroDead) == true)) {
_root.arrowflyCheker = false;
_root.arrowfly = false;
}
if (((Key.isDown(38) and (_root.jump2 == true)) and ((!spearfly) == true)) and ((!_root.heroDead) == true)) {
_root.hero.vy = -_root.hero.jumpPower;
_root.jumpnum = 100;
}
if (((air == true) and (_root.spearflyCheker == true)) and ((!_root.heroDead) == true)) {
_root.spearflyCheker = false;
_root.spearfly = false;
_root.sword = 11;
}
if (((air == true) and (_root.arrowflyCheker == true)) and ((!_root.heroDead) == true)) {
_root.arrowflyCheker = false;
_root.arrowfly = false;
}
if (((!Key.isDown(38)) and (_root.jumpnum <= 2)) and ((!_root.heroDead) == true)) {
_root.jump2 = true;
} else {
_root.jump2 = false;
}
if ((!Key.isDown(40)) and ((!_root.heroDead) == true)) {
run3 = run;
}
if (Key.isDown(37) and ((!_root.heroDead) == true)) {
run2 = run;
_x = (_x - run);
this._xscale = 100;
this.legs.play();
}
if (((!(Key.isDown(37) or Key.isDown(39))) and (!Key.isDown(40))) and ((!_root.heroDead) == true)) {
this.legs.gotoAndStop(1);
if (this._xscale == 100) {
this._x = this._x - run2;
if ((!run2) <= 0) {
run2--;
}
}
if (this._xscale == -100) {
this._x = this._x + run2;
if ((!run2) <= 0) {
run2--;
}
}
}
if ((Key.isDown(37) && (Key.isDown(39))) and ((!_root.heroDead) == true)) {
this._x = this._x + run;
this._xscale = -100;
this.legs.play();
}
if (((air == true) && (Key.isDown(37))) and ((!_root.heroDead) == true)) {
state = 3;
}
if (Key.isDown(39) and ((!_root.heroDead) == true)) {
run2 = run;
_x = (_x + run);
this._xscale = -100;
this.legs.play();
}
if (((air == true) && (Key.isDown(39))) and ((!_root.heroDead) == true)) {
state = 3;
}
gotoAndStop(state);
if ((Key.isDown(65) && (air == true)) and ((!_root.heroDead) == true)) {
_root.hero.jumping.gotoAndPlay(6);
}
if (((Key.isDown(65) and (Key.isDown(37) or Key.isDown(39))) and ((!air) == true)) and ((!_root.heroDead) == true)) {
_root.standAttack = false;
_root.runAttack = true;
}
this._y = this._y + 8;
_y = (_y + gravity);
if (air == true) {
state = 3;
}
if (_root.ground.hitTest(_x, _y, true)) {
air = false;
_root.jumpnum = 2;
} else {
air = true;
state = 3;
}
if (air == false) {
state = 1;
}
if ((_root.arrowfly == true) and ((!_root.gotArrows) == false)) {
_root.menu2.arrows.gotoAndStop(_root.menu2.arrows._currentframe + 1);
_root.spearT = false;
totalbullet++;
if (totalbullet > 1) {
totalbullet = 0;
}
if (_root.hero._xscale == -100) {
_root.attachMovie("bullet", "bullet" + totalbullet, totalbullet, {_x:_x, _y:_y, _rotation:this._rotation});
} else if (_root.hero._xscale == 100) {
_root.attachMovie("bullet2", "bullet" + totalbullet, totalbullet, {_x:_x, _y:_y, _rotation:this._rotation});
}
}
if (_root.spearfly == true) {
_root.spearT = true;
totalbullet++;
if (totalbullet > 1) {
totalbullet = 0;
}
if (_root.hero._xscale == -100) {
_root.attachMovie("bullet", "bullet" + totalbullet, totalbullet, {_x:_x, _y:_y, _rotation:this._rotation});
} else if (_root.hero._xscale == 100) {
_root.attachMovie("bullet2", "bullet" + totalbullet, totalbullet, {_x:_x, _y:_y, _rotation:this._rotation});
}
}
}
onClipEvent (load) {
totalbullet = 0;
}
Instance of Symbol 1501 MovieClip "steam" in Frame 62
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 1502 MovieClip "blink" in Frame 62
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 616 MovieClip "groundHIT1" in Frame 62
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 616 MovieClip "groundHIT2" in Frame 62
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 1566 MovieClip "swordOrBow" in Frame 62
onClipEvent (enterFrame) {
if (_root.swords == true) {
this.gotoAndStop(1);
}
if (_root.bows == true) {
this.gotoAndStop(2);
}
}
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 1547 MovieClip "menu2" in Frame 62
onClipEvent (enterFrame) {
this.swapDepths((this._y * 100) + this._x);
}
Instance of Symbol 1549 MovieClip "levelEnd" in Frame 62
onClipEvent (enterFrame) {
this.swapDepths((this._y * 1000) + this._x);
}
Frame 63
levelFrame = 64;
gotoAndStop (30);
_x = 0;
_y = 0;
Frame 64
swordE = 6;
bootsE = 38;
pantsE = 35;
weaponDamageE = 60;
bodyE = 11;
helmetE = 13;
shieldE = 11;
shield2E = 9;
shieldhandE = 11;
attackNum = 0;
attackNum2 = 0;
attackNum3 = 0;
attackNum4 = 0;
attackNum5 = 0;
gotArrows = true;
weaponDamage = 1;
HITMinusArmour = 0;
enemyHITPower = 180;
menu2.location.location = "Byzantine";
_root.attachMovie("attachBM", "attachBM", 50, {_x:300, _y:200});
removeMovieClip(_root.heroAttach);
enemies = 3;
enemyHP = 50;
blooddummy._x = 0;
blooddummy._y = 0;
dep = 200;
gravity = 0.5;
hero.vx = 0;
hero.vy = 0;
hero.jumpPower = 20;
hero.grounded = false;
ScrollOb = hero;
spearfly = false;
spear = true;
hero.run = 7;
deadEnemyNum = 1000;
num = 0;
while (num <= enemies) {
this["enemy" + num].power = 20;
this["enemy" + num].HP = 35;
groundGNum = 1000;
groundGNum2 = -500;
this["enemy" + num].time = 500;
num++;
}
roundTime = 2300;
music = true;
music2 = false;
music3 = false;
music4 = false;
onEnterFrame = function () {
trace(roundTime);
roundTime = roundTime - 1;
if ((roundTime <= 0) and ((!heroDead) == true)) {
hero.HIT.gotoAndStop(2);
levelEnd.play();
removeMovieClip(menu2);
}
if ((!_root.HITMinusArmour) <= 1) {
_root.HITMinusArmour = _root.enemyHITPower - _root.armour;
}
if (_root.HITMinusArmour <= 1) {
_root.HITMinusArmour = 1;
}
trace(_root.HITMinusArmour);
if ((!pause) == true) {
num = 0;
while (num <= enemies) {
if (hero._x >= groundGNum) {
groundGNum = groundGNum + 500;
groundGNum2 = groundGNum2 + 500;
ground._x = ground._x + 500;
} else if (hero._x <= groundGNum2) {
groundGNum2 = groundGNum2 - 500;
groundGNum = groundGNum - 500;
ground._x = ground._x - 500;
}
if (EXP >= 1000) {
levelUP = levelUP + 1;
EXP = 0;
}
deadEnemyNum++;
this["enemy" + num];
if ((this["enemy" + num].AAA.jumpFrame == true) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num].air = true;
this["enemy" + num].gotoAndStop(3);
} else if (((this["enemy" + num].AAA.jumpFrame == false) and ground.hitTest(this["enemy" + num]._x, this["enemy" + num]._y + 5, true)) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num].air = false;
this["enemy" + num].power = 20;
this["enemy" + num].gotoAndStop(1);
}
if ((this["enemy" + num].AAA._currentframe == 52) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num].AAA.gotoAndPlay(random(500) + 1);
}
if (ground.hitTest(this["enemy" + num]._x - 6, this["enemy" + num]._y - 10, true) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num]._x = this["enemy" + num]._x + enemySpeed;
} else if (ground.hitTest(this["enemy" + num]._x + 6, this["enemy" + num]._y - 10, true) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num]._x = this["enemy" + num]._x - enemySpeed;
}
if ((this["enemy" + num]._currentframe == 3) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num].air = true;
this["enemy" + num]._y = this["enemy" + num]._y - this["enemy" + num].power;
if ((!this["enemy" + num].power) <= 0) {
this["enemy" + num].power = this["enemy" + num].power - 0.5;
if (this["enemy" + num]._xscale == 100) {
this["enemy" + num]._x = this["enemy" + num]._x - enemySpeed;
}
if (this["enemy" + num]._xscale == -100) {
this["enemy" + num]._x = this["enemy" + num]._x + enemySpeed;
}
}
if ((this["enemy" + num]._x >= (hero._x + 1)) and (this["enemy" + num]._xscale == -100)) {
this["enemy" + num].jumpy.gotoAndStop(10);
} else if ((this["enemy" + num]._x <= (hero._x - 1)) and (this["enemy" + num]._xscale == 100)) {
this["enemy" + num].jumpy.gotoAndStop(10);
}
}
if ((this["enemy" + num].hitTest(hero) and ((!_root.heroDead) == true)) and (this["enemy" + num].hero2.canAttack == true)) {
this["enemy" + num].hero2.canAttack = false;
this["enemy" + num].hero2.gotoAndPlay(_root.enemyRandomAttack);
}
if (this["enemy" + num].hero2.HIT.hitTest(hero.HIT)) {
this["enemy" + num].hero2.HIT.HITin.gotoAndPlay(2);
blink.play();
}
if (this["enemy" + num].jumpy.jumpHIT.HIT.hitTest(hero.HIT)) {
this["enemy" + num].jumpy.jumpHIT.HIT.HITin.gotoAndPlay(2);
blink.play();
}
if (this["enemy" + num].hero2.HIT2.hitTest(hero.HIT)) {
this["enemy" + num].hero2.HIT2.HITin.gotoAndPlay(2);
if (this["enemy" + num]._xscale == 100) {
hero._x = hero._x - 50;
blink.play();
}
if (this["enemy" + num]._xscale == -100) {
hero._x = hero._x + 50;
blink.play();
}
}
if (((hero._x > this["enemy" + num]._x) and ((!this["enemy" + num].dead) == true)) and ((!this["enemy" + num].air) == true)) {
this["enemy" + num]._xscale = -100;
} else if (((hero._x < this["enemy" + num]._x) and ((!this["enemy" + num].dead) == true)) and ((!this["enemy" + num].air) == true)) {
this["enemy" + num]._xscale = 100;
}
if (((((hero._x > (this["enemy" + num]._x + 70)) and ((!this["enemy" + num].dead) == true)) and this["enemy" + num].hitTest(this["enemy" + num].AAA)) and ((!this["enemy" + num].air) == true)) and ((!this["enemy" + num].hero2.kick) == true)) {
this["enemy" + num].legs.gotoAndStop(4);
this["enemy" + num]._x = this["enemy" + num]._x + enemySpeed;
} else if (((((hero._x < (this["enemy" + num]._x - 70)) and ((!this["enemy" + num].dead) == true)) and this["enemy" + num].hitTest(this["enemy" + num].AAA)) and ((!this["enemy" + num].air) == true)) and ((!this["enemy" + num].hero2.kick) == true)) {
this["enemy" + num]._x = this["enemy" + num]._x - enemySpeed;
this["enemy" + num].legs.gotoAndStop(4);
} else {
this["enemy" + num].legs.gotoAndStop(1);
}
this["enemy" + num]._y = this["enemy" + num]._y + 8;
while (ground.hitTest(this["enemy" + num]._x, this["enemy" + num]._y, true)) {
this["enemy" + num]._y = this["enemy" + num]._y - 1;
}
while (ground.hitTest(hero._root.SpearFall._x, hero._root.SpearFall._y, true)) {
_root.SpearFall._y = _root.SpearFall._y - 1;
}
if (hero.hero2.HIT.hitTest(this["enemy" + num].HIT) and ((!this["enemy" + num].dead) == true)) {
_root.attachMovie("bloodAttach", "bloodAttach", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.hero2.HIT.HITin.gotoAndPlay(2);
this["enemy" + num].HP = this["enemy" + num].HP - weaponDamage;
if (this["enemy" + num].HP <= 0) {
_root.attachMovie("heartAttach", "heartAttach", 38, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y});
gold = gold + (random(50) + 10);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
if ((sword == 5) or (sword == 8)) {
this["enemy" + num].die.gotoAndPlay(80);
} else {
this["enemy" + num].die.gotoAndPlay(1);
}
}
}
if (hero.hero2.HIT2.hitTest(this["enemy" + num].HIT) and ((!this["enemy" + num].dead) == true)) {
_root.attachMovie("bloodAttachKICK", "bloodAttachKICK", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.hero2.HIT2.HITin.gotoAndPlay(2);
this["enemy" + num].HP = this["enemy" + num].HP - (Math.ceil(weaponDamage) * 5);
if (this["enemy" + num].HP <= 0) {
_root.attachMovie("heartAttach", "heartAttach", 38, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y});
gold = gold + (random(50) + 10);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
this["enemy" + num].die.gotoAndPlay(60);
}
}
if (hero.hero2.HIT3.hitTest(this["enemy" + num].HIT) and ((!this["enemy" + num].dead) == true)) {
_root.attachMovie("bloodAttachKICK", "bloodAttachKICK", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.hero2.HIT3.HITin.gotoAndPlay(2);
this["enemy" + num].gotoAndStop(2);
this["enemy" + num].gotKicked.gotoAndPlay(37);
this["enemy" + num].HP = this["enemy" + num].HP - (Math.ceil(weaponDamage) / 3);
if (hero._xscale == 100) {
this["enemy" + num]._x = this["enemy" + num]._x - 60;
}
if (hero._xscale == -100) {
this["enemy" + num]._x = this["enemy" + num]._x + 60;
}
if (this["enemy" + num].HP <= 0) {
_root.attachMovie("heartAttach", "heartAttach", 38, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y});
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
this["enemy" + num].die.gotoAndPlay(60);
}
}
if (hero.jumpy.HIT.hitTest(this["enemy" + num].HIT) and ((!this["enemy" + num].dead) == true)) {
_root.attachMovie("bloodAttachKICK", "bloodAttachKICK", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.jumpy.HIT.HITin.gotoAndStop(2);
this["enemy" + num].HP = this["enemy" + num].HP - (weaponDamage * 3);
if (this["enemy" + num].HP <= 0) {
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
this["enemy" + num].die.gotoAndPlay(100);
}
}
if (hero.sit.HIT.hitTest(this["enemy" + num].legs) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num].gotoAndStop(2);
_root.attachMovie("bloodAttachKICK", "bloodAttachKICK", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.sit.HIT.HITin.gotoAndStop(2);
this["enemy" + num].HP = this["enemy" + num].HP - (Math.ceil(weaponDamage) / 3);
if (hero._xscale == 100) {
this["enemy" + num]._x = this["enemy" + num]._x - 50;
}
if (hero._xscale == -100) {
this["enemy" + num]._x = this["enemy" + num]._x + 50;
}
if (this["enemy" + num].HP <= 0) {
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
this["enemy" + num].die.gotoAndPlay(1);
}
}
if (hero.sit.HIT2.hitTest(this["enemy" + num].HIT) and ((!this["enemy" + num].dead) == true)) {
_root.attachMovie("bloodAttach", "bloodAttach", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.sit.HIT2.HITin.gotoAndStop(2);
this["enemy" + num].HP = this["enemy" + num].HP - (weaponDamage * 2);
if (this["enemy" + num].HP <= 0) {
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
this["enemy" + num].die.gotoAndPlay(80);
}
}
if (this["enemy" + num].hitTest(_root.bullet0) and ((!this["enemy" + num].dead) == true)) {
removeMovieClip(_root.bullet0);
this["enemy" + num].gotoAndStop(4);
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
_root.attachMovie("bloodAttach", "bloodAttach", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
_root.attachMovie("deadEnemy", "deadEnemy", deadEnemyNum, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
if (spearcankill == true) {
this["enemy" + num].die.gotoAndPlay(20);
}
if (spearcankill == false) {
this["enemy" + num].die.gotoAndPlay(40);
}
this["enemy" + num].dead = true;
}
if (this["enemy" + num].HIT.hitTest(_root.bullet1) and ((!this["enemy" + num].dead) == true)) {
removeMovieClip(_root.bullet1);
this["enemy" + num].gotoAndStop(4);
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
_root.attachMovie("bloodAttach", "bloodAttach", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
_root.attachMovie("deadEnemy", "deadEnemy", deadEnemyNum, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
if (spearcankill == true) {
this["enemy" + num].die.gotoAndPlay(20);
}
if (spearcankill == false) {
this["enemy" + num].die.gotoAndPlay(40);
}
this["enemy" + num].dead = true;
}
if ((((hero.hero2.HIT.hitTest(this["enemy" + num].hero2) or hero.hero2.HIT2.hitTest(this["enemy" + num].hero2)) or hero.hero2.HIT3.hitTest(this["enemy" + num].hero2)) or hero.jumpy.HIT.hitTest(this["enemy" + num].hero2)) or (((hero.sit.HIT2.hitTest(this["enemy" + num].hero2) and (this["enemy" + num].HIT._currentframe > 1)) and (_root.blink._currentframe == 1)) and ((!shieldDead) == true))) {
_root.attachMovie("bloodAttach0Defence", "bloodAttach0Defence", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.hero2.HIT.HITin.gotoAndPlay(2);
hero.hero2.HIT2.HITin.gotoAndPlay(2);
hero.hero2.HIT3.HITin.gotoAndPlay(2);
hero.jumpy.HIT.HITin.gotoAndPlay(2);
if (this["enemy" + num]._xscale == 100) {
this["enemy" + num]._x = this["enemy" + num]._x + 30;
}
if (this["enemy" + num]._xscale == -100) {
this["enemy" + num]._x = this["enemy" + num]._x - 30;
}
}
shieldDead == false;
if ((((((_root.hero.HIT._currentframe == 2) and (_root.blink._currentframe == 1)) and ((!shieldDead) == true)) and this["enemy" + num].hero2.HIT.hitTest(hero)) or this["enemy" + num].hero2.HIT2.hitTest(hero)) or this["enemy" + num].jumpy.jumpHIT.HIT.hitTest(hero)) {
_root.attachMovie("bloodAttach0Defence2", "bloodAttach0Defence2", 50, {_x:hero._x, _y:hero._y - 50});
this["enemy" + num].hero2.HIT.HITin.gotoAndPlay(2);
this["enemy" + num].hero2.HIT2.HITin.gotoAndPlay(2);
this["enemy" + num].jumpy.jumpHIT.HIT.HITin.gotoAndPlay(2);
if (this["enemy" + num]._xscale == -100) {
hero._x = hero._x + 30;
}
if (this["enemy" + num]._xscale == 100) {
hero._x = hero._x - 30;
}
}
if ((this["enemy" + num].live == true) and (this["enemy" + num].dead == true)) {
this["enemy" + num].gotoAndStop(7);
this["enemy" + num].time = this["enemy" + num].time - 1;
if (this["enemy" + num].time <= 0) {
this["enemy" + num].time = random(200) + 20;
this["enemy" + num].HP = _root.enemyHP;
this["enemy" + num].gotoAndStop(1);
this["enemy" + num].live = false;
this["enemy" + num].dead = false;
this["enemy" + num]._x = menu._x - livePosition;
this["enemy" + num]._y = hero._y;
}
}
if (this["enemy" + num]._x <= (menu._x - 660)) {
this["enemy" + num]._y = hero._y;
this["enemy" + num]._x = menu._x - livePosition;
} else if (this["enemy" + num]._x >= (menu._x + 660)) {
this["enemy" + num]._y = hero._y;
this["enemy" + num]._x = menu._x - livePosition;
}
if (this["enemy" + num].die.spearReSpawn == true) {
this["enemy" + num].die.spearReSpawn = false;
_root.attachMovie("SpearFall", "SpearFall", 100, {_x:this["enemy" + num]._x - 50, _y:this["enemy" + num]._y});
}
if (_root.groundHIT1.hitTest(_root.bullet0) and (_root.spearcankill == true)) {
_root.attachMovie("SpearFall", "SpearFall", 100, {_x:_root.bullet0._x, _y:_root.bullet0._y - 8});
removeMovieClip(_root.bullet0);
}
if (_root.groundHIT1.hitTest(_root.bullet1) and (_root.spearcankill == true)) {
_root.attachMovie("SpearFall", "SpearFall", 100, {_x:_root.bullet1._x, _y:_root.bullet1._y - 8});
removeMovieClip(_root.bullet1);
}
if (_root.groundHIT2.hitTest(_root.bullet0) and (_root.spearcankill == true)) {
_root.attachMovie("SpearFall", "SpearFall", 100, {_x:_root.bullet0._x, _y:_root.bullet0._y - 8});
removeMovieClip(_root.bullet0);
}
if (_root.groundHIT2.hitTest(_root.bullet1) and (_root.spearcankill == true)) {
_root.attachMovie("SpearFall", "SpearFall", 100, {_x:_root.bullet1._x, _y:_root.bullet1._y - 8});
removeMovieClip(_root.bullet1);
}
num++;
}
_x = (_x - Math.round((_x - (300 - ScrollOb._x)) / 10));
_y = (_y - Math.round((_y - (300 - ScrollOb._y)) / 10));
ScrollOb = hero;
menu._x = (-_x) + 300;
menu._y = (-_y) + 200;
wind._x = (-_x) + 300;
wind._y = (-_y) + 200;
snow._x = (-_x) + 43.4;
snow._y = (-_y) - 15.2;
menu2._x = (-_x) + 300;
menu2._y = (-_y) + 200;
maskRoot._x = (-_x) + 300;
maskRoot._y = (-_y) + 200;
bambook._x = (-_x) + 300;
groundHIT1._x = (-_x) + 1200;
groundHIT2._x = (-_x) - 600;
levelEnd._x = (-_x) + 300;
levelEnd._y = (-_y) + 200;
attachBM._x = (-_x) + 300;
attachBM._y = (-_y) + 200;
hero.gotoAndStop(frame);
jump = Key.isDown(38);
hero.vy = hero.vy + gravity;
hero._x = hero._x + hero.vx;
hero._y = hero._y + hero.vy;
if ((!pause) == true) {
if (jump) {
jumpnum = jumpnum - 1;
if (hero.grounded) {
hero.vy = -hero.jumpPower;
frame = "jump";
}
}
}
if (left) {
hero.vx = hero.vx - hero.spd;
hero._xscale = -100;
frame = "run";
} else if (right) {
hero.vx = hero.vx + hero.spd;
hero._xscale = 100;
frame = "run";
} else if (hero.grounded) {
hero.vx = hero.vx * 0.9;
frame = "stand";
} else {
frame = "jump";
}
if ((!pause) == true) {
if (Math.abs(hero.vx) > hero.maxSpd) {
hero.vx = hero.vx * 0.9;
}
}
hero.grounded = false;
if (ground.hitTest(hero._x, hero._y, true)) {
hero.vy = -Math.abs(hero.vy * 0.4);
hero.grounded = true;
frame = "stand";
while (ground.hitTest(hero._x, hero._y, true)) {
hero._y = hero._y - 0.2;
}
}
if (ground.hitTest(hero._x - (hero._width / 2), hero._y - (hero._height / 2), true)) {
hero.vx = Math.abs(hero.vx * 0.4);
while (ground.hitTest(hero._x - (hero._width / 2), hero._y - (hero._height / 2), true)) {
hero._x = hero._x + 0.2;
}
} else if (ground.hitTest(hero._x + (hero._width / 2), hero._y - (hero._height / 2), true)) {
hero.vx = -Math.abs(hero.vx * 0.4);
while (ground.hitTest(hero._x + (hero._width / 2), hero._y - (hero._height / 2), true)) {
hero._x = hero._x - 0.2;
}
}
}
};
stop();
Instance of Symbol 1481 MovieClip "menu" in Frame 64
onClipEvent (load) {
this.gotoAndStop(10);
}
Instance of Symbol 1491 MovieClip "ground" in Frame 64
onClipEvent (load) {
this.gotoAndStop(3);
}
Instance of Symbol 1494 MovieClip in Frame 64
onClipEvent (enterFrame) {
if (_root.groundHIT2.hitTest(this.HIT)) {
this._x = _root.groundHIT1._x - 200;
this.gotoAndStop(random(2) + 1);
} else if (_root.groundHIT1.hitTest(this.HIT)) {
this._x = _root.groundHIT2._x + 200;
this.gotoAndStop(random(2) + 1);
}
trace(this._x);
}
Instance of Symbol 1500 MovieClip "hero" in Frame 64
onClipEvent (enterFrame) {
if (((Key.isDown(40) and Key.isDown(37)) and Key.isDown(39)) and ((!_root.heroDead) == true)) {
this._x = this._x - run;
}
if (_root.heroDead == true) {
this.state = 4;
}
if ((Key.isDown(40) and ((!air) == true)) and ((!_root.heroDead) == true)) {
if (this._xscale == 100) {
this._x = this._x - run3;
if ((!run3) <= 0) {
run3--;
}
}
if (this._xscale == -100) {
this._x = this._x + run3;
if ((!run3) <= 0) {
run3--;
}
}
state = 5;
if (Key.isDown(37) and ((!_root.heroDead) == true)) {
_x = (_x + run);
}
if (Key.isDown(39) and ((!_root.heroDead) == true)) {
_x = (_x - run);
}
}
if (((state == 5) and (_root.spearflyCheker == true)) and ((!_root.heroDead) == true)) {
_root.spearflyCheker = false;
_root.spearfly = false;
_root.sword = 11;
}
if (((state == 5) and (_root.arrowflyCheker == true)) and ((!_root.heroDead) == true)) {
_root.arrowflyCheker = false;
_root.arrowfly = false;
}
if (((Key.isDown(38) and (_root.jump2 == true)) and ((!spearfly) == true)) and ((!_root.heroDead) == true)) {
_root.hero.vy = -_root.hero.jumpPower;
_root.jumpnum = 100;
}
if (((air == true) and (_root.spearflyCheker == true)) and ((!_root.heroDead) == true)) {
_root.spearflyCheker = false;
_root.spearfly = false;
_root.sword = 11;
}
if (((air == true) and (_root.arrowflyCheker == true)) and ((!_root.heroDead) == true)) {
_root.arrowflyCheker = false;
_root.arrowfly = false;
}
if (((!Key.isDown(38)) and (_root.jumpnum <= 2)) and ((!_root.heroDead) == true)) {
_root.jump2 = true;
} else {
_root.jump2 = false;
}
if ((!Key.isDown(40)) and ((!_root.heroDead) == true)) {
run3 = run;
}
if (Key.isDown(37) and ((!_root.heroDead) == true)) {
run2 = run;
_x = (_x - run);
this._xscale = 100;
this.legs.play();
}
if (((!(Key.isDown(37) or Key.isDown(39))) and (!Key.isDown(40))) and ((!_root.heroDead) == true)) {
this.legs.gotoAndStop(1);
if (this._xscale == 100) {
this._x = this._x - run2;
if ((!run2) <= 0) {
run2--;
}
}
if (this._xscale == -100) {
this._x = this._x + run2;
if ((!run2) <= 0) {
run2--;
}
}
}
if ((Key.isDown(37) && (Key.isDown(39))) and ((!_root.heroDead) == true)) {
this._x = this._x + run;
this._xscale = -100;
this.legs.play();
}
if (((air == true) && (Key.isDown(37))) and ((!_root.heroDead) == true)) {
state = 3;
}
if (Key.isDown(39) and ((!_root.heroDead) == true)) {
run2 = run;
_x = (_x + run);
this._xscale = -100;
this.legs.play();
}
if (((air == true) && (Key.isDown(39))) and ((!_root.heroDead) == true)) {
state = 3;
}
gotoAndStop(state);
if ((Key.isDown(65) && (air == true)) and ((!_root.heroDead) == true)) {
_root.hero.jumping.gotoAndPlay(6);
}
if (((Key.isDown(65) and (Key.isDown(37) or Key.isDown(39))) and ((!air) == true)) and ((!_root.heroDead) == true)) {
_root.standAttack = false;
_root.runAttack = true;
}
this._y = this._y + 8;
_y = (_y + gravity);
if (air == true) {
state = 3;
}
if (_root.ground.hitTest(_x, _y, true)) {
air = false;
_root.jumpnum = 2;
} else {
air = true;
state = 3;
}
if (air == false) {
state = 1;
}
if ((_root.arrowfly == true) and ((!_root.gotArrows) == false)) {
_root.menu2.arrows.gotoAndStop(_root.menu2.arrows._currentframe + 1);
_root.spearT = false;
totalbullet++;
if (totalbullet > 1) {
totalbullet = 0;
}
if (_root.hero._xscale == -100) {
_root.attachMovie("bullet", "bullet" + totalbullet, totalbullet, {_x:_x, _y:_y, _rotation:this._rotation});
} else if (_root.hero._xscale == 100) {
_root.attachMovie("bullet2", "bullet" + totalbullet, totalbullet, {_x:_x, _y:_y, _rotation:this._rotation});
}
}
if (_root.spearfly == true) {
_root.spearT = true;
totalbullet++;
if (totalbullet > 1) {
totalbullet = 0;
}
if (_root.hero._xscale == -100) {
_root.attachMovie("bullet", "bullet" + totalbullet, totalbullet, {_x:_x, _y:_y, _rotation:this._rotation});
} else if (_root.hero._xscale == 100) {
_root.attachMovie("bullet2", "bullet" + totalbullet, totalbullet, {_x:_x, _y:_y, _rotation:this._rotation});
}
}
}
onClipEvent (load) {
totalbullet = 0;
}
Instance of Symbol 1501 MovieClip "steam" in Frame 64
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 1502 MovieClip "blink" in Frame 64
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 616 MovieClip "groundHIT1" in Frame 64
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 616 MovieClip "groundHIT2" in Frame 64
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 1566 MovieClip "swordOrBow" in Frame 64
onClipEvent (enterFrame) {
if (_root.swords == true) {
this.gotoAndStop(1);
}
if (_root.bows == true) {
this.gotoAndStop(2);
}
}
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 1547 MovieClip "menu2" in Frame 64
onClipEvent (enterFrame) {
this.swapDepths((this._y * 100) + this._x);
}
Instance of Symbol 1549 MovieClip "levelEnd" in Frame 64
onClipEvent (enterFrame) {
this.swapDepths((this._y * 1000) + this._x);
}
Frame 65
levelFrame = 66;
gotoAndStop (30);
_x = 0;
_y = 0;
Frame 66
swordE = 6;
bootsE = 33;
pantsE = 36;
weaponDamageE = 60;
bodyE = 12;
helmetE = 14;
shieldE = 13;
shield2E = 3;
shieldhandE = 4;
attackNum = 0;
attackNum2 = 0;
attackNum3 = 0;
attackNum4 = 0;
attackNum5 = 0;
gotArrows = true;
weaponDamage = 1;
HITMinusArmour = 0;
enemyHITPower = 180;
menu2.location.location = "Baghdad";
_root.attachMovie("attachBM", "attachBM", 50, {_x:300, _y:200});
removeMovieClip(_root.heroAttach);
enemies = 1;
enemyHP = 45;
blooddummy._x = 0;
blooddummy._y = 0;
dep = 200;
gravity = 0.5;
hero.vx = 0;
hero.vy = 0;
hero.jumpPower = 20;
hero.grounded = false;
ScrollOb = hero;
spearfly = false;
spear = true;
hero.run = 7;
deadEnemyNum = 1000;
num = 0;
while (num <= enemies) {
this["enemy" + num].power = 20;
this["enemy" + num].HP = 45;
groundGNum = 1000;
groundGNum2 = -500;
this["enemy" + num].time = 500;
num++;
}
roundTime = 2300;
sound2 = true;
sound = false;
music2 = true;
music = false;
music3 = false;
music4 = false;
onEnterFrame = function () {
trace(roundTime);
roundTime = roundTime - 1;
if ((roundTime <= 0) and ((!heroDead) == true)) {
hero.HIT.gotoAndStop(2);
levelEnd.play();
removeMovieClip(menu2);
}
if ((!_root.HITMinusArmour) <= 1) {
_root.HITMinusArmour = _root.enemyHITPower - _root.armour;
}
if (_root.HITMinusArmour <= 1) {
_root.HITMinusArmour = 1;
}
trace(_root.HITMinusArmour);
if ((!pause) == true) {
num = 0;
while (num <= enemies) {
if (hero._x >= groundGNum) {
groundGNum = groundGNum + 500;
groundGNum2 = groundGNum2 + 500;
ground._x = ground._x + 500;
} else if (hero._x <= groundGNum2) {
groundGNum2 = groundGNum2 - 500;
groundGNum = groundGNum - 500;
ground._x = ground._x - 500;
}
if (EXP >= 1000) {
levelUP = levelUP + 1;
EXP = 0;
}
deadEnemyNum++;
this["enemy" + num];
if ((this["enemy" + num].AAA.jumpFrame == true) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num].air = true;
this["enemy" + num].gotoAndStop(3);
} else if (((this["enemy" + num].AAA.jumpFrame == false) and ground.hitTest(this["enemy" + num]._x, this["enemy" + num]._y + 5, true)) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num].air = false;
this["enemy" + num].power = 20;
this["enemy" + num].gotoAndStop(1);
}
if ((this["enemy" + num].AAA._currentframe == 52) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num].AAA.gotoAndPlay(random(500) + 1);
}
if (ground.hitTest(this["enemy" + num]._x - 6, this["enemy" + num]._y - 10, true) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num]._x = this["enemy" + num]._x + enemySpeed;
} else if (ground.hitTest(this["enemy" + num]._x + 6, this["enemy" + num]._y - 10, true) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num]._x = this["enemy" + num]._x - enemySpeed;
}
if ((this["enemy" + num]._currentframe == 3) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num].air = true;
this["enemy" + num]._y = this["enemy" + num]._y - this["enemy" + num].power;
if ((!this["enemy" + num].power) <= 0) {
this["enemy" + num].power = this["enemy" + num].power - 0.5;
if (this["enemy" + num]._xscale == 100) {
this["enemy" + num]._x = this["enemy" + num]._x - enemySpeed;
}
if (this["enemy" + num]._xscale == -100) {
this["enemy" + num]._x = this["enemy" + num]._x + enemySpeed;
}
}
if ((this["enemy" + num]._x >= (hero._x + 1)) and (this["enemy" + num]._xscale == -100)) {
this["enemy" + num].jumpy.gotoAndStop(10);
} else if ((this["enemy" + num]._x <= (hero._x - 1)) and (this["enemy" + num]._xscale == 100)) {
this["enemy" + num].jumpy.gotoAndStop(10);
}
}
if ((this["enemy" + num].hitTest(hero) and ((!_root.heroDead) == true)) and (this["enemy" + num].hero2.canAttack == true)) {
this["enemy" + num].hero2.canAttack = false;
this["enemy" + num].hero2.gotoAndPlay(_root.enemyRandomAttack);
}
if (this["enemy" + num].hero2.HIT.hitTest(hero.HIT)) {
this["enemy" + num].hero2.HIT.HITin.gotoAndPlay(2);
blink.play();
}
if (this["enemy" + num].jumpy.jumpHIT.HIT.hitTest(hero.HIT)) {
this["enemy" + num].jumpy.jumpHIT.HIT.HITin.gotoAndPlay(2);
blink.play();
}
if (this["enemy" + num].hero2.HIT2.hitTest(hero.HIT)) {
this["enemy" + num].hero2.HIT2.HITin.gotoAndPlay(2);
if (this["enemy" + num]._xscale == 100) {
hero._x = hero._x - 50;
blink.play();
}
if (this["enemy" + num]._xscale == -100) {
hero._x = hero._x + 50;
blink.play();
}
}
if (((hero._x > this["enemy" + num]._x) and ((!this["enemy" + num].dead) == true)) and ((!this["enemy" + num].air) == true)) {
this["enemy" + num]._xscale = -100;
} else if (((hero._x < this["enemy" + num]._x) and ((!this["enemy" + num].dead) == true)) and ((!this["enemy" + num].air) == true)) {
this["enemy" + num]._xscale = 100;
}
if (((((hero._x > (this["enemy" + num]._x + 70)) and ((!this["enemy" + num].dead) == true)) and this["enemy" + num].hitTest(this["enemy" + num].AAA)) and ((!this["enemy" + num].air) == true)) and ((!this["enemy" + num].hero2.kick) == true)) {
this["enemy" + num].legs.gotoAndStop(4);
this["enemy" + num]._x = this["enemy" + num]._x + enemySpeed;
} else if (((((hero._x < (this["enemy" + num]._x - 70)) and ((!this["enemy" + num].dead) == true)) and this["enemy" + num].hitTest(this["enemy" + num].AAA)) and ((!this["enemy" + num].air) == true)) and ((!this["enemy" + num].hero2.kick) == true)) {
this["enemy" + num]._x = this["enemy" + num]._x - enemySpeed;
this["enemy" + num].legs.gotoAndStop(4);
} else {
this["enemy" + num].legs.gotoAndStop(1);
}
this["enemy" + num]._y = this["enemy" + num]._y + 8;
while (ground.hitTest(this["enemy" + num]._x, this["enemy" + num]._y, true)) {
this["enemy" + num]._y = this["enemy" + num]._y - 1;
}
while (ground.hitTest(hero._root.SpearFall._x, hero._root.SpearFall._y, true)) {
_root.SpearFall._y = _root.SpearFall._y - 1;
}
if (hero.hero2.HIT.hitTest(this["enemy" + num].HIT) and ((!this["enemy" + num].dead) == true)) {
_root.attachMovie("bloodAttach", "bloodAttach", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.hero2.HIT.HITin.gotoAndPlay(2);
this["enemy" + num].HP = this["enemy" + num].HP - weaponDamage;
if (this["enemy" + num].HP <= 0) {
_root.attachMovie("heartAttach", "heartAttach", 38, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y});
gold = gold + (random(50) + 10);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
if ((sword == 5) or (sword == 8)) {
this["enemy" + num].die.gotoAndPlay(80);
} else {
this["enemy" + num].die.gotoAndPlay(1);
}
}
}
if (hero.hero2.HIT2.hitTest(this["enemy" + num].HIT) and ((!this["enemy" + num].dead) == true)) {
_root.attachMovie("bloodAttachKICK", "bloodAttachKICK", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.hero2.HIT2.HITin.gotoAndPlay(2);
this["enemy" + num].HP = this["enemy" + num].HP - (Math.ceil(weaponDamage) * 5);
if (this["enemy" + num].HP <= 0) {
_root.attachMovie("heartAttach", "heartAttach", 38, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y});
gold = gold + (random(50) + 10);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
this["enemy" + num].die.gotoAndPlay(60);
}
}
if (hero.hero2.HIT3.hitTest(this["enemy" + num].HIT) and ((!this["enemy" + num].dead) == true)) {
_root.attachMovie("bloodAttachKICK", "bloodAttachKICK", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.hero2.HIT3.HITin.gotoAndPlay(2);
this["enemy" + num].gotoAndStop(2);
this["enemy" + num].gotKicked.gotoAndPlay(37);
this["enemy" + num].HP = this["enemy" + num].HP - (Math.ceil(weaponDamage) / 3);
if (hero._xscale == 100) {
this["enemy" + num]._x = this["enemy" + num]._x - 60;
}
if (hero._xscale == -100) {
this["enemy" + num]._x = this["enemy" + num]._x + 60;
}
if (this["enemy" + num].HP <= 0) {
_root.attachMovie("heartAttach", "heartAttach", 38, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y});
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
this["enemy" + num].die.gotoAndPlay(60);
}
}
if (hero.jumpy.HIT.hitTest(this["enemy" + num].HIT) and ((!this["enemy" + num].dead) == true)) {
_root.attachMovie("bloodAttachKICK", "bloodAttachKICK", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.jumpy.HIT.HITin.gotoAndStop(2);
this["enemy" + num].HP = this["enemy" + num].HP - (weaponDamage * 3);
if (this["enemy" + num].HP <= 0) {
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
this["enemy" + num].die.gotoAndPlay(100);
}
}
if (hero.sit.HIT.hitTest(this["enemy" + num].legs) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num].gotoAndStop(2);
_root.attachMovie("bloodAttachKICK", "bloodAttachKICK", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.sit.HIT.HITin.gotoAndStop(2);
this["enemy" + num].HP = this["enemy" + num].HP - (Math.ceil(weaponDamage) / 3);
if (hero._xscale == 100) {
this["enemy" + num]._x = this["enemy" + num]._x - 50;
}
if (hero._xscale == -100) {
this["enemy" + num]._x = this["enemy" + num]._x + 50;
}
if (this["enemy" + num].HP <= 0) {
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
this["enemy" + num].die.gotoAndPlay(1);
}
}
if (hero.sit.HIT2.hitTest(this["enemy" + num].HIT) and ((!this["enemy" + num].dead) == true)) {
_root.attachMovie("bloodAttach", "bloodAttach", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.sit.HIT2.HITin.gotoAndStop(2);
this["enemy" + num].HP = this["enemy" + num].HP - (weaponDamage * 2);
if (this["enemy" + num].HP <= 0) {
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
this["enemy" + num].die.gotoAndPlay(80);
}
}
if (this["enemy" + num].hitTest(_root.bullet0) and ((!this["enemy" + num].dead) == true)) {
removeMovieClip(_root.bullet0);
this["enemy" + num].gotoAndStop(4);
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
_root.attachMovie("bloodAttach", "bloodAttach", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
_root.attachMovie("deadEnemy", "deadEnemy", deadEnemyNum, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
if (spearcankill == true) {
this["enemy" + num].die.gotoAndPlay(20);
}
if (spearcankill == false) {
this["enemy" + num].die.gotoAndPlay(40);
}
this["enemy" + num].dead = true;
}
if (this["enemy" + num].HIT.hitTest(_root.bullet1) and ((!this["enemy" + num].dead) == true)) {
removeMovieClip(_root.bullet1);
this["enemy" + num].gotoAndStop(4);
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
_root.attachMovie("bloodAttach", "bloodAttach", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
_root.attachMovie("deadEnemy", "deadEnemy", deadEnemyNum, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
if (spearcankill == true) {
this["enemy" + num].die.gotoAndPlay(20);
}
if (spearcankill == false) {
this["enemy" + num].die.gotoAndPlay(40);
}
this["enemy" + num].dead = true;
}
if ((((hero.hero2.HIT.hitTest(this["enemy" + num].hero2) or hero.hero2.HIT2.hitTest(this["enemy" + num].hero2)) or hero.hero2.HIT3.hitTest(this["enemy" + num].hero2)) or hero.jumpy.HIT.hitTest(this["enemy" + num].hero2)) or (((hero.sit.HIT2.hitTest(this["enemy" + num].hero2) and (this["enemy" + num].HIT._currentframe > 1)) and (_root.blink._currentframe == 1)) and ((!shieldDead) == true))) {
_root.attachMovie("bloodAttach0Defence", "bloodAttach0Defence", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.hero2.HIT.HITin.gotoAndPlay(2);
hero.hero2.HIT2.HITin.gotoAndPlay(2);
hero.hero2.HIT3.HITin.gotoAndPlay(2);
hero.jumpy.HIT.HITin.gotoAndPlay(2);
if (this["enemy" + num]._xscale == 100) {
this["enemy" + num]._x = this["enemy" + num]._x + 30;
}
if (this["enemy" + num]._xscale == -100) {
this["enemy" + num]._x = this["enemy" + num]._x - 30;
}
}
shieldDead == false;
if ((((((_root.hero.HIT._currentframe == 2) and (_root.blink._currentframe == 1)) and ((!shieldDead) == true)) and this["enemy" + num].hero2.HIT.hitTest(hero)) or this["enemy" + num].hero2.HIT2.hitTest(hero)) or this["enemy" + num].jumpy.jumpHIT.HIT.hitTest(hero)) {
_root.attachMovie("bloodAttach0Defence2", "bloodAttach0Defence2", 50, {_x:hero._x, _y:hero._y - 50});
this["enemy" + num].hero2.HIT.HITin.gotoAndPlay(2);
this["enemy" + num].hero2.HIT2.HITin.gotoAndPlay(2);
this["enemy" + num].jumpy.jumpHIT.HIT.HITin.gotoAndPlay(2);
if (this["enemy" + num]._xscale == -100) {
hero._x = hero._x + 30;
}
if (this["enemy" + num]._xscale == 100) {
hero._x = hero._x - 30;
}
}
if ((this["enemy" + num].live == true) and (this["enemy" + num].dead == true)) {
this["enemy" + num].gotoAndStop(7);
this["enemy" + num].time = this["enemy" + num].time - 1;
if (this["enemy" + num].time <= 0) {
this["enemy" + num].time = random(400) + 20;
this["enemy" + num].HP = _root.enemyHP;
this["enemy" + num].gotoAndStop(1);
this["enemy" + num].live = false;
this["enemy" + num].dead = false;
this["enemy" + num]._x = menu._x - livePosition;
this["enemy" + num]._y = hero._y;
}
}
if (this["enemy" + num]._x <= (menu._x - 660)) {
this["enemy" + num]._y = hero._y;
this["enemy" + num]._x = menu._x - livePosition;
} else if (this["enemy" + num]._x >= (menu._x + 660)) {
this["enemy" + num]._y = hero._y;
this["enemy" + num]._x = menu._x - livePosition;
}
if (this["enemy" + num].die.spearReSpawn == true) {
this["enemy" + num].die.spearReSpawn = false;
_root.attachMovie("SpearFall", "SpearFall", 100, {_x:this["enemy" + num]._x - 50, _y:this["enemy" + num]._y});
}
if (_root.groundHIT1.hitTest(_root.bullet0) and (_root.spearcankill == true)) {
_root.attachMovie("SpearFall", "SpearFall", 100, {_x:_root.bullet0._x, _y:_root.bullet0._y - 8});
removeMovieClip(_root.bullet0);
}
if (_root.groundHIT1.hitTest(_root.bullet1) and (_root.spearcankill == true)) {
_root.attachMovie("SpearFall", "SpearFall", 100, {_x:_root.bullet1._x, _y:_root.bullet1._y - 8});
removeMovieClip(_root.bullet1);
}
if (_root.groundHIT2.hitTest(_root.bullet0) and (_root.spearcankill == true)) {
_root.attachMovie("SpearFall", "SpearFall", 100, {_x:_root.bullet0._x, _y:_root.bullet0._y - 8});
removeMovieClip(_root.bullet0);
}
if (_root.groundHIT2.hitTest(_root.bullet1) and (_root.spearcankill == true)) {
_root.attachMovie("SpearFall", "SpearFall", 100, {_x:_root.bullet1._x, _y:_root.bullet1._y - 8});
removeMovieClip(_root.bullet1);
}
num++;
}
_x = (_x - Math.round((_x - (300 - ScrollOb._x)) / 10));
_y = (_y - Math.round((_y - (300 - ScrollOb._y)) / 10));
ScrollOb = hero;
menu._x = (-_x) + 300;
menu._y = (-_y) + 200;
wind._x = (-_x) + 300;
wind._y = (-_y) + 200;
snow._x = (-_x) + 43.4;
snow._y = (-_y) - 15.2;
menu2._x = (-_x) + 300;
menu2._y = (-_y) + 200;
maskRoot._x = (-_x) + 300;
maskRoot._y = (-_y) + 200;
bambook._x = (-_x) + 300;
groundHIT1._x = (-_x) + 1200;
groundHIT2._x = (-_x) - 600;
levelEnd._x = (-_x) + 300;
levelEnd._y = (-_y) + 200;
attachBM._x = (-_x) + 300;
attachBM._y = (-_y) + 200;
hero.gotoAndStop(frame);
jump = Key.isDown(38);
hero.vy = hero.vy + gravity;
hero._x = hero._x + hero.vx;
hero._y = hero._y + hero.vy;
if ((!pause) == true) {
if (jump) {
jumpnum = jumpnum - 1;
if (hero.grounded) {
hero.vy = -hero.jumpPower;
frame = "jump";
}
}
}
if (left) {
hero.vx = hero.vx - hero.spd;
hero._xscale = -100;
frame = "run";
} else if (right) {
hero.vx = hero.vx + hero.spd;
hero._xscale = 100;
frame = "run";
} else if (hero.grounded) {
hero.vx = hero.vx * 0.9;
frame = "stand";
} else {
frame = "jump";
}
if ((!pause) == true) {
if (Math.abs(hero.vx) > hero.maxSpd) {
hero.vx = hero.vx * 0.9;
}
}
hero.grounded = false;
if (ground.hitTest(hero._x, hero._y, true)) {
hero.vy = -Math.abs(hero.vy * 0.4);
hero.grounded = true;
frame = "stand";
while (ground.hitTest(hero._x, hero._y, true)) {
hero._y = hero._y - 0.2;
}
}
if (ground.hitTest(hero._x - (hero._width / 2), hero._y - (hero._height / 2), true)) {
hero.vx = Math.abs(hero.vx * 0.4);
while (ground.hitTest(hero._x - (hero._width / 2), hero._y - (hero._height / 2), true)) {
hero._x = hero._x + 0.2;
}
} else if (ground.hitTest(hero._x + (hero._width / 2), hero._y - (hero._height / 2), true)) {
hero.vx = -Math.abs(hero.vx * 0.4);
while (ground.hitTest(hero._x + (hero._width / 2), hero._y - (hero._height / 2), true)) {
hero._x = hero._x - 0.2;
}
}
}
};
stop();
Instance of Symbol 1481 MovieClip "menu" in Frame 66
onClipEvent (load) {
this.gotoAndStop(11);
}
Instance of Symbol 1491 MovieClip "ground" in Frame 66
onClipEvent (load) {
this.gotoAndStop(4);
}
Instance of Symbol 1494 MovieClip in Frame 66
onClipEvent (enterFrame) {
if (_root.groundHIT2.hitTest(this.HIT)) {
this._x = _root.groundHIT1._x - 200;
this.gotoAndStop(random(2) + 1);
} else if (_root.groundHIT1.hitTest(this.HIT)) {
this._x = _root.groundHIT2._x + 200;
this.gotoAndStop(random(2) + 1);
}
trace(this._x);
}
Instance of Symbol 1500 MovieClip "hero" in Frame 66
onClipEvent (enterFrame) {
if (((Key.isDown(40) and Key.isDown(37)) and Key.isDown(39)) and ((!_root.heroDead) == true)) {
this._x = this._x - run;
}
if (_root.heroDead == true) {
this.state = 4;
}
if ((Key.isDown(40) and ((!air) == true)) and ((!_root.heroDead) == true)) {
if (this._xscale == 100) {
this._x = this._x - run3;
if ((!run3) <= 0) {
run3--;
}
}
if (this._xscale == -100) {
this._x = this._x + run3;
if ((!run3) <= 0) {
run3--;
}
}
state = 5;
if (Key.isDown(37) and ((!_root.heroDead) == true)) {
_x = (_x + run);
}
if (Key.isDown(39) and ((!_root.heroDead) == true)) {
_x = (_x - run);
}
}
if (((state == 5) and (_root.spearflyCheker == true)) and ((!_root.heroDead) == true)) {
_root.spearflyCheker = false;
_root.spearfly = false;
_root.sword = 11;
}
if (((state == 5) and (_root.arrowflyCheker == true)) and ((!_root.heroDead) == true)) {
_root.arrowflyCheker = false;
_root.arrowfly = false;
}
if (((Key.isDown(38) and (_root.jump2 == true)) and ((!spearfly) == true)) and ((!_root.heroDead) == true)) {
_root.hero.vy = -_root.hero.jumpPower;
_root.jumpnum = 100;
}
if (((air == true) and (_root.spearflyCheker == true)) and ((!_root.heroDead) == true)) {
_root.spearflyCheker = false;
_root.spearfly = false;
_root.sword = 11;
}
if (((air == true) and (_root.arrowflyCheker == true)) and ((!_root.heroDead) == true)) {
_root.arrowflyCheker = false;
_root.arrowfly = false;
}
if (((!Key.isDown(38)) and (_root.jumpnum <= 2)) and ((!_root.heroDead) == true)) {
_root.jump2 = true;
} else {
_root.jump2 = false;
}
if ((!Key.isDown(40)) and ((!_root.heroDead) == true)) {
run3 = run;
}
if (Key.isDown(37) and ((!_root.heroDead) == true)) {
run2 = run;
_x = (_x - run);
this._xscale = 100;
this.legs.play();
}
if (((!(Key.isDown(37) or Key.isDown(39))) and (!Key.isDown(40))) and ((!_root.heroDead) == true)) {
this.legs.gotoAndStop(1);
if (this._xscale == 100) {
this._x = this._x - run2;
if ((!run2) <= 0) {
run2--;
}
}
if (this._xscale == -100) {
this._x = this._x + run2;
if ((!run2) <= 0) {
run2--;
}
}
}
if ((Key.isDown(37) && (Key.isDown(39))) and ((!_root.heroDead) == true)) {
this._x = this._x + run;
this._xscale = -100;
this.legs.play();
}
if (((air == true) && (Key.isDown(37))) and ((!_root.heroDead) == true)) {
state = 3;
}
if (Key.isDown(39) and ((!_root.heroDead) == true)) {
run2 = run;
_x = (_x + run);
this._xscale = -100;
this.legs.play();
}
if (((air == true) && (Key.isDown(39))) and ((!_root.heroDead) == true)) {
state = 3;
}
gotoAndStop(state);
if ((Key.isDown(65) && (air == true)) and ((!_root.heroDead) == true)) {
_root.hero.jumping.gotoAndPlay(6);
}
if (((Key.isDown(65) and (Key.isDown(37) or Key.isDown(39))) and ((!air) == true)) and ((!_root.heroDead) == true)) {
_root.standAttack = false;
_root.runAttack = true;
}
this._y = this._y + 8;
_y = (_y + gravity);
if (air == true) {
state = 3;
}
if (_root.ground.hitTest(_x, _y, true)) {
air = false;
_root.jumpnum = 2;
} else {
air = true;
state = 3;
}
if (air == false) {
state = 1;
}
if ((_root.arrowfly == true) and ((!_root.gotArrows) == false)) {
_root.menu2.arrows.gotoAndStop(_root.menu2.arrows._currentframe + 1);
_root.spearT = false;
totalbullet++;
if (totalbullet > 1) {
totalbullet = 0;
}
if (_root.hero._xscale == -100) {
_root.attachMovie("bullet", "bullet" + totalbullet, totalbullet, {_x:_x, _y:_y, _rotation:this._rotation});
} else if (_root.hero._xscale == 100) {
_root.attachMovie("bullet2", "bullet" + totalbullet, totalbullet, {_x:_x, _y:_y, _rotation:this._rotation});
}
}
if (_root.spearfly == true) {
_root.spearT = true;
totalbullet++;
if (totalbullet > 1) {
totalbullet = 0;
}
if (_root.hero._xscale == -100) {
_root.attachMovie("bullet", "bullet" + totalbullet, totalbullet, {_x:_x, _y:_y, _rotation:this._rotation});
} else if (_root.hero._xscale == 100) {
_root.attachMovie("bullet2", "bullet" + totalbullet, totalbullet, {_x:_x, _y:_y, _rotation:this._rotation});
}
}
}
onClipEvent (load) {
totalbullet = 0;
}
Instance of Symbol 1501 MovieClip "steam" in Frame 66
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 1502 MovieClip "blink" in Frame 66
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 616 MovieClip "groundHIT1" in Frame 66
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 616 MovieClip "groundHIT2" in Frame 66
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 1551 MovieClip "swordOrBow" in Frame 66
onClipEvent (enterFrame) {
if (_root.swords == true) {
this.gotoAndStop(1);
}
if (_root.bows == true) {
this.gotoAndStop(2);
}
}
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 1547 MovieClip "menu2" in Frame 66
onClipEvent (enterFrame) {
this.swapDepths((this._y * 100) + this._x);
}
Instance of Symbol 1549 MovieClip "levelEnd" in Frame 66
onClipEvent (enterFrame) {
this.swapDepths((this._y * 1000) + this._x);
}
Frame 67
levelFrame = 68;
gotoAndStop (30);
_x = 0;
_y = 0;
Frame 68
swordE = 8;
bootsE = 39;
pantsE = 37;
weaponDamageE = 60;
bodyE = 14;
helmetE = 15;
shieldE = 14;
shield2E = 4;
shieldhandE = 7;
attackNum = 0;
attackNum2 = 0;
attackNum3 = 0;
attackNum4 = 0;
attackNum5 = 0;
gotArrows = true;
weaponDamage = 1;
HITMinusArmour = 0;
enemyHITPower = 190;
menu2.location.location = "Iran";
_root.attachMovie("attachBM", "attachBM", 50, {_x:300, _y:200});
removeMovieClip(_root.heroAttach);
enemies = 5;
enemyHP = 60;
blooddummy._x = 0;
blooddummy._y = 0;
dep = 200;
gravity = 0.5;
hero.vx = 0;
hero.vy = 0;
hero.jumpPower = 20;
hero.grounded = false;
ScrollOb = hero;
spearfly = false;
spear = true;
hero.run = 7;
deadEnemyNum = 1000;
num = 0;
while (num <= enemies) {
this["enemy" + num].power = 20;
this["enemy" + num].HP = 50;
groundGNum = 1000;
groundGNum2 = -500;
this["enemy" + num].time = 500;
num++;
}
roundTime = 2300;
sound2 = true;
sound = false;
music2 = true;
music = false;
music3 = false;
music4 = false;
onEnterFrame = function () {
trace(roundTime);
roundTime = roundTime - 1;
if ((roundTime <= 0) and ((!heroDead) == true)) {
hero.HIT.gotoAndStop(2);
levelEnd.play();
removeMovieClip(menu2);
}
if ((!_root.HITMinusArmour) <= 1) {
_root.HITMinusArmour = _root.enemyHITPower - _root.armour;
}
if (_root.HITMinusArmour <= 1) {
_root.HITMinusArmour = 1;
}
trace(_root.HITMinusArmour);
if ((!pause) == true) {
num = 0;
while (num <= enemies) {
if (hero._x >= groundGNum) {
groundGNum = groundGNum + 500;
groundGNum2 = groundGNum2 + 500;
ground._x = ground._x + 500;
} else if (hero._x <= groundGNum2) {
groundGNum2 = groundGNum2 - 500;
groundGNum = groundGNum - 500;
ground._x = ground._x - 500;
}
if (EXP >= 1000) {
levelUP = levelUP + 1;
EXP = 0;
}
deadEnemyNum++;
this["enemy" + num];
if ((this["enemy" + num].AAA.jumpFrame == true) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num].air = true;
this["enemy" + num].gotoAndStop(3);
} else if (((this["enemy" + num].AAA.jumpFrame == false) and ground.hitTest(this["enemy" + num]._x, this["enemy" + num]._y + 5, true)) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num].air = false;
this["enemy" + num].power = 20;
this["enemy" + num].gotoAndStop(1);
}
if ((this["enemy" + num].AAA._currentframe == 52) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num].AAA.gotoAndPlay(random(500) + 1);
}
if (ground.hitTest(this["enemy" + num]._x - 6, this["enemy" + num]._y - 10, true) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num]._x = this["enemy" + num]._x + enemySpeed;
} else if (ground.hitTest(this["enemy" + num]._x + 6, this["enemy" + num]._y - 10, true) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num]._x = this["enemy" + num]._x - enemySpeed;
}
if ((this["enemy" + num]._currentframe == 3) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num].air = true;
this["enemy" + num]._y = this["enemy" + num]._y - this["enemy" + num].power;
if ((!this["enemy" + num].power) <= 0) {
this["enemy" + num].power = this["enemy" + num].power - 0.5;
if (this["enemy" + num]._xscale == 100) {
this["enemy" + num]._x = this["enemy" + num]._x - enemySpeed;
}
if (this["enemy" + num]._xscale == -100) {
this["enemy" + num]._x = this["enemy" + num]._x + enemySpeed;
}
}
if ((this["enemy" + num]._x >= (hero._x + 1)) and (this["enemy" + num]._xscale == -100)) {
this["enemy" + num].jumpy.gotoAndStop(10);
} else if ((this["enemy" + num]._x <= (hero._x - 1)) and (this["enemy" + num]._xscale == 100)) {
this["enemy" + num].jumpy.gotoAndStop(10);
}
}
if ((this["enemy" + num].hitTest(hero) and ((!_root.heroDead) == true)) and (this["enemy" + num].hero2.canAttack == true)) {
this["enemy" + num].hero2.canAttack = false;
this["enemy" + num].hero2.gotoAndPlay(_root.enemyRandomAttack);
}
if (this["enemy" + num].hero2.HIT.hitTest(hero.HIT)) {
this["enemy" + num].hero2.HIT.HITin.gotoAndPlay(2);
blink.play();
}
if (this["enemy" + num].jumpy.jumpHIT.HIT.hitTest(hero.HIT)) {
this["enemy" + num].jumpy.jumpHIT.HIT.HITin.gotoAndPlay(2);
blink.play();
}
if (this["enemy" + num].hero2.HIT2.hitTest(hero.HIT)) {
this["enemy" + num].hero2.HIT2.HITin.gotoAndPlay(2);
if (this["enemy" + num]._xscale == 100) {
hero._x = hero._x - 50;
blink.play();
}
if (this["enemy" + num]._xscale == -100) {
hero._x = hero._x + 50;
blink.play();
}
}
if (((hero._x > this["enemy" + num]._x) and ((!this["enemy" + num].dead) == true)) and ((!this["enemy" + num].air) == true)) {
this["enemy" + num]._xscale = -100;
} else if (((hero._x < this["enemy" + num]._x) and ((!this["enemy" + num].dead) == true)) and ((!this["enemy" + num].air) == true)) {
this["enemy" + num]._xscale = 100;
}
if (((((hero._x > (this["enemy" + num]._x + 70)) and ((!this["enemy" + num].dead) == true)) and this["enemy" + num].hitTest(this["enemy" + num].AAA)) and ((!this["enemy" + num].air) == true)) and ((!this["enemy" + num].hero2.kick) == true)) {
this["enemy" + num].legs.gotoAndStop(4);
this["enemy" + num]._x = this["enemy" + num]._x + enemySpeed;
} else if (((((hero._x < (this["enemy" + num]._x - 70)) and ((!this["enemy" + num].dead) == true)) and this["enemy" + num].hitTest(this["enemy" + num].AAA)) and ((!this["enemy" + num].air) == true)) and ((!this["enemy" + num].hero2.kick) == true)) {
this["enemy" + num]._x = this["enemy" + num]._x - enemySpeed;
this["enemy" + num].legs.gotoAndStop(4);
} else {
this["enemy" + num].legs.gotoAndStop(1);
}
this["enemy" + num]._y = this["enemy" + num]._y + 8;
while (ground.hitTest(this["enemy" + num]._x, this["enemy" + num]._y, true)) {
this["enemy" + num]._y = this["enemy" + num]._y - 1;
}
while (ground.hitTest(hero._root.SpearFall._x, hero._root.SpearFall._y, true)) {
_root.SpearFall._y = _root.SpearFall._y - 1;
}
if (hero.hero2.HIT.hitTest(this["enemy" + num].HIT) and ((!this["enemy" + num].dead) == true)) {
_root.attachMovie("bloodAttach", "bloodAttach", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.hero2.HIT.HITin.gotoAndPlay(2);
this["enemy" + num].HP = this["enemy" + num].HP - weaponDamage;
if (this["enemy" + num].HP <= 0) {
_root.attachMovie("heartAttach", "heartAttach", 38, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y});
gold = gold + (random(50) + 10);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
if ((sword == 5) or (sword == 8)) {
this["enemy" + num].die.gotoAndPlay(80);
} else {
this["enemy" + num].die.gotoAndPlay(1);
}
}
}
if (hero.hero2.HIT2.hitTest(this["enemy" + num].HIT) and ((!this["enemy" + num].dead) == true)) {
_root.attachMovie("bloodAttachKICK", "bloodAttachKICK", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.hero2.HIT2.HITin.gotoAndPlay(2);
this["enemy" + num].HP = this["enemy" + num].HP - (Math.ceil(weaponDamage) * 5);
if (this["enemy" + num].HP <= 0) {
_root.attachMovie("heartAttach", "heartAttach", 38, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y});
gold = gold + (random(50) + 10);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
this["enemy" + num].die.gotoAndPlay(60);
}
}
if (hero.hero2.HIT3.hitTest(this["enemy" + num].HIT) and ((!this["enemy" + num].dead) == true)) {
_root.attachMovie("bloodAttachKICK", "bloodAttachKICK", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.hero2.HIT3.HITin.gotoAndPlay(2);
this["enemy" + num].gotoAndStop(2);
this["enemy" + num].gotKicked.gotoAndPlay(37);
this["enemy" + num].HP = this["enemy" + num].HP - (Math.ceil(weaponDamage) / 3);
if (hero._xscale == 100) {
this["enemy" + num]._x = this["enemy" + num]._x - 60;
}
if (hero._xscale == -100) {
this["enemy" + num]._x = this["enemy" + num]._x + 60;
}
if (this["enemy" + num].HP <= 0) {
_root.attachMovie("heartAttach", "heartAttach", 38, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y});
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
this["enemy" + num].die.gotoAndPlay(60);
}
}
if (hero.jumpy.HIT.hitTest(this["enemy" + num].HIT) and ((!this["enemy" + num].dead) == true)) {
_root.attachMovie("bloodAttachKICK", "bloodAttachKICK", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.jumpy.HIT.HITin.gotoAndStop(2);
this["enemy" + num].HP = this["enemy" + num].HP - (weaponDamage * 3);
if (this["enemy" + num].HP <= 0) {
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
this["enemy" + num].die.gotoAndPlay(100);
}
}
if (hero.sit.HIT.hitTest(this["enemy" + num].legs) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num].gotoAndStop(2);
_root.attachMovie("bloodAttachKICK", "bloodAttachKICK", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.sit.HIT.HITin.gotoAndStop(2);
this["enemy" + num].HP = this["enemy" + num].HP - (Math.ceil(weaponDamage) / 3);
if (hero._xscale == 100) {
this["enemy" + num]._x = this["enemy" + num]._x - 50;
}
if (hero._xscale == -100) {
this["enemy" + num]._x = this["enemy" + num]._x + 50;
}
if (this["enemy" + num].HP <= 0) {
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
this["enemy" + num].die.gotoAndPlay(1);
}
}
if (hero.sit.HIT2.hitTest(this["enemy" + num].HIT) and ((!this["enemy" + num].dead) == true)) {
_root.attachMovie("bloodAttach", "bloodAttach", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.sit.HIT2.HITin.gotoAndStop(2);
this["enemy" + num].HP = this["enemy" + num].HP - (weaponDamage * 2);
if (this["enemy" + num].HP <= 0) {
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
this["enemy" + num].die.gotoAndPlay(80);
}
}
if (this["enemy" + num].hitTest(_root.bullet0) and ((!this["enemy" + num].dead) == true)) {
removeMovieClip(_root.bullet0);
this["enemy" + num].gotoAndStop(4);
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
_root.attachMovie("bloodAttach", "bloodAttach", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
_root.attachMovie("deadEnemy", "deadEnemy", deadEnemyNum, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
if (spearcankill == true) {
this["enemy" + num].die.gotoAndPlay(20);
}
if (spearcankill == false) {
this["enemy" + num].die.gotoAndPlay(40);
}
this["enemy" + num].dead = true;
}
if (this["enemy" + num].HIT.hitTest(_root.bullet1) and ((!this["enemy" + num].dead) == true)) {
removeMovieClip(_root.bullet1);
this["enemy" + num].gotoAndStop(4);
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
_root.attachMovie("bloodAttach", "bloodAttach", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
_root.attachMovie("deadEnemy", "deadEnemy", deadEnemyNum, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
if (spearcankill == true) {
this["enemy" + num].die.gotoAndPlay(20);
}
if (spearcankill == false) {
this["enemy" + num].die.gotoAndPlay(40);
}
this["enemy" + num].dead = true;
}
if ((((hero.hero2.HIT.hitTest(this["enemy" + num].hero2) or hero.hero2.HIT2.hitTest(this["enemy" + num].hero2)) or hero.hero2.HIT3.hitTest(this["enemy" + num].hero2)) or hero.jumpy.HIT.hitTest(this["enemy" + num].hero2)) or (((hero.sit.HIT2.hitTest(this["enemy" + num].hero2) and (this["enemy" + num].HIT._currentframe > 1)) and (_root.blink._currentframe == 1)) and ((!shieldDead) == true))) {
_root.attachMovie("bloodAttach0Defence", "bloodAttach0Defence", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.hero2.HIT.HITin.gotoAndPlay(2);
hero.hero2.HIT2.HITin.gotoAndPlay(2);
hero.hero2.HIT3.HITin.gotoAndPlay(2);
hero.jumpy.HIT.HITin.gotoAndPlay(2);
if (this["enemy" + num]._xscale == 100) {
this["enemy" + num]._x = this["enemy" + num]._x + 30;
}
if (this["enemy" + num]._xscale == -100) {
this["enemy" + num]._x = this["enemy" + num]._x - 30;
}
}
shieldDead == false;
if ((((((_root.hero.HIT._currentframe == 2) and (_root.blink._currentframe == 1)) and ((!shieldDead) == true)) and this["enemy" + num].hero2.HIT.hitTest(hero)) or this["enemy" + num].hero2.HIT2.hitTest(hero)) or this["enemy" + num].jumpy.jumpHIT.HIT.hitTest(hero)) {
_root.attachMovie("bloodAttach0Defence2", "bloodAttach0Defence2", 50, {_x:hero._x, _y:hero._y - 50});
this["enemy" + num].hero2.HIT.HITin.gotoAndPlay(2);
this["enemy" + num].hero2.HIT2.HITin.gotoAndPlay(2);
this["enemy" + num].jumpy.jumpHIT.HIT.HITin.gotoAndPlay(2);
if (this["enemy" + num]._xscale == -100) {
hero._x = hero._x + 30;
}
if (this["enemy" + num]._xscale == 100) {
hero._x = hero._x - 30;
}
}
if ((this["enemy" + num].live == true) and (this["enemy" + num].dead == true)) {
this["enemy" + num].gotoAndStop(7);
this["enemy" + num].time = this["enemy" + num].time - 1;
if (this["enemy" + num].time <= 0) {
this["enemy" + num].time = random(400) + 20;
this["enemy" + num].HP = _root.enemyHP;
this["enemy" + num].gotoAndStop(1);
this["enemy" + num].live = false;
this["enemy" + num].dead = false;
this["enemy" + num]._x = menu._x - livePosition;
this["enemy" + num]._y = hero._y;
}
}
if (this["enemy" + num]._x <= (menu._x - 660)) {
this["enemy" + num]._y = hero._y;
this["enemy" + num]._x = menu._x - livePosition;
} else if (this["enemy" + num]._x >= (menu._x + 660)) {
this["enemy" + num]._y = hero._y;
this["enemy" + num]._x = menu._x - livePosition;
}
if (this["enemy" + num].die.spearReSpawn == true) {
this["enemy" + num].die.spearReSpawn = false;
_root.attachMovie("SpearFall", "SpearFall", 100, {_x:this["enemy" + num]._x - 50, _y:this["enemy" + num]._y});
}
if (_root.groundHIT1.hitTest(_root.bullet0) and (_root.spearcankill == true)) {
_root.attachMovie("SpearFall", "SpearFall", 100, {_x:_root.bullet0._x, _y:_root.bullet0._y - 8});
removeMovieClip(_root.bullet0);
}
if (_root.groundHIT1.hitTest(_root.bullet1) and (_root.spearcankill == true)) {
_root.attachMovie("SpearFall", "SpearFall", 100, {_x:_root.bullet1._x, _y:_root.bullet1._y - 8});
removeMovieClip(_root.bullet1);
}
if (_root.groundHIT2.hitTest(_root.bullet0) and (_root.spearcankill == true)) {
_root.attachMovie("SpearFall", "SpearFall", 100, {_x:_root.bullet0._x, _y:_root.bullet0._y - 8});
removeMovieClip(_root.bullet0);
}
if (_root.groundHIT2.hitTest(_root.bullet1) and (_root.spearcankill == true)) {
_root.attachMovie("SpearFall", "SpearFall", 100, {_x:_root.bullet1._x, _y:_root.bullet1._y - 8});
removeMovieClip(_root.bullet1);
}
num++;
}
_x = (_x - Math.round((_x - (300 - ScrollOb._x)) / 10));
_y = (_y - Math.round((_y - (300 - ScrollOb._y)) / 10));
ScrollOb = hero;
menu._x = (-_x) + 300;
menu._y = (-_y) + 200;
wind._x = (-_x) + 300;
wind._y = (-_y) + 200;
snow._x = (-_x) + 43.4;
snow._y = (-_y) - 15.2;
menu2._x = (-_x) + 300;
menu2._y = (-_y) + 200;
maskRoot._x = (-_x) + 300;
maskRoot._y = (-_y) + 200;
bambook._x = (-_x) + 300;
groundHIT1._x = (-_x) + 1200;
groundHIT2._x = (-_x) - 600;
levelEnd._x = (-_x) + 300;
levelEnd._y = (-_y) + 200;
attachBM._x = (-_x) + 300;
attachBM._y = (-_y) + 200;
hero.gotoAndStop(frame);
jump = Key.isDown(38);
hero.vy = hero.vy + gravity;
hero._x = hero._x + hero.vx;
hero._y = hero._y + hero.vy;
if ((!pause) == true) {
if (jump) {
jumpnum = jumpnum - 1;
if (hero.grounded) {
hero.vy = -hero.jumpPower;
frame = "jump";
}
}
}
if (left) {
hero.vx = hero.vx - hero.spd;
hero._xscale = -100;
frame = "run";
} else if (right) {
hero.vx = hero.vx + hero.spd;
hero._xscale = 100;
frame = "run";
} else if (hero.grounded) {
hero.vx = hero.vx * 0.9;
frame = "stand";
} else {
frame = "jump";
}
if ((!pause) == true) {
if (Math.abs(hero.vx) > hero.maxSpd) {
hero.vx = hero.vx * 0.9;
}
}
hero.grounded = false;
if (ground.hitTest(hero._x, hero._y, true)) {
hero.vy = -Math.abs(hero.vy * 0.4);
hero.grounded = true;
frame = "stand";
while (ground.hitTest(hero._x, hero._y, true)) {
hero._y = hero._y - 0.2;
}
}
if (ground.hitTest(hero._x - (hero._width / 2), hero._y - (hero._height / 2), true)) {
hero.vx = Math.abs(hero.vx * 0.4);
while (ground.hitTest(hero._x - (hero._width / 2), hero._y - (hero._height / 2), true)) {
hero._x = hero._x + 0.2;
}
} else if (ground.hitTest(hero._x + (hero._width / 2), hero._y - (hero._height / 2), true)) {
hero.vx = -Math.abs(hero.vx * 0.4);
while (ground.hitTest(hero._x + (hero._width / 2), hero._y - (hero._height / 2), true)) {
hero._x = hero._x - 0.2;
}
}
}
};
stop();
Instance of Symbol 1481 MovieClip "menu" in Frame 68
onClipEvent (load) {
this.gotoAndStop(12);
}
Instance of Symbol 1491 MovieClip "ground" in Frame 68
onClipEvent (load) {
this.gotoAndStop(4);
}
Instance of Symbol 1494 MovieClip in Frame 68
onClipEvent (enterFrame) {
if (_root.groundHIT2.hitTest(this.HIT)) {
this._x = _root.groundHIT1._x - 200;
this.gotoAndStop(random(2) + 1);
} else if (_root.groundHIT1.hitTest(this.HIT)) {
this._x = _root.groundHIT2._x + 200;
this.gotoAndStop(random(2) + 1);
}
trace(this._x);
}
Instance of Symbol 1500 MovieClip "hero" in Frame 68
onClipEvent (enterFrame) {
if (((Key.isDown(40) and Key.isDown(37)) and Key.isDown(39)) and ((!_root.heroDead) == true)) {
this._x = this._x - run;
}
if (_root.heroDead == true) {
this.state = 4;
}
if ((Key.isDown(40) and ((!air) == true)) and ((!_root.heroDead) == true)) {
if (this._xscale == 100) {
this._x = this._x - run3;
if ((!run3) <= 0) {
run3--;
}
}
if (this._xscale == -100) {
this._x = this._x + run3;
if ((!run3) <= 0) {
run3--;
}
}
state = 5;
if (Key.isDown(37) and ((!_root.heroDead) == true)) {
_x = (_x + run);
}
if (Key.isDown(39) and ((!_root.heroDead) == true)) {
_x = (_x - run);
}
}
if (((state == 5) and (_root.spearflyCheker == true)) and ((!_root.heroDead) == true)) {
_root.spearflyCheker = false;
_root.spearfly = false;
_root.sword = 11;
}
if (((state == 5) and (_root.arrowflyCheker == true)) and ((!_root.heroDead) == true)) {
_root.arrowflyCheker = false;
_root.arrowfly = false;
}
if (((Key.isDown(38) and (_root.jump2 == true)) and ((!spearfly) == true)) and ((!_root.heroDead) == true)) {
_root.hero.vy = -_root.hero.jumpPower;
_root.jumpnum = 100;
}
if (((air == true) and (_root.spearflyCheker == true)) and ((!_root.heroDead) == true)) {
_root.spearflyCheker = false;
_root.spearfly = false;
_root.sword = 11;
}
if (((air == true) and (_root.arrowflyCheker == true)) and ((!_root.heroDead) == true)) {
_root.arrowflyCheker = false;
_root.arrowfly = false;
}
if (((!Key.isDown(38)) and (_root.jumpnum <= 2)) and ((!_root.heroDead) == true)) {
_root.jump2 = true;
} else {
_root.jump2 = false;
}
if ((!Key.isDown(40)) and ((!_root.heroDead) == true)) {
run3 = run;
}
if (Key.isDown(37) and ((!_root.heroDead) == true)) {
run2 = run;
_x = (_x - run);
this._xscale = 100;
this.legs.play();
}
if (((!(Key.isDown(37) or Key.isDown(39))) and (!Key.isDown(40))) and ((!_root.heroDead) == true)) {
this.legs.gotoAndStop(1);
if (this._xscale == 100) {
this._x = this._x - run2;
if ((!run2) <= 0) {
run2--;
}
}
if (this._xscale == -100) {
this._x = this._x + run2;
if ((!run2) <= 0) {
run2--;
}
}
}
if ((Key.isDown(37) && (Key.isDown(39))) and ((!_root.heroDead) == true)) {
this._x = this._x + run;
this._xscale = -100;
this.legs.play();
}
if (((air == true) && (Key.isDown(37))) and ((!_root.heroDead) == true)) {
state = 3;
}
if (Key.isDown(39) and ((!_root.heroDead) == true)) {
run2 = run;
_x = (_x + run);
this._xscale = -100;
this.legs.play();
}
if (((air == true) && (Key.isDown(39))) and ((!_root.heroDead) == true)) {
state = 3;
}
gotoAndStop(state);
if ((Key.isDown(65) && (air == true)) and ((!_root.heroDead) == true)) {
_root.hero.jumping.gotoAndPlay(6);
}
if (((Key.isDown(65) and (Key.isDown(37) or Key.isDown(39))) and ((!air) == true)) and ((!_root.heroDead) == true)) {
_root.standAttack = false;
_root.runAttack = true;
}
this._y = this._y + 8;
_y = (_y + gravity);
if (air == true) {
state = 3;
}
if (_root.ground.hitTest(_x, _y, true)) {
air = false;
_root.jumpnum = 2;
} else {
air = true;
state = 3;
}
if (air == false) {
state = 1;
}
if ((_root.arrowfly == true) and ((!_root.gotArrows) == false)) {
_root.menu2.arrows.gotoAndStop(_root.menu2.arrows._currentframe + 1);
_root.spearT = false;
totalbullet++;
if (totalbullet > 1) {
totalbullet = 0;
}
if (_root.hero._xscale == -100) {
_root.attachMovie("bullet", "bullet" + totalbullet, totalbullet, {_x:_x, _y:_y, _rotation:this._rotation});
} else if (_root.hero._xscale == 100) {
_root.attachMovie("bullet2", "bullet" + totalbullet, totalbullet, {_x:_x, _y:_y, _rotation:this._rotation});
}
}
if (_root.spearfly == true) {
_root.spearT = true;
totalbullet++;
if (totalbullet > 1) {
totalbullet = 0;
}
if (_root.hero._xscale == -100) {
_root.attachMovie("bullet", "bullet" + totalbullet, totalbullet, {_x:_x, _y:_y, _rotation:this._rotation});
} else if (_root.hero._xscale == 100) {
_root.attachMovie("bullet2", "bullet" + totalbullet, totalbullet, {_x:_x, _y:_y, _rotation:this._rotation});
}
}
}
onClipEvent (load) {
totalbullet = 0;
}
Instance of Symbol 1501 MovieClip "steam" in Frame 68
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 1502 MovieClip "blink" in Frame 68
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 616 MovieClip "groundHIT1" in Frame 68
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 616 MovieClip "groundHIT2" in Frame 68
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 1505 MovieClip "swordOrBow" in Frame 68
onClipEvent (enterFrame) {
if (_root.swords == true) {
this.gotoAndStop(1);
}
if (_root.bows == true) {
this.gotoAndStop(2);
}
}
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 1547 MovieClip "menu2" in Frame 68
onClipEvent (enterFrame) {
this.swapDepths((this._y * 100) + this._x);
}
Instance of Symbol 1549 MovieClip "levelEnd" in Frame 68
onClipEvent (enterFrame) {
this.swapDepths((this._y * 1000) + this._x);
}
Frame 69
levelFrame = 70;
gotoAndStop (30);
_x = 0;
_y = 0;
Frame 70
swordE = 15;
bootsE = 38;
pantsE = 35;
weaponDamageE = 60;
bodyE = 20;
helmetE = 16;
shieldE = 12;
shield2E = 1;
shieldhandE = 1;
attackNum = 0;
attackNum2 = 0;
attackNum3 = 0;
attackNum4 = 0;
attackNum5 = 0;
gotArrows = true;
weaponDamage = 1;
HITMinusArmour = 0;
enemyHITPower = 190;
menu2.location.location = "India";
_root.attachMovie("attachBM", "attachBM", 50, {_x:300, _y:200});
removeMovieClip(_root.heroAttach);
enemies = 3;
enemyHP = 40;
blooddummy._x = 0;
blooddummy._y = 0;
dep = 200;
gravity = 0.5;
hero.vx = 0;
hero.vy = 0;
hero.jumpPower = 20;
hero.grounded = false;
ScrollOb = hero;
spearfly = false;
spear = true;
hero.run = 7;
deadEnemyNum = 1000;
num = 0;
while (num <= enemies) {
this["enemy" + num].power = 20;
this["enemy" + num].HP = 60;
groundGNum = 1000;
groundGNum2 = -500;
this["enemy" + num].time = 500;
num++;
}
roundTime = 2300;
sound2 = true;
sound = false;
music2 = true;
music = false;
music3 = false;
music4 = false;
onEnterFrame = function () {
trace(roundTime);
roundTime = roundTime - 1;
if ((roundTime <= 0) and ((!heroDead) == true)) {
hero.HIT.gotoAndStop(2);
levelEnd.play();
removeMovieClip(menu2);
}
if ((!_root.HITMinusArmour) <= 1) {
_root.HITMinusArmour = _root.enemyHITPower - _root.armour;
}
if (_root.HITMinusArmour <= 1) {
_root.HITMinusArmour = 1;
}
trace(_root.HITMinusArmour);
if ((!pause) == true) {
num = 0;
while (num <= enemies) {
if (hero._x >= groundGNum) {
groundGNum = groundGNum + 500;
groundGNum2 = groundGNum2 + 500;
ground._x = ground._x + 500;
} else if (hero._x <= groundGNum2) {
groundGNum2 = groundGNum2 - 500;
groundGNum = groundGNum - 500;
ground._x = ground._x - 500;
}
if (EXP >= 1000) {
levelUP = levelUP + 1;
EXP = 0;
}
deadEnemyNum++;
this["enemy" + num];
if ((this["enemy" + num].AAA.jumpFrame == true) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num].air = true;
this["enemy" + num].gotoAndStop(3);
} else if (((this["enemy" + num].AAA.jumpFrame == false) and ground.hitTest(this["enemy" + num]._x, this["enemy" + num]._y + 5, true)) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num].air = false;
this["enemy" + num].power = 20;
this["enemy" + num].gotoAndStop(1);
}
if ((this["enemy" + num].AAA._currentframe == 52) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num].AAA.gotoAndPlay(random(500) + 1);
}
if (ground.hitTest(this["enemy" + num]._x - 6, this["enemy" + num]._y - 10, true) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num]._x = this["enemy" + num]._x + enemySpeed;
} else if (ground.hitTest(this["enemy" + num]._x + 6, this["enemy" + num]._y - 10, true) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num]._x = this["enemy" + num]._x - enemySpeed;
}
if ((this["enemy" + num]._currentframe == 3) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num].air = true;
this["enemy" + num]._y = this["enemy" + num]._y - this["enemy" + num].power;
if ((!this["enemy" + num].power) <= 0) {
this["enemy" + num].power = this["enemy" + num].power - 0.5;
if (this["enemy" + num]._xscale == 100) {
this["enemy" + num]._x = this["enemy" + num]._x - enemySpeed;
}
if (this["enemy" + num]._xscale == -100) {
this["enemy" + num]._x = this["enemy" + num]._x + enemySpeed;
}
}
if ((this["enemy" + num]._x >= (hero._x + 1)) and (this["enemy" + num]._xscale == -100)) {
this["enemy" + num].jumpy.gotoAndStop(10);
} else if ((this["enemy" + num]._x <= (hero._x - 1)) and (this["enemy" + num]._xscale == 100)) {
this["enemy" + num].jumpy.gotoAndStop(10);
}
}
if ((this["enemy" + num].hitTest(hero) and ((!_root.heroDead) == true)) and (this["enemy" + num].hero2.canAttack == true)) {
this["enemy" + num].hero2.canAttack = false;
this["enemy" + num].hero2.gotoAndPlay(_root.enemyRandomAttack);
}
if (this["enemy" + num].hero2.HIT.hitTest(hero.HIT)) {
this["enemy" + num].hero2.HIT.HITin.gotoAndPlay(2);
blink.play();
}
if (this["enemy" + num].jumpy.jumpHIT.HIT.hitTest(hero.HIT)) {
this["enemy" + num].jumpy.jumpHIT.HIT.HITin.gotoAndPlay(2);
blink.play();
}
if (this["enemy" + num].hero2.HIT2.hitTest(hero.HIT)) {
this["enemy" + num].hero2.HIT2.HITin.gotoAndPlay(2);
if (this["enemy" + num]._xscale == 100) {
hero._x = hero._x - 50;
blink.play();
}
if (this["enemy" + num]._xscale == -100) {
hero._x = hero._x + 50;
blink.play();
}
}
if (((hero._x > this["enemy" + num]._x) and ((!this["enemy" + num].dead) == true)) and ((!this["enemy" + num].air) == true)) {
this["enemy" + num]._xscale = -100;
} else if (((hero._x < this["enemy" + num]._x) and ((!this["enemy" + num].dead) == true)) and ((!this["enemy" + num].air) == true)) {
this["enemy" + num]._xscale = 100;
}
if (((((hero._x > (this["enemy" + num]._x + 70)) and ((!this["enemy" + num].dead) == true)) and this["enemy" + num].hitTest(this["enemy" + num].AAA)) and ((!this["enemy" + num].air) == true)) and ((!this["enemy" + num].hero2.kick) == true)) {
this["enemy" + num].legs.gotoAndStop(4);
this["enemy" + num]._x = this["enemy" + num]._x + enemySpeed;
} else if (((((hero._x < (this["enemy" + num]._x - 70)) and ((!this["enemy" + num].dead) == true)) and this["enemy" + num].hitTest(this["enemy" + num].AAA)) and ((!this["enemy" + num].air) == true)) and ((!this["enemy" + num].hero2.kick) == true)) {
this["enemy" + num]._x = this["enemy" + num]._x - enemySpeed;
this["enemy" + num].legs.gotoAndStop(4);
} else {
this["enemy" + num].legs.gotoAndStop(1);
}
this["enemy" + num]._y = this["enemy" + num]._y + 8;
while (ground.hitTest(this["enemy" + num]._x, this["enemy" + num]._y, true)) {
this["enemy" + num]._y = this["enemy" + num]._y - 1;
}
while (ground.hitTest(hero._root.SpearFall._x, hero._root.SpearFall._y, true)) {
_root.SpearFall._y = _root.SpearFall._y - 1;
}
if (hero.hero2.HIT.hitTest(this["enemy" + num].HIT) and ((!this["enemy" + num].dead) == true)) {
_root.attachMovie("bloodAttach", "bloodAttach", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.hero2.HIT.HITin.gotoAndPlay(2);
this["enemy" + num].HP = this["enemy" + num].HP - weaponDamage;
if (this["enemy" + num].HP <= 0) {
_root.attachMovie("heartAttach", "heartAttach", 38, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y});
gold = gold + (random(50) + 10);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
if ((sword == 5) or (sword == 8)) {
this["enemy" + num].die.gotoAndPlay(80);
} else {
this["enemy" + num].die.gotoAndPlay(1);
}
}
}
if (hero.hero2.HIT2.hitTest(this["enemy" + num].HIT) and ((!this["enemy" + num].dead) == true)) {
_root.attachMovie("bloodAttachKICK", "bloodAttachKICK", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.hero2.HIT2.HITin.gotoAndPlay(2);
this["enemy" + num].HP = this["enemy" + num].HP - (Math.ceil(weaponDamage) * 5);
if (this["enemy" + num].HP <= 0) {
_root.attachMovie("heartAttach", "heartAttach", 38, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y});
gold = gold + (random(50) + 10);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
this["enemy" + num].die.gotoAndPlay(60);
}
}
if (hero.hero2.HIT3.hitTest(this["enemy" + num].HIT) and ((!this["enemy" + num].dead) == true)) {
_root.attachMovie("bloodAttachKICK", "bloodAttachKICK", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.hero2.HIT3.HITin.gotoAndPlay(2);
this["enemy" + num].gotoAndStop(2);
this["enemy" + num].gotKicked.gotoAndPlay(37);
this["enemy" + num].HP = this["enemy" + num].HP - (Math.ceil(weaponDamage) / 3);
if (hero._xscale == 100) {
this["enemy" + num]._x = this["enemy" + num]._x - 60;
}
if (hero._xscale == -100) {
this["enemy" + num]._x = this["enemy" + num]._x + 60;
}
if (this["enemy" + num].HP <= 0) {
_root.attachMovie("heartAttach", "heartAttach", 38, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y});
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
this["enemy" + num].die.gotoAndPlay(60);
}
}
if (hero.jumpy.HIT.hitTest(this["enemy" + num].HIT) and ((!this["enemy" + num].dead) == true)) {
_root.attachMovie("bloodAttachKICK", "bloodAttachKICK", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.jumpy.HIT.HITin.gotoAndStop(2);
this["enemy" + num].HP = this["enemy" + num].HP - (weaponDamage * 3);
if (this["enemy" + num].HP <= 0) {
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
this["enemy" + num].die.gotoAndPlay(100);
}
}
if (hero.sit.HIT.hitTest(this["enemy" + num].legs) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num].gotoAndStop(2);
_root.attachMovie("bloodAttachKICK", "bloodAttachKICK", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.sit.HIT.HITin.gotoAndStop(2);
this["enemy" + num].HP = this["enemy" + num].HP - (Math.ceil(weaponDamage) / 3);
if (hero._xscale == 100) {
this["enemy" + num]._x = this["enemy" + num]._x - 50;
}
if (hero._xscale == -100) {
this["enemy" + num]._x = this["enemy" + num]._x + 50;
}
if (this["enemy" + num].HP <= 0) {
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
this["enemy" + num].die.gotoAndPlay(1);
}
}
if (hero.sit.HIT2.hitTest(this["enemy" + num].HIT) and ((!this["enemy" + num].dead) == true)) {
_root.attachMovie("bloodAttach", "bloodAttach", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.sit.HIT2.HITin.gotoAndStop(2);
this["enemy" + num].HP = this["enemy" + num].HP - (weaponDamage * 2);
if (this["enemy" + num].HP <= 0) {
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
this["enemy" + num].die.gotoAndPlay(80);
}
}
if (this["enemy" + num].hitTest(_root.bullet0) and ((!this["enemy" + num].dead) == true)) {
removeMovieClip(_root.bullet0);
this["enemy" + num].gotoAndStop(4);
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
_root.attachMovie("bloodAttach", "bloodAttach", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
_root.attachMovie("deadEnemy", "deadEnemy", deadEnemyNum, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
if (spearcankill == true) {
this["enemy" + num].die.gotoAndPlay(20);
}
if (spearcankill == false) {
this["enemy" + num].die.gotoAndPlay(40);
}
this["enemy" + num].dead = true;
}
if (this["enemy" + num].HIT.hitTest(_root.bullet1) and ((!this["enemy" + num].dead) == true)) {
removeMovieClip(_root.bullet1);
this["enemy" + num].gotoAndStop(4);
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
_root.attachMovie("bloodAttach", "bloodAttach", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
_root.attachMovie("deadEnemy", "deadEnemy", deadEnemyNum, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
if (spearcankill == true) {
this["enemy" + num].die.gotoAndPlay(20);
}
if (spearcankill == false) {
this["enemy" + num].die.gotoAndPlay(40);
}
this["enemy" + num].dead = true;
}
if ((((hero.hero2.HIT.hitTest(this["enemy" + num].hero2) or hero.hero2.HIT2.hitTest(this["enemy" + num].hero2)) or hero.hero2.HIT3.hitTest(this["enemy" + num].hero2)) or hero.jumpy.HIT.hitTest(this["enemy" + num].hero2)) or (((hero.sit.HIT2.hitTest(this["enemy" + num].hero2) and (this["enemy" + num].HIT._currentframe > 1)) and (_root.blink._currentframe == 1)) and ((!shieldDead) == true))) {
_root.attachMovie("bloodAttach0Defence", "bloodAttach0Defence", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.hero2.HIT.HITin.gotoAndPlay(2);
hero.hero2.HIT2.HITin.gotoAndPlay(2);
hero.hero2.HIT3.HITin.gotoAndPlay(2);
hero.jumpy.HIT.HITin.gotoAndPlay(2);
if (this["enemy" + num]._xscale == 100) {
this["enemy" + num]._x = this["enemy" + num]._x + 30;
}
if (this["enemy" + num]._xscale == -100) {
this["enemy" + num]._x = this["enemy" + num]._x - 30;
}
}
shieldDead == false;
if ((((((_root.hero.HIT._currentframe == 2) and (_root.blink._currentframe == 1)) and ((!shieldDead) == true)) and this["enemy" + num].hero2.HIT.hitTest(hero)) or this["enemy" + num].hero2.HIT2.hitTest(hero)) or this["enemy" + num].jumpy.jumpHIT.HIT.hitTest(hero)) {
_root.attachMovie("bloodAttach0Defence2", "bloodAttach0Defence2", 50, {_x:hero._x, _y:hero._y - 50});
this["enemy" + num].hero2.HIT.HITin.gotoAndPlay(2);
this["enemy" + num].hero2.HIT2.HITin.gotoAndPlay(2);
this["enemy" + num].jumpy.jumpHIT.HIT.HITin.gotoAndPlay(2);
if (this["enemy" + num]._xscale == -100) {
hero._x = hero._x + 30;
}
if (this["enemy" + num]._xscale == 100) {
hero._x = hero._x - 30;
}
}
if ((this["enemy" + num].live == true) and (this["enemy" + num].dead == true)) {
this["enemy" + num].gotoAndStop(7);
this["enemy" + num].time = this["enemy" + num].time - 1;
if (this["enemy" + num].time <= 0) {
this["enemy" + num].time = random(20) + 20;
this["enemy" + num].HP = _root.enemyHP;
this["enemy" + num].gotoAndStop(1);
this["enemy" + num].live = false;
this["enemy" + num].dead = false;
this["enemy" + num]._x = menu._x - livePosition;
this["enemy" + num]._y = hero._y;
}
}
if (this["enemy" + num]._x <= (menu._x - 660)) {
this["enemy" + num]._y = hero._y;
this["enemy" + num]._x = menu._x - livePosition;
} else if (this["enemy" + num]._x >= (menu._x + 660)) {
this["enemy" + num]._y = hero._y;
this["enemy" + num]._x = menu._x - livePosition;
}
if (this["enemy" + num].die.spearReSpawn == true) {
this["enemy" + num].die.spearReSpawn = false;
_root.attachMovie("SpearFall", "SpearFall", 100, {_x:this["enemy" + num]._x - 50, _y:this["enemy" + num]._y});
}
if (_root.groundHIT1.hitTest(_root.bullet0) and (_root.spearcankill == true)) {
_root.attachMovie("SpearFall", "SpearFall", 100, {_x:_root.bullet0._x, _y:_root.bullet0._y - 8});
removeMovieClip(_root.bullet0);
}
if (_root.groundHIT1.hitTest(_root.bullet1) and (_root.spearcankill == true)) {
_root.attachMovie("SpearFall", "SpearFall", 100, {_x:_root.bullet1._x, _y:_root.bullet1._y - 8});
removeMovieClip(_root.bullet1);
}
if (_root.groundHIT2.hitTest(_root.bullet0) and (_root.spearcankill == true)) {
_root.attachMovie("SpearFall", "SpearFall", 100, {_x:_root.bullet0._x, _y:_root.bullet0._y - 8});
removeMovieClip(_root.bullet0);
}
if (_root.groundHIT2.hitTest(_root.bullet1) and (_root.spearcankill == true)) {
_root.attachMovie("SpearFall", "SpearFall", 100, {_x:_root.bullet1._x, _y:_root.bullet1._y - 8});
removeMovieClip(_root.bullet1);
}
num++;
}
_x = (_x - Math.round((_x - (300 - ScrollOb._x)) / 10));
_y = (_y - Math.round((_y - (300 - ScrollOb._y)) / 10));
ScrollOb = hero;
menu._x = (-_x) + 300;
menu._y = (-_y) + 200;
wind._x = (-_x) + 300;
wind._y = (-_y) + 200;
snow._x = (-_x) + 43.4;
snow._y = (-_y) - 15.2;
menu2._x = (-_x) + 300;
menu2._y = (-_y) + 200;
maskRoot._x = (-_x) + 300;
maskRoot._y = (-_y) + 200;
bambook._x = (-_x) + 300;
groundHIT1._x = (-_x) + 1200;
groundHIT2._x = (-_x) - 600;
levelEnd._x = (-_x) + 300;
levelEnd._y = (-_y) + 200;
attachBM._x = (-_x) + 300;
attachBM._y = (-_y) + 200;
hero.gotoAndStop(frame);
jump = Key.isDown(38);
hero.vy = hero.vy + gravity;
hero._x = hero._x + hero.vx;
hero._y = hero._y + hero.vy;
if ((!pause) == true) {
if (jump) {
jumpnum = jumpnum - 1;
if (hero.grounded) {
hero.vy = -hero.jumpPower;
frame = "jump";
}
}
}
if (left) {
hero.vx = hero.vx - hero.spd;
hero._xscale = -100;
frame = "run";
} else if (right) {
hero.vx = hero.vx + hero.spd;
hero._xscale = 100;
frame = "run";
} else if (hero.grounded) {
hero.vx = hero.vx * 0.9;
frame = "stand";
} else {
frame = "jump";
}
if ((!pause) == true) {
if (Math.abs(hero.vx) > hero.maxSpd) {
hero.vx = hero.vx * 0.9;
}
}
hero.grounded = false;
if (ground.hitTest(hero._x, hero._y, true)) {
hero.vy = -Math.abs(hero.vy * 0.4);
hero.grounded = true;
frame = "stand";
while (ground.hitTest(hero._x, hero._y, true)) {
hero._y = hero._y - 0.2;
}
}
if (ground.hitTest(hero._x - (hero._width / 2), hero._y - (hero._height / 2), true)) {
hero.vx = Math.abs(hero.vx * 0.4);
while (ground.hitTest(hero._x - (hero._width / 2), hero._y - (hero._height / 2), true)) {
hero._x = hero._x + 0.2;
}
} else if (ground.hitTest(hero._x + (hero._width / 2), hero._y - (hero._height / 2), true)) {
hero.vx = -Math.abs(hero.vx * 0.4);
while (ground.hitTest(hero._x + (hero._width / 2), hero._y - (hero._height / 2), true)) {
hero._x = hero._x - 0.2;
}
}
}
};
stop();
Instance of Symbol 1481 MovieClip "menu" in Frame 70
onClipEvent (load) {
this.gotoAndStop(14);
}
Instance of Symbol 1491 MovieClip "ground" in Frame 70
onClipEvent (load) {
this.gotoAndStop(4);
}
Instance of Symbol 1494 MovieClip in Frame 70
onClipEvent (enterFrame) {
if (_root.groundHIT2.hitTest(this.HIT)) {
this._x = _root.groundHIT1._x - 200;
this.gotoAndStop(random(2) + 1);
} else if (_root.groundHIT1.hitTest(this.HIT)) {
this._x = _root.groundHIT2._x + 200;
this.gotoAndStop(random(2) + 1);
}
trace(this._x);
}
Instance of Symbol 1500 MovieClip "hero" in Frame 70
onClipEvent (enterFrame) {
if (((Key.isDown(40) and Key.isDown(37)) and Key.isDown(39)) and ((!_root.heroDead) == true)) {
this._x = this._x - run;
}
if (_root.heroDead == true) {
this.state = 4;
}
if ((Key.isDown(40) and ((!air) == true)) and ((!_root.heroDead) == true)) {
if (this._xscale == 100) {
this._x = this._x - run3;
if ((!run3) <= 0) {
run3--;
}
}
if (this._xscale == -100) {
this._x = this._x + run3;
if ((!run3) <= 0) {
run3--;
}
}
state = 5;
if (Key.isDown(37) and ((!_root.heroDead) == true)) {
_x = (_x + run);
}
if (Key.isDown(39) and ((!_root.heroDead) == true)) {
_x = (_x - run);
}
}
if (((state == 5) and (_root.spearflyCheker == true)) and ((!_root.heroDead) == true)) {
_root.spearflyCheker = false;
_root.spearfly = false;
_root.sword = 11;
}
if (((state == 5) and (_root.arrowflyCheker == true)) and ((!_root.heroDead) == true)) {
_root.arrowflyCheker = false;
_root.arrowfly = false;
}
if (((Key.isDown(38) and (_root.jump2 == true)) and ((!spearfly) == true)) and ((!_root.heroDead) == true)) {
_root.hero.vy = -_root.hero.jumpPower;
_root.jumpnum = 100;
}
if (((air == true) and (_root.spearflyCheker == true)) and ((!_root.heroDead) == true)) {
_root.spearflyCheker = false;
_root.spearfly = false;
_root.sword = 11;
}
if (((air == true) and (_root.arrowflyCheker == true)) and ((!_root.heroDead) == true)) {
_root.arrowflyCheker = false;
_root.arrowfly = false;
}
if (((!Key.isDown(38)) and (_root.jumpnum <= 2)) and ((!_root.heroDead) == true)) {
_root.jump2 = true;
} else {
_root.jump2 = false;
}
if ((!Key.isDown(40)) and ((!_root.heroDead) == true)) {
run3 = run;
}
if (Key.isDown(37) and ((!_root.heroDead) == true)) {
run2 = run;
_x = (_x - run);
this._xscale = 100;
this.legs.play();
}
if (((!(Key.isDown(37) or Key.isDown(39))) and (!Key.isDown(40))) and ((!_root.heroDead) == true)) {
this.legs.gotoAndStop(1);
if (this._xscale == 100) {
this._x = this._x - run2;
if ((!run2) <= 0) {
run2--;
}
}
if (this._xscale == -100) {
this._x = this._x + run2;
if ((!run2) <= 0) {
run2--;
}
}
}
if ((Key.isDown(37) && (Key.isDown(39))) and ((!_root.heroDead) == true)) {
this._x = this._x + run;
this._xscale = -100;
this.legs.play();
}
if (((air == true) && (Key.isDown(37))) and ((!_root.heroDead) == true)) {
state = 3;
}
if (Key.isDown(39) and ((!_root.heroDead) == true)) {
run2 = run;
_x = (_x + run);
this._xscale = -100;
this.legs.play();
}
if (((air == true) && (Key.isDown(39))) and ((!_root.heroDead) == true)) {
state = 3;
}
gotoAndStop(state);
if ((Key.isDown(65) && (air == true)) and ((!_root.heroDead) == true)) {
_root.hero.jumping.gotoAndPlay(6);
}
if (((Key.isDown(65) and (Key.isDown(37) or Key.isDown(39))) and ((!air) == true)) and ((!_root.heroDead) == true)) {
_root.standAttack = false;
_root.runAttack = true;
}
this._y = this._y + 8;
_y = (_y + gravity);
if (air == true) {
state = 3;
}
if (_root.ground.hitTest(_x, _y, true)) {
air = false;
_root.jumpnum = 2;
} else {
air = true;
state = 3;
}
if (air == false) {
state = 1;
}
if ((_root.arrowfly == true) and ((!_root.gotArrows) == false)) {
_root.menu2.arrows.gotoAndStop(_root.menu2.arrows._currentframe + 1);
_root.spearT = false;
totalbullet++;
if (totalbullet > 1) {
totalbullet = 0;
}
if (_root.hero._xscale == -100) {
_root.attachMovie("bullet", "bullet" + totalbullet, totalbullet, {_x:_x, _y:_y, _rotation:this._rotation});
} else if (_root.hero._xscale == 100) {
_root.attachMovie("bullet2", "bullet" + totalbullet, totalbullet, {_x:_x, _y:_y, _rotation:this._rotation});
}
}
if (_root.spearfly == true) {
_root.spearT = true;
totalbullet++;
if (totalbullet > 1) {
totalbullet = 0;
}
if (_root.hero._xscale == -100) {
_root.attachMovie("bullet", "bullet" + totalbullet, totalbullet, {_x:_x, _y:_y, _rotation:this._rotation});
} else if (_root.hero._xscale == 100) {
_root.attachMovie("bullet2", "bullet" + totalbullet, totalbullet, {_x:_x, _y:_y, _rotation:this._rotation});
}
}
}
onClipEvent (load) {
totalbullet = 0;
}
Instance of Symbol 1501 MovieClip "steam" in Frame 70
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 1502 MovieClip "blink" in Frame 70
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 616 MovieClip "groundHIT1" in Frame 70
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 616 MovieClip "groundHIT2" in Frame 70
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 1505 MovieClip "swordOrBow" in Frame 70
onClipEvent (enterFrame) {
if (_root.swords == true) {
this.gotoAndStop(1);
}
if (_root.bows == true) {
this.gotoAndStop(2);
}
}
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 1547 MovieClip "menu2" in Frame 70
onClipEvent (enterFrame) {
this.swapDepths((this._y * 100) + this._x);
}
Instance of Symbol 1549 MovieClip "levelEnd" in Frame 70
onClipEvent (enterFrame) {
this.swapDepths((this._y * 1000) + this._x);
}
Frame 71
levelFrame = 72;
gotoAndStop (30);
_x = 0;
_y = 0;
Frame 72
swordE = 12;
bootsE = 40;
pantsE = 38;
weaponDamageE = 60;
bodyE = 15;
helmetE = 19;
shieldE = 1;
shield2E = 10;
shieldhandE = 1;
attackNum = 0;
attackNum2 = 0;
attackNum3 = 0;
attackNum4 = 0;
attackNum5 = 0;
gotArrows = true;
weaponDamage = 1;
HITMinusArmour = 0;
enemyHITPower = 200;
menu2.location.location = "China";
_root.attachMovie("attachBM", "attachBM", 50, {_x:300, _y:200});
removeMovieClip(_root.heroAttach);
enemies = 3;
enemyHP = 30;
blooddummy._x = 0;
blooddummy._y = 0;
dep = 200;
gravity = 0.5;
hero.vx = 0;
hero.vy = 0;
hero.jumpPower = 20;
hero.grounded = false;
ScrollOb = hero;
spearfly = false;
spear = true;
hero.run = 7;
deadEnemyNum = 1000;
num = 0;
while (num <= enemies) {
this["enemy" + num].power = 20;
this["enemy" + num].HP = 60;
groundGNum = 1000;
groundGNum2 = -500;
this["enemy" + num].time = 500;
num++;
}
roundTime = 2300;
sound = true;
sound2 = false;
music3 = true;
music = false;
music2 = false;
music4 = false;
onEnterFrame = function () {
trace(roundTime);
roundTime = roundTime - 1;
if ((roundTime <= 0) and ((!heroDead) == true)) {
hero.HIT.gotoAndStop(2);
levelEnd.play();
removeMovieClip(menu2);
}
if ((!_root.HITMinusArmour) <= 1) {
_root.HITMinusArmour = _root.enemyHITPower - _root.armour;
}
if (_root.HITMinusArmour <= 1) {
_root.HITMinusArmour = 1;
}
trace(_root.HITMinusArmour);
if ((!pause) == true) {
num = 0;
while (num <= enemies) {
if (hero._x >= groundGNum) {
groundGNum = groundGNum + 500;
groundGNum2 = groundGNum2 + 500;
ground._x = ground._x + 500;
} else if (hero._x <= groundGNum2) {
groundGNum2 = groundGNum2 - 500;
groundGNum = groundGNum - 500;
ground._x = ground._x - 500;
}
if (EXP >= 1000) {
levelUP = levelUP + 1;
EXP = 0;
}
deadEnemyNum++;
this["enemy" + num];
if ((this["enemy" + num].AAA.jumpFrame == true) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num].air = true;
this["enemy" + num].gotoAndStop(3);
} else if (((this["enemy" + num].AAA.jumpFrame == false) and ground.hitTest(this["enemy" + num]._x, this["enemy" + num]._y + 5, true)) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num].air = false;
this["enemy" + num].power = 20;
this["enemy" + num].gotoAndStop(1);
}
if ((this["enemy" + num].AAA._currentframe == 52) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num].AAA.gotoAndPlay(random(500) + 1);
}
if (ground.hitTest(this["enemy" + num]._x - 6, this["enemy" + num]._y - 10, true) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num]._x = this["enemy" + num]._x + enemySpeed;
} else if (ground.hitTest(this["enemy" + num]._x + 6, this["enemy" + num]._y - 10, true) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num]._x = this["enemy" + num]._x - enemySpeed;
}
if ((this["enemy" + num]._currentframe == 3) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num].air = true;
this["enemy" + num]._y = this["enemy" + num]._y - this["enemy" + num].power;
if ((!this["enemy" + num].power) <= 0) {
this["enemy" + num].power = this["enemy" + num].power - 0.5;
if (this["enemy" + num]._xscale == 100) {
this["enemy" + num]._x = this["enemy" + num]._x - enemySpeed;
}
if (this["enemy" + num]._xscale == -100) {
this["enemy" + num]._x = this["enemy" + num]._x + enemySpeed;
}
}
if ((this["enemy" + num]._x >= (hero._x + 1)) and (this["enemy" + num]._xscale == -100)) {
this["enemy" + num].jumpy.gotoAndStop(10);
} else if ((this["enemy" + num]._x <= (hero._x - 1)) and (this["enemy" + num]._xscale == 100)) {
this["enemy" + num].jumpy.gotoAndStop(10);
}
}
if ((this["enemy" + num].hitTest(hero) and ((!_root.heroDead) == true)) and (this["enemy" + num].hero2.canAttack == true)) {
this["enemy" + num].hero2.canAttack = false;
this["enemy" + num].hero2.gotoAndPlay(_root.enemyRandomAttack);
}
if (this["enemy" + num].hero2.HIT.hitTest(hero.HIT)) {
this["enemy" + num].hero2.HIT.HITin.gotoAndPlay(2);
blink.play();
}
if (this["enemy" + num].jumpy.jumpHIT.HIT.hitTest(hero.HIT)) {
this["enemy" + num].jumpy.jumpHIT.HIT.HITin.gotoAndPlay(2);
blink.play();
}
if (this["enemy" + num].hero2.HIT2.hitTest(hero.HIT)) {
this["enemy" + num].hero2.HIT2.HITin.gotoAndPlay(2);
if (this["enemy" + num]._xscale == 100) {
hero._x = hero._x - 50;
blink.play();
}
if (this["enemy" + num]._xscale == -100) {
hero._x = hero._x + 50;
blink.play();
}
}
if (((hero._x > this["enemy" + num]._x) and ((!this["enemy" + num].dead) == true)) and ((!this["enemy" + num].air) == true)) {
this["enemy" + num]._xscale = -100;
} else if (((hero._x < this["enemy" + num]._x) and ((!this["enemy" + num].dead) == true)) and ((!this["enemy" + num].air) == true)) {
this["enemy" + num]._xscale = 100;
}
if (((((hero._x > (this["enemy" + num]._x + 70)) and ((!this["enemy" + num].dead) == true)) and this["enemy" + num].hitTest(this["enemy" + num].AAA)) and ((!this["enemy" + num].air) == true)) and ((!this["enemy" + num].hero2.kick) == true)) {
this["enemy" + num].legs.gotoAndStop(4);
this["enemy" + num]._x = this["enemy" + num]._x + enemySpeed;
} else if (((((hero._x < (this["enemy" + num]._x - 70)) and ((!this["enemy" + num].dead) == true)) and this["enemy" + num].hitTest(this["enemy" + num].AAA)) and ((!this["enemy" + num].air) == true)) and ((!this["enemy" + num].hero2.kick) == true)) {
this["enemy" + num]._x = this["enemy" + num]._x - enemySpeed;
this["enemy" + num].legs.gotoAndStop(4);
} else {
this["enemy" + num].legs.gotoAndStop(1);
}
this["enemy" + num]._y = this["enemy" + num]._y + 8;
while (ground.hitTest(this["enemy" + num]._x, this["enemy" + num]._y, true)) {
this["enemy" + num]._y = this["enemy" + num]._y - 1;
}
while (ground.hitTest(hero._root.SpearFall._x, hero._root.SpearFall._y, true)) {
_root.SpearFall._y = _root.SpearFall._y - 1;
}
if (hero.hero2.HIT.hitTest(this["enemy" + num].HIT) and ((!this["enemy" + num].dead) == true)) {
_root.attachMovie("bloodAttach", "bloodAttach", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.hero2.HIT.HITin.gotoAndPlay(2);
this["enemy" + num].HP = this["enemy" + num].HP - weaponDamage;
if (this["enemy" + num].HP <= 0) {
_root.attachMovie("heartAttach", "heartAttach", 38, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y});
gold = gold + (random(50) + 10);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
if ((sword == 5) or (sword == 8)) {
this["enemy" + num].die.gotoAndPlay(80);
} else {
this["enemy" + num].die.gotoAndPlay(1);
}
}
}
if (hero.hero2.HIT2.hitTest(this["enemy" + num].HIT) and ((!this["enemy" + num].dead) == true)) {
_root.attachMovie("bloodAttachKICK", "bloodAttachKICK", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.hero2.HIT2.HITin.gotoAndPlay(2);
this["enemy" + num].HP = this["enemy" + num].HP - (Math.ceil(weaponDamage) * 5);
if (this["enemy" + num].HP <= 0) {
_root.attachMovie("heartAttach", "heartAttach", 38, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y});
gold = gold + (random(50) + 10);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
this["enemy" + num].die.gotoAndPlay(60);
}
}
if (hero.hero2.HIT3.hitTest(this["enemy" + num].HIT) and ((!this["enemy" + num].dead) == true)) {
_root.attachMovie("bloodAttachKICK", "bloodAttachKICK", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.hero2.HIT3.HITin.gotoAndPlay(2);
this["enemy" + num].gotoAndStop(2);
this["enemy" + num].gotKicked.gotoAndPlay(37);
this["enemy" + num].HP = this["enemy" + num].HP - (Math.ceil(weaponDamage) / 3);
if (hero._xscale == 100) {
this["enemy" + num]._x = this["enemy" + num]._x - 60;
}
if (hero._xscale == -100) {
this["enemy" + num]._x = this["enemy" + num]._x + 60;
}
if (this["enemy" + num].HP <= 0) {
_root.attachMovie("heartAttach", "heartAttach", 38, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y});
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
this["enemy" + num].die.gotoAndPlay(60);
}
}
if (hero.jumpy.HIT.hitTest(this["enemy" + num].HIT) and ((!this["enemy" + num].dead) == true)) {
_root.attachMovie("bloodAttachKICK", "bloodAttachKICK", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.jumpy.HIT.HITin.gotoAndStop(2);
this["enemy" + num].HP = this["enemy" + num].HP - (weaponDamage * 3);
if (this["enemy" + num].HP <= 0) {
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
this["enemy" + num].die.gotoAndPlay(100);
}
}
if (hero.sit.HIT.hitTest(this["enemy" + num].legs) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num].gotoAndStop(2);
_root.attachMovie("bloodAttachKICK", "bloodAttachKICK", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.sit.HIT.HITin.gotoAndStop(2);
this["enemy" + num].HP = this["enemy" + num].HP - (Math.ceil(weaponDamage) / 3);
if (hero._xscale == 100) {
this["enemy" + num]._x = this["enemy" + num]._x - 50;
}
if (hero._xscale == -100) {
this["enemy" + num]._x = this["enemy" + num]._x + 50;
}
if (this["enemy" + num].HP <= 0) {
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
this["enemy" + num].die.gotoAndPlay(1);
}
}
if (hero.sit.HIT2.hitTest(this["enemy" + num].HIT) and ((!this["enemy" + num].dead) == true)) {
_root.attachMovie("bloodAttach", "bloodAttach", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.sit.HIT2.HITin.gotoAndStop(2);
this["enemy" + num].HP = this["enemy" + num].HP - (weaponDamage * 2);
if (this["enemy" + num].HP <= 0) {
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
this["enemy" + num].die.gotoAndPlay(80);
}
}
if (this["enemy" + num].hitTest(_root.bullet0) and ((!this["enemy" + num].dead) == true)) {
removeMovieClip(_root.bullet0);
this["enemy" + num].gotoAndStop(4);
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
_root.attachMovie("bloodAttach", "bloodAttach", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
_root.attachMovie("deadEnemy", "deadEnemy", deadEnemyNum, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
if (spearcankill == true) {
this["enemy" + num].die.gotoAndPlay(20);
}
if (spearcankill == false) {
this["enemy" + num].die.gotoAndPlay(40);
}
this["enemy" + num].dead = true;
}
if (this["enemy" + num].HIT.hitTest(_root.bullet1) and ((!this["enemy" + num].dead) == true)) {
removeMovieClip(_root.bullet1);
this["enemy" + num].gotoAndStop(4);
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
_root.attachMovie("bloodAttach", "bloodAttach", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
_root.attachMovie("deadEnemy", "deadEnemy", deadEnemyNum, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
if (spearcankill == true) {
this["enemy" + num].die.gotoAndPlay(20);
}
if (spearcankill == false) {
this["enemy" + num].die.gotoAndPlay(40);
}
this["enemy" + num].dead = true;
}
if ((((hero.hero2.HIT.hitTest(this["enemy" + num].hero2) or hero.hero2.HIT2.hitTest(this["enemy" + num].hero2)) or hero.hero2.HIT3.hitTest(this["enemy" + num].hero2)) or hero.jumpy.HIT.hitTest(this["enemy" + num].hero2)) or (((hero.sit.HIT2.hitTest(this["enemy" + num].hero2) and (this["enemy" + num].HIT._currentframe > 1)) and (_root.blink._currentframe == 1)) and ((!shieldDead) == true))) {
_root.attachMovie("bloodAttach0Defence", "bloodAttach0Defence", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.hero2.HIT.HITin.gotoAndPlay(2);
hero.hero2.HIT2.HITin.gotoAndPlay(2);
hero.hero2.HIT3.HITin.gotoAndPlay(2);
hero.jumpy.HIT.HITin.gotoAndPlay(2);
if (this["enemy" + num]._xscale == 100) {
this["enemy" + num]._x = this["enemy" + num]._x + 30;
}
if (this["enemy" + num]._xscale == -100) {
this["enemy" + num]._x = this["enemy" + num]._x - 30;
}
}
shieldDead == false;
if ((((((_root.hero.HIT._currentframe == 2) and (_root.blink._currentframe == 1)) and ((!shieldDead) == true)) and this["enemy" + num].hero2.HIT.hitTest(hero)) or this["enemy" + num].hero2.HIT2.hitTest(hero)) or this["enemy" + num].jumpy.jumpHIT.HIT.hitTest(hero)) {
_root.attachMovie("bloodAttach0Defence2", "bloodAttach0Defence2", 50, {_x:hero._x, _y:hero._y - 50});
this["enemy" + num].hero2.HIT.HITin.gotoAndPlay(2);
this["enemy" + num].hero2.HIT2.HITin.gotoAndPlay(2);
this["enemy" + num].jumpy.jumpHIT.HIT.HITin.gotoAndPlay(2);
if (this["enemy" + num]._xscale == -100) {
hero._x = hero._x + 30;
}
if (this["enemy" + num]._xscale == 100) {
hero._x = hero._x - 30;
}
}
if ((this["enemy" + num].live == true) and (this["enemy" + num].dead == true)) {
this["enemy" + num].gotoAndStop(7);
this["enemy" + num].time = this["enemy" + num].time - 1;
if (this["enemy" + num].time <= 0) {
this["enemy" + num].time = random(20) + 20;
this["enemy" + num].HP = _root.enemyHP;
this["enemy" + num].gotoAndStop(1);
this["enemy" + num].live = false;
this["enemy" + num].dead = false;
this["enemy" + num]._x = menu._x - livePosition;
this["enemy" + num]._y = hero._y;
}
}
if (this["enemy" + num]._x <= (menu._x - 660)) {
this["enemy" + num]._y = hero._y;
this["enemy" + num]._x = menu._x - livePosition;
} else if (this["enemy" + num]._x >= (menu._x + 660)) {
this["enemy" + num]._y = hero._y;
this["enemy" + num]._x = menu._x - livePosition;
}
if (this["enemy" + num].die.spearReSpawn == true) {
this["enemy" + num].die.spearReSpawn = false;
_root.attachMovie("SpearFall", "SpearFall", 100, {_x:this["enemy" + num]._x - 50, _y:this["enemy" + num]._y});
}
if (_root.groundHIT1.hitTest(_root.bullet0) and (_root.spearcankill == true)) {
_root.attachMovie("SpearFall", "SpearFall", 100, {_x:_root.bullet0._x, _y:_root.bullet0._y - 8});
removeMovieClip(_root.bullet0);
}
if (_root.groundHIT1.hitTest(_root.bullet1) and (_root.spearcankill == true)) {
_root.attachMovie("SpearFall", "SpearFall", 100, {_x:_root.bullet1._x, _y:_root.bullet1._y - 8});
removeMovieClip(_root.bullet1);
}
if (_root.groundHIT2.hitTest(_root.bullet0) and (_root.spearcankill == true)) {
_root.attachMovie("SpearFall", "SpearFall", 100, {_x:_root.bullet0._x, _y:_root.bullet0._y - 8});
removeMovieClip(_root.bullet0);
}
if (_root.groundHIT2.hitTest(_root.bullet1) and (_root.spearcankill == true)) {
_root.attachMovie("SpearFall", "SpearFall", 100, {_x:_root.bullet1._x, _y:_root.bullet1._y - 8});
removeMovieClip(_root.bullet1);
}
num++;
}
_x = (_x - Math.round((_x - (300 - ScrollOb._x)) / 10));
_y = (_y - Math.round((_y - (300 - ScrollOb._y)) / 10));
ScrollOb = hero;
menu._x = (-_x) + 300;
menu._y = (-_y) + 200;
wind._x = (-_x) + 300;
wind._y = (-_y) + 200;
snow._x = (-_x) + 43.4;
snow._y = (-_y) - 15.2;
menu2._x = (-_x) + 300;
menu2._y = (-_y) + 200;
maskRoot._x = (-_x) + 300;
maskRoot._y = (-_y) + 200;
bambook._x = (-_x) + 300;
groundHIT1._x = (-_x) + 1200;
groundHIT2._x = (-_x) - 600;
levelEnd._x = (-_x) + 300;
levelEnd._y = (-_y) + 200;
attachBM._x = (-_x) + 300;
attachBM._y = (-_y) + 200;
hero.gotoAndStop(frame);
jump = Key.isDown(38);
hero.vy = hero.vy + gravity;
hero._x = hero._x + hero.vx;
hero._y = hero._y + hero.vy;
if ((!pause) == true) {
if (jump) {
jumpnum = jumpnum - 1;
if (hero.grounded) {
hero.vy = -hero.jumpPower;
frame = "jump";
}
}
}
if (left) {
hero.vx = hero.vx - hero.spd;
hero._xscale = -100;
frame = "run";
} else if (right) {
hero.vx = hero.vx + hero.spd;
hero._xscale = 100;
frame = "run";
} else if (hero.grounded) {
hero.vx = hero.vx * 0.9;
frame = "stand";
} else {
frame = "jump";
}
if ((!pause) == true) {
if (Math.abs(hero.vx) > hero.maxSpd) {
hero.vx = hero.vx * 0.9;
}
}
hero.grounded = false;
if (ground.hitTest(hero._x, hero._y, true)) {
hero.vy = -Math.abs(hero.vy * 0.4);
hero.grounded = true;
frame = "stand";
while (ground.hitTest(hero._x, hero._y, true)) {
hero._y = hero._y - 0.2;
}
}
if (ground.hitTest(hero._x - (hero._width / 2), hero._y - (hero._height / 2), true)) {
hero.vx = Math.abs(hero.vx * 0.4);
while (ground.hitTest(hero._x - (hero._width / 2), hero._y - (hero._height / 2), true)) {
hero._x = hero._x + 0.2;
}
} else if (ground.hitTest(hero._x + (hero._width / 2), hero._y - (hero._height / 2), true)) {
hero.vx = -Math.abs(hero.vx * 0.4);
while (ground.hitTest(hero._x + (hero._width / 2), hero._y - (hero._height / 2), true)) {
hero._x = hero._x - 0.2;
}
}
}
};
stop();
Instance of Symbol 1481 MovieClip "menu" in Frame 72
onClipEvent (load) {
this.gotoAndStop(15);
}
Instance of Symbol 1569 MovieClip in Frame 72
onClipEvent (enterFrame) {
if (_root.groundHIT2.hitTest(this.HIT)) {
this._x = _root.groundHIT1._x - (random(100) + 10);
this.gotoAndStop(random(4) + 1);
} else if (_root.groundHIT1.hitTest(this.HIT)) {
this._x = _root.groundHIT2._x + (random(100) + 10);
this.gotoAndStop(random(3) + 1);
}
}
Instance of Symbol 1491 MovieClip "ground" in Frame 72
onClipEvent (load) {
this.gotoAndStop(3);
}
Instance of Symbol 1494 MovieClip in Frame 72
onClipEvent (enterFrame) {
if (_root.groundHIT2.hitTest(this.HIT)) {
this._x = _root.groundHIT1._x - 200;
this.gotoAndStop(random(2) + 1);
} else if (_root.groundHIT1.hitTest(this.HIT)) {
this._x = _root.groundHIT2._x + 200;
this.gotoAndStop(random(2) + 1);
}
trace(this._x);
}
Instance of Symbol 1500 MovieClip "hero" in Frame 72
onClipEvent (enterFrame) {
if (((Key.isDown(40) and Key.isDown(37)) and Key.isDown(39)) and ((!_root.heroDead) == true)) {
this._x = this._x - run;
}
if (_root.heroDead == true) {
this.state = 4;
}
if ((Key.isDown(40) and ((!air) == true)) and ((!_root.heroDead) == true)) {
if (this._xscale == 100) {
this._x = this._x - run3;
if ((!run3) <= 0) {
run3--;
}
}
if (this._xscale == -100) {
this._x = this._x + run3;
if ((!run3) <= 0) {
run3--;
}
}
state = 5;
if (Key.isDown(37) and ((!_root.heroDead) == true)) {
_x = (_x + run);
}
if (Key.isDown(39) and ((!_root.heroDead) == true)) {
_x = (_x - run);
}
}
if (((state == 5) and (_root.spearflyCheker == true)) and ((!_root.heroDead) == true)) {
_root.spearflyCheker = false;
_root.spearfly = false;
_root.sword = 11;
}
if (((state == 5) and (_root.arrowflyCheker == true)) and ((!_root.heroDead) == true)) {
_root.arrowflyCheker = false;
_root.arrowfly = false;
}
if (((Key.isDown(38) and (_root.jump2 == true)) and ((!spearfly) == true)) and ((!_root.heroDead) == true)) {
_root.hero.vy = -_root.hero.jumpPower;
_root.jumpnum = 100;
}
if (((air == true) and (_root.spearflyCheker == true)) and ((!_root.heroDead) == true)) {
_root.spearflyCheker = false;
_root.spearfly = false;
_root.sword = 11;
}
if (((air == true) and (_root.arrowflyCheker == true)) and ((!_root.heroDead) == true)) {
_root.arrowflyCheker = false;
_root.arrowfly = false;
}
if (((!Key.isDown(38)) and (_root.jumpnum <= 2)) and ((!_root.heroDead) == true)) {
_root.jump2 = true;
} else {
_root.jump2 = false;
}
if ((!Key.isDown(40)) and ((!_root.heroDead) == true)) {
run3 = run;
}
if (Key.isDown(37) and ((!_root.heroDead) == true)) {
run2 = run;
_x = (_x - run);
this._xscale = 100;
this.legs.play();
}
if (((!(Key.isDown(37) or Key.isDown(39))) and (!Key.isDown(40))) and ((!_root.heroDead) == true)) {
this.legs.gotoAndStop(1);
if (this._xscale == 100) {
this._x = this._x - run2;
if ((!run2) <= 0) {
run2--;
}
}
if (this._xscale == -100) {
this._x = this._x + run2;
if ((!run2) <= 0) {
run2--;
}
}
}
if ((Key.isDown(37) && (Key.isDown(39))) and ((!_root.heroDead) == true)) {
this._x = this._x + run;
this._xscale = -100;
this.legs.play();
}
if (((air == true) && (Key.isDown(37))) and ((!_root.heroDead) == true)) {
state = 3;
}
if (Key.isDown(39) and ((!_root.heroDead) == true)) {
run2 = run;
_x = (_x + run);
this._xscale = -100;
this.legs.play();
}
if (((air == true) && (Key.isDown(39))) and ((!_root.heroDead) == true)) {
state = 3;
}
gotoAndStop(state);
if ((Key.isDown(65) && (air == true)) and ((!_root.heroDead) == true)) {
_root.hero.jumping.gotoAndPlay(6);
}
if (((Key.isDown(65) and (Key.isDown(37) or Key.isDown(39))) and ((!air) == true)) and ((!_root.heroDead) == true)) {
_root.standAttack = false;
_root.runAttack = true;
}
this._y = this._y + 8;
_y = (_y + gravity);
if (air == true) {
state = 3;
}
if (_root.ground.hitTest(_x, _y, true)) {
air = false;
_root.jumpnum = 2;
} else {
air = true;
state = 3;
}
if (air == false) {
state = 1;
}
if ((_root.arrowfly == true) and ((!_root.gotArrows) == false)) {
_root.menu2.arrows.gotoAndStop(_root.menu2.arrows._currentframe + 1);
_root.spearT = false;
totalbullet++;
if (totalbullet > 1) {
totalbullet = 0;
}
if (_root.hero._xscale == -100) {
_root.attachMovie("bullet", "bullet" + totalbullet, totalbullet, {_x:_x, _y:_y, _rotation:this._rotation});
} else if (_root.hero._xscale == 100) {
_root.attachMovie("bullet2", "bullet" + totalbullet, totalbullet, {_x:_x, _y:_y, _rotation:this._rotation});
}
}
if (_root.spearfly == true) {
_root.spearT = true;
totalbullet++;
if (totalbullet > 1) {
totalbullet = 0;
}
if (_root.hero._xscale == -100) {
_root.attachMovie("bullet", "bullet" + totalbullet, totalbullet, {_x:_x, _y:_y, _rotation:this._rotation});
} else if (_root.hero._xscale == 100) {
_root.attachMovie("bullet2", "bullet" + totalbullet, totalbullet, {_x:_x, _y:_y, _rotation:this._rotation});
}
}
}
onClipEvent (load) {
totalbullet = 0;
}
Instance of Symbol 1501 MovieClip "steam" in Frame 72
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 1502 MovieClip "blink" in Frame 72
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 616 MovieClip "groundHIT1" in Frame 72
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 616 MovieClip "groundHIT2" in Frame 72
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 1571 MovieClip "swordOrBow" in Frame 72
onClipEvent (enterFrame) {
if (_root.swords == true) {
this.gotoAndStop(1);
}
if (_root.bows == true) {
this.gotoAndStop(2);
}
}
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 1547 MovieClip "menu2" in Frame 72
onClipEvent (enterFrame) {
this.swapDepths((this._y * 100) + this._x);
}
Instance of Symbol 1549 MovieClip "levelEnd" in Frame 72
onClipEvent (enterFrame) {
this.swapDepths((this._y * 1000) + this._x);
}
Frame 73
levelFrame = 74;
gotoAndStop (30);
_x = 0;
_y = 0;
Frame 74
swordE = 12;
bootsE = 40;
pantsE = 39;
weaponDamageE = 60;
bodyE = 16;
helmetE = 18;
shieldE = 1;
shield2E = 11;
shieldhandE = 14;
attackNum = 0;
attackNum2 = 0;
attackNum3 = 0;
attackNum4 = 0;
attackNum5 = 0;
gotArrows = true;
weaponDamage = 1;
HITMinusArmour = 0;
enemyHITPower = 230;
menu2.location.location = "China 2";
_root.attachMovie("attachBM", "attachBM", 50, {_x:300, _y:200});
removeMovieClip(_root.heroAttach);
enemies = 3;
enemyHP = 60;
blooddummy._x = 0;
blooddummy._y = 0;
dep = 200;
gravity = 0.5;
hero.vx = 0;
hero.vy = 0;
hero.jumpPower = 20;
hero.grounded = false;
ScrollOb = hero;
spearfly = false;
spear = true;
hero.run = 7;
deadEnemyNum = 1000;
num = 0;
while (num <= enemies) {
this["enemy" + num].power = 20;
this["enemy" + num].HP = 60;
groundGNum = 1000;
groundGNum2 = -500;
this["enemy" + num].time = 500;
num++;
}
roundTime = 2300;
sound = true;
sound2 = false;
music3 = true;
music = false;
music2 = false;
music4 = false;
onEnterFrame = function () {
trace(roundTime);
roundTime = roundTime - 1;
if ((roundTime <= 0) and ((!heroDead) == true)) {
hero.HIT.gotoAndStop(2);
levelEnd.play();
removeMovieClip(menu2);
}
if ((!_root.HITMinusArmour) <= 1) {
_root.HITMinusArmour = _root.enemyHITPower - _root.armour;
}
if (_root.HITMinusArmour <= 1) {
_root.HITMinusArmour = 1;
}
trace(_root.HITMinusArmour);
if ((!pause) == true) {
num = 0;
while (num <= enemies) {
if (hero._x >= groundGNum) {
groundGNum = groundGNum + 500;
groundGNum2 = groundGNum2 + 500;
ground._x = ground._x + 500;
} else if (hero._x <= groundGNum2) {
groundGNum2 = groundGNum2 - 500;
groundGNum = groundGNum - 500;
ground._x = ground._x - 500;
}
if (EXP >= 1000) {
levelUP = levelUP + 1;
EXP = 0;
}
deadEnemyNum++;
this["enemy" + num];
if ((this["enemy" + num].AAA.jumpFrame == true) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num].air = true;
this["enemy" + num].gotoAndStop(3);
} else if (((this["enemy" + num].AAA.jumpFrame == false) and ground.hitTest(this["enemy" + num]._x, this["enemy" + num]._y + 5, true)) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num].air = false;
this["enemy" + num].power = 20;
this["enemy" + num].gotoAndStop(1);
}
if ((this["enemy" + num].AAA._currentframe == 52) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num].AAA.gotoAndPlay(random(500) + 1);
}
if (ground.hitTest(this["enemy" + num]._x - 6, this["enemy" + num]._y - 10, true) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num]._x = this["enemy" + num]._x + enemySpeed;
} else if (ground.hitTest(this["enemy" + num]._x + 6, this["enemy" + num]._y - 10, true) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num]._x = this["enemy" + num]._x - enemySpeed;
}
if ((this["enemy" + num]._currentframe == 3) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num].air = true;
this["enemy" + num]._y = this["enemy" + num]._y - this["enemy" + num].power;
if ((!this["enemy" + num].power) <= 0) {
this["enemy" + num].power = this["enemy" + num].power - 0.5;
if (this["enemy" + num]._xscale == 100) {
this["enemy" + num]._x = this["enemy" + num]._x - enemySpeed;
}
if (this["enemy" + num]._xscale == -100) {
this["enemy" + num]._x = this["enemy" + num]._x + enemySpeed;
}
}
if ((this["enemy" + num]._x >= (hero._x + 1)) and (this["enemy" + num]._xscale == -100)) {
this["enemy" + num].jumpy.gotoAndStop(10);
} else if ((this["enemy" + num]._x <= (hero._x - 1)) and (this["enemy" + num]._xscale == 100)) {
this["enemy" + num].jumpy.gotoAndStop(10);
}
}
if ((this["enemy" + num].hitTest(hero) and ((!_root.heroDead) == true)) and (this["enemy" + num].hero2.canAttack == true)) {
this["enemy" + num].hero2.canAttack = false;
this["enemy" + num].hero2.gotoAndPlay(_root.enemyRandomAttack);
}
if (this["enemy" + num].hero2.HIT.hitTest(hero.HIT)) {
this["enemy" + num].hero2.HIT.HITin.gotoAndPlay(2);
blink.play();
}
if (this["enemy" + num].jumpy.jumpHIT.HIT.hitTest(hero.HIT)) {
this["enemy" + num].jumpy.jumpHIT.HIT.HITin.gotoAndPlay(2);
blink.play();
}
if (this["enemy" + num].hero2.HIT2.hitTest(hero.HIT)) {
this["enemy" + num].hero2.HIT2.HITin.gotoAndPlay(2);
if (this["enemy" + num]._xscale == 100) {
hero._x = hero._x - 50;
blink.play();
}
if (this["enemy" + num]._xscale == -100) {
hero._x = hero._x + 50;
blink.play();
}
}
if (((hero._x > this["enemy" + num]._x) and ((!this["enemy" + num].dead) == true)) and ((!this["enemy" + num].air) == true)) {
this["enemy" + num]._xscale = -100;
} else if (((hero._x < this["enemy" + num]._x) and ((!this["enemy" + num].dead) == true)) and ((!this["enemy" + num].air) == true)) {
this["enemy" + num]._xscale = 100;
}
if (((((hero._x > (this["enemy" + num]._x + 70)) and ((!this["enemy" + num].dead) == true)) and this["enemy" + num].hitTest(this["enemy" + num].AAA)) and ((!this["enemy" + num].air) == true)) and ((!this["enemy" + num].hero2.kick) == true)) {
this["enemy" + num].legs.gotoAndStop(4);
this["enemy" + num]._x = this["enemy" + num]._x + enemySpeed;
} else if (((((hero._x < (this["enemy" + num]._x - 70)) and ((!this["enemy" + num].dead) == true)) and this["enemy" + num].hitTest(this["enemy" + num].AAA)) and ((!this["enemy" + num].air) == true)) and ((!this["enemy" + num].hero2.kick) == true)) {
this["enemy" + num]._x = this["enemy" + num]._x - enemySpeed;
this["enemy" + num].legs.gotoAndStop(4);
} else {
this["enemy" + num].legs.gotoAndStop(1);
}
this["enemy" + num]._y = this["enemy" + num]._y + 8;
while (ground.hitTest(this["enemy" + num]._x, this["enemy" + num]._y, true)) {
this["enemy" + num]._y = this["enemy" + num]._y - 1;
}
while (ground.hitTest(hero._root.SpearFall._x, hero._root.SpearFall._y, true)) {
_root.SpearFall._y = _root.SpearFall._y - 1;
}
if (hero.hero2.HIT.hitTest(this["enemy" + num].HIT) and ((!this["enemy" + num].dead) == true)) {
_root.attachMovie("bloodAttach", "bloodAttach", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.hero2.HIT.HITin.gotoAndPlay(2);
this["enemy" + num].HP = this["enemy" + num].HP - weaponDamage;
if (this["enemy" + num].HP <= 0) {
_root.attachMovie("heartAttach", "heartAttach", 38, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y});
gold = gold + (random(50) + 10);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
if ((sword == 5) or (sword == 8)) {
this["enemy" + num].die.gotoAndPlay(80);
} else {
this["enemy" + num].die.gotoAndPlay(1);
}
}
}
if (hero.hero2.HIT2.hitTest(this["enemy" + num].HIT) and ((!this["enemy" + num].dead) == true)) {
_root.attachMovie("bloodAttachKICK", "bloodAttachKICK", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.hero2.HIT2.HITin.gotoAndPlay(2);
this["enemy" + num].HP = this["enemy" + num].HP - (Math.ceil(weaponDamage) * 5);
if (this["enemy" + num].HP <= 0) {
_root.attachMovie("heartAttach", "heartAttach", 38, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y});
gold = gold + (random(50) + 10);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
this["enemy" + num].die.gotoAndPlay(60);
}
}
if (hero.hero2.HIT3.hitTest(this["enemy" + num].HIT) and ((!this["enemy" + num].dead) == true)) {
_root.attachMovie("bloodAttachKICK", "bloodAttachKICK", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.hero2.HIT3.HITin.gotoAndPlay(2);
this["enemy" + num].gotoAndStop(2);
this["enemy" + num].gotKicked.gotoAndPlay(37);
this["enemy" + num].HP = this["enemy" + num].HP - (Math.ceil(weaponDamage) / 3);
if (hero._xscale == 100) {
this["enemy" + num]._x = this["enemy" + num]._x - 60;
}
if (hero._xscale == -100) {
this["enemy" + num]._x = this["enemy" + num]._x + 60;
}
if (this["enemy" + num].HP <= 0) {
_root.attachMovie("heartAttach", "heartAttach", 38, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y});
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
this["enemy" + num].die.gotoAndPlay(60);
}
}
if (hero.jumpy.HIT.hitTest(this["enemy" + num].HIT) and ((!this["enemy" + num].dead) == true)) {
_root.attachMovie("bloodAttachKICK", "bloodAttachKICK", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.jumpy.HIT.HITin.gotoAndStop(2);
this["enemy" + num].HP = this["enemy" + num].HP - (weaponDamage * 3);
if (this["enemy" + num].HP <= 0) {
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
this["enemy" + num].die.gotoAndPlay(100);
}
}
if (hero.sit.HIT.hitTest(this["enemy" + num].legs) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num].gotoAndStop(2);
_root.attachMovie("bloodAttachKICK", "bloodAttachKICK", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.sit.HIT.HITin.gotoAndStop(2);
this["enemy" + num].HP = this["enemy" + num].HP - (Math.ceil(weaponDamage) / 3);
if (hero._xscale == 100) {
this["enemy" + num]._x = this["enemy" + num]._x - 50;
}
if (hero._xscale == -100) {
this["enemy" + num]._x = this["enemy" + num]._x + 50;
}
if (this["enemy" + num].HP <= 0) {
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
this["enemy" + num].die.gotoAndPlay(1);
}
}
if (hero.sit.HIT2.hitTest(this["enemy" + num].HIT) and ((!this["enemy" + num].dead) == true)) {
_root.attachMovie("bloodAttach", "bloodAttach", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.sit.HIT2.HITin.gotoAndStop(2);
this["enemy" + num].HP = this["enemy" + num].HP - (weaponDamage * 2);
if (this["enemy" + num].HP <= 0) {
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
this["enemy" + num].die.gotoAndPlay(80);
}
}
if (this["enemy" + num].hitTest(_root.bullet0) and ((!this["enemy" + num].dead) == true)) {
removeMovieClip(_root.bullet0);
this["enemy" + num].gotoAndStop(4);
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
_root.attachMovie("bloodAttach", "bloodAttach", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
_root.attachMovie("deadEnemy", "deadEnemy", deadEnemyNum, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
if (spearcankill == true) {
this["enemy" + num].die.gotoAndPlay(20);
}
if (spearcankill == false) {
this["enemy" + num].die.gotoAndPlay(40);
}
this["enemy" + num].dead = true;
}
if (this["enemy" + num].HIT.hitTest(_root.bullet1) and ((!this["enemy" + num].dead) == true)) {
removeMovieClip(_root.bullet1);
this["enemy" + num].gotoAndStop(4);
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
_root.attachMovie("bloodAttach", "bloodAttach", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
_root.attachMovie("deadEnemy", "deadEnemy", deadEnemyNum, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
if (spearcankill == true) {
this["enemy" + num].die.gotoAndPlay(20);
}
if (spearcankill == false) {
this["enemy" + num].die.gotoAndPlay(40);
}
this["enemy" + num].dead = true;
}
if ((((hero.hero2.HIT.hitTest(this["enemy" + num].hero2) or hero.hero2.HIT2.hitTest(this["enemy" + num].hero2)) or hero.hero2.HIT3.hitTest(this["enemy" + num].hero2)) or hero.jumpy.HIT.hitTest(this["enemy" + num].hero2)) or (((hero.sit.HIT2.hitTest(this["enemy" + num].hero2) and (this["enemy" + num].HIT._currentframe > 1)) and (_root.blink._currentframe == 1)) and ((!shieldDead) == true))) {
_root.attachMovie("bloodAttach0Defence", "bloodAttach0Defence", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.hero2.HIT.HITin.gotoAndPlay(2);
hero.hero2.HIT2.HITin.gotoAndPlay(2);
hero.hero2.HIT3.HITin.gotoAndPlay(2);
hero.jumpy.HIT.HITin.gotoAndPlay(2);
if (this["enemy" + num]._xscale == 100) {
this["enemy" + num]._x = this["enemy" + num]._x + 30;
}
if (this["enemy" + num]._xscale == -100) {
this["enemy" + num]._x = this["enemy" + num]._x - 30;
}
}
shieldDead == false;
if ((((((_root.hero.HIT._currentframe == 2) and (_root.blink._currentframe == 1)) and ((!shieldDead) == true)) and this["enemy" + num].hero2.HIT.hitTest(hero)) or this["enemy" + num].hero2.HIT2.hitTest(hero)) or this["enemy" + num].jumpy.jumpHIT.HIT.hitTest(hero)) {
_root.attachMovie("bloodAttach0Defence2", "bloodAttach0Defence2", 50, {_x:hero._x, _y:hero._y - 50});
this["enemy" + num].hero2.HIT.HITin.gotoAndPlay(2);
this["enemy" + num].hero2.HIT2.HITin.gotoAndPlay(2);
this["enemy" + num].jumpy.jumpHIT.HIT.HITin.gotoAndPlay(2);
if (this["enemy" + num]._xscale == -100) {
hero._x = hero._x + 30;
}
if (this["enemy" + num]._xscale == 100) {
hero._x = hero._x - 30;
}
}
if ((this["enemy" + num].live == true) and (this["enemy" + num].dead == true)) {
this["enemy" + num].gotoAndStop(7);
this["enemy" + num].time = this["enemy" + num].time - 1;
if (this["enemy" + num].time <= 0) {
this["enemy" + num].time = random(400) + 20;
this["enemy" + num].HP = _root.enemyHP;
this["enemy" + num].gotoAndStop(1);
this["enemy" + num].live = false;
this["enemy" + num].dead = false;
this["enemy" + num]._x = menu._x - livePosition;
this["enemy" + num]._y = hero._y;
}
}
if (this["enemy" + num]._x <= (menu._x - 660)) {
this["enemy" + num]._y = hero._y;
this["enemy" + num]._x = menu._x - livePosition;
} else if (this["enemy" + num]._x >= (menu._x + 660)) {
this["enemy" + num]._y = hero._y;
this["enemy" + num]._x = menu._x - livePosition;
}
if (this["enemy" + num].die.spearReSpawn == true) {
this["enemy" + num].die.spearReSpawn = false;
_root.attachMovie("SpearFall", "SpearFall", 100, {_x:this["enemy" + num]._x - 50, _y:this["enemy" + num]._y});
}
if (_root.groundHIT1.hitTest(_root.bullet0) and (_root.spearcankill == true)) {
_root.attachMovie("SpearFall", "SpearFall", 100, {_x:_root.bullet0._x, _y:_root.bullet0._y - 8});
removeMovieClip(_root.bullet0);
}
if (_root.groundHIT1.hitTest(_root.bullet1) and (_root.spearcankill == true)) {
_root.attachMovie("SpearFall", "SpearFall", 100, {_x:_root.bullet1._x, _y:_root.bullet1._y - 8});
removeMovieClip(_root.bullet1);
}
if (_root.groundHIT2.hitTest(_root.bullet0) and (_root.spearcankill == true)) {
_root.attachMovie("SpearFall", "SpearFall", 100, {_x:_root.bullet0._x, _y:_root.bullet0._y - 8});
removeMovieClip(_root.bullet0);
}
if (_root.groundHIT2.hitTest(_root.bullet1) and (_root.spearcankill == true)) {
_root.attachMovie("SpearFall", "SpearFall", 100, {_x:_root.bullet1._x, _y:_root.bullet1._y - 8});
removeMovieClip(_root.bullet1);
}
num++;
}
_x = (_x - Math.round((_x - (300 - ScrollOb._x)) / 10));
_y = (_y - Math.round((_y - (300 - ScrollOb._y)) / 10));
ScrollOb = hero;
menu._x = (-_x) + 300;
menu._y = (-_y) + 200;
wind._x = (-_x) + 300;
wind._y = (-_y) + 200;
snow._x = (-_x) + 43.4;
snow._y = (-_y) - 15.2;
menu2._x = (-_x) + 300;
menu2._y = (-_y) + 200;
maskRoot._x = (-_x) + 300;
maskRoot._y = (-_y) + 200;
bambook._x = (-_x) + 300;
groundHIT1._x = (-_x) + 1200;
groundHIT2._x = (-_x) - 600;
levelEnd._x = (-_x) + 300;
levelEnd._y = (-_y) + 200;
attachBM._x = (-_x) + 300;
attachBM._y = (-_y) + 200;
hero.gotoAndStop(frame);
jump = Key.isDown(38);
hero.vy = hero.vy + gravity;
hero._x = hero._x + hero.vx;
hero._y = hero._y + hero.vy;
if ((!pause) == true) {
if (jump) {
jumpnum = jumpnum - 1;
if (hero.grounded) {
hero.vy = -hero.jumpPower;
frame = "jump";
}
}
}
if (left) {
hero.vx = hero.vx - hero.spd;
hero._xscale = -100;
frame = "run";
} else if (right) {
hero.vx = hero.vx + hero.spd;
hero._xscale = 100;
frame = "run";
} else if (hero.grounded) {
hero.vx = hero.vx * 0.9;
frame = "stand";
} else {
frame = "jump";
}
if ((!pause) == true) {
if (Math.abs(hero.vx) > hero.maxSpd) {
hero.vx = hero.vx * 0.9;
}
}
hero.grounded = false;
if (ground.hitTest(hero._x, hero._y, true)) {
hero.vy = -Math.abs(hero.vy * 0.4);
hero.grounded = true;
frame = "stand";
while (ground.hitTest(hero._x, hero._y, true)) {
hero._y = hero._y - 0.2;
}
}
if (ground.hitTest(hero._x - (hero._width / 2), hero._y - (hero._height / 2), true)) {
hero.vx = Math.abs(hero.vx * 0.4);
while (ground.hitTest(hero._x - (hero._width / 2), hero._y - (hero._height / 2), true)) {
hero._x = hero._x + 0.2;
}
} else if (ground.hitTest(hero._x + (hero._width / 2), hero._y - (hero._height / 2), true)) {
hero.vx = -Math.abs(hero.vx * 0.4);
while (ground.hitTest(hero._x + (hero._width / 2), hero._y - (hero._height / 2), true)) {
hero._x = hero._x - 0.2;
}
}
}
};
stop();
Instance of Symbol 1481 MovieClip "menu" in Frame 74
onClipEvent (load) {
this.gotoAndStop(15);
}
Instance of Symbol 1569 MovieClip in Frame 74
onClipEvent (enterFrame) {
if (_root.groundHIT2.hitTest(this.HIT)) {
this._x = _root.groundHIT1._x - (random(100) + 10);
this.gotoAndStop(random(4) + 1);
} else if (_root.groundHIT1.hitTest(this.HIT)) {
this._x = _root.groundHIT2._x + (random(100) + 10);
this.gotoAndStop(random(3) + 1);
}
}
Instance of Symbol 1491 MovieClip "ground" in Frame 74
onClipEvent (load) {
this.gotoAndStop(1);
}
Instance of Symbol 1494 MovieClip in Frame 74
onClipEvent (enterFrame) {
if (_root.groundHIT2.hitTest(this.HIT)) {
this._x = _root.groundHIT1._x - 200;
this.gotoAndStop(random(2) + 1);
} else if (_root.groundHIT1.hitTest(this.HIT)) {
this._x = _root.groundHIT2._x + 200;
this.gotoAndStop(random(2) + 1);
}
trace(this._x);
}
Instance of Symbol 1500 MovieClip "hero" in Frame 74
onClipEvent (enterFrame) {
if (((Key.isDown(40) and Key.isDown(37)) and Key.isDown(39)) and ((!_root.heroDead) == true)) {
this._x = this._x - run;
}
if (_root.heroDead == true) {
this.state = 4;
}
if ((Key.isDown(40) and ((!air) == true)) and ((!_root.heroDead) == true)) {
if (this._xscale == 100) {
this._x = this._x - run3;
if ((!run3) <= 0) {
run3--;
}
}
if (this._xscale == -100) {
this._x = this._x + run3;
if ((!run3) <= 0) {
run3--;
}
}
state = 5;
if (Key.isDown(37) and ((!_root.heroDead) == true)) {
_x = (_x + run);
}
if (Key.isDown(39) and ((!_root.heroDead) == true)) {
_x = (_x - run);
}
}
if (((state == 5) and (_root.spearflyCheker == true)) and ((!_root.heroDead) == true)) {
_root.spearflyCheker = false;
_root.spearfly = false;
_root.sword = 11;
}
if (((state == 5) and (_root.arrowflyCheker == true)) and ((!_root.heroDead) == true)) {
_root.arrowflyCheker = false;
_root.arrowfly = false;
}
if (((Key.isDown(38) and (_root.jump2 == true)) and ((!spearfly) == true)) and ((!_root.heroDead) == true)) {
_root.hero.vy = -_root.hero.jumpPower;
_root.jumpnum = 100;
}
if (((air == true) and (_root.spearflyCheker == true)) and ((!_root.heroDead) == true)) {
_root.spearflyCheker = false;
_root.spearfly = false;
_root.sword = 11;
}
if (((air == true) and (_root.arrowflyCheker == true)) and ((!_root.heroDead) == true)) {
_root.arrowflyCheker = false;
_root.arrowfly = false;
}
if (((!Key.isDown(38)) and (_root.jumpnum <= 2)) and ((!_root.heroDead) == true)) {
_root.jump2 = true;
} else {
_root.jump2 = false;
}
if ((!Key.isDown(40)) and ((!_root.heroDead) == true)) {
run3 = run;
}
if (Key.isDown(37) and ((!_root.heroDead) == true)) {
run2 = run;
_x = (_x - run);
this._xscale = 100;
this.legs.play();
}
if (((!(Key.isDown(37) or Key.isDown(39))) and (!Key.isDown(40))) and ((!_root.heroDead) == true)) {
this.legs.gotoAndStop(1);
if (this._xscale == 100) {
this._x = this._x - run2;
if ((!run2) <= 0) {
run2--;
}
}
if (this._xscale == -100) {
this._x = this._x + run2;
if ((!run2) <= 0) {
run2--;
}
}
}
if ((Key.isDown(37) && (Key.isDown(39))) and ((!_root.heroDead) == true)) {
this._x = this._x + run;
this._xscale = -100;
this.legs.play();
}
if (((air == true) && (Key.isDown(37))) and ((!_root.heroDead) == true)) {
state = 3;
}
if (Key.isDown(39) and ((!_root.heroDead) == true)) {
run2 = run;
_x = (_x + run);
this._xscale = -100;
this.legs.play();
}
if (((air == true) && (Key.isDown(39))) and ((!_root.heroDead) == true)) {
state = 3;
}
gotoAndStop(state);
if ((Key.isDown(65) && (air == true)) and ((!_root.heroDead) == true)) {
_root.hero.jumping.gotoAndPlay(6);
}
if (((Key.isDown(65) and (Key.isDown(37) or Key.isDown(39))) and ((!air) == true)) and ((!_root.heroDead) == true)) {
_root.standAttack = false;
_root.runAttack = true;
}
this._y = this._y + 8;
_y = (_y + gravity);
if (air == true) {
state = 3;
}
if (_root.ground.hitTest(_x, _y, true)) {
air = false;
_root.jumpnum = 2;
} else {
air = true;
state = 3;
}
if (air == false) {
state = 1;
}
if ((_root.arrowfly == true) and ((!_root.gotArrows) == false)) {
_root.menu2.arrows.gotoAndStop(_root.menu2.arrows._currentframe + 1);
_root.spearT = false;
totalbullet++;
if (totalbullet > 1) {
totalbullet = 0;
}
if (_root.hero._xscale == -100) {
_root.attachMovie("bullet", "bullet" + totalbullet, totalbullet, {_x:_x, _y:_y, _rotation:this._rotation});
} else if (_root.hero._xscale == 100) {
_root.attachMovie("bullet2", "bullet" + totalbullet, totalbullet, {_x:_x, _y:_y, _rotation:this._rotation});
}
}
if (_root.spearfly == true) {
_root.spearT = true;
totalbullet++;
if (totalbullet > 1) {
totalbullet = 0;
}
if (_root.hero._xscale == -100) {
_root.attachMovie("bullet", "bullet" + totalbullet, totalbullet, {_x:_x, _y:_y, _rotation:this._rotation});
} else if (_root.hero._xscale == 100) {
_root.attachMovie("bullet2", "bullet" + totalbullet, totalbullet, {_x:_x, _y:_y, _rotation:this._rotation});
}
}
}
onClipEvent (load) {
totalbullet = 0;
}
Instance of Symbol 1501 MovieClip "steam" in Frame 74
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 1502 MovieClip "blink" in Frame 74
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 616 MovieClip "groundHIT1" in Frame 74
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 616 MovieClip "groundHIT2" in Frame 74
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 1573 MovieClip "swordOrBow" in Frame 74
onClipEvent (enterFrame) {
if (_root.swords == true) {
this.gotoAndStop(1);
}
if (_root.bows == true) {
this.gotoAndStop(2);
}
}
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 1547 MovieClip "menu2" in Frame 74
onClipEvent (enterFrame) {
this.swapDepths((this._y * 100) + this._x);
}
Instance of Symbol 1549 MovieClip "levelEnd" in Frame 74
onClipEvent (enterFrame) {
this.swapDepths((this._y * 1000) + this._x);
}
Frame 75
levelFrame = 76;
gotoAndStop (30);
_x = 0;
_y = 0;
Frame 76
swordE = 15;
bootsE = 41;
pantsE = 39;
weaponDamageE = 60;
bodyE = 18;
helmetE = 21;
shieldE = 13;
shield2E = 12;
shieldhandE = 10;
attackNum = 0;
attackNum2 = 0;
attackNum3 = 0;
attackNum4 = 0;
attackNum5 = 0;
gotArrows = true;
weaponDamage = 1;
HITMinusArmour = 0;
enemyHITPower = 250;
menu2.location.location = "Mongolia";
_root.attachMovie("attachBM", "attachBM", 50, {_x:300, _y:200});
removeMovieClip(_root.heroAttach);
enemies = 4;
enemyHP = 70;
blooddummy._x = 0;
blooddummy._y = 0;
dep = 200;
gravity = 0.5;
hero.vx = 0;
hero.vy = 0;
hero.jumpPower = 20;
hero.grounded = false;
ScrollOb = hero;
spearfly = false;
spear = true;
hero.run = 7;
deadEnemyNum = 1000;
num = 0;
while (num <= enemies) {
this["enemy" + num].power = 20;
this["enemy" + num].HP = 70;
groundGNum = 1000;
groundGNum2 = -500;
this["enemy" + num].time = 500;
num++;
}
roundTime = 2300;
sound = true;
sound2 = false;
music3 = true;
music = false;
music2 = false;
music4 = false;
onEnterFrame = function () {
trace(roundTime);
roundTime = roundTime - 1;
if ((roundTime <= 0) and ((!heroDead) == true)) {
hero.HIT.gotoAndStop(2);
levelEnd.play();
removeMovieClip(menu2);
}
if ((!_root.HITMinusArmour) <= 1) {
_root.HITMinusArmour = _root.enemyHITPower - _root.armour;
}
if (_root.HITMinusArmour <= 1) {
_root.HITMinusArmour = 1;
}
trace(_root.HITMinusArmour);
if ((!pause) == true) {
num = 0;
while (num <= enemies) {
if (hero._x >= groundGNum) {
groundGNum = groundGNum + 500;
groundGNum2 = groundGNum2 + 500;
ground._x = ground._x + 500;
} else if (hero._x <= groundGNum2) {
groundGNum2 = groundGNum2 - 500;
groundGNum = groundGNum - 500;
ground._x = ground._x - 500;
}
if (EXP >= 1000) {
levelUP = levelUP + 1;
EXP = 0;
}
deadEnemyNum++;
this["enemy" + num];
if ((this["enemy" + num].AAA.jumpFrame == true) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num].air = true;
this["enemy" + num].gotoAndStop(3);
} else if (((this["enemy" + num].AAA.jumpFrame == false) and ground.hitTest(this["enemy" + num]._x, this["enemy" + num]._y + 5, true)) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num].air = false;
this["enemy" + num].power = 20;
this["enemy" + num].gotoAndStop(1);
}
if ((this["enemy" + num].AAA._currentframe == 52) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num].AAA.gotoAndPlay(random(500) + 1);
}
if (ground.hitTest(this["enemy" + num]._x - 6, this["enemy" + num]._y - 10, true) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num]._x = this["enemy" + num]._x + enemySpeed;
} else if (ground.hitTest(this["enemy" + num]._x + 6, this["enemy" + num]._y - 10, true) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num]._x = this["enemy" + num]._x - enemySpeed;
}
if ((this["enemy" + num]._currentframe == 3) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num].air = true;
this["enemy" + num]._y = this["enemy" + num]._y - this["enemy" + num].power;
if ((!this["enemy" + num].power) <= 0) {
this["enemy" + num].power = this["enemy" + num].power - 0.5;
if (this["enemy" + num]._xscale == 100) {
this["enemy" + num]._x = this["enemy" + num]._x - enemySpeed;
}
if (this["enemy" + num]._xscale == -100) {
this["enemy" + num]._x = this["enemy" + num]._x + enemySpeed;
}
}
if ((this["enemy" + num]._x >= (hero._x + 1)) and (this["enemy" + num]._xscale == -100)) {
this["enemy" + num].jumpy.gotoAndStop(10);
} else if ((this["enemy" + num]._x <= (hero._x - 1)) and (this["enemy" + num]._xscale == 100)) {
this["enemy" + num].jumpy.gotoAndStop(10);
}
}
if ((this["enemy" + num].hitTest(hero) and ((!_root.heroDead) == true)) and (this["enemy" + num].hero2.canAttack == true)) {
this["enemy" + num].hero2.canAttack = false;
this["enemy" + num].hero2.gotoAndPlay(_root.enemyRandomAttack);
}
if (this["enemy" + num].hero2.HIT.hitTest(hero.HIT)) {
this["enemy" + num].hero2.HIT.HITin.gotoAndPlay(2);
blink.play();
}
if (this["enemy" + num].jumpy.jumpHIT.HIT.hitTest(hero.HIT)) {
this["enemy" + num].jumpy.jumpHIT.HIT.HITin.gotoAndPlay(2);
blink.play();
}
if (this["enemy" + num].hero2.HIT2.hitTest(hero.HIT)) {
this["enemy" + num].hero2.HIT2.HITin.gotoAndPlay(2);
if (this["enemy" + num]._xscale == 100) {
hero._x = hero._x - 50;
blink.play();
}
if (this["enemy" + num]._xscale == -100) {
hero._x = hero._x + 50;
blink.play();
}
}
if (((hero._x > this["enemy" + num]._x) and ((!this["enemy" + num].dead) == true)) and ((!this["enemy" + num].air) == true)) {
this["enemy" + num]._xscale = -100;
} else if (((hero._x < this["enemy" + num]._x) and ((!this["enemy" + num].dead) == true)) and ((!this["enemy" + num].air) == true)) {
this["enemy" + num]._xscale = 100;
}
if (((((hero._x > (this["enemy" + num]._x + 70)) and ((!this["enemy" + num].dead) == true)) and this["enemy" + num].hitTest(this["enemy" + num].AAA)) and ((!this["enemy" + num].air) == true)) and ((!this["enemy" + num].hero2.kick) == true)) {
this["enemy" + num].legs.gotoAndStop(4);
this["enemy" + num]._x = this["enemy" + num]._x + enemySpeed;
} else if (((((hero._x < (this["enemy" + num]._x - 70)) and ((!this["enemy" + num].dead) == true)) and this["enemy" + num].hitTest(this["enemy" + num].AAA)) and ((!this["enemy" + num].air) == true)) and ((!this["enemy" + num].hero2.kick) == true)) {
this["enemy" + num]._x = this["enemy" + num]._x - enemySpeed;
this["enemy" + num].legs.gotoAndStop(4);
} else {
this["enemy" + num].legs.gotoAndStop(1);
}
this["enemy" + num]._y = this["enemy" + num]._y + 8;
while (ground.hitTest(this["enemy" + num]._x, this["enemy" + num]._y, true)) {
this["enemy" + num]._y = this["enemy" + num]._y - 1;
}
while (ground.hitTest(hero._root.SpearFall._x, hero._root.SpearFall._y, true)) {
_root.SpearFall._y = _root.SpearFall._y - 1;
}
if (hero.hero2.HIT.hitTest(this["enemy" + num].HIT) and ((!this["enemy" + num].dead) == true)) {
_root.attachMovie("bloodAttach", "bloodAttach", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.hero2.HIT.HITin.gotoAndPlay(2);
this["enemy" + num].HP = this["enemy" + num].HP - weaponDamage;
if (this["enemy" + num].HP <= 0) {
_root.attachMovie("heartAttach", "heartAttach", 38, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y});
gold = gold + (random(50) + 10);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
if ((sword == 5) or (sword == 8)) {
this["enemy" + num].die.gotoAndPlay(80);
} else {
this["enemy" + num].die.gotoAndPlay(1);
}
}
}
if (hero.hero2.HIT2.hitTest(this["enemy" + num].HIT) and ((!this["enemy" + num].dead) == true)) {
_root.attachMovie("bloodAttachKICK", "bloodAttachKICK", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.hero2.HIT2.HITin.gotoAndPlay(2);
this["enemy" + num].HP = this["enemy" + num].HP - (Math.ceil(weaponDamage) * 5);
if (this["enemy" + num].HP <= 0) {
_root.attachMovie("heartAttach", "heartAttach", 38, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y});
gold = gold + (random(50) + 10);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
this["enemy" + num].die.gotoAndPlay(60);
}
}
if (hero.hero2.HIT3.hitTest(this["enemy" + num].HIT) and ((!this["enemy" + num].dead) == true)) {
_root.attachMovie("bloodAttachKICK", "bloodAttachKICK", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.hero2.HIT3.HITin.gotoAndPlay(2);
this["enemy" + num].gotoAndStop(2);
this["enemy" + num].gotKicked.gotoAndPlay(37);
this["enemy" + num].HP = this["enemy" + num].HP - (Math.ceil(weaponDamage) / 3);
if (hero._xscale == 100) {
this["enemy" + num]._x = this["enemy" + num]._x - 60;
}
if (hero._xscale == -100) {
this["enemy" + num]._x = this["enemy" + num]._x + 60;
}
if (this["enemy" + num].HP <= 0) {
_root.attachMovie("heartAttach", "heartAttach", 38, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y});
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
this["enemy" + num].die.gotoAndPlay(60);
}
}
if (hero.jumpy.HIT.hitTest(this["enemy" + num].HIT) and ((!this["enemy" + num].dead) == true)) {
_root.attachMovie("bloodAttachKICK", "bloodAttachKICK", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.jumpy.HIT.HITin.gotoAndStop(2);
this["enemy" + num].HP = this["enemy" + num].HP - (weaponDamage * 3);
if (this["enemy" + num].HP <= 0) {
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
this["enemy" + num].die.gotoAndPlay(100);
}
}
if (hero.sit.HIT.hitTest(this["enemy" + num].legs) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num].gotoAndStop(2);
_root.attachMovie("bloodAttachKICK", "bloodAttachKICK", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.sit.HIT.HITin.gotoAndStop(2);
this["enemy" + num].HP = this["enemy" + num].HP - (Math.ceil(weaponDamage) / 3);
if (hero._xscale == 100) {
this["enemy" + num]._x = this["enemy" + num]._x - 50;
}
if (hero._xscale == -100) {
this["enemy" + num]._x = this["enemy" + num]._x + 50;
}
if (this["enemy" + num].HP <= 0) {
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
this["enemy" + num].die.gotoAndPlay(1);
}
}
if (hero.sit.HIT2.hitTest(this["enemy" + num].HIT) and ((!this["enemy" + num].dead) == true)) {
_root.attachMovie("bloodAttach", "bloodAttach", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.sit.HIT2.HITin.gotoAndStop(2);
this["enemy" + num].HP = this["enemy" + num].HP - (weaponDamage * 2);
if (this["enemy" + num].HP <= 0) {
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
this["enemy" + num].die.gotoAndPlay(80);
}
}
if (this["enemy" + num].hitTest(_root.bullet0) and ((!this["enemy" + num].dead) == true)) {
removeMovieClip(_root.bullet0);
this["enemy" + num].gotoAndStop(4);
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
_root.attachMovie("bloodAttach", "bloodAttach", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
_root.attachMovie("deadEnemy", "deadEnemy", deadEnemyNum, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
if (spearcankill == true) {
this["enemy" + num].die.gotoAndPlay(20);
}
if (spearcankill == false) {
this["enemy" + num].die.gotoAndPlay(40);
}
this["enemy" + num].dead = true;
}
if (this["enemy" + num].HIT.hitTest(_root.bullet1) and ((!this["enemy" + num].dead) == true)) {
removeMovieClip(_root.bullet1);
this["enemy" + num].gotoAndStop(4);
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
_root.attachMovie("bloodAttach", "bloodAttach", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
_root.attachMovie("deadEnemy", "deadEnemy", deadEnemyNum, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
if (spearcankill == true) {
this["enemy" + num].die.gotoAndPlay(20);
}
if (spearcankill == false) {
this["enemy" + num].die.gotoAndPlay(40);
}
this["enemy" + num].dead = true;
}
if ((((hero.hero2.HIT.hitTest(this["enemy" + num].hero2) or hero.hero2.HIT2.hitTest(this["enemy" + num].hero2)) or hero.hero2.HIT3.hitTest(this["enemy" + num].hero2)) or hero.jumpy.HIT.hitTest(this["enemy" + num].hero2)) or (((hero.sit.HIT2.hitTest(this["enemy" + num].hero2) and (this["enemy" + num].HIT._currentframe > 1)) and (_root.blink._currentframe == 1)) and ((!shieldDead) == true))) {
_root.attachMovie("bloodAttach0Defence", "bloodAttach0Defence", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.hero2.HIT.HITin.gotoAndPlay(2);
hero.hero2.HIT2.HITin.gotoAndPlay(2);
hero.hero2.HIT3.HITin.gotoAndPlay(2);
hero.jumpy.HIT.HITin.gotoAndPlay(2);
if (this["enemy" + num]._xscale == 100) {
this["enemy" + num]._x = this["enemy" + num]._x + 30;
}
if (this["enemy" + num]._xscale == -100) {
this["enemy" + num]._x = this["enemy" + num]._x - 30;
}
}
shieldDead == false;
if ((((((_root.hero.HIT._currentframe == 2) and (_root.blink._currentframe == 1)) and ((!shieldDead) == true)) and this["enemy" + num].hero2.HIT.hitTest(hero)) or this["enemy" + num].hero2.HIT2.hitTest(hero)) or this["enemy" + num].jumpy.jumpHIT.HIT.hitTest(hero)) {
_root.attachMovie("bloodAttach0Defence2", "bloodAttach0Defence2", 50, {_x:hero._x, _y:hero._y - 50});
this["enemy" + num].hero2.HIT.HITin.gotoAndPlay(2);
this["enemy" + num].hero2.HIT2.HITin.gotoAndPlay(2);
this["enemy" + num].jumpy.jumpHIT.HIT.HITin.gotoAndPlay(2);
if (this["enemy" + num]._xscale == -100) {
hero._x = hero._x + 30;
}
if (this["enemy" + num]._xscale == 100) {
hero._x = hero._x - 30;
}
}
if ((this["enemy" + num].live == true) and (this["enemy" + num].dead == true)) {
this["enemy" + num].gotoAndStop(7);
this["enemy" + num].time = this["enemy" + num].time - 1;
if (this["enemy" + num].time <= 0) {
this["enemy" + num].time = random(400) + 20;
this["enemy" + num].HP = _root.enemyHP;
this["enemy" + num].gotoAndStop(1);
this["enemy" + num].live = false;
this["enemy" + num].dead = false;
this["enemy" + num]._x = menu._x - livePosition;
this["enemy" + num]._y = hero._y;
}
}
if (this["enemy" + num]._x <= (menu._x - 660)) {
this["enemy" + num]._y = hero._y;
this["enemy" + num]._x = menu._x - livePosition;
} else if (this["enemy" + num]._x >= (menu._x + 660)) {
this["enemy" + num]._y = hero._y;
this["enemy" + num]._x = menu._x - livePosition;
}
if (this["enemy" + num].die.spearReSpawn == true) {
this["enemy" + num].die.spearReSpawn = false;
_root.attachMovie("SpearFall", "SpearFall", 100, {_x:this["enemy" + num]._x - 50, _y:this["enemy" + num]._y});
}
if (_root.groundHIT1.hitTest(_root.bullet0) and (_root.spearcankill == true)) {
_root.attachMovie("SpearFall", "SpearFall", 100, {_x:_root.bullet0._x, _y:_root.bullet0._y - 8});
removeMovieClip(_root.bullet0);
}
if (_root.groundHIT1.hitTest(_root.bullet1) and (_root.spearcankill == true)) {
_root.attachMovie("SpearFall", "SpearFall", 100, {_x:_root.bullet1._x, _y:_root.bullet1._y - 8});
removeMovieClip(_root.bullet1);
}
if (_root.groundHIT2.hitTest(_root.bullet0) and (_root.spearcankill == true)) {
_root.attachMovie("SpearFall", "SpearFall", 100, {_x:_root.bullet0._x, _y:_root.bullet0._y - 8});
removeMovieClip(_root.bullet0);
}
if (_root.groundHIT2.hitTest(_root.bullet1) and (_root.spearcankill == true)) {
_root.attachMovie("SpearFall", "SpearFall", 100, {_x:_root.bullet1._x, _y:_root.bullet1._y - 8});
removeMovieClip(_root.bullet1);
}
num++;
}
_x = (_x - Math.round((_x - (300 - ScrollOb._x)) / 10));
_y = (_y - Math.round((_y - (300 - ScrollOb._y)) / 10));
ScrollOb = hero;
menu._x = (-_x) + 300;
menu._y = (-_y) + 200;
wind._x = (-_x) + 300;
wind._y = (-_y) + 200;
snow._x = (-_x) + 43.4;
snow._y = (-_y) - 15.2;
menu2._x = (-_x) + 300;
menu2._y = (-_y) + 200;
maskRoot._x = (-_x) + 300;
maskRoot._y = (-_y) + 200;
bambook._x = (-_x) + 300;
groundHIT1._x = (-_x) + 1200;
groundHIT2._x = (-_x) - 600;
levelEnd._x = (-_x) + 300;
levelEnd._y = (-_y) + 200;
attachBM._x = (-_x) + 300;
attachBM._y = (-_y) + 200;
hero.gotoAndStop(frame);
jump = Key.isDown(38);
hero.vy = hero.vy + gravity;
hero._x = hero._x + hero.vx;
hero._y = hero._y + hero.vy;
if ((!pause) == true) {
if (jump) {
jumpnum = jumpnum - 1;
if (hero.grounded) {
hero.vy = -hero.jumpPower;
frame = "jump";
}
}
}
if (left) {
hero.vx = hero.vx - hero.spd;
hero._xscale = -100;
frame = "run";
} else if (right) {
hero.vx = hero.vx + hero.spd;
hero._xscale = 100;
frame = "run";
} else if (hero.grounded) {
hero.vx = hero.vx * 0.9;
frame = "stand";
} else {
frame = "jump";
}
if ((!pause) == true) {
if (Math.abs(hero.vx) > hero.maxSpd) {
hero.vx = hero.vx * 0.9;
}
}
hero.grounded = false;
if (ground.hitTest(hero._x, hero._y, true)) {
hero.vy = -Math.abs(hero.vy * 0.4);
hero.grounded = true;
frame = "stand";
while (ground.hitTest(hero._x, hero._y, true)) {
hero._y = hero._y - 0.2;
}
}
if (ground.hitTest(hero._x - (hero._width / 2), hero._y - (hero._height / 2), true)) {
hero.vx = Math.abs(hero.vx * 0.4);
while (ground.hitTest(hero._x - (hero._width / 2), hero._y - (hero._height / 2), true)) {
hero._x = hero._x + 0.2;
}
} else if (ground.hitTest(hero._x + (hero._width / 2), hero._y - (hero._height / 2), true)) {
hero.vx = -Math.abs(hero.vx * 0.4);
while (ground.hitTest(hero._x + (hero._width / 2), hero._y - (hero._height / 2), true)) {
hero._x = hero._x - 0.2;
}
}
}
};
stop();
Instance of Symbol 1481 MovieClip "menu" in Frame 76
onClipEvent (load) {
this.gotoAndStop(17);
}
Instance of Symbol 1491 MovieClip "ground" in Frame 76
onClipEvent (load) {
this.gotoAndStop(1);
}
Instance of Symbol 1494 MovieClip in Frame 76
onClipEvent (enterFrame) {
if (_root.groundHIT2.hitTest(this.HIT)) {
this._x = _root.groundHIT1._x - 200;
this.gotoAndStop(random(2) + 1);
} else if (_root.groundHIT1.hitTest(this.HIT)) {
this._x = _root.groundHIT2._x + 200;
this.gotoAndStop(random(2) + 1);
}
trace(this._x);
}
Instance of Symbol 1500 MovieClip "hero" in Frame 76
onClipEvent (enterFrame) {
if (((Key.isDown(40) and Key.isDown(37)) and Key.isDown(39)) and ((!_root.heroDead) == true)) {
this._x = this._x - run;
}
if (_root.heroDead == true) {
this.state = 4;
}
if ((Key.isDown(40) and ((!air) == true)) and ((!_root.heroDead) == true)) {
if (this._xscale == 100) {
this._x = this._x - run3;
if ((!run3) <= 0) {
run3--;
}
}
if (this._xscale == -100) {
this._x = this._x + run3;
if ((!run3) <= 0) {
run3--;
}
}
state = 5;
if (Key.isDown(37) and ((!_root.heroDead) == true)) {
_x = (_x + run);
}
if (Key.isDown(39) and ((!_root.heroDead) == true)) {
_x = (_x - run);
}
}
if (((state == 5) and (_root.spearflyCheker == true)) and ((!_root.heroDead) == true)) {
_root.spearflyCheker = false;
_root.spearfly = false;
_root.sword = 11;
}
if (((state == 5) and (_root.arrowflyCheker == true)) and ((!_root.heroDead) == true)) {
_root.arrowflyCheker = false;
_root.arrowfly = false;
}
if (((Key.isDown(38) and (_root.jump2 == true)) and ((!spearfly) == true)) and ((!_root.heroDead) == true)) {
_root.hero.vy = -_root.hero.jumpPower;
_root.jumpnum = 100;
}
if (((air == true) and (_root.spearflyCheker == true)) and ((!_root.heroDead) == true)) {
_root.spearflyCheker = false;
_root.spearfly = false;
_root.sword = 11;
}
if (((air == true) and (_root.arrowflyCheker == true)) and ((!_root.heroDead) == true)) {
_root.arrowflyCheker = false;
_root.arrowfly = false;
}
if (((!Key.isDown(38)) and (_root.jumpnum <= 2)) and ((!_root.heroDead) == true)) {
_root.jump2 = true;
} else {
_root.jump2 = false;
}
if ((!Key.isDown(40)) and ((!_root.heroDead) == true)) {
run3 = run;
}
if (Key.isDown(37) and ((!_root.heroDead) == true)) {
run2 = run;
_x = (_x - run);
this._xscale = 100;
this.legs.play();
}
if (((!(Key.isDown(37) or Key.isDown(39))) and (!Key.isDown(40))) and ((!_root.heroDead) == true)) {
this.legs.gotoAndStop(1);
if (this._xscale == 100) {
this._x = this._x - run2;
if ((!run2) <= 0) {
run2--;
}
}
if (this._xscale == -100) {
this._x = this._x + run2;
if ((!run2) <= 0) {
run2--;
}
}
}
if ((Key.isDown(37) && (Key.isDown(39))) and ((!_root.heroDead) == true)) {
this._x = this._x + run;
this._xscale = -100;
this.legs.play();
}
if (((air == true) && (Key.isDown(37))) and ((!_root.heroDead) == true)) {
state = 3;
}
if (Key.isDown(39) and ((!_root.heroDead) == true)) {
run2 = run;
_x = (_x + run);
this._xscale = -100;
this.legs.play();
}
if (((air == true) && (Key.isDown(39))) and ((!_root.heroDead) == true)) {
state = 3;
}
gotoAndStop(state);
if ((Key.isDown(65) && (air == true)) and ((!_root.heroDead) == true)) {
_root.hero.jumping.gotoAndPlay(6);
}
if (((Key.isDown(65) and (Key.isDown(37) or Key.isDown(39))) and ((!air) == true)) and ((!_root.heroDead) == true)) {
_root.standAttack = false;
_root.runAttack = true;
}
this._y = this._y + 8;
_y = (_y + gravity);
if (air == true) {
state = 3;
}
if (_root.ground.hitTest(_x, _y, true)) {
air = false;
_root.jumpnum = 2;
} else {
air = true;
state = 3;
}
if (air == false) {
state = 1;
}
if ((_root.arrowfly == true) and ((!_root.gotArrows) == false)) {
_root.menu2.arrows.gotoAndStop(_root.menu2.arrows._currentframe + 1);
_root.spearT = false;
totalbullet++;
if (totalbullet > 1) {
totalbullet = 0;
}
if (_root.hero._xscale == -100) {
_root.attachMovie("bullet", "bullet" + totalbullet, totalbullet, {_x:_x, _y:_y, _rotation:this._rotation});
} else if (_root.hero._xscale == 100) {
_root.attachMovie("bullet2", "bullet" + totalbullet, totalbullet, {_x:_x, _y:_y, _rotation:this._rotation});
}
}
if (_root.spearfly == true) {
_root.spearT = true;
totalbullet++;
if (totalbullet > 1) {
totalbullet = 0;
}
if (_root.hero._xscale == -100) {
_root.attachMovie("bullet", "bullet" + totalbullet, totalbullet, {_x:_x, _y:_y, _rotation:this._rotation});
} else if (_root.hero._xscale == 100) {
_root.attachMovie("bullet2", "bullet" + totalbullet, totalbullet, {_x:_x, _y:_y, _rotation:this._rotation});
}
}
}
onClipEvent (load) {
totalbullet = 0;
}
Instance of Symbol 1501 MovieClip "steam" in Frame 76
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 1502 MovieClip "blink" in Frame 76
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 616 MovieClip "groundHIT1" in Frame 76
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 616 MovieClip "groundHIT2" in Frame 76
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 1564 MovieClip "swordOrBow" in Frame 76
onClipEvent (enterFrame) {
if (_root.swords == true) {
this.gotoAndStop(1);
}
if (_root.bows == true) {
this.gotoAndStop(2);
}
}
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 1547 MovieClip "menu2" in Frame 76
onClipEvent (enterFrame) {
this.swapDepths((this._y * 100) + this._x);
}
Instance of Symbol 1549 MovieClip "levelEnd" in Frame 76
onClipEvent (enterFrame) {
this.swapDepths((this._y * 1000) + this._x);
}
Frame 77
levelFrame = 78;
gotoAndStop (30);
_x = 0;
_y = 0;
Frame 78
swordE = 13;
bootsE = 40;
pantsE = 39;
weaponDamageE = 60;
bodyE = 17;
helmetE = 20;
shieldE = 1;
shield2E = 12;
shieldhandE = 14;
attackNum = 0;
attackNum2 = 0;
attackNum3 = 0;
attackNum4 = 0;
attackNum5 = 0;
gotArrows = true;
weaponDamage = 1;
HITMinusArmour = 0;
enemyHITPower = 255;
menu2.location.location = "China 3";
_root.attachMovie("attachBM", "attachBM", 50, {_x:300, _y:200});
removeMovieClip(_root.heroAttach);
enemies = 3;
enemyHP = 70;
blooddummy._x = 0;
blooddummy._y = 0;
dep = 200;
gravity = 0.5;
hero.vx = 0;
hero.vy = 0;
hero.jumpPower = 20;
hero.grounded = false;
ScrollOb = hero;
spearfly = false;
spear = true;
hero.run = 7;
deadEnemyNum = 1000;
num = 0;
while (num <= enemies) {
this["enemy" + num].power = 20;
this["enemy" + num].HP = 70;
groundGNum = 1000;
groundGNum2 = -500;
this["enemy" + num].time = 500;
num++;
}
roundTime = 2300;
sound = true;
sound2 = false;
music3 = true;
music = false;
music2 = false;
music4 = false;
onEnterFrame = function () {
trace(roundTime);
roundTime = roundTime - 1;
if ((roundTime <= 0) and ((!heroDead) == true)) {
hero.HIT.gotoAndStop(2);
levelEnd.play();
removeMovieClip(menu2);
}
if ((!_root.HITMinusArmour) <= 1) {
_root.HITMinusArmour = _root.enemyHITPower - _root.armour;
}
if (_root.HITMinusArmour <= 1) {
_root.HITMinusArmour = 1;
}
trace(_root.HITMinusArmour);
if ((!pause) == true) {
num = 0;
while (num <= enemies) {
if (hero._x >= groundGNum) {
groundGNum = groundGNum + 500;
groundGNum2 = groundGNum2 + 500;
ground._x = ground._x + 500;
} else if (hero._x <= groundGNum2) {
groundGNum2 = groundGNum2 - 500;
groundGNum = groundGNum - 500;
ground._x = ground._x - 500;
}
if (EXP >= 1000) {
levelUP = levelUP + 1;
EXP = 0;
}
deadEnemyNum++;
this["enemy" + num];
if ((this["enemy" + num].AAA.jumpFrame == true) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num].air = true;
this["enemy" + num].gotoAndStop(3);
} else if (((this["enemy" + num].AAA.jumpFrame == false) and ground.hitTest(this["enemy" + num]._x, this["enemy" + num]._y + 5, true)) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num].air = false;
this["enemy" + num].power = 20;
this["enemy" + num].gotoAndStop(1);
}
if ((this["enemy" + num].AAA._currentframe == 52) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num].AAA.gotoAndPlay(random(500) + 1);
}
if (ground.hitTest(this["enemy" + num]._x - 6, this["enemy" + num]._y - 10, true) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num]._x = this["enemy" + num]._x + enemySpeed;
} else if (ground.hitTest(this["enemy" + num]._x + 6, this["enemy" + num]._y - 10, true) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num]._x = this["enemy" + num]._x - enemySpeed;
}
if ((this["enemy" + num]._currentframe == 3) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num].air = true;
this["enemy" + num]._y = this["enemy" + num]._y - this["enemy" + num].power;
if ((!this["enemy" + num].power) <= 0) {
this["enemy" + num].power = this["enemy" + num].power - 0.5;
if (this["enemy" + num]._xscale == 100) {
this["enemy" + num]._x = this["enemy" + num]._x - enemySpeed;
}
if (this["enemy" + num]._xscale == -100) {
this["enemy" + num]._x = this["enemy" + num]._x + enemySpeed;
}
}
if ((this["enemy" + num]._x >= (hero._x + 1)) and (this["enemy" + num]._xscale == -100)) {
this["enemy" + num].jumpy.gotoAndStop(10);
} else if ((this["enemy" + num]._x <= (hero._x - 1)) and (this["enemy" + num]._xscale == 100)) {
this["enemy" + num].jumpy.gotoAndStop(10);
}
}
if ((this["enemy" + num].hitTest(hero) and ((!_root.heroDead) == true)) and (this["enemy" + num].hero2.canAttack == true)) {
this["enemy" + num].hero2.canAttack = false;
this["enemy" + num].hero2.gotoAndPlay(_root.enemyRandomAttack);
}
if (this["enemy" + num].hero2.HIT.hitTest(hero.HIT)) {
this["enemy" + num].hero2.HIT.HITin.gotoAndPlay(2);
blink.play();
}
if (this["enemy" + num].jumpy.jumpHIT.HIT.hitTest(hero.HIT)) {
this["enemy" + num].jumpy.jumpHIT.HIT.HITin.gotoAndPlay(2);
blink.play();
}
if (this["enemy" + num].hero2.HIT2.hitTest(hero.HIT)) {
this["enemy" + num].hero2.HIT2.HITin.gotoAndPlay(2);
if (this["enemy" + num]._xscale == 100) {
hero._x = hero._x - 50;
blink.play();
}
if (this["enemy" + num]._xscale == -100) {
hero._x = hero._x + 50;
blink.play();
}
}
if (((hero._x > this["enemy" + num]._x) and ((!this["enemy" + num].dead) == true)) and ((!this["enemy" + num].air) == true)) {
this["enemy" + num]._xscale = -100;
} else if (((hero._x < this["enemy" + num]._x) and ((!this["enemy" + num].dead) == true)) and ((!this["enemy" + num].air) == true)) {
this["enemy" + num]._xscale = 100;
}
if (((((hero._x > (this["enemy" + num]._x + 70)) and ((!this["enemy" + num].dead) == true)) and this["enemy" + num].hitTest(this["enemy" + num].AAA)) and ((!this["enemy" + num].air) == true)) and ((!this["enemy" + num].hero2.kick) == true)) {
this["enemy" + num].legs.gotoAndStop(4);
this["enemy" + num]._x = this["enemy" + num]._x + enemySpeed;
} else if (((((hero._x < (this["enemy" + num]._x - 70)) and ((!this["enemy" + num].dead) == true)) and this["enemy" + num].hitTest(this["enemy" + num].AAA)) and ((!this["enemy" + num].air) == true)) and ((!this["enemy" + num].hero2.kick) == true)) {
this["enemy" + num]._x = this["enemy" + num]._x - enemySpeed;
this["enemy" + num].legs.gotoAndStop(4);
} else {
this["enemy" + num].legs.gotoAndStop(1);
}
this["enemy" + num]._y = this["enemy" + num]._y + 8;
while (ground.hitTest(this["enemy" + num]._x, this["enemy" + num]._y, true)) {
this["enemy" + num]._y = this["enemy" + num]._y - 1;
}
while (ground.hitTest(hero._root.SpearFall._x, hero._root.SpearFall._y, true)) {
_root.SpearFall._y = _root.SpearFall._y - 1;
}
if (hero.hero2.HIT.hitTest(this["enemy" + num].HIT) and ((!this["enemy" + num].dead) == true)) {
_root.attachMovie("bloodAttach", "bloodAttach", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.hero2.HIT.HITin.gotoAndPlay(2);
this["enemy" + num].HP = this["enemy" + num].HP - weaponDamage;
if (this["enemy" + num].HP <= 0) {
_root.attachMovie("heartAttach", "heartAttach", 38, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y});
gold = gold + (random(50) + 10);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
if ((sword == 5) or (sword == 8)) {
this["enemy" + num].die.gotoAndPlay(80);
} else {
this["enemy" + num].die.gotoAndPlay(1);
}
}
}
if (hero.hero2.HIT2.hitTest(this["enemy" + num].HIT) and ((!this["enemy" + num].dead) == true)) {
_root.attachMovie("bloodAttachKICK", "bloodAttachKICK", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.hero2.HIT2.HITin.gotoAndPlay(2);
this["enemy" + num].HP = this["enemy" + num].HP - (Math.ceil(weaponDamage) * 5);
if (this["enemy" + num].HP <= 0) {
_root.attachMovie("heartAttach", "heartAttach", 38, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y});
gold = gold + (random(50) + 10);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
this["enemy" + num].die.gotoAndPlay(60);
}
}
if (hero.hero2.HIT3.hitTest(this["enemy" + num].HIT) and ((!this["enemy" + num].dead) == true)) {
_root.attachMovie("bloodAttachKICK", "bloodAttachKICK", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.hero2.HIT3.HITin.gotoAndPlay(2);
this["enemy" + num].gotoAndStop(2);
this["enemy" + num].gotKicked.gotoAndPlay(37);
this["enemy" + num].HP = this["enemy" + num].HP - (Math.ceil(weaponDamage) / 3);
if (hero._xscale == 100) {
this["enemy" + num]._x = this["enemy" + num]._x - 60;
}
if (hero._xscale == -100) {
this["enemy" + num]._x = this["enemy" + num]._x + 60;
}
if (this["enemy" + num].HP <= 0) {
_root.attachMovie("heartAttach", "heartAttach", 38, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y});
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
this["enemy" + num].die.gotoAndPlay(60);
}
}
if (hero.jumpy.HIT.hitTest(this["enemy" + num].HIT) and ((!this["enemy" + num].dead) == true)) {
_root.attachMovie("bloodAttachKICK", "bloodAttachKICK", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.jumpy.HIT.HITin.gotoAndStop(2);
this["enemy" + num].HP = this["enemy" + num].HP - (weaponDamage * 3);
if (this["enemy" + num].HP <= 0) {
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
this["enemy" + num].die.gotoAndPlay(100);
}
}
if (hero.sit.HIT.hitTest(this["enemy" + num].legs) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num].gotoAndStop(2);
_root.attachMovie("bloodAttachKICK", "bloodAttachKICK", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.sit.HIT.HITin.gotoAndStop(2);
this["enemy" + num].HP = this["enemy" + num].HP - (Math.ceil(weaponDamage) / 3);
if (hero._xscale == 100) {
this["enemy" + num]._x = this["enemy" + num]._x - 50;
}
if (hero._xscale == -100) {
this["enemy" + num]._x = this["enemy" + num]._x + 50;
}
if (this["enemy" + num].HP <= 0) {
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
this["enemy" + num].die.gotoAndPlay(1);
}
}
if (hero.sit.HIT2.hitTest(this["enemy" + num].HIT) and ((!this["enemy" + num].dead) == true)) {
_root.attachMovie("bloodAttach", "bloodAttach", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.sit.HIT2.HITin.gotoAndStop(2);
this["enemy" + num].HP = this["enemy" + num].HP - (weaponDamage * 2);
if (this["enemy" + num].HP <= 0) {
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
this["enemy" + num].die.gotoAndPlay(80);
}
}
if (this["enemy" + num].hitTest(_root.bullet0) and ((!this["enemy" + num].dead) == true)) {
removeMovieClip(_root.bullet0);
this["enemy" + num].gotoAndStop(4);
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
_root.attachMovie("bloodAttach", "bloodAttach", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
_root.attachMovie("deadEnemy", "deadEnemy", deadEnemyNum, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
if (spearcankill == true) {
this["enemy" + num].die.gotoAndPlay(20);
}
if (spearcankill == false) {
this["enemy" + num].die.gotoAndPlay(40);
}
this["enemy" + num].dead = true;
}
if (this["enemy" + num].HIT.hitTest(_root.bullet1) and ((!this["enemy" + num].dead) == true)) {
removeMovieClip(_root.bullet1);
this["enemy" + num].gotoAndStop(4);
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
_root.attachMovie("bloodAttach", "bloodAttach", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
_root.attachMovie("deadEnemy", "deadEnemy", deadEnemyNum, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
if (spearcankill == true) {
this["enemy" + num].die.gotoAndPlay(20);
}
if (spearcankill == false) {
this["enemy" + num].die.gotoAndPlay(40);
}
this["enemy" + num].dead = true;
}
if ((((hero.hero2.HIT.hitTest(this["enemy" + num].hero2) or hero.hero2.HIT2.hitTest(this["enemy" + num].hero2)) or hero.hero2.HIT3.hitTest(this["enemy" + num].hero2)) or hero.jumpy.HIT.hitTest(this["enemy" + num].hero2)) or (((hero.sit.HIT2.hitTest(this["enemy" + num].hero2) and (this["enemy" + num].HIT._currentframe > 1)) and (_root.blink._currentframe == 1)) and ((!shieldDead) == true))) {
_root.attachMovie("bloodAttach0Defence", "bloodAttach0Defence", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.hero2.HIT.HITin.gotoAndPlay(2);
hero.hero2.HIT2.HITin.gotoAndPlay(2);
hero.hero2.HIT3.HITin.gotoAndPlay(2);
hero.jumpy.HIT.HITin.gotoAndPlay(2);
if (this["enemy" + num]._xscale == 100) {
this["enemy" + num]._x = this["enemy" + num]._x + 30;
}
if (this["enemy" + num]._xscale == -100) {
this["enemy" + num]._x = this["enemy" + num]._x - 30;
}
}
shieldDead == false;
if ((((((_root.hero.HIT._currentframe == 2) and (_root.blink._currentframe == 1)) and ((!shieldDead) == true)) and this["enemy" + num].hero2.HIT.hitTest(hero)) or this["enemy" + num].hero2.HIT2.hitTest(hero)) or this["enemy" + num].jumpy.jumpHIT.HIT.hitTest(hero)) {
_root.attachMovie("bloodAttach0Defence2", "bloodAttach0Defence2", 50, {_x:hero._x, _y:hero._y - 50});
this["enemy" + num].hero2.HIT.HITin.gotoAndPlay(2);
this["enemy" + num].hero2.HIT2.HITin.gotoAndPlay(2);
this["enemy" + num].jumpy.jumpHIT.HIT.HITin.gotoAndPlay(2);
if (this["enemy" + num]._xscale == -100) {
hero._x = hero._x + 30;
}
if (this["enemy" + num]._xscale == 100) {
hero._x = hero._x - 30;
}
}
if ((this["enemy" + num].live == true) and (this["enemy" + num].dead == true)) {
this["enemy" + num].gotoAndStop(7);
this["enemy" + num].time = this["enemy" + num].time - 1;
if (this["enemy" + num].time <= 0) {
this["enemy" + num].time = random(400) + 20;
this["enemy" + num].HP = _root.enemyHP;
this["enemy" + num].gotoAndStop(1);
this["enemy" + num].live = false;
this["enemy" + num].dead = false;
this["enemy" + num]._x = menu._x - livePosition;
this["enemy" + num]._y = hero._y;
}
}
if (this["enemy" + num]._x <= (menu._x - 660)) {
this["enemy" + num]._y = hero._y;
this["enemy" + num]._x = menu._x - livePosition;
} else if (this["enemy" + num]._x >= (menu._x + 660)) {
this["enemy" + num]._y = hero._y;
this["enemy" + num]._x = menu._x - livePosition;
}
if (this["enemy" + num].die.spearReSpawn == true) {
this["enemy" + num].die.spearReSpawn = false;
_root.attachMovie("SpearFall", "SpearFall", 100, {_x:this["enemy" + num]._x - 50, _y:this["enemy" + num]._y});
}
if (_root.groundHIT1.hitTest(_root.bullet0) and (_root.spearcankill == true)) {
_root.attachMovie("SpearFall", "SpearFall", 100, {_x:_root.bullet0._x, _y:_root.bullet0._y - 8});
removeMovieClip(_root.bullet0);
}
if (_root.groundHIT1.hitTest(_root.bullet1) and (_root.spearcankill == true)) {
_root.attachMovie("SpearFall", "SpearFall", 100, {_x:_root.bullet1._x, _y:_root.bullet1._y - 8});
removeMovieClip(_root.bullet1);
}
if (_root.groundHIT2.hitTest(_root.bullet0) and (_root.spearcankill == true)) {
_root.attachMovie("SpearFall", "SpearFall", 100, {_x:_root.bullet0._x, _y:_root.bullet0._y - 8});
removeMovieClip(_root.bullet0);
}
if (_root.groundHIT2.hitTest(_root.bullet1) and (_root.spearcankill == true)) {
_root.attachMovie("SpearFall", "SpearFall", 100, {_x:_root.bullet1._x, _y:_root.bullet1._y - 8});
removeMovieClip(_root.bullet1);
}
num++;
}
_x = (_x - Math.round((_x - (300 - ScrollOb._x)) / 10));
_y = (_y - Math.round((_y - (300 - ScrollOb._y)) / 10));
ScrollOb = hero;
menu._x = (-_x) + 300;
menu._y = (-_y) + 200;
wind._x = (-_x) + 300;
wind._y = (-_y) + 200;
snow._x = (-_x) + 43.4;
snow._y = (-_y) - 15.2;
menu2._x = (-_x) + 300;
menu2._y = (-_y) + 200;
maskRoot._x = (-_x) + 300;
maskRoot._y = (-_y) + 200;
bambook._x = (-_x) + 300;
groundHIT1._x = (-_x) + 1200;
groundHIT2._x = (-_x) - 600;
levelEnd._x = (-_x) + 300;
levelEnd._y = (-_y) + 200;
attachBM._x = (-_x) + 300;
attachBM._y = (-_y) + 200;
hero.gotoAndStop(frame);
jump = Key.isDown(38);
hero.vy = hero.vy + gravity;
hero._x = hero._x + hero.vx;
hero._y = hero._y + hero.vy;
if ((!pause) == true) {
if (jump) {
jumpnum = jumpnum - 1;
if (hero.grounded) {
hero.vy = -hero.jumpPower;
frame = "jump";
}
}
}
if (left) {
hero.vx = hero.vx - hero.spd;
hero._xscale = -100;
frame = "run";
} else if (right) {
hero.vx = hero.vx + hero.spd;
hero._xscale = 100;
frame = "run";
} else if (hero.grounded) {
hero.vx = hero.vx * 0.9;
frame = "stand";
} else {
frame = "jump";
}
if ((!pause) == true) {
if (Math.abs(hero.vx) > hero.maxSpd) {
hero.vx = hero.vx * 0.9;
}
}
hero.grounded = false;
if (ground.hitTest(hero._x, hero._y, true)) {
hero.vy = -Math.abs(hero.vy * 0.4);
hero.grounded = true;
frame = "stand";
while (ground.hitTest(hero._x, hero._y, true)) {
hero._y = hero._y - 0.2;
}
}
if (ground.hitTest(hero._x - (hero._width / 2), hero._y - (hero._height / 2), true)) {
hero.vx = Math.abs(hero.vx * 0.4);
while (ground.hitTest(hero._x - (hero._width / 2), hero._y - (hero._height / 2), true)) {
hero._x = hero._x + 0.2;
}
} else if (ground.hitTest(hero._x + (hero._width / 2), hero._y - (hero._height / 2), true)) {
hero.vx = -Math.abs(hero.vx * 0.4);
while (ground.hitTest(hero._x + (hero._width / 2), hero._y - (hero._height / 2), true)) {
hero._x = hero._x - 0.2;
}
}
}
};
stop();
Instance of Symbol 1481 MovieClip "menu" in Frame 78
onClipEvent (load) {
this.gotoAndStop(13);
}
Instance of Symbol 1569 MovieClip in Frame 78
onClipEvent (enterFrame) {
if (_root.groundHIT2.hitTest(this.HIT)) {
this._x = _root.groundHIT1._x - (random(100) + 10);
this.gotoAndStop(random(4) + 1);
} else if (_root.groundHIT1.hitTest(this.HIT)) {
this._x = _root.groundHIT2._x + (random(100) + 10);
this.gotoAndStop(random(3) + 1);
}
}
Instance of Symbol 1491 MovieClip "ground" in Frame 78
onClipEvent (load) {
this.gotoAndStop(1);
}
Instance of Symbol 1494 MovieClip in Frame 78
onClipEvent (enterFrame) {
if (_root.groundHIT2.hitTest(this.HIT)) {
this._x = _root.groundHIT1._x - 200;
this.gotoAndStop(random(2) + 1);
} else if (_root.groundHIT1.hitTest(this.HIT)) {
this._x = _root.groundHIT2._x + 200;
this.gotoAndStop(random(2) + 1);
}
trace(this._x);
}
Instance of Symbol 1500 MovieClip "hero" in Frame 78
onClipEvent (enterFrame) {
if (((Key.isDown(40) and Key.isDown(37)) and Key.isDown(39)) and ((!_root.heroDead) == true)) {
this._x = this._x - run;
}
if (_root.heroDead == true) {
this.state = 4;
}
if ((Key.isDown(40) and ((!air) == true)) and ((!_root.heroDead) == true)) {
if (this._xscale == 100) {
this._x = this._x - run3;
if ((!run3) <= 0) {
run3--;
}
}
if (this._xscale == -100) {
this._x = this._x + run3;
if ((!run3) <= 0) {
run3--;
}
}
state = 5;
if (Key.isDown(37) and ((!_root.heroDead) == true)) {
_x = (_x + run);
}
if (Key.isDown(39) and ((!_root.heroDead) == true)) {
_x = (_x - run);
}
}
if (((state == 5) and (_root.spearflyCheker == true)) and ((!_root.heroDead) == true)) {
_root.spearflyCheker = false;
_root.spearfly = false;
_root.sword = 11;
}
if (((state == 5) and (_root.arrowflyCheker == true)) and ((!_root.heroDead) == true)) {
_root.arrowflyCheker = false;
_root.arrowfly = false;
}
if (((Key.isDown(38) and (_root.jump2 == true)) and ((!spearfly) == true)) and ((!_root.heroDead) == true)) {
_root.hero.vy = -_root.hero.jumpPower;
_root.jumpnum = 100;
}
if (((air == true) and (_root.spearflyCheker == true)) and ((!_root.heroDead) == true)) {
_root.spearflyCheker = false;
_root.spearfly = false;
_root.sword = 11;
}
if (((air == true) and (_root.arrowflyCheker == true)) and ((!_root.heroDead) == true)) {
_root.arrowflyCheker = false;
_root.arrowfly = false;
}
if (((!Key.isDown(38)) and (_root.jumpnum <= 2)) and ((!_root.heroDead) == true)) {
_root.jump2 = true;
} else {
_root.jump2 = false;
}
if ((!Key.isDown(40)) and ((!_root.heroDead) == true)) {
run3 = run;
}
if (Key.isDown(37) and ((!_root.heroDead) == true)) {
run2 = run;
_x = (_x - run);
this._xscale = 100;
this.legs.play();
}
if (((!(Key.isDown(37) or Key.isDown(39))) and (!Key.isDown(40))) and ((!_root.heroDead) == true)) {
this.legs.gotoAndStop(1);
if (this._xscale == 100) {
this._x = this._x - run2;
if ((!run2) <= 0) {
run2--;
}
}
if (this._xscale == -100) {
this._x = this._x + run2;
if ((!run2) <= 0) {
run2--;
}
}
}
if ((Key.isDown(37) && (Key.isDown(39))) and ((!_root.heroDead) == true)) {
this._x = this._x + run;
this._xscale = -100;
this.legs.play();
}
if (((air == true) && (Key.isDown(37))) and ((!_root.heroDead) == true)) {
state = 3;
}
if (Key.isDown(39) and ((!_root.heroDead) == true)) {
run2 = run;
_x = (_x + run);
this._xscale = -100;
this.legs.play();
}
if (((air == true) && (Key.isDown(39))) and ((!_root.heroDead) == true)) {
state = 3;
}
gotoAndStop(state);
if ((Key.isDown(65) && (air == true)) and ((!_root.heroDead) == true)) {
_root.hero.jumping.gotoAndPlay(6);
}
if (((Key.isDown(65) and (Key.isDown(37) or Key.isDown(39))) and ((!air) == true)) and ((!_root.heroDead) == true)) {
_root.standAttack = false;
_root.runAttack = true;
}
this._y = this._y + 8;
_y = (_y + gravity);
if (air == true) {
state = 3;
}
if (_root.ground.hitTest(_x, _y, true)) {
air = false;
_root.jumpnum = 2;
} else {
air = true;
state = 3;
}
if (air == false) {
state = 1;
}
if ((_root.arrowfly == true) and ((!_root.gotArrows) == false)) {
_root.menu2.arrows.gotoAndStop(_root.menu2.arrows._currentframe + 1);
_root.spearT = false;
totalbullet++;
if (totalbullet > 1) {
totalbullet = 0;
}
if (_root.hero._xscale == -100) {
_root.attachMovie("bullet", "bullet" + totalbullet, totalbullet, {_x:_x, _y:_y, _rotation:this._rotation});
} else if (_root.hero._xscale == 100) {
_root.attachMovie("bullet2", "bullet" + totalbullet, totalbullet, {_x:_x, _y:_y, _rotation:this._rotation});
}
}
if (_root.spearfly == true) {
_root.spearT = true;
totalbullet++;
if (totalbullet > 1) {
totalbullet = 0;
}
if (_root.hero._xscale == -100) {
_root.attachMovie("bullet", "bullet" + totalbullet, totalbullet, {_x:_x, _y:_y, _rotation:this._rotation});
} else if (_root.hero._xscale == 100) {
_root.attachMovie("bullet2", "bullet" + totalbullet, totalbullet, {_x:_x, _y:_y, _rotation:this._rotation});
}
}
}
onClipEvent (load) {
totalbullet = 0;
}
Instance of Symbol 1501 MovieClip "steam" in Frame 78
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 1502 MovieClip "blink" in Frame 78
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 616 MovieClip "groundHIT1" in Frame 78
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 616 MovieClip "groundHIT2" in Frame 78
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 1551 MovieClip "swordOrBow" in Frame 78
onClipEvent (enterFrame) {
if (_root.swords == true) {
this.gotoAndStop(1);
}
if (_root.bows == true) {
this.gotoAndStop(2);
}
}
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 1547 MovieClip "menu2" in Frame 78
onClipEvent (enterFrame) {
this.swapDepths((this._y * 100) + this._x);
}
Instance of Symbol 1549 MovieClip "levelEnd" in Frame 78
onClipEvent (enterFrame) {
this.swapDepths((this._y * 1000) + this._x);
}
Frame 79
levelFrame = 80;
gotoAndStop (30);
_x = 0;
_y = 0;
Frame 80
swordE = 14;
bootsE = 41;
pantsE = 35;
weaponDamageE = 60;
bodyE = 19;
helmetE = 18;
shieldE = 1;
shield2E = 13;
shieldhandE = 2;
attackNum = 0;
attackNum2 = 0;
attackNum3 = 0;
attackNum4 = 0;
attackNum5 = 0;
gotArrows = true;
weaponDamage = 1;
HITMinusArmour = 0;
enemyHITPower = 300;
menu2.location.location = "Indonesia";
_root.attachMovie("attachBM", "attachBM", 50, {_x:300, _y:200});
removeMovieClip(_root.heroAttach);
enemies = 3;
enemyHP = 30;
blooddummy._x = 0;
blooddummy._y = 0;
dep = 200;
gravity = 0.5;
hero.vx = 0;
hero.vy = 0;
hero.jumpPower = 20;
hero.grounded = false;
ScrollOb = hero;
spearfly = false;
spear = true;
hero.run = 7;
deadEnemyNum = 1000;
num = 0;
while (num <= enemies) {
this["enemy" + num].power = 20;
this["enemy" + num].HP = 30;
groundGNum = 1000;
groundGNum2 = -500;
this["enemy" + num].time = 500;
num++;
}
roundTime = 2300;
sound = true;
sound2 = false;
music3 = true;
music = false;
music2 = false;
music4 = false;
onEnterFrame = function () {
trace(roundTime);
roundTime = roundTime - 1;
if ((roundTime <= 0) and ((!heroDead) == true)) {
hero.HIT.gotoAndStop(2);
levelEnd.play();
removeMovieClip(menu2);
}
if ((!_root.HITMinusArmour) <= 1) {
_root.HITMinusArmour = _root.enemyHITPower - _root.armour;
}
if (_root.HITMinusArmour <= 1) {
_root.HITMinusArmour = 1;
}
trace(_root.HITMinusArmour);
if ((!pause) == true) {
num = 0;
while (num <= enemies) {
if (hero._x >= groundGNum) {
groundGNum = groundGNum + 500;
groundGNum2 = groundGNum2 + 500;
ground._x = ground._x + 500;
} else if (hero._x <= groundGNum2) {
groundGNum2 = groundGNum2 - 500;
groundGNum = groundGNum - 500;
ground._x = ground._x - 500;
}
if (EXP >= 1000) {
levelUP = levelUP + 1;
EXP = 0;
}
deadEnemyNum++;
this["enemy" + num];
if ((this["enemy" + num].AAA.jumpFrame == true) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num].air = true;
this["enemy" + num].gotoAndStop(3);
} else if (((this["enemy" + num].AAA.jumpFrame == false) and ground.hitTest(this["enemy" + num]._x, this["enemy" + num]._y + 5, true)) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num].air = false;
this["enemy" + num].power = 20;
this["enemy" + num].gotoAndStop(1);
}
if ((this["enemy" + num].AAA._currentframe == 52) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num].AAA.gotoAndPlay(random(500) + 1);
}
if (ground.hitTest(this["enemy" + num]._x - 6, this["enemy" + num]._y - 10, true) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num]._x = this["enemy" + num]._x + enemySpeed;
} else if (ground.hitTest(this["enemy" + num]._x + 6, this["enemy" + num]._y - 10, true) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num]._x = this["enemy" + num]._x - enemySpeed;
}
if ((this["enemy" + num]._currentframe == 3) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num].air = true;
this["enemy" + num]._y = this["enemy" + num]._y - this["enemy" + num].power;
if ((!this["enemy" + num].power) <= 0) {
this["enemy" + num].power = this["enemy" + num].power - 0.5;
if (this["enemy" + num]._xscale == 100) {
this["enemy" + num]._x = this["enemy" + num]._x - enemySpeed;
}
if (this["enemy" + num]._xscale == -100) {
this["enemy" + num]._x = this["enemy" + num]._x + enemySpeed;
}
}
if ((this["enemy" + num]._x >= (hero._x + 1)) and (this["enemy" + num]._xscale == -100)) {
this["enemy" + num].jumpy.gotoAndStop(10);
} else if ((this["enemy" + num]._x <= (hero._x - 1)) and (this["enemy" + num]._xscale == 100)) {
this["enemy" + num].jumpy.gotoAndStop(10);
}
}
if ((this["enemy" + num].hitTest(hero) and ((!_root.heroDead) == true)) and (this["enemy" + num].hero2.canAttack == true)) {
this["enemy" + num].hero2.canAttack = false;
this["enemy" + num].hero2.gotoAndPlay(_root.enemyRandomAttack);
}
if (this["enemy" + num].hero2.HIT.hitTest(hero.HIT)) {
this["enemy" + num].hero2.HIT.HITin.gotoAndPlay(2);
blink.play();
}
if (this["enemy" + num].jumpy.jumpHIT.HIT.hitTest(hero.HIT)) {
this["enemy" + num].jumpy.jumpHIT.HIT.HITin.gotoAndPlay(2);
blink.play();
}
if (this["enemy" + num].hero2.HIT2.hitTest(hero.HIT)) {
this["enemy" + num].hero2.HIT2.HITin.gotoAndPlay(2);
if (this["enemy" + num]._xscale == 100) {
hero._x = hero._x - 50;
blink.play();
}
if (this["enemy" + num]._xscale == -100) {
hero._x = hero._x + 50;
blink.play();
}
}
if (((hero._x > this["enemy" + num]._x) and ((!this["enemy" + num].dead) == true)) and ((!this["enemy" + num].air) == true)) {
this["enemy" + num]._xscale = -100;
} else if (((hero._x < this["enemy" + num]._x) and ((!this["enemy" + num].dead) == true)) and ((!this["enemy" + num].air) == true)) {
this["enemy" + num]._xscale = 100;
}
if (((((hero._x > (this["enemy" + num]._x + 70)) and ((!this["enemy" + num].dead) == true)) and this["enemy" + num].hitTest(this["enemy" + num].AAA)) and ((!this["enemy" + num].air) == true)) and ((!this["enemy" + num].hero2.kick) == true)) {
this["enemy" + num].legs.gotoAndStop(4);
this["enemy" + num]._x = this["enemy" + num]._x + enemySpeed;
} else if (((((hero._x < (this["enemy" + num]._x - 70)) and ((!this["enemy" + num].dead) == true)) and this["enemy" + num].hitTest(this["enemy" + num].AAA)) and ((!this["enemy" + num].air) == true)) and ((!this["enemy" + num].hero2.kick) == true)) {
this["enemy" + num]._x = this["enemy" + num]._x - enemySpeed;
this["enemy" + num].legs.gotoAndStop(4);
} else {
this["enemy" + num].legs.gotoAndStop(1);
}
this["enemy" + num]._y = this["enemy" + num]._y + 8;
while (ground.hitTest(this["enemy" + num]._x, this["enemy" + num]._y, true)) {
this["enemy" + num]._y = this["enemy" + num]._y - 1;
}
while (ground.hitTest(hero._root.SpearFall._x, hero._root.SpearFall._y, true)) {
_root.SpearFall._y = _root.SpearFall._y - 1;
}
if (hero.hero2.HIT.hitTest(this["enemy" + num].HIT) and ((!this["enemy" + num].dead) == true)) {
_root.attachMovie("bloodAttach", "bloodAttach", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.hero2.HIT.HITin.gotoAndPlay(2);
this["enemy" + num].HP = this["enemy" + num].HP - weaponDamage;
if (this["enemy" + num].HP <= 0) {
_root.attachMovie("heartAttach", "heartAttach", 38, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y});
gold = gold + (random(50) + 10);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
if ((sword == 5) or (sword == 8)) {
this["enemy" + num].die.gotoAndPlay(80);
} else {
this["enemy" + num].die.gotoAndPlay(1);
}
}
}
if (hero.hero2.HIT2.hitTest(this["enemy" + num].HIT) and ((!this["enemy" + num].dead) == true)) {
_root.attachMovie("bloodAttachKICK", "bloodAttachKICK", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.hero2.HIT2.HITin.gotoAndPlay(2);
this["enemy" + num].HP = this["enemy" + num].HP - (Math.ceil(weaponDamage) * 5);
if (this["enemy" + num].HP <= 0) {
_root.attachMovie("heartAttach", "heartAttach", 38, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y});
gold = gold + (random(50) + 10);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
this["enemy" + num].die.gotoAndPlay(60);
}
}
if (hero.hero2.HIT3.hitTest(this["enemy" + num].HIT) and ((!this["enemy" + num].dead) == true)) {
_root.attachMovie("bloodAttachKICK", "bloodAttachKICK", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.hero2.HIT3.HITin.gotoAndPlay(2);
this["enemy" + num].gotoAndStop(2);
this["enemy" + num].gotKicked.gotoAndPlay(37);
this["enemy" + num].HP = this["enemy" + num].HP - (Math.ceil(weaponDamage) / 3);
if (hero._xscale == 100) {
this["enemy" + num]._x = this["enemy" + num]._x - 60;
}
if (hero._xscale == -100) {
this["enemy" + num]._x = this["enemy" + num]._x + 60;
}
if (this["enemy" + num].HP <= 0) {
_root.attachMovie("heartAttach", "heartAttach", 38, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y});
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
this["enemy" + num].die.gotoAndPlay(60);
}
}
if (hero.jumpy.HIT.hitTest(this["enemy" + num].HIT) and ((!this["enemy" + num].dead) == true)) {
_root.attachMovie("bloodAttachKICK", "bloodAttachKICK", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.jumpy.HIT.HITin.gotoAndStop(2);
this["enemy" + num].HP = this["enemy" + num].HP - (weaponDamage * 3);
if (this["enemy" + num].HP <= 0) {
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
this["enemy" + num].die.gotoAndPlay(100);
}
}
if (hero.sit.HIT.hitTest(this["enemy" + num].legs) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num].gotoAndStop(2);
_root.attachMovie("bloodAttachKICK", "bloodAttachKICK", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.sit.HIT.HITin.gotoAndStop(2);
this["enemy" + num].HP = this["enemy" + num].HP - (Math.ceil(weaponDamage) / 3);
if (hero._xscale == 100) {
this["enemy" + num]._x = this["enemy" + num]._x - 50;
}
if (hero._xscale == -100) {
this["enemy" + num]._x = this["enemy" + num]._x + 50;
}
if (this["enemy" + num].HP <= 0) {
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
this["enemy" + num].die.gotoAndPlay(1);
}
}
if (hero.sit.HIT2.hitTest(this["enemy" + num].HIT) and ((!this["enemy" + num].dead) == true)) {
_root.attachMovie("bloodAttach", "bloodAttach", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.sit.HIT2.HITin.gotoAndStop(2);
this["enemy" + num].HP = this["enemy" + num].HP - (weaponDamage * 2);
if (this["enemy" + num].HP <= 0) {
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
this["enemy" + num].die.gotoAndPlay(80);
}
}
if (this["enemy" + num].hitTest(_root.bullet0) and ((!this["enemy" + num].dead) == true)) {
removeMovieClip(_root.bullet0);
this["enemy" + num].gotoAndStop(4);
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
_root.attachMovie("bloodAttach", "bloodAttach", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
_root.attachMovie("deadEnemy", "deadEnemy", deadEnemyNum, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
if (spearcankill == true) {
this["enemy" + num].die.gotoAndPlay(20);
}
if (spearcankill == false) {
this["enemy" + num].die.gotoAndPlay(40);
}
this["enemy" + num].dead = true;
}
if (this["enemy" + num].HIT.hitTest(_root.bullet1) and ((!this["enemy" + num].dead) == true)) {
removeMovieClip(_root.bullet1);
this["enemy" + num].gotoAndStop(4);
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
_root.attachMovie("bloodAttach", "bloodAttach", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
_root.attachMovie("deadEnemy", "deadEnemy", deadEnemyNum, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
if (spearcankill == true) {
this["enemy" + num].die.gotoAndPlay(20);
}
if (spearcankill == false) {
this["enemy" + num].die.gotoAndPlay(40);
}
this["enemy" + num].dead = true;
}
if ((((hero.hero2.HIT.hitTest(this["enemy" + num].hero2) or hero.hero2.HIT2.hitTest(this["enemy" + num].hero2)) or hero.hero2.HIT3.hitTest(this["enemy" + num].hero2)) or hero.jumpy.HIT.hitTest(this["enemy" + num].hero2)) or (((hero.sit.HIT2.hitTest(this["enemy" + num].hero2) and (this["enemy" + num].HIT._currentframe > 1)) and (_root.blink._currentframe == 1)) and ((!shieldDead) == true))) {
_root.attachMovie("bloodAttach0Defence", "bloodAttach0Defence", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.hero2.HIT.HITin.gotoAndPlay(2);
hero.hero2.HIT2.HITin.gotoAndPlay(2);
hero.hero2.HIT3.HITin.gotoAndPlay(2);
hero.jumpy.HIT.HITin.gotoAndPlay(2);
if (this["enemy" + num]._xscale == 100) {
this["enemy" + num]._x = this["enemy" + num]._x + 30;
}
if (this["enemy" + num]._xscale == -100) {
this["enemy" + num]._x = this["enemy" + num]._x - 30;
}
}
shieldDead == false;
if ((((((_root.hero.HIT._currentframe == 2) and (_root.blink._currentframe == 1)) and ((!shieldDead) == true)) and this["enemy" + num].hero2.HIT.hitTest(hero)) or this["enemy" + num].hero2.HIT2.hitTest(hero)) or this["enemy" + num].jumpy.jumpHIT.HIT.hitTest(hero)) {
_root.attachMovie("bloodAttach0Defence2", "bloodAttach0Defence2", 50, {_x:hero._x, _y:hero._y - 50});
this["enemy" + num].hero2.HIT.HITin.gotoAndPlay(2);
this["enemy" + num].hero2.HIT2.HITin.gotoAndPlay(2);
this["enemy" + num].jumpy.jumpHIT.HIT.HITin.gotoAndPlay(2);
if (this["enemy" + num]._xscale == -100) {
hero._x = hero._x + 30;
}
if (this["enemy" + num]._xscale == 100) {
hero._x = hero._x - 30;
}
}
if ((this["enemy" + num].live == true) and (this["enemy" + num].dead == true)) {
this["enemy" + num].gotoAndStop(7);
this["enemy" + num].time = this["enemy" + num].time - 1;
if (this["enemy" + num].time <= 0) {
this["enemy" + num].time = random(400) + 20;
this["enemy" + num].HP = _root.enemyHP;
this["enemy" + num].gotoAndStop(1);
this["enemy" + num].live = false;
this["enemy" + num].dead = false;
this["enemy" + num]._x = menu._x - livePosition;
this["enemy" + num]._y = hero._y;
}
}
if (this["enemy" + num]._x <= (menu._x - 660)) {
this["enemy" + num]._y = hero._y;
this["enemy" + num]._x = menu._x - livePosition;
} else if (this["enemy" + num]._x >= (menu._x + 660)) {
this["enemy" + num]._y = hero._y;
this["enemy" + num]._x = menu._x - livePosition;
}
if (this["enemy" + num].die.spearReSpawn == true) {
this["enemy" + num].die.spearReSpawn = false;
_root.attachMovie("SpearFall", "SpearFall", 100, {_x:this["enemy" + num]._x - 50, _y:this["enemy" + num]._y});
}
if (_root.groundHIT1.hitTest(_root.bullet0) and (_root.spearcankill == true)) {
_root.attachMovie("SpearFall", "SpearFall", 100, {_x:_root.bullet0._x, _y:_root.bullet0._y - 8});
removeMovieClip(_root.bullet0);
}
if (_root.groundHIT1.hitTest(_root.bullet1) and (_root.spearcankill == true)) {
_root.attachMovie("SpearFall", "SpearFall", 100, {_x:_root.bullet1._x, _y:_root.bullet1._y - 8});
removeMovieClip(_root.bullet1);
}
if (_root.groundHIT2.hitTest(_root.bullet0) and (_root.spearcankill == true)) {
_root.attachMovie("SpearFall", "SpearFall", 100, {_x:_root.bullet0._x, _y:_root.bullet0._y - 8});
removeMovieClip(_root.bullet0);
}
if (_root.groundHIT2.hitTest(_root.bullet1) and (_root.spearcankill == true)) {
_root.attachMovie("SpearFall", "SpearFall", 100, {_x:_root.bullet1._x, _y:_root.bullet1._y - 8});
removeMovieClip(_root.bullet1);
}
num++;
}
_x = (_x - Math.round((_x - (300 - ScrollOb._x)) / 10));
_y = (_y - Math.round((_y - (300 - ScrollOb._y)) / 10));
ScrollOb = hero;
menu._x = (-_x) + 300;
menu._y = (-_y) + 200;
wind._x = (-_x) + 300;
wind._y = (-_y) + 200;
snow._x = (-_x) + 43.4;
snow._y = (-_y) - 15.2;
menu2._x = (-_x) + 300;
menu2._y = (-_y) + 200;
maskRoot._x = (-_x) + 300;
maskRoot._y = (-_y) + 200;
bambook._x = (-_x) + 300;
groundHIT1._x = (-_x) + 1200;
groundHIT2._x = (-_x) - 600;
levelEnd._x = (-_x) + 300;
levelEnd._y = (-_y) + 200;
attachBM._x = (-_x) + 300;
attachBM._y = (-_y) + 200;
hero.gotoAndStop(frame);
jump = Key.isDown(38);
hero.vy = hero.vy + gravity;
hero._x = hero._x + hero.vx;
hero._y = hero._y + hero.vy;
if ((!pause) == true) {
if (jump) {
jumpnum = jumpnum - 1;
if (hero.grounded) {
hero.vy = -hero.jumpPower;
frame = "jump";
}
}
}
if (left) {
hero.vx = hero.vx - hero.spd;
hero._xscale = -100;
frame = "run";
} else if (right) {
hero.vx = hero.vx + hero.spd;
hero._xscale = 100;
frame = "run";
} else if (hero.grounded) {
hero.vx = hero.vx * 0.9;
frame = "stand";
} else {
frame = "jump";
}
if ((!pause) == true) {
if (Math.abs(hero.vx) > hero.maxSpd) {
hero.vx = hero.vx * 0.9;
}
}
hero.grounded = false;
if (ground.hitTest(hero._x, hero._y, true)) {
hero.vy = -Math.abs(hero.vy * 0.4);
hero.grounded = true;
frame = "stand";
while (ground.hitTest(hero._x, hero._y, true)) {
hero._y = hero._y - 0.2;
}
}
if (ground.hitTest(hero._x - (hero._width / 2), hero._y - (hero._height / 2), true)) {
hero.vx = Math.abs(hero.vx * 0.4);
while (ground.hitTest(hero._x - (hero._width / 2), hero._y - (hero._height / 2), true)) {
hero._x = hero._x + 0.2;
}
} else if (ground.hitTest(hero._x + (hero._width / 2), hero._y - (hero._height / 2), true)) {
hero.vx = -Math.abs(hero.vx * 0.4);
while (ground.hitTest(hero._x + (hero._width / 2), hero._y - (hero._height / 2), true)) {
hero._x = hero._x - 0.2;
}
}
}
};
stop();
Instance of Symbol 1481 MovieClip "menu" in Frame 80
onClipEvent (load) {
this.gotoAndStop(16);
}
Instance of Symbol 1576 MovieClip in Frame 80
onClipEvent (enterFrame) {
if (_root.groundHIT2.hitTest(this.HIT)) {
this._x = _root.groundHIT1._x - (random(100) + 10);
this.gotoAndStop(random(4) + 1);
} else if (_root.groundHIT1.hitTest(this.HIT)) {
this._x = _root.groundHIT2._x + (random(100) + 10);
this.gotoAndStop(random(3) + 1);
}
}
Instance of Symbol 1491 MovieClip "ground" in Frame 80
onClipEvent (load) {
this.gotoAndStop(1);
}
Instance of Symbol 1500 MovieClip "hero" in Frame 80
onClipEvent (enterFrame) {
if (((Key.isDown(40) and Key.isDown(37)) and Key.isDown(39)) and ((!_root.heroDead) == true)) {
this._x = this._x - run;
}
if (_root.heroDead == true) {
this.state = 4;
}
if ((Key.isDown(40) and ((!air) == true)) and ((!_root.heroDead) == true)) {
if (this._xscale == 100) {
this._x = this._x - run3;
if ((!run3) <= 0) {
run3--;
}
}
if (this._xscale == -100) {
this._x = this._x + run3;
if ((!run3) <= 0) {
run3--;
}
}
state = 5;
if (Key.isDown(37) and ((!_root.heroDead) == true)) {
_x = (_x + run);
}
if (Key.isDown(39) and ((!_root.heroDead) == true)) {
_x = (_x - run);
}
}
if (((state == 5) and (_root.spearflyCheker == true)) and ((!_root.heroDead) == true)) {
_root.spearflyCheker = false;
_root.spearfly = false;
_root.sword = 11;
}
if (((state == 5) and (_root.arrowflyCheker == true)) and ((!_root.heroDead) == true)) {
_root.arrowflyCheker = false;
_root.arrowfly = false;
}
if (((Key.isDown(38) and (_root.jump2 == true)) and ((!spearfly) == true)) and ((!_root.heroDead) == true)) {
_root.hero.vy = -_root.hero.jumpPower;
_root.jumpnum = 100;
}
if (((air == true) and (_root.spearflyCheker == true)) and ((!_root.heroDead) == true)) {
_root.spearflyCheker = false;
_root.spearfly = false;
_root.sword = 11;
}
if (((air == true) and (_root.arrowflyCheker == true)) and ((!_root.heroDead) == true)) {
_root.arrowflyCheker = false;
_root.arrowfly = false;
}
if (((!Key.isDown(38)) and (_root.jumpnum <= 2)) and ((!_root.heroDead) == true)) {
_root.jump2 = true;
} else {
_root.jump2 = false;
}
if ((!Key.isDown(40)) and ((!_root.heroDead) == true)) {
run3 = run;
}
if (Key.isDown(37) and ((!_root.heroDead) == true)) {
run2 = run;
_x = (_x - run);
this._xscale = 100;
this.legs.play();
}
if (((!(Key.isDown(37) or Key.isDown(39))) and (!Key.isDown(40))) and ((!_root.heroDead) == true)) {
this.legs.gotoAndStop(1);
if (this._xscale == 100) {
this._x = this._x - run2;
if ((!run2) <= 0) {
run2--;
}
}
if (this._xscale == -100) {
this._x = this._x + run2;
if ((!run2) <= 0) {
run2--;
}
}
}
if ((Key.isDown(37) && (Key.isDown(39))) and ((!_root.heroDead) == true)) {
this._x = this._x + run;
this._xscale = -100;
this.legs.play();
}
if (((air == true) && (Key.isDown(37))) and ((!_root.heroDead) == true)) {
state = 3;
}
if (Key.isDown(39) and ((!_root.heroDead) == true)) {
run2 = run;
_x = (_x + run);
this._xscale = -100;
this.legs.play();
}
if (((air == true) && (Key.isDown(39))) and ((!_root.heroDead) == true)) {
state = 3;
}
gotoAndStop(state);
if ((Key.isDown(65) && (air == true)) and ((!_root.heroDead) == true)) {
_root.hero.jumping.gotoAndPlay(6);
}
if (((Key.isDown(65) and (Key.isDown(37) or Key.isDown(39))) and ((!air) == true)) and ((!_root.heroDead) == true)) {
_root.standAttack = false;
_root.runAttack = true;
}
this._y = this._y + 8;
_y = (_y + gravity);
if (air == true) {
state = 3;
}
if (_root.ground.hitTest(_x, _y, true)) {
air = false;
_root.jumpnum = 2;
} else {
air = true;
state = 3;
}
if (air == false) {
state = 1;
}
if ((_root.arrowfly == true) and ((!_root.gotArrows) == false)) {
_root.menu2.arrows.gotoAndStop(_root.menu2.arrows._currentframe + 1);
_root.spearT = false;
totalbullet++;
if (totalbullet > 1) {
totalbullet = 0;
}
if (_root.hero._xscale == -100) {
_root.attachMovie("bullet", "bullet" + totalbullet, totalbullet, {_x:_x, _y:_y, _rotation:this._rotation});
} else if (_root.hero._xscale == 100) {
_root.attachMovie("bullet2", "bullet" + totalbullet, totalbullet, {_x:_x, _y:_y, _rotation:this._rotation});
}
}
if (_root.spearfly == true) {
_root.spearT = true;
totalbullet++;
if (totalbullet > 1) {
totalbullet = 0;
}
if (_root.hero._xscale == -100) {
_root.attachMovie("bullet", "bullet" + totalbullet, totalbullet, {_x:_x, _y:_y, _rotation:this._rotation});
} else if (_root.hero._xscale == 100) {
_root.attachMovie("bullet2", "bullet" + totalbullet, totalbullet, {_x:_x, _y:_y, _rotation:this._rotation});
}
}
}
onClipEvent (load) {
totalbullet = 0;
}
Instance of Symbol 1501 MovieClip "steam" in Frame 80
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 1502 MovieClip "blink" in Frame 80
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 616 MovieClip "groundHIT1" in Frame 80
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 616 MovieClip "groundHIT2" in Frame 80
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 1551 MovieClip "swordOrBow" in Frame 80
onClipEvent (enterFrame) {
if (_root.swords == true) {
this.gotoAndStop(1);
}
if (_root.bows == true) {
this.gotoAndStop(2);
}
}
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 1547 MovieClip "menu2" in Frame 80
onClipEvent (enterFrame) {
this.swapDepths((this._y * 100) + this._x);
}
Instance of Symbol 1549 MovieClip "levelEnd" in Frame 80
onClipEvent (enterFrame) {
this.swapDepths((this._y * 1000) + this._x);
}
Frame 81
levelFrame = 82;
gotoAndStop (30);
_x = 0;
_y = 0;
Frame 82
swordE = 16;
bootsE = 43;
pantsE = 40;
weaponDamageE = 60;
bodyE = 21;
helmetE = 22;
shieldE = 1;
shield2E = 14;
shieldhandE = 16;
attackNum = 0;
attackNum2 = 0;
attackNum3 = 0;
attackNum4 = 0;
attackNum5 = 0;
gotArrows = true;
weaponDamage = 1;
HITMinusArmour = 0;
enemyHITPower = 300;
menu2.location.location = "Japan";
_root.attachMovie("attachBM", "attachBM", 50, {_x:300, _y:200});
removeMovieClip(_root.heroAttach);
enemies = 1;
enemyHP = 80;
blooddummy._x = 0;
blooddummy._y = 0;
dep = 200;
gravity = 0.5;
hero.vx = 0;
hero.vy = 0;
hero.jumpPower = 20;
hero.grounded = false;
ScrollOb = hero;
spearfly = false;
spear = true;
hero.run = 7;
deadEnemyNum = 1000;
num = 0;
while (num <= enemies) {
this["enemy" + num].power = 20;
this["enemy" + num].HP = 80;
groundGNum = 1000;
groundGNum2 = -500;
this["enemy" + num].time = 500;
num++;
}
roundTime = 2300;
sound = true;
sound2 = false;
music3 = true;
music = false;
music2 = false;
music4 = false;
onEnterFrame = function () {
trace(roundTime);
roundTime = roundTime - 1;
if ((roundTime <= 0) and ((!heroDead) == true)) {
hero.HIT.gotoAndStop(2);
levelEnd.play();
removeMovieClip(menu2);
}
if ((!_root.HITMinusArmour) <= 1) {
_root.HITMinusArmour = _root.enemyHITPower - _root.armour;
}
if (_root.HITMinusArmour <= 1) {
_root.HITMinusArmour = 1;
}
trace(_root.HITMinusArmour);
if ((!pause) == true) {
num = 0;
while (num <= enemies) {
if (hero._x >= groundGNum) {
groundGNum = groundGNum + 500;
groundGNum2 = groundGNum2 + 500;
ground._x = ground._x + 500;
} else if (hero._x <= groundGNum2) {
groundGNum2 = groundGNum2 - 500;
groundGNum = groundGNum - 500;
ground._x = ground._x - 500;
}
if (EXP >= 1000) {
levelUP = levelUP + 1;
EXP = 0;
}
deadEnemyNum++;
this["enemy" + num];
if ((this["enemy" + num].AAA.jumpFrame == true) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num].air = true;
this["enemy" + num].gotoAndStop(3);
} else if (((this["enemy" + num].AAA.jumpFrame == false) and ground.hitTest(this["enemy" + num]._x, this["enemy" + num]._y + 5, true)) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num].air = false;
this["enemy" + num].power = 20;
this["enemy" + num].gotoAndStop(1);
}
if ((this["enemy" + num].AAA._currentframe == 52) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num].AAA.gotoAndPlay(random(500) + 1);
}
if (ground.hitTest(this["enemy" + num]._x - 6, this["enemy" + num]._y - 10, true) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num]._x = this["enemy" + num]._x + enemySpeed;
} else if (ground.hitTest(this["enemy" + num]._x + 6, this["enemy" + num]._y - 10, true) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num]._x = this["enemy" + num]._x - enemySpeed;
}
if ((this["enemy" + num]._currentframe == 3) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num].air = true;
this["enemy" + num]._y = this["enemy" + num]._y - this["enemy" + num].power;
if ((!this["enemy" + num].power) <= 0) {
this["enemy" + num].power = this["enemy" + num].power - 0.5;
if (this["enemy" + num]._xscale == 100) {
this["enemy" + num]._x = this["enemy" + num]._x - enemySpeed;
}
if (this["enemy" + num]._xscale == -100) {
this["enemy" + num]._x = this["enemy" + num]._x + enemySpeed;
}
}
if ((this["enemy" + num]._x >= (hero._x + 1)) and (this["enemy" + num]._xscale == -100)) {
this["enemy" + num].jumpy.gotoAndStop(10);
} else if ((this["enemy" + num]._x <= (hero._x - 1)) and (this["enemy" + num]._xscale == 100)) {
this["enemy" + num].jumpy.gotoAndStop(10);
}
}
if ((this["enemy" + num].hitTest(hero) and ((!_root.heroDead) == true)) and (this["enemy" + num].hero2.canAttack == true)) {
this["enemy" + num].hero2.canAttack = false;
this["enemy" + num].hero2.gotoAndPlay(_root.enemyRandomAttack);
}
if (this["enemy" + num].hero2.HIT.hitTest(hero.HIT)) {
this["enemy" + num].hero2.HIT.HITin.gotoAndPlay(2);
blink.play();
}
if (this["enemy" + num].jumpy.jumpHIT.HIT.hitTest(hero.HIT)) {
this["enemy" + num].jumpy.jumpHIT.HIT.HITin.gotoAndPlay(2);
blink.play();
}
if (this["enemy" + num].hero2.HIT2.hitTest(hero.HIT)) {
this["enemy" + num].hero2.HIT2.HITin.gotoAndPlay(2);
if (this["enemy" + num]._xscale == 100) {
hero._x = hero._x - 50;
blink.play();
}
if (this["enemy" + num]._xscale == -100) {
hero._x = hero._x + 50;
blink.play();
}
}
if (((hero._x > this["enemy" + num]._x) and ((!this["enemy" + num].dead) == true)) and ((!this["enemy" + num].air) == true)) {
this["enemy" + num]._xscale = -100;
} else if (((hero._x < this["enemy" + num]._x) and ((!this["enemy" + num].dead) == true)) and ((!this["enemy" + num].air) == true)) {
this["enemy" + num]._xscale = 100;
}
if (((((hero._x > (this["enemy" + num]._x + 70)) and ((!this["enemy" + num].dead) == true)) and this["enemy" + num].hitTest(this["enemy" + num].AAA)) and ((!this["enemy" + num].air) == true)) and ((!this["enemy" + num].hero2.kick) == true)) {
this["enemy" + num].legs.gotoAndStop(4);
this["enemy" + num]._x = this["enemy" + num]._x + enemySpeed;
} else if (((((hero._x < (this["enemy" + num]._x - 70)) and ((!this["enemy" + num].dead) == true)) and this["enemy" + num].hitTest(this["enemy" + num].AAA)) and ((!this["enemy" + num].air) == true)) and ((!this["enemy" + num].hero2.kick) == true)) {
this["enemy" + num]._x = this["enemy" + num]._x - enemySpeed;
this["enemy" + num].legs.gotoAndStop(4);
} else {
this["enemy" + num].legs.gotoAndStop(1);
}
this["enemy" + num]._y = this["enemy" + num]._y + 8;
while (ground.hitTest(this["enemy" + num]._x, this["enemy" + num]._y, true)) {
this["enemy" + num]._y = this["enemy" + num]._y - 1;
}
while (ground.hitTest(hero._root.SpearFall._x, hero._root.SpearFall._y, true)) {
_root.SpearFall._y = _root.SpearFall._y - 1;
}
if (hero.hero2.HIT.hitTest(this["enemy" + num].HIT) and ((!this["enemy" + num].dead) == true)) {
_root.attachMovie("bloodAttach", "bloodAttach", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.hero2.HIT.HITin.gotoAndPlay(2);
this["enemy" + num].HP = this["enemy" + num].HP - weaponDamage;
if (this["enemy" + num].HP <= 0) {
_root.attachMovie("heartAttach", "heartAttach", 38, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y});
gold = gold + (random(50) + 10);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
if ((sword == 5) or (sword == 8)) {
this["enemy" + num].die.gotoAndPlay(80);
} else {
this["enemy" + num].die.gotoAndPlay(1);
}
}
}
if (hero.hero2.HIT2.hitTest(this["enemy" + num].HIT) and ((!this["enemy" + num].dead) == true)) {
_root.attachMovie("bloodAttachKICK", "bloodAttachKICK", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.hero2.HIT2.HITin.gotoAndPlay(2);
this["enemy" + num].HP = this["enemy" + num].HP - (Math.ceil(weaponDamage) * 5);
if (this["enemy" + num].HP <= 0) {
_root.attachMovie("heartAttach", "heartAttach", 38, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y});
gold = gold + (random(50) + 10);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
this["enemy" + num].die.gotoAndPlay(60);
}
}
if (hero.hero2.HIT3.hitTest(this["enemy" + num].HIT) and ((!this["enemy" + num].dead) == true)) {
_root.attachMovie("bloodAttachKICK", "bloodAttachKICK", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.hero2.HIT3.HITin.gotoAndPlay(2);
this["enemy" + num].gotoAndStop(2);
this["enemy" + num].gotKicked.gotoAndPlay(37);
this["enemy" + num].HP = this["enemy" + num].HP - (Math.ceil(weaponDamage) / 3);
if (hero._xscale == 100) {
this["enemy" + num]._x = this["enemy" + num]._x - 60;
}
if (hero._xscale == -100) {
this["enemy" + num]._x = this["enemy" + num]._x + 60;
}
if (this["enemy" + num].HP <= 0) {
_root.attachMovie("heartAttach", "heartAttach", 38, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y});
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
this["enemy" + num].die.gotoAndPlay(60);
}
}
if (hero.jumpy.HIT.hitTest(this["enemy" + num].HIT) and ((!this["enemy" + num].dead) == true)) {
_root.attachMovie("bloodAttachKICK", "bloodAttachKICK", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.jumpy.HIT.HITin.gotoAndStop(2);
this["enemy" + num].HP = this["enemy" + num].HP - (weaponDamage * 3);
if (this["enemy" + num].HP <= 0) {
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
this["enemy" + num].die.gotoAndPlay(100);
}
}
if (hero.sit.HIT.hitTest(this["enemy" + num].legs) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num].gotoAndStop(2);
_root.attachMovie("bloodAttachKICK", "bloodAttachKICK", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.sit.HIT.HITin.gotoAndStop(2);
this["enemy" + num].HP = this["enemy" + num].HP - (Math.ceil(weaponDamage) / 3);
if (hero._xscale == 100) {
this["enemy" + num]._x = this["enemy" + num]._x - 50;
}
if (hero._xscale == -100) {
this["enemy" + num]._x = this["enemy" + num]._x + 50;
}
if (this["enemy" + num].HP <= 0) {
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
this["enemy" + num].die.gotoAndPlay(1);
}
}
if (hero.sit.HIT2.hitTest(this["enemy" + num].HIT) and ((!this["enemy" + num].dead) == true)) {
_root.attachMovie("bloodAttach", "bloodAttach", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.sit.HIT2.HITin.gotoAndStop(2);
this["enemy" + num].HP = this["enemy" + num].HP - (weaponDamage * 2);
if (this["enemy" + num].HP <= 0) {
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
this["enemy" + num].die.gotoAndPlay(80);
}
}
if (this["enemy" + num].hitTest(_root.bullet0) and ((!this["enemy" + num].dead) == true)) {
removeMovieClip(_root.bullet0);
this["enemy" + num].gotoAndStop(4);
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
_root.attachMovie("bloodAttach", "bloodAttach", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
_root.attachMovie("deadEnemy", "deadEnemy", deadEnemyNum, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
if (spearcankill == true) {
this["enemy" + num].die.gotoAndPlay(20);
}
if (spearcankill == false) {
this["enemy" + num].die.gotoAndPlay(40);
}
this["enemy" + num].dead = true;
}
if (this["enemy" + num].HIT.hitTest(_root.bullet1) and ((!this["enemy" + num].dead) == true)) {
removeMovieClip(_root.bullet1);
this["enemy" + num].gotoAndStop(4);
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
_root.attachMovie("bloodAttach", "bloodAttach", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
_root.attachMovie("deadEnemy", "deadEnemy", deadEnemyNum, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
if (spearcankill == true) {
this["enemy" + num].die.gotoAndPlay(20);
}
if (spearcankill == false) {
this["enemy" + num].die.gotoAndPlay(40);
}
this["enemy" + num].dead = true;
}
if ((((hero.hero2.HIT.hitTest(this["enemy" + num].hero2) or hero.hero2.HIT2.hitTest(this["enemy" + num].hero2)) or hero.hero2.HIT3.hitTest(this["enemy" + num].hero2)) or hero.jumpy.HIT.hitTest(this["enemy" + num].hero2)) or (((hero.sit.HIT2.hitTest(this["enemy" + num].hero2) and (this["enemy" + num].HIT._currentframe > 1)) and (_root.blink._currentframe == 1)) and ((!shieldDead) == true))) {
_root.attachMovie("bloodAttach0Defence", "bloodAttach0Defence", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.hero2.HIT.HITin.gotoAndPlay(2);
hero.hero2.HIT2.HITin.gotoAndPlay(2);
hero.hero2.HIT3.HITin.gotoAndPlay(2);
hero.jumpy.HIT.HITin.gotoAndPlay(2);
if (this["enemy" + num]._xscale == 100) {
this["enemy" + num]._x = this["enemy" + num]._x + 30;
}
if (this["enemy" + num]._xscale == -100) {
this["enemy" + num]._x = this["enemy" + num]._x - 30;
}
}
shieldDead == false;
if ((((((_root.hero.HIT._currentframe == 2) and (_root.blink._currentframe == 1)) and ((!shieldDead) == true)) and this["enemy" + num].hero2.HIT.hitTest(hero)) or this["enemy" + num].hero2.HIT2.hitTest(hero)) or this["enemy" + num].jumpy.jumpHIT.HIT.hitTest(hero)) {
_root.attachMovie("bloodAttach0Defence2", "bloodAttach0Defence2", 50, {_x:hero._x, _y:hero._y - 50});
this["enemy" + num].hero2.HIT.HITin.gotoAndPlay(2);
this["enemy" + num].hero2.HIT2.HITin.gotoAndPlay(2);
this["enemy" + num].jumpy.jumpHIT.HIT.HITin.gotoAndPlay(2);
if (this["enemy" + num]._xscale == -100) {
hero._x = hero._x + 30;
}
if (this["enemy" + num]._xscale == 100) {
hero._x = hero._x - 30;
}
}
if ((this["enemy" + num].live == true) and (this["enemy" + num].dead == true)) {
this["enemy" + num].gotoAndStop(7);
this["enemy" + num].time = this["enemy" + num].time - 1;
if (this["enemy" + num].time <= 0) {
this["enemy" + num].time = random(400) + 20;
this["enemy" + num].HP = _root.enemyHP;
this["enemy" + num].gotoAndStop(1);
this["enemy" + num].live = false;
this["enemy" + num].dead = false;
this["enemy" + num]._x = menu._x - livePosition;
this["enemy" + num]._y = hero._y;
}
}
if (this["enemy" + num]._x <= (menu._x - 660)) {
this["enemy" + num]._y = hero._y;
this["enemy" + num]._x = menu._x - livePosition;
} else if (this["enemy" + num]._x >= (menu._x + 660)) {
this["enemy" + num]._y = hero._y;
this["enemy" + num]._x = menu._x - livePosition;
}
if (this["enemy" + num].die.spearReSpawn == true) {
this["enemy" + num].die.spearReSpawn = false;
_root.attachMovie("SpearFall", "SpearFall", 100, {_x:this["enemy" + num]._x - 50, _y:this["enemy" + num]._y});
}
if (_root.groundHIT1.hitTest(_root.bullet0) and (_root.spearcankill == true)) {
_root.attachMovie("SpearFall", "SpearFall", 100, {_x:_root.bullet0._x, _y:_root.bullet0._y - 8});
removeMovieClip(_root.bullet0);
}
if (_root.groundHIT1.hitTest(_root.bullet1) and (_root.spearcankill == true)) {
_root.attachMovie("SpearFall", "SpearFall", 100, {_x:_root.bullet1._x, _y:_root.bullet1._y - 8});
removeMovieClip(_root.bullet1);
}
if (_root.groundHIT2.hitTest(_root.bullet0) and (_root.spearcankill == true)) {
_root.attachMovie("SpearFall", "SpearFall", 100, {_x:_root.bullet0._x, _y:_root.bullet0._y - 8});
removeMovieClip(_root.bullet0);
}
if (_root.groundHIT2.hitTest(_root.bullet1) and (_root.spearcankill == true)) {
_root.attachMovie("SpearFall", "SpearFall", 100, {_x:_root.bullet1._x, _y:_root.bullet1._y - 8});
removeMovieClip(_root.bullet1);
}
num++;
}
_x = (_x - Math.round((_x - (300 - ScrollOb._x)) / 10));
_y = (_y - Math.round((_y - (300 - ScrollOb._y)) / 10));
ScrollOb = hero;
menu._x = (-_x) + 300;
menu._y = (-_y) + 200;
wind._x = (-_x) + 300;
wind._y = (-_y) + 200;
snow._x = (-_x) + 43.4;
snow._y = (-_y) - 15.2;
menu2._x = (-_x) + 300;
menu2._y = (-_y) + 200;
maskRoot._x = (-_x) + 300;
maskRoot._y = (-_y) + 200;
bambook._x = (-_x) + 300;
groundHIT1._x = (-_x) + 1200;
groundHIT2._x = (-_x) - 600;
levelEnd._x = (-_x) + 300;
levelEnd._y = (-_y) + 200;
attachBM._x = (-_x) + 300;
attachBM._y = (-_y) + 200;
hero.gotoAndStop(frame);
jump = Key.isDown(38);
hero.vy = hero.vy + gravity;
hero._x = hero._x + hero.vx;
hero._y = hero._y + hero.vy;
if ((!pause) == true) {
if (jump) {
jumpnum = jumpnum - 1;
if (hero.grounded) {
hero.vy = -hero.jumpPower;
frame = "jump";
}
}
}
if (left) {
hero.vx = hero.vx - hero.spd;
hero._xscale = -100;
frame = "run";
} else if (right) {
hero.vx = hero.vx + hero.spd;
hero._xscale = 100;
frame = "run";
} else if (hero.grounded) {
hero.vx = hero.vx * 0.9;
frame = "stand";
} else {
frame = "jump";
}
if ((!pause) == true) {
if (Math.abs(hero.vx) > hero.maxSpd) {
hero.vx = hero.vx * 0.9;
}
}
hero.grounded = false;
if (ground.hitTest(hero._x, hero._y, true)) {
hero.vy = -Math.abs(hero.vy * 0.4);
hero.grounded = true;
frame = "stand";
while (ground.hitTest(hero._x, hero._y, true)) {
hero._y = hero._y - 0.2;
}
}
if (ground.hitTest(hero._x - (hero._width / 2), hero._y - (hero._height / 2), true)) {
hero.vx = Math.abs(hero.vx * 0.4);
while (ground.hitTest(hero._x - (hero._width / 2), hero._y - (hero._height / 2), true)) {
hero._x = hero._x + 0.2;
}
} else if (ground.hitTest(hero._x + (hero._width / 2), hero._y - (hero._height / 2), true)) {
hero.vx = -Math.abs(hero.vx * 0.4);
while (ground.hitTest(hero._x + (hero._width / 2), hero._y - (hero._height / 2), true)) {
hero._x = hero._x - 0.2;
}
}
}
};
stop();
Instance of Symbol 1481 MovieClip "menu" in Frame 82
onClipEvent (load) {
this.gotoAndStop(18);
}
Instance of Symbol 1580 MovieClip in Frame 82
onClipEvent (enterFrame) {
if (_root.groundHIT2.hitTest(this.HIT)) {
this._x = _root.groundHIT1._x - (random(100) + 10);
this.gotoAndStop(random(4) + 1);
} else if (_root.groundHIT1.hitTest(this.HIT)) {
this._x = _root.groundHIT2._x + (random(100) + 10);
this.gotoAndStop(random(3) + 1);
}
}
Instance of Symbol 1491 MovieClip "ground" in Frame 82
onClipEvent (load) {
this.gotoAndStop(2);
}
Instance of Symbol 1500 MovieClip "hero" in Frame 82
onClipEvent (enterFrame) {
if (((Key.isDown(40) and Key.isDown(37)) and Key.isDown(39)) and ((!_root.heroDead) == true)) {
this._x = this._x - run;
}
if (_root.heroDead == true) {
this.state = 4;
}
if ((Key.isDown(40) and ((!air) == true)) and ((!_root.heroDead) == true)) {
if (this._xscale == 100) {
this._x = this._x - run3;
if ((!run3) <= 0) {
run3--;
}
}
if (this._xscale == -100) {
this._x = this._x + run3;
if ((!run3) <= 0) {
run3--;
}
}
state = 5;
if (Key.isDown(37) and ((!_root.heroDead) == true)) {
_x = (_x + run);
}
if (Key.isDown(39) and ((!_root.heroDead) == true)) {
_x = (_x - run);
}
}
if (((state == 5) and (_root.spearflyCheker == true)) and ((!_root.heroDead) == true)) {
_root.spearflyCheker = false;
_root.spearfly = false;
_root.sword = 11;
}
if (((state == 5) and (_root.arrowflyCheker == true)) and ((!_root.heroDead) == true)) {
_root.arrowflyCheker = false;
_root.arrowfly = false;
}
if (((Key.isDown(38) and (_root.jump2 == true)) and ((!spearfly) == true)) and ((!_root.heroDead) == true)) {
_root.hero.vy = -_root.hero.jumpPower;
_root.jumpnum = 100;
}
if (((air == true) and (_root.spearflyCheker == true)) and ((!_root.heroDead) == true)) {
_root.spearflyCheker = false;
_root.spearfly = false;
_root.sword = 11;
}
if (((air == true) and (_root.arrowflyCheker == true)) and ((!_root.heroDead) == true)) {
_root.arrowflyCheker = false;
_root.arrowfly = false;
}
if (((!Key.isDown(38)) and (_root.jumpnum <= 2)) and ((!_root.heroDead) == true)) {
_root.jump2 = true;
} else {
_root.jump2 = false;
}
if ((!Key.isDown(40)) and ((!_root.heroDead) == true)) {
run3 = run;
}
if (Key.isDown(37) and ((!_root.heroDead) == true)) {
run2 = run;
_x = (_x - run);
this._xscale = 100;
this.legs.play();
}
if (((!(Key.isDown(37) or Key.isDown(39))) and (!Key.isDown(40))) and ((!_root.heroDead) == true)) {
this.legs.gotoAndStop(1);
if (this._xscale == 100) {
this._x = this._x - run2;
if ((!run2) <= 0) {
run2--;
}
}
if (this._xscale == -100) {
this._x = this._x + run2;
if ((!run2) <= 0) {
run2--;
}
}
}
if ((Key.isDown(37) && (Key.isDown(39))) and ((!_root.heroDead) == true)) {
this._x = this._x + run;
this._xscale = -100;
this.legs.play();
}
if (((air == true) && (Key.isDown(37))) and ((!_root.heroDead) == true)) {
state = 3;
}
if (Key.isDown(39) and ((!_root.heroDead) == true)) {
run2 = run;
_x = (_x + run);
this._xscale = -100;
this.legs.play();
}
if (((air == true) && (Key.isDown(39))) and ((!_root.heroDead) == true)) {
state = 3;
}
gotoAndStop(state);
if ((Key.isDown(65) && (air == true)) and ((!_root.heroDead) == true)) {
_root.hero.jumping.gotoAndPlay(6);
}
if (((Key.isDown(65) and (Key.isDown(37) or Key.isDown(39))) and ((!air) == true)) and ((!_root.heroDead) == true)) {
_root.standAttack = false;
_root.runAttack = true;
}
this._y = this._y + 8;
_y = (_y + gravity);
if (air == true) {
state = 3;
}
if (_root.ground.hitTest(_x, _y, true)) {
air = false;
_root.jumpnum = 2;
} else {
air = true;
state = 3;
}
if (air == false) {
state = 1;
}
if ((_root.arrowfly == true) and ((!_root.gotArrows) == false)) {
_root.menu2.arrows.gotoAndStop(_root.menu2.arrows._currentframe + 1);
_root.spearT = false;
totalbullet++;
if (totalbullet > 1) {
totalbullet = 0;
}
if (_root.hero._xscale == -100) {
_root.attachMovie("bullet", "bullet" + totalbullet, totalbullet, {_x:_x, _y:_y, _rotation:this._rotation});
} else if (_root.hero._xscale == 100) {
_root.attachMovie("bullet2", "bullet" + totalbullet, totalbullet, {_x:_x, _y:_y, _rotation:this._rotation});
}
}
if (_root.spearfly == true) {
_root.spearT = true;
totalbullet++;
if (totalbullet > 1) {
totalbullet = 0;
}
if (_root.hero._xscale == -100) {
_root.attachMovie("bullet", "bullet" + totalbullet, totalbullet, {_x:_x, _y:_y, _rotation:this._rotation});
} else if (_root.hero._xscale == 100) {
_root.attachMovie("bullet2", "bullet" + totalbullet, totalbullet, {_x:_x, _y:_y, _rotation:this._rotation});
}
}
}
onClipEvent (load) {
totalbullet = 0;
}
Instance of Symbol 1501 MovieClip "steam" in Frame 82
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 1502 MovieClip "blink" in Frame 82
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 616 MovieClip "groundHIT1" in Frame 82
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 616 MovieClip "groundHIT2" in Frame 82
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 1551 MovieClip "swordOrBow" in Frame 82
onClipEvent (enterFrame) {
if (_root.swords == true) {
this.gotoAndStop(1);
}
if (_root.bows == true) {
this.gotoAndStop(2);
}
}
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 1547 MovieClip "menu2" in Frame 82
onClipEvent (enterFrame) {
this.swapDepths((this._y * 100) + this._x);
}
Instance of Symbol 1549 MovieClip "levelEnd" in Frame 82
onClipEvent (enterFrame) {
this.swapDepths((this._y * 1000) + this._x);
}
Frame 83
levelFrame = 84;
gotoAndStop (30);
_x = 0;
_y = 0;
Frame 84
swordE = 16;
bootsE = 42;
pantsE = 40;
weaponDamageE = 60;
bodyE = 22;
helmetE = 24;
shieldE = 1;
shield2E = 4;
shieldhandE = 7;
attackNum = 0;
attackNum2 = 0;
attackNum3 = 0;
attackNum4 = 0;
attackNum5 = 0;
gotArrows = true;
weaponDamage = 1;
HITMinusArmour = 0;
enemyHITPower = 300;
menu2.location.location = "Japan2";
_root.attachMovie("attachBM", "attachBM", 50, {_x:300, _y:200});
removeMovieClip(_root.heroAttach);
enemies = 1;
enemyHP = 150;
blooddummy._x = 0;
blooddummy._y = 0;
dep = 200;
gravity = 0.5;
hero.vx = 0;
hero.vy = 0;
hero.jumpPower = 20;
hero.grounded = false;
ScrollOb = hero;
spearfly = false;
spear = true;
hero.run = 7;
deadEnemyNum = 1000;
num = 0;
while (num <= enemies) {
this["enemy" + num].power = 20;
this["enemy" + num].HP = 150;
groundGNum = 1000;
groundGNum2 = -500;
this["enemy" + num].time = 500;
num++;
}
roundTime = 2300;
sound = true;
sound2 = false;
music3 = true;
music = false;
music2 = false;
music4 = false;
onEnterFrame = function () {
trace(roundTime);
roundTime = roundTime - 1;
if ((roundTime <= 0) and ((!heroDead) == true)) {
hero.HIT.gotoAndStop(2);
levelEnd.play();
removeMovieClip(menu2);
}
if ((!_root.HITMinusArmour) <= 1) {
_root.HITMinusArmour = _root.enemyHITPower - _root.armour;
}
if (_root.HITMinusArmour <= 1) {
_root.HITMinusArmour = 1;
}
trace(_root.HITMinusArmour);
if ((!pause) == true) {
num = 0;
while (num <= enemies) {
if (hero._x >= groundGNum) {
groundGNum = groundGNum + 500;
groundGNum2 = groundGNum2 + 500;
ground._x = ground._x + 500;
} else if (hero._x <= groundGNum2) {
groundGNum2 = groundGNum2 - 500;
groundGNum = groundGNum - 500;
ground._x = ground._x - 500;
}
if (EXP >= 1000) {
levelUP = levelUP + 1;
EXP = 0;
}
deadEnemyNum++;
this["enemy" + num];
if ((this["enemy" + num].AAA.jumpFrame == true) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num].air = true;
this["enemy" + num].gotoAndStop(3);
} else if (((this["enemy" + num].AAA.jumpFrame == false) and ground.hitTest(this["enemy" + num]._x, this["enemy" + num]._y + 5, true)) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num].air = false;
this["enemy" + num].power = 20;
this["enemy" + num].gotoAndStop(1);
}
if ((this["enemy" + num].AAA._currentframe == 52) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num].AAA.gotoAndPlay(random(500) + 1);
}
if (ground.hitTest(this["enemy" + num]._x - 6, this["enemy" + num]._y - 10, true) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num]._x = this["enemy" + num]._x + enemySpeed;
} else if (ground.hitTest(this["enemy" + num]._x + 6, this["enemy" + num]._y - 10, true) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num]._x = this["enemy" + num]._x - enemySpeed;
}
if ((this["enemy" + num]._currentframe == 3) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num].air = true;
this["enemy" + num]._y = this["enemy" + num]._y - this["enemy" + num].power;
if ((!this["enemy" + num].power) <= 0) {
this["enemy" + num].power = this["enemy" + num].power - 0.5;
if (this["enemy" + num]._xscale == 100) {
this["enemy" + num]._x = this["enemy" + num]._x - enemySpeed;
}
if (this["enemy" + num]._xscale == -100) {
this["enemy" + num]._x = this["enemy" + num]._x + enemySpeed;
}
}
if ((this["enemy" + num]._x >= (hero._x + 1)) and (this["enemy" + num]._xscale == -100)) {
this["enemy" + num].jumpy.gotoAndStop(10);
} else if ((this["enemy" + num]._x <= (hero._x - 1)) and (this["enemy" + num]._xscale == 100)) {
this["enemy" + num].jumpy.gotoAndStop(10);
}
}
if ((this["enemy" + num].hitTest(hero) and ((!_root.heroDead) == true)) and (this["enemy" + num].hero2.canAttack == true)) {
this["enemy" + num].hero2.canAttack = false;
this["enemy" + num].hero2.gotoAndPlay(_root.enemyRandomAttack);
}
if (this["enemy" + num].hero2.HIT.hitTest(hero.HIT)) {
this["enemy" + num].hero2.HIT.HITin.gotoAndPlay(2);
blink.play();
}
if (this["enemy" + num].jumpy.jumpHIT.HIT.hitTest(hero.HIT)) {
this["enemy" + num].jumpy.jumpHIT.HIT.HITin.gotoAndPlay(2);
blink.play();
}
if (this["enemy" + num].hero2.HIT2.hitTest(hero.HIT)) {
this["enemy" + num].hero2.HIT2.HITin.gotoAndPlay(2);
if (this["enemy" + num]._xscale == 100) {
hero._x = hero._x - 50;
blink.play();
}
if (this["enemy" + num]._xscale == -100) {
hero._x = hero._x + 50;
blink.play();
}
}
if (((hero._x > this["enemy" + num]._x) and ((!this["enemy" + num].dead) == true)) and ((!this["enemy" + num].air) == true)) {
this["enemy" + num]._xscale = -100;
} else if (((hero._x < this["enemy" + num]._x) and ((!this["enemy" + num].dead) == true)) and ((!this["enemy" + num].air) == true)) {
this["enemy" + num]._xscale = 100;
}
if (((((hero._x > (this["enemy" + num]._x + 70)) and ((!this["enemy" + num].dead) == true)) and this["enemy" + num].hitTest(this["enemy" + num].AAA)) and ((!this["enemy" + num].air) == true)) and ((!this["enemy" + num].hero2.kick) == true)) {
this["enemy" + num].legs.gotoAndStop(4);
this["enemy" + num]._x = this["enemy" + num]._x + enemySpeed;
} else if (((((hero._x < (this["enemy" + num]._x - 70)) and ((!this["enemy" + num].dead) == true)) and this["enemy" + num].hitTest(this["enemy" + num].AAA)) and ((!this["enemy" + num].air) == true)) and ((!this["enemy" + num].hero2.kick) == true)) {
this["enemy" + num]._x = this["enemy" + num]._x - enemySpeed;
this["enemy" + num].legs.gotoAndStop(4);
} else {
this["enemy" + num].legs.gotoAndStop(1);
}
this["enemy" + num]._y = this["enemy" + num]._y + 8;
while (ground.hitTest(this["enemy" + num]._x, this["enemy" + num]._y, true)) {
this["enemy" + num]._y = this["enemy" + num]._y - 1;
}
while (ground.hitTest(hero._root.SpearFall._x, hero._root.SpearFall._y, true)) {
_root.SpearFall._y = _root.SpearFall._y - 1;
}
if (hero.hero2.HIT.hitTest(this["enemy" + num].HIT) and ((!this["enemy" + num].dead) == true)) {
_root.attachMovie("bloodAttach", "bloodAttach", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.hero2.HIT.HITin.gotoAndPlay(2);
this["enemy" + num].HP = this["enemy" + num].HP - weaponDamage;
if (this["enemy" + num].HP <= 0) {
_root.attachMovie("heartAttach", "heartAttach", 38, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y});
gold = gold + (random(50) + 10);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
if ((sword == 5) or (sword == 8)) {
this["enemy" + num].die.gotoAndPlay(80);
} else {
this["enemy" + num].die.gotoAndPlay(1);
}
}
}
if (hero.hero2.HIT2.hitTest(this["enemy" + num].HIT) and ((!this["enemy" + num].dead) == true)) {
_root.attachMovie("bloodAttachKICK", "bloodAttachKICK", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.hero2.HIT2.HITin.gotoAndPlay(2);
this["enemy" + num].HP = this["enemy" + num].HP - (Math.ceil(weaponDamage) * 5);
if (this["enemy" + num].HP <= 0) {
_root.attachMovie("heartAttach", "heartAttach", 38, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y});
gold = gold + (random(50) + 10);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
this["enemy" + num].die.gotoAndPlay(60);
}
}
if (hero.hero2.HIT3.hitTest(this["enemy" + num].HIT) and ((!this["enemy" + num].dead) == true)) {
_root.attachMovie("bloodAttachKICK", "bloodAttachKICK", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.hero2.HIT3.HITin.gotoAndPlay(2);
this["enemy" + num].gotoAndStop(2);
this["enemy" + num].gotKicked.gotoAndPlay(37);
this["enemy" + num].HP = this["enemy" + num].HP - (Math.ceil(weaponDamage) / 3);
if (hero._xscale == 100) {
this["enemy" + num]._x = this["enemy" + num]._x - 60;
}
if (hero._xscale == -100) {
this["enemy" + num]._x = this["enemy" + num]._x + 60;
}
if (this["enemy" + num].HP <= 0) {
_root.attachMovie("heartAttach", "heartAttach", 38, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y});
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
this["enemy" + num].die.gotoAndPlay(60);
}
}
if (hero.jumpy.HIT.hitTest(this["enemy" + num].HIT) and ((!this["enemy" + num].dead) == true)) {
_root.attachMovie("bloodAttachKICK", "bloodAttachKICK", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.jumpy.HIT.HITin.gotoAndStop(2);
this["enemy" + num].HP = this["enemy" + num].HP - (weaponDamage * 3);
if (this["enemy" + num].HP <= 0) {
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
this["enemy" + num].die.gotoAndPlay(100);
}
}
if (hero.sit.HIT.hitTest(this["enemy" + num].legs) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num].gotoAndStop(2);
_root.attachMovie("bloodAttachKICK", "bloodAttachKICK", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.sit.HIT.HITin.gotoAndStop(2);
this["enemy" + num].HP = this["enemy" + num].HP - (Math.ceil(weaponDamage) / 3);
if (hero._xscale == 100) {
this["enemy" + num]._x = this["enemy" + num]._x - 50;
}
if (hero._xscale == -100) {
this["enemy" + num]._x = this["enemy" + num]._x + 50;
}
if (this["enemy" + num].HP <= 0) {
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
this["enemy" + num].die.gotoAndPlay(1);
}
}
if (hero.sit.HIT2.hitTest(this["enemy" + num].HIT) and ((!this["enemy" + num].dead) == true)) {
_root.attachMovie("bloodAttach", "bloodAttach", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.sit.HIT2.HITin.gotoAndStop(2);
this["enemy" + num].HP = this["enemy" + num].HP - (weaponDamage * 2);
if (this["enemy" + num].HP <= 0) {
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
this["enemy" + num].die.gotoAndPlay(80);
}
}
if (this["enemy" + num].hitTest(_root.bullet0) and ((!this["enemy" + num].dead) == true)) {
removeMovieClip(_root.bullet0);
this["enemy" + num].gotoAndStop(4);
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
_root.attachMovie("bloodAttach", "bloodAttach", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
_root.attachMovie("deadEnemy", "deadEnemy", deadEnemyNum, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
if (spearcankill == true) {
this["enemy" + num].die.gotoAndPlay(20);
}
if (spearcankill == false) {
this["enemy" + num].die.gotoAndPlay(40);
}
this["enemy" + num].dead = true;
}
if (this["enemy" + num].HIT.hitTest(_root.bullet1) and ((!this["enemy" + num].dead) == true)) {
removeMovieClip(_root.bullet1);
this["enemy" + num].gotoAndStop(4);
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
_root.attachMovie("bloodAttach", "bloodAttach", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
_root.attachMovie("deadEnemy", "deadEnemy", deadEnemyNum, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
if (spearcankill == true) {
this["enemy" + num].die.gotoAndPlay(20);
}
if (spearcankill == false) {
this["enemy" + num].die.gotoAndPlay(40);
}
this["enemy" + num].dead = true;
}
if ((((hero.hero2.HIT.hitTest(this["enemy" + num].hero2) or hero.hero2.HIT2.hitTest(this["enemy" + num].hero2)) or hero.hero2.HIT3.hitTest(this["enemy" + num].hero2)) or hero.jumpy.HIT.hitTest(this["enemy" + num].hero2)) or (((hero.sit.HIT2.hitTest(this["enemy" + num].hero2) and (this["enemy" + num].HIT._currentframe > 1)) and (_root.blink._currentframe == 1)) and ((!shieldDead) == true))) {
_root.attachMovie("bloodAttach0Defence", "bloodAttach0Defence", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.hero2.HIT.HITin.gotoAndPlay(2);
hero.hero2.HIT2.HITin.gotoAndPlay(2);
hero.hero2.HIT3.HITin.gotoAndPlay(2);
hero.jumpy.HIT.HITin.gotoAndPlay(2);
if (this["enemy" + num]._xscale == 100) {
this["enemy" + num]._x = this["enemy" + num]._x + 30;
}
if (this["enemy" + num]._xscale == -100) {
this["enemy" + num]._x = this["enemy" + num]._x - 30;
}
}
shieldDead == false;
if ((((((_root.hero.HIT._currentframe == 2) and (_root.blink._currentframe == 1)) and ((!shieldDead) == true)) and this["enemy" + num].hero2.HIT.hitTest(hero)) or this["enemy" + num].hero2.HIT2.hitTest(hero)) or this["enemy" + num].jumpy.jumpHIT.HIT.hitTest(hero)) {
_root.attachMovie("bloodAttach0Defence2", "bloodAttach0Defence2", 50, {_x:hero._x, _y:hero._y - 50});
this["enemy" + num].hero2.HIT.HITin.gotoAndPlay(2);
this["enemy" + num].hero2.HIT2.HITin.gotoAndPlay(2);
this["enemy" + num].jumpy.jumpHIT.HIT.HITin.gotoAndPlay(2);
if (this["enemy" + num]._xscale == -100) {
hero._x = hero._x + 30;
}
if (this["enemy" + num]._xscale == 100) {
hero._x = hero._x - 30;
}
}
if ((this["enemy" + num].live == true) and (this["enemy" + num].dead == true)) {
this["enemy" + num].gotoAndStop(7);
this["enemy" + num].time = this["enemy" + num].time - 1;
if (this["enemy" + num].time <= 0) {
this["enemy" + num].time = random(400) + 20;
this["enemy" + num].HP = _root.enemyHP;
this["enemy" + num].gotoAndStop(1);
this["enemy" + num].live = false;
this["enemy" + num].dead = false;
this["enemy" + num]._x = menu._x - livePosition;
this["enemy" + num]._y = hero._y;
}
}
if (this["enemy" + num]._x <= (menu._x - 660)) {
this["enemy" + num]._y = hero._y;
this["enemy" + num]._x = menu._x - livePosition;
} else if (this["enemy" + num]._x >= (menu._x + 660)) {
this["enemy" + num]._y = hero._y;
this["enemy" + num]._x = menu._x - livePosition;
}
if (this["enemy" + num].die.spearReSpawn == true) {
this["enemy" + num].die.spearReSpawn = false;
_root.attachMovie("SpearFall", "SpearFall", 100, {_x:this["enemy" + num]._x - 50, _y:this["enemy" + num]._y});
}
if (_root.groundHIT1.hitTest(_root.bullet0) and (_root.spearcankill == true)) {
_root.attachMovie("SpearFall", "SpearFall", 100, {_x:_root.bullet0._x, _y:_root.bullet0._y - 8});
removeMovieClip(_root.bullet0);
}
if (_root.groundHIT1.hitTest(_root.bullet1) and (_root.spearcankill == true)) {
_root.attachMovie("SpearFall", "SpearFall", 100, {_x:_root.bullet1._x, _y:_root.bullet1._y - 8});
removeMovieClip(_root.bullet1);
}
if (_root.groundHIT2.hitTest(_root.bullet0) and (_root.spearcankill == true)) {
_root.attachMovie("SpearFall", "SpearFall", 100, {_x:_root.bullet0._x, _y:_root.bullet0._y - 8});
removeMovieClip(_root.bullet0);
}
if (_root.groundHIT2.hitTest(_root.bullet1) and (_root.spearcankill == true)) {
_root.attachMovie("SpearFall", "SpearFall", 100, {_x:_root.bullet1._x, _y:_root.bullet1._y - 8});
removeMovieClip(_root.bullet1);
}
num++;
}
_x = (_x - Math.round((_x - (300 - ScrollOb._x)) / 10));
_y = (_y - Math.round((_y - (300 - ScrollOb._y)) / 10));
ScrollOb = hero;
menu._x = (-_x) + 300;
menu._y = (-_y) + 200;
wind._x = (-_x) + 300;
wind._y = (-_y) + 200;
snow._x = (-_x) + 43.4;
snow._y = (-_y) - 15.2;
menu2._x = (-_x) + 300;
menu2._y = (-_y) + 200;
maskRoot._x = (-_x) + 300;
maskRoot._y = (-_y) + 200;
bambook._x = (-_x) + 300;
groundHIT1._x = (-_x) + 1200;
groundHIT2._x = (-_x) - 600;
levelEnd._x = (-_x) + 300;
levelEnd._y = (-_y) + 200;
attachBM._x = (-_x) + 300;
attachBM._y = (-_y) + 200;
hero.gotoAndStop(frame);
jump = Key.isDown(38);
hero.vy = hero.vy + gravity;
hero._x = hero._x + hero.vx;
hero._y = hero._y + hero.vy;
if ((!pause) == true) {
if (jump) {
jumpnum = jumpnum - 1;
if (hero.grounded) {
hero.vy = -hero.jumpPower;
frame = "jump";
}
}
}
if (left) {
hero.vx = hero.vx - hero.spd;
hero._xscale = -100;
frame = "run";
} else if (right) {
hero.vx = hero.vx + hero.spd;
hero._xscale = 100;
frame = "run";
} else if (hero.grounded) {
hero.vx = hero.vx * 0.9;
frame = "stand";
} else {
frame = "jump";
}
if ((!pause) == true) {
if (Math.abs(hero.vx) > hero.maxSpd) {
hero.vx = hero.vx * 0.9;
}
}
hero.grounded = false;
if (ground.hitTest(hero._x, hero._y, true)) {
hero.vy = -Math.abs(hero.vy * 0.4);
hero.grounded = true;
frame = "stand";
while (ground.hitTest(hero._x, hero._y, true)) {
hero._y = hero._y - 0.2;
}
}
if (ground.hitTest(hero._x - (hero._width / 2), hero._y - (hero._height / 2), true)) {
hero.vx = Math.abs(hero.vx * 0.4);
while (ground.hitTest(hero._x - (hero._width / 2), hero._y - (hero._height / 2), true)) {
hero._x = hero._x + 0.2;
}
} else if (ground.hitTest(hero._x + (hero._width / 2), hero._y - (hero._height / 2), true)) {
hero.vx = -Math.abs(hero.vx * 0.4);
while (ground.hitTest(hero._x + (hero._width / 2), hero._y - (hero._height / 2), true)) {
hero._x = hero._x - 0.2;
}
}
}
};
stop();
Instance of Symbol 1481 MovieClip "menu" in Frame 84
onClipEvent (load) {
this.gotoAndStop(18);
}
Instance of Symbol 1576 MovieClip in Frame 84
onClipEvent (enterFrame) {
if (_root.groundHIT2.hitTest(this.HIT)) {
this._x = _root.groundHIT1._x - (random(100) + 10);
this.gotoAndStop(random(4) + 1);
} else if (_root.groundHIT1.hitTest(this.HIT)) {
this._x = _root.groundHIT2._x + (random(100) + 10);
this.gotoAndStop(random(3) + 1);
}
}
Instance of Symbol 1491 MovieClip "ground" in Frame 84
onClipEvent (load) {
this.gotoAndStop(2);
}
Instance of Symbol 1500 MovieClip "hero" in Frame 84
onClipEvent (enterFrame) {
if (((Key.isDown(40) and Key.isDown(37)) and Key.isDown(39)) and ((!_root.heroDead) == true)) {
this._x = this._x - run;
}
if (_root.heroDead == true) {
this.state = 4;
}
if ((Key.isDown(40) and ((!air) == true)) and ((!_root.heroDead) == true)) {
if (this._xscale == 100) {
this._x = this._x - run3;
if ((!run3) <= 0) {
run3--;
}
}
if (this._xscale == -100) {
this._x = this._x + run3;
if ((!run3) <= 0) {
run3--;
}
}
state = 5;
if (Key.isDown(37) and ((!_root.heroDead) == true)) {
_x = (_x + run);
}
if (Key.isDown(39) and ((!_root.heroDead) == true)) {
_x = (_x - run);
}
}
if (((state == 5) and (_root.spearflyCheker == true)) and ((!_root.heroDead) == true)) {
_root.spearflyCheker = false;
_root.spearfly = false;
_root.sword = 11;
}
if (((state == 5) and (_root.arrowflyCheker == true)) and ((!_root.heroDead) == true)) {
_root.arrowflyCheker = false;
_root.arrowfly = false;
}
if (((Key.isDown(38) and (_root.jump2 == true)) and ((!spearfly) == true)) and ((!_root.heroDead) == true)) {
_root.hero.vy = -_root.hero.jumpPower;
_root.jumpnum = 100;
}
if (((air == true) and (_root.spearflyCheker == true)) and ((!_root.heroDead) == true)) {
_root.spearflyCheker = false;
_root.spearfly = false;
_root.sword = 11;
}
if (((air == true) and (_root.arrowflyCheker == true)) and ((!_root.heroDead) == true)) {
_root.arrowflyCheker = false;
_root.arrowfly = false;
}
if (((!Key.isDown(38)) and (_root.jumpnum <= 2)) and ((!_root.heroDead) == true)) {
_root.jump2 = true;
} else {
_root.jump2 = false;
}
if ((!Key.isDown(40)) and ((!_root.heroDead) == true)) {
run3 = run;
}
if (Key.isDown(37) and ((!_root.heroDead) == true)) {
run2 = run;
_x = (_x - run);
this._xscale = 100;
this.legs.play();
}
if (((!(Key.isDown(37) or Key.isDown(39))) and (!Key.isDown(40))) and ((!_root.heroDead) == true)) {
this.legs.gotoAndStop(1);
if (this._xscale == 100) {
this._x = this._x - run2;
if ((!run2) <= 0) {
run2--;
}
}
if (this._xscale == -100) {
this._x = this._x + run2;
if ((!run2) <= 0) {
run2--;
}
}
}
if ((Key.isDown(37) && (Key.isDown(39))) and ((!_root.heroDead) == true)) {
this._x = this._x + run;
this._xscale = -100;
this.legs.play();
}
if (((air == true) && (Key.isDown(37))) and ((!_root.heroDead) == true)) {
state = 3;
}
if (Key.isDown(39) and ((!_root.heroDead) == true)) {
run2 = run;
_x = (_x + run);
this._xscale = -100;
this.legs.play();
}
if (((air == true) && (Key.isDown(39))) and ((!_root.heroDead) == true)) {
state = 3;
}
gotoAndStop(state);
if ((Key.isDown(65) && (air == true)) and ((!_root.heroDead) == true)) {
_root.hero.jumping.gotoAndPlay(6);
}
if (((Key.isDown(65) and (Key.isDown(37) or Key.isDown(39))) and ((!air) == true)) and ((!_root.heroDead) == true)) {
_root.standAttack = false;
_root.runAttack = true;
}
this._y = this._y + 8;
_y = (_y + gravity);
if (air == true) {
state = 3;
}
if (_root.ground.hitTest(_x, _y, true)) {
air = false;
_root.jumpnum = 2;
} else {
air = true;
state = 3;
}
if (air == false) {
state = 1;
}
if ((_root.arrowfly == true) and ((!_root.gotArrows) == false)) {
_root.menu2.arrows.gotoAndStop(_root.menu2.arrows._currentframe + 1);
_root.spearT = false;
totalbullet++;
if (totalbullet > 1) {
totalbullet = 0;
}
if (_root.hero._xscale == -100) {
_root.attachMovie("bullet", "bullet" + totalbullet, totalbullet, {_x:_x, _y:_y, _rotation:this._rotation});
} else if (_root.hero._xscale == 100) {
_root.attachMovie("bullet2", "bullet" + totalbullet, totalbullet, {_x:_x, _y:_y, _rotation:this._rotation});
}
}
if (_root.spearfly == true) {
_root.spearT = true;
totalbullet++;
if (totalbullet > 1) {
totalbullet = 0;
}
if (_root.hero._xscale == -100) {
_root.attachMovie("bullet", "bullet" + totalbullet, totalbullet, {_x:_x, _y:_y, _rotation:this._rotation});
} else if (_root.hero._xscale == 100) {
_root.attachMovie("bullet2", "bullet" + totalbullet, totalbullet, {_x:_x, _y:_y, _rotation:this._rotation});
}
}
}
onClipEvent (load) {
totalbullet = 0;
}
Instance of Symbol 1501 MovieClip "steam" in Frame 84
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 1502 MovieClip "blink" in Frame 84
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 616 MovieClip "groundHIT1" in Frame 84
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 616 MovieClip "groundHIT2" in Frame 84
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 1551 MovieClip "swordOrBow" in Frame 84
onClipEvent (enterFrame) {
if (_root.swords == true) {
this.gotoAndStop(1);
}
if (_root.bows == true) {
this.gotoAndStop(2);
}
}
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 1547 MovieClip "menu2" in Frame 84
onClipEvent (enterFrame) {
this.swapDepths((this._y * 100) + this._x);
}
Instance of Symbol 1549 MovieClip "levelEnd" in Frame 84
onClipEvent (enterFrame) {
this.swapDepths((this._y * 1000) + this._x);
}
Frame 85
levelFrame = 86;
gotoAndStop (30);
_x = 0;
_y = 0;
Frame 86
swordE = 17;
bootsE = 42;
pantsE = 40;
weaponDamageE = 60;
bodyE = 23;
helmetE = 25;
shieldE = 15;
shield2E = 1;
shieldhandE = 1;
attackNum = 0;
attackNum2 = 0;
attackNum3 = 0;
attackNum4 = 0;
attackNum5 = 0;
gotArrows = true;
weaponDamage = 1;
HITMinusArmour = 0;
enemyHITPower = 350;
menu2.location.location = "BOSS";
_root.attachMovie("attachBM", "attachBM", 50, {_x:300, _y:200});
removeMovieClip(_root.heroAttach);
enemies = 0;
enemyHP = 500;
blooddummy._x = 0;
blooddummy._y = 0;
dep = 200;
gravity = 0.5;
hero.vx = 0;
hero.vy = 0;
hero.jumpPower = 20;
hero.grounded = false;
ScrollOb = hero;
spearfly = false;
spear = true;
hero.run = 7;
deadEnemyNum = 1000;
num = 0;
while (num <= enemies) {
this["enemy" + num].power = 20;
this["enemy" + num].HP = 500;
groundGNum = 1000;
groundGNum2 = -500;
this["enemy" + num].time = 500;
num++;
}
roundTime = 2300000 /* 0x231860 */;
sound = true;
sound2 = false;
music3 = false;
music = false;
music2 = false;
music4 = false;
music5 = true;
trace(lives);
lives = 1;
onEnterFrame = function () {
if (this["enemy" + num].dead == true) {
levelEnd.play();
hero.HIT.gotoAndStop(2);
removeMovieClip(menu2);
}
trace(roundTime);
roundTime = roundTime - 1;
if ((roundTime <= 0) and ((!heroDead) == true)) {
hero.HIT.gotoAndStop(2);
levelEnd.play();
removeMovieClip(menu2);
}
if ((!_root.HITMinusArmour) <= 1) {
_root.HITMinusArmour = _root.enemyHITPower - _root.armour;
}
if (_root.HITMinusArmour <= 1) {
_root.HITMinusArmour = 1;
}
trace(_root.HITMinusArmour);
if ((!pause) == true) {
num = 0;
while (num <= enemies) {
if (hero._x >= groundGNum) {
groundGNum = groundGNum + 500;
groundGNum2 = groundGNum2 + 500;
ground._x = ground._x + 500;
} else if (hero._x <= groundGNum2) {
groundGNum2 = groundGNum2 - 500;
groundGNum = groundGNum - 500;
ground._x = ground._x - 500;
}
if (EXP >= 1000) {
levelUP = levelUP + 1;
EXP = 0;
}
deadEnemyNum++;
this["enemy" + num];
if ((this["enemy" + num].AAA.jumpFrame == true) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num].air = true;
this["enemy" + num].gotoAndStop(3);
} else if (((this["enemy" + num].AAA.jumpFrame == false) and ground.hitTest(this["enemy" + num]._x, this["enemy" + num]._y + 5, true)) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num].air = false;
this["enemy" + num].power = 20;
this["enemy" + num].gotoAndStop(1);
}
if ((this["enemy" + num].AAA._currentframe == 52) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num].AAA.gotoAndPlay(random(500) + 1);
}
if (ground.hitTest(this["enemy" + num]._x - 6, this["enemy" + num]._y - 10, true) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num]._x = this["enemy" + num]._x + enemySpeed;
} else if (ground.hitTest(this["enemy" + num]._x + 6, this["enemy" + num]._y - 10, true) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num]._x = this["enemy" + num]._x - enemySpeed;
}
if ((this["enemy" + num]._currentframe == 3) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num].air = true;
this["enemy" + num]._y = this["enemy" + num]._y - this["enemy" + num].power;
if ((!this["enemy" + num].power) <= 0) {
this["enemy" + num].power = this["enemy" + num].power - 0.5;
if (this["enemy" + num]._xscale == 100) {
this["enemy" + num]._x = this["enemy" + num]._x - enemySpeed;
}
if (this["enemy" + num]._xscale == -100) {
this["enemy" + num]._x = this["enemy" + num]._x + enemySpeed;
}
}
if ((this["enemy" + num]._x >= (hero._x + 1)) and (this["enemy" + num]._xscale == -100)) {
this["enemy" + num].jumpy.gotoAndStop(10);
} else if ((this["enemy" + num]._x <= (hero._x - 1)) and (this["enemy" + num]._xscale == 100)) {
this["enemy" + num].jumpy.gotoAndStop(10);
}
}
if ((this["enemy" + num].hitTest(hero) and ((!_root.heroDead) == true)) and (this["enemy" + num].hero2.canAttack == true)) {
this["enemy" + num].hero2.canAttack = false;
this["enemy" + num].hero2.gotoAndPlay(_root.enemyRandomAttack);
}
if (this["enemy" + num].hero2.HIT.hitTest(hero.HIT)) {
this["enemy" + num].hero2.HIT.HITin.gotoAndPlay(2);
blink.play();
}
if (this["enemy" + num].hero2.HITsuper.hitTest(hero.HIT)) {
this["enemy" + num].hero2.HITsuper.HITin.gotoAndPlay(2);
_root.menu2.armour.HP.gotoAndStop(_root.menu2.armour.HP._currentframe + _root.HITMinusArmour);
blink.play();
}
if (this["enemy" + num].jumpy.jumpHIT.HIT.hitTest(hero.HIT)) {
this["enemy" + num].jumpy.jumpHIT.HIT.HITin.gotoAndPlay(2);
blink.play();
}
if (this["enemy" + num].hero2.HIT2.hitTest(hero.HIT)) {
this["enemy" + num].hero2.HIT2.HITin.gotoAndPlay(2);
if (this["enemy" + num]._xscale == 100) {
hero._x = hero._x - 50;
blink.play();
}
if (this["enemy" + num]._xscale == -100) {
hero._x = hero._x + 50;
blink.play();
}
}
if (((hero._x > this["enemy" + num]._x) and ((!this["enemy" + num].dead) == true)) and ((!this["enemy" + num].air) == true)) {
this["enemy" + num]._xscale = -100;
} else if (((hero._x < this["enemy" + num]._x) and ((!this["enemy" + num].dead) == true)) and ((!this["enemy" + num].air) == true)) {
this["enemy" + num]._xscale = 100;
}
if (((((hero._x > (this["enemy" + num]._x + 70)) and ((!this["enemy" + num].dead) == true)) and this["enemy" + num].hitTest(this["enemy" + num].AAA)) and ((!this["enemy" + num].air) == true)) and ((!this["enemy" + num].hero2.kick) == true)) {
this["enemy" + num].legs.gotoAndStop(4);
this["enemy" + num]._x = this["enemy" + num]._x + enemySpeed;
} else if (((((hero._x < (this["enemy" + num]._x - 70)) and ((!this["enemy" + num].dead) == true)) and this["enemy" + num].hitTest(this["enemy" + num].AAA)) and ((!this["enemy" + num].air) == true)) and ((!this["enemy" + num].hero2.kick) == true)) {
this["enemy" + num]._x = this["enemy" + num]._x - enemySpeed;
this["enemy" + num].legs.gotoAndStop(4);
} else {
this["enemy" + num].legs.gotoAndStop(1);
}
this["enemy" + num]._y = this["enemy" + num]._y + 8;
while (ground.hitTest(this["enemy" + num]._x, this["enemy" + num]._y, true)) {
this["enemy" + num]._y = this["enemy" + num]._y - 1;
}
while (ground.hitTest(hero._root.SpearFall._x, hero._root.SpearFall._y, true)) {
_root.SpearFall._y = _root.SpearFall._y - 1;
}
if (hero.hero2.HIT.hitTest(this["enemy" + num].HIT) and ((!this["enemy" + num].dead) == true)) {
_root.attachMovie("bloodAttach", "bloodAttach", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.hero2.HIT.HITin.gotoAndPlay(2);
this["enemy" + num].HP = this["enemy" + num].HP - weaponDamage;
if (this["enemy" + num].HP <= 0) {
_root.attachMovie("heartAttach", "heartAttach", 38, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y});
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
if ((sword == 5) or (sword == 8)) {
this["enemy" + num].die.gotoAndPlay(80);
} else {
this["enemy" + num].die.gotoAndPlay(1);
}
}
}
if (hero.hero2.HIT2.hitTest(this["enemy" + num].HIT) and ((!this["enemy" + num].dead) == true)) {
_root.attachMovie("bloodAttachKICK", "bloodAttachKICK", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.hero2.HIT2.HITin.gotoAndPlay(2);
this["enemy" + num].HP = this["enemy" + num].HP - (Math.ceil(weaponDamage) * 5);
if (this["enemy" + num].HP <= 0) {
_root.attachMovie("heartAttach", "heartAttach", 38, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y});
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
this["enemy" + num].die.gotoAndPlay(60);
}
}
if (hero.hero2.HIT3.hitTest(this["enemy" + num].HIT) and ((!this["enemy" + num].dead) == true)) {
_root.attachMovie("bloodAttachKICK", "bloodAttachKICK", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.hero2.HIT3.HITin.gotoAndPlay(2);
this["enemy" + num].gotoAndStop(2);
this["enemy" + num].gotKicked.gotoAndPlay(37);
this["enemy" + num].HP = this["enemy" + num].HP - (Math.ceil(weaponDamage) / 3);
if (hero._xscale == 100) {
this["enemy" + num]._x = this["enemy" + num]._x - 60;
}
if (hero._xscale == -100) {
this["enemy" + num]._x = this["enemy" + num]._x + 60;
}
if (this["enemy" + num].HP <= 0) {
_root.attachMovie("heartAttach", "heartAttach", 38, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y});
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
this["enemy" + num].die.gotoAndPlay(60);
}
}
if (hero.jumpy.HIT.hitTest(this["enemy" + num].HIT) and ((!this["enemy" + num].dead) == true)) {
_root.attachMovie("bloodAttachKICK", "bloodAttachKICK", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.jumpy.HIT.HITin.gotoAndStop(2);
this["enemy" + num].HP = this["enemy" + num].HP - (weaponDamage * 3);
if (this["enemy" + num].HP <= 0) {
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
this["enemy" + num].die.gotoAndPlay(100);
}
}
if (hero.sit.HIT.hitTest(this["enemy" + num].legs) and ((!this["enemy" + num].dead) == true)) {
this["enemy" + num].gotoAndStop(6);
_root.attachMovie("bloodAttachKICK", "bloodAttachKICK", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.sit.HIT.HITin.gotoAndStop(2);
blink.play();
if (this["enemy" + num]._xscale == 100) {
hero._x = hero._x - 200;
}
if (this["enemy" + num]._xscale == -100) {
hero._x = hero._x + 200;
}
}
if (hero.sit.HIT2.hitTest(this["enemy" + num].HIT) and ((!this["enemy" + num].dead) == true)) {
_root.attachMovie("bloodAttach", "bloodAttach", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.sit.HIT2.HITin.gotoAndStop(2);
this["enemy" + num].HP = this["enemy" + num].HP - (weaponDamage * 2);
if (this["enemy" + num].HP <= 0) {
gold = gold + (random(50) + 20);
EXP = EXP + (random(50) + 5);
this["enemy" + num].dead = true;
this["enemy" + num].gotoAndStop(4);
this["enemy" + num].die.gotoAndPlay(80);
}
}
if (this["enemy" + num].hitTest(_root.bullet0) and ((!this["enemy" + num].dead) == true)) {
removeMovieClip(_root.bullet0);
this["enemy" + num].gotoAndStop(6);
}
if (this["enemy" + num].HIT.hitTest(_root.bullet1) and ((!this["enemy" + num].dead) == true)) {
removeMovieClip(_root.bullet1);
this["enemy" + num].gotoAndStop(6);
}
if ((((hero.hero2.HIT.hitTest(this["enemy" + num].hero2) or hero.hero2.HIT2.hitTest(this["enemy" + num].hero2)) or hero.hero2.HIT3.hitTest(this["enemy" + num].hero2)) or hero.jumpy.HIT.hitTest(this["enemy" + num].hero2)) or (((hero.sit.HIT2.hitTest(this["enemy" + num].hero2) and (this["enemy" + num].HIT._currentframe > 1)) and (_root.blink._currentframe == 1)) and ((!shieldDead) == true))) {
_root.attachMovie("bloodAttach0Defence", "bloodAttach0Defence", 50, {_x:this["enemy" + num]._x, _y:this["enemy" + num]._y - 50});
hero.hero2.HIT.HITin.gotoAndPlay(2);
hero.hero2.HIT2.HITin.gotoAndPlay(2);
hero.hero2.HIT3.HITin.gotoAndPlay(2);
hero.jumpy.HIT.HITin.gotoAndPlay(2);
if (this["enemy" + num]._xscale == 100) {
this["enemy" + num]._x = this["enemy" + num]._x + 30;
}
if (this["enemy" + num]._xscale == -100) {
this["enemy" + num]._x = this["enemy" + num]._x - 30;
}
}
shieldDead == false;
if (((((((_root.hero.HIT._currentframe == 2) and (_root.blink._currentframe == 1)) and ((!shieldDead) == true)) and this["enemy" + num].hero2.HIT.hitTest(hero)) or this["enemy" + num].hero2.HITsuper.hitTest(hero)) or this["enemy" + num].hero2.HIT2.hitTest(hero)) or this["enemy" + num].jumpy.jumpHIT.HIT.hitTest(hero)) {
_root.attachMovie("bloodAttach0Defence2", "bloodAttach0Defence2", 50, {_x:hero._x, _y:hero._y - 50});
this["enemy" + num].hero2.HIT.HITin.gotoAndPlay(2);
this["enemy" + num].hero2.HITsuper.HITin.gotoAndPlay(2);
this["enemy" + num].hero2.HIT2.HITin.gotoAndPlay(2);
this["enemy" + num].jumpy.jumpHIT.HIT.HITin.gotoAndPlay(2);
if (this["enemy" + num]._xscale == -100) {
hero._x = hero._x + 30;
}
if (this["enemy" + num]._xscale == 100) {
hero._x = hero._x - 30;
}
}
if ((this["enemy" + num].live == true) and (this["enemy" + num].dead == true)) {
this["enemy" + num].gotoAndStop(7);
this["enemy" + num].time = this["enemy" + num].time - 1;
levelEnd.play();
hero.HIT.gotoAndStop(2);
removeMovieClip(menu2);
if (this["enemy" + num].time <= 0) {
this["enemy" + num].time = random(400) + 20;
this["enemy" + num].HP = _root.enemyHP;
this["enemy" + num].gotoAndStop(1);
this["enemy" + num].live = false;
this["enemy" + num].dead = false;
this["enemy" + num]._x = menu._x - livePosition;
this["enemy" + num]._y = hero._y;
}
}
if (this["enemy" + num]._x <= (menu._x - 660)) {
this["enemy" + num]._y = hero._y;
this["enemy" + num]._x = menu._x - livePosition;
sound3 = true;
} else if (this["enemy" + num]._x >= (menu._x + 660)) {
this["enemy" + num]._y = hero._y;
this["enemy" + num]._x = menu._x - livePosition;
sound3 = true;
}
if (this["enemy" + num].die.spearReSpawn == true) {
this["enemy" + num].die.spearReSpawn = false;
_root.attachMovie("SpearFall", "SpearFall", 100, {_x:this["enemy" + num]._x - 50, _y:this["enemy" + num]._y});
}
if (_root.groundHIT1.hitTest(_root.bullet0) and (_root.spearcankill == true)) {
_root.attachMovie("SpearFall", "SpearFall", 100, {_x:_root.bullet0._x, _y:_root.bullet0._y - 8});
removeMovieClip(_root.bullet0);
}
if (_root.groundHIT1.hitTest(_root.bullet1) and (_root.spearcankill == true)) {
_root.attachMovie("SpearFall", "SpearFall", 100, {_x:_root.bullet1._x, _y:_root.bullet1._y - 8});
removeMovieClip(_root.bullet1);
}
if (_root.groundHIT2.hitTest(_root.bullet0) and (_root.spearcankill == true)) {
_root.attachMovie("SpearFall", "SpearFall", 100, {_x:_root.bullet0._x, _y:_root.bullet0._y - 8});
removeMovieClip(_root.bullet0);
}
if (_root.groundHIT2.hitTest(_root.bullet1) and (_root.spearcankill == true)) {
_root.attachMovie("SpearFall", "SpearFall", 100, {_x:_root.bullet1._x, _y:_root.bullet1._y - 8});
removeMovieClip(_root.bullet1);
}
num++;
}
_x = (_x - Math.round((_x - (300 - ScrollOb._x)) / 10));
_y = (_y - Math.round((_y - (300 - ScrollOb._y)) / 10));
ScrollOb = hero;
menu._x = (-_x) + 300;
menu._y = (-_y) + 200;
wind._x = (-_x) + 300;
wind._y = (-_y) + 200;
snow._x = (-_x) + 43.4;
snow._y = (-_y) - 15.2;
menu2._x = (-_x) + 300;
menu2._y = (-_y) + 200;
maskRoot._x = (-_x) + 300;
maskRoot._y = (-_y) + 200;
bambook._x = (-_x) + 300;
groundHIT1._x = (-_x) + 1200;
groundHIT2._x = (-_x) - 600;
levelEnd._x = (-_x) + 300;
levelEnd._y = (-_y) + 200;
attachBM._x = (-_x) + 300;
attachBM._y = (-_y) + 200;
hero.gotoAndStop(frame);
jump = Key.isDown(38);
hero.vy = hero.vy + gravity;
hero._x = hero._x + hero.vx;
hero._y = hero._y + hero.vy;
if ((!pause) == true) {
if (jump) {
jumpnum = jumpnum - 1;
if (hero.grounded) {
hero.vy = -hero.jumpPower;
frame = "jump";
}
}
}
if (left) {
hero.vx = hero.vx - hero.spd;
hero._xscale = -100;
frame = "run";
} else if (right) {
hero.vx = hero.vx + hero.spd;
hero._xscale = 100;
frame = "run";
} else if (hero.grounded) {
hero.vx = hero.vx * 0.9;
frame = "stand";
} else {
frame = "jump";
}
if ((!pause) == true) {
if (Math.abs(hero.vx) > hero.maxSpd) {
hero.vx = hero.vx * 0.9;
}
}
hero.grounded = false;
if (ground.hitTest(hero._x, hero._y, true)) {
hero.vy = -Math.abs(hero.vy * 0.4);
hero.grounded = true;
frame = "stand";
while (ground.hitTest(hero._x, hero._y, true)) {
hero._y = hero._y - 0.2;
}
}
if (ground.hitTest(hero._x - (hero._width / 2), hero._y - (hero._height / 2), true)) {
hero.vx = Math.abs(hero.vx * 0.4);
while (ground.hitTest(hero._x - (hero._width / 2), hero._y - (hero._height / 2), true)) {
hero._x = hero._x + 0.2;
}
} else if (ground.hitTest(hero._x + (hero._width / 2), hero._y - (hero._height / 2), true)) {
hero.vx = -Math.abs(hero.vx * 0.4);
while (ground.hitTest(hero._x + (hero._width / 2), hero._y - (hero._height / 2), true)) {
hero._x = hero._x - 0.2;
}
}
}
};
stop();
Instance of Symbol 1481 MovieClip "menu" in Frame 86
onClipEvent (load) {
this.gotoAndStop(18);
}
Instance of Symbol 1576 MovieClip in Frame 86
onClipEvent (enterFrame) {
if (_root.groundHIT2.hitTest(this.HIT)) {
this._x = _root.groundHIT1._x - (random(100) + 10);
this.gotoAndStop(random(4) + 1);
} else if (_root.groundHIT1.hitTest(this.HIT)) {
this._x = _root.groundHIT2._x + (random(100) + 10);
this.gotoAndStop(random(3) + 1);
}
}
Instance of Symbol 1491 MovieClip "ground" in Frame 86
onClipEvent (load) {
this.gotoAndStop(2);
}
Instance of Symbol 1500 MovieClip "hero" in Frame 86
onClipEvent (enterFrame) {
if (((Key.isDown(40) and Key.isDown(37)) and Key.isDown(39)) and ((!_root.heroDead) == true)) {
this._x = this._x - run;
}
if (_root.heroDead == true) {
this.state = 4;
}
if ((Key.isDown(40) and ((!air) == true)) and ((!_root.heroDead) == true)) {
if (this._xscale == 100) {
this._x = this._x - run3;
if ((!run3) <= 0) {
run3--;
}
}
if (this._xscale == -100) {
this._x = this._x + run3;
if ((!run3) <= 0) {
run3--;
}
}
state = 5;
if (Key.isDown(37) and ((!_root.heroDead) == true)) {
_x = (_x + run);
}
if (Key.isDown(39) and ((!_root.heroDead) == true)) {
_x = (_x - run);
}
}
if (((state == 5) and (_root.spearflyCheker == true)) and ((!_root.heroDead) == true)) {
_root.spearflyCheker = false;
_root.spearfly = false;
_root.sword = 11;
}
if (((state == 5) and (_root.arrowflyCheker == true)) and ((!_root.heroDead) == true)) {
_root.arrowflyCheker = false;
_root.arrowfly = false;
}
if (((Key.isDown(38) and (_root.jump2 == true)) and ((!spearfly) == true)) and ((!_root.heroDead) == true)) {
_root.hero.vy = -_root.hero.jumpPower;
_root.jumpnum = 100;
}
if (((air == true) and (_root.spearflyCheker == true)) and ((!_root.heroDead) == true)) {
_root.spearflyCheker = false;
_root.spearfly = false;
_root.sword = 11;
}
if (((air == true) and (_root.arrowflyCheker == true)) and ((!_root.heroDead) == true)) {
_root.arrowflyCheker = false;
_root.arrowfly = false;
}
if (((!Key.isDown(38)) and (_root.jumpnum <= 2)) and ((!_root.heroDead) == true)) {
_root.jump2 = true;
} else {
_root.jump2 = false;
}
if ((!Key.isDown(40)) and ((!_root.heroDead) == true)) {
run3 = run;
}
if (Key.isDown(37) and ((!_root.heroDead) == true)) {
run2 = run;
_x = (_x - run);
this._xscale = 100;
this.legs.play();
}
if (((!(Key.isDown(37) or Key.isDown(39))) and (!Key.isDown(40))) and ((!_root.heroDead) == true)) {
this.legs.gotoAndStop(1);
if (this._xscale == 100) {
this._x = this._x - run2;
if ((!run2) <= 0) {
run2--;
}
}
if (this._xscale == -100) {
this._x = this._x + run2;
if ((!run2) <= 0) {
run2--;
}
}
}
if ((Key.isDown(37) && (Key.isDown(39))) and ((!_root.heroDead) == true)) {
this._x = this._x + run;
this._xscale = -100;
this.legs.play();
}
if (((air == true) && (Key.isDown(37))) and ((!_root.heroDead) == true)) {
state = 3;
}
if (Key.isDown(39) and ((!_root.heroDead) == true)) {
run2 = run;
_x = (_x + run);
this._xscale = -100;
this.legs.play();
}
if (((air == true) && (Key.isDown(39))) and ((!_root.heroDead) == true)) {
state = 3;
}
gotoAndStop(state);
if ((Key.isDown(65) && (air == true)) and ((!_root.heroDead) == true)) {
_root.hero.jumping.gotoAndPlay(6);
}
if (((Key.isDown(65) and (Key.isDown(37) or Key.isDown(39))) and ((!air) == true)) and ((!_root.heroDead) == true)) {
_root.standAttack = false;
_root.runAttack = true;
}
this._y = this._y + 8;
_y = (_y + gravity);
if (air == true) {
state = 3;
}
if (_root.ground.hitTest(_x, _y, true)) {
air = false;
_root.jumpnum = 2;
} else {
air = true;
state = 3;
}
if (air == false) {
state = 1;
}
if ((_root.arrowfly == true) and ((!_root.gotArrows) == false)) {
_root.menu2.arrows.gotoAndStop(_root.menu2.arrows._currentframe + 1);
_root.spearT = false;
totalbullet++;
if (totalbullet > 1) {
totalbullet = 0;
}
if (_root.hero._xscale == -100) {
_root.attachMovie("bullet", "bullet" + totalbullet, totalbullet, {_x:_x, _y:_y, _rotation:this._rotation});
} else if (_root.hero._xscale == 100) {
_root.attachMovie("bullet2", "bullet" + totalbullet, totalbullet, {_x:_x, _y:_y, _rotation:this._rotation});
}
}
if (_root.spearfly == true) {
_root.spearT = true;
totalbullet++;
if (totalbullet > 1) {
totalbullet = 0;
}
if (_root.hero._xscale == -100) {
_root.attachMovie("bullet", "bullet" + totalbullet, totalbullet, {_x:_x, _y:_y, _rotation:this._rotation});
} else if (_root.hero._xscale == 100) {
_root.attachMovie("bullet2", "bullet" + totalbullet, totalbullet, {_x:_x, _y:_y, _rotation:this._rotation});
}
}
}
onClipEvent (load) {
totalbullet = 0;
}
Instance of Symbol 1501 MovieClip "steam" in Frame 86
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 1502 MovieClip "blink" in Frame 86
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 616 MovieClip "groundHIT1" in Frame 86
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 616 MovieClip "groundHIT2" in Frame 86
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 1586 MovieClip "swordOrBow" in Frame 86
onClipEvent (enterFrame) {
if (_root.swords == true) {
this.gotoAndStop(1);
}
if (_root.bows == true) {
this.gotoAndStop(2);
}
}
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 1547 MovieClip "menu2" in Frame 86
onClipEvent (enterFrame) {
this.swapDepths((this._y * 100) + this._x);
}
Instance of Symbol 1549 MovieClip "levelEnd" in Frame 86
onClipEvent (enterFrame) {
this.swapDepths((this._y * 1000) + this._x);
}
Frame 87
gotoAndStop (90);
_x = 0;
_y = 0;
Frame 90
score = _root.gold + (_root.armour * 100);
submit_score.Score = score;
removeMovieClip(_root.heroAttach);
stop();
removeMovieClip(menu2);
removeMovieClip(levelEnd);
_root.attachMovie("attachBM", "attachBM", 50, {_x:300, _y:200});
sound1 = false;
sound2 = false;
sound3 = false;
music5 = false;
shieldDead = false;
sound = true;
sound2 = false;
music = true;
music2 = false;
music3 = false;
music4 = false;
Instance of Symbol 1594 MovieClip in Frame 90
onClipEvent (enterFrame) {
if (_root.score <= 0) {
_root.score = 0;
}
}
Frame 91
removeMovieClip(_root.heroAttach);
sound1 = false;
sound = false;
sound2 = false;
sound3 = false;
music = false;
music2 = false;
music3 = false;
music4 = true;
music5 = false;
removeMovieClip(menu2);
removeMovieClip(levelEnd);
_root.attachMovie("attachBM", "attachBM", 50, {_x:300, _y:200});
Instance of Symbol 1629 MovieClip [TMP6pbk6uzm9i] in Frame 91
//component parameters
onClipEvent (construct) {
gameID = 2000002 /* 0x1E8482 */;
}
Instance of Symbol 1634 MovieClip [TMP6ojzjuzm8i] in Frame 91
//component parameters
onClipEvent (construct) {
gameID = 2000002 /* 0x1E8482 */;
}
Symbol 3 MovieClip [fog_1] Frame 1
stop();
Symbol 3 MovieClip [fog_1] Frame 10
stop();
Symbol 6 MovieClip Frame 1
_root.earl223 = function (val) {
var _local3 = new Array("_", "Z", "y", "x", "W", "v", "u", "T", "s", "r", "Q", "P", "O", "n", "m", "L", "K", "j", "i", "H", "g", "F", "e", "d", "C", "B", "a");
var _local2 = "";
val1 = 0;
while (val1 < val.length) {
if (val.substr(val1, 1) == ":") {
_local2 = _local2 + ":";
} else if (Number(val.substr(val1, 2)) > 26) {
_local2 = _local2 + _local3[Number(val.substr(val1, 1))];
} else if (Number(val.substr(val1, 1)) == 0) {
_local2 = _local2 + "_";
} else {
_local2 = _local2 + _local3[Number(val.substr(val1, 2))];
val1++;
}
val1++;
}
return(_local2);
};
Symbol 14 MovieClip Frame 1
stop();
Symbol 63 Button
on (release) {
getURL ("http://www.freeonlinegames.com/?journeytotheeast", "_blank");
}
Instance of Symbol 68 MovieClip "mcNotice" in Symbol 110 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 110 MovieClip Frame 120
stop();
if ((_url.indexOf("freeonlinegames.com") >= 0) && (_url.indexOf("file:") == -1)) {
_root.okToPlay = true;
_root.play();
} else if (_root.debug) {
_root.okToPlay = true;
_root.play();
} else {
_root.mcTaglines._visible = false;
mcNotice._visible = true;
}
Symbol 112 MovieClip Frame 60
stop();
Symbol 124 MovieClip Frame 9
stop();
Symbol 125 MovieClip Frame 1
stop();
Symbol 125 MovieClip Frame 2
stop();
Instance of Symbol 125 MovieClip in Symbol 127 MovieClip [aeAttach] Frame 1
onClipEvent (enterFrame) {
if ((_root.hero.HIT._currentframe == 2) and this.hitTest(_root.hero.legs)) {
this.gotoAndStop(2);
_parent.stop();
}
}
Instance of Symbol 125 MovieClip in Symbol 127 MovieClip [aeAttach] Frame 17
onClipEvent (enterFrame) {
}
Symbol 127 MovieClip [aeAttach] Frame 18
removeMovieClip(this);
Symbol 131 MovieClip [attachBM] Frame 25
removeMovieClip(this);
Symbol 133 MovieClip Frame 1
stop();
Symbol 147 MovieClip [bloodAttach] Frame 8
stop();
removeMovieClip(this);
Symbol 155 MovieClip Frame 8
stop();
removeMovieClip(this);
Symbol 155 MovieClip Frame 9
stop();
removeMovieClip(_parent);
Symbol 157 MovieClip Frame 1
shieldDamage = _root.enemyHITPower - _root.armour;
_root.menu2.armour.shield.gotoAndStop(_root.menu2.armour.shield._currentframe + shieldDamage);
Symbol 157 MovieClip Frame 8
stop();
removeMovieClip(this);
Symbol 157 MovieClip Frame 9
stop();
removeMovieClip(_parent);
Instance of Symbol 167 MovieClip in Symbol 168 MovieClip [bloodAttach2] Frame 1
onClipEvent (load) {
this.gotoAndStop(random(4) + 1);
}
Symbol 168 MovieClip [bloodAttach2] Frame 12
removeMovieClip(this);
Symbol 171 MovieClip [bloodAttach3] Frame 21
stop();
removeMovieClip(this);
Symbol 180 MovieClip [bloodAttachKICK] Frame 8
stop();
removeMovieClip(this);
Symbol 185 MovieClip [bullet] Frame 1
this.onEnterFrame = function () {
this._x = this._x + 30;
};
Instance of Symbol 184 MovieClip in Symbol 185 MovieClip [bullet] Frame 1
onClipEvent (load) {
if (_root.spearT == true) {
this.gotoAndStop(2);
} else if (_root.spearT == false) {
this.gotoAndStop(1);
}
}
Symbol 186 MovieClip [bullet2] Frame 1
this.onEnterFrame = function () {
this._x = this._x - 30;
};
Instance of Symbol 184 MovieClip in Symbol 186 MovieClip [bullet2] Frame 1
onClipEvent (load) {
if (_root.spearT == true) {
this.gotoAndStop(2);
} else if (_root.spearT == false) {
this.gotoAndStop(1);
}
}
Symbol 189 MovieClip [buyItemAttach] Frame 16
removeMovieClip(this);
Symbol 192 MovieClip [deadEnemy] Frame 16
removeMovieClip(this);
Symbol 196 MovieClip Frame 1
stop();
Symbol 196 MovieClip Frame 2
_root.menu2.armour.HP.gotoAndStop(_root.menu2.armour.HP._currentframe - 10);
Symbol 196 MovieClip Frame 11
removeMovieClip(_parent._parent);
Symbol 200 MovieClip Frame 1
stop();
Symbol 200 MovieClip Frame 2
_root.gold = _root.gold + 50;
Symbol 200 MovieClip Frame 11
removeMovieClip(_parent._parent);
Symbol 201 MovieClip Frame 1
stop();
Instance of Symbol 196 MovieClip in Symbol 201 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this) and Key.isDown(40)) {
this.play();
}
}
Instance of Symbol 200 MovieClip in Symbol 201 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.hero.hitTest(this) and Key.isDown(40)) {
this.play();
}
}
Instance of Symbol 201 MovieClip in Symbol 202 MovieClip [heartAttach] Frame 1
onClipEvent (load) {
this.gotoAndStop(random(2) + 1);
}
Symbol 266 MovieClip Frame 2
_root.hero.run = 7;
Symbol 266 MovieClip Frame 3
_root.hero.run = 8;
Symbol 266 MovieClip Frame 4
_root.hero.run = 8;
Symbol 266 MovieClip Frame 5
_root.hero.run = 8;
Symbol 266 MovieClip Frame 6
_root.hero.run = 8;
Symbol 266 MovieClip Frame 7
_root.hero.run = 7;
Symbol 266 MovieClip Frame 8
_root.hero.run = 8;
Symbol 266 MovieClip Frame 9
_root.hero.run = 8;
Symbol 266 MovieClip Frame 10
_root.hero.run = 9;
Symbol 266 MovieClip Frame 11
_root.hero.run = 8;
Symbol 266 MovieClip Frame 12
_root.hero.run = 10;
Symbol 266 MovieClip Frame 13
_root.hero.run = 8;
Symbol 266 MovieClip Frame 14
_root.hero.run = 7;
Symbol 266 MovieClip Frame 15
_root.hero.run = 5;
Symbol 266 MovieClip Frame 16
_root.hero.run = 10;
Symbol 266 MovieClip Frame 17
_root.hero.run = 11;
Symbol 266 MovieClip Frame 18
_root.hero.run = 10;
Symbol 266 MovieClip Frame 30
_root.enemySpeed = 6;
Symbol 266 MovieClip Frame 31
_root.enemySpeed = 6;
Symbol 266 MovieClip Frame 32
_root.enemySpeed = 7;
Symbol 266 MovieClip Frame 33
_root.enemySpeed = 7;
Symbol 266 MovieClip Frame 34
_root.enemySpeed = 5;
Symbol 266 MovieClip Frame 35
_root.enemySpeed = 6;
Symbol 266 MovieClip Frame 36
_root.enemySpeed = 6;
Symbol 266 MovieClip Frame 37
_root.enemySpeed = 8;
Symbol 266 MovieClip Frame 38
_root.enemySpeed = 7;
Symbol 266 MovieClip Frame 39
_root.enemySpeed = 8;
Symbol 266 MovieClip Frame 40
_root.enemySpeed = 7;
Symbol 266 MovieClip Frame 41
_root.enemySpeed = 8;
Symbol 266 MovieClip Frame 42
_root.enemySpeed = 9;
Symbol 266 MovieClip Frame 43
_root.enemySpeed = 9;
Instance of Symbol 225 MovieClip in Symbol 267 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pants));
}
Instance of Symbol 266 MovieClip in Symbol 267 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.boots));
}
Instance of Symbol 225 MovieClip in Symbol 268 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pants));
}
Instance of Symbol 266 MovieClip in Symbol 268 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.boots));
}
Symbol 269 MovieClip Frame 1
stop();
_root.standAttack = true;
_root.runAttack = false;
Instance of Symbol 225 MovieClip in Symbol 269 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pants));
}
onClipEvent (enterFrame) {
this.gotoAndStop((this._currentframe = _root.pants));
}
Instance of Symbol 266 MovieClip in Symbol 269 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.boots));
}
onClipEvent (enterFrame) {
this.gotoAndStop((this._currentframe = _root.boots));
}
Instance of Symbol 225 MovieClip in Symbol 269 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pants));
}
onClipEvent (enterFrame) {
this.gotoAndStop((this._currentframe = _root.pants));
}
Instance of Symbol 266 MovieClip in Symbol 269 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.boots));
}
onClipEvent (enterFrame) {
this.gotoAndStop((this._currentframe = _root.boots));
}
Symbol 269 MovieClip Frame 2
_root.standAttack = false;
_root.runAttack = true;
Symbol 269 MovieClip Frame 9
gotoAndPlay (2);
Instance of Symbol 302 MovieClip in Symbol 303 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pants));
}
Symbol 385 MovieClip Frame 1
stop();
_root.bows = true;
_root.swords = false;
_root.weaponDamage = 2;
_root.spear = false;
_root.arrowsNum = 9;
Symbol 385 MovieClip Frame 2
_root.ninjasword = false;
_root.spear = false;
_root.weaponDamage = 3;
_root.swords = true;
_root.bows = false;
Symbol 395 MovieClip Frame 1
stop();
_root.bows = true;
_root.swords = false;
_root.weaponDamage = 5;
_root.spear = false;
_root.arrowsNum = 7;
Symbol 395 MovieClip Frame 2
_root.weaponDamage = 15;
_root.ninjasword = false;
_root.spear = false;
_root.swords = true;
_root.bows = false;
Symbol 396 MovieClip Frame 1
stop();
_root.bows = true;
_root.swords = false;
_root.weaponDamage = 5;
_root.spear = false;
_root.arrowsNum = 6;
Symbol 396 MovieClip Frame 2
_root.weaponDamage = 20;
_root.ninjasword = false;
_root.spear = false;
_root.swords = true;
_root.bows = false;
Symbol 408 MovieClip Frame 1
stop();
Instance of Symbol 361 MovieClip in Symbol 408 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shieldhand));
}
Symbol 408 MovieClip Frame 2
stop();
_root.ninjasword = false;
_root.spear = false;
_root.weaponDamage = 1;
_root.swords = true;
_root.bows = false;
Symbol 408 MovieClip Frame 3
stop();
_root.ninjasword = false;
_root.spear = false;
_root.weaponDamage = 3;
_root.swords = true;
_root.bows = false;
Symbol 408 MovieClip Frame 4
stop();
_root.swords = true;
_root.bows = false;
_root.weaponDamage = 4;
_root.ninjasword = false;
_root.spear = false;
_root.bows = false;
Symbol 408 MovieClip Frame 5
_root.weaponDamage = 5;
_root.ninjasword = false;
_root.spear = false;
_root.swords = true;
_root.bows = false;
Symbol 408 MovieClip Frame 6
_root.weaponDamage = 7;
_root.ninjasword = false;
_root.spear = false;
_root.swords = true;
_root.bows = false;
Symbol 408 MovieClip Frame 7
_root.ninjasword = false;
_root.spear = false;
_root.weaponDamage = 9;
_root.bows = false;
_root.swords = true;
_root.hammer = true;
Symbol 408 MovieClip Frame 8
_root.weaponDamage = 16;
_root.ninjasword = false;
_root.spear = false;
_root.swords = true;
_root.bows = false;
Symbol 408 MovieClip Frame 9
_root.weaponDamage = 12;
_root.ninjasword = false;
_root.spear = false;
_root.swords = true;
_root.bows = false;
Symbol 408 MovieClip Frame 10
_root.weaponDamage = 15;
_root.ninjasword = false;
_root.spear = false;
_root.swords = true;
_root.bows = false;
Instance of Symbol 385 MovieClip in Symbol 408 MovieClip Frame 11
onClipEvent (load) {
if (_root.changeBow == true) {
this.gotoAndStop(2);
}
}
Symbol 408 MovieClip Frame 12
_root.spear = true;
_root.ninjasword = false;
_root.weaponDamage = 5;
_root.swords = true;
_root.bows = false;
Symbol 408 MovieClip Frame 13
_root.weaponDamage = 20;
_root.ninjasword = false;
_root.spear = false;
_root.swords = true;
_root.bows = false;
Symbol 408 MovieClip Frame 14
_root.weaponDamage = 15;
_root.ninjasword = false;
_root.spear = false;
_root.swords = true;
_root.bows = false;
Symbol 408 MovieClip Frame 15
_root.weaponDamage = 20;
_root.ninjasword = false;
_root.spear = false;
_root.swords = true;
_root.bows = false;
Instance of Symbol 395 MovieClip in Symbol 408 MovieClip Frame 16
onClipEvent (load) {
if (_root.changeBow == true) {
this.gotoAndStop(2);
}
}
Instance of Symbol 396 MovieClip in Symbol 408 MovieClip Frame 17
onClipEvent (load) {
if (_root.changeBow == true) {
this.gotoAndStop(2);
}
}
Symbol 408 MovieClip Frame 18
_root.weaponDamage = 22;
_root.ninjasword = false;
_root.spear = false;
_root.swords = true;
_root.bows = false;
Symbol 408 MovieClip Frame 19
_root.weaponDamage = 25;
_root.ninjasword = false;
_root.spear = false;
_root.swords = true;
_root.bows = false;
Symbol 408 MovieClip Frame 20
_root.weaponDamage = 35;
_root.ninjasword = false;
_root.spear = false;
_root.swords = true;
_root.bows = false;
Symbol 408 MovieClip Frame 21
_root.ninjasword = true;
_root.spear = false;
_root.weaponDamage = 25;
_root.bows = false;
_root.swords = true;
Symbol 408 MovieClip Frame 22
_root.weaponDamage = 40;
_root.ninjasword = false;
_root.spear = false;
_root.swords = true;
_root.bows = false;
Symbol 411 MovieClip Frame 1
stop();
Instance of Symbol 411 MovieClip in Symbol 457 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.bagnum);
}
Symbol 462 MovieClip Frame 1
stop();
Symbol 467 MovieClip Frame 1
stop();
Symbol 472 MovieClip Frame 1
stop();
Symbol 477 MovieClip Frame 1
stop();
Symbol 482 MovieClip Frame 1
stop();
Symbol 487 MovieClip Frame 1
stop();
Symbol 492 MovieClip Frame 1
stop();
Symbol 497 MovieClip Frame 1
stop();
Symbol 502 MovieClip Frame 1
stop();
Symbol 507 MovieClip Frame 1
stop();
Symbol 512 MovieClip Frame 1
stop();
Symbol 517 MovieClip Frame 1
stop();
Symbol 522 MovieClip Frame 1
stop();
Instance of Symbol 361 MovieClip in Symbol 525 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shieldhand));
}
Instance of Symbol 462 MovieClip in Symbol 525 MovieClip Frame 3
onClipEvent (load) {
if (_root.shieldDead == true) {
this.gotoAndStop(2);
}
}
Instance of Symbol 467 MovieClip in Symbol 525 MovieClip Frame 4
onClipEvent (load) {
if (_root.shieldDead == true) {
this.gotoAndStop(2);
}
}
Instance of Symbol 472 MovieClip in Symbol 525 MovieClip Frame 5
onClipEvent (load) {
if (_root.shieldDead == true) {
this.gotoAndStop(2);
}
}
Instance of Symbol 477 MovieClip in Symbol 525 MovieClip Frame 6
onClipEvent (load) {
if (_root.shieldDead == true) {
this.gotoAndStop(2);
}
}
Instance of Symbol 482 MovieClip in Symbol 525 MovieClip Frame 7
onClipEvent (load) {
if (_root.shieldDead == true) {
this.gotoAndStop(2);
}
}
Instance of Symbol 487 MovieClip in Symbol 525 MovieClip Frame 8
onClipEvent (load) {
if (_root.shieldDead == true) {
this.gotoAndStop(2);
}
}
Instance of Symbol 492 MovieClip in Symbol 525 MovieClip Frame 9
onClipEvent (load) {
if (_root.shieldDead == true) {
this.gotoAndStop(2);
}
}
Instance of Symbol 497 MovieClip in Symbol 525 MovieClip Frame 10
onClipEvent (load) {
if (_root.shieldDead == true) {
this.gotoAndStop(2);
}
}
Instance of Symbol 502 MovieClip in Symbol 525 MovieClip Frame 11
onClipEvent (load) {
if (_root.shieldDead == true) {
this.gotoAndStop(2);
}
}
Instance of Symbol 507 MovieClip in Symbol 525 MovieClip Frame 12
onClipEvent (load) {
if (_root.shieldDead == true) {
this.gotoAndStop(2);
}
}
Instance of Symbol 512 MovieClip in Symbol 525 MovieClip Frame 13
onClipEvent (load) {
if (_root.shieldDead == true) {
this.gotoAndStop(2);
}
}
Instance of Symbol 517 MovieClip in Symbol 525 MovieClip Frame 14
onClipEvent (load) {
if (_root.shieldDead == true) {
this.gotoAndStop(2);
}
}
Instance of Symbol 522 MovieClip in Symbol 525 MovieClip Frame 15
onClipEvent (load) {
if (_root.shieldDead == true) {
this.gotoAndStop(2);
}
}
Instance of Symbol 578 MovieClip in Symbol 599 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.helmet2));
}
Symbol 602 MovieClip Frame 1
stop();
Symbol 603 MovieClip Frame 1
stop();
Symbol 613 MovieClip Frame 1
_root.canAttack = true;
_root.standAttack = true;
_root.runAttack = false;
onEnterFrame = function () {
if (_root.pause) {
stop();
} else {
play();
}
};
_parent.HIT.gotoAndStop(1);
Instance of Symbol 335 MovieClip in Symbol 613 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2));
}
Instance of Symbol 408 MovieClip in Symbol 613 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.sword));
}
Instance of Symbol 457 MovieClip in Symbol 613 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.body));
}
Instance of Symbol 335 MovieClip in Symbol 613 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2));
}
Instance of Symbol 525 MovieClip in Symbol 613 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield));
}
Instance of Symbol 599 MovieClip in Symbol 613 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.helmet));
}
Symbol 613 MovieClip Frame 2
_root.canAttack = true;
_parent.HIT.gotoAndStop(1);
Symbol 613 MovieClip Frame 3
_root.canAttack = true;
_parent.HIT.gotoAndStop(1);
Symbol 613 MovieClip Frame 4
_root.canAttack = true;
Symbol 613 MovieClip Frame 5
_root.canAttack = true;
Symbol 613 MovieClip Frame 6
_root.canAttack = true;
Symbol 613 MovieClip Frame 7
_root.canAttack = true;
Symbol 613 MovieClip Frame 8
_root.canAttack = true;
Symbol 613 MovieClip Frame 9
_root.canAttack = true;
Symbol 613 MovieClip Frame 10
_root.canAttack = true;
Symbol 613 MovieClip Frame 11
_root.canAttack = true;
Symbol 613 MovieClip Frame 12
_root.canAttack = true;
Symbol 613 MovieClip Frame 13
_root.canAttack = true;
Symbol 613 MovieClip Frame 14
_root.canAttack = true;
Symbol 613 MovieClip Frame 15
_root.canAttack = true;
Symbol 613 MovieClip Frame 16
_root.canAttack = true;
Symbol 613 MovieClip Frame 17
_root.canAttack = true;
Symbol 613 MovieClip Frame 18
_root.canAttack = true;
Symbol 613 MovieClip Frame 19
_root.canAttack = true;
Symbol 613 MovieClip Frame 20
_root.canAttack = true;
Symbol 613 MovieClip Frame 21
_root.canAttack = true;
_parent.HIT.gotoAndStop(1);
Symbol 613 MovieClip Frame 22
_root.canAttack = true;
Symbol 613 MovieClip Frame 23
_root.canAttack = true;
Symbol 613 MovieClip Frame 24
_root.canAttack = true;
Symbol 613 MovieClip Frame 25
_root.canAttack = true;
Symbol 613 MovieClip Frame 26
_root.canAttack = true;
Symbol 613 MovieClip Frame 27
_root.canAttack = true;
Symbol 613 MovieClip Frame 28
_root.canAttack = true;
Symbol 613 MovieClip Frame 29
_root.canAttack = true;
Symbol 613 MovieClip Frame 30
_root.canAttack = true;
Symbol 613 MovieClip Frame 31
_root.canAttack = true;
Symbol 613 MovieClip Frame 32
_root.canAttack = true;
Symbol 613 MovieClip Frame 33
_root.canAttack = true;
Symbol 613 MovieClip Frame 34
_root.canAttack = true;
Symbol 613 MovieClip Frame 35
_root.canAttack = true;
Symbol 613 MovieClip Frame 36
_root.canAttack = true;
Symbol 613 MovieClip Frame 37
_root.canAttack = true;
Symbol 613 MovieClip Frame 38
_root.canAttack = true;
Symbol 613 MovieClip Frame 39
_root.canAttack = true;
Symbol 613 MovieClip Frame 40
_root.canAttack = true;
Symbol 613 MovieClip Frame 41
_root.canAttack = false;
gotoAndPlay (1);
Symbol 613 MovieClip Frame 50
_root.canAttack = false;
Instance of Symbol 335 MovieClip in Symbol 613 MovieClip Frame 50
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2));
}
Instance of Symbol 408 MovieClip in Symbol 613 MovieClip Frame 50
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.sword));
}
Instance of Symbol 457 MovieClip in Symbol 613 MovieClip Frame 50
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.body));
}
Instance of Symbol 335 MovieClip in Symbol 613 MovieClip Frame 50
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2));
}
Instance of Symbol 525 MovieClip in Symbol 613 MovieClip Frame 50
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield));
}
Instance of Symbol 599 MovieClip in Symbol 613 MovieClip Frame 50
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.helmet));
}
Instance of Symbol 408 MovieClip in Symbol 613 MovieClip Frame 56
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.sword));
}
Instance of Symbol 603 MovieClip "HIT" in Symbol 613 MovieClip Frame 56
onClipEvent (load) {
this._visible = false;
this.gotoAndStop((this._currentframe = _root.sword));
}
Instance of Symbol 408 MovieClip in Symbol 613 MovieClip Frame 57
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.sword));
}
Instance of Symbol 335 MovieClip in Symbol 613 MovieClip Frame 59
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2));
}
Symbol 613 MovieClip Frame 60
gotoAndPlay (1);
_root.standAttack = true;
_root.runAttack = false;
Symbol 613 MovieClip Frame 70
_root.canAttack = false;
Instance of Symbol 335 MovieClip in Symbol 613 MovieClip Frame 70
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2));
}
Instance of Symbol 408 MovieClip in Symbol 613 MovieClip Frame 70
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.sword));
}
Instance of Symbol 457 MovieClip in Symbol 613 MovieClip Frame 70
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.body));
}
Instance of Symbol 335 MovieClip in Symbol 613 MovieClip Frame 70
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2));
}
Instance of Symbol 525 MovieClip in Symbol 613 MovieClip Frame 70
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield));
}
Instance of Symbol 599 MovieClip in Symbol 613 MovieClip Frame 70
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.helmet));
}
Instance of Symbol 603 MovieClip "HIT" in Symbol 613 MovieClip Frame 76
onClipEvent (load) {
this._visible = false;
this.gotoAndStop((this._currentframe = _root.sword));
}
Instance of Symbol 408 MovieClip in Symbol 613 MovieClip Frame 77
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.sword));
}
Instance of Symbol 408 MovieClip in Symbol 613 MovieClip Frame 78
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.sword));
}
Instance of Symbol 335 MovieClip in Symbol 613 MovieClip Frame 79
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2));
}
Symbol 613 MovieClip Frame 82
gotoAndPlay (1);
_root.standAttack = true;
_root.runAttack = false;
Symbol 613 MovieClip Frame 90
_root.canAttack = false;
Instance of Symbol 335 MovieClip in Symbol 613 MovieClip Frame 90
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2));
}
Instance of Symbol 408 MovieClip in Symbol 613 MovieClip Frame 90
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.sword));
}
Instance of Symbol 457 MovieClip in Symbol 613 MovieClip Frame 90
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.body));
}
Instance of Symbol 335 MovieClip in Symbol 613 MovieClip Frame 90
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2));
}
Instance of Symbol 525 MovieClip in Symbol 613 MovieClip Frame 90
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield));
}
Instance of Symbol 599 MovieClip in Symbol 613 MovieClip Frame 90
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.helmet));
}
Instance of Symbol 408 MovieClip in Symbol 613 MovieClip Frame 91
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.sword));
}
Instance of Symbol 408 MovieClip in Symbol 613 MovieClip Frame 96
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.sword));
}
Instance of Symbol 335 MovieClip in Symbol 613 MovieClip Frame 97
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2));
}
Instance of Symbol 603 MovieClip "HIT" in Symbol 613 MovieClip Frame 97
onClipEvent (load) {
this._visible = false;
this.gotoAndStop((this._currentframe = _root.sword));
}
Instance of Symbol 408 MovieClip in Symbol 613 MovieClip Frame 100
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.sword));
}
Symbol 613 MovieClip Frame 101
gotoAndPlay (1);
_root.standAttack = true;
_root.runAttack = false;
Symbol 613 MovieClip Frame 110
_root.canAttack = false;
Instance of Symbol 335 MovieClip in Symbol 613 MovieClip Frame 110
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2));
}
Instance of Symbol 408 MovieClip in Symbol 613 MovieClip Frame 110
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.sword));
}
Instance of Symbol 457 MovieClip in Symbol 613 MovieClip Frame 110
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.body));
}
Instance of Symbol 335 MovieClip in Symbol 613 MovieClip Frame 110
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2));
}
Instance of Symbol 525 MovieClip in Symbol 613 MovieClip Frame 110
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield));
}
Instance of Symbol 599 MovieClip in Symbol 613 MovieClip Frame 110
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.helmet));
}
Instance of Symbol 408 MovieClip in Symbol 613 MovieClip Frame 117
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.sword));
}
Instance of Symbol 603 MovieClip "HIT" in Symbol 613 MovieClip Frame 117
onClipEvent (load) {
this._visible = false;
this.gotoAndStop((this._currentframe = _root.sword));
}
Instance of Symbol 408 MovieClip in Symbol 613 MovieClip Frame 118
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.sword));
}
Instance of Symbol 335 MovieClip in Symbol 613 MovieClip Frame 119
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2));
}
Instance of Symbol 408 MovieClip in Symbol 613 MovieClip Frame 123
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.sword));
}
Instance of Symbol 603 MovieClip "HIT" in Symbol 613 MovieClip Frame 123
onClipEvent (load) {
this._visible = false;
this.gotoAndStop((this._currentframe = _root.sword));
}
Instance of Symbol 408 MovieClip in Symbol 613 MovieClip Frame 124
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.sword));
}
Symbol 613 MovieClip Frame 128
gotoAndPlay (1);
Symbol 613 MovieClip Frame 140
_root.canAttack = false;
Instance of Symbol 335 MovieClip in Symbol 613 MovieClip Frame 140
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2));
}
Instance of Symbol 408 MovieClip in Symbol 613 MovieClip Frame 140
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.sword));
}
Instance of Symbol 457 MovieClip in Symbol 613 MovieClip Frame 140
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.body));
}
Instance of Symbol 335 MovieClip in Symbol 613 MovieClip Frame 140
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2));
}
Instance of Symbol 525 MovieClip in Symbol 613 MovieClip Frame 140
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield));
}
Instance of Symbol 599 MovieClip in Symbol 613 MovieClip Frame 140
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.helmet));
}
Instance of Symbol 408 MovieClip in Symbol 613 MovieClip Frame 147
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.sword));
}
Instance of Symbol 603 MovieClip "HIT" in Symbol 613 MovieClip Frame 147
onClipEvent (load) {
this._visible = false;
this.gotoAndStop((this._currentframe = _root.sword));
}
Instance of Symbol 408 MovieClip in Symbol 613 MovieClip Frame 148
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.sword));
}
Instance of Symbol 335 MovieClip in Symbol 613 MovieClip Frame 149
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2));
}
Instance of Symbol 408 MovieClip in Symbol 613 MovieClip Frame 153
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.sword));
}
Instance of Symbol 603 MovieClip "HIT" in Symbol 613 MovieClip Frame 153
onClipEvent (load) {
this._visible = false;
this.gotoAndStop((this._currentframe = _root.sword));
}
Instance of Symbol 408 MovieClip in Symbol 613 MovieClip Frame 154
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.sword));
}
Symbol 613 MovieClip Frame 158
_root.standAttack = true;
_root.runAttack = false;
gotoAndPlay (1);
Symbol 613 MovieClip Frame 170
_root.canAttack = false;
Instance of Symbol 335 MovieClip in Symbol 613 MovieClip Frame 170
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2));
}
Instance of Symbol 408 MovieClip in Symbol 613 MovieClip Frame 170
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.sword));
}
Instance of Symbol 457 MovieClip in Symbol 613 MovieClip Frame 170
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.body));
}
Instance of Symbol 335 MovieClip in Symbol 613 MovieClip Frame 170
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2));
}
Instance of Symbol 525 MovieClip in Symbol 613 MovieClip Frame 170
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield));
}
Instance of Symbol 599 MovieClip in Symbol 613 MovieClip Frame 170
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.helmet));
}
Instance of Symbol 408 MovieClip in Symbol 613 MovieClip Frame 178
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.sword));
}
Instance of Symbol 603 MovieClip "HIT2" in Symbol 613 MovieClip Frame 178
onClipEvent (load) {
this._visible = false;
this.gotoAndStop((this._currentframe = _root.sword));
}
Instance of Symbol 335 MovieClip in Symbol 613 MovieClip Frame 179
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2));
}
Instance of Symbol 408 MovieClip in Symbol 613 MovieClip Frame 179
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.sword));
}
Instance of Symbol 335 MovieClip in Symbol 613 MovieClip Frame 181
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2));
}
Symbol 613 MovieClip Frame 186
_root.standAttack = true;
_root.runAttack = false;
gotoAndPlay (1);
Symbol 613 MovieClip Frame 200
_root.canAttack = false;
_root.spear = false;
_root.spearcankill = false;
_root.arrowflyCheker = true;
Instance of Symbol 335 MovieClip in Symbol 613 MovieClip Frame 200
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2));
}
Instance of Symbol 408 MovieClip in Symbol 613 MovieClip Frame 200
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.sword));
}
Instance of Symbol 457 MovieClip in Symbol 613 MovieClip Frame 200
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.body));
}
Instance of Symbol 599 MovieClip in Symbol 613 MovieClip Frame 200
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.helmet));
}
Instance of Symbol 335 MovieClip in Symbol 613 MovieClip Frame 200
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2));
}
Instance of Symbol 525 MovieClip in Symbol 613 MovieClip Frame 200
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield));
}
Symbol 613 MovieClip Frame 201
_root.arrowflyCheker = true;
Symbol 613 MovieClip Frame 202
_root.arrowflyCheker = true;
Symbol 613 MovieClip Frame 203
_root.arrowflyCheker = true;
Symbol 613 MovieClip Frame 204
_root.arrowflyCheker = true;
Symbol 613 MovieClip Frame 205
_root.arrowflyCheker = true;
Symbol 613 MovieClip Frame 206
_root.arrowflyCheker = true;
Symbol 613 MovieClip Frame 207
_root.arrowflyCheker = true;
Symbol 613 MovieClip Frame 208
_root.arrowflyCheker = true;
Symbol 613 MovieClip Frame 209
_root.arrowflyCheker = true;
Symbol 613 MovieClip Frame 210
_root.arrowflyCheker = true;
Symbol 613 MovieClip Frame 211
_root.arrowflyCheker = true;
Symbol 613 MovieClip Frame 213
_root.arrowflyCheker = true;
Symbol 613 MovieClip Frame 214
_root.arrowfly = true;
_root.arrowflyCheker = true;
Symbol 613 MovieClip Frame 215
_root.arrowfly = false;
_root.arrowflyCheker = false;
Symbol 613 MovieClip Frame 217
_root.arrowfly = false;
Symbol 613 MovieClip Frame 218
_root.arrowfly = false;
Symbol 613 MovieClip Frame 219
_root.standAttack = true;
_root.runAttack = false;
gotoAndPlay (1);
Symbol 613 MovieClip Frame 230
_root.canAttack = false;
_parent.legs._visible = false;
onEnterFrame = function () {
if (Key.isDown(37) and (kick == true)) {
_root.hero._x = _root.hero._x + _root.hero.run;
}
if (Key.isDown(39) and (kick == true)) {
_root.hero._x = _root.hero._x - _root.hero.run;
} else if (!Key.isDown(39)) {
}
};
kick = true;
Instance of Symbol 335 MovieClip in Symbol 613 MovieClip Frame 230
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2));
}
Instance of Symbol 408 MovieClip in Symbol 613 MovieClip Frame 230
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.sword));
}
Instance of Symbol 457 MovieClip in Symbol 613 MovieClip Frame 230
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.body));
}
Instance of Symbol 335 MovieClip in Symbol 613 MovieClip Frame 230
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2));
}
Instance of Symbol 525 MovieClip in Symbol 613 MovieClip Frame 230
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield));
}
Instance of Symbol 599 MovieClip in Symbol 613 MovieClip Frame 230
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.helmet));
}
Instance of Symbol 225 MovieClip in Symbol 613 MovieClip Frame 231
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pants));
}
Instance of Symbol 266 MovieClip in Symbol 613 MovieClip Frame 231
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.boots));
}
Instance of Symbol 225 MovieClip in Symbol 613 MovieClip Frame 231
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pants));
}
Instance of Symbol 266 MovieClip in Symbol 613 MovieClip Frame 231
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.boots));
}
Instance of Symbol 603 MovieClip "HIT3" in Symbol 613 MovieClip Frame 235
onClipEvent (load) {
this._visible = false;
}
Symbol 613 MovieClip Frame 242
_parent.legs._visible = true;
Symbol 613 MovieClip Frame 243
kick = false;
_root.standAttack = true;
_root.runAttack = false;
gotoAndPlay (1);
Symbol 613 MovieClip Frame 250
_root.canAttack = false;
_parent.legs._visible = false;
onEnterFrame = function () {
if (Key.isDown(37) and (kick == true)) {
_root.hero._x = _root.hero._x + _root.hero.run;
}
if (Key.isDown(39) and (kick == true)) {
_root.hero._x = _root.hero._x - _root.hero.run;
} else if (!Key.isDown(39)) {
}
};
kick = true;
Instance of Symbol 335 MovieClip in Symbol 613 MovieClip Frame 250
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2));
}
Instance of Symbol 408 MovieClip in Symbol 613 MovieClip Frame 250
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.sword));
}
Instance of Symbol 457 MovieClip in Symbol 613 MovieClip Frame 250
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.body));
}
Instance of Symbol 335 MovieClip in Symbol 613 MovieClip Frame 250
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2));
}
Instance of Symbol 525 MovieClip in Symbol 613 MovieClip Frame 250
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield));
}
Instance of Symbol 599 MovieClip in Symbol 613 MovieClip Frame 250
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.helmet));
}
Instance of Symbol 225 MovieClip in Symbol 613 MovieClip Frame 251
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pants));
}
Instance of Symbol 266 MovieClip in Symbol 613 MovieClip Frame 251
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.boots));
}
Instance of Symbol 225 MovieClip in Symbol 613 MovieClip Frame 251
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pants));
}
Instance of Symbol 266 MovieClip in Symbol 613 MovieClip Frame 251
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.boots));
}
Instance of Symbol 603 MovieClip "HIT3" in Symbol 613 MovieClip Frame 252
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 225 MovieClip in Symbol 613 MovieClip Frame 253
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pants));
}
Instance of Symbol 266 MovieClip in Symbol 613 MovieClip Frame 253
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.boots));
}
Symbol 613 MovieClip Frame 258
_parent.legs._visible = true;
Symbol 613 MovieClip Frame 259
kick = false;
_root.standAttack = true;
_root.runAttack = false;
gotoAndPlay (1);
Symbol 613 MovieClip Frame 270
_root.sword = 1;
_root.canAttack = false;
_root.spear = false;
_root.spearcankill = true;
_root.spearflyCheker = true;
Instance of Symbol 610 MovieClip in Symbol 613 MovieClip Frame 270
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.spear));
}
Instance of Symbol 335 MovieClip in Symbol 613 MovieClip Frame 270
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2));
}
Instance of Symbol 408 MovieClip in Symbol 613 MovieClip Frame 270
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.sword));
}
Instance of Symbol 457 MovieClip in Symbol 613 MovieClip Frame 270
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.body));
}
Instance of Symbol 335 MovieClip in Symbol 613 MovieClip Frame 270
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2));
}
Instance of Symbol 525 MovieClip in Symbol 613 MovieClip Frame 270
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield));
}
Instance of Symbol 599 MovieClip in Symbol 613 MovieClip Frame 270
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.helmet));
}
Symbol 613 MovieClip Frame 271
_root.spearflyCheker = true;
Symbol 613 MovieClip Frame 272
_root.spearflyCheker = true;
Symbol 613 MovieClip Frame 273
_root.spearflyCheker = true;
Instance of Symbol 335 MovieClip in Symbol 613 MovieClip Frame 273
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2));
}
Instance of Symbol 408 MovieClip in Symbol 613 MovieClip Frame 273
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.sword));
}
Symbol 613 MovieClip Frame 274
_root.spearflyCheker = true;
Symbol 613 MovieClip Frame 275
_root.spearflyCheker = true;
Symbol 613 MovieClip Frame 276
_root.spearflyCheker = true;
Symbol 613 MovieClip Frame 277
_root.spearflyCheker = true;
Symbol 613 MovieClip Frame 279
_root.spearfly = true;
Symbol 613 MovieClip Frame 280
_root.spearflyCheker = false;
_root.spearfly = false;
Symbol 613 MovieClip Frame 281
_root.spearfly = false;
Symbol 613 MovieClip Frame 282
_root.spearfly = false;
Symbol 613 MovieClip Frame 289
_root.sword = 3;
gotoAndPlay (1);
Symbol 613 MovieClip Frame 300
_root.canAttack = false;
Instance of Symbol 335 MovieClip in Symbol 613 MovieClip Frame 300
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2));
}
Instance of Symbol 408 MovieClip in Symbol 613 MovieClip Frame 300
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.sword));
}
Instance of Symbol 457 MovieClip in Symbol 613 MovieClip Frame 300
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.body));
}
Instance of Symbol 335 MovieClip in Symbol 613 MovieClip Frame 300
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2));
}
Instance of Symbol 525 MovieClip in Symbol 613 MovieClip Frame 300
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield));
}
Instance of Symbol 599 MovieClip in Symbol 613 MovieClip Frame 300
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.helmet));
}
Instance of Symbol 408 MovieClip in Symbol 613 MovieClip Frame 303
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.sword));
}
Instance of Symbol 408 MovieClip in Symbol 613 MovieClip Frame 306
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.sword));
}
Instance of Symbol 603 MovieClip "HIT" in Symbol 613 MovieClip Frame 306
onClipEvent (load) {
this._visible = false;
this.gotoAndStop((this._currentframe = _root.sword));
}
Instance of Symbol 408 MovieClip in Symbol 613 MovieClip Frame 307
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.sword));
}
Instance of Symbol 603 MovieClip "HIT" in Symbol 613 MovieClip Frame 307
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.sword));
}
Instance of Symbol 408 MovieClip in Symbol 613 MovieClip Frame 308
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.sword));
}
Instance of Symbol 603 MovieClip "HIT" in Symbol 613 MovieClip Frame 308
onClipEvent (load) {
this._visible = false;
this.gotoAndStop((this._currentframe = _root.sword));
}
Symbol 613 MovieClip Frame 311
gotoAndPlay (1);
Symbol 613 MovieClip Frame 320
_root.canAttack = false;
_parent.HIT.gotoAndStop(1);
Instance of Symbol 335 MovieClip in Symbol 613 MovieClip Frame 320
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2));
}
Instance of Symbol 408 MovieClip in Symbol 613 MovieClip Frame 320
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.sword));
}
Instance of Symbol 457 MovieClip in Symbol 613 MovieClip Frame 320
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.body));
}
Instance of Symbol 335 MovieClip in Symbol 613 MovieClip Frame 320
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2));
}
Instance of Symbol 525 MovieClip in Symbol 613 MovieClip Frame 320
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield));
}
Instance of Symbol 599 MovieClip in Symbol 613 MovieClip Frame 320
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.helmet));
}
Instance of Symbol 525 MovieClip in Symbol 613 MovieClip Frame 322
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield));
}
Symbol 613 MovieClip Frame 324
onEnterFrame = function () {
if (((!_root.shieldDead) == true) and Key.isDown(68)) {
stop();
_parent.HIT.gotoAndStop(2);
} else if (!Key.isDown(68)) {
_parent.HIT.gotoAndStop(1);
play();
}
};
Symbol 613 MovieClip Frame 327
_parent.HIT.gotoAndStop(1);
Instance of Symbol 525 MovieClip in Symbol 613 MovieClip Frame 327
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield));
}
Symbol 613 MovieClip Frame 328
gotoAndPlay (1);
Symbol 615 Button
on (release) {
_root.helmet = random(11) + 1;
}
Symbol 616 MovieClip Frame 1
stop();
Symbol 617 MovieClip [heroAttach] Frame 1
stop();
Instance of Symbol 269 MovieClip "legs" in Symbol 617 MovieClip [heroAttach] Frame 1
onClipEvent (load) {
this._visible = true;
}
Instance of Symbol 616 MovieClip "HIT" in Symbol 617 MovieClip [heroAttach] Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 627 MovieClip Frame 9
removeMovieClip(_parent);
Symbol 635 MovieClip [SpearFall] Frame 1
this.onEnterFrame = function () {
if (_root.hero.hitTest(this) and Key.isDown(40)) {
_root.sword = 12;
removeMovieClip(this);
}
};
Instance of Symbol 633 MovieClip in Symbol 635 MovieClip [SpearFall] Frame 1
onClipEvent (enterFrame) {
_parent._y = _parent._y + 8;
}
Symbol 644 Button
on (release) {
_parent.play();
_root.EXP = _root.EXP + 250;
}
Symbol 648 Button
on (release) {
_root.gold = _root.gold + 500;
_parent.play();
}
Symbol 651 MovieClip Frame 1
stop();
Symbol 652 MovieClip [upgradeAttach] Frame 1
stop();
Instance of Symbol 651 MovieClip in Symbol 652 MovieClip [upgradeAttach] Frame 1
/* no clip actions */
Symbol 652 MovieClip [upgradeAttach] Frame 25
stop();
_root.passlevel = false;
Symbol 652 MovieClip [upgradeAttach] Frame 41
stop();
removeMovieClip(_parent);
_root.passlevel = false;
Symbol 653 MovieClip Frame 1
stop();
Symbol 663 MovieClip Frame 1
stop();
Symbol 672 Button
on (release) {
_root.steam.gotoAndStop(1);
gotoAndStop (2);
}
Symbol 673 Button
on (release) {
_root.steam.play();
gotoAndStop (1);
}
Symbol 674 MovieClip Frame 1
stop();
Symbol 687 Button
on (release) {
_root.gotoAndStop(30);
}
Symbol 690 Button
on (release) {
getURL ("http://www.freeonlinegames.com/?JourneytotheEast", "_blank");
}
Symbol 693 Button
on (release) {
getURL ("http://www.freegamesforyourwebsite.com/?JourneytotheEast", "_blank");
}
Symbol 696 Button
on (release) {
play();
}
Symbol 711 MovieClip Frame 1
stop();
Symbol 711 MovieClip Frame 10
stop();
Symbol 711 MovieClip Frame 21
gotoAndStop (1);
Symbol 720 Button
on (release) {
getURL ("http://www.freeonlinegames.com/?journeytotheeast", "_blank");
}
Symbol 774 MovieClip Frame 1
stop();
Symbol 774 MovieClip Frame 2
stop();
_parent.cost = 0;
_parent.ID = _currentframe;
_parent.left.gotoAndStop(2);
_parent.right.gotoAndStop(1);
Symbol 774 MovieClip Frame 3
stop();
_parent.ID = _currentframe;
_parent.cost = 20;
_parent.left.gotoAndStop(1);
if (_root.levelUP < 2) {
_parent.right.gotoAndStop(2);
}
Symbol 774 MovieClip Frame 4
stop();
_parent.cost = 50;
_parent.ID = _currentframe;
_parent.right.gotoAndStop(1);
Symbol 774 MovieClip Frame 5
_parent.cost = 200;
_parent.ID = _currentframe;
if (_root.levelUP < 4) {
_parent.right.gotoAndStop(2);
}
Symbol 774 MovieClip Frame 6
_parent.cost = 400;
_parent.ID = _currentframe;
Symbol 774 MovieClip Frame 7
_parent.cost = 500;
_parent.ID = _currentframe;
_parent.right.gotoAndStop(1);
Symbol 774 MovieClip Frame 8
stop();
_parent.cost = 600;
_parent.ID = _currentframe;
if (_root.levelUP < 6) {
_parent.right.gotoAndStop(2);
}
Symbol 774 MovieClip Frame 9
_parent.ID = _currentframe;
_parent.cost = 700;
Symbol 774 MovieClip Frame 10
stop();
_parent.ID = _currentframe;
_parent.cost = 650;
Symbol 774 MovieClip Frame 11
_parent.ID = _currentframe;
_parent.right.gotoAndStop(1);
_parent.cost = 700;
Symbol 774 MovieClip Frame 12
_parent.ID = _currentframe;
_parent.cost = 750;
if (_root.levelUP < 8) {
_parent.right.gotoAndStop(2);
}
Symbol 774 MovieClip Frame 13
_parent.ID = _currentframe;
_parent.right.gotoAndStop(1);
_parent.cost = 700;
Symbol 774 MovieClip Frame 14
_parent.ID = _currentframe;
if (_root.levelUP < 10) {
_parent.right.gotoAndStop(2);
}
_parent.cost = 800;
Symbol 774 MovieClip Frame 15
_parent.ID = _currentframe;
_parent.cost = 900;
Symbol 774 MovieClip Frame 16
_parent.ID = _currentframe;
_parent.cost = 1000;
Symbol 774 MovieClip Frame 17
_parent.ID = _currentframe;
_parent.right.gotoAndStop(1);
_parent.cost = 1125;
Symbol 774 MovieClip Frame 18
_parent.ID = _currentframe;
_parent.right.gotoAndStop(2);
_parent.cost = 1200;
Symbol 781 Button
on (release) {
_root.boots = _parent.ID;
_root.bootsP = _parent.cost;
_root.gold = _root.gold - _parent.cost;
_root.attachMovie("ItemsAttach", "ItemsAttach", 50, {_x:160, _y:275.3});
}
Symbol 783 MovieClip Frame 1
stop();
Symbol 787 Button
on (release) {
_parent.bodyBuy.gotoAndStop(_parent.bodyBuy._currentframe - 1);
}
Symbol 789 MovieClip Frame 1
stop();
Symbol 790 Button
on (release) {
if (_parent.cost <= 0) {
_parent.cost = 100;
}
_parent.bodyBuy.gotoAndStop(_parent.bodyBuy._currentframe + 1);
}
Symbol 791 MovieClip Frame 1
stop();
Symbol 834 MovieClip Frame 1
play();
Symbol 834 MovieClip Frame 2
_parent.cost = 0;
_parent.ID = _currentframe;
_parent.left.gotoAndStop(2);
_parent.right.gotoAndStop(1);
Symbol 834 MovieClip Frame 3
stop();
_parent.cost = 50;
_parent.ID = _currentframe;
_parent.left.gotoAndStop(1);
Symbol 834 MovieClip Frame 4
_parent.right.gotoAndStop(1);
stop();
_parent.cost = 75;
_parent.ID = _currentframe;
_parent.right.gotoAndStop(1);
_parent.left.gotoAndStop(1);
Symbol 834 MovieClip Frame 5
if (_root.levelUP < 2) {
_parent.right.gotoAndStop(2);
}
stop();
_parent.cost = 120;
_parent.ID = _currentframe;
if (_root.levelUP < 2) {
_parent.right.gotoAndStop(2);
}
Symbol 834 MovieClip Frame 6
stop();
_parent.cost = 300;
_parent.ID = _currentframe;
Symbol 834 MovieClip Frame 7
_parent.right.gotoAndStop(1);
stop();
_parent.cost = 350;
_parent.ID = _currentframe;
Symbol 834 MovieClip Frame 8
if (_root.levelUP < 3) {
_parent.right.gotoAndStop(2);
}
stop();
_parent.cost = 450;
_parent.ID = _currentframe;
Symbol 834 MovieClip Frame 9
stop();
_parent.cost = 475;
_parent.ID = _currentframe;
_parent.right.gotoAndStop(1);
Symbol 834 MovieClip Frame 10
_parent.right.gotoAndStop(1);
stop();
_parent.cost = 550;
_parent.ID = _currentframe;
if (_root.levelUP == 2) {
_parent.right.gotoAndStop(2);
}
Symbol 834 MovieClip Frame 11
if (_root.levelUP < 5) {
_parent.right.gotoAndStop(2);
}
stop();
_parent.cost = 650;
_parent.ID = _currentframe;
Symbol 834 MovieClip Frame 12
stop();
_parent.cost = 700;
_parent.ID = _currentframe;
Symbol 834 MovieClip Frame 13
_parent.right.gotoAndStop(1);
stop();
_parent.cost = 850;
_parent.ID = _currentframe;
Symbol 834 MovieClip Frame 14
if (_root.levelUP < 7) {
_parent.right.gotoAndStop(2);
}
stop();
_parent.cost = 900;
_parent.ID = _currentframe;
Symbol 834 MovieClip Frame 15
stop();
_parent.cost = 950;
_parent.ID = _currentframe;
Symbol 834 MovieClip Frame 16
_parent.right.gotoAndStop(1);
stop();
_parent.cost = 1000;
_parent.ID = _currentframe;
Symbol 834 MovieClip Frame 17
if (_root.levelUP < 10) {
_parent.right.gotoAndStop(2);
}
stop();
_parent.cost = 1200;
_parent.ID = _currentframe;
Symbol 834 MovieClip Frame 18
stop();
_parent.cost = 1300;
_parent.ID = _currentframe;
Symbol 834 MovieClip Frame 19
_parent.cost = 800;
_parent.ID = _currentframe;
Symbol 834 MovieClip Frame 20
_parent.right.gotoAndStop(1);
stop();
_parent.cost = 900;
_parent.ID = _currentframe;
Symbol 834 MovieClip Frame 21
if (_root.levelUP < 12) {
_parent.right.gotoAndStop(2);
}
stop();
_parent.cost = 1000;
_parent.ID = _currentframe;
Symbol 834 MovieClip Frame 22
_parent.ID = _currentframe;
_parent.cost = 750;
Symbol 834 MovieClip Frame 23
_parent.right.gotoAndStop(1);
_parent.ID = _currentframe;
_parent.cost = 850;
Symbol 834 MovieClip Frame 24
if (_root.levelUP < 14) {
_parent.right.gotoAndStop(2);
}
_parent.ID = _currentframe;
_parent.cost = 1000;
Symbol 834 MovieClip Frame 25
stop();
_parent.cost = 5000;
_parent.ID = _currentframe;
_parent.cost = 1200;
Symbol 834 MovieClip Frame 26
_parent.right.gotoAndStop(1);
_parent.ID = _currentframe;
_parent.right.gotoAndStop(1);
_parent.cost = 1500;
Symbol 834 MovieClip Frame 27
_parent.right.gotoAndStop(2);
_parent.ID = _currentframe;
_parent.right.gotoAndStop(2);
_parent.cost = 1700;
Symbol 836 Button
on (release) {
_root.helmet2 = _parent.ID;
_root.gold = _root.gold - _parent.cost;
_root.attachMovie("ItemsAttach", "ItemsAttach", 50, {_x:159.8, _y:122.3});
}
Symbol 837 MovieClip Frame 1
stop();
Symbol 855 MovieClip Frame 2
_parent.left.gotoAndStop(2);
_parent.right.gotoAndStop(1);
_parent.ID = _currentframe;
_parent.cost = 0;
Symbol 855 MovieClip Frame 3
_parent.right.gotoAndStop(1);
_parent.left.gotoAndStop(1);
_parent.ID = _currentframe;
_parent.cost = 100;
Symbol 855 MovieClip Frame 4
if (_root.levelUP < 2) {
_parent.right.gotoAndStop(2);
}
_parent.ID = _currentframe;
_parent.cost = 200;
Symbol 855 MovieClip Frame 5
_parent.right.gotoAndStop(1);
_parent.ID = _currentframe;
_parent.cost = 300;
Symbol 855 MovieClip Frame 6
if (_root.levelUP < 4) {
_parent.right.gotoAndStop(2);
}
_parent.ID = _currentframe;
_parent.cost = 350;
Symbol 855 MovieClip Frame 7
_parent.ID = _currentframe;
_parent.cost = 400;
Symbol 855 MovieClip Frame 8
_parent.ID = _currentframe;
_parent.cost = 550;
Symbol 855 MovieClip Frame 9
_parent.right.gotoAndStop(1);
_parent.ID = _currentframe;
_parent.cost = 650;
Symbol 855 MovieClip Frame 10
if (_root.levelUP < 9) {
_parent.right.gotoAndStop(2);
}
_parent.ID = _currentframe;
_parent.cost = 700;
Symbol 855 MovieClip Frame 11
_parent.ID = _currentframe;
_parent.cost = 700;
Symbol 855 MovieClip Frame 12
_parent.right.gotoAndStop(1);
_parent.ID = _currentframe;
_parent.cost = 900;
Symbol 855 MovieClip Frame 13
if (_root.levelUP < 10) {
_parent.right.gotoAndStop(2);
}
_parent.ID = _currentframe;
_parent.cost = 1000;
Symbol 855 MovieClip Frame 14
_parent.ID = _currentframe;
_parent.cost = 1200;
Symbol 855 MovieClip Frame 15
_parent.ID = _currentframe;
_parent.cost = 1350;
Symbol 855 MovieClip Frame 16
_parent.right.gotoAndStop(1);
_parent.ID = _currentframe;
_parent.cost = 1500;
Symbol 855 MovieClip Frame 17
if (_root.levelUP < 12) {
_parent.right.gotoAndStop(2);
}
_parent.ID = _currentframe;
_parent.cost = 1800;
Symbol 855 MovieClip Frame 18
_parent.ID = _currentframe;
_parent.cost = 800;
Symbol 855 MovieClip Frame 19
_parent.ID = _currentframe;
_parent.cost = 900;
Symbol 855 MovieClip Frame 20
_parent.ID = _currentframe;
_parent.cost = 1000;
Symbol 855 MovieClip Frame 21
_parent.ID = _currentframe;
_parent.cost = 1200;
Symbol 855 MovieClip Frame 22
_parent.right.gotoAndStop(1);
_parent.ID = _currentframe;
_parent.cost = 1450;
Symbol 855 MovieClip Frame 23
_parent.right.gotoAndStop(2);
_parent.ID = _currentframe;
_parent.cost = 1650;
Symbol 857 Button
on (release) {
_root.body = _parent.ID;
_root.gold = _root.gold - _parent.cost;
_root.attachMovie("ItemsAttach", "ItemsAttach", 50, {_x:160, _y:174.3});
}
Symbol 858 MovieClip Frame 1
stop();
Symbol 871 MovieClip Frame 1
_parent.ID = _currentframe;
Symbol 871 MovieClip Frame 2
_parent.left.gotoAndStop(2);
_parent.right.gotoAndStop(1);
_parent.ID = _currentframe;
_parent.cost = 0;
Symbol 871 MovieClip Frame 3
_parent.left.gotoAndStop(1);
_parent.right.gotoAndStop(1);
_parent.ID = _currentframe;
_parent.cost = 30;
Instance of Symbol 462 MovieClip in Symbol 871 MovieClip Frame 3
onClipEvent (load) {
if (_root.shieldDead == true) {
this.gotoAndStop(2);
}
}
Symbol 871 MovieClip Frame 4
if (_root.levelUP < 2) {
_parent.right.gotoAndStop(2);
}
_parent.ID = _currentframe;
_parent.cost = 100;
Instance of Symbol 467 MovieClip in Symbol 871 MovieClip Frame 4
onClipEvent (load) {
if (_root.shieldDead == true) {
this.gotoAndStop(2);
}
}
Symbol 871 MovieClip Frame 5
_parent.right.gotoAndStop(1);
_parent.ID = _currentframe;
_parent.cost = 175;
Instance of Symbol 472 MovieClip in Symbol 871 MovieClip Frame 5
onClipEvent (load) {
if (_root.shieldDead == true) {
this.gotoAndStop(2);
}
}
Symbol 871 MovieClip Frame 6
if (_root.levelUP < 5) {
_parent.right.gotoAndStop(2);
}
_parent.ID = _currentframe;
_parent.cost = 175;
Instance of Symbol 477 MovieClip in Symbol 871 MovieClip Frame 6
onClipEvent (load) {
if (_root.shieldDead == true) {
this.gotoAndStop(2);
}
}
Symbol 871 MovieClip Frame 7
_parent.ID = _currentframe;
_parent.cost = 250;
Instance of Symbol 482 MovieClip in Symbol 871 MovieClip Frame 7
onClipEvent (load) {
if (_root.shieldDead == true) {
this.gotoAndStop(2);
}
}
Symbol 871 MovieClip Frame 8
_parent.right.gotoAndStop(1);
_parent.ID = _currentframe;
_parent.cost = 250;
Instance of Symbol 487 MovieClip in Symbol 871 MovieClip Frame 8
onClipEvent (load) {
if (_root.shieldDead == true) {
this.gotoAndStop(2);
}
}
Symbol 871 MovieClip Frame 9
if (_root.levelUP < 8) {
_parent.right.gotoAndStop(2);
}
_parent.ID = _currentframe;
_parent.cost = 330;
Instance of Symbol 492 MovieClip in Symbol 871 MovieClip Frame 9
onClipEvent (load) {
if (_root.shieldDead == true) {
this.gotoAndStop(2);
}
}
Symbol 871 MovieClip Frame 10
_parent.ID = _currentframe;
_parent.cost = 350;
Instance of Symbol 497 MovieClip in Symbol 871 MovieClip Frame 10
onClipEvent (load) {
if (_root.shieldDead == true) {
this.gotoAndStop(2);
}
}
Symbol 871 MovieClip Frame 11
_parent.right.gotoAndStop(1);
_parent.ID = _currentframe;
_parent.cost = 400;
Instance of Symbol 502 MovieClip in Symbol 871 MovieClip Frame 11
onClipEvent (load) {
if (_root.shieldDead == true) {
this.gotoAndStop(2);
}
}
Symbol 871 MovieClip Frame 12
if (_root.levelUP < 10) {
_parent.right.gotoAndStop(2);
}
_parent.ID = _currentframe;
_parent.cost = 600;
Instance of Symbol 507 MovieClip in Symbol 871 MovieClip Frame 12
onClipEvent (load) {
if (_root.shieldDead == true) {
this.gotoAndStop(2);
}
}
Symbol 871 MovieClip Frame 13
_parent.ID = _currentframe;
_parent.cost = 725;
Instance of Symbol 512 MovieClip in Symbol 871 MovieClip Frame 13
onClipEvent (load) {
if (_root.shieldDead == true) {
this.gotoAndStop(2);
}
}
Symbol 871 MovieClip Frame 14
_parent.right.gotoAndStop(1);
_parent.ID = _currentframe;
_parent.cost = 800;
Instance of Symbol 517 MovieClip in Symbol 871 MovieClip Frame 14
onClipEvent (load) {
if (_root.shieldDead == true) {
this.gotoAndStop(2);
}
}
Symbol 871 MovieClip Frame 15
if (_root.levelUP < 12) {
_parent.right.gotoAndStop(2);
}
_parent.ID = _currentframe;
_parent.cost = 900;
Instance of Symbol 522 MovieClip in Symbol 871 MovieClip Frame 15
onClipEvent (load) {
if (_root.shieldDead == true) {
this.gotoAndStop(2);
}
}
Symbol 871 MovieClip Frame 16
_parent.right.gotoAndStop(2);
_parent.ID = _currentframe;
_parent.cost = 1125;
Symbol 873 Button
on (release) {
_root.shield = _parent.ID;
_root.gold = _root.gold - _parent.cost;
_root.attachMovie("ItemsAttach", "ItemsAttach", 50, {_x:265.1, _y:200});
}
Symbol 874 MovieClip Frame 1
stop();
Symbol 917 MovieClip Frame 1
stop();
Symbol 917 MovieClip Frame 2
_parent.left.gotoAndStop(2);
_parent.right.gotoAndStop(1);
_parent.ID = _currentframe;
_parent.cost = 0;
Symbol 917 MovieClip Frame 3
_parent.left.gotoAndStop(1);
_parent.right.gotoAndStop(1);
_parent.ID = _currentframe;
_parent.cost = 50;
Symbol 917 MovieClip Frame 4
_parent.left.gotoAndStop(1);
_parent.right.gotoAndStop(1);
_parent.ID = _currentframe;
_parent.cost = 75;
Symbol 917 MovieClip Frame 5
if (_root.levelUP < 3) {
_parent.right.gotoAndStop(2);
}
_parent.ID = _currentframe;
_parent.cost = 120;
Symbol 917 MovieClip Frame 6
_parent.right.gotoAndStop(1);
_parent.ID = _currentframe;
_parent.cost = 175;
Symbol 917 MovieClip Frame 7
if (_root.levelUP < 4) {
_parent.right.gotoAndStop(2);
}
_parent.ID = _currentframe;
_parent.cost = 250;
Symbol 917 MovieClip Frame 8
_parent.ID = _currentframe;
_parent.cost = 350;
Symbol 917 MovieClip Frame 9
_parent.right.gotoAndStop(1);
_parent.ID = _currentframe;
_parent.cost = 425;
Symbol 917 MovieClip Frame 10
if (_root.levelUP < 4) {
_parent.right.gotoAndStop(2);
}
_parent.ID = _currentframe;
_parent.cost = 500;
Symbol 917 MovieClip Frame 11
_parent.ID = _currentframe;
_parent.cost = 650;
Instance of Symbol 385 MovieClip in Symbol 917 MovieClip Frame 11
onClipEvent (load) {
if (_root.changeBow == true) {
this.gotoAndStop(2);
}
}
Symbol 917 MovieClip Frame 12
_parent.right.gotoAndStop(1);
_parent.ID = _currentframe;
_parent.cost = 600;
Symbol 917 MovieClip Frame 13
if (_root.levelUP < 8) {
_parent.right.gotoAndStop(2);
}
_parent.ID = _currentframe;
_parent.cost = 900;
Symbol 917 MovieClip Frame 14
_parent.ID = _currentframe;
_parent.cost = 1200;
Symbol 917 MovieClip Frame 15
_parent.ID = _currentframe;
_parent.cost = 1400;
Symbol 917 MovieClip Frame 16
_parent.right.gotoAndStop(1);
_parent.ID = _currentframe;
_parent.cost = 2500;
Instance of Symbol 395 MovieClip in Symbol 917 MovieClip Frame 16
onClipEvent (load) {
if (_root.changeBow == true) {
this.gotoAndStop(2);
}
}
Symbol 917 MovieClip Frame 17
if (_root.levelUP < 10) {
_parent.right.gotoAndStop(2);
}
_parent.ID = _currentframe;
_parent.cost = 3000;
Instance of Symbol 396 MovieClip in Symbol 917 MovieClip Frame 17
onClipEvent (load) {
if (_root.changeBow == true) {
this.gotoAndStop(2);
}
}
Symbol 917 MovieClip Frame 18
_parent.ID = _currentframe;
_parent.cost = 1600;
Symbol 917 MovieClip Frame 19
_parent.right.gotoAndStop(1);
_parent.ID = _currentframe;
_parent.cost = 1900;
Symbol 917 MovieClip Frame 20
if (_root.levelUP < 12) {
_parent.right.gotoAndStop(2);
}
_parent.ID = _currentframe;
_parent.cost = 2000;
Symbol 917 MovieClip Frame 21
_parent.right.gotoAndStop(1);
_parent.ID = _currentframe;
_parent.cost = 2300;
Symbol 917 MovieClip Frame 22
_parent.right.gotoAndStop(2);
_parent.ID = _currentframe;
_parent.cost = 3000;
Symbol 919 Button
on (release) {
_root.sword = _parent.ID;
_root.gold = _root.gold - _parent.cost;
_root.attachMovie("ItemsAttach", "ItemsAttach", 50, {_x:57.1, _y:202.1});
}
Symbol 920 MovieClip Frame 1
stop();
Symbol 948 MovieClip Frame 2
_parent.left.gotoAndStop(2);
_parent.right.gotoAndStop(1);
_parent.ID = _currentframe;
_parent.cost = 0;
Symbol 948 MovieClip Frame 3
_parent.left.gotoAndStop(1);
_parent.right.gotoAndStop(1);
_parent.ID = _currentframe;
_parent.cost = 75;
Symbol 948 MovieClip Frame 4
_parent.ID = _currentframe;
_parent.cost = 100;
Symbol 948 MovieClip Frame 5
_parent.right.gotoAndStop(1);
_parent.ID = _currentframe;
_parent.cost = 175;
Symbol 948 MovieClip Frame 6
if (_root.levelUP < 2) {
_parent.right.gotoAndStop(2);
}
_parent.ID = _currentframe;
_parent.cost = 200;
Symbol 948 MovieClip Frame 7
_parent.right.gotoAndStop(1);
_parent.ID = _currentframe;
_parent.cost = 250;
Symbol 948 MovieClip Frame 8
if (_root.levelUP < 7) {
_parent.right.gotoAndStop(2);
}
_parent.ID = _currentframe;
_parent.cost = 300;
Symbol 948 MovieClip Frame 9
_parent.ID = _currentframe;
_parent.cost = 400;
Symbol 948 MovieClip Frame 10
_parent.right.gotoAndStop(1);
_parent.ID = _currentframe;
_parent.cost = 475;
Symbol 948 MovieClip Frame 11
if (_root.levelUP < 10) {
_parent.right.gotoAndStop(2);
}
_parent.ID = _currentframe;
_parent.cost = 525;
Symbol 948 MovieClip Frame 12
_parent.right.gotoAndStop(1);
_parent.ID = _currentframe;
_parent.cost = 600;
Symbol 948 MovieClip Frame 13
if (_root.levelUP < 12) {
_parent.right.gotoAndStop(2);
}
_parent.ID = _currentframe;
_parent.cost = 700;
Symbol 948 MovieClip Frame 14
_parent.ID = _currentframe;
_parent.cost = 630;
Symbol 948 MovieClip Frame 15
_parent.right.gotoAndStop(1);
_parent.ID = _currentframe;
_parent.cost = 730;
Symbol 948 MovieClip Frame 16
_parent.right.gotoAndStop(2);
_parent.ID = _currentframe;
_parent.cost = 850;
Symbol 950 Button
on (release) {
_root.shield2 = _parent.ID;
_root.shieldhand = _parent.ID;
_root.gold = _root.gold - _parent.cost;
_root.attachMovie("ItemsAttach2", "ItemsAttach2", 50, {_x:111.2, _y:202.1});
}
Symbol 951 MovieClip Frame 1
stop();
Symbol 971 MovieClip Frame 2
_parent.left.gotoAndStop(2);
_parent.right.gotoAndStop(1);
_parent.ID = _currentframe;
_parent.cost = 5;
Symbol 971 MovieClip Frame 3
_parent.left.gotoAndStop(1);
_parent.right.gotoAndStop(1);
_parent.ID = _currentframe;
_parent.cost = 300;
Symbol 971 MovieClip Frame 4
if (_root.levelUP < 2) {
_parent.right.gotoAndStop(2);
}
_parent.ID = _currentframe;
_parent.cost = 500;
Symbol 971 MovieClip Frame 5
_parent.right.gotoAndStop(1);
_parent.ID = _currentframe;
_parent.cost = 600;
Symbol 971 MovieClip Frame 6
if (_root.levelUP < 5) {
_parent.right.gotoAndStop(2);
}
_parent.ID = _currentframe;
_parent.cost = 650;
Symbol 971 MovieClip Frame 7
_parent.right.gotoAndStop(1);
_parent.ID = _currentframe;
_parent.cost = 800;
Symbol 971 MovieClip Frame 8
if (_root.levelUP < 10) {
_parent.right.gotoAndStop(2);
}
_parent.ID = _currentframe;
_parent.cost = 900;
Symbol 971 MovieClip Frame 9
_parent.ID = _currentframe;
_parent.cost = 1000;
Symbol 971 MovieClip Frame 10
_parent.right.gotoAndStop(1);
_parent.ID = _currentframe;
_parent.cost = 1100;
Symbol 971 MovieClip Frame 11
if (_root.levelUP < 12) {
_parent.right.gotoAndStop(2);
}
_parent.ID = _currentframe;
_parent.cost = 1250;
Symbol 971 MovieClip Frame 12
_parent.right.gotoAndStop(1);
_parent.ID = _currentframe;
_parent.cost = 1400;
Symbol 971 MovieClip Frame 13
if (_root.levelUP < 14) {
_parent.right.gotoAndStop(2);
}
_parent.ID = _currentframe;
_parent.cost = 800;
Symbol 971 MovieClip Frame 14
_parent.right.gotoAndStop(1);
_parent.ID = _currentframe;
_parent.cost = 1000;
Symbol 971 MovieClip Frame 15
_parent.right.gotoAndStop(2);
_parent.ID = _currentframe;
_parent.cost = 1500;
Symbol 973 Button
on (release) {
_root.pants = _parent.ID;
_root.gold = _root.gold - _parent.cost;
_root.attachMovie("ItemsAttach", "ItemsAttach", 50, {_x:164.2, _y:226.1});
}
Symbol 974 MovieClip Frame 1
stop();
Symbol 975 MovieClip Frame 1
stop();
Symbol 975 MovieClip Frame 3
_root.buyShoes = true;
_root.buyHelmet = false;
_root.buyBody = false;
_root.buyShield = false;
_root.buyWeapon = false;
_root.buyHands = false;
_root.buyPants = false;
Instance of Symbol 774 MovieClip "bodyBuy" in Symbol 975 MovieClip Frame 3
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.boots));
}
Instance of Symbol 783 MovieClip in Symbol 975 MovieClip Frame 3
onClipEvent (enterFrame) {
if (_parent.ID == _root.boots) {
this.gotoAndStop(2);
} else if (_root.gold < _parent.cost) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Symbol 975 MovieClip Frame 4
_root.buyHelmet = true;
_root.buyShoes = false;
_root.buyBody = false;
_root.buyShield = false;
_root.buyWeapon = false;
_root.buyHands = false;
_root.buyPants = false;
Instance of Symbol 834 MovieClip "bodyBuy" in Symbol 975 MovieClip Frame 4
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.helmet2));
}
Instance of Symbol 837 MovieClip in Symbol 975 MovieClip Frame 4
onClipEvent (enterFrame) {
if (_parent.ID == _root.helmet2) {
this.gotoAndStop(2);
} else if (_root.gold < _parent.cost) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Symbol 975 MovieClip Frame 5
_root.buyBody = true;
_root.buyShoes = false;
_root.buyHelmet = false;
_root.buyShield = false;
_root.buyWeapon = false;
_root.buyHands = false;
_root.buyPants = false;
Instance of Symbol 855 MovieClip "bodyBuy" in Symbol 975 MovieClip Frame 5
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.body));
}
Instance of Symbol 858 MovieClip in Symbol 975 MovieClip Frame 5
onClipEvent (enterFrame) {
if (_parent.ID == _root.body) {
this.gotoAndStop(2);
} else if (_root.gold < _parent.cost) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Symbol 975 MovieClip Frame 6
_root.buyBody = false;
_root.buyShoes = false;
_root.buyHelmet = false;
_root.buyShield = true;
_root.buyWeapon = false;
_root.buyHands = false;
_root.buyPants = false;
Instance of Symbol 871 MovieClip "bodyBuy" in Symbol 975 MovieClip Frame 6
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield));
}
Instance of Symbol 874 MovieClip in Symbol 975 MovieClip Frame 6
onClipEvent (enterFrame) {
if (_parent.ID == _root.shield) {
this.gotoAndStop(2);
} else if (_root.gold < _parent.cost) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Symbol 975 MovieClip Frame 7
_root.buyBody = false;
_root.buyShoes = false;
_root.buyHelmet = false;
_root.buyShield = false;
_root.buyWeapon = true;
_root.buyHands = false;
_root.buyPants = false;
Instance of Symbol 917 MovieClip "bodyBuy" in Symbol 975 MovieClip Frame 7
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.sword));
}
Instance of Symbol 920 MovieClip in Symbol 975 MovieClip Frame 7
onClipEvent (enterFrame) {
if (_parent.ID == _root.sword) {
this.gotoAndStop(2);
} else if (_root.gold < _parent.cost) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Symbol 975 MovieClip Frame 8
_root.buyBody = false;
_root.buyShoes = false;
_root.buyHelmet = false;
_root.buyShield = false;
_root.buyWeapon = false;
_root.buyHands = true;
_root.buyPants = false;
Instance of Symbol 948 MovieClip "bodyBuy" in Symbol 975 MovieClip Frame 8
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2));
}
Instance of Symbol 951 MovieClip in Symbol 975 MovieClip Frame 8
onClipEvent (enterFrame) {
if (_parent.ID == _root.shield2) {
this.gotoAndStop(2);
} else if (_root.gold < _parent.cost) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Symbol 975 MovieClip Frame 9
_root.buyBody = false;
_root.buyShoes = false;
_root.buyHelmet = false;
_root.buyShield = false;
_root.buyWeapon = false;
_root.buyHands = false;
_root.buyPants = true;
Instance of Symbol 971 MovieClip "bodyBuy" in Symbol 975 MovieClip Frame 9
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pants));
}
Instance of Symbol 974 MovieClip in Symbol 975 MovieClip Frame 9
onClipEvent (enterFrame) {
if (_parent.ID == _root.pants) {
this.gotoAndStop(2);
} else if (_root.gold < _parent.cost) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Symbol 978 MovieClip Frame 1
stop();
_root.bootsV = 0;
Symbol 978 MovieClip Frame 2
_root.bootsV = 0;
Symbol 978 MovieClip Frame 3
_root.bootsV = 2;
Symbol 978 MovieClip Frame 4
_root.bootsV = 4;
Symbol 978 MovieClip Frame 5
_root.bootsV = 7;
Symbol 978 MovieClip Frame 6
_root.bootsV = 8;
Symbol 978 MovieClip Frame 7
_root.bootsV = 12;
Symbol 978 MovieClip Frame 8
_root.bootsV = 18;
Symbol 978 MovieClip Frame 9
_root.bootsV = 20;
Symbol 978 MovieClip Frame 10
_root.bootsV = 18;
Symbol 978 MovieClip Frame 11
_root.bootsV = 20;
Symbol 978 MovieClip Frame 12
_root.bootsV = 22;
Symbol 978 MovieClip Frame 13
_root.bootsV = 28;
Symbol 978 MovieClip Frame 14
_root.bootsV = 30;
Symbol 978 MovieClip Frame 15
_root.bootsV = 40;
Symbol 978 MovieClip Frame 16
_root.bootsV = 15;
Symbol 978 MovieClip Frame 17
_root.bootsV = 15;
Symbol 978 MovieClip Frame 18
_root.bootsV = 35;
Instance of Symbol 266 MovieClip in Symbol 978 MovieClip Frame 18
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.boots));
}
onClipEvent (enterFrame) {
this.gotoAndStop((this._currentframe = _root.boots));
}
Symbol 979 Button
on (rollOver) {
gotoAndStop (2);
}
on (rollOut) {
gotoAndStop (1);
}
on (release) {
if ((!_root.buyShoes) == true) {
_root.buy.gotoAndStop(3);
_root.buy.left.gotoAndStop(1);
_root.buy.right.gotoAndStop(1);
_root.attachMovie("buyItemAttach", "buyItemAttach", 37, {_x:394.5, _y:275.6});
}
}
Symbol 980 MovieClip Frame 1
stop();
Instance of Symbol 978 MovieClip "body" in Symbol 980 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.boots));
}
onClipEvent (enterFrame) {
this.gotoAndStop((this._currentframe = _root.boots));
}
Symbol 981 MovieClip Frame 1
_root.bodyV = 0;
Symbol 981 MovieClip Frame 3
_root.bodyV = 5;
Symbol 981 MovieClip Frame 4
_root.bodyV = 7;
Symbol 981 MovieClip Frame 5
_root.bodyV = 9;
Symbol 981 MovieClip Frame 6
_root.bodyV = 12;
Symbol 981 MovieClip Frame 7
_root.bodyV = 15;
Symbol 981 MovieClip Frame 8
_root.bodyV = 20;
Symbol 981 MovieClip Frame 9
_root.bodyV = 22;
Symbol 981 MovieClip Frame 10
_root.bodyV = 25;
Symbol 981 MovieClip Frame 11
_root.bodyV = 28;
Symbol 981 MovieClip Frame 12
_root.bodyV = 30;
Symbol 981 MovieClip Frame 13
_root.bodyV = 32;
Symbol 981 MovieClip Frame 14
_root.bodyV = 34;
Symbol 981 MovieClip Frame 15
_root.bodyV = 35;
Symbol 981 MovieClip Frame 16
_root.bodyV = 37;
Symbol 981 MovieClip Frame 17
_root.bodyV = 40;
Symbol 981 MovieClip Frame 18
_root.bodyV = 41;
Symbol 981 MovieClip Frame 19
_root.bodyV = 42;
Symbol 981 MovieClip Frame 20
_root.bodyV = 43;
Symbol 981 MovieClip Frame 21
_root.bodyV = 45;
Symbol 981 MovieClip Frame 22
_root.bodyV = 47;
Symbol 981 MovieClip Frame 23
_root.bodyV = 50;
Symbol 982 Button
on (rollOver) {
gotoAndStop (2);
}
on (rollOut) {
gotoAndStop (1);
}
on (release) {
if ((!_root.buyBody) == true) {
_root.buy.gotoAndStop(5);
_root.buy.left.gotoAndStop(1);
_root.buy.right.gotoAndStop(1);
_root.attachMovie("buyItemAttach", "buyItemAttach", 37, {_x:394.5, _y:275.6});
}
}
Symbol 983 MovieClip Frame 1
stop();
Instance of Symbol 981 MovieClip "body" in Symbol 983 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.body));
}
onClipEvent (enterFrame) {
this.gotoAndStop((this._currentframe = _root.body));
}
Symbol 988 MovieClip Frame 1
_root.shieldV = 0;
Symbol 988 MovieClip Frame 2
_root.shieldV = 0;
Symbol 988 MovieClip Frame 3
_root.shieldV = 5;
Instance of Symbol 462 MovieClip in Symbol 988 MovieClip Frame 3
onClipEvent (load) {
if (_root.shieldDead == true) {
this.gotoAndStop(2);
}
}
Symbol 988 MovieClip Frame 4
_root.shieldV = 8;
Instance of Symbol 467 MovieClip in Symbol 988 MovieClip Frame 4
onClipEvent (load) {
if (_root.shieldDead == true) {
this.gotoAndStop(2);
}
}
Symbol 988 MovieClip Frame 5
_root.shieldV = 10;
Instance of Symbol 472 MovieClip in Symbol 988 MovieClip Frame 5
onClipEvent (load) {
if (_root.shieldDead == true) {
this.gotoAndStop(2);
}
}
Symbol 988 MovieClip Frame 6
_root.shieldV = 10;
Instance of Symbol 477 MovieClip in Symbol 988 MovieClip Frame 6
onClipEvent (load) {
if (_root.shieldDead == true) {
this.gotoAndStop(2);
}
}
Symbol 988 MovieClip Frame 7
_root.shieldV = 15;
Instance of Symbol 482 MovieClip in Symbol 988 MovieClip Frame 7
onClipEvent (load) {
if (_root.shieldDead == true) {
this.gotoAndStop(2);
}
}
Symbol 988 MovieClip Frame 8
_root.shieldV = 15;
Instance of Symbol 487 MovieClip in Symbol 988 MovieClip Frame 8
onClipEvent (load) {
if (_root.shieldDead == true) {
this.gotoAndStop(2);
}
}
Symbol 988 MovieClip Frame 9
_root.shieldV = 18;
Instance of Symbol 492 MovieClip in Symbol 988 MovieClip Frame 9
onClipEvent (load) {
if (_root.shieldDead == true) {
this.gotoAndStop(2);
}
}
Symbol 988 MovieClip Frame 10
_root.shieldV = 19;
Instance of Symbol 497 MovieClip in Symbol 988 MovieClip Frame 10
onClipEvent (load) {
if (_root.shieldDead == true) {
this.gotoAndStop(2);
}
}
Symbol 988 MovieClip Frame 11
_root.shieldV = 22;
Instance of Symbol 502 MovieClip in Symbol 988 MovieClip Frame 11
onClipEvent (load) {
if (_root.shieldDead == true) {
this.gotoAndStop(2);
}
}
Symbol 988 MovieClip Frame 12
_root.shieldV = 25;
Instance of Symbol 507 MovieClip in Symbol 988 MovieClip Frame 12
onClipEvent (load) {
if (_root.shieldDead == true) {
this.gotoAndStop(2);
}
}
Symbol 988 MovieClip Frame 13
_root.shieldV = 30;
Instance of Symbol 512 MovieClip in Symbol 988 MovieClip Frame 13
onClipEvent (load) {
if (_root.shieldDead == true) {
this.gotoAndStop(2);
}
}
Symbol 988 MovieClip Frame 14
_root.shieldV = 32;
Instance of Symbol 517 MovieClip in Symbol 988 MovieClip Frame 14
onClipEvent (load) {
if (_root.shieldDead == true) {
this.gotoAndStop(2);
}
}
Symbol 988 MovieClip Frame 15
_root.shieldV = 35;
Instance of Symbol 522 MovieClip in Symbol 988 MovieClip Frame 15
onClipEvent (load) {
if (_root.shieldDead == true) {
this.gotoAndStop(2);
}
}
Symbol 988 MovieClip Frame 16
_root.shieldV = 40;
Symbol 989 Button
on (rollOver) {
gotoAndStop (2);
}
on (rollOut) {
gotoAndStop (1);
}
on (release) {
if ((!_root.buyShield) == true) {
_root.buy.gotoAndStop(6);
_root.buy.left.gotoAndStop(1);
_root.buy.right.gotoAndStop(1);
_root.attachMovie("buyItemAttach", "buyItemAttach", 37, {_x:394.5, _y:275.6});
}
}
Symbol 990 MovieClip Frame 1
stop();
Instance of Symbol 988 MovieClip "body" in Symbol 990 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield));
}
onClipEvent (enterFrame) {
this.gotoAndStop((this._currentframe = _root.shield));
}
Symbol 1003 MovieClip Frame 1
stop();
Instance of Symbol 385 MovieClip in Symbol 1003 MovieClip Frame 11
onClipEvent (load) {
if (_root.changeBow == true) {
this.gotoAndStop(2);
}
}
Instance of Symbol 395 MovieClip in Symbol 1003 MovieClip Frame 16
onClipEvent (load) {
if (_root.changeBow == true) {
this.gotoAndStop(2);
}
}
Instance of Symbol 396 MovieClip in Symbol 1003 MovieClip Frame 17
onClipEvent (load) {
if (_root.changeBow == true) {
this.gotoAndStop(2);
}
}
Symbol 1004 Button
on (rollOver) {
gotoAndStop (2);
}
on (rollOut) {
gotoAndStop (1);
}
on (release) {
if ((!_root.buyWeapon) == true) {
_root.buy.gotoAndStop(7);
_root.buy.left.gotoAndStop(1);
_root.buy.right.gotoAndStop(1);
_root.attachMovie("buyItemAttach", "buyItemAttach", 37, {_x:394.5, _y:275.6});
}
}
Symbol 1005 MovieClip Frame 1
stop();
Instance of Symbol 1003 MovieClip "body" in Symbol 1005 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.sword));
}
onClipEvent (enterFrame) {
this.gotoAndStop((this._currentframe = _root.sword));
}
Symbol 1020 MovieClip Frame 1
_root.handsV = 0;
Symbol 1020 MovieClip Frame 2
_root.handsV = 0;
Symbol 1020 MovieClip Frame 3
_root.handsV = 2;
Symbol 1020 MovieClip Frame 4
_root.handsV = 4;
Symbol 1020 MovieClip Frame 5
_root.handsV = 5;
Symbol 1020 MovieClip Frame 6
_root.handsV = 6;
Symbol 1020 MovieClip Frame 7
_root.handsV = 8;
Symbol 1020 MovieClip Frame 8
_root.handsV = 10;
Symbol 1020 MovieClip Frame 9
_root.handsV = 15;
Symbol 1020 MovieClip Frame 10
_root.handsV = 18;
Symbol 1020 MovieClip Frame 11
_root.handsV = 20;
Symbol 1020 MovieClip Frame 12
_root.handsV = 25;
Symbol 1020 MovieClip Frame 13
_root.handsV = 28;
Symbol 1020 MovieClip Frame 14
_root.handsV = 30;
Symbol 1020 MovieClip Frame 15
_root.handsV = 32;
Symbol 1020 MovieClip Frame 16
_root.handsV = 35;
Symbol 1021 Button
on (rollOver) {
gotoAndStop (2);
}
on (rollOut) {
gotoAndStop (1);
}
on (release) {
if ((!_root.buyHands) == true) {
_root.buy.gotoAndStop(8);
_root.buy.left.gotoAndStop(1);
_root.buy.right.gotoAndStop(1);
_root.attachMovie("buyItemAttach", "buyItemAttach", 37, {_x:394.5, _y:275.6});
}
}
Symbol 1022 MovieClip Frame 1
stop();
Instance of Symbol 1020 MovieClip "body" in Symbol 1022 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2));
}
onClipEvent (enterFrame) {
this.gotoAndStop((this._currentframe = _root.shield2));
}
Symbol 1030 MovieClip Frame 1
_root.pantsV = 1;
Symbol 1030 MovieClip Frame 3
_root.pantsV = 5;
Symbol 1030 MovieClip Frame 4
_root.pantsV = 8;
Symbol 1030 MovieClip Frame 5
_root.pantsV = 15;
Symbol 1030 MovieClip Frame 6
_root.pantsV = 20;
Symbol 1030 MovieClip Frame 7
_root.pantsV = 28;
Symbol 1030 MovieClip Frame 8
_root.pantsV = 35;
Symbol 1030 MovieClip Frame 9
_root.pantsV = 38;
Symbol 1030 MovieClip Frame 10
_root.pantsV = 45;
Symbol 1030 MovieClip Frame 11
_root.pantsV = 50;
Symbol 1030 MovieClip Frame 12
_root.pantsV = 60;
Symbol 1030 MovieClip Frame 13
_root.pantsV = 65;
Symbol 1030 MovieClip Frame 14
_root.pantsV = 70;
Symbol 1030 MovieClip Frame 15
_root.pantsV = 85;
Symbol 1031 Button
on (rollOver) {
gotoAndStop (2);
}
on (rollOut) {
gotoAndStop (1);
}
on (release) {
if ((!_root.buyPants) == true) {
_root.buy.gotoAndStop(9);
_root.buy.left.gotoAndStop(1);
_root.buy.right.gotoAndStop(1);
_root.attachMovie("buyItemAttach", "buyItemAttach", 37, {_x:394.5, _y:275.6});
}
}
Symbol 1032 MovieClip Frame 1
stop();
Instance of Symbol 1030 MovieClip "body" in Symbol 1032 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pants));
}
onClipEvent (enterFrame) {
this.gotoAndStop((this._currentframe = _root.pants));
}
Symbol 1034 MovieClip Frame 1
_root.helemtV = 0;
Symbol 1034 MovieClip Frame 3
_root.helemtV = 3;
Symbol 1034 MovieClip Frame 4
_root.helemtV = 4;
Symbol 1034 MovieClip Frame 5
_root.helemtV = 6;
Symbol 1034 MovieClip Frame 6
_root.helemtV = 7;
Symbol 1034 MovieClip Frame 7
_root.helemtV = 8;
Symbol 1034 MovieClip Frame 8
_root.helemtV = 10;
Symbol 1034 MovieClip Frame 9
_root.helemtV = 12;
Symbol 1034 MovieClip Frame 10
_root.helemtV = 14;
Symbol 1034 MovieClip Frame 11
_root.helemtV = 17;
Symbol 1034 MovieClip Frame 12
_root.helemtV = 19;
Symbol 1034 MovieClip Frame 13
_root.helemtV = 22;
Symbol 1034 MovieClip Frame 14
_root.helemtV = 24;
Symbol 1034 MovieClip Frame 15
_root.helemtV = 26;
Symbol 1034 MovieClip Frame 16
_root.helemtV = 28;
Symbol 1034 MovieClip Frame 17
_root.helemtV = 30;
Symbol 1034 MovieClip Frame 18
_root.helemtV = 33;
Symbol 1034 MovieClip Frame 19
_root.helemtV = 34;
Symbol 1034 MovieClip Frame 20
_root.helemtV = 37;
Symbol 1034 MovieClip Frame 21
_root.helemtV = 38;
Symbol 1034 MovieClip Frame 22
_root.helemtV = 40;
Symbol 1034 MovieClip Frame 23
_root.helemtV = 45;
Symbol 1034 MovieClip Frame 24
_root.helemtV = 48;
Symbol 1034 MovieClip Frame 25
_root.helemtV = 50;
Symbol 1034 MovieClip Frame 26
_root.helemtV = 55;
Symbol 1034 MovieClip Frame 27
_root.helemtV = 60;
Symbol 1035 Button
on (rollOver) {
gotoAndStop (2);
}
on (rollOut) {
gotoAndStop (1);
}
on (release) {
if ((!_root.buyHelmet) == true) {
_root.buy.gotoAndStop(4);
_root.buy.left.gotoAndStop(1);
_root.buy.right.gotoAndStop(1);
_root.attachMovie("buyItemAttach", "buyItemAttach", 37, {_x:394.5, _y:275.6});
}
}
Symbol 1036 MovieClip Frame 1
stop();
Instance of Symbol 1034 MovieClip "body" in Symbol 1036 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.helmet2));
}
onClipEvent (enterFrame) {
this.gotoAndStop((this._currentframe = _root.helmet2));
}
Instance of Symbol 1034 MovieClip "body" in Symbol 1036 MovieClip Frame 2
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.helmet2));
}
onClipEvent (enterFrame) {
this.gotoAndStop((this._currentframe = _root.helmet2));
}
Symbol 1051 Button
on (release) {
_root.gotoAndStop(37);
}
Symbol 1059 Button
on (release) {
_root.tutorial = false;
gotoAndStop (1);
}
Symbol 1063 Button
on (release) {
gotoAndStop(_currentframe + 1);
}
Symbol 1068 Button
on (release) {
gotoAndStop (1);
}
Symbol 1088 Button
on (release) {
gotoAndStop(_currentframe + 1);
_root.tutorial = false;
}
Symbol 1089 MovieClip Frame 1
stop();
Symbol 1089 MovieClip Frame 13
stop();
_root.tutorial = false;
Symbol 1095 Button
on (release) {
_root.gotoAndStop(_root.levelFrame);
}
Symbol 1100 MovieClip Frame 51
jumpFrame = true;
Symbol 1100 MovieClip Frame 52
jumpFrame = false;
Instance of Symbol 225 MovieClip in Symbol 1101 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pantsE));
}
Instance of Symbol 266 MovieClip in Symbol 1101 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bootsE));
}
Instance of Symbol 225 MovieClip in Symbol 1102 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pantsE));
}
Instance of Symbol 266 MovieClip in Symbol 1102 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bootsE));
}
Symbol 1103 MovieClip Frame 1
stop();
Instance of Symbol 225 MovieClip in Symbol 1103 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pantsE));
}
Instance of Symbol 266 MovieClip in Symbol 1103 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bootsE));
}
Instance of Symbol 225 MovieClip in Symbol 1103 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pantsE));
}
Instance of Symbol 266 MovieClip in Symbol 1103 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bootsE));
}
Symbol 1103 MovieClip Frame 9
gotoAndPlay (2);
Instance of Symbol 302 MovieClip in Symbol 1104 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pantsE));
}
Symbol 1124 MovieClip Frame 1
stop();
Instance of Symbol 361 MovieClip in Symbol 1124 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shieldhandE));
}
Instance of Symbol 361 MovieClip in Symbol 1124 MovieClip Frame 30
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shieldhandE));
}
Symbol 1143 MovieClip Frame 1
stop();
Instance of Symbol 361 MovieClip in Symbol 1143 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shieldhandE));
}
Symbol 1181 MovieClip Frame 1
stop();
Symbol 1191 MovieClip Frame 1
_parent.HIT.gotoAndStop(1);
Instance of Symbol 1109 MovieClip in Symbol 1191 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2E));
}
Instance of Symbol 1124 MovieClip in Symbol 1191 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.swordE));
}
Instance of Symbol 1135 MovieClip in Symbol 1191 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bodyE));
}
Instance of Symbol 1109 MovieClip in Symbol 1191 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2E));
}
Instance of Symbol 1143 MovieClip in Symbol 1191 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shieldE));
}
Instance of Symbol 1180 MovieClip in Symbol 1191 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.helmetE));
}
Symbol 1191 MovieClip Frame 28
canAttack = true;
Symbol 1191 MovieClip Frame 41
gotoAndPlay (1);
Symbol 1191 MovieClip Frame 50
canAttack = false;
Instance of Symbol 1109 MovieClip in Symbol 1191 MovieClip Frame 50
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2E));
}
Instance of Symbol 1124 MovieClip in Symbol 1191 MovieClip Frame 50
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.swordE));
}
Instance of Symbol 1135 MovieClip in Symbol 1191 MovieClip Frame 50
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bodyE));
}
Instance of Symbol 1109 MovieClip in Symbol 1191 MovieClip Frame 50
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2E));
}
Instance of Symbol 1143 MovieClip in Symbol 1191 MovieClip Frame 50
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shieldE));
}
Instance of Symbol 1180 MovieClip in Symbol 1191 MovieClip Frame 50
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.helmetE));
}
Instance of Symbol 1124 MovieClip in Symbol 1191 MovieClip Frame 54
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.swordE));
}
Instance of Symbol 1124 MovieClip in Symbol 1191 MovieClip Frame 57
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.swordE));
}
Instance of Symbol 1124 MovieClip in Symbol 1191 MovieClip Frame 58
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.swordE));
}
Instance of Symbol 1181 MovieClip "HIT" in Symbol 1191 MovieClip Frame 58
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.swordE));
this._visible = false;
}
Instance of Symbol 1109 MovieClip in Symbol 1191 MovieClip Frame 68
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2E));
}
Symbol 1191 MovieClip Frame 69
gotoAndPlay (1);
Symbol 1191 MovieClip Frame 80
canAttack = false;
Instance of Symbol 1109 MovieClip in Symbol 1191 MovieClip Frame 80
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2E));
}
Instance of Symbol 1124 MovieClip in Symbol 1191 MovieClip Frame 80
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.swordE));
}
Instance of Symbol 1135 MovieClip in Symbol 1191 MovieClip Frame 80
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bodyE));
}
Instance of Symbol 1109 MovieClip in Symbol 1191 MovieClip Frame 80
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2E));
}
Instance of Symbol 1143 MovieClip in Symbol 1191 MovieClip Frame 80
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shieldE));
}
Instance of Symbol 1180 MovieClip in Symbol 1191 MovieClip Frame 80
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.helmetE));
}
Instance of Symbol 1143 MovieClip in Symbol 1191 MovieClip Frame 84
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shieldE));
}
Instance of Symbol 1181 MovieClip "HIT" in Symbol 1191 MovieClip Frame 88
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.swordE));
this._visible = false;
}
Instance of Symbol 1143 MovieClip in Symbol 1191 MovieClip Frame 96
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shieldE));
}
Symbol 1191 MovieClip Frame 97
gotoAndPlay (1);
Symbol 1191 MovieClip Frame 110
canAttack = false;
Instance of Symbol 1109 MovieClip in Symbol 1191 MovieClip Frame 110
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2E));
}
Instance of Symbol 1124 MovieClip in Symbol 1191 MovieClip Frame 110
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.swordE));
}
Instance of Symbol 1135 MovieClip in Symbol 1191 MovieClip Frame 110
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bodyE));
}
Instance of Symbol 1109 MovieClip in Symbol 1191 MovieClip Frame 110
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2E));
}
Instance of Symbol 1143 MovieClip in Symbol 1191 MovieClip Frame 110
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shieldE));
}
Instance of Symbol 1180 MovieClip in Symbol 1191 MovieClip Frame 110
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.helmetE));
}
Instance of Symbol 1124 MovieClip in Symbol 1191 MovieClip Frame 113
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.swordE));
}
Instance of Symbol 1181 MovieClip "HIT" in Symbol 1191 MovieClip Frame 118
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.swordE));
this._visible = false;
}
Instance of Symbol 1109 MovieClip in Symbol 1191 MovieClip Frame 127
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2E));
}
Symbol 1191 MovieClip Frame 128
gotoAndPlay (1);
Symbol 1191 MovieClip Frame 140
canAttack = false;
kick = true;
Instance of Symbol 1109 MovieClip in Symbol 1191 MovieClip Frame 140
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2E));
}
Instance of Symbol 1124 MovieClip in Symbol 1191 MovieClip Frame 140
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.swordE));
}
Instance of Symbol 1135 MovieClip in Symbol 1191 MovieClip Frame 140
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bodyE));
}
Instance of Symbol 1109 MovieClip in Symbol 1191 MovieClip Frame 140
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2E));
}
Instance of Symbol 1143 MovieClip in Symbol 1191 MovieClip Frame 140
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shieldE));
}
Instance of Symbol 1180 MovieClip in Symbol 1191 MovieClip Frame 140
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.helmetE));
}
Symbol 1191 MovieClip Frame 141
_parent.legs._visible = false;
Instance of Symbol 225 MovieClip in Symbol 1191 MovieClip Frame 141
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pantsE));
}
Instance of Symbol 266 MovieClip in Symbol 1191 MovieClip Frame 141
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bootsE));
}
Instance of Symbol 225 MovieClip in Symbol 1191 MovieClip Frame 141
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pantsE));
}
Instance of Symbol 266 MovieClip in Symbol 1191 MovieClip Frame 141
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bootsE));
}
Instance of Symbol 1143 MovieClip in Symbol 1191 MovieClip Frame 142
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shieldE));
}
Instance of Symbol 603 MovieClip "HIT2" in Symbol 1191 MovieClip Frame 145
onClipEvent (load) {
this._visible = false;
}
Symbol 1191 MovieClip Frame 153
_parent.legs._visible = true;
Instance of Symbol 1143 MovieClip in Symbol 1191 MovieClip Frame 153
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shieldE));
}
Symbol 1191 MovieClip Frame 154
_parent.legs._visible = true;
kick = false;
gotoAndPlay (1);
Symbol 1191 MovieClip Frame 160
canAttack = false;
Instance of Symbol 1109 MovieClip in Symbol 1191 MovieClip Frame 160
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2E));
}
Instance of Symbol 1124 MovieClip in Symbol 1191 MovieClip Frame 160
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.swordE));
}
Instance of Symbol 1135 MovieClip in Symbol 1191 MovieClip Frame 160
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bodyE));
}
Instance of Symbol 1109 MovieClip in Symbol 1191 MovieClip Frame 160
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2E));
}
Instance of Symbol 1143 MovieClip in Symbol 1191 MovieClip Frame 160
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shieldE));
}
Instance of Symbol 1180 MovieClip in Symbol 1191 MovieClip Frame 160
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.helmetE));
}
Instance of Symbol 1143 MovieClip in Symbol 1191 MovieClip Frame 161
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shieldE));
}
Symbol 1191 MovieClip Frame 162
_parent.HIT.gotoAndStop(2);
Symbol 1191 MovieClip Frame 199
canAttack = false;
kick = true;
Instance of Symbol 1109 MovieClip in Symbol 1191 MovieClip Frame 199
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2E));
}
Instance of Symbol 1124 MovieClip in Symbol 1191 MovieClip Frame 199
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.swordE));
}
Instance of Symbol 1135 MovieClip in Symbol 1191 MovieClip Frame 199
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bodyE));
}
Instance of Symbol 1109 MovieClip in Symbol 1191 MovieClip Frame 199
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2E));
}
Instance of Symbol 1180 MovieClip in Symbol 1191 MovieClip Frame 199
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.helmetE));
}
Symbol 1191 MovieClip Frame 200
_parent.legs._visible = false;
Instance of Symbol 225 MovieClip in Symbol 1191 MovieClip Frame 200
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pantsE));
}
Instance of Symbol 266 MovieClip in Symbol 1191 MovieClip Frame 200
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bootsE));
}
Instance of Symbol 225 MovieClip in Symbol 1191 MovieClip Frame 200
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pantsE));
}
Instance of Symbol 266 MovieClip in Symbol 1191 MovieClip Frame 200
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bootsE));
}
Instance of Symbol 1143 MovieClip in Symbol 1191 MovieClip Frame 201
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shieldE));
}
Instance of Symbol 603 MovieClip "HIT2" in Symbol 1191 MovieClip Frame 204
onClipEvent (load) {
this._visible = false;
}
Symbol 1191 MovieClip Frame 212
_parent.legs._visible = true;
_parent.HIT.gotoAndStop(1);
Instance of Symbol 1143 MovieClip in Symbol 1191 MovieClip Frame 212
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shieldE));
}
Symbol 1191 MovieClip Frame 213
_parent.legs._visible = true;
kick = false;
gotoAndPlay (1);
Symbol 1191 MovieClip Frame 220
canAttack = false;
Instance of Symbol 1109 MovieClip in Symbol 1191 MovieClip Frame 220
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2E));
}
Instance of Symbol 1124 MovieClip in Symbol 1191 MovieClip Frame 220
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.swordE));
}
Instance of Symbol 1135 MovieClip in Symbol 1191 MovieClip Frame 220
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bodyE));
}
Instance of Symbol 1109 MovieClip in Symbol 1191 MovieClip Frame 220
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2E));
}
Instance of Symbol 1143 MovieClip in Symbol 1191 MovieClip Frame 220
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shieldE));
}
Instance of Symbol 1180 MovieClip in Symbol 1191 MovieClip Frame 220
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.helmetE));
}
Instance of Symbol 1143 MovieClip in Symbol 1191 MovieClip Frame 221
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shieldE));
}
Symbol 1191 MovieClip Frame 222
_parent.HIT.gotoAndStop(2);
Instance of Symbol 1124 MovieClip in Symbol 1191 MovieClip Frame 243
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.swordE));
}
Instance of Symbol 603 MovieClip "HIT" in Symbol 1191 MovieClip Frame 250
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 1109 MovieClip in Symbol 1191 MovieClip Frame 258
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2E));
}
Symbol 1191 MovieClip Frame 259
_parent.HIT.gotoAndStop(1);
Symbol 1191 MovieClip Frame 260
gotoAndPlay (1);
Symbol 1191 MovieClip Frame 270
canAttack = false;
Instance of Symbol 1109 MovieClip in Symbol 1191 MovieClip Frame 270
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2E));
}
Instance of Symbol 1124 MovieClip in Symbol 1191 MovieClip Frame 270
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.swordE));
}
Instance of Symbol 1135 MovieClip in Symbol 1191 MovieClip Frame 270
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bodyE));
}
Instance of Symbol 1109 MovieClip in Symbol 1191 MovieClip Frame 270
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2E));
}
Instance of Symbol 1143 MovieClip in Symbol 1191 MovieClip Frame 270
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shieldE));
}
Instance of Symbol 1180 MovieClip in Symbol 1191 MovieClip Frame 270
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.helmetE));
}
Symbol 1191 MovieClip Frame 286
if (_root["enemy" + num]._xscale == 100) {
_root.attachMovie("aeAttach", "aeAttach", 510, {_x:_parent._x, _y:_parent._y - 50});
}
Symbol 1191 MovieClip Frame 300
canAttack = false;
Instance of Symbol 1109 MovieClip in Symbol 1191 MovieClip Frame 300
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2E));
}
Instance of Symbol 1124 MovieClip in Symbol 1191 MovieClip Frame 300
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.swordE));
}
Instance of Symbol 1135 MovieClip in Symbol 1191 MovieClip Frame 300
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bodyE));
}
Instance of Symbol 1109 MovieClip in Symbol 1191 MovieClip Frame 300
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2E));
}
Instance of Symbol 1180 MovieClip in Symbol 1191 MovieClip Frame 300
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.helmetE));
}
Instance of Symbol 1143 MovieClip in Symbol 1191 MovieClip Frame 300
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shieldE));
}
Instance of Symbol 1124 MovieClip in Symbol 1191 MovieClip Frame 302
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.swordE));
}
Instance of Symbol 603 MovieClip "HIT" in Symbol 1191 MovieClip Frame 309
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 1109 MovieClip in Symbol 1191 MovieClip Frame 317
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2E));
}
Instance of Symbol 1124 MovieClip in Symbol 1191 MovieClip Frame 319
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.swordE));
}
Instance of Symbol 1109 MovieClip in Symbol 1191 MovieClip Frame 319
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2E));
}
Instance of Symbol 1124 MovieClip in Symbol 1191 MovieClip Frame 321
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.swordE));
}
Instance of Symbol 603 MovieClip "HIT" in Symbol 1191 MovieClip Frame 328
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 1109 MovieClip in Symbol 1191 MovieClip Frame 336
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2E));
}
Instance of Symbol 1124 MovieClip in Symbol 1191 MovieClip Frame 338
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.swordE));
}
Instance of Symbol 1109 MovieClip in Symbol 1191 MovieClip Frame 338
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2E));
}
Instance of Symbol 1124 MovieClip in Symbol 1191 MovieClip Frame 340
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.swordE));
}
Instance of Symbol 1124 MovieClip in Symbol 1191 MovieClip Frame 353
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.swordE));
}
Instance of Symbol 1124 MovieClip in Symbol 1191 MovieClip Frame 354
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.swordE));
}
Instance of Symbol 603 MovieClip "HIT" in Symbol 1191 MovieClip Frame 354
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 1109 MovieClip in Symbol 1191 MovieClip Frame 362
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2E));
}
Symbol 1191 MovieClip Frame 364
gotoAndPlay (1);
Symbol 1191 MovieClip Frame 370
canAttack = false;
kick = true;
Instance of Symbol 1109 MovieClip in Symbol 1191 MovieClip Frame 370
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2E));
}
Instance of Symbol 1124 MovieClip in Symbol 1191 MovieClip Frame 370
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.swordE));
}
Instance of Symbol 1135 MovieClip in Symbol 1191 MovieClip Frame 370
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bodyE));
}
Instance of Symbol 1109 MovieClip in Symbol 1191 MovieClip Frame 370
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2E));
}
Instance of Symbol 1143 MovieClip in Symbol 1191 MovieClip Frame 370
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shieldE));
}
Instance of Symbol 1180 MovieClip in Symbol 1191 MovieClip Frame 370
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.helmetE));
}
Instance of Symbol 1124 MovieClip in Symbol 1191 MovieClip Frame 372
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.swordE));
}
Instance of Symbol 603 MovieClip "HIT" in Symbol 1191 MovieClip Frame 372
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 1109 MovieClip in Symbol 1191 MovieClip Frame 373
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2E));
}
Instance of Symbol 1124 MovieClip in Symbol 1191 MovieClip Frame 373
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.swordE));
}
Instance of Symbol 1124 MovieClip in Symbol 1191 MovieClip Frame 382
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.swordE));
}
Instance of Symbol 1124 MovieClip in Symbol 1191 MovieClip Frame 407
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.swordE));
}
Instance of Symbol 603 MovieClip "HITsuper" in Symbol 1191 MovieClip Frame 407
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 1124 MovieClip in Symbol 1191 MovieClip Frame 408
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.swordE));
}
Instance of Symbol 1109 MovieClip in Symbol 1191 MovieClip Frame 416
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2E));
}
Symbol 1193 MovieClip Frame 1
_parent.dead = true;
Instance of Symbol 225 MovieClip in Symbol 1193 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pantsE));
}
Instance of Symbol 266 MovieClip in Symbol 1193 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bootsE));
}
Instance of Symbol 225 MovieClip in Symbol 1193 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pantsE));
}
Instance of Symbol 266 MovieClip in Symbol 1193 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bootsE));
}
Instance of Symbol 1109 MovieClip in Symbol 1193 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2E));
}
Instance of Symbol 1124 MovieClip in Symbol 1193 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.swordE));
}
Instance of Symbol 1135 MovieClip in Symbol 1193 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bodyE));
}
Instance of Symbol 1109 MovieClip in Symbol 1193 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2E));
}
Instance of Symbol 1143 MovieClip in Symbol 1193 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shieldE));
}
Instance of Symbol 1180 MovieClip in Symbol 1193 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.helmetE));
}
Symbol 1193 MovieClip Frame 36
_parent.dead = false;
_parent.gotoAndStop(1);
Symbol 1193 MovieClip Frame 37
_parent.dead = true;
Instance of Symbol 225 MovieClip in Symbol 1193 MovieClip Frame 37
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pantsE));
}
Instance of Symbol 266 MovieClip in Symbol 1193 MovieClip Frame 37
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bootsE));
}
Instance of Symbol 225 MovieClip in Symbol 1193 MovieClip Frame 37
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pantsE));
}
Instance of Symbol 266 MovieClip in Symbol 1193 MovieClip Frame 37
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bootsE));
}
Instance of Symbol 1109 MovieClip in Symbol 1193 MovieClip Frame 37
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2E));
}
Instance of Symbol 1124 MovieClip in Symbol 1193 MovieClip Frame 37
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.swordE));
}
Instance of Symbol 1135 MovieClip in Symbol 1193 MovieClip Frame 37
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bodyE));
}
Instance of Symbol 1109 MovieClip in Symbol 1193 MovieClip Frame 37
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2E));
}
Instance of Symbol 1143 MovieClip in Symbol 1193 MovieClip Frame 37
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shieldE));
}
Instance of Symbol 1180 MovieClip in Symbol 1193 MovieClip Frame 37
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.helmetE));
}
Symbol 1193 MovieClip Frame 81
_parent.dead = false;
_parent.gotoAndStop(1);
Symbol 1194 MovieClip Frame 1
play();
Instance of Symbol 225 MovieClip in Symbol 1194 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pantsE));
}
Instance of Symbol 225 MovieClip in Symbol 1194 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pantsE));
}
Instance of Symbol 225 MovieClip in Symbol 1194 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pants));
}
Instance of Symbol 266 MovieClip in Symbol 1194 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bootsE));
}
Instance of Symbol 266 MovieClip in Symbol 1194 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bootsE));
}
Instance of Symbol 1109 MovieClip in Symbol 1194 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2E));
}
Instance of Symbol 1124 MovieClip in Symbol 1194 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.swordE));
}
Instance of Symbol 1109 MovieClip in Symbol 1194 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2E));
}
Instance of Symbol 1135 MovieClip in Symbol 1194 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bodyE));
}
Instance of Symbol 1143 MovieClip in Symbol 1194 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shieldE));
}
Instance of Symbol 1180 MovieClip in Symbol 1194 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.helmetE));
}
Instance of Symbol 1124 MovieClip in Symbol 1194 MovieClip Frame 2
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.swordE));
}
Instance of Symbol 1135 MovieClip in Symbol 1194 MovieClip Frame 2
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bodyE));
}
Instance of Symbol 1124 MovieClip in Symbol 1194 MovieClip Frame 3
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.swordE));
}
Instance of Symbol 1180 MovieClip in Symbol 1194 MovieClip Frame 3
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.helmetE));
}
Instance of Symbol 1181 MovieClip "HIT" in Symbol 1194 MovieClip Frame 3
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.swordE));
this._visible = false;
}
Instance of Symbol 225 MovieClip in Symbol 1194 MovieClip Frame 4
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pantsE));
}
Instance of Symbol 225 MovieClip in Symbol 1194 MovieClip Frame 4
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pantsE));
}
Instance of Symbol 225 MovieClip in Symbol 1194 MovieClip Frame 4
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pants));
}
Instance of Symbol 266 MovieClip in Symbol 1194 MovieClip Frame 4
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bootsE));
}
Instance of Symbol 266 MovieClip in Symbol 1194 MovieClip Frame 4
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bootsE));
}
Instance of Symbol 1109 MovieClip in Symbol 1194 MovieClip Frame 4
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2E));
}
Instance of Symbol 1135 MovieClip in Symbol 1194 MovieClip Frame 4
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bodyE));
}
Instance of Symbol 1180 MovieClip in Symbol 1194 MovieClip Frame 4
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.helmetE));
}
Instance of Symbol 225 MovieClip in Symbol 1194 MovieClip Frame 5
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pantsE));
}
Instance of Symbol 225 MovieClip in Symbol 1194 MovieClip Frame 5
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pantsE));
}
Instance of Symbol 225 MovieClip in Symbol 1194 MovieClip Frame 5
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pants));
}
Instance of Symbol 266 MovieClip in Symbol 1194 MovieClip Frame 5
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bootsE));
}
Instance of Symbol 266 MovieClip in Symbol 1194 MovieClip Frame 5
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bootsE));
}
Instance of Symbol 1109 MovieClip in Symbol 1194 MovieClip Frame 5
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2E));
}
Instance of Symbol 1135 MovieClip in Symbol 1194 MovieClip Frame 5
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bodyE));
}
Instance of Symbol 1180 MovieClip in Symbol 1194 MovieClip Frame 5
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.helmetE));
}
Instance of Symbol 1135 MovieClip in Symbol 1194 MovieClip Frame 8
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bodyE));
}
Instance of Symbol 1109 MovieClip in Symbol 1194 MovieClip Frame 8
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2E));
}
Instance of Symbol 1143 MovieClip in Symbol 1194 MovieClip Frame 8
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shieldE));
}
Instance of Symbol 1180 MovieClip in Symbol 1194 MovieClip Frame 8
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.helmetE));
}
Symbol 1194 MovieClip Frame 9
stop();
Instance of Symbol 225 MovieClip in Symbol 1195 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pantsE));
}
Instance of Symbol 225 MovieClip in Symbol 1195 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pantsE));
}
Instance of Symbol 225 MovieClip in Symbol 1195 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pantsE));
}
Instance of Symbol 266 MovieClip in Symbol 1195 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bootsE));
}
Instance of Symbol 266 MovieClip in Symbol 1195 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bootsE));
}
Instance of Symbol 1109 MovieClip in Symbol 1195 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2E));
}
Instance of Symbol 1124 MovieClip in Symbol 1195 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.swordE));
}
Instance of Symbol 1135 MovieClip in Symbol 1195 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bodyE));
}
Instance of Symbol 1109 MovieClip in Symbol 1195 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2E));
}
Instance of Symbol 1143 MovieClip in Symbol 1195 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shieldE));
}
Instance of Symbol 1180 MovieClip in Symbol 1195 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.helmetE));
}
Symbol 1195 MovieClip Frame 4
stop();
Instance of Symbol 225 MovieClip in Symbol 1208 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pantsE));
}
Instance of Symbol 266 MovieClip in Symbol 1208 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bootsE));
}
Instance of Symbol 225 MovieClip in Symbol 1208 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pantsE));
}
Instance of Symbol 266 MovieClip in Symbol 1208 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bootsE));
}
Instance of Symbol 1109 MovieClip in Symbol 1208 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2E));
}
Instance of Symbol 1124 MovieClip in Symbol 1208 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.swordE));
}
Instance of Symbol 1135 MovieClip in Symbol 1208 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bodyE));
}
Instance of Symbol 1109 MovieClip in Symbol 1208 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2E));
}
Instance of Symbol 1143 MovieClip in Symbol 1208 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shieldE));
}
Instance of Symbol 1180 MovieClip in Symbol 1208 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.helmetE));
}
Instance of Symbol 225 MovieClip in Symbol 1208 MovieClip Frame 56
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pantsE));
}
Instance of Symbol 266 MovieClip in Symbol 1208 MovieClip Frame 56
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bootsE));
}
Instance of Symbol 225 MovieClip in Symbol 1208 MovieClip Frame 56
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pantsE));
}
Instance of Symbol 266 MovieClip in Symbol 1208 MovieClip Frame 56
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bootsE));
}
Instance of Symbol 1109 MovieClip in Symbol 1208 MovieClip Frame 56
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2E));
}
Instance of Symbol 1124 MovieClip in Symbol 1208 MovieClip Frame 56
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.swordE));
}
Instance of Symbol 1135 MovieClip in Symbol 1208 MovieClip Frame 56
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bodyE));
}
Instance of Symbol 1109 MovieClip in Symbol 1208 MovieClip Frame 56
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2E));
}
Instance of Symbol 1143 MovieClip in Symbol 1208 MovieClip Frame 56
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shieldE));
}
Instance of Symbol 1180 MovieClip in Symbol 1208 MovieClip Frame 56
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.helmetE));
}
Instance of Symbol 225 MovieClip in Symbol 1208 MovieClip Frame 66
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pantsE));
}
Instance of Symbol 266 MovieClip in Symbol 1208 MovieClip Frame 66
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bootsE));
}
Instance of Symbol 225 MovieClip in Symbol 1208 MovieClip Frame 66
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pantsE));
}
Instance of Symbol 266 MovieClip in Symbol 1208 MovieClip Frame 66
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bootsE));
}
Instance of Symbol 1109 MovieClip in Symbol 1208 MovieClip Frame 66
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2E));
}
Instance of Symbol 1124 MovieClip in Symbol 1208 MovieClip Frame 66
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.swordE));
}
Instance of Symbol 1135 MovieClip in Symbol 1208 MovieClip Frame 66
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bodyE));
}
Instance of Symbol 1109 MovieClip in Symbol 1208 MovieClip Frame 66
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2E));
}
Instance of Symbol 1143 MovieClip in Symbol 1208 MovieClip Frame 66
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shieldE));
}
Instance of Symbol 1180 MovieClip in Symbol 1208 MovieClip Frame 66
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.helmetE));
}
Instance of Symbol 225 MovieClip in Symbol 1208 MovieClip Frame 76
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pantsE));
}
Instance of Symbol 266 MovieClip in Symbol 1208 MovieClip Frame 76
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bootsE));
}
Instance of Symbol 225 MovieClip in Symbol 1208 MovieClip Frame 76
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pantsE));
}
Instance of Symbol 266 MovieClip in Symbol 1208 MovieClip Frame 76
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bootsE));
}
Instance of Symbol 1109 MovieClip in Symbol 1208 MovieClip Frame 76
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2E));
}
Instance of Symbol 1124 MovieClip in Symbol 1208 MovieClip Frame 76
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.swordE));
}
Instance of Symbol 1135 MovieClip in Symbol 1208 MovieClip Frame 76
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bodyE));
}
Instance of Symbol 1109 MovieClip in Symbol 1208 MovieClip Frame 76
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2E));
}
Instance of Symbol 1143 MovieClip in Symbol 1208 MovieClip Frame 76
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shieldE));
}
Instance of Symbol 1180 MovieClip in Symbol 1208 MovieClip Frame 76
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.helmetE));
}
Instance of Symbol 225 MovieClip in Symbol 1208 MovieClip Frame 86
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pantsE));
}
Instance of Symbol 266 MovieClip in Symbol 1208 MovieClip Frame 86
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bootsE));
}
Instance of Symbol 225 MovieClip in Symbol 1208 MovieClip Frame 86
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pantsE));
}
Instance of Symbol 266 MovieClip in Symbol 1208 MovieClip Frame 86
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bootsE));
}
Instance of Symbol 1109 MovieClip in Symbol 1208 MovieClip Frame 86
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2E));
}
Instance of Symbol 1124 MovieClip in Symbol 1208 MovieClip Frame 86
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.swordE));
}
Instance of Symbol 1135 MovieClip in Symbol 1208 MovieClip Frame 86
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bodyE));
}
Instance of Symbol 1109 MovieClip in Symbol 1208 MovieClip Frame 86
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2E));
}
Instance of Symbol 1143 MovieClip in Symbol 1208 MovieClip Frame 86
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shieldE));
}
Instance of Symbol 1180 MovieClip in Symbol 1208 MovieClip Frame 86
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.helmetE));
}
Symbol 1208 MovieClip Frame 91
_parent.play();
Instance of Symbol 225 MovieClip in Symbol 1232 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pantsE));
}
Instance of Symbol 266 MovieClip in Symbol 1232 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bootsE));
}
Instance of Symbol 225 MovieClip in Symbol 1232 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pantsE));
}
Instance of Symbol 266 MovieClip in Symbol 1232 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bootsE));
}
Instance of Symbol 1124 MovieClip in Symbol 1232 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.swordE));
}
Instance of Symbol 1109 MovieClip in Symbol 1232 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2E));
}
Instance of Symbol 1135 MovieClip in Symbol 1232 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bodyE));
}
Instance of Symbol 1109 MovieClip in Symbol 1232 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2E));
}
Instance of Symbol 1143 MovieClip in Symbol 1232 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shieldE));
}
Instance of Symbol 1180 MovieClip in Symbol 1232 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.helmetE));
}
Instance of Symbol 225 MovieClip in Symbol 1232 MovieClip Frame 56
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pantsE));
}
Instance of Symbol 266 MovieClip in Symbol 1232 MovieClip Frame 56
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bootsE));
}
Instance of Symbol 225 MovieClip in Symbol 1232 MovieClip Frame 56
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pantsE));
}
Instance of Symbol 266 MovieClip in Symbol 1232 MovieClip Frame 56
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bootsE));
}
Instance of Symbol 1124 MovieClip in Symbol 1232 MovieClip Frame 56
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.swordE));
}
Instance of Symbol 1109 MovieClip in Symbol 1232 MovieClip Frame 56
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2E));
}
Instance of Symbol 1135 MovieClip in Symbol 1232 MovieClip Frame 56
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bodyE));
}
Instance of Symbol 1109 MovieClip in Symbol 1232 MovieClip Frame 56
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2E));
}
Instance of Symbol 1143 MovieClip in Symbol 1232 MovieClip Frame 56
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shieldE));
}
Instance of Symbol 1180 MovieClip in Symbol 1232 MovieClip Frame 56
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.helmetE));
}
Instance of Symbol 225 MovieClip in Symbol 1232 MovieClip Frame 66
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pantsE));
}
Instance of Symbol 266 MovieClip in Symbol 1232 MovieClip Frame 66
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bootsE));
}
Instance of Symbol 225 MovieClip in Symbol 1232 MovieClip Frame 66
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pantsE));
}
Instance of Symbol 266 MovieClip in Symbol 1232 MovieClip Frame 66
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bootsE));
}
Instance of Symbol 1124 MovieClip in Symbol 1232 MovieClip Frame 66
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.swordE));
}
Instance of Symbol 1109 MovieClip in Symbol 1232 MovieClip Frame 66
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2E));
}
Instance of Symbol 1135 MovieClip in Symbol 1232 MovieClip Frame 66
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bodyE));
}
Instance of Symbol 1109 MovieClip in Symbol 1232 MovieClip Frame 66
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2E));
}
Instance of Symbol 1143 MovieClip in Symbol 1232 MovieClip Frame 66
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shieldE));
}
Instance of Symbol 1180 MovieClip in Symbol 1232 MovieClip Frame 66
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.helmetE));
}
Instance of Symbol 225 MovieClip in Symbol 1232 MovieClip Frame 76
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pantsE));
}
Instance of Symbol 266 MovieClip in Symbol 1232 MovieClip Frame 76
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bootsE));
}
Instance of Symbol 225 MovieClip in Symbol 1232 MovieClip Frame 76
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pantsE));
}
Instance of Symbol 266 MovieClip in Symbol 1232 MovieClip Frame 76
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bootsE));
}
Instance of Symbol 1124 MovieClip in Symbol 1232 MovieClip Frame 76
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.swordE));
}
Instance of Symbol 1109 MovieClip in Symbol 1232 MovieClip Frame 76
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2E));
}
Instance of Symbol 1135 MovieClip in Symbol 1232 MovieClip Frame 76
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bodyE));
}
Instance of Symbol 1109 MovieClip in Symbol 1232 MovieClip Frame 76
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2E));
}
Instance of Symbol 1143 MovieClip in Symbol 1232 MovieClip Frame 76
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shieldE));
}
Instance of Symbol 1180 MovieClip in Symbol 1232 MovieClip Frame 76
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.helmetE));
}
Instance of Symbol 225 MovieClip in Symbol 1232 MovieClip Frame 86
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pantsE));
}
Instance of Symbol 266 MovieClip in Symbol 1232 MovieClip Frame 86
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bootsE));
}
Instance of Symbol 225 MovieClip in Symbol 1232 MovieClip Frame 86
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pantsE));
}
Instance of Symbol 266 MovieClip in Symbol 1232 MovieClip Frame 86
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bootsE));
}
Instance of Symbol 1124 MovieClip in Symbol 1232 MovieClip Frame 86
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.swordE));
}
Instance of Symbol 1109 MovieClip in Symbol 1232 MovieClip Frame 86
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2E));
}
Instance of Symbol 1135 MovieClip in Symbol 1232 MovieClip Frame 86
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bodyE));
}
Instance of Symbol 1109 MovieClip in Symbol 1232 MovieClip Frame 86
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2E));
}
Instance of Symbol 1143 MovieClip in Symbol 1232 MovieClip Frame 86
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shieldE));
}
Instance of Symbol 1180 MovieClip in Symbol 1232 MovieClip Frame 86
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.helmetE));
}
Symbol 1232 MovieClip Frame 91
_parent.play();
Instance of Symbol 1124 MovieClip in Symbol 1268 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.swordE));
}
Instance of Symbol 225 MovieClip in Symbol 1268 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pantsE));
}
Instance of Symbol 266 MovieClip in Symbol 1268 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bootsE));
}
Instance of Symbol 225 MovieClip in Symbol 1268 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pantsE));
}
Instance of Symbol 266 MovieClip in Symbol 1268 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bootsE));
}
Instance of Symbol 1109 MovieClip in Symbol 1268 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2E));
}
Instance of Symbol 1135 MovieClip in Symbol 1268 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bodyE));
}
Instance of Symbol 1109 MovieClip in Symbol 1268 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2E));
}
Instance of Symbol 1143 MovieClip in Symbol 1268 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shieldE));
}
Instance of Symbol 1180 MovieClip in Symbol 1268 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.helmetE));
}
Instance of Symbol 1124 MovieClip in Symbol 1268 MovieClip Frame 56
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.swordE));
}
Instance of Symbol 225 MovieClip in Symbol 1268 MovieClip Frame 56
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pantsE));
}
Instance of Symbol 266 MovieClip in Symbol 1268 MovieClip Frame 56
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bootsE));
}
Instance of Symbol 225 MovieClip in Symbol 1268 MovieClip Frame 56
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pantsE));
}
Instance of Symbol 266 MovieClip in Symbol 1268 MovieClip Frame 56
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bootsE));
}
Instance of Symbol 1109 MovieClip in Symbol 1268 MovieClip Frame 56
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2E));
}
Instance of Symbol 1135 MovieClip in Symbol 1268 MovieClip Frame 56
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bodyE));
}
Instance of Symbol 1109 MovieClip in Symbol 1268 MovieClip Frame 56
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2E));
}
Instance of Symbol 1143 MovieClip in Symbol 1268 MovieClip Frame 56
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shieldE));
}
Instance of Symbol 1180 MovieClip in Symbol 1268 MovieClip Frame 56
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.helmetE));
}
Instance of Symbol 1124 MovieClip in Symbol 1268 MovieClip Frame 66
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.swordE));
}
Instance of Symbol 225 MovieClip in Symbol 1268 MovieClip Frame 66
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pantsE));
}
Instance of Symbol 266 MovieClip in Symbol 1268 MovieClip Frame 66
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bootsE));
}
Instance of Symbol 225 MovieClip in Symbol 1268 MovieClip Frame 66
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pantsE));
}
Instance of Symbol 266 MovieClip in Symbol 1268 MovieClip Frame 66
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bootsE));
}
Instance of Symbol 1109 MovieClip in Symbol 1268 MovieClip Frame 66
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2E));
}
Instance of Symbol 1135 MovieClip in Symbol 1268 MovieClip Frame 66
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bodyE));
}
Instance of Symbol 1109 MovieClip in Symbol 1268 MovieClip Frame 66
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2E));
}
Instance of Symbol 1143 MovieClip in Symbol 1268 MovieClip Frame 66
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shieldE));
}
Instance of Symbol 1180 MovieClip in Symbol 1268 MovieClip Frame 66
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.helmetE));
}
Instance of Symbol 1124 MovieClip in Symbol 1268 MovieClip Frame 76
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.swordE));
}
Instance of Symbol 225 MovieClip in Symbol 1268 MovieClip Frame 76
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pantsE));
}
Instance of Symbol 266 MovieClip in Symbol 1268 MovieClip Frame 76
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bootsE));
}
Instance of Symbol 225 MovieClip in Symbol 1268 MovieClip Frame 76
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pantsE));
}
Instance of Symbol 266 MovieClip in Symbol 1268 MovieClip Frame 76
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bootsE));
}
Instance of Symbol 1109 MovieClip in Symbol 1268 MovieClip Frame 76
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2E));
}
Instance of Symbol 1135 MovieClip in Symbol 1268 MovieClip Frame 76
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bodyE));
}
Instance of Symbol 1109 MovieClip in Symbol 1268 MovieClip Frame 76
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2E));
}
Instance of Symbol 1143 MovieClip in Symbol 1268 MovieClip Frame 76
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shieldE));
}
Instance of Symbol 1180 MovieClip in Symbol 1268 MovieClip Frame 76
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.helmetE));
}
Instance of Symbol 1124 MovieClip in Symbol 1268 MovieClip Frame 86
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.swordE));
}
Instance of Symbol 225 MovieClip in Symbol 1268 MovieClip Frame 86
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pantsE));
}
Instance of Symbol 266 MovieClip in Symbol 1268 MovieClip Frame 86
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bootsE));
}
Instance of Symbol 225 MovieClip in Symbol 1268 MovieClip Frame 86
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pantsE));
}
Instance of Symbol 266 MovieClip in Symbol 1268 MovieClip Frame 86
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bootsE));
}
Instance of Symbol 1109 MovieClip in Symbol 1268 MovieClip Frame 86
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2E));
}
Instance of Symbol 1135 MovieClip in Symbol 1268 MovieClip Frame 86
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bodyE));
}
Instance of Symbol 1109 MovieClip in Symbol 1268 MovieClip Frame 86
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2E));
}
Instance of Symbol 1143 MovieClip in Symbol 1268 MovieClip Frame 86
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shieldE));
}
Instance of Symbol 1180 MovieClip in Symbol 1268 MovieClip Frame 86
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.helmetE));
}
Symbol 1268 MovieClip Frame 91
_parent.play();
Instance of Symbol 225 MovieClip in Symbol 1304 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pantsE));
}
Instance of Symbol 266 MovieClip in Symbol 1304 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bootsE));
}
Instance of Symbol 225 MovieClip in Symbol 1304 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pantsE));
}
Instance of Symbol 266 MovieClip in Symbol 1304 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bootsE));
}
Instance of Symbol 1109 MovieClip in Symbol 1304 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2E));
}
Instance of Symbol 1124 MovieClip in Symbol 1304 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.swordE));
}
Instance of Symbol 1135 MovieClip in Symbol 1304 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bodyE));
}
Instance of Symbol 1109 MovieClip in Symbol 1304 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2E));
}
Instance of Symbol 1143 MovieClip in Symbol 1304 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shieldE));
}
Instance of Symbol 1180 MovieClip in Symbol 1304 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.helmetE));
}
Instance of Symbol 225 MovieClip in Symbol 1304 MovieClip Frame 56
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pantsE));
}
Instance of Symbol 266 MovieClip in Symbol 1304 MovieClip Frame 56
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bootsE));
}
Instance of Symbol 225 MovieClip in Symbol 1304 MovieClip Frame 56
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pantsE));
}
Instance of Symbol 266 MovieClip in Symbol 1304 MovieClip Frame 56
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bootsE));
}
Instance of Symbol 1109 MovieClip in Symbol 1304 MovieClip Frame 56
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2E));
}
Instance of Symbol 1124 MovieClip in Symbol 1304 MovieClip Frame 56
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.swordE));
}
Instance of Symbol 1135 MovieClip in Symbol 1304 MovieClip Frame 56
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bodyE));
}
Instance of Symbol 1109 MovieClip in Symbol 1304 MovieClip Frame 56
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2E));
}
Instance of Symbol 1143 MovieClip in Symbol 1304 MovieClip Frame 56
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shieldE));
}
Instance of Symbol 1180 MovieClip in Symbol 1304 MovieClip Frame 56
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.helmetE));
}
Instance of Symbol 225 MovieClip in Symbol 1304 MovieClip Frame 65
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pantsE));
}
Instance of Symbol 266 MovieClip in Symbol 1304 MovieClip Frame 65
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bootsE));
}
Instance of Symbol 225 MovieClip in Symbol 1304 MovieClip Frame 65
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pantsE));
}
Instance of Symbol 266 MovieClip in Symbol 1304 MovieClip Frame 65
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bootsE));
}
Instance of Symbol 1109 MovieClip in Symbol 1304 MovieClip Frame 65
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2E));
}
Instance of Symbol 1124 MovieClip in Symbol 1304 MovieClip Frame 65
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.swordE));
}
Instance of Symbol 1135 MovieClip in Symbol 1304 MovieClip Frame 65
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bodyE));
}
Instance of Symbol 1109 MovieClip in Symbol 1304 MovieClip Frame 65
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2E));
}
Instance of Symbol 1143 MovieClip in Symbol 1304 MovieClip Frame 65
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shieldE));
}
Instance of Symbol 1180 MovieClip in Symbol 1304 MovieClip Frame 65
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.helmetE));
}
Instance of Symbol 225 MovieClip in Symbol 1304 MovieClip Frame 74
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pantsE));
}
Instance of Symbol 266 MovieClip in Symbol 1304 MovieClip Frame 74
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bootsE));
}
Instance of Symbol 225 MovieClip in Symbol 1304 MovieClip Frame 74
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pantsE));
}
Instance of Symbol 266 MovieClip in Symbol 1304 MovieClip Frame 74
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bootsE));
}
Instance of Symbol 1109 MovieClip in Symbol 1304 MovieClip Frame 74
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2E));
}
Instance of Symbol 1124 MovieClip in Symbol 1304 MovieClip Frame 74
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.swordE));
}
Instance of Symbol 1135 MovieClip in Symbol 1304 MovieClip Frame 74
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bodyE));
}
Instance of Symbol 1109 MovieClip in Symbol 1304 MovieClip Frame 74
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2E));
}
Instance of Symbol 1143 MovieClip in Symbol 1304 MovieClip Frame 74
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shieldE));
}
Instance of Symbol 1180 MovieClip in Symbol 1304 MovieClip Frame 74
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.helmetE));
}
Instance of Symbol 225 MovieClip in Symbol 1304 MovieClip Frame 83
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pantsE));
}
Instance of Symbol 266 MovieClip in Symbol 1304 MovieClip Frame 83
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bootsE));
}
Instance of Symbol 225 MovieClip in Symbol 1304 MovieClip Frame 83
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pantsE));
}
Instance of Symbol 266 MovieClip in Symbol 1304 MovieClip Frame 83
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bootsE));
}
Instance of Symbol 1109 MovieClip in Symbol 1304 MovieClip Frame 83
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2E));
}
Instance of Symbol 1124 MovieClip in Symbol 1304 MovieClip Frame 83
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.swordE));
}
Instance of Symbol 1135 MovieClip in Symbol 1304 MovieClip Frame 83
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bodyE));
}
Instance of Symbol 1109 MovieClip in Symbol 1304 MovieClip Frame 83
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2E));
}
Instance of Symbol 1143 MovieClip in Symbol 1304 MovieClip Frame 83
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shieldE));
}
Instance of Symbol 1180 MovieClip in Symbol 1304 MovieClip Frame 83
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.helmetE));
}
Symbol 1304 MovieClip Frame 88
_parent.play();
Instance of Symbol 225 MovieClip in Symbol 1332 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pantsE));
}
Instance of Symbol 266 MovieClip in Symbol 1332 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bootsE));
}
Instance of Symbol 225 MovieClip in Symbol 1332 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pantsE));
}
Instance of Symbol 266 MovieClip in Symbol 1332 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bootsE));
}
Instance of Symbol 1109 MovieClip in Symbol 1332 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2E));
}
Instance of Symbol 1124 MovieClip in Symbol 1332 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.swordE));
}
Instance of Symbol 1135 MovieClip in Symbol 1332 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bodyE));
}
Instance of Symbol 1109 MovieClip in Symbol 1332 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2E));
}
Instance of Symbol 1143 MovieClip in Symbol 1332 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shieldE));
}
Instance of Symbol 1180 MovieClip in Symbol 1332 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.helmetE));
}
Instance of Symbol 225 MovieClip in Symbol 1332 MovieClip Frame 56
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pantsE));
}
Instance of Symbol 266 MovieClip in Symbol 1332 MovieClip Frame 56
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bootsE));
}
Instance of Symbol 225 MovieClip in Symbol 1332 MovieClip Frame 56
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pantsE));
}
Instance of Symbol 266 MovieClip in Symbol 1332 MovieClip Frame 56
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bootsE));
}
Instance of Symbol 1109 MovieClip in Symbol 1332 MovieClip Frame 56
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2E));
}
Instance of Symbol 1124 MovieClip in Symbol 1332 MovieClip Frame 56
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.swordE));
}
Instance of Symbol 1135 MovieClip in Symbol 1332 MovieClip Frame 56
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bodyE));
}
Instance of Symbol 1109 MovieClip in Symbol 1332 MovieClip Frame 56
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2E));
}
Instance of Symbol 1143 MovieClip in Symbol 1332 MovieClip Frame 56
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shieldE));
}
Instance of Symbol 1180 MovieClip in Symbol 1332 MovieClip Frame 56
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.helmetE));
}
Instance of Symbol 225 MovieClip in Symbol 1332 MovieClip Frame 66
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pantsE));
}
Instance of Symbol 266 MovieClip in Symbol 1332 MovieClip Frame 66
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bootsE));
}
Instance of Symbol 225 MovieClip in Symbol 1332 MovieClip Frame 66
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pantsE));
}
Instance of Symbol 266 MovieClip in Symbol 1332 MovieClip Frame 66
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bootsE));
}
Instance of Symbol 1109 MovieClip in Symbol 1332 MovieClip Frame 66
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2E));
}
Instance of Symbol 1124 MovieClip in Symbol 1332 MovieClip Frame 66
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.swordE));
}
Instance of Symbol 1135 MovieClip in Symbol 1332 MovieClip Frame 66
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bodyE));
}
Instance of Symbol 1109 MovieClip in Symbol 1332 MovieClip Frame 66
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2E));
}
Instance of Symbol 1143 MovieClip in Symbol 1332 MovieClip Frame 66
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shieldE));
}
Instance of Symbol 1180 MovieClip in Symbol 1332 MovieClip Frame 66
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.helmetE));
}
Instance of Symbol 225 MovieClip in Symbol 1332 MovieClip Frame 76
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pantsE));
}
Instance of Symbol 266 MovieClip in Symbol 1332 MovieClip Frame 76
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bootsE));
}
Instance of Symbol 225 MovieClip in Symbol 1332 MovieClip Frame 76
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pantsE));
}
Instance of Symbol 266 MovieClip in Symbol 1332 MovieClip Frame 76
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bootsE));
}
Instance of Symbol 1109 MovieClip in Symbol 1332 MovieClip Frame 76
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2E));
}
Instance of Symbol 1124 MovieClip in Symbol 1332 MovieClip Frame 76
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.swordE));
}
Instance of Symbol 1135 MovieClip in Symbol 1332 MovieClip Frame 76
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bodyE));
}
Instance of Symbol 1109 MovieClip in Symbol 1332 MovieClip Frame 76
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2E));
}
Instance of Symbol 1143 MovieClip in Symbol 1332 MovieClip Frame 76
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shieldE));
}
Instance of Symbol 1180 MovieClip in Symbol 1332 MovieClip Frame 76
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.helmetE));
}
Instance of Symbol 225 MovieClip in Symbol 1332 MovieClip Frame 86
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pantsE));
}
Instance of Symbol 266 MovieClip in Symbol 1332 MovieClip Frame 86
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bootsE));
}
Instance of Symbol 225 MovieClip in Symbol 1332 MovieClip Frame 86
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pantsE));
}
Instance of Symbol 266 MovieClip in Symbol 1332 MovieClip Frame 86
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bootsE));
}
Instance of Symbol 1109 MovieClip in Symbol 1332 MovieClip Frame 86
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2E));
}
Instance of Symbol 1124 MovieClip in Symbol 1332 MovieClip Frame 86
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.swordE));
}
Instance of Symbol 1135 MovieClip in Symbol 1332 MovieClip Frame 86
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bodyE));
}
Instance of Symbol 1109 MovieClip in Symbol 1332 MovieClip Frame 86
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2E));
}
Instance of Symbol 1143 MovieClip in Symbol 1332 MovieClip Frame 86
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shieldE));
}
Instance of Symbol 1180 MovieClip in Symbol 1332 MovieClip Frame 86
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.helmetE));
}
Symbol 1332 MovieClip Frame 91
_parent.play();
Instance of Symbol 225 MovieClip in Symbol 1340 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pantsE));
}
Instance of Symbol 266 MovieClip in Symbol 1340 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bootsE));
}
Instance of Symbol 225 MovieClip in Symbol 1340 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pantsE));
}
Instance of Symbol 266 MovieClip in Symbol 1340 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bootsE));
}
Instance of Symbol 1109 MovieClip in Symbol 1340 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2E));
}
Instance of Symbol 1124 MovieClip in Symbol 1340 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.swordE));
}
Instance of Symbol 1135 MovieClip in Symbol 1340 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bodyE));
}
Instance of Symbol 1109 MovieClip in Symbol 1340 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2E));
}
Instance of Symbol 1143 MovieClip in Symbol 1340 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shieldE));
}
Instance of Symbol 1180 MovieClip in Symbol 1340 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.helmetE));
}
Instance of Symbol 225 MovieClip in Symbol 1340 MovieClip Frame 56
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pantsE));
}
Instance of Symbol 266 MovieClip in Symbol 1340 MovieClip Frame 56
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bootsE));
}
Instance of Symbol 225 MovieClip in Symbol 1340 MovieClip Frame 56
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pantsE));
}
Instance of Symbol 266 MovieClip in Symbol 1340 MovieClip Frame 56
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bootsE));
}
Instance of Symbol 1109 MovieClip in Symbol 1340 MovieClip Frame 56
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2E));
}
Instance of Symbol 1124 MovieClip in Symbol 1340 MovieClip Frame 56
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.swordE));
}
Instance of Symbol 1135 MovieClip in Symbol 1340 MovieClip Frame 56
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bodyE));
}
Instance of Symbol 1109 MovieClip in Symbol 1340 MovieClip Frame 56
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2E));
}
Instance of Symbol 1143 MovieClip in Symbol 1340 MovieClip Frame 56
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shieldE));
}
Instance of Symbol 1180 MovieClip in Symbol 1340 MovieClip Frame 56
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.helmetE));
}
Instance of Symbol 225 MovieClip in Symbol 1340 MovieClip Frame 66
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pantsE));
}
Instance of Symbol 266 MovieClip in Symbol 1340 MovieClip Frame 66
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bootsE));
}
Instance of Symbol 225 MovieClip in Symbol 1340 MovieClip Frame 66
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pantsE));
}
Instance of Symbol 266 MovieClip in Symbol 1340 MovieClip Frame 66
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bootsE));
}
Instance of Symbol 1109 MovieClip in Symbol 1340 MovieClip Frame 66
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2E));
}
Instance of Symbol 1124 MovieClip in Symbol 1340 MovieClip Frame 66
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.swordE));
}
Instance of Symbol 1135 MovieClip in Symbol 1340 MovieClip Frame 66
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bodyE));
}
Instance of Symbol 1109 MovieClip in Symbol 1340 MovieClip Frame 66
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2E));
}
Instance of Symbol 1143 MovieClip in Symbol 1340 MovieClip Frame 66
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shieldE));
}
Instance of Symbol 1180 MovieClip in Symbol 1340 MovieClip Frame 66
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.helmetE));
}
Instance of Symbol 225 MovieClip in Symbol 1340 MovieClip Frame 76
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pantsE));
}
Instance of Symbol 266 MovieClip in Symbol 1340 MovieClip Frame 76
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bootsE));
}
Instance of Symbol 225 MovieClip in Symbol 1340 MovieClip Frame 76
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pantsE));
}
Instance of Symbol 266 MovieClip in Symbol 1340 MovieClip Frame 76
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bootsE));
}
Instance of Symbol 1109 MovieClip in Symbol 1340 MovieClip Frame 76
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2E));
}
Instance of Symbol 1124 MovieClip in Symbol 1340 MovieClip Frame 76
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.swordE));
}
Instance of Symbol 1135 MovieClip in Symbol 1340 MovieClip Frame 76
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bodyE));
}
Instance of Symbol 1109 MovieClip in Symbol 1340 MovieClip Frame 76
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2E));
}
Instance of Symbol 1143 MovieClip in Symbol 1340 MovieClip Frame 76
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shieldE));
}
Instance of Symbol 1180 MovieClip in Symbol 1340 MovieClip Frame 76
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.helmetE));
}
Instance of Symbol 225 MovieClip in Symbol 1340 MovieClip Frame 86
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pantsE));
}
Instance of Symbol 266 MovieClip in Symbol 1340 MovieClip Frame 86
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bootsE));
}
Instance of Symbol 225 MovieClip in Symbol 1340 MovieClip Frame 86
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pantsE));
}
Instance of Symbol 266 MovieClip in Symbol 1340 MovieClip Frame 86
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bootsE));
}
Instance of Symbol 1109 MovieClip in Symbol 1340 MovieClip Frame 86
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2E));
}
Instance of Symbol 1124 MovieClip in Symbol 1340 MovieClip Frame 86
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.swordE));
}
Instance of Symbol 1135 MovieClip in Symbol 1340 MovieClip Frame 86
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bodyE));
}
Instance of Symbol 1109 MovieClip in Symbol 1340 MovieClip Frame 86
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2E));
}
Instance of Symbol 1143 MovieClip in Symbol 1340 MovieClip Frame 86
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shieldE));
}
Instance of Symbol 1180 MovieClip in Symbol 1340 MovieClip Frame 86
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.helmetE));
}
Symbol 1340 MovieClip Frame 91
_parent.play();
Symbol 1341 MovieClip Frame 1
Instance of Symbol 225 MovieClip in Symbol 1341 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pantsE));
}
Instance of Symbol 266 MovieClip in Symbol 1341 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bootsE));
}
Instance of Symbol 225 MovieClip in Symbol 1341 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pantsE));
}
Instance of Symbol 266 MovieClip in Symbol 1341 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bootsE));
}
Instance of Symbol 1109 MovieClip in Symbol 1341 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2E));
}
Instance of Symbol 1124 MovieClip in Symbol 1341 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.swordE));
}
Instance of Symbol 1135 MovieClip in Symbol 1341 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bodyE));
}
Instance of Symbol 1109 MovieClip in Symbol 1341 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2E));
}
Instance of Symbol 1143 MovieClip in Symbol 1341 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shieldE));
}
Instance of Symbol 1180 MovieClip in Symbol 1341 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.helmetE));
}
Symbol 1341 MovieClip Frame 12
stop();
Symbol 1341 MovieClip Frame 13
stop();
_parent.live = true;
Instance of Symbol 225 MovieClip in Symbol 1341 MovieClip Frame 20
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pantsE));
}
Instance of Symbol 266 MovieClip in Symbol 1341 MovieClip Frame 20
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bootsE));
}
Instance of Symbol 225 MovieClip in Symbol 1341 MovieClip Frame 20
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pantsE));
}
Instance of Symbol 266 MovieClip in Symbol 1341 MovieClip Frame 20
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bootsE));
}
Instance of Symbol 1109 MovieClip in Symbol 1341 MovieClip Frame 20
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2E));
}
Instance of Symbol 1124 MovieClip in Symbol 1341 MovieClip Frame 20
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.swordE));
}
Instance of Symbol 1135 MovieClip in Symbol 1341 MovieClip Frame 20
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bodyE));
}
Instance of Symbol 1109 MovieClip in Symbol 1341 MovieClip Frame 20
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2E));
}
Instance of Symbol 1143 MovieClip in Symbol 1341 MovieClip Frame 20
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shieldE));
}
Instance of Symbol 1180 MovieClip in Symbol 1341 MovieClip Frame 20
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.helmetE));
}
Instance of Symbol 1124 MovieClip in Symbol 1341 MovieClip Frame 27
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.swordE));
}
Symbol 1341 MovieClip Frame 31
stop();
spearReSpawn = true;
Symbol 1341 MovieClip Frame 32
_parent.live = true;
Instance of Symbol 225 MovieClip in Symbol 1341 MovieClip Frame 40
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pantsE));
}
Instance of Symbol 266 MovieClip in Symbol 1341 MovieClip Frame 40
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bootsE));
}
Instance of Symbol 225 MovieClip in Symbol 1341 MovieClip Frame 40
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pantsE));
}
Instance of Symbol 266 MovieClip in Symbol 1341 MovieClip Frame 40
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bootsE));
}
Instance of Symbol 1109 MovieClip in Symbol 1341 MovieClip Frame 40
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2E));
}
Instance of Symbol 1124 MovieClip in Symbol 1341 MovieClip Frame 40
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.swordE));
}
Instance of Symbol 1135 MovieClip in Symbol 1341 MovieClip Frame 40
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bodyE));
}
Instance of Symbol 1109 MovieClip in Symbol 1341 MovieClip Frame 40
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2E));
}
Instance of Symbol 1143 MovieClip in Symbol 1341 MovieClip Frame 40
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shieldE));
}
Instance of Symbol 1180 MovieClip in Symbol 1341 MovieClip Frame 40
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.helmetE));
}
Instance of Symbol 1124 MovieClip in Symbol 1341 MovieClip Frame 52
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.swordE));
}
Symbol 1341 MovieClip Frame 53
stop();
Symbol 1341 MovieClip Frame 54
_parent.live = true;
Symbol 1341 MovieClip Frame 60
Instance of Symbol 225 MovieClip in Symbol 1341 MovieClip Frame 60
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pantsE));
}
Instance of Symbol 266 MovieClip in Symbol 1341 MovieClip Frame 60
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bootsE));
}
Instance of Symbol 225 MovieClip in Symbol 1341 MovieClip Frame 60
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pantsE));
}
Instance of Symbol 266 MovieClip in Symbol 1341 MovieClip Frame 60
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bootsE));
}
Instance of Symbol 1109 MovieClip in Symbol 1341 MovieClip Frame 60
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2E));
}
Instance of Symbol 1124 MovieClip in Symbol 1341 MovieClip Frame 60
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.swordE));
}
Instance of Symbol 1135 MovieClip in Symbol 1341 MovieClip Frame 60
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bodyE));
}
Instance of Symbol 1109 MovieClip in Symbol 1341 MovieClip Frame 60
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2E));
}
Instance of Symbol 1143 MovieClip in Symbol 1341 MovieClip Frame 60
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shieldE));
}
Instance of Symbol 1180 MovieClip in Symbol 1341 MovieClip Frame 60
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.helmetE));
}
Symbol 1341 MovieClip Frame 71
stop();
Symbol 1341 MovieClip Frame 72
stop();
_parent.live = true;
Symbol 1341 MovieClip Frame 80
Instance of Symbol 225 MovieClip in Symbol 1341 MovieClip Frame 80
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pantsE));
}
Instance of Symbol 266 MovieClip in Symbol 1341 MovieClip Frame 80
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bootsE));
}
Instance of Symbol 225 MovieClip in Symbol 1341 MovieClip Frame 80
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pantsE));
}
Instance of Symbol 266 MovieClip in Symbol 1341 MovieClip Frame 80
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bootsE));
}
Instance of Symbol 1109 MovieClip in Symbol 1341 MovieClip Frame 80
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2E));
}
Instance of Symbol 1124 MovieClip in Symbol 1341 MovieClip Frame 80
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.swordE));
}
Instance of Symbol 1135 MovieClip in Symbol 1341 MovieClip Frame 80
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bodyE));
}
Instance of Symbol 1109 MovieClip in Symbol 1341 MovieClip Frame 80
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2E));
}
Instance of Symbol 1143 MovieClip in Symbol 1341 MovieClip Frame 80
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shieldE));
}
Instance of Symbol 1180 MovieClip in Symbol 1341 MovieClip Frame 80
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.helmetE));
}
Symbol 1341 MovieClip Frame 91
stop();
Symbol 1341 MovieClip Frame 92
stop();
_parent.live = true;
Symbol 1341 MovieClip Frame 100
Instance of Symbol 225 MovieClip in Symbol 1341 MovieClip Frame 100
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pantsE));
}
Instance of Symbol 266 MovieClip in Symbol 1341 MovieClip Frame 100
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bootsE));
}
Instance of Symbol 225 MovieClip in Symbol 1341 MovieClip Frame 100
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pantsE));
}
Instance of Symbol 266 MovieClip in Symbol 1341 MovieClip Frame 100
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bootsE));
}
Instance of Symbol 1109 MovieClip in Symbol 1341 MovieClip Frame 100
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2E));
}
Instance of Symbol 1124 MovieClip in Symbol 1341 MovieClip Frame 100
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.swordE));
}
Instance of Symbol 1135 MovieClip in Symbol 1341 MovieClip Frame 100
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bodyE));
}
Instance of Symbol 1109 MovieClip in Symbol 1341 MovieClip Frame 100
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2E));
}
Instance of Symbol 1143 MovieClip in Symbol 1341 MovieClip Frame 100
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shieldE));
}
Instance of Symbol 1180 MovieClip in Symbol 1341 MovieClip Frame 100
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.helmetE));
}
Symbol 1341 MovieClip Frame 111
stop();
Symbol 1341 MovieClip Frame 112
stop();
_parent.live = true;
Instance of Symbol 225 MovieClip in Symbol 1342 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pants));
}
Instance of Symbol 266 MovieClip in Symbol 1342 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.boots));
}
Symbol 1343 MovieClip Frame 1
_root.canAttack = true;
_parent.infrontHand._visible = true;
Instance of Symbol 335 MovieClip in Symbol 1343 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2));
}
Instance of Symbol 408 MovieClip in Symbol 1343 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.sword));
}
Instance of Symbol 457 MovieClip in Symbol 1343 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.body));
}
Instance of Symbol 335 MovieClip in Symbol 1343 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2));
}
Instance of Symbol 525 MovieClip in Symbol 1343 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield));
}
Instance of Symbol 599 MovieClip in Symbol 1343 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.helmet));
}
Symbol 1343 MovieClip Frame 2
_root.canAttack = true;
Symbol 1343 MovieClip Frame 3
_root.canAttack = true;
Symbol 1343 MovieClip Frame 4
_root.canAttack = true;
Symbol 1343 MovieClip Frame 41
gotoAndPlay (1);
Symbol 1343 MovieClip Frame 50
_root.canAttack = false;
_parent.infrontHand._visible = false;
Instance of Symbol 335 MovieClip in Symbol 1343 MovieClip Frame 50
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2));
}
Instance of Symbol 408 MovieClip in Symbol 1343 MovieClip Frame 50
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.sword));
}
Instance of Symbol 457 MovieClip in Symbol 1343 MovieClip Frame 50
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.body));
}
Instance of Symbol 335 MovieClip in Symbol 1343 MovieClip Frame 50
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2));
}
Instance of Symbol 525 MovieClip in Symbol 1343 MovieClip Frame 50
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield));
}
Instance of Symbol 599 MovieClip in Symbol 1343 MovieClip Frame 50
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.helmet));
}
Instance of Symbol 603 MovieClip "HIT2" in Symbol 1343 MovieClip Frame 55
onClipEvent (load) {
this._visible = false;
this.gotoAndStop((this._currentframe = _root.sword));
}
Instance of Symbol 408 MovieClip in Symbol 1343 MovieClip Frame 56
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.sword));
}
Instance of Symbol 408 MovieClip in Symbol 1343 MovieClip Frame 57
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.sword));
}
Instance of Symbol 335 MovieClip in Symbol 1343 MovieClip Frame 59
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2));
}
Symbol 1343 MovieClip Frame 60
gotoAndPlay (1);
Symbol 1343 MovieClip Frame 70
_root.canAttack = false;
_parent.legs1._visible = false;
_parent.legs2._visible = false;
_parent.infrontHand._visible = false;
Instance of Symbol 335 MovieClip in Symbol 1343 MovieClip Frame 70
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2));
}
Instance of Symbol 408 MovieClip in Symbol 1343 MovieClip Frame 70
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.sword));
}
Instance of Symbol 457 MovieClip in Symbol 1343 MovieClip Frame 70
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.body));
}
Instance of Symbol 335 MovieClip in Symbol 1343 MovieClip Frame 70
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2));
}
Instance of Symbol 525 MovieClip in Symbol 1343 MovieClip Frame 70
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield));
}
Instance of Symbol 599 MovieClip in Symbol 1343 MovieClip Frame 70
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.helmet));
}
Instance of Symbol 225 MovieClip in Symbol 1343 MovieClip Frame 70
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pants));
}
Instance of Symbol 266 MovieClip in Symbol 1343 MovieClip Frame 70
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.boots));
}
Instance of Symbol 225 MovieClip in Symbol 1343 MovieClip Frame 72
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pants));
}
Instance of Symbol 603 MovieClip "HIT" in Symbol 1343 MovieClip Frame 72
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 225 MovieClip in Symbol 1343 MovieClip Frame 78
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pants));
}
Symbol 1343 MovieClip Frame 79
_parent.legs1._visible = true;
_parent.legs2._visible = true;
gotoAndPlay (1);
Symbol 1343 MovieClip Frame 90
_root.canAttack = false;
_parent.infrontHand._visible = false;
Instance of Symbol 335 MovieClip in Symbol 1343 MovieClip Frame 90
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2));
}
Instance of Symbol 408 MovieClip in Symbol 1343 MovieClip Frame 90
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.sword));
}
Instance of Symbol 457 MovieClip in Symbol 1343 MovieClip Frame 90
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.body));
}
Instance of Symbol 335 MovieClip in Symbol 1343 MovieClip Frame 90
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2));
}
Instance of Symbol 525 MovieClip in Symbol 1343 MovieClip Frame 90
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield));
}
Instance of Symbol 599 MovieClip in Symbol 1343 MovieClip Frame 90
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.helmet));
}
Instance of Symbol 408 MovieClip in Symbol 1343 MovieClip Frame 97
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.sword));
}
Instance of Symbol 603 MovieClip "HIT2" in Symbol 1343 MovieClip Frame 97
onClipEvent (load) {
this._visible = false;
this.gotoAndStop((this._currentframe = _root.sword));
}
Instance of Symbol 408 MovieClip in Symbol 1343 MovieClip Frame 98
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.sword));
}
Instance of Symbol 335 MovieClip in Symbol 1343 MovieClip Frame 99
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2));
}
Symbol 1343 MovieClip Frame 102
gotoAndPlay (1);
Instance of Symbol 225 MovieClip in Symbol 1344 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pants));
}
Instance of Symbol 266 MovieClip in Symbol 1344 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.boots));
}
Symbol 1346 MovieClip Frame 1
_parent.dead = true;
Instance of Symbol 1109 MovieClip in Symbol 1346 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2E));
}
Instance of Symbol 1124 MovieClip in Symbol 1346 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.swordE));
}
Instance of Symbol 1135 MovieClip in Symbol 1346 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.bodyE));
}
Instance of Symbol 1109 MovieClip in Symbol 1346 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2E));
}
Instance of Symbol 1143 MovieClip in Symbol 1346 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shieldE));
}
Instance of Symbol 1180 MovieClip in Symbol 1346 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.helmetE));
}
Instance of Symbol 1124 MovieClip in Symbol 1346 MovieClip Frame 2
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.swordE));
}
Symbol 1346 MovieClip Frame 17
_parent.dead = false;
_parent.gotoAndStop(1);
Instance of Symbol 1109 MovieClip in Symbol 1346 MovieClip Frame 17
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2E));
}
Symbol 1347 MovieClip Frame 1
stop();
Instance of Symbol 1100 MovieClip "AAA" in Symbol 1347 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(random(100) + 1);
this._visible = false;
}
Instance of Symbol 616 MovieClip "HIT" in Symbol 1347 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 1343 MovieClip in Symbol 1347 MovieClip Frame 5
onClipEvent (enterFrame) {
if ((!Key.isDown(65)) and (_root.canAttack == true)) {
canAttack2 = true;
}
if (Key.isDown(65) and (canAttack2 == true)) {
gotoAndPlay(_root.attackNum4);
canAttack2 = false;
}
if (Key.isDown(83) and (canAttack2 == true)) {
gotoAndPlay (70);
canAttack2 = false;
}
}
onClipEvent (load) {
canAttack2 = true;
}
Symbol 1398 MovieClip Frame 40
_root.swordE = 1;
_root.bootsE = 31;
_root.pantsE = 30;
_root.weaponDamageE = 20;
_root.bodyE = 1;
_root.helmetE = 1;
_root.shieldE = 1;
_root.shield2E = 1;
_root.shieldhandE = 1;
Symbol 1398 MovieClip Frame 42
_root.swordE = 2;
_root.bootsE = 32;
_root.pantsE = 30;
_root.weaponDamageE = 20;
_root.bodyE = 2;
_root.helmetE = 2;
_root.shieldE = 2;
_root.shield2E = 1;
_root.shieldhandE = 1;
Symbol 1398 MovieClip Frame 44
_root.swordE = 1;
_root.bootsE = 33;
_root.pantsE = 32;
_root.weaponDamageE = 20;
_root.bodyE = 3;
_root.helmetE = 3;
_root.shieldE = 2;
_root.shield2E = 3;
_root.shieldhandE = 4;
Symbol 1398 MovieClip Frame 46
_root.swordE = 6;
_root.bootsE = 33;
_root.pantsE = 32;
_root.weaponDamageE = 20;
_root.bodyE = 3;
_root.helmetE = 5;
_root.shieldE = 1;
_root.shield2E = 3;
_root.shieldhandE = 4;
Symbol 1398 MovieClip Frame 48
_root.swordE = 4;
_root.bootsE = 34;
_root.pantsE = 32;
_root.weaponDamageE = 60;
_root.bodyE = 4;
_root.helmetE = 4;
_root.shieldE = 3;
_root.shield2E = 8;
_root.shieldhandE = 8;
Symbol 1398 MovieClip Frame 50
_root.swordE = 7;
_root.bootsE = 32;
_root.pantsE = 32;
_root.weaponDamageE = 60;
_root.bodyE = 5;
_root.helmetE = 6;
_root.shieldE = 4;
_root.shield2E = 3;
_root.shieldhandE = 4;
Symbol 1398 MovieClip Frame 52
_root.swordE = 4;
_root.bootsE = 33;
_root.pantsE = 32;
_root.weaponDamageE = 60;
_root.bodyE = 6;
_root.helmetE = 7;
_root.shieldE = 5;
_root.shield2E = 5;
_root.shieldhandE = 9;
Symbol 1398 MovieClip Frame 54
_root.swordE = 4;
_root.bootsE = 35;
_root.pantsE = 33;
_root.weaponDamageE = 60;
_root.bodyE = 7;
_root.helmetE = 8;
_root.shieldE = 6;
_root.shield2E = 5;
_root.shieldhandE = 9;
Symbol 1398 MovieClip Frame 56
_root.swordE = 10;
_root.bootsE = 35;
_root.pantsE = 33;
_root.weaponDamageE = 60;
_root.bodyE = 10;
_root.helmetE = 11;
_root.shieldE = 9;
_root.shield2E = 5;
_root.shieldhandE = 9;
Symbol 1398 MovieClip Frame 58
_root.swordE = 6;
_root.bootsE = 37;
_root.pantsE = 33;
_root.weaponDamageE = 60;
_root.bodyE = 8;
_root.helmetE = 9;
_root.shieldE = 7;
_root.shield2E = 7;
_root.shieldhandE = 12;
Symbol 1398 MovieClip Frame 60
_root.swordE = 9;
_root.bootsE = 36;
_root.pantsE = 34;
_root.weaponDamageE = 60;
_root.bodyE = 9;
_root.helmetE = 10;
_root.shieldE = 8;
_root.shield2E = 6;
_root.shieldhandE = 9;
Symbol 1398 MovieClip Frame 62
_root.swordE = 6;
_root.bootsE = 38;
_root.pantsE = 33;
_root.weaponDamageE = 60;
_root.bodyE = 8;
_root.helmetE = 12;
_root.shieldE = 10;
_root.shield2E = 8;
_root.shieldhandE = 8;
Symbol 1398 MovieClip Frame 64
_root.swordE = 6;
_root.bootsE = 38;
_root.pantsE = 35;
_root.weaponDamageE = 60;
_root.bodyE = 11;
_root.helmetE = 13;
_root.shieldE = 11;
_root.shield2E = 9;
_root.shieldhandE = 11;
Symbol 1398 MovieClip Frame 66
_root.swordE = 6;
_root.bootsE = 33;
_root.pantsE = 36;
_root.weaponDamageE = 60;
_root.bodyE = 12;
_root.helmetE = 14;
_root.shieldE = 13;
_root.shield2E = 3;
_root.shieldhandE = 4;
Symbol 1398 MovieClip Frame 68
_root.swordE = 8;
_root.bootsE = 39;
_root.pantsE = 37;
_root.weaponDamageE = 60;
_root.bodyE = 14;
_root.helmetE = 15;
_root.shieldE = 14;
_root.shield2E = 4;
_root.shieldhandE = 7;
Symbol 1398 MovieClip Frame 70
_root.swordE = 15;
_root.bootsE = 38;
_root.pantsE = 35;
_root.weaponDamageE = 60;
_root.bodyE = 20;
_root.helmetE = 16;
_root.shieldE = 12;
_root.shield2E = 1;
_root.shieldhandE = 1;
Symbol 1398 MovieClip Frame 72
_root.swordE = 12;
_root.bootsE = 40;
_root.pantsE = 38;
_root.weaponDamageE = 60;
_root.bodyE = 15;
_root.helmetE = 19;
_root.shieldE = 1;
_root.shield2E = 10;
_root.shieldhandE = 1;
Symbol 1398 MovieClip Frame 74
_root.swordE = 12;
_root.bootsE = 40;
_root.pantsE = 39;
_root.weaponDamageE = 60;
_root.bodyE = 16;
_root.helmetE = 18;
_root.shieldE = 1;
_root.shield2E = 11;
_root.shieldhandE = 14;
Symbol 1398 MovieClip Frame 76
_root.swordE = 15;
_root.bootsE = 41;
_root.pantsE = 39;
_root.weaponDamageE = 60;
_root.bodyE = 18;
_root.helmetE = 21;
_root.shieldE = 13;
_root.shield2E = 12;
_root.shieldhandE = 10;
Symbol 1398 MovieClip Frame 78
_root.swordE = 13;
_root.bootsE = 40;
_root.pantsE = 39;
_root.weaponDamageE = 60;
_root.bodyE = 17;
_root.helmetE = 20;
_root.shieldE = 1;
_root.shield2E = 12;
_root.shieldhandE = 14;
Symbol 1398 MovieClip Frame 80
_root.swordE = 14;
_root.bootsE = 41;
_root.pantsE = 35;
_root.weaponDamageE = 60;
_root.bodyE = 19;
_root.helmetE = 18;
_root.shieldE = 1;
_root.shield2E = 13;
_root.shieldhandE = 2;
Symbol 1398 MovieClip Frame 82
_root.swordE = 16;
_root.bootsE = 43;
_root.pantsE = 40;
_root.weaponDamageE = 60;
_root.bodyE = 21;
_root.helmetE = 22;
_root.shieldE = 1;
_root.shield2E = 14;
_root.shieldhandE = 16;
Symbol 1398 MovieClip Frame 84
_root.swordE = 16;
_root.bootsE = 42;
_root.pantsE = 40;
_root.weaponDamageE = 60;
_root.bodyE = 22;
_root.helmetE = 24;
_root.shieldE = 1;
_root.shield2E = 4;
_root.shieldhandE = 7;
Symbol 1398 MovieClip Frame 86
_root.swordE = 17;
_root.bootsE = 42;
_root.pantsE = 40;
_root.weaponDamageE = 60;
_root.bodyE = 23;
_root.helmetE = 25;
_root.shieldE = 15;
_root.shield2E = 1;
_root.shieldhandE = 1;
Symbol 1481 MovieClip Frame 1
stop();
Instance of Symbol 1409 MovieClip in Symbol 1481 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x + 0.3;
if (this._x >= 300) {
this._x = random(-410) - 310;
}
}
Instance of Symbol 1409 MovieClip in Symbol 1481 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x - 0.3;
if (this._x <= -300) {
this._x = random(410) + 310;
}
}
Instance of Symbol 1409 MovieClip in Symbol 1481 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x - 0.3;
if (this._x <= -300) {
this._x = random(410) + 310;
}
}
Instance of Symbol 1409 MovieClip in Symbol 1481 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x - 0.3;
if (this._x <= -300) {
this._x = random(410) + 310;
}
}
Instance of Symbol 1409 MovieClip in Symbol 1481 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x + 0.3;
if (this._x >= 300) {
this._x = random(-410) - 310;
}
}
Instance of Symbol 1409 MovieClip in Symbol 1481 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x + 0.3;
if (this._x >= 300) {
this._x = random(-410) - 310;
}
}
Instance of Symbol 1409 MovieClip in Symbol 1481 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x + 0.3;
if (this._x >= 300) {
this._x = random(-410) - 310;
}
}
Instance of Symbol 1409 MovieClip in Symbol 1481 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x - 0.3;
if (this._x <= -300) {
this._x = random(410) + 310;
}
}
Instance of Symbol 1412 MovieClip in Symbol 1481 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x - 0.1;
if (this._x <= -300) {
this._x = random(410) + 310;
}
}
Instance of Symbol 1415 MovieClip in Symbol 1481 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._x + 0.4;
if (this._x >= 300) {
this._x = random(-410) - 310;
}
}
Symbol 1481 MovieClip Frame 2
stop();
Symbol 1481 MovieClip Frame 4
stop();
Symbol 1481 MovieClip Frame 7
stop();
Instance of Symbol 1409 MovieClip in Symbol 1481 MovieClip Frame 7
onClipEvent (enterFrame) {
this._x = this._x - 0.3;
if (this._x <= -300) {
this._x = random(410) + 310;
}
}
Instance of Symbol 1409 MovieClip in Symbol 1481 MovieClip Frame 8
onClipEvent (enterFrame) {
this._x = this._x + 0.3;
if (this._x >= 300) {
this._x = random(-410) - 310;
}
}
Instance of Symbol 1409 MovieClip in Symbol 1481 MovieClip Frame 8
onClipEvent (enterFrame) {
this._x = this._x - 0.3;
if (this._x <= -300) {
this._x = random(410) + 310;
}
}
Instance of Symbol 1409 MovieClip in Symbol 1481 MovieClip Frame 8
onClipEvent (enterFrame) {
this._x = this._x - 0.3;
if (this._x <= -300) {
this._x = random(410) + 310;
}
}
Instance of Symbol 1409 MovieClip in Symbol 1481 MovieClip Frame 8
onClipEvent (enterFrame) {
this._x = this._x + 0.3;
if (this._x >= 300) {
this._x = random(-410) - 310;
}
}
Instance of Symbol 1409 MovieClip in Symbol 1481 MovieClip Frame 8
onClipEvent (enterFrame) {
this._x = this._x + 0.3;
if (this._x >= 300) {
this._x = random(-410) - 310;
}
}
Instance of Symbol 1409 MovieClip in Symbol 1481 MovieClip Frame 8
onClipEvent (enterFrame) {
this._x = this._x + 0.3;
if (this._x >= 300) {
this._x = random(-410) - 310;
}
}
Instance of Symbol 1409 MovieClip in Symbol 1481 MovieClip Frame 8
onClipEvent (enterFrame) {
this._x = this._x - 0.3;
if (this._x <= -300) {
this._x = random(410) + 310;
}
}
Instance of Symbol 1412 MovieClip in Symbol 1481 MovieClip Frame 8
onClipEvent (enterFrame) {
this._x = this._x - 0.1;
if (this._x <= -300) {
this._x = random(410) + 310;
}
}
Instance of Symbol 1415 MovieClip in Symbol 1481 MovieClip Frame 8
onClipEvent (enterFrame) {
this._x = this._x + 0.4;
if (this._x >= 300) {
this._x = random(-410) - 310;
}
}
Symbol 1481 MovieClip Frame 9
stop();
Instance of Symbol 1409 MovieClip in Symbol 1481 MovieClip Frame 9
onClipEvent (enterFrame) {
this._x = this._x - 0.3;
if (this._x <= -300) {
this._x = random(410) + 310;
}
}
Instance of Symbol 1409 MovieClip in Symbol 1481 MovieClip Frame 9
onClipEvent (enterFrame) {
this._x = this._x - 0.3;
if (this._x <= -300) {
this._x = random(410) + 310;
}
}
Symbol 1481 MovieClip Frame 10
stop();
Instance of Symbol 1409 MovieClip in Symbol 1481 MovieClip Frame 13
onClipEvent (enterFrame) {
this._x = this._x + 0.3;
if (this._x >= 300) {
this._x = random(-410) - 310;
}
}
Instance of Symbol 1409 MovieClip in Symbol 1481 MovieClip Frame 13
onClipEvent (enterFrame) {
this._x = this._x - 0.3;
if (this._x <= -300) {
this._x = random(410) + 310;
}
}
Instance of Symbol 1409 MovieClip in Symbol 1481 MovieClip Frame 13
onClipEvent (enterFrame) {
this._x = this._x - 0.3;
if (this._x <= -300) {
this._x = random(410) + 310;
}
}
Instance of Symbol 1409 MovieClip in Symbol 1481 MovieClip Frame 13
onClipEvent (enterFrame) {
this._x = this._x - 0.3;
if (this._x <= -300) {
this._x = random(410) + 310;
}
}
Instance of Symbol 1409 MovieClip in Symbol 1481 MovieClip Frame 13
onClipEvent (enterFrame) {
this._x = this._x + 0.3;
if (this._x >= 300) {
this._x = random(-410) - 310;
}
}
Instance of Symbol 1409 MovieClip in Symbol 1481 MovieClip Frame 13
onClipEvent (enterFrame) {
this._x = this._x + 0.3;
if (this._x >= 300) {
this._x = random(-410) - 310;
}
}
Instance of Symbol 1409 MovieClip in Symbol 1481 MovieClip Frame 13
onClipEvent (enterFrame) {
this._x = this._x + 0.3;
if (this._x >= 300) {
this._x = random(-410) - 310;
}
}
Instance of Symbol 1409 MovieClip in Symbol 1481 MovieClip Frame 13
onClipEvent (enterFrame) {
this._x = this._x - 0.3;
if (this._x <= -300) {
this._x = random(410) + 310;
}
}
Instance of Symbol 1412 MovieClip in Symbol 1481 MovieClip Frame 13
onClipEvent (enterFrame) {
this._x = this._x - 0.1;
if (this._x <= -300) {
this._x = random(410) + 310;
}
}
Instance of Symbol 1415 MovieClip in Symbol 1481 MovieClip Frame 13
onClipEvent (enterFrame) {
this._x = this._x + 0.4;
if (this._x >= 300) {
this._x = random(-410) - 310;
}
}
Instance of Symbol 1409 MovieClip in Symbol 1481 MovieClip Frame 15
onClipEvent (enterFrame) {
this._x = this._x + 0.3;
if (this._x >= 300) {
this._x = random(-410) - 310;
}
}
Instance of Symbol 1409 MovieClip in Symbol 1481 MovieClip Frame 15
onClipEvent (enterFrame) {
this._x = this._x - 0.3;
if (this._x <= -300) {
this._x = random(410) + 310;
}
}
Instance of Symbol 1409 MovieClip in Symbol 1481 MovieClip Frame 15
onClipEvent (enterFrame) {
this._x = this._x - 0.3;
if (this._x <= -300) {
this._x = random(410) + 310;
}
}
Instance of Symbol 1409 MovieClip in Symbol 1481 MovieClip Frame 15
onClipEvent (enterFrame) {
this._x = this._x - 0.3;
if (this._x <= -300) {
this._x = random(410) + 310;
}
}
Instance of Symbol 1409 MovieClip in Symbol 1481 MovieClip Frame 15
onClipEvent (enterFrame) {
this._x = this._x + 0.3;
if (this._x >= 300) {
this._x = random(-410) - 310;
}
}
Instance of Symbol 1409 MovieClip in Symbol 1481 MovieClip Frame 15
onClipEvent (enterFrame) {
this._x = this._x + 0.3;
if (this._x >= 300) {
this._x = random(-410) - 310;
}
}
Instance of Symbol 1409 MovieClip in Symbol 1481 MovieClip Frame 15
onClipEvent (enterFrame) {
this._x = this._x + 0.3;
if (this._x >= 300) {
this._x = random(-410) - 310;
}
}
Instance of Symbol 1409 MovieClip in Symbol 1481 MovieClip Frame 15
onClipEvent (enterFrame) {
this._x = this._x - 0.3;
if (this._x <= -300) {
this._x = random(410) + 310;
}
}
Instance of Symbol 1412 MovieClip in Symbol 1481 MovieClip Frame 15
onClipEvent (enterFrame) {
this._x = this._x - 0.1;
if (this._x <= -300) {
this._x = random(410) + 310;
}
}
Instance of Symbol 1415 MovieClip in Symbol 1481 MovieClip Frame 15
onClipEvent (enterFrame) {
this._x = this._x + 0.4;
if (this._x >= 300) {
this._x = random(-410) - 310;
}
}
Symbol 1491 MovieClip Frame 1
stop();
Symbol 1491 MovieClip Frame 2
stop();
Symbol 1494 MovieClip Frame 1
stop();
Instance of Symbol 616 MovieClip "HIT" in Symbol 1494 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 599 MovieClip in Symbol 1495 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.helmet));
}
Instance of Symbol 225 MovieClip in Symbol 1496 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pants));
}
Instance of Symbol 266 MovieClip in Symbol 1496 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.boots));
}
Instance of Symbol 225 MovieClip in Symbol 1496 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pants));
}
Instance of Symbol 225 MovieClip in Symbol 1496 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pants));
}
Instance of Symbol 225 MovieClip in Symbol 1496 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pants));
}
Instance of Symbol 266 MovieClip in Symbol 1496 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.boots));
}
Instance of Symbol 335 MovieClip in Symbol 1496 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2));
}
Instance of Symbol 408 MovieClip in Symbol 1496 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.sword));
}
Instance of Symbol 457 MovieClip in Symbol 1496 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.body));
}
Instance of Symbol 599 MovieClip in Symbol 1496 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.helmet));
}
Instance of Symbol 335 MovieClip in Symbol 1496 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2));
}
Instance of Symbol 525 MovieClip in Symbol 1496 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield));
}
Symbol 1496 MovieClip Frame 8
stop();
Instance of Symbol 225 MovieClip in Symbol 1496 MovieClip Frame 8
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pants));
}
Instance of Symbol 225 MovieClip in Symbol 1496 MovieClip Frame 8
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pants));
}
Instance of Symbol 225 MovieClip in Symbol 1498 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pants));
}
Instance of Symbol 225 MovieClip in Symbol 1498 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pants));
}
Instance of Symbol 266 MovieClip in Symbol 1498 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.boots));
}
Instance of Symbol 225 MovieClip in Symbol 1498 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pants));
}
Instance of Symbol 266 MovieClip in Symbol 1498 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.boots));
}
Instance of Symbol 335 MovieClip in Symbol 1498 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2));
}
Instance of Symbol 408 MovieClip in Symbol 1498 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.sword));
}
Instance of Symbol 457 MovieClip in Symbol 1498 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.body));
}
Instance of Symbol 335 MovieClip in Symbol 1498 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2));
}
Instance of Symbol 525 MovieClip in Symbol 1498 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield));
}
Symbol 1498 MovieClip Frame 4
stop();
Symbol 1498 MovieClip Frame 20
_root.canAttack = false;
Instance of Symbol 225 MovieClip in Symbol 1498 MovieClip Frame 20
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pants));
}
Instance of Symbol 225 MovieClip in Symbol 1498 MovieClip Frame 20
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pants));
}
Instance of Symbol 266 MovieClip in Symbol 1498 MovieClip Frame 20
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.boots));
}
Instance of Symbol 225 MovieClip in Symbol 1498 MovieClip Frame 20
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pants));
}
Instance of Symbol 266 MovieClip in Symbol 1498 MovieClip Frame 20
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.boots));
}
Instance of Symbol 335 MovieClip in Symbol 1498 MovieClip Frame 20
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2));
}
Instance of Symbol 408 MovieClip in Symbol 1498 MovieClip Frame 20
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.sword));
}
Instance of Symbol 457 MovieClip in Symbol 1498 MovieClip Frame 20
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.body));
}
Instance of Symbol 599 MovieClip in Symbol 1498 MovieClip Frame 20
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.helmet));
}
Instance of Symbol 335 MovieClip in Symbol 1498 MovieClip Frame 20
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2));
}
Instance of Symbol 525 MovieClip in Symbol 1498 MovieClip Frame 20
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield));
}
Instance of Symbol 266 MovieClip in Symbol 1498 MovieClip Frame 21
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.boots));
}
Instance of Symbol 225 MovieClip in Symbol 1498 MovieClip Frame 22
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pants));
}
Instance of Symbol 603 MovieClip "HIT" in Symbol 1498 MovieClip Frame 22
onClipEvent (load) {
this._visible = false;
this.gotoAndStop((this._currentframe = _root.sword));
}
Instance of Symbol 225 MovieClip in Symbol 1498 MovieClip Frame 30
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pants));
}
Symbol 1498 MovieClip Frame 32
gotoAndPlay (1);
Symbol 1498 MovieClip Frame 40
_root.canAttack = false;
Instance of Symbol 225 MovieClip in Symbol 1498 MovieClip Frame 40
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pants));
}
Instance of Symbol 225 MovieClip in Symbol 1498 MovieClip Frame 40
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pants));
}
Instance of Symbol 266 MovieClip in Symbol 1498 MovieClip Frame 40
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.boots));
}
Instance of Symbol 225 MovieClip in Symbol 1498 MovieClip Frame 40
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pants));
}
Instance of Symbol 266 MovieClip in Symbol 1498 MovieClip Frame 40
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.boots));
}
Instance of Symbol 335 MovieClip in Symbol 1498 MovieClip Frame 40
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2));
}
Instance of Symbol 408 MovieClip in Symbol 1498 MovieClip Frame 40
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.sword));
}
Instance of Symbol 457 MovieClip in Symbol 1498 MovieClip Frame 40
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.body));
}
Instance of Symbol 599 MovieClip in Symbol 1498 MovieClip Frame 40
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.helmet));
}
Instance of Symbol 335 MovieClip in Symbol 1498 MovieClip Frame 40
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2));
}
Instance of Symbol 525 MovieClip in Symbol 1498 MovieClip Frame 40
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield));
}
Instance of Symbol 335 MovieClip in Symbol 1498 MovieClip Frame 41
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2));
}
Instance of Symbol 525 MovieClip in Symbol 1498 MovieClip Frame 41
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield));
}
Instance of Symbol 599 MovieClip in Symbol 1498 MovieClip Frame 41
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.helmet));
}
Instance of Symbol 225 MovieClip in Symbol 1498 MovieClip Frame 41
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pants));
}
Instance of Symbol 266 MovieClip in Symbol 1498 MovieClip Frame 41
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.boots));
}
Instance of Symbol 603 MovieClip "HIT" in Symbol 1498 MovieClip Frame 43
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 225 MovieClip in Symbol 1498 MovieClip Frame 49
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pants));
}
Instance of Symbol 225 MovieClip in Symbol 1499 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pants));
}
Instance of Symbol 266 MovieClip in Symbol 1499 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.boots));
}
Instance of Symbol 225 MovieClip in Symbol 1499 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.pants));
}
Instance of Symbol 266 MovieClip in Symbol 1499 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.boots));
}
Instance of Symbol 335 MovieClip in Symbol 1499 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2));
}
Instance of Symbol 408 MovieClip in Symbol 1499 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.sword));
}
Instance of Symbol 457 MovieClip in Symbol 1499 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.body));
}
Instance of Symbol 335 MovieClip in Symbol 1499 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2));
}
Instance of Symbol 525 MovieClip in Symbol 1499 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield));
}
Instance of Symbol 599 MovieClip in Symbol 1499 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.helmet));
}
Symbol 1499 MovieClip Frame 15
_root.hero.HIT.gotoAndStop(2);
_root.gold = _root.gold - 1000;
Symbol 1499 MovieClip Frame 43
_root.levelEnd.gotoAndPlay(200);
stop();
Symbol 1500 MovieClip Frame 1
stop();
_parent.HIT.gotoAndStop(1);
Instance of Symbol 269 MovieClip "legs" in Symbol 1500 MovieClip Frame 1
onClipEvent (load) {
this._visible = true;
}
Instance of Symbol 613 MovieClip "hero2" in Symbol 1500 MovieClip Frame 1
onClipEvent (enterFrame) {
if (((!Key.isDown(65)) and (_root.canAttack == true)) and (!Key.isDown(83))) {
canAttack2 = true;
}
if (((Key.isDown(65) and (canAttack2 == true)) and (_root.standAttack == true)) and ((!_root.ninjasword) == true)) {
gotoAndPlay(_root.attackNum);
canAttack2 = false;
}
if (((Key.isDown(65) and (_root.runAttack == true)) and (canAttack2 == true)) and (_root.spear == true)) {
this.gotoAndPlay(270);
canAttack2 = false;
}
if ((Key.isDown(65) and (_root.runAttack == true)) and (canAttack2 == true)) {
gotoAndPlay(_root.attackNum2);
canAttack2 = false;
}
if (Key.isDown(83) and (canAttack2 == true)) {
gotoAndPlay(_root.attackNum3);
canAttack2 = false;
}
if (((Key.isDown(65) and (canAttack2 == true)) and (_root.standAttack == true)) and (_root.ninjasword == true)) {
gotoAndPlay(_root.attackNum5);
canAttack2 = false;
}
if ((Key.isDown(68) and (canAttack2 == true)) and ((!_root.shieldDead) == true)) {
gotoAndPlay (320);
canAttack2 = false;
} else if (Key.isDown(68) and (_root.shieldDead == true)) {
gotoAndPlay (1);
}
}
Instance of Symbol 616 MovieClip "HIT" in Symbol 1500 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 1500 MovieClip Frame 3
HIT.gotoAndStop(1);
Instance of Symbol 1498 MovieClip "jumpy" in Symbol 1500 MovieClip Frame 3
onClipEvent (enterFrame) {
if ((!Key.isDown(65)) and (_root.canAttack == true)) {
canAttack2 = true;
}
if (Key.isDown(65) and (canAttack2 == true)) {
gotoAndPlay (20);
_root.jumpAttacked = true;
canAttack2 = false;
}
if (Key.isDown(83) and (canAttack2 == true)) {
gotoAndPlay (40);
canAttack2 = false;
}
if (Key.isDown(38) and (_root.jump2 == true)) {
this.gotoAndStop(10);
}
}
onClipEvent (load) {
_root.canAttack = true;
}
Symbol 1500 MovieClip Frame 4
_root.dead = true;
_parent.HIT.gotoAndStop(1);
Symbol 1500 MovieClip Frame 5
_parent.HIT.gotoAndStop(1);
Instance of Symbol 1343 MovieClip "sit" in Symbol 1500 MovieClip Frame 5
onClipEvent (load) {
canAttack2 = true;
}
onClipEvent (enterFrame) {
if (((!Key.isDown(65)) and (_root.canAttack == true)) and (!Key.isDown(83))) {
canAttack2 = true;
}
if (Key.isDown(65) and (canAttack2 == true)) {
gotoAndPlay(_root.attackNum4);
canAttack2 = false;
}
if (Key.isDown(83) and (canAttack2 == true)) {
gotoAndPlay (70);
canAttack2 = false;
}
}
Instance of Symbol 525 MovieClip "infrontHand" in Symbol 1500 MovieClip Frame 5
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield));
}
Symbol 1501 MovieClip Frame 1501
gotoAndPlay (2);
Symbol 1502 MovieClip Frame 1
stop();
Symbol 1502 MovieClip Frame 2
_root.hero._visible = false;
_root.hero.HIT.gotoAndStop(2);
_root.menu2.armour.HP.gotoAndStop(_root.menu2.armour.HP._currentframe + _root.HITMinusArmour);
_root.attachMovie("bloodAttach", "bloodAttach", 20, {_x:_root.hero._x, _y:_root.hero._y - 50});
Symbol 1502 MovieClip Frame 5
_root.hero._visible = true;
_root.hero.HIT.gotoAndStop(2);
Symbol 1502 MovieClip Frame 8
_root.hero._visible = false;
_root.hero.HIT.gotoAndStop(2);
Symbol 1502 MovieClip Frame 11
_root.hero._visible = true;
_root.hero.HIT.gotoAndStop(2);
Symbol 1502 MovieClip Frame 14
_root.hero._visible = true;
_root.hero.HIT.gotoAndStop(2);
Symbol 1502 MovieClip Frame 17
_root.hero._visible = false;
_root.hero.HIT.gotoAndStop(2);
Symbol 1502 MovieClip Frame 20
_root.hero._visible = true;
_root.hero.HIT.gotoAndStop(2);
Symbol 1502 MovieClip Frame 23
_root.hero._visible = false;
_root.hero.HIT.gotoAndStop(2);
Symbol 1502 MovieClip Frame 26
_root.hero._visible = true;
_root.hero.HIT.gotoAndStop(2);
Symbol 1502 MovieClip Frame 29
_root.hero._visible = true;
_root.hero.HIT.gotoAndStop(2);
Symbol 1502 MovieClip Frame 32
_root.hero._visible = false;
_root.hero.HIT.gotoAndStop(2);
Symbol 1502 MovieClip Frame 35
_root.hero._visible = true;
_root.hero.HIT.gotoAndStop(2);
Symbol 1502 MovieClip Frame 38
_root.hero._visible = false;
_root.hero.HIT.gotoAndStop(2);
Symbol 1502 MovieClip Frame 41
_root.hero._visible = true;
_root.hero.HIT.gotoAndStop(2);
Symbol 1502 MovieClip Frame 44
_root.hero._visible = true;
_root.hero.HIT.gotoAndStop(2);
Symbol 1502 MovieClip Frame 47
_root.hero._visible = false;
_root.hero.HIT.gotoAndStop(2);
Symbol 1502 MovieClip Frame 50
_root.hero._visible = true;
_root.hero.HIT.gotoAndStop(2);
Symbol 1502 MovieClip Frame 53
_root.hero._visible = false;
_root.hero.HIT.gotoAndStop(2);
Symbol 1502 MovieClip Frame 56
_root.hero._visible = true;
_root.hero.HIT.gotoAndStop(2);
Symbol 1502 MovieClip Frame 59
_root.hero._visible = true;
_root.hero.HIT.gotoAndStop(1);
gotoAndStop (1);
Symbol 1503 MovieClip Frame 1
_root.attackNum = 50;
_root.attackNum2 = 140;
_root.attackNum3 = 250;
_root.attackNum4 = 50;
_root.attackNum5 = 300;
_root.livePosition = -500;
_root.enemyRandomAttack = 160;
Symbol 1503 MovieClip Frame 2
_root.attackNum = 70;
_root.attackNum2 = 170;
_root.livePosition = -620;
_root.enemyRandomAttack = 140;
Symbol 1503 MovieClip Frame 3
_root.attackNum = 50;
_root.attackNum2 = 170;
_root.enemyRandomAttack = 110;
Symbol 1503 MovieClip Frame 4
_root.attackNum = 50;
_root.attackNum3 = 230;
_root.attackNum4 = 90;
_root.attackNum5 = 50;
_root.livePosition = 500;
_root.enemyRandomAttack = 80;
Symbol 1503 MovieClip Frame 5
_root.attackNum = 90;
_root.enemyRandomAttack = 160;
Symbol 1503 MovieClip Frame 6
_root.attackNum = 110;
_root.attackNum5 = 70;
_root.livePosition = -520;
_root.enemyRandomAttack = 50;
Symbol 1504 MovieClip Frame 1
_root.attackNum = 200;
_root.attackNum2 = 200;
_root.attackNum3 = 250;
Symbol 1504 MovieClip Frame 2
_root.attackNum3 = 230;
Symbol 1505 MovieClip Frame 1
_root.bagnum = 1;
stop();
Symbol 1505 MovieClip Frame 2
_root.bagnum = 2;
Symbol 1510 MovieClip Frame 1
stop();
_root.heroDead = false;
_root.shieldDead = false;
Symbol 1510 MovieClip Frame 6
stop();
_root.heroDead = false;
Symbol 1510 MovieClip Frame 202
_root.shieldDead == true;
stop();
Symbol 1510 MovieClip Frame 203
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 204
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 205
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 206
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 207
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 208
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 209
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 210
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 211
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 212
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 213
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 214
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 215
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 216
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 217
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 218
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 219
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 220
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 221
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 222
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 223
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 224
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 225
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 226
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 227
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 228
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 229
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 230
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 231
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 232
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 233
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 234
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 235
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 236
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 237
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 238
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 239
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 240
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 241
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 242
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 243
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 244
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 245
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 246
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 247
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 248
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 249
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 250
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 251
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 252
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 253
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 254
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 255
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 256
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 257
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 258
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 259
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 260
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 261
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 262
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 263
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 264
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 265
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 266
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 267
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 268
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 269
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 270
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 271
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 272
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 273
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 274
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 275
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 276
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 277
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 278
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 279
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 280
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 281
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 282
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 283
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 284
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 285
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 286
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 287
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 288
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 289
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 290
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 291
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 292
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 293
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 294
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 295
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 296
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 297
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 298
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 299
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 300
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 301
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 302
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 303
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 304
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 305
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 306
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 307
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 308
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 309
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 310
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 311
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 312
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 313
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 314
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 315
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 316
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 317
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 318
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 319
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 320
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 321
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 322
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 323
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 324
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 325
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 326
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 327
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 328
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 329
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 330
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 331
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 332
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 333
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 334
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 335
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 336
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 337
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 338
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 339
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 340
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 341
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 342
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 343
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 344
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 345
_root.shieldDead = true;
stop();
Symbol 1510 MovieClip Frame 346
_root.shieldDead = true;
stop();
Symbol 1511 MovieClip Frame 1
stop();
_root.heroDead = false;
Symbol 1511 MovieClip Frame 50
stop();
_root.heroDead = false;
Symbol 1511 MovieClip Frame 202
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 203
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 204
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 205
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 206
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 207
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 208
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 209
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 210
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 211
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 212
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 213
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 214
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 215
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 216
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 217
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 218
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 219
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 220
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 221
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 222
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 223
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 224
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 225
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 226
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 227
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 228
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 229
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 230
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 231
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 232
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 233
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 234
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 235
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 236
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 237
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 238
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 239
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 240
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 241
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 242
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 243
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 244
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 245
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 246
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 247
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 248
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 249
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 250
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 251
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 252
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 253
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 254
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 255
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 256
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 257
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 258
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 259
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 260
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 261
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 262
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 263
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 264
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 265
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 266
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 267
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 268
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 269
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 270
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 271
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 272
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 273
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 274
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 275
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 276
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 277
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 278
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 279
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 280
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 281
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 282
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 283
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 284
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 285
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 286
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 287
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 288
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 289
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 290
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 291
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 292
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 293
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 294
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 295
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 296
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 297
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 298
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 299
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 300
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 301
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 302
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 303
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 304
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 305
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 306
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 307
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 308
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 309
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 310
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 311
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 312
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 313
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 314
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 315
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 316
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 317
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 318
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 319
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 320
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 321
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 322
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 323
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 324
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 325
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 326
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 327
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 328
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 329
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 330
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 331
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 332
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 333
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 334
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 335
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 336
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 337
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 338
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 339
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 340
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 341
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 342
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 343
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 344
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 345
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 346
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 347
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 348
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 349
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 350
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 351
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 352
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 353
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 354
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 355
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 356
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 357
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 358
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 359
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 360
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 361
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 362
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 363
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 364
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 365
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 366
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 367
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 368
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 369
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 370
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 371
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 372
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 373
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 374
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 375
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 376
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 377
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 378
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 379
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 380
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 381
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 382
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 383
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 384
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 385
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 386
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 387
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 388
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 389
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 390
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 391
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 392
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 393
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 394
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 395
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 396
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 397
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 398
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 399
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 400
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 401
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 402
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 403
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 404
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 405
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 406
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 407
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 408
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 409
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 410
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 411
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 412
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 413
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 414
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 415
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 416
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 417
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 418
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 419
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 420
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 421
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 422
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 423
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 424
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 425
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 426
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 427
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 428
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 429
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 430
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 431
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 432
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 433
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 434
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 435
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 436
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 437
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 438
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 439
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 440
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 441
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 442
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 443
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 444
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 445
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 446
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 447
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 448
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 449
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 450
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 451
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 452
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 453
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 454
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 455
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 456
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 457
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 458
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 459
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 460
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 461
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 462
stop();
_root.heroDead = true;
Symbol 1511 MovieClip Frame 463
stop();
_root.heroDead = true;
Instance of Symbol 1511 MovieClip "HP" in Symbol 1514 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(50);
}
Symbol 1519 MovieClip Frame 1
stop();
Symbol 1519 MovieClip Frame 13
_root.gotArrows = false;
_root.changeBow = true;
Symbol 1525 MovieClip Frame 1
stop();
wkt = new Date();
detik = wkt.getSeconds();
fps = 0;
cek = 0;
detiklama = 0;
this.onEnterFrame = function () {
this.gotoAndStop(type);
detiklama = detik;
wkt = new Date();
detik = wkt.getSeconds();
if (detiklama == detik) {
cek++;
} else {
persen = Math.round((cek / myFPS) * 100);
fps = cek;
cek = 1;
}
};
Symbol 1528 MovieClip Frame 20
stop();
onEnterFrame = function () {
if (_root.gold) {
play();
}
};
Symbol 1532 Button
on (release) {
play();
}
Symbol 1536 Button
on (release) {
_root.gotoAndStop(30);
removeMovieClip(_root.menu2);
}
Symbol 1539 Button
on (release) {
_root.gotoAndStop(25);
removeMovieClip(_root.menu2);
}
Symbol 1542 Button
on (release) {
getURL ("http://www.freeonlinegames.com/?journeytotheeast", "_blank");
}
Symbol 1545 Button
on (release) {
getURL ("http://www.freegamesforyourwebsite.com/?journeytotheeast", "_blank");
}
Symbol 1546 MovieClip Frame 1
stop();
Symbol 1546 MovieClip Frame 25
stop();
Instance of Symbol 335 MovieClip in Symbol 1547 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2));
}
Instance of Symbol 457 MovieClip in Symbol 1547 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.body));
}
Instance of Symbol 335 MovieClip in Symbol 1547 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.shield2));
}
Instance of Symbol 599 MovieClip in Symbol 1547 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop((this._currentframe = _root.helmet));
}
Instance of Symbol 1519 MovieClip "arrows" in Symbol 1547 MovieClip Frame 1
onClipEvent (load) {
if (_root.swords == false) {
this._visible = true;
} else {
this._visible = false;
}
this.gotoAndStop(_root.arrowsNum);
}
Instance of Symbol 1525 MovieClip in Symbol 1547 MovieClip Frame 1
onClipEvent (load) {
myFPS = 33;
type = 1;
}
Instance of Symbol 1528 MovieClip in Symbol 1547 MovieClip Frame 1
onClipEvent (load) {
this.temp_gold = _root.gold;
}
onClipEvent (enterFrame) {
if (_root.gold > this.temp_gold) {
this.temp_gold = this.temp_gold + Math.ceil((_root.gold - this.temp_gold) / 5);
}
}
Symbol 1549 MovieClip Frame 1
stop();
Instance of Symbol 1548 MovieClip in Symbol 1549 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 1549 MovieClip Frame 2
_root.passlevel = true;
Symbol 1549 MovieClip Frame 181
_root.gotoAndStop(_root._currentframe + 1);
Symbol 1549 MovieClip Frame 200
removeMovieClip(_root.menu2);
Symbol 1549 MovieClip Frame 227
_root.gotoAndStop(30);
_root.gold = _root.gold + 800;
_root.heroDead = false;
Symbol 1550 MovieClip Frame 1
_root.attackNum = 50;
_root.attackNum2 = 140;
_root.attackNum3 = 250;
_root.attackNum4 = 50;
_root.attackNum5 = 300;
_root.livePosition = -500;
_root.enemyRandomAttack = 50;
Symbol 1550 MovieClip Frame 2
_root.attackNum = 70;
_root.attackNum2 = 170;
_root.livePosition = -620;
_root.enemyRandomAttack = 80;
Symbol 1550 MovieClip Frame 3
_root.attackNum = 50;
_root.attackNum2 = 170;
_root.enemyRandomAttack = 110;
Symbol 1550 MovieClip Frame 4
_root.attackNum = 50;
_root.attackNum3 = 230;
_root.attackNum4 = 90;
_root.attackNum5 = 50;
_root.livePosition = 500;
_root.enemyRandomAttack = 80;
Symbol 1550 MovieClip Frame 5
_root.attackNum = 90;
_root.enemyRandomAttack = 140;
Symbol 1550 MovieClip Frame 6
_root.attackNum = 110;
_root.attackNum5 = 70;
_root.livePosition = -520;
_root.enemyRandomAttack = 50;
Symbol 1551 MovieClip Frame 1
_root.bagnum = 1;
stop();
Symbol 1551 MovieClip Frame 2
_root.bagnum = 2;
Symbol 1558 MovieClip Frame 1
stop();
Instance of Symbol 616 MovieClip "HIT" in Symbol 1558 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 1563 MovieClip Frame 1
_root.attackNum = 50;
_root.attackNum2 = 140;
_root.attackNum3 = 250;
_root.attackNum4 = 50;
_root.attackNum5 = 300;
_root.livePosition = -500;
_root.enemyRandomAttack = 160;
Symbol 1563 MovieClip Frame 2
_root.attackNum = 70;
_root.attackNum2 = 170;
_root.livePosition = -620;
_root.enemyRandomAttack = 160;
Symbol 1563 MovieClip Frame 3
_root.attackNum = 50;
_root.attackNum2 = 170;
_root.enemyRandomAttack = 160;
Symbol 1563 MovieClip Frame 4
_root.attackNum = 50;
_root.attackNum3 = 230;
_root.attackNum4 = 90;
_root.attackNum5 = 50;
_root.livePosition = 500;
_root.enemyRandomAttack = 160;
Symbol 1563 MovieClip Frame 5
_root.attackNum = 90;
_root.enemyRandomAttack = 160;
Symbol 1563 MovieClip Frame 6
_root.attackNum = 110;
_root.attackNum5 = 70;
_root.livePosition = -520;
_root.enemyRandomAttack = 50;
Symbol 1564 MovieClip Frame 1
_root.bagnum = 1;
stop();
Symbol 1564 MovieClip Frame 2
_root.bagnum = 2;
Symbol 1565 MovieClip Frame 1
_root.attackNum = 50;
_root.attackNum2 = 140;
_root.attackNum3 = 250;
_root.attackNum4 = 50;
_root.attackNum5 = 300;
_root.livePosition = -500;
_root.enemyRandomAttack = 220;
Symbol 1565 MovieClip Frame 2
_root.attackNum = 70;
_root.attackNum2 = 170;
_root.livePosition = -620;
_root.enemyRandomAttack = 220;
Symbol 1565 MovieClip Frame 3
_root.attackNum = 50;
_root.attackNum2 = 170;
_root.enemyRandomAttack = 220;
Symbol 1565 MovieClip Frame 4
_root.attackNum = 50;
_root.attackNum3 = 230;
_root.attackNum4 = 90;
_root.attackNum5 = 50;
_root.livePosition = 500;
_root.enemyRandomAttack = 160;
Symbol 1565 MovieClip Frame 5
_root.attackNum = 90;
_root.enemyRandomAttack = 220;
Symbol 1565 MovieClip Frame 6
_root.attackNum = 110;
_root.attackNum5 = 70;
_root.livePosition = -520;
_root.enemyRandomAttack = 50;
Symbol 1566 MovieClip Frame 1
_root.bagnum = 1;
stop();
Symbol 1566 MovieClip Frame 2
_root.bagnum = 2;
Symbol 1569 MovieClip Frame 1
stop();
Instance of Symbol 616 MovieClip "HIT" in Symbol 1569 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 1570 MovieClip Frame 1
_root.attackNum = 50;
_root.attackNum2 = 140;
_root.attackNum3 = 250;
_root.attackNum4 = 50;
_root.attackNum5 = 300;
_root.livePosition = -500;
_root.enemyRandomAttack = 50;
Symbol 1570 MovieClip Frame 2
_root.attackNum = 70;
_root.attackNum2 = 170;
_root.livePosition = -620;
_root.enemyRandomAttack = 140;
Symbol 1570 MovieClip Frame 3
_root.attackNum = 50;
_root.attackNum2 = 170;
_root.enemyRandomAttack = 110;
Symbol 1570 MovieClip Frame 4
_root.attackNum = 50;
_root.attackNum3 = 230;
_root.attackNum4 = 90;
_root.attackNum5 = 50;
_root.livePosition = 500;
_root.enemyRandomAttack = 80;
Symbol 1570 MovieClip Frame 5
_root.attackNum = 90;
_root.enemyRandomAttack = 80;
Symbol 1570 MovieClip Frame 6
_root.attackNum = 110;
_root.attackNum5 = 70;
_root.livePosition = -520;
_root.enemyRandomAttack = 50;
Symbol 1571 MovieClip Frame 1
_root.bagnum = 1;
stop();
Symbol 1571 MovieClip Frame 2
_root.bagnum = 2;
Symbol 1572 MovieClip Frame 1
_root.attackNum = 50;
_root.attackNum2 = 140;
_root.attackNum3 = 250;
_root.attackNum4 = 50;
_root.attackNum5 = 300;
_root.livePosition = -500;
_root.enemyRandomAttack = 300;
Symbol 1572 MovieClip Frame 2
_root.attackNum = 70;
_root.attackNum2 = 170;
_root.livePosition = -620;
_root.enemyRandomAttack = 300;
Symbol 1572 MovieClip Frame 3
_root.attackNum = 50;
_root.attackNum2 = 170;
_root.enemyRandomAttack = 50;
Symbol 1572 MovieClip Frame 4
_root.attackNum = 50;
_root.attackNum3 = 230;
_root.attackNum4 = 90;
_root.attackNum5 = 50;
_root.livePosition = 500;
_root.enemyRandomAttack = 80;
Symbol 1572 MovieClip Frame 5
_root.attackNum = 90;
_root.enemyRandomAttack = 300;
Symbol 1572 MovieClip Frame 6
_root.attackNum = 110;
_root.attackNum5 = 70;
_root.livePosition = -520;
_root.enemyRandomAttack = 300;
Symbol 1573 MovieClip Frame 1
_root.bagnum = 1;
stop();
Symbol 1573 MovieClip Frame 2
_root.bagnum = 2;
Symbol 1576 MovieClip Frame 1
stop();
Instance of Symbol 616 MovieClip "HIT" in Symbol 1576 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 1580 MovieClip Frame 1
stop();
Instance of Symbol 616 MovieClip "HIT" in Symbol 1580 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 1584 MovieClip Frame 1
stop();
Instance of Symbol 616 MovieClip "HIT" in Symbol 1584 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 1585 MovieClip Frame 1
_root.attackNum = 50;
_root.attackNum2 = 140;
_root.attackNum3 = 250;
_root.attackNum4 = 50;
_root.attackNum5 = 300;
_root.livePosition = -500;
_root.enemyRandomAttack = 370;
Symbol 1585 MovieClip Frame 2
_root.attackNum = 70;
_root.attackNum2 = 170;
_root.livePosition = -620;
_root.enemyRandomAttack = 370;
Symbol 1585 MovieClip Frame 3
_root.attackNum = 50;
_root.attackNum2 = 170;
_root.enemyRandomAttack = 110;
Symbol 1585 MovieClip Frame 4
_root.attackNum = 50;
_root.attackNum3 = 230;
_root.attackNum4 = 90;
_root.attackNum5 = 50;
_root.livePosition = 500;
_root.enemyRandomAttack = 80;
Symbol 1585 MovieClip Frame 5
_root.attackNum = 90;
_root.enemyRandomAttack = 370;
Symbol 1585 MovieClip Frame 6
_root.attackNum = 110;
_root.attackNum5 = 70;
_root.livePosition = -520;
_root.enemyRandomAttack = 370;
Symbol 1585 MovieClip Frame 7
_root.attackNum = 110;
_root.attackNum5 = 70;
_root.livePosition = -520;
_root.enemyRandomAttack = 140;
Symbol 1586 MovieClip Frame 1
_root.bagnum = 1;
stop();
Symbol 1586 MovieClip Frame 2
_root.bagnum = 2;
Symbol 1590 Button
on (release) {
_root.gotoAndStop(25);
}
Symbol 1595 Button
on (release) {
getURL ("http://www.freeonlinegames.com/?journeytotheeast", "_blank");
}
Symbol 1596 Button
on (release) {
getURL ("http://www.freegamesforyourwebsite.com/?journeytotheeast", "_blank");
}
Symbol 1611 Button
on (press) {
sboard.dir = "up";
}
on (release) {
sboard.dir = "stop";
}
Symbol 1612 Button
on (press) {
sboard.dir = "down";
}
on (release) {
sboard.dir = "stop";
}
Symbol 1619 MovieClip Frame 1
stop();
Symbol 1619 MovieClip Frame 2
stop();
Symbol 1629 MovieClip [TMP6pbk6uzm9i] Frame 1
var arrScore = new Array();
mcScoreboard.sboard.dir = "stop";
mcScoreboard.sboard.mcScoreHolder.mcScore._visible = false;
mcLabel._visible = false;
var main = this;
xmlPlayer = new XML();
xmlPlayer.ignoreWhite = true;
xmlPlayer.onLoad = function (success) {
if (success) {
myPlayer = xmlPlayer.firstChild.childNodes;
ctr2 = 0;
while (ctr2 < myPlayer.length) {
thisPlayer = main.mcScoreboard.sboard.mcScoreHolder.mcScore.duplicateMovieClip("mcScore" + ctr2, ctr2);
thisPlayer._y = ctr2 * thisPlayer._height;
thisPlayer._visible = true;
if ((ctr2 % 2) > 0) {
thisPlayer.gotoAndStop(2);
}
thisPlayer.txtNumber.text = (ctr2 + 1) + ")";
thisPlayer.txtNickname.text = myPlayer[ctr2].attributes.player;
thisPlayer.txtScore.text = myPlayer[ctr2].attributes.score;
ctr2++;
}
main.mcScoreboard.mcLoading._visible = false;
main.mcScoreboard.sboard.mcScoreHolder.item = myPlayer.length;
main.mcScoreboard.sboard.mcScoreHolder.speedy = 0;
main.mcScoreboard.sboard.mcScoreHolder.desty = 0;
main.mcScoreboard.sboard.mcScoreHolder.onEnterFrame = function () {
if ((this.desty < 0) && (this._parent.dir == "up")) {
this.desty = this.desty + 10;
if (this.desty > 0) {
this.desty = 0;
}
}
if ((this.desty > (this._parent.mcBlock._height - (this.mcScore._height * this.item))) && (this._parent.dir == "down")) {
this.desty = this.desty - 10;
if (this.desty < (this._parent.mcBlock._height - (this.mcScore._height * this.item))) {
this.desty = this._parent.mcBlock._height - (this.mcScore._height * this.item);
}
}
this.speedy = (this.desty - this._y) + (this.speedy * 0.4);
this._y = this._y + this.speedy;
};
}
};
xmlPlayer.load(((("http://www.freeonlinegames.com/scoreboard/getTopPlayer.php?id=" + gameID) + "&rand=") + random(999999)) + "&filt=1");
Symbol 1634 MovieClip [TMP6ojzjuzm8i] Frame 1
var arrScore = new Array();
mcScoreboard.sboard.dir = "stop";
mcScoreboard.sboard.mcScoreHolder.mcScore._visible = false;
mcLabel._visible = false;
var main = this;
xmlPlayer = new XML();
xmlPlayer.ignoreWhite = true;
xmlPlayer.onLoad = function (success) {
if (success) {
myPlayer = xmlPlayer.firstChild.childNodes;
ctr2 = 0;
while (ctr2 < myPlayer.length) {
thisPlayer = main.mcScoreboard.sboard.mcScoreHolder.mcScore.duplicateMovieClip("mcScore" + ctr2, ctr2);
thisPlayer._y = ctr2 * thisPlayer._height;
thisPlayer._visible = true;
if ((ctr2 % 2) > 0) {
thisPlayer.gotoAndStop(2);
}
thisPlayer.txtNumber.text = (ctr2 + 1) + ")";
thisPlayer.txtNickname.text = myPlayer[ctr2].attributes.player;
thisPlayer.txtScore.text = myPlayer[ctr2].attributes.score;
ctr2++;
}
main.mcScoreboard.mcLoading._visible = false;
main.mcScoreboard.sboard.mcScoreHolder.item = myPlayer.length;
main.mcScoreboard.sboard.mcScoreHolder.speedy = 0;
main.mcScoreboard.sboard.mcScoreHolder.desty = 0;
main.mcScoreboard.sboard.mcScoreHolder.onEnterFrame = function () {
if ((this.desty < 0) && (this._parent.dir == "up")) {
this.desty = this.desty + 10;
if (this.desty > 0) {
this.desty = 0;
}
}
if ((this.desty > (this._parent.mcBlock._height - (this.mcScore._height * this.item))) && (this._parent.dir == "down")) {
this.desty = this.desty - 10;
if (this.desty < (this._parent.mcBlock._height - (this.mcScore._height * this.item))) {
this.desty = this._parent.mcBlock._height - (this.mcScore._height * this.item);
}
}
this.speedy = (this.desty - this._y) + (this.speedy * 0.4);
this._y = this._y + this.speedy;
};
}
};
xmlPlayer.load((("http://www.freeonlinegames.com/scoreboard/getTopPlayer.php?id=" + _root.gameID) + "&rand=") + random(999999));