Frame 1
_root.top = 1;
_root.bottom = 1;
_root.windows = 1;
Stage.showMenu = false;
Frame 2
Object.prototype.setCookie = function (c, n, v) {
var _local1 = SharedObject.getLocal(c);
_local1.data[n] = v;
_local1.flush();
};
Object.prototype.getCookie = function (c, n) {
var _local1 = SharedObject.getLocal(c);
return(_local1.data[n]);
};
_root.gotWall = 0;
_root.manaNow = 80;
_root.swordpower = 0;
_root.axepower = 0;
_root.macepower = 0;
_root.cursyStr = 0;
_root.vari = 1;
_root.varib = 1;
_root.varic = 1;
_root.varid = 1;
_root.varie = 1;
_root.varif = 1;
_root.varig = 1;
_root.varih = 1;
_root.varii = 1;
_root.varij = 1;
_root.varik = 1;
_root.varim = 1;
_root.varin = 1;
_root.vario = 1;
_root.varip = 0;
_root.variq = 0;
_root.varir = 0;
_root.varis = 1;
_root.maxMana = _root.manaNow;
_root.castleHp = 500;
_root.castleMaxHp = _root.castleHp;
_root.menOut = 0;
_root.poisSpell = 0;
_root.level = 1;
_root.moThing = 1;
_root.nukeSpell = 0;
_root.axeSpell = 0;
_root.ballSpell = 0;
_root.killSpell = 0;
_root.metSpell = 0;
_root.maceSpell = 0;
_root.healSpell = 0;
_root.rockSpell = 0;
_root.swordSpell = 0;
_root.moMoney = 0;
_root.money = 850;
_root.enemyOut = 0;
_root.moEnemys = 4;
_root.moSpeed = 0;
_root.alreadySaved1 = getCookie("database1", "iteem1");
_root.alreadySaved2 = getCookie("database2", "iteem1");
_root.alreadySaved3 = getCookie("database3", "iteem1");
stop();
Instance of Symbol 39 MovieClip "cast1" in Frame 2
onClipEvent (enterFrame) {
if (_root.castleHp <= 0) {
gotoAndStop (2);
}
}
onClipEvent (enterFrame) {
if (_root.castleHp <= 50) {
gotoAndStop (3);
}
}
Frame 4
Object.prototype.setCookie = function (c, n, v) {
var _local1 = SharedObject.getLocal(c);
_local1.data[n] = v;
_local1.flush();
};
Object.prototype.getCookie = function (c, n) {
var _local1 = SharedObject.getLocal(c);
return(_local1.data[n]);
};
_root.alreadySaved1 = getCookie("database1", "iteem1");
_root.alreadySaved2 = getCookie("database2", "iteem1");
_root.alreadySaved3 = getCookie("database3", "iteem1");
stop();
Instance of Symbol 39 MovieClip "cast1" in Frame 4
onClipEvent (enterFrame) {
if (_root.castleHp <= 0) {
gotoAndStop (2);
}
}
onClipEvent (enterFrame) {
if (_root.castleHp <= 50) {
gotoAndStop (3);
}
}
Frame 6
stopAllSounds();
Frame 7
if ((((_root.alreadySaved1 == 1) || (_root.alreadySaved2 == 1)) || (_root.alreadySaved3 == 1)) && (_root.loadedIt == 1)) {
if (_root.healSpell == 1) {
_root.restoreHp._visible = true;
}
if (_root.axeSpell == 1) {
_root.summon_Axe._visible = true;
}
if (_root.maceSpell == 1) {
_root.summon_Mace._visible = true;
}
if (_root.metSpell == 1) {
_root.meteora._visible = true;
}
if (_root.ballSpell == 1) {
_root.flameB._visible = true;
}
if (_root.swordSpell == 1) {
_root.summon_Sword._visible = true;
}
if (_root.rockSpell == 1) {
_root.bigRock._visible = true;
}
if (_root.killSpell == 1) {
_root.instaKill._visible = true;
}
if (_root.poisSpell == 1) {
_root.poisonF._visible = true;
}
if (_root.nukeSpell == 1) {
_root.nuke._visible = true;
}
if (_root.gotFarm == 1) {
_root.farm._visible = true;
}
if (_root.oasisUpgrade == 1) {
_root.oasis._visible = true;
}
if (_root.gotTower == 1) {
_root.tower._visible = true;
}
if (_root.gotWall == 1) {
_root.wall2._visible = true;
}
_root.buyMenu._visible = true;
} else {
_root.enemyOut = 0;
while (_root.enemyOut < 3) {
_root.enemyOut = _root.enemyOut + 1;
duplicateMovieClip (_root.enemy, "enemy" + _root.enemyOut, _root.enemyOut);
_root["enemy" + _root.enemyOut].activate = 1;
}
}
stop();
Instance of Symbol 324 MovieClip "enemy" in Frame 7
onClipEvent (enterFrame) {
if (_root.castleLife <= 0) {
this.removeMovieClip();
}
}
onClipEvent (load) {
this.outty = 1;
typeEnemy = random(4) + 1;
switch (typeEnemy) {
case 1 :
this.gotoAndPlay(5);
break;
case 2 :
this.gotoAndPlay(5);
break;
case 3 :
this.gotoAndPlay(5);
break;
case 4 :
this.gotoAndPlay(5);
}
}
Instance of Symbol 387 MovieClip "fogF" in Frame 7
onClipEvent (load) {
this._visible = false;
this.stop();
}
Instance of Symbol 389 MovieClip "tower" in Frame 7
onClipEvent (load) {
if (_root.gotTower != 1) {
_root.tower._visible = false;
}
}
Instance of Symbol 39 MovieClip "cast1" in Frame 7
onClipEvent (enterFrame) {
if (_root.castleHp <= 0) {
gotoAndStop (8);
}
}
onClipEvent (enterFrame) {
if (_root.castleHp <= 50) {
gotoAndStop (9);
}
}
Instance of Symbol 391 MovieClip "wall2" in Frame 7
onClipEvent (load) {
if (_root.gotWall != 1) {
_root.wall2._visible = false;
}
}
Instance of Symbol 401 MovieClip "flame_ball" in Frame 7
onClipEvent (load) {
this._visible = false;
this.gotoAndStop(34);
}
Instance of Symbol 419 MovieClip "hpRestore" in Frame 7
onClipEvent (load) {
_root.hpRestore._visible = false;
}
Instance of Symbol 426 MovieClip "meteorM" in Frame 7
onClipEvent (load) {
this._visible = false;
this.stop();
}
Instance of Symbol 429 MovieClip "instakilla" in Frame 7
onClipEvent (load) {
this._visible = false;
this.stop();
}
Instance of Symbol 431 MovieClip "summonaxe" in Frame 7
onClipEvent (load) {
this._visible = false;
this.stop();
}
onClipEvent (enterFrame) {
if (this._x < 38.3) {
this._x = 39.9;
}
if (this._x > 253.5) {
this._x = 250;
}
rand = random(2) + 1;
switch (rand) {
case 1 :
this._x = this._x + 8;
break;
case 2 :
this._x = this._x - 4;
break;
case 3 :
this._x = this._x + (random(-4) + 8);
}
}
Instance of Symbol 433 MovieClip "summonmace" in Frame 7
onClipEvent (load) {
this._visible = false;
this.stop();
}
onClipEvent (enterFrame) {
if (this._x < 38.3) {
this._x = 39.9;
}
if (this._x > 253.5) {
this._x = 250;
}
rand = random(2) + 1;
switch (rand) {
case 1 :
this._x = this._x + 8;
break;
case 2 :
this._x = this._x - 4;
break;
case 3 :
this._x = this._x + (random(-4) + 8);
}
}
Instance of Symbol 435 MovieClip "summonsword" in Frame 7
onClipEvent (load) {
this._visible = false;
this.stop();
}
onClipEvent (enterFrame) {
if (this._x < 38.3) {
this._x = 39.9;
}
if (this._x > 253.5) {
this._x = 250;
}
rand = random(2) + 1;
switch (rand) {
case 1 :
this._x = this._x + 8;
break;
case 2 :
this._x = this._x - 4;
break;
case 3 :
this._x = this._x + (random(-4) + 8);
}
}
Instance of Symbol 440 MovieClip "nukeN" in Frame 7
onClipEvent (load) {
this._visible = false;
this.gotoAndStop(71);
}
Instance of Symbol 442 MovieClip "bigR" in Frame 7
onClipEvent (load) {
this._visible = false;
this.stop();
}
Instance of Symbol 562 MovieClip "buyMenu" in Frame 7
onClipEvent (load) {
if (_root.loadedIt != 1) {
this._visible = false;
}
}
Instance of Symbol 567 MovieClip "gameOvey" in Frame 7
onClipEvent (load) {
this._visible = false;
}
Symbol 10 Button
on (release) {
_root.play();
}
Symbol 11 MovieClip Frame 31
stop();
Symbol 12 MovieClip Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
setProperty(bar, _xscale , PercentLoaded);
} else {
gotoAndStop ("loaded");
}
Symbol 12 MovieClip Frame 2
gotoAndPlay (1);
Symbol 17 Button
on (press) {
getURL ("http://www.antitudegames.com", "_blank");
}
Symbol 39 MovieClip Frame 1
stop();
Instance of Symbol 25 MovieClip "bot" in Symbol 39 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.bottom);
}
Instance of Symbol 28 MovieClip "wind" in Symbol 39 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.windows);
}
Instance of Symbol 36 MovieClip "tipo" in Symbol 39 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.top);
}
Symbol 39 MovieClip Frame 2
stop();
Symbol 39 MovieClip Frame 3
stop();
Symbol 47 Button
on (release) {
_root.gotoAndStop(4);
}
Symbol 50 Button
on (release) {
_root.gotoAndPlay(6);
}
Symbol 52 Button
on (release) {
_root.gotoAndStop(3);
}
Symbol 54 Button
on (release) {
_root.gotoAndStop(5);
}
Symbol 56 Button
on (press) {
getURL ("http://www.antitudegames.com/defend2.exe", "_blank");
}
Symbol 59 MovieClip Frame 15
stop();
Symbol 65 MovieClip Frame 1
stopAllSounds();
Symbol 65 MovieClip Frame 2
stop();
Symbol 70 Button
on (release) {
gotoAndStop (2);
}
Symbol 75 Button
on (press, release) {
if (_root.alreadySaved1 == 1) {
hoe = 1;
_root.loadedIt = 1;
_root.healSpell = getCookie("database" + hoe, "iteem2");
_root.axeSpell = getCookie("database" + hoe, "iteem3");
_root.maceSpell = getCookie("database" + hoe, "iteem4");
_root.metSpell = getCookie("database" + hoe, "iteem5");
_root.ballSpell = getCookie("database" + hoe, "iteem6");
_root.swordSpell = getCookie("database" + hoe, "iteem7");
_root.rockSpell = getCookie("database" + hoe, "iteem8");
_root.killSpell = getCookie("database" + hoe, "iteem9");
_root.poisSpell = getCookie("database" + hoe, "iteem10");
_root.nukeSpell = getCookie("database" + hoe, "iteem11");
_root.cursyStr = getCookie("database" + hoe, "iteem12");
_root.gotFarm = getCookie("database" + hoe, "iteem13");
_root.oasisUpgrade = getCookie("database" + hoe, "iteem14");
_root.gotTower = getCookie("database" + hoe, "iteem15");
_root.gotWall = getCookie("database" + hoe, "iteem16");
_root.maxMana = getCookie("database" + hoe, "iteem17");
_root.castleMaxHp = getCookie("database" + hoe, "iteem18");
_root.castleHp = getCookie("database" + hoe, "iteem19");
_root.manaNow = getCookie("database" + hoe, "iteem20");
_root.moMoney = getCookie("database" + hoe, "iteem21");
_root.level = getCookie("database" + hoe, "iteem22");
_root.moEnemys = getCookie("database" + hoe, "iteem23");
_root.money = getCookie("database" + hoe, "iteem24");
_root.play();
}
}
Symbol 77 Button
on (press, release) {
if (_root.alreadySaved2 == 1) {
hoe = 2;
_root.loadedIt = 1;
_root.healSpell = getCookie("database" + hoe, "iteem2");
_root.axeSpell = getCookie("database" + hoe, "iteem3");
_root.maceSpell = getCookie("database" + hoe, "iteem4");
_root.metSpell = getCookie("database" + hoe, "iteem5");
_root.ballSpell = getCookie("database" + hoe, "iteem6");
_root.swordSpell = getCookie("database" + hoe, "iteem7");
_root.rockSpell = getCookie("database" + hoe, "iteem8");
_root.killSpell = getCookie("database" + hoe, "iteem9");
_root.poisSpell = getCookie("database" + hoe, "iteem10");
_root.nukeSpell = getCookie("database" + hoe, "iteem11");
_root.cursyStr = getCookie("database" + hoe, "iteem12");
_root.gotFarm = getCookie("database" + hoe, "iteem13");
_root.oasisUpgrade = getCookie("database" + hoe, "iteem14");
_root.gotTower = getCookie("database" + hoe, "iteem15");
_root.gotWall = getCookie("database" + hoe, "iteem16");
_root.maxMana = getCookie("database" + hoe, "iteem17");
_root.castleMaxHp = getCookie("database" + hoe, "iteem18");
_root.castleHp = getCookie("database" + hoe, "iteem19");
_root.manaNow = getCookie("database" + hoe, "iteem20");
_root.moMoney = getCookie("database" + hoe, "iteem21");
_root.level = getCookie("database" + hoe, "iteem22");
_root.moEnemys = getCookie("database" + hoe, "iteem23");
_root.money = getCookie("database" + hoe, "iteem24");
_root.play();
}
}
Symbol 79 Button
on (press, release) {
if (_root.alreadySaved3 == 1) {
hoe = 3;
_root.loadedIt = 1;
_root.healSpell = getCookie("database" + hoe, "iteem2");
_root.axeSpell = getCookie("database" + hoe, "iteem3");
_root.maceSpell = getCookie("database" + hoe, "iteem4");
_root.metSpell = getCookie("database" + hoe, "iteem5");
_root.ballSpell = getCookie("database" + hoe, "iteem6");
_root.swordSpell = getCookie("database" + hoe, "iteem7");
_root.rockSpell = getCookie("database" + hoe, "iteem8");
_root.killSpell = getCookie("database" + hoe, "iteem9");
_root.poisSpell = getCookie("database" + hoe, "iteem10");
_root.nukeSpell = getCookie("database" + hoe, "iteem11");
_root.cursyStr = getCookie("database" + hoe, "iteem12");
_root.gotFarm = getCookie("database" + hoe, "iteem13");
_root.oasisUpgrade = getCookie("database" + hoe, "iteem14");
_root.gotTower = getCookie("database" + hoe, "iteem15");
_root.gotWall = getCookie("database" + hoe, "iteem16");
_root.maxMana = getCookie("database" + hoe, "iteem17");
_root.castleMaxHp = getCookie("database" + hoe, "iteem18");
_root.castleHp = getCookie("database" + hoe, "iteem19");
_root.manaNow = getCookie("database" + hoe, "iteem20");
_root.moMoney = getCookie("database" + hoe, "iteem21");
_root.level = getCookie("database" + hoe, "iteem22");
_root.moEnemys = getCookie("database" + hoe, "iteem23");
_root.money = getCookie("database" + hoe, "iteem24");
_root.play();
}
}
Symbol 82 Button
on (press, release) {
if (_root.alreadySaved1 == 1) {
hoe = 1;
_root.loadedIt = 1;
_root.healSpell = getCookie("database" + hoe, "iteem2");
_root.axeSpell = getCookie("database" + hoe, "iteem3");
_root.maceSpell = getCookie("database" + hoe, "iteem4");
_root.metSpell = getCookie("database" + hoe, "iteem5");
_root.ballSpell = getCookie("database" + hoe, "iteem6");
_root.swordSpell = getCookie("database" + hoe, "iteem7");
_root.rockSpell = getCookie("database" + hoe, "iteem8");
_root.killSpell = getCookie("database" + hoe, "iteem9");
_root.poisSpell = getCookie("database" + hoe, "iteem10");
_root.nukeSpell = getCookie("database" + hoe, "iteem11");
_root.cursyStr = getCookie("database" + hoe, "iteem12");
_root.gotFarm = getCookie("database" + hoe, "iteem13");
_root.oasisUpgrade = getCookie("database" + hoe, "iteem14");
_root.gotTower = getCookie("database" + hoe, "iteem15");
_root.gotWall = getCookie("database" + hoe, "iteem16");
_root.maxMana = getCookie("database" + hoe, "iteem17");
_root.castleMaxHp = getCookie("database" + hoe, "iteem18");
_root.castleHp = getCookie("database" + hoe, "iteem19");
_root.manaNow = getCookie("database" + hoe, "iteem20");
_root.moMoney = getCookie("database" + hoe, "iteem21");
_root.level = getCookie("database" + hoe, "iteem22");
_root.moEnemys = getCookie("database" + hoe, "iteem23");
_root.money = getCookie("database" + hoe, "iteem24");
_root.moSpeed = getCookie("database" + hoe, "iteem25");
_root.moThing = getCookie("database" + hoe, "iteem26");
_root.gotoAndPlay(6);
}
}
Symbol 83 Button
on (press, release) {
if (_root.alreadySaved2 == 1) {
hoe = 2;
_root.loadedIt = 1;
_root.healSpell = getCookie("database" + hoe, "iteem2");
_root.axeSpell = getCookie("database" + hoe, "iteem3");
_root.maceSpell = getCookie("database" + hoe, "iteem4");
_root.metSpell = getCookie("database" + hoe, "iteem5");
_root.ballSpell = getCookie("database" + hoe, "iteem6");
_root.swordSpell = getCookie("database" + hoe, "iteem7");
_root.rockSpell = getCookie("database" + hoe, "iteem8");
_root.killSpell = getCookie("database" + hoe, "iteem9");
_root.poisSpell = getCookie("database" + hoe, "iteem10");
_root.nukeSpell = getCookie("database" + hoe, "iteem11");
_root.cursyStr = getCookie("database" + hoe, "iteem12");
_root.gotFarm = getCookie("database" + hoe, "iteem13");
_root.oasisUpgrade = getCookie("database" + hoe, "iteem14");
_root.gotTower = getCookie("database" + hoe, "iteem15");
_root.gotWall = getCookie("database" + hoe, "iteem16");
_root.maxMana = getCookie("database" + hoe, "iteem17");
_root.castleMaxHp = getCookie("database" + hoe, "iteem18");
_root.castleHp = getCookie("database" + hoe, "iteem19");
_root.manaNow = getCookie("database" + hoe, "iteem20");
_root.moMoney = getCookie("database" + hoe, "iteem21");
_root.level = getCookie("database" + hoe, "iteem22");
_root.moEnemys = getCookie("database" + hoe, "iteem23");
_root.money = getCookie("database" + hoe, "iteem24");
_root.moSpeed = getCookie("database" + hoe, "iteem25");
_root.moThing = getCookie("database" + hoe, "iteem26");
_root.gotoAndPlay(6);
}
}
Symbol 84 Button
on (press, release) {
if (_root.alreadySaved3 == 1) {
hoe = 3;
_root.loadedIt = 1;
_root.healSpell = getCookie("database" + hoe, "iteem2");
_root.axeSpell = getCookie("database" + hoe, "iteem3");
_root.maceSpell = getCookie("database" + hoe, "iteem4");
_root.metSpell = getCookie("database" + hoe, "iteem5");
_root.ballSpell = getCookie("database" + hoe, "iteem6");
_root.swordSpell = getCookie("database" + hoe, "iteem7");
_root.rockSpell = getCookie("database" + hoe, "iteem8");
_root.killSpell = getCookie("database" + hoe, "iteem9");
_root.poisSpell = getCookie("database" + hoe, "iteem10");
_root.nukeSpell = getCookie("database" + hoe, "iteem11");
_root.cursyStr = getCookie("database" + hoe, "iteem12");
_root.gotFarm = getCookie("database" + hoe, "iteem13");
_root.oasisUpgrade = getCookie("database" + hoe, "iteem14");
_root.gotTower = getCookie("database" + hoe, "iteem15");
_root.gotWall = getCookie("database" + hoe, "iteem16");
_root.maxMana = getCookie("database" + hoe, "iteem17");
_root.castleMaxHp = getCookie("database" + hoe, "iteem18");
_root.castleHp = getCookie("database" + hoe, "iteem19");
_root.manaNow = getCookie("database" + hoe, "iteem20");
_root.moMoney = getCookie("database" + hoe, "iteem21");
_root.level = getCookie("database" + hoe, "iteem22");
_root.moEnemys = getCookie("database" + hoe, "iteem23");
_root.money = getCookie("database" + hoe, "iteem24");
_root.moSpeed = getCookie("database" + hoe, "iteem25");
_root.moThing = getCookie("database" + hoe, "iteem26");
_root.gotoAndPlay(6);
}
}
Symbol 85 Button
on (release) {
play();
}
Symbol 86 MovieClip Frame 29
stop();
Symbol 86 MovieClip Frame 46
_root.gotoAndStop(2);
Symbol 89 Button
on (release) {
_root.top = _root.top + 1;
if (_root.top > 7) {
_root.top = 1;
}
_root.cast1.tipo.gotoAndStop(_root.top);
}
Symbol 91 Button
on (release) {
_root.windows = _root.windows + 1;
if (_root.windows > 2) {
_root.windows = 1;
}
_root.cast1.wind.gotoAndStop(_root.windows);
}
Symbol 93 Button
on (release) {
_root.bottom = _root.bottom + 1;
if (_root.bottom > 4) {
_root.bottom = 1;
}
_root.cast1.bot.gotoAndStop(_root.bottom);
}
Symbol 98 Button
on (release) {
_root.gotoAndStop(2);
}
Symbol 103 MovieClip Frame 1
backy = random(4) + 1;
switch (backy) {
case 1 :
break;
case 2 :
gotoAndStop (2);
break;
case 3 :
gotoAndStop (3);
break;
case 4 :
gotoAndStop (4);
}
stop();
Symbol 115 MovieClip Frame 1
hp = (_parent._parent.life / _parent._parent.maxLife) * 100;
if (_parent._parent.life <= 0) {
_parent._parent.life = 0;
this.gotoAndStop(3);
_parent.gotoAndPlay("dead");
}
if (hp != 100) {
setProperty(bar2, _xscale , hp);
}
Symbol 115 MovieClip Frame 2
gotoAndPlay (1);
Instance of Symbol 115 MovieClip "meny" in Symbol 161 MovieClip Frame 1
onClipEvent (load) {
life = random(20) + 5;
maxLife = life;
}
Symbol 161 MovieClip Frame 20
gotoAndPlay (1);
Symbol 161 MovieClip Frame 38
if (_parent.die == 1) {
gotoAndPlay ("dead");
} else {
_root.castleHp = _root.castleHp - (((random(2 + (_root.level * 1)) + 3) + _root.level) - (_root.gotWall * random(4)));
}
Symbol 161 MovieClip Frame 45
if (_parent.attack == 0) {
_parent.attacked = 0;
gotoAndPlay (1);
} else {
gotoAndPlay (21);
}
Symbol 161 MovieClip Frame 80
stop();
_root.enemyOut = _root.enemyOut - 1;
_root.money = _root.money + ((random(3 + _root.moMoney) + 2) + _root.moMoney);
if (_root.enemyOut <= 0) {
_root.buyMenu._visible = true;
}
_parent.removeMovieClip();
Symbol 213 MovieClip Frame 1
if (this.hitTest(_root.cast1)) {
gotoAndPlay (41);
}
Instance of Symbol 115 MovieClip "meny" in Symbol 213 MovieClip Frame 1
onClipEvent (load) {
life = random(20) + 5;
maxLife = life;
}
Symbol 213 MovieClip Frame 2
if (this.hitTest(_root.cast1)) {
gotoAndPlay (41);
}
Symbol 213 MovieClip Frame 3
if (this.hitTest(_root.cast1)) {
gotoAndPlay (41);
}
Symbol 213 MovieClip Frame 4
if (this.hitTest(_root.cast1)) {
gotoAndPlay (41);
}
Symbol 213 MovieClip Frame 5
if (this.hitTest(_root.cast1)) {
gotoAndPlay (41);
}
Symbol 213 MovieClip Frame 6
if (this.hitTest(_root.cast1)) {
gotoAndPlay (41);
}
Symbol 213 MovieClip Frame 7
if (this.hitTest(_root.cast1)) {
gotoAndPlay (41);
}
Symbol 213 MovieClip Frame 8
if (this.hitTest(_root.cast1)) {
gotoAndPlay (41);
}
Symbol 213 MovieClip Frame 9
if (this.hitTest(_root.cast1)) {
gotoAndPlay (41);
}
Symbol 213 MovieClip Frame 10
if (this.hitTest(_root.cast1)) {
gotoAndPlay (41);
}
Symbol 213 MovieClip Frame 11
if (this.hitTest(_root.cast1)) {
gotoAndPlay (41);
}
Symbol 213 MovieClip Frame 12
if (this.hitTest(_root.cast1)) {
gotoAndPlay (41);
}
Symbol 213 MovieClip Frame 13
if (this.hitTest(_root.cast1)) {
gotoAndPlay (41);
}
Symbol 213 MovieClip Frame 14
if (this.hitTest(_root.cast1)) {
gotoAndPlay (41);
}
Symbol 213 MovieClip Frame 15
if (this.hitTest(_root.cast1)) {
gotoAndPlay (41);
}
Symbol 213 MovieClip Frame 16
if (this.hitTest(_root.cast1)) {
gotoAndPlay (41);
}
Symbol 213 MovieClip Frame 17
if (this.hitTest(_root.cast1)) {
gotoAndPlay (41);
}
Symbol 213 MovieClip Frame 18
if (this.hitTest(_root.cast1)) {
gotoAndPlay (41);
}
Symbol 213 MovieClip Frame 19
if (this.hitTest(_root.cast1)) {
gotoAndPlay (41);
}
Symbol 213 MovieClip Frame 20
if (this.hitTest(_root.cast1)) {
gotoAndPlay (41);
}
Symbol 213 MovieClip Frame 21
if (this.hitTest(_root.cast1)) {
gotoAndPlay (41);
}
Symbol 213 MovieClip Frame 22
if (this.hitTest(_root.cast1)) {
gotoAndPlay (41);
}
Symbol 213 MovieClip Frame 23
if (this.hitTest(_root.cast1)) {
gotoAndPlay (41);
}
Symbol 213 MovieClip Frame 24
if (this.hitTest(_root.cast1)) {
gotoAndPlay (41);
}
Symbol 213 MovieClip Frame 25
if (this.hitTest(_root.cast1)) {
gotoAndPlay (41);
}
Symbol 213 MovieClip Frame 26
if (this.hitTest(_root.cast1)) {
gotoAndPlay (41);
}
Symbol 213 MovieClip Frame 27
if (this.hitTest(_root.cast1)) {
gotoAndPlay (41);
}
Symbol 213 MovieClip Frame 28
if (this.hitTest(_root.cast1)) {
gotoAndPlay (41);
}
Symbol 213 MovieClip Frame 29
if (this.hitTest(_root.cast1)) {
gotoAndPlay (41);
}
Symbol 213 MovieClip Frame 30
if (this.hitTest(_root.cast1)) {
gotoAndPlay (41);
}
Symbol 213 MovieClip Frame 31
if (this.hitTest(_root.cast1)) {
gotoAndPlay (41);
}
Symbol 213 MovieClip Frame 32
if (this.hitTest(_root.cast1)) {
gotoAndPlay (41);
}
Symbol 213 MovieClip Frame 33
if (this.hitTest(_root.cast1)) {
gotoAndPlay (41);
}
Symbol 213 MovieClip Frame 34
if (this.hitTest(_root.cast1)) {
gotoAndPlay (41);
}
Symbol 213 MovieClip Frame 35
if (this.hitTest(_root.cast1)) {
gotoAndPlay (41);
}
Symbol 213 MovieClip Frame 36
if (this.hitTest(_root.cast1)) {
gotoAndPlay (41);
}
Symbol 213 MovieClip Frame 37
if (this.hitTest(_root.cast1)) {
gotoAndPlay (41);
}
Symbol 213 MovieClip Frame 38
if (this.hitTest(_root.cast1)) {
gotoAndPlay (41);
}
Symbol 213 MovieClip Frame 39
if (this.hitTest(_root.cast1)) {
gotoAndPlay (41);
}
Symbol 213 MovieClip Frame 40
gotoAndPlay (1);
Symbol 213 MovieClip Frame 78
if (_parent.die == 1) {
gotoAndPlay ("dead");
} else {
_root.castleHp = _root.castleHp - (1 + random(4 + _root.level));
}
Symbol 213 MovieClip Frame 92
if (_parent.attack == 0) {
_parent.attacked = 0;
gotoAndPlay (1);
} else {
gotoAndPlay (41);
}
Symbol 213 MovieClip Frame 150
stop();
_root.enemyOut = _root.enemyOut - 1;
_root.money = _root.money + ((random(3 + _root.moMoney) + 2) + _root.moMoney);
if (_root.enemyOut <= 0) {
_root.buyMenu._visible = true;
}
_parent.removeMovieClip();
Symbol 279 MovieClip Frame 1
if (this.hitTest(_root.cast1)) {
gotoAndPlay (11);
}
Instance of Symbol 115 MovieClip "meny" in Symbol 279 MovieClip Frame 1
onClipEvent (load) {
life = random(20) + 5;
maxLife = life;
}
Symbol 279 MovieClip Frame 2
if (this.hitTest(_root.cast1)) {
gotoAndPlay (11);
}
Symbol 279 MovieClip Frame 3
if (this.hitTest(_root.cast1)) {
gotoAndPlay (11);
}
Symbol 279 MovieClip Frame 4
if (this.hitTest(_root.cast1)) {
gotoAndPlay (11);
}
Symbol 279 MovieClip Frame 5
if (this.hitTest(_root.cast1)) {
gotoAndPlay (11);
}
Symbol 279 MovieClip Frame 6
if (this.hitTest(_root.cast1)) {
gotoAndPlay (11);
}
Symbol 279 MovieClip Frame 7
if (this.hitTest(_root.cast1)) {
gotoAndPlay (11);
}
Symbol 279 MovieClip Frame 8
if (this.hitTest(_root.cast1)) {
gotoAndPlay (11);
}
Symbol 279 MovieClip Frame 9
if (this.hitTest(_root.cast1)) {
gotoAndPlay (11);
}
Symbol 279 MovieClip Frame 10
gotoAndPlay (1);
Symbol 279 MovieClip Frame 11
this.attack = 1;
Symbol 279 MovieClip Frame 35
if (_parent.die == 1) {
gotoAndPlay ("dead");
} else {
_root.castleHp = _root.castleHp - ((5 + random(_root.level + 4)) - (_root.gotWall * random(4)));
}
Symbol 279 MovieClip Frame 50
if (_parent.attack == 0) {
_parent.attacked = 0;
gotoAndPlay (1);
} else {
gotoAndPlay (11);
}
Symbol 279 MovieClip Frame 90
_root.enemyOut = _root.enemyOut - 1;
_root.money = _root.money + ((random(3 + _root.moMoney) + 2) + _root.moMoney);
if (_root.enemyOut <= 0) {
_root.buyMenu._visible = true;
}
_parent.removeMovieClip();
stop();
Symbol 323 MovieClip Frame 1
if (this.hitTest(_root.cast1)) {
gotoAndPlay (3);
}
Instance of Symbol 115 MovieClip "meny" in Symbol 323 MovieClip Frame 1
onClipEvent (load) {
life = random(20) + 5;
maxLife = life;
}
Symbol 323 MovieClip Frame 2
gotoAndPlay (1);
Symbol 323 MovieClip Frame 3
this.attack = 1;
Symbol 323 MovieClip Frame 33
_root.castleHp = _root.castleHp - ((10 + random(_root.level + 4)) - (_root.gotWall * random(4)));
Symbol 323 MovieClip Frame 43
gotoAndPlay (3);
Symbol 323 MovieClip Frame 56
stop();
_root.enemyOut = _root.enemyOut - 1;
_root.money = _root.money + ((random(3 + _root.moMoney) + 2) + _root.moMoney);
if (_root.enemyOut == 0) {
_root.buyMenu._visible = true;
}
_parent.removeMovieClip();
Symbol 324 MovieClip Frame 1
life = (random(5 + (_root.level * 2)) + 4) + (_root.level * 1.5);
maxLife = this.life;
Instance of Symbol 161 MovieClip "eno" in Symbol 324 MovieClip Frame 1
onClipEvent (load) {
moof = 0;
}
on (press) {
if (_parent.die != 1) {
_parent.life = _parent.life - (2 + _root.cursyStr);
if (_parent.life <= 0) {
_parent.life = 0;
_parent.die = 1;
this.gotoAndPlay("dead");
}
}
}
onClipEvent (enterFrame) {
if (_parent.activate == 1) {
if (_parent.die != 1) {
if ((_parent.die == 1) && (this.deaded != 1)) {
this.deaded = 1;
this.gotoAndPlay(26);
} else {
if (((this.attack == 1) && (this.attacked != 1)) && (_parent.die != 1)) {
this.attacked = 1;
this.gotoAndPlay(21);
} else if ((((this.attack != 1) && (this.attacked != 1)) && (this.pickMan != 1)) && (_parent.die != 1)) {
this._x = this._x - ((random(1) + 1) + _root.moSpeed);
}
if (this.hitTest(_root.cast1) && (_parent.die != 1)) {
this.attack = 1;
} else if (((this.pickMan != 1) && (_root.menOut != 0)) && (_parent.die != 1)) {
_parent.outty = random(_root.menOut) + 1;
if (this.hitTest(_root["men" + _parent.outty])) {
this.pickMan = 1;
this.attack = 1;
this.attacked = 1;
this.gotoAndPlay(21);
}
}
}
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.meteorM)) {
rah = random(2) + 1;
if (rah != 1) {
_parent.life = _parent.life - (random(10) + 8);
}
if (_parent.life <= 0) {
_parent.die = 1;
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.instakilla)) {
lala = random(3) + 1;
if ((lala == 1) || (lala == 3)) {
} else {
_parent.life = _parent.life - (random(30) + 10);
}
if (_parent.life <= 0) {
_parent.die = 1;
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.summonaxe)) {
_parent.life = _parent.life - 0.3;
if (_parent.life <= 0) {
_parent.die = 1;
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.summonmace)) {
_parent.life = _parent.life - 0.13;
if (_parent.life <= 0) {
_parent.die = 1;
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.summonsword)) {
dah = random(3) + 1;
switch (dah) {
case 1 :
break;
default :
_parent.life = _parent.life - 0.23;
}
if (_parent.life <= 0) {
_parent.die = 1;
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.nukeN)) {
_parent.life = _parent.life - 50000;
if (_parent.life <= 0) {
_parent.die = 1;
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.bigR) && (this.gotHito != 1)) {
this.gotHito = 1;
_parent.life = _parent.life - (_parent.life / 2);
if (_parent.life <= 0) {
_parent.die = 1;
}
}
}
onClipEvent (enterFrame) {
if (this.poised == 1) {
_parent.life = _parent.life - 0.02;
} else if (this.hitTest(_root.fogF)) {
this.poised = 1;
_parent.life = _parent.life - 0.02;
if (_parent.life <= 0) {
_parent.die = 1;
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.flame_ball)) {
_parent.life = _parent.life - (random(10) + 10);
if (_parent.life <= 0) {
_parent.die = 1;
}
}
}
Symbol 324 MovieClip Frame 2
life = (random(5 + (_root.level * 2)) + 4) + (_root.level * 1.5);
maxLife = this.life;
Instance of Symbol 213 MovieClip in Symbol 324 MovieClip Frame 2
onClipEvent (load) {
moof = 0;
}
on (press) {
if (_parent.die != 1) {
_parent.life = _parent.life - (2 + _root.cursyStr);
if (_parent.life <= 0) {
_parent.life = 0;
_parent.die = 1;
this.gotoAndPlay("dead");
}
}
}
onClipEvent (enterFrame) {
if (_parent.activate == 1) {
if (_parent.die != 1) {
if ((_parent.die == 1) && (this.deaded != 1)) {
this.deaded = 1;
this.gotoAndPlay(26);
} else {
if (((this.attack == 1) && (this.attacked != 1)) && (_parent.die != 1)) {
this.attacked = 1;
this.gotoAndPlay(21);
} else if ((((this.attack != 1) && (this.attacked != 1)) && (this.pickMan != 1)) && (_parent.die != 1)) {
this._x = this._x - ((random(1) + 1) + _root.moSpeed);
}
if (this.hitTest(_root.cast1) && (_parent.die != 1)) {
this.attack = 1;
} else if (((this.pickMan != 1) && (_root.menOut != 0)) && (_parent.die != 1)) {
_parent.outty = random(_root.menOut) + 1;
if (this.hitTest(_root["men" + _parent.outty])) {
this.pickMan = 1;
this.attack = 1;
this.attacked = 1;
this.gotoAndPlay(21);
}
}
}
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.meteorM)) {
rah = random(2) + 1;
if (rah != 1) {
_parent.life = _parent.life - (random(10) + 8);
}
if (_parent.life <= 0) {
_parent.die = 1;
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.instakilla)) {
lala = random(3) + 1;
if ((lala == 1) || (lala == 3)) {
} else {
_parent.life = _parent.life - (random(30) + 10);
}
if (_parent.life <= 0) {
_parent.die = 1;
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.summonaxe)) {
_parent.life = _parent.life - 0.1;
if (_parent.life <= 0) {
_parent.die = 1;
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.summonmace)) {
_parent.life = _parent.life - 0.18;
if (_parent.life <= 0) {
_parent.die = 1;
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.summonsword)) {
dah = random(3) + 1;
switch (dah) {
case 1 :
break;
default :
_parent.life = _parent.life - 0.2;
}
if (_parent.life <= 0) {
_parent.die = 1;
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.nukeN)) {
_parent.life = _parent.life - 50000;
if (_parent.life <= 0) {
_parent.die = 1;
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.bigR) && (this.gotHito != 1)) {
this.gotHito = 1;
_parent.life = _parent.life - (_parent.life / 2);
if (_parent.life <= 0) {
_parent.die = 1;
}
}
}
onClipEvent (enterFrame) {
if (this.poised == 1) {
_parent.life = _parent.life - 0.02;
} else if (this.hitTest(_root.fogF)) {
this.poised = 1;
_parent.life = _parent.life - 0.02;
if (_parent.life <= 0) {
_parent.die = 1;
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.flame_ball)) {
_parent.life = _parent.life - (random(10) + 10);
if (_parent.life <= 0) {
_parent.die = 1;
}
}
}
Symbol 324 MovieClip Frame 3
life = (random(5 + (_root.level * 2)) + 4) + (_root.level * 1.5);
maxLife = this.life;
Instance of Symbol 279 MovieClip in Symbol 324 MovieClip Frame 3
onClipEvent (load) {
moof = 0;
}
on (press) {
if (_parent.die != 1) {
_parent.life = _parent.life - (2 + _root.cursyStr);
if (_parent.life <= 0) {
_parent.life = 0;
_parent.die = 1;
this.gotoAndPlay("dead");
}
}
}
onClipEvent (enterFrame) {
if (_parent.activate == 1) {
if (_parent.die != 1) {
if ((_parent.die == 1) && (this.deaded != 1)) {
this.deaded = 1;
this.gotoAndPlay(26);
} else if ((((this.attack != 1) && (this.attacked != 1)) && (this.pickMan != 1)) && (_parent.die != 1)) {
this._x = this._x - ((random(1) + 1) + _root.moSpeed);
}
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.meteorM)) {
rah = random(2) + 1;
if (rah != 1) {
_parent.life = _parent.life - (random(1) + 1);
}
if (_parent.life <= 0) {
_parent.die = 1;
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.instakilla)) {
lala = random(3) + 1;
if ((lala == 1) || (lala == 3)) {
} else {
_parent.life = _parent.life - (random(30) + 10);
}
if (_parent.life <= 0) {
_parent.die = 1;
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.summonaxe)) {
_parent.life = _parent.life - 0.07;
if (_parent.life <= 0) {
_parent.die = 1;
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.summonmace)) {
_parent.life = _parent.life - 0.07;
if (_parent.life <= 0) {
_parent.die = 1;
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.summonsword)) {
dah = random(3) + 1;
switch (dah) {
case 1 :
break;
default :
_parent.life = _parent.life - 0.3;
}
if (_parent.life <= 0) {
_parent.die = 1;
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.nukeN)) {
_parent.life = _parent.life - (random(20) + 20);
if (_parent.life <= 0) {
_parent.die = 1;
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.bigR) && (this.gotHito != 1)) {
this.gotHito = 1;
_parent.life = _parent.life - (_parent.life / 3);
if (_parent.life <= 0) {
_parent.die = 1;
}
}
}
onClipEvent (enterFrame) {
if (this.poised == 1) {
_parent.life = _parent.life - 0.09;
} else if (this.hitTest(_root.fogF)) {
this.poised = 1;
_parent.life = _parent.life - 0.1;
if (_parent.life <= 0) {
_parent.die = 1;
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.flame_ball)) {
_parent.life = _parent.life - (random(10) + 10);
if (_parent.life <= 0) {
_parent.die = 1;
}
}
}
Symbol 324 MovieClip Frame 4
life = (random(10 + (_root.level * 3)) + 8) + (_root.level * 1.5);
maxLife = this.life;
Instance of Symbol 323 MovieClip in Symbol 324 MovieClip Frame 4
onClipEvent (load) {
moof = 0;
}
on (press) {
if (_parent.die != 1) {
_parent.life = _parent.life - (2 + _root.cursyStr);
if (_parent.life <= 0) {
_parent.life = 0;
_parent.die = 1;
this.gotoAndPlay("dead");
}
}
}
onClipEvent (enterFrame) {
if (_parent.activate == 1) {
if (_parent.die != 1) {
if ((_parent.die == 1) && (this.deaded != 1)) {
this.deaded = 1;
this.gotoAndPlay(26);
} else if ((((this.attack != 1) && (this.attacked != 1)) && (this.pickMan != 1)) && (_parent.die != 1)) {
this._x = this._x - ((random(1) + 1) + _root.moSpeed);
}
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.meteorM)) {
rah = random(2) + 1;
if (rah != 1) {
_parent.life = _parent.life - (random(2) + 4);
}
if (_parent.life <= 0) {
_parent.die = 1;
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.instakilla)) {
lala = random(3) + 1;
if ((lala == 1) || (lala == 3)) {
} else {
_parent.life = _parent.life - (random(10) + 5);
}
if (_parent.life <= 0) {
_parent.die = 1;
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.summonaxe)) {
_parent.life = _parent.life - 0.05;
if (_parent.life <= 0) {
_parent.die = 1;
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.summonmace)) {
_parent.life = _parent.life - 0.05;
if (_parent.life <= 0) {
_parent.die = 1;
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.summonsword)) {
dah = random(3) + 1;
switch (dah) {
case 1 :
break;
default :
_parent.life = _parent.life - 0.07;
}
if (_parent.life <= 0) {
_parent.die = 1;
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.nukeN)) {
_parent.life = _parent.life - 50000;
if (_parent.life <= 0) {
_parent.die = 1;
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.bigR) && (this.gotHito != 1)) {
this.gotHito = 1;
_parent.life = _parent.life - (_parent.life / 2);
if (_parent.life <= 0) {
_parent.die = 1;
}
}
}
onClipEvent (enterFrame) {
if (this.poised == 1) {
_parent.life = _parent.life - 0.02;
} else if (this.hitTest(_root.fogF)) {
this.poised = 1;
_parent.life = _parent.life - 0.02;
if (_parent.life <= 0) {
_parent.die = 1;
}
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.flame_ball)) {
_parent.life = _parent.life - (random(4) + 2);
if (_parent.life <= 0) {
_parent.die = 1;
}
}
}
Symbol 324 MovieClip Frame 5
delay = random(9) + 1;
switch (delay) {
case 1 :
gotoAndPlay (20);
break;
case 2 :
gotoAndPlay (35);
break;
case 3 :
gotoAndPlay (55);
break;
case 4 :
gotoAndPlay (70);
break;
case 5 :
gotoAndPlay (90);
break;
case 6 :
gotoAndPlay (105);
break;
case 7 :
gotoAndPlay (125);
break;
case 8 :
gotoAndPlay (145);
break;
case 9 :
gotoAndPlay (175);
}
Symbol 324 MovieClip Frame 180
if (this.typeEnemy == 1) {
gotoAndStop (1);
} else if (this.typeEnemy == 2) {
gotoAndStop (2);
} else if (this.typeEnemy == 3) {
gotoAndStop (4);
} else {
gotoAndStop (3);
}
Symbol 387 MovieClip Frame 62
this._visible = false;
this.stop();
Symbol 401 MovieClip Frame 34
stop();
Symbol 410 MovieClip Frame 1
if (farmo >= 300) {
farmo = 0;
_root.castleHp = _root.castleHp + 3;
if (_root.castleHp > _root.castleMaxHp) {
_root.castleHp = _root.castleMaxHp;
}
}
_root.castleLife = (_root.castleHp / _root.castleMaxHp) * 100;
if (_root.castleLife <= 0) {
_root.castleLife = 0;
_root.gameOvey._visible = true;
}
if (_root.castleLife != 100) {
setProperty(bar, _yscale , _root.castleLife);
} else {
setProperty(bar, _yscale , 100);
}
Symbol 410 MovieClip Frame 2
if (_root.gotFarm == 1) {
farmo = farmo + 1;
}
gotoAndPlay (1);
Symbol 414 MovieClip Frame 1
if (gainMp >= 400) {
gainMp = 0;
_root.manaNow = _root.manaNow + 3;
if (_root.manaNow > _root.maxMana) {
_root.manaNow = _root.maxMana;
}
}
_root.mana = (_root.manaNow / _root.maxMana) * 100;
if (_root.mana <= 0) {
_root.mana = 0;
}
if (_root.mana != 100) {
setProperty(bar3, _yscale , _root.mana);
} else {
setProperty(bar3, _yscale , 100);
}
Symbol 414 MovieClip Frame 2
if (_root.oasisUpgrade == 1) {
gainMp = gainMp + 1;
}
gotoAndPlay (1);
Instance of Symbol 410 MovieClip in Symbol 416 MovieClip Frame 1
onClipEvent (load) {
farmo = 0;
}
on (rollOver) {
_root.messy = (_root.castleHp + " / ") + _root.castleMaxHp;
}
on (rollOut) {
_root.messy = "";
}
Instance of Symbol 414 MovieClip in Symbol 416 MovieClip Frame 1
onClipEvent (load) {
gainMp = 0;
}
on (rollOver) {
_root.messy = (_root.manaNow + " / ") + _root.maxMana;
}
on (rollOut) {
_root.messy = "";
}
Symbol 419 MovieClip Frame 1
stop();
Symbol 419 MovieClip Frame 12
_root.castleHp = _root.castleHp + (random(25) + 20);
if (_root.castleHp > _root.castleMaxHp) {
_root.castleHp = _root.castleMaxHp;
}
Symbol 419 MovieClip Frame 21
this._visible = false;
Symbol 425 MovieClip Frame 7
stop();
Symbol 426 MovieClip Frame 41
this._visible = false;
this.stop();
Symbol 429 MovieClip Frame 11
this._visible = false;
this.stop();
Symbol 431 MovieClip Frame 1
axetime = 30;
Symbol 431 MovieClip Frame 9
axetime = axetime - 1;
if (axetime == 0) {
gotoAndStop (1);
} else {
gotoAndPlay (2);
}
Symbol 433 MovieClip Frame 1
macetime = 30;
Symbol 433 MovieClip Frame 10
macetime = macetime - 1;
if (macetime == 0) {
gotoAndStop (1);
} else {
gotoAndPlay (2);
}
Symbol 435 MovieClip Frame 1
swordtime = 30;
Symbol 435 MovieClip Frame 11
swordtime = swordtime - 1;
if (swordtime == 0) {
gotoAndStop (1);
} else {
gotoAndPlay (2);
}
Symbol 440 MovieClip Frame 71
this._visible = false;
this.stop();
Symbol 442 MovieClip Frame 65
this._visible = false;
this.stop();
Symbol 445 Button
on (release) {
nextFrame();
}
Symbol 447 Button
on (release) {
gotoAndStop (3);
}
Symbol 449 Button
on (release) {
if (_root.manaNow >= 20) {
_root.manaNow = _root.manaNow - 20;
_root.hpRestore._visible = true;
_root.hpRestore.gotoAndPlay(2);
} else {
_root.messy = "Not enough Mana";
}
}
on (rollOver) {
_root.messy = "20 Mana";
}
on (rollOut) {
_root.messy = "";
}
Symbol 452 Button
on (release) {
if (_root.manaNow >= 30) {
_root.manaNow = _root.manaNow - 30;
_root.swordpower = random(3) + 1;
_root.summonsword._visible = true;
_root.summonsword.play();
} else {
_root.messy = "Not enough Mana";
}
}
on (rollOver) {
_root.messy = "30 Mana";
}
on (rollOut) {
_root.messy = "";
}
Symbol 455 Button
on (release) {
if (_root.manaNow >= 40) {
_root.manaNow = _root.manaNow - 40;
_root.bigR._visible = true;
_root.bigR.play();
} else {
_root.messy = "Not enough Mana";
}
}
on (rollOver) {
_root.messy = "40 Mana";
}
on (rollOut) {
_root.messy = "";
}
Symbol 458 Button
on (release) {
if (_root.manaNow >= 25) {
_root.summonaxe._visible = true;
_root.summonaxe.play();
_root.axepower = random(2) + 1;
_root.manaNow = _root.manaNow - 25;
} else {
_root.messy = "Not enough Mana";
}
}
on (rollOver) {
_root.messy = "25 Mana";
}
on (rollOut) {
_root.messy = "";
}
Symbol 461 Button
on (release) {
if (_root.manaNow >= 25) {
_root.manaNow = _root.manaNow - 25;
_root.macepower = random(2) + 1;
_root.summonmace._visible = true;
_root.summonmace.play();
} else {
_root.messy = "Not enough Mana";
}
}
on (rollOver) {
_root.messy = "25 Mana";
}
on (rollOut) {
_root.messy = "";
}
Symbol 464 Button
on (release) {
gotoAndStop (1);
}
Symbol 466 Button
on (release) {
if (_root.manaNow >= 40) {
_root.manaNow = _root.manaNow - 40;
_root.meteorM._visible = true;
_root.meteorM.play();
} else {
_root.messy = "Not enough Mana";
}
}
on (rollOver) {
_root.messy = "40 Mana";
}
on (rollOut) {
_root.messy = "";
}
Symbol 469 Button
on (release) {
if (_root.manaNow >= 40) {
_root.manaNow = _root.manaNow - 40;
_root.instakilla._visible = true;
_root.instakilla.play();
} else {
_root.messy = "Not enough Mana";
}
}
on (rollOver) {
_root.messy = "40 Mana";
}
on (rollOut) {
_root.messy = "";
}
Symbol 472 Button
on (release) {
if (_root.manaNow >= 30) {
_root.manaNow = _root.manaNow - 30;
_root.flame_ball._visible = true;
_root.flame_ball.play();
} else {
_root.messy = "Not enough Mana";
}
}
on (rollOver) {
_root.messy = "30 Mana";
}
on (rollOut) {
_root.messy = "";
}
Symbol 475 Button
on (release) {
if (_root.manaNow >= 20) {
_root.manaNow = _root.manaNow - 20;
_root.fogF._visible = true;
_root.fogF.play();
} else {
_root.messy = "Not enough Mana";
}
}
on (rollOver) {
_root.messy = "20 Mana";
}
on (rollOut) {
_root.messy = "";
}
Symbol 478 Button
on (release) {
if (_root.manaNow >= 120) {
_root.manaNow = _root.manaNow - 120;
_root.nukeN._visible = true;
_root.nukeN.play();
} else {
_root.messy = "Not enough Mana";
}
}
on (rollOver) {
_root.messy = "120 Mana";
}
on (rollOut) {
_root.messy = "";
}
Symbol 481 MovieClip Frame 1
stop();
Instance of Symbol 451 MovieClip "restoreHp" in Symbol 481 MovieClip Frame 2
onClipEvent (load) {
if (_root.healSpell != 1) {
_root.menu.restoreHp._visible = false;
}
}
Instance of Symbol 454 MovieClip "summon_Sword" in Symbol 481 MovieClip Frame 2
onClipEvent (load) {
if (_root.swordSpell != 1) {
_root.menu.summon_Sword._visible = false;
}
}
Instance of Symbol 457 MovieClip "bigRock" in Symbol 481 MovieClip Frame 2
onClipEvent (load) {
if (_root.rockSpell != 1) {
_root.menu.bigRock._visible = false;
}
}
Instance of Symbol 460 MovieClip "summon_Axe" in Symbol 481 MovieClip Frame 2
onClipEvent (load) {
if (_root.axeSpell != 1) {
_root.menu.summon_Axe._visible = false;
}
}
Instance of Symbol 463 MovieClip "summon_Mace" in Symbol 481 MovieClip Frame 2
onClipEvent (load) {
if (_root.maceSpell != 1) {
_root.menu.summon_Mace._visible = false;
}
}
Instance of Symbol 468 MovieClip "meteora" in Symbol 481 MovieClip Frame 3
onClipEvent (load) {
if (_root.metSpell != 1) {
_root.menu.meteora._visible = false;
}
}
Instance of Symbol 471 MovieClip "instaKill" in Symbol 481 MovieClip Frame 3
onClipEvent (load) {
if (_root.killSpell != 1) {
_root.menu.instaKill._visible = false;
}
}
Instance of Symbol 474 MovieClip "flameB" in Symbol 481 MovieClip Frame 3
onClipEvent (load) {
if (_root.ballSpell != 1) {
_root.menu.flameB._visible = false;
}
}
Instance of Symbol 477 MovieClip "poisonF" in Symbol 481 MovieClip Frame 3
onClipEvent (load) {
if (_root.poisSpell != 1) {
_root.menu.poisonF._visible = false;
}
}
Instance of Symbol 480 MovieClip "nuke" in Symbol 481 MovieClip Frame 3
onClipEvent (load) {
if (_root.nukeSpell != 1) {
_root.menu.nuke._visible = false;
}
}
Symbol 483 Button
on (release) {
gotoAndStop (2);
}
Symbol 485 Button
on (release) {
gotoAndStop (4);
}
Symbol 487 Button
on (release) {
gotoAndStop (6);
}
Symbol 489 Button
on (release) {
_root.level = _root.level + 1;
_root.enemyOut = 0;
_root.moMoney = _root.moMoney + (random(4) + 1);
_root.moSpeed = _root.moSpeed + 0.05;
if (_root.moSpeed > 3) {
_root.moSpeed = 3;
}
_root.moEnemys = _root.moEnemys + (random(2) + 1);
while (_root.enemyOut < _root.moEnemys) {
_root.enemyOut = _root.enemyOut + 1;
duplicateMovieClip (_root.enemy, "enemy" + _root.enemyOut, _root.enemyOut);
_root["enemy" + _root.enemyOut].activate = 1;
}
this._visible = false;
}
Symbol 491 Button
on (release) {
gotoAndStop (7);
}
Symbol 494 Button
on (rollOver) {
_root.price = "200g";
}
on (rollOut) {
_root.price = "";
}
on (release) {
if ((_root.money >= 200) && (_root.healSpell != 1)) {
_root.healSpell = 1;
_root.restoreHp._visible = true;
messo = "Got Heal Spell!";
_root.money = _root.money - 200;
} else if (_root.healSpell == 1) {
messo = "Already have it!";
} else {
messo = "Not enough money!";
}
}
Symbol 496 Button
on (rollOver) {
_root.price = "400g";
}
on (rollOut) {
_root.price = "";
}
on (release) {
if ((_root.money >= 400) && (_root.axeSpell != 1)) {
_root.axeSpell = 1;
_root.summon_Axe._visible = true;
_root.money = _root.money - 400;
messo = "Got Sum. Axe!";
} else if (_root.axeSpell == 1) {
messo = "Already have it!";
} else {
messo = "Not enough money!";
}
}
Symbol 498 Button
on (rollOver) {
_root.price = "800g";
}
on (rollOut) {
_root.price = "";
}
on (release) {
if ((_root.money >= 800) && (_root.maceSpell != 1)) {
_root.maceSpell = 1;
messo = "Got Sum. Mace!";
_root.summon_Mace._visible = true;
_root.money = _root.money - 800;
} else if (_root.maceSpell == 1) {
messo = "Already have it!";
} else {
messo = "Not enough money!";
}
}
Symbol 500 Button
on (rollOver) {
_root.price = "1000g";
}
on (rollOut) {
_root.price = "";
}
on (release) {
if ((_root.money >= 1000) && (_root.swordSpell != 1)) {
_root.swordSpell = 1;
messo = "Got Sum. Sword!";
_root.summon_Sword._visible = true;
_root.money = _root.money - 1000;
} else if (_root.swordSpell == 1) {
messo = "Already have it!";
} else {
messo = "Not enough money!";
}
}
Symbol 502 Button
on (rollOver) {
_root.price = "900g";
}
on (rollOut) {
_root.price = "";
}
on (release) {
if ((_root.money >= 900) && (_root.metSpell != 1)) {
_root.metSpell = 1;
messo = "Got Meteor!";
_root.meteora._visible = true;
_root.money = _root.money - 900;
} else if (_root.metSpell == 1) {
messo = "Already have it!";
} else {
messo = "Not enough money!";
}
}
Symbol 504 Button
on (release) {
messo = "";
nextFrame();
}
Symbol 508 Button
on (rollOver) {
_root.price = "900g";
}
on (rollOut) {
_root.price = "";
}
on (release) {
if ((_root.money >= 900) && (_root.ballSpell != 1)) {
_root.ballSpell = 1;
_root.flameB._visible = true;
messo = "Got FireBall!";
_root.money = _root.money - 900;
} else if (_root.ballSpell == 1) {
messo = "Already have it!";
} else {
messo = "Not enough money!";
}
}
Symbol 510 Button
on (rollOver) {
_root.price = "10,000g";
}
on (rollOut) {
_root.price = "";
}
on (release) {
if ((_root.money >= 10000) && (_root.rockSpell != 1)) {
_root.rockSpell = 1;
_root.bigRock._visible = true;
messo = "Got Big Rock!";
_root.money = _root.money - 10000;
} else if (_root.rockSpell == 1) {
messo = "Already have it!";
} else {
messo = "Not enough money!";
}
}
Symbol 512 Button
on (rollOver) {
_root.price = "30,000g";
}
on (rollOut) {
_root.price = "";
}
on (release) {
if ((_root.money >= 30000) && (_root.killSpell != 1)) {
_root.killSpell = 1;
_root.instaKill._visible = true;
messo = "Got Insta Kill!";
_root.money = _root.money - 30000;
} else if (_root.killSpell == 1) {
messo = "Already have it!";
} else {
messo = "Not enough money!";
}
}
Symbol 514 Button
on (rollOver) {
_root.price = "15,000g";
}
on (rollOut) {
_root.price = "";
}
on (release) {
if ((_root.money >= 15000) && (_root.poisSpell != 1)) {
_root.poisSpell = 1;
messo = "Got Pois Fog!";
_root.poisonF._visible = true;
_root.money = _root.money - 15000;
} else if (_root.poisSpell == 1) {
messo = "Already have it!";
} else {
messo = "Not enough money!";
}
}
Symbol 516 Button
on (rollOver) {
_root.price = "50,000g";
}
on (rollOut) {
_root.price = "";
}
on (release) {
if ((_root.money >= 50000) && (_root.nukeSpell != 1)) {
_root.nukeSpell = 1;
_root.nuke._visible = true;
messo = "Got Nuke!";
_root.money = _root.money - 50000;
} else if (_root.nukeSpell == 1) {
messo = "Already have it!";
} else {
messo = "Not enough money!";
}
}
Symbol 518 Button
on (release) {
messo = "";
gotoAndStop (1);
}
Symbol 522 Button
on (rollOver) {
_root.price = "160g";
}
on (rollOut) {
_root.price = "";
}
on (release) {
if (_root.money >= 160) {
_root.money = _root.money - 160;
_root.castleMaxHp = _root.castleMaxHp + 15;
messo = "Raised Max HP!";
} else {
messo = "Not Enough Money!";
}
}
Symbol 523 Button
on (rollOver) {
_root.price = Math.ceil(1000 * _root.moThing) + "g";
}
on (rollOut) {
_root.price = "";
}
on (release) {
if (_root.money >= Math.ceil(1000 * _root.moThing)) {
_root.money = _root.money - Math.ceil(1000 * _root.moThing);
_root.moThing = _root.moThing + 0.5;
_root.cursyStr = _root.cursyStr + 1;
messo = "Raised Strength!";
} else {
messo = "Not Enough Money!";
}
}
Symbol 525 Button
on (rollOver) {
_root.price = "1000g";
}
on (rollOut) {
_root.price = "";
}
on (release) {
if ((_root.money >= 1000) && (_root.gotFarm != 1)) {
_root.gotFarm = 1;
_root.farm._visible = true;
messo = "Got the farm!";
_root.money = _root.money - 1000;
} else if (_root.gotFarm == 1) {
messo = "Already have it!";
} else {
messo = "Not enough money!";
}
}
Symbol 527 Button
on (rollOver) {
_root.price = "1000g";
}
on (rollOut) {
_root.price = "";
}
on (release) {
if ((_root.money >= 1000) && (_root.oasisUpgrade != 1)) {
_root.oasisUpgrade = 1;
messo = "Got the Oasis!";
_root.oasis._visible = true;
_root.money = _root.money - 1000;
} else if (_root.oasisUpgrade == 1) {
messo = "Already have it!";
} else {
messo = "Not enough money!";
}
}
Symbol 529 Button
on (rollOver) {
_root.price = "1000g";
}
on (rollOut) {
_root.price = "";
}
on (release) {
if ((_root.money >= 1000) && (_root.gotTower != 1)) {
_root.gotTower = 1;
_root.tower._visible = true;
messo = "Got 150 Hp and 70 Mana!";
_root.money = _root.money - 1000;
_root.castleMaxHp = _root.castleMaxHp + 150;
_root.maxMana = _root.maxMana + 70;
} else if (_root.gotTower == 1) {
messo = "Already have it!";
} else {
messo = "Not enough money!";
}
}
Symbol 531 Button
on (release) {
messo = "";
nextFrame();
}
Symbol 536 Button
on (rollOver) {
_root.price = "2000g";
}
on (rollOut) {
_root.price = "";
}
on (release) {
if ((_root.money >= 2000) && (_root.gotWall != 1)) {
_root.gotWall = 1;
_root.wall2._visible = true;
_root.money = _root.money - 2000;
messo = "Gained Extra defense!";
} else if (_root.gotWall == 1) {
messo = "Already have it!";
} else {
messo = "Not enough money!";
}
}
Symbol 538 Button
on (rollOver) {
_root.price = "230g";
}
on (rollOut) {
_root.price = "";
}
on (release) {
if (_root.money >= 230) {
_root.maxMana = _root.maxMana + 15;
_root.money = _root.money - 230;
messo = "Raised Max Mana!";
} else {
messo = "Not Enough Money!";
}
}
Symbol 543 Button
on (rollOver) {
_root.price = "50g";
}
on (rollOut) {
_root.price = "";
}
on (release) {
if (_root.money >= 50) {
_root.money = _root.money - 50;
_root.castleHp = _root.castleHp + 15;
messo = "Got 15 HP!";
if (_root.castleHp > _root.castleMaxHp) {
_root.castleHp = _root.castleMaxHp;
}
} else {
messo = "Not Enough Money!";
}
}
Symbol 544 Button
on (rollOver) {
_root.price = "150g";
}
on (rollOut) {
_root.price = "";
}
on (release) {
if (_root.money >= 150) {
_root.money = _root.money - 150;
_root.castleHp = _root.castleHp + 50;
messo = "Got 50 HP!";
if (_root.castleHp > _root.castleMaxHp) {
_root.castleHp = _root.castleMaxHp;
}
} else {
messo = "Not Enough Money!";
}
}
Symbol 545 Button
on (rollOver) {
_root.price = "100g";
}
on (rollOut) {
_root.price = "";
}
on (release) {
if (_root.money >= 100) {
_root.money = _root.money - 100;
_root.manaNow = _root.manaNow + 15;
messo = "Got 15 MP!";
if (_root.manaNow > _root.maxMana) {
_root.manaNow = _root.maxMana;
}
} else {
messo = "Not Enough Money!";
}
}
Symbol 546 Button
on (rollOver) {
_root.price = "210g";
}
on (rollOut) {
_root.price = "";
}
on (release) {
if (_root.money >= 210) {
_root.money = _root.money - 210;
_root.manaNow = _root.manaNow + 50;
messo = "Got 50 MP!";
if (_root.manaNow > _root.maxMana) {
_root.manaNow = _root.maxMana;
}
} else {
messo = "Not Enough Money!";
}
}
Symbol 553 Button
on (release) {
hoe = 1;
_root.alreadySaved1 = 1;
setCookie("database1", "iteem1", _root.alreadySaved1);
setCookie("database" + hoe, "iteem2", _root.healSpell);
setCookie("database" + hoe, "iteem3", _root.axeSpell);
setCookie("database" + hoe, "iteem4", _root.maceSpell);
setCookie("database" + hoe, "iteem5", _root.metSpell);
setCookie("database" + hoe, "iteem6", _root.ballSpell);
setCookie("database" + hoe, "iteem7", _root.swordSpell);
setCookie("database" + hoe, "iteem8", _root.rockSpell);
setCookie("database" + hoe, "iteem9", _root.killSpell);
setCookie("database" + hoe, "iteem10", _root.poisSpell);
setCookie("database" + hoe, "iteem11", _root.nukeSpell);
setCookie("database" + hoe, "iteem12", _root.cursyStr);
setCookie("database" + hoe, "iteem13", _root.gotFarm);
setCookie("database" + hoe, "iteem14", _root.oasisUpgrade);
setCookie("database" + hoe, "iteem15", _root.gotTower);
setCookie("database" + hoe, "iteem16", _root.gotWall);
setCookie("database" + hoe, "iteem17", _root.maxMana);
setCookie("database" + hoe, "iteem18", _root.castleMaxHp);
setCookie("database" + hoe, "iteem19", _root.castleHp);
setCookie("database" + hoe, "iteem20", _root.manaNow);
setCookie("database" + hoe, "iteem21", _root.moMoney);
setCookie("database" + hoe, "iteem22", _root.level);
setCookie("database" + hoe, "iteem23", _root.moEnemys);
setCookie("database" + hoe, "iteem24", _root.money);
setCookie("database" + hoe, "iteem25", _root.moSpeed);
setCookie("database" + hoe, "iteem26", _root.moThing);
savMess = "Saved!";
}
Symbol 555 Button
on (release) {
hoe = 2;
_root.alreadySaved2 = 1;
setCookie("database2", "iteem1", _root.alreadySaved2);
setCookie("database" + hoe, "iteem2", _root.healSpell);
setCookie("database" + hoe, "iteem3", _root.axeSpell);
setCookie("database" + hoe, "iteem4", _root.maceSpell);
setCookie("database" + hoe, "iteem5", _root.metSpell);
setCookie("database" + hoe, "iteem6", _root.ballSpell);
setCookie("database" + hoe, "iteem7", _root.swordSpell);
setCookie("database" + hoe, "iteem8", _root.rockSpell);
setCookie("database" + hoe, "iteem9", _root.killSpell);
setCookie("database" + hoe, "iteem10", _root.poisSpell);
setCookie("database" + hoe, "iteem11", _root.nukeSpell);
setCookie("database" + hoe, "iteem12", _root.cursyStr);
setCookie("database" + hoe, "iteem13", _root.gotFarm);
setCookie("database" + hoe, "iteem14", _root.oasisUpgrade);
setCookie("database" + hoe, "iteem15", _root.gotTower);
setCookie("database" + hoe, "iteem16", _root.gotWall);
setCookie("database" + hoe, "iteem17", _root.maxMana);
setCookie("database" + hoe, "iteem18", _root.castleMaxHp);
setCookie("database" + hoe, "iteem19", _root.castleHp);
setCookie("database" + hoe, "iteem20", _root.manaNow);
setCookie("database" + hoe, "iteem21", _root.moMoney);
setCookie("database" + hoe, "iteem22", _root.level);
setCookie("database" + hoe, "iteem23", _root.moEnemys);
setCookie("database" + hoe, "iteem24", _root.money);
setCookie("database" + hoe, "iteem25", _root.moSpeed);
setCookie("database" + hoe, "iteem26", _root.moThing);
savMess = "Saved!";
}
Symbol 557 Button
on (release) {
hoe = 3;
_root.alreadySaved3 = 1;
setCookie("database3", "iteem1", _root.alreadySaved3);
setCookie("database" + hoe, "iteem2", _root.healSpell);
setCookie("database" + hoe, "iteem3", _root.axeSpell);
setCookie("database" + hoe, "iteem4", _root.maceSpell);
setCookie("database" + hoe, "iteem5", _root.metSpell);
setCookie("database" + hoe, "iteem6", _root.ballSpell);
setCookie("database" + hoe, "iteem7", _root.swordSpell);
setCookie("database" + hoe, "iteem8", _root.rockSpell);
setCookie("database" + hoe, "iteem9", _root.killSpell);
setCookie("database" + hoe, "iteem10", _root.poisSpell);
setCookie("database" + hoe, "iteem11", _root.nukeSpell);
setCookie("database" + hoe, "iteem12", _root.cursyStr);
setCookie("database" + hoe, "iteem13", _root.gotFarm);
setCookie("database" + hoe, "iteem14", _root.oasisUpgrade);
setCookie("database" + hoe, "iteem15", _root.gotTower);
setCookie("database" + hoe, "iteem16", _root.gotWall);
setCookie("database" + hoe, "iteem17", _root.maxMana);
setCookie("database" + hoe, "iteem18", _root.castleMaxHp);
setCookie("database" + hoe, "iteem19", _root.castleHp);
setCookie("database" + hoe, "iteem20", _root.manaNow);
setCookie("database" + hoe, "iteem21", _root.moMoney);
setCookie("database" + hoe, "iteem22", _root.level);
setCookie("database" + hoe, "iteem23", _root.moEnemys);
setCookie("database" + hoe, "iteem24", _root.money);
setCookie("database" + hoe, "iteem25", _root.moSpeed);
setCookie("database" + hoe, "iteem26", _root.moThing);
savMess = "Saved!";
}
Symbol 559 Button
on (release) {
savMess = "";
gotoAndStop (1);
}
Symbol 562 MovieClip Frame 1
stop();
Symbol 565 Button
on (release) {
_root.gotoAndPlay(1);
}