Frame 1
Loaded = Math.round(getBytesLoaded());
total = Math.round(getBytesTotal());
percent = Loaded / total;
bar._width = percent * 150;
text = Math.round(percent * 100) + "%";
if (Loaded == total) {
gotoAndPlay (3);
}
Frame 2
gotoAndPlay (1);
Frame 4
stop();
Frame 5
_global.mymessage = "Dragons incoming, click your mouse to charge the ballista, release to shoot!";
_global.messager = 1;
_global.notonaddicting = 0;
_global.gamelevel = 1;
_global.dragons = 3;
_global.dragonsummon = 0;
_global.dragonsummonkilled = 0;
_global.bosssummon = 0;
_global.cleanup = 1;
_global.gamepaused = 0;
_global.cannonball = 0;
_global.explosion = 0;
_global.explosion2 = 0;
_global.gameover = 0;
_global.finalscore = 0;
_global.pullpower = 2;
_global.cannon2 = 0;
_global.cannon3 = 0;
_global.cannon4 = 0;
_global.life = 1000;
_global.maxhp = 1000;
_global.castle = 0;
_global.balistalvl = 1;
_global.score = 0;
_global.gold = 0;
_global.foodval = 20;
_global.slayers = 0;
_global.stagekill = 0;
_global.targetx = 0;
_global.shipbusy = 0;
_global.shipworktime = 5000;
_global.shipcargo = 0;
_global.shipspeed = 0.5;
_global.carpentersguild = 0;
_global.mageguild = 0;
_global.balistacrew = 1;
_global.shipcrew = 1;
_global.fixers = 0;
_global.firemages = 0;
_global.icemages = 0;
_global.computed = 0;
_global.foodgathered = 0;
_global.goldearned = 0;
_global.dragonskilled = 0;
_global.loadedgame = 0;
pullstring = new Sound();
pullstring.attachSound("pullstring");
releasestring = new Sound();
releasestring.attachSound("releasestring");
arrowhit = new Sound();
arrowhit.attachSound("arrowhit");
die1 = new Sound();
die1.attachSound("die1");
die2 = new Sound();
die2.attachSound("die2");
die3 = new Sound();
die3.attachSound("die3");
die4 = new Sound();
die4.attachSound("die4");
clickfx = new Sound();
clickfx.attachSound("clickfx");
startbattle = new Sound();
startbattle.attachSound("startbattle");
stop();
Frame 6
ctr = 0;
ctr2 = 0;
delayer = 0;
onEnterFrame = function () {
if (_global.gamepaused == 0) {
if (ctr != _global.dragons) {
if (ctr2 != 15) {
if ((_global.gamelevel > 4) && (_global.gamelevel < 10)) {
xx = random(5);
if (xx < 2) {
spawnenemy = "enemy1";
} else {
spawnenemy = "enemy2";
}
} else if ((_global.gamelevel >= 10) && (_global.gamelevel < 16)) {
xx = random(8);
if (xx < 3) {
spawnenemy = "enemy1";
} else if ((xx > 3) && (xx < 6)) {
spawnenemy = "enemy2";
} else {
spawnenemy = "enemy3";
}
} else if ((_global.gamelevel >= 16) && (_global.gamelevel < 20)) {
xx = random(10);
if (xx < 3) {
spawnenemy = "enemy1";
} else if ((xx > 3) && (xx < 6)) {
spawnenemy = "enemy2";
} else if ((xx > 6) && (xx < 8)) {
spawnenemy = "enemy3";
} else {
spawnenemy = "enemy5";
}
} else if ((_global.gamelevel >= 20) && (_global.gamelevel < 23)) {
xx = random(14);
if (xx < 3) {
spawnenemy = "enemy1";
} else if ((xx > 3) && (xx < 6)) {
spawnenemy = "enemy2";
} else if ((xx > 6) && (xx < 8)) {
spawnenemy = "enemy3";
} else if ((xx > 8) && (xx < 12)) {
spawnenemy = "enemy5";
} else {
spawnenemy = "enemy4";
}
} else if ((_global.gamelevel >= 23) && (_global.gamelevel < 26)) {
xx = random(18);
if (xx < 3) {
spawnenemy = "enemy1";
} else if ((xx > 3) && (xx < 6)) {
spawnenemy = "enemy2";
} else if ((xx > 6) && (xx < 8)) {
spawnenemy = "enemy3";
} else if ((xx > 8) && (xx < 12)) {
spawnenemy = "enemy5";
} else if ((xx > 12) && (xx < 15)) {
spawnenemy = "enemy4";
} else {
spawnenemy = "enemy6";
}
} else if (_global.gamelevel == 26) {
_global.dragons = 1;
spawnenemy = "boss";
} else if ((_global.gamelevel >= 27) && (_global.gamelevel < 50)) {
xx = random(18);
if (xx < 3) {
spawnenemy = "enemy1";
} else if ((xx > 3) && (xx < 6)) {
spawnenemy = "enemy2";
} else if ((xx > 6) && (xx < 8)) {
spawnenemy = "enemy3";
} else if ((xx > 8) && (xx < 12)) {
spawnenemy = "enemy5";
} else if ((xx > 12) && (xx < 15)) {
spawnenemy = "enemy4";
} else {
spawnenemy = "enemy6";
}
} else if (_global.gamelevel == 50) {
_global.dragons = 1;
spawnenemy = "boss";
} else if ((_global.gamelevel >= 51) && (_global.gamelevel < 100)) {
xx = random(18);
if (xx < 3) {
spawnenemy = "enemy1";
} else if ((xx > 3) && (xx < 6)) {
spawnenemy = "enemy2";
} else if ((xx > 6) && (xx < 8)) {
spawnenemy = "enemy3";
} else if ((xx > 8) && (xx < 12)) {
spawnenemy = "enemy5";
} else if ((xx > 12) && (xx < 15)) {
spawnenemy = "enemy4";
} else {
spawnenemy = "enemy6";
}
} else if (_global.gamelevel == 100) {
_global.dragons = 1;
spawnenemy = "boss";
} else if (_global.gamelevel >= 101) {
xx = random(18);
if (xx < 3) {
spawnenemy = "enemy1";
} else if ((xx > 3) && (xx < 6)) {
spawnenemy = "enemy2";
} else if ((xx > 6) && (xx < 8)) {
spawnenemy = "enemy3";
} else if ((xx > 8) && (xx < 12)) {
spawnenemy = "enemy5";
} else if ((xx > 12) && (xx < 15)) {
spawnenemy = "enemy4";
} else {
spawnenemy = "enemy6";
}
} else {
spawnenemy = "enemy1";
}
if (delayer == 0) {
if (spawnenemy == "boss") {
spawnx = 1077;
spawny = 200;
} else {
spawnx = Math.floor(Math.random() * 561) + 840;
spawny = Math.floor(Math.random() * 141) + 70;
}
dragon = attachMovie(spawnenemy, "enemy1_" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:spawnx, _y:spawny});
}
ctr++;
ctr2++;
}
if ((ctr2 == 15) && (delayer == 0)) {
delayer = 1;
}
if (_global.dragonsummonkilled == 15) {
_global.dragonsummonkilled = 0;
delayer = 0;
ctr2 = 0;
}
}
if ((_global.stagekill == _global.dragons) && (checking != 1)) {
ctr = 0;
ctr2 = 0;
delayer = 0;
_global.dragonsummonkilled = 0;
_global.dragons = _global.dragons + 3;
_root.upgrades.gotoAndPlay(2);
}
}
};
gravity = 2;
firing = 0;
firing2 = 0;
firing3 = 0;
firing4 = 0;
firepower = 0;
firepower2 = 0;
firepower3 = 0;
firepower4 = 0;
fire_increment = _global.pullpower;
fire_increment2 = _global.pullpower;
fire_increment3 = _global.pullpower;
fire_increment4 = _global.pullpower;
Mouse.hide();
_global.bullet_in_air = false;
attachMovie("crosshair", "crosshair", _root.getNextHighestDepth());
crosshair.onEnterFrame = function () {
this._x = _xmouse;
this._y = _ymouse;
};
tank.onEnterFrame = function () {
if (_global.gamepaused == 0) {
mousex = _xmouse - this._x;
mousey = (_ymouse - this._y) * -1;
angle = Math.atan2(mousey, mousex);
this.cannon._rotation = ((-angle) * 180) / Math.PI;
if (firing) {
if ((firepower > 90) or (firepower < 0)) {
fire_increment = 0;
}
firepower = firepower + fire_increment;
this.cannon.powermeter._width = this.cannon.powermeter._width + fire_increment;
this.cannon.sling.gotoAndStop(firepower);
_global.pull = 1;
}
}
};
tank2.onEnterFrame = function () {
if (_global.gamepaused == 0) {
mousex = _xmouse - this._x;
mousey = (_ymouse - this._y) * -1.2;
angle2 = Math.atan2(mousey, mousex);
this.cannon._rotation = ((-angle2) * 180) / Math.PI;
if (firing2) {
if ((firepower2 > 90) or (firepower2 < 0)) {
fire_increment2 = 0;
}
firepower2 = firepower2 + fire_increment2;
this.cannon.powermeter._width = this.cannon.powermeter._width + fire_increment2;
this.cannon.sling.gotoAndStop(firepower2);
_global.pull = 1;
}
}
};
tank3.onEnterFrame = function () {
if (_global.gamepaused == 0) {
mousex = _xmouse - this._x;
mousey = (_ymouse - this._y) * -1.4;
angle3 = Math.atan2(mousey, mousex);
this.cannon._rotation = ((-angle3) * 180) / Math.PI;
if (firing3) {
if ((firepower3 > 90) or (firepower3 < 0)) {
fire_increment3 = 0;
}
firepower3 = firepower3 + fire_increment3;
this.cannon.powermeter._width = this.cannon.powermeter._width + fire_increment3;
this.cannon.sling.gotoAndStop(firepower3);
_global.pull = 1;
}
}
};
tank4.onEnterFrame = function () {
if (_global.gamepaused == 0) {
mousex = _xmouse - this._x;
mousey = (_ymouse - this._y) * -1.6;
angle4 = Math.atan2(mousey, mousex);
this.cannon._rotation = ((-angle4) * 180) / Math.PI;
if (firing4) {
if ((firepower4 > 90) or (firepower4 < 0)) {
fire_increment4 = 0;
}
firepower4 = firepower4 + fire_increment4;
this.cannon.powermeter._width = this.cannon.powermeter._width + fire_increment4;
this.cannon.sling.gotoAndStop(firepower4);
_global.pull = 1;
}
}
};
clicker.onMouseDown = function () {
if (_global.gamepaused == 0) {
if (_root.clicker.hitTest(_root.crosshair.arrow)) {
if ((!firing) and (!_global.bullet_in_air)) {
firing = true;
_root.pullstring.start();
if (_global.cannon2 == 1) {
firing2 = true;
}
if (_global.cannon3 == 1) {
firing3 = true;
}
if (_global.cannon4 == 1) {
firing4 = true;
}
}
}
}
};
clicker.onMouseUp = function () {
if (firing) {
_root.pullstring.stop();
_root.releasestring.start();
_global.pull = 0;
_global.cannonball = _global.cannonball + 1;
if (_global.cannonball > 99) {
_global.cannonball = 1;
}
firing = false;
tank.cannon.powermeter._width = 40;
tank.cannon.sling.gotoAndStop(1);
fire_increment = _global.pullpower;
angle = tank.cannon._rotation;
start_ball_x = tank._x + (48 * Math.cos((angle * Math.PI) / 180));
start_ball_y = tank._y + (48 * Math.sin((angle * Math.PI) / 180));
cannonball_fired = attachMovie("cannonball", "cannonball_" + _global.cannonball, _root.getNextHighestDepth(), {_x:start_ball_x, _y:start_ball_y});
cannonball_fired.dirx = Math.cos((angle * Math.PI) / 180) * firepower;
cannonball_fired.diry = Math.sin((angle * Math.PI) / 180) * firepower;
_global.bullet_in_air = true;
cannonball_fired.onEnterFrame = function () {
this.diry = this.diry + gravity;
this._x = this._x + (this.dirx / 2);
this._y = this._y + (this.diry / 2);
this._rotation = (Math.atan2(this.diry, this.dirx) * 180) / Math.PI;
if (this._y > 400) {
_global.bullet_in_air = false;
this.removeMovieClip();
}
if (this._x > 800) {
_global.bullet_in_air = false;
this.removeMovieClip();
}
};
firepower = 0;
}
if (firing2) {
if (_global.cannon2 == 1) {
_global.pull = 0;
_global.cannonball = _global.cannonball + 1;
if (_global.cannonball > 99) {
_global.cannonball = 1;
}
firing2 = false;
tank2.cannon.powermeter._width = 40;
tank2.cannon.sling.gotoAndStop(1);
fire_increment2 = _global.pullpower;
angle2 = tank2.cannon._rotation;
start_ball_x = tank2._x + (48 * Math.cos((angle2 * Math.PI) / 180));
start_ball_y = tank2._y + (48 * Math.sin((angle2 * Math.PI) / 180));
cannonball_fired2 = attachMovie("cannonball", "cannonball_" + _global.cannonball, _root.getNextHighestDepth(), {_x:start_ball_x, _y:start_ball_y});
cannonball_fired2.dirx = Math.cos((angle2 * Math.PI) / 180) * firepower2;
cannonball_fired2.diry = Math.sin((angle2 * Math.PI) / 180) * firepower2;
_global.bullet_in_air = true;
cannonball_fired2.onEnterFrame = function () {
this.diry = this.diry + gravity;
this._x = this._x + (this.dirx / 2);
this._y = this._y + (this.diry / 2);
this._rotation = (Math.atan2(this.diry, this.dirx) * 180) / Math.PI;
if (this._y > 400) {
_global.bullet_in_air = false;
this.removeMovieClip();
}
if (this._x > 800) {
_global.bullet_in_air = false;
this.removeMovieClip();
}
};
}
firepower2 = 0;
}
if (firing3) {
if (_global.cannon3 == 1) {
_global.pull = 0;
_global.cannonball = _global.cannonball + 1;
if (_global.cannonball > 99) {
_global.cannonball = 1;
}
firing3 = false;
tank3.cannon.powermeter._width = 40;
tank3.cannon.sling.gotoAndStop(1);
fire_increment3 = _global.pullpower;
angle3 = tank3.cannon._rotation;
start_ball_x = tank3._x + (48 * Math.cos((angle3 * Math.PI) / 180));
start_ball_y = tank3._y + (48 * Math.sin((angle3 * Math.PI) / 180));
cannonball_fired3 = attachMovie("cannonball", "cannonball_" + _global.cannonball, _root.getNextHighestDepth(), {_x:start_ball_x, _y:start_ball_y});
cannonball_fired3.dirx = Math.cos((angle3 * Math.PI) / 180) * firepower3;
cannonball_fired3.diry = Math.sin((angle3 * Math.PI) / 180) * firepower3;
_global.bullet_in_air = true;
cannonball_fired3.onEnterFrame = function () {
this.diry = this.diry + gravity;
this._x = this._x + (this.dirx / 2);
this._y = this._y + (this.diry / 2);
this._rotation = (Math.atan2(this.diry, this.dirx) * 180) / Math.PI;
if (this._y > 400) {
_global.bullet_in_air = false;
this.removeMovieClip();
}
if (this._x > 800) {
_global.bullet_in_air = false;
this.removeMovieClip();
}
};
}
firepower3 = 0;
}
if (firing4) {
if (_global.cannon4 == 1) {
_global.pull = 0;
_global.cannonball = _global.cannonball + 1;
if (_global.cannonball > 99) {
_global.cannonball = 1;
}
firing4 = false;
tank4.cannon.powermeter._width = 40;
tank4.cannon.sling.gotoAndStop(1);
fire_increment4 = _global.pullpower;
angle4 = tank4.cannon._rotation;
start_ball_x = tank4._x + (48 * Math.cos((angle4 * Math.PI) / 180));
start_ball_y = tank4._y + (48 * Math.sin((angle4 * Math.PI) / 180));
cannonball_fired4 = attachMovie("cannonball", "cannonball_" + _global.cannonball, _root.getNextHighestDepth(), {_x:start_ball_x, _y:start_ball_y});
cannonball_fired4.dirx = Math.cos((angle4 * Math.PI) / 180) * firepower4;
cannonball_fired4.diry = Math.sin((angle4 * Math.PI) / 180) * firepower4;
_global.bullet_in_air = true;
cannonball_fired4.onEnterFrame = function () {
this.diry = this.diry + gravity;
this._x = this._x + (this.dirx / 2);
this._y = this._y + (this.diry / 2);
this._rotation = (Math.atan2(this.diry, this.dirx) * 180) / Math.PI;
if (this._y > 400) {
_global.bullet_in_air = false;
this.removeMovieClip();
}
if (this._x > 800) {
_global.bullet_in_air = false;
this.removeMovieClip();
}
};
}
firepower4 = 0;
}
};
stop();
Instance of Symbol 1123 MovieClip "ship" in Frame 6
onClipEvent (load) {
_x = 0;
goingforward = 1;
}
onClipEvent (enterFrame) {
if (_global.gamepaused == 0) {
if (_global.shipbusy == 0) {
this.gotoAndStop(1);
if ((_x < 850) && (goingforward == 1)) {
_xscale = 100;
_x = (_x + _global.shipspeed);
}
if ((_x >= 850) && (goingforward == 1)) {
goingforward = 0;
_xscale = -100;
}
if ((_x > 0) && (goingforward == 0)) {
_x = (_x - _global.shipspeed);
}
if ((_x <= 0) && (goingforward == 0)) {
goingforward = 1;
}
} else {
this.gotoAndStop(2);
}
}
if (_global.cleanup == 1) {
_x = 0;
_global.shipbusy = 0;
_xscale = 100;
}
}
Instance of Symbol 1147 MovieClip "castle" in Frame 6
onClipEvent (enterFrame) {
if (_global.castle == 0) {
this.gotoAndStop(1);
} else if (_global.castle == 1) {
this.gotoAndStop(2);
} else if (_global.castle == 2) {
this.gotoAndStop(3);
} else if (_global.castle == 3) {
this.gotoAndStop(4);
}
}
Instance of Symbol 1169 MovieClip "soldier" in Frame 6
onClipEvent (enterFrame) {
if (_global.pull == 1) {
if (_x > 11) {
this.gotoAndStop(2);
_x = (_x - 0.5);
}
} else if (_x < 36) {
_root.soldier.gotoAndStop(3);
_x = (_x + 4);
}
}
Instance of Symbol 1195 MovieClip in Frame 6
onClipEvent (load) {
cast = 0;
}
onClipEvent (enterFrame) {
if (_global.gamepaused == 0) {
if (_global.firemages > 0) {
_x = 94;
if (cast < 1000) {
cast = cast + _global.firemages;
this.castbar._xscale = cast;
if (cast >= 1000) {
this.gotoAndStop(2);
cast = 0;
}
}
} else {
_x = -23;
}
}
}
Instance of Symbol 1213 MovieClip in Frame 6
onClipEvent (load) {
cast = 0;
}
onClipEvent (enterFrame) {
if (_global.gamepaused == 0) {
if (_global.icemages > 0) {
_x = 116;
if (cast < 1000) {
cast = cast + _global.icemages;
this.castbar._xscale = cast;
if (cast >= 1000) {
this.gotoAndStop(2);
cast = 0;
}
}
} else {
_x = -23;
}
}
}
Instance of Symbol 1223 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (_global.gamepaused == 0) {
if (_global.fixers > 0) {
_x = 26.5;
if (_global.life < _global.maxhp) {
this.gotoAndStop(2);
_global.life = _global.life + _global.fixers;
if (_global.life >= _global.maxhp) {
_global.life = _global.maxhp;
this.gotoAndStop(1);
}
}
} else {
_x = -23;
}
}
}
Instance of Symbol 1225 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (Key.isDown(81)) {
if (_root._quality == "MEDIUM") {
_root._quality = "LOW";
} else if (_root._quality == "LOW") {
_root._quality = "HIGH";
} else if (_root._quality == "HIGH") {
_root._quality = "MEDIUM";
}
}
if (Key.isDown(77)) {
if (_root.clickfx.getVolume() == 100) {
trace("mute");
_root.clickfx.setVolume(0);
} else {
trace("unmute");
_root.clickfx.setVolume(100);
}
}
}
Instance of Symbol 1377 MovieClip in Frame 6
onClipEvent (enterFrame) {
this.txthp = (_global.life + "/") + _global.maxhp;
this.txtgold = _global.gold;
this.txtfood = _global.foodval;
_global.slayers = (((_global.balistacrew + _global.shipcrew) + _global.fixers) + _global.firemages) + _global.icemages;
this.txtslayers = _global.slayers;
this.txtscore = _global.score;
this.txtlevel = _global.gamelevel;
if ((_global.life < 1) && (checking != 1)) {
checking = 1;
_global.life = 0;
_global.cleanup = 1;
_global.gameover = 1;
_root.startbattle.start();
_root.gameover.gotoAndPlay(2);
}
}
Frame 7
stop();
Instance of Symbol 4 MovieClip in Symbol 32 MovieClip Frame 1
onClipEvent (enterFrame) {
this._parent._parent._parent._y = this._parent._parent._parent._y - 2;
}
Instance of Symbol 4 MovieClip in Symbol 32 MovieClip Frame 14
onClipEvent (enterFrame) {
this._parent._parent._parent._y = this._parent._parent._parent._y + 2;
}
Symbol 41 MovieClip Frame 1
stop();
Symbol 41 MovieClip Frame 149
_parent.frozen = 0;
Symbol 98 MovieClip Frame 18
enemyfront = this._parent._parent._width / 2;
enemybottom = this._parent._parent._height / 2;
enemyx = this._parent._parent._x - enemyfront;
enemyy = this._parent._parent._y + enemybottom;
enemyshoot = _root.attachMovie("enemyshot3", "eshot_" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:enemyx, _y:enemyy});
Symbol 105 MovieClip Frame 56
stop();
Symbol 113 MovieClip Frame 56
stop();
Symbol 114 MovieClip Frame 1
stop();
Symbol 114 MovieClip Frame 2
stop();
Symbol 114 MovieClip Frame 3
stop();
Symbol 114 MovieClip Frame 4
stop();
Instance of Symbol 114 MovieClip in Symbol 115 MovieClip [enemy6] Frame 1
onClipEvent (load) {
life = 200;
base = 0;
checking = 0;
speed = 6;
power = 100;
moneyworth = 500;
burn = 0;
frozen = 0;
attacking = 0;
if (_global.gamelevel > 30) {
speed = 8;
}
}
onClipEvent (enterFrame) {
if (_global.gamepaused == 0) {
if (life > 0) {
if (attacking == 0) {
this._parent._x = this._parent._x - speed;
}
st = 0;
while (st <= 100) {
if (this.target.hitTest(_root["cannonball_" + st])) {
_root.arrowhit.start();
life = 0;
_global.bullet_in_air = false;
_root["cannonball_" + st].removeMovieClip();
}
st++;
}
if (this._parent._x < 185) {
attacking = 1;
this.gotoAndStop(2);
}
}
if ((life < 1) && (checking == 0)) {
checking = 1;
rr = random(5);
if (rr == 1) {
_root.die1.start();
} else if (rr == 2) {
_root.die2.start();
} else if (rr == 3) {
_root.die3.start();
} else {
_root.die4.start();
}
_global.score = _global.score + 100;
_global.gold = _global.gold + moneyworth;
_global.stagekill = _global.stagekill + 1;
_global.goldearned = _global.goldearned + moneyworth;
_global.dragonskilled = _global.dragonskilled + 1;
_global.dragonsummonkilled = _global.dragonsummonkilled + 1;
if (burn == 1) {
this.gotoAndStop(4);
} else {
this.gotoAndStop(3);
}
}
if ((life < 1) && (this._parent._y < 350)) {
this._parent._y = this._parent._y + 10;
}
if (this._parent._y > 340) {
lastx = this._parent._x;
displaycarcass = 1;
}
if ((displaycarcass == 1) && (carcassok != 1)) {
carcassok = 1;
lasty = Math.floor(Math.random() * 21) + 250;
carcass = _root.attachMovie("carcass1", "carcass1_" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:lastx, _y:lasty});
this._parent.removeMovieClip();
}
}
if (_global.cleanup == 1) {
this._parent.removeMovieClip();
}
}
Instance of Symbol 140 MovieClip in Symbol 202 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this._parent._parent._parent.life < 200) {
this._alpha = 100;
}
}
Symbol 202 MovieClip Frame 39
_global.life = _global.life - 500;
this._parent._parent._parent._x = this._parent._parent._parent._x + 50;
this._parent._parent.attacking = 0;
Symbol 202 MovieClip Frame 49
if (this._parent._parent.life < 200) {
this._parent._parent.gotoAndStop(3);
} else {
this._parent._parent.gotoAndStop(1);
}
Instance of Symbol 4 MovieClip in Symbol 213 MovieClip Frame 1
onClipEvent (enterFrame) {
this._parent._parent._parent._y = this._parent._parent._parent._y + 0.5;
}
Instance of Symbol 4 MovieClip in Symbol 213 MovieClip Frame 25
onClipEvent (enterFrame) {
this._parent._parent._parent._y = this._parent._parent._parent._y - 0.5;
}
Symbol 223 MovieClip Frame 7
stop();
Symbol 224 MovieClip Frame 67
stop();
Symbol 225 MovieClip Frame 1
stop();
Symbol 225 MovieClip Frame 2
stop();
Symbol 225 MovieClip Frame 3
stop();
Symbol 225 MovieClip Frame 4
stop();
Instance of Symbol 225 MovieClip in Symbol 226 MovieClip [enemy5] Frame 1
onClipEvent (load) {
life = 200;
base = 0;
checking = 0;
speed = 4;
power = 100;
moneyworth = 300;
attacking = 0;
frozen = 0;
if (_global.gamelevel > 25) {
speed = 8;
}
}
onClipEvent (enterFrame) {
if (_global.gamepaused == 0) {
if (life > 0) {
if (attacking == 0) {
if (life < 200) {
this._parent._x = this._parent._x - (speed / 2);
} else if (frozen == 1) {
this._parent._x = this._parent._x - (speed / 2);
} else {
this._parent._x = this._parent._x - speed;
}
}
st = 0;
while (st <= 100) {
if (this.target.hitTest(_root["cannonball_" + st])) {
_root.arrowhit.start();
life = life - 100;
_global.bullet_in_air = false;
_root["cannonball_" + st].removeMovieClip();
this.gotoAndStop(3);
}
st++;
}
yt = 0;
while (yt <= 20) {
if (this.target.hitTest(_root["ice_" + yt]) && (frozen == 0)) {
frozen = 1;
this.ice.gotoAndPlay(2);
}
yt++;
}
if (this._parent._x < 300) {
attacking = 1;
this.gotoAndStop(2);
}
}
if ((life < 1) && (checking == 0)) {
checking = 1;
rr = random(5);
if (rr == 1) {
_root.die1.start();
} else if (rr == 2) {
_root.die2.start();
} else if (rr == 3) {
_root.die3.start();
} else {
_root.die4.start();
}
_global.score = _global.score + 100;
_global.gold = _global.gold + moneyworth;
_global.stagekill = _global.stagekill + 1;
_global.goldearned = _global.goldearned + moneyworth;
_global.dragonskilled = _global.dragonskilled + 1;
_global.dragonsummonkilled = _global.dragonsummonkilled + 1;
this.gotoAndStop(4);
}
if ((life < 1) && (this._parent._y < 350)) {
this._parent._y = this._parent._y + 10;
}
if (this._parent._y > 340) {
lastx = this._parent._x;
displaycarcass = 1;
}
if ((displaycarcass == 1) && (carcassok != 1)) {
carcassok = 1;
lasty = Math.floor(Math.random() * 21) + 250;
carcass = _root.attachMovie("carcass1", "carcass1_" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:lastx, _y:lasty});
this._parent.removeMovieClip();
}
}
if (_global.cleanup == 1) {
this._parent.removeMovieClip();
}
}
Symbol 231 MovieClip [crosshair] Frame 1
stop();
Symbol 231 MovieClip [crosshair] Frame 2
stop();
Symbol 256 MovieClip Frame 51
stop();
Symbol 276 MovieClip Frame 17
enemyfront = this._parent._parent._width / 2;
enemyx = this._parent._parent._x - enemyfront;
enemyy = this._parent._parent._y;
enemyshoot = _root.attachMovie("enemyshot", "eshot_" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:enemyx, _y:enemyy});
Symbol 277 MovieClip Frame 1
stop();
Symbol 277 MovieClip Frame 2
stop();
Symbol 277 MovieClip Frame 3
stop();
Symbol 277 MovieClip Frame 4
stop();
Instance of Symbol 277 MovieClip in Symbol 278 MovieClip [enemy2] Frame 1
onClipEvent (load) {
life = 200;
base = 0;
checking = 0;
speed = 2;
power = 50;
moneyworth = 80;
burn = 0;
frozen = 0;
attacking = 0;
_global.dragonsummon = _global.dragonsummon + 1;
if (_global.gamelevel > 10) {
speed = 3;
}
if (_global.gamelevel > 15) {
speed = 4;
}
if (_global.gamelevel > 20) {
speed = 5;
}
if (_global.gamelevel > 25) {
speed = 6;
}
}
onClipEvent (enterFrame) {
if (_global.gamepaused == 0) {
if (life > 0) {
if (attacking == 0) {
if (frozen == 1) {
this._parent._x = this._parent._x - (speed / 4);
} else {
this._parent._x = this._parent._x - speed;
}
}
st = 0;
while (st <= 100) {
if (this.target.hitTest(_root["cannonball_" + st])) {
_root.arrowhit.start();
life = 0;
_global.bullet_in_air = false;
_root["cannonball_" + st].removeMovieClip();
}
st++;
}
xt = 0;
while (xt <= 20) {
if (this.target.hitTest(_root["fire_" + xt])) {
life = 0;
burn = 1;
frozen = 0;
}
xt++;
}
yt = 0;
while (yt <= 20) {
if (this.target.hitTest(_root["ice_" + yt]) && (frozen == 0)) {
frozen = 1;
this.ice.gotoAndPlay(2);
}
yt++;
}
if (this._parent._x < 185) {
attacking = 1;
this.gotoAndStop(4);
}
}
if ((life < 1) && (checking == 0)) {
checking = 1;
rr = random(5);
if (rr == 1) {
_root.die1.start();
} else if (rr == 2) {
_root.die2.start();
} else if (rr == 3) {
_root.die3.start();
} else {
_root.die4.start();
}
_global.score = _global.score + 120;
_global.gold = _global.gold + moneyworth;
_global.stagekill = _global.stagekill + 1;
_global.goldearned = _global.goldearned + moneyworth;
_global.dragonskilled = _global.dragonskilled + 1;
_global.dragonsummonkilled = _global.dragonsummonkilled + 1;
if (burn == 1) {
this.gotoAndStop(3);
} else {
this.gotoAndStop(2);
}
}
if ((life < 1) && (this._parent._y < 350)) {
this._parent._y = this._parent._y + 10;
}
if (this._parent._y > 340) {
lastx = this._parent._x;
displaycarcass = 1;
}
if ((displaycarcass == 1) && (carcassok != 1)) {
carcassok = 1;
lasty = Math.floor(Math.random() * 21) + 250;
carcass = _root.attachMovie("carcass1", "carcass1_" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:lastx, _y:lasty});
this._parent.removeMovieClip();
}
}
if (_global.cleanup == 1) {
this._parent.removeMovieClip();
}
}
Symbol 295 MovieClip Frame 51
stop();
Symbol 311 MovieClip Frame 15
enemyfront = this._parent._parent._width / 2;
enemyx = this._parent._parent._x - enemyfront;
enemyy = this._parent._parent._y;
enemyshoot = _root.attachMovie("enemyshot", "eshot_" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:enemyx, _y:enemyy});
Symbol 312 MovieClip Frame 1
stop();
Symbol 312 MovieClip Frame 2
stop();
Symbol 312 MovieClip Frame 3
stop();
Symbol 312 MovieClip Frame 4
stop();
Instance of Symbol 312 MovieClip in Symbol 313 MovieClip [enemy1] Frame 1
onClipEvent (load) {
life = 200;
base = 0;
checking = 0;
speed = 1;
power = 50;
moneyworth = 60;
burn = 0;
frozen = 0;
attacking = 0;
_global.dragonsummon = _global.dragonsummon + 1;
if (_global.gamelevel > 10) {
speed = 2;
}
if (_global.gamelevel > 15) {
speed = 3;
}
if (_global.gamelevel > 20) {
speed = 4;
}
if (_global.gamelevel > 25) {
speed = 7;
}
}
onClipEvent (enterFrame) {
if (_global.gamepaused == 0) {
if (life > 0) {
if (attacking == 0) {
if (frozen == 1) {
this._parent._x = this._parent._x - (speed / 4);
} else {
this._parent._x = this._parent._x - speed;
}
}
st = 0;
while (st <= 100) {
if (this.target.hitTest(_root["cannonball_" + st])) {
_root.arrowhit.start();
life = 0;
_global.bullet_in_air = false;
_root["cannonball_" + st].removeMovieClip();
}
st++;
}
xt = 0;
while (xt <= 20) {
if (this.target.hitTest(_root["fire_" + xt])) {
life = 0;
burn = 1;
frozen = 0;
}
xt++;
}
yt = 0;
while (yt <= 20) {
if (this.target.hitTest(_root["ice_" + yt]) && (frozen == 0)) {
frozen = 1;
this.ice.gotoAndPlay(2);
}
yt++;
}
if (this._parent._x < 185) {
attacking = 1;
this.gotoAndStop(4);
}
}
if ((life < 1) && (checking == 0)) {
rr = random(5);
if (rr == 1) {
_root.die1.start();
} else if (rr == 2) {
_root.die2.start();
} else if (rr == 3) {
_root.die3.start();
} else {
_root.die4.start();
}
checking = 1;
_global.score = _global.score + 100;
_global.gold = _global.gold + moneyworth;
_global.stagekill = _global.stagekill + 1;
_global.goldearned = _global.goldearned + moneyworth;
_global.dragonskilled = _global.dragonskilled + 1;
_global.dragonsummonkilled = _global.dragonsummonkilled + 1;
if (burn == 1) {
this.gotoAndStop(3);
} else {
this.gotoAndStop(2);
}
}
if ((life < 1) && (this._parent._y < 350)) {
this._parent._y = this._parent._y + 10;
}
if (this._parent._y > 340) {
lastx = this._parent._x;
displaycarcass = 1;
}
if ((displaycarcass == 1) && (carcassok != 1)) {
carcassok = 1;
lasty = Math.floor(Math.random() * 21) + 250;
carcass = _root.attachMovie("carcass1", "carcass1_" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:lastx, _y:lasty});
this._parent.removeMovieClip();
}
}
if (_global.cleanup == 1) {
this._parent.removeMovieClip();
}
}
Symbol 321 MovieClip Frame 1
stop();
Symbol 321 MovieClip Frame 2
_global.foodval = _global.foodval + foods;
_global.foodgathered = _global.foodgathered + foods;
Symbol 321 MovieClip Frame 15
Symbol 321 MovieClip Frame 26
stop();
Symbol 322 MovieClip [carcass1] Frame 35
stop();
Instance of Symbol 317 MovieClip in Symbol 322 MovieClip [carcass1] Frame 35
onClipEvent (load) {
carryon = 0;
}
onClipEvent (enterFrame) {
function removeme() {
carryon = 1;
_global.shipbusy = 0;
_parent.removeMovieClip();
}
if ((this.hitTest(_root.ship.shiptarget) && (_global.shipbusy == 0)) && (carryon == 0)) {
_global.shipbusy = 1;
_parent.foodval.gotoAndPlay(2);
removeclip = setInterval(removeme, _global.shipworktime);
}
if (_global.cleanup == 1) {
_parent.removeMovieClip();
}
}
Instance of Symbol 321 MovieClip "foodval" in Symbol 322 MovieClip [carcass1] Frame 35
onClipEvent (load) {
foods = 5;
}
onClipEvent (enterFrame) {
this.coin.txtcoinval = "+5";
}
Symbol 333 MovieClip [explosion] Frame 18
this.removeMovieClip();
Symbol 336 MovieClip Frame 11
this._parent.removeMovieClip();
Symbol 337 MovieClip [explosion2] Frame 20
stop();
Instance of Symbol 341 MovieClip in Symbol 342 MovieClip [enemyshot3] Frame 1
onClipEvent (enterFrame) {
if (this._parent._x > 12) {
this._parent._x = this._parent._x - 10;
if (this._parent._y > 162) {
this._parent._y = this._parent._y - 5;
}
if (this._parent._y < 162) {
this._parent._y = this._parent._y + 5;
}
}
if (this.hitTest(_root.barrier)) {
_global.life = _global.life - 500;
this._parent.removeMovieClip();
}
}
Instance of Symbol 341 MovieClip in Symbol 343 MovieClip [enemyshot2] Frame 1
onClipEvent (enterFrame) {
if (this._parent._x > 12) {
this._parent._x = this._parent._x - 10;
if (this._parent._y > 162) {
this._parent._y = this._parent._y - 5;
}
if (this._parent._y < 162) {
this._parent._y = this._parent._y + 5;
}
}
if (this.hitTest(_root.barrier)) {
_global.life = _global.life - 100;
this._parent.removeMovieClip();
}
}
Instance of Symbol 341 MovieClip in Symbol 344 MovieClip [enemyshot] Frame 1
onClipEvent (enterFrame) {
if (this._parent._x > 12) {
this._parent._x = this._parent._x - 10;
if (this._parent._y > 162) {
this._parent._y = this._parent._y - 5;
}
if (this._parent._y < 162) {
this._parent._y = this._parent._y + 5;
}
}
if (this.hitTest(_root.barrier)) {
if (_global.gamelevel > 25) {
_global.life = _global.life - 500;
} else {
_global.life = _global.life - 50;
}
this._parent.removeMovieClip();
}
}
Instance of Symbol 4 MovieClip in Symbol 374 MovieClip Frame 1
onClipEvent (enterFrame) {
this._parent._parent._parent._y = this._parent._parent._parent._y - 2;
}
Instance of Symbol 4 MovieClip in Symbol 374 MovieClip Frame 14
onClipEvent (enterFrame) {
this._parent._parent._parent._y = this._parent._parent._parent._y + 2;
}
Symbol 430 MovieClip Frame 18
enemyfront = this._parent._parent._width / 2;
enemybottom = this._parent._parent._height / 2;
enemyx = this._parent._parent._x - enemyfront;
enemyy = this._parent._parent._y + enemybottom;
enemyshoot = _root.attachMovie("enemyshot2", "eshot_" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:enemyx, _y:enemyy});
Symbol 436 MovieClip Frame 56
stop();
Symbol 439 MovieClip Frame 56
stop();
Symbol 440 MovieClip Frame 1
stop();
Symbol 440 MovieClip Frame 2
stop();
Symbol 440 MovieClip Frame 3
stop();
Symbol 440 MovieClip Frame 4
stop();
Instance of Symbol 440 MovieClip in Symbol 441 MovieClip [bosstroops] Frame 1
onClipEvent (load) {
life = 200;
base = 0;
checking = 0;
speed = 4;
power = 100;
moneyworth = 100;
burn = 0;
frozen = 0;
attacking = 0;
if (_global.gamelevel > 10) {
speed = 4;
}
if (_global.gamelevel > 15) {
speed = 5;
}
if (_global.gamelevel > 20) {
speed = 6;
}
}
onClipEvent (enterFrame) {
if (_global.gamepaused == 0) {
if (life > 0) {
if (attacking == 0) {
if (frozen == 1) {
this._parent._x = this._parent._x - (speed / 4);
} else {
this._parent._x = this._parent._x - speed;
}
}
st = 0;
while (st <= 100) {
if (this.target.hitTest(_root["cannonball_" + st])) {
_root.arrowhit.start();
life = 0;
_global.bullet_in_air = false;
_root["cannonball_" + st].removeMovieClip();
}
st++;
}
xt = 0;
while (xt <= 20) {
if (this.target.hitTest(_root["fire_" + xt])) {
life = 0;
burn = 1;
frozen = 0;
}
xt++;
}
yt = 0;
while (yt <= 20) {
if (this.target.hitTest(_root["ice_" + yt]) && (frozen == 0)) {
frozen = 1;
this.ice.gotoAndPlay(2);
}
yt++;
}
if (this._parent._x < 185) {
attacking = 1;
this.gotoAndStop(2);
}
}
if ((life < 1) && (checking == 0)) {
checking = 1;
rr = random(5);
if (rr == 1) {
_root.die1.start();
} else if (rr == 2) {
_root.die2.start();
} else if (rr == 3) {
_root.die3.start();
} else {
_root.die4.start();
}
_global.score = _global.score + 100;
_global.gold = _global.gold + moneyworth;
_global.goldearned = _global.goldearned + moneyworth;
_global.bosssummon = _global.bosssummon + 1;
if (burn == 1) {
this.gotoAndStop(4);
} else {
this.gotoAndStop(3);
}
}
if ((life < 1) && (this._parent._y < 350)) {
this._parent._y = this._parent._y + 10;
}
if (this._parent._y > 340) {
lastx = this._parent._x;
displaycarcass = 1;
}
if ((displaycarcass == 1) && (carcassok != 1)) {
carcassok = 1;
this._parent.removeMovieClip();
}
}
if (_global.cleanup == 1) {
this._parent.removeMovieClip();
}
}
Instance of Symbol 440 MovieClip in Symbol 442 MovieClip [enemy3] Frame 1
onClipEvent (load) {
life = 200;
base = 0;
checking = 0;
speed = 4;
power = 100;
moneyworth = 100;
burn = 0;
frozen = 0;
attacking = 0;
if (_global.gamelevel > 10) {
speed = 4;
}
if (_global.gamelevel > 15) {
speed = 5;
}
if (_global.gamelevel > 20) {
speed = 6;
}
}
onClipEvent (enterFrame) {
if (_global.gamepaused == 0) {
if (life > 0) {
if (attacking == 0) {
if (frozen == 1) {
this._parent._x = this._parent._x - (speed / 4);
} else {
this._parent._x = this._parent._x - speed;
}
}
st = 0;
while (st <= 100) {
if (this.target.hitTest(_root["cannonball_" + st])) {
_root.arrowhit.start();
life = 0;
_global.bullet_in_air = false;
_root["cannonball_" + st].removeMovieClip();
}
st++;
}
xt = 0;
while (xt <= 20) {
if (this.target.hitTest(_root["fire_" + xt])) {
life = 0;
burn = 1;
frozen = 0;
}
xt++;
}
yt = 0;
while (yt <= 20) {
if (this.target.hitTest(_root["ice_" + yt]) && (frozen == 0)) {
frozen = 1;
this.ice.gotoAndPlay(2);
}
yt++;
}
if (this._parent._x < 185) {
attacking = 1;
this.gotoAndStop(2);
}
}
if ((life < 1) && (checking == 0)) {
checking = 1;
rr = random(5);
if (rr == 1) {
_root.die1.start();
} else if (rr == 2) {
_root.die2.start();
} else if (rr == 3) {
_root.die3.start();
} else {
_root.die4.start();
}
_global.score = _global.score + 100;
_global.gold = _global.gold + moneyworth;
_global.stagekill = _global.stagekill + 1;
_global.goldearned = _global.goldearned + moneyworth;
_global.dragonskilled = _global.dragonskilled + 1;
_global.dragonsummonkilled = _global.dragonsummonkilled + 1;
if (burn == 1) {
this.gotoAndStop(4);
} else {
this.gotoAndStop(3);
}
}
if ((life < 1) && (this._parent._y < 350)) {
this._parent._y = this._parent._y + 10;
}
if (this._parent._y > 340) {
lastx = this._parent._x;
displaycarcass = 1;
}
if ((displaycarcass == 1) && (carcassok != 1)) {
carcassok = 1;
lasty = Math.floor(Math.random() * 21) + 250;
carcass = _root.attachMovie("carcass1", "carcass1_" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:lastx, _y:lasty});
this._parent.removeMovieClip();
}
}
if (_global.cleanup == 1) {
this._parent.removeMovieClip();
}
}
Instance of Symbol 140 MovieClip in Symbol 528 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this._parent._parent._parent.life < 200) {
this._alpha = 100;
}
}
Symbol 528 MovieClip Frame 39
if (_global.gamelevel < 25) {
_global.life = _global.life - 500;
} else {
_global.life = _global.life - 1000;
}
this._parent._parent._parent._x = this._parent._parent._parent._x + 50;
this._parent._parent.attacking = 0;
Symbol 528 MovieClip Frame 49
if (this._parent._parent.life < 200) {
this._parent._parent.gotoAndStop(3);
} else {
this._parent._parent.gotoAndStop(1);
}
Instance of Symbol 4 MovieClip in Symbol 539 MovieClip Frame 1
onClipEvent (enterFrame) {
this._parent._parent._parent._y = this._parent._parent._parent._y + 0.5;
}
Instance of Symbol 4 MovieClip in Symbol 539 MovieClip Frame 25
onClipEvent (enterFrame) {
this._parent._parent._parent._y = this._parent._parent._parent._y - 0.5;
}
Symbol 548 MovieClip Frame 7
stop();
Symbol 549 MovieClip Frame 67
stop();
Symbol 550 MovieClip Frame 1
stop();
Symbol 550 MovieClip Frame 2
stop();
Symbol 550 MovieClip Frame 3
stop();
Symbol 550 MovieClip Frame 4
stop();
Instance of Symbol 550 MovieClip in Symbol 551 MovieClip [enemy4] Frame 1
onClipEvent (load) {
life = 200;
base = 0;
checking = 0;
speed = 3;
power = 100;
moneyworth = 300;
attacking = 0;
if (_global.gamelevel > 25) {
speed = 8;
}
}
onClipEvent (enterFrame) {
if (_global.gamepaused == 0) {
if (life > 0) {
if (attacking == 0) {
if (life < 200) {
this._parent._x = this._parent._x - (speed / 2);
} else {
this._parent._x = this._parent._x - speed;
}
}
st = 0;
while (st <= 100) {
if (this.target.hitTest(_root["cannonball_" + st])) {
_root.arrowhit.start();
life = life - 100;
_global.bullet_in_air = false;
_root["cannonball_" + st].removeMovieClip();
this.gotoAndStop(3);
}
st++;
}
if (this._parent._x < 300) {
attacking = 1;
this.gotoAndStop(2);
}
}
if ((life < 1) && (checking == 0)) {
checking = 1;
rr = random(5);
if (rr == 1) {
_root.die1.start();
} else if (rr == 2) {
_root.die2.start();
} else if (rr == 3) {
_root.die3.start();
} else {
_root.die4.start();
}
_global.score = _global.score + 100;
_global.gold = _global.gold + moneyworth;
_global.stagekill = _global.stagekill + 1;
_global.goldearned = _global.goldearned + moneyworth;
_global.dragonskilled = _global.dragonskilled + 1;
_global.dragonsummonkilled = _global.dragonsummonkilled + 1;
this.gotoAndStop(4);
}
if ((life < 1) && (this._parent._y < 350)) {
this._parent._y = this._parent._y + 10;
}
if (this._parent._y > 340) {
lastx = this._parent._x;
displaycarcass = 1;
}
if ((displaycarcass == 1) && (carcassok != 1)) {
carcassok = 1;
lasty = Math.floor(Math.random() * 21) + 250;
carcass = _root.attachMovie("carcass1", "carcass1_" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:lastx, _y:lasty});
this._parent.removeMovieClip();
}
}
if (_global.cleanup == 1) {
this._parent.removeMovieClip();
}
}
Symbol 582 MovieClip Frame 30
_parent.busy = 0;
_parent.doingjob = 0;
_parent.gotoAndStop(1);
Symbol 685 MovieClip Frame 11
enemyfront = this._parent._parent._width / 2;
enemyfront = enemyfront / 2;
enemyx = (this._parent._parent._x - enemyfront) + 20;
enemyy = this._parent._parent._y + 10;
xx = random(3);
if (xx == 1) {
bossfire = "boss_fire";
} else {
bossfire = "boss_fire2";
}
enemyshoot = _root.attachMovie(bossfire, "bshot_" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:enemyx, _y:enemyy});
Symbol 685 MovieClip Frame 13
enemyfront = this._parent._parent._width / 2;
enemyfront = enemyfront / 2;
enemyx = (this._parent._parent._x - enemyfront) + 20;
enemyy = this._parent._parent._y + 10;
xx = random(3);
if (xx == 1) {
bossfire = "boss_fire";
} else {
bossfire = "boss_fire2";
}
enemyshoot = _root.attachMovie(bossfire, "bshot_" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:enemyx, _y:enemyy});
Symbol 685 MovieClip Frame 17
enemyfront = this._parent._parent._width / 2;
enemyfront = enemyfront / 2;
enemyx = (this._parent._parent._x - enemyfront) + 20;
enemyy = this._parent._parent._y + 10;
xx = random(3);
if (xx == 1) {
bossfire = "boss_fire";
} else {
bossfire = "boss_fire2";
}
enemyshoot = _root.attachMovie(bossfire, "bshot_" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:enemyx, _y:enemyy});
Symbol 685 MovieClip Frame 24
enemyfront = this._parent._parent._width / 2;
enemyfront = enemyfront / 2;
enemyx = (this._parent._parent._x - enemyfront) + 20;
enemyy = this._parent._parent._y + 10;
xx = random(3);
if (xx == 1) {
bossfire = "boss_fire";
} else {
bossfire = "boss_fire2";
}
enemyshoot = _root.attachMovie(bossfire, "bshot_" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:enemyx, _y:enemyy});
Symbol 685 MovieClip Frame 27
enemyfront = this._parent._parent._width / 2;
enemyfront = enemyfront / 2;
enemyx = (this._parent._parent._x - enemyfront) + 20;
enemyy = this._parent._parent._y + 10;
xx = random(3);
if (xx == 1) {
bossfire = "boss_fire";
} else {
bossfire = "boss_fire2";
}
enemyshoot = _root.attachMovie(bossfire, "bshot_" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:enemyx, _y:enemyy});
Symbol 685 MovieClip Frame 30
enemyfront = this._parent._parent._width / 2;
enemyfront = enemyfront / 2;
enemyx = (this._parent._parent._x - enemyfront) + 20;
enemyy = this._parent._parent._y + 10;
xx = random(3);
if (xx == 1) {
bossfire = "boss_fire";
} else {
bossfire = "boss_fire2";
}
enemyshoot = _root.attachMovie(bossfire, "bshot_" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:enemyx, _y:enemyy});
Symbol 685 MovieClip Frame 34
enemyfront = this._parent._parent._width / 2;
enemyfront = enemyfront / 2;
enemyx = (this._parent._parent._x - enemyfront) + 20;
enemyy = this._parent._parent._y + 10;
xx = random(3);
if (xx == 1) {
bossfire = "boss_fire";
} else {
bossfire = "boss_fire2";
}
enemyshoot = _root.attachMovie(bossfire, "bshot_" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:enemyx, _y:enemyy});
Symbol 685 MovieClip Frame 38
enemyfront = this._parent._parent._width / 2;
enemyfront = enemyfront / 2;
enemyx = (this._parent._parent._x - enemyfront) + 20;
enemyy = this._parent._parent._y + 10;
xx = random(3);
if (xx == 1) {
bossfire = "boss_fire";
} else {
bossfire = "boss_fire2";
}
enemyshoot = _root.attachMovie(bossfire, "bshot_" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:enemyx, _y:enemyy});
Symbol 685 MovieClip Frame 42
enemyfront = this._parent._parent._width / 2;
enemyfront = enemyfront / 2;
enemyx = (this._parent._parent._x - enemyfront) + 20;
enemyy = this._parent._parent._y + 10;
xx = random(3);
if (xx == 1) {
bossfire = "boss_fire";
} else {
bossfire = "boss_fire2";
}
enemyshoot = _root.attachMovie(bossfire, "bshot_" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:enemyx, _y:enemyy});
Symbol 685 MovieClip Frame 47
enemyfront = this._parent._parent._width / 2;
enemyfront = enemyfront / 2;
enemyx = (this._parent._parent._x - enemyfront) + 20;
enemyy = this._parent._parent._y + 10;
xx = random(3);
if (xx == 1) {
bossfire = "boss_fire";
} else {
bossfire = "boss_fire2";
}
enemyshoot = _root.attachMovie(bossfire, "bshot_" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:enemyx, _y:enemyy});
Symbol 685 MovieClip Frame 52
enemyfront = this._parent._parent._width / 2;
enemyfront = enemyfront / 2;
enemyx = (this._parent._parent._x - enemyfront) + 20;
enemyy = this._parent._parent._y + 10;
xx = random(3);
if (xx == 1) {
bossfire = "boss_fire";
} else {
bossfire = "boss_fire2";
}
enemyshoot = _root.attachMovie(bossfire, "bshot_" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:enemyx, _y:enemyy});
Symbol 685 MovieClip Frame 54
enemyfront = this._parent._parent._width / 2;
enemyfront = enemyfront / 2;
enemyx = (this._parent._parent._x - enemyfront) + 20;
enemyy = this._parent._parent._y + 10;
xx = random(3);
if (xx == 1) {
bossfire = "boss_fire";
} else {
bossfire = "boss_fire2";
}
enemyshoot = _root.attachMovie(bossfire, "bshot_" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:enemyx, _y:enemyy});
Symbol 685 MovieClip Frame 58
enemyfront = this._parent._parent._width / 2;
enemyfront = enemyfront / 2;
enemyx = (this._parent._parent._x - enemyfront) + 20;
enemyy = this._parent._parent._y + 10;
xx = random(3);
if (xx == 1) {
bossfire = "boss_fire";
} else {
bossfire = "boss_fire2";
}
enemyshoot = _root.attachMovie(bossfire, "bshot_" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:enemyx, _y:enemyy});
Symbol 685 MovieClip Frame 68
_parent.busy = 0;
_parent.doingjob = 0;
_parent.gotoAndStop(1);
Symbol 730 MovieClip Frame 25
if (_global.gamelevel == 26) {
_global.life = _global.life - 2500;
} else {
_global.life = _global.life - 3800;
}
Symbol 730 MovieClip Frame 42
_parent.busy = 0;
_parent.doingjob = 0;
_parent.gotoAndStop(1);
Symbol 834 MovieClip Frame 68
_parent.busy = 0;
_parent.doingjob = 0;
_parent.gotoAndStop(1);
Symbol 835 MovieClip Frame 1
stop();
Symbol 835 MovieClip Frame 2
stop();
Symbol 835 MovieClip Frame 3
stop();
Symbol 835 MovieClip Frame 4
stop();
Instance of Symbol 835 MovieClip in Symbol 836 MovieClip [boss] Frame 1
onClipEvent (load) {
life = 150;
arrival = 0;
busy = 0;
doingjob = 0;
_global.bosssummon = 0;
checking = 0;
if (_global.gamelevel > 30) {
life = 400;
}
}
onClipEvent (enterFrame) {
if (_global.gamepaused == 0) {
if (_global.bosssummon == 8) {
_global.bosssummon = 0;
}
if (life > 0) {
this._alpha = 100;
st = 0;
while (st <= 100) {
if (this.target.hitTest(_root["cannonball_" + st])) {
this._alpha = 50;
_root.arrowhit.start();
life = life - 1;
_global.bullet_in_air = false;
_root["cannonball_" + st].removeMovieClip();
}
st++;
}
if ((_parent._x > 600) && (arrival == 0)) {
_parent._x = _parent._x - 2;
}
if ((_parent._x < 600) && (arrival == 0)) {
arrival = 1;
}
if (arrival == 1) {
if (busy == 0) {
xx = random(10);
busy = 1;
}
trace(xx);
if ((((xx == 1) && (busy == 1)) && (doingjob == 0)) && (_global.bosssummon == 0)) {
doingjob = 1;
this.gotoAndStop(2);
} else if (((xx == 2) && (busy == 1)) && (doingjob == 0)) {
doingjob = 1;
this.gotoAndStop(3);
} else if ((((xx == 3) && (busy == 1)) && (doingjob == 0)) && (_global.bosssummon == 0)) {
doingjob == 1;
_global.bosssummon = _global.bosssummon + 1;
spawnx = Math.floor(Math.random() * 561) + 840;
spawny = Math.floor(Math.random() * 141) + 70;
dragon = _root.attachMovie("bosstroops", "enemy1_" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:spawnx, _y:spawny});
spawnx = Math.floor(Math.random() * 561) + 840;
spawny = Math.floor(Math.random() * 141) + 70;
dragon = _root.attachMovie("bosstroops", "enemy1_" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:spawnx, _y:spawny});
spawnx = Math.floor(Math.random() * 561) + 840;
spawny = Math.floor(Math.random() * 141) + 70;
dragon = _root.attachMovie("bosstroops", "enemy1_" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:spawnx, _y:spawny});
spawnx = Math.floor(Math.random() * 561) + 840;
spawny = Math.floor(Math.random() * 141) + 70;
dragon = _root.attachMovie("bosstroops", "enemy1_" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:spawnx, _y:spawny});
spawnx = Math.floor(Math.random() * 561) + 840;
spawny = Math.floor(Math.random() * 141) + 70;
dragon = _root.attachMovie("bosstroops", "enemy1_" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:spawnx, _y:spawny});
spawnx = Math.floor(Math.random() * 561) + 840;
spawny = Math.floor(Math.random() * 141) + 70;
dragon = _root.attachMovie("bosstroops", "enemy1_" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:spawnx, _y:spawny});
spawnx = Math.floor(Math.random() * 561) + 840;
spawny = Math.floor(Math.random() * 141) + 70;
dragon = _root.attachMovie("bosstroops", "enemy1_" + _root.getNextHighestDepth(), _root.getNextHighestDepth(), {_x:spawnx, _y:spawny});
busy = 0;
doingjob = 0;
} else if (((xx == 4) && (busy == 1)) && (doingjob == 0)) {
doingjob == 1;
this.gotoAndStop(4);
} else if ((busy == 1) && (doingjob == 0)) {
busy = 0;
this.gotoAndStop(1);
}
}
}
if ((life < 1) && (checking == 0)) {
_root.die4.start();
checking = 1;
bossaway = 1;
this.gotoAndStop(1);
}
if (((life < 1) && (bossaway == 1)) && (_parent._y > -130)) {
this._alpha = 100;
_parent._x = _parent._x - 2;
_parent._y = _parent._y - 7;
}
if (((life < 1) && (_parent._y < -130)) && (checker != 1)) {
checker = 1;
_global.score = _global.score + 22500;
_global.gold = _global.gold + 10000;
_global.stagekill = _global.stagekill + 1;
_global.goldearned = _global.goldearned + 10000;
_global.dragonskilled = _global.dragonskilled + 1;
_global.dragonsummonkilled = _global.dragonsummonkilled + 1;
_global.cleanup = 1;
this._parent.removeMovieClip();
}
}
if (_global.cleanup == 1) {
_global.cleanup = 1;
this._parent.removeMovieClip();
}
}
Instance of Symbol 4 MovieClip in Symbol 846 MovieClip Frame 1
onClipEvent (enterFrame) {
this._parent._y = this._parent._y - 5;
}
Instance of Symbol 4 MovieClip in Symbol 846 MovieClip Frame 17
onClipEvent (enterFrame) {
this._parent._y = this._parent._y + 5;
}
Instance of Symbol 845 MovieClip in Symbol 846 MovieClip Frame 35
onClipEvent (enterFrame) {
_parent._x = _parent._x - 5;
}
Instance of Symbol 846 MovieClip in Symbol 847 MovieClip [boss_fire2] Frame 1
onClipEvent (enterFrame) {
_parent._x = _parent._x - 5;
st = 0;
while (st <= 100) {
if (this.hitTest(_root["cannonball_" + st])) {
_root.arrowhit.start();
_global.bullet_in_air = false;
_root["cannonball_" + st].removeMovieClip();
this._parent.removeMovieClip();
}
st++;
}
if (this.hitTest(_root.barrier)) {
_global.life = _global.life - 1000;
this._parent.removeMovieClip();
}
if (_global.cleanup == 1) {
this._parent.removeMovieClip();
}
}
Instance of Symbol 846 MovieClip in Symbol 848 MovieClip [boss_fire] Frame 1
onClipEvent (enterFrame) {
_parent._x = _parent._x - 5;
st = 0;
while (st <= 100) {
if (this.hitTest(_root["cannonball_" + st])) {
_root.arrowhit.start();
_global.bullet_in_air = false;
_root["cannonball_" + st].removeMovieClip();
this._parent.removeMovieClip();
}
st++;
}
if (this.hitTest(_root.barrier)) {
_global.life = _global.life - 1000;
this._parent.removeMovieClip();
}
if (_global.cleanup == 1) {
this._parent.removeMovieClip();
}
}
Symbol 855 MovieClip Frame 1
stop();
Symbol 868 MovieClip [b_WEBSECTORde] Frame 1
this.init("http://www.ultimateflashgame.com/", true);
stop();
Symbol 869 Button
on (release) {
getURL ("http://www.ultimateflashgame.com", "_blank");
}
Symbol 880 Button
on (press) {
_root.getURL("http://www.addictinggames.com");
}
Symbol 1042 MovieClip Frame 98
stop();
Symbol 1043 MovieClip Frame 1
_root.stop();
Symbol 1043 MovieClip Frame 205
_root.play();
Symbol 1056 MovieClip Frame 5
_root.walking.start();
Symbol 1056 MovieClip Frame 10
_root.walking.start();
Symbol 1056 MovieClip Frame 12
Symbol 1077 MovieClip Frame 231
_root.play();
Symbol 1083 MovieClip Frame 15
stop();
Symbol 1087 Button
on (release) {
_global.cleanup = 0;
_root.clickfx.start();
_root.gotoAndStop("game");
}
Symbol 1090 Button
on (release) {
getURL ("http://www.addictinggames.com", "_blank");
}
Symbol 1092 Button
on (release) {
_root.clickfx.start();
myLSO = SharedObject.getLocal("uniqueName");
if (myLSO.data.myObj == undefined) {
trace("No Saved Game");
} else {
trace("Loaded Game");
_global.gamelevel = myLSO.data.myObj.objArray[0];
_global.pullpower = myLSO.data.myObj.objArray[1];
_global.cannon2 = myLSO.data.myObj.objArray[2];
_global.cannon3 = myLSO.data.myObj.objArray[3];
_global.cannon4 = myLSO.data.myObj.objArray[4];
_global.life = myLSO.data.myObj.objArray[5];
_global.maxhp = myLSO.data.myObj.objArray[6];
_global.castle = myLSO.data.myObj.objArray[7];
_global.balistalvl = myLSO.data.myObj.objArray[8];
_global.score = myLSO.data.myObj.objArray[9];
_global.gold = myLSO.data.myObj.objArray[10];
_global.foodval = myLSO.data.myObj.objArray[11];
_global.slayers = myLSO.data.myObj.objArray[12];
_global.shipworktime = myLSO.data.myObj.objArray[13];
_global.shipspeed = myLSO.data.myObj.objArray[14];
_global.carpentersguild = myLSO.data.myObj.objArray[15];
_global.mageguild = myLSO.data.myObj.objArray[16];
_global.balistacrew = myLSO.data.myObj.objArray[17];
_global.shipcrew = myLSO.data.myObj.objArray[18];
_global.fixers = myLSO.data.myObj.objArray[19];
_global.firemages = myLSO.data.myObj.objArray[20];
_global.icemages = myLSO.data.myObj.objArray[21];
_global.dragons = myLSO.data.myObj.objArray[22];
_global.foodgathered = myLSO.data.myObj.objArray[23];
_global.goldearned = myLSO.data.myObj.objArray[24];
_global.dragonskilled = myLSO.data.myObj.objArray[25];
_global.mymessage = "";
_global.messager = 0;
_global.computed = 1;
_global.loadedgame = 1;
_root.gotoAndStop("game");
_root.upgrades.gotoAndPlay(2);
}
}
Symbol 1094 Button
on (release) {
_root.clickfx.start();
_root.gotoAndStop("instructions");
}
Symbol 1098 Button
on (press) {
getURL ("http://www.addictinggames.com", blank);
}
Symbol 1112 MovieClip Frame 1
stop();
Symbol 1116 MovieClip Frame 1
stop();
Symbol 1116 MovieClip Frame 2
stop();
Symbol 1123 MovieClip Frame 1
stop();
Symbol 1123 MovieClip Frame 2
stop();
Symbol 1142 MovieClip Frame 1
stop();
Symbol 1142 MovieClip Frame 89
_global.messager = 0;
_global.mymessage = "";
messagesent = 0;
Symbol 1147 MovieClip Frame 1
stop();
Instance of Symbol 1142 MovieClip "watchmen" in Symbol 1147 MovieClip Frame 1
onClipEvent (load) {
messagesent = 0;
}
onClipEvent (enterFrame) {
if (((_global.mymessage != "") && (_global.messager == 1)) && (messagesent == 0)) {
messagesent = 1;
this.txtmsg = _global.mymessage;
this.gotoAndPlay(2);
}
}
Symbol 1147 MovieClip Frame 2
stop();
Symbol 1147 MovieClip Frame 3
stop();
Symbol 1147 MovieClip Frame 4
stop();
Symbol 1161 MovieClip Frame 1
stop();
Symbol 1168 MovieClip Frame 5
stop();
Symbol 1169 MovieClip Frame 1
stop();
Symbol 1169 MovieClip Frame 2
stop();
Symbol 1169 MovieClip Frame 3
stop();
Symbol 1194 MovieClip Frame 17
if (_global.explosion > 19) {
_global.explosion = 0;
}
_global.explosion = _global.explosion + 1;
firex = Math.floor(Math.random() * 421) + 230;
firey = Math.floor(Math.random() * 151) + 50;
magic = _root.attachMovie("explosion", "fire_" + _global.explosion, _root.getNextHighestDepth(), {_x:firex, _y:firey});
Symbol 1194 MovieClip Frame 18
_parent.gotoAndStop(1);
Symbol 1195 MovieClip Frame 1
stop();
Symbol 1195 MovieClip Frame 2
stop();
Symbol 1212 MovieClip Frame 17
if (_global.explosion2 > 19) {
_global.explosion2 = 0;
}
_global.explosion2 = _global.explosion2 + 1;
icex = Math.floor(Math.random() * 421) + 230;
icey = Math.floor(Math.random() * 151) + 50;
magic = _root.attachMovie("explosion2", "ice_" + _global.explosion2, _root.getNextHighestDepth(), {_x:icex, _y:icey});
Symbol 1212 MovieClip Frame 18
_parent.gotoAndStop(1);
Symbol 1213 MovieClip Frame 1
stop();
Symbol 1213 MovieClip Frame 2
stop();
Symbol 1223 MovieClip Frame 1
stop();
Symbol 1223 MovieClip Frame 2
stop();
Symbol 1229 MovieClip Frame 1
stop();
Symbol 1229 MovieClip Frame 10
stop();
Symbol 1239 Button
on (release) {
if (_global.opendetails == 0) {
if (_global.gold >= 500) {
if (_global.life < _global.maxhp) {
_root.clickfx.start();
_global.life = _global.life + 250;
_global.gold = _global.gold - 500;
if (_global.life > _global.maxhp) {
_global.life = _global.maxhp;
}
}
}
}
}
Symbol 1242 Button
on (release) {
if ((_global.gold >= 2000) && (_global.opendetails == 0)) {
_root.clickfx.start();
_global.castle = 1;
_global.gold = _global.gold - 2000;
_global.maxhp = 2000;
_global.life = _global.maxhp;
}
}
Symbol 1245 Button
on (release) {
if ((_global.gold >= 5000) && (_global.opendetails == 0)) {
_root.clickfx.start();
_global.castle = 2;
_global.gold = _global.gold - 5000;
_global.maxhp = 3000;
_global.life = _global.maxhp;
}
}
Symbol 1248 Button
on (release) {
if ((_global.gold >= 7000) && (_global.opendetails == 0)) {
_root.clickfx.start();
_global.castle = 3;
_global.gold = _global.gold - 7000;
_global.maxhp = 4000;
_global.life = _global.maxhp;
}
}
Symbol 1254 MovieClip Frame 1
stop();
Symbol 1254 MovieClip Frame 2
stop();
Symbol 1254 MovieClip Frame 3
stop();
Symbol 1254 MovieClip Frame 4
stop();
Symbol 1256 Button
on (release) {
if ((_global.gold >= 2000) && (_global.opendetails == 0)) {
_root.clickfx.start();
_global.balistalvl = 2;
_global.cannon2 = 1;
_global.gold = _global.gold - 2000;
}
}
Symbol 1258 Button
on (release) {
if ((_global.gold >= 6000) && (_global.opendetails == 0)) {
_root.clickfx.start();
_global.balistalvl = 3;
_global.cannon3 = 1;
_global.gold = _global.gold - 6000;
}
}
Symbol 1261 Button
on (release) {
if ((_global.gold >= 10000) && (_global.opendetails == 0)) {
_root.clickfx.start();
_global.balistalvl = 4;
_global.cannon4 = 1;
_global.gold = _global.gold - 10000;
}
}
Symbol 1264 MovieClip Frame 1
stop();
Symbol 1264 MovieClip Frame 2
stop();
Symbol 1264 MovieClip Frame 3
stop();
Symbol 1264 MovieClip Frame 4
stop();
Symbol 1266 Button
on (release) {
if ((_global.gold >= 2000) && (_global.opendetails == 0)) {
if (_global.balistacrew < 10) {
_root.clickfx.start();
_global.balistacrew = _global.balistacrew + 1;
_global.pullpower = _global.pullpower + 0.5;
_global.gold = _global.gold - 2000;
}
}
}
Symbol 1271 Button
on (release) {
if ((_global.gold >= 1000) && (_global.opendetails == 0)) {
_root.clickfx.start();
_global.shipspeed = 1;
_global.gold = _global.gold - 1000;
}
}
Symbol 1274 Button
on (release) {
if ((_global.gold >= 2000) && (_global.opendetails == 0)) {
_root.clickfx.start();
_global.shipspeed = 2;
_global.gold = _global.gold - 2000;
}
}
Symbol 1276 Button
on (release) {
if ((_global.gold >= 3000) && (_global.opendetails == 0)) {
_root.clickfx.start();
_global.shipspeed = 3;
_global.gold = _global.gold - 3000;
}
}
Symbol 1279 Button
on (release) {
if ((_global.gold >= 4000) && (_global.opendetails == 0)) {
_root.clickfx.start();
_global.shipspeed = 4;
_global.gold = _global.gold - 4000;
}
}
Symbol 1282 MovieClip Frame 1
stop();
Symbol 1282 MovieClip Frame 2
stop();
Symbol 1282 MovieClip Frame 3
stop();
Symbol 1282 MovieClip Frame 4
stop();
Symbol 1282 MovieClip Frame 5
stop();
Symbol 1284 Button
on (release) {
if ((_global.gold >= 500) && (_global.opendetails == 0)) {
if (_global.shipworktime > 200) {
_root.clickfx.start();
_global.shipcrew = _global.shipcrew + 1;
_global.shipworktime = _global.shipworktime - 200;
_global.gold = _global.gold - 500;
}
}
}
Symbol 1289 Button
on (release) {
if ((_global.gold >= 10000) && (_global.opendetails == 0)) {
_root.clickfx.start();
_global.carpentersguild = 1;
_global.gold = _global.gold - 10000;
}
}
Symbol 1290 MovieClip Frame 1
stop();
Symbol 1290 MovieClip Frame 2
stop();
Symbol 1293 Button
on (release) {
if ((_global.gold >= 800) && (_global.opendetails == 0)) {
_root.clickfx.start();
_global.fixers = _global.fixers + 1;
_global.gold = _global.gold - 800;
}
}
Symbol 1295 MovieClip Frame 1
stop();
Symbol 1295 MovieClip Frame 2
stop();
Symbol 1298 Button
on (release) {
if ((_global.gold >= 2000) && (_global.opendetails == 0)) {
_root.clickfx.start();
_global.firemages = _global.firemages + 1;
_global.gold = _global.gold - 2000;
}
}
Symbol 1299 MovieClip Frame 1
stop();
Symbol 1299 MovieClip Frame 2
stop();
Symbol 1301 Button
on (release) {
if ((_global.gold >= 20000) && (_global.opendetails == 0)) {
_root.clickfx.start();
_global.mageguild = 1;
_global.gold = _global.gold - 20000;
}
}
Symbol 1303 MovieClip Frame 1
stop();
Symbol 1303 MovieClip Frame 2
stop();
Symbol 1306 Button
on (release) {
if ((_global.gold >= 1500) && (_global.opendetails == 0)) {
_root.clickfx.start();
_global.icemages = _global.icemages + 1;
_global.gold = _global.gold - 1500;
}
}
Symbol 1308 MovieClip Frame 1
stop();
Symbol 1308 MovieClip Frame 2
stop();
Symbol 1312 Button
on (release) {
if (_global.opendetails == 0) {
if (_global.gamelevel == 3) {
url_to_lock = "www.addictinggames.com";
domain_parts = _url.split("://");
real_domain = domain_parts[1].split("/");
domain.text = real_domain[0];
if (real_domain[0] != url_to_lock) {
_global.notonaddicting = 1;
detectag.gotoAndPlay(2);
}
}
if (_global.notonaddicting == 0) {
_root.clickfx.start();
_global.gamelevel = _global.gamelevel + 1;
_global.stagekill = 0;
_global.foodgathered = 0;
_global.goldearned = 0;
_global.dragonskilled = 0;
_global.computed = 0;
gotoAndPlay (15);
}
}
}
Symbol 1314 Button
on (release) {
if (_global.opendetails == 0) {
_root.clickfx.start();
myLSO = SharedObject.getLocal("uniqueName");
if (myLSO.data.myObj == undefined) {
trace("Saved Game");
} else {
trace("Overwrote Saved Game");
}
myObj = {};
myObj.objArray = new Array();
myObj.objArray[0] = _global.gamelevel;
myObj.objArray[1] = _global.pullpower;
myObj.objArray[2] = _global.cannon2;
myObj.objArray[3] = _global.cannon3;
myObj.objArray[4] = _global.cannon4;
myObj.objArray[5] = _global.life;
myObj.objArray[6] = _global.maxhp;
myObj.objArray[7] = _global.castle;
myObj.objArray[8] = _global.balistalvl;
myObj.objArray[9] = _global.score;
myObj.objArray[10] = _global.gold;
myObj.objArray[11] = _global.foodval;
myObj.objArray[12] = _global.slayers;
myObj.objArray[13] = _global.shipworktime;
myObj.objArray[14] = _global.shipspeed;
myObj.objArray[15] = _global.carpentersguild;
myObj.objArray[16] = _global.mageguild;
myObj.objArray[17] = _global.balistacrew;
myObj.objArray[18] = _global.shipcrew;
myObj.objArray[19] = _global.fixers;
myObj.objArray[20] = _global.firemages;
myObj.objArray[21] = _global.icemages;
myObj.objArray[22] = _global.dragons;
myObj.objArray[23] = _global.foodgathered;
myObj.objArray[24] = _global.goldearned;
myObj.objArray[25] = _global.dragonskilled;
myLSO.data.myObj = myObj;
gameprogress.gotoAndPlay(2);
}
}
Symbol 1345 Button
on (release) {
_root.clickfx.start();
gotoAndPlay (14);
}
Symbol 1353 MovieClip Frame 2
_global.opendetails = 1;
Symbol 1353 MovieClip Frame 13
txtfoodgathered = _global.foodgathered;
txtgoldearned = _global.goldearned;
txtdragonskilled = _global.dragonskilled;
balistafood = _global.balistacrew * 5;
shipfood = _global.shipcrew * 10;
fixersfood = _global.fixers * 5;
magefood = (_global.firemages + _global.icemages) * 20;
totalfoodconsump = ((shipfood + balistafood) + fixersfood) + magefood;
txtfoodship = shipfood;
txtfoodbalista = balistafood;
txtfoodfixers = fixersfood;
txtfoodmages = magefood;
txttotalfood = _global.foodval;
txttotalconsumption = totalfoodconsump;
if (_global.foodval > totalfoodconsump) {
txtupkeep = 0;
levelupkeep = 0;
} else {
levelupkeep = totalfoodconsump - _global.foodval;
txtupkeep = levelupkeep;
}
levelbonus = _global.gamelevel * 200;
txtlevelbonus = levelbonus;
txtupkeep2 = levelupkeep;
if (_global.loadedgame == 1) {
txtcurrentgold = _global.gold - levelbonus;
currentgold = _global.gold - levelbonus;
} else {
txtcurrentgold = _global.gold;
currentgold = _global.gold;
}
finaltotal = (levelbonus + currentgold) - levelupkeep;
txttotalgold = finaltotal;
if (_global.computed == 0) {
_global.gold = finaltotal;
_global.computed = 1;
}
stop();
Symbol 1353 MovieClip Frame 22
_global.opendetails = 0;
_global.loadedgame = 0;
Symbol 1353 MovieClip Frame 23
stop();
Symbol 1357 Button
on (press) {
getURL ("http://www.addictinggames.com/dragonslayers.html", blank);
}
Symbol 1358 MovieClip Frame 1
stop();
Symbol 1358 MovieClip Frame 13
stop();
Symbol 1358 MovieClip Frame 23
stop();
Symbol 1361 MovieClip Frame 1
stop();
Symbol 1362 MovieClip Frame 1
stop();
Symbol 1362 MovieClip Frame 2
_global.gamepaused = 1;
_global.cleanup = 1;
_root.darker.gotoAndPlay(2);
gotoAndPlay (3);
Symbol 1362 MovieClip Frame 14
_root.upgrades.leveldetails.gotoAndPlay(2);
_global.gamepaused = 1;
stop();
Instance of Symbol 1254 MovieClip in Symbol 1362 MovieClip Frame 14
onClipEvent (enterFrame) {
if (_global.castle == 0) {
this.gotoAndStop(1);
} else if (_global.castle == 1) {
this.gotoAndStop(2);
} else if (_global.castle == 2) {
this.gotoAndStop(3);
} else if (_global.castle == 3) {
this.gotoAndStop(4);
}
}
Instance of Symbol 1264 MovieClip in Symbol 1362 MovieClip Frame 14
onClipEvent (enterFrame) {
if (_global.balistalvl == 1) {
this.gotoAndStop(1);
} else if (_global.balistalvl == 2) {
this.gotoAndStop(2);
} else if (_global.balistalvl == 3) {
this.gotoAndStop(3);
} else if (_global.balistalvl == 4) {
this.gotoAndStop(4);
}
}
Instance of Symbol 1269 MovieClip in Symbol 1362 MovieClip Frame 14
onClipEvent (enterFrame) {
this.txtbalistacrew = ("(" + _global.balistacrew) + ")";
}
Instance of Symbol 1282 MovieClip in Symbol 1362 MovieClip Frame 14
onClipEvent (enterFrame) {
if (_global.shipspeed == 0.5) {
this.gotoAndStop(1);
} else if (_global.shipspeed == 1) {
this.gotoAndStop(2);
} else if (_global.shipspeed == 2) {
this.gotoAndStop(3);
} else if (_global.shipspeed == 3) {
this.gotoAndStop(4);
} else if (_global.shipspeed == 4) {
this.gotoAndStop(5);
}
}
Instance of Symbol 1287 MovieClip in Symbol 1362 MovieClip Frame 14
onClipEvent (enterFrame) {
this.txtshipcrew = ("(" + _global.shipcrew) + ")";
}
Instance of Symbol 1290 MovieClip in Symbol 1362 MovieClip Frame 14
onClipEvent (enterFrame) {
if (_global.carpentersguild == 1) {
this.gotoAndStop(2);
}
}
Instance of Symbol 1295 MovieClip in Symbol 1362 MovieClip Frame 14
onClipEvent (enterFrame) {
if (_global.carpentersguild == 1) {
this.gotoAndStop(2);
this.txtfixers = ("(" + _global.fixers) + ")";
}
}
Instance of Symbol 1299 MovieClip in Symbol 1362 MovieClip Frame 14
onClipEvent (enterFrame) {
if (_global.mageguild == 1) {
this.gotoAndStop(2);
this.txtfiremages = ("(" + _global.firemages) + ")";
}
}
Instance of Symbol 1303 MovieClip in Symbol 1362 MovieClip Frame 14
onClipEvent (enterFrame) {
if (_global.mageguild == 1) {
this.gotoAndStop(2);
}
}
Instance of Symbol 1308 MovieClip in Symbol 1362 MovieClip Frame 14
onClipEvent (enterFrame) {
if (_global.mageguild == 1) {
this.gotoAndStop(2);
this.txticemages = ("(" + _global.icemages) + ")";
}
}
Symbol 1362 MovieClip Frame 15
_root.darker.gotoAndPlay(11);
Symbol 1362 MovieClip Frame 23
_root.leveltitle.gotoAndPlay(2);
_global.cleanup = 0;
Instance of Symbol 1380 MovieClip in Symbol 1381 MovieClip Frame 1
onClipEvent (enterFrame) {
this.txtlevel = _global.gamelevel;
}
Symbol 1383 MovieClip Frame 1
if (((_global.gamelevel == 1) && (firstcheck != 1)) && (_global.loadedgame == 0)) {
firstcheck = 1;
gotoAndPlay (2);
} else {
stop();
}
Symbol 1383 MovieClip Frame 5
_global.gamepaused = 1;
_root.startbattle.start();
Symbol 1383 MovieClip Frame 91
_global.gamepaused = 0;
if (_global.gamelevel == 5) {
_global.mymessage = "We got some fast looking dragons up ahead.";
_global.messager = 1;
} else if (_global.gamelevel == 10) {
_global.mymessage = "Purples incoming! Hope your ballista is upgraded.";
_global.messager = 1;
} else if (_global.gamelevel == 16) {
_global.mymessage = "We got some huge red dragons up ahead. Fire mages can't hurt them but ice could slow them down!";
_global.messager = 1;
} else if (_global.gamelevel == 20) {
_global.mymessage = "Blue dragons! Be ready they are immune to magic attacks!";
_global.messager = 1;
} else if (_global.gamelevel == 23) {
_global.mymessage = "Small, deadly and extremely fast! Heads up!";
_global.messager = 1;
} else if (_global.gamelevel == 26) {
_global.mymessage = "OH MY GOURD!!! SOMETHING EXTREMELY HUGE IS COMING!!!!!";
_global.messager = 1;
} else if (_global.gamelevel == 27) {
_global.mymessage = "Wohooo! You still want more?? after that last attack?? sheesh!";
_global.messager = 1;
} else if (_global.gamelevel > 1) {
jj = random(20);
if (jj == 1) {
_global.mymessage = "Lets get it on!";
_global.messager = 1;
} else if (jj == 2) {
_global.mymessage = "Blood is just red sweat.";
_global.messager = 1;
} else if (jj == 3) {
_global.mymessage = "If you can't take the heat, don't tickle the dragon.";
_global.messager = 1;
} else if (jj == 4) {
_global.mymessage = "The man who fights too long against dragons becomes a dragon himself";
_global.messager = 1;
} else if (jj == 5) {
_global.mymessage = "The best defense is a good offence";
_global.messager = 1;
} else if (jj == 6) {
_global.mymessage = "I see many dragons coming... shoot them! kill them!!!";
_global.messager = 1;
} else if (jj == 7) {
_global.mymessage = "I love eating dragon meat. Kill more!";
_global.messager = 1;
}
}
Symbol 1395 Button
on (release) {
getURL ("http://www.addictinggames.com", "_blank");
}
Symbol 1397 Button
on (release) {
_global.cleanup = 0;
_global.gamepaused = 1;
_root.gotoAndStop("title");
}
Symbol 1398 Button
on (release) {
getURL ("http://www.addictinggames.com", "_blank");
}
Symbol 1399 MovieClip Frame 1
stop();
Symbol 1399 MovieClip Frame 2
_global.gamepaused = 1;
_global.cleanup = 1;
_root.darker.gotoAndPlay(2);
Symbol 1399 MovieClip Frame 14
txtfinalscore = _global.score;
txtfoodgathered = _global.foodval;
txtgoldacquired = _global.gold;
txtrecruits = (((_global.balistacrew + _global.shipcrew) + _global.fixers) + _global.firemages) + _global.icemages;
txttotalscore = ((((((_global.score + _global.foodval) + _global.gold) + _global.balistacrew) + _global.shipcrew) + _global.fixers) + _global.firemages) + _global.icemages;
_global.gamepaused = 1;
stop();
Symbol 1399 MovieClip Frame 15
_root.darker.gotoAndPlay(11);
Symbol 1399 MovieClip Frame 23
_root.gotoAndStop("title");
_global.cleanup = 0;
Symbol 1403 Button
on (release) {
_root.gotoAndStop("title");
}
Symbol 1410 Button
on (release) {
gotoAndPlay (126);
}
Symbol 1415 Button
on (release) {
gotoAndPlay (264);
}
Symbol 1417 Button
on (release) {
gotoAndPlay (336);
}
Symbol 1425 Button
on (release) {
gotoAndPlay (437);
}
Symbol 1429 Button
on (release) {
_root.gotoAndStop("title");
}
Symbol 1430 MovieClip Frame 125
stop();
Symbol 1430 MovieClip Frame 264
stop();
Symbol 1430 MovieClip Frame 335
stop();
Symbol 1430 MovieClip Frame 437
stop();
Symbol 1430 MovieClip Frame 460
stop();
Symbol 1431 MovieClip Frame 1
stop();