Frame 1
stop();
Instance of Symbol 109 MovieClip in Frame 1
onClipEvent (enterFrame) {
percent = Math.ceil(_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (_currentframe < percent) {
nextFrame();
}
if (_currentframe == 100) {
_root.gotoAndStop("intro");
}
}
Frame 3
level = 1;
hp_full = 10;
hp = hp_full;
armor = 0;
gold = 0;
item_firearrows = false;
item_mithril = false;
item_ring = false;
invisible = false;
firearrows = false;
m_level1 = new Sound();
m_level1.attachSound("level1");
m_level2 = new Sound();
m_level2.attachSound("level2");
m_level3 = new Sound();
m_level3.attachSound("level3");
m_level4 = new Sound();
m_level4.attachSound("level4");
m_boss = new Sound();
m_boss.attachSound("boss");
m_theme = new Sound();
m_theme.attachSound("theme");
m_shop = new Sound();
m_shop.attachSound("shop");
m_map = new Sound();
m_map.attachSound("map");
m_gameover = new Sound();
m_gameover.attachSound("gameover");
m_victory = new Sound();
m_victory.attachSound("victory");
s_cash = new Sound();
s_cash.attachSound("cash");
s_cantbuy = new Sound();
s_cantbuy.attachSound("cantbuy");
s_gold = new Sound();
s_gold.attachSound("get_gold");
s_clonk = new Sound();
s_clonk.attachSound("clonk");
s_hit1 = new Sound();
s_hit1.attachSound("hit1");
s_hit2 = new Sound();
s_hit2.attachSound("hit2");
s_rumble = new Sound();
s_rumble.attachSound("rumble");
s_scream = new Sound();
s_scream.attachSound("scream");
s_roar1 = new Sound();
s_roar1.attachSound("roar1");
s_roar2 = new Sound();
s_roar2.attachSound("roar2");
s_grunt1 = new Sound();
s_grunt1.attachSound("grunt1");
s_grunt2 = new Sound();
s_grunt2.attachSound("grunt2");
s_dragon_die = new Sound();
s_dragon_die.attachSound("dragon_die");
s_balrog_die = new Sound();
s_balrog_die.attachSound("balrog_die");
s_use_firearrows = new Sound();
s_use_firearrows.attachSound("fire");
s_use_mithril = new Sound();
s_use_mithril.attachSound("use_mithril");
s_use_ring = new Sound();
s_use_ring.attachSound("use_ring");
s_boom = new Sound();
s_boom.attachSound("boom");
s_boom2 = new Sound();
s_boom2.attachSound("boom2");
s_pullback = new Sound();
s_pullback.attachSound("pullback");
s_release = new Sound();
s_release.attachSound("release");
s_clang = new Sound();
s_clang.attachSound("clang");
nada = new Object();
nada.ra = 100;
nada.rb = 0;
nada.ga = 100;
nada.gb = 0;
nada.ba = 100;
nada.bb = 0;
red = new Object();
red.ra = 100;
red.rb = 50;
red.ga = 100;
red.gb = 0;
red.ba = 100;
red.bb = 0;
_quality = "HIGH";
stopAllSounds();
m_theme.start(0, 99999);
Mouse.show();
Frame 4
Mouse.show();
stopAllSounds();
m_map.start();
Frame 5
Mouse.show();
stopAllSounds();
m_shop.start(0, 99999);
Instance of Symbol 243 MovieClip "shop" in Frame 5
onClipEvent (enterFrame) {
eval ("item" + selected_item).play();
if ((messages._currentFrame == 1) && (intro == false)) {
item1.button._visible = true;
item2.button._visible = true;
item3.button._visible = true;
item4.button._visible = true;
shopkeeper.button._visible = true;
} else {
item1.button._visible = false;
item2.button._visible = false;
item3.button._visible = false;
item4.button._visible = false;
shopkeeper.button._visible = false;
}
}
Frame 6
stopAllSounds();
m_gameover.start(0, 999999);
Frame 7
stopAllSounds();
m_victory.start();
Frame 8
function screen_shake(dir, speed) {
if (dir == "x") {
game._x = game._x + speed;
} else {
game._y = game._y + speed;
}
}
function f_cursor() {
tellTarget (cursor) {
Mouse.hide();
_x = _root._xmouse;
_y = _root._ymouse;
mouse_x = _x;
mouse_y = _y;
_root.game.bow._x = (_root.bow_x + ((mouse_x / 1.5) + _root.game_x)) - _root.game._x;
_root.game.bow._y = mouse_y - _root.game._y;
_root.game.bow._xscale = 100 - ((mouse_x - _root.game_x) / 6);
_root.game.bg._x = _root.game.bg._x + ((((-(mouse_x - _root.game._x)) / 7) - _root.game.bg._x) / 3);
_root.game.bg._y = _root.game.bg._y + ((((-mouse_y) / 4) - (_root.game.bg._y - _root.game._y)) / 2);
_root.game.background._y = _root.game.background._y + ((((-mouse_y) / 8) - (_root.game.background._y - _root.game._y)) / 3);
if (_root.game.background._y > 210) {
_root.bright._alpha = ((_root.game.background._y - 210) / 60) * 100;
_root.bright._visible = 1;
} else {
_root.bright._visible = 0;
}
};
}
function spawn_object(name, x, y, xscale, rotation) {
game.spawn_num++;
if (name == "gold") {
game.bg.attachMovie(name, (name + "_") + game.spawn_num, game.spawn_num);
s_obj = _root.game.bg[(name + "_") + game.spawn_num];
} else {
game.bow.swapDepths(game.spawn_num + 1);
game.particle_layer1.swapDepths(game.spawn_num + 2);
game.particle_layer2.swapDepths(game.spawn_num + 3);
game.attachMovie(name, (name + "_") + game.spawn_num, game.spawn_num);
s_obj = _root.game[(name + "_") + game.spawn_num];
}
s_obj._x = x;
s_obj._y = y;
s_obj._xscale = xscale;
s_obj._yscale = Math.abs(xscale);
s_obj._rotation = rotation;
}
function scroll(speed, dir) {
tellTarget (game) {
if (dir == "vert") {
_y = (_y + speed);
bow._y = bow._y - speed;
background._y = background._y - speed;
} else {
_x = (_x - speed);
bow._x = bow._x + speed;
background._x = background._x + speed;
}
};
}
function player() {
if (_root.gold > prev_gold) {
_root.hud_gold.play();
}
prev_gold = _root.gold;
if (_root.invisible == true) {
_root.hud_items.ring._visible = true;
} else {
_root.hud_items.ring._visible = false;
}
if (_root.armor > 0) {
_root.hud_items.mithril._visible = true;
} else {
_root.hud_items.mithril._visible = false;
}
if (_root.firearrows == true) {
_root.hud_items.arrows._visible = true;
} else {
_root.hud_items.arrows._visible = false;
}
if (armor > 0) {
if (hp < hp_prev) {
armor = armor - (hp_prev - hp);
hp = hp_prev;
}
if (armor < 0) {
armor = 0;
}
hp_prev = hp;
}
if (invisible == true) {
if (invisible_timer > 0) {
invisible_timer--;
} else {
invisible = false;
}
}
if (hp < 1) {
_root.game.bow.gotoAndStop("die");
} else {
if ((_root.firearrows == true) && (_root.game.bow._currentFrame < 5)) {
_root.game.p_num++;
rand_x = random(55);
rand_y = random(50);
rand_size = random(350);
if (_root.game.bow._currentFrame == 4) {
spawn_x = _root.game.bow._x + 70;
spawn_y = _root.game.bow._y + 70;
} else {
spawn_x = _root.game.bow._x;
spawn_y = _root.game.bow._y + 40;
}
n = 1;
while (n < 3) {
_root.game["particle_layer" + n].attachMovie("fire_particle", "p" + _root.game.p_num, _root.game.p_num);
obj = _root.game["particle_layer" + n]["p" + _root.game.p_num];
obj._x = spawn_x + rand_x;
obj._y = spawn_y - rand_y;
obj._xscale = 200 + rand_size;
obj._yscale = obj._xscale;
obj.particle.gotoAndStop(n);
n++;
}
}
if (Key.isDown(49) && (_root.item_firearrows == true)) {
_root.item_firearrows = false;
_root.firearrows = true;
_root.ammo = 25;
_root.s_use_firearrows.start();
}
if (Key.isDown(50) && (_root.item_mithril == true)) {
_root.item_mithril = false;
_root.armor = _root.hp_full;
_root.s_use_mithril.start();
}
if (Key.isDown(51) && (_root.item_ring == true)) {
_root.item_ring = false;
_root.invisible = true;
_root.invisible_timer = 650;
_root.s_use_ring.start();
}
if (_root.roam_level != false) {
_root.limit_dodge_right = _root.game._x - 250;
_root.limit_dodge_left = _root.game._x + 250;
if (_root.game._x == prev_game_x) {
_root.go_arrow.play();
} else {
_root.go_arrow.gotoAndPlay("end");
}
prev_game_x = _root.game._x;
}
walking = false;
if (dodge_counter_r > 0) {
dodge_counter_r--;
}
if (dodge_counter_l > 0) {
dodge_counter_l--;
}
if (Key.isDown(68)) {
if ((_root.game._x > _root.limit_right) && (_root.game._x > _root.limit_dodge_right)) {
if (speed_x == 0) {
dodge_counter_r = dodge_counter_r + 10;
}
if (dodge_counter_r > 15) {
speed_x = _root.speed * 2;
}
if (speed_x < _root.speed) {
speed_x = _root.speed;
}
walking = true;
}
}
if (Key.isDown(65)) {
if ((_root.game._x < _root.limit_left) && (_root.game._x < _root.limit_dodge_left)) {
if (speed_x == 0) {
dodge_counter_l = dodge_counter_l + 10;
}
if (dodge_counter_l > 15) {
speed_x = (-_root.speed) * 2;
}
if (speed_x > (-_root.speed)) {
speed_x = -_root.speed;
}
walking = true;
}
}
scroll(speed_x);
if (_root.game._x <= _root.limit_right) {
_root.cinema_levelend.play();
}
if (walking != true) {
speed_x = 0;
} else if (speed_x > _root.speed) {
speed_x--;
} else if (speed_x < (-_root.speed)) {
speed_x++;
}
if (((speed_y > 0) && (walking != true)) || (speed_y >= (-_root.speed_head_bob))) {
_root.scroll(speed_y, "vert");
}
if (speed_y >= (-_root.speed_head_bob)) {
speed_y = speed_y - 0.75;
} else if (walking == true) {
speed_y = _root.speed_head_bob;
}
}
}
function arrow(name) {
tellTarget (_root.game[name]) {
_xscale = (_xscale - speed);
_yscale = (_yscale - _root.speed_arrow);
if (_yscale < 1) {
gotoAndStop ("idle");
}
};
}
function boss1() {
tellTarget (_root.game.bg.boss1) {
if (walk == true) {
x = (_x + _parent._x) + _parent._parent._x;
if ((x + width) < 320) {
speed_x = _root.speed_boss1;
} else if ((x - width) > 320) {
speed_x = -_root.speed_boss1;
} else {
speed_x = 0;
}
_x = (_x + speed_x);
}
x = _x + _parent._x;
y = _y + _parent._y;
i = 1;
while (i < 3) {
a = _root.game["arrow" + i];
if ((((((a._x > (x - width)) && (a._x < (x + width))) && (a._y < ((y - height) + 90))) && (a._y > (y - height))) && ((a._yscale - _root.speed_arrow) < 3)) && (a._currentFrame == 2)) {
amount = random(20) + 10;
while (i < amount) {
_root.spawn_object("fx_blood_particle", a._x, a._y, 50 + random(50), 2);
i++;
}
_root["s_hit" + (random(2) + 1)].start();
if (a.fire == true) {
_root.spawn_object("fx_fire_hit", arrow_x, arrow_y, 20, 0);
hp = hp - 2;
} else {
hp--;
}
}
i++;
}
if (hp < 1) {
gotoAndStop ("die");
}
};
}
function boss2() {
tellTarget (_root.game.bg.boss2) {
if (_currentframe == 3) {
if ((!dest_x) || (dest_x == _x)) {
dest_x = (random(640) - _parent._x) - _parent._parent._x;
}
if ((_x + _root.speed_boss2) < dest_x) {
_x = (_x + _root.speed_boss2);
} else if ((_x - _root.speed_boss2) > dest_x) {
_x = (_x - _root.speed_boss2);
} else {
dest_x = _x;
}
if (((random(100) == 1) && (_root.invisible != true)) && (_root.game.bow.alive != false)) {
gotoAndStop ("attack");
}
}
x = _x + _parent._x;
y = _y + _parent._y;
i = 1;
while (i < 3) {
a = _root.game["arrow" + i];
if (((((a._x > (x - width)) && (a._x < (x + width))) && (a._y > (y - height))) && ((a._yscale - _root.speed_arrow) < 50)) && (a._currentFrame == 2)) {
amount = random(10) + 5;
while (i < amount) {
_root.spawn_object("fx_blood_particle", a._x, a._y, 100 + random(100), 2);
i++;
}
_root["s_hit" + (random(2) + 1)].start();
if (a.fire == true) {
_root.spawn_object("fx_fire_hit", arrow_x, arrow_y, 20, 0);
hp = hp - 2;
} else {
hp--;
}
a.gotoAndStop(1);
}
i++;
}
if (hp < 1) {
gotoAndStop ("die");
}
};
}
function boss3() {
tellTarget (_root.game.bg.boss3) {
x = (_x + _parent._x) + _parent._parent._x;
if (_currentframe == 2) {
if (_xscale > 0) {
_x = (_x + _root.speed_boss3);
if ((x - width) > 940) {
gotoAndStop ("attack");
}
} else {
_x = (_x - _root.speed_boss3);
if ((x + width) < -300) {
gotoAndStop ("attack");
}
}
}
x = _x + _parent._x;
y = _y + _parent._y;
i = 1;
while (i < 3) {
a = _root.game["arrow" + i];
if ((((((a._x > (x - width)) && (a._x < (x + width))) && (a._y > (y - height))) && (a._y < (y + height))) && ((a._yscale - _root.speed_arrow) < 50)) && (a._currentFrame == 2)) {
amount = random(10) + 5;
while (i < amount) {
if (_currentframe == 3) {
p_size = 50 + random(50);
} else {
p_size = 25 + random(25);
}
_root.spawn_object("fx_blood_particle", a._x, a._y, p_size, 2);
i++;
}
_root["s_hit" + (random(2) + 1)].start();
if (a.fire == true) {
_root.spawn_object("fx_fire_hit", arrow_x, arrow_y, 20, 0);
hp = hp - 2;
} else {
hp--;
}
if ((hp <= 0) && (_currentframe == 3)) {
gotoAndStop ("die");
}
a.gotoAndStop(1);
}
i++;
}
};
}
function boss4() {
tellTarget (_root.game.bg.boss4) {
x = (head._x + _x) + _parent._x;
y = (head._y + _y) + _parent._y;
i = 1;
while (i < 3) {
a = _root.game["arrow" + i];
if ((((((a._x > (x - width)) && (a._x < (x + width))) && (a._y > (y - height))) && (a._y < (y + height))) && ((a._yscale - _root.speed_arrow) < 50)) && (a._currentFrame == 2)) {
amount = random(10) + 5;
_root["s_hit" + (random(2) + 1)].start();
if (a.fire == true) {
_root.spawn_object("fx_fire_hit", arrow_x, arrow_y, 20, 0);
}
hp--;
if ((hp <= 0) && (_currentframe == 3)) {
gotoAndStop ("die");
}
a.gotoAndStop(1);
} else {
hurt.play();
}
i++;
}
};
}
function enemy_goblin(name, dist) {
tellTarget (_root.game.bg[name]) {
if (visible == true) {
if (walking == true) {
_x = (_x + speed);
x = (_x + _parent._x) + _parent._parent._x;
if (((x > 420) && (speed > 0)) || ((x < 220) && (speed < 0))) {
if (gob.gob._currentFrame == 1) {
gob.gob.gotoAndPlay("fire");
}
}
if ((((x + width) < 0) && (speed < 0)) || (((x - width) > 640) && (speed > 0))) {
_x = ((640 - _parent._x) - _parent._parent._x);
gotoAndStop ("idle");
}
}
x = _x + _parent._x;
y = _y + _parent._y;
i = 1;
while (i < 3) {
a = _root.game["arrow" + i];
if ((((((a._x > (x - width)) && (a._x < (x + width))) && (a._y < y)) && (a._y > (y - height))) && ((a._yscale - _root.speed_arrow) < dist)) && (a._currentFrame == 2)) {
arrow_x = a._x;
arrow_y = a._y;
if (a.fire == true) {
_root.spawn_object("fx_fire_hit", arrow_x, arrow_y, 20, 0);
}
gotoAndStop ("die");
}
i++;
}
}
};
}
function enemy_shieldorc(name, dist) {
tellTarget (_root.game.bg[name]) {
if (_currentframe < 4) {
if ((!dest_x) || (dest_x == _x)) {
dest_x = (random(640) - _parent._x) - _parent._parent._x;
}
if ((_x + _root.speed_shieldorc) < dest_x) {
_x = (_x + _root.speed_shieldorc);
} else if ((_x - _root.speed_shieldorc) > dest_x) {
_x = (_x - _root.speed_shieldorc);
} else {
dest_x = _x;
}
if (_x != dest_x) {
if (_currentframe == 2) {
gotoAndStop ("walk");
}
} else if (_currentframe == 3) {
gotoAndStop ("stand");
}
if (attack_timer == 0) {
attack_timer = -1;
if (_root.invisible != true) {
gotoAndStop ("attack");
}
} else if (attack_timer > 0) {
attack_timer--;
} else {
attack_timer = random(100);
}
}
x = _x + _parent._x;
y = _y + _parent._y;
i = 1;
while (i < 3) {
a = _root.game["arrow" + i];
if ((((((a._x > (x - width)) && (a._x < (x + width))) && (a._y < y)) && (a._y > (y - height))) && ((a._yscale - _root.speed_arrow) < dist)) && (a._currentFrame == 2)) {
arrow_x = a._x;
arrow_y = a._y;
if (a.fire == true) {
_root.spawn_object("fx_fire_hit", arrow_x, arrow_y, 40, 0);
}
if (vulnerable == true) {
gotoAndStop ("die");
} else {
_root.spawn_object("fx_spark", arrow_x, arrow_y, 100, 0);
_root.s_clang.start();
}
}
i++;
}
};
}
function enemy_wraith(name) {
tellTarget (_root.game.bg[name]) {
x = (_x + _parent._x) + _parent._parent._x;
if ((x + _root.speed_wraith) < 320) {
_x = (_x + _root.speed_wraith);
} else if ((x - _root.speed_waith) > 320) {
_x = (_x - _root.speed_wraith);
}
x = _x + _parent._x;
y = _y + _parent._y;
i = 1;
while (i < 3) {
a = _root.game["arrow" + i];
if ((((((a._x > (x - width)) && (a._x < (x + width))) && (a._y < y)) && (a._y > (y - height))) && ((a._yscale - _root.speed_arrow) < 40)) && (a._currentFrame == 2)) {
arrow_x = a._x;
arrow_y = a._y;
if (a.fire == true) {
_root.spawn_object("fx_fire_hit", arrow_x, arrow_y, 75, 0);
hp = hp - 2;
} else {
hp--;
}
a.gotoAndStop(1);
if (hp <= 0) {
gotoAndStop ("die");
} else {
_root.s_hit1.start();
hurt.play();
}
}
i++;
}
};
}
function enemy_arrow(name, speed) {
tellTarget (_root.game[name]) {
_xscale = (_xscale + ((_xscale / 100) * speed));
_yscale = _xscale;
if (_xscale > 100) {
x = _x + _parent._x;
if (((x > 60) && (x < 580)) && (_root.game.bow.alive != false)) {
_root.hp--;
_root.hurt.play();
}
_root.game[name].removeMovieClip();
}
};
}
function enemy_bomb(name) {
tellTarget (_root.game[name]) {
_xscale = (_xscale + ((_xscale / 100) * _root.speed_enemy_bomb));
_yscale = _xscale;
x = _x;
y = _y;
w = (width / _yscale) * width;
h = (height / _yscale) * height;
i = 1;
while (i < 3) {
a = _root.game["arrow" + i];
if ((((((a._x > (x - w)) && (a._x < (x + w))) && (a._y < y)) && (a._y > (y - h))) && ((a._yscale - _root.speed_arrow) < _yscale)) && (a._currentFrame == 2)) {
arrow_x = a._x;
arrow_y = a._y;
a.gotoAndStop(1);
gotoAndStop ("boom");
}
i++;
}
if (_xscale > 100) {
_root.hp--;
_root.hurt.play();
gotoAndStop ("boom");
}
};
}
function particle(name) {
tellTarget (_root.game[name]) {
_x = (_x + speed_x);
_y = (_y + speed_y);
_xscale = (_xscale + ((_xscale / 100) * speed_z));
_yscale = _xscale;
if (speed_x > 0) {
speed_x = speed_x - 0.5;
} else if (speed_x < 0) {
speed_x = speed_x + 0.5;
}
speed_y = speed_y + 3;
if (speed_y < speed) {
timer = 10;
} else if (timer == 0) {
_alpha = (_alpha - 10);
if (_alpha <= 0) {
_root.game[name].removeMovieClip();
}
} else if (timer > 0) {
timer--;
}
};
}
speed = 14;
speed_head_bob = 3;
speed_arrow = 26;
speed_boss1 = 5;
speed_boss2 = 8;
speed_boss3 = 9;
speed_goblin = 34;
speed_shieldorc = 4;
speed_wraith = 4;
speed_enemy_arrow = 20;
speed_enemy_bomb = 6;
speed_fireball = 16;
speed_boss_axe = 12;
roam_level = true;
speed_x = 0;
dodge_counter = 0;
stopAllSounds();
_quality = "medium";
gotoAndStop("level" + _root.level);
Frame 9
game_x = game._x;
bow_x = game.bow._x;
bow_y = game.bow._y;
limit_left = game._x;
limit_right = -12300;
_root.m_level1.start(0, 999999);
Instance of Symbol 348 MovieClip "cursor" in Frame 9
onClipEvent (enterFrame) {
_root.f_cursor();
}
Instance of Symbol 241 MovieClip in Frame 9
onClipEvent (enterFrame) {
armor.gotoAndStop(_root.armor + 1);
gotoAndStop(_root.hp + 1);
}
Frame 10
game_x = game._x;
bow_x = game.bow._x;
bow_y = game.bow._y;
limit_left = game._x;
limit_right = -8600;
_root.m_level2.start(0, 99999);
Frame 11
game_x = game._x;
bow_x = game.bow._x;
bow_y = game.bow._y;
limit_left = game._x;
limit_right = -11000;
_root.m_level3.start(0, 999999);
Frame 12
game_x = game._x;
bow_x = game.bow._x;
bow_y = game.bow._y;
limit_left = game._x;
limit_right = -14000;
_root.m_level4.start(0, 999999);
Symbol 33 MovieClip [fx_screen_shake] Frame 1
if (Math.abs(_rotation) > 0) {
speed_x = _rotation;
speed_y = _rotation;
_rotation = 0;
}
_root.screen_shake("x", speed_x);
_root.screen_shake("y", speed_y);
Symbol 33 MovieClip [fx_screen_shake] Frame 2
_root.screen_shake("x", -speed_x);
_root.screen_shake("y", -speed_y);
Symbol 33 MovieClip [fx_screen_shake] Frame 3
_root.screen_shake("x", -speed_x);
_root.screen_shake("y", -speed_y);
Symbol 33 MovieClip [fx_screen_shake] Frame 4
_root.screen_shake("x", speed_x);
_root.screen_shake("y", speed_y);
speed_x--;
if (speed_y < 0) {
speed_y++;
} else {
speed_y--;
}
speed_y = speed_y * -1;
if ((Math.abs(speed_x) <= 0) && (Math.abs(speed_y) <= 0)) {
this.removeMovieClip();
}
Symbol 36 MovieClip [enemy_arrow] Frame 1
_yscale = _xscale;
Instance of Symbol 35 MovieClip in Symbol 36 MovieClip [enemy_arrow] Frame 1
onClipEvent (enterFrame) {
_root.enemy_arrow(_parent._name, _root.speed_enemy_arrow);
}
Symbol 41 MovieClip [fx_blood_particle] Frame 1
particle.gotoAndStop(_rotation);
_rotation = 0;
_yscale = _xscale;
speed = 23;
speed_x = (-speed) + random(speed * 2);
speed_y = -random(speed * 2);
speed_z = (_xscale / 100) * (speed / 7);
Instance of Symbol 40 MovieClip "particle" in Symbol 41 MovieClip [fx_blood_particle] Frame 1
onClipEvent (enterFrame) {
_root.particle(_parent._name);
}
Instance of Symbol 46 MovieClip in Symbol 47 MovieClip [birdy] Frame 1
onClipEvent (enterFrame) {
_parent._y = _parent._y - 6;
if (_parent._y < ((-100 - _parent._parent._parent._y) - _parent._parent._y)) {
_parent.removeMovieClip();
}
}
Instance of Symbol 51 MovieClip in Symbol 52 MovieClip [boss_axe] Frame 1
onClipEvent (enterFrame) {
_root.enemy_arrow(_parent._name, _root.speed_boss_axe);
}
Symbol 56 MovieClip [fire_particle] Frame 29
this.removeMovieClip();
Symbol 63 MovieClip [fx_spark] Frame 13
this.removeMovieClip();
Instance of Symbol 67 MovieClip in Symbol 68 MovieClip [fireball] Frame 1
onClipEvent (enterFrame) {
_root.enemy_arrow(_parent._name, _root.speed_fireball);
}
Symbol 81 MovieClip Frame 15
_parent.removeMovieClip();
Symbol 82 MovieClip [enemy_bomb] Frame 1
width = 110;
height = 250;
stop();
Instance of Symbol 73 MovieClip in Symbol 82 MovieClip [enemy_bomb] Frame 1
onClipEvent (enterFrame) {
_root.enemy_bomb(_parent._name);
}
Symbol 82 MovieClip [enemy_bomb] Frame 2
_root.s_boom.start();
Symbol 86 MovieClip [fx_fire_hit] Frame 7
this.removeMovieClip();
Symbol 88 MovieClip Frame 24
gotoAndPlay (16);
Symbol 90 Button
on (release) {
_root.gold = _root.gold + _parent._parent._parent["value" + _parent._parent._parent.type];
_root.s_gold.start();
_parent._parent._parent.removeMovieClip();
}
Symbol 91 MovieClip Frame 24
gotoAndPlay (16);
Symbol 93 Button
on (release) {
_root.gold = _root.gold + _parent._parent._parent["value" + _parent._parent._parent.type];
_root.s_gold.start();
trace("yeah");
_parent._parent._parent.removeMovieClip();
}
Symbol 94 MovieClip Frame 24
gotoAndPlay (16);
Symbol 97 MovieClip Frame 16
stop();
Instance of Symbol 96 MovieClip in Symbol 97 MovieClip Frame 16
onClipEvent (enterFrame) {
tellTarget (_parent._parent) {
w = _width / 2;
h = _height;
x = (_x + _parent._x) + _parent._parent._x;
y = (_y + _parent._y) + _parent._parent._y;
if (((((_root._xmouse > (x - w)) && (_root._xmouse < (x + w))) && (_root._ymouse > (y - h))) && (_root._ymouse < y)) && (_root.game.bow._currentFrame == 7)) {
_root.gold = _root.gold + eval ("value" + type);
_root.s_gold.start();
gotoAndStop ("remove");
}
};
}
Symbol 98 MovieClip [gold] Frame 1
value1 = 5;
value2 = 10;
value3 = 50;
if (random(25) < (_root.level * 1.3)) {
type = 3;
} else if (random(4) == 1) {
type = 2;
} else {
type = 1;
}
gold.gold.gotoAndStop(type);
stop();
Symbol 98 MovieClip [gold] Frame 2
this.removeMovieClip();
Symbol 111 MovieClip Frame 1
rand_size = 50 + random(200);
rand_x = -5 + random(10);
rand_y = -5 + random(10);
l = 1;
while (l <= 2) {
i++;
this["layer" + l].attachMovie("fire_particle", "p" + i, i);
obj = this["layer" + l]["p" + i];
obj._x = rand_x;
obj._y = rand_y;
obj._xscale = rand_size;
obj._yscale = rand_size;
obj.particle.gotoAndStop(l);
l++;
}
Symbol 111 MovieClip Frame 3
gotoAndPlay (1);
Symbol 114 Button
on (release) {
_root.gotoAndStop("title");
}
Symbol 125 MovieClip Frame 697
_root.gotoAndStop("title");
Symbol 138 Button
on (release) {
_root.gotoAndStop("map");
}
Symbol 151 Button
on (release) {
gotoAndStop (3);
}
Symbol 155 Button
on (release) {
gotoAndStop (2);
}
Symbol 166 Button
on (release) {
getURL ("http://www.gamesofgondor.com", "_blank");
}
Symbol 170 Button
on (press) {
gotoAndStop (1);
}
Symbol 172 MovieClip Frame 1
stop();
Symbol 173 MovieClip Frame 31
stop();
Instance of Symbol 128 MovieClip in Symbol 176 MovieClip Frame 1
onClipEvent (enterFrame) {
if (random(40) == 1) {
birdies++;
attachMovie("birdy", "bird" + birdies, birdies);
bird = this["bird" + birdies];
bird._x = -300 + random(600);
bird._y = 500 + random(150);
}
}
Symbol 179 Button
on (release) {
_root.gotoAndStop("game");
}
Symbol 190 MovieClip Frame 43
gotoAndPlay("level" + _root.level);
Symbol 190 MovieClip Frame 45
stop();
Symbol 190 MovieClip Frame 78
stop();
Symbol 190 MovieClip Frame 111
stop();
Symbol 190 MovieClip Frame 144
stop();
Symbol 195 Button
on (press) {
_parent.messages.message = 1;
_parent.messages.play();
}
on (rollOver, dragOver) {
_parent.selected_item = 1;
}
on (rollOut, dragOut) {
_parent.selected_item = 0;
}
Symbol 196 MovieClip Frame 1
stop();
Symbol 199 Button
on (press) {
_parent.messages.message = 4;
_parent.messages.play();
}
on (rollOver, dragOver) {
_parent.selected_item = 4;
}
on (rollOut, dragOut) {
_parent.selected_item = 0;
}
Symbol 200 MovieClip Frame 1
stop();
Symbol 204 Button
on (press) {
_parent.messages.message = 2;
_parent.messages.play();
}
on (rollOver, dragOver) {
_parent.selected_item = 2;
}
on (rollOut, dragOut) {
_parent.selected_item = 0;
}
Symbol 205 MovieClip Frame 1
stop();
Symbol 210 Button
on (press) {
_parent.messages.message = 3;
_parent.messages.play();
}
on (rollOver, dragOver) {
_parent.selected_item = 3;
}
on (rollOut, dragOut) {
_parent.selected_item = 0;
}
Symbol 211 MovieClip Frame 1
stop();
Symbol 213 Button
on (press) {
_parent.messages.message = "leave";
_parent.messages.play();
}
Symbol 219 Button
on (release) {
_parent.choice = 1;
}
on (rollOver, dragOver) {
gotoAndStop (2);
}
Symbol 220 Button
on (release) {
_parent.choice = 2;
}
on (rollOver, dragOver) {
gotoAndStop (1);
}
Symbol 222 MovieClip Frame 1
stop();
Symbol 231 MovieClip Frame 81
_parent._parent.play();
Symbol 234 MovieClip Frame 1
gotoAndStop(_parent.message);
price = 20;
Instance of Symbol 223 MovieClip in Symbol 234 MovieClip Frame 1
onClipEvent (enterFrame) {
if (choice == 1) {
if ((_root.hp < _root.hp_full) && (_root.gold >= _parent.price)) {
_root.gold = _root.gold - _parent.price;
_root.hp = _root.hp + (_root.hp_full / 2);
if (_root.hp > _root.hp_full) {
_root.hp = _root.hp_full;
}
_root.s_cash.start();
_parent._parent.play();
} else {
choice = 0;
_root.s_cantbuy.start();
}
} else if (choice == 2) {
_parent._parent.play();
}
}
Symbol 234 MovieClip Frame 2
price = 100;
Instance of Symbol 225 MovieClip in Symbol 234 MovieClip Frame 2
onClipEvent (enterFrame) {
if (choice == 1) {
if ((_root.item_firearrows == false) && (_root.gold >= _parent.price)) {
_root.gold = _root.gold - _parent.price;
_root.item_firearrows = true;
_root.s_cash.start();
_parent._parent.play();
} else {
choice = 0;
_root.s_cantbuy.start();
}
} else if (choice == 2) {
_parent._parent.play();
}
}
Symbol 234 MovieClip Frame 3
price = 150;
Instance of Symbol 227 MovieClip in Symbol 234 MovieClip Frame 3
onClipEvent (enterFrame) {
if (choice == 1) {
if ((_root.item_mithril == false) && (_root.gold >= _parent.price)) {
_root.gold = _root.gold - _parent.price;
_root.item_mithril = true;
_root.s_cash.start();
_parent._parent.play();
} else {
choice = 0;
_root.s_cantbuy.start();
}
} else if (choice == 2) {
_parent._parent.play();
}
}
Symbol 234 MovieClip Frame 4
price = 300;
Instance of Symbol 229 MovieClip in Symbol 234 MovieClip Frame 4
onClipEvent (enterFrame) {
if (choice == 1) {
if ((_root.item_ring == false) && (_root.gold >= _parent.price)) {
_root.gold = _root.gold - _parent.price;
_root.item_ring = true;
_root.s_cash.start();
_parent._parent.play();
} else {
choice = 0;
_root.s_cantbuy.start();
}
} else if (choice == 2) {
_parent._parent.play();
}
}
Instance of Symbol 233 MovieClip in Symbol 234 MovieClip Frame 6
onClipEvent (enterFrame) {
if (choice == 1) {
_root.shop.exit = true;
_parent._parent.play();
} else if (choice == 2) {
_parent._parent.play();
}
}
Symbol 235 MovieClip Frame 1
if (_parent.intro == false) {
stop();
}
Symbol 235 MovieClip Frame 15
if (_parent.intro != false) {
message = "intro";
_parent.intro = false;
}
stop();
Symbol 235 MovieClip Frame 26
if (_parent.exit == true) {
stop();
_parent.play();
}
Symbol 238 MovieClip Frame 1
stop();
Symbol 243 MovieClip Frame 35
stop();
Instance of Symbol 241 MovieClip in Symbol 243 MovieClip Frame 35
onClipEvent (enterFrame) {
gotoAndStop(_root.hp + 1);
}
Symbol 243 MovieClip Frame 68
_root.gotoAndStop("map");
Symbol 246 MovieClip Frame 436
_root.gotoAndStop("title");
Symbol 277 MovieClip Frame 247
_root.gotoAndStop("intro");
Symbol 288 MovieClip Frame 13
_parent.gotoAndStop("attack");
Symbol 289 MovieClip Frame 13
_parent.gotoAndStop("idle");
Symbol 291 MovieClip Frame 22
if ((_root.game.bow.alive != false) && (_root.invisible != true)) {
_root.spawn_object("enemy_arrow", (_parent._x - 25) + _parent._parent._x, (_parent._y - (_parent.height / 2.4)) + _parent._parent._y, 25, 0);
_root.s_release.start();
} else {
gotoAndPlay (1);
}
Symbol 291 MovieClip Frame 45
_parent.gotoAndStop("disappear");
Symbol 295 MovieClip Frame 11
if (_parent.respawns > 0) {
_parent.respawns--;
_parent.gotoAndStop("idle");
} else {
_root.game.enemies--;
if (_root.game.enemies == 0) {
_root.roam_level = true;
}
stop();
}
Symbol 296 MovieClip Frame 1
if (ini != true) {
ini = true;
_parent.enemy_num++;
_name = ("enemy" + _parent.enemy_num);
width = 90;
height = 200;
total_respawns = respawns;
}
stop();
Instance of Symbol 286 MovieClip in Symbol 296 MovieClip Frame 1
onClipEvent (load) {
_visible = 0;
}
onClipEvent (enterFrame) {
tellTarget (_parent) {
x = (_x + _parent._x) + _parent._parent._x;
if ((x > 0) && (x < 640)) {
if (spawn_timer == 0) {
spawn_timer = -1;
if (add_enemy != true) {
add_enemy = true;
_root.game.enemies++;
}
gotoAndStop ("appear");
} else if (spawn_timer > 0) {
spawn_timer--;
} else {
spawn_timer = random(40) + 1;
}
}
};
}
Symbol 296 MovieClip Frame 2
_xscale = 100;
_root.roam_level = false;
Symbol 296 MovieClip Frame 3
visible = false;
Symbol 296 MovieClip Frame 4
visible = true;
Instance of Symbol 291 MovieClip in Symbol 296 MovieClip Frame 4
onClipEvent (enterFrame) {
_root.enemy_goblin(_parent._name, 5);
}
Symbol 296 MovieClip Frame 5
amount = random(20) + 10;
while (i < amount) {
_root.spawn_object("fx_blood_particle", arrow_x, arrow_y, 50 + random(50), 1);
i++;
}
if (arrow_x < (_x + _parent._x)) {
_xscale = -100;
}
if (random(3) > 0) {
_root.spawn_object("gold", _x, _y + 190, 40, 0);
}
_root["s_hit" + (random(2) + 1)].start();
_root.s_grunt1.start();
Symbol 302 MovieClip Frame 1
stop();
Symbol 302 MovieClip Frame 2
if ((_root.game.bow.alive != false) && (_root.invisible != true)) {
_root.spawn_object("enemy_arrow", (_parent._parent._x - 25) + _parent._parent._parent._x, (_parent._parent._y - (_parent._parent.height / 2.4)) + _parent._parent._parent._y, 50, 0);
_root.s_release.start();
} else {
gotoAndPlay (1);
}
Symbol 302 MovieClip Frame 35
_parent.gotoAndStop("disappear");
Symbol 304 MovieClip Frame 1
if (ini != true) {
ini = true;
_parent.enemy_num++;
_name = ("enemy" + _parent.enemy_num);
width = 200;
height = 500;
total_respawns = respawns;
}
stop();
Instance of Symbol 286 MovieClip in Symbol 304 MovieClip Frame 1
onClipEvent (load) {
_visible = 0;
}
onClipEvent (enterFrame) {
tellTarget (_parent) {
x = (_x + _parent._x) + _parent._parent._x;
if ((x > 0) && (x < 640)) {
if (spawn_timer == 0) {
spawn_timer = -1;
if (add_enemy != true) {
add_enemy = true;
_root.game.enemies++;
}
if (random(2) == 1) {
_x = (((640 + width) - _parent._x) - _parent._parent._x);
speed = -_root.speed_goblin;
} else {
_x = (((-width) - _parent._x) - _parent._parent._x);
speed = _root.speed_goblin;
}
gotoAndStop ("walk");
} else if (spawn_timer > 0) {
spawn_timer--;
} else {
spawn_timer = random(40) + 1;
}
}
};
}
Symbol 304 MovieClip Frame 2
walking = true;
visible = true;
_root.roam_level = false;
Instance of Symbol 303 MovieClip "gob" in Symbol 304 MovieClip Frame 2
onClipEvent (enterFrame) {
_root.enemy_goblin(_parent._name, 50);
}
Symbol 304 MovieClip Frame 3
amount = random(20) + 10;
while (i < amount) {
_root.spawn_object("fx_blood_particle", arrow_x, arrow_y, 100 + random(50), 1);
i++;
}
if (arrow_x < (_x + _parent._x)) {
_xscale = -100;
}
_root["s_hit" + (random(2) + 1)].start();
_root.s_grunt1.start();
Symbol 309 MovieClip Frame 1
stop();
Symbol 309 MovieClip Frame 2
_root.roam_level = false;
_root.m_level1.stop("level1");
_root.m_boss.start(0, 999999);
Symbol 309 MovieClip Frame 22
_parent.gotoAndStop("attack");
Symbol 313 MovieClip Frame 1
_parent.walk = true;
Symbol 313 MovieClip Frame 50
_parent.walk = false;
if ((_root.invisible == true) || (_root.game.bow.alive == false)) {
gotoAndPlay (1);
}
Symbol 313 MovieClip Frame 54
_root.spawn_object("boss_axe", (_parent._x + 60) + _parent._parent._x, (_parent._y - (_parent.height / 2.4)) + _parent._parent._y, 20, 0);
Symbol 321 MovieClip Frame 15
_root.roam_level = true;
_root.m_boss.stop("boss");
_root.m_level1.start(0, 99999);
Symbol 321 MovieClip Frame 146
stop();
Symbol 322 MovieClip Frame 1
_name = "boss1";
hp = 20;
width = 50;
height = 400;
stop();
Instance of Symbol 309 MovieClip in Symbol 322 MovieClip Frame 1
onClipEvent (enterFrame) {
x = (_parent._x + _parent._parent._x) + _parent._parent._parent._x;
if ((((x > 0) && (x < 640)) && (_root.game.enemies == 0)) && (_currentframe == 1)) {
play();
}
}
Instance of Symbol 313 MovieClip in Symbol 322 MovieClip Frame 2
onClipEvent (enterFrame) {
_root.boss1();
}
Symbol 322 MovieClip Frame 3
amount = 50 + random(20);
while (i < amount) {
_root.spawn_object("fx_blood_particle", _x + _parent._parent._x, (_y + _parent._y) - (height / 2), 50 + random(50), 2);
i++;
}
if (arrow_x < (_x + _parent._x)) {
_xscale = -100;
}
_root["s_hit" + (random(2) + 1)].start();
_root.s_roar2.start();
Instance of Symbol 296 MovieClip in Symbol 323 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
respawns = 2;
}
Instance of Symbol 296 MovieClip in Symbol 323 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
respawns = 1;
}
Instance of Symbol 296 MovieClip in Symbol 323 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
respawns = "";
}
Instance of Symbol 296 MovieClip in Symbol 323 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
respawns = 1;
}
Instance of Symbol 296 MovieClip in Symbol 323 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
respawns = 0;
}
Instance of Symbol 296 MovieClip in Symbol 323 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
respawns = 0;
}
Instance of Symbol 296 MovieClip in Symbol 323 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
respawns = 1;
}
Instance of Symbol 296 MovieClip in Symbol 323 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
respawns = "";
}
Instance of Symbol 296 MovieClip in Symbol 323 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
respawns = "";
}
Instance of Symbol 296 MovieClip in Symbol 323 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
respawns = "";
}
Instance of Symbol 296 MovieClip in Symbol 323 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
respawns = 1;
}
Instance of Symbol 296 MovieClip in Symbol 323 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
respawns = 2;
}
Symbol 327 MovieClip Frame 1
_xscale = 100;
_yscale = 100;
stop();
Symbol 327 MovieClip Frame 2
_x = (_root._xmouse - _root.game._x);
_y = (_root._ymouse - _root.game._y);
_xscale = _root.game.bow._xscale;
speed = (_xscale / 100) * _root.speed_arrow;
Instance of Symbol 326 MovieClip in Symbol 327 MovieClip Frame 2
onClipEvent (enterFrame) {
_root.arrow(_parent._name);
}
Symbol 339 MovieClip Frame 1
if (mouse != true) {
stop();
}
Symbol 339 MovieClip Frame 2
_root.s_pullback.start();
Symbol 339 MovieClip Frame 4
if (mouse == true) {
stop();
}
Symbol 339 MovieClip Frame 5
i = 1;
while (i < 3) {
if (_root.game["arrow" + i]._currentFrame == 1) {
_root.game["arrow" + i].gotoAndStop(2);
if (_root.firearrows == true) {
_root.game["arrow" + i].fire = true;
_root.ammo--;
if (_root.ammo == 0) {
_root.firearrows = false;
}
} else {
_root.game["arrow" + i].fire = false;
}
i = 3;
}
i++;
}
_root.s_release.start();
Symbol 339 MovieClip Frame 13
gotoAndPlay (1);
Symbol 339 MovieClip Frame 14
alive = false;
_root.cinema_die.play();
Instance of Symbol 339 MovieClip "bow" in Symbol 341 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.player();
}
Symbol 345 MovieClip Frame 1
stop();
Symbol 345 MovieClip Frame 2
_root.spawn_object("fx_screen_shake", 0, 0, 0, 4);
_root.s_hit2.start();
Symbol 346 Button
on (press, dragOver) {
_root.game.bow.mouse = true;
if (_root.game.bow.alive != false) {
_root.game.bow.play();
}
}
on (release, releaseOutside) {
_root.game.bow.mouse = false;
if (_root.game.bow.alive != false) {
_root.game.bow.play();
}
}
Instance of Symbol 349 MovieClip "ring" in Symbol 352 MovieClip Frame 1
onClipEvent (load) {
_visible = 0;
}
Instance of Symbol 350 MovieClip "arrows" in Symbol 352 MovieClip Frame 1
onClipEvent (load) {
_visible = 0;
}
Instance of Symbol 351 MovieClip "mithril" in Symbol 352 MovieClip Frame 1
onClipEvent (load) {
_visible = 0;
}
Symbol 354 MovieClip Frame 1
stop();
Symbol 357 MovieClip Frame 1
stop();
Symbol 357 MovieClip Frame 166
_root.hp = _root.hp_full;
_root.gotoAndStop("map");
Symbol 361 MovieClip Frame 1
stop();
Symbol 362 MovieClip Frame 1
stop();
Symbol 362 MovieClip Frame 48
if (_root.level == 4) {
_root.gotoAndStop("victory");
} else {
_root.level++;
_root.gotoAndStop("shop");
}
stop();
Symbol 363 MovieClip Frame 21
stop();
Symbol 386 MovieClip Frame 5
_parent.vulnerable = true;
Symbol 386 MovieClip Frame 16
_root.spawn_object("enemy_arrow", (_parent._x + 54) + _parent._parent._x, (_parent._y - (_parent.height / 2.4)) + _parent._parent._y, 25, 0);
_root.s_release.start();
Symbol 386 MovieClip Frame 32
_parent.vulnerable = false;
Symbol 386 MovieClip Frame 36
_parent.gotoAndStop("stand");
Symbol 391 MovieClip Frame 20
stop();
Symbol 392 MovieClip Frame 1
if (ini != true) {
ini = true;
_parent.enemy_num++;
_name = ("enemy" + _parent.enemy_num);
width = 150;
height = 400;
total_respawns = respawns;
}
stop();
Instance of Symbol 378 MovieClip in Symbol 392 MovieClip Frame 1
onClipEvent (load) {
_visible = 0;
}
onClipEvent (enterFrame) {
tellTarget (_parent) {
x = (_x + _parent._x) + _parent._parent._x;
if (((x + _parent.width) > -200) && ((x - _parent.width) < 840)) {
if (add_enemy != true) {
add_enemy = true;
_root.game.enemies++;
}
gotoAndStop ("stand");
}
};
}
Instance of Symbol 378 MovieClip in Symbol 392 MovieClip Frame 2
onClipEvent (enterFrame) {
if (Key.isDown(46)) {
_parent.gotoAndStop("die");
}
}
Instance of Symbol 379 MovieClip in Symbol 392 MovieClip Frame 2
onClipEvent (enterFrame) {
_root.enemy_shieldorc(_parent._name, 10);
}
Symbol 392 MovieClip Frame 3
_xscale = 100;
_root.roam_level = false;
Symbol 392 MovieClip Frame 5
amount = random(20) + 10;
while (i < amount) {
_root.spawn_object("fx_blood_particle", arrow_x, arrow_y, 50 + random(50), 2);
i++;
}
if (arrow_x < (_x + _parent._x)) {
_xscale = -100;
}
if (random(3) > 0) {
_root.spawn_object("gold", _x, _y + 40, 40, 0);
}
_root["s_hit" + (random(2) + 1)].start();
_root.s_grunt1.start();
_root.game.enemies--;
if (_root.game.enemies == 0) {
_root.roam_level = true;
}
Symbol 399 MovieClip Frame 22
_root.roar1.start();
Symbol 399 MovieClip Frame 60
_parent.gotoAndStop("walk");
Symbol 400 MovieClip Frame 1
_parent.clr.setTransform(_root.nada);
stop();
Symbol 400 MovieClip Frame 2
_parent.clr.setTransform(_root.red);
Symbol 406 MovieClip Frame 1
_root.s_grunt2.start();
Symbol 406 MovieClip Frame 5
x = (_parent._x + _parent._parent._x) + _parent._parent._parent._x;
if (((x > 0) && (x < 400)) && (_root.game.bow.alive != false)) {
_root.hp--;
_root.hurt.play();
}
Symbol 406 MovieClip Frame 8
_parent.gotoAndStop("walk");
Symbol 419 MovieClip Frame 70
_root.spawn_object("fx_screen_shake", 0, 0, 0, 8);
_root.s_clonk.start();
_root.s_hit2.start();
_root.s_roar2.start();
Symbol 419 MovieClip Frame 81
_root.roam_level = true;
_root.m_boss.stop("boss");
_root.m_level2.start(0, 99999);
stop();
Symbol 420 MovieClip Frame 1
_name = "boss2";
hp = 70;
width = 350;
height = 400;
clr = new Color(this);
stop();
Instance of Symbol 397 MovieClip in Symbol 420 MovieClip Frame 1
onClipEvent (load) {
_visible = 0;
}
onClipEvent (enterFrame) {
x = (_parent._x + _parent._parent._x) + _parent._parent._parent._x;
if (((x > 0) && (x < 320)) && (_root.game.enemies == 0)) {
_parent.gotoAndStop("appear");
}
}
Symbol 420 MovieClip Frame 2
_root.roam_level = false;
_root.m_level2.stop("level2");
_root.m_boss.start(0, 999999);
Instance of Symbol 402 MovieClip in Symbol 420 MovieClip Frame 3
onClipEvent (enterFrame) {
_root.boss2();
}
Instance of Symbol 296 MovieClip in Symbol 421 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
respawns = "";
}
Instance of Symbol 296 MovieClip in Symbol 421 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
respawns = "";
}
Instance of Symbol 296 MovieClip in Symbol 421 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
respawns = 1;
}
Instance of Symbol 296 MovieClip in Symbol 421 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
respawns = 2;
}
Instance of Symbol 339 MovieClip "bow" in Symbol 422 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.player();
}
Symbol 432 MovieClip Frame 1
_parent.clr.setTransform(_root.nada);
stop();
Symbol 432 MovieClip Frame 2
_parent.clr.setTransform(_root.red);
Symbol 436 MovieClip Frame 46
if ((_root.invisible == true) || (_root.game.bow.alive == false)) {
gotoAndPlay (56);
}
Symbol 436 MovieClip Frame 52
x = (_parent._x + _parent._parent._x) + _parent._parent._parent._x;
if ((x < 400) && (x > 100)) {
_root.hp--;
_root.hurt.play();
}
Symbol 436 MovieClip Frame 56
gotoAndPlay(15 + random(10));
Symbol 439 MovieClip Frame 12
_root.game.enemies--;
if (_root.game.enemies == 0) {
_root.roam_level = true;
}
stop();
Symbol 440 MovieClip Frame 1
if (ini != true) {
ini = true;
_parent.enemy_num++;
_name = ("enemy" + _parent.enemy_num);
width = 200;
height = 600;
clr = new Color(this);
hp = 3;
}
stop();
Instance of Symbol 431 MovieClip in Symbol 440 MovieClip Frame 1
onClipEvent (load) {
_visible = 0;
}
onClipEvent (enterFrame) {
tellTarget (_parent) {
x = (_x + _parent._x) + _parent._parent._x;
if ((x > 0) && (x < 360)) {
if (add_enemy != true) {
add_enemy = true;
_root.game.enemies++;
}
gotoAndStop ("attack");
}
};
}
Symbol 440 MovieClip Frame 2
_root.roam_level = false;
Instance of Symbol 436 MovieClip in Symbol 440 MovieClip Frame 2
onClipEvent (enterFrame) {
_root.enemy_wraith(_parent._name);
}
Symbol 440 MovieClip Frame 3
_root["s_hit" + (random(2) + 1)].start();
if (random(3) > 0) {
_root.spawn_object("gold", _x, _y + 90, 0, 0);
}
_root.s_scream.start();
Symbol 458 MovieClip Frame 87
if ((_root.invisible != true) && (_root.game.bow.alive != false)) {
_root.spawn_object("fireball", _parent._x + _parent._parent._x, (_parent._y - 250) + _parent._parent._y, 10, 0);
} else {
gotoAndPlay (100);
}
Symbol 458 MovieClip Frame 176
_parent.gotoAndStop("fly");
Symbol 464 MovieClip Frame 24
_root.spawn_object("fx_screen_shake", 0, 0, 0, 9);
Symbol 464 MovieClip Frame 31
_root.roam_level = true;
_root.s_boom.start();
_root.m_level3.start(0, 999999);
_root.m_boss.stop("boss");
stop();
Symbol 465 MovieClip Frame 1
default_x = _x;
_name = "boss3";
hp = 80;
stop();
Instance of Symbol 445 MovieClip in Symbol 465 MovieClip Frame 1
onClipEvent (load) {
_visible = 0;
}
onClipEvent (enterFrame) {
x = (_parent._x + _parent._parent._x) + _parent._parent._parent._x;
if (((x > 0) && (x < 320)) && (_root.game.enemies == 0)) {
_root.m_level1.stop("level3");
_root.m_boss.start(0, 999999);
_parent.gotoAndStop("attack");
}
}
Symbol 465 MovieClip Frame 2
width = 70;
if (random(2) == 1) {
_x = (-300 - width);
} else {
_x = (940 + width);
_xscale = -100;
}
_x = ((_x - _parent._x) - _parent._parent._x);
Instance of Symbol 450 MovieClip in Symbol 465 MovieClip Frame 2
onClipEvent (enterFrame) {
_root.boss3();
}
Symbol 465 MovieClip Frame 3
height = 480;
width = 350;
_x = default_x;
_xscale = 100;
_root.roam_level = false;
Symbol 465 MovieClip Frame 4
_root.s_dragon_die.start();
Instance of Symbol 296 MovieClip in Symbol 466 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
respawns = "";
}
Instance of Symbol 296 MovieClip in Symbol 466 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
respawns = "";
}
Instance of Symbol 339 MovieClip "bow" in Symbol 467 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.player();
}
Symbol 488 MovieClip Frame 3
_parent.vulnerable = true;
Symbol 488 MovieClip Frame 16
_root.spawn_object("enemy_bomb", (_parent._x + _parent._parent._x) + 20, (_parent._y + _parent._parent._y) - 160, 40, 0);
Symbol 488 MovieClip Frame 56
_parent.gotoAndStop("stand");
Symbol 492 MovieClip Frame 29
stop();
Symbol 493 MovieClip Frame 1
if (ini != true) {
ini = true;
_parent.enemy_num++;
_name = ("enemy" + _parent.enemy_num);
width = 140;
height = 400;
total_respawns = respawns;
}
stop();
Instance of Symbol 479 MovieClip in Symbol 493 MovieClip Frame 1
onClipEvent (load) {
_visible = 0;
}
onClipEvent (enterFrame) {
tellTarget (_parent) {
x = (_x + _parent._x) + _parent._parent._x;
if (((x + _parent.width) > -200) && ((x - _parent.width) < 840)) {
if (add_enemy != true) {
add_enemy = true;
_root.game.enemies++;
}
gotoAndStop ("stand");
}
};
}
Symbol 493 MovieClip Frame 2
vulnerable = false;
Instance of Symbol 379 MovieClip in Symbol 493 MovieClip Frame 2
onClipEvent (enterFrame) {
_root.enemy_shieldorc(_parent._name, 10);
}
Symbol 493 MovieClip Frame 3
_xscale = 100;
_root.roam_level = false;
Symbol 493 MovieClip Frame 5
amount = random(20) + 10;
while (i < amount) {
_root.spawn_object("fx_blood_particle", arrow_x, arrow_y, 50 + random(50), 2);
i++;
}
if (arrow_x < (_x + _parent._x)) {
_xscale = -100;
}
if (random(3) > 0) {
_root.spawn_object("gold", _x, _y + 40, 40, 0);
}
_root["s_hit" + (random(2) + 1)].start();
_root.s_roar2.start();
_root.game.enemies--;
if (_root.game.enemies == 0) {
_root.roam_level = true;
}
Symbol 500 MovieClip Frame 21
_parent.gotoAndStop("alive");
Symbol 502 MovieClip Frame 1
_parent.play();
Symbol 502 MovieClip Frame 109
_root.spawn_object("fireball", (_parent._x + _parent._parent._x) + _parent._parent._parent._x, ((_parent._y + _parent._parent._y) + _parent._parent._parent._y) + 100, 60, 0);
_root.s_use_firearrows.start();
_parent.stop();
Symbol 506 MovieClip Frame 40
if ((random(4) != 1) || (_root.game.bow.alive == false)) {
gotoAndPlay (1);
}
Symbol 506 MovieClip Frame 47
x = _parent._x + _parent._parent._x;
if ((_root.game.bow._x > (x - (_parent.width * 2))) && (_root.game.bow._x < (x + (_parent.width * 2)))) {
_root.hp--;
_root.hurt.play();
}
Symbol 508 MovieClip Frame 1
_root.s_rumble.start();
Symbol 508 MovieClip Frame 25
_root.spawn_object("fx_screen_shake", 0, 0, 0, 17);
_root.s_boom.start();
_root.s_boom2.start();
_root.s_balrog_die.start();
_root.m_boss.stop("boss");
Symbol 508 MovieClip Frame 52
_root.roam_level = true;
stop();
Symbol 509 MovieClip Frame 1
hp = 60;
width = 200;
height = 150;
clr = new Color(head);
_name = "boss4";
stop();
Instance of Symbol 499 MovieClip in Symbol 509 MovieClip Frame 1
onClipEvent (load) {
_visible = 0;
}
onClipEvent (enterFrame) {
x = (_parent._x + _parent._parent._x) + _parent._parent._parent._x;
if (((x > 0) && (x < 320)) && (_root.game.enemies < 1)) {
_parent.gotoAndStop("appear");
}
}
Symbol 509 MovieClip Frame 2
_root.roam_level = false;
_root.m_level1.stop("level4");
_root.m_boss.start(0, 999999);
Instance of Symbol 503 MovieClip "head" in Symbol 509 MovieClip Frame 3
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_parent.gotoAndStop("die");
}
_root.boss4();
}
Instance of Symbol 296 MovieClip in Symbol 510 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
respawns = "";
}
Instance of Symbol 296 MovieClip in Symbol 510 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
respawns = "";
}
Instance of Symbol 296 MovieClip in Symbol 510 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
respawns = "";
}
Instance of Symbol 296 MovieClip in Symbol 510 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
respawns = "";
}
Instance of Symbol 296 MovieClip in Symbol 510 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
respawns = "";
}
Instance of Symbol 339 MovieClip "bow" in Symbol 511 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.player();
}