Frame 1
function button1(obj, item) {
_root._quality = "LOW";
}
function button2(obj, item) {
_root._quality = "MEDIUM";
}
function button3(obj, item) {
_root._quality = "HIGH";
}
function button4(obj, item) {
getURL ("http://www.eviludy.net/", "_blank");
}
function button5(obj, item) {
getURL ("http://newgrounds.com/collection/halloween2006.html", "_blank");
}
function button6(obj, item) {
getURL ("http://www.armorgames.com/", "_blank");
}
function button7(obj, item) {
sfx1 = new Sound();
sfx1.attachSound("sfx1");
sfx1.start();
sfx1.setVolume(0);
}
function button8(obj, item) {
sfx1 = new Sound();
sfx1.attachSound("sfx1");
sfx1.start();
sfx1.setVolume(100);
}
cm = new ContextMenu();
cm.hideBuiltInItems();
cm.customItems.push(new ContextMenuItem("Low Graphic Quality", button1));
cm.customItems.push(new ContextMenuItem("Medium Graphic Quality", button2));
cm.customItems.push(new ContextMenuItem("High Graphic Quality", button3));
cm.customItems.push(new ContextMenuItem("Author's Site!", button4));
cm.customItems.push(new ContextMenuItem("More halloween stuff!", button5));
cm.customItems.push(new ContextMenuItem("Play More games!", button6));
cm.customItems.push(new ContextMenuItem("Turn sound off", button7));
cm.customItems.push(new ContextMenuItem("Turn sound on", button8));
cm.customItems[3].separatorBefore = true;
cm.customItems[6].separatorBefore = true;
_root.menu = cm;
Instance of Symbol 196 MovieClip in Frame 1
onClipEvent (enterFrame) {
Mouse.hide();
_x = _root._xmouse;
_y = _root._ymouse;
}
Frame 65
stop();
Frame 82
stop();
Frame 290
so = SharedObject.getLocal("save");
so.flush(15000000);
stop();
Frame 291
mySharedObject = SharedObject.getLocal("HalloweenHunt_saveslot1");
_root.existance_1 = mySharedObject.data.existance;
if (_root.existance_1 == 5) {
_root.area_1 = mySharedObject.data.area;
_root.battlelevel_1 = mySharedObject.data.battlelevel;
_root.points_1 = mySharedObject.data.points;
_root.slotText1 = ((((("Slot 1: Act " + _root.area_1) + ", Battle Level ") + _root.battlelevel_1) + ", ") + _root.points_1) + " Halloween coins.";
} else {
_root.slotText1 = "Slot 1: Empty Slot.";
}
mySharedObject = SharedObject.getLocal("HalloweenHunt_saveslot2");
_root.existance_2 = mySharedObject.data.existance;
if (_root.existance_2 == 5) {
_root.area_2 = mySharedObject.data.area;
_root.battlelevel_2 = mySharedObject.data.battlelevel;
_root.points_2 = mySharedObject.data.points;
_root.slotText2 = ((((("Slot 2: Act " + _root.area_2) + ", Battle Level ") + _root.battlelevel_2) + ", ") + _root.points_2) + " Halloween coins.";
} else {
_root.slotText2 = "Slot 2: Empty Slot.";
}
mySharedObject = SharedObject.getLocal("HalloweenHunt_saveslot3");
_root.existance_3 = mySharedObject.data.existance;
if (_root.existance_3 == 5) {
_root.area_3 = mySharedObject.data.area;
_root.battlelevel_3 = mySharedObject.data.battlelevel;
_root.points_3 = mySharedObject.data.points;
_root.slotText3 = ((((("Slot 3: Act " + _root.area_3) + ", Battle Level ") + _root.battlelevel_3) + ", ") + _root.points_3) + " Halloween coins.";
} else {
_root.slotText3 = "Slot 3: Empty Slot.";
}
mySharedObject = SharedObject.getLocal("HalloweenHunt_saveslot4");
_root.existance_4 = mySharedObject.data.existance;
if (_root.existance_4 == 5) {
_root.area_4 = mySharedObject.data.area;
_root.battlelevel_4 = mySharedObject.data.battlelevel;
_root.points_4 = mySharedObject.data.points;
_root.slotText4 = ((((("Slot 4: Act " + _root.area_4) + ", Battle Level ") + _root.battlelevel_4) + ", ") + _root.points_4) + " Halloween coins.";
} else {
_root.slotText4 = "Slot 4: Empty Slot.";
}
stop();
Frame 364
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(95);
Frame 365
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(90);
Frame 366
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(85);
Frame 367
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(80);
Frame 368
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(75);
Frame 369
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(70);
Frame 370
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(65);
Frame 371
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(60);
Frame 372
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(55);
Frame 373
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(50);
Frame 374
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(45);
Frame 375
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(40);
Frame 376
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(35);
Frame 377
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(30);
Frame 378
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(25);
Frame 379
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(20);
Frame 380
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(15);
Frame 381
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(10);
Frame 382
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(5);
Frame 383
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(100);
stopAllSounds();
Frame 384
_root.loadinggame = false;
gotoAndPlay (385);
Instance of Symbol 196 MovieClip in Frame 385
onClipEvent (enterFrame) {
Mouse.hide();
_x = _root._xmouse;
_y = _root._ymouse;
}
Frame 4270
gotoAndStop (4271);
Frame 4271
if (_root.loadinggame == false) {
_root.dragStore = 178.3;
myMap1 = [[28, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 29], [20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 165, 21], [20, 0, 14, 9, 9, 9, 9, 9, 9, 9, 9, 15, 0, 21], [20, 0, 10, 7, 7, 7, 7, 7, 7, 7, 7, 10, 0, 21], [20, 0, 10, 2, 2, 2, 2, 2, 2, 2, 2, 10, 0, 23], [20, 0, 16, 9, 9, 12, 2, 2, 13, 9, 9, 17, 0, 32], [20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 23], [30, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 31]];
myMap2 = [[28, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 29], [20, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 21], [20, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 21], [20, 3, 0, 4, 0, 4, 0, 0, 4, 0, 4, 0, 3, 21], [22, 3, 0, 0, 4, 0, 0, 0, 0, 4, 0, 0, 3, 21], [33, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 21], [22, 3, 3, 3, 3, 3, 0, 0, 3, 3, 3, 3, 3, 21], [30, 18, 18, 18, 18, 24, 34, 34, 26, 18, 18, 18, 18, 31]];
myMap3 = [[28, 19, 19, 19, 19, 25, 35, 35, 27, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 25, 43, 43, 27, 19, 19, 19, 19, 19, 19, 19, 19, 19, 25, 36, 36, 27, 19, 19, 19, 19, 29], [20, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 21], [20, 0, 14, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 15, 0, 21], [20, 0, 10, 0, 0, 8, 0, 0, 0, 8, 0, 0, 0, 8, 0, 0, 0, 8, 0, 0, 0, 8, 0, 0, 0, 8, 0, 0, 0, 8, 0, 0, 0, 8, 0, 0, 0, 8, 0, 10, 0, 21], [20, 0, 10, 0, 0, 0, 0, 8, 0, 0, 0, 8, 0, 0, 0, 8, 0, 0, 0, 8, 0, 0, 0, 8, 0, 0, 0, 8, 0, 0, 0, 8, 0, 0, 0, 8, 0, 0, 0, 10, 0, 21], [20, 0, 16, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 12, 0, 13, 17, 0, 21], [20, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 21], [30, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 31]];
myMap4 = [[28, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 29], [20, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 21], [20, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 21], [20, 3, 0, 4, 0, 4, 0, 0, 4, 0, 4, 0, 3, 21], [20, 3, 0, 0, 4, 0, 0, 0, 0, 4, 0, 0, 3, 23], [20, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 38], [20, 3, 3, 3, 3, 3, 0, 0, 3, 3, 3, 3, 3, 23], [30, 18, 18, 18, 18, 24, 37, 37, 26, 18, 18, 18, 18, 31]];
myMap5 = [[28, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 29], [20, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 21], [20, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 21], [20, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 21], [22, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 21], [39, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 21], [22, 1, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 21], [30, 18, 18, 18, 18, 24, 40, 40, 26, 18, 18, 18, 18, 31]];
myMap6 = [[28, 19, 19, 19, 19, 25, 41, 41, 27, 19, 19, 19, 19, 29], [20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 21], [20, 0, 1, 0, 0, 11, 2, 2, 11, 0, 0, 1, 0, 21], [20, 0, 0, 0, 0, 10, 2, 2, 10, 0, 0, 0, 0, 21], [20, 0, 14, 9, 9, 17, 2, 2, 16, 9, 9, 15, 0, 21], [20, 0, 10, 7, 7, 7, 2, 2, 7, 7, 7, 10, 0, 21], [20, 0, 10, 0, 0, 0, 2, 2, 0, 0, 0, 10, 0, 21], [20, 0, 10, 6, 6, 6, 2, 2, 6, 6, 6, 10, 0, 21], [20, 0, 10, 0, 0, 0, 2, 2, 0, 0, 0, 10, 0, 21], [20, 0, 10, 7, 7, 7, 2, 2, 7, 7, 7, 10, 0, 21], [20, 0, 10, 0, 0, 0, 2, 2, 0, 0, 0, 10, 0, 21], [20, 0, 10, 6, 6, 6, 2, 2, 6, 6, 6, 10, 0, 21], [20, 0, 10, 0, 0, 0, 2, 2, 0, 0, 0, 10, 0, 21], [20, 0, 10, 7, 7, 7, 2, 2, 7, 7, 7, 10, 0, 21], [20, 0, 10, 2, 2, 2, 2, 2, 2, 2, 2, 10, 0, 21], [20, 0, 10, 2, 2, 2, 2, 2, 2, 2, 2, 10, 0, 21], [20, 0, 10, 2, 2, 2, 2, 2, 2, 2, 2, 10, 0, 21], [20, 0, 16, 9, 9, 9, 9, 9, 9, 9, 9, 17, 0, 21], [20, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 21], [30, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 31]];
myMap7 = [[28, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 29], [20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 21], [20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 21], [20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 21], [20, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 21], [20, 6, 6, 6, 6, 0, 0, 0, 0, 6, 6, 6, 6, 21], [20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 165, 0, 0, 21], [30, 18, 18, 18, 18, 24, 42, 42, 26, 18, 18, 18, 18, 31]];
myMap8 = [[64, 65, 65, 65, 66, 81, 81, 67, 65, 65, 65, 68], [77, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 69], [77, 56, 60, 62, 56, 56, 56, 56, 62, 60, 56, 69], [77, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 69], [77, 56, 60, 62, 56, 56, 56, 56, 62, 60, 56, 69], [77, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 69], [77, 56, 60, 62, 56, 56, 56, 56, 62, 60, 56, 69], [77, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 69], [77, 56, 60, 62, 56, 56, 56, 56, 62, 60, 56, 69], [77, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 69], [77, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 69], [73, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 72]];
myMap9 = [[64, 58, 58, 58, 58, 58, 58, 58, 64, 65, 65, 80, 80, 65, 65, 68, 58, 58, 58, 58, 58, 58, 58, 68], [58, 58, 58, 58, 58, 58, 58, 58, 77, 56, 56, 56, 56, 56, 166, 69, 58, 58, 58, 58, 58, 58, 58, 58], [58, 58, 58, 58, 58, 58, 58, 58, 77, 56, 60, 56, 56, 60, 56, 69, 58, 58, 58, 58, 58, 58, 58, 58], [58, 58, 58, 58, 58, 58, 58, 58, 77, 56, 56, 56, 56, 56, 56, 69, 58, 58, 58, 58, 58, 58, 58, 58], [58, 58, 58, 58, 58, 58, 58, 58, 77, 56, 60, 56, 56, 60, 56, 69, 58, 58, 58, 58, 58, 58, 58, 58], [58, 58, 58, 58, 58, 58, 58, 58, 77, 56, 56, 56, 56, 56, 56, 69, 58, 58, 58, 58, 58, 58, 58, 58], [58, 58, 58, 58, 58, 58, 58, 58, 77, 56, 60, 56, 56, 60, 56, 69, 58, 58, 58, 58, 58, 58, 58, 58], [73, 74, 74, 74, 74, 74, 74, 74, 63, 56, 56, 56, 56, 56, 56, 63, 74, 74, 74, 74, 74, 74, 74, 72], [77, 56, 56, 56, 56, 56, 56, 56, 56, 56, 60, 56, 56, 60, 56, 56, 56, 56, 56, 56, 56, 56, 56, 69], [77, 56, 60, 56, 60, 56, 60, 56, 60, 56, 56, 56, 56, 56, 56, 60, 56, 60, 56, 60, 56, 60, 56, 69], [77, 56, 56, 56, 56, 56, 56, 56, 56, 56, 61, 56, 56, 61, 56, 56, 56, 56, 56, 56, 56, 56, 56, 69], [83, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 84], [83, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 84], [77, 56, 60, 56, 60, 56, 60, 56, 60, 56, 61, 56, 56, 61, 56, 60, 56, 60, 56, 60, 56, 60, 56, 69], [77, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 69], [73, 74, 74, 74, 74, 74, 74, 74, 63, 56, 60, 56, 56, 60, 56, 63, 74, 74, 74, 74, 74, 74, 74, 72], [58, 58, 58, 58, 58, 58, 58, 58, 77, 56, 56, 56, 56, 56, 56, 69, 58, 58, 58, 58, 58, 58, 58, 58], [58, 58, 58, 58, 58, 58, 58, 58, 77, 56, 60, 56, 56, 60, 56, 69, 58, 58, 58, 58, 58, 58, 58, 58], [58, 58, 58, 58, 58, 58, 58, 58, 77, 56, 56, 56, 56, 56, 56, 69, 58, 58, 58, 58, 58, 58, 58, 58], [58, 58, 58, 58, 58, 58, 58, 58, 77, 56, 60, 56, 56, 60, 56, 69, 58, 58, 58, 58, 58, 58, 58, 58], [58, 58, 58, 58, 58, 58, 58, 58, 77, 56, 56, 56, 56, 56, 56, 69, 58, 58, 58, 58, 58, 58, 58, 58], [58, 58, 58, 58, 58, 58, 58, 58, 77, 56, 60, 56, 56, 60, 56, 69, 58, 58, 58, 58, 58, 58, 58, 58], [58, 58, 58, 58, 58, 58, 58, 58, 77, 56, 56, 56, 56, 56, 166, 69, 58, 58, 58, 58, 58, 58, 58, 58], [58, 58, 58, 58, 58, 58, 58, 58, 74, 74, 75, 82, 82, 76, 74, 74, 58, 58, 58, 58, 58, 58, 58, 58]];
myMap10 = [[64, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 68], [77, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 69], [77, 56, 63, 56, 56, 56, 56, 56, 56, 63, 56, 69], [77, 56, 63, 62, 62, 62, 62, 62, 62, 63, 56, 69], [77, 56, 63, 56, 56, 56, 56, 56, 56, 63, 56, 70], [77, 56, 63, 56, 56, 56, 56, 56, 56, 56, 56, 85], [77, 56, 63, 56, 56, 56, 56, 56, 56, 56, 56, 85], [77, 56, 63, 62, 62, 62, 62, 62, 62, 63, 56, 71], [77, 56, 63, 56, 56, 56, 56, 56, 56, 63, 56, 69], [77, 56, 63, 56, 56, 56, 56, 56, 56, 63, 56, 69], [77, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 69], [73, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 72]];
myMap11 = [[64, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 68], [77, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 69], [77, 56, 63, 56, 56, 56, 56, 56, 56, 63, 56, 69], [77, 56, 63, 62, 62, 62, 62, 62, 62, 63, 56, 69], [78, 56, 63, 56, 56, 56, 56, 56, 56, 63, 56, 69], [86, 56, 56, 56, 56, 56, 56, 56, 56, 63, 56, 69], [86, 56, 56, 56, 56, 56, 56, 56, 56, 63, 56, 69], [79, 56, 63, 62, 62, 62, 62, 62, 62, 63, 56, 69], [77, 56, 63, 56, 56, 56, 56, 56, 56, 63, 56, 69], [77, 56, 63, 56, 56, 56, 56, 56, 56, 63, 56, 69], [77, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 69], [73, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 72]];
myMap12 = [[64, 65, 80, 65, 68], [77, 56, 56, 56, 69], [77, 56, 59, 56, 69], [77, 56, 56, 56, 69], [73, 74, 88, 74, 72]];
myMap13 = [[64, 65, 80, 65, 68], [77, 56, 56, 56, 69], [77, 56, 59, 56, 69], [77, 56, 56, 56, 69], [73, 74, 90, 74, 72]];
myMap14 = [[64, 65, 65, 65, 65, 65, 65, 65, 65, 65, 65, 68], [77, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 69], [77, 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, 69], [77, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 69], [77, 56, 60, 56, 60, 56, 56, 60, 56, 60, 56, 69], [77, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 69], [77, 56, 60, 56, 60, 56, 56, 60, 56, 60, 56, 69], [77, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 69], [77, 56, 60, 56, 60, 56, 56, 60, 56, 60, 56, 69], [77, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 69], [77, 56, 60, 56, 60, 56, 56, 60, 56, 60, 56, 69], [73, 74, 74, 74, 75, 92, 92, 76, 74, 74, 74, 72]];
myMap15 = [[100, 103, 103, 103, 103, 109, 109, 103, 103, 103, 103, 102], [101, 165, 108, 108, 108, 108, 108, 108, 108, 108, 108, 105], [101, 108, 98, 98, 98, 108, 108, 98, 98, 98, 108, 105], [101, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 105], [101, 108, 95, 95, 95, 108, 108, 96, 96, 96, 108, 105], [101, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 105], [101, 108, 98, 98, 98, 108, 108, 98, 98, 98, 108, 105], [101, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 105], [101, 108, 95, 95, 95, 108, 108, 96, 96, 96, 108, 105], [101, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 105], [101, 108, 98, 98, 98, 108, 108, 98, 98, 98, 108, 105], [101, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 105], [101, 108, 95, 95, 95, 108, 108, 96, 96, 96, 108, 105], [101, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 105], [101, 108, 98, 98, 98, 108, 108, 98, 98, 98, 108, 105], [101, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 105], [101, 108, 95, 95, 95, 108, 108, 96, 96, 96, 108, 105], [101, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 105], [101, 108, 98, 98, 98, 108, 108, 98, 98, 98, 108, 105], [101, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 105], [101, 108, 95, 95, 95, 108, 108, 96, 96, 96, 108, 105], [101, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 105], [101, 108, 98, 98, 98, 108, 108, 98, 98, 98, 108, 105], [101, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 105], [101, 108, 95, 95, 95, 108, 108, 96, 96, 96, 108, 105], [101, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 105], [101, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 105], [104, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 106]];
myMap16 = [[100, 103, 111, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 112, 103, 102], [101, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 95, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 105], [101, 108, 1, 108, 162, 97, 108, 162, 97, 108, 162, 97, 108, 162, 97, 108, 162, 97, 108, 162, 97, 108, 162, 97, 108, 162, 97, 108, 108, 1, 108, 105], [101, 108, 1, 98, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 1, 108, 108, 108, 108, 108, 108, 108, 98, 1, 108, 105], [101, 108, 1, 108, 1, 108, 108, 108, 108, 108, 108, 1, 108, 108, 108, 108, 108, 1, 108, 108, 108, 108, 1, 108, 108, 108, 108, 108, 108, 1, 108, 105], [101, 108, 1, 98, 108, 108, 108, 108, 1, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 1, 108, 108, 108, 98, 1, 108, 105], [101, 108, 1, 108, 108, 1, 1, 108, 108, 108, 108, 108, 108, 1, 108, 108, 1, 108, 108, 108, 108, 1, 108, 108, 108, 108, 108, 108, 108, 1, 108, 105], [101, 108, 1, 98, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 1, 108, 108, 108, 108, 98, 1, 108, 105], [101, 108, 1, 108, 108, 108, 108, 1, 108, 108, 108, 108, 108, 1, 108, 108, 108, 108, 1, 108, 108, 108, 1, 108, 108, 1, 108, 108, 108, 1, 108, 105], [101, 108, 1, 98, 108, 108, 108, 108, 108, 1, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 98, 1, 108, 105], [101, 108, 1, 108, 108, 108, 108, 108, 108, 108, 1, 108, 108, 108, 108, 108, 1, 108, 108, 108, 108, 108, 108, 1, 108, 108, 108, 108, 108, 1, 108, 105], [101, 108, 1, 98, 1, 108, 108, 108, 108, 108, 108, 1, 108, 108, 108, 1, 108, 108, 108, 108, 1, 108, 108, 108, 108, 108, 1, 108, 98, 1, 108, 105], [101, 108, 1, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 1, 108, 105], [101, 108, 1, 98, 108, 108, 108, 1, 108, 108, 108, 108, 108, 108, 108, 108, 108, 1, 108, 1, 108, 108, 108, 1, 108, 108, 108, 108, 98, 1, 108, 105], [101, 108, 1, 108, 108, 1, 108, 108, 1, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 1, 108, 108, 108, 108, 108, 1, 108, 105], [101, 108, 1, 98, 108, 108, 108, 108, 108, 108, 1, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 98, 1, 108, 105], [101, 108, 1, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 1, 108, 105], [101, 108, 1, 98, 108, 162, 97, 108, 162, 97, 108, 162, 97, 108, 162, 97, 108, 162, 97, 108, 162, 97, 108, 162, 97, 108, 162, 97, 98, 1, 108, 105], [101, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 105], [104, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 110, 110, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 106]];
myMap17 = [[100, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 107, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 102], [101, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 95, 96, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 105], [101, 108, 95, 96, 95, 96, 95, 96, 95, 96, 95, 108, 95, 96, 108, 96, 95, 108, 95, 96, 95, 96, 95, 96, 95, 96, 95, 96, 95, 96, 108, 105], [101, 108, 96, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 95, 108, 95, 96, 108, 96, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 95, 108, 105], [101, 108, 95, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 96, 108, 96, 95, 108, 95, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 96, 108, 105], [101, 108, 96, 108, 162, 97, 108, 162, 97, 108, 162, 97, 108, 95, 108, 95, 96, 108, 96, 108, 108, 162, 97, 162, 97, 162, 97, 162, 97, 95, 108, 105], [101, 108, 95, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 96, 108, 96, 95, 108, 95, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 96, 108, 105], [101, 108, 96, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 95, 108, 95, 96, 108, 96, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 95, 108, 105], [101, 108, 95, 108, 162, 97, 108, 162, 97, 108, 162, 97, 108, 96, 108, 96, 95, 108, 95, 108, 98, 108, 108, 98, 108, 108, 98, 108, 108, 96, 108, 105], [101, 108, 96, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 95, 108, 95, 96, 108, 96, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 95, 108, 105], [101, 108, 95, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 96, 108, 96, 95, 108, 95, 108, 98, 108, 108, 98, 108, 108, 98, 108, 108, 96, 108, 105], [101, 108, 96, 108, 162, 97, 108, 162, 97, 108, 162, 97, 108, 95, 108, 95, 96, 108, 96, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 95, 108, 105], [101, 108, 95, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 96, 108, 96, 95, 108, 95, 108, 98, 108, 108, 98, 108, 108, 98, 108, 108, 96, 108, 105], [101, 108, 96, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 95, 108, 95, 96, 108, 96, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 95, 108, 105], [101, 108, 95, 108, 162, 97, 108, 162, 97, 108, 162, 97, 108, 96, 108, 96, 95, 108, 95, 108, 98, 108, 108, 98, 108, 108, 98, 108, 108, 96, 108, 105], [101, 108, 96, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 95, 108, 95, 96, 108, 96, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 95, 108, 105], [101, 108, 95, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 96, 108, 96, 95, 108, 95, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 96, 108, 105], [101, 108, 96, 108, 96, 95, 96, 95, 96, 95, 96, 95, 96, 95, 108, 95, 96, 108, 96, 95, 96, 95, 96, 95, 96, 95, 96, 95, 108, 95, 108, 105], [101, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 96, 95, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 105], [104, 99, 113, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 114, 99, 106]];
myMap18 = [[100, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 117, 103, 102], [101, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 105], [101, 108, 108, 95, 108, 96, 108, 95, 108, 96, 108, 95, 108, 96, 108, 95, 108, 96, 108, 95, 108, 105], [101, 108, 96, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 105], [101, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 105], [101, 108, 95, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 105], [101, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 105], [101, 108, 96, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 105], [101, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 105], [101, 108, 95, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 105], [101, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 105], [101, 108, 96, 108, 108, 108, 108, 108, 108, 95, 108, 96, 108, 95, 108, 96, 108, 95, 108, 96, 108, 105], [101, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 105], [101, 108, 95, 108, 108, 108, 108, 108, 108, 96, 108, 1, 99, 99, 99, 99, 99, 99, 99, 99, 99, 105], [101, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 105, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58], [101, 108, 96, 108, 108, 108, 108, 108, 108, 95, 108, 105, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58], [101, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 105, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58], [101, 108, 95, 108, 108, 108, 108, 108, 108, 96, 108, 105, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58], [101, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 105, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58], [101, 108, 96, 108, 108, 108, 108, 108, 108, 95, 108, 105, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58], [101, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 105, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58], [101, 108, 95, 108, 108, 108, 108, 108, 108, 96, 108, 105, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58], [101, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 105, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58], [101, 108, 96, 108, 108, 108, 108, 108, 108, 95, 108, 105, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58], [101, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 105, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58], [101, 108, 95, 108, 108, 108, 108, 108, 108, 96, 108, 105, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58], [101, 165, 108, 108, 108, 108, 108, 108, 108, 108, 108, 105, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58], [104, 99, 116, 99, 99, 99, 99, 99, 99, 99, 99, 106, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58]];
myMap19 = [[147, 138, 138, 138, 154, 154, 138, 138, 138, 148], [139, 167, 119, 119, 119, 119, 119, 119, 119, 140], [139, 119, 121, 127, 119, 119, 127, 121, 119, 140], [139, 119, 119, 119, 119, 119, 119, 119, 119, 140], [139, 119, 119, 119, 119, 119, 119, 119, 119, 140], [139, 119, 119, 119, 119, 119, 119, 119, 119, 140], [139, 119, 119, 119, 119, 119, 119, 119, 119, 140], [139, 119, 121, 127, 119, 119, 127, 121, 119, 140], [139, 119, 119, 119, 119, 119, 119, 119, 119, 140], [149, 137, 137, 137, 137, 137, 137, 137, 137, 150]];
myMap20 = [[147, 138, 138, 138, 138, 138, 138, 138, 138, 138, 138, 151, 151, 138, 138, 138, 138, 138, 138, 138, 138, 138, 138, 138, 148], [139, 123, 122, 123, 122, 123, 122, 123, 122, 123, 126, 119, 119, 126, 122, 123, 122, 123, 122, 123, 122, 123, 122, 123, 140], [139, 122, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 122, 140], [139, 123, 119, 133, 128, 128, 128, 128, 128, 128, 131, 119, 119, 132, 128, 128, 128, 128, 128, 128, 128, 128, 134, 123, 140], [139, 122, 119, 129, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 129, 122, 140], [139, 123, 119, 129, 119, 121, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 121, 119, 129, 123, 140], [139, 122, 119, 129, 119, 119, 119, 119, 119, 119, 121, 121, 121, 121, 119, 119, 119, 119, 119, 119, 119, 119, 129, 122, 140], [139, 123, 119, 129, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 129, 123, 140], [139, 122, 119, 129, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 129, 122, 140], [139, 123, 119, 129, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 129, 123, 140], [139, 122, 119, 129, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 129, 122, 140], [139, 126, 119, 130, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 130, 126, 140], [156, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 157], [156, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 157], [139, 126, 119, 130, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 130, 126, 140], [139, 123, 119, 129, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 129, 123, 140], [139, 122, 119, 129, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 129, 122, 140], [139, 123, 119, 129, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 129, 123, 140], [139, 122, 119, 129, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 129, 122, 140], [139, 123, 119, 129, 119, 121, 119, 119, 119, 119, 121, 121, 121, 121, 119, 119, 119, 119, 119, 119, 121, 119, 129, 123, 140], [139, 122, 119, 129, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 129, 122, 140], [139, 123, 119, 135, 128, 128, 128, 128, 128, 128, 131, 119, 119, 132, 128, 128, 128, 128, 128, 128, 128, 128, 136, 123, 140], [139, 122, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 122, 140], [139, 123, 122, 123, 122, 123, 122, 123, 122, 123, 126, 119, 119, 126, 122, 123, 122, 123, 122, 123, 122, 123, 122, 123, 140], [149, 137, 137, 137, 137, 137, 137, 137, 137, 137, 137, 155, 155, 137, 137, 137, 137, 137, 137, 137, 137, 137, 137, 137, 150]];
myMap21 = [[147, 138, 138, 138, 138, 138, 138, 138, 138, 148], [139, 119, 119, 119, 119, 119, 119, 119, 119, 140], [139, 119, 133, 128, 128, 128, 128, 134, 119, 140], [139, 119, 129, 125, 119, 119, 125, 130, 119, 140], [139, 119, 129, 119, 119, 119, 119, 119, 119, 159], [139, 119, 129, 119, 119, 119, 119, 119, 119, 159], [139, 119, 129, 125, 119, 119, 125, 130, 119, 140], [139, 119, 135, 128, 128, 128, 128, 136, 119, 140], [139, 119, 119, 119, 119, 119, 119, 119, 119, 140], [149, 137, 137, 137, 137, 137, 137, 137, 137, 150]];
myMap22 = [[147, 138, 138, 138, 138, 138, 138, 138, 138, 148], [139, 119, 119, 119, 119, 119, 119, 119, 119, 140], [139, 119, 133, 128, 128, 128, 128, 134, 119, 140], [139, 119, 130, 125, 119, 119, 125, 129, 119, 140], [160, 119, 119, 119, 119, 119, 119, 129, 119, 140], [160, 119, 119, 119, 119, 119, 119, 129, 119, 140], [139, 119, 130, 125, 119, 119, 125, 129, 119, 140], [139, 119, 135, 128, 128, 128, 128, 136, 119, 140], [139, 119, 119, 119, 119, 119, 119, 119, 119, 140], [149, 137, 137, 137, 137, 137, 137, 137, 137, 150]];
myMap23 = [[100, 103, 103, 103, 103, 103, 103, 103, 103, 102], [101, 0, 0, 0, 0, 0, 0, 0, 0, 105], [101, 0, 152, 153, 0, 0, 153, 152, 0, 105], [101, 0, 0, 0, 0, 0, 0, 0, 0, 105], [101, 0, 0, 0, 0, 0, 0, 0, 0, 105], [101, 0, 0, 0, 0, 162, 97, 0, 0, 105], [101, 0, 0, 0, 0, 0, 0, 0, 0, 105], [101, 0, 152, 153, 0, 0, 153, 152, 0, 105], [101, 0, 0, 0, 0, 0, 0, 0, 0, 105], [104, 99, 99, 99, 161, 161, 99, 99, 99, 106]];
game = {tileW:40, tileH:40, currentMap:1, visx:14, visy:6, centerx:300, centery:150, points:0};
char = {xtile:2, ytile:2, speed:4, width:30, height:20};
myItems = [[0], [[1, 2, 3]], [[11, 4, 3], [1, 2, 3], [2, 7, 3]], [[2, 3, 3], [2, 3, 4], [2, 4, 3], [2, 4, 4]], [[1, 2, 3]], [[1, 2, 3]], [[12, 10, 15], [4, 3, 15]], [[1, 2, 3]], [[3, 2, 1], [3, 9, 1]], [[13, 11, 12], [5, 12, 12], [3, 9, 8], [3, 9, 14], [3, 14, 8], [3, 14, 14]], [[6, 5, 5]], [[7, 3, 5]], [[1, 2, 3]], [[1, 2, 3]], [[2, 2, 3], [2, 9, 3]], [[2, 1, 3], [2, 10, 3], [2, 1, 8], [2, 10, 8]], [0], [[14, 28, 3], [8, 28, 4]], [[3, 1, 1], [3, 20, 1], [3, 20, 12], [3, 1, 26], [3, 10, 26], [3, 10, 12]], [[1, 1, 1], [1, 8, 1]], [[2, 7, 6], [2, 12, 6]], [[9, 5, 5], [2, 1, 1], [2, 8, 1]], [[10, 5, 5], [2, 1, 1], [2, 8, 1]], [[15, 4, 4], [3, 1, 1], [3, 8, 1]]];
}
if (_root.loadinggame == true) {
myMap1 = _root.myMap1l;
myMap2 = _root.myMap2l;
myMap3 = _root.myMap3l;
myMap4 = _root.myMap4l;
myMap5 = _root.myMap5l;
myMap6 = _root.myMap6l;
myMap7 = _root.myMap7l;
myMap8 = _root.myMap8l;
myMap9 = _root.myMap9l;
myMap10 = _root.myMap10l;
myMap11 = _root.myMap11l;
myMap12 = _root.myMap12l;
myMap13 = _root.myMap13l;
myMap14 = _root.myMap14l;
myMap15 = _root.myMap15l;
myMap16 = _root.myMap16l;
myMap17 = _root.myMap17l;
myMap18 = _root.myMap18l;
myMap19 = _root.myMap19l;
myMap20 = _root.myMap20l;
myMap21 = _root.myMap21l;
myMap22 = _root.myMap22l;
myMap23 = _root.myMap23l;
myItems = _root.myItemsl;
if (_root.area == 1) {
_root.actfades.gotoAndStop(1);
}
if (_root.area == 2) {
_root.actfades.gotoAndStop(2);
}
if (_root.area == 3) {
_root.actfades.gotoAndStop(3);
}
if (_root.area == 4) {
_root.actfades.gotoAndStop(4);
}
game = {tileW:40, tileH:40, currentMap:_root.gamemap, visx:14, visy:6, centerx:300, centery:150, points:_root.points};
char = {xtile:_root.xtiler + 1, ytile:_root.ytiler + 1, speed:4, width:30, height:20};
}
function saveFunction1() {
mySharedObject = SharedObject.getLocal("HalloweenHunt_saveslot1");
mySharedObject.data.battlelevel = _root.battlelevel;
mySharedObject.data.weaponpower = _root.weaponpower;
mySharedObject.data.price1 = _root.price1;
mySharedObject.data.price2 = _root.price2;
mySharedObject.data.price3 = _root.price3;
mySharedObject.data.price4 = _root.price4;
mySharedObject.data.price5 = _root.price5;
mySharedObject.data.area = _root.area;
mySharedObject.data.power = _root.power;
mySharedObject.data.vitality = _root.vitality;
mySharedObject.data.magic = _root.magic;
mySharedObject.data.mana = _root.mana;
mySharedObject.data.weaponlvl1 = _root.weaponlvl1;
mySharedObject.data.weaponlvl2 = _root.weaponlvl2;
mySharedObject.data.weaponlvl3 = _root.weaponlvl3;
mySharedObject.data.weaponlvl4 = _root.weaponlvl4;
mySharedObject.data.weaponlvl5 = _root.weaponlvl5;
mySharedObject.data.skill1 = _root.skill1;
mySharedObject.data.skill2 = _root.skill2;
mySharedObject.data.skill3 = _root.skill3;
mySharedObject.data.skill4 = _root.skill4;
mySharedObject.data.skill5 = _root.skill5;
mySharedObject.data.skill6 = _root.skill6;
mySharedObject.data.skill7 = _root.skill7;
mySharedObject.data.skill8 = _root.skill8;
mySharedObject.data.skill9 = _root.skill9;
mySharedObject.data.points = _root.points;
mySharedObject.data.ytiler = _root.ytiler;
mySharedObject.data.xtiler = _root.xtiler;
mySharedObject.data.gamemap = _root.gamemap;
mySharedObject.data.myMap1 = _root.myMap1;
mySharedObject.data.myMap2 = _root.myMap2;
mySharedObject.data.myMap3 = _root.myMap3;
mySharedObject.data.myMap4 = _root.myMap4;
mySharedObject.data.myMap5 = _root.myMap5;
mySharedObject.data.myMap6 = _root.myMap6;
mySharedObject.data.myMap7 = _root.myMap7;
mySharedObject.data.myMap8 = _root.myMap8;
mySharedObject.data.myMap9 = _root.myMap9;
mySharedObject.data.myMap10 = _root.myMap10;
mySharedObject.data.myMap11 = _root.myMap11;
mySharedObject.data.myMap12 = _root.myMap12;
mySharedObject.data.myMap13 = _root.myMap13;
mySharedObject.data.myMap14 = _root.myMap14;
mySharedObject.data.myMap15 = _root.myMap15;
mySharedObject.data.myMap16 = _root.myMap16;
mySharedObject.data.myMap17 = _root.myMap17;
mySharedObject.data.myMap18 = _root.myMap18;
mySharedObject.data.myMap19 = _root.myMap19;
mySharedObject.data.myMap20 = _root.myMap20;
mySharedObject.data.myMap21 = _root.myMap21;
mySharedObject.data.myMap22 = _root.myMap22;
mySharedObject.data.myMap23 = _root.myMap23;
mySharedObject.data.myItems = _root.myItems;
mySharedObject.data.dragStore = _root.dragStore;
mySharedObject.data.existance = 5;
mySharedObject.flush();
}
function saveFunction2() {
mySharedObject = SharedObject.getLocal("HalloweenHunt_saveslot2");
mySharedObject.data.battlelevel = _root.battlelevel;
mySharedObject.data.weaponpower = _root.weaponpower;
mySharedObject.data.price1 = _root.price1;
mySharedObject.data.price2 = _root.price2;
mySharedObject.data.price3 = _root.price3;
mySharedObject.data.price4 = _root.price4;
mySharedObject.data.price5 = _root.price5;
mySharedObject.data.area = _root.area;
mySharedObject.data.power = _root.power;
mySharedObject.data.vitality = _root.vitality;
mySharedObject.data.magic = _root.magic;
mySharedObject.data.mana = _root.mana;
mySharedObject.data.weaponlvl1 = _root.weaponlvl1;
mySharedObject.data.weaponlvl2 = _root.weaponlvl2;
mySharedObject.data.weaponlvl3 = _root.weaponlvl3;
mySharedObject.data.weaponlvl4 = _root.weaponlvl4;
mySharedObject.data.weaponlvl5 = _root.weaponlvl5;
mySharedObject.data.skill1 = _root.skill1;
mySharedObject.data.skill2 = _root.skill2;
mySharedObject.data.skill3 = _root.skill3;
mySharedObject.data.skill4 = _root.skill4;
mySharedObject.data.skill5 = _root.skill5;
mySharedObject.data.skill6 = _root.skill6;
mySharedObject.data.skill7 = _root.skill7;
mySharedObject.data.skill8 = _root.skill8;
mySharedObject.data.skill9 = _root.skill9;
mySharedObject.data.points = _root.points;
mySharedObject.data.ytiler = _root.ytiler;
mySharedObject.data.xtiler = _root.xtiler;
mySharedObject.data.gamemap = _root.gamemap;
mySharedObject.data.myMap1 = _root.myMap1;
mySharedObject.data.myMap2 = _root.myMap2;
mySharedObject.data.myMap3 = _root.myMap3;
mySharedObject.data.myMap4 = _root.myMap4;
mySharedObject.data.myMap5 = _root.myMap5;
mySharedObject.data.myMap6 = _root.myMap6;
mySharedObject.data.myMap7 = _root.myMap7;
mySharedObject.data.myMap8 = _root.myMap8;
mySharedObject.data.myMap9 = _root.myMap9;
mySharedObject.data.myMap10 = _root.myMap10;
mySharedObject.data.myMap11 = _root.myMap11;
mySharedObject.data.myMap12 = _root.myMap12;
mySharedObject.data.myMap13 = _root.myMap13;
mySharedObject.data.myMap14 = _root.myMap14;
mySharedObject.data.myMap15 = _root.myMap15;
mySharedObject.data.myMap16 = _root.myMap16;
mySharedObject.data.myMap17 = _root.myMap17;
mySharedObject.data.myMap18 = _root.myMap18;
mySharedObject.data.myMap19 = _root.myMap19;
mySharedObject.data.myMap20 = _root.myMap20;
mySharedObject.data.myMap21 = _root.myMap21;
mySharedObject.data.myMap22 = _root.myMap22;
mySharedObject.data.myMap23 = _root.myMap23;
mySharedObject.data.myItems = _root.myItems;
mySharedObject.data.dragStore = _root.dragStore;
mySharedObject.data.existance = 5;
mySharedObject.flush();
}
function saveFunction3() {
mySharedObject = SharedObject.getLocal("HalloweenHunt_saveslot3");
mySharedObject.data.battlelevel = _root.battlelevel;
mySharedObject.data.weaponpower = _root.weaponpower;
mySharedObject.data.price1 = _root.price1;
mySharedObject.data.price2 = _root.price2;
mySharedObject.data.price3 = _root.price3;
mySharedObject.data.price4 = _root.price4;
mySharedObject.data.price5 = _root.price5;
mySharedObject.data.area = _root.area;
mySharedObject.data.power = _root.power;
mySharedObject.data.vitality = _root.vitality;
mySharedObject.data.magic = _root.magic;
mySharedObject.data.mana = _root.mana;
mySharedObject.data.weaponlvl1 = _root.weaponlvl1;
mySharedObject.data.weaponlvl2 = _root.weaponlvl2;
mySharedObject.data.weaponlvl3 = _root.weaponlvl3;
mySharedObject.data.weaponlvl4 = _root.weaponlvl4;
mySharedObject.data.weaponlvl5 = _root.weaponlvl5;
mySharedObject.data.skill1 = _root.skill1;
mySharedObject.data.skill2 = _root.skill2;
mySharedObject.data.skill3 = _root.skill3;
mySharedObject.data.skill4 = _root.skill4;
mySharedObject.data.skill5 = _root.skill5;
mySharedObject.data.skill6 = _root.skill6;
mySharedObject.data.skill7 = _root.skill7;
mySharedObject.data.skill8 = _root.skill8;
mySharedObject.data.skill9 = _root.skill9;
mySharedObject.data.points = _root.points;
mySharedObject.data.ytiler = _root.ytiler;
mySharedObject.data.xtiler = _root.xtiler;
mySharedObject.data.gamemap = _root.gamemap;
mySharedObject.data.myMap1 = _root.myMap1;
mySharedObject.data.myMap2 = _root.myMap2;
mySharedObject.data.myMap3 = _root.myMap3;
mySharedObject.data.myMap4 = _root.myMap4;
mySharedObject.data.myMap5 = _root.myMap5;
mySharedObject.data.myMap6 = _root.myMap6;
mySharedObject.data.myMap7 = _root.myMap7;
mySharedObject.data.myMap8 = _root.myMap8;
mySharedObject.data.myMap9 = _root.myMap9;
mySharedObject.data.myMap10 = _root.myMap10;
mySharedObject.data.myMap11 = _root.myMap11;
mySharedObject.data.myMap12 = _root.myMap12;
mySharedObject.data.myMap13 = _root.myMap13;
mySharedObject.data.myMap14 = _root.myMap14;
mySharedObject.data.myMap15 = _root.myMap15;
mySharedObject.data.myMap16 = _root.myMap16;
mySharedObject.data.myMap17 = _root.myMap17;
mySharedObject.data.myMap18 = _root.myMap18;
mySharedObject.data.myMap19 = _root.myMap19;
mySharedObject.data.myMap20 = _root.myMap20;
mySharedObject.data.myMap21 = _root.myMap21;
mySharedObject.data.myMap22 = _root.myMap22;
mySharedObject.data.myMap23 = _root.myMap23;
mySharedObject.data.myItems = _root.myItems;
mySharedObject.data.dragStore = _root.dragStore;
mySharedObject.data.existance = 5;
mySharedObject.flush();
}
function saveFunction4() {
mySharedObject = SharedObject.getLocal("HalloweenHunt_saveslot4");
mySharedObject.data.battlelevel = _root.battlelevel;
mySharedObject.data.weaponpower = _root.weaponpower;
mySharedObject.data.price1 = _root.price1;
mySharedObject.data.price2 = _root.price2;
mySharedObject.data.price3 = _root.price3;
mySharedObject.data.price4 = _root.price4;
mySharedObject.data.price5 = _root.price5;
mySharedObject.data.area = _root.area;
mySharedObject.data.power = _root.power;
mySharedObject.data.vitality = _root.vitality;
mySharedObject.data.magic = _root.magic;
mySharedObject.data.mana = _root.mana;
mySharedObject.data.weaponlvl1 = _root.weaponlvl1;
mySharedObject.data.weaponlvl2 = _root.weaponlvl2;
mySharedObject.data.weaponlvl3 = _root.weaponlvl3;
mySharedObject.data.weaponlvl4 = _root.weaponlvl4;
mySharedObject.data.weaponlvl5 = _root.weaponlvl5;
mySharedObject.data.skill1 = _root.skill1;
mySharedObject.data.skill2 = _root.skill2;
mySharedObject.data.skill3 = _root.skill3;
mySharedObject.data.skill4 = _root.skill4;
mySharedObject.data.skill5 = _root.skill5;
mySharedObject.data.skill6 = _root.skill6;
mySharedObject.data.skill7 = _root.skill7;
mySharedObject.data.skill8 = _root.skill8;
mySharedObject.data.skill9 = _root.skill9;
mySharedObject.data.points = _root.points;
mySharedObject.data.ytiler = _root.ytiler;
mySharedObject.data.xtiler = _root.xtiler;
mySharedObject.data.gamemap = _root.gamemap;
mySharedObject.data.myMap1 = _root.myMap1;
mySharedObject.data.myMap2 = _root.myMap2;
mySharedObject.data.myMap3 = _root.myMap3;
mySharedObject.data.myMap4 = _root.myMap4;
mySharedObject.data.myMap5 = _root.myMap5;
mySharedObject.data.myMap6 = _root.myMap6;
mySharedObject.data.myMap7 = _root.myMap7;
mySharedObject.data.myMap8 = _root.myMap8;
mySharedObject.data.myMap9 = _root.myMap9;
mySharedObject.data.myMap10 = _root.myMap10;
mySharedObject.data.myMap11 = _root.myMap11;
mySharedObject.data.myMap12 = _root.myMap12;
mySharedObject.data.myMap13 = _root.myMap13;
mySharedObject.data.myMap14 = _root.myMap14;
mySharedObject.data.myMap15 = _root.myMap15;
mySharedObject.data.myMap16 = _root.myMap16;
mySharedObject.data.myMap17 = _root.myMap17;
mySharedObject.data.myMap18 = _root.myMap18;
mySharedObject.data.myMap19 = _root.myMap19;
mySharedObject.data.myMap20 = _root.myMap20;
mySharedObject.data.myMap21 = _root.myMap21;
mySharedObject.data.myMap22 = _root.myMap22;
mySharedObject.data.myMap23 = _root.myMap23;
mySharedObject.data.myItems = _root.myItems;
mySharedObject.data.dragStore = _root.dragStore;
mySharedObject.data.existance = 5;
mySharedObject.flush();
}
function autosave() {
_root.auto_battlelevel = _root.battlelevel;
_root.auto_weaponpower = _root.weaponpower;
_root.auto_price1 = _root.price1;
_root.auto_price2 = _root.price2;
_root.auto_price3 = _root.price3;
_root.auto_price4 = _root.price4;
_root.auto_price5 = _root.price5;
_root.auto_area = _root.area;
_root.auto_power = _root.power;
_root.auto_vitality = _root.vitality;
_root.auto_magic = _root.magic;
_root.auto_mana = _root.mana;
_root.auto_weaponlvl1 = _root.weaponlvl1;
_root.auto_weaponlvl2 = _root.weaponlvl2;
_root.auto_weaponlvl3 = _root.weaponlvl3;
_root.auto_weaponlvl4 = _root.weaponlvl4;
_root.auto_weaponlvl5 = _root.weaponlvl5;
_root.auto_skill1 = _root.skill1;
_root.auto_skill2 = _root.skill2;
_root.auto_skill3 = _root.skill3;
_root.auto_skill4 = _root.skill4;
_root.auto_skill5 = _root.skill5;
_root.auto_skill6 = _root.skill6;
_root.auto_skill7 = _root.skill7;
_root.auto_skill8 = _root.skill8;
_root.auto_skill9 = _root.skill9;
_root.auto_points = _root.points;
_root.auto_ytiler = _root.ytiler;
_root.auto_xtiler = _root.xtiler;
_root.auto_gamemap = _root.gamemap;
_root.auto_myMap1 = _root.myMap1;
_root.auto_myMap2 = _root.myMap2;
_root.auto_myMap3 = _root.myMap3;
_root.auto_myMap4 = _root.myMap4;
_root.auto_myMap5 = _root.myMap5;
_root.auto_myMap6 = _root.myMap6;
_root.auto_myMap7 = _root.myMap7;
_root.auto_myMap8 = _root.myMap8;
_root.auto_myMap9 = _root.myMap9;
_root.auto_myMap10 = _root.myMap10;
_root.auto_myMap11 = _root.myMap11;
_root.auto_myMap12 = _root.myMap12;
_root.auto_myMap13 = _root.myMap13;
_root.auto_myMap14 = _root.myMap14;
_root.auto_myMap15 = _root.myMap15;
_root.auto_myMap16 = _root.myMap16;
_root.auto_myMap17 = _root.myMap17;
_root.auto_myMap18 = _root.myMap18;
_root.auto_myMap19 = _root.myMap19;
_root.auto_myMap20 = _root.myMap20;
_root.auto_myMap21 = _root.myMap21;
_root.auto_myMap22 = _root.myMap22;
_root.auto_myMap23 = _root.myMap23;
_root.auto_myItems = _root.myItems;
_root.auto_dragStore = _root.dragStore;
}
function buildMap(map) {
_root.attachMovie("empty", "tiles", 1);
_root.tiles.attachMovie("empty", "back", 0);
game.halfvisx = int(game.visx / 2) - 20;
game.halfvisy = int(game.visy / 2) - 30;
game.mapwidth = map[0].length;
game.mapheight = map.length;
game.clip = _root.tiles;
if (game.halfvisx > char.xtile) {
var _local13 = char.xtile - game.halfvisx;
var _local15 = 0;
} else if (char.xtile > (game.mapwidth - game.halfvisx)) {
var _local13 = game.mapwidth - char.xtile;
var _local15 = 1;
}
if (game.halfvisy > char.ytile) {
var _local12 = char.ytile - game.halfvisy;
var _local14 = 0;
} else if (char.ytile > ((game.mapheight - game.halfvisy) - 1)) {
var _local12 = (game.mapheight - char.ytile) - 1;
var _local14 = 1;
}
game.clip._x = game.centerx - (char.xtile * game.tileW);
game.clip._y = game.centery - (char.ytile * game.tileH);
char.xstep = char.x - ((_local13 + _local15) * game.tileW);
char.ystep = char.y - ((_local12 + _local14) * game.tileH);
var _local4 = char.ytile - game.halfvisy;
while (_local4 <= ((char.ytile + game.halfvisy) + 1)) {
var _local2 = char.xtile - game.halfvisx;
while (_local2 <= ((char.xtile + game.halfvisx) + 1)) {
var _local7 = (("t_" + _local4) + "_") + _local2;
if ((((_local4 >= 0) and (_local2 >= 0)) and (_local4 <= (map.length - 1))) and (_local2 <= (map[0].length - 1))) {
game[_local7] = new game["Tile" + map[_local4][_local2]]();
} else {
game[_local7] = new game.Tile4();
}
game.clip.attachMovie("tile", _local7, (1 + (_local4 * 100)) + (_local2 * 2));
game.clip[_local7]._x = _local2 * game.tileW;
game.clip[_local7]._y = _local4 * game.tileH;
game.clip[_local7].gotoAndStop(game[_local7].frame);
game.clip[_local7].cacheAsBitmap = true;
_local2++;
}
_local4++;
}
var _local9 = map[0].length;
var _local10 = map.length;
char.clip.gotoAndStop(char.frame);
var _local6 = 0;
while (_local6 < _local10) {
var _local3 = 0;
while (_local3 < _local9) {
var _local7 = (("t_" + _local6) + "_") + _local3;
game[_local7] = new game["Tile" + map[_local6][_local3]]();
if (game[_local7].walkable) {
var _local5 = game.clip.back;
} else {
var _local5 = game.clip;
}
game[_local7].depth = (((_local6 * game.tileH) * 300) + (_local3 * game.tileW)) + 1;
_local5.attachMovie("tile", _local7, game[_local7].depth);
_local5[_local7]._x = (_local3 * game.tileW) + 20;
_local5[_local7]._y = (_local6 * game.tileH) + 30;
_local5[_local7].gotoAndStop(game[_local7].frame);
_local5[_local7].cacheAsBitmap = true;
_local3++;
}
_local6++;
}
game.items = myItems[game.currentMap];
_local6 = 0;
while (_local6 < game.items.length) {
var _local7 = (("item" + game.items[_local6][2]) + "_") + game.items[_local6][1];
game[_local7] = new game["Item" + game.items[_local6][0]]();
game[_local7].position = _local6;
game.clip.attachMovie("items", _local7, 11001 + _local6);
game[_local7].clip = game.clip[_local7];
game[_local7].clip._x = (game.items[_local6][1] * game.tileW) + 20;
game[_local7].clip._y = (game.items[_local6][2] * game.tileH) + 30;
game[_local7].clip.gotoAndStop(game.items[_local6][0]);
_local6++;
}
_root.points = game.points;
game.clip.attachMovie("char", "char", 10000);
char.clip = game.clip.char;
char.x = (char.xtile * game.tileW) - 20;
char.y = (char.ytile * game.tileW) - 20;
char.width = char.clip._width / 2;
char.height = (char.clip._height / 2) - 15;
char.clip.gotoAndStop(char.frame);
char.clip._x = char.x;
char.clip._y = char.y;
char.xstep = char.x;
char.ystep = char.y;
var _local11 = _root.char;
keyPressed = _root.moveChar(_local11, 1, 0);
keyPressed = _root.moveChar(_local11, -1, 0);
}
function moveChar(ob, dirx, diry) {
if ((_root.fight_on == false) && (_root.menushow == false)) {
getMyCorners(ob.x, ob.y + (ob.speed * diry), ob);
if (diry == -1) {
if (ob.upleft && (ob.upright)) {
ob.y = ob.y + (ob.speed * diry);
} else {
ob.y = (ob.ytile * game.tileH) + ob.height;
}
}
if (diry == 1) {
if (ob.downleft && (ob.downright)) {
ob.y = ob.y + (ob.speed * diry);
} else {
ob.y = ((ob.ytile + 1) * game.tileH) - ob.height;
}
}
getMyCorners(ob.x + (ob.speed * dirx), ob.y, ob);
if (dirx == -1) {
if (ob.downleft && (ob.upleft)) {
ob.x = ob.x + (ob.speed * dirx);
} else {
ob.x = (ob.xtile * game.tileW) + ob.width;
}
}
if (dirx == 1) {
if (ob.upright && (ob.downright)) {
ob.x = ob.x + (ob.speed * dirx);
} else {
ob.x = ((ob.xtile + 1) * game.tileW) - ob.width;
}
}
ob.clip._x = ob.x;
ob.clip._y = ob.y;
ob.clip.gotoAndStop((dirx + (diry * 2)) + 3);
ob.xtile = Math.floor(ob.clip._x / game.tileW);
ob.ytile = Math.floor(ob.clip._y / game.tileH);
if (game[(("t_" + ob.ytile) + "_") + ob.xtile].door and (ob == _root.char)) {
changeMap(ob);
}
if (game[(("t_" + ob.ytile) + "_") + ob.xtile].savepoint and (ob == _root.char)) {
_root.ytiler = ob.ytile;
_root.xtiler = ob.xtile;
_root.gamemap = game.currentMap;
_root.savable = true;
} else {
_root.ytiler = ob.ytile;
_root.xtiler = ob.xtile;
_root.gamemap = game.currentMap;
_root.savable = false;
}
game.clip._x = game.centerx - ob.x;
game.clip._y = game.centery - ob.y;
if (ob.xstep < (ob.x - game.tileW)) {
var _local11 = Math.floor(ob.xstep / game.tileW) + 1;
var _local7 = (_local11 + game.halfvisx) + 1;
var _local5 = (_local11 - game.halfvisx) - 1;
var _local3 = (ob.ytile - game.halfvisy) - 1;
while (_local3 <= ((ob.ytile + game.halfvisy) + 1)) {
changeTile(_local5, _local3, _local7, _local3, _root["myMap" + game.currentMap]);
_local3++;
}
ob.xstep = ob.xstep + game.tileW;
} else if (ob.xstep > ob.x) {
var _local11 = Math.floor(ob.xstep / game.tileW);
var _local5 = (_local11 + game.halfvisx) + 1;
var _local7 = (_local11 - game.halfvisx) - 1;
var _local3 = (ob.ytile - game.halfvisy) - 1;
while (_local3 <= ((ob.ytile + game.halfvisy) + 1)) {
changeTile(_local5, _local3, _local7, _local3, _root["myMap" + game.currentMap]);
_local3++;
}
ob.xstep = ob.xstep - game.tileW;
}
if (ob.ystep < (ob.y - game.tileH)) {
var _local12 = Math.floor(ob.ystep / game.tileH) + 1;
var _local8 = (_local12 + game.halfvisy) + 1;
var _local6 = (_local12 - game.halfvisy) - 1;
var _local3 = (ob.xtile - game.halfvisx) - 1;
while (_local3 <= ((ob.xtile + game.halfvisx) + 1)) {
changeTile(_local3, _local6, _local3, _local8, _root["myMap" + game.currentMap]);
_local3++;
}
ob.ystep = ob.ystep + game.tileH;
} else if (ob.ystep > ob.y) {
var _local12 = Math.floor(ob.ystep / game.tileH);
var _local6 = (_local12 + game.halfvisy) + 1;
var _local8 = (_local12 - game.halfvisy) - 1;
var _local3 = (ob.xtile - game.halfvisx) - 1;
while (_local3 <= ((ob.xtile + game.halfvisx) + 1)) {
changeTile(_local3, _local6, _local3, _local8, _root["myMap" + game.currentMap]);
_local3++;
}
ob.ystep = ob.ystep - game.tileH;
}
ob.depth = ((ob.y * 300) + ob.x) + 1;
ob.clip.swapDepths(ob.depth);
var _local4 = game[(("item" + ob.ytile) + "_") + ob.xtile];
if (_local4 and (ob == _root.char)) {
game.points = game.points + _local4.points;
if (_local4.key == 0) {
bounceMessages();
_root.poptimer1 = _root.poptimeBasic;
_root.popmessage1 = ("You picked up " + _local4.points) + " halloween coins.";
}
itemkey = _local4.key;
if (itemkey >= 1) {
keyFunction(itemkey);
}
_root.points = game.points;
removeMovieClip(_local4.clip);
game.items[_local4.position] = 0;
delete game[(("item" + ob.ytile) + "_") + ob.xtile];
}
randomizecounter = Math.round(((_root.dragStore - 3.5) * 2) + 100);
moveRandomizer = Math.round(Math.random() * randomizecounter);
if (moveRandomizer == 75) {
battleStart();
}
return(true);
}
}
function detectKeys() {
var _local2 = _root.char;
var _local3 = false;
if (Key.isDown(39)) {
_local3 = _root.moveChar(_local2, 1, 0);
} else if (Key.isDown(37)) {
_local3 = _root.moveChar(_local2, -1, 0);
} else if (Key.isDown(38)) {
_local3 = _root.moveChar(_local2, 0, -1);
} else if (Key.isDown(40)) {
_local3 = _root.moveChar(_local2, 0, 1);
}
if (!_local3) {
_local2.clip.char.gotoAndStop(1);
} else {
_local2.clip.char.play();
}
}
function changeMap(ob) {
var _local3 = [];
var _local2 = 0;
while (_local2 < game.items.length) {
if (game.items[_local2]) {
var _local5 = (("item" + game.items[_local2][2]) + "_") + game.items[_local2][1];
delete game[_local5];
_local3.push(game.items[_local2]);
}
_local2++;
}
myItems[game.currentMap] = _local3;
var _local5 = (("t_" + ob.ytile) + "_") + ob.xtile;
oldmap = game.currentMap;
game.currentMap = game[_local5].newMap;
newmap = game.currentMap;
ob.ytile = game[_local5].newchary;
ob.xtile = game[_local5].newcharx;
ob.frame = ob.clip._currentframe;
if ((oldmap == 7) && (newmap == 8)) {
_root.area = 2;
_root.concentrated = false;
_root.battleMessage = "The first dragon!";
_root.maxhealth = Math.floor(((_root.vitality * 4) * _root.battlelevel) * 6) + 50;
_root.currenthealth = _root.maxhealth;
_root.maxenergy = Math.floor(((_root.mana * 1) * _root.battlelevel) * 10);
_root.currentenergy = _root.maxenergy;
_root.enemylevel = 4;
_root.enemyhealth = (_root.enemylevel * 70) + Math.round((_root.enemylevel * 2.75) * (_root.battlelevel * _root.vitality));
_root.enemypower = (_root.enemylevel * 3) + 2;
_root.enemynumber = 8;
_root.fight_on = true;
_root.battleengine.startFlash.gotoAndPlay(1);
_root.battleengine.enemy.inside.gotoAndStop(1);
_root.battleengine.selectbox.gotoAndStop(1);
} else if ((oldmap == 14) && (newmap == 15)) {
_root.area = 3;
_root.concentrated = false;
_root.battleMessage = "The second dragon!";
_root.maxhealth = Math.floor(((_root.vitality * 4) * _root.battlelevel) * 6) + 50;
_root.currenthealth = _root.maxhealth;
_root.maxenergy = Math.floor(((_root.mana * 1) * _root.battlelevel) * 10);
_root.currentenergy = _root.maxenergy;
_root.enemylevel = 6;
_root.enemyhealth = (_root.enemylevel * 70) + Math.round((_root.enemylevel * 2.75) * (_root.battlelevel * _root.vitality));
_root.enemypower = (_root.enemylevel * 3) + 2;
_root.enemynumber = 9;
_root.fight_on = true;
_root.battleengine.startFlash.gotoAndPlay(1);
_root.battleengine.enemy.inside.gotoAndStop(1);
_root.battleengine.selectbox.gotoAndStop(1);
} else if ((oldmap == 18) && (newmap == 19)) {
_root.area = 4;
_root.concentrated = false;
_root.battleMessage = "The final dragon!";
_root.maxhealth = Math.floor(((_root.vitality * 4) * _root.battlelevel) * 6) + 50;
_root.currenthealth = _root.maxhealth;
_root.maxenergy = Math.floor(((_root.mana * 1) * _root.battlelevel) * 10);
_root.currentenergy = _root.maxenergy;
_root.enemylevel = 10;
_root.enemyhealth = Math.round((_root.enemylevel * 70) + (Math.round((_root.enemylevel * 2.75) * (_root.battlelevel * _root.vitality)) * 2));
_root.enemypower = (_root.enemylevel * 3) + 3;
_root.enemynumber = 10;
_root.fight_on = true;
_root.battleengine.startFlash.gotoAndPlay(1);
_root.battleengine.enemy.inside.gotoAndStop(1);
_root.battleengine.selectbox.gotoAndStop(1);
} else if ((oldmap == 23) && (newmap == 23)) {
_root.actfades.gotoAndStop(5);
} else {
autosave();
bounceMessages();
_root.poptimer1 = Math.round(_root.poptimeBasic / 4);
_root.popmessage1 = "Checkpoint saved.";
}
buildMap(_root["myMap" + game.currentMap]);
}
function changeTile(xold, yold, xnew, ynew, map) {
var _local3 = (("t_" + yold) + "_") + xold;
var _local1 = (("t_" + ynew) + "_") + xnew;
if ((((ynew >= 0) and (xnew >= 0)) and (ynew <= (map.length - 1))) and (xnew <= (map[0].length - 1))) {
game[_local1] = new game["Tile" + map[ynew][xnew]]();
game.clip[_local3]._name = _local1;
game.clip[_local1].gotoAndStop(game[_local1].frame);
game.clip[_local1]._x = xnew * game.tileW;
game.clip[_local1]._y = ynew * game.tileH;
} else {
game[_local1] = new game.Tile4();
game.clip[_local3]._name = _local1;
game.clip[_local1].gotoAndStop(game[_local1].frame);
}
if (game[_local3].walkable == undefined) {
return(undefined);
}
}
function keyFunction(itemkey) {
if (itemkey == 1) {
bounceMessages();
_root.poptimer1 = _root.poptimeBasic;
_root.popmessage1 = "You picked up the key to the Mausoleum.";
myMap7 = [[28, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 29], [20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 21], [20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 21], [20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 21], [20, 44, 45, 46, 47, 48, 93, 94, 51, 52, 53, 54, 55, 21], [20, 6, 6, 6, 6, 0, 0, 0, 0, 6, 6, 6, 6, 21], [20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 165, 0, 0, 21], [30, 18, 18, 18, 18, 24, 42, 42, 26, 18, 18, 18, 18, 31]];
} else if (itemkey == 2) {
bounceMessages();
_root.poptimer1 = _root.poptimeBasic;
_root.popmessage1 = "You picked up the second exit key.";
myMap12 = [[64, 65, 89, 65, 68], [77, 56, 56, 56, 69], [77, 56, 59, 56, 69], [77, 56, 56, 56, 69], [73, 74, 88, 74, 72]];
} else if (itemkey == 3) {
bounceMessages();
_root.poptimer1 = _root.poptimeBasic;
_root.popmessage1 = "You picked up the third exit key.";
myMap13 = [[64, 65, 91, 65, 68], [77, 56, 56, 56, 69], [77, 56, 59, 56, 69], [77, 56, 56, 56, 69], [73, 74, 90, 74, 72]];
} else if (itemkey == 4) {
bounceMessages();
_root.poptimer1 = _root.poptimeBasic;
_root.popmessage1 = "You picked up the first exit key.";
myMap9 = [[64, 58, 58, 58, 58, 58, 58, 58, 64, 65, 65, 87, 87, 65, 65, 68, 58, 58, 58, 58, 58, 58, 58, 68], [58, 58, 58, 58, 58, 58, 58, 58, 77, 56, 56, 56, 56, 56, 166, 69, 58, 58, 58, 58, 58, 58, 58, 58], [58, 58, 58, 58, 58, 58, 58, 58, 77, 56, 60, 56, 56, 60, 56, 69, 58, 58, 58, 58, 58, 58, 58, 58], [58, 58, 58, 58, 58, 58, 58, 58, 77, 56, 56, 56, 56, 56, 56, 69, 58, 58, 58, 58, 58, 58, 58, 58], [58, 58, 58, 58, 58, 58, 58, 58, 77, 56, 60, 56, 56, 60, 56, 69, 58, 58, 58, 58, 58, 58, 58, 58], [58, 58, 58, 58, 58, 58, 58, 58, 77, 56, 56, 56, 56, 56, 56, 69, 58, 58, 58, 58, 58, 58, 58, 58], [58, 58, 58, 58, 58, 58, 58, 58, 77, 56, 60, 56, 56, 60, 56, 69, 58, 58, 58, 58, 58, 58, 58, 58], [73, 74, 74, 74, 74, 74, 74, 74, 63, 56, 56, 56, 56, 56, 56, 63, 74, 74, 74, 74, 74, 74, 74, 72], [77, 56, 56, 56, 56, 56, 56, 56, 56, 56, 60, 56, 56, 60, 56, 56, 56, 56, 56, 56, 56, 56, 56, 69], [77, 56, 60, 56, 60, 56, 60, 56, 60, 56, 56, 56, 56, 56, 56, 60, 56, 60, 56, 60, 56, 60, 56, 69], [77, 56, 56, 56, 56, 56, 56, 56, 56, 56, 61, 56, 56, 61, 56, 56, 56, 56, 56, 56, 56, 56, 56, 69], [83, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 84], [83, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 84], [77, 56, 60, 56, 60, 56, 60, 56, 60, 56, 61, 56, 56, 61, 56, 60, 56, 60, 56, 60, 56, 60, 56, 69], [77, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 69], [73, 74, 74, 74, 74, 74, 74, 74, 63, 56, 60, 56, 56, 60, 56, 63, 74, 74, 74, 74, 74, 74, 74, 72], [58, 58, 58, 58, 58, 58, 58, 58, 77, 56, 56, 56, 56, 56, 56, 69, 58, 58, 58, 58, 58, 58, 58, 58], [58, 58, 58, 58, 58, 58, 58, 58, 77, 56, 60, 56, 56, 60, 56, 69, 58, 58, 58, 58, 58, 58, 58, 58], [58, 58, 58, 58, 58, 58, 58, 58, 77, 56, 56, 56, 56, 56, 56, 69, 58, 58, 58, 58, 58, 58, 58, 58], [58, 58, 58, 58, 58, 58, 58, 58, 77, 56, 60, 56, 56, 60, 56, 69, 58, 58, 58, 58, 58, 58, 58, 58], [58, 58, 58, 58, 58, 58, 58, 58, 77, 56, 56, 56, 56, 56, 56, 69, 58, 58, 58, 58, 58, 58, 58, 58], [58, 58, 58, 58, 58, 58, 58, 58, 77, 56, 60, 56, 56, 60, 56, 69, 58, 58, 58, 58, 58, 58, 58, 58], [58, 58, 58, 58, 58, 58, 58, 58, 77, 56, 56, 56, 56, 56, 166, 69, 58, 58, 58, 58, 58, 58, 58, 58], [58, 58, 58, 58, 58, 58, 58, 58, 74, 74, 75, 82, 82, 76, 74, 74, 58, 58, 58, 58, 58, 58, 58, 58]];
} else if (itemkey == 5) {
bounceMessages();
_root.poptimer1 = _root.poptimeBasic;
_root.popmessage1 = "You picked up the woods fence key.";
myMap17 = [[100, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 115, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 102], [101, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 95, 96, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 105], [101, 108, 95, 96, 95, 96, 95, 96, 95, 96, 95, 108, 95, 96, 108, 96, 95, 108, 95, 96, 95, 96, 95, 96, 95, 96, 95, 96, 95, 96, 108, 105], [101, 108, 96, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 95, 108, 95, 96, 108, 96, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 95, 108, 105], [101, 108, 95, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 96, 108, 96, 95, 108, 95, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 96, 108, 105], [101, 108, 96, 108, 162, 97, 108, 162, 97, 108, 162, 97, 108, 95, 108, 95, 96, 108, 96, 108, 108, 162, 97, 162, 97, 162, 97, 162, 97, 95, 108, 105], [101, 108, 95, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 96, 108, 96, 95, 108, 95, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 96, 108, 105], [101, 108, 96, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 95, 108, 95, 96, 108, 96, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 95, 108, 105], [101, 108, 95, 108, 162, 97, 108, 162, 97, 108, 162, 97, 108, 96, 108, 96, 95, 108, 95, 108, 98, 108, 108, 98, 108, 108, 98, 108, 108, 96, 108, 105], [101, 108, 96, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 95, 108, 95, 96, 108, 96, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 95, 108, 105], [101, 108, 95, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 96, 108, 96, 95, 108, 95, 108, 98, 108, 108, 98, 108, 108, 98, 108, 108, 96, 108, 105], [101, 108, 96, 108, 162, 97, 108, 162, 97, 108, 162, 97, 108, 95, 108, 95, 96, 108, 96, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 95, 108, 105], [101, 108, 95, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 96, 108, 96, 95, 108, 95, 108, 98, 108, 108, 98, 108, 108, 98, 108, 108, 96, 108, 105], [101, 108, 96, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 95, 108, 95, 96, 108, 96, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 95, 108, 105], [101, 108, 95, 108, 162, 97, 108, 162, 97, 108, 162, 97, 108, 96, 108, 96, 95, 108, 95, 108, 98, 108, 108, 98, 108, 108, 98, 108, 108, 96, 108, 105], [101, 108, 96, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 95, 108, 95, 96, 108, 96, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 95, 108, 105], [101, 108, 95, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 96, 108, 96, 95, 108, 95, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 96, 108, 105], [101, 108, 96, 108, 96, 95, 96, 95, 96, 95, 96, 95, 96, 95, 108, 95, 96, 108, 96, 95, 96, 95, 96, 95, 96, 95, 96, 95, 108, 95, 108, 105], [101, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 96, 95, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 105], [104, 99, 113, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 114, 99, 106]];
} else if (itemkey == 6) {
bounceMessages();
_root.poptimer1 = _root.poptimeBasic;
_root.popmessage1 = "You picked up the mansion's yard key.";
myMap20 = [[147, 138, 138, 138, 138, 138, 138, 138, 138, 138, 138, 158, 158, 138, 138, 138, 138, 138, 138, 138, 138, 138, 138, 138, 148], [139, 123, 122, 123, 122, 123, 122, 123, 122, 123, 126, 119, 119, 126, 122, 123, 122, 123, 122, 123, 122, 123, 122, 123, 140], [139, 122, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 122, 140], [139, 123, 119, 133, 128, 128, 128, 128, 128, 128, 131, 119, 119, 132, 128, 128, 128, 128, 128, 128, 128, 128, 134, 123, 140], [139, 122, 119, 129, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 129, 122, 140], [139, 123, 119, 129, 119, 121, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 121, 119, 129, 123, 140], [139, 122, 119, 129, 119, 119, 119, 119, 119, 119, 121, 121, 121, 121, 119, 119, 119, 119, 119, 119, 119, 119, 129, 122, 140], [139, 123, 119, 129, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 129, 123, 140], [139, 122, 119, 129, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 129, 122, 140], [139, 123, 119, 129, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 129, 123, 140], [139, 122, 119, 129, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 129, 122, 140], [139, 126, 119, 130, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 130, 126, 140], [156, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 157], [156, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 157], [139, 126, 119, 130, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 130, 126, 140], [139, 123, 119, 129, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 129, 123, 140], [139, 122, 119, 129, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 129, 122, 140], [139, 123, 119, 129, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 129, 123, 140], [139, 122, 119, 129, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 129, 122, 140], [139, 123, 119, 129, 119, 121, 119, 119, 119, 119, 121, 121, 121, 121, 119, 119, 119, 119, 119, 119, 121, 119, 129, 123, 140], [139, 122, 119, 129, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 129, 122, 140], [139, 123, 119, 135, 128, 128, 128, 128, 128, 128, 131, 119, 119, 132, 128, 128, 128, 128, 128, 128, 128, 128, 136, 123, 140], [139, 122, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 122, 140], [139, 123, 122, 123, 122, 123, 122, 123, 122, 123, 126, 119, 119, 126, 122, 123, 122, 123, 122, 123, 122, 123, 122, 123, 140], [149, 137, 137, 137, 137, 137, 137, 137, 137, 137, 137, 155, 155, 137, 137, 137, 137, 137, 137, 137, 137, 137, 137, 137, 150]];
} else if (itemkey == 7) {
bounceMessages();
_root.poptimer1 = _root.poptimeBasic;
_root.popmessage1 = "You picked up the mansion's entry key.";
myMap23 = [[100, 103, 103, 103, 164, 164, 103, 103, 103, 102], [101, 0, 0, 0, 0, 0, 0, 0, 0, 105], [101, 0, 152, 153, 0, 0, 153, 152, 0, 105], [101, 0, 0, 0, 0, 0, 0, 0, 0, 105], [101, 0, 0, 0, 0, 0, 0, 0, 0, 105], [101, 0, 0, 0, 0, 162, 97, 0, 0, 105], [101, 0, 0, 0, 0, 0, 0, 0, 0, 105], [101, 0, 152, 153, 0, 0, 153, 152, 0, 105], [101, 165, 0, 0, 0, 0, 0, 0, 0, 105], [104, 99, 99, 99, 161, 161, 99, 99, 99, 106]];
} else if (itemkey == 10) {
bounceMessages();
_root.poptimer1 = _root.poptimeBasic;
_root.popmessage1 = "You picked up weapon level 1.";
_root.weaponlvl1 = true;
} else if (itemkey == 11) {
bounceMessages();
_root.poptimer1 = _root.poptimeBasic;
_root.popmessage1 = "You picked up weapon level 2.";
_root.weaponlvl2 = true;
} else if (itemkey == 12) {
bounceMessages();
_root.poptimer1 = _root.poptimeBasic;
_root.popmessage1 = "You picked up weapon level 3.";
_root.weaponlvl3 = true;
} else if (itemkey == 13) {
bounceMessages();
_root.poptimer1 = _root.poptimeBasic;
_root.popmessage1 = "You picked up weapon level 4.";
_root.weaponlvl4 = true;
} else if (itemkey == 14) {
bounceMessages();
_root.poptimer1 = _root.poptimeBasic;
_root.popmessage1 = "You picked up weapon level 5.";
_root.weaponlvl5 = true;
}
}
function getMyCorners(ax, ay, ob) {
ob.downY = Math.floor(((ay + ob.height) - 1) / game.tileH);
ob.upY = Math.floor((ay - ob.height) / game.tileH);
ob.leftX = Math.floor((ax - ob.width) / game.tileW);
ob.rightX = Math.floor(((ax + ob.width) - 1) / game.tileW);
ob.upleft = game[(("t_" + ob.upY) + "_") + ob.leftX].walkable;
ob.downleft = game[(("t_" + ob.downY) + "_") + ob.leftX].walkable;
ob.upright = game[(("t_" + ob.upY) + "_") + ob.rightX].walkable;
ob.downright = game[(("t_" + ob.downY) + "_") + ob.rightX].walkable;
}
function bounceMessages() {
if (_root.poptimer1 > 0) {
if (_root.poptimer2 > 0) {
_root.poptimer3 = _root.poptimer2;
_root.popmessage3 = _root.popmessage2;
}
_root.poptimer2 = _root.poptimer1;
_root.popmessage2 = _root.popmessage1;
}
}
function battleStart() {
_root.concentrated = false;
_root.battleMessage = "Battle start!";
_root.maxhealth = Math.floor(((_root.vitality * 4) * _root.battlelevel) * 6) + 50;
_root.currenthealth = _root.maxhealth;
_root.maxenergy = Math.floor(((_root.mana * 1) * _root.battlelevel) * 10);
_root.currentenergy = _root.maxenergy;
adds = Math.round(((((_root.vitality + _root.power) + _root.mana) + _root.magic) / 4) / 6);
_root.enemylevel = Math.round((((_root.battlelevel / 1.5) * _root.area) / 2) + adds);
_root.enemyhealth = (_root.enemylevel * 70) + Math.round((_root.enemylevel * 2.75) * (_root.battlelevel * _root.vitality));
_root.enemypower = (_root.enemylevel * 3) + 2;
_root.enemynumber = Math.round((Math.random() * 6) + 1);
_root.fight_on = true;
_root.battleengine.startFlash.gotoAndPlay(1);
_root.battleengine.enemy.inside.gotoAndStop(1);
_root.battleengine.selectbox.gotoAndStop(1);
}
stop();
_root.poptimeBasic = 168;
_root.fight_on = false;
_root.menushow = false;
if (_root.loadinggame == false) {
_root.battlelevel = 1;
_root.weaponpower = 0;
_root.price1 = 100;
_root.price2 = 25;
_root.price3 = 25;
_root.price4 = 25;
_root.price5 = 25;
_root.area = 1;
_root.power = 5;
_root.vitality = 5;
_root.magic = 5;
_root.mana = 5;
_root.weaponlvl1 = false;
_root.weaponlvl2 = false;
_root.weaponlvl3 = false;
_root.weaponlvl4 = false;
_root.weaponlvl5 = false;
_root.skill1 = false;
_root.skill2 = false;
_root.skill3 = false;
_root.skill4 = false;
_root.skill5 = false;
_root.skill6 = false;
_root.skill7 = false;
_root.skill8 = false;
_root.skill9 = false;
}
game.Item1 = function () {
};
game.Item1.prototype.points = 5;
game.Item1.prototype.key = 0;
game.Item2 = function () {
};
game.Item2.prototype.points = 25;
game.Item2.prototype.key = 0;
game.Item3 = function () {
};
game.Item3.prototype.points = 45;
game.Item3.prototype.key = 0;
game.Item4 = function () {
};
game.Item4.prototype.points = 0;
game.Item4.prototype.key = 1;
game.Item5 = function () {
};
game.Item5.prototype.points = 0;
game.Item5.prototype.key = 2;
game.Item6 = function () {
};
game.Item6.prototype.points = 0;
game.Item6.prototype.key = 3;
game.Item7 = function () {
};
game.Item7.prototype.points = 0;
game.Item7.prototype.key = 4;
game.Item8 = function () {
};
game.Item8.prototype.points = 0;
game.Item8.prototype.key = 5;
game.Item9 = function () {
};
game.Item9.prototype.points = 0;
game.Item9.prototype.key = 6;
game.Item10 = function () {
};
game.Item10.prototype.points = 0;
game.Item10.prototype.key = 7;
game.Item11 = function () {
};
game.Item11.prototype.points = 0;
game.Item11.prototype.key = 10;
game.Item12 = function () {
};
game.Item12.prototype.points = 0;
game.Item12.prototype.key = 11;
game.Item13 = function () {
};
game.Item13.prototype.points = 0;
game.Item13.prototype.key = 12;
game.Item14 = function () {
};
game.Item14.prototype.points = 0;
game.Item14.prototype.key = 13;
game.Item15 = function () {
};
game.Item15.prototype.points = 0;
game.Item15.prototype.key = 14;
game.Doors1 = function (newMap, newcharx, newchary) {
this.newMap = newMap;
this.newcharx = newcharx;
this.newchary = newchary;
};
game.Doors1.prototype.walkable = true;
game.Doors1.prototype.savepoint = false;
game.Doors1.prototype.frame = 3;
game.Doors1.prototype.door = true;
game.Doors2 = function (newMap, newcharx, newchary) {
this.newMap = newMap;
this.newcharx = newcharx;
this.newchary = newchary;
};
game.Doors2.prototype.walkable = true;
game.Doors2.prototype.savepoint = false;
game.Doors2.prototype.frame = 4;
game.Doors2.prototype.door = true;
game.Doors3 = function (newMap, newcharx, newchary) {
this.newMap = newMap;
this.newcharx = newcharx;
this.newchary = newchary;
};
game.Doors3.prototype.walkable = true;
game.Doors3.prototype.savepoint = false;
game.Doors3.prototype.frame = 5;
game.Doors3.prototype.door = true;
game.Doors4 = function (newMap, newcharx, newchary) {
this.newMap = newMap;
this.newcharx = newcharx;
this.newchary = newchary;
};
game.Doors4.prototype.walkable = true;
game.Doors4.prototype.savepoint = false;
game.Doors4.prototype.frame = 6;
game.Doors4.prototype.door = true;
game.Doors5 = function (newMap, newcharx, newchary) {
this.newMap = newMap;
this.newcharx = newcharx;
this.newchary = newchary;
};
game.Doors5.prototype.walkable = true;
game.Doors5.prototype.savepoint = false;
game.Doors5.prototype.frame = 75;
game.Doors5.prototype.door = true;
game.Doors6 = function (newMap, newcharx, newchary) {
this.newMap = newMap;
this.newcharx = newcharx;
this.newchary = newchary;
};
game.Doors6.prototype.walkable = true;
game.Doors6.prototype.savepoint = false;
game.Doors6.prototype.frame = 76;
game.Doors6.prototype.door = true;
game.Doors7 = function (newMap, newcharx, newchary) {
this.newMap = newMap;
this.newcharx = newcharx;
this.newchary = newchary;
};
game.Doors7.prototype.walkable = true;
game.Doors7.prototype.savepoint = false;
game.Doors7.prototype.frame = 73;
game.Doors7.prototype.door = true;
game.Doors8 = function (newMap, newcharx, newchary) {
this.newMap = newMap;
this.newcharx = newcharx;
this.newchary = newchary;
};
game.Doors8.prototype.walkable = true;
game.Doors8.prototype.savepoint = false;
game.Doors8.prototype.frame = 74;
game.Doors8.prototype.door = true;
game.Doors9 = function (newMap, newcharx, newchary) {
this.newMap = newMap;
this.newcharx = newcharx;
this.newchary = newchary;
};
game.Doors9.prototype.walkable = true;
game.Doors9.prototype.savepoint = false;
game.Doors9.prototype.frame = 42;
game.Doors9.prototype.door = true;
game.Doors10 = function (newMap, newcharx, newchary) {
this.newMap = newMap;
this.newcharx = newcharx;
this.newchary = newchary;
};
game.Doors10.prototype.walkable = true;
game.Doors10.prototype.savepoint = false;
game.Doors10.prototype.frame = 43;
game.Doors10.prototype.door = true;
game.Doors11 = function (newMap, newcharx, newchary) {
this.newMap = newMap;
this.newcharx = newcharx;
this.newchary = newchary;
};
game.Doors11.prototype.walkable = true;
game.Doors11.prototype.savepoint = false;
game.Doors11.prototype.frame = 92;
game.Doors11.prototype.door = true;
game.Doors12 = function (newMap, newcharx, newchary) {
this.newMap = newMap;
this.newcharx = newcharx;
this.newchary = newchary;
};
game.Doors12.prototype.walkable = true;
game.Doors12.prototype.savepoint = false;
game.Doors12.prototype.frame = 78;
game.Doors12.prototype.door = true;
game.Doors13 = function (newMap, newcharx, newchary) {
this.newMap = newMap;
this.newcharx = newcharx;
this.newchary = newchary;
};
game.Doors13.prototype.walkable = true;
game.Doors13.prototype.savepoint = false;
game.Doors13.prototype.frame = 125;
game.Doors13.prototype.door = true;
game.Doors14 = function (newMap, newcharx, newchary) {
this.newMap = newMap;
this.newcharx = newcharx;
this.newchary = newchary;
};
game.Doors14.prototype.walkable = true;
game.Doors14.prototype.savepoint = false;
game.Doors14.prototype.frame = 126;
game.Doors14.prototype.door = true;
game.Doors15 = function (newMap, newcharx, newchary) {
this.newMap = newMap;
this.newcharx = newcharx;
this.newchary = newchary;
};
game.Doors15.prototype.walkable = true;
game.Doors15.prototype.savepoint = false;
game.Doors15.prototype.frame = 127;
game.Doors15.prototype.door = true;
game.Doors16 = function (newMap, newcharx, newchary) {
this.newMap = newMap;
this.newcharx = newcharx;
this.newchary = newchary;
};
game.Doors16.prototype.walkable = true;
game.Doors16.prototype.savepoint = false;
game.Doors16.prototype.frame = 128;
game.Doors16.prototype.door = true;
game.Tile0 = function () {
};
game.Tile0.prototype.walkable = true;
game.Tile0.prototype.frame = 1;
game.Tile1 = function () {
};
game.Tile1.prototype.walkable = false;
game.Tile1.prototype.frame = 2;
game.Tile2 = function () {
};
game.Tile2.prototype.walkable = true;
game.Tile2.prototype.frame = 7;
game.Tile3 = function () {
};
game.Tile3.prototype.walkable = false;
game.Tile3.prototype.frame = 8;
game.Tile4 = function () {
};
game.Tile4.prototype.walkable = false;
game.Tile4.prototype.frame = 9;
game.Tile5 = function () {
};
game.Tile5.prototype.walkable = false;
game.Tile5.prototype.frame = 10;
game.Tile6 = function () {
};
game.Tile6.prototype.walkable = false;
game.Tile6.prototype.frame = 11;
game.Tile7 = function () {
};
game.Tile7.prototype.walkable = false;
game.Tile7.prototype.frame = 12;
game.Tile8 = function () {
};
game.Tile8.prototype.walkable = false;
game.Tile8.prototype.frame = 13;
game.Tile9 = function () {
};
game.Tile9.prototype.walkable = false;
game.Tile9.prototype.frame = 14;
game.Tile10 = function () {
};
game.Tile10.prototype.walkable = false;
game.Tile10.prototype.frame = 15;
game.Tile11 = function () {
};
game.Tile11.prototype.walkable = false;
game.Tile11.prototype.frame = 16;
game.Tile12 = function () {
};
game.Tile12.prototype.walkable = false;
game.Tile12.prototype.frame = 17;
game.Tile13 = function () {
};
game.Tile13.prototype.walkable = false;
game.Tile13.prototype.frame = 18;
game.Tile14 = function () {
};
game.Tile14.prototype.walkable = false;
game.Tile14.prototype.frame = 19;
game.Tile15 = function () {
};
game.Tile15.prototype.walkable = false;
game.Tile15.prototype.frame = 20;
game.Tile16 = function () {
};
game.Tile16.prototype.walkable = false;
game.Tile16.prototype.frame = 21;
game.Tile17 = function () {
};
game.Tile17.prototype.walkable = false;
game.Tile17.prototype.frame = 22;
game.Tile18 = function () {
};
game.Tile18.prototype.walkable = false;
game.Tile18.prototype.frame = 23;
game.Tile19 = function () {
};
game.Tile19.prototype.walkable = false;
game.Tile19.prototype.frame = 24;
game.Tile20 = function () {
};
game.Tile20.prototype.walkable = false;
game.Tile20.prototype.frame = 25;
game.Tile21 = function () {
};
game.Tile21.prototype.walkable = false;
game.Tile21.prototype.frame = 26;
game.Tile22 = function () {
};
game.Tile22.prototype.walkable = false;
game.Tile22.prototype.frame = 27;
game.Tile23 = function () {
};
game.Tile23.prototype.walkable = false;
game.Tile23.prototype.frame = 28;
game.Tile24 = function () {
};
game.Tile24.prototype.walkable = false;
game.Tile24.prototype.frame = 29;
game.Tile25 = function () {
};
game.Tile25.prototype.walkable = false;
game.Tile25.prototype.frame = 30;
game.Tile26 = function () {
};
game.Tile26.prototype.walkable = false;
game.Tile26.prototype.frame = 31;
game.Tile27 = function () {
};
game.Tile27.prototype.walkable = false;
game.Tile27.prototype.frame = 32;
game.Tile28 = function () {
};
game.Tile28.prototype.walkable = false;
game.Tile28.prototype.frame = 33;
game.Tile29 = function () {
};
game.Tile29.prototype.walkable = false;
game.Tile29.prototype.frame = 34;
game.Tile30 = function () {
};
game.Tile30.prototype.walkable = false;
game.Tile30.prototype.frame = 35;
game.Tile31 = function () {
};
game.Tile31.prototype.walkable = false;
game.Tile31.prototype.frame = 36;
game.Tile32 = function () {
};
game.Tile32.prototype = new game.Doors1(2, 2, 6);
game.Tile33 = function () {
};
game.Tile33.prototype = new game.Doors3(1, 13, 6);
game.Tile34 = function () {
};
game.Tile34.prototype = new game.Doors2(3, 8, 2);
game.Tile35 = function () {
};
game.Tile35.prototype = new game.Doors4(2, 8, 7);
game.Tile36 = function () {
};
game.Tile36.prototype = new game.Doors4(4, 8, 7);
game.Tile37 = function () {
};
game.Tile37.prototype = new game.Doors2(3, 36, 2);
game.Tile38 = function () {
};
game.Tile38.prototype = new game.Doors1(5, 2, 6);
game.Tile39 = function () {
};
game.Tile39.prototype = new game.Doors3(4, 13, 6);
game.Tile40 = function () {
};
game.Tile40.prototype = new game.Doors2(6, 8, 2);
game.Tile41 = function () {
};
game.Tile41.prototype = new game.Doors4(5, 8, 7);
game.Tile42 = function () {
};
game.Tile42.prototype = new game.Doors2(3, 22, 2);
game.Tile43 = function () {
};
game.Tile43.prototype = new game.Doors4(7, 8, 7);
game.Tile44 = function () {
};
game.Tile44.prototype.walkable = false;
game.Tile44.prototype.frame = 37;
game.Tile45 = function () {
};
game.Tile45.prototype.walkable = false;
game.Tile45.prototype.frame = 38;
game.Tile46 = function () {
};
game.Tile46.prototype.walkable = false;
game.Tile46.prototype.frame = 39;
game.Tile47 = function () {
};
game.Tile47.prototype.walkable = false;
game.Tile47.prototype.frame = 40;
game.Tile48 = function () {
};
game.Tile48.prototype.walkable = false;
game.Tile48.prototype.frame = 41;
game.Tile49 = function () {
};
game.Tile49.prototype.walkable = false;
game.Tile49.prototype.frame = 42;
game.Tile50 = function () {
};
game.Tile50.prototype.walkable = false;
game.Tile50.prototype.frame = 43;
game.Tile51 = function () {
};
game.Tile51.prototype.walkable = false;
game.Tile51.prototype.frame = 44;
game.Tile52 = function () {
};
game.Tile52.prototype.walkable = false;
game.Tile52.prototype.frame = 45;
game.Tile53 = function () {
};
game.Tile53.prototype.walkable = false;
game.Tile53.prototype.frame = 46;
game.Tile54 = function () {
};
game.Tile54.prototype.walkable = false;
game.Tile54.prototype.frame = 47;
game.Tile55 = function () {
};
game.Tile55.prototype.walkable = false;
game.Tile55.prototype.frame = 48;
game.Tile56 = function () {
};
game.Tile56.prototype.walkable = true;
game.Tile56.prototype.frame = 49;
game.Tile57 = function () {
};
game.Tile57.prototype.walkable = false;
game.Tile57.prototype.frame = 50;
game.Tile58 = function () {
};
game.Tile58.prototype.walkable = false;
game.Tile58.prototype.frame = 51;
game.Tile59 = function () {
};
game.Tile59.prototype.walkable = false;
game.Tile59.prototype.frame = 52;
game.Tile60 = function () {
};
game.Tile60.prototype.walkable = false;
game.Tile60.prototype.frame = 53;
game.Tile61 = function () {
};
game.Tile61.prototype.walkable = false;
game.Tile61.prototype.frame = 54;
game.Tile62 = function () {
};
game.Tile62.prototype.walkable = false;
game.Tile62.prototype.frame = 55;
game.Tile63 = function () {
};
game.Tile63.prototype.walkable = false;
game.Tile63.prototype.frame = 56;
game.Tile64 = function () {
};
game.Tile64.prototype.walkable = false;
game.Tile64.prototype.frame = 57;
game.Tile65 = function () {
};
game.Tile65.prototype.walkable = false;
game.Tile65.prototype.frame = 58;
game.Tile66 = function () {
};
game.Tile66.prototype.walkable = false;
game.Tile66.prototype.frame = 59;
game.Tile67 = function () {
};
game.Tile67.prototype.walkable = false;
game.Tile67.prototype.frame = 60;
game.Tile68 = function () {
};
game.Tile68.prototype.walkable = false;
game.Tile68.prototype.frame = 61;
game.Tile69 = function () {
};
game.Tile69.prototype.walkable = false;
game.Tile69.prototype.frame = 62;
game.Tile70 = function () {
};
game.Tile70.prototype.walkable = false;
game.Tile70.prototype.frame = 63;
game.Tile71 = function () {
};
game.Tile71.prototype.walkable = false;
game.Tile71.prototype.frame = 64;
game.Tile72 = function () {
};
game.Tile72.prototype.walkable = false;
game.Tile72.prototype.frame = 65;
game.Tile73 = function () {
};
game.Tile73.prototype.walkable = false;
game.Tile73.prototype.frame = 66;
game.Tile74 = function () {
};
game.Tile74.prototype.walkable = false;
game.Tile74.prototype.frame = 67;
game.Tile75 = function () {
};
game.Tile75.prototype.walkable = false;
game.Tile75.prototype.frame = 68;
game.Tile76 = function () {
};
game.Tile76.prototype.walkable = false;
game.Tile76.prototype.frame = 69;
game.Tile77 = function () {
};
game.Tile77.prototype.walkable = false;
game.Tile77.prototype.frame = 70;
game.Tile78 = function () {
};
game.Tile78.prototype.walkable = false;
game.Tile78.prototype.frame = 71;
game.Tile79 = function () {
};
game.Tile79.prototype.walkable = false;
game.Tile79.prototype.frame = 72;
game.Tile80 = function () {
};
game.Tile80.prototype.walkable = false;
game.Tile80.prototype.frame = 77;
game.Tile81 = function () {
};
game.Tile81.prototype = new game.Doors5(9, 13, 23);
game.Tile82 = function () {
};
game.Tile82.prototype = new game.Doors7(8, 7, 2);
game.Tile83 = function () {
};
game.Tile83.prototype = new game.Doors8(10, 11, 6);
game.Tile84 = function () {
};
game.Tile84.prototype = new game.Doors6(11, 2, 6);
game.Tile85 = function () {
};
game.Tile85.prototype = new game.Doors6(9, 2, 11);
game.Tile86 = function () {
};
game.Tile86.prototype = new game.Doors8(9, 23, 11);
game.Tile87 = function () {
};
game.Tile87.prototype = new game.Doors5(12, 3, 4);
game.Tile88 = function () {
};
game.Tile88.prototype = new game.Doors7(9, 13, 2);
game.Tile89 = function () {
};
game.Tile89.prototype = new game.Doors5(13, 3, 4);
game.Tile90 = function () {
};
game.Tile90.prototype = new game.Doors7(12, 3, 2);
game.Tile91 = function () {
};
game.Tile91.prototype = new game.Doors5(14, 7, 11);
game.Tile92 = function () {
};
game.Tile92.prototype = new game.Doors7(13, 3, 2);
game.Tile93 = function () {
};
game.Tile93.prototype = new game.Doors9(8, 6, 11);
game.Tile94 = function () {
};
game.Tile94.prototype = new game.Doors10(8, 7, 11);
game.Tile95 = function () {
};
game.Tile95.prototype.walkable = false;
game.Tile95.prototype.frame = 79;
game.Tile96 = function () {
};
game.Tile96.prototype.walkable = false;
game.Tile96.prototype.frame = 80;
game.Tile97 = function () {
};
game.Tile97.prototype.walkable = false;
game.Tile97.prototype.frame = 81;
game.Tile98 = function () {
};
game.Tile98.prototype.walkable = false;
game.Tile98.prototype.frame = 82;
game.Tile99 = function () {
};
game.Tile99.prototype.walkable = false;
game.Tile99.prototype.frame = 83;
game.Tile100 = function () {
};
game.Tile100.prototype.walkable = false;
game.Tile100.prototype.frame = 84;
game.Tile101 = function () {
};
game.Tile101.prototype.walkable = false;
game.Tile101.prototype.frame = 85;
game.Tile102 = function () {
};
game.Tile102.prototype.walkable = false;
game.Tile102.prototype.frame = 86;
game.Tile103 = function () {
};
game.Tile103.prototype.walkable = false;
game.Tile103.prototype.frame = 87;
game.Tile104 = function () {
};
game.Tile104.prototype.walkable = false;
game.Tile104.prototype.frame = 88;
game.Tile105 = function () {
};
game.Tile105.prototype.walkable = false;
game.Tile105.prototype.frame = 89;
game.Tile106 = function () {
};
game.Tile106.prototype.walkable = false;
game.Tile106.prototype.frame = 90;
game.Tile107 = function () {
};
game.Tile107.prototype.walkable = false;
game.Tile107.prototype.frame = 91;
game.Tile108 = function () {
};
game.Tile108.prototype.walkable = true;
game.Tile108.prototype.frame = 1;
game.Tile109 = function () {
};
game.Tile109.prototype = new game.Doors11(16, 17, 19);
game.Tile110 = function () {
};
game.Tile110.prototype = new game.Doors11(15, 7, 2);
game.Tile111 = function () {
};
game.Tile111.prototype = new game.Doors11(17, 3, 19);
game.Tile112 = function () {
};
game.Tile112.prototype = new game.Doors11(17, 30, 19);
game.Tile113 = function () {
};
game.Tile113.prototype = new game.Doors11(16, 3, 2);
game.Tile114 = function () {
};
game.Tile114.prototype = new game.Doors11(16, 30, 2);
game.Tile115 = function () {
};
game.Tile115.prototype = new game.Doors11(18, 3, 27);
game.Tile116 = function () {
};
game.Tile116.prototype = new game.Doors11(17, 14, 2);
game.Tile117 = function () {
};
game.Tile117.prototype = new game.Doors11(19, 5, 9);
game.Tile118 = function () {
};
game.Tile118.prototype = new game.Doors12(15, 7, 27);
game.Tile119 = function () {
};
game.Tile119.prototype.walkable = true;
game.Tile119.prototype.frame = 93;
game.Tile120 = function () {
};
game.Tile120.prototype.walkable = false;
game.Tile120.prototype.frame = 94;
game.Tile121 = function () {
};
game.Tile121.prototype.walkable = false;
game.Tile121.prototype.frame = 95;
game.Tile122 = function () {
};
game.Tile122.prototype.walkable = false;
game.Tile122.prototype.frame = 96;
game.Tile123 = function () {
};
game.Tile123.prototype.walkable = false;
game.Tile123.prototype.frame = 97;
game.Tile124 = function () {
};
game.Tile124.prototype.walkable = false;
game.Tile124.prototype.frame = 98;
game.Tile125 = function () {
};
game.Tile125.prototype.walkable = false;
game.Tile125.prototype.frame = 99;
game.Tile126 = function () {
};
game.Tile126.prototype.walkable = false;
game.Tile126.prototype.frame = 100;
game.Tile127 = function () {
};
game.Tile127.prototype.walkable = false;
game.Tile127.prototype.frame = 101;
game.Tile128 = function () {
};
game.Tile128.prototype.walkable = false;
game.Tile128.prototype.frame = 102;
game.Tile129 = function () {
};
game.Tile129.prototype.walkable = false;
game.Tile129.prototype.frame = 103;
game.Tile130 = function () {
};
game.Tile130.prototype.walkable = false;
game.Tile130.prototype.frame = 104;
game.Tile131 = function () {
};
game.Tile131.prototype.walkable = false;
game.Tile131.prototype.frame = 105;
game.Tile132 = function () {
};
game.Tile132.prototype.walkable = false;
game.Tile132.prototype.frame = 106;
game.Tile133 = function () {
};
game.Tile133.prototype.walkable = false;
game.Tile133.prototype.frame = 107;
game.Tile134 = function () {
};
game.Tile134.prototype.walkable = false;
game.Tile134.prototype.frame = 108;
game.Tile135 = function () {
};
game.Tile135.prototype.walkable = false;
game.Tile135.prototype.frame = 109;
game.Tile136 = function () {
};
game.Tile136.prototype.walkable = false;
game.Tile136.prototype.frame = 110;
game.Tile137 = function () {
};
game.Tile137.prototype.walkable = false;
game.Tile137.prototype.frame = 111;
game.Tile138 = function () {
};
game.Tile138.prototype.walkable = false;
game.Tile138.prototype.frame = 112;
game.Tile139 = function () {
};
game.Tile139.prototype.walkable = false;
game.Tile139.prototype.frame = 113;
game.Tile140 = function () {
};
game.Tile140.prototype.walkable = false;
game.Tile140.prototype.frame = 114;
game.Tile141 = function () {
};
game.Tile141.prototype.walkable = false;
game.Tile141.prototype.frame = 115;
game.Tile142 = function () {
};
game.Tile142.prototype.walkable = false;
game.Tile142.prototype.frame = 116;
game.Tile143 = function () {
};
game.Tile143.prototype.walkable = false;
game.Tile143.prototype.frame = 117;
game.Tile144 = function () {
};
game.Tile144.prototype.walkable = false;
game.Tile144.prototype.frame = 118;
game.Tile145 = function () {
};
game.Tile145.prototype.walkable = false;
game.Tile145.prototype.frame = 119;
game.Tile146 = function () {
};
game.Tile146.prototype.walkable = false;
game.Tile146.prototype.frame = 120;
game.Tile147 = function () {
};
game.Tile147.prototype.walkable = false;
game.Tile147.prototype.frame = 121;
game.Tile148 = function () {
};
game.Tile148.prototype.walkable = false;
game.Tile148.prototype.frame = 122;
game.Tile149 = function () {
};
game.Tile149.prototype.walkable = false;
game.Tile149.prototype.frame = 123;
game.Tile150 = function () {
};
game.Tile150.prototype.walkable = false;
game.Tile150.prototype.frame = 124;
game.Tile151 = function () {
};
game.Tile151.prototype.walkable = false;
game.Tile151.prototype.frame = 129;
game.Tile152 = function () {
};
game.Tile152.prototype.walkable = false;
game.Tile152.prototype.frame = 130;
game.Tile153 = function () {
};
game.Tile153.prototype.walkable = false;
game.Tile153.prototype.frame = 131;
game.Tile154 = function () {
};
game.Tile154.prototype = new game.Doors14(20, 13, 24);
game.Tile155 = function () {
};
game.Tile155.prototype = new game.Doors16(19, 6, 2);
game.Tile156 = function () {
};
game.Tile156.prototype = new game.Doors13(21, 9, 6);
game.Tile157 = function () {
};
game.Tile157.prototype = new game.Doors15(22, 2, 6);
game.Tile158 = function () {
};
game.Tile158.prototype = new game.Doors14(23, 6, 9);
game.Tile159 = function () {
};
game.Tile159.prototype = new game.Doors15(20, 2, 13);
game.Tile160 = function () {
};
game.Tile160.prototype = new game.Doors13(20, 24, 13);
game.Tile161 = function () {
};
game.Tile161.prototype = new game.Doors2(20, 13, 2);
game.Tile164 = function () {
};
game.Tile164.prototype = new game.Doors4(23, 13, 2);
game.Tile162 = function () {
};
game.Tile162.prototype.walkable = false;
game.Tile162.prototype.frame = 1;
game.Tile165 = function () {
};
game.Tile165.prototype.walkable = true;
game.Tile165.prototype.savepoint = true;
game.Tile165.prototype.frame = 132;
game.Tile166 = function () {
};
game.Tile166.prototype.walkable = true;
game.Tile166.prototype.savepoint = true;
game.Tile166.prototype.frame = 133;
game.Tile167 = function () {
};
game.Tile167.prototype.walkable = true;
game.Tile167.prototype.savepoint = true;
game.Tile167.prototype.frame = 134;
buildMap(_root["myMap" + game.currentMap]);
stop();
Instance of Symbol 174 MovieClip [empty] "controller" in Frame 4271
onClipEvent (enterFrame) {
_root.detectKeys();
}
Instance of Symbol 359 MovieClip in Frame 4271
onClipEvent (load) {
this.cacheAsBitmap = true;
this.swapDepths(100);
}
Instance of Symbol 507 MovieClip "menubox" in Frame 4271
onClipEvent (load) {
_visible = false;
this.swapDepths(101);
}
onClipEvent (enterFrame) {
if (Key.isDown(27)) {
_visible = true;
}
if (_visible == true) {
_root.menushow = true;
}
if (_visible == false) {
_root.menushow = false;
}
}
Instance of Symbol 622 MovieClip "actfades" in Frame 4271
onClipEvent (load) {
this.swapDepths(102);
}
Instance of Symbol 636 MovieClip "musicmatch" in Frame 4271
onClipEvent (load) {
this.swapDepths(105);
}
Instance of Symbol 1140 MovieClip "battleengine" in Frame 4271
onClipEvent (enterFrame) {
if (_root.fight_on == false) {
_visible = false;
}
if (_root.fight_on == true) {
_visible = true;
}
if ((Key.isDown(32) && (Key.isDown(13))) && (Key.isDown(37))) {
_root.game.points = _root.game.points + 1000;
_root.points = _root.game.points;
}
}
onClipEvent (load) {
this.swapDepths(103);
_visible = false;
}
Instance of Symbol 1149 MovieClip in Frame 4271
onClipEvent (load) {
this.swapDepths(104);
}
onClipEvent (enterFrame) {
if (_root.poptimer1 > 0) {
_root.poptimer1--;
}
if (_root.poptimer2 > 0) {
_root.poptimer2--;
}
if (_root.poptimer3 > 0) {
_root.poptimer3--;
}
if (_root.poptimer1 == 0) {
_root.popmessage1 = "";
}
if (_root.poptimer2 == 0) {
_root.popmessage2 = "";
}
if (_root.poptimer3 == 0) {
_root.popmessage3 = "";
}
}
Instance of Symbol 196 MovieClip "cursor" in Frame 4271
onClipEvent (enterFrame) {
this.swapDepths(16001);
Mouse.hide();
_x = _root._xmouse;
_y = _root._ymouse;
}
Frame 4272
stop();
for (i in _root) {
if (_root[i] instanceof MovieClip) {
_root[i].removeMovieClip();
}
}
if (_root.endaction == 1) {
_root.nextFrame();
}
if (_root.endaction == 2) {
gotoAndStop (4287);
}
Instance of Symbol 1153 MovieClip in Frame 4273
onClipEvent (enterFrame) {
if (Key.isDown(27)) {
_root.play();
}
if (Key.isDown(13)) {
_root.loadinggame = true;
_root.battlelevel = _root.auto_battlelevel;
_root.weaponpower = _root.auto_weaponpower;
_root.price1 = _root.auto_price1;
_root.price2 = _root.auto_price2;
_root.price3 = _root.auto_price3;
_root.price4 = _root.auto_price4;
_root.price5 = _root.auto_price5;
_root.area = _root.auto_area;
_root.power = _root.auto_power;
_root.vitality = _root.auto_vitality;
_root.magic = _root.auto_magic;
_root.mana = _root.auto_mana;
_root.weaponlvl1 = _root.auto_weaponlvl1;
_root.weaponlvl2 = _root.auto_weaponlvl2;
_root.weaponlvl3 = _root.auto_weaponlvl3;
_root.weaponlvl4 = _root.auto_weaponlvl4;
_root.weaponlvl5 = _root.auto_weaponlvl5;
_root.skill1 = _root.auto_skill1;
_root.skill2 = _root.auto_skill2;
_root.skill3 = _root.auto_skill3;
_root.skill4 = _root.auto_skill4;
_root.skill5 = _root.auto_skill5;
_root.skill6 = _root.auto_skill6;
_root.skill7 = _root.auto_skill7;
_root.skill8 = _root.auto_skill8;
_root.skill9 = _root.auto_skill9;
_root.points = _root.auto_points;
_root.ytiler = _root.auto_ytiler;
_root.xtiler = _root.auto_xtiler;
_root.gamemap = _root.auto_gamemap;
_root.myMap1l = _root.auto_myMap1;
_root.myMap2l = _root.auto_myMap2;
_root.myMap3l = _root.auto_myMap3;
_root.myMap4l = _root.auto_myMap4;
_root.myMap5l = _root.auto_myMap5;
_root.myMap6l = _root.auto_myMap6;
_root.myMap7l = _root.auto_myMap7;
_root.myMap8l = _root.auto_myMap8;
_root.myMap9l = _root.auto_myMap9;
_root.myMap10l = _root.auto_myMap10;
_root.myMap11l = _root.auto_myMap11;
_root.myMap12l = _root.auto_myMap12;
_root.myMap13l = _root.auto_myMap13;
_root.myMap14l = _root.auto_myMap14;
_root.myMap15l = _root.auto_myMap15;
_root.myMap16l = _root.auto_myMap16;
_root.myMap17l = _root.auto_myMap17;
_root.myMap18l = _root.auto_myMap18;
_root.myMap19l = _root.auto_myMap19;
_root.myMap20l = _root.auto_myMap20;
_root.myMap21l = _root.auto_myMap21;
_root.myMap22l = _root.auto_myMap22;
_root.myMap23l = _root.auto_myMap23;
_root.myItemsl = _root.auto_myItems;
_root.dragStore = _root.auto_dragStore;
_root.gotoAndStop(_root._currentframe - 2);
}
}
Instance of Symbol 196 MovieClip in Frame 4273
onClipEvent (enterFrame) {
Mouse.hide();
_x = _root._xmouse;
_y = _root._ymouse;
}
Frame 4286
gotoAndPlay (271);
Frame 4289
gotoAndPlay (271);
Instance of Symbol 1091 MovieClip in Frame 4291
onClipEvent (load) {
this.cacheAsBitmap = true;
}
Instance of Symbol 656 MovieClip in Frame 4291
onClipEvent (enterFrame) {
this.gotoAndStop(_root.activeweapon);
}
Symbol 146 MovieClip Frame 1
stop();
Symbol 146 MovieClip Frame 5
if (!Key.isDown(38)) {
gotoAndStop (1);
}
Symbol 146 MovieClip Frame 10
if (!Key.isDown(38)) {
gotoAndStop (1);
}
Symbol 146 MovieClip Frame 15
if (!Key.isDown(38)) {
gotoAndStop (1);
}
Symbol 146 MovieClip Frame 20
if (!Key.isDown(38)) {
gotoAndStop (1);
}
Symbol 151 MovieClip Frame 1
stop();
Symbol 151 MovieClip Frame 6
if ((!Key.isDown(39)) && (!Key.isDown(37))) {
gotoAndStop (1);
}
Symbol 151 MovieClip Frame 12
if ((!Key.isDown(39)) && (!Key.isDown(37))) {
gotoAndStop (1);
}
Symbol 151 MovieClip Frame 18
if ((!Key.isDown(39)) && (!Key.isDown(37))) {
gotoAndStop (1);
}
Symbol 157 MovieClip Frame 1
stop();
Symbol 157 MovieClip Frame 6
if (!Key.isDown(40)) {
gotoAndStop (1);
}
Symbol 157 MovieClip Frame 12
if (!Key.isDown(40)) {
gotoAndStop (1);
}
Symbol 157 MovieClip Frame 18
if (!Key.isDown(40)) {
gotoAndStop (1);
}
Symbol 157 MovieClip Frame 23
if (!Key.isDown(40)) {
gotoAndStop (1);
}
Instance of Symbol 146 MovieClip in Symbol 158 MovieClip [char] Frame 1
onClipEvent (enterFrame) {
if (Key.isDown(38)) {
this.play();
}
}
Instance of Symbol 151 MovieClip in Symbol 158 MovieClip [char] Frame 2
onClipEvent (enterFrame) {
if (Key.isDown(37)) {
this.play();
}
}
Instance of Symbol 151 MovieClip in Symbol 158 MovieClip [char] Frame 4
onClipEvent (enterFrame) {
if (Key.isDown(39)) {
this.play();
}
}
Instance of Symbol 157 MovieClip in Symbol 158 MovieClip [char] Frame 5
onClipEvent (enterFrame) {
if (Key.isDown(40)) {
this.play();
}
}
Symbol 173 MovieClip [items] Frame 1
stop();
Instance of Symbol 181 MovieClip in Symbol 182 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.b_loaded = _root.getBytesLoaded();
_root.b_total = _root.getBytesTotal();
_root.percent = Math.round((_root.b_loaded / _root.b_total) * 100);
_width = (_root.percent * 2);
if (_root.percent == 100) {
_root.play();
}
}
Symbol 198 Button
on (release) {
getURL ("http://www.armorgames.com", "blank");
}
Symbol 207 MovieClip Frame 160
_root.play();
Symbol 220 Button
on (release) {
_root.startaction = 1;
_root.play();
}
Symbol 223 Button
on (release) {
_root.startaction = 2;
_root.play();
}
Symbol 226 Button
on (release) {
_root.startaction = 3;
_root.play();
}
Symbol 229 Button
on (release) {
getURL ("http://www.armorgames.com", "_blank");
}
Symbol 232 Button
on (release) {
getURL ("http://www.newgrounds.com/collection/halloween2006.html", "_blank");
}
Symbol 235 Button
on (release) {
getURL ("http://www.eviludy.net", "_blank");
}
Symbol 244 Button
on (release) {
_root.loadinggame = false;
gotoAndPlay(_root._currentframe + 2);
}
Symbol 245 Button
on (release) {
_root.loadinggame = true;
_root.gotoAndStop(_root._currentframe + 1);
}
Symbol 246 Button
on (release) {
gotoAndStop (4290);
}
Symbol 248 Button
on (release) {
stopAllSounds();
gotoAndStop (4288);
}
Symbol 256 Button
on (release) {
if (_root.existance_1 == 5) {
mySharedObject = SharedObject.getLocal("HalloweenHunt_saveslot1");
_root.battlelevel = mySharedObject.data.battlelevel;
_root.weaponpower = mySharedObject.data.weaponpower;
_root.price1 = mySharedObject.data.price1;
_root.price2 = mySharedObject.data.price2;
_root.price3 = mySharedObject.data.price3;
_root.price4 = mySharedObject.data.price4;
_root.price5 = mySharedObject.data.price5;
_root.area = mySharedObject.data.area;
_root.power = mySharedObject.data.power;
_root.vitality = mySharedObject.data.vitality;
_root.magic = mySharedObject.data.magic;
_root.mana = mySharedObject.data.mana;
_root.weaponlvl1 = mySharedObject.data.weaponlvl1;
_root.weaponlvl2 = mySharedObject.data.weaponlvl2;
_root.weaponlvl3 = mySharedObject.data.weaponlvl3;
_root.weaponlvl4 = mySharedObject.data.weaponlvl4;
_root.weaponlvl5 = mySharedObject.data.weaponlvl5;
_root.skill1 = mySharedObject.data.skill1;
_root.skill2 = mySharedObject.data.skill2;
_root.skill3 = mySharedObject.data.skill3;
_root.skill4 = mySharedObject.data.skill4;
_root.skill5 = mySharedObject.data.skill5;
_root.skill6 = mySharedObject.data.skill6;
_root.skill7 = mySharedObject.data.skill7;
_root.skill8 = mySharedObject.data.skill8;
_root.skill9 = mySharedObject.data.skill9;
_root.points = mySharedObject.data.points;
_root.ytiler = mySharedObject.data.ytiler;
_root.xtiler = mySharedObject.data.xtiler;
_root.gamemap = mySharedObject.data.gamemap;
_root.myMap1l = mySharedObject.data.myMap1;
_root.myMap2l = mySharedObject.data.myMap2;
_root.myMap3l = mySharedObject.data.myMap3;
_root.myMap4l = mySharedObject.data.myMap4;
_root.myMap5l = mySharedObject.data.myMap5;
_root.myMap6l = mySharedObject.data.myMap6;
_root.myMap7l = mySharedObject.data.myMap7;
_root.myMap8l = mySharedObject.data.myMap8;
_root.myMap9l = mySharedObject.data.myMap9;
_root.myMap10l = mySharedObject.data.myMap10;
_root.myMap11l = mySharedObject.data.myMap11;
_root.myMap12l = mySharedObject.data.myMap12;
_root.myMap13l = mySharedObject.data.myMap13;
_root.myMap14l = mySharedObject.data.myMap14;
_root.myMap15l = mySharedObject.data.myMap15;
_root.myMap16l = mySharedObject.data.myMap16;
_root.myMap17l = mySharedObject.data.myMap17;
_root.myMap18l = mySharedObject.data.myMap18;
_root.myMap19l = mySharedObject.data.myMap19;
_root.myMap20l = mySharedObject.data.myMap20;
_root.myMap21l = mySharedObject.data.myMap21;
_root.myMap22l = mySharedObject.data.myMap22;
_root.myMap23l = mySharedObject.data.myMap23;
_root.myItemsl = mySharedObject.data.myItems;
_root.dragStore = mySharedObject.data.dragStore;
stopAllSounds();
_root.loadinggame = true;
gotoAndStop (4271);
}
}
Symbol 259 Button
on (release) {
if (_root.existance_2 == 5) {
mySharedObject = SharedObject.getLocal("HalloweenHunt_saveslot2");
_root.battlelevel = mySharedObject.data.battlelevel;
_root.weaponpower = mySharedObject.data.weaponpower;
_root.price1 = mySharedObject.data.price1;
_root.price2 = mySharedObject.data.price2;
_root.price3 = mySharedObject.data.price3;
_root.price4 = mySharedObject.data.price4;
_root.price5 = mySharedObject.data.price5;
_root.area = mySharedObject.data.area;
_root.power = mySharedObject.data.power;
_root.vitality = mySharedObject.data.vitality;
_root.magic = mySharedObject.data.magic;
_root.mana = mySharedObject.data.mana;
_root.weaponlvl1 = mySharedObject.data.weaponlvl1;
_root.weaponlvl2 = mySharedObject.data.weaponlvl2;
_root.weaponlvl3 = mySharedObject.data.weaponlvl3;
_root.weaponlvl4 = mySharedObject.data.weaponlvl4;
_root.weaponlvl5 = mySharedObject.data.weaponlvl5;
_root.skill1 = mySharedObject.data.skill1;
_root.skill2 = mySharedObject.data.skill2;
_root.skill3 = mySharedObject.data.skill3;
_root.skill4 = mySharedObject.data.skill4;
_root.skill5 = mySharedObject.data.skill5;
_root.skill6 = mySharedObject.data.skill6;
_root.skill7 = mySharedObject.data.skill7;
_root.skill8 = mySharedObject.data.skill8;
_root.skill9 = mySharedObject.data.skill9;
_root.points = mySharedObject.data.points;
_root.ytiler = mySharedObject.data.ytiler;
_root.xtiler = mySharedObject.data.xtiler;
_root.gamemap = mySharedObject.data.gamemap;
_root.myMap1l = mySharedObject.data.myMap1;
_root.myMap2l = mySharedObject.data.myMap2;
_root.myMap3l = mySharedObject.data.myMap3;
_root.myMap4l = mySharedObject.data.myMap4;
_root.myMap5l = mySharedObject.data.myMap5;
_root.myMap6l = mySharedObject.data.myMap6;
_root.myMap7l = mySharedObject.data.myMap7;
_root.myMap8l = mySharedObject.data.myMap8;
_root.myMap9l = mySharedObject.data.myMap9;
_root.myMap10l = mySharedObject.data.myMap10;
_root.myMap11l = mySharedObject.data.myMap11;
_root.myMap12l = mySharedObject.data.myMap12;
_root.myMap13l = mySharedObject.data.myMap13;
_root.myMap14l = mySharedObject.data.myMap14;
_root.myMap15l = mySharedObject.data.myMap15;
_root.myMap16l = mySharedObject.data.myMap16;
_root.myMap17l = mySharedObject.data.myMap17;
_root.myMap18l = mySharedObject.data.myMap18;
_root.myMap19l = mySharedObject.data.myMap19;
_root.myMap20l = mySharedObject.data.myMap20;
_root.myMap21l = mySharedObject.data.myMap21;
_root.myMap22l = mySharedObject.data.myMap22;
_root.myMap23l = mySharedObject.data.myMap23;
_root.myItemsl = mySharedObject.data.myItems;
_root.dragStore = mySharedObject.data.dragStore;
stopAllSounds();
_root.loadinggame = true;
gotoAndStop (4271);
}
}
Symbol 261 Button
on (release) {
if (_root.existance_3 == 5) {
mySharedObject = SharedObject.getLocal("HalloweenHunt_saveslot3");
_root.battlelevel = mySharedObject.data.battlelevel;
_root.weaponpower = mySharedObject.data.weaponpower;
_root.price1 = mySharedObject.data.price1;
_root.price2 = mySharedObject.data.price2;
_root.price3 = mySharedObject.data.price3;
_root.price4 = mySharedObject.data.price4;
_root.price5 = mySharedObject.data.price5;
_root.area = mySharedObject.data.area;
_root.power = mySharedObject.data.power;
_root.vitality = mySharedObject.data.vitality;
_root.magic = mySharedObject.data.magic;
_root.mana = mySharedObject.data.mana;
_root.weaponlvl1 = mySharedObject.data.weaponlvl1;
_root.weaponlvl2 = mySharedObject.data.weaponlvl2;
_root.weaponlvl3 = mySharedObject.data.weaponlvl3;
_root.weaponlvl4 = mySharedObject.data.weaponlvl4;
_root.weaponlvl5 = mySharedObject.data.weaponlvl5;
_root.skill1 = mySharedObject.data.skill1;
_root.skill2 = mySharedObject.data.skill2;
_root.skill3 = mySharedObject.data.skill3;
_root.skill4 = mySharedObject.data.skill4;
_root.skill5 = mySharedObject.data.skill5;
_root.skill6 = mySharedObject.data.skill6;
_root.skill7 = mySharedObject.data.skill7;
_root.skill8 = mySharedObject.data.skill8;
_root.skill9 = mySharedObject.data.skill9;
_root.points = mySharedObject.data.points;
_root.ytiler = mySharedObject.data.ytiler;
_root.xtiler = mySharedObject.data.xtiler;
_root.gamemap = mySharedObject.data.gamemap;
_root.myMap1l = mySharedObject.data.myMap1;
_root.myMap2l = mySharedObject.data.myMap2;
_root.myMap3l = mySharedObject.data.myMap3;
_root.myMap4l = mySharedObject.data.myMap4;
_root.myMap5l = mySharedObject.data.myMap5;
_root.myMap6l = mySharedObject.data.myMap6;
_root.myMap7l = mySharedObject.data.myMap7;
_root.myMap8l = mySharedObject.data.myMap8;
_root.myMap9l = mySharedObject.data.myMap9;
_root.myMap10l = mySharedObject.data.myMap10;
_root.myMap11l = mySharedObject.data.myMap11;
_root.myMap12l = mySharedObject.data.myMap12;
_root.myMap13l = mySharedObject.data.myMap13;
_root.myMap14l = mySharedObject.data.myMap14;
_root.myMap15l = mySharedObject.data.myMap15;
_root.myMap16l = mySharedObject.data.myMap16;
_root.myMap17l = mySharedObject.data.myMap17;
_root.myMap18l = mySharedObject.data.myMap18;
_root.myMap19l = mySharedObject.data.myMap19;
_root.myMap20l = mySharedObject.data.myMap20;
_root.myMap21l = mySharedObject.data.myMap21;
_root.myMap22l = mySharedObject.data.myMap22;
_root.myMap23l = mySharedObject.data.myMap23;
_root.myItemsl = mySharedObject.data.myItems;
_root.dragStore = mySharedObject.data.dragStore;
stopAllSounds();
_root.loadinggame = true;
gotoAndStop (4271);
}
}
Symbol 263 Button
on (release) {
if (_root.existance_4 == 5) {
mySharedObject = SharedObject.getLocal("HalloweenHunt_saveslot4");
_root.battlelevel = mySharedObject.data.battlelevel;
_root.weaponpower = mySharedObject.data.weaponpower;
_root.price1 = mySharedObject.data.price1;
_root.price2 = mySharedObject.data.price2;
_root.price3 = mySharedObject.data.price3;
_root.price4 = mySharedObject.data.price4;
_root.price5 = mySharedObject.data.price5;
_root.area = mySharedObject.data.area;
_root.power = mySharedObject.data.power;
_root.vitality = mySharedObject.data.vitality;
_root.magic = mySharedObject.data.magic;
_root.mana = mySharedObject.data.mana;
_root.weaponlvl1 = mySharedObject.data.weaponlvl1;
_root.weaponlvl2 = mySharedObject.data.weaponlvl2;
_root.weaponlvl3 = mySharedObject.data.weaponlvl3;
_root.weaponlvl4 = mySharedObject.data.weaponlvl4;
_root.weaponlvl5 = mySharedObject.data.weaponlvl5;
_root.skill1 = mySharedObject.data.skill1;
_root.skill2 = mySharedObject.data.skill2;
_root.skill3 = mySharedObject.data.skill3;
_root.skill4 = mySharedObject.data.skill4;
_root.skill5 = mySharedObject.data.skill5;
_root.skill6 = mySharedObject.data.skill6;
_root.skill7 = mySharedObject.data.skill7;
_root.skill8 = mySharedObject.data.skill8;
_root.skill9 = mySharedObject.data.skill9;
_root.points = mySharedObject.data.points;
_root.ytiler = mySharedObject.data.ytiler;
_root.xtiler = mySharedObject.data.xtiler;
_root.myMap1l = mySharedObject.data.myMap1;
_root.myMap2l = mySharedObject.data.myMap2;
_root.myMap3l = mySharedObject.data.myMap3;
_root.myMap4l = mySharedObject.data.myMap4;
_root.myMap5l = mySharedObject.data.myMap5;
_root.myMap6l = mySharedObject.data.myMap6;
_root.myMap7l = mySharedObject.data.myMap7;
_root.myMap8l = mySharedObject.data.myMap8;
_root.myMap9l = mySharedObject.data.myMap9;
_root.myMap10l = mySharedObject.data.myMap10;
_root.myMap11l = mySharedObject.data.myMap11;
_root.myMap12l = mySharedObject.data.myMap12;
_root.myMap13l = mySharedObject.data.myMap13;
_root.myMap14l = mySharedObject.data.myMap14;
_root.myMap15l = mySharedObject.data.myMap15;
_root.myMap16l = mySharedObject.data.myMap16;
_root.myMap17l = mySharedObject.data.myMap17;
_root.myMap18l = mySharedObject.data.myMap18;
_root.myMap19l = mySharedObject.data.myMap19;
_root.myMap20l = mySharedObject.data.myMap20;
_root.myMap21l = mySharedObject.data.myMap21;
_root.myMap22l = mySharedObject.data.myMap22;
_root.myMap23l = mySharedObject.data.myMap23;
_root.myItemsl = mySharedObject.data.myItems;
_root.dragStore = mySharedObject.data.dragStore;
stopAllSounds();
_root.loadinggame = true;
gotoAndStop (4271);
}
}
Symbol 265 Button
on (release) {
_root.prevFrame();
}
Symbol 281 Button
on (release) {
stopAllSounds();
gotoAndStop (4271);
}
Symbol 295 Button
on (release) {
getURL ("http://www.newgrounds.com", "blank");
}
Symbol 370 Button
on (release) {
gotoAndStop (2);
}
Symbol 375 Button
on (release) {
gotoAndStop (3);
}
Symbol 379 Button
on (release) {
gotoAndStop (4);
}
Symbol 383 Button
on (release) {
gotoAndStop (5);
}
Symbol 387 Button
on (release) {
_root.menubox._visible = false;
_root.menubox.gotoAndStop(1);
}
Instance of Symbol 395 MovieClip in Symbol 396 MovieClip Frame 1
onClipEvent (load) {
_x = _root.dragStore;
}
onClipEvent (enterFrame) {
_y = 0;
if (_x < 3.5) {
_x = 3.5;
_root.dragStore = _x;
}
if (_x > 353.5) {
_x = 353.5;
_root.dragStore = _x;
}
}
onClipEvent (mouseUp) {
_root.dragStore = _x;
this.stopDrag();
}
onClipEvent (mouseDown) {
if (this.hitTest(_root.cursor.topper)) {
this.startDrag();
}
}
Symbol 401 Button
on (release) {
if (_root.game.points >= _root.price1) {
_root.game.points = _root.game.points - _root.price1;
_root.points = _root.game.points;
_root.battlelevel++;
_root.price1 = Math.round(_root.price1 * 2.5);
}
}
Symbol 403 Button
on (release) {
if (_root.game.points >= _root.price2) {
_root.game.points = _root.game.points - _root.price2;
_root.points = _root.game.points;
_root.power++;
_root.price2 = Math.round(_root.price2 * 1.75);
}
}
Symbol 405 Button
on (release) {
if (_root.game.points >= _root.price3) {
_root.game.points = _root.game.points - _root.price3;
_root.points = _root.game.points;
_root.vitality++;
_root.price3 = Math.round(_root.price3 * 1.75);
}
}
Symbol 407 Button
on (release) {
if (_root.game.points >= _root.price4) {
_root.game.points = _root.game.points - _root.price4;
_root.points = _root.game.points;
_root.mana++;
_root.price4 = Math.round(_root.price4 * 1.75);
}
}
Symbol 409 Button
on (release) {
if (_root.game.points >= _root.price5) {
_root.game.points = _root.game.points - _root.price5;
_root.points = _root.game.points;
_root.magic++;
_root.price5 = Math.round(_root.price5 * 1.75);
}
}
Symbol 440 Button
on (release) {
if (_root.game.points >= 150) {
_root.game.points = _root.game.points - 150;
_root.points = _root.game.points;
_root.skill1 = true;
}
}
Symbol 444 Button
on (release) {
if (_root.game.points >= 250) {
_root.game.points = _root.game.points - 250;
_root.points = _root.game.points;
_root.skill2 = true;
}
}
Symbol 448 Button
on (release) {
if (_root.game.points >= 500) {
_root.game.points = _root.game.points - 500;
_root.points = _root.game.points;
_root.skill3 = true;
}
}
Symbol 452 Button
on (release) {
if (_root.game.points >= 250) {
_root.game.points = _root.game.points - 250;
_root.points = _root.game.points;
_root.skill4 = true;
}
}
Symbol 456 Button
on (release) {
if (_root.game.points >= 250) {
_root.game.points = _root.game.points - 250;
_root.points = _root.game.points;
_root.skill5 = true;
}
}
Symbol 460 Button
on (release) {
if (_root.game.points >= 250) {
_root.game.points = _root.game.points - 250;
_root.points = _root.game.points;
_root.skill6 = true;
}
}
Symbol 464 Button
on (release) {
if (_root.game.points >= 1500) {
_root.game.points = _root.game.points - 1500;
_root.points = _root.game.points;
_root.skill7 = true;
}
}
Symbol 468 Button
on (release) {
if (_root.game.points >= 2500) {
_root.game.points = _root.game.points - 2500;
_root.points = _root.game.points;
_root.skill8 = true;
}
}
Symbol 472 Button
on (release) {
if (_root.game.points >= 5000) {
_root.game.points = _root.game.points - 5000;
_root.points = _root.game.points;
_root.skill9 = true;
}
}
Symbol 478 Button
on (release) {
_root.weaponpower = 0;
}
Symbol 480 Button
on (release) {
if (_root.weaponlvl1 == true) {
_root.weaponpower = 1;
}
}
Symbol 482 Button
on (release) {
if (_root.weaponlvl2 == true) {
_root.weaponpower = 2;
}
}
Symbol 484 Button
on (release) {
if (_root.weaponlvl3 == true) {
_root.weaponpower = 3;
}
}
Symbol 486 Button
on (release) {
if (_root.weaponlvl4 == true) {
_root.weaponpower = 4;
}
}
Symbol 488 Button
on (release) {
if (_root.weaponlvl5 == true) {
_root.weaponpower = 5;
}
}
Symbol 493 MovieClip Frame 1
stop();
Symbol 497 Button
on (release) {
_root.saveFunction1();
nextFrame();
}
Symbol 499 Button
on (release) {
_root.saveFunction2();
nextFrame();
}
Symbol 501 Button
on (release) {
_root.saveFunction3();
nextFrame();
}
Symbol 503 Button
on (release) {
_root.saveFunction4();
nextFrame();
}
Symbol 506 MovieClip Frame 1
stop();
Symbol 506 MovieClip Frame 2
mySharedObject = SharedObject.getLocal("HalloweenHunt_saveslot1");
_root.existance_1 = mySharedObject.data.existance;
if (_root.existance_1 == 5) {
_root.area_1 = mySharedObject.data.area;
_root.battlelevel_1 = mySharedObject.data.battlelevel;
_root.points_1 = mySharedObject.data.points;
_root.slotText1 = ((((("Slot 1: Act " + _root.area_1) + ", Battle Level ") + _root.battlelevel_1) + ", ") + _root.points_1) + " Halloween coins.";
} else {
_root.slotText1 = "Slot 1: Empty Slot.";
}
mySharedObject = SharedObject.getLocal("HalloweenHunt_saveslot2");
_root.existance_2 = mySharedObject.data.existance;
if (_root.existance_2 == 5) {
_root.area_2 = mySharedObject.data.area;
_root.battlelevel_2 = mySharedObject.data.battlelevel;
_root.points_2 = mySharedObject.data.points;
_root.slotText2 = ((((("Slot 2: Act " + _root.area_2) + ", Battle Level ") + _root.battlelevel_2) + ", ") + _root.points_2) + " Halloween coins.";
} else {
_root.slotText2 = "Slot 2: Empty Slot.";
}
mySharedObject = SharedObject.getLocal("HalloweenHunt_saveslot3");
_root.existance_3 = mySharedObject.data.existance;
if (_root.existance_3 == 5) {
_root.area_3 = mySharedObject.data.area;
_root.battlelevel_3 = mySharedObject.data.battlelevel;
_root.points_3 = mySharedObject.data.points;
_root.slotText3 = ((((("Slot 3: Act " + _root.area_3) + ", Battle Level ") + _root.battlelevel_3) + ", ") + _root.points_3) + " Halloween coins.";
} else {
_root.slotText3 = "Slot 3: Empty Slot.";
}
mySharedObject = SharedObject.getLocal("HalloweenHunt_saveslot4");
_root.existance_4 = mySharedObject.data.existance;
if (_root.existance_4 == 5) {
_root.area_4 = mySharedObject.data.area;
_root.battlelevel_4 = mySharedObject.data.battlelevel;
_root.points_4 = mySharedObject.data.points;
_root.slotText4 = ((((("Slot 4: Act " + _root.area_4) + ", Battle Level ") + _root.battlelevel_4) + ", ") + _root.points_4) + " Halloween coins.";
} else {
_root.slotText4 = "Slot 4: Empty Slot.";
}
Symbol 507 MovieClip Frame 1
stop();
Instance of Symbol 361 MovieClip in Symbol 507 MovieClip Frame 1
onClipEvent (load) {
this.cacheAsBitmap = true;
}
Instance of Symbol 443 MovieClip in Symbol 507 MovieClip Frame 3
onClipEvent (load) {
if (_root.skill1 == true) {
_visible = false;
} else {
_visible = true;
}
}
onClipEvent (enterFrame) {
if (_root.skill1 == true) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 447 MovieClip in Symbol 507 MovieClip Frame 3
onClipEvent (load) {
if (_root.skill2 == true) {
_visible = false;
} else {
_visible = true;
}
}
onClipEvent (enterFrame) {
if (_root.skill2 == true) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 451 MovieClip in Symbol 507 MovieClip Frame 3
onClipEvent (load) {
if (_root.skill3 == true) {
_visible = false;
} else {
_visible = true;
}
}
onClipEvent (enterFrame) {
if (_root.skill3 == true) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 455 MovieClip in Symbol 507 MovieClip Frame 3
onClipEvent (load) {
if (_root.skill4 == true) {
_visible = false;
} else {
_visible = true;
}
}
onClipEvent (enterFrame) {
if (_root.skill4 == true) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 459 MovieClip in Symbol 507 MovieClip Frame 3
onClipEvent (load) {
if (_root.skill5 == true) {
_visible = false;
} else {
_visible = true;
}
}
onClipEvent (enterFrame) {
if (_root.skill5 == true) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 463 MovieClip in Symbol 507 MovieClip Frame 3
onClipEvent (load) {
if (_root.skill6 == true) {
_visible = false;
} else {
_visible = true;
}
}
onClipEvent (enterFrame) {
if (_root.skill6 == true) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 467 MovieClip in Symbol 507 MovieClip Frame 3
onClipEvent (load) {
if (_root.skill7 == true) {
_visible = false;
} else {
_visible = true;
}
}
onClipEvent (enterFrame) {
if (_root.skill7 == true) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 471 MovieClip in Symbol 507 MovieClip Frame 3
onClipEvent (load) {
if (_root.skill8 == true) {
_visible = false;
} else {
_visible = true;
}
}
onClipEvent (enterFrame) {
if (_root.skill8 == true) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 475 MovieClip in Symbol 507 MovieClip Frame 3
onClipEvent (load) {
if (_root.skill9 == true) {
_visible = false;
} else {
_visible = true;
}
}
onClipEvent (enterFrame) {
if (_root.skill9 == true) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 493 MovieClip in Symbol 507 MovieClip Frame 4
onClipEvent (load) {
if (_root.weaponlvl1 == false) {
this.gotoAndStop(1);
} else if (_root.weaponlvl1 == true) {
this.gotoAndStop(2);
}
}
Instance of Symbol 493 MovieClip in Symbol 507 MovieClip Frame 4
onClipEvent (load) {
if (_root.weaponlvl2 == false) {
this.gotoAndStop(1);
} else if (_root.weaponlvl2 == true) {
this.gotoAndStop(2);
}
}
Instance of Symbol 493 MovieClip in Symbol 507 MovieClip Frame 4
onClipEvent (load) {
if (_root.weaponlvl3 == false) {
this.gotoAndStop(1);
} else if (_root.weaponlvl3 == true) {
this.gotoAndStop(2);
}
}
Instance of Symbol 493 MovieClip in Symbol 507 MovieClip Frame 4
onClipEvent (load) {
if (_root.weaponlvl4 == false) {
this.gotoAndStop(1);
} else if (_root.weaponlvl4 == true) {
this.gotoAndStop(2);
}
}
Instance of Symbol 493 MovieClip in Symbol 507 MovieClip Frame 4
onClipEvent (load) {
if (_root.weaponlvl5 == false) {
this.gotoAndStop(1);
} else if (_root.weaponlvl5 == true) {
this.gotoAndStop(2);
}
}
Instance of Symbol 506 MovieClip in Symbol 507 MovieClip Frame 5
onClipEvent (load) {
if (_root.savable == true) {
this.gotoAndStop(2);
} else if (_root.savable == false) {
this.gotoAndStop(1);
}
}
Symbol 517 MovieClip Frame 5
_root.musicmatch.gotoAndStop(2);
Symbol 517 MovieClip Frame 155
stop();
Symbol 528 MovieClip Frame 2
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(95);
Symbol 528 MovieClip Frame 3
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(90);
Symbol 528 MovieClip Frame 4
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(85);
Symbol 528 MovieClip Frame 5
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(80);
Symbol 528 MovieClip Frame 6
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(75);
Symbol 528 MovieClip Frame 7
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(70);
Symbol 528 MovieClip Frame 8
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(65);
Symbol 528 MovieClip Frame 9
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(60);
Symbol 528 MovieClip Frame 10
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(55);
Symbol 528 MovieClip Frame 11
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(50);
Symbol 528 MovieClip Frame 12
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(45);
Symbol 528 MovieClip Frame 13
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(40);
Symbol 528 MovieClip Frame 14
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(35);
Symbol 528 MovieClip Frame 15
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(30);
Symbol 528 MovieClip Frame 16
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(25);
Symbol 528 MovieClip Frame 17
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(20);
Symbol 528 MovieClip Frame 18
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(15);
Symbol 528 MovieClip Frame 19
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(10);
Symbol 528 MovieClip Frame 20
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(5);
Symbol 528 MovieClip Frame 21
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(0);
stopAllSounds();
Symbol 528 MovieClip Frame 22
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(100);
_root.musicmatch.gotoAndStop(3);
Symbol 528 MovieClip Frame 155
stop();
Symbol 539 MovieClip Frame 5
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(95);
Symbol 539 MovieClip Frame 6
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(90);
Symbol 539 MovieClip Frame 7
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(85);
Symbol 539 MovieClip Frame 8
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(80);
Symbol 539 MovieClip Frame 9
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(75);
Symbol 539 MovieClip Frame 10
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(70);
Symbol 539 MovieClip Frame 11
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(65);
Symbol 539 MovieClip Frame 12
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(60);
Symbol 539 MovieClip Frame 13
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(55);
Symbol 539 MovieClip Frame 14
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(50);
Symbol 539 MovieClip Frame 15
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(45);
Symbol 539 MovieClip Frame 16
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(40);
Symbol 539 MovieClip Frame 17
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(35);
Symbol 539 MovieClip Frame 18
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(30);
Symbol 539 MovieClip Frame 19
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(25);
Symbol 539 MovieClip Frame 20
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(20);
Symbol 539 MovieClip Frame 21
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(15);
Symbol 539 MovieClip Frame 22
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(10);
Symbol 539 MovieClip Frame 23
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(5);
Symbol 539 MovieClip Frame 24
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(0);
stopAllSounds();
Symbol 539 MovieClip Frame 25
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(100);
_root.musicmatch.gotoAndStop(4);
Symbol 539 MovieClip Frame 176
stop();
Symbol 550 MovieClip Frame 5
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(95);
Symbol 550 MovieClip Frame 6
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(90);
Symbol 550 MovieClip Frame 7
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(85);
Symbol 550 MovieClip Frame 8
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(80);
Symbol 550 MovieClip Frame 9
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(75);
Symbol 550 MovieClip Frame 10
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(70);
Symbol 550 MovieClip Frame 11
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(65);
Symbol 550 MovieClip Frame 12
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(60);
Symbol 550 MovieClip Frame 13
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(55);
Symbol 550 MovieClip Frame 14
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(50);
Symbol 550 MovieClip Frame 15
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(45);
Symbol 550 MovieClip Frame 16
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(40);
Symbol 550 MovieClip Frame 17
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(35);
Symbol 550 MovieClip Frame 18
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(30);
Symbol 550 MovieClip Frame 19
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(25);
Symbol 550 MovieClip Frame 20
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(20);
Symbol 550 MovieClip Frame 21
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(15);
Symbol 550 MovieClip Frame 22
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(10);
Symbol 550 MovieClip Frame 23
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(5);
Symbol 550 MovieClip Frame 24
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(0);
stopAllSounds();
Symbol 550 MovieClip Frame 25
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(100);
_root.musicmatch.gotoAndStop(5);
Symbol 550 MovieClip Frame 176
stop();
Symbol 621 MovieClip Frame 1
_root.fight_on = false;
Symbol 621 MovieClip Frame 2
_root.fight_on = false;
Symbol 621 MovieClip Frame 3
_root.fight_on = false;
Symbol 621 MovieClip Frame 4
_root.fight_on = false;
Symbol 621 MovieClip Frame 5
_root.fight_on = false;
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(95);
Symbol 621 MovieClip Frame 6
_root.fight_on = false;
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(90);
Symbol 621 MovieClip Frame 7
_root.fight_on = false;
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(85);
Symbol 621 MovieClip Frame 8
_root.fight_on = false;
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(80);
Symbol 621 MovieClip Frame 9
_root.fight_on = false;
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(75);
Symbol 621 MovieClip Frame 10
_root.fight_on = false;
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(70);
Symbol 621 MovieClip Frame 11
_root.fight_on = false;
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(65);
Symbol 621 MovieClip Frame 12
_root.fight_on = false;
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(60);
Symbol 621 MovieClip Frame 13
_root.fight_on = false;
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(55);
Symbol 621 MovieClip Frame 14
_root.fight_on = false;
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(50);
Symbol 621 MovieClip Frame 15
_root.fight_on = false;
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(45);
Symbol 621 MovieClip Frame 16
_root.fight_on = false;
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(40);
Symbol 621 MovieClip Frame 17
_root.fight_on = false;
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(35);
Symbol 621 MovieClip Frame 18
_root.fight_on = false;
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(30);
Symbol 621 MovieClip Frame 19
_root.fight_on = false;
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(25);
Symbol 621 MovieClip Frame 20
_root.fight_on = false;
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(20);
Symbol 621 MovieClip Frame 21
_root.fight_on = false;
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(15);
Symbol 621 MovieClip Frame 22
_root.fight_on = false;
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(10);
Symbol 621 MovieClip Frame 23
_root.fight_on = false;
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(5);
Symbol 621 MovieClip Frame 24
_root.fight_on = false;
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(0);
stopAllSounds();
Symbol 621 MovieClip Frame 25
_root.fight_on = false;
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(100);
_root.musicmatch.gotoAndStop(6);
Symbol 621 MovieClip Frame 26
_root.fight_on = false;
Symbol 621 MovieClip Frame 27
_root.fight_on = false;
Symbol 621 MovieClip Frame 28
_root.fight_on = false;
Symbol 621 MovieClip Frame 29
_root.fight_on = false;
Symbol 621 MovieClip Frame 30
_root.fight_on = false;
Symbol 621 MovieClip Frame 31
_root.fight_on = false;
Symbol 621 MovieClip Frame 32
_root.fight_on = false;
Symbol 621 MovieClip Frame 33
_root.fight_on = false;
Symbol 621 MovieClip Frame 34
_root.fight_on = false;
Symbol 621 MovieClip Frame 35
_root.fight_on = false;
Symbol 621 MovieClip Frame 36
_root.fight_on = false;
Symbol 621 MovieClip Frame 37
_root.fight_on = false;
Symbol 621 MovieClip Frame 38
_root.fight_on = false;
Symbol 621 MovieClip Frame 39
_root.fight_on = false;
Symbol 621 MovieClip Frame 40
_root.fight_on = false;
Symbol 621 MovieClip Frame 41
_root.fight_on = false;
Symbol 621 MovieClip Frame 42
_root.fight_on = false;
Symbol 621 MovieClip Frame 43
_root.fight_on = false;
Symbol 621 MovieClip Frame 44
_root.fight_on = false;
Symbol 621 MovieClip Frame 45
_root.fight_on = false;
Symbol 621 MovieClip Frame 46
_root.fight_on = false;
Symbol 621 MovieClip Frame 47
_root.fight_on = false;
Symbol 621 MovieClip Frame 48
_root.fight_on = false;
Symbol 621 MovieClip Frame 49
_root.fight_on = false;
Symbol 621 MovieClip Frame 50
_root.fight_on = false;
Symbol 621 MovieClip Frame 51
_root.fight_on = false;
Symbol 621 MovieClip Frame 52
_root.fight_on = false;
Symbol 621 MovieClip Frame 53
_root.fight_on = false;
Symbol 621 MovieClip Frame 54
_root.fight_on = false;
Symbol 621 MovieClip Frame 55
_root.fight_on = false;
Symbol 621 MovieClip Frame 56
_root.fight_on = false;
Symbol 621 MovieClip Frame 57
_root.fight_on = false;
Symbol 621 MovieClip Frame 58
_root.fight_on = false;
Symbol 621 MovieClip Frame 59
_root.fight_on = false;
Symbol 621 MovieClip Frame 60
_root.fight_on = false;
Symbol 621 MovieClip Frame 61
_root.fight_on = false;
Symbol 621 MovieClip Frame 62
_root.fight_on = false;
Symbol 621 MovieClip Frame 63
_root.fight_on = false;
Symbol 621 MovieClip Frame 64
_root.fight_on = false;
Symbol 621 MovieClip Frame 65
_root.fight_on = false;
Symbol 621 MovieClip Frame 66
_root.fight_on = false;
Symbol 621 MovieClip Frame 67
_root.fight_on = false;
Symbol 621 MovieClip Frame 68
_root.fight_on = false;
Symbol 621 MovieClip Frame 69
_root.fight_on = false;
Symbol 621 MovieClip Frame 70
_root.fight_on = false;
Symbol 621 MovieClip Frame 71
_root.fight_on = false;
Symbol 621 MovieClip Frame 72
_root.fight_on = false;
Symbol 621 MovieClip Frame 73
_root.fight_on = false;
Symbol 621 MovieClip Frame 74
_root.fight_on = false;
Symbol 621 MovieClip Frame 75
_root.fight_on = false;
Symbol 621 MovieClip Frame 76
_root.fight_on = false;
Symbol 621 MovieClip Frame 77
_root.fight_on = false;
Symbol 621 MovieClip Frame 78
_root.fight_on = false;
Symbol 621 MovieClip Frame 79
_root.fight_on = false;
Symbol 621 MovieClip Frame 80
_root.fight_on = false;
Symbol 621 MovieClip Frame 81
_root.fight_on = false;
Symbol 621 MovieClip Frame 82
_root.fight_on = false;
Symbol 621 MovieClip Frame 83
_root.fight_on = false;
Symbol 621 MovieClip Frame 84
_root.fight_on = false;
Symbol 621 MovieClip Frame 85
_root.fight_on = false;
Symbol 621 MovieClip Frame 86
_root.fight_on = false;
Symbol 621 MovieClip Frame 87
_root.fight_on = false;
Symbol 621 MovieClip Frame 88
_root.fight_on = false;
Symbol 621 MovieClip Frame 89
_root.fight_on = false;
Symbol 621 MovieClip Frame 90
_root.fight_on = false;
Symbol 621 MovieClip Frame 91
_root.fight_on = false;
Symbol 621 MovieClip Frame 92
_root.fight_on = false;
Symbol 621 MovieClip Frame 93
_root.fight_on = false;
Symbol 621 MovieClip Frame 94
_root.fight_on = false;
Symbol 621 MovieClip Frame 95
_root.fight_on = false;
Symbol 621 MovieClip Frame 96
_root.fight_on = false;
Symbol 621 MovieClip Frame 97
_root.fight_on = false;
Symbol 621 MovieClip Frame 98
_root.fight_on = false;
Symbol 621 MovieClip Frame 99
_root.fight_on = false;
Symbol 621 MovieClip Frame 100
_root.fight_on = false;
Symbol 621 MovieClip Frame 101
_root.fight_on = false;
Symbol 621 MovieClip Frame 102
_root.fight_on = false;
Symbol 621 MovieClip Frame 103
_root.fight_on = false;
Symbol 621 MovieClip Frame 104
_root.fight_on = false;
Symbol 621 MovieClip Frame 105
_root.fight_on = false;
Symbol 621 MovieClip Frame 106
_root.fight_on = false;
Symbol 621 MovieClip Frame 107
_root.fight_on = false;
Symbol 621 MovieClip Frame 108
_root.fight_on = false;
Symbol 621 MovieClip Frame 109
_root.fight_on = false;
Symbol 621 MovieClip Frame 110
_root.fight_on = false;
Symbol 621 MovieClip Frame 111
_root.fight_on = false;
Symbol 621 MovieClip Frame 112
_root.fight_on = false;
Symbol 621 MovieClip Frame 113
_root.fight_on = false;
Symbol 621 MovieClip Frame 114
_root.fight_on = false;
Symbol 621 MovieClip Frame 115
_root.fight_on = false;
Symbol 621 MovieClip Frame 116
_root.fight_on = false;
Symbol 621 MovieClip Frame 117
_root.fight_on = false;
Symbol 621 MovieClip Frame 118
_root.fight_on = false;
Symbol 621 MovieClip Frame 119
_root.fight_on = false;
Symbol 621 MovieClip Frame 120
_root.fight_on = false;
Symbol 621 MovieClip Frame 121
_root.fight_on = false;
Symbol 621 MovieClip Frame 122
_root.fight_on = false;
Symbol 621 MovieClip Frame 123
_root.fight_on = false;
Symbol 621 MovieClip Frame 124
_root.fight_on = false;
Symbol 621 MovieClip Frame 125
_root.fight_on = false;
Symbol 621 MovieClip Frame 126
_root.fight_on = false;
Symbol 621 MovieClip Frame 127
_root.fight_on = false;
Symbol 621 MovieClip Frame 128
_root.fight_on = false;
Symbol 621 MovieClip Frame 129
_root.fight_on = false;
Symbol 621 MovieClip Frame 130
_root.fight_on = false;
Symbol 621 MovieClip Frame 131
_root.fight_on = false;
Symbol 621 MovieClip Frame 132
_root.fight_on = false;
Symbol 621 MovieClip Frame 133
_root.fight_on = false;
Symbol 621 MovieClip Frame 134
_root.fight_on = false;
Symbol 621 MovieClip Frame 135
_root.fight_on = false;
Symbol 621 MovieClip Frame 136
_root.fight_on = false;
Symbol 621 MovieClip Frame 137
_root.fight_on = false;
Symbol 621 MovieClip Frame 138
_root.fight_on = false;
Symbol 621 MovieClip Frame 139
_root.fight_on = false;
Symbol 621 MovieClip Frame 140
_root.fight_on = false;
Symbol 621 MovieClip Frame 141
_root.fight_on = false;
Symbol 621 MovieClip Frame 142
_root.fight_on = false;
Symbol 621 MovieClip Frame 143
_root.fight_on = false;
Symbol 621 MovieClip Frame 144
_root.fight_on = false;
Symbol 621 MovieClip Frame 145
_root.fight_on = false;
Symbol 621 MovieClip Frame 146
_root.fight_on = false;
Symbol 621 MovieClip Frame 147
_root.fight_on = false;
Symbol 621 MovieClip Frame 148
_root.fight_on = false;
Symbol 621 MovieClip Frame 149
_root.fight_on = false;
Symbol 621 MovieClip Frame 150
_root.fight_on = false;
Symbol 621 MovieClip Frame 151
_root.fight_on = false;
Symbol 621 MovieClip Frame 152
_root.fight_on = false;
Symbol 621 MovieClip Frame 153
_root.fight_on = false;
Symbol 621 MovieClip Frame 154
_root.fight_on = false;
Symbol 621 MovieClip Frame 155
_root.fight_on = false;
Symbol 621 MovieClip Frame 156
_root.fight_on = false;
Symbol 621 MovieClip Frame 157
_root.fight_on = false;
Symbol 621 MovieClip Frame 158
_root.fight_on = false;
Symbol 621 MovieClip Frame 159
_root.fight_on = false;
Symbol 621 MovieClip Frame 160
_root.fight_on = false;
Symbol 621 MovieClip Frame 161
_root.fight_on = false;
Symbol 621 MovieClip Frame 162
_root.fight_on = false;
Symbol 621 MovieClip Frame 163
_root.fight_on = false;
Symbol 621 MovieClip Frame 164
_root.fight_on = false;
Symbol 621 MovieClip Frame 165
_root.fight_on = false;
Symbol 621 MovieClip Frame 166
_root.fight_on = false;
Symbol 621 MovieClip Frame 167
_root.fight_on = false;
Symbol 621 MovieClip Frame 168
_root.fight_on = false;
Symbol 621 MovieClip Frame 169
_root.fight_on = false;
Symbol 621 MovieClip Frame 170
_root.fight_on = false;
Symbol 621 MovieClip Frame 171
_root.fight_on = false;
Symbol 621 MovieClip Frame 172
_root.fight_on = false;
Symbol 621 MovieClip Frame 173
_root.fight_on = false;
Symbol 621 MovieClip Frame 174
_root.fight_on = false;
Symbol 621 MovieClip Frame 175
_root.fight_on = false;
Symbol 621 MovieClip Frame 176
_root.fight_on = false;
Symbol 621 MovieClip Frame 177
_root.fight_on = false;
Symbol 621 MovieClip Frame 178
_root.fight_on = false;
Symbol 621 MovieClip Frame 179
_root.fight_on = false;
Symbol 621 MovieClip Frame 180
_root.fight_on = false;
Symbol 621 MovieClip Frame 181
_root.fight_on = false;
Symbol 621 MovieClip Frame 182
_root.fight_on = false;
Symbol 621 MovieClip Frame 183
_root.fight_on = false;
Symbol 621 MovieClip Frame 184
_root.fight_on = false;
Symbol 621 MovieClip Frame 185
_root.fight_on = false;
Symbol 621 MovieClip Frame 186
_root.fight_on = false;
Symbol 621 MovieClip Frame 187
_root.fight_on = false;
Symbol 621 MovieClip Frame 188
_root.fight_on = false;
Symbol 621 MovieClip Frame 189
_root.fight_on = false;
Symbol 621 MovieClip Frame 190
_root.fight_on = false;
Symbol 621 MovieClip Frame 191
_root.fight_on = false;
Symbol 621 MovieClip Frame 192
_root.fight_on = false;
Symbol 621 MovieClip Frame 193
_root.fight_on = false;
Symbol 621 MovieClip Frame 194
_root.fight_on = false;
Symbol 621 MovieClip Frame 195
_root.fight_on = false;
Symbol 621 MovieClip Frame 196
_root.fight_on = false;
Symbol 621 MovieClip Frame 197
_root.fight_on = false;
Symbol 621 MovieClip Frame 198
_root.fight_on = false;
Symbol 621 MovieClip Frame 199
_root.fight_on = false;
Symbol 621 MovieClip Frame 200
_root.fight_on = false;
Symbol 621 MovieClip Frame 201
_root.fight_on = false;
Symbol 621 MovieClip Frame 202
_root.fight_on = false;
Symbol 621 MovieClip Frame 203
_root.fight_on = false;
Symbol 621 MovieClip Frame 204
_root.fight_on = false;
Symbol 621 MovieClip Frame 205
_root.fight_on = false;
Symbol 621 MovieClip Frame 206
_root.fight_on = false;
Symbol 621 MovieClip Frame 207
_root.fight_on = false;
Symbol 621 MovieClip Frame 208
_root.fight_on = false;
Symbol 621 MovieClip Frame 209
_root.fight_on = false;
Symbol 621 MovieClip Frame 210
_root.fight_on = false;
Symbol 621 MovieClip Frame 211
_root.fight_on = false;
Symbol 621 MovieClip Frame 212
_root.fight_on = false;
Symbol 621 MovieClip Frame 213
_root.fight_on = false;
Symbol 621 MovieClip Frame 214
_root.fight_on = false;
Symbol 621 MovieClip Frame 215
_root.fight_on = false;
Symbol 621 MovieClip Frame 216
_root.fight_on = false;
Symbol 621 MovieClip Frame 217
_root.fight_on = false;
Symbol 621 MovieClip Frame 218
_root.fight_on = false;
Symbol 621 MovieClip Frame 219
_root.fight_on = false;
Symbol 621 MovieClip Frame 220
_root.fight_on = false;
Symbol 621 MovieClip Frame 221
_root.fight_on = false;
Symbol 621 MovieClip Frame 222
_root.fight_on = false;
Symbol 621 MovieClip Frame 223
_root.fight_on = false;
Symbol 621 MovieClip Frame 224
_root.fight_on = false;
Symbol 621 MovieClip Frame 225
_root.fight_on = false;
Symbol 621 MovieClip Frame 226
_root.fight_on = false;
Symbol 621 MovieClip Frame 227
_root.fight_on = false;
Symbol 621 MovieClip Frame 228
_root.fight_on = false;
Symbol 621 MovieClip Frame 229
_root.fight_on = false;
Symbol 621 MovieClip Frame 230
_root.fight_on = false;
Symbol 621 MovieClip Frame 231
_root.fight_on = false;
Symbol 621 MovieClip Frame 232
_root.fight_on = false;
Symbol 621 MovieClip Frame 233
_root.fight_on = false;
Symbol 621 MovieClip Frame 234
_root.fight_on = false;
Symbol 621 MovieClip Frame 235
_root.fight_on = false;
Symbol 621 MovieClip Frame 236
_root.fight_on = false;
Symbol 621 MovieClip Frame 237
_root.fight_on = false;
Symbol 621 MovieClip Frame 238
_root.fight_on = false;
Symbol 621 MovieClip Frame 239
_root.fight_on = false;
Symbol 621 MovieClip Frame 240
_root.fight_on = false;
Symbol 621 MovieClip Frame 241
_root.fight_on = false;
Symbol 621 MovieClip Frame 242
_root.fight_on = false;
Symbol 621 MovieClip Frame 243
_root.fight_on = false;
Symbol 621 MovieClip Frame 244
_root.fight_on = false;
Symbol 621 MovieClip Frame 245
_root.fight_on = false;
Symbol 621 MovieClip Frame 246
_root.fight_on = false;
Symbol 621 MovieClip Frame 247
_root.fight_on = false;
Symbol 621 MovieClip Frame 248
_root.fight_on = false;
Symbol 621 MovieClip Frame 249
_root.fight_on = false;
Symbol 621 MovieClip Frame 250
_root.fight_on = false;
Symbol 621 MovieClip Frame 251
_root.fight_on = false;
Symbol 621 MovieClip Frame 252
_root.fight_on = false;
Symbol 621 MovieClip Frame 253
_root.fight_on = false;
Symbol 621 MovieClip Frame 254
_root.fight_on = false;
Symbol 621 MovieClip Frame 255
_root.fight_on = false;
Symbol 621 MovieClip Frame 256
_root.fight_on = false;
Symbol 621 MovieClip Frame 257
_root.fight_on = false;
Symbol 621 MovieClip Frame 258
_root.fight_on = false;
Symbol 621 MovieClip Frame 259
_root.fight_on = false;
Symbol 621 MovieClip Frame 260
_root.fight_on = false;
Symbol 621 MovieClip Frame 261
_root.fight_on = false;
Symbol 621 MovieClip Frame 262
_root.fight_on = false;
Symbol 621 MovieClip Frame 263
_root.fight_on = false;
Symbol 621 MovieClip Frame 264
_root.fight_on = false;
Symbol 621 MovieClip Frame 265
_root.fight_on = false;
Symbol 621 MovieClip Frame 266
_root.fight_on = false;
Symbol 621 MovieClip Frame 267
_root.fight_on = false;
Symbol 621 MovieClip Frame 268
_root.fight_on = false;
Symbol 621 MovieClip Frame 269
_root.fight_on = false;
Symbol 621 MovieClip Frame 270
_root.fight_on = false;
Symbol 621 MovieClip Frame 271
_root.fight_on = false;
Symbol 621 MovieClip Frame 272
_root.fight_on = false;
Symbol 621 MovieClip Frame 273
_root.fight_on = false;
Symbol 621 MovieClip Frame 274
_root.fight_on = false;
Symbol 621 MovieClip Frame 275
_root.fight_on = false;
Symbol 621 MovieClip Frame 276
_root.fight_on = false;
Symbol 621 MovieClip Frame 277
_root.fight_on = false;
Symbol 621 MovieClip Frame 278
_root.fight_on = false;
Symbol 621 MovieClip Frame 279
_root.fight_on = false;
Symbol 621 MovieClip Frame 280
_root.fight_on = false;
Symbol 621 MovieClip Frame 281
_root.fight_on = false;
Symbol 621 MovieClip Frame 282
_root.fight_on = false;
Symbol 621 MovieClip Frame 283
_root.fight_on = false;
Symbol 621 MovieClip Frame 284
_root.fight_on = false;
Symbol 621 MovieClip Frame 285
_root.fight_on = false;
Symbol 621 MovieClip Frame 286
_root.fight_on = false;
Symbol 621 MovieClip Frame 287
_root.fight_on = false;
Symbol 621 MovieClip Frame 288
_root.fight_on = false;
Symbol 621 MovieClip Frame 289
_root.fight_on = false;
Symbol 621 MovieClip Frame 290
_root.fight_on = false;
Symbol 621 MovieClip Frame 291
_root.fight_on = false;
Symbol 621 MovieClip Frame 292
_root.fight_on = false;
Symbol 621 MovieClip Frame 293
_root.fight_on = false;
Symbol 621 MovieClip Frame 294
_root.fight_on = false;
Symbol 621 MovieClip Frame 295
_root.fight_on = false;
Symbol 621 MovieClip Frame 296
_root.fight_on = false;
Symbol 621 MovieClip Frame 297
_root.fight_on = false;
Symbol 621 MovieClip Frame 298
_root.fight_on = false;
Symbol 621 MovieClip Frame 299
_root.fight_on = false;
Symbol 621 MovieClip Frame 300
_root.fight_on = false;
Symbol 621 MovieClip Frame 301
_root.fight_on = false;
Symbol 621 MovieClip Frame 302
_root.fight_on = false;
Symbol 621 MovieClip Frame 303
_root.fight_on = false;
Symbol 621 MovieClip Frame 304
_root.fight_on = false;
Symbol 621 MovieClip Frame 305
_root.fight_on = false;
Symbol 621 MovieClip Frame 306
_root.fight_on = false;
Symbol 621 MovieClip Frame 307
_root.fight_on = false;
Symbol 621 MovieClip Frame 308
_root.fight_on = false;
Symbol 621 MovieClip Frame 309
_root.fight_on = false;
Symbol 621 MovieClip Frame 310
_root.fight_on = false;
Symbol 621 MovieClip Frame 311
_root.fight_on = false;
Symbol 621 MovieClip Frame 312
_root.fight_on = false;
Symbol 621 MovieClip Frame 313
_root.fight_on = false;
Symbol 621 MovieClip Frame 314
_root.fight_on = false;
Symbol 621 MovieClip Frame 315
_root.fight_on = false;
Symbol 621 MovieClip Frame 316
_root.fight_on = false;
Symbol 621 MovieClip Frame 317
_root.fight_on = false;
Symbol 621 MovieClip Frame 318
_root.fight_on = false;
Symbol 621 MovieClip Frame 319
_root.fight_on = false;
Symbol 621 MovieClip Frame 320
_root.fight_on = false;
Symbol 621 MovieClip Frame 321
_root.fight_on = false;
Symbol 621 MovieClip Frame 322
_root.fight_on = false;
Symbol 621 MovieClip Frame 323
_root.fight_on = false;
Symbol 621 MovieClip Frame 324
_root.fight_on = false;
Symbol 621 MovieClip Frame 325
_root.fight_on = false;
Symbol 621 MovieClip Frame 326
_root.fight_on = false;
Symbol 621 MovieClip Frame 327
_root.fight_on = false;
Symbol 621 MovieClip Frame 328
_root.fight_on = false;
Symbol 621 MovieClip Frame 329
_root.fight_on = false;
Symbol 621 MovieClip Frame 330
_root.fight_on = false;
Symbol 621 MovieClip Frame 331
_root.fight_on = false;
Symbol 621 MovieClip Frame 332
_root.fight_on = false;
Symbol 621 MovieClip Frame 333
_root.fight_on = false;
Symbol 621 MovieClip Frame 334
_root.fight_on = false;
Symbol 621 MovieClip Frame 335
_root.fight_on = false;
Symbol 621 MovieClip Frame 336
_root.fight_on = false;
Symbol 621 MovieClip Frame 337
_root.fight_on = false;
Symbol 621 MovieClip Frame 338
_root.fight_on = false;
Symbol 621 MovieClip Frame 339
_root.fight_on = false;
Symbol 621 MovieClip Frame 340
_root.fight_on = false;
Symbol 621 MovieClip Frame 341
_root.fight_on = false;
Symbol 621 MovieClip Frame 342
_root.fight_on = false;
Symbol 621 MovieClip Frame 343
_root.fight_on = false;
Symbol 621 MovieClip Frame 344
_root.fight_on = false;
Symbol 621 MovieClip Frame 345
_root.fight_on = false;
Symbol 621 MovieClip Frame 346
_root.fight_on = false;
Symbol 621 MovieClip Frame 347
_root.fight_on = false;
Symbol 621 MovieClip Frame 348
_root.fight_on = false;
Symbol 621 MovieClip Frame 349
_root.fight_on = false;
Symbol 621 MovieClip Frame 350
_root.fight_on = false;
Symbol 621 MovieClip Frame 351
_root.fight_on = false;
Symbol 621 MovieClip Frame 352
_root.fight_on = false;
Symbol 621 MovieClip Frame 353
_root.fight_on = false;
Symbol 621 MovieClip Frame 354
_root.fight_on = false;
Symbol 621 MovieClip Frame 355
_root.fight_on = false;
Symbol 621 MovieClip Frame 356
_root.fight_on = false;
Symbol 621 MovieClip Frame 357
_root.fight_on = false;
Symbol 621 MovieClip Frame 358
_root.fight_on = false;
Symbol 621 MovieClip Frame 359
_root.fight_on = false;
Symbol 621 MovieClip Frame 360
_root.fight_on = false;
Symbol 621 MovieClip Frame 361
_root.fight_on = false;
Symbol 621 MovieClip Frame 362
_root.fight_on = false;
Symbol 621 MovieClip Frame 363
_root.fight_on = false;
Symbol 621 MovieClip Frame 364
_root.fight_on = false;
Symbol 621 MovieClip Frame 365
_root.fight_on = false;
Symbol 621 MovieClip Frame 366
_root.fight_on = false;
Symbol 621 MovieClip Frame 367
_root.fight_on = false;
Symbol 621 MovieClip Frame 368
_root.fight_on = false;
Symbol 621 MovieClip Frame 369
_root.fight_on = false;
Symbol 621 MovieClip Frame 370
_root.fight_on = false;
Symbol 621 MovieClip Frame 371
_root.fight_on = false;
Symbol 621 MovieClip Frame 372
_root.fight_on = false;
Symbol 621 MovieClip Frame 373
_root.fight_on = false;
Symbol 621 MovieClip Frame 374
_root.fight_on = false;
Symbol 621 MovieClip Frame 375
_root.fight_on = false;
Symbol 621 MovieClip Frame 376
_root.fight_on = false;
Symbol 621 MovieClip Frame 377
_root.fight_on = false;
Symbol 621 MovieClip Frame 378
_root.fight_on = false;
Symbol 621 MovieClip Frame 379
_root.fight_on = false;
Symbol 621 MovieClip Frame 380
_root.fight_on = false;
Symbol 621 MovieClip Frame 381
_root.fight_on = false;
Symbol 621 MovieClip Frame 382
_root.fight_on = false;
Symbol 621 MovieClip Frame 383
_root.fight_on = false;
Symbol 621 MovieClip Frame 384
_root.fight_on = false;
Symbol 621 MovieClip Frame 385
_root.fight_on = false;
Symbol 621 MovieClip Frame 386
_root.fight_on = false;
Symbol 621 MovieClip Frame 387
_root.fight_on = false;
Symbol 621 MovieClip Frame 388
_root.fight_on = false;
Symbol 621 MovieClip Frame 389
_root.fight_on = false;
Symbol 621 MovieClip Frame 390
_root.fight_on = false;
Symbol 621 MovieClip Frame 391
_root.fight_on = false;
Symbol 621 MovieClip Frame 392
_root.fight_on = false;
Symbol 621 MovieClip Frame 393
_root.fight_on = false;
Symbol 621 MovieClip Frame 394
_root.fight_on = false;
Symbol 621 MovieClip Frame 395
_root.fight_on = false;
Symbol 621 MovieClip Frame 396
_root.fight_on = false;
Symbol 621 MovieClip Frame 397
_root.fight_on = false;
Symbol 621 MovieClip Frame 398
_root.fight_on = false;
Symbol 621 MovieClip Frame 399
_root.fight_on = false;
Symbol 621 MovieClip Frame 400
_root.fight_on = false;
Symbol 621 MovieClip Frame 401
_root.fight_on = false;
Symbol 621 MovieClip Frame 402
_root.fight_on = false;
Symbol 621 MovieClip Frame 403
_root.fight_on = false;
Symbol 621 MovieClip Frame 404
_root.fight_on = false;
Symbol 621 MovieClip Frame 405
_root.fight_on = false;
Symbol 621 MovieClip Frame 406
_root.fight_on = false;
Symbol 621 MovieClip Frame 407
_root.fight_on = false;
Symbol 621 MovieClip Frame 408
_root.fight_on = false;
Symbol 621 MovieClip Frame 409
_root.fight_on = false;
Symbol 621 MovieClip Frame 410
_root.fight_on = false;
Symbol 621 MovieClip Frame 411
_root.fight_on = false;
Symbol 621 MovieClip Frame 412
_root.fight_on = false;
Symbol 621 MovieClip Frame 413
_root.fight_on = false;
Symbol 621 MovieClip Frame 414
_root.fight_on = false;
Symbol 621 MovieClip Frame 415
_root.fight_on = false;
Symbol 621 MovieClip Frame 416
_root.fight_on = false;
Symbol 621 MovieClip Frame 417
_root.fight_on = false;
Symbol 621 MovieClip Frame 418
_root.fight_on = false;
Symbol 621 MovieClip Frame 419
_root.fight_on = false;
Symbol 621 MovieClip Frame 420
_root.fight_on = false;
Symbol 621 MovieClip Frame 421
_root.fight_on = false;
Symbol 621 MovieClip Frame 422
_root.fight_on = false;
Symbol 621 MovieClip Frame 423
_root.fight_on = false;
Symbol 621 MovieClip Frame 424
_root.fight_on = false;
Symbol 621 MovieClip Frame 425
_root.fight_on = false;
Symbol 621 MovieClip Frame 426
_root.fight_on = false;
Symbol 621 MovieClip Frame 427
_root.fight_on = false;
Symbol 621 MovieClip Frame 428
_root.fight_on = false;
Symbol 621 MovieClip Frame 429
_root.fight_on = false;
Symbol 621 MovieClip Frame 430
_root.fight_on = false;
Symbol 621 MovieClip Frame 431
_root.fight_on = false;
Symbol 621 MovieClip Frame 432
_root.fight_on = false;
Symbol 621 MovieClip Frame 433
_root.fight_on = false;
Symbol 621 MovieClip Frame 434
_root.fight_on = false;
Symbol 621 MovieClip Frame 435
_root.fight_on = false;
Symbol 621 MovieClip Frame 436
_root.fight_on = false;
Symbol 621 MovieClip Frame 437
_root.fight_on = false;
Symbol 621 MovieClip Frame 438
_root.fight_on = false;
Symbol 621 MovieClip Frame 439
_root.fight_on = false;
Symbol 621 MovieClip Frame 440
_root.fight_on = false;
Symbol 621 MovieClip Frame 441
_root.fight_on = false;
Symbol 621 MovieClip Frame 442
_root.fight_on = false;
Symbol 621 MovieClip Frame 443
_root.fight_on = false;
Symbol 621 MovieClip Frame 444
_root.fight_on = false;
Symbol 621 MovieClip Frame 445
_root.fight_on = false;
Symbol 621 MovieClip Frame 446
_root.fight_on = false;
Symbol 621 MovieClip Frame 447
_root.fight_on = false;
Symbol 621 MovieClip Frame 448
_root.fight_on = false;
Symbol 621 MovieClip Frame 449
_root.fight_on = false;
Symbol 621 MovieClip Frame 450
_root.fight_on = false;
Symbol 621 MovieClip Frame 451
_root.fight_on = false;
Symbol 621 MovieClip Frame 452
_root.fight_on = false;
Symbol 621 MovieClip Frame 453
_root.fight_on = false;
Symbol 621 MovieClip Frame 455
_root.area = 4;
_root.concentrated = false;
_root.battleMessage = "Fight your Father!";
_root.maxhealth = Math.floor(((_root.vitality * 4) * _root.battlelevel) * 6) + 50;
_root.currenthealth = _root.maxhealth;
_root.maxenergy = Math.floor(((_root.mana * 1) * _root.battlelevel) * 10);
_root.currentenergy = _root.maxenergy;
_root.enemylevel = 16;
_root.enemyhealth = Math.round((_root.enemylevel * 72) + (Math.round((_root.enemylevel * 2.75) * (_root.battlelevel * _root.vitality)) * 4));
_root.enemypower = Math.round(_root.enemylevel * 2);
_root.enemynumber = 11;
_root.fight_on = true;
_root.battleengine.startFlash.gotoAndPlay(1);
_root.battleengine.enemy.inside.gotoAndStop(1);
_root.battleengine.selectbox.gotoAndStop(1);
Symbol 621 MovieClip Frame 470
stop();
Symbol 622 MovieClip Frame 1
stop();
Symbol 636 MovieClip Frame 1
stop();
Instance of Symbol 638 MovieClip in Symbol 645 MovieClip Frame 1
onClipEvent (load) {
this.cacheAsBitmap = true;
}
Instance of Symbol 640 MovieClip in Symbol 645 MovieClip Frame 2
onClipEvent (load) {
this.cacheAsBitmap = true;
}
Instance of Symbol 642 MovieClip in Symbol 645 MovieClip Frame 3
onClipEvent (load) {
this.cacheAsBitmap = true;
}
Instance of Symbol 644 MovieClip in Symbol 645 MovieClip Frame 4
onClipEvent (load) {
this.cacheAsBitmap = true;
}
Instance of Symbol 656 MovieClip in Symbol 658 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(_root.activeweapon);
}
Instance of Symbol 656 MovieClip in Symbol 659 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(_root.activeweapon);
}
Symbol 659 MovieClip Frame 25
_root.battleengine.character.gotoAndStop(1);
Instance of Symbol 656 MovieClip in Symbol 660 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(_root.activeweapon);
}
Symbol 660 MovieClip Frame 80
_root.endaction = 1;
_root.nextFrame();
stop();
Instance of Symbol 656 MovieClip in Symbol 663 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(_root.activeweapon);
}
Symbol 663 MovieClip Frame 39
_root.damageDealing = Math.round(((_root.weaponpower * (_root.power / 1.5)) * _root.battlelevel) + (((_root.power / 1.5) * _root.battlelevel) + Math.round(Math.random() * ((10 * (_root.power / 1.5)) + _root.battlelevel))));
if (_root.concentrated == false) {
_root.enemydamager = _root.damageDealing;
} else if (_root.concentrated == true) {
_root.enemydamager = Math.round(_root.damageDealing * 1.5);
}
_root.enemyhealth = _root.enemyhealth - _root.enemydamager;
if (_root.enemyhealth < 1) {
_root.battleengine.enemy.inside.gotoAndStop(4);
} else {
_root.battleengine.enemy.inside.gotoAndStop(2);
}
Symbol 663 MovieClip Frame 75
_root.enemydamager = "";
if (_root.enemyhealth > 0) {
if (_root.enemynumber < 11) {
randomizer = Math.round((Math.random() * 5) + 1);
if (randomizer == 3) {
_root.battleengine.enemy.inside.gotoAndStop(5);
} else {
_root.battleengine.enemy.inside.gotoAndStop(3);
}
} else if (_root.enemynumber == 11) {
randomizer = Math.round((Math.random() * 9) + 1);
if ((((randomizer == 1) || (randomizer == 2)) || (randomizer == 3)) || (randomizer == 4)) {
_root.battleengine.enemy.inside.gotoAndStop(3);
} else if ((((randomizer == 5) || (randomizer == 6)) || (randomizer == 7)) || (randomizer == 8)) {
_root.battleengine.enemy.inside.gotoAndStop(5);
} else if (randomizer == 9) {
_root.battleengine.enemy.inside.gotoAndStop(6);
} else if (randomizer == 10) {
_root.battleengine.enemy.inside.gotoAndStop(7);
}
}
}
_root.battleengine.character.gotoAndStop(1);
Instance of Symbol 656 MovieClip in Symbol 668 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(_root.activeweapon);
}
Symbol 668 MovieClip Frame 43
_root.damageDealing = Math.round(((_root.weaponpower * (_root.magic / 1.5)) * _root.battlelevel) + (((_root.magic / 1.5) * _root.battlelevel) + Math.round(Math.random() * ((10 * (_root.magic / 1.5)) + _root.battlelevel))));
if (_root.concentrated == false) {
_root.enemydamager = _root.damageDealing;
} else if (_root.concentrated == true) {
_root.enemydamager = Math.round(_root.damageDealing * 1.5);
}
_root.enemyhealth = _root.enemyhealth - _root.enemydamager;
if (_root.enemyhealth < 1) {
_root.battleengine.enemy.inside.gotoAndStop(4);
} else {
_root.battleengine.enemy.inside.gotoAndStop(2);
}
_root.enemydamager = _root.damageDealing;
_root.enemyhealth = _root.enemyhealth - _root.enemydamager;
if (_root.enemyhealth < 1) {
_root.battleengine.enemy.inside.gotoAndStop(4);
} else {
_root.battleengine.enemy.inside.gotoAndStop(2);
}
Symbol 668 MovieClip Frame 70
_root.enemydamager = "";
if (_root.enemyhealth > 0) {
if (_root.enemynumber < 11) {
randomizer = Math.round((Math.random() * 5) + 1);
if (randomizer == 3) {
_root.battleengine.enemy.inside.gotoAndStop(5);
} else {
_root.battleengine.enemy.inside.gotoAndStop(3);
}
} else if (_root.enemynumber == 11) {
randomizer = Math.round((Math.random() * 9) + 1);
if ((((randomizer == 1) || (randomizer == 2)) || (randomizer == 3)) || (randomizer == 4)) {
_root.battleengine.enemy.inside.gotoAndStop(3);
} else if ((((randomizer == 5) || (randomizer == 6)) || (randomizer == 7)) || (randomizer == 8)) {
_root.battleengine.enemy.inside.gotoAndStop(5);
} else if (randomizer == 9) {
_root.battleengine.enemy.inside.gotoAndStop(6);
} else if (randomizer == 10) {
_root.battleengine.enemy.inside.gotoAndStop(7);
}
}
}
_root.battleengine.character.gotoAndStop(1);
Instance of Symbol 656 MovieClip in Symbol 669 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(_root.activeweapon);
}
Symbol 669 MovieClip Frame 7
if (_root.cast == 5) {
healer = Math.round((_root.maxhealth / 100) * 55);
_root.charhealer = healer;
_root.currenthealth = _root.currenthealth + healer;
if (_root.currenthealth > _root.maxhealth) {
_root.currenthealth = _root.maxhealth;
}
}
if (_root.cast == 4) {
_root.concentrated = true;
}
Symbol 669 MovieClip Frame 60
_root.charhealer = "";
if (_root.enemyhealth > 0) {
if (_root.enemynumber < 11) {
randomizer = Math.round((Math.random() * 5) + 1);
if (randomizer == 3) {
_root.battleengine.enemy.inside.gotoAndStop(5);
} else {
_root.battleengine.enemy.inside.gotoAndStop(3);
}
} else if (_root.enemynumber == 11) {
randomizer = Math.round((Math.random() * 9) + 1);
if ((((randomizer == 1) || (randomizer == 2)) || (randomizer == 3)) || (randomizer == 4)) {
_root.battleengine.enemy.inside.gotoAndStop(3);
} else if ((((randomizer == 5) || (randomizer == 6)) || (randomizer == 7)) || (randomizer == 8)) {
_root.battleengine.enemy.inside.gotoAndStop(5);
} else if (randomizer == 9) {
_root.battleengine.enemy.inside.gotoAndStop(6);
} else if (randomizer == 10) {
_root.battleengine.enemy.inside.gotoAndStop(7);
}
}
}
_root.battleengine.character.gotoAndStop(1);
Instance of Symbol 656 MovieClip in Symbol 676 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(_root.activeweapon);
}
Symbol 676 MovieClip Frame 40
_root.damageDealing1 = Math.round(((_root.weaponpower * (_root.power / 1.5)) * _root.battlelevel) + (((_root.power / 1.5) * _root.battlelevel) + Math.round(Math.random() * ((10 * (_root.power / 1.5)) + _root.battlelevel))));
_root.damageDealing2 = Math.round(((_root.weaponpower * (_root.magic / 1.5)) * _root.battlelevel) + (((_root.magic / 1.5) * _root.battlelevel) + Math.round(Math.random() * ((10 * (_root.magic / 1.5)) + _root.battlelevel))));
_root.damageDealing3 = Math.round((_root.damageDealing1 + _root.damageDealing2) / 2);
_root.damageDealing4 = Math.round((_root.cast * _root.power) * _root.magic);
_root.damageDealing = Math.round(_root.damageDealing3 + _root.damageDealing4);
if (_root.concentrated == false) {
_root.enemydamager = _root.damageDealing;
} else if (_root.concentrated == true) {
_root.enemydamager = Math.round(_root.damageDealing * 1.5);
}
_root.enemyhealth = _root.enemyhealth - _root.enemydamager;
if (_root.enemyhealth < 1) {
_root.battleengine.enemy.inside.gotoAndStop(4);
} else {
_root.battleengine.enemy.inside.gotoAndStop(2);
}
Symbol 676 MovieClip Frame 60
_root.enemydamager = "";
if (_root.enemyhealth > 0) {
if (_root.enemynumber < 11) {
randomizer = Math.round((Math.random() * 5) + 1);
if (randomizer == 3) {
_root.battleengine.enemy.inside.gotoAndStop(5);
} else {
_root.battleengine.enemy.inside.gotoAndStop(3);
}
} else if (_root.enemynumber == 11) {
randomizer = Math.round((Math.random() * 9) + 1);
if ((((randomizer == 1) || (randomizer == 2)) || (randomizer == 3)) || (randomizer == 4)) {
_root.battleengine.enemy.inside.gotoAndStop(3);
} else if ((((randomizer == 5) || (randomizer == 6)) || (randomizer == 7)) || (randomizer == 8)) {
_root.battleengine.enemy.inside.gotoAndStop(5);
} else if (randomizer == 9) {
_root.battleengine.enemy.inside.gotoAndStop(6);
} else if (randomizer == 10) {
_root.battleengine.enemy.inside.gotoAndStop(7);
}
}
}
_root.battleengine.character.gotoAndStop(1);
Instance of Symbol 656 MovieClip in Symbol 683 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(_root.activeweapon);
}
Symbol 683 MovieClip Frame 33
_root.damageDealing1 = Math.round(((_root.weaponpower * (_root.power / 1.5)) * _root.battlelevel) + (((_root.power / 1.5) * _root.battlelevel) + Math.round(Math.random() * ((10 * (_root.power / 1.5)) + _root.battlelevel))));
_root.damageDealing2 = Math.round(((_root.weaponpower * (_root.magic / 1.5)) * _root.battlelevel) + (((_root.magic / 1.5) * _root.battlelevel) + Math.round(Math.random() * ((10 * (_root.magic / 1.5)) + _root.battlelevel))));
_root.damageDealing3 = Math.round((_root.damageDealing1 + _root.damageDealing2) / 2);
_root.damageDealing4 = Math.round((_root.cast * _root.power) * _root.magic);
_root.damageDealing = Math.round(_root.damageDealing3 + _root.damageDealing4);
if (_root.concentrated == false) {
_root.enemydamager = _root.damageDealing;
} else if (_root.concentrated == true) {
_root.enemydamager = Math.round(_root.damageDealing * 1.5);
}
_root.enemyhealth = _root.enemyhealth - _root.enemydamager;
if (_root.enemyhealth < 1) {
_root.battleengine.enemy.inside.gotoAndStop(4);
} else {
_root.battleengine.enemy.inside.gotoAndStop(2);
}
Symbol 683 MovieClip Frame 65
_root.enemydamager = "";
if (_root.enemyhealth > 0) {
if (_root.enemynumber < 11) {
randomizer = Math.round((Math.random() * 5) + 1);
if (randomizer == 3) {
_root.battleengine.enemy.inside.gotoAndStop(5);
} else {
_root.battleengine.enemy.inside.gotoAndStop(3);
}
} else if (_root.enemynumber == 11) {
randomizer = Math.round((Math.random() * 9) + 1);
if ((((randomizer == 1) || (randomizer == 2)) || (randomizer == 3)) || (randomizer == 4)) {
_root.battleengine.enemy.inside.gotoAndStop(3);
} else if ((((randomizer == 5) || (randomizer == 6)) || (randomizer == 7)) || (randomizer == 8)) {
_root.battleengine.enemy.inside.gotoAndStop(5);
} else if (randomizer == 9) {
_root.battleengine.enemy.inside.gotoAndStop(6);
} else if (randomizer == 10) {
_root.battleengine.enemy.inside.gotoAndStop(7);
}
}
}
_root.battleengine.character.gotoAndStop(1);
Instance of Symbol 656 MovieClip in Symbol 687 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(_root.activeweapon);
}
Symbol 687 MovieClip Frame 33
_root.damageDealing1 = Math.round(((_root.weaponpower * (_root.power / 1.5)) * _root.battlelevel) + (((_root.power / 1.5) * _root.battlelevel) + Math.round(Math.random() * ((10 * (_root.power / 1.5)) + _root.battlelevel))));
_root.damageDealing2 = Math.round(((_root.weaponpower * (_root.magic / 1.5)) * _root.battlelevel) + (((_root.magic / 1.5) * _root.battlelevel) + Math.round(Math.random() * ((10 * (_root.magic / 1.5)) + _root.battlelevel))));
_root.damageDealing3 = Math.round((_root.damageDealing1 + _root.damageDealing2) / 2);
_root.damageDealing4 = Math.round((_root.cast * _root.power) * _root.magic);
_root.damageDealing = Math.round(_root.damageDealing3 + _root.damageDealing4);
if (_root.concentrated == false) {
_root.enemydamager = _root.damageDealing;
} else if (_root.concentrated == true) {
_root.enemydamager = Math.round(_root.damageDealing * 1.5);
}
_root.enemyhealth = _root.enemyhealth - _root.enemydamager;
if (_root.enemyhealth < 1) {
_root.battleengine.enemy.inside.gotoAndStop(4);
} else {
_root.battleengine.enemy.inside.gotoAndStop(2);
}
Symbol 687 MovieClip Frame 65
_root.enemydamager = "";
if (_root.enemyhealth > 0) {
if (_root.enemynumber < 11) {
randomizer = Math.round((Math.random() * 5) + 1);
if (randomizer == 3) {
_root.battleengine.enemy.inside.gotoAndStop(5);
} else {
_root.battleengine.enemy.inside.gotoAndStop(3);
}
} else if (_root.enemynumber == 11) {
randomizer = Math.round((Math.random() * 9) + 1);
if ((((randomizer == 1) || (randomizer == 2)) || (randomizer == 3)) || (randomizer == 4)) {
_root.battleengine.enemy.inside.gotoAndStop(3);
} else if ((((randomizer == 5) || (randomizer == 6)) || (randomizer == 7)) || (randomizer == 8)) {
_root.battleengine.enemy.inside.gotoAndStop(5);
} else if (randomizer == 9) {
_root.battleengine.enemy.inside.gotoAndStop(6);
} else if (randomizer == 10) {
_root.battleengine.enemy.inside.gotoAndStop(7);
}
}
}
_root.battleengine.character.gotoAndStop(1);
Instance of Symbol 656 MovieClip in Symbol 691 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(_root.activeweapon);
}
Symbol 691 MovieClip Frame 46
_root.damageDealing1 = Math.round(((_root.weaponpower * (_root.power / 1.5)) * _root.battlelevel) + (((_root.power / 1.5) * _root.battlelevel) + Math.round(Math.random() * ((10 * (_root.power / 1.5)) + _root.battlelevel))));
_root.damageDealing2 = Math.round(((_root.weaponpower * (_root.magic / 1.5)) * _root.battlelevel) + (((_root.magic / 1.5) * _root.battlelevel) + Math.round(Math.random() * ((10 * (_root.magic / 1.5)) + _root.battlelevel))));
_root.damageDealing3 = Math.round((_root.damageDealing1 + _root.damageDealing2) / 2);
_root.damageDealing4 = Math.round((_root.cast * _root.power) * _root.magic);
_root.damageDealing = Math.round(_root.damageDealing3 + _root.damageDealing4);
if (_root.concentrated == false) {
_root.enemydamager = _root.damageDealing;
} else if (_root.concentrated == true) {
_root.enemydamager = Math.round(_root.damageDealing * 1.5);
}
_root.enemyhealth = _root.enemyhealth - _root.enemydamager;
if (_root.enemyhealth < 1) {
_root.battleengine.enemy.inside.gotoAndStop(4);
} else {
_root.battleengine.enemy.inside.gotoAndStop(2);
}
Symbol 691 MovieClip Frame 75
_root.enemydamager = "";
if (_root.enemyhealth > 0) {
if (_root.enemynumber < 11) {
randomizer = Math.round((Math.random() * 5) + 1);
if (randomizer == 3) {
_root.battleengine.enemy.inside.gotoAndStop(5);
} else {
_root.battleengine.enemy.inside.gotoAndStop(3);
}
} else if (_root.enemynumber == 11) {
randomizer = Math.round((Math.random() * 9) + 1);
if ((((randomizer == 1) || (randomizer == 2)) || (randomizer == 3)) || (randomizer == 4)) {
_root.battleengine.enemy.inside.gotoAndStop(3);
} else if ((((randomizer == 5) || (randomizer == 6)) || (randomizer == 7)) || (randomizer == 8)) {
_root.battleengine.enemy.inside.gotoAndStop(5);
} else if (randomizer == 9) {
_root.battleengine.enemy.inside.gotoAndStop(6);
} else if (randomizer == 10) {
_root.battleengine.enemy.inside.gotoAndStop(7);
}
}
}
_root.battleengine.character.gotoAndStop(1);
Instance of Symbol 656 MovieClip in Symbol 696 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(_root.activeweapon);
}
Symbol 696 MovieClip Frame 46
_root.damageDealing1 = Math.round(((_root.weaponpower * (_root.power / 1.5)) * _root.battlelevel) + (((_root.power / 1.5) * _root.battlelevel) + Math.round(Math.random() * ((10 * (_root.power / 1.5)) + _root.battlelevel))));
_root.damageDealing2 = Math.round(((_root.weaponpower * (_root.magic / 1.5)) * _root.battlelevel) + (((_root.magic / 1.5) * _root.battlelevel) + Math.round(Math.random() * ((10 * (_root.magic / 1.5)) + _root.battlelevel))));
_root.damageDealing3 = Math.round((_root.damageDealing1 + _root.damageDealing2) / 2);
_root.damageDealing4 = Math.round((_root.cast * _root.power) * _root.magic);
_root.damageDealing = Math.round(_root.damageDealing3 + _root.damageDealing4);
if (_root.concentrated == false) {
_root.enemydamager = _root.damageDealing;
} else if (_root.concentrated == true) {
_root.enemydamager = Math.round(_root.damageDealing * 1.5);
}
_root.enemyhealth = _root.enemyhealth - _root.enemydamager;
if (_root.enemyhealth < 1) {
_root.battleengine.enemy.inside.gotoAndStop(4);
} else {
_root.battleengine.enemy.inside.gotoAndStop(2);
}
Symbol 696 MovieClip Frame 75
_root.enemydamager = "";
if (_root.enemyhealth > 0) {
if (_root.enemynumber < 11) {
randomizer = Math.round((Math.random() * 5) + 1);
if (randomizer == 3) {
_root.battleengine.enemy.inside.gotoAndStop(5);
} else {
_root.battleengine.enemy.inside.gotoAndStop(3);
}
} else if (_root.enemynumber == 11) {
randomizer = Math.round((Math.random() * 9) + 1);
if ((((randomizer == 1) || (randomizer == 2)) || (randomizer == 3)) || (randomizer == 4)) {
_root.battleengine.enemy.inside.gotoAndStop(3);
} else if ((((randomizer == 5) || (randomizer == 6)) || (randomizer == 7)) || (randomizer == 8)) {
_root.battleengine.enemy.inside.gotoAndStop(5);
} else if (randomizer == 9) {
_root.battleengine.enemy.inside.gotoAndStop(6);
} else if (randomizer == 10) {
_root.battleengine.enemy.inside.gotoAndStop(7);
}
}
}
_root.battleengine.character.gotoAndStop(1);
Instance of Symbol 656 MovieClip in Symbol 711 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(_root.activeweapon);
}
Symbol 711 MovieClip Frame 46
_root.damageDealing1 = Math.round(((_root.weaponpower * (_root.power / 1.5)) * _root.battlelevel) + (((_root.power / 1.5) * _root.battlelevel) + Math.round(Math.random() * ((10 * (_root.power / 1.5)) + _root.battlelevel))));
_root.damageDealing2 = Math.round(((_root.weaponpower * (_root.magic / 1.5)) * _root.battlelevel) + (((_root.magic / 1.5) * _root.battlelevel) + Math.round(Math.random() * ((10 * (_root.magic / 1.5)) + _root.battlelevel))));
_root.damageDealing3 = Math.round((_root.damageDealing1 + _root.damageDealing2) / 2);
_root.damageDealing4 = Math.round((_root.cast * _root.power) * _root.magic);
_root.damageDealing = Math.round(_root.damageDealing3 + _root.damageDealing4);
if (_root.concentrated == false) {
_root.enemydamager = _root.damageDealing;
} else if (_root.concentrated == true) {
_root.enemydamager = Math.round(_root.damageDealing * 1.5);
}
_root.enemyhealth = _root.enemyhealth - _root.enemydamager;
if (_root.enemyhealth < 1) {
_root.battleengine.enemy.inside.gotoAndStop(4);
} else {
_root.battleengine.enemy.inside.gotoAndStop(2);
}
Symbol 711 MovieClip Frame 79
_root.enemydamager = "";
if (_root.enemyhealth > 0) {
if (_root.enemynumber < 11) {
randomizer = Math.round((Math.random() * 5) + 1);
if (randomizer == 3) {
_root.battleengine.enemy.inside.gotoAndStop(5);
} else {
_root.battleengine.enemy.inside.gotoAndStop(3);
}
} else if (_root.enemynumber == 11) {
randomizer = Math.round((Math.random() * 9) + 1);
if ((((randomizer == 1) || (randomizer == 2)) || (randomizer == 3)) || (randomizer == 4)) {
_root.battleengine.enemy.inside.gotoAndStop(3);
} else if ((((randomizer == 5) || (randomizer == 6)) || (randomizer == 7)) || (randomizer == 8)) {
_root.battleengine.enemy.inside.gotoAndStop(5);
} else if (randomizer == 9) {
_root.battleengine.enemy.inside.gotoAndStop(6);
} else if (randomizer == 10) {
_root.battleengine.enemy.inside.gotoAndStop(7);
}
}
}
_root.battleengine.character.gotoAndStop(1);
Symbol 735 MovieClip Frame 30
_parent.gotoAndStop(1);
Symbol 741 MovieClip Frame 21
_root.damageDealing = Math.round(((_root.enemypower * 2) + (_root.enemylevel * 2)) + (((_root.battlelevel * _root.area) * (Math.random() * _root.enemypower)) + 1)) + (5 * _root.battlelevel);
_root.damageDealing = Math.round(_root.damageDealing * 0.95);
_root.chardamager = _root.damageDealing;
_root.currenthealth = _root.currenthealth - _root.chardamager;
_root.battleengine.character.gotoAndStop(2);
Symbol 741 MovieClip Frame 60
_root.chardamager = "";
_root.battleengine.selectbox.gotoAndStop(1);
_parent.gotoAndStop(1);
Symbol 751 MovieClip Frame 1
varx = Math.round((_root.area * _root.enemylevel) * 6);
coins = Math.round((Math.random() * (varx * 5)) / 2) + 15;
_root.battleMessage = ("You won " + coins) + " halloween coins.";
_root.game.points = _root.game.points + coins;
_root.points = _root.game.points;
Symbol 751 MovieClip Frame 75
stop();
_root.fight_on = false;
Symbol 755 MovieClip Frame 21
_root.damageDealing = Math.round(((_root.enemypower * 2) + (_root.enemylevel * 2)) + (((_root.battlelevel * _root.area) * (Math.random() * _root.enemypower)) + 1)) + (5 * _root.battlelevel);
_root.damageDealing = Math.round(_root.damageDealing * 0.95);
_root.chardamager = _root.damageDealing * 2;
_root.currenthealth = _root.currenthealth - _root.chardamager;
_root.battleengine.character.gotoAndStop(2);
Symbol 755 MovieClip Frame 60
_root.chardamager = "";
_root.battleengine.selectbox.gotoAndStop(1);
_parent.gotoAndStop(1);
Symbol 756 MovieClip Frame 1
stop();
Symbol 765 MovieClip Frame 40
_parent.gotoAndStop(1);
Symbol 781 MovieClip Frame 33
_root.damageDealing = Math.round(((_root.enemypower * 2) + (_root.enemylevel * 2)) + (((_root.battlelevel * _root.area) * (Math.random() * _root.enemypower)) + 1)) + (5 * _root.battlelevel);
_root.chardamager = _root.damageDealing;
_root.currenthealth = _root.currenthealth - _root.chardamager;
_root.battleengine.character.gotoAndStop(2);
Symbol 781 MovieClip Frame 75
_root.chardamager = "";
_root.battleengine.selectbox.gotoAndStop(1);
_parent.gotoAndStop(1);
Symbol 793 MovieClip Frame 1
varx = Math.round((_root.area * _root.enemylevel) * 6);
coins = Math.round(Math.random() * (varx * 5)) + 15;
_root.battleMessage = ("You won " + coins) + " halloween coins.";
_root.game.points = _root.game.points + coins;
_root.points = _root.game.points;
Symbol 793 MovieClip Frame 70
stop();
_root.fight_on = false;
Symbol 810 MovieClip Frame 33
_root.damageDealing = Math.round(((_root.enemypower * 2) + (_root.enemylevel * 2)) + (((_root.battlelevel * _root.area) * (Math.random() * _root.enemypower)) + 1)) + (5 * _root.battlelevel);
_root.chardamager = _root.damageDealing * 2;
_root.currenthealth = _root.currenthealth - _root.chardamager;
_root.battleengine.character.gotoAndStop(2);
Symbol 810 MovieClip Frame 75
_root.chardamager = "";
_root.battleengine.selectbox.gotoAndStop(1);
_parent.gotoAndStop(1);
Symbol 811 MovieClip Frame 1
stop();
Symbol 814 MovieClip Frame 31
_parent.gotoAndStop(1);
Symbol 817 MovieClip Frame 31
_root.damageDealing = Math.round(((_root.enemypower * 2) + (_root.enemylevel * 2)) + (((_root.battlelevel * _root.area) * (Math.random() * _root.enemypower)) + 1)) + (5 * _root.battlelevel);
_root.damageDealing = Math.round(_root.damageDealing * 1.05);
_root.chardamager = _root.damageDealing;
_root.currenthealth = _root.currenthealth - _root.chardamager;
_root.battleengine.character.gotoAndStop(2);
Symbol 817 MovieClip Frame 60
_root.chardamager = "";
_root.battleengine.selectbox.gotoAndStop(1);
_parent.gotoAndStop(1);
Symbol 818 MovieClip Frame 1
varx = Math.round((_root.area * _root.enemylevel) * 6);
coins = Math.round((Math.random() * (varx * 5)) / 2) + 15;
_root.battleMessage = ("You won " + coins) + " halloween coins.";
_root.game.points = _root.game.points + coins;
_root.points = _root.game.points;
Symbol 818 MovieClip Frame 75
stop();
_root.fight_on = false;
Symbol 822 MovieClip Frame 30
_root.damageDealing = Math.round(((_root.enemypower * 2) + (_root.enemylevel * 2)) + (((_root.battlelevel * _root.area) * (Math.random() * _root.enemypower)) + 1)) + (5 * _root.battlelevel);
_root.damageDealing = Math.round(_root.damageDealing * 1.05);
_root.chardamager = _root.damageDealing * 2;
_root.currenthealth = _root.currenthealth - _root.chardamager;
_root.battleengine.character.gotoAndStop(2);
Symbol 822 MovieClip Frame 60
_root.chardamager = "";
_root.battleengine.selectbox.gotoAndStop(1);
_parent.gotoAndStop(1);
Symbol 823 MovieClip Frame 1
stop();
Symbol 828 MovieClip Frame 20
_parent.gotoAndStop(1);
Symbol 832 MovieClip Frame 41
_root.damageDealing = Math.round(((_root.enemypower * 2) + (_root.enemylevel * 2)) + (((_root.battlelevel * _root.area) * (Math.random() * _root.enemypower)) + 1)) + (5 * _root.battlelevel);
_root.damageDealing = Math.round(_root.damageDealing * 1.15);
_root.chardamager = _root.damageDealing;
_root.currenthealth = _root.currenthealth - _root.chardamager;
_root.battleengine.character.gotoAndStop(2);
Symbol 832 MovieClip Frame 75
_root.chardamager = "";
_root.battleengine.selectbox.gotoAndStop(1);
_parent.gotoAndStop(1);
Symbol 833 MovieClip Frame 1
varx = Math.round((_root.area * _root.enemylevel) * 8);
coins = Math.round((Math.random() * (varx * 5)) / 2) + 15;
_root.battleMessage = ("You won " + coins) + " halloween coins.";
_root.game.points = _root.game.points + coins;
_root.points = _root.game.points;
Symbol 833 MovieClip Frame 80
stop();
_root.fight_on = false;
Symbol 837 MovieClip Frame 41
_root.damageDealing = Math.round(((_root.enemypower * 2) + (_root.enemylevel * 2)) + (((_root.battlelevel * _root.area) * (Math.random() * _root.enemypower)) + 1)) + (5 * _root.battlelevel);
_root.damageDealing = Math.round(_root.damageDealing * 1.15);
_root.chardamager = _root.damageDealing * 2;
_root.currenthealth = _root.currenthealth - _root.chardamager;
_root.battleengine.character.gotoAndStop(2);
Symbol 837 MovieClip Frame 75
_root.chardamager = "";
_root.battleengine.selectbox.gotoAndStop(1);
_parent.gotoAndStop(1);
Symbol 838 MovieClip Frame 1
stop();
Symbol 845 MovieClip Frame 20
_parent.gotoAndStop(1);
Symbol 865 MovieClip Frame 82
_root.damageDealing = Math.round(((_root.enemypower * 2) + (_root.enemylevel * 2)) + (((_root.battlelevel * _root.area) * (Math.random() * _root.enemypower)) + 1)) + (5 * _root.battlelevel);
_root.damageDealing = Math.round(_root.damageDealing * 1.2);
_root.chardamager = _root.damageDealing;
_root.currenthealth = _root.currenthealth - _root.chardamager;
_root.battleengine.character.gotoAndStop(2);
Symbol 865 MovieClip Frame 140
_root.chardamager = "";
_root.battleengine.selectbox.gotoAndStop(1);
_parent.gotoAndStop(1);
Symbol 875 MovieClip Frame 1
varx = Math.round((_root.area * _root.enemylevel) * 6);
coins = Math.round((Math.random() * (varx * 5)) / 2) + 15;
_root.battleMessage = ("You won " + coins) + " halloween coins.";
_root.game.points = _root.game.points + coins;
_root.points = _root.game.points;
Symbol 875 MovieClip Frame 70
stop();
_root.fight_on = false;
Symbol 894 MovieClip Frame 84
_root.damageDealing = Math.round(((_root.enemypower * 2) + (_root.enemylevel * 2)) + (((_root.battlelevel * _root.area) * (Math.random() * _root.enemypower)) + 1)) + (5 * _root.battlelevel);
_root.damageDealing = Math.round(_root.damageDealing * 1.2);
_root.chardamager = _root.damageDealing * 2;
_root.currenthealth = _root.currenthealth - _root.chardamager;
_root.battleengine.character.gotoAndStop(2);
Symbol 894 MovieClip Frame 140
_root.chardamager = "";
_root.battleengine.selectbox.gotoAndStop(1);
_parent.gotoAndStop(1);
Symbol 895 MovieClip Frame 1
stop();
Symbol 901 MovieClip Frame 20
_parent.gotoAndStop(1);
Symbol 910 MovieClip Frame 82
_root.damageDealing = Math.round(((_root.enemypower * 2) + (_root.enemylevel * 2)) + (((_root.battlelevel * _root.area) * (Math.random() * _root.enemypower)) + 1)) + (5 * _root.battlelevel);
_root.damageDealing = Math.round(_root.damageDealing * 1.25);
_root.chardamager = _root.damageDealing;
_root.currenthealth = _root.currenthealth - _root.chardamager;
_root.battleengine.character.gotoAndStop(2);
Symbol 910 MovieClip Frame 140
_root.chardamager = "";
_root.battleengine.selectbox.gotoAndStop(1);
_parent.gotoAndStop(1);
Symbol 917 MovieClip Frame 1
varx = Math.round((_root.area * _root.enemylevel) * 6);
coins = Math.round((Math.random() * (varx * 5)) / 2) + 15;
_root.battleMessage = ("You won " + coins) + " halloween coins.";
_root.game.points = _root.game.points + coins;
_root.points = _root.game.points;
Symbol 917 MovieClip Frame 70
stop();
_root.fight_on = false;
Symbol 929 MovieClip Frame 84
_root.damageDealing = Math.round(((_root.enemypower * 2) + (_root.enemylevel * 2)) + (((_root.battlelevel * _root.area) * (Math.random() * _root.enemypower)) + 1)) + (5 * _root.battlelevel);
_root.damageDealing = Math.round(_root.damageDealing * 1.25);
_root.chardamager = _root.damageDealing * 2;
_root.currenthealth = _root.currenthealth - _root.chardamager;
_root.battleengine.character.gotoAndStop(2);
Symbol 929 MovieClip Frame 140
_root.chardamager = "";
_root.battleengine.selectbox.gotoAndStop(1);
_parent.gotoAndStop(1);
Symbol 930 MovieClip Frame 1
stop();
Symbol 950 MovieClip Frame 20
_parent.gotoAndStop(1);
Symbol 953 MovieClip Frame 41
_root.damageDealing = Math.round(((_root.enemypower * 2) + (_root.enemylevel * 2)) + (((_root.battlelevel * _root.area) * (Math.random() * _root.enemypower)) + 1)) + (5 * _root.battlelevel);
_root.damageDealing = Math.round(_root.damageDealing * 1.4);
_root.chardamager = _root.damageDealing;
_root.currenthealth = _root.currenthealth - _root.chardamager;
_root.battleengine.character.gotoAndStop(2);
Symbol 953 MovieClip Frame 80
_root.chardamager = "";
_root.battleengine.selectbox.gotoAndStop(1);
_parent.gotoAndStop(1);
Symbol 954 MovieClip Frame 1
varx = Math.round((_root.area * _root.enemylevel) * 6);
coins = Math.round((Math.random() * (varx * 5)) / 2) + 15;
_root.battleMessage = ("You won " + coins) + " halloween coins.";
_root.game.points = _root.game.points + coins;
_root.points = _root.game.points;
Symbol 954 MovieClip Frame 51
stop();
_root.fight_on = false;
Symbol 958 MovieClip Frame 38
_root.damageDealing = Math.round(((_root.enemypower * 2) + (_root.enemylevel * 2)) + (((_root.battlelevel * _root.area) * (Math.random() * _root.enemypower)) + 1)) + (5 * _root.battlelevel);
_root.damageDealing = Math.round(_root.damageDealing * 1.4);
_root.chardamager = _root.damageDealing * 2;
_root.currenthealth = _root.currenthealth - _root.chardamager;
_root.battleengine.character.gotoAndStop(2);
Symbol 958 MovieClip Frame 80
_root.chardamager = "";
_root.battleengine.selectbox.gotoAndStop(1);
_parent.gotoAndStop(1);
Symbol 959 MovieClip Frame 1
stop();
Symbol 963 MovieClip Frame 20
_parent.gotoAndStop(1);
Symbol 975 MovieClip Frame 48
_root.damageDealing = Math.round(((_root.enemypower * 2) + (_root.enemylevel * 2)) + (((_root.battlelevel * _root.area) * (Math.random() * _root.enemypower)) + 1)) + (5 * _root.battlelevel);
_root.damageDealing = Math.round(_root.damageDealing * 1.4);
_root.chardamager = _root.damageDealing;
_root.currenthealth = _root.currenthealth - _root.chardamager;
_root.battleengine.character.gotoAndStop(2);
Symbol 975 MovieClip Frame 90
_root.chardamager = "";
_root.battleengine.selectbox.gotoAndStop(1);
_parent.gotoAndStop(1);
Symbol 976 MovieClip Frame 1
varx = Math.round((_root.area * _root.enemylevel) * 6);
coins = Math.round((Math.random() * (varx * 5)) / 2) + 15;
_root.battleMessage = ("You won " + coins) + " halloween coins.";
_root.game.points = _root.game.points + coins;
_root.points = _root.game.points;
Symbol 976 MovieClip Frame 210
stop();
_root.fight_on = false;
_root.actfades.gotoAndStop(2);
Symbol 988 MovieClip Frame 48
_root.damageDealing = Math.round(((_root.enemypower * 2) + (_root.enemylevel * 2)) + (((_root.battlelevel * _root.area) * (Math.random() * _root.enemypower)) + 1)) + (5 * _root.battlelevel);
_root.damageDealing = Math.round(_root.damageDealing * 1.4);
_root.chardamager = _root.damageDealing * 2;
_root.currenthealth = _root.currenthealth - _root.chardamager;
_root.battleengine.character.gotoAndStop(2);
Symbol 988 MovieClip Frame 90
_root.chardamager = "";
_root.battleengine.selectbox.gotoAndStop(1);
_parent.gotoAndStop(1);
Symbol 989 MovieClip Frame 1
stop();
Symbol 993 MovieClip Frame 20
_parent.gotoAndStop(1);
Symbol 1002 MovieClip Frame 48
_root.damageDealing = Math.round(((_root.enemypower * 2) + (_root.enemylevel * 2)) + (((_root.battlelevel * _root.area) * (Math.random() * _root.enemypower)) + 1)) + (5 * _root.battlelevel);
_root.damageDealing = Math.round(_root.damageDealing * 1.4);
_root.chardamager = _root.damageDealing;
_root.currenthealth = _root.currenthealth - _root.chardamager;
_root.battleengine.character.gotoAndStop(2);
Symbol 1002 MovieClip Frame 90
_root.chardamager = "";
_root.battleengine.selectbox.gotoAndStop(1);
_parent.gotoAndStop(1);
Symbol 1003 MovieClip Frame 1
varx = Math.round(_root.area * (_root.enemylevel * 12));
coins = Math.round((Math.random() * (varx * 5)) / 1.5) + 25;
_root.battleMessage = ("You won " + coins) + " halloween coins.";
_root.game.points = _root.game.points + coins;
_root.points = _root.game.points;
Symbol 1003 MovieClip Frame 210
stop();
_root.fight_on = false;
_root.actfades.gotoAndStop(3);
Symbol 1015 MovieClip Frame 48
_root.damageDealing = Math.round(((_root.enemypower * 2) + (_root.enemylevel * 2)) + (((_root.battlelevel * _root.area) * (Math.random() * _root.enemypower)) + 1)) + (5 * _root.battlelevel);
_root.damageDealing = Math.round(_root.damageDealing * 1.4);
_root.chardamager = _root.damageDealing * 2;
_root.currenthealth = _root.currenthealth - _root.chardamager;
_root.battleengine.character.gotoAndStop(2);
Symbol 1015 MovieClip Frame 90
_root.chardamager = "";
_root.battleengine.selectbox.gotoAndStop(1);
_parent.gotoAndStop(1);
Symbol 1016 MovieClip Frame 1
stop();
Symbol 1020 MovieClip Frame 20
_parent.gotoAndStop(1);
Symbol 1030 MovieClip Frame 48
_root.damageDealing = Math.round(((_root.enemypower * 2) + (_root.enemylevel * 2)) + (((_root.battlelevel * _root.area) * (Math.random() * _root.enemypower)) + 1)) + (5 * _root.battlelevel);
_root.damageDealing = Math.round(_root.damageDealing * 1.4);
_root.chardamager = _root.damageDealing;
_root.currenthealth = _root.currenthealth - _root.chardamager;
_root.battleengine.character.gotoAndStop(2);
Symbol 1030 MovieClip Frame 90
_root.chardamager = "";
_root.battleengine.selectbox.gotoAndStop(1);
_parent.gotoAndStop(1);
Symbol 1031 MovieClip Frame 210
stop();
_root.fight_on = false;
_root.actfades.gotoAndStop(4);
Symbol 1043 MovieClip Frame 48
_root.damageDealing = Math.round(((_root.enemypower * 2) + (_root.enemylevel * 2)) + (((_root.battlelevel * _root.area) * (Math.random() * _root.enemypower)) + 1)) + (5 * _root.battlelevel);
_root.damageDealing = Math.round(_root.damageDealing * 1.4);
_root.chardamager = _root.damageDealing * 2;
_root.currenthealth = _root.currenthealth - _root.chardamager;
_root.battleengine.character.gotoAndStop(2);
Symbol 1043 MovieClip Frame 90
_root.chardamager = "";
_root.battleengine.selectbox.gotoAndStop(1);
_parent.gotoAndStop(1);
Symbol 1044 MovieClip Frame 1
stop();
Symbol 1062 MovieClip Frame 20
_parent.gotoAndStop(1);
Symbol 1067 MovieClip Frame 27
_root.damageDealing = Math.round(((_root.enemypower * 2) + (_root.enemylevel * 2)) + (((_root.battlelevel * _root.area) * (Math.random() * _root.enemypower)) + 1)) + (5 * _root.battlelevel);
_root.damageDealing = Math.round(_root.damageDealing * 1.4);
_root.chardamager = _root.damageDealing;
_root.currenthealth = _root.currenthealth - _root.chardamager;
_root.battleengine.character.gotoAndStop(2);
Symbol 1067 MovieClip Frame 50
_root.chardamager = "";
_root.battleengine.selectbox.gotoAndStop(1);
_parent.gotoAndStop(1);
Symbol 1068 MovieClip Frame 360
_root.endaction = 2;
_root.nextFrame();
stop();
Symbol 1073 MovieClip Frame 30
_root.damageDealing = Math.round(((_root.enemypower * 2) + (_root.enemylevel * 2)) + (((_root.battlelevel * _root.area) * (Math.random() * _root.enemypower)) + 1)) + (5 * _root.battlelevel);
_root.damageDealing = Math.round(_root.damageDealing * 1.65);
_root.chardamager = _root.damageDealing;
_root.currenthealth = _root.currenthealth - _root.chardamager;
_root.battleengine.character.gotoAndStop(2);
Symbol 1073 MovieClip Frame 83
_root.chardamager = "";
_root.battleengine.selectbox.gotoAndStop(1);
_parent.gotoAndStop(1);
Symbol 1078 MovieClip Frame 24
_root.damageDealing = Math.round(((_root.enemypower * 2) + (_root.enemylevel * 2)) + (((_root.battlelevel * _root.area) * (Math.random() * _root.enemypower)) + 1)) + (5 * _root.battlelevel);
_root.damageDealing = Math.round(_root.damageDealing * 1.4);
_root.chardamager = _root.damageDealing * 2;
_root.currenthealth = _root.currenthealth - _root.chardamager;
_root.battleengine.character.gotoAndStop(2);
Symbol 1078 MovieClip Frame 50
_root.chardamager = "";
_root.battleengine.selectbox.gotoAndStop(1);
_parent.gotoAndStop(1);
Symbol 1083 MovieClip Frame 31
_root.damageDealing = Math.round(((_root.enemypower * 2) + (_root.enemylevel * 2)) + (((_root.battlelevel * _root.area) * (Math.random() * _root.enemypower)) + 1)) + (5 * _root.battlelevel);
_root.damageDealing = Math.round(_root.damageDealing * 1.65);
_root.chardamager = _root.damageDealing * 2;
_root.currenthealth = _root.currenthealth - _root.chardamager;
_root.battleengine.character.gotoAndStop(2);
Symbol 1083 MovieClip Frame 83
_root.chardamager = "";
_root.battleengine.selectbox.gotoAndStop(1);
_parent.gotoAndStop(1);
Symbol 1084 MovieClip Frame 1
stop();
Symbol 1085 MovieClip Frame 1
stop();
Symbol 1108 Button
on (release) {
if (_root.fight_on == true) {
if (_root.enemynumber > 7) {
_root.battleMessage = "Escape Failed.";
randomizer = Math.round((Math.random() * 5) + 1);
if (randomizer == 3) {
_root.battleengine.enemy.inside.gotoAndStop(5);
} else {
_root.battleengine.enemy.inside.gotoAndStop(3);
}
} else {
escaper = Math.round(Math.random() + 1);
if (escaper == 1) {
_root.battleMessage = "Escape Failed.";
randomizer = Math.round((Math.random() * 5) + 1);
if (randomizer == 3) {
_root.battleengine.enemy.inside.gotoAndStop(5);
} else {
_root.battleengine.enemy.inside.gotoAndStop(3);
}
gotoAndStop (5);
}
if (escaper == 2) {
_root.battleMessage = "Escape Succes.";
_root.fight_on = false;
}
}
}
}
Symbol 1109 Button
on (release) {
if (_root.fight_on == true) {
nextFrame();
}
}
Symbol 1110 Button
on (release) {
if (_root.fight_on == true) {
_root.battleengine.character.gotoAndStop(5);
gotoAndStop (5);
_root.battleMessage = "You do a magical attack.";
}
}
Symbol 1111 Button
on (release) {
if (_root.fight_on == true) {
_root.battleengine.character.gotoAndStop(4);
gotoAndStop (5);
_root.battleMessage = "You do a physical attack.";
}
}
Symbol 1116 Button
on (release) {
nextFrame();
}
Symbol 1117 Button
on (release) {
if (_root.fight_on == true) {
if (_root.skill3 == true) {
if (_root.currentenergy >= 75) {
_root.cast = 3;
_root.battleMessage = "You use a haunted attack.";
_root.battleengine.character.gotoAndStop(10);
_root.currentenergy = _root.currentenergy - 75;
gotoAndStop (5);
} else {
_root.battleMessage = "You don't have enough energy.";
}
} else {
_root.battleMessage = "You have not learned that skill yet.";
}
}
}
Symbol 1118 Button
on (release) {
if (_root.fight_on == true) {
if (_root.skill2 == true) {
if (_root.currentenergy >= 45) {
_root.cast = 2;
_root.battleMessage = "You use the cross slash attack.";
_root.battleengine.character.gotoAndStop(9);
_root.currentenergy = _root.currentenergy - 45;
gotoAndStop (5);
} else {
_root.battleMessage = "You don't have enough energy.";
}
} else {
_root.battleMessage = "You have not learned that skill yet.";
}
}
}
Symbol 1119 Button
on (release) {
if (_root.fight_on == true) {
if (_root.skill1 == true) {
if (_root.currentenergy >= 20) {
_root.cast = 1;
_root.battleMessage = "You use a combo attack.";
_root.battleengine.character.gotoAndStop(7);
_root.currentenergy = _root.currentenergy - 20;
gotoAndStop (5);
} else {
_root.battleMessage = "You don't have enough energy.";
}
} else {
_root.battleMessage = "You have not learned that skill yet.";
}
}
}
Symbol 1123 Button
on (release) {
if (_root.skill6 == true) {
if (_root.currentenergy >= 55) {
_root.cast = 6;
_root.battleMessage = "You concentrate on your defence.";
_root.battleengine.character.gotoAndStop(6);
_root.currentenergy = _root.currentenergy - 55;
gotoAndStop (5);
} else {
_root.battleMessage = "You don't have enough energy.";
}
} else {
_root.battleMessage = "You have not learned that skill yet.";
}
}
Symbol 1124 Button
on (release) {
if (_root.skill5 == true) {
if (_root.currentenergy >= 55) {
_root.cast = 5;
_root.battleMessage = "You recover some damage.";
_root.battleengine.character.gotoAndStop(6);
_root.currentenergy = _root.currentenergy - 55;
gotoAndStop (5);
} else {
_root.battleMessage = "You don't have enough energy.";
}
} else {
_root.battleMessage = "You have not learned that skill yet.";
}
}
Symbol 1125 Button
on (release) {
if (_root.skill4 == true) {
if (_root.currentenergy >= 55) {
_root.cast = 4;
_root.battleMessage = "You concentrate your power.";
_root.battleengine.character.gotoAndStop(6);
_root.currentenergy = _root.currentenergy - 55;
gotoAndStop (5);
} else {
_root.battleMessage = "You don't have enough energy.";
}
} else {
_root.battleMessage = "You have not learned that skill yet.";
}
}
Symbol 1130 Button
on (release) {
gotoAndStop (1);
}
Symbol 1131 Button
on (release) {
if (_root.skill9 == true) {
if (_root.currentenergy >= 200) {
_root.cast = 15;
_root.battleMessage = "Overdrive attack!.";
_root.battleengine.character.gotoAndStop(13);
_root.currentenergy = _root.currentenergy - 200;
gotoAndStop (5);
} else {
_root.battleMessage = "You don't have enough energy.";
}
} else {
_root.battleMessage = "You have not learned that skill yet.";
}
}
Symbol 1132 Button
on (release) {
if (_root.skill8 == true) {
if (_root.currentenergy >= 175) {
_root.cast = 8;
_root.battleMessage = "Limit attack!.";
_root.battleengine.character.gotoAndStop(12);
_root.currentenergy = _root.currentenergy - 175;
gotoAndStop (5);
} else {
_root.battleMessage = "You don't have enough energy.";
}
} else {
_root.battleMessage = "You have not learned that skill yet.";
}
}
Symbol 1133 Button
on (release) {
if (_root.skill7 == true) {
if (_root.currentenergy >= 150) {
_root.cast = 7;
_root.battleMessage = "You do your maximum attack!.";
_root.battleengine.character.gotoAndStop(11);
_root.currentenergy = _root.currentenergy - 150;
gotoAndStop (5);
} else {
_root.battleMessage = "You don't have enough energy.";
}
} else {
_root.battleMessage = "You have not learned that skill yet.";
}
}
Symbol 1137 MovieClip Frame 1
stop();
Symbol 1139 MovieClip Frame 35
stop();
Instance of Symbol 645 MovieClip in Symbol 1140 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(_root.area);
}
onClipEvent (load) {
this.cacheAsBitmap = true;
}
Instance of Symbol 712 MovieClip "character" in Symbol 1140 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.fight_on == true) {
_root.healthvar = ((("" + _root.currenthealth) + "/") + _root.maxhealth) + "";
_root.energyvar = ((("" + _root.currentenergy) + "/") + _root.maxenergy) + "";
if (_root.currenthealth < 1) {
this.gotoAndStop(3);
_root.battleengine.selectbox.gotoAndStop(5);
}
}
}
Instance of Symbol 1085 MovieClip "enemy" in Symbol 1140 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.fight_on == true) {
this.gotoAndStop(_root.enemynumber);
}
}
Instance of Symbol 1091 MovieClip in Symbol 1140 MovieClip Frame 1
onClipEvent (load) {
this.cacheAsBitmap = true;
}
Instance of Symbol 1205 MovieClip in Symbol 1206 MovieClip Frame 1
onClipEvent (load) {
this.cacheAsBitmap = true;
}
Symbol 1220 MovieClip Frame 2
stop();
Symbol 1221 MovieClip Frame 1
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(95);
Instance of Symbol 1157 MovieClip in Symbol 1221 MovieClip Frame 1
onClipEvent (load) {
this.cacheAsBitmap = true;
}
Instance of Symbol 1159 MovieClip in Symbol 1221 MovieClip Frame 1
onClipEvent (load) {
this.cacheAsBitmap = true;
}
Symbol 1221 MovieClip Frame 2
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(90);
Symbol 1221 MovieClip Frame 3
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(85);
Symbol 1221 MovieClip Frame 4
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(80);
Symbol 1221 MovieClip Frame 5
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(75);
Symbol 1221 MovieClip Frame 6
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(70);
Symbol 1221 MovieClip Frame 7
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(65);
Symbol 1221 MovieClip Frame 8
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(60);
Symbol 1221 MovieClip Frame 9
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(55);
Symbol 1221 MovieClip Frame 10
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(50);
Symbol 1221 MovieClip Frame 11
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(45);
Symbol 1221 MovieClip Frame 12
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(40);
Symbol 1221 MovieClip Frame 13
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(35);
Symbol 1221 MovieClip Frame 14
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(30);
Symbol 1221 MovieClip Frame 15
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(25);
Symbol 1221 MovieClip Frame 16
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(20);
Symbol 1221 MovieClip Frame 17
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(15);
Symbol 1221 MovieClip Frame 18
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(10);
Symbol 1221 MovieClip Frame 19
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(5);
Symbol 1221 MovieClip Frame 20
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(0);
stopAllSounds();
Symbol 1221 MovieClip Frame 21
nosound = new Sound();
nosound.attachSound("nosound");
nosound.start();
nosound.setVolume(100);
_root.musicmatch.gotoAndStop(1);
Instance of Symbol 1176 MovieClip in Symbol 1221 MovieClip Frame 115
onClipEvent (load) {
this.cacheAsBitmap = true;
}
Instance of Symbol 1198 MovieClip in Symbol 1221 MovieClip Frame 152
onClipEvent (load) {
this.cacheAsBitmap = true;
}
Instance of Symbol 1200 MovieClip in Symbol 1221 MovieClip Frame 169
onClipEvent (load) {
this.cacheAsBitmap = true;
}
Instance of Symbol 1200 MovieClip in Symbol 1221 MovieClip Frame 333
onClipEvent (load) {
this.cacheAsBitmap = true;
}
Instance of Symbol 1203 MovieClip in Symbol 1221 MovieClip Frame 354
onClipEvent (load) {
this.cacheAsBitmap = true;
}
Instance of Symbol 1210 MovieClip in Symbol 1221 MovieClip Frame 610
onClipEvent (load) {
this.cacheAsBitmap = true;
}
Instance of Symbol 1212 MovieClip in Symbol 1221 MovieClip Frame 610
onClipEvent (load) {
this.cacheAsBitmap = true;
}
Symbol 1221 MovieClip Frame 921
_root.nextFrame();
Symbol 1269 MovieClip Frame 3784
_root.nextFrame();
Symbol 1273 Button
on (release) {
gotoAndStop (290);
}
Symbol 1276 Button
on (release) {
nextFrame();
}
Symbol 1281 Button
on (release) {
prevFrame();
}
Symbol 1312 Button
on (release) {
gotoAndStop (290);
}