Frame 1
function deadClick() {
}
function gotoMySite() {
getURL ("jellevisser2006@hotmail.com", "_top");
}
MochiAd.showPreGameAd({id:"5b628069293e395b", res:"800x600", background:0, color:14286848, outline:16777215, no_bg:false});
stop();
var myMenu = new ContextMenu();
myMenu.hideBuiltInItems();
var copyrightNotice = new ContextMenuItem("Made by Jelle Visser, 2007", deadClick);
var mySiteLink = new ContextMenuItem("jellevisser2006@hotmail.com", gotoMySite);
myMenu.customItems.push(mySiteLink, copyrightNotice);
Instance of Symbol 3 MovieClip in Frame 1
onClipEvent (enterFrame) {
var bytes = _root.getBytesTotal();
var bytes_loaded = _root.getBytesLoaded();
if (bytes_loaded == bytes) {
this.preloader = "movie loaded";
} else {
_root.gotoAndStop("preloader");
this.preloader = ((("loading (" + bytes_loaded) + "/") + bytes) + ")";
}
}
Frame 2
stop();
Instance of Symbol 15 MovieClip "mainmenu" in Frame 2
onClipEvent (enterFrame) {
_root.mainmenu.startbutton.onRelease = function () {
trace("clickedstart");
_root.gotoAndStop("intro");
};
_root.mainmenu.startbutton.onRollOver = function () {
_root.mainmenu.startbutton._alpha = 40;
};
_root.mainmenu.startbutton.onRollOut = function () {
_root.mainmenu.startbutton._alpha = 0;
};
_root.mainmenu.howtoplaybutton.onRelease = function () {
trace("clickedhowtoplay");
_root.mainmenu.gotoAndStop("howtoplay");
};
_root.mainmenu.howtoplaybutton.onRollOver = function () {
_root.mainmenu.howtoplaybutton._alpha = 40;
};
_root.mainmenu.howtoplaybutton.onRollOut = function () {
_root.mainmenu.howtoplaybutton._alpha = 0;
};
_root.mainmenu.creditsbutton.onRelease = function () {
trace("clickedcredits");
_root.mainmenu.gotoAndStop("credits");
};
_root.mainmenu.creditsbutton.onRollOver = function () {
_root.mainmenu.creditsbutton._alpha = 40;
};
_root.mainmenu.creditsbutton.onRollOut = function () {
_root.mainmenu.creditsbutton._alpha = 0;
};
_root.mainmenu.quitbutton.onRelease = function () {
trace("clickedquit");
fscommand ("quit");
};
_root.mainmenu.quitbutton.onRollOver = function () {
_root.mainmenu.quitbutton._alpha = 40;
};
_root.mainmenu.quitbutton.onRollOut = function () {
_root.mainmenu.quitbutton._alpha = 0;
};
}
Frame 3
stop();
Instance of Symbol 18 MovieClip "intro" in Frame 3
onClipEvent (enterFrame) {
_root.intro.skipbutton.onRelease = function () {
trace("clickedskip");
_root.gotoAndStop("start");
};
_root.intro.skipbutton.onRollOver = function () {
_root.intro.skipbutton._alpha = 40;
};
_root.intro.skipbutton.onRollOut = function () {
_root.intro.skipbutton._alpha = 0;
};
}
Frame 9
hp = 100;
maxhp = 100;
attack = 1;
defense = 1;
potions = 1;
loc = "";
savedmap = _currentframe;
savedx = 0;
savedy = 0;
speed = 5;
textbox = "Limith: I have to get to the expedition camp";
mobhp = 0;
mobattack = 0;
mob1 = 0;
mob2 = 0;
mob3 = 0;
mob4 = 0;
mob5 = 0;
mob6 = 0;
mob7 = 0;
mob8 = 0;
mob9 = 0;
mob10 = 0;
mob11 = 0;
mob12 = 0;
mob13 = 0;
dodge = 0;
key1 = 0;
key2 = 0;
key3 = 0;
canyonblocked = 0;
cave1button1 = 0;
cave1button2 = 0;
cave1button3 = 0;
cave1button4 = 0;
cavegatebutton = 0;
cave2button1 = 0;
cave2button2 = 0;
cave2button3 = 0;
cave2button4 = 0;
cave2button5 = 0;
cave2button6 = 0;
cave2button7 = 0;
cave2button8 = 0;
item1 = 0;
item2 = 0;
item3 = 0;
item4 = 0;
item5 = 0;
item6 = 0;
item7 = 0;
item8 = 0;
item9 = 0;
item10 = 0;
item11 = 0;
item12 = 0;
item13 = 0;
item14 = 0;
item15 = 0;
item16 = 0;
item17 = 0;
item18 = 0;
item19 = 0;
item20 = 0;
gotoAndStop (10);
stop();
Frame 10
loc = "Town of Agyta";
Instance of Symbol 52 MovieClip "map" in Frame 10
onClipEvent (enterFrame) {
with (_root.player) {
if (_root.map.hitTest(getBounds(_root).xMax, _y, true)) {
_x = _x - _root.speed;
}
if (_root.map.hitTest(getBounds(_root).xMin, _y, true)) {
_x = _x + _root.speed;
}
if (_root.map.hitTest(_x, getBounds(_root).yMax, true)) {
_y = _y - _root.speed;
}
if (_root.map.hitTest(_x, getBounds(_root).yMin, true)) {
_y = _y + _root.speed;
}
}
}
Instance of Symbol 56 MovieClip in Frame 10
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
_root.player._x = 260;
_root.player._y = 430;
_root.gotoAndStop("map2");
}
}
Instance of Symbol 58 MovieClip in Frame 10
onClipEvent (enterFrame) {
if (_root.canyonblocked < 2) {
this._x = -100;
this._y = -100;
this._visible = false;
}
if (_root.canyonblocked == 2) {
this._x = 679;
this._y = 325;
this._visible = true;
}
if (_root.canyonblocked > 2) {
this._x = -100;
this._y = -100;
this._visible = false;
}
if (_root.player.hitTest(this)) {
_root.textbox = "You found the access key!";
_root.key1 = 1;
_root.canyonblocked = 3;
}
}
Instance of Symbol 60 MovieClip in Frame 10
onClipEvent (enterFrame) {
if ((_root.player.hitTest(this) & Key.isDown(32)) & (_root.canyonblocked == 0)) {
this.gotoAndPlay(10);
} else if ((_root.player.hitTest(this) & Key.isDown(32)) & (_root.canyonblocked == 2)) {
this.gotoAndPlay(20);
} else if ((_root.player.hitTest(this) & Key.isDown(32)) & (_root.canyonblocked >= 3)) {
this.gotoAndPlay(30);
}
}
Instance of Symbol 61 MovieClip in Frame 10
onClipEvent (enterFrame) {
if ((_root.player.hitTest(this) & Key.isDown(32)) & (_root.canyonblocked == 0)) {
this.gotoAndPlay(10);
} else if ((_root.player.hitTest(this) & Key.isDown(32)) & (_root.canyonblocked == 1)) {
this.gotoAndPlay(20);
} else if ((_root.player.hitTest(this) & Key.isDown(32)) & (_root.canyonblocked >= 2)) {
this.gotoAndPlay(30);
}
}
Instance of Symbol 94 MovieClip "player" in Frame 10
onClipEvent (enterFrame) {
if (((Key.isDown(40) & (!Key.isDown(38))) & (!Key.isDown(37))) & (!Key.isDown(39))) {
this._y = this._y + _root.speed;
this.gotoAndStop(5);
}
if (((Key.isDown(38) & (!Key.isDown(40))) & (!Key.isDown(37))) & (!Key.isDown(39))) {
this._y = this._y - _root.speed;
this.gotoAndStop(6);
}
if (((Key.isDown(39) & (!Key.isDown(38))) & (!Key.isDown(37))) & (!Key.isDown(40))) {
this._x = this._x + _root.speed;
this.gotoAndStop(7);
}
if (((Key.isDown(37) & (!Key.isDown(38))) & (!Key.isDown(40))) & (!Key.isDown(39))) {
this._x = this._x - _root.speed;
this.gotoAndStop(8);
}
if (this._x < 1) {
this._x = 1;
}
if (this._x > 772) {
this._x = 772;
}
if (this._y < 1) {
this._y = 1;
}
if (this._y > 472) {
this._y = 472;
}
}
Frame 11
loc = "Forest outside of town";
Instance of Symbol 96 MovieClip "map" in Frame 11
onClipEvent (enterFrame) {
with (_root.player) {
if (_root.map.hitTest(getBounds(_root).xMax, _y, true)) {
_x = _x - _root.speed;
}
if (_root.map.hitTest(getBounds(_root).xMin, _y, true)) {
_x = _x + _root.speed;
}
if (_root.map.hitTest(_x, getBounds(_root).yMax, true)) {
_y = _y - _root.speed;
}
if (_root.map.hitTest(_x, getBounds(_root).yMin, true)) {
_y = _y + _root.speed;
}
}
}
Instance of Symbol 56 MovieClip in Frame 11
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
_root.player._x = 290;
_root.player._y = 35;
_root.gotoAndStop("map1");
}
}
Instance of Symbol 100 MovieClip in Frame 11
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
_root.player._x = 30;
_root.player._y = 310;
_root.gotoAndStop("map3");
}
}
Instance of Symbol 102 MovieClip "item1" in Frame 11
onClipEvent (enterFrame) {
if (_root.item1 == 1) {
this._x = -100;
this._y = -100;
this._visible = false;
}
if (_root.player.hitTest(this)) {
_root.maxhp = _root.maxhp + 10;
_root.textbox = "You found a health potion!\nMaximum health is increased by 10!";
_root.item1 = _root.item1 + 1;
}
}
Frame 12
loc = "Mountain entry";
Instance of Symbol 112 MovieClip "map" in Frame 12
onClipEvent (enterFrame) {
with (_root.player) {
if (_root.map.hitTest(getBounds(_root).xMax, _y, true)) {
_x = _x - _root.speed;
}
if (_root.map.hitTest(getBounds(_root).xMin, _y, true)) {
_x = _x + _root.speed;
}
if (_root.map.hitTest(_x, getBounds(_root).yMax, true)) {
_y = _y - _root.speed;
}
if (_root.map.hitTest(_x, getBounds(_root).yMin, true)) {
_y = _y + _root.speed;
}
}
}
Instance of Symbol 56 MovieClip in Frame 12
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
_root.player._x = 322;
_root.player._y = 442;
_root.gotoAndStop("map5");
}
}
Instance of Symbol 100 MovieClip in Frame 12
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
_root.player._x = 750;
_root.player._y = 370;
_root.gotoAndStop("map2");
}
}
Instance of Symbol 100 MovieClip in Frame 12
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
_root.player._x = 30;
_root.player._y = 290;
_root.gotoAndStop("map4");
}
}
Instance of Symbol 117 MovieClip in Frame 12
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
if (_root.key1 == 1) {
} else {
_root.player._y = _root.player._y + _root.speed;
_root.textbox = "Limith: There is a forcefield protecting the mountains, without the proper key I can't get trough.";
}
}
}
Frame 13
loc = "Path towards the camp";
Instance of Symbol 127 MovieClip "map" in Frame 13
onClipEvent (enterFrame) {
with (_root.player) {
if (_root.map.hitTest(getBounds(_root).xMax, _y, true)) {
_x = _x - _root.speed;
}
if (_root.map.hitTest(getBounds(_root).xMin, _y, true)) {
_x = _x + _root.speed;
}
if (_root.map.hitTest(_x, getBounds(_root).yMax, true)) {
_y = _y - _root.speed;
}
if (_root.map.hitTest(_x, getBounds(_root).yMin, true)) {
_y = _y + _root.speed;
}
}
}
Instance of Symbol 100 MovieClip in Frame 13
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
_root.player._x = 750;
_root.player._y = 350;
_root.gotoAndStop("map3");
}
}
Instance of Symbol 132 MovieClip in Frame 13
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
_root.textbox = "Limith: The canyon has collapsed! I have to find another way to get to the expedition camp";
_root.canyonblocked = 1;
}
}
Instance of Symbol 134 MovieClip "item2" in Frame 13
onClipEvent (enterFrame) {
if (_root.item2 == 1) {
this._x = -100;
this._y = -100;
this._visible = false;
}
if (_root.player.hitTest(this)) {
_root.potions = _root.potions + 1;
_root.textbox = "You found a potion!";
_root.item2 = _root.item2 + 1;
}
}
Frame 14
loc = "Path into the mountains";
if (mob1 == 1) {
player._x = savedx;
player._y = savedy;
mob1 = mob1 + 1;
}
Instance of Symbol 144 MovieClip "map" in Frame 14
onClipEvent (enterFrame) {
with (_root.player) {
if (_root.map.hitTest(getBounds(_root).xMax, _y, true)) {
_x = _x - _root.speed;
}
if (_root.map.hitTest(getBounds(_root).xMin, _y, true)) {
_x = _x + _root.speed;
}
if (_root.map.hitTest(_x, getBounds(_root).yMax, true)) {
_y = _y - _root.speed;
}
if (_root.map.hitTest(_x, getBounds(_root).yMin, true)) {
_y = _y + _root.speed;
}
}
}
Instance of Symbol 56 MovieClip in Frame 14
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
_root.player._x = 417;
_root.player._y = 48;
_root.gotoAndStop("map3");
}
}
Instance of Symbol 56 MovieClip in Frame 14
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
_root.player._x = 322;
_root.player._y = 440;
_root.gotoAndStop("map6");
}
}
Instance of Symbol 149 MovieClip "item3" in Frame 14
onClipEvent (enterFrame) {
if (_root.item3 == 1) {
this._x = -100;
this._y = -100;
this._visible = false;
}
if (_root.player.hitTest(this)) {
_root.defense = _root.defense + 1;
_root.textbox = "You found a bronze shield!\nYour armor is increased by 1!";
_root.item3 = _root.item3 + 1;
}
}
Instance of Symbol 56 MovieClip "mobtrigger1" in Frame 14
onClipEvent (enterFrame) {
if (_root.mob1 >= 1) {
this._x = -100;
this._y = -100;
this._visible = false;
}
if (_root.player.hitTest(this)) {
_root.mobattack = 3;
_root.mobhp = 15;
_root.mobnumber = 1;
_root.savedmap = _root._currentframe;
_root.savedx = _root.player._x;
_root.savedy = _root.player._y;
trace(_root._currentframe);
trace(_root.savedmap);
trace(_root.savedx);
trace(_root.savedy);
_root.gotoAndStop("mob5");
}
}
Frame 15
loc = "The mountain";
Instance of Symbol 159 MovieClip "map" in Frame 15
onClipEvent (enterFrame) {
with (_root.player) {
if (_root.map.hitTest(getBounds(_root).xMax, _y, true)) {
_x = _x - _root.speed;
}
if (_root.map.hitTest(getBounds(_root).xMin, _y, true)) {
_x = _x + _root.speed;
}
if (_root.map.hitTest(_x, getBounds(_root).yMax, true)) {
_y = _y - _root.speed;
}
if (_root.map.hitTest(_x, getBounds(_root).yMin, true)) {
_y = _y + _root.speed;
}
}
}
Instance of Symbol 56 MovieClip in Frame 15
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
_root.player._x = 320;
_root.player._y = 25;
_root.gotoAndStop("map5");
}
}
Instance of Symbol 56 MovieClip in Frame 15
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
_root.player._x = 354;
_root.player._y = 450;
_root.gotoAndStop("map7");
}
}
Instance of Symbol 100 MovieClip in Frame 15
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
_root.player._x = 22;
_root.player._y = 214;
_root.gotoAndStop("map10");
}
}
Frame 16
loc = "Cave entrance";
if (mob2 == 1) {
player._x = savedx;
player._y = savedy;
mob2 = mob2 + 1;
}
Instance of Symbol 172 MovieClip "map" in Frame 16
onClipEvent (enterFrame) {
with (_root.player) {
if (_root.map.hitTest(getBounds(_root).xMax, _y, true)) {
_x = _x - _root.speed;
}
if (_root.map.hitTest(getBounds(_root).xMin, _y, true)) {
_x = _x + _root.speed;
}
if (_root.map.hitTest(_x, getBounds(_root).yMax, true)) {
_y = _y - _root.speed;
}
if (_root.map.hitTest(_x, getBounds(_root).yMin, true)) {
_y = _y + _root.speed;
}
}
}
Instance of Symbol 56 MovieClip in Frame 16
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
_root.player._x = 255;
_root.player._y = 110;
_root.gotoAndStop("map6");
}
}
Instance of Symbol 100 MovieClip in Frame 16
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
_root.player._x = 745;
_root.player._y = 110;
_root.gotoAndStop("map8");
}
}
Instance of Symbol 134 MovieClip "item4" in Frame 16
onClipEvent (enterFrame) {
if (_root.item4 == 1) {
this._x = -100;
this._y = -100;
this._visible = false;
}
if (_root.player.hitTest(this)) {
_root.potions = _root.potions + 1;
_root.textbox = "You found a potion!";
_root.item4 = _root.item4 + 1;
}
}
Instance of Symbol 56 MovieClip "mobtrigger" in Frame 16
onClipEvent (enterFrame) {
if (_root.mob2 >= 1) {
this._x = -100;
this._y = -100;
this._visible = false;
}
if (_root.player.hitTest(this)) {
_root.mobattack = 4;
_root.mobhp = 30;
_root.savedmap = _root._currentframe;
_root.savedx = _root.player._x;
_root.savedy = _root.player._y;
_root.mobnumber = 2;
trace(_root._currentframe);
trace(_root.savedmap);
trace(_root.savedx);
trace(_root.savedy);
_root.gotoAndStop("mob4");
}
}
Frame 17
loc = "Ruins";
if (_root.cave1button1 == 0) {
cavebutton1.gotoAndStop(1);
} else if (_root.cave1button1 == 1) {
cavebutton1.gotoAndStop(12);
}
if (_root.cave1button2 == 0) {
cavebutton2.gotoAndStop(1);
} else if (_root.cave1button2 == 1) {
cavebutton2.gotoAndStop(12);
}
if (_root.cave1button3 == 0) {
cavebutton3.gotoAndStop(1);
} else if (_root.cave1button3 == 1) {
cavebutton3.gotoAndStop(12);
}
if (_root.cave1button4 == 0) {
cavebutton4.gotoAndStop(1);
} else if (_root.cave1button4 == 1) {
cavebutton4.gotoAndStop(12);
}
if ((((_root.cave1button1 == 0) & (_root.cave1button2 == 0)) & (_root.cave1button3 == 0)) & (_root.cave1button4 == 0)) {
_root.key2 = 1;
} else {
_root.key2 = 0;
}
if (mob3 == 1) {
player._x = savedx;
player._y = savedy;
mob3 = mob3 + 1;
}
Instance of Symbol 195 MovieClip "map" in Frame 17
onClipEvent (enterFrame) {
with (_root.player) {
if (_root.map.hitTest(getBounds(_root).xMax, _y, true)) {
_x = _x - _root.speed;
}
if (_root.map.hitTest(getBounds(_root).xMin, _y, true)) {
_x = _x + _root.speed;
}
if (_root.map.hitTest(_x, getBounds(_root).yMax, true)) {
_y = _y - _root.speed;
}
if (_root.map.hitTest(_x, getBounds(_root).yMin, true)) {
_y = _y + _root.speed;
}
}
}
Instance of Symbol 56 MovieClip in Frame 17
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
_root.player._x = 385;
_root.player._y = 25;
_root.gotoAndStop("map9");
}
}
Instance of Symbol 100 MovieClip in Frame 17
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
_root.player._x = 25;
_root.player._y = 235;
_root.gotoAndStop("map7");
}
}
Instance of Symbol 201 MovieClip "cavebutton1" in Frame 17
onClipEvent (enterFrame) {
if ((_root.player.hitTest(this) & Key.isDown(32)) & (_root.cave1button1 == 0)) {
this.gotoAndPlay(12);
trace("blabla");
} else if ((_root.player.hitTest(this) & Key.isDown(32)) & (_root.cave1button1 == 1)) {
this.gotoAndPlay(2);
trace("blabla2");
}
}
Instance of Symbol 202 MovieClip "cavebutton2" in Frame 17
onClipEvent (enterFrame) {
if ((_root.player.hitTest(this) & Key.isDown(32)) & (_root.cave1button2 == 0)) {
this.gotoAndPlay(12);
trace("blabla");
} else if ((_root.player.hitTest(this) & Key.isDown(32)) & (_root.cave1button2 == 1)) {
this.gotoAndPlay(2);
trace("blabla2");
}
}
Instance of Symbol 203 MovieClip "cavebutton3" in Frame 17
onClipEvent (enterFrame) {
if ((_root.player.hitTest(this) & Key.isDown(32)) & (_root.cave1button3 == 0)) {
this.gotoAndPlay(12);
trace("blabla");
} else if ((_root.player.hitTest(this) & Key.isDown(32)) & (_root.cave1button3 == 1)) {
this.gotoAndPlay(2);
trace("blabla2");
}
}
Instance of Symbol 204 MovieClip "cavebutton4" in Frame 17
onClipEvent (enterFrame) {
if ((_root.player.hitTest(this) & Key.isDown(32)) & (_root.cave1button4 == 0)) {
this.gotoAndPlay(12);
trace("blabla");
} else if ((_root.player.hitTest(this) & Key.isDown(32)) & (_root.cave1button4 == 1)) {
this.gotoAndPlay(2);
trace("blabla2");
}
}
Instance of Symbol 117 MovieClip "forcefield" in Frame 17
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
if (_root.key2 == 1) {
} else {
_root.player._y = _root.player._y - _root.speed;
_root.textbox = "Limith: It seems to be another forcefield.";
}
}
if (_root.key2 == 1) {
this._visible = false;
} else {
this._visible = true;
}
if ((((_root.cave1button1 == 0) & (_root.cave1button2 == 1)) & (_root.cave1button3 == 1)) & (_root.cave1button4 == 0)) {
_root.key2 = 1;
} else {
_root.key2 = 0;
}
}
Instance of Symbol 206 MovieClip "item5" in Frame 17
onClipEvent (enterFrame) {
if (_root.item5 == 1) {
this._x = -100;
this._y = -100;
this._visible = false;
}
if (_root.player.hitTest(this)) {
_root.attack = _root.attack + 2;
_root.textbox = "You found a sharpening stone!\nYour attack is increased by 2!";
_root.item5 = _root.item5 + 1;
}
}
Instance of Symbol 208 MovieClip "item6" in Frame 17
onClipEvent (enterFrame) {
if (_root.item6 == 1) {
this._x = -100;
this._y = -100;
this._visible = false;
}
if (_root.player.hitTest(this)) {
_root.defense = _root.defense + 1;
_root.textbox = "You found bronze leggings!\nYour armor is increased by 1!";
_root.item6 = _root.item6 + 1;
}
}
Instance of Symbol 56 MovieClip "mobtrigger" in Frame 17
onClipEvent (enterFrame) {
if (_root.mob3 >= 1) {
this._x = -100;
this._y = -100;
this._visible = false;
}
if (_root.player.hitTest(this)) {
_root.mobattack = 4;
_root.mobhp = 30;
_root.savedmap = _root._currentframe;
_root.savedx = _root.player._x;
_root.savedy = _root.player._y;
_root.mobnumber = 3;
trace(_root._currentframe);
trace(_root.savedmap);
trace(_root.savedx);
trace(_root.savedy);
_root.gotoAndStop("mob4");
}
}
Frame 18
loc = "Deep in the ruins";
Instance of Symbol 218 MovieClip "map" in Frame 18
onClipEvent (enterFrame) {
with (_root.player) {
if (_root.map.hitTest(getBounds(_root).xMax, _y, true)) {
_x = _x - _root.speed;
}
if (_root.map.hitTest(getBounds(_root).xMin, _y, true)) {
_x = _x + _root.speed;
}
if (_root.map.hitTest(_x, getBounds(_root).yMax, true)) {
_y = _y - _root.speed;
}
if (_root.map.hitTest(_x, getBounds(_root).yMin, true)) {
_y = _y + _root.speed;
}
}
}
Instance of Symbol 56 MovieClip in Frame 18
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
_root.player._x = 390;
_root.player._y = 450;
_root.gotoAndStop("map8");
}
}
Instance of Symbol 222 MovieClip "cavegatebutton" in Frame 18
onClipEvent (enterFrame) {
if ((_root.player.hitTest(this) & Key.isDown(32)) & (_root.cavegatebutton == 0)) {
this.gotoAndPlay(12);
_root.cavegatebutton = 1;
trace("cavegatebutton = 1");
trace("blabla");
}
if (_root.cavegatebutton == 0) {
this.gotoAndStop(1);
} else {
this.gotoAndPlay(12);
}
}
Instance of Symbol 206 MovieClip "item7" in Frame 18
onClipEvent (enterFrame) {
if (_root.item7 == 1) {
this._x = -100;
this._y = -100;
this._visible = false;
}
if (_root.player.hitTest(this)) {
_root.attack = _root.attack + 2;
_root.textbox = "You found a sharpening stone!\nYour attack is increased by 2!";
_root.item7 = _root.item7 + 1;
}
}
Frame 19
loc = "Ancient Gate";
if (mob4 == 1) {
player._x = savedx;
player._y = savedy;
mob4 = mob4 + 1;
}
Instance of Symbol 232 MovieClip "map" in Frame 19
onClipEvent (enterFrame) {
with (_root.player) {
if (_root.map.hitTest(getBounds(_root).xMax, _y, true)) {
_x = _x - _root.speed;
}
if (_root.map.hitTest(getBounds(_root).xMin, _y, true)) {
_x = _x + _root.speed;
}
if (_root.map.hitTest(_x, getBounds(_root).yMax, true)) {
_y = _y - _root.speed;
}
if (_root.map.hitTest(_x, getBounds(_root).yMin, true)) {
_y = _y + _root.speed;
}
}
}
Instance of Symbol 56 MovieClip in Frame 19
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
_root.player._x = 500;
_root.player._y = 440;
_root.gotoAndStop("map11");
}
}
Instance of Symbol 100 MovieClip in Frame 19
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
_root.player._x = 750;
_root.player._y = 218;
_root.gotoAndStop("map6");
}
}
Instance of Symbol 117 MovieClip "forcefield" in Frame 19
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
if (_root.cavegatebutton == 1) {
} else {
_root.player._y = _root.player._y + _root.speed;
_root.textbox = "Limith: ...Yep it's a forcefield.";
}
}
if (_root.cavegatebutton == 1) {
this._visible = false;
} else {
this._visible = true;
}
}
Instance of Symbol 206 MovieClip "item8" in Frame 19
onClipEvent (enterFrame) {
if (_root.item8 == 1) {
this._x = -100;
this._y = -100;
this._visible = false;
}
if (_root.player.hitTest(this)) {
_root.attack = _root.attack + 2;
_root.textbox = "You found a sharpening stone!\nYour attack is increased by 2!";
_root.item8 = _root.item8 + 1;
}
}
Instance of Symbol 134 MovieClip "item9" in Frame 19
onClipEvent (enterFrame) {
if (_root.item9 == 1) {
this._x = -100;
this._y = -100;
this._visible = false;
}
if (_root.player.hitTest(this)) {
_root.potions = _root.potions + 1;
_root.textbox = "You found a potion!";
_root.item9 = _root.item9 + 1;
}
}
Instance of Symbol 56 MovieClip "mobtrigger" in Frame 19
onClipEvent (enterFrame) {
if (_root.mob4 >= 1) {
this._x = -100;
this._y = -100;
this._visible = false;
}
if (_root.player.hitTest(this)) {
_root.mobattack = 8;
_root.mobhp = 40;
_root.savedmap = _root._currentframe;
_root.savedx = _root.player._x;
_root.savedy = _root.player._y;
_root.mobnumber = 4;
trace(_root._currentframe);
trace(_root.savedmap);
trace(_root.savedx);
trace(_root.savedy);
_root.gotoAndStop("mob2");
}
}
Frame 20
loc = "Some place in the mountains";
if (mob5 == 1) {
player._x = savedx;
player._y = savedy;
mob5 = mob5 + 1;
}
Instance of Symbol 245 MovieClip "map" in Frame 20
onClipEvent (enterFrame) {
with (_root.player) {
if (_root.map.hitTest(getBounds(_root).xMax, _y, true)) {
_x = _x - _root.speed;
}
if (_root.map.hitTest(getBounds(_root).xMin, _y, true)) {
_x = _x + _root.speed;
}
if (_root.map.hitTest(_x, getBounds(_root).yMax, true)) {
_y = _y - _root.speed;
}
if (_root.map.hitTest(_x, getBounds(_root).yMin, true)) {
_y = _y + _root.speed;
}
}
}
Instance of Symbol 56 MovieClip in Frame 20
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
_root.player._x = 500;
_root.player._y = 20;
_root.gotoAndStop("map10");
}
}
Instance of Symbol 100 MovieClip in Frame 20
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
_root.player._x = 30;
_root.player._y = 55;
_root.gotoAndStop("map12");
}
}
Instance of Symbol 102 MovieClip "item10" in Frame 20
onClipEvent (enterFrame) {
if (_root.item10 == 1) {
this._x = -100;
this._y = -100;
this._visible = false;
}
if (_root.player.hitTest(this)) {
_root.maxhp = _root.maxhp + 10;
_root.textbox = "You found a health potion!\nMaximum health is increased by 10!";
_root.item10 = _root.item10 + 1;
}
}
Instance of Symbol 56 MovieClip "mobtrigger" in Frame 20
onClipEvent (enterFrame) {
if (_root.mob5 >= 1) {
this._x = -100;
this._y = -100;
this._visible = false;
}
if (_root.player.hitTest(this)) {
_root.mobattack = 3;
_root.mobhp = 30;
_root.savedmap = _root._currentframe;
_root.savedx = _root.player._x;
_root.savedy = _root.player._y;
_root.mobnumber = 5;
trace(_root._currentframe);
trace(_root.savedmap);
trace(_root.savedx);
trace(_root.savedy);
_root.gotoAndStop("mob1");
}
}
Frame 21
loc = "Mountain Pillars";
if (mob6 == 1) {
player._x = savedx;
player._y = savedy;
mob6 = mob6 + 1;
}
Instance of Symbol 258 MovieClip "map" in Frame 21
onClipEvent (enterFrame) {
with (_root.player) {
if (_root.map.hitTest(getBounds(_root).xMax, _y, true)) {
_x = _x - _root.speed;
}
if (_root.map.hitTest(getBounds(_root).xMin, _y, true)) {
_x = _x + _root.speed;
}
if (_root.map.hitTest(_x, getBounds(_root).yMax, true)) {
_y = _y - _root.speed;
}
if (_root.map.hitTest(_x, getBounds(_root).yMin, true)) {
_y = _y + _root.speed;
}
}
}
Instance of Symbol 100 MovieClip in Frame 21
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
_root.player._x = 750;
_root.player._y = 50;
_root.gotoAndStop("map11");
}
}
Instance of Symbol 56 MovieClip in Frame 21
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
_root.player._x = 210;
_root.player._y = 440;
_root.gotoAndStop("map13");
}
}
Instance of Symbol 206 MovieClip "item11" in Frame 21
onClipEvent (enterFrame) {
if (_root.item11 == 1) {
this._x = -100;
this._y = -100;
this._visible = false;
}
if (_root.player.hitTest(this)) {
_root.attack = _root.attack + 2;
_root.textbox = "You found a sharpening stone!\nYour attack is increased by 2!";
_root.item11 = _root.item11 + 1;
}
}
Instance of Symbol 263 MovieClip "item12" in Frame 21
onClipEvent (enterFrame) {
if (_root.item12 == 1) {
this._x = -100;
this._y = -100;
this._visible = false;
}
if (_root.player.hitTest(this)) {
_root.defense = _root.defense + 2;
_root.textbox = "You found a bronze breastplate!\nYour armor is increased by 2!";
_root.item12 = _root.item12 + 1;
}
}
Instance of Symbol 193 MovieClip in Frame 21
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
_root.player._x = 440;
_root.player._y = 220;
}
}
Instance of Symbol 193 MovieClip in Frame 21
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
_root.player._x = 130;
_root.player._y = 55;
}
}
Instance of Symbol 193 MovieClip in Frame 21
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
_root.player._x = 530;
_root.player._y = 320;
}
}
Instance of Symbol 193 MovieClip in Frame 21
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
_root.player._x = 720;
_root.player._y = 375;
}
}
Instance of Symbol 193 MovieClip in Frame 21
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
_root.player._x = 130;
_root.player._y = 55;
}
}
Instance of Symbol 193 MovieClip in Frame 21
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
_root.player._x = 230;
_root.player._y = 435;
}
}
Instance of Symbol 193 MovieClip in Frame 21
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
_root.player._x = 230;
_root.player._y = 435;
}
}
Instance of Symbol 193 MovieClip in Frame 21
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
_root.player._x = 130;
_root.player._y = 55;
}
}
Instance of Symbol 56 MovieClip "mobtrigger" in Frame 21
onClipEvent (enterFrame) {
if (_root.mob6 >= 1) {
this._x = -100;
this._y = -100;
this._visible = false;
}
if (_root.player.hitTest(this)) {
_root.mobattack = 10;
_root.mobhp = 50;
_root.savedmap = _root._currentframe;
_root.savedx = _root.player._x;
_root.savedy = _root.player._y;
_root.mobnumber = 6;
trace(_root._currentframe);
trace(_root.savedmap);
trace(_root.savedx);
trace(_root.savedy);
_root.gotoAndStop("mob2");
}
}
Frame 22
loc = "Cave";
if (_root.cave2button1 == 0) {
objectcbutton1.gotoAndStop(1);
} else if (_root.cave2button1 == 1) {
objectcbutton1.gotoAndStop(12);
}
if (_root.cave2button2 == 0) {
objectcbutton2.gotoAndStop(1);
} else if (_root.cave2button2 == 1) {
objectcbutton2.gotoAndStop(12);
}
if (mob7 == 1) {
player._x = savedx;
player._y = savedy;
mob7 = mob7 + 1;
}
Instance of Symbol 273 MovieClip "map" in Frame 22
onClipEvent (enterFrame) {
with (_root.player) {
if (_root.map.hitTest(getBounds(_root).xMax, _y, true)) {
_x = _x - _root.speed;
}
if (_root.map.hitTest(getBounds(_root).xMin, _y, true)) {
_x = _x + _root.speed;
}
if (_root.map.hitTest(_x, getBounds(_root).yMax, true)) {
_y = _y - _root.speed;
}
if (_root.map.hitTest(_x, getBounds(_root).yMin, true)) {
_y = _y + _root.speed;
}
}
}
Instance of Symbol 100 MovieClip in Frame 22
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
_root.player._x = 30;
_root.player._y = 230;
_root.gotoAndStop("map14");
}
}
Instance of Symbol 56 MovieClip in Frame 22
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
_root.player._x = 735;
_root.player._y = 185;
_root.gotoAndStop("map12");
}
}
Instance of Symbol 100 MovieClip in Frame 22
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
_root.player._x = 530;
_root.player._y = 430;
_root.gotoAndStop("map16");
}
}
Instance of Symbol 278 MovieClip "item13" in Frame 22
onClipEvent (enterFrame) {
if (_root.item13 == 1) {
this._x = -100;
this._y = -100;
this._visible = false;
}
if (_root.player.hitTest(this)) {
_root.defense = _root.defense + 2;
_root.textbox = "You found iron leggings!\nYour armor is increased by 2!";
_root.item13 = _root.item13 + 1;
}
}
Instance of Symbol 279 MovieClip "objectcbutton1" in Frame 22
onClipEvent (enterFrame) {
if ((_root.player.hitTest(this) & Key.isDown(32)) & (_root.cave2button1 == 0)) {
this.gotoAndPlay(12);
trace("blabla");
}
if ((_root.player.hitTest(this) & Key.isDown(32)) & (_root.cave2button1 == 1)) {
this.gotoAndPlay(2);
trace("blab");
}
}
Instance of Symbol 282 MovieClip "objectcbutton2" in Frame 22
onClipEvent (enterFrame) {
if ((_root.player.hitTest(this) & Key.isDown(32)) & (_root.cave2button2 == 0)) {
this.gotoAndPlay(12);
trace("blabla");
}
if ((_root.player.hitTest(this) & Key.isDown(32)) & (_root.cave2button2 == 1)) {
this.gotoAndPlay(2);
trace("blab");
}
}
Instance of Symbol 56 MovieClip "mobtrigger" in Frame 22
onClipEvent (enterFrame) {
if (_root.mob7 >= 1) {
this._x = -100;
this._y = -100;
this._visible = false;
}
if (_root.player.hitTest(this)) {
_root.mobattack = 8;
_root.mobhp = 40;
_root.savedmap = _root._currentframe;
_root.savedx = _root.player._x;
_root.savedy = _root.player._y;
_root.mobnumber = 7;
trace(_root._currentframe);
trace(_root.savedmap);
trace(_root.savedx);
trace(_root.savedy);
_root.gotoAndStop("mob5");
}
}
Frame 23
loc = "Cave";
if (_root.cave2button3 == 0) {
objectcbutton3.gotoAndStop(1);
} else if (_root.cave2button3 == 1) {
objectcbutton3.gotoAndStop(12);
}
if (_root.cave2button4 == 0) {
objectcbutton4.gotoAndStop(1);
} else if (_root.cave2button4 == 1) {
objectcbutton4.gotoAndStop(12);
}
if (mob8 == 1) {
player._x = savedx;
player._y = savedy;
mob8 = mob8 + 1;
}
Instance of Symbol 292 MovieClip "map" in Frame 23
onClipEvent (enterFrame) {
with (_root.player) {
if (_root.map.hitTest(getBounds(_root).xMax, _y, true)) {
_x = _x - _root.speed;
}
if (_root.map.hitTest(getBounds(_root).xMin, _y, true)) {
_x = _x + _root.speed;
}
if (_root.map.hitTest(_x, getBounds(_root).yMax, true)) {
_y = _y - _root.speed;
}
if (_root.map.hitTest(_x, getBounds(_root).yMin, true)) {
_y = _y + _root.speed;
}
}
}
Instance of Symbol 100 MovieClip in Frame 23
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
_root.player._x = 740;
_root.player._y = 370;
_root.gotoAndStop("map13");
}
}
Instance of Symbol 100 MovieClip in Frame 23
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
_root.player._x = 275;
_root.player._y = 455;
_root.gotoAndStop("map15");
}
}
Instance of Symbol 134 MovieClip "item14" in Frame 23
onClipEvent (enterFrame) {
if (_root.item14 == 1) {
this._x = -100;
this._y = -100;
this._visible = false;
}
if (_root.player.hitTest(this)) {
_root.potions = _root.potions + 1;
_root.textbox = "You found a potion!";
_root.item14 = _root.item14 + 1;
}
}
Instance of Symbol 296 MovieClip "objectcbutton3" in Frame 23
onClipEvent (enterFrame) {
if ((_root.player.hitTest(this) & Key.isDown(32)) & (_root.cave2button3 == 0)) {
this.gotoAndPlay(12);
trace("blabla");
}
if ((_root.player.hitTest(this) & Key.isDown(32)) & (_root.cave2button3 == 1)) {
this.gotoAndPlay(2);
trace("blab");
}
}
Instance of Symbol 297 MovieClip "objectcbutton4" in Frame 23
onClipEvent (enterFrame) {
if ((_root.player.hitTest(this) & Key.isDown(32)) & (_root.cave2button4 == 0)) {
this.gotoAndPlay(12);
trace("blabla");
}
if ((_root.player.hitTest(this) & Key.isDown(32)) & (_root.cave2button4 == 1)) {
this.gotoAndPlay(2);
trace("blab");
}
}
Instance of Symbol 56 MovieClip "mobtrigger" in Frame 23
onClipEvent (enterFrame) {
if (_root.mob8 >= 1) {
this._x = -100;
this._y = -100;
this._visible = false;
}
if (_root.player.hitTest(this)) {
_root.mobattack = 10;
_root.mobhp = 40;
_root.savedmap = _root._currentframe;
_root.savedx = _root.player._x;
_root.savedy = _root.player._y;
_root.mobnumber = 8;
trace(_root._currentframe);
trace(_root.savedmap);
trace(_root.savedx);
trace(_root.savedy);
_root.gotoAndStop("mob4");
}
}
Frame 24
loc = "Cave";
if (_root.cave2button5 == 0) {
objectcbutton5.gotoAndStop(1);
} else if (_root.cave2button5 == 1) {
objectcbutton5.gotoAndStop(12);
}
if (_root.cave2button6 == 0) {
objectcbutton6.gotoAndStop(1);
} else if (_root.cave2button6 == 1) {
objectcbutton6.gotoAndStop(12);
}
if (mob9 == 1) {
player._x = savedx;
player._y = savedy;
mob9 = mob9 + 1;
}
Instance of Symbol 306 MovieClip "map" in Frame 24
onClipEvent (enterFrame) {
with (_root.player) {
if (_root.map.hitTest(getBounds(_root).xMax, _y, true)) {
_x = _x - _root.speed;
}
if (_root.map.hitTest(getBounds(_root).xMin, _y, true)) {
_x = _x + _root.speed;
}
if (_root.map.hitTest(_x, getBounds(_root).yMax, true)) {
_y = _y - _root.speed;
}
if (_root.map.hitTest(_x, getBounds(_root).yMin, true)) {
_y = _y + _root.speed;
}
}
}
Instance of Symbol 100 MovieClip in Frame 24
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
_root.player._x = 130;
_root.player._y = 80;
_root.gotoAndStop("map14");
}
}
Instance of Symbol 102 MovieClip "item15" in Frame 24
onClipEvent (enterFrame) {
if (_root.item15 == 1) {
this._x = -100;
this._y = -100;
this._visible = false;
}
if (_root.player.hitTest(this)) {
_root.maxhp = _root.maxhp + 10;
_root.textbox = "You found a health potion!\nMaximum health is increased by 10!";
_root.item15 = _root.item15 + 1;
}
}
Instance of Symbol 310 MovieClip "objectcbutton5" in Frame 24
onClipEvent (enterFrame) {
if ((_root.player.hitTest(this) & Key.isDown(32)) & (_root.cave2button5 == 0)) {
this.gotoAndPlay(12);
trace("blabla");
}
if ((_root.player.hitTest(this) & Key.isDown(32)) & (_root.cave2button5 == 1)) {
this.gotoAndPlay(2);
trace("blab");
}
}
Instance of Symbol 311 MovieClip "objectcbutton6" in Frame 24
onClipEvent (enterFrame) {
if ((_root.player.hitTest(this) & Key.isDown(32)) & (_root.cave2button6 == 0)) {
this.gotoAndPlay(12);
trace("blabla");
}
if ((_root.player.hitTest(this) & Key.isDown(32)) & (_root.cave2button6 == 1)) {
this.gotoAndPlay(2);
trace("blab");
}
}
Instance of Symbol 312 MovieClip "makko" in Frame 24
onClipEvent (enterFrame) {
if (_root.player.hitTest(this) & Key.isDown(32)) {
_root.textbox = "Makko: Without the power of the night you will be stuck here forever! Like me..";
}
}
Instance of Symbol 56 MovieClip "mobtrigger" in Frame 24
onClipEvent (enterFrame) {
if (_root.mob9 >= 1) {
this._x = -100;
this._y = -100;
this._visible = false;
}
if (_root.player.hitTest(this)) {
_root.mobattack = 12;
_root.mobhp = 50;
_root.savedmap = _root._currentframe;
_root.savedx = _root.player._x;
_root.savedy = _root.player._y;
_root.mobnumber = 9;
trace(_root._currentframe);
trace(_root.savedmap);
trace(_root.savedx);
trace(_root.savedy);
_root.gotoAndStop("mob2");
}
}
Frame 25
loc = "Cave exit";
if (_root.cave2button7 == 0) {
objectcbutton7.gotoAndStop(1);
} else if (_root.cave2button7 == 1) {
objectcbutton7.gotoAndStop(12);
}
if (_root.cave2button8 == 0) {
objectcbutton8.gotoAndStop(1);
} else if (_root.cave2button8 == 1) {
objectcbutton8.gotoAndStop(12);
}
if (mob10 == 1) {
player._x = savedx;
player._y = savedy;
mob10 = mob10 + 1;
}
Instance of Symbol 323 MovieClip "map" in Frame 25
onClipEvent (enterFrame) {
with (_root.player) {
if (_root.map.hitTest(getBounds(_root).xMax, _y, true)) {
_x = _x - _root.speed;
}
if (_root.map.hitTest(getBounds(_root).xMin, _y, true)) {
_x = _x + _root.speed;
}
if (_root.map.hitTest(_x, getBounds(_root).yMax, true)) {
_y = _y - _root.speed;
}
if (_root.map.hitTest(_x, getBounds(_root).yMin, true)) {
_y = _y + _root.speed;
}
}
}
Instance of Symbol 102 MovieClip "item15" in Frame 25
onClipEvent (enterFrame) {
if (_root.item17 == 1) {
this._x = -100;
this._y = -100;
this._visible = false;
}
if (_root.player.hitTest(this)) {
_root.maxhp = _root.maxhp + 10;
_root.textbox = "You found a health potion!\nMaximum health is increased by 10!";
_root.item17 = _root.item17 + 1;
}
}
Instance of Symbol 100 MovieClip in Frame 25
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
_root.player._x = 225;
_root.player._y = 155;
_root.gotoAndStop("map13");
}
}
Instance of Symbol 100 MovieClip in Frame 25
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
_root.player._x = 690;
_root.player._y = 305;
_root.textbox = "Limith: Finally, some fresh air! The expedition camp should be nearby.";
_root.gotoAndStop("map17");
}
}
Instance of Symbol 328 MovieClip "item13" in Frame 25
onClipEvent (enterFrame) {
if (_root.item16 == 1) {
this._x = -100;
this._y = -100;
this._visible = false;
}
if (_root.player.hitTest(this)) {
_root.defense = _root.defense + 2;
_root.textbox = "You found a iron shield!\nYour armor is increased by 2!";
_root.item16 = _root.item16 + 1;
}
}
Instance of Symbol 117 MovieClip "forcefield" in Frame 25
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
if (_root.key3 == 1) {
} else {
_root.player._x = _root.player._x + _root.speed;
_root.textbox = "Limith: The way is blocked by a forcefield\nI can see a exit behind it.";
}
}
if (_root.key3 == 1) {
this._visible = false;
} else {
this._visible = true;
}
if ((((((((_root.cave2button1 == 0) & (_root.cave2button2 == 1)) & (_root.cave2button3 == 0)) & (_root.cave2button4 == 1)) & (_root.cave2button5 == 0)) & (_root.cave2button6 == 1)) & (_root.cave2button7 == 0)) & (_root.cave2button8 == 1)) {
_root.key3 = 1;
} else {
_root.key3 = 0;
}
}
Instance of Symbol 329 MovieClip "objectcbutton7" in Frame 25
onClipEvent (enterFrame) {
if ((_root.player.hitTest(this) & Key.isDown(32)) & (_root.cave2button7 == 0)) {
this.gotoAndPlay(12);
trace("blabla");
}
if ((_root.player.hitTest(this) & Key.isDown(32)) & (_root.cave2button7 == 1)) {
this.gotoAndPlay(2);
trace("blab");
}
}
Instance of Symbol 330 MovieClip "objectcbutton8" in Frame 25
onClipEvent (enterFrame) {
if ((_root.player.hitTest(this) & Key.isDown(32)) & (_root.cave2button8 == 0)) {
this.gotoAndPlay(12);
trace("blabla");
}
if ((_root.player.hitTest(this) & Key.isDown(32)) & (_root.cave2button8 == 1)) {
this.gotoAndPlay(2);
trace("blab");
}
}
Instance of Symbol 56 MovieClip "mobtrigger" in Frame 25
onClipEvent (enterFrame) {
if (_root.mob10 >= 1) {
this._x = -100;
this._y = -100;
this._visible = false;
}
if (_root.player.hitTest(this)) {
_root.mobattack = 3;
_root.mobhp = 40;
_root.savedmap = _root._currentframe;
_root.savedx = _root.player._x;
_root.savedy = _root.player._y;
_root.mobnumber = 10;
trace(_root._currentframe);
trace(_root.savedmap);
trace(_root.savedx);
trace(_root.savedy);
_root.gotoAndStop("mob5");
}
}
Frame 26
loc = "Behind the camp";
if (mob11 == 1) {
player._x = savedx;
player._y = savedy;
mob11 = mob11 + 1;
}
Instance of Symbol 339 MovieClip "map" in Frame 26
onClipEvent (enterFrame) {
with (_root.player) {
if (_root.map.hitTest(getBounds(_root).xMax, _y, true)) {
_x = _x - _root.speed;
}
if (_root.map.hitTest(getBounds(_root).xMin, _y, true)) {
_x = _x + _root.speed;
}
if (_root.map.hitTest(_x, getBounds(_root).yMax, true)) {
_y = _y - _root.speed;
}
if (_root.map.hitTest(_x, getBounds(_root).yMin, true)) {
_y = _y + _root.speed;
}
}
}
Instance of Symbol 100 MovieClip in Frame 26
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
_root.player._x = 50;
_root.player._y = 445;
_root.gotoAndStop("map16");
}
}
Instance of Symbol 100 MovieClip in Frame 26
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
_root.player._x = 340;
_root.player._y = 460;
_root.textbox = "Limith: The camp, I hope I am not to late, my contactperson is someone wearing a hat.";
_root.gotoAndStop("map18");
}
}
Instance of Symbol 56 MovieClip "mobtrigger" in Frame 26
onClipEvent (enterFrame) {
if (_root.mob11 >= 1) {
this._x = -100;
this._y = -100;
this._visible = false;
}
if (_root.player.hitTest(this)) {
_root.mobattack = 8;
_root.mobhp = 80;
_root.savedmap = _root._currentframe;
_root.savedx = _root.player._x;
_root.savedy = _root.player._y;
_root.mobnumber = 11;
trace(_root._currentframe);
trace(_root.savedmap);
trace(_root.savedx);
trace(_root.savedy);
_root.gotoAndStop("mob3");
}
}
Frame 27
loc = "The expedition camp";
Instance of Symbol 351 MovieClip "map" in Frame 27
onClipEvent (enterFrame) {
with (_root.player) {
if (_root.map.hitTest(getBounds(_root).xMax, _y, true)) {
_x = _x - _root.speed;
}
if (_root.map.hitTest(getBounds(_root).xMin, _y, true)) {
_x = _x + _root.speed;
}
if (_root.map.hitTest(_x, getBounds(_root).yMax, true)) {
_y = _y - _root.speed;
}
if (_root.map.hitTest(_x, getBounds(_root).yMin, true)) {
_y = _y + _root.speed;
}
}
}
Instance of Symbol 355 MovieClip "gans" in Frame 27
onClipEvent (enterFrame) {
if (_root.player.hitTest(this) & Key.isDown(32)) {
_root.textbox = "Gans: Hello there, I'm Gans. Hans's little brother.";
}
}
Instance of Symbol 357 MovieClip "item18" in Frame 27
onClipEvent (enterFrame) {
if (_root.item18 == 1) {
this._x = -100;
this._y = -100;
this._visible = false;
}
if (_root.player.hitTest(this)) {
_root.defense = _root.defense + 3;
_root.textbox = "You found iron armor!\nYour armor is increased by 3!";
_root.item18 = _root.item18 + 1;
}
}
Instance of Symbol 358 MovieClip "indy" in Frame 27
onClipEvent (enterFrame) {
if ((_root.player.hitTest(this) & Key.isDown(32)) & (this._currentframe == 9)) {
_root.textbox = "Indy: Thanks for bringing this package all the way out here, mate!";
this.gotoAndPlay(10);
}
if ((_root.player.hitTest(this) & Key.isDown(32)) & (this._currentframe == 19)) {
_root.textbox = "Limith: No problem sir. It's my job.";
this.gotoAndPlay(20);
}
if ((_root.player.hitTest(this) & Key.isDown(32)) & (this._currentframe == 29)) {
_root.textbox = "Indy: You must be tired from the trip, get some rest in of these tents.";
this.gotoAndPlay(30);
}
if ((_root.player.hitTest(this) & Key.isDown(32)) & (this._currentframe == 39)) {
_root.textbox = "Limith: Thank you.";
this.gotoAndPlay(40);
_root.black.gotoAndPlay(2);
}
if (_root.player.hitTest(this)) {
trace(this._currentframe);
}
}
Instance of Symbol 359 MovieClip "thesulac" in Frame 27
onClipEvent (enterFrame) {
if (_root.player.hitTest(this) & Key.isDown(32)) {
_root.textbox = "Thesulac: Stop bothering me, I just found something that looks like it belongs to some sort of tribe..";
}
}
Instance of Symbol 360 MovieClip "eyrie" in Frame 27
onClipEvent (enterFrame) {
if (_root.player.hitTest(this) & Key.isDown(32)) {
_root.textbox = "Eyrie: Your from Elt? Have you met the great Tanzu? I love his magic shows.";
}
}
Frame 28
loc = "???";
Frame 29
loc = "West from the camp";
if (mob12 == 1) {
player._x = savedx;
player._y = savedy;
mob12 = mob12 + 1;
}
Instance of Symbol 388 MovieClip "map" in Frame 29
onClipEvent (enterFrame) {
with (_root.player) {
if (_root.map.hitTest(getBounds(_root).xMax, _y, true)) {
_x = _x - _root.speed;
}
if (_root.map.hitTest(getBounds(_root).xMin, _y, true)) {
_x = _x + _root.speed;
}
if (_root.map.hitTest(_x, getBounds(_root).yMax, true)) {
_y = _y - _root.speed;
}
if (_root.map.hitTest(_x, getBounds(_root).yMin, true)) {
_y = _y + _root.speed;
}
}
}
Instance of Symbol 100 MovieClip in Frame 29
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
_root.player._x = 585;
_root.player._y = 445;
_root.gotoAndStop("map20");
}
}
Instance of Symbol 100 MovieClip in Frame 29
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
_root.player._x = 380;
_root.player._y = 30;
_root.gotoAndStop("map20");
}
}
Instance of Symbol 100 MovieClip in Frame 29
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
_root.player._x = 145;
_root.player._y = 20;
_root.gotoAndStop("map20");
}
}
Instance of Symbol 100 MovieClip in Frame 29
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
_root.player._x = 80;
_root.player._y = 440;
_root.gotoAndStop("map20");
}
}
Instance of Symbol 100 MovieClip in Frame 29
onClipEvent (enterFrame) {
if (_root.player.hitTest(this)) {
_root.player._x = 585;
_root.player._y = 445;
_root.gotoAndStop("map21");
}
}
Instance of Symbol 102 MovieClip "item19" in Frame 29
onClipEvent (enterFrame) {
if (_root.item19 == 1) {
this._x = -100;
this._y = -100;
this._visible = false;
}
if (_root.player.hitTest(this)) {
_root.maxhp = _root.maxhp + 10;
_root.textbox = "You found a health potion!\nMaximum health is increased by 10!";
_root.item19 = _root.item19 + 1;
}
}
Instance of Symbol 56 MovieClip "mobtrigger" in Frame 29
onClipEvent (enterFrame) {
if (_root.mob12 >= 1) {
this._x = -100;
this._y = -100;
this._visible = false;
}
if (_root.player.hitTest(this)) {
_root.mobattack = 14;
_root.mobhp = 40;
_root.savedmap = _root._currentframe;
_root.savedx = _root.player._x;
_root.savedy = _root.player._y;
_root.mobnumber = 12;
trace(_root._currentframe);
trace(_root.savedmap);
trace(_root.savedx);
trace(_root.savedy);
_root.gotoAndStop("mob3");
}
}
Instance of Symbol 94 MovieClip "player" in Frame 29
onClipEvent (enterFrame) {
if (((Key.isDown(40) & (!Key.isDown(38))) & (!Key.isDown(37))) & (!Key.isDown(39))) {
this._y = this._y + _root.speed;
this.gotoAndStop(5);
}
if (((Key.isDown(38) & (!Key.isDown(40))) & (!Key.isDown(37))) & (!Key.isDown(39))) {
this._y = this._y - _root.speed;
this.gotoAndStop(6);
}
if (((Key.isDown(39) & (!Key.isDown(38))) & (!Key.isDown(37))) & (!Key.isDown(40))) {
this._x = this._x + _root.speed;
this.gotoAndStop(7);
}
if (((Key.isDown(37) & (!Key.isDown(38))) & (!Key.isDown(40))) & (!Key.isDown(39))) {
this._x = this._x - _root.speed;
this.gotoAndStop(8);
}
if (this._x < 1) {
this._x = 1;
}
if (this._x > 772) {
this._x = 772;
}
if (this._y < 1) {
this._y = 1;
}
if (this._y > 472) {
this._y = 472;
}
}
Frame 30
loc = "West from the camp";
Instance of Symbol 410 MovieClip "cutscene" in Frame 30
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
this.gotoAndPlay(_currentframe + 1);
}
}
Frame 31
loc = "West from the camp";
Instance of Symbol 425 MovieClip "cutscene" in Frame 31
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
this.gotoAndPlay(_currentframe + 1);
}
}
Frame 32
loc = "Grand falls";
Frame 35
loc = "The expedition camp";
Frame 49
stop();
Instance of Symbol 478 MovieClip in Frame 49
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
this.gotoAndPlay("preloader");
}
}
Frame 50
stop();
Instance of Symbol 519 MovieClip "battlemenu" in Frame 50
onClipEvent (enterFrame) {
_root.battlemenu.button_attack.onRelease = function () {
trace("clickedattack");
_root.playerbattle.gotoAndPlay("attack");
_root.battlemenu.gotoAndStop(2);
};
_root.battlemenu.button_attack.onRollOver = function () {
_root.battlemenu.button_attack.gotoAndStop(2);
_root.textbox = "Attacks the enemy!";
};
_root.battlemenu.button_attack.onRollOut = function () {
_root.battlemenu.button_attack.gotoAndStop(1);
};
_root.battlemenu.button_dodge.onRelease = function () {
trace("clickeddodge");
_root.playerbattle.gotoAndPlay("dodge");
_root.battlemenu.gotoAndStop(2);
};
_root.battlemenu.button_dodge.onRollOver = function () {
_root.battlemenu.button_dodge.gotoAndStop(2);
_root.textbox = "Attempts to dodge the next enemy attack!";
};
_root.battlemenu.button_dodge.onRollOut = function () {
_root.battlemenu.button_dodge.gotoAndStop(1);
};
_root.battlemenu.button_fury.onRelease = function () {
trace("clickedfury");
if (_root.hp < 21) {
_root.textbox = "You don't have enough health to use fury!";
} else {
_root.hp = _root.hp - 20;
_root.playerbattle.gotoAndPlay("fury");
_root.battlemenu.gotoAndStop(2);
}
};
_root.battlemenu.button_fury.onRollOver = function () {
_root.battlemenu.button_fury.gotoAndStop(2);
_root.textbox = "Go into fury and attack with extra strength at the cost of your own health!";
};
_root.battlemenu.button_fury.onRollOut = function () {
_root.battlemenu.button_fury.gotoAndStop(1);
};
_root.battlemenu.button_potion.onRelease = function () {
trace("clickedpotion");
if (_root.potions > 0) {
_root.playerbattle.gotoAndPlay("potion");
_root.battlemenu.gotoAndStop(2);
_root.potions--;
_root.hp = _root.hp + 50;
if (_root.hp > _root.maxhp) {
_root.hp = _root.maxhp;
}
} else {
_root.textbox = "You're out of potions!";
}
};
_root.battlemenu.button_potion.onRollOver = function () {
_root.battlemenu.button_potion.gotoAndStop(2);
_root.textbox = "Uses a potion!";
};
_root.battlemenu.button_potion.onRollOut = function () {
_root.battlemenu.button_potion.gotoAndStop(1);
};
}
Frame 51
stop();
Frame 52
stop();
Frame 53
stop();
Frame 54
stop();
Frame 55
stop();
Symbol 571 MovieClip [__Packages.MochiAd] Frame 0
class MochiAd
{
function MochiAd () {
}
static function getVersion() {
return("2.1");
}
static function showPreGameAd(options) {
var _local27 = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}};
options = _parseOptions(options, _local27);
var clip = options.clip;
var _local23 = 11000;
var _local26 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local14 = _getRes(options);
var _local4 = _local14[0];
var _local13 = _local14[1];
mc._x = _local4 * 0.5;
mc._y = _local13 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local4 * -0.5;
chk._y = _local13 * -0.5;
var _local7 = chk.createEmptyMovieClip("_mochiad_bar", 4);
_local7._x = 10;
_local7._y = _local13 - 20;
var _local22 = options.color;
delete options.color;
var _local19 = options.background;
delete options.background;
var _local24 = options.outline;
delete options.outline;
var _local5 = _local7.createEmptyMovieClip("_outline", 1);
_local5.beginFill(_local19);
_local5.moveTo(0, 0);
_local5.lineTo(_local4 - 20, 0);
_local5.lineTo(_local4 - 20, 10);
_local5.lineTo(0, 10);
_local5.lineTo(0, 0);
_local5.endFill();
var _local3 = _local7.createEmptyMovieClip("_inside", 2);
_local3.beginFill(_local22);
_local3.moveTo(0, 0);
_local3.lineTo(_local4 - 20, 0);
_local3.lineTo(_local4 - 20, 10);
_local3.lineTo(0, 10);
_local3.lineTo(0, 0);
_local3.endFill();
_local3._xscale = 0;
var _local6 = _local7.createEmptyMovieClip("_outline", 3);
_local6.lineStyle(0, _local24, 100);
_local6.moveTo(0, 0);
_local6.lineTo(_local4 - 20, 0);
_local6.lineTo(_local4 - 20, 10);
_local6.lineTo(0, 10);
_local6.lineTo(0, 0);
chk.ad_msec = _local23;
chk.ad_timeout = _local26;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = function (width, height) {
};
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec;
};
chk.onEnterFrame = function () {
var _local6 = this._parent._parent;
var _local12 = this._parent._mochiad_ctr;
var _local5 = getTimer() - this.started;
var _local3 = false;
var _local4 = _local6.getBytesTotal();
var _local8 = _local6.getBytesLoaded();
var _local10 = (100 * _local8) / _local4;
var _local11 = (100 * _local5) / chk.ad_msec;
var _local9 = this._mochiad_bar._inside;
var _local2 = Math.min(100, Math.min(_local10 || 0, _local11));
_local2 = Math.max(this.last_pcnt, _local2);
this.last_pcnt = _local2;
_local9._xscale = _local2;
if (!chk.showing) {
var _local7 = _local12.getBytesTotal();
if ((_local7 > 0) || (typeof(_local7) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local5 > chk.ad_timeout) {
_local3 = true;
}
}
if (_local5 > chk.ad_msec) {
_local3 = true;
}
if (((_local4 > 0) && (_local8 >= _local4)) && (_local3)) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
}
}
};
}
static function showInterLevelAd(options) {
var _local13 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}};
options = _parseOptions(options, _local13);
var clip = options.clip;
var _local10 = 11000;
var _local12 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local5 = _getRes(options);
var _local14 = _local5[0];
var _local11 = _local5[1];
mc._x = _local14 * 0.5;
mc._y = _local11 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = _local10;
chk.ad_timeout = _local12;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = function (width, height) {
};
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec - 250;
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
_local2 = true;
}
}
if (_local4 > chk.ad_msec) {
_local2 = true;
}
if (_local2) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
}
}
};
}
static function showTimedAd(options) {
showInterLevelAd(options);
}
static function showPreloaderAd(options) {
showPreGameAd(options);
}
static function _allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function _loadCommunicator(options) {
var _local26 = {clip:_root, com_server:"http://x.mochiads.com/com/1/", method:"loadCommunicator", depth:10337, id:"_UNKNOWN_"};
options = _parseOptions(options, _local26);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local18 = options.clip;
var _local20 = "_mochiad_com_" + options.id;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local18[_local20]) {
return(_local18[_local20].lc);
}
var _local21 = options.com_server + options.id;
_allowDomains(_local21);
delete options.id;
delete options.com_server;
var _local25 = options.depth;
delete options.depth;
var _local17 = _local18.createEmptyMovieClip(_local20, _local25);
var _local11 = _local17.createEmptyMovieClip("_mochiad_com", 1);
for (var _local15 in options) {
_local11[_local15] = options[_local15];
}
var _local6 = new LocalConnection();
var _local16 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local6.mc = _local17;
_local6.name = _local16;
_local6.allowDomain = function (d) {
return(true);
};
_local6.allowInsecureDomain = _local6.allowDomain;
_local6.connect(_local16);
_local17.lc = _local6;
_local11.lc = _local16;
_local6._id = 0;
_local6._queue = [];
_local6.rpcResult = function (cb_arg) {
var _local8 = parseInt(cb_arg);
var _local4 = this._callbacks[_local8];
if (!_local4) {
return(undefined);
}
delete this._callbacks[_local8];
var _local5 = [];
var _local3 = 2;
while (_local3 < _local4.length) {
_local5.push(_local4[_local3]);
_local3++;
}
_local3 = 1;
while (_local3 < arguments.length) {
_local5.push(arguments[_local3]);
_local3++;
}
var _local6 = _local4[1];
var _local7 = _local4[0];
if (_local7 && (typeof(_local6) == "string")) {
_local6 = _local7[_local6];
}
if (_local6) {
_local6.apply(_local7, _local5);
}
};
_local6._didConnect = function (endpoint) {
this._endpoint = endpoint;
var _local4 = this._queue;
delete this._queue;
var _local5 = this.doSend;
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = _local4[_local2];
_local5.apply(this, _local3);
_local2++;
}
};
_local6.doSend = function (args, cbobj, cbfn) {
if (this._endpoint == null) {
var _local4 = [];
var _local3 = 0;
while (_local3 < arguments.length) {
_local4.push(arguments[_local3]);
_local3++;
}
this._queue.push(_local4);
return(undefined);
}
this._id = this._id + 1;
var _local5 = this._id;
if ((cbfn === undefined) || (cbfn === null)) {
cbfn = cbobj;
}
this._callbacks[_local5] = [cbobj, cbfn];
var _local7 = new LocalConnection();
var _local9 = _local7.send(this._endpoint, "rpc", _local5, args);
};
_local6._callbacks = {};
_local6._callbacks[0] = [_local6, "_didConnect"];
_local11.st = getTimer();
_local11.loadMovie(_local21 + ".swf", "POST");
return(_local6);
}
static function fetchHighScores(options, callbackObj, callbackMethod) {
var _local1 = _loadCommunicator({id:options.id});
if (!_local1) {
return(false);
}
var _local4 = ["fetchHighScores", options];
_local1.doSend(["fetchHighScores", options], callbackObj, callbackMethod);
return(true);
}
static function sendHighScore(options, callbackObj, callbackMethod) {
var _local1 = _loadCommunicator({id:options.id});
if (!_local1) {
return(false);
}
var _local4 = ["sendHighScore", options];
_local1.doSend(["sendHighScore", options], callbackObj, callbackMethod);
return(true);
}
static function load(options) {
var _local13 = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = _parseOptions(options, _local13);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local9 = options.clip;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local9._mochiad_loaded) {
return(null);
}
var _local12 = options.depth;
delete options.depth;
var _local6 = _local9.createEmptyMovieClip("_mochiad", _local12);
var _local11 = _getRes(options);
options.res = (_local11[0] + "x") + _local11[1];
options.server = options.server + options.id;
delete options.id;
_local9._mochiad_loaded = true;
var _local4 = _local6.createEmptyMovieClip("_mochiad_ctr", 1);
for (var _local7 in options) {
_local4[_local7] = options[_local7];
}
var _local10 = _local4.server;
delete _local4.server;
var _local14 = _allowDomains(_local10);
_local6.onEnterFrame = function () {
if (this._mochiad_ctr._url != this._url) {
this.onEnterFrame = function () {
if (!this._mochiad_ctr) {
delete this.onEnterFrame;
MochiAd.unload(this._parent);
}
};
}
};
var _local5 = new LocalConnection();
var _local8 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local5.mc = _local6;
_local5.name = _local8;
_local5.hostname = _local14;
_local5.allowDomain = function (d) {
return(true);
};
_local5.allowInsecureDomain = _local5.allowDomain;
_local5.connect(_local8);
_local6.lc = _local5;
_local4.lc = _local8;
_local4.st = getTimer();
_local4.loadMovie(_local10 + ".swf", "POST");
return(_local6);
}
static function unload(clip) {
if (typeof(clip) == "undefined") {
clip = _root;
}
if (clip.clip && (clip.clip._mochiad)) {
clip = clip.clip;
}
if (!clip._mochiad) {
return(false);
}
clip._mochiad.removeMovieClip();
delete clip._mochiad_loaded;
delete clip._mochiad;
return(true);
}
static function _isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function _getRes(options) {
var _local3 = options.clip.getBounds();
var _local2 = 0;
var _local1 = 0;
if (typeof(options.res) != "undefined") {
var _local4 = options.res.split("x");
_local2 = parseFloat(_local4[0]);
_local1 = parseFloat(_local4[1]);
} else {
_local2 = _local3.xMax - _local3.xMin;
_local1 = _local3.yMax - _local3.yMin;
}
if ((_local2 == 0) || (_local1 == 0)) {
_local2 = Stage.width;
_local1 = Stage.height;
}
return([_local2, _local1]);
}
static function _parseOptions(options, defaults) {
var _local4 = {};
for (var _local8 in defaults) {
_local4[_local8] = defaults[_local8];
}
if (options) {
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
}
if (_root.mochiad_options) {
var _local5 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local5.length) {
var _local3 = _local5[_local2].split("=");
_local4[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
return(_local4);
}
}
Symbol 8 MovieClip Frame 1
stop();
Symbol 15 MovieClip Frame 50
stop();
Symbol 15 MovieClip Frame 60
stop();
Symbol 15 MovieClip Frame 70
stop();
Symbol 41 MovieClip Frame 635
_root.gotoAndStop("start");
Symbol 56 MovieClip Frame 1
stop();
Symbol 60 MovieClip Frame 1
stop();
Symbol 60 MovieClip Frame 9
stop();
Symbol 60 MovieClip Frame 10
_root.textbox = "Hans: ...";
Symbol 60 MovieClip Frame 19
stop();
Symbol 60 MovieClip Frame 20
_root.textbox = "Hans: So you need access trough the mountains huh!? Well then you'll need the access key, the problem is that I lost it somewhere in town, if you find it you are free to keep it.";
Symbol 60 MovieClip Frame 29
stop();
Symbol 60 MovieClip Frame 30
_root.textbox = "Hans: Take caution in the mountains, there are reasons the place is locked up.";
Symbol 60 MovieClip Frame 39
stop();
Symbol 61 MovieClip Frame 1
stop();
Symbol 61 MovieClip Frame 9
stop();
Symbol 61 MovieClip Frame 10
_root.textbox = "Mayor: Welcome to Agyta! What? The expedition camp? Just follow the road outside town.";
Symbol 61 MovieClip Frame 19
stop();
Symbol 61 MovieClip Frame 20
_root.textbox = "Mayor: The canyon is blocked!? This is not good, there is only one way to get to the camp now, talk to Hans if you want to know more.";
Symbol 61 MovieClip Frame 29
_root.canyonblocked = 2;
stop();
Symbol 61 MovieClip Frame 30
_root.textbox = "Mayor: Best of luck with your journey.";
Symbol 61 MovieClip Frame 39
stop();
Symbol 94 MovieClip Frame 1
stop();
Symbol 94 MovieClip Frame 2
stop();
Symbol 94 MovieClip Frame 3
stop();
Symbol 94 MovieClip Frame 4
stop();
Symbol 94 MovieClip Frame 5
stop();
Instance of Symbol 84 MovieClip in Symbol 94 MovieClip Frame 5
onClipEvent (enterFrame) {
if (!Key.isDown(40)) {
_root.player.gotoAndStop(1);
}
}
Symbol 94 MovieClip Frame 6
stop();
Instance of Symbol 87 MovieClip in Symbol 94 MovieClip Frame 6
onClipEvent (enterFrame) {
if (!Key.isDown(38)) {
_root.player.gotoAndStop(2);
}
}
Symbol 94 MovieClip Frame 7
stop();
Instance of Symbol 90 MovieClip in Symbol 94 MovieClip Frame 7
onClipEvent (enterFrame) {
if (!Key.isDown(39)) {
_root.player.gotoAndStop(3);
}
}
Symbol 94 MovieClip Frame 8
stop();
Instance of Symbol 93 MovieClip in Symbol 94 MovieClip Frame 8
onClipEvent (enterFrame) {
if (!Key.isDown(37)) {
_root.player.gotoAndStop(4);
}
}
Symbol 201 MovieClip Frame 1
stop();
Symbol 201 MovieClip Frame 11
trace("cave1button1 = 0");
_root.cave1button1 = 0;
stop();
Symbol 201 MovieClip Frame 21
_root.cave1button1 = 1;
trace("cave1button1 = 1");
stop();
Symbol 202 MovieClip Frame 1
stop();
Symbol 202 MovieClip Frame 11
trace("cave1button2 = 0");
_root.cave1button2 = 0;
stop();
Symbol 202 MovieClip Frame 21
_root.cave1button2 = 1;
trace("cave1button2 = 1");
stop();
Symbol 203 MovieClip Frame 1
stop();
Symbol 203 MovieClip Frame 11
trace("cave1button3 = 0");
_root.cave1button3 = 0;
stop();
Symbol 203 MovieClip Frame 21
_root.cave1button3 = 1;
trace("cave1button3 = 1");
stop();
Symbol 204 MovieClip Frame 1
stop();
Symbol 204 MovieClip Frame 11
trace("cave1button4 = 0");
_root.cave1button4 = 0;
stop();
Symbol 204 MovieClip Frame 21
_root.cave1button4 = 1;
trace("cave1button4 = 1");
stop();
Symbol 222 MovieClip Frame 1
stop();
Symbol 222 MovieClip Frame 11
stop();
Symbol 222 MovieClip Frame 21
stop();
Symbol 279 MovieClip Frame 1
stop();
Symbol 279 MovieClip Frame 11
trace("cave2button1 = 0");
_root.cave2button1 = 0;
stop();
Symbol 279 MovieClip Frame 21
_root.cave2button1 = 1;
trace("cave2button1 = 1");
stop();
Symbol 282 MovieClip Frame 1
stop();
Symbol 282 MovieClip Frame 11
trace("cave2button2 = 0");
_root.cave2button2 = 0;
stop();
Symbol 282 MovieClip Frame 21
_root.cave2button2 = 1;
trace("cave2button2 = 1");
stop();
Symbol 296 MovieClip Frame 1
stop();
Symbol 296 MovieClip Frame 11
trace("cave2button3 = 0");
_root.cave2button3 = 0;
stop();
Symbol 296 MovieClip Frame 21
_root.cave2button3 = 1;
trace("cave2button3 = 1");
stop();
Symbol 297 MovieClip Frame 1
stop();
Symbol 297 MovieClip Frame 11
trace("cave2button4 = 0");
_root.cave2button4 = 0;
stop();
Symbol 297 MovieClip Frame 21
_root.cave2button4 = 1;
trace("cave2button4 = 1");
stop();
Symbol 310 MovieClip Frame 1
stop();
Symbol 310 MovieClip Frame 11
trace("cave2button5 = 0");
_root.cave2button5 = 0;
stop();
Symbol 310 MovieClip Frame 21
_root.cave2button5 = 1;
trace("cave2button5 = 1");
stop();
Symbol 311 MovieClip Frame 1
stop();
Symbol 311 MovieClip Frame 11
trace("cave2button6 = 0");
_root.cave2button6 = 0;
stop();
Symbol 311 MovieClip Frame 21
_root.cave2button6 = 1;
trace("cave2button6 = 1");
stop();
Symbol 312 MovieClip Frame 9
stop();
Symbol 312 MovieClip Frame 10
Symbol 312 MovieClip Frame 19
stop();
Symbol 312 MovieClip Frame 29
stop();
Symbol 312 MovieClip Frame 30
Symbol 312 MovieClip Frame 39
stop();
Symbol 312 MovieClip Frame 49
stop();
Symbol 329 MovieClip Frame 1
stop();
Symbol 329 MovieClip Frame 11
trace("cave2button7 = 0");
_root.cave2button7 = 0;
stop();
Symbol 329 MovieClip Frame 21
_root.cave2button7 = 1;
trace("cave2button7 = 1");
stop();
Symbol 330 MovieClip Frame 1
stop();
Symbol 330 MovieClip Frame 11
trace("cave2button8 = 0");
_root.cave2button8 = 0;
stop();
Symbol 330 MovieClip Frame 21
_root.cave2button8 = 1;
trace("cave2button8 = 1");
stop();
Symbol 355 MovieClip Frame 9
stop();
Symbol 355 MovieClip Frame 10
Symbol 355 MovieClip Frame 19
stop();
Symbol 355 MovieClip Frame 29
stop();
Symbol 355 MovieClip Frame 30
Symbol 355 MovieClip Frame 39
stop();
Symbol 355 MovieClip Frame 49
stop();
Symbol 358 MovieClip Frame 9
stop();
Symbol 358 MovieClip Frame 10
Symbol 358 MovieClip Frame 19
stop();
Symbol 358 MovieClip Frame 29
stop();
Symbol 358 MovieClip Frame 30
Symbol 358 MovieClip Frame 39
stop();
Symbol 358 MovieClip Frame 49
stop();
Symbol 359 MovieClip Frame 9
stop();
Symbol 359 MovieClip Frame 10
Symbol 359 MovieClip Frame 19
stop();
Symbol 359 MovieClip Frame 29
stop();
Symbol 359 MovieClip Frame 30
Symbol 359 MovieClip Frame 39
stop();
Symbol 359 MovieClip Frame 49
stop();
Symbol 360 MovieClip Frame 9
stop();
Symbol 360 MovieClip Frame 10
Symbol 360 MovieClip Frame 19
stop();
Symbol 360 MovieClip Frame 29
stop();
Symbol 360 MovieClip Frame 30
Symbol 360 MovieClip Frame 39
stop();
Symbol 360 MovieClip Frame 49
stop();
Symbol 375 MovieClip Frame 1
stop();
Symbol 375 MovieClip Frame 30
_root.hp = _root.maxhp;
_root.textbox = "Zzzzzz..";
Symbol 375 MovieClip Frame 96
_root.textbox = "Indy:We are under attack!!! RUN!";
Symbol 375 MovieClip Frame 135
_root.textbox = "Indy:Aaarggh!";
Symbol 375 MovieClip Frame 165
_root.gotoAndStop("cutscenecamp");
stop();
Symbol 386 MovieClip Frame 100
_root.gotoAndStop("map20");
Symbol 410 MovieClip Frame 60
_root.textbox = "Girl: You, you're the delivery guy...";
stop();
Symbol 410 MovieClip Frame 61
_root.textbox = "Limith: My name is Limith, are you okay?";
Symbol 410 MovieClip Frame 85
stop();
Symbol 410 MovieClip Frame 86
_root.textbox = "Limith: My name is Limith, are you okay?";
Symbol 410 MovieClip Frame 110
stop();
Symbol 410 MovieClip Frame 111
_root.textbox = "Lina: I'm Lina and I was so scared so I ran,... what about the others?";
Symbol 410 MovieClip Frame 135
stop();
Symbol 410 MovieClip Frame 136
_root.textbox = "Limith: I'm sorry ...";
Symbol 410 MovieClip Frame 160
stop();
Symbol 410 MovieClip Frame 161
_root.textbox = "Lina: ...";
Symbol 410 MovieClip Frame 185
stop();
Symbol 410 MovieClip Frame 186
_root.textbox = "Limith: We have to keep moving, if we don't they will catch up with us.";
Symbol 410 MovieClip Frame 210
stop();
Symbol 410 MovieClip Frame 211
_root.textbox = "Lina: Ok, the town should be south from here, we have to warn them.";
Symbol 410 MovieClip Frame 235
stop();
Symbol 410 MovieClip Frame 236
_root.textbox = "Limith: Ok let's go...";
_root.lina.gotoAndPlay(2);
Symbol 410 MovieClip Frame 300
_root.gotoAndStop("map22");
stop();
Symbol 414 MovieClip Frame 1
stop();
Symbol 414 MovieClip Frame 2
stop();
Symbol 425 MovieClip Frame 100
_root.textbox = "End of chapter 1!\nTo be continued";
stop();
Instance of Symbol 84 MovieClip in Symbol 425 MovieClip Frame 100
/* no clip actions */
Symbol 425 MovieClip Frame 101
_root.gotoAndPlay("preloader");
Symbol 426 MovieClip Frame 100
stop();
Symbol 468 MovieClip Frame 20
_root.textbox = "Limith: There are so many!! I have got to get out of here!";
Symbol 468 MovieClip Frame 79
_root.gotoAndStop("map19");
stop();
Symbol 478 MovieClip Frame 1
stop();
Symbol 492 MovieClip Frame 1
stop();
Symbol 492 MovieClip Frame 25
_root.hit = (random(5) + _root.mobattack) - _root.defense;
if (_root.hit < 1) {
_root.hit = 1;
}
_root.hp = _root.hp - _root.hit;
_root.textbox = ("The enemy deals " + _root.hit) + " damage you!";
trace("enemie attackedz");
trace(_root.hit);
Symbol 492 MovieClip Frame 30
if (_root.hp < 1) {
_root.playerbattle.gotoAndPlay("dead");
_root.battlemenu.gotoAndStop(2);
trace("you died lal");
stop();
} else {
this.gotoAndStop(1);
_root.battlemenu.gotoAndStop(1);
trace("end combat phase");
stop();
}
Symbol 492 MovieClip Frame 70
_root.battlemenu.gotoAndStop(2);
_root.textbox = "The enemy is defeated!";
trace("mob dies");
Symbol 492 MovieClip Frame 90
_root.black.gotoAndPlay(2);
stop();
Symbol 503 MovieClip Frame 12
this.gotoAndPlay(1);
Symbol 503 MovieClip Frame 40
_root.hit = (random(5) + 1) + _root.attack;
_root.mobhp = _root.mobhp - _root.hit;
_root.textbox = ("You deal " + _root.hit) + " damage to the enemy!";
trace(_root.hit);
trace(_root.mobhp);
Symbol 503 MovieClip Frame 51
if (_root.mobhp <= 0) {
_root.mob.gotoAndPlay(70);
} else {
_root.mob.gotoAndPlay(20);
}
this.gotoAndPlay(1);
Symbol 503 MovieClip Frame 60
_root.textbox = "You attempt to dodge!";
_root.dodge = random(5);
trace("startdodge");
trace(_root.dodge);
Symbol 503 MovieClip Frame 70
if (_root.dodge == 0) {
_root.textbox = "You fail to dodge!";
} else {
_root.textbox = "You dodge succesfully!";
}
Symbol 503 MovieClip Frame 85
if (_root.dodge == 0) {
_root.mob.gotoAndPlay(20);
} else {
_root.battlemenu.gotoAndStop(1);
trace("end combat phase");
}
this.gotoAndPlay(1);
Symbol 503 MovieClip Frame 110
_root.hit = (((random(3) + 3) + _root.attack) * 3) + random(4);
_root.mobhp = _root.mobhp - _root.hit;
_root.textbox = ("You deal " + _root.hit) + " damage to the enemy!";
trace(_root.hit);
trace(_root.mobhp);
Symbol 503 MovieClip Frame 135
if (_root.mobhp <= 0) {
_root.mob.gotoAndPlay(70);
} else {
_root.mob.gotoAndPlay(20);
}
this.gotoAndPlay(1);
Symbol 503 MovieClip Frame 155
if (_root.mobhp <= 0) {
_root.mob.gotoAndPlay(70);
} else {
_root.mob.gotoAndPlay(20);
}
this.gotoAndPlay(1);
Symbol 503 MovieClip Frame 200
_root.black.gotoAndPlay(2);
stop();
Symbol 509 MovieClip Frame 1
stop();
Symbol 509 MovieClip Frame 2
stop();
Symbol 512 MovieClip Frame 1
stop();
Symbol 512 MovieClip Frame 2
stop();
Symbol 515 MovieClip Frame 1
stop();
Symbol 515 MovieClip Frame 2
stop();
Symbol 518 MovieClip Frame 1
stop();
Symbol 518 MovieClip Frame 2
stop();
Symbol 519 MovieClip Frame 1
stop();
Symbol 519 MovieClip Frame 2
stop();
Symbol 521 MovieClip Frame 1
stop();
Symbol 521 MovieClip Frame 20
if (_root.mobhp <= 0) {
_root["mob" + _root.mobnumber] = 1;
trace(_root.mob[_root.mobnumber]);
trace(_root.savedx);
trace(_root.savedy);
_root.gotoAndStop(_root.savedmap);
} else {
_root.gotoAndStop("gameover");
}
stop();
Symbol 540 MovieClip Frame 1
stop();
Symbol 540 MovieClip Frame 43
_root.hit = (random(5) + _root.mobattack) - _root.defense;
if (_root.hit < 1) {
_root.hit = 1;
}
_root.hp = _root.hp - _root.hit;
_root.textbox = ("The enemy deals " + _root.hit) + " damage you!";
trace("enemie attackedz");
trace(_root.hit);
Symbol 540 MovieClip Frame 65
if (_root.hp < 1) {
_root.playerbattle.gotoAndPlay("dead");
_root.battlemenu.gotoAndStop(2);
trace("you died lal");
stop();
} else {
this.gotoAndStop(1);
_root.battlemenu.gotoAndStop(1);
trace("end combat phase");
stop();
}
Symbol 540 MovieClip Frame 70
_root.battlemenu.gotoAndStop(2);
_root.textbox = "The enemy is defeated!";
trace("mob dies");
Symbol 540 MovieClip Frame 90
_root.black.gotoAndPlay(2);
stop();
Symbol 570 MovieClip Frame 1
stop();
Symbol 570 MovieClip Frame 41
_root.hit = (random(10) + _root.mobattack) - _root.defense;
if (_root.hit < 1) {
_root.hit = 1;
}
_root.hp = _root.hp - _root.hit;
_root.textbox = ("The enemy deals " + _root.hit) + " damage you!";
trace("enemie attackedz");
trace(_root.hit);
Symbol 570 MovieClip Frame 54
if (_root.hp < 1) {
_root.playerbattle.gotoAndPlay("dead");
_root.battlemenu.gotoAndStop(2);
trace("you died lal");
stop();
} else {
this.gotoAndStop(1);
_root.battlemenu.gotoAndStop(1);
trace("end combat phase");
stop();
}
Symbol 570 MovieClip Frame 70
_root.battlemenu.gotoAndStop(2);
_root.textbox = "The enemy is defeated!";
trace("mob dies");
Symbol 570 MovieClip Frame 90
_root.black.gotoAndPlay(2);
stop();