Frame 1
Loaded = Math.round(getBytesLoaded());
total = Math.round(getBytesTotal());
percent = Loaded / total;
bar._width = percent * 150;
text = Math.round(percent * 100) + "%";
if (Loaded == total) {
gotoAndPlay (3);
}
Instance of Symbol 415 MovieClip in Frame 1
on (release) {
getURL ("http://www.ahjee.com", "_blank");
}
Frame 2
gotoAndPlay (1);
Frame 3
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
var pv;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
pv = ((fv == 5) ? (getVersion()) : (System.capabilities.version));
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=8&fv=") + fv) + "&v=") + escape(pv)) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
stop();
__com_mochibot__("079fc577", this, 10301, true);
Frame 4
stop();
usepotion = new Sound();
usepotion.attachSound("usepotion");
attack1 = new Sound();
attack1.attachSound("attack1");
attack2 = new Sound();
attack2.attachSound("attack2");
attack3 = new Sound();
attack3.attachSound("attack3");
attack_hit1 = new Sound();
attack_hit1.attachSound("attack_hit1");
attack_hit2 = new Sound();
attack_hit2.attachSound("attack_hit2");
attack_miss = new Sound();
attack_miss.attachSound("attack_miss");
btnclick = new Sound();
btnclick.attachSound("btnclick");
dash_fx = new Sound();
dash_fx.attachSound("dash_fx");
levelup_fx = new Sound();
levelup_fx.attachSound("levelup_fx");
skill2_fx = new Sound();
skill2_fx.attachSound("skill2_fx");
skill3_fx = new Sound();
skill3_fx.attachSound("skill3_fx");
skill4_fx = new Sound();
skill4_fx.attachSound("skill4_fx");
skill5_fx = new Sound();
skill5_fx.attachSound("skill5_fx");
skill6_fx = new Sound();
skill6_fx.attachSound("skill6_fx");
enemydead1 = new Sound();
enemydead1.attachSound("enemydead1");
enemyattack1 = new Sound();
enemyattack1.attachSound("enemyattack1");
enemyattack2 = new Sound();
enemyattack2.attachSound("enemyattack2");
enemyattack3 = new Sound();
enemyattack3.attachSound("enemyattack3");
enemyattack4 = new Sound();
enemyattack4.attachSound("enemyattack4");
enemyattack5 = new Sound();
enemyattack5.attachSound("enemyattack5");
enemyattack6 = new Sound();
enemyattack6.attachSound("enemyattack6");
enemyattack7 = new Sound();
enemyattack7.attachSound("enemyattack7");
enemyattack8 = new Sound();
enemyattack8.attachSound("enemyattack8");
areabg = new Sound();
areabg.attachSound("areabg");
dooropen1 = new Sound();
dooropen1.attachSound("dooropen1");
doorpoen2 = new Sound();
doorpoen2.attachSound("doorpoen2");
dooropen3 = new Sound();
dooropen3.attachSound("dooropen3");
keyshow = new Sound();
keyshow.attachSound("keyshow");
explosion_fx = new Sound();
explosion_fx.attachSound("explosion_fx");
Frame 5
stop();
Frame 6
function resetvalues() {
stopAllSounds();
_global.bosskill = 0;
_global.cooldown1 = 0;
_global.cooldown2 = 0;
_global.cooldown3 = 0;
_global.cooldown4 = 0;
_global.cooldown5 = 0;
_global.cooldown6 = 0;
_global.cooldown7 = 0;
_global.cooldown8 = 0;
_global.computerkilled = 0;
_global.greenkeycard = 0;
_global.yellowkeycard = 0;
_global.bluekeycard = 0;
_global.redkeycard = 0;
_global.shieldup = 0;
_global.skillactive = 1;
_global.herolife = _global.maxlife;
_global.heromana = _global.maxmana;
_root.camera.txtmsg = "";
_root.camera.txtimptmsg = "";
}
stop();
_global.retries = 4;
_global.gamelevel = 1;
_global.robotsummonkilled = 0;
_global.robots = 8;
_global.robotsummon = 0;
_global.stagekill = 0;
_global.gamepaused = 0;
_global.skill1lvl = 1;
_global.skill2lvl = 0;
_global.skill3lvl = 0;
_global.skill4lvl = 0;
_global.skill5lvl = 0;
_global.skill6lvl = 0;
_global.skill7lvl = 1;
_global.skill8lvl = 1;
_global.cooldown1 = 0;
_global.cooldown2 = 0;
_global.cooldown3 = 0;
_global.cooldown4 = 0;
_global.cooldown5 = 0;
_global.cooldown6 = 0;
_global.cooldown7 = 0;
_global.cooldown8 = 0;
_global.gamepaused = 1;
_global.startgame = 0;
_global.lifepotion = 10;
_global.manapotion = 10;
_global.score = 0;
_global.money = 0;
_global.herolevel = 1;
_global.herolife = 100;
_global.maxlife = 100;
_global.heromana = 100;
_global.maxmana = 100;
_global.healamount = 50;
_global.energyamount = 30;
_global.expoints = 0;
_global.herostr = 4;
_global.heroint = 1;
_global.herovit = 1;
_global.statpoint = 0;
_global.skillpoint = 0;
_global.herodef = 0;
_global.heroarmor = 1;
_global.herowep = 1;
_global.shieldup = 0;
_global.skillactive = 1;
_global.sword1 = 1;
_global.sword2 = 0;
_global.sword3 = 0;
_global.sword4 = 0;
_global.sword5 = 0;
_global.armor1 = 1;
_global.armor2 = 0;
_global.armor3 = 0;
_global.armor4 = 0;
_global.greenkeycard = 0;
_global.yellowkeycard = 0;
_global.bluekeycard = 0;
_global.redkeycard = 0;
_global.bosskill = 0;
_global.menuopen = 0;
_global.amulet1 = 0;
_global.amulet2 = 0;
_global.enemylife = 0;
_global.maxenemylife = 0;
_global.enemyname = "";
_global.computerkilled = 0;
_root._quality = "MEDIUM";
stopAllSounds();
_root.areabg.start(0, 999);
stop();
Instance of Symbol 415 MovieClip in Frame 6
on (release) {
getURL ("http://www.ahjee.com", "_blank");
}
Frame 7
stop();
Frame 8
stop();
Instance of Symbol 415 MovieClip in Frame 8
on (release) {
getURL ("http://www.ahjee.com", "_blank");
}
Frame 9
function resetvalues() {
stopAllSounds();
_global.bosskill = 0;
_global.cooldown1 = 0;
_global.cooldown2 = 0;
_global.cooldown3 = 0;
_global.cooldown4 = 0;
_global.cooldown5 = 0;
_global.cooldown6 = 0;
_global.cooldown7 = 0;
_global.cooldown8 = 0;
_global.computerkilled = 0;
_global.greenkeycard = 0;
_global.yellowkeycard = 0;
_global.bluekeycard = 0;
_global.redkeycard = 0;
_global.shieldup = 0;
_global.skillactive = 1;
_global.herolife = _global.maxlife;
_global.heromana = _global.maxmana;
_root.camera.txtmsg = "";
_root.camera.txtimptmsg = "";
}
ctr = 0;
ctr2 = 0;
delayer = 0;
lastkill = 0;
onEnterFrame = function () {
if (_global.gamepaused == 0) {
if (ctr != _global.robots) {
if (ctr2 != 15) {
if ((_global.gamelevel > 4) && (_global.gamelevel < 8)) {
xx = random(5);
if (xx < 2) {
spawnenemy = "enemy1";
} else {
spawnenemy = "enemy2";
}
} else if ((_global.gamelevel >= 8) && (_global.gamelevel < 12)) {
xx = random(8);
if (xx < 3) {
spawnenemy = "enemy1";
} else if ((xx > 3) && (xx < 6)) {
spawnenemy = "enemy2";
} else {
spawnenemy = "enemy3";
}
} else if ((_global.gamelevel >= 12) && (_global.gamelevel < 15)) {
xx = random(10);
if (xx < 3) {
spawnenemy = "enemy1";
} else if ((xx > 3) && (xx < 6)) {
spawnenemy = "enemy2";
} else if ((xx > 6) && (xx < 8)) {
spawnenemy = "enemy3";
} else {
spawnenemy = "enemy4";
}
} else if (_global.gamelevel == 15) {
lastkill = _global.robots;
_global.robots = 1;
spawnenemy = "boss1";
} else if ((_global.gamelevel >= 16) && (_global.gamelevel < 20)) {
xx = random(18);
if (xx < 3) {
spawnenemy = "enemy1";
} else if ((xx > 3) && (xx < 6)) {
spawnenemy = "enemy2";
} else if ((xx > 6) && (xx < 8)) {
spawnenemy = "enemy3";
} else if ((xx > 8) && (xx < 12)) {
spawnenemy = "enemy5";
} else if ((xx > 12) && (xx < 15)) {
spawnenemy = "enemy4";
} else {
spawnenemy = "enemy6";
}
} else if ((_global.gamelevel >= 20) && (_global.gamelevel < 25)) {
xx = random(23);
if (xx < 3) {
spawnenemy = "enemy1";
} else if ((xx > 3) && (xx < 6)) {
spawnenemy = "enemy2";
} else if ((xx > 6) && (xx < 8)) {
spawnenemy = "enemy3";
} else if ((xx > 8) && (xx < 12)) {
spawnenemy = "enemy4";
} else if ((xx > 12) && (xx < 15)) {
spawnenemy = "enemy5";
} else {
spawnenemy = "enemy6";
}
} else if (_global.gamelevel == 25) {
lastkill = _global.robots;
_global.robots = 1;
spawnenemy = "boss2";
} else if ((_global.gamelevel >= 26) && (_global.gamelevel < 28)) {
xx = random(25);
if (xx < 3) {
spawnenemy = "enemy1";
} else if ((xx > 3) && (xx < 6)) {
spawnenemy = "enemy2";
} else if ((xx > 6) && (xx < 8)) {
spawnenemy = "enemy3";
} else if ((xx > 8) && (xx < 12)) {
spawnenemy = "enemy4";
} else if ((xx > 12) && (xx < 15)) {
spawnenemy = "enemy5";
} else if ((xx > 16) && (xx < 18)) {
spawnenemy = "enemy6";
} else {
spawnenemy = "enemy7";
}
} else if ((_global.gamelevel >= 28) && (_global.gamelevel < 30)) {
xx = random(25);
if (xx < 3) {
spawnenemy = "enemy1";
} else if ((xx > 3) && (xx < 6)) {
spawnenemy = "enemy2";
} else if ((xx > 6) && (xx < 8)) {
spawnenemy = "enemy3";
} else if ((xx > 8) && (xx < 12)) {
spawnenemy = "enemy4";
} else if ((xx > 12) && (xx < 15)) {
spawnenemy = "enemy5";
} else if ((xx > 16) && (xx < 18)) {
spawnenemy = "enemy6";
} else if ((xx > 18) && (xx < 22)) {
spawnenemy = "enemy7";
} else {
spawnenemy = "enemy8";
}
} else if (_global.gamelevel == 30) {
lastkill = _global.robots;
_global.robots = 2;
spawnenemy = "boss3";
} else if ((_global.gamelevel >= 31) && (_global.gamelevel < 35)) {
xx = random(25);
if (xx < 3) {
spawnenemy = "enemy2";
} else if ((xx > 3) && (xx < 6)) {
spawnenemy = "enemy3";
} else if ((xx > 6) && (xx < 8)) {
spawnenemy = "enemy4";
} else if ((xx > 8) && (xx < 12)) {
spawnenemy = "enemy5";
} else if ((xx > 12) && (xx < 15)) {
spawnenemy = "enemy6";
} else if ((xx > 16) && (xx < 18)) {
spawnenemy = "enemy7";
} else {
spawnenemy = "enemy8";
}
} else if (_global.gamelevel == 35) {
lastkill = _global.robots;
_global.robots = 1;
spawnenemy = "boss4";
} else if (_global.gamelevel > 35) {
xx = random(15);
if (xx < 3) {
spawnenemy = "enemy4";
} else if ((xx > 3) && (xx < 6)) {
spawnenemy = "enemy5";
} else if ((xx > 6) && (xx < 8)) {
spawnenemy = "enemy6";
} else if ((xx > 8) && (xx < 12)) {
spawnenemy = "enemy7";
} else {
spawnenemy = "enemy8";
}
} else {
spawnenemy = "enemy1";
}
if (delayer == 0) {
jj = random(3);
if (jj == 0) {
spawnx = Math.floor(Math.random() * 371) + -502;
spawny = Math.floor(Math.random() * 705) + 70;
} else if (jj == 1) {
spawnx = Math.floor(Math.random() * 224) + 777;
spawny = Math.floor(Math.random() * 705) + 70;
} else if (jj == 2) {
spawnx = Math.floor(Math.random() * 655) + 13;
spawny = Math.floor(Math.random() * 218) + -300;
} else if (jj == 3) {
spawnx = Math.floor(Math.random() * 655) + 13;
spawny = Math.floor(Math.random() * 300) + 753;
}
_root.robotstage.attachMovie(spawnenemy, "enemy1_" + _root.robotstage.getNextHighestDepth(), _root.robotstage.getNextHighestDepth(), {_x:spawnx, _y:spawny});
}
ctr++;
ctr2++;
}
if ((ctr2 == 15) && (delayer == 0)) {
delayer = 1;
}
if (_global.robotsummonkilled == 15) {
_global.robotsummonkilled = 0;
delayer = 0;
ctr2 = 0;
}
}
if ((_global.stagekill == _global.robots) && (checking != 1)) {
ctr = 0;
ctr2 = 0;
delayer = 0;
_global.robotsummonkilled = 0;
_global.robots = _global.robots + 3;
_global.stagekill = 0;
_global.gamelevel = _global.gamelevel + 1;
_global.robotskilled = 0;
_global.cleanup = 1;
_global.cleanup = 0;
_root.camera.gamewave.gotoAndPlay(2);
_global.gamepaused = 1;
if ((((_global.gamelevel == 16) || (_global.gamelevel == 26)) || (_global.gamelevel == 31)) || (_global.gamelevel == 36)) {
_global.robots = lastkill;
}
}
}
};
stop();
stopAllSounds();
_root.camera.txtimptmsg = "Welcome to Robot Arena, here you will fight endless waves of enemies. Use the MOUSE to Move, LEFT CLICK to Attack, SPACE to Dash forward.";
_root.txtcleaner.gotoAndPlay(2);
_root.areabg.start(0, 999);
Instance of Symbol 521 MovieClip "door" in Frame 9
onClipEvent (load) {
dooropen = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.bodytarget) && (dooropen == 0)) {
dooropen = 1;
_root.walls.door1.gotoAndStop("open");
_root.walls.door2.gotoAndStop("open");
}
}
Instance of Symbol 952 MovieClip "camera" in Frame 9
onClipEvent (enterFrame) {
_x = _root.hero._x;
_y = (_root.hero._y - 10);
}
Frame 10
stop();
Instance of Symbol 415 MovieClip in Frame 10
on (release) {
getURL ("http://www.ahjee.com", "_blank");
}
Instance of Symbol 964 MovieClip in Frame 10
onClipEvent (enterFrame) {
this.txtscore = _global.score;
this.txtwaves = _global.gamelevel;
}
Symbol 17 MovieClip Frame 1
stop();
Symbol 17 MovieClip Frame 2
stop();
Symbol 17 MovieClip Frame 3
stop();
Symbol 17 MovieClip Frame 4
stop();
Symbol 17 MovieClip Frame 5
stop();
Symbol 36 MovieClip Frame 28
stop();
Symbol 39 MovieClip Frame 1
_root.enemyattack8.start();
Symbol 39 MovieClip Frame 21
_root.explosion_fx.start();
Instance of Symbol 38 MovieClip in Symbol 39 MovieClip Frame 21
onClipEvent (load) {
edamage = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.bodytarget) && (_global.shieldup == 0)) {
edamage = this._parent._parent.strength;
edamage = (edamage - _global.herodef) - _global.herovit;
edamage = random(edamage);
if (edamage < 1) {
edamage = "Miss!";
}
trace(edamage);
damagedealt = _root.attachMovie("herodamageshow", "enemydamage_" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {damage:edamage, _x:_root.hero._x, _y:_root.hero._y});
damagedealt.onEnterFrame = function () {
var _local2 = new Color(this.damager);
_local2.setRGB(16711680);
this.damager.damage.txtdamage = damage;
if (random(200) == 1) {
this.removeMovieClip();
}
};
if (edamage == "Miss!") {
edamage = 0;
} else {
_global.herolife = _global.herolife - edamage;
}
}
}
Instance of Symbol 38 MovieClip in Symbol 39 MovieClip Frame 24
onClipEvent (load) {
edamage = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.bodytarget) && (_global.shieldup == 0)) {
edamage = this._parent._parent.strength;
edamage = (edamage - _global.herodef) - _global.herovit;
edamage = random(edamage);
if (edamage < 1) {
edamage = "Miss!";
}
trace(edamage);
damagedealt = _root.attachMovie("herodamageshow", "enemydamage_" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {damage:edamage, _x:_root.hero._x, _y:_root.hero._y});
damagedealt.onEnterFrame = function () {
var _local2 = new Color(this.damager);
_local2.setRGB(16711680);
this.damager.damage.txtdamage = damage;
if (random(200) == 1) {
this.removeMovieClip();
}
};
if (edamage == "Miss!") {
edamage = 0;
} else {
_global.herolife = _global.herolife - edamage;
}
}
}
Symbol 39 MovieClip Frame 54
_parent.attacking = 0;
_parent.gotoAndStop("walk");
Symbol 40 MovieClip Frame 1
_root.explosion_fx.start();
_root.camera.shake = _root.camera.shake + 2.5;
Symbol 40 MovieClip Frame 5
_root.explosion_fx.start();
_root.camera.shake = _root.camera.shake + 2.5;
Symbol 40 MovieClip Frame 10
_root.explosion_fx.start();
_root.camera.shake = _root.camera.shake + 2.5;
Symbol 40 MovieClip Frame 15
_root.explosion_fx.start();
_root.camera.shake = _root.camera.shake + 2.5;
Symbol 40 MovieClip Frame 37
_parent._parent.removeMovieClip();
Symbol 41 MovieClip Frame 1
stop();
Symbol 41 MovieClip Frame 2
stop();
Symbol 41 MovieClip Frame 3
stop();
Instance of Symbol 41 MovieClip in Symbol 42 MovieClip [boss3] Frame 1
onClipEvent (load) {
life = 80000 /* 0x013880 */;
maxlife = 80000 /* 0x013880 */;
ename = "Mecha Snake Boss";
defense = 200;
strength = 500;
expoints = 800;
score = 3200;
money = 3000;
respawn = 0;
oldx = _parent._x;
oldy = _parent._y;
follower = this._parent;
heroattackpath = "_root.hero.hero_main.attack.attacktarget";
var radians = 57.2957795130823;
follower.agroRange = 10000;
follower.distanceX = 0;
follower.distanceY = 0;
follower.distanceTotal = 0;
follower.moveDistanceX = 0;
follower.moveDistanceY = 0;
follower.moveX = 0;
follower.moveY = 0;
follower.totalmove = 0;
follower.speed = 4;
attacktarget = _root.hero;
target = _root.hero;
follower.turnRate = 1;
attacking = 0;
checking = 0;
}
onClipEvent (enterFrame) {
if (_global.gamepaused == 0) {
if ((life > 0) && (_global.gamepaused == 0)) {
_parent._alpha = 100;
if (this.enemysight.hitTest(attacktarget)) {
attacking = 1;
}
if (attacking == 0) {
follower.distanceX = target._x - follower._x;
follower.distanceY = target._y - follower._y;
follower.distanceTotal = Math.sqrt((follower.distanceX * follower.distanceX) + (follower.distanceY * follower.distanceY));
if (follower.distanceTotal <= follower.agroRange) {
follower.moveDistanceX = (follower.turnRate * follower.distanceX) / follower.distanceTotal;
follower.moveDistanceY = (follower.turnRate * follower.distanceY) / follower.distanceTotal;
follower.moveX = follower.moveX + follower.moveDistanceX;
follower.moveY = follower.moveY + follower.moveDistanceY;
follower.totalmove = Math.sqrt((follower.moveX * follower.moveX) + (follower.moveY * follower.moveY));
follower.moveX = (follower.speed * follower.moveX) / follower.totalmove;
follower.moveY = (follower.speed * follower.moveY) / follower.totalmove;
follower._x = follower._x + follower.moveX;
follower._y = follower._y + follower.moveY;
follower._rotation = Math.atan2(follower.moveY, follower.moveX) * radians;
if (follower.moveX > 0) {
myspeedx = follower.moveX * 1;
} else {
myspeedx = follower.moveX * -1;
}
}
} else {
this.gotoAndStop("attack");
}
if (follower.moveY > 0) {
myspeedy = follower.moveY * 1;
} else {
myspeedy = follower.moveY * -1;
}
if (_root.hero.hero_main.attack.attacktarget.hitTest(this.enemytarget)) {
follower._x = follower._x - (follower.moveX * 2);
follower._y = follower._y - (follower.moveY * 2);
_parent._alpha = 30;
damage = (((_global.herostr + _global.heroint) * _global.herowep) * _global.skillstr) - defense;
damage = random(damage);
if (damage < 0) {
damage = 1;
}
life = life - damage;
_global.enemylife = life;
_global.maxenemylife = maxlife;
_global.enemyname = ename;
if (damage == 0) {
_root.attack_miss.start();
if (_global.skillactive > 2) {
damage = _global.skillstr;
} else {
damage = "Miss!";
}
} else {
if (random(3) == 1) {
_root.attack_hit1.start();
} else {
_root.attack_hit2.start();
}
_root.swordspark = _root.attachMovie("clash", "myclash_" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:this._parent._x, _y:this._parent._y});
_root.swordspark.onEnterFrame = function () {
if (random(200) == 1) {
this.removeMovieClip();
}
};
}
_root.damagedone = _root.attachMovie("herodamageshow", "mydamage_" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:this._parent._x, _y:this._parent._y});
_root.damagedone.onEnterFrame = function () {
var _local2 = new Color(this.damager);
_local2.setRGB(16104760);
this.damager.damage.txtdamage = damage;
if (random(200) == 1) {
this.removeMovieClip();
}
};
}
}
if ((life < 1) && (checking == 0)) {
_global.enemylife = 0;
_global.maxenemylife = maxlife;
_global.enemyname = ename;
_parent._alpha = 100;
checking = 1;
_root.camera.shake = _root.camera.shake + 2.5;
_global.score = _global.score + score;
_global.money = _global.money + money;
_global.stagekill = _global.stagekill + 1;
_global.robotskilled = _global.robotskilled + 1;
_global.robotsummonkilled = _global.robotsummonkilled + 1;
myexpoints = expoints - (_global.herolevel * 3);
if (myexpoints < 0) {
myexpoints = 0;
}
_root.camera.txtmsg = ("Received " + myexpoints) + " EXP points!";
_root.txtcleaner.gotoAndPlay(2);
_global.expoints = _global.expoints + myexpoints;
if (_parent.bossmonster == 1) {
_parent.bossdead = 1;
}
this.gotoAndStop("dead");
}
if (_global.cleanup == 1) {
this._parent.removeMovieClip();
}
}
}
Symbol 74 MovieClip Frame 1
_parent.attacking = 1;
Symbol 74 MovieClip Frame 8
_root.enemyattack4.start();
Instance of Symbol 73 MovieClip in Symbol 74 MovieClip Frame 8
onClipEvent (load) {
edamage = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.bodytarget) && (_global.shieldup == 0)) {
edamage = this._parent._parent.strength;
edamage = (edamage - _global.herodef) - _global.herovit;
edamage = random(edamage);
if (edamage < 1) {
edamage = "Miss!";
}
damagedealt = _root.attachMovie("herodamageshow", "enemydamage_" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {damage:edamage, _x:_root.hero._x, _y:_root.hero._y});
damagedealt.onEnterFrame = function () {
var _local2 = new Color(this.damager);
_local2.setRGB(16711680);
this.damager.damage.txtdamage = damage;
if (random(200) == 1) {
this.removeMovieClip();
}
};
if (edamage == "Miss!") {
edamage = 0;
}
_global.herolife = _global.herolife - edamage;
}
}
Instance of Symbol 73 MovieClip in Symbol 74 MovieClip Frame 14
onClipEvent (load) {
edamage = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.bodytarget) && (_global.shieldup == 0)) {
edamage = this._parent._parent.strength;
edamage = (edamage - _global.herodef) - _global.herovit;
edamage = random(edamage);
if (edamage < 1) {
edamage = "Miss!";
}
damagedealt = _root.attachMovie("herodamageshow", "enemydamage_" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {damage:edamage, _x:_root.hero._x, _y:_root.hero._y});
damagedealt.onEnterFrame = function () {
var _local2 = new Color(this.damager);
_local2.setRGB(16711680);
this.damager.damage.txtdamage = damage;
if (random(200) == 1) {
this.removeMovieClip();
}
};
if (edamage == "Miss!") {
edamage = 0;
}
_global.herolife = _global.herolife - edamage;
}
}
Symbol 74 MovieClip Frame 45
_parent.attacking = 0;
_parent.gotoAndStop("walk");
Symbol 75 MovieClip Frame 1
_root.explosion_fx.start();
Symbol 75 MovieClip Frame 21
_parent._parent.removeMovieClip();
Symbol 76 MovieClip Frame 1
stop();
Symbol 76 MovieClip Frame 2
stop();
Symbol 76 MovieClip Frame 3
stop();
Instance of Symbol 76 MovieClip in Symbol 77 MovieClip [enemy7] Frame 1
onClipEvent (load) {
life = 2000;
maxlife = 2000;
ename = "Spiderlings X30";
defense = 50;
strength = 100;
expoints = 100;
score = 310;
money = 400;
respawn = 0;
oldx = _parent._x;
oldy = _parent._y;
follower = this._parent;
heroattackpath = "_root.hero.hero_main.attack.attacktarget";
var radians = 57.2957795130823;
follower.agroRange = 10000;
follower.distanceX = 0;
follower.distanceY = 0;
follower.distanceTotal = 0;
follower.moveDistanceX = 0;
follower.moveDistanceY = 0;
follower.moveX = 0;
follower.moveY = 0;
follower.totalmove = 0;
follower.speed = 6;
attacktarget = _root.hero;
target = _root.hero;
follower.turnRate = 1;
attacking = 0;
checking = 0;
}
onClipEvent (enterFrame) {
if (_global.gamepaused == 0) {
if ((life > 0) && (_global.gamepaused == 0)) {
_parent._alpha = 100;
if (this.hitTest(attacktarget)) {
attacking = 1;
}
if (attacking == 0) {
follower.distanceX = target._x - follower._x;
follower.distanceY = target._y - follower._y;
follower.distanceTotal = Math.sqrt((follower.distanceX * follower.distanceX) + (follower.distanceY * follower.distanceY));
if (follower.distanceTotal <= follower.agroRange) {
follower.moveDistanceX = (follower.turnRate * follower.distanceX) / follower.distanceTotal;
follower.moveDistanceY = (follower.turnRate * follower.distanceY) / follower.distanceTotal;
follower.moveX = follower.moveX + follower.moveDistanceX;
follower.moveY = follower.moveY + follower.moveDistanceY;
follower.totalmove = Math.sqrt((follower.moveX * follower.moveX) + (follower.moveY * follower.moveY));
follower.moveX = (follower.speed * follower.moveX) / follower.totalmove;
follower.moveY = (follower.speed * follower.moveY) / follower.totalmove;
follower._x = follower._x + follower.moveX;
follower._y = follower._y + follower.moveY;
follower._rotation = Math.atan2(follower.moveY, follower.moveX) * radians;
if (follower.moveX > 0) {
myspeedx = follower.moveX * 1;
} else {
myspeedx = follower.moveX * -1;
}
}
} else {
this.gotoAndStop("attack");
}
if (follower.moveY > 0) {
myspeedy = follower.moveY * 1;
} else {
myspeedy = follower.moveY * -1;
}
if (_root.hero.hero_main.attack.attacktarget.hitTest(this.enemytarget)) {
follower._x = follower._x - (follower.moveX * 2);
follower._y = follower._y - (follower.moveY * 2);
_parent._alpha = 50;
damage = (((_global.herostr + _global.heroint) * _global.herowep) * _global.skillstr) - defense;
damage = random(damage);
if (damage < 0) {
damage = 1;
}
life = life - damage;
_global.enemylife = life;
_global.maxenemylife = maxlife;
_global.enemyname = ename;
if (damage == 0) {
_root.attack_miss.start();
if (_global.skillactive > 2) {
damage = _global.skillstr;
} else {
damage = "Miss!";
}
} else {
if (random(3) == 1) {
_root.attack_hit1.start();
} else {
_root.attack_hit2.start();
}
_root.swordspark = _root.attachMovie("clash", "myclash_" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:this._parent._x, _y:this._parent._y});
_root.swordspark.onEnterFrame = function () {
if (random(200) == 1) {
this.removeMovieClip();
}
};
}
_root.damagedone = _root.attachMovie("herodamageshow", "mydamage_" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:this._parent._x, _y:this._parent._y});
_root.damagedone.onEnterFrame = function () {
var _local2 = new Color(this.damager);
_local2.setRGB(16104760);
this.damager.damage.txtdamage = damage;
if (random(200) == 1) {
this.removeMovieClip();
}
};
}
}
if ((life < 1) && (checking == 0)) {
_global.enemylife = 0;
_global.maxenemylife = maxlife;
_global.enemyname = ename;
_parent._alpha = 100;
checking = 1;
_root.camera.shake = _root.camera.shake + 2.5;
_global.score = _global.score + score;
_global.money = _global.money + money;
_global.stagekill = _global.stagekill + 1;
_global.robotskilled = _global.robotskilled + 1;
_global.robotsummonkilled = _global.robotsummonkilled + 1;
myexpoints = expoints - (_global.herolevel * 3);
if (myexpoints < 0) {
myexpoints = 1;
}
_root.camera.txtmsg = ("Received " + myexpoints) + " EXP points!";
_root.txtcleaner.gotoAndPlay(2);
_global.expoints = _global.expoints + myexpoints;
this.gotoAndStop("dead");
}
if (_global.cleanup == 1) {
this._parent.removeMovieClip();
}
}
}
Symbol 96 MovieClip Frame 5
_root.enemyattack1.start();
Instance of Symbol 95 MovieClip in Symbol 96 MovieClip Frame 5
onClipEvent (load) {
edamage = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.bodytarget) && (_global.shieldup == 0)) {
edamage = this._parent._parent.strength;
edamage = (edamage - _global.herodef) - _global.herovit;
edamage = random(edamage);
if (edamage < 1) {
edamage = "Miss!";
}
damagedealt = _root.attachMovie("herodamageshow", "enemydamage_" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {damage:edamage, _x:_root.hero._x, _y:_root.hero._y});
damagedealt.onEnterFrame = function () {
var _local2 = new Color(this.damager);
_local2.setRGB(16711680);
this.damager.damage.txtdamage = damage;
if (random(200) == 1) {
this.removeMovieClip();
}
};
if (edamage == "Miss!") {
edamage = 0;
}
_global.herolife = _global.herolife - edamage;
}
}
Symbol 96 MovieClip Frame 34
_parent.attacking = 0;
_parent.gotoAndStop("walk");
Symbol 99 MovieClip Frame 1
_root.enemydead1.start();
Symbol 99 MovieClip Frame 22
_parent._parent.removeMovieClip();
Symbol 100 MovieClip Frame 1
stop();
Symbol 100 MovieClip Frame 2
stop();
Symbol 100 MovieClip Frame 3
stop();
Instance of Symbol 100 MovieClip in Symbol 101 MovieClip [enemy4] Frame 1
onClipEvent (load) {
life = 200;
maxlife = 200;
ename = "Biz Bot B";
defense = 10;
strength = 35;
expoints = 40;
score = 250;
money = 300;
respawn = 0;
oldx = _parent._x;
oldy = _parent._y;
follower = this._parent;
heroattackpath = "_root.hero.hero_main.attack.attacktarget";
var radians = 57.2957795130823;
follower.agroRange = 10000;
follower.distanceX = 0;
follower.distanceY = 0;
follower.distanceTotal = 0;
follower.moveDistanceX = 0;
follower.moveDistanceY = 0;
follower.moveX = 0;
follower.moveY = 0;
follower.totalmove = 0;
follower.speed = 4;
attacktarget = _root.hero;
target = _root.hero;
follower.turnRate = 1;
attacking = 0;
checking = 0;
}
onClipEvent (enterFrame) {
if (_global.gamepaused == 0) {
if (_parent.bossmonster != 1) {
if (respawn == 1) {
respawn = 0;
life = 200;
maxlife = 200;
attacking = 0;
checking = 0;
_parent._x = oldx;
_parent._y = oldy;
this.gotoAndStop("walk");
}
}
if ((life > 0) && (_global.gamepaused == 0)) {
_parent._alpha = 100;
if (this.hitTest(attacktarget)) {
attacking = 1;
}
if (attacking == 0) {
follower.distanceX = target._x - follower._x;
follower.distanceY = target._y - follower._y;
follower.distanceTotal = Math.sqrt((follower.distanceX * follower.distanceX) + (follower.distanceY * follower.distanceY));
if (follower.distanceTotal <= follower.agroRange) {
follower.moveDistanceX = (follower.turnRate * follower.distanceX) / follower.distanceTotal;
follower.moveDistanceY = (follower.turnRate * follower.distanceY) / follower.distanceTotal;
follower.moveX = follower.moveX + follower.moveDistanceX;
follower.moveY = follower.moveY + follower.moveDistanceY;
follower.totalmove = Math.sqrt((follower.moveX * follower.moveX) + (follower.moveY * follower.moveY));
follower.moveX = (follower.speed * follower.moveX) / follower.totalmove;
follower.moveY = (follower.speed * follower.moveY) / follower.totalmove;
follower._x = follower._x + follower.moveX;
follower._y = follower._y + follower.moveY;
follower._rotation = Math.atan2(follower.moveY, follower.moveX) * radians;
if (follower.moveX > 0) {
myspeedx = follower.moveX * 1;
} else {
myspeedx = follower.moveX * -1;
}
}
} else {
this.gotoAndStop("attack");
}
if (follower.moveY > 0) {
myspeedy = follower.moveY * 1;
} else {
myspeedy = follower.moveY * -1;
}
if (_root.hero.hero_main.attack.attacktarget.hitTest(this)) {
follower._x = follower._x - (follower.moveX * 2);
follower._y = follower._y - (follower.moveY * 2);
_parent._alpha = 50;
damage = (((_global.herostr + _global.heroint) * _global.herowep) * _global.skillstr) - defense;
damage = random(damage);
if (damage < 0) {
damage = 1;
}
life = life - damage;
_global.enemylife = life;
_global.maxenemylife = maxlife;
_global.enemyname = ename;
if (damage == 0) {
_root.attack_miss.start();
if (_global.skillactive > 2) {
damage = _global.skillstr;
} else {
damage = "Miss!";
}
} else {
if (random(3) == 1) {
_root.attack_hit1.start();
} else {
_root.attack_hit2.start();
}
_root.swordspark = _root.attachMovie("clash", "myclash_" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:this._parent._x, _y:this._parent._y});
_root.swordspark.onEnterFrame = function () {
if (random(200) == 1) {
this.removeMovieClip();
}
};
}
_root.damagedone = _root.attachMovie("herodamageshow", "mydamage_" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:this._parent._x, _y:this._parent._y});
_root.damagedone.onEnterFrame = function () {
var _local2 = new Color(this.damager);
_local2.setRGB(16104760);
this.damager.damage.txtdamage = damage;
if (random(200) == 1) {
this.removeMovieClip();
}
};
}
}
if ((life < 1) && (checking == 0)) {
_global.enemylife = 0;
_global.maxenemylife = maxlife;
_global.enemyname = ename;
_parent._alpha = 100;
checking = 1;
_root.camera.shake = _root.camera.shake + 2.5;
_global.score = _global.score + score;
_global.money = _global.money + money;
_global.stagekill = _global.stagekill + 1;
_global.robotskilled = _global.robotskilled + 1;
_global.robotsummonkilled = _global.robotsummonkilled + 1;
myexpoints = expoints - (_global.herolevel * 3);
if (myexpoints < 0) {
myexpoints = 1;
}
_root.camera.txtmsg = ("Received " + myexpoints) + " EXP points!";
_root.txtcleaner.gotoAndPlay(2);
_global.expoints = _global.expoints + myexpoints;
if (_parent.bossmonster == 1) {
_parent.bossdead = 1;
}
this.gotoAndStop("dead");
}
if (_global.cleanup == 1) {
this._parent.removeMovieClip();
}
}
}
Symbol 108 MovieClip Frame 1
_parent.attacking = 1;
Instance of Symbol 38 MovieClip in Symbol 108 MovieClip Frame 6
onClipEvent (load) {
edamage = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.bodytarget) && (_global.shieldup == 0)) {
edamage = this._parent._parent.strength;
edamage = (edamage - _global.herodef) - _global.herovit;
edamage = random(edamage);
if (edamage < 1) {
edamage = "Miss!";
}
damagedealt = _root.attachMovie("herodamageshow", "enemydamage_" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {damage:edamage, _x:_root.hero._x, _y:_root.hero._y});
damagedealt.onEnterFrame = function () {
var _local2 = new Color(this.damager);
_local2.setRGB(16711680);
this.damager.damage.txtdamage = damage;
if (random(200) == 1) {
this.removeMovieClip();
}
};
if (edamage == "Miss!") {
edamage = 0;
}
_global.herolife = _global.herolife - edamage;
}
}
Symbol 108 MovieClip Frame 31
_parent.attacking = 0;
_parent.gotoAndStop("walk");
Symbol 109 MovieClip Frame 1
_root.enemydead1.start();
Symbol 109 MovieClip Frame 35
_parent._parent.removeMovieClip();
Symbol 110 MovieClip Frame 1
stop();
Symbol 110 MovieClip Frame 2
stop();
Symbol 110 MovieClip Frame 3
stop();
Instance of Symbol 110 MovieClip in Symbol 111 MovieClip [enemy2] Frame 1
onClipEvent (load) {
life = 30;
maxlife = 30;
ename = "Cyclo Bot";
defense = 5;
strength = 15;
expoints = 30;
score = 110;
money = 120;
respawn = 0;
oldx = _parent._x;
oldy = _parent._y;
follower = this._parent;
heroattackpath = "_root.hero.hero_main.attack.attacktarget";
var radians = 57.2957795130823;
follower.agroRange = 10000;
follower.distanceX = 0;
follower.distanceY = 0;
follower.distanceTotal = 0;
follower.moveDistanceX = 0;
follower.moveDistanceY = 0;
follower.moveX = 0;
follower.moveY = 0;
follower.totalmove = 0;
follower.speed = 4;
attacktarget = _root.hero;
target = _root.hero;
follower.turnRate = 1;
attacking = 0;
checking = 0;
}
onClipEvent (enterFrame) {
if (_global.gamepaused == 0) {
if ((life > 0) && (_global.gamepaused == 0)) {
_parent._alpha = 100;
if (this.hitTest(attacktarget)) {
attacking = 1;
}
if (attacking == 0) {
follower.distanceX = target._x - follower._x;
follower.distanceY = target._y - follower._y;
follower.distanceTotal = Math.sqrt((follower.distanceX * follower.distanceX) + (follower.distanceY * follower.distanceY));
if (follower.distanceTotal <= follower.agroRange) {
follower.moveDistanceX = (follower.turnRate * follower.distanceX) / follower.distanceTotal;
follower.moveDistanceY = (follower.turnRate * follower.distanceY) / follower.distanceTotal;
follower.moveX = follower.moveX + follower.moveDistanceX;
follower.moveY = follower.moveY + follower.moveDistanceY;
follower.totalmove = Math.sqrt((follower.moveX * follower.moveX) + (follower.moveY * follower.moveY));
follower.moveX = (follower.speed * follower.moveX) / follower.totalmove;
follower.moveY = (follower.speed * follower.moveY) / follower.totalmove;
follower._x = follower._x + follower.moveX;
follower._y = follower._y + follower.moveY;
follower._rotation = Math.atan2(follower.moveY, follower.moveX) * radians;
if (follower.moveX > 0) {
myspeedx = follower.moveX * 1;
} else {
myspeedx = follower.moveX * -1;
}
}
} else {
this.gotoAndStop("attack");
}
if (follower.moveY > 0) {
myspeedy = follower.moveY * 1;
} else {
myspeedy = follower.moveY * -1;
}
if (_root.hero.hero_main.attack.attacktarget.hitTest(this)) {
follower._x = follower._x - (follower.moveX * 2);
follower._y = follower._y - (follower.moveY * 2);
_parent._alpha = 50;
damage = (((_global.herostr + _global.heroint) * _global.herowep) * _global.skillstr) - defense;
damage = random(damage);
if (damage < 0) {
damage = 1;
}
life = life - damage;
_global.enemylife = life;
_global.maxenemylife = maxlife;
_global.enemyname = ename;
if (damage == 0) {
_root.attack_miss.start();
if (_global.skillactive > 2) {
damage = _global.skillstr;
} else {
damage = "Miss!";
}
} else {
if (random(3) == 1) {
_root.attack_hit1.start();
} else {
_root.attack_hit2.start();
}
_root.swordspark = _root.attachMovie("clash", "myclash_" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:this._parent._x, _y:this._parent._y});
_root.swordspark.onEnterFrame = function () {
if (random(200) == 1) {
this.removeMovieClip();
}
};
}
_root.damagedone = _root.attachMovie("herodamageshow", "mydamage_" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:this._parent._x, _y:this._parent._y});
_root.damagedone.onEnterFrame = function () {
var _local2 = new Color(this.damager);
_local2.setRGB(16104760);
this.damager.damage.txtdamage = damage;
if (random(200) == 1) {
this.removeMovieClip();
}
};
}
}
if ((life < 1) && (checking == 0)) {
_global.enemylife = 0;
_global.maxenemylife = maxlife;
_global.enemyname = ename;
_parent._alpha = 100;
checking = 1;
_root.camera.shake = _root.camera.shake + 2.5;
_global.score = _global.score + score;
_global.money = _global.money + money;
_global.stagekill = _global.stagekill + 1;
_global.robotskilled = _global.robotskilled + 1;
_global.robotsummonkilled = _global.robotsummonkilled + 1;
myexpoints = expoints - (_global.herolevel * 3);
if (myexpoints < 0) {
myexpoints = 1;
}
_root.camera.txtmsg = ("Received " + myexpoints) + " EXP points!";
_root.txtcleaner.gotoAndPlay(2);
_global.expoints = _global.expoints + myexpoints;
this.gotoAndStop("dead");
}
if (_global.cleanup == 1) {
this._parent.removeMovieClip();
}
}
}
Symbol 121 MovieClip Frame 10
stop();
Symbol 126 MovieClip Frame 1
_root.enemyattack5.start();
_parent.attacking = 1;
Instance of Symbol 38 MovieClip in Symbol 126 MovieClip Frame 9
onClipEvent (load) {
edamage = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.bodytarget) && (_global.shieldup == 0)) {
edamage = this._parent._parent.strength;
edamage = (edamage - _global.herodef) - _global.herovit;
edamage = random(edamage);
if (edamage < 1) {
edamage = "Miss!";
}
damagedealt = _root.attachMovie("herodamageshow", "enemydamage_" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {damage:edamage, _x:_root.hero._x, _y:_root.hero._y});
damagedealt.onEnterFrame = function () {
var _local2 = new Color(this.damager);
_local2.setRGB(16711680);
this.damager.damage.txtdamage = damage;
if (random(200) == 1) {
this.removeMovieClip();
}
};
if (edamage == "Miss!") {
edamage = 0;
}
_global.herolife = _global.herolife - edamage;
}
}
Instance of Symbol 38 MovieClip in Symbol 126 MovieClip Frame 13
onClipEvent (load) {
edamage = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.bodytarget) && (_global.shieldup == 0)) {
edamage = this._parent._parent.strength;
edamage = (edamage - _global.herodef) - _global.herovit;
edamage = random(edamage);
if (edamage < 1) {
edamage = "Miss!";
}
trace(edamage);
damagedealt = _root.attachMovie("herodamageshow", "enemydamage_" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {damage:edamage, _x:_root.hero._x, _y:_root.hero._y});
damagedealt.onEnterFrame = function () {
var _local2 = new Color(this.damager);
_local2.setRGB(16711680);
this.damager.damage.txtdamage = damage;
if (random(200) == 1) {
this.removeMovieClip();
}
};
if (edamage == "Miss!") {
edamage = 0;
} else {
_global.herolife = _global.herolife - edamage;
}
}
}
Symbol 126 MovieClip Frame 80
_parent.attacking = 0;
_parent.gotoAndStop("walk");
Symbol 129 MovieClip Frame 365
_parent._parent.respawn = 1;
stop();
Symbol 130 MovieClip Frame 1
_root.explosion_fx.start();
Symbol 130 MovieClip Frame 7
_root.explosion_fx.start();
Symbol 130 MovieClip Frame 13
_root.explosion_fx.start();
Symbol 130 MovieClip Frame 36
_parent._parent.removeMovieClip();
Symbol 131 MovieClip Frame 1
stop();
Symbol 131 MovieClip Frame 2
stop();
Symbol 131 MovieClip Frame 3
stop();
Instance of Symbol 131 MovieClip in Symbol 132 MovieClip [boss2] Frame 1
onClipEvent (load) {
life = 40000;
maxlife = 40000;
ename = "S-Model Prototype";
defense = 200;
strength = 400;
expoints = 400;
score = 700;
money = 1500;
respawn = 0;
oldx = _parent._x;
oldy = _parent._y;
follower = this._parent;
heroattackpath = "_root.hero.hero_main.attack.attacktarget";
var radians = 57.2957795130823;
follower.agroRange = 10000;
follower.distanceX = 0;
follower.distanceY = 0;
follower.distanceTotal = 0;
follower.moveDistanceX = 0;
follower.moveDistanceY = 0;
follower.moveX = 0;
follower.moveY = 0;
follower.totalmove = 0;
follower.speed = 3;
attacktarget = _root.hero;
target = _root.hero;
follower.turnRate = 1;
attacking = 0;
checking = 0;
}
onClipEvent (enterFrame) {
if (_global.gamepaused == 0) {
if ((life > 0) && (_global.gamepaused == 0)) {
_parent._alpha = 100;
if (this.enemysight.hitTest(attacktarget)) {
attacking = 1;
}
if (attacking == 0) {
follower.distanceX = target._x - follower._x;
follower.distanceY = target._y - follower._y;
follower.distanceTotal = Math.sqrt((follower.distanceX * follower.distanceX) + (follower.distanceY * follower.distanceY));
if (follower.distanceTotal <= follower.agroRange) {
follower.moveDistanceX = (follower.turnRate * follower.distanceX) / follower.distanceTotal;
follower.moveDistanceY = (follower.turnRate * follower.distanceY) / follower.distanceTotal;
follower.moveX = follower.moveX + follower.moveDistanceX;
follower.moveY = follower.moveY + follower.moveDistanceY;
follower.totalmove = Math.sqrt((follower.moveX * follower.moveX) + (follower.moveY * follower.moveY));
follower.moveX = (follower.speed * follower.moveX) / follower.totalmove;
follower.moveY = (follower.speed * follower.moveY) / follower.totalmove;
follower._x = follower._x + follower.moveX;
follower._y = follower._y + follower.moveY;
follower._rotation = Math.atan2(follower.moveY, follower.moveX) * radians;
if (follower.moveX > 0) {
myspeedx = follower.moveX * 1;
} else {
myspeedx = follower.moveX * -1;
}
}
} else {
this.gotoAndStop("attack");
}
if (follower.moveY > 0) {
myspeedy = follower.moveY * 1;
} else {
myspeedy = follower.moveY * -1;
}
if (_root.hero.hero_main.attack.attacktarget.hitTest(this.enemytarget)) {
follower._x = follower._x - (follower.moveX * 2);
follower._y = follower._y - (follower.moveY * 2);
_parent._alpha = 50;
damage = (((_global.herostr + _global.heroint) * _global.herowep) * _global.skillstr) - defense;
damage = random(damage);
if (damage < 0) {
damage = 1;
}
life = life - damage;
_global.enemylife = life;
_global.maxenemylife = maxlife;
_global.enemyname = ename;
if (damage == 0) {
_root.attack_miss.start();
if (_global.skillactive > 2) {
damage = _global.skillstr;
} else {
damage = "Miss!";
}
} else {
if (random(3) == 1) {
_root.attack_hit1.start();
} else {
_root.attack_hit2.start();
}
_root.swordspark = _root.attachMovie("clash", "myclash_" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:this._parent._x, _y:this._parent._y});
_root.swordspark.onEnterFrame = function () {
if (random(200) == 1) {
this.removeMovieClip();
}
};
}
_root.damagedone = _root.attachMovie("herodamageshow", "mydamage_" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:this._parent._x, _y:this._parent._y});
_root.damagedone.onEnterFrame = function () {
var _local2 = new Color(this.damager);
_local2.setRGB(16104760);
this.damager.damage.txtdamage = damage;
if (random(200) == 1) {
this.removeMovieClip();
}
};
}
}
if ((life < 1) && (checking == 0)) {
_global.enemylife = 0;
_global.maxenemylife = maxlife;
_global.enemyname = ename;
_parent._alpha = 100;
checking = 1;
_root.camera.shake = _root.camera.shake + 2.5;
_global.score = _global.score + score;
_global.money = _global.money + money;
_global.stagekill = _global.stagekill + 1;
_global.robotskilled = _global.robotskilled + 1;
_global.robotsummonkilled = _global.robotsummonkilled + 1;
myexpoints = expoints - (_global.herolevel * 3);
if (myexpoints < 0) {
myexpoints = 0;
}
_root.camera.txtmsg = ("Received " + myexpoints) + " EXP points!";
_root.txtcleaner.gotoAndPlay(2);
_global.expoints = _global.expoints + myexpoints;
if (_parent.bossmonster == 1) {
_parent.bossdead = 1;
}
this.gotoAndStop("dead");
}
if (_global.cleanup == 1) {
this._parent.removeMovieClip();
}
}
}
Symbol 210 MovieClip Frame 1
_root.enemyattack6.start();
Instance of Symbol 38 MovieClip in Symbol 210 MovieClip Frame 22
onClipEvent (load) {
edamage = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.bodytarget) && (_global.shieldup == 0)) {
edamage = this._parent._parent.strength;
edamage = (edamage - _global.herodef) - _global.herovit;
edamage = random(edamage);
if (edamage < 1) {
edamage = "Miss!";
}
damagedealt = _root.attachMovie("herodamageshow", "enemydamage_" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {damage:edamage, _x:_root.hero._x, _y:_root.hero._y});
damagedealt.onEnterFrame = function () {
var _local2 = new Color(this.damager);
_local2.setRGB(16711680);
this.damager.damage.txtdamage = damage;
if (random(200) == 1) {
this.removeMovieClip();
}
};
if (edamage == "Miss!") {
edamage = 0;
} else {
_global.herolife = _global.herolife - edamage;
}
}
}
Symbol 210 MovieClip Frame 58
_parent.attacking = 0;
_parent.atkcheck = 0;
_parent.gotoAndStop("walk");
Symbol 212 MovieClip Frame 1
_root.enemyattack6.start();
Instance of Symbol 38 MovieClip in Symbol 212 MovieClip Frame 16
onClipEvent (load) {
edamage = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.bodytarget) && (_global.shieldup == 0)) {
edamage = this._parent._parent.strength;
edamage = (edamage - _global.herodef) - _global.herovit;
edamage = random(edamage);
if (edamage < 1) {
edamage = "Miss!";
}
damagedealt = _root.attachMovie("herodamageshow", "enemydamage_" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {damage:edamage, _x:_root.hero._x, _y:_root.hero._y});
damagedealt.onEnterFrame = function () {
var _local2 = new Color(this.damager);
_local2.setRGB(16711680);
this.damager.damage.txtdamage = damage;
if (random(200) == 1) {
this.removeMovieClip();
}
};
if (edamage == "Miss!") {
edamage = 0;
} else {
_global.herolife = _global.herolife - edamage;
}
}
}
Instance of Symbol 38 MovieClip in Symbol 212 MovieClip Frame 24
onClipEvent (load) {
edamage = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.bodytarget) && (_global.shieldup == 0)) {
edamage = this._parent._parent.strength;
edamage = (edamage - _global.herodef) - _global.herovit;
edamage = random(edamage);
if (edamage < 1) {
edamage = "Miss!";
}
damagedealt = _root.attachMovie("herodamageshow", "enemydamage_" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {damage:edamage, _x:_root.hero._x, _y:_root.hero._y});
damagedealt.onEnterFrame = function () {
var _local2 = new Color(this.damager);
_local2.setRGB(16711680);
this.damager.damage.txtdamage = damage;
if (random(200) == 1) {
this.removeMovieClip();
}
};
if (edamage == "Miss!") {
edamage = 0;
} else {
_global.herolife = _global.herolife - edamage;
}
}
}
Instance of Symbol 38 MovieClip in Symbol 212 MovieClip Frame 33
onClipEvent (load) {
edamage = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.bodytarget) && (_global.shieldup == 0)) {
edamage = this._parent._parent.strength;
edamage = (edamage - _global.herodef) - _global.herovit;
edamage = random(edamage);
if (edamage < 1) {
edamage = "Miss!";
}
damagedealt = _root.attachMovie("herodamageshow", "enemydamage_" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {damage:edamage, _x:_root.hero._x, _y:_root.hero._y});
damagedealt.onEnterFrame = function () {
var _local2 = new Color(this.damager);
_local2.setRGB(16711680);
this.damager.damage.txtdamage = damage;
if (random(200) == 1) {
this.removeMovieClip();
}
};
if (edamage == "Miss!") {
edamage = 0;
} else {
_global.herolife = _global.herolife - edamage;
}
}
}
Instance of Symbol 38 MovieClip in Symbol 212 MovieClip Frame 41
onClipEvent (load) {
edamage = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.bodytarget) && (_global.shieldup == 0)) {
edamage = this._parent._parent.strength;
edamage = (edamage - _global.herodef) - _global.herovit;
edamage = random(edamage);
if (edamage < 1) {
edamage = "Miss!";
}
damagedealt = _root.attachMovie("herodamageshow", "enemydamage_" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {damage:edamage, _x:_root.hero._x, _y:_root.hero._y});
damagedealt.onEnterFrame = function () {
var _local2 = new Color(this.damager);
_local2.setRGB(16711680);
this.damager.damage.txtdamage = damage;
if (random(200) == 1) {
this.removeMovieClip();
}
};
if (edamage == "Miss!") {
edamage = 0;
} else {
_global.herolife = _global.herolife - edamage;
}
}
}
Instance of Symbol 38 MovieClip in Symbol 212 MovieClip Frame 50
onClipEvent (load) {
edamage = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.bodytarget) && (_global.shieldup == 0)) {
edamage = this._parent._parent.strength;
edamage = (edamage - _global.herodef) - _global.herovit;
edamage = random(edamage);
if (edamage < 1) {
edamage = "Miss!";
}
damagedealt = _root.attachMovie("herodamageshow", "enemydamage_" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {damage:edamage, _x:_root.hero._x, _y:_root.hero._y});
damagedealt.onEnterFrame = function () {
var _local2 = new Color(this.damager);
_local2.setRGB(16711680);
this.damager.damage.txtdamage = damage;
if (random(200) == 1) {
this.removeMovieClip();
}
};
if (edamage == "Miss!") {
edamage = 0;
} else {
_global.herolife = _global.herolife - edamage;
}
}
}
Instance of Symbol 38 MovieClip in Symbol 212 MovieClip Frame 63
onClipEvent (load) {
edamage = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.bodytarget) && (_global.shieldup == 0)) {
edamage = this._parent._parent.strength;
edamage = (edamage - _global.herodef) - _global.herovit;
edamage = random(edamage);
if (edamage < 1) {
edamage = "Miss!";
}
damagedealt = _root.attachMovie("herodamageshow", "enemydamage_" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {damage:edamage, _x:_root.hero._x, _y:_root.hero._y});
damagedealt.onEnterFrame = function () {
var _local2 = new Color(this.damager);
_local2.setRGB(16711680);
this.damager.damage.txtdamage = damage;
if (random(200) == 1) {
this.removeMovieClip();
}
};
if (edamage == "Miss!") {
edamage = 0;
} else {
_global.herolife = _global.herolife - edamage;
}
}
}
Symbol 212 MovieClip Frame 100
_parent.attacking = 0;
_parent.atkcheck = 0;
_parent.gotoAndStop("walk");
Symbol 247 MovieClip Frame 52
_parent._parent.removeMovieClip();
Symbol 248 MovieClip Frame 1
stop();
Symbol 248 MovieClip Frame 2
stop();
Symbol 248 MovieClip Frame 3
stop();
Symbol 248 MovieClip Frame 4
stop();
Instance of Symbol 248 MovieClip in Symbol 249 MovieClip [boss4] Frame 1
onClipEvent (load) {
life = 200000 /* 0x030D40 */;
maxlife = 200000 /* 0x030D40 */;
ename = "Final Boss - Army Slayer";
defense = 500;
strength = 1700;
expoints = 1500;
score = 5200;
money = 5000;
respawn = 0;
oldx = _parent._x;
oldy = _parent._y;
follower = this._parent;
heroattackpath = "_root.hero.hero_main.attack.attacktarget";
var radians = 57.2957795130823;
follower.agroRange = 10000;
follower.distanceX = 0;
follower.distanceY = 0;
follower.distanceTotal = 0;
follower.moveDistanceX = 0;
follower.moveDistanceY = 0;
follower.moveX = 0;
follower.moveY = 0;
follower.totalmove = 0;
follower.speed = 7;
attacktarget = _root.hero;
target = _root.hero;
atkcheck = 0;
follower.turnRate = 1;
attacking = 0;
checking = 0;
}
onClipEvent (enterFrame) {
if (_global.gamepaused == 0) {
if ((life > 0) && (_global.gamepaused == 0)) {
_parent._alpha = 100;
if (this.hitTest(attacktarget)) {
attacking = 1;
}
if (attacking == 0) {
follower.distanceX = target._x - follower._x;
follower.distanceY = target._y - follower._y;
follower.distanceTotal = Math.sqrt((follower.distanceX * follower.distanceX) + (follower.distanceY * follower.distanceY));
if (follower.distanceTotal <= follower.agroRange) {
follower.moveDistanceX = (follower.turnRate * follower.distanceX) / follower.distanceTotal;
follower.moveDistanceY = (follower.turnRate * follower.distanceY) / follower.distanceTotal;
follower.moveX = follower.moveX + follower.moveDistanceX;
follower.moveY = follower.moveY + follower.moveDistanceY;
follower.totalmove = Math.sqrt((follower.moveX * follower.moveX) + (follower.moveY * follower.moveY));
follower.moveX = (follower.speed * follower.moveX) / follower.totalmove;
follower.moveY = (follower.speed * follower.moveY) / follower.totalmove;
follower._x = follower._x + follower.moveX;
follower._y = follower._y + follower.moveY;
follower._rotation = Math.atan2(follower.moveY, follower.moveX) * radians;
if (follower.moveX > 0) {
myspeedx = follower.moveX * 1;
} else {
myspeedx = follower.moveX * -1;
}
}
} else if (atkcheck == 0) {
atkcheck = 1;
if (random(3) == 1) {
this.gotoAndStop("attack2");
} else {
this.gotoAndStop("attack");
}
}
if (follower.moveY > 0) {
myspeedy = follower.moveY * 1;
} else {
myspeedy = follower.moveY * -1;
}
if (_root.hero.hero_main.attack.attacktarget.hitTest(this)) {
follower._x = follower._x - (follower.moveX * 2);
follower._y = follower._y - (follower.moveY * 2);
_parent._alpha = 50;
damage = (((_global.herostr + _global.heroint) * _global.herowep) * _global.skillstr) - defense;
damage = random(damage);
if (damage < 0) {
damage = 1;
}
life = life - damage;
_global.enemylife = life;
_global.maxenemylife = maxlife;
_global.enemyname = ename;
if (damage == 0) {
_root.attack_miss.start();
if (_global.skillactive > 2) {
damage = _global.skillstr;
} else {
damage = "Miss!";
}
} else {
if (random(3) == 1) {
_root.attack_hit1.start();
} else {
_root.attack_hit2.start();
}
_root.swordspark = _root.attachMovie("clash", "myclash_" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:this._parent._x, _y:this._parent._y});
_root.swordspark.onEnterFrame = function () {
if (random(200) == 1) {
this.removeMovieClip();
}
};
}
_root.damagedone = _root.attachMovie("herodamageshow", "mydamage_" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:this._parent._x, _y:this._parent._y});
_root.damagedone.onEnterFrame = function () {
var _local2 = new Color(this.damager);
_local2.setRGB(16104760);
this.damager.damage.txtdamage = damage;
if (random(200) == 1) {
this.removeMovieClip();
}
};
}
}
if ((life < 1) && (checking == 0)) {
_global.enemylife = 0;
_global.maxenemylife = maxlife;
_global.enemyname = ename;
_parent._alpha = 100;
checking = 1;
_root.camera.shake = _root.camera.shake + 2.5;
_global.score = _global.score + score;
_global.money = _global.money + money;
_global.stagekill = _global.stagekill + 1;
_global.robotskilled = _global.robotskilled + 1;
_global.robotsummonkilled = _global.robotsummonkilled + 1;
myexpoints = expoints - (_global.herolevel * 3);
if (myexpoints < 0) {
myexpoints = 1;
}
_root.camera.txtmsg = ("Received " + myexpoints) + " EXP points!";
_root.txtcleaner.gotoAndPlay(2);
_global.expoints = _global.expoints + myexpoints;
if (_parent.bossmonster == 1) {
_parent.bossdead = 1;
}
this.gotoAndStop("dead");
}
if (_global.cleanup == 1) {
this._parent.removeMovieClip();
}
}
}
Symbol 266 MovieClip Frame 1
_root.enemyattack8.start();
_parent.attacking = 1;
Symbol 266 MovieClip Frame 23
_root.explosion_fx.start();
Instance of Symbol 265 MovieClip in Symbol 266 MovieClip Frame 23
onClipEvent (load) {
edamage = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.bodytarget) && (_global.shieldup == 0)) {
edamage = this._parent._parent.strength;
edamage = (edamage - _global.herodef) - _global.herovit;
edamage = random(edamage);
if (edamage < 1) {
edamage = "Miss!";
}
damagedealt = _root.attachMovie("herodamageshow", "enemydamage_" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {damage:edamage, _x:_root.hero._x, _y:_root.hero._y});
damagedealt.onEnterFrame = function () {
var _local2 = new Color(this.damager);
_local2.setRGB(16711680);
this.damager.damage.txtdamage = damage;
if (random(200) == 1) {
this.removeMovieClip();
}
};
if (edamage == "Miss!") {
edamage = 0;
}
_global.herolife = _global.herolife - edamage;
}
}
Symbol 266 MovieClip Frame 55
_parent.attacking = 0;
_parent.gotoAndStop("walk");
Symbol 267 MovieClip Frame 40
_parent._parent.removeMovieClip();
Symbol 268 MovieClip Frame 1
stop();
Symbol 268 MovieClip Frame 2
stop();
Symbol 268 MovieClip Frame 3
stop();
Instance of Symbol 268 MovieClip in Symbol 269 MovieClip [enemy8] Frame 1
onClipEvent (load) {
life = 8000;
maxlife = 8000;
ename = "X39 Roach";
defense = 80;
strength = 150;
expoints = 200;
score = 500;
money = 600;
respawn = 0;
oldx = _parent._x;
oldy = _parent._y;
follower = this._parent;
heroattackpath = "_root.hero.hero_main.attack.attacktarget";
var radians = 57.2957795130823;
follower.agroRange = 10000;
follower.distanceX = 0;
follower.distanceY = 0;
follower.distanceTotal = 0;
follower.moveDistanceX = 0;
follower.moveDistanceY = 0;
follower.moveX = 0;
follower.moveY = 0;
follower.totalmove = 0;
follower.speed = 4;
attacktarget = _root.hero;
target = _root.hero;
follower.turnRate = 1;
attacking = 0;
checking = 0;
}
onClipEvent (enterFrame) {
if (_global.gamepaused == 0) {
if (_parent.bossmonster != 1) {
if (respawn == 1) {
respawn = 0;
life = 8000;
maxlife = 8000;
attacking = 0;
checking = 0;
_parent._x = oldx;
_parent._y = oldy;
this.gotoAndStop("walk");
}
}
if ((life > 0) && (_global.gamepaused == 0)) {
_parent._alpha = 100;
if (this.hitTest(attacktarget)) {
attacking = 1;
}
if (attacking == 0) {
follower.distanceX = target._x - follower._x;
follower.distanceY = target._y - follower._y;
follower.distanceTotal = Math.sqrt((follower.distanceX * follower.distanceX) + (follower.distanceY * follower.distanceY));
if (follower.distanceTotal <= follower.agroRange) {
follower.moveDistanceX = (follower.turnRate * follower.distanceX) / follower.distanceTotal;
follower.moveDistanceY = (follower.turnRate * follower.distanceY) / follower.distanceTotal;
follower.moveX = follower.moveX + follower.moveDistanceX;
follower.moveY = follower.moveY + follower.moveDistanceY;
follower.totalmove = Math.sqrt((follower.moveX * follower.moveX) + (follower.moveY * follower.moveY));
follower.moveX = (follower.speed * follower.moveX) / follower.totalmove;
follower.moveY = (follower.speed * follower.moveY) / follower.totalmove;
follower._x = follower._x + follower.moveX;
follower._y = follower._y + follower.moveY;
follower._rotation = Math.atan2(follower.moveY, follower.moveX) * radians;
if (follower.moveX > 0) {
myspeedx = follower.moveX * 1;
} else {
myspeedx = follower.moveX * -1;
}
}
} else {
this.gotoAndStop("attack");
}
if (follower.moveY > 0) {
myspeedy = follower.moveY * 1;
} else {
myspeedy = follower.moveY * -1;
}
if (_root.hero.hero_main.attack.attacktarget.hitTest(this)) {
follower._x = follower._x - (follower.moveX * 2);
follower._y = follower._y - (follower.moveY * 2);
_parent._alpha = 50;
damage = (((_global.herostr + _global.heroint) * _global.herowep) * _global.skillstr) - defense;
damage = random(damage);
if (damage < 0) {
damage = 1;
}
life = life - damage;
_global.enemylife = life;
_global.maxenemylife = maxlife;
_global.enemyname = ename;
if (damage == 0) {
_root.attack_miss.start();
if (_global.skillactive > 2) {
damage = _global.skillstr;
} else {
damage = "Miss!";
}
} else {
if (random(3) == 1) {
_root.attack_hit1.start();
} else {
_root.attack_hit2.start();
}
_root.swordspark = _root.attachMovie("clash", "myclash_" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:this._parent._x, _y:this._parent._y});
_root.swordspark.onEnterFrame = function () {
if (random(200) == 1) {
this.removeMovieClip();
}
};
}
_root.damagedone = _root.attachMovie("herodamageshow", "mydamage_" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:this._parent._x, _y:this._parent._y});
_root.damagedone.onEnterFrame = function () {
var _local2 = new Color(this.damager);
_local2.setRGB(16104760);
this.damager.damage.txtdamage = damage;
if (random(200) == 1) {
this.removeMovieClip();
}
};
}
}
if ((life < 1) && (checking == 0)) {
_global.enemylife = 0;
_global.maxenemylife = maxlife;
_global.enemyname = ename;
_parent._alpha = 100;
checking = 1;
_root.camera.shake = _root.camera.shake + 2.5;
_global.score = _global.score + score;
_global.money = _global.money + money;
_global.stagekill = _global.stagekill + 1;
_global.robotskilled = _global.robotskilled + 1;
_global.robotsummonkilled = _global.robotsummonkilled + 1;
myexpoints = expoints - (_global.herolevel * 3);
if (myexpoints < 0) {
myexpoints = 1;
}
_root.camera.txtmsg = ("Received " + myexpoints) + " EXP points!";
_root.txtcleaner.gotoAndPlay(2);
_global.expoints = _global.expoints + myexpoints;
if (_parent.bossmonster == 1) {
_parent.bossdead = 1;
}
this.gotoAndStop("dead");
}
if (_global.cleanup == 1) {
this._parent.removeMovieClip();
}
}
}
Symbol 289 MovieClip Frame 1
_root.enemyattack4.start();
_parent.attacking = 1;
Instance of Symbol 38 MovieClip in Symbol 289 MovieClip Frame 8
onClipEvent (load) {
edamage = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.bodytarget) && (_global.shieldup == 0)) {
edamage = this._parent._parent.strength;
edamage = (edamage - _global.herodef) - _global.herovit;
edamage = random(edamage);
if (edamage < 1) {
edamage = "Miss!";
}
damagedealt = _root.attachMovie("herodamageshow", "enemydamage_" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {damage:edamage, _x:_root.hero._x, _y:_root.hero._y});
damagedealt.onEnterFrame = function () {
var _local2 = new Color(this.damager);
_local2.setRGB(16711680);
this.damager.damage.txtdamage = damage;
if (random(200) == 1) {
this.removeMovieClip();
}
};
if (edamage == "Miss!") {
edamage = 0;
}
_global.herolife = _global.herolife - edamage;
}
}
Instance of Symbol 38 MovieClip in Symbol 289 MovieClip Frame 14
onClipEvent (load) {
edamage = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.bodytarget) && (_global.shieldup == 0)) {
edamage = this._parent._parent.strength;
edamage = (edamage - _global.herodef) - _global.herovit;
edamage = random(edamage);
if (edamage < 1) {
edamage = "Miss!";
}
damagedealt = _root.attachMovie("herodamageshow", "enemydamage_" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {damage:edamage, _x:_root.hero._x, _y:_root.hero._y});
damagedealt.onEnterFrame = function () {
var _local2 = new Color(this.damager);
_local2.setRGB(16711680);
this.damager.damage.txtdamage = damage;
if (random(200) == 1) {
this.removeMovieClip();
}
};
if (edamage == "Miss!") {
edamage = 0;
}
_global.herolife = _global.herolife - edamage;
}
}
Symbol 289 MovieClip Frame 60
_parent.attacking = 0;
_parent.gotoAndStop("walk");
Symbol 290 MovieClip Frame 36
stop();
Symbol 291 MovieClip Frame 1
stop();
Symbol 291 MovieClip Frame 2
stop();
Symbol 291 MovieClip Frame 3
stop();
Instance of Symbol 291 MovieClip in Symbol 292 MovieClip [boss1] Frame 1
onClipEvent (load) {
life = 10000;
maxlife = 10000;
ename = "AraKnid 3000";
defense = 100;
strength = 100;
expoints = 150;
score = 1500;
money = 1600;
respawn = 0;
oldx = _parent._x;
oldy = _parent._y;
follower = this._parent;
heroattackpath = "_root.hero.hero_main.attack.attacktarget";
var radians = 57.2957795130823;
follower.agroRange = 10000;
follower.distanceX = 0;
follower.distanceY = 0;
follower.distanceTotal = 0;
follower.moveDistanceX = 0;
follower.moveDistanceY = 0;
follower.moveX = 0;
follower.moveY = 0;
follower.totalmove = 0;
follower.speed = 5;
attacktarget = _root.hero;
target = _root.hero;
follower.turnRate = 1;
attacking = 0;
checking = 0;
}
onClipEvent (enterFrame) {
if (_global.gamepaused == 0) {
if ((life > 0) && (_global.gamepaused == 0)) {
_parent._alpha = 100;
if (this.hitTest(attacktarget)) {
attacking = 1;
}
if (attacking == 0) {
follower.distanceX = target._x - follower._x;
follower.distanceY = target._y - follower._y;
follower.distanceTotal = Math.sqrt((follower.distanceX * follower.distanceX) + (follower.distanceY * follower.distanceY));
if (follower.distanceTotal <= follower.agroRange) {
follower.moveDistanceX = (follower.turnRate * follower.distanceX) / follower.distanceTotal;
follower.moveDistanceY = (follower.turnRate * follower.distanceY) / follower.distanceTotal;
follower.moveX = follower.moveX + follower.moveDistanceX;
follower.moveY = follower.moveY + follower.moveDistanceY;
follower.totalmove = Math.sqrt((follower.moveX * follower.moveX) + (follower.moveY * follower.moveY));
follower.moveX = (follower.speed * follower.moveX) / follower.totalmove;
follower.moveY = (follower.speed * follower.moveY) / follower.totalmove;
follower._x = follower._x + follower.moveX;
follower._y = follower._y + follower.moveY;
follower._rotation = Math.atan2(follower.moveY, follower.moveX) * radians;
if (follower.moveX > 0) {
myspeedx = follower.moveX * 1;
} else {
myspeedx = follower.moveX * -1;
}
}
} else {
this.gotoAndStop("attack");
}
if (follower.moveY > 0) {
myspeedy = follower.moveY * 1;
} else {
myspeedy = follower.moveY * -1;
}
if (_root.hero.hero_main.attack.attacktarget.hitTest(this)) {
follower._x = follower._x - (follower.moveX * 2);
follower._y = follower._y - (follower.moveY * 2);
_parent._alpha = 50;
damage = (((_global.herostr + _global.heroint) * _global.herowep) * _global.skillstr) - defense;
damage = random(damage);
if (damage < 0) {
damage = 1;
}
life = life - damage;
_global.enemylife = life;
_global.maxenemylife = maxlife;
_global.enemyname = ename;
if (damage == 0) {
_root.attack_miss.start();
if (_global.skillactive > 2) {
damage = _global.skillstr;
} else {
damage = "Miss!";
}
} else {
if (random(3) == 1) {
_root.attack_hit1.start();
} else {
_root.attack_hit2.start();
}
_root.swordspark = _root.attachMovie("clash", "myclash_" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:this._parent._x, _y:this._parent._y});
_root.swordspark.onEnterFrame = function () {
if (random(200) == 1) {
this.removeMovieClip();
}
};
}
_root.damagedone = _root.attachMovie("herodamageshow", "mydamage_" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:this._parent._x, _y:this._parent._y});
_root.damagedone.onEnterFrame = function () {
var _local2 = new Color(this.damager);
_local2.setRGB(16104760);
this.damager.damage.txtdamage = damage;
if (random(200) == 1) {
this.removeMovieClip();
}
};
}
}
if ((life < 1) && (checking == 0)) {
_global.enemylife = 0;
_global.maxenemylife = maxlife;
_global.enemyname = ename;
_parent._alpha = 100;
checking = 1;
_root.camera.shake = _root.camera.shake + 2.5;
_global.score = _global.score + score;
_global.money = _global.money + money;
_global.stagekill = _global.stagekill + 1;
_global.robotskilled = _global.robotskilled + 1;
_global.robotsummonkilled = _global.robotsummonkilled + 1;
myexpoints = expoints - (_global.herolevel * 3);
if (myexpoints < 0) {
myexpoints = 0;
}
_root.camera.txtmsg = ("Received " + myexpoints) + " EXP points!";
_root.txtcleaner.gotoAndPlay(2);
_global.expoints = _global.expoints + myexpoints;
if (_parent.bossmonster == 1) {
_parent.bossdead = 1;
}
this.gotoAndStop("dead");
}
if (_global.cleanup == 1) {
this._parent.removeMovieClip();
}
}
}
Symbol 312 MovieClip Frame 15
_root.enemyattack2.start();
Instance of Symbol 265 MovieClip in Symbol 312 MovieClip Frame 15
onClipEvent (load) {
edamage = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.bodytarget) && (_global.shieldup == 0)) {
edamage = this._parent._parent.strength;
edamage = (edamage - _global.herodef) - _global.herovit;
edamage = random(edamage);
if (edamage < 1) {
edamage = "Miss!";
}
damagedealt = _root.attachMovie("herodamageshow", "enemydamage_" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {damage:edamage, _x:_root.hero._x, _y:_root.hero._y});
damagedealt.onEnterFrame = function () {
var _local2 = new Color(this.damager);
_local2.setRGB(16711680);
this.damager.damage.txtdamage = damage;
if (random(200) == 1) {
this.removeMovieClip();
}
};
if (edamage == "Miss!") {
edamage = 0;
}
_global.herolife = _global.herolife - edamage;
}
}
Symbol 312 MovieClip Frame 35
_parent.attacking = 0;
_parent.atkcheck = 0;
_parent.gotoAndStop("walk");
Symbol 313 MovieClip Frame 10
_root.enemyattack2.start();
Instance of Symbol 265 MovieClip in Symbol 313 MovieClip Frame 10
onClipEvent (load) {
edamage = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.bodytarget) && (_global.shieldup == 0)) {
edamage = this._parent._parent.strength;
edamage = (edamage - _global.herodef) - _global.herovit;
edamage = random(edamage);
if (edamage < 1) {
edamage = "Miss!";
}
damagedealt = _root.attachMovie("herodamageshow", "enemydamage_" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {damage:edamage, _x:_root.hero._x, _y:_root.hero._y});
damagedealt.onEnterFrame = function () {
var _local2 = new Color(this.damager);
_local2.setRGB(16711680);
this.damager.damage.txtdamage = damage;
if (random(200) == 1) {
this.removeMovieClip();
}
};
if (edamage == "Miss!") {
edamage = 0;
}
_global.herolife = _global.herolife - edamage;
}
}
Symbol 313 MovieClip Frame 15
_root.enemyattack2.start();
Instance of Symbol 265 MovieClip in Symbol 313 MovieClip Frame 15
onClipEvent (load) {
edamage = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.bodytarget) && (_global.shieldup == 0)) {
edamage = this._parent._parent.strength;
edamage = (edamage - _global.herodef) - _global.herovit;
edamage = random(edamage);
if (edamage < 1) {
edamage = "Miss!";
}
damagedealt = _root.attachMovie("herodamageshow", "enemydamage_" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {damage:edamage, _x:_root.hero._x, _y:_root.hero._y});
damagedealt.onEnterFrame = function () {
var _local2 = new Color(this.damager);
_local2.setRGB(16711680);
this.damager.damage.txtdamage = damage;
if (random(200) == 1) {
this.removeMovieClip();
}
};
if (edamage == "Miss!") {
edamage = 0;
}
_global.herolife = _global.herolife - edamage;
}
}
Symbol 313 MovieClip Frame 35
_parent.attacking = 0;
_parent.atkcheck = 0;
_parent.gotoAndStop("walk");
Symbol 314 MovieClip Frame 1
_root.explosion_fx.start();
Symbol 314 MovieClip Frame 26
stop();
_parent.removeMovieClip();
Symbol 315 MovieClip Frame 1
stop();
Symbol 315 MovieClip Frame 2
stop();
Symbol 315 MovieClip Frame 3
stop();
Symbol 315 MovieClip Frame 4
stop();
Instance of Symbol 315 MovieClip in Symbol 316 MovieClip [enemy5] Frame 1
onClipEvent (load) {
life = 2000;
maxlife = 2000;
ename = "Humanoid Proto 3728";
defense = 30;
strength = 60;
expoints = 90;
score = 350;
money = 400;
respawn = 0;
oldx = _parent._x;
oldy = _parent._y;
follower = this._parent;
heroattackpath = "_root.hero.hero_main.attack.attacktarget";
var radians = 57.2957795130823;
follower.agroRange = 10000;
follower.distanceX = 0;
follower.distanceY = 0;
follower.distanceTotal = 0;
follower.moveDistanceX = 0;
follower.moveDistanceY = 0;
follower.moveX = 0;
follower.moveY = 0;
follower.totalmove = 0;
follower.speed = 3;
attacktarget = _root.hero;
target = _root.hero;
follower.turnRate = 0.3;
atkcheck = 0;
attacking = 0;
checking = 0;
}
onClipEvent (enterFrame) {
if (_global.gamepaused == 0) {
if ((life > 0) && (_global.gamepaused == 0)) {
_parent._alpha = 100;
if (this.hitTest(attacktarget)) {
attacking = 1;
}
if (attacking == 0) {
follower.distanceX = target._x - follower._x;
follower.distanceY = target._y - follower._y;
follower.distanceTotal = Math.sqrt((follower.distanceX * follower.distanceX) + (follower.distanceY * follower.distanceY));
if (follower.distanceTotal <= follower.agroRange) {
follower.moveDistanceX = (follower.turnRate * follower.distanceX) / follower.distanceTotal;
follower.moveDistanceY = (follower.turnRate * follower.distanceY) / follower.distanceTotal;
follower.moveX = follower.moveX + follower.moveDistanceX;
follower.moveY = follower.moveY + follower.moveDistanceY;
follower.totalmove = Math.sqrt((follower.moveX * follower.moveX) + (follower.moveY * follower.moveY));
follower.moveX = (follower.speed * follower.moveX) / follower.totalmove;
follower.moveY = (follower.speed * follower.moveY) / follower.totalmove;
follower._x = follower._x + follower.moveX;
follower._y = follower._y + follower.moveY;
follower._rotation = Math.atan2(follower.moveY, follower.moveX) * radians;
if (follower.moveX > 0) {
myspeedx = follower.moveX * 1;
} else {
myspeedx = follower.moveX * -1;
}
}
} else if (atkcheck == 0) {
atkcheck = 1;
if (random(3) == 1) {
this.gotoAndStop("attack2");
} else {
this.gotoAndStop("attack");
}
}
if (follower.moveY > 0) {
myspeedy = follower.moveY * 1;
} else {
myspeedy = follower.moveY * -1;
}
if (_root.hero.hero_main.attack.attacktarget.hitTest(this)) {
follower._x = follower._x - (follower.moveX * 2);
follower._y = follower._y - (follower.moveY * 2);
_parent._alpha = 50;
damage = (((_global.herostr + _global.heroint) * _global.herowep) * _global.skillstr) - defense;
damage = random(damage);
if (damage < 0) {
damage = 1;
}
life = life - damage;
_global.enemylife = life;
_global.maxenemylife = maxlife;
_global.enemyname = ename;
if (damage == 0) {
_root.attack_miss.start();
if (_global.skillactive > 2) {
damage = _global.skillstr;
} else {
damage = "Miss!";
}
} else {
if (random(3) == 1) {
_root.attack_hit1.start();
} else {
_root.attack_hit2.start();
}
_root.swordspark = _root.attachMovie("clash", "myclash_" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:this._parent._x, _y:this._parent._y});
_root.swordspark.onEnterFrame = function () {
if (random(200) == 1) {
this.removeMovieClip();
}
};
}
_root.damagedone = _root.attachMovie("herodamageshow", "mydamage_" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:this._parent._x, _y:this._parent._y});
_root.damagedone.onEnterFrame = function () {
var _local2 = new Color(this.damager);
_local2.setRGB(16104760);
this.damager.damage.txtdamage = damage;
if (random(200) == 1) {
this.removeMovieClip();
}
};
}
}
if ((life < 1) && (checking == 0)) {
_global.enemylife = 0;
_global.maxenemylife = maxlife;
_global.enemyname = ename;
_parent._alpha = 100;
checking = 1;
_root.camera.shake = _root.camera.shake + 2.5;
_global.score = _global.score + score;
_global.money = _global.money + money;
_global.stagekill = _global.stagekill + 1;
_global.robotskilled = _global.robotskilled + 1;
_global.robotsummonkilled = _global.robotsummonkilled + 1;
myexpoints = expoints - (_global.herolevel * 3);
if (myexpoints < 0) {
myexpoints = 1;
}
_root.camera.txtmsg = ("Received " + myexpoints) + " EXP points!";
_root.txtcleaner.gotoAndPlay(2);
_global.expoints = _global.expoints + myexpoints;
if (_parent.bossmonster == 1) {
_parent.bossdead = 1;
}
this.gotoAndStop("dead");
}
if (_global.cleanup == 1) {
this._parent.removeMovieClip();
}
}
}
Symbol 329 MovieClip Frame 1
_parent.attacking = 1;
Symbol 329 MovieClip Frame 4
_root.enemyattack3.start();
Instance of Symbol 38 MovieClip in Symbol 329 MovieClip Frame 4
onClipEvent (load) {
edamage = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.bodytarget) && (_global.shieldup == 0)) {
edamage = this._parent._parent.strength;
edamage = (edamage - _global.herodef) - _global.herovit;
edamage = random(edamage);
if (edamage < 1) {
edamage = "Miss!";
}
damagedealt = _root.attachMovie("herodamageshow", "enemydamage_" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {damage:edamage, _x:_root.hero._x, _y:_root.hero._y});
damagedealt.onEnterFrame = function () {
var _local2 = new Color(this.damager);
_local2.setRGB(16711680);
this.damager.damage.txtdamage = damage;
if (random(200) == 1) {
this.removeMovieClip();
}
};
if (edamage == "Miss!") {
edamage = 0;
}
_global.herolife = _global.herolife - edamage;
}
}
Instance of Symbol 38 MovieClip in Symbol 329 MovieClip Frame 12
onClipEvent (load) {
edamage = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.bodytarget) && (_global.shieldup == 0)) {
edamage = this._parent._parent.strength;
edamage = (edamage - _global.herodef) - _global.herovit;
edamage = random(edamage);
if (edamage < 1) {
edamage = "Miss!";
}
damagedealt = _root.attachMovie("herodamageshow", "enemydamage_" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {damage:edamage, _x:_root.hero._x, _y:_root.hero._y});
damagedealt.onEnterFrame = function () {
var _local2 = new Color(this.damager);
_local2.setRGB(16711680);
this.damager.damage.txtdamage = damage;
if (random(200) == 1) {
this.removeMovieClip();
}
};
if (edamage == "Miss!") {
edamage = 0;
}
_global.herolife = _global.herolife - edamage;
}
}
Symbol 329 MovieClip Frame 40
_parent.attacking = 0;
_parent.gotoAndStop("walk");
Symbol 330 MovieClip Frame 1
_root.explosion_fx.start();
Symbol 330 MovieClip Frame 20
_parent._parent.removeMovieClip();
Symbol 331 MovieClip Frame 1
stop();
Symbol 331 MovieClip Frame 2
stop();
Symbol 331 MovieClip Frame 3
stop();
Instance of Symbol 331 MovieClip in Symbol 332 MovieClip [enemy6] Frame 1
onClipEvent (load) {
life = 100;
maxlife = 100;
ename = "Jet Jet";
defense = 20;
strength = 40;
expoints = 80;
score = 210;
money = 300;
respawn = 0;
oldx = _parent._x;
oldy = _parent._y;
follower = this._parent;
heroattackpath = "_root.hero.hero_main.attack.attacktarget";
var radians = 57.2957795130823;
follower.agroRange = 10000;
follower.distanceX = 0;
follower.distanceY = 0;
follower.distanceTotal = 0;
follower.moveDistanceX = 0;
follower.moveDistanceY = 0;
follower.moveX = 0;
follower.moveY = 0;
follower.totalmove = 0;
follower.speed = 6;
attacktarget = _root.hero;
target = _root.hero;
follower.turnRate = 1;
attacking = 0;
checking = 0;
}
onClipEvent (enterFrame) {
if (_global.gamepaused == 0) {
if ((life > 0) && (_global.gamepaused == 0)) {
_parent._alpha = 100;
if (this.hitTest(attacktarget)) {
attacking = 1;
}
if (attacking == 0) {
follower.distanceX = target._x - follower._x;
follower.distanceY = target._y - follower._y;
follower.distanceTotal = Math.sqrt((follower.distanceX * follower.distanceX) + (follower.distanceY * follower.distanceY));
if (follower.distanceTotal <= follower.agroRange) {
follower.moveDistanceX = (follower.turnRate * follower.distanceX) / follower.distanceTotal;
follower.moveDistanceY = (follower.turnRate * follower.distanceY) / follower.distanceTotal;
follower.moveX = follower.moveX + follower.moveDistanceX;
follower.moveY = follower.moveY + follower.moveDistanceY;
follower.totalmove = Math.sqrt((follower.moveX * follower.moveX) + (follower.moveY * follower.moveY));
follower.moveX = (follower.speed * follower.moveX) / follower.totalmove;
follower.moveY = (follower.speed * follower.moveY) / follower.totalmove;
follower._x = follower._x + follower.moveX;
follower._y = follower._y + follower.moveY;
follower._rotation = Math.atan2(follower.moveY, follower.moveX) * radians;
if (follower.moveX > 0) {
myspeedx = follower.moveX * 1;
} else {
myspeedx = follower.moveX * -1;
}
}
} else {
this.gotoAndStop("attack");
}
if (follower.moveY > 0) {
myspeedy = follower.moveY * 1;
} else {
myspeedy = follower.moveY * -1;
}
if (_root.hero.hero_main.attack.attacktarget.hitTest(this.enemytarget)) {
follower._x = follower._x - (follower.moveX * 2);
follower._y = follower._y - (follower.moveY * 2);
_parent._alpha = 50;
damage = (((_global.herostr + _global.heroint) * _global.herowep) * _global.skillstr) - defense;
damage = random(damage);
if (damage < 0) {
damage = 1;
}
life = life - damage;
_global.enemylife = life;
_global.maxenemylife = maxlife;
_global.enemyname = ename;
if (damage == 0) {
_root.attack_miss.start();
if (_global.skillactive > 2) {
damage = _global.skillstr;
} else {
damage = "Miss!";
}
} else {
if (random(3) == 1) {
_root.attack_hit1.start();
} else {
_root.attack_hit2.start();
}
_root.swordspark = _root.attachMovie("clash", "myclash_" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:this._parent._x, _y:this._parent._y});
_root.swordspark.onEnterFrame = function () {
if (random(200) == 1) {
this.removeMovieClip();
}
};
}
_root.damagedone = _root.attachMovie("herodamageshow", "mydamage_" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:this._parent._x, _y:this._parent._y});
_root.damagedone.onEnterFrame = function () {
var _local2 = new Color(this.damager);
_local2.setRGB(16104760);
this.damager.damage.txtdamage = damage;
if (random(200) == 1) {
this.removeMovieClip();
}
};
}
}
if ((life < 1) && (checking == 0)) {
_global.enemylife = 0;
_global.maxenemylife = maxlife;
_global.enemyname = ename;
_parent._alpha = 100;
checking = 1;
_root.camera.shake = _root.camera.shake + 2.5;
_global.score = _global.score + score;
_global.money = _global.money + money;
_global.stagekill = _global.stagekill + 1;
_global.robotskilled = _global.robotskilled + 1;
_global.robotsummonkilled = _global.robotsummonkilled + 1;
myexpoints = expoints - (_global.herolevel * 3);
if (myexpoints < 0) {
myexpoints = 1;
}
_root.camera.txtmsg = ("Received " + myexpoints) + " EXP points!";
_root.txtcleaner.gotoAndPlay(2);
_global.expoints = _global.expoints + myexpoints;
this.gotoAndStop("dead");
}
if (_global.cleanup == 1) {
this._parent.removeMovieClip();
}
}
}
Symbol 344 MovieClip Frame 5
_root.enemyattack1.start();
Instance of Symbol 265 MovieClip in Symbol 344 MovieClip Frame 5
onClipEvent (load) {
edamage = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.bodytarget) && (_global.shieldup == 0)) {
edamage = this._parent._parent.strength;
edamage = (edamage - _global.herodef) - _global.herovit;
edamage = random(edamage);
if (edamage < 1) {
edamage = "Miss!";
}
damagedealt = _root.attachMovie("herodamageshow", "enemydamage_" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {damage:edamage, _x:_root.hero._x, _y:_root.hero._y});
damagedealt.onEnterFrame = function () {
var _local2 = new Color(this.damager);
_local2.setRGB(16711680);
this.damager.damage.txtdamage = damage;
if (random(200) == 1) {
this.removeMovieClip();
}
};
if (edamage == "Miss!") {
edamage = 0;
}
_global.herolife = _global.herolife - edamage;
}
}
Symbol 344 MovieClip Frame 34
_parent.attacking = 0;
_parent.gotoAndStop("walk");
Symbol 347 MovieClip Frame 1
_root.enemydead1.start();
Symbol 347 MovieClip Frame 25
_parent._parent.removeMovieClip();
Symbol 348 MovieClip Frame 1
stop();
Symbol 348 MovieClip Frame 2
stop();
Symbol 348 MovieClip Frame 3
stop();
Instance of Symbol 348 MovieClip in Symbol 349 MovieClip [enemy3] Frame 1
onClipEvent (load) {
life = 200;
maxlife = 200;
ename = "Biz Bot";
defense = 10;
strength = 25;
expoints = 35;
score = 200;
money = 250;
respawn = 0;
oldx = _parent._x;
oldy = _parent._y;
follower = this._parent;
heroattackpath = "_root.hero.hero_main.attack.attacktarget";
var radians = 57.2957795130823;
follower.agroRange = 10000;
follower.distanceX = 0;
follower.distanceY = 0;
follower.distanceTotal = 0;
follower.moveDistanceX = 0;
follower.moveDistanceY = 0;
follower.moveX = 0;
follower.moveY = 0;
follower.totalmove = 0;
follower.speed = 4;
attacktarget = _root.hero;
target = _root.hero;
follower.turnRate = 1;
attacking = 0;
checking = 0;
}
onClipEvent (enterFrame) {
if (_global.gamepaused == 0) {
if ((life > 0) && (_global.gamepaused == 0)) {
_parent._alpha = 100;
if (this.hitTest(attacktarget)) {
attacking = 1;
}
if (attacking == 0) {
follower.distanceX = target._x - follower._x;
follower.distanceY = target._y - follower._y;
follower.distanceTotal = Math.sqrt((follower.distanceX * follower.distanceX) + (follower.distanceY * follower.distanceY));
if (follower.distanceTotal <= follower.agroRange) {
follower.moveDistanceX = (follower.turnRate * follower.distanceX) / follower.distanceTotal;
follower.moveDistanceY = (follower.turnRate * follower.distanceY) / follower.distanceTotal;
follower.moveX = follower.moveX + follower.moveDistanceX;
follower.moveY = follower.moveY + follower.moveDistanceY;
follower.totalmove = Math.sqrt((follower.moveX * follower.moveX) + (follower.moveY * follower.moveY));
follower.moveX = (follower.speed * follower.moveX) / follower.totalmove;
follower.moveY = (follower.speed * follower.moveY) / follower.totalmove;
follower._x = follower._x + follower.moveX;
follower._y = follower._y + follower.moveY;
follower._rotation = Math.atan2(follower.moveY, follower.moveX) * radians;
if (follower.moveX > 0) {
myspeedx = follower.moveX * 1;
} else {
myspeedx = follower.moveX * -1;
}
}
} else {
this.gotoAndStop("attack");
}
if (follower.moveY > 0) {
myspeedy = follower.moveY * 1;
} else {
myspeedy = follower.moveY * -1;
}
if (_root.hero.hero_main.attack.attacktarget.hitTest(this)) {
follower._x = follower._x - (follower.moveX * 2);
follower._y = follower._y - (follower.moveY * 2);
_parent._alpha = 50;
damage = (((_global.herostr + _global.heroint) * _global.herowep) * _global.skillstr) - defense;
damage = random(damage);
if (damage < 0) {
damage = 1;
}
life = life - damage;
_global.enemylife = life;
_global.maxenemylife = maxlife;
_global.enemyname = ename;
if (damage == 0) {
_root.attack_miss.start();
if (_global.skillactive > 2) {
damage = _global.skillstr;
} else {
damage = "Miss!";
}
} else {
if (random(3) == 1) {
_root.attack_hit1.start();
} else {
_root.attack_hit2.start();
}
_root.swordspark = _root.attachMovie("clash", "myclash_" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:this._parent._x, _y:this._parent._y});
_root.swordspark.onEnterFrame = function () {
if (random(200) == 1) {
this.removeMovieClip();
}
};
}
_root.damagedone = _root.attachMovie("herodamageshow", "mydamage_" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:this._parent._x, _y:this._parent._y});
_root.damagedone.onEnterFrame = function () {
var _local2 = new Color(this.damager);
_local2.setRGB(16104760);
this.damager.damage.txtdamage = damage;
if (random(200) == 1) {
this.removeMovieClip();
}
};
}
}
if ((life < 1) && (checking == 0)) {
_global.enemylife = life;
_global.maxenemylife = maxlife;
_global.enemyname = ename;
_parent._alpha = 100;
checking = 1;
_root.camera.shake = _root.camera.shake + 2.5;
_global.score = _global.score + score;
_global.money = _global.money + money;
_global.stagekill = _global.stagekill + 1;
_global.robotskilled = _global.robotskilled + 1;
_global.robotsummonkilled = _global.robotsummonkilled + 1;
myexpoints = expoints - (_global.herolevel * 3);
if (myexpoints < 0) {
myexpoints = 1;
}
_root.camera.txtmsg = ("Received " + myexpoints) + " EXP points!";
_root.txtcleaner.gotoAndPlay(2);
_global.expoints = _global.expoints + myexpoints;
this.gotoAndStop("dead");
}
if (_global.cleanup == 1) {
this._parent.removeMovieClip();
}
}
}
Symbol 361 MovieClip Frame 5
_root.enemyattack1.start();
Instance of Symbol 38 MovieClip in Symbol 361 MovieClip Frame 5
onClipEvent (load) {
edamage = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero.bodytarget) && (_global.shieldup == 0)) {
edamage = this._parent._parent.strength;
edamage = (edamage - _global.herodef) - _global.herovit;
edamage = random(edamage);
if (edamage < 1) {
edamage = "Miss!";
}
damagedealt = _root.attachMovie("herodamageshow", "enemydamage_" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {damage:edamage, _x:_root.hero._x, _y:_root.hero._y});
damagedealt.onEnterFrame = function () {
var _local2 = new Color(this.damager);
_local2.setRGB(16711680);
this.damager.damage.txtdamage = damage;
if (random(200) == 1) {
this.removeMovieClip();
}
};
if (edamage == "Miss!") {
edamage = 0;
}
_global.herolife = _global.herolife - edamage;
}
}
Symbol 361 MovieClip Frame 46
_parent.attacking = 0;
_parent.gotoAndStop("walk");
Symbol 364 MovieClip Frame 1
_root.enemydead1.start();
Symbol 364 MovieClip Frame 30
stop();
_parent._parent.removeMovieClip();
Symbol 365 MovieClip Frame 1
stop();
Symbol 365 MovieClip Frame 2
stop();
Symbol 365 MovieClip Frame 3
stop();
Instance of Symbol 365 MovieClip in Symbol 366 MovieClip [Enemy1] Frame 1
onClipEvent (load) {
life = 10;
maxlife = 10;
ename = "Lil Bot";
defense = 1;
strength = 5;
expoints = 20;
score = 100;
money = 100;
respawn = 0;
oldx = this._parent._x;
oldy = this._parent._y;
follower = this._parent;
heroattackpath = "_root.hero.hero_main.attack.attacktarget";
var radians = 57.2957795130823;
follower.agroRange = 10000;
follower.distanceX = 0;
follower.distanceY = 0;
follower.distanceTotal = 0;
follower.moveDistanceX = 0;
follower.moveDistanceY = 0;
follower.moveX = 0;
follower.moveY = 0;
follower.totalmove = 0;
follower.speed = 3;
attacktarget = _root.hero;
target = _root.hero;
follower.turnRate = 0.3;
attacking = 0;
checking = 0;
}
onClipEvent (enterFrame) {
if (_global.gamepaused == 0) {
if ((life > 0) && (_global.gamepaused == 0)) {
_parent._alpha = 100;
if (this.hitTest(attacktarget)) {
attacking = 1;
}
if (attacking == 0) {
follower.distanceX = target._x - follower._x;
follower.distanceY = target._y - follower._y;
follower.distanceTotal = Math.sqrt((follower.distanceX * follower.distanceX) + (follower.distanceY * follower.distanceY));
follower.moveDistanceX = (follower.turnRate * follower.distanceX) / follower.distanceTotal;
follower.moveDistanceY = (follower.turnRate * follower.distanceY) / follower.distanceTotal;
follower.moveX = follower.moveX + follower.moveDistanceX;
follower.moveY = follower.moveY + follower.moveDistanceY;
follower.totalmove = Math.sqrt((follower.moveX * follower.moveX) + (follower.moveY * follower.moveY));
follower.moveX = (follower.speed * follower.moveX) / follower.totalmove;
follower.moveY = (follower.speed * follower.moveY) / follower.totalmove;
follower._x = follower._x + follower.moveX;
follower._y = follower._y + follower.moveY;
follower._rotation = Math.atan2(follower.moveY, follower.moveX) * radians;
} else {
this.gotoAndStop("attack");
}
if (follower.moveY > 0) {
myspeedy = follower.moveY * 1;
} else {
myspeedy = follower.moveY * -1;
}
if (_root.hero.hero_main.attack.attacktarget.hitTest(this)) {
follower._x = follower._x - (follower.moveX * 2);
follower._y = follower._y - (follower.moveY * 2);
_parent._alpha = 50;
damage = (((_global.herostr + _global.heroint) * _global.herowep) * _global.skillstr) - defense;
damage = random(damage);
if (damage < 0) {
damage = 1;
}
life = life - damage;
_global.enemylife = life;
_global.maxenemylife = maxlife;
_global.enemyname = ename;
if (damage == 0) {
_root.attack_miss.start();
if (_global.skillactive > 2) {
damage = _global.skillstr;
} else {
damage = "Miss!";
}
} else {
if (random(3) == 1) {
_root.attack_hit1.start();
} else {
_root.attack_hit2.start();
}
_root.swordspark = _root.attachMovie("clash", "myclash_" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:this._parent._x, _y:this._parent._y});
_root.swordspark.onEnterFrame = function () {
if (random(200) == 1) {
this.removeMovieClip();
}
};
}
_root.damagedone = _root.attachMovie("herodamageshow", "mydamage_" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:this._parent._x, _y:this._parent._y});
_root.damagedone.onEnterFrame = function () {
var _local2 = new Color(this.damager);
_local2.setRGB(16104760);
this.damager.damage.txtdamage = damage;
if (random(200) == 1) {
this.removeMovieClip();
}
};
}
}
if ((life < 1) && (checking == 0)) {
_global.enemylife = 0;
_global.maxenemylife = maxlife;
_global.enemyname = ename;
_parent._alpha = 100;
checking = 1;
_root.camera.shake = _root.camera.shake + 2.5;
_global.score = _global.score + score;
_global.money = _global.money + money;
_global.stagekill = _global.stagekill + 1;
_global.robotskilled = _global.robotskilled + 1;
_global.robotsummonkilled = _global.robotsummonkilled + 1;
myexpoints = expoints - (_global.herolevel * 3);
if (myexpoints < 0) {
myexpoints = 1;
}
_root.camera.txtmsg = ("Received " + myexpoints) + " EXP points!";
_root.txtcleaner.gotoAndPlay(2);
_global.expoints = _global.expoints + myexpoints;
this.gotoAndStop("dead");
}
if (_global.cleanup == 1) {
this._parent.removeMovieClip();
}
}
}
Symbol 370 MovieClip Frame 17
stop();
Symbol 374 MovieClip [clash] Frame 14
stop();
Symbol 391 MovieClip Frame 1
stop();
Instance of Symbol 405 MovieClip in Symbol 406 MovieClip Frame 1
on (release) {
getURL ("http://www.snipinggames.net", "_blank");
}
Instance of Symbol 410 MovieClip in Symbol 411 MovieClip Frame 1
on (release) {
getURL ("http://www.ultimateflashgame.com", "_blank");
}
Instance of Symbol 415 MovieClip in Symbol 419 MovieClip Frame 1
on (release) {
getURL ("http://www.ahjee.com", "_blank");
}
Symbol 420 MovieClip Frame 106
_root.play();
Symbol 452 MovieClip Frame 1
stop();
Symbol 457 Button
on (release) {
getURL ("http://www.ultimateflashgame.com", blank);
}
Symbol 467 MovieClip Frame 5
_root.walking.start();
Symbol 467 MovieClip Frame 10
_root.walking.start();
Symbol 467 MovieClip Frame 12
Symbol 488 MovieClip Frame 145
_root.play();
Symbol 489 Button
on (release) {
getURL ("http://www.snipinggames.net", blank);
}
Symbol 493 MovieClip Frame 139
_root.play();
Symbol 499 Button
on (release) {
_root.gotoAndStop("area1");
}
Symbol 500 Button
on (release) {
_root.gotoAndStop("controls");
}
Symbol 501 Button
on (release) {
_root.gotoAndStop("credits");
}
Symbol 502 Button
on (release) {
if (random(3) == 1) {
getURL ("http://www.ultimateflashgame.com", _blank);
} else if (random(3) == 2) {
getURL ("http://www.ahjee.com", _blank);
} else {
getURL ("http://www.snipinggames.net", _blank);
}
}
Symbol 508 MovieClip Frame 23
stop();
Symbol 509 MovieClip Frame 24
stop();
Symbol 514 Button
on (release) {
_root.gotoAndStop("title");
}
Symbol 533 MovieClip Frame 1
stop();
Symbol 533 MovieClip Frame 2
stop();
Symbol 533 MovieClip Frame 3
stop();
Symbol 533 MovieClip Frame 4
stop();
Instance of Symbol 533 MovieClip in Symbol 535 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_global.heroarmor);
}
Symbol 540 MovieClip Frame 1
stop();
Symbol 540 MovieClip Frame 2
stop();
Symbol 540 MovieClip Frame 3
stop();
Symbol 540 MovieClip Frame 4
stop();
Symbol 541 MovieClip Frame 1
stop();
Instance of Symbol 540 MovieClip in Symbol 541 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_global.heroarmor);
}
Symbol 550 MovieClip Frame 1
stop();
Symbol 550 MovieClip Frame 2
stop();
Symbol 550 MovieClip Frame 3
stop();
Symbol 550 MovieClip Frame 4
stop();
Instance of Symbol 550 MovieClip in Symbol 551 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_global.heroarmor);
}
Symbol 561 MovieClip Frame 1
stop();
Symbol 561 MovieClip Frame 2
stop();
Symbol 561 MovieClip Frame 3
stop();
Symbol 561 MovieClip Frame 4
stop();
Symbol 561 MovieClip Frame 5
stop();
Symbol 562 MovieClip Frame 1
stop();
Instance of Symbol 561 MovieClip in Symbol 562 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_global.herowep);
}
Symbol 565 MovieClip Frame 1
_root.dash_fx.start();
_parent.dashing = 1;
Symbol 565 MovieClip Frame 31
_parent.dashing = 0;
_parent.gotoAndStop("walk");
Symbol 571 MovieClip Frame 1
_global.shieldup = 0;
Symbol 571 MovieClip Frame 20
stop();
_global.shieldup = 0;
_parent.gotoAndStop("walk");
Instance of Symbol 17 MovieClip in Symbol 572 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_global.herowep);
}
Symbol 573 MovieClip Frame 1
_global.busy = 1;
Symbol 573 MovieClip Frame 10
_root.attack1.start();
Symbol 573 MovieClip Frame 23
_root.attack2.start();
Symbol 573 MovieClip Frame 40
_root.attack3.start();
Symbol 573 MovieClip Frame 53
_global.busy = 0;
_parent.gotoAndStop("walk");
Symbol 598 MovieClip Frame 1
_global.busy = 1;
Symbol 598 MovieClip Frame 7
_root.skill2_fx.start();
Symbol 598 MovieClip Frame 77
_global.busy = 0;
_parent.gotoAndStop("walk");
Symbol 608 MovieClip Frame 1
_global.busy = 1;
Symbol 608 MovieClip Frame 6
_root.skill3_fx.start();
Symbol 608 MovieClip Frame 51
_global.busy = 0;
_parent.gotoAndStop("walk");
Symbol 610 MovieClip Frame 1
_global.busy = 1;
_root.skill4_fx.start();
Symbol 610 MovieClip Frame 50
_global.busy = 0;
_parent.gotoAndStop("walk");
Symbol 621 MovieClip Frame 19
stop();
Symbol 624 MovieClip Frame 71
stop();
Symbol 625 MovieClip Frame 1
_global.busy = 1;
_root.skill5_fx.start();
Instance of Symbol 602 MovieClip "a" in Symbol 625 MovieClip Frame 6
onClipEvent (enterFrame) {
_root.camera._xscale = _root.camera._xscale - 2;
_root.camera._yscale = _root.camera._yscale - 2;
}
Symbol 625 MovieClip Frame 30
_root.camera._xscale = 59;
_root.camera._yscale = 59;
Symbol 625 MovieClip Frame 90
_global.busy = 0;
_parent.gotoAndStop("walk");
Symbol 629 MovieClip Frame 1
stop();
Symbol 634 MovieClip Frame 1
_global.busy = 1;
_root.skill6_fx.start();
Instance of Symbol 543 MovieClip in Symbol 634 MovieClip Frame 6
onClipEvent (enterFrame) {
_root.camera._xscale = _root.camera._xscale - 2;
_root.camera._yscale = _root.camera._yscale - 2;
}
Symbol 634 MovieClip Frame 30
_root.camera._xscale = 58;
_root.camera._yscale = 58;
Symbol 634 MovieClip Frame 77
_global.busy = 0;
_parent.gotoAndStop("walk");
Symbol 636 MovieClip Frame 1
_global.busy = 1;
_root.levelup_fx.start();
_root.camera._xscale = 59;
_root.camera._yscale = 59;
Symbol 636 MovieClip Frame 40
stop();
_global.busy = 0;
_parent.gotoAndStop("walk");
Symbol 637 MovieClip Frame 1
_root.camera.shake = _root.camera.shake + 2.5;
_root.explosion_fx.start();
_root.camera._xscale = 59;
_root.camera._yscale = 59;
_global.shieldup = 1;
Symbol 637 MovieClip Frame 10
_root.camera.shake = _root.camera.shake + 2.5;
_root.explosion_fx.start();
Symbol 637 MovieClip Frame 18
_root.camera.shake = _root.camera.shake + 2.5;
_root.explosion_fx.start();
Symbol 637 MovieClip Frame 25
_root.camera.shake = _root.camera.shake + 2.5;
_root.explosion_fx.start();
Symbol 637 MovieClip Frame 35
_root.camera.shake = _root.camera.shake + 2.5;
_root.explosion_fx.start();
Symbol 637 MovieClip Frame 45
stop();
_global.shieldup = 0;
_root.camera.shake = _root.camera.shake + 2.5;
_root.explosion_fx.start();
_root.camera.herodead.gotoAndPlay(2);
Symbol 638 MovieClip Frame 1
stop();
Symbol 638 MovieClip Frame 2
stop();
Symbol 638 MovieClip Frame 3
stop();
Symbol 638 MovieClip Frame 4
stop();
Symbol 638 MovieClip Frame 5
stop();
Symbol 638 MovieClip Frame 6
stop();
Symbol 638 MovieClip Frame 7
stop();
Symbol 638 MovieClip Frame 8
stop();
Symbol 638 MovieClip Frame 9
stop();
Symbol 638 MovieClip Frame 10
stop();
Symbol 638 MovieClip Frame 11
stop();
Instance of Symbol 638 MovieClip "hero_main" in Symbol 640 MovieClip Frame 1
onClipEvent (load) {
hitting = 0;
dashing = 0;
myspeed = 0;
_global.busy = 0;
}
onClipEvent (enterFrame) {
if (_global.gamepaused == 0) {
if (_global.busy == 0) {
myRadians = Math.atan2(_root._ymouse - this._parent._y, _root._xmouse - this._parent._x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
_root.yChange = Math.round(_root._ymouse - this._parent._y);
_root.xChange = Math.round(_root._xmouse - this._parent._x);
if (dashing == 0) {
_root.yMove = Math.round(_root.yChange / 20);
_root.xMove = Math.round(_root.xChange / 20);
} else {
_root.yMove = Math.round(_root.yChange / 15);
_root.xMove = Math.round(_root.xChange / 15);
}
if (_root.xMove > 0) {
myspeedx = _root.xMove * 10;
} else {
myspeedx = _root.xMove * -10;
}
if (_root.yMove > 0) {
myspeedy = _root.yMove * 10;
} else {
myspeedy = _root.yMove * -10;
}
myspeed = myspeedx + myspeedy;
this.walk.thrust1._alpha = myspeed;
this.walk.thrust2._alpha = myspeed;
this._parent._y = this._parent._y + _root.yMove;
this._parent._x = this._parent._x + _root.xMove;
this._parent._rotation = myDegrees + 90;
myspeedx = myspeedx / 10;
myspeedy = myspeedy / 10;
with (_root.hero) {
if (dashing == 1) {
myspeedx = myspeedx * 2;
myspeedy = myspeedy * 2;
}
if (_root.walls.hitTest(getBounds(_root).xMax, _y, true)) {
_x = _x - myspeedx;
}
if (_root.walls.hitTest(getBounds(_root).xMin, _y, true)) {
_x = _x + myspeedx;
}
if (_root.walls.hitTest(_x, getBounds(_root).yMax, true)) {
_y = _y - myspeedy;
}
if (_root.walls.hitTest(_x, getBounds(_root).yMin, true)) {
_y = _y + myspeedy;
}
}
if ((Key.isDown(32) == true) && (dashing == 0)) {
dashing = 1;
this.gotoAndStop("dash");
}
}
}
}
onClipEvent (mouseDown) {
if (_global.gamepaused == 0) {
dashing = 0;
if (((_global.skillactive == 1) && (_global.cooldown1 == 0)) && (_global.busy == 0)) {
_root.camera.skillbar.skill1.cooldown1.gotoAndPlay(2);
_global.skillstr = 1;
this.gotoAndStop("attack1");
} else if (((_global.skillactive == 2) && (_global.cooldown2 == 0)) && (_global.busy == 0)) {
manarequired = 10 + (2 * _global.skill2lvl);
if (_global.heromana >= manarequired) {
_global.heromana = _global.heromana - manarequired;
_root.camera.skillbar.skill2.cooldown2.gotoAndPlay(2);
if (_global.skill2lvl == 1) {
_global.skillstr = 1;
} else if (_global.skill2lvl == 2) {
_global.skillstr = 2;
} else if (_global.skill2lvl == 3) {
_global.skillstr = 3;
} else if (_global.skill2lvl == 4) {
_global.skillstr = 4;
} else if (_global.skill2lvl == 5) {
_global.skillstr = 5;
}
this.gotoAndStop("attack2");
} else {
_root.camera.txtmsg = "Not enough energy points!";
_root.txtcleaner.gotoAndPlay(2);
}
} else if (((_global.skillactive == 3) && (_global.cooldown3 == 0)) && (_global.busy == 0)) {
manarequired = 15 + (2 * _global.skill3lvl);
if (_global.heromana >= manarequired) {
_global.heromana = _global.heromana - manarequired;
_root.camera.skillbar.skill3.cooldown3.gotoAndPlay(2);
if (_global.skill3lvl == 1) {
_global.skillstr = 1;
} else if (_global.skill3lvl == 2) {
_global.skillstr = 2;
} else if (_global.skill3lvl == 3) {
_global.skillstr = 3;
} else if (_global.skill3lvl == 4) {
_global.skillstr = 4;
} else if (_global.skill3lvl == 5) {
_global.skillstr = 5;
}
this.gotoAndStop("attack3");
} else {
_root.camera.txtmsg = "Not enough energy points!";
_root.txtcleaner.gotoAndPlay(2);
}
} else if (((_global.skillactive == 4) && (_global.cooldown4 == 0)) && (_global.busy == 0)) {
manarequired = 25 + (2 * _global.skill4lvl);
if (_global.heromana >= manarequired) {
_global.heromana = _global.heromana - manarequired;
_root.camera.skillbar.skill4.cooldown4.gotoAndPlay(2);
if (_global.skill4lvl == 1) {
_global.skillstr = 2;
} else if (_global.skill4lvl == 2) {
_global.skillstr = 3;
} else if (_global.skill4lvl == 3) {
_global.skillstr = 4;
} else if (_global.skill4lvl == 4) {
_global.skillstr = 5;
} else if (_global.skill4lvl == 5) {
_global.skillstr = 6;
}
this.gotoAndStop("attack4");
} else {
_root.camera.txtmsg = "Not enough energy points!";
_root.txtcleaner.gotoAndPlay(2);
}
} else if (((_global.skillactive == 5) && (_global.cooldown5 == 0)) && (_global.busy == 0)) {
manarequired = 35 + (2 * _global.skill5lvl);
if (_global.heromana >= manarequired) {
_global.heromana = _global.heromana - manarequired;
_root.camera.skillbar.skill5.cooldown5.gotoAndPlay(2);
if (_global.skill5lvl == 1) {
_global.skillstr = 2;
} else if (_global.skill5lvl == 2) {
_global.skillstr = 3;
} else if (_global.skill5lvl == 3) {
_global.skillstr = 4;
} else if (_global.skill5lvl == 4) {
_global.skillstr = 5;
} else if (_global.skill5lvl == 5) {
_global.skillstr = 6;
}
this.gotoAndStop("attack5");
} else {
_root.camera.txtmsg = "Not enough energy points!";
_root.txtcleaner.gotoAndPlay(2);
}
} else if (((_global.skillactive == 6) && (_global.cooldown6 == 0)) && (_global.busy == 0)) {
manarequired = 50 + (2 * _global.skill6lvl);
if (_global.heromana >= manarequired) {
_global.heromana = _global.heromana - manarequired;
_root.camera.skillbar.skill6.cooldown6.gotoAndPlay(2);
if (_global.skill6lvl == 1) {
_global.skillstr = 4;
} else if (_global.skill6lvl == 2) {
_global.skillstr = 5;
} else if (_global.skill6lvl == 3) {
_global.skillstr = 6;
} else if (_global.skill6lvl == 4) {
_global.skillstr = 7;
} else if (_global.skill6lvl == 5) {
_global.skillstr = 8;
}
this.gotoAndStop("attack6");
} else {
_root.camera.txtmsg = "Not enough energy points!";
_root.txtcleaner.gotoAndPlay(2);
}
}
}
}
Symbol 648 MovieClip Frame 1
_root.dooropen1.start();
Symbol 648 MovieClip Frame 60
stop();
_global.gamepaused = 0;
Symbol 649 MovieClip Frame 1
stop();
Symbol 649 MovieClip Frame 2
stop();
Symbol 657 MovieClip Frame 1
stop();
Symbol 657 MovieClip Frame 2
stop();
Symbol 667 Button
on (release) {
_root.btnclick.start();
if (_global.statpoint > 0) {
_global.maxlife = _global.maxlife + 1;
_global.herostr = _global.herostr + 1;
_global.statpoint = _global.statpoint - 1;
}
}
Symbol 668 Button
on (release) {
_root.btnclick.start();
if (_global.statpoint > 0) {
_global.herovit = _global.herovit + 1;
_global.maxlife = _global.maxlife + 5;
_global.statpoint = _global.statpoint - 1;
}
}
Symbol 669 Button
on (release) {
_root.btnclick.start();
if (_global.statpoint > 0) {
_global.heroint = _global.heroint + 1;
_global.maxmana = _global.maxmana + 2;
_global.statpoint = _global.statpoint - 1;
}
}
Symbol 687 Button
on (release) {
_root.btnclick.start();
_global.menuopen = 0;
_global.gamepaused = 0;
gotoAndStop (1);
}
Symbol 688 MovieClip Frame 1
stop();
Instance of Symbol 657 MovieClip in Symbol 688 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_global.statpoint > 0) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Symbol 688 MovieClip Frame 2
_global.gamepaused = 1;
stop();
Instance of Symbol 673 MovieClip in Symbol 688 MovieClip Frame 2
onClipEvent (enterFrame) {
this.txtlevel = _global.herolevel;
this.txtstr = _global.herostr;
this.txtvit = _global.herovit;
this.txtint = _global.heroint;
this.txtstatpoints = _global.statpoint;
}
Instance of Symbol 679 MovieClip in Symbol 688 MovieClip Frame 2
onClipEvent (enterFrame) {
_global.gamepaused = 1;
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 682 MovieClip in Symbol 688 MovieClip Frame 2
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 685 MovieClip in Symbol 688 MovieClip Frame 2
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Symbol 692 MovieClip Frame 1
stop();
Symbol 692 MovieClip Frame 2
stop();
Symbol 696 Button
on (release) {
_root.btnclick.start();
if (((_global.skillpoint > 0) && (_global.herolevel > 2)) && (_global.herostr > 4)) {
if (_global.skill2lvl < 3) {
_global.skill2lvl = _global.skill2lvl + 1;
_global.skillpoint = _global.skillpoint - 1;
}
}
}
Symbol 709 Button
on (release) {
_root.btnclick.start();
if (((_global.skillpoint > 0) && (_global.herolevel > 4)) && (_global.heroint > 9)) {
if (_global.skill3lvl < 3) {
_global.skill3lvl = _global.skill3lvl + 1;
_global.skillpoint = _global.skillpoint - 1;
}
}
}
Symbol 710 Button
on (release) {
_root.btnclick.start();
if (((_global.skillpoint >= 2) && (_global.herolevel >= 10)) && (_global.heroint >= 20)) {
if (_global.skill4lvl < 5) {
_global.skill4lvl = _global.skill4lvl + 1;
_global.skillpoint = _global.skillpoint - 2;
}
}
}
Symbol 711 Button
on (release) {
_root.btnclick.start();
if ((((_global.skillpoint >= 2) && (_global.herolevel >= 20)) && (_global.heroint >= 30)) && (_global.herostr >= 25)) {
if (_global.skill5lvl < 5) {
_global.skill5lvl = _global.skill5lvl + 1;
_global.skillpoint = _global.skillpoint - 2;
}
}
}
Symbol 712 Button
on (release) {
_root.btnclick.start();
if ((((_global.skillpoint >= 4) && (_global.herolevel > 35)) && (_global.heroint >= 70)) && (_global.herostr >= 40)) {
if (_global.skill6lvl < 5) {
_global.skill6lvl = _global.skill6lvl + 1;
_global.skillpoint = _global.skillpoint - 3;
}
}
}
Symbol 714 Button
on (release) {
_root.btnclick.start();
if (_global.skillpoint >= 2) {
if (_global.skill7lvl < 10) {
_global.skill7lvl = _global.skill7lvl + 1;
_global.skillpoint = _global.skillpoint - 2;
}
}
}
Symbol 716 Button
on (release) {
_root.btnclick.start();
if (_global.skillpoint >= 2) {
if (_global.skill8lvl < 10) {
_global.skill8lvl = _global.skill8lvl + 1;
_global.skillpoint = _global.skillpoint - 2;
}
}
}
Symbol 726 Button
on (release) {
_root.btnclick.start();
_global.menuopen = 0;
_global.gamepaused = 0;
gotoAndStop (1);
}
Symbol 745 MovieClip Frame 1
stop();
Instance of Symbol 692 MovieClip in Symbol 745 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_global.skillpoint > 0) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Symbol 745 MovieClip Frame 2
stop();
Instance of Symbol 725 MovieClip in Symbol 745 MovieClip Frame 2
onClipEvent (enterFrame) {
_global.gamepaused = 1;
this.txtskillpoints = _global.skillpoint;
if (_global.skill2lvl < 3) {
this.txtskill2 = _global.skill2lvl;
} else {
this.txtskill2 = "MAX";
}
if (_global.skill3lvl < 3) {
this.txtskill3 = _global.skill3lvl;
} else {
this.txtskill3 = "MAX";
}
if (_global.skill4lvl < 5) {
this.txtskill4 = _global.skill4lvl;
} else {
this.txtskill4 = "MAX";
}
if (_global.skill5lvl < 5) {
this.txtskill5 = _global.skill5lvl;
} else {
this.txtskill5 = "MAX";
}
if (_global.skill6lvl < 5) {
this.txtskill6 = _global.skill6lvl;
} else {
this.txtskill6 = "MAX";
}
if (_global.skill7lvl < 5) {
this.txtskill7 = _global.skill7lvl;
} else {
this.txtskill7 = "MAX";
}
if (_global.skill8lvl < 5) {
this.txtskill8 = _global.skill8lvl;
} else {
this.txtskill8 = "MAX";
}
}
Instance of Symbol 729 MovieClip in Symbol 745 MovieClip Frame 2
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 732 MovieClip in Symbol 745 MovieClip Frame 2
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 735 MovieClip in Symbol 745 MovieClip Frame 2
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 738 MovieClip in Symbol 745 MovieClip Frame 2
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 741 MovieClip in Symbol 745 MovieClip Frame 2
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 744 MovieClip in Symbol 745 MovieClip Frame 2
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Symbol 761 Button
on (release) {
_root.btnclick.start();
if (((_global.money >= 8000) && (_global.herolevel >= 5)) && (_global.armor2 != 1)) {
_global.armor2 = 1;
_global.money = _global.money - 8000;
}
}
Symbol 765 Button
on (release) {
_root.btnclick.start();
if (((_global.money >= 15000) && (_global.herolevel >= 15)) && (_global.armor3 != 1)) {
_global.armor3 = 1;
_global.money = _global.money - 15000;
}
}
Symbol 766 Button
on (release) {
_root.btnclick.start();
if (((_global.money >= 30000) && (_global.herolevel >= 25)) && (_global.armor4 != 1)) {
_global.armor4 = 1;
_global.money = _global.money - 30000;
}
}
Symbol 771 Button
on (release) {
_root.btnclick.start();
if (((_global.money >= 5000) && (_global.herolevel >= 5)) && (_global.sword2 != 1)) {
_global.sword2 = 1;
_global.money = _global.money - 5000;
}
}
Symbol 782 Button
on (release) {
_root.btnclick.start();
if ((_global.money >= 200) && (_global.manapotion < 99)) {
_global.manapotion = _global.manapotion + 1;
_global.money = _global.money - 200;
}
}
Symbol 783 Button
on (release) {
_root.btnclick.start();
if ((_global.money >= 200) && (_global.lifepotion < 99)) {
_global.lifepotion = _global.lifepotion + 1;
_global.money = _global.money - 200;
}
}
Symbol 786 Button
on (release) {
_root.btnclick.start();
if (_global.armor2 == 1) {
_global.heroarmor = 2;
_global.herodef = 5;
_root.hero.hero_main.gotoAndStop("block");
}
}
Symbol 787 Button
on (release) {
_root.btnclick.start();
if (_global.armor3 == 1) {
_global.heroarmor = 3;
_global.herodef = 15;
_root.hero.hero_main.gotoAndStop("block");
}
}
Symbol 788 Button
on (release) {
_root.btnclick.start();
if (_global.armor4 == 1) {
_global.heroarmor = 4;
_global.herodef = 30;
_root.hero.hero_main.gotoAndStop("block");
}
}
Symbol 789 Button
on (release) {
_root.btnclick.start();
if (_global.sword2 == 1) {
_global.herowep = 2;
_root.hero.hero_main.gotoAndStop("block");
}
}
Symbol 790 Button
on (release) {
_root.btnclick.start();
if (((_global.money >= 10000) && (_global.herolevel >= 10)) && (_global.sword3 != 1)) {
_global.sword3 = 1;
_global.money = _global.money - 10000;
}
}
Symbol 791 Button
on (release) {
_root.btnclick.start();
if (_global.sword3 == 1) {
_global.herowep = 3;
_root.hero.hero_main.gotoAndStop("block");
}
}
Symbol 792 Button
on (release) {
_root.btnclick.start();
if (((_global.money >= 20000) && (_global.herolevel >= 15)) && (_global.sword4 != 1)) {
_global.sword4 = 1;
_global.money = _global.money - 20000;
}
}
Symbol 793 Button
on (release) {
_root.btnclick.start();
if (_global.sword4 == 1) {
_global.herowep = 4;
_root.hero.hero_main.gotoAndStop("block");
}
}
Symbol 794 Button
on (release) {
_root.btnclick.start();
if (((_global.money >= 40000) && (_global.herolevel >= 25)) && (_global.sword5 != 1)) {
_global.sword5 = 1;
_global.money = _global.money - 40000;
}
}
Symbol 795 Button
on (release) {
_root.btnclick.start();
if (_global.sword5 == 1) {
_global.herowep = 5;
_root.hero.hero_main.gotoAndStop("block");
}
}
Symbol 802 Button
on (release) {
_root.btnclick.start();
if ((_global.money >= 2500) && (_global.amulet2 != 1)) {
_global.amulet2 = 1;
_global.money = _global.money - 2500;
}
}
Symbol 803 Button
on (release) {
_root.btnclick.start();
if ((_global.money >= 2500) && (_global.amulet1 != 1)) {
_global.amulet1 = 1;
_global.money = _global.money - 2500;
}
}
Symbol 807 MovieClip Frame 1
stop();
Symbol 807 MovieClip Frame 2
stop();
Symbol 807 MovieClip Frame 3
stop();
Symbol 827 Button
on (release) {
_root.btnclick.start();
_global.menuopen = 0;
_global.gamepaused = 0;
gotoAndStop (1);
}
Symbol 828 MovieClip Frame 1
stop();
Symbol 828 MovieClip Frame 2
stop();
_global.gamepaused = 1;
Instance of Symbol 807 MovieClip in Symbol 828 MovieClip Frame 2
onClipEvent (enterFrame) {
if ((_global.armor2 == 1) && (_global.heroarmor != 2)) {
this.gotoAndStop(2);
} else if ((_global.armor2 == 1) && (_global.heroarmor == 2)) {
this.gotoAndStop(3);
} else if ((_global.armor2 == 0) && (_global.heroarmor != 2)) {
this.gotoAndStop(1);
}
}
Instance of Symbol 807 MovieClip in Symbol 828 MovieClip Frame 2
onClipEvent (enterFrame) {
if ((_global.armor3 == 1) && (_global.heroarmor != 3)) {
this.gotoAndStop(2);
} else if ((_global.armor3 == 1) && (_global.heroarmor == 3)) {
this.gotoAndStop(3);
} else if ((_global.armor3 == 0) && (_global.heroarmor != 3)) {
this.gotoAndStop(1);
}
}
Instance of Symbol 807 MovieClip in Symbol 828 MovieClip Frame 2
onClipEvent (enterFrame) {
if ((_global.armor4 == 1) && (_global.heroarmor != 4)) {
this.gotoAndStop(2);
} else if ((_global.armor4 == 1) && (_global.heroarmor == 4)) {
this.gotoAndStop(3);
} else if ((_global.armor4 == 0) && (_global.heroarmor != 4)) {
this.gotoAndStop(1);
}
}
Instance of Symbol 807 MovieClip in Symbol 828 MovieClip Frame 2
onClipEvent (enterFrame) {
if ((_global.sword2 == 1) && (_global.herowep != 2)) {
this.gotoAndStop(2);
} else if ((_global.sword2 == 1) && (_global.herowep == 2)) {
this.gotoAndStop(3);
} else if ((_global.sword2 == 0) && (_global.herowep != 2)) {
this.gotoAndStop(1);
}
}
Instance of Symbol 807 MovieClip in Symbol 828 MovieClip Frame 2
onClipEvent (enterFrame) {
if ((_global.sword3 == 1) && (_global.herowep != 3)) {
this.gotoAndStop(2);
} else if ((_global.sword3 == 1) && (_global.herowep == 3)) {
this.gotoAndStop(3);
} else if ((_global.sword3 == 0) && (_global.herowep != 3)) {
this.gotoAndStop(1);
}
}
Instance of Symbol 807 MovieClip in Symbol 828 MovieClip Frame 2
onClipEvent (enterFrame) {
if ((_global.sword4 == 1) && (_global.herowep != 4)) {
this.gotoAndStop(2);
} else if ((_global.sword4 == 1) && (_global.herowep == 4)) {
this.gotoAndStop(3);
} else if ((_global.sword4 == 0) && (_global.herowep != 4)) {
this.gotoAndStop(1);
}
}
Instance of Symbol 807 MovieClip in Symbol 828 MovieClip Frame 2
onClipEvent (enterFrame) {
if ((_global.sword5 == 1) && (_global.herowep != 5)) {
this.gotoAndStop(2);
} else if ((_global.sword5 == 1) && (_global.herowep == 5)) {
this.gotoAndStop(3);
} else if ((_global.sword5 == 0) && (_global.herowep != 5)) {
this.gotoAndStop(1);
}
}
Instance of Symbol 807 MovieClip in Symbol 828 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_global.amulet1 == 1) {
this.gotoAndStop(2);
} else if (_global.amulet1 == 0) {
this.gotoAndStop(1);
}
}
Instance of Symbol 807 MovieClip in Symbol 828 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_global.amulet2 == 1) {
this.gotoAndStop(2);
} else if (_global.amulet2 == 0) {
this.gotoAndStop(1);
}
}
Instance of Symbol 810 MovieClip in Symbol 828 MovieClip Frame 2
onClipEvent (enterFrame) {
_global.gamepaused = 1;
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 812 MovieClip in Symbol 828 MovieClip Frame 2
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 814 MovieClip in Symbol 828 MovieClip Frame 2
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 816 MovieClip in Symbol 828 MovieClip Frame 2
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 818 MovieClip in Symbol 828 MovieClip Frame 2
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 820 MovieClip in Symbol 828 MovieClip Frame 2
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 822 MovieClip in Symbol 828 MovieClip Frame 2
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 824 MovieClip in Symbol 828 MovieClip Frame 2
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 826 MovieClip in Symbol 828 MovieClip Frame 2
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Symbol 844 MovieClip Frame 1
stop();
Symbol 844 MovieClip Frame 2
_global.cooldown1 = 1;
Symbol 844 MovieClip Frame 55
_global.cooldown1 = 0;
Symbol 849 MovieClip Frame 1
stop();
Symbol 849 MovieClip Frame 2
stop();
Symbol 849 MovieClip Frame 3
stop();
Symbol 852 MovieClip Frame 1
stop();
Symbol 852 MovieClip Frame 2
_global.cooldown2 = 1;
Symbol 852 MovieClip Frame 150
_global.cooldown2 = 0;
Symbol 854 MovieClip Frame 1
stop();
Symbol 854 MovieClip Frame 2
stop();
Symbol 854 MovieClip Frame 3
stop();
Symbol 858 MovieClip Frame 1
stop();
Symbol 858 MovieClip Frame 2
_global.cooldown3 = 1;
Symbol 858 MovieClip Frame 105
_global.cooldown3 = 0;
Symbol 861 MovieClip Frame 1
stop();
Symbol 861 MovieClip Frame 2
stop();
Symbol 861 MovieClip Frame 3
stop();
Symbol 865 MovieClip Frame 1
stop();
Symbol 865 MovieClip Frame 2
_global.cooldown4 = 1;
Symbol 865 MovieClip Frame 155
_global.cooldown4 = 0;
Symbol 868 MovieClip Frame 1
stop();
Symbol 868 MovieClip Frame 2
stop();
Symbol 868 MovieClip Frame 3
stop();
Symbol 872 MovieClip Frame 1
stop();
Symbol 872 MovieClip Frame 2
_global.cooldown5 = 1;
Symbol 872 MovieClip Frame 190
_global.cooldown5 = 0;
Symbol 875 MovieClip Frame 1
stop();
Symbol 875 MovieClip Frame 2
stop();
Symbol 875 MovieClip Frame 3
stop();
Symbol 880 MovieClip Frame 1
stop();
Symbol 880 MovieClip Frame 2
_global.cooldown6 = 1;
Symbol 880 MovieClip Frame 201
_global.cooldown6 = 0;
Symbol 882 MovieClip Frame 1
stop();
Symbol 882 MovieClip Frame 2
stop();
Symbol 882 MovieClip Frame 3
stop();
Symbol 887 MovieClip Frame 1
stop();
Symbol 887 MovieClip Frame 2
_global.cooldown7 = 1;
Symbol 887 MovieClip Frame 70
_global.cooldown7 = 0;
Symbol 890 MovieClip Frame 1
stop();
Symbol 890 MovieClip Frame 2
stop();
Symbol 890 MovieClip Frame 3
stop();
Symbol 895 MovieClip Frame 1
stop();
Symbol 895 MovieClip Frame 2
_global.cooldown8 = 1;
Symbol 895 MovieClip Frame 30
_global.cooldown8 = 0;
Symbol 897 MovieClip Frame 1
stop();
Symbol 897 MovieClip Frame 2
stop();
Symbol 897 MovieClip Frame 3
stop();
Instance of Symbol 837 MovieClip in Symbol 912 MovieClip Frame 1
onClipEvent (enterFrame) {
this.txtmoney = _global.money;
this.txtscore = _global.score;
this.txtwave = _global.gamelevel;
}
Instance of Symbol 849 MovieClip "skill1" in Symbol 912 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((_global.skillactive == 1) && (_global.skill1lvl > 0)) {
this.gotoAndStop("active");
} else if ((_global.skillactive != 1) && (_global.skill1lvl > 0)) {
this.gotoAndStop("enabled");
} else if ((_global.skillactive != 1) && (_global.skill1lvl == 0)) {
this.gotoAndStop("locked");
}
}
Instance of Symbol 854 MovieClip "skill2" in Symbol 912 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((_global.skillactive == 2) && (_global.skill2lvl > 0)) {
this.gotoAndStop("active");
} else if ((_global.skillactive != 2) && (_global.skill2lvl > 0)) {
this.gotoAndStop("enabled");
} else if ((_global.skillactive != 2) && (_global.skill2lvl == 0)) {
this.gotoAndStop("locked");
}
}
Instance of Symbol 861 MovieClip "skill3" in Symbol 912 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((_global.skillactive == 3) && (_global.skill3lvl > 0)) {
this.gotoAndStop("active");
} else if ((_global.skillactive != 3) && (_global.skill3lvl > 0)) {
this.gotoAndStop("enabled");
} else if ((_global.skillactive != 3) && (_global.skill3lvl == 0)) {
this.gotoAndStop("locked");
}
}
Instance of Symbol 868 MovieClip "skill4" in Symbol 912 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((_global.skillactive == 4) && (_global.skill4lvl > 0)) {
this.gotoAndStop("active");
} else if ((_global.skillactive != 4) && (_global.skill4lvl > 0)) {
this.gotoAndStop("enabled");
} else if ((_global.skillactive != 4) && (_global.skill4lvl == 0)) {
this.gotoAndStop("locked");
}
}
Instance of Symbol 875 MovieClip "skill5" in Symbol 912 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((_global.skillactive == 5) && (_global.skill5lvl > 0)) {
this.gotoAndStop("active");
} else if ((_global.skillactive != 5) && (_global.skill5lvl > 0)) {
this.gotoAndStop("enabled");
} else if ((_global.skillactive != 5) && (_global.skill5lvl == 0)) {
this.gotoAndStop("locked");
}
}
Instance of Symbol 882 MovieClip "skill6" in Symbol 912 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((_global.skillactive == 6) && (_global.skill6lvl > 0)) {
this.gotoAndStop("active");
} else if ((_global.skillactive != 6) && (_global.skill6lvl > 0)) {
this.gotoAndStop("enabled");
} else if ((_global.skillactive != 6) && (_global.skill6lvl == 0)) {
this.gotoAndStop("locked");
}
}
Instance of Symbol 890 MovieClip "skill7" in Symbol 912 MovieClip Frame 1
onClipEvent (enterFrame) {
this.txtamount = _global.lifepotion;
if (_global.lifepotion > 0) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(3);
}
}
Instance of Symbol 897 MovieClip "skill8" in Symbol 912 MovieClip Frame 1
onClipEvent (enterFrame) {
this.txtamount = _global.manapotion;
if (_global.manapotion > 0) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(3);
}
}
Instance of Symbol 902 MovieClip in Symbol 912 MovieClip Frame 1
onClipEvent (enterFrame) {
currlife = (_global.herolife / _global.maxlife) * 100;
this._xscale = currlife;
}
Instance of Symbol 904 MovieClip in Symbol 912 MovieClip Frame 1
onClipEvent (enterFrame) {
currmana = (_global.heromana / _global.maxmana) * 100;
this._xscale = currmana;
}
Instance of Symbol 907 MovieClip in Symbol 912 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_global.expoints < 100) {
this._xscale = _global.expoints;
} else {
_global.statpoint = _global.statpoint + 3;
_global.skillpoint = _global.skillpoint + 1;
_global.herolevel = _global.herolevel + 1;
_global.maxlife = _global.maxlife + (_global.herolevel * 5);
_global.herolife = _global.maxlife;
_global.heromana = _global.maxmana;
_root.camera.txtmsg = "Level Up!";
_root.txtcleaner.gotoAndPlay(2);
_root.hero.hero_main.gotoAndStop("levelup");
_global.expoints = 0;
this._xscale = 0;
}
}
Instance of Symbol 918 MovieClip in Symbol 920 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_global.enemylife > 0) {
currlife = (_global.enemylife / _global.maxenemylife) * 100;
} else {
currlife = 0;
}
if (currlife > 100) {
currlife = 100;
}
this._xscale = currlife;
}
Symbol 927 MovieClip Frame 1
stop();
Symbol 927 MovieClip Frame 2
stop();
Symbol 928 Button
on (release) {
_root.btnclick.start();
gotoAndPlay ("closer");
}
Symbol 930 MovieClip Frame 1
_global.gamepaused = 1;
_global.menuopen = 1;
stop();
Symbol 930 MovieClip Frame 10
stop();
Symbol 930 MovieClip Frame 20
_global.gamepaused = 0;
_global.menuopen = 0;
Symbol 930 MovieClip Frame 21
_root.camera.gamewave.gotoAndPlay(2);
stop();
Symbol 934 Button
on (release) {
if (_global.retries > 0) {
if (_global.expoints >= 40) {
_global.expoints = _global.expoints - 40;
} else {
_global.expoints = 0;
}
deductme = _global.gamelevel * 300;
if (_global.money >= deductme) {
_global.money = _global.money - deductme;
} else {
_global.money = 0;
}
gotoAndPlay ("closer");
} else {
_root.gotoAndStop("gameover");
}
}
Symbol 940 MovieClip Frame 1
_global.gamepaused = 1;
_global.menuopen = 1;
stop();
Symbol 940 MovieClip Frame 10
penalties.txtlvlamount = "40 exp points";
penalties.txtamount = "-" + (_global.gamelevel * 300);
_global.retries = _global.retries - 1;
if (_global.retries < 0) {
_global.retries = 0;
}
penalties.txtretry = _global.retries;
_global.gamepaused = 1;
_root.door.dooropen = 0;
_root.walls.door1.gotoAndStop(1);
_root.walls.door2.gotoAndStop(1);
stop();
Symbol 940 MovieClip Frame 20
_global.gamepaused = 0;
_global.menuopen = 0;
Symbol 940 MovieClip Frame 21
_parent.starter.gotoAndPlay(1);
_parent.ender.gotoAndStop(1);
_root.hero._x = _root.startbeacon._x;
_root.hero._y = _root.startbeacon._y;
_global.busy = 0;
_global.herolife = _global.maxlife;
_global.heromana = _global.maxmana;
_root.hero.hero_main.gotoAndStop("walk");
stop();
Symbol 944 MovieClip Frame 1
stop();
Symbol 944 MovieClip Frame 2
_root.dooropen3.start();
Symbol 944 MovieClip Frame 24
stop();
_global.gamelevel = _global.gamelevel + 1;
newarea = "area" + _global.gamelevel;
_parent.starter.gotoAndPlay(1);
_parent.ender.gotoAndStop(1);
_root.gotoAndStop(newarea);
_root.hero._x = _root.startbeacon._x;
_root.hero._y = _root.startbeacon._y;
Symbol 945 MovieClip Frame 1
_root.dooropen3.start();
_global.startgame = 0;
Symbol 945 MovieClip Frame 25
stop();
_global.startgame = 1;
_root.camera.objective.gotoAndPlay(2);
Instance of Symbol 949 MovieClip in Symbol 950 MovieClip Frame 1
onClipEvent (enterFrame) {
this.txtwave = _global.gamelevel;
}
Symbol 951 MovieClip Frame 1
stop();
Symbol 951 MovieClip Frame 58
_global.gamepaused = 0;
Symbol 952 MovieClip Frame 1
function camControl() {
if (_global.gameover != 1) {
if (this.shake < 0.6) {
this.shake = 0;
} else {
this._x = this._x - (this.shake * this.shakeDir);
this._y = this._y - (this.shake * this.shakeDir);
this.shakeDir = this.shakeDir * -1;
this.shake = this.shake * this.shakeFric;
}
parentColor.setTransform(camColor.getTransform());
var _local5 = sX / this._width;
var _local4 = sY / this._height;
_parent._x = cX - (this._x * _local5);
_parent._y = cY - (this._y * _local4);
_parent._xscale = 100 * _local5;
_parent._yscale = 100 * _local4;
}
}
function resetStage() {
var _local2 = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0};
parentColor.setTransform(_local2);
_parent._xscale = 100;
_parent._yscale = 100;
_parent._x = 0;
_parent._y = 0;
}
shake = 0;
shakeFric = 0.9;
shakeDir = 1;
this._visible = true;
var oldMode = Stage.scaleMode;
Stage.scaleMode = "exactFit";
var cX = (Stage.width / 2);
var cY = (Stage.height / 2);
var sX = Stage.width;
var sY = Stage.height;
Stage.scaleMode = oldMode;
var camColor = new Color(this);
var parentColor = new Color(_parent);
this.onEnterFrame = camControl;
camControl();
this.onUnload = resetStage;
stop();
Instance of Symbol 688 MovieClip "statmenu" in Symbol 952 MovieClip Frame 1
onClipEvent (enterFrame) {
if (Key.isDown(90) && (_global.menuopen == 0)) {
_global.gamepaused = 1;
_global.menuopen = 1;
_root.camera.skillsmenu.gotoAndStop(1);
_root.camera.itemsmenu.gotoAndStop(1);
this.gotoAndStop(2);
}
}
Instance of Symbol 745 MovieClip "skillsmenu" in Symbol 952 MovieClip Frame 1
onClipEvent (enterFrame) {
if (Key.isDown(88) && (_global.menuopen == 0)) {
_global.gamepaused = 1;
_global.menuopen = 1;
_root.camera.statmenu.gotoAndStop(1);
_root.camera.itemsmenu.gotoAndStop(1);
this.gotoAndStop(2);
}
}
Instance of Symbol 828 MovieClip "itemsmenu" in Symbol 952 MovieClip Frame 1
onClipEvent (enterFrame) {
if (Key.isDown(67) && (_global.menuopen == 0)) {
_global.gamepaused = 1;
_global.menuopen = 1;
_root.camera.statmenu.gotoAndStop(1);
_root.camera.skillsmenu.gotoAndStop(1);
this.gotoAndStop(2);
}
}
Instance of Symbol 912 MovieClip "skillbar" in Symbol 952 MovieClip Frame 1
onClipEvent (enterFrame) {
this.txtlevel = _global.herolevel;
if (_global.herolife < 0) {
_global.herolife = 0;
}
if (_global.heromana < 0) {
_global.heromana = 0;
}
if (_global.herolife == 0) {
_global.gamepaused = 1;
_root.hero.hero_main.gotoAndStop("dead");
}
this.txtlife = (_global.herolife + "/") + _global.maxlife;
this.txtmana = (_global.heromana + "/") + _global.maxmana;
if ((((_global.lifepotion > 0) && (_global.amulet1 == 1)) && (_global.cooldown7 == 0)) && (_global.gamepaused == 0)) {
maxlifehalf = _global.maxlife / 2;
if (_global.herolife < maxlifehalf) {
this.skill7.cooldown7.gotoAndPlay(2);
_root.usepotion.start();
healamount = _global.healamount * _global.skill7lvl;
_global.herolife = _global.herolife + healamount;
if (_global.herolife > _global.maxlife) {
_global.herolife = _global.maxlife;
}
_global.lifepotion = _global.lifepotion - 1;
}
}
if ((((_global.manapotion > 0) && (_global.amulet2 == 1)) && (_global.cooldown8 == 0)) && (_global.gamepaused == 0)) {
maxmanahalf = _global.maxmana / 2;
if (_global.heromana < maxmanahalf) {
this.skill8.cooldown8.gotoAndPlay(2);
_root.usepotion.start();
energyamount = _global.energyamount + (_global.skill8lvl * 5);
_global.heromana = _global.heromana + energyamount;
if (_global.heromana > _global.maxmana) {
_global.heromana = _global.maxmana;
}
_global.manapotion = _global.manapotion - 1;
}
}
if ((Key.isDown(49) && (_global.skill1lvl > 0)) && (_global.gamepaused == 0)) {
_global.skillactive = 1;
} else if ((Key.isDown(50) && (_global.skill2lvl > 0)) && (_global.gamepaused == 0)) {
_global.skillactive = 2;
} else if ((Key.isDown(51) && (_global.skill3lvl > 0)) && (_global.gamepaused == 0)) {
_global.skillactive = 3;
} else if ((Key.isDown(52) && (_global.skill4lvl > 0)) && (_global.gamepaused == 0)) {
_global.skillactive = 4;
} else if ((Key.isDown(53) && (_global.skill5lvl > 0)) && (_global.gamepaused == 0)) {
_global.skillactive = 5;
} else if ((Key.isDown(54) && (_global.skill6lvl > 0)) && (_global.gamepaused == 0)) {
_global.skillactive = 6;
} else if (((Key.isDown(55) && (_global.lifepotion > 0)) && (_global.cooldown7 == 0)) && (_global.gamepaused == 0)) {
this.skill7.cooldown7.gotoAndPlay(2);
_root.usepotion.start();
healamount = _global.healamount * _global.skill7lvl;
_global.herolife = _global.herolife + healamount;
if (_global.herolife > _global.maxlife) {
_global.herolife = _global.maxlife;
}
_global.lifepotion = _global.lifepotion - 1;
} else if (((Key.isDown(56) && (_global.manapotion > 0)) && (_global.cooldown8 == 0)) && (_global.gamepaused == 0)) {
this.skill8.cooldown8.gotoAndPlay(2);
_root.usepotion.start();
energyamount = _global.energyamount + (_global.skill8lvl * 5);
_global.heromana = _global.heromana + energyamount;
if (_global.heromana > _global.maxmana) {
_global.heromana = _global.maxmana;
}
_global.manapotion = _global.manapotion - 1;
}
}
Instance of Symbol 920 MovieClip in Symbol 952 MovieClip Frame 1
onClipEvent (enterFrame) {
this.txtenemyname = _global.enemyname;
}
Symbol 955 MovieClip Frame 1
stop();
Symbol 955 MovieClip Frame 2
gotoAndPlay (3);
Symbol 955 MovieClip Frame 185
_root.camera.txtmsg = "";
_root.camera.txtimptmsg = "";
Symbol 957 Button
on (release) {
getURL ("http://www.ahjee.com", "_blank");
}
Symbol 958 Button
on (release) {
getURL ("http://www.snipinggames.net", "_blank");
}
Symbol 968 MovieClip Frame 21
stop();