Frame 1
NewgroundsAPI.connectMovie(1976);
var NoMenu = new ContextMenu();
NoMenu.hideBuiltInItems();
this.menu = NoMenu;
_root.savefile = SharedObject.getLocal("GeoLandRPG");
_root.GameMenu = 0;
stop();
Instance of Symbol 54 MovieClip "CURSOR" in Frame 1
onClipEvent (load) {
startDrag ("_root.CURSOR", true);
Mouse.hide();
}
Frame 2
if (_root.GameMenu == 1) {
_root.PlayMenu.gotoAndStop(101);
}
stop();
Frame 3
_root.GameMenu = 1;
stop();
Frame 4
_root.GameMenu = 1;
stop();
Frame 5
_root.GameMenu = 1;
stop();
Frame 6
_root.GameMenu = 1;
_root.Name = "Sphar";
_root.StatPoints = 5;
_root.strenth = 0;
_root.defense = 0;
_root.force = 0;
_root.warning = "";
stop();
Instance of Symbol 54 MovieClip "CURSOR" in Frame 6
onClipEvent (load) {
startDrag ("_root.CURSOR", true);
Mouse.hide();
}
Frame 7
_root.gLevel = 1;
_root.PTS = PTS;
_root.SPW.gStatPoints = _root.PTS;
_root.STR = STR;
_root.SPW.gstrenth = _root.STR;
_root.arraySTRBONUS = new Array(0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1);
_root.DEF = DEF;
_root.arrayDEFBONUS = new Array(0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1);
_root.SPW.gdefense = _root.DEF;
_root.FRC = FRC;
_root.arrayFRCBONUS = new Array(0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1);
_root.SPW.gforce = _root.FRC;
_root.Emplacement = 0;
_root.Position = -1;
_root.SPosition = 0;
_root.HP = 50;
_root.arrayHP = new Array(50, 60, 75, 90, 110, 130, 150, 180, 210, 250);
_root.onHP = _root.HP + (_root.HP * _root.arrayDEFBONUS[DEF]);
_root.gHP = _root.onHP;
_root.MP = 50;
_root.arrayMP = new Array(50, 55, 60, 70, 80, 100, 120, 140, 170, 200);
_root.onMP = Math.round(_root.MP + (_root.MP * _root.arrayFRCBONUS[_root.FRC]));
_root.gMP = _root.onMP;
_root.arrayEXP = new Array(20, 50, 100, 180, 280, 400, 550, 700, 900, "X");
_root.onEXP = 50;
_root.gEXP = 0;
_root.arrayARMBONUS = new Array(0, 0, 0.12, 0.14, 0.17, 0.2, 0.24, 0.28, 0.33, 0.4, 0.5);
_root.arrayATK = new Array(5, 9, 13, 18, 23, 28, 35, 42, 51, 60);
_root.arrayATKRANGE = new Array(4, 5, 6, 8, 10, 12, 13, 15, 18, 20);
_root.IntroQuest = 0;
_root.LetterQuest = 0;
_root.MayorQuest = 0;
_root.KillingQuest = 0;
_root.FinalQuest = 0;
_root.InvestigationQuest = 0;
_root.FindingQuest = 0;
_root.APPLE = 2;
_root.CHOCOLATE = 0;
_root.VITAMIN = 0;
_root.VITAMINX = 0;
_root.BULLEYE = 0;
_global.EnemyBattle;
_root.ComputerON = 0;
_root.Death = 0;
_root.gGold = 5;
_root.arraySWITCH = new Array(0, 0);
Instance of Symbol 54 MovieClip "CURSOR" in Frame 7
onClipEvent (load) {
startDrag ("_root.CURSOR", true);
Mouse.hide();
}
Frame 8
if ((_root.Position != 2) && (_root.Position != -1)) {
stopAllSounds();
_root.Town.gotoAndStop(2);
_root.House.gotoAndStop(1);
_root.Overworld.gotoAndStop(1);
_root.Shop.gotoAndStop(1);
_root.Cavern.gotoAndStop(1);
_root.CasinoMusique.gotoAndStop(1);
}
_root.FadeOut.gotoAndPlay(2);
_root.world.WorldTotal.gotoAndStop(1);
_root.SpawnClip.gotoAndStop(1);
if (_root.Position == -1) {
_root.Town.gotoAndStop(2);
_root.House.gotoAndStop(1);
_root.Overworld.gotoAndStop(1);
_root.Shop.gotoAndStop(1);
_root.Cavern.gotoAndStop(1);
_root.CasinoMusique.gotoAndStop(1);
_root.world.WorldTotal.gotoAndStop(2);
_root.TextBox.gotoAndStop(2);
_root.TextBox.MSG = "Tips\rIn your house you can recover hp by clicking on the bed and save your game by clicking on the computer.";
_root.player._x = 474;
_root.player._y = 200;
} else if (_root.Position == 0) {
_root.player._x = 474;
_root.player._y = 200;
} else if (_root.Position == 1) {
_root.player._x = 190;
_root.player._y = 200;
} else if (_root.Position == 2) {
_root.player._x = 580;
_root.player._y = _root.PlayerY._y;
if (_root.player._y > 304) {
_root.player._y = 295;
}
}
stop();
Instance of Symbol 347 MovieClip in Frame 8
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.Emplacement = 3;
_root.Position = 1;
_root.PlayerY = _root.player._y;
_root.FadeIn.play();
}
}
Instance of Symbol 349 MovieClip "LetterNO1" in Frame 8
onClipEvent (enterFrame) {
if ((_root.arrayLETTER[0] == 0) && (_root.LetterQuest == 1)) {
_root.LetterNO1.gotoAndStop(2);
} else {
_root.LetterNO1.gotoAndStop(1);
}
}
on (release) {
if (this.hitTest(_root.player)) {
_root.arrayLETTER[0] = 1;
_root.LetterQuestNB++;
_root.TextBox.gotoAndStop(2);
_root.TextBox.MSG = "You found a letter!";
}
}
on (rollOver) {
_root.LetterNO1.useHandCursor = false;
}
Instance of Symbol 359 MovieClip "player" in Frame 8
onClipEvent (enterFrame) {
if (Key.isDown(82)) {
_root.SPW._x = 382;
_root.SPW._y = 18;
} else {
_root.SPW._x = 1000;
_root.SPW._y = -1000;
}
}
onClipEvent (enterFrame) {
if (Key.isDown(69)) {
_root.BackPack._x = 140;
_root.BackPack._y = 168;
} else {
_root.BackPack._x = 1000;
_root.BackPack._y = -1000;
}
}
onClipEvent (enterFrame) {
if (Key.isDown(81)) {
_root.QuestLog._x = 66;
_root.QuestLog._y = 150;
} else {
_root.QuestLog.CURRENTLY = "";
_root.QuestLog._x = 1000;
_root.QuestLog._y = -1000;
}
}
onClipEvent (enterFrame) {
_root.SPW.gStatPoints = _root.PTS;
_root.SPW.gstrenth = _root.STR;
_root.SPW.gdefense = _root.DEF;
_root.SPW.gforce = _root.FRC;
_root.HP = _root.arrayHP[_root.gLevel - 1];
_root.onHP = Math.round(_root.HP + (_root.HP * _root.arrayDEFBONUS[_root.DEF]));
_root.MP = _root.arrayMP[_root.gLevel - 1];
_root.onMP = Math.round(_root.MP + (_root.MP * _root.arrayFRCBONUS[_root.FRC]));
_root.onEXP = _root.arrayEXP[_root.gLevel - 1];
if (_root.onEXP == "X") {
_root.gEXP = "X";
}
_root.ATK = _root.arrayATK[_root.gLevel - 1];
}
onClipEvent (enterFrame) {
_root.BackPack.AppleItem.gAPPLE = _root.APPLE;
_root.BackPack.ChocolateItem.gCHOCOLATE = _root.CHOCOLATE;
_root.BackPack.VitaminItem.gVITAMIN = _root.VITAMIN;
_root.BackPack.VitaminxItem.gVITAMINX = _root.VITAMINX;
_root.BackPack.BullEyeItem.gBULLEYE = _root.BULLEYE;
}
onClipEvent (load) {
function checkHorizon() {
if (Key.isDown(65)) {
var _local2 = 0;
while (_local2 < speedX) {
_x = (_x - 1.3);
if (_root.world.hitTest(_x - 8, _y - 2, true)) {
_local2 = speedX;
_x = (_x + 1.3);
}
_local2++;
}
}
if (Key.isDown(68)) {
var _local2 = 0;
while (_local2 < speedX) {
_x = (_x + 1.3);
if (_root.world.hitTest(_x + 8, _y - 2, true)) {
_local2 = speedX;
_x = (_x - 1.3);
}
_local2++;
}
}
if (Key.isDown(83)) {
var _local2 = 0;
while (_local2 < speedY) {
_y = (_y + 1.3);
if (_root.world.hitTest(_x + 8, _y - 2, true)) {
_local2 = speedY;
_y = (_y - 1.3);
}
_local2++;
}
}
if (Key.isDown(87)) {
var _local2 = 0;
while (_local2 < speedY) {
_y = (_y - 1.3);
if (_root.world.hitTest(_x + 8, _y - 2, true)) {
_local2 = speedY;
_y = (_y + 1.3);
}
_local2++;
}
}
}
speedY = 5;
speedX = 5;
}
onClipEvent (enterFrame) {
checkHorizon();
}
Frame 9
stopAllSounds();
_root.Town.gotoAndStop(1);
_root.House.gotoAndStop(2);
_root.Overworld.gotoAndStop(1);
_root.Shop.gotoAndStop(1);
_root.Cavern.gotoAndStop(1);
_root.CasinoMusique.gotoAndStop(1);
_root.FadeOut.gotoAndPlay(2);
_root.world.WorldTotal.gotoAndStop(1);
_root.SpawnClip.gotoAndStop(1);
_root.SPosition = 0;
if ((_root.Death == 1) && (_root.ComputerON == 0)) {
_root.world.WorldTotal.gotoAndStop(2);
_root.player._x = 98;
_root.player._y = 124;
_root.FadeInOut.play();
_root.Death = 0;
} else if ((_root.Death == 0) && (_root.ComputerON == 0)) {
_root.player._x = 165;
_root.player._y = 360;
} else {
_root.player._x = _root.PlayerX;
_root.player._y = _root.PlayerY;
}
if (_root.ComputerON == 1) {
_root.world.WorldTotal.gotoAndStop(2);
_root.SaveScreen.gotoAndStop(128);
_root.Decor.Computer.gotoAndStop(2);
_root.gHP = _root.onHP;
_root.gMP = _root.onMP;
_root.Death = 0;
_root.player._x = 220;
_root.player._y = 114;
}
stop();
Instance of Symbol 404 MovieClip in Frame 9
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.Door.play();
_root.Death = 0;
_root.Emplacement = 0;
_root.Position = 0;
_root.FadeIn.play();
}
}
Frame 10
stopAllSounds();
_root.Town.gotoAndStop(1);
_root.House.gotoAndStop(2);
_root.Overworld.gotoAndStop(1);
_root.Shop.gotoAndStop(1);
_root.Cavern.gotoAndStop(1);
_root.CasinoMusique.gotoAndStop(1);
_root.FadeOut.gotoAndPlay(2);
_root.world.WorldTotal.gotoAndStop(1);
_root.SpawnClip.gotoAndStop(1);
_root.player._x = 165;
_root.player._y = 360;
stop();
Instance of Symbol 404 MovieClip in Frame 10
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.Emplacement = 0;
_root.FadeIn.play();
}
}
Instance of Symbol 404 MovieClip in Frame 10
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.Door.play();
_root.Emplacement = 0;
_root.Position = 1;
_root.FadeIn.play();
}
}
Frame 11
if (((_root.SPosition == 1000) || (_root.Position == 3)) || (_root.Position == 4)) {
stopAllSounds();
_root.Town.gotoAndStop(2);
_root.House.gotoAndStop(1);
_root.Overworld.gotoAndStop(1);
_root.Shop.gotoAndStop(1);
_root.Cavern.gotoAndStop(1);
_root.CasinoMusique.gotoAndStop(1);
}
_root.FadeOut.gotoAndPlay(2);
_root.world.WorldTotal.gotoAndStop(1);
_root.SpawnClip.gotoAndStop(1);
_root.Battle = 0;
if (Position == 1) {
_root.player._x = 20;
_root.player._y = _root.PlayerY;
} else if (Position == 2) {
_root.player._x = 580;
_root.player._y = _root.PlayerY;
} else if (Position == 3) {
_root.player._x = _root.PlayerX;
_root.player._y = 380;
} else if (Position == 4) {
_root.player._x = 297;
_root.player._y = 132;
} else if (SPosition == 1000) {
_root.IntroQuest = 2;
SPosition = 0;
_root.player._x = _root.PlayerX;
_root.player._y = _root.PlayerY;
}
if (_root.IntroQuest == 0) {
_root.TrioAngle00.gotoAndStop(2);
} else if (_root.IntroQuest == 1) {
_root.TrioAngle00.gotoAndStop(1);
_root.world.gotoAndStop(2);
} else if (_root.IntroQuest == 2) {
_root.TrioAngle00.gotoAndStop(2);
_root.world.gotoAndStop(2);
}
if (_root.LetterQuest == 2) {
_root.world.gotoAndStop(3);
}
stop();
Instance of Symbol 347 MovieClip in Frame 11
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
if (_root.IntroQuest == 0) {
_root.IntroQuest = 1;
}
_root.Emplacement = 4;
_root.Position = 1;
_root.PlayerY = _root.player._y;
_root.FadeIn.play();
}
}
Instance of Symbol 347 MovieClip in Frame 11
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.Emplacement = 0;
_root.Position = 2;
_root.PlayerY = _root.player._y;
_root.FadeIn.play();
}
}
Instance of Symbol 347 MovieClip in Frame 11
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
if (_root.IntroQuest == 0) {
_root.TextBoxDis.gotoAndStop(2);
_root.TextBoxDis.MSG = "I don't think its a good idea.";
} else if (_root.IntroQuest == 1) {
_root.TextBoxDis.gotoAndStop(2);
_root.TextBoxDis.MSG = "Kill it! Kill it!";
} else if (_root.IntroQuest == 2) {
_root.Position = 1;
_root.Emplacement = 6;
_root.PlayerX = _root.player._x;
_root.FadeIn.play();
}
} else {
_root.TextBoxDis.gotoAndStop(1);
}
}
Instance of Symbol 349 MovieClip "LetterNO2" in Frame 11
onClipEvent (enterFrame) {
if ((_root.arrayLETTER[1] == 0) && (_root.LetterQuest == 1)) {
_root.LetterNO2.gotoAndStop(2);
} else {
_root.LetterNO2.gotoAndStop(1);
}
}
on (release) {
if (this.hitTest(_root.player)) {
_root.arrayLETTER[1] = 1;
_root.LetterQuestNB++;
_root.TextBox.gotoAndStop(2);
_root.TextBox.MSG = "You found a letter!";
}
}
on (rollOver) {
_root.LetterNO2.useHandCursor = false;
}
Instance of Symbol 426 MovieClip "TrioAngle00" in Frame 11
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.Battle == 0)) {
stopAllSounds();
_root.Battle = 1;
_root.NoRunBattle = 1;
_root.EnemyBattle = 1;
_root.Position = 0;
_root.SPosition = 1000;
_root.PlayerY = _root.player._y;
_root.PlayerX = _root.player._x;
_root.FadeIn2.play();
}
}
Frame 12
if (_root.Position != 1) {
stopAllSounds();
_root.Town.gotoAndStop(2);
_root.House.gotoAndStop(1);
_root.Overworld.gotoAndStop(1);
_root.Shop.gotoAndStop(1);
_root.Cavern.gotoAndStop(1);
_root.CasinoMusique.gotoAndStop(1);
}
_root.FadeOut.gotoAndPlay(2);
_root.world.WorldTotal.gotoAndStop(1);
_root.SpawnClip.gotoAndStop(1);
if (_root.Position == 1) {
_root.player._x = 20;
_root.player._y = _root.PlayerY;
} else if (_root.Position == 2) {
_root.player._x = 473;
_root.player._y = 346;
}
stop();
Instance of Symbol 347 MovieClip in Frame 12
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.Emplacement = 3;
_root.Position = 2;
_root.PlayerY = _root.player._y;
_root.FadeIn.play();
}
}
Instance of Symbol 434 MovieClip "world" in Frame 12
onClipEvent (enterFrame) {
if (_root.world.Door01.hitTest(_root.player) || (_root.world.Door02.hitTest(_root.player))) {
_root.TextBoxDis.gotoAndStop(2);
_root.TextBoxDis.MSG = "It's Locked.";
} else {
_root.TextBoxDis.gotoAndStop(1);
}
}
Frame 13
stopAllSounds();
_root.Town.gotoAndStop(1);
_root.House.gotoAndStop(1);
_root.Overworld.gotoAndStop(1);
_root.Shop.gotoAndStop(2);
_root.Cavern.gotoAndStop(1);
_root.CasinoMusique.gotoAndStop(1);
_root.FadeOut.gotoAndPlay(2);
_root.world.WorldTotal.gotoAndStop(1);
_root.SpawnClip.gotoAndStop(1);
_root.player._x = 165;
_root.player._y = 360;
stop();
Instance of Symbol 404 MovieClip in Frame 13
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.Door.play();
_root.Emplacement = 4;
_root.Position = 2;
_root.FadeIn.play();
}
}
Instance of Symbol 404 MovieClip "STShop" in Frame 13
on (release) {
if (this.hitTest(_root.player)) {
_root.ItemShop.gotoAndStop(2);
_root.world.WorldTotal.gotoAndStop(2);
}
}
on (rollOver) {
_root.STShop.useHandCursor = false;
}
Instance of Symbol 475 MovieClip "ItemShop" in Frame 13
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_root.ItemShop.gotoAndStop(1);
_root.world.WorldTotal.gotoAndStop(1);
}
}
Frame 14
if ((Position == 1) || (SPosition == 1001)) {
stopAllSounds();
_root.Town.gotoAndStop(1);
_root.House.gotoAndStop(1);
_root.Overworld.gotoAndStop(2);
_root.Shop.gotoAndStop(1);
_root.Cavern.gotoAndStop(1);
_root.CasinoMusique.gotoAndStop(1);
}
_root.FadeOut.gotoAndPlay(2);
_root.world.WorldTotal.gotoAndStop(1);
_root.SpawnClip.play();
if (SPosition == 1001) {
_root.player._x = _root.PlayerX;
_root.player._y = _root.PlayerY;
_root.SPosition = 0;
} else if (Position == 3) {
_root.player._x = 580;
_root.player._y = _root.PlayerY;
} else if (Position == 2) {
_root.player._x = 20;
_root.player._y = _root.PlayerY;
} else if (Position == 1) {
_root.player._x = _root.PlayerX;
_root.player._y = 40;
}
stop();
Instance of Symbol 347 MovieClip in Frame 14
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.Emplacement = 3;
_root.Position = 3;
_root.PlayerX = _root.player._x;
_root.FadeIn.play();
}
}
Instance of Symbol 347 MovieClip in Frame 14
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
if (_root.SPosition == 0) {
_root.Position = 1;
_root.Emplacement = 7;
_root.PlayerY = _root.player._y;
_root.FadeIn.play();
}
}
}
Instance of Symbol 347 MovieClip in Frame 14
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
if (_root.SPosition == 0) {
_root.Position = 1;
_root.Emplacement = 10;
_root.PlayerY = _root.player._y;
_root.FadeIn.play();
}
}
}
Instance of Symbol 479 MovieClip in Frame 14
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (((Key.isDown(65) || (Key.isDown(68))) || (Key.isDown(83))) || (Key.isDown(87)))) {
switch (_root.ESpawn) {
case 1 :
case 2 :
case 3 :
stopAllSounds();
_root.SpawnClip.gotoAndStop(1);
_root.ESpawn = 0;
_root.EnemyBattle = 1;
_root.NoRunBattle = 0;
_root.Position = 0;
_root.SPosition = 1001;
_root.PlayerY = _root.player._y;
_root.PlayerX = _root.player._x;
_root.FadeIn2.play();
}
}
}
Frame 15
if (SPosition == 1002) {
stopAllSounds();
_root.Town.gotoAndStop(1);
_root.House.gotoAndStop(1);
_root.Overworld.gotoAndStop(2);
_root.Shop.gotoAndStop(1);
_root.Cavern.gotoAndStop(1);
_root.CasinoMusique.gotoAndStop(1);
}
_root.FadeOut.gotoAndPlay(2);
_root.world.WorldTotal.gotoAndStop(1);
_root.SpawnClip.play();
if (_root.Position == 1) {
_root.player._x = 580;
_root.player._y = _root.PlayerY;
} else if (_root.Position == 2) {
_root.player._x = 20;
_root.player._y = _root.PlayerY;
} else if (_root.SPosition == 1002) {
_root.SPosition = 0;
_root.player._x = _root.PlayerX;
_root.player._y = _root.PlayerY;
}
stop();
Instance of Symbol 347 MovieClip in Frame 15
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
if (_root.SPosition == 0) {
_root.Position = 2;
_root.Emplacement = 6;
_root.PlayerY = _root.player._y;
_root.FadeIn.play();
}
}
}
Instance of Symbol 347 MovieClip in Frame 15
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
if (_root.SPosition == 0) {
_root.Position = 1;
_root.Emplacement = 8;
_root.PlayerY = _root.player._y;
_root.FadeIn.play();
}
}
}
Instance of Symbol 479 MovieClip in Frame 15
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (((Key.isDown(65) || (Key.isDown(68))) || (Key.isDown(83))) || (Key.isDown(87)))) {
switch (_root.ESpawn) {
case 1 :
case 2 :
stopAllSounds();
_root.SpawnClip.gotoAndStop(1);
_root.ESpawn = 0;
_root.EnemyBattle = 1;
_root.NoRunBattle = 0;
_root.Position = 0;
_root.SPosition = 1002;
_root.PlayerY = _root.player._y;
_root.PlayerX = _root.player._x;
_root.FadeIn2.play();
break;
case 3 :
case 4 :
stopAllSounds();
_root.SpawnClip.gotoAndStop(1);
_root.ESpawn = 0;
_root.EnemyBattle = 2;
_root.NoRunBattle = 0;
_root.Position = 0;
_root.SPosition = 1002;
_root.PlayerY = _root.player._y;
_root.PlayerX = _root.player._x;
_root.FadeIn2.play();
}
}
}
Frame 16
if (SPosition == 1003) {
stopAllSounds();
_root.Town.gotoAndStop(1);
_root.House.gotoAndStop(1);
_root.Overworld.gotoAndStop(2);
_root.Shop.gotoAndStop(1);
_root.Cavern.gotoAndStop(1);
_root.CasinoMusique.gotoAndStop(1);
}
_root.FadeOut.gotoAndPlay(2);
_root.world.WorldTotal.gotoAndStop(1);
_root.SpawnClip.play();
if (_root.Position == 1) {
_root.player._x = 580;
_root.player._y = _root.PlayerY;
} else if (_root.Position == 2) {
_root.player._x = _root.PlayerX;
_root.player._y = 30;
} else if (_root.SPosition == 1003) {
_root.SPosition = 0;
_root.player._x = _root.PlayerX;
_root.player._y = _root.PlayerY;
}
if (_root.MayorQuest == 2) {
_root.Decor.gotoAndPlay(2);
_root.world.gotoAndPlay(2);
}
stop();
Instance of Symbol 347 MovieClip in Frame 16
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
if (_root.SPosition == 0) {
_root.Position = 2;
_root.Emplacement = 7;
_root.PlayerY = _root.player._y;
_root.FadeIn.play();
}
}
}
Instance of Symbol 479 MovieClip in Frame 16
onClipEvent (enterFrame) {
if (_root.MayorQuest != 2) {
if (this.hitTest(_root.player) && (((Key.isDown(65) || (Key.isDown(68))) || (Key.isDown(83))) || (Key.isDown(87)))) {
switch (_root.ESpawn) {
case 1 :
case 2 :
stopAllSounds();
_root.SpawnClip.gotoAndStop(1);
_root.ESpawn = 0;
_root.EnemyBattle = 2;
_root.NoRunBattle = 0;
_root.Position = 0;
_root.SPosition = 1003;
_root.PlayerY = _root.player._y;
_root.PlayerX = _root.player._x;
_root.FadeIn2.play();
break;
case 3 :
case 4 :
stopAllSounds();
_root.SpawnClip.gotoAndStop(1);
_root.ESpawn = 0;
_root.EnemyBattle = 3;
_root.NoRunBattle = 0;
_root.Position = 0;
_root.SPosition = 1003;
_root.PlayerY = _root.player._y;
_root.PlayerX = _root.player._x;
_root.FadeIn2.play();
}
}
}
}
Instance of Symbol 347 MovieClip in Frame 16
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
if (_root.SPosition == 0) {
_root.Position = 1;
_root.Emplacement = 9;
_root.PlayerX = _root.player._x;
_root.FadeIn.play();
}
}
}
Frame 17
if (_root.Position == 2) {
stopAllSounds();
_root.Town.gotoAndStop(1);
_root.House.gotoAndStop(1);
_root.Overworld.gotoAndStop(2);
_root.Shop.gotoAndStop(1);
_root.Cavern.gotoAndStop(1);
_root.CasinoMusique.gotoAndStop(1);
}
_root.FadeOut.gotoAndPlay(2);
_root.world.WorldTotal.gotoAndStop(1);
if (_root.Position == 1) {
_root.player._y = 380;
_root.player._x = _root.PlayerX;
} else if (_root.Position == 2) {
_root.player._y = 250;
_root.player._x = _root.PlayerX;
}
stop();
Instance of Symbol 347 MovieClip in Frame 17
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.Position = 2;
_root.Emplacement = 8;
_root.PlayerX = _root.player._x;
_root.FadeIn.play();
}
}
Instance of Symbol 538 MovieClip "CrystalBall" in Frame 17
onClipEvent (enterFrame) {
if (_root.BallFound == 0) {
_root.CrystalBall.gotoAndStop(2);
} else {
_root.CrystalBall.gotoAndStop(1);
}
}
on (release) {
if (this.hitTest(_root.player)) {
_root.BallFound = 1;
_root.TextBox.gotoAndStop(2);
_root.TextBox.MSG = "You found the crystal ball!";
}
}
on (rollOver) {
_root.CrystalBall.useHandCursor = false;
}
Frame 18
if (SPosition == 1004) {
stopAllSounds();
_root.Town.gotoAndStop(1);
_root.House.gotoAndStop(1);
_root.Overworld.gotoAndStop(2);
_root.Shop.gotoAndStop(1);
_root.Cavern.gotoAndStop(1);
_root.CasinoMusique.gotoAndStop(1);
}
_root.FadeOut.gotoAndPlay(2);
_root.world.WorldTotal.gotoAndStop(1);
_root.SpawnClip.play();
if (_root.Position == 1) {
_root.player._x = 20;
_root.player._y = _root.PlayerY;
} else if (_root.Position == 2) {
_root.player._x = 580;
_root.player._y = _root.PlayerY;
} else if (_root.SPosition == 1004) {
_root.SPosition = 0;
_root.player._x = _root.PlayerX;
_root.player._y = _root.PlayerY;
}
stop();
Instance of Symbol 347 MovieClip in Frame 18
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
if (_root.SPosition == 0) {
_root.Position = 3;
_root.Emplacement = 6;
_root.PlayerY = _root.player._y;
_root.FadeIn.play();
}
}
}
Instance of Symbol 347 MovieClip in Frame 18
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.Position = 1;
_root.Emplacement = 11;
_root.PlayerY = _root.player._y;
_root.FadeIn.play();
}
}
Instance of Symbol 479 MovieClip in Frame 18
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (((Key.isDown(65) || (Key.isDown(68))) || (Key.isDown(83))) || (Key.isDown(87)))) {
switch (_root.ESpawn) {
case 1 :
stopAllSounds();
_root.SpawnClip.gotoAndStop(1);
_root.ESpawn = 0;
_root.EnemyBattle = 1;
_root.NoRunBattle = 0;
_root.Position = 0;
_root.SPosition = 1004;
_root.PlayerY = _root.player._y;
_root.PlayerX = _root.player._x;
_root.FadeIn2.play();
break;
case 3 :
case 4 :
case 5 :
stopAllSounds();
_root.SpawnClip.gotoAndStop(1);
_root.ESpawn = 0;
_root.EnemyBattle = 2;
_root.NoRunBattle = 0;
_root.Position = 0;
_root.SPosition = 1004;
_root.PlayerY = _root.player._y;
_root.PlayerX = _root.player._x;
_root.FadeIn2.play();
}
}
}
Frame 19
if (SPosition == 1005) {
stopAllSounds();
_root.Town.gotoAndStop(1);
_root.House.gotoAndStop(1);
_root.Overworld.gotoAndStop(2);
_root.Shop.gotoAndStop(1);
_root.Cavern.gotoAndStop(1);
_root.CasinoMusique.gotoAndStop(1);
}
_root.FadeOut.gotoAndPlay(2);
_root.world.WorldTotal.gotoAndStop(1);
_root.SpawnClip.play();
_root.Battle = 0;
if (_root.Position == 1) {
_root.player._x = 20;
_root.player._y = _root.PlayerY;
} else if (_root.Position == 2) {
_root.player._x = _root.PlayerX;
_root.player._y = 30;
} else if (_root.SPosition == 1005) {
_root.SPosition = 0;
_root.player._x = _root.PlayerX;
_root.player._y = _root.PlayerY;
}
stop();
Instance of Symbol 347 MovieClip in Frame 19
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
if (_root.SPosition == 0) {
_root.Position = 2;
_root.Emplacement = 10;
_root.PlayerY = _root.player._y;
_root.FadeIn.play();
}
}
}
Instance of Symbol 479 MovieClip in Frame 19
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (((Key.isDown(65) || (Key.isDown(68))) || (Key.isDown(83))) || (Key.isDown(87)))) {
switch (_root.ESpawn) {
case 1 :
case 2 :
stopAllSounds();
_root.SpawnClip.gotoAndStop(1);
_root.ESpawn = 0;
_root.EnemyBattle = 2;
_root.NoRunBattle = 0;
_root.Position = 0;
_root.SPosition = 1005;
_root.PlayerY = _root.player._y;
_root.PlayerX = _root.player._x;
_root.FadeIn2.play();
break;
case 3 :
case 4 :
stopAllSounds();
_root.SpawnClip.gotoAndStop(1);
_root.ESpawn = 0;
_root.EnemyBattle = 3;
_root.NoRunBattle = 0;
_root.Position = 0;
_root.SPosition = 1005;
_root.PlayerY = _root.player._y;
_root.PlayerX = _root.player._x;
_root.FadeIn2.play();
}
}
}
Instance of Symbol 347 MovieClip in Frame 19
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.Position = 1;
_root.Emplacement = 12;
_root.PlayerX = _root.player._x;
_root.FadeIn.play();
}
}
Frame 20
if (SPosition == 1006) {
stopAllSounds();
_root.Town.gotoAndStop(1);
_root.House.gotoAndStop(1);
_root.Overworld.gotoAndStop(2);
_root.Shop.gotoAndStop(1);
_root.Cavern.gotoAndStop(1);
_root.CasinoMusique.gotoAndStop(1);
}
_root.FadeOut.gotoAndPlay(2);
_root.world.WorldTotal.gotoAndStop(1);
_root.SpawnClip.play();
if (_root.Position == 1) {
_root.player._y = 380;
_root.player._x = _root.PlayerX;
} else if (_root.Position == 2) {
_root.player._y = 30;
_root.player._x = _root.PlayerX;
} else if (_root.SPosition == 1006) {
_root.SPosition = 0;
_root.player._x = _root.PlayerX;
_root.player._y = _root.PlayerY;
}
stop();
Instance of Symbol 479 MovieClip in Frame 20
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (((Key.isDown(65) || (Key.isDown(68))) || (Key.isDown(83))) || (Key.isDown(87)))) {
switch (_root.ESpawn) {
case 1 :
case 2 :
case 3 :
case 4 :
stopAllSounds();
_root.SpawnClip.gotoAndStop(1);
_root.ESpawn = 0;
_root.EnemyBattle = 3;
_root.NoRunBattle = 0;
_root.Position = 0;
_root.SPosition = 1006;
_root.PlayerY = _root.player._y;
_root.PlayerX = _root.player._x;
_root.FadeIn2.play();
}
}
}
Instance of Symbol 347 MovieClip in Frame 20
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
if (_root.SPosition == 0) {
_root.Emplacement = 13;
_root.PlayerX = _root.player._x;
_root.FadeIn.play();
}
}
}
Instance of Symbol 347 MovieClip in Frame 20
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
if (_root.SPosition == 0) {
_root.Position = 2;
_root.Emplacement = 11;
_root.PlayerX = _root.player._x;
_root.FadeIn.play();
}
}
}
Frame 21
_root.FadeOut.gotoAndPlay(2);
_root.world.WorldTotal.gotoAndStop(1);
_root.SpawnClip.gotoAndStop(1);
_root.player._y = 380;
_root.player._x = _root.PlayerX;
if (_root.FinalQuest == 2) {
_root.world.gotoAndStop(2);
_root.world.TrioNPC.gotoAndStop(30);
}
stop();
Instance of Symbol 347 MovieClip in Frame 21
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.Emplacement = 100;
_root.FadeIn.play();
}
}
Instance of Symbol 347 MovieClip in Frame 21
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.Position = 2;
_root.Emplacement = 12;
_root.PlayerX = _root.player._x;
_root.FadeIn.play();
}
}
Frame 22
if ((_root.Position == 1) || (_root.SPosition == 1007)) {
stopAllSounds();
_root.Town.gotoAndStop(1);
_root.House.gotoAndStop(1);
_root.Overworld.gotoAndStop(1);
_root.Shop.gotoAndStop(1);
_root.Cavern.gotoAndStop(2);
_root.CasinoMusique.gotoAndStop(1);
}
_root.FadeOut.gotoAndPlay(2);
_root.world.WorldTotal.gotoAndStop(1);
_root.SpawnClip.play();
if (_root.Position == 1) {
_root.player._y = 380;
_root.player._x = 300;
} else if (_root.Position == 2) {
_root.player._y = 20;
_root.player._x = _root.PlayerX;
} else if (_root.SPosition == 1007) {
_root.SPosition = 0;
_root.player._x = _root.PlayerX;
_root.player._y = _root.PlayerY;
}
stop();
Instance of Symbol 347 MovieClip in Frame 22
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
if (_root.SPosition == 0) {
_root.Emplacement = 15;
_root.Position = 1;
_root.PlayerX = _root.player._x;
_root.FadeIn.play();
}
}
}
Instance of Symbol 479 MovieClip in Frame 22
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (((Key.isDown(65) || (Key.isDown(68))) || (Key.isDown(83))) || (Key.isDown(87)))) {
switch (_root.ESpawn) {
case 1 :
case 2 :
case 3 :
stopAllSounds();
_root.SpawnClip.gotoAndStop(1);
_root.ESpawn = 0;
_root.EnemyBattle = 4;
_root.NoRunBattle = 0;
_root.Position = 0;
_root.SPosition = 1007;
_root.PlayerY = _root.player._y;
_root.PlayerX = _root.player._x;
_root.FadeIn2.play();
}
}
}
Instance of Symbol 347 MovieClip in Frame 22
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
if (_root.SPosition == 0) {
_root.Position = 2;
_root.Emplacement = 9;
_root.PlayerX = _root.player._x;
_root.FadeIn.play();
}
}
}
Frame 23
if (_root.SPosition == 1008) {
stopAllSounds();
_root.Town.gotoAndStop(1);
_root.House.gotoAndStop(1);
_root.Overworld.gotoAndStop(1);
_root.Shop.gotoAndStop(1);
_root.Cavern.gotoAndStop(2);
_root.CasinoMusique.gotoAndStop(1);
}
_root.FadeOut.gotoAndPlay(2);
_root.world.WorldTotal.gotoAndStop(1);
_root.SpawnClip.play();
if (_root.Position == 1) {
_root.player._y = 380;
_root.player._x = _root.PlayerX;
} else if (_root.Position == 2) {
_root.player._y = _root.PlayerY;
_root.player._x = 20;
} else if (_root.Position == 3) {
_root.player._y = _root.PlayerY;
_root.player._x = 580;
} else if (_root.Position == 4) {
_root.player._y = 20;
_root.player._x = _root.PlayerX;
} else if (_root.SPosition == 1008) {
_root.SPosition = 0;
_root.player._x = _root.PlayerX;
_root.player._y = _root.PlayerY;
}
if ((_root.arraySWITCH[0] == 1) && (_root.arraySWITCH[1] == 1)) {
_root.world.gotoAndStop(2);
}
stop();
Instance of Symbol 347 MovieClip in Frame 23
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
if (_root.SPosition == 0) {
_root.Emplacement = 18;
_root.Position = 1;
_root.PlayerX = _root.player._x;
_root.FadeIn.play();
}
}
}
Instance of Symbol 347 MovieClip in Frame 23
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
if (_root.SPosition == 0) {
_root.Emplacement = 17;
_root.PlayerY = _root.player._y;
_root.FadeIn.play();
}
}
}
Instance of Symbol 347 MovieClip in Frame 23
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
if (_root.SPosition == 0) {
_root.Emplacement = 16;
_root.PlayerY = _root.player._y;
_root.FadeIn.play();
}
}
}
Instance of Symbol 479 MovieClip in Frame 23
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (((Key.isDown(65) || (Key.isDown(68))) || (Key.isDown(83))) || (Key.isDown(87)))) {
switch (_root.ESpawn) {
case 1 :
case 2 :
case 3 :
case 4 :
stopAllSounds();
_root.SpawnClip.gotoAndStop(1);
_root.ESpawn = 0;
_root.EnemyBattle = 4;
_root.NoRunBattle = 0;
_root.Position = 0;
_root.SPosition = 1008;
_root.PlayerY = _root.player._y;
_root.PlayerX = _root.player._x;
_root.FadeIn2.play();
}
}
}
Instance of Symbol 347 MovieClip in Frame 23
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
if (_root.SPosition == 0) {
_root.Position = 2;
_root.Emplacement = 14;
_root.PlayerX = _root.player._x;
_root.FadeIn.play();
}
}
}
Frame 24
if (_root.SPosition == 1009) {
stopAllSounds();
_root.Town.gotoAndStop(1);
_root.House.gotoAndStop(1);
_root.Overworld.gotoAndStop(1);
_root.Shop.gotoAndStop(1);
_root.Cavern.gotoAndStop(2);
_root.CasinoMusique.gotoAndStop(1);
}
_root.FadeOut.gotoAndPlay(2);
_root.world.WorldTotal.gotoAndStop(1);
_root.SpawnClip.play();
if (_root.arraySWITCH[0] == 1) {
_root.Bouton01.gotoAndStop(2);
}
if (_root.SPosition == 1009) {
_root.player._x = _root.PlayerX;
_root.player._y = _root.PlayerY;
_root.SPosition = 0;
} else {
_root.player._y = _root.PlayerY;
_root.player._x = 580;
}
stop();
Instance of Symbol 347 MovieClip in Frame 24
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
if (_root.SPosition == 0) {
_root.Emplacement = 15;
_root.Position = 2;
_root.PlayerY = _root.player._y;
_root.FadeIn.play();
}
}
}
Instance of Symbol 579 MovieClip "Bouton01" in Frame 24
on (release) {
if (this.hitTest(_root.player)) {
if (_root.arraySWITCH[0] == 0) {
_root.Switch.play();
_root.arraySWITCH[0] = 1;
_root.Bouton01.gotoAndStop(2);
}
}
}
on (rollOver) {
_root.Bouton01.useHandCursor = false;
}
Instance of Symbol 479 MovieClip in Frame 24
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (((Key.isDown(65) || (Key.isDown(68))) || (Key.isDown(83))) || (Key.isDown(87)))) {
switch (_root.ESpawn) {
case 1 :
case 2 :
case 3 :
case 4 :
stopAllSounds();
_root.SpawnClip.gotoAndStop(1);
_root.ESpawn = 0;
_root.EnemyBattle = 5;
_root.NoRunBattle = 0;
_root.Position = 0;
_root.SPosition = 1009;
_root.PlayerY = _root.player._y;
_root.PlayerX = _root.player._x;
_root.FadeIn2.play();
}
}
}
Frame 25
if (_root.SPosition == 1010) {
stopAllSounds();
_root.Town.gotoAndStop(1);
_root.House.gotoAndStop(1);
_root.Overworld.gotoAndStop(1);
_root.Shop.gotoAndStop(1);
_root.Cavern.gotoAndStop(2);
_root.CasinoMusique.gotoAndStop(1);
}
_root.FadeOut.gotoAndPlay(2);
_root.world.WorldTotal.gotoAndStop(1);
_root.SpawnClip.play();
if (_root.arraySWITCH[1] == 1) {
_root.Bouton02.gotoAndStop(2);
}
if (_root.SPosition == 1010) {
_root.player._x = _root.PlayerX;
_root.player._y = _root.PlayerY;
_root.SPosition = 0;
} else {
_root.player._y = _root.PlayerY;
_root.player._x = 20;
}
stop();
Instance of Symbol 347 MovieClip in Frame 25
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
if (_root.SPosition == 0) {
_root.Emplacement = 15;
_root.Position = 3;
_root.PlayerY = _root.player._y;
_root.FadeIn.play();
}
}
}
Instance of Symbol 579 MovieClip "Bouton02" in Frame 25
on (release) {
if (this.hitTest(_root.player)) {
if (_root.arraySWITCH[1] == 0) {
_root.Switch.play();
_root.arraySWITCH[1] = 1;
_root.Bouton02.gotoAndStop(2);
}
}
}
on (rollOver) {
_root.Bouton02.useHandCursor = false;
}
Instance of Symbol 479 MovieClip in Frame 25
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (((Key.isDown(65) || (Key.isDown(68))) || (Key.isDown(83))) || (Key.isDown(87)))) {
switch (_root.ESpawn) {
case 1 :
case 2 :
case 3 :
case 4 :
stopAllSounds();
_root.SpawnClip.gotoAndStop(1);
_root.ESpawn = 0;
_root.EnemyBattle = 5;
_root.NoRunBattle = 0;
_root.Position = 0;
_root.SPosition = 1010;
_root.PlayerY = _root.player._y;
_root.PlayerX = _root.player._x;
_root.FadeIn2.play();
}
}
}
Frame 26
if (_root.SPosition == 1011) {
stopAllSounds();
_root.Town.gotoAndStop(1);
_root.House.gotoAndStop(1);
_root.Overworld.gotoAndStop(1);
_root.Shop.gotoAndStop(1);
_root.Cavern.gotoAndStop(2);
_root.CasinoMusique.gotoAndStop(1);
}
_root.FadeOut.gotoAndPlay(2);
_root.world.WorldTotal.gotoAndStop(1);
_root.SpawnClip.gotoAndStop(1);
_root.Battle = 0;
if (_root.Position == 1) {
_root.player._y = 380;
_root.player._x = _root.PlayerX;
} else if (_root.Position == 2) {
_root.player._y = 20;
_root.player._x = _root.PlayerX;
} else if (_root.SPosition == 1011) {
_root.SemiFinalBoss = 1;
_root.player._x = _root.PlayerX;
_root.player._y = _root.PlayerY;
_root.SPosition = 0;
}
if (_root.SemiFinalBoss == 1) {
_root.BrokenStar.gotoAndStop(2);
} else {
_root.world.WorldTotal.gotoAndStop(2);
_root.TextBox.gotoAndStop(2);
_root.TextBox.MSG = "You will have to defeat me if you wish to go further.";
}
stop();
Instance of Symbol 347 MovieClip in Frame 26
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.Emplacement = 19;
_root.PlayerX = _root.player._x;
_root.FadeIn.play();
}
}
Instance of Symbol 347 MovieClip in Frame 26
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.Emplacement = 15;
_root.Position = 4;
_root.PlayerX = _root.player._x;
_root.FadeIn.play();
}
}
Instance of Symbol 590 MovieClip "BrokenStar" in Frame 26
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.Battle == 0)) {
stopAllSounds();
_root.Battle = 1;
_root.NoRunBattle = 1;
_root.EnemyBattle = 6;
_root.Position = 0;
_root.SPosition = 1011;
_root.PlayerY = _root.player._y;
_root.PlayerX = _root.player._x;
_root.FadeIn2.play();
}
}
Frame 27
if (_root.SPosition == 1012) {
stopAllSounds();
_root.Town.gotoAndStop(1);
_root.House.gotoAndStop(1);
_root.Overworld.gotoAndStop(1);
_root.Shop.gotoAndStop(1);
_root.Cavern.gotoAndStop(2);
_root.CasinoMusique.gotoAndStop(1);
}
_root.FadeOut.gotoAndPlay(2);
_root.world.WorldTotal.gotoAndStop(1);
_root.SpawnClip.gotoAndStop(1);
_root.player._y = 380;
_root.player._x = _root.PlayerX;
if (_root.SPosition == 1012) {
_root.BossDead = 1;
_root.FinalBoss = 1;
_root.player._x = _root.PlayerX;
_root.player._y = _root.PlayerY;
_root.SPosition = 0;
}
if (_root.BossDead == 1) {
_root.Boss.gotoAndStop(2);
} else {
_root.world.WorldTotal.gotoAndStop(2);
_root.TextBox.gotoAndStop(2);
_root.TextBox.MSG = "How did you get there! This is my playground and I order you to go away.";
}
stop();
Instance of Symbol 347 MovieClip in Frame 27
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.Emplacement = 18;
_root.Position = 2;
_root.PlayerX = _root.player._x;
_root.FadeIn.play();
}
}
Instance of Symbol 596 MovieClip "Boss" in Frame 27
onClipEvent (enterFrame) {
if (this.hitTest(_root.player) && (_root.Battle == 0)) {
stopAllSounds();
_root.Battle = 1;
_root.NoRunBattle = 1;
_root.EnemyBattle = 7;
_root.Position = 0;
_root.SPosition = 1012;
_root.PlayerY = _root.player._y;
_root.PlayerX = _root.player._x;
_root.FadeIn2.play();
}
}
Frame 28
stopAllSounds();
_root.Town.gotoAndStop(1);
_root.House.gotoAndStop(2);
_root.Overworld.gotoAndStop(1);
_root.Shop.gotoAndStop(1);
_root.Cavern.gotoAndStop(1);
_root.CasinoMusique.gotoAndStop(1);
_root.FadeOut.gotoAndPlay(2);
_root.world.WorldTotal.gotoAndStop(1);
_root.SpawnClip.gotoAndStop(1);
_root.player._x = 290;
_root.player._y = 360;
if (_root.MayorQuest == 2) {
_root.world.gotoAndStop(2);
_root.Decor.gotoAndStop(2);
}
stop();
Instance of Symbol 404 MovieClip in Frame 28
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.Door.play();
_root.Emplacement = 3;
_root.Position = 4;
_root.FadeIn.play();
}
}
Instance of Symbol 404 MovieClip in Frame 28
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.TextBox.gotoAndStop(2);
_root.TextBox.MSG = "Sorry you can't go in there.";
}
}
Instance of Symbol 404 MovieClip "SecTalk" in Frame 28
on (release) {
if (this.hitTest(_root.player)) {
_root.world.WorldTotal.gotoAndStop(2);
_root.TextBox.gotoAndStop(2);
_root.TextBox.MSG = "What ? I am on my lunch break.";
}
}
on (rollOver) {
_root.SecTalk.useHandCursor = false;
}
Frame 29
stopAllSounds();
_root.Town.gotoAndStop(1);
_root.House.gotoAndStop(1);
_root.Overworld.gotoAndStop(1);
_root.Shop.gotoAndStop(1);
_root.Cavern.gotoAndStop(1);
_root.CasinoMusique.gotoAndStop(1);
_root.End.play();
_root.FadeOut.gotoAndPlay(2);
stop();
Frame 30
stopAllSounds();
_root.Battle1.gotoAndStop(2);
_root.Battle2.gotoAndStop(1);
_root.BattleFinal.gotoAndStop(1);
_root.Win.gotoAndStop(1);
_root.Dead.gotoAndStop(1);
_root.ELevel = 1;
_root.EonHP = 40;
_root.EonMP = 10;
_root.EHP = _root.EonHP;
_root.EMP = _root.EonMP;
_root.FadeOut.gotoAndPlay(2);
Instance of Symbol 647 MovieClip "Eattack" in Frame 30
onClipEvent (enterFrame) {
if (_root.EHP <= 0) {
_root.EHP = 0;
}
}
Instance of Symbol 734 MovieClip "Pattack" in Frame 30
onClipEvent (enterFrame) {
_root.ActionBar.AppleItem.gAPPLE = _root.APPLE;
_root.ActionBar.ChocolateItem.gCHOCOLATE = _root.CHOCOLATE;
_root.ActionBar.VitaminItem.gVITAMIN = _root.VITAMIN;
_root.ActionBar.VitaminxItem.gVITAMINX = _root.VITAMINX;
_root.ActionBar.BullEyeItem.gBULLEYE = _root.BULLEYE;
}
Instance of Symbol 54 MovieClip "CURSOR" in Frame 30
onClipEvent (load) {
startDrag ("_root.CURSOR", true);
Mouse.hide();
}
Frame 31
stopAllSounds();
_root.Battle1.gotoAndStop(2);
_root.Battle2.gotoAndStop(1);
_root.BattleFinal.gotoAndStop(1);
_root.Win.gotoAndStop(1);
_root.Dead.gotoAndStop(1);
_root.ELevel = 2;
_root.EonHP = 100;
_root.EonMP = 0;
_root.EHP = _root.EonHP;
_root.EMP = _root.EonMP;
_root.FadeOut.gotoAndPlay(2);
Instance of Symbol 903 MovieClip "Eattack" in Frame 31
onClipEvent (enterFrame) {
if (_root.EHP <= 0) {
_root.EHP = 0;
}
}
Frame 32
stopAllSounds();
_root.Battle1.gotoAndStop(2);
_root.Battle2.gotoAndStop(1);
_root.BattleFinal.gotoAndStop(1);
_root.Win.gotoAndStop(1);
_root.Dead.gotoAndStop(1);
_root.ELevel = 4;
_root.EonHP = 200;
_root.EonMP = 50;
_root.EHP = _root.EonHP;
_root.EMP = _root.EonMP;
_root.FadeOut.gotoAndPlay(2);
Instance of Symbol 931 MovieClip "Eattack" in Frame 32
onClipEvent (enterFrame) {
if (_root.EHP <= 0) {
_root.EHP = 0;
}
}
Frame 33
stopAllSounds();
_root.Battle1.gotoAndStop(1);
_root.Battle2.gotoAndStop(2);
_root.BattleFinal.gotoAndStop(1);
_root.Win.gotoAndStop(1);
_root.Dead.gotoAndStop(1);
_root.ELevel = 6;
_root.EonHP = 350;
_root.EonMP = 0;
_root.EHP = _root.EonHP;
_root.EMP = _root.EonMP;
_root.FadeOut.gotoAndPlay(2);
Instance of Symbol 949 MovieClip "Eattack" in Frame 33
onClipEvent (enterFrame) {
if (_root.EHP <= 0) {
_root.EHP = 0;
}
}
Frame 34
stopAllSounds();
_root.Battle1.gotoAndStop(1);
_root.Battle2.gotoAndStop(2);
_root.BattleFinal.gotoAndStop(1);
_root.Win.gotoAndStop(1);
_root.Dead.gotoAndStop(1);
_root.ELevel = 7;
_root.EonHP = 500;
_root.EonMP = 20;
_root.EHP = _root.EonHP;
_root.EMP = _root.EonMP;
_root.FadeOut.gotoAndPlay(2);
Instance of Symbol 1006 MovieClip "Eattack" in Frame 34
onClipEvent (enterFrame) {
if (_root.EHP <= 0) {
_root.EHP = 0;
}
}
Frame 35
stopAllSounds();
_root.Battle1.gotoAndStop(1);
_root.Battle2.gotoAndStop(2);
_root.BattleFinal.gotoAndStop(1);
_root.Win.gotoAndStop(1);
_root.Dead.gotoAndStop(1);
_root.ELevel = 8;
_root.EonHP = 700;
_root.EonMP = 40;
_root.EHP = _root.EonHP;
_root.EMP = _root.EonMP;
_root.FadeOut.gotoAndPlay(2);
Instance of Symbol 1048 MovieClip "Eattack" in Frame 35
onClipEvent (enterFrame) {
if (_root.EHP <= 0) {
_root.EHP = 0;
}
}
Frame 36
stopAllSounds();
_root.Battle1.gotoAndStop(1);
_root.Battle2.gotoAndStop(1);
_root.BattleFinal.gotoAndStop(2);
_root.Win.gotoAndStop(1);
_root.Dead.gotoAndStop(1);
_root.ELevel = 10;
_root.EonHP = 900;
_root.EonMP = 60;
_root.EHP = _root.EonHP;
_root.EMP = _root.EonMP;
_root.FadeOut.gotoAndPlay(2);
Instance of Symbol 1128 MovieClip "Eattack" in Frame 36
onClipEvent (enterFrame) {
if (_root.EHP <= 0) {
_root.EHP = 0;
}
}
Symbol 19 MovieClip Frame 40
stop();
Symbol 33 Button
on (press) {
tellTarget (_root) {
nextFrame();
};
}
Symbol 34 Button
on (press) {
gotoAndStop ("end");
_root.play();
}
Instance of Symbol 9 MovieClip in Symbol 35 MovieClip Frame 1
onClipEvent (load) {
_root.stop();
PercentLoaded = int((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if (PercentLoaded != 100) {
_parent.gotoAndStop(PercentLoaded);
} else {
_parent.gotoAndStop("lastframe");
}
}
onClipEvent (enterFrame) {
PercentLoaded = int((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if (PercentLoaded != 100) {
_parent.gotoAndStop(PercentLoaded);
} else {
_parent.gotoAndPlay("loaded");
}
}
Symbol 35 MovieClip Frame 101
play();
Symbol 35 MovieClip Frame 165
stop();
Symbol 41 Button
on (release) {
NewgroundsAPI.loadNewgrounds();
}
Symbol 47 Button
on (release) {
NewgroundsAPI.loadNewgrounds();
}
Symbol 49 MovieClip Frame 1
function startAd(ngad_url) {
trace("opening " + ngad_url);
System.security.allowDomain("70.87.128.99");
System.security.allowInsecureDomain("70.87.128.99");
System.security.allowDomain("ads.shizmoo.com");
System.security.allowInsecureDomain("ads.shizmoo.com");
System.security.allowDomain("www.cpmstar.com");
System.security.allowInsecureDomain("www.cpmstar.com");
System.security.allowDomain("server.cpmstar.com");
System.security.allowInsecureDomain("server.cpmstar.com");
var ngads_redirect = new XML();
ngads_redirect.ignoreWhite = true;
ngads_redirect.onLoad = function (success) {
trace("[NEWGROUNDS FLASH ADS] :: You may get a 'Security Sandbox Violation' ... this is normal, do not freak out!");
if (success) {
ng_ad.loadMovie(ngads_redirect.toString(), "GET");
}
};
ngads_redirect.load(ngad_url);
}
if (NewgroundsAPI.getAdURL()) {
startAd(NewgroundsAPI.getAdURL());
}
NewgroundsAPI.onAdsApproved = function (ad_url) {
startAd(ad_url);
};
stop();
Symbol 1130 MovieClip [__Packages.NewgroundsAPI] Frame 0
class NewgroundsAPI
{
static var tracker_id, host, version, debug, error_format, header_format, normal_format, link_format;
function NewgroundsAPI () {
}
static function connectMovie(id) {
if (!id) {
SendError("Missing required 'id' parameter in NewgroundsAPI.connectMovie(id:Number)");
} else if (!tracker_id) {
SendMessage("Connecting to API gateway...");
tracker_id = id;
host = _url.split("/")[2].toLowerCase();
if (host.length < 1) {
host = "localhost";
}
var _local2 = new Object();
SendEvent(MOVIE_VIEWS);
}
}
static function setMovieVersion(movie_version) {
if (!movie_version) {
SendError("Missing required 'version' in NewgroundsAPI.setMovieVersion(version:String)");
} else {
version = movie_version;
}
}
static function debugMode() {
debug = true;
}
static function addCustomEvent(stat_id, stat_name) {
if (!stat_id) {
SendError("Missing required 'id' parameter in NewgroundsAPI.AddCustomEvent(id:Number, event_name:String)");
} else if (!stat_name) {
SendError("Missing required 'event_name' parameter in NewgroundsAPI.AddCustomEvent(id:Number, event_name:String)");
} else {
custom_events[stat_name] = CUSTOM_STATS + stat_id;
SendMessage("Created custom event: " + stat_name);
}
}
static function addCustomLink(stat_id, stat_name) {
if (!stat_id) {
SendError("Missing required 'id' parameter in NewgroundsAPI.AddCustomLink(id:Number, link_name:String)");
} else if (!stat_name) {
SendError("Missing required 'link_name' parameter in NewgroundsAPI.AddCustomLink(id:Number, link_name:String)");
} else {
custom_links[stat_name] = CUSTOM_STATS + stat_id;
SendMessage((("Created custom link " + stat_id) + ": ") + stat_name);
}
}
static function loadMySite() {
SendLink(AUTHOR_SITE);
}
static function loadNewgrounds(special) {
if (special) {
var _local1 = {page:special};
}
SendLink(NEWGROUNDS, _local1);
}
static function logCustomEvent(event_name) {
if (!event_name) {
SendError("Missing required 'event_name' parameter in NewgroundsAPI.logCustomEvent(event_name:String)");
} else if (!custom_events[event_name]) {
SendError("Attempted to log undefined custom event: " + event_name);
} else {
SendEvent(custom_events[event_name]);
}
}
static function loadCustomLink(link_name) {
if (!link_name) {
SendError("Missing required 'link_name' parameter in NewgroundsAPI.loadCustomLink(link_name:String)");
} else if (!custom_links[link_name]) {
SendError("Attempted to open undefined custom link: " + link_name);
} else {
SendLink(custom_links[link_name]);
}
}
static function getAdURL() {
return(movie_options.ad_url);
}
static function getMovieURL() {
if (movie_options.movie_url) {
return(movie_options.movie_url);
}
return("Newgrounds.com");
}
static function getNewVersionURL() {
return((((((GATEWAY_URL + "?&id=") + tracker_id) + "&host=") + escape(host)) + "&stat=") + NEW_VERSION);
}
static function SendEvent(id) {
SendStat(id, false);
}
static function SendLink(id, extra) {
SendStat(id, true, extra);
}
static function ReadGatewayData(params) {
for (var _local2 in params) {
params[_local2] = unescape(params[_local2]);
movie_options[_local2] = params[_local2];
}
if (params.settings_loaded) {
SendMessage("You have successfully connected to the Newgrounds API gateway!");
SendMessage(("Movie Identified as '" + movie_options.movie_name) + "'");
if (movie_options.message) {
SendMessage(movie_options.message);
}
if (movie_options.ad_url) {
SendMessage("Your movie has been approved to run Flash Ads");
onAdsApproved(movie_options.ad_url);
}
if (movie_options.movie_version and (movie_options.movie_version.toString() != version.toString())) {
SendMessage("WARNING: The movie version configured in your API settings does not match this movie's version!");
onNewVersionAvailable(movie_options.movie_version, getMovieURL(), getNewVersionURL());
}
if (movie_options.deny_host) {
SendMessage("You have blocked 'localHost' in your API settings.");
SendMessage("If you wish to test your movie you will need to remove this block.");
onDenyHost(host, getMovieURL(), getNewVersionURL());
}
if (movie_options.request_portal_url == 1) {
var _local4 = (((GATEWAY_URL + "?&id=") + tracker_id) + "&portal_url=") + escape(_url);
var _local3 = new XML();
_local3.ignoreWhite = true;
_local3.load(_local4);
}
} else if (!movie_options.settings_loaded) {
SendError("Could not establish connection to the API gateway.");
}
}
static function SendStat(stat_id, open_in_browser, extra) {
if (!tracker_id) {
SendError("API calls cannot be made without a valid movie id.");
SendError("Did you remember to add the \"NewgroundsAPI.connectMovie()\" code?");
} else {
var _local7 = (((((GATEWAY_URL + "?&id=") + tracker_id) + "&host=") + escape(host)) + "&stat=") + stat_id;
for (var _local9 in extra) {
_local7 = _local7 + ((("&" + escape(_local9)) + "=") + escape(extra[_local9]));
}
trace(_local7);
if (debug) {
_local7 = _local7 + "&debug=1";
}
if (open_in_browser) {
getURL (_local7, "_blank");
} else {
var _local10 = new XML();
_local10.ignoreWhite = true;
_local10.onLoad = function (success) {
var _local6 = new Object();
var _local3 = 0;
while (_local3 < this.firstChild.childNodes.length) {
var _local4 = this.firstChild.childNodes[_local3];
var _local5 = _local4.nodeName;
var _local2 = _local4.attributes.value;
if (_local2 == Number(_local2)) {
_local2 = Number(_local2);
}
_local6[_local5] = _local2;
_local3++;
}
NewgroundsAPI.ReadGatewayData(_local6);
};
_local10.load(_local7);
}
}
}
static function SendError(msg) {
trace("[NEWGROUNDS API ERROR] :: " + msg);
}
static function SendMessage(msg) {
trace("[NEWGROUNDS API] :: " + msg);
}
static function InitTextFormats() {
if (!error_format) {
error_format = new TextFormat();
error_format.font = "Arial Black";
error_format.size = 48;
error_format.color = 16711680 /* 0xFF0000 */;
}
if (!header_format) {
header_format = new TextFormat();
header_format.font = "Arial Black";
header_format.size = 24;
header_format.color = 16777215 /* 0xFFFFFF */;
}
if (!normal_format) {
normal_format = new TextFormat();
normal_format.font = "Arial";
normal_format.bold = true;
normal_format.size = 12;
normal_format.color = 16777215 /* 0xFFFFFF */;
}
if (!link_format) {
link_format = new TextFormat();
link_format.color = 16776960 /* 0xFFFF00 */;
link_format.underline = true;
}
}
static function onNewVersionAvailable(version, movie_url, redirect_url) {
InitTextFormats();
var _local2 = new Object();
_local2.x = Stage.width / 2;
_local2.y = Stage.height / 2;
_root.createEmptyMovieClip("NGAPI_new_version_overlay", _root.getNextHighestDepth());
_root.NGAPI_new_version_overlay.lineStyle(1, 0, 100);
_root.NGAPI_new_version_overlay.beginFill(0, 70);
_root.NGAPI_new_version_overlay.moveTo(-10, -10);
_root.NGAPI_new_version_overlay.lineTo(-10, 1000);
_root.NGAPI_new_version_overlay.lineTo(1000, 1000);
_root.NGAPI_new_version_overlay.lineTo(1000, -10);
_root.NGAPI_new_version_overlay.lineTo(-10, -10);
_root.NGAPI_new_version_overlay.endFill();
_root.NGAPI_new_version_overlay.lineStyle(10, 0, 100);
_root.NGAPI_new_version_overlay.beginFill(51);
_root.NGAPI_new_version_overlay.moveTo(_local2.x - 240, _local2.y - 120);
_root.NGAPI_new_version_overlay.lineTo(_local2.x + 240, _local2.y - 120);
_root.NGAPI_new_version_overlay.lineTo(_local2.x + 240, _local2.y + 80);
_root.NGAPI_new_version_overlay.lineTo(_local2.x - 240, _local2.y + 80);
_root.NGAPI_new_version_overlay.lineTo(_local2.x - 240, _local2.y - 120);
_root.NGAPI_new_version_overlay.endFill();
_root.NGAPI_new_version_overlay.createEmptyMovieClip("exit", 1000);
_root.NGAPI_new_version_overlay.exit.lineStyle(2, 39423, 100);
_root.NGAPI_new_version_overlay.exit.beginFill(0, 50);
_root.NGAPI_new_version_overlay.exit.moveTo(_local2.x + 210, _local2.y - 110);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 230, _local2.y - 110);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 230, _local2.y - 90);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 210, _local2.y - 90);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 210, _local2.y - 110);
_root.NGAPI_new_version_overlay.exit.endFill();
_root.NGAPI_new_version_overlay.exit.moveTo(_local2.x + 214, _local2.y - 106);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 226, _local2.y - 94);
_root.NGAPI_new_version_overlay.exit.moveTo(_local2.x + 226, _local2.y - 106);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 214, _local2.y - 94);
_root.NGAPI_new_version_overlay.exit.onMouseUp = function () {
if (_root.NGAPI_new_version_overlay.exit.hitTest(_root._xmouse, _root._ymouse)) {
_root.NGAPI_new_version_overlay.removeMovieClip();
}
};
var _local3 = (("Version " + version) + " is now available at:") + newline;
var _local5 = _local3.length;
_local3 = _local3 + movie_url;
var _local4 = _local3.length;
_root.NGAPI_new_version_overlay.createTextField("mouseblocker", 99, -10, -10, 1000, 1000);
_root.NGAPI_new_version_overlay.createTextField("newversion", 100, _local2.x - 210, _local2.y - 90, 400, 80);
_root.NGAPI_new_version_overlay.newversion.text = "New Version Available!";
_root.NGAPI_new_version_overlay.newversion.setTextFormat(header_format);
_root.NGAPI_new_version_overlay.createTextField("message", 101, (Stage.width - 400) / 2, Stage.height / 2, 400, 40);
_root.NGAPI_new_version_overlay.message.text = _local3;
_root.NGAPI_new_version_overlay.message.multiline = true;
_root.NGAPI_new_version_overlay.message.wordWrap = true;
_root.NGAPI_new_version_overlay.message.html = true;
_root.NGAPI_new_version_overlay.message.setTextFormat(normal_format);
link_format.url = redirect_url;
_root.NGAPI_new_version_overlay.message.setTextFormat(_local5, _local4, link_format);
}
static function onDenyHost(hostname, movie_url, redirect_url) {
InitTextFormats();
_root.createEmptyMovieClip("NGAPI_deny_host_overlay", _root.getNextHighestDepth());
_root.NGAPI_deny_host_overlay.lineStyle(20, 0, 100);
_root.NGAPI_deny_host_overlay.beginFill(6684672);
_root.NGAPI_deny_host_overlay.moveTo(0, 0);
_root.NGAPI_deny_host_overlay.lineTo(Stage.width, 0);
_root.NGAPI_deny_host_overlay.lineTo(Stage.width, Stage.height);
_root.NGAPI_deny_host_overlay.lineTo(0, Stage.height);
_root.NGAPI_deny_host_overlay.lineTo(0, 0);
_root.NGAPI_deny_host_overlay.endFill();
var _local2 = ("This movie has not been approved for use on " + hostname) + ".";
_local2 = _local2 + "\r\rFor an aproved copy, please visit:\r";
var _local4 = _local2.length;
_local2 = _local2 + movie_url;
var _local3 = _local2.length;
_root.NGAPI_deny_host_overlay.createTextField("mousekill", 100, 0, 0, Stage.width, Stage.height);
_root.NGAPI_deny_host_overlay.createTextField("error", 101, (Stage.width - 400) / 2, (Stage.height / 2) - 100, 400, 200);
_root.NGAPI_deny_host_overlay.error.text = "ERROR!";
_root.NGAPI_deny_host_overlay.error.setTextFormat(error_format);
_root.NGAPI_deny_host_overlay.createTextField("message", 102, (Stage.width - 400) / 2, Stage.height / 2, 400, 200);
_root.NGAPI_deny_host_overlay.message.text = _local2;
_root.NGAPI_deny_host_overlay.message.multiline = true;
_root.NGAPI_deny_host_overlay.message.wordWrap = true;
_root.NGAPI_deny_host_overlay.message.html = true;
_root.NGAPI_deny_host_overlay.message.setTextFormat(normal_format);
link_format.url = redirect_url;
_root.NGAPI_deny_host_overlay.message.setTextFormat(_local4, _local3, link_format);
}
static function isInstalled() {
return(true);
}
static function onAdsApproved(ad_url) {
}
static var movie_options = new Object();
static var custom_events = new Object();
static var custom_links = new Object();
static var MOVIE_VIEWS = 1;
static var AUTHOR_SITE = 2;
static var NEWGROUNDS = 3;
static var NEW_VERSION = 4;
static var CUSTOM_STATS = 50;
static var GATEWAY_URL = "http://www.ngads.com/gateway.php";
}
Symbol 73 Button
on (release) {
_root.gotoAndStop(5);
}
Symbol 74 Button
on (release) {
_root.gotoAndStop(4);
}
Symbol 75 Button
on (release) {
_root.gotoAndStop(3);
}
Symbol 77 Button
on (release) {
if (_root.savefile.data.PTS == undefined) {
} else {
_root.arraySTRBONUS = new Array(0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1);
_root.arrayDEFBONUS = new Array(0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1);
_root.arrayFRCBONUS = new Array(0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1);
_root.arrayARMBONUS = new Array(0, 0.1, 0.12, 0.14, 0.17, 0.2, 0.24, 0.28, 0.33, 0.4, 0.5);
_root.arrayHP = new Array(50, 60, 75, 90, 110, 130, 150, 180, 210, 250);
_root.arrayMP = new Array(50, 55, 60, 70, 80, 100, 120, 140, 170, 200);
_root.arrayEXP = new Array(20, 50, 100, 180, 280, 400, 550, 700, 900, "X");
_root.arrayATK = new Array(5, 9, 13, 18, 23, 28, 35, 42, 51, 60);
_root.arrayATKRANGE = new Array(4, 5, 6, 8, 10, 12, 13, 15, 18, 20);
_root.PlayerX = _root.savefile.data.PlayerX;
_root.PlayerY = _root.savefile.data.PlayerY;
_root.gMP = _root.savefile.data.gMP;
_root.gHP = _root.savefile.data.gHP;
_root.gEXP = _root.savefile.data.gEXP;
_root.PTS = _root.savefile.data.PTS;
_root.STR = _root.savefile.data.STR;
_root.DEF = _root.savefile.data.DEF;
_root.FRC = _root.savefile.data.FRC;
_root.gLevel = _root.savefile.data.gLevel;
_root.APPLE = _root.savefile.data.APPLE;
_root.CHOCOLATE = _root.savefile.data.CHOCOLATE;
_root.VITAMIN = _root.savefile.data.VITAMIN;
_root.VITAMINX = _root.savefile.data.VITAMINX;
_root.BULLEYE = _root.savefile.data.BULLEYE;
_root.IntroQuest = _root.savefile.data.IntroQuest;
_root.LetterQuest = _root.savefile.data.LetterQuest;
_root.arrayLETTER = _root.savefile.data.arrayLETTER;
_root.LetterQuestNB = _root.savefile.data.LetterQuestNB;
_root.MayorQuest = _root.savefile.data.MayorQuest;
_root.KeyFound = _root.savefile.data.KeyFound;
_root.KillingQuest = _root.savefile.data.KillingQuest;
_root.HexWareKilled = _root.savefile.data.HexWareKilled;
_root.FinalQuest = _root.savefile.data.FinalQuest;
_root.BossDead = _root.savefile.data.BossDead;
_root.InvestigationQuest = _root.savefile.data.InvestigationQuest;
_root.NbEvidence = _root.savefile.data.NbEvidence;
_root.FindingQuest = _root.savefile.data.FindingQuest;
_root.BallFound = _root.savefile.data.BallFound;
_root.ComputerON = 0;
_root.SemiFinalBoss = _root.savefile.data.SemiFinalBoss;
_root.Name = _root.savefile.data.Name;
_root.arraySWITCH = _root.savefile.data.arraySWITCH;
_root.HP = _root.savefile.data.HP;
_root.gGold = _root.savefile.data.gGold;
_root.gotoAndStop("PlayerHouse");
}
}
Symbol 78 Button
on (release) {
_root.gotoAndStop("GameSET", 1);
}
Symbol 79 MovieClip Frame 101
stop();
Symbol 89 Button
on (release) {
_root.gotoAndStop(2);
}
Symbol 98 Button
on (release) {
getURL ("http://free.hostultra.com/~MadSpirit/HTML/Acceuil.html", "_blank");
}
Symbol 114 Button
on (release) {
if (strenth > 0) {
_root.strenth--;
_root.StatPoints++;
}
}
Symbol 117 Button
on (release) {
if (StatPoints > 0) {
_root.strenth++;
_root.StatPoints--;
}
}
Symbol 118 Button
on (release) {
if (StatPoints > 0) {
_root.defense++;
_root.StatPoints--;
}
}
Symbol 119 Button
on (release) {
if (StatPoints > 0) {
_root.force++;
_root.StatPoints--;
}
}
Symbol 120 Button
on (release) {
if (defense > 0) {
_root.defense--;
_root.StatPoints++;
}
}
Symbol 121 Button
on (release) {
if (force > 0) {
_root.force--;
_root.StatPoints++;
}
}
Symbol 124 Button
on (release) {
if (StatPoints > 0) {
_root.warning = "you must use all your skill points";
} else {
stopAllSounds();
_root.PTS = _root.StatPoints;
_root.STR = _root.strenth;
_root.DEF = _root.defense;
_root.FRC = _root.force;
_root.gotoAndPlay("GamePLAY");
}
}
Symbol 128 Button
on (release) {
_root.gotoAndStop("Loaded");
}
Symbol 131 Button
on (release) {
_root.StatHelp.gotoAndStop(2);
}
Symbol 132 Button
on (release) {
_root.StatHelp.gotoAndStop(3);
}
Symbol 133 Button
on (release) {
_root.StatHelp.gotoAndStop(4);
}
Symbol 138 Button
on (release) {
_root.StatHelp.gotoAndStop(1);
}
Symbol 145 MovieClip Frame 1
stop();
Symbol 145 MovieClip Frame 2
stop();
Symbol 145 MovieClip Frame 3
stop();
Symbol 145 MovieClip Frame 4
stop();
Symbol 155 Button
on (release) {
_root.world.WorldTotal.gotoAndStop(1);
_root.TextBox.gotoAndStop(1);
}
Symbol 159 Button
on (release) {
_root.world.WorldTotal.gotoAndStop(1);
_root.LetterQuest = 1;
_root.LetterQuestNB = 0;
_root.arrayLETTER = new Array(0, 0, 0, 0, 0);
_root.TextBox.gotoAndStop(1);
}
Symbol 162 Button
on (release) {
_root.world.WorldTotal.gotoAndStop(1);
_root.MayorQuest = 1;
_root.KeyFound = 0;
_root.TextBox.gotoAndStop(1);
}
Symbol 164 Button
on (release) {
_root.world.WorldTotal.gotoAndStop(1);
_root.KillingQuest = 1;
_root.HexWareKilled = 0;
_root.TextBox.gotoAndStop(1);
}
Symbol 166 Button
on (release) {
_root.world.WorldTotal.gotoAndStop(1);
_root.FinalQuest = 1;
_root.BossDead = 0;
_root.TextBox.gotoAndStop(1);
}
Symbol 168 Button
on (release) {
stopAllSounds();
_root.Overworld.gotoAndStop(1);
_root.CasinoMusique.gotoAndStop(2);
_root.Casino.gotoAndStop(2);
_root.TextBox.gotoAndStop(1);
}
Symbol 171 Button
on (release) {
_root.world.WorldTotal.gotoAndStop(1);
_root.InvestigationQuest = 1;
_root.NbEvidence = 0;
_root.TextBox.gotoAndStop(1);
}
Symbol 173 Button
on (release) {
_root.world.WorldTotal.gotoAndStop(1);
_root.FindingQuest = 1;
_root.BallFound = 0;
_root.TextBox.gotoAndStop(1);
}
Symbol 174 MovieClip Frame 1
stop();
Symbol 174 MovieClip Frame 2
stop();
Instance of Symbol 150 MovieClip in Symbol 174 MovieClip Frame 2
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_root.world.WorldTotal.gotoAndStop(1);
_root.TextBox.gotoAndStop(1);
}
}
Symbol 174 MovieClip Frame 3
stop();
Symbol 174 MovieClip Frame 4
stop();
Symbol 174 MovieClip Frame 5
stop();
Symbol 174 MovieClip Frame 6
stop();
Symbol 174 MovieClip Frame 7
stop();
Symbol 174 MovieClip Frame 8
stop();
Symbol 174 MovieClip Frame 9
stop();
Symbol 176 MovieClip Frame 1
stop();
Symbol 176 MovieClip Frame 2
stop();
Symbol 186 Button
on (release) {
if (_root.PTS > 0) {
if (_root.STR < 10) {
_root.STR++;
_root.PTS--;
}
}
}
Symbol 187 Button
on (release) {
if (_root.PTS > 0) {
if (_root.DEF < 10) {
_root.DEF++;
_root.PTS--;
}
}
}
Symbol 188 Button
on (release) {
if (_root.PTS > 0) {
if (_root.FRC < 10) {
_root.FRC++;
_root.PTS--;
}
}
}
Symbol 201 Button
on (release) {
_root.APPLE--;
_root.gHP = _root.gHP + 40;
if (_root.gHP > _root.onHP) {
_root.gHP = _root.onHP;
}
}
Symbol 202 MovieClip Frame 1
stop();
Symbol 202 MovieClip Frame 2
stop();
Symbol 205 Button
on (release) {
_root.CHOCOLATE--;
_root.gHP = _root.gHP + 100;
if (_root.gHP > _root.onHP) {
_root.gHP = _root.onHP;
}
}
Symbol 206 MovieClip Frame 1
stop();
Symbol 206 MovieClip Frame 2
stop();
Symbol 209 Button
on (release) {
_root.VITAMIN--;
_root.gMP = _root.gMP + 30;
if (_root.gMP > _root.onMP) {
_root.gMP = _root.onMP;
}
}
Symbol 210 MovieClip Frame 1
stop();
Symbol 210 MovieClip Frame 2
stop();
Symbol 213 Button
on (release) {
_root.VITAMINX--;
_root.gMP = _root.gMP + 80;
if (_root.gMP > _root.onMP) {
_root.gMP = _root.onMP;
}
}
Symbol 214 MovieClip Frame 1
stop();
Symbol 214 MovieClip Frame 2
stop();
Symbol 217 MovieClip Frame 1
stop();
Symbol 217 MovieClip Frame 2
stop();
Instance of Symbol 202 MovieClip "AppleItem" in Symbol 219 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.APPLE > 0) {
_root.BackPack.AppleItem.gotoAndStop(2);
} else {
_root.BackPack.AppleItem.gotoAndStop(1);
}
}
Instance of Symbol 206 MovieClip "ChocolateItem" in Symbol 219 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.CHOCOLATE > 0) {
_root.BackPack.ChocolateItem.gotoAndStop(2);
} else {
_root.BackPack.ChocolateItem.gotoAndStop(1);
}
}
Instance of Symbol 210 MovieClip "VitaminItem" in Symbol 219 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.VITAMIN > 0) {
_root.BackPack.VitaminItem.gotoAndStop(2);
} else {
_root.BackPack.VitaminItem.gotoAndStop(1);
}
}
Instance of Symbol 214 MovieClip "VitaminxItem" in Symbol 219 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.VITAMINX > 0) {
_root.BackPack.VitaminxItem.gotoAndStop(2);
} else {
_root.BackPack.VitaminxItem.gotoAndStop(1);
}
}
Instance of Symbol 217 MovieClip "BullEyeItem" in Symbol 219 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.BULLEYE > 0) {
_root.BackPack.BullEyeItem.gotoAndStop(2);
} else {
_root.BackPack.BullEyeItem.gotoAndStop(1);
}
}
Symbol 223 Button
on (release) {
_root.SaveScreen.gotoAndStop(3);
}
Symbol 226 Button
on (release) {
_root.SaveScreen.gotoAndStop(27);
}
Symbol 229 Button
on (release) {
if (_root.FinalQuest == 2) {
_root.SaveScreen.gotoAndStop(28);
} else {
_root.error.play();
}
}
Symbol 232 Button
on (release) {
_root.world.WorldTotal.gotoAndStop(1);
_root.Decor.Computer.gotoAndStop(1);
_root.SaveScreen.gotoAndStop(1);
}
Symbol 234 Button
on (release) {
_root.PlayerY = _root.player._y;
_root.PlayerX = _root.player._x;
_root.savefile.data.PlayerY = _root.PlayerY;
_root.savefile.data.PlayerX = _root.PlayerX;
_root.savefile.data.gMP = _root.gMP;
_root.savefile.data.gHP = _root.gHP;
_root.savefile.data.gEXP = _root.gEXP;
_root.savefile.data.PTS = _root.PTS;
_root.savefile.data.STR = _root.STR;
_root.savefile.data.DEF = _root.DEF;
_root.savefile.data.FRC = _root.FRC;
_root.savefile.data.gLevel = _root.gLevel;
_root.savefile.data.APPLE = _root.APPLE;
_root.savefile.data.CHOCOLATE = _root.CHOCOLATE;
_root.savefile.data.VITAMIN = _root.VITAMIN;
_root.savefile.data.VITAMINX = _root.VITAMINX;
_root.savefile.data.BULLEYE = _root.BULLEYE;
_root.savefile.data.IntroQuest = _root.IntroQuest;
_root.savefile.data.LetterQuest = _root.LetterQuest;
_root.savefile.data.arrayLETTER = _root.arrayLETTER;
_root.savefile.data.LetterQuestNB = _root.LetterQuestNB;
_root.savefile.data.MayorQuest = _root.MayorQuest;
_root.savefile.data.KeyFound = _root.KeyFound;
_root.savefile.data.KillingQuest = _root.KillingQuest;
_root.savefile.data.HexWareKilled = _root.HexWareKilled;
_root.savefile.data.FinalQuest = _root.FinalQuest;
_root.savefile.data.BossDead = _root.BossDead;
_root.savefile.data.InvestigationQuest = _root.InvestigationQuest;
_root.savefile.data.NbEvidence = _root.NbEvidence;
_root.savefile.data.FindingQuest = _root.FindingQuest;
_root.savefile.data.BallFound = _root.BallFound;
_root.savefile.data.SemiFinalBoss = _root.SemiFinalBoss;
_root.savefile.data.Name = _root.Name;
_root.savefile.data.arraySWITCH = _root.arraySWITCH;
_root.savefile.data.HP = _root.HP;
_root.savefile.data.gGold = _root.gGold;
_root.savefile.flush();
_root.SaveScreen.play();
}
Symbol 236 Button
on (release) {
_root.SaveScreen.gotoAndStop(2);
}
Symbol 241 Button
on (release) {
_root.SaveScreen.gotoAndStop(2);
}
Symbol 242 Button
on (release) {
stopAllSounds();
_root.Death = 2;
_root.gotoAndStop("Loaded");
}
Symbol 247 Button
on (release) {
stopAllSounds();
_root.NoRunBattle = 0;
_root.EnemyBattle = 1;
_root.ComputerON = 1;
_root.SaveScreen.gotoAndStop(1);
_root.FadeIn2.play();
}
Symbol 250 Button
on (release) {
stopAllSounds();
_root.NoRunBattle = 0;
_root.EnemyBattle = 2;
_root.ComputerON = 1;
_root.SaveScreen.gotoAndStop(1);
_root.FadeIn2.play();
}
Symbol 253 Button
on (release) {
stopAllSounds();
_root.NoRunBattle = 0;
_root.EnemyBattle = 3;
_root.ComputerON = 1;
_root.SaveScreen.gotoAndStop(1);
_root.FadeIn2.play();
}
Symbol 256 Button
on (release) {
stopAllSounds();
_root.NoRunBattle = 0;
_root.EnemyBattle = 4;
_root.ComputerON = 1;
_root.SaveScreen.gotoAndStop(1);
_root.FadeIn2.play();
}
Symbol 259 Button
on (release) {
stopAllSounds();
_root.NoRunBattle = 0;
_root.EnemyBattle = 5;
_root.ComputerON = 1;
_root.SaveScreen.gotoAndStop(1);
_root.FadeIn2.play();
}
Symbol 262 Button
on (release) {
stopAllSounds();
_root.NoRunBattle = 0;
_root.EnemyBattle = 6;
_root.ComputerON = 1;
_root.SaveScreen.gotoAndStop(1);
_root.FadeIn2.play();
}
Symbol 265 Button
on (release) {
stopAllSounds();
_root.NoRunBattle = 0;
_root.EnemyBattle = 7;
_root.ComputerON = 1;
_root.SaveScreen.gotoAndStop(1);
_root.FadeIn2.play();
}
Symbol 268 Button
on (release) {
_root.SaveScreen.gotoAndStop(2);
}
Symbol 269 MovieClip Frame 1
stop();
Symbol 269 MovieClip Frame 2
_root.SaveScreen.Welcome = (("Welcome " + _root.Name) + newline) + "What would you like to do?";
stop();
Symbol 269 MovieClip Frame 3
stop();
Symbol 269 MovieClip Frame 26
stop();
Symbol 269 MovieClip Frame 27
stop();
Symbol 269 MovieClip Frame 28
_root.ComputerON = 0;
stop();
Symbol 278 MovieClip Frame 1
stop();
Symbol 278 MovieClip Frame 2
stop();
Symbol 281 MovieClip Frame 1
stop();
Symbol 281 MovieClip Frame 2
stop();
Symbol 284 MovieClip Frame 1
stop();
Symbol 284 MovieClip Frame 2
stop();
Symbol 287 MovieClip Frame 1
stop();
Symbol 287 MovieClip Frame 2
stop();
Symbol 290 MovieClip Frame 1
stop();
Symbol 290 MovieClip Frame 2
stop();
Symbol 293 MovieClip Frame 1
stop();
Symbol 293 MovieClip Frame 2
stop();
Instance of Symbol 278 MovieClip "LETTERQUEST" in Symbol 294 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.LetterQuest == 0) {
_root.QuestLog.LETTERQUEST.gotoAndStop(1);
} else if (_root.LetterQuest == 1) {
_root.QuestLog.LETTERQUEST.gotoAndStop(2);
_root.QuestLog.LETTERQUEST.Q1P = "Pending";
} else if (_root.LetterQuest == 2) {
_root.QuestLog.LETTERQUEST.gotoAndStop(2);
_root.QuestLog.LETTERQUEST.Q1P = "Done";
}
}
on (rollOver) {
if (_root.LetterQuest == 1) {
_root.QuestLog.CURRENTLY = ("You curently have " + _root.LetterQuestNB) + " letters";
} else {
_root.QuestLog.CURRENTLY = "Quest complete";
}
}
Instance of Symbol 281 MovieClip "MAYORQUEST" in Symbol 294 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.MayorQuest == 0) {
_root.QuestLog.MAYORQUEST.gotoAndStop(1);
} else if (_root.MayorQuest == 1) {
_root.QuestLog.MAYORQUEST.gotoAndStop(2);
_root.QuestLog.MAYORQUEST.Q1P = "Pending";
} else if (_root.MayorQuest == 2) {
_root.QuestLog.MAYORQUEST.gotoAndStop(2);
_root.QuestLog.MAYORQUEST.Q1P = "Done";
}
}
on (rollOver) {
if ((_root.MayorQuest == 1) && (_root.KeyFound == 0)) {
_root.QuestLog.CURRENTLY = "You don't have the key yet!";
} else if ((_root.MayorQuest == 1) && (_root.KeyFound == 1)) {
_root.QuestLog.CURRENTLY = "You have the key!";
} else {
_root.QuestLog.CURRENTLY = "Quest complete";
}
}
Instance of Symbol 284 MovieClip "KILLINGQUEST" in Symbol 294 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.KillingQuest == 0) {
_root.QuestLog.KILLINGQUEST.gotoAndStop(1);
} else if (_root.KillingQuest == 1) {
_root.QuestLog.KILLINGQUEST.gotoAndStop(2);
_root.QuestLog.KILLINGQUEST.Q1P = "Pending";
} else if (_root.KillingQuest == 2) {
_root.QuestLog.KILLINGQUEST.gotoAndStop(2);
_root.QuestLog.KILLINGQUEST.Q1P = "Done";
}
}
on (rollOver) {
if (_root.KillingQuest == 1) {
_root.QuestLog.CURRENTLY = ("You have curently beated " + _root.HexWareKilled) + " Hex-Ware";
} else {
_root.QuestLog.CURRENTLY = "Quest complete";
}
}
Instance of Symbol 287 MovieClip "FINALQUEST" in Symbol 294 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.FinalQuest == 0) {
_root.QuestLog.FINALQUEST.gotoAndStop(1);
} else if (_root.FinalQuest == 1) {
_root.QuestLog.FINALQUEST.gotoAndStop(2);
_root.QuestLog.FINALQUEST.Q1P = "Pending";
} else if (_root.FinalQuest == 2) {
_root.QuestLog.FINALQUEST.gotoAndStop(2);
_root.QuestLog.FINALQUEST.Q1P = "Done";
}
}
on (rollOver) {
if (_root.FinalQuest == 1) {
if (_root.BossDead == 0) {
_root.QuestLog.CURRENTLY = "You haven't beat the creature yet";
} else if (_root.BossDead == 1) {
_root.QuestLog.CURRENTLY = "You have beaten the creature";
} else {
_root.QuestLog.CURRENTLY = "Quest complete";
}
}
}
Instance of Symbol 290 MovieClip "INVESTIGATIONQUEST" in Symbol 294 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.InvestigationQuest == 0) {
_root.QuestLog.INVESTIGATIONQUEST.gotoAndStop(1);
} else if (_root.InvestigationQuest == 1) {
_root.QuestLog.INVESTIGATIONQUEST.gotoAndStop(2);
_root.QuestLog.INVESTIGATIONQUEST.Q1P = "Pending";
} else if (_root.InvestigationQuest == 2) {
_root.QuestLog.INVESTIGATIONQUEST.gotoAndStop(2);
_root.QuestLog.INVESTIGATIONQUEST.Q1P = "Done";
}
}
on (rollOver) {
if (_root.InvestigationQuest == 1) {
_root.QuestLog.CURRENTLY = ("You curently have " + _root.NbEvidence) + " peice of evidence";
} else {
_root.QuestLog.CURRENTLY = "Quest complete";
}
}
Instance of Symbol 293 MovieClip "FINDINGQUEST" in Symbol 294 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.FindingQuest == 0) {
_root.QuestLog.FINDINGQUEST.gotoAndStop(1);
} else if (_root.FindingQuest == 1) {
_root.QuestLog.FINDINGQUEST.gotoAndStop(2);
_root.QuestLog.FINDINGQUEST.Q1P = "Pending";
} else if (_root.FindingQuest == 2) {
_root.QuestLog.FINDINGQUEST.gotoAndStop(2);
_root.QuestLog.FINDINGQUEST.Q1P = "Done";
}
}
on (rollOver) {
if ((_root.FindingQuest == 1) && (_root.BallFound == 0)) {
_root.QuestLog.CURRENTLY = "You havn't found the crystal ball yet.";
} else if ((_root.FindingQuest == 1) && (_root.BallFound == 1)) {
_root.QuestLog.CURRENTLY = "You have the crystal ball.";
} else {
_root.QuestLog.CURRENTLY = "Quest complete";
}
}
Symbol 329 MovieClip Frame 30
if (_root.gHP < _root.onHP) {
_root.gHP++;
}
Symbol 334 MovieClip Frame 90
_root.ESpawn = Math.round(Math.random() * 20);
gotoAndPlay (60);
Symbol 349 MovieClip Frame 1
stop();
Symbol 349 MovieClip Frame 2
stop();
Symbol 356 MovieClip Frame 1
stop();
Symbol 356 MovieClip Frame 2
stop();
Instance of Symbol 351 MovieClip "Pancarte02" in Symbol 357 MovieClip Frame 1
on (release) {
if (this.hitTest(_root.player)) {
_root.world.WorldTotal.gotoAndStop(2);
_root.TextBox.gotoAndStop(2);
_root.TextBox.MSG = _root.Name + "'s house";
}
}
on (rollOver) {
_root.world.Pancarte02.useHandCursor = false;
}
Instance of Symbol 351 MovieClip "Pancarte01" in Symbol 357 MovieClip Frame 1
on (release) {
if (this.hitTest(_root.player)) {
_root.world.WorldTotal.gotoAndStop(2);
_root.TextBox.gotoAndStop(2);
_root.TextBox.MSG = "Eddy's house";
}
}
on (rollOver) {
_root.world.Pancarte01.useHandCursor = false;
}
Instance of Symbol 354 MovieClip "door" in Symbol 357 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.Door.play();
_root.Emplacement = 2;
_root.FadeIn.play();
}
}
Instance of Symbol 354 MovieClip in Symbol 357 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.Door.play();
_root.Emplacement = 1;
_root.FadeIn.play();
}
}
Symbol 362 MovieClip Frame 1
stop();
Symbol 362 MovieClip Frame 11
switch (_root.Emplacement) {
case 0 :
_root.gotoAndStop("PlayerHome");
break;
case 1 :
_root.gotoAndStop("EddyHouse");
break;
case 2 :
_root.gotoAndStop("PlayerHouse");
break;
case 3 :
_root.gotoAndStop("CentralSquare");
break;
case 4 :
_root.gotoAndStop("Village");
break;
case 5 :
_root.gotoAndStop("Shop");
break;
case 6 :
_root.gotoAndStop("Overworld");
break;
case 7 :
_root.gotoAndStop("Overworld02");
break;
case 8 :
_root.gotoAndStop("Overworld03");
break;
case 9 :
_root.gotoAndStop("Overworld04");
break;
case 10 :
_root.gotoAndStop("Overworld05");
break;
case 11 :
_root.gotoAndStop("Overworld06");
break;
case 12 :
_root.gotoAndStop("Overworld07");
break;
case 13 :
_root.gotoAndStop("Overworld08");
break;
case 14 :
_root.gotoAndStop("Cavern01");
break;
case 15 :
_root.gotoAndStop("Cavern02");
break;
case 16 :
_root.gotoAndStop("Cavern03");
break;
case 17 :
_root.gotoAndStop("Cavern04");
break;
case 18 :
_root.gotoAndStop("Cavern05");
break;
case 19 :
_root.gotoAndStop("Cavern06");
break;
case 20 :
_root.gotoAndStop("MayorHouse");
break;
case 21 :
_root.gotoAndStop("MayorHouse");
break;
case 100 :
_root.gotoAndStop("GAMEOVER");
}
Symbol 369 MovieClip Frame 1
stop();
Symbol 369 MovieClip Frame 2
_root.world.WorldTotal.gotoAndStop(2);
Symbol 369 MovieClip Frame 40
if (_root.EnemyBattle == 1) {
_root.gotoAndStop("Trio-Angle");
} else if (_root.EnemyBattle == 2) {
_root.gotoAndStop("Tripento");
} else if (_root.EnemyBattle == 3) {
_root.gotoAndStop("Ocato");
} else if (_root.EnemyBattle == 4) {
_root.gotoAndStop("DeadSquare");
} else if (_root.EnemyBattle == 5) {
_root.gotoAndStop("HexWare");
} else if (_root.EnemyBattle == 6) {
_root.gotoAndStop("BrokenStar");
} else if (_root.EnemyBattle == 7) {
_root.gotoAndStop("???");
}
Symbol 374 MovieClip Frame 1
stop();
Symbol 374 MovieClip Frame 2
_root.House.gotoAndStop(1);
stopAllSounds();
Symbol 374 MovieClip Frame 60
_root.gHP = _root.onHP;
Symbol 374 MovieClip Frame 70
_root.world.WorldTotal.gotoAndStop(1);
_root.House.gotoAndStop(2);
Symbol 376 MovieClip Frame 10
stop();
Symbol 388 MovieClip Frame 1
stop();
Symbol 390 MovieClip Frame 1
stop();
Symbol 392 MovieClip Frame 1
stop();
Symbol 394 MovieClip Frame 1
stop();
Symbol 398 MovieClip Frame 1
stop();
Symbol 398 MovieClip Frame 2
stop();
Symbol 402 MovieClip Frame 1
stop();
Symbol 402 MovieClip Frame 2
stop();
Instance of Symbol 402 MovieClip "Computer" in Symbol 403 MovieClip Frame 1
on (release) {
if (this.hitTest(_root.player)) {
_root.world.WorldTotal.gotoAndStop(2);
_root.Decor.Computer.gotoAndStop(2);
_root.SaveScreen.gotoAndStop(2);
}
}
on (rollOver) {
_root.world.Computer.useHandCursor = false;
}
Symbol 409 MovieClip Frame 1
stop();
Instance of Symbol 407 MovieClip "Bed" in Symbol 409 MovieClip Frame 1
on (release) {
if (this.hitTest(_root.player)) {
_root.world.WorldTotal.gotoAndStop(2);
_root.FadeInOut.play();
}
}
on (rollOver) {
_root.world.Bed.useHandCursor = false;
}
Instance of Symbol 414 MovieClip "Teddy" in Symbol 416 MovieClip Frame 1
on (release) {
if (this.hitTest(_root.player)) {
_root.world.WorldTotal.gotoAndStop(2);
if (_root.gLevel == 1) {
_root.TextBox.gotoAndStop(2);
_root.TextBox.MSG = ("So " + _root.Name) + ", I heard you are leaving town...";
} else if ((_root.gLevel > 1) && (_root.LetterQuest == 0)) {
_root.TextBox.gotoAndStop(3);
_root.TextBox.MSG = "I need your help. When I came back to town yesterday, I lost 5 letters. Can you find them for me ?";
} else if (_root.LetterQuest == 1) {
_root.TextBox.gotoAndStop(2);
if (_root.LetterQuestNB != 4) {
_root.TextBox.MSG = ("There are still " + (5 - _root.LetterQuestNB)) + " letters remaining!";
} else {
_root.TextBox.MSG = ("There is still " + (5 - _root.LetterQuestNB)) + " letter remaining!";
}
if (_root.LetterQuestNB == 5) {
_root.TextBox.MSG = "Thanks a lot! Here's your reward.\r<font size=\"12\" color=\"#000000\">You have gained 20 golds</font>\r<font size=\"12\" color=\"#000000\">You have gained 35 experiences</font>";
_root.gGold = _root.gGold + 20;
_root.gEXP = _root.gEXP + 35;
_root.LetterQuest = 2;
}
} else if (_root.LetterQuest == 2) {
_root.TextBox.gotoAndStop(2);
_root.TextBox.MSG = "Thanks again for your help!";
}
}
}
on (rollOver) {
_root.world.Teddy.useHandCursor = false;
}
Symbol 424 MovieClip Frame 1
stop();
Instance of Symbol 351 MovieClip "Pancarte03" in Symbol 424 MovieClip Frame 1
on (release) {
if (this.hitTest(_root.player)) {
_root.world.WorldTotal.gotoAndStop(2);
_root.TextBox.gotoAndStop(2);
_root.TextBox.MSG = "Mayor's office";
}
}
on (rollOver) {
_root.world.Pancarte03.useHandCursor = false;
}
Instance of Symbol 414 MovieClip "NPC02" in Symbol 424 MovieClip Frame 1
on (release) {
if (this.hitTest(_root.player)) {
_root.world.WorldTotal.gotoAndStop(2);
if (_root.IntroQuest == 0) {
_root.TextBox.gotoAndStop(2);
_root.TextBox.MSG = "I don't know why, but some Trio-Angle randomly started to attack the town. You will have to be a strong fighter like me if you dont want to survive out there.";
} else if (_root.IntroQuest == 1) {
_root.TextBox.gotoAndStop(2);
_root.TextBox.MSG = "Kill it! Kill it!";
} else if (_root.IntroQuest == 2) {
_root.TextBox.gotoAndStop(2);
_root.TextBox.MSG = "Hehe... Well you passed my test so I can let you go.";
}
}
}
on (rollOver) {
_root.world.NPC02.useHandCursor = false;
}
Instance of Symbol 414 MovieClip "NPC01" in Symbol 424 MovieClip Frame 1
on (release) {
if (this.hitTest(_root.player)) {
_root.world.WorldTotal.gotoAndStop(2);
_root.TextBox.gotoAndStop(2);
_root.TextBox.MSG = "Sorry, I can't let you go inside.";
}
}
on (rollOver) {
_root.world.NPC01.useHandCursor = false;
}
Symbol 424 MovieClip Frame 2
stop();
Instance of Symbol 414 MovieClip in Symbol 424 MovieClip Frame 2
on (release) {
if (this.hitTest(_root.player)) {
_root.world.WorldTotal.gotoAndStop(2);
if (_root.IntroQuest == 0) {
_root.TextBox.gotoAndStop(2);
_root.TextBox.MSG = "There is alot of trio-angle out side right now. You must be a strong fighter like me if you want to pass.";
} else if (_root.IntroQuest == 1) {
_root.TextBox.gotoAndStop(2);
_root.TextBox.MSG = "Ewwww! Kill it! Kill it!";
} else if (_root.IntroQuest == 2) {
_root.TextBox.gotoAndStop(2);
_root.TextBox.MSG = "Hehe... Well you passed my test so I can let you go.";
}
}
}
on (rollOver) {
_root.world.NPC02.useHandCursor = false;
}
Symbol 424 MovieClip Frame 3
stop();
Instance of Symbol 414 MovieClip in Symbol 424 MovieClip Frame 3
on (release) {
if (this.hitTest(_root.player)) {
if (_root.MayorQuest == 2) {
_root.world.WorldTotal.gotoAndStop(2);
_root.TextBox.gotoAndStop(2);
_root.TextBox.MSG = "You should not disturb the mayor during his 'work' time.";
} else {
_root.world.WorldTotal.gotoAndStop(2);
_root.TextBox.gotoAndStop(2);
_root.TextBox.MSG = "You can meet the mayor if you are to solve his problem.";
}
}
}
on (rollOver) {
_root.world.NPC01.useHandCursor = false;
}
Instance of Symbol 423 MovieClip in Symbol 424 MovieClip Frame 3
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.Door.play();
_root.Emplacement = 20;
_root.FadeIn.play();
}
}
Symbol 426 MovieClip Frame 1
stop();
Symbol 426 MovieClip Frame 2
stop();
Instance of Symbol 354 MovieClip in Symbol 434 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.Door.play();
_root.Emplacement = 5;
_root.FadeIn.play();
}
}
Instance of Symbol 414 MovieClip "NPC03" in Symbol 434 MovieClip Frame 1
on (release) {
if (this.hitTest(_root.player)) {
_root.world.WorldTotal.gotoAndStop(2);
if ((_root.LetterQuest == 1) && (_root.arrayLETTER[3] == 0)) {
_root.arrayLETTER[3] = 1;
_root.LetterQuestNB++;
_root.TextBox.gotoAndStop(2);
_root.TextBox.MSG = "I just found this letter. Take it if you want.\r<font size=\"12\" color=\"#000000\">You have received a letter</font>";
} else {
_root.TextBox.gotoAndStop(2);
_root.TextBox.MSG = "Hey!";
}
}
}
on (rollOver) {
_root.world.NPC03.useHandCursor = false;
}
Instance of Symbol 351 MovieClip "Pancarte04" in Symbol 434 MovieClip Frame 1
on (release) {
if (this.hitTest(_root.player)) {
_root.world.WorldTotal.gotoAndStop(2);
_root.TextBox.gotoAndStop(2);
_root.TextBox.MSG = "Square Town Shop";
}
}
on (rollOver) {
_root.world.Pancarte04.useHandCursor = false;
}
Symbol 443 MovieClip Frame 1
stop();
Instance of Symbol 414 MovieClip in Symbol 443 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
if (Key.isDown(90)) {
_root.TextBox.gotoAndStop(2);
_root.TextBox.MSG = "Hey!";
}
}
}
Instance of Symbol 414 MovieClip "NPC05" in Symbol 443 MovieClip Frame 1
on (release) {
if (this.hitTest(_root.player)) {
if ((_root.LetterQuest == 1) && (_root.arrayLETTER[4] == 0)) {
_root.world.WorldTotal.gotoAndStop(2);
_root.TextBox.gotoAndStop(2);
_root.TextBox.MSG = "There is a letter in the fridge over there.";
} else if (_root.arrayLETTER[4] == 1) {
_root.world.WorldTotal.gotoAndStop(2);
_root.TextBox.gotoAndStop(2);
_root.TextBox.MSG = "Hmmm... I forgot why I came here.";
} else {
_root.world.WorldTotal.gotoAndStop(2);
_root.TextBox.gotoAndStop(2);
_root.TextBox.MSG = "Lots of people need help with someting. Look around and try to help them!";
}
}
}
on (rollOver) {
_root.world.NPC05.useHandCursor = false;
}
Instance of Symbol 414 MovieClip "NPC04" in Symbol 443 MovieClip Frame 1
on (release) {
if (this.hitTest(_root.player)) {
_root.world.WorldTotal.gotoAndStop(2);
_root.TextBox.gotoAndStop(2);
_root.TextBox.MSG = "Hmmm... What should I choose ?";
}
}
on (rollOver) {
_root.world.NPC04.useHandCursor = false;
}
Instance of Symbol 439 MovieClip "BOX09" in Symbol 443 MovieClip Frame 1
on (release) {
if (this.hitTest(_root.player)) {
_root.world.WorldTotal.gotoAndStop(2);
if ((_root.LetterQuest == 1) && (_root.arrayLETTER[4] == 0)) {
_root.arrayLETTER[4] = 1;
_root.LetterQuestNB++;
_root.TextBox.gotoAndStop(2);
_root.TextBox.MSG = "You found a letter!";
} else {
_root.TextBox.gotoAndStop(2);
_root.TextBox.MSG = "There nothing interesting.";
}
}
}
on (rollOver) {
_root.world.BOX09.useHandCursor = false;
}
Instance of Symbol 442 MovieClip "Box123" in Symbol 443 MovieClip Frame 1
on (release) {
if (this.hitTest(_root.player)) {
_root.world.WorldTotal.gotoAndStop(2);
_root.TextBox.gotoAndStop(2);
_root.TextBox.MSG = "There nothing interesting.";
}
}
on (rollOver) {
_root.world.BOX123.useHandCursor = false;
}
Instance of Symbol 442 MovieClip "Box456" in Symbol 443 MovieClip Frame 1
on (release) {
if (this.hitTest(_root.player)) {
_root.world.WorldTotal.gotoAndStop(2);
_root.TextBox.gotoAndStop(2);
_root.TextBox.MSG = "There nothing interesting.";
}
}
on (rollOver) {
_root.world.BOX123.useHandCursor = false;
}
Instance of Symbol 442 MovieClip "Box78" in Symbol 443 MovieClip Frame 1
on (release) {
if (this.hitTest(_root.player)) {
_root.world.WorldTotal.gotoAndStop(2);
_root.TextBox.gotoAndStop(2);
_root.TextBox.MSG = "There nothing interesting.";
}
}
on (rollOver) {
_root.world.BOX78.useHandCursor = false;
}
Symbol 463 MovieClip Frame 1
stop();
Symbol 463 MovieClip Frame 2
stop();
Symbol 463 MovieClip Frame 3
stop();
Symbol 463 MovieClip Frame 4
stop();
Symbol 463 MovieClip Frame 5
stop();
Symbol 463 MovieClip Frame 6
stop();
Symbol 465 Button
on (release) {
if ((_root.gGold >= 2) && (_root.APPLE < 100)) {
_root.Cash.play();
_root.gGold = _root.gGold - 2;
_root.APPLE++;
} else {
_root.error.play();
}
}
Symbol 466 Button
on (release) {
if ((_root.gGold >= 10) && (_root.CHOCOLATE < 100)) {
_root.Cash.play();
_root.gGold = _root.gGold - 10;
_root.CHOCOLATE++;
} else {
_root.error.play();
}
}
Symbol 467 Button
on (release) {
if ((_root.gGold >= 5) && (_root.VITAMIN < 100)) {
_root.Cash.play();
_root.gGold = _root.gGold - 5;
_root.VITAMIN++;
} else {
_root.error.play();
}
}
Symbol 468 Button
on (release) {
if ((_root.gGold >= 20) && (_root.VITAMINX < 100)) {
_root.Cash.play();
_root.gGold = _root.gGold - 20;
_root.VITAMINX++;
} else {
_root.error.play();
}
}
Symbol 469 Button
on (release) {
if (_root.BULLEYE == 0) {
if (_root.gGold >= 600) {
_root.Cash.play();
_root.gGold = _root.gGold - 600;
_root.BULLEYE = 1;
} else {
_root.error.play();
}
} else {
_root.error.play();
}
}
Symbol 470 Button
on (rollOver) {
_root.ItemShop.HELP.gotoAndStop(2);
}
Symbol 471 Button
on (rollOver) {
_root.ItemShop.HELP.gotoAndStop(3);
}
Symbol 472 Button
on (rollOver) {
_root.ItemShop.HELP.gotoAndStop(4);
}
Symbol 473 Button
on (rollOver) {
_root.ItemShop.HELP.gotoAndStop(5);
}
Symbol 474 Button
on (rollOver) {
_root.ItemShop.HELP.gotoAndStop(6);
}
Symbol 475 MovieClip Frame 1
stop();
Symbol 475 MovieClip Frame 2
stop();
Instance of Symbol 349 MovieClip "LetterNO3" in Symbol 478 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((_root.arrayLETTER[2] == 0) && (_root.LetterQuest == 1)) {
_root.Decor.LetterNO3.gotoAndStop(2);
} else {
_root.Decor.LetterNO3.gotoAndStop(1);
}
}
on (release) {
if (this.hitTest(_root.player)) {
_root.arrayLETTER[2] = 1;
_root.LetterQuestNB++;
_root.TextBox.gotoAndStop(2);
_root.TextBox.MSG = "You found a letter!";
}
}
on (rollOver) {
_root.Decor.LetterNO3.useHandCursor = false;
}
Instance of Symbol 351 MovieClip "Pancarte05" in Symbol 482 MovieClip Frame 1
on (release) {
if (this.hitTest(_root.player)) {
_root.world.WorldTotal.gotoAndStop(2);
_root.TextBox.gotoAndStop(2);
_root.TextBox.MSG = "Welcome To Square Town";
}
}
on (rollOver) {
_root.world.Pancarte05.useHandCursor = false;
}
Symbol 490 MovieClip Frame 1
stop();
Symbol 490 MovieClip Frame 2
stop();
Symbol 496 MovieClip Frame 1
stop();
Symbol 496 MovieClip Frame 30
stop();
Symbol 498 MovieClip Frame 1
stop();
Instance of Symbol 351 MovieClip "Pancarte06" in Symbol 498 MovieClip Frame 1
on (release) {
if (this.hitTest(_root.player)) {
_root.world.WorldTotal.gotoAndStop(2);
_root.TextBox.gotoAndStop(2);
_root.TextBox.MSG = "Square Mine.\rClosed due to the strange disparition of workers.";
}
}
on (rollOver) {
_root.world.Pancarte06.useHandCursor = false;
}
Symbol 498 MovieClip Frame 2
stop();
Instance of Symbol 496 MovieClip "TrioNPC" in Symbol 498 MovieClip Frame 2
on (release) {
if (this.hitTest(_root.player)) {
_root.world.WorldTotal.gotoAndStop(2);
_root.TextBox.gotoAndStop(6);
_root.TextBox.MSG = "Kill the mysterious monster in the Square mine and I will let you pass.";
}
}
on (rollOver) {
_root.world.TrioNPC.useHandCursor = false;
}
Instance of Symbol 404 MovieClip "SecTalk" in Symbol 498 MovieClip Frame 2
on (release) {
if (this.hitTest(_root.player)) {
if (_root.KillingQuest == 0) {
_root.world.WorldTotal.gotoAndStop(2);
_root.TextBox.gotoAndStop(5);
_root.TextBox.MSG = "I got attacked by some Hex-Ware yesterday. Beat 8 of them and ill let you play a little game that might get you some extra golds!";
} else if ((_root.KillingQuest == 1) && (_root.HexWareKilled < 8)) {
_root.world.WorldTotal.gotoAndStop(2);
_root.TextBox.gotoAndStop(2);
_root.TextBox.MSG = ("Only " + (8 - _root.HexWareKilled)) + " more to go!";
} else if ((_root.KillingQuest == 1) && (_root.HexWareKilled >= 8)) {
_root.world.WorldTotal.gotoAndStop(2);
_root.TextBox.gotoAndStop(2);
_root.TextBox.MSG = "Good job! Now ill open up my small game.\r<font size=\"12\" color=\"#000000\">You have gained 140 experiences</font>";
_root.gEXP = _root.gEXP + 140;
_root.KillingQuest = 2;
} else if (_root.KillingQuest == 2) {
_root.world.WorldTotal.gotoAndStop(2);
_root.TextBox.gotoAndStop(7);
_root.TextBox.MSG = "Ready to test your luck?";
}
}
}
on (rollOver) {
_root.World.SecTalk.useHandCursor = false;
}
Instance of Symbol 414 MovieClip "NPC" in Symbol 498 MovieClip Frame 2
on (release) {
if (this.hitTest(_root.player)) {
if (_root.InvestigationQuest == 0) {
_root.world.WorldTotal.gotoAndStop(2);
_root.TextBox.gotoAndStop(8);
_root.TextBox.MSG = "The mayor asked me to investigate into the square mine to see what hapenned to the workers. But I kind of feel sick right now... You think you could do that investigation for me ?";
} else if ((_root.InvestigationQuest == 1) && (_root.NbEvidence < 2)) {
_root.world.WorldTotal.gotoAndStop(2);
_root.TextBox.gotoAndStop(2);
_root.TextBox.MSG = "You better get started... I don't have all day.";
} else if ((_root.InvestigationQuest == 1) && (_root.NbEvidence == 2)) {
_root.world.WorldTotal.gotoAndStop(2);
_root.TextBox.gotoAndStop(2);
_root.TextBox.MSG = "Thats perfect! Here's a gift to thank you.\r<font size=\"12\" color=\"#000000\">You have gained 30 golds</font>\r<font size=\"12\" color=\"#000000\">You have gained 110 experiences</font>";
_root.InvestigationQuest = 2;
_root.gGold = _root.gGold + 30;
_root.gEXP = _root.gEXP + 110;
} else if (_root.InvestigationQuest == 2) {
_root.world.WorldTotal.gotoAndStop(2);
_root.TextBox.gotoAndStop(2);
_root.TextBox.MSG = "You did an amasing job! Thanks.";
}
}
}
on (rollOver) {
_root.world.NPC.useHandCursor = false;
}
Symbol 502 Button
on (release) {
if (_root.GameOn == 0) {
stopAllSounds();
_root.Overworld.gotoAndStop(2);
_root.CasinoMusique.gotoAndStop(1);
_root.world.WorldTotal.gotoAndStop(1);
_root.TextBox.gotoAndStop(1);
_root.Casino.gotoAndStop(1);
} else {
_root.Casino.MSG.gotoAndPlay(2);
_root.Casino.MSG.CasinoMSG = "Complete your game before leaving!";
_root.error.play();
}
}
Symbol 517 Button
on (release) {
if ((_root.gGold >= 10) && (_root.GameOn == 0)) {
_root.Casino.Cards.play();
_root.gGold = _root.gGold - 10;
_root.GameOn = 1;
} else if (_root.GameOn == 1) {
_root.Casino.MSG.gotoAndPlay(2);
_root.Casino.MSG.CasinoMSG = "The cards have already been passed!";
_root.error.play();
} else if (_root.gGold < 10) {
_root.Casino.MSG.gotoAndPlay(2);
_root.Casino.MSG.CasinoMSG = "You will need golds if you want to play!";
_root.error.play();
}
}
Symbol 526 MovieClip Frame 1
stop();
Symbol 526 MovieClip Frame 2
if (_root.Card1 <= 10) {
_root.Casino.Cards.Card1.gotoAndStop(3);
} else if ((_root.Card1 > 10) && (_root.Card1 <= 55)) {
_root.Casino.Cards.Card1.gotoAndStop(4);
} else if ((_root.Card1 > 55) && (_root.Card1 <= 100)) {
_root.Casino.Cards.Card1.gotoAndStop(5);
}
stop();
Symbol 526 MovieClip Frame 3
if (((_root.Card1 != 0) && (_root.Card2 != 0)) && (_root.Card3 != 0)) {
_root.Casino.Timer.play();
}
stop();
Symbol 526 MovieClip Frame 4
if (((_root.Card1 != 0) && (_root.Card2 != 0)) && (_root.Card3 != 0)) {
_root.Casino.Timer.play();
}
stop();
Symbol 526 MovieClip Frame 5
if (((_root.Card1 != 0) && (_root.Card2 != 0)) && (_root.Card3 != 0)) {
_root.Casino.Timer.play();
}
stop();
Symbol 527 MovieClip Frame 1
stop();
Symbol 527 MovieClip Frame 2
if (_root.Card2 <= 10) {
_root.Casino.Cards.Card2.gotoAndStop(3);
} else if ((_root.Card2 > 10) && (_root.Card2 <= 55)) {
_root.Casino.Cards.Card2.gotoAndStop(4);
} else if ((_root.Card2 > 55) && (_root.Card2 <= 100)) {
_root.Casino.Cards.Card2.gotoAndStop(5);
}
stop();
Symbol 527 MovieClip Frame 3
if (((_root.Card1 != 0) && (_root.Card2 != 0)) && (_root.Card3 != 0)) {
_root.Casino.Timer.play();
}
stop();
Symbol 527 MovieClip Frame 4
if (((_root.Card1 != 0) && (_root.Card2 != 0)) && (_root.Card3 != 0)) {
_root.Casino.Timer.play();
}
stop();
Symbol 527 MovieClip Frame 5
if (((_root.Card1 != 0) && (_root.Card2 != 0)) && (_root.Card3 != 0)) {
_root.Casino.Timer.play();
}
stop();
Symbol 528 MovieClip Frame 1
stop();
Symbol 528 MovieClip Frame 2
if (_root.Card3 <= 10) {
_root.Casino.Cards.Card3.gotoAndStop(3);
} else if ((_root.Card3 > 10) && (_root.Card3 <= 55)) {
_root.Casino.Cards.Card3.gotoAndStop(4);
} else if ((_root.Card3 > 55) && (_root.Card3 <= 100)) {
_root.Casino.Cards.Card3.gotoAndStop(5);
}
stop();
Symbol 528 MovieClip Frame 3
if (((_root.Card1 != 0) && (_root.Card2 != 0)) && (_root.Card3 != 0)) {
_root.Casino.Timer.play();
}
stop();
Symbol 528 MovieClip Frame 4
if (((_root.Card1 != 0) && (_root.Card2 != 0)) && (_root.Card3 != 0)) {
_root.Casino.Timer.play();
}
stop();
Symbol 528 MovieClip Frame 5
if (((_root.Card1 != 0) && (_root.Card2 != 0)) && (_root.Card3 != 0)) {
_root.Casino.Timer.play();
}
stop();
Symbol 529 MovieClip Frame 1
stop();
Symbol 529 MovieClip Frame 21
stop();
Instance of Symbol 526 MovieClip "Card1" in Symbol 529 MovieClip Frame 21
on (release) {
if ((_root.Card1 == 0) && (_root.wait == 0)) {
var RandomShape;
RandomShape = Math.round(Math.random() * 100);
_root.Card1 = RandomShape;
_root.Casino.Cards.Card1.gotoAndStop(2);
}
}
Instance of Symbol 527 MovieClip "Card2" in Symbol 529 MovieClip Frame 21
on (release) {
if ((_root.Card2 == 0) && (_root.wait == 0)) {
var RandomShape;
RandomShape = Math.round(Math.random() * 100);
_root.Card2 = RandomShape;
_root.Casino.Cards.Card2.gotoAndStop(2);
}
}
Instance of Symbol 528 MovieClip "Card3" in Symbol 529 MovieClip Frame 21
on (release) {
if ((_root.Card3 == 0) && (_root.wait == 0)) {
var RandomShape;
RandomShape = Math.round(Math.random() * 100);
_root.Card3 = RandomShape;
_root.Casino.Cards.Card3.gotoAndStop(2);
}
}
Symbol 531 MovieClip Frame 1
stop();
Symbol 533 MovieClip Frame 1
stop();
Symbol 533 MovieClip Frame 2
_root.wait = 1;
Symbol 533 MovieClip Frame 60
_root.Casino.Cards.gotoAndStop(1);
_root.wait = 0;
_root.GameOn = 0;
Symbol 534 MovieClip Frame 1
stop();
Symbol 534 MovieClip Frame 2
_root.GameOn = 0;
_root.wait = 0;
_root.Card1 = 0;
_root.Card2 = 0;
_root.Card3 = 0;
stop();
Instance of Symbol 529 MovieClip "Cards" in Symbol 534 MovieClip Frame 2
onClipEvent (enterFrame) {
if (((_root.Card1 != 0) && (_root.Card2 != 0)) && (_root.Card3 != 0)) {
if (((_root.Card1 <= 10) || (_root.Card2 <= 10)) || (_root.Card3 <= 10)) {
_root.Cash.play();
_root.gGold = _root.gGold + 20;
_root.Casino.MSG.gotoAndPlay(2);
_root.Casino.MSG.CasinoMSG = "You won 20 golds!";
} else if ((((_root.Card1 > 10) && (_root.Card1 <= 55)) && ((_root.Card2 > 10) && (_root.Card2 <= 55))) && ((_root.Card3 > 10) && (_root.Card3 <= 55))) {
_root.Cash.play();
_root.gGold = _root.gGold + 40;
_root.Casino.MSG.gotoAndPlay(2);
_root.Casino.MSG.CasinoMSG = "You won 40 golds!";
} else if ((((_root.Card1 > 55) && (_root.Card1 <= 100)) && ((_root.Card2 > 55) && (_root.Card2 <= 100))) && ((_root.Card3 > 55) && (_root.Card3 <= 100))) {
_root.Cash.play();
_root.gGold = _root.gGold + 40;
_root.Casino.MSG.gotoAndPlay(2);
_root.Casino.MSG.CasinoMSG = "You won 40 golds!";
} else if ((((_root.Card1 > 55) && (_root.Card1 <= 100)) && ((_root.Card2 > 10) && (_root.Card2 <= 55))) && ((_root.Card3 > 55) && (_root.Card3 <= 100))) {
_root.Cash.play();
_root.gGold = _root.gGold + 25;
_root.Casino.MSG.gotoAndPlay(2);
_root.Casino.MSG.CasinoMSG = "You won 25 golds!";
} else {
_root.Casino.MSG.gotoAndPlay(2);
_root.Casino.MSG.CasinoMSG = "Better luck next time!";
}
_root.Card1 = 0;
_root.Card2 = 0;
_root.Card3 = 0;
}
}
Symbol 538 MovieClip Frame 1
stop();
Symbol 538 MovieClip Frame 2
stop();
Instance of Symbol 540 MovieClip in Symbol 541 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.player)) {
_root.Position = 1;
_root.Emplacement = 14;
_root.FadeIn.play();
}
}
Symbol 560 MovieClip Frame 1
stop();
Instance of Symbol 496 MovieClip "TrioNPC" in Symbol 560 MovieClip Frame 1
on (release) {
if (this.hitTest(_root.player)) {
if (_root.FinalQuest == 0) {
_root.world.WorldTotal.gotoAndStop(2);
_root.TextBox.gotoAndStop(6);
_root.TextBox.MSG = "Beat the mysterious creature in the Square mine and I will let you pass.";
} else if ((_root.FinalQuest == 1) && (_root.BossDead == 0)) {
_root.world.WorldTotal.gotoAndStop(2);
_root.TextBox.gotoAndStop(2);
_root.TextBox.MSG = "You better get started.";
} else if ((_root.FinalQuest == 1) && (_root.BossDead == 1)) {
_root.world.WorldTotal.gotoAndStop(2);
_root.TextBox.gotoAndStop(2);
_root.TextBox.MSG = "Great, fallow me.\r<font size=\"12\" color=\"#000000\">You have gained 250 experiences</font>";
_root.gEXP = _root.gEXP + 250;
_root.world.gotoAndStop(2);
_root.world.TrioNPC.play();
_root.FinalQuest = 2;
}
}
}
on (rollOver) {
_root.world.TrioNPC.useHandCursor = false;
}
Instance of Symbol 414 MovieClip "NPC" in Symbol 560 MovieClip Frame 1
on (release) {
if (this.hitTest(_root.player)) {
if (_root.FindingQuest == 0) {
_root.world.WorldTotal.gotoAndStop(2);
_root.TextBox.gotoAndStop(9);
_root.TextBox.MSG = "I lost my crystal ball... I lost my crystal ball... Please help me find it!";
} else if ((_root.FindingQuest == 1) && (_root.BallFound == 0)) {
_root.world.WorldTotal.gotoAndStop(2);
_root.TextBox.gotoAndStop(2);
_root.TextBox.MSG = "Where is my crystal ball?";
} else if ((_root.FindingQuest == 1) && (_root.BallFound == 1)) {
_root.world.WorldTotal.gotoAndStop(2);
_root.TextBox.gotoAndStop(2);
_root.TextBox.MSG = "Ahhh yes, that's my crystal ball!\r<font size=\"12\" color=\"#000000\">You have gained 20 golds</font>\r<font size=\"12\" color=\"#000000\">You have gained 80 experiences</font>";
_root.FindingQuest = 2;
_root.gGold = _root.gGold + 20;
_root.gEXP = _root.gEXP + 80;
} else if (_root.FindingQuest == 2) {
_root.world.WorldTotal.gotoAndStop(2);
_root.TextBox.gotoAndStop(2);
_root.TextBox.MSG = "It's soo shiny!";
}
}
}
on (rollOver) {
_root.world.NPC.useHandCursor = false;
}
Instance of Symbol 351 MovieClip "Pancarte07" in Symbol 560 MovieClip Frame 1
on (release) {
if (this.hitTest(_root.player)) {
_root.world.WorldTotal.gotoAndStop(2);
_root.TextBox.gotoAndStop(2);
_root.TextBox.MSG = "Irtylon City (3 miles ahead)";
}
}
on (rollOver) {
_root.world.Pancarte07.useHandCursor = false;
}
Symbol 560 MovieClip Frame 2
_root.TrioNPC.play;
stop();
Symbol 574 MovieClip Frame 1
stop();
Symbol 574 MovieClip Frame 2
stop();
Symbol 579 MovieClip Frame 1
stop();
Symbol 579 MovieClip Frame 2
stop();
Symbol 590 MovieClip Frame 1
stop();
Symbol 590 MovieClip Frame 2
stop();
Symbol 596 MovieClip Frame 1
stop();
Symbol 596 MovieClip Frame 2
stop();
Symbol 601 MovieClip Frame 1
stop();
Instance of Symbol 600 MovieClip "Door" in Symbol 601 MovieClip Frame 1
on (release) {
if (this.hitTest(_root.player)) {
_root.world.WorldTotal.gotoAndStop(2);
_root.TextBox.gotoAndStop(2);
_root.TextBox.MSG = "The door is locked";
}
}
on (rollOver) {
_root.Decor.Door.useHandCursor = false;
}
Symbol 601 MovieClip Frame 2
stop();
Instance of Symbol 600 MovieClip "Door" in Symbol 601 MovieClip Frame 2
on (release) {
if (this.hitTest(_root.player)) {
_root.world.WorldTotal.gotoAndStop(2);
_root.TextBox.gotoAndStop(2);
_root.TextBox.MSG = "The mayor locked himself in his room...";
}
}
on (rollOver) {
_root.Decor.Door.useHandCursor = false;
}
Symbol 605 MovieClip Frame 1
stop();
Instance of Symbol 604 MovieClip in Symbol 605 MovieClip Frame 1
on (release) {
if (this.hitTest(_root.player)) {
_root.world.WorldTotal.gotoAndStop(2);
if (_root.MayorQuest == 0) {
_root.TextBox.gotoAndStop(4);
_root.TextBox.MSG = "I think an Ocato stole my key while I was taking a nap outside the town earlier this morning. Can you help me find my key ?";
} else if ((_root.MayorQuest == 1) && (_root.KeyFound == 0)) {
_root.TextBox.gotoAndStop(2);
_root.TextBox.MSG = "What you waiting for ? Go kill those Ocato!";
} else if ((_root.MayorQuest == 1) && (_root.KeyFound == 1)) {
_root.TextBox.gotoAndStop(2);
_root.TextBox.MSG = "Yes! Thats my key!\r<font size=\"12\" color=\"#000000\">You have gained 30 golds</font>\r<font size=\"12\" color=\"#000000\">You have gained 70 experiences</font>";
_root.gGold = _root.gGold + 30;
_root.gEXP = _root.gEXP + 70;
_root.MayorQuest = 2;
} else if (_root.MayorQuest == 2) {
_root.TextBox.gotoAndStop(2);
_root.TextBox.MSG = "Thanks alot, now I can go back to work.";
}
}
}
on (rollOver) {
_root.world.Mayor.useHandCursor = false;
}
Instance of Symbol 414 MovieClip "NPC01" in Symbol 605 MovieClip Frame 1
on (release) {
if (this.hitTest(_root.player)) {
_root.world.WorldTotal.gotoAndStop(2);
_root.TextBox.gotoAndStop(2);
_root.TextBox.MSG = "Sorry, I don't have time for this.";
}
}
on (rollOver) {
_root.world.NPC01.useHandCursor = false;
}
Symbol 605 MovieClip Frame 2
stop();
Symbol 609 Button
on (release) {
stopAllSounds();
_root.savefile.data.gMP = _root.gMP;
_root.savefile.data.gHP = _root.gHP;
_root.savefile.data.gEXP = _root.gEXP;
_root.savefile.data.PTS = _root.PTS;
_root.savefile.data.STR = _root.STR;
_root.savefile.data.DEF = _root.DEF;
_root.savefile.data.FRC = _root.FRC;
_root.savefile.data.gLevel = _root.gLevel;
_root.savefile.data.APPLE = _root.APPLE;
_root.savefile.data.CHOCOLATE = _root.CHOCOLATE;
_root.savefile.data.VITAMIN = _root.VITAMIN;
_root.savefile.data.VITAMINX = _root.VITAMINX;
_root.savefile.data.BULLEYE = _root.BULLEYE;
_root.savefile.data.IntroQuest = _root.IntroQuest;
_root.savefile.data.LetterQuest = _root.LetterQuest;
_root.savefile.data.arrayLETTER = _root.arrayLETTER;
_root.savefile.data.LetterQuestNB = _root.LetterQuestNB;
_root.savefile.data.MayorQuest = _root.MayorQuest;
_root.savefile.data.KeyFound = _root.KeyFound;
_root.savefile.data.KillingQuest = _root.KillingQuest;
_root.savefile.data.HexWareKilled = _root.HexWareKilled;
_root.savefile.data.FinalQuest = _root.FinalQuest;
_root.savefile.data.BossDead = _root.BossDead;
_root.savefile.data.InvestigationQuest = _root.InvestigationQuest;
_root.savefile.data.NbEvidence = _root.NbEvidence;
_root.savefile.data.FindingQuest = _root.FindingQuest;
_root.savefile.data.BallFound = _root.BallFound;
_root.savefile.data.SemiFinalBoss = _root.SemiFinalBoss;
_root.savefile.data.Name = _root.Name;
_root.savefile.data.arraySWITCH = _root.arraySWITCH;
_root.savefile.data.HP = _root.HP;
_root.savefile.data.gGold = _root.gGold;
_root.savefile.flush();
_root.SaveScreen.play();
_root.Death = 2;
_root.gotoAndStop("Loaded");
}
Symbol 610 Button
on (release) {
stopAllSounds();
_root.Death = 2;
_root.gotoAndStop("Loaded");
}
Symbol 629 MovieClip Frame 1
_root.Pattack.gotoAndStop(11);
Symbol 629 MovieClip Frame 20
var AttackDamage;
var AttackARM;
var Miss;
AttackDamage = (Math.random() * 6) + 6;
AttackARM = AttackDamage * _root.arrayARMBONUS[_root.gLevel];
Miss = Math.round(Math.random() * 8);
if (Miss != 1) {
if (AttackDamage >= 11) {
_root.PATKDMG.gotoAndPlay(21);
_root.PATKDMG.ATKDMG = Math.round(AttackDamage - AttackARM);
} else {
_root.PATKDMG.gotoAndPlay(2);
_root.PATKDMG.ATKDMG = Math.round(AttackDamage - AttackARM);
}
_root.gHP = _root.gHP - Math.round(AttackDamage - AttackARM);
} else {
_root.PATKDMG.gotoAndPlay(2);
_root.PATKDMG.ATKDMG = "Miss";
}
Symbol 629 MovieClip Frame 55
if (_root.gHP > 0) {
_root.ActionBar.gotoAndStop(1);
} else {
_root.PWin.gotoAndStop(2);
}
_root.Pattack.gotoAndStop(1);
_root.Eattack.gotoAndStop(1);
Symbol 642 MovieClip Frame 1
_root.Pattack.gotoAndStop(11);
Symbol 642 MovieClip Frame 28
var AttackDamage;
var AttackARM;
var Miss;
AttackDamage = (Math.random() * 10) + 8;
AttackARM = AttackDamage * _root.arrayARMBONUS[_root.gLevel];
Miss = Math.round(Math.random() * 10);
_root.EMP = _root.EMP - 10;
if (Miss != 1) {
if (AttackDamage >= 16) {
_root.PATKDMG.gotoAndPlay(21);
_root.PATKDMG.ATKDMG = Math.round(AttackDamage - AttackARM);
} else {
_root.PATKDMG.gotoAndPlay(2);
_root.PATKDMG.ATKDMG = Math.round(AttackDamage - AttackARM);
}
_root.gHP = _root.gHP - Math.round(AttackDamage - AttackARM);
} else {
_root.PATKDMG.gotoAndPlay(2);
_root.PATKDMG.ATKDMG = "Miss";
}
Symbol 642 MovieClip Frame 80
if (_root.gHP > 0) {
_root.ActionBar.gotoAndStop(1);
} else {
_root.PWin.gotoAndStop(2);
}
_root.Pattack.gotoAndStop(1);
_root.Eattack.gotoAndStop(1);
Symbol 646 MovieClip Frame 26
stop();
Symbol 647 MovieClip Frame 1
stop();
Symbol 647 MovieClip Frame 2
var RandomATK;
RandomATK = Math.round(Math.random() * 3);
if (_root.EHP > 0) {
if ((RandomATK == 3) && (_root.EMP >= 10)) {
_root.Eattack.gotoAndStop(4);
} else {
_root.Eattack.gotoAndStop(3);
}
} else {
_root.PWin.gotoAndStop(3);
}
stop();
Symbol 647 MovieClip Frame 3
stop();
Symbol 647 MovieClip Frame 4
stop();
Symbol 647 MovieClip Frame 5
stop();
Symbol 657 MovieClip Frame 26
var AttackDamage;
var AttackTotal;
var Miss;
AttackDamage = (Math.random() * _root.arrayATKRANGE[_root.gLevel - 1]) + _root.ATK;
AttackTotal = AttackDamage + (AttackDamage * _root.arraySTRBONUS[_root.STR]);
Miss = Math.round(Math.random() * 10);
if (_root.BULLEYE == 1) {
Miss = 999;
}
if (Miss != 1) {
if (AttackDamage >= ((_root.arrayATKRANGE[_root.gLevel - 1] + _root.ATK) - 1)) {
_root.EATKDMG.gotoAndPlay(21);
_root.EATKDMG.ATKDMG = Math.round(AttackTotal);
} else {
_root.EATKDMG.gotoAndPlay(2);
_root.EATKDMG.ATKDMG = Math.round(AttackTotal);
}
_root.EHP = _root.EHP - Math.round(AttackTotal);
} else {
_root.EATKDMG.gotoAndPlay(2);
_root.EATKDMG.ATKDMG = "Miss";
}
Symbol 657 MovieClip Frame 60
_root.Eattack.gotoAndStop(2);
_root.Pattack.gotoAndStop(1);
Symbol 671 MovieClip Frame 32
var AttackDamage;
var AttackTotal;
var Miss;
AttackDamage = (Math.random() * (_root.arrayATKRANGE[_root.gLevel - 1] / 2)) + (_root.ATK / 2);
AttackTotal = AttackDamage + (AttackDamage * _root.arraySTRBONUS[_root.STR]);
Miss = Math.round(Math.random() * 4);
_root.gMP = _root.gMP - 10;
if (_root.BULLEYE == 1) {
Miss = 999;
}
if (Miss != 1) {
if (AttackDamage >= ((_root.arrayATKRANGE[_root.gLevel - 1] + _root.ATK) - 1)) {
_root.EATKDMG.gotoAndPlay(21);
_root.EATKDMG.ATKDMG = Math.round(AttackTotal);
} else {
_root.EATKDMG.gotoAndPlay(2);
_root.EATKDMG.ATKDMG = Math.round(AttackTotal);
}
_root.EHP = _root.EHP - Math.round(AttackTotal);
} else {
_root.EATKDMG.gotoAndPlay(2);
_root.EATKDMG.ATKDMG = "Miss";
}
Symbol 671 MovieClip Frame 42
var AttackDamage;
var AttackTotal;
var Miss;
AttackDamage = (Math.random() * (_root.arrayATKRANGE[_root.gLevel - 1] / 2)) + (_root.ATK / 2);
AttackTotal = AttackDamage + (AttackDamage * _root.arraySTRBONUS[_root.STR]);
Miss = Math.round(Math.random() * 4);
if (_root.BULLEYE == 1) {
Miss = 999;
}
if (Miss != 1) {
if (AttackDamage >= ((_root.arrayATKRANGE[_root.gLevel - 1] + _root.ATK) - 1)) {
_root.EATKDMG.gotoAndPlay(21);
_root.EATKDMG.ATKDMG = Math.round(AttackTotal);
} else {
_root.EATKDMG.gotoAndPlay(2);
_root.EATKDMG.ATKDMG = Math.round(AttackTotal);
}
_root.EHP = _root.EHP - Math.round(AttackTotal);
} else {
_root.EATKDMG.gotoAndPlay(2);
_root.EATKDMG.ATKDMG = "Miss";
}
Symbol 671 MovieClip Frame 52
var AttackDamage;
var AttackTotal;
var Miss;
AttackDamage = (Math.random() * (_root.arrayATKRANGE[_root.gLevel - 1] / 2)) + (_root.ATK / 2);
AttackTotal = AttackDamage + (AttackDamage * _root.arraySTRBONUS[_root.STR]);
Miss = Math.round(Math.random() * 4);
if (_root.BULLEYE == 1) {
Miss = 999;
}
if (Miss != 1) {
if (AttackDamage >= ((_root.arrayATKRANGE[_root.gLevel - 1] + _root.ATK) - 1)) {
_root.EATKDMG.gotoAndPlay(21);
_root.EATKDMG.ATKDMG = Math.round(AttackTotal);
} else {
_root.EATKDMG.gotoAndPlay(2);
_root.EATKDMG.ATKDMG = Math.round(AttackTotal);
}
_root.EHP = _root.EHP - Math.round(AttackTotal);
} else {
_root.EATKDMG.gotoAndPlay(2);
_root.EATKDMG.ATKDMG = "Miss";
}
Symbol 671 MovieClip Frame 62
var AttackDamage;
var AttackTotal;
var Miss;
AttackDamage = (Math.random() * (_root.arrayATKRANGE[_root.gLevel - 1] / 2)) + (_root.ATK / 2);
AttackTotal = AttackDamage + (AttackDamage * _root.arraySTRBONUS[_root.STR]);
Miss = Math.round(Math.random() * 4);
if (_root.BULLEYE == 1) {
Miss = 999;
}
if (Miss != 1) {
if (AttackDamage >= ((_root.arrayATKRANGE[_root.gLevel - 1] + _root.ATK) - 1)) {
_root.EATKDMG.gotoAndPlay(21);
_root.EATKDMG.ATKDMG = Math.round(AttackTotal);
} else {
_root.EATKDMG.gotoAndPlay(2);
_root.EATKDMG.ATKDMG = Math.round(AttackTotal);
}
_root.EHP = _root.EHP - Math.round(AttackTotal);
} else {
_root.EATKDMG.gotoAndPlay(2);
_root.EATKDMG.ATKDMG = "Miss";
}
Symbol 671 MovieClip Frame 105
_root.Eattack.gotoAndStop(2);
_root.Pattack.gotoAndStop(1);
Symbol 691 MovieClip Frame 50
var Miss;
var Gain;
Miss = Math.round(Math.random() * 10);
Gain = Math.round((Math.random() * 20) + 0);
if (_root.BULLEYE == 1) {
Miss = 999;
}
_root.gMP = _root.gMP - 20;
if (Miss != 1) {
_root.gMP = _root.gMP + Gain;
_root.PATKDMG.gotoAndPlay(2);
_root.PATKDMG.ATKDMG = ("<font color=\"#999900\">" + Gain) + "</font>";
_root.EATKDMG.gotoAndPlay(2);
_root.EATKDMG.ATKDMG = ("<font color=\"#999900\">" + _root.EMP) + "</font>";
_root.EMP = 0;
} else {
_root.EATKDMG.gotoAndPlay(2);
_root.EATKDMG.ATKDMG = "Miss";
}
Symbol 691 MovieClip Frame 80
_root.Eattack.gotoAndStop(2);
_root.Pattack.gotoAndStop(1);
Symbol 701 MovieClip Frame 25
var Diference;
Diference = _root.onHP - _root.gHP;
_root.gMP = _root.gMP - 50;
_root.gHP = _root.gHP + Diference;
_root.PATKDMG.gotoAndPlay(2);
_root.PATKDMG.ATKDMG = ("<font color=\"#009900\">" + Diference) + "</font>";
Symbol 701 MovieClip Frame 45
_root.Eattack.gotoAndStop(2);
_root.Pattack.gotoAndStop(1);
Symbol 719 MovieClip Frame 135
var AttackDamage;
var AttackTotal;
var Miss;
var OneHitKill;
AttackDamage = (Math.random() * (_root.arrayATKRANGE[_root.gLevel - 1] * 2)) + (_root.ATK * 3);
AttackTotal = AttackDamage + (AttackDamage * _root.arraySTRBONUS[_root.STR]);
Miss = Math.round(Math.random() * 10);
OneHitKill = Math.round(Math.random() * 3);
_root.gMP = _root.gMP - 170;
if (_root.BULLEYE == 1) {
Miss = 999;
}
if (Miss != 1) {
if (OneHitKill == 1) {
_root.EATKDMG.gotoAndPlay(21);
_root.EATKDMG.ATKDMG = _root.EHP;
_root.EHP = _root.EHP - _root.EHP;
} else if (AttackDamage >= (((_root.arrayATKRANGE[_root.gLevel - 1] * 2) + (_root.ATK * 2)) - 10)) {
_root.EATKDMG.gotoAndPlay(21);
_root.EATKDMG.ATKDMG = Math.round(AttackTotal);
_root.EHP = _root.EHP - Math.round(AttackTotal);
} else {
_root.EATKDMG.gotoAndPlay(2);
_root.EATKDMG.ATKDMG = Math.round(AttackTotal);
_root.EHP = _root.EHP - Math.round(AttackTotal);
}
} else {
_root.EATKDMG.gotoAndPlay(2);
_root.EATKDMG.ATKDMG = "Miss";
}
Symbol 719 MovieClip Frame 190
_root.Eattack.gotoAndStop(2);
_root.Pattack.gotoAndStop(1);
Symbol 723 MovieClip Frame 25
stop();
Symbol 726 MovieClip Frame 20
_root.PATKDMG.gotoAndPlay(2);
_root.PATKDMG.ATKDMG = ("<font color=\"#009900\">" + _root.HPGAIN) + "</font>";
Symbol 726 MovieClip Frame 35
_root.Eattack.gotoAndStop(2);
_root.Pattack.gotoAndStop(1);
Symbol 730 MovieClip Frame 20
_root.PATKDMG.gotoAndPlay(2);
_root.PATKDMG.ATKDMG = ("<font color=\"#999900\">" + _root.MPGAIN) + "</font>";
Symbol 730 MovieClip Frame 35
_root.Eattack.gotoAndStop(2);
_root.Pattack.gotoAndStop(1);
Symbol 733 MovieClip Frame 20
var Run;
var Chance;
var Miss;
Run = _root.gLevel - _root.ELevel;
if (Run >= 3) {
Chance = 100;
} else if ((Run = 2)) {
Chance = 80;
} else if ((Run = 1)) {
Chance = 70;
} else if ((Run = 0)) {
Chance = 60;
} else if ((Run = -1)) {
Chance = 50;
} else if (Run <= -2) {
Chance = 35;
}
Miss = Math.round(Math.random() * 100);
if (Miss <= Chance) {
_root.Pattack.PRun.gotoAndPlay(21);
} else {
_root.PATKDMG.gotoAndPlay(2);
_root.PATKDMG.ATKDMG = "Miss";
_root.Pattack.PRun.gotoAndPlay(40);
}
Symbol 733 MovieClip Frame 39
if (_root.SPosition == 1000) {
_root.gotoAndStop("CentralSquare");
} else if (_root.SPosition == 1001) {
_root.gotoAndStop("Overworld");
} else if (_root.SPosition == 1002) {
_root.gotoAndStop("Overworld02");
} else if (_root.SPosition == 1003) {
_root.gotoAndStop("Overworld03");
} else if (_root.SPosition == 1004) {
_root.gotoAndStop("Overworld05");
} else if (_root.SPosition == 1005) {
_root.gotoAndStop("Overworld06");
} else if (_root.SPosition == 1006) {
_root.gotoAndStop("Overworld07");
} else if (_root.SPosition == 1007) {
_root.gotoAndStop("Cavern01");
} else if (_root.SPosition == 1008) {
_root.gotoAndStop("Cavern02");
} else if (_root.SPosition == 1009) {
_root.gotoAndStop("Cavern03");
} else if (_root.SPosition == 1010) {
_root.gotoAndStop("Cavern04");
} else if (_root.SPosition == 1011) {
_root.gotoAndStop("Cavern05");
} else if (_root.SPosition == 1012) {
_root.gotoAndStop("Cavern06");
} else if ((_root.ComputerON = 1)) {
_root.gotoAndStop("PlayerHouse");
}
Symbol 733 MovieClip Frame 60
_root.Eattack.gotoAndStop(2);
_root.Pattack.gotoAndStop(1);
Symbol 734 MovieClip Frame 1
stop();
Symbol 734 MovieClip Frame 2
stop();
Symbol 734 MovieClip Frame 3
stop();
Symbol 734 MovieClip Frame 4
stop();
Symbol 734 MovieClip Frame 5
stop();
Symbol 734 MovieClip Frame 6
stop();
Symbol 734 MovieClip Frame 7
stop();
Symbol 734 MovieClip Frame 8
stop();
Symbol 734 MovieClip Frame 9
stop();
Symbol 734 MovieClip Frame 10
stop();
Symbol 734 MovieClip Frame 11
stop();
Symbol 754 Button
on (release) {
_root.atkmsg.gotoAndStop(1);
gotoAndStop (3);
}
Symbol 757 Button
on (release) {
_root.atkmsg.gotoAndStop(1);
gotoAndStop (4);
}
Symbol 760 Button
on (release) {
if (_root.NoRunBattle == 0) {
_root.atkmsg.gotoAndStop(1);
gotoAndStop (5);
} else {
_root.atkmsg.gotoAndStop(8);
_root.error.play();
}
}
Symbol 768 Button
on (release) {
_root.atkmsg.gotoAndStop(1);
_root.Pattack.gotoAndStop(2);
_root.ActionBar.gotoAndStop(2);
}
Symbol 769 Button
on (press) {
_root.atkmsg.gotoAndStop(2);
}
Symbol 772 Button
on (release) {
if (_root.gMP >= 10) {
_root.atkmsg.gotoAndStop(1);
_root.Pattack.gotoAndStop(3);
_root.ActionBar.gotoAndStop(2);
gotoAndStop (1);
} else {
_root.error.play();
}
}
Symbol 773 Button
on (press) {
_root.atkmsg.gotoAndStop(3);
}
Symbol 776 Button
on (release) {
if (_root.gMP >= 30) {
_root.atkmsg.gotoAndStop(1);
_root.Pattack.gotoAndStop(4);
_root.ActionBar.gotoAndStop(2);
gotoAndStop (1);
} else {
_root.error.play();
}
}
Symbol 777 Button
on (press) {
_root.atkmsg.gotoAndStop(4);
}
Symbol 780 Button
on (release) {
if (_root.gMP >= 50) {
_root.atkmsg.gotoAndStop(1);
_root.Pattack.gotoAndStop(5);
_root.ActionBar.gotoAndStop(2);
gotoAndStop (1);
} else {
_root.error.play();
}
}
Symbol 781 Button
on (press) {
_root.atkmsg.gotoAndStop(5);
}
Symbol 784 Button
on (release) {
if (_root.gMP >= 170) {
_root.atkmsg.gotoAndStop(1);
_root.Pattack.gotoAndStop(6);
_root.ActionBar.gotoAndStop(2);
gotoAndStop (1);
} else {
_root.error.play();
}
}
Symbol 785 Button
on (press) {
_root.atkmsg.gotoAndStop(6);
}
Symbol 786 MovieClip Frame 1
stop();
Symbol 786 MovieClip Frame 2
stop();
Symbol 786 MovieClip Frame 3
stop();
Symbol 786 MovieClip Frame 4
stop();
Symbol 786 MovieClip Frame 5
stop();
Symbol 787 Button
on (release) {
if (_root.gLevel > (_root.ELevel - 2)) {
_root.atkmsg.gotoAndStop(1);
gotoAndStop (5);
} else {
_root.atkmsg.gotoAndStop(7);
_root.error.play();
}
}
Symbol 790 Button
on (release) {
_root.APPLE--;
_root.gHP = _root.gHP + 40;
_root.HPGAIN = 40;
if (_root.gHP > _root.onHP) {
_root.gHP = _root.onHP;
}
_root.Pattack.gotoAndStop(8);
_root.ActionBar.gotoAndStop(2);
}
Symbol 791 MovieClip Frame 1
stop();
Symbol 791 MovieClip Frame 2
stop();
Symbol 793 MovieClip Frame 1
stop();
Symbol 793 MovieClip Frame 2
stop();
Symbol 795 Button
on (release) {
_root.CHOCOLATE--;
_root.gHP = _root.gHP + 100;
_root.HPGAIN = 100;
if (_root.gHP > _root.onHP) {
_root.gHP = _root.onHP;
}
_root.Pattack.gotoAndStop(8);
_root.ActionBar.gotoAndStop(2);
}
Symbol 796 MovieClip Frame 1
stop();
Symbol 796 MovieClip Frame 2
stop();
Symbol 798 Button
on (release) {
_root.VITAMIN--;
_root.gMP = _root.gMP + 30;
_root.MPGAIN = 30;
if (_root.gMP > _root.onMP) {
_root.gMP = _root.onMP;
}
_root.Pattack.gotoAndStop(9);
_root.ActionBar.gotoAndStop(2);
}
Symbol 799 MovieClip Frame 1
stop();
Symbol 799 MovieClip Frame 2
stop();
Symbol 801 Button
on (release) {
_root.VITAMINX--;
_root.gMP = _root.gMP + 80;
_root.MPGAIN = 80;
if (_root.gMP > _root.onMP) {
_root.gMP = _root.onMP;
}
_root.Pattack.gotoAndStop(9);
_root.ActionBar.gotoAndStop(2);
}
Symbol 802 MovieClip Frame 1
stop();
Symbol 802 MovieClip Frame 2
stop();
Symbol 803 Button
on (release) {
gotoAndStop (4);
}
Symbol 804 Button
on (release) {
gotoAndStop (3);
}
Symbol 807 Button
on (release) {
_root.atkmsg.gotoAndStop(1);
_root.Pattack.gotoAndStop(10);
_root.ActionBar.gotoAndStop(2);
}
Symbol 808 Button
on (release) {
gotoAndStop (1);
}
Symbol 809 MovieClip Frame 1
stop();
Symbol 809 MovieClip Frame 2
stop();
Symbol 809 MovieClip Frame 3
stop();
Instance of Symbol 786 MovieClip "AttackList" in Symbol 809 MovieClip Frame 3
onClipEvent (enterFrame) {
if (_root.gLevel == 1) {
_root.ActionBar.AttackList.gotoAndStop(1);
} else if ((_root.gLevel == 2) || (_root.gLevel == 3)) {
_root.ActionBar.AttackList.gotoAndStop(2);
} else if ((_root.gLevel == 4) || (_root.gLevel == 5)) {
_root.ActionBar.AttackList.gotoAndStop(3);
} else if (((_root.gLevel == 6) || (_root.gLevel == 7)) || (_root.gLevel == 8)) {
_root.ActionBar.AttackList.gotoAndStop(4);
} else if ((_root.gLevel == 9) || (_root.gLevel == 10)) {
_root.ActionBar.AttackList.gotoAndStop(5);
}
}
Symbol 809 MovieClip Frame 4
_root.ActionBar.AppleItem.gAPPLE = _root.APPLE;
_root.ActionBar.ChocolateItem.gCHOCOLATE = _root.CHOCOLATE;
_root.ActionBar.VitaminItem.gVITAMIN = _root.VITAMIN;
_root.ActionBar.VitaminxItem.gVITAMINX = _root.VITAMINX;
_root.ActionBar.BullEyeItem.gBULLEYE = _root.BULLEYE;
stop();
Instance of Symbol 791 MovieClip "AppleItem" in Symbol 809 MovieClip Frame 4
onClipEvent (enterFrame) {
if (_root.APPLE > 0) {
_root.ActionBar.AppleItem.gotoAndStop(2);
} else {
_root.ActionBar.AppleItem.gotoAndStop(1);
}
}
Instance of Symbol 793 MovieClip "BullEyeItem" in Symbol 809 MovieClip Frame 4
onClipEvent (enterFrame) {
if (_root.BULLEYE > 0) {
_root.ActionBar.BullEyeItem.gotoAndStop(2);
} else {
_root.ActionBar.BullEyeItem.gotoAndStop(1);
}
}
Instance of Symbol 796 MovieClip "ChocolateItem" in Symbol 809 MovieClip Frame 4
onClipEvent (enterFrame) {
if (_root.CHOCOLATE > 0) {
_root.ActionBar.ChocolateItem.gotoAndStop(2);
} else {
_root.ActionBar.ChocolateItem.gotoAndStop(1);
}
}
Instance of Symbol 799 MovieClip "VitaminItem" in Symbol 809 MovieClip Frame 4
onClipEvent (enterFrame) {
if (_root.VITAMIN > 0) {
_root.ActionBar.VitaminItem.gotoAndStop(2);
} else {
_root.ActionBar.VitaminItem.gotoAndStop(1);
}
}
Instance of Symbol 802 MovieClip "VitaminxItem" in Symbol 809 MovieClip Frame 4
onClipEvent (enterFrame) {
if (_root.VITAMINX > 0) {
_root.ActionBar.VitaminxItem.gotoAndStop(2);
} else {
_root.ActionBar.VitaminxItem.gotoAndStop(1);
}
}
Symbol 809 MovieClip Frame 5
stop();
Symbol 815 Button
on (release) {
_root.atkmsg.gotoAndStop(1);
}
Symbol 822 MovieClip Frame 1
stop();
Symbol 822 MovieClip Frame 2
stop();
Symbol 822 MovieClip Frame 3
stop();
Symbol 822 MovieClip Frame 4
stop();
Symbol 822 MovieClip Frame 5
stop();
Symbol 822 MovieClip Frame 6
stop();
Symbol 822 MovieClip Frame 7
stop();
Symbol 822 MovieClip Frame 8
stop();
Symbol 826 MovieClip Frame 1
stop();
Symbol 826 MovieClip Frame 20
gotoAndStop (1);
Symbol 826 MovieClip Frame 40
gotoAndStop (1);
Symbol 828 Button
on (release) {
_root.Death = 1;
_root.gotoAndStop("PlayerHouse");
}
Symbol 832 Button
on (release) {
if (_root.SPosition == 1000) {
_root.gotoAndStop("CentralSquare");
} else if (_root.SPosition == 1001) {
_root.gotoAndStop("Overworld");
} else if (_root.SPosition == 1002) {
_root.gotoAndStop("Overworld02");
} else if (_root.SPosition == 1003) {
_root.gotoAndStop("Overworld03");
} else if (_root.SPosition == 1004) {
_root.gotoAndStop("Overworld05");
} else if (_root.SPosition == 1005) {
_root.gotoAndStop("Overworld06");
} else if (_root.SPosition == 1006) {
_root.gotoAndStop("Overworld07");
} else if (_root.SPosition == 1007) {
_root.gotoAndStop("Cavern01");
} else if (_root.SPosition == 1008) {
_root.gotoAndStop("Cavern02");
} else if (_root.SPosition == 1009) {
_root.gotoAndStop("Cavern03");
} else if (_root.SPosition == 1010) {
_root.gotoAndStop("Cavern04");
} else if (_root.SPosition == 1011) {
_root.gotoAndStop("Cavern05");
} else if (_root.SPosition == 1012) {
_root.gotoAndStop("Cavern06");
} else if ((_root.ComputerON = 1)) {
_root.gotoAndStop("PlayerHouse");
}
}
Symbol 868 MovieClip Frame 1
stop();
Symbol 868 MovieClip Frame 2
stopAllSounds();
_root.Battle1.gotoAndStop(1);
_root.Win.gotoAndStop(1);
_root.Dead.gotoAndStop(2);
_root.Pattack.gotoAndStop(7);
_root.gHP = 0;
if (_root.gLevel < 10) {
_root.PWin.EXPLOST = Math.round(_root.gEXP * 0.2);
_root.gEXP = _root.gEXP - Math.round(_root.gEXP * 0.2);
} else {
_root.PWin.EXPLOST = 0;
}
stop();
Symbol 868 MovieClip Frame 3
stopAllSounds();
_root.Battle1.gotoAndStop(1);
_root.Win.gotoAndStop(2);
_root.Dead.gotoAndStop(1);
_root.Eattack.gotoAndStop(5);
var ITEM;
ITEM = Math.round(Math.random() * 25);
switch (ITEM) {
case 1 :
case 2 :
case 3 :
_root.PWin.ITEMFOUND = "You found an apple!";
_root.APPLE++;
}
if (_root.gLevel < 10) {
if ((_root.gEXP + 5) >= _root.onEXP) {
var Temp = (_root.onEXP - _root.gEXP);
_root.gEXP = 5 - Temp;
_root.PTS++;
_root.gLevel++;
_root.PWin.LEVELUP = ("You are now level " + _root.gLevel) + "!";
_root.HP = _root.arrayHP[_root.gLevel - 1];
_root.onHP = Math.round(_root.HP + (_root.HP * _root.arrayDEFBONUS[_root.DEF]));
_root.MP = _root.arrayMP[_root.gLevel - 1];
_root.onMP = Math.round(_root.MP + (_root.MP * _root.arrayFRCBONUS[_root.FRC]));
_root.gHP = _root.onHP;
_root.gMP = _root.onMP;
switch (_root.gLevel) {
case 2 :
case 4 :
case 6 :
case 9 :
_root.PWin.NEWATK = "New attack available!";
}
} else {
_root.gEXP = _root.gEXP + 5;
}
}
_root.gGold = _root.gGold + 2;
stop();
Symbol 868 MovieClip Frame 4
stopAllSounds();
_root.Battle1.gotoAndStop(1);
_root.Win.gotoAndStop(2);
_root.Dead.gotoAndStop(1);
_root.Eattack.gotoAndStop(4);
var ITEM;
ITEM = Math.round(Math.random() * 30);
switch (ITEM) {
case 1 :
_root.PWin.ITEMFOUND = "You found chocolate!";
_root.CHOCOLATE++;
break;
case 2 :
case 3 :
_root.PWin.ITEMFOUND = "You found an apple!";
_root.APPLE++;
break;
case 4 :
case 5 :
_root.PWin.ITEMFOUND = "You found a vitamin!";
_root.VITAMIN++;
}
if (_root.gLevel < 10) {
if ((_root.gEXP + 10) >= _root.onEXP) {
var Temp = (_root.onEXP - _root.gEXP);
_root.gEXP = 10 - Temp;
_root.PTS++;
_root.gLevel++;
_root.PWin.LEVELUP = ("You are now level " + _root.gLevel) + "!";
_root.HP = _root.arrayHP[_root.gLevel - 1];
_root.onHP = Math.round(_root.HP + (_root.HP * _root.arrayDEFBONUS[_root.DEF]));
_root.MP = _root.arrayMP[_root.gLevel - 1];
_root.onMP = Math.round(_root.MP + (_root.MP * _root.arrayFRCBONUS[_root.FRC]));
_root.gHP = _root.onHP;
_root.gMP = _root.onMP;
switch (_root.gLevel) {
case 2 :
case 4 :
case 6 :
case 9 :
_root.PWin.NEWATK = "New attack available!";
}
} else {
_root.gEXP = _root.gEXP + 10;
}
}
_root.gGold = _root.gGold + 4;
stop();
Symbol 868 MovieClip Frame 5
stopAllSounds();
_root.Battle1.gotoAndStop(1);
_root.Win.gotoAndStop(2);
_root.Dead.gotoAndStop(1);
_root.Eattack.gotoAndStop(5);
var ITEM;
var KEY;
ITEM = Math.round(Math.random() * 30);
KEY = Math.round(Math.random() * 4);
if ((KEY == 1) && (_root.KeyFound == 0)) {
_root.PWin.ITEMFOUND = "You found the key!";
_root.KeyFound = 1;
} else {
switch (ITEM) {
case 1 :
case 2 :
_root.PWin.ITEMFOUND = "You found chocolate!";
_root.CHOCOLATE++;
break;
case 3 :
_root.PWin.ITEMFOUND = "You found an apple!";
_root.APPLE++;
break;
case 4 :
case 5 :
_root.PWin.ITEMFOUND = "You found a vitamin!";
_root.VITAMIN++;
}
}
if (_root.gLevel < 10) {
if ((_root.gEXP + 18) >= _root.onEXP) {
var Temp = (_root.onEXP - _root.gEXP);
_root.gEXP = 18 - Temp;
_root.PTS++;
_root.gLevel++;
_root.PWin.LEVELUP = ("You are now level " + _root.gLevel) + "!";
_root.HP = _root.arrayHP[_root.gLevel - 1];
_root.onHP = Math.round(_root.HP + (_root.HP * _root.arrayDEFBONUS[_root.DEF]));
_root.MP = _root.arrayMP[_root.gLevel - 1];
_root.onMP = Math.round(_root.MP + (_root.MP * _root.arrayFRCBONUS[_root.FRC]));
_root.gHP = _root.onHP;
_root.gMP = _root.onMP;
switch (_root.gLevel) {
case 2 :
case 4 :
case 6 :
case 9 :
_root.PWin.NEWATK = "New attack available!";
}
} else {
_root.gEXP = _root.gEXP + 18;
}
}
_root.gGold = _root.gGold + 7;
stop();
Symbol 868 MovieClip Frame 6
stopAllSounds();
_root.Battle1.gotoAndStop(1);
_root.Win.gotoAndStop(2);
_root.Dead.gotoAndStop(1);
_root.Eattack.gotoAndStop(4);
var EVIDENCE;
var ITEM;
ITEM = Math.round(Math.random() * 30);
EVIDENCE = Math.round(Math.random() * 1);
if ((EVIDENCE == 1) && (_root.NbEvidence < 2)) {
if (_root.NbEvidence == 0) {
_root.PWin.ITEMFOUND = "You got the first evidence!";
} else if (_root.NbEvidence == 1) {
_root.PWin.ITEMFOUND = "You got the second evidence!";
}
_root.NbEvidence++;
} else {
switch (ITEM) {
case 1 :
_root.PWin.ITEMFOUND = "You found chocolate!";
_root.CHOCOLATE++;
break;
case 2 :
case 3 :
_root.PWin.ITEMFOUND = "You found an apple!";
_root.APPLE++;
break;
case 4 :
case 5 :
_root.PWin.ITEMFOUND = "You found a vitamin!";
_root.VITAMIN++;
}
}
if (_root.gLevel < 10) {
if ((_root.gEXP + 30) >= _root.onEXP) {
var Temp = (_root.onEXP - _root.gEXP);
_root.gEXP = 30 - Temp;
_root.PTS++;
_root.gLevel++;
_root.PWin.LEVELUP = ("You are now level " + _root.gLevel) + "!";
_root.HP = _root.arrayHP[_root.gLevel - 1];
_root.onHP = Math.round(_root.HP + (_root.HP * _root.arrayDEFBONUS[_root.DEF]));
_root.MP = _root.arrayMP[_root.gLevel - 1];
_root.onMP = Math.round(_root.MP + (_root.MP * _root.arrayFRCBONUS[_root.FRC]));
_root.gHP = _root.onHP;
_root.gMP = _root.onMP;
switch (_root.gLevel) {
case 2 :
case 4 :
case 6 :
case 9 :
_root.PWin.NEWATK = "New attack available!";
}
} else {
_root.gEXP = _root.gEXP + 30;
}
}
_root.gGold = _root.gGold + 12;
stop();
Symbol 868 MovieClip Frame 7
stopAllSounds();
_root.Battle1.gotoAndStop(1);
_root.Win.gotoAndStop(2);
_root.Dead.gotoAndStop(1);
_root.Eattack.gotoAndStop(7);
if (_root.KillingQuest == 1) {
_root.HexWareKilled++;
}
var ITEM;
ITEM = Math.round(Math.random() * 30);
switch (ITEM) {
case 1 :
case 2 :
case 3 :
case 4 :
case 5 :
_root.PWin.ITEMFOUND = "You found a VitaminX!";
_root.VITAMINX++;
}
if (_root.gLevel < 10) {
if ((_root.gEXP + 45) >= _root.onEXP) {
var Temp = (_root.onEXP - _root.gEXP);
_root.gEXP = 45 - Temp;
_root.PTS++;
_root.gLevel++;
_root.PWin.LEVELUP = ("You are now level " + _root.gLevel) + "!";
_root.HP = _root.arrayHP[_root.gLevel - 1];
_root.onHP = Math.round(_root.HP + (_root.HP * _root.arrayDEFBONUS[_root.DEF]));
_root.MP = _root.arrayMP[_root.gLevel - 1];
_root.onMP = Math.round(_root.MP + (_root.MP * _root.arrayFRCBONUS[_root.FRC]));
_root.gHP = _root.onHP;
_root.gMP = _root.onMP;
switch (_root.gLevel) {
case 2 :
case 4 :
case 6 :
case 9 :
_root.PWin.NEWATK = "New attack available!";
}
} else {
_root.gEXP = _root.gEXP + 45;
}
}
_root.gGold = _root.gGold + 20;
stop();
Symbol 868 MovieClip Frame 8
stopAllSounds();
_root.Battle1.gotoAndStop(1);
_root.Win.gotoAndStop(2);
_root.Dead.gotoAndStop(1);
_root.Eattack.gotoAndStop(7);
_root.PWin.ITEMFOUND = "You found a backpack!";
_root.CHOCOLATE = _root.CHOCOLATE + 2;
_root.VITAMINX = _root.VITAMINX + 2;
if (_root.gLevel < 10) {
if ((_root.gEXP + 100) >= _root.onEXP) {
var Temp = (_root.onEXP - _root.gEXP);
_root.gEXP = 100 - Temp;
_root.PTS++;
_root.gLevel++;
_root.PWin.LEVELUP = ("You are now level " + _root.gLevel) + "!";
_root.HP = _root.arrayHP[_root.gLevel - 1];
_root.onHP = Math.round(_root.HP + (_root.HP * _root.arrayDEFBONUS[_root.DEF]));
_root.MP = _root.arrayMP[_root.gLevel - 1];
_root.onMP = Math.round(_root.MP + (_root.MP * _root.arrayFRCBONUS[_root.FRC]));
_root.gHP = _root.onHP;
_root.gMP = _root.onMP;
switch (_root.gLevel) {
case 2 :
case 4 :
case 6 :
case 9 :
_root.PWin.NEWATK = "New attack available!";
}
} else {
_root.gEXP = _root.gEXP + 100;
}
}
_root.gGold = _root.gGold + 50;
stop();
Symbol 868 MovieClip Frame 9
stopAllSounds();
_root.Battle1.gotoAndStop(1);
_root.Win.gotoAndStop(2);
_root.Dead.gotoAndStop(1);
_root.Eattack.gotoAndStop(8);
if (_root.gLevel < 10) {
if ((_root.gEXP + 150) >= _root.onEXP) {
var Temp = (_root.onEXP - _root.gEXP);
_root.gEXP = 150 - Temp;
_root.PTS++;
_root.gLevel++;
_root.PWin.LEVELUP = ("You are now level " + _root.gLevel) + "!";
_root.HP = _root.arrayHP[_root.gLevel - 1];
_root.onHP = Math.round(_root.HP + (_root.HP * _root.arrayDEFBONUS[_root.DEF]));
_root.MP = _root.arrayMP[_root.gLevel - 1];
_root.onMP = Math.round(_root.MP + (_root.MP * _root.arrayFRCBONUS[_root.FRC]));
_root.gHP = _root.onHP;
_root.gMP = _root.onMP;
switch (_root.gLevel) {
case 2 :
case 4 :
case 6 :
case 9 :
_root.PWin.NEWATK = "New attack available!";
}
} else {
_root.gEXP = _root.gEXP + 150;
}
}
_root.gGold = _root.gGold + 50;
stop();
Symbol 897 MovieClip Frame 40
var AttackDamage;
var AttackARM;
var Miss;
_root.Pattack.gotoAndStop(11);
AttackDamage = (Math.random() * 4) + 12;
AttackARM = AttackDamage * _root.arrayARMBONUS[_root.gLevel];
Miss = Math.round(Math.random() * 8);
if (Miss != 1) {
if (AttackDamage >= 15) {
_root.PATKDMG.gotoAndPlay(21);
_root.PATKDMG.ATKDMG = Math.round(AttackDamage - AttackARM);
} else {
_root.PATKDMG.gotoAndPlay(2);
_root.PATKDMG.ATKDMG = Math.round(AttackDamage - AttackARM);
}
_root.gHP = _root.gHP - Math.round(AttackDamage - AttackARM);
} else {
_root.PATKDMG.gotoAndPlay(2);
_root.PATKDMG.ATKDMG = "Miss";
}
Symbol 897 MovieClip Frame 60
if (_root.gHP > 0) {
_root.ActionBar.gotoAndStop(1);
} else {
_root.PWin.gotoAndStop(2);
}
_root.Pattack.gotoAndStop(1);
_root.Eattack.gotoAndStop(1);
Symbol 902 MovieClip Frame 26
stop();
Symbol 903 MovieClip Frame 1
stop();
Symbol 903 MovieClip Frame 2
if (_root.EHP > 0) {
_root.Eattack.gotoAndStop(3);
} else {
_root.PWin.gotoAndStop(4);
}
stop();
Symbol 903 MovieClip Frame 3
stop();
Symbol 903 MovieClip Frame 4
stop();
Symbol 910 MovieClip Frame 30
_root.EMP = _root.EMP + 10;
_root.EATKDMG.gotoAndPlay(2);
_root.EATKDMG.ATKDMG = "<font color=\"#999900\">10</font>";
Symbol 910 MovieClip Frame 70
if (_root.gHP > 0) {
_root.ActionBar.gotoAndStop(1);
} else {
_root.PWin.gotoAndStop(2);
}
_root.Pattack.gotoAndStop(1);
_root.Eattack.gotoAndStop(1);
Symbol 925 MovieClip Frame 1
_root.Pattack.gotoAndStop(11);
Symbol 925 MovieClip Frame 80
var AttackDamage;
var AttackARM;
var Miss;
AttackDamage = (Math.random() * 8) + 16;
AttackARM = AttackDamage * _root.arrayARMBONUS[_root.gLevel];
Miss = Math.round(Math.random() * 10);
_root.EMP = _root.EMP - 10;
if (Miss != 1) {
if (AttackDamage >= 22) {
_root.PATKDMG.gotoAndPlay(21);
_root.PATKDMG.ATKDMG = Math.round(AttackDamage - AttackARM);
} else {
_root.PATKDMG.gotoAndPlay(2);
_root.PATKDMG.ATKDMG = Math.round(AttackDamage - AttackARM);
}
_root.gHP = _root.gHP - Math.round(AttackDamage - AttackARM);
} else {
_root.PATKDMG.gotoAndPlay(2);
_root.PATKDMG.ATKDMG = "Miss";
}
Symbol 925 MovieClip Frame 100
if (_root.gHP > 0) {
_root.ActionBar.gotoAndStop(1);
} else {
_root.PWin.gotoAndStop(2);
}
_root.Pattack.gotoAndStop(1);
_root.Eattack.gotoAndStop(1);
Symbol 930 MovieClip Frame 26
stop();
Symbol 931 MovieClip Frame 1
stop();
Symbol 931 MovieClip Frame 2
if (_root.EHP > 0) {
if (_root.EMP >= 10) {
_root.Eattack.gotoAndStop(4);
} else {
_root.Eattack.gotoAndStop(3);
}
} else {
_root.PWin.gotoAndStop(5);
}
stop();
Symbol 931 MovieClip Frame 3
stop();
Symbol 931 MovieClip Frame 4
stop();
Symbol 931 MovieClip Frame 5
stop();
Symbol 944 MovieClip Frame 33
var AttackDamage;
var AttackARM;
AttackDamage = (Math.random() * 10) + 15;
AttackARM = AttackDamage * _root.arrayARMBONUS[_root.gLevel];
if (AttackDamage >= 23) {
_root.PATKDMG.gotoAndPlay(21);
_root.PATKDMG.ATKDMG = Math.round(AttackDamage - AttackARM);
} else {
_root.PATKDMG.gotoAndPlay(2);
_root.PATKDMG.ATKDMG = Math.round(AttackDamage - AttackARM);
}
_root.gHP = _root.gHP - Math.round(AttackDamage - AttackARM);
Symbol 944 MovieClip Frame 60
var GainAttackDamage;
GainAttackDamage = Math.round((AttackDamage - AttackARM) / 2);
_root.EATKDMG.gotoAndPlay(2);
_root.EATKDMG.ATKDMG = ("<font color=\"#009900\">" + GainAttackDamage) + "</font>";
_root.EHP = _root.EHP + GainAttackDamage;
if (_root.EHP > _root.EonHP) {
_root.EHP = _root.EonHP;
}
Symbol 944 MovieClip Frame 90
if (_root.gHP > 0) {
_root.ActionBar.gotoAndStop(1);
} else {
_root.PWin.gotoAndStop(2);
}
_root.Pattack.gotoAndStop(1);
_root.Eattack.gotoAndStop(1);
Symbol 948 MovieClip Frame 26
stop();
Symbol 949 MovieClip Frame 1
stop();
Symbol 949 MovieClip Frame 2
var RandomATK;
RandomATK = Math.round(Math.random() * 5);
if (_root.EHP > 0) {
if ((RandomATK == 5) && (_root.EMP >= 15)) {
_root.Eattack.gotoAndStop(4);
} else {
_root.Eattack.gotoAndStop(3);
}
} else {
_root.PWin.gotoAndStop(6);
}
stop();
Symbol 949 MovieClip Frame 3
stop();
Symbol 949 MovieClip Frame 4
stop();
Symbol 959 MovieClip Frame 40
var RandomATK;
RandomATK = Math.round(Math.random() * 3);
if (RandomATK == 1) {
gotoAndStop (41);
} else if (RandomATK == 2) {
gotoAndStop (42);
} else if (RandomATK == 3) {
gotoAndStop (43);
} else {
gotoAndStop (41);
}
stop();
Symbol 959 MovieClip Frame 41
_root.Eattack.gotoAndStop(4);
Symbol 959 MovieClip Frame 42
_root.Eattack.gotoAndStop(5);
Symbol 959 MovieClip Frame 43
_root.Eattack.gotoAndStop(6);
Symbol 984 MovieClip Frame 45
_root.Pattack.gotoAndStop(11);
Symbol 984 MovieClip Frame 59
var AttackDamage;
var AttackARM;
_root.Pattack.gotoAndStop(1);
AttackDamage = (Math.random() * 10) + 30;
AttackARM = AttackDamage * _root.arrayARMBONUS[_root.gLevel];
if (_root.EMP >= 10) {
_root.EMP = _root.EMP - 10;
if (AttackDamage >= 36) {
_root.PATKDMG.gotoAndPlay(21);
_root.PATKDMG.ATKDMG = Math.round(AttackDamage - AttackARM);
} else {
_root.PATKDMG.gotoAndPlay(2);
_root.PATKDMG.ATKDMG = Math.round(AttackDamage - AttackARM);
}
_root.gHP = _root.gHP - Math.round(AttackDamage - AttackARM);
} else {
_root.PATKDMG.gotoAndPlay(2);
_root.PATKDMG.ATKDMG = "Miss";
}
Symbol 984 MovieClip Frame 110
if (_root.gHP > 0) {
_root.ActionBar.gotoAndStop(1);
} else {
_root.PWin.gotoAndStop(2);
}
_root.Pattack.gotoAndStop(1);
_root.Eattack.gotoAndStop(1);
Symbol 992 MovieClip Frame 40
var GAIN;
if ((_root.EHP + 50) > _root.EonHP) {
GAIN = _root.EonHP - _root.EHP;
_root.EHP = _root.EHP + GAIN;
} else {
GAIN = 50;
_root.EHP = _root.EHP + GAIN;
}
_root.EATKDMG.gotoAndPlay(2);
_root.EATKDMG.ATKDMG = ("<font color=\"#009900\">" + GAIN) + "</font>";
Symbol 992 MovieClip Frame 85
if (_root.gHP > 0) {
_root.ActionBar.gotoAndStop(1);
} else {
_root.PWin.gotoAndStop(2);
}
_root.Pattack.gotoAndStop(1);
_root.Eattack.gotoAndStop(1);
Symbol 1001 MovieClip Frame 40
var GAIN;
GAIN = _root.EonMP - _root.EMP;
_root.EMP = _root.EMP + GAIN;
_root.EATKDMG.gotoAndPlay(2);
_root.EATKDMG.ATKDMG = ("<font color=\"#999900\">" + GAIN) + "</font>";
Symbol 1001 MovieClip Frame 85
if (_root.gHP > 0) {
_root.ActionBar.gotoAndStop(1);
} else {
_root.PWin.gotoAndStop(2);
}
_root.Pattack.gotoAndStop(1);
_root.Eattack.gotoAndStop(1);
Symbol 1005 MovieClip Frame 26
stop();
Symbol 1006 MovieClip Frame 1
stop();
Symbol 1006 MovieClip Frame 2
if (_root.EHP > 0) {
_root.Eattack.gotoAndStop(3);
} else {
_root.PWin.gotoAndStop(7);
}
stop();
Symbol 1006 MovieClip Frame 3
stop();
Symbol 1006 MovieClip Frame 4
_root.Eattack.ATTACK.play();
stop();
Symbol 1006 MovieClip Frame 5
_root.Eattack.ATTACK.play();
stop();
Symbol 1006 MovieClip Frame 6
_root.Eattack.ATTACK.play();
stop();
Symbol 1006 MovieClip Frame 7
stop();
Symbol 1038 MovieClip Frame 1
_root.Pattack.gotoAndStop(11);
Symbol 1038 MovieClip Frame 40
var AttackDamage;
var AttackARM;
AttackDamage = (Math.random() * 10) + 40;
AttackARM = AttackDamage * _root.arrayARMBONUS[_root.gLevel];
if (AttackDamage >= 47) {
_root.PATKDMG.gotoAndPlay(21);
_root.PATKDMG.ATKDMG = Math.round(AttackDamage - AttackARM);
} else {
_root.PATKDMG.gotoAndPlay(2);
_root.PATKDMG.ATKDMG = Math.round(AttackDamage - AttackARM);
}
_root.gHP = _root.gHP - Math.round(AttackDamage - AttackARM);
Symbol 1038 MovieClip Frame 95
if (_root.gHP > 0) {
_root.ActionBar.gotoAndStop(1);
} else {
_root.PWin.gotoAndStop(2);
}
_root.Pattack.gotoAndStop(1);
_root.Eattack.gotoAndStop(1);
Symbol 1044 MovieClip Frame 30
_root.EHP = _root.EHP + 500;
_root.EMP = _root.EMP - 20;
_root.EATKDMG.gotoAndPlay(2);
_root.EATKDMG.ATKDMG = "<font color=\"#009900\">500</font>";
Symbol 1044 MovieClip Frame 70
if (_root.gHP > 0) {
_root.ActionBar.gotoAndStop(1);
} else {
_root.PWin.gotoAndStop(2);
}
_root.Pattack.gotoAndStop(1);
_root.Eattack.gotoAndStop(1);
Symbol 1047 MovieClip Frame 26
stop();
Symbol 1048 MovieClip Frame 1
stop();
Symbol 1048 MovieClip Frame 2
if (_root.EHP > 0) {
if (((_root.EHP > 0) && (_root.EHP <= 100)) && (_root.EMP >= 20)) {
_root.Eattack.gotoAndStop(4);
} else {
_root.Eattack.gotoAndStop(3);
}
} else {
_root.PWin.gotoAndStop(8);
}
stop();
Symbol 1048 MovieClip Frame 3
stop();
Symbol 1048 MovieClip Frame 4
stop();
Symbol 1048 MovieClip Frame 5
stop();
Symbol 1074 MovieClip Frame 39
var RandomATK;
RandomATK = Math.round(Math.random() * 4);
if (RandomATK == 1) {
gotoAndPlay (40);
} else if (RandomATK == 2) {
gotoAndPlay (45);
} else if (RandomATK == 3) {
gotoAndPlay (50);
} else if (RandomATK == 4) {
gotoAndPlay (55);
} else {
gotoAndPlay (40);
}
stop();
Symbol 1074 MovieClip Frame 40
play();
Symbol 1074 MovieClip Frame 44
_root.Eattack.gotoAndStop(4);
Symbol 1074 MovieClip Frame 45
play();
Symbol 1074 MovieClip Frame 49
_root.Eattack.gotoAndStop(5);
Symbol 1074 MovieClip Frame 50
play();
Symbol 1074 MovieClip Frame 54
_root.Eattack.gotoAndStop(6);
Symbol 1074 MovieClip Frame 55
play();
Symbol 1074 MovieClip Frame 59
_root.Eattack.gotoAndStop(7);
Symbol 1090 MovieClip Frame 1
_root.Pattack.gotoAndStop(11);
Symbol 1090 MovieClip Frame 35
var AttackDamage;
var AttackARM;
var Miss;
AttackDamage = (Math.random() * 20) + 80;
AttackARM = AttackDamage * _root.arrayARMBONUS[_root.gLevel];
Miss = Math.round(Math.random() * 10);
if (Miss != 1) {
if (AttackDamage >= 95) {
_root.PATKDMG.gotoAndPlay(21);
_root.PATKDMG.ATKDMG = Math.round(AttackDamage - AttackARM);
} else {
_root.PATKDMG.gotoAndPlay(2);
_root.PATKDMG.ATKDMG = Math.round(AttackDamage - AttackARM);
}
_root.gHP = _root.gHP - Math.round(AttackDamage - AttackARM);
} else {
_root.PATKDMG.gotoAndPlay(2);
_root.PATKDMG.ATKDMG = "Miss";
}
Symbol 1090 MovieClip Frame 90
if (_root.gHP > 0) {
_root.ActionBar.gotoAndStop(1);
} else {
_root.PWin.gotoAndStop(2);
}
_root.Pattack.gotoAndStop(1);
_root.Eattack.gotoAndStop(1);
Symbol 1108 MovieClip Frame 55
var AttackDamage;
var AttackARM;
var Miss;
_root.Pattack.gotoAndStop(11);
AttackDamage = (Math.random() * 30) + 90;
AttackARM = AttackDamage * _root.arrayARMBONUS[_root.gLevel];
Miss = Math.round(Math.random() * 8);
if (_root.EMP >= 20) {
_root.EMP = _root.EMP - 20;
if (Miss != 1) {
if (AttackDamage >= 118) {
_root.PATKDMG.gotoAndPlay(21);
_root.PATKDMG.ATKDMG = Math.round(AttackDamage - AttackARM);
} else {
_root.PATKDMG.gotoAndPlay(2);
_root.PATKDMG.ATKDMG = Math.round(AttackDamage - AttackARM);
}
_root.gHP = _root.gHP - Math.round(AttackDamage - AttackARM);
}
} else {
_root.PATKDMG.gotoAndPlay(2);
_root.PATKDMG.ATKDMG = "Miss";
}
Symbol 1108 MovieClip Frame 95
if (_root.gHP > 0) {
_root.ActionBar.gotoAndStop(1);
} else {
_root.PWin.gotoAndStop(2);
}
_root.Pattack.gotoAndStop(1);
_root.Eattack.gotoAndStop(1);
Symbol 1113 MovieClip Frame 49
_root.EMP = _root.EMP + 40;
if (_root.EMP > 60) {
_root.EMP = 60;
}
_root.EATKDMG.gotoAndPlay(2);
_root.EATKDMG.ATKDMG = "<font color=\"#999900\">40</font>";
Symbol 1113 MovieClip Frame 105
if (_root.gHP > 0) {
_root.ActionBar.gotoAndStop(1);
} else {
_root.PWin.gotoAndStop(2);
}
_root.Pattack.gotoAndStop(1);
_root.Eattack.gotoAndStop(1);
Symbol 1123 MovieClip Frame 52
var AttackDamage;
var AttackARM;
AttackDamage = (Math.random() * 30) + 40;
AttackARM = AttackDamage * _root.arrayARMBONUS[_root.gLevel];
if (AttackDamage >= 66) {
_root.PATKDMG.gotoAndPlay(21);
_root.PATKDMG.ATKDMG = Math.round(AttackDamage - AttackARM);
} else {
_root.PATKDMG.gotoAndPlay(2);
_root.PATKDMG.ATKDMG = Math.round(AttackDamage - AttackARM);
}
_root.gHP = _root.gHP - Math.round(AttackDamage - AttackARM);
Symbol 1123 MovieClip Frame 79
var GainAttackDamage;
GainAttackDamage = Math.round(AttackDamage - AttackARM);
_root.EATKDMG.gotoAndPlay(2);
_root.EATKDMG.ATKDMG = ("<font color=\"#009900\">" + GainAttackDamage) + "</font>";
_root.EHP = _root.EHP + GainAttackDamage;
if (_root.EHP > _root.EonHP) {
_root.EHP = _root.EonHP;
}
Symbol 1123 MovieClip Frame 125
if (_root.gHP > 0) {
_root.ActionBar.gotoAndStop(1);
} else {
_root.PWin.gotoAndStop(2);
}
_root.Pattack.gotoAndStop(1);
_root.Eattack.gotoAndStop(1);
Symbol 1127 MovieClip Frame 26
stop();
Symbol 1128 MovieClip Frame 1
stop();
Symbol 1128 MovieClip Frame 2
if (_root.EHP > 0) {
_root.Eattack.gotoAndStop(3);
} else {
_root.PWin.gotoAndStop(9);
}
stop();
Symbol 1128 MovieClip Frame 3
stop();
Symbol 1128 MovieClip Frame 4
stop();
Symbol 1128 MovieClip Frame 5
stop();
Symbol 1128 MovieClip Frame 6
stop();
Symbol 1128 MovieClip Frame 7
stop();
Symbol 1128 MovieClip Frame 8
stop();