Frame 1
stop();
_root.titledone = false;
_root.musicplay = false;
Frame 2
stop();
_root.newgame = false;
_root.controlls = false;
Frame 3
stop();
Frame 4
stop();
Frame 5
stop();
_root.diff = 2;
_root.dead = false;
_root.attacking = false;
grav = 0;
gold = 5;
agi = 5;
maxhp = 50;
maxmp = 50;
jumpPow = 1;
swordType = 1;
_root.armor = 1 + _root.diff;
armortype = 1;
_root.enchant = 0;
_root.dmg = 1;
_root.crit = 3 + _root.diff;
_root.attackspeed = 1;
_root.run = false;
_root.stab = false;
_root.dswing = false;
_root.bow = false;
_root.shooting = false;
_root.stabsk = false;
_root.dsk = false;
_root.tsk = false;
_root.critsk = false;
_root.multi = 1;
_root.splitarrow = false;
_root.exparrow = false;
rageready = false;
_root.tswing = false;
rageanim = false;
_root.critrush = false;
kills = 15;
_root.boss1 = true;
_root.boss2 = true;
_root.boss1dead = true;
_root.bossarmor = true;
_root.training = false;
_root.trainingdone = false;
_root.trainwin = false;
_root.lvl = 1;
_root.attach = true;
_root.createEmptyMovieClip("enemies", 11);
pCount = 0;
mptic = function () {
_root.pwr._xscale = _root.pwr._xscale + 2;
};
hptic = function () {
_root.hp._xscale = _root.hp._xscale + 5;
};
enemy = function () {
if (((_root.training == false) && (_root.lvl < 12)) && (_root.trainingdone == true)) {
var nm = ("plane" + pCount);
enemies.attachMovie("plane", nm, pCount);
spawn = random(3) + 1;
if (spawn == 1) {
enemies[nm]._x = 1100;
} else if (spawn == 2) {
enemies[nm]._x = -300;
}
enemies[nm]._y = 300;
if (spawn == 3) {
enemies[nm]._x = 0 + random(900);
enemies[nm]._y = 0;
}
enemies[nm].dx = -((Math.random() * 3) + 3);
enemies[nm].dy = 0;
enemies[nm]._yscale = -100;
enemies[nm].gotoAndStop(1);
enemies[nm].hp = 100;
enemies[nm].espeed = 1;
enemies[nm].emaxspeed = 3;
enemies[nm].touched = false;
enemies[nm].dead = false;
enemies[nm].deadanim = random(3) + 1;
enemies[nm].grav = 0;
enemies[nm].firedmg = false;
enemies[nm].onEnterFrame = function () {
if ((this.hitTest(_root.hero.attack.attackbox) || (this.hitTest(_root.hero.dswing.attackbox))) || (this.hitTest(_root.hero.tswing.attackbox || (_root.hero.rageswing.attackbox)))) {
critvar = random(20) + _root.crit;
if (critvar > 19) {
var _local3 = new Sound();
_local3.attachSound("crit");
_local3.start(0, 1);
this.crit.gotoAndPlay(2);
enemies[nm].hp = enemies[nm].hp - (100 * _root.dmg);
} else {
var _local3 = new Sound();
_local3.attachSound("ehit1");
_local3.start(0, 1);
enemies[nm].hp = enemies[nm].hp - (50 * _root.dmg);
}
this.eblood.gotoAndStop(2);
if (_root.enchant == 1) {
enemies[nm].espeed = 0.5;
} else if (_root.enchant == 2) {
this.efire.gotoAndPlay(2);
} else if ((_root.enchant == 3) && (enemies[nm].dead == false)) {
_root.hp._xscale = _root.hp._xscale + 5;
}
unloadMovie (_root.hero.attack.attackbox);
unloadMovie (_root.hero.dswing.attackbox);
unloadMovie (_root.hero.tswing.attackbox);
unloadMovie (_root.hero.rageswing.attackbox);
}
if (this.hitTest(_root.hero.stab.attackbox)) {
critvar = random(20) + _root.crit;
if (critvar > 19) {
var _local3 = new Sound();
_local3.attachSound("crit");
_local3.start(0, 1);
this.crit.gotoAndPlay(2);
enemies[nm].hp = enemies[nm].hp - (150 * _root.dmg);
} else {
enemies[nm].hp = enemies[nm].hp - (100 * _root.dmg);
}
this.eblood.gotoAndStop(2);
unloadMovie (_root.hero.stab.attackbox);
if (_root.enchant == 1) {
enemies[nm].espeed = 0.5;
} else if (_root.enchant == 2) {
this.efire.gotoAndPlay(2);
} else if (_root.enchant == 3) {
_root.hp._xscale = _root.hp._xscale + 5;
}
}
if (((((enemies[nm].dead == false) && (this.hitTest(_root.bulleter))) || (this.hitTest(_root.bulleter2))) || (this.hitTest(_root.bulleter3))) || (this.hitTest(_root.bulleter4))) {
critvar = random(20) + _root.crit;
if (enemies[nm].dead == false) {
var _local3 = new Sound();
_local3.attachSound("arrowhit");
_local3.start(0, 1);
}
if (critvar > 19) {
this.crit.gotoAndPlay(2);
enemies[nm].hp = enemies[nm].hp - (random(100) + 70);
} else {
enemies[nm].hp = enemies[nm].hp - (random(50) + 50);
}
}
if ((enemies[nm].dead == false) && (this.hitTest(_root.bulleter))) {
this.eblood.gotoAndStop(2);
if (_root.exparrow == true) {
_root.attachMovie("fire", "fire2", 10, {_x:enemies[nm]._x, _y:enemies[nm]._y + 20});
}
if (_root.splitarrow == true) {
_root.attachMovie("fire3", "fire4", 12, {_x:enemies[nm]._x, _y:enemies[nm]._y + 20});
}
unloadMovie (_root.bulleter);
}
if ((enemies[nm].dead == false) && (this.hitTest(_root.bulleter2))) {
if (_root.exparrow == true) {
_root.attachMovie("fire", "fire2", 10, {_x:enemies[nm]._x, _y:enemies[nm]._y + 20});
}
if (_root.splitarrow == true) {
_root.attachMovie("fire3", "fire4", 12, {_x:enemies[nm]._x, _y:enemies[nm]._y + 20});
}
unloadMovie (_root.bulleter2);
}
if ((enemies[nm].dead == false) && (this.hitTest(_root.bulleter3))) {
if (_root.exparrow == true) {
_root.attachMovie("fire", "fire2", 10, {_x:enemies[nm]._x, _y:enemies[nm]._y + 20});
}
if (_root.splitarrow == true) {
_root.attachMovie("fire3", "fire4", 12, {_x:enemies[nm]._x, _y:enemies[nm]._y + 20});
}
unloadMovie (_root.bulleter3);
}
if ((enemies[nm].dead == false) && (this.hitTest(_root.bulleter4))) {
if (_root.exparrow == true) {
_root.attachMovie("fire", "fire2", 10, {_x:enemies[nm]._x, _y:enemies[nm]._y + 20});
}
if (_root.splitarrow == true) {
_root.attachMovie("fire3", "fire4", 12, {_x:enemies[nm]._x, _y:enemies[nm]._y + 20});
}
unloadMovie (_root.bulleter4);
}
if ((enemies[nm].dead == false) && (this.hitTest(_root.fire2))) {
enemies[nm].hp = enemies[nm].hp - random(5);
}
if ((enemies[nm].dead == false) && (this.hitTest(_root.fire4.flamedmg))) {
enemies[nm].hp = enemies[nm].hp - random(5);
}
if ((enemies[nm].dead == false) && (this.hitTest(enemies[nm].efire))) {
enemies[nm].hp = enemies[nm].hp - 2.5;
}
if ((enemies[nm].hp < 0) && (enemies[nm].dead == false)) {
_root.gold = _root.gold + (random(6) + 1);
unloadMovie (this.efire);
_root.kills = _root.kills - 1;
if (enemies[nm].deadanim == 1) {
unloadMovie (this.eblood);
unloadMovie (this.crit);
this.gotoAndStop("death");
} else if (enemies[nm].deadanim == 2) {
this.gotoAndStop("death2");
unloadMovie (this.eblood);
} else if (enemies[nm].deadanim == 3) {
this.gotoAndStop("death3");
unloadMovie (this.eblood);
}
enemies[nm].espeed = 0;
enemies[nm].dead = true;
}
if (this.ehit.hitTest(_root.hero.herohit) && (enemies[nm].dead == false)) {
if (enemies[nm].touched == false) {
this.gotoAndStop("attack");
enemies[nm].espeed = 0;
enemies[nm].touched = true;
}
} else if (enemies[nm].dead == false) {
this.gotoAndStop("walk");
enemies[nm].touched = false;
enemies[nm].espeed = enemies[nm].espeed + 0.02;
}
if (enemies[nm].espeed > enemies[nm].emaxspeed) {
enemies[nm].espeed = enemies[nm].emaxspeed;
}
enemies[nm].grav++;
this._y = this._y + enemies[nm].grav;
while (_root.ground.hitTest(this._x, this._y + 10, true)) {
this._y--;
enemies[nm].grav = 0;
}
if ((_root.kills == 0) || (_root.dead == true)) {
unloadMovie (this);
}
distance = 4000;
tx = this._x;
ty = this._y;
sx = _root.hero._x;
sy = _root.hero._y;
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < distance) {
if (tx < sx) {
this._x = this._x + enemies[nm].espeed;
if (enemies[nm].dead == false) {
this._xscale = -100;
}
}
if (tx > sx) {
this._x = this._x - enemies[nm].espeed;
if (enemies[nm].dead == false) {
this._xscale = 100;
}
}
}
this._rotation = Math.atan2(this.dy, this.dx) * 57.2957795130823;
};
pCount++;
}
};
launchEnemy2 = function () {
if ((_root.training == false) && (_root.lvl > 3)) {
var nm = ("enemy2" + pCount);
enemies.attachMovie("enemy2", nm, pCount);
spawn = random(3) + 1;
if (spawn == 1) {
enemies[nm]._x = 1100;
} else if (spawn == 2) {
enemies[nm]._x = -300;
}
enemies[nm]._y = 300;
if (spawn == 3) {
enemies[nm]._x = 500;
enemies[nm]._y = 0;
}
enemies[nm].dx = -((Math.random() * 3) + 3);
enemies[nm].dy = 0;
enemies[nm]._yscale = -100;
enemies[nm].gotoAndStop(1);
enemies[nm].hp = 250;
enemies[nm].espeed = 4;
enemies[nm].emaxspeed = 6;
enemies[nm].touched = false;
enemies[nm].dead = false;
enemies[nm].deadanim = random(2) + 1;
enemies[nm].grav = 0;
enemies[nm].firedmg = false;
enemies[nm].onEnterFrame = function () {
if ((this.hitTest(_root.hero.attack.attackbox) || (this.hitTest(_root.hero.dswing.attackbox))) || (this.hitTest(_root.hero.tswing.attackbox || (_root.hero.rageswing.attackbox)))) {
critvar = random(20) + _root.crit;
if (critvar > 19) {
var _local3 = new Sound();
_local3.attachSound("crit");
_local3.start(0, 1);
this.crit.gotoAndPlay(2);
enemies[nm].hp = enemies[nm].hp - (100 * _root.dmg);
} else {
enemies[nm].hp = enemies[nm].hp - (50 * _root.dmg);
}
this.eblood.gotoAndStop(2);
if (_root.enchant == 1) {
enemies[nm].espeed = 0.5;
} else if (_root.enchant == 2) {
this.efire.gotoAndPlay(2);
} else if ((_root.enchant == 3) && (enemies[nm].dead == false)) {
_root.hp._xscale = _root.hp._xscale + 5;
}
unloadMovie (_root.hero.attack.attackbox);
}
if (this.hitTest(_root.hero.stab.attackbox)) {
critvar = random(20) + _root.crit;
if (critvar > 19) {
var _local3 = new Sound();
_local3.attachSound("crit");
_local3.start(0, 1);
this.crit.gotoAndPlay(2);
enemies[nm].hp = enemies[nm].hp - (150 * _root.dmg);
} else {
enemies[nm].hp = enemies[nm].hp - (100 * _root.dmg);
}
this.eblood.gotoAndStop(2);
unloadMovie (_root.hero.stab.attackbox);
if (_root.enchant == 1) {
enemies[nm].espeed = 0.5;
} else if (_root.enchant == 2) {
this.efire.gotoAndPlay(2);
} else if (_root.enchant == 3) {
_root.hp._xscale = _root.hp._xscale + 5;
}
}
if (((((enemies[nm].dead == false) && (this.hitTest(_root.bulleter))) || (this.hitTest(_root.bulleter2))) || (this.hitTest(_root.bulleter3))) || (this.hitTest(_root.bulleter4))) {
critvar = random(20) + _root.crit;
if (enemies[nm].dead == false) {
var _local3 = new Sound();
_local3.attachSound("arrowhit");
_local3.start(0, 1);
}
if (critvar > 19) {
this.crit.gotoAndPlay(2);
enemies[nm].hp = enemies[nm].hp - (random(100) + 70);
} else {
enemies[nm].hp = enemies[nm].hp - (random(50) + 50);
}
}
if ((enemies[nm].dead == false) && (this.hitTest(_root.bulleter))) {
this.eblood.gotoAndStop(2);
if (_root.exparrow == true) {
_root.attachMovie("fire", "fire2", 10, {_x:enemies[nm]._x, _y:enemies[nm]._y + 20});
}
if (_root.splitarrow == true) {
_root.attachMovie("fire3", "fire4", 12, {_x:enemies[nm]._x, _y:enemies[nm]._y + 20});
}
unloadMovie (_root.bulleter);
}
if ((enemies[nm].dead == false) && (this.hitTest(_root.bulleter2))) {
if (_root.exparrow == true) {
_root.attachMovie("fire", "fire2", 10, {_x:enemies[nm]._x, _y:enemies[nm]._y + 20});
}
if (_root.splitarrow == true) {
_root.attachMovie("fire3", "fire4", 12, {_x:enemies[nm]._x, _y:enemies[nm]._y + 20});
}
unloadMovie (_root.bulleter2);
}
if ((enemies[nm].dead == false) && (this.hitTest(_root.bulleter3))) {
if (_root.exparrow == true) {
_root.attachMovie("fire", "fire2", 10, {_x:enemies[nm]._x, _y:enemies[nm]._y + 20});
}
if (_root.splitarrow == true) {
_root.attachMovie("fire3", "fire4", 12, {_x:enemies[nm]._x, _y:enemies[nm]._y + 20});
}
unloadMovie (_root.bulleter3);
}
if ((enemies[nm].dead == false) && (this.hitTest(_root.bulleter4))) {
if (_root.exparrow == true) {
_root.attachMovie("fire", "fire2", 10, {_x:enemies[nm]._x, _y:enemies[nm]._y + 20});
}
if (_root.splitarrow == true) {
_root.attachMovie("fire3", "fire4", 12, {_x:enemies[nm]._x, _y:enemies[nm]._y + 20});
}
unloadMovie (_root.bulleter4);
}
if ((enemies[nm].dead == false) && (this.hitTest(_root.fire2))) {
enemies[nm].hp = enemies[nm].hp - random(5);
}
if ((enemies[nm].dead == false) && (this.hitTest(_root.fire4.flamedmg))) {
enemies[nm].hp = enemies[nm].hp - random(5);
}
if ((enemies[nm].dead == false) && (this.hitTest(enemies[nm].efire))) {
enemies[nm].hp = enemies[nm].hp - 2.5;
}
if ((enemies[nm].hp < 0) && (enemies[nm].dead == false)) {
_root.gold = _root.gold + (random(15) + 1);
unloadMovie (this.efire);
_root.kills = _root.kills - 1;
if (enemies[nm].deadanim == 1) {
unloadMovie (this.eblood);
unloadMovie (this.crit);
this.gotoAndStop("death");
} else if (enemies[nm].deadanim == 2) {
this.gotoAndStop("death2");
unloadMovie (this.eblood);
} else if (enemies[nm].deadanim == 3) {
this.gotoAndStop("death3");
unloadMovie (this.eblood);
}
enemies[nm].espeed = 0;
enemies[nm].dead = true;
}
if (this.ehit.hitTest(_root.hero.herohit) && (enemies[nm].dead == false)) {
if (enemies[nm].touched == false) {
this.gotoAndStop("attack");
enemies[nm].espeed = 0;
enemies[nm].touched = true;
}
} else if (enemies[nm].dead == false) {
this.gotoAndStop("walk");
enemies[nm].touched = false;
enemies[nm].espeed = enemies[nm].espeed + 0.2;
}
if (enemies[nm].espeed > enemies[nm].emaxspeed) {
enemies[nm].espeed = enemies[nm].emaxspeed;
}
enemies[nm].grav++;
this._y = this._y + enemies[nm].grav;
while (_root.ground.hitTest(this._x, this._y + 10, true)) {
this._y--;
enemies[nm].grav = 0;
}
if ((_root.kills == 0) || (_root.dead == true)) {
unloadMovie (this);
}
distance = 4000;
tx = this._x;
ty = this._y;
sx = _root.hero._x;
sy = _root.hero._y;
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < distance) {
if (tx < sx) {
this._x = this._x + enemies[nm].espeed;
if (enemies[nm].dead == false) {
this._xscale = -100;
}
}
if (tx > sx) {
this._x = this._x - enemies[nm].espeed;
if (enemies[nm].dead == false) {
this._xscale = 100;
}
}
}
this._rotation = Math.atan2(this.dy, this.dx) * 57.2957795130823;
};
pCount++;
}
};
launchEnemy3 = function () {
if ((_root.training == false) && (_root.lvl > 6)) {
var nm = ("enemy3" + pCount);
enemies.attachMovie("enemy3", nm, pCount);
spawn = random(3) + 1;
if (spawn == 1) {
enemies[nm]._x = 1100;
} else if (spawn == 2) {
enemies[nm]._x = -300;
}
enemies[nm]._y = 300;
if (spawn == 3) {
enemies[nm]._x = 500;
enemies[nm]._y = 0;
}
enemies[nm].dx = -((Math.random() * 3) + 3);
enemies[nm].dy = 0;
enemies[nm]._yscale = -100;
enemies[nm].gotoAndStop(1);
enemies[nm].hp = 1300;
enemies[nm].espeed = 1;
enemies[nm].emaxspeed = 2.5;
enemies[nm].touched = false;
enemies[nm].dead = false;
enemies[nm].deadanim = random(2) + 1;
enemies[nm].grav = 0;
enemies[nm].firedmg = false;
enemies[nm].onEnterFrame = function () {
if ((this.hitTest(_root.hero.attack.attackbox) || (this.hitTest(_root.hero.dswing.attackbox))) || (this.hitTest(_root.hero.tswing.attackbox || (_root.hero.rageswing.attackbox)))) {
critvar = random(20) + _root.crit;
if (critvar > 19) {
var _local3 = new Sound();
_local3.attachSound("crit");
_local3.start(0, 1);
this.crit.gotoAndPlay(2);
enemies[nm].hp = enemies[nm].hp - (100 * _root.dmg);
} else {
enemies[nm].hp = enemies[nm].hp - (50 * _root.dmg);
}
this.eblood.gotoAndStop(2);
if (_root.enchant == 1) {
enemies[nm].espeed = 0.5;
} else if (_root.enchant == 2) {
this.efire.gotoAndPlay(2);
} else if ((_root.enchant == 3) && (enemies[nm].dead == false)) {
_root.hp._xscale = _root.hp._xscale + 5;
}
unloadMovie (_root.hero.attack.attackbox);
}
if (this.hitTest(_root.hero.stab.attackbox)) {
critvar = random(20) + _root.crit;
if (critvar > 19) {
var _local3 = new Sound();
_local3.attachSound("crit");
_local3.start(0, 1);
this.crit.gotoAndPlay(2);
enemies[nm].hp = enemies[nm].hp - (150 * _root.dmg);
} else {
enemies[nm].hp = enemies[nm].hp - (100 * _root.dmg);
}
this.eblood.gotoAndStop(2);
unloadMovie (_root.hero.stab.attackbox);
if (_root.enchant == 1) {
enemies[nm].espeed = 0.5;
} else if (_root.enchant == 2) {
this.efire.gotoAndPlay(2);
} else if (_root.enchant == 3) {
_root.hp._xscale = _root.hp._xscale + 5;
}
}
if (((((enemies[nm].dead == false) && (this.hitTest(_root.bulleter))) || (this.hitTest(_root.bulleter2))) || (this.hitTest(_root.bulleter3))) || (this.hitTest(_root.bulleter4))) {
critvar = random(20) + _root.crit;
if (enemies[nm].dead == false) {
var _local3 = new Sound();
_local3.attachSound("arrowhit");
_local3.start(0, 1);
}
if (critvar > 19) {
this.crit.gotoAndPlay(2);
enemies[nm].hp = enemies[nm].hp - (random(100) + 70);
} else {
enemies[nm].hp = enemies[nm].hp - (random(50) + 50);
}
}
if ((enemies[nm].dead == false) && (this.hitTest(_root.bulleter))) {
this.eblood.gotoAndStop(2);
if (_root.exparrow == true) {
_root.attachMovie("fire", "fire2", 10, {_x:enemies[nm]._x, _y:enemies[nm]._y + 20});
}
if (_root.splitarrow == true) {
_root.attachMovie("fire3", "fire4", 12, {_x:enemies[nm]._x, _y:enemies[nm]._y + 20});
}
unloadMovie (_root.bulleter);
}
if ((enemies[nm].dead == false) && (this.hitTest(_root.bulleter2))) {
if (_root.exparrow == true) {
_root.attachMovie("fire", "fire2", 10, {_x:enemies[nm]._x, _y:enemies[nm]._y + 20});
}
if (_root.splitarrow == true) {
_root.attachMovie("fire3", "fire4", 12, {_x:enemies[nm]._x, _y:enemies[nm]._y + 20});
}
unloadMovie (_root.bulleter2);
}
if ((enemies[nm].dead == false) && (this.hitTest(_root.bulleter3))) {
if (_root.exparrow == true) {
_root.attachMovie("fire", "fire2", 10, {_x:enemies[nm]._x, _y:enemies[nm]._y + 20});
}
if (_root.splitarrow == true) {
_root.attachMovie("fire3", "fire4", 12, {_x:enemies[nm]._x, _y:enemies[nm]._y + 20});
}
unloadMovie (_root.bulleter3);
}
if ((enemies[nm].dead == false) && (this.hitTest(_root.bulleter4))) {
if (_root.exparrow == true) {
_root.attachMovie("fire", "fire2", 10, {_x:enemies[nm]._x, _y:enemies[nm]._y + 20});
}
if (_root.splitarrow == true) {
_root.attachMovie("fire3", "fire4", 12, {_x:enemies[nm]._x, _y:enemies[nm]._y + 20});
}
unloadMovie (_root.bulleter4);
}
if ((enemies[nm].dead == false) && (this.hitTest(_root.fire2))) {
enemies[nm].hp = enemies[nm].hp - random(10);
}
if ((enemies[nm].dead == false) && (this.hitTest(_root.fire4.flamedmg))) {
enemies[nm].hp = enemies[nm].hp - random(10);
}
if ((enemies[nm].dead == false) && (this.hitTest(enemies[nm].efire))) {
enemies[nm].hp = enemies[nm].hp - 5;
}
if ((enemies[nm].hp < 0) && (enemies[nm].dead == false)) {
_root.gold = _root.gold + (random(35) + 1);
unloadMovie (this.efire);
_root.kills = _root.kills - 1;
if (enemies[nm].deadanim == 1) {
unloadMovie (this.eblood);
unloadMovie (this.crit);
this.gotoAndStop("death");
} else if (enemies[nm].deadanim == 2) {
this.gotoAndStop("death2");
unloadMovie (this.eblood);
} else if (enemies[nm].deadanim == 3) {
this.gotoAndStop("death3");
unloadMovie (this.eblood);
}
enemies[nm].espeed = 0;
enemies[nm].dead = true;
}
if (this.ehit.hitTest(_root.hero.herohit) && (enemies[nm].dead == false)) {
if (enemies[nm].touched == false) {
this.gotoAndStop("attack");
enemies[nm].espeed = 0;
enemies[nm].touched = true;
}
} else if (enemies[nm].dead == false) {
this.gotoAndStop("walk");
enemies[nm].touched = false;
enemies[nm].espeed = enemies[nm].espeed + 0.2;
}
if (enemies[nm].espeed > enemies[nm].emaxspeed) {
enemies[nm].espeed = enemies[nm].emaxspeed;
}
enemies[nm].grav++;
this._y = this._y + enemies[nm].grav;
while (_root.ground.hitTest(this._x, this._y + 10, true)) {
this._y--;
enemies[nm].grav = 0;
}
if ((_root.kills == 0) || (_root.dead == true)) {
unloadMovie (this);
}
distance = 4000;
tx = this._x;
ty = this._y;
sx = _root.hero._x;
sy = _root.hero._y;
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < distance) {
if (tx < sx) {
this._x = this._x + enemies[nm].espeed;
if (enemies[nm].dead == false) {
this._xscale = -100;
}
}
if (tx > sx) {
this._x = this._x - enemies[nm].espeed;
if (enemies[nm].dead == false) {
this._xscale = 100;
}
}
}
this._rotation = Math.atan2(this.dy, this.dx) * 57.2957795130823;
};
pCount++;
}
};
launchEnemy4 = function () {
if ((_root.training == false) && (_root.lvl > 9)) {
var nm = ("enemy4" + pCount);
enemies.attachMovie("enemy4", nm, pCount);
spawn = random(3) + 1;
if (spawn == 1) {
enemies[nm]._x = 1100;
} else if (spawn == 2) {
enemies[nm]._x = -300;
}
enemies[nm]._y = 300;
if (spawn == 3) {
enemies[nm]._x = 500;
enemies[nm]._y = 0;
}
enemies[nm].dx = -((Math.random() * 3) + 3);
enemies[nm].dy = 0;
enemies[nm]._yscale = -100;
enemies[nm].gotoAndStop(1);
enemies[nm].hp = 1200;
enemies[nm].espeed = 3;
enemies[nm].emaxspeed = 5;
enemies[nm].touched = false;
enemies[nm].dead = false;
enemies[nm].deadanim = random(2) + 1;
enemies[nm].grav = 0;
enemies[nm].firedmg = false;
enemies[nm].onEnterFrame = function () {
if ((this.hitTest(_root.hero.attack.attackbox) || (this.hitTest(_root.hero.dswing.attackbox))) || (this.hitTest(_root.hero.tswing.attackbox || (_root.hero.rageswing.attackbox)))) {
if (enemies[nm].dead == false) {
var _local3 = new Sound();
_local3.attachSound("arrowhit");
_local3.start(0, 1);
}
critvar = random(20) + _root.crit;
if (critvar > 19) {
var _local3 = new Sound();
_local3.attachSound("crit");
_local3.start(0, 1);
this.crit.gotoAndPlay(2);
enemies[nm].hp = enemies[nm].hp - (100 * _root.dmg);
} else {
enemies[nm].hp = enemies[nm].hp - (50 * _root.dmg);
}
this.eblood.gotoAndStop(2);
if (_root.enchant == 1) {
enemies[nm].espeed = 0.5;
} else if (_root.enchant == 2) {
this.efire.gotoAndPlay(2);
} else if ((_root.enchant == 3) && (enemies[nm].dead == false)) {
_root.hp._xscale = _root.hp._xscale + 5;
}
unloadMovie (_root.hero.attack.attackbox);
}
if (this.hitTest(_root.hero.stab.attackbox)) {
critvar = random(20) + _root.crit;
if (critvar > 19) {
var _local3 = new Sound();
_local3.attachSound("crit");
_local3.start(0, 1);
this.crit.gotoAndPlay(2);
enemies[nm].hp = enemies[nm].hp - (150 * _root.dmg);
} else {
enemies[nm].hp = enemies[nm].hp - (100 * _root.dmg);
}
this.eblood.gotoAndStop(2);
unloadMovie (_root.hero.stab.attackbox);
if (_root.enchant == 1) {
enemies[nm].espeed = 0.5;
} else if (_root.enchant == 2) {
this.efire.gotoAndPlay(2);
} else if (_root.enchant == 3) {
_root.hp._xscale = _root.hp._xscale + 5;
}
}
if (((((enemies[nm].dead == false) && (this.hitTest(_root.bulleter))) || (this.hitTest(_root.bulleter2))) || (this.hitTest(_root.bulleter3))) || (this.hitTest(_root.bulleter4))) {
critvar = random(20) + _root.crit;
if (enemies[nm].dead == false) {
var _local3 = new Sound();
_local3.attachSound("arrowhit");
_local3.start(0, 1);
}
if (critvar > 19) {
this.crit.gotoAndPlay(2);
enemies[nm].hp = enemies[nm].hp - (random(100) + 70);
} else {
enemies[nm].hp = enemies[nm].hp - (random(50) + 50);
}
}
if ((enemies[nm].dead == false) && (this.hitTest(_root.bulleter))) {
this.eblood.gotoAndStop(2);
if (_root.exparrow == true) {
_root.attachMovie("fire", "fire2", 10, {_x:enemies[nm]._x, _y:enemies[nm]._y + 20});
}
if (_root.splitarrow == true) {
_root.attachMovie("fire3", "fire4", 12, {_x:enemies[nm]._x, _y:enemies[nm]._y + 20});
}
unloadMovie (_root.bulleter);
}
if ((enemies[nm].dead == false) && (this.hitTest(_root.bulleter2))) {
if (_root.exparrow == true) {
_root.attachMovie("fire", "fire2", 10, {_x:enemies[nm]._x, _y:enemies[nm]._y + 20});
}
if (_root.splitarrow == true) {
_root.attachMovie("fire3", "fire4", 12, {_x:enemies[nm]._x, _y:enemies[nm]._y + 20});
}
unloadMovie (_root.bulleter2);
}
if ((enemies[nm].dead == false) && (this.hitTest(_root.bulleter3))) {
if (_root.exparrow == true) {
_root.attachMovie("fire", "fire2", 10, {_x:enemies[nm]._x, _y:enemies[nm]._y + 20});
}
if (_root.splitarrow == true) {
_root.attachMovie("fire3", "fire4", 12, {_x:enemies[nm]._x, _y:enemies[nm]._y + 20});
}
unloadMovie (_root.bulleter3);
}
if ((enemies[nm].dead == false) && (this.hitTest(_root.bulleter4))) {
if (_root.exparrow == true) {
_root.attachMovie("fire", "fire2", 10, {_x:enemies[nm]._x, _y:enemies[nm]._y + 20});
}
if (_root.splitarrow == true) {
_root.attachMovie("fire3", "fire4", 12, {_x:enemies[nm]._x, _y:enemies[nm]._y + 20});
}
unloadMovie (_root.bulleter4);
}
if ((enemies[nm].dead == false) && (this.hitTest(_root.fire2))) {
enemies[nm].hp = enemies[nm].hp - random(12);
}
if ((enemies[nm].dead == false) && (this.hitTest(_root.fire4.flamedmg))) {
enemies[nm].hp = enemies[nm].hp - random(12);
}
if ((enemies[nm].dead == false) && (this.hitTest(enemies[nm].efire))) {
enemies[nm].hp = enemies[nm].hp - 7;
}
if ((enemies[nm].hp < 0) && (enemies[nm].dead == false)) {
_root.gold = _root.gold + (random(35) + 20);
unloadMovie (this.efire);
_root.kills = _root.kills - 1;
if (enemies[nm].deadanim == 1) {
unloadMovie (this.eblood);
unloadMovie (this.crit);
this.gotoAndStop("death");
} else if (enemies[nm].deadanim == 2) {
this.gotoAndStop("death2");
unloadMovie (this.eblood);
} else if (enemies[nm].deadanim == 3) {
this.gotoAndStop("death3");
unloadMovie (this.eblood);
}
enemies[nm].espeed = 0;
enemies[nm].dead = true;
}
if (this.ehit.hitTest(_root.hero.herohit) && (enemies[nm].dead == false)) {
if (enemies[nm].touched == false) {
this.gotoAndStop("attack");
enemies[nm].espeed = 0;
enemies[nm].touched = true;
}
} else if (enemies[nm].dead == false) {
this.gotoAndStop("walk");
enemies[nm].touched = false;
enemies[nm].espeed = enemies[nm].espeed + 0.2;
}
if (enemies[nm].espeed > enemies[nm].emaxspeed) {
enemies[nm].espeed = enemies[nm].emaxspeed;
}
enemies[nm].grav++;
this._y = this._y + enemies[nm].grav;
while (_root.ground.hitTest(this._x, this._y + 10, true)) {
this._y--;
enemies[nm].grav = 0;
}
if ((_root.kills == 0) || (_root.dead == true)) {
unloadMovie (this);
}
distance = 4000;
tx = this._x;
ty = this._y;
sx = _root.hero._x;
sy = _root.hero._y;
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < distance) {
if (tx < sx) {
this._x = this._x + enemies[nm].espeed;
if (enemies[nm].dead == false) {
this._xscale = -100;
}
}
if (tx > sx) {
this._x = this._x - enemies[nm].espeed;
if (enemies[nm].dead == false) {
this._xscale = 100;
}
}
}
this._rotation = Math.atan2(this.dy, this.dx) * 57.2957795130823;
};
pCount++;
}
};
launchEnemy5 = function () {
if ((_root.training == false) && (_root.lvl == 9)) {
if (_root.boss1 == true) {
_root.boss1 = false;
var nm = ("enemy5" + pCount);
enemies.attachMovie("enemy5", nm, pCount);
_root.boss1dead = false;
spawn = random(3) + 1;
if (spawn == 1) {
enemies[nm]._x = 1100;
} else if (spawn == 2) {
enemies[nm]._x = -300;
}
enemies[nm]._y = 300;
if (spawn == 3) {
enemies[nm]._x = 500;
enemies[nm]._y = 0;
}
enemies[nm].dx = -((Math.random() * 3) + 3);
enemies[nm].dy = 0;
enemies[nm]._yscale = -100;
enemies[nm].gotoAndStop(1);
enemies[nm].espeed = 1.5;
enemies[nm].emaxspeed = 2;
enemies[nm].touched = false;
enemies[nm].dead = false;
enemies[nm].deadanim = random(2) + 1;
enemies[nm].grav = 0;
enemies[nm].firedmg = false;
enemies[nm].onEnterFrame = function () {
if ((this.hitTest(_root.hero.attack.attackbox) || (this.hitTest(_root.hero.dswing.attackbox))) || (this.hitTest(_root.hero.tswing.attackbox || (_root.hero.rageswing.attackbox)))) {
critvar = random(20) + _root.crit;
if (critvar > 19) {
var _local3 = new Sound();
_local3.attachSound("crit");
_local3.start(0, 1);
this.crit.gotoAndPlay(2);
this.boss1hp._xscale = this.boss1hp._xscale - (1.3 * _root.dmg);
} else {
this.boss1hp._xscale = this.boss1hp._xscale - (0.8 * _root.dmg);
}
this.eblood.gotoAndStop(2);
if (_root.enchant == 1) {
enemies[nm].espeed = 0.5;
} else if (_root.enchant == 2) {
this.efire.gotoAndPlay(2);
} else if ((_root.enchant == 3) && (enemies[nm].dead == false)) {
_root.hp._xscale = _root.hp._xscale + 5;
}
unloadMovie (_root.hero.attack.attackbox);
}
if (this.hitTest(_root.hero.stab.attackbox)) {
critvar = random(20) + _root.crit;
if (critvar > 19) {
var _local3 = new Sound();
_local3.attachSound("crit");
_local3.start(0, 1);
this.crit.gotoAndPlay(2);
this.boss1hp._xscale = this.boss1hp._xscale - (1.2 * _root.dmg);
} else {
this.boss1hp._xscale = this.boss1hp._xscale - (0.9 * _root.dmg);
}
this.eblood.gotoAndStop(2);
unloadMovie (_root.hero.stab.attackbox);
if (_root.enchant == 1) {
enemies[nm].espeed = 0.5;
} else if (_root.enchant == 2) {
this.efire.gotoAndPlay(2);
} else if (_root.enchant == 3) {
_root.hp._xscale = _root.hp._xscale + 5;
}
}
if (((((enemies[nm].dead == false) && (this.hitTest(_root.bulleter))) || (this.hitTest(_root.bulleter2))) || (this.hitTest(_root.bulleter3))) || (this.hitTest(_root.bulleter4))) {
critvar = random(20) + _root.crit;
if (enemies[nm].dead == false) {
var _local3 = new Sound();
_local3.attachSound("arrowhit");
_local3.start(0, 1);
}
if (critvar > 19) {
this.crit.gotoAndPlay(2);
this.boss1hp._xscale = this.boss1hp._xscale - 2.5;
} else {
this.boss1hp._xscale = this.boss1hp._xscale - 1.5;
}
}
if ((enemies[nm].dead == false) && (this.hitTest(_root.bulleter))) {
this.eblood.gotoAndStop(2);
if (_root.exparrow == true) {
_root.attachMovie("fire", "fire2", 10, {_x:enemies[nm]._x, _y:enemies[nm]._y + 20});
}
if (_root.splitarrow == true) {
_root.attachMovie("fire3", "fire4", 12, {_x:enemies[nm]._x, _y:enemies[nm]._y + 20});
}
unloadMovie (_root.bulleter);
}
if ((enemies[nm].dead == false) && (this.hitTest(_root.bulleter2))) {
if (_root.exparrow == true) {
_root.attachMovie("fire", "fire2", 10, {_x:enemies[nm]._x, _y:enemies[nm]._y + 20});
}
if (_root.splitarrow == true) {
_root.attachMovie("fire3", "fire4", 12, {_x:enemies[nm]._x, _y:enemies[nm]._y + 20});
}
unloadMovie (_root.bulleter2);
}
if ((enemies[nm].dead == false) && (this.hitTest(_root.bulleter3))) {
if (_root.exparrow == true) {
_root.attachMovie("fire", "fire2", 10, {_x:enemies[nm]._x, _y:enemies[nm]._y + 20});
}
if (_root.splitarrow == true) {
_root.attachMovie("fire3", "fire4", 12, {_x:enemies[nm]._x, _y:enemies[nm]._y + 20});
}
unloadMovie (_root.bulleter3);
}
if ((enemies[nm].dead == false) && (this.hitTest(_root.bulleter4))) {
if (_root.exparrow == true) {
_root.attachMovie("fire", "fire2", 10, {_x:enemies[nm]._x, _y:enemies[nm]._y + 20});
}
if (_root.splitarrow == true) {
_root.attachMovie("fire3", "fire4", 12, {_x:enemies[nm]._x, _y:enemies[nm]._y + 20});
}
unloadMovie (_root.bulleter4);
}
if ((enemies[nm].dead == false) && (this.hitTest(_root.fire2))) {
this.boss1hp._xscale = this.boss1hp._xscale - 0.05;
}
if ((enemies[nm].dead == false) && (this.hitTest(_root.fire4.flamedmg))) {
this.boss1hp._xscale = this.boss1hp._xscale - 0.07;
}
if ((enemies[nm].dead == false) && (this.hitTest(enemies[nm].efire))) {
this.boss1hp._xscale = this.boss1hp._xscale - (0.05 * _root.dmg);
}
if ((this.boss1hp._xscale < 0) && (enemies[nm].dead == false)) {
_root.gold = _root.gold + (random(35) + 20);
unloadMovie (this.efire);
unloadMovie (this.boss1hp);
_root.kills = _root.kills - 1;
if (enemies[nm].deadanim == 1) {
unloadMovie (this.eblood);
unloadMovie (this.crit);
this.gotoAndStop("death");
} else if (enemies[nm].deadanim == 2) {
this.gotoAndStop("death");
unloadMovie (this.eblood);
} else if (enemies[nm].deadanim == 3) {
this.gotoAndStop("death");
unloadMovie (this.eblood);
}
enemies[nm].espeed = 0;
enemies[nm].dead = true;
}
if (this.ehit.hitTest(_root.hero) && (enemies[nm].dead == false)) {
if (enemies[nm].touched == false) {
this.gotoAndStop("attack");
enemies[nm].espeed = 0;
enemies[nm].touched = true;
}
} else if (enemies[nm].dead == false) {
this.gotoAndStop("walk");
enemies[nm].touched = false;
enemies[nm].espeed = enemies[nm].espeed + 0.2;
}
if (enemies[nm].espeed > enemies[nm].emaxspeed) {
enemies[nm].espeed = enemies[nm].emaxspeed;
}
enemies[nm].grav++;
this._y = this._y + enemies[nm].grav;
while (_root.ground.hitTest(this._x, this._y + 10, true)) {
this._y--;
enemies[nm].grav = 0;
}
distance = 4000;
tx = this._x;
ty = this._y;
sx = _root.hero._x;
sy = _root.hero._y;
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < distance) {
if (tx < sx) {
this._x = this._x + enemies[nm].espeed;
if (enemies[nm].dead == false) {
this._xscale = -100;
}
}
if (tx > sx) {
this._x = this._x - enemies[nm].espeed;
if (enemies[nm].dead == false) {
this._xscale = 100;
}
}
}
this._rotation = Math.atan2(this.dy, this.dx) * 57.2957795130823;
};
pCount++;
}
}
};
launchEnemy6 = function () {
if (((_root.boss2 == true) && (_root.lvl == 12)) && (_root.training == false)) {
_root.boss2 = false;
var nm = ("boss2" + pCount);
enemies.attachMovie("boss2", nm, pCount);
spawn = random(3) + 1;
if (spawn == 1) {
enemies[nm]._x = 1100;
} else if (spawn == 2) {
enemies[nm]._x = -300;
}
enemies[nm]._y = 300;
if (spawn == 3) {
enemies[nm]._x = 500;
enemies[nm]._y = 0;
}
enemies[nm].dx = -((Math.random() * 3) + 3);
enemies[nm].dy = 0;
enemies[nm]._yscale = -100;
enemies[nm].gotoAndStop(1);
enemies[nm].espeed = 1.5;
enemies[nm].emaxspeed = 2;
enemies[nm].touched = false;
enemies[nm].dead = false;
enemies[nm].deadanim = random(2) + 1;
enemies[nm].grav = 0;
enemies[nm].firedmg = false;
enemies[nm].onEnterFrame = function () {
if ((this.boss2hit.hitTest(_root.hero.attack.attackbox) || (this.boss2hit.hitTest(_root.hero.dswing.attackbox))) || (this.boss2hit.hitTest(_root.hero.tswing.attackbox || (_root.boss2hit.hero.rageswing.attackbox)))) {
critvar = random(20) + _root.crit;
if (critvar > 19) {
var _local3 = new Sound();
_local3.attachSound("crit");
_local3.start(0, 1);
this.crit.gotoAndPlay(2);
if (_root.bossarmor == true) {
this.boss2armor._xscale = this.boss2armor._xscale - (0.7 * _root.dmg);
} else {
this.boss2hp._xscale = this.boss2hp._xscale - (0.3 * _root.dmg);
}
} else if (_root.bossarmor == true) {
this.boss2armor._xscale = this.boss2armor._xscale - (0.7 * _root.dmg);
} else {
this.boss2hp._xscale = this.boss2hp._xscale - (0.3 * _root.dmg);
}
this.eblood.gotoAndStop(2);
if (_root.enchant == 1) {
enemies[nm].espeed = 0.5;
} else if (_root.enchant == 2) {
this.efire.gotoAndPlay(2);
} else if ((_root.enchant == 3) && (enemies[nm].dead == false)) {
_root.hp._xscale = _root.hp._xscale + 5;
}
unloadMovie (_root.hero.attack.attackbox);
}
if (this.boss2hit.hitTest(_root.hero.stab.attackbox)) {
critvar = random(20) + _root.crit;
if (critvar > 19) {
var _local3 = new Sound();
_local3.attachSound("crit");
_local3.start(0, 1);
this.crit.gotoAndPlay(2);
if (_root.bossarmor == true) {
this.boss2armor._xscale = this.boss2armor._xscale - (1 * _root.dmg);
} else {
this.boss2hp._xscale = this.boss2hp._xscale - (0.5 * _root.dmg);
}
} else if (_root.bossarmor == true) {
this.boss2armor._xscale = this.boss2armor._xscale - (1 * _root.dmg);
} else {
this.boss2hp._xscale = this.boss2hp._xscale - (0.5 * _root.dmg);
}
this.eblood.gotoAndStop(2);
unloadMovie (_root.hero.stab.attackbox);
if (_root.enchant == 1) {
enemies[nm].espeed = 0.5;
} else if (_root.enchant == 2) {
this.efire.gotoAndPlay(2);
} else if (_root.enchant == 3) {
_root.hp._xscale = _root.hp._xscale + 5;
}
}
if (((((enemies[nm].dead == false) && (this.boss2hit.hitTest(_root.bulleter))) || (this.boss2hit.hitTest(_root.bulleter2))) || (this.boss2hit.hitTest(_root.bulleter3))) || (this.boss2hit.hitTest(_root.bulleter4))) {
critvar = random(20) + _root.crit;
if (enemies[nm].dead == false) {
var _local3 = new Sound();
_local3.attachSound("arrowhit");
_local3.start(0, 1);
}
if (critvar > 19) {
this.crit.gotoAndPlay(2);
if (_root.bossarmor == true) {
this.boss2armor._xscale = this.boss2armor._xscale - 3;
} else {
this.boss2hp._xscale = this.boss2hp._xscale - 2;
}
} else if (_root.bossarmor == true) {
this.boss2armor._xscale = this.boss2armor._xscale - 2;
} else {
this.boss2hp._xscale = this.boss2hp._xscale - 1.5;
}
}
if ((enemies[nm].dead == false) && (this.boss2hit.hitTest(_root.bulleter))) {
this.eblood.gotoAndStop(2);
if (_root.exparrow == true) {
_root.attachMovie("fire", "fire2", 10, {_x:enemies[nm]._x, _y:enemies[nm]._y + 20});
}
if (_root.splitarrow == true) {
_root.attachMovie("fire3", "fire4", 12, {_x:enemies[nm]._x, _y:enemies[nm]._y + 20});
}
unloadMovie (_root.bulleter);
}
if ((enemies[nm].dead == false) && (this.boss2hit.hitTest(_root.bulleter2))) {
if (_root.exparrow == true) {
_root.attachMovie("fire", "fire2", 10, {_x:enemies[nm]._x, _y:enemies[nm]._y + 20});
}
if (_root.splitarrow == true) {
_root.attachMovie("fire3", "fire4", 12, {_x:enemies[nm]._x, _y:enemies[nm]._y + 20});
}
unloadMovie (_root.bulleter2);
}
if ((enemies[nm].dead == false) && (this.boss2hit.hitTest(_root.bulleter3))) {
if (_root.exparrow == true) {
_root.attachMovie("fire", "fire2", 10, {_x:enemies[nm]._x, _y:enemies[nm]._y + 20});
}
if (_root.splitarrow == true) {
_root.attachMovie("fire3", "fire4", 12, {_x:enemies[nm]._x, _y:enemies[nm]._y + 20});
}
unloadMovie (_root.bulleter3);
}
if ((enemies[nm].dead == false) && (this.boss2hit.hitTest(_root.bulleter4))) {
if (_root.exparrow == true) {
_root.attachMovie("fire", "fire2", 10, {_x:enemies[nm]._x, _y:enemies[nm]._y + 20});
}
if (_root.splitarrow == true) {
_root.attachMovie("fire3", "fire4", 12, {_x:enemies[nm]._x, _y:enemies[nm]._y + 20});
}
unloadMovie (_root.bulleter4);
}
if ((enemies[nm].dead == false) && (this.hitTest(_root.fire2))) {
if (_root.bossarmor == true) {
this.boss2armor._xscale = this.boss2armor._xscale - 0.05;
} else {
this.boss2hp._xscale = this.boss2hp._xscale - 0.02;
}
}
if ((enemies[nm].dead == false) && (this.hitTest(_root.fire4.flamedmg))) {
if (_root.bossarmor == true) {
this.boss2armor._xscale = this.boss2armor._xscale - 0.05;
} else {
this.boss2hp._xscale = this.boss2hp._xscale - 0.02;
}
}
if ((enemies[nm].dead == false) && (this.hitTest(enemies[nm].efire))) {
if (_root.bossarmor == true) {
this.boss2armor._xscale = this.boss2armor._xscale - 0.05;
} else {
this.boss2hp._xscale = this.boss2hp._xscale - 0.05;
}
}
if (((this.boss2armor._xscale < 1) && (enemies[nm].dead == false)) && (_root.bossarmor == true)) {
this.boss2walk.boss2head.gotoAndStop(1);
this.boss2walk.boss2arm1.gotoAndStop(1);
this.boss2walk.boss2arm2.gotoAndStop(1);
this.boss2attack.boss2head.gotoAndStop(1);
this.boss2attack.boss2arm1.gotoAndStop(1);
this.boss2attack.boss2arm2.gotoAndStop(1);
_root.bossarmor = false;
unloadMovie (this.boss2armor);
}
if ((this.boss2hp._xscale < 0) && (enemies[nm].dead == false)) {
_root.gold = _root.gold + (random(35) + 20);
unloadMovie (this.efire);
unloadMovie (this.boss2hp);
_root.kills = _root.kills - 1;
_root.gotoAndStop(7);
if (enemies[nm].deadanim == 1) {
unloadMovie (this.eblood);
unloadMovie (this.crit);
this.gotoAndStop("death");
} else if (enemies[nm].deadanim == 2) {
this.gotoAndStop("death2");
unloadMovie (this.eblood);
} else if (enemies[nm].deadanim == 3) {
this.gotoAndStop("death3");
unloadMovie (this.eblood);
}
enemies[nm].espeed = 0;
enemies[nm].dead = true;
}
if (this.ehit.hitTest(_root.hero.herohit) && (enemies[nm].dead == false)) {
if (enemies[nm].touched == false) {
this.gotoAndStop("attack");
enemies[nm].espeed = 0;
enemies[nm].touched = true;
}
} else if (enemies[nm].dead == false) {
this.gotoAndStop("walk");
enemies[nm].touched = false;
enemies[nm].espeed = enemies[nm].espeed + 0.2;
}
if (enemies[nm].espeed > enemies[nm].emaxspeed) {
enemies[nm].espeed = enemies[nm].emaxspeed;
}
enemies[nm].grav++;
this._y = this._y + enemies[nm].grav;
while (_root.ground.hitTest(this._x, this._y + 10, true)) {
this._y--;
enemies[nm].grav = 0;
}
distance = 4000;
tx = this._x;
ty = this._y;
sx = _root.hero._x;
sy = _root.hero._y;
if (Math.sqrt(((sx - tx) * (sx - tx)) + ((sy - ty) * (sy - ty))) < distance) {
if (tx < sx) {
this._x = this._x + enemies[nm].espeed;
if (enemies[nm].dead == false) {
this._xscale = -100;
}
}
if (tx > sx) {
this._x = this._x - enemies[nm].espeed;
if (enemies[nm].dead == false) {
this._xscale = 100;
}
}
}
this._rotation = Math.atan2(this.dy, this.dx) * 57.2957795130823;
};
pCount++;
}
};
test = function () {
if (_root.lvl == 1) {
enemy1 = setInterval(enemy, 6000 / _root.lvl);
} else if (_root.lvl == 2) {
enemy1 = setInterval(enemy, 4500);
} else if (_root.lvl == 3) {
enemy1 = setInterval(enemy, 2500);
} else {
enemy1 = setInterval(enemy, 2000);
}
};
test();
test2 = function () {
if (_root.lvl == 4) {
plane2Launcher = setInterval(launchEnemy2, 19000);
} else if (_root.lvl == 5) {
plane2Launcher = setInterval(launchEnemy2, 14000);
} else {
plane2Launcher = setInterval(launchEnemy2, 10000);
}
};
test3 = function () {
if (_root.lvl == 7) {
plane3Launcher = setInterval(launchEnemy3, 22000);
} else if (_root.lvl == 8) {
plane3Launcher = setInterval(launchEnemy3, 20000);
} else {
plane3Launcher = setInterval(launchEnemy3, 18000);
}
};
test4 = function () {
if (_root.lvl == 10) {
plane4Launcher = setInterval(launchEnemy4, 20000);
} else if (_root.lvl == 11) {
plane4Launcher = setInterval(launchEnemy4, 16000);
} else {
plane4Launcher = setInterval(launchEnemy4, 16000);
}
};
plane5Launcher = setInterval(launchEnemy5, 30000);
plane6Launcher = setInterval(launchEnemy6, 35000);
mptic = setInterval(mptic, 1000);
hptic2 = setInterval(hptic, 9000);
Instance of Symbol 525 MovieClip "rightblock" in Frame 5
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.hero._x = _root.hero._x + _root.hero.speed;
_root._x = _root._x - _root.hero.speed;
_root.bloodscreen._x = _root.bloodscreen._x + _root.hero.speed;
_root.hp._x = _root.hp._x + _root.hero.speed;
_root.pwr._x = _root.pwr._x + _root.hero.speed;
_root.rage._x = _root.rage._x + _root.hero.speed;
_root.gold2._x = _root.gold2._x + _root.hero.speed;
_root.window._x = _root.window._x + _root.hero.speed;
_root.mountains._x = _root.mountains._x - (_root.hero.speed / 6);
}
if (this.hitTest(_root.bulleter)) {
unloadMovie (_root.bulleter);
if (_root.exparrow == true) {
_root.attachMovie("fire", "fire2", 2, {_x:_root.bulleter._x, _y:_root.bulleter._y + 25});
}
}
if (this.hitTest(_root.bulleter2)) {
unloadMovie (_root.bulleter2);
if (_root.exparrow == true) {
_root.attachMovie("fire", "fire2", 3, {_x:_root.bulleter2._x, _y:_root.bulleter2._y + 25});
}
}
if (this.hitTest(_root.bulleter3)) {
unloadMovie (_root.bulleter3);
if (_root.exparrow == true) {
_root.attachMovie("fire", "fire2", 4, {_x:_root.bulleter3._x, _y:_root.bulleter2._y + 25});
}
}
if (this.hitTest(_root.bulleter4)) {
unloadMovie (_root.bulleter4);
if (_root.exparrow == true) {
_root.attachMovie("fire", "fire2", 5, {_x:_root.bulleter4._x, _y:_root.bulleter4._y + 25});
}
}
}
Instance of Symbol 527 MovieClip "leftblock" in Frame 5
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.hero._x = _root.hero._x - _root.hero.speed;
_root._x = _root._x + _root.hero.speed;
_root.bloodscreen._x = _root.bloodscreen._x - _root.hero.speed;
_root.hp._x = _root.hp._x - _root.hero.speed;
_root.pwr._x = _root.pwr._x - _root.hero.speed;
_root.rage._x = _root.rage._x - _root.hero.speed;
_root.gold2._x = _root.gold2._x - _root.hero.speed;
_root.window._x = _root.window._x - _root.hero.speed;
_root.mountains._x = _root.mountains._x + (_root.hero.speed / 6);
}
if (this.hitTest(_root.bulleter)) {
unloadMovie (_root.bulleter);
if (_root.exparrow == true) {
_root.attachMovie("fire", "fire2", 2, {_x:_root.bulleter._x, _y:_root.bulleter._y + 25});
}
}
if (this.hitTest(_root.bulleter2)) {
unloadMovie (_root.bulleter2);
if (_root.exparrow == true) {
_root.attachMovie("fire", "fire2", 3, {_x:_root.bulleter2._x, _y:_root.bulleter2._y + 25});
}
}
if (this.hitTest(_root.bulleter3)) {
unloadMovie (_root.bulleter3);
if (_root.exparrow == true) {
_root.attachMovie("fire", "fire2", 4, {_x:_root.bulleter3._x, _y:_root.bulleter2._y + 25});
}
}
if (this.hitTest(_root.bulleter4)) {
unloadMovie (_root.bulleter4);
if (_root.exparrow == true) {
_root.attachMovie("fire", "fire2", 5, {_x:_root.bulleter4._x, _y:_root.bulleter4._y + 25});
}
}
}
Instance of Symbol 529 MovieClip "arrowhit" in Frame 5
onClipEvent (enterFrame) {
if (this.hitTest(((_root.bulleter || (_root.bulleter2)) || (_root.bulleter3)) || (_root.bulleter4))) {
unloadMovie (_root.bulleter);
unloadMovie (_root.bulleter2);
unloadMovie (_root.bulleter3);
unloadMovie (_root.bulleter4);
}
}
Instance of Symbol 491 MovieClip "hero" in Frame 5
onClipEvent (load) {
grav = 0;
speed = 7 * _root.agi;
jumpHeight = 10 * _root.jumpPow;
scale = _xscale;
slowfall = 0.8;
attacking = false;
jumping = false;
djumping = false;
upkey = false;
_root.maxshoottime = 100;
}
onClipEvent (enterFrame) {
grav++;
_y = (_y + grav);
while (_root.ground.hitTest(_x, _y, true)) {
_y = (_y-1);
grav = 0;
}
if ((dir == "left") && (!this.hitTest(_root.rightblock._x))) {
_root.bloodscreen._x = _root.bloodscreen._x - speed;
_root.gold2._x = _root.gold2._x - speed;
_root.hp._x = _root.hp._x - speed;
_root.pwr._x = _root.pwr._x - speed;
_root.rage._x = _root.rage._x - speed;
_root.window._x = _root.window._x - speed;
_root.mountains._x = _root.mountains._x + (speed / 6);
_root._x = _root._x + speed;
} else if ((dir == "right") && (!this.hitTest(_root.leftblock._x))) {
_root.bloodscreen._x = _root.bloodscreen._x + speed;
_root.gold2._x = _root.gold2._x + speed;
_root.hp._x = _root.hp._x + speed;
_root.pwr._x = _root.pwr._x + speed;
_root.rage._x = _root.rage._x + speed;
_root.window._x = _root.window._x + speed;
_root.mountains._x = _root.mountains._x - (speed / 6);
_root._x = _root._x - speed;
}
if (Key.isDown(39)) {
_root.bow = false;
dir = "right";
if (_root.run == false) {
speed = _root.agi;
} else {
speed = _root.agi * 1.5;
}
_xscale = scale;
this._x = this._x + speed;
if (_root.ground.hitTest(_x, _y + 3, true)) {
if ((_root.run == false) && (_root.rageanim == false)) {
this.gotoAndStop("walk");
} else if (((_root.run == true) && (_root.stab == false)) && (_root.rageanim == false)) {
this.gotoAndStop("run");
} else if ((_root.stab == true) && (_root.rageanim == false)) {
if ((_root.pwr._xscale > 7) && (_root.stabsk == true)) {
this.gotoAndStop("stab");
}
}
}
} else if (Key.isDown(37)) {
_root.bow = false;
dir = "left";
if (_root.run == false) {
speed = _root.agi;
} else {
speed = _root.agi * 1.5;
}
_xscale = (-scale);
this._x = this._x - speed;
if (_root.ground.hitTest(_x, _y + 3, true)) {
if ((_root.run == false) && (_root.rageanim == false)) {
this.gotoAndStop("walk");
} else if (((_root.run == true) && (_root.stab == false)) && (_root.rageanim == false)) {
this.gotoAndStop("run");
} else if (_root.stab == true) {
if (((_root.pwr._xscale > 7) && (_root.stabsk == true)) && (_root.rageanim == false)) {
this.gotoAndStop("stab");
}
}
}
} else if ((((((((speed < 2) && (!jumping)) && (!djumping)) && (_root.dswing == false)) && (_root.tswing == false)) && (_root.bow == false)) && (_root.rageanim == false)) && (_root.attacking == false)) {
speed = 0;
this.gotoAndStop("idle");
} else {
speed = 0;
}
if (!_root.shooting) {
_root.timer = 0;
_root.mvsp = _xscale / 2;
}
if (Key.isDown(16)) {
_root.run = true;
}
if (Key.isDown(17)) {
_root.stab = true;
}
if (Key.isDown(40)) {
grav = grav * slowfall;
}
if (Key.isDown(86) && (_root.rageready == true)) {
_root.rage._xscale = 1;
_root.rage.gotoAndStop(1);
}
if (_root.ground.hitTest(this._x, this._y + 2, true)) {
jumping = false;
djumping = false;
}
if (Key.isDown(38)) {
if ((!jumping) && (_root.rageanim == false)) {
grav = -jumpHeight;
jumping = true;
upkey = false;
_y = (_y - 4);
this.gotoAndPlay("jump");
var snd = new Sound();
snd.attachSound("jump1");
snd.start(0, 1);
}
}
if (((Key.isDown(38) && (djumping == false)) && (upkey == true)) && (_root.rageanim == false)) {
grav = -jumpHeight;
_y = (_y - 4);
djumping = true;
upkey = false;
this.gotoAndPlay("jump");
}
if (_root.ground.hitTest(_x + (_width / 2), _y - (_height / 2), true) || (_root.ground.hitTest(_x + (_width / 2), _y - ((_height / 6) * 4), true))) {
_x = (_x - speed);
}
if (_root.ground.hitTest(_x - (_width / 2), _y - (_height / 2), true) || (_root.ground.hitTest(_x - (_width / 2), _y - ((_height / 6) * 4), true))) {
_x = (_x + speed);
}
if (_root.ground.hitTest(_x, _y - _height, true)) {
grav = 2;
}
if ((((_root.dswing == true) && (speed == 0)) && (_root.dsk == true)) && (_root.rageanim == false)) {
if (_root.pwr._xscale > 12) {
this.gotoAndStop("dswing");
}
}
if ((((_root.tswing == true) && (speed == 0)) && (_root.tsk == true)) && (_root.rageanim == false)) {
if (_root.pwr._xscale > 14) {
this.gotoAndStop("tswing");
}
}
if (((_root.attacking == true) && (speed == 0)) && (_root.rageanim == false)) {
this.gotoAndStop("attack");
speed = 0;
}
if ((_root.rageanim == true) && (_root.rageready == true)) {
this.gotoAndStop("rageswing");
}
if (this.hitTest(_root.bulleter)) {
this.gotoAndStop("shoot");
}
if (_root.pwr._xscale < 0) {
_root.pwr._xscale = 0;
}
if (Key.isDown(32)) {
if (((!_root.shooting) && (_root.rageanim == false)) && (_root.training == false)) {
_root.gold2.arrowload.gotoAndPlay(1);
var snd = new Sound();
snd.attachSound("arrowfire");
snd.start(0, 1);
if (_root.multi == 4) {
_root.attachMovie("bullet4", "bulleter4", 57, {_x:_root.hero._x, _y:_root.hero._y - 11});
_root.attachMovie("bullet3", "bulleter3", 56, {_x:_root.hero._x, _y:_root.hero._y - 15});
_root.attachMovie("bullet2", "bulleter2", 55, {_x:_root.hero._x, _y:_root.hero._y - 20});
} else if (_root.multi == 3) {
_root.attachMovie("bullet3", "bulleter3", 56, {_x:_root.hero._x, _y:_root.hero._y - 15});
_root.attachMovie("bullet2", "bulleter2", 55, {_x:_root.hero._x, _y:_root.hero._y - 20});
} else if (_root.multi == 2) {
_root.attachMovie("bullet2", "bulleter2", 55, {_x:_root.hero._x, _y:_root.hero._y - 20});
}
_root.attachMovie("bullet", "bulleter", 1, {_x:_root.hero._x, _y:_root.hero._y - 25});
_root.shooting = true;
if (dir == "left") {
_root.bulleter._xscale = -100;
_root.bulleter2._xscale = -100;
_root.bulleter3._xscale = -100;
_root.bulleter4._xscale = -100;
}
with (_root.bulleter) {
onEnterFrame = function () {
if (_root.timer > _root.maxshoottime) {
_root.shooting = false;
unloadMovie(this);
}
_root.timer++;
_x = _x + (_root.mvsp * _root.attackspeed);
_root.bulleter2._x = _root.bulleter2._x + (_root.mvsp * 0.9);
_root.bulleter3._x = _root.bulleter3._x + (_root.mvsp * 0.8);
_root.bulleter4._x = _root.bulleter4._x + (_root.mvsp * 0.7);
};
}
attacking = true;
speed = 0;
}
}
}
onClipEvent (keyUp) {
if (Key.getCode() == 16) {
_root.run = false;
}
if (Key.getCode() == 17) {
_root.stab = true;
_root.attacking = true;
}
if (Key.getCode() == 38) {
upkey = true;
}
if (Key.getCode() == 90) {
_root.dswing = true;
}
if (Key.getCode() == 88) {
_root.tswing = true;
}
if (Key.getCode() == 32) {
_root.bow = true;
}
if (Key.getCode() == 86) {
if (_root.rageready == true) {
_root.rageanim = true;
}
}
if (Key.getCode() == 67) {
if (((_root.critrush == false) && (_root.pwr._xscale > 50)) && (_root.critsk == true)) {
_root.critrush = true;
_root.crit = _root.crit + 15;
_root.pwr._xscale = _root.pwr._xscale - 50;
this.critrush.gotoAndPlay(2);
}
}
}
Instance of Symbol 533 MovieClip "bloodscreen" in Frame 5
onClipEvent (enterFrame) {
if (_root.rightblock.hitTest(this._x, this._y + 10, true)) {
this._x = this._x + _root.hero.speed;
}
}
Instance of Symbol 535 MovieClip "hp" in Frame 5
onClipEvent (enterFrame) {
if (this._xscale > _root.maxhp) {
this._xscale = _root.maxhp;
}
if (this._xscale < 0) {
_root.gotoAndStop(6);
unloadMovie (_root.hero);
}
}
Instance of Symbol 537 MovieClip "pwr" in Frame 5
onClipEvent (enterFrame) {
if (this._xscale > _root.maxmp) {
this._xscale = _root.maxmp;
}
}
Instance of Symbol 542 MovieClip "rage" in Frame 5
onClipEvent (load) {
this._xscale = 1;
}
onClipEvent (enterFrame) {
if (this._xscale > 100) {
this.gotoAndStop(2);
this._xscale = 100;
_root.rageready = true;
}
}
Instance of Symbol 885 MovieClip "window" in Frame 5
onClipEvent (enterFrame) {
swapDepths(_root.x);
if (((_root.kills <= 0) && (_root.trainwin == false)) && (_root.boss1dead == true)) {
_root.kills = 0;
_root.training = true;
this.gotoAndStop(2);
}
}
Frame 6
stop();
_root.dead = true;
clearInterval(_root.enemy1);
clearInterval(_root.plane2Launcher);
clearInterval(_root.plane3Launcher);
clearInterval(_root.plane4Launcher);
Frame 7
stop();
_root._x = 0;
_root.dead = true;
clearInterval(_root.enemy1);
clearInterval(_root.plane2Launcher);
clearInterval(_root.plane3Launcher);
clearInterval(_root.plane4Launcher);
Symbol 10 MovieClip [bullet4] Frame 81
unloadMovie (this);
Symbol 10 MovieClip [bullet4] Frame 150
unloadMovie (this);
Symbol 10 MovieClip [bullet4] Frame 220
stop();
Symbol 11 MovieClip [bullet3] Frame 81
unloadMovie (this);
Symbol 11 MovieClip [bullet3] Frame 151
unloadMovie (this);
Symbol 11 MovieClip [bullet3] Frame 221
stop();
Symbol 12 MovieClip [bullet2] Frame 81
unloadMovie (this);
Symbol 12 MovieClip [bullet2] Frame 220
stop();
Symbol 13 MovieClip [bullet] Frame 81
unloadMovie (this);
Symbol 13 MovieClip [bullet] Frame 150
unloadMovie (this);
Symbol 13 MovieClip [bullet] Frame 221
stop();
Symbol 23 MovieClip Frame 1
stop();
Symbol 23 MovieClip Frame 2
stop();
Symbol 28 MovieClip Frame 1
stop();
Symbol 28 MovieClip Frame 2
stop();
Symbol 31 MovieClip Frame 1
stop();
Symbol 31 MovieClip Frame 2
stop();
Symbol 36 MovieClip Frame 1
stop();
Symbol 64 MovieClip Frame 1
stop();
Symbol 64 MovieClip Frame 2
stop();
Symbol 68 MovieClip Frame 1
stop();
Symbol 77 MovieClip Frame 52
unloadMovie (this);
Symbol 78 MovieClip Frame 7
_root.bloodscreen.gotoAndPlay(2);
_root.hp._xscale = _root.hp._xscale - (30 / _root.armor);
_root.rage._xscale = _root.rage._xscale + (8 + random(2));
Symbol 80 MovieClip Frame 50
unloadMovie (this);
Symbol 112 MovieClip Frame 35
unloadMovie (this);
Symbol 113 MovieClip [boss2] Frame 1
stop();
Instance of Symbol 32 MovieClip "boss2walk" in Symbol 113 MovieClip [boss2] Frame 1
onClipEvent (load) {
if (_root.bossarmor == true) {
this.boss2head.gotoAndStop(2);
this.boss2arm1.gotoAndStop(2);
this.boss2arm2.gotoAndStop(2);
}
}
Symbol 113 MovieClip [boss2] Frame 2
stop();
Symbol 113 MovieClip [boss2] Frame 3
stop();
Instance of Symbol 78 MovieClip "boss2attack" in Symbol 113 MovieClip [boss2] Frame 3
onClipEvent (load) {
if (_root.bossarmor == true) {
this.boss2head.gotoAndStop(2);
this.boss2arm1.gotoAndStop(2);
this.boss2arm2.gotoAndStop(2);
}
}
Symbol 113 MovieClip [boss2] Frame 4
stop();
Symbol 113 MovieClip [boss2] Frame 5
stop();
Symbol 131 MovieClip Frame 126
_root.boss1dead = true;
unloadMovie (this);
Symbol 132 MovieClip Frame 3
_root.bloodscreen.gotoAndPlay(2);
_root.hp._xscale = _root.hp._xscale - ((20 / _root.armor) / _root.diff);
_root.rage._xscale = _root.rage._xscale + (10 + random(2));
Symbol 133 MovieClip [enemy5] Frame 1
stop();
Symbol 133 MovieClip [enemy5] Frame 2
stop();
Symbol 133 MovieClip [enemy5] Frame 3
stop();
Symbol 133 MovieClip [enemy5] Frame 4
stop();
Symbol 133 MovieClip [enemy5] Frame 5
stop();
Symbol 135 MovieClip Frame 4
_root.bloodscreen.gotoAndPlay(2);
_root.hp._xscale = _root.hp._xscale - (70 / _root.armor);
_root.rage._xscale = _root.rage._xscale + (10 + random(2));
Symbol 136 MovieClip [enemy4] Frame 1
stop();
Symbol 136 MovieClip [enemy4] Frame 2
stop();
Symbol 136 MovieClip [enemy4] Frame 3
stop();
Symbol 136 MovieClip [enemy4] Frame 4
stop();
Symbol 136 MovieClip [enemy4] Frame 5
stop();
Symbol 149 MovieClip Frame 90
unloadMovie (this);
Symbol 150 MovieClip Frame 10
_root.bloodscreen.gotoAndPlay(2);
_root.hp._xscale = _root.hp._xscale - (50 / _root.armor);
_root.rage._xscale = _root.rage._xscale + (10 + random(2));
Symbol 153 MovieClip Frame 63
unloadMovie (this);
Symbol 154 MovieClip [enemy3] Frame 1
stop();
Symbol 154 MovieClip [enemy3] Frame 2
stop();
Symbol 154 MovieClip [enemy3] Frame 3
stop();
Symbol 154 MovieClip [enemy3] Frame 4
stop();
Symbol 154 MovieClip [enemy3] Frame 5
stop();
Symbol 169 MovieClip Frame 54
unloadMovie (this);
Symbol 170 MovieClip Frame 4
_root.bloodscreen.gotoAndPlay(2);
_root.hp._xscale = _root.hp._xscale - ((15 / _root.armor) / _root.diff);
_root.rage._xscale = _root.rage._xscale + (10 + random(2));
Symbol 173 MovieClip Frame 59
unloadMovie (this);
Symbol 174 MovieClip [enemy2] Frame 1
stop();
Symbol 174 MovieClip [enemy2] Frame 2
stop();
Symbol 174 MovieClip [enemy2] Frame 3
stop();
Symbol 174 MovieClip [enemy2] Frame 4
stop();
Symbol 174 MovieClip [enemy2] Frame 5
stop();
Symbol 270 MovieClip Frame 50
unloadMovie (this);
Symbol 271 MovieClip Frame 4
_root.bloodscreen.gotoAndPlay(2);
_root.hp._xscale = _root.hp._xscale - ((8 / _root.armor) / _root.diff);
_root.rage._xscale = _root.rage._xscale + (10 + random(2));
Symbol 272 MovieClip Frame 62
unloadMovie (this);
Symbol 273 MovieClip [plane] Frame 1
stop();
Symbol 273 MovieClip [plane] Frame 2
stop();
Symbol 273 MovieClip [plane] Frame 3
stop();
Symbol 273 MovieClip [plane] Frame 4
stop();
Symbol 273 MovieClip [plane] Frame 5
stop();
Symbol 280 MovieClip [fire3] Frame 35
removeMovieClip(this);
Symbol 281 MovieClip [fire] Frame 17
removeMovieClip(this);
Symbol 281 MovieClip [fire] Frame 24
unloadMovie (this);
Symbol 288 MovieClip Frame 1
stop();
Symbol 288 MovieClip Frame 2
stop();
Symbol 288 MovieClip Frame 3
stop();
Symbol 288 MovieClip Frame 4
stop();
Symbol 295 MovieClip Frame 1
stop();
Symbol 295 MovieClip Frame 3
stop();
Symbol 295 MovieClip Frame 4
stop();
Symbol 300 MovieClip Frame 1
stop();
Symbol 300 MovieClip Frame 2
stop();
Symbol 300 MovieClip Frame 3
stop();
Symbol 300 MovieClip Frame 4
stop();
Symbol 304 MovieClip Frame 1
stop();
Symbol 304 MovieClip Frame 2
_root.enchant = 1;
Symbol 304 MovieClip Frame 32
_root.enchant = 2;
Symbol 304 MovieClip Frame 60
gotoAndPlay (32);
Symbol 304 MovieClip Frame 90
gotoAndPlay (61);
Symbol 314 MovieClip Frame 1
stop();
Instance of Symbol 304 MovieClip "enchant" in Symbol 314 MovieClip Frame 1
onClipEvent (load) {
if (_root.swordType == 4) {
this._y = this._y - 40;
this._x = this._x + 50;
this._xscale = this._xscale + 40;
}
if (_root.swordType == 5) {
this._y = this._y - 40;
this._x = this._x + 50;
this._xscale = this._xscale + 80;
}
if (_root.swordType == 6) {
this._y = this._y - 0;
this._x = this._x + 10;
this._xscale = this._xscale + 80;
}
}
Symbol 314 MovieClip Frame 2
stop();
Symbol 314 MovieClip Frame 3
stop();
Symbol 314 MovieClip Frame 4
stop();
Symbol 314 MovieClip Frame 5
stop();
Symbol 314 MovieClip Frame 6
stop();
Symbol 314 MovieClip Frame 7
stop();
Symbol 319 MovieClip Frame 1
stop();
Symbol 319 MovieClip Frame 2
stop();
Symbol 319 MovieClip Frame 3
stop();
Symbol 319 MovieClip Frame 4
stop();
Symbol 320 MovieClip [herodead] Frame 68
stop();
Symbol 335 MovieClip Frame 1
stop();
Symbol 335 MovieClip Frame 2
stop();
Symbol 335 MovieClip Frame 3
stop();
Symbol 335 MovieClip Frame 4
stop();
Symbol 335 MovieClip Frame 5
stop();
Symbol 335 MovieClip Frame 6
stop();
Symbol 335 MovieClip Frame 7
stop();
Symbol 335 MovieClip Frame 8
stop();
Symbol 335 MovieClip Frame 9
stop();
Symbol 335 MovieClip Frame 10
stop();
Symbol 335 MovieClip Frame 11
stop();
Symbol 335 MovieClip Frame 12
stop();
Symbol 383 Button
on (release) {
getURL ("http://www.newgrounds.com", "_blank");
}
Symbol 392 Button
on (release) {
startMovie();
}
Symbol 394 MovieClip Frame 1
function timerHandler() {
if (!loadingComplete) {
var _local4 = _root.getBytesLoaded() / _root.getBytesTotal();
bar._xscale = 100 * _local4;
if (_local4 == 1) {
loadingComplete = true;
if (AUTO_PLAY) {
startMovie();
} else {
gotoAndStop ("loaded");
}
return(undefined);
}
}
dt = getTimer() - time;
time = time + dt;
frameAccum = frameAccum + dt;
var _local3 = 0;
while ((frameAccum >= FRAME_TIME) && (_local3 < MAX_FRAME_SKIP)) {
advanceFrame(tankLogo, true, true);
advanceFrame(loadingText, false, true);
advanceFrame(barGfx, false, true);
if (loadingComplete) {
advanceFrame(this, false, false);
}
(frameAccum = frameAccum - FRAME_TIME);
_local3++;
}
updateAfterEvent();
}
function advanceFrame(clip, recurse, loop) {
if (!clip) {
return(undefined);
}
clip.stop();
if (clip._currentframe == clip._totalframes) {
if (loop) {
clip.gotoAndStop(1);
}
} else {
clip.nextFrame();
}
if (recurse) {
for (childName in clip) {
if (typeof(clip[childName]) == "movieclip") {
advanceFrame(clip[childName], recurse, loop);
}
}
}
}
function startMovie() {
clearInterval(intervalId);
_root.play();
}
_root.stop();
stop();
var FRAME_TIME = 33.3333333333333;
var AUTO_PLAY = false;
var MAX_FRAME_SKIP = 5;
var loadingComplete;
var intervalId;
var time;
var frameAccum;
loadingComplete = false;
intervalId = setInterval(this, "timerHandler", FRAME_TIME / 2);
frameAccum = 0;
time = getTimer();
timerHandler();
Symbol 394 MovieClip Frame 2
stop();
Symbol 411 Button
on (release) {
_root.fadermain.gotoAndPlay(36);
_root.newgame = true;
}
Symbol 414 Button
on (release) {
_root.fadermain.gotoAndPlay(36);
_root.controlls = true;
}
Symbol 415 MovieClip Frame 1
if (_root.titledone == true) {
gotoAndStop (158);
}
Symbol 415 MovieClip Frame 158
stop();
Symbol 421 MovieClip Frame 1
stop();
if (_root.musicplay == false) {
this.gotoAndStop(2);
}
Symbol 421 MovieClip Frame 2
stop();
_root.musicplay = true;
Symbol 423 MovieClip Frame 35
stop();
Symbol 423 MovieClip Frame 60
if (_root.newgame == true) {
_root.gotoAndStop(4);
} else if (_root.controlls == true) {
_root.gotoAndStop(3);
}
Symbol 437 Button
on (release) {
_root.gotoAndStop(2);
_root.titledone = true;
}
Symbol 448 MovieClip Frame 1
if (_root.gold2.tut._currentframe == 7) {
_root.gold2.tut.gotoAndStop(8);
}
Symbol 448 MovieClip Frame 7
_root.bow = false;
Symbol 457 MovieClip Frame 5
stop();
if (_root.gold2.tut._currentframe == 3) {
_root.gold2.tut.gotoAndStop(4);
}
Symbol 470 Button
on (release) {
_root.movie.gotoAndPlay(610);
}
Symbol 471 MovieClip Frame 10
stop();
Symbol 473 MovieClip Frame 1
stop();
Symbol 473 MovieClip Frame 510
_root.critrush = false;
_root.crit = _root.crit - 15;
Symbol 474 MovieClip Frame 1
_root.dswing = false;
_root.tswing = false;
_root.stab = false;
Symbol 479 MovieClip Frame 1
_root.dswing = false;
_root.tswing = false;
_root.attacking = false;
_root.stab = false;
Symbol 479 MovieClip Frame 10
if (_root.gold2.tut._currentframe == 2) {
_root.gold2.tut.gotoAndStop(3);
}
Symbol 480 MovieClip Frame 1
play();
_root.dswing = false;
_root.tswing = false;
_root.attacking = false;
Symbol 480 MovieClip Frame 10
if (_root.gold2.tut._currentframe == 5) {
_root.gold2.tut.gotoAndStop(6);
}
Symbol 483 MovieClip Frame 11
variable = random(2) + 1;
if (variable == 1) {
var snd = new Sound();
snd.attachSound("swing");
snd.start(0, 1);
} else {
var snd = new Sound();
snd.attachSound("swing2");
snd.start(0, 1);
}
Symbol 483 MovieClip Frame 12
if (_root.gold2.tut._currentframe == 6) {
_root.gold2.tut.gotoAndStop(7);
}
Symbol 483 MovieClip Frame 15
_root.attacking = false;
Symbol 485 MovieClip Frame 1
_root.pwr._xscale = _root.pwr._xscale - 7;
Symbol 485 MovieClip Frame 20
_root.stab = false;
Symbol 486 MovieClip Frame 9
if (_root.gold2.tut._currentframe == 4) {
_root.gold2.tut.gotoAndStop(5);
}
Symbol 487 MovieClip Frame 1
_root.pwr._xscale = _root.pwr._xscale - 12;
Symbol 487 MovieClip Frame 22
_root.dswing = false;
Symbol 488 MovieClip Frame 1
play();
_root.pwr._xscale = _root.pwr._xscale - 14;
Symbol 488 MovieClip Frame 20
_root.tswing = false;
Symbol 490 MovieClip Frame 1
play();
Symbol 490 MovieClip Frame 69
_root.rageanim = false;
_root.rageready = false;
Symbol 491 MovieClip Frame 1
stop();
Instance of Symbol 474 MovieClip "idle" in Symbol 491 MovieClip Frame 1
onClipEvent (load) {
if (_root.swordType == 1) {
this.weapon.gotoAndStop(1);
_root.dmg = 1;
}
if (_root.swordType == 2) {
this.weapon.gotoAndStop(2);
_root.dmg = 2;
}
if (_root.swordType == 3) {
this.weapon.gotoAndStop(3);
_root.dmg = 3;
}
if (_root.swordType == 4) {
this.weapon.gotoAndStop(4);
_root.dmg = 4;
}
if (_root.swordType == 5) {
this.weapon.gotoAndStop(5);
_root.dmg = 5;
}
if (_root.swordType == 6) {
this.weapon.gotoAndStop(6);
_root.dmg = 5.5;
}
if (_root.swordType == 7) {
this.weapon.gotoAndStop(7);
_root.dmg = 6;
}
if (_root.enchant == 1) {
this.weapon.enchant.gotoAndPlay(2);
} else if (_root.enchant == 2) {
this.weapon.enchant.gotoAndPlay(32);
} else if (_root.enchant == 3) {
this.weapon.enchant.gotoAndPlay(61);
}
if (_root.armortype == 2) {
this.arm1.gotoAndStop(2);
this.leg1.gotoAndStop(2);
this.leg2.gotoAndStop(2);
this.head.gotoAndStop(2);
_root.armor = 2;
}
if (_root.armortype == 3) {
this.arm1.gotoAndStop(3);
this.leg1.gotoAndStop(3);
this.leg2.gotoAndStop(3);
this.head.gotoAndStop(3);
_root.armor = 3;
}
if (_root.armortype == 4) {
this.arm1.gotoAndStop(4);
this.leg1.gotoAndStop(4);
this.leg2.gotoAndStop(4);
this.head.gotoAndStop(4);
_root.armor = 4;
}
if (_root.armortype == 1) {
this.arm1.gotoAndStop(1);
this.leg1.gotoAndStop(1);
this.leg2.gotoAndStop(1);
this.head.gotoAndStop(1);
_root.armor = 1;
}
}
Symbol 491 MovieClip Frame 2
stop();
Instance of Symbol 479 MovieClip "walk" in Symbol 491 MovieClip Frame 2
onClipEvent (load) {
if (_root.swordType == 1) {
this.weapon.gotoAndStop(1);
_root.dmg = 1;
}
if (_root.swordType == 2) {
this.weapon.gotoAndStop(2);
_root.dmg = 2;
}
if (_root.swordType == 3) {
this.weapon.gotoAndStop(3);
_root.dmg = 3;
}
if (_root.swordType == 4) {
this.weapon.gotoAndStop(4);
_root.dmg = 4;
}
if (_root.swordType == 5) {
this.weapon.gotoAndStop(5);
_root.dmg = 5;
}
if (_root.swordType == 6) {
this.weapon.gotoAndStop(6);
_root.dmg = 5.5;
}
if (_root.swordType == 7) {
this.weapon.gotoAndStop(7);
_root.dmg = 6;
}
if (_root.enchant == 1) {
this.weapon.enchant.gotoAndPlay(2);
} else if (_root.enchant == 2) {
this.weapon.enchant.gotoAndPlay(32);
} else if (_root.enchant == 3) {
this.weapon.enchant.gotoAndPlay(61);
}
if (_root.armortype == 2) {
this.arm1.gotoAndStop(2);
this.leg1.gotoAndStop(2);
this.leg2.gotoAndStop(2);
this.head.gotoAndStop(2);
_root.armor = 2;
}
if (_root.armortype == 3) {
this.arm1.gotoAndStop(3);
this.leg1.gotoAndStop(3);
this.leg2.gotoAndStop(3);
this.head.gotoAndStop(3);
_root.armor = 3;
}
if (_root.armortype == 4) {
this.arm1.gotoAndStop(4);
this.leg1.gotoAndStop(4);
this.leg2.gotoAndStop(4);
this.head.gotoAndStop(4);
_root.armor = 4;
}
if (_root.armortype == 1) {
this.arm1.gotoAndStop(1);
this.leg1.gotoAndStop(1);
this.leg2.gotoAndStop(1);
this.head.gotoAndStop(1);
_root.armor = 1;
}
}
Symbol 491 MovieClip Frame 3
stop();
Instance of Symbol 480 MovieClip "run" in Symbol 491 MovieClip Frame 3
onClipEvent (load) {
if (_root.swordType == 1) {
this.weapon.gotoAndStop(1);
_root.dmg = 1;
}
if (_root.swordType == 2) {
this.weapon.gotoAndStop(2);
_root.dmg = 2;
}
if (_root.swordType == 3) {
this.weapon.gotoAndStop(3);
_root.dmg = 3;
}
if (_root.swordType == 4) {
this.weapon.gotoAndStop(4);
_root.dmg = 4;
}
if (_root.swordType == 5) {
this.weapon.gotoAndStop(5);
_root.dmg = 5;
}
if (_root.swordType == 6) {
this.weapon.gotoAndStop(6);
_root.dmg = 5.5;
}
if (_root.swordType == 7) {
this.weapon.gotoAndStop(7);
_root.dmg = 6;
}
if (_root.enchant == 1) {
this.weapon.enchant.gotoAndPlay(2);
} else if (_root.enchant == 2) {
this.weapon.enchant.gotoAndPlay(32);
} else if (_root.enchant == 3) {
this.weapon.enchant.gotoAndPlay(61);
}
if (_root.armortype == 2) {
this.arm1.gotoAndStop(2);
this.leg1.gotoAndStop(2);
this.leg2.gotoAndStop(2);
this.head.gotoAndStop(2);
_root.armor = 2;
}
if (_root.armortype == 3) {
this.arm1.gotoAndStop(3);
this.leg1.gotoAndStop(3);
this.leg2.gotoAndStop(3);
this.head.gotoAndStop(3);
_root.armor = 3;
}
if (_root.armortype == 4) {
this.arm1.gotoAndStop(4);
this.leg1.gotoAndStop(4);
this.leg2.gotoAndStop(4);
this.head.gotoAndStop(4);
_root.armor = 4;
}
if (_root.armortype == 1) {
this.arm1.gotoAndStop(1);
this.leg1.gotoAndStop(1);
this.leg2.gotoAndStop(1);
this.head.gotoAndStop(1);
_root.armor = 1;
}
}
Symbol 491 MovieClip Frame 4
stop();
Instance of Symbol 483 MovieClip "attack" in Symbol 491 MovieClip Frame 4
onClipEvent (load) {
if (_root.swordType == 1) {
this.weapon.gotoAndStop(1);
_root.dmg = 1;
}
if (_root.swordType == 2) {
this.weapon.gotoAndStop(2);
_root.dmg = 2;
}
if (_root.swordType == 3) {
this.weapon.gotoAndStop(3);
_root.dmg = 3;
}
if (_root.swordType == 4) {
this.weapon.gotoAndStop(4);
_root.dmg = 4;
}
if (_root.swordType == 5) {
this.weapon.gotoAndStop(5);
_root.dmg = 5;
}
if (_root.swordType == 6) {
this.weapon.gotoAndStop(6);
_root.dmg = 5.5;
}
if (_root.swordType == 7) {
this.weapon.gotoAndStop(7);
_root.dmg = 6;
}
if (_root.enchant == 1) {
this.weapon.enchant.gotoAndPlay(2);
} else if (_root.enchant == 2) {
this.weapon.enchant.gotoAndPlay(32);
} else if (_root.enchant == 3) {
this.weapon.enchant.gotoAndPlay(61);
}
if (_root.armortype == 2) {
this.arm1.gotoAndStop(2);
this.leg1.gotoAndStop(2);
this.leg2.gotoAndStop(2);
this.head.gotoAndStop(2);
_root.armor = 2;
}
if (_root.armortype == 3) {
this.arm1.gotoAndStop(3);
this.leg1.gotoAndStop(3);
this.leg2.gotoAndStop(3);
this.head.gotoAndStop(3);
_root.armor = 3;
}
if (_root.armortype == 4) {
this.arm1.gotoAndStop(4);
this.leg1.gotoAndStop(4);
this.leg2.gotoAndStop(4);
this.head.gotoAndStop(4);
_root.armor = 4;
}
if (_root.armortype == 1) {
this.arm1.gotoAndStop(1);
this.leg1.gotoAndStop(1);
this.leg2.gotoAndStop(1);
this.head.gotoAndStop(1);
_root.armor = 1;
}
}
Symbol 491 MovieClip Frame 5
stop();
Instance of Symbol 485 MovieClip "stab" in Symbol 491 MovieClip Frame 5
onClipEvent (load) {
if (_root.swordType == 1) {
this.weapon.gotoAndStop(1);
_root.dmg = 1;
}
if (_root.swordType == 2) {
this.weapon.gotoAndStop(2);
_root.dmg = 2;
}
if (_root.swordType == 3) {
this.weapon.gotoAndStop(3);
_root.dmg = 3;
}
if (_root.swordType == 4) {
this.weapon.gotoAndStop(4);
_root.dmg = 4;
}
if (_root.swordType == 5) {
this.weapon.gotoAndStop(5);
_root.dmg = 5;
}
if (_root.swordType == 6) {
this.weapon.gotoAndStop(6);
_root.dmg = 5.5;
}
if (_root.swordType == 7) {
this.weapon.gotoAndStop(7);
_root.dmg = 6;
}
if (_root.enchant == 1) {
this.weapon.enchant.gotoAndPlay(2);
} else if (_root.enchant == 2) {
this.weapon.enchant.gotoAndPlay(32);
} else if (_root.enchant == 3) {
this.weapon.enchant.gotoAndPlay(61);
}
if (_root.armortype == 2) {
this.arm1.gotoAndStop(2);
this.leg1.gotoAndStop(2);
this.leg2.gotoAndStop(2);
this.head.gotoAndStop(2);
_root.armor = 2;
}
if (_root.armortype == 3) {
this.arm1.gotoAndStop(3);
this.leg1.gotoAndStop(3);
this.leg2.gotoAndStop(3);
this.head.gotoAndStop(3);
_root.armor = 3;
}
if (_root.armortype == 4) {
this.arm1.gotoAndStop(4);
this.leg1.gotoAndStop(4);
this.leg2.gotoAndStop(4);
this.head.gotoAndStop(4);
_root.armor = 4;
}
if (_root.armortype == 1) {
this.arm1.gotoAndStop(1);
this.leg1.gotoAndStop(1);
this.leg2.gotoAndStop(1);
this.head.gotoAndStop(1);
_root.armor = 1;
}
}
Symbol 491 MovieClip Frame 6
stop();
Instance of Symbol 457 MovieClip "jump" in Symbol 491 MovieClip Frame 6
onClipEvent (load) {
if (_root.swordType == 1) {
this.weapon.gotoAndStop(1);
_root.dmg = 1;
}
if (_root.swordType == 2) {
this.weapon.gotoAndStop(2);
_root.dmg = 2;
}
if (_root.swordType == 3) {
this.weapon.gotoAndStop(3);
_root.dmg = 3;
}
if (_root.swordType == 4) {
this.weapon.gotoAndStop(4);
_root.dmg = 4;
}
if (_root.swordType == 5) {
this.weapon.gotoAndStop(5);
_root.dmg = 5;
}
if (_root.swordType == 6) {
this.weapon.gotoAndStop(6);
_root.dmg = 5.5;
}
if (_root.swordType == 7) {
this.weapon.gotoAndStop(7);
_root.dmg = 6;
}
if (_root.enchant == 1) {
this.weapon.enchant.gotoAndPlay(2);
} else if (_root.enchant == 2) {
this.weapon.enchant.gotoAndPlay(32);
} else if (_root.enchant == 3) {
this.weapon.enchant.gotoAndPlay(61);
}
if (_root.armortype == 2) {
this.arm1.gotoAndStop(2);
this.leg1.gotoAndStop(2);
this.leg2.gotoAndStop(2);
this.head.gotoAndStop(2);
_root.armor = 2;
}
if (_root.armortype == 3) {
this.arm1.gotoAndStop(3);
this.leg1.gotoAndStop(3);
this.leg2.gotoAndStop(3);
this.head.gotoAndStop(3);
_root.armor = 3;
}
if (_root.armortype == 4) {
this.arm1.gotoAndStop(4);
this.leg1.gotoAndStop(4);
this.leg2.gotoAndStop(4);
this.head.gotoAndStop(4);
_root.armor = 4;
}
if (_root.armortype == 1) {
this.arm1.gotoAndStop(1);
this.leg1.gotoAndStop(1);
this.leg2.gotoAndStop(1);
this.head.gotoAndStop(1);
_root.armor = 1;
}
}
Symbol 491 MovieClip Frame 7
stop();
Instance of Symbol 486 MovieClip "djump" in Symbol 491 MovieClip Frame 7
onClipEvent (load) {
if (_root.swordType == 1) {
this.weapon.gotoAndStop(1);
_root.dmg = 1;
}
if (_root.swordType == 2) {
this.weapon.gotoAndStop(2);
_root.dmg = 2;
}
if (_root.swordType == 3) {
this.weapon.gotoAndStop(3);
_root.dmg = 3;
}
if (_root.swordType == 4) {
this.weapon.gotoAndStop(4);
_root.dmg = 4;
}
if (_root.swordType == 5) {
this.weapon.gotoAndStop(5);
_root.dmg = 5;
}
if (_root.swordType == 6) {
this.weapon.gotoAndStop(6);
_root.dmg = 5.5;
}
if (_root.swordType == 7) {
this.weapon.gotoAndStop(7);
_root.dmg = 6;
}
if (_root.enchant == 1) {
this.weapon.enchant.gotoAndPlay(2);
} else if (_root.enchant == 2) {
this.weapon.enchant.gotoAndPlay(32);
} else if (_root.enchant == 3) {
this.weapon.enchant.gotoAndPlay(61);
}
if (_root.armortype == 2) {
this.arm1.gotoAndStop(2);
this.leg1.gotoAndStop(2);
this.leg2.gotoAndStop(2);
this.head.gotoAndStop(2);
_root.armor = 2;
}
if (_root.armortype == 3) {
this.arm1.gotoAndStop(3);
this.leg1.gotoAndStop(3);
this.leg2.gotoAndStop(3);
this.head.gotoAndStop(3);
_root.armor = 3;
}
if (_root.armortype == 4) {
this.arm1.gotoAndStop(4);
this.leg1.gotoAndStop(4);
this.leg2.gotoAndStop(4);
this.head.gotoAndStop(4);
_root.armor = 4;
}
if (_root.armortype == 1) {
this.arm1.gotoAndStop(1);
this.leg1.gotoAndStop(1);
this.leg2.gotoAndStop(1);
this.head.gotoAndStop(1);
_root.armor = 1;
}
}
Symbol 491 MovieClip Frame 8
stop();
Instance of Symbol 487 MovieClip "dswing" in Symbol 491 MovieClip Frame 8
onClipEvent (load) {
if (_root.swordType == 1) {
this.weapon.gotoAndStop(1);
_root.dmg = 1;
}
if (_root.swordType == 2) {
this.weapon.gotoAndStop(2);
_root.dmg = 2;
}
if (_root.swordType == 3) {
this.weapon.gotoAndStop(3);
_root.dmg = 3;
}
if (_root.swordType == 4) {
this.weapon.gotoAndStop(4);
_root.dmg = 4;
}
if (_root.swordType == 5) {
this.weapon.gotoAndStop(5);
_root.dmg = 5;
}
if (_root.swordType == 6) {
this.weapon.gotoAndStop(6);
_root.dmg = 5.5;
}
if (_root.swordType == 7) {
this.weapon.gotoAndStop(7);
_root.dmg = 6;
}
if (_root.enchant == 1) {
this.weapon.enchant.gotoAndPlay(2);
} else if (_root.enchant == 2) {
this.weapon.enchant.gotoAndPlay(32);
} else if (_root.enchant == 3) {
this.weapon.enchant.gotoAndPlay(61);
}
if (_root.armortype == 2) {
this.arm1.gotoAndStop(2);
this.leg1.gotoAndStop(2);
this.leg2.gotoAndStop(2);
this.head.gotoAndStop(2);
_root.armor = 2;
}
if (_root.armortype == 3) {
this.arm1.gotoAndStop(3);
this.leg1.gotoAndStop(3);
this.leg2.gotoAndStop(3);
this.head.gotoAndStop(3);
_root.armor = 3;
}
if (_root.armortype == 4) {
this.arm1.gotoAndStop(4);
this.leg1.gotoAndStop(4);
this.leg2.gotoAndStop(4);
this.head.gotoAndStop(4);
_root.armor = 4;
}
if (_root.armortype == 1) {
this.arm1.gotoAndStop(1);
this.leg1.gotoAndStop(1);
this.leg2.gotoAndStop(1);
this.head.gotoAndStop(1);
_root.armor = 1;
}
}
Symbol 491 MovieClip Frame 9
stop();
Instance of Symbol 488 MovieClip "tswing" in Symbol 491 MovieClip Frame 9
onClipEvent (load) {
if (_root.swordType == 1) {
this.weapon.gotoAndStop(1);
_root.dmg = 1;
}
if (_root.swordType == 2) {
this.weapon.gotoAndStop(2);
_root.dmg = 2;
}
if (_root.swordType == 3) {
this.weapon.gotoAndStop(3);
_root.dmg = 3;
}
if (_root.swordType == 4) {
this.weapon.gotoAndStop(4);
_root.dmg = 4;
}
if (_root.swordType == 5) {
this.weapon.gotoAndStop(5);
_root.dmg = 5;
}
if (_root.swordType == 6) {
this.weapon.gotoAndStop(6);
_root.dmg = 5.5;
}
if (_root.swordType == 7) {
this.weapon.gotoAndStop(7);
_root.dmg = 6;
}
if (_root.enchant == 1) {
this.weapon.enchant.gotoAndPlay(2);
} else if (_root.enchant == 2) {
this.weapon.enchant.gotoAndPlay(32);
} else if (_root.enchant == 3) {
this.weapon.enchant.gotoAndPlay(61);
}
if (_root.armortype == 2) {
this.arm1.gotoAndStop(2);
this.leg1.gotoAndStop(2);
this.leg2.gotoAndStop(2);
this.head.gotoAndStop(2);
_root.armor = 2;
}
if (_root.armortype == 3) {
this.arm1.gotoAndStop(3);
this.leg1.gotoAndStop(3);
this.leg2.gotoAndStop(3);
this.head.gotoAndStop(3);
_root.armor = 3;
}
if (_root.armortype == 4) {
this.arm1.gotoAndStop(4);
this.leg1.gotoAndStop(4);
this.leg2.gotoAndStop(4);
this.head.gotoAndStop(4);
_root.armor = 4;
}
if (_root.armortype == 1) {
this.arm1.gotoAndStop(1);
this.leg1.gotoAndStop(1);
this.leg2.gotoAndStop(1);
this.head.gotoAndStop(1);
_root.armor = 1;
}
}
Symbol 491 MovieClip Frame 10
stop();
Instance of Symbol 448 MovieClip "shoot" in Symbol 491 MovieClip Frame 10
onClipEvent (load) {
if (_root.armortype == 2) {
this.arm1.gotoAndStop(2);
this.leg1.gotoAndStop(2);
this.leg2.gotoAndStop(2);
this.head.gotoAndStop(2);
_root.armor = 2;
}
if (_root.armortype == 3) {
this.arm1.gotoAndStop(3);
this.leg1.gotoAndStop(3);
this.leg2.gotoAndStop(3);
this.head.gotoAndStop(3);
_root.armor = 3;
}
if (_root.armortype == 4) {
this.arm1.gotoAndStop(4);
this.leg1.gotoAndStop(4);
this.leg2.gotoAndStop(4);
this.head.gotoAndStop(4);
_root.armor = 4;
}
if (_root.armortype == 1) {
this.arm1.gotoAndStop(1);
this.leg1.gotoAndStop(1);
this.leg2.gotoAndStop(1);
this.head.gotoAndStop(1);
_root.armor = 1;
}
}
Symbol 491 MovieClip Frame 11
stop();
Instance of Symbol 490 MovieClip "rageswing" in Symbol 491 MovieClip Frame 11
onClipEvent (load) {
if (_root.swordType == 1) {
this.weapon.gotoAndStop(1);
_root.dmg = 1;
}
if (_root.swordType == 2) {
this.weapon.gotoAndStop(2);
_root.dmg = 2;
}
if (_root.swordType == 3) {
this.weapon.gotoAndStop(3);
_root.dmg = 3;
}
if (_root.swordType == 4) {
this.weapon.gotoAndStop(4);
_root.dmg = 4;
}
if (_root.swordType == 5) {
this.weapon.gotoAndStop(5);
_root.dmg = 5;
}
if (_root.swordType == 6) {
this.weapon.gotoAndStop(6);
_root.dmg = 5.5;
}
if (_root.swordType == 7) {
this.weapon.gotoAndStop(7);
_root.dmg = 6;
}
if (_root.enchant == 1) {
this.weapon.enchant.gotoAndPlay(2);
} else if (_root.enchant == 2) {
this.weapon.enchant.gotoAndPlay(32);
} else if (_root.enchant == 3) {
this.weapon.enchant.gotoAndPlay(61);
}
if (_root.armortype == 2) {
this.arm1.gotoAndStop(2);
this.leg1.gotoAndStop(2);
this.leg2.gotoAndStop(2);
this.head.gotoAndStop(2);
_root.armor = 2;
}
if (_root.armortype == 3) {
this.arm1.gotoAndStop(3);
this.leg1.gotoAndStop(3);
this.leg2.gotoAndStop(3);
this.head.gotoAndStop(3);
_root.armor = 3;
}
if (_root.armortype == 4) {
this.arm1.gotoAndStop(4);
this.leg1.gotoAndStop(4);
this.leg2.gotoAndStop(4);
this.head.gotoAndStop(4);
_root.armor = 4;
}
if (_root.armortype == 1) {
this.arm1.gotoAndStop(1);
this.leg1.gotoAndStop(1);
this.leg2.gotoAndStop(1);
this.head.gotoAndStop(1);
_root.armor = 1;
}
}
Symbol 499 MovieClip Frame 1
stop();
Symbol 507 MovieClip Frame 91
_root.movie.talkbubble.bubble.gotoAndStop(2);
Symbol 507 MovieClip Frame 236
stop();
Symbol 513 MovieClip Frame 125
unloadMovie (this);
Symbol 523 MovieClip Frame 40
_root.movie.hero.gotoAndStop("walk");
Symbol 523 MovieClip Frame 116
_root.movie.hero.gotoAndStop("idle");
Symbol 523 MovieClip Frame 363
_root.movie.hero.gotoAndStop("run");
Symbol 523 MovieClip Frame 408
_root.movie.hero.gotoAndStop("idle");
Symbol 523 MovieClip Frame 726
_root.gotoAndStop(5);
Symbol 533 MovieClip Frame 1
stop();
Symbol 533 MovieClip Frame 2
play();
Symbol 542 MovieClip Frame 1
stop();
Symbol 542 MovieClip Frame 2
stop();
Symbol 567 MovieClip Frame 1
stop();
Symbol 567 MovieClip Frame 2
stop();
Symbol 567 MovieClip Frame 3
stop();
Symbol 567 MovieClip Frame 4
stop();
Symbol 567 MovieClip Frame 5
stop();
Symbol 575 Button
on (release) {
_root.diff = 2;
_root.gold2.tut.gotoAndStop(2);
}
Symbol 581 Button
on (release) {
_root.diff = 1;
_root.gold2.tut.gotoAndStop(2);
}
Symbol 592 MovieClip Frame 1
stop();
Symbol 592 MovieClip Frame 2
stop();
Symbol 592 MovieClip Frame 3
stop();
Symbol 592 MovieClip Frame 4
stop();
Symbol 592 MovieClip Frame 5
stop();
Symbol 592 MovieClip Frame 6
stop();
Symbol 592 MovieClip Frame 7
stop();
Symbol 592 MovieClip Frame 8
_root.trainingdone = true;
unloadMovie (this);
_root.gold2.mute.gotoAndStop(2);
Symbol 598 Button
on (release) {
_quality = "low";
}
Symbol 602 Button
on (release) {
_quality = "medium";
}
Symbol 605 Button
on (release) {
_quality = "high";
}
Symbol 607 Button
on (release) {
gotoAndStop (3);
}
Symbol 610 Button
on (release) {
gotoAndStop (2);
}
Symbol 611 MovieClip Frame 1
stop();
Symbol 611 MovieClip Frame 2
stop();
Symbol 611 MovieClip Frame 3
stop();
Symbol 615 MovieClip Frame 103
stop();
Instance of Symbol 544 MovieClip "maxhpbar" in Symbol 616 MovieClip Frame 1
onClipEvent (enterFrame) {
this._xscale = _root.maxhp + 5;
}
Instance of Symbol 567 MovieClip in Symbol 616 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.lvl == 1) {
this.gotoAndStop(1);
} else if (_root.lvl == 2) {
this.gotoAndStop(2);
} else if (_root.lvl == 3) {
this.gotoAndStop(3);
} else if (_root.lvl == 4) {
this.gotoAndStop(4);
} else if (_root.lvl == 5) {
this.gotoAndStop(5);
} else if (_root.lvl == 6) {
this.gotoAndStop(6);
} else if (_root.lvl == 7) {
this.gotoAndStop(7);
} else if (_root.lvl == 8) {
this.gotoAndStop(8);
} else if (_root.lvl == 9) {
this.gotoAndStop(9);
} else if (_root.lvl == 10) {
this.gotoAndStop(10);
} else if (_root.lvl == 11) {
this.gotoAndStop(11);
} else if (_root.lvl == 12) {
this.gotoAndStop(12);
}
}
Instance of Symbol 569 MovieClip "maxmpbar" in Symbol 616 MovieClip Frame 1
onClipEvent (enterFrame) {
this._xscale = _root.maxmp + 5;
}
Symbol 632 MovieClip Frame 1
stop();
Symbol 632 MovieClip Frame 2
stop();
Symbol 632 MovieClip Frame 3
stop();
Symbol 632 MovieClip Frame 4
stop();
Symbol 632 MovieClip Frame 5
stop();
Symbol 632 MovieClip Frame 6
stop();
Symbol 632 MovieClip Frame 7
stop();
Symbol 632 MovieClip Frame 8
stop();
Symbol 632 MovieClip Frame 9
stop();
Symbol 632 MovieClip Frame 10
stop();
Symbol 632 MovieClip Frame 11
stop();
Symbol 632 MovieClip Frame 12
stop();
Symbol 645 MovieClip Frame 1
stop();
Symbol 645 MovieClip Frame 2
stop();
Symbol 645 MovieClip Frame 3
stop();
Symbol 645 MovieClip Frame 4
stop();
Symbol 645 MovieClip Frame 5
stop();
Symbol 645 MovieClip Frame 6
stop();
Symbol 645 MovieClip Frame 7
stop();
Symbol 645 MovieClip Frame 8
stop();
Symbol 645 MovieClip Frame 9
stop();
Symbol 645 MovieClip Frame 10
stop();
Symbol 645 MovieClip Frame 11
stop();
Symbol 645 MovieClip Frame 12
stop();
Instance of Symbol 632 MovieClip in Symbol 646 MovieClip Frame 72
onClipEvent (enterFrame) {
if (_root.lvl == 1) {
this.gotoAndStop(1);
} else if (_root.lvl == 2) {
this.gotoAndStop(2);
} else if (_root.lvl == 3) {
this.gotoAndStop(3);
} else if (_root.lvl == 4) {
this.gotoAndStop(4);
} else if (_root.lvl == 5) {
this.gotoAndStop(5);
} else if (_root.lvl == 6) {
this.gotoAndStop(6);
} else if (_root.lvl == 7) {
this.gotoAndStop(7);
} else if (_root.lvl == 8) {
this.gotoAndStop(8);
} else if (_root.lvl == 9) {
this.gotoAndStop(9);
} else if (_root.lvl == 10) {
this.gotoAndStop(10);
} else if (_root.lvl == 11) {
this.gotoAndStop(11);
} else if (_root.lvl == 12) {
this.gotoAndStop(12);
}
}
Instance of Symbol 645 MovieClip in Symbol 646 MovieClip Frame 80
onClipEvent (load) {
if (_root.lvl == 1) {
this.gotoAndStop(1);
} else if (_root.lvl == 2) {
this.gotoAndStop(2);
} else if (_root.lvl == 3) {
this.gotoAndStop(3);
} else if (_root.lvl == 4) {
this.gotoAndStop(4);
} else if (_root.lvl == 5) {
this.gotoAndStop(5);
} else if (_root.lvl == 6) {
this.gotoAndStop(6);
} else if (_root.lvl == 7) {
this.gotoAndStop(7);
} else if (_root.lvl == 8) {
this.gotoAndStop(8);
} else if (_root.lvl == 9) {
this.gotoAndStop(9);
} else if (_root.lvl == 10) {
this.gotoAndStop(10);
} else if (_root.lvl == 11) {
this.gotoAndStop(11);
} else if (_root.lvl == 12) {
this.gotoAndStop(12);
}
}
Symbol 646 MovieClip Frame 215
_root.trainwin = true;
_root.window.gotoAndStop("train");
Symbol 656 Button
on (release) {
_root.window.buywep.gotoAndPlay(2);
_root.window.upgrades.gotoAndStop("hide");
_root.window.buyarmor.gotoAndStop("hide");
_root.window.buyech.gotoAndStop("hide");
_root.window.weaponskills.gotoAndStop("hide");
_root.window.bowskills.gotoAndStop("hide");
_root.window.upgrades.gotoAndStop("hide");
}
Symbol 667 Button
on (release) {
if (_root.gold >= 35) {
_root.swordType = 2;
_root.gold = _root.gold - 35;
}
}
Symbol 674 Button
on (release) {
if (_root.gold >= 70) {
_root.swordType = 3;
_root.gold = _root.gold - 70;
}
}
Symbol 681 Button
on (release) {
if (_root.gold >= 110) {
_root.swordType = 4;
_root.gold = _root.gold - 110;
}
}
Symbol 688 Button
on (release) {
if (_root.gold >= 250) {
_root.swordType = 5;
_root.gold = _root.gold - 250;
}
}
Symbol 696 Button
on (release) {
if (_root.gold >= 300) {
_root.swordType = 6;
_root.gold = _root.gold - 300;
}
}
Symbol 703 Button
on (release) {
if (_root.gold >= 400) {
_root.swordType = 7;
_root.gold = _root.gold - 400;
}
}
Symbol 708 Button
on (release) {
_root.window.buywep.gotoAndStop(1);
_root.window.buyarmor.gotoAndStop(1);
_root.window.buyench.gotoAndStop(1);
_root.window.weaponskills.gotoAndStop(1);
_root.window.bowskills.gotoAndStop(1);
_root.window.upgrades.gotoAndStop(1);
}
Symbol 709 MovieClip Frame 1
stop();
Symbol 709 MovieClip Frame 2
_root.window.buyarmor.gotoAndStop("hide");
_root.window.buyench.gotoAndStop("hide");
Instance of Symbol 704 MovieClip in Symbol 709 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.swordType == 2) {
unloadMovie (this.sword1);
}
if (_root.swordType == 3) {
unloadMovie (this.sword1);
unloadMovie (this.sword2);
}
if (_root.swordType == 4) {
unloadMovie (this.sword1);
unloadMovie (this.sword2);
unloadMovie (this.sword3);
}
if (_root.swordType == 5) {
unloadMovie (this.sword1);
unloadMovie (this.sword2);
unloadMovie (this.sword3);
unloadMovie (this.sword4);
}
if (_root.swordType == 6) {
unloadMovie (this.sword1);
unloadMovie (this.sword2);
unloadMovie (this.sword3);
unloadMovie (this.sword4);
unloadMovie (this.sword5);
}
if (_root.swordType == 7) {
unloadMovie (this.sword1);
unloadMovie (this.sword2);
unloadMovie (this.sword3);
unloadMovie (this.sword4);
unloadMovie (this.sword5);
unloadMovie (this.sword6);
}
}
Symbol 709 MovieClip Frame 15
stop();
Symbol 709 MovieClip Frame 16
stop();
Symbol 713 Button
on (release) {
_root.window.buyarmor.gotoAndPlay(2);
_root.window.upgrades.gotoAndStop("hide");
_root.window.buywep.gotoAndStop("hide");
_root.window.buyench.gotoAndStop("hide");
_root.window.weaponskills.gotoAndStop("hide");
_root.window.bowskills.gotoAndStop("hide");
_root.window.upgrades.gotoAndStop("hide");
}
Symbol 723 Button
on (release) {
if (_root.gold >= 50) {
unloadMovie (this.samurai);
_root.gold = _root.gold - 50;
_root.armortype = 2;
}
}
Symbol 730 Button
on (release) {
if (_root.gold >= 200) {
unloadMovie (this.golden);
unloadMovie (this.samurai);
_root.gold = _root.gold - 200;
_root.armortype = 3;
}
}
Symbol 737 Button
on (release) {
if (_root.gold >= 350) {
unloadMovie (this.golden);
unloadMovie (this.samurai);
unloadMovie (this.gods);
_root.gold = _root.gold - 350;
_root.armortype = 4;
}
}
Symbol 739 Button
on (release) {
_root.window.buyarmor.gotoAndStop(1);
_root.window.buywep.gotoAndStop(1);
_root.window.buyarmor.gotoAndStop(1);
_root.window.buyench.gotoAndStop(1);
_root.window.weaponskills.gotoAndStop(1);
_root.window.bowskills.gotoAndStop(1);
_root.window.upgrades.gotoAndStop(1);
}
Symbol 740 MovieClip Frame 1
stop();
Instance of Symbol 738 MovieClip in Symbol 740 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.armortype == 2) {
unloadMovie (this.samurai);
}
if (_root.armortype == 3) {
unloadMovie (this.samurai);
unloadMovie (this.golden);
}
if (_root.armortype == 4) {
unloadMovie (this.samurai);
unloadMovie (this.golden);
unloadMovie (this.gods);
}
}
Symbol 740 MovieClip Frame 15
stop();
Symbol 740 MovieClip Frame 16
stop();
Symbol 744 Button
on (release) {
_root.training = false;
_root.trainwin = false;
if (_root.lvl == 1) {
_root.kills = 25;
_root.sky.gotoAndStop(2);
_root.fader.gotoAndStop(2);
} else if (_root.lvl == 2) {
_root.kills = 35;
_root.sky.gotoAndStop(3);
_root.fader.gotoAndStop(3);
} else if (_root.lvl == 3) {
_root.kills = 45;
_root.sky.gotoAndStop(4);
_root.fader.gotoAndStop(4);
} else if (_root.lvl == 4) {
_root.kills = 55;
_root.sky.gotoAndStop(5);
_root.fader.gotoAndStop(5);
} else if (_root.lvl == 5) {
_root.kills = 60;
_root.sky.gotoAndStop(6);
_root.fader.gotoAndStop(6);
} else if (_root.lvl == 6) {
_root.kills = 65;
_root.sky.gotoAndStop(7);
_root.fader.gotoAndStop(7);
} else if (_root.lvl == 7) {
_root.kills = 70;
_root.sky.gotoAndStop(8);
_root.fader.gotoAndStop(8);
} else if (_root.lvl == 8) {
_root.kills = 75;
_root.sky.gotoAndStop(9);
_root.fader.gotoAndStop(9);
} else if (_root.lvl == 9) {
_root.kills = 80;
_root.sky.gotoAndStop(10);
_root.fader.gotoAndStop(10);
} else if (_root.lvl == 10) {
_root.kills = 85;
_root.sky.gotoAndStop(11);
_root.fader.gotoAndStop(11);
} else if (_root.lvl == 11) {
_root.kills = 90;
_root.sky.gotoAndStop(12);
_root.fader.gotoAndStop(12);
} else if (_root.lvl == 12) {
_root.kills = 100;
_root.sky.gotoAndStop(13);
}
_root.window.gotoAndPlay(4);
_root.lvl = _root.lvl + 1;
clearInterval(_root.enemy1);
clearInterval(_root.plane2Launcher);
clearInterval(_root.plane3Launcher);
clearInterval(_root.plane4Launcher);
}
Symbol 748 Button
on (release) {
_root.window.buyench.gotoAndPlay(2);
_root.window.upgrades.gotoAndStop("hide");
_root.window.buyarmor.gotoAndStop("hide");
_root.window.buywep.gotoAndStop("hide");
_root.window.weaponskills.gotoAndStop("hide");
_root.window.bowskills.gotoAndStop("hide");
_root.window.upgrades.gotoAndStop("hide");
}
Symbol 756 Button
on (release) {
if (_root.gold >= 50) {
_root.gold = _root.gold - 50;
unloadMovie (this.en1);
_root.enchant = 1;
}
}
Symbol 761 Button
on (release) {
if (_root.gold >= 100) {
_root.gold = _root.gold - 100;
unloadMovie (this.en2);
_root.enchant = 2;
}
}
Symbol 765 Button
on (release) {
if (_root.gold >= 400) {
_root.gold = _root.gold - 400;
unloadMovie (this.en3);
_root.enchant = 3;
}
}
Symbol 767 MovieClip Frame 1
stop();
Instance of Symbol 766 MovieClip in Symbol 767 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.enchant == 1) {
unloadMovie (this.en1);
}
if (_root.enchant == 2) {
unloadMovie (this.en1);
unloadMovie (this.en2);
}
if (_root.enchant == 3) {
unloadMovie (this.en1);
unloadMovie (this.en2);
unloadMovie (this.en3);
}
}
Symbol 767 MovieClip Frame 10
stop();
Symbol 767 MovieClip Frame 11
stop();
Symbol 771 Button
on (release) {
this.gotoAndPlay(2);
_root.window.upgrades.gotoAndStop("hide");
_root.window.buyarmor.gotoAndStop("hide");
_root.window.buyench.gotoAndStop("hide");
_root.window.bowskills.gotoAndStop("hide");
_root.window.buywep.gotoAndStop("hide");
_root.window.upgrades.gotoAndStop("hide");
}
Symbol 772 Button
on (release) {
this.gotoAndPlay(2);
_root.window.bowskills.gotoAndStop("hide");
_root.window.upgrades.gotoAndStop("hide");
_root.window.buyweap.gotoAndStop("hide");
_root.window.buyarmor.gotoAndStop("hide");
_root.window.upgrades.gotoAndStop("hide");
}
Symbol 786 Button
on (release) {
if (_root.gold >= 50) {
_root.gold = _root.gold - 50;
unloadMovie (this.stab);
_root.stabsk = true;
}
}
Symbol 795 Button
on (release) {
if (_root.gold >= 150) {
_root.gold = _root.gold - 150;
unloadMovie (this.ds);
_root.dsk = true;
}
}
Symbol 800 Button
on (release) {
if (_root.gold >= 250) {
_root.gold = _root.gold - 250;
unloadMovie (this.ts);
_root.tsk = true;
}
}
Symbol 809 Button
on (release) {
if (_root.gold >= 250) {
_root.gold = _root.gold - 250;
unloadMovie (this.crit);
_root.critsk = true;
}
}
Symbol 811 Button
on (release) {
_root.window.buywep.gotoAndStop(1);
_root.window.buyarmor.gotoAndStop(1);
_root.window.buyench.gotoAndStop(1);
_root.window.weaponskills.gotoAndStop(1);
_root.window.bowskills.gotoAndStop(1);
_root.window.upgrades.gotoAndStop(1);
}
Symbol 812 MovieClip Frame 1
stop();
Instance of Symbol 810 MovieClip in Symbol 812 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.stabsk == true) {
unloadMovie (this.stab);
}
if (_root.dsk == true) {
unloadMovie (this.ds);
}
if (_root.tsk == true) {
unloadMovie (this.ts);
}
if (_root.critsk == true) {
unloadMovie (this.crit);
}
}
Symbol 812 MovieClip Frame 10
stop();
Symbol 812 MovieClip Frame 11
stop();
Symbol 816 Button
on (release) {
_root.window.bowskills.gotoAndPlay(2);
_root.window.upgrades.gotoAndStop("hide");
_root.window.buyarmor.gotoAndStop("hide");
_root.window.buyench.gotoAndStop("hide");
_root.window.weaponskills.gotoAndStop("hide");
_root.window.buywep.gotoAndStop("hide");
_root.window.upgrades.gotoAndStop("hide");
}
Symbol 827 Button
on (release) {
if (_root.gold >= 25) {
_root.gold = _root.gold - 25;
unloadMovie (this.ds);
_root.multi = 2;
}
}
Symbol 834 Button
on (release) {
if (_root.gold >= 100) {
_root.gold = _root.gold - 100;
unloadMovie (this.ts);
_root.multi = 3;
}
}
Symbol 841 Button
on (release) {
if (_root.gold >= 200) {
_root.gold = _root.gold - 200;
unloadMovie (this.gds);
_root.multi = 4;
}
}
Symbol 847 Button
on (release) {
if (_root.gold >= 200) {
_root.gold = _root.gold - 200;
unloadMovie (this.exp);
_root.exparrow = true;
}
}
Symbol 853 Button
on (release) {
if (_root.gold >= 200) {
_root.gold = _root.gold - 200;
unloadMovie (this.split);
_root.splitarrow = true;
}
}
Symbol 855 MovieClip Frame 1
stop();
Instance of Symbol 854 MovieClip in Symbol 855 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.multi == 2) {
unloadMovie (this.ds);
} else if (_root.multi == 3) {
unloadMovie (this.ds);
unloadMovie (this.ts);
} else if (_root.multi == 4) {
unloadMovie (this.ds);
unloadMovie (this.ts);
unloadMovie (this.gds);
}
if (_root.exparrow == true) {
unloadMovie (this.exp);
}
if (_root.splitarrow == true) {
unloadMovie (this.split);
}
}
Symbol 855 MovieClip Frame 10
stop();
Symbol 855 MovieClip Frame 11
stop();
Symbol 859 Button
on (release) {
_root.window.upgrades.gotoAndPlay(2);
_root.window.bowskills.gotoAndStop("hide");
_root.window.buyarmor.gotoAndStop("hide");
_root.window.buyench.gotoAndStop("hide");
_root.window.weaponskills.gotoAndStop("hide");
_root.window.buywep.gotoAndStop("hide");
}
Symbol 872 Button
on (release) {
if ((_root.gold >= 50) && (_root.maxhp < 125)) {
_root.maxhp = _root.maxhp + 25;
_root.gold = _root.gold - 50;
_root.gold2.maxhpbar._xscale = _root.gold2.maxhpbar._xscale + 2;
}
}
Symbol 876 Button
on (release) {
if ((_root.gold >= 50) && (_root.maxmp < 125)) {
_root.maxmp = _root.maxmp + 25;
_root.gold = _root.gold - 50;
_root.gold2.maxmpbar._xscale = _root.gold2.maxmpbar._xscale + 2;
}
}
Symbol 880 Button
on (release) {
if ((_root.gold >= 50) && (_root.crit < 19)) {
_root.crit = _root.crit + 1;
_root.gold = _root.gold - 50;
}
}
Symbol 882 MovieClip Frame 1
stop();
Symbol 882 MovieClip Frame 7
stop();
Instance of Symbol 881 MovieClip in Symbol 882 MovieClip Frame 7
onClipEvent (enterFrame) {
if (_root.maxhp == 125) {
unloadMovie (this.life);
}
if (_root.maxmp == 125) {
unloadMovie (this.mp);
}
if (_root.crit == 19) {
unloadMovie (this.crit);
}
}
Symbol 882 MovieClip Frame 8
stop();
Symbol 884 Button
on (release) {
_root.training = false;
_root.trainwin = false;
_root.kills = 2;
_root.window.gotoAndStop(1);
_root.lvl = _root.lvl + 10;
clearInterval(_root.Enemy1);
_root.test();
}
Symbol 885 MovieClip Frame 1
stop();
Symbol 885 MovieClip Frame 2
stop();
Symbol 885 MovieClip Frame 3
stop();
Symbol 885 MovieClip Frame 4
_root.test();
_root.test2();
_root.test3();
_root.test4();
Symbol 886 MovieClip Frame 1
stop();
Symbol 886 MovieClip Frame 2
stop();
Symbol 886 MovieClip Frame 3
stop();
Symbol 886 MovieClip Frame 4
stop();
Symbol 886 MovieClip Frame 5
stop();
Symbol 886 MovieClip Frame 6
stop();
Symbol 886 MovieClip Frame 7
stop();
Symbol 886 MovieClip Frame 8
stop();
Symbol 886 MovieClip Frame 9
stop();
Symbol 886 MovieClip Frame 10
stop();
Symbol 886 MovieClip Frame 11
stop();
Symbol 886 MovieClip Frame 12
stop();
Symbol 892 Button
on (release) {
_root.gotoAndStop(4);
}
Symbol 893 MovieClip Frame 1
_root._x = 0;
Symbol 893 MovieClip Frame 66
stop();
Symbol 894 MovieClip Frame 30
gotoAndPlay (1);
Symbol 894 MovieClip Frame 235
stop();
Symbol 905 Button
on (release) {
_root.gotoAndStop(2);
}
Symbol 906 MovieClip Frame 632
stop();
Symbol 907 MovieClip Frame 176
_root.end.hero.gotoAndStop("run");
Symbol 907 MovieClip Frame 183
_root.end.hero.gotoAndStop("jump");
Symbol 907 MovieClip Frame 190
_root.end.hero.gotoAndStop("djump");
Symbol 907 MovieClip Frame 229
_root.end.boss.gotoAndPlay(31);
_root.end.hero.gotoAndPlay("idle");
Symbol 907 MovieClip Frame 430
stop();