Frame 1
function doSomething() {
getURL ("http://www.eggysgames", "_blank");
}
function doSomething2() {
getURL ("http://www.shibbymedia.net/", "blank");
}
function doSomething3() {
getURL ("http://www.armorgames.com", "_blank");
}
MENU.customItems.push(Functioned2);
MENU = new ContextMenu();
MENU.hideBuiltInItems();
Functioned = new ContextMenuItem("Eggys Games", doSomething);
Functioned2 = new ContextMenuItem("Shibby Media", doSomething2);
Functioned3 = new ContextMenuItem("Armor Games", doSomething3);
MENU.customItems.push(Functioned);
MENU.customItems.push(Functioned2);
MENU.customItems.push(Functioned3);
MENU.builtInItems.quality = true;
_root.menu = MENU;
_root.soundon = true;
_root.musicon = true;
_root.pausee = false;
Instance of Symbol 28 MovieClip in Frame 1
on (release) {
getURL ("http://eggysblog.wordpress.com/", "blank");
}
Instance of Symbol 49 MovieClip in Frame 1
on (release) {
getURL ("http://shibbymedia.net/", "blank");
}
Instance of Symbol 58 MovieClip in Frame 1
on (release) {
getURL ("http://www.armorgames.com", "blank");
}
Frame 2
stop();
Frame 3
stop();
Instance of Symbol 87 MovieClip in Frame 3
on (press) {
getURL ("http://www.eggysgames.com", "blank");
}
Frame 4
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;
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);
}
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=7&fv=") + fv) + "&v=") + escape(getVersion())) + "&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);
}
__com_mochibot__("dc578e7c", this, 10301, true);
stop();
if (_root.musicon == true) {
someSound = new Sound();
someSound.attachSound("menumusic", this);
someSound.start(0, 1E17);
}
Instance of Symbol 156 MovieClip in Frame 4
on (release) {
getURL ("http://www.shibbymedia.net/", "blank");
}
Instance of Symbol 158 MovieClip in Frame 4
on (release) {
getURL ("http://www.eggysgames.com/", "blank");
}
Instance of Symbol 169 MovieClip in Frame 4
on (release) {
getURL ("http://www.armorgames.com", "blank");
}
Frame 5
_root.EXPGET = 4;
_root.enemyonehp = 200;
_root.enemytwohp = 200;
_root.enemythreehp = 250;
_root.enemyfourhp = 1000;
_root.enemyfivehp = 3000;
_root.enemysixhp = 500;
_root.enemysevenhp = 250;
_root.enemyeighthp = 6500;
_root.enemyninethp = 800;
_root.enemytenhp = 10000;
_root.enemyelevenhp = 1500;
_root.enemytwelvehp = 4400;
_root.enemythirteenhp = 20000;
_root.sworddmg = 40;
_root.fireballdmg = 20;
_root.firewalldmg = 6;
_root.fueldmg = 100;
_root.meteordmg = 900;
_root.lightningdmg = 600;
_root.angeldmg = 2000;
_root.satandmg = 800;
_root.godballdmg = 300;
_root.castleattackdmg = 1;
_root.num = 0;
_root.UI.wave = 1;
_root.UI.wavecount = 0;
_root.count = 0;
_root.i = 0;
_root.techtree.techpoints = 1;
_root.techtree._alpha = 86;
_root.soundon = true;
_root.musicon = true;
_root.METarea = false;
_root.LIGarea = false;
_root.holder = 0;
_root.wavehold = 0;
_root.once = false;
_root.adder = 0;
pausee = false;
letEm = true;
dep = false;
t = getTimer();
pscreen._visible = false;
onEnterFrame = function () {
if ((Key.isDown(80) && (!pausee)) && (letEm)) {
letEm = false;
pausee = true;
pscreen.swapDepths(_root.getNextHighestDepth());
pscreen._visible = true;
for (i in _root) {
if (_root[i]._name) {
test = _root[i]._name.toString();
} else {
test = "blarg";
}
trace(test);
if (test.indexOf("enemy") != -1) {
trace("fap");
for (b in _root[i]) {
_root[i][b].stop();
}
}
}
}
if ((Key.isDown(80) && (pausee)) && (letEm)) {
letEm = false;
pausee = false;
pscreen._visible = false;
for (i in _root) {
if (_root[i]._name != undefined) {
test = _root[i]._name.toString();
}
if (test.indexOf("enemy") != -1) {
for (b in _root[i]) {
_root[i][b].play();
}
}
}
}
if (!Key.isDown(80)) {
letEm = true;
}
if ((getTimer() - t) > 50) {
t = getTimer();
dep = true;
} else if (dep) {
dep = false;
}
};
if (_root.musicon == true) {
someSound = new Sound();
someSound.attachSound("gamemusic", this);
someSound.start(0, 99999999);
}
Instance of Symbol 273 MovieClip "char" in Frame 5
onClipEvent (load) {
speed = 5;
faceright = _xscale;
down = false;
up = true;
_root.dir = true;
_root.b = 1;
_root.s = 1;
}
onClipEvent (enterFrame) {
if (_root.pausee == false) {
if (_root.dep) {
this.swapDepths(this._y * 10);
}
if ((Key.isDown(32) and (_currentframe == 1)) or (Key.isDown(32) and (_currentframe == 3))) {
if (_currentframe != 4) {
gotoAndStop (3);
}
} else if ((Key.isDown(32) and (_currentframe == 2)) or (Key.isDown(32) and (_currentframe == 4))) {
if (_currentframe != 4) {
gotoAndStop (3);
}
}
if ((Key.isDown(40) and (_currentframe != 3)) and (_currentframe != 5)) {
this._y = this._y + speed;
if (_currentframe != 4) {
gotoAndStop (2);
}
down = true;
} else if ((Key.isDown(38) and (_currentframe != 3)) and (_currentframe != 5)) {
this._y = this._y - speed;
if (_currentframe != 4) {
gotoAndStop (2);
}
up = true;
} else if ((Key.isDown(37) and (_currentframe != 3)) and (_currentframe != 5)) {
_root.dir = false;
this._x = this._x - speed;
AC._xscale = -faceright;
_xscale = (-faceright);
if (_currentframe != 4) {
gotoAndStop (2);
}
} else if ((Key.isDown(39) and (_currentframe != 3)) and (_currentframe != 5)) {
_root.dir = true;
this._x = this._x + speed;
AC._xscale = faceright;
_xscale = faceright;
if (_currentframe != 4) {
gotoAndStop (2);
}
}
if (!Key.isDown(38)) {
up = false;
}
if (!Key.isDown(40)) {
down = false;
}
if (((((_currentframe == 2) and (!Key.isDown(37))) and (!Key.isDown(39))) and (!Key.isDown(38))) and (!Key.isDown(40))) {
this.gotoAndStop(1);
}
while ((((Key.isDown(37) and (down == false)) and (up == false)) and (_xscale == (-faceright))) and _root.map.hitTest(_x - 3, _y, true)) {
this._x++;
}
while ((((Key.isDown(39) and (down == false)) and (up == false)) and (_xscale == faceright)) and _root.map.hitTest(_x + 3, _y, true)) {
this._x--;
}
while (Key.isDown(38) and _root.map.hitTest(_x, _y - 3, true)) {
this._y++;
}
while (Key.isDown(40) and _root.map.hitTest(_x, _y + 3, true)) {
this._y--;
}
if ((((Key.isDown(192) and (_root.squiggly._currentframe == 2)) and (_root.squiggly.SChide._currentframe == 1)) and (_currentframe != 4)) and (_currentframe != 5)) {
duplicateMovieClip (_root.thefireball, "newfireball" + _root.s, _root.getNextHighestDepth());
_root.s = _root.s + 1;
_root.squiggly.SChide.squigglycount = 15;
_root.squiggly.SChide.gotoAndStop(2);
}
if (((((Key.isDown(49) and (_root.one._currentframe == 2)) and (_root.one.SChide._currentframe == 1)) and (_currentframe != 4)) and (_currentframe != 5)) and (_root.char.spells._currentframe == 1)) {
_root.char.spells.gotoAndStop(2);
_root.one.SChide.onecount = 20;
_root.one.SChide.gotoAndStop(2);
_root.UI.HP.gotoAndStop(_root.UI.HP._currentframe - 10);
}
if ((((Key.isDown(50) and (_root.two._currentframe == 2)) and (_root.two.SChide._currentframe == 1)) and (_currentframe != 4)) and (_currentframe != 5)) {
duplicateMovieClip (_root.thefirewall, "newfirewall" + _root.i, _root.getNextHighestDepth());
_root.two.SChide.twocount = 20;
_root.two.SChide.gotoAndStop(2);
_root.i = _root.i + 1;
}
if ((((Key.isDown(51) and (_root.three._currentframe == 2)) and (_root.three.SChide._currentframe == 1)) and (_currentframe != 4)) and (_currentframe != 5)) {
duplicateMovieClip (_root.thefuel, "newfuel" + _root.b, _root.getNextHighestDepth());
_root.three.SChide.threecount = 20;
_root.three.SChide.gotoAndStop(2);
_root.b = _root.b + 1;
}
if (((((Key.isDown(52) and (_root.four._currentframe == 2)) and (_root.four.SChide._currentframe == 1)) and (_currentframe != 4)) and (_currentframe != 5)) and (_root.char.spells._currentframe == 1)) {
_root.char.spells.gotoAndStop(3);
_root.four.SChide.fourcount = 30;
_root.four.SChide.gotoAndStop(2);
}
if (((((Key.isDown(53) and (_root.five._currentframe == 2)) and (_root.five.SChide._currentframe == 1)) and (_currentframe != 4)) and (_currentframe != 5)) and (_root.char.spells._currentframe == 1)) {
_root.char.spells.gotoAndStop(4);
_root.five.SChide.fivecount = 40;
_root.five.SChide.gotoAndStop(2);
_root.UI.HP.gotoAndStop(_root.UI.HP._currentframe - 20);
}
if ((((Key.isDown(54) and (_root.six._currentframe == 2)) and (_root.six.SChide._currentframe == 1)) and (_currentframe != 4)) and (_currentframe != 5)) {
_root.METarea = true;
_root.six.SChide.sixcount = 35;
_root.six.SChide.gotoAndStop(2);
}
if (((((Key.isDown(55) and (_root.seven._currentframe == 2)) and (_root.seven.SChide._currentframe == 1)) and (_currentframe != 4)) and (_currentframe != 5)) and (_root.char.spells._currentframe == 1)) {
_root.seven.SChide.sevencount = 35;
_root.seven.SChide.gotoAndStop(2);
_root.char.spells.gotoAndStop(5);
}
if ((((Key.isDown(56) and (_root.eight._currentframe == 2)) and (_root.eight.SChide._currentframe == 1)) and (_currentframe != 4)) and (_currentframe != 5)) {
_root.LIGarea = true;
_root.eight.SChide.eightcount = 35;
_root.eight.SChide.gotoAndStop(2);
}
if (((((Key.isDown(57) and (_root.nine._currentframe == 2)) and (_root.nine.SChide._currentframe == 1)) and (_currentframe != 4)) and (_currentframe != 5)) and (_root.char.spells._currentframe == 1)) {
_root.nine.SChide.ninecount = 50;
_root.nine.SChide.gotoAndStop(2);
_root.char.spells.gotoAndStop(6);
}
if ((((Key.isDown(48) and (_root.zero._currentframe == 2)) and (_root.zero.SChide._currentframe == 1)) and (_currentframe != 4)) and (_currentframe != 5)) {
_root.zero.SChide.gotoAndStop(2);
_root.zero.SChide.zerocount = 50;
duplicateMovieClip (_root.godball, "newgodball" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
if (_root.UI.HP._currentframe == 100) {
this.gotoAndStop(5);
}
if (_root.i >= 10) {
_root.i = 0;
}
if (_root.s >= 10) {
_root.s = 0;
}
}
if ((_root.pausee == true) and (_currentframe != 5)) {
gotoAndStop (1);
}
if ((_root._currentframe == 6) or (_root._currentframe == 7)) {
removeMovieClip(this);
}
}
Instance of Symbol 276 MovieClip in Frame 5
onClipEvent (enterFrame) {
if (_root.UI.wave == 41) {
_root.gotoAndStop(7);
}
}
Instance of Symbol 347 MovieClip "enemyone" in Frame 5
onClipEvent (load) {
hp = _root.enemyonehp;
maxhp = _root.enemyonehp;
if (_name != "enemyone") {
_x = 825;
_y = (random(60) + 200);
rightface = _xscale;
}
}
onClipEvent (enterFrame) {
if (!_root.pausee) {
walk.play();
if (_root.dep) {
this.swapDepths(this._y * 10);
}
if (_name != "enemyone") {
X = _root.char._x - this._x;
Y = _root.char._y - this._y;
dist = (X * X) + (Y * Y);
if ((dist < 10000) and (_root.char._currentframe != 5)) {
if (_root.char._x > _x) {
_xscale = (-rightface);
} else if (_root.char._x < _x) {
_xscale = rightface;
}
if ((dist > 500) and (_currentframe != 2)) {
ang = Math.atan2(Y, X);
this._x = this._x + (Math.cos(ang) * 1);
this._y = this._y + (Math.sin(ang) * 1);
}
if (dist < 500) {
if ((_currentframe == 2) or (_currentframe == 1)) {
this.gotoAndStop(2);
_root.castleattack = false;
}
} else if (_root.char._currentframe != 5) {
if (swing._currentframe == 1) {
gotoAndStop (1);
}
}
} else if ((!_root.map.walldown.hitTest(this)) and (!_root.map.wallup.hitTest(this))) {
X = (_root.map.castle._x + 70) - this._x;
Y = (_root.map.castle._y - 50) - this._y;
dist = (X * X) + (Y * Y);
if (dist < 10000) {
if (_root.map.castle._x > _x) {
_xscale = (-rightface);
} else if (_root.map.castle._x < _x) {
_xscale = rightface;
}
if ((dist > 500) and (_currentframe != 2)) {
ang = Math.atan2(Y, X);
this._x = this._x + (Math.cos(ang) * 1);
this._y = this._y + (Math.sin(ang) * 1);
}
if (dist < 500) {
if ((_currentframe == 2) or (_currentframe == 1)) {
this.gotoAndStop(2);
_root.castleattack = true;
}
} else if (swing._currentframe == 1) {
gotoAndStop (1);
}
} else {
_root.castleattack = false;
this._x = this._x - 1;
_xscale = rightface;
if (_currentframe != 3) {
gotoAndStop (1);
}
}
}
}
if (_root.char.rightswing.righthit.hitTest(this)) {
hp = hp - _root.sworddmg;
if (_root.dir == true) {
_x = (_x + 2);
}
if (_root.dir == false) {
_x = (_x - 2);
}
}
Percent = (hp / maxhp) * 100;
hpbar._xscale = Percent;
if (hp < 5) {
this.hpbar._visible = false;
this.gotoAndStop(3);
}
if (blood._currentframe == 9) {
removeMovieClip(this);
}
i = 0;
while (i < 10) {
if (this.hitTest(_root["newfireball" + i])) {
hp = hp - _root.fireballdmg;
}
if (this.hitTest(_root["newfirewall" + i])) {
hp = hp - _root.firewalldmg;
}
if (this.hitTest(_root["newfuel" + i].bang.explodmg)) {
hp = hp - _root.fueldmg;
}
if (this.hitTest(_root["newgodball" + i])) {
hp = hp - _root.godballdmg;
}
i++;
}
if (_root.meteorr.explosion.hit.hitTest(this)) {
hp = hp - _root.meteordmg;
}
if (_root.lightning.explosion.hit.hitTest(this)) {
hp = hp - _root.lightningdmg;
}
if (_root.char.spells.angel.hit.hitTest(this)) {
hp = hp - _root.angeldmg;
}
if (_root.char.spells.satan.hit.hitTest(this)) {
hp = hp - _root.satandmg;
}
if (_root._currentframe == 6) {
removeMovieClip(this);
}
}
}
Instance of Symbol 365 MovieClip "enemytwo" in Frame 5
onClipEvent (load) {
hp = _root.enemytwohp;
maxhp = _root.enemytwohp;
if (_name != "enemytwo") {
_x = 825;
_y = (random(60) + 200);
rightface = _xscale;
}
}
onClipEvent (enterFrame) {
if (!_root.pausee) {
if (_root.dep) {
this.swapDepths(this._y * 10);
}
if (_name != "enemytwo") {
X = _root.char._x - this._x;
Y = _root.char._y - this._y;
dist = (X * X) + (Y * Y);
if ((dist < 40000) and (_root.char._currentframe != 5)) {
if (_root.char._x > _x) {
_xscale = (-rightface);
} else if (_root.char._x < _x) {
_xscale = rightface;
}
if ((dist < 10) and (_currentframe != 2)) {
ang = Math.atan2(Y, X);
this._x = this._x + (Math.cos(ang) * 1);
this._y = this._y + (Math.sin(ang) * 1);
}
if (dist > 100) {
if ((_currentframe == 2) or (_currentframe == 1)) {
this.gotoAndStop(2);
}
} else if (_root.char._currentframe != 5) {
if (swing._currentframe == 1) {
gotoAndStop (1);
}
}
} else if ((!_root.map.walldown.hitTest(this)) and (!_root.map.wallup.hitTest(this))) {
this._x = this._x - 1;
_xscale = rightface;
if (_currentframe != 3) {
gotoAndStop (1);
}
}
if (_root.map.walldown.hitTest(this)) {
_y = (_y - 3);
}
if (_root.map.wallup.hitTest(this)) {
_y = (_y + 3);
}
}
if (_root.char.rightswing.righthit.hitTest(this)) {
hp = hp - 40;
if (_root.dir == true) {
_x = (_x + 3);
}
if (_root.dir == false) {
_x = (_x - 3);
}
}
Percent = (hp / maxhp) * 100;
hpbar._xscale = Percent;
if (hp < 5) {
this.hpbar._visible = false;
this.gotoAndStop(3);
}
if (blood._currentframe == 9) {
removeMovieClip(this);
}
i = 0;
while (i < 10) {
if (this.hitTest(_root["newfireball" + i])) {
hp = hp - 15;
}
if (this.hitTest(_root["newfirewall" + i])) {
hp = hp - 20;
}
if (this.hitTest(_root["newfuel" + i].bang.explodmg)) {
hp = hp - 80;
}
if (this.hitTest(_root["newgodball" + i])) {
hp = hp - 1000;
}
i++;
}
if (_root.meteorr.explosion.hit.hitTest(this)) {
hp = hp - 100;
}
if (_root.lightning.explosion.hit.hitTest(this)) {
hp = hp - 100;
}
if (_root.char.spells.angel.hit.hitTest(this)) {
hp = hp - 500;
}
if (_root.char.spells.satan.hit.hitTest(this)) {
hp = hp - 1000;
}
if (_x < 250) {
_x = 250;
this.stand.gotoAndStop(1);
_xscale = (-rightface);
}
if (_root._currentframe == 6) {
removeMovieClip(this);
}
}
}
Instance of Symbol 380 MovieClip "enemythree" in Frame 5
onClipEvent (load) {
hp = _root.enemythreehp;
maxhp = _root.enemythreehp;
if (_name != "enemythree") {
_x = 825;
_y = (random(60) + 200);
rightface = _xscale;
}
}
onClipEvent (enterFrame) {
if (_root.pausee == false) {
if (_root.dep) {
this.swapDepths(this._y * 10);
}
if (_name != "enemythree") {
X = _root.char._x - this._x;
Y = _root.char._y - this._y;
dist = (X * X) + (Y * Y);
if ((dist < 10000) and (_root.char._currentframe != 5)) {
if (_root.char._x > _x) {
_xscale = (-rightface);
} else if (_root.char._x < _x) {
_xscale = rightface;
}
if ((dist > 500) and (_currentframe != 2)) {
ang = Math.atan2(Y, X);
this._x = this._x + (Math.cos(ang) * 3);
this._y = this._y + (Math.sin(ang) * 3);
}
if (dist < 500) {
if ((_currentframe == 2) or (_currentframe == 1)) {
this.gotoAndStop(2);
_root.castleattack = false;
}
} else if (_root.char._currentframe != 5) {
if (swing._currentframe == 1) {
gotoAndStop (1);
}
}
} else if ((!_root.map.walldown.hitTest(this)) and (!_root.map.wallup.hitTest(this))) {
X = (_root.map.castle._x + 70) - this._x;
Y = (_root.map.castle._y - 50) - this._y;
dist = (X * X) + (Y * Y);
if (dist < 10000) {
if (_root.map.castle._x > _x) {
_xscale = (-rightface);
} else if (_root.map.castle._x < _x) {
_xscale = rightface;
}
if ((dist > 500) and (_currentframe != 2)) {
ang = Math.atan2(Y, X);
this._x = this._x + (Math.cos(ang) * 3);
this._y = this._y + (Math.sin(ang) * 3);
}
if (dist < 500) {
if ((_currentframe == 2) or (_currentframe == 1)) {
this.gotoAndStop(2);
_root.castleattack = true;
}
} else if (swing._currentframe == 1) {
gotoAndStop (1);
}
} else {
_root.castleattack = false;
this._x = this._x - 3;
_xscale = rightface;
if (_currentframe != 3) {
gotoAndStop (1);
}
}
}
}
if (_root.char.rightswing.righthit.hitTest(this)) {
hp = hp - _root.sworddmg;
if (_root.dir == true) {
_x = (_x + 2);
}
if (_root.dir == false) {
_x = (_x - 2);
}
}
Percent = (hp / maxhp) * 100;
hpbar._xscale = Percent;
if (hp < 5) {
this.hpbar._visible = false;
this.gotoAndStop(3);
}
if (blood._currentframe == 9) {
removeMovieClip(this);
}
i = 0;
while (i < 10) {
if (this.hitTest(_root["newfireball" + i])) {
hp = hp - _root.fireballdmg;
}
if (this.hitTest(_root["newfirewall" + i])) {
hp = hp - _root.firewalldmg;
}
if (this.hitTest(_root["newfuel" + i].bang.explodmg)) {
hp = hp - _root.fueldmg;
}
if (this.hitTest(_root["newgodball" + i])) {
hp = hp - _root.godballdmg;
}
i++;
}
if (_root.meteorr.explosion.hit.hitTest(this)) {
hp = hp - _root.meteordmg;
}
if (_root.lightning.explosion.hit.hitTest(this)) {
hp = hp - _root.lightningdmg;
}
if (_root.char.spells.angel.hit.hitTest(this)) {
hp = hp - _root.angeldmg;
}
if (_root.char.spells.satan.hit.hitTest(this)) {
hp = hp - _root.satandmg;
}
}
if (_root.pausee == true) {
walk.gotoAndStop(1);
}
if (_root._currentframe == 6) {
removeMovieClip(this);
}
}
Instance of Symbol 412 MovieClip "enemyfour" in Frame 5
onClipEvent (load) {
hp = _root.enemyfourhp;
maxhp = _root.enemyfourhp;
if (_name != "enemyfour") {
_x = 825;
_y = (random(60) + 200);
rightface = _xscale;
}
}
onClipEvent (enterFrame) {
if (_root.pausee == false) {
if (_root.dep) {
this.swapDepths(this._y * 10);
}
if (_name != "enemyfour") {
X = _root.char._x - this._x;
Y = _root.char._y - this._y;
dist = (X * X) + (Y * Y);
if ((dist < 10000) and (_root.char._currentframe != 5)) {
if (_root.char._x > _x) {
_xscale = (-rightface);
} else if (_root.char._x < _x) {
_xscale = rightface;
}
if ((dist > 500) and (_currentframe != 2)) {
ang = Math.atan2(Y, X);
this._x = this._x + (Math.cos(ang) * 1.2);
this._y = this._y + (Math.sin(ang) * 1.2);
}
if (dist < 500) {
if ((_currentframe == 2) or (_currentframe == 1)) {
this.gotoAndStop(2);
_root.castleattack = false;
}
} else if (_root.char._currentframe != 5) {
if (swing._currentframe == 1) {
gotoAndStop (1);
}
}
} else if ((!_root.map.walldown.hitTest(this)) and (!_root.map.wallup.hitTest(this))) {
X = (_root.map.castle._x + 70) - this._x;
Y = (_root.map.castle._y - 50) - this._y;
dist = (X * X) + (Y * Y);
if (dist < 10000) {
if (_root.map.castle._x > _x) {
_xscale = (-rightface);
} else if (_root.map.castle._x < _x) {
_xscale = rightface;
}
if ((dist > 500) and (_currentframe != 2)) {
ang = Math.atan2(Y, X);
this._x = this._x + (Math.cos(ang) * 1.2);
this._y = this._y + (Math.sin(ang) * 1.2);
}
if (dist < 500) {
if ((_currentframe == 2) or (_currentframe == 1)) {
this.gotoAndStop(2);
_root.castleattack = true;
}
} else if (swing._currentframe == 1) {
gotoAndStop (1);
}
} else {
_root.castleattack = false;
this._x = this._x - 1.2;
_xscale = rightface;
if (_currentframe != 3) {
gotoAndStop (1);
}
}
}
}
if (_root.char.rightswing.righthit.hitTest(this)) {
hp = hp - _root.sworddmg;
if (_root.dir == true) {
_x = (_x + 1);
}
if (_root.dir == false) {
_x = (_x - 1);
}
}
Percent = (hp / maxhp) * 100;
hpbar._xscale = Percent;
if (hp < 5) {
this.hpbar._visible = false;
this.gotoAndStop(3);
}
if (blood._currentframe == 9) {
removeMovieClip(this);
}
i = 0;
while (i < 10) {
if (this.hitTest(_root["newfireball" + i])) {
hp = hp - _root.fireballdmg;
}
if (this.hitTest(_root["newfirewall" + i])) {
hp = hp - _root.firewalldmg;
}
if (this.hitTest(_root["newfuel" + i].bang.explodmg)) {
hp = hp - _root.fueldmg;
}
if (this.hitTest(_root["newgodball" + i])) {
hp = hp - _root.godballdmg;
}
i++;
}
if (_root.meteorr.explosion.hit.hitTest(this)) {
hp = hp - _root.meteordmg;
}
if (_root.lightning.explosion.hit.hitTest(this)) {
hp = hp - _root.lightningdmg;
}
if (_root.char.spells.angel.hit.hitTest(this)) {
hp = hp - _root.angeldmg;
}
if (_root.char.spells.satan.hit.hitTest(this)) {
hp = hp - _root.satandmg;
}
}
if (_root.pausee == true) {
walk.gotoAndStop(1);
}
if (_root._currentframe == 6) {
removeMovieClip(this);
}
}
Instance of Symbol 416 MovieClip "thefireball" in Frame 5
onClipEvent (load) {
if (_name != "thefireball") {
if (_root.soundon == true) {
someSound = new Sound();
someSound.attachSound("fireballsound", this);
someSound.start(0, 1);
}
side = _root.dir;
if (side == false) {
_rotation = 0;
}
if (side == true) {
_rotation = 180;
}
_x = _root.char._x;
_y = (_root.char._y - 20);
}
}
onClipEvent (enterFrame) {
if (_name != "thefireball") {
if (_x < 0) {
removeMovieClip(this);
}
if (_x >= 850) {
removeMovieClip(this);
}
if (_y <= 0) {
removeMovieClip(this);
}
if (_y > 500) {
removeMovieClip(this);
}
if (!_root.pausee) {
if (!side) {
_x = (_x - 10);
}
if (side) {
_x = (_x + 10);
}
}
}
}
Instance of Symbol 439 MovieClip "thefirewall" in Frame 5
onClipEvent (load) {
if (_name != "thefirewall") {
side = _root.dir;
if (side == false) {
_x = (_root.char._x - 30);
_y = _root.char._y;
}
if (side == true) {
_x = (_root.char._x + 30);
_y = _root.char._y;
}
if (_root.soundon == true) {
someSound = new Sound();
someSound.attachSound("blowtorch", this);
someSound.start(0, 1);
}
}
}
onClipEvent (enterFrame) {
if (_currentframe >= 120) {
removeMovieClip(this);
}
}
Instance of Symbol 443 MovieClip "thefuel" in Frame 5
onClipEvent (load) {
if (_name != "thefuel") {
if (_root.soundon == true) {
someSound = new Sound();
someSound.attachSound("oil", this);
someSound.start(0, 1);
}
side = _root.dir;
if (side == false) {
_x = (_root.char._x - 20);
_y = _root.char._y;
}
if (side == true) {
_x = (_root.char._x + 20);
_y = _root.char._y;
}
}
}
onClipEvent (enterFrame) {
if ((_root._currentframe == 6) or (_root._currentframe == 7)) {
removeMovieClip(this);
}
if (_root.dep) {
this.swapDepths(this._y * 10);
}
if (_name != "thefuel") {
if (bang._currentframe == 10) {
removeMovieClip(this);
}
i = 0;
while (i < 10) {
if (this.hitTest(_root["newfireball" + i])) {
this.gotoAndStop(2);
}
i++;
}
}
}
Instance of Symbol 446 MovieClip in Frame 5
onClipEvent (mouseDown) {
if (_root.METarea == true) {
_root.meteorr._x = _x;
_root.holder = _y;
_root.METarea = false;
_x = 1000;
_y = 1000;
_root.goo = true;
}
}
onClipEvent (enterFrame) {
if (_root.METarea == true) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
Instance of Symbol 447 MovieClip in Frame 5
onClipEvent (mouseDown) {
if (_root.LIGarea == true) {
_root.lightning._x = _x;
_root.lightning._y = _y;
_root.lightning.gotoAndStop(2);
_root.LIGarea = false;
_x = 1000;
_y = 1000;
_root.go2 = true;
}
}
onClipEvent (enterFrame) {
if (_root.LIGarea == true) {
_x = _root._xmouse;
_y = _root._ymouse;
}
}
Instance of Symbol 462 MovieClip "enemyfive" in Frame 5
onClipEvent (load) {
hp = _root.enemyfivehp;
maxhp = _root.enemyfivehp;
if (_name != "enemyfive") {
_x = 825;
_y = (random(60) + 200);
rightface = _xscale;
}
}
onClipEvent (enterFrame) {
if (_root.pausee == false) {
if (_root.dep) {
this.swapDepths(this._y * 10);
}
if (_name != "enemyfive") {
X = _root.char._x - this._x;
Y = _root.char._y - this._y;
dist = (X * X) + (Y * Y);
if ((dist < 10000) and (_root.char._currentframe != 5)) {
if (_root.char._x > _x) {
_xscale = (-rightface);
} else if (_root.char._x < _x) {
_xscale = rightface;
}
if ((dist > 900) and (_currentframe != 2)) {
ang = Math.atan2(Y, X);
this._x = this._x + (Math.cos(ang) * 0.8);
this._y = this._y + (Math.sin(ang) * 0.8);
}
if (dist < 900) {
if ((_currentframe == 2) or (_currentframe == 1)) {
this.gotoAndStop(2);
_root.castleattack = false;
}
} else if (_root.char._currentframe != 5) {
if (swing._currentframe == 1) {
gotoAndStop (1);
}
}
} else if ((!_root.map.walldown.hitTest(this)) and (!_root.map.wallup.hitTest(this))) {
X = (_root.map.castle._x + 70) - this._x;
Y = (_root.map.castle._y - 50) - this._y;
dist = (X * X) + (Y * Y);
if (dist < 10000) {
if (_root.map.castle._x > _x) {
_xscale = (-rightface);
} else if (_root.map.castle._x < _x) {
_xscale = rightface;
}
if ((dist > 500) and (_currentframe != 2)) {
ang = Math.atan2(Y, X);
this._x = this._x + (Math.cos(ang) * 0.8);
this._y = this._y + (Math.sin(ang) * 0.8);
}
if (dist < 500) {
if ((_currentframe == 2) or (_currentframe == 1)) {
this.gotoAndStop(2);
_root.castleattack = true;
}
} else if (swing._currentframe == 1) {
gotoAndStop (1);
}
} else {
_root.castleattack = false;
this._x = this._x - 0.8;
_xscale = rightface;
if (_currentframe != 3) {
gotoAndStop (1);
}
}
}
}
if (_root.char.rightswing.righthit.hitTest(this)) {
hp = hp - _root.sworddmg;
if (_root.dir == true) {
_x = (_x + 0);
}
if (_root.dir == false) {
_x = (_x - 0);
}
}
Percent = (hp / maxhp) * 100;
hpbar._xscale = Percent;
if (hp < 5) {
this.hpbar._visible = false;
this.gotoAndStop(3);
}
if (blood._currentframe == 9) {
removeMovieClip(this);
}
i = 0;
while (i < 10) {
if (this.hitTest(_root["newfireball" + i])) {
hp = hp - _root.fireballdmg;
}
if (this.hitTest(_root["newfirewall" + i])) {
hp = hp - _root.firewalldmg;
}
if (this.hitTest(_root["newfuel" + i].bang.explodmg)) {
hp = hp - _root.fueldmg;
}
if (this.hitTest(_root["newgodball" + i])) {
hp = hp - _root.godballdmg;
}
i++;
}
if (_root.meteorr.explosion.hit.hitTest(this)) {
hp = hp - _root.meteordmg;
}
if (_root.lightning.explosion.hit.hitTest(this)) {
hp = hp - _root.lightningdmg;
}
if (_root.char.spells.angel.hit.hitTest(this)) {
hp = hp - _root.angeldmg;
}
if (_root.char.spells.satan.hit.hitTest(this)) {
hp = hp - _root.satandmg;
}
}
if (_root._currentframe == 6) {
removeMovieClip(this);
}
}
Instance of Symbol 468 MovieClip "missile" in Frame 5
onClipEvent (load) {
roll = random(2);
plus = random(2);
rebound = false;
if (_name != "missile") {
if (_root.soundon == true) {
someSound = new Sound();
someSound.attachSound("energy", this);
someSound.start(0, 1);
}
speed = 10;
X = _root.char._x - this._x;
Y = (_root.char._y - this._y) - 20;
dist = (X * X) + (Y * Y);
if (_x < _root.char._x) {
position = true;
} else if (_x > _root.char._x) {
position = false;
}
}
}
onClipEvent (enterFrame) {
if (_name != "missile") {
if (!_root.pausee) {
if ((dist < 100000000) and (rebound == false)) {
if ((dist > 400) and (_currentframe != 2)) {
ang = Math.atan2(Y, X);
this._x = this._x + (Math.cos(ang) * speed);
this._y = this._y + (Math.sin(ang) * speed);
}
}
}
if (_x < 0) {
removeMovieClip(this);
}
if (_x > 850) {
removeMovieClip(this);
}
if (_y <= 0) {
removeMovieClip(this);
}
if (_y > 500) {
removeMovieClip(this);
}
if (_root.char.hitTest(this) and (_root.char.spells._currentframe == 3)) {
rebound = true;
}
if (((_root.char.hitTest(this) and (_root.char._currentframe == 3)) and (_root.char.rightswing._currentframe <= 13)) and (_root.char.rightswing._currentframe >= 7)) {
if ((_root.dir == true) and (position == false)) {
rebound = true;
} else if ((_root.dir == false) and (position == true)) {
rebound = true;
} else if (_root.char.hitTest(this)) {
_root.UI.HP.gotoAndStop(_root.UI.HP._currentframe + 1);
gotoAndStop (2);
}
} else if (_root.char.hitTest(this) and (_root.char.spells._currentframe != 3)) {
_root.UI.HP.gotoAndStop(_root.UI.HP._currentframe + 1);
gotoAndStop (2);
}
if ((dist < 100000000) and (rebound == true)) {
if ((dist > 400) and (_currentframe != 2)) {
ang = Math.atan2(Y, X);
if (roll == 1) {
this._x = this._x - (Math.cos(ang + plus) * speed);
this._y = this._y - (Math.sin(ang + plus) * speed);
}
if (roll == 0) {
this._x = this._x - (Math.cos(ang - plus) * speed);
this._y = this._y - (Math.sin(ang - plus) * speed);
}
}
}
}
}
Instance of Symbol 237 MovieClip "meteorr" in Frame 5
onClipEvent (enterFrame) {
if (_root.goo == true) {
_y = (_y + 10);
if (_y >= _root.holder) {
this.gotoAndStop(2);
}
}
}
Instance of Symbol 482 MovieClip "godball" in Frame 5
onClipEvent (load) {
if (_name != "godball") {
if (_root.soundon == true) {
someSound = new Sound();
someSound.attachSound("godball", this);
someSound.start(0, 1);
}
side = _root.dir;
if (side == false) {
_x = (_root.char._x - 70);
_y = (_root.char._y - 20);
}
if (side == true) {
_x = (_root.char._x + 70);
_y = (_root.char._y - 20);
}
}
}
onClipEvent (enterFrame) {
if (_name != "godball") {
if (side == false) {
_x = (_x - 5);
}
if (side == true) {
_x = (_x + 5);
}
}
if (_x < 0) {
removeMovieClip(this);
}
if (_x > 900) {
removeMovieClip(this);
}
if (_y < 0) {
removeMovieClip(this);
}
if (_y > 500) {
removeMovieClip(this);
}
}
Instance of Symbol 498 MovieClip "enemysix" in Frame 5
onClipEvent (load) {
hp = _root.enemysixhp;
maxhp = _root.enemysixhp;
if (_name != "enemysix") {
_x = 825;
_y = (random(60) + 200);
rightface = _xscale;
}
}
onClipEvent (enterFrame) {
if (_root.pausee == false) {
if (_root.dep) {
this.swapDepths(this._y * 10);
}
if (_name != "enemysix") {
X = _root.char._x - this._x;
Y = _root.char._y - this._y;
dist = (X * X) + (Y * Y);
if ((dist < 10000) and (_root.char._currentframe != 5)) {
if (_root.char._x > _x) {
_xscale = (-rightface);
} else if (_root.char._x < _x) {
_xscale = rightface;
}
if ((dist > 500) and (_currentframe != 2)) {
ang = Math.atan2(Y, X);
this._x = this._x + (Math.cos(ang) * 1.1);
this._y = this._y + (Math.sin(ang) * 1.1);
}
if (dist < 500) {
if ((_currentframe == 2) or (_currentframe == 1)) {
this.gotoAndStop(2);
_root.castleattack = false;
}
} else if (_root.char._currentframe != 5) {
if (swing._currentframe == 1) {
gotoAndStop (1);
}
}
} else if ((!_root.map.walldown.hitTest(this)) and (!_root.map.wallup.hitTest(this))) {
X = (_root.map.castle._x + 70) - this._x;
Y = (_root.map.castle._y - 50) - this._y;
dist = (X * X) + (Y * Y);
if (dist < 10000) {
if (_root.map.castle._x > _x) {
_xscale = (-rightface);
} else if (_root.map.castle._x < _x) {
_xscale = rightface;
}
if ((dist > 500) and (_currentframe != 2)) {
ang = Math.atan2(Y, X);
this._x = this._x + (Math.cos(ang) * 1.1);
this._y = this._y + (Math.sin(ang) * 1.1);
}
if (dist < 500) {
if ((_currentframe == 2) or (_currentframe == 1)) {
this.gotoAndStop(2);
_root.castleattack = true;
}
} else if (swing._currentframe == 1) {
gotoAndStop (1);
}
} else {
_root.castleattack = false;
this._x = this._x - 1.1;
_xscale = rightface;
if (_currentframe != 3) {
gotoAndStop (1);
}
}
}
}
if (_root.char.rightswing.righthit.hitTest(this)) {
hp = hp - _root.sworddmg;
if (_root.dir == true) {
_x = (_x + 0);
}
if (_root.dir == false) {
_x = (_x - 0);
}
}
Percent = (hp / maxhp) * 100;
hpbar._xscale = Percent;
if (hp < 5) {
this.hpbar._visible = false;
this.gotoAndStop(3);
}
if (blood._currentframe == 9) {
removeMovieClip(this);
}
i = 0;
while (i < 10) {
if (this.hitTest(_root["newfireball" + i])) {
hp = hp - _root.fireballdmg;
}
if (this.hitTest(_root["newfirewall" + i])) {
hp = hp - _root.firewalldmg;
}
if (this.hitTest(_root["newfuel" + i].bang.explodmg)) {
hp = hp - _root.fueldmg;
}
if (this.hitTest(_root["newgodball" + i])) {
hp = hp - _root.godballdmg;
}
i++;
}
if (_root.meteorr.explosion.hit.hitTest(this)) {
hp = hp - _root.meteordmg;
}
if (_root.lightning.explosion.hit.hitTest(this)) {
hp = hp - _root.lightningdmg;
}
if (_root.char.spells.angel.hit.hitTest(this)) {
hp = hp - _root.angeldmg;
}
if (_root.char.spells.satan.hit.hitTest(this)) {
hp = hp - _root.satandmg;
}
}
if (_root._currentframe == 6) {
removeMovieClip(this);
}
}
Instance of Symbol 514 MovieClip "enemyseven" in Frame 5
onClipEvent (load) {
hp = _root.enemysevenhp;
maxhp = _root.enemysevenhp;
if (_name != "enemyseven") {
_x = 825;
_y = (random(60) + 200);
rightface = _xscale;
}
}
onClipEvent (enterFrame) {
if (_root.pausee == false) {
if (_root.dep) {
this.swapDepths(this._y * 10);
}
if (_name != "enemyseven") {
X = _root.char._x - this._x;
Y = _root.char._y - this._y;
dist = (X * X) + (Y * Y);
if ((dist < 40000) and (_root.char._currentframe != 5)) {
if (_root.char._x > _x) {
_xscale = (-rightface);
} else if (_root.char._x < _x) {
_xscale = rightface;
}
if ((dist < 10) and (_currentframe != 2)) {
ang = Math.atan2(Y, X);
this._x = this._x + (Math.cos(ang) * 1);
this._y = this._y + (Math.sin(ang) * 1);
}
if (dist > 100) {
if ((_currentframe == 2) or (_currentframe == 1)) {
this.gotoAndStop(2);
}
} else if (_root.char._currentframe != 5) {
if (swing._currentframe == 1) {
gotoAndStop (1);
}
}
} else if ((!_root.map.walldown.hitTest(this)) and (!_root.map.wallup.hitTest(this))) {
this._x = this._x - 1;
_xscale = rightface;
if (_currentframe != 3) {
gotoAndStop (1);
}
}
if (_root.map.walldown.hitTest(this)) {
_y = (_y - 3);
}
if (_root.map.wallup.hitTest(this)) {
_y = (_y + 3);
}
}
if (_root.char.rightswing.righthit.hitTest(this)) {
hp = hp - 40;
if (_root.dir == true) {
_x = (_x + 3);
}
if (_root.dir == false) {
_x = (_x - 3);
}
}
Percent = (hp / maxhp) * 100;
hpbar._xscale = Percent;
if (hp < 5) {
this.hpbar._visible = false;
this.gotoAndStop(3);
}
if (blood._currentframe == 9) {
removeMovieClip(this);
}
i = 0;
while (i < 10) {
if (this.hitTest(_root["newfireball" + i])) {
hp = hp - 15;
}
if (this.hitTest(_root["newfirewall" + i])) {
hp = hp - 20;
}
if (this.hitTest(_root["newfuel" + i].bang.explodmg)) {
hp = hp - 80;
}
if (this.hitTest(_root["newgodball" + i])) {
hp = hp - 1000;
}
i++;
}
if (_root.meteorr.explosion.hit.hitTest(this)) {
hp = hp - 100;
}
if (_root.lightning.explosion.hit.hitTest(this)) {
hp = hp - 100;
}
if (_root.char.spells.angel.hit.hitTest(this)) {
hp = hp - 500;
}
if (_root.char.spells.satan.hit.hitTest(this)) {
hp = hp - 1000;
}
if (_x < 250) {
_x = 250;
this.stand.gotoAndStop(1);
_xscale = (-rightface);
}
}
if (_root._currentframe == 6) {
removeMovieClip(this);
}
}
Instance of Symbol 468 MovieClip "missile2" in Frame 5
onClipEvent (load) {
roll = random(2);
plus = random(2);
rebound = false;
if (_name != "missile2") {
if (_root.soundon == true) {
someSound = new Sound();
someSound.attachSound("energy", this);
someSound.start(0, 1);
}
speed = 8;
X = _root.char._x - this._x;
Y = (_root.char._y - this._y) - 20;
dist = (X * X) + (Y * Y);
if (_x < _root.char._x) {
position = true;
} else if (_x > _root.char._x) {
position = false;
}
}
}
onClipEvent (enterFrame) {
if (_name != "missile2") {
if (!_root.pausee) {
if ((dist < 100000000) and (rebound == false)) {
if ((dist > 400) and (_currentframe != 2)) {
ang = Math.atan2(Y, X);
this._x = this._x + (Math.cos(ang) * speed);
this._y = this._y + (Math.sin(ang) * speed);
}
}
}
if (_x < 0) {
removeMovieClip(this);
}
if (_x > 850) {
removeMovieClip(this);
}
if (_y <= 0) {
removeMovieClip(this);
}
if (_y > 500) {
removeMovieClip(this);
}
if (_root.char.hitTest(this) and (_root.char.spells._currentframe == 3)) {
rebound = true;
}
if (((_root.char.hitTest(this) and (_root.char._currentframe == 3)) and (_root.char.rightswing._currentframe <= 13)) and (_root.char.rightswing._currentframe >= 7)) {
if ((_root.dir == true) and (position == false)) {
rebound = true;
} else if ((_root.dir == false) and (position == true)) {
rebound = true;
} else if (_root.char.hitTest(this)) {
gotoAndStop (2);
_root.UI.HP.gotoAndStop(_root.UI.HP._currentframe + 1);
_root.char.gotoAndStop(4);
}
} else if (_root.char.hitTest(this) and (_root.char.spells._currentframe != 3)) {
gotoAndStop (2);
_root.UI.HP.gotoAndStop(_root.UI.HP._currentframe + 1);
_root.char.gotoAndStop(4);
}
if ((dist < 100000000) and (rebound == true)) {
if ((dist > 400) and (_currentframe != 2)) {
ang = Math.atan2(Y, X);
if (roll == 1) {
this._x = this._x - (Math.cos(ang + plus) * speed);
this._y = this._y - (Math.sin(ang + plus) * speed);
}
if (roll == 0) {
this._x = this._x - (Math.cos(ang - plus) * speed);
this._y = this._y - (Math.sin(ang - plus) * speed);
}
}
}
}
}
Instance of Symbol 537 MovieClip "enemyeight" in Frame 5
onClipEvent (load) {
hp = _root.enemyeighthp;
maxhp = _root.enemyeighthp;
if (_name != "enemyeight") {
_x = 825;
_y = (random(60) + 200);
rightface = _xscale;
}
}
onClipEvent (enterFrame) {
if (_root.pausee == false) {
if (_root.dep) {
this.swapDepths(this._y * 10);
}
if (_name != "enemyeight") {
X = _root.char._x - this._x;
Y = _root.char._y - this._y;
dist = (X * X) + (Y * Y);
if ((dist < 10000) and (_root.char._currentframe != 5)) {
if (_root.char._x > _x) {
_xscale = (-rightface);
} else if (_root.char._x < _x) {
_xscale = rightface;
}
if ((dist > 900) and (_currentframe != 2)) {
ang = Math.atan2(Y, X);
this._x = this._x + (Math.cos(ang) * 0.8);
this._y = this._y + (Math.sin(ang) * 0.8);
}
if (dist < 900) {
if ((_currentframe == 2) or (_currentframe == 1)) {
this.gotoAndStop(2);
_root.castleattack = false;
}
} else if (_root.char._currentframe != 5) {
if (swing._currentframe == 1) {
gotoAndStop (1);
}
}
} else if ((!_root.map.walldown.hitTest(this)) and (!_root.map.wallup.hitTest(this))) {
X = (_root.map.castle._x + 70) - this._x;
Y = (_root.map.castle._y - 50) - this._y;
dist = (X * X) + (Y * Y);
if (dist < 10000) {
if (_root.map.castle._x > _x) {
_xscale = (-rightface);
} else if (_root.map.castle._x < _x) {
_xscale = rightface;
}
if ((dist > 500) and (_currentframe != 2)) {
ang = Math.atan2(Y, X);
this._x = this._x + (Math.cos(ang) * 0.8);
this._y = this._y + (Math.sin(ang) * 0.8);
}
if (dist < 500) {
if ((_currentframe == 2) or (_currentframe == 1)) {
this.gotoAndStop(2);
_root.castleattack = true;
}
} else if (swing._currentframe == 1) {
gotoAndStop (1);
}
} else {
_root.castleattack = false;
this._x = this._x - 0.8;
_xscale = rightface;
if (_currentframe != 3) {
gotoAndStop (1);
}
}
}
}
if (_root.char.rightswing.righthit.hitTest(this)) {
hp = hp - _root.sworddmg;
if (_root.dir == true) {
_x = (_x + 0);
}
if (_root.dir == false) {
_x = (_x - 0);
}
}
Percent = (hp / maxhp) * 100;
hpbar._xscale = Percent;
if (hp < 5) {
this.hpbar._visible = false;
this.gotoAndStop(3);
}
if (blood._currentframe == 9) {
removeMovieClip(this);
}
i = 0;
while (i < 10) {
if (this.hitTest(_root["newfireball" + i])) {
hp = hp - _root.fireballdmg;
}
if (this.hitTest(_root["newfirewall" + i])) {
hp = hp - _root.firewalldmg;
}
if (this.hitTest(_root["newfuel" + i].bang.explodmg)) {
hp = hp - _root.fueldmg;
}
if (this.hitTest(_root["newgodball" + i])) {
hp = hp - _root.godballdmg;
}
i++;
}
if (_root.meteorr.explosion.hit.hitTest(this)) {
hp = hp - _root.meteordmg;
}
if (_root.lightning.explosion.hit.hitTest(this)) {
hp = hp - _root.lightningdmg;
}
if (_root.char.spells.angel.hit.hitTest(this)) {
hp = hp - _root.angeldmg;
}
if (_root.char.spells.satan.hit.hitTest(this)) {
hp = hp - _root.satandmg;
}
}
if (_root._currentframe == 6) {
removeMovieClip(this);
}
}
Instance of Symbol 554 MovieClip "enemynine" in Frame 5
onClipEvent (load) {
hp = _root.enemyninehp;
maxhp = _root.enemyninehp;
if (_name != "enemynine") {
_x = 825;
_y = (random(60) + 200);
rightface = _xscale;
}
}
onClipEvent (enterFrame) {
if (_root.pausee == false) {
if (_root.dep) {
this.swapDepths(this._y * 10);
}
if (_name != "enemynine") {
X = _root.char._x - this._x;
Y = _root.char._y - this._y;
dist = (X * X) + (Y * Y);
if ((dist < 10000) and (_root.char._currentframe != 5)) {
if (_root.char._x > _x) {
_xscale = (-rightface);
} else if (_root.char._x < _x) {
_xscale = rightface;
}
if ((dist > 500) and (_currentframe != 2)) {
ang = Math.atan2(Y, X);
this._x = this._x + (Math.cos(ang) * 1.5);
this._y = this._y + (Math.sin(ang) * 1.5);
}
if (dist < 500) {
if ((_currentframe == 2) or (_currentframe == 1)) {
this.gotoAndStop(2);
_root.castleattack = false;
}
} else if (_root.char._currentframe != 5) {
if (swing._currentframe == 1) {
gotoAndStop (1);
}
}
} else if ((!_root.map.walldown.hitTest(this)) and (!_root.map.wallup.hitTest(this))) {
X = (_root.map.castle._x + 70) - this._x;
Y = (_root.map.castle._y - 50) - this._y;
dist = (X * X) + (Y * Y);
if (dist < 10000) {
if (_root.map.castle._x > _x) {
_xscale = (-rightface);
} else if (_root.map.castle._x < _x) {
_xscale = rightface;
}
if ((dist > 500) and (_currentframe != 2)) {
ang = Math.atan2(Y, X);
this._x = this._x + (Math.cos(ang) * 1.5);
this._y = this._y + (Math.sin(ang) * 1.5);
}
if (dist < 500) {
if ((_currentframe == 2) or (_currentframe == 1)) {
this.gotoAndStop(2);
_root.castleattack = true;
}
} else if (swing._currentframe == 1) {
gotoAndStop (1);
}
} else {
_root.castleattack = false;
this._x = this._x - 1.5;
_xscale = rightface;
if (_currentframe != 3) {
gotoAndStop (1);
}
}
}
}
if (_root.char.rightswing.righthit.hitTest(this)) {
hp = hp - _root.sworddmg;
if (_root.dir == true) {
_x = (_x + 2);
}
if (_root.dir == false) {
_x = (_x - 2);
}
}
Percent = (hp / maxhp) * 100;
hpbar._xscale = Percent;
if (hp < 5) {
this.hpbar._visible = false;
this.gotoAndStop(3);
}
if (blood._currentframe == 9) {
removeMovieClip(this);
}
i = 0;
while (i < 10) {
if (this.hitTest(_root["newfireball" + i])) {
hp = hp - _root.fireballdmg;
}
if (this.hitTest(_root["newfirewall" + i])) {
hp = hp - _root.firewalldmg;
}
if (this.hitTest(_root["newfuel" + i].bang.explodmg)) {
hp = hp - _root.fueldmg;
}
if (this.hitTest(_root["newgodball" + i])) {
hp = hp - _root.godballdmg;
}
i++;
}
if (_root.meteorr.explosion.hit.hitTest(this)) {
hp = hp - _root.meteordmg;
}
if (_root.lightning.explosion.hit.hitTest(this)) {
hp = hp - _root.lightningdmg;
}
if (_root.char.spells.angel.hit.hitTest(this)) {
hp = hp - _root.angeldmg;
}
if (_root.char.spells.satan.hit.hitTest(this)) {
hp = hp - _root.satandmg;
}
}
if (_root._currentframe == 6) {
removeMovieClip(this);
}
}
Instance of Symbol 586 MovieClip "enemythirteen" in Frame 5
onClipEvent (load) {
hp = _root.enemythirteenhp;
maxhp = _root.enemythirteenhp;
if (_name != "enemythirteen") {
_x = 825;
_y = (random(60) + 200);
rightface = _xscale;
}
}
onClipEvent (enterFrame) {
if (_root.pausee == false) {
if (_root.dep) {
this.swapDepths(this._y * 10);
}
if (_name != "enemythirteen") {
X = _root.char._x - this._x;
Y = _root.char._y - this._y;
dist = (X * X) + (Y * Y);
if ((dist < 10000) and (_root.char._currentframe != 5)) {
if (_root.char._x > _x) {
_xscale = (-rightface);
} else if (_root.char._x < _x) {
_xscale = rightface;
}
if ((dist > 900) and (_currentframe != 2)) {
ang = Math.atan2(Y, X);
this._x = this._x + (Math.cos(ang) * 0.8);
this._y = this._y + (Math.sin(ang) * 0.8);
}
if (dist < 900) {
if ((_currentframe == 2) or (_currentframe == 1)) {
this.gotoAndStop(2);
_root.castleattack = false;
}
} else if (_root.char._currentframe != 5) {
if (swing._currentframe == 1) {
gotoAndStop (1);
}
}
} else if ((!_root.map.walldown.hitTest(this)) and (!_root.map.wallup.hitTest(this))) {
X = (_root.map.castle._x + 70) - this._x;
Y = (_root.map.castle._y - 50) - this._y;
dist = (X * X) + (Y * Y);
if (dist < 10000) {
if (_root.map.castle._x > _x) {
_xscale = (-rightface);
} else if (_root.map.castle._x < _x) {
_xscale = rightface;
}
if ((dist > 500) and (_currentframe != 2)) {
ang = Math.atan2(Y, X);
this._x = this._x + (Math.cos(ang) * 0.8);
this._y = this._y + (Math.sin(ang) * 0.8);
}
if (dist < 500) {
if ((_currentframe == 2) or (_currentframe == 1)) {
this.gotoAndStop(2);
_root.castleattack = true;
}
} else if (swing._currentframe == 1) {
gotoAndStop (1);
}
} else {
_root.castleattack = false;
this._x = this._x - 0.8;
_xscale = rightface;
if (_currentframe != 3) {
gotoAndStop (1);
}
}
}
}
if (_root.char.rightswing.righthit.hitTest(this)) {
hp = hp - _root.sworddmg;
if (_root.dir == true) {
_x = (_x + 0);
}
if (_root.dir == false) {
_x = (_x - 0);
}
}
Percent = (hp / maxhp) * 100;
hpbar._xscale = Percent;
if (hp < 5) {
this.hpbar._visible = false;
this.gotoAndStop(3);
}
if (blood._currentframe == 9) {
removeMovieClip(this);
}
i = 0;
while (i < 10) {
if (this.hitTest(_root["newfireball" + i])) {
hp = hp - _root.fireballdmg;
}
if (this.hitTest(_root["newfirewall" + i])) {
hp = hp - _root.firewalldmg;
}
if (this.hitTest(_root["newfuel" + i].bang.explodmg)) {
hp = hp - _root.fueldmg;
}
if (this.hitTest(_root["newgodball" + i])) {
hp = hp - _root.godballdmg;
}
i++;
}
if (_root.meteorr.explosion.hit.hitTest(this)) {
hp = hp - _root.meteordmg;
}
if (_root.lightning.explosion.hit.hitTest(this)) {
hp = hp - _root.lightningdmg;
}
if (_root.char.spells.angel.hit.hitTest(this)) {
hp = hp - _root.angeldmg;
}
if (_root.char.spells.satan.hit.hitTest(this)) {
hp = hp - _root.satandmg;
}
}
if (_root._currentframe == 6) {
removeMovieClip(this);
}
}
Instance of Symbol 622 MovieClip "enemyten" in Frame 5
onClipEvent (load) {
hp = _root.enemytenhp;
maxhp = _root.enemytenhp;
if (_name != "enemyten") {
_x = 825;
_y = (random(60) + 200);
rightface = _xscale;
}
}
onClipEvent (enterFrame) {
if (_root.pausee == false) {
if (_root.dep) {
this.swapDepths(this._y * 10);
}
if (_name != "enemyten") {
X = _root.char._x - this._x;
Y = _root.char._y - this._y;
dist = (X * X) + (Y * Y);
if ((dist < 10000) and (_root.char._currentframe != 5)) {
if (_root.char._x > _x) {
_xscale = (-rightface);
} else if (_root.char._x < _x) {
_xscale = rightface;
}
if ((dist > 900) and (_currentframe != 2)) {
ang = Math.atan2(Y, X);
this._x = this._x + (Math.cos(ang) * 0.8);
this._y = this._y + (Math.sin(ang) * 0.8);
}
if (dist < 900) {
if ((_currentframe == 2) or (_currentframe == 1)) {
this.gotoAndStop(2);
_root.castleattack = false;
}
} else if (_root.char._currentframe != 5) {
if (swing._currentframe == 1) {
gotoAndStop (1);
}
}
} else if ((!_root.map.walldown.hitTest(this)) and (!_root.map.wallup.hitTest(this))) {
X = (_root.map.castle._x + 70) - this._x;
Y = (_root.map.castle._y - 50) - this._y;
dist = (X * X) + (Y * Y);
if (dist < 10000) {
if (_root.map.castle._x > _x) {
_xscale = (-rightface);
} else if (_root.map.castle._x < _x) {
_xscale = rightface;
}
if ((dist > 500) and (_currentframe != 2)) {
ang = Math.atan2(Y, X);
this._x = this._x + (Math.cos(ang) * 0.8);
this._y = this._y + (Math.sin(ang) * 0.8);
}
if (dist < 500) {
if ((_currentframe == 2) or (_currentframe == 1)) {
this.gotoAndStop(2);
_root.castleattack = true;
}
} else if (swing._currentframe == 1) {
gotoAndStop (1);
}
} else {
_root.castleattack = false;
this._x = this._x - 0.8;
_xscale = rightface;
if (_currentframe != 3) {
gotoAndStop (1);
}
}
}
}
if (_root.char.rightswing.righthit.hitTest(this)) {
hp = hp - _root.sworddmg;
if (_root.dir == true) {
_x = (_x + 0);
}
if (_root.dir == false) {
_x = (_x - 0);
}
}
Percent = (hp / maxhp) * 100;
hpbar._xscale = Percent;
if (hp < 5) {
this.hpbar._visible = false;
this.gotoAndStop(3);
}
if (blood._currentframe == 9) {
removeMovieClip(this);
}
i = 0;
while (i < 10) {
if (this.hitTest(_root["newfireball" + i])) {
hp = hp - _root.fireballdmg;
}
if (this.hitTest(_root["newfirewall" + i])) {
hp = hp - _root.firewalldmg;
}
if (this.hitTest(_root["newfuel" + i].bang.explodmg)) {
hp = hp - _root.fueldmg;
}
if (this.hitTest(_root["newgodball" + i])) {
hp = hp - _root.godballdmg;
}
i++;
}
if (_root.meteorr.explosion.hit.hitTest(this)) {
hp = hp - _root.meteordmg;
}
if (_root.lightning.explosion.hit.hitTest(this)) {
hp = hp - _root.lightningdmg;
}
if (_root.char.spells.angel.hit.hitTest(this)) {
hp = hp - _root.angeldmg;
}
if (_root.char.spells.satan.hit.hitTest(this)) {
hp = hp - _root.satandmg;
}
}
if (_root._currentframe == 6) {
removeMovieClip(this);
}
}
Instance of Symbol 650 MovieClip "enemyeleven" in Frame 5
onClipEvent (load) {
hp = _root.enemyelevenhp;
maxhp = _root.enemyelevenhp;
if (_name != "enemyeleven") {
_x = 825;
_y = (random(60) + 200);
rightface = _xscale;
}
}
onClipEvent (enterFrame) {
if (_root.pausee == false) {
if (_root.dep) {
this.swapDepths(this._y * 10);
}
if (_name != "enemyeleven") {
X = _root.char._x - this._x;
Y = _root.char._y - this._y;
dist = (X * X) + (Y * Y);
if ((dist < 10000) and (_root.char._currentframe != 5)) {
if (_root.char._x > _x) {
_xscale = (-rightface);
} else if (_root.char._x < _x) {
_xscale = rightface;
}
if ((dist > 500) and (_currentframe != 2)) {
ang = Math.atan2(Y, X);
this._x = this._x + (Math.cos(ang) * 1);
this._y = this._y + (Math.sin(ang) * 1);
}
if (dist < 500) {
if ((_currentframe == 2) or (_currentframe == 1)) {
this.gotoAndStop(2);
_root.castleattack = false;
}
} else if (_root.char._currentframe != 5) {
if (swing._currentframe == 1) {
gotoAndStop (1);
}
}
} else if ((!_root.map.walldown.hitTest(this)) and (!_root.map.wallup.hitTest(this))) {
X = (_root.map.castle._x + 70) - this._x;
Y = (_root.map.castle._y - 50) - this._y;
dist = (X * X) + (Y * Y);
if (dist < 10000) {
if (_root.map.castle._x > _x) {
_xscale = (-rightface);
} else if (_root.map.castle._x < _x) {
_xscale = rightface;
}
if ((dist > 500) and (_currentframe != 2)) {
ang = Math.atan2(Y, X);
this._x = this._x + (Math.cos(ang) * 1);
this._y = this._y + (Math.sin(ang) * 1);
}
if (dist < 500) {
if ((_currentframe == 2) or (_currentframe == 1)) {
this.gotoAndStop(2);
_root.castleattack = true;
}
} else if (swing._currentframe == 1) {
gotoAndStop (1);
}
} else {
_root.castleattack = false;
this._x = this._x - 1;
_xscale = rightface;
if (_currentframe != 3) {
gotoAndStop (1);
}
}
}
}
if (_root.char.rightswing.righthit.hitTest(this)) {
hp = hp - _root.sworddmg;
if (_root.dir == true) {
_x = (_x + 2);
}
if (_root.dir == false) {
_x = (_x - 2);
}
}
Percent = (hp / maxhp) * 100;
hpbar._xscale = Percent;
if (hp < 5) {
this.hpbar._visible = false;
this.gotoAndStop(3);
}
if (blood._currentframe == 9) {
removeMovieClip(this);
}
i = 0;
while (i < 10) {
if (this.hitTest(_root["newfireball" + i])) {
hp = hp - _root.fireballdmg;
}
if (this.hitTest(_root["newfirewall" + i])) {
hp = hp - _root.firewalldmg;
}
if (this.hitTest(_root["newfuel" + i].bang.explodmg)) {
hp = hp - _root.fueldmg;
}
if (this.hitTest(_root["newgodball" + i])) {
hp = hp - _root.godballdmg;
}
i++;
}
if (_root.meteorr.explosion.hit.hitTest(this)) {
hp = hp - _root.meteordmg;
}
if (_root.lightning.explosion.hit.hitTest(this)) {
hp = hp - _root.lightningdmg;
}
if (_root.char.spells.angel.hit.hitTest(this)) {
hp = hp - _root.angeldmg;
}
if (_root.char.spells.satan.hit.hitTest(this)) {
hp = hp - _root.satandmg;
}
}
if (_root._currentframe == 6) {
removeMovieClip(this);
}
}
Instance of Symbol 678 MovieClip "enemytwelve" in Frame 5
onClipEvent (load) {
hp = _root.enemytwelvehp;
maxhp = _root.enemytwelvehp;
if (_name != "enemytwelve") {
_x = 825;
_y = (random(60) + 200);
rightface = _xscale;
}
}
onClipEvent (enterFrame) {
if (_root.pausee == false) {
if (_root.dep) {
this.swapDepths(this._y * 10);
}
if (_name != "enemytwelve") {
X = _root.char._x - this._x;
Y = _root.char._y - this._y;
dist = (X * X) + (Y * Y);
if ((dist < 10000) and (_root.char._currentframe != 5)) {
if (_root.char._x > _x) {
_xscale = (-rightface);
} else if (_root.char._x < _x) {
_xscale = rightface;
}
if ((dist > 500) and (_currentframe != 2)) {
ang = Math.atan2(Y, X);
this._x = this._x + (Math.cos(ang) * 1.2);
this._y = this._y + (Math.sin(ang) * 1.2);
}
if (dist < 500) {
if ((_currentframe == 2) or (_currentframe == 1)) {
this.gotoAndStop(2);
_root.castleattack = false;
}
} else if (_root.char._currentframe != 5) {
if (swing._currentframe == 1) {
gotoAndStop (1);
}
}
} else if ((!_root.map.walldown.hitTest(this)) and (!_root.map.wallup.hitTest(this))) {
X = (_root.map.castle._x + 70) - this._x;
Y = (_root.map.castle._y - 50) - this._y;
dist = (X * X) + (Y * Y);
if (dist < 10000) {
if (_root.map.castle._x > _x) {
_xscale = (-rightface);
} else if (_root.map.castle._x < _x) {
_xscale = rightface;
}
if ((dist > 500) and (_currentframe != 2)) {
ang = Math.atan2(Y, X);
this._x = this._x + (Math.cos(ang) * 1.2);
this._y = this._y + (Math.sin(ang) * 1.2);
}
if (dist < 500) {
if ((_currentframe == 2) or (_currentframe == 1)) {
this.gotoAndStop(2);
_root.castleattack = true;
}
} else if (swing._currentframe == 1) {
gotoAndStop (1);
}
} else {
_root.castleattack = false;
this._x = this._x - 1.2;
_xscale = rightface;
if (_currentframe != 3) {
gotoAndStop (1);
}
}
}
}
if (_root.char.rightswing.righthit.hitTest(this)) {
hp = hp - _root.sworddmg;
if (_root.dir == true) {
_x = (_x + 1);
}
if (_root.dir == false) {
_x = (_x - 1);
}
}
Percent = (hp / maxhp) * 100;
hpbar._xscale = Percent;
if (hp < 5) {
this.hpbar._visible = false;
this.gotoAndStop(3);
}
if (blood._currentframe == 9) {
removeMovieClip(this);
}
i = 0;
while (i < 10) {
if (this.hitTest(_root["newfireball" + i])) {
hp = hp - _root.fireballdmg;
}
if (this.hitTest(_root["newfirewall" + i])) {
hp = hp - _root.firewalldmg;
}
if (this.hitTest(_root["newfuel" + i].bang.explodmg)) {
hp = hp - _root.fueldmg;
}
if (this.hitTest(_root["newgodball" + i])) {
hp = hp - _root.godballdmg;
}
i++;
}
if (_root.meteorr.explosion.hit.hitTest(this)) {
hp = hp - _root.meteordmg;
}
if (_root.lightning.explosion.hit.hitTest(this)) {
hp = hp - _root.lightningdmg;
}
if (_root.char.spells.angel.hit.hitTest(this)) {
hp = hp - _root.angeldmg;
}
if (_root.char.spells.satan.hit.hitTest(this)) {
hp = hp - _root.satandmg;
}
}
if (_root._currentframe == 6) {
removeMovieClip(this);
}
}
Instance of Symbol 686 MovieClip "squiggly" in Frame 5
on (press) {
if ((((_root.squiggly._currentframe == 2) and (_root.squiggly.SChide._currentframe == 1)) and (_root.char._currentframe != 4)) and (_root.char._currentframe != 5)) {
duplicateMovieClip (_root.thefireball, "newfireball" + _root.s, _root.getNextHighestDepth());
_root.squiggly.SChide.squigglycount = 15;
_root.squiggly.SChide.gotoAndStop(2);
_root.s = _root.s + 1;
}
}
Instance of Symbol 692 MovieClip "one" in Frame 5
on (press) {
if (((((_root.one._currentframe == 2) and (_root.one.SChide._currentframe == 1)) and (_root.char.spells._currentframe == 1)) and (_root.char._currentframe != 4)) and (_root.char._currentframe != 5)) {
_root.char.spells.gotoAndStop(2);
_root.one.SChide.onecount = 20;
_root.one.SChide.gotoAndStop(2);
_root.UI.HP.gotoAndStop(_root.UI.HP._currentframe - 10);
}
}
Instance of Symbol 698 MovieClip "two" in Frame 5
on (press) {
if ((((_root.two._currentframe == 2) and (_root.two.SChide._currentframe == 1)) and (_root.char._currentframe != 4)) and (_root.char._currentframe != 5)) {
duplicateMovieClip (_root.thefirewall, "newfirewall" + _root.i, _root.getNextHighestDepth());
_root.two.SChide.twocount = 20;
_root.two.SChide.gotoAndStop(2);
_root.i = _root.i + 1;
}
}
Instance of Symbol 706 MovieClip "three" in Frame 5
on (press) {
if ((((_root.three._currentframe == 2) and (_root.three.SChide._currentframe == 1)) and (_root.char._currentframe != 4)) and (_root.char._currentframe != 5)) {
duplicateMovieClip (_root.thefuel, "newthefuel" + _root.b, _root.getNextHighestDepth());
_root.three.SChide.threecount = 20;
_root.three.SChide.gotoAndStop(2);
_root.b = _root.b + 1;
}
}
Instance of Symbol 711 MovieClip "four" in Frame 5
on (press) {
if (((((_root.four._currentframe == 2) and (_root.four.SChide._currentframe == 1)) and (_root.char.spells._currentframe == 1)) and (_root.char._currentframe != 4)) and (_root.char._currentframe != 5)) {
_root.char.spells.gotoAndStop(3);
_root.four.SChide.fourcount = 30;
_root.four.SChide.gotoAndStop(2);
}
}
Instance of Symbol 717 MovieClip "five" in Frame 5
on (press) {
if (((((_root.five._currentframe == 2) and (_root.five.SChide._currentframe == 1)) and (_root.char.spells._currentframe == 1)) and (_root.char._currentframe != 4)) and (_root.char._currentframe != 5)) {
_root.char.spells.gotoAndStop(4);
_root.five.SChide.fivecount = 40;
_root.five.SChide.gotoAndStop(2);
_root.UI.HP.gotoAndStop(_root.UI.HP._currentframe - 20);
}
}
Instance of Symbol 726 MovieClip "six" in Frame 5
on (press) {
if ((((_root.six._currentframe == 2) and (_root.six.SChide._currentframe == 1)) and (_root.char._currentframe != 4)) and (_root.char._currentframe != 5)) {
_root.METarea = true;
_root.six.SChide.sixcount = 35;
_root.six.SChide.gotoAndStop(2);
}
}
Instance of Symbol 731 MovieClip "seven" in Frame 5
on (press) {
if (((((_root.seven._currentframe == 2) and (_root.seven.SChide._currentframe == 1)) and (_root.char.spells._currentframe == 1)) and (_root.char._currentframe != 4)) and (_root.char._currentframe != 5)) {
_root.seven.SChide.sevencount = 35;
_root.seven.SChide.gotoAndStop(2);
_root.char.spells.gotoAndStop(5);
}
}
Instance of Symbol 736 MovieClip "eight" in Frame 5
on (press) {
if ((((_root.eight._currentframe == 2) and (_root.eight.SChide._currentframe == 1)) and (_root.char._currentframe != 4)) and (_root.char._currentframe != 5)) {
_root.LIGarea = true;
_root.eight.SChide.eightcount = 35;
_root.eight.SChide.gotoAndStop(2);
}
}
Instance of Symbol 742 MovieClip "nine" in Frame 5
on (press) {
if (((((_root.nine._currentframe == 2) and (_root.nine.SChide._currentframe == 1)) and (_root.char.spells._currentframe == 1)) and (_root.char._currentframe != 4)) and (_root.char._currentframe != 5)) {
_root.nine.SChide.ninecount = 50;
_root.nine.SChide.gotoAndStop(2);
_root.char.spells.gotoAndStop(6);
}
}
Instance of Symbol 747 MovieClip "zero" in Frame 5
on (press) {
if ((((_root.zero._currentframe == 2) and (_root.zero.SChide._currentframe == 1)) and (_root.char._currentframe != 4)) and (_root.char._currentframe != 5)) {
_root.zero.SChide.gotoAndStop(2);
_root.zero.SChide.zerocount = 50;
duplicateMovieClip (_root.godball, "newgodball" + _root.i, _root.getNextHighestDepth());
_root.i = _root.i + 1;
}
}
Instance of Symbol 796 MovieClip "techtree" in Frame 5
onClipEvent (load) {
helddown = false;
_root.techtree._visible = false;
keepup = 0;
}
onClipEvent (enterFrame) {
keepup = _root.getNextHighestDepth();
this.swapDepths(keepup);
if (getDepth() > 100000) {
this.swapDepths(2000);
}
if ((!Key.isDown(83)) and (helddown == true)) {
helddown = false;
}
if (Key.isDown(83) and (helddown == false)) {
if (_root.techtree._visible == true) {
_root.techtree._visible = false;
helddown = true;
} else if ((_root.techtree._visible == false) and (helddown == false)) {
_root.techtree._visible = true;
helddown = true;
}
}
if ((_root._currentframe == 6) or (_root._currentframe == 6)) {
removeMovieClip(this);
}
}
Instance of Symbol 804 MovieClip "helpbox" in Frame 5
onClipEvent (enterFrame) {
if (_root.UI.wave == 1) {
this.gotoAndStop(1);
}
if (_root.UI.wave == 2) {
this.gotoAndStop(2);
}
if (_root.UI.wave == 3) {
this.gotoAndStop(3);
}
if (_root.UI.wave == 4) {
this.gotoAndStop(4);
}
if (_root.UI.wave == 5) {
this.gotoAndStop(5);
}
if (_root.UI.wave == 6) {
this.gotoAndStop(6);
}
if (_root.UI.wave == 7) {
this.gotoAndStop(7);
}
}
Frame 6
stop();
if (_root.musicon == true) {
someSound = new Sound();
someSound.attachSound("menumusic", this);
someSound.start(0, 1E17);
}
Instance of Symbol 156 MovieClip in Frame 6
on (release) {
getURL ("http://www.shibbymedia.net/", "blank");
}
Instance of Symbol 158 MovieClip in Frame 6
on (release) {
getURL ("http://www.eggysgames.com/", "blank");
}
Instance of Symbol 169 MovieClip in Frame 6
on (release) {
getURL ("http://www.armorgames.com", "blank");
}
Frame 7
stop();
if (_root.musicon == true) {
someSound = new Sound();
someSound.attachSound("menumusic", this);
someSound.start(0, 1E17);
}
Symbol 45 Button
on (release) {
_root.preloader.play();
}
Symbol 46 MovieClip Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
bar._xscale = PercentLoaded;
} else {
_root.gotoAndStop(2);
}
Instance of Symbol 33 MovieClip "bar" in Symbol 46 MovieClip Frame 1
onClipEvent (enterFrame) {
bar._xscale = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (bar._xscale == 100) {
_root.play();
}
}
Symbol 46 MovieClip Frame 2
gotoAndPlay (1);
Symbol 65 Button
on (release) {
getURL ("http://www.armorgames.com", "blank");
}
Symbol 70 MovieClip Frame 81
_root.nextFrame();
Symbol 78 MovieClip Frame 58
stop();
Symbol 87 MovieClip Frame 155
stopAllSounds();
_root.nextFrame();
Symbol 115 MovieClip Frame 1
stop();
Symbol 117 MovieClip Frame 1
stop();
Symbol 123 MovieClip Frame 1
stop();
Symbol 125 MovieClip Frame 1
stop();
Symbol 127 MovieClip Frame 1
stop();
Symbol 130 MovieClip Frame 1
stop();
Symbol 134 MovieClip Frame 1
stop();
Symbol 145 MovieClip Frame 1
stop();
Symbol 147 MovieClip Frame 1
stop();
Symbol 149 MovieClip Frame 1
stop();
Symbol 153 MovieClip Frame 1
stop();
Symbol 163 Button
on (press) {
stopAllSounds();
_root.gotoAndStop(5);
}
Symbol 165 Button
on (release) {
getURL ("http://www.armorgames.com", "blank");
}
Symbol 167 Button
on (release) {
getURL ("http://www.armorblog.com", "blank");
}
Symbol 171 MovieClip Frame 50
stop();
Instance of Symbol 180 MovieClip "hpbar" in Symbol 181 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_width < 2) {
_root.gotoAndStop(6);
}
}
Symbol 182 MovieClip Frame 18
stop();
Instance of Symbol 198 MovieClip in Symbol 203 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(21);
}
Symbol 211 MovieClip Frame 8
stop();
Symbol 214 MovieClip Frame 29
_root.char.spells.gotoAndStop(1);
Symbol 216 MovieClip Frame 150
_root.char.spells.gotoAndStop(1);
Instance of Symbol 198 MovieClip in Symbol 223 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(21);
}
Instance of Symbol 198 MovieClip in Symbol 223 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(21);
}
Symbol 233 MovieClip Frame 16
_root.meteorr._y = -200;
_root.goo = false;
_root.meteorr.gotoAndStop(1);
Symbol 236 MovieClip Frame 37
if (_root.soundon == true) {
someSound = new Sound();
someSound.attachSound("explosion1", this);
someSound.start(0, 1);
}
Symbol 236 MovieClip Frame 44
if (_root.soundon == true) {
someSound = new Sound();
someSound.attachSound("explosion1", this);
someSound.start(0, 1);
}
Symbol 236 MovieClip Frame 65
_root.char.spells.gotoAndStop(1);
Symbol 237 MovieClip Frame 1
stop();
Symbol 237 MovieClip Frame 2
stop();
if (_root.soundon == true) {
someSound = new Sound();
someSound.attachSound("explosion1", this);
someSound.start(0, 1);
}
Instance of Symbol 237 MovieClip "meteor" in Symbol 240 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.go == true) {
_y = (_y + 10);
if (_y >= _root.holder) {
this.gotoAndStop(2);
}
}
}
Instance of Symbol 237 MovieClip "meteor" in Symbol 240 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.go == true) {
_y = (_y + 10);
if (_y >= _root.holder) {
this.gotoAndStop(2);
}
}
}
Instance of Symbol 237 MovieClip "meteor" in Symbol 240 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.go == true) {
_y = (_y + 10);
if (_y >= _root.holder) {
this.gotoAndStop(2);
}
}
}
Instance of Symbol 237 MovieClip "meteor" in Symbol 240 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.go == true) {
_y = (_y + 10);
if (_y >= _root.holder) {
this.gotoAndStop(2);
}
}
}
Instance of Symbol 237 MovieClip "meteor" in Symbol 240 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.go == true) {
_y = (_y + 10);
if (_y >= _root.holder) {
this.gotoAndStop(2);
}
}
}
Instance of Symbol 237 MovieClip "meteor" in Symbol 240 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.go == true) {
_y = (_y + 10);
if (_y >= _root.holder) {
this.gotoAndStop(2);
}
}
}
Instance of Symbol 237 MovieClip "meteor" in Symbol 240 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.go == true) {
_y = (_y + 10);
if (_y >= _root.holder) {
this.gotoAndStop(2);
}
}
}
Instance of Symbol 237 MovieClip "meteor" in Symbol 240 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.go == true) {
_y = (_y + 10);
if (_y >= _root.holder) {
this.gotoAndStop(2);
}
}
}
Instance of Symbol 237 MovieClip "meteor" in Symbol 240 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.go == true) {
_y = (_y + 10);
if (_y >= _root.holder) {
this.gotoAndStop(2);
}
}
}
Instance of Symbol 237 MovieClip "meteor" in Symbol 240 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.go == true) {
_y = (_y + 10);
if (_y >= _root.holder) {
this.gotoAndStop(2);
}
}
}
Instance of Symbol 237 MovieClip "meteor" in Symbol 240 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.go == true) {
_y = (_y + 10);
if (_y >= _root.holder) {
this.gotoAndStop(2);
}
}
}
Instance of Symbol 237 MovieClip "meteor" in Symbol 240 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.go == true) {
_y = (_y + 10);
if (_y >= _root.holder) {
this.gotoAndStop(2);
}
}
}
Instance of Symbol 237 MovieClip "meteor" in Symbol 240 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.go == true) {
_y = (_y + 10);
if (_y >= _root.holder) {
this.gotoAndStop(2);
}
}
}
Instance of Symbol 237 MovieClip "meteor" in Symbol 240 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.go == true) {
_y = (_y + 10);
if (_y >= _root.holder) {
this.gotoAndStop(2);
}
}
}
Instance of Symbol 237 MovieClip "meteor" in Symbol 240 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.go == true) {
_y = (_y + 10);
if (_y >= _root.holder) {
this.gotoAndStop(2);
}
}
}
Instance of Symbol 237 MovieClip "meteor" in Symbol 240 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.go == true) {
_y = (_y + 10);
if (_y >= _root.holder) {
this.gotoAndStop(2);
}
}
}
Symbol 240 MovieClip Frame 13
_root.char.spells.gotoAndStop(1);
Symbol 243 MovieClip Frame 10
_root.char.spells.gotoAndStop(1);
Symbol 244 MovieClip Frame 1
stop();
Symbol 244 MovieClip Frame 2
stop();
if (_root.soundon == true) {
someSound = new Sound();
someSound.attachSound("sparkle", this);
someSound.start(0, 1);
}
Symbol 244 MovieClip Frame 3
stop();
if (_root.soundon == true) {
someSound = new Sound();
someSound.attachSound("shield", this);
someSound.start(0, 1);
}
Symbol 244 MovieClip Frame 4
stop();
if (_root.soundon == true) {
someSound = new Sound();
someSound.attachSound("sparkle", this);
someSound.start(0, 1);
}
Symbol 244 MovieClip Frame 5
stop();
Symbol 244 MovieClip Frame 6
stop();
if (_root.soundon == true) {
someSound = new Sound();
someSound.attachSound("petrol", this);
someSound.start(0, 1);
}
Symbol 244 MovieClip Frame 7
stop();
if (_root.soundon == true) {
someSound = new Sound();
someSound.attachSound("getcrystal", this);
someSound.start(0, 1);
}
Symbol 250 MovieClip Frame 4
if (_root.soundon == true) {
someSound = new Sound();
someSound.attachSound("swordmiss", this);
someSound.start(0, 1);
}
Symbol 250 MovieClip Frame 24
_root.char.gotoAndStop(1);
Symbol 255 MovieClip Frame 30
if (_root.char.AC.animalcount >= 1) {
_root.char.AC.animalcount = _root.char.AC.animalcount - 1;
}
if (_root.char.AC.animalcount <= 0) {
_root.char.gotoAndStop(1);
}
Symbol 267 MovieClip Frame 1
stop();
Symbol 270 MovieClip Frame 30
if (_root.pausee == false) {
if (_root.char.DC.animalcount >= 1) {
_root.char.DC.animalcount = _root.char.DC.animalcount - 1;
}
if (_root.char.DC.animalcount <= 0) {
_root.UI.HP.gotoAndStop(1);
_root.char.gotoAndStop(1);
}
}
Symbol 273 MovieClip Frame 1
stop();
Symbol 273 MovieClip Frame 2
stop();
Symbol 273 MovieClip Frame 3
stop();
Symbol 273 MovieClip Frame 4
stop();
AC.animalcount = 3;
Symbol 273 MovieClip Frame 5
stop();
DC.animalcount = 10 + _root.adder;
_root.adder = _root.adder + 5;
Instance of Symbol 269 MovieClip "DC" in Symbol 273 MovieClip Frame 5
onClipEvent (enterFrame) {
_xscale = _root.char._xscale;
}
Symbol 276 MovieClip Frame 30
if (!_root.pausee) {
if (_root.pausee == false) {
if (_root.UI.wavecount >= 1) {
_root.UI.wavecount = _root.UI.wavecount - 1;
}
if (_root.UI.wavecount <= 0) {
if ((_root.UI.wave == 1) and (_root.count < 10)) {
if (_root.once == false) {
_root.once = true;
_root.wavehold = 10;
}
if (_root.wavehold >= 0) {
duplicateMovieClip (_root.enemyone, "newenemyone" + _root.num, _root.getNextHighestDepth());
_root.count = _root.count + 1;
_root.num = _root.num + 1;
}
}
if ((_root.UI.wave == 2) and (_root.count < 10)) {
if (_root.once == false) {
_root.once = true;
_root.wavehold = 2;
}
if (_root.wavehold >= 0) {
duplicateMovieClip (_root.enemytwo, "newenemytwo" + _root.num, _root.getNextHighestDepth());
_root.count = _root.count + 5;
_root.num = _root.num + 1;
}
}
if ((_root.UI.wave == 3) and (_root.count < 10)) {
if (_root.once == false) {
_root.once = true;
_root.wavehold = 4;
}
if (_root.wavehold >= 0) {
duplicateMovieClip (_root.enemyone, "newenemyone" + _root.num, _root.getNextHighestDepth());
_root.count = _root.count + 2.5;
_root.num = _root.num + 1;
}
if (_root.wavehold >= 0) {
duplicateMovieClip (_root.enemytwo, "newenemytwo" + _root.num, _root.getNextHighestDepth());
_root.count = _root.count + 2.5;
_root.num = _root.num + 1;
}
}
if ((_root.UI.wave == 4) and (_root.count < 10)) {
if (_root.once == false) {
_root.once = true;
_root.wavehold = 5;
}
if (_root.wavehold >= 0) {
duplicateMovieClip (_root.enemythree, "newenemytree" + _root.num, _root.getNextHighestDepth());
_root.count = _root.count + 2;
_root.num = _root.num + 1;
}
}
if ((_root.UI.wave == 5) and (_root.count < 10)) {
if (_root.once == false) {
_root.once = true;
_root.wavehold = 1;
}
if ((_root.wavehold >= 0) and (_root.count <= 1)) {
duplicateMovieClip (_root.enemyfour, "newenemyfour" + _root.num, _root.getNextHighestDepth());
_root.count = _root.count + 10;
_root.num = _root.num + 1;
}
}
if ((_root.UI.wave == 6) and (_root.count < 10)) {
if (_root.once == false) {
_root.once = true;
_root.wavehold = 5;
}
if (_root.wavehold >= 0) {
duplicateMovieClip (_root.enemythree, "newenemythree" + _root.num, _root.getNextHighestDepth());
_root.count = _root.count + 2;
_root.num = _root.num + 1;
}
if (_root.wavehold >= 0) {
duplicateMovieClip (_root.enemytwo, "newenemytwo" + _root.num, _root.getNextHighestDepth());
_root.count = _root.count + 2;
_root.num = _root.num + 1;
}
}
if ((_root.UI.wave == 7) and (_root.count < 10)) {
if (_root.once == false) {
_root.once = true;
_root.wavehold = 20;
}
if (_root.wavehold >= 0) {
duplicateMovieClip (_root.enemyone, "newenemyone" + _root.num, _root.getNextHighestDepth());
_root.count = _root.count + 0.5;
_root.num = _root.num + 1;
}
}
if ((_root.UI.wave == 8) and (_root.count < 10)) {
if (_root.once == false) {
_root.once = true;
_root.wavehold = 2;
}
if (_root.wavehold >= 0) {
duplicateMovieClip (_root.enemyfour, "newenemythree" + _root.num, _root.getNextHighestDepth());
_root.count = _root.count + 5;
_root.num = _root.num + 1;
}
}
if ((_root.UI.wave == 9) and (_root.count < 10)) {
if (_root.once == false) {
_root.once = true;
_root.wavehold = 5;
}
if (_root.wavehold >= 0) {
duplicateMovieClip (_root.enemysix, "newenemysix" + _root.num, _root.getNextHighestDepth());
_root.count = _root.count + 2;
_root.num = _root.num + 1;
}
if (_root.wavehold >= 0) {
duplicateMovieClip (_root.enemytwo, "newenemytwo" + _root.num, _root.getNextHighestDepth());
_root.count = _root.count + 2;
_root.num = _root.num + 1;
}
}
if ((_root.UI.wave == 10) and (_root.count < 10)) {
if (_root.once == false) {
_root.once = true;
_root.wavehold = 1;
}
if (_root.wavehold >= 0) {
duplicateMovieClip (_root.enemyfive, "newenemyfive" + _root.num, _root.getNextHighestDepth());
_root.count = _root.count + 10;
_root.num = _root.num + 1;
}
}
if ((_root.UI.wave == 11) and (_root.count < 10)) {
if (_root.once == false) {
_root.once = true;
_root.wavehold = 2;
}
if (_root.wavehold >= 0) {
duplicateMovieClip (_root.enemyseven, "newenemyseven" + _root.num, _root.getNextHighestDepth());
_root.count = _root.count + 5;
_root.num = _root.num + 1;
}
}
if ((_root.UI.wave == 12) and (_root.count < 10)) {
if (_root.once == false) {
_root.once = true;
_root.wavehold = 10;
}
if (_root.wavehold >= 0) {
duplicateMovieClip (_root.enemysix, "newenemysix" + _root.num, _root.getNextHighestDepth());
_root.count = _root.count + 1;
_root.num = _root.num + 1;
}
}
if ((_root.UI.wave == 13) and (_root.count < 10)) {
if (_root.once == false) {
_root.once = true;
_root.wavehold = 6;
}
if (_root.wavehold >= 0) {
duplicateMovieClip (_root.enemyfour, "newenemyeight" + _root.num, _root.getNextHighestDepth());
_root.count = _root.count + 2;
_root.num = _root.num + 1;
}
if (_root.wavehold >= 0) {
duplicateMovieClip (_root.enemytwo, "newenemyeight" + _root.num, _root.getNextHighestDepth());
_root.count = _root.count + 2;
_root.num = _root.num + 1;
}
}
if ((_root.UI.wave == 14) and (_root.count < 10)) {
if (_root.once == false) {
_root.once = true;
_root.wavehold = 6;
}
if (_root.wavehold >= 0) {
duplicateMovieClip (_root.enemyone, "newenemyone" + _root.num, _root.getNextHighestDepth());
duplicateMovieClip (_root.enemythree, "newenemythree" + _root.num, _root.getNextHighestDepth());
duplicateMovieClip (_root.enemyseven, "newenemyseven" + _root.num, _root.getNextHighestDepth());
_root.count = _root.count + 5;
_root.num = _root.num + 1;
}
}
if ((_root.UI.wave == 15) and (_root.count < 10)) {
if (_root.once == false) {
_root.once = true;
_root.wavehold = 1;
}
if (_root.wavehold >= 0) {
duplicateMovieClip (_root.enemyeight, "newenemyone" + _root.num, _root.getNextHighestDepth());
_root.count = _root.count + 10;
_root.num = _root.num + 1;
}
}
if ((_root.UI.wave == 16) and (_root.count < 10)) {
if (_root.once == false) {
_root.once = true;
_root.wavehold = 10;
}
if (_root.wavehold >= 0) {
duplicateMovieClip (_root.enemyeleven, "newenemyseven" + _root.num, _root.getNextHighestDepth());
_root.count = _root.count + 1;
_root.num = _root.num + 1;
}
}
if ((_root.UI.wave == 17) and (_root.count < 10)) {
if (_root.once == false) {
_root.once = true;
_root.wavehold = 10;
}
if ((_root.wavehold >= 0) and (_root.count <= 1)) {
duplicateMovieClip (_root.enemyfive, "newenemyfive" + _root.num, _root.getNextHighestDepth());
_root.count = _root.count + 1;
_root.num = _root.num + 1;
}
if (_root.wavehold >= 0) {
duplicateMovieClip (_root.enemyseven, "newenemyseven" + _root.num, _root.getNextHighestDepth());
_root.count = _root.count + 1;
_root.num = _root.num + 1;
}
}
if ((_root.UI.wave == 18) and (_root.count < 10)) {
if (_root.once == false) {
_root.once = true;
_root.wavehold = 2;
}
if (_root.wavehold >= 0) {
duplicateMovieClip (_root.enemyeight, "newenemyfive" + _root.num, _root.getNextHighestDepth());
_root.count = _root.count + 5;
_root.num = _root.num + 1;
}
if (_root.wavehold >= 0) {
duplicateMovieClip (_root.enemyfive, "newenemyseven" + _root.num, _root.getNextHighestDepth());
_root.count = _root.count + 5;
_root.num = _root.num + 1;
}
}
if ((_root.UI.wave == 19) and (_root.count < 10)) {
if (_root.once == false) {
_root.once = true;
_root.wavehold = 10;
}
if ((_root.wavehold >= 0) and (_root.count <= 1)) {
duplicateMovieClip (_root.enemysix, "newenemysix" + _root.num, _root.getNextHighestDepth());
_root.count = _root.count + 1;
_root.num = _root.num + 1;
}
if (_root.wavehold >= 0) {
duplicateMovieClip (_root.enemytwo, "newenemytwo" + _root.num, _root.getNextHighestDepth());
_root.count = _root.count + 1;
_root.num = _root.num + 1;
}
}
if ((_root.UI.wave == 20) and (_root.count < 10)) {
if (_root.once == false) {
_root.once = true;
_root.wavehold = 1;
}
if (_root.wavehold >= 0) {
duplicateMovieClip (_root.enemyten, "newenemyten" + _root.num, _root.getNextHighestDepth());
_root.count = _root.count + 10;
_root.num = _root.num + 1;
}
}
if ((_root.UI.wave == 21) and (_root.count < 10)) {
if (_root.once == false) {
_root.once = true;
_root.wavehold = 10;
}
if ((_root.wavehold >= 0) and (_root.count <= 3)) {
duplicateMovieClip (_root.enemytwelve, "newenemytwelve" + _root.num, _root.getNextHighestDepth());
_root.count = _root.count + 1;
_root.num = _root.num + 1;
}
if (_root.wavehold >= 0) {
duplicateMovieClip (_root.enemyeleven, "newenemyeleven" + _root.num, _root.getNextHighestDepth());
_root.count = _root.count + 1;
_root.num = _root.num + 1;
}
}
if ((_root.UI.wave == 22) and (_root.count < 10)) {
if (_root.once == false) {
_root.once = true;
_root.wavehold = 5;
}
if (_root.wavehold >= 0) {
duplicateMovieClip (_root.enemyfive, "newenemyfive" + _root.num, _root.getNextHighestDepth());
_root.count = _root.count + 2;
_root.num = _root.num + 1;
}
}
if ((_root.UI.wave == 23) and (_root.count < 10)) {
if (_root.once == false) {
_root.once = true;
_root.wavehold = 10;
}
if (_root.wavehold >= 0) {
duplicateMovieClip (_root.enemyseven, "newenemyseven" + _root.num, _root.getNextHighestDepth());
_root.count = _root.count + 1;
_root.num = _root.num + 1;
}
if (_root.wavehold >= 0) {
duplicateMovieClip (_root.enemytwelve, "newenemytwelve" + _root.num, _root.getNextHighestDepth());
_root.count = _root.count + 1;
_root.num = _root.num + 1;
}
}
if ((_root.UI.wave == 24) and (_root.count < 10)) {
if (_root.once == false) {
_root.once = true;
_root.wavehold = 5;
}
if (_root.wavehold >= 0) {
duplicateMovieClip (_root.enemyeight, "newenemyeight" + _root.num, _root.getNextHighestDepth());
_root.count = _root.count + 2;
_root.num = _root.num + 1;
}
}
if ((_root.UI.wave == 25) and (_root.count < 10)) {
if (_root.once == false) {
_root.once = true;
_root.wavehold = 1;
}
if (_root.wavehold >= 0) {
duplicateMovieClip (_root.enemythirteen, "newenemythirteen" + _root.num, _root.getNextHighestDepth());
_root.count = _root.count + 10;
_root.num = _root.num + 1;
}
}
if ((_root.UI.wave == 26) and (_root.count < 10)) {
if (_root.once == false) {
_root.once = true;
_root.wavehold = 10;
}
if (_root.wavehold >= 0) {
duplicateMovieClip (_root.enemyfour, "newenemyfour" + _root.num, _root.getNextHighestDepth());
_root.count = _root.count + 1;
_root.num = _root.num + 1;
}
if (_root.wavehold >= 0) {
duplicateMovieClip (_root.enemyfive, "newenemyfive" + _root.num, _root.getNextHighestDepth());
_root.count = _root.count + 1;
_root.num = _root.num + 1;
}
if (_root.wavehold >= 0) {
duplicateMovieClip (_root.enemytwo, "newenemytwo" + _root.num, _root.getNextHighestDepth());
_root.count = _root.count + 1;
_root.num = _root.num + 1;
}
if (_root.wavehold >= 0) {
duplicateMovieClip (_root.enemyseven, "newenemyseven" + _root.num, _root.getNextHighestDepth());
_root.count = _root.count + 1;
_root.num = _root.num + 1;
}
if (_root.wavehold >= 0) {
duplicateMovieClip (_root.enemythirteen, "newenemyten" + _root.num, _root.getNextHighestDepth());
_root.count = _root.count + 1;
_root.num = _root.num + 1;
}
}
if ((_root.UI.wave == 27) and (_root.count < 10)) {
if (_root.once == false) {
_root.once = true;
_root.wavehold = 10;
}
if (_root.wavehold >= 0) {
duplicateMovieClip (_root.enemytwo, "newenemytwo" + _root.num, _root.getNextHighestDepth());
_root.count = _root.count + 1;
_root.num = _root.num + 1;
}
if ((_root.wavehold >= 0) and (_root.count < 2)) {
duplicateMovieClip (_root.enemyten, "newenemyten" + _root.num, _root.getNextHighestDepth());
_root.count = _root.count + 1;
_root.num = _root.num + 1;
}
}
if ((_root.UI.wave == 28) and (_root.count < 10)) {
if (_root.once == false) {
_root.once = true;
_root.wavehold = 10;
}
if (_root.wavehold >= 0) {
duplicateMovieClip (_root.enemyeleven, "newenemyeleven" + _root.num, _root.getNextHighestDepth());
_root.count = _root.count + 1;
_root.num = _root.num + 1;
}
if (_root.wavehold >= 0) {
duplicateMovieClip (_root.enemytwelve, "newenemytwelve" + _root.num, _root.getNextHighestDepth());
_root.count = _root.count + 1;
_root.num = _root.num + 1;
}
if (_root.wavehold >= 0) {
duplicateMovieClip (_root.enemythree, "newenemythree" + _root.num, _root.getNextHighestDepth());
_root.count = _root.count + 1;
_root.num = _root.num + 1;
}
}
if ((_root.UI.wave == 29) and (_root.count < 10)) {
if (_root.once == false) {
_root.once = true;
_root.wavehold = 2;
}
if (_root.wavehold >= 0) {
duplicateMovieClip (_root.enemyten, "newenemyten" + _root.num, _root.getNextHighestDepth());
_root.count = _root.count + 5;
_root.num = _root.num + 1;
}
}
if ((_root.UI.wave == 30) and (_root.count < 10)) {
if (_root.once == false) {
_root.once = true;
_root.wavehold = 2;
}
if (_root.wavehold >= 0) {
duplicateMovieClip (_root.enemythirteen, "newenemythirteen" + _root.num, _root.getNextHighestDepth());
_root.count = _root.count + 5;
_root.num = _root.num + 1;
}
}
if ((_root.UI.wave == 31) and (_root.count < 10)) {
if (_root.once == false) {
_root.once = true;
_root.wavehold = 10;
}
if ((_root.wavehold >= 0) and (_root.count < 1)) {
duplicateMovieClip (_root.enemyten, "newenemyten" + _root.num, _root.getNextHighestDepth());
_root.count = _root.count + 1;
_root.num = _root.num + 1;
}
if (_root.wavehold >= 0) {
duplicateMovieClip (_root.enemysix, "newenemysix" + _root.num, _root.getNextHighestDepth());
_root.count = _root.count + 1;
_root.num = _root.num + 1;
}
}
if ((_root.UI.wave == 32) and (_root.count < 10)) {
if (_root.once == false) {
_root.once = true;
_root.wavehold = 10;
}
if ((_root.wavehold >= 0) and (_root.count < 1)) {
duplicateMovieClip (_root.enemyten, "newenemyten" + _root.num, _root.getNextHighestDepth());
_root.count = _root.count + 1;
_root.num = _root.num + 1;
}
if (_root.wavehold >= 0) {
duplicateMovieClip (_root.enemytwo, "newenemytwo" + _root.num, _root.getNextHighestDepth());
_root.count = _root.count + 1;
_root.num = _root.num + 1;
}
}
if ((_root.UI.wave == 33) and (_root.count < 10)) {
if (_root.once == false) {
_root.once = true;
_root.wavehold = 10;
}
if (_root.wavehold >= 0) {
duplicateMovieClip (_root.enemyeight, "newenemythirteen" + _root.num, _root.getNextHighestDepth());
_root.count = _root.count + 1;
_root.num = _root.num + 1;
}
if (_root.wavehold >= 0) {
duplicateMovieClip (_root.enemytwo, "newenemytwo" + _root.num, _root.getNextHighestDepth());
_root.count = _root.count + 1;
_root.num = _root.num + 1;
}
}
if ((_root.UI.wave == 34) and (_root.count < 10)) {
if (_root.once == false) {
_root.once = true;
_root.wavehold = 10;
}
if (_root.wavehold >= 0) {
duplicateMovieClip (_root.enemytwelve, "newenemytwelve" + _root.num, _root.getNextHighestDepth());
_root.count = _root.count + 1;
_root.num = _root.num + 1;
}
if (_root.wavehold >= 0) {
duplicateMovieClip (_root.enemyfour, "newenemyfour" + _root.num, _root.getNextHighestDepth());
_root.count = _root.count + 1;
_root.num = _root.num + 1;
}
}
if ((_root.UI.wave == 35) and (_root.count < 10)) {
if (_root.once == false) {
_root.once = true;
_root.wavehold = 5;
}
if (_root.wavehold >= 0) {
duplicateMovieClip (_root.enemyten, "newenemyten" + _root.num, _root.getNextHighestDepth());
_root.count = _root.count + 2;
_root.num = _root.num + 1;
}
}
if ((_root.UI.wave == 36) and (_root.count < 10)) {
if (_root.once == false) {
_root.once = true;
_root.wavehold = 20;
}
if (_root.wavehold >= 0) {
duplicateMovieClip (_root.enemytwelve, "newenemytwelve" + _root.num, _root.getNextHighestDepth());
_root.count = _root.count + 0.5;
_root.num = _root.num + 1;
}
}
if ((_root.UI.wave == 37) and (_root.count < 10)) {
if (_root.once == false) {
_root.once = true;
_root.wavehold = 10;
}
if (_root.wavehold >= 0) {
duplicateMovieClip (_root.enemyten, "newenemyten" + _root.num, _root.getNextHighestDepth());
_root.count = _root.count + 1;
_root.num = _root.num + 1;
}
}
if ((_root.UI.wave == 38) and (_root.count < 10)) {
if (_root.once == false) {
_root.once = true;
_root.wavehold = 5;
}
if (_root.wavehold >= 0) {
duplicateMovieClip (_root.enemyten, "newenemyten" + _root.num, _root.getNextHighestDepth());
_root.count = _root.count + 2;
_root.num = _root.num + 1;
}
if (_root.wavehold >= 0) {
duplicateMovieClip (_root.enemythree, "newenemythree" + _root.num, _root.getNextHighestDepth());
_root.count = _root.count + 2;
_root.num = _root.num + 1;
}
}
if ((_root.UI.wave == 39) and (_root.count < 10)) {
if (_root.once == false) {
_root.once = true;
_root.wavehold = 13;
}
if (_root.wavehold >= 0) {
duplicateMovieClip (_root.enemyone, "newenemyone" + _root.num, _root.getNextHighestDepth());
_root.count = _root.count + 1;
_root.num = _root.num + 1;
}
if (_root.wavehold >= 0) {
duplicateMovieClip (_root.enemytwo, "newenemytwo" + _root.num, _root.getNextHighestDepth());
_root.count = _root.count + 1;
_root.num = _root.num + 1;
}
if (_root.wavehold >= 0) {
duplicateMovieClip (_root.enemythree, "newenemythree" + _root.num, _root.getNextHighestDepth());
_root.count = _root.count + 1;
_root.num = _root.num + 1;
}
if (_root.wavehold >= 0) {
duplicateMovieClip (_root.enemyfour, "newenemyfour" + _root.num, _root.getNextHighestDepth());
_root.count = _root.count + 1;
_root.num = _root.num + 1;
}
if (_root.wavehold >= 0) {
duplicateMovieClip (_root.enemyfive, "newenemyfive" + _root.num, _root.getNextHighestDepth());
_root.count = _root.count + 1;
_root.num = _root.num + 1;
}
if (_root.wavehold >= 0) {
duplicateMovieClip (_root.enemysix, "newenemysix" + _root.num, _root.getNextHighestDepth());
_root.count = _root.count + 1;
_root.num = _root.num + 1;
}
if (_root.wavehold >= 0) {
duplicateMovieClip (_root.enemyseven, "newenemyseven" + _root.num, _root.getNextHighestDepth());
_root.count = _root.count + 1;
_root.num = _root.num + 1;
}
if (_root.wavehold >= 0) {
duplicateMovieClip (_root.enemyeight, "newenemyeight" + _root.num, _root.getNextHighestDepth());
_root.count = _root.count + 1;
_root.num = _root.num + 1;
}
if (_root.wavehold >= 0) {
duplicateMovieClip (_root.enemyeight, "newenemyeight" + _root.num, _root.getNextHighestDepth());
_root.count = _root.count + 1;
_root.num = _root.num + 1;
}
if (_root.wavehold >= 0) {
duplicateMovieClip (_root.enemyten, "newenemyten" + _root.num, _root.getNextHighestDepth());
_root.count = _root.count + 1;
_root.num = _root.num + 1;
}
if (_root.wavehold >= 0) {
duplicateMovieClip (_root.enemyeleven, "newenemyeleven" + _root.num, _root.getNextHighestDepth());
_root.count = _root.count + 1;
_root.num = _root.num + 1;
}
if (_root.wavehold >= 0) {
duplicateMovieClip (_root.enemytwelve, "newenemytwelve" + _root.num, _root.getNextHighestDepth());
_root.count = _root.count + 1;
_root.num = _root.num + 1;
}
if (_root.wavehold >= 0) {
duplicateMovieClip (_root.enemythirteen, "newenemythirteen" + _root.num, _root.getNextHighestDepth());
_root.count = _root.count + 1;
_root.num = _root.num + 1;
}
}
if ((_root.UI.wave == 40) and (_root.count < 10)) {
if (_root.once == false) {
_root.once = true;
_root.wavehold = 10;
}
if (_root.wavehold >= 0) {
duplicateMovieClip (_root.enemythirteen, "newenemythirteen" + _root.num, _root.getNextHighestDepth());
_root.count = _root.count + 1;
_root.num = _root.num + 1;
}
}
}
if ((_root.count >= 9.99) and (_root.wavehold <= 0)) {
_root.UI.wave = _root.UI.wave + 1;
_root.UI.wavecount = 10;
_root.count = 0;
_root.once = false;
_root.wavehold = 1;
}
}
}
Symbol 296 MovieClip Frame 25
gotoAndPlay (1);
Symbol 301 MovieClip Frame 25
if (_root.castleattack == true) {
_root.map.castle.hpbar._width = _root.map.castle.hpbar._width - _root.castleattackdmg;
}
if (_root.soundon == true) {
someSound = new Sound();
someSound.attachSound("enemyhitsme", this);
someSound.start(0, 1);
}
Instance of Symbol 300 MovieClip in Symbol 301 MovieClip Frame 25
onClipEvent (enterFrame) {
if (_root.char.hitTest(this) and (_root.char.spells._currentframe != 3)) {
_root.UI.HP.gotoAndStop(_root.UI.HP._currentframe + 1);
}
}
Symbol 346 MovieClip Frame 9
stop();
this._visible = false;
Symbol 347 MovieClip Frame 1
stop();
Symbol 347 MovieClip Frame 2
stop();
Symbol 347 MovieClip Frame 3
stop();
_root.wavehold = _root.wavehold - 1;
if ((_root.UI.EXP._currentframe + _root.EXPGET) <= 100) {
_root.UI.EXP.gotoAndStop(_root.UI.EXP._currentframe + _root.EXPGET);
} else {
_root.techtree.techpoints = _root.techtree.techpoints + 1;
_root.UI.EXP.gotoAndStop((_root.UI.EXP._currentframe + _root.EXPGET) - 100);
_root.char.spells.gotoAndStop(7);
}
bob = random(4) + 1;
if (bob == 1) {
if (_root.soundon == true) {
someSound = new Sound();
someSound.attachSound("splat1", this);
someSound.start(0, 1);
}
}
if (bob == 2) {
if (_root.soundon == true) {
someSound = new Sound();
someSound.attachSound("splat2", this);
someSound.start(0, 1);
}
}
if (bob == 3) {
if (_root.soundon == true) {
someSound = new Sound();
someSound.attachSound("splat3", this);
someSound.start(0, 1);
}
}
if (bob == 4) {
if (_root.soundon == true) {
someSound = new Sound();
someSound.attachSound("splat4", this);
someSound.start(0, 1);
}
}
Symbol 364 MovieClip Frame 25
duplicateMovieClip (_root.missile, "newmissile" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_root["newmissile" + (_root.getNextHighestDepth() - 1)]._x = _parent._x - 10;
_root["newmissile" + (_root.getNextHighestDepth() - 1)]._y = _parent._y - 20;
Symbol 365 MovieClip Frame 1
stop();
Symbol 365 MovieClip Frame 2
stop();
Symbol 365 MovieClip Frame 3
stop();
_root.wavehold = _root.wavehold - 1;
if ((_root.UI.EXP._currentframe + _root.EXPGET) <= 100) {
_root.UI.EXP.gotoAndStop(_root.UI.EXP._currentframe + _root.EXPGET);
} else {
_root.techtree.techpoints = _root.techtree.techpoints + 1;
_root.UI.EXP.gotoAndStop((_root.UI.EXP._currentframe + _root.EXPGET) - 100);
_root.char.spells.gotoAndStop(7);
}
bob = random(4) + 1;
if (bob == 1) {
if (_root.soundon == true) {
someSound = new Sound();
someSound.attachSound("splat1", this);
someSound.start(0, 1);
}
}
if (bob == 2) {
if (_root.soundon == true) {
someSound = new Sound();
someSound.attachSound("splat2", this);
someSound.start(0, 1);
}
}
if (bob == 3) {
if (_root.soundon == true) {
someSound = new Sound();
someSound.attachSound("splat3", this);
someSound.start(0, 1);
}
}
if (bob == 4) {
if (_root.soundon == true) {
someSound = new Sound();
someSound.attachSound("splat4", this);
someSound.start(0, 1);
}
}
Symbol 378 MovieClip Frame 25
gotoAndPlay (1);
Symbol 379 MovieClip Frame 19
if (_root.castleattack == true) {
_root.map.castle.hpbar._width = _root.map.castle.hpbar._width - _root.castleattackdmg;
}
if (_root.soundon == true) {
someSound = new Sound();
someSound.attachSound("enemyhitsme", this);
someSound.start(0, 1);
}
Instance of Symbol 300 MovieClip in Symbol 379 MovieClip Frame 19
onClipEvent (enterFrame) {
if (_root.char.hitTest(this) and (_root.char.spells._currentframe != 3)) {
_root.UI.HP.gotoAndStop(_root.UI.HP._currentframe + 1);
}
}
Symbol 380 MovieClip Frame 1
stop();
Symbol 380 MovieClip Frame 2
stop();
Symbol 380 MovieClip Frame 3
stop();
_root.wavehold = _root.wavehold - 1;
if ((_root.UI.EXP._currentframe + _root.EXPGET) <= 100) {
_root.UI.EXP.gotoAndStop(_root.UI.EXP._currentframe + _root.EXPGET);
} else {
_root.techtree.techpoints = _root.techtree.techpoints + 1;
_root.UI.EXP.gotoAndStop((_root.UI.EXP._currentframe + _root.EXPGET) - 100);
_root.char.spells.gotoAndStop(7);
}
bob = random(4) + 1;
if (bob == 1) {
if (_root.soundon == true) {
someSound = new Sound();
someSound.attachSound("splat1", this);
someSound.start(0, 1);
}
}
if (bob == 2) {
if (_root.soundon == true) {
someSound = new Sound();
someSound.attachSound("splat2", this);
someSound.start(0, 1);
}
}
if (bob == 3) {
if (_root.soundon == true) {
someSound = new Sound();
someSound.attachSound("splat3", this);
someSound.start(0, 1);
}
}
if (bob == 4) {
if (_root.soundon == true) {
someSound = new Sound();
someSound.attachSound("splat4", this);
someSound.start(0, 1);
}
}
Symbol 411 MovieClip Frame 18
if (_root.castleattack == true) {
_root.map.castle.hpbar._width = _root.map.castle.hpbar._width - (_root.castleattackdmg + 1);
}
if (_root.soundon == true) {
someSound = new Sound();
someSound.attachSound("beasthit", this);
someSound.start(0, 1);
}
Instance of Symbol 410 MovieClip in Symbol 411 MovieClip Frame 18
onClipEvent (enterFrame) {
if (_root.char.hitTest(this) and (_root.char.spells._currentframe != 3)) {
if (_root.dir == true) {
_root.char._x = _root.char._x - 3;
}
if (_root.dir == false) {
_root.char._x = _root.char._x + 3;
}
_root.UI.HP.gotoAndStop(_root.UI.HP._currentframe + 2);
}
}
Symbol 412 MovieClip Frame 1
stop();
Symbol 412 MovieClip Frame 2
stop();
if (_root.soundon == true) {
someSound = new Sound();
someSound.attachSound("enemyhitsme", this);
someSound.start(0, 1);
}
Symbol 412 MovieClip Frame 3
stop();
_root.wavehold = _root.wavehold - 1;
if ((_root.UI.EXP._currentframe + _root.EXPGET) <= 100) {
_root.UI.EXP.gotoAndStop(_root.UI.EXP._currentframe + _root.EXPGET);
} else {
_root.techtree.techpoints = _root.techtree.techpoints + 1;
_root.UI.EXP.gotoAndStop((_root.UI.EXP._currentframe + _root.EXPGET) - 100);
_root.char.spells.gotoAndStop(7);
}
bob = random(4) + 1;
if (bob == 1) {
if (_root.soundon == true) {
someSound = new Sound();
someSound.attachSound("splat1", this);
someSound.start(0, 1);
}
}
if (bob == 2) {
if (_root.soundon == true) {
someSound = new Sound();
someSound.attachSound("splat2", this);
someSound.start(0, 1);
}
}
if (bob == 3) {
if (_root.soundon == true) {
someSound = new Sound();
someSound.attachSound("splat3", this);
someSound.start(0, 1);
}
}
if (bob == 4) {
if (_root.soundon == true) {
someSound = new Sound();
someSound.attachSound("splat4", this);
someSound.start(0, 1);
}
}
Symbol 416 MovieClip Frame 1
stop();
Symbol 416 MovieClip Frame 2
stop();
Symbol 442 MovieClip Frame 16
_root.meteor._y = -200;
_root.go = false;
_root.meteor.gotoAndStop(1);
Symbol 443 MovieClip Frame 1
stop();
Symbol 443 MovieClip Frame 2
stop();
if (_root.soundon == true) {
someSound = new Sound();
someSound.attachSound("explosion2", this);
someSound.start(0, 1);
}
Instance of Symbol 460 MovieClip in Symbol 461 MovieClip Frame 25
onClipEvent (enterFrame) {
if (_root.char.hitTest(this) and (_root.char.spells._currentframe != 3)) {
if (_root.dir == true) {
_root.char._x = _root.char._x - 5;
}
if (_root.dir == false) {
_root.char._x = _root.char._x + 5;
}
_root.UI.HP.gotoAndStop(_root.UI.HP._currentframe + 5);
}
}
Symbol 461 MovieClip Frame 28
if (_root.castleattack == true) {
if (_root.map.castle.hpbar._width > 10) {
_root.map.castle.hpbar._width = _root.map.castle.hpbar._width - (_root.castleattackdmg + 2);
} else {
_root.map.castle.hpbar._width = _root.map.castle.hpbar._width - _root.castleattackdmg;
}
}
if (_root.soundon == true) {
someSound = new Sound();
someSound.attachSound("beasthit", this);
someSound.start(0, 1);
}
Instance of Symbol 410 MovieClip in Symbol 461 MovieClip Frame 28
onClipEvent (enterFrame) {
if (_root.char.hitTest(this) and (_root.char.spells._currentframe != 3)) {
if (_root.dir == true) {
_root.char._x = _root.char._x - 3;
}
if (_root.dir == false) {
_root.char._x = _root.char._x + 3;
}
_root.UI.HP.gotoAndStop(_root.UI.HP._currentframe + 5);
}
}
Symbol 462 MovieClip Frame 1
stop();
Symbol 462 MovieClip Frame 2
stop();
Symbol 462 MovieClip Frame 3
stop();
_root.wavehold = _root.wavehold - 1;
if ((_root.UI.EXP._currentframe + _root.EXPGET) < 100) {
_root.UI.EXP.gotoAndStop(_root.UI.EXP._currentframe + _root.EXPGET);
} else {
_root.techtree.techpoints = _root.techtree.techpoints + 1;
_root.UI.EXP.gotoAndStop((_root.UI.EXP._currentframe + _root.EXPGET) - 100);
_root.char.spells.gotoAndStop(7);
}
bob = random(4) + 1;
if (bob == 1) {
if (_root.soundon == true) {
someSound = new Sound();
someSound.attachSound("splat1", this);
someSound.start(0, 1);
}
}
if (bob == 2) {
if (_root.soundon == true) {
someSound = new Sound();
someSound.attachSound("splat2", this);
someSound.start(0, 1);
}
}
if (bob == 3) {
if (_root.soundon == true) {
someSound = new Sound();
someSound.attachSound("splat3", this);
someSound.start(0, 1);
}
}
if (bob == 4) {
if (_root.soundon == true) {
someSound = new Sound();
someSound.attachSound("splat4", this);
someSound.start(0, 1);
}
}
Symbol 467 MovieClip Frame 4
stop();
Symbol 468 MovieClip Frame 1
stop();
Symbol 468 MovieClip Frame 2
stop();
Symbol 476 MovieClip Frame 12
_root.lightning._y = -200;
_root.go2 = false;
_root.lightning.gotoAndStop(1);
Symbol 478 MovieClip Frame 1
stop();
Symbol 478 MovieClip Frame 2
stop();
Symbol 496 MovieClip Frame 25
gotoAndPlay (1);
Symbol 497 MovieClip Frame 1
gotoAndPlay (1);
Instance of Symbol 460 MovieClip in Symbol 497 MovieClip Frame 27
onClipEvent (enterFrame) {
if (_root.char.hitTest(this) and (_root.char.spells._currentframe != 3)) {
if (_root.dir == true) {
_root.char._x = _root.char._x - 5;
}
if (_root.dir == false) {
_root.char._x = _root.char._x + 5;
}
_root.UI.HP.gotoAndStop(_root.UI.HP._currentframe + 1);
}
}
Symbol 497 MovieClip Frame 30
if (_root.castleattack == true) {
_root.map.castle.hpbar._width = _root.map.castle.hpbar._width - _root.castleattackdmg;
}
if (_root.soundon == true) {
someSound = new Sound();
someSound.attachSound("swordslash", this);
someSound.start(0, 1);
}
Instance of Symbol 410 MovieClip in Symbol 497 MovieClip Frame 30
onClipEvent (enterFrame) {
if (_root.char.hitTest(this) and (_root.char.spells._currentframe != 3)) {
if (_root.dir == true) {
_root.char._x = _root.char._x - 3;
}
if (_root.dir == false) {
_root.char._x = _root.char._x + 3;
}
_root.UI.HP.gotoAndStop(_root.UI.HP._currentframe + 1);
}
}
Symbol 498 MovieClip Frame 1
stop();
Symbol 498 MovieClip Frame 2
stop();
Symbol 498 MovieClip Frame 3
stop();
_root.wavehold = _root.wavehold - 1;
if ((_root.UI.EXP._currentframe + _root.EXPGET) < 100) {
_root.UI.EXP.gotoAndStop(_root.UI.EXP._currentframe + _root.EXPGET);
} else {
_root.techtree.techpoints = _root.techtree.techpoints + 1;
_root.UI.EXP.gotoAndStop((_root.UI.EXP._currentframe + _root.EXPGET) - 100);
_root.char.spells.gotoAndStop(7);
}
bob = random(4) + 1;
if (bob == 1) {
if (_root.soundon == true) {
someSound = new Sound();
someSound.attachSound("splat1", this);
someSound.start(0, 1);
}
}
if (bob == 2) {
if (_root.soundon == true) {
someSound = new Sound();
someSound.attachSound("splat2", this);
someSound.start(0, 1);
}
}
if (bob == 3) {
if (_root.soundon == true) {
someSound = new Sound();
someSound.attachSound("splat3", this);
someSound.start(0, 1);
}
}
if (bob == 4) {
if (_root.soundon == true) {
someSound = new Sound();
someSound.attachSound("splat4", this);
someSound.start(0, 1);
}
}
Symbol 513 MovieClip Frame 24
duplicateMovieClip (_root.missile2, "newmissile2" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_root["newmissile2" + (_root.getNextHighestDepth() - 1)]._x = _parent._x - 10;
_root["newmissile2" + (_root.getNextHighestDepth() - 1)]._y = _parent._y - 20;
Symbol 514 MovieClip Frame 1
stop();
Symbol 514 MovieClip Frame 2
stop();
Symbol 514 MovieClip Frame 3
stop();
_root.wavehold = _root.wavehold - 1;
if ((_root.UI.EXP._currentframe + _root.EXPGET) < 100) {
_root.UI.EXP.gotoAndStop(_root.UI.EXP._currentframe + _root.EXPGET);
} else {
_root.techtree.techpoints = _root.techtree.techpoints + 1;
_root.UI.EXP.gotoAndStop((_root.UI.EXP._currentframe + _root.EXPGET) - 100);
_root.char.spells.gotoAndStop(7);
}
bob = random(4) + 1;
if (bob == 1) {
if (_root.soundon == true) {
someSound = new Sound();
someSound.attachSound("splat1", this);
someSound.start(0, 1);
}
}
if (bob == 2) {
if (_root.soundon == true) {
someSound = new Sound();
someSound.attachSound("splat2", this);
someSound.start(0, 1);
}
}
if (bob == 3) {
if (_root.soundon == true) {
someSound = new Sound();
someSound.attachSound("splat3", this);
someSound.start(0, 1);
}
}
if (bob == 4) {
if (_root.soundon == true) {
someSound = new Sound();
someSound.attachSound("splat4", this);
someSound.start(0, 1);
}
}
Instance of Symbol 460 MovieClip in Symbol 536 MovieClip Frame 28
onClipEvent (enterFrame) {
if (_root.char.hitTest(this) and (_root.char.spells._currentframe != 3)) {
if (_root.dir == true) {
_root.char._x = _root.char._x - 6;
}
if (_root.dir == false) {
_root.char._x = _root.char._x + 6;
}
_root.UI.HP.gotoAndStop(_root.UI.HP._currentframe + 7);
}
}
Symbol 536 MovieClip Frame 30
if (_root.castleattack == true) {
if (_root.map.castle.hpbar._width > 10) {
_root.map.castle.hpbar._width = _root.map.castle.hpbar._width - (_root.castleattackdmg + 4);
} else {
_root.map.castle.hpbar._width = _root.map.castle.hpbar._width - _root.castleattackdmg;
}
}
if (_root.soundon == true) {
someSound = new Sound();
someSound.attachSound("swordslash", this);
someSound.start(0, 1);
}
Instance of Symbol 410 MovieClip in Symbol 536 MovieClip Frame 30
onClipEvent (enterFrame) {
if (_root.char.hitTest(this) and (_root.char.spells._currentframe != 3)) {
if (_root.dir == true) {
_root.char._x = _root.char._x - 6;
}
if (_root.dir == false) {
_root.char._x = _root.char._x + 6;
}
_root.UI.HP.gotoAndStop(_root.UI.HP._currentframe + 7);
}
}
Symbol 537 MovieClip Frame 1
stop();
Symbol 537 MovieClip Frame 2
stop();
Symbol 537 MovieClip Frame 3
stop();
_root.wavehold = _root.wavehold - 1;
if ((_root.UI.EXP._currentframe + _root.EXPGET) < 100) {
_root.UI.EXP.gotoAndStop(_root.UI.EXP._currentframe + _root.EXPGET);
} else {
_root.techtree.techpoints = _root.techtree.techpoints + 1;
_root.UI.EXP.gotoAndStop((_root.UI.EXP._currentframe + _root.EXPGET) - 100);
_root.char.spells.gotoAndStop(7);
}
bob = random(4) + 1;
if (bob == 1) {
if (_root.soundon == true) {
someSound = new Sound();
someSound.attachSound("splat1", this);
someSound.start(0, 1);
}
}
if (bob == 2) {
if (_root.soundon == true) {
someSound = new Sound();
someSound.attachSound("splat2", this);
someSound.start(0, 1);
}
}
if (bob == 3) {
if (_root.soundon == true) {
someSound = new Sound();
someSound.attachSound("splat3", this);
someSound.start(0, 1);
}
}
if (bob == 4) {
if (_root.soundon == true) {
someSound = new Sound();
someSound.attachSound("splat4", this);
someSound.start(0, 1);
}
}
Symbol 553 MovieClip Frame 12
if (_root.castleattack == true) {
_root.map.castle.hpbar._width = _root.map.castle.hpbar._width - _root.castleattackdmg;
}
Instance of Symbol 300 MovieClip in Symbol 553 MovieClip Frame 12
onClipEvent (enterFrame) {
if (_root.char.hitTest(this) and (_root.char.spells._currentframe != 3)) {
_root.UI.HP.gotoAndStop(_root.UI.HP._currentframe);
}
}
Instance of Symbol 300 MovieClip in Symbol 553 MovieClip Frame 13
onClipEvent (enterFrame) {
if (_root.char.hitTest(this) and (_root.char.spells._currentframe != 3)) {
_root.UI.HP.gotoAndStop(_root.UI.HP._currentframe + 1);
}
}
Symbol 554 MovieClip Frame 1
stop();
Symbol 554 MovieClip Frame 2
stop();
Symbol 554 MovieClip Frame 3
stop();
_root.wavehold = _root.wavehold - 1;
if ((_root.UI.EXP._currentframe + _root.EXPGET) < 100) {
_root.UI.EXP.gotoAndStop(_root.UI.EXP._currentframe + _root.EXPGET);
} else {
_root.techtree.techpoints = _root.techtree.techpoints + 1;
_root.UI.EXP.gotoAndStop((_root.UI.EXP._currentframe + _root.EXPGET) - 100);
_root.char.spells.gotoAndStop(7);
}
bob = random(4) + 1;
if (bob == 1) {
if (_root.soundon == true) {
someSound = new Sound();
someSound.attachSound("splat1", this);
someSound.start(0, 1);
}
}
if (bob == 2) {
if (_root.soundon == true) {
someSound = new Sound();
someSound.attachSound("splat2", this);
someSound.start(0, 1);
}
}
if (bob == 3) {
if (_root.soundon == true) {
someSound = new Sound();
someSound.attachSound("splat3", this);
someSound.start(0, 1);
}
}
if (bob == 4) {
if (_root.soundon == true) {
someSound = new Sound();
someSound.attachSound("splat4", this);
someSound.start(0, 1);
}
}
Instance of Symbol 583 MovieClip in Symbol 585 MovieClip Frame 28
onClipEvent (enterFrame) {
if (_root.char.hitTest(this) and (_root.char.spells._currentframe != 3)) {
if (_root.dir == true) {
_root.char._x = _root.char._x - 6;
}
if (_root.dir == false) {
_root.char._x = _root.char._x + 6;
}
_root.UI.HP.gotoAndStop(_root.UI.HP._currentframe + 12);
}
}
Symbol 585 MovieClip Frame 30
if (_root.castleattack == true) {
if (_root.map.castle.hpbar._width > 10) {
_root.map.castle.hpbar._width = _root.map.castle.hpbar._width - (_root.castleattackdmg + 9);
} else {
_root.map.castle.hpbar._width = _root.map.castle.hpbar._width - _root.castleattackdmg;
}
}
Instance of Symbol 584 MovieClip in Symbol 585 MovieClip Frame 30
onClipEvent (enterFrame) {
if (_root.char.hitTest(this) and (_root.char.spells._currentframe != 3)) {
if (_root.dir == true) {
_root.char._x = _root.char._x - 6;
}
if (_root.dir == false) {
_root.char._x = _root.char._x + 6;
}
_root.UI.HP.gotoAndStop(_root.UI.HP._currentframe + 12);
}
}
Symbol 586 MovieClip Frame 1
stop();
Symbol 586 MovieClip Frame 2
stop();
Symbol 586 MovieClip Frame 3
stop();
_root.wavehold = _root.wavehold - 1;
if ((_root.UI.EXP._currentframe + _root.EXPGET) <= 100) {
_root.UI.EXP.gotoAndStop(_root.UI.EXP._currentframe + _root.EXPGET);
} else {
_root.techtree.techpoints = _root.techtree.techpoints + 1;
_root.UI.EXP.gotoAndStop((_root.UI.EXP._currentframe + _root.EXPGET) - 100);
_root.char.spells.gotoAndStop(7);
}
bob = random(4) + 1;
if (bob == 1) {
if (_root.soundon == true) {
someSound = new Sound();
someSound.attachSound("splat1", this);
someSound.start(0, 1);
}
}
if (bob == 2) {
if (_root.soundon == true) {
someSound = new Sound();
someSound.attachSound("splat2", this);
someSound.start(0, 1);
}
}
if (bob == 3) {
if (_root.soundon == true) {
someSound = new Sound();
someSound.attachSound("splat3", this);
someSound.start(0, 1);
}
}
if (bob == 4) {
if (_root.soundon == true) {
someSound = new Sound();
someSound.attachSound("splat4", this);
someSound.start(0, 1);
}
}
Symbol 613 MovieClip Frame 1
stop();
Symbol 617 MovieClip Frame 1
stop();
Symbol 621 MovieClip Frame 25
if (_root.castleattack == true) {
if (_root.map.castle.hpbar._width > 10) {
_root.map.castle.hpbar._width = _root.map.castle.hpbar._width - (_root.castleattackdmg + 8);
} else {
_root.map.castle.hpbar._width = _root.map.castle.hpbar._width - _root.castleattackdmg;
}
}
Instance of Symbol 300 MovieClip in Symbol 621 MovieClip Frame 25
onClipEvent (enterFrame) {
if (_root.char.hitTest(this) and (_root.char.spells._currentframe != 3)) {
if (_root.dir == true) {
_root.char._x = _root.char._x - 6;
}
if (_root.dir == false) {
_root.char._x = _root.char._x + 6;
}
_root.UI.HP.gotoAndStop(_root.UI.HP._currentframe + 10);
}
}
Symbol 622 MovieClip Frame 1
stop();
Symbol 622 MovieClip Frame 2
stop();
Symbol 622 MovieClip Frame 3
stop();
_root.wavehold = _root.wavehold - 1;
if ((_root.UI.EXP._currentframe + _root.EXPGET) <= 100) {
_root.UI.EXP.gotoAndStop(_root.UI.EXP._currentframe + _root.EXPGET);
} else {
_root.techtree.techpoints = _root.techtree.techpoints + 1;
_root.UI.EXP.gotoAndStop((_root.UI.EXP._currentframe + _root.EXPGET) - 100);
_root.char.spells.gotoAndStop(7);
}
bob = random(4) + 1;
if (bob == 1) {
if (_root.soundon == true) {
someSound = new Sound();
someSound.attachSound("splat1", this);
someSound.start(0, 1);
}
}
if (bob == 2) {
if (_root.soundon == true) {
someSound = new Sound();
someSound.attachSound("splat2", this);
someSound.start(0, 1);
}
}
if (bob == 3) {
if (_root.soundon == true) {
someSound = new Sound();
someSound.attachSound("splat3", this);
someSound.start(0, 1);
}
}
if (bob == 4) {
if (_root.soundon == true) {
someSound = new Sound();
someSound.attachSound("splat4", this);
someSound.start(0, 1);
}
}
Symbol 645 MovieClip Frame 25
gotoAndPlay (1);
Symbol 649 MovieClip Frame 25
if (_root.castleattack == true) {
if (_root.map.castle.hpbar._width > 10) {
_root.map.castle.hpbar._width = _root.map.castle.hpbar._width - (_root.castleattackdmg + 1);
} else {
_root.map.castle.hpbar._width = _root.map.castle.hpbar._width - _root.castleattackdmg;
}
}
Instance of Symbol 648 MovieClip in Symbol 649 MovieClip Frame 25
onClipEvent (enterFrame) {
if (_root.char.hitTest(this) and (_root.char.spells._currentframe != 3)) {
_root.UI.HP.gotoAndStop(_root.UI.HP._currentframe + 4);
}
}
Symbol 650 MovieClip Frame 1
stop();
Symbol 650 MovieClip Frame 2
stop();
Symbol 650 MovieClip Frame 3
stop();
_root.wavehold = _root.wavehold - 1;
if ((_root.UI.EXP._currentframe + _root.EXPGET) <= 100) {
_root.UI.EXP.gotoAndStop(_root.UI.EXP._currentframe + _root.EXPGET);
} else {
_root.techtree.techpoints = _root.techtree.techpoints + 1;
_root.UI.EXP.gotoAndStop((_root.UI.EXP._currentframe + _root.EXPGET) - 100);
_root.char.spells.gotoAndStop(7);
}
bob = random(4) + 1;
if (bob == 1) {
if (_root.soundon == true) {
someSound = new Sound();
someSound.attachSound("splat1", this);
someSound.start(0, 1);
}
}
if (bob == 2) {
if (_root.soundon == true) {
someSound = new Sound();
someSound.attachSound("splat2", this);
someSound.start(0, 1);
}
}
if (bob == 3) {
if (_root.soundon == true) {
someSound = new Sound();
someSound.attachSound("splat3", this);
someSound.start(0, 1);
}
}
if (bob == 4) {
if (_root.soundon == true) {
someSound = new Sound();
someSound.attachSound("splat4", this);
someSound.start(0, 1);
}
}
Symbol 677 MovieClip Frame 14
if (_root.castleattack == true) {
if (_root.map.castle.hpbar._width > 10) {
_root.map.castle.hpbar._width = _root.map.castle.hpbar._width - (_root.castleattackdmg + 4);
} else {
_root.map.castle.hpbar._width = _root.map.castle.hpbar._width - _root.castleattackdmg;
}
}
Instance of Symbol 300 MovieClip in Symbol 677 MovieClip Frame 14
onClipEvent (enterFrame) {
if (_root.char.hitTest(this) and (_root.char.spells._currentframe != 3)) {
if (_root.dir == true) {
_root.char._x = _root.char._x - 2;
}
if (_root.dir == false) {
_root.char._x = _root.char._x + 2;
}
_root.UI.HP.gotoAndStop(_root.UI.HP._currentframe + 3);
}
}
Symbol 678 MovieClip Frame 1
stop();
Symbol 678 MovieClip Frame 2
stop();
Symbol 678 MovieClip Frame 3
stop();
_root.wavehold = _root.wavehold - 1;
if ((_root.UI.EXP._currentframe + _root.EXPGET) <= 100) {
_root.UI.EXP.gotoAndStop(_root.UI.EXP._currentframe + _root.EXPGET);
} else {
_root.techtree.techpoints = _root.techtree.techpoints + 1;
_root.UI.EXP.gotoAndStop((_root.UI.EXP._currentframe + _root.EXPGET) - 100);
_root.char.spells.gotoAndStop(7);
}
bob = random(4) + 1;
if (bob == 1) {
if (_root.soundon == true) {
someSound = new Sound();
someSound.attachSound("splat1", this);
someSound.start(0, 1);
}
}
if (bob == 2) {
if (_root.soundon == true) {
someSound = new Sound();
someSound.attachSound("splat2", this);
someSound.start(0, 1);
}
}
if (bob == 3) {
if (_root.soundon == true) {
someSound = new Sound();
someSound.attachSound("splat3", this);
someSound.start(0, 1);
}
}
if (bob == 4) {
if (_root.soundon == true) {
someSound = new Sound();
someSound.attachSound("splat4", this);
someSound.start(0, 1);
}
}
Symbol 684 MovieClip Frame 30
if (!_root.pausee) {
if (_root.squiggly.SChide._currentframe == 2) {
_root.squiggly.SChide.squigglycount = _root.squiggly.SChide.squigglycount - 1;
}
if (_root.squiggly.SChide.squigglycount <= 0) {
_root.squiggly.SChide.gotoAndStop(1);
}
}
Symbol 685 MovieClip Frame 1
stop();
Symbol 685 MovieClip Frame 2
stop();
Symbol 686 MovieClip Frame 1
stop();
Symbol 686 MovieClip Frame 2
stop();
Symbol 690 MovieClip Frame 30
if (!_root.pausee) {
if (_root.one.SChide._currentframe == 2) {
_root.one.SChide.onecount = _root.one.SChide.onecount - 1;
}
if (_root.one.SChide.onecount <= 0) {
_root.one.SChide.gotoAndStop(1);
}
}
Symbol 691 MovieClip Frame 1
stop();
Symbol 691 MovieClip Frame 2
stop();
Symbol 692 MovieClip Frame 1
stop();
Symbol 692 MovieClip Frame 2
stop();
Symbol 696 MovieClip Frame 30
if (!_root.pausee) {
if (_root.two.SChide._currentframe == 2) {
_root.two.SChide.twocount = _root.two.SChide.twocount - 1;
}
if (_root.two.SChide.twocount <= 0) {
_root.two.SChide.gotoAndStop(1);
}
}
Symbol 697 MovieClip Frame 1
stop();
Symbol 697 MovieClip Frame 2
stop();
Symbol 698 MovieClip Frame 1
stop();
Symbol 698 MovieClip Frame 2
stop();
Symbol 704 MovieClip Frame 30
if (!_root.pausee) {
if (_root.three.SChide._currentframe == 2) {
_root.three.SChide.threecount = _root.three.SChide.threecount - 1;
}
if (_root.three.SChide.threecount <= 0) {
_root.three.SChide.gotoAndStop(1);
}
}
Symbol 705 MovieClip Frame 1
stop();
Symbol 705 MovieClip Frame 2
stop();
Symbol 706 MovieClip Frame 1
stop();
Symbol 706 MovieClip Frame 2
stop();
Symbol 709 MovieClip Frame 30
if (!_root.pausee) {
if (_root.four.SChide._currentframe == 2) {
_root.four.SChide.fourcount = _root.four.SChide.fourcount - 1;
}
if (_root.four.SChide.fourcount <= 0) {
_root.four.SChide.gotoAndStop(1);
}
}
Symbol 710 MovieClip Frame 1
stop();
Symbol 710 MovieClip Frame 2
stop();
Symbol 711 MovieClip Frame 1
stop();
Symbol 711 MovieClip Frame 2
stop();
Symbol 715 MovieClip Frame 30
if (!_root.pausee) {
if (_root.five.SChide._currentframe == 2) {
_root.five.SChide.fivecount = _root.five.SChide.fivecount - 1;
}
if (_root.five.SChide.fivecount <= 0) {
_root.five.SChide.gotoAndStop(1);
}
}
Symbol 716 MovieClip Frame 1
stop();
Symbol 716 MovieClip Frame 2
stop();
Symbol 717 MovieClip Frame 1
stop();
Symbol 717 MovieClip Frame 2
stop();
Symbol 724 MovieClip Frame 30
if (!_root.pausee) {
if (_root.six.SChide._currentframe == 2) {
_root.six.SChide.sixcount = _root.six.SChide.sixcount - 1;
}
if (_root.six.SChide.sixcount <= 0) {
_root.six.SChide.gotoAndStop(1);
}
}
Symbol 725 MovieClip Frame 1
stop();
Symbol 725 MovieClip Frame 2
stop();
Symbol 726 MovieClip Frame 1
stop();
Symbol 726 MovieClip Frame 2
stop();
Instance of Symbol 720 MovieClip in Symbol 726 MovieClip Frame 2
onClipEvent (load) {
this.gotoAndPlay(21);
}
Instance of Symbol 722 MovieClip in Symbol 726 MovieClip Frame 2
onClipEvent (load) {
this.gotoAndPlay(21);
}
Symbol 729 MovieClip Frame 30
if (!_root.pausee) {
if (_root.seven.SChide._currentframe == 2) {
_root.seven.SChide.sevencount = _root.seven.SChide.sevencount - 1;
}
if (_root.seven.SChide.sevencount <= 0) {
_root.seven.SChide.gotoAndStop(1);
}
}
Symbol 730 MovieClip Frame 1
stop();
Symbol 730 MovieClip Frame 2
stop();
Symbol 731 MovieClip Frame 1
stop();
Symbol 731 MovieClip Frame 2
stop();
Symbol 734 MovieClip Frame 30
if (!_root.pausee) {
if (_root.eight.SChide._currentframe == 2) {
_root.eight.SChide.eightcount = _root.eight.SChide.eightcount - 1;
}
if (_root.eight.SChide.eightcount <= 0) {
_root.eight.SChide.gotoAndStop(1);
}
}
Symbol 735 MovieClip Frame 1
stop();
Symbol 735 MovieClip Frame 2
stop();
Symbol 736 MovieClip Frame 1
stop();
Symbol 736 MovieClip Frame 2
stop();
Symbol 740 MovieClip Frame 30
if (!_root.pausee) {
if (_root.nine.SChide._currentframe == 2) {
_root.nine.SChide.ninecount = _root.nine.SChide.ninecount - 1;
}
if (_root.nine.SChide.ninecount <= 0) {
_root.nine.SChide.gotoAndStop(1);
}
}
Symbol 741 MovieClip Frame 1
stop();
Symbol 741 MovieClip Frame 2
stop();
Symbol 742 MovieClip Frame 1
stop();
Symbol 742 MovieClip Frame 2
stop();
Symbol 745 MovieClip Frame 30
if (!_root.pausee) {
if (_root.zero.SChide._currentframe == 2) {
_root.zero.SChide.zerocount = _root.zero.SChide.zerocount - 1;
}
if (_root.zero.SChide.zerocount <= 0) {
_root.zero.SChide.gotoAndStop(1);
}
}
Symbol 746 MovieClip Frame 1
stop();
Symbol 746 MovieClip Frame 2
stop();
Symbol 747 MovieClip Frame 1
stop();
Symbol 747 MovieClip Frame 2
stop();
Symbol 767 MovieClip Frame 1
stop();
Symbol 767 MovieClip Frame 2
stop();
Symbol 768 MovieClip Frame 1
stop();
Symbol 768 MovieClip Frame 2
stop();
Symbol 774 MovieClip Frame 1
stop();
Symbol 774 MovieClip Frame 2
stop();
Symbol 774 MovieClip Frame 3
stop();
Symbol 781 MovieClip Frame 1
stop();
Symbol 781 MovieClip Frame 2
stop();
Symbol 781 MovieClip Frame 3
stop();
Symbol 783 MovieClip Frame 1
stop();
Symbol 783 MovieClip Frame 2
stop();
Symbol 783 MovieClip Frame 3
stop();
Symbol 785 MovieClip Frame 1
stop();
Symbol 785 MovieClip Frame 2
stop();
Symbol 785 MovieClip Frame 3
stop();
Symbol 787 MovieClip Frame 1
stop();
Symbol 787 MovieClip Frame 2
stop();
Symbol 787 MovieClip Frame 3
stop();
Symbol 789 MovieClip Frame 1
stop();
Instance of Symbol 720 MovieClip in Symbol 789 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(21);
}
Instance of Symbol 722 MovieClip in Symbol 789 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndPlay(21);
}
Symbol 789 MovieClip Frame 2
stop();
Symbol 789 MovieClip Frame 3
stop();
Symbol 791 MovieClip Frame 1
stop();
Symbol 791 MovieClip Frame 2
sstop();
Symbol 791 MovieClip Frame 3
stop();
Symbol 793 MovieClip Frame 1
stop();
Symbol 793 MovieClip Frame 2
stop();
Symbol 793 MovieClip Frame 3
stop();
Symbol 795 MovieClip Frame 1
stop();
Symbol 795 MovieClip Frame 2
stop();
Symbol 795 MovieClip Frame 3
stop();
Instance of Symbol 767 MovieClip "fireball" in Symbol 796 MovieClip Frame 1
on (press) {
if ((_root.techtree.techpoints >= 1) and (_currentframe == 1)) {
this.gotoAndStop(2);
_root.techtree.techpoints = _root.techtree.techpoints - 1;
_root.squiggly.gotoAndStop(2);
}
}
Instance of Symbol 768 MovieClip "lowheal" in Symbol 796 MovieClip Frame 1
on (press) {
if ((_root.techtree.techpoints >= 1) and (_currentframe == 1)) {
this.gotoAndStop(2);
_root.techtree.techpoints = _root.techtree.techpoints - 1;
_root.one.gotoAndStop(2);
}
}
Instance of Symbol 774 MovieClip "firewall" in Symbol 796 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((_root.techtree.fireball._currentframe == 2) and (_currentframe != 3)) {
this.gotoAndStop(2);
}
}
on (press) {
if ((_root.techtree.techpoints >= 1) and (_currentframe == 2)) {
this.gotoAndStop(3);
_root.techtree.techpoints = _root.techtree.techpoints - 1;
_root.two.gotoAndStop(2);
}
}
Instance of Symbol 781 MovieClip "fuel" in Symbol 796 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((_root.techtree.fireball._currentframe == 2) and (_currentframe != 3)) {
this.gotoAndStop(2);
}
}
on (press) {
if ((_root.techtree.techpoints >= 1) and (_currentframe == 2)) {
this.gotoAndStop(3);
_root.techtree.techpoints = _root.techtree.techpoints - 1;
_root.three.gotoAndStop(2);
}
}
Instance of Symbol 783 MovieClip "armour" in Symbol 796 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((_root.techtree.lowheal._currentframe == 2) and (_currentframe != 3)) {
this.gotoAndStop(2);
}
}
on (press) {
if ((_root.techtree.techpoints >= 1) and (_currentframe == 2)) {
this.gotoAndStop(3);
_root.techtree.techpoints = _root.techtree.techpoints - 1;
_root.four.gotoAndStop(2);
}
}
Instance of Symbol 785 MovieClip "greatheal" in Symbol 796 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((_root.techtree.lowheal._currentframe == 2) and (_currentframe != 3)) {
this.gotoAndStop(2);
}
}
on (press) {
if ((_root.techtree.techpoints >= 1) and (_currentframe == 2)) {
this.gotoAndStop(3);
_root.techtree.techpoints = _root.techtree.techpoints - 1;
_root.five.gotoAndStop(2);
}
}
Instance of Symbol 787 MovieClip "satanstouch" in Symbol 796 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((_root.techtree.meteor._currentframe == 3) and (_currentframe != 3)) {
this.gotoAndStop(2);
}
}
on (press) {
if ((_root.techtree.techpoints >= 1) and (_currentframe == 2)) {
this.gotoAndStop(3);
_root.techtree.techpoints = _root.techtree.techpoints - 1;
_root.nine.gotoAndStop(2);
}
}
Instance of Symbol 789 MovieClip "meteor" in Symbol 796 MovieClip Frame 1
onClipEvent (enterFrame) {
if (((_root.techtree.firewall._currentframe == 3) and (_root.techtree.fuel._currentframe == 3)) and (_currentframe != 3)) {
this.gotoAndStop(2);
}
}
on (press) {
if ((_root.techtree.techpoints >= 1) and (_currentframe == 2)) {
this.gotoAndStop(3);
_root.techtree.techpoints = _root.techtree.techpoints - 1;
_root.six.gotoAndStop(2);
}
}
Instance of Symbol 791 MovieClip in Symbol 796 MovieClip Frame 1
onClipEvent (enterFrame) {
if (((((_root.techtree.armour._currentframe == 3) and (_root.techtree.greatheal._currentframe == 3)) and (_currentframe != 3)) and (_root.techtree.firewall._currentframe == 3)) and (_root.techtree.fuel._currentframe == 3)) {
this.gotoAndStop(2);
}
}
on (press) {
if ((_root.techtree.techpoints >= 1) and (_currentframe == 2)) {
this.gotoAndStop(3);
_root.techtree.techpoints = _root.techtree.techpoints - 1;
_root.seven.gotoAndStop(2);
}
}
Instance of Symbol 793 MovieClip "lightning" in Symbol 796 MovieClip Frame 1
onClipEvent (enterFrame) {
if (((_root.techtree.armour._currentframe == 3) and (_root.techtree.greatheal._currentframe == 3)) and (_currentframe != 3)) {
this.gotoAndStop(2);
}
}
on (press) {
if ((_root.techtree.techpoints >= 1) and (_currentframe == 2)) {
this.gotoAndStop(3);
_root.techtree.techpoints = _root.techtree.techpoints - 1;
_root.eight.gotoAndStop(2);
}
}
Instance of Symbol 795 MovieClip in Symbol 796 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((_root.techtree.lightning._currentframe == 3) and (_currentframe != 3)) {
this.gotoAndStop(2);
}
}
on (press) {
if ((_root.techtree.techpoints >= 1) and (_currentframe == 2)) {
this.gotoAndStop(3);
_root.techtree.techpoints = _root.techtree.techpoints - 1;
_root.zero.gotoAndStop(2);
}
}
Symbol 804 MovieClip Frame 1
stop();
Symbol 804 MovieClip Frame 2
stop();
Symbol 804 MovieClip Frame 3
stop();
Symbol 804 MovieClip Frame 4
stop();
Symbol 804 MovieClip Frame 5
stop();
Symbol 804 MovieClip Frame 6
stop();
Symbol 804 MovieClip Frame 7
stop();
Symbol 809 MovieClip Frame 1
stop();
Symbol 812 MovieClip Frame 1
stop();
Symbol 824 MovieClip Frame 1
stop();
Symbol 824 MovieClip Frame 2
stop();
Symbol 826 MovieClip Frame 1
stop();
Symbol 826 MovieClip Frame 2
stop();
Instance of Symbol 824 MovieClip in Symbol 828 MovieClip Frame 1
on (press) {
if (_currentframe == 1) {
this.gotoAndStop(2);
_root.soundon = false;
} else if (_currentframe == 2) {
this.gotoAndStop(1);
_root.soundon = true;
}
}
Instance of Symbol 826 MovieClip in Symbol 828 MovieClip Frame 1
on (press) {
if (_currentframe == 1) {
this.gotoAndStop(2);
stopAllSounds();
_root.musicon = false;
} else if (_currentframe == 2) {
this.gotoAndStop(1);
_root.musicon = true;
if (_root.musicon == true) {
someSound = new Sound();
someSound.attachSound("gamemusic", this);
someSound.start(0, 999999);
}
}
}
Symbol 829 MovieClip Frame 50
stop();
Symbol 836 Button
on (press) {
stopAllSounds();
_root.gotoAndStop(5);
}
Symbol 838 MovieClip Frame 50
stop();