Frame 1
Playtomic.Log.View(2954, "ccafc1ecd7d341de", _root._url);
fscommand ("allowscale", false);
Stage.showMenu = false;
_global.mute = false;
_global.quality = "high";
_global.gibsOnScreen = 0;
_global.slot = 0;
camera.gotoAndStop(2);
camera.swapDepths(9999);
pointer.swapDepths(99999);
Mouse.hide();
startDrag (pointer, true);
stop();
Frame 2
stop();
alice.removeMovieClip();
camera.gotoAndStop(2);
camera._x = 321.8;
camera._y = 208;
camera.swapDepths(9999);
pointer.swapDepths(99999);
Mouse.hide();
startDrag (pointer, true);
Frame 3
function saveData() {
if (_global.slot == 1) {
slot_1 = SharedObject.getLocal("slot_1", "/");
slot_1.data.heldGibs = _global.heldGibs;
slot_1.data.lives = _global.lives;
slot_1.data.health = _global.health;
slot_1.data.mana = _global.mana;
slot_1.data.healthPacks = _global.healthPacks;
slot_1.data.heldGrenades = _global.heldGrenades;
slot_1.data.manaPots = _global.manaPots;
slot_1.data.heldCrosses = _global.heldCrosses;
slot_1.data.heldCrossbows = _global.heldCrossbows;
slot_1.data.maxHealth = _global.maxHealth;
slot_1.data.maxMana = _global.maxMana;
slot_1.data.healAmount = _global.healAmount;
slot_1.data.manaAmount = _global.manaAmount;
slot_1.data.goreMultiplier = _global.goreMultiplier;
slot_1.data.longCross = _global.longCross;
slot_1.data.incendiary = _global.incendiary;
slot_1.data.silver = _global.silver;
slot_1.data.sureShot = _global.sureShot;
slot_1.data.pyro = _global.pyro;
slot_1.data.batDam1 = _global.batDam1;
slot_1.data.batDam2 = _global.batDam2;
slot_1.data.katDam1 = _global.katDam1;
slot_1.data.katDam2 = _global.katDam2;
slot_1.data.stakeDam1 = _global.stakeDam1;
slot_1.data.stakeDam2 = _global.stakeDam2;
slot_1.data.batSpe = _global.batSpe;
slot_1.data.katSpe = _global.katSpe;
slot_1.data.stakeSpe = _global.stakeSpe;
slot_1.data.mag2 = _global.mag2;
slot_1.data.mag3 = _global.mag3;
slot_1.data.mag4 = _global.mag4;
slot_1.data.mag5 = _global.mag5;
slot_1.data.mag1addon = _global.mag1addon;
slot_1.data.mag2addon = _global.mag2addon;
slot_1.data.mag3addon = _global.mag3addon;
slot_1.data.mag4addon = _global.mag4addon;
slot_1.data.mag5addon = _global.mag5addon;
slot_1.data.batCutSlimes = _global.batCutSlimes;
slot_1.data.stakeCutSlimes = _global.stakeCutSlimes;
slot_1.data.batOneFat = _global.batOneFat;
slot_1.data.batOneFat = _global.katOneVamp;
slot_1.data.stakeOneVamp = _global.stakeOneVamp;
slot_1.data.stakeOneWere = _global.stakeOneWere;
slot_1.data.perk0 = _global.perk0;
slot_1.data.perk1 = _global.perk1;
slot_1.data.perk2 = _global.perk2;
slot_1.data.perk3 = _global.perk3;
slot_1.data.perk4 = _global.perk4;
slot_1.data.perk5 = _global.perk5;
slot_1.data.perk6 = _global.perk6;
slot_1.data.perk7 = _global.perk7;
slot_1.data.perk8 = _global.perk8;
slot_1.data.perk9 = _global.perk9;
slot_1.data.perk10 = _global.perk10;
slot_1.data.lev1unlock = _global.lev1unlock;
slot_1.data.lev2unlock = _global.lev2unlock;
slot_1.data.lev3unlock = _global.lev3unlock;
slot_1.data.shopunlock = _global.shopunlock;
slot_1.data.lev1just = _global.lev1just;
slot_1.data.lev2just = _global.lev2just;
slot_1.data.lev3just = _global.lev3just;
slot_1.data.shopjust = _global.shopjust;
slot_1.data.ach1 = _global.ach1;
slot_1.data.ach2 = _global.ach2;
slot_1.data.ach3 = _global.ach3;
slot_1.data.ach4 = _global.ach4;
slot_1.data.ach5 = _global.ach5;
slot_1.data.ach6 = _global.ach6;
slot_1.data.ach7 = _global.ach7;
slot_1.data.ach8 = _global.ach8;
slot_1.data.ach9 = _global.ach9;
slot_1.data.ach10 = _global.ach10;
slot_1.data.ach11 = _global.ach11;
slot_1.data.ach12 = _global.ach12;
slot_1.data.ach13 = _global.ach13;
slot_1.data.ach14 = _global.ach14;
slot_1.data.ach15 = _global.ach15;
slot_1.data.zombiesKilled = _global.zombiesKilled;
slot_1.data.werewolvesKilled = _global.werewolvesKilled;
slot_1.data.vampiresKilled = _global.vampiresKilled;
slot_1.flush();
}
if (_global.slot == 2) {
slot_2 = SharedObject.getLocal("slot_2", "/");
slot_2.data.heldGibs = _global.heldGibs;
slot_2.data.lives = _global.lives;
slot_2.data.health = _global.health;
slot_2.data.mana = _global.mana;
slot_2.data.healthPacks = _global.healthPacks;
slot_2.data.heldGrenades = _global.heldGrenades;
slot_2.data.manaPots = _global.manaPots;
slot_2.data.heldCrosses = _global.heldCrosses;
slot_2.data.heldCrossbows = _global.heldCrossbows;
slot_2.data.maxHealth = _global.maxHealth;
slot_2.data.maxMana = _global.maxMana;
slot_2.data.healAmount = _global.healAmount;
slot_2.data.manaAmount = _global.manaAmount;
slot_2.data.goreMultiplier = _global.goreMultiplier;
slot_2.data.longCross = _global.longCross;
slot_2.data.incendiary = _global.incendiary;
slot_2.data.silver = _global.silver;
slot_2.data.sureShot = _global.sureShot;
slot_2.data.pyro = _global.pyro;
slot_2.data.batDam1 = _global.batDam1;
slot_2.data.batDam2 = _global.batDam2;
slot_2.data.katDam1 = _global.katDam1;
slot_2.data.katDam2 = _global.katDam2;
slot_2.data.stakeDam1 = _global.stakeDam1;
slot_2.data.stakeDam2 = _global.stakeDam2;
slot_2.data.batSpe = _global.batSpe;
slot_2.data.katSpe = _global.katSpe;
slot_2.data.stakeSpe = _global.stakeSpe;
slot_2.data.mag2 = _global.mag2;
slot_2.data.mag3 = _global.mag3;
slot_2.data.mag4 = _global.mag4;
slot_2.data.mag5 = _global.mag5;
slot_2.data.mag1addon = _global.mag1addon;
slot_2.data.mag2addon = _global.mag2addon;
slot_2.data.mag3addon = _global.mag3addon;
slot_2.data.mag4addon = _global.mag4addon;
slot_2.data.mag5addon = _global.mag5addon;
slot_2.data.batCutSlimes = _global.batCutSlimes;
slot_2.data.stakeCutSlimes = _global.stakeCutSlimes;
slot_2.data.batOneFat = _global.batOneFat;
slot_2.data.batOneFat = _global.katOneVamp;
slot_2.data.stakeOneVamp = _global.stakeOneVamp;
slot_2.data.stakeOneWere = _global.stakeOneWere;
slot_2.data.perk0 = _global.perk0;
slot_2.data.perk1 = _global.perk1;
slot_2.data.perk2 = _global.perk2;
slot_2.data.perk3 = _global.perk3;
slot_2.data.perk4 = _global.perk4;
slot_2.data.perk5 = _global.perk5;
slot_2.data.perk6 = _global.perk6;
slot_2.data.perk7 = _global.perk7;
slot_2.data.perk8 = _global.perk8;
slot_2.data.perk9 = _global.perk9;
slot_2.data.perk10 = _global.perk10;
slot_2.data.lev1unlock = _global.lev1unlock;
slot_2.data.lev2unlock = _global.lev2unlock;
slot_2.data.lev3unlock = _global.lev3unlock;
slot_2.data.shopunlock = _global.shopunlock;
slot_2.data.lev1just = _global.lev1just;
slot_2.data.lev2just = _global.lev2just;
slot_2.data.lev3just = _global.lev3just;
slot_2.data.shopjust = _global.shopjust;
slot_2.data.ach1 = _global.ach1;
slot_2.data.ach2 = _global.ach2;
slot_2.data.ach3 = _global.ach3;
slot_2.data.ach4 = _global.ach4;
slot_2.data.ach5 = _global.ach5;
slot_2.data.ach6 = _global.ach6;
slot_2.data.ach7 = _global.ach7;
slot_2.data.ach8 = _global.ach8;
slot_2.data.ach9 = _global.ach9;
slot_2.data.ach10 = _global.ach10;
slot_2.data.ach11 = _global.ach11;
slot_2.data.ach12 = _global.ach12;
slot_2.data.ach13 = _global.ach13;
slot_2.data.ach14 = _global.ach14;
slot_2.data.ach15 = _global.ach15;
slot_2.data.zombiesKilled = _global.zombiesKilled;
slot_2.data.werewolvesKilled = _global.werewolvesKilled;
slot_2.data.vampiresKilled = _global.vampiresKilled;
slot_2.flush();
}
if (_global.slot == 3) {
slot_3 = SharedObject.getLocal("slot_3", "/");
slot_3.data.heldGibs = _global.heldGibs;
slot_3.data.lives = _global.lives;
slot_3.data.health = _global.health;
slot_3.data.mana = _global.mana;
slot_3.data.healthPacks = _global.healthPacks;
slot_3.data.heldGrenades = _global.heldGrenades;
slot_3.data.manaPots = _global.manaPots;
slot_3.data.heldCrosses = _global.heldCrosses;
slot_3.data.heldCrossbows = _global.heldCrossbows;
slot_3.data.maxHealth = _global.maxHealth;
slot_3.data.maxMana = _global.maxMana;
slot_3.data.healAmount = _global.healAmount;
slot_3.data.manaAmount = _global.manaAmount;
slot_3.data.goreMultiplier = _global.goreMultiplier;
slot_3.data.longCross = _global.longCross;
slot_3.data.incendiary = _global.incendiary;
slot_3.data.silver = _global.silver;
slot_3.data.sureShot = _global.sureShot;
slot_3.data.pyro = _global.pyro;
slot_3.data.batDam1 = _global.batDam1;
slot_3.data.batDam2 = _global.batDam2;
slot_3.data.katDam1 = _global.katDam1;
slot_3.data.katDam2 = _global.katDam2;
slot_3.data.stakeDam1 = _global.stakeDam1;
slot_3.data.stakeDam2 = _global.stakeDam2;
slot_3.data.batSpe = _global.batSpe;
slot_3.data.katSpe = _global.katSpe;
slot_3.data.stakeSpe = _global.stakeSpe;
slot_3.data.mag2 = _global.mag2;
slot_3.data.mag3 = _global.mag3;
slot_3.data.mag4 = _global.mag4;
slot_3.data.mag5 = _global.mag5;
slot_3.data.mag1addon = _global.mag1addon;
slot_3.data.mag2addon = _global.mag2addon;
slot_3.data.mag3addon = _global.mag3addon;
slot_3.data.mag4addon = _global.mag4addon;
slot_3.data.mag5addon = _global.mag5addon;
slot_3.data.batCutSlimes = _global.batCutSlimes;
slot_3.data.stakeCutSlimes = _global.stakeCutSlimes;
slot_3.data.batOneFat = _global.batOneFat;
slot_3.data.batOneFat = _global.katOneVamp;
slot_3.data.stakeOneVamp = _global.stakeOneVamp;
slot_3.data.stakeOneWere = _global.stakeOneWere;
slot_3.data.perk0 = _global.perk0;
slot_3.data.perk1 = _global.perk1;
slot_3.data.perk2 = _global.perk2;
slot_3.data.perk3 = _global.perk3;
slot_3.data.perk4 = _global.perk4;
slot_3.data.perk5 = _global.perk5;
slot_3.data.perk6 = _global.perk6;
slot_3.data.perk7 = _global.perk7;
slot_3.data.perk8 = _global.perk8;
slot_3.data.perk9 = _global.perk9;
slot_3.data.perk10 = _global.perk10;
slot_3.data.lev1unlock = _global.lev1unlock;
slot_3.data.lev2unlock = _global.lev2unlock;
slot_3.data.lev3unlock = _global.lev3unlock;
slot_3.data.shopunlock = _global.shopunlock;
slot_3.data.lev1just = _global.lev1just;
slot_3.data.lev2just = _global.lev2just;
slot_3.data.lev3just = _global.lev3just;
slot_3.data.shopjust = _global.shopjust;
slot_3.data.ach1 = _global.ach1;
slot_3.data.ach2 = _global.ach2;
slot_3.data.ach3 = _global.ach3;
slot_3.data.ach4 = _global.ach4;
slot_3.data.ach5 = _global.ach5;
slot_3.data.ach6 = _global.ach6;
slot_3.data.ach7 = _global.ach7;
slot_3.data.ach8 = _global.ach8;
slot_3.data.ach9 = _global.ach9;
slot_3.data.ach10 = _global.ach10;
slot_3.data.ach11 = _global.ach11;
slot_3.data.ach12 = _global.ach12;
slot_3.data.ach13 = _global.ach13;
slot_3.data.ach14 = _global.ach14;
slot_3.data.ach15 = _global.ach15;
slot_3.data.zombiesKilled = _global.zombiesKilled;
slot_3.data.werewolvesKilled = _global.werewolvesKilled;
slot_3.data.vampiresKilled = _global.vampiresKilled;
slot_3.flush();
}
}
stop();
stopAllSounds();
musicSound = new Sound(this);
musicSound.attachSound("Nebula");
musicSound.start(0, 999);
var index = 0;
var counter = 25;
var targetX = 150;
var doOnce = true;
alice.removeMovieClip();
camera.gotoAndStop(2);
camera._x = 321.8;
camera._y = 208;
camera.swapDepths(9999);
pointer.swapDepths(99999);
blackout0.swapDepths(10000);
Mouse.hide();
startDrag (pointer, true);
if (_global.lev1unlock && (!_global.lev1just)) {
sel.select.one.gotoAndStop(2);
}
if (_global.lev2unlock && (!_global.lev2just)) {
sel.select.two.gotoAndStop(2);
}
if (_global.lev3unlock && (!_global.lev3just)) {
sel.select.three.gotoAndStop(2);
}
if (_global.shopunlock && (!_global.shopjust)) {
sel.select.shop.gotoAndStop(2);
}
if (_global.shopjust) {
targetX = -110;
index = 2;
} else if (_global.lev1just) {
targetX = -380;
index = 2;
} else if (_global.lev2just) {
targetX = -780;
index = 3;
} else if (_global.lev3just) {
targetX = -1180;
index = 4;
} else {
targetX = 150;
index = 0;
}
this.onEnterFrame = function () {
if (doOnce) {
doOnce = false;
saveData();
counter = 25;
}
if (_global.shopjust && (sel.select._x == -110)) {
sel.select.shop.gotoAndStop(3);
}
if (_global.lev1just && (sel.select._x == -380)) {
sel.select.one.gotoAndStop(3);
}
if (_global.lev2just && (sel.select._x == -780)) {
sel.select.two.gotoAndStop(3);
}
if (_global.lev3just && (sel.select._x == -1180)) {
sel.select.three.gotoAndStop(3);
}
if (counter > 0) {
counter--;
}
if (sel.select._x < targetX) {
sel.select._x = sel.select._x + 10;
}
if (sel.select._x > targetX) {
sel.select._x = sel.select._x - 10;
}
if ((Key.isDown(37) && (counter == 0)) && (_root._currentframe == 3)) {
counter = 10;
index--;
if (index == -1) {
index = 0;
}
if (index == 0) {
targetX = 150;
}
if (index == 1) {
targetX = -110;
}
if (index == 2) {
targetX = -380;
}
if (index == 3) {
targetX = -780;
}
if (index == 4) {
targetX = -1180;
}
}
if ((Key.isDown(39) && (counter == 0)) && (_root._currentframe == 3)) {
counter = 10;
index++;
if (index == 5) {
index = 4;
}
if (index == 0) {
targetX = 150;
}
if (index == 1) {
targetX = -110;
}
if (index == 2) {
targetX = -380;
}
if (index == 3) {
targetX = -780;
}
if (index == 4) {
targetX = -1180;
}
}
trace(counter);
if ((Key.isDown(68) && (counter == 0)) && (_root._currentframe == 3)) {
trace("pressed");
counter = 10;
if (sel.select._x >= 20) {
stopAllSounds();
_root.gotoAndStop(5);
}
if (((sel.select._x < 20) && (sel.select._x >= -245)) && (_global.shopunlock)) {
_root.gotoAndStop(4);
}
if (((sel.select._x < -245) && (sel.select._x >= -580)) && (_global.lev1unlock)) {
stopAllSounds();
_root.gotoAndStop(6);
}
if (((sel.select._x < -580) && (sel.select._x >= -980)) && (_global.lev2unlock)) {
stopAllSounds();
_root.gotoAndStop(7);
}
if ((sel.select._x < -980) && (_global.lev3unlock)) {
stopAllSounds();
_root.gotoAndStop(8);
}
}
if ((Key.isDown(83) && (counter == 0)) && (_root._currentframe == 3)) {
stopAllSounds();
counter = 10;
_root.gotoAndStop(2);
}
};
sel.select.zero.onPress = function () {
stopAllSounds();
_root.gotoAndStop(5);
};
sel.select.shop.onPress = function () {
if (_global.shopunlock) {
_root.gotoAndStop(4);
}
};
sel.select.one.onPress = function () {
if (_global.lev1unlock) {
stopAllSounds();
_root.gotoAndStop(6);
}
};
sel.select.two.onPress = function () {
if (_global.lev2unlock) {
stopAllSounds();
_root.gotoAndStop(7);
}
};
sel.select.three.onPress = function () {
if (_global.lev3unlock) {
stopAllSounds();
_root.gotoAndStop(8);
}
};
sel.l.onPress = function () {
if (counter == 0) {
index--;
if (index == -1) {
index = 0;
}
if (index == 0) {
targetX = 150;
}
if (index == 1) {
targetX = -110;
}
if (index == 2) {
targetX = -380;
}
if (index == 3) {
targetX = -780;
}
if (index == 4) {
targetX = -1180;
}
counter = 6;
}
};
sel.r.onPress = function () {
if (counter == 0) {
index++;
if (index == 5) {
index = 4;
}
if (index == 0) {
targetX = 150;
}
if (index == 1) {
targetX = -110;
}
if (index == 2) {
targetX = -380;
}
if (index == 3) {
targetX = -780;
}
if (index == 4) {
targetX = -1180;
}
counter = 6;
}
};
Instance of Symbol 3389 MovieClip "backbutt" in Frame 3
on (release) {
stopAllSounds();
_root.gotoAndStop(2);
}
Frame 4
stop();
camera._x = 321.8;
camera._y = 208;
camera.gotoAndStop(1);
camera.attachMovie("shop", "shopwindow", 104850);
camera.shopwindow.items.gotoAndStop(2);
camera.shopwindow._x = -300;
camera.shopwindow._y = -235;
bShopOnScreen = true;
nSelection = 1;
camera.swapDepths(9999);
pointer.swapDepths(99999);
Mouse.hide();
startDrag (pointer, true);
this.onEnterFrame = function () {
shopwindow.update();
_root.camera.meatCountText.text = "x" + _global.heldGibs;
_root.camera.livesText.text = "x" + _global.lives;
if (_global.health <= 12) {
_root.camera.healthbar.gotoAndStop(13 - _global.health);
} else {
_root.camera.healthbar.gotoAndStop(_global.health + 1);
}
if (_global.mana <= 6) {
_root.camera.manabar.gotoAndStop(7 - _global.mana);
} else {
_root.camera.manabar.gotoAndStop(_global.mana + 1);
}
if ((_global.healthPacks == 0) && (nSelection == 1)) {
nSelection++;
}
if ((_global.heldGrenades == 0) && (nSelection == 2)) {
nSelection++;
}
if ((_global.manaPots == 0) && (nSelection == 3)) {
nSelection++;
}
if ((_global.heldCrossbows == 0) && (nSelection == 4)) {
nSelection++;
}
if ((_global.heldCrosses == 0) && (nSelection == 5)) {
nSelection++;
}
if (nSelection > 5) {
if (_global.healthPacks > 0) {
nSelection = 1;
} else if (_global.heldGrenades > 0) {
nSelection = 2;
} else if (_global.manaPots > 0) {
nSelection = 3;
} else if (_global.heldCrossbows > 0) {
nSelection = 4;
} else if (_global.heldCrosses > 0) {
nSelection = 5;
} else {
nSelection = 0;
}
}
if (((((_global.healthPacks == 0) && (_global.heldGrenades == 0)) && (_global.manaPots == 0)) && (_global.heldCrossbows == 0)) && (_global.heldCrosses == 0)) {
nSelection = 0;
}
if (nSelection == 0) {
if (_global.healthPacks > 0) {
nSelection = 1;
} else if (_global.heldGrenades > 0) {
nSelection = 2;
} else if (_global.manaPots > 0) {
nSelection = 3;
} else if (_global.heldCrossbows > 0) {
nSelection = 4;
} else if (_global.heldCrosses > 0) {
nSelection = 5;
}
_root.camera.secondaryslot.gotoAndStop(1);
}
if (nSelection == 1) {
_root.camera.secondaryslot.gotoAndStop(2);
_root.camera.secondaryslot.healthpack.gotoAndStop(_global.healthPacks);
} else if (nSelection == 2) {
_root.camera.secondaryslot.gotoAndStop(3);
var _local3 = Math.floor(_global.heldGrenades / 10);
_root.camera.secondaryslot.slot.ones.gotoAndStop((_global.heldGrenades - (_local3 * 10)) + 1);
_root.camera.secondaryslot.slot.tens.gotoAndStop(_local3 + 1);
} else if (nSelection == 3) {
_root.camera.secondaryslot.gotoAndStop(4);
_root.camera.secondaryslot.manapots.gotoAndStop(_global.manaPots);
} else if (nSelection == 4) {
_root.camera.secondaryslot.gotoAndStop(5);
var _local3 = Math.floor(_global.heldCrossbows / 10);
_root.camera.secondaryslot.slot.ones.gotoAndStop((_global.heldCrossbows - (_local3 * 10)) + 1);
_root.camera.secondaryslot.slot.tens.gotoAndStop(_local3 + 1);
} else if (nSelection == 5) {
_root.camera.secondaryslot.gotoAndStop(6);
var _local3 = Math.floor(_global.heldCrosses / 10);
_root.camera.secondaryslot.slot.ones.gotoAndStop((_global.heldCrosses - (_local3 * 10)) + 1);
_root.camera.secondaryslot.slot.tens.gotoAndStop(_local3 + 1);
} else {
_root.camera.secondaryslot.gotoAndStop(1);
}
if (!bShopOnScreen) {
_root.gotoAndStop(3);
}
};
Frame 5
// swfAction0x75 // Unknown action
// swfAction0x6D // Unknown action
// swfAction0x70 // Unknown action
var _local2 = ;
if (typeof(_local1[_local2]) == "movieclip") {
_local1[_local2].stopit = true;
stopMoveAllMc(_local1[_local2]);
}
// unexpected jump
function startMoveAllMc(mc) {
mc.stopit = false;
for (var _local2 in mc) {
if (typeof(mc[_local2]) == "movieclip") {
mc[_local2].stopit = false;
startMoveAllMc(mc[_local2]);
}
}
}
function removeAllMc(mc) {
for (var _local2 in mc) {
if (typeof(mc[_local2]) == "movieclip") {
mc[_local2].removeMovieClip();
removeAllMc(mc[_local2]);
}
}
}
function getAllMc(mc) {
for (var _local2 in mc) {
if (typeof(mc[_local2]) == "movieclip") {
mc[_local2].stop();
mc[_local2].stopit = true;
getAllMc(mc[_local2]);
}
}
}
function playAllMc(mc) {
for (var _local2 in mc) {
if (typeof(mc[_local2]) == "movieclip") {
mc[_local2].play();
playAllMc(mc[_local2]);
}
}
}
function blaststart() {
puppyblast();
nPupblasts++;
clearInterval(blasttimer);
}
function landPause() {
bStopInput = false;
bJAttacking = false;
bHitChance = false;
clearInterval(landtimer);
}
function smashDown() {
bStopInput = false;
bJAttacking = false;
bHitChance = false;
clearInterval(smashtimer);
}
function batAttackAEnd() {
bStopInput = false;
bHitChance = false;
clearInterval(bAttackAtimer);
}
function dogAttackEnd() {
bStopInput = false;
bHitChance = false;
bDogAttack = false;
clearInterval(dogAttackTimer);
}
function batAttackBEnd() {
bStopInput = false;
bHitChance = false;
clearInterval(bAttackBtimer);
}
function katAttackAEnd() {
bStopInput = false;
bHitChance = false;
clearInterval(kAttackAtimer);
}
function katAttackBEnd() {
bStopInput = false;
bHitChance = false;
clearInterval(kAttackBtimer);
}
function shooting() {
bStopInput = false;
clearInterval(shootTimer);
}
function crossfunc() {
bStopInput = false;
bUsingCross = false;
clearInterval(crossTimer);
}
function stakeAttackEnd() {
bStopInput = false;
bHitChance = false;
clearInterval(sAttacktimer);
}
function hitEnd() {
bHit = false;
clearInterval(hitTimer);
}
function tintEnd() {
myColor.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0});
clearInterval(tintTimer);
}
function deadEnd() {
bDontGetUp = false;
bHit = false;
clearInterval(deadTimer);
}
function usemagictime() {
bStopInput = false;
clearInterval(magictimer);
}
function enemyDecisionValue(aggressionVal, proximityVal, weapNo, enemyType, enemiesOnScreen, bonusVal) {
var _local4 = Math.floor(Math.random() * 10) + 1;
var _local1 = aggressionVal;
if ((proximityVal > -40) && (proximityVal < 40)) {
_local1 = _local1 + 20;
}
if ((proximityVal > -100) && (proximityVal < 100)) {
_local1 = _local1 + 10;
}
if ((enemyType == "zombie") && (weapNo == 1)) {
_local1 = _local1 - 20;
}
if ((enemyType == "vamp") && (weapNo == 3)) {
_local1 = _local1 - 30;
}
if ((enemyType == "slime") && (weapNo == 2)) {
_local1 = _local1 - 20;
}
if ((enemyType == "smslime") && (weapNo == 2)) {
_local1 = _local1 - 20;
}
if (enemiesOnScreen > 8) {
_local1 = _local1 - 10;
} else if (enemiesOnScreen < 5) {
_local1 = _local1 + 30;
} else if (enemiesOnScreen == 1) {
_local1 = _local1 - 20;
}
if ((Math.floor(Math.random() * 2) + 1) == 1) {
_local1 = _local1 - _local4;
} else {
_local1 = _local1 + _local4;
}
_local1 = _local1 + bonusVal;
if (_local1 > 100) {
_local1 = 100;
}
if (_local1 < 0) {
_local1 = 0;
}
return(_local1);
}
function blood(targetX, targetY, blood) {
if (blood > 200) {
blood = 200;
}
var _local6 = 0;
while (_local6 < blood) {
var _local5 = flash.display.BitmapData.loadBitmap("blood");
var _local3 = _root.createEmptyMovieClip("main_holder", _root.getNextHighestDepth());
var _local4 = _local3.createEmptyMovieClip("internal_holder", _local3.getNextHighestDepth());
_local4._x = (-_local5.width) / 2;
_local4._y = (-_local5.height) / 2;
_local4.attachBitmap(_local5, _local4.getNextHighestDepth(), "never");
_local3._x = targetX;
_local3._y = targetY - 30;
_local3._rotation = random(360);
_local3._alpha = random(30) + 70;
_local3.boundyLeft = targetX - 100;
_local3.boundyTop = targetY - 100;
_local3.boundyRight = targetX + 100;
_local3.boundyBottom = targetY + 30;
_local3.speedX = Math.random(5) - Math.random(5);
_local3.speedY = Math.random(5) - Math.random(5);
_local3.speedX = _local3.speedX * 5;
_local3.speedY = _local3.speedY * 5;
_local3.stopit = false;
numberOfParticles++;
_local3.onEnterFrame = function () {
if (!this.stopit) {
this._x = this._x + this.speedX;
this._y = this._y + this.speedY;
if (this.speedY < 5) {
this.speedY = this.speedY + 0.3;
}
if (((((this._alpha <= 0) || (this._x < this.boundyLeft)) || (this._x > this.boundyRight)) || (this._y < this.boundyTop)) || (this._y > this.boundyBottom)) {
this.removeMovieClip();
numberOfParticles--;
}
}
};
_local6++;
}
}
function throwGrenade(playerX, playerY, throwright, nadesOnScreen, targetLane) {
if (nadesOnScreen > 98) {
nadesOnScreen = 0;
}
var _local3 = "nade" + nadesOnScreen;
_root.attachMovie("grenade", _local3, -9000 + nadesOnScreen);
_root[_local3]._x = playerX;
_root[_local3]._y = playerY - 40;
if (throwright) {
_root[_local3].speedX = 3.5;
} else {
_root[_local3].speedX = -3.5;
}
_root[_local3].speedY = -3;
_root[_local3].speedX = _root[_local3].speedX * 2;
_root[_local3].speedY = _root[_local3].speedY * 2;
_root[_local3].YMax = 20;
_root[_local3].lane = targetLane;
_root[_local3].stopit = false;
_root[_local3].onEnterFrame = function () {
if (!this.stopit) {
if (_root["lane" + targetLane].hitTest(this._x, this._y + 20, true)) {
this.speedY = -this.speedY;
if (this.YMax > 1) {
this.YMax = this.YMax - 10;
}
if (this.YMax <= 1) {
this.speedY = 0;
}
if (this.speedX > 0) {
this.speedX = this.speedX - 1;
}
if (this.speedX < 0) {
this.speedX = this.speedX + 1;
}
if ((this.speedX > -2) && (this.speedX < 2)) {
this.speedX = 0;
}
}
this._x = this._x + this.speedX;
this._y = this._y + this.speedY;
if (this.speedY < this.YMax) {
this.speedY = this.speedY + 2;
}
}
};
}
function darkbolt(reverse) {
if (nBolts > 98) {
nBolts = 0;
}
effectSound = new Sound(this);
effectSound.attachSound("Bolt");
effectSound.start();
var _local5 = "darkbolt" + nBolts;
_root.attachMovie("darkbolt", _local5, (alice.getDepth() + 800) + nBolts);
_root[_local5]._x = alice._x;
_root[_local5]._y = alice._y - 40;
_root[_local5].goRight = false;
_root[_local5].lane = nCurrentLane;
if (!reverse) {
if (bFacingRight == true) {
_root[_local5]._xscale = -100;
_root[_local5].goRight = true;
}
} else if (bFacingLeft == true) {
_root[_local5]._xscale = -100;
_root[_local5].goRight = true;
}
_root[_local5].stopit = false;
_root[_local5].onEnterFrame = function () {
if (!this.stopit) {
if ((this._x > 680) || (this._x < -20)) {
this.removeMovieClip();
}
if (this.goRight == true) {
this._x = this._x + 10;
} else {
this._x = this._x - 10;
}
var _local4 = 0;
while (_local4 < enemiesOnScreen) {
if (_root["enum" + _local4].sState != "dead") {
if (this.hitbox.hitTest(_root["enum" + _local4].hitbumpR) || (this.hitbox.hitTest(_root["enum" + _local4].hitbumpL))) {
_root["enum" + _local4].hit(4, 1);
if (((_root["enum" + _local4].getType() != "slime") && (_root["enum" + _local4].getType() != "small slime")) && (_root["enum" + _local4].getType() != "tiny slime")) {
gib(_root["enum" + _local4]._x, _root["enum" + _local4]._y, _root["enum" + _local4].getCurrentLane(), 15 * _global.goreMultiplier);
}
nEnemiesKilled++;
if ((_root["enum" + _local4].getType() == "zombie") || (_root["enum" + _local4].getType() == "fat zombie")) {
_global.zombiesKilled++;
} else if (_root["enum" + _local4].getType() == "werewolf") {
_global.werewolvesKilled++;
} else if (_root["enum" + _local4].getType() == "vampire") {
_global.vampiresKilled++;
}
}
}
_local4++;
}
}
};
}
function crossbowFire() {
if (nCrossbowBolts > 98) {
nCrossbowBolts = 0;
}
var _local6 = "crossbowbolt" + nCrossbowBolts;
_root.attachMovie("crossbowbolt", _local6, (alice.getDepth() + 600) + nCrossbowBolts);
_root[_local6]._x = alice._x;
_root[_local6]._y = alice._y - 40;
_root[_local6].goRight = false;
_root[_local6].lane = nCurrentLane;
if (bFacingRight == true) {
_root[_local6]._xscale = -100;
_root[_local6].goRight = true;
}
_root[_local6].stopit = false;
_root[_local6].onEnterFrame = function () {
if (!this.stopit) {
if ((this._x > 680) || (this._x < -20)) {
this.removeMovieClip();
}
if (this.goRight == true) {
this._x = this._x + 15;
} else {
this._x = this._x - 15;
}
var _local4 = 0;
while (_local4 < enemiesOnScreen) {
if (_root["enum" + _local4].sState != "dead") {
if (this.hitTest(_root["enum" + _local4].hitbumpR) || (this.hitTest(_root["enum" + _local4].hitbumpL))) {
if (this.lane == _root["enum" + _local4].getCurrentLane()) {
if (_global.incendiary) {
var _local5 = _root["enum" + _local4].hit(4, 1);
} else if (_root["enum" + _local4].getType() == "werewolf") {
var _local5 = _root["enum" + _local4].hit(4, 1, _global.silver);
} else {
var _local5 = _root["enum" + _local4].hit(3, 1);
}
if (_local5 != 2) {
if (((_root["enum" + _local4].getType() != "slime") && (_root["enum" + _local4].getType() != "small slime")) && (_root["enum" + _local4].getType() != "tiny slime")) {
gib(_root["enum" + _local4]._x, _root["enum" + _local4]._y, _root["enum" + _local4].getCurrentLane(), 15 * _global.goreMultiplier);
blood(_root["enum" + _local4]._x, _root["enum" + _local4]._y, 30 * _global.goreMultiplier);
}
nEnemiesKilled++;
if ((_root["enum" + _local4].getType() == "zombie") || (_root["enum" + _local4].getType() == "fat zombie")) {
_global.zombiesKilled++;
} else if (_root["enum" + _local4].getType() == "werewolf") {
_global.werewolvesKilled++;
} else if (_root["enum" + _local4].getType() == "vampire") {
_global.vampiresKilled++;
}
}
if (!_global.sureShot) {
this.removeMovieClip();
}
}
}
}
_local4++;
}
}
};
}
function puppyblast() {
if (nPupblasts > 98) {
nPupblasts = 0;
}
var _local5 = "puppyblast" + nPupblasts;
_root.attachMovie("puppyblast", _local5, (alice.getDepth() + 900) + nPupblasts);
_root[_local5]._y = alice._y - 40;
_root[_local5]._x = alice._x + 60;
_root[_local5].goRight = true;
_root[_local5].lane = nCurrentLane;
if (bFacingRight == false) {
_root[_local5]._xscale = -100;
_root[_local5].goRight = false;
_root[_local5]._x = alice._x - 60;
}
_root[_local5].stopit = false;
_root[_local5].onEnterFrame = function () {
if (!this.stopit) {
if ((this._x > 680) || (this._x < -20)) {
this.removeMovieClip();
}
if (this.goRight == true) {
this._x = this._x + 10;
} else {
this._x = this._x - 10;
}
var _local4 = 0;
while (_local4 < enemiesOnScreen) {
if (_root["enum" + _local4].sState != "dead") {
if (this.hitTest(_root["enum" + _local4].hitbumpR) || (this.hitbox.hitTest(_root["enum" + _local4].hitbumpL))) {
if (this.lane == _root["enum" + _local4].getCurrentLane()) {
_root["enum" + _local4].hit(4, 1);
if (((_root["enum" + _local4].getType() != "slime") && (_root["enum" + _local4].getType() != "small slime")) && (_root["enum" + _local4].getType() != "tiny slime")) {
gib(_root["enum" + _local4]._x, _root["enum" + _local4]._y, _root["enum" + _local4].getCurrentLane(), 15 * _global.goreMultiplier);
}
nEnemiesKilled++;
if ((_root["enum" + _local4].getType() == "zombie") || (_root["enum" + _local4].getType() == "fat zombie")) {
_global.zombiesKilled++;
} else if (_root["enum" + _local4].getType() == "werewolf") {
_global.werewolvesKilled++;
} else if (_root["enum" + _local4].getType() == "vampire") {
_global.vampiresKilled++;
}
}
}
}
_local4++;
}
}
};
}
function fireball() {
if (nFireballs > 98) {
nFireballs = 0;
}
var _local5 = "fireball" + nFireballs;
if (!_global.mag1addon) {
_root.attachMovie("fireball", _local5, (alice.getDepth() + 700) + nFireballs);
effectSound = new Sound(this);
effectSound.attachSound("Explosion100");
effectSound.start();
} else {
_root.attachMovie("superfireball", _local5, (alice.getDepth() + 700) + nFireballs);
effectSound = new Sound(this);
effectSound.attachSound("BigExplosion");
effectSound.start();
}
_root[_local5]._x = alice._x;
_root[_local5]._y = alice._y - 40;
_root[_local5].goRight = false;
_root[_local5].lane = nCurrentLane;
if (bFacingRight == true) {
_root[_local5]._xscale = -100;
_root[_local5].goRight = true;
}
_root[_local5].stopit = false;
_root[_local5].onEnterFrame = function () {
if (!this.stopit) {
if ((this._x > 680) || (this._x < -20)) {
this.removeMovieClip();
}
if (this.goRight == true) {
this._x = this._x + 10;
} else {
this._x = this._x - 10;
}
var _local4 = 0;
while (_local4 < enemiesOnScreen) {
if (_root["enum" + _local4].sState != "dead") {
if (this.hitbox.hitTest(_root["enum" + _local4].hitbumpR) || (this.hitbox.hitTest(_root["enum" + _local4].hitbumpL))) {
if (this.lane == _root["enum" + _local4].getCurrentLane()) {
_root["enum" + _local4].hit(4, 1);
if (((_root["enum" + _local4].getType() != "slime") && (_root["enum" + _local4].getType() != "small slime")) && (_root["enum" + _local4].getType() != "tiny slime")) {
gib(_root["enum" + _local4]._x, _root["enum" + _local4]._y, _root["enum" + _local4].getCurrentLane(), 15 * _global.goreMultiplier);
}
nEnemiesKilled++;
if ((_root["enum" + _local4].getType() == "zombie") || (_root["enum" + _local4].getType() == "fat zombie")) {
_global.zombiesKilled++;
} else if (_root["enum" + _local4].getType() == "werewolf") {
_global.werewolvesKilled++;
} else if (_root["enum" + _local4].getType() == "vampire") {
_global.vampiresKilled++;
}
if (!_global.mag1addon) {
this.removeMovieClip();
}
}
}
}
_local4++;
}
}
};
}
function createDog() {
effectSound = new Sound(this);
effectSound.attachSound("Summon");
effectSound.start();
bDogOnScreen = true;
nDogCount = 3;
if (!_global.mag4addon) {
_root.attachMovie("dogmount", "dog", alice.getDepth() - 1);
} else {
_root.attachMovie("ndogmount", "dog", alice.getDepth() - 1);
nDogCount = 5;
}
_root.dog._x = alice._x;
if (nCurrentLane == 1) {
_root.dog._y = 439.05;
} else if (nCurrentLane == 2) {
_root.dog._y = 494.05;
} else if (nCurrentLane == 3) {
_root.dog._y = 540.05;
}
_root.dog.facingLeft = false;
_root.dog.timer = 0;
_root.dog.lane = nCurrentLane;
_root.dog.gotoAndStop(2);
_root.dog.onEnterFrame = function () {
if (this._currentframe == 3) {
this.swapDepths(alice.getDepth() - 1);
_root.dog.lane = nCurrentLane;
}
if (nDogCount == 0) {
this.gotoAndStop(4);
}
if ((this.hitbox.hitTest(alice) && (!bGrounded)) && (!bRiding)) {
var _local4;
if (nCurrentLane == 1) {
_local4 = 439.05;
} else if (nCurrentLane == 2) {
_local4 = 494.05;
} else if (nCurrentLane == 3) {
_local4 = 540.05;
}
if (((alice._y > (_local4 - 35)) && (nGravity > 6)) && (this.lane == nCurrentLane)) {
this.gotoAndStop(3);
if (!_global.mag4addon) {
alice.gotoAndStop("dogjump");
} else {
alice.gotoAndStop("ndogjump");
}
bRiding = true;
}
}
};
}
function createKen() {
effectSound = new Sound(this);
effectSound.attachSound("Summon");
effectSound.start();
bKenOnScreen = true;
_root.attachMovie("kenshiro", "ken", alice.getDepth() + 500);
_root.ken._x = alice._x;
if (nCurrentLane == 1) {
_root.ken._y = 439.05;
} else if (nCurrentLane == 2) {
_root.ken._y = 494.05;
} else if (nCurrentLane == 3) {
_root.ken._y = 540.05;
}
_root.ken.facingLeft = true;
_root.ken.timer = 0;
_root.ken.lane = nCurrentLane;
if (!_global.mag5addon) {
_root.ken.endTimer = 600;
} else {
_root.ken.endTimer = 1200;
}
_root.ken.stopit = false;
_root.ken.onEnterFrame = function () {
if (!this.stopit) {
this.timer++;
this.rest++;
if (this.timer >= this.endTimer) {
this.gotoAndStop(4);
}
if (this.timer >= (this.endTimer + 30)) {
bKenOnScreen = false;
this.removeMovieClip();
}
if (((this.rest >= 60) && (this._currentframe != 4)) && (this._currentframe != 1)) {
this.gotoAndStop(2);
}
var _local4 = 0;
while (_local4 < enemiesOnScreen) {
if ((_root["enum" + _local4].sState != "dead") && (this._currentframe != 4)) {
if (this.hitbox.hitTest(_root["enum" + _local4].hitbumpR) || (this.hitbox.hitTest(_root["enum" + _local4].hitbumpL))) {
if (_root["enum" + _local4]._x < this._x) {
this.facingLeft = true;
this._xscale = 100;
} else if (_root["enum" + _local4]._x > this._x) {
this.facingLeft = true;
this._xscale = -100;
}
if (this.lane == _root["enum" + _local4].getCurrentLane()) {
this.gotoAndStop(3);
this.rest = 0;
_root["enum" + _local4].hit(4, 1);
if (((_root["enum" + _local4].getType() != "slime") && (_root["enum" + _local4].getType() != "small slime")) && (_root["enum" + _local4].getType() != "tiny slime")) {
gib(_root["enum" + _local4]._x, _root["enum" + _local4]._y, _root["enum" + _local4].getCurrentLane(), 15 * _global.goreMultiplier);
}
nEnemiesKilled++;
if ((_root["enum" + _local4].getType() == "zombie") || (_root["enum" + _local4].getType() == "fat zombie")) {
_global.zombiesKilled++;
} else if (_root["enum" + _local4].getType() == "werewolf") {
_global.werewolvesKilled++;
} else if (_root["enum" + _local4].getType() == "vampire") {
_global.vampiresKilled++;
}
}
}
}
_local4++;
}
}
};
}
function createPuppy(puppiesOnScreen, nadesOnScreen) {
if (puppiesOnScreen >= 80) {
puppiesOnScreen = 0;
}
var _local3 = "puppy" + puppiesOnScreen;
_root.attachMovie("puppy", _local3, -8000 + puppiesOnScreen);
_root[_local3]._x = Math.round(Math.random() * 640);
if (_root[_local3]._x < 320) {
_root[_local3].facingRight = false;
_root[_local3]._xscale = -100;
_root[_local3].speedX = -6;
}
if (_root[_local3]._x >= 320) {
_root[_local3].facingRight = true;
_root[_local3]._xscale = 100;
_root[_local3].speedX = 6;
}
_root[_local3]._y = -40;
_root[_local3].lane = Math.round(Math.random() * 2) + 1;
_root[_local3].speedY = 10;
_root[_local3].countdown = Math.round(Math.random() * 240) + 10;
_root[_local3].placed = false;
_root[_local3].stopit = false;
_root[_local3].onEnterFrame = function () {
if (!this.stopit) {
if (this.countdown > 0) {
this.countdown--;
}
if (_root["lane" + this.lane].hitTest(this._x, this._y + 20, true)) {
if (!this.placed) {
this.gotoAndStop("place");
}
if (this.place._currentframe == 10) {
this.placed = true;
var _local3 = "nade" + nadesOnScreen;
_root.attachMovie("grenade", _local3, -9000 + nadesOnScreen);
_root[_local3]._x = this._x;
_root[_local3]._y = this._y;
_root[_local3].lane = this.lane;
}
if (this.placed) {
this.gotoAndStop("run");
this._x = this._x + this.speedX;
}
} else if (this.countdown == 0) {
this.gotoAndStop("fall");
this._y = this._y + this.speedY;
}
}
};
}
function gib(targetX, targetY, targetLane, gibs) {
var _local7 = gibs / 3;
var _local8 = _global.gibsOnScreen;
_global.gibsOnScreen = _global.gibsOnScreen + gibs;
if (_global.gibsOnScreen >= 300) {
_global.gibsOnScreen = 0;
}
var _local6 = _local8;
while (_local6 < (_local8 + _local7)) {
var _local10 = flash.display.BitmapData.loadBitmap("gib1");
_root["particle_mc" + _local6] = _root.createEmptyMovieClip("main_holder" + _local6, _local6);
_root["particle_mc" + _local6].attachBitmap(_local10, main_holder.getNextHighestDepth(), "never");
_root["particle_mc" + _local6]._x = targetX;
_root["particle_mc" + _local6]._y = targetY - 30;
_root["particle_mc" + _local6]._rotation = random(360);
_root["particle_mc" + _local6].speedX = Math.random(5) - Math.random(5);
_root["particle_mc" + _local6].speedY = Math.random(5) - Math.random(5);
_root["particle_mc" + _local6].speedX = _root["particle_mc" + _local6].speedX * 5;
_root["particle_mc" + _local6].speedY = _root["particle_mc" + _local6].speedY * 5;
_root["particle_mc" + _local6].YMax = 4;
_root["particle_mc" + _local6].stopit = false;
_root["particle_mc" + _local6].onEnterFrame = function () {
if (!this.stopit) {
if (_root["lane" + targetLane].hitTest(this._x, this._y + 10, true)) {
this.speedY = -this.speedY;
if (this.YMax > 1) {
this.YMax = this.YMax - 0.5;
}
if (this.YMax <= 1) {
this.speedY = 0;
}
if (this.speedX > 0) {
this.speedX = this.speedX - 0.3;
}
if (this.speedX < 0) {
this.speedX = this.speedX + 0.3;
}
if ((this.speedX > -0.5) && (this.speedX < 0.5)) {
this.speedX = 0;
}
}
if ((this._y + 10) > (_root["lane" + targetLane]._y + 20)) {
this._y = _root["lane" + targetLane]._y;
}
this._x = this._x + this.speedX;
this._y = this._y + this.speedY;
if ((this.speedY < this.YMax) && (this.YMax > 1)) {
this.speedY = this.speedY + 0.5;
}
}
};
_local6++;
}
var _local4 = _local8 + _local7;
while (_local4 < ((_local7 + _local7) + _local8)) {
var _local10 = flash.display.BitmapData.loadBitmap("gib2");
_root["particle_mc" + _local4] = _root.createEmptyMovieClip("main_holder" + _local4, _local4);
_root["particle_mc" + _local4].attachBitmap(_local10, main_holder.getNextHighestDepth(), "never");
_root["particle_mc" + _local4]._x = targetX;
_root["particle_mc" + _local4]._y = targetY - 30;
_root["particle_mc" + _local4]._rotation = random(360);
_root["particle_mc" + _local4].speedX = Math.random(5) - Math.random(5);
_root["particle_mc" + _local4].speedY = Math.random(5) - Math.random(5);
_root["particle_mc" + _local4].speedX = _root["particle_mc" + _local4].speedX * 5;
_root["particle_mc" + _local4].speedY = _root["particle_mc" + _local4].speedY * 5;
_root["particle_mc" + _local4].YMax = 4;
_root["particle_mc" + _local4].stopit = false;
_root["particle_mc" + _local4].onEnterFrame = function () {
if (!this.stopit) {
if (_root["lane" + targetLane].hitTest(this._x, this._y + 10, true)) {
this.speedY = -this.speedY;
if (this.YMax > 1) {
this.YMax = this.YMax - 0.5;
}
if (this.YMax <= 1) {
this.speedY = 0;
}
if (this.speedX > 0) {
this.speedX = this.speedX - 0.3;
}
if (this.speedX < 0) {
this.speedX = this.speedX + 0.3;
}
if ((this.speedX > -0.5) && (this.speedX < 0.5)) {
this.speedX = 0;
}
}
if ((this._y + 10) > (_root["lane" + targetLane]._y + 20)) {
this._y = _root["lane" + targetLane]._y;
}
this._x = this._x + this.speedX;
this._y = this._y + this.speedY;
if ((this.speedY < this.YMax) && (this.YMax > 1)) {
this.speedY = this.speedY + 0.5;
}
}
};
_local4++;
}
var _local5 = (_local7 * 2) + _local8;
while (_local5 < (((_local7 * 2) + _local7) + _local8)) {
var _local10 = flash.display.BitmapData.loadBitmap("gib3");
_root["particle_mc" + _local5] = _root.createEmptyMovieClip("main_holder" + _local5, _local5);
_root["particle_mc" + _local5].attachBitmap(_local10, main_holder.getNextHighestDepth(), "never");
_root["particle_mc" + _local5]._x = targetX;
_root["particle_mc" + _local5]._y = targetY - 30;
_root["particle_mc" + _local5]._rotation = random(360);
_root["particle_mc" + _local5].speedX = Math.random(5) - Math.random(5);
_root["particle_mc" + _local5].speedY = Math.random(5) - Math.random(5);
_root["particle_mc" + _local5].speedX = _root["particle_mc" + _local5].speedX * 5;
_root["particle_mc" + _local5].speedY = _root["particle_mc" + _local5].speedY * 5;
_root["particle_mc" + _local5].YMax = 4;
_root["particle_mc" + _local5].stopit = false;
_root["particle_mc" + _local5].onEnterFrame = function () {
if (!this.stopit) {
if (_root["lane" + targetLane].hitTest(this._x, this._y + 10, true)) {
this.speedY = -this.speedY;
if (this.YMax > 1) {
this.YMax = this.YMax - 0.5;
}
if (this.YMax <= 1) {
this.speedY = 0;
}
if (this.speedX > 0) {
this.speedX = this.speedX - 0.3;
}
if (this.speedX < 0) {
this.speedX = this.speedX + 0.3;
}
if ((this.speedX > -0.5) && (this.speedX < 0.5)) {
this.speedX = 0;
}
}
if ((this._y + 10) > (_root["lane" + targetLane]._y + 20)) {
this._y = _root["lane" + targetLane]._y;
}
this._x = this._x + this.speedX;
this._y = this._y + this.speedY;
if ((this.speedY < this.YMax) && (this.YMax > 1)) {
this.speedY = this.speedY + 0.5;
}
}
};
_local5++;
}
}
stop();
stopAllSounds();
musicSound = new Sound(this);
musicSound.attachSound("Graveyard");
musicSound.start(0, 999);
camera._x = 338.65;
camera._y = 305.25;
Mouse.hide();
startDrag (pointer, true);
var myColor;
var haltProgress = true;
var backToMenu = false;
var speechTime = false;
var introMovie = true;
var enemiesOnScreen = 0;
var itemsOnScreen = 1;
var breakablesOnScreen = 2;
var explodedNades = 0;
var nPauseTimer = 0;
var nSpeechCountdown = 0;
var nChargeAmount = 0;
var nWeapCooldown = 0;
var nInvincible = 0;
var nWeapNo = 1;
var nSpeed = 0;
var nMaxmove = 15;
var nGravity = 0;
var nCurrentLane = 2;
var nAttack = 0;
var nCrossbowBolts = 0;
var nUseMagicCooldown = 0;
var nDashChance = 0;
var nBlockDashChance = 0;
var nDashCooldown = 0;
var nTargetTime = 0;
var nEnemiesKilled = 0;
var nMoved = 0;
var nItemCooldown = 0;
var nGrenadesOnScreen = 0;
var nPuppiesOnScreen = 0;
var nFireballs = 0;
var nSelection = 1;
var nSelectionCooldown = 0;
var nBlockDashTimer = 0;
var nBlockDashRecharge = 0;
var nSpawnTime = 0;
var nPupblasts = 0;
var nTime1 = 0;
var nTime2 = 0;
var nTime3 = 0;
var nScreenNo = 0;
var nBolts = 0;
var nDogCount = 0;
var bKenOnScreen = false;
var bPaused = false;
var bAttacking = false;
var bJAttacking = false;
var bGrounded = false;
var bUsingCross = false;
var bStopInput = true;
var bHit = false;
var bDead = false;
var bShopOnScreen = false;
var bBlocking = false;
var bFacingLeft = true;
var bFacingRight = false;
var bHitChance = false;
var bNextScreen = false;
var bProgress = false;
var bDoOnce = false;
var bKenOnScreen = false;
var bUsingMagic = false;
var bSetUpEnemies = true;
var bDontGetUp = false;
var bDogOnScreen = false;
var bRiding = false;
var bDogAttack = false;
var LANE_SPEED = 4;
var oKeyListener = new Object();
Key.addListener(oKeyListener);
var bKeyListener = new Object();
Key.addListener(bKeyListener);
var aKeyListener = new Object();
Key.addListener(aKeyListener);
var aResetPositions = new Array();
aResetPositions[0] = alice._y;
aResetPositions[1] = alice._x;
camera.swapDepths(9999);
border.swapDepths(10001);
blackout.swapDepths(99998);
pointer.swapDepths(99999);
alice.swapDepths(1000);
item0.gotoAndStop(4);
var time1 = new Array();
var time2 = new Array();
var time3 = new Array();
var spawnList = new Array(new Array(), new Array(), new Array(), new Array());
var enemyStruct;
time1[0] = 0;
time2[0] = 0;
time3[0] = 0;
spawnList[1][0] = (enemyStruct = new Object({className:"zombie", leftOrRight:"right", spawnTime:1, pushX:Math.floor(Math.random() * 50) + 1}));
spawnList[1][1] = (enemyStruct = new Object({className:"gZombie", leftOrRight:"left", spawnTime:2, pushX:-10}));
spawnList[1][2] = (enemyStruct = new Object({className:"bZombie", leftOrRight:"right", spawnTime:2, pushX:Math.floor(Math.random() * 50) + 1}));
time1[1] = 60;
time2[1] = 150;
time3[1] = 900;
spawnList[2][0] = (enemyStruct = new Object({className:"zombie", leftOrRight:"left", spawnTime:1, pushX:Math.floor(Math.random() * 80) + 1}));
spawnList[2][1] = (enemyStruct = new Object({className:"bZombie", leftOrRight:"left", spawnTime:1, pushX:Math.floor(Math.random() * 50) + 1}));
spawnList[2][2] = (enemyStruct = new Object({className:"fatzombie", leftOrRight:"right", spawnTime:2, pushX:Math.floor(Math.random() * 50) + 1}));
spawnList[2][3] = (enemyStruct = new Object({className:"zombie", leftOrRight:"left", spawnTime:2, pushX:Math.floor(Math.random() * 50) + 1}));
time1[2] = 60;
time2[2] = 200;
time3[2] = 900;
spawnList[3][0] = (enemyStruct = new Object({className:"BlueFatZombie", leftOrRight:"right", spawnTime:1, pushX:Math.floor(Math.random() * 50) + 1}));
spawnList[3][1] = (enemyStruct = new Object({className:"fatzombie", leftOrRight:"right", spawnTime:2, pushX:Math.floor(Math.random() * 50) + 1}));
spawnList[3][2] = (enemyStruct = new Object({className:"vampire", leftOrRight:"left", spawnTime:3, pushX:Math.floor(Math.random() * 50) + 1}));
time1[3] = 60;
time2[3] = 300;
time3[3] = 600;
var speechCounter = 0;
var speechList = new Array();
speechList[0] = "You wanna buy somethin'?";
speechList[1] = "I don't have any money or anything..";
speechList[2] = "You got meat? I'll take that.";
speechList[3] = "Alright.. I'm not sure why I even picked all this up.";
speechList[4] = "Ah 'tis a good day for Sage.";
onEnterFrame = function () {
trace(_global.gibsOnScreen);
if ((nScreenNo == 0) && (!haltProgress)) {
bNextScreen = true;
_root.camera.topright.gotoAndStop(2);
}
if (backToMenu) {
backToMenu = false;
alice.removeMovieClip();
sage.removeMovieClip();
border.removeMovieClip();
foreground.removeMovieClip();
bgbuildings.removeMovieClip();
_root.dog.removeMovieClip();
var _local5 = 0;
while (_local5 < (nGrenadesOnScreen + 1)) {
_root["nade" + _local5].removeMovieClip();
_local5++;
}
var _local18 = 0;
while (_local18 < itemsOnScreen) {
_root["item" + _local18].removeMovieClip();
_local18++;
}
var _local17 = 0;
while (_local17 < enemiesOnScreen) {
_root["enum" + _local17].removeMovieClip();
_local17++;
}
var _local10 = 0;
while (_local10 < 1000) {
_root["particle_mc" + _local10].removeMovieClip();
_local10++;
}
var _local13 = 0;
while (_local13 < nBolts) {
_root["darkbolt" + _local13].removeMovieClip();
_local13++;
}
var _local4 = 0;
while (_local4 < nCrossbowBolts) {
_root["crossbowbolt" + _local4].removeMovieClip();
_local4++;
}
var _local11 = 0;
while (_local11 < nPupblasts) {
_root["puppyblast" + _local11].removeMovieClip();
_local11++;
}
_local18 = 0;
while (_local18 < nFireballs) {
_root["fireball" + _local18].removeMovieClip();
_local18++;
}
_local5 = 0;
while (_local5 < puppiesOnScreen) {
_root["puppy" + _local5].removeMovieClip();
_local5++;
}
_root.ken.removeMovieClip();
nCrossbowBolts = 0;
nPuppiesOnScreen = 0;
nFireballs = 0;
nBolts = 0;
nPupblasts = 0;
nPickedUpGibs = 0;
bProgress = false;
nScreenNo++;
haltProgress = true;
bSetUpEnemies = true;
_root.camera.topright.gotoAndStop(1);
nMoved = 0;
nEnemiesKilled = 0;
_global.gibsOnScreen = 0;
stopAllSounds();
if ((bDead == true) && (_global.lives == 1)) {
_root.gotoAndStop(9);
} else {
_root.gotoAndStop(3);
}
// unexpected jump
}
if (introMovie) {
if (nSpeechCountdown > 0) {
nSpeechCountdown--;
}
if (!speechTime) {
alice.gotoAndStop(49);
} else if (alice.hitTest(sage)) {
if (bRiding && (!_global.mag4addon)) {
alice.gotoAndStop("dogidle");
} else if (bRiding && (_global.mag4addon)) {
alice.gotoAndStop("ndogidle");
} else {
alice.gotoAndStop("idle");
}
if (Key.isDown(68) && (nSpeechCountdown == 0)) {
speechTime = false;
introMovie = false;
nSpeechCountdown = 10;
_root.foreground.speechbub.removeMovieClip();
_root.speechbub.removeMovieClip();
_root.sage.speechbub.removeMovieClip();
}
} else {
getAllMc(alice);
sage.stop();
getAllMc(camera.topright);
var _local11 = 0;
while (_local11 < enemiesOnScreen) {
getAllMc(_root["enum" + _local11]);
_local11++;
}
var _local10 = 0;
while (_local10 < 1000) {
_root["particle_mc" + _local10].stopit = true;
_local10++;
}
stopMoveAllMc(main_holder);
if (Key.isDown(68) && (nSpeechCountdown == 0)) {
speechTime = false;
introMovie = false;
nSpeechCountdown = 10;
_root.foreground.speechbub.removeMovieClip();
_root.speechbub.removeMovieClip();
_root.sage.speechbub.removeMovieClip();
playAllMc(alice);
sage.play();
playAllMc(camera.topright);
_local11 = 0;
while (_local11 < enemiesOnScreen) {
playAllMc(_root["enum" + _local11]);
_local11++;
}
_local10 = 0;
while (_local10 < 1000) {
_root["particle_mc" + _local10].stopit = false;
_local10++;
}
startMoveAllMc(main_holder);
}
}
// unexpected jump
}
if (explodedNades == nGrenadesOnScreen) {
nGrenadesOnScreen = 0;
explodedNades = 0;
}
if (!bPaused) {
nSpawnTime++;
}
if (bSetUpEnemies) {
nSpawnTime = 0;
bSetUpEnemies = false;
nTime1 = time1[nScreenNo];
nTime2 = time2[nScreenNo];
nTime3 = time3[nScreenNo];
}
if (nSpawnTime == nTime1) {
var _local10 = 0;
while (_local10 < spawnList[nScreenNo].length) {
if (spawnList[nScreenNo][_local10].spawnTime == 1) {
var _local15 = "enum" + enemiesOnScreen;
_root.attachMovie(spawnList[nScreenNo][_local10].className, _local15, _root.getNextHighestDepth());
if (spawnList[nScreenNo][_local10].leftOrRight == "right") {
_root["enum" + enemiesOnScreen]._x = dispenserR._x + spawnList[nScreenNo][_local10].pushX;
_root["enum" + enemiesOnScreen]._y = dispenserR._y;
} else if (spawnList[nScreenNo][_local10].leftOrRight == "left") {
_root["enum" + enemiesOnScreen]._x = dispenserL._x - spawnList[nScreenNo][_local10].pushX;
_root["enum" + enemiesOnScreen]._y = dispenserL._y;
}
enemiesOnScreen++;
}
_local10++;
}
}
if (nSpawnTime == nTime2) {
var _local10 = 0;
while (_local10 < spawnList[nScreenNo].length) {
if (spawnList[nScreenNo][_local10].spawnTime == 2) {
var _local15 = "enum" + enemiesOnScreen;
_root.attachMovie(spawnList[nScreenNo][_local10].className, _local15, _root.getNextHighestDepth());
if (spawnList[nScreenNo][_local10].leftOrRight == "right") {
_root["enum" + enemiesOnScreen]._x = dispenserR._x + spawnList[nScreenNo][_local10].pushX;
_root["enum" + enemiesOnScreen]._y = dispenserR._y;
} else if (spawnList[nScreenNo][_local10].leftOrRight == "left") {
_root["enum" + enemiesOnScreen]._x = dispenserL._x - spawnList[nScreenNo][_local10].pushX;
_root["enum" + enemiesOnScreen]._y = dispenserL._y;
}
enemiesOnScreen++;
}
_local10++;
}
}
if (nSpawnTime == nTime3) {
if (nScreenNo == 3) {
_root.camera.hintmc.gotoAndStop(6);
}
var _local10 = 0;
while (_local10 < spawnList[nScreenNo].length) {
if (spawnList[nScreenNo][_local10].spawnTime == 3) {
var _local15 = "enum" + enemiesOnScreen;
_root.attachMovie(spawnList[nScreenNo][_local10].className, _local15, _root.getNextHighestDepth());
if (spawnList[nScreenNo][_local10].leftOrRight == "right") {
_root["enum" + enemiesOnScreen]._x = dispenserR._x + spawnList[nScreenNo][_local10].pushX;
_root["enum" + enemiesOnScreen]._y = dispenserR._y;
} else if (spawnList[nScreenNo][_local10].leftOrRight == "left") {
_root["enum" + enemiesOnScreen]._x = dispenserL._x - spawnList[nScreenNo][_local10].pushX;
_root["enum" + enemiesOnScreen]._y = dispenserL._y;
}
enemiesOnScreen++;
}
_local10++;
}
}
if (camera._y > (alice._y + 100)) {
camera._y = camera._y - 2;
}
if (camera._y < (alice._y - 200)) {
camera._y = camera._y + 2;
}
if (bProgress == true) {
if (bKenOnScreen) {
_root.ken.removeMovieClip();
}
if (bDoOnce) {
bDoOnce = false;
var _local10 = 0;
while (_local10 < 1000) {
_root["particle_mc" + _local10].removeMovieClip();
_local10++;
}
if (nScreenNo == 3) {
if (!_global.shopunlock) {
_global.shopjust = true;
}
backToMenu = true;
}
}
bNextScreen = false;
bFacingRight = true;
bFacingLeft = false;
alice._xscale = -100;
if (!bRiding) {
if (nWeapNo == 1) {
alice.gotoAndStop("run");
}
if (nWeapNo == 2) {
alice.gotoAndStop("krun");
}
if (nWeapNo == 3) {
alice.gotoAndStop("srun");
}
} else if (!_global.mag4addon) {
alice.gotoAndStop("dogwalk");
} else {
alice.gotoAndStop("ndogwalk");
}
_root.dog._x = _root.dog._x - 5;
nMoved = nMoved + 5;
foreground._x = foreground._x - 5;
road._x = road._x - 5;
ground1._x = ground1._x - 5;
sage._x = sage._x - 5;
bgbuildings._x = bgbuildings._x - 2;
alice._x = alice._x - 2;
var _local5 = 0;
while (_local5 < (nGrenadesOnScreen + 1)) {
if (_root["nade" + _local5].wait._currentframe == 50) {
if (!_global.pyro) {
_root["nade" + _local5].gotoAndStop(2);
} else {
_root["nade" + _local5].gotoAndStop(3);
}
explodedNades++;
}
_root["nade" + _local5]._x = _root["nade" + _local5]._x - 5;
_local5++;
}
var _local11 = 0;
while (_local11 < breakablesOnScreen) {
_root["break" + _local11]._x = _root["break" + _local11]._x - 5;
_local11++;
}
var _local18 = 0;
while (_local18 < itemsOnScreen) {
_root["item" + _local18]._x = _root["item" + _local18]._x - 5;
_local18++;
}
if (nMoved == 640) {
nCrossbowBolts = 0;
nPuppiesOnScreen = 0;
nFireballs = 0;
nBolts = 0;
nPupblasts = 0;
if ((!bRiding) && (bDogOnScreen)) {
_root.dog.removeMovieClip();
}
bProgress = false;
nScreenNo++;
haltProgress = true;
if (nScreenNo == 1) {
_root.camera.hintmc.gotoAndStop(3);
}
if (nScreenNo == 2) {
_root.camera.hintmc.gotoAndStop(4);
}
bSetUpEnemies = true;
_root.camera.topright.gotoAndStop(1);
nMoved = 0;
nEnemiesKilled = 0;
_global.gibsOnScreen = 0;
}
// unexpected jump
}
if (bPaused) {
camera.pause.gotoAndStop(2);
blackout.gotoAndStop(368);
getAllMc(alice);
sage.stop();
getAllMc(camera.topright);
var _local11 = 0;
while (_local11 < enemiesOnScreen) {
getAllMc(_root["enum" + _local11]);
_local11++;
}
var _local10 = 0;
while (_local10 < 1000) {
_root["particle_mc" + _local10].stopit = true;
_local10++;
}
var _local7 = 0;
while (_local7 < nadesOnScreen) {
stopMoveAllMc(_root["nade" + _local7]);
_local7++;
}
var _local13 = 0;
while (_local13 < nBolts) {
stopMoveAllMc(_root["darkbolt" + _local13]);
_local13++;
}
var _local4 = 0;
while (_local4 < nCrossbowBolts) {
stopMoveAllMc(_root["crossbowbolt" + _local4]);
_local4++;
}
_local11 = 0;
while (_local11 < nPupblasts) {
stopMoveAllMc(_root["puppyblast" + _local11]);
_local11++;
}
var _local18 = 0;
while (_local18 < nFireballs) {
stopMoveAllMc(_root["fireball" + _local18]);
_local18++;
}
var _local5 = 0;
while (_local5 < puppiesOnScreen) {
stopMoveAllMc(_root["puppy" + _local5]);
_local5++;
}
stopMoveAllMc(_root.ken);
stopMoveAllMc(main_holder);
if (Key.isDown(27) && (nPauseTimer == 0)) {
camera.pause.gotoAndStop(1);
playAllMc(alice);
sage.play();
playAllMc(camera.topright);
_local11 = 0;
while (_local11 < enemiesOnScreen) {
playAllMc(_root["enum" + _local11]);
_local11++;
}
_local10 = 0;
while (_local10 < 1000) {
_root["particle_mc" + _local10].stopit = false;
_local10++;
}
_local7 = 0;
while (_local7 < nadesOnScreen) {
startMoveAllMc(_root["nade" + _local7]);
_local7++;
}
_local13 = 0;
while (_local13 < nBolts) {
startMoveAllMc(_root["darkbolt" + _local13]);
_local13++;
}
_local4 = 0;
while (_local4 < nCrossbowBolts) {
startMoveAllMc(_root["crossbowbolt" + _local4]);
_local4++;
}
_local11 = 0;
while (_local11 < nPupblasts) {
startMoveAllMc(_root["puppyblast" + _local11]);
_local11++;
}
_local18 = 0;
while (_local18 < nFireballs) {
startMoveAllMc(_root["fireball" + _local18]);
_local18++;
}
_local5 = 0;
while (_local5 < puppiesOnScreen) {
startMoveAllMc(_root["puppy" + _local5]);
_local5++;
}
startMoveAllMc(_root.ken);
startMoveAllMc(main_holder);
_root.camera.achmenu.gotoAndStop(1);
_root.camera.controls.gotoAndStop(1);
bPaused = false;
nPauseTimer = 5;
}
if (nPauseTimer > 0) {
nPauseTimer--;
}
// unexpected jump
}
if ((_global.zombiesKilled == 10) && (!_global.ach1)) {
_root.camera.achunlock.gotoAndStop(2);
_global.ach1 = true;
}
if ((_global.zombiesKilled == 50) && (!_global.ach2)) {
_root.camera.achunlock.gotoAndStop(3);
_global.ach2 = true;
}
if ((_global.zombiesKilled == 200) && (!_global.ach3)) {
_root.camera.achunlock.gotoAndStop(4);
_global.ach3 = true;
}
if ((_global.vampiresKilled == 10) && (!_global.ach4)) {
_root.camera.achunlock.gotoAndStop(5);
_global.ach4 = true;
}
if ((_global.vampiresKilled == 50) && (!_global.ach5)) {
_root.camera.achunlock.gotoAndStop(6);
_global.ach5 = true;
}
if ((_global.werewolvesKilled == 10) && (!_global.ach6)) {
_root.camera.achunlock.gotoAndStop(7);
_global.ach6 = true;
}
if ((_global.werewolvesKilled == 50) && (!_global.ach7)) {
_root.camera.achunlock.gotoAndStop(8);
_global.ach7 = true;
}
bUsingMagic = false;
if ((((((Key.isDown(70) && (!bStopInput)) && (!bUsingMagic)) && (bGrounded)) && (!bRiding)) && (!bDead)) && (_global.mana != 0)) {
if (nWeapNo == 1) {
alice.gotoAndStop("batmagic");
bUsingMagic = true;
}
if (nWeapNo == 2) {
alice.gotoAndStop("katmagic");
bUsingMagic = true;
}
if (nWeapNo == 3) {
alice.gotoAndStop("stakemagic");
bUsingMagic = true;
}
nChargeAmount++;
if ((nChargeAmount == 20) && (_global.mana > 0)) {
_root.camera.manabar.charge.gotoAndStop(2);
}
if (((nChargeAmount == 35) && (_global.mana > 1)) && (_global.mag2)) {
_root.camera.manabar.charge.gotoAndStop(3);
}
if (((nChargeAmount == 50) && (_global.mana > 2)) && (_global.mag3)) {
_root.camera.manabar.charge.gotoAndStop(4);
}
if (((nChargeAmount == 65) && (_global.mana > 3)) && (_global.mag4)) {
_root.camera.manabar.charge.gotoAndStop(5);
}
if (((nChargeAmount == 80) && (_global.mana > 4)) && (_global.mag5)) {
_root.camera.manabar.charge.gotoAndStop(6);
}
}
if (bUsingMagic == false) {
nChargeAmount = 0;
_root.camera.manabar.charge.gotoAndStop(1);
}
_root.camera.meatCountText.text = "x" + _global.heldGibs;
_root.camera.livesText.text = "x" + _global.lives;
if (_global.health <= 12) {
_root.camera.healthbar.gotoAndStop(13 - _global.health);
} else {
_root.camera.healthbar.gotoAndStop(_global.health + 1);
}
if (_global.mana <= 6) {
_root.camera.manabar.gotoAndStop(7 - _global.mana);
} else {
_root.camera.manabar.gotoAndStop(_global.mana + 1);
}
if ((_global.healthPacks == 0) && (nSelection == 1)) {
nSelection++;
}
if ((_global.heldGrenades == 0) && (nSelection == 2)) {
nSelection++;
}
if ((_global.manaPots == 0) && (nSelection == 3)) {
nSelection++;
}
if ((_global.heldCrossbows == 0) && (nSelection == 4)) {
nSelection++;
}
if ((_global.heldCrosses == 0) && (nSelection == 5)) {
nSelection++;
}
if (nSelection > 5) {
if (_global.healthPacks > 0) {
nSelection = 1;
} else if (_global.heldGrenades > 0) {
nSelection = 2;
} else if (_global.manaPots > 0) {
nSelection = 3;
} else if (_global.heldCrossbows > 0) {
nSelection = 4;
} else if (_global.heldCrosses > 0) {
nSelection = 5;
} else {
nSelection = 0;
}
}
if (((((_global.healthPacks == 0) && (_global.heldGrenades == 0)) && (_global.manaPots == 0)) && (_global.heldCrossbows == 0)) && (_global.heldCrosses == 0)) {
nSelection = 0;
}
if (nSelection == 0) {
if (_global.healthPacks > 0) {
nSelection = 1;
} else if (_global.heldGrenades > 0) {
nSelection = 2;
} else if (_global.manaPots > 0) {
nSelection = 3;
} else if (_global.heldCrossbows > 0) {
nSelection = 4;
} else if (_global.heldCrosses > 0) {
nSelection = 5;
}
_root.camera.secondaryslot.gotoAndStop(1);
}
if (nSelection == 1) {
_root.camera.secondaryslot.gotoAndStop(2);
_root.camera.secondaryslot.healthpack.gotoAndStop(_global.healthPacks);
} else if (nSelection == 2) {
_root.camera.secondaryslot.gotoAndStop(3);
var _local30 = Math.floor(_global.heldGrenades / 10);
_root.camera.secondaryslot.slot.ones.gotoAndStop((_global.heldGrenades - (_local30 * 10)) + 1);
_root.camera.secondaryslot.slot.tens.gotoAndStop(_local30 + 1);
} else if (nSelection == 3) {
_root.camera.secondaryslot.gotoAndStop(4);
_root.camera.secondaryslot.manapots.gotoAndStop(_global.manaPots);
} else if (nSelection == 4) {
_root.camera.secondaryslot.gotoAndStop(5);
var _local30 = Math.floor(_global.heldCrossbows / 10);
_root.camera.secondaryslot.slot.ones.gotoAndStop((_global.heldCrossbows - (_local30 * 10)) + 1);
_root.camera.secondaryslot.slot.tens.gotoAndStop(_local30 + 1);
} else if (nSelection == 5) {
_root.camera.secondaryslot.gotoAndStop(6);
var _local30 = Math.floor(_global.heldCrosses / 10);
_root.camera.secondaryslot.slot.ones.gotoAndStop((_global.heldCrosses - (_local30 * 10)) + 1);
_root.camera.secondaryslot.slot.tens.gotoAndStop(_local30 + 1);
} else {
_root.camera.secondaryslot.gotoAndStop(1);
}
var _local7 = 0;
while (_local7 < itemsOnScreen) {
if ((((alice.collectbox.hitTest(_root["item" + _local7]) && (Key.isDown(68))) && (!bStopInput)) && (!bUsingMagic)) && (!bUsingMagic)) {
effectSound = new Sound(this);
effectSound.attachSound("Pickup");
effectSound.start();
if (_root["item" + _local7]._currentframe == 1) {
_global.healthPacks++;
if (_global.healthPacks > 9) {
_global.healthPacks = 9;
}
} else if (_root["item" + _local7]._currentframe == 2) {
_global.heldCrossbows = _global.heldCrossbows + 5;
if (_global.heldCrossbows > 99) {
_global.heldCrossbows = 99;
}
} else if (_root["item" + _local7]._currentframe == 3) {
_global.heldGrenades = _global.heldGrenades + 3;
if (_global.heldGrenades > 99) {
_global.heldGrenades = 99;
}
} else if (_root["item" + _local7]._currentframe == 4) {
_global.manaPots = _global.manaPots + 1;
if (_global.manaPots > 9) {
_global.manaPots = 9;
}
} else if (_root["item" + _local7]._currentframe == 5) {
_global.heldCrosses = _global.heldCrosses + 1;
if (_global.heldCrosses > 99) {
_global.heldCrosses = 99;
}
}
_root["item" + _local7].gotoAndStop(6);
}
_local7++;
}
var _local4 = 0;
while (_local4 < breakablesOnScreen) {
if (nCurrentLane == 1) {
if ((((alice.hitBox.hitTest(_root["break" + _local4].LhitBox) && (Key.isDown(68))) && (!bStopInput)) && (!bUsingMagic)) && (_root["break" + _local4]._currentframe == 1)) {
_root["break" + _local4].gotoAndStop("right");
_root.attachMovie("item", "item" + itemsOnScreen, -10000 + itemsOnScreen, _root["break" + _local4]);
_root["item" + itemsOnScreen].gotoAndStop(3);
_root["item" + itemsOnScreen]._x = _root["break" + _local4]._x + 20;
_root["item" + itemsOnScreen]._y = _root["break" + _local4]._y + 110;
itemsOnScreen++;
} else if ((((alice.hitBox.hitTest(_root["break" + _local4].RhitBox) && (Key.isDown(68))) && (!bStopInput)) && (!bUsingMagic)) && (_root["break" + _local4]._currentframe == 1)) {
_root["break" + _local4].gotoAndStop("left");
_root.attachMovie("item", "item" + itemsOnScreen, -10000 + itemsOnScreen, _root["break" + _local4]);
_root["item" + itemsOnScreen].gotoAndStop(3);
_root["item" + itemsOnScreen]._x = _root["break" + _local4]._x - 200;
_root["item" + itemsOnScreen]._y = _root["break" + _local4]._y + 110;
itemsOnScreen++;
}
}
_local4++;
}
var _local5 = 0;
while (_local5 < (nGrenadesOnScreen + 1)) {
if (_root["nade" + _local5].wait._currentframe == 50) {
if (!_global.pyro) {
_root["nade" + _local5].gotoAndStop(2);
} else {
_root["nade" + _local5].gotoAndStop(3);
}
explodedNades++;
var _local10 = 0;
while (_local10 < enemiesOnScreen) {
if (_root["nade" + _local5].hitTest(_root["enum" + _local10].hitbumpR) || (_root["nade" + _local5].hitTest(_root["enum" + _local10].hitbumpL))) {
if ((_root["nade" + _local5].lane == _root["enum" + _local10].getCurrentLane()) && (_root["enum" + _local10].sState != "dead")) {
_root["enum" + _local10].hit(4, 1);
if (((_root["enum" + _local10].getType() != "slime") && (_root["enum" + _local10].getType() != "small slime")) && (_root["enum" + _local10].getType() != "tiny slime")) {
gib(_root["enum" + _local10]._x, _root["enum" + _local10]._y, _root["enum" + _local10].getCurrentLane(), 15 * _global.goreMultiplier);
}
nEnemiesKilled++;
if ((_root["enum" + _local10].getType() == "zombie") || (_root["enum" + _local10].getType() == "fat zombie")) {
_global.zombiesKilled++;
} else if (_root["enum" + _local10].getType() == "werewolf") {
_global.werewolvesKilled++;
} else if (_root["enum" + _local10].getType() == "vampire") {
_global.vampiresKilled++;
}
}
}
_local10++;
}
}
_local5++;
}
var _local10 = 0;
while (_local10 < enemiesOnScreen) {
if (bUsingCross) {
if (_root["enum" + _local10].sState != "dead") {
if (!_global.longCross) {
if (alice.explodebox.hitTest(_root["enum" + _local10].hitbumpR) || (alice.explodebox.hitTest(_root["enum" + _local10].hitbumpL))) {
_root["enum" + _local10].hit(4, 1);
if (((_root["enum" + _local10].getType() != "slime") && (_root["enum" + _local10].getType() != "small slime")) && (_root["enum" + _local10].getType() != "tiny slime")) {
gib(_root["enum" + _local10]._x, _root["enum" + _local10]._y, _root["enum" + _local10].getCurrentLane(), 15 * _global.goreMultiplier);
}
nEnemiesKilled++;
if ((_root["enum" + _local10].getType() == "zombie") || (_root["enum" + _local10].getType() == "fat zombie")) {
_global.zombiesKilled++;
} else if (_root["enum" + _local10].getType() == "werewolf") {
_global.werewolvesKilled++;
} else if (_root["enum" + _local10].getType() == "vampire") {
_global.vampiresKilled++;
}
}
} else if (_root["enum" + _local10].bEnteredScreen) {
_root["enum" + _local10].hit(4, 1);
if (((_root["enum" + _local10].getType() != "slime") && (_root["enum" + _local10].getType() != "small slime")) && (_root["enum" + _local10].getType() != "tiny slime")) {
gib(_root["enum" + _local10]._x, _root["enum" + _local10]._y, _root["enum" + _local10].getCurrentLane(), 15 * _global.goreMultiplier);
}
nEnemiesKilled++;
if ((_root["enum" + _local10].getType() == "zombie") || (_root["enum" + _local10].getType() == "fat zombie")) {
_global.zombiesKilled++;
} else if (_root["enum" + _local10].getType() == "werewolf") {
_global.werewolvesKilled++;
} else if (_root["enum" + _local10].getType() == "vampire") {
_global.vampiresKilled++;
}
}
}
}
var _local12;
var _local20;
var _local14;
if (bKenOnScreen) {
_local12 = _root.ken._x;
_local20 = _root.ken._y;
_local14 = _root.ken.lane;
} else {
_local12 = alice._x;
_local20 = alice._y;
_local14 = nCurrentLane;
}
_root["enum" + _local10].Update();
_root["enum" + _local10].Think(enemyDecisionValue(_root["enum" + _local10].aggressionValue, _local12 - _root["enum" + _local10]._x, nWeapNo, _root["enum" + _local10].sType, enemiesOnScreen, 0), _local14);
if (((((_root["enum" + _local10].Move(_local12, _local20, _local14) == true) && (!bBlocking)) && (!bHit)) && (!bDead)) && (nInvincible == 0)) {
if (!bKenOnScreen) {
if ((!bHitChance) && (!bUsingMagic)) {
if (nWeapNo == 1) {
alice.gotoAndStop("bhit");
}
if (nWeapNo == 2) {
alice.gotoAndStop("khit");
}
if (nWeapNo == 3) {
alice.gotoAndStop("shit");
}
} else {
myColor = new Color(alice);
myColor.setTransform({ra:60, rb:255, ga:100, gb:-255, ba:100, bb:-255, aa:100, ab:30});
tintTimer = setInterval(tintEnd, 150);
}
_global.health--;
if (bRiding) {
_root.dog.gotoAndStop(1);
bRiding = false;
nDogCount--;
if (alice._x < 320) {
_root.dog._x = alice._x + 120;
}
if (alice._x >= 320) {
_root.dog._x = alice._x - 120;
}
if (nCurrentLane == 1) {
_root.dog._y = 439.05;
} else if (nCurrentLane == 2) {
_root.dog._y = 494.05;
} else if (nCurrentLane == 3) {
_root.dog._y = 540.05;
}
}
if (_global.health == 0) {
alice.gotoAndStop("dead");
if (_global.lives == 1) {
backToMenu = true;
}
bDead = true;
nSpeed = 0;
bDontGetUp = true;
deadTimer = setInterval(deadEnd, 1300);
} else {
hitTimer = setInterval(hitEnd, 150);
}
bHit = true;
}
}
_root["enum" + _local10].setDepth(_local10);
while (((alice.hitBox.hitTest(_root["enum" + _local10].rightbumper) && (nCurrentLane == _root["enum" + _local10].getCurrentLane())) && (bFacingLeft)) && (_root["enum" + _local10].getState() != "dead")) {
alice._x++;
nSpeed = 0;
}
while (((alice.hitBox.hitTest(_root["enum" + _local10].leftbumper) && (nCurrentLane == _root["enum" + _local10].getCurrentLane())) && (bFacingRight)) && (_root["enum" + _local10].getState() != "dead")) {
alice._x--;
nSpeed = 0;
}
if (bHitChance) {
if (bRiding) {
if ((((alice.attackzone.hitTest(_root["enum" + _local10].hitbumpR) && (nCurrentLane == _root["enum" + _local10].getCurrentLane())) && (bFacingLeft)) && (_root["enum" + _local10].getState() != "dead")) || (((alice.attackzone.hitTest(_root["enum" + _local10].hitbumpL) && (nCurrentLane == _root["enum" + _local10].getCurrentLane())) && (bFacingRight)) && (_root["enum" + _local10].getState() != "dead"))) {
var _local9;
if (_root["enum" + _local10].getType() == "vampire") {
_local9 = _root["enum" + _local10].hit(4, nAttack);
} else {
_local9 = _root["enum" + _local10].hit(2, nAttack);
}
if (((_local9 == 0) && (_root["enum" + _local10].getType() != "slime")) && (_root["enum" + _local10].getType() != "small slime")) {
if (_root["enum" + _local10].getType() == "tiny slime") {
nEnemiesKilled++;
} else if (nWeapNo == 3) {
if (_root["enum" + _local10].getType() != "fat zombie") {
gib(_root["enum" + _local10]._x, _root["enum" + _local10]._y, _root["enum" + _local10].getCurrentLane(), 3 * _global.goreMultiplier);
if (_root["enum" + _local10].getType() != "vampire") {
blood(_root["enum" + _local10]._x, _root["enum" + _local10]._y, 30 * _global.goreMultiplier);
}
nEnemiesKilled++;
if ((_root["enum" + _local10].getType() == "zombie") || (_root["enum" + _local10].getType() == "fat zombie")) {
_global.zombiesKilled++;
} else if (_root["enum" + _local10].getType() == "werewolf") {
_global.werewolvesKilled++;
} else if (_root["enum" + _local10].getType() == "vampire") {
_global.vampiresKilled++;
}
}
} else {
gib(_root["enum" + _local10]._x, _root["enum" + _local10]._y, _root["enum" + _local10].getCurrentLane(), 6 * _global.goreMultiplier);
blood(_root["enum" + _local10]._x, _root["enum" + _local10]._y, 50 * _global.goreMultiplier);
nEnemiesKilled++;
if ((_root["enum" + _local10].getType() == "zombie") || (_root["enum" + _local10].getType() == "fat zombie")) {
_global.zombiesKilled++;
} else if (_root["enum" + _local10].getType() == "werewolf") {
_global.werewolvesKilled++;
} else if (_root["enum" + _local10].getType() == "vampire") {
_global.vampiresKilled++;
}
}
} else if (_local9 == 1) {
gib(_root["enum" + _local10]._x, _root["enum" + _local10]._y, _root["enum" + _local10].getCurrentLane(), 12 * _global.goreMultiplier);
blood(_root["enum" + _local10]._x, _root["enum" + _local10]._y, 80 * _global.goreMultiplier);
nEnemiesKilled++;
if ((_root["enum" + _local10].getType() == "zombie") || (_root["enum" + _local10].getType() == "fat zombie")) {
_global.zombiesKilled++;
} else if (_root["enum" + _local10].getType() == "werewolf") {
_global.werewolvesKilled++;
} else if (_root["enum" + _local10].getType() == "vampire") {
_global.vampiresKilled++;
}
if (((_root["enum" + _local10].getType() == "slime") || (_root["enum" + _local10].getType() == "small slime")) || (_root["enum" + _local10].getType() == "tiny slime")) {
nEnemiesKilled++;
}
} else if ((_local9 == 0) && (_root["enum" + _local10].getType() == "slime")) {
nEnemiesKilled++;
var _local15 = "enum" + enemiesOnScreen;
_root.attachMovie("smslime", _local15, _root.getNextHighestDepth());
_root["enum" + enemiesOnScreen]._x = _root["enum" + _local10]._x - 15;
_root["enum" + enemiesOnScreen]._y = _root["enum" + _local10]._y;
if (_root["enum" + _local10].getCurrentLane() == 1) {
_root["enum" + enemiesOnScreen].MakeLane1();
}
if (_root["enum" + _local10].getCurrentLane() == 2) {
_root["enum" + enemiesOnScreen].MakeLane2();
}
if (_root["enum" + _local10].getCurrentLane() == 3) {
_root["enum" + enemiesOnScreen].MakeLane3();
}
enemiesOnScreen++;
_local15 = "enum" + enemiesOnScreen;
_root.attachMovie("smslime", _local15, _root.getNextHighestDepth());
_root["enum" + enemiesOnScreen]._x = _root["enum" + _local10]._x + 15;
_root["enum" + enemiesOnScreen]._y = _root["enum" + _local10]._y;
if (_root["enum" + _local10].getCurrentLane() == 1) {
_root["enum" + enemiesOnScreen].MakeLane1();
}
if (_root["enum" + _local10].getCurrentLane() == 2) {
_root["enum" + enemiesOnScreen].MakeLane2();
}
if (_root["enum" + _local10].getCurrentLane() == 3) {
_root["enum" + enemiesOnScreen].MakeLane3();
}
_root["enum" + enemiesOnScreen].setLane(_root["enum" + _local10].getCurrentLane());
enemiesOnScreen++;
} else if ((_local9 == 0) && (_root["enum" + _local10].getType() == "small slime")) {
nEnemiesKilled++;
var _local15 = "enum" + enemiesOnScreen;
_root.attachMovie("smsmslime", _local15, _root.getNextHighestDepth());
_root["enum" + enemiesOnScreen]._x = _root["enum" + _local10]._x - 15;
_root["enum" + enemiesOnScreen]._y = _root["enum" + _local10]._y;
if (_root["enum" + _local10].getCurrentLane() == 1) {
_root["enum" + enemiesOnScreen].MakeLane1();
}
if (_root["enum" + _local10].getCurrentLane() == 2) {
_root["enum" + enemiesOnScreen].MakeLane2();
}
if (_root["enum" + _local10].getCurrentLane() == 3) {
_root["enum" + enemiesOnScreen].MakeLane3();
}
enemiesOnScreen++;
_local15 = "enum" + enemiesOnScreen;
_root.attachMovie("smsmslime", _local15, _root.getNextHighestDepth());
_root["enum" + enemiesOnScreen]._x = _root["enum" + _local10]._x + 15;
_root["enum" + enemiesOnScreen]._y = _root["enum" + _local10]._y;
if (_root["enum" + _local10].getCurrentLane() == 1) {
_root["enum" + enemiesOnScreen].MakeLane1();
}
if (_root["enum" + _local10].getCurrentLane() == 2) {
_root["enum" + enemiesOnScreen].MakeLane2();
}
if (_root["enum" + _local10].getCurrentLane() == 3) {
_root["enum" + enemiesOnScreen].MakeLane3();
}
enemiesOnScreen++;
}
}
} else if ((((alice.hitBox.hitTest(_root["enum" + _local10].hitbumpR) && (nCurrentLane == _root["enum" + _local10].getCurrentLane())) && (bFacingLeft)) && (_root["enum" + _local10].getState() != "dead")) || (((alice.hitBox.hitTest(_root["enum" + _local10].hitbumpL) && (nCurrentLane == _root["enum" + _local10].getCurrentLane())) && (bFacingRight)) && (_root["enum" + _local10].getState() != "dead"))) {
var _local6;
var _local8 = false;
var _local16 = false;
if (nWeapNo == 1) {
if (_global.batDam1) {
_local6 = 15;
}
if (_global.batDam2) {
_local6 = 20;
} else {
_local6 = 10;
}
if ((_root["enum" + _local10].getType() == "slime") || (_root["enum" + _local10].getType() == "small slime")) {
if (_global.batCutSlimes) {
_local8 = true;
}
}
if (_global.batOneFat && (_root["enum" + _local10].getType() == "fat zombie")) {
_local8 = true;
}
} else if (nWeapNo == 2) {
if (_global.katDam1) {
_local6 = 15;
}
if (_global.katDam2) {
_local6 = 20;
} else {
_local6 = 10;
}
if (_global.katOneVamp && (_root["enum" + _local10].getType() == "vampire")) {
_local8 = true;
}
} else if (nWeapNo == 3) {
if (_global.stakeDam1) {
_local6 = 15;
}
if (_global.stakeDam2) {
_local6 = 20;
} else {
_local6 = 10;
}
if (_global.stakeOneWere && (_root["enum" + _local10].getType() == "werewolf")) {
_local8 = true;
}
if ((_root["enum" + _local10].getType() == "slime") || (_root["enum" + _local10].getType() == "small slime")) {
if (_global.stakeCutSlimes) {
_local16 = true;
}
}
if (_global.stakeOneVamp && (_root["enum" + _local10].getType() == "vampire")) {
_local16 = true;
}
}
if (!bGrounded) {
_local6 = _local6 * 2;
}
var _local9 = _root["enum" + _local10].hit(nWeapNo, nAttack, _local6, _local8, _local16);
if (((_local9 == 0) && (_root["enum" + _local10].getType() != "slime")) && (_root["enum" + _local10].getType() != "small slime")) {
if (_root["enum" + _local10].getType() == "tiny slime") {
nEnemiesKilled++;
} else if (nWeapNo == 3) {
if (_root["enum" + _local10].getType() != "fat zombie") {
gib(_root["enum" + _local10]._x, _root["enum" + _local10]._y, _root["enum" + _local10].getCurrentLane(), 3 * _global.goreMultiplier);
if (_root["enum" + _local10].getType() != "vampire") {
blood(_root["enum" + _local10]._x, _root["enum" + _local10]._y, 30 * _global.goreMultiplier);
}
nEnemiesKilled++;
if ((_root["enum" + _local10].getType() == "zombie") || (_root["enum" + _local10].getType() == "fat zombie")) {
_global.zombiesKilled++;
} else if (_root["enum" + _local10].getType() == "werewolf") {
_global.werewolvesKilled++;
} else if (_root["enum" + _local10].getType() == "vampire") {
_global.vampiresKilled++;
}
}
} else {
gib(_root["enum" + _local10]._x, _root["enum" + _local10]._y, _root["enum" + _local10].getCurrentLane(), 6 * _global.goreMultiplier);
blood(_root["enum" + _local10]._x, _root["enum" + _local10]._y, 50 * _global.goreMultiplier);
nEnemiesKilled++;
if ((_root["enum" + _local10].getType() == "zombie") || (_root["enum" + _local10].getType() == "fat zombie")) {
_global.zombiesKilled++;
} else if (_root["enum" + _local10].getType() == "werewolf") {
_global.werewolvesKilled++;
} else if (_root["enum" + _local10].getType() == "vampire") {
_global.vampiresKilled++;
}
}
} else if (_local9 == 1) {
if (((_root["enum" + _local10].getType() == "slime") || (_root["enum" + _local10].getType() == "small slime")) || (_root["enum" + _local10].getType() == "tiny slime")) {
nEnemiesKilled++;
} else {
gib(_root["enum" + _local10]._x, _root["enum" + _local10]._y, _root["enum" + _local10].getCurrentLane(), 12 * _global.goreMultiplier);
blood(_root["enum" + _local10]._x, _root["enum" + _local10]._y, 80 * _global.goreMultiplier);
nEnemiesKilled++;
if ((_root["enum" + _local10].getType() == "zombie") || (_root["enum" + _local10].getType() == "fat zombie")) {
_global.zombiesKilled++;
} else if (_root["enum" + _local10].getType() == "werewolf") {
_global.werewolvesKilled++;
} else if (_root["enum" + _local10].getType() == "vampire") {
_global.vampiresKilled++;
}
}
} else if ((_local9 == 0) && (_root["enum" + _local10].getType() == "slime")) {
nEnemiesKilled++;
var _local15 = "enum" + enemiesOnScreen;
_root.attachMovie("smslime", _local15, _root.getNextHighestDepth());
_root["enum" + enemiesOnScreen]._x = _root["enum" + _local10]._x - 15;
_root["enum" + enemiesOnScreen]._y = _root["enum" + _local10]._y;
if (_root["enum" + _local10].getCurrentLane() == 1) {
_root["enum" + enemiesOnScreen].MakeLane1();
}
if (_root["enum" + _local10].getCurrentLane() == 2) {
_root["enum" + enemiesOnScreen].MakeLane2();
}
if (_root["enum" + _local10].getCurrentLane() == 3) {
_root["enum" + enemiesOnScreen].MakeLane3();
}
enemiesOnScreen++;
_local15 = "enum" + enemiesOnScreen;
_root.attachMovie("smslime", _local15, _root.getNextHighestDepth());
_root["enum" + enemiesOnScreen]._x = _root["enum" + _local10]._x + 15;
_root["enum" + enemiesOnScreen]._y = _root["enum" + _local10]._y;
if (_root["enum" + _local10].getCurrentLane() == 1) {
_root["enum" + enemiesOnScreen].MakeLane1();
}
if (_root["enum" + _local10].getCurrentLane() == 2) {
_root["enum" + enemiesOnScreen].MakeLane2();
}
if (_root["enum" + _local10].getCurrentLane() == 3) {
_root["enum" + enemiesOnScreen].MakeLane3();
}
_root["enum" + enemiesOnScreen].setLane(_root["enum" + _local10].getCurrentLane());
enemiesOnScreen++;
} else if ((_local9 == 0) && (_root["enum" + _local10].getType() == "small slime")) {
nEnemiesKilled++;
var _local15 = "enum" + enemiesOnScreen;
_root.attachMovie("smsmslime", _local15, _root.getNextHighestDepth());
_root["enum" + enemiesOnScreen]._x = _root["enum" + _local10]._x - 15;
_root["enum" + enemiesOnScreen]._y = _root["enum" + _local10]._y;
if (_root["enum" + _local10].getCurrentLane() == 1) {
_root["enum" + enemiesOnScreen].MakeLane1();
}
if (_root["enum" + _local10].getCurrentLane() == 2) {
_root["enum" + enemiesOnScreen].MakeLane2();
}
if (_root["enum" + _local10].getCurrentLane() == 3) {
_root["enum" + enemiesOnScreen].MakeLane3();
}
enemiesOnScreen++;
_local15 = "enum" + enemiesOnScreen;
_root.attachMovie("smsmslime", _local15, _root.getNextHighestDepth());
_root["enum" + enemiesOnScreen]._x = _root["enum" + _local10]._x + 15;
_root["enum" + enemiesOnScreen]._y = _root["enum" + _local10]._y;
if (_root["enum" + _local10].getCurrentLane() == 1) {
_root["enum" + enemiesOnScreen].MakeLane1();
}
if (_root["enum" + _local10].getCurrentLane() == 2) {
_root["enum" + enemiesOnScreen].MakeLane2();
}
if (_root["enum" + _local10].getCurrentLane() == 3) {
_root["enum" + enemiesOnScreen].MakeLane3();
}
enemiesOnScreen++;
}
if (!bDogAttack) {
bHitChance = false;
}
}
}
_local10++;
}
if (_global.gibsOnScreen >= 300) {
_global.gibsOnScreen = 0;
}
_local10 = 0;
while (_local10 < (_global.gibsOnScreen + 61)) {
if (alice.collectbox.hitTest(_root["particle_mc" + _local10])) {
_root["particle_mc" + _local10].removeMovieClip();
_global.heldGibs++;
}
_local10++;
}
if ((nEnemiesKilled == enemiesOnScreen) && (!bNextScreen)) {
if (nSpawnTime < nTime1) {
} else if (nSpawnTime < nTime2) {
nSpawnTime = nTime2 - 1;
} else if (nSpawnTime < nTime3) {
nSpawnTime = nTime3 - 1;
} else if ((nSpawnTime >= nTime3) && (nTargetTime == 0)) {
nTargetTime = nSpawnTime + 90;
} else if ((nSpawnTime >= nTargetTime) && (!haltProgress)) {
nTargetTime = 0;
enemiesOnScreen = 0;
bNextScreen = true;
_root.camera.topright.gotoAndStop(2);
} else if ((((nSpawnTime >= nTargetTime) && (haltProgress)) && (nScreenNo == 3)) && (_root.camera.hintmc._currentframe == 6)) {
_root.camera.hintmc.hint.gotoAndStop(2);
}
}
if (bShopOnScreen) {
shopwindow.update();
if (bRiding && (!_global.mag4addon)) {
alice.gotoAndStop("dogidle");
} else if (bRiding && (_global.mag4addon)) {
alice.gotoAndStop("ndogidle");
} else {
alice.gotoAndStop("idle");
}
bStopInput = true;
}
if ((((nCurrentLane == 1) && (alice.hitTest(sage))) && (alice._x < (sage._x + 50))) && (bFacingRight)) {
if ((((((Key.isDown(68) && (bGrounded)) && (!bStopInput)) && (!bUsingMagic)) && (!bJAttacking)) && (nEnemiesKilled == enemiesOnScreen)) && (nSpawnTime >= (nTime3 + 90))) {
if (((speechCounter == 0) || (speechCounter == 2)) || (speechCounter == 4)) {
introMovie = true;
nSpeed = 0;
_root.attachMovie("speech", "speechbub", _root.getNextHighestDepth());
_root.speechbub._x = sage._x - 20;
_root.speechbub._y = sage._y;
var _local31 = _root.speechbub.speechbox._height;
_root.speechbub.message.autoSize = true;
_root.speechbub.message.text = speechList[speechCounter];
_root.speechbub.speechbox._height = _root.speechbub.message._height;
_root.speechbub.speechbox._y = _root.speechbub.speechbox._y - _root.speechbub.speechbox._height;
_root.speechbub.speechbox._y = _root.speechbub.speechbox._y + _local31;
_root.speechbub.message._y = _root.speechbub.speechbox._y;
speechTime = true;
nSpeechCountdown = 10;
speechCounter++;
} else if ((speechCounter == 1) || (speechCounter == 3)) {
introMovie = true;
_root.attachMovie("speech", "speechbub", _root.getNextHighestDepth());
_root.speechbub._x = alice._x + 80;
_root.speechbub._y = alice._y - 70;
if (bFacingRight) {
_root.speechbub._xscale = -100;
_root.speechbub.message._xscale = -100;
_root.speechbub.message._x = _root.speechbub.message._x + _root.speechbub.message._width;
_root.speechbub.message._x = _root.speechbub.message._x - 5;
}
var _local31 = _root.speechbub.speechbox._height;
_root.speechbub.message.autoSize = true;
_root.speechbub.message.text = speechList[speechCounter];
_root.speechbub.speechbox._height = _root.speechbub.message._height;
_root.speechbub.speechbox._y = _root.speechbub.speechbox._y - _root.speechbub.speechbox._height;
_root.speechbub.speechbox._y = _root.speechbub.speechbox._y + _local31;
_root.speechbub.message._y = _root.speechbub.speechbox._y;
speechTime = true;
nSpeechCountdown = 10;
speechCounter++;
} else {
bShopOnScreen = true;
camera.attachMovie("shop", "shopwindow", 104850);
camera.shopwindow.items.gotoAndStop(2);
camera.shopwindow._x = -300;
camera.shopwindow._y = -220;
if (_root.camera.hintmc._currentframe == 7) {
_root.camera.hintmc.hint.gotoAndStop(2);
haltProgress = false;
trace("hit");
}
}
}
}
if ((nCurrentLane == 1) && (alice.hitTest(_root.foreground.sign0))) {
if (((((Key.isDown(68) && (bGrounded)) && (!bStopInput)) && (!bUsingMagic)) && (!bJAttacking)) && (nSpeechCountdown == 0)) {
introMovie = true;
_root.foreground.attachMovie("speech", "speechbub", _root.foreground.getNextHighestDepth());
_root.foreground.speechbub._x = _root.foreground.sign0._x - 80;
_root.foreground.speechbub._y = _root.foreground.sign0._y;
var _local31 = _root.foreground.speechbub.speechbox._height;
_root.foreground.speechbub.message.autoSize = true;
_root.foreground.speechbub.message.text = "You can dash and change items/weapons when blocking.";
_root.foreground.speechbub.speechbox._height = _root.foreground.speechbub.message._height;
_root.foreground.speechbub.speechbox._y = _root.foreground.speechbub.speechbox._y - _root.foreground.speechbub.speechbox._height;
_root.foreground.speechbub.speechbox._y = _root.foreground.speechbub.speechbox._y + _local31;
_root.foreground.speechbub.message._y = _root.foreground.speechbub.speechbox._y;
speechTime = true;
nSpeechCountdown = 10;
nSpeed = 0;
if (bRiding && (!_global.mag4addon)) {
alice.gotoAndStop("dogidle");
} else if (bRiding && (_global.mag4addon)) {
alice.gotoAndStop("ndogidle");
} else {
alice.gotoAndStop("idle");
}
}
}
if ((nCurrentLane == 1) && (alice.hitTest(_root.foreground.sign1))) {
if (((((Key.isDown(68) && (bGrounded)) && (!bStopInput)) && (!bUsingMagic)) && (!bJAttacking)) && (nSpeechCountdown == 0)) {
introMovie = true;
_root.foreground.attachMovie("speech", "speechbub", _root.foreground.getNextHighestDepth());
_root.foreground.speechbub._x = _root.foreground.sign1._x - 80;
_root.foreground.speechbub._y = _root.foreground.sign1._y;
var _local31 = _root.foreground.speechbub.speechbox._height;
_root.foreground.speechbub.message.autoSize = true;
_root.foreground.speechbub.message.text = "Double tap arrow keys whilst blocking (A) to get out of a tight spot.";
_root.foreground.speechbub.speechbox._height = _root.foreground.speechbub.message._height;
_root.foreground.speechbub.speechbox._y = _root.foreground.speechbub.speechbox._y - _root.foreground.speechbub.speechbox._height;
_root.foreground.speechbub.speechbox._y = _root.foreground.speechbub.speechbox._y + _local31;
_root.foreground.speechbub.message._y = _root.foreground.speechbub.speechbox._y;
speechTime = true;
nSpeechCountdown = 10;
nSpeed = 0;
if (bRiding && (!_global.mag4addon)) {
alice.gotoAndStop("dogidle");
} else if (bRiding && (_global.mag4addon)) {
alice.gotoAndStop("ndogidle");
} else {
alice.gotoAndStop("idle");
}
}
}
alice._y = alice._y + nGravity;
nGravity++;
if (((alice._x > 650) && (bNextScreen == true)) && (bGrounded)) {
bProgress = true;
bDoOnce = true;
}
if (nInvincible > 0) {
nInvincible--;
}
if (nItemCooldown > 0) {
nItemCooldown--;
}
if (nSelectionCooldown > 0) {
nSelectionCooldown--;
}
if (nUseMagicCooldown > 0) {
nUseMagicCooldown--;
}
if (nPauseTimer > 0) {
nPauseTimer--;
}
if (nSpeechCountdown > 0) {
nSpeechCountdown--;
}
if (alice._y > 650) {
alice._y = aResetPositions[0];
alice._x = aResetPositions[1];
}
if (this.camera.weapIcon.currentFrame != nWeapNo) {
this.camera.weapIcon.gotoAndStop(nWeapNo);
}
if (nWeapCooldown != 0) {
nWeapCooldown--;
}
switch (nCurrentLane) {
case 1 :
alice.swapDepths(1000);
while (_root.ground1.hitTest(alice._x, alice._y + 16, true) || (lane1.hitTest(alice._x, alice._y + 16, true))) {
if (bGrounded == false) {
bStopInput = true;
bGrounded = true;
if ((nWeapNo == 1) && (!bDead)) {
if (!bRiding) {
alice.gotoAndStop("land");
} else if (!_global.mag4addon) {
alice.gotoAndStop("dogidle");
} else {
alice.gotoAndStop("ndogidle");
}
landtimer = setInterval(landPause, 100);
}
if ((nWeapNo == 2) && (!bDead)) {
if (!bRiding) {
alice.gotoAndStop("kland");
} else if (!_global.mag4addon) {
alice.gotoAndStop("dogidle");
} else {
alice.gotoAndStop("ndogidle");
}
landtimer = setInterval(landPause, 100);
}
if ((nWeapNo == 3) && (!bDead)) {
if ((bJAttacking == true) && (!bRiding)) {
alice.gotoAndStop("stakejumpattack");
alice.sjumpattackMC.gotoAndStop("sAttackB");
smashtimer = setInterval(smashDown, 500 - _global.stakeSpe);
} else {
if (!bRiding) {
alice.gotoAndStop("sland");
} else if (!_global.mag4addon) {
alice.gotoAndStop("dogidle");
} else {
alice.gotoAndStop("ndogidle");
}
landtimer = setInterval(landPause, 100);
}
}
}
nGravity = 0;
alice._y--;
}
if ((alice._y >= 439) && (alice._y < 440)) {
alice._y = 439.05;
}
if ((alice._y > 439.05) && (bGrounded == true)) {
bStopInput = true;
bChangingLane = true;
nGravity = 0;
alice._y = alice._y - LANE_SPEED;
if (!bRiding) {
if ((nWeapNo == 1) && (!bHit)) {
alice.gotoAndStop("run");
}
if ((nWeapNo == 2) && (!bHit)) {
alice.gotoAndStop("krun");
}
if ((nWeapNo == 3) && (!bHit)) {
alice.gotoAndStop("srun");
}
} else if (!_global.mag4addon) {
alice.gotoAndStop("dogwalk");
} else {
alice.gotoAndStop("ndogwalk");
}
}
if (((alice._y <= 439.05) && (bGrounded == true)) && (bChangingLane)) {
bStopInput = false;
bChangingLane = false;
}
if (alice._y > 600) {
alice._y = 439.05;
bGrounded = true;
}
break;
case 2 :
alice.swapDepths(2000);
while (_root.ground2.hitTest(alice._x, alice._y + 16, true) || (lane2.hitTest(alice._x, alice._y + 16, true))) {
if (bGrounded == false) {
bStopInput = true;
bGrounded = true;
if ((nWeapNo == 1) && (!bDead)) {
if (!bRiding) {
alice.gotoAndStop("land");
} else if (!_global.mag4addon) {
alice.gotoAndStop("dogidle");
} else {
alice.gotoAndStop("ndogidle");
}
landtimer = setInterval(landPause, 100);
}
if ((nWeapNo == 2) && (!bDead)) {
if (!bRiding) {
alice.gotoAndStop("kland");
} else if (!_global.mag4addon) {
alice.gotoAndStop("dogidle");
} else {
alice.gotoAndStop("ndogidle");
}
landtimer = setInterval(landPause, 100);
}
if ((nWeapNo == 3) && (!bDead)) {
if ((bJAttacking == true) && (!bRiding)) {
alice.gotoAndStop("stakejumpattack");
alice.sjumpattackMC.gotoAndStop("sAttackB");
smashtimer = setInterval(smashDown, 500 - _global.stakeSpe);
} else {
if (!bRiding) {
alice.gotoAndStop("sland");
} else if (!_global.mag4addon) {
alice.gotoAndStop("dogidle");
} else {
alice.gotoAndStop("ndogidle");
}
landtimer = setInterval(landPause, 100);
}
}
}
nGravity = 0;
alice._y--;
}
if ((alice._y >= 494) && (alice._y < 495)) {
alice._y = 494.05;
}
if ((alice._y > 494.05) && (bGrounded == true)) {
bStopInput = true;
bChangingLane = true;
nGravity = 0;
alice._y = alice._y - LANE_SPEED;
if (!bRiding) {
if ((nWeapNo == 1) && (!bHit)) {
alice.gotoAndStop("run");
}
if ((nWeapNo == 2) && (!bHit)) {
alice.gotoAndStop("krun");
}
if ((nWeapNo == 3) && (!bHit)) {
alice.gotoAndStop("srun");
}
} else if (!_global.mag4addon) {
alice.gotoAndStop("dogwalk");
} else {
alice.gotoAndStop("ndogwalk");
}
}
if (((alice._y == 494.05) && (bGrounded == true)) && (bChangingLane)) {
bChangingLane = false;
bStopInput = false;
}
if (((alice._y < 494.05) && (bGrounded == true)) && (!bChangingLane)) {
bStopInput = true;
bChangingLane = true;
nGravity = 0;
alice._y = alice._y + LANE_SPEED;
if (!bRiding) {
if ((nWeapNo == 1) && (!bHit)) {
alice.gotoAndStop("run");
}
if ((nWeapNo == 2) && (!bHit)) {
alice.gotoAndStop("krun");
}
if ((nWeapNo == 3) && (!bHit)) {
alice.gotoAndStop("srun");
}
} else if (!_global.mag4addon) {
alice.gotoAndStop("dogwalk");
} else {
alice.gotoAndStop("ndogwalk");
}
}
break;
case 3 :
alice.swapDepths(3000);
while (_root.ground3.hitTest(alice._x, alice._y + 16, true) || (lane3.hitTest(alice._x, alice._y + 16, true))) {
if (bGrounded == false) {
bStopInput = true;
bGrounded = true;
if ((nWeapNo == 1) && (!bDead)) {
if (!bRiding) {
alice.gotoAndStop("land");
} else if (!_global.mag4addon) {
alice.gotoAndStop("dogidle");
} else {
alice.gotoAndStop("ndogidle");
}
landtimer = setInterval(landPause, 100);
}
if ((nWeapNo == 2) && (!bDead)) {
if (!bRiding) {
alice.gotoAndStop("kland");
} else if (!_global.mag4addon) {
alice.gotoAndStop("dogidle");
} else {
alice.gotoAndStop("ndogidle");
}
landtimer = setInterval(landPause, 100);
}
if ((nWeapNo == 3) && (!bDead)) {
if ((bJAttacking == true) && (!bRiding)) {
alice.gotoAndStop("stakejumpattack");
alice.sjumpattackMC.gotoAndStop("sAttackB");
smashtimer = setInterval(smashDown, 500 - _global.stakeSpe);
} else {
if (!bRiding) {
alice.gotoAndStop("sland");
} else if (!_global.mag4addon) {
alice.gotoAndStop("dogidle");
} else {
alice.gotoAndStop("ndogidle");
}
landtimer = setInterval(landPause, 100);
}
}
}
nGravity = 0;
alice._y--;
}
if ((alice._y >= 540) && (alice._y < 541)) {
alice._y = 540.05;
}
if (((alice._y < 540.05) && (bGrounded == true)) && (!bChangingLane)) {
bStopInput = true;
bChangingLane = true;
nGravity = 0;
alice._y = alice._y + LANE_SPEED;
if (!bRiding) {
if ((nWeapNo == 1) && (!bHit)) {
alice.gotoAndStop("run");
}
if ((nWeapNo == 2) && (!bHit)) {
alice.gotoAndStop("krun");
}
if ((nWeapNo == 3) && (!bHit)) {
alice.gotoAndStop("srun");
}
} else if (!_global.mag4addon) {
alice.gotoAndStop("dogwalk");
} else {
alice.gotoAndStop("ndogwalk");
}
}
if (((alice._y >= 540.05) && (bGrounded == true)) && (bChangingLane)) {
bStopInput = false;
bChangingLane = false;
}
break;
}
if ((_global.health == 0) && (!bDead)) {
alice.gotoAndStop("dead");
if (_global.lives == 1) {
backToMenu = true;
}
bDead = true;
nSpeed = 0;
bDontGetUp = true;
deadTimer = setInterval(deadEnd, 1300);
}
nSpeed = nSpeed * 0.88;
if (alice._x >= 0) {
alice._x = alice._x + nSpeed;
}
if (nScreenNo == 0) {
if (alice._x < 400) {
alice._x = 400;
}
} else if (alice._x < 10) {
alice._x = 10;
}
if ((alice._x > 640) && (!bNextScreen)) {
alice._x = 640;
}
if (((((Key.isDown(32) && (!bStopInput)) && (!bUsingMagic)) && (nWeapCooldown == 0)) && (!bDead)) && (!bRiding)) {
if (((nScreenNo == 1) && (haltProgress)) && (_root.camera.hintmc._currentframe == 3)) {
_root.camera.hintmc.hint.gotoAndStop(2);
}
effectSound = new Sound(this);
effectSound.attachSound("WeaponChange");
effectSound.start();
nWeapNo++;
if (nWeapNo > 3) {
nWeapNo = 1;
}
if (!bGrounded) {
if (nWeapNo == 1) {
alice.gotoAndStop("jump");
}
if (nWeapNo == 2) {
alice.gotoAndStop("kjump");
}
if (nWeapNo == 3) {
alice.gotoAndStop("sjump");
}
}
nWeapCooldown = 6;
}
if ((Key.isDown(27) && (nPauseTimer == 0)) && (blackout._currentframe >= 368)) {
bPaused = true;
nPauseTimer = 5;
if (((nScreenNo == 1) && (haltProgress)) && (_root.camera.hintmc._currentframe == 8)) {
_root.camera.hintmc.hint.gotoAndStop(2);
haltProgress = false;
}
}
if ((((Key.isDown(69) && (!bStopInput)) && (!bUsingMagic)) && (nSelectionCooldown == 0)) && (!bDead)) {
nSelection++;
if ((nSelection == 1) && (_global.healthPacks == 0)) {
nSelection++;
}
if ((nSelection == 2) && (_global.heldGrenades == 0)) {
nSelection++;
}
if ((nSelection == 3) && (_global.manaPots == 0)) {
nSelection++;
}
if ((nSelection == 4) && (_global.heldCrossbows == 0)) {
nSelection++;
}
if ((nSelection == 5) && (_global.heldCrosses == 0)) {
nSelection++;
}
if (((((_global.heldGrenades == 0) && (_global.healthPacks == 0)) && (_global.manaPots == 0)) && (_global.heldCrossbows == 0)) && (_global.heldCrosses == 0)) {
nSelection = 0;
}
if (nSelection > 5) {
nSelection = 1;
}
nSelectionCooldown = 10;
}
bBlocking = false;
if ((((Key.isDown(65) && (!bStopInput)) && (!bUsingMagic)) && (!bDead)) && (!bRiding)) {
bBlocking = true;
if (nBlockDashTimer > 0) {
nBlockDashTimer--;
}
if (nBlockDashRecharge > 0) {
nBlockDashRecharge--;
}
if (nBlockDashChance > 0) {
nBlockDashChance--;
}
if (nBlockDashTimer == 0) {
if (nWeapNo == 1) {
alice.gotoAndStop("block");
}
if (nWeapNo == 2) {
alice.gotoAndStop("kblock");
}
if (nWeapNo == 3) {
alice.gotoAndStop("sblock");
}
nSpeed = 0;
}
bKeyListener.onKeyUp = function () {
if ((Key.getCode() == 39) && (nBlockDashChance == 0)) {
nBlockDashChance = 10;
}
if ((Key.getCode() == 37) && (nBlockDashChance == 0)) {
nBlockDashChance = 10;
}
};
if ((((Key.isDown(37) && (nBlockDashTimer == 0)) && (nBlockDashRecharge == 0)) && (nBlockDashChance > 0)) && (!bDead)) {
if (nWeapNo == 1) {
alice.gotoAndStop("bblockdash");
}
if (nWeapNo == 2) {
alice.gotoAndStop("kblockdash");
}
if (nWeapNo == 3) {
alice.gotoAndStop("sblockdash");
}
nSpeed = -40;
nBlockDashTimer = 5;
nBlockDashRecharge = 25;
alice._xscale = -100;
bFacingLeft = false;
bFacingRight = true;
}
if ((((Key.isDown(39) && (nBlockDashTimer == 0)) && (nBlockDashRecharge == 0)) && (nBlockDashChance > 0)) && (!bDead)) {
if (nWeapNo == 1) {
alice.gotoAndStop("bblockdash");
}
if (nWeapNo == 2) {
alice.gotoAndStop("kblockdash");
}
if (nWeapNo == 3) {
alice.gotoAndStop("sblockdash");
}
nSpeed = 40;
nBlockDashTimer = 5;
nBlockDashRecharge = 25;
alice._xscale = 100;
bFacingLeft = true;
bFacingRight = false;
}
} else {
if (((Key.isDown(37) && (!bStopInput)) && (!bUsingMagic)) && (!bDead)) {
if (((nScreenNo == 0) && (haltProgress)) && (_root.camera.hintmc._currentframe == 2)) {
_root.camera.hintmc.hint.gotoAndStop(2);
haltProgress = false;
}
if (nSpeed > 0) {
nDashCooldown = 20;
}
if (nDashCooldown > 0) {
nDashCooldown--;
}
if (nSpeed >= (-nMaxmove)) {
nSpeed--;
}
if ((nSpeed < (-nMaxmove)) && (nDashChance == 0)) {
nSpeed = -nMaxmove;
}
alice._xscale = 100;
bFacingLeft = true;
bFacingRight = false;
if (bGrounded == true) {
if (!bRiding) {
if ((nWeapNo == 1) && (!bHit)) {
alice.gotoAndStop("run");
}
if ((nWeapNo == 2) && (!bHit)) {
alice.gotoAndStop("krun");
}
if ((nWeapNo == 3) && (!bHit)) {
alice.gotoAndStop("srun");
}
} else if (!_global.mag4addon) {
alice.gotoAndStop("dogwalk");
} else {
alice.gotoAndStop("ndogwalk");
}
}
if ((nDashChance != 0) && (nDashCooldown == 0)) {
if (((nWeapNo == 1) && (!bHit)) && (!bRiding)) {
alice.gotoAndStop("dashbat");
}
if (((nWeapNo == 2) && (!bHit)) && (!bRiding)) {
alice.gotoAndStop("dashkat");
}
if (((nWeapNo == 3) && (!bHit)) && (!bRiding)) {
alice.gotoAndStop("dashstake");
}
nSpeed = -35;
nDashChance--;
if (nDashChance == 0) {
nDashCooldown = 10;
}
}
if ((nDashChance != 0) && (nDashCooldown != 0)) {
nDashChance = 0;
}
} else if (((Key.isDown(39) && (!bStopInput)) && (!bUsingMagic)) && (!bDead)) {
if (((nScreenNo == 0) && (haltProgress)) && (_root.camera.hintmc._currentframe == 2)) {
_root.camera.hintmc.hint.gotoAndStop(2);
haltProgress = false;
}
if (nSpeed < 0) {
nDashCooldown = 20;
}
if (nDashCooldown > 0) {
nDashCooldown--;
}
if (nSpeed <= nMaxmove) {
nSpeed++;
}
if ((nSpeed > nMaxmove) && (nDashChance == 0)) {
nSpeed = nMaxmove;
}
alice._xscale = -100;
bFacingLeft = false;
bFacingRight = true;
if (bGrounded == true) {
if (!bRiding) {
if ((nWeapNo == 1) && (!bHit)) {
alice.gotoAndStop("run");
}
if ((nWeapNo == 2) && (!bHit)) {
alice.gotoAndStop("krun");
}
if ((nWeapNo == 3) && (!bHit)) {
alice.gotoAndStop("srun");
}
} else if (!_global.mag4addon) {
alice.gotoAndStop("dogwalk");
} else {
alice.gotoAndStop("ndogwalk");
}
}
if ((nDashChance != 0) && (nDashCooldown == 0)) {
if (((nWeapNo == 1) && (!bHit)) && (!bRiding)) {
alice.gotoAndStop("dashbat");
}
if (((nWeapNo == 2) && (!bHit)) && (!bRiding)) {
alice.gotoAndStop("dashkat");
}
if (((nWeapNo == 3) && (!bHit)) && (!bRiding)) {
alice.gotoAndStop("dashstake");
}
nSpeed = 35;
nDashChance--;
if (nDashChance == 0) {
nDashCooldown = 20;
}
}
if ((nDashChance != 0) && (nDashCooldown != 0)) {
nDashChance = 0;
}
} else if (((nSpeed < 1) && (nSpeed > -1)) && (!bDead)) {
nSpeed = 0;
nDashChance = 0;
nDashCooldown = 20;
if ((bGrounded && (!bStopInput)) && (!bUsingMagic)) {
if (!bRiding) {
if ((nWeapNo == 1) && (!bHit)) {
alice.gotoAndStop("idle");
}
if ((nWeapNo == 2) && (!bHit)) {
alice.gotoAndStop("kidle");
}
if ((nWeapNo == 3) && (!bHit)) {
alice.gotoAndStop("sidle");
}
} else if (!_global.mag4addon) {
alice.gotoAndStop("dogidle");
} else {
alice.gotoAndStop("ndogidle");
}
}
}
if (((((Key.isDown(83) && (bGrounded == true)) && (!bStopInput)) && (!bUsingMagic)) && (nGravity == 0)) && (!bDead)) {
nGravity = -14;
bGrounded = false;
if (!bRiding) {
if ((nWeapNo == 1) && (!bHit)) {
alice.gotoAndStop("jump");
}
if ((nWeapNo == 2) && (!bHit)) {
alice.gotoAndStop("kjump");
}
if ((nWeapNo == 3) && (!bHit)) {
alice.gotoAndStop("sjump");
}
} else if (!_global.mag4addon) {
alice.gotoAndStop("dogjump");
} else {
alice.gotoAndStop("ndogjump");
}
}
if (((Key.isDown(68) && (bDead)) && (_global.lives > 0)) && (!bDontGetUp)) {
effectSound = new Sound(this);
effectSound.attachSound("Respawn");
effectSound.start();
bDead = false;
bStopInput = false;
nInvincible = 50;
_global.health = _global.maxHealth;
_global.lives--;
}
if ((((((Key.isDown(68) && (!bGrounded)) && (!bStopInput)) && (!bUsingMagic)) && (!bJAttacking)) && (!bDead)) && (!bRiding)) {
if (nWeapNo == 1) {
alice.gotoAndStop("batjumpattack");
bJAttacking = true;
bHitChance = true;
}
if (nWeapNo == 2) {
alice.gotoAndStop("katjumpattack");
bJAttacking = true;
bHitChance = true;
}
if (nWeapNo == 3) {
if (nGravity > 0) {
alice.gotoAndStop("stakejumpattack");
alice.sjumpattackMC.gotoAndStop("sAttackA");
nSpeed = 0;
if (nGravity < 12) {
nGravity = 12;
}
bJAttacking = true;
bHitChance = true;
}
}
}
if (((((Key.isDown(68) && (bGrounded == true)) && (!bStopInput)) && (!bUsingMagic)) && (!bAttacking)) && (!bDead)) {
if (bRiding) {
if (!_global.mag4addon) {
alice.gotoAndStop("dogattack");
} else {
alice.gotoAndStop("ndogattack");
blasttimer = setInterval(blaststart, 700);
}
bDogAttack = true;
dogAttackTimer = setInterval(dogAttackEnd, 1200);
} else if (nAttack == 0) {
if (nWeapNo == 1) {
alice.gotoAndStop("attackbat");
alice.attackBAT.gotoAndStop("batattackA");
bAttackAtimer = setInterval(batAttackAEnd, 500 - _global.batSpe);
}
if (nWeapNo == 2) {
alice.gotoAndStop("attackkat");
alice.attackKAT.gotoAndStop("katattackA");
kAttackAtimer = setInterval(katAttackAEnd, 400 - _global.katSpe);
}
if (nWeapNo == 3) {
alice.gotoAndStop("attackstake");
sAttacktimer = setInterval(stakeAttackEnd, 600 - _global.stakeSpe);
}
nAttack = 1;
} else if (nAttack == 1) {
if (nWeapNo == 1) {
alice.gotoAndStop("attackbat");
alice.attackBAT.gotoAndStop("batattackB");
bAttackBtimer = setInterval(batAttackBEnd, 300 - _global.batSpe);
}
if (nWeapNo == 2) {
alice.gotoAndStop("attackkat");
alice.attackKAT.gotoAndStop("katattackB");
kAttackBtimer = setInterval(katAttackBEnd, 400 - _global.katSpe);
}
if (nWeapNo == 3) {
alice.gotoAndStop("attackstake");
sAttacktimer = setInterval(stakeAttackEnd, 600 - _global.stakeSpe);
}
nAttack = 0;
}
bStopInput = true;
if ((nDashChance == 0) && (nDashCooldown != 0)) {
nSpeed = 0;
}
bAttacking = true;
bHitChance = true;
} else if (((((Key.isDown(68) && (bGrounded == true)) && (!bStopInput)) && (bUsingMagic)) && (nUseMagicCooldown == 0)) && (!bDead)) {
bUsingMagic = false;
nChargeAmount = 0;
bStopInput = true;
if (nWeapNo == 1) {
alice.gotoAndStop("batmagicuse");
magictimer = setInterval(usemagictime, 300);
}
if (nWeapNo == 2) {
alice.gotoAndStop("katmagicuse");
magictimer = setInterval(usemagictime, 300);
}
if (nWeapNo == 3) {
alice.gotoAndStop("stakemagicuse");
magictimer = setInterval(usemagictime, 300);
}
if (((_root.camera.manabar.charge._currentframe - 1) == 1) && (!bProgress)) {
nUseMagicCooldown = 30;
_global.mana = _global.mana - 1;
fireball();
nFireballs++;
if (((nScreenNo == 2) && (haltProgress)) && (_root.camera.hintmc._currentframe == 5)) {
_root.camera.hintmc.hint.gotoAndStop(2);
haltProgress = false;
}
}
if (((_root.camera.manabar.charge._currentframe - 1) == 2) && (!bProgress)) {
nUseMagicCooldown = 30;
_global.mana = _global.mana - 2;
darkbolt(false);
nBolts++;
if (_global.mag2addon) {
darkbolt(true);
nBolts++;
}
}
if (((_root.camera.manabar.charge._currentframe - 1) == 3) && (!bProgress)) {
nUseMagicCooldown = 30;
_global.mana = _global.mana - 3;
var _local29;
if (_global.mag3addon) {
_local29 = 40;
} else {
_local29 = 20;
}
var _local19 = 0;
while (_local19 < _local29) {
createPuppy(nPuppiesOnScreen, nGrenadesOnScreen);
nPuppiesOnScreen++;
nGrenadesOnScreen++;
_local19++;
}
}
if ((_root.camera.manabar.charge._currentframe - 1) == 4) {
nUseMagicCooldown = 30;
_global.mana = _global.mana - 4;
createDog();
bDogOnScreen = true;
}
if (((_root.camera.manabar.charge._currentframe - 1) == 5) && (!bProgress)) {
nUseMagicCooldown = 30;
_global.mana = _global.mana - 5;
createKen();
bKenOnScreen = true;
}
}
oKeyListener.onKeyUp = function () {
if (Key.getCode() == 68) {
bAttacking = false;
}
if (((Key.getCode() == 39) && (nSpeed > 3)) && (nDashChance == 0)) {
nDashChance = 2;
}
if (((Key.getCode() == 37) && (nSpeed < -3)) && (nDashChance == 0)) {
nDashChance = 2;
}
};
if ((((Key.isDown(38) && (!bStopInput)) && (!bUsingMagic)) && (bGrounded)) && (!bDead)) {
if (nCurrentLane > 1) {
nCurrentLane--;
bStopInput = true;
}
}
if (((((Key.isDown(40) && (!bStopInput)) && (!bUsingMagic)) && (bGrounded)) && (!bDead)) && (alice._y > 439)) {
if (nCurrentLane < 3) {
nCurrentLane++;
bStopInput = true;
}
}
if (((Key.isDown(82) && (!bStopInput)) && (!bUsingMagic)) && (!bDead)) {
if (((_root.camera.secondaryslot._currentframe == 2) && (nItemCooldown == 0)) && (_global.health < _global.maxHealth)) {
nItemCooldown = 20;
_global.healthPacks--;
_global.health = _global.health + _global.healAmount;
if (_global.health > _global.maxHealth) {
_global.health = _global.maxHealth;
}
effectSound = new Sound(this);
effectSound.attachSound("healthPickup");
effectSound.start();
} else if ((((_root.camera.secondaryslot._currentframe == 3) && (nItemCooldown == 0)) && (!bNextScreen)) && (!bRiding)) {
nItemCooldown = 20;
_global.heldGrenades--;
nGrenadesOnScreen++;
throwGrenade(alice._x, alice._y, bFacingRight, nGrenadesOnScreen, nCurrentLane);
} else if (((_root.camera.secondaryslot._currentframe == 4) && (nItemCooldown == 0)) && (_global.mana < _global.maxMana)) {
if (((nScreenNo == 2) && (haltProgress)) && (_root.camera.hintmc._currentframe == 4)) {
_root.camera.hintmc.hint.gotoAndStop(2);
}
nItemCooldown = 20;
_global.manaPots--;
_global.mana = _global.mana + _global.manaAmount;
if (_global.mana > _global.maxMana) {
_global.mana = _global.maxMana;
}
effectSound = new Sound(this);
effectSound.attachSound("manaUp");
effectSound.start();
} else if ((((_root.camera.secondaryslot._currentframe == 5) && (nItemCooldown == 0)) && (!bNextScreen)) && (!bRiding)) {
nItemCooldown = 20;
alice.gotoAndStop("crossbow");
bStopInput = true;
shootTimer = setInterval(shooting, 300);
_global.heldCrossbows--;
nCrossbowBolts++;
crossbowFire();
} else if ((((_root.camera.secondaryslot._currentframe == 6) && (nItemCooldown == 0)) && (!bNextScreen)) && (!bRiding)) {
nItemCooldown = 20;
bStopInput = true;
bUsingCross = true;
if (!_global.longCross) {
alice.gotoAndStop("crossshort");
crossTimer = setInterval(crossfunc, 600);
} else {
alice.gotoAndStop("cross");
crossTimer = setInterval(crossfunc, 1200);
}
_global.heldCrosses--;
}
}
}
};
Instance of Symbol 3436 MovieClip "lane1" in Frame 5
onClipEvent (enterFrame) {
this._visible = false;
}
Instance of Symbol 3438 MovieClip "lane2" in Frame 5
onClipEvent (enterFrame) {
this._visible = false;
}
Instance of Symbol 3439 MovieClip "lane3" in Frame 5
onClipEvent (enterFrame) {
this._visible = false;
}
Instance of Symbol 3853 MovieClip "dispenserR" in Frame 5
onClipEvent (enterFrame) {
this._visible = false;
}
Instance of Symbol 3853 MovieClip "dispenserL" in Frame 5
onClipEvent (enterFrame) {
this._visible = false;
}
Instance of Symbol 3867 MovieClip "border" in Frame 5
/* no clip actions */
Frame 6
function stopMoveAllMc(mc) {
mc.stopit = true;
for (var _local2 in mc) {
if (typeof(mc[_local2]) == "movieclip") {
mc[_local2].stopit = true;
stopMoveAllMc(mc[_local2]);
}
}
}
function startMoveAllMc(mc) {
mc.stopit = false;
for (var _local2 in mc) {
if (typeof(mc[_local2]) == "movieclip") {
mc[_local2].stopit = false;
startMoveAllMc(mc[_local2]);
}
}
}
function getAllMc(mc) {
for (var _local2 in mc) {
if (typeof(mc[_local2]) == "movieclip") {
mc[_local2].stop();
getAllMc(mc[_local2]);
}
}
}
function playAllMc(mc) {
for (var _local2 in mc) {
if (typeof(mc[_local2]) == "movieclip") {
mc[_local2].play();
playAllMc(mc[_local2]);
}
}
}
function blaststart() {
puppyblast();
nPupblasts++;
clearInterval(blasttimer);
}
function landPause() {
bStopInput = false;
bJAttacking = false;
bHitChance = false;
clearInterval(landtimer);
}
function smashDown() {
bStopInput = false;
bJAttacking = false;
bHitChance = false;
clearInterval(smashtimer);
}
function batAttackAEnd() {
bStopInput = false;
bHitChance = false;
clearInterval(bAttackAtimer);
}
function dogAttackEnd() {
bStopInput = false;
bHitChance = false;
bDogAttack = false;
clearInterval(dogAttackTimer);
}
function batAttackBEnd() {
bStopInput = false;
bHitChance = false;
clearInterval(bAttackBtimer);
}
function katAttackAEnd() {
bStopInput = false;
bHitChance = false;
clearInterval(kAttackAtimer);
}
function katAttackBEnd() {
bStopInput = false;
bHitChance = false;
clearInterval(kAttackBtimer);
}
function shooting() {
bStopInput = false;
clearInterval(shootTimer);
}
function crossfunc() {
bStopInput = false;
bUsingCross = false;
clearInterval(crossTimer);
}
function stakeAttackEnd() {
bStopInput = false;
bHitChance = false;
clearInterval(sAttacktimer);
}
function hitEnd() {
bHit = false;
clearInterval(hitTimer);
}
function tintEnd() {
myColor.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0});
clearInterval(tintTimer);
}
function deadEnd() {
bDontGetUp = false;
bHit = false;
clearInterval(deadTimer);
}
function usemagictime() {
bStopInput = false;
clearInterval(magictimer);
}
function makeEnemy(x, y, xpush, type) {
var _local2 = "enum" + enemiesOnScreen;
_root.attachMovie(type, _local2, _root.getNextHighestDepth());
_root[_local2]._x = x + xpush;
_root[_local2]._y = y;
_root[_local2].longScreen = true;
if (enemy.getCurrentLane() == 1) {
_root[_local2].MakeLane1();
}
if (enemy.getCurrentLane() == 2) {
_root[_local2].MakeLane2();
}
if (enemy.getCurrentLane() == 3) {
_root[_local2].MakeLane3();
}
enemiesOnScreen++;
}
function makeSmSlime(enemy, xpush, type) {
var _local2 = "enum" + enemiesOnScreen;
_root.attachMovie(type, _local2, _root.getNextHighestDepth());
_root[_local2]._x = enemy._x + xpush;
_root[_local2]._y = enemy._y;
if (enemy.getCurrentLane() == 1) {
_root[_local2].MakeLane1();
}
if (enemy.getCurrentLane() == 2) {
_root[_local2].MakeLane2();
}
if (enemy.getCurrentLane() == 3) {
_root[_local2].MakeLane3();
}
}
function enemyDecisionValue(aggressionVal, proximityVal, weapNo, enemyType, enemiesOnScreen, bonusVal) {
var _local4 = Math.floor(Math.random() * 10) + 1;
var _local1 = aggressionVal;
if ((proximityVal > -40) && (proximityVal < 40)) {
_local1 = _local1 + 20;
}
if ((proximityVal > -100) && (proximityVal < 100)) {
_local1 = _local1 + 10;
}
if ((enemyType == "zombie") && (weapNo == 1)) {
_local1 = _local1 - 20;
}
if ((enemyType == "vamp") && (weapNo == 3)) {
_local1 = _local1 - 30;
}
if ((enemyType == "slime") && (weapNo == 2)) {
_local1 = _local1 - 20;
}
if ((enemyType == "smslime") && (weapNo == 2)) {
_local1 = _local1 - 20;
}
if (enemiesOnScreen > 8) {
_local1 = _local1 - 10;
} else if (enemiesOnScreen < 5) {
_local1 = _local1 + 30;
} else if (enemiesOnScreen == 1) {
_local1 = _local1 - 20;
}
if ((Math.floor(Math.random() * 2) + 1) == 1) {
_local1 = _local1 - _local4;
} else {
_local1 = _local1 + _local4;
}
_local1 = _local1 + bonusVal;
if (_local1 > 100) {
_local1 = 100;
}
if (_local1 < 0) {
_local1 = 0;
}
return(_local1);
}
function blood(targetX, targetY, blood) {
if (blood > 200) {
blood = 200;
}
if ((_global.gibsOnScreen - nPickedUpGibs) < 300) {
var _local7 = 0;
while (_local7 < blood) {
var _local6 = flash.display.BitmapData.loadBitmap("blood");
var _local4 = _root.createEmptyMovieClip("main_holder", _root.getNextHighestDepth());
var _local5 = _local4.createEmptyMovieClip("internal_holder", _local4.getNextHighestDepth());
_local5._x = (-_local6.width) / 2;
_local5._y = (-_local6.height) / 2;
_local5.attachBitmap(_local6, _local5.getNextHighestDepth(), "never");
_local4._x = targetX;
_local4._y = targetY - 30;
_local4._rotation = random(360);
_local4._alpha = random(30) + 70;
_local4.boundyLeft = targetX - 100;
_local4.boundyTop = targetY - 100;
_local4.boundyRight = targetX + 100;
_local4.boundyBottom = targetY + 30;
_local4.speedX = Math.random(5) - Math.random(5);
_local4.speedY = Math.random(5) - Math.random(5);
_local4.speedX = _local4.speedX * 5;
_local4.speedY = _local4.speedY * 5;
_local4.stopit = false;
numberOfParticles++;
_local4.onEnterFrame = function () {
if (!this.stopit) {
this._x = this._x + this.speedX;
this._y = this._y + this.speedY;
if (this.speedY < 5) {
this.speedY = this.speedY + 0.3;
}
if (((((this._alpha <= 0) || (this._x < this.boundyLeft)) || (this._x > this.boundyRight)) || (this._y < this.boundyTop)) || (this._y > this.boundyBottom)) {
this.removeMovieClip();
numberOfParticles--;
}
}
};
_local7++;
}
}
}
function throwGrenade(playerX, playerY, throwright, nadesOnScreen, targetLane) {
if (nadesOnScreen > 98) {
nadesOnScreen = 0;
}
var _local3 = "nade" + nadesOnScreen;
_root.attachMovie("grenade", _local3, -9000 + nadesOnScreen);
_root[_local3]._x = playerX;
_root[_local3]._y = playerY - 40;
if (throwright) {
_root[_local3].speedX = 3.5;
} else {
_root[_local3].speedX = -3.5;
}
_root[_local3].speedY = -3;
_root[_local3].speedX = _root[_local3].speedX * 2;
_root[_local3].speedY = _root[_local3].speedY * 2;
_root[_local3].YMax = 20;
_root[_local3].lane = targetLane;
_root[_local3].stopit = false;
_root[_local3].onEnterFrame = function () {
if (!this.stopit) {
if (_root["lane" + targetLane].hitTest(this._x, this._y + 20, true)) {
this.speedY = -this.speedY;
if (this.YMax > 1) {
this.YMax = this.YMax - 10;
}
if (this.YMax <= 1) {
this.speedY = 0;
}
if (this.speedX > 0) {
this.speedX = this.speedX - 1;
}
if (this.speedX < 0) {
this.speedX = this.speedX + 1;
}
if ((this.speedX > -2) && (this.speedX < 2)) {
this.speedX = 0;
}
}
this._x = this._x + this.speedX;
this._y = this._y + this.speedY;
if (this.speedY < this.YMax) {
this.speedY = this.speedY + 2;
}
}
};
}
function darkbolt(reverse) {
if (nBolts > 98) {
nBolts = 0;
}
effectSound = new Sound(this);
effectSound.attachSound("Bolt");
effectSound.start();
var _local5 = "darkbolt" + nBolts;
_root.attachMovie("darkbolt", _local5, (alice.getDepth() + 800) + nBolts);
_root[_local5]._x = alice._x;
_root[_local5]._y = alice._y - 40;
_root[_local5].goRight = false;
_root[_local5].lane = nCurrentLane;
if (!reverse) {
if (bFacingRight == true) {
_root[_local5]._xscale = -100;
_root[_local5].goRight = true;
}
} else if (bFacingLeft == true) {
_root[_local5]._xscale = -100;
_root[_local5].goRight = true;
}
_root[_local5].stopit = false;
_root[_local5].onEnterFrame = function () {
if (!this.stopit) {
if (((startBossFight && (this._x > 300)) && (nBoss1Elec != 0)) && (this._y > 300)) {
createSlimeExplosion(this._x + 20, this._y);
nBossDamage = nBossDamage + 15;
camera.bosslifebars.seb.bar._xscale = 100 - nBossDamage;
if (nBossDamage >= 100) {
boss1.gotoAndStop(5);
camera.bosslifebars.gotoAndStop(1);
endBossFight();
}
this.removeMovieClip();
}
if ((this._x > 680) || (this._x < -20)) {
this.removeMovieClip();
}
if (this.goRight == true) {
this._x = this._x + 10;
} else {
this._x = this._x - 10;
}
var _local4 = 0;
while (_local4 < enemiesOnScreen) {
if (_root["enum" + _local4].sState != "dead") {
if (this.hitbox.hitTest(_root["enum" + _local4].hitbumpR) || (this.hitbox.hitTest(_root["enum" + _local4].hitbumpL))) {
_root["enum" + _local4].hit(4, 1);
if (((_root["enum" + _local4].getType() != "slime") && (_root["enum" + _local4].getType() != "small slime")) && (_root["enum" + _local4].getType() != "tiny slime")) {
gib(_root["enum" + _local4]._x, _root["enum" + _local4]._y, _root["enum" + _local4].getCurrentLane(), 15 * _global.goreMultiplier);
}
nEnemiesKilled++;
if ((_root["enum" + _local4].getType() == "zombie") || (_root["enum" + _local4].getType() == "fat zombie")) {
_global.zombiesKilled++;
} else if (_root["enum" + _local4].getType() == "werewolf") {
_global.werewolvesKilled++;
} else if (_root["enum" + _local4].getType() == "vampire") {
_global.vampiresKilled++;
}
}
}
_local4++;
}
}
};
}
function crossbowFire() {
if (nCrossbowBolts > 98) {
nCrossbowBolts = 0;
}
var _local6 = "crossbowbolt" + nCrossbowBolts;
_root.attachMovie("crossbowbolt", _local6, (alice.getDepth() + 600) + nCrossbowBolts);
_root[_local6]._x = alice._x;
_root[_local6]._y = alice._y - 40;
_root[_local6].goRight = false;
_root[_local6].lane = nCurrentLane;
if (bFacingRight == true) {
_root[_local6]._xscale = -100;
_root[_local6].goRight = true;
}
_root[_local6].stopit = false;
_root[_local6].onEnterFrame = function () {
if (!this.stopit) {
if (((startBossFight && (this._x > 300)) && (nBoss1Elec != 0)) && (this._y > 300)) {
createSlimeExplosion(this._x + 20, this._y);
nBossDamage = nBossDamage + 5;
camera.bosslifebars.seb.bar._xscale = 100 - nBossDamage;
if (nBossDamage >= 100) {
boss1.gotoAndStop(5);
camera.bosslifebars.gotoAndStop(1);
endBossFight();
}
this.removeMovieClip();
}
if ((this._x > 680) || (this._x < -20)) {
this.removeMovieClip();
}
if (this.goRight == true) {
this._x = this._x + 15;
} else {
this._x = this._x - 15;
}
var _local4 = 0;
while (_local4 < enemiesOnScreen) {
if (_root["enum" + _local4].sState != "dead") {
if (this.hitTest(_root["enum" + _local4].hitbumpR) || (this.hitTest(_root["enum" + _local4].hitbumpL))) {
if (this.lane == _root["enum" + _local4].getCurrentLane()) {
if (_global.incendiary) {
var _local5 = _root["enum" + _local4].hit(4, 1);
} else if (_root["enum" + _local4].getType() == "werewolf") {
var _local5 = _root["enum" + _local4].hit(4, 1, _global.silver);
} else {
var _local5 = _root["enum" + _local4].hit(3, 1);
}
if (_local5 != 2) {
if (((_root["enum" + _local4].getType() != "slime") && (_root["enum" + _local4].getType() != "small slime")) && (_root["enum" + _local4].getType() != "tiny slime")) {
gib(_root["enum" + _local4]._x, _root["enum" + _local4]._y, _root["enum" + _local4].getCurrentLane(), 15 * _global.goreMultiplier);
blood(_root["enum" + _local4]._x, _root["enum" + _local4]._y, 30 * _global.goreMultiplier);
}
nEnemiesKilled++;
if ((_root["enum" + _local4].getType() == "zombie") || (_local4)) {
_global.zombiesKilled++;
} else if (_root["enum" + _local4].getType() == "werewolf") {
_global.werewolvesKilled++;
} else if (_root["enum" + _local4].getType() == "vampire") {
_global.vampiresKilled++;
}
}
if (!_global.sureShot) {
this.removeMovieClip();
}
}
}
}
_local4++;
}
}
};
}
function puppyblast() {
if (nPupblasts > 98) {
nPupblasts = 0;
}
var _local5 = "puppyblast" + nPupblasts;
_root.attachMovie("puppyblast", _local5, (alice.getDepth() + 900) + nPupblasts);
_root[_local5]._y = alice._y - 40;
_root[_local5]._x = alice._x + 60;
_root[_local5].goRight = true;
_root[_local5].lane = nCurrentLane;
if (bFacingRight == false) {
_root[_local5]._xscale = -100;
_root[_local5].goRight = false;
_root[_local5]._x = alice._x - 60;
}
_root[_local5].stopit = false;
_root[_local5].onEnterFrame = function () {
if (!this.stopit) {
if (((startBossFight && (this._x > 300)) && (nBoss1Elec != 0)) && (this._y > 300)) {
createSlimeExplosion(this._x + 20, this._y);
nBossDamage = nBossDamage + 8;
camera.bosslifebars.seb.bar._xscale = 100 - nBossDamage;
if (nBossDamage >= 100) {
boss1.gotoAndStop(5);
camera.bosslifebars.gotoAndStop(1);
endBossFight();
}
this.removeMovieClip();
}
if ((this._x > 680) || (this._x < -20)) {
this.removeMovieClip();
}
if (this.goRight == true) {
this._x = this._x + 10;
} else {
this._x = this._x - 10;
}
var _local4 = 0;
while (_local4 < enemiesOnScreen) {
if (_root["enum" + _local4].sState != "dead") {
if (this.hitTest(_root["enum" + _local4].hitbumpR) || (this.hitbox.hitTest(_root["enum" + _local4].hitbumpL))) {
if (this.lane == _root["enum" + _local4].getCurrentLane()) {
_root["enum" + _local4].hit(4, 1);
if (((_root["enum" + _local4].getType() != "slime") && (_root["enum" + _local4].getType() != "small slime")) && (_root["enum" + _local4].getType() != "tiny slime")) {
gib(_root["enum" + _local4]._x, _root["enum" + _local4]._y, _root["enum" + _local4].getCurrentLane(), 15 * _global.goreMultiplier);
}
nEnemiesKilled++;
if ((_root["enum" + _local4].getType() == "zombie") || (_root["enum" + _local4].getType() == "fat zombie")) {
_global.zombiesKilled++;
} else if (_root["enum" + _local4].getType() == "werewolf") {
_global.werewolvesKilled++;
} else if (_root["enum" + _local4].getType() == "vampire") {
_global.vampiresKilled++;
}
}
}
}
_local4++;
}
}
};
}
function fireball() {
if (nFireballs > 98) {
nFireballs = 0;
}
var _local5 = "fireball" + nFireballs;
if (!_global.mag1addon) {
_root.attachMovie("fireball", _local5, (alice.getDepth() + 700) + nFireballs);
effectSound = new Sound(this);
effectSound.attachSound("Explosion100");
effectSound.start();
} else {
_root.attachMovie("superfireball", _local5, (alice.getDepth() + 700) + nFireballs);
effectSound = new Sound(this);
effectSound.attachSound("BigExplosion");
effectSound.start();
}
_root[_local5]._x = alice._x;
_root[_local5]._y = alice._y - 40;
_root[_local5].goRight = false;
_root[_local5].lane = nCurrentLane;
if (bFacingRight == true) {
_root[_local5]._xscale = -100;
_root[_local5].goRight = true;
}
_root[_local5].stopit = false;
_root[_local5].onEnterFrame = function () {
if (!this.stopit) {
if (((startBossFight && (this._x > 300)) && (nBoss1Elec != 0)) && (this._y > 300)) {
createSlimeExplosion(this._x + 20, this._y);
nBossDamage = nBossDamage + 8;
camera.bosslifebars.seb.bar._xscale = 100 - nBossDamage;
if (nBossDamage >= 100) {
boss1.gotoAndStop(5);
camera.bosslifebars.gotoAndStop(1);
endBossFight();
}
this.removeMovieClip();
}
if ((this._x > 680) || (this._x < -20)) {
this.removeMovieClip();
}
if (this.goRight == true) {
this._x = this._x + 10;
} else {
this._x = this._x - 10;
}
var _local4 = 0;
while (_local4 < enemiesOnScreen) {
if (_root["enum" + _local4].sState != "dead") {
if (this.hitbox.hitTest(_root["enum" + _local4].hitbumpR) || (this.hitbox.hitTest(_root["enum" + _local4].hitbumpL))) {
if (this.lane == _root["enum" + _local4].getCurrentLane()) {
_root["enum" + _local4].hit(4, 1);
if (((_root["enum" + _local4].getType() != "slime") && (_root["enum" + _local4].getType() != "small slime")) && (_root["enum" + _local4].getType() != "tiny slime")) {
gib(_root["enum" + _local4]._x, _root["enum" + _local4]._y, _root["enum" + _local4].getCurrentLane(), 15 * _global.goreMultiplier);
}
nEnemiesKilled++;
if ((_root["enum" + _local4].getType() == "zombie") || (_root["enum" + _local4].getType() == "fat zombie")) {
_global.zombiesKilled++;
} else if (_root["enum" + _local4].getType() == "werewolf") {
_global.werewolvesKilled++;
} else if (_root["enum" + _local4].getType() == "vampire") {
_global.vampiresKilled++;
}
if (!_global.mag1addon) {
this.removeMovieClip();
}
}
}
}
_local4++;
}
}
};
}
function createDog() {
effectSound = new Sound(this);
effectSound.attachSound("Summon");
effectSound.start();
bDogOnScreen = true;
nDogCount = 3;
if (!_global.mag4addon) {
_root.attachMovie("dogmount", "dog", alice.getDepth() - 1);
} else {
_root.attachMovie("ndogmount", "dog", alice.getDepth() - 1);
nDogCount = 5;
}
_root.dog._x = alice._x;
if (nCurrentLane == 1) {
_root.dog._y = 439.05;
} else if (nCurrentLane == 2) {
_root.dog._y = 494.05;
} else if (nCurrentLane == 3) {
_root.dog._y = 540.05;
}
_root.dog.facingLeft = false;
_root.dog.timer = 0;
_root.dog.lane = nCurrentLane;
_root.dog.gotoAndStop(2);
_root.dog.onEnterFrame = function () {
if (this._currentframe == 3) {
this.swapDepths(alice.getDepth() - 1);
_root.dog.lane = nCurrentLane;
}
if (nDogCount == 0) {
this.gotoAndStop(4);
}
if ((this.hitbox.hitTest(alice) && (!bGrounded)) && (!bRiding)) {
var _local4;
if (nCurrentLane == 1) {
_local4 = 439.05;
} else if (nCurrentLane == 2) {
_local4 = 494.05;
} else if (nCurrentLane == 3) {
_local4 = 540.05;
}
if (((alice._y > (_local4 - 35)) && (nGravity > 6)) && (this.lane == nCurrentLane)) {
this.gotoAndStop(3);
if (!_global.mag4addon) {
alice.gotoAndStop("dogjump");
} else {
alice.gotoAndStop("ndogjump");
}
bRiding = true;
}
}
};
}
function createKen() {
effectSound = new Sound(this);
effectSound.attachSound("Summon");
effectSound.start();
bKenOnScreen = true;
_root.attachMovie("kenshiro", "ken", alice.getDepth() + 500);
_root.ken._x = alice._x;
if (nCurrentLane == 1) {
_root.ken._y = 439.05;
} else if (nCurrentLane == 2) {
_root.ken._y = 494.05;
} else if (nCurrentLane == 3) {
_root.ken._y = 540.05;
}
_root.ken.facingLeft = true;
_root.ken.timer = 0;
_root.ken.lane = nCurrentLane;
if (!_global.mag5addon) {
_root.ken.endTimer = 600;
} else {
_root.ken.endTimer = 1200;
}
_root.ken.stopit = false;
_root.ken.onEnterFrame = function () {
if (!this.stopit) {
if ((startBossFight && (this._x > 100)) && (nBoss1Elec != 0)) {
this.rest = 0;
this.facingLeft = false;
this._xscale = -100;
this._x = 250;
nBossDamage = nBossDamage + 0.1;
camera.bosslifebars.seb.bar._xscale = 100 - nBossDamage;
if (nBossDamage >= 100) {
boss1.gotoAndStop(5);
camera.bosslifebars.gotoAndStop(1);
endBossFight();
}
}
this.timer++;
this.rest++;
if (this.timer >= this.endTimer) {
this.gotoAndStop(4);
}
if (this.timer >= (this.endTimer + 30)) {
bKenOnScreen = false;
this.removeMovieClip();
}
if (((this.rest >= 60) && (this._currentframe != 4)) && (this._currentframe != 1)) {
this.gotoAndStop(2);
}
var _local4 = 0;
while (_local4 < enemiesOnScreen) {
if ((_root["enum" + _local4].sState != "dead") && (this._currentframe != 4)) {
if (this.hitbox.hitTest(_root["enum" + _local4].hitbumpR) || (this.hitbox.hitTest(_root["enum" + _local4].hitbumpL))) {
if (_root["enum" + _local4]._x < this._x) {
this.facingLeft = true;
this._xscale = 100;
} else if (_root["enum" + _local4]._x > this._x) {
this.facingLeft = true;
this._xscale = -100;
}
if (this.lane == _root["enum" + _local4].getCurrentLane()) {
this.gotoAndStop(3);
this.rest = 0;
_root["enum" + _local4].hit(4, 1);
if (((_root["enum" + _local4].getType() != "slime") && (_root["enum" + _local4].getType() != "small slime")) && (_root["enum" + _local4].getType() != "tiny slime")) {
gib(_root["enum" + _local4]._x, _root["enum" + _local4]._y, _root["enum" + _local4].getCurrentLane(), 15 * _global.goreMultiplier);
}
nEnemiesKilled++;
if ((_root["enum" + _local4].getType() == "zombie") || (_root["enum" + _local4].getType() == "fat zombie")) {
_global.zombiesKilled++;
} else if (_root["enum" + _local4].getType() == "werewolf") {
_global.werewolvesKilled++;
} else if (_root["enum" + _local4].getType() == "vampire") {
_global.vampiresKilled++;
}
}
}
}
_local4++;
}
}
};
}
function endBossFight() {
startBossFight = false;
var _local3 = 0;
while (_local3 < 1000) {
_root["enum" + _local3].hit(4, 1);
_local3++;
}
var _local4 = border._x - camera._x;
var _local5 = border._y - camera._y;
camera._x = boss1._x + 500;
border._x = camera._x + _local4;
camera._y = 341.25;
border._y = camera._y + frameCameYDiff;
bStopInput = true;
alice.gotoAndStop("idle");
if (!_global.ach13) {
_global.ach13 = true;
_global.lev2just = true;
_root.camera.achunlock.gotoAndStop(14);
}
camera.fallen.gotoAndStop(2);
nScreenNo = 9;
}
function createPuppy(puppiesOnScreen, nadesOnScreen) {
if (puppiesOnScreen >= 80) {
puppiesOnScreen = 0;
}
var _local3 = "puppy" + puppiesOnScreen;
_root.attachMovie("puppy", _local3, -8000 + puppiesOnScreen);
_root[_local3]._x = Math.round(Math.random() * 640);
if (_root[_local3]._x < 320) {
_root[_local3].facingRight = false;
_root[_local3]._xscale = -100;
_root[_local3].speedX = -6;
}
if (_root[_local3]._x >= 320) {
_root[_local3].facingRight = true;
_root[_local3]._xscale = 100;
_root[_local3].speedX = 6;
}
_root[_local3]._y = -40;
_root[_local3].lane = Math.round(Math.random() * 2) + 1;
_root[_local3].speedY = 10;
_root[_local3].countdown = Math.round(Math.random() * 240) + 10;
_root[_local3].placed = false;
_root[_local3].stopit = false;
_root[_local3].onEnterFrame = function () {
if (!this.stopit) {
if (this.countdown > 0) {
this.countdown--;
}
if (_root["lane" + this.lane].hitTest(this._x, this._y + 20, true)) {
if (!this.placed) {
this.gotoAndStop("place");
}
if (this.place._currentframe == 10) {
this.placed = true;
var _local3 = "nade" + nadesOnScreen;
_root.attachMovie("grenade", _local3, -9000 + nadesOnScreen);
_root[_local3]._x = this._x;
_root[_local3]._y = this._y;
_root[_local3].lane = this.lane;
}
if (this.placed) {
this.gotoAndStop("run");
this._x = this._x + this.speedX;
}
} else if (this.countdown == 0) {
this.gotoAndStop("fall");
this._y = this._y + this.speedY;
}
}
};
}
function createSlimeExplosion(targetX, targetY) {
effectSound = new Sound(this);
effectSound.attachSound("slimeexplo");
effectSound.start();
var numberOfParticles = 0;
var _local10 = Math.floor(Math.random() * 4) + 0;
var _local9 = 0;
while (_local9 < _local10) {
var _local7 = flash.display.BitmapData.loadBitmap("blob3.png");
var _local3 = _root.createEmptyMovieClip("main_holder", _root.getNextHighestDepth());
var _local6 = _local3.createEmptyMovieClip("internal_holder", _local3.getNextHighestDepth());
_local6._x = (-_local7.width) / 2;
_local6._y = (-_local7.height) / 2;
_local6.attachBitmap(_local7, _local6.getNextHighestDepth(), "never");
_local3._x = targetX;
_local3._y = targetY;
_local3._rotation = random(360);
_local3.boundyLeft = targetX - 100;
_local3.boundyTop = targetY - 100;
_local3.boundyRight = targetX + 100;
_local3.boundyBottom = targetY + 100;
_local3.speedX = Math.random(5) - Math.random(5);
_local3.speedY = Math.random(5) - Math.random(5);
_local3.speedX = _local3.speedX * 5;
_local3.speedY = _local3.speedY * 5;
_local3.fadeSpeed = Math.random(5) * 5;
numberOfParticles++;
_local3.onEnterFrame = function () {
this._x = this._x + this.speedX;
this._y = this._y + this.speedY;
if (this.speedY < 5) {
this.speedY = this.speedY + 0.3;
}
if (this._y > 600) {
this.removeMovieClip();
numberOfParticles--;
}
};
_local9++;
}
if (((Math.floor(Math.random() * 101) + 0) > 90) && (enemiesOnScreen < 30)) {
makeEnemy(targetX, targetY, Math.floor(Math.random() * 21) + -10, "slime");
}
var _local12 = Math.floor(Math.random() * 7) + 2;
_local9 = 0;
while (_local9 < _local12) {
var _local7 = flash.display.BitmapData.loadBitmap("blob2.png");
var _local3 = _root.createEmptyMovieClip("main_holder", _root.getNextHighestDepth());
var _local6 = _local3.createEmptyMovieClip("internal_holder", _local3.getNextHighestDepth());
_local6._x = (-_local7.width) / 2;
_local6._y = (-_local7.height) / 2;
_local6.attachBitmap(_local7, _local6.getNextHighestDepth(), "never");
_local3._x = targetX;
_local3._y = targetY;
_local3._rotation = random(360);
_local3.boundyLeft = targetX - 100;
_local3.boundyTop = targetY - 100;
_local3.boundyRight = targetX + 100;
_local3.boundyBottom = targetY + 100;
_local3.speedX = Math.random(5) - Math.random(5);
_local3.speedY = Math.random(5) - Math.random(5);
_local3.speedX = _local3.speedX * 5;
_local3.speedY = _local3.speedY * 5;
_local3.fadeSpeed = Math.random(5) * 5;
numberOfParticles++;
_local3.onEnterFrame = function () {
this._x = this._x + this.speedX;
this._y = this._y + this.speedY;
if (this.speedY < 5) {
this.speedY = this.speedY + 0.3;
}
if (this._y > 600) {
this.removeMovieClip();
numberOfParticles--;
}
};
_local9++;
}
if ((Math.floor(Math.random() * 101) + 0) > 70) {
var _local11 = Math.floor(Math.random() * 3) + 0;
if (enemiesOnScreen < 40) {
var _local8 = 0;
while (_local8 < _local11) {
makeEnemy(targetX, targetY, Math.floor(Math.random() * 21) + -10, "smslime");
_local8++;
}
}
}
var _local14 = Math.floor(Math.random() * 13) + 3;
_local9 = 0;
while (_local9 < _local14) {
var _local7 = flash.display.BitmapData.loadBitmap("blob1.png");
var _local3 = _root.createEmptyMovieClip("main_holder", _root.getNextHighestDepth());
var _local6 = _local3.createEmptyMovieClip("internal_holder", _local3.getNextHighestDepth());
_local6._x = (-_local7.width) / 2;
_local6._y = (-_local7.height) / 2;
_local6.attachBitmap(_local7, _local6.getNextHighestDepth(), "never");
_local3._x = targetX;
_local3._y = targetY;
_local3._rotation = random(360);
_local3.boundyLeft = targetX - 100;
_local3.boundyTop = targetY - 100;
_local3.boundyRight = targetX + 100;
_local3.boundyBottom = targetY + 100;
_local3.speedX = Math.random(5) - Math.random(5);
_local3.speedY = Math.random(5) - Math.random(5);
_local3.speedX = _local3.speedX * 5;
_local3.speedY = _local3.speedY * 5;
_local3.fadeSpeed = Math.random(5) * 5;
numberOfParticles++;
_local3.onEnterFrame = function () {
this._x = this._x + this.speedX;
this._y = this._y + this.speedY;
if (this.speedY < 5) {
this.speedY = this.speedY + 0.3;
}
if (this._y > 600) {
this.removeMovieClip();
numberOfParticles--;
}
};
_local9++;
}
if (((Math.floor(Math.random() * 101) + 0) > 50) && (enemiesOnScreen < 50)) {
var _local13 = Math.floor(Math.random() * 5) + 0;
var _local8 = 0;
while (_local8 < _local13) {
makeEnemy(targetX, targetY, Math.floor(Math.random() * 21) + -10, "smsmslime");
_local8++;
}
}
}
function gib(targetX, targetY, targetLane, gibs) {
var _local7 = gibs / 3;
var _local8 = _global.gibsOnScreen;
_global.gibsOnScreen = _global.gibsOnScreen + gibs;
if (_global.gibsOnScreen >= 300) {
_global.gibsOnScreen = 0;
}
var _local6 = _local8;
while (_local6 < (_local8 + _local7)) {
var _local10 = flash.display.BitmapData.loadBitmap("gib1");
_root["particle_mc" + _local6] = _root.createEmptyMovieClip("main_holder" + _local6, _local6);
_root["particle_mc" + _local6].attachBitmap(_local10, main_holder.getNextHighestDepth(), "never");
_root["particle_mc" + _local6]._x = targetX;
_root["particle_mc" + _local6]._y = targetY - 30;
_root["particle_mc" + _local6]._rotation = random(360);
_root["particle_mc" + _local6].speedX = Math.random(5) - Math.random(5);
_root["particle_mc" + _local6].speedY = Math.random(5) - Math.random(5);
_root["particle_mc" + _local6].speedX = _root["particle_mc" + _local6].speedX * 5;
_root["particle_mc" + _local6].speedY = _root["particle_mc" + _local6].speedY * 5;
_root["particle_mc" + _local6].YMax = 4;
_root["particle_mc" + _local6].stopit = false;
_root["particle_mc" + _local6].onEnterFrame = function () {
if (!this.stopit) {
if (_root["lane" + targetLane].hitTest(this._x, this._y + 10, true)) {
this.speedY = -this.speedY;
if (this.YMax > 1) {
this.YMax = this.YMax - 0.5;
}
if (this.YMax <= 1) {
this.speedY = 0;
}
if (this.speedX > 0) {
this.speedX = this.speedX - 0.3;
}
if (this.speedX < 0) {
this.speedX = this.speedX + 0.3;
}
if ((this.speedX > -0.5) && (this.speedX < 0.5)) {
this.speedX = 0;
}
}
if ((this._y + 10) > (_root["lane" + targetLane]._y + 20)) {
this._y = _root["lane" + targetLane]._y;
}
this._x = this._x + this.speedX;
this._y = this._y + this.speedY;
if ((this.speedY < this.YMax) && (this.YMax > 1)) {
this.speedY = this.speedY + 0.5;
}
}
};
_local6++;
}
var _local4 = _local8 + _local7;
while (_local4 < ((_local7 + _local7) + _local8)) {
var _local10 = flash.display.BitmapData.loadBitmap("gib2");
_root["particle_mc" + _local4] = _root.createEmptyMovieClip("main_holder" + _local4, _local4);
_root["particle_mc" + _local4].attachBitmap(_local10, main_holder.getNextHighestDepth(), "never");
_root["particle_mc" + _local4]._x = targetX;
_root["particle_mc" + _local4]._y = targetY - 30;
_root["particle_mc" + _local4]._rotation = random(360);
_root["particle_mc" + _local4].speedX = Math.random(5) - Math.random(5);
_root["particle_mc" + _local4].speedY = Math.random(5) - Math.random(5);
_root["particle_mc" + _local4].speedX = _root["particle_mc" + _local4].speedX * 5;
_root["particle_mc" + _local4].speedY = _root["particle_mc" + _local4].speedY * 5;
_root["particle_mc" + _local4].YMax = 4;
_root["particle_mc" + _local4].stopit = false;
_root["particle_mc" + _local4].onEnterFrame = function () {
if (!this.stopit) {
if (_root["lane" + targetLane].hitTest(this._x, this._y + 10, true)) {
this.speedY = -this.speedY;
if (this.YMax > 1) {
this.YMax = this.YMax - 0.5;
}
if (this.YMax <= 1) {
this.speedY = 0;
}
if (this.speedX > 0) {
this.speedX = this.speedX - 0.3;
}
if (this.speedX < 0) {
this.speedX = this.speedX + 0.3;
}
if ((this.speedX > -0.5) && (this.speedX < 0.5)) {
this.speedX = 0;
}
}
if ((this._y + 10) > (_root["lane" + targetLane]._y + 20)) {
this._y = _root["lane" + targetLane]._y;
}
this._x = this._x + this.speedX;
this._y = this._y + this.speedY;
if ((this.speedY < this.YMax) && (this.YMax > 1)) {
this.speedY = this.speedY + 0.5;
}
}
};
_local4++;
}
var _local5 = (_local7 * 2) + _local8;
while (_local5 < (((_local7 * 2) + _local7) + _local8)) {
var _local10 = flash.display.BitmapData.loadBitmap("gib3");
_root["particle_mc" + _local5] = _root.createEmptyMovieClip("main_holder" + _local5, _local5);
_root["particle_mc" + _local5].attachBitmap(_local10, main_holder.getNextHighestDepth(), "never");
_root["particle_mc" + _local5]._x = targetX;
_root["particle_mc" + _local5]._y = targetY - 30;
_root["particle_mc" + _local5]._rotation = random(360);
_root["particle_mc" + _local5].speedX = Math.random(5) - Math.random(5);
_root["particle_mc" + _local5].speedY = Math.random(5) - Math.random(5);
_root["particle_mc" + _local5].speedX = _root["particle_mc" + _local5].speedX * 5;
_root["particle_mc" + _local5].speedY = _root["particle_mc" + _local5].speedY * 5;
_root["particle_mc" + _local5].YMax = 4;
_root["particle_mc" + _local5].stopit = false;
_root["particle_mc" + _local5].onEnterFrame = function () {
if (!this.stopit) {
if (_root["lane" + targetLane].hitTest(this._x, this._y + 10, true)) {
this.speedY = -this.speedY;
if (this.YMax > 1) {
this.YMax = this.YMax - 0.5;
}
if (this.YMax <= 1) {
this.speedY = 0;
}
if (this.speedX > 0) {
this.speedX = this.speedX - 0.3;
}
if (this.speedX < 0) {
this.speedX = this.speedX + 0.3;
}
if ((this.speedX > -0.5) && (this.speedX < 0.5)) {
this.speedX = 0;
}
}
if ((this._y + 10) > (_root["lane" + targetLane]._y + 20)) {
this._y = _root["lane" + targetLane]._y;
}
this._x = this._x + this.speedX;
this._y = this._y + this.speedY;
if ((this.speedY < this.YMax) && (this.YMax > 1)) {
this.speedY = this.speedY + 0.5;
}
}
};
_local5++;
}
}
function traceSomething() {
trace("something");
}
stop();
stopAllSounds();
musicSound = new Sound(this);
musicSound.attachSound("Graveyard");
musicSound.start(0, 999);
camera._x = 338.65;
camera._y = 305.25;
camera.gotoAndStop(1);
Mouse.hide();
startDrag (pointer, true);
var backToMenu = false;
var bossFight = false;
var startBossFight = false;
var enemiesOnScreen = 0;
var itemsOnScreen = 1;
var breakablesOnScreen = 2;
var explodedNades = 0;
var nBossDamage = 0;
var nBoss1Elec = 0;
var nTentacleCountdown = 120;
var nPauseTimer = 0;
var nPupsLeft = 0;
var nPickedUpGibs = 0;
var nChargeAmount = 0;
var nWeapCooldown = 0;
var nInvincible = 0;
var nWeapNo = 1;
var nSpeed = 0;
var nMaxmove = 15;
var nGravity = 0;
var nCurrentLane = 1;
var nAttack = 0;
var nCrossbowBolts = 0;
var nUseMagicCooldown = 0;
var nDashChance = 0;
var nBlockDashChance = 0;
var nDashCooldown = 0;
var nTargetTime = 0;
var nEnemiesKilled = 0;
var nMoved = 0;
var nItemCooldown = 0;
var nGrenadesOnScreen = 0;
var nPuppiesOnScreen = 0;
var nFireballs = 0;
var nSelection = 1;
var nSelectionCooldown = 0;
var nBlockDashTimer = 0;
var nBlockDashRecharge = 0;
var nSpawnTime = 0;
var nPupblasts = 0;
var nTime1 = 0;
var nTime2 = 0;
var nTime3 = 0;
var nScreenNo = 0;
var nBolts = 0;
var nDogCount = 0;
var bKenOnScreen = false;
var bPaused = false;
var bAttacking = false;
var bJAttacking = false;
var bGrounded = false;
var bUsingCross = false;
var bStopInput = false;
var bHit = false;
var bDead = false;
var bShopOnScreen = false;
var bBlocking = false;
var bFacingLeft = false;
var bFacingRight = true;
var bHitChance = false;
var bNextScreen = false;
var bProgress = false;
var bDoOnce = false;
var bKenOnScreen = false;
var bUsingMagic = false;
var bSetUpEnemies = true;
var bDontGetUp = false;
var bDogOnScreen = false;
var bRiding = false;
var bDogAttack = false;
var bPupsOnScreen = false;
var LANE_SPEED = 4;
var oKeyListener = new Object();
Key.addListener(oKeyListener);
var bKeyListener = new Object();
Key.addListener(bKeyListener);
var aKeyListener = new Object();
Key.addListener(aKeyListener);
var aResetPositions = new Array();
aResetPositions[0] = alice._y;
aResetPositions[1] = alice._x;
camera.swapDepths(9999);
border.swapDepths(10000);
blackout1.swapDepths(10001);
pointer.swapDepths(99999);
alice.swapDepths(1000);
item0.gotoAndStop(1);
var time1 = new Array();
var time2 = new Array();
var time3 = new Array();
var spawnList = new Array(new Array(), new Array(), new Array(), new Array(), new Array(), new Array(), new Array(), new Array());
var enemyStruct;
spawnList[0][0] = (enemyStruct = new Object({className:"zombie", leftOrRight:"right", spawnTime:1, pushX:Math.floor(Math.random() * 50) + 1}));
spawnList[0][1] = (enemyStruct = new Object({className:"gZombie", leftOrRight:"right", spawnTime:1, pushX:Math.floor(Math.random() * 50) + 1}));
spawnList[0][2] = (enemyStruct = new Object({className:"bZombie", leftOrRight:"right", spawnTime:1, pushX:Math.floor(Math.random() * 50) + 1}));
spawnList[0][3] = (enemyStruct = new Object({className:"vampirebat", leftOrRight:"left", spawnTime:1, pushX:Math.floor(Math.random() * 50) + 1}));
spawnList[0][4] = (enemyStruct = new Object({className:"zombie", leftOrRight:"right", spawnTime:2, pushX:Math.floor(Math.random() * 50) + 1}));
spawnList[0][5] = (enemyStruct = new Object({className:"gZombie", leftOrRight:"right", spawnTime:2, pushX:Math.floor(Math.random() * 50) + 1}));
spawnList[0][6] = (enemyStruct = new Object({className:"fatzombie", leftOrRight:"right", spawnTime:3, pushX:Math.floor(Math.random() * 50) + 1}));
time1[0] = 150;
time2[0] = 600;
time3[0] = 900;
spawnList[1][0] = (enemyStruct = new Object({className:"zombie", leftOrRight:"right", spawnTime:1, pushX:20}));
spawnList[1][1] = (enemyStruct = new Object({className:"gZombie", leftOrRight:"right", spawnTime:1, pushX:30}));
spawnList[1][2] = (enemyStruct = new Object({className:"bZombie", leftOrRight:"right", spawnTime:1, pushX:50}));
spawnList[1][3] = (enemyStruct = new Object({className:"zombie", leftOrRight:"left", spawnTime:1, pushX:150}));
spawnList[1][4] = (enemyStruct = new Object({className:"zombie", leftOrRight:"left", spawnTime:1, pushX:10}));
spawnList[1][5] = (enemyStruct = new Object({className:"pZombie", leftOrRight:"right", spawnTime:1, pushX:0}));
spawnList[1][6] = (enemyStruct = new Object({className:"zombie", leftOrRight:"right", spawnTime:2, pushX:20}));
spawnList[1][7] = (enemyStruct = new Object({className:"gZombie", leftOrRight:"left", spawnTime:2, pushX:30}));
spawnList[1][8] = (enemyStruct = new Object({className:"zombie", leftOrRight:"right", spawnTime:2, pushX:150}));
spawnList[1][9] = (enemyStruct = new Object({className:"pZombie", leftOrRight:"left", spawnTime:2, pushX:30}));
spawnList[1][10] = (enemyStruct = new Object({className:"gZombie", leftOrRight:"left", spawnTime:2, pushX:140}));
spawnList[1][11] = (enemyStruct = new Object({className:"gZombie", leftOrRight:"right", spawnTime:3, pushX:20}));
spawnList[1][12] = (enemyStruct = new Object({className:"fatzombie", leftOrRight:"left", spawnTime:3, pushX:50}));
spawnList[1][13] = (enemyStruct = new Object({className:"fatzombie", leftOrRight:"right", spawnTime:3, pushX:50}));
spawnList[1][14] = (enemyStruct = new Object({className:"BlueFatZombie", leftOrRight:"right", spawnTime:3, pushX:100}));
time1[1] = 60;
time2[1] = 900;
time3[1] = 1200;
spawnList[2][0] = (enemyStruct = new Object({className:"slime", leftOrRight:"right", spawnTime:1, pushX:Math.floor(Math.random() * 50) + 1}));
spawnList[2][1] = (enemyStruct = new Object({className:"slime", leftOrRight:"left", spawnTime:2, pushX:Math.floor(Math.random() * 50) + 1}));
spawnList[2][2] = (enemyStruct = new Object({className:"vampire", leftOrRight:"right", spawnTime:3, pushX:Math.floor(Math.random() * 50) + 1}));
time1[2] = 60;
time2[2] = 600;
time3[2] = 900;
spawnList[3][0] = (enemyStruct = new Object({className:"slime", leftOrRight:"right", spawnTime:1, pushX:Math.floor(Math.random() * 50) + 1}));
spawnList[3][1] = (enemyStruct = new Object({className:"fatzombie", leftOrRight:"left", spawnTime:2, pushX:20}));
spawnList[3][2] = (enemyStruct = new Object({className:"fatzombie", leftOrRight:"right", spawnTime:2, pushX:30}));
spawnList[3][3] = (enemyStruct = new Object({className:"bZombie", leftOrRight:"left", spawnTime:2, pushX:50}));
spawnList[3][4] = (enemyStruct = new Object({className:"zombie", leftOrRight:"right", spawnTime:2, pushX:20}));
spawnList[3][5] = (enemyStruct = new Object({className:"gZombie", leftOrRight:"left", spawnTime:2, pushX:30}));
spawnList[3][6] = (enemyStruct = new Object({className:"gZombie", leftOrRight:"left", spawnTime:3, pushX:70}));
spawnList[3][7] = (enemyStruct = new Object({className:"zombie", leftOrRight:"right", spawnTime:3, pushX:60}));
spawnList[3][8] = (enemyStruct = new Object({className:"zombie", leftOrRight:"left", spawnTime:3, pushX:10}));
time1[3] = 60;
time2[3] = 600;
time3[3] = 900;
spawnList[4][0] = (enemyStruct = new Object({className:"vampirebat", leftOrRight:"right", spawnTime:1, pushX:Math.floor(Math.random() * 50) + 1}));
spawnList[4][1] = (enemyStruct = new Object({className:"redvampire", leftOrRight:"left", spawnTime:1, pushX:Math.floor(Math.random() * 50) + 1}));
spawnList[4][2] = (enemyStruct = new Object({className:"bluevampire", leftOrRight:"right", spawnTime:1, pushX:Math.floor(Math.random() * 50) + 1}));
spawnList[4][3] = (enemyStruct = new Object({className:"vampirebat", leftOrRight:"left", spawnTime:2, pushX:Math.floor(Math.random() * 50) + 1}));
spawnList[4][4] = (enemyStruct = new Object({className:"redvampire", leftOrRight:"right", spawnTime:2, pushX:Math.floor(Math.random() * 50) + 1}));
spawnList[4][5] = (enemyStruct = new Object({className:"vampirebat", leftOrRight:"right", spawnTime:3, pushX:Math.floor(Math.random() * 50) + 1}));
time1[4] = 60;
time2[4] = 600;
time3[4] = 900;
spawnList[6][0] = (enemyStruct = new Object({className:"blueFatZombie", leftOrRight:"left", spawnTime:1, pushX:Math.floor(Math.random() * 50) + 1}));
spawnList[6][1] = (enemyStruct = new Object({className:"fatzombie", leftOrRight:"right", spawnTime:1, pushX:Math.floor(Math.random() * 50) + 1}));
spawnList[6][2] = (enemyStruct = new Object({className:"fatzombie", leftOrRight:"left", spawnTime:1, pushX:Math.floor(Math.random() * 50) + 1}));
spawnList[6][3] = (enemyStruct = new Object({className:"fatzombie", leftOrRight:"left", spawnTime:2, pushX:20}));
spawnList[6][4] = (enemyStruct = new Object({className:"bZombie", leftOrRight:"left", spawnTime:2, pushX:50}));
spawnList[6][5] = (enemyStruct = new Object({className:"zombie", leftOrRight:"right", spawnTime:2, pushX:20}));
spawnList[6][6] = (enemyStruct = new Object({className:"gZombie", leftOrRight:"left", spawnTime:2, pushX:30}));
spawnList[6][7] = (enemyStruct = new Object({className:"bZombie", leftOrRight:"left", spawnTime:1, pushX:10}));
spawnList[6][8] = (enemyStruct = new Object({className:"zombie", leftOrRight:"left", spawnTime:2, pushX:20}));
spawnList[6][9] = (enemyStruct = new Object({className:"gZombie", leftOrRight:"left", spawnTime:2, pushX:60}));
spawnList[6][10] = (enemyStruct = new Object({className:"zombie", leftOrRight:"right", spawnTime:3, pushX:50}));
spawnList[6][11] = (enemyStruct = new Object({className:"gZombie", leftOrRight:"left", spawnTime:3, pushX:70}));
spawnList[6][12] = (enemyStruct = new Object({className:"zombie", leftOrRight:"right", spawnTime:3, pushX:60}));
spawnList[6][13] = (enemyStruct = new Object({className:"zombie", leftOrRight:"left", spawnTime:3, pushX:10}));
time1[6] = 60;
time2[6] = 600;
time3[6] = 900;
spawnList[7][0] = (enemyStruct = new Object({className:"werewolf", leftOrRight:"right", spawnTime:1, pushX:Math.floor(Math.random() * 50) + 1}));
spawnList[7][1] = (enemyStruct = new Object({className:"zombie", leftOrRight:"right", spawnTime:2, pushX:20}));
spawnList[7][2] = (enemyStruct = new Object({className:"gZombie", leftOrRight:"left", spawnTime:2, pushX:30}));
spawnList[7][3] = (enemyStruct = new Object({className:"zombie", leftOrRight:"right", spawnTime:3, pushX:50}));
spawnList[7][4] = (enemyStruct = new Object({className:"zombie", leftOrRight:"right", spawnTime:3, pushX:10}));
spawnList[7][5] = (enemyStruct = new Object({className:"gZombie", leftOrRight:"left", spawnTime:3, pushX:70}));
spawnList[7][6] = (enemyStruct = new Object({className:"werewolf", leftOrRight:"right", spawnTime:3, pushX:Math.floor(Math.random() * 50) + 1}));
time1[7] = 60;
time2[7] = 600;
time3[7] = 900;
var speechCounter = 0;
var speechList = new Array();
speechList[0] = "You had better stock up!";
speechList[1] = "I'm trying to stop ultimate evil here, can't you just give me the stuff?";
speechList[2] = "Don't ask for something impossible.";
alice._xscale = -100;
onEnterFrame = function () {
if (backToMenu) {
backToMenu = false;
alice.removeMovieClip();
sage.removeMovieClip();
border.removeMovieClip();
foreground.removeMovieClip();
bgbuildings.removeMovieClip();
_root.dog.removeMovieClip();
boss1.removeMovieClip();
tentacle1.removeMovieClip();
tentacle2.removeMovieClip();
var _local4 = 0;
while (_local4 < (nGrenadesOnScreen + 1)) {
_root["nade" + _local4].removeMovieClip();
_local4++;
}
var _local17 = 0;
while (_local17 < itemsOnScreen) {
_root["item" + _local17].removeMovieClip();
_local17++;
}
var _local16 = 0;
while (_local16 < enemiesOnScreen) {
_root["enum" + _local16].removeMovieClip();
_local16++;
}
var _local10 = 0;
while (_local10 < 1000) {
_root["particle_mc" + _local10].removeMovieClip();
_local10++;
}
var _local13 = 0;
while (_local13 < 100) {
_root["darkbolt" + _local13].removeMovieClip();
_local13++;
}
var _local5 = 0;
while (_local5 < 100) {
_root["crossbowbolt" + _local5].removeMovieClip();
_local5++;
}
var _local11 = 0;
while (_local11 < 100) {
_root["puppyblast" + _local11].removeMovieClip();
_local11++;
}
_local17 = 0;
while (_local17 < 100) {
_root["fireball" + _local17].removeMovieClip();
_local17++;
}
_local4 = 0;
while (_local4 < 100) {
_root["puppy" + _local4].removeMovieClip();
_local4++;
}
_root.ken.removeMovieClip();
nCrossbowBolts = 0;
nPuppiesOnScreen = 0;
nFireballs = 0;
nBolts = 0;
nPupblasts = 0;
nPickedUpGibs = 0;
if ((!bRiding) && (bDogOnScreen)) {
_root.dog.removeMovieClip();
}
bProgress = false;
nScreenNo++;
bSetUpEnemies = true;
_root.camera.topright.gotoAndStop(1);
nMoved = 0;
nEnemiesKilled = 0;
_global.gibsOnScreen = 0;
stopAllSounds();
if ((bDead == true) && (_global.lives == 1)) {
_root.gotoAndStop(9);
} else {
_root.gotoAndStop(3);
}
// unexpected jump
}
if (bossFight) {
if (bDoOnce) {
bDoOnce = false;
_root.attachMovie("sebastian", "boss1", 9998);
boss1._x = 600;
boss1._y = -120;
stopAllSounds();
musicSound = new Sound(this);
musicSound.attachSound("Boss");
musicSound.start(0, 999);
}
if (boss1._x <= 100) {
_root.camera.bosslifebars.gotoAndStop(2);
} else {
boss1._x = boss1._x - 3;
}
// unexpected jump
}
if (introMovie) {
if (nSpeechCountdown > 0) {
nSpeechCountdown--;
}
if (!speechTime) {
alice.gotoAndStop(49);
} else {
if (bRiding && (!_global.mag4addon)) {
alice.gotoAndStop("dogidle");
} else if (bRiding && (_global.mag4addon)) {
alice.gotoAndStop("ndogidle");
} else {
alice.gotoAndStop("idle");
}
if (Key.isDown(68) && (nSpeechCountdown == 0)) {
speechTime = false;
introMovie = false;
nSpeechCountdown = 10;
_root.foreground.speechbub.removeMovieClip();
_root.speechbub.removeMovieClip();
_root.sage.speechbub.removeMovieClip();
}
}
// unexpected jump
}
if (explodedNades == nGrenadesOnScreen) {
nGrenadesOnScreen = 0;
explodedNades = 0;
}
if (!bPaused) {
nSpawnTime++;
}
if (bSetUpEnemies) {
nSpawnTime = 0;
bSetUpEnemies = false;
nTime1 = time1[nScreenNo];
nTime2 = time2[nScreenNo];
nTime3 = time3[nScreenNo];
}
if (nSpawnTime == nTime1) {
var _local10 = 0;
while (_local10 < spawnList[nScreenNo].length) {
if (spawnList[nScreenNo][_local10].spawnTime == 1) {
var _local20 = "enum" + enemiesOnScreen;
_root.attachMovie(spawnList[nScreenNo][_local10].className, _local20, _root.getNextHighestDepth());
if (spawnList[nScreenNo][_local10].leftOrRight == "right") {
_root["enum" + enemiesOnScreen]._x = dispenserR._x + spawnList[nScreenNo][_local10].pushX;
_root["enum" + enemiesOnScreen].bFacingRight = false;
_root["enum" + enemiesOnScreen].bFacingLeft = true;
} else if (spawnList[nScreenNo][_local10].leftOrRight == "left") {
_root["enum" + enemiesOnScreen]._x = dispenserL._x - spawnList[nScreenNo][_local10].pushX;
_root["enum" + enemiesOnScreen].bFacingRight = true;
_root["enum" + enemiesOnScreen].bFacingLeft = false;
}
if (_root["enum" + enemiesOnScreen].nCurrentLane == 1) {
_root["enum" + enemiesOnScreen]._y = 439.05;
} else if (_root["enum" + enemiesOnScreen].nCurrentLane == 2) {
_root["enum" + enemiesOnScreen]._y = 494.05;
} else if (_root["enum" + enemiesOnScreen].nCurrentLane == 3) {
_root["enum" + enemiesOnScreen]._y = 540.05;
}
enemiesOnScreen++;
}
_local10++;
}
}
if (nSpawnTime == nTime2) {
var _local10 = 0;
while (_local10 < spawnList[nScreenNo].length) {
if (spawnList[nScreenNo][_local10].spawnTime == 2) {
var _local20 = "enum" + enemiesOnScreen;
_root.attachMovie(spawnList[nScreenNo][_local10].className, _local20, _root.getNextHighestDepth());
if (spawnList[nScreenNo][_local10].leftOrRight == "right") {
_root["enum" + enemiesOnScreen]._x = dispenserR._x + spawnList[nScreenNo][_local10].pushX;
_root["enum" + enemiesOnScreen].bFacingRight = false;
_root["enum" + enemiesOnScreen].bFacingLeft = true;
} else if (spawnList[nScreenNo][_local10].leftOrRight == "left") {
_root["enum" + enemiesOnScreen]._x = dispenserL._x - spawnList[nScreenNo][_local10].pushX;
_root["enum" + enemiesOnScreen].bFacingRight = true;
_root["enum" + enemiesOnScreen].bFacingLeft = false;
}
if (_root["enum" + enemiesOnScreen].nCurrentLane == 1) {
_root["enum" + enemiesOnScreen]._y = 439.05;
} else if (_root["enum" + enemiesOnScreen].nCurrentLane == 2) {
_root["enum" + enemiesOnScreen]._y = 494.05;
} else if (_root["enum" + enemiesOnScreen].nCurrentLane == 3) {
_root["enum" + enemiesOnScreen]._y = 540.05;
}
enemiesOnScreen++;
}
_local10++;
}
}
if (nSpawnTime == nTime3) {
var _local10 = 0;
while (_local10 < spawnList[nScreenNo].length) {
if (spawnList[nScreenNo][_local10].spawnTime == 3) {
var _local20 = "enum" + enemiesOnScreen;
_root.attachMovie(spawnList[nScreenNo][_local10].className, _local20, _root.getNextHighestDepth());
if (spawnList[nScreenNo][_local10].leftOrRight == "right") {
_root["enum" + enemiesOnScreen]._x = dispenserR._x + spawnList[nScreenNo][_local10].pushX;
_root["enum" + enemiesOnScreen].bFacingRight = false;
_root["enum" + enemiesOnScreen].bFacingLeft = true;
} else if (spawnList[nScreenNo][_local10].leftOrRight == "left") {
_root["enum" + enemiesOnScreen]._x = dispenserL._x - spawnList[nScreenNo][_local10].pushX;
_root["enum" + enemiesOnScreen].bFacingRight = true;
_root["enum" + enemiesOnScreen].bFacingLeft = false;
}
if (_root["enum" + enemiesOnScreen].nCurrentLane == 1) {
_root["enum" + enemiesOnScreen]._y = 439.05;
} else if (_root["enum" + enemiesOnScreen].nCurrentLane == 2) {
_root["enum" + enemiesOnScreen]._y = 494.05;
} else if (_root["enum" + enemiesOnScreen].nCurrentLane == 3) {
_root["enum" + enemiesOnScreen]._y = 540.05;
}
enemiesOnScreen++;
}
_local10++;
}
}
if (nPupsLeft == nPuppiesOnScreen) {
nPuppiesOnScreen = 0;
nPupsLeft = 0;
bPupsOnScreen = false;
}
if (camera._y > (alice._y + 100)) {
camera._y = camera._y - 2;
}
if (camera._y < (alice._y - 200)) {
camera._y = camera._y + 2;
}
if ((nScreenNo == 8) && (!bProgress)) {
if (camera._x > (alice._x + 200)) {
camera._x = camera._x - 3;
border._x = border._x - 3;
}
if (camera._x < (alice._x - 20)) {
camera._x = camera._x + 3;
border._x = border._x + 3;
}
}
if (bProgress == true) {
if (bKenOnScreen) {
bKenOnScreen = false;
_root.ken.removeMovieClip();
}
if (bDoOnce) {
bDoOnce = false;
var _local10 = 0;
while (_local10 < 1000) {
_root["particle_mc" + _local10].removeMovieClip();
_local10++;
}
if (nScreenNo == 8) {
camera.removeMovieClip();
alice.removeMovieClip();
sage.removeMovieClip();
border.removeMovieClip();
frame.removeMovieClip();
foreground.removeMovieClip();
bgbuildings.removeMovieClip();
_root.dog.removeMovieClip();
var _local4 = 0;
while (_local4 < (nGrenadesOnScreen + 1)) {
_root["nade" + _local4].removeMovieClip();
_local4++;
}
var _local17 = 0;
while (_local17 < itemsOnScreen) {
_root["item" + _local17].removeMovieClip();
_local17++;
}
var _local16 = 0;
while (_local16 < enemiesOnScreen) {
_root["enum" + _local16].removeMovieClip();
_local16++;
}
_local10 = 0;
while (_local10 < 1000) {
_root["particle_mc" + _local10].removeMovieClip();
_local10++;
}
_root.gotoAndStop(2);
}
}
bNextScreen = false;
bFacingRight = true;
bFacingLeft = false;
alice._xscale = -100;
if (!bRiding) {
if (nScreenNo == 8) {
if (nWeapNo == 1) {
alice.gotoAndStop("idle");
}
if (nWeapNo == 2) {
alice.gotoAndStop("kidle");
}
if (nWeapNo == 3) {
alice.gotoAndStop("sidle");
}
} else {
if (nWeapNo == 1) {
alice.gotoAndStop("run");
}
if (nWeapNo == 2) {
alice.gotoAndStop("krun");
}
if (nWeapNo == 3) {
alice.gotoAndStop("srun");
}
}
} else {
if (!_global.mag4addon) {
alice.gotoAndStop("dogwalk");
} else {
alice.gotoAndStop("ndogwalk");
}
if (nScreenNo == 8) {
if (!_global.mag4addon) {
alice.gotoAndStop("dogidle");
} else {
alice.gotoAndStop("ndogidle");
}
}
}
_root.dog._x = _root.dog._x - 5;
nMoved = nMoved + 5;
foreground._x = foreground._x - 5;
road._x = road._x - 5;
ground1._x = ground1._x - 5;
sage._x = sage._x - 5;
bgbuildings._x = bgbuildings._x - 2;
if (nScreenNo != 8) {
alice._x = alice._x - 2;
} else {
alice._x = alice._x - 5;
}
var _local4 = 0;
while (_local4 < (nGrenadesOnScreen + 1)) {
if (_root["nade" + _local4].wait._currentframe == 50) {
if (!_global.pyro) {
_root["nade" + _local4].gotoAndStop(2);
} else {
_root["nade" + _local4].gotoAndStop(3);
}
explodedNades++;
}
_root["nade" + _local4]._x = _root["nade" + _local4]._x - 5;
_local4++;
}
var _local11 = 0;
while (_local11 < breakablesOnScreen) {
_root["break" + _local11]._x = _root["break" + _local11]._x - 5;
_local11++;
}
var _local17 = 0;
while (_local17 < itemsOnScreen) {
_root["item" + _local17]._x = _root["item" + _local17]._x - 5;
_local17++;
}
if ((nMoved == 600) && (nScreenNo == 8)) {
bProgress = false;
bossFight = true;
bDoOnce = true;
}
if ((nMoved == 640) && (nScreenNo != 8)) {
nCrossbowBolts = 0;
nPuppiesOnScreen = 0;
nFireballs = 0;
nBolts = 0;
nPupblasts = 0;
nPickedUpGibs = 0;
if ((!bRiding) && (bDogOnScreen)) {
_root.dog.removeMovieClip();
}
bProgress = false;
nScreenNo++;
bSetUpEnemies = true;
_root.camera.topright.gotoAndStop(1);
nMoved = 0;
nEnemiesKilled = 0;
_global.gibsOnScreen = 0;
if (nScreenNo == 8) {
bProgress = true;
}
}
// unexpected jump
}
if (bPaused) {
camera.pause.gotoAndStop(2);
blackout1.gotoAndStop(111);
if (startBossFight) {
getAllMc(boss1);
tentacle1.stop();
tentacle2.stop();
}
getAllMc(alice);
sage.stop();
getAllMc(camera.topright);
var _local11 = 0;
while (_local11 < enemiesOnScreen) {
getAllMc(_root["enum" + _local11]);
_local11++;
}
var _local10 = 0;
while (_local10 < 1000) {
_root["particle_mc" + _local10].stopit = true;
_local10++;
}
var _local7 = 0;
while (_local7 < 100) {
stopMoveAllMc(_root["nade" + _local7]);
_local7++;
}
var _local13 = 0;
while (_local13 < 100) {
stopMoveAllMc(_root["darkbolt" + _local13]);
_local13++;
}
var _local5 = 0;
while (_local5 < 100) {
stopMoveAllMc(_root["crossbowbolt" + _local5]);
_local5++;
}
_local11 = 0;
while (_local11 < 100) {
stopMoveAllMc(_root["puppyblast" + _local11]);
_local11++;
}
var _local17 = 0;
while (_local17 < 100) {
stopMoveAllMc(_root["fireball" + _local17]);
_local17++;
}
var _local4 = 0;
while (_local4 < 100) {
stopMoveAllMc(_root["puppy" + _local4]);
_local4++;
}
stopMoveAllMc(_root.ken);
stopMoveAllMc(main_holder);
if ((Key.isDown(27) && (nPauseTimer == 0)) && (!bStopInput)) {
camera.pause.gotoAndStop(1);
if (startBossFight) {
playAllMc(boss1);
tentacle1.play();
tentacle2.play();
}
playAllMc(alice);
sage.play();
playAllMc(camera.topright);
_local11 = 0;
while (_local11 < enemiesOnScreen) {
playAllMc(_root["enum" + _local11]);
_local11++;
}
_local10 = 0;
while (_local10 < 1000) {
_root["particle_mc" + _local10].stopit = false;
_local10++;
}
_local7 = 0;
while (_local7 < 1000) {
startMoveAllMc(_root["nade" + _local7]);
_local7++;
}
_local13 = 0;
while (_local13 < 1000) {
startMoveAllMc(_root["darkbolt" + _local13]);
_local13++;
}
_local5 = 0;
while (_local5 < 1000) {
startMoveAllMc(_root["crossbowbolt" + _local5]);
_local5++;
}
_local11 = 0;
while (_local11 < 1000) {
startMoveAllMc(_root["puppyblast" + _local11]);
_local11++;
}
_local17 = 0;
while (_local17 < 1000) {
startMoveAllMc(_root["fireball" + _local17]);
_local17++;
}
_local4 = 0;
while (_local4 < 1000) {
startMoveAllMc(_root["puppy" + _local4]);
_local4++;
}
startMoveAllMc(_root.ken);
startMoveAllMc(main_holder);
_root.camera.achmenu.gotoAndStop(1);
_root.camera.controls.gotoAndStop(1);
bPaused = false;
nPauseTimer = 5;
}
if (nPauseTimer > 0) {
nPauseTimer--;
}
// unexpected jump
}
if ((_global.zombiesKilled == 10) && (!_global.ach1)) {
_root.camera.achunlock.gotoAndStop(2);
_global.ach1 = true;
}
if ((_global.zombiesKilled == 50) && (!_global.ach2)) {
_root.camera.achunlock.gotoAndStop(3);
_global.ach2 = true;
}
if ((_global.zombiesKilled == 200) && (!_global.ach3)) {
_root.camera.achunlock.gotoAndStop(4);
_global.ach3 = true;
}
if ((_global.vampiresKilled == 10) && (!_global.ach4)) {
_root.camera.achunlock.gotoAndStop(5);
_global.ach4 = true;
}
if ((_global.vampiresKilled == 50) && (!_global.ach5)) {
_root.camera.achunlock.gotoAndStop(6);
_global.ach5 = true;
}
if ((_global.werewolvesKilled == 10) && (!_global.ach6)) {
_root.camera.achunlock.gotoAndStop(7);
_global.ach6 = true;
}
if ((_global.werewolvesKilled == 50) && (!_global.ach7)) {
_root.camera.achunlock.gotoAndStop(8);
_global.ach7 = true;
}
bUsingMagic = false;
if ((((((Key.isDown(70) && (!bStopInput)) && (!bUsingMagic)) && (bGrounded)) && (!bRiding)) && (!bDead)) && (_global.mana != 0)) {
if (nWeapNo == 1) {
alice.gotoAndStop("batmagic");
bUsingMagic = true;
}
if (nWeapNo == 2) {
alice.gotoAndStop("katmagic");
bUsingMagic = true;
}
if (nWeapNo == 3) {
alice.gotoAndStop("stakemagic");
bUsingMagic = true;
}
nChargeAmount++;
if ((nChargeAmount == 20) && (_global.mana > 0)) {
_root.camera.manabar.charge.gotoAndStop(2);
}
if (((nChargeAmount == 35) && (_global.mana > 1)) && (_global.mag2)) {
_root.camera.manabar.charge.gotoAndStop(3);
}
if (((nChargeAmount == 50) && (_global.mana > 2)) && (_global.mag3)) {
_root.camera.manabar.charge.gotoAndStop(4);
}
if (((nChargeAmount == 65) && (_global.mana > 3)) && (_global.mag4)) {
_root.camera.manabar.charge.gotoAndStop(5);
}
if (((nChargeAmount == 80) && (_global.mana > 4)) && (_global.mag5)) {
_root.camera.manabar.charge.gotoAndStop(6);
}
}
if (bUsingMagic == false) {
nChargeAmount = 0;
_root.camera.manabar.charge.gotoAndStop(1);
}
_root.camera.meatCountText.text = "x" + _global.heldGibs;
_root.camera.livesText.text = "x" + _global.lives;
if (_global.health <= 12) {
_root.camera.healthbar.gotoAndStop(13 - _global.health);
} else {
_root.camera.healthbar.gotoAndStop(_global.health + 1);
}
if (_global.mana <= 6) {
_root.camera.manabar.gotoAndStop(7 - _global.mana);
} else {
_root.camera.manabar.gotoAndStop(_global.mana + 1);
}
if ((_global.healthPacks == 0) && (nSelection == 1)) {
nSelection++;
}
if ((_global.heldGrenades == 0) && (nSelection == 2)) {
nSelection++;
}
if ((_global.manaPots == 0) && (nSelection == 3)) {
nSelection++;
}
if ((_global.heldCrossbows == 0) && (nSelection == 4)) {
nSelection++;
}
if ((_global.heldCrosses == 0) && (nSelection == 5)) {
nSelection++;
}
if (nSelection > 5) {
if (_global.healthPacks > 0) {
nSelection = 1;
} else if (_global.heldGrenades > 0) {
nSelection = 2;
} else if (_global.manaPots > 0) {
nSelection = 3;
} else if (_global.heldCrossbows > 0) {
nSelection = 4;
} else if (_global.heldCrosses > 0) {
nSelection = 5;
} else {
nSelection = 0;
}
}
if (((((_global.healthPacks == 0) && (_global.heldGrenades == 0)) && (_global.manaPots == 0)) && (_global.heldCrossbows == 0)) && (_global.heldCrosses == 0)) {
nSelection = 0;
}
if (nSelection == 0) {
if (_global.healthPacks > 0) {
nSelection = 1;
} else if (_global.heldGrenades > 0) {
nSelection = 2;
} else if (_global.manaPots > 0) {
nSelection = 3;
} else if (_global.heldCrossbows > 0) {
nSelection = 4;
} else if (_global.heldCrosses > 0) {
nSelection = 5;
}
_root.camera.secondaryslot.gotoAndStop(1);
}
if (nSelection == 1) {
_root.camera.secondaryslot.gotoAndStop(2);
_root.camera.secondaryslot.healthpack.gotoAndStop(_global.healthPacks);
} else if (nSelection == 2) {
_root.camera.secondaryslot.gotoAndStop(3);
var _local30 = Math.floor(_global.heldGrenades / 10);
_root.camera.secondaryslot.slot.ones.gotoAndStop((_global.heldGrenades - (_local30 * 10)) + 1);
_root.camera.secondaryslot.slot.tens.gotoAndStop(_local30 + 1);
} else if (nSelection == 3) {
_root.camera.secondaryslot.gotoAndStop(4);
_root.camera.secondaryslot.manapots.gotoAndStop(_global.manaPots);
} else if (nSelection == 4) {
_root.camera.secondaryslot.gotoAndStop(5);
var _local30 = Math.floor(_global.heldCrossbows / 10);
_root.camera.secondaryslot.slot.ones.gotoAndStop((_global.heldCrossbows - (_local30 * 10)) + 1);
_root.camera.secondaryslot.slot.tens.gotoAndStop(_local30 + 1);
} else if (nSelection == 5) {
_root.camera.secondaryslot.gotoAndStop(6);
var _local30 = Math.floor(_global.heldCrosses / 10);
_root.camera.secondaryslot.slot.ones.gotoAndStop((_global.heldCrosses - (_local30 * 10)) + 1);
_root.camera.secondaryslot.slot.tens.gotoAndStop(_local30 + 1);
} else {
_root.camera.secondaryslot.gotoAndStop(1);
}
var _local7 = 0;
while (_local7 < itemsOnScreen) {
if ((((alice.collectbox.hitTest(_root["item" + _local7]) && (Key.isDown(68))) && (!bStopInput)) && (!bUsingMagic)) && (!bUsingMagic)) {
effectSound = new Sound(this);
effectSound.attachSound("Pickup");
effectSound.start();
if (_root["item" + _local7]._currentframe == 1) {
_global.healthPacks++;
if (_global.healthPacks > 9) {
_global.healthPacks = 9;
}
} else if (_root["item" + _local7]._currentframe == 2) {
_global.heldCrossbows = _global.heldCrossbows + 5;
if (_global.heldCrossbows > 99) {
_global.heldCrossbows = 99;
}
} else if (_root["item" + _local7]._currentframe == 3) {
_global.heldGrenades = _global.heldGrenades + 3;
if (_global.heldGrenades > 99) {
_global.heldGrenades = 99;
}
} else if (_root["item" + _local7]._currentframe == 4) {
_global.manaPots = _global.manaPots + 1;
if (_global.manaPots > 9) {
_global.manaPots = 9;
}
} else if (_root["item" + _local7]._currentframe == 5) {
_global.heldCrosses = _global.heldCrosses + 1;
if (_global.heldCrosses > 99) {
_global.heldCrosses = 99;
}
}
_root["item" + _local7].gotoAndStop(6);
}
_local7++;
}
var _local5 = 0;
while (_local5 < breakablesOnScreen) {
if (nCurrentLane == 1) {
if ((((alice.hitBox.hitTest(_root["break" + _local5].LhitBox) && (Key.isDown(68))) && (!bStopInput)) && (!bUsingMagic)) && (_root["break" + _local5]._currentframe == 1)) {
_root["break" + _local5].gotoAndStop("right");
_root.attachMovie("item", "item" + itemsOnScreen, -10000 + itemsOnScreen, _root["break" + _local5]);
_root["item" + itemsOnScreen].gotoAndStop(Math.floor(Math.random() * 5) + 1);
_root["item" + itemsOnScreen]._x = _root["break" + _local5]._x + 20;
_root["item" + itemsOnScreen]._y = _root["break" + _local5]._y + 110;
itemsOnScreen++;
} else if ((((alice.hitBox.hitTest(_root["break" + _local5].RhitBox) && (Key.isDown(68))) && (!bStopInput)) && (!bUsingMagic)) && (_root["break" + _local5]._currentframe == 1)) {
_root["break" + _local5].gotoAndStop("left");
_root.attachMovie("item", "item" + itemsOnScreen, -10000 + itemsOnScreen, _root["break" + _local5]);
_root["item" + itemsOnScreen].gotoAndStop(3);
_root["item" + itemsOnScreen]._x = _root["break" + _local5]._x - 200;
_root["item" + itemsOnScreen]._y = _root["break" + _local5]._y + 110;
itemsOnScreen++;
}
}
_local5++;
}
var _local4 = 0;
while (_local4 < (nGrenadesOnScreen + 1)) {
if (_root["nade" + _local4].wait._currentframe == 50) {
explodedNades++;
if (((startBossFight && (_root["nade" + _local4]._x > 300)) && (nBoss1Elec != 0)) && (_root["nade" + _local4]._currentframe == 1)) {
createSlimeExplosion(_root["nade" + _local4]._x + 20, _root["nade" + _local4]._y);
nBossDamage = nBossDamage + 8;
camera.bosslifebars.seb.bar._xscale = 100 - nBossDamage;
if (nBossDamage >= 100) {
boss1.gotoAndStop(5);
camera.bosslifebars.gotoAndStop(1);
endBossFight();
}
}
if (!_global.pyro) {
_root["nade" + _local4].gotoAndStop(2);
} else {
_root["nade" + _local4].gotoAndStop(3);
}
var _local10 = 0;
while (_local10 < enemiesOnScreen) {
if (_root["nade" + _local4].hitTest(_root["enum" + _local10].hitbumpR) || (_root["nade" + _local4].hitTest(_root["enum" + _local10].hitbumpL))) {
if ((_root["nade" + _local4].lane == _root["enum" + _local10].getCurrentLane()) && (_root["enum" + _local10].sState != "dead")) {
_root["enum" + _local10].hit(4, 1);
if (((_root["enum" + _local10].getType() != "slime") && (_root["enum" + _local10].getType() != "small slime")) && (_root["enum" + _local10].getType() != "tiny slime")) {
gib(_root["enum" + _local10]._x, _root["enum" + _local10]._y, _root["enum" + _local10].getCurrentLane(), 15 * _global.goreMultiplier);
}
nEnemiesKilled++;
if ((_root["enum" + _local10].getType() == "zombie") || (_root["enum" + _local10].getType() == "fat zombie")) {
_global.zombiesKilled++;
} else if (_root["enum" + _local10].getType() == "werewolf") {
_global.werewolvesKilled++;
} else if (_root["enum" + _local10].getType() == "vampire") {
_global.vampiresKilled++;
}
}
}
_local10++;
}
}
_local4++;
}
var _local10 = 0;
while (_local10 < enemiesOnScreen) {
if (bUsingCross) {
if (_root["enum" + _local10].sState != "dead") {
if (!_global.longCross) {
if (alice.explodebox.hitTest(_root["enum" + _local10].hitbumpR) || (alice.explodebox.hitTest(_root["enum" + _local10].hitbumpL))) {
_root["enum" + _local10].hit(4, 1);
if (((_root["enum" + _local10].getType() != "slime") && (_root["enum" + _local10].getType() != "small slime")) && (_root["enum" + _local10].getType() != "tiny slime")) {
gib(_root["enum" + _local10]._x, _root["enum" + _local10]._y, _root["enum" + _local10].getCurrentLane(), 15 * _global.goreMultiplier);
}
nEnemiesKilled++;
if ((_root["enum" + _local10].getType() == "zombie") || (_root["enum" + _local10].getType() == "fat zombie")) {
_global.zombiesKilled++;
} else if (_root["enum" + _local10].getType() == "werewolf") {
_global.werewolvesKilled++;
} else if (_root["enum" + _local10].getType() == "vampire") {
_global.vampiresKilled++;
}
}
} else if (_root["enum" + _local10].bEnteredScreen) {
_root["enum" + _local10].hit(4, 1);
if (((_root["enum" + _local10].getType() != "slime") && (_root["enum" + _local10].getType() != "small slime")) && (_root["enum" + _local10].getType() != "tiny slime")) {
gib(_root["enum" + _local10]._x, _root["enum" + _local10]._y, _root["enum" + _local10].getCurrentLane(), 15 * _global.goreMultiplier);
}
nEnemiesKilled++;
if ((_root["enum" + _local10].getType() == "zombie") || (_root["enum" + _local10].getType() == "fat zombie")) {
_global.zombiesKilled++;
} else if (_root["enum" + _local10].getType() == "werewolf") {
_global.werewolvesKilled++;
} else if (_root["enum" + _local10].getType() == "vampire") {
_global.vampiresKilled++;
}
}
}
}
var _local12;
var _local19;
var _local14;
if (bKenOnScreen) {
_local12 = _root.ken._x;
_local19 = _root.ken._y;
_local14 = _root.ken.lane;
} else {
_local12 = alice._x;
_local19 = alice._y;
_local14 = nCurrentLane;
}
_root["enum" + _local10].Update();
_root["enum" + _local10].Think(enemyDecisionValue(_root["enum" + _local10].aggressionValue, _local12 - _root["enum" + _local10]._x, nWeapNo, _root["enum" + _local10].sType, enemiesOnScreen, 0), _local14);
if (((((_root["enum" + _local10].Move(_local12, _local19, _local14) == true) && (!bBlocking)) && (!bHit)) && (!bDead)) && (nInvincible == 0)) {
if (!bKenOnScreen) {
if ((!bHitChance) && (!bUsingMagic)) {
if (nWeapNo == 1) {
alice.gotoAndStop("bhit");
}
if (nWeapNo == 2) {
alice.gotoAndStop("khit");
}
if (nWeapNo == 3) {
alice.gotoAndStop("shit");
}
} else {
myColor = new Color(alice);
myColor.setTransform({ra:70, rb:255, ga:100, gb:-255, ba:100, bb:-255, aa:100, ab:0});
tintTimer = setInterval(tintEnd, 150);
}
_global.health--;
if (bRiding) {
_root.dog.gotoAndStop(1);
bRiding = false;
nDogCount--;
if (alice._x < 320) {
_root.dog._x = alice._x + 120;
}
if (alice._x >= 320) {
_root.dog._x = alice._x - 120;
}
if (nCurrentLane == 1) {
_root.dog._y = 439.05;
} else if (nCurrentLane == 2) {
_root.dog._y = 494.05;
} else if (nCurrentLane == 3) {
_root.dog._y = 540.05;
}
}
if (_global.health == 0) {
alice.gotoAndStop("dead");
if (_global.lives == 1) {
backToMenu = true;
}
bDead = true;
nSpeed = 0;
bDontGetUp = true;
deadTimer = setInterval(deadEnd, 1300);
} else {
hitTimer = setInterval(hitEnd, 150);
}
bHit = true;
}
}
_root["enum" + _local10].setDepth(_local10);
while (((alice.hitBox.hitTest(_root["enum" + _local10].rightbumper) && (nCurrentLane == _root["enum" + _local10].getCurrentLane())) && (bFacingLeft)) && (_root["enum" + _local10].getState() != "dead")) {
alice._x++;
nSpeed = 0;
}
while (((alice.hitBox.hitTest(_root["enum" + _local10].leftbumper) && (nCurrentLane == _root["enum" + _local10].getCurrentLane())) && (bFacingRight)) && (_root["enum" + _local10].getState() != "dead")) {
alice._x--;
nSpeed = 0;
}
if (bHitChance) {
if (bRiding) {
if ((((alice.attackzone.hitTest(_root["enum" + _local10].hitbumpR) && (nCurrentLane == _root["enum" + _local10].getCurrentLane())) && (bFacingLeft)) && (_root["enum" + _local10].getState() != "dead")) || (((alice.attackzone.hitTest(_root["enum" + _local10].hitbumpL) && (nCurrentLane == _root["enum" + _local10].getCurrentLane())) && (bFacingRight)) && (_root["enum" + _local10].getState() != "dead"))) {
var _local9;
if (((_root["enum" + _local10].getType() == "vampire") || (_root["enum" + _local10].getType() == "small slime")) || (_root["enum" + _local10].getType() == "slime")) {
_local9 = _root["enum" + _local10].hit(4, nAttack);
} else {
_local9 = _root["enum" + _local10].hit(2, nAttack);
}
if (((_local9 == 0) && (_root["enum" + _local10].getType() != "slime")) && (_root["enum" + _local10].getType() != "small slime")) {
if (_root["enum" + _local10].getType() == "tiny slime") {
nEnemiesKilled++;
} else if (nWeapNo == 3) {
if (_root["enum" + _local10].getType() != "fat zombie") {
gib(_root["enum" + _local10]._x, _root["enum" + _local10]._y, _root["enum" + _local10].getCurrentLane(), 3 * _global.goreMultiplier);
if (_root["enum" + _local10].getType() != "vampire") {
blood(_root["enum" + _local10]._x, _root["enum" + _local10]._y, 30 * _global.goreMultiplier);
}
nEnemiesKilled++;
if ((_root["enum" + _local10].getType() == "zombie") || (_root["enum" + _local10].getType() == "fat zombie")) {
_global.zombiesKilled++;
} else if (_root["enum" + _local10].getType() == "werewolf") {
_global.werewolvesKilled++;
} else if (_root["enum" + _local10].getType() == "vampire") {
_global.vampiresKilled++;
}
}
} else {
gib(_root["enum" + _local10]._x, _root["enum" + _local10]._y, _root["enum" + _local10].getCurrentLane(), 6 * _global.goreMultiplier);
blood(_root["enum" + _local10]._x, _root["enum" + _local10]._y, 50 * _global.goreMultiplier);
nEnemiesKilled++;
if ((_root["enum" + _local10].getType() == "zombie") || (_root["enum" + _local10].getType() == "fat zombie")) {
_global.zombiesKilled++;
} else if (_root["enum" + _local10].getType() == "werewolf") {
_global.werewolvesKilled++;
} else if (_root["enum" + _local10].getType() == "vampire") {
_global.vampiresKilled++;
}
}
} else if (_local9 == 1) {
if (((_root["enum" + _local10].getType() == "slime") || (_root["enum" + _local10].getType() == "small slime")) || (_root["enum" + _local10].getType() == "tiny slime")) {
nEnemiesKilled++;
} else {
gib(_root["enum" + _local10]._x, _root["enum" + _local10]._y, _root["enum" + _local10].getCurrentLane(), 12 * _global.goreMultiplier);
blood(_root["enum" + _local10]._x, _root["enum" + _local10]._y, 80 * _global.goreMultiplier);
nEnemiesKilled++;
if ((_root["enum" + _local10].getType() == "zombie") || (_root["enum" + _local10].getType() == "fat zombie")) {
_global.zombiesKilled++;
} else if (_root["enum" + _local10].getType() == "werewolf") {
_global.werewolvesKilled++;
} else if (_root["enum" + _local10].getType() == "vampire") {
_global.vampiresKilled++;
}
}
} else if ((_local9 == 0) && (_root["enum" + _local10].getType() == "slime")) {
makeSmSlime(_root["enum" + _local10], -15, "smslime");
enemiesOnScreen++;
makeSmSlime(_root["enum" + _local10], 15, "smslime");
enemiesOnScreen++;
nEnemiesKilled++;
} else if ((_local9 == 0) && (_root["enum" + _local10].getType() == "small slime")) {
makeSmSlime(_root["enum" + _local10], -15, "smsmslime");
enemiesOnScreen++;
makeSmSlime(_root["enum" + _local10], 15, "smsmslime");
enemiesOnScreen++;
nEnemiesKilled++;
}
}
} else if ((((alice.hitBox.hitTest(_root["enum" + _local10].hitbumpR) && (nCurrentLane == _root["enum" + _local10].getCurrentLane())) && (bFacingLeft)) && (_root["enum" + _local10].getState() != "dead")) || (((alice.hitBox.hitTest(_root["enum" + _local10].hitbumpL) && (nCurrentLane == _root["enum" + _local10].getCurrentLane())) && (bFacingRight)) && (_root["enum" + _local10].getState() != "dead"))) {
var _local6;
var _local8 = false;
var _local15 = false;
if (nWeapNo == 1) {
if (_global.batDam1) {
_local6 = 15;
}
if (_global.batDam2) {
_local6 = 20;
} else {
_local6 = 10;
}
if ((_root["enum" + _local10].getType() == "slime") || (_root["enum" + _local10].getType() == "small slime")) {
if (_global.batCutSlimes) {
_local8 = true;
}
}
if (_global.batOneFat && (_root["enum" + _local10].getType() == "fat zombie")) {
_local8 = true;
}
} else if (nWeapNo == 2) {
if (_global.katDam1) {
_local6 = 15;
}
if (_global.katDam2) {
_local6 = 20;
} else {
_local6 = 10;
}
if (_global.katOneVamp && (_root["enum" + _local10].getType() == "vampire")) {
_local8 = true;
}
} else if (nWeapNo == 3) {
if (_global.stakeDam1) {
_local6 = 15;
}
if (_global.stakeDam2) {
_local6 = 20;
} else {
_local6 = 10;
}
if (_global.stakeOneWere && (_root["enum" + _local10].getType() == "werewolf")) {
_local8 = true;
}
if ((_root["enum" + _local10].getType() == "slime") || (_root["enum" + _local10].getType() == "small slime")) {
if (_global.stakeCutSlimes) {
_local15 = true;
}
}
if (_global.stakeOneVamp && (_root["enum" + _local10].getType() == "vampire")) {
_local15 = true;
}
}
if (!bGrounded) {
_local6 = _local6 * 2;
}
var _local9 = _root["enum" + _local10].hit(nWeapNo, nAttack, _local6, _local8, _local15);
if (((_local9 == 0) && (_root["enum" + _local10].getType() != "slime")) && (_root["enum" + _local10].getType() != "small slime")) {
if (_root["enum" + _local10].getType() == "tiny slime") {
nEnemiesKilled++;
} else if (nWeapNo == 3) {
if (_root["enum" + _local10].getType() != "fat zombie") {
gib(_root["enum" + _local10]._x, _root["enum" + _local10]._y, _root["enum" + _local10].getCurrentLane(), 3 * _global.goreMultiplier);
if (_root["enum" + _local10].getType() != "vampire") {
blood(_root["enum" + _local10]._x, _root["enum" + _local10]._y, 30 * _global.goreMultiplier);
} else if (_root["enum" + _local10].sForm == "bat") {
blood(_root["enum" + _local10]._x, _root["enum" + _local10]._y, 30 * _global.goreMultiplier);
}
nEnemiesKilled++;
if ((_root["enum" + _local10].getType() == "zombie") || (_root["enum" + _local10].getType() == "fat zombie")) {
_global.zombiesKilled++;
} else if (_root["enum" + _local10].getType() == "werewolf") {
_global.werewolvesKilled++;
} else if (_root["enum" + _local10].getType() == "vampire") {
_global.vampiresKilled++;
}
}
} else {
gib(_root["enum" + _local10]._x, _root["enum" + _local10]._y, _root["enum" + _local10].getCurrentLane(), 6 * _global.goreMultiplier);
blood(_root["enum" + _local10]._x, _root["enum" + _local10]._y, 50 * _global.goreMultiplier);
nEnemiesKilled++;
if ((_root["enum" + _local10].getType() == "zombie") || (_root["enum" + _local10].getType() == "fat zombie")) {
_global.zombiesKilled++;
} else if (_root["enum" + _local10].getType() == "werewolf") {
_global.werewolvesKilled++;
} else if (_root["enum" + _local10].getType() == "vampire") {
_global.vampiresKilled++;
}
}
} else if (_local9 == 1) {
if (((_root["enum" + _local10].getType() == "slime") || (_root["enum" + _local10].getType() == "small slime")) || (_root["enum" + _local10].getType() == "tiny slime")) {
nEnemiesKilled++;
} else {
gib(_root["enum" + _local10]._x, _root["enum" + _local10]._y, _root["enum" + _local10].getCurrentLane(), 12 * _global.goreMultiplier);
blood(_root["enum" + _local10]._x, _root["enum" + _local10]._y, 80 * _global.goreMultiplier);
nEnemiesKilled++;
if ((_root["enum" + _local10].getType() == "zombie") || (_root["enum" + _local10].getType() == "fat zombie")) {
_global.zombiesKilled++;
} else if (_root["enum" + _local10].getType() == "werewolf") {
_global.werewolvesKilled++;
} else if (_root["enum" + _local10].getType() == "vampire") {
_global.vampiresKilled++;
}
}
} else if ((_local9 == 0) && (_root["enum" + _local10].getType() == "slime")) {
makeSmSlime(_root["enum" + _local10], -15, "smslime");
enemiesOnScreen++;
makeSmSlime(_root["enum" + _local10], 15, "smslime");
enemiesOnScreen++;
nEnemiesKilled++;
} else if ((_local9 == 0) && (_root["enum" + _local10].getType() == "small slime")) {
makeSmSlime(_root["enum" + _local10], -15, "smsmslime");
enemiesOnScreen++;
makeSmSlime(_root["enum" + _local10], 15, "smsmslime");
enemiesOnScreen++;
nEnemiesKilled++;
}
if (!bDogAttack) {
bHitChance = false;
}
}
}
_local10++;
}
if (_global.gibsOnScreen >= 300) {
_global.gibsOnScreen = 0;
}
_local10 = 0;
while (_local10 < 361) {
if (alice.collectbox.hitTest(_root["particle_mc" + _local10])) {
_root["particle_mc" + _local10].removeMovieClip();
_global.heldGibs++;
nPickedUpGibs++;
}
_local10++;
}
if (nEnemiesKilled == enemiesOnScreen) {
if (nSpawnTime < nTime1) {
} else if (nSpawnTime < nTime2) {
nSpawnTime = nTime2 - 1;
} else if (nSpawnTime < nTime3) {
nSpawnTime = nTime3 - 1;
} else if ((nSpawnTime > nTime3) && (nTargetTime == 0)) {
nTargetTime = nSpawnTime + 90;
} else if (nSpawnTime >= nTargetTime) {
nTargetTime = 0;
enemiesOnScreen = 0;
if ((nScreenNo != 8) && (nScreenNo != 9)) {
bNextScreen = true;
_root.camera.topright.gotoAndStop(2);
}
}
}
if (bShopOnScreen) {
shopwindow.update();
if (bRiding && (!_global.mag4addon)) {
alice.gotoAndStop("dogidle");
} else if (bRiding && (_global.mag4addon)) {
alice.gotoAndStop("ndogidle");
} else {
alice.gotoAndStop("idle");
}
bStopInput = true;
}
if ((nCurrentLane == 1) && (alice.hitTest(sage))) {
if (((((Key.isDown(68) && (bGrounded)) && (!bStopInput)) && (!bUsingMagic)) && (!bJAttacking)) && (bNextScreen)) {
if ((speechCounter == 0) || (speechCounter == 2)) {
introMovie = true;
nSpeed = 0;
_root.attachMovie("speech", "speechbub", _root.getNextHighestDepth());
_root.speechbub._x = sage._x - 20;
_root.speechbub._y = sage._y;
var _local31 = _root.speechbub.speechbox._height;
_root.speechbub.message.autoSize = true;
_root.speechbub.message.text = speechList[speechCounter];
_root.speechbub.speechbox._height = _root.speechbub.message._height;
_root.speechbub.speechbox._y = _root.speechbub.speechbox._y - _root.speechbub.speechbox._height;
_root.speechbub.speechbox._y = _root.speechbub.speechbox._y + _local31;
_root.speechbub.message._y = _root.speechbub.speechbox._y;
speechTime = true;
nSpeechCountdown = 10;
speechCounter++;
} else if (speechCounter == 1) {
introMovie = true;
_root.attachMovie("speech", "speechbub", _root.getNextHighestDepth());
_root.speechbub._y = alice._y - 70;
if (bFacingRight) {
_root.speechbub._x = alice._x + 80;
_root.speechbub._xscale = -100;
_root.speechbub.message._xscale = -100;
_root.speechbub.message._x = _root.speechbub.message._x + _root.speechbub.message._width;
_root.speechbub.message._x = _root.speechbub.message._x - 5;
} else if (bFacingLeft) {
_root.speechbub._x = alice._x - 80;
_root.speechbub._xscale = 100;
_root.speechbub.message._xscale = 100;
}
var _local31 = _root.speechbub.speechbox._height;
_root.speechbub.message.autoSize = true;
_root.speechbub.message.text = speechList[speechCounter];
_root.speechbub.speechbox._height = _root.speechbub.message._height;
_root.speechbub.speechbox._y = _root.speechbub.speechbox._y - _root.speechbub.speechbox._height;
_root.speechbub.speechbox._y = _root.speechbub.speechbox._y + _local31;
_root.speechbub.message._y = _root.speechbub.speechbox._y;
speechTime = true;
nSpeechCountdown = 10;
speechCounter++;
} else {
bShopOnScreen = true;
camera.attachMovie("shop", "shopwindow", 104850);
camera.shopwindow.items.gotoAndStop(2);
camera.shopwindow._x = -300;
camera.shopwindow._y = -220;
}
}
}
if (startBossFight) {
if (nBoss1Elec > 1) {
nBoss1Elec--;
}
if (nBoss1Elec == 1) {
boss1.gotoAndStop(4);
}
if (nTentacleCountdown > 0) {
nTentacleCountdown--;
}
if (((nTentacleCountdown == 0) && (nBoss1Elec == 0)) && (startBossFight)) {
nTentacleCountdown = 90;
_root.attachMovie("tentacle", "tentacle1", _root.getNextHighestDepth());
tentacle1.lane = Math.floor(Math.random() * 3) + 1;
if (tentacle1.lane == 1) {
tentacle1._y = 439.05;
tentacle1.swapDepths(1551);
}
if (tentacle1.lane == 2) {
tentacle1._y = 494.05;
tentacle1.swapDepths(2551);
}
if (tentacle1.lane == 3) {
tentacle1._y = 540.05;
tentacle1.swapDepths(3551);
}
tentacle1._x = Math.floor(Math.random() * 401) + -200;
_root.attachMovie("tentacle", "tentacle2", _root.getNextHighestDepth());
tentacle2.lane = Math.floor(Math.random() * 3) + 1;
if (tentacle2.lane == 1) {
tentacle2._y = 439.05;
tentacle2.swapDepths(1552);
}
if (tentacle2.lane == 2) {
tentacle2._y = 494.05;
tentacle2.swapDepths(2552);
}
if (tentacle2.lane == 3) {
tentacle2._y = 540.05;
tentacle2.swapDepths(3552);
}
tentacle2._x = Math.floor(Math.random() * 401) + -200;
}
}
if ((((!bBlocking) && (!bHit)) && (!bDead)) && (nInvincible == 0)) {
if ((alice.hitBox.hitTest(tentacle1.hitbox) && (nCurrentLane <= tentacle1.lane)) || (alice.hitBox.hitTest(tentacle2.hitbox) && (nCurrentLane <= tentacle2.lane))) {
if (nWeapNo == 1) {
alice.gotoAndStop("bhit");
}
if (nWeapNo == 2) {
alice.gotoAndStop("khit");
}
if (nWeapNo == 3) {
alice.gotoAndStop("shit");
}
_global.health--;
if (bRiding) {
_root.dog.gotoAndStop(1);
bRiding = false;
nDogCount--;
if (alice._x < 320) {
_root.dog._x = alice._x + 120;
}
if (alice._x >= 320) {
_root.dog._x = alice._x - 120;
}
if (nCurrentLane == 1) {
_root.dog._y = 439.05;
} else if (nCurrentLane == 2) {
_root.dog._y = 494.05;
} else if (nCurrentLane == 3) {
_root.dog._y = 540.05;
}
}
if (_global.health == 0) {
alice.gotoAndStop("dead");
if (_global.lives == 1) {
backToMenu = true;
}
bDead = true;
bDontGetUp = true;
deadTimer = setInterval(deadEnd, 1300);
} else {
hitTimer = setInterval(hitEnd, 150);
}
bHit = true;
}
}
alice._y = alice._y + nGravity;
nGravity++;
if (((alice._x > 650) && (bNextScreen == true)) && (bGrounded)) {
bProgress = true;
bDoOnce = true;
}
if (nInvincible > 0) {
nInvincible--;
}
if (nItemCooldown > 0) {
nItemCooldown--;
}
if (nSelectionCooldown > 0) {
nSelectionCooldown--;
}
if (nUseMagicCooldown > 0) {
nUseMagicCooldown--;
}
if (nPauseTimer > 0) {
nPauseTimer--;
}
if (nSpeechCountdown > 0) {
nSpeechCountdown--;
}
if (alice._y > 650) {
alice._y = aResetPositions[0];
alice._x = aResetPositions[1];
}
if (this.camera.weapIcon.currentFrame != nWeapNo) {
this.camera.weapIcon.gotoAndStop(nWeapNo);
}
if (nWeapCooldown != 0) {
nWeapCooldown--;
}
switch (nCurrentLane) {
case 1 :
alice.swapDepths(1000);
while (_root.ground1.hitTest(alice._x, alice._y + 16, true) || (lane1.hitTest(alice._x, alice._y + 16, true))) {
if (bGrounded == false) {
bStopInput = true;
bGrounded = true;
if ((nWeapNo == 1) && (!bDead)) {
if (!bRiding) {
alice.gotoAndStop("land");
} else if (!_global.mag4addon) {
alice.gotoAndStop("dogidle");
} else {
alice.gotoAndStop("ndogidle");
}
landtimer = setInterval(landPause, 100);
}
if ((nWeapNo == 2) && (!bDead)) {
if (!bRiding) {
alice.gotoAndStop("kland");
} else if (!_global.mag4addon) {
alice.gotoAndStop("dogidle");
} else {
alice.gotoAndStop("ndogidle");
}
landtimer = setInterval(landPause, 100);
}
if ((nWeapNo == 3) && (!bDead)) {
if ((bJAttacking == true) && (!bRiding)) {
alice.gotoAndStop("stakejumpattack");
alice.sjumpattackMC.gotoAndStop("sAttackB");
smashtimer = setInterval(smashDown, 500 - _global.stakeSpe);
} else {
if (!bRiding) {
alice.gotoAndStop("sland");
} else if (!_global.mag4addon) {
alice.gotoAndStop("dogidle");
} else {
alice.gotoAndStop("ndogidle");
}
landtimer = setInterval(landPause, 100);
}
}
}
nGravity = 0;
alice._y--;
}
if ((alice._y >= 439) && (alice._y < 440)) {
alice._y = 439.05;
}
if ((alice._y > 439.05) && (bGrounded == true)) {
bStopInput = true;
bChangingLane = true;
nGravity = 0;
alice._y = alice._y - LANE_SPEED;
if (!bRiding) {
if ((nWeapNo == 1) && (!bHit)) {
alice.gotoAndStop("run");
}
if ((nWeapNo == 2) && (!bHit)) {
alice.gotoAndStop("krun");
}
if ((nWeapNo == 3) && (!bHit)) {
alice.gotoAndStop("srun");
}
} else if (!_global.mag4addon) {
alice.gotoAndStop("dogwalk");
} else {
alice.gotoAndStop("ndogwalk");
}
}
if (((alice._y <= 439.05) && (bGrounded == true)) && (bChangingLane)) {
bStopInput = false;
bChangingLane = false;
}
if (alice._y > 600) {
alice._y = 439.05;
bGrounded = true;
}
break;
case 2 :
alice.swapDepths(2000);
while (_root.ground2.hitTest(alice._x, alice._y + 16, true) || (lane2.hitTest(alice._x, alice._y + 16, true))) {
if (bGrounded == false) {
bStopInput = true;
bGrounded = true;
if ((nWeapNo == 1) && (!bDead)) {
if (!bRiding) {
alice.gotoAndStop("land");
} else if (!_global.mag4addon) {
alice.gotoAndStop("dogidle");
} else {
alice.gotoAndStop("ndogidle");
}
landtimer = setInterval(landPause, 100);
}
if ((nWeapNo == 2) && (!bDead)) {
if (!bRiding) {
alice.gotoAndStop("kland");
} else if (!_global.mag4addon) {
alice.gotoAndStop("dogidle");
} else {
alice.gotoAndStop("ndogidle");
}
landtimer = setInterval(landPause, 100);
}
if ((nWeapNo == 3) && (!bDead)) {
if ((bJAttacking == true) && (!bRiding)) {
alice.gotoAndStop("stakejumpattack");
alice.sjumpattackMC.gotoAndStop("sAttackB");
smashtimer = setInterval(smashDown, 500 - _global.stakeSpe);
} else {
if (!bRiding) {
alice.gotoAndStop("sland");
} else if (!_global.mag4addon) {
alice.gotoAndStop("dogidle");
} else {
alice.gotoAndStop("ndogidle");
}
landtimer = setInterval(landPause, 100);
}
}
}
nGravity = 0;
alice._y--;
}
if ((alice._y >= 494) && (alice._y < 495)) {
alice._y = 494.05;
}
if ((alice._y > 494.05) && (bGrounded == true)) {
bStopInput = true;
bChangingLane = true;
nGravity = 0;
alice._y = alice._y - LANE_SPEED;
if (!bRiding) {
if ((nWeapNo == 1) && (!bHit)) {
alice.gotoAndStop("run");
}
if ((nWeapNo == 2) && (!bHit)) {
alice.gotoAndStop("krun");
}
if ((nWeapNo == 3) && (!bHit)) {
alice.gotoAndStop("srun");
}
} else if (!_global.mag4addon) {
alice.gotoAndStop("dogwalk");
} else {
alice.gotoAndStop("ndogwalk");
}
}
if (((alice._y == 494.05) && (bGrounded == true)) && (bChangingLane)) {
bChangingLane = false;
bStopInput = false;
}
if (((alice._y < 494.05) && (bGrounded == true)) && (!bChangingLane)) {
bStopInput = true;
bChangingLane = true;
nGravity = 0;
alice._y = alice._y + LANE_SPEED;
if (!bRiding) {
if ((nWeapNo == 1) && (!bHit)) {
alice.gotoAndStop("run");
}
if ((nWeapNo == 2) && (!bHit)) {
alice.gotoAndStop("krun");
}
if ((nWeapNo == 3) && (!bHit)) {
alice.gotoAndStop("srun");
}
} else if (!_global.mag4addon) {
alice.gotoAndStop("dogwalk");
} else {
alice.gotoAndStop("ndogwalk");
}
}
break;
case 3 :
alice.swapDepths(3000);
while (_root.ground3.hitTest(alice._x, alice._y + 16, true) || (lane3.hitTest(alice._x, alice._y + 16, true))) {
if (bGrounded == false) {
bStopInput = true;
bGrounded = true;
if ((nWeapNo == 1) && (!bDead)) {
if (!bRiding) {
alice.gotoAndStop("land");
} else if (!_global.mag4addon) {
alice.gotoAndStop("dogidle");
} else {
alice.gotoAndStop("ndogidle");
}
landtimer = setInterval(landPause, 100);
}
if ((nWeapNo == 2) && (!bDead)) {
if (!bRiding) {
alice.gotoAndStop("kland");
} else if (!_global.mag4addon) {
alice.gotoAndStop("dogidle");
} else {
alice.gotoAndStop("ndogidle");
}
landtimer = setInterval(landPause, 100);
}
if ((nWeapNo == 3) && (!bDead)) {
if ((bJAttacking == true) && (!bRiding)) {
alice.gotoAndStop("stakejumpattack");
alice.sjumpattackMC.gotoAndStop("sAttackB");
smashtimer = setInterval(smashDown, 500 - _global.stakeSpe);
} else {
if (!bRiding) {
alice.gotoAndStop("sland");
} else if (!_global.mag4addon) {
alice.gotoAndStop("dogidle");
} else {
alice.gotoAndStop("ndogidle");
}
landtimer = setInterval(landPause, 100);
}
}
}
nGravity = 0;
alice._y--;
}
if ((alice._y >= 540) && (alice._y < 541)) {
alice._y = 540.05;
}
if (((alice._y < 540.05) && (bGrounded == true)) && (!bChangingLane)) {
bStopInput = true;
bChangingLane = true;
nGravity = 0;
alice._y = alice._y + LANE_SPEED;
if (!bRiding) {
if ((nWeapNo == 1) && (!bHit)) {
alice.gotoAndStop("run");
}
if ((nWeapNo == 2) && (!bHit)) {
alice.gotoAndStop("krun");
}
if ((nWeapNo == 3) && (!bHit)) {
alice.gotoAndStop("srun");
}
} else if (!_global.mag4addon) {
alice.gotoAndStop("dogwalk");
} else {
alice.gotoAndStop("ndogwalk");
}
}
if (((alice._y >= 540.05) && (bGrounded == true)) && (bChangingLane)) {
bStopInput = false;
bChangingLane = false;
}
break;
}
if ((_global.health == 0) && (!bDead)) {
alice.gotoAndStop("dead");
if (_global.lives == 1) {
backToMenu = true;
}
bDead = true;
nSpeed = 0;
bDontGetUp = true;
deadTimer = setInterval(deadEnd, 1300);
}
nSpeed = nSpeed * 0.88;
alice._x = alice._x + nSpeed;
if (nScreenNo == 8) {
if (alice._x < -200) {
alice._x = -200;
}
if (alice._y < 439.05) {
if (alice._x > 450) {
alice._x = 450;
}
} else if (nBoss1Elec != 0) {
if (alice._x > 320) {
alice._x = 320;
}
} else if (alice._x > 180) {
alice._x = 180;
}
} else {
if (alice._x < 10) {
alice._x = 10;
}
if ((alice._x > 640) && (!bNextScreen)) {
alice._x = 640;
}
}
if (((((Key.isDown(32) && (!bStopInput)) && (!bUsingMagic)) && (nWeapCooldown == 0)) && (!bDead)) && (!bRiding)) {
effectSound = new Sound(this);
effectSound.attachSound("WeaponChange");
effectSound.start();
nWeapNo++;
if (nWeapNo > 3) {
nWeapNo = 1;
}
if (!bGrounded) {
if (nWeapNo == 1) {
alice.gotoAndStop("jump");
}
if (nWeapNo == 2) {
alice.gotoAndStop("kjump");
}
if (nWeapNo == 3) {
alice.gotoAndStop("sjump");
}
}
nWeapCooldown = 6;
}
if (Key.isDown(27) && (nPauseTimer == 0)) {
bPaused = true;
nPauseTimer = 5;
}
if ((((Key.isDown(69) && (!bStopInput)) && (!bUsingMagic)) && (nSelectionCooldown == 0)) && (!bDead)) {
nSelection++;
if ((nSelection == 1) && (_global.healthPacks == 0)) {
nSelection++;
}
if ((nSelection == 2) && (_global.heldGrenades == 0)) {
nSelection++;
}
if ((nSelection == 3) && (_global.manaPots == 0)) {
nSelection++;
}
if ((nSelection == 4) && (_global.heldCrossbows == 0)) {
nSelection++;
}
if ((nSelection == 5) && (_global.heldCrosses == 0)) {
nSelection++;
}
if (((((_global.heldGrenades == 0) && (_global.healthPacks == 0)) && (_global.manaPots == 0)) && (_global.heldCrossbows == 0)) && (_global.heldCrosses == 0)) {
nSelection = 0;
}
if (nSelection > 5) {
nSelection = 1;
}
nSelectionCooldown = 10;
}
bBlocking = false;
if ((((Key.isDown(65) && (!bStopInput)) && (!bUsingMagic)) && (!bDead)) && (!bRiding)) {
bBlocking = true;
if (nBlockDashTimer > 0) {
nBlockDashTimer--;
}
if (nBlockDashRecharge > 0) {
nBlockDashRecharge--;
}
if (nBlockDashChance > 0) {
nBlockDashChance--;
}
if (nBlockDashTimer == 0) {
if (nWeapNo == 1) {
alice.gotoAndStop("block");
}
if (nWeapNo == 2) {
alice.gotoAndStop("kblock");
}
if (nWeapNo == 3) {
alice.gotoAndStop("sblock");
}
nSpeed = 0;
}
bKeyListener.onKeyUp = function () {
if ((Key.getCode() == 39) && (nBlockDashChance == 0)) {
nBlockDashChance = 10;
}
if ((Key.getCode() == 37) && (nBlockDashChance == 0)) {
nBlockDashChance = 10;
}
};
if ((((Key.isDown(37) && (nBlockDashTimer == 0)) && (nBlockDashRecharge == 0)) && (nBlockDashChance > 0)) && (!bDead)) {
if (nWeapNo == 1) {
alice.gotoAndStop("bblockdash");
}
if (nWeapNo == 2) {
alice.gotoAndStop("kblockdash");
}
if (nWeapNo == 3) {
alice.gotoAndStop("sblockdash");
}
nSpeed = -40;
nBlockDashTimer = 5;
nBlockDashRecharge = 25;
alice._xscale = -100;
bFacingLeft = false;
bFacingRight = true;
}
if ((((Key.isDown(39) && (nBlockDashTimer == 0)) && (nBlockDashRecharge == 0)) && (nBlockDashChance > 0)) && (!bDead)) {
if (nWeapNo == 1) {
alice.gotoAndStop("bblockdash");
}
if (nWeapNo == 2) {
alice.gotoAndStop("kblockdash");
}
if (nWeapNo == 3) {
alice.gotoAndStop("sblockdash");
}
nSpeed = 40;
nBlockDashTimer = 5;
nBlockDashRecharge = 25;
alice._xscale = 100;
bFacingLeft = true;
bFacingRight = false;
}
} else {
if (((Key.isDown(37) && (!bStopInput)) && (!bUsingMagic)) && (!bDead)) {
if (nSpeed > 0) {
nDashCooldown = 20;
}
if (nDashCooldown > 0) {
nDashCooldown--;
}
if (nSpeed >= (-nMaxmove)) {
nSpeed--;
}
if ((nSpeed < (-nMaxmove)) && (nDashChance == 0)) {
nSpeed = -nMaxmove;
}
alice._xscale = 100;
bFacingLeft = true;
bFacingRight = false;
if (bGrounded == true) {
if (!bRiding) {
if ((nWeapNo == 1) && (!bHit)) {
alice.gotoAndStop("run");
}
if ((nWeapNo == 2) && (!bHit)) {
alice.gotoAndStop("krun");
}
if ((nWeapNo == 3) && (!bHit)) {
alice.gotoAndStop("srun");
}
} else if (!_global.mag4addon) {
alice.gotoAndStop("dogwalk");
} else {
alice.gotoAndStop("ndogwalk");
}
}
if ((nDashChance != 0) && (nDashCooldown == 0)) {
if (((nWeapNo == 1) && (!bHit)) && (!bRiding)) {
alice.gotoAndStop("dashbat");
}
if (((nWeapNo == 2) && (!bHit)) && (!bRiding)) {
alice.gotoAndStop("dashkat");
}
if (((nWeapNo == 3) && (!bHit)) && (!bRiding)) {
alice.gotoAndStop("dashstake");
}
nSpeed = -35;
nDashChance--;
if (nDashChance == 0) {
nDashCooldown = 10;
}
}
if ((nDashChance != 0) && (nDashCooldown != 0)) {
nDashChance = 0;
}
} else if (((Key.isDown(39) && (!bStopInput)) && (!bUsingMagic)) && (!bDead)) {
if (nSpeed < 0) {
nDashCooldown = 20;
}
if (nDashCooldown > 0) {
nDashCooldown--;
}
if (nSpeed <= nMaxmove) {
nSpeed++;
}
if ((nSpeed > nMaxmove) && (nDashChance == 0)) {
nSpeed = nMaxmove;
}
alice._xscale = -100;
bFacingLeft = false;
bFacingRight = true;
if (bGrounded == true) {
if (!bRiding) {
if ((nWeapNo == 1) && (!bHit)) {
alice.gotoAndStop("run");
}
if ((nWeapNo == 2) && (!bHit)) {
alice.gotoAndStop("krun");
}
if ((nWeapNo == 3) && (!bHit)) {
alice.gotoAndStop("srun");
}
} else if (!_global.mag4addon) {
alice.gotoAndStop("dogwalk");
} else {
alice.gotoAndStop("ndogwalk");
}
}
if ((nDashChance != 0) && (nDashCooldown == 0)) {
if (((nWeapNo == 1) && (!bHit)) && (!bRiding)) {
alice.gotoAndStop("dashbat");
}
if (((nWeapNo == 2) && (!bHit)) && (!bRiding)) {
alice.gotoAndStop("dashkat");
}
if (((nWeapNo == 3) && (!bHit)) && (!bRiding)) {
alice.gotoAndStop("dashstake");
}
nSpeed = 35;
nDashChance--;
if (nDashChance == 0) {
nDashCooldown = 20;
}
}
if ((nDashChance != 0) && (nDashCooldown != 0)) {
nDashChance = 0;
}
} else if (((nSpeed < 1) && (nSpeed > -1)) && (!bDead)) {
nSpeed = 0;
nDashChance = 0;
nDashCooldown = 20;
if ((bGrounded && (!bStopInput)) && (!bUsingMagic)) {
if (!bRiding) {
if ((nWeapNo == 1) && (!bHit)) {
alice.gotoAndStop("idle");
}
if ((nWeapNo == 2) && (!bHit)) {
alice.gotoAndStop("kidle");
}
if ((nWeapNo == 3) && (!bHit)) {
alice.gotoAndStop("sidle");
}
} else if (!_global.mag4addon) {
alice.gotoAndStop("dogidle");
} else {
alice.gotoAndStop("ndogidle");
}
}
}
if (((((Key.isDown(83) && (bGrounded == true)) && (!bStopInput)) && (!bUsingMagic)) && (nGravity == 0)) && (!bDead)) {
nGravity = -14;
bGrounded = false;
if (!bRiding) {
if ((nWeapNo == 1) && (!bHit)) {
alice.gotoAndStop("jump");
}
if ((nWeapNo == 2) && (!bHit)) {
alice.gotoAndStop("kjump");
}
if ((nWeapNo == 3) && (!bHit)) {
alice.gotoAndStop("sjump");
}
} else if (!_global.mag4addon) {
alice.gotoAndStop("dogjump");
} else {
alice.gotoAndStop("ndogjump");
}
}
if ((((Key.isDown(68) && (bDead)) && (_global.lives > 0)) && (!bDontGetUp)) && (nGravity == 0)) {
effectSound = new Sound(this);
effectSound.attachSound("Respawn");
effectSound.start();
bDead = false;
alice.gotoAndStop("idle");
bStopInput = false;
nInvincible = 50;
_global.health = _global.maxHealth;
_global.lives--;
}
if ((((((Key.isDown(68) && (!bGrounded)) && (!bStopInput)) && (!bUsingMagic)) && (!bJAttacking)) && (!bDead)) && (!bRiding)) {
if (nWeapNo == 1) {
alice.gotoAndStop("batjumpattack");
bJAttacking = true;
bHitChance = true;
}
if (nWeapNo == 2) {
alice.gotoAndStop("katjumpattack");
bJAttacking = true;
bHitChance = true;
}
if (nWeapNo == 3) {
if (nGravity > 0) {
alice.gotoAndStop("stakejumpattack");
alice.sjumpattackMC.gotoAndStop("sAttackA");
nSpeed = 0;
if (nGravity < 12) {
nGravity = 12;
}
bJAttacking = true;
bHitChance = true;
}
}
}
if (((((Key.isDown(68) && (bGrounded == true)) && (!bStopInput)) && (!bUsingMagic)) && (!bAttacking)) && (!bDead)) {
if ((startBossFight && (alice.hitTest(_root.foreground.bigswitch.hitbox))) && (nBoss1Elec == 0)) {
_root.foreground.bigswitch.gotoAndStop(2);
_root.boss1.gotoAndStop(3);
nBoss1Elec = 300;
}
if (((alice._x > 300) && (alice._y >= 439.05)) && (startBossFight)) {
createSlimeExplosion(alice._x + 30, alice._y);
if (!bRiding) {
if (nWeapNo == 1) {
if (_global.batDam2) {
nBossDamage = nBossDamage + 3;
} else if (_global.batDam1) {
nBossDamage = nBossDamage + 2;
} else {
nBossDamage++;
}
}
if (nWeapNo == 2) {
if (_global.katDam2) {
nBossDamage = nBossDamage + 3;
} else if (_global.katDam1) {
nBossDamage = nBossDamage + 2;
} else {
nBossDamage++;
}
}
if (nWeapNo == 3) {
if (_global.stakeDam2) {
nBossDamage = nBossDamage + 3;
} else if (_global.stakeDam1) {
nBossDamage = nBossDamage + 2;
} else {
nBossDamage++;
}
}
}
if (bRiding) {
nBossDamage = nBossDamage + 10;
}
camera.bosslifebars.seb.bar._xscale = 100 - nBossDamage;
if (nBossDamage >= 100) {
boss1.gotoAndStop(5);
camera.bosslifebars.gotoAndStop(1);
endBossFight();
}
}
if (bRiding) {
if (!_global.mag4addon) {
alice.gotoAndStop("dogattack");
} else {
alice.gotoAndStop("ndogattack");
blasttimer = setInterval(blaststart, 700);
}
bDogAttack = true;
dogAttackTimer = setInterval(dogAttackEnd, 1200);
} else if (nAttack == 0) {
if (nWeapNo == 1) {
alice.gotoAndStop("attackbat");
alice.attackBAT.gotoAndStop("batattackA");
bAttackAtimer = setInterval(batAttackAEnd, 500 - _global.batSpe);
}
if (nWeapNo == 2) {
alice.gotoAndStop("attackkat");
alice.attackKAT.gotoAndStop("katattackA");
kAttackAtimer = setInterval(katAttackAEnd, 400 - _global.katSpe);
}
if (nWeapNo == 3) {
alice.gotoAndStop("attackstake");
sAttacktimer = setInterval(stakeAttackEnd, 600 - _global.stakeSpe);
}
nAttack = 1;
} else if (nAttack == 1) {
if (nWeapNo == 1) {
alice.gotoAndStop("attackbat");
alice.attackBAT.gotoAndStop("batattackB");
bAttackBtimer = setInterval(batAttackBEnd, 300 - _global.batSpe);
}
if (nWeapNo == 2) {
alice.gotoAndStop("attackkat");
alice.attackKAT.gotoAndStop("katattackB");
kAttackBtimer = setInterval(katAttackBEnd, 400 - _global.katSpe);
}
if (nWeapNo == 3) {
alice.gotoAndStop("attackstake");
sAttacktimer = setInterval(stakeAttackEnd, 600 - _global.stakeSpe);
}
nAttack = 0;
}
bStopInput = true;
if ((nDashChance == 0) && (nDashCooldown != 0)) {
nSpeed = 0;
}
bAttacking = true;
bHitChance = true;
} else if (((((Key.isDown(68) && (bGrounded == true)) && (!bStopInput)) && (bUsingMagic)) && (nUseMagicCooldown == 0)) && (!bDead)) {
bUsingMagic = false;
nChargeAmount = 0;
bStopInput = true;
if (nWeapNo == 1) {
alice.gotoAndStop("batmagicuse");
magictimer = setInterval(usemagictime, 300);
}
if (nWeapNo == 2) {
alice.gotoAndStop("katmagicuse");
magictimer = setInterval(usemagictime, 300);
}
if (nWeapNo == 3) {
alice.gotoAndStop("stakemagicuse");
magictimer = setInterval(usemagictime, 300);
}
if (((_root.camera.manabar.charge._currentframe - 1) == 1) && (!bProgress)) {
nUseMagicCooldown = 30;
_global.mana = _global.mana - 1;
fireball();
nFireballs++;
}
if (((_root.camera.manabar.charge._currentframe - 1) == 2) && (!bProgress)) {
nUseMagicCooldown = 30;
_global.mana = _global.mana - 2;
darkbolt(false);
nBolts++;
if (_global.mag2addon) {
darkbolt(true);
nBolts++;
}
}
if ((((_root.camera.manabar.charge._currentframe - 1) == 3) && (!bProgress)) && (!bPupsOnScreen)) {
nUseMagicCooldown = 30;
_global.mana = _global.mana - 3;
var _local29;
if (_global.mag3addon) {
_local29 = 40;
} else {
_local29 = 20;
}
bPupsOnScreen = true;
var _local18 = 0;
while (_local18 < _local29) {
createPuppy(nPuppiesOnScreen, nGrenadesOnScreen);
nPuppiesOnScreen++;
nGrenadesOnScreen++;
_local18++;
}
}
if (((_root.camera.manabar.charge._currentframe - 1) == 4) && (!bProgress)) {
nUseMagicCooldown = 30;
_global.mana = _global.mana - 4;
createDog();
bDogOnScreen = true;
}
if (((_root.camera.manabar.charge._currentframe - 1) == 5) && (!bProgress)) {
nUseMagicCooldown = 30;
_global.mana = _global.mana - 5;
createKen();
bKenOnScreen = true;
}
}
oKeyListener.onKeyUp = function () {
if (Key.getCode() == 68) {
bAttacking = false;
}
if (((Key.getCode() == 39) && (nSpeed > 3)) && (nDashChance == 0)) {
nDashChance = 2;
}
if (((Key.getCode() == 37) && (nSpeed < -3)) && (nDashChance == 0)) {
nDashChance = 2;
}
};
if ((((Key.isDown(38) && (!bStopInput)) && (!bUsingMagic)) && (bGrounded)) && (!bDead)) {
if (nCurrentLane > 1) {
nCurrentLane--;
bStopInput = true;
}
}
if (((((Key.isDown(40) && (!bStopInput)) && (!bUsingMagic)) && (bGrounded)) && (!bDead)) && (alice._y > 439)) {
if (nCurrentLane < 3) {
nCurrentLane++;
bStopInput = true;
}
}
if (((Key.isDown(82) && (!bStopInput)) && (!bUsingMagic)) && (!bDead)) {
if (((_root.camera.secondaryslot._currentframe == 2) && (nItemCooldown == 0)) && (_global.health < _global.maxHealth)) {
nItemCooldown = 20;
_global.healthPacks--;
_global.health = _global.health + _global.healAmount;
if (_global.health > _global.maxHealth) {
_global.health = _global.maxHealth;
}
effectSound = new Sound(this);
effectSound.attachSound("healthPickup");
effectSound.start();
} else if ((((_root.camera.secondaryslot._currentframe == 3) && (nItemCooldown == 0)) && (!bNextScreen)) && (!bRiding)) {
nItemCooldown = 20;
_global.heldGrenades--;
nGrenadesOnScreen++;
throwGrenade(alice._x, alice._y, bFacingRight, nGrenadesOnScreen, nCurrentLane);
} else if (((_root.camera.secondaryslot._currentframe == 4) && (nItemCooldown == 0)) && (_global.mana < _global.maxMana)) {
nItemCooldown = 20;
_global.manaPots--;
_global.mana = _global.mana + _global.manaAmount;
if (_global.mana > _global.maxMana) {
_global.mana = _global.maxMana;
}
effectSound = new Sound(this);
effectSound.attachSound("manaUp");
effectSound.start();
} else if ((((_root.camera.secondaryslot._currentframe == 5) && (nItemCooldown == 0)) && (!bNextScreen)) && (!bRiding)) {
nItemCooldown = 20;
alice.gotoAndStop("crossbow");
bStopInput = true;
shootTimer = setInterval(shooting, 300);
_global.heldCrossbows--;
nCrossbowBolts++;
crossbowFire();
} else if ((((_root.camera.secondaryslot._currentframe == 6) && (nItemCooldown == 0)) && (!bNextScreen)) && (!bRiding)) {
nItemCooldown = 20;
bStopInput = true;
bUsingCross = true;
if (!_global.longCross) {
alice.gotoAndStop("crossshort");
crossTimer = setInterval(crossfunc, 600);
} else {
alice.gotoAndStop("cross");
crossTimer = setInterval(crossfunc, 1200);
}
_global.heldCrosses--;
}
}
}
};
Frame 7
function stopMoveAllMc(mc) {
mc.stopit = true;
for (var _local2 in mc) {
if (typeof(mc[_local2]) == "movieclip") {
mc[_local2].stopit = true;
stopMoveAllMc(mc[_local2]);
}
}
}
function startMoveAllMc(mc) {
mc.stopit = false;
for (var _local2 in mc) {
if (typeof(mc[_local2]) == "movieclip") {
mc[_local2].stopit = false;
startMoveAllMc(mc[_local2]);
}
}
}
function getAllMc(mc) {
for (var _local2 in mc) {
if (typeof(mc[_local2]) == "movieclip") {
mc[_local2].stop();
mc[_local2].stopit = true;
getAllMc(mc[_local2]);
}
}
}
function playAllMc(mc) {
for (var _local2 in mc) {
if (typeof(mc[_local2]) == "movieclip") {
mc[_local2].play();
mc[_local2].stopit = false;
playAllMc(mc[_local2]);
}
}
}
function blaststart() {
puppyblast();
nPupblasts++;
clearInterval(blasttimer);
}
function landPause() {
bStopInput = false;
bJAttacking = false;
bHitChance = false;
clearInterval(landtimer);
}
function smashDown() {
bStopInput = false;
bJAttacking = false;
bHitChance = false;
clearInterval(smashtimer);
}
function batAttackAEnd() {
bStopInput = false;
bHitChance = false;
clearInterval(bAttackAtimer);
}
function dogAttackEnd() {
bStopInput = false;
bHitChance = false;
bDogAttack = false;
clearInterval(dogAttackTimer);
}
function batAttackBEnd() {
bStopInput = false;
bHitChance = false;
clearInterval(bAttackBtimer);
}
function katAttackAEnd() {
bStopInput = false;
bHitChance = false;
clearInterval(kAttackAtimer);
}
function katAttackBEnd() {
bStopInput = false;
bHitChance = false;
clearInterval(kAttackBtimer);
}
function shooting() {
bStopInput = false;
clearInterval(shootTimer);
}
function crossfunc() {
bStopInput = false;
bUsingCross = false;
clearInterval(crossTimer);
}
function stakeAttackEnd() {
bStopInput = false;
bHitChance = false;
clearInterval(sAttacktimer);
}
function hitEnd() {
bHit = false;
clearInterval(hitTimer);
}
function tintEnd() {
myColor.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0});
clearInterval(tintTimer);
}
function deadEnd() {
bDontGetUp = false;
bHit = false;
clearInterval(deadTimer);
}
function usemagictime() {
bStopInput = false;
clearInterval(magictimer);
}
function makeEnemy(x, y, xpush, type) {
var _local2 = "enum" + enemiesOnScreen;
_root.attachMovie(type, _local2, _root.getNextHighestDepth());
_root[_local2]._x = x + xpush;
_root[_local2]._y = y;
_root[_local2].longScreen = true;
if (enemy.getCurrentLane() == 1) {
_root[_local2].MakeLane1();
}
if (enemy.getCurrentLane() == 2) {
_root[_local2].MakeLane2();
}
if (enemy.getCurrentLane() == 3) {
_root[_local2].MakeLane3();
}
enemiesOnScreen++;
}
function makeSmSlime(enemy, xpush, type) {
var _local2 = "enum" + enemiesOnScreen;
_root.attachMovie(type, _local2, _root.getNextHighestDepth());
_root[_local2]._x = enemy._x + xpush;
_root[_local2]._y = enemy._y;
if (enemy.getCurrentLane() == 1) {
_root[_local2].MakeLane1();
}
if (enemy.getCurrentLane() == 2) {
_root[_local2].MakeLane2();
}
if (enemy.getCurrentLane() == 3) {
_root[_local2].MakeLane3();
}
}
function enemyDecisionValue(aggressionVal, proximityVal, weapNo, enemyType, enemiesOnScreen, bonusVal) {
var _local4 = Math.floor(Math.random() * 10) + 1;
var _local1 = aggressionVal;
if ((proximityVal > -40) && (proximityVal < 40)) {
_local1 = _local1 + 20;
}
if ((proximityVal > -100) && (proximityVal < 100)) {
_local1 = _local1 + 10;
}
if ((enemyType == "zombie") && (weapNo == 1)) {
_local1 = _local1 - 20;
}
if ((enemyType == "vamp") && (weapNo == 3)) {
_local1 = _local1 - 30;
}
if ((enemyType == "slime") && (weapNo == 2)) {
_local1 = _local1 - 20;
}
if ((enemyType == "smslime") && (weapNo == 2)) {
_local1 = _local1 - 20;
}
if (enemiesOnScreen > 8) {
_local1 = _local1 - 10;
} else if (enemiesOnScreen < 5) {
_local1 = _local1 + 30;
} else if (enemiesOnScreen == 1) {
_local1 = _local1 - 20;
}
if ((Math.floor(Math.random() * 2) + 1) == 1) {
_local1 = _local1 - _local4;
} else {
_local1 = _local1 + _local4;
}
_local1 = _local1 + bonusVal;
if (_local1 > 100) {
_local1 = 100;
}
if (_local1 < 0) {
_local1 = 0;
}
return(_local1);
}
function blood(targetX, targetY, blood) {
if (blood > 200) {
blood = 200;
}
if ((_global.gibsOnScreen - nPickedUpGibs) < 300) {
var _local7 = 0;
while (_local7 < blood) {
var _local6 = flash.display.BitmapData.loadBitmap("blood");
var _local4 = _root.createEmptyMovieClip("main_holder", _root.getNextHighestDepth());
var _local5 = _local4.createEmptyMovieClip("internal_holder", _local4.getNextHighestDepth());
_local5._x = (-_local6.width) / 2;
_local5._y = (-_local6.height) / 2;
_local5.attachBitmap(_local6, _local5.getNextHighestDepth(), "never");
_local4._x = targetX;
_local4._y = targetY - 30;
_local4._rotation = random(360);
_local4._alpha = random(30) + 70;
_local4.boundyLeft = targetX - 100;
_local4.boundyTop = targetY - 100;
_local4.boundyRight = targetX + 100;
_local4.boundyBottom = targetY + 30;
_local4.speedX = Math.random(5) - Math.random(5);
_local4.speedY = Math.random(5) - Math.random(5);
_local4.speedX = _local4.speedX * 5;
_local4.speedY = _local4.speedY * 5;
_local4.stopit = false;
numberOfParticles++;
_local4.onEnterFrame = function () {
if (!this.stopit) {
this._x = this._x + this.speedX;
this._y = this._y + this.speedY;
if (this.speedY < 5) {
this.speedY = this.speedY + 0.3;
}
if (((((this._alpha <= 0) || (this._x < this.boundyLeft)) || (this._x > this.boundyRight)) || (this._y < this.boundyTop)) || (this._y > this.boundyBottom)) {
this.removeMovieClip();
numberOfParticles--;
}
}
};
_local7++;
}
}
}
function throwGrenade(playerX, playerY, throwright, nadesOnScreen, targetLane) {
if (nadesOnScreen > 98) {
nadesOnScreen = 0;
}
var _local3 = "nade" + nadesOnScreen;
_root.attachMovie("grenade", _local3, -9000 + nadesOnScreen);
_root[_local3]._x = playerX;
_root[_local3]._y = playerY - 40;
if (throwright) {
_root[_local3].speedX = 3.5;
} else {
_root[_local3].speedX = -3.5;
}
_root[_local3].speedY = -3;
_root[_local3].speedX = _root[_local3].speedX * 2;
_root[_local3].speedY = _root[_local3].speedY * 2;
_root[_local3].YMax = 20;
_root[_local3].lane = targetLane;
_root[_local3].stopit = false;
_root[_local3].onEnterFrame = function () {
if (!this.stopit) {
if (_root["lane" + targetLane].hitTest(this._x, this._y + 20, true)) {
this.speedY = -this.speedY;
if (this.YMax > 1) {
this.YMax = this.YMax - 10;
}
if (this.YMax <= 1) {
this.speedY = 0;
}
if (this.speedX > 0) {
this.speedX = this.speedX - 1;
}
if (this.speedX < 0) {
this.speedX = this.speedX + 1;
}
if ((this.speedX > -2) && (this.speedX < 2)) {
this.speedX = 0;
}
}
this._x = this._x + this.speedX;
this._y = this._y + this.speedY;
if (this.speedY < this.YMax) {
this.speedY = this.speedY + 2;
}
}
};
}
function darkbolt(reverse) {
if (nBolts > 98) {
nBolts = 0;
}
effectSound = new Sound(this);
effectSound.attachSound("Bolt");
effectSound.start();
var _local5 = "darkbolt" + nBolts;
_root.attachMovie("darkbolt", _local5, (alice.getDepth() + 800) + nBolts);
_root[_local5]._x = alice._x;
_root[_local5]._y = alice._y - 40;
_root[_local5].goRight = false;
_root[_local5].lane = nCurrentLane;
if (!reverse) {
if (bFacingRight == true) {
_root[_local5]._xscale = -100;
_root[_local5].goRight = true;
}
} else if (bFacingLeft == true) {
_root[_local5]._xscale = -100;
_root[_local5].goRight = true;
}
_root[_local5].stopit = false;
_root[_local5].onEnterFrame = function () {
if (!this.stopit) {
if ((startBossFight && (this.hitTest(ed.hitbox))) && (ed.sState == "hurt")) {
ed.hurt.gotoAndStop(2);
nBossDamage = nBossDamage + 8;
camera.bosslifebars.ed.bar._xscale = 100 - nBossDamage;
if (nBossDamage >= 100) {
if (ed.bFacingRight) {
ed.gotoAndStop("proneL");
}
if (ed.bFacingLeft) {
ed.gotoAndStop("proneR");
}
ed.sState = "prone";
ed.proneTimer = 90;
}
if ((Math.floor(Math.random() * 101) + 0) > 90) {
makeEnemy(-200, 439.05, 0, "vampirebat");
}
if ((Math.floor(Math.random() * 101) + 0) > 90) {
makeEnemy(800, 439.05, 0, "vampirebat");
}
this.removeMovieClip();
}
if ((this._x > 680) || (this._x < -20)) {
this.removeMovieClip();
}
if (this.goRight == true) {
this._x = this._x + 10;
} else {
this._x = this._x - 10;
}
var _local4 = 0;
while (_local4 < enemiesOnScreen) {
if (_root["enum" + _local4].sState != "dead") {
if (this.hitbox.hitTest(_root["enum" + _local4].hitbumpR) || (this.hitbox.hitTest(_root["enum" + _local4].hitbumpL))) {
_root["enum" + _local4].hit(4, 1);
if (((_root["enum" + _local4].getType() != "slime") && (_root["enum" + _local4].getType() != "small slime")) && (_root["enum" + _local4].getType() != "tiny slime")) {
gib(_root["enum" + _local4]._x, _root["enum" + _local4]._y, _root["enum" + _local4].getCurrentLane(), 15 * _global.goreMultiplier);
}
nEnemiesKilled++;
if ((_root["enum" + _local4].getType() == "zombie") || (_root["enum" + _local4].getType() == "fat zombie")) {
_global.zombiesKilled++;
} else if (_root["enum" + _local4].getType() == "werewolf") {
_global.werewolvesKilled++;
} else if (_root["enum" + _local4].getType() == "vampire") {
_global.vampiresKilled++;
}
}
}
_local4++;
}
}
};
}
function throwGirl(num) {
if (nGirls > 98) {
nGirls = 0;
}
var _local4 = "fatgirl" + nGirls;
if (num == 1) {
_root.attachMovie("fatgirl1", _local4, 6000 + nGirls);
} else if (num == 2) {
_root.attachMovie("fatgirl2", _local4, 6000 + nGirls);
} else if (num == 3) {
_root.attachMovie("fatgirl3", _local4, 6000 + nGirls);
}
_root[_local4]._x = ed._x;
_root[_local4]._y = ed._y - 100;
_root[_local4].goRight = true;
_root[_local4].speedX = Math.floor(Math.random() * 9) + 4;
_root[_local4].lane = ed.nCurrentLane;
_root[_local4].stopit = false;
if (ed.bFacingLeft == true) {
_root[_local4]._xscale = -100;
_root[_local4].goRight = false;
_root[_local4].speedX = -_root[_local4].speedX;
}
_root[_local4].speedY = -3;
_root[_local4].speedX = _root[_local4].speedX * 2;
_root[_local4].speedY = _root[_local4].speedY * 2;
_root[_local4].YMax = 40;
nGirls++;
_root[_local4].onEnterFrame = function () {
if (!this.stopit) {
if (((this._x > 680) || (this._x < -250)) || (this._y > 600)) {
this.removeMovieClip();
}
this._x = this._x + this.speedX;
this._y = this._y + this.speedY;
if (this.speedY < this.YMax) {
this.speedY = this.speedY + 2;
}
if (((((this.hitTest(alice.hitBox) && (this.lane == nCurrentLane)) && (!bBlocking)) && (!bHit)) && (!bDead)) && (nInvincible == 0)) {
if (nWeapNo == 1) {
alice.gotoAndStop("bhit");
}
if (nWeapNo == 2) {
alice.gotoAndStop("khit");
}
if (nWeapNo == 3) {
alice.gotoAndStop("shit");
}
_global.health--;
if (bRiding) {
_root.dog.gotoAndStop(1);
bRiding = false;
nDogCount--;
if (alice._x < 320) {
_root.dog._x = alice._x + 120;
}
if (alice._x >= 320) {
_root.dog._x = alice._x - 120;
}
if (nCurrentLane == 1) {
_root.dog._y = 439.05;
} else if (nCurrentLane == 2) {
_root.dog._y = 494.05;
} else if (nCurrentLane == 3) {
_root.dog._y = 540.05;
}
}
if (_global.health == 0) {
alice.gotoAndStop("dead");
bDead = true;
bDontGetUp = true;
if (_global.lives == 1) {
backToMenu = true;
}
deadTimer = setInterval(deadEnd, 1300);
} else {
hitTimer = setInterval(hitEnd, 150);
}
bHit = true;
}
}
};
}
function throwBaseball() {
if (nBalls > 98) {
nBalls = 0;
}
var _local4 = "baseball" + nBalls;
_root.attachMovie("baseball", _local4, 5000 + nBalls);
_root[_local4]._x = ed._x;
_root[_local4]._y = ed._y - 40;
_root[_local4].goRight = false;
_root[_local4].lane = ed.nCurrentLane;
_root[_local4].stopit = false;
if (ed.bFacingRight == true) {
_root[_local4]._xscale = -100;
_root[_local4].goRight = true;
}
nBalls++;
_root[_local4].onEnterFrame = function () {
if (!this.stopit) {
if ((this._x > 680) || (this._x < -250)) {
this.removeMovieClip();
}
if (this.goRight == true) {
this._x = this._x + 15;
} else {
this._x = this._x - 15;
}
if (((((this.hitbox.hitTest(alice.hitBox) && (this.lane == nCurrentLane)) && (!bBlocking)) && (!bHit)) && (!bDead)) && (nInvincible == 0)) {
if (nWeapNo == 1) {
alice.gotoAndStop("bhit");
}
if (nWeapNo == 2) {
alice.gotoAndStop("khit");
}
if (nWeapNo == 3) {
alice.gotoAndStop("shit");
}
_global.health--;
if (bRiding) {
_root.dog.gotoAndStop(1);
bRiding = false;
nDogCount--;
if (alice._x < 320) {
_root.dog._x = alice._x + 120;
}
if (alice._x >= 320) {
_root.dog._x = alice._x - 120;
}
if (nCurrentLane == 1) {
_root.dog._y = 439.05;
} else if (nCurrentLane == 2) {
_root.dog._y = 494.05;
} else if (nCurrentLane == 3) {
_root.dog._y = 540.05;
}
}
if (_global.health == 0) {
alice.gotoAndStop("dead");
bDead = true;
bDontGetUp = true;
if (_global.lives == 1) {
backToMenu = true;
}
deadTimer = setInterval(deadEnd, 1300);
} else {
hitTimer = setInterval(hitEnd, 150);
}
bHit = true;
this.removeMovieClip();
}
}
};
}
function crossbowFire() {
if (nCrossbowBolts > 98) {
nCrossbowBolts = 0;
}
var _local6 = "crossbowbolt" + nCrossbowBolts;
_root.attachMovie("crossbowbolt", _local6, (alice.getDepth() + 600) + nCrossbowBolts);
_root[_local6]._x = alice._x;
_root[_local6]._y = alice._y - 40;
_root[_local6].goRight = false;
_root[_local6].lane = nCurrentLane;
if (bFacingRight == true) {
_root[_local6]._xscale = -100;
_root[_local6].goRight = true;
}
_root[_local6].stopit = false;
_root[_local6].onEnterFrame = function () {
if (!this.stopit) {
if ((startBossFight && (this.hitTest(ed.hitbox))) && (ed.sState == "hurt")) {
ed.hurt.gotoAndStop(2);
nBossDamage = nBossDamage + 8;
camera.bosslifebars.ed.bar._xscale = 100 - nBossDamage;
if (nBossDamage >= 100) {
if (ed.bFacingRight) {
ed.gotoAndStop("proneL");
}
if (ed.bFacingLeft) {
ed.gotoAndStop("proneR");
}
ed.sState = "prone";
ed.proneTimer = 90;
}
if ((Math.floor(Math.random() * 101) + 0) > 90) {
makeEnemy(-200, 439.05, 0, "vampirebat");
}
if ((Math.floor(Math.random() * 101) + 0) > 90) {
makeEnemy(800, 439.05, 0, "vampirebat");
}
this.removeMovieClip();
}
if ((this._x > 680) || (this._x < -20)) {
this.removeMovieClip();
}
if (this.goRight == true) {
this._x = this._x + 15;
} else {
this._x = this._x - 15;
}
var _local4 = 0;
while (_local4 < enemiesOnScreen) {
if (_root["enum" + _local4].sState != "dead") {
if (this.hitTest(_root["enum" + _local4].hitbumpR) || (this.hitTest(_root["enum" + _local4].hitbumpL))) {
if (this.lane == _root["enum" + _local4].getCurrentLane()) {
if (_global.incendiary) {
var _local5 = _root["enum" + _local4].hit(4, 1);
} else if (_root["enum" + _local4].getType() == "werewolf") {
var _local5 = _root["enum" + _local4].hit(4, 1, _global.silver);
} else {
var _local5 = _root["enum" + _local4].hit(3, 1);
}
if (_local5 != 2) {
if (((_root["enum" + _local4].getType() != "slime") && (_root["enum" + _local4].getType() != "small slime")) && (_root["enum" + _local4].getType() != "tiny slime")) {
gib(_root["enum" + _local4]._x, _root["enum" + _local4]._y, _root["enum" + _local4].getCurrentLane(), 15 * _global.goreMultiplier);
blood(_root["enum" + _local4]._x, _root["enum" + _local4]._y, 30 * _global.goreMultiplier);
}
nEnemiesKilled++;
if ((_root["enum" + _local4].getType() == "zombie") || (_root["enum" + _local4].getType() == "fat zombie")) {
_global.zombiesKilled++;
} else if (_root["enum" + _local4].getType() == "werewolf") {
_global.werewolvesKilled++;
} else if (_root["enum" + _local4].getType() == "vampire") {
_global.vampiresKilled++;
}
}
if (!_global.sureShot) {
this.removeMovieClip();
}
}
}
}
_local4++;
}
}
};
}
function puppyblast() {
if (nPupblasts > 98) {
nPupblasts = 0;
}
var _local5 = "puppyblast" + nPupblasts;
_root.attachMovie("puppyblast", _local5, (alice.getDepth() + 900) + nPupblasts);
_root[_local5]._y = alice._y - 40;
_root[_local5]._x = alice._x + 60;
_root[_local5].goRight = true;
_root[_local5].lane = nCurrentLane;
if (bFacingRight == false) {
_root[_local5]._xscale = -100;
_root[_local5].goRight = false;
_root[_local5]._x = alice._x - 60;
}
_root[_local5].stopit = false;
_root[_local5].onEnterFrame = function () {
if (!this.stopit) {
if ((startBossFight && (this.hitTest(ed.hitbox))) && (ed.sState == "hurt")) {
ed.hurt.gotoAndStop(2);
nBossDamage = nBossDamage + 8;
camera.bosslifebars.ed.bar._xscale = 100 - nBossDamage;
if (nBossDamage >= 100) {
if (ed.bFacingRight) {
ed.gotoAndStop("proneL");
}
if (ed.bFacingLeft) {
ed.gotoAndStop("proneR");
}
ed.sState = "prone";
ed.proneTimer = 90;
}
if ((Math.floor(Math.random() * 101) + 0) > 90) {
makeEnemy(-200, 439.05, 0, "vampirebat");
}
if ((Math.floor(Math.random() * 101) + 0) > 90) {
makeEnemy(800, 439.05, 0, "vampirebat");
}
this.removeMovieClip();
}
if ((this._x > 680) || (this._x < -20)) {
this.removeMovieClip();
}
if (this.goRight == true) {
this._x = this._x + 10;
} else {
this._x = this._x - 10;
}
var _local4 = 0;
while (_local4 < enemiesOnScreen) {
if (_root["enum" + _local4].sState != "dead") {
if (this.hitTest(_root["enum" + _local4].hitbumpR) || (this.hitbox.hitTest(_root["enum" + _local4].hitbumpL))) {
if (this.lane == _root["enum" + _local4].getCurrentLane()) {
_root["enum" + _local4].hit(4, 1);
if (((_root["enum" + _local4].getType() != "slime") && (_root["enum" + _local4].getType() != "small slime")) && (_root["enum" + _local4].getType() != "tiny slime")) {
gib(_root["enum" + _local4]._x, _root["enum" + _local4]._y, _root["enum" + _local4].getCurrentLane(), 15 * _global.goreMultiplier);
}
nEnemiesKilled++;
if ((_root["enum" + _local4].getType() == "zombie") || (_root["enum" + _local4].getType() == "fat zombie")) {
_global.zombiesKilled++;
} else if (_root["enum" + _local4].getType() == "werewolf") {
_global.werewolvesKilled++;
} else if (_root["enum" + _local4].getType() == "vampire") {
_global.vampiresKilled++;
}
}
}
}
_local4++;
}
}
};
}
function fireball() {
if (nFireballs > 98) {
nFireballs = 0;
}
var _local5 = "fireball" + nFireballs;
if (!_global.mag1addon) {
_root.attachMovie("fireball", _local5, (alice.getDepth() + 700) + nFireballs);
effectSound = new Sound(this);
effectSound.attachSound("Explosion100");
effectSound.start();
} else {
_root.attachMovie("superfireball", _local5, (alice.getDepth() + 700) + nFireballs);
effectSound = new Sound(this);
effectSound.attachSound("BigExplosion");
effectSound.start();
}
_root[_local5]._x = alice._x;
_root[_local5]._y = alice._y - 40;
_root[_local5].goRight = false;
_root[_local5].lane = nCurrentLane;
if (bFacingRight == true) {
_root[_local5]._xscale = -100;
_root[_local5].goRight = true;
}
_root[_local5].stopit = false;
_root[_local5].onEnterFrame = function () {
if (!this.stopit) {
if ((startBossFight && (this.hitTest(ed.hitbox))) && (ed.sState == "hurt")) {
ed.hurt.gotoAndStop(2);
nBossDamage = nBossDamage + 8;
camera.bosslifebars.ed.bar._xscale = 100 - nBossDamage;
if (nBossDamage >= 100) {
if (ed.bFacingRight) {
ed.gotoAndStop("proneL");
}
if (ed.bFacingLeft) {
ed.gotoAndStop("proneR");
}
ed.sState = "prone";
ed.proneTimer = 90;
}
if ((Math.floor(Math.random() * 101) + 0) > 90) {
makeEnemy(-200, 439.05, 0, "vampirebat");
}
if ((Math.floor(Math.random() * 101) + 0) > 90) {
makeEnemy(800, 439.05, 0, "vampirebat");
}
this.removeMovieClip();
}
if ((this._x > 680) || (this._x < -20)) {
this.removeMovieClip();
}
if (this.goRight == true) {
this._x = this._x + 10;
} else {
this._x = this._x - 10;
}
var _local4 = 0;
while (_local4 < enemiesOnScreen) {
if (_root["enum" + _local4].sState != "dead") {
if (this.hitbox.hitTest(_root["enum" + _local4].hitbumpR) || (this.hitbox.hitTest(_root["enum" + _local4].hitbumpL))) {
if (this.lane == _root["enum" + _local4].getCurrentLane()) {
_root["enum" + _local4].hit(4, 1);
if (((_root["enum" + _local4].getType() != "slime") && (_root["enum" + _local4].getType() != "small slime")) && (_root["enum" + _local4].getType() != "tiny slime")) {
gib(_root["enum" + _local4]._x, _root["enum" + _local4]._y, _root["enum" + _local4].getCurrentLane(), 15 * _global.goreMultiplier);
}
nEnemiesKilled++;
if ((_root["enum" + _local4].getType() == "zombie") || (_root["enum" + _local4].getType() == "fat zombie")) {
_global.zombiesKilled++;
} else if (_root["enum" + _local4].getType() == "werewolf") {
_global.werewolvesKilled++;
} else if (_root["enum" + _local4].getType() == "vampire") {
_global.vampiresKilled++;
}
if (!_global.mag1addon) {
this.removeMovieClip();
}
}
}
}
_local4++;
}
}
};
}
function createDog() {
effectSound = new Sound(this);
effectSound.attachSound("Summon");
effectSound.start();
bDogOnScreen = true;
nDogCount = 3;
if (!_global.mag4addon) {
_root.attachMovie("dogmount", "dog", alice.getDepth() - 1);
} else {
_root.attachMovie("ndogmount", "dog", alice.getDepth() - 1);
nDogCount = 5;
}
_root.dog._x = alice._x;
if (nCurrentLane == 1) {
_root.dog._y = 439.05;
} else if (nCurrentLane == 2) {
_root.dog._y = 494.05;
} else if (nCurrentLane == 3) {
_root.dog._y = 540.05;
}
_root.dog.facingLeft = false;
_root.dog.timer = 0;
_root.dog.lane = nCurrentLane;
_root.dog.gotoAndStop(2);
_root.dog.onEnterFrame = function () {
if (this._currentframe == 3) {
this.swapDepths(alice.getDepth() - 1);
_root.dog.lane = nCurrentLane;
}
if (nDogCount == 0) {
this.gotoAndStop(4);
}
if ((this.hitbox.hitTest(alice) && (!bGrounded)) && (!bRiding)) {
var _local4;
if (nCurrentLane == 1) {
_local4 = 439.05;
} else if (nCurrentLane == 2) {
_local4 = 494.05;
} else if (nCurrentLane == 3) {
_local4 = 540.05;
}
if (((alice._y > (_local4 - 35)) && (nGravity > 6)) && (this.lane == nCurrentLane)) {
this.gotoAndStop(3);
if (!_global.mag4addon) {
alice.gotoAndStop("dogjump");
} else {
alice.gotoAndStop("ndogjump");
}
bRiding = true;
}
}
};
}
function createKen() {
effectSound = new Sound(this);
effectSound.attachSound("Summon");
effectSound.start();
bKenOnScreen = true;
_root.attachMovie("kenshiro", "ken", alice.getDepth() + 500);
_root.ken._x = alice._x;
if (nCurrentLane == 1) {
_root.ken._y = 439.05;
} else if (nCurrentLane == 2) {
_root.ken._y = 494.05;
} else if (nCurrentLane == 3) {
_root.ken._y = 540.05;
}
_root.ken.facingLeft = true;
_root.ken.timer = 0;
_root.ken.lane = nCurrentLane;
if (!_global.mag5addon) {
_root.ken.endTimer = 600;
} else {
_root.ken.endTimer = 1200;
}
_root.ken.stopit = false;
_root.ken.onEnterFrame = function () {
if (!this.stopit) {
if ((startBossFight && (this.hitTest(ed.hitbox))) && (ed.sState == "hurt")) {
ed.hurt.gotoAndStop(2);
this.rest = 0;
nBossDamage = nBossDamage + 0.1;
camera.bosslifebars.ed.bar._xscale = 100 - nBossDamage;
if (nBossDamage >= 100) {
if (ed.bFacingRight) {
ed.gotoAndStop("proneL");
}
if (ed.bFacingLeft) {
ed.gotoAndStop("proneR");
}
ed.sState = "prone";
ed.proneTimer = 90;
}
}
this.timer++;
this.rest++;
if (this.timer >= this.endTimer) {
this.gotoAndStop(4);
}
if (this.timer >= (this.endTimer + 30)) {
bKenOnScreen = false;
this.removeMovieClip();
}
if (((this.rest >= 60) && (this._currentframe != 4)) && (this._currentframe != 1)) {
this.gotoAndStop(2);
}
var _local4 = 0;
while (_local4 < enemiesOnScreen) {
if ((_root["enum" + _local4].sState != "dead") && (this._currentframe != 4)) {
if (this.hitbox.hitTest(_root["enum" + _local4].hitbumpR) || (this.hitbox.hitTest(_root["enum" + _local4].hitbumpL))) {
if (_root["enum" + _local4]._x < this._x) {
this.facingLeft = true;
this._xscale = 100;
} else if (_root["enum" + _local4]._x > this._x) {
this.facingLeft = true;
this._xscale = -100;
}
if (this.lane == _root["enum" + _local4].getCurrentLane()) {
this.gotoAndStop(3);
this.rest = 0;
_root["enum" + _local4].hit(4, 1);
if (((_root["enum" + _local4].getType() != "slime") && (_root["enum" + _local4].getType() != "small slime")) && (_root["enum" + _local4].getType() != "tiny slime")) {
gib(_root["enum" + _local4]._x, _root["enum" + _local4]._y, _root["enum" + _local4].getCurrentLane(), 15 * _global.goreMultiplier);
}
nEnemiesKilled++;
if ((_root["enum" + _local4].getType() == "zombie") || (_root["enum" + _local4].getType() == "fat zombie")) {
_global.zombiesKilled++;
} else if (_root["enum" + _local4].getType() == "werewolf") {
_global.werewolvesKilled++;
} else if (_root["enum" + _local4].getType() == "vampire") {
_global.vampiresKilled++;
}
}
}
}
_local4++;
}
}
};
}
function createPuppy(puppiesOnScreen, nadesOnScreen) {
if (puppiesOnScreen >= 80) {
puppiesOnScreen = 0;
}
var _local3 = "puppy" + puppiesOnScreen;
_root.attachMovie("puppy", _local3, -8000 + puppiesOnScreen);
_root[_local3]._x = Math.round(Math.random() * 640);
if (_root[_local3]._x < 320) {
_root[_local3].facingRight = false;
_root[_local3]._xscale = -100;
_root[_local3].speedX = -6;
}
if (_root[_local3]._x >= 320) {
_root[_local3].facingRight = true;
(_root[_local3]);// not popped
}
_root[_local3]._y = -40;
_root[_local3].lane = Math.round(Math.random() * 2) + 1;
_root[_local3].speedY = 10;
_root[_local3].countdown = Math.round(Math.random() * 240) + 10;
_root[_local3].placed = false;
_root[_local3].stopit = false;
_root[_local3].onEnterFrame = function () {
if (!this.stopit) {
if (this.countdown > 0) {
this.countdown--;
}
if (_root["lane" + this.lane].hitTest(this._x, this._y + 20, true)) {
if (!this.placed) {
this.gotoAndStop("place");
}
if (this.place._currentframe == 10) {
this.placed = true;
var _local3 = "nade" + nadesOnScreen;
_root.attachMovie("grenade", _local3, -9000 + nadesOnScreen);
_root[_local3]._x = this._x;
_root[_local3]._y = this._y;
_root[_local3].lane = this.lane;
}
if (this.placed) {
this.gotoAndStop("run");
this._x = this._x + this.speedX;
}
} else if (this.countdown == 0) {
this.gotoAndStop("fall");
this._y = this._y + this.speedY;
}
}
};
}
function createSlimeExplosion(targetX, targetY) {
var numberOfParticles = 0;
var _local10 = Math.floor(Math.random() * 4) + 0;
var _local9 = 0;
while (_local9 < _local10) {
var _local7 = flash.display.BitmapData.loadBitmap("blob3.png");
var _local3 = _root.createEmptyMovieClip("main_holder", _root.getNextHighestDepth());
var _local6 = _local3.createEmptyMovieClip("internal_holder", _local3.getNextHighestDepth());
_local6._x = (-_local7.width) / 2;
_local6._y = (-_local7.height) / 2;
_local6.attachBitmap(_local7, _local6.getNextHighestDepth(), "never");
_local3._x = targetX;
_local3._y = targetY;
_local3._rotation = random(360);
_local3.boundyLeft = targetX - 100;
_local3.boundyTop = targetY - 100;
_local3.boundyRight = targetX + 100;
_local3.boundyBottom = targetY + 100;
_local3.speedX = Math.random(5) - Math.random(5);
_local3.speedY = Math.random(5) - Math.random(5);
_local3.speedX = _local3.speedX * 5;
_local3.speedY = _local3.speedY * 5;
_local3.fadeSpeed = Math.random(5) * 5;
numberOfParticles++;
_local3.onEnterFrame = function () {
this._x = this._x + this.speedX;
this._y = this._y + this.speedY;
if (this.speedY < 5) {
this.speedY = this.speedY + 0.3;
}
if (this._y > 600) {
this.removeMovieClip();
numberOfParticles--;
}
};
_local9++;
}
if ((Math.floor(Math.random() * 101) + 0) > 90) {
makeEnemy(targetX, targetY, Math.floor(Math.random() * 21) + -10, "slime");
}
var _local12 = Math.floor(Math.random() * 7) + 2;
_local9 = 0;
while (_local9 < _local12) {
var _local7 = flash.display.BitmapData.loadBitmap("blob2.png");
var _local3 = _root.createEmptyMovieClip("main_holder", _root.getNextHighestDepth());
var _local6 = _local3.createEmptyMovieClip("internal_holder", _local3.getNextHighestDepth());
_local6._x = (-_local7.width) / 2;
_local6._y = (-_local7.height) / 2;
_local6.attachBitmap(_local7, _local6.getNextHighestDepth(), "never");
_local3._x = targetX;
_local3._y = targetY;
_local3._rotation = random(360);
_local3.boundyLeft = targetX - 100;
_local3.boundyTop = targetY - 100;
_local3.boundyRight = targetX + 100;
_local3.boundyBottom = targetY + 100;
_local3.speedX = Math.random(5) - Math.random(5);
_local3.speedY = Math.random(5) - Math.random(5);
_local3.speedX = _local3.speedX * 5;
_local3.speedY = _local3.speedY * 5;
_local3.fadeSpeed = Math.random(5) * 5;
numberOfParticles++;
_local3.onEnterFrame = function () {
this._x = this._x + this.speedX;
this._y = this._y + this.speedY;
if (this.speedY < 5) {
this.speedY = this.speedY + 0.3;
}
if (this._y > 600) {
this.removeMovieClip();
numberOfParticles--;
}
};
_local9++;
}
if ((Math.floor(Math.random() * 101) + 0) > 70) {
var _local11 = Math.floor(Math.random() * 3) + 0;
var _local8 = 0;
while (_local8 < _local11) {
makeEnemy(targetX, targetY, Math.floor(Math.random() * 21) + -10, "smslime");
_local8++;
}
}
var _local14 = Math.floor(Math.random() * 13) + 3;
_local9 = 0;
while (_local9 < _local14) {
var _local7 = flash.display.BitmapData.loadBitmap("blob1.png");
var _local3 = _root.createEmptyMovieClip("main_holder", _root.getNextHighestDepth());
var _local6 = _local3.createEmptyMovieClip("internal_holder", _local3.getNextHighestDepth());
_local6._x = (-_local7.width) / 2;
_local6._y = (-_local7.height) / 2;
_local6.attachBitmap(_local7, _local6.getNextHighestDepth(), "never");
_local3._x = targetX;
_local3._y = targetY;
_local3._rotation = random(360);
_local3.boundyLeft = targetX - 100;
_local3.boundyTop = targetY - 100;
_local3.boundyRight = targetX + 100;
_local3.boundyBottom = targetY + 100;
_local3.speedX = Math.random(5) - Math.random(5);
_local3.speedY = Math.random(5) - Math.random(5);
_local3.speedX = _local3.speedX * 5;
_local3.speedY = _local3.speedY * 5;
_local3.fadeSpeed = Math.random(5) * 5;
numberOfParticles++;
_local3.onEnterFrame = function () {
this._x = this._x + this.speedX;
this._y = this._y + this.speedY;
if (this.speedY < 5) {
this.speedY = this.speedY + 0.3;
}
if (this._y > 600) {
this.removeMovieClip();
numberOfParticles--;
}
};
_local9++;
}
if ((Math.floor(Math.random() * 101) + 0) > 50) {
var _local13 = Math.floor(Math.random() * 5) + 0;
var _local8 = 0;
while (_local8 < _local13) {
makeEnemy(targetX, targetY, Math.floor(Math.random() * 21) + -10, "smsmslime");
_local8++;
}
}
}
function gib(targetX, targetY, targetLane, gibs) {
var _local7 = gibs / 3;
var _local8 = _global.gibsOnScreen;
_global.gibsOnScreen = _global.gibsOnScreen + gibs;
if (_global.gibsOnScreen >= 300) {
_global.gibsOnScreen = 0;
}
var _local6 = _local8;
while (_local6 < (_local8 + _local7)) {
var _local10 = flash.display.BitmapData.loadBitmap("gib1");
_root["particle_mc" + _local6] = _root.createEmptyMovieClip("main_holder" + _local6, _local6);
_root["particle_mc" + _local6].attachBitmap(_local10, main_holder.getNextHighestDepth(), "never");
_root["particle_mc" + _local6]._x = targetX;
_root["particle_mc" + _local6]._y = targetY - 30;
_root["particle_mc" + _local6]._rotation = random(360);
_root["particle_mc" + _local6].speedX = Math.random(5) - Math.random(5);
_root["particle_mc" + _local6].speedY = Math.random(5) - Math.random(5);
_root["particle_mc" + _local6].speedX = _root["particle_mc" + _local6].speedX * 5;
_root["particle_mc" + _local6].speedY = _root["particle_mc" + _local6].speedY * 5;
_root["particle_mc" + _local6].YMax = 4;
_root["particle_mc" + _local6].stopit = false;
_root["particle_mc" + _local6].onEnterFrame = function () {
if (!this.stopit) {
if (_root["lane" + targetLane].hitTest(this._x, this._y + 10, true)) {
this.speedY = -this.speedY;
if (this.YMax > 1) {
this.YMax = this.YMax - 0.5;
}
if (this.YMax <= 1) {
this.speedY = 0;
}
if (this.speedX > 0) {
this.speedX = this.speedX - 0.3;
}
if (this.speedX < 0) {
this.speedX = this.speedX + 0.3;
}
if ((this.speedX > -0.5) && (this.speedX < 0.5)) {
this.speedX = 0;
}
}
if ((this._y + 10) > (_root["lane" + targetLane]._y + 20)) {
this._y = _root["lane" + targetLane]._y;
}
this._x = this._x + this.speedX;
this._y = this._y + this.speedY;
if ((this.speedY < this.YMax) && (this.YMax > 1)) {
this.speedY = this.speedY + 0.5;
}
}
};
_local6++;
}
var _local4 = _local8 + _local7;
while (_local4 < ((_local7 + _local7) + _local8)) {
var _local10 = flash.display.BitmapData.loadBitmap("gib2");
_root["particle_mc" + _local4] = _root.createEmptyMovieClip("main_holder" + _local4, _local4);
_root["particle_mc" + _local4].attachBitmap(_local10, main_holder.getNextHighestDepth(), "never");
_root["particle_mc" + _local4]._x = targetX;
_root["particle_mc" + _local4]._y = targetY - 30;
_root["particle_mc" + _local4]._rotation = random(360);
_root["particle_mc" + _local4].speedX = Math.random(5) - Math.random(5);
_root["particle_mc" + _local4].speedY = Math.random(5) - Math.random(5);
_root["particle_mc" + _local4].speedX = _root["particle_mc" + _local4].speedX * 5;
_root["particle_mc" + _local4].speedY = _root["particle_mc" + _local4].speedY * 5;
_root["particle_mc" + _local4].YMax = 4;
_root["particle_mc" + _local4].stopit = false;
_root["particle_mc" + _local4].onEnterFrame = function () {
if (!this.stopit) {
if (_root["lane" + targetLane].hitTest(this._x, this._y + 10, true)) {
this.speedY = -this.speedY;
if (this.YMax > 1) {
this.YMax = this.YMax - 0.5;
}
if (this.YMax <= 1) {
this.speedY = 0;
}
if (this.speedX > 0) {
this.speedX = this.speedX - 0.3;
}
if (this.speedX < 0) {
this.speedX = this.speedX + 0.3;
}
if ((this.speedX > -0.5) && (this.speedX < 0.5)) {
this.speedX = 0;
}
}
if ((this._y + 10) > (_root["lane" + targetLane]._y + 20)) {
this._y = _root["lane" + targetLane]._y;
}
this._x = this._x + this.speedX;
this._y = this._y + this.speedY;
if ((this.speedY < this.YMax) && (this.YMax > 1)) {
this.speedY = this.speedY + 0.5;
}
}
};
_local4++;
}
var _local5 = (_local7 * 2) + _local8;
while (_local5 < (((_local7 * 2) + _local7) + _local8)) {
var _local10 = flash.display.BitmapData.loadBitmap("gib3");
_root["particle_mc" + _local5] = _root.createEmptyMovieClip("main_holder" + _local5, _local5);
_root["particle_mc" + _local5].attachBitmap(_local10, main_holder.getNextHighestDepth(), "never");
_root["particle_mc" + _local5]._x = targetX;
_root["particle_mc" + _local5]._y = targetY - 30;
_root["particle_mc" + _local5]._rotation = random(360);
_root["particle_mc" + _local5].speedX = Math.random(5) - Math.random(5);
_root["particle_mc" + _local5].speedY = Math.random(5) - Math.random(5);
_root["particle_mc" + _local5].speedX = _root["particle_mc" + _local5].speedX * 5;
_root["particle_mc" + _local5].speedY = _root["particle_mc" + _local5].speedY * 5;
_root["particle_mc" + _local5].YMax = 4;
_root["particle_mc" + _local5].stopit = false;
_root["particle_mc" + _local5].onEnterFrame = function () {
if (!this.stopit) {
if (_root["lane" + targetLane].hitTest(this._x, this._y + 10, true)) {
this.speedY = -this.speedY;
if (this.YMax > 1) {
this.YMax = this.YMax - 0.5;
}
if (this.YMax <= 1) {
this.speedY = 0;
}
if (this.speedX > 0) {
this.speedX = this.speedX - 0.3;
}
if (this.speedX < 0) {
this.speedX = this.speedX + 0.3;
}
if ((this.speedX > -0.5) && (this.speedX < 0.5)) {
this.speedX = 0;
}
}
if ((this._y + 10) > (_root["lane" + targetLane]._y + 20)) {
this._y = _root["lane" + targetLane]._y;
}
this._x = this._x + this.speedX;
this._y = this._y + this.speedY;
if ((this.speedY < this.YMax) && (this.YMax > 1)) {
this.speedY = this.speedY + 0.5;
}
}
};
_local5++;
}
}
function traceSomething() {
trace("something");
trace("something");
trace("something");
trace("something");
trace("something");
}
stop();
stopAllSounds();
musicSound = new Sound(this);
musicSound.attachSound("unlikely");
musicSound.start(0, 999);
camera._x = 338.65;
camera._y = 305.25;
camera.gotoAndStop(1);
Mouse.hide();
startDrag (pointer, true);
var backToMenu = false;
var bossFight = false;
var startBossFight = false;
var enemiesOnScreen = 0;
var itemsOnScreen = 2;
var breakablesOnScreen = 2;
var explodedNades = 0;
var nBalls = 0;
var nGirls = 0;
var nBossDamage = 0;
var nBoss1Elec = 0;
var nTentacleCountdown = 120;
var nPauseTimer = 0;
var nPupsLeft = 0;
var nPickedUpGibs = 0;
var nChargeAmount = 0;
var nWeapCooldown = 0;
var nInvincible = 0;
var nWeapNo = 1;
var nSpeed = 0;
var nMaxmove = 15;
var nGravity = 0;
var nCurrentLane = 1;
var nAttack = 0;
var nCrossbowBolts = 0;
var nUseMagicCooldown = 0;
var nDashChance = 0;
var nBlockDashChance = 0;
var nDashCooldown = 0;
var nTargetTime = 0;
var nEnemiesKilled = 0;
var nMoved = 0;
var nItemCooldown = 0;
var nGrenadesOnScreen = 0;
var nPuppiesOnScreen = 0;
var nFireballs = 0;
var nSelection = 1;
var nSelectionCooldown = 0;
var nBlockDashTimer = 0;
var nBlockDashRecharge = 0;
var nSpawnTime = 0;
var nPupblasts = 0;
var nTime1 = 0;
var nTime2 = 0;
var nTime3 = 0;
var nTime4 = 0;
var nTime5 = 0;
var nScreenNo = 0;
var nBolts = 0;
var nDogCount = 0;
var bKenOnScreen = false;
var bPaused = false;
var bAttacking = false;
var bJAttacking = false;
var bGrounded = false;
var bUsingCross = false;
var bStopInput = false;
var bHit = false;
var bDead = false;
var bShopOnScreen = false;
var bBlocking = false;
var bFacingLeft = false;
var bFacingRight = true;
var bHitChance = false;
var bNextScreen = false;
var bProgress = false;
var bDoOnce = false;
var bKenOnScreen = false;
var bUsingMagic = false;
var bSetUpEnemies = true;
var bDontGetUp = false;
var bDogOnScreen = false;
var bRiding = false;
var bDogAttack = false;
var bPupsOnScreen = false;
var LANE_SPEED = 4;
var oKeyListener = new Object();
Key.addListener(oKeyListener);
var bKeyListener = new Object();
Key.addListener(bKeyListener);
var aKeyListener = new Object();
Key.addListener(aKeyListener);
var aResetPositions = new Array();
aResetPositions[0] = alice._y;
aResetPositions[1] = alice._x;
camera.swapDepths(9999);
border.swapDepths(10000);
blackout2.swapDepths(10001);
pointer.swapDepths(99999);
alice.swapDepths(1000);
item0.gotoAndStop(1);
item1.gotoAndStop(5);
var time1 = new Array();
var time2 = new Array();
var time3 = new Array();
var time4 = new Array();
var time5 = new Array();
var spawnList = new Array(new Array(), new Array(), new Array(), new Array(), new Array(), new Array(), new Array(), new Array());
var enemyStruct;
spawnList[0][0] = (enemyStruct = new Object({className:"pZombie", leftOrRight:"left", spawnTime:1, pushX:Math.floor(Math.random() * 50) + 1}));
spawnList[0][1] = (enemyStruct = new Object({className:"gZombie", leftOrRight:"left", spawnTime:1, pushX:20}));
spawnList[0][2] = (enemyStruct = new Object({className:"pZombie", leftOrRight:"right", spawnTime:1, pushX:Math.floor(Math.random() * 50) + 1}));
spawnList[0][3] = (enemyStruct = new Object({className:"gZombie", leftOrRight:"left", spawnTime:1, pushX:40}));
spawnList[0][4] = (enemyStruct = new Object({className:"zombie", leftOrRight:"right", spawnTime:2, pushX:Math.floor(Math.random() * 50) + 1}));
spawnList[0][5] = (enemyStruct = new Object({className:"gZombie", leftOrRight:"left", spawnTime:2, pushX:Math.floor(Math.random() * 50) + 1}));
spawnList[0][6] = (enemyStruct = new Object({className:"fatzombie", leftOrRight:"right", spawnTime:3, pushX:Math.floor(Math.random() * 50) + 1}));
spawnList[0][7] = (enemyStruct = new Object({className:"gZombie", leftOrRight:"left", spawnTime:3, pushX:30}));
spawnList[0][8] = (enemyStruct = new Object({className:"zombie", leftOrRight:"left", spawnTime:3, pushX:150}));
spawnList[0][9] = (enemyStruct = new Object({className:"pZombie", leftOrRight:"left", spawnTime:3, pushX:30}));
spawnList[0][10] = (enemyStruct = new Object({className:"gZombie", leftOrRight:"right", spawnTime:3, pushX:140}));
spawnList[0][11] = (enemyStruct = new Object({className:"gZombie", leftOrRight:"right", spawnTime:4, pushX:20}));
spawnList[0][12] = (enemyStruct = new Object({className:"fatzombie", leftOrRight:"right", spawnTime:4, pushX:50}));
spawnList[0][13] = (enemyStruct = new Object({className:"fatzombie", leftOrRight:"right", spawnTime:4, pushX:50}));
spawnList[0][14] = (enemyStruct = new Object({className:"BlueFatZombie", leftOrRight:"left", spawnTime:4, pushX:100}));
spawnList[0][15] = (enemyStruct = new Object({className:"gZombie", leftOrRight:"left", spawnTime:4, pushX:30}));
spawnList[0][16] = (enemyStruct = new Object({className:"zombie", leftOrRight:"right", spawnTime:4, pushX:150}));
spawnList[0][17] = (enemyStruct = new Object({className:"pZombie", leftOrRight:"left", spawnTime:5, pushX:30}));
spawnList[0][18] = (enemyStruct = new Object({className:"pZombie", leftOrRight:"left", spawnTime:5, pushX:140}));
spawnList[0][19] = (enemyStruct = new Object({className:"gZombie", leftOrRight:"right", spawnTime:5, pushX:20}));
spawnList[0][20] = (enemyStruct = new Object({className:"fatzombie", leftOrRight:"left", spawnTime:5, pushX:50}));
spawnList[0][21] = (enemyStruct = new Object({className:"zombie", leftOrRight:"left", spawnTime:5, pushX:50}));
spawnList[0][22] = (enemyStruct = new Object({className:"zombie", leftOrRight:"right", spawnTime:5, pushX:100}));
time1[0] = 150;
time2[0] = 600;
time3[0] = 900;
time4[0] = 1200;
time5[0] = 1600;
spawnList[1][0] = (enemyStruct = new Object({className:"darkwerewolf", leftOrRight:"right", spawnTime:1, pushX:20}));
spawnList[1][1] = (enemyStruct = new Object({className:"gZombie", leftOrRight:"left", spawnTime:1, pushX:30}));
spawnList[1][2] = (enemyStruct = new Object({className:"bZombie", leftOrRight:"left", spawnTime:1, pushX:50}));
spawnList[1][3] = (enemyStruct = new Object({className:"zombie", leftOrRight:"right", spawnTime:1, pushX:150}));
spawnList[1][4] = (enemyStruct = new Object({className:"pZombie", leftOrRight:"left", spawnTime:2, pushX:10}));
spawnList[1][5] = (enemyStruct = new Object({className:"greywerewolf", leftOrRight:"left", spawnTime:2, pushX:0}));
spawnList[1][6] = (enemyStruct = new Object({className:"zombie", leftOrRight:"right", spawnTime:2, pushX:20}));
spawnList[1][7] = (enemyStruct = new Object({className:"gZombie", leftOrRight:"right", spawnTime:2, pushX:30}));
spawnList[1][8] = (enemyStruct = new Object({className:"gZombie", leftOrRight:"right", spawnTime:3, pushX:150}));
spawnList[1][9] = (enemyStruct = new Object({className:"bZombie", leftOrRight:"left", spawnTime:3, pushX:30}));
spawnList[1][10] = (enemyStruct = new Object({className:"gZombie", leftOrRight:"right", spawnTime:3, pushX:140}));
spawnList[1][11] = (enemyStruct = new Object({className:"zombie", leftOrRight:"left", spawnTime:4, pushX:20}));
spawnList[1][12] = (enemyStruct = new Object({className:"zombie", leftOrRight:"right", spawnTime:4, pushX:50}));
spawnList[1][13] = (enemyStruct = new Object({className:"greywerewolf", leftOrRight:"right", spawnTime:5, pushX:50}));
time1[1] = 150;
time2[1] = 600;
time3[1] = 900;
time4[1] = 1200;
time5[1] = 1600;
spawnList[2][0] = (enemyStruct = new Object({className:"slime", leftOrRight:"right", spawnTime:1, pushX:Math.floor(Math.random() * 50) + 1}));
spawnList[2][1] = (enemyStruct = new Object({className:"slime", leftOrRight:"left", spawnTime:1, pushX:Math.floor(Math.random() * 50) + 1}));
spawnList[2][2] = (enemyStruct = new Object({className:"smslime", leftOrRight:"right", spawnTime:2, pushX:Math.floor(Math.random() * 50) + 1}));
spawnList[2][3] = (enemyStruct = new Object({className:"slime", leftOrRight:"left", spawnTime:2, pushX:Math.floor(Math.random() * 50) + 1}));
spawnList[2][4] = (enemyStruct = new Object({className:"smslime", leftOrRight:"right", spawnTime:2, pushX:Math.floor(Math.random() * 50) + 1}));
spawnList[2][5] = (enemyStruct = new Object({className:"smslime", leftOrRight:"left", spawnTime:2, pushX:Math.floor(Math.random() * 50) + 1}));
spawnList[2][6] = (enemyStruct = new Object({className:"slime", leftOrRight:"right", spawnTime:3, pushX:Math.floor(Math.random() * 50) + 1}));
spawnList[2][7] = (enemyStruct = new Object({className:"slime", leftOrRight:"left", spawnTime:3, pushX:Math.floor(Math.random() * 50) + 1}));
spawnList[2][4] = (enemyStruct = new Object({className:"smslime", leftOrRight:"right", spawnTime:4, pushX:Math.floor(Math.random() * 50) + 1}));
spawnList[2][5] = (enemyStruct = new Object({className:"smslime", leftOrRight:"left", spawnTime:4, pushX:Math.floor(Math.random() * 50) + 1}));
spawnList[2][6] = (enemyStruct = new Object({className:"slime", leftOrRight:"right", spawnTime:4, pushX:Math.floor(Math.random() * 50) + 1}));
spawnList[2][7] = (enemyStruct = new Object({className:"slime", leftOrRight:"left", spawnTime:5, pushX:Math.floor(Math.random() * 50) + 1}));
time1[2] = 60;
time2[2] = 600;
time3[2] = 900;
time4[2] = 1200;
time5[2] = 1600;
spawnList[3][0] = (enemyStruct = new Object({className:"redvampire", leftOrRight:"right", spawnTime:1, pushX:Math.floor(Math.random() * 50) + 1}));
spawnList[3][1] = (enemyStruct = new Object({className:"vampirebat", leftOrRight:"left", spawnTime:1, pushX:20}));
spawnList[3][2] = (enemyStruct = new Object({className:"fatzombie", leftOrRight:"right", spawnTime:1, pushX:30}));
spawnList[3][3] = (enemyStruct = new Object({className:"slime", leftOrRight:"left", spawnTime:1, pushX:50}));
spawnList[3][4] = (enemyStruct = new Object({className:"zombie", leftOrRight:"right", spawnTime:2, pushX:20}));
spawnList[3][5] = (enemyStruct = new Object({className:"vampire", leftOrRight:"left", spawnTime:2, pushX:30}));
spawnList[3][6] = (enemyStruct = new Object({className:"bluevampire", leftOrRight:"left", spawnTime:2, pushX:70}));
spawnList[3][7] = (enemyStruct = new Object({className:"BlueFatZombie", leftOrRight:"right", spawnTime:2, pushX:60}));
spawnList[3][8] = (enemyStruct = new Object({className:"gZombie", leftOrRight:"left", spawnTime:3, pushX:10}));
spawnList[3][9] = (enemyStruct = new Object({className:"zombie", leftOrRight:"right", spawnTime:3, pushX:20}));
spawnList[3][10] = (enemyStruct = new Object({className:"vampire", leftOrRight:"left", spawnTime:3, pushX:30}));
spawnList[3][11] = (enemyStruct = new Object({className:"bluevampire", leftOrRight:"left", spawnTime:3, pushX:70}));
spawnList[3][12] = (enemyStruct = new Object({className:"greywerewolf", leftOrRight:"right", spawnTime:4, pushX:60}));
spawnList[3][13] = (enemyStruct = new Object({className:"zombie", leftOrRight:"left", spawnTime:4, pushX:10}));
spawnList[3][14] = (enemyStruct = new Object({className:"vampirebat", leftOrRight:"right", spawnTime:5, pushX:60}));
spawnList[3][15] = (enemyStruct = new Object({className:"vampirebat", leftOrRight:"left", spawnTime:5, pushX:60}));
time1[3] = 60;
time2[3] = 600;
time3[3] = 900;
time4[3] = 1200;
time5[3] = 1600;
spawnList[4][0] = (enemyStruct = new Object({className:"zombie", leftOrRight:"right", spawnTime:1, pushX:Math.floor(Math.random() * 50) + 1}));
spawnList[4][1] = (enemyStruct = new Object({className:"zombie", leftOrRight:"left", spawnTime:1, pushX:Math.floor(Math.random() * 50) + 1}));
spawnList[4][2] = (enemyStruct = new Object({className:"gZombie", leftOrRight:"right", spawnTime:1, pushX:Math.floor(Math.random() * 50) + 1}));
spawnList[4][3] = (enemyStruct = new Object({className:"fatzombie", leftOrRight:"left", spawnTime:1, pushX:Math.floor(Math.random() * 50) + 1}));
spawnList[4][4] = (enemyStruct = new Object({className:"redvampire", leftOrRight:"right", spawnTime:2, pushX:Math.floor(Math.random() * 50) + 1}));
spawnList[4][5] = (enemyStruct = new Object({className:"vampirebat", leftOrRight:"right", spawnTime:2, pushX:Math.floor(Math.random() * 50) + 1}));
spawnList[4][6] = (enemyStruct = new Object({className:"zombie", leftOrRight:"right", spawnTime:2, pushX:20}));
spawnList[4][7] = (enemyStruct = new Object({className:"gZombie", leftOrRight:"right", spawnTime:2, pushX:30}));
spawnList[4][8] = (enemyStruct = new Object({className:"vampire", leftOrRight:"right", spawnTime:3, pushX:50}));
spawnList[4][9] = (enemyStruct = new Object({className:"bZombie", leftOrRight:"left", spawnTime:3, pushX:30}));
spawnList[4][10] = (enemyStruct = new Object({className:"redvampire", leftOrRight:"right", spawnTime:3, pushX:40}));
spawnList[4][11] = (enemyStruct = new Object({className:"fatzombie", leftOrRight:"left", spawnTime:3, pushX:20}));
spawnList[4][12] = (enemyStruct = new Object({className:"werewolf", leftOrRight:"right", spawnTime:4, pushX:50}));
spawnList[4][13] = (enemyStruct = new Object({className:"vampirebat", leftOrRight:"right", spawnTime:5, pushX:50}));
time1[4] = 60;
time2[4] = 600;
time3[4] = 900;
time4[4] = 1200;
time5[4] = 1600;
spawnList[5][0] = (enemyStruct = new Object({className:"blueFatZombie", leftOrRight:"left", spawnTime:1, pushX:Math.floor(Math.random() * 50) + 1}));
spawnList[5][1] = (enemyStruct = new Object({className:"gZombie", leftOrRight:"right", spawnTime:1, pushX:Math.floor(Math.random() * 50) + 1}));
spawnList[5][2] = (enemyStruct = new Object({className:"fatzombie", leftOrRight:"left", spawnTime:1, pushX:Math.floor(Math.random() * 50) + 1}));
spawnList[5][3] = (enemyStruct = new Object({className:"werewolf", leftOrRight:"right", spawnTime:2, pushX:20}));
spawnList[5][4] = (enemyStruct = new Object({className:"bZombie", leftOrRight:"left", spawnTime:2, pushX:50}));
spawnList[5][5] = (enemyStruct = new Object({className:"zombie", leftOrRight:"left", spawnTime:2, pushX:20}));
spawnList[5][6] = (enemyStruct = new Object({className:"gZombie", leftOrRight:"left", spawnTime:2, pushX:30}));
spawnList[5][7] = (enemyStruct = new Object({className:"slime", leftOrRight:"right", spawnTime:3, pushX:10}));
spawnList[5][8] = (enemyStruct = new Object({className:"smslime", leftOrRight:"left", spawnTime:3, pushX:20}));
spawnList[5][9] = (enemyStruct = new Object({className:"vampirebat", leftOrRight:"left", spawnTime:4, pushX:60}));
spawnList[5][10] = (enemyStruct = new Object({className:"zombie", leftOrRight:"right", spawnTime:4, pushX:50}));
spawnList[5][11] = (enemyStruct = new Object({className:"gZombie", leftOrRight:"left", spawnTime:4, pushX:70}));
spawnList[5][12] = (enemyStruct = new Object({className:"vampire", leftOrRight:"right", spawnTime:5, pushX:60}));
spawnList[5][13] = (enemyStruct = new Object({className:"gZombie", leftOrRight:"left", spawnTime:5, pushX:10}));
time1[5] = 60;
time2[5] = 600;
time3[5] = 900;
time4[5] = 1200;
time5[5] = 1600;
spawnList[6][0] = (enemyStruct = new Object({className:"blueFatZombie", leftOrRight:"left", spawnTime:1, pushX:Math.floor(Math.random() * 50) + 1}));
spawnList[6][1] = (enemyStruct = new Object({className:"fatzombie", leftOrRight:"right", spawnTime:1, pushX:Math.floor(Math.random() * 50) + 1}));
spawnList[6][2] = (enemyStruct = new Object({className:"fatzombie", leftOrRight:"left", spawnTime:1, pushX:Math.floor(Math.random() * 50) + 1}));
spawnList[6][3] = (enemyStruct = new Object({className:"werewolf", leftOrRight:"left", spawnTime:2, pushX:20}));
spawnList[6][4] = (enemyStruct = new Object({className:"bZombie", leftOrRight:"left", spawnTime:2, pushX:50}));
spawnList[6][5] = (enemyStruct = new Object({className:"zombie", leftOrRight:"right", spawnTime:2, pushX:20}));
spawnList[6][6] = (enemyStruct = new Object({className:"vampirebat", leftOrRight:"left", spawnTime:2, pushX:30}));
spawnList[6][7] = (enemyStruct = new Object({className:"bZombie", leftOrRight:"left", spawnTime:3, pushX:10}));
spawnList[6][8] = (enemyStruct = new Object({className:"zombie", leftOrRight:"left", spawnTime:3, pushX:20}));
spawnList[6][9] = (enemyStruct = new Object({className:"greywerewolf", leftOrRight:"left", spawnTime:3, pushX:60}));
spawnList[6][10] = (enemyStruct = new Object({className:"zombie", leftOrRight:"right", spawnTime:3, pushX:50}));
spawnList[6][11] = (enemyStruct = new Object({className:"gZombie", leftOrRight:"left", spawnTime:4, pushX:70}));
spawnList[6][12] = (enemyStruct = new Object({className:"zombie", leftOrRight:"right", spawnTime:4, pushX:60}));
spawnList[6][13] = (enemyStruct = new Object({className:"vampire", leftOrRight:"left", spawnTime:5, pushX:10}));
time1[6] = 60;
time2[6] = 600;
time3[6] = 900;
time4[6] = 1200;
time5[6] = 1600;
var speechCounter = 0;
var speechList = new Array();
speechList[0] = "You're heading towards the creepy mansion now?";
speechList[1] = "That seemed like the natural progression.";
speechList[2] = "Better stock up then, I got a bad feeling about that place.";
alice._xscale = -100;
onEnterFrame = function () {
if (backToMenu) {
backToMenu = false;
alice.removeMovieClip();
sage.removeMovieClip();
border.removeMovieClip();
foreground.removeMovieClip();
bgbuildings.removeMovieClip();
_root.dog.removeMovieClip();
ed.removeMovieClip();
var _local5 = 0;
while (_local5 < (nGrenadesOnScreen + 1)) {
_root["nade" + _local5].removeMovieClip();
_local5++;
}
var _local18 = 0;
while (_local18 < itemsOnScreen) {
_root["item" + _local18].removeMovieClip();
_local18++;
}
var _local17 = 0;
while (_local17 < enemiesOnScreen) {
_root["enum" + _local17].removeMovieClip();
_local17++;
}
var _local14 = 0;
while (_local14 < 1000) {
_root["particle_mc" + _local14].removeMovieClip();
_local14++;
}
var _local12 = 0;
while (_local12 < 1000) {
_root["darkbolt" + _local12].removeMovieClip();
_local12++;
}
var _local4 = 0;
while (_local4 < 1000) {
_root["crossbowbolt" + _local4].removeMovieClip();
_local4++;
}
var _local10 = 0;
while (_local10 < 1000) {
_root["puppyblast" + _local10].removeMovieClip();
_local10++;
}
_local18 = 0;
while (_local18 < 1000) {
_root["fireball" + _local18].removeMovieClip();
_local18++;
}
_local5 = 0;
while (_local5 < 1000) {
_root["puppy" + _local5].removeMovieClip();
_local5++;
}
_local17 = 0;
while (_local17 < 1000) {
_root["fatgirl" + _local17].removeMovieClip();
_local17++;
}
var _local16 = 0;
while (_local16 < 1000) {
_root["baseball" + _local16].removeMovieClip();
_local16++;
}
_root.ken.removeMovieClip();
nCrossbowBolts = 0;
nPuppiesOnScreen = 0;
nFireballs = 0;
nBolts = 0;
nPupblasts = 0;
nPickedUpGibs = 0;
if ((!bRiding) && (bDogOnScreen)) {
_root.dog.removeMovieClip();
}
bProgress = false;
nScreenNo++;
bSetUpEnemies = true;
_root.camera.topright.gotoAndStop(1);
nMoved = 0;
nEnemiesKilled = 0;
_global.gibsOnScreen = 0;
stopAllSounds();
if ((bDead == true) && (_global.lives == 1)) {
_root.gotoAndStop(9);
} else {
_root.gotoAndStop(3);
}
// unexpected jump
}
if (bossFight) {
if (bDoOnce) {
if (!_global.mag4addon) {
alice.gotoAndStop("dogidle");
} else {
alice.gotoAndStop("ndogidle");
}
if (nWeapNo == 1) {
alice.gotoAndStop("idle");
}
if (nWeapNo == 2) {
alice.gotoAndStop("kidle");
}
if (nWeapNo == 3) {
alice.gotoAndStop("sidle");
}
bDoOnce = false;
_root.camera.bosslifebars.gotoAndStop(3);
stopAllSounds();
musicSound = new Sound(this);
musicSound.attachSound("Boss");
musicSound.start(0, 999);
}
// unexpected jump
}
if (introMovie) {
if (nSpeechCountdown > 0) {
nSpeechCountdown--;
}
if (!speechTime) {
alice.gotoAndStop(49);
} else {
if (bRiding && (!_global.mag4addon)) {
alice.gotoAndStop("dogidle");
} else if (bRiding && (_global.mag4addon)) {
alice.gotoAndStop("ndogidle");
} else {
alice.gotoAndStop("idle");
}
if (Key.isDown(68) && (nSpeechCountdown == 0)) {
speechTime = false;
introMovie = false;
nSpeechCountdown = 10;
_root.foreground.speechbub.removeMovieClip();
_root.speechbub.removeMovieClip();
_root.sage.speechbub.removeMovieClip();
}
}
// unexpected jump
}
if (explodedNades == nGrenadesOnScreen) {
nGrenadesOnScreen = 0;
explodedNades = 0;
}
if (!bPaused) {
nSpawnTime++;
}
if (bSetUpEnemies) {
nSpawnTime = 0;
bSetUpEnemies = false;
nTime1 = time1[nScreenNo];
nTime2 = time2[nScreenNo];
nTime3 = time3[nScreenNo];
nTime4 = time4[nScreenNo];
nTime5 = time5[nScreenNo];
}
if (nSpawnTime == nTime1) {
var _local14 = 0;
while (_local14 < spawnList[nScreenNo].length) {
if (spawnList[nScreenNo][_local14].spawnTime == 1) {
var _local21 = "enum" + enemiesOnScreen;
_root.attachMovie(spawnList[nScreenNo][_local14].className, _local21, _root.getNextHighestDepth());
if (spawnList[nScreenNo][_local14].leftOrRight == "right") {
_root["enum" + enemiesOnScreen]._x = dispenserR._x + spawnList[nScreenNo][_local14].pushX;
_root["enum" + enemiesOnScreen].bFacingRight = false;
_root["enum" + enemiesOnScreen].bFacingLeft = true;
} else if (spawnList[nScreenNo][_local14].leftOrRight == "left") {
_root["enum" + enemiesOnScreen]._x = dispenserL._x - spawnList[nScreenNo][_local14].pushX;
_root["enum" + enemiesOnScreen].bFacingRight = true;
_root["enum" + enemiesOnScreen].bFacingLeft = false;
}
if (_root["enum" + enemiesOnScreen].nCurrentLane == 1) {
_root["enum" + enemiesOnScreen]._y = 439.05;
} else if (_root["enum" + enemiesOnScreen].nCurrentLane == 2) {
_root["enum" + enemiesOnScreen]._y = 494.05;
} else if (_root["enum" + enemiesOnScreen].nCurrentLane == 3) {
_root["enum" + enemiesOnScreen]._y = 540.05;
}
enemiesOnScreen++;
}
_local14++;
}
}
if (nSpawnTime == nTime2) {
var _local14 = 0;
while (_local14 < spawnList[nScreenNo].length) {
if (spawnList[nScreenNo][_local14].spawnTime == 2) {
var _local21 = "enum" + enemiesOnScreen;
_root.attachMovie(spawnList[nScreenNo][_local14].className, _local21, _root.getNextHighestDepth());
if (spawnList[nScreenNo][_local14].leftOrRight == "right") {
_root["enum" + enemiesOnScreen]._x = dispenserR._x + spawnList[nScreenNo][_local14].pushX;
_root["enum" + enemiesOnScreen].bFacingRight = false;
_root["enum" + enemiesOnScreen].bFacingLeft = true;
} else if (spawnList[nScreenNo][_local14].leftOrRight == "left") {
_root["enum" + enemiesOnScreen]._x = dispenserL._x - spawnList[nScreenNo][_local14].pushX;
_root["enum" + enemiesOnScreen].bFacingRight = true;
_root["enum" + enemiesOnScreen].bFacingLeft = false;
}
if (_root["enum" + enemiesOnScreen].nCurrentLane == 1) {
_root["enum" + enemiesOnScreen]._y = 439.05;
} else if (_root["enum" + enemiesOnScreen].nCurrentLane == 2) {
_root["enum" + enemiesOnScreen]._y = 494.05;
} else if (_root["enum" + enemiesOnScreen].nCurrentLane == 3) {
_root["enum" + enemiesOnScreen]._y = 540.05;
}
enemiesOnScreen++;
}
_local14++;
}
}
if (nSpawnTime == nTime3) {
var _local14 = 0;
while (_local14 < spawnList[nScreenNo].length) {
if (spawnList[nScreenNo][_local14].spawnTime == 3) {
var _local21 = "enum" + enemiesOnScreen;
_root.attachMovie(spawnList[nScreenNo][_local14].className, _local21, _root.getNextHighestDepth());
if (spawnList[nScreenNo][_local14].leftOrRight == "right") {
_root["enum" + enemiesOnScreen]._x = dispenserR._x + spawnList[nScreenNo][_local14].pushX;
_root["enum" + enemiesOnScreen].bFacingRight = false;
_root["enum" + enemiesOnScreen].bFacingLeft = true;
} else if (spawnList[nScreenNo][_local14].leftOrRight == "left") {
_root["enum" + enemiesOnScreen]._x = dispenserL._x - spawnList[nScreenNo][_local14].pushX;
_root["enum" + enemiesOnScreen].bFacingRight = true;
_root["enum" + enemiesOnScreen].bFacingLeft = false;
}
if (_root["enum" + enemiesOnScreen].nCurrentLane == 1) {
_root["enum" + enemiesOnScreen]._y = 439.05;
} else if (_root["enum" + enemiesOnScreen].nCurrentLane == 2) {
_root["enum" + enemiesOnScreen]._y = 494.05;
} else if (_root["enum" + enemiesOnScreen].nCurrentLane == 3) {
_root["enum" + enemiesOnScreen]._y = 540.05;
}
enemiesOnScreen++;
}
_local14++;
}
}
if (nSpawnTime == nTime4) {
var _local14 = 0;
while (_local14 < spawnList[nScreenNo].length) {
if (spawnList[nScreenNo][_local14].spawnTime == 4) {
var _local21 = "enum" + enemiesOnScreen;
_root.attachMovie(spawnList[nScreenNo][_local14].className, _local21, _root.getNextHighestDepth());
if (spawnList[nScreenNo][_local14].leftOrRight == "right") {
_root["enum" + enemiesOnScreen]._x = dispenserR._x + spawnList[nScreenNo][_local14].pushX;
_root["enum" + enemiesOnScreen].bFacingRight = false;
_root["enum" + enemiesOnScreen].bFacingLeft = true;
} else if (spawnList[nScreenNo][_local14].leftOrRight == "left") {
_root["enum" + enemiesOnScreen]._x = dispenserL._x - spawnList[nScreenNo][_local14].pushX;
_root["enum" + enemiesOnScreen].bFacingRight = true;
_root["enum" + enemiesOnScreen].bFacingLeft = false;
}
if (_root["enum" + enemiesOnScreen].nCurrentLane == 1) {
_root["enum" + enemiesOnScreen]._y = 439.05;
} else if (_root["enum" + enemiesOnScreen].nCurrentLane == 2) {
_root["enum" + enemiesOnScreen]._y = 494.05;
} else if (_root["enum" + enemiesOnScreen].nCurrentLane == 3) {
_root["enum" + enemiesOnScreen]._y = 540.05;
}
enemiesOnScreen++;
}
_local14++;
}
}
if (nSpawnTime == nTime5) {
var _local14 = 0;
while (_local14 < spawnList[nScreenNo].length) {
if (spawnList[nScreenNo][_local14].spawnTime == 5) {
var _local21 = "enum" + enemiesOnScreen;
_root.attachMovie(spawnList[nScreenNo][_local14].className, _local21, _root.getNextHighestDepth());
if (spawnList[nScreenNo][_local14].leftOrRight == "right") {
_root["enum" + enemiesOnScreen]._x = dispenserR._x + spawnList[nScreenNo][_local14].pushX;
_root["enum" + enemiesOnScreen].bFacingRight = false;
_root["enum" + enemiesOnScreen].bFacingLeft = true;
} else if (spawnList[nScreenNo][_local14].leftOrRight == "left") {
_root["enum" + enemiesOnScreen]._x = dispenserL._x - spawnList[nScreenNo][_local14].pushX;
_root["enum" + enemiesOnScreen].bFacingRight = true;
_root["enum" + enemiesOnScreen].bFacingLeft = false;
}
if (_root["enum" + enemiesOnScreen].nCurrentLane == 1) {
_root["enum" + enemiesOnScreen]._y = 439.05;
} else if (_root["enum" + enemiesOnScreen].nCurrentLane == 2) {
_root["enum" + enemiesOnScreen]._y = 494.05;
} else if (_root["enum" + enemiesOnScreen].nCurrentLane == 3) {
_root["enum" + enemiesOnScreen]._y = 540.05;
}
enemiesOnScreen++;
}
_local14++;
}
}
if (nPupsLeft == nPuppiesOnScreen) {
nPuppiesOnScreen = 0;
nPupsLeft = 0;
bPupsOnScreen = false;
}
if (camera._y > (alice._y + 100)) {
camera._y = camera._y - 2;
}
if (camera._y < (alice._y - 200)) {
camera._y = camera._y + 2;
}
if (bProgress == true) {
if (bKenOnScreen) {
bKenOnScreen = false;
_root.ken.removeMovieClip();
}
if (bDoOnce) {
bDoOnce = false;
var _local14 = 0;
while (_local14 < 1000) {
_root["particle_mc" + _local14].removeMovieClip();
_local14++;
}
if (nScreenNo == 9) {
backToMenu = true;
}
if (nScreenNo == 7) {
bStopInput = true;
if (!_global.ach14) {
_global.ach14 = true;
_root.camera.achunlock.gotoAndStop(15);
}
if (!_global.lev3unlock) {
_global.lev3just = true;
}
camera.fallen.gotoAndStop(2);
}
}
bNextScreen = false;
bFacingRight = true;
bFacingLeft = false;
alice._xscale = -100;
if (!bRiding) {
if (nScreenNo == 7) {
if (nWeapNo == 1) {
alice.gotoAndStop("idle");
}
if (nWeapNo == 2) {
alice.gotoAndStop("kidle");
}
if (nWeapNo == 3) {
alice.gotoAndStop("sidle");
}
} else {
if (nWeapNo == 1) {
alice.gotoAndStop("run");
}
if (nWeapNo == 2) {
alice.gotoAndStop("krun");
}
if (nWeapNo == 3) {
alice.gotoAndStop("srun");
}
}
} else {
if (!_global.mag4addon) {
alice.gotoAndStop("dogwalk");
} else {
alice.gotoAndStop("ndogwalk");
}
if (nScreenNo == 7) {
if (!_global.mag4addon) {
alice.gotoAndStop("dogidle");
} else {
alice.gotoAndStop("ndogidle");
}
}
}
_root.dog._x = _root.dog._x - 5;
nMoved = nMoved + 5;
foreground._x = foreground._x - 5;
road._x = road._x - 5;
ground1._x = ground1._x - 5;
sage._x = sage._x - 5;
bgbuildings._x = bgbuildings._x - 2;
ed._x = ed._x - 5;
if (nScreenNo != 7) {
alice._x = alice._x - 2;
} else {
alice._x = alice._x - 5;
}
var _local5 = 0;
while (_local5 < (nGrenadesOnScreen + 1)) {
if (_root["nade" + _local5].wait._currentframe == 50) {
if (!_global.pyro) {
_root["nade" + _local5].gotoAndStop(2);
} else {
_root["nade" + _local5].gotoAndStop(3);
}
explodedNades++;
}
_root["nade" + _local5]._x = _root["nade" + _local5]._x - 5;
_local5++;
}
var _local10 = 0;
while (_local10 < breakablesOnScreen) {
_root["break" + _local10]._x = _root["break" + _local10]._x - 5;
_local10++;
}
var _local18 = 0;
while (_local18 < itemsOnScreen) {
_root["item" + _local18]._x = _root["item" + _local18]._x - 5;
_local18++;
}
if (nScreenNo == 6) {
ed.Update();
}
if ((nMoved == 850) && (nScreenNo == 7)) {
bProgress = false;
}
if ((nMoved == 850) && (nScreenNo == 6)) {
nSpeed = 0;
bProgress = false;
bossFight = true;
bDoOnce = true;
nCrossbowBolts = 0;
nPuppiesOnScreen = 0;
nFireballs = 0;
nBolts = 0;
nPupblasts = 0;
nPickedUpGibs = 0;
if ((!bRiding) && (bDogOnScreen)) {
_root.dog.removeMovieClip();
}
bProgress = false;
nScreenNo++;
_root.camera.topright.gotoAndStop(1);
nMoved = 0;
nEnemiesKilled = 0;
}
if (((nMoved == 640) && (nScreenNo != 6)) && (nScreenNo != 7)) {
nCrossbowBolts = 0;
nPuppiesOnScreen = 0;
nFireballs = 0;
nBolts = 0;
nPupblasts = 0;
nPickedUpGibs = 0;
if ((!bRiding) && (bDogOnScreen)) {
_root.dog.removeMovieClip();
}
bProgress = false;
nScreenNo++;
bSetUpEnemies = true;
_root.camera.topright.gotoAndStop(1);
nMoved = 0;
nEnemiesKilled = 0;
_global.gibsOnScreen = 0;
}
// unexpected jump
}
if (bPaused) {
camera.pause.gotoAndStop(2);
blackout2.gotoAndStop(111);
if (startBossFight) {
getAllMc(ed);
}
getAllMc(alice);
sage.stop();
getAllMc(camera.topright);
var _local10 = 0;
while (_local10 < enemiesOnScreen) {
getAllMc(_root["enum" + _local10]);
_local10++;
}
var _local14 = 0;
while (_local14 < 1000) {
_root["particle_mc" + _local14].stopit = true;
_local14++;
}
var _local7 = 0;
while (_local7 < 1000) {
stopMoveAllMc(_root["nade" + _local7]);
_local7++;
}
var _local12 = 0;
while (_local12 < 1000) {
stopMoveAllMc(_root["darkbolt" + _local12]);
_local12++;
}
var _local4 = 0;
while (_local4 < 1000) {
stopMoveAllMc(_root["crossbowbolt" + _local4]);
_local4++;
}
_local10 = 0;
while (_local10 < 1000) {
stopMoveAllMc(_root["puppyblast" + _local10]);
_local10++;
}
var _local18 = 0;
while (_local18 < 1000) {
stopMoveAllMc(_root["fireball" + _local18]);
_local18++;
}
var _local5 = 0;
while (_local5 < 1000) {
stopMoveAllMc(_root["puppy" + _local5]);
_local5++;
}
var _local17 = 0;
while (_local17 < 1000) {
stopMoveAllMc(_root["fatgirl" + _local17]);
_local17++;
}
var _local16 = 0;
while (_local16 < 1000) {
stopMoveAllMc(_root["baseball" + _local16]);
_local16++;
}
stopMoveAllMc(_root.ken);
stopMoveAllMc(main_holder);
if ((Key.isDown(27) && (nPauseTimer == 0)) && (!bStopInput)) {
camera.pause.gotoAndStop(1);
if (startBossFight) {
playAllMc(ed);
}
playAllMc(alice);
sage.play();
playAllMc(camera.topright);
_local10 = 0;
while (_local10 < enemiesOnScreen) {
playAllMc(_root["enum" + _local10]);
_local10++;
}
_local14 = 0;
while (_local14 < 1000) {
_root["particle_mc" + _local14].stopit = false;
_local14++;
}
_local7 = 0;
while (_local7 < 1000) {
startMoveAllMc(_root["nade" + _local7]);
_local7++;
}
_local12 = 0;
while (_local12 < 1000) {
startMoveAllMc(_root["darkbolt" + _local12]);
_local12++;
}
_local4 = 0;
while (_local4 < 1000) {
startMoveAllMc(_root["crossbowbolt" + _local4]);
_local4++;
}
_local10 = 0;
while (_local10 < 1000) {
startMoveAllMc(_root["puppyblast" + _local10]);
_local10++;
}
_local18 = 0;
while (_local18 < 1000) {
startMoveAllMc(_root["fireball" + _local18]);
_local18++;
}
_local5 = 0;
while (_local5 < 1000) {
startMoveAllMc(_root["puppy" + _local5]);
_local5++;
}
_local17 = 0;
while (_local17 < 1000) {
startMoveAllMc(_root["fatgirl" + _local17]);
_local17++;
}
_local16 = 0;
while (_local16 < 1000) {
startMoveAllMc(_root["baseball" + _local16]);
_local16++;
}
startMoveAllMc(_root.ken);
startMoveAllMc(main_holder);
_root.camera.achmenu.gotoAndStop(1);
_root.camera.controls.gotoAndStop(1);
bPaused = false;
nPauseTimer = 5;
}
if (nPauseTimer > 0) {
nPauseTimer--;
}
// unexpected jump
}
if ((_global.zombiesKilled == 10) && (!_global.ach1)) {
_root.camera.achunlock.gotoAndStop(2);
_global.ach1 = true;
}
if ((_global.zombiesKilled == 50) && (!_global.ach2)) {
_root.camera.achunlock.gotoAndStop(3);
_global.ach2 = true;
}
if ((_global.zombiesKilled == 200) && (!_global.ach3)) {
_root.camera.achunlock.gotoAndStop(4);
_global.ach3 = true;
}
if ((_global.vampiresKilled == 10) && (!_global.ach4)) {
_root.camera.achunlock.gotoAndStop(5);
_global.ach4 = true;
}
if ((_global.vampiresKilled == 50) && (!_global.ach5)) {
_root.camera.achunlock.gotoAndStop(6);
_global.ach5 = true;
}
if ((_global.werewolvesKilled == 10) && (!_global.ach6)) {
_root.camera.achunlock.gotoAndStop(7);
_global.ach6 = true;
}
if ((_global.werewolvesKilled == 50) && (!_global.ach7)) {
_root.camera.achunlock.gotoAndStop(8);
_global.ach7 = true;
}
bUsingMagic = false;
if ((((((Key.isDown(70) && (!bStopInput)) && (!bUsingMagic)) && (bGrounded)) && (!bRiding)) && (!bDead)) && (_global.mana != 0)) {
if (nWeapNo == 1) {
alice.gotoAndStop("batmagic");
bUsingMagic = true;
}
if (nWeapNo == 2) {
alice.gotoAndStop("katmagic");
bUsingMagic = true;
}
if (nWeapNo == 3) {
alice.gotoAndStop("stakemagic");
bUsingMagic = true;
}
nChargeAmount++;
if ((nChargeAmount == 20) && (_global.mana > 0)) {
_root.camera.manabar.charge.gotoAndStop(2);
}
if (((nChargeAmount == 35) && (_global.mana > 1)) && (_global.mag2)) {
_root.camera.manabar.charge.gotoAndStop(3);
}
if (((nChargeAmount == 50) && (_global.mana > 2)) && (_global.mag3)) {
_root.camera.manabar.charge.gotoAndStop(4);
}
if (((nChargeAmount == 65) && (_global.mana > 3)) && (_global.mag4)) {
_root.camera.manabar.charge.gotoAndStop(5);
}
if (((nChargeAmount == 80) && (_global.mana > 4)) && (_global.mag5)) {
_root.camera.manabar.charge.gotoAndStop(6);
}
}
if (bUsingMagic == false) {
nChargeAmount = 0;
_root.camera.manabar.charge.gotoAndStop(1);
}
_root.camera.meatCountText.text = "x" + _global.heldGibs;
_root.camera.livesText.text = "x" + _global.lives;
if (_global.health <= 12) {
_root.camera.healthbar.gotoAndStop(13 - _global.health);
} else {
_root.camera.healthbar.gotoAndStop(_global.health + 1);
}
if (_global.mana <= 6) {
_root.camera.manabar.gotoAndStop(7 - _global.mana);
} else {
_root.camera.manabar.gotoAndStop(_global.mana + 1);
}
if ((_global.healthPacks == 0) && (nSelection == 1)) {
nSelection++;
}
if ((_global.heldGrenades == 0) && (nSelection == 2)) {
nSelection++;
}
if ((_global.manaPots == 0) && (nSelection == 3)) {
nSelection++;
}
if ((_global.heldCrossbows == 0) && (nSelection == 4)) {
nSelection++;
}
if ((_global.heldCrosses == 0) && (nSelection == 5)) {
nSelection++;
}
if (nSelection > 5) {
if (_global.healthPacks > 0) {
nSelection = 1;
} else if (_global.heldGrenades > 0) {
nSelection = 2;
} else if (_global.manaPots > 0) {
nSelection = 3;
} else if (_global.heldCrossbows > 0) {
nSelection = 4;
} else if (_global.heldCrosses > 0) {
nSelection = 5;
} else {
nSelection = 0;
}
}
if (((((_global.healthPacks == 0) && (_global.heldGrenades == 0)) && (_global.manaPots == 0)) && (_global.heldCrossbows == 0)) && (_global.heldCrosses == 0)) {
nSelection = 0;
}
if (nSelection == 0) {
if (_global.healthPacks > 0) {
nSelection = 1;
} else if (_global.heldGrenades > 0) {
nSelection = 2;
} else if (_global.manaPots > 0) {
nSelection = 3;
} else if (_global.heldCrossbows > 0) {
nSelection = 4;
} else if (_global.heldCrosses > 0) {
nSelection = 5;
}
_root.camera.secondaryslot.gotoAndStop(1);
}
if (nSelection == 1) {
_root.camera.secondaryslot.gotoAndStop(2);
_root.camera.secondaryslot.healthpack.gotoAndStop(_global.healthPacks);
} else if (nSelection == 2) {
_root.camera.secondaryslot.gotoAndStop(3);
var _local32 = Math.floor(_global.heldGrenades / 10);
_root.camera.secondaryslot.slot.ones.gotoAndStop((_global.heldGrenades - (_local32 * 10)) + 1);
_root.camera.secondaryslot.slot.tens.gotoAndStop(_local32 + 1);
} else if (nSelection == 3) {
_root.camera.secondaryslot.gotoAndStop(4);
_root.camera.secondaryslot.manapots.gotoAndStop(_global.manaPots);
} else if (nSelection == 4) {
_root.camera.secondaryslot.gotoAndStop(5);
var _local32 = Math.floor(_global.heldCrossbows / 10);
_root.camera.secondaryslot.slot.ones.gotoAndStop((_global.heldCrossbows - (_local32 * 10)) + 1);
_root.camera.secondaryslot.slot.tens.gotoAndStop(_local32 + 1);
} else if (nSelection == 5) {
_root.camera.secondaryslot.gotoAndStop(6);
var _local32 = Math.floor(_global.heldCrosses / 10);
_root.camera.secondaryslot.slot.ones.gotoAndStop((_global.heldCrosses - (_local32 * 10)) + 1);
_root.camera.secondaryslot.slot.tens.gotoAndStop(_local32 + 1);
} else {
_root.camera.secondaryslot.gotoAndStop(1);
}
var _local7 = 0;
while (_local7 < itemsOnScreen) {
if ((((alice.collectbox.hitTest(_root["item" + _local7]) && (Key.isDown(68))) && (!bStopInput)) && (!bUsingMagic)) && (!bUsingMagic)) {
effectSound = new Sound(this);
effectSound.attachSound("Pickup");
effectSound.start();
if (_root["item" + _local7]._currentframe == 1) {
_global.healthPacks++;
if (_global.healthPacks > 9) {
_global.healthPacks = 9;
}
} else if (_root["item" + _local7]._currentframe == 2) {
_global.heldCrossbows = _global.heldCrossbows + 5;
if (_global.heldCrossbows > 99) {
_global.heldCrossbows = 99;
}
} else if (_root["item" + _local7]._currentframe == 3) {
_global.heldGrenades = _global.heldGrenades + 3;
if (_global.heldGrenades > 99) {
_global.heldGrenades = 99;
}
} else if (_root["item" + _local7]._currentframe == 4) {
_global.manaPots = _global.manaPots + 1;
if (_global.manaPots > 9) {
_global.manaPots = 9;
}
} else if (_root["item" + _local7]._currentframe == 5) {
_global.heldCrosses = _global.heldCrosses + 1;
if (_global.heldCrosses > 99) {
_global.heldCrosses = 99;
}
}
_root["item" + _local7].gotoAndStop(6);
}
_local7++;
}
var _local4 = 0;
while (_local4 < breakablesOnScreen) {
if (nCurrentLane == 1) {
if ((((alice.hitBox.hitTest(_root["break" + _local4].LhitBox) && (Key.isDown(68))) && (!bStopInput)) && (!bUsingMagic)) && (_root["break" + _local4]._currentframe == 1)) {
_root["break" + _local4].gotoAndStop("right");
_root.attachMovie("item", "item" + itemsOnScreen, -10000 + itemsOnScreen, _root["break" + _local4]);
_root["item" + itemsOnScreen].gotoAndStop(Math.floor(Math.random() * 5) + 1);
_root["item" + itemsOnScreen]._x = _root["break" + _local4]._x + 20;
_root["item" + itemsOnScreen]._y = _root["break" + _local4]._y + 110;
itemsOnScreen++;
} else if ((((alice.hitBox.hitTest(_root["break" + _local4].RhitBox) && (Key.isDown(68))) && (!bStopInput)) && (!bUsingMagic)) && (_root["break" + _local4]._currentframe == 1)) {
_root["break" + _local4].gotoAndStop("left");
_root.attachMovie("item", "item" + itemsOnScreen, -10000 + itemsOnScreen, _root["break" + _local4]);
_root["item" + itemsOnScreen].gotoAndStop(3);
_root["item" + itemsOnScreen]._x = _root["break" + _local4]._x - 200;
_root["item" + itemsOnScreen]._y = _root["break" + _local4]._y + 110;
itemsOnScreen++;
}
}
_local4++;
}
var _local5 = 0;
while (_local5 < (nGrenadesOnScreen + 1)) {
if (_root["nade" + _local5].wait._currentframe == 50) {
explodedNades++;
if (((startBossFight && (_root["nade" + _local5].hitTest(ed.hitbox))) && (ed.sState == "hurt")) && (_root["nade" + _local5]._currentframe == 1)) {
ed.hurt.gotoAndStop(2);
nBossDamage = nBossDamage + 8;
camera.bosslifebars.ed.bar._xscale = 100 - nBossDamage;
if (nBossDamage >= 100) {
if (ed.bFacingRight) {
ed.gotoAndStop("proneL");
}
if (ed.bFacingLeft) {
ed.gotoAndStop("proneR");
}
ed.sState = "prone";
ed.proneTimer = 90;
}
if ((Math.floor(Math.random() * 101) + 0) > 90) {
makeEnemy(-200, 439.05, 0, "vampirebat");
}
if ((Math.floor(Math.random() * 101) + 0) > 90) {
makeEnemy(800, 439.05, 0, "vampirebat");
}
this.removeMovieClip();
}
if (!_global.pyro) {
_root["nade" + _local5].gotoAndStop(2);
} else {
_root["nade" + _local5].gotoAndStop(3);
}
var _local14 = 0;
while (_local14 < enemiesOnScreen) {
if (_root["nade" + _local5].hitTest(_root["enum" + _local14].hitbumpR) || (_root["nade" + _local5].hitTest(_root["enum" + _local14].hitbumpL))) {
if ((_root["nade" + _local5].lane == _root["enum" + _local14].getCurrentLane()) && (_root["enum" + _local14].sState != "dead")) {
_root["enum" + _local14].hit(4, 1);
if (((_root["enum" + _local14].getType() != "slime") && (_root["enum" + _local14].getType() != "small slime")) && (_root["enum" + _local14].getType() != "tiny slime")) {
gib(_root["enum" + _local14]._x, _root["enum" + _local14]._y, _root["enum" + _local14].getCurrentLane(), 15 * _global.goreMultiplier);
}
nEnemiesKilled++;
if ((_root["enum" + _local14].getType() == "zombie") || (_root["enum" + _local14].getType() == "fat zombie")) {
_global.zombiesKilled++;
} else if (_root["enum" + _local14].getType() == "werewolf") {
_global.werewolvesKilled++;
} else if (_root["enum" + _local14].getType() == "vampire") {
_global.vampiresKilled++;
}
}
}
_local14++;
}
}
_local5++;
}
var _local14 = 0;
while (_local14 < enemiesOnScreen) {
if (bUsingCross) {
if (_root["enum" + _local14].sState != "dead") {
if (!_global.longCross) {
if (alice.explodebox.hitTest(_root["enum" + _local14].hitbumpR) || (alice.explodebox.hitTest(_root["enum" + _local14].hitbumpL))) {
_root["enum" + _local14].hit(4, 1);
if (((_root["enum" + _local14].getType() != "slime") && (_root["enum" + _local14].getType() != "small slime")) && (_root["enum" + _local14].getType() != "tiny slime")) {
gib(_root["enum" + _local14]._x, _root["enum" + _local14]._y, _root["enum" + _local14].getCurrentLane(), 15 * _global.goreMultiplier);
}
nEnemiesKilled++;
if ((_root["enum" + _local14].getType() == "zombie") || (_root["enum" + _local14].getType() == "fat zombie")) {
_global.zombiesKilled++;
} else if (_root["enum" + _local14].getType() == "werewolf") {
_global.werewolvesKilled++;
} else if (_root["enum" + _local14].getType() == "vampire") {
_global.vampiresKilled++;
}
}
} else if (_root["enum" + _local14].bEnteredScreen) {
_root["enum" + _local14].hit(4, 1);
if (((_root["enum" + _local14].getType() != "slime") && (_root["enum" + _local14].getType() != "small slime")) && (_root["enum" + _local14].getType() != "tiny slime")) {
gib(_root["enum" + _local14]._x, _root["enum" + _local14]._y, _root["enum" + _local14].getCurrentLane(), 15 * _global.goreMultiplier);
}
nEnemiesKilled++;
if ((_root["enum" + _local14].getType() == "zombie") || (_root["enum" + _local14].getType() == "fat zombie")) {
_global.zombiesKilled++;
} else if (_root["enum" + _local14].getType() == "werewolf") {
_global.werewolvesKilled++;
} else if (_root["enum" + _local14].getType() == "vampire") {
_global.vampiresKilled++;
}
}
}
}
var _local11;
var _local20;
var _local13;
if (bKenOnScreen) {
_local11 = _root.ken._x;
_local20 = _root.ken._y;
_local13 = _root.ken.lane;
} else {
_local11 = alice._x;
_local20 = alice._y;
_local13 = nCurrentLane;
}
_root["enum" + _local14].Update();
_root["enum" + _local14].Think(enemyDecisionValue(_root["enum" + _local14].aggressionValue, _local11 - _root["enum" + _local14]._x, nWeapNo, _root["enum" + _local14].sType, enemiesOnScreen, 0), _local13);
if (((((_root["enum" + _local14].Move(_local11, _local20, _local13) == true) && (!bBlocking)) && (!bHit)) && (!bDead)) && (nInvincible == 0)) {
if (!bKenOnScreen) {
if ((!bHitChance) && (!bUsingMagic)) {
if (nWeapNo == 1) {
alice.gotoAndStop("bhit");
}
if (nWeapNo == 2) {
alice.gotoAndStop("khit");
}
if (nWeapNo == 3) {
alice.gotoAndStop("shit");
}
} else {
myColor = new Color(alice);
myColor.setTransform({ra:60, rb:255, ga:100, gb:-255, ba:100, bb:-255, aa:100, ab:0});
tintTimer = setInterval(tintEnd, 150);
}
_global.health--;
if (bRiding) {
_root.dog.gotoAndStop(1);
bRiding = false;
nDogCount--;
if (alice._x < 320) {
_root.dog._x = alice._x + 120;
}
if (alice._x >= 320) {
_root.dog._x = alice._x - 120;
}
if (nCurrentLane == 1) {
_root.dog._y = 439.05;
} else if (nCurrentLane == 2) {
_root.dog._y = 494.05;
} else if (nCurrentLane == 3) {
_root.dog._y = 540.05;
}
}
if (_global.health == 0) {
alice.gotoAndStop("dead");
if (_global.lives == 1) {
backToMenu = true;
}
bDead = true;
nSpeed = 0;
bDontGetUp = true;
deadTimer = setInterval(deadEnd, 1300);
} else {
hitTimer = setInterval(hitEnd, 150);
}
bHit = true;
}
}
_root["enum" + _local14].setDepth(_local14);
while (((alice.hitBox.hitTest(_root["enum" + _local14].rightbumper) && (nCurrentLane == _root["enum" + _local14].getCurrentLane())) && (bFacingLeft)) && (_root["enum" + _local14].getState() != "dead")) {
alice._x++;
nSpeed = 0;
}
while (((alice.hitBox.hitTest(_root["enum" + _local14].leftbumper) && (nCurrentLane == _root["enum" + _local14].getCurrentLane())) && (bFacingRight)) && (_root["enum" + _local14].getState() != "dead")) {
alice._x--;
nSpeed = 0;
}
if (bHitChance) {
if (bRiding) {
if ((((alice.attackzone.hitTest(_root["enum" + _local14].hitbumpR) && (nCurrentLane == _root["enum" + _local14].getCurrentLane())) && (bFacingLeft)) && (_root["enum" + _local14].getState() != "dead")) || (((alice.attackzone.hitTest(_root["enum" + _local14].hitbumpL) && (nCurrentLane == _root["enum" + _local14].getCurrentLane())) && (bFacingRight)) && (_root["enum" + _local14].getState() != "dead"))) {
var _local9;
if (((_root["enum" + _local14].getType() == "vampire") || (_root["enum" + _local14].getType() == "small slime")) || (_root["enum" + _local14].getType() == "slime")) {
_local9 = _root["enum" + _local14].hit(4, nAttack);
} else {
_local9 = _root["enum" + _local14].hit(2, nAttack);
}
if (((_local9 == 0) && (_root["enum" + _local14].getType() != "slime")) && (_root["enum" + _local14].getType() != "small slime")) {
if (_root["enum" + _local14].getType() == "tiny slime") {
nEnemiesKilled++;
} else if (nWeapNo == 3) {
if (_root["enum" + _local14].getType() != "fat zombie") {
gib(_root["enum" + _local14]._x, _root["enum" + _local14]._y, _root["enum" + _local14].getCurrentLane(), 3 * _global.goreMultiplier);
if (_root["enum" + _local14].getType() != "vampire") {
blood(_root["enum" + _local14]._x, _root["enum" + _local14]._y, 30 * _global.goreMultiplier);
}
nEnemiesKilled++;
if ((_root["enum" + _local14].getType() == "zombie") || (_root["enum" + _local14].getType() == "fat zombie")) {
_global.zombiesKilled++;
} else if (_root["enum" + _local14].getType() == "werewolf") {
_global.werewolvesKilled++;
} else if (_root["enum" + _local14].getType() == "vampire") {
_global.vampiresKilled++;
}
}
} else {
gib(_root["enum" + _local14]._x, _root["enum" + _local14]._y, _root["enum" + _local14].getCurrentLane(), 6 * _global.goreMultiplier);
blood(_root["enum" + _local14]._x, _root["enum" + _local14]._y, 50 * _global.goreMultiplier);
nEnemiesKilled++;
if ((_root["enum" + _local14].getType() == "zombie") || (_root["enum" + _local14].getType() == "fat zombie")) {
_global.zombiesKilled++;
} else if (_root["enum" + _local14].getType() == "werewolf") {
_global.werewolvesKilled++;
} else if (_root["enum" + _local14].getType() == "vampire") {
_global.vampiresKilled++;
}
}
} else if (_local9 == 1) {
if (((_root["enum" + _local14].getType() == "slime") || (_root["enum" + _local14].getType() == "small slime")) || (_root["enum" + _local14].getType() == "tiny slime")) {
nEnemiesKilled++;
} else {
gib(_root["enum" + _local14]._x, _root["enum" + _local14]._y, _root["enum" + _local14].getCurrentLane(), 12 * _global.goreMultiplier);
blood(_root["enum" + _local14]._x, _root["enum" + _local14]._y, 80 * _global.goreMultiplier);
nEnemiesKilled++;
if ((_root["enum" + _local14].getType() == "zombie") || (_root["enum" + _local14].getType() == "fat zombie")) {
_global.zombiesKilled++;
} else if (_root["enum" + _local14].getType() == "werewolf") {
_global.werewolvesKilled++;
} else if (_root["enum" + _local14].getType() == "vampire") {
_global.vampiresKilled++;
}
}
} else if ((_local9 == 0) && (_root["enum" + _local14].getType() == "slime")) {
makeSmSlime(_root["enum" + _local14], -15, "smslime");
enemiesOnScreen++;
makeSmSlime(_root["enum" + _local14], 15, "smslime");
enemiesOnScreen++;
nEnemiesKilled++;
} else if ((_local9 == 0) && (_root["enum" + _local14].getType() == "small slime")) {
makeSmSlime(_root["enum" + _local14], -15, "smsmslime");
enemiesOnScreen++;
makeSmSlime(_root["enum" + _local14], 15, "smsmslime");
enemiesOnScreen++;
nEnemiesKilled++;
}
}
} else if ((((alice.hitBox.hitTest(_root["enum" + _local14].hitbumpR) && (nCurrentLane == _root["enum" + _local14].getCurrentLane())) && (bFacingLeft)) && (_root["enum" + _local14].getState() != "dead")) || (((alice.hitBox.hitTest(_root["enum" + _local14].hitbumpL) && (nCurrentLane == _root["enum" + _local14].getCurrentLane())) && (bFacingRight)) && (_root["enum" + _local14].getState() != "dead"))) {
var _local6;
var _local8 = false;
var _local15 = false;
if (nWeapNo == 1) {
if (_global.batDam1) {
_local6 = 15;
}
if (_global.batDam2) {
_local6 = 20;
} else {
_local6 = 10;
}
if ((_root["enum" + _local14].getType() == "slime") || (_root["enum" + _local14].getType() == "small slime")) {
if (_global.batCutSlimes) {
_local8 = true;
}
}
if (_global.batOneFat && (_root["enum" + _local14].getType() == "fat zombie")) {
_local8 = true;
}
} else if (nWeapNo == 2) {
if (_global.katDam1) {
_local6 = 15;
}
if (_global.katDam2) {
_local6 = 20;
} else {
_local6 = 10;
}
if (_global.katOneVamp && (_root["enum" + _local14].getType() == "vampire")) {
_local8 = true;
}
} else if (nWeapNo == 3) {
if (_global.stakeDam1) {
_local6 = 15;
}
if (_global.stakeDam2) {
_local6 = 20;
} else {
_local6 = 10;
}
if (_global.stakeOneWere && (_root["enum" + _local14].getType() == "werewolf")) {
_local8 = true;
}
if ((_root["enum" + _local14].getType() == "slime") || (_root["enum" + _local14].getType() == "small slime")) {
if (_global.stakeCutSlimes) {
_local15 = true;
}
}
if (_global.stakeOneVamp && (_root["enum" + _local14].getType() == "vampire")) {
_local15 = true;
}
}
if (!bGrounded) {
_local6 = _local6 * 2;
}
var _local9 = _root["enum" + _local14].hit(nWeapNo, nAttack, _local6, _local8, _local15);
if (((_local9 == 0) && (_root["enum" + _local14].getType() != "slime")) && (_root["enum" + _local14].getType() != "small slime")) {
if (_root["enum" + _local14].getType() == "tiny slime") {
nEnemiesKilled++;
} else if (nWeapNo == 3) {
if (_root["enum" + _local14].getType() != "fat zombie") {
gib(_root["enum" + _local14]._x, _root["enum" + _local14]._y, _root["enum" + _local14].getCurrentLane(), 3 * _global.goreMultiplier);
if (_root["enum" + _local14].getType() != "vampire") {
blood(_root["enum" + _local14]._x, _root["enum" + _local14]._y, 30 * _global.goreMultiplier);
} else if (_root["enum" + _local14].sForm == "bat") {
blood(_root["enum" + _local14]._x, _root["enum" + _local14]._y, 30 * _global.goreMultiplier);
}
nEnemiesKilled++;
if ((_root["enum" + _local14].getType() == "zombie") || (_root["enum" + _local14].getType() == "fat zombie")) {
_global.zombiesKilled++;
} else if (_root["enum" + _local14].getType() == "werewolf") {
_global.werewolvesKilled++;
} else if (_root["enum" + _local14].getType() == "vampire") {
_global.vampiresKilled++;
}
}
} else {
gib(_root["enum" + _local14]._x, _root["enum" + _local14]._y, _root["enum" + _local14].getCurrentLane(), 6 * _global.goreMultiplier);
blood(_root["enum" + _local14]._x, _root["enum" + _local14]._y, 50 * _global.goreMultiplier);
nEnemiesKilled++;
if ((_root["enum" + _local14].getType() == "zombie") || (_root["enum" + _local14].getType() == "fat zombie")) {
_global.zombiesKilled++;
} else if (_root["enum" + _local14].getType() == "werewolf") {
_global.werewolvesKilled++;
} else if (_root["enum" + _local14].getType() == "vampire") {
_global.vampiresKilled++;
}
}
} else if (_local9 == 1) {
if (((_root["enum" + _local14].getType() == "slime") || (_root["enum" + _local14].getType() == "small slime")) || (_root["enum" + _local14].getType() == "tiny slime")) {
nEnemiesKilled++;
} else {
gib(_root["enum" + _local14]._x, _root["enum" + _local14]._y, _root["enum" + _local14].getCurrentLane(), 12 * _global.goreMultiplier);
blood(_root["enum" + _local14]._x, _root["enum" + _local14]._y, 80 * _global.goreMultiplier);
nEnemiesKilled++;
if ((_root["enum" + _local14].getType() == "zombie") || (_root["enum" + _local14].getType() == "fat zombie")) {
_global.zombiesKilled++;
} else if (_root["enum" + _local14].getType() == "werewolf") {
_global.werewolvesKilled++;
} else if (_root["enum" + _local14].getType() == "vampire") {
_global.vampiresKilled++;
}
}
} else if ((_local9 == 0) && (_root["enum" + _local14].getType() == "slime")) {
makeSmSlime(_root["enum" + _local14], -15, "smslime");
enemiesOnScreen++;
makeSmSlime(_root["enum" + _local14], 15, "smslime");
enemiesOnScreen++;
nEnemiesKilled++;
} else if ((_local9 == 0) && (_root["enum" + _local14].getType() == "small slime")) {
makeSmSlime(_root["enum" + _local14], -15, "smsmslime");
enemiesOnScreen++;
makeSmSlime(_root["enum" + _local14], 15, "smsmslime");
enemiesOnScreen++;
nEnemiesKilled++;
}
if (!bDogAttack) {
bHitChance = false;
}
}
}
_local14++;
}
if (_global.gibsOnScreen >= 300) {
_global.gibsOnScreen = 0;
}
_local14 = 0;
while (_local14 < 361) {
if (alice.collectbox.hitTest(_root["particle_mc" + _local14])) {
_root["particle_mc" + _local14].removeMovieClip();
_global.heldGibs++;
nPickedUpGibs++;
}
_local14++;
}
if (nEnemiesKilled == enemiesOnScreen) {
if (nSpawnTime < nTime1) {
} else if (nSpawnTime < nTime2) {
nSpawnTime = nTime2 - 1;
} else if (nSpawnTime < nTime3) {
nSpawnTime = nTime3 - 1;
} else if (nSpawnTime < nTime4) {
nSpawnTime = nTime4 - 1;
} else if (nSpawnTime < nTime5) {
nSpawnTime = nTime5 - 1;
} else if ((nSpawnTime > nTime5) && (nTargetTime == 0)) {
nTargetTime = nSpawnTime + 90;
} else if (nSpawnTime >= nTargetTime) {
nTargetTime = 0;
enemiesOnScreen = 0;
if (nScreenNo != 7) {
bNextScreen = true;
_root.camera.topright.gotoAndStop(2);
}
}
}
if (bShopOnScreen) {
shopwindow.update();
if (bRiding && (!_global.mag4addon)) {
alice.gotoAndStop("dogidle");
} else if (bRiding && (_global.mag4addon)) {
alice.gotoAndStop("ndogidle");
} else {
alice.gotoAndStop("idle");
}
bStopInput = true;
}
if ((nCurrentLane == 1) && (alice.hitTest(sage))) {
if (((((Key.isDown(68) && (bGrounded)) && (!bStopInput)) && (!bUsingMagic)) && (!bJAttacking)) && (bNextScreen)) {
if ((speechCounter == 0) || (speechCounter == 2)) {
introMovie = true;
nSpeed = 0;
_root.attachMovie("speech", "speechbub", _root.getNextHighestDepth());
_root.speechbub._x = sage._x - 20;
_root.speechbub._y = sage._y;
var _local33 = _root.speechbub.speechbox._height;
_root.speechbub.message.autoSize = true;
_root.speechbub.message.text = speechList[speechCounter];
_root.speechbub.speechbox._height = _root.speechbub.message._height;
_root.speechbub.speechbox._y = _root.speechbub.speechbox._y - _root.speechbub.speechbox._height;
_root.speechbub.speechbox._y = _root.speechbub.speechbox._y + _local33;
_root.speechbub.message._y = _root.speechbub.speechbox._y;
speechTime = true;
nSpeechCountdown = 10;
speechCounter++;
} else if (speechCounter == 1) {
introMovie = true;
_root.attachMovie("speech", "speechbub", _root.getNextHighestDepth());
_root.speechbub._y = alice._y - 70;
if (bFacingRight) {
_root.speechbub._x = alice._x + 80;
_root.speechbub._xscale = -100;
_root.speechbub.message._xscale = -100;
_root.speechbub.message._x = _root.speechbub.message._x + _root.speechbub.message._width;
_root.speechbub.message._x = _root.speechbub.message._x - 5;
} else if (bFacingLeft) {
_root.speechbub._x = alice._x - 80;
_root.speechbub._xscale = 100;
_root.speechbub.message._xscale = 100;
}
var _local33 = _root.speechbub.speechbox._height;
_root.speechbub.message.autoSize = true;
_root.speechbub.message.text = speechList[speechCounter];
_root.speechbub.speechbox._height = _root.speechbub.message._height;
_root.speechbub.speechbox._y = _root.speechbub.speechbox._y - _root.speechbub.speechbox._height;
_root.speechbub.speechbox._y = _root.speechbub.speechbox._y + _local33;
_root.speechbub.message._y = _root.speechbub.speechbox._y;
speechTime = true;
nSpeechCountdown = 10;
speechCounter++;
} else {
bShopOnScreen = true;
camera.attachMovie("shop", "shopwindow", 104850);
camera.shopwindow.items.gotoAndStop(2);
camera.shopwindow._x = -300;
camera.shopwindow._y = -220;
}
}
}
if ((nCurrentLane == 1) && (alice.hitTest(_root.foreground.sign0))) {
if (((((Key.isDown(68) && (bGrounded)) && (!bStopInput)) && (!bUsingMagic)) && (!bJAttacking)) && (nSpeechCountdown == 0)) {
introMovie = true;
_root.foreground.attachMovie("speech", "speechbub", _root.foreground.getNextHighestDepth());
_root.foreground.speechbub._x = _root.foreground.sign0._x - 80;
_root.foreground.speechbub._y = _root.foreground.sign0._y;
var _local33 = _root.foreground.speechbub.speechbox._height;
_root.foreground.speechbub.message.autoSize = true;
_root.foreground.speechbub.message.text = "Enemies require different combinations of weapons to defeat.";
_root.foreground.speechbub.speechbox._height = _root.foreground.speechbub.message._height;
_root.foreground.speechbub.speechbox._y = _root.foreground.speechbub.speechbox._y - _root.foreground.speechbub.speechbox._height;
_root.foreground.speechbub.speechbox._y = _root.foreground.speechbub.speechbox._y + _local33;
_root.foreground.speechbub.message._y = _root.foreground.speechbub.speechbox._y;
speechTime = true;
nSpeechCountdown = 10;
}
}
if ((nCurrentLane == 1) && (alice.hitTest(_root.foreground.sign1))) {
if (((((Key.isDown(68) && (bGrounded)) && (!bStopInput)) && (!bUsingMagic)) && (!bJAttacking)) && (nSpeechCountdown == 0)) {
introMovie = true;
_root.foreground.attachMovie("speech", "speechbub", _root.foreground.getNextHighestDepth());
_root.foreground.speechbub._x = _root.foreground.sign1._x - 80;
_root.foreground.speechbub._y = _root.foreground.sign1._y;
var _local33 = _root.foreground.speechbub.speechbox._height;
_root.foreground.speechbub.message.autoSize = true;
_root.foreground.speechbub.message.text = "You can dash and change items/weapons when blocking.";
_root.foreground.speechbub.speechbox._height = _root.foreground.speechbub.message._height;
_root.foreground.speechbub.speechbox._y = _root.foreground.speechbub.speechbox._y - _root.foreground.speechbub.speechbox._height;
_root.foreground.speechbub.speechbox._y = _root.foreground.speechbub.speechbox._y + _local33;
_root.foreground.speechbub.message._y = _root.foreground.speechbub.speechbox._y;
speechTime = true;
nSpeechCountdown = 10;
}
}
if (startBossFight) {
ed.Update();
ed.setDepth(0);
var _local31;
if (!bKenOnScreen) {
_local31 = ed.attack(alice._x, alice._y, nCurrentLane, nBossDamage);
} else {
_local31 = ed.attack(ken._x, ken._y, ken.lane, nBossDamage);
}
if (_local31 == 1) {
throwBaseball();
} else if (_local31 == 2) {
throwGirl(1);
} else if (_local31 == 3) {
throwGirl(2);
} else if (_local31 == 4) {
throwGirl(3);
} else if (_local31 == 20) {
nBossDamage = 80;
camera.bosslifebars.ed.bar._xscale = 20;
}
if ((ed._currentframe == 21) || (ed._currentframe == 22)) {
startBossFight = false;
_local14 = 0;
while (_local14 < 1000) {
_root["enum" + _local14].hit(4, 1);
_local14++;
}
bNextScreen = true;
_root.camera.topright.gotoAndStop(2);
}
}
alice._y = alice._y + nGravity;
nGravity++;
if (((alice._x > 650) && (bNextScreen == true)) && (bGrounded)) {
bProgress = true;
bDoOnce = true;
}
if (nInvincible > 0) {
nInvincible--;
}
if (nItemCooldown > 0) {
nItemCooldown--;
}
if (nSelectionCooldown > 0) {
nSelectionCooldown--;
}
if (nUseMagicCooldown > 0) {
nUseMagicCooldown--;
}
if (nPauseTimer > 0) {
nPauseTimer--;
}
if (nSpeechCountdown > 0) {
nSpeechCountdown--;
}
if (alice._y > 650) {
alice._y = aResetPositions[0];
alice._x = aResetPositions[1];
}
if (this.camera.weapIcon.currentFrame != nWeapNo) {
this.camera.weapIcon.gotoAndStop(nWeapNo);
}
if (nWeapCooldown != 0) {
nWeapCooldown--;
}
switch (nCurrentLane) {
case 1 :
alice.swapDepths(1000);
while (_root.ground1.hitTest(alice._x, alice._y + 16, true) || (lane1.hitTest(alice._x, alice._y + 16, true))) {
if (bGrounded == false) {
bStopInput = true;
bGrounded = true;
if ((nWeapNo == 1) && (!bDead)) {
if (!bRiding) {
alice.gotoAndStop("land");
} else if (!_global.mag4addon) {
alice.gotoAndStop("dogidle");
} else {
alice.gotoAndStop("ndogidle");
}
landtimer = setInterval(landPause, 100);
}
if ((nWeapNo == 2) && (!bDead)) {
if (!bRiding) {
alice.gotoAndStop("kland");
} else if (!_global.mag4addon) {
alice.gotoAndStop("dogidle");
} else {
alice.gotoAndStop("ndogidle");
}
landtimer = setInterval(landPause, 100);
}
if ((nWeapNo == 3) && (!bDead)) {
if ((bJAttacking == true) && (!bRiding)) {
alice.gotoAndStop("stakejumpattack");
alice.sjumpattackMC.gotoAndStop("sAttackB");
smashtimer = setInterval(smashDown, 500 - _global.stakeSpe);
} else {
if (!bRiding) {
alice.gotoAndStop("sland");
} else if (!_global.mag4addon) {
alice.gotoAndStop("dogidle");
} else {
alice.gotoAndStop("ndogidle");
}
landtimer = setInterval(landPause, 100);
}
}
}
nGravity = 0;
alice._y--;
}
if ((alice._y >= 439) && (alice._y < 440)) {
alice._y = 439.05;
}
if ((alice._y > 439.05) && (bGrounded == true)) {
bStopInput = true;
bChangingLane = true;
nGravity = 0;
alice._y = alice._y - LANE_SPEED;
if (!bRiding) {
if ((nWeapNo == 1) && (!bHit)) {
alice.gotoAndStop("run");
}
if ((nWeapNo == 2) && (!bHit)) {
alice.gotoAndStop("krun");
}
if ((nWeapNo == 3) && (!bHit)) {
alice.gotoAndStop("srun");
}
} else if (!_global.mag4addon) {
alice.gotoAndStop("dogwalk");
} else {
alice.gotoAndStop("ndogwalk");
}
}
if (((alice._y <= 439.05) && (bGrounded == true)) && (bChangingLane)) {
bStopInput = false;
bChangingLane = false;
}
if (alice._y > 600) {
alice._y = 439.05;
bGrounded = true;
}
break;
case 2 :
alice.swapDepths(2000);
while (_root.ground2.hitTest(alice._x, alice._y + 16, true) || (lane2.hitTest(alice._x, alice._y + 16, true))) {
if (bGrounded == false) {
bStopInput = true;
bGrounded = true;
if ((nWeapNo == 1) && (!bDead)) {
if (!bRiding) {
alice.gotoAndStop("land");
} else if (!_global.mag4addon) {
alice.gotoAndStop("dogidle");
} else {
alice.gotoAndStop("ndogidle");
}
landtimer = setInterval(landPause, 100);
}
if ((nWeapNo == 2) && (!bDead)) {
if (!bRiding) {
alice.gotoAndStop("kland");
} else if (!_global.mag4addon) {
alice.gotoAndStop("dogidle");
} else {
alice.gotoAndStop("ndogidle");
}
landtimer = setInterval(landPause, 100);
}
if ((nWeapNo == 3) && (!bDead)) {
if ((bJAttacking == true) && (!bRiding)) {
alice.gotoAndStop("stakejumpattack");
alice.sjumpattackMC.gotoAndStop("sAttackB");
smashtimer = setInterval(smashDown, 500 - _global.stakeSpe);
} else {
if (!bRiding) {
alice.gotoAndStop("sland");
} else if (!_global.mag4addon) {
alice.gotoAndStop("dogidle");
} else {
alice.gotoAndStop("ndogidle");
}
landtimer = setInterval(landPause, 100);
}
}
}
nGravity = 0;
alice._y--;
}
if ((alice._y >= 494) && (alice._y < 495)) {
alice._y = 494.05;
}
if ((alice._y > 494.05) && (bGrounded == true)) {
bStopInput = true;
bChangingLane = true;
nGravity = 0;
alice._y = alice._y - LANE_SPEED;
if (!bRiding) {
if ((nWeapNo == 1) && (!bHit)) {
alice.gotoAndStop("run");
}
if ((nWeapNo == 2) && (!bHit)) {
alice.gotoAndStop("krun");
}
if ((nWeapNo == 3) && (!bHit)) {
alice.gotoAndStop("srun");
}
} else if (!_global.mag4addon) {
alice.gotoAndStop("dogwalk");
} else {
alice.gotoAndStop("ndogwalk");
}
}
if (((alice._y == 494.05) && (bGrounded == true)) && (bChangingLane)) {
bChangingLane = false;
bStopInput = false;
}
if (((alice._y < 494.05) && (bGrounded == true)) && (!bChangingLane)) {
bStopInput = true;
bChangingLane = true;
nGravity = 0;
alice._y = alice._y + LANE_SPEED;
if (!bRiding) {
if ((nWeapNo == 1) && (!bHit)) {
alice.gotoAndStop("run");
}
if ((nWeapNo == 2) && (!bHit)) {
alice.gotoAndStop("krun");
}
if ((nWeapNo == 3) && (!bHit)) {
alice.gotoAndStop("srun");
}
} else if (!_global.mag4addon) {
alice.gotoAndStop("dogwalk");
} else {
alice.gotoAndStop("ndogwalk");
}
}
break;
case 3 :
alice.swapDepths(3000);
while (_root.ground3.hitTest(alice._x, alice._y + 16, true) || (lane3.hitTest(alice._x, alice._y + 16, true))) {
if (bGrounded == false) {
bStopInput = true;
bGrounded = true;
if ((nWeapNo == 1) && (!bDead)) {
if (!bRiding) {
alice.gotoAndStop("land");
} else if (!_global.mag4addon) {
alice.gotoAndStop("dogidle");
} else {
alice.gotoAndStop("ndogidle");
}
landtimer = setInterval(landPause, 100);
}
if ((nWeapNo == 2) && (!bDead)) {
if (!bRiding) {
alice.gotoAndStop("kland");
} else if (!_global.mag4addon) {
alice.gotoAndStop("dogidle");
} else {
alice.gotoAndStop("ndogidle");
}
landtimer = setInterval(landPause, 100);
}
if ((nWeapNo == 3) && (!bDead)) {
if ((bJAttacking == true) && (!bRiding)) {
alice.gotoAndStop("stakejumpattack");
alice.sjumpattackMC.gotoAndStop("sAttackB");
smashtimer = setInterval(smashDown, 500 - _global.stakeSpe);
} else {
if (!bRiding) {
alice.gotoAndStop("sland");
} else if (!_global.mag4addon) {
alice.gotoAndStop("dogidle");
} else {
alice.gotoAndStop("ndogidle");
}
landtimer = setInterval(landPause, 100);
}
}
}
nGravity = 0;
alice._y--;
}
if ((alice._y >= 540) && (alice._y < 541)) {
alice._y = 540.05;
}
if (((alice._y < 540.05) && (bGrounded == true)) && (!bChangingLane)) {
bStopInput = true;
bChangingLane = true;
nGravity = 0;
alice._y = alice._y + LANE_SPEED;
if (!bRiding) {
if ((nWeapNo == 1) && (!bHit)) {
alice.gotoAndStop("run");
}
if ((nWeapNo == 2) && (!bHit)) {
alice.gotoAndStop("krun");
}
if ((nWeapNo == 3) && (!bHit)) {
alice.gotoAndStop("srun");
}
} else if (!_global.mag4addon) {
alice.gotoAndStop("dogwalk");
} else {
alice.gotoAndStop("ndogwalk");
}
}
if (((alice._y >= 540.05) && (bGrounded == true)) && (bChangingLane)) {
bStopInput = false;
bChangingLane = false;
}
break;
}
if ((_global.health == 0) && (!bDead)) {
alice.gotoAndStop("dead");
if (_global.lives == 1) {
backToMenu = true;
}
bDead = true;
nSpeed = 0;
bDontGetUp = true;
deadTimer = setInterval(deadEnd, 1300);
}
nSpeed = nSpeed * 0.88;
alice._x = alice._x + nSpeed;
if (alice._x < 10) {
alice._x = 10;
}
if ((alice._x > 640) && (!bNextScreen)) {
alice._x = 640;
}
if (((((Key.isDown(32) && (!bStopInput)) && (!bUsingMagic)) && (nWeapCooldown == 0)) && (!bDead)) && (!bRiding)) {
effectSound = new Sound(this);
effectSound.attachSound("WeaponChange");
effectSound.start();
nWeapNo++;
if (nWeapNo > 3) {
nWeapNo = 1;
}
if (!bGrounded) {
if (nWeapNo == 1) {
alice.gotoAndStop("jump");
}
if (nWeapNo == 2) {
alice.gotoAndStop("kjump");
}
if (nWeapNo == 3) {
alice.gotoAndStop("sjump");
}
}
nWeapCooldown = 6;
}
if (Key.isDown(27) && (nPauseTimer == 0)) {
bPaused = true;
nPauseTimer = 5;
}
if ((((Key.isDown(69) && (!bStopInput)) && (!bUsingMagic)) && (nSelectionCooldown == 0)) && (!bDead)) {
nSelection++;
if ((nSelection == 1) && (_global.healthPacks == 0)) {
nSelection++;
}
if ((nSelection == 2) && (_global.heldGrenades == 0)) {
nSelection++;
}
if ((nSelection == 3) && (_global.manaPots == 0)) {
nSelection++;
}
if ((nSelection == 4) && (_global.heldCrossbows == 0)) {
nSelection++;
}
if ((nSelection == 5) && (_global.heldCrosses == 0)) {
nSelection++;
}
if (((((_global.heldGrenades == 0) && (_global.healthPacks == 0)) && (_global.manaPots == 0)) && (_global.heldCrossbows == 0)) && (_global.heldCrosses == 0)) {
nSelection = 0;
}
if (nSelection > 5) {
nSelection = 1;
}
nSelectionCooldown = 10;
}
bBlocking = false;
if ((((Key.isDown(65) && (!bStopInput)) && (!bUsingMagic)) && (!bDead)) && (!bRiding)) {
bBlocking = true;
if (nBlockDashTimer > 0) {
nBlockDashTimer--;
}
if (nBlockDashRecharge > 0) {
nBlockDashRecharge--;
}
if (nBlockDashChance > 0) {
nBlockDashChance--;
}
if (nBlockDashTimer == 0) {
if (nWeapNo == 1) {
alice.gotoAndStop("block");
}
if (nWeapNo == 2) {
alice.gotoAndStop("kblock");
}
if (nWeapNo == 3) {
alice.gotoAndStop("sblock");
}
nSpeed = 0;
}
bKeyListener.onKeyUp = function () {
if ((Key.getCode() == 39) && (nBlockDashChance == 0)) {
nBlockDashChance = 10;
}
if ((Key.getCode() == 37) && (nBlockDashChance == 0)) {
nBlockDashChance = 10;
}
};
if ((((Key.isDown(37) && (nBlockDashTimer == 0)) && (nBlockDashRecharge == 0)) && (nBlockDashChance > 0)) && (!bDead)) {
if (nWeapNo == 1) {
alice.gotoAndStop("bblockdash");
}
if (nWeapNo == 2) {
alice.gotoAndStop("kblockdash");
}
if (nWeapNo == 3) {
alice.gotoAndStop("sblockdash");
}
nSpeed = -40;
nBlockDashTimer = 5;
nBlockDashRecharge = 25;
alice._xscale = -100;
bFacingLeft = false;
bFacingRight = true;
}
if ((((Key.isDown(39) && (nBlockDashTimer == 0)) && (nBlockDashRecharge == 0)) && (nBlockDashChance > 0)) && (!bDead)) {
if (nWeapNo == 1) {
alice.gotoAndStop("bblockdash");
}
if (nWeapNo == 2) {
alice.gotoAndStop("kblockdash");
}
if (nWeapNo == 3) {
alice.gotoAndStop("sblockdash");
}
nSpeed = 40;
nBlockDashTimer = 5;
nBlockDashRecharge = 25;
alice._xscale = 100;
bFacingLeft = true;
bFacingRight = false;
}
} else {
if (((Key.isDown(37) && (!bStopInput)) && (!bUsingMagic)) && (!bDead)) {
if (nSpeed > 0) {
nDashCooldown = 20;
}
if (nDashCooldown > 0) {
nDashCooldown--;
}
if (nSpeed >= (-nMaxmove)) {
nSpeed--;
}
if ((nSpeed < (-nMaxmove)) && (nDashChance == 0)) {
nSpeed = -nMaxmove;
}
alice._xscale = 100;
bFacingLeft = true;
bFacingRight = false;
if (bGrounded == true) {
if (!bRiding) {
if ((nWeapNo == 1) && (!bHit)) {
alice.gotoAndStop("run");
}
if ((nWeapNo == 2) && (!bHit)) {
alice.gotoAndStop("krun");
}
if ((nWeapNo == 3) && (!bHit)) {
alice.gotoAndStop("srun");
}
} else if (!_global.mag4addon) {
alice.gotoAndStop("dogwalk");
} else {
alice.gotoAndStop("ndogwalk");
}
}
if ((nDashChance != 0) && (nDashCooldown == 0)) {
if (((nWeapNo == 1) && (!bHit)) && (!bRiding)) {
alice.gotoAndStop("dashbat");
}
if (((nWeapNo == 2) && (!bHit)) && (!bRiding)) {
alice.gotoAndStop("dashkat");
}
if (((nWeapNo == 3) && (!bHit)) && (!bRiding)) {
alice.gotoAndStop("dashstake");
}
nSpeed = -35;
nDashChance--;
if (nDashChance == 0) {
nDashCooldown = 10;
}
}
if ((nDashChance != 0) && (nDashCooldown != 0)) {
nDashChance = 0;
}
} else if (((Key.isDown(39) && (!bStopInput)) && (!bUsingMagic)) && (!bDead)) {
if (nSpeed < 0) {
nDashCooldown = 20;
}
if (nDashCooldown > 0) {
nDashCooldown--;
}
if (nSpeed <= nMaxmove) {
nSpeed++;
}
if ((nSpeed > nMaxmove) && (nDashChance == 0)) {
nSpeed = nMaxmove;
}
alice._xscale = -100;
bFacingLeft = false;
bFacingRight = true;
if (bGrounded == true) {
if (!bRiding) {
if ((nWeapNo == 1) && (!bHit)) {
alice.gotoAndStop("run");
}
if ((nWeapNo == 2) && (!bHit)) {
alice.gotoAndStop("krun");
}
if ((nWeapNo == 3) && (!bHit)) {
alice.gotoAndStop("srun");
}
} else if (!_global.mag4addon) {
alice.gotoAndStop("dogwalk");
} else {
alice.gotoAndStop("ndogwalk");
}
}
if ((nDashChance != 0) && (nDashCooldown == 0)) {
if (((nWeapNo == 1) && (!bHit)) && (!bRiding)) {
alice.gotoAndStop("dashbat");
}
if (((nWeapNo == 2) && (!bHit)) && (!bRiding)) {
alice.gotoAndStop("dashkat");
}
if (((nWeapNo == 3) && (!bHit)) && (!bRiding)) {
alice.gotoAndStop("dashstake");
}
nSpeed = 35;
nDashChance--;
if (nDashChance == 0) {
nDashCooldown = 20;
}
}
if ((nDashChance != 0) && (nDashCooldown != 0)) {
nDashChance = 0;
}
} else if (((nSpeed < 1) && (nSpeed > -1)) && (!bDead)) {
nSpeed = 0;
nDashChance = 0;
nDashCooldown = 20;
if ((bGrounded && (!bStopInput)) && (!bUsingMagic)) {
if (!bRiding) {
if ((nWeapNo == 1) && (!bHit)) {
alice.gotoAndStop("idle");
}
if ((nWeapNo == 2) && (!bHit)) {
alice.gotoAndStop("kidle");
}
if ((nWeapNo == 3) && (!bHit)) {
alice.gotoAndStop("sidle");
}
} else if (!_global.mag4addon) {
alice.gotoAndStop("dogidle");
} else {
alice.gotoAndStop("ndogidle");
}
}
}
if (((((Key.isDown(83) && (bGrounded == true)) && (!bStopInput)) && (!bUsingMagic)) && (nGravity == 0)) && (!bDead)) {
nGravity = -14;
bGrounded = false;
if (!bRiding) {
if ((nWeapNo == 1) && (!bHit)) {
alice.gotoAndStop("jump");
}
if ((nWeapNo == 2) && (!bHit)) {
alice.gotoAndStop("kjump");
}
if ((nWeapNo == 3) && (!bHit)) {
alice.gotoAndStop("sjump");
}
} else if (!_global.mag4addon) {
alice.gotoAndStop("dogjump");
} else {
alice.gotoAndStop("ndogjump");
}
}
if (((Key.isDown(68) && (bDead)) && (_global.lives > 0)) && (!bDontGetUp)) {
effectSound = new Sound(this);
effectSound.attachSound("Respawn");
effectSound.start();
bDead = false;
bStopInput = false;
nInvincible = 50;
_global.health = _global.maxHealth;
_global.lives--;
}
if ((((((Key.isDown(68) && (!bGrounded)) && (!bStopInput)) && (!bUsingMagic)) && (!bJAttacking)) && (!bDead)) && (!bRiding)) {
if (nWeapNo == 1) {
alice.gotoAndStop("batjumpattack");
bJAttacking = true;
bHitChance = true;
}
if (nWeapNo == 2) {
alice.gotoAndStop("katjumpattack");
bJAttacking = true;
bHitChance = true;
}
if (nWeapNo == 3) {
if (nGravity > 0) {
alice.gotoAndStop("stakejumpattack");
alice.sjumpattackMC.gotoAndStop("sAttackA");
nSpeed = 0;
if (nGravity < 12) {
nGravity = 12;
}
bJAttacking = true;
bHitChance = true;
}
}
}
if (((((Key.isDown(68) && (bGrounded == true)) && (!bStopInput)) && (!bUsingMagic)) && (!bAttacking)) && (!bDead)) {
if ((startBossFight && (alice.hitBox.hitTest(ed.hitbox))) && (ed.sState == "prone")) {
if (nWeapNo == 3) {
if (ed.bFacingRight) {
ed.gotoAndStop("deathL");
} else if (ed.bFacingLeft) {
ed.gotoAndStop("deathR");
}
ed.sState = "dead";
}
}
if ((startBossFight && (alice.hitBox.hitTest(ed.hitbox))) && (ed.sState == "hurt")) {
ed.hurt.gotoAndStop(2);
if (!bRiding) {
if (nWeapNo == 1) {
if (_global.batDam2) {
nBossDamage = nBossDamage + 3;
} else if (_global.batDam1) {
nBossDamage = nBossDamage + 2;
} else {
nBossDamage++;
}
}
if (nWeapNo == 2) {
if (_global.katDam2) {
nBossDamage = nBossDamage + 3;
} else if (_global.katDam1) {
nBossDamage = nBossDamage + 2;
} else {
nBossDamage++;
}
}
if (nWeapNo == 3) {
if (_global.stakeDam2) {
nBossDamage = nBossDamage + 3;
} else if (_global.stakeDam1) {
nBossDamage = nBossDamage + 2;
} else {
nBossDamage++;
}
}
}
if (bRiding) {
nBossDamage = nBossDamage + 10;
}
camera.bosslifebars.ed.bar._xscale = 100 - nBossDamage;
if (nBossDamage >= 100) {
if (ed.bFacingRight) {
ed.gotoAndStop("proneR");
} else if (ed.bFacingLeft) {
ed.gotoAndStop("proneL");
}
ed.sState = "prone";
ed.proneTimer = 90;
}
if ((Math.floor(Math.random() * 101) + 0) > 90) {
makeEnemy(-200, 439.05, 0, "vampirebat");
}
if ((Math.floor(Math.random() * 101) + 0) > 90) {
makeEnemy(800, 439.05, 0, "vampirebat");
}
}
if (bRiding) {
if (!_global.mag4addon) {
alice.gotoAndStop("dogattack");
} else {
alice.gotoAndStop("ndogattack");
blasttimer = setInterval(blaststart, 700);
}
bDogAttack = true;
dogAttackTimer = setInterval(dogAttackEnd, 1200);
} else if (nAttack == 0) {
if (nWeapNo == 1) {
alice.gotoAndStop("attackbat");
alice.attackBAT.gotoAndStop("batattackA");
bAttackAtimer = setInterval(batAttackAEnd, 500 - _global.batSpe);
}
if (nWeapNo == 2) {
alice.gotoAndStop("attackkat");
alice.attackKAT.gotoAndStop("katattackA");
kAttackAtimer = setInterval(katAttackAEnd, 400 - _global.katSpe);
}
if (nWeapNo == 3) {
alice.gotoAndStop("attackstake");
sAttacktimer = setInterval(stakeAttackEnd, 600 - _global.stakeSpe);
}
nAttack = 1;
} else if (nAttack == 1) {
if (nWeapNo == 1) {
alice.gotoAndStop("attackbat");
alice.attackBAT.gotoAndStop("batattackB");
bAttackBtimer = setInterval(batAttackBEnd, 300 - _global.batSpe);
}
if (nWeapNo == 2) {
alice.gotoAndStop("attackkat");
alice.attackKAT.gotoAndStop("katattackB");
kAttackBtimer = setInterval(katAttackBEnd, 400 - _global.katSpe);
}
if (nWeapNo == 3) {
alice.gotoAndStop("attackstake");
sAttacktimer = setInterval(stakeAttackEnd, 600 - _global.stakeSpe);
}
nAttack = 0;
}
bStopInput = true;
if ((nDashChance == 0) && (nDashCooldown != 0)) {
nSpeed = 0;
}
bAttacking = true;
bHitChance = true;
} else if (((((Key.isDown(68) && (bGrounded == true)) && (!bStopInput)) && (bUsingMagic)) && (nUseMagicCooldown == 0)) && (!bDead)) {
bUsingMagic = false;
nChargeAmount = 0;
bStopInput = true;
if (nWeapNo == 1) {
alice.gotoAndStop("batmagicuse");
magictimer = setInterval(usemagictime, 300);
}
if (nWeapNo == 2) {
alice.gotoAndStop("katmagicuse");
magictimer = setInterval(usemagictime, 300);
}
if (nWeapNo == 3) {
alice.gotoAndStop("stakemagicuse");
magictimer = setInterval(usemagictime, 300);
}
if (((_root.camera.manabar.charge._currentframe - 1) == 1) && (!bProgress)) {
nUseMagicCooldown = 30;
_global.mana = _global.mana - 1;
fireball();
nFireballs++;
}
if (((_root.camera.manabar.charge._currentframe - 1) == 2) && (!bProgress)) {
nUseMagicCooldown = 30;
_global.mana = _global.mana - 2;
darkbolt(false);
nBolts++;
if (_global.mag2addon) {
darkbolt(true);
nBolts++;
}
}
if ((((_root.camera.manabar.charge._currentframe - 1) == 3) && (!bProgress)) && (!bPupsOnScreen)) {
nUseMagicCooldown = 30;
_global.mana = _global.mana - 3;
var _local30;
if (_global.mag3addon) {
_local30 = 40;
} else {
_local30 = 20;
}
bPupsOnScreen = true;
var _local19 = 0;
while (_local19 < _local30) {
createPuppy(nPuppiesOnScreen, nGrenadesOnScreen);
nPuppiesOnScreen++;
nGrenadesOnScreen++;
_local19++;
}
}
if (((_root.camera.manabar.charge._currentframe - 1) == 4) && (!bProgress)) {
nUseMagicCooldown = 30;
_global.mana = _global.mana - 4;
createDog();
bDogOnScreen = true;
}
if (((_root.camera.manabar.charge._currentframe - 1) == 5) && (!bProgress)) {
nUseMagicCooldown = 30;
_global.mana = _global.mana - 5;
createKen();
bKenOnScreen = true;
}
}
oKeyListener.onKeyUp = function () {
if (Key.getCode() == 68) {
bAttacking = false;
}
if (((Key.getCode() == 39) && (nSpeed > 3)) && (nDashChance == 0)) {
nDashChance = 2;
}
if (((Key.getCode() == 37) && (nSpeed < -3)) && (nDashChance == 0)) {
nDashChance = 2;
}
};
if ((((Key.isDown(38) && (!bStopInput)) && (!bUsingMagic)) && (bGrounded)) && (!bDead)) {
if (nCurrentLane > 1) {
nCurrentLane--;
bStopInput = true;
}
}
if (((((Key.isDown(40) && (!bStopInput)) && (!bUsingMagic)) && (bGrounded)) && (!bDead)) && (alice._y > 439)) {
if (nCurrentLane < 3) {
nCurrentLane++;
bStopInput = true;
}
}
if (((Key.isDown(82) && (!bStopInput)) && (!bUsingMagic)) && (!bDead)) {
if (((_root.camera.secondaryslot._currentframe == 2) && (nItemCooldown == 0)) && (_global.health < _global.maxHealth)) {
nItemCooldown = 20;
_global.healthPacks--;
_global.health = _global.health + _global.healAmount;
if (_global.health > _global.maxHealth) {
_global.health = _global.maxHealth;
}
effectSound = new Sound(this);
effectSound.attachSound("healthPickup");
effectSound.start();
} else if ((((_root.camera.secondaryslot._currentframe == 3) && (nItemCooldown == 0)) && (!bNextScreen)) && (!bRiding)) {
nItemCooldown = 20;
_global.heldGrenades--;
nGrenadesOnScreen++;
throwGrenade(alice._x, alice._y, bFacingRight, nGrenadesOnScreen, nCurrentLane);
} else if (((_root.camera.secondaryslot._currentframe == 4) && (nItemCooldown == 0)) && (_global.mana < _global.maxMana)) {
nItemCooldown = 20;
_global.manaPots--;
_global.mana = _global.mana + _global.manaAmount;
if (_global.mana > _global.maxMana) {
_global.mana = _global.maxMana;
}
effectSound = new Sound(this);
effectSound.attachSound("manaUp");
effectSound.start();
} else if ((((_root.camera.secondaryslot._currentframe == 5) && (nItemCooldown == 0)) && (!bNextScreen)) && (!bRiding)) {
nItemCooldown = 20;
alice.gotoAndStop("crossbow");
bStopInput = true;
shootTimer = setInterval(shooting, 300);
_global.heldCrossbows--;
nCrossbowBolts++;
crossbowFire();
} else if ((((_root.camera.secondaryslot._currentframe == 6) && (nItemCooldown == 0)) && (!bNextScreen)) && (!bRiding)) {
nItemCooldown = 20;
bStopInput = true;
bUsingCross = true;
if (!_global.longCross) {
alice.gotoAndStop("crossshort");
crossTimer = setInterval(crossfunc, 600);
} else {
alice.gotoAndStop("cross");
crossTimer = setInterval(crossfunc, 1200);
}
_global.heldCrosses--;
}
}
}
};
Frame 8
function stopMoveAllMc(mc) {
mc.stopit = true;
for (var _local2 in mc) {
if (typeof(mc[_local2]) == "movieclip") {
mc[_local2].stopit = true;
stopMoveAllMc(mc[_local2]);
}
}
}
function startMoveAllMc(mc) {
mc.stopit = false;
for (var _local2 in mc) {
if (typeof(mc[_local2]) == "movieclip") {
mc[_local2].stopit = false;
startMoveAllMc(mc[_local2]);
}
}
}
function getAllMc(mc) {
for (var _local2 in mc) {
if (typeof(mc[_local2]) == "movieclip") {
mc[_local2].stop();
getAllMc(mc[_local2]);
}
}
}
function playAllMc(mc) {
for (var _local2 in mc) {
if (typeof(mc[_local2]) == "movieclip") {
mc[_local2].play();
playAllMc(mc[_local2]);
}
}
}
function startDistort() {
camera.gotoAndStop(3);
clearInterval(distortTimer);
}
function blaststart() {
puppyblast();
nPupblasts++;
clearInterval(blasttimer);
}
function landPause() {
bStopInput = false;
bJAttacking = false;
bHitChance = false;
clearInterval(landtimer);
}
function smashDown() {
bStopInput = false;
bJAttacking = false;
bHitChance = false;
clearInterval(smashtimer);
}
function batAttackAEnd() {
bStopInput = false;
bHitChance = false;
clearInterval(bAttackAtimer);
}
function dogAttackEnd() {
bStopInput = false;
bHitChance = false;
bDogAttack = false;
clearInterval(dogAttackTimer);
}
function batAttackBEnd() {
bStopInput = false;
bHitChance = false;
clearInterval(bAttackBtimer);
}
function katAttackAEnd() {
bStopInput = false;
bHitChance = false;
clearInterval(kAttackAtimer);
}
function katAttackBEnd() {
bStopInput = false;
bHitChance = false;
clearInterval(kAttackBtimer);
}
function shooting() {
bStopInput = false;
clearInterval(shootTimer);
}
function crossfunc() {
bStopInput = false;
bUsingCross = false;
clearInterval(crossTimer);
}
function stakeAttackEnd() {
bStopInput = false;
bHitChance = false;
clearInterval(sAttacktimer);
}
function hitEnd() {
bHit = false;
clearInterval(hitTimer);
}
function tintEnd() {
myColor.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0});
clearInterval(tintTimer);
}
function deadEnd() {
bDontGetUp = false;
bHit = false;
clearInterval(deadTimer);
}
function usemagictime() {
bStopInput = false;
clearInterval(magictimer);
}
function makeEnemy(x, y, xpush, type) {
var _local2 = "enum" + enemiesOnScreen;
_root.attachMovie(type, _local2, _root.getNextHighestDepth());
_root[_local2]._x = x + xpush;
_root[_local2]._y = y;
_root[_local2].longScreen = true;
if (enemy.getCurrentLane() == 1) {
_root[_local2].MakeLane1();
}
if (enemy.getCurrentLane() == 2) {
_root[_local2].MakeLane2();
}
if (enemy.getCurrentLane() == 3) {
_root[_local2].MakeLane3();
}
enemiesOnScreen++;
}
function makeSmSlime(enemy, xpush, type) {
var _local2 = "enum" + enemiesOnScreen;
_root.attachMovie(type, _local2, _root.getNextHighestDepth());
_root[_local2]._x = enemy._x + xpush;
_root[_local2]._y = enemy._y;
if (enemy.getCurrentLane() == 1) {
_root[_local2].MakeLane1();
}
if (enemy.getCurrentLane() == 2) {
_root[_local2].MakeLane2();
}
if (enemy.getCurrentLane() == 3) {
_root[_local2].MakeLane3();
}
}
function enemyDecisionValue(aggressionVal, proximityVal, weapNo, enemyType, enemiesOnScreen, bonusVal) {
var _local4 = Math.floor(Math.random() * 10) + 1;
var _local1 = aggressionVal;
if ((proximityVal > -40) && (proximityVal < 40)) {
_local1 = _local1 + 20;
}
if ((proximityVal > -100) && (proximityVal < 100)) {
_local1 = _local1 + 10;
}
if ((enemyType == "zombie") && (weapNo == 1)) {
_local1 = _local1 - 20;
}
if ((enemyType == "vamp") && (weapNo == 3)) {
_local1 = _local1 - 30;
}
if ((enemyType == "slime") && (weapNo == 2)) {
_local1 = _local1 - 20;
}
if ((enemyType == "smslime") && (weapNo == 2)) {
_local1 = _local1 - 20;
}
if (enemiesOnScreen > 8) {
_local1 = _local1 - 10;
} else if (enemiesOnScreen < 5) {
_local1 = _local1 + 30;
} else if (enemiesOnScreen == 1) {
_local1 = _local1 - 20;
}
if ((Math.floor(Math.random() * 2) + 1) == 1) {
_local1 = _local1 - _local4;
} else {
_local1 = _local1 + _local4;
}
_local1 = _local1 + bonusVal;
if (_local1 > 100) {
_local1 = 100;
}
if (_local1 < 0) {
_local1 = 0;
}
return(_local1);
}
function blood(targetX, targetY, blood) {
if (blood > 200) {
blood = 200;
}
if ((_global.gibsOnScreen - nPickedUpGibs) < 300) {
var _local7 = 0;
while (_local7 < blood) {
var _local6 = flash.display.BitmapData.loadBitmap("blood");
var _local4 = _root.createEmptyMovieClip("main_holder", _root.getNextHighestDepth());
var _local5 = _local4.createEmptyMovieClip("internal_holder", _local4.getNextHighestDepth());
_local5._x = (-_local6.width) / 2;
_local5._y = (-_local6.height) / 2;
_local5.attachBitmap(_local6, _local5.getNextHighestDepth(), "never");
_local4._x = targetX;
_local4._y = targetY - 30;
_local4._rotation = random(360);
_local4._alpha = random(30) + 70;
_local4.boundyLeft = targetX - 100;
_local4.boundyTop = targetY - 100;
_local4.boundyRight = targetX + 100;
_local4.boundyBottom = targetY + 30;
_local4.speedX = Math.random(5) - Math.random(5);
_local4.speedY = Math.random(5) - Math.random(5);
_local4.speedX = _local4.speedX * 5;
_local4.speedY = _local4.speedY * 5;
_local4.stopit = false;
numberOfParticles++;
_local4.onEnterFrame = function () {
if (!this.stopit) {
this._x = this._x + this.speedX;
this._y = this._y + this.speedY;
if (this.speedY < 5) {
this.speedY = this.speedY + 0.3;
}
if (((((this._alpha <= 0) || (this._x < this.boundyLeft)) || (this._x > this.boundyRight)) || (this._y < this.boundyTop)) || (this._y > this.boundyBottom)) {
this.removeMovieClip();
numberOfParticles--;
}
}
};
_local7++;
}
}
}
function arcShootMissile(targetX) {
if (nMissiles > 200) {
nMissiles = 0;
}
var _local6;
var _local5 = 0;
while (_local5 < 5) {
if (_local5 == 0) {
_local6 = 310;
}
if (_local5 == 1) {
_local6 = 335;
}
if (_local5 == 2) {
_local6 = 0;
}
if (_local5 == 3) {
_local6 = 25;
}
if (_local5 == 4) {
_local6 = 50;
}
var _local4 = "missile" + nMissiles;
_root.attachMovie("missile", _local4, 7000 + nMissiles);
_root[_local4]._x = targetX;
_root[_local4]._y = fidencio._y - 20;
_root[_local4].goRight = false;
_root[_local4].lane = fidencio.nCurrentLane;
_root[_local4]._rotation = _local6;
_root[_local4].velocity = 5;
if (fidencio.bFacingRight == true) {
_root[_local4]._xscale = -100;
_root[_local4].velocity = -5;
_root[_local4].goRight = true;
_root[_local4]._rotation = _local6 * -1;
}
_root[_local4].xVelocity = calcX(_root[_local4]._rotation, _root[_local4].velocity);
_root[_local4].yVelocity = calcY(_root[_local4]._rotation, -_root[_local4].velocity);
nMissiles++;
_root[_local4].stopit = false;
_root[_local4].onEnterFrame = function () {
if (!this.stopit) {
if ((this._x > 680) || (this._x < -250)) {
this.removeMovieClip();
}
if (this._currentframe == 1) {
if (!this.goRight) {
if (this.xVelocity > 0) {
this.xVelocity = -this.xVelocity;
}
this._x = this._x + this.xVelocity;
this._y = this._y + this.yVelocity;
}
}
if (this.hitTest(alice.hitBox)) {
this.gotoAndStop(2);
if (((((!bBlocking) && (!bHit)) && (!bDead)) && (nInvincible == 0)) && (!bStopInput)) {
if (nWeapNo == 1) {
alice.gotoAndStop("bhit");
}
if (nWeapNo == 2) {
alice.gotoAndStop("khit");
}
if (nWeapNo == 3) {
alice.gotoAndStop("shit");
}
_global.health--;
if (bRiding) {
_root.dog.gotoAndStop(1);
bRiding = false;
nDogCount--;
if (alice._x < 320) {
_root.dog._x = alice._x + 120;
}
if (alice._x >= 320) {
_root.dog._x = alice._x - 120;
}
if (nCurrentLane == 1) {
_root.dog._y = 439.05;
} else if (nCurrentLane == 2) {
_root.dog._y = 494.05;
} else if (nCurrentLane == 3) {
_root.dog._y = 540.05;
}
}
if (_global.health == 0) {
alice.gotoAndStop("dead");
if (_global.lives == 1) {
backToMenu = true;
}
bDead = true;
bDontGetUp = true;
deadTimer = setInterval(deadEnd, 1300);
} else {
hitTimer = setInterval(hitEnd, 150);
}
bHit = true;
}
}
}
};
_local5++;
}
}
function calcX(angle, velocity) {
return(Math.cos((angle * Math.PI) / 180) * velocity);
}
function calcY(angle, velocity) {
return(Math.sin((angle * Math.PI) / 180) * velocity);
}
function straightShootMissile(targetX) {
if (nMissiles > 200) {
nMissiles = 0;
}
var _local6;
var _local5 = 0;
while (_local5 < 4) {
_local6 = 20 * _local5;
var _local4 = "missile" + nMissiles;
_root.attachMovie("missile", _local4, 7000 + nMissiles);
_root[_local4]._x = targetX;
_root[_local4]._y = (fidencio._y + 20) - _local6;
_root[_local4].goRight = false;
_root[_local4].lane = fidencio.nCurrentLane;
if (fidencio.bFacingRight == true) {
_root[_local4]._xscale = -100;
_root[_local4].goRight = true;
}
nMissiles++;
_root[_local4].stopit = false;
_root[_local4].onEnterFrame = function () {
if (!this.stopit) {
if ((this._x > 680) || (this._x < -250)) {
this.removeMovieClip();
}
if (this._currentframe == 1) {
if (this.goRight == true) {
this._x = this._x + 15;
} else {
this._x = this._x - 15;
}
}
if (this.hitTest(alice.hitBox)) {
this.gotoAndStop(2);
if (((((!bBlocking) && (!bHit)) && (!bDead)) && (nInvincible == 0)) && (!bStopInput)) {
if (nWeapNo == 1) {
alice.gotoAndStop("bhit");
}
if (nWeapNo == 2) {
alice.gotoAndStop("khit");
}
if (nWeapNo == 3) {
alice.gotoAndStop("shit");
}
_global.health--;
if (bRiding) {
_root.dog.gotoAndStop(1);
bRiding = false;
nDogCount--;
if (alice._x < 320) {
_root.dog._x = alice._x + 120;
}
if (alice._x >= 320) {
_root.dog._x = alice._x - 120;
}
if (nCurrentLane == 1) {
_root.dog._y = 439.05;
} else if (nCurrentLane == 2) {
_root.dog._y = 494.05;
} else if (nCurrentLane == 3) {
_root.dog._y = 540.05;
}
}
if (_global.health == 0) {
alice.gotoAndStop("dead");
bDead = true;
bDontGetUp = true;
if (_global.lives == 1) {
backToMenu = true;
}
deadTimer = setInterval(deadEnd, 1300);
} else {
hitTimer = setInterval(hitEnd, 150);
}
bHit = true;
}
}
}
};
_local5++;
}
}
function throwGrenade(playerX, playerY, throwright, nadesOnScreen, targetLane) {
if (nadesOnScreen > 98) {
nadesOnScreen = 0;
}
var _local3 = "nade" + nadesOnScreen;
_root.attachMovie("grenade", _local3, -9000 + nadesOnScreen);
_root[_local3]._x = playerX;
_root[_local3]._y = playerY - 40;
if (throwright) {
_root[_local3].speedX = 3.5;
} else {
_root[_local3].speedX = -3.5;
}
_root[_local3].speedY = -3;
_root[_local3].speedX = _root[_local3].speedX * 2;
_root[_local3].speedY = _root[_local3].speedY * 2;
_root[_local3].YMax = 20;
_root[_local3].lane = targetLane;
_root[_local3].stopit = false;
_root[_local3].onEnterFrame = function () {
if (!this.stopit) {
if (_root["lane" + targetLane].hitTest(this._x, this._y + 20, true)) {
this.speedY = -this.speedY;
if (this.YMax > 1) {
this.YMax = this.YMax - 10;
}
if (this.YMax <= 1) {
this.speedY = 0;
}
if (this.speedX > 0) {
this.speedX = this.speedX - 1;
}
if (this.speedX < 0) {
this.speedX = this.speedX + 1;
}
if ((this.speedX > -2) && (this.speedX < 2)) {
this.speedX = 0;
}
}
this._x = this._x + this.speedX;
this._y = this._y + this.speedY;
if (this.speedY < this.YMax) {
this.speedY = this.speedY + 2;
}
}
};
}
function darkbolt(reverse) {
if (nBolts > 98) {
nBolts = 0;
}
effectSound = new Sound(this);
effectSound.attachSound("Bolt");
effectSound.start();
var _local5 = "darkbolt" + nBolts;
_root.attachMovie("darkbolt", _local5, (alice.getDepth() + 800) + nBolts);
_root[_local5]._x = alice._x;
_root[_local5]._y = alice._y - 40;
_root[_local5].goRight = false;
_root[_local5].lane = nCurrentLane;
if (!reverse) {
if (bFacingRight == true) {
_root[_local5]._xscale = -100;
_root[_local5].goRight = true;
}
} else if (bFacingLeft == true) {
_root[_local5]._xscale = -100;
_root[_local5].goRight = true;
}
_root[_local5].stopit = false;
_root[_local5].onEnterFrame = function () {
if (!this.stopit) {
if ((this._x > 680) || (this._x < -20)) {
this.removeMovieClip();
}
if (this.goRight == true) {
this._x = this._x + 10;
} else {
this._x = this._x - 10;
}
var _local4 = 0;
while (_local4 < enemiesOnScreen) {
if (_root["enum" + _local4].sState != "dead") {
if (this.hitbox.hitTest(_root["enum" + _local4].hitbumpR) || (this.hitbox.hitTest(_root["enum" + _local4].hitbumpL))) {
_root["enum" + _local4].hit(4, 1);
if (((_root["enum" + _local4].getType() != "slime") && (_root["enum" + _local4].getType() != "small slime")) && (_root["enum" + _local4].getType() != "tiny slime")) {
gib(_root["enum" + _local4]._x, _root["enum" + _local4]._y, _root["enum" + _local4].getCurrentLane(), 15 * _global.goreMultiplier);
}
nEnemiesKilled++;
if ((_root["enum" + _local4].getType() == "zombie") || (_root["enum" + _local4].getType() == "fat zombie")) {
_global.zombiesKilled++;
} else if (_root["enum" + _local4].getType() == "werewolf") {
_global.werewolvesKilled++;
} else if (_root["enum" + _local4].getType() == "vampire") {
_global.vampiresKilled++;
}
}
}
_local4++;
}
}
};
}
function crossbowFire() {
if (nCrossbowBolts > 98) {
nCrossbowBolts = 0;
}
var _local6 = "crossbowbolt" + nCrossbowBolts;
_root.attachMovie("crossbowbolt", _local6, (alice.getDepth() + 600) + nCrossbowBolts);
_root[_local6]._x = alice._x;
_root[_local6]._y = alice._y - 40;
_root[_local6].goRight = false;
_root[_local6].lane = nCurrentLane;
if (bFacingRight == true) {
_root[_local6]._xscale = -100;
_root[_local6].goRight = true;
}
_root[_local6].stopit = false;
_root[_local6].onEnterFrame = function () {
if (!this.stopit) {
if ((this._x > 680) || (this._x < -20)) {
this.removeMovieClip();
}
if (this.goRight == true) {
this._x = this._x + 15;
} else {
this._x = this._x - 15;
}
var _local4 = 0;
while (_local4 < enemiesOnScreen) {
if (_root["enum" + _local4].sState != "dead") {
if (this.hitTest(_root["enum" + _local4].hitbumpR) || (this.hitTest(_root["enum" + _local4].hitbumpL))) {
if (this.lane == _root["enum" + _local4].getCurrentLane()) {
if (_global.incendiary) {
var _local5 = _root["enum" + _local4].hit(4, 1);
} else if (_root["enum" + _local4].getType() == "werewolf") {
var _local5 = _root["enum" + _local4].hit(4, 1, _global.silver);
} else {
var _local5 = _root["enum" + _local4].hit(3, 1);
}
if (_local5 != 2) {
if (((_root["enum" + _local4].getType() != "slime") && (_root["enum" + _local4].getType() != "small slime")) && (_root["enum" + _local4].getType() != "tiny slime")) {
gib(_root["enum" + _local4]._x, _root["enum" + _local4]._y, _root["enum" + _local4].getCurrentLane(), 15 * _global.goreMultiplier);
blood(_root["enum" + _local4]._x, _root["enum" + _local4]._y, 30 * _global.goreMultiplier);
}
nEnemiesKilled++;
if ((_root["enum" + _local4].getType() == "zombie") || (_root["enum" + _local4].getType() == "fat zombie")) {
_global.zombiesKilled++;
} else if (_root["enum" + _local4].getType() == "werewolf") {
_global.werewolvesKilled++;
} else if (_root["enum" + _local4].getType() == "vampire") {
_global.vampiresKilled++;
}
}
if (!_global.sureShot) {
this.removeMovieClip();
}
}
}
}
_local4++;
}
}
};
}
function puppyblast() {
if (nPupblasts > 98) {
nPupblasts = 0;
}
var _local5 = "puppyblast" + nPupblasts;
_root.attachMovie("puppyblast", _local5, (alice.getDepth() + 900) + nPupblasts);
_root[_local5]._y = alice._y - 40;
_root[_local5]._x = alice._x + 60;
_root[_local5].goRight = true;
_root[_local5].lane = nCurrentLane;
if (bFacingRight == false) {
_root[_local5]._xscale = -100;
_root[_local5].goRight = false;
_root[_local5]._x = alice._x - 60;
}
_root[_local5].stopit = false;
_root[_local5].onEnterFrame = function () {
if (!this.stopit) {
if ((this._x > 680) || (this._x < -20)) {
this.removeMovieClip();
}
if (this.goRight == true) {
this._x = this._x + 10;
} else {
this._x = this._x - 10;
}
var _local4 = 0;
while (_local4 < enemiesOnScreen) {
if (_root["enum" + _local4].sState != "dead") {
if (this.hitTest(_root["enum" + _local4].hitbumpR) || (this.hitbox.hitTest(_root["enum" + _local4].hitbumpL))) {
if (this.lane == _root["enum" + _local4].getCurrentLane()) {
_root["enum" + _local4].hit(4, 1);
if (((_root["enum" + _local4].getType() != "slime") && (_root["enum" + _local4].getType() != "small slime")) && (_root["enum" + _local4].getType() != "tiny slime")) {
gib(_root["enum" + _local4]._x, _root["enum" + _local4]._y, _root["enum" + _local4].getCurrentLane(), 15 * _global.goreMultiplier);
}
nEnemiesKilled++;
if ((_root["enum" + _local4].getType() == "zombie") || (_root["enum" + _local4].getType() == "fat zombie")) {
_global.zombiesKilled++;
} else if (_root["enum" + _local4].getType() == "werewolf") {
_global.werewolvesKilled++;
} else if (_root["enum" + _local4].getType() == "vampire") {
_global.vampiresKilled++;
}
}
}
}
_local4++;
}
}
};
}
function fireball() {
if (nFireballs > 98) {
nFireballs = 0;
}
var _local5 = "fireball" + nFireballs;
if (!_global.mag1addon) {
_root.attachMovie("fireball", _local5, (alice.getDepth() + 700) + nFireballs);
effectSound = new Sound(this);
effectSound.attachSound("Explosion100");
effectSound.start();
} else {
_root.attachMovie("superfireball", _local5, (alice.getDepth() + 700) + nFireballs);
effectSound = new Sound(this);
effectSound.attachSound("BigExplosion");
effectSound.start();
}
_root[_local5]._x = alice._x;
_root[_local5]._y = alice._y - 40;
_root[_local5].goRight = false;
_root[_local5].lane = nCurrentLane;
if (bFacingRight == true) {
_root[_local5]._xscale = -100;
_root[_local5].goRight = true;
}
_root[_local5].stopit = false;
_root[_local5].onEnterFrame = function () {
if (!this.stopit) {
if ((this._x > 680) || (this._x < -20)) {
this.removeMovieClip();
}
if (this.goRight == true) {
this._x = this._x + 10;
} else {
this._x = this._x - 10;
}
var _local4 = 0;
while (_local4 < enemiesOnScreen) {
if (_root["enum" + _local4].sState != "dead") {
if (this.hitbox.hitTest(_root["enum" + _local4].hitbumpR) || (this.hitbox.hitTest(_root["enum" + _local4].hitbumpL))) {
if (this.lane == _root["enum" + _local4].getCurrentLane()) {
_root["enum" + _local4].hit(4, 1);
if (((_root["enum" + _local4].getType() != "slime") && (_root["enum" + _local4].getType() != "small slime")) && (_root["enum" + _local4].getType() != "tiny slime")) {
gib(_root["enum" + _local4]._x, _root["enum" + _local4]._y, _root["enum" + _local4].getCurrentLane(), 15 * _global.goreMultiplier);
}
nEnemiesKilled++;
if ((_root["enum" + _local4].getType() == "zombie") || (_root["enum" + _local4].getType() == "fat zombie")) {
_global.zombiesKilled++;
} else if (_root["enum" + _local4].getType() == "werewolf") {
_global.werewolvesKilled++;
} else if (_root["enum" + _local4].getType() == "vampire") {
_global.vampiresKilled++;
}
if (!_global.mag1addon) {
this.removeMovieClip();
}
}
}
}
_local4++;
}
}
};
}
function createDog() {
effectSound = new Sound(this);
effectSound.attachSound("Summon");
effectSound.start();
bDogOnScreen = true;
nDogCount = 3;
if (!_global.mag4addon) {
_root.attachMovie("dogmount", "dog", alice.getDepth() - 1);
} else {
_root.attachMovie("ndogmount", "dog", alice.getDepth() - 1);
nDogCount = 5;
}
_root.dog._x = alice._x;
if (nCurrentLane == 1) {
_root.dog._y = 439.05;
} else if (nCurrentLane == 2) {
_root.dog._y = 494.05;
} else if (nCurrentLane == 3) {
_root.dog._y = 540.05;
}
_root.dog.facingLeft = false;
_root.dog.timer = 0;
_root.dog.lane = nCurrentLane;
_root.dog.gotoAndStop(2);
_root.dog.onEnterFrame = function () {
if (this._currentframe == 3) {
this.swapDepths(alice.getDepth() - 1);
_root.dog.lane = nCurrentLane;
}
if (nDogCount == 0) {
this.gotoAndStop(4);
}
if ((this.hitbox.hitTest(alice) && (!bGrounded)) && (!bRiding)) {
var _local4;
if (nCurrentLane == 1) {
_local4 = 439.05;
} else if (nCurrentLane == 2) {
_local4 = 494.05;
} else if (nCurrentLane == 3) {
_local4 = 540.05;
}
if (((alice._y > (_local4 - 35)) && (nGravity > 6)) && (this.lane == nCurrentLane)) {
this.gotoAndStop(3);
if (!_global.mag4addon) {
alice.gotoAndStop("dogjump");
} else {
alice.gotoAndStop("ndogjump");
}
bRiding = true;
}
}
};
}
function createKen() {
bKenOnScreen = true;
_root.attachMovie("kenshiro", "ken", alice.getDepth() + 500);
_root.ken._x = alice._x;
if (nCurrentLane == 1) {
_root.ken._y = 439.05;
} else if (nCurrentLane == 2) {
_root.ken._y = 494.05;
} else if (nCurrentLane == 3) {
_root.ken._y = 540.05;
}
_root.ken.facingLeft = true;
_root.ken.timer = 0;
_root.ken.lane = nCurrentLane;
if (!_global.mag5addon) {
_root.ken.endTimer = 600;
} else {
_root.ken.endTimer = 1200;
}
_root.ken.stopit = false;
_root.ken.onEnterFrame = function () {
if (!this.stopit) {
this.timer++;
this.rest++;
if (this.timer >= this.endTimer) {
this.gotoAndStop(4);
}
if (this.timer >= (this.endTimer + 30)) {
bKenOnScreen = false;
this.removeMovieClip();
}
if (((this.rest >= 60) && (this._currentframe != 4)) && (this._currentframe != 1)) {
this.gotoAndStop(2);
}
var _local4 = 0;
while (_local4 < enemiesOnScreen) {
if ((_root["enum" + _local4].sState != "dead") && (this._currentframe != 4)) {
if (this.hitbox.hitTest(_root["enum" + _local4].hitbumpR) || (this.hitbox.hitTest(_root["enum" + _local4].hitbumpL))) {
if (_root["enum" + _local4]._x < this._x) {
this.facingLeft = true;
this._xscale = 100;
} else if (_root["enum" + _local4]._x > this._x) {
this.facingLeft = true;
this._xscale = -100;
}
if (this.lane == _root["enum" + _local4].getCurrentLane()) {
this.gotoAndStop(3);
this.rest = 0;
_root["enum" + _local4].hit(4, 1);
if (((_root["enum" + _local4].getType() != "slime") && (_root["enum" + _local4].getType() != "small slime")) && (_root["enum" + _local4].getType() != "tiny slime")) {
gib(_root["enum" + _local4]._x, _root["enum" + _local4]._y, _root["enum" + _local4].getCurrentLane(), 15 * _global.goreMultiplier);
}
nEnemiesKilled++;
if ((_root["enum" + _local4].getType() == "zombie") || (_root["enum" + _local4].getType() == "fat zombie")) {
_global.zombiesKilled++;
} else if (_root["enum" + _local4].getType() == "werewolf") {
_global.werewolvesKilled++;
} else if (_root["enum" + _local4].getType() == "vampire") {
_global.vampiresKilled++;
}
}
}
}
_local4++;
}
}
};
}
function createPuppy(puppiesOnScreen, nadesOnScreen) {
if (puppiesOnScreen >= 80) {
puppiesOnScreen = 0;
}
var _local3 = "puppy" + puppiesOnScreen;
_root.attachMovie("puppy", _local3, -8000 + puppiesOnScreen);
_root[_local3]._x = Math.round(Math.random() * 640);
if (_root[_local3]._x < 320) {
_root[_local3].facingRight = false;
_root[_local3]._xscale = -100;
_root[_local3].speedX = -6;
}
if (_root[_local3]._x >= 320) {
_root[_local3].facingRight = true;
_root[_local3]._xscale = 100;
_root[_local3].speedX = 6;
}
_root[_local3]._y = -40;
_root[_local3].lane = Math.round(Math.random() * 2) + 1;
_root[_local3].speedY = 10;
_root[_local3].countdown = Math.round(Math.random() * 240) + 10;
_root[_local3].placed = false;
_root[_local3].stopit = false;
_root[_local3].onEnterFrame = function () {
if (!this.stopit) {
if (this.countdown > 0) {
this.countdown--;
}
if (_root["lane" + this.lane].hitTest(this._x, this._y + 20, true)) {
if (!this.placed) {
this.gotoAndStop("place");
}
if (this.place._currentframe == 10) {
this.placed = true;
var _local3 = "nade" + nadesOnScreen;
_root.attachMovie("grenade", _local3, -9000 + nadesOnScreen);
_root[_local3]._x = this._x;
_root[_local3]._y = this._y;
_root[_local3].lane = this.lane;
}
if (this.placed) {
this.gotoAndStop("run");
this._x = this._x + this.speedX;
}
} else if (this.countdown == 0) {
this.gotoAndStop("fall");
this._y = this._y + this.speedY;
}
}
};
}
function createSlimeExplosion(targetX, targetY) {
var numberOfParticles = 0;
var _local10 = Math.floor(Math.random() * 4) + 0;
var _local9 = 0;
while (_local9 < _local10) {
var _local7 = flash.display.BitmapData.loadBitmap("blob3.png");
var _local3 = _root.createEmptyMovieClip("main_holder", _root.getNextHighestDepth());
var _local6 = _local3.createEmptyMovieClip("internal_holder", _local3.getNextHighestDepth());
_local6._x = (-_local7.width) / 2;
_local6._y = (-_local7.height) / 2;
_local6.attachBitmap(_local7, _local6.getNextHighestDepth(), "never");
_local3._x = targetX;
_local3._y = targetY;
_local3._rotation = random(360);
_local3.boundyLeft = targetX - 100;
_local3.boundyTop = targetY - 100;
_local3.boundyRight = targetX + 100;
_local3.boundyBottom = targetY + 100;
_local3.speedX = Math.random(5) - Math.random(5);
_local3.speedY = Math.random(5) - Math.random(5);
_local3.speedX = _local3.speedX * 5;
_local3.speedY = _local3.speedY * 5;
_local3.fadeSpeed = Math.random(5) * 5;
numberOfParticles++;
_local3.onEnterFrame = function () {
this._x = this._x + this.speedX;
this._y = this._y + this.speedY;
if (this.speedY < 5) {
this.speedY = this.speedY + 0.3;
}
if (this._y > 600) {
this.removeMovieClip();
numberOfParticles--;
}
};
_local9++;
}
if ((Math.floor(Math.random() * 101) + 0) > 90) {
makeEnemy(targetX, targetY, Math.floor(Math.random() * 21) + -10, "slime");
}
var _local12 = Math.floor(Math.random() * 7) + 2;
_local9 = 0;
while (_local9 < _local12) {
var _local7 = flash.display.BitmapData.loadBitmap("blob2.png");
var _local3 = _root.createEmptyMovieClip("main_holder", _root.getNextHighestDepth());
var _local6 = _local3.createEmptyMovieClip("internal_holder", _local3.getNextHighestDepth());
_local6._x = (-_local7.width) / 2;
_local6._y = (-_local7.height) / 2;
_local6.attachBitmap(_local7, _local6.getNextHighestDepth(), "never");
_local3._x = targetX;
_local3._y = targetY;
_local3._rotation = random(360);
_local3.boundyLeft = targetX - 100;
_local3.boundyTop = targetY - 100;
_local3.boundyRight = targetX + 100;
_local3.boundyBottom = targetY + 100;
_local3.speedX = Math.random(5) - Math.random(5);
_local3.speedY = Math.random(5) - Math.random(5);
_local3.speedX = _local3.speedX * 5;
_local3.speedY = _local3.speedY * 5;
_local3.fadeSpeed = Math.random(5) * 5;
numberOfParticles++;
_local3.onEnterFrame = function () {
this._x = this._x + this.speedX;
this._y = this._y + this.speedY;
if (this.speedY < 5) {
this.speedY = this.speedY + 0.3;
}
if (this._y > 600) {
this.removeMovieClip();
numberOfParticles--;
}
};
_local9++;
}
if ((Math.floor(Math.random() * 101) + 0) > 70) {
var _local11 = Math.floor(Math.random() * 3) + 0;
var _local8 = 0;
while (_local8 < _local11) {
makeEnemy(targetX, targetY, Math.floor(Math.random() * 21) + -10, "smslime");
_local8++;
}
}
var _local14 = Math.floor(Math.random() * 13) + 3;
_local9 = 0;
while (_local9 < _local14) {
var _local7 = flash.display.BitmapData.loadBitmap("blob1.png");
var _local3 = _root.createEmptyMovieClip("main_holder", _root.getNextHighestDepth());
var _local6 = _local3.createEmptyMovieClip("internal_holder", _local3.getNextHighestDepth());
_local6._x = (-_local7.width) / 2;
_local6._y = (-_local7.height) / 2;
_local6.attachBitmap(_local7, _local6.getNextHighestDepth(), "never");
_local3._x = targetX;
_local3._y = targetY;
_local3._rotation = random(360);
_local3.boundyLeft = targetX - 100;
_local3.boundyTop = targetY - 100;
_local3.boundyRight = targetX + 100;
_local3.boundyBottom = targetY + 100;
_local3.speedX = Math.random(5) - Math.random(5);
_local3.speedY = Math.random(5) - Math.random(5);
_local3.speedX = _local3.speedX * 5;
_local3.speedY = _local3.speedY * 5;
_local3.fadeSpeed = Math.random(5) * 5;
numberOfParticles++;
_local3.onEnterFrame = function () {
this._x = this._x + this.speedX;
this._y = this._y + this.speedY;
if (this.speedY < 5) {
this.speedY = this.speedY + 0.3;
}
if (this._y > 600) {
this.removeMovieClip();
numberOfParticles--;
}
};
_local9++;
}
if ((Math.floor(Math.random() * 101) + 0) > 50) {
var _local13 = Math.floor(Math.random() * 5) + 0;
var _local8 = 0;
while (_local8 < _local13) {
makeEnemy(targetX, targetY, Math.floor(Math.random() * 21) + -10, "smsmslime");
_local8++;
}
}
}
function gib(targetX, targetY, targetLane, gibs) {
var _local7 = gibs / 3;
var _local8 = _global.gibsOnScreen;
_global.gibsOnScreen = _global.gibsOnScreen + gibs;
if (_global.gibsOnScreen >= 300) {
_global.gibsOnScreen = 0;
}
var _local6 = _local8;
while (_local6 < (_local8 + _local7)) {
var _local10 = flash.display.BitmapData.loadBitmap("gib1");
_root["particle_mc" + _local6] = _root.createEmptyMovieClip("main_holder" + _local6, _local6);
_root["particle_mc" + _local6].attachBitmap(_local10, main_holder.getNextHighestDepth(), "never");
_root["particle_mc" + _local6]._x = targetX;
_root["particle_mc" + _local6]._y = targetY - 30;
_root["particle_mc" + _local6]._rotation = random(360);
_root["particle_mc" + _local6].speedX = Math.random(5) - Math.random(5);
_root["particle_mc" + _local6].speedY = Math.random(5) - Math.random(5);
_root["particle_mc" + _local6].speedX = _root["particle_mc" + _local6].speedX * 5;
_root["particle_mc" + _local6].speedY = _root["particle_mc" + _local6].speedY * 5;
_root["particle_mc" + _local6].YMax = 4;
_root["particle_mc" + _local6].stopit = false;
_root["particle_mc" + _local6].onEnterFrame = function () {
if (!this.stopit) {
if (_root["lane" + targetLane].hitTest(this._x, this._y + 10, true)) {
this.speedY = -this.speedY;
if (this.YMax > 1) {
this.YMax = this.YMax - 0.5;
}
if (this.YMax <= 1) {
this.speedY = 0;
}
if (this.speedX > 0) {
this.speedX = this.speedX - 0.3;
}
if (this.speedX < 0) {
this.speedX = this.speedX + 0.3;
}
if ((this.speedX > -0.5) && (this.speedX < 0.5)) {
this.speedX = 0;
}
}
if ((this._y + 10) > (_root["lane" + targetLane]._y + 20)) {
this._y = _root["lane" + targetLane]._y;
}
this._x = this._x + this.speedX;
this._y = this._y + this.speedY;
if ((this.speedY < this.YMax) && (this.YMax > 1)) {
this.speedY = this.speedY + 0.5;
}
}
};
_local6++;
}
var _local4 = _local8 + _local7;
while (_local4 < ((_local7 + _local7) + _local8)) {
var _local10 = flash.display.BitmapData.loadBitmap("gib2");
_root["particle_mc" + _local4] = _root.createEmptyMovieClip("main_holder" + _local4, _local4);
_root["particle_mc" + _local4].attachBitmap(_local10, main_holder.getNextHighestDepth(), "never");
_root["particle_mc" + _local4]._x = targetX;
_root["particle_mc" + _local4]._y = targetY - 30;
_root["particle_mc" + _local4]._rotation = random(360);
_root["particle_mc" + _local4].speedX = Math.random(5) - Math.random(5);
_root["particle_mc" + _local4].speedY = Math.random(5) - Math.random(5);
_root["particle_mc" + _local4].speedX = _root["particle_mc" + _local4].speedX * 5;
_root["particle_mc" + _local4].speedY = _root["particle_mc" + _local4].speedY * 5;
_root["particle_mc" + _local4].YMax = 4;
_root["particle_mc" + _local4].stopit = false;
_root["particle_mc" + _local4].onEnterFrame = function () {
if (!this.stopit) {
if (_root["lane" + targetLane].hitTest(this._x, this._y + 10, true)) {
this.speedY = -this.speedY;
if (this.YMax > 1) {
this.YMax = this.YMax - 0.5;
}
if (this.YMax <= 1) {
this.speedY = 0;
}
if (this.speedX > 0) {
this.speedX = this.speedX - 0.3;
}
if (this.speedX < 0) {
this.speedX = this.speedX + 0.3;
}
if ((this.speedX > -0.5) && (this.speedX < 0.5)) {
this.speedX = 0;
}
}
if ((this._y + 10) > (_root["lane" + targetLane]._y + 20)) {
this._y = _root["lane" + targetLane]._y;
}
this._x = this._x + this.speedX;
this._y = this._y + this.speedY;
if ((this.speedY < this.YMax) && (this.YMax > 1)) {
this.speedY = this.speedY + 0.5;
}
}
};
_local4++;
}
var _local5 = (_local7 * 2) + _local8;
if (_local5 < (((_local7 * 2) + _local7) + _local8)) {
var _local10 = flash.display.BitmapData.loadBitmap("gib3");
_root["particle_mc" + _local5] = _root.createEmptyMovieClip("main_holder" + _local5, _local5);
_root["particle_mc" + _local5].attachBitmap(_local10, main_holder.getNextHighestDepth(), "never");
_root["particle_mc" + _local5]._x = targetX;
_root["particle_mc" + _local5]._y = targetY - 30;
_root["particle_mc" + _local5]._rotation = random(360);
_root["particle_mc" + _local5].speedX = Math.random(5) - Math.random(5);
(_root["particle_mc" + _local5]);// not popped
(Math);// not popped
}
}
function traceSomething() {
trace("something");
trace("something");
trace("something");
}
stop();
stopAllSounds();
musicSound = new Sound(this);
musicSound.attachSound("wasteland");
musicSound.start(0, 999);
camera._x = 338.65;
camera._y = 305.25;
camera.gotoAndStop(1);
Mouse.hide();
startDrag (pointer, true);
var exitDistort = false;
var startDistortion = false;
var hitByBoss = false;
var bossHP = 100;
var backToMenu = false;
var bossFight = false;
var startBossFight = false;
var enemiesOnScreen = 0;
var itemsOnScreen = 1;
var breakablesOnScreen = 2;
var explodedNades = 0;
var nMissiles = 0;
var nBossDamage = 0;
var nBoss1Elec = 0;
var nTentacleCountdown = 120;
var nPauseTimer = 0;
var nPupsLeft = 0;
var nPickedUpGibs = 0;
var nChargeAmount = 0;
var nWeapCooldown = 0;
var nInvincible = 0;
var nWeapNo = 1;
var nSpeed = 0;
var nMaxmove = 15;
var nGravity = 0;
var nCurrentLane = 1;
var nAttack = 0;
var nCrossbowBolts = 0;
var nUseMagicCooldown = 0;
var nDashChance = 0;
var nBlockDashChance = 0;
var nDashCooldown = 0;
var nTargetTime = 0;
var nEnemiesKilled = 0;
var nMoved = 0;
var nItemCooldown = 0;
var nGrenadesOnScreen = 0;
var nPuppiesOnScreen = 0;
var nFireballs = 0;
var nSelection = 1;
var nSelectionCooldown = 0;
var nBlockDashTimer = 0;
var nBlockDashRecharge = 0;
var nSpawnTime = 0;
var nPupblasts = 0;
var nTime1 = 0;
var nTime2 = 0;
var nTime3 = 0;
var nTime4 = 0;
var nTime5 = 0;
var nTime6 = 0;
var nTime7 = 0;
var nScreenNo = 0;
var nBolts = 0;
var nDogCount = 0;
var bKenOnScreen = false;
var bPaused = false;
var bAttacking = false;
var bJAttacking = false;
var bGrounded = false;
var bUsingCross = false;
var bStopInput = false;
var bHit = false;
var bDead = false;
var bShopOnScreen = false;
var bBlocking = false;
var bFacingLeft = false;
var bFacingRight = true;
var bHitChance = false;
var bNextScreen = false;
var bProgress = false;
var bDoOnce = false;
var bKenOnScreen = false;
var bUsingMagic = false;
var bSetUpEnemies = true;
var bDontGetUp = false;
var bDogOnScreen = false;
var bRiding = false;
var bDogAttack = false;
var bPupsOnScreen = false;
var LANE_SPEED = 4;
var oKeyListener = new Object();
Key.addListener(oKeyListener);
var bKeyListener = new Object();
Key.addListener(bKeyListener);
var aKeyListener = new Object();
Key.addListener(aKeyListener);
var aResetPositions = new Array();
aResetPositions[0] = alice._y;
aResetPositions[1] = alice._x;
camera.swapDepths(9999);
border.swapDepths(10000);
blackout3.swapDepths(10001);
pointer.swapDepths(99999);
fader.swapDepths(10002);
alice.swapDepths(1000);
item0.gotoAndStop(1);
var time1 = new Array();
var time2 = new Array();
var time3 = new Array();
var time4 = new Array();
var time5 = new Array();
var time6 = new Array();
var time7 = new Array();
var spawnList = new Array(new Array(), new Array(), new Array(), new Array(), new Array(), new Array(), new Array(), new Array());
var enemyStruct;
spawnList[0][0] = (enemyStruct = new Object({className:"pZombie", leftOrRight:"right", spawnTime:1, pushX:Math.floor(Math.random() * 50) + 1}));
spawnList[0][1] = (enemyStruct = new Object({className:"gZombie", leftOrRight:"left", spawnTime:1, pushX:Math.floor(Math.random() * 50) + 1}));
spawnList[0][2] = (enemyStruct = new Object({className:"pZombie", leftOrRight:"left", spawnTime:1, pushX:Math.floor(Math.random() * 50) + 1}));
spawnList[0][3] = (enemyStruct = new Object({className:"bZombie", leftOrRight:"right", spawnTime:1, pushX:Math.floor(Math.random() * 50) + 1}));
spawnList[0][4] = (enemyStruct = new Object({className:"werewolf", leftOrRight:"right", spawnTime:2, pushX:Math.floor(Math.random() * 50) + 1}));
spawnList[0][5] = (enemyStruct = new Object({className:"gZombie", leftOrRight:"right", spawnTime:2, pushX:Math.floor(Math.random() * 50) + 1}));
spawnList[0][7] = (enemyStruct = new Object({className:"fatzombie", leftOrRight:"right", spawnTime:3, pushX:Math.floor(Math.random() * 50) + 1}));
spawnList[0][8] = (enemyStruct = new Object({className:"pZombie", leftOrRight:"left", spawnTime:3, pushX:Math.floor(Math.random() * 50) + 1}));
spawnList[0][9] = (enemyStruct = new Object({className:"gZombie", leftOrRight:"right", spawnTime:3, pushX:Math.floor(Math.random() * 50) + 1}));
spawnList[0][10] = (enemyStruct = new Object({className:"pZombie", leftOrRight:"right", spawnTime:3, pushX:Math.floor(Math.random() * 50) + 1}));
spawnList[0][11] = (enemyStruct = new Object({className:"bZombie", leftOrRight:"left", spawnTime:3, pushX:Math.floor(Math.random() * 50) + 1}));
spawnList[0][12] = (enemyStruct = new Object({className:"zombie", leftOrRight:"right", spawnTime:3, pushX:Math.floor(Math.random() * 50) + 1}));
spawnList[0][13] = (enemyStruct = new Object({className:"gZombie", leftOrRight:"right", spawnTime:3, pushX:Math.floor(Math.random() * 50) + 1}));
spawnList[0][14] = (enemyStruct = new Object({className:"fatzombie", leftOrRight:"right", spawnTime:3, pushX:Math.floor(Math.random() * 50) + 1}));
spawnList[0][15] = (enemyStruct = new Object({className:"BlueFatZombie", leftOrRight:"left", spawnTime:4, pushX:Math.floor(Math.random() * 50) + 1}));
spawnList[0][16] = (enemyStruct = new Object({className:"pZombie", leftOrRight:"right", spawnTime:4, pushX:Math.floor(Math.random() * 50) + 1}));
spawnList[0][17] = (enemyStruct = new Object({className:"pZombie", leftOrRight:"left", spawnTime:4, pushX:Math.floor(Math.random() * 50) + 1}));
spawnList[0][18] = (enemyStruct = new Object({className:"bZombie", leftOrRight:"left", spawnTime:5, pushX:Math.floor(Math.random() * 50) + 1}));
spawnList[0][19] = (enemyStruct = new Object({className:"zombie", leftOrRight:"left", spawnTime:5, pushX:Math.floor(Math.random() * 50) + 1}));
spawnList[0][20] = (enemyStruct = new Object({className:"gZombie", leftOrRight:"left", spawnTime:5, pushX:Math.floor(Math.random() * 50) + 1}));
spawnList[0][21] = (enemyStruct = new Object({className:"fatzombie", leftOrRight:"right", spawnTime:5, pushX:Math.floor(Math.random() * 50) + 1}));
spawnList[0][22] = (enemyStruct = new Object({className:"BlueFatZombie", leftOrRight:"left", spawnTime:6, pushX:Math.floor(Math.random() * 50) + 1}));
spawnList[0][23] = (enemyStruct = new Object({className:"BlueFatZombie", leftOrRight:"right", spawnTime:6, pushX:Math.floor(Math.random() * 50) + 1}));
spawnList[0][24] = (enemyStruct = new Object({className:"greywerewolf", leftOrRight:"left", spawnTime:7, pushX:Math.floor(Math.random() * 50) + 1}));
time1[0] = 60;
time2[0] = 600;
time3[0] = 900;
time4[0] = 1200;
time5[0] = 1500;
time6[0] = 1800;
time7[0] = 2100;
spawnList[1][1] = (enemyStruct = new Object({className:"bZombie", leftOrRight:"right", spawnTime:1, pushX:Math.floor(Math.random() * 50) + 1}));
spawnList[1][2] = (enemyStruct = new Object({className:"zombie", leftOrRight:"left", spawnTime:1, pushX:Math.floor(Math.random() * 50) + 1}));
spawnList[1][3] = (enemyStruct = new Object({className:"greywerewolf", leftOrRight:"right", spawnTime:1, pushX:Math.floor(Math.random() * 50) + 1}));
spawnList[1][4] = (enemyStruct = new Object({className:"zombie", leftOrRight:"left", spawnTime:1, pushX:Math.floor(Math.random() * 50) + 1}));
spawnList[1][5] = (enemyStruct = new Object({className:"vampirebat", leftOrRight:"right", spawnTime:1, pushX:Math.floor(Math.random() * 50) + 1}));
spawnList[1][6] = (enemyStruct = new Object({className:"vampire", leftOrRight:"right", spawnTime:2, pushX:20}));
spawnList[1][7] = (enemyStruct = new Object({className:"gZombie", leftOrRight:"left", spawnTime:2, pushX:30}));
spawnList[1][8] = (enemyStruct = new Object({className:"pZombie", leftOrRight:"right", spawnTime:2, pushX:50}));
spawnList[1][9] = (enemyStruct = new Object({className:"pZombie", leftOrRight:"left", spawnTime:2, pushX:30}));
spawnList[1][10] = (enemyStruct = new Object({className:"redvampire", leftOrRight:"left", spawnTime:3, pushX:40}));
spawnList[1][11] = (enemyStruct = new Object({className:"bluevampire", leftOrRight:"right", spawnTime:3, pushX:20}));
spawnList[1][12] = (enemyStruct = new Object({className:"vampire", leftOrRight:"left", spawnTime:4, pushX:50}));
spawnList[1][13] = (enemyStruct = new Object({className:"vampirebat", leftOrRight:"right", spawnTime:4, pushX:50}));
spawnList[1][14] = (enemyStruct = new Object({className:"BlueFatZombie", leftOrRight:"right", spawnTime:5, pushX:100}));
spawnList[1][15] = (enemyStruct = new Object({className:"zombie", leftOrRight:"right", spawnTime:5, pushX:20}));
spawnList[1][16] = (enemyStruct = new Object({className:"gZombie", leftOrRight:"left", spawnTime:5, pushX:30}));
spawnList[1][17] = (enemyStruct = new Object({className:"bZombie", leftOrRight:"right", spawnTime:5, pushX:50}));
spawnList[1][18] = (enemyStruct = new Object({className:"vampire", leftOrRight:"left", spawnTime:5, pushX:30}));
spawnList[1][19] = (enemyStruct = new Object({className:"zombie", leftOrRight:"left", spawnTime:6, pushX:50}));
spawnList[1][20] = (enemyStruct = new Object({className:"redvampire", leftOrRight:"right", spawnTime:6, pushX:50}));
spawnList[1][21] = (enemyStruct = new Object({className:"pZombie", leftOrRight:"right", spawnTime:6, pushX:100}));
spawnList[1][22] = (enemyStruct = new Object({className:"zombie", leftOrRight:"right", spawnTime:6, pushX:20}));
spawnList[1][23] = (enemyStruct = new Object({className:"gZombie", leftOrRight:"left", spawnTime:6, pushX:30}));
spawnList[1][24] = (enemyStruct = new Object({className:"bZombie", leftOrRight:"right", spawnTime:6, pushX:50}));
spawnList[1][25] = (enemyStruct = new Object({className:"bluevampire", leftOrRight:"left", spawnTime:7, pushX:30}));
time1[1] = 60;
time2[1] = 600;
time3[1] = 750;
time4[1] = 900;
time5[1] = 1200;
time6[1] = 1500;
time7[1] = 1800;
spawnList[2][0] = (enemyStruct = new Object({className:"BlueFatZombie", leftOrRight:"right", spawnTime:1, pushX:Math.floor(Math.random() * 50) + 1}));
spawnList[2][1] = (enemyStruct = new Object({className:"fatzombie", leftOrRight:"left", spawnTime:1, pushX:Math.floor(Math.random() * 50) + 1}));
spawnList[2][2] = (enemyStruct = new Object({className:"vampire", leftOrRight:"right", spawnTime:1, pushX:Math.floor(Math.random() * 50) + 1}));
spawnList[2][3] = (enemyStruct = new Object({className:"fatzombie", leftOrRight:"left", spawnTime:2, pushX:30}));
spawnList[2][4] = (enemyStruct = new Object({className:"fatzombie", leftOrRight:"right", spawnTime:2, pushX:50}));
spawnList[2][5] = (enemyStruct = new Object({className:"BlueFatZombie", leftOrRight:"left", spawnTime:2, pushX:30}));
spawnList[2][6] = (enemyStruct = new Object({className:"redvampire", leftOrRight:"left", spawnTime:3, pushX:40}));
spawnList[2][7] = (enemyStruct = new Object({className:"bluevampire", leftOrRight:"right", spawnTime:3, pushX:20}));
spawnList[2][8] = (enemyStruct = new Object({className:"vampire", leftOrRight:"left", spawnTime:3, pushX:50}));
spawnList[2][9] = (enemyStruct = new Object({className:"fatzombie", leftOrRight:"right", spawnTime:4, pushX:50}));
spawnList[2][10] = (enemyStruct = new Object({className:"BlueFatZombie", leftOrRight:"left", spawnTime:5, pushX:30}));
spawnList[2][11] = (enemyStruct = new Object({className:"redvampire", leftOrRight:"left", spawnTime:6, pushX:40}));
spawnList[2][12] = (enemyStruct = new Object({className:"bluevampire", leftOrRight:"right", spawnTime:6, pushX:20}));
spawnList[2][13] = (enemyStruct = new Object({className:"vampire", leftOrRight:"left", spawnTime:7, pushX:50}));
time1[2] = 60;
time2[2] = 600;
time3[2] = 900;
time4[2] = 1200;
time5[2] = 1500;
time6[2] = 1800;
time7[2] = 2100;
spawnList[3][0] = (enemyStruct = new Object({className:"slime", leftOrRight:"right", spawnTime:1, pushX:Math.floor(Math.random() * 50) + 1}));
spawnList[3][1] = (enemyStruct = new Object({className:"slime", leftOrRight:"left", spawnTime:1, pushX:20}));
spawnList[3][2] = (enemyStruct = new Object({className:"slime", leftOrRight:"right", spawnTime:2, pushX:30}));
spawnList[3][3] = (enemyStruct = new Object({className:"smslime", leftOrRight:"left", spawnTime:2, pushX:50}));
spawnList[3][4] = (enemyStruct = new Object({className:"smslime", leftOrRight:"right", spawnTime:2, pushX:20}));
spawnList[3][5] = (enemyStruct = new Object({className:"slime", leftOrRight:"left", spawnTime:3, pushX:30}));
spawnList[3][6] = (enemyStruct = new Object({className:"smslime", leftOrRight:"left", spawnTime:3, pushX:70}));
spawnList[3][7] = (enemyStruct = new Object({className:"slime", leftOrRight:"right", spawnTime:3, pushX:60}));
spawnList[3][8] = (enemyStruct = new Object({className:"slime", leftOrRight:"left", spawnTime:4, pushX:10}));
spawnList[3][9] = (enemyStruct = new Object({className:"smslime", leftOrRight:"right", spawnTime:4, pushX:20}));
spawnList[3][10] = (enemyStruct = new Object({className:"slime", leftOrRight:"left", spawnTime:4, pushX:30}));
spawnList[3][11] = (enemyStruct = new Object({className:"smslime", leftOrRight:"left", spawnTime:5, pushX:70}));
spawnList[3][12] = (enemyStruct = new Object({className:"slime", leftOrRight:"right", spawnTime:5, pushX:60}));
spawnList[3][13] = (enemyStruct = new Object({className:"slime", leftOrRight:"left", spawnTime:6, pushX:10}));
spawnList[3][4] = (enemyStruct = new Object({className:"smslime", leftOrRight:"right", spawnTime:6, pushX:20}));
spawnList[3][5] = (enemyStruct = new Object({className:"slime", leftOrRight:"left", spawnTime:7, pushX:30}));
time1[3] = 60;
time2[3] = 600;
time3[3] = 900;
time4[3] = 1200;
time5[3] = 1500;
time6[3] = 1800;
time7[3] = 2100;
spawnList[4][0] = (enemyStruct = new Object({className:"greywerewolf", leftOrRight:"right", spawnTime:1, pushX:Math.floor(Math.random() * 50) + 1}));
spawnList[4][1] = (enemyStruct = new Object({className:"werewolf", leftOrRight:"left", spawnTime:1, pushX:Math.floor(Math.random() * 50) + 1}));
spawnList[4][2] = (enemyStruct = new Object({className:"darkwerewolf", leftOrRight:"right", spawnTime:2, pushX:Math.floor(Math.random() * 50) + 1}));
spawnList[4][3] = (enemyStruct = new Object({className:"greywerewolf", leftOrRight:"left", spawnTime:3, pushX:Math.floor(Math.random() * 50) + 1}));
spawnList[4][4] = (enemyStruct = new Object({className:"darkwerewolf", leftOrRight:"right", spawnTime:4, pushX:Math.floor(Math.random() * 50) + 1}));
spawnList[4][5] = (enemyStruct = new Object({className:"greywerewolf", leftOrRight:"left", spawnTime:4, pushX:Math.floor(Math.random() * 50) + 1}));
spawnList[4][6] = (enemyStruct = new Object({className:"darkwerewolf", leftOrRight:"right", spawnTime:5, pushX:Math.floor(Math.random() * 50) + 1}));
spawnList[4][7] = (enemyStruct = new Object({className:"werewolf", leftOrRight:"left", spawnTime:6, pushX:Math.floor(Math.random() * 50) + 1}));
spawnList[4][8] = (enemyStruct = new Object({className:"darkwerewolf", leftOrRight:"right", spawnTime:6, pushX:Math.floor(Math.random() * 50) + 1}));
spawnList[4][9] = (enemyStruct = new Object({className:"werewolf", leftOrRight:"left", spawnTime:7, pushX:Math.floor(Math.random() * 50) + 1}));
time1[4] = 60;
time2[4] = 600;
time3[4] = 900;
time4[4] = 1200;
time5[4] = 1500;
time6[4] = 1800;
time7[4] = 2100;
spawnList[5][0] = (enemyStruct = new Object({className:"blueFatZombie", leftOrRight:"left", spawnTime:1, pushX:Math.floor(Math.random() * 50) + 1}));
spawnList[5][1] = (enemyStruct = new Object({className:"fatzombie", leftOrRight:"right", spawnTime:1, pushX:Math.floor(Math.random() * 50) + 1}));
spawnList[5][2] = (enemyStruct = new Object({className:"slime", leftOrRight:"left", spawnTime:1, pushX:Math.floor(Math.random() * 50) + 1}));
spawnList[5][3] = (enemyStruct = new Object({className:"gZombie", leftOrRight:"left", spawnTime:1, pushX:20}));
spawnList[5][4] = (enemyStruct = new Object({className:"bZombie", leftOrRight:"left", spawnTime:1, pushX:50}));
spawnList[5][5] = (enemyStruct = new Object({className:"zombie", leftOrRight:"right", spawnTime:2, pushX:20}));
spawnList[5][6] = (enemyStruct = new Object({className:"gZombie", leftOrRight:"left", spawnTime:2, pushX:30}));
spawnList[5][7] = (enemyStruct = new Object({className:"bZombie", leftOrRight:"left", spawnTime:2, pushX:10}));
spawnList[5][8] = (enemyStruct = new Object({className:"zombie", leftOrRight:"left", spawnTime:2, pushX:20}));
spawnList[5][9] = (enemyStruct = new Object({className:"fatzombie", leftOrRight:"left", spawnTime:2, pushX:60}));
spawnList[5][10] = (enemyStruct = new Object({className:"zombie", leftOrRight:"right", spawnTime:3, pushX:50}));
spawnList[5][11] = (enemyStruct = new Object({className:"gZombie", leftOrRight:"left", spawnTime:3, pushX:70}));
spawnList[5][12] = (enemyStruct = new Object({className:"bluevampire", leftOrRight:"right", spawnTime:3, pushX:60}));
spawnList[5][13] = (enemyStruct = new Object({className:"zombie", leftOrRight:"left", spawnTime:3, pushX:10}));
spawnList[5][14] = (enemyStruct = new Object({className:"darkwerewolf", leftOrRight:"left", spawnTime:4, pushX:30}));
spawnList[5][15] = (enemyStruct = new Object({className:"bZombie", leftOrRight:"left", spawnTime:5, pushX:10}));
spawnList[5][16] = (enemyStruct = new Object({className:"zombie", leftOrRight:"left", spawnTime:5, pushX:20}));
spawnList[5][17] = (enemyStruct = new Object({className:"fatzombie", leftOrRight:"left", spawnTime:5, pushX:60}));
spawnList[5][18] = (enemyStruct = new Object({className:"slime", leftOrRight:"right", spawnTime:5, pushX:50}));
spawnList[5][19] = (enemyStruct = new Object({className:"gZombie", leftOrRight:"left", spawnTime:6, pushX:70}));
spawnList[5][20] = (enemyStruct = new Object({className:"fatzombie", leftOrRight:"right", spawnTime:6, pushX:60}));
spawnList[5][21] = (enemyStruct = new Object({className:"bZombie", leftOrRight:"left", spawnTime:6, pushX:10}));
spawnList[5][22] = (enemyStruct = new Object({className:"pZombie", leftOrRight:"left", spawnTime:6, pushX:70}));
spawnList[5][23] = (enemyStruct = new Object({className:"vampire", leftOrRight:"right", spawnTime:6, pushX:60}));
spawnList[5][24] = (enemyStruct = new Object({className:"greywerewolf", leftOrRight:"left", spawnTime:7, pushX:10}));
time1[5] = 60;
time2[5] = 600;
time3[5] = 900;
time4[5] = 1200;
time5[5] = 1500;
time6[5] = 1800;
time7[5] = 2100;
spawnList[6][0] = (enemyStruct = new Object({className:"darkwerewolf", leftOrRight:"right", spawnTime:1, pushX:Math.floor(Math.random() * 50) + 1}));
spawnList[6][1] = (enemyStruct = new Object({className:"slime", leftOrRight:"right", spawnTime:1, pushX:20}));
spawnList[6][2] = (enemyStruct = new Object({className:"pZombie", leftOrRight:"left", spawnTime:1, pushX:30}));
spawnList[6][3] = (enemyStruct = new Object({className:"redvampire", leftOrRight:"right", spawnTime:1, pushX:50}));
spawnList[6][4] = (enemyStruct = new Object({className:"vampirebat", leftOrRight:"right", spawnTime:2, pushX:10}));
spawnList[6][5] = (enemyStruct = new Object({className:"greywerewolf", leftOrRight:"left", spawnTime:2, pushX:70}));
spawnList[6][6] = (enemyStruct = new Object({className:"gZombie", leftOrRight:"right", spawnTime:2, pushX:Math.floor(Math.random() * 50) + 1}));
spawnList[6][7] = (enemyStruct = new Object({className:"pZombie", leftOrRight:"left", spawnTime:2, pushX:30}));
spawnList[6][8] = (enemyStruct = new Object({className:"redvampire", leftOrRight:"right", spawnTime:3, pushX:50}));
spawnList[6][9] = (enemyStruct = new Object({className:"bZombie", leftOrRight:"right", spawnTime:3, pushX:10}));
spawnList[6][10] = (enemyStruct = new Object({className:"zombie", leftOrRight:"left", spawnTime:3, pushX:70}));
spawnList[6][11] = (enemyStruct = new Object({className:"pZombie", leftOrRight:"left", spawnTime:3, pushX:30}));
spawnList[6][12] = (enemyStruct = new Object({className:"slime", leftOrRight:"right", spawnTime:4, pushX:50}));
spawnList[6][13] = (enemyStruct = new Object({className:"smslime", leftOrRight:"right", spawnTime:4, pushX:10}));
spawnList[6][14] = (enemyStruct = new Object({className:"slime", leftOrRight:"left", spawnTime:4, pushX:70}));
spawnList[6][15] = (enemyStruct = new Object({className:"redvampire", leftOrRight:"right", spawnTime:5, pushX:50}));
spawnList[6][16] = (enemyStruct = new Object({className:"bluevampire", leftOrRight:"left", spawnTime:5, pushX:10}));
spawnList[6][17] = (enemyStruct = new Object({className:"zombie", leftOrRight:"left", spawnTime:6, pushX:70}));
spawnList[6][18] = (enemyStruct = new Object({className:"pZombie", leftOrRight:"left", spawnTime:6, pushX:30}));
spawnList[6][19] = (enemyStruct = new Object({className:"bZombie", leftOrRight:"right", spawnTime:6, pushX:50}));
spawnList[6][20] = (enemyStruct = new Object({className:"fatzombie", leftOrRight:"right", spawnTime:7, pushX:10}));
spawnList[6][21] = (enemyStruct = new Object({className:"BlueFatZombie", leftOrRight:"left", spawnTime:7, pushX:70}));
time1[6] = 60;
time2[6] = 600;
time3[6] = 900;
time4[6] = 1200;
time5[6] = 1500;
time6[6] = 1800;
time7[6] = 2100;
var speechCounter = 0;
var speechList = new Array();
speechList[0] = "You know there are some strange noises coming from that science room.";
speechList[1] = "..Science room?";
speechList[2] = "That's right. Just keep heading down this hallway.";
alice._xscale = -100;
onEnterFrame = function () {
if (backToMenu) {
backToMenu = false;
alice.removeMovieClip();
sage.removeMovieClip();
border.removeMovieClip();
foreground.removeMovieClip();
bgbuildings.removeMovieClip();
_root.dog.removeMovieClip();
fidencio.removeMovieClip();
var _local5 = 0;
while (_local5 < (nGrenadesOnScreen + 1)) {
_root["nade" + _local5].removeMovieClip();
_local5++;
}
var _local17 = 0;
while (_local17 < itemsOnScreen) {
_root["item" + _local17].removeMovieClip();
_local17++;
}
var _local16 = 0;
while (_local16 < enemiesOnScreen) {
_root["enum" + _local16].removeMovieClip();
_local16++;
}
var _local10 = 0;
while (_local10 < 1000) {
_root["particle_mc" + _local10].removeMovieClip();
_local10++;
}
var _local13 = 0;
while (_local13 < 1000) {
_root["darkbolt" + _local13].removeMovieClip();
_local13++;
}
var _local4 = 0;
while (_local4 < 1000) {
_root["crossbowbolt" + _local4].removeMovieClip();
_local4++;
}
var _local11 = 0;
while (_local11 < 1000) {
_root["puppyblast" + _local11].removeMovieClip();
_local11++;
}
_local17 = 0;
while (_local17 < 1000) {
_root["fireball" + _local17].removeMovieClip();
_local17++;
}
_local5 = 0;
while (_local5 < 1000) {
_root["puppy" + _local5].removeMovieClip();
_local5++;
}
_local16 = 0;
while (_local16 < 1000) {
_root["missile" + _local16].removeMovieClip();
_local16++;
}
_root.ken.removeMovieClip();
nCrossbowBolts = 0;
nPuppiesOnScreen = 0;
nFireballs = 0;
nBolts = 0;
nPupblasts = 0;
nPickedUpGibs = 0;
if ((!bRiding) && (bDogOnScreen)) {
_root.dog.removeMovieClip();
}
bProgress = false;
nScreenNo++;
bSetUpEnemies = true;
_root.camera.topright.gotoAndStop(1);
nMoved = 0;
nEnemiesKilled = 0;
_global.gibsOnScreen = 0;
if ((bDead == true) && (_global.lives == 1)) {
stopAllSounds();
_root.gotoAndStop(9);
} else if (camera.fallen._currentframe == 2) {
camera.outro.gotoAndStop(2);
} else {
stopAllSounds();
_root.gotoAndStop(3);
}
// unexpected jump
}
if (startDistortion) {
if (bDoOnce) {
foreground.effectinner.gotoAndStop(2);
fader.gotoAndPlay(2);
distortTimer = setInterval(startDistort, 3500);
bDoOnce = false;
}
// unexpected jump
}
if (exitDistort) {
_root.camera.bosslifebars.gotoAndStop(4);
_root.camera.bosslifebars.fid.gotoAndStop(240);
_root.camera.bosslifebars.fid.bar._xscale = bossHP;
nBossDamage = 100 - _root.camera.bosslifebars.fid.bar._xscale;
exitDistort = false;
// unexpected jump
}
if (bossFight) {
alice.gotoAndStop("idle");
if (bDoOnce) {
_root.camera.bosslifebars.gotoAndStop(4);
}
_root.camera.topright.gotoAndStop(1);
// unexpected jump
}
if (introMovie) {
if (nSpeechCountdown > 0) {
nSpeechCountdown--;
}
if (!speechTime) {
alice.gotoAndStop(49);
} else {
if (bRiding && (!_global.mag4addon)) {
alice.gotoAndStop("dogidle");
} else if (bRiding && (_global.mag4addon)) {
alice.gotoAndStop("ndogidle");
} else {
alice.gotoAndStop("idle");
}
if (Key.isDown(68) && (nSpeechCountdown == 0)) {
speechTime = false;
introMovie = false;
nSpeechCountdown = 10;
_root.foreground.speechbub.removeMovieClip();
_root.speechbub.removeMovieClip();
_root.sage.speechbub.removeMovieClip();
}
}
// unexpected jump
}
if (explodedNades == nGrenadesOnScreen) {
nGrenadesOnScreen = 0;
explodedNades = 0;
}
if (!bPaused) {
nSpawnTime++;
}
if (bSetUpEnemies) {
nSpawnTime = 0;
bSetUpEnemies = false;
nTime1 = time1[nScreenNo];
nTime2 = time2[nScreenNo];
nTime3 = time3[nScreenNo];
nTime4 = time4[nScreenNo];
nTime5 = time5[nScreenNo];
nTime6 = time6[nScreenNo];
nTime7 = time7[nScreenNo];
}
if (nSpawnTime == nTime1) {
var _local10 = 0;
while (_local10 < spawnList[nScreenNo].length) {
if (spawnList[nScreenNo][_local10].spawnTime == 1) {
var _local20 = "enum" + enemiesOnScreen;
_root.attachMovie(spawnList[nScreenNo][_local10].className, _local20, _root.getNextHighestDepth());
if (spawnList[nScreenNo][_local10].leftOrRight == "right") {
_root["enum" + enemiesOnScreen]._x = dispenserR._x + spawnList[nScreenNo][_local10].pushX;
_root["enum" + enemiesOnScreen].bFacingRight = false;
_root["enum" + enemiesOnScreen].bFacingLeft = true;
} else if (spawnList[nScreenNo][_local10].leftOrRight == "left") {
_root["enum" + enemiesOnScreen]._x = dispenserL._x - spawnList[nScreenNo][_local10].pushX;
_root["enum" + enemiesOnScreen].bFacingRight = true;
_root["enum" + enemiesOnScreen].bFacingLeft = false;
}
if (_root["enum" + enemiesOnScreen].nCurrentLane == 1) {
_root["enum" + enemiesOnScreen]._y = 439.05;
} else if (_root["enum" + enemiesOnScreen].nCurrentLane == 2) {
_root["enum" + enemiesOnScreen]._y = 494.05;
} else if (_root["enum" + enemiesOnScreen].nCurrentLane == 3) {
_root["enum" + enemiesOnScreen]._y = 540.05;
}
enemiesOnScreen++;
}
_local10++;
}
}
if (nSpawnTime == nTime2) {
var _local10 = 0;
while (_local10 < spawnList[nScreenNo].length) {
if (spawnList[nScreenNo][_local10].spawnTime == 2) {
var _local20 = "enum" + enemiesOnScreen;
_root.attachMovie(spawnList[nScreenNo][_local10].className, _local20, _root.getNextHighestDepth());
if (spawnList[nScreenNo][_local10].leftOrRight == "right") {
_root["enum" + enemiesOnScreen]._x = dispenserR._x + spawnList[nScreenNo][_local10].pushX;
_root["enum" + enemiesOnScreen].bFacingRight = false;
_root["enum" + enemiesOnScreen].bFacingLeft = true;
} else if (spawnList[nScreenNo][_local10].leftOrRight == "left") {
_root["enum" + enemiesOnScreen]._x = dispenserL._x - spawnList[nScreenNo][_local10].pushX;
_root["enum" + enemiesOnScreen].bFacingRight = true;
_root["enum" + enemiesOnScreen].bFacingLeft = false;
}
if (_root["enum" + enemiesOnScreen].nCurrentLane == 1) {
_root["enum" + enemiesOnScreen]._y = 439.05;
} else if (_root["enum" + enemiesOnScreen].nCurrentLane == 2) {
_root["enum" + enemiesOnScreen]._y = 494.05;
} else if (_root["enum" + enemiesOnScreen].nCurrentLane == 3) {
_root["enum" + enemiesOnScreen]._y = 540.05;
}
enemiesOnScreen++;
}
_local10++;
}
}
if (nSpawnTime == nTime3) {
var _local10 = 0;
while (_local10 < spawnList[nScreenNo].length) {
if (spawnList[nScreenNo][_local10].spawnTime == 3) {
var _local20 = "enum" + enemiesOnScreen;
_root.attachMovie(spawnList[nScreenNo][_local10].className, _local20, _root.getNextHighestDepth());
if (spawnList[nScreenNo][_local10].leftOrRight == "right") {
_root["enum" + enemiesOnScreen]._x = dispenserR._x + spawnList[nScreenNo][_local10].pushX;
_root["enum" + enemiesOnScreen].bFacingRight = false;
_root["enum" + enemiesOnScreen].bFacingLeft = true;
} else if (spawnList[nScreenNo][_local10].leftOrRight == "left") {
_root["enum" + enemiesOnScreen]._x = dispenserL._x - spawnList[nScreenNo][_local10].pushX;
_root["enum" + enemiesOnScreen].bFacingRight = true;
_root["enum" + enemiesOnScreen].bFacingLeft = false;
}
if (_root["enum" + enemiesOnScreen].nCurrentLane == 1) {
_root["enum" + enemiesOnScreen]._y = 439.05;
} else if (_root["enum" + enemiesOnScreen].nCurrentLane == 2) {
_root["enum" + enemiesOnScreen]._y = 494.05;
} else if (_root["enum" + enemiesOnScreen].nCurrentLane == 3) {
_root["enum" + enemiesOnScreen]._y = 540.05;
}
enemiesOnScreen++;
}
_local10++;
}
}
if (nSpawnTime == nTime4) {
var _local10 = 0;
while (_local10 < spawnList[nScreenNo].length) {
if (spawnList[nScreenNo][_local10].spawnTime == 4) {
var _local20 = "enum" + enemiesOnScreen;
_root.attachMovie(spawnList[nScreenNo][_local10].className, _local20, _root.getNextHighestDepth());
if (spawnList[nScreenNo][_local10].leftOrRight == "right") {
_root["enum" + enemiesOnScreen]._x = dispenserR._x + spawnList[nScreenNo][_local10].pushX;
_root["enum" + enemiesOnScreen].bFacingRight = false;
_root["enum" + enemiesOnScreen].bFacingLeft = true;
} else if (spawnList[nScreenNo][_local10].leftOrRight == "left") {
_root["enum" + enemiesOnScreen]._x = dispenserL._x - spawnList[nScreenNo][_local10].pushX;
_root["enum" + enemiesOnScreen].bFacingRight = true;
_root["enum" + enemiesOnScreen].bFacingLeft = false;
}
if (_root["enum" + enemiesOnScreen].nCurrentLane == 1) {
_root["enum" + enemiesOnScreen]._y = 439.05;
} else if (_root["enum" + enemiesOnScreen].nCurrentLane == 2) {
_root["enum" + enemiesOnScreen]._y = 494.05;
} else if (_root["enum" + enemiesOnScreen].nCurrentLane == 3) {
_root["enum" + enemiesOnScreen]._y = 540.05;
}
enemiesOnScreen++;
}
_local10++;
}
}
if (nSpawnTime == nTime5) {
var _local10 = 0;
while (_local10 < spawnList[nScreenNo].length) {
if (spawnList[nScreenNo][_local10].spawnTime == 5) {
var _local20 = "enum" + enemiesOnScreen;
_root.attachMovie(spawnList[nScreenNo][_local10].className, _local20, _root.getNextHighestDepth());
if (spawnList[nScreenNo][_local10].leftOrRight == "right") {
_root["enum" + enemiesOnScreen]._x = dispenserR._x + spawnList[nScreenNo][_local10].pushX;
_root["enum" + enemiesOnScreen].bFacingRight = false;
_root["enum" + enemiesOnScreen].bFacingLeft = true;
} else if (spawnList[nScreenNo][_local10].leftOrRight == "left") {
_root["enum" + enemiesOnScreen]._x = dispenserL._x - spawnList[nScreenNo][_local10].pushX;
_root["enum" + enemiesOnScreen].bFacingRight = true;
_root["enum" + enemiesOnScreen].bFacingLeft = false;
}
if (_root["enum" + enemiesOnScreen].nCurrentLane == 1) {
_root["enum" + enemiesOnScreen]._y = 439.05;
} else if (_root["enum" + enemiesOnScreen].nCurrentLane == 2) {
_root["enum" + enemiesOnScreen]._y = 494.05;
} else if (_root["enum" + enemiesOnScreen].nCurrentLane == 3) {
_root["enum" + enemiesOnScreen]._y = 540.05;
}
enemiesOnScreen++;
}
_local10++;
}
}
if (nSpawnTime == nTime6) {
var _local10 = 0;
while (_local10 < spawnList[nScreenNo].length) {
if (spawnList[nScreenNo][_local10].spawnTime == 6) {
var _local20 = "enum" + enemiesOnScreen;
_root.attachMovie(spawnList[nScreenNo][_local10].className, _local20, _root.getNextHighestDepth());
if (spawnList[nScreenNo][_local10].leftOrRight == "right") {
_root["enum" + enemiesOnScreen]._x = dispenserR._x + spawnList[nScreenNo][_local10].pushX;
_root["enum" + enemiesOnScreen].bFacingRight = false;
_root["enum" + enemiesOnScreen].bFacingLeft = true;
} else if (spawnList[nScreenNo][_local10].leftOrRight == "left") {
_root["enum" + enemiesOnScreen]._x = dispenserL._x - spawnList[nScreenNo][_local10].pushX;
_root["enum" + enemiesOnScreen].bFacingRight = true;
_root["enum" + enemiesOnScreen].bFacingLeft = false;
}
if (_root["enum" + enemiesOnScreen].nCurrentLane == 1) {
_root["enum" + enemiesOnScreen]._y = 439.05;
} else if (_root["enum" + enemiesOnScreen].nCurrentLane == 2) {
_root["enum" + enemiesOnScreen]._y = 494.05;
} else if (_root["enum" + enemiesOnScreen].nCurrentLane == 3) {
_root["enum" + enemiesOnScreen]._y = 540.05;
}
enemiesOnScreen++;
}
_local10++;
}
}
if (nSpawnTime == nTime7) {
var _local10 = 0;
while (_local10 < spawnList[nScreenNo].length) {
if (spawnList[nScreenNo][_local10].spawnTime == 7) {
var _local20 = "enum" + enemiesOnScreen;
_root.attachMovie(spawnList[nScreenNo][_local10].className, _local20, _root.getNextHighestDepth());
if (spawnList[nScreenNo][_local10].leftOrRight == "right") {
_root["enum" + enemiesOnScreen]._x = dispenserR._x + spawnList[nScreenNo][_local10].pushX;
_root["enum" + enemiesOnScreen].bFacingRight = false;
_root["enum" + enemiesOnScreen].bFacingLeft = true;
} else if (spawnList[nScreenNo][_local10].leftOrRight == "left") {
_root["enum" + enemiesOnScreen]._x = dispenserL._x - spawnList[nScreenNo][_local10].pushX;
_root["enum" + enemiesOnScreen].bFacingRight = true;
_root["enum" + enemiesOnScreen].bFacingLeft = false;
}
if (_root["enum" + enemiesOnScreen].nCurrentLane == 1) {
_root["enum" + enemiesOnScreen]._y = 439.05;
} else if (_root["enum" + enemiesOnScreen].nCurrentLane == 2) {
_root["enum" + enemiesOnScreen]._y = 494.05;
} else if (_root["enum" + enemiesOnScreen].nCurrentLane == 3) {
_root["enum" + enemiesOnScreen]._y = 540.05;
}
enemiesOnScreen++;
}
_local10++;
}
}
if (nPupsLeft == nPuppiesOnScreen) {
nPuppiesOnScreen = 0;
nPupsLeft = 0;
bPupsOnScreen = false;
}
if ((camera._y > (alice._y - 50)) && (camera._y > 280)) {
camera._y = camera._y - 2;
}
if (camera._y < (alice._y - 200)) {
camera._y = camera._y + 2;
}
if (bProgress == true) {
if (bKenOnScreen) {
bKenOnScreen = false;
_root.ken.removeMovieClip();
}
if (bDoOnce) {
bDoOnce = false;
var _local10 = 0;
while (_local10 < 1000) {
_root["particle_mc" + _local10].removeMovieClip();
_local10++;
}
if (nScreenNo == 8) {
camera.removeMovieClip();
alice.removeMovieClip();
sage.removeMovieClip();
border.removeMovieClip();
frame.removeMovieClip();
foreground.removeMovieClip();
bgbuildings.removeMovieClip();
_root.dog.removeMovieClip();
var _local5 = 0;
while (_local5 < (nGrenadesOnScreen + 1)) {
_root["nade" + _local5].removeMovieClip();
_local5++;
}
var _local17 = 0;
while (_local17 < itemsOnScreen) {
_root["item" + _local17].removeMovieClip();
_local17++;
}
var _local16 = 0;
while (_local16 < enemiesOnScreen) {
_root["enum" + _local16].removeMovieClip();
_local16++;
}
_local10 = 0;
while (_local10 < 1000) {
_root["particle_mc" + _local10].removeMovieClip();
_local10++;
}
_root.gotoAndStop(2);
}
}
bNextScreen = false;
bFacingRight = true;
bFacingLeft = false;
alice._xscale = -100;
if (!bRiding) {
if (nScreenNo == 6) {
if (nWeapNo == 1) {
alice.gotoAndStop("idle");
}
if (nWeapNo == 2) {
alice.gotoAndStop("kidle");
}
if (nWeapNo == 3) {
alice.gotoAndStop("sidle");
}
} else {
if (nWeapNo == 1) {
alice.gotoAndStop("run");
}
if (nWeapNo == 2) {
alice.gotoAndStop("krun");
}
if (nWeapNo == 3) {
alice.gotoAndStop("srun");
}
}
} else {
if (!_global.mag4addon) {
alice.gotoAndStop("dogwalk");
} else {
alice.gotoAndStop("ndogwalk");
}
if (nScreenNo == 6) {
if (!_global.mag4addon) {
alice.gotoAndStop("dogidle");
} else {
alice.gotoAndStop("ndogidle");
}
}
}
_root.dog._x = _root.dog._x - 5;
nMoved = nMoved + 5;
foreground._x = foreground._x - 5;
road._x = road._x - 5;
ground1._x = ground1._x - 5;
sage._x = sage._x - 5;
fidencio._x = fidencio._x - 5;
bgbuildings._x = bgbuildings._x - 2;
if (nScreenNo != 6) {
alice._x = alice._x - 2;
} else {
alice._x = alice._x - 5;
}
var _local5 = 0;
while (_local5 < (nGrenadesOnScreen + 1)) {
if (_root["nade" + _local5].wait._currentframe == 50) {
if (!_global.pyro) {
_root["nade" + _local5].gotoAndStop(2);
} else {
_root["nade" + _local5].gotoAndStop(3);
}
explodedNades++;
}
_root["nade" + _local5]._x = _root["nade" + _local5]._x - 5;
_local5++;
}
var _local11 = 0;
while (_local11 < breakablesOnScreen) {
_root["break" + _local11]._x = _root["break" + _local11]._x - 5;
_local11++;
}
var _local17 = 0;
while (_local17 < itemsOnScreen) {
_root["item" + _local17]._x = _root["item" + _local17]._x - 5;
_local17++;
}
if ((nMoved == 570) && (nScreenNo == 6)) {
nCrossbowBolts = 0;
nPuppiesOnScreen = 0;
nFireballs = 0;
nBolts = 0;
nPupblasts = 0;
nPickedUpGibs = 0;
if ((!bRiding) && (bDogOnScreen)) {
_root.dog.removeMovieClip();
}
bProgress = false;
nScreenNo++;
bSetUpEnemies = true;
_root.camera.topright.gotoAndStop(1);
nMoved = 0;
nEnemiesKilled = 0;
_global.gibsOnScreen = 0;
bossFight = true;
bDoOnce = true;
stopAllSounds();
musicSound = new Sound(this);
musicSound.attachSound("Boss");
musicSound.start(0, 999);
}
if ((nMoved == 640) && (nScreenNo != 6)) {
nCrossbowBolts = 0;
nPuppiesOnScreen = 0;
nFireballs = 0;
nBolts = 0;
nPupblasts = 0;
nPickedUpGibs = 0;
if ((!bRiding) && (bDogOnScreen)) {
_root.dog.removeMovieClip();
}
bProgress = false;
nScreenNo++;
bSetUpEnemies = true;
_root.camera.topright.gotoAndStop(1);
nMoved = 0;
nEnemiesKilled = 0;
_global.gibsOnScreen = 0;
}
// unexpected jump
}
if (bPaused) {
camera.pause.gotoAndStop(2);
blackout3.gotoAndStop(111);
if (startBossFight) {
getAllMc(fidencio);
}
getAllMc(alice);
sage.stop();
getAllMc(camera.topright);
var _local11 = 0;
while (_local11 < enemiesOnScreen) {
getAllMc(_root["enum" + _local11]);
_local11++;
}
var _local10 = 0;
while (_local10 < 1000) {
_root["particle_mc" + _local10].stopit = true;
_local10++;
}
var _local7 = 0;
while (_local7 < 1000) {
stopMoveAllMc(_root["nade" + _local7]);
_local7++;
}
var _local13 = 0;
while (_local13 < 1000) {
stopMoveAllMc(_root["darkbolt" + _local13]);
_local13++;
}
var _local4 = 0;
while (_local4 < 1000) {
stopMoveAllMc(_root["crossbowbolt" + _local4]);
_local4++;
}
_local11 = 0;
while (_local11 < 1000) {
stopMoveAllMc(_root["puppyblast" + _local11]);
_local11++;
}
var _local17 = 0;
while (_local17 < 1000) {
stopMoveAllMc(_root["fireball" + _local17]);
_local17++;
}
var _local5 = 0;
while (_local5 < 1000) {
stopMoveAllMc(_root["puppy" + _local5]);
_local5++;
}
var _local16 = 0;
while (_local16 < 1000) {
stopMoveAllMc(_root["missile" + _local16]);
_local16++;
}
stopMoveAllMc(_root.ken);
stopMoveAllMc(main_holder);
if (Key.isDown(27) && (nPauseTimer == 0)) {
camera.pause.gotoAndStop(1);
if (startBossFight) {
playAllMc(fidencio);
}
playAllMc(alice);
sage.play();
playAllMc(camera.topright);
_local11 = 0;
while (_local11 < enemiesOnScreen) {
playAllMc(_root["enum" + _local11]);
_local11++;
}
_local10 = 0;
while (_local10 < 1000) {
_root["particle_mc" + _local10].stopit = false;
_local10++;
}
_local7 = 0;
while (_local7 < 1000) {
startMoveAllMc(_root["nade" + _local7]);
_local7++;
}
_local13 = 0;
while (_local13 < 1000) {
startMoveAllMc(_root["darkbolt" + _local13]);
_local13++;
}
_local4 = 0;
while (_local4 < 1000) {
startMoveAllMc(_root["crossbowbolt" + _local4]);
_local4++;
}
_local11 = 0;
while (_local11 < 1000) {
startMoveAllMc(_root["puppyblast" + _local11]);
_local11++;
}
_local17 = 0;
while (_local17 < 1000) {
startMoveAllMc(_root["fireball" + _local17]);
_local17++;
}
_local5 = 0;
while (_local5 < 1000) {
startMoveAllMc(_root["puppy" + _local5]);
_local5++;
}
_local16 = 0;
while (_local16 < 1000) {
startMoveAllMc(_root["missile" + _local16]);
_local16++;
}
startMoveAllMc(_root.ken);
startMoveAllMc(main_holder);
_root.camera.achmenu.gotoAndStop(1);
_root.camera.controls.gotoAndStop(1);
bPaused = false;
nPauseTimer = 5;
}
if (nPauseTimer > 0) {
nPauseTimer--;
}
// unexpected jump
}
if ((_global.zombiesKilled == 10) && (!_global.ach1)) {
_root.camera.achunlock.gotoAndStop(2);
_global.ach1 = true;
}
if ((_global.zombiesKilled == 50) && (!_global.ach2)) {
_root.camera.achunlock.gotoAndStop(3);
_global.ach2 = true;
}
if ((_global.zombiesKilled == 200) && (!_global.ach3)) {
_root.camera.achunlock.gotoAndStop(4);
_global.ach3 = true;
}
if ((_global.vampiresKilled == 10) && (!_global.ach4)) {
_root.camera.achunlock.gotoAndStop(5);
_global.ach4 = true;
}
if ((_global.vampiresKilled == 50) && (!_global.ach5)) {
_root.camera.achunlock.gotoAndStop(6);
_global.ach5 = true;
}
if ((_global.werewolvesKilled == 10) && (!_global.ach6)) {
_root.camera.achunlock.gotoAndStop(7);
_global.ach6 = true;
}
if ((_global.werewolvesKilled == 50) && (!_global.ach7)) {
_root.camera.achunlock.gotoAndStop(8);
_global.ach7 = true;
}
bUsingMagic = false;
if ((((((Key.isDown(70) && (!bStopInput)) && (!bUsingMagic)) && (bGrounded)) && (!bRiding)) && (!bDead)) && (_global.mana != 0)) {
if (nWeapNo == 1) {
alice.gotoAndStop("batmagic");
bUsingMagic = true;
}
if (nWeapNo == 2) {
alice.gotoAndStop("katmagic");
bUsingMagic = true;
}
if (nWeapNo == 3) {
alice.gotoAndStop("stakemagic");
bUsingMagic = true;
}
nChargeAmount++;
if ((nChargeAmount == 20) && (_global.mana > 0)) {
_root.camera.manabar.charge.gotoAndStop(2);
}
if (((nChargeAmount == 35) && (_global.mana > 1)) && (_global.mag2)) {
_root.camera.manabar.charge.gotoAndStop(3);
}
if (((nChargeAmount == 50) && (_global.mana > 2)) && (_global.mag3)) {
_root.camera.manabar.charge.gotoAndStop(4);
}
if (((nChargeAmount == 65) && (_global.mana > 3)) && (_global.mag4)) {
_root.camera.manabar.charge.gotoAndStop(5);
}
if (((nChargeAmount == 80) && (_global.mana > 4)) && (_global.mag5)) {
_root.camera.manabar.charge.gotoAndStop(6);
}
}
if (bUsingMagic == false) {
nChargeAmount = 0;
_root.camera.manabar.charge.gotoAndStop(1);
}
_root.camera.meatCountText.text = "x" + _global.heldGibs;
_root.camera.livesText.text = "x" + _global.lives;
if (_global.health <= 12) {
_root.camera.healthbar.gotoAndStop(13 - _global.health);
} else {
_root.camera.healthbar.gotoAndStop(_global.health + 1);
}
if (_global.mana <= 6) {
_root.camera.manabar.gotoAndStop(7 - _global.mana);
} else {
_root.camera.manabar.gotoAndStop(_global.mana + 1);
}
if ((_global.healthPacks == 0) && (nSelection == 1)) {
nSelection++;
}
if ((_global.heldGrenades == 0) && (nSelection == 2)) {
nSelection++;
}
if ((_global.manaPots == 0) && (nSelection == 3)) {
nSelection++;
}
if ((_global.heldCrossbows == 0) && (nSelection == 4)) {
nSelection++;
}
if ((_global.heldCrosses == 0) && (nSelection == 5)) {
nSelection++;
}
if (nSelection > 5) {
if (_global.healthPacks > 0) {
nSelection = 1;
} else if (_global.heldGrenades > 0) {
nSelection = 2;
} else if (_global.manaPots > 0) {
nSelection = 3;
} else if (_global.heldCrossbows > 0) {
nSelection = 4;
} else if (_global.heldCrosses > 0) {
nSelection = 5;
} else {
nSelection = 0;
}
}
if (((((_global.healthPacks == 0) && (_global.heldGrenades == 0)) && (_global.manaPots == 0)) && (_global.heldCrossbows == 0)) && (_global.heldCrosses == 0)) {
nSelection = 0;
}
if (nSelection == 0) {
if (_global.healthPacks > 0) {
nSelection = 1;
} else if (_global.heldGrenades > 0) {
nSelection = 2;
} else if (_global.manaPots > 0) {
nSelection = 3;
} else if (_global.heldCrossbows > 0) {
nSelection = 4;
} else if (_global.heldCrosses > 0) {
nSelection = 5;
}
_root.camera.secondaryslot.gotoAndStop(1);
}
if (nSelection == 1) {
_root.camera.secondaryslot.gotoAndStop(2);
_root.camera.secondaryslot.healthpack.gotoAndStop(_global.healthPacks);
} else if (nSelection == 2) {
_root.camera.secondaryslot.gotoAndStop(3);
var _local31 = Math.floor(_global.heldGrenades / 10);
_root.camera.secondaryslot.slot.ones.gotoAndStop((_global.heldGrenades - (_local31 * 10)) + 1);
_root.camera.secondaryslot.slot.tens.gotoAndStop(_local31 + 1);
} else if (nSelection == 3) {
_root.camera.secondaryslot.gotoAndStop(4);
_root.camera.secondaryslot.manapots.gotoAndStop(_global.manaPots);
} else if (nSelection == 4) {
_root.camera.secondaryslot.gotoAndStop(5);
var _local31 = Math.floor(_global.heldCrossbows / 10);
_root.camera.secondaryslot.slot.ones.gotoAndStop((_global.heldCrossbows - (_local31 * 10)) + 1);
_root.camera.secondaryslot.slot.tens.gotoAndStop(_local31 + 1);
} else if (nSelection == 5) {
_root.camera.secondaryslot.gotoAndStop(6);
var _local31 = Math.floor(_global.heldCrosses / 10);
_root.camera.secondaryslot.slot.ones.gotoAndStop((_global.heldCrosses - (_local31 * 10)) + 1);
_root.camera.secondaryslot.slot.tens.gotoAndStop(_local31 + 1);
} else {
_root.camera.secondaryslot.gotoAndStop(1);
}
var _local7 = 0;
while (_local7 < itemsOnScreen) {
if ((((alice.collectbox.hitTest(_root["item" + _local7]) && (Key.isDown(68))) && (!bStopInput)) && (!bUsingMagic)) && (!bUsingMagic)) {
effectSound = new Sound(this);
effectSound.attachSound("Pickup");
effectSound.start();
if (_root["item" + _local7]._currentframe == 1) {
_global.healthPacks++;
if (_global.healthPacks > 9) {
_global.healthPacks = 9;
}
} else if (_root["item" + _local7]._currentframe == 2) {
_global.heldCrossbows = _global.heldCrossbows + 5;
if (_global.heldCrossbows > 99) {
_global.heldCrossbows = 99;
}
} else if (_root["item" + _local7]._currentframe == 3) {
_global.heldGrenades = _global.heldGrenades + 3;
if (_global.heldGrenades > 99) {
_global.heldGrenades = 99;
}
} else if (_root["item" + _local7]._currentframe == 4) {
_global.manaPots = _global.manaPots + 1;
if (_global.manaPots > 9) {
_global.manaPots = 9;
}
} else if (_root["item" + _local7]._currentframe == 5) {
_global.heldCrosses = _global.heldCrosses + 1;
if (_global.heldCrosses > 99) {
_global.heldCrosses = 99;
}
}
_root["item" + _local7].gotoAndStop(6);
}
_local7++;
}
var _local4 = 0;
while (_local4 < breakablesOnScreen) {
if (nCurrentLane == 1) {
if ((((alice.hitBox.hitTest(_root["break" + _local4].LhitBox) && (Key.isDown(68))) && (!bStopInput)) && (!bUsingMagic)) && (_root["break" + _local4]._currentframe == 1)) {
_root["break" + _local4].gotoAndStop("right");
_root.attachMovie("item", "item" + itemsOnScreen, -10000 + itemsOnScreen, _root["break" + _local4]);
_root["item" + itemsOnScreen].gotoAndStop(Math.floor(Math.random() * 5) + 1);
_root["item" + itemsOnScreen]._x = _root["break" + _local4]._x + 20;
_root["item" + itemsOnScreen]._y = _root["break" + _local4]._y + 110;
itemsOnScreen++;
} else if ((((alice.hitBox.hitTest(_root["break" + _local4].RhitBox) && (Key.isDown(68))) && (!bStopInput)) && (!bUsingMagic)) && (_root["break" + _local4]._currentframe == 1)) {
_root["break" + _local4].gotoAndStop("left");
_root.attachMovie("item", "item" + itemsOnScreen, -10000 + itemsOnScreen, _root["break" + _local4]);
_root["item" + itemsOnScreen].gotoAndStop(3);
_root["item" + itemsOnScreen]._x = _root["break" + _local4]._x - 200;
_root["item" + itemsOnScreen]._y = _root["break" + _local4]._y + 110;
itemsOnScreen++;
}
}
_local4++;
}
var _local5 = 0;
while (_local5 < (nGrenadesOnScreen + 1)) {
if (_root["nade" + _local5].wait._currentframe == 50) {
explodedNades++;
if (((startBossFight && (_root["nade" + _local5].hitTest(fidencio.hitbox))) && (fidencio.sState == "prone")) && (_root["nade" + _local5]._currentframe == 1)) {
fidencio.hurt.gotoAndStop(2);
nBossDamage = nBossDamage + 8;
camera.bosslifebars.fid.bar._xscale = 100 - nBossDamage;
}
if (!_global.pyro) {
_root["nade" + _local5].gotoAndStop(2);
} else {
_root["nade" + _local5].gotoAndStop(3);
}
var _local10 = 0;
while (_local10 < enemiesOnScreen) {
if (_root["nade" + _local5].hitTest(_root["enum" + _local10].hitbumpR) || (_root["nade" + _local5].hitTest(_root["enum" + _local10].hitbumpL))) {
if ((_root["nade" + _local5].lane == _root["enum" + _local10].getCurrentLane()) && (_root["enum" + _local10].sState != "dead")) {
_root["enum" + _local10].hit(4, 1);
if (((_root["enum" + _local10].getType() != "slime") && (_root["enum" + _local10].getType() != "small slime")) && (_root["enum" + _local10].getType() != "tiny slime")) {
gib(_root["enum" + _local10]._x, _root["enum" + _local10]._y, _root["enum" + _local10].getCurrentLane(), 15 * _global.goreMultiplier);
}
nEnemiesKilled++;
if ((_root["enum" + _local10].getType() == "zombie") || (_root["enum" + _local10].getType() == "fat zombie")) {
_global.zombiesKilled++;
} else if (_root["enum" + _local10].getType() == "werewolf") {
_global.werewolvesKilled++;
} else if (_root["enum" + _local10].getType() == "vampire") {
_global.vampiresKilled++;
}
}
}
_local10++;
}
}
_local5++;
}
var _local10 = 0;
while (_local10 < enemiesOnScreen) {
if (bUsingCross) {
if (_root["enum" + _local10].sState != "dead") {
if (!_global.longCross) {
if (alice.explodebox.hitTest(_root["enum" + _local10].hitbumpR) || (alice.explodebox.hitTest(_root["enum" + _local10].hitbumpL))) {
_root["enum" + _local10].hit(4, 1);
if (((_root["enum" + _local10].getType() != "slime") && (_root["enum" + _local10].getType() != "small slime")) && (_root["enum" + _local10].getType() != "tiny slime")) {
gib(_root["enum" + _local10]._x, _root["enum" + _local10]._y, _root["enum" + _local10].getCurrentLane(), 15 * _global.goreMultiplier);
}
nEnemiesKilled++;
if ((_root["enum" + _local10].getType() == "zombie") || (_root["enum" + _local10].getType() == "fat zombie")) {
_global.zombiesKilled++;
} else if (_root["enum" + _local10].getType() == "werewolf") {
_global.werewolvesKilled++;
} else if (_root["enum" + _local10].getType() == "vampire") {
_global.vampiresKilled++;
}
}
} else if (_root["enum" + _local10].bEnteredScreen) {
_root["enum" + _local10].hit(4, 1);
if (((_root["enum" + _local10].getType() != "slime") && (_root["enum" + _local10].getType() != "small slime")) && (_root["enum" + _local10].getType() != "tiny slime")) {
gib(_root["enum" + _local10]._x, _root["enum" + _local10]._y, _root["enum" + _local10].getCurrentLane(), 15 * _global.goreMultiplier);
}
nEnemiesKilled++;
if ((_root["enum" + _local10].getType() == "zombie") || (_root["enum" + _local10].getType() == "fat zombie")) {
_global.zombiesKilled++;
} else if (_root["enum" + _local10].getType() == "werewolf") {
_global.werewolvesKilled++;
} else if (_root["enum" + _local10].getType() == "vampire") {
_global.vampiresKilled++;
}
}
}
}
var _local12;
var _local19;
var _local14;
if (bKenOnScreen) {
_local12 = _root.ken._x;
_local19 = _root.ken._y;
_local14 = _root.ken.lane;
} else {
_local12 = alice._x;
_local19 = alice._y;
_local14 = nCurrentLane;
}
_root["enum" + _local10].Update();
_root["enum" + _local10].Think(enemyDecisionValue(_root["enum" + _local10].aggressionValue, _local12 - _root["enum" + _local10]._x, nWeapNo, _root["enum" + _local10].sType, enemiesOnScreen, 0), _local14);
if (((((_root["enum" + _local10].Move(_local12, _local19, _local14) == true) && (!bBlocking)) && (!bHit)) && (!bDead)) && (nInvincible == 0)) {
if (!bKenOnScreen) {
if ((!bHitChance) && (!bUsingMagic)) {
if (nWeapNo == 1) {
alice.gotoAndStop("bhit");
}
if (nWeapNo == 2) {
alice.gotoAndStop("khit");
}
if (nWeapNo == 3) {
alice.gotoAndStop("shit");
}
} else {
myColor = new Color(alice);
myColor.setTransform({ra:60, rb:255, ga:100, gb:-255, ba:100, bb:-255, aa:100, ab:0});
tintTimer = setInterval(tintEnd, 150);
}
_global.health--;
if (bRiding) {
_root.dog.gotoAndStop(1);
bRiding = false;
nDogCount--;
if (alice._x < 320) {
_root.dog._x = alice._x + 120;
}
if (alice._x >= 320) {
_root.dog._x = alice._x - 120;
}
if (nCurrentLane == 1) {
_root.dog._y = 439.05;
} else if (nCurrentLane == 2) {
_root.dog._y = 494.05;
} else if (nCurrentLane == 3) {
_root.dog._y = 540.05;
}
}
if (_global.health == 0) {
alice.gotoAndStop("dead");
if (_global.lives == 1) {
backToMenu = true;
}
bDead = true;
nSpeed = 0;
bDontGetUp = true;
deadTimer = setInterval(deadEnd, 1300);
} else {
hitTimer = setInterval(hitEnd, 150);
}
bHit = true;
}
}
_root["enum" + _local10].setDepth(_local10);
while (((alice.hitBox.hitTest(_root["enum" + _local10].rightbumper) && (nCurrentLane == _root["enum" + _local10].getCurrentLane())) && (bFacingLeft)) && (_root["enum" + _local10].getState() != "dead")) {
alice._x++;
nSpeed = 0;
}
while (((alice.hitBox.hitTest(_root["enum" + _local10].leftbumper) && (nCurrentLane == _root["enum" + _local10].getCurrentLane())) && (bFacingRight)) && (_root["enum" + _local10].getState() != "dead")) {
alice._x--;
nSpeed = 0;
}
if (bHitChance) {
if (bRiding) {
if ((((alice.attackzone.hitTest(_root["enum" + _local10].hitbumpR) && (nCurrentLane == _root["enum" + _local10].getCurrentLane())) && (bFacingLeft)) && (_root["enum" + _local10].getState() != "dead")) || (((alice.attackzone.hitTest(_root["enum" + _local10].hitbumpL) && (nCurrentLane == _root["enum" + _local10].getCurrentLane())) && (bFacingRight)) && (_root["enum" + _local10].getState() != "dead"))) {
var _local9;
if (((_root["enum" + _local10].getType() == "vampire") || (_root["enum" + _local10].getType() == "small slime")) || (_root["enum" + _local10].getType() == "slime")) {
_local9 = _root["enum" + _local10].hit(4, nAttack);
} else {
_local9 = _root["enum" + _local10].hit(2, nAttack);
}
if (((_local9 == 0) && (_root["enum" + _local10].getType() != "slime")) && (_root["enum" + _local10].getType() != "small slime")) {
if (_root["enum" + _local10].getType() == "tiny slime") {
nEnemiesKilled++;
} else if (nWeapNo == 3) {
if (_root["enum" + _local10].getType() != "fat zombie") {
gib(_root["enum" + _local10]._x, _root["enum" + _local10]._y, _root["enum" + _local10].getCurrentLane(), 3 * _global.goreMultiplier);
if (_root["enum" + _local10].getType() != "vampire") {
blood(_root["enum" + _local10]._x, _root["enum" + _local10]._y, 30 * _global.goreMultiplier);
}
nEnemiesKilled++;
if ((_root["enum" + _local10].getType() == "zombie") || (_root["enum" + _local10].getType() == "fat zombie")) {
_global.zombiesKilled++;
} else if (_root["enum" + _local10].getType() == "werewolf") {
_global.werewolvesKilled++;
} else if (_root["enum" + _local10].getType() == "vampire") {
_global.vampiresKilled++;
}
}
} else {
gib(_root["enum" + _local10]._x, _root["enum" + _local10]._y, _root["enum" + _local10].getCurrentLane(), 6 * _global.goreMultiplier);
blood(_root["enum" + _local10]._x, _root["enum" + _local10]._y, 50 * _global.goreMultiplier);
nEnemiesKilled++;
if ((_root["enum" + _local10].getType() == "zombie") || (_root["enum" + _local10].getType() == "fat zombie")) {
_global.zombiesKilled++;
} else if (_root["enum" + _local10].getType() == "werewolf") {
_global.werewolvesKilled++;
} else if (_root["enum" + _local10].getType() == "vampire") {
_global.vampiresKilled++;
}
}
} else if (_local9 == 1) {
if (((_root["enum" + _local10].getType() == "slime") || (_root["enum" + _local10].getType() == "small slime")) || (_root["enum" + _local10].getType() == "tiny slime")) {
nEnemiesKilled++;
} else {
gib(_root["enum" + _local10]._x, _root["enum" + _local10]._y, _root["enum" + _local10].getCurrentLane(), 12 * _global.goreMultiplier);
blood(_root["enum" + _local10]._x, _root["enum" + _local10]._y, 80 * _global.goreMultiplier);
nEnemiesKilled++;
if ((_root["enum" + _local10].getType() == "zombie") || (_root["enum" + _local10].getType() == "fat zombie")) {
_global.zombiesKilled++;
} else if (_root["enum" + _local10].getType() == "werewolf") {
_global.werewolvesKilled++;
} else if (_root["enum" + _local10].getType() == "vampire") {
_global.vampiresKilled++;
}
}
} else if ((_local9 == 0) && (_root["enum" + _local10].getType() == "slime")) {
makeSmSlime(_root["enum" + _local10], -15, "smslime");
enemiesOnScreen++;
makeSmSlime(_root["enum" + _local10], 15, "smslime");
enemiesOnScreen++;
nEnemiesKilled++;
} else if ((_local9 == 0) && (_root["enum" + _local10].getType() == "small slime")) {
makeSmSlime(_root["enum" + _local10], -15, "smsmslime");
enemiesOnScreen++;
makeSmSlime(_root["enum" + _local10], 15, "smsmslime");
enemiesOnScreen++;
nEnemiesKilled++;
}
}
} else if ((((alice.hitBox.hitTest(_root["enum" + _local10].hitbumpR) && (nCurrentLane == _root["enum" + _local10].getCurrentLane())) && (bFacingLeft)) && (_root["enum" + _local10].getState() != "dead")) || (((alice.hitBox.hitTest(_root["enum" + _local10].hitbumpL) && (nCurrentLane == _root["enum" + _local10].getCurrentLane())) && (bFacingRight)) && (_root["enum" + _local10].getState() != "dead"))) {
var _local6;
var _local8 = false;
var _local15 = false;
if (nWeapNo == 1) {
if (_global.batDam1) {
_local6 = 15;
}
if (_global.batDam2) {
_local6 = 20;
} else {
_local6 = 10;
}
if ((_root["enum" + _local10].getType() == "slime") || (_root["enum" + _local10].getType() == "small slime")) {
if (_global.batCutSlimes) {
_local8 = true;
}
}
if (_global.batOneFat && (_root["enum" + _local10].getType() == "fat zombie")) {
_local8 = true;
}
} else if (nWeapNo == 2) {
if (_global.katDam1) {
_local6 = 15;
}
if (_global.katDam2) {
_local6 = 20;
} else {
_local6 = 10;
}
if (_global.katOneVamp && (_root["enum" + _local10].getType() == "vampire")) {
_local8 = true;
}
} else if (nWeapNo == 3) {
if (_global.stakeDam1) {
_local6 = 15;
}
if (_global.stakeDam2) {
_local6 = 20;
} else {
_local6 = 10;
}
if (_global.stakeOneWere && (_root["enum" + _local10].getType() == "werewolf")) {
_local8 = true;
}
if ((_root["enum" + _local10].getType() == "slime") || (_root["enum" + _local10].getType() == "small slime")) {
if (_global.stakeCutSlimes) {
_local15 = true;
}
}
if (_global.stakeOneVamp && (_root["enum" + _local10].getType() == "vampire")) {
_local15 = true;
}
}
if (!bGrounded) {
_local6 = _local6 * 2;
}
var _local9 = _root["enum" + _local10].hit(nWeapNo, nAttack, _local6, _local8, _local15);
if (((_local9 == 0) && (_root["enum" + _local10].getType() != "slime")) && (_root["enum" + _local10].getType() != "small slime")) {
if (_root["enum" + _local10].getType() == "tiny slime") {
nEnemiesKilled++;
} else if (nWeapNo == 3) {
if (_root["enum" + _local10].getType() != "fat zombie") {
gib(_root["enum" + _local10]._x, _root["enum" + _local10]._y, _root["enum" + _local10].getCurrentLane(), 3 * _global.goreMultiplier);
if (_root["enum" + _local10].getType() != "vampire") {
blood(_root["enum" + _local10]._x, _root["enum" + _local10]._y, 30 * _global.goreMultiplier);
} else if (_root["enum" + _local10].sForm == "bat") {
blood(_root["enum" + _local10]._x, _root["enum" + _local10]._y, 30 * _global.goreMultiplier);
}
nEnemiesKilled++;
if ((_root["enum" + _local10].getType() == "zombie") || (_root["enum" + _local10].getType() == "fat zombie")) {
_global.zombiesKilled++;
} else if (_root["enum" + _local10].getType() == "werewolf") {
_global.werewolvesKilled++;
} else if (_root["enum" + _local10].getType() == "vampire") {
_global.vampiresKilled++;
}
}
} else {
gib(_root["enum" + _local10]._x, _root["enum" + _local10]._y, _root["enum" + _local10].getCurrentLane(), 6 * _global.goreMultiplier);
blood(_root["enum" + _local10]._x, _root["enum" + _local10]._y, 50 * _global.goreMultiplier);
nEnemiesKilled++;
if ((_root["enum" + _local10].getType() == "zombie") || (_root["enum" + _local10].getType() == "fat zombie")) {
_global.zombiesKilled++;
} else if (_root["enum" + _local10].getType() == "werewolf") {
_global.werewolvesKilled++;
} else if (_root["enum" + _local10].getType() == "vampire") {
_global.vampiresKilled++;
}
}
} else if (_local9 == 1) {
if (((_root["enum" + _local10].getType() == "slime") || (_root["enum" + _local10].getType() == "small slime")) || (_root["enum" + _local10].getType() == "tiny slime")) {
nEnemiesKilled++;
} else {
gib(_root["enum" + _local10]._x, _root["enum" + _local10]._y, _root["enum" + _local10].getCurrentLane(), 12 * _global.goreMultiplier);
blood(_root["enum" + _local10]._x, _root["enum" + _local10]._y, 80 * _global.goreMultiplier);
nEnemiesKilled++;
if ((_root["enum" + _local10].getType() == "zombie") || (_root["enum" + _local10].getType() == "fat zombie")) {
_global.zombiesKilled++;
} else if (_root["enum" + _local10].getType() == "werewolf") {
_global.werewolvesKilled++;
} else if (_root["enum" + _local10].getType() == "vampire") {
_global.vampiresKilled++;
}
}
} else if ((_local9 == 0) && (_root["enum" + _local10].getType() == "slime")) {
makeSmSlime(_root["enum" + _local10], -15, "smslime");
enemiesOnScreen++;
makeSmSlime(_root["enum" + _local10], 15, "smslime");
enemiesOnScreen++;
nEnemiesKilled++;
} else if ((_local9 == 0) && (_root["enum" + _local10].getType() == "small slime")) {
makeSmSlime(_root["enum" + _local10], -15, "smsmslime");
enemiesOnScreen++;
makeSmSlime(_root["enum" + _local10], 15, "smsmslime");
enemiesOnScreen++;
nEnemiesKilled++;
}
if (!bDogAttack) {
bHitChance = false;
}
}
}
_local10++;
}
if (_global.gibsOnScreen >= 300) {
_global.gibsOnScreen = 0;
}
_local10 = 0;
while (_local10 < 361) {
if (alice.collectbox.hitTest(_root["particle_mc" + _local10])) {
_root["particle_mc" + _local10].removeMovieClip();
_global.heldGibs++;
nPickedUpGibs++;
}
_local10++;
}
if (nEnemiesKilled == enemiesOnScreen) {
if (nSpawnTime < nTime1) {
} else if (nSpawnTime < nTime2) {
nSpawnTime = nTime2 - 1;
} else if (nSpawnTime < nTime3) {
nSpawnTime = nTime3 - 1;
} else if (nSpawnTime < nTime4) {
nSpawnTime = nTime4 - 1;
} else if (nSpawnTime < nTime5) {
nSpawnTime = nTime5 - 1;
} else if (nSpawnTime < nTime6) {
nSpawnTime = nTime6 - 1;
} else if (nSpawnTime < nTime7) {
nSpawnTime = nTime7 - 1;
} else if ((nSpawnTime > nTime7) && (nTargetTime == 0)) {
nTargetTime = nSpawnTime + 90;
} else if (nSpawnTime >= nTargetTime) {
nTargetTime = 0;
enemiesOnScreen = 0;
if (nScreenNo != 8) {
bNextScreen = true;
_root.camera.topright.gotoAndStop(2);
}
}
}
if (bShopOnScreen) {
shopwindow.update();
if (bRiding && (!_global.mag4addon)) {
alice.gotoAndStop("dogidle");
} else if (bRiding && (_global.mag4addon)) {
alice.gotoAndStop("ndogidle");
} else {
alice.gotoAndStop("idle");
}
bStopInput = true;
}
if ((nCurrentLane == 1) && (alice.hitTest(sage))) {
if (((((Key.isDown(68) && (bGrounded)) && (!bStopInput)) && (!bUsingMagic)) && (!bJAttacking)) && (bNextScreen)) {
if ((speechCounter == 0) || (speechCounter == 2)) {
introMovie = true;
nSpeed = 0;
_root.attachMovie("speech", "speechbub", _root.getNextHighestDepth());
_root.speechbub._x = sage._x - 20;
_root.speechbub._y = sage._y;
var _local32 = _root.speechbub.speechbox._height;
_root.speechbub.message.autoSize = true;
_root.speechbub.message.text = speechList[speechCounter];
_root.speechbub.speechbox._height = _root.speechbub.message._height;
_root.speechbub.speechbox._y = _root.speechbub.speechbox._y - _root.speechbub.speechbox._height;
_root.speechbub.speechbox._y = _root.speechbub.speechbox._y + _local32;
_root.speechbub.message._y = _root.speechbub.speechbox._y;
speechTime = true;
nSpeechCountdown = 10;
speechCounter++;
} else if (speechCounter == 1) {
introMovie = true;
_root.attachMovie("speech", "speechbub", _root.getNextHighestDepth());
_root.speechbub._y = alice._y - 70;
if (bFacingRight) {
_root.speechbub._x = alice._x + 80;
_root.speechbub._xscale = -100;
_root.speechbub.message._xscale = -100;
_root.speechbub.message._x = _root.speechbub.message._x + _root.speechbub.message._width;
_root.speechbub.message._x = _root.speechbub.message._x - 5;
} else if (bFacingLeft) {
_root.speechbub._x = alice._x - 80;
_root.speechbub._xscale = 100;
_root.speechbub.message._xscale = 100;
}
var _local32 = _root.speechbub.speechbox._height;
_root.speechbub.message.autoSize = true;
_root.speechbub.message.text = speechList[speechCounter];
_root.speechbub.speechbox._height = _root.speechbub.message._height;
_root.speechbub.speechbox._y = _root.speechbub.speechbox._y - _root.speechbub.speechbox._height;
_root.speechbub.speechbox._y = _root.speechbub.speechbox._y + _local32;
_root.speechbub.message._y = _root.speechbub.speechbox._y;
speechTime = true;
nSpeechCountdown = 10;
speechCounter++;
} else {
bShopOnScreen = true;
camera.attachMovie("shop", "shopwindow", 104850);
camera.shopwindow.items.gotoAndStop(2);
camera.shopwindow._x = -300;
camera.shopwindow._y = -220;
}
}
}
if ((nCurrentLane == 1) && (alice.hitTest(_root.foreground.sign0))) {
if (((((Key.isDown(68) && (bGrounded)) && (!bStopInput)) && (!bUsingMagic)) && (!bJAttacking)) && (nSpeechCountdown == 0)) {
introMovie = true;
_root.foreground.attachMovie("speech", "speechbub", _root.foreground.getNextHighestDepth());
_root.foreground.speechbub._x = _root.foreground.sign0._x - 80;
_root.foreground.speechbub._y = _root.foreground.sign0._y;
var _local32 = _root.foreground.speechbub.speechbox._height;
_root.foreground.speechbub.message.autoSize = true;
_root.foreground.speechbub.message.text = "Enemies require different combinations of weapons to defeat.";
_root.foreground.speechbub.speechbox._height = _root.foreground.speechbub.message._height;
_root.foreground.speechbub.speechbox._y = _root.foreground.speechbub.speechbox._y - _root.foreground.speechbub.speechbox._height;
_root.foreground.speechbub.speechbox._y = _root.foreground.speechbub.speechbox._y + _local32;
_root.foreground.speechbub.message._y = _root.foreground.speechbub.speechbox._y;
speechTime = true;
nSpeechCountdown = 10;
}
}
if ((nCurrentLane == 1) && (alice.hitTest(_root.foreground.sign1))) {
if (((((Key.isDown(68) && (bGrounded)) && (!bStopInput)) && (!bUsingMagic)) && (!bJAttacking)) && (nSpeechCountdown == 0)) {
introMovie = true;
_root.foreground.attachMovie("speech", "speechbub", _root.foreground.getNextHighestDepth());
_root.foreground.speechbub._x = _root.foreground.sign1._x - 80;
_root.foreground.speechbub._y = _root.foreground.sign1._y;
var _local32 = _root.foreground.speechbub.speechbox._height;
_root.foreground.speechbub.message.autoSize = true;
_root.foreground.speechbub.message.text = "You can dash and change items/weapons when blocking.";
_root.foreground.speechbub.speechbox._height = _root.foreground.speechbub.message._height;
_root.foreground.speechbub.speechbox._y = _root.foreground.speechbub.speechbox._y - _root.foreground.speechbub.speechbox._height;
_root.foreground.speechbub.speechbox._y = _root.foreground.speechbub.speechbox._y + _local32;
_root.foreground.speechbub.message._y = _root.foreground.speechbub.speechbox._y;
speechTime = true;
nSpeechCountdown = 10;
}
}
if (startBossFight) {
bossHP = _root.camera.bosslifebars.fid.bar._xscale;
if ((_root.camera.bosslifebars.fid.bar._xscale <= 0) || (nBossDamage >= 100)) {
bProgress = false;
camera.topright.gotoAndStop(1);
fidencio.sState = "dead";
fidencio.attack(alice._x, alice._y, nCurrentLane);
camera.bosslifebars.gotoAndStop(1);
bStopInput = true;
alice.gotoAndStop("idle");
if (!_global.ach15) {
_global.ach15 = true;
_root.camera.achunlock.gotoAndStop(16);
}
camera.fallen.gotoAndStop(2);
} else {
bProgress = false;
camera.topright.gotoAndStop(1);
if (bDoOnce) {
fidencio.gotoAndStop("intro");
nSpeed = 0;
bDoOnce = false;
}
fidencio.setDepth(0);
if (fidencio._currentframe != 2) {
var _local30 = fidencio.attack(alice._x, alice._y, nCurrentLane);
if (_local30 == 1) {
if (fidencio.bFacingRight) {
straightShootMissile(fidencio._x + 280);
straightShootMissile(fidencio._x + 270);
straightShootMissile(fidencio._x + 260);
straightShootMissile(fidencio._x + 250);
straightShootMissile(fidencio._x + 180);
straightShootMissile(fidencio._x + 170);
straightShootMissile(fidencio._x + 160);
straightShootMissile(fidencio._x + 150);
} else if (fidencio.bFacingLeft) {
straightShootMissile(fidencio._x + 60);
straightShootMissile(fidencio._x + 50);
straightShootMissile(fidencio._x + 40);
straightShootMissile(fidencio._x + 30);
straightShootMissile(fidencio._x - 40);
straightShootMissile(fidencio._x - 30);
straightShootMissile(fidencio._x - 20);
straightShootMissile(fidencio._x - 10);
}
} else if (_local30 == 2) {
hitByBoss = false;
if (fidencio.hitbox.hitTest(alice) && (fidencio.nCurrentLane == nCurrentLane)) {
if (((!bHit) && (!bDead)) && (nInvincible == 0)) {
hitByBoss = true;
if (nWeapNo == 1) {
alice.gotoAndStop("bhit");
}
if (nWeapNo == 2) {
alice.gotoAndStop("khit");
}
if (nWeapNo == 3) {
alice.gotoAndStop("shit");
}
_global.health--;
if (bRiding) {
_root.dog.gotoAndStop(1);
bRiding = false;
nDogCount--;
if (alice._x < 320) {
_root.dog._x = alice._x + 120;
}
if (alice._x >= 320) {
_root.dog._x = alice._x - 120;
}
if (nCurrentLane == 1) {
_root.dog._y = 439.05;
} else if (nCurrentLane == 2) {
_root.dog._y = 494.05;
} else if (nCurrentLane == 3) {
_root.dog._y = 540.05;
}
}
if (_global.health == 0) {
if (_global.lives == 1) {
backToMenu = true;
}
alice.gotoAndStop("dead");
bDead = true;
bDontGetUp = true;
deadTimer = setInterval(deadEnd, 1300);
} else {
hitTimer = setInterval(hitEnd, 150);
}
bHit = true;
this.removeMovieClip();
}
}
} else if (_local30 == 3) {
if (fidencio.bFacingRight) {
arcShootMissile(fidencio._x + 280);
arcShootMissile(fidencio._x + 180);
} else if (fidencio.bFacingLeft) {
arcShootMissile(fidencio._x + 60);
arcShootMissile(fidencio._x - 40);
}
}
}
}
}
alice._y = alice._y + nGravity;
nGravity++;
if ((((alice._x > 650) && (bNextScreen == true)) && (bGrounded)) && (!startBossFight)) {
bProgress = true;
bDoOnce = true;
}
if (nInvincible > 0) {
nInvincible--;
}
if (nItemCooldown > 0) {
nItemCooldown--;
}
if (nSelectionCooldown > 0) {
nSelectionCooldown--;
}
if (nUseMagicCooldown > 0) {
nUseMagicCooldown--;
}
if (nPauseTimer > 0) {
nPauseTimer--;
}
if (nSpeechCountdown > 0) {
nSpeechCountdown--;
}
if (alice._y > 650) {
alice._y = aResetPositions[0];
alice._x = aResetPositions[1];
}
if (this.camera.weapIcon.currentFrame != nWeapNo) {
this.camera.weapIcon.gotoAndStop(nWeapNo);
}
if (nWeapCooldown != 0) {
nWeapCooldown--;
}
switch (nCurrentLane) {
case 1 :
alice.swapDepths(1000);
while (_root.ground1.hitTest(alice._x, alice._y + 16, true) || (lane1.hitTest(alice._x, alice._y + 16, true))) {
if (bGrounded == false) {
bStopInput = true;
bGrounded = true;
if ((nWeapNo == 1) && (!bDead)) {
if (!bRiding) {
alice.gotoAndStop("land");
} else if (!_global.mag4addon) {
alice.gotoAndStop("dogidle");
} else {
alice.gotoAndStop("ndogidle");
}
landtimer = setInterval(landPause, 100);
}
if ((nWeapNo == 2) && (!bDead)) {
if (!bRiding) {
alice.gotoAndStop("kland");
} else if (!_global.mag4addon) {
alice.gotoAndStop("dogidle");
} else {
alice.gotoAndStop("ndogidle");
}
landtimer = setInterval(landPause, 100);
}
if ((nWeapNo == 3) && (!bDead)) {
if ((bJAttacking == true) && (!bRiding)) {
alice.gotoAndStop("stakejumpattack");
alice.sjumpattackMC.gotoAndStop("sAttackB");
smashtimer = setInterval(smashDown, 500 - _global.stakeSpe);
} else {
if (!bRiding) {
alice.gotoAndStop("sland");
} else if (!_global.mag4addon) {
alice.gotoAndStop("dogidle");
} else {
alice.gotoAndStop("ndogidle");
}
landtimer = setInterval(landPause, 100);
}
}
}
nGravity = 0;
alice._y--;
}
if ((alice._y >= 439) && (alice._y < 440)) {
alice._y = 439.05;
}
if ((alice._y > 439.05) && (bGrounded == true)) {
bStopInput = true;
bChangingLane = true;
nGravity = 0;
alice._y = alice._y - LANE_SPEED;
if (!bRiding) {
if ((nWeapNo == 1) && (!bHit)) {
alice.gotoAndStop("run");
}
if ((nWeapNo == 2) && (!bHit)) {
alice.gotoAndStop("krun");
}
if ((nWeapNo == 3) && (!bHit)) {
alice.gotoAndStop("srun");
}
} else if (!_global.mag4addon) {
alice.gotoAndStop("dogwalk");
} else {
alice.gotoAndStop("ndogwalk");
}
}
if (((alice._y <= 439.05) && (bGrounded == true)) && (bChangingLane)) {
bStopInput = false;
bChangingLane = false;
}
if (alice._y > 600) {
alice._y = 439.05;
bGrounded = true;
}
break;
case 2 :
alice.swapDepths(2000);
while (_root.ground2.hitTest(alice._x, alice._y + 16, true) || (lane2.hitTest(alice._x, alice._y + 16, true))) {
if (bGrounded == false) {
bStopInput = true;
bGrounded = true;
if ((nWeapNo == 1) && (!bDead)) {
if (!bRiding) {
alice.gotoAndStop("land");
} else if (!_global.mag4addon) {
alice.gotoAndStop("dogidle");
} else {
alice.gotoAndStop("ndogidle");
}
landtimer = setInterval(landPause, 100);
}
if ((nWeapNo == 2) && (!bDead)) {
if (!bRiding) {
alice.gotoAndStop("kland");
} else if (!_global.mag4addon) {
alice.gotoAndStop("dogidle");
} else {
alice.gotoAndStop("ndogidle");
}
landtimer = setInterval(landPause, 100);
}
if ((nWeapNo == 3) && (!bDead)) {
if ((bJAttacking == true) && (!bRiding)) {
alice.gotoAndStop("stakejumpattack");
alice.sjumpattackMC.gotoAndStop("sAttackB");
smashtimer = setInterval(smashDown, 500 - _global.stakeSpe);
} else {
if (!bRiding) {
alice.gotoAndStop("sland");
} else if (!_global.mag4addon) {
alice.gotoAndStop("dogidle");
} else {
alice.gotoAndStop("ndogidle");
}
landtimer = setInterval(landPause, 100);
}
}
}
nGravity = 0;
alice._y--;
}
if ((alice._y >= 494) && (alice._y < 495)) {
alice._y = 494.05;
}
if ((alice._y > 494.05) && (bGrounded == true)) {
bStopInput = true;
bChangingLane = true;
nGravity = 0;
alice._y = alice._y - LANE_SPEED;
if (!bRiding) {
if ((nWeapNo == 1) && (!bHit)) {
alice.gotoAndStop("run");
}
if ((nWeapNo == 2) && (!bHit)) {
alice.gotoAndStop("krun");
}
if ((nWeapNo == 3) && (!bHit)) {
alice.gotoAndStop("srun");
}
} else if (!_global.mag4addon) {
alice.gotoAndStop("dogwalk");
} else {
alice.gotoAndStop("ndogwalk");
}
}
if (((alice._y == 494.05) && (bGrounded == true)) && (bChangingLane)) {
bChangingLane = false;
bStopInput = false;
}
if (((alice._y < 494.05) && (bGrounded == true)) && (!bChangingLane)) {
bStopInput = true;
bChangingLane = true;
nGravity = 0;
alice._y = alice._y + LANE_SPEED;
if (!bRiding) {
if ((nWeapNo == 1) && (!bHit)) {
alice.gotoAndStop("run");
}
if ((nWeapNo == 2) && (!bHit)) {
alice.gotoAndStop("krun");
}
if ((nWeapNo == 3) && (!bHit)) {
alice.gotoAndStop("srun");
}
} else if (!_global.mag4addon) {
alice.gotoAndStop("dogwalk");
} else {
alice.gotoAndStop("ndogwalk");
}
}
break;
case 3 :
alice.swapDepths(3000);
while (_root.ground3.hitTest(alice._x, alice._y + 16, true) || (lane3.hitTest(alice._x, alice._y + 16, true))) {
if (bGrounded == false) {
bStopInput = true;
bGrounded = true;
if ((nWeapNo == 1) && (!bDead)) {
if (!bRiding) {
alice.gotoAndStop("land");
} else if (!_global.mag4addon) {
alice.gotoAndStop("dogidle");
} else {
alice.gotoAndStop("ndogidle");
}
landtimer = setInterval(landPause, 100);
}
if ((nWeapNo == 2) && (!bDead)) {
if (!bRiding) {
alice.gotoAndStop("kland");
} else if (!_global.mag4addon) {
alice.gotoAndStop("dogidle");
} else {
alice.gotoAndStop("ndogidle");
}
landtimer = setInterval(landPause, 100);
}
if ((nWeapNo == 3) && (!bDead)) {
if ((bJAttacking == true) && (!bRiding)) {
alice.gotoAndStop("stakejumpattack");
alice.sjumpattackMC.gotoAndStop("sAttackB");
smashtimer = setInterval(smashDown, 500 - _global.stakeSpe);
} else {
if (!bRiding) {
alice.gotoAndStop("sland");
} else if (!_global.mag4addon) {
alice.gotoAndStop("dogidle");
} else {
alice.gotoAndStop("ndogidle");
}
landtimer = setInterval(landPause, 100);
}
}
}
nGravity = 0;
alice._y--;
}
if ((alice._y >= 540) && (alice._y < 541)) {
alice._y = 540.05;
}
if (((alice._y < 540.05) && (bGrounded == true)) && (!bChangingLane)) {
bStopInput = true;
bChangingLane = true;
nGravity = 0;
alice._y = alice._y + LANE_SPEED;
if (!bRiding) {
if ((nWeapNo == 1) && (!bHit)) {
alice.gotoAndStop("run");
}
if ((nWeapNo == 2) && (!bHit)) {
alice.gotoAndStop("krun");
}
if ((nWeapNo == 3) && (!bHit)) {
alice.gotoAndStop("srun");
}
} else if (!_global.mag4addon) {
alice.gotoAndStop("dogwalk");
} else {
alice.gotoAndStop("ndogwalk");
}
}
if (((alice._y >= 540.05) && (bGrounded == true)) && (bChangingLane)) {
bStopInput = false;
bChangingLane = false;
}
break;
}
if ((_global.health == 0) && (!bDead)) {
alice.gotoAndStop("dead");
if (_global.lives == 1) {
backToMenu = true;
}
bDead = true;
nSpeed = 0;
bDontGetUp = true;
deadTimer = setInterval(deadEnd, 1300);
}
nSpeed = nSpeed * 0.88;
alice._x = alice._x + nSpeed;
if (alice._x < 10) {
alice._x = 10;
}
if ((alice._x > 640) && (!bNextScreen)) {
alice._x = 640;
}
if ((alice._x > 640) && (nScreenNo == 7)) {
alice._x = 640;
}
if (((((Key.isDown(32) && (!bStopInput)) && (!bUsingMagic)) && (nWeapCooldown == 0)) && (!bDead)) && (!bRiding)) {
effectSound = new Sound(this);
effectSound.attachSound("WeaponChange");
effectSound.start();
nWeapNo++;
if (nWeapNo > 3) {
nWeapNo = 1;
}
if (!bGrounded) {
if (nWeapNo == 1) {
alice.gotoAndStop("jump");
}
if (nWeapNo == 2) {
alice.gotoAndStop("kjump");
}
if (nWeapNo == 3) {
alice.gotoAndStop("sjump");
}
}
nWeapCooldown = 6;
}
if (Key.isDown(27) && (nPauseTimer == 0)) {
bPaused = true;
nPauseTimer = 5;
}
if ((((Key.isDown(69) && (!bStopInput)) && (!bUsingMagic)) && (nSelectionCooldown == 0)) && (!bDead)) {
nSelection++;
if ((nSelection == 1) && (_global.healthPacks == 0)) {
nSelection++;
}
if ((nSelection == 2) && (_global.heldGrenades == 0)) {
nSelection++;
}
if ((nSelection == 3) && (_global.manaPots == 0)) {
nSelection++;
}
if ((nSelection == 4) && (_global.heldCrossbows == 0)) {
nSelection++;
}
if ((nSelection == 5) && (_global.heldCrosses == 0)) {
nSelection++;
}
if (((((_global.heldGrenades == 0) && (_global.healthPacks == 0)) && (_global.manaPots == 0)) && (_global.heldCrossbows == 0)) && (_global.heldCrosses == 0)) {
nSelection = 0;
}
if (nSelection > 5) {
nSelection = 1;
}
nSelectionCooldown = 10;
}
bBlocking = false;
if (((((Key.isDown(65) && (!bStopInput)) && (!bUsingMagic)) && (!bDead)) && (!bRiding)) && (!hitByBoss)) {
bBlocking = true;
if (nBlockDashTimer > 0) {
nBlockDashTimer--;
}
if (nBlockDashRecharge > 0) {
nBlockDashRecharge--;
}
if (nBlockDashChance > 0) {
nBlockDashChance--;
}
if (nBlockDashTimer == 0) {
if (nWeapNo == 1) {
alice.gotoAndStop("block");
}
if (nWeapNo == 2) {
alice.gotoAndStop("kblock");
}
if (nWeapNo == 3) {
alice.gotoAndStop("sblock");
}
nSpeed = 0;
}
bKeyListener.onKeyUp = function () {
if ((Key.getCode() == 39) && (nBlockDashChance == 0)) {
nBlockDashChance = 10;
}
if ((Key.getCode() == 37) && (nBlockDashChance == 0)) {
nBlockDashChance = 10;
}
};
if ((((Key.isDown(37) && (nBlockDashTimer == 0)) && (nBlockDashRecharge == 0)) && (nBlockDashChance > 0)) && (!bDead)) {
if (nWeapNo == 1) {
alice.gotoAndStop("bblockdash");
}
if (nWeapNo == 2) {
alice.gotoAndStop("kblockdash");
}
if (nWeapNo == 3) {
alice.gotoAndStop("sblockdash");
}
nSpeed = -40;
nBlockDashTimer = 5;
nBlockDashRecharge = 25;
alice._xscale = -100;
bFacingLeft = false;
bFacingRight = true;
}
if ((((Key.isDown(39) && (nBlockDashTimer == 0)) && (nBlockDashRecharge == 0)) && (nBlockDashChance > 0)) && (!bDead)) {
if (nWeapNo == 1) {
alice.gotoAndStop("bblockdash");
}
if (nWeapNo == 2) {
alice.gotoAndStop("kblockdash");
}
if (nWeapNo == 3) {
alice.gotoAndStop("sblockdash");
}
nSpeed = 40;
nBlockDashTimer = 5;
nBlockDashRecharge = 25;
alice._xscale = 100;
bFacingLeft = true;
bFacingRight = false;
}
} else {
if (((Key.isDown(37) && (!bStopInput)) && (!bUsingMagic)) && (!bDead)) {
if (nSpeed > 0) {
nDashCooldown = 20;
}
if (nDashCooldown > 0) {
nDashCooldown--;
}
if (nSpeed >= (-nMaxmove)) {
nSpeed--;
}
if ((nSpeed < (-nMaxmove)) && (nDashChance == 0)) {
nSpeed = -nMaxmove;
}
alice._xscale = 100;
bFacingLeft = true;
bFacingRight = false;
if (bGrounded == true) {
if (!bRiding) {
if ((nWeapNo == 1) && (!bHit)) {
alice.gotoAndStop("run");
}
if ((nWeapNo == 2) && (!bHit)) {
alice.gotoAndStop("krun");
}
if ((nWeapNo == 3) && (!bHit)) {
alice.gotoAndStop("srun");
}
} else if (!_global.mag4addon) {
alice.gotoAndStop("dogwalk");
} else {
alice.gotoAndStop("ndogwalk");
}
}
if ((nDashChance != 0) && (nDashCooldown == 0)) {
if (((nWeapNo == 1) && (!bHit)) && (!bRiding)) {
alice.gotoAndStop("dashbat");
}
if (((nWeapNo == 2) && (!bHit)) && (!bRiding)) {
alice.gotoAndStop("dashkat");
}
if (((nWeapNo == 3) && (!bHit)) && (!bRiding)) {
alice.gotoAndStop("dashstake");
}
nSpeed = -35;
nDashChance--;
if (nDashChance == 0) {
nDashCooldown = 10;
}
}
if ((nDashChance != 0) && (nDashCooldown != 0)) {
nDashChance = 0;
}
} else if (((Key.isDown(39) && (!bStopInput)) && (!bUsingMagic)) && (!bDead)) {
if (nSpeed < 0) {
nDashCooldown = 20;
}
if (nDashCooldown > 0) {
nDashCooldown--;
}
if (nSpeed <= nMaxmove) {
nSpeed++;
}
if ((nSpeed > nMaxmove) && (nDashChance == 0)) {
nSpeed = nMaxmove;
}
alice._xscale = -100;
bFacingLeft = false;
bFacingRight = true;
if (bGrounded == true) {
if (!bRiding) {
if ((nWeapNo == 1) && (!bHit)) {
alice.gotoAndStop("run");
}
if ((nWeapNo == 2) && (!bHit)) {
alice.gotoAndStop("krun");
}
if ((nWeapNo == 3) && (!bHit)) {
alice.gotoAndStop("srun");
}
} else if (!_global.mag4addon) {
alice.gotoAndStop("dogwalk");
} else {
alice.gotoAndStop("ndogwalk");
}
}
if ((nDashChance != 0) && (nDashCooldown == 0)) {
if (((nWeapNo == 1) && (!bHit)) && (!bRiding)) {
alice.gotoAndStop("dashbat");
}
if (((nWeapNo == 2) && (!bHit)) && (!bRiding)) {
alice.gotoAndStop("dashkat");
}
if (((nWeapNo == 3) && (!bHit)) && (!bRiding)) {
alice.gotoAndStop("dashstake");
}
nSpeed = 35;
nDashChance--;
if (nDashChance == 0) {
nDashCooldown = 20;
}
}
if ((nDashChance != 0) && (nDashCooldown != 0)) {
nDashChance = 0;
}
} else if (((nSpeed < 1) && (nSpeed > -1)) && (!bDead)) {
nSpeed = 0;
nDashChance = 0;
nDashCooldown = 20;
if ((bGrounded && (!bStopInput)) && (!bUsingMagic)) {
if (!bRiding) {
if ((nWeapNo == 1) && (!bHit)) {
alice.gotoAndStop("idle");
}
if ((nWeapNo == 2) && (!bHit)) {
alice.gotoAndStop("kidle");
}
if ((nWeapNo == 3) && (!bHit)) {
alice.gotoAndStop("sidle");
}
} else if (!_global.mag4addon) {
alice.gotoAndStop("dogidle");
} else {
alice.gotoAndStop("ndogidle");
}
}
}
if (((((Key.isDown(83) && (bGrounded == true)) && (!bStopInput)) && (!bUsingMagic)) && (nGravity == 0)) && (!bDead)) {
nGravity = -14;
bGrounded = false;
if (!bRiding) {
if ((nWeapNo == 1) && (!bHit)) {
alice.gotoAndStop("jump");
}
if ((nWeapNo == 2) && (!bHit)) {
alice.gotoAndStop("kjump");
}
if ((nWeapNo == 3) && (!bHit)) {
alice.gotoAndStop("sjump");
}
} else if (!_global.mag4addon) {
alice.gotoAndStop("dogjump");
} else {
alice.gotoAndStop("ndogjump");
}
}
if (((Key.isDown(68) && (bDead)) && (_global.lives > 0)) && (!bDontGetUp)) {
effectSound = new Sound(this);
effectSound.attachSound("Respawn");
effectSound.start();
bDead = false;
bStopInput = false;
nInvincible = 50;
_global.health = _global.maxHealth;
_global.lives--;
}
if ((((((Key.isDown(68) && (!bGrounded)) && (!bStopInput)) && (!bUsingMagic)) && (!bJAttacking)) && (!bDead)) && (!bRiding)) {
if (nWeapNo == 1) {
alice.gotoAndStop("batjumpattack");
bJAttacking = true;
bHitChance = true;
}
if (nWeapNo == 2) {
alice.gotoAndStop("katjumpattack");
bJAttacking = true;
bHitChance = true;
}
if (nWeapNo == 3) {
if (nGravity > 0) {
alice.gotoAndStop("stakejumpattack");
alice.sjumpattackMC.gotoAndStop("sAttackA");
nSpeed = 0;
if (nGravity < 12) {
nGravity = 12;
}
bJAttacking = true;
bHitChance = true;
}
}
}
if (((((Key.isDown(68) && (bGrounded == true)) && (!bStopInput)) && (!bUsingMagic)) && (!bAttacking)) && (!bDead)) {
if ((startBossFight && (this.hitTest(fidencio.hitbox))) && (fidencio.sState == "prone")) {
fidencio.hurt.gotoAndStop(2);
if (!bRiding) {
if (nWeapNo == 1) {
if (_global.batDam2) {
nBossDamage = nBossDamage + 3;
} else if (_global.batDam1) {
nBossDamage = nBossDamage + 2;
} else {
nBossDamage++;
}
}
if (nWeapNo == 2) {
if (_global.katDam2) {
nBossDamage = nBossDamage + 3;
} else if (_global.katDam1) {
nBossDamage = nBossDamage + 2;
} else {
nBossDamage++;
}
}
if (nWeapNo == 3) {
if (_global.stakeDam2) {
nBossDamage = nBossDamage + 3;
} else if (_global.stakeDam1) {
nBossDamage = nBossDamage + 2;
} else {
nBossDamage++;
}
}
}
if (bRiding) {
nBossDamage = nBossDamage + 10;
}
camera.bosslifebars.fid.bar._xscale = 100 - nBossDamage;
if (nBossDamage >= 100) {
boss1.gotoAndStop(5);
camera.bosslifebars.gotoAndStop(1);
startBossFight = false;
}
}
if (bRiding) {
if (!_global.mag4addon) {
alice.gotoAndStop("dogattack");
} else {
alice.gotoAndStop("ndogattack");
blasttimer = setInterval(blaststart, 700);
}
bDogAttack = true;
dogAttackTimer = setInterval(dogAttackEnd, 1200);
} else if (nAttack == 0) {
if (nWeapNo == 1) {
alice.gotoAndStop("attackbat");
alice.attackBAT.gotoAndStop("batattackA");
bAttackAtimer = setInterval(batAttackAEnd, 500 - _global.batSpe);
}
if (nWeapNo == 2) {
alice.gotoAndStop("attackkat");
alice.attackKAT.gotoAndStop("katattackA");
kAttackAtimer = setInterval(katAttackAEnd, 400 - _global.katSpe);
}
if (nWeapNo == 3) {
alice.gotoAndStop("attackstake");
sAttacktimer = setInterval(stakeAttackEnd, 600 - _global.stakeSpe);
}
nAttack = 1;
} else if (nAttack == 1) {
if (nWeapNo == 1) {
alice.gotoAndStop("attackbat");
alice.attackBAT.gotoAndStop("batattackB");
bAttackBtimer = setInterval(batAttackBEnd, 300 - _global.batSpe);
}
if (nWeapNo == 2) {
alice.gotoAndStop("attackkat");
alice.attackKAT.gotoAndStop("katattackB");
kAttackBtimer = setInterval(katAttackBEnd, 400 - _global.katSpe);
}
if (nWeapNo == 3) {
alice.gotoAndStop("attackstake");
sAttacktimer = setInterval(stakeAttackEnd, 600 - _global.stakeSpe);
}
nAttack = 0;
}
bStopInput = true;
if ((nDashChance == 0) && (nDashCooldown != 0)) {
nSpeed = 0;
}
bAttacking = true;
bHitChance = true;
} else if (((((Key.isDown(68) && (bGrounded == true)) && (!bStopInput)) && (bUsingMagic)) && (nUseMagicCooldown == 0)) && (!bDead)) {
bUsingMagic = false;
nChargeAmount = 0;
bStopInput = true;
if (nWeapNo == 1) {
alice.gotoAndStop("batmagicuse");
magictimer = setInterval(usemagictime, 300);
}
if (nWeapNo == 2) {
alice.gotoAndStop("katmagicuse");
magictimer = setInterval(usemagictime, 300);
}
if (nWeapNo == 3) {
alice.gotoAndStop("stakemagicuse");
magictimer = setInterval(usemagictime, 300);
}
if (((_root.camera.manabar.charge._currentframe - 1) == 1) && (!bProgress)) {
nUseMagicCooldown = 30;
_global.mana = _global.mana - 1;
fireball();
nFireballs++;
}
if (((_root.camera.manabar.charge._currentframe - 1) == 2) && (!bProgress)) {
nUseMagicCooldown = 30;
_global.mana = _global.mana - 2;
darkbolt(false);
nBolts++;
if (_global.mag2addon) {
darkbolt(true);
nBolts++;
}
}
if ((((_root.camera.manabar.charge._currentframe - 1) == 3) && (!bProgress)) && (!bPupsOnScreen)) {
nUseMagicCooldown = 30;
_global.mana = _global.mana - 3;
var _local29;
if (_global.mag3addon) {
_local29 = 40;
} else {
_local29 = 20;
}
bPupsOnScreen = true;
var _local18 = 0;
while (_local18 < _local29) {
createPuppy(nPuppiesOnScreen, nGrenadesOnScreen);
nPuppiesOnScreen++;
nGrenadesOnScreen++;
_local18++;
}
}
if (((_root.camera.manabar.charge._currentframe - 1) == 4) && (!bProgress)) {
nUseMagicCooldown = 30;
_global.mana = _global.mana - 4;
createDog();
bDogOnScreen = true;
}
if (((_root.camera.manabar.charge._currentframe - 1) == 5) && (!bProgress)) {
nUseMagicCooldown = 30;
_global.mana = _global.mana - 5;
createKen();
bKenOnScreen = true;
}
}
oKeyListener.onKeyUp = function () {
if (Key.getCode() == 68) {
bAttacking = false;
}
if (((Key.getCode() == 39) && (nSpeed > 3)) && (nDashChance == 0)) {
nDashChance = 2;
}
if (((Key.getCode() == 37) && (nSpeed < -3)) && (nDashChance == 0)) {
nDashChance = 2;
}
};
if ((((Key.isDown(38) && (!bStopInput)) && (!bUsingMagic)) && (bGrounded)) && (!bDead)) {
if (nCurrentLane > 1) {
nCurrentLane--;
bStopInput = true;
}
}
if (((((Key.isDown(40) && (!bStopInput)) && (!bUsingMagic)) && (bGrounded)) && (!bDead)) && (alice._y > 439)) {
if (nCurrentLane < 3) {
nCurrentLane++;
bStopInput = true;
}
}
if (((Key.isDown(82) && (!bStopInput)) && (!bUsingMagic)) && (!bDead)) {
if (((_root.camera.secondaryslot._currentframe == 2) && (nItemCooldown == 0)) && (_global.health < _global.maxHealth)) {
nItemCooldown = 20;
_global.healthPacks--;
_global.health = _global.health + _global.healAmount;
if (_global.health > _global.maxHealth) {
_global.health = _global.maxHealth;
}
effectSound = new Sound(this);
effectSound.attachSound("healthPickup");
effectSound.start();
} else if ((((_root.camera.secondaryslot._currentframe == 3) && (nItemCooldown == 0)) && (!bNextScreen)) && (!bRiding)) {
nItemCooldown = 20;
_global.heldGrenades--;
nGrenadesOnScreen++;
throwGrenade(alice._x, alice._y, bFacingRight, nGrenadesOnScreen, nCurrentLane);
} else if (((_root.camera.secondaryslot._currentframe == 4) && (nItemCooldown == 0)) && (_global.mana < _global.maxMana)) {
nItemCooldown = 20;
_global.manaPots--;
_global.mana = _global.mana + _global.manaAmount;
if (_global.mana > _global.maxMana) {
_global.mana = _global.maxMana;
}
effectSound = new Sound(this);
effectSound.attachSound("manaUp");
effectSound.start();
} else if ((((_root.camera.secondaryslot._currentframe == 5) && (nItemCooldown == 0)) && (!bNextScreen)) && (!bRiding)) {
nItemCooldown = 20;
alice.gotoAndStop("crossbow");
bStopInput = true;
shootTimer = setInterval(shooting, 300);
_global.heldCrossbows--;
nCrossbowBolts++;
crossbowFire();
} else if ((((_root.camera.secondaryslot._currentframe == 6) && (nItemCooldown == 0)) && (!bNextScreen)) && (!bRiding)) {
nItemCooldown = 20;
bStopInput = true;
bUsingCross = true;
if (!_global.longCross) {
alice.gotoAndStop("crossshort");
crossTimer = setInterval(crossfunc, 600);
} else {
alice.gotoAndStop("cross");
crossTimer = setInterval(crossfunc, 1200);
}
_global.heldCrosses--;
}
}
}
};
Frame 9
function traceALLMC(mc) {
for (var _local2 in mc) {
if (typeof(mc[_local2]) == "movieclip") {
trace(mc[_local2]._name);
if (mc[_local2].sType != undefined) {
trace(" " + mc[_local2].sType);
}
traceALLMC(mc[_local2]);
}
}
}
stop();
stopAllSounds();
musicSound = new Sound(this);
musicSound.attachSound("tryhardershort");
musicSound.start(0, 999);
var counter = 20;
alice.removeMovieClip();
camera.gotoAndStop(2);
camera._x = 321.8;
camera._y = 208;
_global.lives = 3;
_global.health = 12;
_global.mana = 0;
camera.swapDepths(9999);
pointer.swapDepths(99999);
Mouse.hide();
startDrag (pointer, true);
this.onEnterFrame = function () {
if (counter > 0) {
counter--;
}
if (Key.isDown(68) && (counter == 0)) {
_global.heldGibs = _global.heldGibs - 100;
if (_global.heldGibs < 0) {
_global.heldGibs = 0;
}
_global.health = _global.maxHealth;
_global.mana = _global.maxMana;
_global.lives = 3;
stopAllSounds();
_root.gotoAndStop(3);
}
};
buylivesbutt.onRelease = function () {
_global.heldGibs = _global.heldGibs - 100;
if (_global.heldGibs < 0) {
_global.heldGibs = 0;
}
_global.health = _global.maxHealth;
_global.mana = _global.maxMana;
_global.lives = 3;
stopAllSounds();
_root.gotoAndStop(3);
};
Frame 10
stop();
stopAllSounds();
stopAllSounds();
_root.gotoAndStop(2);
if (_global.mute == false) {
s = new Sound();
s.setVolume(80);
}
Symbol 24 MovieClip Frame 1
stop();
Symbol 24 MovieClip Frame 2
stop();
Symbol 24 MovieClip Frame 3
stop();
Symbol 24 MovieClip Frame 4
stop();
Symbol 31 MovieClip Frame 1
stop();
Symbol 31 MovieClip Frame 2
stop();
Symbol 31 MovieClip Frame 3
stop();
Symbol 31 MovieClip Frame 4
stop();
Symbol 38 MovieClip Frame 1
stop();
Symbol 38 MovieClip Frame 2
stop();
Symbol 38 MovieClip Frame 3
stop();
Symbol 38 MovieClip Frame 4
stop();
Symbol 41 MovieClip Frame 1
stop();
Symbol 41 MovieClip Frame 2
stop();
Symbol 41 MovieClip Frame 3
stop();
Symbol 41 MovieClip Frame 4
stop();
Symbol 44 MovieClip Frame 1
stop();
Symbol 44 MovieClip Frame 2
stop();
Symbol 44 MovieClip Frame 3
stop();
Symbol 44 MovieClip Frame 4
stop();
Symbol 51 MovieClip Frame 1
stop();
Symbol 51 MovieClip Frame 2
stop();
Symbol 51 MovieClip Frame 3
stop();
Symbol 51 MovieClip Frame 4
stop();
Symbol 58 MovieClip Frame 1
stop();
Symbol 58 MovieClip Frame 2
stop();
Symbol 58 MovieClip Frame 3
stop();
Symbol 58 MovieClip Frame 4
stop();
Symbol 65 MovieClip Frame 1
stop();
Symbol 65 MovieClip Frame 2
stop();
Symbol 65 MovieClip Frame 3
stop();
Symbol 65 MovieClip Frame 4
stop();
Symbol 68 MovieClip Frame 1
stop();
Symbol 68 MovieClip Frame 2
stop();
Symbol 68 MovieClip Frame 3
stop();
Symbol 68 MovieClip Frame 4
stop();
Symbol 71 MovieClip Frame 1
stop();
Symbol 71 MovieClip Frame 2
stop();
Symbol 71 MovieClip Frame 3
stop();
Symbol 71 MovieClip Frame 4
stop();
Symbol 78 MovieClip Frame 1
stop();
Symbol 78 MovieClip Frame 2
stop();
Symbol 78 MovieClip Frame 3
stop();
Symbol 78 MovieClip Frame 4
stop();
Symbol 85 MovieClip Frame 1
stop();
Symbol 85 MovieClip Frame 2
stop();
Symbol 85 MovieClip Frame 3
stop();
Symbol 85 MovieClip Frame 4
stop();
Symbol 92 MovieClip Frame 1
stop();
Symbol 92 MovieClip Frame 2
stop();
Symbol 92 MovieClip Frame 3
stop();
Symbol 92 MovieClip Frame 4
stop();
Symbol 95 MovieClip Frame 1
stop();
Symbol 95 MovieClip Frame 2
stop();
Symbol 95 MovieClip Frame 3
stop();
Symbol 95 MovieClip Frame 4
stop();
Symbol 98 MovieClip Frame 1
stop();
Symbol 98 MovieClip Frame 2
stop();
Symbol 98 MovieClip Frame 3
stop();
Symbol 98 MovieClip Frame 4
stop();
Symbol 101 MovieClip Frame 1
stop();
Symbol 101 MovieClip Frame 2
stop();
Symbol 101 MovieClip Frame 3
stop();
Symbol 101 MovieClip Frame 4
stop();
Symbol 108 MovieClip Frame 1
stop();
Symbol 108 MovieClip Frame 2
stop();
Symbol 108 MovieClip Frame 3
stop();
Symbol 108 MovieClip Frame 4
stop();
Symbol 115 MovieClip Frame 1
stop();
Symbol 115 MovieClip Frame 2
stop();
Symbol 115 MovieClip Frame 3
stop();
Symbol 115 MovieClip Frame 4
stop();
Symbol 122 MovieClip Frame 1
stop();
Symbol 122 MovieClip Frame 2
stop();
Symbol 122 MovieClip Frame 3
stop();
Symbol 122 MovieClip Frame 4
stop();
Symbol 129 MovieClip Frame 1
stop();
Symbol 129 MovieClip Frame 2
stop();
Symbol 129 MovieClip Frame 3
stop();
Symbol 129 MovieClip Frame 4
stop();
Symbol 136 MovieClip Frame 1
stop();
Symbol 136 MovieClip Frame 2
stop();
Symbol 136 MovieClip Frame 3
stop();
Symbol 136 MovieClip Frame 4
stop();
Symbol 143 MovieClip Frame 1
stop();
Symbol 143 MovieClip Frame 2
stop();
Symbol 143 MovieClip Frame 3
stop();
Symbol 143 MovieClip Frame 4
stop();
Symbol 150 MovieClip Frame 1
stop();
Symbol 150 MovieClip Frame 2
stop();
Symbol 150 MovieClip Frame 3
stop();
Symbol 150 MovieClip Frame 4
stop();
Symbol 157 MovieClip Frame 1
stop();
Symbol 157 MovieClip Frame 2
stop();
Symbol 157 MovieClip Frame 3
stop();
Symbol 157 MovieClip Frame 4
stop();
Symbol 164 MovieClip Frame 1
stop();
Symbol 164 MovieClip Frame 2
stop();
Symbol 164 MovieClip Frame 3
stop();
Symbol 164 MovieClip Frame 4
stop();
Symbol 171 MovieClip Frame 1
stop();
Symbol 171 MovieClip Frame 2
stop();
Symbol 171 MovieClip Frame 3
stop();
Symbol 171 MovieClip Frame 4
stop();
Symbol 180 MovieClip Frame 15
stop();
Symbol 181 MovieClip Frame 1
stop();
Symbol 181 MovieClip Frame 2
stop();
Symbol 186 MovieClip Frame 1
stop();
Symbol 186 MovieClip Frame 2
stop();
Symbol 191 MovieClip Frame 1
stop();
Symbol 191 MovieClip Frame 2
stop();
Symbol 196 MovieClip Frame 1
stop();
Symbol 196 MovieClip Frame 2
stop();
Symbol 200 MovieClip [shop] Frame 1
#initclip 43
Object.registerClass("shop", shop);
#endinitclip
function updateAll() {
if (bUpdateAll) {
bUpdateAll = false;
var _local2 = index;
while (_local2 < (index + 8)) {
var _local3 = "perk" + _local2;
this[_local3].updatethis();
_local2++;
}
}
}
stop();
var bSetUpMenu = true;
var nPriceFaderNo = 0;
var bShowDesc = false;
var index = 0;
var selection = 0;
var wait = 25;
var description;
var bUpdateAll = false;
onEnterFrame = function () {
if (!bShowDesc) {
descbox.gotoAndStop(1);
} else {
descbox.gotoAndStop(2);
descbox.descbox.descfader.desc.text = description;
}
if (bSetUpMenu) {
if (items._currentframe == 2) {
var b = 0;
while (b < this.itemsList.length) {
var _local4 = "option" + b;
this[_local4].removeMovieClip();
b++;
}
index = 0;
this.upgrademenu.removeMovieClip();
this.arrowbut1.removeMovieClip();
this.arrowbut2.removeMovieClip();
var b = 0;
while (b < this.perksList.length) {
var _local4 = "perk" + b;
this[_local4].removeMovieClip();
b++;
}
var b = 0;
while (b < this.itemsList.length) {
var _local4 = "option" + b;
attachMovie("option", _local4, this.getNextHighestDepth());
this[_local4]._y = 60 + (b * 45);
this[_local4]._x = 320;
this[_local4].b = b;
this[_local4].price.text = itemsList[b].itemPrice;
this[_local4].name.text = itemsList[b].itemName;
this[_local4].countdown = 0;
this[_local4].description = itemsList[b].itemDesc;
this[_local4].onEnterFrame = function () {
countdown++;
};
this[_local4].onPress = function () {
if (_global.heldGibs >= this.price.text) {
var _local3 = true;
if ((this.name.text == "HEALTH PACK") && (_global.healthPacks >= 9)) {
_local3 = false;
}
if ((this.name.text == "MANA POTION") && (_global.manaPots >= 9)) {
_local3 = false;
}
if ((this.name.text == "CROSS") && (_global.heldCrosses >= 99)) {
_local3 = false;
}
if ((this.name.text == "CROSSBOW x 5") && (_global.heldCrossbows >= 99)) {
_local3 = false;
}
if ((this.name.text == "GRENADE x 3") && (_global.heldGrenades >= 99)) {
_local3 = false;
}
if (((this.name.text == "FULL RESTORE") && (_global.health >= _global.maxHealth)) && (_global.mana >= _global.maxMana)) {
_local3 = false;
}
if ((this.name.text == "LIFE") && (_global.lives >= 9)) {
_local3 = false;
}
if ((countdown >= 60) && (_local3)) {
if (this.name.text == "HEALTH PACK") {
_global.healthPacks++;
}
if (this.name.text == "MANA POTION") {
_global.manaPots++;
}
if (this.name.text == "CROSS") {
_global.heldCrosses++;
}
if (this.name.text == "CROSSBOW x 5") {
_global.heldCrossbows = _global.heldCrossbows + 5;
if (_global.heldCrossbows > 99) {
_global.heldCrossbows = 99;
}
}
if (this.name.text == "GRENADE x 3") {
_global.heldGrenades = _global.heldGrenades + 3;
if (_global.heldGrenades > 99) {
_global.heldGrenades = 99;
}
}
if (this.name.text == "FULL RESTORE") {
_global.health = _global.maxHealth;
_global.mana = _global.maxMana;
}
if (this.name.text == "LIFE") {
_global.lives++;
}
_global.heldGibs = _global.heldGibs - this.price.text;
countdown = 0;
var _local4 = "fade" + nPriceFaderNo;
this.attachMovie("pricefader", _local4, this.getNextHighestDepth());
this[_local4]._x = 250;
this[_local4]._y = -20;
this[_local4].price.priceblip.text = this.price.text;
nPriceFaderNo++;
}
}
};
this[_local4].pressFunc = function () {
if (_global.heldGibs >= this.price.text) {
var _local3 = true;
if ((this.name.text == "HEALTH PACK") && (_global.healthPacks >= 9)) {
_local3 = false;
}
if ((this.name.text == "MANA POTION") && (_global.manaPots >= 9)) {
_local3 = false;
}
if ((this.name.text == "CROSS") && (_global.heldCrosses >= 99)) {
_local3 = false;
}
if ((this.name.text == "CROSSBOW x 5") && (_global.heldCrossbows >= 99)) {
_local3 = false;
}
if ((this.name.text == "GRENADE x 3") && (_global.heldGrenades >= 99)) {
_local3 = false;
}
if (((this.name.text == "FULL RESTORE") && (_global.health >= _global.maxHealth)) && (_global.mana >= _global.maxMana)) {
_local3 = false;
}
if ((this.name.text == "LIFE") && (_global.lives >= 9)) {
_local3 = false;
}
if ((countdown >= 60) && (_local3)) {
if (this.name.text == "HEALTH PACK") {
_global.healthPacks++;
}
if (this.name.text == "MANA POTION") {
_global.manaPots++;
}
if (this.name.text == "CROSS") {
_global.heldCrosses++;
}
if (this.name.text == "CROSSBOW x 5") {
_global.heldCrossbows = _global.heldCrossbows + 5;
if (_global.heldCrossbows > 99) {
_global.heldCrossbows = 99;
}
}
if (this.name.text == "GRENADE x 3") {
_global.heldGrenades = _global.heldGrenades + 3;
if (_global.heldGrenades > 99) {
_global.heldGrenades = 99;
}
}
if (this.name.text == "FULL RESTORE") {
_global.health = _global.maxHealth;
_global.mana = _global.maxMana;
}
if (this.name.text == "LIFE") {
_global.lives++;
}
_global.heldGibs = _global.heldGibs - this.price.text;
countdown = 0;
var _local4 = "fade" + nPriceFaderNo;
this.attachMovie("pricefader", _local4, this.getNextHighestDepth());
this[_local4]._x = 250;
this[_local4]._y = -20;
this[_local4].price.priceblip.text = this.price.text;
nPriceFaderNo++;
}
}
};
this[_local4].onRollOut = function () {
bShowDesc = false;
};
this[_local4].onRollOver = function () {
bShowDesc = true;
description = this.description;
trace(this.b);
selection = this.b;
};
this[_local4].rollOverFunc = function () {
bShowDesc = true;
description = this.description;
trace(this.b);
selection = this.b;
};
b++;
}
} else if (upgrades._currentframe == 2) {
var b = 0;
while (b < this.itemsList.length) {
var _local4 = "option" + b;
this[_local4].removeMovieClip();
b++;
}
this.upgrademenu.removeMovieClip();
this.arrowbut1.removeMovieClip();
this.arrowbut2.removeMovieClip();
var b = 0;
while (b < this.perksList.length) {
var _local4 = "perk" + b;
this[_local4].removeMovieClip();
b++;
}
index = 0;
attachMovie("upgrades", "upgrademenu", this.getNextHighestDepth());
this.upgrademenu._y = 50;
this.upgrademenu._x = 320.8;
this.upgrademenu.doOnce = true;
this.upgrademenu.upgradesList = upgradesList;
this.upgrademenu.onEnterFrame = function () {
if (this.doOnce) {
this.doOne = false;
var c = 0;
while (c < 27) {
var butn = ("b" + c);
this[butn].thisUpgrade = this.upgradesList[c];
this[butn].c = c;
this[butn].previousf = this["b" + Number(c - 1)]._currentframe;
this[butn].state18 = this.b18._currentframe;
this[butn].state19 = this.b19._currentframe;
this[butn].state20 = this.b20._currentframe;
this[butn].state21 = this.b21._currentframe;
if ((c == 0) && (_global.batDam1)) {
this[butn].gotoAndStop(2);
}
if ((c == 1) && (_global.batSpe > 0)) {
this[butn].gotoAndStop(2);
}
if ((c == 2) && (_global.batCutSlimes)) {
this[butn].gotoAndStop(2);
}
if ((c == 3) && (_global.batDam2)) {
this[butn].gotoAndStop(2);
}
if ((c == 4) && (_global.batSpe > 50)) {
this[butn].gotoAndStop(2);
}
if ((c == 5) && (_global.batOneFat)) {
this[butn].gotoAndStop(2);
}
if ((c == 6) && (_global.katDam1)) {
this[butn].gotoAndStop(2);
}
if ((c == 7) && (_global.katSpe > 0)) {
this[butn].gotoAndStop(2);
}
if ((c == 8) && (_global.katDam2)) {
this[butn].gotoAndStop(2);
}
if ((c == 9) && (_global.katSpe > 50)) {
this[butn].gotoAndStop(2);
}
if ((c == 10) && (_global.katOneVamp)) {
this[butn].gotoAndStop(2);
}
if ((c == 11) && (_global.stakeDam1)) {
this[butn].gotoAndStop(2);
}
if ((c == 12) && (_global.stakeSpe > 0)) {
this[butn].gotoAndStop(2);
}
if ((c == 13) && (_global.stakeCutSlimes)) {
this[butn].gotoAndStop(2);
}
if ((c == 14) && (_global.stakeDam2)) {
this[butn].gotoAndStop(2);
}
if ((c == 15) && (_global.stakeOneVamp)) {
this[butn].gotoAndStop(2);
}
if ((c == 16) && (_global.stakeSpe > 50)) {
this[butn].gotoAndStop(2);
}
if ((c == 17) && (_global.stakeOneWere)) {
this[butn].gotoAndStop(2);
}
if ((c == 18) && (_global.mag2)) {
this[butn].gotoAndStop(2);
}
if ((c == 19) && (_global.mag3)) {
this[butn].gotoAndStop(2);
}
if ((c == 20) && (_global.mag4)) {
this[butn].gotoAndStop(2);
}
if ((c == 21) && (_global.mag5)) {
this[butn].gotoAndStop(2);
}
if ((c == 22) && (_global.mag1addon)) {
this[butn].gotoAndStop(2);
}
if ((c == 23) && (_global.mag2addon)) {
this[butn].gotoAndStop(2);
}
if ((c == 24) && (_global.mag3addon)) {
this[butn].gotoAndStop(2);
}
if ((c == 25) && (_global.mag4addon)) {
this[butn].gotoAndStop(2);
}
if ((c == 26) && (_global.mag5addon)) {
this[butn].gotoAndStop(2);
}
this[butn].onPress = this[butn].pressFunc;
this[butn].pressFunc = function () {
var _local6 = Number(this.c - 1);
_local6 = "b" + _local6;
var _local4 = false;
if (_global.heldGibs >= this.thisUpgrade.upPrice) {
if ((this.c <= 5) && (this.c > 0)) {
if (this.previousf == 2) {
_local4 = true;
}
if ((this.c == 1) && _local4) {
_global.batSpe = 50;
}
if ((this.c == 2) && _local4) {
_global.batCutSlimes = true;
}
if ((this.c == 3) && _local4) {
_global.batDam2 = true;
}
if ((this.c == 4) && _local4) {
_global.batSpe = 100;
}
if ((this.c == 5) && _local4) {
_global.batOneFat = true;
if (!_global.ach8) {
_global.ach8 = true;
_root.camera.achunlock.gotoAndStop(9);
}
}
} else if ((this.c <= 10) && (this.c > 6)) {
if (this.previousf == 2) {
_local4 = true;
}
if ((this.c == 7) && _local4) {
_global.katSpe = 50;
}
if ((this.c == 8) && _local4) {
_global.katDam2 = true;
}
if ((this.c == 9) && _local4) {
_global.katSpe = 100;
}
if ((this.c == 10) && _local4) {
_global.katOneVamp = true;
if (!_global.ach9) {
_global.ach9 = true;
_root.camera.achunlock.gotoAndStop(10);
}
}
} else if ((this.c <= 17) && (this.c > 11)) {
if (this.previousf == 2) {
_local4 = true;
}
if ((this.c == 12) && _local4) {
_global.stakeSpe = 50;
}
if ((this.c == 13) && _local4) {
_global.stakeCutSlimes = true;
}
if ((this.c == 14) && _local4) {
_global.stakeDam2 = true;
}
if ((this.c == 15) && _local4) {
_global.stakeOneVamp = true;
}
if ((this.c == 16) && _local4) {
_global.stakeSpe = 100;
}
if ((this.c == 17) && _local4) {
_global.stakeOneWere = true;
if (!_global.ach10) {
_global.ach10 = true;
_root.camera.achunlock.gotoAndStop(11);
}
}
} else if ((this.c <= 21) && (this.c > 18)) {
if (this.previousf == 2) {
_local4 = true;
}
if ((this.c == 19) && _local4) {
_global.mag3 = true;
}
if ((this.c == 20) && _local4) {
_global.mag4 = true;
}
if ((this.c == 21) && _local4) {
_global.mag5 = true;
}
} else if (this.c == 23) {
if (this.state18 == 2) {
_local4 = true;
_global.mag2addon = true;
if ((((((!_global.ach11) && _global.mag1addon) && _global.mag2addon) && _global.mag3addon) && _global.mag4addon) && _global.mag5addon) {
_global.ach11 = true;
_root.camera.achunlock.gotoAndStop(12);
}
}
} else if (this.c == 24) {
if (this.state19 == 2) {
_local4 = true;
_global.mag3addon = true;
if ((((((!_global.ach11) && _global.mag1addon) && _global.mag2addon) && _global.mag3addon) && _global.mag4addon) && _global.mag5addon) {
_global.ach11 = true;
_root.camera.achunlock.gotoAndStop(12);
}
}
} else if (this.c == 25) {
if (this.state20 == 2) {
_local4 = true;
_global.mag4addon = true;
if ((((((!_global.ach11) && _global.mag1addon) && _global.mag2addon) && _global.mag3addon) && _global.mag4addon) && _global.mag5addon) {
_global.ach11 = true;
_root.camera.achunlock.gotoAndStop(12);
}
}
} else if (this.c == 26) {
if (this.state21 == 2) {
_local4 = true;
_global.mag5addon = true;
if ((((((!_global.ach11) && _global.mag1addon) && _global.mag2addon) && _global.mag3addon) && _global.mag4addon) && _global.mag5addon) {
_global.ach11 = true;
_root.camera.achunlock.gotoAndStop(12);
}
}
} else if (((((this.c == 0) || (this.c == 6)) || (this.c == 11)) || (this.c == 18)) || (this.c == 22)) {
_local4 = true;
if (this.c == 6) {
_global.katDam1 = true;
}
if (this.c == 0) {
_global.batDam1 = true;
}
if (this.c == 11) {
_global.stakeDam1 = true;
}
if (this.c == 18) {
_global.mag2 = true;
}
if (this.c == 22) {
_global.mag1addon = true;
if ((((((!_global.ach11) && _global.mag1addon) && _global.mag2addon) && _global.mag3addon) && _global.mag4addon) && _global.mag5addon) {
_global.ach11 = true;
_root.camera.achunlock.gotoAndStop(12);
}
}
}
}
if (((this._currentframe != 2) && (this._currentframe != 4)) && (_local4)) {
var _local5 = "fade" + nPriceFaderNo;
this.attachMovie("pricefader", _local5, this.upgrademenu[butn].getNextHighestDepth());
this[_local5]._x = 10;
this[_local5]._y = -10;
this[_local5].price.priceblip.text = this.thisUpgrade.upPrice;
this.gotoAndStop(2);
nPriceFaderNo++;
_global.heldGibs = _global.heldGibs - this.thisUpgrade.upPrice;
}
};
this[butn].onRollOut = function () {
bShowDesc = false;
};
this[butn].onRollOver = this[butn].rollOverFunc;
this[butn].rollOverFunc = function () {
bShowDesc = true;
description = this.thisUpgrade.upDesc + this.thisUpgrade.upPrice;
selection = Number(this.c);
};
c++;
}
}
};
} else if (perks._currentframe == 2) {
var b = 0;
while (b < this.itemsList.length) {
var _local4 = "option" + b;
this[_local4].removeMovieClip();
b++;
}
this.upgrademenu.removeMovieClip();
this.arrowbut1.removeMovieClip();
this.arrowbut2.removeMovieClip();
var b = 0;
while (b < this.perksList.length) {
var _local4 = "perk" + b;
this[_local4].removeMovieClip();
b++;
}
attachMovie("arrowbut", "arrowbut1", this.getNextHighestDepth());
this.arrowbut1._y = 65;
this.arrowbut1._x = 465;
attachMovie("arrowbut", "arrowbut2", this.getNextHighestDepth());
this.arrowbut2._y = 425;
this.arrowbut2._x = 465;
this.arrowbut2._rotation = 180;
this.arrowbut2.maxInd = this.perksList.length - 1;
this.arrowbut1.onPress = function () {
if (countdown >= 60) {
countdown = 0;
index--;
if (index < 0) {
index = 0;
} else {
bSetUpMenu = true;
}
}
};
this.arrowbut1.listUp = function () {
if (countdown >= 60) {
countdown = 0;
index--;
if (index < 0) {
index = 0;
} else {
bSetUpMenu = true;
}
}
};
this.arrowbut2.onPress = function () {
if (countdown >= 60) {
countdown = 0;
index++;
if ((index + 7) > this.maxInd) {
index = this.maxInd - 7;
} else {
bSetUpMenu = true;
}
}
};
this.arrowbut2.listDown = function () {
if (countdown >= 60) {
countdown = 0;
index++;
if ((index + 7) > this.maxInd) {
index = this.maxInd - 7;
} else {
bSetUpMenu = true;
}
}
};
var _local11 = 0;
var b = index;
while (b < (index + 8)) {
var _local4 = "perk" + b;
attachMovie("option", _local4, this.getNextHighestDepth());
this[_local4]._y = 70 + (_local11 * 45);
this[_local4]._x = 320;
this[_local4].b = b;
this[_local4].price.text = perksList[b].perkPrice;
this[_local4].name.text = perksList[b].perkName;
this[_local4].countdown = 0;
this[_local4].description = perksList[b].perkDesc;
this[_local4].onEnterFrame = function () {
countdown++;
};
this[_local4].updatethis = function () {
this.gotoAndStop(1);
if ((this.name.text == "Silver Bullet") && (_global.perk0)) {
this.gotoAndStop(2);
}
if ((this.name.text == "Incendiary Arrow") && (_global.perk1)) {
this.gotoAndStop(2);
}
if ((this.name.text == "Pyrotechnic") && (_global.perk2)) {
this.gotoAndStop(2);
}
if ((this.name.text == "I Kick Ass for the Lord") && (_global.perk3)) {
this.gotoAndStop(2);
}
if ((this.name.text == "Fast Healer") && (_global.perk4)) {
this.gotoAndStop(2);
}
if ((this.name.text == "Quick Metabolism") && (_global.perk5)) {
this.gotoAndStop(2);
}
if ((this.name.text == "Beef Up") && (_global.perk6)) {
this.gotoAndStop(2);
}
if ((this.name.text == "Enlightened Mind") && (_global.perk7)) {
this.gotoAndStop(2);
}
if ((this.name.text == "Blood Lust") && (_global.perk8)) {
this.gotoAndStop(2);
}
if ((this.name.text == "You've Got Red On You") && (_global.perk9)) {
this.gotoAndStop(2);
}
if ((this.name.text == "Party's Over") && (_global.perk10)) {
this.gotoAndStop(2);
}
if ((this.name.text == "Sure Shot") && (_global.perk11)) {
this.gotoAndStop(2);
}
if ((this.name.text == "You've Got Red On You") && (!_global.perk8)) {
this.gotoAndStop(2);
}
if ((this.name.text == "Party's Over") && (!_global.perk8)) {
this.gotoAndStop(2);
}
if ((this.name.text == "Party's Over") && (!_global.perk9)) {
this.gotoAndStop(2);
}
if ((((((((((_global.perk1 && (_global.perk2)) && (_global.perk3)) && (_global.perk4)) && (_global.perk5)) && (_global.perk6)) && (_global.perk7)) && (_global.perk8)) && (_global.perk9)) && (_global.perk10)) && (_global.perk11)) {
if (!_global.ach12) {
_global.ach12 = true;
_root.camera.achunlock.gotoAndStop(13);
}
}
};
this[_local4].updatethis();
this[_local4].onPress = function () {
if (countdown >= 60) {
var _local3 = false;
if (_global.heldGibs >= this.price.text) {
if ((this.name.text == "Silver Bullet") && (!_global.perk0)) {
_global.silver = true;
_global.perk0 = true;
_local3 = true;
} else if ((this.name.text == "Silver Bullet") && _global.perk0) {
this.gotoAndStop(2);
}
if ((this.name.text == "Incendiary Arrow") && (!_global.perk1)) {
_global.incendiary = true;
_global.perk1 = true;
_local3 = true;
} else if ((this.name.text == "Incendiary Arrow") && _global.perk1) {
this.gotoAndStop(2);
}
if ((this.name.text == "Pyrotechnic") && (!_global.perk2)) {
_global.pyro = true;
_global.perk2 = true;
_local3 = true;
} else if ((this.name.text == "Pyrotechnic") && _global.perk2) {
this.gotoAndStop(2);
}
if ((this.name.text == "I Kick Ass for the Lord") && (!_global.perk3)) {
_global.longCross = true;
_global.perk3 = true;
_local3 = true;
} else if ((this.name.text == "I Kick Ass for the Lord") && _global.perk3) {
this.gotoAndStop(2);
}
if ((this.name.text == "Fast Healer") && (!_global.perk4)) {
_global.healAmount = 10;
_global.perk4 = true;
_local3 = true;
} else if ((this.name.text == "Fast Healer") && _global.perk4) {
this.gotoAndStop(2);
}
if ((this.name.text == "Quick Metabolism") && (!_global.perk5)) {
_global.manaAmount = 6;
_global.perk5 = true;
_local3 = true;
} else if ((this.name.text == "Quick Metabolism") && _global.perk5) {
this.gotoAndStop(2);
}
if ((this.name.text == "Beef Up") && (!_global.perk6)) {
_global.maxHealth = 14;
_global.perk6 = true;
_local3 = true;
} else if ((this.name.text == "Beef Up") && _global.perk6) {
this.gotoAndStop(2);
}
if ((this.name.text == "Enlightened Mind") && (!_global.perk7)) {
_global.maxMana = 8;
_global.perk7 = true;
_local3 = true;
} else if ((this.name.text == "Enlightened Mind") && _global.perk7) {
this.gotoAndStop(2);
}
if ((this.name.text == "Blood Lust") && (!_global.perk8)) {
_global.goreMultiplier = 2;
_global.perk8 = true;
_local3 = true;
bUpdateAll = true;
} else if ((this.name.text == "Blood Lust") && _global.perk8) {
this.gotoAndStop(2);
}
if (((this.name.text == "You've Got Red On You") && (!_global.perk9)) && _global.perk8) {
_global.goreMultiplier = 3;
_global.perk9 = true;
_local3 = true;
} else if ((this.name.text == "You've Got Red On You") && _global.perk9) {
this.gotoAndStop(2);
}
if ((((this.name.text == "Party's Over") && (!_global.perk10)) && _global.perk8) && _global.perk9) {
_global.goreMultiplier = 4;
_global.perk10 = true;
_local3 = true;
} else if ((this.name.text == "Party's Over") && _global.perk10) {
this.gotoAndStop(2);
}
if ((this.name.text == "Sure Shot") && (!_global.perk11)) {
_global.sureShot = true;
_global.perk11 = true;
_local3 = true;
} else if ((this.name.text == "Sure Shot") && _global.perk11) {
this.gotoAndStop(2);
}
}
countdown = 0;
if (_local3) {
var _local4 = "fade" + nPriceFaderNo;
this.attachMovie("pricefader", _local4, this.getNextHighestDepth());
this[_local4]._x = 250;
this[_local4]._y = -20;
this[_local4].price.priceblip.text = this.price.text;
nPriceFaderNo++;
_global.heldGibs = _global.heldGibs - this.price.text;
this.gotoAndStop(2);
bUpdateAll = true;
updateAll();
}
}
};
this[_local4].pressFunc = function () {
if (countdown >= 60) {
var _local3 = false;
if (_global.heldGibs >= this.price.text) {
if ((this.name.text == "Silver Bullet") && (!_global.perk0)) {
_global.silver = true;
_global.perk0 = true;
_local3 = true;
} else if ((this.name.text == "Silver Bullet") && _global.perk0) {
this.gotoAndStop(2);
}
if ((this.name.text == "Incendiary Arrow") && (!_global.perk1)) {
_global.incendiary = true;
_global.perk1 = true;
_local3 = true;
} else if ((this.name.text == "Incendiary Arrow") && _global.perk1) {
this.gotoAndStop(2);
}
if ((this.name.text == "Pyrotechnic") && (!_global.perk2)) {
_global.pyro = true;
_global.perk2 = true;
_local3 = true;
} else if ((this.name.text == "Pyrotechnic") && _global.perk2) {
this.gotoAndStop(2);
}
if ((this.name.text == "I Kick Ass for the Lord") && (!_global.perk3)) {
_global.longCross = true;
_global.perk3 = true;
_local3 = true;
} else if ((this.name.text == "I Kick Ass for the Lord") && _global.perk3) {
this.gotoAndStop(2);
}
if ((this.name.text == "Fast Healer") && (!_global.perk4)) {
_global.healAmount = 10;
_global.perk4 = true;
_local3 = true;
} else if ((this.name.text == "Fast Healer") && _global.perk4) {
this.gotoAndStop(2);
}
if ((this.name.text == "Quick Metabolism") && (!_global.perk5)) {
_global.manaAmount = 6;
_global.perk5 = true;
_local3 = true;
} else if ((this.name.text == "Quick Metabolism") && _global.perk5) {
this.gotoAndStop(2);
}
if ((this.name.text == "Beef Up") && (!_global.perk6)) {
_global.maxHealth = 14;
_global.perk6 = true;
_local3 = true;
} else if ((this.name.text == "Beef Up") && _global.perk6) {
this.gotoAndStop(2);
}
if ((this.name.text == "Enlightened Mind") && (!_global.perk7)) {
_global.maxMana = 8;
_global.perk7 = true;
_local3 = true;
} else if ((this.name.text == "Enlightened Mind") && _global.perk7) {
this.gotoAndStop(2);
}
if ((this.name.text == "Blood Lust") && (!_global.perk8)) {
_global.goreMultiplier = 2;
_global.perk8 = true;
_local3 = true;
bUpdateAll = true;
} else if ((this.name.text == "Blood Lust") && _global.perk8) {
this.gotoAndStop(2);
}
if (((this.name.text == "You've Got Red On You") && (!_global.perk9)) && _global.perk8) {
_global.goreMultiplier = 3;
_global.perk9 = true;
_local3 = true;
} else if ((this.name.text == "You've Got Red On You") && _global.perk9) {
this.gotoAndStop(2);
}
if ((((this.name.text == "Party's Over") && (!_global.perk10)) && _global.perk8) && _global.perk9) {
_global.goreMultiplier = 4;
_global.perk10 = true;
_local3 = true;
} else if ((this.name.text == "Party's Over") && _global.perk10) {
this.gotoAndStop(2);
}
if ((this.name.text == "Sure Shot") && (!_global.perk11)) {
_global.sureShot = true;
_global.perk11 = true;
_local3 = true;
} else if ((this.name.text == "Sure Shot") && _global.perk11) {
this.gotoAndStop(2);
}
}
countdown = 0;
if (_local3) {
var _local4 = "fade" + nPriceFaderNo;
this.attachMovie("pricefader", _local4, this.getNextHighestDepth());
this[_local4]._x = 250;
this[_local4]._y = -20;
this[_local4].price.priceblip.text = this.price.text;
nPriceFaderNo++;
_global.heldGibs = _global.heldGibs - this.price.text;
this.gotoAndStop(2);
bUpdateAll = true;
updateAll();
}
}
};
this[_local4].onRollOut = function () {
bShowDesc = false;
};
this[_local4].onRollOver = function () {
bShowDesc = true;
description = this.description;
selection = this.b;
};
this[_local4].rollOverFunc = function () {
bShowDesc = true;
description = this.description;
selection = this.b;
};
_local11++;
b++;
}
}
}
bSetUpMenu = false;
if (wait > 0) {
wait--;
}
if (selection == -1) {
selection = 0;
}
if (items._currentframe == 2) {
var _local8 = 0;
while (_local8 < 10) {
if (this["option" + _local8]._currentframe == 3) {
this["option" + _local8].gotoAndStop(1);
} else if (this["option" + _local8]._currentframe == 4) {
this["option" + _local8].gotoAndStop(2);
}
_local8++;
}
if (selection >= 7) {
selection = 6;
}
if (this["option" + selection]._currentframe == 1) {
this["option" + selection].gotoAndStop(3);
} else if (this["option" + selection]._currentframe == 2) {
this["option" + selection].gotoAndStop(4);
}
this["option" + selection].rollOverFunc();
} else if (upgrades._currentframe == 2) {
var _local6 = 0;
while (_local6 < 30) {
if (this.upgrademenu["b" + _local6]._currentframe == 3) {
this.upgrademenu["b" + _local6].gotoAndStop(1);
} else if (this.upgrademenu["b" + _local6]._currentframe == 4) {
this.upgrademenu["b" + _local6].gotoAndStop(2);
}
_local6++;
}
if (selection >= 27) {
selection = 26;
}
if (this.upgrademenu["b" + selection]._currentframe == 1) {
this.upgrademenu["b" + selection].gotoAndStop(3);
} else if (this.upgrademenu["b" + selection]._currentframe == 2) {
this.upgrademenu["b" + selection].gotoAndStop(4);
}
this.upgrademenu["b" + selection].rollOverFunc();
} else if (perks._currentframe == 2) {
var _local7 = 0;
while (_local7 < 15) {
if (this["perk" + _local7]._currentframe == 3) {
this["perk" + _local7].gotoAndStop(1);
} else if (this["perk" + _local7]._currentframe == 4) {
this["perk" + _local7].gotoAndStop(2);
}
_local7++;
}
if (selection >= 12) {
selection = 11;
}
if (this["perk" + selection]._currentframe == 1) {
this["perk" + selection].gotoAndStop(3);
} else if (this["perk" + selection]._currentframe == 2) {
this["perk" + selection].gotoAndStop(4);
}
this["perk" + selection].rollOverFunc();
}
if (Key.isDown(83)) {
_root.bShopOnScreen = false;
_root.bStopInput = false;
_root.camera.shopwindow.removeMovieClip();
}
if (Key.isDown(68) && (wait == 0)) {
if (items._currentframe == 2) {
this["option" + selection].pressFunc();
}
if (upgrades._currentframe == 2) {
this.upgrademenu["b" + selection].pressFunc();
}
if (perks._currentframe == 2) {
this["perk" + selection].pressFunc();
}
}
if (Key.isDown(37) && (wait == 0)) {
selection = 0;
if (items._currentframe == 2) {
this["option" + selection].rollOverFunc();
}
if (upgrades._currentframe == 2) {
this.upgrademenu["b" + selection].rollOverFunc();
}
if (perks._currentframe == 2) {
this["perk" + selection].rollOverFunc();
}
wait = 10;
if (upgrades._currentframe == 2) {
items.gotoAndStop(2);
upgrades.gotoAndStop(1);
perks.gotoAndStop(1);
bSetUpMenu = true;
} else if (perks._currentframe == 2) {
items.gotoAndStop(1);
upgrades.gotoAndStop(2);
perks.gotoAndStop(1);
bSetUpMenu = true;
}
}
if (Key.isDown(39) && (wait == 0)) {
selection = 0;
if (items._currentframe == 2) {
this["option" + selection].rollOverFunc();
}
if (upgrades._currentframe == 2) {
this.upgrademenu["b" + selection].rollOverFunc();
}
if (perks._currentframe == 2) {
this["perk" + selection].rollOverFunc();
}
wait = 10;
if (upgrades._currentframe == 2) {
items.gotoAndStop(1);
upgrades.gotoAndStop(1);
perks.gotoAndStop(2);
bSetUpMenu = true;
} else if (items._currentframe == 2) {
items.gotoAndStop(1);
upgrades.gotoAndStop(2);
perks.gotoAndStop(1);
bSetUpMenu = true;
}
}
if (Key.isDown(38) && (wait == 0)) {
wait = 5;
selection--;
if (perks._currentframe == 2) {
if (selection <= 3) {
this.arrowbut1.listUp();
}
}
bSetUpMenu = true;
}
if (Key.isDown(40) && (wait == 0)) {
wait = 5;
selection++;
if (perks._currentframe == 2) {
if (selection >= 8) {
this.arrowbut2.listDown();
}
}
bSetUpMenu = true;
}
};
items.onPress = function () {
items.gotoAndStop(2);
upgrades.gotoAndStop(1);
perks.gotoAndStop(1);
bSetUpMenu = true;
};
upgrades.onPress = function () {
items.gotoAndStop(1);
upgrades.gotoAndStop(2);
perks.gotoAndStop(1);
bSetUpMenu = true;
};
perks.onPress = function () {
items.gotoAndStop(1);
upgrades.gotoAndStop(1);
perks.gotoAndStop(2);
bSetUpMenu = true;
};
exit.onPress = function () {
_root.bShopOnScreen = false;
_root.bStopInput = false;
_root.camera.shopwindow.removeMovieClip();
};
Symbol 204 MovieClip [pricefader] Frame 47
stop();
this.removeMovieClip();
Symbol 211 MovieClip Frame 1
stop();
Symbol 211 MovieClip Frame 2
stop();
trace("here");
Symbol 216 MovieClip [option] Frame 1
stop();
Symbol 216 MovieClip [option] Frame 2
stop();
Symbol 216 MovieClip [option] Frame 3
stop();
Symbol 216 MovieClip [option] Frame 4
stop();
Symbol 225 MovieClip [test] Frame 1
#initclip 25
Object.registerClass("test", Enemy);
#endinitclip
Instance of Symbol 223 MovieClip "leftbumper" in Symbol 225 MovieClip [test] Frame 1
onClipEvent (enterFrame) {
this._visible = false;
}
Instance of Symbol 224 MovieClip "rightbumper" in Symbol 225 MovieClip [test] Frame 1
onClipEvent (enterFrame) {
this._visible = false;
}
Symbol 246 MovieClip [tentacleshort] Frame 61
stop();
this.removeMovieClip();
Symbol 247 MovieClip [tentaclemid] Frame 66
stop();
this.removeMovieClip();
Symbol 252 MovieClip [tentacle] Frame 86
stop();
this.removeMovieClip();
Symbol 269 MovieClip [puppyblast] Frame 1
stop();
Symbol 269 MovieClip [puppyblast] Frame 2
stop();
Symbol 296 MovieClip Frame 10
stop();
Symbol 297 MovieClip [puppy] Frame 1
stop();
Symbol 297 MovieClip [puppy] Frame 2
stop();
Symbol 297 MovieClip [puppy] Frame 3
stop();
Symbol 341 MovieClip Frame 34
_parent.gotoAndStop(1);
Symbol 342 MovieClip Frame 31
stop();
_parent.removeMovieClip();
Symbol 343 MovieClip [ndogmount] Frame 1
stop();
Symbol 343 MovieClip [ndogmount] Frame 2
stop();
Symbol 343 MovieClip [ndogmount] Frame 3
stop();
Symbol 343 MovieClip [ndogmount] Frame 4
stop();
effectSound = new Sound(this);
effectSound.attachSound("Summon");
effectSound.start();
Symbol 397 MovieClip Frame 25
stop();
_parent.removeMovieClip();
Symbol 398 MovieClip [missile] Frame 1
stop();
Symbol 398 MovieClip [missile] Frame 2
stop();
effectSound = new Sound(this);
effectSound.attachSound("lightExplo");
effectSound.start();
Symbol 409 MovieClip Frame 17
_parent.gotoAndStop(2);
Symbol 429 MovieClip Frame 1
effectSound = new Sound(this);
effectSound.attachSound("punch");
effectSound.start();
Symbol 429 MovieClip Frame 7
effectSound = new Sound(this);
effectSound.attachSound("punch");
effectSound.start();
Symbol 429 MovieClip Frame 13
effectSound = new Sound(this);
effectSound.attachSound("punch");
effectSound.start();
Symbol 430 MovieClip Frame 13
stop();
Symbol 431 MovieClip [kenshiro] Frame 1
stop();
Symbol 431 MovieClip [kenshiro] Frame 2
stop();
Symbol 431 MovieClip [kenshiro] Frame 3
stop();
Symbol 431 MovieClip [kenshiro] Frame 4
stop();
effectSound = new Sound(this);
effectSound.attachSound("Summon");
effectSound.start();
Symbol 497 MovieClip Frame 34
_parent.gotoAndStop(1);
Symbol 498 MovieClip Frame 31
stop();
_parent.removeMovieClip();
Symbol 499 MovieClip [dogmount] Frame 1
stop();
Symbol 499 MovieClip [dogmount] Frame 2
stop();
Symbol 499 MovieClip [dogmount] Frame 3
stop();
Symbol 499 MovieClip [dogmount] Frame 4
stop();
effectSound = new Sound(this);
effectSound.attachSound("Summon");
effectSound.start();
Symbol 516 MovieClip Frame 50
stop();
Symbol 517 MovieClip [grenade] Frame 1
stop();
Symbol 517 MovieClip [grenade] Frame 2
stop();
effectSound = new Sound(this);
effectSound.attachSound("nadeExplosion");
effectSound.start();
Symbol 517 MovieClip [grenade] Frame 3
stop();
effectSound = new Sound(this);
effectSound.attachSound("nadeExplosion");
effectSound.start();
Symbol 565 MovieClip Frame 46
stop();
_parent.removeMovieClip();
Symbol 576 MovieClip Frame 47
stop();
_parent.removeMovieClip();
Symbol 587 MovieClip Frame 41
stop();
_parent.removeMovieClip();
Symbol 608 MovieClip Frame 65
stop();
_parent.removeMovieClip();
Symbol 629 MovieClip Frame 70
stop();
_parent.removeMovieClip();
Symbol 642 MovieClip Frame 19
stop();
_parent.removeMovieClip();
Symbol 643 MovieClip [zombie] Frame 1
#initclip 26
Object.registerClass("zombie", StandardZombie);
#endinitclip
stop();
Instance of Symbol 532 MovieClip "hitbumpL" in Symbol 643 MovieClip [zombie] Frame 1
onClipEvent (enterFrame) {
this._visible = false;
}
Instance of Symbol 532 MovieClip "hitbumpR" in Symbol 643 MovieClip [zombie] Frame 1
onClipEvent (enterFrame) {
this._visible = false;
}
Instance of Symbol 223 MovieClip "leftbumper" in Symbol 643 MovieClip [zombie] Frame 1
onClipEvent (enterFrame) {
this._visible = false;
}
Instance of Symbol 224 MovieClip "rightbumper" in Symbol 643 MovieClip [zombie] Frame 1
onClipEvent (enterFrame) {
this._visible = false;
}
Symbol 643 MovieClip [zombie] Frame 2
stop();
Symbol 643 MovieClip [zombie] Frame 3
stop();
Symbol 643 MovieClip [zombie] Frame 4
stop();
Symbol 643 MovieClip [zombie] Frame 5
stop();
effectSound = new Sound(this);
effectSound.attachSound("doubleBite");
effectSound.start();
Symbol 643 MovieClip [zombie] Frame 6
stop();
effectSound = new Sound(this);
effectSound.attachSound("doubleBite");
effectSound.start();
Symbol 643 MovieClip [zombie] Frame 7
stop();
effectSound = new Sound(this);
effectSound.attachSound("Kill");
effectSound.start();
Symbol 643 MovieClip [zombie] Frame 8
stop();
effectSound = new Sound(this);
effectSound.attachSound("Kill");
effectSound.start();
Symbol 643 MovieClip [zombie] Frame 9
stop();
effectSound = new Sound(this);
effectSound.attachSound("Kill");
effectSound.start();
Symbol 643 MovieClip [zombie] Frame 10
stop();
effectSound = new Sound(this);
effectSound.attachSound("Kill");
effectSound.start();
Symbol 643 MovieClip [zombie] Frame 11
stop();
effectSound = new Sound(this);
effectSound.attachSound("crit");
effectSound.start();
Symbol 643 MovieClip [zombie] Frame 12
stop();
effectSound = new Sound(this);
effectSound.attachSound("crit");
effectSound.start();
Symbol 643 MovieClip [zombie] Frame 13
stop();
effectSound = new Sound(this);
effectSound.attachSound("crit");
effectSound.start();
Symbol 643 MovieClip [zombie] Frame 14
stop();
effectSound = new Sound(this);
effectSound.attachSound("crit");
effectSound.start();
Symbol 643 MovieClip [zombie] Frame 15
stop();
effectSound = new Sound(this);
effectSound.attachSound("Kill");
effectSound.start();
Symbol 643 MovieClip [zombie] Frame 16
stop();
effectSound = new Sound(this);
effectSound.attachSound("Kill");
effectSound.start();
Symbol 643 MovieClip [zombie] Frame 17
stop();
effectSound = new Sound(this);
effectSound.attachSound("bodyExplode");
effectSound.start();
Symbol 643 MovieClip [zombie] Frame 18
stop();
effectSound = new Sound(this);
effectSound.attachSound("bodyExplode");
effectSound.start();
Symbol 663 MovieClip Frame 9
Symbol 699 MovieClip Frame 90
stop();
_parent.removeMovieClip();
Symbol 710 MovieClip Frame 10
stop();
Symbol 727 MovieClip Frame 57
stop();
_parent.removeMovieClip();
Symbol 744 MovieClip Frame 55
stop();
_parent.removeMovieClip();
Symbol 763 MovieClip Frame 63
stop();
_parent.removeMovieClip();
Symbol 784 MovieClip Frame 65
stop();
_parent.removeMovieClip();
Symbol 797 MovieClip Frame 19
stop();
_parent.removeMovieClip();
Symbol 798 MovieClip [werewolf] Frame 1
#initclip 27
Object.registerClass("werewolf", StandardWerewolf);
#endinitclip
stop();
Instance of Symbol 532 MovieClip "hitbumpL" in Symbol 798 MovieClip [werewolf] Frame 1
onClipEvent (enterFrame) {
this._visible = false;
}
Instance of Symbol 532 MovieClip "hitbumpR" in Symbol 798 MovieClip [werewolf] Frame 1
onClipEvent (enterFrame) {
this._visible = false;
}
Instance of Symbol 223 MovieClip "leftbumper" in Symbol 798 MovieClip [werewolf] Frame 1
onClipEvent (enterFrame) {
this._visible = false;
}
Instance of Symbol 224 MovieClip "rightbumper" in Symbol 798 MovieClip [werewolf] Frame 1
onClipEvent (enterFrame) {
this._visible = false;
}
Symbol 798 MovieClip [werewolf] Frame 2
stop();
Symbol 798 MovieClip [werewolf] Frame 3
stop();
Symbol 798 MovieClip [werewolf] Frame 4
stop();
Symbol 798 MovieClip [werewolf] Frame 5
stop();
effectSound = new Sound(this);
effectSound.attachSound("claw");
effectSound.start();
Symbol 798 MovieClip [werewolf] Frame 6
stop();
effectSound = new Sound(this);
effectSound.attachSound("claw");
effectSound.start();
Symbol 798 MovieClip [werewolf] Frame 7
stop();
effectSound = new Sound(this);
effectSound.attachSound("Kill");
effectSound.start();
Symbol 798 MovieClip [werewolf] Frame 8
stop();
effectSound = new Sound(this);
effectSound.attachSound("Kill");
effectSound.start();
Symbol 798 MovieClip [werewolf] Frame 9
stop();
effectSound = new Sound(this);
effectSound.attachSound("hitNoKill");
effectSound.start();
Symbol 798 MovieClip [werewolf] Frame 10
stop();
effectSound = new Sound(this);
effectSound.attachSound("hitNoKill");
effectSound.start();
Symbol 798 MovieClip [werewolf] Frame 11
stop();
effectSound = new Sound(this);
effectSound.attachSound("Kill");
effectSound.start();
Symbol 798 MovieClip [werewolf] Frame 12
stop();
effectSound = new Sound(this);
effectSound.attachSound("Kill");
effectSound.start();
Symbol 798 MovieClip [werewolf] Frame 13
stop();
effectSound = new Sound(this);
effectSound.attachSound("crit");
effectSound.start();
Symbol 798 MovieClip [werewolf] Frame 14
stop();
effectSound = new Sound(this);
effectSound.attachSound("crit");
effectSound.start();
Symbol 798 MovieClip [werewolf] Frame 15
stop();
effectSound = new Sound(this);
effectSound.attachSound("Kill");
effectSound.start();
Symbol 798 MovieClip [werewolf] Frame 16
stop();
effectSound = new Sound(this);
effectSound.attachSound("Kill");
effectSound.start();
Symbol 798 MovieClip [werewolf] Frame 17
stop();
effectSound = new Sound(this);
effectSound.attachSound("Kill");
effectSound.start();
Symbol 798 MovieClip [werewolf] Frame 18
stop();
effectSound = new Sound(this);
effectSound.attachSound("Kill");
effectSound.start();
Symbol 798 MovieClip [werewolf] Frame 19
stop();
effectSound = new Sound(this);
effectSound.attachSound("bodyExplode");
effectSound.start();
Symbol 798 MovieClip [werewolf] Frame 20
stop();
effectSound = new Sound(this);
effectSound.attachSound("bodyExplode");
effectSound.start();
Symbol 856 MovieClip Frame 16
stop();
Symbol 865 MovieClip Frame 13
stop();
Symbol 880 MovieClip Frame 24
stop();
_parent.removeMovieClip();
Symbol 895 MovieClip Frame 22
stop();
_parent.removeMovieClip();
Symbol 922 MovieClip Frame 55
stop();
_parent.removeMovieClip();
Symbol 923 MovieClip [vampire] Frame 1
#initclip 28
Object.registerClass("vampire", StandardVamp);
#endinitclip
stop();
Instance of Symbol 532 MovieClip "hitbumpL" in Symbol 923 MovieClip [vampire] Frame 1
onClipEvent (enterFrame) {
this._visible = false;
}
Instance of Symbol 532 MovieClip "hitbumpR" in Symbol 923 MovieClip [vampire] Frame 1
onClipEvent (enterFrame) {
this._visible = false;
}
Instance of Symbol 223 MovieClip "leftbumper" in Symbol 923 MovieClip [vampire] Frame 1
onClipEvent (enterFrame) {
this._visible = false;
}
Instance of Symbol 224 MovieClip "rightbumper" in Symbol 923 MovieClip [vampire] Frame 1
onClipEvent (enterFrame) {
this._visible = false;
}
Symbol 923 MovieClip [vampire] Frame 2
stop();
Symbol 923 MovieClip [vampire] Frame 3
stop();
Symbol 923 MovieClip [vampire] Frame 4
stop();
Symbol 923 MovieClip [vampire] Frame 5
stop();
effectSound = new Sound(this);
effectSound.attachSound("vampAttack");
effectSound.start();
Symbol 923 MovieClip [vampire] Frame 6
stop();
effectSound = new Sound(this);
effectSound.attachSound("vampAttack");
effectSound.start();
Symbol 923 MovieClip [vampire] Frame 7
stop();
effectSound = new Sound(this);
effectSound.attachSound("hitNoKill");
effectSound.start();
Symbol 923 MovieClip [vampire] Frame 8
stop();
effectSound = new Sound(this);
effectSound.attachSound("hitNoKill");
effectSound.start();
Symbol 923 MovieClip [vampire] Frame 9
stop();
effectSound = new Sound(this);
effectSound.attachSound("VampireGuardBreak");
effectSound.start();
Symbol 923 MovieClip [vampire] Frame 10
stop();
effectSound = new Sound(this);
effectSound.attachSound("VampireGuardBreak");
effectSound.start();
Symbol 923 MovieClip [vampire] Frame 11
stop();
effectSound = new Sound(this);
effectSound.attachSound("VampExplode");
effectSound.start();
Symbol 923 MovieClip [vampire] Frame 12
stop();
effectSound = new Sound(this);
effectSound.attachSound("VampExplode");
effectSound.start();
Symbol 923 MovieClip [vampire] Frame 13
stop();
effectSound = new Sound(this);
effectSound.attachSound("VampExplode");
effectSound.start();
Symbol 923 MovieClip [vampire] Frame 14
stop();
effectSound = new Sound(this);
effectSound.attachSound("VampExplode");
effectSound.start();
Symbol 923 MovieClip [vampire] Frame 15
stop();
Symbol 923 MovieClip [vampire] Frame 16
stop();
effectSound = new Sound(this);
effectSound.attachSound("transform");
effectSound.start();
Symbol 923 MovieClip [vampire] Frame 17
stop();
effectSound = new Sound(this);
effectSound.attachSound("transform");
effectSound.start();
Symbol 923 MovieClip [vampire] Frame 18
stop();
effectSound = new Sound(this);
effectSound.attachSound("Kill");
effectSound.start();
Symbol 939 MovieClip Frame 7
stop();
Symbol 950 MovieClip Frame 16
stop();
_parent.removeMovieClip();
Symbol 954 MovieClip [smsmslime] Frame 1
#initclip 29
Object.registerClass("smsmslime", StandardTinySlime);
#endinitclip
stop();
Instance of Symbol 532 MovieClip "hitbumpL" in Symbol 954 MovieClip [smsmslime] Frame 1
onClipEvent (enterFrame) {
this._visible = false;
}
Instance of Symbol 532 MovieClip "hitbumpR" in Symbol 954 MovieClip [smsmslime] Frame 1
onClipEvent (enterFrame) {
this._visible = false;
}
Symbol 954 MovieClip [smsmslime] Frame 2
stop();
Symbol 954 MovieClip [smsmslime] Frame 3
stop();
Symbol 954 MovieClip [smsmslime] Frame 4
stop();
Symbol 954 MovieClip [smsmslime] Frame 5
stop();
effectSound = new Sound(this);
effectSound.attachSound("tinyslimepop");
effectSound.start();
Symbol 954 MovieClip [smsmslime] Frame 6
stop();
effectSound = new Sound(this);
effectSound.attachSound("tinyslimepop");
effectSound.start();
Symbol 954 MovieClip [smsmslime] Frame 7
stop();
Symbol 954 MovieClip [smsmslime] Frame 8
stop();
Symbol 970 MovieClip Frame 8
stop();
Symbol 1000 MovieClip Frame 14
stop();
_parent.removeMovieClip();
Symbol 1010 MovieClip Frame 9
stop();
Symbol 1019 MovieClip Frame 13
stop();
_parent.removeMovieClip();
Symbol 1020 MovieClip [smslime] Frame 1
#initclip 30
Object.registerClass("smslime", StandardSmallSlime);
#endinitclip
stop();
Instance of Symbol 532 MovieClip "hitbumpL" in Symbol 1020 MovieClip [smslime] Frame 1
onClipEvent (enterFrame) {
this._visible = false;
}
Instance of Symbol 532 MovieClip "hitbumpR" in Symbol 1020 MovieClip [smslime] Frame 1
onClipEvent (enterFrame) {
this._visible = false;
}
Instance of Symbol 223 MovieClip "leftbumper" in Symbol 1020 MovieClip [smslime] Frame 1
onClipEvent (enterFrame) {
this._visible = false;
}
Instance of Symbol 224 MovieClip "rightbumper" in Symbol 1020 MovieClip [smslime] Frame 1
onClipEvent (enterFrame) {
this._visible = false;
}
Symbol 1020 MovieClip [smslime] Frame 2
stop();
Symbol 1020 MovieClip [smslime] Frame 3
stop();
Symbol 1020 MovieClip [smslime] Frame 4
stop();
Symbol 1020 MovieClip [smslime] Frame 5
stop();
effectSound = new Sound(this);
effectSound.attachSound("slimeAttack");
effectSound.start();
Symbol 1020 MovieClip [smslime] Frame 6
stop();
effectSound = new Sound(this);
effectSound.attachSound("slimeAttack");
effectSound.start();
Symbol 1020 MovieClip [smslime] Frame 7
stop();
effectSound = new Sound(this);
effectSound.attachSound("slimesplit");
effectSound.start();
Symbol 1020 MovieClip [smslime] Frame 8
stop();
effectSound = new Sound(this);
effectSound.attachSound("slimesplit");
effectSound.start();
Symbol 1020 MovieClip [smslime] Frame 9
stop();
Symbol 1020 MovieClip [smslime] Frame 10
stop();
Symbol 1020 MovieClip [smslime] Frame 11
stop();
effectSound = new Sound(this);
effectSound.attachSound("rockmode");
effectSound.start();
Symbol 1020 MovieClip [smslime] Frame 12
stop();
effectSound = new Sound(this);
effectSound.attachSound("rockmode");
effectSound.start();
Symbol 1020 MovieClip [smslime] Frame 13
stop();
effectSound = new Sound(this);
effectSound.attachSound("bodyExplode");
effectSound.start();
Symbol 1020 MovieClip [smslime] Frame 14
stop();
effectSound = new Sound(this);
effectSound.attachSound("bodyExplode");
effectSound.start();
Symbol 1020 MovieClip [smslime] Frame 15
stop();
Symbol 1020 MovieClip [smslime] Frame 16
stop();
Symbol 1036 MovieClip Frame 11
stop();
Symbol 1066 MovieClip Frame 13
stop();
_parent.removeMovieClip();
Symbol 1076 MovieClip Frame 13
stop();
Symbol 1085 MovieClip Frame 13
stop();
_parent.removeMovieClip();
Symbol 1086 MovieClip [slime] Frame 1
#initclip 31
Object.registerClass("slime", StandardSlime);
#endinitclip
stop();
Instance of Symbol 532 MovieClip "hitbumpL" in Symbol 1086 MovieClip [slime] Frame 1
onClipEvent (enterFrame) {
this._visible = false;
}
Instance of Symbol 532 MovieClip "hitbumpR" in Symbol 1086 MovieClip [slime] Frame 1
onClipEvent (enterFrame) {
this._visible = false;
}
Instance of Symbol 223 MovieClip "leftbumper" in Symbol 1086 MovieClip [slime] Frame 1
onClipEvent (enterFrame) {
this._visible = false;
}
Instance of Symbol 224 MovieClip "rightbumper" in Symbol 1086 MovieClip [slime] Frame 1
onClipEvent (enterFrame) {
this._visible = false;
}
Symbol 1086 MovieClip [slime] Frame 2
stop();
Symbol 1086 MovieClip [slime] Frame 3
stop();
Symbol 1086 MovieClip [slime] Frame 4
stop();
Symbol 1086 MovieClip [slime] Frame 5
stop();
effectSound = new Sound(this);
effectSound.attachSound("slimeAttack");
effectSound.start();
Symbol 1086 MovieClip [slime] Frame 6
stop();
effectSound = new Sound(this);
effectSound.attachSound("slimeAttack");
effectSound.start();
Symbol 1086 MovieClip [slime] Frame 7
stop();
effectSound = new Sound(this);
effectSound.attachSound("slimesplit");
effectSound.start();
Symbol 1086 MovieClip [slime] Frame 8
stop();
effectSound = new Sound(this);
effectSound.attachSound("slimesplit");
effectSound.start();
Symbol 1086 MovieClip [slime] Frame 9
stop();
Symbol 1086 MovieClip [slime] Frame 10
stop();
Symbol 1086 MovieClip [slime] Frame 11
stop();
effectSound = new Sound(this);
effectSound.attachSound("rockmode");
effectSound.start();
Symbol 1086 MovieClip [slime] Frame 12
stop();
effectSound = new Sound(this);
effectSound.attachSound("rockmode");
effectSound.start();
Symbol 1086 MovieClip [slime] Frame 13
stop();
effectSound = new Sound(this);
effectSound.attachSound("bodyExplode");
effectSound.start();
Symbol 1086 MovieClip [slime] Frame 14
stop();
effectSound = new Sound(this);
effectSound.attachSound("bodyExplode");
effectSound.start();
Symbol 1086 MovieClip [slime] Frame 15
stop();
Symbol 1086 MovieClip [slime] Frame 16
stop();
Symbol 1144 MovieClip Frame 16
stop();
Symbol 1153 MovieClip Frame 13
stop();
Symbol 1168 MovieClip Frame 24
stop();
_parent.removeMovieClip();
Symbol 1183 MovieClip Frame 22
stop();
_parent.removeMovieClip();
Symbol 1210 MovieClip Frame 55
stop();
_parent.removeMovieClip();
Symbol 1211 MovieClip [redvampire] Frame 1
#initclip 32
Object.registerClass("redvampire", StandardVamp);
#endinitclip
stop();
Instance of Symbol 532 MovieClip "hitbumpL" in Symbol 1211 MovieClip [redvampire] Frame 1
onClipEvent (enterFrame) {
this._visible = false;
}
Instance of Symbol 532 MovieClip "hitbumpR" in Symbol 1211 MovieClip [redvampire] Frame 1
onClipEvent (enterFrame) {
this._visible = false;
}
Instance of Symbol 223 MovieClip "leftbumper" in Symbol 1211 MovieClip [redvampire] Frame 1
onClipEvent (enterFrame) {
this._visible = false;
}
Instance of Symbol 224 MovieClip "rightbumper" in Symbol 1211 MovieClip [redvampire] Frame 1
onClipEvent (enterFrame) {
this._visible = false;
}
Symbol 1211 MovieClip [redvampire] Frame 2
stop();
Symbol 1211 MovieClip [redvampire] Frame 3
stop();
Symbol 1211 MovieClip [redvampire] Frame 4
stop();
Symbol 1211 MovieClip [redvampire] Frame 5
stop();
effectSound = new Sound(this);
effectSound.attachSound("vampAttack");
effectSound.start();
Symbol 1211 MovieClip [redvampire] Frame 6
stop();
effectSound = new Sound(this);
effectSound.attachSound("vampAttack");
effectSound.start();
Symbol 1211 MovieClip [redvampire] Frame 7
stop();
effectSound = new Sound(this);
effectSound.attachSound("hitNoKill");
effectSound.start();
Symbol 1211 MovieClip [redvampire] Frame 8
stop();
effectSound = new Sound(this);
effectSound.attachSound("hitNoKill");
effectSound.start();
Symbol 1211 MovieClip [redvampire] Frame 9
stop();
effectSound = new Sound(this);
effectSound.attachSound("VampireGuardBreak");
effectSound.start();
Symbol 1211 MovieClip [redvampire] Frame 10
stop();
effectSound = new Sound(this);
effectSound.attachSound("VampireGuardBreak");
effectSound.start();
Symbol 1211 MovieClip [redvampire] Frame 11
stop();
effectSound = new Sound(this);
effectSound.attachSound("VampExplode");
effectSound.start();
Symbol 1211 MovieClip [redvampire] Frame 12
stop();
effectSound = new Sound(this);
effectSound.attachSound("VampExplode");
effectSound.start();
Symbol 1211 MovieClip [redvampire] Frame 13
stop();
effectSound = new Sound(this);
effectSound.attachSound("VampExplode");
effectSound.start();
Symbol 1211 MovieClip [redvampire] Frame 14
stop();
effectSound = new Sound(this);
effectSound.attachSound("VampExplode");
effectSound.start();
Symbol 1211 MovieClip [redvampire] Frame 15
stop();
Symbol 1211 MovieClip [redvampire] Frame 16
stop();
effectSound = new Sound(this);
effectSound.attachSound("transform");
effectSound.start();
Symbol 1211 MovieClip [redvampire] Frame 17
stop();
effectSound = new Sound(this);
effectSound.attachSound("transform");
effectSound.start();
Symbol 1211 MovieClip [redvampire] Frame 18
stop();
effectSound = new Sound(this);
effectSound.attachSound("Kill");
effectSound.start();
Symbol 1257 MovieClip Frame 46
stop();
_parent.removeMovieClip();
Symbol 1268 MovieClip Frame 47
stop();
_parent.removeMovieClip();
Symbol 1279 MovieClip Frame 41
stop();
_parent.removeMovieClip();
Symbol 1300 MovieClip Frame 65
stop();
_parent.removeMovieClip();
Symbol 1321 MovieClip Frame 70
stop();
_parent.removeMovieClip();
Symbol 1334 MovieClip Frame 19
stop();
_parent.removeMovieClip();
Symbol 1335 MovieClip [pZombie] Frame 1
#initclip 33
Object.registerClass("pZombie", PaleZombie);
#endinitclip
stop();
Instance of Symbol 532 MovieClip "hitbumpL" in Symbol 1335 MovieClip [pZombie] Frame 1
onClipEvent (enterFrame) {
this._visible = false;
}
Instance of Symbol 532 MovieClip "hitbumpR" in Symbol 1335 MovieClip [pZombie] Frame 1
onClipEvent (enterFrame) {
this._visible = false;
}
Instance of Symbol 223 MovieClip "leftbumper" in Symbol 1335 MovieClip [pZombie] Frame 1
onClipEvent (enterFrame) {
this._visible = false;
}
Instance of Symbol 224 MovieClip "rightbumper" in Symbol 1335 MovieClip [pZombie] Frame 1
onClipEvent (enterFrame) {
this._visible = false;
}
Symbol 1335 MovieClip [pZombie] Frame 2
stop();
Symbol 1335 MovieClip [pZombie] Frame 3
stop();
Symbol 1335 MovieClip [pZombie] Frame 4
stop();
Symbol 1335 MovieClip [pZombie] Frame 5
stop();
effectSound = new Sound(this);
effectSound.attachSound("doubleBite");
effectSound.start();
Symbol 1335 MovieClip [pZombie] Frame 6
stop();
effectSound = new Sound(this);
effectSound.attachSound("doubleBite");
effectSound.start();
Symbol 1335 MovieClip [pZombie] Frame 7
stop();
effectSound = new Sound(this);
effectSound.attachSound("Kill");
effectSound.start();
Symbol 1335 MovieClip [pZombie] Frame 8
stop();
effectSound = new Sound(this);
effectSound.attachSound("Kill");
effectSound.start();
Symbol 1335 MovieClip [pZombie] Frame 9
stop();
effectSound = new Sound(this);
effectSound.attachSound("Kill");
effectSound.start();
Symbol 1335 MovieClip [pZombie] Frame 10
stop();
effectSound = new Sound(this);
effectSound.attachSound("Kill");
effectSound.start();
Symbol 1335 MovieClip [pZombie] Frame 11
stop();
effectSound = new Sound(this);
effectSound.attachSound("crit");
effectSound.start();
Symbol 1335 MovieClip [pZombie] Frame 12
stop();
effectSound = new Sound(this);
effectSound.attachSound("crit");
effectSound.start();
Symbol 1335 MovieClip [pZombie] Frame 13
stop();
effectSound = new Sound(this);
effectSound.attachSound("crit");
effectSound.start();
Symbol 1335 MovieClip [pZombie] Frame 14
stop();
effectSound = new Sound(this);
effectSound.attachSound("crit");
effectSound.start();
Symbol 1335 MovieClip [pZombie] Frame 15
stop();
effectSound = new Sound(this);
effectSound.attachSound("Kill");
effectSound.start();
Symbol 1335 MovieClip [pZombie] Frame 16
stop();
effectSound = new Sound(this);
effectSound.attachSound("Kill");
effectSound.start();
Symbol 1335 MovieClip [pZombie] Frame 17
stop();
effectSound = new Sound(this);
effectSound.attachSound("bodyExplode");
effectSound.start();
Symbol 1335 MovieClip [pZombie] Frame 18
stop();
effectSound = new Sound(this);
effectSound.attachSound("bodyExplode");
effectSound.start();
Symbol 1355 MovieClip Frame 9
Symbol 1391 MovieClip Frame 90
stop();
_parent.removeMovieClip();
Symbol 1402 MovieClip Frame 10
stop();
Symbol 1419 MovieClip Frame 57
stop();
_parent.removeMovieClip();
Symbol 1436 MovieClip Frame 55
stop();
_parent.removeMovieClip();
Symbol 1455 MovieClip Frame 63
stop();
_parent.removeMovieClip();
Symbol 1476 MovieClip Frame 65
stop();
_parent.removeMovieClip();
Symbol 1489 MovieClip Frame 19
stop();
_parent.removeMovieClip();
Symbol 1490 MovieClip [greywerewolf] Frame 1
#initclip 34
Object.registerClass("greywerewolf", StandardWerewolf);
#endinitclip
stop();
Instance of Symbol 532 MovieClip "hitbumpL" in Symbol 1490 MovieClip [greywerewolf] Frame 1
onClipEvent (enterFrame) {
this._visible = false;
}
Instance of Symbol 532 MovieClip "hitbumpR" in Symbol 1490 MovieClip [greywerewolf] Frame 1
onClipEvent (enterFrame) {
this._visible = false;
}
Instance of Symbol 223 MovieClip "leftbumper" in Symbol 1490 MovieClip [greywerewolf] Frame 1
onClipEvent (enterFrame) {
this._visible = false;
}
Instance of Symbol 224 MovieClip "rightbumper" in Symbol 1490 MovieClip [greywerewolf] Frame 1
onClipEvent (enterFrame) {
this._visible = false;
}
Symbol 1490 MovieClip [greywerewolf] Frame 2
stop();
Symbol 1490 MovieClip [greywerewolf] Frame 3
stop();
Symbol 1490 MovieClip [greywerewolf] Frame 4
stop();
Symbol 1490 MovieClip [greywerewolf] Frame 5
stop();
effectSound = new Sound(this);
effectSound.attachSound("claw");
effectSound.start();
Symbol 1490 MovieClip [greywerewolf] Frame 6
stop();
effectSound = new Sound(this);
effectSound.attachSound("claw");
effectSound.start();
Symbol 1490 MovieClip [greywerewolf] Frame 7
stop();
effectSound = new Sound(this);
effectSound.attachSound("Kill");
effectSound.start();
Symbol 1490 MovieClip [greywerewolf] Frame 8
stop();
effectSound = new Sound(this);
effectSound.attachSound("Kill");
effectSound.start();
Symbol 1490 MovieClip [greywerewolf] Frame 9
stop();
effectSound = new Sound(this);
effectSound.attachSound("hitNoKill");
effectSound.start();
Symbol 1490 MovieClip [greywerewolf] Frame 10
stop();
effectSound = new Sound(this);
effectSound.attachSound("hitNoKill");
effectSound.start();
Symbol 1490 MovieClip [greywerewolf] Frame 11
stop();
effectSound = new Sound(this);
effectSound.attachSound("Kill");
effectSound.start();
Symbol 1490 MovieClip [greywerewolf] Frame 12
stop();
effectSound = new Sound(this);
effectSound.attachSound("Kill");
effectSound.start();
Symbol 1490 MovieClip [greywerewolf] Frame 13
stop();
effectSound = new Sound(this);
effectSound.attachSound("crit");
effectSound.start();
Symbol 1490 MovieClip [greywerewolf] Frame 14
stop();
effectSound = new Sound(this);
effectSound.attachSound("crit");
effectSound.start();
Symbol 1490 MovieClip [greywerewolf] Frame 15
stop();
effectSound = new Sound(this);
effectSound.attachSound("Kill");
effectSound.start();
Symbol 1490 MovieClip [greywerewolf] Frame 16
stop();
effectSound = new Sound(this);
effectSound.attachSound("Kill");
effectSound.start();
Symbol 1490 MovieClip [greywerewolf] Frame 17
stop();
effectSound = new Sound(this);
effectSound.attachSound("Kill");
effectSound.start();
Symbol 1490 MovieClip [greywerewolf] Frame 18
stop();
effectSound = new Sound(this);
effectSound.attachSound("Kill");
effectSound.start();
Symbol 1490 MovieClip [greywerewolf] Frame 19
stop();
effectSound = new Sound(this);
effectSound.attachSound("bodyExplode");
effectSound.start();
Symbol 1490 MovieClip [greywerewolf] Frame 20
stop();
effectSound = new Sound(this);
effectSound.attachSound("bodyExplode");
effectSound.start();
Symbol 1536 MovieClip Frame 46
stop();
_parent.removeMovieClip();
Symbol 1547 MovieClip Frame 47
stop();
_parent.removeMovieClip();
Symbol 1558 MovieClip Frame 41
stop();
_parent.removeMovieClip();
Symbol 1579 MovieClip Frame 65
stop();
_parent.removeMovieClip();
Symbol 1600 MovieClip Frame 70
stop();
_parent.removeMovieClip();
Symbol 1613 MovieClip Frame 19
stop();
_parent.removeMovieClip();
Symbol 1614 MovieClip [gZombie] Frame 1
#initclip 35
Object.registerClass("gZombie", GreenZombie);
#endinitclip
stop();
Instance of Symbol 532 MovieClip "hitbumpL" in Symbol 1614 MovieClip [gZombie] Frame 1
onClipEvent (enterFrame) {
this._visible = false;
}
Instance of Symbol 532 MovieClip "hitbumpR" in Symbol 1614 MovieClip [gZombie] Frame 1
onClipEvent (enterFrame) {
this._visible = false;
}
Instance of Symbol 223 MovieClip "leftbumper" in Symbol 1614 MovieClip [gZombie] Frame 1
onClipEvent (enterFrame) {
this._visible = false;
}
Instance of Symbol 224 MovieClip "rightbumper" in Symbol 1614 MovieClip [gZombie] Frame 1
onClipEvent (enterFrame) {
this._visible = false;
}
Symbol 1614 MovieClip [gZombie] Frame 2
stop();
Symbol 1614 MovieClip [gZombie] Frame 3
stop();
Symbol 1614 MovieClip [gZombie] Frame 4
stop();
Symbol 1614 MovieClip [gZombie] Frame 5
stop();
effectSound = new Sound(this);
effectSound.attachSound("doubleBite");
effectSound.start();
Symbol 1614 MovieClip [gZombie] Frame 6
stop();
effectSound = new Sound(this);
effectSound.attachSound("doubleBite");
effectSound.start();
Symbol 1614 MovieClip [gZombie] Frame 7
stop();
effectSound = new Sound(this);
effectSound.attachSound("Kill");
effectSound.start();
Symbol 1614 MovieClip [gZombie] Frame 8
stop();
effectSound = new Sound(this);
effectSound.attachSound("Kill");
effectSound.start();
Symbol 1614 MovieClip [gZombie] Frame 9
stop();
effectSound = new Sound(this);
effectSound.attachSound("Kill");
effectSound.start();
Symbol 1614 MovieClip [gZombie] Frame 10
stop();
effectSound = new Sound(this);
effectSound.attachSound("Kill");
effectSound.start();
Symbol 1614 MovieClip [gZombie] Frame 11
stop();
effectSound = new Sound(this);
effectSound.attachSound("crit");
effectSound.start();
Symbol 1614 MovieClip [gZombie] Frame 12
stop();
effectSound = new Sound(this);
effectSound.attachSound("crit");
effectSound.start();
Symbol 1614 MovieClip [gZombie] Frame 13
stop();
effectSound = new Sound(this);
effectSound.attachSound("crit");
effectSound.start();
Symbol 1614 MovieClip [gZombie] Frame 14
stop();
effectSound = new Sound(this);
effectSound.attachSound("crit");
effectSound.start();
Symbol 1614 MovieClip [gZombie] Frame 15
stop();
effectSound = new Sound(this);
effectSound.attachSound("Kill");
effectSound.start();
Symbol 1614 MovieClip [gZombie] Frame 16
stop();
effectSound = new Sound(this);
effectSound.attachSound("Kill");
effectSound.start();
Symbol 1614 MovieClip [gZombie] Frame 17
stop();
effectSound = new Sound(this);
effectSound.attachSound("bodyExplode");
effectSound.start();
Symbol 1614 MovieClip [gZombie] Frame 18
stop();
effectSound = new Sound(this);
effectSound.attachSound("bodyExplode");
effectSound.start();
Symbol 1678 MovieClip Frame 52
stop();
_parent.removeMovieClip();
Symbol 1691 MovieClip Frame 38
stop();
_parent.removeMovieClip();
Symbol 1700 MovieClip Frame 13
stop();
Symbol 1719 MovieClip Frame 57
stop();
_parent.removeMovieClip();
Symbol 1732 MovieClip Frame 19
stop();
_parent.removeMovieClip();
Symbol 1733 MovieClip [fatzombie] Frame 1
#initclip 36
Object.registerClass("fatzombie", StandardFatZombie);
#endinitclip
stop();
Instance of Symbol 532 MovieClip "hitbumpL" in Symbol 1733 MovieClip [fatzombie] Frame 1
onClipEvent (enterFrame) {
this._visible = false;
}
Instance of Symbol 532 MovieClip "hitbumpR" in Symbol 1733 MovieClip [fatzombie] Frame 1
onClipEvent (enterFrame) {
this._visible = false;
}
Instance of Symbol 223 MovieClip "leftbumper" in Symbol 1733 MovieClip [fatzombie] Frame 1
onClipEvent (enterFrame) {
this._visible = false;
}
Instance of Symbol 224 MovieClip "rightbumper" in Symbol 1733 MovieClip [fatzombie] Frame 1
onClipEvent (enterFrame) {
this._visible = false;
}
Symbol 1733 MovieClip [fatzombie] Frame 2
stop();
Symbol 1733 MovieClip [fatzombie] Frame 3
stop();
Symbol 1733 MovieClip [fatzombie] Frame 4
stop();
Symbol 1733 MovieClip [fatzombie] Frame 5
stop();
effectSound = new Sound(this);
effectSound.attachSound("doubleBite");
effectSound.start();
Symbol 1733 MovieClip [fatzombie] Frame 6
stop();
effectSound = new Sound(this);
effectSound.attachSound("doubleBite");
effectSound.start();
Symbol 1733 MovieClip [fatzombie] Frame 7
stop();
effectSound = new Sound(this);
effectSound.attachSound("Kill");
effectSound.start();
Symbol 1733 MovieClip [fatzombie] Frame 8
stop();
effectSound = new Sound(this);
effectSound.attachSound("Kill");
effectSound.start();
Symbol 1733 MovieClip [fatzombie] Frame 9
stop();
effectSound = new Sound(this);
effectSound.attachSound("Kill");
effectSound.start();
Symbol 1733 MovieClip [fatzombie] Frame 10
stop();
effectSound = new Sound(this);
effectSound.attachSound("Kill");
effectSound.start();
Symbol 1733 MovieClip [fatzombie] Frame 11
stop();
effectSound = new Sound(this);
effectSound.attachSound("hitNoKill");
effectSound.start();
Symbol 1733 MovieClip [fatzombie] Frame 12
stop();
effectSound = new Sound(this);
effectSound.attachSound("hitNoKill");
effectSound.start();
Symbol 1733 MovieClip [fatzombie] Frame 13
stop();
effectSound = new Sound(this);
effectSound.attachSound("crit");
effectSound.start();
Symbol 1733 MovieClip [fatzombie] Frame 14
stop();
effectSound = new Sound(this);
effectSound.attachSound("crit");
effectSound.start();
Symbol 1733 MovieClip [fatzombie] Frame 15
stop();
effectSound = new Sound(this);
effectSound.attachSound("bodyExplode");
effectSound.start();
Symbol 1733 MovieClip [fatzombie] Frame 16
stop();
effectSound = new Sound(this);
effectSound.attachSound("bodyExplode");
effectSound.start();
Symbol 1753 MovieClip Frame 9
Symbol 1789 MovieClip Frame 90
stop();
_parent.removeMovieClip();
Symbol 1800 MovieClip Frame 10
stop();
Symbol 1817 MovieClip Frame 57
stop();
_parent.removeMovieClip();
Symbol 1834 MovieClip Frame 55
stop();
_parent.removeMovieClip();
Symbol 1853 MovieClip Frame 63
stop();
_parent.removeMovieClip();
Symbol 1874 MovieClip Frame 65
stop();
_parent.removeMovieClip();
Symbol 1887 MovieClip Frame 19
stop();
_parent.removeMovieClip();
Symbol 1888 MovieClip [darkwerewolf] Frame 1
#initclip 37
Object.registerClass("darkwerewolf", StandardWerewolf);
#endinitclip
stop();
Instance of Symbol 532 MovieClip "hitbumpL" in Symbol 1888 MovieClip [darkwerewolf] Frame 1
onClipEvent (enterFrame) {
this._visible = false;
}
Instance of Symbol 532 MovieClip "hitbumpR" in Symbol 1888 MovieClip [darkwerewolf] Frame 1
onClipEvent (enterFrame) {
this._visible = false;
}
Instance of Symbol 223 MovieClip "leftbumper" in Symbol 1888 MovieClip [darkwerewolf] Frame 1
onClipEvent (enterFrame) {
this._visible = false;
}
Instance of Symbol 224 MovieClip "rightbumper" in Symbol 1888 MovieClip [darkwerewolf] Frame 1
onClipEvent (enterFrame) {
this._visible = false;
}
Symbol 1888 MovieClip [darkwerewolf] Frame 2
stop();
Symbol 1888 MovieClip [darkwerewolf] Frame 3
stop();
Symbol 1888 MovieClip [darkwerewolf] Frame 4
stop();
Symbol 1888 MovieClip [darkwerewolf] Frame 5
stop();
effectSound = new Sound(this);
effectSound.attachSound("claw");
effectSound.start();
Symbol 1888 MovieClip [darkwerewolf] Frame 6
stop();
effectSound = new Sound(this);
effectSound.attachSound("claw");
effectSound.start();
Symbol 1888 MovieClip [darkwerewolf] Frame 7
stop();
effectSound = new Sound(this);
effectSound.attachSound("Kill");
effectSound.start();
Symbol 1888 MovieClip [darkwerewolf] Frame 8
stop();
effectSound = new Sound(this);
effectSound.attachSound("Kill");
effectSound.start();
Symbol 1888 MovieClip [darkwerewolf] Frame 9
stop();
effectSound = new Sound(this);
effectSound.attachSound("hitNoKill");
effectSound.start();
Symbol 1888 MovieClip [darkwerewolf] Frame 10
stop();
effectSound = new Sound(this);
effectSound.attachSound("hitNoKill");
effectSound.start();
Symbol 1888 MovieClip [darkwerewolf] Frame 11
stop();
effectSound = new Sound(this);
effectSound.attachSound("Kill");
effectSound.start();
Symbol 1888 MovieClip [darkwerewolf] Frame 12
stop();
effectSound = new Sound(this);
effectSound.attachSound("Kill");
effectSound.start();
Symbol 1888 MovieClip [darkwerewolf] Frame 13
stop();
effectSound = new Sound(this);
effectSound.attachSound("crit");
effectSound.start();
Symbol 1888 MovieClip [darkwerewolf] Frame 14
stop();
effectSound = new Sound(this);
effectSound.attachSound("crit");
effectSound.start();
Symbol 1888 MovieClip [darkwerewolf] Frame 15
stop();
effectSound = new Sound(this);
effectSound.attachSound("Kill");
effectSound.start();
Symbol 1888 MovieClip [darkwerewolf] Frame 16
stop();
effectSound = new Sound(this);
effectSound.attachSound("Kill");
effectSound.start();
Symbol 1888 MovieClip [darkwerewolf] Frame 17
stop();
effectSound = new Sound(this);
effectSound.attachSound("Kill");
effectSound.start();
Symbol 1888 MovieClip [darkwerewolf] Frame 18
stop();
effectSound = new Sound(this);
effectSound.attachSound("Kill");
effectSound.start();
Symbol 1888 MovieClip [darkwerewolf] Frame 19
stop();
effectSound = new Sound(this);
effectSound.attachSound("bodyExplode");
effectSound.start();
Symbol 1888 MovieClip [darkwerewolf] Frame 20
stop();
effectSound = new Sound(this);
effectSound.attachSound("bodyExplode");
effectSound.start();
Symbol 1934 MovieClip Frame 46
stop();
_parent.removeMovieClip();
Symbol 1945 MovieClip Frame 47
stop();
_parent.removeMovieClip();
Symbol 1956 MovieClip Frame 41
stop();
_parent.removeMovieClip();
Symbol 1977 MovieClip Frame 65
stop();
_parent.removeMovieClip();
Symbol 1998 MovieClip Frame 70
stop();
_parent.removeMovieClip();
Symbol 2011 MovieClip Frame 19
stop();
_parent.removeMovieClip();
Symbol 2012 MovieClip [bZombie] Frame 1
#initclip 38
Object.registerClass("bZombie", BlueZombie);
#endinitclip
stop();
Instance of Symbol 532 MovieClip "hitbumpL" in Symbol 2012 MovieClip [bZombie] Frame 1
onClipEvent (enterFrame) {
this._visible = false;
}
Instance of Symbol 532 MovieClip "hitbumpR" in Symbol 2012 MovieClip [bZombie] Frame 1
onClipEvent (enterFrame) {
this._visible = false;
}
Instance of Symbol 223 MovieClip "leftbumper" in Symbol 2012 MovieClip [bZombie] Frame 1
onClipEvent (enterFrame) {
this._visible = false;
}
Instance of Symbol 224 MovieClip "rightbumper" in Symbol 2012 MovieClip [bZombie] Frame 1
onClipEvent (enterFrame) {
this._visible = false;
}
Symbol 2012 MovieClip [bZombie] Frame 2
stop();
Symbol 2012 MovieClip [bZombie] Frame 3
stop();
Symbol 2012 MovieClip [bZombie] Frame 4
stop();
Symbol 2012 MovieClip [bZombie] Frame 5
stop();
effectSound = new Sound(this);
effectSound.attachSound("doubleBite");
effectSound.start();
Symbol 2012 MovieClip [bZombie] Frame 6
stop();
effectSound = new Sound(this);
effectSound.attachSound("doubleBite");
effectSound.start();
Symbol 2012 MovieClip [bZombie] Frame 7
stop();
effectSound = new Sound(this);
effectSound.attachSound("Kill");
effectSound.start();
Symbol 2012 MovieClip [bZombie] Frame 8
stop();
effectSound = new Sound(this);
effectSound.attachSound("Kill");
effectSound.start();
Symbol 2012 MovieClip [bZombie] Frame 9
stop();
effectSound = new Sound(this);
effectSound.attachSound("Kill");
effectSound.start();
Symbol 2012 MovieClip [bZombie] Frame 10
stop();
effectSound = new Sound(this);
effectSound.attachSound("Kill");
effectSound.start();
Symbol 2012 MovieClip [bZombie] Frame 11
stop();
effectSound = new Sound(this);
effectSound.attachSound("crit");
effectSound.start();
Symbol 2012 MovieClip [bZombie] Frame 12
stop();
effectSound = new Sound(this);
effectSound.attachSound("crit");
effectSound.start();
Symbol 2012 MovieClip [bZombie] Frame 13
stop();
effectSound = new Sound(this);
effectSound.attachSound("crit");
effectSound.start();
Symbol 2012 MovieClip [bZombie] Frame 14
stop();
effectSound = new Sound(this);
effectSound.attachSound("crit");
effectSound.start();
Symbol 2012 MovieClip [bZombie] Frame 15
stop();
effectSound = new Sound(this);
effectSound.attachSound("Kill");
effectSound.start();
Symbol 2012 MovieClip [bZombie] Frame 16
stop();
effectSound = new Sound(this);
effectSound.attachSound("Kill");
effectSound.start();
Symbol 2012 MovieClip [bZombie] Frame 17
stop();
effectSound = new Sound(this);
effectSound.attachSound("bodyExplode");
effectSound.start();
Symbol 2012 MovieClip [bZombie] Frame 18
stop();
effectSound = new Sound(this);
effectSound.attachSound("bodyExplode");
effectSound.start();
Symbol 2070 MovieClip Frame 16
stop();
Symbol 2079 MovieClip Frame 13
stop();
Symbol 2094 MovieClip Frame 24
stop();
_parent.removeMovieClip();
Symbol 2109 MovieClip Frame 22
stop();
_parent.removeMovieClip();
Symbol 2136 MovieClip Frame 55
stop();
_parent.removeMovieClip();
Symbol 2137 MovieClip [bluevampire] Frame 1
#initclip 39
Object.registerClass("bluevampire", StandardVamp);
#endinitclip
stop();
Instance of Symbol 532 MovieClip "hitbumpL" in Symbol 2137 MovieClip [bluevampire] Frame 1
onClipEvent (enterFrame) {
this._visible = false;
}
Instance of Symbol 532 MovieClip "hitbumpR" in Symbol 2137 MovieClip [bluevampire] Frame 1
onClipEvent (enterFrame) {
this._visible = false;
}
Instance of Symbol 223 MovieClip "leftbumper" in Symbol 2137 MovieClip [bluevampire] Frame 1
onClipEvent (enterFrame) {
this._visible = false;
}
Instance of Symbol 224 MovieClip "rightbumper" in Symbol 2137 MovieClip [bluevampire] Frame 1
onClipEvent (enterFrame) {
this._visible = false;
}
Symbol 2137 MovieClip [bluevampire] Frame 2
stop();
Symbol 2137 MovieClip [bluevampire] Frame 3
stop();
Symbol 2137 MovieClip [bluevampire] Frame 4
stop();
Symbol 2137 MovieClip [bluevampire] Frame 5
stop();
Symbol 2137 MovieClip [bluevampire] Frame 6
stop();
effectSound = new Sound(this);
effectSound.attachSound("vampAttack");
effectSound.start();
Symbol 2137 MovieClip [bluevampire] Frame 7
stop();
effectSound = new Sound(this);
effectSound.attachSound("hitNoKill");
effectSound.start();
Symbol 2137 MovieClip [bluevampire] Frame 8
stop();
effectSound = new Sound(this);
effectSound.attachSound("hitNoKill");
effectSound.start();
Symbol 2137 MovieClip [bluevampire] Frame 9
stop();
effectSound = new Sound(this);
effectSound.attachSound("VampireGuardBreak");
effectSound.start();
Symbol 2137 MovieClip [bluevampire] Frame 10
stop();
effectSound = new Sound(this);
effectSound.attachSound("VampireGuardBreak");
effectSound.start();
Symbol 2137 MovieClip [bluevampire] Frame 11
stop();
effectSound = new Sound(this);
effectSound.attachSound("VampExplode");
effectSound.start();
Symbol 2137 MovieClip [bluevampire] Frame 12
stop();
effectSound = new Sound(this);
effectSound.attachSound("VampExplode");
effectSound.start();
Symbol 2137 MovieClip [bluevampire] Frame 13
stop();
effectSound = new Sound(this);
effectSound.attachSound("VampExplode");
effectSound.start();
Symbol 2137 MovieClip [bluevampire] Frame 14
stop();
effectSound = new Sound(this);
effectSound.attachSound("VampExplode");
effectSound.start();
Symbol 2137 MovieClip [bluevampire] Frame 15
stop();
Symbol 2137 MovieClip [bluevampire] Frame 16
stop();
effectSound = new Sound(this);
effectSound.attachSound("transform");
effectSound.start();
Symbol 2137 MovieClip [bluevampire] Frame 17
stop();
effectSound = new Sound(this);
effectSound.attachSound("transform");
effectSound.start();
Symbol 2137 MovieClip [bluevampire] Frame 18
stop();
effectSound = new Sound(this);
effectSound.attachSound("Kill");
effectSound.start();
Symbol 2201 MovieClip Frame 52
stop();
_parent.removeMovieClip();
Symbol 2214 MovieClip Frame 38
stop();
_parent.removeMovieClip();
Symbol 2223 MovieClip Frame 13
stop();
Symbol 2242 MovieClip Frame 57
stop();
_parent.removeMovieClip();
Symbol 2255 MovieClip Frame 19
stop();
_parent.removeMovieClip();
Symbol 2256 MovieClip [BlueFatZombie] Frame 1
#initclip 40
Object.registerClass("BlueFatZombie", StandardFatZombie);
#endinitclip
stop();
Instance of Symbol 532 MovieClip "hitbumpL" in Symbol 2256 MovieClip [BlueFatZombie] Frame 1
onClipEvent (enterFrame) {
this._visible = false;
}
Instance of Symbol 532 MovieClip "hitbumpR" in Symbol 2256 MovieClip [BlueFatZombie] Frame 1
onClipEvent (enterFrame) {
this._visible = false;
}
Instance of Symbol 223 MovieClip "leftbumper" in Symbol 2256 MovieClip [BlueFatZombie] Frame 1
onClipEvent (enterFrame) {
this._visible = false;
}
Instance of Symbol 224 MovieClip "rightbumper" in Symbol 2256 MovieClip [BlueFatZombie] Frame 1
onClipEvent (enterFrame) {
this._visible = false;
}
Symbol 2256 MovieClip [BlueFatZombie] Frame 2
stop();
Symbol 2256 MovieClip [BlueFatZombie] Frame 3
stop();
Symbol 2256 MovieClip [BlueFatZombie] Frame 4
stop();
Symbol 2256 MovieClip [BlueFatZombie] Frame 5
stop();
effectSound = new Sound(this);
effectSound.attachSound("doubleBite");
effectSound.start();
Symbol 2256 MovieClip [BlueFatZombie] Frame 6
stop();
effectSound = new Sound(this);
effectSound.attachSound("doubleBite");
effectSound.start();
Symbol 2256 MovieClip [BlueFatZombie] Frame 7
stop();
effectSound = new Sound(this);
effectSound.attachSound("Kill");
effectSound.start();
Symbol 2256 MovieClip [BlueFatZombie] Frame 8
stop();
effectSound = new Sound(this);
effectSound.attachSound("Kill");
effectSound.start();
Symbol 2256 MovieClip [BlueFatZombie] Frame 9
stop();
effectSound = new Sound(this);
effectSound.attachSound("Kill");
effectSound.start();
Symbol 2256 MovieClip [BlueFatZombie] Frame 10
stop();
effectSound = new Sound(this);
effectSound.attachSound("Kill");
effectSound.start();
Symbol 2256 MovieClip [BlueFatZombie] Frame 11
stop();
effectSound = new Sound(this);
effectSound.attachSound("hitNoKill");
effectSound.start();
Symbol 2256 MovieClip [BlueFatZombie] Frame 12
stop();
effectSound = new Sound(this);
effectSound.attachSound("hitNoKill");
effectSound.start();
Symbol 2256 MovieClip [BlueFatZombie] Frame 13
stop();
effectSound = new Sound(this);
effectSound.attachSound("crit");
effectSound.start();
Symbol 2256 MovieClip [BlueFatZombie] Frame 14
stop();
effectSound = new Sound(this);
effectSound.attachSound("crit");
effectSound.start();
Symbol 2256 MovieClip [BlueFatZombie] Frame 15
stop();
effectSound = new Sound(this);
effectSound.attachSound("bodyExplode");
effectSound.start();
Symbol 2256 MovieClip [BlueFatZombie] Frame 16
stop();
effectSound = new Sound(this);
effectSound.attachSound("bodyExplode");
effectSound.start();
Symbol 2320 MovieClip Frame 52
stop();
_parent.removeMovieClip();
Symbol 2333 MovieClip Frame 38
stop();
_parent.removeMovieClip();
Symbol 2342 MovieClip Frame 13
stop();
Symbol 2361 MovieClip Frame 57
stop();
_parent.removeMovieClip();
Symbol 2374 MovieClip Frame 19
stop();
_parent.removeMovieClip();
Symbol 2375 MovieClip [blondeFatZombie] Frame 1
#initclip 41
Object.registerClass("blondeFatZombie", StandardFatZombie);
#endinitclip
stop();
Instance of Symbol 532 MovieClip "hitbumpL" in Symbol 2375 MovieClip [blondeFatZombie] Frame 1
onClipEvent (enterFrame) {
this._visible = false;
}
Instance of Symbol 532 MovieClip "hitbumpR" in Symbol 2375 MovieClip [blondeFatZombie] Frame 1
onClipEvent (enterFrame) {
this._visible = false;
}
Instance of Symbol 223 MovieClip "leftbumper" in Symbol 2375 MovieClip [blondeFatZombie] Frame 1
onClipEvent (enterFrame) {
this._visible = false;
}
Instance of Symbol 224 MovieClip "rightbumper" in Symbol 2375 MovieClip [blondeFatZombie] Frame 1
onClipEvent (enterFrame) {
this._visible = false;
}
Symbol 2375 MovieClip [blondeFatZombie] Frame 2
stop();
Symbol 2375 MovieClip [blondeFatZombie] Frame 3
stop();
Symbol 2375 MovieClip [blondeFatZombie] Frame 4
stop();
Symbol 2375 MovieClip [blondeFatZombie] Frame 5
stop();
effectSound = new Sound(this);
effectSound.attachSound("doubleBite");
effectSound.start();
Symbol 2375 MovieClip [blondeFatZombie] Frame 6
stop();
effectSound = new Sound(this);
effectSound.attachSound("doubleBite");
effectSound.start();
Symbol 2375 MovieClip [blondeFatZombie] Frame 7
stop();
effectSound = new Sound(this);
effectSound.attachSound("Kill");
effectSound.start();
Symbol 2375 MovieClip [blondeFatZombie] Frame 8
stop();
effectSound = new Sound(this);
effectSound.attachSound("Kill");
effectSound.start();
Symbol 2375 MovieClip [blondeFatZombie] Frame 9
stop();
effectSound = new Sound(this);
effectSound.attachSound("Kill");
effectSound.start();
Symbol 2375 MovieClip [blondeFatZombie] Frame 10
stop();
effectSound = new Sound(this);
effectSound.attachSound("Kill");
effectSound.start();
Symbol 2375 MovieClip [blondeFatZombie] Frame 11
stop();
effectSound = new Sound(this);
effectSound.attachSound("hitNoKill");
effectSound.start();
Symbol 2375 MovieClip [blondeFatZombie] Frame 12
stop();
effectSound = new Sound(this);
effectSound.attachSound("hitNoKill");
effectSound.start();
Symbol 2375 MovieClip [blondeFatZombie] Frame 13
stop();
effectSound = new Sound(this);
effectSound.attachSound("crit");
effectSound.start();
Symbol 2375 MovieClip [blondeFatZombie] Frame 14
stop();
effectSound = new Sound(this);
effectSound.attachSound("crit");
effectSound.start();
Symbol 2375 MovieClip [blondeFatZombie] Frame 15
stop();
effectSound = new Sound(this);
effectSound.attachSound("bodyExplode");
effectSound.start();
Symbol 2375 MovieClip [blondeFatZombie] Frame 16
stop();
effectSound = new Sound(this);
effectSound.attachSound("bodyExplode");
effectSound.start();
Symbol 2376 MovieClip [vampirebat] Frame 1
#initclip 42
Object.registerClass("vampirebat", BatVamp);
#endinitclip
stop();
Instance of Symbol 532 MovieClip "hitbumpL" in Symbol 2376 MovieClip [vampirebat] Frame 1
onClipEvent (enterFrame) {
this._visible = false;
}
Instance of Symbol 532 MovieClip "hitbumpR" in Symbol 2376 MovieClip [vampirebat] Frame 1
onClipEvent (enterFrame) {
this._visible = false;
}
Instance of Symbol 223 MovieClip "leftbumper" in Symbol 2376 MovieClip [vampirebat] Frame 1
onClipEvent (enterFrame) {
this._visible = false;
}
Instance of Symbol 224 MovieClip "rightbumper" in Symbol 2376 MovieClip [vampirebat] Frame 1
onClipEvent (enterFrame) {
this._visible = false;
}
Symbol 2376 MovieClip [vampirebat] Frame 2
stop();
Symbol 2376 MovieClip [vampirebat] Frame 3
stop();
Symbol 2376 MovieClip [vampirebat] Frame 4
stop();
Symbol 2376 MovieClip [vampirebat] Frame 5
stop();
effectSound = new Sound(this);
effectSound.attachSound("vampAttack");
effectSound.start();
Symbol 2376 MovieClip [vampirebat] Frame 6
stop();
effectSound = new Sound(this);
effectSound.attachSound("vampAttack");
effectSound.start();
Symbol 2376 MovieClip [vampirebat] Frame 7
stop();
effectSound = new Sound(this);
effectSound.attachSound("hitNoKill");
effectSound.start();
Symbol 2376 MovieClip [vampirebat] Frame 8
stop();
effectSound = new Sound(this);
effectSound.attachSound("hitNoKill");
effectSound.start();
Symbol 2376 MovieClip [vampirebat] Frame 9
stop();
effectSound = new Sound(this);
effectSound.attachSound("VampireGuardBreak");
effectSound.start();
Symbol 2376 MovieClip [vampirebat] Frame 10
stop();
effectSound = new Sound(this);
effectSound.attachSound("VampireGuardBreak");
effectSound.start();
Symbol 2376 MovieClip [vampirebat] Frame 11
stop();
effectSound = new Sound(this);
effectSound.attachSound("VampExplode");
effectSound.start();
Symbol 2376 MovieClip [vampirebat] Frame 12
stop();
effectSound = new Sound(this);
effectSound.attachSound("VampExplode");
effectSound.start();
Symbol 2376 MovieClip [vampirebat] Frame 13
stop();
effectSound = new Sound(this);
effectSound.attachSound("VampExplode");
effectSound.start();
Symbol 2376 MovieClip [vampirebat] Frame 14
stop();
effectSound = new Sound(this);
effectSound.attachSound("VampExplode");
effectSound.start();
Symbol 2376 MovieClip [vampirebat] Frame 15
stop();
Symbol 2376 MovieClip [vampirebat] Frame 16
stop();
effectSound = new Sound(this);
effectSound.attachSound("transform");
effectSound.start();
Symbol 2376 MovieClip [vampirebat] Frame 17
stop();
effectSound = new Sound(this);
effectSound.attachSound("transform");
effectSound.start();
Symbol 2376 MovieClip [vampirebat] Frame 18
stop();
effectSound = new Sound(this);
effectSound.attachSound("Kill");
effectSound.start();
Symbol 2386 MovieClip [item] Frame 1
stop();
Symbol 2386 MovieClip [item] Frame 2
stop();
this.removeMovieClip();
Symbol 2386 MovieClip [item] Frame 3
stop();
this.removeMovieClip();
Symbol 2386 MovieClip [item] Frame 4
stop();
this.removeMovieClip();
Symbol 2386 MovieClip [item] Frame 5
stop();
Symbol 2386 MovieClip [item] Frame 6
stop();
Symbol 2401 MovieClip Frame 1
stop();
Symbol 2401 MovieClip Frame 2
stop();
Instance of Symbol 2396 MovieClip "barbut" in Symbol 2401 MovieClip Frame 2
on (release) {
_parent.gotoAndStop(2);
}
Symbol 2412 MovieClip Frame 202
stop();
Symbol 2445 MovieClip Frame 350
stop();
Symbol 2448 Button
on (release) {
getURL ("http://www.nx8.com", "_blank");
}
Symbol 2470 Button
on (release) {
getURL ("http://www.nx8.com/?utm_source=zword&utm_medium=zword&utm_campaign=zword", "_blank");
}
Symbol 2473 Button
on (release) {
s = new Sound();
s.setVolume(0);
_root.gotoAndStop(10);
}
Symbol 2504 MovieClip Frame 1
function doSomething() {
}
function doSomething2() {
getURL ("http://www.nx8.com", _blank);
}
MENU.customItems.push(Functioned2);
MENU = new ContextMenu();
MENU.hideBuiltInItems();
Functioned2 = new ContextMenuItem("Play Games on www.nx8.com", doSomething2);
MENU.customItems.push(Functioned);
MENU.customItems.push(Functioned2);
_root.menu = MENU;
Instance of Symbol 2445 MovieClip in Symbol 2504 MovieClip Frame 46
on (release) {
getURL ("http://www.nx8.com/?utm_source=zword&utm_medium=zword&utm_campaign=zword", "_blank");
}
Symbol 2504 MovieClip Frame 271
stop();
Symbol 2505 MovieClip Frame 1
function preloadSite() {
var _local3 = _root.getBytesLoaded();
var _local2 = _root.getBytesTotal();
var _local4 = Math.round((_local3 / _local2) * 100);
loadingbarmenu.myBar._xscale = _local4;
if (_local3 >= _local2) {
clearInterval(loadingCall);
loadingbarmenu.gotoAndStop(2);
}
}
stop();
loadingbarmenu.myBar._xscale = 1;
var loadingCall = setInterval(preloadSite, 50);
this.onEnterFrame = function () {
if (Key.isDown(68) && (loadingbarmenu._currentframe == 2)) {
this.gotoAndStop(2);
}
};
Instance of Symbol 2416 MovieClip in Symbol 2505 MovieClip Frame 1
on (release) {
getURL ("http://www.gamegab.com", "_blank");
}
Symbol 2505 MovieClip Frame 2
stop();
Symbol 2521 MovieClip Frame 240
stop();
_root.bossFight = false;
_root.startBossFight = true;
_root.boss1.gotoAndStop(2);
Symbol 2536 MovieClip Frame 240
stop();
_root.bossFight = false;
_root.startBossFight = true;
Symbol 2551 MovieClip Frame 240
stop();
_root.bossFight = false;
_root.startBossFight = true;
_root.boss1.gotoAndStop(2);
Symbol 2552 MovieClip Frame 1
stop();
Symbol 2552 MovieClip Frame 2
stop();
Symbol 2552 MovieClip Frame 3
stop();
Symbol 2552 MovieClip Frame 4
stop();
Symbol 2563 MovieClip Frame 1
stop();
Symbol 2563 MovieClip Frame 2
stop();
Symbol 2563 MovieClip Frame 3
stop();
Symbol 2594 MovieClip Frame 1
stop();
Symbol 2594 MovieClip Frame 2
stop();
Symbol 2594 MovieClip Frame 3
stop();
Symbol 2594 MovieClip Frame 4
stop();
Symbol 2594 MovieClip Frame 5
stop();
Symbol 2594 MovieClip Frame 6
stop();
Symbol 2594 MovieClip Frame 7
stop();
Symbol 2594 MovieClip Frame 8
stop();
Symbol 2594 MovieClip Frame 9
stop();
Symbol 2594 MovieClip Frame 10
stop();
Symbol 2594 MovieClip Frame 11
stop();
Symbol 2594 MovieClip Frame 12
stop();
Symbol 2594 MovieClip Frame 13
stop();
Symbol 2594 MovieClip Frame 14
stop();
Symbol 2594 MovieClip Frame 15
stop();
Symbol 2620 MovieClip Frame 1
stop();
Symbol 2620 MovieClip Frame 2
stop();
Symbol 2620 MovieClip Frame 3
stop();
Symbol 2620 MovieClip Frame 4
stop();
Symbol 2620 MovieClip Frame 5
stop();
Symbol 2620 MovieClip Frame 6
stop();
Symbol 2620 MovieClip Frame 7
stop();
Symbol 2620 MovieClip Frame 8
stop();
Symbol 2620 MovieClip Frame 9
stop();
Symbol 2643 MovieClip Frame 1
stop();
Symbol 2643 MovieClip Frame 2
stop();
Symbol 2643 MovieClip Frame 3
stop();
Symbol 2643 MovieClip Frame 4
stop();
Symbol 2643 MovieClip Frame 5
stop();
Symbol 2643 MovieClip Frame 6
stop();
Symbol 2643 MovieClip Frame 7
stop();
Symbol 2643 MovieClip Frame 8
stop();
Symbol 2643 MovieClip Frame 9
stop();
Symbol 2643 MovieClip Frame 10
stop();
Symbol 2662 MovieClip Frame 1
stop();
Symbol 2662 MovieClip Frame 2
stop();
Symbol 2662 MovieClip Frame 3
stop();
Symbol 2662 MovieClip Frame 4
stop();
Symbol 2662 MovieClip Frame 5
stop();
Symbol 2662 MovieClip Frame 6
stop();
Symbol 2662 MovieClip Frame 7
stop();
Symbol 2662 MovieClip Frame 8
stop();
Symbol 2662 MovieClip Frame 9
stop();
Symbol 2662 MovieClip Frame 10
stop();
Symbol 2682 MovieClip Frame 1
stop();
Symbol 2682 MovieClip Frame 2
stop();
Symbol 2682 MovieClip Frame 3
stop();
Symbol 2682 MovieClip Frame 4
stop();
Symbol 2682 MovieClip Frame 5
stop();
Symbol 2682 MovieClip Frame 6
stop();
Symbol 2682 MovieClip Frame 7
stop();
Symbol 2682 MovieClip Frame 8
stop();
Symbol 2682 MovieClip Frame 9
stop();
Symbol 2689 MovieClip Frame 1
stop();
Symbol 2689 MovieClip Frame 2
stop();
Symbol 2689 MovieClip Frame 3
stop();
Symbol 2689 MovieClip Frame 4
stop();
Symbol 2689 MovieClip Frame 5
stop();
Symbol 2689 MovieClip Frame 6
stop();
Symbol 2704 MovieClip Frame 1
stop();
Symbol 2704 MovieClip Frame 2
stop();
Symbol 2704 MovieClip Frame 3
stop();
Symbol 2704 MovieClip Frame 4
stop();
Symbol 2704 MovieClip Frame 5
stop();
Symbol 2704 MovieClip Frame 6
stop();
Symbol 2704 MovieClip Frame 7
stop();
Symbol 2721 MovieClip Frame 1
stop();
Symbol 2721 MovieClip Frame 2
stop();
Symbol 2721 MovieClip Frame 3
stop();
Symbol 2721 MovieClip Frame 4
stop();
Symbol 2721 MovieClip Frame 5
stop();
Symbol 2721 MovieClip Frame 6
stop();
Symbol 2721 MovieClip Frame 7
stop();
Symbol 2721 MovieClip Frame 8
stop();
Symbol 2721 MovieClip Frame 9
stop();
Symbol 2724 MovieClip Frame 6
stop();
Symbol 2727 MovieClip Frame 6
stop();
Symbol 2728 MovieClip Frame 1
stop();
Symbol 2728 MovieClip Frame 2
stop();
Symbol 2733 MovieClip Frame 1
stop();
Symbol 2733 MovieClip Frame 2
stop();
Symbol 2733 MovieClip Frame 3
stop();
Symbol 2735 MovieClip Frame 1
this._visible = false;
Symbol 2742 MovieClip Frame 1
stop();
Symbol 2742 MovieClip Frame 2
stop();
Symbol 2748 MovieClip Frame 1
stop();
Symbol 2748 MovieClip Frame 2
stop();
Symbol 2753 MovieClip Frame 1
stop();
Symbol 2753 MovieClip Frame 2
stop();
Symbol 2758 MovieClip Frame 1
stop();
Symbol 2758 MovieClip Frame 2
stop();
Symbol 2760 MovieClip Frame 1
stop();
Symbol 2760 MovieClip Frame 2
stop();
Symbol 2765 MovieClip Frame 1
stop();
Symbol 2765 MovieClip Frame 2
stop();
Symbol 2765 MovieClip Frame 3
stop();
Instance of Symbol 2445 MovieClip in Symbol 2766 MovieClip Frame 1
on (release) {
getURL ("http://www.nx8.com", "_blank");
}
Symbol 2767 MovieClip Frame 9
stop();
Symbol 2768 MovieClip Frame 1
stop();
Symbol 2768 MovieClip Frame 2
stop();
Symbol 2770 MovieClip Frame 1
stop();
Symbol 2770 MovieClip Frame 2
function saveData() {
marker.gotoAndStop(2);
if (_global.slot == 1) {
slot_1 = SharedObject.getLocal("slot_1", "/");
slot_1.data.heldGibs = _global.heldGibs;
slot_1.data.lives = _global.lives;
slot_1.data.health = _global.health;
slot_1.data.mana = _global.mana;
slot_1.data.healthPacks = _global.healthPacks;
slot_1.data.heldGrenades = _global.heldGrenades;
slot_1.data.manaPots = _global.manaPots;
slot_1.data.heldCrosses = _global.heldCrosses;
slot_1.data.heldCrossbows = _global.heldCrossbows;
slot_1.data.maxHealth = _global.maxHealth;
slot_1.data.maxMana = _global.maxMana;
slot_1.data.healAmount = _global.healAmount;
slot_1.data.manaAmount = _global.manaAmount;
slot_1.data.goreMultiplier = _global.goreMultiplier;
slot_1.data.longCross = _global.longCross;
slot_1.data.incendiary = _global.incendiary;
slot_1.data.silver = _global.silver;
slot_1.data.sureShot = _global.sureShot;
slot_1.data.pyro = _global.pyro;
slot_1.data.batDam1 = _global.batDam1;
slot_1.data.batDam2 = _global.batDam2;
slot_1.data.katDam1 = _global.katDam1;
slot_1.data.katDam2 = _global.katDam2;
slot_1.data.stakeDam1 = _global.stakeDam1;
slot_1.data.stakeDam2 = _global.stakeDam2;
slot_1.data.batSpe = _global.batSpe;
slot_1.data.katSpe = _global.katSpe;
slot_1.data.stakeSpe = _global.stakeSpe;
slot_1.data.mag2 = _global.mag2;
slot_1.data.mag3 = _global.mag3;
slot_1.data.mag4 = _global.mag4;
slot_1.data.mag5 = _global.mag5;
slot_1.data.mag1addon = _global.mag1addon;
slot_1.data.mag2addon = _global.mag2addon;
slot_1.data.mag3addon = _global.mag3addon;
slot_1.data.mag4addon = _global.mag4addon;
slot_1.data.mag5addon = _global.mag5addon;
slot_1.data.batCutSlimes = _global.batCutSlimes;
slot_1.data.stakeCutSlimes = _global.stakeCutSlimes;
slot_1.data.batOneFat = _global.batOneFat;
slot_1.data.batOneFat = _global.katOneVamp;
slot_1.data.stakeOneVamp = _global.stakeOneVamp;
slot_1.data.stakeOneWere = _global.stakeOneWere;
slot_1.data.perk0 = _global.perk0;
slot_1.data.perk1 = _global.perk1;
slot_1.data.perk2 = _global.perk2;
slot_1.data.perk3 = _global.perk3;
slot_1.data.perk4 = _global.perk4;
slot_1.data.perk5 = _global.perk5;
slot_1.data.perk6 = _global.perk6;
slot_1.data.perk7 = _global.perk7;
slot_1.data.perk8 = _global.perk8;
slot_1.data.perk9 = _global.perk9;
slot_1.data.perk10 = _global.perk10;
slot_1.data.lev1unlock = _global.lev1unlock;
slot_1.data.lev2unlock = _global.lev2unlock;
slot_1.data.lev3unlock = _global.lev3unlock;
slot_1.data.shopunlock = _global.shopunlock;
slot_1.data.lev1just = _global.lev1just;
slot_1.data.lev2just = _global.lev2just;
slot_1.data.lev3just = _global.lev3just;
slot_1.data.shopjust = _global.shopjust;
slot_1.data.ach1 = _global.ach1;
slot_1.data.ach2 = _global.ach2;
slot_1.data.ach3 = _global.ach3;
slot_1.data.ach4 = _global.ach4;
slot_1.data.ach5 = _global.ach5;
slot_1.data.ach6 = _global.ach6;
slot_1.data.ach7 = _global.ach7;
slot_1.data.ach8 = _global.ach8;
slot_1.data.ach9 = _global.ach9;
slot_1.data.ach10 = _global.ach10;
slot_1.data.ach11 = _global.ach11;
slot_1.data.ach12 = _global.ach12;
slot_1.data.ach13 = _global.ach13;
slot_1.data.ach14 = _global.ach14;
slot_1.data.ach15 = _global.ach15;
slot_1.data.zombiesKilled = _global.zombiesKilled;
slot_1.data.werewolvesKilled = _global.werewolvesKilled;
slot_1.data.vampiresKilled = _global.vampiresKilled;
slot_1.flush();
}
if (_global.slot == 2) {
slot_2 = SharedObject.getLocal("slot_2", "/");
slot_2.data.heldGibs = _global.heldGibs;
slot_2.data.lives = _global.lives;
slot_2.data.health = _global.health;
slot_2.data.mana = _global.mana;
slot_2.data.healthPacks = _global.healthPacks;
slot_2.data.heldGrenades = _global.heldGrenades;
slot_2.data.manaPots = _global.manaPots;
slot_2.data.heldCrosses = _global.heldCrosses;
slot_2.data.heldCrossbows = _global.heldCrossbows;
slot_2.data.maxHealth = _global.maxHealth;
slot_2.data.maxMana = _global.maxMana;
slot_2.data.healAmount = _global.healAmount;
slot_2.data.manaAmount = _global.manaAmount;
slot_2.data.goreMultiplier = _global.goreMultiplier;
slot_2.data.longCross = _global.longCross;
slot_2.data.incendiary = _global.incendiary;
slot_2.data.silver = _global.silver;
slot_2.data.sureShot = _global.sureShot;
slot_2.data.pyro = _global.pyro;
slot_2.data.batDam1 = _global.batDam1;
slot_2.data.batDam2 = _global.batDam2;
slot_2.data.katDam1 = _global.katDam1;
slot_2.data.katDam2 = _global.katDam2;
slot_2.data.stakeDam1 = _global.stakeDam1;
slot_2.data.stakeDam2 = _global.stakeDam2;
slot_2.data.batSpe = _global.batSpe;
slot_2.data.katSpe = _global.katSpe;
slot_2.data.stakeSpe = _global.stakeSpe;
slot_2.data.mag2 = _global.mag2;
slot_2.data.mag3 = _global.mag3;
slot_2.data.mag4 = _global.mag4;
slot_2.data.mag5 = _global.mag5;
slot_2.data.mag1addon = _global.mag1addon;
slot_2.data.mag2addon = _global.mag2addon;
slot_2.data.mag3addon = _global.mag3addon;
slot_2.data.mag4addon = _global.mag4addon;
slot_2.data.mag5addon = _global.mag5addon;
slot_2.data.batCutSlimes = _global.batCutSlimes;
slot_2.data.stakeCutSlimes = _global.stakeCutSlimes;
slot_2.data.batOneFat = _global.batOneFat;
slot_2.data.batOneFat = _global.katOneVamp;
slot_2.data.stakeOneVamp = _global.stakeOneVamp;
slot_2.data.stakeOneWere = _global.stakeOneWere;
slot_2.data.perk0 = _global.perk0;
slot_2.data.perk1 = _global.perk1;
slot_2.data.perk2 = _global.perk2;
slot_2.data.perk3 = _global.perk3;
slot_2.data.perk4 = _global.perk4;
slot_2.data.perk5 = _global.perk5;
slot_2.data.perk6 = _global.perk6;
slot_2.data.perk7 = _global.perk7;
slot_2.data.perk8 = _global.perk8;
slot_2.data.perk9 = _global.perk9;
slot_2.data.perk10 = _global.perk10;
slot_2.data.lev1unlock = _global.lev1unlock;
slot_2.data.lev2unlock = _global.lev2unlock;
slot_2.data.lev3unlock = _global.lev3unlock;
slot_2.data.shopunlock = _global.shopunlock;
slot_2.data.lev1just = _global.lev1just;
slot_2.data.lev2just = _global.lev2just;
slot_2.data.lev3just = _global.lev3just;
slot_2.data.shopjust = _global.shopjust;
slot_2.data.ach1 = _global.ach1;
slot_2.data.ach2 = _global.ach2;
slot_2.data.ach3 = _global.ach3;
slot_2.data.ach4 = _global.ach4;
slot_2.data.ach5 = _global.ach5;
slot_2.data.ach6 = _global.ach6;
slot_2.data.ach7 = _global.ach7;
slot_2.data.ach8 = _global.ach8;
slot_2.data.ach9 = _global.ach9;
slot_2.data.ach10 = _global.ach10;
slot_2.data.ach11 = _global.ach11;
slot_2.data.ach12 = _global.ach12;
slot_2.data.ach13 = _global.ach13;
slot_2.data.ach14 = _global.ach14;
slot_2.data.ach15 = _global.ach15;
slot_2.data.zombiesKilled = _global.zombiesKilled;
slot_2.data.werewolvesKilled = _global.werewolvesKilled;
slot_2.data.vampiresKilled = _global.vampiresKilled;
slot_2.flush();
}
if (_global.slot == 3) {
slot_3 = SharedObject.getLocal("slot_3", "/");
slot_3.data.heldGibs = _global.heldGibs;
slot_3.data.lives = _global.lives;
slot_3.data.health = _global.health;
slot_3.data.mana = _global.mana;
slot_3.data.healthPacks = _global.healthPacks;
slot_3.data.heldGrenades = _global.heldGrenades;
slot_3.data.manaPots = _global.manaPots;
slot_3.data.heldCrosses = _global.heldCrosses;
slot_3.data.heldCrossbows = _global.heldCrossbows;
slot_3.data.maxHealth = _global.maxHealth;
slot_3.data.maxMana = _global.maxMana;
slot_3.data.healAmount = _global.healAmount;
slot_3.data.manaAmount = _global.manaAmount;
slot_3.data.goreMultiplier = _global.goreMultiplier;
slot_3.data.longCross = _global.longCross;
slot_3.data.incendiary = _global.incendiary;
slot_3.data.silver = _global.silver;
slot_3.data.sureShot = _global.sureShot;
slot_3.data.pyro = _global.pyro;
slot_3.data.batDam1 = _global.batDam1;
slot_3.data.batDam2 = _global.batDam2;
slot_3.data.katDam1 = _global.katDam1;
slot_3.data.katDam2 = _global.katDam2;
slot_3.data.stakeDam1 = _global.stakeDam1;
slot_3.data.stakeDam2 = _global.stakeDam2;
slot_3.data.batSpe = _global.batSpe;
slot_3.data.katSpe = _global.katSpe;
slot_3.data.stakeSpe = _global.stakeSpe;
slot_3.data.mag2 = _global.mag2;
slot_3.data.mag3 = _global.mag3;
slot_3.data.mag4 = _global.mag4;
slot_3.data.mag5 = _global.mag5;
slot_3.data.mag1addon = _global.mag1addon;
slot_3.data.mag2addon = _global.mag2addon;
slot_3.data.mag3addon = _global.mag3addon;
slot_3.data.mag4addon = _global.mag4addon;
slot_3.data.mag5addon = _global.mag5addon;
slot_3.data.batCutSlimes = _global.batCutSlimes;
slot_3.data.stakeCutSlimes = _global.stakeCutSlimes;
slot_3.data.batOneFat = _global.batOneFat;
slot_3.data.batOneFat = _global.katOneVamp;
slot_3.data.stakeOneVamp = _global.stakeOneVamp;
slot_3.data.stakeOneWere = _global.stakeOneWere;
slot_3.data.perk0 = _global.perk0;
slot_3.data.perk1 = _global.perk1;
slot_3.data.perk2 = _global.perk2;
slot_3.data.perk3 = _global.perk3;
slot_3.data.perk4 = _global.perk4;
slot_3.data.perk5 = _global.perk5;
slot_3.data.perk6 = _global.perk6;
slot_3.data.perk7 = _global.perk7;
slot_3.data.perk8 = _global.perk8;
slot_3.data.perk9 = _global.perk9;
slot_3.data.perk10 = _global.perk10;
slot_3.data.lev1unlock = _global.lev1unlock;
slot_3.data.lev2unlock = _global.lev2unlock;
slot_3.data.lev3unlock = _global.lev3unlock;
slot_3.data.shopunlock = _global.shopunlock;
slot_3.data.lev1just = _global.lev1just;
slot_3.data.lev2just = _global.lev2just;
slot_3.data.lev3just = _global.lev3just;
slot_3.data.shopjust = _global.shopjust;
slot_3.data.ach1 = _global.ach1;
slot_3.data.ach2 = _global.ach2;
slot_3.data.ach3 = _global.ach3;
slot_3.data.ach4 = _global.ach4;
slot_3.data.ach5 = _global.ach5;
slot_3.data.ach6 = _global.ach6;
slot_3.data.ach7 = _global.ach7;
slot_3.data.ach8 = _global.ach8;
slot_3.data.ach9 = _global.ach9;
slot_3.data.ach10 = _global.ach10;
slot_3.data.ach11 = _global.ach11;
slot_3.data.ach12 = _global.ach12;
slot_3.data.ach13 = _global.ach13;
slot_3.data.ach14 = _global.ach14;
slot_3.data.ach15 = _global.ach15;
slot_3.data.zombiesKilled = _global.zombiesKilled;
slot_3.data.werewolvesKilled = _global.werewolvesKilled;
slot_3.data.vampiresKilled = _global.vampiresKilled;
slot_3.flush();
}
}
stop();
trace(_global.heldCrosses);
trace(_global.heldCrossbows);
ach.gotoAndStop(2);
var index = 1;
var cooldown = 0;
this.onEnterFrame = function () {
if (_global.quality == "high") {
qualbutt.gotoAndStop(1);
} else if (_global.quality == "medium") {
qualbutt.gotoAndStop(2);
} else if (_global.quality == "low") {
qualbutt.gotoAndStop(3);
}
if (cooldown > 0) {
cooldown--;
}
if (Key.isDown(40) && (cooldown == 0)) {
cooldown = 6;
index++;
if (index == 5) {
index = 1;
}
if (index == 1) {
save.gotoAndStop(1);
controls.gotoAndStop(1);
ach.gotoAndStop(2);
exit.gotoAndStop(1);
}
if (index == 2) {
save.gotoAndStop(2);
controls.gotoAndStop(1);
ach.gotoAndStop(1);
exit.gotoAndStop(1);
}
if (index == 3) {
save.gotoAndStop(1);
controls.gotoAndStop(2);
ach.gotoAndStop(1);
exit.gotoAndStop(1);
}
if (index == 4) {
save.gotoAndStop(1);
controls.gotoAndStop(1);
ach.gotoAndStop(1);
exit.gotoAndStop(2);
}
}
if (Key.isDown(38) && (cooldown == 0)) {
cooldown = 6;
index--;
if (index == 0) {
index = 4;
}
if (index == 1) {
save.gotoAndStop(1);
controls.gotoAndStop(1);
ach.gotoAndStop(2);
exit.gotoAndStop(1);
}
if (index == 2) {
save.gotoAndStop(2);
controls.gotoAndStop(1);
ach.gotoAndStop(1);
exit.gotoAndStop(1);
}
if (index == 3) {
save.gotoAndStop(1);
controls.gotoAndStop(2);
ach.gotoAndStop(1);
exit.gotoAndStop(1);
}
if (index == 4) {
save.gotoAndStop(1);
controls.gotoAndStop(1);
ach.gotoAndStop(1);
exit.gotoAndStop(2);
}
}
if ((Key.isDown(68) && (cooldown == 0)) && (_root.bPaused)) {
if (index == 1) {
_root.camera.achmenu.gotoAndStop(2);
}
if (index == 2) {
saveData();
}
if (index == 3) {
_root.camera.controls.gotoAndStop(2);
}
if (index == 4) {
_root.backToMenu = true;
}
}
};
ach.onPress = function () {
_root.camera.achmenu.gotoAndStop(2);
};
ach.onRollOver = function () {
save.gotoAndStop(1);
controls.gotoAndStop(1);
ach.gotoAndStop(2);
exit.gotoAndStop(1);
index = 1;
};
save.onPress = function () {
saveData();
};
save.onRollOver = function () {
save.gotoAndStop(2);
controls.gotoAndStop(1);
ach.gotoAndStop(1);
exit.gotoAndStop(1);
index = 2;
};
controls.onPress = function () {
_root.camera.controls.gotoAndStop(2);
};
controls.onRollOver = function () {
save.gotoAndStop(1);
controls.gotoAndStop(2);
ach.gotoAndStop(1);
exit.gotoAndStop(1);
index = 3;
};
exit.onPress = function () {
_root.backToMenu = true;
};
exit.onRollOver = function () {
save.gotoAndStop(1);
controls.gotoAndStop(1);
ach.gotoAndStop(1);
exit.gotoAndStop(2);
index = 4;
};
qualbutt.onRelease = function () {
if (qualbutt._currentframe == 1) {
qualbutt.gotoAndStop(2);
_root._quality = "medium";
_global.quality = "medium";
} else if (qualbutt._currentframe == 2) {
qualbutt.gotoAndStop(3);
_root._quality = "low";
_global.quality = "low";
} else if (qualbutt._currentframe == 3) {
qualbutt.gotoAndStop(1);
_root._quality = "high";
_global.quality = "high";
}
};
Instance of Symbol 2769 MovieClip in Symbol 2770 MovieClip Frame 2
on (release) {
getURL ("http://www.nx8.com/?utm_source=zword&utm_medium=zword&utm_campaign=zword", "_blank");
}
Symbol 2778 MovieClip Frame 1
stop();
Symbol 2778 MovieClip Frame 2
stop();
Symbol 2781 MovieClip Frame 1
stop();
Symbol 2781 MovieClip Frame 2
stop();
Symbol 2784 MovieClip Frame 1
stop();
Symbol 2784 MovieClip Frame 2
stop();
Symbol 2787 MovieClip Frame 1
stop();
Symbol 2787 MovieClip Frame 2
stop();
Symbol 2790 MovieClip Frame 1
stop();
Symbol 2790 MovieClip Frame 2
stop();
Symbol 2793 MovieClip Frame 1
stop();
Symbol 2793 MovieClip Frame 2
stop();
Symbol 2796 MovieClip Frame 1
stop();
Symbol 2796 MovieClip Frame 2
stop();
Symbol 2799 MovieClip Frame 1
stop();
Symbol 2799 MovieClip Frame 2
stop();
Symbol 2802 MovieClip Frame 1
stop();
Symbol 2802 MovieClip Frame 2
stop();
Symbol 2805 MovieClip Frame 1
stop();
Symbol 2805 MovieClip Frame 2
stop();
Symbol 2808 MovieClip Frame 1
stop();
Symbol 2808 MovieClip Frame 2
stop();
Symbol 2811 MovieClip Frame 1
stop();
Symbol 2811 MovieClip Frame 2
stop();
Symbol 2814 MovieClip Frame 1
stop();
Symbol 2814 MovieClip Frame 2
stop();
Symbol 2817 MovieClip Frame 1
stop();
Symbol 2817 MovieClip Frame 2
stop();
Symbol 2820 MovieClip Frame 1
stop();
Symbol 2820 MovieClip Frame 2
stop();
Symbol 2823 MovieClip Frame 1
stop();
Symbol 2823 MovieClip Frame 2
stop();
Symbol 2824 MovieClip Frame 1
stop();
Symbol 2824 MovieClip Frame 2
stop();
trace(_global.ach1);
if (_global.ach1) {
ach1.gotoAndStop(2);
}
if (_global.ach2) {
ach2.gotoAndStop(2);
}
if (_global.ach3) {
ach3.gotoAndStop(2);
}
if (_global.ach4) {
ach4.gotoAndStop(2);
}
if (_global.ach5) {
ach5.gotoAndStop(2);
}
if (_global.ach6) {
ach6.gotoAndStop(2);
}
if (_global.ach7) {
ach7.gotoAndStop(2);
}
if (_global.ach8) {
ach8.gotoAndStop(2);
}
if (_global.ach9) {
ach9.gotoAndStop(2);
}
if (_global.ach10) {
ach10.gotoAndStop(2);
}
if (_global.ach11) {
ach11.gotoAndStop(2);
}
if (_global.ach12) {
ach12.gotoAndStop(2);
}
if (_global.ach13) {
ach13.gotoAndStop(2);
}
if (_global.ach14) {
ach14.gotoAndStop(2);
}
if (_global.ach15) {
ach15.gotoAndStop(2);
}
exit.onPress = function () {
_root.camera.achmenu.gotoAndStop(1);
};
this.onEnterFrame = function () {
if (Key.isDown(83)) {
_root.camera.achmenu.gotoAndStop(1);
}
};
Symbol 2828 MovieClip Frame 17
effectSound = new Sound(this);
effectSound.attachSound("blip");
effectSound.start();
Symbol 2828 MovieClip Frame 120
stop();
Symbol 2832 MovieClip Frame 17
effectSound = new Sound(this);
effectSound.attachSound("blip");
effectSound.start();
Symbol 2832 MovieClip Frame 120
stop();
Symbol 2836 MovieClip Frame 17
effectSound = new Sound(this);
effectSound.attachSound("blip");
effectSound.start();
Symbol 2836 MovieClip Frame 121
stop();
Symbol 2840 MovieClip Frame 17
effectSound = new Sound(this);
effectSound.attachSound("blip");
effectSound.start();
Symbol 2840 MovieClip Frame 120
stop();
Symbol 2844 MovieClip Frame 17
effectSound = new Sound(this);
effectSound.attachSound("blip");
effectSound.start();
Symbol 2844 MovieClip Frame 120
stop();
Symbol 2848 MovieClip Frame 17
effectSound = new Sound(this);
effectSound.attachSound("blip");
effectSound.start();
Symbol 2848 MovieClip Frame 120
stop();
Symbol 2852 MovieClip Frame 17
effectSound = new Sound(this);
effectSound.attachSound("blip");
effectSound.start();
Symbol 2852 MovieClip Frame 120
stop();
Symbol 2856 MovieClip Frame 17
effectSound = new Sound(this);
effectSound.attachSound("blip");
effectSound.start();
Symbol 2856 MovieClip Frame 120
stop();
Symbol 2860 MovieClip Frame 17
effectSound = new Sound(this);
effectSound.attachSound("blip");
effectSound.start();
Symbol 2860 MovieClip Frame 120
stop();
Symbol 2864 MovieClip Frame 17
effectSound = new Sound(this);
effectSound.attachSound("blip");
effectSound.start();
Symbol 2864 MovieClip Frame 120
stop();
Symbol 2868 MovieClip Frame 17
effectSound = new Sound(this);
effectSound.attachSound("blip");
effectSound.start();
Symbol 2868 MovieClip Frame 120
stop();
Symbol 2872 MovieClip Frame 17
effectSound = new Sound(this);
effectSound.attachSound("blip");
effectSound.start();
Symbol 2872 MovieClip Frame 120
stop();
Symbol 2876 MovieClip Frame 17
effectSound = new Sound(this);
effectSound.attachSound("blip");
effectSound.start();
Symbol 2876 MovieClip Frame 120
stop();
Symbol 2880 MovieClip Frame 17
effectSound = new Sound(this);
effectSound.attachSound("blip");
effectSound.start();
Symbol 2880 MovieClip Frame 120
stop();
Symbol 2884 MovieClip Frame 17
effectSound = new Sound(this);
effectSound.attachSound("blip");
effectSound.start();
Symbol 2884 MovieClip Frame 120
stop();
Symbol 2885 MovieClip Frame 1
stop();
Symbol 2885 MovieClip Frame 2
stop();
Symbol 2885 MovieClip Frame 3
stop();
Symbol 2885 MovieClip Frame 4
stop();
Symbol 2885 MovieClip Frame 5
stop();
Symbol 2885 MovieClip Frame 6
stop();
Symbol 2885 MovieClip Frame 7
stop();
Symbol 2885 MovieClip Frame 8
stop();
Symbol 2885 MovieClip Frame 9
stop();
Symbol 2885 MovieClip Frame 10
stop();
Symbol 2885 MovieClip Frame 11
stop();
Symbol 2885 MovieClip Frame 12
stop();
Symbol 2885 MovieClip Frame 13
stop();
Symbol 2885 MovieClip Frame 14
stop();
Symbol 2885 MovieClip Frame 15
stop();
Symbol 2885 MovieClip Frame 16
stop();
Symbol 2891 MovieClip Frame 1
stop();
Symbol 2891 MovieClip Frame 2
stop();
Symbol 2897 MovieClip Frame 1
stop();
Symbol 2897 MovieClip Frame 2
stop();
Symbol 2900 MovieClip Frame 1
stop();
Symbol 2900 MovieClip Frame 2
stop();
Symbol 2906 MovieClip Frame 1
stop();
Symbol 2906 MovieClip Frame 2
stop();
Symbol 2910 MovieClip Frame 1
stop();
Symbol 2910 MovieClip Frame 2
stop();
Symbol 2911 MovieClip Frame 1
stop();
Symbol 2911 MovieClip Frame 2
stop();
yes.onRelease = function () {
if (_root.camera.savegames.really1._currentframe == 2) {
_root.camera.savegames.slot1.gotoAndStop(2);
_root.camera.savegames.slot_1.clear();
_root.camera.savegames.really1.gotoAndStop(1);
} else if (_root.camera.savegames.really2._currentframe == 2) {
_root.camera.savegames.slot2.gotoAndStop(2);
_root.camera.savegames.slot_2.clear();
_root.camera.savegames.really2.gotoAndStop(1);
} else if (_root.camera.savegames.really3._currentframe == 2) {
_root.camera.savegames.slot3.gotoAndStop(2);
_root.camera.savegames.slot_3.clear();
_root.camera.savegames.really3.gotoAndStop(1);
}
};
yes.onRollOver = function () {
yes.gotoAndStop(2);
no.gotoAndStop(1);
};
no.onRelease = function () {
if (_root.camera.savegames.really1._currentframe == 2) {
_root.camera.savegames.really1.gotoAndStop(1);
} else if (_root.camera.savegames.really2._currentframe == 2) {
_root.camera.savegames.really2.gotoAndStop(1);
} else if (_root.camera.savegames.really3._currentframe == 2) {
_root.camera.savegames.really3.gotoAndStop(1);
}
};
no.onRollOver = function () {
yes.gotoAndStop(1);
no.gotoAndStop(2);
};
Symbol 2912 MovieClip Frame 1
stop();
Symbol 2912 MovieClip Frame 2
function useOne() {
if (_root.camera.savegames._currentframe == 2) {
_global.slot = 1;
if (slot_1.data.used == undefined) {
_global.heldGibs = 0;
_global.lives = 3;
_global.health = 12;
_global.mana = 0;
_global.healthPacks = 0;
_global.heldGrenades = 0;
_global.manaPots = 0;
_global.heldCrosses = 0;
_global.heldCrossbows = 0;
_global.maxHealth = 12;
_global.maxMana = 6;
_global.healAmount = 8;
_global.manaAmount = 4;
_global.goreMultiplier = 1;
_global.longCross = false;
_global.incendiary = false;
_global.silver = false;
_global.sureShot = false;
_global.pyro = false;
_global.batDam1 = false;
_global.batDam2 = false;
_global.katDam1 = false;
_global.katDam2 = false;
_global.stakeDam1 = false;
_global.stakeDam2 = false;
_global.batSpe = 0;
_global.katSpe = 0;
_global.stakeSpe = 0;
_global.mag2 = false;
_global.mag3 = false;
_global.mag4 = false;
_global.mag5 = false;
_global.mag1addon = false;
_global.mag2addon = false;
_global.mag3addon = false;
_global.mag4addon = false;
_global.mag5addon = false;
_global.batCutSlimes = false;
_global.stakeCutSlimes = false;
_global.batOneFat = false;
_global.katOneVamp = false;
_global.stakeOneVamp = false;
_global.stakeOneWere = false;
_global.perk0 = false;
_global.perk1 = false;
_global.perk2 = false;
_global.perk3 = false;
_global.perk4 = false;
_global.perk5 = false;
_global.perk6 = false;
_global.perk7 = false;
_global.perk8 = false;
_global.perk9 = false;
_global.perk10 = false;
_global.lev1unlock = false;
_global.lev2unlock = false;
_global.lev3unlock = false;
_global.shopunlock = false;
_global.lev1just = false;
_global.lev2just = false;
_global.lev3just = false;
_global.shopjust = false;
_global.ach1 = false;
_global.ach2 = false;
_global.ach3 = false;
_global.ach4 = false;
_global.ach5 = false;
_global.ach6 = false;
_global.ach7 = false;
_global.ach8 = false;
_global.ach9 = false;
_global.ach10 = false;
_global.ach11 = false;
_global.ach12 = false;
_global.ach13 = false;
_global.ach14 = false;
_global.ach15 = false;
_global.zombiesKilled = 0;
_global.werewolvesKilled = 0;
_global.vampiresKilled = 0;
slot_1.data.used = 1;
slot_1.data.heldGibs = _global.heldGibs;
slot_1.data.lives = _global.lives;
slot_1.data.health = _global.health;
slot_1.data.mana = _global.mana;
slot_1.data.healthPacks = _global.healthPacks;
slot_1.data.heldGrenades = _global.heldGrenades;
slot_1.data.manaPots = _global.manaPots;
slot_1.data.heldCrosses = _global.heldCrosses;
slot_1.data.heldCrossbows = _global.heldCrossbows;
slot_1.data.maxHealth = _global.maxHealth;
slot_1.data.maxMana = _global.maxMana;
slot_1.data.healAmount = _global.healAmount;
slot_1.data.manaAmount = _global.manaAmount;
slot_1.data.goreMultiplier = _global.goreMultiplier;
slot_1.data.longCross = _global.longCross;
slot_1.data.incendiary = _global.incendiary;
slot_1.data.silver = _global.silver;
slot_1.data.sureShot = _global.sureShot;
slot_1.data.pyro = _global.pyro;
slot_1.data.batDam1 = _global.batDam1;
slot_1.data.batDam2 = _global.batDam2;
slot_1.data.katDam1 = _global.katDam1;
slot_1.data.katDam2 = _global.katDam2;
slot_1.data.stakeDam1 = _global.stakeDam1;
slot_1.data.stakeDam2 = _global.stakeDam2;
slot_1.data.batSpe = _global.batSpe;
slot_1.data.katSpe = _global.katSpe;
slot_1.data.stakeSpe = _global.stakeSpe;
slot_1.data.mag2 = _global.mag2;
slot_1.data.mag3 = _global.mag3;
slot_1.data.mag4 = _global.mag4;
slot_1.data.mag5 = _global.mag5;
slot_1.data.mag1addon = _global.mag1addon;
slot_1.data.mag2addon = _global.mag2addon;
slot_1.data.mag3addon = _global.mag3addon;
slot_1.data.mag4addon = _global.mag4addon;
slot_1.data.mag5addon = _global.mag5addon;
slot_1.data.batCutSlimes = _global.batCutSlimes;
slot_1.data.stakeCutSlimes = _global.stakeCutSlimes;
slot_1.data.batOneFat = _global.batOneFat;
slot_1.data.batOneFat = _global.katOneVamp;
slot_1.data.stakeOneVamp = _global.stakeOneVamp;
slot_1.data.stakeOneWere = _global.stakeOneWere;
slot_1.data.perk0 = _global.perk0;
slot_1.data.perk1 = _global.perk1;
slot_1.data.perk2 = _global.perk2;
slot_1.data.perk3 = _global.perk3;
slot_1.data.perk4 = _global.perk4;
slot_1.data.perk5 = _global.perk5;
slot_1.data.perk6 = _global.perk6;
slot_1.data.perk7 = _global.perk7;
slot_1.data.perk8 = _global.perk8;
slot_1.data.perk9 = _global.perk9;
slot_1.data.perk10 = _global.perk10;
slot_1.data.lev1unlock = _global.lev1unlock;
slot_1.data.lev2unlock = _global.lev2unlock;
slot_1.data.lev3unlock = _global.lev3unlock;
slot_1.data.shopunlock = _global.shopunlock;
slot_1.data.lev1just = _global.lev1just;
slot_1.data.lev2just = _global.lev2just;
slot_1.data.lev3just = _global.lev3just;
slot_1.data.shopjust = _global.shopjust;
slot_1.data.ach1 = _global.ach1;
slot_1.data.ach2 = _global.ach2;
slot_1.data.ach3 = _global.ach3;
slot_1.data.ach4 = _global.ach4;
slot_1.data.ach5 = _global.ach5;
slot_1.data.ach6 = _global.ach6;
slot_1.data.ach7 = _global.ach7;
slot_1.data.ach8 = _global.ach8;
slot_1.data.ach9 = _global.ach9;
slot_1.data.ach10 = _global.ach10;
slot_1.data.ach11 = _global.ach11;
slot_1.data.ach12 = _global.ach12;
slot_1.data.ach13 = _global.ach13;
slot_1.data.ach14 = _global.ach14;
slot_1.data.ach15 = _global.ach15;
slot_1.data.zombiesKilled = _global.zombiesKilled;
slot_1.data.werewolvesKilled = _global.werewolvesKilled;
slot_1.data.vampiresKilled = _global.vampiresKilled;
stopAllSounds();
_root.gotoAndStop(3);
_root.camera.savegames.gotoAndStop(1);
} else {
_global.heldGibs = slot_1.data.heldGibs;
_global.lives = slot_1.data.lives;
_global.health = slot_1.data.health;
_global.mana = slot_1.data.mana;
_global.healthPacks = slot_1.data.healthPacks;
_global.heldGrenades = slot_1.data.heldGrenades;
_global.manaPots = slot_1.data.manaPots;
_global.heldCrosses = slot_1.data.heldCrosses;
_global.heldCrossbows = slot_1.data.heldCrossbows;
_global.maxHealth = slot_1.data.maxHealth;
_global.maxMana = slot_1.data.maxMana;
_global.healAmount = slot_1.data.healAmount;
_global.manaAmount = slot_1.data.manaAmount;
_global.goreMultiplier = slot_1.data.goreMultiplier;
_global.longCross = slot_1.data.longCross;
_global.incendiary = slot_1.data.incendiary;
_global.silver = slot_1.data.silver;
_global.sureShot = slot_1.data.sureShot;
_global.pyro = slot_1.data.pyro;
_global.batDam1 = slot_1.data.batDam1;
_global.batDam2 = slot_1.data.batDam2;
_global.katDam1 = slot_1.data.katDam1;
_global.katDam2 = slot_1.data.katDam2;
_global.stakeDam1 = slot_1.data.stakeDam1;
_global.stakeDam2 = slot_1.data.stakeDam2;
_global.batSpe = slot_1.data.batSpe;
_global.katSpe = slot_1.data.katSpe;
_global.stakeSpe = slot_1.data.stakeSpe;
_global.mag2 = slot_1.data.mag2;
_global.mag3 = slot_1.data.mag3;
_global.mag4 = slot_1.data.mag4;
_global.mag5 = slot_1.data.mag5;
_global.mag1addon = slot_1.data.mag1addon;
_global.mag2addon = slot_1.data.mag2addon;
_global.mag3addon = slot_1.data.mag3addon;
_global.mag4addon = slot_1.data.mag4addon;
_global.mag5addon = slot_1.data.mag5addon;
_global.batCutSlimes = slot_1.data.batCutSlimes;
_global.stakeCutSlimes = slot_1.data.stakeCutSlimes;
_global.batOneFat = slot_1.data.batOneFat;
_global.katOneVamp = slot_1.data.batOneFat;
_global.stakeOneVamp = slot_1.data.stakeOneVamp;
_global.stakeOneWere = slot_1.data.stakeOneWere;
_global.perk0 = slot_1.data.perk0;
_global.perk1 = slot_1.data.perk1;
_global.perk2 = slot_1.data.perk2;
_global.perk3 = slot_1.data.perk3;
_global.perk4 = slot_1.data.perk4;
_global.perk5 = slot_1.data.perk5;
_global.perk6 = slot_1.data.perk6;
_global.perk7 = slot_1.data.perk7;
_global.perk8 = slot_1.data.perk8;
_global.perk9 = slot_1.data.perk9;
_global.perk10 = slot_1.data.perk10;
_global.lev1unlock = slot_1.data.lev1unlock;
_global.lev2unlock = slot_1.data.lev2unlock;
_global.lev3unlock = slot_1.data.lev3unlock;
_global.shopunlock = slot_1.data.shopunlock;
_global.lev1just = slot_1.data.lev1just;
_global.lev2just = slot_1.data.lev2just;
_global.lev3just = slot_1.data.lev3just;
_global.shopjust = slot_1.data.shopjust;
_global.ach1 = slot_1.data.ach1;
_global.ach2 = slot_1.data.ach2;
_global.ach3 = slot_1.data.ach3;
_global.ach4 = slot_1.data.ach4;
_global.ach5 = slot_1.data.ach5;
_global.ach6 = slot_1.data.ach6;
_global.ach7 = slot_1.data.ach7;
_global.ach8 = slot_1.data.ach8;
_global.ach9 = slot_1.data.ach9;
_global.ach10 = slot_1.data.ach10;
_global.ach11 = slot_1.data.ach11;
_global.ach12 = slot_1.data.ach12;
_global.ach13 = slot_1.data.ach13;
_global.ach14 = slot_1.data.ach14;
_global.ach15 = slot_1.data.ach15;
_global.zombiesKilled = slot_1.data.zombiesKilled;
_global.werewolvesKilled = slot_1.data.werewolvesKilled;
_global.vampiresKilled = slot_1.data.vampiresKilled;
_root.camera.savegames.gotoAndStop(1);
stopAllSounds();
_root.gotoAndStop(3);
}
}
}
function useTwo() {
if (_root.camera.savegames._currentframe == 2) {
_global.slot = 2;
if (slot_2.data.used == undefined) {
_global.heldGibs = 0;
_global.lives = 3;
_global.health = 12;
_global.mana = 0;
_global.healthPacks = 0;
_global.heldGrenades = 0;
_global.manaPots = 0;
_global.heldCrosses = 0;
_global.heldCrossbows = 0;
_global.maxHealth = 12;
_global.maxMana = 6;
_global.healAmount = 8;
_global.manaAmount = 4;
_global.goreMultiplier = 1;
_global.longCross = false;
_global.incendiary = false;
_global.silver = false;
_global.sureShot = false;
_global.pyro = false;
_global.batDam1 = false;
_global.batDam2 = false;
_global.katDam1 = false;
_global.katDam2 = false;
_global.stakeDam1 = false;
_global.stakeDam2 = false;
_global.batSpe = 0;
_global.katSpe = 0;
_global.stakeSpe = 0;
_global.mag2 = false;
_global.mag3 = false;
_global.mag4 = false;
_global.mag5 = false;
_global.mag1addon = false;
_global.mag2addon = false;
_global.mag3addon = false;
_global.mag4addon = false;
_global.mag5addon = false;
_global.batCutSlimes = false;
_global.stakeCutSlimes = false;
_global.batOneFat = false;
_global.katOneVamp = false;
_global.stakeOneVamp = false;
_global.stakeOneWere = false;
_global.perk0 = false;
_global.perk1 = false;
_global.perk2 = false;
_global.perk3 = false;
_global.perk4 = false;
_global.perk5 = false;
_global.perk6 = false;
_global.perk7 = false;
_global.perk8 = false;
_global.perk9 = false;
_global.perk10 = false;
_global.lev1unlock = false;
_global.lev2unlock = false;
_global.lev3unlock = false;
_global.shopunlock = false;
_global.lev1just = false;
_global.lev2just = false;
_global.lev3just = false;
_global.shopjust = false;
_global.ach1 = false;
_global.ach2 = false;
_global.ach3 = false;
_global.ach4 = false;
_global.ach5 = false;
_global.ach6 = false;
_global.ach7 = false;
_global.ach8 = false;
_global.ach9 = false;
_global.ach10 = false;
_global.ach11 = false;
_global.ach12 = false;
_global.ach13 = false;
_global.ach14 = false;
_global.ach15 = false;
_global.zombiesKilled = 0;
_global.werewolvesKilled = 0;
_global.vampiresKilled = 0;
slot_2.data.used = 1;
slot_2.data.heldGibs = _global.heldGibs;
slot_2.data.lives = _global.lives;
slot_2.data.health = _global.health;
slot_2.data.mana = _global.mana;
slot_2.data.healthPacks = _global.healthPacks;
slot_2.data.heldGrenades = _global.heldGrenades;
slot_2.data.manaPots = _global.manaPots;
slot_2.data.heldCrosses = _global.heldCrosses;
slot_2.data.heldCrossbows = _global.heldCrossbows;
slot_2.data.maxHealth = _global.maxHealth;
slot_2.data.maxMana = _global.maxMana;
slot_2.data.healAmount = _global.healAmount;
slot_2.data.manaAmount = _global.manaAmount;
slot_2.data.goreMultiplier = _global.goreMultiplier;
slot_2.data.longCross = _global.longCross;
slot_2.data.incendiary = _global.incendiary;
slot_2.data.silver = _global.silver;
slot_2.data.sureShot = _global.sureShot;
slot_2.data.pyro = _global.pyro;
slot_2.data.batDam1 = _global.batDam1;
slot_2.data.batDam2 = _global.batDam2;
slot_2.data.katDam1 = _global.katDam1;
slot_2.data.katDam2 = _global.katDam2;
slot_2.data.stakeDam1 = _global.stakeDam1;
slot_2.data.stakeDam2 = _global.stakeDam2;
slot_2.data.batSpe = _global.batSpe;
slot_2.data.katSpe = _global.katSpe;
slot_2.data.stakeSpe = _global.stakeSpe;
slot_2.data.mag2 = _global.mag2;
slot_2.data.mag3 = _global.mag3;
slot_2.data.mag4 = _global.mag4;
slot_2.data.mag5 = _global.mag5;
slot_2.data.mag1addon = _global.mag1addon;
slot_2.data.mag2addon = _global.mag2addon;
slot_2.data.mag3addon = _global.mag3addon;
slot_2.data.mag4addon = _global.mag4addon;
slot_2.data.mag5addon = _global.mag5addon;
slot_2.data.batCutSlimes = _global.batCutSlimes;
slot_2.data.stakeCutSlimes = _global.stakeCutSlimes;
slot_2.data.batOneFat = _global.batOneFat;
slot_2.data.batOneFat = _global.katOneVamp;
slot_2.data.stakeOneVamp = _global.stakeOneVamp;
slot_2.data.stakeOneWere = _global.stakeOneWere;
slot_2.data.perk0 = _global.perk0;
slot_2.data.perk1 = _global.perk1;
slot_2.data.perk2 = _global.perk2;
slot_2.data.perk3 = _global.perk3;
slot_2.data.perk4 = _global.perk4;
slot_2.data.perk5 = _global.perk5;
slot_2.data.perk6 = _global.perk6;
slot_2.data.perk7 = _global.perk7;
slot_2.data.perk8 = _global.perk8;
slot_2.data.perk9 = _global.perk9;
slot_2.data.perk10 = _global.perk10;
slot_2.data.lev1unlock = _global.lev1unlock;
slot_2.data.lev2unlock = _global.lev2unlock;
slot_2.data.lev3unlock = _global.lev3unlock;
slot_2.data.shopunlock = _global.shopunlock;
slot_2.data.lev1just = _global.lev1just;
slot_2.data.lev2just = _global.lev2just;
slot_2.data.lev3just = _global.lev3just;
slot_2.data.shopjust = _global.shopjust;
slot_2.data.ach1 = _global.ach1;
slot_2.data.ach2 = _global.ach2;
slot_2.data.ach3 = _global.ach3;
slot_2.data.ach4 = _global.ach4;
slot_2.data.ach5 = _global.ach5;
slot_2.data.ach6 = _global.ach6;
slot_2.data.ach7 = _global.ach7;
slot_2.data.ach8 = _global.ach8;
slot_2.data.ach9 = _global.ach9;
slot_2.data.ach10 = _global.ach10;
slot_2.data.ach11 = _global.ach11;
slot_2.data.ach12 = _global.ach12;
slot_2.data.ach13 = _global.ach13;
slot_2.data.ach14 = _global.ach14;
slot_2.data.ach15 = _global.ach15;
slot_2.data.zombiesKilled = _global.zombiesKilled;
slot_2.data.werewolvesKilled = _global.werewolvesKilled;
slot_2.data.vampiresKilled = _global.vampiresKilled;
_root.camera.savegames.gotoAndStop(1);
stopAllSounds();
_root.gotoAndStop(3);
} else {
_global.heldGibs = slot_2.data.heldGibs;
_global.lives = slot_2.data.lives;
_global.health = slot_2.data.health;
_global.mana = slot_2.data.mana;
_global.healthPacks = slot_2.data.healthPacks;
_global.heldGrenades = slot_2.data.heldGrenades;
_global.manaPots = slot_2.data.manaPots;
_global.heldCrosses = slot_2.data.heldCrosses;
_global.heldCrossbows = slot_2.data.heldCrossbows;
_global.maxHealth = slot_2.data.maxHealth;
_global.maxMana = slot_2.data.maxMana;
_global.healAmount = slot_2.data.healAmount;
_global.manaAmount = slot_2.data.manaAmount;
_global.goreMultiplier = slot_2.data.goreMultiplier;
_global.longCross = slot_2.data.longCross;
_global.incendiary = slot_2.data.incendiary;
_global.silver = slot_2.data.silver;
_global.sureShot = slot_2.data.sureShot;
_global.pyro = slot_2.data.pyro;
_global.batDam1 = slot_2.data.batDam1;
_global.batDam2 = slot_2.data.batDam2;
_global.katDam1 = slot_2.data.katDam1;
_global.katDam2 = slot_2.data.katDam2;
_global.stakeDam1 = slot_2.data.stakeDam1;
_global.stakeDam2 = slot_2.data.stakeDam2;
_global.batSpe = slot_2.data.batSpe;
_global.katSpe = slot_2.data.katSpe;
_global.stakeSpe = slot_2.data.stakeSpe;
_global.mag2 = slot_2.data.mag2;
_global.mag3 = slot_2.data.mag3;
_global.mag4 = slot_2.data.mag4;
_global.mag5 = slot_2.data.mag5;
_global.mag1addon = slot_2.data.mag1addon;
_global.mag2addon = slot_2.data.mag2addon;
_global.mag3addon = slot_2.data.mag3addon;
_global.mag4addon = slot_2.data.mag4addon;
_global.mag5addon = slot_2.data.mag5addon;
_global.batCutSlimes = slot_2.data.batCutSlimes;
_global.stakeCutSlimes = slot_2.data.stakeCutSlimes;
_global.batOneFat = slot_2.data.batOneFat;
_global.katOneVamp = slot_2.data.batOneFat;
_global.stakeOneVamp = slot_2.data.stakeOneVamp;
_global.stakeOneWere = slot_2.data.stakeOneWere;
_global.perk0 = slot_2.data.perk0;
_global.perk1 = slot_2.data.perk1;
_global.perk2 = slot_2.data.perk2;
_global.perk3 = slot_2.data.perk3;
_global.perk4 = slot_2.data.perk4;
_global.perk5 = slot_2.data.perk5;
_global.perk6 = slot_2.data.perk6;
_global.perk7 = slot_2.data.perk7;
_global.perk8 = slot_2.data.perk8;
_global.perk9 = slot_2.data.perk9;
_global.perk10 = slot_2.data.perk10;
_global.lev1unlock = slot_2.data.lev1unlock;
_global.lev2unlock = slot_2.data.lev2unlock;
_global.lev3unlock = slot_2.data.lev3unlock;
_global.shopunlock = slot_2.data.shopunlock;
_global.lev1just = slot_2.data.lev1just;
_global.lev2just = slot_2.data.lev2just;
_global.lev3just = slot_2.data.lev3just;
_global.shopjust = slot_2.data.shopjust;
_global.ach1 = slot_2.data.ach1;
_global.ach2 = slot_2.data.ach2;
_global.ach3 = slot_2.data.ach3;
_global.ach4 = slot_2.data.ach4;
_global.ach5 = slot_2.data.ach5;
_global.ach6 = slot_2.data.ach6;
_global.ach7 = slot_2.data.ach7;
_global.ach8 = slot_2.data.ach8;
_global.ach9 = slot_2.data.ach9;
_global.ach10 = slot_2.data.ach10;
_global.ach11 = slot_2.data.ach11;
_global.ach12 = slot_2.data.ach12;
_global.ach13 = slot_2.data.ach13;
_global.ach14 = slot_2.data.ach14;
_global.ach15 = slot_2.data.ach15;
_global.zombiesKilled = slot_2.data.zombiesKilled;
_global.werewolvesKilled = slot_2.data.werewolvesKilled;
_global.vampiresKilled = slot_2.data.vampiresKilled;
_root.camera.savegames.gotoAndStop(1);
stopAllSounds();
_root.gotoAndStop(3);
}
}
}
function useThree() {
if (_root.camera.savegames._currentframe == 2) {
_global.slot = 3;
if (slot_3.data.used == undefined) {
_global.heldGibs = 0;
_global.lives = 3;
_global.health = 12;
_global.mana = 0;
_global.healthPacks = 0;
_global.heldGrenades = 0;
_global.manaPots = 0;
_global.heldCrosses = 0;
_global.heldCrossbows = 0;
_global.maxHealth = 12;
_global.maxMana = 6;
_global.healAmount = 8;
_global.manaAmount = 4;
_global.goreMultiplier = 1;
_global.longCross = false;
_global.incendiary = false;
_global.silver = false;
_global.sureShot = false;
_global.pyro = false;
_global.batDam1 = false;
_global.batDam2 = false;
_global.katDam1 = false;
_global.katDam2 = false;
_global.stakeDam1 = false;
_global.stakeDam2 = false;
_global.batSpe = 0;
_global.katSpe = 0;
_global.stakeSpe = 0;
_global.mag2 = false;
_global.mag3 = false;
_global.mag4 = false;
_global.mag5 = false;
_global.mag1addon = false;
_global.mag2addon = false;
_global.mag3addon = false;
_global.mag4addon = false;
_global.mag5addon = false;
_global.batCutSlimes = false;
_global.stakeCutSlimes = false;
_global.batOneFat = false;
_global.katOneVamp = false;
_global.stakeOneVamp = false;
_global.stakeOneWere = false;
_global.perk0 = false;
_global.perk1 = false;
_global.perk2 = false;
_global.perk3 = false;
_global.perk4 = false;
_global.perk5 = false;
_global.perk6 = false;
_global.perk7 = false;
_global.perk8 = false;
_global.perk9 = false;
_global.perk10 = false;
_global.lev1unlock = false;
_global.lev2unlock = false;
_global.lev3unlock = false;
_global.shopunlock = false;
_global.lev1just = false;
_global.lev2just = false;
_global.lev3just = false;
_global.shopjust = false;
_global.ach1 = false;
_global.ach2 = false;
_global.ach3 = false;
_global.ach4 = false;
_global.ach5 = false;
_global.ach6 = false;
_global.ach7 = false;
_global.ach8 = false;
_global.ach9 = false;
_global.ach10 = false;
_global.ach11 = false;
_global.ach12 = false;
_global.ach13 = false;
_global.ach14 = false;
_global.ach15 = false;
_global.zombiesKilled = 0;
_global.werewolvesKilled = 0;
_global.vampiresKilled = 0;
slot_3.data.used = 1;
slot_3.data.heldGibs = _global.heldGibs;
slot_3.data.lives = _global.lives;
slot_3.data.health = _global.health;
slot_3.data.mana = _global.mana;
slot_3.data.healthPacks = _global.healthPacks;
slot_3.data.heldGrenades = _global.heldGrenades;
slot_3.data.manaPots = _global.manaPots;
slot_3.data.heldCrosses = _global.heldCrosses;
slot_3.data.heldCrossbows = _global.heldCrossbows;
slot_3.data.maxHealth = _global.maxHealth;
slot_3.data.maxMana = _global.maxMana;
slot_3.data.healAmount = _global.healAmount;
slot_3.data.manaAmount = _global.manaAmount;
slot_3.data.goreMultiplier = _global.goreMultiplier;
slot_3.data.longCross = _global.longCross;
slot_3.data.incendiary = _global.incendiary;
slot_3.data.silver = _global.silver;
slot_3.data.sureShot = _global.sureShot;
slot_3.data.pyro = _global.pyro;
slot_3.data.batDam1 = _global.batDam1;
slot_3.data.batDam2 = _global.batDam2;
slot_3.data.katDam1 = _global.katDam1;
slot_3.data.katDam2 = _global.katDam2;
slot_3.data.stakeDam1 = _global.stakeDam1;
slot_3.data.stakeDam2 = _global.stakeDam2;
slot_3.data.batSpe = _global.batSpe;
slot_3.data.katSpe = _global.katSpe;
slot_3.data.stakeSpe = _global.stakeSpe;
slot_3.data.mag2 = _global.mag2;
slot_3.data.mag3 = _global.mag3;
slot_3.data.mag4 = _global.mag4;
slot_3.data.mag5 = _global.mag5;
slot_3.data.mag1addon = _global.mag1addon;
slot_3.data.mag2addon = _global.mag2addon;
slot_3.data.mag3addon = _global.mag3addon;
slot_3.data.mag4addon = _global.mag4addon;
slot_3.data.mag5addon = _global.mag5addon;
slot_3.data.batCutSlimes = _global.batCutSlimes;
slot_3.data.stakeCutSlimes = _global.stakeCutSlimes;
slot_3.data.batOneFat = _global.batOneFat;
slot_3.data.batOneFat = _global.katOneVamp;
slot_3.data.stakeOneVamp = _global.stakeOneVamp;
slot_3.data.stakeOneWere = _global.stakeOneWere;
slot_3.data.perk0 = _global.perk0;
slot_3.data.perk1 = _global.perk1;
slot_3.data.perk2 = _global.perk2;
slot_3.data.perk3 = _global.perk3;
slot_3.data.perk4 = _global.perk4;
slot_3.data.perk5 = _global.perk5;
slot_3.data.perk6 = _global.perk6;
slot_3.data.perk7 = _global.perk7;
slot_3.data.perk8 = _global.perk8;
slot_3.data.perk9 = _global.perk9;
slot_3.data.perk10 = _global.perk10;
slot_3.data.lev1unlock = _global.lev1unlock;
slot_3.data.lev2unlock = _global.lev2unlock;
slot_3.data.lev3unlock = _global.lev3unlock;
slot_3.data.shopunlock = _global.shopunlock;
slot_3.data.lev1just = _global.lev1just;
slot_3.data.lev2just = _global.lev2just;
slot_3.data.lev3just = _global.lev3just;
slot_3.data.shopjust = _global.shopjust;
slot_3.data.ach1 = _global.ach1;
slot_3.data.ach2 = _global.ach2;
slot_3.data.ach3 = _global.ach3;
slot_3.data.ach4 = _global.ach4;
slot_3.data.ach5 = _global.ach5;
slot_3.data.ach6 = _global.ach6;
slot_3.data.ach7 = _global.ach7;
slot_3.data.ach8 = _global.ach8;
slot_3.data.ach9 = _global.ach9;
slot_3.data.ach10 = _global.ach10;
slot_3.data.ach11 = _global.ach11;
slot_3.data.ach12 = _global.ach12;
slot_3.data.ach13 = _global.ach13;
slot_3.data.ach14 = _global.ach14;
slot_3.data.ach15 = _global.ach15;
slot_3.data.zombiesKilled = _global.zombiesKilled;
slot_3.data.werewolvesKilled = _global.werewolvesKilled;
slot_3.data.vampiresKilled = _global.vampiresKilled;
stopAllSounds();
_root.gotoAndStop(3);
_root.camera.savegames.gotoAndStop(1);
} else {
_global.heldGibs = slot_3.data.heldGibs;
_global.lives = slot_3.data.lives;
_global.health = slot_3.data.health;
_global.mana = slot_3.data.mana;
_global.healthPacks = slot_3.data.healthPacks;
_global.heldGrenades = slot_3.data.heldGrenades;
_global.manaPots = slot_3.data.manaPots;
_global.heldCrosses = slot_3.data.heldCrosses;
_global.heldCrossbows = slot_3.data.heldCrossbows;
_global.maxHealth = slot_3.data.maxHealth;
_global.maxMana = slot_3.data.maxMana;
_global.healAmount = slot_3.data.healAmount;
_global.manaAmount = slot_3.data.manaAmount;
_global.goreMultiplier = slot_3.data.goreMultiplier;
_global.longCross = slot_3.data.longCross;
_global.incendiary = slot_3.data.incendiary;
_global.silver = slot_3.data.silver;
_global.sureShot = slot_3.data.sureShot;
_global.pyro = slot_3.data.pyro;
_global.batDam1 = slot_3.data.batDam1;
_global.batDam2 = slot_3.data.batDam2;
_global.katDam1 = slot_3.data.katDam1;
_global.katDam2 = slot_3.data.katDam2;
_global.stakeDam1 = slot_3.data.stakeDam1;
_global.stakeDam2 = slot_3.data.stakeDam2;
_global.batSpe = slot_3.data.batSpe;
_global.katSpe = slot_3.data.katSpe;
_global.stakeSpe = slot_3.data.stakeSpe;
_global.mag2 = slot_3.data.mag2;
_global.mag3 = slot_3.data.mag3;
_global.mag4 = slot_3.data.mag4;
_global.mag5 = slot_3.data.mag5;
_global.mag1addon = slot_3.data.mag1addon;
_global.mag2addon = slot_3.data.mag2addon;
_global.mag3addon = slot_3.data.mag3addon;
_global.mag4addon = slot_3.data.mag4addon;
_global.mag5addon = slot_3.data.mag5addon;
_global.batCutSlimes = slot_3.data.batCutSlimes;
_global.stakeCutSlimes = slot_3.data.stakeCutSlimes;
_global.batOneFat = slot_3.data.batOneFat;
_global.katOneVamp = slot_3.data.batOneFat;
_global.stakeOneVamp = slot_3.data.stakeOneVamp;
_global.stakeOneWere = slot_3.data.stakeOneWere;
_global.perk0 = slot_3.data.perk0;
_global.perk1 = slot_3.data.perk1;
_global.perk2 = slot_3.data.perk2;
_global.perk3 = slot_3.data.perk3;
_global.perk4 = slot_3.data.perk4;
_global.perk5 = slot_3.data.perk5;
_global.perk6 = slot_3.data.perk6;
_global.perk7 = slot_3.data.perk7;
_global.perk8 = slot_3.data.perk8;
_global.perk9 = slot_3.data.perk9;
_global.perk10 = slot_3.data.perk10;
_global.lev1unlock = slot_3.data.lev1unlock;
_global.lev2unlock = slot_3.data.lev2unlock;
_global.lev3unlock = slot_3.data.lev3unlock;
_global.shopunlock = slot_3.data.shopunlock;
_global.lev1just = slot_3.data.lev1just;
_global.lev2just = slot_3.data.lev2just;
_global.lev3just = slot_3.data.lev3just;
_global.shopjust = slot_3.data.shopjust;
_global.ach1 = slot_3.data.ach1;
_global.ach2 = slot_3.data.ach2;
_global.ach3 = slot_3.data.ach3;
_global.ach4 = slot_3.data.ach4;
_global.ach5 = slot_3.data.ach5;
_global.ach6 = slot_3.data.ach6;
_global.ach7 = slot_3.data.ach7;
_global.ach8 = slot_3.data.ach8;
_global.ach9 = slot_3.data.ach9;
_global.ach10 = slot_3.data.ach10;
_global.ach11 = slot_3.data.ach11;
_global.ach12 = slot_3.data.ach12;
_global.ach13 = slot_3.data.ach13;
_global.ach14 = slot_3.data.ach14;
_global.ach15 = slot_3.data.ach15;
_global.zombiesKilled = slot_3.data.zombiesKilled;
_global.werewolvesKilled = slot_3.data.werewolvesKilled;
_global.vampiresKilled = slot_3.data.vampiresKilled;
stopAllSounds();
_root.gotoAndStop(3);
_root.camera.savegames.gotoAndStop(1);
}
}
}
stop();
var counter = 15;
var index = 0;
slot1.go.gotoAndStop(2);
slot_1 = SharedObject.getLocal("slot_1", "/");
slot_2 = SharedObject.getLocal("slot_2", "/");
slot_3 = SharedObject.getLocal("slot_3", "/");
if (slot_1.data.used != undefined) {
if (Number(slot_1.data.health) <= 12) {
slot1.healthbar.gotoAndStop(13 - Number(slot_1.data.health));
} else {
slot1.healthbar.gotoAndStop(Number(slot_1.data.health) + 1);
}
if (Number(slot_1.data.mana) <= 6) {
slot1.manabar.gotoAndStop(7 - Number(slot_1.data.mana));
} else {
slot1.manabar.gotoAndStop(Number(slot_1.data.mana) + 1);
}
slot1.meatCountText.text = "x" + slot_1.data.heldGibs;
slot1.livesText.text = "x" + slot_1.data.lives;
var numLevs = 0;
if (slot_1.data.lev1unlock == true) {
numLevs = 1;
}
if (slot_1.data.lev2unlock == true) {
numLevs = 2;
}
if (slot_1.data.lev3unlock == true) {
numLevs = 3;
}
var numAch = 0;
if (slot_1.data.ach1 == true) {
numAch++;
}
if (slot_1.data.ach2 == true) {
numAch++;
}
if (slot_1.data.ach3 == true) {
numAch++;
}
if (slot_1.data.ach4 == true) {
numAch++;
}
if (slot_1.data.ach5 == true) {
numAch++;
}
if (slot_1.data.ach6 == true) {
numAch++;
}
if (slot_1.data.ach7 == true) {
numAch++;
}
if (slot_1.data.ach8 == true) {
numAch++;
}
if (slot_1.data.ach9 == true) {
numAch++;
}
if (slot_1.data.ach10 == true) {
numAch++;
}
if (slot_1.data.ach11 == true) {
numAch++;
}
if (slot_1.data.ach12 == true) {
numAch++;
}
if (slot_1.data.ach13 == true) {
numAch++;
}
if (slot_1.data.ach14 == true) {
numAch++;
}
if (slot_1.data.ach15 == true) {
numAch++;
}
slot1.achlevels.text = ((numAch + "/15 ACHIEVEMENTS ") + numLevs) + "/3 LEVELS";
} else {
slot1.gotoAndStop(2);
}
if (slot_2.data.used != undefined) {
if (Number(slot_2.data.health) <= 12) {
slot2.healthbar.gotoAndStop(13 - Number(slot_2.data.health));
} else {
slot2.healthbar.gotoAndStop(Number(slot_2.data.health) + 1);
}
if (Number(slot_2.data.mana) <= 6) {
slot2.manabar.gotoAndStop(7 - Number(slot_2.data.mana));
} else {
slot2.manabar.gotoAndStop(Number(slot_2.data.mana) + 1);
}
slot2.meatCountText.text = "x" + slot_2.data.heldGibs;
slot2.livesText.text = "x" + slot_2.data.lives;
var numLevs = 0;
if (slot_2.data.lev1unlock == true) {
numLevs = 1;
}
if (slot_2.data.lev2unlock == true) {
numLevs = 2;
}
if (slot_2.data.lev3unlock == true) {
numLevs = 3;
}
var numAch = 0;
if (slot_2.data.ach1 == true) {
numAch++;
}
if (slot_2.data.ach2 == true) {
numAch++;
}
if (slot_2.data.ach3 == true) {
numAch++;
}
if (slot_2.data.ach4 == true) {
numAch++;
}
if (slot_2.data.ach5 == true) {
numAch++;
}
if (slot_2.data.ach6 == true) {
numAch++;
}
if (slot_2.data.ach7 == true) {
numAch++;
}
if (slot_2.data.ach8 == true) {
numAch++;
}
if (slot_2.data.ach9 == 1) {
numAch++;
}
if (slot_2.data.ach10 == 1) {
numAch++;
}
if (slot_2.data.ach11 == 1) {
numAch++;
}
if (slot_2.data.ach12 == 1) {
numAch++;
}
if (slot_2.data.ach13 == 1) {
numAch++;
}
if (slot_2.data.ach14 == 1) {
numAch++;
}
if (slot_2.data.ach15 == 1) {
numAch++;
}
slot2.achlevels.text = ((numAch + "/15 ACHIEVEMENTS ") + numLevs) + "/3 LEVELS";
} else {
slot2.gotoAndStop(2);
}
if (slot_3.data.used != undefined) {
if (Number(slot_3.data.health) <= 12) {
slot3.healthbar.gotoAndStop(13 - Number(slot_3.data.health));
} else {
slot3.healthbar.gotoAndStop(Number(slot_3.data.health) + 1);
}
if (Number(slot_3.data.mana) <= 6) {
slot3.manabar.gotoAndStop(7 - Number(slot_3.data.mana));
} else {
slot3.manabar.gotoAndStop(Number(slot_3.data.mana) + 1);
}
slot3.meatCountText.text = "x" + slot_3.data.heldGibs;
slot3.livesText.text = "x" + slot_3.data.lives;
var numLevs = 0;
if (slot_3.data.lev1unlock == 1) {
numLevs = 1;
}
if (slot_3.data.lev2unlock == 1) {
numLevs = 2;
}
if (slot_3.data.lev3unlock == 1) {
numLevs = 3;
}
var numAch = 0;
if (slot_3.data.ach1 == 1) {
numAch++;
}
if (slot_3.data.ach2 == 1) {
numAch++;
}
if (slot_3.data.ach3 == 1) {
numAch++;
}
if (slot_3.data.ach4 == 1) {
numAch++;
}
if (slot_3.data.ach5 == 1) {
numAch++;
}
if (slot_3.data.ach6 == 1) {
numAch++;
}
if (slot_3.data.ach7 == 1) {
numAch++;
}
if (slot_3.data.ach8 == 1) {
numAch++;
}
if (slot_3.data.ach9 == 1) {
numAch++;
}
if (slot_3.data.ach10 == 1) {
numAch++;
}
if (slot_3.data.ach11 == 1) {
numAch++;
}
if (slot_3.data.ach12 == 1) {
numAch++;
}
if (slot_3.data.ach13 == 1) {
numAch++;
}
if (slot_3.data.ach14 == 1) {
numAch++;
}
if (slot_3.data.ach15 == 1) {
numAch++;
}
slot3.achlevels.text = ((numAch + "/15 ACHIEVEMENTS ") + numLevs) + "/3 LEVELS";
} else {
slot3.gotoAndStop(2);
}
this.onEnterFrame = function () {
if (counter > 0) {
counter--;
}
if (Key.isDown(37) && (counter == 0)) {
counter = 6;
if (really1._currentframe == 2) {
really1.yes.gotoAndStop(2);
really1.no.gotoAndStop(1);
} else if (really2._currentframe == 2) {
really2.yes.gotoAndStop(2);
really2.no.gotoAndStop(1);
} else if (really3._currentframe == 2) {
really3.yes.gotoAndStop(2);
really3.no.gotoAndStop(1);
} else {
index--;
if (index == -2) {
index = -1;
}
exit.gotoAndStop(1);
slot1.go.gotoAndStop(1);
slot2.go.gotoAndStop(1);
slot3.go.gotoAndStop(1);
clr1.gotoAndStop(1);
clr2.gotoAndStop(1);
clr3.gotoAndStop(1);
if (index == -1) {
exit.gotoAndStop(2);
}
if (index == 0) {
slot1.go.gotoAndStop(2);
}
if (index == 1) {
clr1.gotoAndStop(2);
}
if (index == 2) {
slot2.go.gotoAndStop(2);
}
if (index == 3) {
clr2.gotoAndStop(2);
}
if (index == 4) {
slot3.go.gotoAndStop(2);
}
if (index == 5) {
clr3.gotoAndStop(2);
}
}
}
if (Key.isDown(39) && (counter == 0)) {
counter = 6;
if (really1._currentframe == 2) {
really1.yes.gotoAndStop(1);
really1.no.gotoAndStop(2);
} else if (really2._currentframe == 2) {
really2.yes.gotoAndStop(1);
really2.no.gotoAndStop(2);
} else if (really3._currentframe == 2) {
really3.yes.gotoAndStop(1);
really3.no.gotoAndStop(2);
} else {
index++;
if (index == 6) {
index = 5;
}
exit.gotoAndStop(1);
slot1.go.gotoAndStop(1);
slot2.go.gotoAndStop(1);
slot3.go.gotoAndStop(1);
clr1.gotoAndStop(1);
clr2.gotoAndStop(1);
clr3.gotoAndStop(1);
if (index == -1) {
exit.gotoAndStop(2);
}
if (index == 0) {
slot1.go.gotoAndStop(2);
}
if (index == 1) {
clr1.gotoAndStop(2);
}
if (index == 2) {
slot2.go.gotoAndStop(2);
}
if (index == 3) {
clr2.gotoAndStop(2);
}
if (index == 4) {
slot3.go.gotoAndStop(2);
}
if (index == 5) {
clr3.gotoAndStop(2);
}
}
}
if ((((Key.isDown(38) && (counter == 0)) && (really1._currentframe == 1)) && (really2._currentframe == 1)) && (really3._currentframe == 1)) {
counter = 6;
index = index - 2;
if (index <= -2) {
index = -1;
}
exit.gotoAndStop(1);
slot1.go.gotoAndStop(1);
slot2.go.gotoAndStop(1);
slot3.go.gotoAndStop(1);
clr1.gotoAndStop(1);
clr2.gotoAndStop(1);
clr3.gotoAndStop(1);
if (index == -1) {
exit.gotoAndStop(2);
}
if (index == 0) {
slot1.go.gotoAndStop(2);
}
if (index == 1) {
clr1.gotoAndStop(2);
}
if (index == 2) {
slot2.go.gotoAndStop(2);
}
if (index == 3) {
clr2.gotoAndStop(2);
}
if (index == 4) {
slot3.go.gotoAndStop(2);
}
if (index == 5) {
clr3.gotoAndStop(2);
}
}
if ((((Key.isDown(40) && (counter == 0)) && (really1._currentframe == 1)) && (really2._currentframe == 1)) && (really3._currentframe == 1)) {
counter = 6;
index = index + 2;
if (index >= 6) {
index = 5;
}
exit.gotoAndStop(1);
slot1.go.gotoAndStop(1);
slot2.go.gotoAndStop(1);
slot3.go.gotoAndStop(1);
clr1.gotoAndStop(1);
clr2.gotoAndStop(1);
clr3.gotoAndStop(1);
if (index == -1) {
exit.gotoAndStop(2);
}
if (index == 0) {
slot1.go.gotoAndStop(2);
}
if (index == 1) {
clr1.gotoAndStop(2);
}
if (index == 2) {
slot2.go.gotoAndStop(2);
}
if (index == 3) {
clr2.gotoAndStop(2);
}
if (index == 4) {
slot3.go.gotoAndStop(2);
}
if (index == 5) {
clr3.gotoAndStop(2);
}
}
if (Key.isDown(83) && (counter == 0)) {
counter = 6;
if (really1._currentframe == 2) {
really1.gotoAndStop(1);
} else if (really2._currentframe == 2) {
really2.gotoAndStop(1);
} else if (really3._currentframe == 2) {
really3.gotoAndStop(1);
} else {
_root.camera.savegames.gotoAndStop(1);
}
}
if (Key.isDown(68) && (counter == 0)) {
counter = 6;
if (_root._currentframe == 2) {
_root.counter = 25;
trace("_root.counter = 25;");
}
if (really1._currentframe == 2) {
if (really1.yes._currentframe == 2) {
slot1.gotoAndStop(2);
slot_1.clear();
really1.gotoAndStop(1);
}
if (really1.no._currentframe == 2) {
really1.gotoAndStop(1);
}
} else if (really2._currentframe == 2) {
if (really2.yes._currentframe == 2) {
slot2.gotoAndStop(2);
slot_2.clear();
really2.gotoAndStop(1);
}
if (really2.no._currentframe == 2) {
really2.gotoAndStop(1);
}
} else if (really3._currentframe == 2) {
if (really3.yes._currentframe == 2) {
slot3.gotoAndStop(2);
slot_3.clear();
really3.gotoAndStop(1);
}
if (really3.no._currentframe == 2) {
really3.gotoAndStop(1);
}
} else {
if (index == -1) {
_root.camera.savegames.gotoAndStop(1);
}
if (index == 0) {
useOne();
}
if (index == 1) {
really1.gotoAndStop(2);
really1.yes.gotoAndStop(2);
}
if (index == 2) {
useTwo();
}
if (index == 3) {
really2.gotoAndStop(2);
really2.yes.gotoAndStop(2);
}
if (index == 4) {
useThree();
}
if (index == 5) {
really3.gotoAndStop(2);
really3.yes.gotoAndStop(2);
}
}
}
};
slot1.go.onPress = function () {
if (counter == 0) {
counter = 6;
useOne();
}
};
slot1.go.onRollOver = function () {
exit.gotoAndStop(1);
slot1.go.gotoAndStop(1);
clr1.gotoAndStop(1);
slot2.go.gotoAndStop(1);
clr2.gotoAndStop(1);
slot3.go.gotoAndStop(1);
clr3.gotoAndStop(1);
slot1.go.gotoAndStop(2);
index = 0;
};
slot2.go.onPress = function () {
if (counter == 0) {
counter = 6;
useTwo();
}
};
slot2.go.onRollOver = function () {
exit.gotoAndStop(1);
slot1.go.gotoAndStop(1);
clr1.gotoAndStop(1);
slot2.go.gotoAndStop(1);
clr2.gotoAndStop(1);
slot3.go.gotoAndStop(1);
clr3.gotoAndStop(1);
slot2.go.gotoAndStop(2);
index = 2;
};
slot3.go.onPress = function () {
if (counter == 0) {
counter = 6;
useThree();
}
};
slot3.go.onRollOver = function () {
exit.gotoAndStop(1);
slot1.go.gotoAndStop(1);
clr1.gotoAndStop(1);
slot2.go.gotoAndStop(1);
clr2.gotoAndStop(1);
slot3.go.gotoAndStop(1);
clr3.gotoAndStop(1);
slot3.go.gotoAndStop(2);
index = 4;
};
exit.onPress = function () {
_root.camera.savegames.gotoAndStop(1);
};
exit.onRollOver = function () {
exit.gotoAndStop(1);
slot1.go.gotoAndStop(1);
clr1.gotoAndStop(1);
slot2.go.gotoAndStop(1);
clr2.gotoAndStop(1);
slot3.go.gotoAndStop(1);
clr3.gotoAndStop(1);
exit.gotoAndStop(2);
index = -1;
};
clr1.onPress = function () {
if (counter == 0) {
counter = 6;
really1.gotoAndStop(2);
really1.yes.gotoAndStop(2);
}
};
clr1.onRollOver = function () {
exit.gotoAndStop(1);
slot1.go.gotoAndStop(1);
clr1.gotoAndStop(1);
slot2.go.gotoAndStop(1);
clr2.gotoAndStop(1);
slot3.go.gotoAndStop(1);
clr3.gotoAndStop(1);
clr1.gotoAndStop(2);
index = 1;
};
clr2.onPress = function () {
if (counter == 0) {
counter = 6;
really2.gotoAndStop(2);
really2.yes.gotoAndStop(2);
}
};
clr2.onRollOver = function () {
exit.gotoAndStop(1);
slot1.go.gotoAndStop(1);
clr1.gotoAndStop(1);
slot2.go.gotoAndStop(1);
clr2.gotoAndStop(1);
slot3.go.gotoAndStop(1);
clr3.gotoAndStop(1);
clr2.gotoAndStop(2);
index = 3;
};
clr3.onPress = function () {
if (counter == 0) {
counter = 6;
really3.gotoAndStop(2);
really3.yes.gotoAndStop(2);
}
};
clr3.onRollOver = function () {
exit.gotoAndStop(1);
slot1.go.gotoAndStop(1);
clr1.gotoAndStop(1);
slot2.go.gotoAndStop(1);
clr2.gotoAndStop(1);
slot3.go.gotoAndStop(1);
clr3.gotoAndStop(1);
clr3.gotoAndStop(2);
index = 5;
};
Symbol 2915 MovieClip Frame 1
stop();
Symbol 2915 MovieClip Frame 2
stop();
exit.onPress = function () {
_root.camera.controls.gotoAndStop(1);
};
this.onEnterFrame = function () {
if (Key.isDown(83)) {
_root.camera.controls.gotoAndStop(1);
}
};
Symbol 2921 MovieClip Frame 332
stop();
_root.backToMenu = true;
Symbol 2922 MovieClip Frame 1
stop();
Symbol 2922 MovieClip Frame 2
stop();
stopAllSounds();
musicSound = new Sound(this);
musicSound.attachSound("Victory");
musicSound.start(0, 99);
Symbol 3006 MovieClip Frame 1
function saveData() {
if (_global.slot == 1) {
slot_1 = SharedObject.getLocal("slot_1", "/");
slot_1.data.heldGibs = _global.heldGibs;
slot_1.data.lives = _global.lives;
slot_1.data.health = _global.health;
slot_1.data.mana = _global.mana;
slot_1.data.healthPacks = _global.healthPacks;
slot_1.data.heldGrenades = _global.heldGrenades;
slot_1.data.manaPots = _global.manaPots;
slot_1.data.heldCrosses = _global.heldCrosses;
slot_1.data.heldCrossbows = _global.heldCrossbows;
slot_1.data.maxHealth = _global.maxHealth;
slot_1.data.maxMana = _global.maxMana;
slot_1.data.healAmount = _global.healAmount;
slot_1.data.manaAmount = _global.manaAmount;
slot_1.data.goreMultiplier = _global.goreMultiplier;
slot_1.data.longCross = _global.longCross;
slot_1.data.incendiary = _global.incendiary;
slot_1.data.silver = _global.silver;
slot_1.data.sureShot = _global.sureShot;
slot_1.data.pyro = _global.pyro;
slot_1.data.batDam1 = _global.batDam1;
slot_1.data.batDam2 = _global.batDam2;
slot_1.data.katDam1 = _global.katDam1;
slot_1.data.katDam2 = _global.katDam2;
slot_1.data.stakeDam1 = _global.stakeDam1;
slot_1.data.stakeDam2 = _global.stakeDam2;
slot_1.data.batSpe = _global.batSpe;
slot_1.data.katSpe = _global.katSpe;
slot_1.data.stakeSpe = _global.stakeSpe;
slot_1.data.mag2 = _global.mag2;
slot_1.data.mag3 = _global.mag3;
slot_1.data.mag4 = _global.mag4;
slot_1.data.mag5 = _global.mag5;
slot_1.data.mag1addon = _global.mag1addon;
slot_1.data.mag2addon = _global.mag2addon;
slot_1.data.mag3addon = _global.mag3addon;
slot_1.data.mag4addon = _global.mag4addon;
slot_1.data.mag5addon = _global.mag5addon;
slot_1.data.batCutSlimes = _global.batCutSlimes;
slot_1.data.stakeCutSlimes = _global.stakeCutSlimes;
slot_1.data.batOneFat = _global.batOneFat;
slot_1.data.batOneFat = _global.katOneVamp;
slot_1.data.stakeOneVamp = _global.stakeOneVamp;
slot_1.data.stakeOneWere = _global.stakeOneWere;
slot_1.data.perk0 = _global.perk0;
slot_1.data.perk1 = _global.perk1;
slot_1.data.perk2 = _global.perk2;
slot_1.data.perk3 = _global.perk3;
slot_1.data.perk4 = _global.perk4;
slot_1.data.perk5 = _global.perk5;
slot_1.data.perk6 = _global.perk6;
slot_1.data.perk7 = _global.perk7;
slot_1.data.perk8 = _global.perk8;
slot_1.data.perk9 = _global.perk9;
slot_1.data.perk10 = _global.perk10;
slot_1.data.lev1unlock = _global.lev1unlock;
slot_1.data.lev2unlock = _global.lev2unlock;
slot_1.data.lev3unlock = _global.lev3unlock;
slot_1.data.shopunlock = _global.shopunlock;
slot_1.data.lev1just = _global.lev1just;
slot_1.data.lev2just = _global.lev2just;
slot_1.data.lev3just = _global.lev3just;
slot_1.data.shopjust = _global.shopjust;
slot_1.data.ach1 = _global.ach1;
slot_1.data.ach2 = _global.ach2;
slot_1.data.ach3 = _global.ach3;
slot_1.data.ach4 = _global.ach4;
slot_1.data.ach5 = _global.ach5;
slot_1.data.ach6 = _global.ach6;
slot_1.data.ach7 = _global.ach7;
slot_1.data.ach8 = _global.ach8;
slot_1.data.ach9 = _global.ach9;
slot_1.data.ach10 = _global.ach10;
slot_1.data.ach11 = _global.ach11;
slot_1.data.ach12 = _global.ach12;
slot_1.data.ach13 = _global.ach13;
slot_1.data.ach14 = _global.ach14;
slot_1.data.ach15 = _global.ach15;
slot_1.data.zombiesKilled = _global.zombiesKilled;
slot_1.data.werewolvesKilled = _global.werewolvesKilled;
slot_1.data.vampiresKilled = _global.vampiresKilled;
slot_1.flush();
}
if (_global.slot == 2) {
slot_2 = SharedObject.getLocal("slot_2", "/");
slot_2.data.heldGibs = _global.heldGibs;
slot_2.data.lives = _global.lives;
slot_2.data.health = _global.health;
slot_2.data.mana = _global.mana;
slot_2.data.healthPacks = _global.healthPacks;
slot_2.data.heldGrenades = _global.heldGrenades;
slot_2.data.manaPots = _global.manaPots;
slot_2.data.heldCrosses = _global.heldCrosses;
slot_2.data.heldCrossbows = _global.heldCrossbows;
slot_2.data.maxHealth = _global.maxHealth;
slot_2.data.maxMana = _global.maxMana;
slot_2.data.healAmount = _global.healAmount;
slot_2.data.manaAmount = _global.manaAmount;
slot_2.data.goreMultiplier = _global.goreMultiplier;
slot_2.data.longCross = _global.longCross;
slot_2.data.incendiary = _global.incendiary;
slot_2.data.silver = _global.silver;
slot_2.data.sureShot = _global.sureShot;
slot_2.data.pyro = _global.pyro;
slot_2.data.batDam1 = _global.batDam1;
slot_2.data.batDam2 = _global.batDam2;
slot_2.data.katDam1 = _global.katDam1;
slot_2.data.katDam2 = _global.katDam2;
slot_2.data.stakeDam1 = _global.stakeDam1;
slot_2.data.stakeDam2 = _global.stakeDam2;
slot_2.data.batSpe = _global.batSpe;
slot_2.data.katSpe = _global.katSpe;
slot_2.data.stakeSpe = _global.stakeSpe;
slot_2.data.mag2 = _global.mag2;
slot_2.data.mag3 = _global.mag3;
slot_2.data.mag4 = _global.mag4;
slot_2.data.mag5 = _global.mag5;
slot_2.data.mag1addon = _global.mag1addon;
slot_2.data.mag2addon = _global.mag2addon;
slot_2.data.mag3addon = _global.mag3addon;
slot_2.data.mag4addon = _global.mag4addon;
slot_2.data.mag5addon = _global.mag5addon;
slot_2.data.batCutSlimes = _global.batCutSlimes;
slot_2.data.stakeCutSlimes = _global.stakeCutSlimes;
slot_2.data.batOneFat = _global.batOneFat;
slot_2.data.batOneFat = _global.katOneVamp;
slot_2.data.stakeOneVamp = _global.stakeOneVamp;
slot_2.data.stakeOneWere = _global.stakeOneWere;
slot_2.data.perk0 = _global.perk0;
slot_2.data.perk1 = _global.perk1;
slot_2.data.perk2 = _global.perk2;
slot_2.data.perk3 = _global.perk3;
slot_2.data.perk4 = _global.perk4;
slot_2.data.perk5 = _global.perk5;
slot_2.data.perk6 = _global.perk6;
slot_2.data.perk7 = _global.perk7;
slot_2.data.perk8 = _global.perk8;
slot_2.data.perk9 = _global.perk9;
slot_2.data.perk10 = _global.perk10;
slot_2.data.lev1unlock = _global.lev1unlock;
slot_2.data.lev2unlock = _global.lev2unlock;
slot_2.data.lev3unlock = _global.lev3unlock;
slot_2.data.shopunlock = _global.shopunlock;
slot_2.data.lev1just = _global.lev1just;
slot_2.data.lev2just = _global.lev2just;
slot_2.data.lev3just = _global.lev3just;
slot_2.data.shopjust = _global.shopjust;
slot_2.data.ach1 = _global.ach1;
slot_2.data.ach2 = _global.ach2;
slot_2.data.ach3 = _global.ach3;
slot_2.data.ach4 = _global.ach4;
slot_2.data.ach5 = _global.ach5;
slot_2.data.ach6 = _global.ach6;
slot_2.data.ach7 = _global.ach7;
slot_2.data.ach8 = _global.ach8;
slot_2.data.ach9 = _global.ach9;
slot_2.data.ach10 = _global.ach10;
slot_2.data.ach11 = _global.ach11;
slot_2.data.ach12 = _global.ach12;
slot_2.data.ach13 = _global.ach13;
slot_2.data.ach14 = _global.ach14;
slot_2.data.ach15 = _global.ach15;
slot_2.data.zombiesKilled = _global.zombiesKilled;
slot_2.data.werewolvesKilled = _global.werewolvesKilled;
slot_2.data.vampiresKilled = _global.vampiresKilled;
slot_2.flush();
}
if (_global.slot == 3) {
slot_3 = SharedObject.getLocal("slot_3", "/");
slot_3.data.heldGibs = _global.heldGibs;
slot_3.data.lives = _global.lives;
slot_3.data.health = _global.health;
slot_3.data.mana = _global.mana;
slot_3.data.healthPacks = _global.healthPacks;
slot_3.data.heldGrenades = _global.heldGrenades;
slot_3.data.manaPots = _global.manaPots;
slot_3.data.heldCrosses = _global.heldCrosses;
slot_3.data.heldCrossbows = _global.heldCrossbows;
slot_3.data.maxHealth = _global.maxHealth;
slot_3.data.maxMana = _global.maxMana;
slot_3.data.healAmount = _global.healAmount;
slot_3.data.manaAmount = _global.manaAmount;
slot_3.data.goreMultiplier = _global.goreMultiplier;
slot_3.data.longCross = _global.longCross;
slot_3.data.incendiary = _global.incendiary;
slot_3.data.silver = _global.silver;
slot_3.data.sureShot = _global.sureShot;
slot_3.data.pyro = _global.pyro;
slot_3.data.batDam1 = _global.batDam1;
slot_3.data.batDam2 = _global.batDam2;
slot_3.data.katDam1 = _global.katDam1;
slot_3.data.katDam2 = _global.katDam2;
slot_3.data.stakeDam1 = _global.stakeDam1;
slot_3.data.stakeDam2 = _global.stakeDam2;
slot_3.data.batSpe = _global.batSpe;
slot_3.data.katSpe = _global.katSpe;
slot_3.data.stakeSpe = _global.stakeSpe;
slot_3.data.mag2 = _global.mag2;
slot_3.data.mag3 = _global.mag3;
slot_3.data.mag4 = _global.mag4;
slot_3.data.mag5 = _global.mag5;
slot_3.data.mag1addon = _global.mag1addon;
slot_3.data.mag2addon = _global.mag2addon;
slot_3.data.mag3addon = _global.mag3addon;
slot_3.data.mag4addon = _global.mag4addon;
slot_3.data.mag5addon = _global.mag5addon;
slot_3.data.batCutSlimes = _global.batCutSlimes;
slot_3.data.stakeCutSlimes = _global.stakeCutSlimes;
slot_3.data.batOneFat = _global.batOneFat;
slot_3.data.batOneFat = _global.katOneVamp;
slot_3.data.stakeOneVamp = _global.stakeOneVamp;
slot_3.data.stakeOneWere = _global.stakeOneWere;
slot_3.data.perk0 = _global.perk0;
slot_3.data.perk1 = _global.perk1;
slot_3.data.perk2 = _global.perk2;
slot_3.data.perk3 = _global.perk3;
slot_3.data.perk4 = _global.perk4;
slot_3.data.perk5 = _global.perk5;
slot_3.data.perk6 = _global.perk6;
slot_3.data.perk7 = _global.perk7;
slot_3.data.perk8 = _global.perk8;
slot_3.data.perk9 = _global.perk9;
slot_3.data.perk10 = _global.perk10;
slot_3.data.lev1unlock = _global.lev1unlock;
slot_3.data.lev2unlock = _global.lev2unlock;
slot_3.data.lev3unlock = _global.lev3unlock;
slot_3.data.shopunlock = _global.shopunlock;
slot_3.data.lev1just = _global.lev1just;
slot_3.data.lev2just = _global.lev2just;
slot_3.data.lev3just = _global.lev3just;
slot_3.data.shopjust = _global.shopjust;
slot_3.data.ach1 = _global.ach1;
slot_3.data.ach2 = _global.ach2;
slot_3.data.ach3 = _global.ach3;
slot_3.data.ach4 = _global.ach4;
slot_3.data.ach5 = _global.ach5;
slot_3.data.ach6 = _global.ach6;
slot_3.data.ach7 = _global.ach7;
slot_3.data.ach8 = _global.ach8;
slot_3.data.ach9 = _global.ach9;
slot_3.data.ach10 = _global.ach10;
slot_3.data.ach11 = _global.ach11;
slot_3.data.ach12 = _global.ach12;
slot_3.data.ach13 = _global.ach13;
slot_3.data.ach14 = _global.ach14;
slot_3.data.ach15 = _global.ach15;
slot_3.data.zombiesKilled = _global.zombiesKilled;
slot_3.data.werewolvesKilled = _global.werewolvesKilled;
slot_3.data.vampiresKilled = _global.vampiresKilled;
slot_3.flush();
}
}
var SaveJustOnce = true;
this.onEnterFrame = function () {
if (SaveJustOnce) {
saveData();
SaveJustOnce = false;
trace("save just once");
}
};
Symbol 3006 MovieClip Frame 1456
_root.camera.credits.gotoAndStop(2);
_root.camera.outro.gotoAndStop(1);
Symbol 3007 MovieClip Frame 1
stop();
Symbol 3007 MovieClip Frame 2
stop();
Symbol 3096 MovieClip Frame 1
stopAllSounds();
skipbutt.onRelease = function () {
_root.camera.credits.cred.gotoAndPlay(1369);
};
cred.rushjet.onRelease = function () {
trace("RUSHJET");
getURL ("http://nsf.4x86.com", "blank");
};
cred.nick.onRelease = function () {
getURL ("http://nickperrin.bandcamp.com", "blank");
};
cred.pushbar.onRelease = function () {
getURL ("http://www.youtube.com/user/willbedfordmusic", "blank");
};
cred.blordow.onRelease = function () {
getURL ("http://www.revivaleyes.com/", "blank");
};
cred.petter.onRelease = function () {
getURL ("http://www.drpetter.se/", "blank");
};
cred.fulp.onRelease = function () {
getURL ("http://www.newgrounds.com/", "blank");
};
cred.probertson.onRelease = function () {
getURL ("http://probertson.livejournal.com/", "blank");
};
Symbol 3096 MovieClip Frame 1369
stopAllSounds();
_root.gotoAndStop(2);
_root.camera.credits.gotoAndStop(1);
Symbol 3097 MovieClip Frame 1
stop();
Symbol 3097 MovieClip Frame 2
stop();
Symbol 3101 MovieClip Frame 15
stop();
Symbol 3105 MovieClip Frame 50
stop();
Symbol 3106 MovieClip Frame 1
stop();
Symbol 3106 MovieClip Frame 2
stop();
Symbol 3110 MovieClip Frame 15
stop();
Symbol 3111 MovieClip Frame 50
stop();
_root.camera.hintmc.gotoAndStop(8);
Symbol 3112 MovieClip Frame 1
stop();
Symbol 3112 MovieClip Frame 2
stop();
Symbol 3115 MovieClip Frame 15
stop();
Symbol 3116 MovieClip Frame 50
stop();
_root.camera.hintmc.gotoAndStop(5);
Symbol 3117 MovieClip Frame 1
stop();
Symbol 3117 MovieClip Frame 2
stop();
Symbol 3120 MovieClip Frame 15
stop();
Symbol 3121 MovieClip Frame 50
stop();
Symbol 3122 MovieClip Frame 1
stop();
Symbol 3122 MovieClip Frame 2
stop();
Symbol 3125 MovieClip Frame 15
stop();
Symbol 3126 MovieClip Frame 50
stop();
_root.camera.hintmc.gotoAndStop(7);
Symbol 3127 MovieClip Frame 1
stop();
Symbol 3127 MovieClip Frame 2
stop();
Symbol 3130 MovieClip Frame 15
stop();
Symbol 3131 MovieClip Frame 50
stop();
Symbol 3132 MovieClip Frame 1
stop();
Symbol 3132 MovieClip Frame 2
stop();
Symbol 3135 MovieClip Frame 15
stop();
Symbol 3136 MovieClip Frame 50
stop();
Symbol 3137 MovieClip Frame 1
stop();
Symbol 3137 MovieClip Frame 2
stop();
Symbol 3138 MovieClip Frame 1
stop();
Symbol 3138 MovieClip Frame 2
stop();
Symbol 3138 MovieClip Frame 3
stop();
Symbol 3138 MovieClip Frame 4
stop();
Symbol 3138 MovieClip Frame 5
stop();
Symbol 3138 MovieClip Frame 6
stop();
Symbol 3138 MovieClip Frame 7
stop();
Symbol 3138 MovieClip Frame 8
stop();
Symbol 3145 MovieClip Frame 5
_parent.gotoAndStop(1);
Symbol 3152 MovieClip Frame 12
effectSound = new Sound(this);
effectSound.attachSound("breaking");
effectSound.start();
Symbol 3152 MovieClip Frame 40
stop();
_parent.gotoAndStop(1);
Symbol 3153 MovieClip Frame 1
stop();
Symbol 3153 MovieClip Frame 2
stop();
Symbol 3153 MovieClip Frame 3
stop();
Symbol 3171 MovieClip Frame 1
stop();
Symbol 3171 MovieClip Frame 2
stop();
Symbol 3171 MovieClip Frame 3
stop();
Symbol 3175 MovieClip Frame 1
effectSound = new Sound(this);
effectSound.attachSound("Explosion100");
effectSound.start();
Symbol 3175 MovieClip Frame 20
stop();
Symbol 3178 MovieClip Frame 1
effectSound = new Sound(this);
effectSound.attachSound("BigExplosion");
effectSound.start();
Symbol 3178 MovieClip Frame 19
stop();
Symbol 3181 MovieClip Frame 1
effectSound = new Sound(this);
effectSound.attachSound("Bolt");
effectSound.start();
Symbol 3181 MovieClip Frame 19
stop();
Symbol 3188 MovieClip Frame 25
effectSound = new Sound(this);
effectSound.attachSound("nadeExplosion");
effectSound.start();
Symbol 3188 MovieClip Frame 34
stop();
Symbol 3191 MovieClip Frame 25
effectSound = new Sound(this);
effectSound.attachSound("nadeExplosion");
effectSound.start();
Symbol 3191 MovieClip Frame 32
stop();
Symbol 3194 MovieClip Frame 1
effectSound = new Sound(this);
effectSound.attachSound("shoot");
effectSound.start();
Symbol 3194 MovieClip Frame 22
stop();
Symbol 3197 MovieClip Frame 37
stop();
Symbol 3198 MovieClip Frame 1
stop();
Symbol 3198 MovieClip Frame 2
stop();
Symbol 3198 MovieClip Frame 3
stop();
Symbol 3198 MovieClip Frame 4
stop();
Symbol 3198 MovieClip Frame 5
stop();
Symbol 3198 MovieClip Frame 6
stop();
Symbol 3198 MovieClip Frame 7
stop();
Symbol 3202 MovieClip Frame 13
stop();
_parent.gotoAndStop(1);
Symbol 3203 MovieClip Frame 13
stop();
_parent.gotoAndStop(1);
Symbol 3204 MovieClip Frame 5
stop();
_parent.gotoAndStop(1);
Symbol 3205 MovieClip Frame 1
stop();
Symbol 3205 MovieClip Frame 2
stop();
Symbol 3205 MovieClip Frame 3
stop();
Symbol 3205 MovieClip Frame 4
stop();
effectSound = new Sound(this);
effectSound.attachSound("healthPickup");
effectSound.start();
Symbol 3205 MovieClip Frame 5
stop();
effectSound = new Sound(this);
effectSound.attachSound("manaUp");
effectSound.start();
Symbol 3205 MovieClip Frame 6
stop();
Symbol 3218 MovieClip Frame 1
stop();
Symbol 3218 MovieClip Frame 2
stop();
Symbol 3218 MovieClip Frame 3
stop();
Symbol 3218 MovieClip Frame 4
stop();
Symbol 3218 MovieClip Frame 5
stop();
Symbol 3218 MovieClip Frame 6
stop();
Symbol 3226 MovieClip Frame 1
stop();
Symbol 3226 MovieClip Frame 2
stop();
Symbol 3226 MovieClip Frame 3
stop();
Symbol 3231 MovieClip Frame 16
effectSound = new Sound(this);
effectSound.attachSound("Bite");
effectSound.start();
Symbol 3231 MovieClip Frame 27
stop();
_parent.gotoAndStop(1);
Symbol 3235 MovieClip Frame 6
stop();
_parent.gotoAndStop(1);
Symbol 3236 MovieClip Frame 1
stop();
Symbol 3236 MovieClip Frame 2
stop();
Symbol 3236 MovieClip Frame 3
stop();
Symbol 3242 MovieClip Frame 16
effectSound = new Sound(this);
effectSound.attachSound("PupBlast");
effectSound.start();
Symbol 3242 MovieClip Frame 34
stop();
_parent.gotoAndStop(1);
Symbol 3246 MovieClip Frame 6
stop();
_parent.gotoAndStop(1);
Symbol 3247 MovieClip Frame 1
stop();
Symbol 3247 MovieClip Frame 2
stop();
Symbol 3247 MovieClip Frame 3
stop();
Symbol 3259 MovieClip Frame 10
effectSound = new Sound(this);
effectSound.attachSound("punch");
effectSound.start();
Symbol 3259 MovieClip Frame 16
effectSound = new Sound(this);
effectSound.attachSound("punch");
effectSound.start();
Symbol 3259 MovieClip Frame 22
effectSound = new Sound(this);
effectSound.attachSound("punch");
effectSound.start();
Symbol 3259 MovieClip Frame 28
stop();
_parent.gotoAndStop(1);
Symbol 3263 MovieClip Frame 17
stop();
_parent.gotoAndStop(1);
Symbol 3264 MovieClip Frame 1
stop();
Symbol 3264 MovieClip Frame 2
stop();
Symbol 3264 MovieClip Frame 3
stop();
Symbol 3265 MovieClip Frame 1
stop();
Symbol 3265 MovieClip Frame 2
stop();
Symbol 3265 MovieClip Frame 3
stop();
Symbol 3265 MovieClip Frame 4
stop();
Symbol 3281 MovieClip Frame 1
stop();
Symbol 3281 MovieClip Frame 6
stop();
Symbol 3281 MovieClip Frame 11
stop();
Symbol 3281 MovieClip Frame 16
stop();
Symbol 3281 MovieClip Frame 21
stop();
Symbol 3281 MovieClip Frame 26
stop();
Symbol 3281 MovieClip Frame 31
stop();
Symbol 3281 MovieClip Frame 34
stop();
Symbol 3282 MovieClip Frame 1
function attackEnd() {
character.gotoAndStop(1);
if (bossdam != 0) {
boss.gotoAndStop(2);
effectSound = new Sound(this);
effectSound.attachSound("hitNoKill");
effectSound.start();
}
bosshpcount = bosshpcount - bossdam;
if (bosshpcount < 0) {
bosshpcount = 0;
}
bosshp.text = bosshpcount;
if (companionCount > 0) {
companion.compan.gotoAndStop(2);
companTimer = setInterval(companturn, 1000);
} else {
bossturnTimer = setInterval(bossturn, 200);
}
clearInterval(attackTimer);
}
function bossturn() {
boss.gotoAndStop(1);
animTime = false;
bossTurn = true;
clearInterval(bossturnTimer);
}
function companturn() {
boss.gotoAndStop(2);
effectSound = new Sound(this);
effectSound.attachSound("hitNoKill");
effectSound.start();
bosshpcount = bosshpcount - 5;
if (bosshpcount < 0) {
bosshpcount = 0;
}
bosshp.text = bosshpcount;
bossturnTimer = setInterval(bossturn, 200);
clearInterval(companTimer);
}
function bossattack() {
oncePerTurn = true;
playerTurn = true;
if ((companion._currentframe != 4) && (bosshpcount != 0)) {
character.gotoAndStop(6);
hp.text = hp.text - 3;
}
if ((companionCount != 0) && (bosshpcount != 0)) {
companion.compan.gotoAndStop(3);
compcounttimer = setInterval(compcountminusminus, 590);
}
effectSound = new Sound(this);
effectSound.attachSound("Hurt");
effectSound.start();
clearInterval(bossAttackTimer);
exitCount--;
if (bosshpcount <= 0) {
exitCount = 0;
bosshpcount = 0;
bosshp.text = bosshpcount;
}
if (exitCount <= 0) {
exittimer = setInterval(exit, 650);
}
}
function compcountminusminus() {
companionCount--;
if (companionCount == 0) {
companion.gotoAndStop(1);
}
clearInterval(compcounttimer);
}
function exit() {
clearInterval(exittimer);
_root.startDistortion = false;
_root.fidencio.proneTimer = 0;
_root.fidencio.attackNum = 0;
if (bosshpcount > 0) {
_root.fidencio.wait = 150;
} else {
_root.fidencio.wait = 50;
}
_root.foreground.effectinner.gotoAndStop(1);
_root.fader.gotoAndPlay(100);
_root.bDead = false;
_root.bStopInput = false;
_root.bossHP = bosshpcount / 5;
_root.exitDistort = true;
_root.camera.gotoAndStop(1);
}
var playerTurn = true;
var oncePerTurn = true;
var animTime = false;
var counter = 0;
var weapon;
var menu = "main";
var bosshpcount = (_root.bossHP * 5);
var bossdam = 0;
var companionCount = 0;
var exitCount = 10;
if (_root.nWeapNo == 1) {
weapon = "bat";
icon.gotoAndStop(1);
} else if (_root.nWeapNo == 2) {
weapon = "katana";
icon.gotoAndStop(2);
} else if (_root.nWeapNo == 3) {
weapon = "stake";
icon.gotoAndStop(3);
}
hp.text = _global.health * 10;
mp.text = _global.mana * 10;
lives.text = _global.lives;
bosshp.text = bosshpcount;
onEnterFrame = function () {
_global.health = Math.ceil(hp.text / 10);
_global.mana = Math.ceil(mp.text / 10);
_root.nBossDamage = Math.ceil((500 - bosshpcount) / 10);
if (Number(hp.text) <= 0) {
if (Number(lives.text) != 1) {
_global.lives--;
lives.text = _global.lives;
_global.health = _global.maxHealth;
hp.text = _global.health * 10;
} else {
_root.bDead = true;
_root.backToMenu = true;
}
}
if (exitCount != 0) {
if (playerTurn) {
if (oncePerTurn) {
this.attachMovie("hand", "hand", this.getNextHighestDepth());
textbox.swapDepths(hand.getDepth() + 1);
if (bosshpcount == 500) {
textbox.play();
} else {
textbox.gotoAndStop(34);
}
hand._x = 265;
hand._y = 320;
oncePerTurn = false;
}
if (counter > 0) {
counter--;
}
if (Key.isDown(83) && (counter == 0)) {
menu = "main";
counter = 5;
hand._x = 265;
hand._y = 320;
weaponmenu.gotoAndStop(1);
}
if (((Key.isDown(40) && (counter == 0)) && (hand._y < 410)) && (hand._x == 265)) {
if ((menu == "weapon") && (hand._y < 380)) {
counter = 5;
hand._y = hand._y + 30;
}
if (((menu == "main") || (menu == "magic1")) || (menu == "item1")) {
counter = 5;
hand._y = hand._y + 30;
}
}
if (((Key.isDown(40) && (counter == 0)) && (hand._y == 410)) && (hand._x == 265)) {
if (menu == "magic1") {
counter = 5;
hand._x = 265;
hand._y = 320;
menu = "magic2";
weaponmenu.gotoAndStop(4);
}
if (menu == "item1") {
counter = 5;
hand._x = 265;
hand._y = 320;
menu = "item2";
weaponmenu.gotoAndStop(6);
}
}
if (((Key.isDown(38) && (counter == 0)) && (hand._y > 320)) && (hand._x == 265)) {
counter = 5;
hand._y = hand._y - 30;
}
if (((Key.isDown(38) && (counter == 0)) && (hand._y == 320)) && (hand._x == 265)) {
if (menu == "magic2") {
counter = 5;
hand._x = 265;
hand._y = 410;
menu = "magic1";
weaponmenu.gotoAndStop(3);
}
if (menu == "item2") {
counter = 5;
hand._x = 265;
hand._y = 410;
menu = "item1";
weaponmenu.gotoAndStop(5);
}
}
if (((Key.isDown(68) && (counter == 0)) && (bosshpcount == 500)) && (textbox._currentframe != 34)) {
trace("next text");
textbox.play();
counter = 5;
} else if (Key.isDown(68) && (counter == 0)) {
if (hand._x == 265) {
counter = 5;
if (hand._y == 320) {
if (menu == "main") {
optionChoice = "fight";
hand._x = 26;
hand._y = 320;
} else if (menu == "weapon") {
menu = "main";
weapon = "bat";
icon.gotoAndStop(1);
weaponmenu.gotoAndStop(1);
hand._x = 265;
hand._y = 320;
} else if ((menu == "magic1") && (Number(mp.text) >= 1)) {
menu = "main";
weapon = "fireball";
if (_global.mag2addon) {
weapon = "superfireball";
}
weaponmenu.gotoAndStop(1);
hand._x = 26;
hand._y = 320;
} else if (((menu == "magic2") && _global.mag5) && (Number(mp.text) >= 5)) {
menu = "main";
companionCount = 5;
if (_global.mag5addon) {
companionCount = 10;
}
companion.gotoAndStop(4);
weaponmenu.gotoAndStop(1);
mp.text = mp.text - 5;
hand._x = 265;
hand._y = 320;
} else if ((menu == "item1") && (_global.healthPacks > 0)) {
menu = "main";
weapon = "health";
weaponmenu.gotoAndStop(1);
counter = 5;
animTime = true;
hand.removeMovieClip();
playerTurn = false;
} else if ((menu == "item2") && (_global.heldCrosses > 0)) {
menu = "main";
weapon = "cross";
weaponmenu.gotoAndStop(1);
hand._x = 26;
hand._y = 320;
}
} else if (hand._y == 350) {
if (menu == "main") {
optionChoice = "magic";
weaponmenu.gotoAndStop(3);
menu = "magic1";
hand._x = 265;
hand._y = 320;
} else if (menu == "weapon") {
menu = "main";
weapon = "katana";
icon.gotoAndStop(2);
weaponmenu.gotoAndStop(1);
hand._x = 265;
hand._y = 320;
} else if (((menu == "magic1") && _global.mag2) && (Number(mp.text) >= 2)) {
menu = "main";
weapon = "darkbolt";
weaponmenu.gotoAndStop(1);
hand._x = 26;
hand._y = 320;
} else if ((menu == "item1") && (_global.manaPots > 0)) {
menu = "main";
weapon = "mana";
weaponmenu.gotoAndStop(1);
counter = 5;
animTime = true;
hand.removeMovieClip();
playerTurn = false;
}
} else if (hand._y == 380) {
if (menu == "main") {
optionChoice = "weapon";
weaponmenu.gotoAndStop(2);
menu = "weapon";
hand._x = 265;
hand._y = 320;
} else if (menu == "weapon") {
menu = "main";
weapon = "stake";
icon.gotoAndStop(3);
weaponmenu.gotoAndStop(1);
hand._x = 265;
hand._y = 320;
} else if (((menu == "magic1") && _global.mag3) && (Number(mp.text) >= 3)) {
menu = "main";
weapon = "puppies";
weaponmenu.gotoAndStop(1);
hand._x = 26;
hand._y = 320;
} else if ((menu == "item1") && (_global.heldGrenades > 0)) {
menu = "main";
weapon = "grenade";
weaponmenu.gotoAndStop(1);
hand._x = 26;
hand._y = 320;
}
} else if (hand._y == 410) {
if (menu == "main") {
optionChoice = "item";
weaponmenu.gotoAndStop(5);
menu = "item1";
hand._x = 265;
hand._y = 320;
} else if (((menu == "magic1") && _global.mag4) && (Number(mp.text) >= 4)) {
menu = "main";
companionCount = 3;
companion.gotoAndStop(2);
if (_global.mag4addon) {
companionCount = 5;
companion.gotoAndStop(3);
}
weaponmenu.gotoAndStop(1);
mp.text = mp.text - 4;
hand._x = 265;
hand._y = 320;
} else if ((menu == "item1") && (_global.heldCrossbows > 0)) {
menu = "main";
weapon = "crossbow";
weaponmenu.gotoAndStop(1);
hand._x = 26;
hand._y = 320;
}
}
} else {
counter = 5;
animTime = true;
hand.removeMovieClip();
playerTurn = false;
}
}
}
if (animTime) {
if (optionChoice == "fight") {
if (weapon == "bat") {
character.gotoAndStop(2);
character.weapon.gotoAndStop(1);
attackTimer = setInterval(attackEnd, 1000);
bossdam = 1;
if (_global.batDam1) {
bossdam = 2;
}
if (_global.batDam2) {
bossdam = 3;
}
}
if (weapon == "katana") {
character.gotoAndStop(2);
character.weapon.gotoAndStop(2);
attackTimer = setInterval(attackEnd, 1000);
bossdam = 1;
if (_global.katDam1) {
bossdam = 2;
}
if (_global.katDam2) {
bossdam = 3;
}
}
if (weapon == "stake") {
character.gotoAndStop(2);
character.weapon.gotoAndStop(3);
attackTimer = setInterval(attackEnd, 1000);
bossdam = 1;
if (_global.stakeDam1) {
bossdam = 2;
}
if (_global.stakeDam2) {
bossdam = 3;
}
}
}
if (optionChoice == "magic") {
if (weapon == "fireball") {
character.gotoAndStop(3);
character.magic.gotoAndStop(1);
attackTimer = setInterval(attackEnd, 1000);
bossdam = 5;
mp.text = mp.text - 1;
}
if (weapon == "superfireball") {
character.gotoAndStop(3);
character.magic.gotoAndStop(2);
attackTimer = setInterval(attackEnd, 1000);
bossdam = 5;
mp.text = mp.text - 1;
}
if (weapon == "darkbolt") {
character.gotoAndStop(3);
character.magic.gotoAndStop(3);
attackTimer = setInterval(attackEnd, 1000);
bossdam = 10;
mp.text = mp.text - 2;
}
if (weapon == "puppies") {
character.gotoAndStop(3);
character.magic.gotoAndStop(4);
attackTimer = setInterval(attackEnd, 1400);
bossdam = 15;
if (_global.mag3addon) {
bossdam = 20;
}
mp.text = mp.text - 3;
}
}
if (optionChoice == "item") {
if (weapon == "grenade") {
character.gotoAndStop(3);
character.magic.gotoAndStop(5);
attackTimer = setInterval(attackEnd, 1300);
bossdam = 5;
if (_global.pyro) {
bossdam = 8;
}
_global.heldGrenades--;
}
if (weapon == "crossbow") {
character.gotoAndStop(3);
character.magic.gotoAndStop(6);
attackTimer = setInterval(attackEnd, 900);
bossdam = 5;
_global.heldCrossbows--;
}
if (weapon == "cross") {
character.gotoAndStop(3);
character.magic.gotoAndStop(7);
attackTimer = setInterval(attackEnd, 1600);
bossdam = 0;
_global.heldCrosses--;
}
if (weapon == "health") {
character.gotoAndStop(4);
attackTimer = setInterval(attackEnd, 800);
bossdam = 0;
_global.healthPacks--;
_global.health = _global.health + _global.healAmount;
if (_global.health > _global.maxHealth) {
_global.health = _global.maxHealth;
}
hp.text = Number(_global.health * 10);
}
if (weapon == "mana") {
character.gotoAndStop(5);
attackTimer = setInterval(attackEnd, 800);
bossdam = 0;
_global.manaPots--;
_global.mana = _global.mana + _global.manaAmount;
if (_global.mana > _global.maxMana) {
_global.mana = _global.maxMana;
}
mp.text = Number(_global.mana * 10);
}
}
animTime = false;
}
if (bossTurn) {
bossTurn = false;
if (icon._currentframe == 1) {
weapon = "bat";
}
if (icon._currentframe == 2) {
weapon = "katana";
}
if (icon._currentframe == 3) {
weapon = "stake";
}
if (bosshpcount != 0) {
boss.gotoAndStop(3);
}
bossAttackTimer = setInterval(bossattack, 1300);
}
}
};
Symbol 3285 MovieClip Frame 6
stop();
Symbol 3288 MovieClip Frame 6
stop();
Symbol 3289 MovieClip Frame 1
stop();
Symbol 3289 MovieClip Frame 2
stop();
Symbol 3290 MovieClip Frame 1
function Control() {
parentCol.setTransform(camCol.getTransform());
var _local3 = sX / 640;
var _local4 = sY / 480;
_parent._x = cX - (this._x * _local3);
_parent._y = cY - (this._y * _local4);
_parent._xscale = 100 * _local3;
_parent._yscale = 100 * _local4;
}
function reset() {
var _local2 = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0};
parentCol.setTransform(_local2);
_parent._xscale = 100;
_parent._yscale = 100;
_parent._x = 0;
_parent._y = 0;
}
this._visible = true;
var old = Stage.scaleMode;
Stage.scaleMode = "exactFit";
cX = Stage.width / 2;
cY = Stage.height / 2;
sX = Stage.width;
sY = Stage.height;
Stage.scaleMode = old;
var camCol = new Color(this);
var parentCol = new Color(_parent);
this.onEnterFrame = Control;
Control();
this.onUnload = reset;
Instance of Symbol 2506 MovieClip in Symbol 3290 MovieClip Frame 1
on (release) {
getURL ("http://www.nx8.com/?utm_source=zword&utm_medium=zword&utm_campaign=zword", "_blank");
}
Instance of Symbol 2728 MovieClip in Symbol 3290 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_global.mute == false) {
this.gotoAndStop(1);
} else if (_global.mute == true) {
this.gotoAndStop(2);
}
if (Key.isDown(77) && (this.speaker._currentframe == 6)) {
if (_global.mute == false) {
this.gotoAndStop(2);
_global.mute = true;
s = new Sound();
s.setVolume(0);
} else if (_global.mute == true) {
this.gotoAndStop(1);
_global.mute = false;
s = new Sound();
s.setVolume(80);
}
}
}
on (press) {
s = new Sound();
if (_global.mute == false) {
s.setVolume(0);
_global.mute = true;
this.gotoAndStop(2);
} else if (_global.mute == true) {
s.setVolume(80);
_global.mute = false;
this.gotoAndStop(1);
}
}
Instance of Symbol 2772 MovieClip in Symbol 3290 MovieClip Frame 1
/* no clip actions */
Symbol 3290 MovieClip Frame 2
stop();
Symbol 3290 MovieClip Frame 3
stop();
Instance of Symbol 2772 MovieClip in Symbol 3290 MovieClip Frame 3
onClipEvent (enterFrame) {
}
Instance of Symbol 3289 MovieClip in Symbol 3290 MovieClip Frame 3
onClipEvent (enterFrame) {
if (_global.mute == false) {
this.gotoAndStop(1);
} else if (_global.mute == true) {
this.gotoAndStop(2);
}
if (Key.isDown(77) && (this.speaker._currentframe == 6)) {
if (_global.mute == false) {
this.gotoAndStop(2);
_global.mute = true;
s = new Sound();
s.setVolume(0);
} else if (_global.mute == true) {
this.gotoAndStop(1);
_global.mute = false;
s = new Sound();
s.setVolume(80);
}
}
}
on (press) {
s = new Sound();
if (_global.mute == false) {
s.setVolume(0);
_global.mute = true;
this.gotoAndStop(2);
} else if (_global.mute == true) {
s.setVolume(80);
_global.mute = false;
this.gotoAndStop(1);
}
}
Symbol 3292 MovieClip Frame 1
stop();
Symbol 3292 MovieClip Frame 2
stop();
Instance of Symbol 3291 MovieClip in Symbol 3292 MovieClip Frame 2
on (release) {
getURL ("http://www.google.com", "blank");
}
Symbol 4374 MovieClip [__Packages.Playtomic.LogRequest] Frame 0
class Playtomic.LogRequest
{
var Pieces;
function LogRequest () {
}
function Queue(data) {
Pieces++;
Data = Data + (((Data == "") ? "" : "~") + data);
if ((Pieces == 8) || (Data.length > 300)) {
Pieces = 0;
Ready = true;
}
}
function Send() {
var _local3 = function (success) {
if ((this.Data.indexOf("v/") == 0) || (this.Data.indexOf("~v/") > -1)) {
Playtomic.Log.IncreaseViews();
}
if ((this.Data.indexOf("p/") == 0) || (this.Data.indexOf("~p/") > -1)) {
Playtomic.Log.IncreasePlays();
}
};
var _local2 = new LoadVars();
_local2.sendAndLoad(((((((((("http://g" + Playtomic.Log.GUID) + ".api.playtomic.com/Tracker/q.aspx?swfid=") + Playtomic.Log.SWFID) + "&q=") + Data) + "&url=") + Playtomic.Log.SourceUrl) + "&") + Math.random()) + "z", _local3, "POST");
}
var Data = "";
var Ready = false;
}
Symbol 4375 MovieClip [__Packages.Playtomic.Log] Frame 0
class Playtomic.Log
{
static var SourceUrl, Cookie;
function Log () {
}
static function View(swfid, guid, defaulturl) {
if (swfid == undefined) {
swfid = 0;
}
if (guid == undefined) {
guid = "";
}
if (defaulturl == undefined) {
defaulturl = "";
}
if (SWFID > 0) {
return(undefined);
}
SWFID = swfid;
GUID = guid;
Enabled = true;
if ((SWFID == 0) || (GUID == "")) {
Enabled = false;
return(undefined);
}
if (defaulturl.indexOf("http://") != 0) {
Enabled = false;
return(undefined);
}
SourceUrl = defaulturl;
if (((SourceUrl == null) || (SourceUrl == "")) || (SourceUrl.indexOf("https://") == 0)) {
Enabled = false;
return(undefined);
}
Cookie = SharedObject.getLocal("playtomic");
var _local5 = GetCookie("views");
Send("v/" + _local5, true);
_global.setTimeout(PingServer, 60000);
}
static function ForceSend() {
if (Request == null) {
return(undefined);
}
Request.Send();
Request = new Playtomic.LogRequest();
}
static function Play() {
if (!Enabled) {
return(undefined);
}
LevelCounters = new Array();
LevelAverages = new Array();
LevelRangeds = new Array();
Send("p/" + (Plays + 1), true);
}
static function CustomMetric(name, group, unique) {
if (!Enabled) {
return(undefined);
}
if ((group == null) || (group == undefined)) {
group = "";
}
if ((unique == null) || (unique == undefined)) {
unique = false;
}
if (unique) {
if (Customs.indexOf(name) > -1) {
return(undefined);
}
Customs.push(name);
}
Send((("c/" + Clean(name)) + "/") + Clean(group));
}
static function Link(url, name, group, unique, total, fail) {
if (!Enabled) {
return(undefined);
}
Send((((((((((("l/" + Clean(name)) + "/") + Clean(group)) + "/") + Clean(url)) + "/") + unique) + "/") + total) + "/") + fail);
}
static function LevelCounterMetric(name, level, unique) {
if (!Enabled) {
return(undefined);
}
if (unique) {
if (LevelCounters.indexOf(name) > -1) {
return(undefined);
}
LevelCounters.push(name);
}
Send((("lc/" + Clean(name)) + "/") + Clean(level));
}
static function LevelRangedMetric(name, level, value, unique) {
if (!Enabled) {
return(undefined);
}
if (unique) {
if (LevelRangeds.indexOf(name) > -1) {
return(undefined);
}
LevelRangeds.push(name);
SaveCookie("lr_" + name, 1);
}
Send((((("lr/" + Clean(name)) + "/") + Clean(level)) + "/") + value);
}
static function LevelAverageMetric(name, level, value, unique) {
if (!Enabled) {
return(undefined);
}
if (unique) {
if (LevelAverages.indexOf(name) > -1) {
return(undefined);
}
LevelAverages.push(name);
}
Send((((("la/" + Clean(name)) + "/") + Clean(level)) + "/") + value);
}
static function Heatmap(name, group, x, y) {
if (!Enabled) {
return(undefined);
}
Send((((((("h/" + Clean(name)) + "/") + Clean(group)) + "/") + x) + "/") + y);
}
static function Funnel(name, step, stepnum) {
if (!Enabled) {
return(undefined);
}
Send((((("f/" + Clean(name)) + "/") + Clean(step)) + "/") + stepnum);
}
static function PlayerLevelStart(levelid) {
if (!Enabled) {
return(undefined);
}
Send("pls/" + levelid);
}
static function PlayerLevelWin(levelid) {
if (!Enabled) {
return(undefined);
}
Send("plw/" + levelid);
}
static function PlayerLevelQuit(levelid) {
if (!Enabled) {
return(undefined);
}
Send("plq/" + levelid);
}
static function PlayerLevelRetry(levelid) {
if (!Enabled) {
return(undefined);
}
Send("plr/" + levelid);
}
static function PlayerLevelFlag(levelid) {
if (!Enabled) {
return(undefined);
}
Send("plf/" + levelid);
}
static function PingServer() {
if (!Enabled) {
return(undefined);
}
Pings++;
Send((("t/" + (FirstPing ? "y" : "n")) + "/") + Pings, true);
if (FirstPing) {
FirstPing = false;
setInterval(PingServer, 60000);
}
}
static function Send(s, view) {
if (view == undefined) {
view = false;
}
Request.Queue(s);
if ((Request.Ready || (view)) || (!Queue)) {
Request.Send();
Request = new Playtomic.LogRequest();
}
}
static function GetCookie(n) {
if (Cookie.data[n] == undefined) {
return(0);
}
return(parseInt(Cookie.data[n]));
}
static function SaveCookie(n, v) {
Cookie.data[n] = v.toString();
Cookie.flush();
}
static function Clean(s) {
while (s.indexOf("/") > -1) {
s = Replace(s, "/", "\\");
}
while (s.indexOf("~") > -1) {
s = Replace(s, "~", "-");
}
return(escape(s));
}
static function Replace(str, find, replace) {
return(str.split(find).join(replace));
}
static function IncreaseViews() {
var _local1 = GetCookie("views");
_local1++;
SaveCookie("views", _local1);
}
static function IncreasePlays() {
Plays++;
}
static var Enabled = false;
static var Queue = true;
static var SWFID = 0;
static var GUID = "";
static var Request = new Playtomic.LogRequest();
static var FirstPing = true;
static var Pings = 0;
static var Plays = 0;
static var HighestGoal = 0;
static var Customs = new Array();
static var LevelCounters = new Array();
static var LevelAverages = new Array();
static var LevelRangeds = new Array();
}
Symbol 4376 MovieClip [__Packages.Enemy] Frame 0
class Enemy extends MovieClip
{
var longScreen, nSpeed, nCurrentLane, nThinkTime, bGrounded, nGravity, nExposeCount, bStopMovement, bChangingLane, bFacingRight, bFacingLeft, bEnteredScreen, sState, sType, sForm, nHitCount, rethinkValue, swapDepths, _y, _x, gotoAndStop;
function Enemy () {
super();
longScreen = false;
nSpeed = 3;
nCurrentLane = 1;
nThinkTime = 0;
bGrounded = false;
nGravity = 0;
nExposeCount = 0;
bStopMovement = false;
bChangingLane = false;
bFacingRight = false;
bFacingLeft = true;
bEnteredScreen = false;
sState = "moving";
sType = "generic";
sForm = "normal";
nHitCount = 0;
}
function Think(decisionValue, playerLane) {
nThinkTime++;
if (nThinkTime == rethinkValue) {
nThinkTime = 0;
if (sState == "dead") {
} else if (decisionValue < 11) {
sState = "avoid";
if (playerLane == nCurrentLane) {
nCurrentLane++;
}
if (nCurrentLane > 3) {
nCurrentLane = 2;
}
} else if (decisionValue < 45) {
sState = "wander";
nCurrentLane = Math.floor(Math.random() * 3) + 1;
} else if (decisionValue < 56) {
sState = "stopped";
} else if (decisionValue <= 100) {
sState = "moving";
if (playerLane != nCurrentLane) {
nCurrentLane = playerLane;
}
}
}
}
function MakeLane1() {
if (nCurrentLane != 1) {
nCurrentLane = 1;
}
}
function MakeLane2() {
if (nCurrentLane != 2) {
nCurrentLane = 2;
}
}
function MakeLane3() {
if (nCurrentLane != 3) {
nCurrentLane = 3;
}
}
function getCurrentLane() {
return(nCurrentLane);
}
function getType() {
return(sType);
}
function getState() {
return(sState);
}
function setDepth(eNumber) {
if (nCurrentLane == 1) {
swapDepths(1001 + eNumber);
} else if (nCurrentLane == 2) {
swapDepths(2001 + eNumber);
} else if (nCurrentLane == 3) {
swapDepths(3001 + eNumber);
}
}
function Update() {
_y = _y + nGravity;
nGravity++;
if ((_x < -500) || (_x > 1000)) {
if (bFacingLeft) {
bFacingRight = true;
bFacingLeft = false;
} else if (bFacingRight) {
bFacingRight = false;
bFacingLeft = true;
}
}
if (_y > 580) {
_y = 540.05;
nCurrentLane = 3;
}
if ((((_x > 620) && (sState != "dead")) && (sForm != "bat")) && (bEnteredScreen)) {
sState = "moving";
}
if ((((_x < 20) && (sState != "dead")) && (sForm != "bat")) && (bEnteredScreen)) {
sState = "moving";
}
if ((_x <= 620) && (_x >= 20)) {
bEnteredScreen = true;
}
switch (nCurrentLane) {
case 1 :
while (_root.lane1.hitTest(_x, _y + 16, true)) {
if (!bGrounded) {
bGrounded = true;
}
nGravity = 0;
_y--;
}
if ((_y >= 439) && (_y < 440)) {
_y = 439.05;
}
if ((_y > 439.05) && (bGrounded == true)) {
bStopMovement = true;
bChangingLane = true;
nGravity = 0;
_y = _y - 4;
if ((bFacingLeft && (sState != "dead")) && (sForm != "bat")) {
gotoAndStop("runL");
} else if ((bFacingRight && (sState != "dead")) && (sForm != "bat")) {
gotoAndStop("runR");
}
}
if (((_y <= 439.05) && (bGrounded == true)) && (bChangingLane)) {
bStopMovement = false;
bChangingLane = false;
}
break;
case 2 :
while (_root.lane2.hitTest(_x, _y + 16, true)) {
if (!bGrounded) {
bGrounded = true;
}
nGravity = 0;
_y--;
}
if ((_y >= 494) && (_y < 495)) {
_y = 494.05;
}
if ((_y > 494.05) && (bGrounded == true)) {
bStopMovement = true;
bChangingLane = true;
nGravity = 0;
_y = _y - 4;
if ((bFacingLeft && (sState != "dead")) && (sForm != "bat")) {
gotoAndStop("runL");
} else if ((bFacingRight && (sState != "dead")) && (sForm != "bat")) {
gotoAndStop("runR");
}
}
if (((_y == 494.05) && (bGrounded == true)) && (bChangingLane)) {
bChangingLane = false;
bStopMovement = false;
}
if (((_y < 494.05) && (bGrounded == true)) && (!bChangingLane)) {
bStopMovement = true;
bChangingLane = true;
nGravity = 0;
_y = _y + 4;
if ((bFacingLeft && (sState != "dead")) && (sForm != "bat")) {
gotoAndStop("runL");
} else if ((bFacingRight && (sState != "dead")) && (sForm != "bat")) {
gotoAndStop("runR");
}
}
break;
case 3 :
while (_root.lane3.hitTest(_x, _y + 16, true)) {
if (!bGrounded) {
bGrounded = true;
}
nGravity = 0;
_y--;
}
if ((_y >= 540) && (_y < 541)) {
_y = 540.05;
}
if (((_y < 540.05) && (bGrounded == true)) && (!bChangingLane)) {
bStopMovement = true;
bChangingLane = true;
nGravity = 0;
_y = _y + 4;
if ((bFacingLeft && (sState != "dead")) && (sForm != "bat")) {
gotoAndStop("runL");
} else if ((bFacingRight && (sState != "dead")) && (sForm != "bat")) {
gotoAndStop("runR");
}
}
if (((_y >= 540.05) && (bGrounded == true)) && (bChangingLane)) {
bStopMovement = false;
bChangingLane = false;
}
break;
}
}
static var nMaxmove = 15;
}
Symbol 4377 MovieClip [__Packages.EnemyZombie] Frame 0
class EnemyZombie extends Enemy
{
var sType, bFacingRight, gotoAndStop, bFacingLeft, sState, bEnteredScreen, _x, nCurrentLane, _y, attack, nSpeed;
function EnemyZombie (startinglane) {
super();
sType = "zombie";
}
function hit(playerWeap, attackState, damage) {
if (damage == undefined) {
damage = 10;
}
if (playerWeap == 4) {
if (bFacingRight) {
gotoAndStop("idleR");
gotoAndStop("explodeR");
}
if (bFacingLeft) {
gotoAndStop("idleL");
gotoAndStop("explodeL");
}
sState = "dead";
return(1);
}
var _local2;
if (Math.round(Math.random() * 100) > 70) {
_local2 = true;
} else {
_local2 = false;
}
if ((playerWeap == 1) || (playerWeap == 2)) {
if (attackState == 0) {
if (bFacingRight) {
if (!_local2) {
gotoAndStop("deathhighR");
}
if (_local2) {
gotoAndStop("crithighR");
}
sState = "dead";
}
if (bFacingLeft) {
if (!_local2) {
gotoAndStop("deathhighL");
}
if (_local2) {
gotoAndStop("crithighL");
}
sState = "dead";
}
}
if (attackState == 1) {
if (bFacingRight) {
if (!_local2) {
gotoAndStop("deathmidR");
}
if (_local2) {
gotoAndStop("critmidR");
}
sState = "dead";
}
if (bFacingLeft) {
if (!_local2) {
gotoAndStop("deathmidL");
}
if (_local2) {
gotoAndStop("critmidL");
}
sState = "dead";
}
}
} else {
_local2 = false;
if (bFacingRight) {
gotoAndStop("stakekillR");
}
if (bFacingLeft) {
gotoAndStop("stakekillL");
}
sState = "dead";
}
if (_local2) {
return(1);
}
if (!_local2) {
return(0);
}
}
function Move(playerX, playerY, playerLane) {
if ((!bEnteredScreen) && (sState != "dead")) {
sState = "moving";
}
if ((((((_x > (playerX - 40)) && (_x < (playerX + 40))) && (playerLane == nCurrentLane)) && (_y < (playerY + 10))) && (sState != "dead")) && (sState != "avoid")) {
var _local3 = false;
if ((Math.floor(Math.random() * 100) + 1) < 10) {
if (playerX < (_x - 5)) {
bFacingRight = false;
bFacingLeft = true;
_local3 = true;
} else if (playerX > (_x + 5)) {
bFacingRight = true;
bFacingLeft = false;
_local3 = true;
}
}
if (bFacingRight == true) {
gotoAndStop("biteR");
}
if (bFacingLeft == true) {
gotoAndStop("biteL");
}
if ((playerX < (_x - 5)) && (bFacingLeft)) {
if ((attack._currentframe == 7) && (!_local3)) {
return(true);
}
return(false);
}
if ((playerX > (_x + 5)) && (bFacingRight)) {
if ((attack._currentframe == 7) && (!_local3)) {
return(true);
}
return(false);
}
return(false);
}
if (sState == "stopped") {
if (bFacingRight == true) {
gotoAndStop("idleR");
}
if (bFacingLeft == true) {
gotoAndStop("idleL");
}
return(false);
}
if (sState == "moving") {
if ((playerX < (_x - 5)) && (playerY > 454)) {
bFacingRight = false;
bFacingLeft = true;
} else if ((playerX > (_x + 5)) && (playerY > 454)) {
bFacingRight = true;
bFacingLeft = false;
}
if (bFacingLeft) {
gotoAndStop("runL");
_x = _x - nSpeed;
} else if (bFacingRight) {
gotoAndStop("runR");
_x = _x + nSpeed;
}
if (bEnteredScreen) {
if (_x > 640) {
_x = (640 - Math.floor(Math.random() * 16)) + 1;
sState = "wander";
bFacingRight = false;
bFacingLeft = true;
} else if (_x < 0) {
_x = (0 + Math.floor(Math.random() * 16)) + 1;
sState = "wander";
bFacingRight = true;
bFacingLeft = false;
}
}
if ((Math.floor(Math.random() * 100) + 1) < 10) {
if ((_x > (playerX - 40)) && (_x < (playerX + 40))) {
if (playerLane != nCurrentLane) {
nCurrentLane = playerLane;
}
}
}
return(false);
}
if (sState == "wander") {
if (bFacingLeft) {
gotoAndStop("runL");
_x = _x - nSpeed;
} else if (bFacingRight) {
gotoAndStop("runR");
_x = _x + nSpeed;
}
if (bEnteredScreen) {
if (_x > 640) {
_x = (640 - Math.floor(Math.random() * 16)) + 1;
sState = "wander";
bFacingRight = false;
bFacingLeft = true;
} else if (_x < 0) {
_x = (0 + Math.floor(Math.random() * 16)) + 1;
sState = "wander";
bFacingRight = true;
bFacingLeft = false;
}
}
if ((Math.floor(Math.random() * 5000) + 1) < 5) {
nCurrentLane = Math.floor(Math.random() * 3) + 1;
}
} else if (sState == "avoid") {
if (playerX < (_x - 5)) {
bFacingRight = true;
bFacingLeft = false;
} else if (playerX > (_x + 5)) {
bFacingRight = false;
bFacingLeft = true;
}
if (bFacingLeft) {
gotoAndStop("runL");
_x = _x - nSpeed;
} else if (bFacingRight) {
gotoAndStop("runR");
_x = _x + nSpeed;
}
if (bEnteredScreen) {
if (_x > 640) {
_x = (640 - Math.floor(Math.random() * 16)) + 1;
sState = "wander";
bFacingRight = false;
bFacingLeft = true;
} else if (_x < 0) {
_x = (0 + Math.floor(Math.random() * 16)) + 1;
sState = "wander";
bFacingRight = true;
bFacingLeft = false;
}
}
}
}
}
Symbol 4378 MovieClip [__Packages.StandardZombie] Frame 0
class StandardZombie extends EnemyZombie
{
var nSpeed, aggressionValue, rethinkValue, nCurrentLane;
function StandardZombie (startinglane) {
super();
nSpeed = 3;
aggressionValue = 20;
rethinkValue = 150;
if (startinglane == undefined) {
nCurrentLane = 2;
} else {
nCurrentLane = startinglane;
}
}
}
Symbol 4379 MovieClip [__Packages.EnemyWerewolf] Frame 0
class EnemyWerewolf extends Enemy
{
var sType, nHitCount, bFacingRight, gotoAndStop, bFacingLeft, sState, nStunCount, bEnteredScreen, _x, nCurrentLane, _y, attack, nSpeed, _currentframe;
function EnemyWerewolf () {
super();
sType = "werewolf";
}
function hit(playerWeap, attackState, damage, stakeOne) {
if (damage == undefined) {
damage = 10;
}
if (stakeOne == undefined) {
stakeOne = false;
}
if (stakeOne) {
nHitCount = 51;
}
if (playerWeap == 4) {
if (bFacingRight) {
gotoAndStop("idleR");
gotoAndStop("explodeR");
}
if (bFacingLeft) {
gotoAndStop("idleL");
gotoAndStop("explodeL");
}
sState = "dead";
return(1);
}
if ((nHitCount < 50) && (damage < 50)) {
nHitCount = nHitCount + damage;
if (bFacingRight) {
gotoAndStop("idleR");
gotoAndStop("hitR");
}
if (bFacingLeft) {
gotoAndStop("idleL");
gotoAndStop("hitL");
}
sState = "stopped";
nStunCount = 30;
return(2);
}
nHitCount = 0;
var _local2;
if (Math.round(Math.random() * 100) > 70) {
_local2 = true;
} else {
_local2 = false;
}
if (_local2 && (playerWeap != 3)) {
if (bFacingRight) {
gotoAndStop("critmidR");
}
if (bFacingLeft) {
gotoAndStop("critmidL");
}
sState = "dead";
return(1);
}
if (_local2 && (playerWeap == 3)) {
if (bFacingRight) {
gotoAndStop("stakecritR");
}
if (bFacingLeft) {
gotoAndStop("stakecritL");
}
sState = "dead";
return(1);
}
if ((playerWeap == 1) || (playerWeap == 2)) {
if (attackState == 0) {
if (bFacingRight) {
gotoAndStop("deathhighR");
sState = "dead";
}
if (bFacingLeft) {
gotoAndStop("deathhighL");
sState = "dead";
}
}
if (attackState == 1) {
if (bFacingRight) {
gotoAndStop("deathmidR");
sState = "dead";
}
if (bFacingLeft) {
gotoAndStop("deathmidL");
sState = "dead";
}
}
return(0);
}
_local2 = false;
if (bFacingRight) {
gotoAndStop("stakekillR");
}
if (bFacingLeft) {
gotoAndStop("stakekillL");
}
sState = "dead";
return(0);
}
function Move(playerX, playerY, playerLane) {
if ((!bEnteredScreen) && (sState != "dead")) {
sState = "moving";
}
if (nStunCount > 0) {
nStunCount--;
return(false);
}
if (((((_x > (playerX - 50)) && (_x < (playerX + 50))) && (playerLane == nCurrentLane)) && (_y < (playerY + 10))) && (sState != "dead")) {
var _local3 = false;
if ((Math.floor(Math.random() * 100) + 1) < 10) {
if (playerX < (_x - 10)) {
bFacingRight = false;
bFacingLeft = true;
_local3 = true;
} else if (playerX > (_x + 10)) {
bFacingRight = true;
bFacingLeft = false;
_local3 = true;
}
}
if (bFacingRight == true) {
gotoAndStop("attackR");
}
if (bFacingLeft == true) {
gotoAndStop("attackL");
}
if ((playerX < (_x - 5)) && (bFacingLeft)) {
if ((attack._currentframe == 7) && (!_local3)) {
return(true);
}
return(false);
}
if ((playerX > (_x + 5)) && (bFacingRight)) {
if ((attack._currentframe == 7) && (!_local3)) {
return(true);
}
return(false);
}
return(false);
}
if (sState == "stopped") {
if (bFacingRight == true) {
gotoAndStop("idleR");
}
if (bFacingLeft == true) {
gotoAndStop("idleL");
}
return(false);
}
if (sState == "moving") {
if ((playerX < (_x - 5)) && (playerY > 454)) {
bFacingRight = false;
bFacingLeft = true;
} else if ((playerX > (_x + 5)) && (playerY > 454)) {
bFacingRight = true;
bFacingLeft = false;
}
if (nHitCount > 0) {
nHitCount--;
}
if (bFacingLeft) {
gotoAndStop("runL");
_x = _x - nSpeed;
} else if (bFacingRight) {
gotoAndStop("runR");
_x = _x + nSpeed;
}
if (bEnteredScreen) {
if (_x > 640) {
_x = (640 - Math.floor(Math.random() * 16)) + 1;
sState = "wander";
bFacingRight = false;
bFacingLeft = true;
} else if (_x < 0) {
_x = (0 + Math.floor(Math.random() * 16)) + 1;
sState = "wander";
bFacingRight = true;
bFacingLeft = false;
}
}
if ((Math.floor(Math.random() * 100) + 1) < 10) {
if ((_x > (playerX - 40)) && (_x < (playerX + 40))) {
if (playerLane != nCurrentLane) {
nCurrentLane = playerLane;
}
}
}
return(false);
}
if (sState == "wander") {
if (bFacingLeft) {
gotoAndStop("runL");
_x = _x - nSpeed;
} else if (bFacingRight) {
gotoAndStop("runR");
_x = _x + nSpeed;
}
if (bEnteredScreen) {
if (_x > 640) {
_x = (640 - Math.floor(Math.random() * 16)) + 1;
sState = "wander";
bFacingRight = false;
bFacingLeft = true;
} else if (_x < 0) {
_x = (0 + Math.floor(Math.random() * 16)) + 1;
sState = "wander";
bFacingRight = true;
bFacingLeft = false;
}
}
if ((Math.floor(Math.random() * 5000) + 1) < 5) {
nCurrentLane = Math.floor(Math.random() * 3) + 1;
}
} else if (sState == "avoid") {
if (playerX < (_x - 10)) {
bFacingRight = true;
bFacingLeft = false;
} else if (playerX > (_x + 10)) {
bFacingRight = false;
bFacingLeft = true;
}
if (bFacingLeft) {
gotoAndStop("runL");
_x = _x - nSpeed;
} else if (bFacingRight) {
gotoAndStop("runR");
_x = _x + nSpeed;
}
if (bEnteredScreen) {
if (_x > 640) {
_x = (640 - Math.floor(Math.random() * 16)) + 1;
sState = "wander";
bFacingRight = false;
bFacingLeft = true;
} else if (_x < 0) {
_x = (0 + Math.floor(Math.random() * 16)) + 1;
sState = "wander";
bFacingRight = true;
bFacingLeft = false;
}
}
} else if (sState == "dead") {
if (_currentframe == 3) {
gotoAndStop("deathmidL");
trace("fixed");
} else if (_currentframe == 4) {
gotoAndStop("deathmidR");
trace("fixed");
}
}
}
}
Symbol 4380 MovieClip [__Packages.StandardWerewolf] Frame 0
class StandardWerewolf extends EnemyWerewolf
{
var nSpeed, aggressionValue, rethinkValue, nCurrentLane;
function StandardWerewolf (startinglane) {
super();
nSpeed = 5;
aggressionValue = 90;
rethinkValue = 150;
if (startinglane == undefined) {
nCurrentLane = 1;
} else {
nCurrentLane = startinglane;
}
}
}
Symbol 4381 MovieClip [__Packages.EnemyVamp] Frame 0
class EnemyVamp extends Enemy
{
var sType, transformTimer, bTransforming, sForm, gotoAndStop, sState, bFacingRight, bFacingLeft, nHitCount, nExposeCount, nStunCount, bEnteredScreen, _x, nSpeed, nCurrentLane, poof, _y, attack;
function EnemyVamp () {
super();
sType = "vampire";
transformTimer = 0;
bTransforming = false;
}
function hit(playerWeap, attackState, damage, kill1, kill2) {
if (damage == undefined) {
damage = 10;
}
if (kill1 && (playerWeap == 2)) {
playerWeap = 4;
}
var _local4 = false;
if (kill2 && (playerWeap == 3)) {
_local4 = true;
}
if (sForm == "bat") {
gotoAndStop("batdeath");
sState = "dead";
return(0);
}
if (_local4) {
if (bFacingRight) {
gotoAndStop("stakekillR");
}
if (bFacingLeft) {
gotoAndStop("stakekillL");
}
sState = "dead";
return(0);
}
if (playerWeap == 4) {
if (bFacingRight) {
gotoAndStop("idleR");
gotoAndStop("explodeR");
}
if (bFacingLeft) {
gotoAndStop("idleL");
gotoAndStop("explodeL");
}
sState = "dead";
return(1);
}
if ((((nHitCount < 30) && (playerWeap != 3)) && (nExposeCount == 0)) && (damage < 30)) {
nHitCount = nHitCount + damage;
if (bFacingRight) {
gotoAndStop("idleR");
gotoAndStop("hitR");
}
if (bFacingLeft) {
gotoAndStop("idleL");
gotoAndStop("hitL");
}
sState = "stopped";
nStunCount = 30;
return(2);
}
if (damage >= 30) {
nHitCount = 0;
nExposeCount = 50;
if (bFacingRight) {
gotoAndStop("exposeR");
}
if (bFacingLeft) {
gotoAndStop("exposeL");
}
} else if ((playerWeap == 3) && (nExposeCount == 0)) {
return(2);
}
if ((nHitCount >= 30) && (nExposeCount == 0)) {
nHitCount = 0;
nExposeCount = 50;
if (bFacingRight) {
gotoAndStop("exposeR");
}
if (bFacingLeft) {
gotoAndStop("exposeL");
}
}
if ((playerWeap == 3) && (nExposeCount > 0)) {
if (bFacingRight) {
gotoAndStop("stakekillR");
}
if (bFacingLeft) {
gotoAndStop("stakekillL");
}
sState = "dead";
return(0);
}
}
function Move(playerX, playerY, playerLane) {
if ((!bEnteredScreen) && (sState != "dead")) {
sState = "moving";
}
if ((sForm == "bat") && (sState != "dead")) {
transformTimer++;
if (!bTransforming) {
gotoAndStop("batflap");
}
if ((_x < 0) && (!bEnteredScreen)) {
bFacingRight = true;
bFacingLeft = false;
} else if ((_x > 640) && (!bEnteredScreen)) {
bFacingRight = false;
bFacingLeft = true;
}
if (bFacingLeft) {
_x = _x - nSpeed;
} else if (bFacingRight) {
_x = _x + nSpeed;
}
if (bEnteredScreen) {
if (_x > 640) {
_x = (640 - Math.floor(Math.random() * 16)) + 1;
sState = "wander";
bFacingRight = false;
bFacingLeft = true;
} else if (_x < 0) {
_x = (0 + Math.floor(Math.random() * 16)) + 1;
sState = "wander";
bFacingRight = true;
bFacingLeft = false;
}
}
if ((Math.floor(Math.random() * 5000) + 1) < 5) {
nCurrentLane = Math.floor(Math.random() * 3) + 1;
}
if ((transformTimer > 60) && (bEnteredScreen)) {
transformTimer = 0;
if ((Math.floor(Math.random() * 100) + 1) < 20) {
if (bFacingLeft) {
gotoAndStop("batpuffL");
} else if (bFacingRight) {
gotoAndStop("batpuffR");
}
bTransforming = true;
}
}
if (poof._currentframe == 23) {
sForm = "normal";
sState = "stopped";
}
} else {
if (nStunCount > 0) {
nStunCount--;
return(false);
}
if (nExposeCount > 0) {
nExposeCount--;
return(false);
}
if (((((_x > (playerX - 50)) && (_x < (playerX + 50))) && (playerLane == nCurrentLane)) && (_y < (playerY + 10))) && (sState != "dead")) {
var _local3 = false;
if ((Math.floor(Math.random() * 100) + 1) < 10) {
if (playerX < (_x - 10)) {
bFacingRight = false;
bFacingLeft = true;
_local3 = true;
} else if (playerX > (_x + 10)) {
bFacingRight = true;
bFacingLeft = false;
_local3 = true;
}
}
if (bFacingRight == true) {
gotoAndStop("attackR");
}
if (bFacingLeft == true) {
gotoAndStop("attackL");
}
if (bFacingRight == true) {
gotoAndStop("attackR");
}
if (bFacingLeft == true) {
gotoAndStop("attackL");
}
if ((playerX < (_x - 5)) && (bFacingLeft)) {
if ((attack._currentframe == 22) || (attack._currentframe == 28)) {
if (!_local3) {
return(true);
}
return(false);
}
return(false);
}
if ((playerX > (_x + 5)) && (bFacingRight)) {
if ((attack._currentframe == 22) || (attack._currentframe == 28)) {
if (!_local3) {
return(true);
}
return(false);
}
return(false);
}
return(false);
}
if (sState == "stopped") {
if (bFacingRight == true) {
gotoAndStop("idleR");
}
if (bFacingLeft == true) {
gotoAndStop("idleL");
}
return(false);
}
if (sState == "moving") {
if ((playerX < (_x - 5)) && (playerY > 454)) {
bFacingRight = false;
bFacingLeft = true;
} else if ((playerX > (_x + 5)) && (playerY > 454)) {
bFacingRight = true;
bFacingLeft = false;
}
if (nHitCount > 0) {
nHitCount--;
}
if (bFacingLeft) {
gotoAndStop("runL");
_x = _x - nSpeed;
} else if (bFacingRight) {
gotoAndStop("runR");
_x = _x + nSpeed;
}
if (bEnteredScreen) {
if (_x > 640) {
_x = (640 - Math.floor(Math.random() * 16)) + 1;
sState = "wander";
bFacingRight = false;
bFacingLeft = true;
} else if (_x < 0) {
_x = (0 + Math.floor(Math.random() * 16)) + 1;
sState = "wander";
bFacingRight = true;
bFacingLeft = false;
}
}
if ((Math.floor(Math.random() * 100) + 1) < 10) {
if ((_x > (playerX - 40)) && (_x < (playerX + 40))) {
if (playerLane != nCurrentLane) {
nCurrentLane = playerLane;
}
}
}
return(false);
}
if (sState == "wander") {
if (bFacingLeft) {
gotoAndStop("runL");
_x = _x - nSpeed;
} else if (bFacingRight) {
gotoAndStop("runR");
_x = _x + nSpeed;
}
if (bEnteredScreen) {
if (_x > 640) {
_x = (640 - Math.floor(Math.random() * 16)) + 1;
sState = "wander";
bFacingRight = false;
bFacingLeft = true;
} else if (_x < 0) {
_x = (0 + Math.floor(Math.random() * 16)) + 1;
sState = "wander";
bFacingRight = true;
bFacingLeft = false;
}
}
if ((Math.floor(Math.random() * 5000) + 1) < 5) {
nCurrentLane = Math.floor(Math.random() * 3) + 1;
}
} else if (sState == "avoid") {
if (playerX < (_x - 10)) {
bFacingRight = true;
bFacingLeft = false;
} else if (playerX > (_x + 10)) {
bFacingRight = false;
bFacingLeft = true;
}
if (bFacingLeft) {
gotoAndStop("runL");
_x = _x - nSpeed;
} else if (bFacingRight) {
gotoAndStop("runR");
_x = _x + nSpeed;
}
if (bEnteredScreen) {
if (_x > 640) {
_x = (640 - Math.floor(Math.random() * 16)) + 1;
sState = "wander";
bFacingRight = false;
bFacingLeft = true;
} else if (_x < 0) {
_x = (0 + Math.floor(Math.random() * 16)) + 1;
sState = "wander";
bFacingRight = true;
bFacingLeft = false;
}
}
}
}
}
}
Symbol 4382 MovieClip [__Packages.StandardVamp] Frame 0
class StandardVamp extends EnemyVamp
{
var nSpeed, aggressionValue, rethinkValue, nCurrentLane, sForm;
function StandardVamp (startinglane) {
super();
nSpeed = 3;
aggressionValue = 70;
rethinkValue = 150;
if (startinglane == undefined) {
nCurrentLane = 1;
} else {
nCurrentLane = startinglane;
}
sForm = "normal";
}
}
Symbol 4383 MovieClip [__Packages.EnemyTinySlime] Frame 0
class EnemyTinySlime extends Enemy
{
var sType, invFrames, bFacingRight, gotoAndStop, bFacingLeft, sState, bEnteredScreen, _x, bGrounded, nGravity, nSpeed, longScreen, nCurrentLane;
function EnemyTinySlime () {
super();
sType = "tiny slime";
invFrames = 30;
}
function hit(playerWeap, attackState, damage) {
if (invFrames == 0) {
if (damage == undefined) {
damage = 10;
}
if (bFacingRight) {
gotoAndStop("splatR");
}
if (bFacingLeft) {
gotoAndStop("splatL");
}
sState = "dead";
return(0);
}
return(2);
}
function Move(playerX, playerY, playerLane) {
if (invFrames > 0) {
invFrames--;
}
if ((!bEnteredScreen) && (sState != "dead")) {
sState = "moving";
}
if (sState == "stopped") {
if (bFacingRight == true) {
gotoAndStop("idleR");
}
if (bFacingLeft == true) {
gotoAndStop("idleL");
}
return(false);
}
if (sState == "moving") {
if ((playerX < (_x - 5)) && (playerY > 454)) {
bFacingRight = false;
bFacingLeft = true;
} else if ((playerX > (_x + 5)) && (playerY > 454)) {
bFacingRight = true;
bFacingLeft = false;
}
if (bFacingLeft) {
if (bGrounded) {
nGravity = -12;
bGrounded = false;
}
if (nGravity < 0) {
gotoAndStop("jumpL");
}
if (nGravity > 0) {
gotoAndStop("fallL");
}
_x = _x - nSpeed;
} else if (bFacingRight) {
if (bGrounded) {
nGravity = -12;
bGrounded = false;
}
if (nGravity < 0) {
gotoAndStop("jumpR");
}
if (nGravity > 0) {
gotoAndStop("fallR");
}
_x = _x + nSpeed;
}
if (bEnteredScreen) {
if (_x > 640) {
_x = (640 - Math.floor(Math.random() * 16)) + 1;
sState = "wander";
bFacingRight = false;
bFacingLeft = true;
} else if ((_x < 0) && (!longScreen)) {
_x = (0 + Math.floor(Math.random() * 16)) + 1;
sState = "wander";
bFacingRight = true;
bFacingLeft = false;
} else if ((_x < -200) && (longScreen)) {
_x = (-200 + Math.floor(Math.random() * 16)) + 1;
sState = "wander";
bFacingRight = true;
bFacingLeft = false;
}
}
if ((Math.floor(Math.random() * 100) + 1) < 10) {
if ((_x > (playerX - 40)) && (_x < (playerX + 40))) {
if (playerLane != nCurrentLane) {
nCurrentLane = playerLane;
}
}
}
return(false);
}
if (sState == "wander") {
if (bFacingLeft) {
if (bGrounded) {
nGravity = -12;
bGrounded = false;
}
if (nGravity < 0) {
gotoAndStop("jumpL");
}
if (nGravity > 0) {
gotoAndStop("fallL");
}
_x = _x - nSpeed;
} else if (bFacingRight) {
if (bGrounded) {
nGravity = -12;
bGrounded = false;
}
if (nGravity < 0) {
gotoAndStop("jumpR");
}
if (nGravity > 0) {
gotoAndStop("fallR");
}
_x = _x + nSpeed;
}
if (bEnteredScreen) {
if (_x > 640) {
_x = (640 - Math.floor(Math.random() * 16)) + 1;
sState = "wander";
bFacingRight = false;
bFacingLeft = true;
} else if ((_x < 0) && (!longScreen)) {
_x = (0 + Math.floor(Math.random() * 16)) + 1;
sState = "wander";
bFacingRight = true;
bFacingLeft = false;
} else if ((_x < -200) && (longScreen)) {
_x = (-200 + Math.floor(Math.random() * 16)) + 1;
sState = "wander";
bFacingRight = true;
bFacingLeft = false;
}
}
if ((Math.floor(Math.random() * 5000) + 1) < 5) {
nCurrentLane = Math.floor(Math.random() * 3) + 1;
}
} else if (sState == "avoid") {
if (playerX < (_x - 5)) {
bFacingRight = true;
bFacingLeft = false;
} else if (playerX > (_x + 5)) {
bFacingRight = false;
bFacingLeft = true;
}
if (bFacingLeft) {
if (bGrounded) {
nGravity = -12;
bGrounded = false;
}
if (nGravity < 0) {
gotoAndStop("jumpL");
}
if (nGravity > 0) {
gotoAndStop("fallL");
}
_x = _x - nSpeed;
} else if (bFacingRight) {
if (bGrounded) {
nGravity = -12;
bGrounded = false;
}
if (nGravity < 0) {
gotoAndStop("jumpR");
}
if (nGravity > 0) {
gotoAndStop("fallR");
}
_x = _x + nSpeed;
}
}
}
}
Symbol 4384 MovieClip [__Packages.StandardTinySlime] Frame 0
class StandardTinySlime extends EnemyTinySlime
{
var nSpeed, aggressionValue, rethinkValue, nCurrentLane;
function StandardTinySlime (startinglane) {
super();
nSpeed = 1;
aggressionValue = 20;
rethinkValue = 150;
if (startinglane == undefined) {
nCurrentLane = 2;
} else {
nCurrentLane = startinglane;
}
}
}
Symbol 4385 MovieClip [__Packages.EnemySmallSlime] Frame 0
class EnemySmallSlime extends Enemy
{
var sType, invFrames, bFacingRight, gotoAndStop, bFacingLeft, sState, nGravity, nStopFor, bEnteredScreen, _x, nCurrentLane, _y, attack, bGrounded, nSpeed, longScreen;
function EnemySmallSlime () {
super();
sType = "small slime";
invFrames = 30;
}
function hit(playerWeap, attackState, damage, cut1, cut2) {
if (invFrames == 0) {
if (damage == undefined) {
damage = 10;
}
if (playerWeap == 4) {
if (bFacingRight) {
gotoAndStop("idleR");
gotoAndStop("explodeR");
}
if (bFacingLeft) {
gotoAndStop("idleL");
gotoAndStop("explodeL");
}
sState = "dead";
return(1);
}
if (((playerWeap == 1) && (!cut1)) || ((playerWeap == 3) && (!cut2))) {
if (bFacingRight && (sState != "blocking")) {
gotoAndStop("idleR");
gotoAndStop("blockR");
nGravity = 8;
}
if (bFacingLeft && (sState != "blocking")) {
gotoAndStop("idleL");
gotoAndStop("blockL");
nGravity = 8;
}
sState = "blocking";
nStopFor = 50;
return(2);
}
if (bFacingRight) {
gotoAndStop("cutR");
}
if (bFacingLeft) {
gotoAndStop("cutL");
}
sState = "dead";
return(0);
}
return(2);
}
function Move(playerX, playerY, playerLane) {
if (invFrames > 0) {
invFrames--;
}
if ((!bEnteredScreen) && (sState != "dead")) {
sState = "moving";
}
if (nStopFor > 0) {
nStopFor--;
}
if (nStopFor != 0) {
sState = "stopped";
}
if (((((((_x > (playerX - 40)) && (_x < (playerX + 40))) && (playerLane == nCurrentLane)) && (_y < (playerY + 10))) && (sState != "dead")) && (sState != "blocking")) && (sState != "stopped")) {
var _local3 = false;
if ((Math.floor(Math.random() * 100) + 1) < 10) {
if (playerX < (_x - 5)) {
bFacingRight = false;
bFacingLeft = true;
_local3 = true;
} else if (playerX > (_x + 5)) {
bFacingRight = true;
bFacingLeft = false;
_local3 = true;
}
}
if (bFacingRight == true) {
gotoAndStop("attackR");
}
if (bFacingLeft == true) {
gotoAndStop("attackL");
}
if ((playerX < (_x - 5)) && (bFacingLeft)) {
if ((attack._currentframe == 20) && (!_local3)) {
return(true);
}
return(false);
}
if ((playerX > (_x + 5)) && (bFacingRight)) {
if ((attack._currentframe == 20) && (!_local3)) {
return(true);
}
return(false);
}
return(false);
}
if (((((_x > (playerX - 40)) && (_x < (playerX + 40))) && (playerLane == nCurrentLane)) && (_y < (playerY + 10))) && (sState == "stopped")) {
sState = "moving";
} else {
if (sState == "stopped") {
if (bFacingRight == true) {
gotoAndStop("idleR");
}
if (bFacingLeft == true) {
gotoAndStop("idleL");
}
return(false);
}
if (sState == "moving") {
if ((playerX < (_x - 5)) && (playerY > 454)) {
bFacingRight = false;
bFacingLeft = true;
} else if ((playerX > (_x + 5)) && (playerY > 454)) {
bFacingRight = true;
bFacingLeft = false;
}
if (bFacingLeft) {
if (bGrounded) {
nGravity = -12;
bGrounded = false;
}
if (nGravity < 0) {
gotoAndStop("jumpL");
}
if (nGravity > 0) {
gotoAndStop("fallL");
}
_x = _x - nSpeed;
} else if (bFacingRight) {
if (bGrounded) {
nGravity = -12;
bGrounded = false;
}
if (nGravity < 0) {
gotoAndStop("jumpR");
}
if (nGravity > 0) {
gotoAndStop("fallR");
}
_x = _x + nSpeed;
}
if (bEnteredScreen) {
if (_x > 640) {
_x = (640 - Math.floor(Math.random() * 16)) + 1;
sState = "wander";
bFacingRight = false;
bFacingLeft = true;
} else if ((_x < 0) && (!longScreen)) {
_x = (0 + Math.floor(Math.random() * 16)) + 1;
sState = "wander";
bFacingRight = true;
bFacingLeft = false;
} else if ((_x < -200) && (longScreen)) {
_x = (-200 + Math.floor(Math.random() * 16)) + 1;
sState = "wander";
bFacingRight = true;
bFacingLeft = false;
}
}
if ((Math.floor(Math.random() * 100) + 1) < 10) {
if ((_x > (playerX - 40)) && (_x < (playerX + 40))) {
if (playerLane != nCurrentLane) {
nCurrentLane = playerLane;
}
}
}
return(false);
}
if (sState == "wander") {
if (bFacingLeft) {
if (bGrounded) {
nGravity = -12;
bGrounded = false;
}
if (nGravity < 0) {
gotoAndStop("jumpL");
}
if (nGravity > 0) {
gotoAndStop("fallL");
}
_x = _x - nSpeed;
} else if (bFacingRight) {
if (bGrounded) {
nGravity = -12;
bGrounded = false;
}
if (nGravity < 0) {
gotoAndStop("jumpR");
}
if (nGravity > 0) {
gotoAndStop("fallR");
}
_x = _x + nSpeed;
}
if (bEnteredScreen) {
if (_x > 640) {
_x = (640 - Math.floor(Math.random() * 16)) + 1;
sState = "wander";
bFacingRight = false;
bFacingLeft = true;
} else if ((_x < 0) && (!longScreen)) {
_x = (0 + Math.floor(Math.random() * 16)) + 1;
sState = "wander";
bFacingRight = true;
bFacingLeft = false;
} else if ((_x < -200) && (longScreen)) {
_x = (-200 + Math.floor(Math.random() * 16)) + 1;
sState = "wander";
bFacingRight = true;
bFacingLeft = false;
}
}
if ((Math.floor(Math.random() * 5000) + 1) < 5) {
nCurrentLane = Math.floor(Math.random() * 3) + 1;
}
} else if (sState == "avoid") {
if (playerX < (_x - 5)) {
bFacingRight = true;
bFacingLeft = false;
} else if (playerX > (_x + 5)) {
bFacingRight = false;
bFacingLeft = true;
}
if (bFacingLeft) {
if (bGrounded) {
nGravity = -12;
bGrounded = false;
}
if (nGravity < 0) {
gotoAndStop("jumpL");
}
if (nGravity > 0) {
gotoAndStop("fallL");
}
_x = _x - nSpeed;
} else if (bFacingRight) {
if (bGrounded) {
nGravity = -12;
bGrounded = false;
}
if (nGravity < 0) {
gotoAndStop("jumpR");
}
if (nGravity > 0) {
gotoAndStop("fallR");
}
_x = _x + nSpeed;
}
}
}
}
}
Symbol 4386 MovieClip [__Packages.StandardSmallSlime] Frame 0
class StandardSmallSlime extends EnemySmallSlime
{
var nSpeed, aggressionValue, rethinkValue, nStopFor, sState, nCurrentLane;
function StandardSmallSlime (startinglane) {
super();
nSpeed = 2;
aggressionValue = 30;
rethinkValue = 150;
nStopFor = 30;
sState = "stopped";
if (startinglane == undefined) {
nCurrentLane = 2;
} else {
nCurrentLane = startinglane;
}
}
}
Symbol 4387 MovieClip [__Packages.EnemySlime] Frame 0
class EnemySlime extends Enemy
{
var sType, bFacingRight, gotoAndStop, bFacingLeft, sState, nGravity, nStopFor, bEnteredScreen, _x, nCurrentLane, _y, attack, bGrounded, nSpeed, longScreen;
function EnemySlime () {
super();
sType = "slime";
}
function hit(playerWeap, attackState, damage, cut1, cut2) {
if (damage == undefined) {
damage = 10;
}
if (playerWeap == 4) {
if (bFacingRight) {
gotoAndStop("idleR");
gotoAndStop("explodeR");
}
if (bFacingLeft) {
gotoAndStop("idleL");
gotoAndStop("explodeL");
}
sState = "dead";
return(1);
}
if (((playerWeap == 1) && (!cut1)) || ((playerWeap == 3) && (!cut2))) {
if (bFacingRight && (sState != "blocking")) {
gotoAndStop("idleR");
gotoAndStop("blockR");
nGravity = 8;
}
if (bFacingLeft && (sState != "blocking")) {
gotoAndStop("idleL");
gotoAndStop("blockL");
nGravity = 8;
}
sState = "blocking";
nStopFor = 50;
return(2);
}
if (bFacingRight) {
gotoAndStop("cutR");
}
if (bFacingLeft) {
gotoAndStop("cutL");
}
sState = "dead";
return(0);
}
function Move(playerX, playerY, playerLane) {
if ((!bEnteredScreen) && (sState != "dead")) {
sState = "moving";
}
if (((((((_x > (playerX - 40)) && (_x < (playerX + 40))) && (playerLane == nCurrentLane)) && (_y < (playerY + 10))) && (sState != "dead")) && (sState != "blocking")) && (sState != "stopped")) {
var _local3 = false;
if ((Math.floor(Math.random() * 100) + 1) < 10) {
if (playerX < (_x - 5)) {
bFacingRight = false;
bFacingLeft = true;
_local3 = true;
} else if (playerX > (_x + 5)) {
bFacingRight = true;
bFacingLeft = false;
_local3 = true;
}
}
if (bFacingRight == true) {
gotoAndStop("attackR");
}
if (bFacingLeft == true) {
gotoAndStop("attackL");
}
if ((playerX < (_x - 5)) && (bFacingLeft)) {
if ((attack._currentframe == 20) && (!_local3)) {
return(true);
}
return(false);
}
if ((playerX > (_x + 5)) && (bFacingRight)) {
if ((attack._currentframe == 20) && (!_local3)) {
return(true);
}
return(false);
}
return(false);
}
if (((((_x > (playerX - 40)) && (_x < (playerX + 40))) && (playerLane == nCurrentLane)) && (_y < (playerY + 10))) && (sState == "stopped")) {
sState = "moving";
} else {
if (sState == "stopped") {
if (bFacingRight == true) {
gotoAndStop("idleR");
}
if (bFacingLeft == true) {
gotoAndStop("idleL");
}
return(false);
}
if (sState == "moving") {
if ((playerX < (_x - 5)) && (playerY > 454)) {
bFacingRight = false;
bFacingLeft = true;
} else if ((playerX > (_x + 5)) && (playerY > 454)) {
bFacingRight = true;
bFacingLeft = false;
}
if (bFacingLeft) {
if (bGrounded) {
nGravity = -12;
bGrounded = false;
}
if (nGravity < 0) {
gotoAndStop("jumpL");
}
if (nGravity > 0) {
gotoAndStop("fallL");
}
_x = _x - nSpeed;
} else if (bFacingRight) {
if (bGrounded) {
nGravity = -12;
bGrounded = false;
}
if (nGravity < 0) {
gotoAndStop("jumpR");
}
if (nGravity > 0) {
gotoAndStop("fallR");
}
_x = _x + nSpeed;
}
if (bEnteredScreen) {
if (_x > 640) {
_x = (640 - Math.floor(Math.random() * 16)) + 1;
sState = "wander";
bFacingRight = false;
bFacingLeft = true;
} else if ((_x < 0) && (!longScreen)) {
_x = (0 + Math.floor(Math.random() * 16)) + 1;
sState = "wander";
bFacingRight = true;
bFacingLeft = false;
} else if ((_x < -200) && (longScreen)) {
_x = (-200 + Math.floor(Math.random() * 16)) + 1;
sState = "wander";
bFacingRight = true;
bFacingLeft = false;
}
}
if ((Math.floor(Math.random() * 100) + 1) < 10) {
if ((_x > (playerX - 40)) && (_x < (playerX + 40))) {
if (playerLane != nCurrentLane) {
nCurrentLane = playerLane;
}
}
}
return(false);
}
if (sState == "wander") {
if (bFacingLeft) {
if (bGrounded) {
nGravity = -12;
bGrounded = false;
}
if (nGravity < 0) {
gotoAndStop("jumpL");
}
if (nGravity > 0) {
gotoAndStop("fallL");
}
_x = _x - nSpeed;
} else if (bFacingRight) {
if (bGrounded) {
nGravity = -12;
bGrounded = false;
}
if (nGravity < 0) {
gotoAndStop("jumpR");
}
if (nGravity > 0) {
gotoAndStop("fallR");
}
_x = _x + nSpeed;
}
if (bEnteredScreen) {
if (_x > 640) {
_x = (640 - Math.floor(Math.random() * 16)) + 1;
sState = "wander";
bFacingRight = false;
bFacingLeft = true;
} else if ((_x < 0) && (!longScreen)) {
_x = (0 + Math.floor(Math.random() * 16)) + 1;
sState = "wander";
bFacingRight = true;
bFacingLeft = false;
} else if ((_x < -200) && (longScreen)) {
_x = (-200 + Math.floor(Math.random() * 16)) + 1;
sState = "wander";
bFacingRight = true;
bFacingLeft = false;
}
}
if ((Math.floor(Math.random() * 5000) + 1) < 5) {
nCurrentLane = Math.floor(Math.random() * 3) + 1;
}
} else if (sState == "avoid") {
if (playerX < (_x - 5)) {
bFacingRight = true;
bFacingLeft = false;
} else if (playerX > (_x + 5)) {
bFacingRight = false;
bFacingLeft = true;
}
if (bFacingLeft) {
if (bGrounded) {
nGravity = -12;
bGrounded = false;
}
if (nGravity < 0) {
gotoAndStop("jumpL");
}
if (nGravity > 0) {
gotoAndStop("fallL");
}
_x = _x - nSpeed;
} else if (bFacingRight) {
if (bGrounded) {
nGravity = -12;
bGrounded = false;
}
if (nGravity < 0) {
gotoAndStop("jumpR");
}
if (nGravity > 0) {
gotoAndStop("fallR");
}
_x = _x + nSpeed;
}
}
}
}
}
Symbol 4388 MovieClip [__Packages.StandardSlime] Frame 0
class StandardSlime extends EnemySlime
{
var nSpeed, aggressionValue, rethinkValue, nCurrentLane;
function StandardSlime (startinglane) {
super();
nSpeed = 3;
aggressionValue = 70;
rethinkValue = 150;
if (startinglane == undefined) {
nCurrentLane = 2;
} else {
nCurrentLane = startinglane;
}
}
}
Symbol 4389 MovieClip [__Packages.PaleZombie] Frame 0
class PaleZombie extends EnemyZombie
{
var nSpeed, aggressionValue, rethinkValue, nCurrentLane;
function PaleZombie (startinglane) {
super();
nSpeed = 2;
aggressionValue = 40;
rethinkValue = 120;
if (startinglane == undefined) {
nCurrentLane = 3;
} else {
nCurrentLane = startinglane;
}
}
}
Symbol 4390 MovieClip [__Packages.GreenZombie] Frame 0
class GreenZombie extends EnemyZombie
{
var nSpeed, aggressionValue, rethinkValue, nCurrentLane;
function GreenZombie (startinglane) {
super();
nSpeed = 3;
aggressionValue = 60;
rethinkValue = 150;
if (startinglane == undefined) {
nCurrentLane = 1;
} else {
nCurrentLane = startinglane;
}
}
}
Symbol 4391 MovieClip [__Packages.EnemyFatZombie] Frame 0
class EnemyFatZombie extends Enemy
{
var sType, bFacingRight, gotoAndStop, bFacingLeft, sState, nHitCount, nStunCount, bEnteredScreen, _x, nCurrentLane, _y, attack, nSpeed, _currentframe;
function EnemyFatZombie (startinglane) {
super();
sType = "fat zombie";
}
function hit(playerWeap, attackState, damage, batOne) {
if (damage == undefined) {
damage = 10;
}
if (batOne && (playerWeap == 1)) {
damage = 30;
}
if (playerWeap == 4) {
if (bFacingRight) {
gotoAndStop("idleR");
gotoAndStop("explodeR");
}
if (bFacingLeft) {
gotoAndStop("idleL");
gotoAndStop("explodeL");
}
sState = "dead";
return(1);
}
if ((nHitCount < 30) && (damage < 30)) {
nHitCount = nHitCount + damage;
if (bFacingRight) {
gotoAndStop("idleR");
gotoAndStop("hitR");
}
if (bFacingLeft) {
gotoAndStop("idleL");
gotoAndStop("hitL");
}
sState = "stopped";
nStunCount = 30;
return(2);
}
nHitCount = 0;
var _local2;
if (Math.round(Math.random() * 100) > 70) {
_local2 = true;
} else {
_local2 = false;
}
if (_local2 && (playerWeap != 3)) {
if (bFacingRight) {
gotoAndStop("critR");
}
if (bFacingLeft) {
gotoAndStop("critL");
}
sState = "dead";
return(1);
}
if ((playerWeap == 1) || (playerWeap == 2)) {
if (attackState == 0) {
if (bFacingRight) {
gotoAndStop("deathhighR");
sState = "dead";
}
if (bFacingLeft) {
gotoAndStop("deathhighL");
sState = "dead";
}
}
if (attackState == 1) {
if (bFacingRight) {
gotoAndStop("deathmidR");
sState = "dead";
}
if (bFacingLeft) {
gotoAndStop("deathmidL");
sState = "dead";
}
}
return(0);
}
_local2 = false;
if (bFacingRight) {
gotoAndStop("hitR");
}
if (bFacingLeft) {
gotoAndStop("hitL");
}
nHitCount = nHitCount + 10;
return(2);
}
function Move(playerX, playerY, playerLane) {
if ((!bEnteredScreen) && (sState != "dead")) {
sState = "moving";
}
if (nStunCount > 0) {
nStunCount--;
return(false);
}
if (((((_x > (playerX - 50)) && (_x < (playerX + 50))) && (playerLane == nCurrentLane)) && (_y < (playerY + 10))) && (sState != "dead")) {
var _local3 = false;
if ((Math.floor(Math.random() * 100) + 1) < 10) {
if (playerX < (_x - 5)) {
bFacingRight = false;
bFacingLeft = true;
_local3 = true;
} else if (playerX > (_x + 5)) {
bFacingRight = true;
bFacingLeft = false;
_local3 = true;
}
}
if (bFacingRight == true) {
gotoAndStop("biteR");
}
if (bFacingLeft == true) {
gotoAndStop("biteL");
}
if ((playerX < (_x - 5)) && (bFacingLeft)) {
if ((attack._currentframe == 10) && (!_local3)) {
return(true);
}
return(false);
}
if ((playerX > (_x + 5)) && (bFacingRight)) {
if ((attack._currentframe == 10) && (!_local3)) {
return(true);
}
return(false);
}
return(false);
}
if (sState == "stopped") {
if (bFacingRight == true) {
gotoAndStop("idleR");
}
if (bFacingLeft == true) {
gotoAndStop("idleL");
}
return(false);
}
if (sState == "moving") {
if ((playerX < (_x - 5)) && (playerY > 454)) {
bFacingRight = false;
bFacingLeft = true;
} else if ((playerX > (_x + 5)) && (playerY > 454)) {
bFacingRight = true;
bFacingLeft = false;
}
if (nHitCount > 0) {
nHitCount--;
}
if (bFacingLeft) {
gotoAndStop("runL");
_x = _x - nSpeed;
} else if (bFacingRight) {
gotoAndStop("runR");
_x = _x + nSpeed;
}
if (bEnteredScreen) {
if (_x > 640) {
_x = (640 - Math.floor(Math.random() * 16)) + 1;
sState = "wander";
bFacingRight = false;
bFacingLeft = true;
} else if (_x < 0) {
_x = (0 + Math.floor(Math.random() * 16)) + 1;
sState = "wander";
bFacingRight = true;
bFacingLeft = false;
}
}
if ((Math.floor(Math.random() * 100) + 1) < 10) {
if ((_x > (playerX - 40)) && (_x < (playerX + 40))) {
if (playerLane != nCurrentLane) {
nCurrentLane = playerLane;
}
}
}
return(false);
}
if (sState == "wander") {
if (bFacingLeft) {
gotoAndStop("runL");
_x = _x - nSpeed;
} else if (bFacingRight) {
gotoAndStop("runR");
_x = _x + nSpeed;
}
if (bEnteredScreen) {
if (_x > 640) {
_x = (640 - Math.floor(Math.random() * 16)) + 1;
sState = "wander";
bFacingRight = false;
bFacingLeft = true;
} else if (_x < 0) {
_x = (0 + Math.floor(Math.random() * 16)) + 1;
sState = "wander";
bFacingRight = true;
bFacingLeft = false;
}
}
if ((Math.floor(Math.random() * 5000) + 1) < 5) {
nCurrentLane = Math.floor(Math.random() * 3) + 1;
}
} else if (sState == "avoid") {
if (playerX < (_x - 5)) {
bFacingRight = true;
bFacingLeft = false;
} else if (playerX > (_x + 5)) {
bFacingRight = false;
bFacingLeft = true;
}
if (bFacingLeft) {
gotoAndStop("runL");
_x = _x - nSpeed;
} else if (bFacingRight) {
gotoAndStop("runR");
_x = _x + nSpeed;
}
if (bEnteredScreen) {
if (_x > 640) {
_x = (640 - Math.floor(Math.random() * 16)) + 1;
sState = "wander";
bFacingRight = false;
bFacingLeft = true;
} else if (_x < 0) {
_x = (0 + Math.floor(Math.random() * 16)) + 1;
sState = "wander";
bFacingRight = true;
bFacingLeft = false;
}
}
} else if (sState == "dead") {
if (_currentframe == 3) {
gotoAndStop("deathmidL");
trace("fixed");
} else if (_currentframe == 4) {
gotoAndStop("deathmidR");
trace("fixed");
}
}
}
}
Symbol 4392 MovieClip [__Packages.StandardFatZombie] Frame 0
class StandardFatZombie extends EnemyFatZombie
{
var nSpeed, aggressionValue, rethinkValue, nCurrentLane;
function StandardFatZombie (startinglane) {
super();
nSpeed = 2;
aggressionValue = 20;
rethinkValue = 150;
if (startinglane == undefined) {
nCurrentLane = 1;
} else {
nCurrentLane = startinglane;
}
}
}
Symbol 4393 MovieClip [__Packages.BlueZombie] Frame 0
class BlueZombie extends EnemyZombie
{
var nSpeed, aggressionValue, rethinkValue, nCurrentLane;
function BlueZombie (startinglane) {
super();
nSpeed = 5;
aggressionValue = 70;
rethinkValue = 90;
if (startinglane == undefined) {
nCurrentLane = 2;
} else {
nCurrentLane = startinglane;
}
}
}
Symbol 4394 MovieClip [__Packages.BatVamp] Frame 0
class BatVamp extends EnemyVamp
{
var _x, bFacingLeft, bFacingRight, nSpeed, aggressionValue, rethinkValue, nCurrentLane, sForm;
function BatVamp (startinglane) {
super();
if (_x < 320) {
bFacingLeft = false;
bFacingRight = true;
} else if (_x >= 320) {
bFacingLeft = true;
bFacingRight = false;
}
nSpeed = 3;
aggressionValue = 70;
rethinkValue = 150;
if (startinglane == undefined) {
nCurrentLane = 1;
} else {
nCurrentLane = startinglane;
}
sForm = "bat";
}
}
Symbol 4395 MovieClip [__Packages.shop] Frame 0
class shop extends MovieClip
{
var itemObject, upgradesObject, perksObject;
function shop () {
super();
itemsList[0] = (itemObject = new Object({itemName:"HEALTH PACK", itemPrice:60, itemDesc:"Portable health pack, recover health by using this item in game."}));
itemsList[1] = (itemObject = new Object({itemName:"MANA POTION", itemPrice:60, itemDesc:"Portable mana potion, recover mana by using this item in game."}));
itemsList[2] = (itemObject = new Object({itemName:"FULL RESTORE", itemPrice:40, itemDesc:"Recover all health and mana here and now."}));
itemsList[3] = (itemObject = new Object({itemName:"CROSS", itemPrice:80, itemDesc:"Destroys all nearby enemies but has no effect on bosses."}));
itemsList[4] = (itemObject = new Object({itemName:"CROSSBOW x 5", itemPrice:80, itemDesc:"Fires a wooden bolt across the screen"}));
itemsList[5] = (itemObject = new Object({itemName:"GRENADE x 3", itemPrice:80, itemDesc:"Destroys enemies caught in the explosion"}));
itemsList[6] = (itemObject = new Object({itemName:"LIFE", itemPrice:100, itemDesc:"Grants an additional life, up to a maximum of 9"}));
upgradesList[0] = (upgradesObject = new Object({upName:"bDam+", upPrice:10, upDesc:"Increase damage done by the bat. Price: "}));
upgradesList[1] = (upgradesObject = new Object({upName:"bSpe+", upPrice:20, upDesc:"Increase attack speed of the bat. Price: "}));
upgradesList[2] = (upgradesObject = new Object({upName:"bCutSlimes", upPrice:50, upDesc:"Cut slimes in half with the bat. Price: "}));
upgradesList[3] = (upgradesObject = new Object({upName:"bDam++", upPrice:80, upDesc:"Increase damage done by the bat again. Price: "}));
upgradesList[4] = (upgradesObject = new Object({upName:"bSpe++", upPrice:80, upDesc:"Increase attack speed of the bat again. Price: "}));
upgradesList[5] = (upgradesObject = new Object({upName:"bOneShotFat", upPrice:100, upDesc:"Kill fat zombies with 1 hit using the bat. Price: "}));
upgradesList[6] = (upgradesObject = new Object({upName:"kDam+", upPrice:10, upDesc:"Increase damage done by the katana. Price: "}));
upgradesList[7] = (upgradesObject = new Object({upName:"kSpe+", upPrice:20, upDesc:"Increase attack speed of the katana. Price: "}));
upgradesList[8] = (upgradesObject = new Object({upName:"kDam++", upPrice:80, upDesc:"Increase damage done by the katana again. Price: "}));
upgradesList[9] = (upgradesObject = new Object({upName:"kSpe++", upPrice:80, upDesc:"Increase attack speed of the katana again. Price: "}));
upgradesList[10] = (upgradesObject = new Object({upName:"kOneShotVamp", upPrice:150, upDesc:"Kill vamps with 1 hit using the katana. Price: "}));
upgradesList[11] = (upgradesObject = new Object({upName:"sDam+", upPrice:20, upDesc:"Increase damage done by the stake. Price: "}));
upgradesList[12] = (upgradesObject = new Object({upName:"sSpe+", upPrice:20, upDesc:"Increase attack speed of the stake. Price: "}));
upgradesList[13] = (upgradesObject = new Object({upName:"sCutSlimes", upPrice:50, upDesc:"Cut slimes in half with the stake. Price: "}));
upgradesList[14] = (upgradesObject = new Object({upName:"sDam++", upPrice:50, upDesc:"Increase damage done by the stake again. Price: "}));
upgradesList[15] = (upgradesObject = new Object({upName:"sOneShotVamp", upPrice:100, upDesc:"Kill vamps with 1 hit using the stake. Price: "}));
upgradesList[16] = (upgradesObject = new Object({upName:"sSpe++", upPrice:50, upDesc:"Increase attack speed of the stake again. Price: "}));
upgradesList[17] = (upgradesObject = new Object({upName:"sOneShotWere", upPrice:150, upDesc:"Kill werewolves with 1 hit using the stake. Price: "}));
upgradesList[18] = (upgradesObject = new Object({upName:"Dark Bolt", upPrice:80, upDesc:"Magic level 2, uses 2 mana bars. Fires a projectile in one direction, destroying all enemies it touches. Price: "}));
upgradesList[19] = (upgradesObject = new Object({upName:"Puppy Barrage", upPrice:120, upDesc:"Magic level 3, uses 3 mana bars. Summons a number of puppies that drop from the sky, placing live grenades all over the field. Price: "}));
upgradesList[20] = (upgradesObject = new Object({upName:"Buddy", upPrice:150, upDesc:"Magic level 4, uses 4 mana bars. Summons Buddy, your faithful canine mount. Desummoned after taking 3 hits. Price: "}));
upgradesList[21] = (upgradesObject = new Object({upName:"Kenshiro", upPrice:200, upDesc:"Magic level 5, uses 5 mana bars. Summons the legendary master of Hokuto Shinken 30 seconds. Draws in nearby enemies. Price: "}));
upgradesList[22] = (upgradesObject = new Object({upName:"Super Fireball", upPrice:20, upDesc:"Improves magic level 1. The fireball will no longer dissipate after hitting one enemy. Price: "}));
upgradesList[23] = (upgradesObject = new Object({upName:"Double Darkbolt", upPrice:100, upDesc:"Improves magic level 2. 2 projectiles will now fire from the player, moving in opposite directions. Price: "}));
upgradesList[24] = (upgradesObject = new Object({upName:"Super Puppy Barrage", upPrice:150, upDesc:"Improves magic level 3. Summons many more puppies for a longer period of time. Price: "}));
upgradesList[25] = (upgradesObject = new Object({upName:"Nega Buddy", upPrice:180, upDesc:"Improves magic level 4. Buddy's attack becomes a projectile attack. Buddy can now take 5 hits. Price: "}));
upgradesList[26] = (upgradesObject = new Object({upName:"You are already dead", upPrice:220, upDesc:"Improves magic level 5. Increases the time the legendary master will stay on the field to 60 seconds. Price: "}));
perksList[0] = (perksObject = new Object({perkName:"Silver Bullet", perkPrice:100, perkDesc:"Adds a silver tip to crossbow bolts, which can kill werewolves with a single hit."}));
perksList[1] = (perksObject = new Object({perkName:"Incendiary Arrow", perkPrice:400, perkDesc:"Crossbow bolts explode on contact, instantly killing anything they hit."}));
perksList[2] = (perksObject = new Object({perkName:"Pyrotechnic", perkPrice:150, perkDesc:"Increases the explosion radius of grenades."}));
perksList[3] = (perksObject = new Object({perkName:"I Kick Ass for the Lord", perkPrice:100, perkDesc:"Increases the area of effect of crosses to the entire screen."}));
perksList[4] = (perksObject = new Object({perkName:"Fast Healer", perkPrice:120, perkDesc:"Increases the health gained from health packs by 2 bars."}));
perksList[5] = (perksObject = new Object({perkName:"Quick Metabolism", perkPrice:120, perkDesc:"Increases the mana gained from mana potions by 2 bars."}));
perksList[6] = (perksObject = new Object({perkName:"Beef Up", perkPrice:200, perkDesc:"Increases max health by two bars."}));
perksList[7] = (perksObject = new Object({perkName:"Enlightened Mind", perkPrice:200, perkDesc:"Increases max mana by two bars."}));
perksList[8] = (perksObject = new Object({perkName:"Blood Lust", perkPrice:100, perkDesc:"Increases gore x2, i.e. doubles gib output."}));
perksList[9] = (perksObject = new Object({perkName:"You've Got Red On You", perkPrice:250, perkDesc:"Increases gore x3, requires Blood Lust."}));
perksList[10] = (perksObject = new Object({perkName:"Party's Over", perkPrice:400, perkDesc:"Increases gore x4, requires You've Got Red On You"}));
perksList[11] = (perksObject = new Object({perkName:"Sure Shot", perkPrice:100, perkDesc:"Crossbow bolts will go straight through enemies without stopping."}));
}
var itemsList = new Array();
var upgradesList = new Array();
var perksList = new Array();
}
Symbol 4396 MovieClip [__Packages.BossEd] Frame 0
class BossEd extends Enemy
{
var sType, bFacingRight, bFacingLeft, nCurrentLane, sState, attackTimer, attackNum, throwtype, hurtTimer, proneTimer, attackSpeed, gotoAndStop, throwone, throwtwo, throwthree, baseball, _x, poof;
function BossEd () {
super();
sType = "boss";
bFacingRight = false;
bFacingLeft = true;
nCurrentLane = 2;
sState = "waiting";
attackTimer = 0;
attackNum = 0;
throwtype = 0;
hurtTimer = 0;
proneTimer = 0;
attackSpeed = 90;
gotoAndStop("idleR");
}
function attack(playerX, playerY, playerLane, damageLev) {
if (damageLev > 30) {
attackSpeed = 60;
} else if (damageLev > 50) {
attackSpeed = 30;
} else if (damageLev > 79) {
attackSpeed = 0;
}
if (sState == "prone") {
if (proneTimer > 0) {
proneTimer--;
}
if (proneTimer == 0) {
sState = "waiting";
return(20);
}
} else if (sState == "hurt") {
if (bFacingRight) {
gotoAndStop("hurtL");
} else if (bFacingLeft) {
gotoAndStop("hurtR");
}
if (hurtTimer > 0) {
hurtTimer--;
} else {
sState = "waiting";
}
} else {
if ((((throwone._currentframe == 57) || (throwtwo._currentframe == 57)) || (throwthree._currentframe == 57)) || (baseball._currentframe == 16)) {
attackNum++;
return(throwtype);
}
if ((((throwone._currentframe == 66) || (throwtwo._currentframe == 66)) || (throwthree._currentframe == 66)) || (baseball._currentframe == 28)) {
if (bFacingRight) {
gotoAndStop("idleL");
} else if (bFacingLeft) {
gotoAndStop("idleR");
}
sState = "waiting";
}
if (attackTimer > 0) {
attackTimer--;
}
if (attackNum >= 10) {
sState = "hurt";
attackNum = 0;
hurtTimer = 300;
}
if ((playerLane != nCurrentLane) && (sState != "dead")) {
if (bFacingRight) {
gotoAndStop("poofL");
sState = "teleport";
} else if (bFacingLeft) {
gotoAndStop("poofR");
sState = "teleport";
}
}
if (((_x > (playerX - 100)) && (_x < (playerX + 100))) && (sState != "dead")) {
if (bFacingRight) {
gotoAndStop("poofL");
sState = "teleport";
} else if (bFacingLeft) {
gotoAndStop("poofR");
sState = "teleport";
}
} else if ((sState == "waiting") && (attackTimer == 0)) {
sState = "attacking";
attackTimer = attackSpeed;
var _local2 = Math.floor(Math.random() * 101) + 0;
if (_local2 < 60) {
if (bFacingRight) {
gotoAndStop("baseballL");
} else if (bFacingLeft) {
gotoAndStop("baseballR");
}
throwtype = 1;
} else if (_local2 < 75) {
if (bFacingRight) {
gotoAndStop("throw1L");
} else if (bFacingLeft) {
gotoAndStop("throw1R");
}
throwtype = 2;
} else if (_local2 < 85) {
if (bFacingRight) {
gotoAndStop("throw2L");
} else if (bFacingLeft) {
gotoAndStop("throw2R");
}
throwtype = 3;
} else if (_local2 < 100) {
if (bFacingRight) {
gotoAndStop("throw3L");
} else if (bFacingLeft) {
gotoAndStop("throw3R");
}
throwtype = 4;
}
}
if ((sState == "teleport") && (poof._currentframe >= 19)) {
if (_x > 320) {
_x = 60;
bFacingRight = true;
bFacingLeft = false;
gotoAndStop("idleR");
} else if (_x <= 320) {
_x = 620;
bFacingRight = false;
bFacingLeft = true;
gotoAndStop("idleL");
}
sState = "waiting";
attackTimer = 0;
nCurrentLane = playerLane;
}
}
}
}
Symbol 4397 MovieClip [__Packages.BossFid] Frame 0
class BossFid extends Enemy
{
var sType, bFacingRight, bFacingLeft, nCurrentLane, sState, attackTimer, throwtype, hurtTimer, proneTimer, attackSpeed, attackNum, wait, _y, gotoAndStop, _x, shoot;
function BossFid () {
super();
sType = "boss";
bFacingRight = false;
bFacingLeft = true;
nCurrentLane = 2;
sState = "waiting";
attackTimer = 0;
throwtype = 0;
hurtTimer = 0;
proneTimer = 0;
attackSpeed = 60;
attackNum = 0;
wait = 0;
_y = 416;
}
function attack(playerX, playerY, playerLane) {
if (attackNum > 10) {
proneTimer = 150;
attackNum = 0;
}
if (wait > 0) {
wait--;
} else if (sState == "dead") {
if (!bFacingRight) {
gotoAndStop("deadR");
} else {
gotoAndStop("deadL");
}
} else if (proneTimer > 0) {
if (_x > 580) {
gotoAndStop("moveL");
_x = _x - 4;
} else if (_x < -40) {
gotoAndStop("moveR");
_x = _x + 4;
} else {
proneTimer--;
if (bFacingRight) {
gotoAndStop("damageR");
} else if (bFacingLeft) {
gotoAndStop("damageL");
}
_root.startDistortion = true;
_root.bDoOnce = true;
_root.bStopInput = true;
}
} else {
if (nCurrentLane == 1) {
_y = 360;
} else if (nCurrentLane == 2) {
_y = 416;
} else if (nCurrentLane == 3) {
_y = 462;
}
if (shoot._currentframe == 9) {
if (((Math.floor(Math.random() * 101) + 0) < 100) && (bFacingLeft)) {
return(3);
}
return(1);
}
if (shoot._currentframe == 39) {
attackNum++;
if (bFacingRight) {
gotoAndStop("idleR");
} else if (bFacingLeft) {
gotoAndStop("idleL");
}
sState = "waiting";
}
if (sState == "attacking") {
if (_x > 580) {
gotoAndStop("moveL");
_x = _x - 4;
} else if (_x < -40) {
gotoAndStop("moveR");
_x = _x + 4;
} else if (bFacingRight) {
gotoAndStop("fireR");
} else if (bFacingLeft) {
gotoAndStop("fireL");
}
} else {
if (sState == "charging") {
if (_x > 1000) {
nCurrentLane = playerLane;
bFacingRight = false;
bFacingLeft = true;
gotoAndStop("moveL");
sState = "waiting";
attackNum++;
}
if (_x < -600) {
nCurrentLane = playerLane;
bFacingRight = true;
bFacingLeft = false;
gotoAndStop("moveR");
sState = "waiting";
attackNum++;
}
if (bFacingRight) {
gotoAndStop("moveR");
_x = _x + 15;
} else if (bFacingLeft) {
gotoAndStop("moveL");
_x = _x - 15;
}
return(2);
}
if ((sState == "waiting") && (attackTimer == 0)) {
sState = "attacking";
attackTimer = 0;
var _local3 = Math.floor(Math.random() * 101) + 0;
if (_local3 < 60) {
sState = "charging";
if (bFacingRight) {
gotoAndStop("moveR");
} else if (bFacingLeft) {
gotoAndStop("moveL");
}
}
}
}
}
}
}
Instance of Symbol 2768 MovieClip in Symbol 3321 MovieClip Frame 118
on (release) {
getURL ("http://www.nx8.com/?utm_source=zword&utm_medium=zword&utm_campaign=zword", "_blank");
}
Symbol 3321 MovieClip Frame 372
_root.buttons.gotoAndStop(2);
Symbol 3321 MovieClip Frame 3345
_root.buttons.gotoAndStop(1);
Instance of Symbol 3334 MovieClip "hellf" in Symbol 3335 MovieClip Frame 1
on (release) {
getURL ("http://www.hellfang.co.uk", "blank");
}
Symbol 3336 MovieClip Frame 9
stop();
Symbol 3337 MovieClip Frame 1
stop();
Instance of Symbol 3334 MovieClip "hellf" in Symbol 3337 MovieClip Frame 1
on (release) {
getURL ("http://www.hellfang.co.uk", "blank");
}
Symbol 3337 MovieClip Frame 2
stop();
Symbol 3344 MovieClip Frame 1
stop();
Symbol 3344 MovieClip Frame 2
stop();
Symbol 3345 MovieClip Frame 1
stop();
Symbol 3345 MovieClip Frame 2
stop();
var index = 0;
var counter = 0;
this.onEnterFrame = function () {
if (counter > 0) {
counter--;
}
if ((((Key.isDown(38) && (counter == 0)) && (_root.camera.achmenu._currentframe == 1)) && (_root.camera.savegames._currentframe == 1)) && (_root.camera.controls._currentframe == 1)) {
counter = 6;
index--;
if (index == -1) {
index = 4;
}
if (index == 0) {
cursor.gotoAndStop(1);
cursor._y = 19;
banner.gotoAndStop(1);
spons.gotoAndStop(1);
}
if (index == 1) {
cursor.gotoAndStop(1);
cursor._y = 71;
banner.gotoAndStop(1);
spons.gotoAndStop(1);
}
if (index == 2) {
cursor.gotoAndStop(1);
cursor._y = 137;
banner.gotoAndStop(1);
spons.gotoAndStop(1);
}
if (index == 3) {
cursor.gotoAndStop(2);
banner.gotoAndStop(2);
spons.gotoAndStop(1);
}
if (index == 4) {
cursor.gotoAndStop(2);
spons.gotoAndStop(2);
banner.gotoAndStop(1);
}
}
if ((((Key.isDown(40) && (counter == 0)) && (_root.camera.achmenu._currentframe == 1)) && (_root.camera.savegames._currentframe == 1)) && (_root.camera.controls._currentframe == 1)) {
counter = 6;
index++;
if (index == 5) {
index = 0;
}
if (index == 0) {
cursor.gotoAndStop(1);
cursor._y = 19;
banner.gotoAndStop(1);
spons.gotoAndStop(1);
}
if (index == 1) {
cursor.gotoAndStop(1);
cursor._y = 71;
banner.gotoAndStop(1);
spons.gotoAndStop(1);
}
if (index == 2) {
cursor.gotoAndStop(1);
cursor._y = 137;
banner.gotoAndStop(1);
spons.gotoAndStop(1);
}
if (index == 3) {
cursor.gotoAndStop(2);
banner.gotoAndStop(2);
spons.gotoAndStop(1);
}
if (index == 4) {
cursor.gotoAndStop(2);
spons.gotoAndStop(2);
banner.gotoAndStop(1);
}
}
if (((Key.isDown(68) && (counter == 0)) && (_root.camera.savegames._currentframe == 1)) && (_root.camera.credits._currentframe == 1)) {
trace("68 pressed on main menu");
counter = 6;
_root.camera.savegames.counter = 6;
if (index == 0) {
_root.camera.savegames.gotoAndStop(2);
}
if (index == 1) {
_root.camera.controls.gotoAndStop(2);
}
if (index == 2) {
_root.camera.credits.gotoAndStop(2);
}
if (index == 3) {
getURL ("http://www.hellfang.co.uk", "blank");
}
if (index == 4) {
getURL ("http://www.nx8.com/?utm_source=zword&utm_medium=zword&utm_campaign=zword", "_blank");
}
}
};
butt1.onRelease = function () {
if ((counter == 0) && (_root.camera.credits._currentframe == 1)) {
_root.camera.savegames.gotoAndStop(2);
}
counter = 6;
};
butt1.onRollOver = function () {
if ((((_root.camera.achmenu._currentframe == 1) && (_root.camera.savegames._currentframe == 1)) && (_root.camera.controls._currentframe == 1)) && (_root.camera.credits._currentframe == 1)) {
index = 0;
cursor._y = 19;
}
};
butt2.onRelease = function () {
if ((counter == 0) && (_root.camera.credits._currentframe == 1)) {
_root.camera.controls.gotoAndStop(2);
}
counter = 6;
};
butt2.onRollOver = function () {
if ((((_root.camera.achmenu._currentframe == 1) && (_root.camera.savegames._currentframe == 1)) && (_root.camera.controls._currentframe == 1)) && (_root.camera.credits._currentframe == 1)) {
index = 1;
cursor._y = 71;
}
};
butt3.onRollOver = function () {
if ((((_root.camera.achmenu._currentframe == 1) && (_root.camera.savegames._currentframe == 1)) && (_root.camera.controls._currentframe == 1)) && (_root.camera.credits._currentframe == 1)) {
index = 2;
cursor._y = 137;
}
};
butt3.onRelease = function () {
if ((counter == 0) && (_root.camera.credits._currentframe == 1)) {
_root.camera.credits.gotoAndStop(2);
}
counter = 6;
};
spons.onRollOver = function () {
if ((((_root.camera.achmenu._currentframe == 1) && (_root.camera.savegames._currentframe == 1)) && (_root.camera.controls._currentframe == 1)) && (_root.camera.credits._currentframe == 1)) {
index = 6;
cursor.gotoAndStop(2);
spons.gotoAndStop(2);
}
};
spons.onRollOut = function () {
cursor.gotoAndStop(1);
spons.gotoAndStop(1);
};
spons.onRelease = function () {
if ((counter == 0) && (_root.camera.credits._currentframe == 1)) {
getURL ("http://www.nx8.com/?utm_source=zword&utm_medium=zword&utm_campaign=zword", "_blank");
}
counter = 6;
trace("test");
};
banner.onRollOver = function () {
if ((((_root.camera.achmenu._currentframe == 1) && (_root.camera.savegames._currentframe == 1)) && (_root.camera.controls._currentframe == 1)) && (_root.camera.credits._currentframe == 1)) {
index = 5;
cursor.gotoAndStop(2);
banner.gotoAndStop(2);
}
};
banner.onRollOut = function () {
cursor.gotoAndStop(1);
banner.gotoAndStop(1);
};
banner.onRelease = function () {
if ((counter == 0) && (_root.camera.credits._currentframe == 1)) {
getURL ("http://www.hellfang.co.uk", "blank");
}
counter = 6;
trace("test");
};
Symbol 3363 MovieClip Frame 28
effectSound = new Sound(this);
effectSound.attachSound("ping");
effectSound.start();
Symbol 3363 MovieClip Frame 29
function createExplosion(targetX, targetY) {
var _local6 = 0;
while (_local6 < particleTotal) {
var _local5 = flash.display.BitmapData.loadBitmap("glitter.png");
var _local3 = _root.sel.select.shop.createEmptyMovieClip("main_holder", _root.sel.select.shop.getNextHighestDepth());
var _local4 = _local3.createEmptyMovieClip("internal_holder", _local3.getNextHighestDepth());
_local4._x = (-_local5.width) / 2;
_local4._y = (-_local5.height) / 2;
_local4.attachBitmap(_local5, _local4.getNextHighestDepth(), "never");
_local3._x = targetX;
_local3._y = targetY;
_local3._rotation = random(360);
_local3._alpha = random(50) + 50;
_local3.boundyLeft = targetX - particleRange;
_local3.boundyTop = targetY - particleRange;
_local3.boundyRight = targetX + particleRange;
_local3.boundyBottom = targetY + particleRange;
_local3.speedX = Math.random(particleMaxSpeed) - Math.random(particleMaxSpeed);
_local3.speedY = Math.random(particleMaxSpeed) - Math.random(particleMaxSpeed);
_local3.speedX = _local3.speedX * particleMaxSpeed;
_local3.speedY = _local3.speedY * particleMaxSpeed;
_local3.fadeSpeed = Math.random(particleFadeSpeed) * particleFadeSpeed;
numberOfParticles++;
_local3.onEnterFrame = function () {
this._alpha = this._alpha - this.fadeSpeed;
this._x = this._x + this.speedX;
this._y = this._y + this.speedY;
if (this.speedY < particleMaxSpeed) {
this.speedY = this.speedY + gravity;
}
if (((((this._alpha <= 0) || (this._x < this.boundyLeft)) || (this._x > this.boundyRight)) || (this._y < this.boundyTop)) || (this._y > this.boundyBottom)) {
this.removeMovieClip();
numberOfParticles--;
}
};
_local6++;
}
}
var particleMaxSpeed = 20;
var particleFadeSpeed = 2;
var particleTotal = 200;
var particleRange = 800;
var gravity = 0.3;
this.onEnterFrame = function () {
if (_global.shopjust) {
createExplosion(50, 50);
_global.shopjust = false;
_global.shopunlock = true;
_global.lev1just = true;
_root.targetX = -380;
}
};
Symbol 3363 MovieClip Frame 30
effectSound = new Sound(this);
effectSound.attachSound("firework");
effectSound.start();
stop();
_root.saveData();
Symbol 3364 MovieClip Frame 1
stop();
Symbol 3364 MovieClip Frame 2
stop();
Symbol 3364 MovieClip Frame 3
stop();
Symbol 3370 MovieClip Frame 29
effectSound = new Sound(this);
effectSound.attachSound("ping");
effectSound.start();
function createExplosion(targetX, targetY) {
var _local6 = 0;
while (_local6 < particleTotal) {
var _local5 = flash.display.BitmapData.loadBitmap("glitter.png");
var _local3 = _root.sel.select.one.createEmptyMovieClip("main_holder", _root.sel.select.one.getNextHighestDepth());
var _local4 = _local3.createEmptyMovieClip("internal_holder", _local3.getNextHighestDepth());
_local4._x = (-_local5.width) / 2;
_local4._y = (-_local5.height) / 2;
_local4.attachBitmap(_local5, _local4.getNextHighestDepth(), "never");
_local3._x = targetX;
_local3._y = targetY;
_local3._rotation = random(360);
_local3._alpha = random(50) + 50;
_local3.boundyLeft = targetX - particleRange;
_local3.boundyTop = targetY - particleRange;
_local3.boundyRight = targetX + particleRange;
_local3.boundyBottom = targetY + particleRange;
_local3.speedX = Math.random(particleMaxSpeed) - Math.random(particleMaxSpeed);
_local3.speedY = Math.random(particleMaxSpeed) - Math.random(particleMaxSpeed);
_local3.speedX = _local3.speedX * particleMaxSpeed;
_local3.speedY = _local3.speedY * particleMaxSpeed;
_local3.fadeSpeed = Math.random(particleFadeSpeed) * particleFadeSpeed;
numberOfParticles++;
_local3.onEnterFrame = function () {
this._alpha = this._alpha - this.fadeSpeed;
this._x = this._x + this.speedX;
this._y = this._y + this.speedY;
if (this.speedY < particleMaxSpeed) {
this.speedY = this.speedY + gravity;
}
if (((((this._alpha <= 0) || (this._x < this.boundyLeft)) || (this._x > this.boundyRight)) || (this._y < this.boundyTop)) || (this._y > this.boundyBottom)) {
this.removeMovieClip();
numberOfParticles--;
}
};
_local6++;
}
}
var particleMaxSpeed = 20;
var particleFadeSpeed = 2;
var particleTotal = 200;
var particleRange = 800;
var gravity = 0.3;
this.onEnterFrame = function () {
if (_global.lev1just) {
createExplosion(125, 50);
_global.lev1just = false;
_global.lev1unlock = true;
}
};
Symbol 3370 MovieClip Frame 31
effectSound = new Sound(this);
effectSound.attachSound("firework");
effectSound.start();
stop();
_root.saveData();
Symbol 3371 MovieClip Frame 1
stop();
Symbol 3371 MovieClip Frame 2
stop();
Symbol 3371 MovieClip Frame 3
stop();
Symbol 3377 MovieClip Frame 30
effectSound = new Sound(this);
effectSound.attachSound("ping");
effectSound.start();
function createExplosion(targetX, targetY) {
var _local6 = 0;
while (_local6 < particleTotal) {
var _local5 = flash.display.BitmapData.loadBitmap("glitter.png");
var _local3 = _root.sel.select.two.createEmptyMovieClip("main_holder", _root.sel.select.two.getNextHighestDepth());
var _local4 = _local3.createEmptyMovieClip("internal_holder", _local3.getNextHighestDepth());
_local4._x = (-_local5.width) / 2;
_local4._y = (-_local5.height) / 2;
_local4.attachBitmap(_local5, _local4.getNextHighestDepth(), "never");
_local3._x = targetX;
_local3._y = targetY;
_local3._rotation = random(360);
_local3._alpha = random(50) + 50;
_local3.boundyLeft = targetX - particleRange;
_local3.boundyTop = targetY - particleRange;
_local3.boundyRight = targetX + particleRange;
_local3.boundyBottom = targetY + particleRange;
_local3.speedX = Math.random(particleMaxSpeed) - Math.random(particleMaxSpeed);
_local3.speedY = Math.random(particleMaxSpeed) - Math.random(particleMaxSpeed);
_local3.speedX = _local3.speedX * particleMaxSpeed;
_local3.speedY = _local3.speedY * particleMaxSpeed;
_local3.fadeSpeed = Math.random(particleFadeSpeed) * particleFadeSpeed;
numberOfParticles++;
_local3.onEnterFrame = function () {
this._alpha = this._alpha - this.fadeSpeed;
this._x = this._x + this.speedX;
this._y = this._y + this.speedY;
if (this.speedY < particleMaxSpeed) {
this.speedY = this.speedY + gravity;
}
if (((((this._alpha <= 0) || (this._x < this.boundyLeft)) || (this._x > this.boundyRight)) || (this._y < this.boundyTop)) || (this._y > this.boundyBottom)) {
this.removeMovieClip();
numberOfParticles--;
}
};
_local6++;
}
}
var particleMaxSpeed = 20;
var particleFadeSpeed = 2;
var particleTotal = 200;
var particleRange = 800;
var gravity = 0.3;
this.onEnterFrame = function () {
if (_global.lev2just) {
createExplosion(125, 50);
_global.lev2just = false;
_global.lev2unlock = true;
}
};
Symbol 3377 MovieClip Frame 32
effectSound = new Sound(this);
effectSound.attachSound("firework");
effectSound.start();
stop();
_root.saveData();
Symbol 3378 MovieClip Frame 1
stop();
Symbol 3378 MovieClip Frame 2
stop();
Symbol 3378 MovieClip Frame 3
stop();
Symbol 3384 MovieClip Frame 30
effectSound = new Sound(this);
effectSound.attachSound("ping");
effectSound.start();
function createExplosion(targetX, targetY) {
var _local6 = 0;
while (_local6 < particleTotal) {
var _local5 = flash.display.BitmapData.loadBitmap("glitter.png");
var _local3 = _root.sel.select.three.createEmptyMovieClip("main_holder", _root.sel.select.three.getNextHighestDepth());
var _local4 = _local3.createEmptyMovieClip("internal_holder", _local3.getNextHighestDepth());
_local4._x = (-_local5.width) / 2;
_local4._y = (-_local5.height) / 2;
_local4.attachBitmap(_local5, _local4.getNextHighestDepth(), "never");
_local3._x = targetX;
_local3._y = targetY;
_local3._rotation = random(360);
_local3._alpha = random(50) + 50;
_local3.boundyLeft = targetX - particleRange;
_local3.boundyTop = targetY - particleRange;
_local3.boundyRight = targetX + particleRange;
_local3.boundyBottom = targetY + particleRange;
_local3.speedX = Math.random(particleMaxSpeed) - Math.random(particleMaxSpeed);
_local3.speedY = Math.random(particleMaxSpeed) - Math.random(particleMaxSpeed);
_local3.speedX = _local3.speedX * particleMaxSpeed;
_local3.speedY = _local3.speedY * particleMaxSpeed;
_local3.fadeSpeed = Math.random(particleFadeSpeed) * particleFadeSpeed;
numberOfParticles++;
_local3.onEnterFrame = function () {
this._alpha = this._alpha - this.fadeSpeed;
this._x = this._x + this.speedX;
this._y = this._y + this.speedY;
if (this.speedY < particleMaxSpeed) {
this.speedY = this.speedY + gravity;
}
if (((((this._alpha <= 0) || (this._x < this.boundyLeft)) || (this._x > this.boundyRight)) || (this._y < this.boundyTop)) || (this._y > this.boundyBottom)) {
this.removeMovieClip();
numberOfParticles--;
}
};
_local6++;
}
}
var particleMaxSpeed = 20;
var particleFadeSpeed = 2;
var particleTotal = 200;
var particleRange = 800;
var gravity = 0.3;
this.onEnterFrame = function () {
if (_global.lev3just) {
createExplosion(125, 50);
_global.lev3just = false;
_global.lev3unlock = true;
}
};
Symbol 3384 MovieClip Frame 32
effectSound = new Sound(this);
effectSound.attachSound("firework");
effectSound.start();
stop();
_root.saveData();
Symbol 3385 MovieClip Frame 1
stop();
Symbol 3385 MovieClip Frame 2
stop();
Symbol 3385 MovieClip Frame 3
stop();
Symbol 3387 MovieClip Frame 1
stop();
Symbol 3392 MovieClip Frame 37
stop();
Symbol 3434 MovieClip Frame 1
stop();
Symbol 3434 MovieClip Frame 2
stop();
Symbol 3434 MovieClip Frame 3
stop();
Symbol 3462 MovieClip Frame 24
stop();
Symbol 3465 MovieClip Frame 8
stop();
Symbol 3496 MovieClip Frame 1
stop();
effectSound = new Sound(this);
effectSound.attachSound("Swing");
effectSound.start();
Symbol 3496 MovieClip Frame 2
stop();
effectSound = new Sound(this);
effectSound.attachSound("Swing");
effectSound.start();
Symbol 3505 MovieClip Frame 7
effectSound = new Sound(this);
effectSound.attachSound("Swing");
effectSound.start();
Symbol 3505 MovieClip Frame 22
stop();
Symbol 3538 MovieClip Frame 24
stop();
Symbol 3541 MovieClip Frame 8
stop();
Symbol 3572 MovieClip Frame 1
stop();
effectSound = new Sound(this);
effectSound.attachSound("Swing");
effectSound.start();
Symbol 3572 MovieClip Frame 2
stop();
effectSound = new Sound(this);
effectSound.attachSound("Swing");
effectSound.start();
Symbol 3583 MovieClip Frame 4
effectSound = new Sound(this);
effectSound.attachSound("Swing");
effectSound.start();
Symbol 3583 MovieClip Frame 22
stop();
Symbol 3616 MovieClip Frame 24
stop();
Symbol 3619 MovieClip Frame 8
stop();
Symbol 3634 MovieClip Frame 1
effectSound = new Sound(this);
effectSound.attachSound("Swing");
effectSound.start();
Symbol 3647 MovieClip Frame 15
stop();
Symbol 3648 MovieClip Frame 1
stop();
effectSound = new Sound(this);
effectSound.attachSound("Swing");
effectSound.start();
Symbol 3648 MovieClip Frame 2
stop();
effectSound = new Sound(this);
effectSound.attachSound("Explosion25");
effectSound.start();
Symbol 3689 MovieClip Frame 1
effectSound = new Sound(this);
effectSound.attachSound("Dead");
effectSound.start();
Symbol 3689 MovieClip Frame 13
effectSound = new Sound(this);
effectSound.attachSound("ghost");
effectSound.start();
Symbol 3689 MovieClip Frame 39
stop();
Symbol 3691 MovieClip Frame 15
removeMovieClip("");
Symbol 3692 MovieClip Frame 1
fire._visible = false;
i = 0;
Symbol 3692 MovieClip Frame 2
duplicateMovieClip (fire, "fire" + i, i);
this["fire" + i]._x = Math.random() * 25;
var size = ((Math.random() * 50) + 20);
this["fire" + i]._xscale = size;
this["fire" + i]._yscale = size;
this["fire" + i]._alpha = (Math.random() * 70) + 20;
i++;
Symbol 3692 MovieClip Frame 3
gotoAndPlay (2);
Symbol 3694 MovieClip Frame 15
removeMovieClip("");
Symbol 3695 MovieClip Frame 1
fire._visible = false;
i = 0;
Symbol 3695 MovieClip Frame 2
duplicateMovieClip (fire, "fire" + i, i);
this["fire" + i]._x = Math.random() * 25;
var size = ((Math.random() * 50) + 20);
this["fire" + i]._xscale = size;
this["fire" + i]._yscale = size;
this["fire" + i]._alpha = (Math.random() * 70) + 20;
i++;
Symbol 3695 MovieClip Frame 3
gotoAndPlay (2);
Symbol 3696 MovieClip Frame 24
if ((_global.mana == 1) || (!_global.mag2)) {
stop();
}
effectSound = new Sound(this);
effectSound.attachSound("YellowMagicBlip");
effectSound.start();
Symbol 3696 MovieClip Frame 39
if ((_global.mana == 2) || (!_global.mag3)) {
stop();
}
effectSound = new Sound(this);
effectSound.attachSound("YellowMagicBlip");
effectSound.start();
Symbol 3696 MovieClip Frame 54
if ((_global.mana == 3) || (!_global.mag4)) {
stop();
}
effectSound = new Sound(this);
effectSound.attachSound("YellowMagicBlip");
effectSound.start();
Symbol 3696 MovieClip Frame 69
if ((_global.mana == 4) || (!_global.mag5)) {
stop();
}
effectSound = new Sound(this);
effectSound.attachSound("YellowMagicBlip");
effectSound.start();
Symbol 3696 MovieClip Frame 84
stop();
effectSound = new Sound(this);
effectSound.attachSound("YellowMagicBlip");
effectSound.start();
Symbol 3719 MovieClip Frame 2
stop();
Symbol 3724 MovieClip Frame 2
stop();
Symbol 3729 MovieClip Frame 2
stop();
Symbol 3804 MovieClip Frame 10
effectSound = new Sound(this);
effectSound.attachSound("Bite");
effectSound.start();
Symbol 3807 MovieClip Frame 16
stop();
Symbol 3848 MovieClip Frame 10
effectSound = new Sound(this);
effectSound.attachSound("Bite");
effectSound.start();
Symbol 3848 MovieClip Frame 22
effectSound = new Sound(this);
effectSound.attachSound("PupBlast");
effectSound.start();
Symbol 3851 MovieClip Frame 16
stop();
Symbol 3852 MovieClip Frame 1
stop();
Instance of Symbol 237 MovieClip "hitBox" in Symbol 3852 MovieClip Frame 1
onClipEvent (enterFrame) {
this._visible = false;
}
Instance of Symbol 3440 MovieClip "collectbox" in Symbol 3852 MovieClip Frame 1
onClipEvent (enterFrame) {
this._visible = false;
}
Symbol 3852 MovieClip Frame 2
stop();
Symbol 3852 MovieClip Frame 3
stop();
effectSound = new Sound(this);
effectSound.attachSound("Jump2");
effectSound.start();
Symbol 3852 MovieClip Frame 4
stop();
effectSound = new Sound(this);
effectSound.attachSound("genericThud");
effectSound.start();
Symbol 3852 MovieClip Frame 5
stop();
Symbol 3852 MovieClip Frame 6
stop();
Symbol 3852 MovieClip Frame 7
stop();
Symbol 3852 MovieClip Frame 8
stop();
effectSound = new Sound(this);
effectSound.attachSound("Dash");
effectSound.start();
Symbol 3852 MovieClip Frame 9
stop();
Symbol 3852 MovieClip Frame 10
stop();
Symbol 3852 MovieClip Frame 11
stop();
effectSound = new Sound(this);
effectSound.attachSound("Jump2");
effectSound.start();
Symbol 3852 MovieClip Frame 12
stop();
effectSound = new Sound(this);
effectSound.attachSound("genericThud");
effectSound.start();
Symbol 3852 MovieClip Frame 13
stop();
Symbol 3852 MovieClip Frame 14
stop();
Symbol 3852 MovieClip Frame 15
stop();
Symbol 3852 MovieClip Frame 16
stop();
effectSound = new Sound(this);
effectSound.attachSound("Dash");
effectSound.start();
Symbol 3852 MovieClip Frame 17
stop();
Symbol 3852 MovieClip Frame 18
stop();
Symbol 3852 MovieClip Frame 19
stop();
effectSound = new Sound(this);
effectSound.attachSound("Jump2");
effectSound.start();
Symbol 3852 MovieClip Frame 20
stop();
effectSound = new Sound(this);
effectSound.attachSound("genericThud");
effectSound.start();
Symbol 3852 MovieClip Frame 21
stop();
Symbol 3852 MovieClip Frame 22
stop();
Symbol 3852 MovieClip Frame 23
stop();
Symbol 3852 MovieClip Frame 24
stop();
effectSound = new Sound(this);
effectSound.attachSound("Dash");
effectSound.start();
Symbol 3852 MovieClip Frame 25
stop();
effectSound = new Sound(this);
effectSound.attachSound("Hurt");
effectSound.start();
Symbol 3852 MovieClip Frame 26
stop();
effectSound = new Sound(this);
effectSound.attachSound("Hurt");
effectSound.start();
Symbol 3852 MovieClip Frame 27
stop();
effectSound = new Sound(this);
effectSound.attachSound("Hurt");
effectSound.start();
Symbol 3852 MovieClip Frame 28
stop();
Symbol 3852 MovieClip Frame 29
stop();
effectSound = new Sound(this);
effectSound.attachSound("Magic");
effectSound.start();
count = 0;
batmagic.onEnterframe = function () {
attachMovie("magicdot", "dot" + count, count++, "batmagic");
};
Symbol 3852 MovieClip Frame 30
stop();
effectSound = new Sound(this);
effectSound.attachSound("Magic");
effectSound.start();
Symbol 3852 MovieClip Frame 31
stop();
effectSound = new Sound(this);
effectSound.attachSound("Magic");
effectSound.start();
Symbol 3852 MovieClip Frame 32
stop();
count = 0;
batmagic.onEnterframe = function () {
trace("wgaaw");
attachMovie("magicdot", "dot" + count, count++, "batmagic");
};
Symbol 3852 MovieClip Frame 33
stop();
Symbol 3852 MovieClip Frame 34
stop();
Symbol 3852 MovieClip Frame 35
stop();
effectSound = new Sound(this);
effectSound.attachSound("Dash");
effectSound.start();
Symbol 3852 MovieClip Frame 36
stop();
effectSound = new Sound(this);
effectSound.attachSound("Dash");
effectSound.start();
Symbol 3852 MovieClip Frame 37
stop();
effectSound = new Sound(this);
effectSound.attachSound("Dash");
effectSound.start();
Symbol 3852 MovieClip Frame 38
stop();
effectSound = new Sound(this);
effectSound.attachSound("Cross");
effectSound.start();
Symbol 3852 MovieClip Frame 39
stop();
effectSound = new Sound(this);
effectSound.attachSound("Cross");
effectSound.start();
Symbol 3852 MovieClip Frame 40
stop();
effectSound = new Sound(this);
effectSound.attachSound("shoot");
effectSound.start();
Symbol 3852 MovieClip Frame 41
stop();
Symbol 3852 MovieClip Frame 42
stop();
Symbol 3852 MovieClip Frame 43
stop();
Symbol 3852 MovieClip Frame 44
stop();
effectSound = new Sound(this);
effectSound.attachSound("DogJump");
effectSound.start();
Symbol 3852 MovieClip Frame 45
stop();
Symbol 3852 MovieClip Frame 46
stop();
Symbol 3852 MovieClip Frame 47
stop();
Symbol 3852 MovieClip Frame 48
stop();
effectSound = new Sound(this);
effectSound.attachSound("DogJump");
effectSound.start();
Symbol 3852 MovieClip Frame 49
stop();
Symbol 3865 MovieClip Frame 1
_root.foreground.gotoAndStop(2);
_root.alice.gotoAndStop(49);
_root.camera.gotoAndStop(2);
Symbol 3865 MovieClip Frame 77
effectSound = new Sound(this);
effectSound.attachSound("hanup");
effectSound.start();
Symbol 3865 MovieClip Frame 91
effectSound = new Sound(this);
effectSound.attachSound("surprise");
effectSound.start();
_root.foreground.gotoAndStop(3);
Symbol 3865 MovieClip Frame 109
effectSound = new Sound(this);
effectSound.attachSound("handown");
effectSound.start();
Symbol 3865 MovieClip Frame 133
_root.foreground.gotoAndStop(1);
_root.introMovie = false;
_root.blackout.swapDepths(999998);
_root.alice.swapDepths(1000);
_root.bFacingRight = true;
_root.bFacingLeft = false;
_root.alice._xscale = -100;
_root.foreground._x = _root.foreground._x - 5;
_root.bgbuildings._x = _root.bgbuildings._x - 2;
_root.sage._x = _root.sage._x - 5;
_root.item0._x = _root.item0._x - 5;
_root.sign0._x = _root.sign0._x - 5;
_root.sign1._x = _root.sign1._x - 5;
Symbol 3865 MovieClip Frame 134
_root.foreground._x = _root.foreground._x - 5;
_root.bgbuildings._x = _root.bgbuildings._x - 2;
_root.sage._x = _root.sage._x - 5;
_root.item0._x = _root.item0._x - 5;
_root.sign0._x = _root.sign0._x - 5;
_root.sign1._x = _root.sign1._x - 5;
Symbol 3865 MovieClip Frame 135
_root.foreground._x = _root.foreground._x - 5;
_root.bgbuildings._x = _root.bgbuildings._x - 2;
_root.sage._x = _root.sage._x - 5;
_root.item0._x = _root.item0._x - 5;
_root.sign0._x = _root.sign0._x - 5;
_root.sign1._x = _root.sign1._x - 5;
Symbol 3865 MovieClip Frame 136
_root.foreground._x = _root.foreground._x - 5;
_root.bgbuildings._x = _root.bgbuildings._x - 2;
_root.sage._x = _root.sage._x - 5;
_root.item0._x = _root.item0._x - 5;
_root.sign0._x = _root.sign0._x - 5;
_root.sign1._x = _root.sign1._x - 5;
Symbol 3865 MovieClip Frame 137
_root.foreground._x = _root.foreground._x - 5;
_root.bgbuildings._x = _root.bgbuildings._x - 2;
_root.sage._x = _root.sage._x - 5;
_root.item0._x = _root.item0._x - 5;
_root.sign0._x = _root.sign0._x - 5;
_root.sign1._x = _root.sign1._x - 5;
Symbol 3865 MovieClip Frame 138
_root.foreground._x = _root.foreground._x - 5;
_root.bgbuildings._x = _root.bgbuildings._x - 2;
_root.sage._x = _root.sage._x - 5;
_root.item0._x = _root.item0._x - 5;
_root.sign0._x = _root.sign0._x - 5;
_root.sign1._x = _root.sign1._x - 5;
Symbol 3865 MovieClip Frame 139
_root.foreground._x = _root.foreground._x - 5;
_root.bgbuildings._x = _root.bgbuildings._x - 2;
_root.sage._x = _root.sage._x - 5;
_root.item0._x = _root.item0._x - 5;
_root.sign0._x = _root.sign0._x - 5;
_root.sign1._x = _root.sign1._x - 5;
Symbol 3865 MovieClip Frame 140
_root.foreground._x = _root.foreground._x - 5;
_root.bgbuildings._x = _root.bgbuildings._x - 2;
_root.sage._x = _root.sage._x - 5;
_root.item0._x = _root.item0._x - 5;
_root.sign0._x = _root.sign0._x - 5;
_root.sign1._x = _root.sign1._x - 5;
Symbol 3865 MovieClip Frame 141
_root.foreground._x = _root.foreground._x - 5;
_root.bgbuildings._x = _root.bgbuildings._x - 2;
_root.sage._x = _root.sage._x - 5;
_root.item0._x = _root.item0._x - 5;
_root.sign0._x = _root.sign0._x - 5;
_root.sign1._x = _root.sign1._x - 5;
Symbol 3865 MovieClip Frame 142
_root.foreground._x = _root.foreground._x - 5;
_root.bgbuildings._x = _root.bgbuildings._x - 2;
_root.sage._x = _root.sage._x - 5;
_root.item0._x = _root.item0._x - 5;
_root.sign0._x = _root.sign0._x - 5;
_root.sign1._x = _root.sign1._x - 5;
Symbol 3865 MovieClip Frame 143
_root.foreground._x = _root.foreground._x - 5;
_root.bgbuildings._x = _root.bgbuildings._x - 2;
_root.sage._x = _root.sage._x - 5;
_root.item0._x = _root.item0._x - 5;
_root.sign0._x = _root.sign0._x - 5;
_root.sign1._x = _root.sign1._x - 5;
Symbol 3865 MovieClip Frame 144
_root.foreground._x = _root.foreground._x - 5;
_root.bgbuildings._x = _root.bgbuildings._x - 2;
_root.sage._x = _root.sage._x - 5;
_root.item0._x = _root.item0._x - 5;
_root.sign0._x = _root.sign0._x - 5;
_root.sign1._x = _root.sign1._x - 5;
Symbol 3865 MovieClip Frame 145
_root.foreground._x = _root.foreground._x - 5;
_root.bgbuildings._x = _root.bgbuildings._x - 2;
_root.sage._x = _root.sage._x - 5;
_root.item0._x = _root.item0._x - 5;
_root.sign0._x = _root.sign0._x - 5;
_root.sign1._x = _root.sign1._x - 5;
Symbol 3865 MovieClip Frame 146
_root.foreground._x = _root.foreground._x - 5;
_root.bgbuildings._x = _root.bgbuildings._x - 2;
_root.sage._x = _root.sage._x - 5;
_root.item0._x = _root.item0._x - 5;
_root.sign0._x = _root.sign0._x - 5;
_root.sign1._x = _root.sign1._x - 5;
Symbol 3865 MovieClip Frame 147
_root.foreground._x = _root.foreground._x - 5;
_root.bgbuildings._x = _root.bgbuildings._x - 2;
_root.sage._x = _root.sage._x - 5;
_root.item0._x = _root.item0._x - 5;
_root.sign0._x = _root.sign0._x - 5;
_root.sign1._x = _root.sign1._x - 5;
Symbol 3865 MovieClip Frame 148
_root.foreground._x = _root.foreground._x - 5;
_root.bgbuildings._x = _root.bgbuildings._x - 2;
_root.sage._x = _root.sage._x - 5;
_root.item0._x = _root.item0._x - 5;
_root.sign0._x = _root.sign0._x - 5;
_root.sign1._x = _root.sign1._x - 5;
Symbol 3865 MovieClip Frame 149
_root.foreground._x = _root.foreground._x - 5;
_root.bgbuildings._x = _root.bgbuildings._x - 2;
_root.sage._x = _root.sage._x - 5;
_root.item0._x = _root.item0._x - 5;
_root.sign0._x = _root.sign0._x - 5;
_root.sign1._x = _root.sign1._x - 5;
Symbol 3865 MovieClip Frame 150
_root.foreground._x = _root.foreground._x - 5;
_root.bgbuildings._x = _root.bgbuildings._x - 2;
_root.sage._x = _root.sage._x - 5;
_root.item0._x = _root.item0._x - 5;
_root.sign0._x = _root.sign0._x - 5;
_root.sign1._x = _root.sign1._x - 5;
Symbol 3865 MovieClip Frame 151
_root.foreground._x = _root.foreground._x - 5;
_root.bgbuildings._x = _root.bgbuildings._x - 2;
_root.sage._x = _root.sage._x - 5;
_root.item0._x = _root.item0._x - 5;
_root.sign0._x = _root.sign0._x - 5;
_root.sign1._x = _root.sign1._x - 5;
Symbol 3865 MovieClip Frame 152
_root.foreground._x = _root.foreground._x - 5;
_root.bgbuildings._x = _root.bgbuildings._x - 2;
_root.sage._x = _root.sage._x - 5;
_root.item0._x = _root.item0._x - 5;
_root.sign0._x = _root.sign0._x - 5;
_root.sign1._x = _root.sign1._x - 5;
Symbol 3865 MovieClip Frame 153
_root.foreground._x = _root.foreground._x - 5;
_root.bgbuildings._x = _root.bgbuildings._x - 2;
_root.sage._x = _root.sage._x - 5;
_root.item0._x = _root.item0._x - 5;
_root.sign0._x = _root.sign0._x - 5;
_root.sign1._x = _root.sign1._x - 5;
Symbol 3865 MovieClip Frame 154
_root.foreground._x = _root.foreground._x - 5;
_root.bgbuildings._x = _root.bgbuildings._x - 2;
_root.sage._x = _root.sage._x - 5;
_root.item0._x = _root.item0._x - 5;
_root.sign0._x = _root.sign0._x - 5;
_root.sign1._x = _root.sign1._x - 5;
Symbol 3865 MovieClip Frame 155
_root.foreground._x = _root.foreground._x - 5;
_root.bgbuildings._x = _root.bgbuildings._x - 2;
_root.sage._x = _root.sage._x - 5;
_root.item0._x = _root.item0._x - 5;
_root.sign0._x = _root.sign0._x - 5;
_root.sign1._x = _root.sign1._x - 5;
Symbol 3865 MovieClip Frame 156
_root.foreground._x = _root.foreground._x - 5;
_root.bgbuildings._x = _root.bgbuildings._x - 2;
_root.sage._x = _root.sage._x - 5;
_root.item0._x = _root.item0._x - 5;
_root.sign0._x = _root.sign0._x - 5;
_root.sign1._x = _root.sign1._x - 5;
Symbol 3865 MovieClip Frame 157
_root.foreground._x = _root.foreground._x - 5;
_root.bgbuildings._x = _root.bgbuildings._x - 2;
_root.sage._x = _root.sage._x - 5;
_root.item0._x = _root.item0._x - 5;
_root.sign0._x = _root.sign0._x - 5;
_root.sign1._x = _root.sign1._x - 5;
Symbol 3865 MovieClip Frame 158
_root.foreground._x = _root.foreground._x - 5;
_root.bgbuildings._x = _root.bgbuildings._x - 2;
_root.sage._x = _root.sage._x - 5;
_root.item0._x = _root.item0._x - 5;
_root.sign0._x = _root.sign0._x - 5;
_root.sign1._x = _root.sign1._x - 5;
Symbol 3865 MovieClip Frame 159
_root.foreground._x = _root.foreground._x - 5;
_root.bgbuildings._x = _root.bgbuildings._x - 2;
_root.sage._x = _root.sage._x - 5;
_root.item0._x = _root.item0._x - 5;
_root.sign0._x = _root.sign0._x - 5;
_root.sign1._x = _root.sign1._x - 5;
Symbol 3865 MovieClip Frame 160
_root.foreground._x = _root.foreground._x - 5;
_root.bgbuildings._x = _root.bgbuildings._x - 2;
_root.sage._x = _root.sage._x - 5;
_root.item0._x = _root.item0._x - 5;
_root.sign0._x = _root.sign0._x - 5;
_root.sign1._x = _root.sign1._x - 5;
Symbol 3865 MovieClip Frame 161
_root.foreground._x = _root.foreground._x - 5;
_root.bgbuildings._x = _root.bgbuildings._x - 2;
_root.sage._x = _root.sage._x - 5;
_root.item0._x = _root.item0._x - 5;
_root.sign0._x = _root.sign0._x - 5;
_root.sign1._x = _root.sign1._x - 5;
Symbol 3865 MovieClip Frame 162
_root.foreground._x = _root.foreground._x - 5;
_root.bgbuildings._x = _root.bgbuildings._x - 2;
_root.sage._x = _root.sage._x - 5;
_root.item0._x = _root.item0._x - 5;
_root.sign0._x = _root.sign0._x - 5;
_root.sign1._x = _root.sign1._x - 5;
Symbol 3865 MovieClip Frame 163
_root.foreground._x = _root.foreground._x - 5;
_root.bgbuildings._x = _root.bgbuildings._x - 2;
_root.sage._x = _root.sage._x - 5;
_root.item0._x = _root.item0._x - 5;
_root.sign0._x = _root.sign0._x - 5;
_root.sign1._x = _root.sign1._x - 5;
Symbol 3865 MovieClip Frame 164
_root.foreground._x = _root.foreground._x - 5;
_root.bgbuildings._x = _root.bgbuildings._x - 2;
_root.sage._x = _root.sage._x - 5;
_root.item0._x = _root.item0._x - 5;
_root.sign0._x = _root.sign0._x - 5;
_root.sign1._x = _root.sign1._x - 5;
Symbol 3865 MovieClip Frame 165
_root.foreground._x = _root.foreground._x - 5;
_root.bgbuildings._x = _root.bgbuildings._x - 2;
_root.sage._x = _root.sage._x - 5;
_root.item0._x = _root.item0._x - 5;
_root.sign0._x = _root.sign0._x - 5;
_root.sign1._x = _root.sign1._x - 5;
Symbol 3865 MovieClip Frame 166
_root.foreground._x = _root.foreground._x - 5;
_root.bgbuildings._x = _root.bgbuildings._x - 2;
_root.sage._x = _root.sage._x - 5;
_root.item0._x = _root.item0._x - 5;
_root.sign0._x = _root.sign0._x - 5;
_root.sign1._x = _root.sign1._x - 5;
Symbol 3865 MovieClip Frame 167
_root.foreground._x = _root.foreground._x - 5;
_root.bgbuildings._x = _root.bgbuildings._x - 2;
_root.sage._x = _root.sage._x - 5;
_root.item0._x = _root.item0._x - 5;
_root.sign0._x = _root.sign0._x - 5;
_root.sign1._x = _root.sign1._x - 5;
Symbol 3865 MovieClip Frame 168
_root.foreground._x = _root.foreground._x - 5;
_root.bgbuildings._x = _root.bgbuildings._x - 2;
_root.sage._x = _root.sage._x - 5;
_root.item0._x = _root.item0._x - 5;
_root.sign0._x = _root.sign0._x - 5;
_root.sign1._x = _root.sign1._x - 5;
Symbol 3865 MovieClip Frame 169
_root.foreground._x = _root.foreground._x - 5;
_root.bgbuildings._x = _root.bgbuildings._x - 2;
_root.sage._x = _root.sage._x - 5;
_root.item0._x = _root.item0._x - 5;
_root.sign0._x = _root.sign0._x - 5;
_root.sign1._x = _root.sign1._x - 5;
Symbol 3865 MovieClip Frame 170
_root.foreground._x = _root.foreground._x - 5;
_root.bgbuildings._x = _root.bgbuildings._x - 2;
_root.sage._x = _root.sage._x - 5;
_root.item0._x = _root.item0._x - 5;
_root.sign0._x = _root.sign0._x - 5;
_root.sign1._x = _root.sign1._x - 5;
Symbol 3865 MovieClip Frame 171
_root.foreground._x = _root.foreground._x - 5;
_root.bgbuildings._x = _root.bgbuildings._x - 2;
_root.sage._x = _root.sage._x - 5;
_root.item0._x = _root.item0._x - 5;
_root.sign0._x = _root.sign0._x - 5;
_root.sign1._x = _root.sign1._x - 5;
Symbol 3865 MovieClip Frame 172
_root.foreground._x = _root.foreground._x - 5;
_root.bgbuildings._x = _root.bgbuildings._x - 2;
_root.sage._x = _root.sage._x - 5;
_root.item0._x = _root.item0._x - 5;
_root.sign0._x = _root.sign0._x - 5;
_root.sign1._x = _root.sign1._x - 5;
Symbol 3865 MovieClip Frame 173
_root.foreground._x = _root.foreground._x - 5;
_root.bgbuildings._x = _root.bgbuildings._x - 2;
_root.sage._x = _root.sage._x - 5;
_root.item0._x = _root.item0._x - 5;
_root.sign0._x = _root.sign0._x - 5;
_root.sign1._x = _root.sign1._x - 5;
Symbol 3865 MovieClip Frame 174
_root.foreground._x = _root.foreground._x - 5;
_root.bgbuildings._x = _root.bgbuildings._x - 2;
_root.sage._x = _root.sage._x - 5;
_root.item0._x = _root.item0._x - 5;
_root.sign0._x = _root.sign0._x - 5;
_root.sign1._x = _root.sign1._x - 5;
Symbol 3865 MovieClip Frame 175
_root.foreground._x = _root.foreground._x - 5;
_root.bgbuildings._x = _root.bgbuildings._x - 2;
_root.sage._x = _root.sage._x - 5;
_root.item0._x = _root.item0._x - 5;
_root.sign0._x = _root.sign0._x - 5;
_root.sign1._x = _root.sign1._x - 5;
Symbol 3865 MovieClip Frame 176
_root.foreground._x = _root.foreground._x - 5;
_root.bgbuildings._x = _root.bgbuildings._x - 2;
_root.sage._x = _root.sage._x - 5;
_root.item0._x = _root.item0._x - 5;
_root.sign0._x = _root.sign0._x - 5;
_root.sign1._x = _root.sign1._x - 5;
Symbol 3865 MovieClip Frame 177
_root.foreground._x = _root.foreground._x - 5;
_root.bgbuildings._x = _root.bgbuildings._x - 2;
_root.sage._x = _root.sage._x - 5;
_root.item0._x = _root.item0._x - 5;
_root.sign0._x = _root.sign0._x - 5;
_root.sign1._x = _root.sign1._x - 5;
Symbol 3865 MovieClip Frame 178
_root.foreground._x = _root.foreground._x - 5;
_root.bgbuildings._x = _root.bgbuildings._x - 2;
_root.sage._x = _root.sage._x - 5;
_root.item0._x = _root.item0._x - 5;
_root.sign0._x = _root.sign0._x - 5;
_root.sign1._x = _root.sign1._x - 5;
Symbol 3865 MovieClip Frame 179
_root.foreground._x = _root.foreground._x - 5;
_root.bgbuildings._x = _root.bgbuildings._x - 2;
_root.sage._x = _root.sage._x - 5;
_root.item0._x = _root.item0._x - 5;
_root.sign0._x = _root.sign0._x - 5;
_root.sign1._x = _root.sign1._x - 5;
Symbol 3865 MovieClip Frame 180
_root.foreground._x = _root.foreground._x - 5;
_root.bgbuildings._x = _root.bgbuildings._x - 2;
_root.sage._x = _root.sage._x - 5;
_root.item0._x = _root.item0._x - 5;
_root.sign0._x = _root.sign0._x - 5;
_root.sign1._x = _root.sign1._x - 5;
Symbol 3865 MovieClip Frame 181
_root.foreground._x = _root.foreground._x - 5;
_root.bgbuildings._x = _root.bgbuildings._x - 2;
_root.sage._x = _root.sage._x - 5;
_root.item0._x = _root.item0._x - 5;
_root.sign0._x = _root.sign0._x - 5;
_root.sign1._x = _root.sign1._x - 5;
Symbol 3865 MovieClip Frame 182
_root.foreground._x = _root.foreground._x - 5;
_root.bgbuildings._x = _root.bgbuildings._x - 2;
_root.sage._x = _root.sage._x - 5;
_root.item0._x = _root.item0._x - 5;
_root.sign0._x = _root.sign0._x - 5;
_root.sign1._x = _root.sign1._x - 5;
Symbol 3865 MovieClip Frame 183
_root.foreground._x = _root.foreground._x - 5;
_root.bgbuildings._x = _root.bgbuildings._x - 2;
_root.sage._x = _root.sage._x - 5;
_root.item0._x = _root.item0._x - 5;
_root.sign0._x = _root.sign0._x - 5;
_root.sign1._x = _root.sign1._x - 5;
Symbol 3865 MovieClip Frame 184
_root.foreground._x = _root.foreground._x - 5;
_root.bgbuildings._x = _root.bgbuildings._x - 2;
_root.sage._x = _root.sage._x - 5;
_root.item0._x = _root.item0._x - 5;
_root.sign0._x = _root.sign0._x - 5;
_root.sign1._x = _root.sign1._x - 5;
Symbol 3865 MovieClip Frame 185
_root.foreground._x = _root.foreground._x - 5;
_root.bgbuildings._x = _root.bgbuildings._x - 2;
_root.sage._x = _root.sage._x - 5;
_root.item0._x = _root.item0._x - 5;
_root.sign0._x = _root.sign0._x - 5;
_root.sign1._x = _root.sign1._x - 5;
Symbol 3865 MovieClip Frame 186
_root.foreground._x = _root.foreground._x - 5;
_root.bgbuildings._x = _root.bgbuildings._x - 2;
_root.sage._x = _root.sage._x - 5;
_root.item0._x = _root.item0._x - 5;
_root.sign0._x = _root.sign0._x - 5;
_root.sign1._x = _root.sign1._x - 5;
Symbol 3865 MovieClip Frame 187
_root.foreground._x = _root.foreground._x - 5;
_root.bgbuildings._x = _root.bgbuildings._x - 2;
_root.sage._x = _root.sage._x - 5;
_root.item0._x = _root.item0._x - 5;
_root.sign0._x = _root.sign0._x - 5;
_root.sign1._x = _root.sign1._x - 5;
Symbol 3865 MovieClip Frame 188
_root.foreground._x = _root.foreground._x - 5;
_root.bgbuildings._x = _root.bgbuildings._x - 2;
_root.sage._x = _root.sage._x - 5;
_root.item0._x = _root.item0._x - 5;
_root.sign0._x = _root.sign0._x - 5;
_root.sign1._x = _root.sign1._x - 5;
Symbol 3865 MovieClip Frame 189
_root.foreground._x = _root.foreground._x - 5;
_root.bgbuildings._x = _root.bgbuildings._x - 2;
_root.sage._x = _root.sage._x - 5;
_root.item0._x = _root.item0._x - 5;
_root.sign0._x = _root.sign0._x - 5;
_root.sign1._x = _root.sign1._x - 5;
Symbol 3865 MovieClip Frame 190
_root.foreground._x = _root.foreground._x - 5;
_root.bgbuildings._x = _root.bgbuildings._x - 2;
_root.sage._x = _root.sage._x - 5;
_root.item0._x = _root.item0._x - 5;
_root.sign0._x = _root.sign0._x - 5;
_root.sign1._x = _root.sign1._x - 5;
Symbol 3865 MovieClip Frame 191
_root.foreground._x = _root.foreground._x - 5;
_root.bgbuildings._x = _root.bgbuildings._x - 2;
_root.sage._x = _root.sage._x - 5;
_root.item0._x = _root.item0._x - 5;
_root.sign0._x = _root.sign0._x - 5;
_root.sign1._x = _root.sign1._x - 5;
Symbol 3865 MovieClip Frame 192
_root.foreground._x = _root.foreground._x - 5;
_root.bgbuildings._x = _root.bgbuildings._x - 2;
_root.sage._x = _root.sage._x - 5;
_root.item0._x = _root.item0._x - 5;
_root.sign0._x = _root.sign0._x - 5;
_root.sign1._x = _root.sign1._x - 5;
Symbol 3865 MovieClip Frame 193
_root.foreground._x = _root.foreground._x - 5;
_root.bgbuildings._x = _root.bgbuildings._x - 2;
_root.sage._x = _root.sage._x - 5;
_root.item0._x = _root.item0._x - 5;
_root.sign0._x = _root.sign0._x - 5;
_root.sign1._x = _root.sign1._x - 5;
Symbol 3865 MovieClip Frame 194
_root.foreground._x = _root.foreground._x - 5;
_root.bgbuildings._x = _root.bgbuildings._x - 2;
_root.sage._x = _root.sage._x - 5;
_root.item0._x = _root.item0._x - 5;
_root.sign0._x = _root.sign0._x - 5;
_root.sign1._x = _root.sign1._x - 5;
Symbol 3865 MovieClip Frame 195
_root.foreground._x = _root.foreground._x - 5;
_root.bgbuildings._x = _root.bgbuildings._x - 2;
_root.sage._x = _root.sage._x - 5;
_root.item0._x = _root.item0._x - 5;
_root.sign0._x = _root.sign0._x - 5;
_root.sign1._x = _root.sign1._x - 5;
Symbol 3865 MovieClip Frame 196
_root.foreground._x = _root.foreground._x - 5;
_root.bgbuildings._x = _root.bgbuildings._x - 2;
_root.sage._x = _root.sage._x - 5;
_root.item0._x = _root.item0._x - 5;
_root.sign0._x = _root.sign0._x - 5;
_root.sign1._x = _root.sign1._x - 5;
Symbol 3865 MovieClip Frame 197
_root.foreground._x = _root.foreground._x - 5;
_root.bgbuildings._x = _root.bgbuildings._x - 2;
_root.sage._x = _root.sage._x - 5;
_root.item0._x = _root.item0._x - 5;
_root.sign0._x = _root.sign0._x - 5;
_root.sign1._x = _root.sign1._x - 5;
Symbol 3865 MovieClip Frame 198
_root.foreground._x = _root.foreground._x - 5;
_root.bgbuildings._x = _root.bgbuildings._x - 2;
_root.sage._x = _root.sage._x - 5;
_root.item0._x = _root.item0._x - 5;
_root.sign0._x = _root.sign0._x - 5;
_root.sign1._x = _root.sign1._x - 5;
Symbol 3865 MovieClip Frame 199
_root.foreground._x = _root.foreground._x - 5;
_root.bgbuildings._x = _root.bgbuildings._x - 2;
_root.sage._x = _root.sage._x - 5;
_root.item0._x = _root.item0._x - 5;
_root.sign0._x = _root.sign0._x - 5;
_root.sign1._x = _root.sign1._x - 5;
Symbol 3865 MovieClip Frame 200
_root.foreground._x = _root.foreground._x - 5;
_root.bgbuildings._x = _root.bgbuildings._x - 2;
_root.sage._x = _root.sage._x - 5;
_root.item0._x = _root.item0._x - 5;
_root.sign0._x = _root.sign0._x - 5;
_root.sign1._x = _root.sign1._x - 5;
Symbol 3865 MovieClip Frame 201
_root.foreground._x = _root.foreground._x - 5;
_root.bgbuildings._x = _root.bgbuildings._x - 2;
_root.sage._x = _root.sage._x - 5;
_root.item0._x = _root.item0._x - 5;
_root.sign0._x = _root.sign0._x - 5;
_root.sign1._x = _root.sign1._x - 5;
Symbol 3865 MovieClip Frame 202
_root.foreground._x = _root.foreground._x - 5;
_root.bgbuildings._x = _root.bgbuildings._x - 2;
_root.sage._x = _root.sage._x - 5;
_root.item0._x = _root.item0._x - 5;
_root.sign0._x = _root.sign0._x - 5;
_root.sign1._x = _root.sign1._x - 5;
Symbol 3865 MovieClip Frame 203
_root.foreground._x = _root.foreground._x - 5;
_root.bgbuildings._x = _root.bgbuildings._x - 2;
_root.sage._x = _root.sage._x - 5;
_root.item0._x = _root.item0._x - 5;
_root.sign0._x = _root.sign0._x - 5;
_root.sign1._x = _root.sign1._x - 5;
Symbol 3865 MovieClip Frame 204
_root.foreground._x = _root.foreground._x - 5;
_root.bgbuildings._x = _root.bgbuildings._x - 2;
_root.sage._x = _root.sage._x - 5;
_root.item0._x = _root.item0._x - 5;
_root.sign0._x = _root.sign0._x - 5;
_root.sign1._x = _root.sign1._x - 5;
Symbol 3865 MovieClip Frame 205
_root.foreground._x = _root.foreground._x - 5;
_root.bgbuildings._x = _root.bgbuildings._x - 2;
_root.sage._x = _root.sage._x - 5;
_root.item0._x = _root.item0._x - 5;
_root.sign0._x = _root.sign0._x - 5;
_root.sign1._x = _root.sign1._x - 5;
Symbol 3865 MovieClip Frame 206
_root.foreground._x = _root.foreground._x - 5;
_root.bgbuildings._x = _root.bgbuildings._x - 2;
_root.sage._x = _root.sage._x - 5;
_root.item0._x = _root.item0._x - 5;
_root.sign0._x = _root.sign0._x - 5;
_root.sign1._x = _root.sign1._x - 5;
Symbol 3865 MovieClip Frame 207
_root.foreground._x = _root.foreground._x - 5;
_root.bgbuildings._x = _root.bgbuildings._x - 2;
_root.sage._x = _root.sage._x - 5;
_root.item0._x = _root.item0._x - 5;
_root.sign0._x = _root.sign0._x - 5;
_root.sign1._x = _root.sign1._x - 5;
Symbol 3865 MovieClip Frame 208
_root.foreground._x = _root.foreground._x - 5;
_root.bgbuildings._x = _root.bgbuildings._x - 2;
_root.sage._x = _root.sage._x - 5;
_root.item0._x = _root.item0._x - 5;
_root.sign0._x = _root.sign0._x - 5;
_root.sign1._x = _root.sign1._x - 5;
Symbol 3865 MovieClip Frame 209
_root.foreground._x = _root.foreground._x - 5;
_root.bgbuildings._x = _root.bgbuildings._x - 2;
_root.sage._x = _root.sage._x - 5;
_root.item0._x = _root.item0._x - 5;
_root.sign0._x = _root.sign0._x - 5;
_root.sign1._x = _root.sign1._x - 5;
Symbol 3865 MovieClip Frame 210
_root.foreground._x = _root.foreground._x - 5;
_root.bgbuildings._x = _root.bgbuildings._x - 2;
_root.sage._x = _root.sage._x - 5;
_root.item0._x = _root.item0._x - 5;
_root.sign0._x = _root.sign0._x - 5;
_root.sign1._x = _root.sign1._x - 5;
Symbol 3865 MovieClip Frame 211
_root.foreground._x = _root.foreground._x - 5;
_root.bgbuildings._x = _root.bgbuildings._x - 2;
_root.sage._x = _root.sage._x - 5;
_root.item0._x = _root.item0._x - 5;
_root.sign0._x = _root.sign0._x - 5;
_root.sign1._x = _root.sign1._x - 5;
Symbol 3865 MovieClip Frame 212
_root.foreground._x = _root.foreground._x - 5;
_root.bgbuildings._x = _root.bgbuildings._x - 2;
_root.sage._x = _root.sage._x - 5;
_root.item0._x = _root.item0._x - 5;
_root.sign0._x = _root.sign0._x - 5;
_root.sign1._x = _root.sign1._x - 5;
Symbol 3865 MovieClip Frame 213
_root.foreground._x = _root.foreground._x - 5;
_root.bgbuildings._x = _root.bgbuildings._x - 2;
_root.sage._x = _root.sage._x - 5;
_root.item0._x = _root.item0._x - 5;
_root.sign0._x = _root.sign0._x - 5;
_root.sign1._x = _root.sign1._x - 5;
Symbol 3865 MovieClip Frame 214
_root.foreground._x = _root.foreground._x - 5;
_root.bgbuildings._x = _root.bgbuildings._x - 2;
_root.sage._x = _root.sage._x - 5;
_root.item0._x = _root.item0._x - 5;
_root.sign0._x = _root.sign0._x - 5;
_root.sign1._x = _root.sign1._x - 5;
Symbol 3865 MovieClip Frame 215
_root.foreground._x = _root.foreground._x - 5;
_root.bgbuildings._x = _root.bgbuildings._x - 2;
_root.sage._x = _root.sage._x - 5;
_root.item0._x = _root.item0._x - 5;
_root.sign0._x = _root.sign0._x - 5;
_root.sign1._x = _root.sign1._x - 5;
Symbol 3865 MovieClip Frame 216
_root.foreground._x = _root.foreground._x - 5;
_root.bgbuildings._x = _root.bgbuildings._x - 2;
_root.sage._x = _root.sage._x - 5;
_root.item0._x = _root.item0._x - 5;
_root.sign0._x = _root.sign0._x - 5;
_root.sign1._x = _root.sign1._x - 5;
Symbol 3865 MovieClip Frame 217
_root.foreground._x = _root.foreground._x - 5;
_root.bgbuildings._x = _root.bgbuildings._x - 2;
_root.sage._x = _root.sage._x - 5;
_root.item0._x = _root.item0._x - 5;
_root.sign0._x = _root.sign0._x - 5;
_root.sign1._x = _root.sign1._x - 5;
Symbol 3865 MovieClip Frame 218
_root.foreground._x = _root.foreground._x - 5;
_root.bgbuildings._x = _root.bgbuildings._x - 2;
_root.sage._x = _root.sage._x - 5;
_root.item0._x = _root.item0._x - 5;
_root.sign0._x = _root.sign0._x - 5;
_root.sign1._x = _root.sign1._x - 5;
Symbol 3865 MovieClip Frame 219
_root.foreground._x = _root.foreground._x - 5;
_root.bgbuildings._x = _root.bgbuildings._x - 2;
_root.sage._x = _root.sage._x - 5;
_root.item0._x = _root.item0._x - 5;
_root.sign0._x = _root.sign0._x - 5;
_root.sign1._x = _root.sign1._x - 5;
Symbol 3865 MovieClip Frame 220
_root.foreground._x = _root.foreground._x - 5;
_root.bgbuildings._x = _root.bgbuildings._x - 2;
_root.sage._x = _root.sage._x - 5;
_root.item0._x = _root.item0._x - 5;
_root.sign0._x = _root.sign0._x - 5;
_root.sign1._x = _root.sign1._x - 5;
Symbol 3865 MovieClip Frame 221
_root.foreground._x = _root.foreground._x - 5;
_root.bgbuildings._x = _root.bgbuildings._x - 2;
_root.sage._x = _root.sage._x - 5;
_root.item0._x = _root.item0._x - 5;
_root.sign0._x = _root.sign0._x - 5;
_root.sign1._x = _root.sign1._x - 5;
Symbol 3865 MovieClip Frame 222
effectSound = new Sound(this);
effectSound.attachSound("dooropen");
effectSound.start();
_root.foreground._x = _root.foreground._x - 5;
_root.bgbuildings._x = _root.bgbuildings._x - 2;
_root.sage._x = _root.sage._x - 5;
_root.item0._x = _root.item0._x - 5;
_root.sign0._x = _root.sign0._x - 5;
_root.sign1._x = _root.sign1._x - 5;
Symbol 3865 MovieClip Frame 223
_root.foreground._x = _root.foreground._x - 5;
_root.bgbuildings._x = _root.bgbuildings._x - 2;
_root.sage._x = _root.sage._x - 5;
_root.item0._x = _root.item0._x - 5;
_root.sign0._x = _root.sign0._x - 5;
_root.sign1._x = _root.sign1._x - 5;
Symbol 3865 MovieClip Frame 224
_root.foreground._x = _root.foreground._x - 5;
_root.bgbuildings._x = _root.bgbuildings._x - 2;
_root.sage._x = _root.sage._x - 5;
_root.item0._x = _root.item0._x - 5;
_root.sign0._x = _root.sign0._x - 5;
_root.sign1._x = _root.sign1._x - 5;
Symbol 3865 MovieClip Frame 225
_root.foreground._x = _root.foreground._x - 5;
_root.bgbuildings._x = _root.bgbuildings._x - 2;
_root.sage._x = _root.sage._x - 5;
_root.item0._x = _root.item0._x - 5;
_root.sign0._x = _root.sign0._x - 5;
_root.sign1._x = _root.sign1._x - 5;
Symbol 3865 MovieClip Frame 226
_root.foreground._x = _root.foreground._x - 5;
_root.bgbuildings._x = _root.bgbuildings._x - 2;
_root.sage._x = _root.sage._x - 5;
_root.item0._x = _root.item0._x - 5;
_root.sign0._x = _root.sign0._x - 5;
_root.sign1._x = _root.sign1._x - 5;
Symbol 3865 MovieClip Frame 227
_root.foreground._x = _root.foreground._x - 5;
_root.bgbuildings._x = _root.bgbuildings._x - 2;
_root.sage._x = _root.sage._x - 5;
_root.item0._x = _root.item0._x - 5;
_root.sign0._x = _root.sign0._x - 5;
_root.sign1._x = _root.sign1._x - 5;
Symbol 3865 MovieClip Frame 228
_root.foreground._x = _root.foreground._x - 5;
_root.bgbuildings._x = _root.bgbuildings._x - 2;
_root.sage._x = _root.sage._x - 5;
_root.item0._x = _root.item0._x - 5;
_root.sign0._x = _root.sign0._x - 5;
_root.sign1._x = _root.sign1._x - 5;
Symbol 3865 MovieClip Frame 229
_root.foreground._x = _root.foreground._x - 5;
_root.bgbuildings._x = _root.bgbuildings._x - 2;
_root.sage._x = _root.sage._x - 5;
_root.item0._x = _root.item0._x - 5;
_root.sign0._x = _root.sign0._x - 5;
_root.sign1._x = _root.sign1._x - 5;
Symbol 3865 MovieClip Frame 230
_root.foreground._x = _root.foreground._x - 5;
_root.bgbuildings._x = _root.bgbuildings._x - 2;
_root.sage._x = _root.sage._x - 5;
_root.item0._x = _root.item0._x - 5;
_root.sign0._x = _root.sign0._x - 5;
_root.sign1._x = _root.sign1._x - 5;
Symbol 3865 MovieClip Frame 231
_root.foreground._x = _root.foreground._x - 5;
_root.bgbuildings._x = _root.bgbuildings._x - 2;
_root.sage._x = _root.sage._x - 5;
_root.item0._x = _root.item0._x - 5;
_root.sign0._x = _root.sign0._x - 5;
_root.sign1._x = _root.sign1._x - 5;
Symbol 3865 MovieClip Frame 232
_root.foreground._x = _root.foreground._x - 5;
_root.bgbuildings._x = _root.bgbuildings._x - 2;
_root.sage._x = _root.sage._x - 5;
_root.item0._x = _root.item0._x - 5;
_root.sign0._x = _root.sign0._x - 5;
_root.sign1._x = _root.sign1._x - 5;
Symbol 3865 MovieClip Frame 233
_root.foreground._x = _root.foreground._x - 5;
_root.bgbuildings._x = _root.bgbuildings._x - 2;
_root.sage._x = _root.sage._x - 5;
_root.item0._x = _root.item0._x - 5;
_root.sign0._x = _root.sign0._x - 5;
_root.sign1._x = _root.sign1._x - 5;
Symbol 3865 MovieClip Frame 234
_root.foreground._x = _root.foreground._x - 5;
_root.bgbuildings._x = _root.bgbuildings._x - 2;
_root.sage._x = _root.sage._x - 5;
_root.item0._x = _root.item0._x - 5;
_root.sign0._x = _root.sign0._x - 5;
_root.sign1._x = _root.sign1._x - 5;
Symbol 3865 MovieClip Frame 235
_root.foreground._x = _root.foreground._x - 5;
_root.bgbuildings._x = _root.bgbuildings._x - 2;
_root.sage._x = _root.sage._x - 5;
_root.item0._x = _root.item0._x - 5;
_root.sign0._x = _root.sign0._x - 5;
_root.sign1._x = _root.sign1._x - 5;
Symbol 3865 MovieClip Frame 236
_root.foreground._x = _root.foreground._x - 5;
_root.bgbuildings._x = _root.bgbuildings._x - 2;
_root.sage._x = _root.sage._x - 5;
_root.item0._x = _root.item0._x - 5;
_root.sign0._x = _root.sign0._x - 5;
_root.sign1._x = _root.sign1._x - 5;
Symbol 3865 MovieClip Frame 237
_root.foreground._x = _root.foreground._x - 5;
_root.bgbuildings._x = _root.bgbuildings._x - 2;
_root.sage._x = _root.sage._x - 5;
_root.item0._x = _root.item0._x - 5;
_root.sign0._x = _root.sign0._x - 5;
_root.sign1._x = _root.sign1._x - 5;
Symbol 3865 MovieClip Frame 238
_root.foreground._x = _root.foreground._x - 5;
_root.bgbuildings._x = _root.bgbuildings._x - 2;
_root.sage._x = _root.sage._x - 5;
_root.item0._x = _root.item0._x - 5;
_root.sign0._x = _root.sign0._x - 5;
_root.sign1._x = _root.sign1._x - 5;
Symbol 3865 MovieClip Frame 239
_root.foreground._x = _root.foreground._x - 5;
_root.bgbuildings._x = _root.bgbuildings._x - 2;
_root.sage._x = _root.sage._x - 5;
_root.item0._x = _root.item0._x - 5;
_root.sign0._x = _root.sign0._x - 5;
_root.sign1._x = _root.sign1._x - 5;
Symbol 3865 MovieClip Frame 240
_root.foreground._x = _root.foreground._x - 5;
_root.bgbuildings._x = _root.bgbuildings._x - 2;
_root.sage._x = _root.sage._x - 5;
_root.item0._x = _root.item0._x - 5;
_root.sign0._x = _root.sign0._x - 5;
_root.sign1._x = _root.sign1._x - 5;
Symbol 3865 MovieClip Frame 241
_root.foreground._x = _root.foreground._x - 5;
_root.bgbuildings._x = _root.bgbuildings._x - 2;
_root.sage._x = _root.sage._x - 5;
_root.item0._x = _root.item0._x - 5;
_root.sign0._x = _root.sign0._x - 5;
_root.sign1._x = _root.sign1._x - 5;
Symbol 3865 MovieClip Frame 242
_root.foreground._x = _root.foreground._x - 5;
_root.bgbuildings._x = _root.bgbuildings._x - 2;
_root.sage._x = _root.sage._x - 5;
_root.item0._x = _root.item0._x - 5;
_root.sign0._x = _root.sign0._x - 5;
_root.sign1._x = _root.sign1._x - 5;
Symbol 3865 MovieClip Frame 243
_root.foreground._x = _root.foreground._x - 5;
_root.bgbuildings._x = _root.bgbuildings._x - 2;
_root.sage._x = _root.sage._x - 5;
_root.item0._x = _root.item0._x - 5;
_root.sign0._x = _root.sign0._x - 5;
_root.sign1._x = _root.sign1._x - 5;
Symbol 3865 MovieClip Frame 244
_root.foreground._x = _root.foreground._x - 5;
_root.bgbuildings._x = _root.bgbuildings._x - 2;
_root.sage._x = _root.sage._x - 5;
_root.item0._x = _root.item0._x - 5;
_root.sign0._x = _root.sign0._x - 5;
_root.sign1._x = _root.sign1._x - 5;
Symbol 3865 MovieClip Frame 245
_root.foreground._x = _root.foreground._x - 5;
_root.bgbuildings._x = _root.bgbuildings._x - 2;
_root.sage._x = _root.sage._x - 5;
_root.item0._x = _root.item0._x - 5;
_root.sign0._x = _root.sign0._x - 5;
_root.sign1._x = _root.sign1._x - 5;
Symbol 3865 MovieClip Frame 246
_root.foreground._x = _root.foreground._x - 5;
_root.bgbuildings._x = _root.bgbuildings._x - 2;
_root.sage._x = _root.sage._x - 5;
_root.item0._x = _root.item0._x - 5;
_root.sign0._x = _root.sign0._x - 5;
_root.sign1._x = _root.sign1._x - 5;
Symbol 3865 MovieClip Frame 247
_root.foreground._x = _root.foreground._x - 5;
_root.bgbuildings._x = _root.bgbuildings._x - 2;
_root.sage._x = _root.sage._x - 5;
_root.item0._x = _root.item0._x - 5;
_root.sign0._x = _root.sign0._x - 5;
_root.sign1._x = _root.sign1._x - 5;
Symbol 3865 MovieClip Frame 248
_root.foreground._x = _root.foreground._x - 5;
_root.bgbuildings._x = _root.bgbuildings._x - 2;
_root.sage._x = _root.sage._x - 5;
_root.item0._x = _root.item0._x - 5;
_root.sign0._x = _root.sign0._x - 5;
_root.sign1._x = _root.sign1._x - 5;
Symbol 3865 MovieClip Frame 249
_root.foreground._x = _root.foreground._x - 5;
_root.bgbuildings._x = _root.bgbuildings._x - 2;
_root.sage._x = _root.sage._x - 5;
_root.item0._x = _root.item0._x - 5;
_root.sign0._x = _root.sign0._x - 5;
_root.sign1._x = _root.sign1._x - 5;
Symbol 3865 MovieClip Frame 250
_root.foreground._x = _root.foreground._x - 5;
_root.bgbuildings._x = _root.bgbuildings._x - 2;
_root.sage._x = _root.sage._x - 5;
_root.item0._x = _root.item0._x - 5;
_root.sign0._x = _root.sign0._x - 5;
_root.sign1._x = _root.sign1._x - 5;
Symbol 3865 MovieClip Frame 251
_root.foreground._x = _root.foreground._x - 5;
_root.bgbuildings._x = _root.bgbuildings._x - 2;
_root.sage._x = _root.sage._x - 5;
_root.item0._x = _root.item0._x - 5;
_root.sign0._x = _root.sign0._x - 5;
_root.sign1._x = _root.sign1._x - 5;
Symbol 3865 MovieClip Frame 252
_root.foreground._x = _root.foreground._x - 5;
_root.bgbuildings._x = _root.bgbuildings._x - 2;
_root.sage._x = _root.sage._x - 5;
_root.item0._x = _root.item0._x - 5;
_root.sign0._x = _root.sign0._x - 5;
_root.sign1._x = _root.sign1._x - 5;
Symbol 3865 MovieClip Frame 368
stop();
_root.bStopInput = false;
_root.camera.gotoAndStop(1);
_root.camera.hintmc.gotoAndStop(2);
Symbol 3871 MovieClip Frame 1
stop();
Symbol 3871 MovieClip Frame 2
stop();
Symbol 3890 MovieClip Frame 10
stop();
Symbol 3891 MovieClip Frame 1
stop();
Symbol 3891 MovieClip Frame 2
stop();
Symbol 3891 MovieClip Frame 3
stop();
Symbol 3895 MovieClip Frame 111
stop();
Symbol 3925 MovieClip Frame 21
stop();
Symbol 3969 MovieClip Frame 13
effectSound = new Sound(this);
effectSound.attachSound("throwbaseball");
effectSound.start();
Symbol 3992 MovieClip Frame 22
effectSound = new Sound(this);
effectSound.attachSound("throwfatgirl");
effectSound.start();
Symbol 4009 MovieClip Frame 22
effectSound = new Sound(this);
effectSound.attachSound("throwfatgirl");
effectSound.start();
Symbol 4026 MovieClip Frame 22
effectSound = new Sound(this);
effectSound.attachSound("throwfatgirl");
effectSound.start();
Symbol 4037 MovieClip Frame 1
effectSound = new Sound(this);
effectSound.attachSound("hitNoKill");
effectSound.start();
Symbol 4037 MovieClip Frame 4
_parent.gotoAndStop(1);
Symbol 4038 MovieClip Frame 1
stop();
Symbol 4038 MovieClip Frame 2
stop();
Symbol 4072 MovieClip Frame 1
effectSound = new Sound(this);
effectSound.attachSound("Kill");
effectSound.start();
Symbol 4072 MovieClip Frame 11
effectSound = new Sound(this);
effectSound.attachSound("Kill");
effectSound.start();
Symbol 4072 MovieClip Frame 19
effectSound = new Sound(this);
effectSound.attachSound("crit");
effectSound.start();
Symbol 4072 MovieClip Frame 27
effectSound = new Sound(this);
effectSound.attachSound("Kill");
effectSound.start();
Symbol 4072 MovieClip Frame 35
effectSound = new Sound(this);
effectSound.attachSound("Kill");
effectSound.start();
Symbol 4072 MovieClip Frame 51
effectSound = new Sound(this);
effectSound.attachSound("VampExplode");
effectSound.start();
Symbol 4072 MovieClip Frame 67
stop();
Symbol 4073 MovieClip [ed] Frame 1
#initclip 44
Object.registerClass("ed", BossEd);
#endinitclip
stop();
Instance of Symbol 532 MovieClip "hitbox" in Symbol 4073 MovieClip [ed] Frame 1
onClipEvent (enterFrame) {
this._visible = false;
}
Instance of Symbol 223 MovieClip "leftbumper" in Symbol 4073 MovieClip [ed] Frame 1
onClipEvent (enterFrame) {
this._visible = false;
}
Instance of Symbol 224 MovieClip "rightbumper" in Symbol 4073 MovieClip [ed] Frame 1
onClipEvent (enterFrame) {
this._visible = false;
}
Symbol 4073 MovieClip [ed] Frame 2
stop();
Symbol 4073 MovieClip [ed] Frame 3
stop();
Symbol 4073 MovieClip [ed] Frame 4
stop();
Symbol 4073 MovieClip [ed] Frame 5
stop();
Symbol 4073 MovieClip [ed] Frame 6
stop();
Symbol 4073 MovieClip [ed] Frame 7
stop();
effectSound = new Sound(this);
effectSound.attachSound("transform");
effectSound.start();
Symbol 4073 MovieClip [ed] Frame 8
stop();
effectSound = new Sound(this);
effectSound.attachSound("transform");
effectSound.start();
Symbol 4073 MovieClip [ed] Frame 9
stop();
effectSound = new Sound(this);
effectSound.attachSound("VampireGuardBreak");
effectSound.start();
Symbol 4073 MovieClip [ed] Frame 10
stop();
effectSound = new Sound(this);
effectSound.attachSound("VampireGuardBreak");
effectSound.start();
Symbol 4073 MovieClip [ed] Frame 11
stop();
Symbol 4073 MovieClip [ed] Frame 12
stop();
Symbol 4073 MovieClip [ed] Frame 13
stop();
Symbol 4073 MovieClip [ed] Frame 14
stop();
Symbol 4073 MovieClip [ed] Frame 15
stop();
Symbol 4073 MovieClip [ed] Frame 16
stop();
Symbol 4073 MovieClip [ed] Frame 17
stop();
Symbol 4073 MovieClip [ed] Frame 18
stop();
Symbol 4073 MovieClip [ed] Frame 19
stop();
Symbol 4073 MovieClip [ed] Frame 20
stop();
Symbol 4073 MovieClip [ed] Frame 21
stop();
Symbol 4073 MovieClip [ed] Frame 22
stop();
Symbol 4077 MovieClip Frame 111
stop();
Symbol 4091 MovieClip Frame 90
stop();
Symbol 4092 MovieClip Frame 1
stop();
Symbol 4092 MovieClip Frame 2
stop();
Symbol 4143 MovieClip Frame 8
effectSound = new Sound(this);
effectSound.attachSound("Jump68");
effectSound.start();
Symbol 4143 MovieClip Frame 22
effectSound = new Sound(this);
effectSound.attachSound("jumpland");
effectSound.start();
Symbol 4143 MovieClip Frame 42
_parent.gotoAndStop(3);
Symbol 4169 MovieClip Frame 1
stop();
Symbol 4169 MovieClip Frame 2
stop();
Symbol 4222 MovieClip Frame 1
effectSound = new Sound(this);
effectSound.attachSound("Explosion100");
effectSound.start();
Symbol 4222 MovieClip Frame 17
effectSound = new Sound(this);
effectSound.attachSound("Explosion100");
effectSound.start();
Symbol 4222 MovieClip Frame 25
effectSound = new Sound(this);
effectSound.attachSound("Explosion100");
effectSound.start();
Symbol 4222 MovieClip Frame 33
effectSound = new Sound(this);
effectSound.attachSound("Explosion100");
effectSound.start();
Symbol 4222 MovieClip Frame 49
effectSound = new Sound(this);
effectSound.attachSound("doghead");
effectSound.start();
Symbol 4222 MovieClip Frame 100
stop();
Symbol 4243 MovieClip Frame 5
effectSound = new Sound(this);
effectSound.attachSound("shootMiss");
effectSound.start();
Symbol 4244 MovieClip [fidencio] Frame 1
#initclip 45
Object.registerClass("fidencio", BossFid);
#endinitclip
stop();
Symbol 4244 MovieClip [fidencio] Frame 2
stop();
Symbol 4244 MovieClip [fidencio] Frame 3
stop();
Symbol 4244 MovieClip [fidencio] Frame 4
stop();
Symbol 4244 MovieClip [fidencio] Frame 5
stop();
Symbol 4244 MovieClip [fidencio] Frame 6
stop();
Symbol 4244 MovieClip [fidencio] Frame 7
stop();
Symbol 4244 MovieClip [fidencio] Frame 8
stop();
Symbol 4244 MovieClip [fidencio] Frame 9
stop();
Symbol 4244 MovieClip [fidencio] Frame 10
stop();
Symbol 4244 MovieClip [fidencio] Frame 11
stop();
Symbol 4244 MovieClip [fidencio] Frame 12
stop();
Symbol 4246 MovieClip Frame 1
stop();
Symbol 4250 MovieClip Frame 111
stop();
Symbol 4261 MovieClip Frame 20
stop();
Symbol 4301 MovieClip Frame 17
_root.foreground.bigswitch.gotoAndStop(1);
Symbol 4301 MovieClip Frame 50
_root.nBoss1Elec = 0;
_parent.gotoAndStop(2);
Symbol 4304 MovieClip Frame 1
effectSound = new Sound(this);
effectSound.attachSound("sebvom");
effectSound.start();
Symbol 4305 MovieClip Frame 25
stop();
Symbol 4306 MovieClip [sebastian] Frame 1
stop();
Symbol 4306 MovieClip [sebastian] Frame 2
stop();
Symbol 4306 MovieClip [sebastian] Frame 3
stop();
effectSound = new Sound(this);
effectSound.attachSound("sebexpose");
effectSound.start();
Symbol 4306 MovieClip [sebastian] Frame 4
stop();
Symbol 4306 MovieClip [sebastian] Frame 5
stop();