Frame 1
function resetii() {
boxmap2 = 0;
while (boxmap2 < 10) {
boxmap = 0;
while (boxmap < 10) {
_root[("b" + boxmap2) + boxmap].removeMovieClip();
boxmap++;
}
boxmap2++;
}
delete playy;
delete playx;
delete a_playy;
delete a_playx;
delete borderarray;
delete borderfill;
delete borderplay;
delete border_aplay;
delete step;
delete fin;
delete routine;
}
function reset() {
delete playy;
delete playx;
delete a_playy;
delete a_playx;
delete borderarray;
delete borderfill;
delete borderplay;
delete border_aplay;
delete step;
delete fin;
}
function bordervanish() {
if (borderarray == null) {
borderarray = [0, "b00", "b01", "b02", "b03", "b04", "b05", "b06", "b07", "b08", "b09", "b19", "b29", "b39", "b49", "b59", "b69", "b79", "b89", "b99", "b98", "b97", "b96", "b95", "b94", "b93", "b92", "b91", "b90", "b80", "b70", "b60", "b50", "b40", "b30", "b20", "b10", "b11", "b12", "b13", "b14", "b15", "b16", "b17", "b18", "b28", "b38", "b48", "b58", "b68", "b78", "b88", "b87", "b86", "b85", "b84", "b83", "b82", "b81", "b71", "b61", "b51", "b41", "b31", "b21", "b22", "b23", "b24", "b25", "b26", "b27", "b37", "b47", "b57", "b67", "b77", "b76", "b75", "b74", "b73", "b72", "b62", "b52", "b42", "b32", "b33", "b34", "b35", "b36", "b46", "b56", "b66", "b65", "b64", "b63", "b53", "b43", "b44", "b45", "b55", "b54"];
}
if (borderplay < 101) {
var vanmc = 0;
while (vanmc < (borderplay + 3)) {
_root[borderarray[vanmc]]._visible = false;
vanmc++;
}
borderplay = borderplay + 3;
trace(borderplay);
}
if (borderplay >= 80) {
var appmc = 0;
while (appmc < (border_aplay + 3)) {
_root[borderarray[appmc]]._visible = true;
appmc++;
}
border_aplay = border_aplay + 3;
}
}
function appear() {
if (a_playx == null) {
a_playx = 0;
a_playy = 0;
}
if (a_playy < 10) {
if (a_playx >= 10) {
a_playy++;
a_playx = 0;
} else {
var v_vana = 0;
while (v_vana < (a_playx + 2)) {
var v_van2a = 0;
while (v_van2a < (a_playy + 2)) {
_root[("b" + v_van2a) + v_vana]._visible = true;
v_van2a++;
}
v_vana++;
}
a_playx = a_playx + 3;
}
}
}
function vanish() {
if (playx == null) {
playx = 0;
playy = 0;
}
if (playy < 10) {
if (playx >= 10) {
playy = playy + 1;
playx = 0;
} else {
var v_van = 0;
while (v_van < (playx + 2)) {
var v_van2 = 0;
while (v_van2 < (playy + 2)) {
_root[("b" + v_van2) + v_van]._visible = false;
v_van2++;
}
v_van++;
}
playx = playx + 3;
}
}
}
function fall() {
boxmap2 = 0;
while (boxmap2 < 10) {
boxmap = 0;
while (boxmap < 10) {
_root[("b" + boxmap2) + boxmap]._y = 28 + (boxmap2 * _root.tsbox._height);
_root[("b" + boxmap2) + boxmap]._x = 28 + (boxmap * _root.tsbox._width);
boxmap++;
}
boxmap2++;
}
if (recordx == null) {
recordx = new Array();
recordy = new Array();
while (recordbox < 100) {
boxmap2 = 0;
while (boxmap2 < 10) {
boxmap = 0;
while (boxmap < 10) {
recordx[recordbox] = _root[("b" + boxmap2) + boxmap]._x;
recordy[recordbox] = _root[("b" + boxmap2) + boxmap]._y;
trace((("x" + recordx[recordbox]) + "y") + recordy[recordbox]);
boxmap++;
}
boxmap2++;
}
recordbox++;
}
}
}
function shrink() {
if (shin == 1) {
boxmap2 = 0;
while (boxmap2 < 10) {
boxmap = 0;
while (boxmap < 10) {
if (step >= 4000) {
_root[("b" + boxmap2) + boxmap]._xscale = 100;
shin = 2;
} else {
step++;
spd = 10;
_root[("b" + boxmap2) + boxmap]._y = 28 + (boxmap2 * _root.box._height);
_root[("b" + boxmap2) + boxmap]._x = 28 + (boxmap * _root.box._width);
_root[("b" + boxmap2) + boxmap]._xscale = _root[("b" + boxmap2) + boxmap]._xscale + spd;
_root[("b" + boxmap2) + boxmap]._yscale = _root[("b" + boxmap2) + boxmap]._yscale + spd;
}
boxmap++;
}
boxmap2++;
}
} else if (shin == null) {
boxmap2 = 0;
while (boxmap2 < 10) {
boxmap = 0;
while (boxmap < 10) {
if (step >= 2000) {
shin = 1;
} else if (_root[("b" + boxmap2) + boxmap]._xscale > -100) {
step++;
spd = 10;
_root[("b" + boxmap2) + boxmap]._y = 28 + (boxmap2 * _root.box._height);
_root[("b" + boxmap2) + boxmap]._x = 28 + (boxmap * _root.box._width);
_root[("b" + boxmap2) + boxmap]._xscale = _root[("b" + boxmap2) + boxmap]._xscale - spd;
_root[("b" + boxmap2) + boxmap]._yscale = _root[("b" + boxmap2) + boxmap]._yscale - spd;
}
boxmap++;
}
boxmap2++;
}
}
}
function flip() {
if (fin == 1) {
boxmap2 = 0;
while (boxmap2 < 10) {
boxmap = 0;
while (boxmap < 10) {
if (step >= 4000) {
_root[("b" + boxmap2) + boxmap]._xscale = 100;
fin = 2;
} else {
step++;
spd = 10;
_root[("b" + boxmap2) + boxmap]._y = centery_ + (boxmap2 * _root.tsbox._height);
_root[("b" + boxmap2) + boxmap]._x = centerx_ + (boxmap * _root.tsbox._width);
_root[("b" + boxmap2) + boxmap]._xscale = _root[("b" + boxmap2) + boxmap]._xscale + spd;
}
boxmap++;
}
boxmap2++;
}
} else if (fin == null) {
boxmap2 = 0;
while (boxmap2 < 10) {
boxmap = 0;
while (boxmap < 10) {
if (step >= 2000) {
fin = 1;
} else if (_root[("b" + boxmap2) + boxmap]._xscale > -100) {
step++;
spd = 10;
_root[("b" + boxmap2) + boxmap]._y = centery_ + (boxmap2 * _root.tsbox._height);
_root[("b" + boxmap2) + boxmap]._x = centerx_ + (boxmap * _root.tsbox._width);
_root[("b" + boxmap2) + boxmap]._xscale = _root[("b" + boxmap2) + boxmap]._xscale - spd;
}
boxmap++;
}
boxmap2++;
}
}
}
function rotate() {
boxmap2 = 0;
while (boxmap2 < 10) {
boxmap = 0;
while (boxmap < 10) {
_root[("b" + boxmap2) + boxmap]._y = 28 + (boxmap2 * _root.tsbox._height);
_root[("b" + boxmap2) + boxmap]._x = 28 + (boxmap * _root.tsbox._width);
_root[("b" + boxmap2) + boxmap]._rotation = _root[("b" + boxmap2) + boxmap]._rotation + 3;
boxmap++;
}
boxmap2++;
}
}
function loadtscreen() {
centery_ = 14;
centerx_ = 134;
boxmap2 = 0;
while (boxmap2 < 10) {
boxmap = 0;
while (boxmap < 10) {
_root.tsbox.duplicateMovieClip(("b" + boxmap2) + boxmap, d++);
_root[("b" + boxmap2) + boxmap]._y = centery_ + (boxmap2 * _root.tsbox._height);
_root[("b" + boxmap2) + boxmap]._x = centerx_ + (boxmap * _root.tsbox._width);
_root[("b" + boxmap2) + boxmap].gotoAndStop(Math.ceil((boxmap2 + "") + boxmap) + 1);
boxmap++;
}
boxmap2++;
}
}
_root.progress = 1;
_root.nextMon = 1;
stop();
function reSize() {
fscommand ("fullscreen", false);
fscommand ("allowscale", false);
if (poll == null) {
_root._x = _root._x - 240;
_root._y = _root._y - 0;
_root._xscale = 200;
_root._yscale = 200;
poll = 1;
pos = 1;
}
if (Key.isDown(192)) {
if (rez == null) {
if (pos >= 2) {
pos = 1;
} else {
pos++;
}
if (pos == 1) {
_root._x = _root._x - 240;
_root._y = _root._y - 0;
_root._xscale = 200;
_root._yscale = 200;
}
if (pos == 2) {
_root._x = 0;
_root._y = 0;
_root._xscale = 100;
_root._yscale = 100;
}
rez = 1;
}
} else {
delete rez;
}
}
function monLoadingScreen() {
if (monloadScreen == null) {
duplicateMovieClip (_root.loadMonscreen, "loadMonScreen1", 80100);
_root.loadMonScreen1._x = 240;
_root.loadMonScreen1._y = 120;
_root.loadMonScreen1.gotoAndStop(2);
monloadScreen = 1;
}
}
function floorLoadingScreen() {
if (((floorLower == 1) || (floorHigher == 1)) || (game_start == 1)) {
if (loadScreen == null) {
duplicateMovieClip (_root.loadFSscreen, "loadFSScreen1", 90100);
_root.loadFSScreen1._x = 240;
_root.loadFSScreen1._y = 120;
_root.loadFSScreen1.play();
loadScreen = 1;
}
} else {
delete loadScreen;
}
_root.loadFSscreen.stop();
}
function loadSound() {
if (_root.SFX == 1) {
_root.sound.duplicateMovieClip("sound1", 901000);
_root.soundeffect.duplicateMovieClip("soundeffect1", 902000);
_root.sounditem.duplicateMovieClip("sounditem1", 903000);
_root.soundspell.duplicateMovieClip("soundspell1", 904000);
_root.soundspell.duplicateMovieClip("soundvoice1", 905000);
}
}
function useEngine(value) {
_root.t = _root.game_hud1.macro._currentframe;
if (itemArraynum[value] == null) {
delete itemModW[value];
delete itemModA[value];
}
if (useitem == null) {
if ((_root.game_hud1.macro._currentframe + invenSelect) == value) {
if ((((((ItemArraynum[value] == 14) || (ItemArraynum[value] == 15)) || (ItemArraynum[value] == 16)) || (ItemArraynum[value] == 17)) || (ItemArraynum[value] == 18)) || (ItemArraynum[value] == 19)) {
if ((((((equipArray[4] == 14) || (equipArray[4] == 15)) || (equipArray[4] == 16)) || (equipArray[4] == 17)) || (equipArray[4] == 18)) || (equipArray[4] == 19)) {
} else {
a_weap = 1;
_root.char1.gotoAndStop(_root.char1._currentframe + 20);
}
}
if (((ItemArraynum[value] == 23) || (ItemArraynum[value] == 24)) || (ItemArraynum[value] == 25)) {
a_armor = 2;
_root.char1.gotoAndStop(_root.char1._currentframe + 80);
}
if (((ItemArraynum[value] == 20) || (ItemArraynum[value] == 21)) || (ItemArraynum[value] == 22)) {
a_armor = 1;
_root.char1.gotoAndStop(_root.char1._currentframe + 40);
}
if (ItemArraynum[value] == 57) {
}
if (ItemArraynum[value] == 58) {
}
if (ItemArraynum[value] == 42) {
zap_t_use = 1;
}
if (ItemArraynum[value] == 40) {
heal_use = 1;
}
if (ItemArraynum[value] == 41) {
heal_t_use = 1;
}
if (((ItemArraynum[value] == 7) || (ItemArraynum[value] == 9)) || (ItemArraynum[value] == 12)) {
craft_use = 1;
}
if (((((((((((((((((((((((((((((((ItemArraynum[value] == 14) || (ItemArraynum[value] == 15)) || (ItemArraynum[value] == 16)) || (ItemArraynum[value] == 17)) || (ItemArraynum[value] == 18)) || (ItemArraynum[value] == 19)) || (ItemArraynum[value] == 20)) || (ItemArraynum[value] == 21)) || (ItemArraynum[value] == 22)) || (ItemArraynum[value] == 23)) || (ItemArraynum[value] == 24)) || (ItemArraynum[value] == 25)) || (ItemArraynum[value] == 4)) || (ItemArraynum[value] == 8)) || (ItemArraynum[value] == 11)) || (ItemArraynum[value] == 26)) || (ItemArraynum[value] == 27)) || (ItemArraynum[value] == 28)) || (ItemArraynum[value] == 29)) || (ItemArraynum[value] == 30)) || (ItemArraynum[value] == 31)) || (ItemArraynum[value] == 32)) || (ItemArraynum[value] == 33)) || (ItemArraynum[value] == 34)) || (ItemArraynum[value] == 35)) || (ItemArraynum[value] == 36)) || (ItemArraynum[value] == 37)) || (ItemArraynum[value] == 38)) || (ItemArraynum[value] == 61)) || (ItemArraynum[value] == 62)) || (ItemArraynum[value] == 63)) {
armorNum = itemArraynum[value];
armor_use = 1;
}
if (ItemArraynum[value] == 60) {
para_t_use = 1;
}
if (ItemArraynum[value] == 59) {
bomb_use = 1;
}
if (ItemArraynum[value] == 48) {
wine_use = 1;
}
if (ItemArraynum[value] == 47) {
herbp_use = 1;
}
if (ItemArraynum[value] == 46) {
sonhip_use = 1;
}
if (ItemArraynum[value] == 45) {
liver_use = 1;
}
if (ItemArraynum[value] == 1) {
beef_use = 1;
}
if (ItemArraynum[value] == 13) {
redpot_use = 1;
}
if (ItemArraynum[value] == 6) {
if (concpot_use == 1) {
delete concpotTimer;
}
concpot_use = 1;
}
if (craft_use == 1) {
} else {
ItemNum[value] = ItemNum[value] - 1;
}
if (ItemNum[value] <= 0) {
delete ItemArraynum[value];
delete ItemNum[value];
if (armor_use == null) {
delete itemModW[value];
delete itemModA[value];
}
}
}
dropht = 1;
useitem = 1;
arraynum = 1;
}
}
function mousehud(arg, mnum) {
clickLimit = 100;
if (itemDrop == 1) {
if (m_input == 1) {
} else if (ItemNum[keys] == null) {
} else {
itemDropMouse.gotoAndStop(ItemArraynum[keys + invenSelect]);
itemDropMouse._width = 12;
itemDropMouse._height = 12;
itemDropMouse._x = _root._xmouse;
itemDropMouse._y = _root._ymouse;
dropIcon._x = _root._xmouse;
dropIcon._y = _root._ymouse;
dropIcon._width = 50;
dropIcon._height = 50;
}
} else if (((spellDrop == null) && (InvenDrop == null)) && (InvenDrop_b == null)) {
itemDropMouse._x = -999;
itemDropMouse._y = -999;
itemDropMouse.gotoAndStop(39);
}
if (arg) {
itemDrop = 1;
if (keys == mnum) {
if (_root.char1._currentframe <= 5) {
_root.char1.gotoAndStop(_root.char1._currentframe + 5);
}
if (doubleClickTimer >= 5) {
doubleClick = 1;
}
if (doubleClick == 1) {
delete doubleClick;
useEngine(keys + invenSelect);
delete m_input;
} else {
delete m_input;
doubleClickTimer = 100;
}
} else {
keys = mnum;
doubleClickTimer = 100;
}
} else if (doubleClickTimer < 1) {
delete doubleClickTimer;
} else {
doubleClickTimer = doubleClickTimer - 1;
}
}
function Inventory(KEY1, KEY2, KEY3, KEY4, KEY5, KEY6) {
mousehud(_root.game_hud1.macro.button1.hitTest(_xmouse, _ymouse, true) && (m_input == 1), 1);
mousehud(_root.game_hud1.macro.button2.hitTest(_xmouse, _ymouse, true) && (m_input == 1), 2);
mousehud(_root.game_hud1.macro.button3.hitTest(_xmouse, _ymouse, true) && (m_input == 1), 3);
mousehud(_root.game_hud1.macro.button4.hitTest(_xmouse, _ymouse, true) && (m_input == 1), 4);
mousehud(_root.game_hud1.macro.button5.hitTest(_xmouse, _ymouse, true) && (m_input == 1), 5);
if (Key.isDown(KEY1)) {
if (a_key == null) {
keys = 1;
useEngine(keys + invenSelect);
a_key = 1;
}
} else {
delete a_key;
delete useitem;
}
if (Key.isDown(KEY2)) {
if (b_key == null) {
keys = 2;
useEngine(keys + invenSelect);
b_key = 1;
}
} else {
delete b_key;
delete useitem;
}
if (Key.isDown(KEY3)) {
if (c_key == null) {
keys = 3;
useEngine(keys + invenSelect);
c_key = 1;
}
} else {
delete c_key;
delete useitem;
}
if (Key.isDown(KEY4)) {
if (x_key == null) {
keys = 4;
useEngine(keys + invenSelect);
x_key = 1;
}
} else {
delete x_key;
delete useitem;
}
if (Key.isDown(KEY5)) {
if (e_key == null) {
keys = 5;
useEngine(keys + invenSelect);
e_key = 1;
}
} else {
delete e_key;
delete useitem;
}
if (Key.isDown(KEY6)) {
if ((d_key == null) && (a_select == null)) {
dropEngine(keys + invenSelect);
d_key = 1;
}
} else {
delete d_key;
delete useitem;
delete dropitem;
}
}
function mouseInvenItem(arg, mnum) {
if (InvenDrop_b == 1) {
if (m_input == 1) {
delete m_input;
} else if (InvenitemArraynum[bkeys] == null) {
} else {
itemDropMouse.gotoAndStop(InvenitemArraynum[bkeys]);
if ((!_root._currentframe) == 1) {
itemDropMouse._width = 16;
itemDropMouse._height = 16;
}
itemDropMouse._x = _root._xmouse;
itemDropMouse._y = _root._ymouse;
}
} else if (((spellDrop == null) && (ItemDrop == null)) && (InvenDrop == null)) {
itemDropMouse._x = -999;
itemDropMouse._y = -999;
itemDropMouse.gotoAndStop(39);
}
if (arg) {
InvenDrop_b = 1;
if (bkeys == mnum) {
if (_root.char1._currentframe <= 5) {
_root.char1.gotoAndStop(_root.char1._currentframe + 5);
}
} else {
bkeys = mnum;
delete m_input;
}
}
}
function mouseInven(arg, mnum) {
if (InvenDrop == 1) {
if (m_input == 1) {
} else if (InventoryI[ikeys] == null) {
} else {
if (_root.select == "Item") {
itemDropMouse.gotoAndStop(InvenitemArraynum[ikeys]);
if ((!_root._currentframe) == 1) {
itemDropMouse._width = 16;
itemDropMouse._height = 16;
}
itemDropMouse._x = _root._xmouse;
itemDropMouse._y = _root._ymouse;
}
if (_root.select == "Spell") {
itemDropMouse.gotoAndStop(InventoryI[ikeys]);
if ((!_root._currentframe) == 1) {
itemDropMouse._width = 16;
itemDropMouse._height = 16;
}
itemDropMouse._x = _root._xmouse;
itemDropMouse._y = _root._ymouse;
}
}
} else if (((spellDrop == null) && (ItemDrop == null)) && (InvenDrop_b == null)) {
itemDropMouse._x = -999;
itemDropMouse._y = -999;
itemDropMouse.gotoAndStop(39);
}
if (arg) {
InvenDrop = 1;
if (ikeys == mnum) {
if (_root.char1._currentframe <= 5) {
_root.char1.gotoAndStop(_root.char1._currentframe + 5);
}
} else {
ikeys = mnum;
delete m_input;
}
}
}
function mousehudspells(arg, mnum) {
if (spellDrop == 1) {
if (m_input == 1) {
} else if (spellArray[keys] == null) {
} else {
itemDropMouse.gotoAndStop(spellArray[keys]);
if (_root._currentframe == 2) {
itemDropMouse._width = 16;
itemDropMouse._height = 16;
}
itemDropMouse._x = _root._xmouse;
itemDropMouse._y = _root._ymouse;
dropIcon._x = _root._xmouse;
dropIcon._y = _root._ymouse;
dropIcon._width = 50;
dropIcon._height = 50;
}
} else if (((InvenDrop == null) && (ItemDrop == null)) && (InvenDrop_b == null)) {
itemDropMouse._x = -999;
itemDropMouse._y = -999;
itemDropMouse.gotoAndStop(39);
}
if (arg) {
spellDrop = 1;
if (keys == mnum) {
if (_root.char1._currentframe <= 5) {
_root.char1.gotoAndStop(_root.char1._currentframe + 5);
}
if (doubleClickTimer >= 5) {
doubleClick = 1;
}
if (doubleClick == 1) {
spellUseEngine(keys);
delete doubleClick;
delete m_input;
} else {
delete m_input;
doubleClickTimer = 100;
}
} else {
keys = mnum;
doubleClickTimer = 100;
delete m_input;
}
} else if (doubleClickTimer < 1) {
delete doubleClickTimer;
} else {
doubleClickTimer = doubleClickTimer - 1;
}
}
function SpellUse(KEY1, KEY2, KEY3, KEY4, KEY5, KEY6) {
mousehudspells(_root.game_hud1.spellList.item1.hitTest(_xmouse, _ymouse, true) && (m_input == 1), 1);
mousehudspells(_root.game_hud1.spellList.item2.hitTest(_xmouse, _ymouse, true) && (m_input == 1), 2);
mousehudspells(_root.game_hud1.spellList.item3.hitTest(_xmouse, _ymouse, true) && (m_input == 1), 3);
mousehudspells(_root.game_hud1.spellList.item4.hitTest(_xmouse, _ymouse, true) && (m_input == 1), 4);
mousehudspells(_root.game_hud1.spellList.item5.hitTest(_xmouse, _ymouse, true) && (m_input == 1), 5);
mousehudspells(_root.game_hud1.spellList.item6.hitTest(_xmouse, _ymouse, true) && (m_input == 1), 6);
mousehudspells(_root.game_hud1.spellList.item7.hitTest(_xmouse, _ymouse, true) && (m_input == 1), 7);
if (Key.isDown(KEY1)) {
if (a_key == null) {
trace("HW");
keys = 1;
spellUseEngine(keys);
a_key = 1;
}
} else {
delete a_key;
}
if (Key.isDown(KEY2)) {
if (b_key == null) {
keys = 2;
spellUseEngine(keys);
b_key = 1;
}
} else {
delete b_key;
}
if (Key.isDown(KEY3)) {
if (c_key == null) {
keys = 3;
spellUseEngine(keys);
c_key = 1;
}
} else {
delete c_key;
}
if (Key.isDown(KEY4)) {
if (x_key == null) {
keys = 4;
spellUseEngine(keys);
x_key = 1;
}
} else {
delete x_key;
}
if (Key.isDown(KEY5)) {
if (e_key == null) {
keys = 5;
spellUseEngine(keys);
e_key = 1;
}
} else {
delete e_key;
}
if (Key.isDown(KEY6)) {
if (s_key == null) {
keys = 6;
spellUseEngine(keys);
s_key = 1;
}
} else {
delete s_key;
}
}
function ArmorDrop(KEY1, KEY2, KEY3, KEY4, KEY5, KEY6) {
if (Key.isDown(KEY1)) {
if (a_key == null) {
keys = 1;
equipdropEngine(keys);
a_key = 1;
}
} else {
delete a_key;
}
if (Key.isDown(KEY2)) {
if (b_key == null) {
keys = 2;
equipdropEngine(keys);
b_key = 1;
}
} else {
delete b_key;
}
if (Key.isDown(KEY3)) {
if (c_key == null) {
keys = 3;
equipdropEngine(keys);
c_key = 1;
}
} else {
delete c_key;
}
if (Key.isDown(KEY4)) {
if (x_key == null) {
keys = 4;
equipdropEngine(keys);
x_key = 1;
}
} else {
delete x_key;
}
if (Key.isDown(KEY5)) {
if (e_key == null) {
keys = 5;
equipdropEngine(keys);
e_key = 1;
}
} else {
delete e_key;
}
}
function readout_stats() {
if (class == 1) {
dex_readout = stats_dex;
str_readout = Math.abs(stats_str + m_buff);
agi_readout = (Math.abs(Math.ceil(stats_agi_full) - 18) + 1) * 4;
}
if (class == 2) {
dex_readout = stats_dex;
str_readout = Math.abs(stats_str + m_buff);
agi_readout = (Math.abs(Math.ceil(stats_agi_full) - 18) + 1) * 4;
}
if (class == 3) {
dex_readout = stats_dex;
str_readout = Math.abs(stats_str + m_buff);
agi_readout = (Math.abs(Math.ceil(stats_agi_full) - 18) + 1) * 4;
}
if (class == null) {
class = 1;
}
if (mvp_dex == null) {
mvp_dex = 0;
mvp_str = 0;
mvp_agi = 0;
}
if (class == 1) {
if (hlthx == null) {
manax = 26;
hlthx = 66;
base_dex = 10 + mvp_dex;
base_str = 50 + mvp_str;
base_agi = 10 + mvp_agi;
}
classoutput = "Rogue";
}
if (class == 2) {
if (hlthx == null) {
manax = 14;
hlthx = 135;
base_dex = 20 + mvp_dex;
base_str = 200 + mvp_str;
base_agi = 6 + mvp_agi;
}
classoutput = "Warrior";
}
if (class == 3) {
if (hlthx == null) {
manax = 58;
hlthx = 47;
base_dex = 10;
base_str = 1;
base_agi = 25;
}
classoutput = "Mage";
}
if (class == 4) {
if (hlthx == null) {
manax = 58;
hlthx = 47;
}
classoutput = "Poet";
base_dex = 20;
base_str = 10;
base_agi = 25;
}
stats_exp_output = (stats_exp + "/") + tnl;
_root.guiRO = ((((((((((((("HP:" + _root.player_health) + "/") + _root.stats_health) + "<br>") + "MP:") + _root.player_mana) + "/") + _root.stats_mana) + "<br>") + "EXP:") + _root.stats_exp_output) + "<br>") + "$:") + _root.gold;
_root.equipoutput1 = ((((((((((((((((((((((((((((((((((((("HP:" + _root.player_health) + "/") + _root.stats_health) + "<br>") + "MP:") + _root.player_mana) + "/") + _root.stats_mana) + "<br>") + "EXP:") + _root.stats_exp_output) + "<br>") + "GOLD:") + _root.gold) + "<br>") + _root.classoutput) + "<br>") + "STR ") + _root.str_readout) + " + ") + _root.mvp_str) + "<br>") + "AGI ") + _root.agi_readout) + " + ") + _root.mvp_agi) + "<br>") + "DEX ") + _root.dex_readout) + " + ") + _root.mvp_dex) + "<br>") + "LVL ") + _root.level) + "<br>") + "FLOOR ") + _root.floor) + "<br>";
}
function player_stats(player) {
if (Key.isDown(16)) {
if (shift_input == null) {
shift_input = 1;
}
} else {
delete shift_input;
}
if (stats_agi == null) {
stats_agi = 24;
}
if (level >= 99) {
tnl = 299582916 /* 0x11DB45C4 */;
}
tnl = Math.ceil(625 * level);
if (tnl == null) {
stats_exp = 100000 /* 0x0186A0 */;
tnl = Math.ceil(625 * level);
}
if ((stats_exp >= tnl) && (level < 99)) {
if (lvlup >= 10) {
lvlup = 1;
}
lvlup++;
level_up_bgm();
if (_root._currentframe == 1) {
} else {
stopAllSounds();
}
trace(_root["levelup_mc" + lvlup]._name);
_root.levelup_mc.duplicateMovieClip("levelup_mc" + lvlup, 900 + lvlup);
if (_root["levelup_mc" + lvlup].lx == null) {
_root["levelup_mc" + lvlup]._x = player._x;
_root["levelup_mc" + lvlup]._y = player._y - 20;
_root["levelup_mc" + lvlup].gotoAndPlay(2);
_root["levelup_mc" + lvlup].lx = 1;
}
if (class == 1) {
stats_mana = stats_mana + 226;
stats_health = stats_health + 166;
}
if (class == 2) {
stats_mana = stats_mana + 214;
stats_health = stats_health + 235;
}
if (class == 3) {
stats_mana = stats_mana + 258;
stats_health = stats_health + 147;
}
if (class == 4) {
stats_mana = stats_mana + 258;
stats_health = stats_health + 147;
}
if (class == 1) {
if ((stats_mana >= furyLevel[flvl + 1]) && (flvl < 2)) {
flvl++;
chat(("You've learned " + furyLeveltext[flvl]) + " Fury", 30, 5);
}
}
if (class == 2) {
if ((stats_mana >= furyLevel[flvl + 1]) && (flvl < 3)) {
flvl++;
chat(("You've learned " + furyLeveltext[flvl]) + " Fury", 30, 5);
}
}
player_health = stats_health;
player_mana = stats_mana;
level++;
levelmax = 9;
levelreadout = "LvL:" + level;
chat("You've gained an insight", 30, 5);
if (stats_agi_full < 3) {
} else {
stats_agi = stats_agi - 0.242424242424242;
}
if (class == 3) {
stats_str = 1;
stats_dex = stats_dex + 1;
input_agi = input_agi + 1;
delete stats_exp;
delete stats_ro_exp;
}
if (class == 1) {
stats_str = stats_str + 1;
stats_dex = Math.ceil(stats_str / 3);
input_agi = input_agi + 1;
delete stats_exp;
delete stats_ro_exp;
}
if (class == 2) {
stats_str = stats_str + 1;
stats_dex = Math.ceil(stats_str / 3);
input_agi = input_agi + 1;
delete stats_exp;
delete stats_ro_exp;
}
while (gamestrt) {
level++;
chat("You've gained an insight", 30, 5);
if (class == 1) {
stats_mana = stats_mana + 26;
stats_health = stats_health + 66;
player_health = stats_health;
player_mana = stats_mana;
}
if (class == 2) {
stats_mana = stats_mana + 14;
stats_health = stats_health + 135;
player_health = stats_health;
player_mana = stats_mana;
}
if (class == 3) {
stats_mana = stats_mana + 58;
stats_health = stats_health + 47;
player_health = stats_health;
player_mana = stats_mana;
}
if (class == 4) {
stats_mana = stats_mana + 58;
stats_health = stats_health + 47;
player_health = stats_health;
player_mana = stats_mana;
}
}
}
}
function Item_List() {
if (itemArray == null) {
InventoryI = new Array();
InvenitemNum = new Array();
InvenitemArraynum = new Array();
itemModW[1] = 0;
itemModA[1] = 0;
itemModW[2] = 0;
itemModA[2] = 0;
itemModW[3] = 0;
itemModA[3] = 0;
itemModW[4] = 0;
itemModA[4] = 0;
itemModW[5] = 0;
itemModA[5] = 0;
itemArraynum = new Array();
itemArray = new Array();
itemNum = new Array();
equipArray = new Array();
equipmodA = new Array();
equipmodW = new Array();
spellArray = new Array();
itemGold = new Array();
itemMsg = new Array();
itemGold[0] = null;
itemGold[1] = 10;
itemGold[2] = 1000;
itemGold[3] = 100;
itemGold[4] = 1;
itemMsg[0] = null;
itemMsg[1] = "Beef";
itemMsg[2] = "Coins";
itemMsg[3] = "Gold";
itemMsg[4] = "Red Ring" + armormod[eabox];
itemMsg[5] = "Coins100";
itemMsg[6] = "Concentration potion";
itemMsg[7] = "Dark Amber";
itemMsg[8] = "Purple ring" + armormod[eabox];
itemMsg[9] = "Amber";
itemMsg[10] = "1 Coin";
itemMsg[11] = "Blue ring" + armormod[eabox];
itemMsg[12] = "Tiger Meat";
itemMsg[13] = "Red potion";
itemMsg[14] = (weapmod[ewbox] + "Wooden saber") + armormod[eabox];
itemMsg[15] = (weapmod[ewbox] + "Sword") + armormod[eabox];
itemMsg[16] = (weapmod[ewbox] + "Moonblade") + armormod[eabox];
itemMsg[17] = (weapmod[ewbox] + "Dagger") + armormod[eabox];
itemMsg[18] = (weapmod[ewbox] + "Blood") + armormod[eabox];
itemMsg[19] = (weapmod[ewbox] + "Nimble blade") + armormod[eabox];
itemMsg[20] = "Star scale mail" + armormod[eabox];
itemMsg[21] = "Moon scale mail" + armormod[eabox];
itemMsg[22] = "Sun scale mail" + armormod[eabox];
itemMsg[23] = "Star armor" + armormod[eabox];
itemMsg[24] = "Moon armor" + armormod[eabox];
itemMsg[25] = "Sun armor" + armormod[eabox];
itemMsg[26] = "Titanium glove" + armormod[eabox];
itemMsg[27] = "Whisper bracelet" + armormod[eabox];
itemMsg[28] = "Tall shield" + armormod[eabox];
itemMsg[29] = "Bamboo shield" + armormod[eabox];
itemMsg[30] = "Steel shield" + armormod[eabox];
itemMsg[31] = "Hide shield" + armormod[eabox];
itemMsg[32] = "Brass shield" + armormod[eabox];
itemMsg[33] = "Titanium shield" + armormod[eabox];
itemMsg[34] = "Light buckler" + armormod[eabox];
itemMsg[35] = "Basic buckler" + armormod[eabox];
itemMsg[36] = "Heavy buckler" + armormod[eabox];
itemMsg[37] = "Amber buckler" + armormod[eabox];
itemMsg[38] = "Enchanted buckler" + armormod[eabox];
itemMsg[39] = "Empty";
itemMsg[40] = "Heal Scroll Lvl: 1";
itemMsg[41] = "Heal Scroll Target Lvl: 1";
itemMsg[42] = "Ignite";
itemMsg[43] = "Invis Scroll Lvl: 1";
itemMsg[44] = "Flank/Backstab Scroll Lvl: " + meleenum;
itemMsg[45] = "Bear's Liver";
itemMsg[46] = "Sonhi pipe";
itemMsg[47] = "Herb pipe";
itemMsg[48] = "Wine";
itemMsg[49] = "Aged wine";
itemMsg[50] = "Fury";
itemMsg[51] = "Might Scroll Lvl: 1";
itemMsg[52] = "Shadow Figure Scroll Lvl: 1";
itemMsg[53] = "Might/ShadFig Scroll Lvl: 1";
itemMsg[54] = "Bless Scroll Lvl: 1";
itemMsg[55] = "Potence Scroll Lvl: 1";
itemMsg[56] = "Bless/Potence Scroll Lvl: 1";
itemMsg[57] = "V-Bezerk";
itemMsg[58] = "V-Desperate Attack";
itemMsg[59] = "Shatter Bomb";
itemMsg[60] = "Paralyze";
itemFillOrder = newArray();
itemMsg[61] = "Star Clothes";
itemMsg[62] = "Moon Clothes";
itemMsg[63] = "Sun Clothes";
if (class == 3) {
InventoryI[1] = 42;
InventoryI[2] = 60;
InventoryI[3] = 40;
InventoryI[4] = 41;
InventoryI[5] = 39;
InventoryI[6] = null;
InventoryI[7] = null;
InventoryI[8] = null;
InventoryI[9] = null;
InventoryI[10] = null;
InvenitemNum[1] = 300;
InvenitemArraynum[1] = 48;
InvenitemNum[2] = 2;
InvenitemArraynum[2] = 4;
InvenitemNum[3] = 1;
InvenitemArraynum[3] = 61;
InvenitemNum[4] = 10;
InvenitemArraynum[4] = 13;
InvenitemArraynum[5] = 39;
if (debugGame == 1) {
spellArray[1] = 56;
spellArray[2] = 50;
spellArray[3] = 40;
spellArray[4] = 41;
itemNum[1] = 5;
itemArraynum[1] = 6;
itemNum[2] = 1;
itemArraynum[2] = 20;
itemNum[3] = 1;
itemArraynum[3] = 14;
itemNum[4] = 1;
itemArraynum[4] = 28;
itemNum[5] = 5;
itemArraynum[5] = 42;
}
if (gold == null) {
gold = 55000;
}
}
if (class == 2) {
InventoryI[1] = 56;
InventoryI[2] = 50;
InventoryI[3] = 40;
InventoryI[4] = 41;
InventoryI[5] = null;
InventoryI[6] = null;
InventoryI[7] = null;
InventoryI[8] = null;
InventoryI[9] = null;
InventoryI[10] = null;
InvenitemNum[1] = 5;
InvenitemArraynum[1] = 6;
InvenitemNum[2] = 1;
InvenitemArraynum[2] = 20;
InvenitemNum[3] = 1;
InvenitemArraynum[3] = 14;
InvenitemNum[4] = 1;
InvenitemArraynum[4] = 28;
InvenitemNum[5] = 5;
InvenitemArraynum[5] = 42;
if (debugGame == 1) {
spellArray[1] = 56;
spellArray[2] = 50;
spellArray[3] = 40;
spellArray[4] = 41;
spellArray[6] = 57;
itemNum[1] = 5;
itemArraynum[1] = 6;
itemNum[2] = 1;
itemArraynum[2] = 20;
itemNum[3] = 1;
itemArraynum[3] = 14;
itemNum[4] = 1;
itemArraynum[4] = 28;
itemNum[5] = 5;
itemArraynum[5] = 42;
}
if (gold == null) {
gold = 55000;
}
}
if (class == 1) {
InventoryI[1] = 53;
InventoryI[2] = 50;
InventoryI[3] = 43;
InventoryI[4] = 40;
InventoryI[5] = 41;
InventoryI[6] = null;
InventoryI[7] = null;
InventoryI[8] = null;
InventoryI[9] = null;
InventoryI[10] = null;
InvenitemNum[1] = 5;
InvenitemArraynum[1] = 6;
InvenitemNum[2] = 1;
InvenitemArraynum[2] = 23;
InvenitemNum[3] = 1;
InvenitemArraynum[3] = 14;
InvenitemNum[4] = 1;
InvenitemArraynum[4] = 34;
InvenitemNum[5] = 20;
InvenitemArraynum[5] = 42;
if (debugGame == 1) {
spellArray[1] = 53;
spellArray[2] = 50;
spellArray[3] = 43;
spellArray[4] = 40;
spellArray[5] = 41;
spellArray[6] = 58;
itemNum[1] = 5;
itemArraynum[1] = 6;
itemNum[2] = 1;
itemArraynum[2] = 23;
itemNum[3] = 1;
itemArraynum[3] = 14;
itemNum[4] = 1;
itemArraynum[4] = 34;
itemNum[5] = 20;
itemArraynum[5] = 42;
}
if (gold == null) {
gold = 5000;
}
}
}
}
function spell_effects(map, c1, c2, c3, c4, c6, c7, c8, c9) {
if (guioption == null) {
guioption = 4;
}
if (_root.guiButton == 1) {
guioption++;
guiSwitch = 1;
}
if (_root.guiButton == null) {
delete guiSwitch;
}
if (_root[atkSpawn] == _root.mon9) {
} else {
regcolor = new Color(_root[atkSpawn]);
reg_altcol = new Object();
reg_altcol = {ra:"100", rb:NewVrb3, ga:"100", gb:NewVrb2, ba:"100", bb:NewVrb3, aa:"100", ab:"0"};
regcolor.setTransform(reg_altcol);
}
NmeAttack = {ra:"100", rb:110, ga:"100", gb:0, ba:"100", bb:0, aa:"100", ab:"0"};
colorGui = new Color(_root.game_hud1);
colorGui2 = new Color(_root.mvpchest1);
colorGui3 = new Color(_root["npc_window_" + windowNum]);
colorGui4 = new Color(_root.mousetipmc);
colorGui5 = new Color(_root.mc_cs_select);
colorGui6 = new Color(_root.cs_char_sel1.cs.cs_char_sel.house);
colorGui7 = new Color(_root.mousetarget);
colorGui8 = new Color(_root.landmouse);
if (_root.m_click_attack == 1) {
colorGui7.setTransform(NmeAttack);
colorGui8.setTransform(NmeAttack);
}
if (guioption >= 5) {
guioption = 1;
}
if ((guioption == 1) && (_root.m_click_attack == null)) {
colorGui.setTransform(Koguryo);
colorGui2.setTransform(Koguryo);
colorGui3.setTransform(Koguryo);
colorGui4.setTransform(Koguryo);
colorGui5.setTransform(Koguryo);
colorGui6.setTransform(Koguryo);
colorGui7.setTransform(Koguryo);
colorGui8.setTransform(Koguryo);
_root.guiColorName = "Koguryo";
}
if ((guioption == 2) && (_root.m_click_attack == null)) {
colorGui.setTransform(Buya);
colorGui2.setTransform(Buya);
colorGui3.setTransform(Buya);
colorGui4.setTransform(Buya);
colorGui5.setTransform(Buya);
colorGui6.setTransform(Buya);
colorGui7.setTransform(Buya);
colorGui8.setTransform(Buya);
_root.guiColorName = "Buya";
}
if ((guioption == 3) && (_root.m_click_attack == null)) {
colorGui.setTransform(Nagnang);
colorGui2.setTransform(Nagnang);
colorGui3.setTransform(Nagnang);
colorGui4.setTransform(Nagnang);
colorGui5.setTransform(Nagnang);
colorGui6.setTransform(Nagnang);
colorGui7.setTransform(Nagnang);
colorGui8.setTransform(Nagnang);
_root.guiColorName = "Nagnang";
}
if ((guioption == 4) && (_root.m_click_attack == null)) {
colorGui.setTransform(Default);
colorGui2.setTransform(Default);
colorGui3.setTransform(Default);
colorGui4.setTransform(Default);
colorGui5.setTransform(Default);
colorGui6.setTransform(Default);
colorGui7.setTransform(Default);
colorGui8.setTransform(Default);
_root.guiColorName = "Neutral";
}
if (guiSwitch == 1) {
if (guicolor == null) {
guioption++;
guicolor = 1;
}
} else {
delete guicolor;
}
door_col = {ra:"0", rb:0, ga:"0", gb:"0", ba:"0", bb:"0", aa:"15", ab:"0"};
Koguryo = {ra:"100", rb:0, ga:"100", gb:78, ba:"100", bb:110, aa:"100", ab:"0"};
Buya = {ra:"100", rb:90, ga:"100", gb:90, ba:"100", bb:0, aa:"100", ab:"0"};
Nagnang = {ra:"100", rb:116, ga:"100", gb:0, ba:"100", bb:110, aa:"100", ab:"0"};
Default = {ra:"100", rb:0, ga:"100", gb:0, ba:"100", bb:0, aa:"100", ab:"0"};
NewVrb = (colvrb + 5) + stgvrb;
NewVrb2 = ((colvrb + 5) + stgvrb) + ((-_root.floor) * 5);
NewVrb3 = ((colvrb + 5) + stgvrb) + (_root.floor * 5);
stgvrb = _root.floor * 0.5;
lighteffect = new Color(_root.light);
pooleffect = new Color(_root.pool);
playerst = new Color(_root.char1);
enemyc_reset1 = new Color(_root["enemy" + monSpawn]);
enemyc_reset2 = new Color(_root["enemy" + monSpawn]);
enemyc_reset3 = new Color(_root["enemy" + monSpawn]);
enemyc_reset4 = new Color(_root["enemy" + monSpawn]);
loadScreenEffect = new Color(_root.loadFSScreen);
enemyc_door = new Color(_root[atkSpawn]);
enemyc_atkColor = new Color(_root[atkSpawn]);
playerc_atkColor = new Color(_root[playerName]);
enemyspellColor = new Color(_root["enemy" + order]);
spellmapColor = new Color(map);
spellmapColor1 = new Color(c1);
spellmapColor2 = new Color(c2);
spellmapColor3 = new Color(c3);
spellmapColor4 = new Color(c4);
spellmapColor6 = new Color(c6);
spellmapColor7 = new Color(c7);
spellmapColor8 = new Color(c8);
spellmapColor9 = new Color(c9);
bombEffectColor = new Color(_root["effect" + bombset]);
bombTransform = {ra:"-100", rb:bombVrb, ga:"-100", gb:bombVrb, ba:"-100", bb:bombVrb, aa:"100", ab:"0"};
whiteTransform = {ra:"100", rb:whiteVrb, ga:"100", gb:whiteVrb, ba:"100", bb:whiteVrb, aa:"100", ab:"0"};
effectTransform = {ra:"100", rb:NewVrb3, ga:"100", gb:NewVrb2, ba:"100", bb:NewVrb3, aa:"100", ab:"0"};
effectTransform2 = {ra:"100", rb:colvrc, ga:"100", gb:colvrc, ba:"100", bb:colvrc, aa:"100", ab:"0"};
effectTransform3 = {ra:"100", rb:NewVrb3, ga:"100", gb:NewVrb2, ba:"100", bb:NewVrb3, aa:"100", ab:"0"};
effectTransform4 = {ra:"100", rb:0, ga:"100", gb:0, ba:"100", bb:0, aa:"100", ab:"0"};
effectTransform5 = {ra:colvratk, rb:colvratk, ga:colvratk2, gb:colvratk, ba:colvratk2, bb:colvratk, aa:"100", ab:"0"};
effectTransform6 = {ra:plycol, rb:plycol, ga:plycol, gb:plycol, ba:plycol, bb:plycol, aa:"100", ab:"0"};
if (bombEffect == 1) {
spellmapColor.setTransform(bombTransform);
spellmapColor1.setTransform(bombTransform);
spellmapColor2.setTransform(bombTransform);
spellmapColor3.setTransform(bombTransform);
spellmapColor4.setTransform(bombTransform);
spellmapColor6.setTransform(bombTransform);
spellmapColor7.setTransform(bombTransform);
spellmapColor8.setTransform(bombTransform);
spellmapColor9.setTransform(bombTransform);
loadScreenEffect.setTransform(bombTransform);
playerst.setTransform(bombTransform);
enemyspellColor.setTransform(bombTransform);
bombEffectColor.setTransform(bombTransform);
} else if (whiteScreen_effect == 1) {
spellmapColor.setTransform(whiteTransform);
spellmapColor1.setTransform(whiteTransform);
spellmapColor2.setTransform(whiteTransform);
spellmapColor3.setTransform(whiteTransform);
spellmapColor4.setTransform(whiteTransform);
spellmapColor6.setTransform(whiteTransform);
spellmapColor7.setTransform(whiteTransform);
spellmapColor8.setTransform(whiteTransform);
spellmapColor9.setTransform(whiteTransform);
loadScreenEffect.setTransform(whiteTransform);
playerst.setTransform(whiteTransform);
enemyspellColor.setTransform(whiteTransform);
} else {
spellmapColor.setTransform(effectTransform);
spellmapColor1.setTransform(effectTransform);
spellmapColor2.setTransform(effectTransform);
spellmapColor3.setTransform(effectTransform);
spellmapColor4.setTransform(effectTransform);
spellmapColor6.setTransform(effectTransform);
spellmapColor7.setTransform(effectTransform);
spellmapColor8.setTransform(effectTransform);
spellmapColor9.setTransform(effectTransform);
loadScreenEffect.setTransform(effectTransform);
}
if (playerHit == 1) {
if (plyHitTimerst == 1) {
playerc_atkColor.setTransform(effectTransform6);
if (plycol == null) {
plycol = 255;
}
}
if (plyHitTimerst >= 2) {
playerc_atkColor.setTransform(effectTransform6);
delete plyHitTimerst;
} else {
plyHitTimerst++;
if (plycol >= 100) {
plycol = plycol - 25;
}
}
if (playerHiteffect >= 10) {
playerc_atkColor.setTransform(effectTransform4);
delete plyHitTimerst;
delete playerHit;
delete playerHiteffect;
delete plycol;
} else {
playerHiteffect++;
}
}
if (nmeHit == 1) {
if (nmeHitTimerst == 1) {
if (graphatk == null) {
if (graphcombo >= 3) {
graphcombo = 1;
} else {
graphcombo++;
}
if (graphcombo == 3) {
pointsnum++;
_root.atkspell.duplicateMovieClip("atkspells" + pointsnum, 610 + pointsnum);
if (_root[atkSpawn]._x == null) {
} else if (_root["atkspells" + pointsnum].lx == null) {
_root["atkspells" + pointsnum]._x = _root[atkSpawn]._x;
_root["atkspells" + pointsnum]._y = _root[atkSpawn]._y - 20;
_root.sound1.gotoAndStop(8);
_root["atkspells" + pointsnum].gotoAndStop(3);
_root["atkspells" + pointsnum].lx = 1;
}
}
if (graphcombo == 2) {
pointsnum++;
_root.atkspell.duplicateMovieClip("atkspells" + pointsnum, 610 + pointsnum);
if (_root[atkSpawn]._x == null) {
} else if (_root["atkspells" + pointsnum].lx == null) {
_root["atkspells" + pointsnum]._x = _root[atkSpawn]._x;
_root["atkspells" + pointsnum]._y = _root[atkSpawn]._y - 20;
_root.sound1.gotoAndStop(7);
_root["atkspells" + pointsnum].gotoAndStop(2);
_root["atkspells" + pointsnum].lx = 1;
}
}
if (graphcombo == 1) {
pointsnum++;
_root.atkspell.duplicateMovieClip("atkspells" + pointsnum, 610 + pointsnum);
if (_root[atkSpawn]._x == null) {
} else if (_root["atkspells" + pointsnum].lx == null) {
_root["atkspells" + pointsnum]._x = _root[atkSpawn]._x;
_root["atkspells" + pointsnum]._y = _root[atkSpawn]._y - 20;
_root.sound1.gotoAndStop(6);
_root["atkspells" + pointsnum].gotoAndStop(1);
_root["atkspells" + pointsnum].lx = 1;
}
}
graphatk = 1;
}
enemyc_atkColor.setTransform(effectTransform5);
colvratk = 255;
colvratk2 = 255;
_root[atkSpawn]._x = _root[atkSpawn]._x + 5;
_root[atkSpawn]._xscale = 120;
_root[atkSpawn]._yscale = 120;
}
if (nmeHitTimerst >= 2) {
enemyc_atkColor.setTransform(effectTransform5);
colvratk = 100;
colvratk2 = 100;
_root[atkSpawn]._x = _root[atkSpawn]._x - 5;
_root[atkSpawn]._xscale = 100;
_root[atkSpawn]._yscale = 100;
delete nmeHitTimerst;
} else {
nmeHitTimerst++;
}
if (nmeHiteffect >= (10 - (level / 10))) {
_root[atkSpawn]._xscale = 100;
_root[atkSpawn]._yscale = 100;
delete nmeHit;
delete nmeHiteffect;
delete graphatk;
} else {
nmeHiteffect++;
}
}
if (Key.isDown(82)) {
bombEffect = 1;
chat("bombEffect", 30, 5);
}
if (bombEffect == 1) {
if (bombVrb >= 255) {
bombVrb = 0;
delete bombEffect;
}
if (bombVrb < 255) {
bombVrb = bombVrb + 64;
} else {
delete bombEffect;
bombVrb = 100;
}
}
if (whiteScreen_effect == 1) {
if (whiteVrb >= 255) {
if (floorComSound == null) {
stopAllSounds();
duplicateMovieClip (_root.floorComplete_, "floorComplete_1", 12100);
_root.floorComplete_1.gotoAndPlay(2);
_root.floorComplete_1._x = 240;
_root.floorComplete_1._y = 120;
floorComSound = 1;
whiteVrb = 100;
delete whiteScreen_effect;
}
}
if (whiteVrb < 255) {
whiteVrb = whiteVrb + 32;
} else {
delete whiteScreen_effect;
whiteVrb = 100;
delete floorComSound;
}
}
if (effectst == null) {
delete effectend;
if (colvrb < -75) {
effectst = 1;
} else {
if (stgm == null) {
playerst.setTransform(effectTransform);
pooleffect.setTransform(effectTransform);
lighteffect.setTransform(effectTransform);
} else if (_root.pool.hitTest(_root["zap" + itemuse]._x, _root["zap" + itemuse]._y + 25, true)) {
pooleffect.setTransform(effectTransform2);
lighteffect.setTransform(effectTransform2);
} else {
pooleffect.setTransform(effectTransform);
lighteffect.setTransform(effectTransform);
}
enemyspellColor.setTransform(effectTransform2);
colvrb = colvrb - 5;
colvrc = colvrc + 150;
colset++;
if (colset >= 2) {
colvrc = 100;
colset = 0;
}
}
}
if (effectst == 1) {
if (effectend == null) {
playerst.setTransform(effectTransform4);
pooleffect.setTransform(effectTransform3);
lighteffect.setTransform(effectTransform3);
enemyc_reset1.setTransform(effectTransform3);
enemyc_reset2.setTransform(effectTransform3);
enemyc_reset3.setTransform(effectTransform3);
enemyc_reset4.setTransform(effectTransform3);
effectend = 1;
}
if (colvrb > -10) {
if (stgm == null) {
playerst.setTransform(effectTransform4);
stgm = 1;
}
spellmapColor.setTransform(effectTransform3);
} else {
colvrb = colvrb + 5;
colvrc = 100;
}
}
}
function mousetip() {
if ((_root.spellDrop == 1) || (_root.ItemDrop == 1)) {
_root.mousetipmc._x = -999;
delete tooltiptimer;
}
if (_root._currentframe == 1) {
var itemSelect = 1;
while (itemSelect < 11) {
mousehudspells(_root.mc_cs_select.mc_select.selection["spell" + itemSelect].hitTest(_root._xmouse, _root._ymouse, true) && (m_input == 1), itemSelect);
mousehudspells(_root.mc_cs_select.mc_select.selection["item" + itemSelect].hitTest(_root._xmouse, _root._ymouse, true) && (m_input == 1), itemSelect);
mousespell = 1;
if (_root.mc_cs_select.mc_select.selection["spell" + itemSelect].hitTest(_root._xmouse, _root._ymouse, true)) {
mouseinfo = itemSelect;
}
if (_root.mc_cs_select.mc_select.selection["item" + itemSelect].hitTest(_root._xmouse, _root._ymouse, true)) {
mouseinfo = itemSelect;
}
itemSelect++;
}
}
if (_root["npc_window_" + windowNum]._currentframe == 3) {
} else if (mouseinven == 1) {
shoprocur3 = itemMsg[InventoryI[mouseinfo]];
} else if (mouseequip == 1) {
itemdescro = ((descW[equipModW[mouseinfo]] + "<br>") + descA[equipModA[mouseinfo]]) + "<br>";
shoprocur1 = weapmod[equipModW[mouseinfo]];
shoprocur2 = armormod[equipModA[mouseinfo]];
shoprocur3 = itemMsg[equipArray[mouseinfo]];
} else if (mousespell == 1) {
shoprocur3 = itemMsg[spellArray[mouseinfo]];
delete sellnumx;
} else {
itemdescro = ((descW[itemModW[mouseinfo]] + "<br>") + descA[itemModA[mouseinfo]]) + "<br>";
shoprocur1 = weapmod[itemModW[mouseinfo]];
shoprocur2 = armormod[itemModA[mouseinfo]];
shoprocur3 = itemMsg[itemArraynum[mouseinfo]];
}
if ((((_root.game_hud1.equipment.item1.hitTest(_root._xmouse, _root._ymouse, true) || (_root.game_hud1.equipment.item2.hitTest(_root._xmouse, _root._ymouse, true))) || (_root.game_hud1.equipment.item3.hitTest(_root._xmouse, _root._ymouse, true))) || (_root.game_hud1.equipment.item4.hitTest(_root._xmouse, _root._ymouse, true))) || (_root.game_hud1.equipment.item5.hitTest(_root._xmouse, _root._ymouse, true))) {
mouseequip = 1;
delete mousespell;
if (equip_usage == 1) {
if (tooltiptimer >= 50) {
_root.mousetipmc._x = _root._xmouse - _root.mousetipmc._width;
_root.mousetipmc._y = _root._ymouse;
_root.sellnumx = itemNum[mouseinfo];
if (_root.game_hud1.equipment.item1.hitTest(_root._xmouse, _root._ymouse, true)) {
mouseinfo = 1;
}
if (_root.game_hud1.equipment.item2.hitTest(_root._xmouse, _root._ymouse, true)) {
mouseinfo = 2;
}
if (_root.game_hud1.equipment.item3.hitTest(_root._xmouse, _root._ymouse, true)) {
mouseinfo = 3;
}
if (_root.game_hud1.equipment.item4.hitTest(_root._xmouse, _root._ymouse, true)) {
mouseinfo = 4;
}
if (_root.game_hud1.equipment.item5.hitTest(_root._xmouse, _root._ymouse, true)) {
mouseinfo = 5;
}
} else {
tooltiptimer++;
}
}
}
if ((((_root.game_hud1.spellList.item1.hitTest(_root._xmouse, _root._ymouse, true) || (_root.game_hud1.spellList.item2.hitTest(_root._xmouse, _root._ymouse, true))) || (_root.game_hud1.spellList.item3.hitTest(_root._xmouse, _root._ymouse, true))) || (_root.game_hud1.spellList.item4.hitTest(_root._xmouse, _root._ymouse, true))) || (_root.game_hud1.spellList.item5.hitTest(_root._xmouse, _root._ymouse, true))) {
mousespell = 1;
delete mouseequip;
if (tooltiptimer >= 50) {
_root.sellnumx = itemNum[mouseinfo];
_root.mousetipmc._x = _root._xmouse;
_root.mousetipmc._y = _root._ymouse;
if (_root.game_hud1.spellList.item1.hitTest(_root._xmouse, _root._ymouse, true)) {
mouseinfo = 1;
}
if (_root.game_hud1.spellList.item2.hitTest(_root._xmouse, _root._ymouse, true)) {
mouseinfo = 2;
}
if (_root.game_hud1.spellList.item3.hitTest(_root._xmouse, _root._ymouse, true)) {
mouseinfo = 3;
}
if (_root.game_hud1.spellList.item4.hitTest(_root._xmouse, _root._ymouse, true)) {
mouseinfo = 4;
}
if (_root.game_hud1.spellList.item5.hitTest(_root._xmouse, _root._ymouse, true)) {
mouseinfo = 5;
}
} else {
tooltiptimer++;
}
}
if ((((_root.game_hud1.macro.button1.hitTest(_root._xmouse, _root._ymouse, true) || (_root.game_hud1.macro.button2.hitTest(_root._xmouse, _root._ymouse, true))) || (_root.game_hud1.macro.button3.hitTest(_root._xmouse, _root._ymouse, true))) || (_root.game_hud1.macro.button4.hitTest(_root._xmouse, _root._ymouse, true))) || (_root.game_hud1.macro.button5.hitTest(_root._xmouse, _root._ymouse, true))) {
delete mousespell;
delete mouseequip;
if (tooltiptimer >= 50) {
_root.sellnumx = itemNum[mouseinfo];
_root.mousetipmc._x = _root._xmouse;
_root.mousetipmc._y = _root._ymouse;
if (_root.game_hud1.macro.button1.hitTest(_root._xmouse, _root._ymouse, true)) {
mouseinfo = 1;
}
if (_root.game_hud1.macro.button2.hitTest(_root._xmouse, _root._ymouse, true)) {
mouseinfo = 2;
}
if (_root.game_hud1.macro.button3.hitTest(_root._xmouse, _root._ymouse, true)) {
mouseinfo = 3;
}
if (_root.game_hud1.macro.button4.hitTest(_root._xmouse, _root._ymouse, true)) {
mouseinfo = 4;
}
if (_root.game_hud1.macro.button5.hitTest(_root._xmouse, _root._ymouse, true)) {
mouseinfo = 5;
}
} else {
tooltiptimer++;
}
} else {
if ((((((((((((((_root.game_hud1.macro.button1.hitTest(_root._xmouse, _root._ymouse, true) || (_root.game_hud1.macro.button2.hitTest(_root._xmouse, _root._ymouse, true))) || (_root.game_hud1.macro.button3.hitTest(_root._xmouse, _root._ymouse, true))) || (_root.game_hud1.macro.button4.hitTest(_root._xmouse, _root._ymouse, true))) || (_root.game_hud1.macro.button5.hitTest(_root._xmouse, _root._ymouse, true))) || (_root.game_hud1.spellList.item1.hitTest(_root._xmouse, _root._ymouse, true))) || (_root.game_hud1.spellList.item2.hitTest(_root._xmouse, _root._ymouse, true))) || (_root.game_hud1.spellList.item3.hitTest(_root._xmouse, _root._ymouse, true))) || (_root.game_hud1.spellList.item4.hitTest(_root._xmouse, _root._ymouse, true))) || (_root.game_hud1.spellList.item5.hitTest(_root._xmouse, _root._ymouse, true))) || (_root.game_hud1.equipment.item1.hitTest(_root._xmouse, _root._ymouse, true))) || (_root.game_hud1.equipment.item2.hitTest(_root._xmouse, _root._ymouse, true))) || (_root.game_hud1.equipment.item3.hitTest(_root._xmouse, _root._ymouse, true))) || (_root.game_hud1.equipment.item4.hitTest(_root._xmouse, _root._ymouse, true))) || (_root.game_hud1.equipment.item5.hitTest(_root._xmouse, _root._ymouse, true))) {
delete removetooltip;
} else {
removetooltip++;
}
if (removetooltip >= 25) {
delete removetooltip;
delete tooltiptimer;
_root.mousetipmc._x = -999;
}
}
}
function debugtoolTip() {
}
_root.onMouseUp = function () {
if (keys == null) {
keys = 1;
}
delete doubleClickInput;
delete mfstrike;
delete m_input;
confirm = 1;
delete end_attack;
delete m_attack;
delete mouseD;
delete i_attack;
delete m_ignore;
delete singleUse;
if (InvenDrop_b == 1) {
var Invenscan = 1;
while (Invenscan < 11) {
if (itemDropMouse.hitTest(_root.mc_cs_select.mc_select.selection["item_" + Invenscan])) {
itemArraynum_s = itemArraynum[Invenscan];
itemArraynum_n = ItemNum[Invenscan];
itemArraynum[Invenscan] = InvenitemArraynum[bkeys];
ItemNum[Invenscan] = InvenitemNum[bkeys];
InvenitemArraynum[bkeys] = itemArraynum_s;
InvenitemNum[bkeys] = itemArraynum_n;
} else if (itemDropMouse.hitTest(_root.mc_cs_select.mc_select.selection["I_item" + Invenscan])) {
itemArraynum_s = InvenitemArraynum[Invenscan];
itemArraynum_n = InvenitemNum[Invenscan];
InvenitemArraynum[Invenscan] = InvenitemArraynum[bkeys];
InvenitemNum[Invenscan] = InvenitemNum[bkeys];
InvenitemArraynum[bkeys] = itemArraynum_s;
InvenitemNum[bkeys] = itemArraynum_n;
}
Invenscan++;
}
delete InvenDrop_b;
}
if (InvenDrop == 1) {
var Invenscan = 1;
while (Invenscan < 11) {
if (_root.mc_cs_select.mc_select.selection.hitTest(_root._xmouse, _root._ymouse, true)) {
if (itemDropMouse.hitTest(_root.mc_cs_select.mc_select.selection.remove)) {
delete InventoryI[ikeys];
}
if (itemDropMouse.hitTest(_root.mc_cs_select.mc_select.selection["item" + Invenscan])) {
itemArraynum_s = InventoryI[Invenscan];
InventoryI[Invenscan] = InventoryI[ikeys];
InventoryI[ikeys] = itemArraynum_s;
}
if (itemDropMouse.hitTest(_root.mc_cs_select.mc_select.selection["spell" + Invenscan])) {
itemArraynum_s = spellArray[Invenscan];
spellArray[Invenscan] = InventoryI[ikeys];
InventoryI[ikeys] = itemArraynum_s;
}
}
Invenscan++;
}
delete InvenDrop;
} else if (spellDrop == 1) {
var Invenscan = 1;
while (Invenscan < 11) {
if (itemDropMouse.hitTest(_root.mc_cs_select.mc_select.selection["item" + Invenscan])) {
itemArraynum_s = InventoryI[Invenscan];
InventoryI[Invenscan] = spellArray[keys];
spellArray[keys] = itemArraynum_s;
}
Invenscan++;
}
if (_root.game_hud1.spellList.hitTest(_xmouse, _ymouse, true) || (_root.mc_cs_select.mc_select.selection.hitTest(_root._xmouse, _root._ymouse, true))) {
if (itemDropMouse.hitTest(_root.mc_cs_select.mc_select.selection.remove)) {
delete spellArray[keys];
}
var Invenscan = 1;
while (Invenscan < 11) {
if (itemDropMouse.hitTest(_root.mc_cs_select.mc_select.selection["spell" + Invenscan]) || (itemDropMouse.hitTest(_root.game_hud1.spellList["item" + Invenscan]))) {
itemArraynum_s = spellArray[Invenscan];
spellArray[Invenscan] = spellArray[keys];
spellArray[keys] = itemArraynum_s;
}
Invenscan++;
}
}
}
delete spellDrop;
if (ItemDrop == 1) {
if (_root.mc_cs_select.mc_select.selection.hitTest(_root._xmouse, _root._ymouse, true)) {
var Invenscan = 1;
while (Invenscan < 11) {
if (itemDropMouse.hitTest(_root.mc_cs_select.mc_select.selection["I_item" + Invenscan])) {
itemArraynum_s = InvenitemArraynum[Invenscan];
itemNum_s = InvenitemNum[Invenscan];
InvenitemArraynum[Invenscan] = itemArraynum[keys];
InvenitemNum[Invenscan] = ItemNum[keys];
itemArraynum[keys] = itemArraynum_s;
itemNum[keys] = itemNum_s;
}
Invenscan++;
}
}
if (_root.game_hud1.macro.hitTest(_xmouse, _ymouse, true)) {
var Invenscan = 1;
while (Invenscan < 11) {
if (itemDropMouse.hitTest(_root.game_hud1.macro.expand1) || (itemDropMouse.hitTest(_root.game_hud1.macro.expand2))) {
itemArraynum_s = itemArraynum[6];
itemNum_s = ItemNum[6];
itemArraynum[6] = itemArraynum[keys + invenSelect];
itemNum[6] = ItemNum[keys + invenSelect];
itemArraynum[keys + invenSelect] = itemArraynum_s;
itemNum[keys + invenSelect] = itemNum_s;
}
if (itemDropMouse.hitTest(_root.game_hud1.macro["button" + Invenscan])) {
itemArraynum_s = itemArraynum[Invenscan + invenSelect];
itemNum_s = ItemNum[Invenscan + invenSelect];
itemArraynum[Invenscan + invenSelect] = itemArraynum[keys + invenSelect];
itemNum[Invenscan + invenSelect] = ItemNum[keys + invenSelect];
itemArraynum[keys + invenSelect] = itemArraynum_s;
itemNum[keys + invenSelect] = itemNum_s;
}
Invenscan++;
}
} else {
dropItemNumber = keys + invenSelect;
dropEngine(dropItemNumber);
}
}
delete ItemDrop;
};
_root.onMouseDown = function () {
if (m_input == 1) {
mouseD = 20;
mousex = floormouse._x + 12;
mousey = floormouse._y + 12;
delete m_command;
}
m_input = 1;
delete mousex;
delete mousey;
delete m_command;
if (m_command == null) {
if ((heal_t_use == null) && (zap_t_use == null)) {
mousex = floormouse._x + 12;
mousey = floormouse._y + 12;
}
landmouse._x = floormouse._x;
landmouse._y = floormouse._y;
mouseanim.gotoAndPlay(2);
mouseanim._x = floormouse._x;
mouseanim._y = floormouse._y;
if (m_ignore == 1) {
}
if (m_click_attack == 1) {
m_command = 1;
m_ignore = 1;
delete playerRetAtk;
delete m_click_attack;
} else {
delete m_click_attack;
m_command = 1;
}
}
i_attack = 1;
if (_root.game_hud1.macro.hittest(_xmouse, _ymouse, true)) {
mouseD = 1;
}
};
_root.onLoad = function () {
BGM = 1;
SFX = 1;
};
_root.onEnterFrame = function () {
if (title == null) {
BGM = 1;
SFX = 1;
tscreenR = 1;
loadtscreen();
_root.ts_screen.swapDepths(200);
title = 1;
}
if (tscreenR == 5) {
delete shin;
delete step;
reset();
tscreenR = 1;
}
if (tscreenR == 4) {
if (fin == 2) {
delete step;
tscreenR = 5;
} else {
flip();
}
}
if (tscreenR == 3) {
if (border_aplay < 101) {
bordervanish();
} else {
tscreenR = 4;
}
}
if (tscreenR == 2) {
if (a_playy < 10) {
appear();
} else {
tscreenR = 3;
}
}
if (tscreenR == 1) {
if (playy < 10) {
vanish();
} else {
tscreenR = 2;
}
}
if (_root._currentframe == 1) {
var mouseAct = 1;
while (mouseAct < 11) {
mouseInvenItem(_root.mc_cs_select.mc_select.selection["I_item" + mouseAct].hitTest(_root._xmouse, _root._ymouse, true) && (m_input == 1), mouseAct);
mousehud(_root.mc_cs_select.mc_select.selection["item_" + mouseAct].hitTest(_xmouse, _ymouse, true) && (m_input == 1), mouseAct);
if (_root.select == "Spell") {
mouseInven(_root.mc_cs_select.mc_select.selection["item" + mouseAct].hitTest(_root._xmouse, _root._ymouse, true) && (m_input == 1), mouseAct);
mousehudspells(_root.game_hud1.spellList["spell" + mouseAct].hitTest(_xmouse, _ymouse, true) && (m_input == 1), mouseAct);
}
mouseAct++;
}
readout_stats();
debugtoolTip();
mousetip();
loadSound();
reSize();
floorLoadingScreen();
spell_effects(_root.dunmapC00, _root.dunmapC01, _root.dunmapC02, _root.dunmapC10, _root.dunmapC11, _root.dunmapC12, _root.dunmapC20, _root.dunmapC21, _root.dunmapC22);
}
};
layer21 = 10000;
layer18 = 84;
layer17 = 80;
_root.light.swapDepths(layer17);
layer16 = 1000;
_root.lightbg.swapDepths(layer16);
layer15 = 70;
layer14 = 300;
layer13 = 900;
_root.char.duplicateMovieClip("debugshadow1", layer13);
_root.debugshadow1._x = ambushmemx;
_root.debugshadow1._y = ambushmemy;
layer12 = 12000;
_root.itemDropMouse.swapDepths(layer12 + 3);
_root.dropIcon.swapDepths(layer12 + 2);
layer11 = 500;
layer10 = 90;
_root.floormouse.swapDepths(layer10);
_root.landmouse.swapDepths(layer10 + 1);
_root.mouseanim.swapDepths(layer10 + 2);
floor = 2;
player_sprint_m = 100;
player_sprint = 1;
_root.shield = 13;
layer9 = 410;
_root.mousetarget.swapDepths(layer9 + 3);
_root.charatk.duplicateMovieClip("char_atk1", layer9 + 1);
_root.char_atk1._visible = true;
layer8 = 9000;
_root.gui_hud.duplicateMovieClip("game_hud1", layer8 + 1);
gui_hud_Code(_root.game_hud1);
gui_hud_Code(_root.hud);
gui_hud_Code(_root.effect_flash_mc);
layer7 = 150;
layer4 = 9003;
_root.gui_player_hbar.duplicateMovieClip("hp_bar1", layer4 + 10);
_root.hud.duplicateMovieClip("hud1", layer4 + 1);
layer3 = 9002;
_root.debug.duplicateMovieClip("debug1", layer3 + 1);
layer2 = 100;
_root.char.duplicateMovieClip("char1", layer2 + 1);
_root.char1._x = 240;
_root.char1._y = 72;
Instance of Symbol 85 MovieClip in Frame 1
onClipEvent (load) {
this.swapDepths(99999999);
}
onClipEvent (enterFrame) {
if (_root.endDemo == 1) {
this._x = 120;
this._y = 0;
if (endCinema == null) {
this.play();
endCinema = 1;
}
}
}
Instance of Symbol 1311 MovieClip "mc_cs_select" in Frame 1
onClipEvent (load) {
this._x = 120;
this._xscale = 50;
this._yscale = 50;
}
onClipEvent (enterFrame) {
if (_root.cs_selectLoad == 1) {
this.gotoAndPlay(2);
delete _root.cs_selectLoad;
}
}
Instance of Symbol 1232 MovieClip "itemDropMouse" in Frame 1
onClipEvent (enterFrame) {
this._xscale = 100;
this._yscale = 100;
if (_root.itemNum[1] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.itemArraynum[1]);
}
}
Instance of Symbol 1876 MovieClip in Frame 1
onClipEvent (load) {
layer24 = 12200;
this.swapDepths(12200);
this._xscale = 50;
this._yscale = 50;
this._x = 120;
this._y = 0;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.cs_selectLoad == 1) {
this._y = -9999;
}
if (_alpha < 100) {
_alpha = (_alpha + 5);
}
}
Frame 2
function HudSelector() {
if (spell_usage == 1) {
delete item_usage;
if ((sellpage == 1) || (equip_usage == 1)) {
use_menu = 2;
delete spell_usage;
} else {
SpellUse(49, 50, 51, 52, 53, 68);
}
}
if (equip_usage == 1) {
delete item_usage;
if (sellpage == 1) {
} else {
ArmorDrop(49, 50, 51, 52, 53, 68);
}
} else if (spell_usage == null) {
item_usage = 1;
}
if (item_usage == 1) {
if (sellpage == 1) {
} else {
Inventory(49, 50, 51, 52, 53, 68);
}
if (invenMore == 1) {
itembox1 = itemNum[6];
itembox2 = itemNum[7];
itembox3 = itemNum[8];
itembox4 = itemNum[9];
itembox5 = itemNum[5];
} else {
itembox1 = itemNum[1];
itembox2 = itemNum[2];
itembox3 = itemNum[3];
itembox4 = itemNum[4];
itembox5 = itemNum[5];
}
}
}
function thrower(spd, max, limit) {
if (thrownw == null) {
thrownw = 1;
thrownremCount = 1;
thrownI = 1;
thrownDamageArray = [0, 50, 0, 0, 1200, 0, 200, 1600, 2000, 800, 0, 100, 300, 15000, 100, 200, 5000, 1000, 30000, 1000, 5000, 6000, 7000, 5000, 6000, 7000, 30000, 30000, 10000, 20000, 30000, 40000, 50000, 10000, 20000, 30000, 40000, 50000, 60000, 0, 0, 0, 1, 2, 3, 20, 200, 400, 5, 150];
}
if (thrownArrayy == null) {
thrownArrayx = new Array();
thrownArrayy = new Array();
}
_root.thrownx._x = _root.char1._x;
_root.thrownx._y = _root.char1._y - 20;
thrownarrayCreate(thrownI, spd);
if (!Key.isDown(84)) {
delete thrownst;
delete thrownst2;
delete thrownTimer;
}
if (Key.isDown(84) && ((!ItemNum[keys]) <= 1)) {
desuClock = 1;
if (thrownI >= limit) {
} else {
if (thrownst == null) {
thrownI++;
thrownst = 1;
delete secondfire;
}
if (thrownTimer >= max) {
thrownI++;
delete thrownTimer;
} else {
thrownTimer++;
}
delete thrownresetTimer;
}
}
if (_root.game_hud1.macro._currentframe == keys) {
if (ItemNum[keys] <= 0) {
delete ItemNum[keys];
delete ItemArraynum[keys];
delete thrownht;
} else {
while (thrownw < thrownI) {
_root.thrownx.duplicateMovieClip("thrown" + thrownw, 400 + thrownw);
_root["thrown" + thrownw].item_.gotoAndStop(ItemArraynum[keys]);
ItemNum[keys] = ItemNum[keys] - 1;
thrownw++;
}
}
}
var thrownm;
while (thrownm < thrownI) {
_root["thrown" + thrownm]._y = _root["thrown" + thrownm]._y + thrownArrayy[thrownm];
_root["thrown" + thrownm]._x = _root["thrown" + thrownm]._x + thrownArrayx[thrownm];
thrownm++;
}
thrownRO = thrownArrayy[thrownI];
if (thrownremCount >= thrownI) {
var thrownrem = 1;
while (thrownrem < thrownI) {
removeMovieClip(_root["thrown" + thrownrem]);
thrownrem++;
}
delete thrownI;
delete thrownw;
delete thrownremCount;
}
var thrownht;
while (thrownht < (thrownI + 1)) {
if ((((_root["thrown" + thrownht]._x >= (240 + (_root["thrown" + thrownht]._width + spd))) || (_root["thrown" + thrownht]._y >= (240 + (_root["thrown" + thrownht]._width + spd)))) || (_root["thrown" + thrownht]._x < (-(_root["thrown" + thrownht]._width + spd)))) || (_root["thrown" + thrownht]._y < (-(_root["thrown" + thrownht]._width + spd)))) {
if (!Key.isDown(84)) {
secondfire = 1;
}
if (Key.isDown(84)) {
if (thrownremCount < 2) {
} else {
thrownremCount--;
}
if (thrownst2 == null) {
if (secondfire == 1) {
_root["thrown" + thrownht]._xscale = 100;
_root["thrown" + thrownht]._yscale = 100;
_root["thrown" + thrownht]._x = _root.char1._x + thrownArrayx[thrownht];
_root["thrown" + thrownht]._y = (_root.char1._y - 20) + thrownArrayy[thrownht];
delete secondfire;
}
thrownst2 = 1;
}
if (remthrownTimer >= max) {
if (secondfire == 1) {
_root["thrown" + thrownht]._xscale = 100;
_root["thrown" + thrownht]._yscale = 100;
_root["thrown" + thrownht]._x = _root.char1._x + thrownArrayx[thrownht];
_root["thrown" + thrownht]._y = (_root.char1._y - 20) + thrownArrayy[thrownht];
delete secondfire;
}
delete remthrownTimer;
} else {
remthrownTimer++;
}
thrownarrayCreate(thrownht, spd);
} else {
if (thrownremCount >= max) {
secondfire = 1;
}
thrownremCount++;
_root["thrown" + thrownht]._xscale = 1;
_root["thrown" + thrownht]._yscale = 1;
_root["thrown" + thrownht]._x = _root.char1._x;
_root["thrown" + thrownht]._y = _root.char1._y - 20;
}
}
var stunht = 1;
while (stunht < 5) {
if (_root["enemy" + stunht].hb.hitTest(_root["thrown" + thrownht])) {
thrownnme = 3;
thrownStun = Math.ceil(Math.random() * 2);
if (thrownStun >= 2) {
thrownDmg = 1;
_root["enemy" + stunht].stun = 1;
_root["enemy" + stunht].thrownStun = 100;
_root["enemy" + stunht].stunTimer = 1;
} else {
thrownDmg = thrownDamageArray[_root["thrown" + thrownht].item_._currentframe];
damage = thrownDmg;
}
if (itemuse >= 10) {
itemuse = 1;
} else {
itemuse++;
}
_root.sound1.gotoAndPlay(2);
_root["enemy" + stunht].health = _root["enemy" + stunht].health - thrownDmg;
_root.nme_hitpoints.duplicateMovieClip("nme_hitpoints_mc" + itemuse, 6500 + itemuse);
if (_root["nme_hitpoints_mc" + itemuse].lx == null) {
_root["nme_hitpoints_mc" + itemuse].display = thrownDmg;
_root["nme_hitpoints_mc" + itemuse].lx = 1;
}
_root["nme_hitpoints_mc" + itemuse]._x = _root["enemy" + stunht]._x;
_root["nme_hitpoints_mc" + itemuse]._y = _root["enemy" + stunht]._y - 20;
_root["thrown" + thrownht]._x = -999;
}
stunht++;
}
thrownht++;
}
}
function thrownarrayCreate(arrayfiller, spd) {
if (((_root.char1._currentframe == (1 + armor_anim)) || (_root.char1._currentframe == (6 + armor_anim))) || (_root.char1._currentframe == (11 + armor_anim))) {
thrownarrayx[arrayfiller] = 0;
thrownarrayy[arrayfiller] = spd;
}
if (((_root.char1._currentframe == (2 + armor_anim)) || (_root.char1._currentframe == (7 + armor_anim))) || (_root.char1._currentframe == (12 + armor_anim))) {
if (_root.char1._xscale == -100) {
thrownarrayx[arrayfiller] = spd;
} else {
thrownarrayx[arrayfiller] = -spd;
}
thrownarrayy[arrayfiller] = spd;
}
if (((_root.char1._currentframe == (3 + armor_anim)) || (_root.char1._currentframe == (8 + armor_anim))) || (_root.char1._currentframe == (13 + armor_anim))) {
if (_root.char1._xscale == -100) {
thrownarrayx[arrayfiller] = spd;
} else {
thrownarrayx[arrayfiller] = -spd;
}
thrownarrayy[arrayfiller] = 0;
}
if (((_root.char1._currentframe == (4 + armor_anim)) || (_root.char1._currentframe == (9 + armor_anim))) || (_root.char1._currentframe == (14 + armor_anim))) {
if (_root.char1._xscale == -100) {
thrownarrayx[arrayfiller] = spd;
} else {
thrownarrayx[arrayfiller] = -spd;
}
thrownarrayy[arrayfiller] = -spd;
}
if (((_root.char1._currentframe == (5 + armor_anim)) || (_root.char1._currentframe == (10 + armor_anim))) || (_root.char1._currentframe == (15 + armor_anim))) {
thrownarrayx[arrayfiller] = 0;
thrownarrayy[arrayfiller] = -spd;
}
}
function itemEquip() {
if (a_armor == 2) {
a_set = a_weap + (a_armor + 2);
} else if (a_armor == 1) {
a_set = a_weap + (a_armor + 1);
} else {
a_set = a_weap + a_armor;
}
_root.armor_anim = 0 + (20 * a_set);
if (Key.isDown(79)) {
if (o_input == null) {
_root.sounditem.gotoAndStop(3);
if (_root.shield >= 13) {
_root.shield = 1;
} else {
_root.shield++;
}
o_input = 1;
}
} else {
delete o_input;
}
}
function spellUseEngine(value) {
if (spellArray[value] == 56) {
blesscombo = 1;
order = 0;
}
if (spellArray[value] == 55) {
potence_use = 1;
order = 0;
}
if (spellArray[value] == 54) {
bless_use = 1;
order = 0;
}
if (spellArray[value] == 53) {
mightcombo = 1;
order = 0;
}
if (spellArray[value] == 52) {
shadow_use = 1;
order = 0;
}
if (spellArray[value] == 51) {
might_use = 1;
order = 0;
}
if (spellArray[value] == 50) {
fury_use = 1;
order = 0;
}
if (spellArray[value] == 44) {
flank_use = 1;
order = 0;
}
if (spellArray[value] == 43) {
invis_use = 1;
order = 0;
}
if (spellArray[value] == 40) {
heal_use = 1;
order = 0;
}
if (spellArray[value] == 41) {
heal_t_use = 1;
}
if (spellArray[value] == 42) {
zap_t_use = 1;
}
if (spellArray[value] == 57) {
zerk_t_use = 1;
}
if (spellArray[value] == 58) {
zerk_t_use = 1;
}
if (spellArray[value] == 60) {
para_t_use = 1;
}
}
function item_htd() {
var i_sheet = 1;
while (i_sheet < (11 + itemchestCount)) {
if (armor_use == 1) {
} else {
if (_root["item" + i_sheet].hitTest(_root.char1._x, _root.char1._y, true)) {
firsthitTest = 1;
correct = 1;
if ((((_root["item" + i_sheet]._currentframe == 2) || (_root["item" + i_sheet]._currentframe == 3)) || (_root["item" + i_sheet]._currentframe == 5)) || (_root["item" + i_sheet]._currentframe == 10)) {
}
if (_root["item" + i_sheet].number == null) {
founditemnum = 1;
} else {
founditemnum = _root["item" + i_sheet].number;
}
delete prevItem;
enemyitem = _root["item" + i_sheet]._currentframe;
enemydeath = 1;
dun_create();
}
if (enemydeath == 1) {
if (equiptog == 1) {
arrayfiller();
modfiller();
equippainter();
macrofiller(enemyitem);
if ((((_root["item" + i_sheet]._currentframe == 2) || (_root["item" + i_sheet]._currentframe == 3)) || (_root["item" + i_sheet]._currentframe == 5)) || (_root["item" + i_sheet]._currentframe == 10)) {
} else if ((itemModW[arraynum] == null) && ((!itemArraynum[arraynum]) == null)) {
itemModW[arraynum] = ewbox;
itemModA[arraynum] = eabox;
}
delete equiptog;
delete enemydeath;
if (equipSwitchW[4] == null) {
} else if (armor_use == 1) {
equipSwap = 1;
}
} else {
if (arraynum >= 11) {
arrayfiller();
modfiller();
equippainter();
macrofiller(_root["item" + i_sheet]);
if (((spweap == 1) && (itemModW[arraynum] == null)) && ((!itemArraynum[arraynum]) == null)) {
itemModW[arraynum] = ewbox;
itemModA[arraynum] = eabox;
}
if ((itemModW[arraynum] == null) && ((!itemArraynum[arraynum]) == null)) {
itemModW[arraynum] = ewbox;
itemModA[arraynum] = eabox;
}
if (equipSwitchW[4] == null) {
} else if (armor_use == 1) {
equipSwap = 1;
}
} else {
arrayfiller();
modfiller();
equippainter();
macrofiller(_root["item" + i_sheet]);
if (((spweap == 1) && (itemModW[arraynum] == null)) && ((!itemArraynum[arraynum]) == null)) {
itemModW[arraynum] = ewbox;
itemModA[arraynum] = eabox;
}
if ((itemModW[arraynum] == null) && ((!itemArraynum[arraynum]) == null)) {
itemModW[arraynum] = ewbox;
itemModA[arraynum] = eabox;
}
if (equipSwitchW[4] == null) {
} else if (armor_use == 1) {
equipSwap = 1;
}
}
delete enemydeath;
}
}
}
i_sheet++;
}
}
function monDis() {
if (_root.debug_bar1._x == null) {
duplicateMovieClip (_root.monDisp, "debug_bar1", layer21 + 13);
_root.debug_bar1._x = 148;
_root.debug_bar1._y = 8;
_root.debug_bar1.txt = "DEBUG:ON";
}
var monDisplay = 1;
while (monDisplay < (enemyCount + 1)) {
if (_root["mon" + monDisplay]._x == null) {
removeMovieClip(_root["bar" + monDisplay]);
removeMovieClip(_root["name_" + monDisplay]);
} else if (_root["mon" + monDisplay].hitTest(_root._xmouse, _root._ymouse, true) || (_root.char1.hitTest(_root["mon" + monDisplay]._x, _root["mon" + monDisplay]._y, true))) {
_root["bar" + monDisplay].txt = ((("[" + _root["mon" + monDisplay].health) + " /") + _root["mon" + monDisplay].stat_health) + "]";
_root["bar" + monDisplay]._x = _root["mon" + monDisplay]._x;
_root["bar" + monDisplay]._y = _root["mon" + monDisplay]._y - 50;
_root["name_" + monDisplay].txt = _root["mon" + monDisplay]._name;
_root["name_" + monDisplay]._x = _root["mon" + monDisplay]._x;
_root["name_" + monDisplay]._y = _root["mon" + monDisplay]._y + 10;
} else {
removeMovieClip(_root["bar" + monDisplay]);
removeMovieClip(_root["name_" + monDisplay]);
}
if (_root["bar" + monDisplay]._x == null) {
duplicateMovieClip (_root.monDisp, "bar" + monDisplay, layer21 + monDisplay);
duplicateMovieClip (_root.monDisp, "name_" + monDisplay, layer21 + (monDisplay + 8));
}
monDisplay++;
}
}
function enemMapClear() {
}
function chest_HT(obj, chest) {
if (prizeArray == null) {
prizeArray = new Array();
prizeArray2 = new Array();
prizeArray3 = new Array();
prizeArray = [14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38];
prizeArray2 = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 13];
prizeArray3 = [1, 13, 45, 46, 47, 48, 49, 40, 42];
}
if (chest._currentframe == (chest._totalframes - 3)) {
_root.purge_effect_mc.duplicateMovieClip("purge1", layer22 + 70);
_root.sounditem1.gotoAndStop(4);
_root.purge1._x = chest._x;
_root.purge1._y = chest._y;
}
if (obj.hb.hitTest(chest)) {
if (Key.isDown(65) || (m_input == 1)) {
if (chest_input == null) {
if (((((((((((itemNum[keys] >= 1) && (itemNum[1] >= 1)) && (itemNum[2] >= 1)) && (itemNum[3] >= 1)) && (itemNum[4] >= 1)) && (itemNum[5] >= 1)) && (itemNum[6] >= 1)) && (itemNum[7] >= 1)) && (itemNum[8] >= 1)) && (itemNum[9] >= 1)) && (itemNum[10] >= 1)) {
chat("<b>Can't Open Chest; Your Inventory is full</b>", 30, 5);
} else if (chest._currentframe < 6) {
chat("<b>You opened a Treasure Chest!!!</b>", 30, 5);
chest.gotoAndPlay(6);
prizeType = Math.ceil(Math.random() * (_root.floor * 100));
if (prizeType >= 200) {
enemydeath = 1;
enemyitem = 60;
founditemnum = 8;
} else if (prizeType >= 75) {
enemydeath = 1;
enemyitem = 59;
founditemnum = 8;
} else {
if ((prizeType >= 1) && (prizeType < 30)) {
enemydeath = 1;
enemyitem = prizeArray3[Math.ceil(Math.random() * 9)];
founditemnum = Math.ceil(Math.random() * 10);
}
if ((prizeType >= 30) && (prizeType < 60)) {
enemydeath = 1;
enemyitem = prizeArray2[Math.ceil(Math.random() * 12)];
founditemnum = Math.ceil(Math.random() * 5);
}
if ((prizeType >= 60) && (prizeType < 100)) {
enemydeath = 1;
enemyitem = prizeArray[Math.ceil(Math.random() * 23)];
founditemnum = 1;
}
}
}
chest_input = 1;
}
} else {
delete chest_input;
}
}
}
function debug__Chest() {
if (Key.isDown(82)) {
if (debugChest == null) {
if (chestnum >= 8) {
chestnum = 1;
chestCreate(Math.ceil(_root.char1._x / 24), Math.ceil(_root.char1._y / 24));
} else {
chestnum++;
chestCreate(Math.ceil(_root.char1._x / 24) * 24, Math.ceil(_root.char1._y / 24) * 24);
}
debugChest = 1;
}
} else {
delete debugChest;
}
}
function chestCreate(x, y) {
chance = Math.ceil(Math.random() * 10);
if (chance >= 10) {
_root.kwisin_fury_mc.duplicateMovieClip("effect" + chestnum, 90000 + chestnum);
_root["effect" + chestnum]._x = x;
_root["effect" + chestnum]._y = y;
_root.soundspell1.gotoAndStop(7);
_root.t_chest.duplicateMovieClip("chest_prize" + chestnum, layer7c + chestnum);
_root["chest_prize" + chestnum]._x = x;
_root["chest_prize" + chestnum]._y = y;
}
}
function enemClear() {
var clearMon = 1;
while (clearMon < (enemyCount + 1)) {
delete deSpawn_x;
delete deSpawn_y;
removeMovieClip(_root["mon" + clearMon]);
removeMovieClip(_root["bar" + clearMon]);
clearMon++;
}
delete enemOverCount;
enemyCount = 0;
delete dots;
delete spawn;
delete enemyDestroyed;
delete enemyDraw;
delete enemyScan;
delete formation;
delete clearMon;
delete eightCount;
}
function enemyCountReset() {
if (eightCount >= 8) {
if (enemDestroyed >= eightCount) {
enemClear();
}
}
if (enemyDestroyed >= (enemyCount + enemOverCount)) {
enemClear();
}
}
function enemy_d_end(enemy) {
if ((_root.mon1._currentframe >= 61) && (_root.mon1._currentframe < 101)) {
if (enemy.fill == null) {
if ((floor == 1) && (_root.testme < 20)) {
enemy.stat_health = ((50 * floor) * 3) + mvp_health;
enemy.health = enemy.stat_health;
enemy.fill = 1;
} else {
enemy.stat_health = ((250 * floor) * 3) + mvp_health;
enemy.health = enemy.stat_health;
enemy.fill = 1;
}
}
} else if (enemy.fill == null) {
if ((floor == 1) && (_root.testme < 20)) {
enemy.stat_health = 50 * floor;
enemy.health = enemy.stat_health;
enemy.fill = 1;
} else {
enemy.stat_health = 500 * floor;
enemy.health = enemy.stat_health;
enemy.fill = 1;
}
}
if (enemy.health == null) {
} else if (enemy.health <= 0) {
if (pointsnum == null) {
pointsnum = 1;
}
if (pointsnum >= 10) {
pointsnum = 1;
} else {
pointsnum++;
}
if (damage > enemy.stat_health) {
_root.splat.duplicateMovieClip("splat" + pointsnum, 14010 + pointsnum);
if (_root["splat" + pointsnum].lx == null) {
_root["splat" + pointsnum]._x = enemy._x;
_root["splat" + pointsnum]._y = enemy._y - 20;
_root["splat" + pointsnum].lx = 1;
}
_root.overkill_anim.duplicateMovieClip("overkill_anim" + pointsnum, 5800 + pointsnum);
_root["overkill_anim" + pointsnum].gotoAndPlay(2);
if (_root["overkill_anim" + pointsnum].lx == null) {
_root.sound1.gotoAndStop(10);
_root["overkill_anim" + pointsnum]._x = enemy._x;
_root["overkill_anim" + pointsnum]._y = enemy._y - 20;
_root["overkill_anim" + pointsnum].display = damage;
_root["overkill_anim" + pointsnum].lx = 1;
}
}
_root.damage_end.duplicateMovieClip("damage_end" + pointsnum, 5500 + pointsnum);
if (_root["damage_end" + pointsnum].lx == null) {
_root["damage_end" + pointsnum]._x = enemy._x;
_root["damage_end" + pointsnum]._y = enemy._y - 20;
_root["damage_end" + pointsnum].lx = 1;
}
if (order >= 9) {
order = 1;
} else {
order++;
}
if (dun_tbox[floor][(dunmap * row) + col] == 1) {
if (chestCount == null) {
chestCount = 1;
} else {
chestCount++;
}
_root.mvp_chest.duplicateMovieClip("normchest" + chestCount, 1200 + chestCount);
_root["normchest" + chestCount]._x = (Math.floor(enemy._x / 24) * 24) + 12;
_root["normchest" + chestCount]._y = ((Math.floor(enemy._y / 24) * 24) + 12) + 8;
dun_tbox[floor][(dunmap * row) + col] = 1;
} else {
dun_tbox[floor][(dunmap * row) + col] = dun_tbox[floor][(dunmap * row) + col] - 1;
}
if (((mvp_encounter >= setenc) && (_root.floor >= setfloor)) && (_root.mon1.health <= 0)) {
if (mvpdeath == null) {
_root.mvp_chest.duplicateMovieClip("mvpchest1", 1951);
_root.mvpchest1._x = (math.floor(_root.mon1._x / 24) * 24) + 12;
_root.mvpchest1._y = ((math.floor(_root.mon1._y / 24) * 24) + 12) + 8;
mvpdeath = 1;
}
}
if (_root["item" + nmecreate] == null) {
if (nmecreate >= 10) {
nmecreate = 1;
} else {
nmecreate++;
}
_root.item_.duplicateMovieClip("item" + nmecreate, layer15 + nmecreate);
_root["item" + nmecreate].gotoAndStop(Math.ceil(Math.random() * (1 + _root.floor)));
_root["item" + nmecreate]._x = Math.floor(enemy._x / 24) * 24;
_root["item" + nmecreate]._y = Math.floor(enemy._y / 24) * 24;
} else {
while (_root["item" + nmecreate] == null) {
_root.item_.duplicateMovieClip("item" + nmecreate, layer15 + nmecreate);
_root["item" + nmecreate].gotoAndStop(Math.ceil(Math.random() * (1 + _root.floor)));
_root["item" + nmecreate]._x = Math.floor(enemy._x / 24) * 24;
_root["item" + nmecreate]._y = Math.floor(enemy._y / 24) * 24;
nmecreate++;
}
}
value = enemy.exp;
if (level >= 99) {
stats_exp = tnl;
} else {
stats_exp = stats_exp + value;
}
chat(value + " Experience", 30, 5);
enemy.dcf = enemy._currentframe;
if (enemy.desu == null) {
if (m_input == 1) {
m_command = 1;
}
itemfiller();
if (chestnum >= 8) {
chestnum = 1;
} else {
chestnum++;
chestCreate(Math.ceil(enemy._x / 24) * 24, Math.ceil(enemy._y / 24) * 24);
}
enemyLKill = enemyLKill + (("" + enemy._name) + "<br>");
delete m_click_attack;
enemy._x = -9999;
enemy._y = -9999;
ambPoints = ambPoints + 5;
enemyDestroyed = enemyDestroyed + 1;
removeMovieClip(enemy);
enemy.desu = 1;
_root.hdClear = 1;
}
if ((_root.mon1._currentframe >= 61) && (_root.mon1._currentframe < 101)) {
enemy.stat_health = (30 * floor) * 3;
enemy.health = enemy.stat_health;
} else {
enemy.stat_health = 30 * floor;
enemy.health = enemy.stat_health;
}
delete enemy.fill;
}
}
if (enemyCount >= 9) {
trace("clear");
}
var clearMap = 1;
while (clearMap < (mapHistory.length + 1)) {
if (mapHistory[floor][clearMap] == 1) {
delete mapHistory[floor][clearMap];
}
clearMap++;
}
function htdstuck() {
if (m_input == null) {
delete htd;
}
}
function enemyhtd(enemy1, enemy2, player, spd, spd2, type) {
if ((((!Key.isDown(38)) && (!Key.isDown(40))) && (!Key.isDown(37))) && (!Key.isDown(39))) {
delete htd_anim;
}
if (player.hb.hitTest(enemy1._x, enemy1._y, true)) {
htd_escape = 1;
} else if (enemy1.hb.hitTest(mousex, mousey, true)) {
} else {
delete htd_escape;
}
if (enemy1.hb.hitTest(mousex, mousey, true) || (player.hb.hitTest(enemy1._x, enemy1._y, true))) {
if ((htd == null) && (htd_escape == null)) {
if (htd_anim == null) {
if (m_command == 1) {
if (player._currentframe > (5 + armor_anim)) {
} else {
player.gotoAndStop(player._currentframe + 5);
htd_anim = 1;
}
}
}
delete mouseD;
delete m_command;
} else {
htd = 1;
}
} else if (enemy1.hb.hitTest(mousex, mousey, true) && (player.hb.hitTest(enemy1._x, enemy1._y, true))) {
} else {
delete htd;
}
if (enemy1.hb.hitTest(enemy2._x - spd, enemy2._y, true)) {
enemy1._x = enemy1._x - spd;
}
if (enemy1.hb.hitTest(enemy2._x + spd, enemy2._y, true)) {
enemy1._x = enemy1._x + spd;
}
if (enemy1.hb.hitTest(enemy2._x, enemy2._y - spd, true)) {
enemy1._y = enemy1._y - spd;
}
if (enemy1.hb.hitTest(enemy2._x, enemy2._y + spd, true)) {
enemy1._y = enemy1._y + spd;
}
}
function enemy_behaviour(enemy, spd, obj, type) {
if (enemy.move == 11) {
delete enemy.atk;
if (enemy._currentframe > (monAnimArray[type] + 10)) {
enemy.gotoAndStop(monAnimArray[type] - 5);
enemy.gotoAndStop(monAnimArray[type] + 5);
} else {
enemy.gotoAndStop(monAnimArray[type] + 10);
}
} else if (enemy.atk == null) {
if (enemy.move == 1) {
enemy._y = enemy._y + spd;
animate(enemy, 1 + monAnimArray[type]);
}
if (enemy.move == 2) {
enemy._x = enemy._x + spd;
enemy._y = enemy._y + spd;
animate(enemy, 2 + monAnimArray[type]);
enemy._xscale = -100;
}
if (enemy.move == 3) {
enemy._x = enemy._x + spd;
animate(enemy, 3 + monAnimArray[type]);
enemy._xscale = -100;
}
if (enemy.move == 4) {
enemy._x = enemy._x + spd;
enemy._y = enemy._y - spd;
animate(enemy, 4 + monAnimArray[type]);
enemy._xscale = -100;
}
if (enemy.move == 5) {
enemy._y = enemy._y - spd;
animate(enemy, 5 + monAnimArray[type]);
}
if (enemy.move == 6) {
enemy._y = enemy._y - spd;
enemy._x = enemy._x - spd;
animate(enemy, 4 + monAnimArray[type]);
enemy._xscale = 100;
}
if (enemy.move == 7) {
enemy._x = enemy._x - spd;
animate(enemy, monAnimArray[type] + 2);
enemy._xscale = 100;
}
if (enemy.move == 8) {
enemy._x = enemy._x - spd;
enemy._y = enemy._y + spd;
animate(enemy, 2 + monAnimArray[type]);
enemy._xscale = 100;
}
if (enemy.move >= 9) {
if (enemy._currentframe > (monAnimArray[type] + 10)) {
enemy.gotoAndStop(monAnimArray[type] - 5);
enemy.gotoAndStop(monAnimArray[type] + 5);
} else {
enemy.gotoAndStop(monAnimArray[type] + 10);
}
}
}
if (enemy.ht_AI == null) {
enemy.ht_AI = 100;
}
if (enemy.stun == 1) {
enemy.move = 9;
delete enemy.atk;
delete enemy.ht;
if (enemy._currentframe >= (monAnimArray[type] + 5)) {
enemy.gotoAndStop(monAnimArray[type] - 5);
enemy.gotoAndStop(monAnimArray[type] + 5);
} else {
enemy.gotoAndStop(monAnimArray[type] + 5);
}
if (enemy.stunTimer >= (50 + enemy.thrownStun)) {
delete enemy.stun;
enemy.move = Math.ceil(Math.random() * 12);
delete enemy.thrownStun;
delete enemy.stunTimer;
} else {
enemy.stunTimer++;
}
}
if (enemy.ht >= enemy.ht_AI) {
delete enemy.atk;
delete enemy.ht;
delete enemy.static;
if ((enemy.atk == null) && (enemy.stun == null)) {
enemy.move = Math.ceil(Math.random() * 12);
}
if (enemy.atk == 1) {
delete enemy.move;
}
if (enemy._currentframe >= (monAnimArray[type] + 5)) {
enemy.gotoAndStop(enemy._currentframe - 5);
enemy.gotoAndStop(enemy._currentframe + 5);
} else {
enemy.gotoAndStop(enemy._currentframe + 5);
}
} else {
enemy.ht++;
}
if (enemy.hb.hitTest(_root.char1.hb) && (enemy.stun == null)) {
if (enemy.move == 11) {
delete enemy.move;
}
faceTarget_NME = 1;
enemy.atk = 1;
}
if (Math.abs(enemy._y - obj._y) < 96) {
if (Math.abs(enemy._x - obj._x) < 96) {
if (enemy.move == 11) {
} else {
faceTarget_NME = 1;
enemy.atk = 1;
}
}
}
if (enemy._name == "mon9") {
} else {
if ((enemy.health == null) && ((!enemy._name) == "mon9")) {
if ((_root.enemy1._currentframe >= 61) && (_root.enemy1._currentframe < 101)) {
enemy.stat_health = (30 * floor) * 3;
enemy.health = enemy.stat_health;
} else {
enemy.stat_health = 30 * floor;
enemy.health = enemy.stat_health;
}
}
if ((_root.enemy1._currentframe >= 61) && (_root.enemy1._currentframe < 101)) {
enemy.exp = (30 * floor) * 5;
} else {
enemy.exp = 30 * floor;
}
}
}
function enemy_attack(obj, aspd, player, type) {
if (RO == null) {
defenseArray = new Array();
defenseitem = new Array();
defenseshield = new Array();
defenseshield[13] = 0;
defenseshield[1] = 5;
defenseshield[2] = 5;
defenseshield[3] = 6;
defenseshield[4] = 7;
defenseshield[5] = 8;
defenseshield[6] = 9;
defenseshield[7] = 3;
defenseshield[8] = 4;
defenseshield[9] = 5;
defenseshield[10] = 6;
defenseshield[11] = 7;
defenseitem[4] = 5;
defenseitem[8] = 5;
defenseitem[11] = 2;
defenseitem[20] = 36;
defenseitem[21] = 39;
defenseitem[22] = 44;
defenseitem[23] = 35;
defenseitem[24] = 38;
defenseitem[25] = 44;
defenseitem[26] = 6;
defenseitem[27] = 10;
defenseitem[61] = 30;
defenseitem[62] = 33;
defenseitem[63] = 37;
}
RO = defense_total;
_root.ero1 = ("-" + defenseArray[1].toString()) + " AC";
_root.ero2 = ("-" + defenseArray[2].toString()) + " AC";
_root.ero3 = ("-" + defenseArray[3].toString()) + " AC";
_root.ero4 = (weaponLow[equipArray[4]].toString() + " ~ ") + weaponHigh[equipArray[4]].toString();
_root.ero5 = ("-" + defenseArray[4].toString()) + " AC";
defenseArray[1] = defenseitem[equipArray[1]];
defenseArray[2] = defenseitem[equipArray[2]];
defenseArray[3] = defenseitem[equipArray[3]];
defenseArray[4] = defenseshield[_root.shield];
defense_total = ((defenseArray[1] + defenseArray[2]) + defenseArray[3]) + defenseArray[4];
plarmorClass = defense_total * 0.01;
if (player_health <= 1) {
if (gameover == 1) {
} else {
_root.go_screen.duplicateMovieClip("go_screen1", 14000);
_root.go_screen1._x = 120;
_root.go_screen1._y = 0;
_root.go_screen1.gotoAndPlay(2);
_root.damage_end.duplicateMovieClip("damage_end_pl" + pl_ptsnum, 800 + pl_ptsnum);
if (_root["damage_end_pl" + pl_ptsnum].lx == null) {
_root["damage_end_pl" + pl_ptsnum]._x = player._x;
_root["damage_end_pl" + pl_ptsnum]._y = player._y - 20;
_root["damage_end_pl" + pl_ptsnum].lx = 1;
}
chat("You have died", 30, 5);
player._visible = false;
delete obj.ht;
delete obj.static;
delete obj.atk;
delete enemy.ht_AI;
gameover = 1;
}
} else if (gameover == null) {
} else {
delete gameover;
}
if (obj.enemycoolDown < 1) {
delete obj.enemycoolDown;
} else {
obj.enemycoolDown = obj.enemycoolDown - 1;
}
if ((((Math.abs(obj._x - player._x) < 25) && (Math.abs(obj._y - player._y) < 25)) && (obj.enemycoolDown == null)) && (obj.stunTimer == null)) {
if (m_ignore == null) {
playerRetAtk = 1;
} else {
delete playerRetAtk;
}
obj.enemTimer++;
if (obj.enemTimer >= (aspd * game_speed)) {
delete obj.input;
delete obj.enemTimer;
}
if (obj.input == null) {
if (obj._currentframe > (10 + monAnimArray[type])) {
obj.gotoAndStop(obj._currentframe - 5);
obj.gotoAndStop(obj._currentframe + 5);
} else if (obj._currentframe < (5 + monAnimArray[type])) {
obj.gotoAndStop(obj._currentframe + 10);
} else {
obj.gotoAndStop(obj._currentframe + 5);
}
if (pl_ptsnum >= 10) {
pl_ptsnum = 1;
} else {
pl_ptsnum++;
}
enemy_hitRate = floor * 5;
if (desuClock == 1) {
if (enemyAtkCounter >= 5) {
delete enemyAtkCounter;
hitRate = (enemy_hitRate + Math.ceil(Math.random() * 100)) - (stats._agi + 10);
} else {
hitRate = (enemy_hitRate + Math.ceil(Math.random() * 100)) - ((stats._agi + 10) * 3);
enemyAtkCounter++;
}
} else {
hitRate = (enemy_hitRate + Math.ceil(Math.random() * 100)) - (stats._agi + 10);
}
enemyLow[0] = 5;
if (floor >= 2) {
if ((enemy._currentframe >= 61) && (enemy._currentframe < 101)) {
enemyHigh[0] = ((20 * floor) * 2) + ((mvp_dam + 10) * floor);
} else {
enemyHigh[0] = ((20 * floor) * 0.3) + (mvp_dam * floor);
}
} else {
enemyHigh[0] = 20 * floor;
}
if (enemyLow == null) {
enemyLow = new Array();
enemyHigh = new Array();
}
if (hitRate >= (60 + sf_buff)) {
obj.enemycoolDown = 35 - (((floor + 5) * 10) / 100);
playerHit = 1;
playerName = player._name;
playerDamage_calc = Math.ceil((Math.random() * enemyLow[0]) + enemyHigh[0]);
playerDamage_calc_total = Math.ceil(playerDamage_calc - (playerDamage_calc * plarmorClass));
if (playerDamage_calc_total > 0) {
playerDamage = playerDamage_calc_total;
} else {
playerDamage = 1;
}
_root.sound1.gotoAndPlay(4);
} else {
playerDamage = "Miss!";
_root.sound1.gotoAndPlay(3);
}
if (_root.plHpDis == null) {
_root.plHpDis = 500;
} else {
_root.plHpDis = 500;
}
_root.player_hitpoints.duplicateMovieClip("player_hitpoints" + pl_ptsnum, 650 + pl_ptsnum);
if (_root["player_hitpoints" + pl_ptsnum].lx == null) {
if (playerDamage == "Miss!") {
} else {
_root["player_hitpoints" + pl_ptsnum]._x = player._x;
_root["player_hitpoints" + pl_ptsnum]._y = player._y - 20;
_root["player_hitpoints" + pl_ptsnum].lx = 1;
_root["player_hitpoints" + pl_ptsnum].display = playerDamage;
}
}
if (playerDamage == "Miss!") {
_root.misspoints_mc.duplicateMovieClip("misspoints_mc" + pl_ptsnum, 625 + pl_ptsnum);
if (_root["misspoints_mc" + pl_ptsnum].lx == null) {
_root["misspoints_mc" + pl_ptsnum]._x = player._x;
_root["misspoints_mc" + pl_ptsnum]._y = player._y - 20;
_root["misspoints_mc" + pl_ptsnum].lx = 1;
_root["misspoints_mc" + pl_ptsnum].display = playerDamage;
}
player_health = player_health - 0;
} else {
_root.plyr_dam_mc.duplicateMovieClip("plyr_dam_mc" + pl_ptsnum, 700 + pl_ptsnum);
if (_root["plyr_dam_mc" + pl_ptsnum].lx == null) {
_root["plyr_dam_mc" + pl_ptsnum]._x = player._x;
_root["plyr_dam_mc" + pl_ptsnum]._y = player._y - 20;
_root["plyr_dam_mc" + pl_ptsnum].lx = 1;
}
if (player_health <= 1) {
_root.damage_end.duplicateMovieClip("damage_end_pl" + pl_ptsnum, 800 + pl_ptsnum);
if (_root["damage_end_pl" + pl_ptsnum].lx == null) {
_root["damage_end_pl" + pl_ptsnum]._x = player._x;
_root["damage_end_pl" + pl_ptsnum]._y = player._y - 20;
_root["damage_end_pl" + pl_ptsnum].lx = 1;
}
chat("You have died", 30, 5);
delete obj.ht;
delete obj.static;
delete obj.atk;
delete enemy.ht_AI;
_root.go_screen.duplicateMovieClip("go_screen1", 14000);
_root.go_screen1._x = 0;
_root.go_screen1._y = 0;
_root.go_screen1.gotoAndPlay(2);
} else {
player_health = player_health - playerDamage;
}
}
obj.input = 1;
}
} else {
delete obj.input;
}
}
function enemy_move(obj, spd, player, type) {
if (obj.lx == null) {
obj.gotoAndStop(obj._currentframe + 5);
obj.lx = 1;
}
if (class == 1) {
s_ambush = 1;
}
if (player.hb.hitTest(obj.hb)) {
if (m_ignore == 1) {
if (battle_Ignore < 2) {
delete m_command;
}
} else if (m_command == 1) {
if (battle_Ignore < 2) {
battle_Ignore++;
}
}
} else {
delete battle_Ignore;
if ((obj.atk == 1) && (obj.stun == null)) {
if (obj._x > player._x) {
obj._xscale = 100;
if (Math.abs(obj._y - player._y) < 25) {
obj.gotoAndStop(3 + monAnimArray[type]);
obj._x = obj._x - spd;
} else if (Math.abs(obj._x - player._x) < 25) {
if (obj._y > player._y) {
obj.gotoAndStop(5 + monAnimArray[type]);
obj._y = obj._y - spd;
} else {
obj.gotoAndStop(1 + monAnimArray[type]);
obj._y = obj._y + spd;
}
} else if (obj._y > player._y) {
obj.gotoAndStop(4 + monAnimArray[type]);
obj._y = obj._y - spd;
obj._x = obj._x - spd;
} else if (obj._y < player._y) {
obj.gotoAndStop(2 + monAnimArray[type]);
obj._y = obj._y + spd;
obj._x = obj._x - spd;
}
}
if (obj._x < player._x) {
obj._xscale = -100;
if (Math.abs(obj._y - player._y) < 25) {
obj.gotoAndStop(3 + monAnimArray[type]);
obj._x = obj._x + spd;
} else if (Math.abs(obj._x - player._x) < 25) {
if (obj._y > player._y) {
obj.gotoAndStop(5 + monAnimArray[type]);
obj._y = obj._y - spd;
} else {
obj.gotoAndStop(1 + monAnimArray[type]);
obj._y = obj._y + spd;
}
} else if (obj._y > player._y) {
obj.gotoAndStop(4 + monAnimArray[type]);
obj._y = obj._y - spd;
obj._x = obj._x + spd;
} else if (obj._y < player._y) {
obj.gotoAndStop(2 + monAnimArray[type]);
obj._y = obj._y + spd;
obj._x = obj._x + spd;
}
}
}
}
}
enemy_attack(obj, aspd, player);
enemy_move(obj, spd, player);
enemy_behaviour(enemy);
function level_up_bgm() {
_root.soundbgm1.gotoAndStop(2);
}
function sound_bgm() {
if ((_root.soundbgm1._x == null) && (_root.BGM == 1)) {
duplicateMovieClip (_root.soundbgm, "soundbgm1", layer21 + 10);
}
if (mvp_in == 1) {
if ((!_root.soundbgm1._currentframe) == 4) {
_root.soundbgm1.gotoAndStop(4);
}
}
}
function mvp_leave() {
layer23 = 180;
if (mvprem_effect_2 == null) {
_root.effect_flash_mc.swapDepths(90010);
_root.effect_flash_mc._x = 120;
_root.effect_flash_mc._y = 0;
_root.effect_flash._xscale = 200;
_root.effect_flash._yscale = 200;
_root.effect_flash_mc.gotoAndPlay(2);
mvp_halo._x = _root.mvpicon._x;
mvp_halo._y = _root.mvpicon._y;
mvpSpawnx = new Array();
mvpSpawny = new Array();
mvpSpawnx = [x, -48, -24, 48, 24, -24, 24, -48, 48];
mvpSpawny = [x, -48, -24, 48, 24, 24, -24, 48, -48];
var mvp_strem = 1;
while (mvp_strem < (enemyLimit + 1)) {
_root["effect" + mvp_strem]._x = _root["mon" + mvp_strem]._x;
_root["effect" + mvp_strem]._y = _root["mon" + mvp_strem]._y;
removeMovieClip(_root["mon" + mvp_strem]);
mvp_strem++;
}
var mvp_stage = 1;
while (mvp_stage < (enemyLimit + 1)) {
_root.kwisin_fury_mc.duplicateMovieClip("effect" + mvp_stage, 90000 + mvp_stage);
_root["effect" + mvp_stage]._x = _root.mvpicon._x + mvpSpawnx[mvp_stage];
_root["effect" + mvp_stage]._y = _root.mvpicon._y + mvpSpawny[mvp_stage];
_root.soundspell1.gotoAndStop(7);
removeMovieClip(_root["mon" + mvp_stage]);
mvp_stage++;
}
_root.purge_effect_mc.duplicateMovieClip("purge1", layer22 + 70);
_root.sounditem1.gotoAndStop(4);
_root.purge1._x = _root.mvpicon._x;
_root.purge1._y = _root.mvpicon._y;
_root.mvpicon._x = -9999;
mvprem_effect_2 = 1;
}
}
function mvp_arrive() {
if (mvprem_effect == null) {
_root.effect_flash_mc.swapDepths(90010);
_root.effect_flash_mc._x = 120;
_root.effect_flash_mc._y = 0;
_root.effect_flash._xscale = 200;
_root.effect_flash._yscale = 200;
_root.effect_flash_mc.gotoAndPlay(2);
mvpSpawnx = new Array();
mvpSpawny = new Array();
mvpSpawnx = [x, 0, 0, -24, 24, 0, 0, -48, 48];
mvpSpawny = [x, -24, 24, 0, 0, -48, 48, 0, 0];
var mvp_stage = 1;
while (mvp_stage < (enemyLimit + 1)) {
monAnimVar[mvp_stage] = mvp_count - 1;
monAnimArray[mvp_stage] = (mvp_count - 1) * 20;
_root.kwisin_fury_mc.duplicateMovieClip("effect" + mvp_stage, 7000 + mvp_stage);
_root["effect" + mvp_stage]._x = _root.mon9._x + mvpSpawnx[mvp_stage];
_root["effect" + mvp_stage]._y = _root.mon9._y + mvpSpawny[mvp_stage];
_root.enemy.duplicateMovieClip("mon" + mvp_stage, 6010 + mvp_stage);
_root["mon" + mvp_stage]._x = _root.mon9._x + mvpSpawnx[mvp_stage];
_root["mon" + mvp_stage]._y = _root.mon9._y + mvpSpawny[mvp_stage];
_root["mon" + mvp_stage].gotoAndStop(monAnimArray[mvp_stage] + 1);
_root["mon" + mvp_stage].move = 11;
_root.soundspell1.gotoAndStop(7);
mvp_stage++;
}
mvprem_effect = 1;
}
if (mvp_effect == null) {
_root.purge_effect_mc.duplicateMovieClip("purge1", layer7 + 70000);
_root.sounditem1.gotoAndStop(4);
_root.purge1._x = _root.mon9._x;
_root.purge1._y = _root.mon9._y - 20;
mvp_effect = 1;
}
}
function mvp_function() {
if (mvp_exit == 2) {
if (mvpCleanup == 75) {
delete mvp_stats;
delete sound_input;
delete sound_input_2;
delete mvp_exit;
delete mvpCleanup;
} else {
mvpCleanup++;
}
}
if (_root.mon9._x == null) {
} else if (mvp_health == null) {
_root.mon9.health = mvpboss_health;
_root.mon9.stat_health = _root.mon9.health;
}
if (bossExit == 1) {
if (mvp_exit == null) {
if (sound_input_2 == null) {
stopAllSounds();
sound_input_2 = 1;
}
mvp_leave();
mvp_halo.swapDepths(8000);
sloClock = 1;
enemyCount = enemyLimit + 1;
mvp_exit = 1;
}
if (endTimer < 1) {
_root.chat("<b>MVP Destroyed</b>", 30, 5);
delete endTimer;
delete bossExit;
delete mvp_mapLock;
delete mvp_in;
value = 20000;
stats_exp = stats_exp + value;
chat(value + " Experience", 30, 5);
} else {
endTimer--;
}
}
if (bossIntro == 1) {
_root.mon9.stat_health = 816 * (16 * _root.floor);
_root.mon9.health = _root.mon9.stat_health;
delete mvp_exit;
sloClock = 1;
mvp_in = 1;
enemyCount = 9;
if (sound_input == null) {
stopAllSounds();
_root.soundbgm1.gotoAndStop(4);
sound_input = 1;
}
mvp_arrive();
if (IntroTimer < 1) {
delete IntroTimer;
delete bossIntro;
_root.chat("<b>MVP Encountered</b>", 30, 5);
} else {
IntroTimer--;
}
}
if (mvpList == null) {
mvpList = new Array();
mvpList = [0, 76, 115, 143];
mvpcolor = new Color(_root.enemy1);
mvp_altcol = new Object();
mvp_altcol = {ra:"100", rb:NewVrb3, ga:"100", gb:NewVrb2, ba:"100", bb:NewVrb3, aa:"100", ab:"0"};
mvpcolor.setTransform(mvp_altcol);
mvp_count = 1;
}
if ((_root.mon9.health < 1) && (mvp_in == 1)) {
if (bossExit == null) {
delete mvprem_effect;
delete mvprem_effect_2;
endTimer = 75;
bossExit = 1;
}
}
if (_root.mon9.health == null) {
delete bossIntro;
} else {
if (mvp_in == 1) {
_root.mvpicon._x = _root.mon9._x;
_root.mvpicon._y = _root.mon9._y;
_root.mvpicon.swapDepths(layer11 + 20);
}
mvp_altcol = {ra:"-100", rb:"255", ga:"-100", gb:"255", ba:"-100", bb:"-255", aa:"100", ab:"0"};
mvpcolor.setTransform(mvp_altcol);
spriteDepth(_root.char1, _root.mon9);
enemy_attack(_root.mon9, mvpatk, mvpspd, _root.char1, 9);
enemy_move(_root.mon9, mvpspd, _root.char1, 9);
enemy_behaviour(_root.mon9, mvpspd, _root.char1, 9);
enemy_d_end(_root.mon9);
}
if ((((mapNumber == 76) && (bossHistory[floor][mapNumber] == null)) || ((mapNumber == 115) && (bossHistory[floor][mapNumber] == null))) || ((mapNumber == 143) && (bossHistory[floor][mapNumber] == null))) {
if (mvp_count > 6) {
mvp_count = 1;
}
bossIntro = 1;
mvp_mapLock = 1;
IntroTimer = 50;
if (mvp_stats == null) {
monAnimVar[9] = mvp_count;
monAnimArray[9] = monAnimVar[9] * 20;
_root.enemy.duplicateMovieClip("mon9", layer7 + 20);
_root.mon9._y = ((_root.char1._y + 96) + 24) + diry;
_root.mon9._x = (_root.char1._x - 12) + dirx;
_root.mon9.gotoAndStop(monAnimArray[9] + 1);
mvpboss_health = 130560 /* 0x01FE00 */;
mvp_health = 1;
mvp_dam = 5;
_root.mon9.atk = 1;
mvpcolor = new Color(_root.mon9);
mvp_altcol = new Object();
mvp_altcol = {ra:"-100", rb:"255", ga:"-100", gb:"255", ba:"-100", bb:"-255", aa:"100", ab:"0"};
mvpcolor.setTransform(mvp_altcol);
mvp_stats = 1;
}
bossHistory[floor][mapNumber] = 1;
mvp_count++;
}
}
function monClear() {
var mon_Clear = 1;
while (mon_Clear < (enemyCount + 1)) {
_root["mon" + mon_Clear]._x = 999;
delete monDrawStart;
delete monMulti;
delete monType;
delete monDrawStart;
delete monRand;
delete crowd;
delete monAnimVar;
delete monAnimArray;
mon_Clear++;
}
}
function deSpawn_enemy(player, enemy, spd) {
layer9 = 900;
layer8 = 300;
if (deSpawn_x == null) {
deSpawn_switch = new Array();
deSpawn_x = new Array();
deSpawn_y = new Array();
deSpawn_screen = new Array();
deSpawndistx = new Array();
deSpawn_spacex = new Array();
deSpawn_spacey = new Array();
}
var d = 1;
while (d < (dots + 1)) {
_root["." + d]._x = deSpawn_x[d];
_root["." + d]._y = deSpawn_y[d];
d++;
}
var spwn = 1;
while (spwn < (enemyCount + 1)) {
if (deSpawn_x[spwn] == null) {
} else if (Math.abs(deSpawn_x[spwn] - player._x) < 124) {
if (deSpawn_switch[spwn] == null) {
if (_root["mon" + spwn]._x == null) {
spawnfill = spwn;
_root.enemy.duplicateMovieClip("mon" + spwn, layer8 + spwn);
_root["mon" + spwn]._x = deSpawn_x[spwn];
_root["mon" + spwn]._y = deSpawn_y[spwn];
_root["mon" + spwn].gotoAndStop(monAnimArray[spwn]);
deSpawn_switch[spwn] = 1;
}
}
deSpawn_x[spwn] = _root["mon" + spwn]._x;
deSpawn_y[spwn] = _root["mon" + spwn]._y;
} else if (Math.abs(deSpawn_x[spwn] - player._x) > 124) {
delete deSpawn_switch[spwn];
}
spwn++;
}
var deSpawnCount = 1;
while (deSpawnCount < (enemyCount + 1)) {
readout6 = (deSpawndistx[deSpawnCount] + "compare") + distx;
if (deSpawn_x[deSpawnCount] == null) {
delete incd;
if (Math.abs(enemy._x - player._x) > 124) {
if (enemy._x == null) {
} else {
deSpawn_x[deSpawnCount] = enemy._x;
deSpawn_y[deSpawnCount] = enemy._y;
deSpawn_screen[deSpawnCount] = mapNumber;
removeMovieClip(enemy);
if (incd == null) {
dots++;
_root.debugdot.duplicateMovieClip("." + dots, layer9 + dots);
_root["." + dots]._x = enemy._x;
_root["." + dots]._y = enemy._y;
incd = 1;
}
}
}
}
deSpawnCount++;
}
}
function focusedSpawn() {
if (fs_msg == null) {
chat("You've been <b>Ambushed!!!</b>", 30, 5);
fs_msg = 1;
}
enemyCount = 8;
enemyDestroyed = 0;
enemOverCount = 0;
delete monbehaviour;
var focusSpawn = 1;
while (focusSpawn < 9) {
if (map_dir_x[mapNumber][1] == null) {
} else {
if (_root["mon" + focusSpawn]._x == null) {
_root.enemy.duplicateMovieClip("mon" + focusSpawn, layer7 + focusSpawn);
}
dirx = map_dir_x[mapNumber][focusSpawn];
diry = map_dir_y[mapNumber][focusSpawn];
_root["mon" + focusSpawn]._y = (1 * diry) + curMap_y;
_root["mon" + focusSpawn]._x = (1 * dirx) + curMap_x;
monbehaviour = Math.ceil(Math.random() * 50);
if (monbehaviour >= 50) {
_root["mon" + focusSpawn].move = 11;
}
_root.purge_effect_mc.duplicateMovieClip("purge" + focusSpawn, layer22 + focusSpawn);
_root.sounditem1.gotoAndStop(4);
_root["purge" + focusSpawn]._x = _root["mon" + focusSpawn]._x;
_root["purge" + focusSpawn]._y = _root["mon" + focusSpawn]._y;
_root["mon" + focusSpawn].gotoAndStop(monAnimArray[enemyDraw] + 1);
}
focusSpawn++;
}
}
function monForm(enemyDraw) {
if (formation == 1) {
if (_root.mon1._x == null) {
_root.enemy.duplicateMovieClip("mon1", layer7 + 1);
}
if ((Math.abs(_root.mon1._x - _root.char1._x) >= 148) || (Math.abs(_root.mon1._y - _root.char1._y) >= 148)) {
_root.mon1._y = ((_root.char1._y + 96) + 24) + diry;
_root.mon1._x = (_root.char1._x - 12) + dirx;
_root.mon1.gotoAndStop(monAnimArray[enemyDraw] + 1);
}
}
if (formation == 2) {
if (_root.mon2._x == null) {
_root.enemy.duplicateMovieClip("mon2", layer7 + 2);
}
if ((Math.abs(_root.mon2._x - _root.char1._x) >= 148) || (Math.abs(_root.mon2._y - _root.char1._y) >= 148)) {
_root.mon2._y = ((_root.char1._y + 96) + 24) + diry;
_root.mon2._x = (_root.char1._x + 24) + dirx;
_root.mon2.gotoAndStop(monAnimArray[enemyDraw] + 1);
}
}
if (formation == 3) {
if (_root.mon3._x == null) {
_root.enemy.duplicateMovieClip("mon3", layer7 + 3);
}
if ((Math.abs(_root.mon3._x - _root.char1._x) >= 148) || (Math.abs(_root.mon3._y - _root.char1._y) >= 148)) {
_root.mon3._y = ((_root.char1._y + 120) + 24) + diry;
_root.mon3._x = (_root.char1._x - 12) + dirx;
_root.mon3.gotoAndStop(monAnimArray[enemyDraw] + 1);
}
}
if (formation == 4) {
if (_root.mon4._x == null) {
_root.enemy.duplicateMovieClip("mon4", layer7 + 4);
}
if ((Math.abs(_root.mon4._x - _root.char1._x) >= 148) || (Math.abs(_root.mon4._y - _root.char1._y) >= 148)) {
_root.mon4._y = ((_root.char1._y + 120) + 24) + diry;
_root.mon4._x = (_root.char1._x + 24) + dirx;
_root.mon4.gotoAndStop(monAnimArray[enemyDraw] + 1);
}
}
if (formation == 5) {
if (_root.mon5._x == null) {
_root.enemy.duplicateMovieClip("mon5", layer7 + 5);
}
if ((Math.abs(_root.mon5._x - _root.char1._x) >= 148) || (Math.abs(_root.mon5._y - _root.char1._y) >= 148)) {
_root.mon5._y = ((_root.char1._y + 144) + 24) + diry;
_root.mon5._x = (_root.char1._x - 12) + dirx;
_root.mon5.gotoAndStop(monAnimArray[enemyDraw] + 1);
}
}
if (formation == 6) {
if (_root.mon6._x == null) {
_root.enemy.duplicateMovieClip("mon6", layer7 + 6);
}
if ((Math.abs(_root.mon6._x - _root.char1._x) >= 148) || (Math.abs(_root.mon6._y - _root.char1._y) >= 148)) {
_root.mon6._y = ((_root.char1._y + 144) + 24) + diry;
_root.mon6._x = (_root.char1._x + 24) + dirx;
_root.mon6.gotoAndStop(monAnimArray[enemyDraw] + 1);
}
}
if (formation == 7) {
if (_root.mon7._x == null) {
_root.enemy.duplicateMovieClip("mon7", layer7 + 7);
}
if ((Math.abs(_root.mon7._x - _root.char1._x) >= 148) || (Math.abs(_root.mon7._y - _root.char1._y) >= 148)) {
_root.mon7._y = ((_root.char1._y + 168) + 24) + diry;
_root.mon7._x = (_root.char1._x - 12) + dirx;
_root.mon7.gotoAndStop(monAnimArray[enemyDraw] + 1);
}
}
if (formation == 8) {
if (_root.mon8._x == null) {
_root.enemy.duplicateMovieClip("mon8", layer7 + 8);
}
if ((Math.abs(_root.mon8._x - _root.char1._x) >= 148) || (Math.abs(_root.mon8._y - _root.char1._y) >= 148)) {
_root.mon8._y = ((_root.char1._y + 168) + 24) + diry;
_root.mon8._x = (_root.char1._x + 24) + dirx;
_root.mon8.gotoAndStop(monAnimArray[enemyDraw] + 1);
}
}
if (formation == 9) {
if (_root.mon9._x == null) {
_root.enemy.duplicateMovieClip("mon8", layer7 + 20);
}
if ((Math.abs(_root.mon9._x - _root.char1._x) >= 148) || (Math.abs(_root.mon9._y - _root.char1._y) >= 148)) {
_root.mon9._y = ((_root.char1._y + 168) + 24) + diry;
_root.mon9._x = (_root.char1._x + 24) + dirx;
_root.mon9.gotoAndStop(monAnimArray[enemyDraw] + 1);
}
}
}
function enemySpawn() {
if (monMulti == null) {
monAnimVar = new Array();
monAnimArray = new Array();
monMulti = 1;
}
if (monType == null) {
monType = 1;
}
var blockedSpawn = spawnBlock();
if ((monDrawStart == null) && (blockedSpawn == false)) {
var enemyDraw = 1;
while (enemyDraw < (enemyCount + 1)) {
var monanimfiller = 1;
while (monanimfiller < (enemyCount + 1)) {
if (monAnimVar[monanimfiller] == null) {
if (crowd == null) {
monRand = Math.ceil(Math.random() * 6) * 20;
crowd = Math.ceil(Math.random() * 100);
}
if (crowd < 50) {
monAnimArray[monanimfiller] = monRand;
} else {
monAnimVar[monanimfiller] = 6;
monAnimArray[monanimfiller] = Math.ceil(Math.random() * monAnimVar[monanimfiller]) * 20;
}
}
if (map_dir_x[mapNumber][1] == null) {
if (enemyCount >= enemyLimit) {
formation++;
monForm(enemyDraw);
} else {
formation++;
monForm(enemyDraw);
}
} else {
focusedSpawn();
}
monanimfiller++;
}
enemyDraw++;
}
delete formation;
monDrawStart = 1;
}
}
function regenHealth() {
if ((player_health == stats_health) && (player_mana == stats_mana)) {
if (fullhm == 1) {
} else {
chat("<b>You feel Excellent</b>", 30, 5);
delete resting;
fullhm = 1;
}
}
if (Key.isDown(Key.getCode()) || (m_input == 1)) {
delete resting;
}
if ((player_health < stats_health) || (player_mana < stats_mana)) {
delete fullhm;
if ((!Key.isDown(Key.getCode())) || ((!m_input) == 1)) {
if (resting >= 600) {
if (regenTimer >= 50) {
chat("<b>Resting...</b>", 30, 5);
_root.plHpDis = 500;
heal = Math.ceil(player_health * 0.05);
mana = Math.ceil(player_mana * 0.05);
if ((player_mana + mana) >= stats_mana) {
if (fullm == 1) {
} else {
chat("<b>You Mind is excellent (Full Mana)</b>", 30, 5);
player_mana = stats_mana;
fullm = 1;
}
} else {
player_mana = player_mana + mana;
delete fullm;
}
if ((player_health + heal) >= stats_health) {
if (fullh == 1) {
} else {
chat("<b>You Body is excellent (Full Health)</b>", 30, 5);
player_health = stats_health;
fullh = 1;
}
} else {
player_health = player_health + heal;
delete fullh;
}
delete regenTimer;
} else {
regenTimer = regenTimer + 1;
}
} else {
resting++;
}
}
}
}
function armor_ench() {
if (armor_use == 1) {
if (((((armorNum == 4) || (armorNum == 8)) || (armorNum == 11)) || (armorNum == 26)) || (armorNum == 27)) {
if (equipArray[3] == null) {
equipArray[3] = armorNum;
equipmodW[3] = itemModW[keys];
equipmodA[3] = itemModA[keys];
chat("You equip (Right Hand) " + itemMsg[equipArray[3]], 30, 5);
_root.sounditem1.gotoAndStop(3);
if (itemNum[keys] <= 0) {
delete itemModW[keys];
delete itemModA[keys];
}
delete armor_use;
} else if (equipArray[2] == null) {
equipArray[2] = armorNum;
equipmodW[2] = itemModW[keys];
equipmodA[2] = itemModA[keys];
if (itemNum[keys] <= 0) {
delete itemModW[keys];
delete itemModA[keys];
}
chat("You equip (Left Hand) " + itemMsg[equipArray[2]], 30, 5);
_root.sounditem1.gotoAndStop(3);
delete armor_use;
} else if ((((((itemNum[keys] >= 1) && (itemNum[1] >= 1)) && (itemNum[2] >= 1)) && (itemNum[3] >= 1)) && (itemNum[4] >= 1)) && (itemNum[5] >= 1)) {
chat("<b>Can't Equip; Your Inventory is full</b>", 30, 5);
delete armor_use;
itemNum[keys] = itemNum[keys] + 1;
} else {
chat("You equip (Right Hand) " + itemMsg[armorNum], 30, 5);
founditemnum = 1;
equiptog = 1;
enemydeath = 1;
enemyitem = equipArray[3];
equipArray[3] = armorNum;
_root.sounditem1.gotoAndStop(3);
delete armor_use;
}
} else if (((((((((((armorNum == 28) || (armorNum == 29)) || (armorNum == 30)) || (armorNum == 31)) || (armorNum == 32)) || (armorNum == 33)) || (armorNum == 34)) || (armorNum == 35)) || (armorNum == 36)) || (armorNum == 37)) || (armorNum == 38)) {
if (equipArray[5] == null) {
equipArray[5] = armorNum;
equipmodW[5] = itemModW[keys];
equipmodA[5] = itemModA[keys];
if (itemNum[keys] <= 0) {
delete itemModW[keys];
delete itemModA[keys];
}
_root.shield = armorNum - 27;
chat("You equip (Shield) " + itemMsg[equipArray[5]], 30, 5);
_root.sounditem1.gotoAndStop(3);
delete armor_use;
} else if ((((((itemNum[keys] >= 1) && (itemNum[1] >= 1)) && (itemNum[2] >= 1)) && (itemNum[3] >= 1)) && (itemNum[4] >= 1)) && (itemNum[5] >= 1)) {
chat("<b>Can't Equip; Your Inventory is full</b>", 30, 5);
delete armor_use;
itemNum[keys] = itemNum[keys] + 1;
} else {
chat("You equip (Shield) " + itemMsg[armorNum], 30, 5);
founditemnum = 1;
equiptog = 1;
enemydeath = 1;
enemyitem = equipArray[5];
equipArray[5] = armorNum;
_root.shield = armorNum - 27;
_root.sounditem1.gotoAndStop(3);
delete armor_use;
}
} else if ((((((armorNum == 14) || (armorNum == 15)) || (armorNum == 16)) || (armorNum == 17)) || (armorNum == 18)) || (armorNum == 19)) {
trace("Findme");
if (equipArray[4] == null) {
equipArray[4] = armorNum;
equipmodW[4] = itemModW[keys];
equipmodA[4] = itemModA[keys];
if (itemNum[keys] <= 0) {
delete itemModW[keys];
delete itemModA[keys];
}
chat(((("You equip (Weapon)" + weapmod[equipmodW[4]]) + itemMsg[equipArray[4]]) + " ") + armormod[equipmodA[4]], 30, 5);
_root.sounditem1.gotoAndStop(3);
delete armor_use;
} else if ((((((itemNum[keys] >= 1) && (itemNum[1] >= 1)) && (itemNum[2] >= 1)) && (itemNum[3] >= 1)) && (itemNum[4] >= 1)) && (itemNum[5] >= 1)) {
chat("<b>Can't Equip; Your Inventory is full</b>", 30, 5);
delete armor_use;
itemNum[keys] = itemNum[keys] + 1;
} else {
enemyitem = equipArray[4];
equiptog = 1;
enemydeath = 1;
equipSwitchW[4] = equipModW[4];
equipSwitchA[4] = equipModA[4];
equipArray[4] = armorNum;
equipmodW[4] = itemModW[keys];
equipmodA[4] = itemModA[keys];
chat(((("You equip (Weapon)" + weapmod[itemModW[keys]]) + itemMsg[equipArray[4]]) + " ") + armormod[itemModA[keys]], 30, 5);
founditemnum = 1;
equipSwap = 2;
itemModW[modfiller] = equipSwitchW[4];
itemModA[modfiller] = equipSwitchA[4];
_root.sounditem1.gotoAndStop(3);
delete armor_use;
if (itemNum[keys] <= 0) {
delete itemModW[keys];
delete itemModA[keys];
}
}
} else if (equipArray[1] == null) {
equipArray[1] = armorNum;
equipmodW[1] = itemModW[keys];
equipmodA[1] = itemModA[keys];
chat("You equip (Armor) " + itemMsg[equipArray[1]], 30, 5);
_root.sounditem1.gotoAndStop(3);
if (itemNum[keys] <= 0) {
delete itemModW[keys];
delete itemModA[keys];
}
delete armor_use;
} else if ((((((itemNum[keys] >= 1) && (itemNum[1] >= 1)) && (itemNum[2] >= 1)) && (itemNum[3] >= 1)) && (itemNum[4] >= 1)) && (itemNum[5] >= 1)) {
chat("<b>Can't Equip; Your Inventory is full</b>", 30, 5);
delete armor_use;
itemNum[keys] = itemNum[keys] + 1;
} else {
chat("You equip (Armor) " + itemMsg[armorNum], 30, 5);
founditemnum = 1;
equiptog = 1;
enemydeath = 1;
enemyitem = equipArray[1];
equipArray[1] = armorNum;
_root.sounditem1.gotoAndStop(3);
delete armor_use;
}
}
if (equipSwap == 2) {
if (itemModW[keys] == 0) {
if (itemArraynum[keys] == null) {
itemModW[equipfiller] = equipSwitchW[4];
itemModA[equipfiller] = equipSwitchA[4];
delete equipSwap;
} else {
itemModW[keys] = equipSwitchW[4];
itemModA[keys] = equipSwitchA[4];
delete equipSwap;
}
}
}
if (equipSwap == 1) {
if (itemModW[keys] == 0) {
if (itemArraynum[modfillnum] == null) {
itemModW[modfillnum + 1] = equipSwitchW[keys];
itemModA[modfillnum + 1] = equipSwitchA[keys];
} else {
itemModW[modfillnum] = equipSwitchW[keys];
itemModA[modfillnum] = equipSwitchA[keys];
}
delete equipSwap;
}
}
}
function weapon() {
if (weaponarray == null) {
weaponLow = new Array();
weaponHigh = new Array();
weaponarray = 1;
}
weaponLow[14] = 5;
weaponHigh[14] = 10;
weaponLow[15] = 55;
weaponHigh[15] = 90;
weaponLow[16] = 50;
weaponHigh[16] = 85;
weaponLow[17] = 35;
weaponHigh[17] = 70;
weaponLow[18] = 150;
weaponHigh[18] = 200;
weaponLow[19] = 170;
weaponHigh[19] = 190;
if (equipArray[4] == null) {
weapon_abs = 100;
weapon_start = 100;
}
damage2 = Math.ceil(damage * 0.2);
if (potencebuff == 1) {
} else {
po_buff = 0;
}
if (blessbuff == 1) {
bl_buff = 20;
} else {
bl_buff = 0;
}
if (shadowbuff == 1) {
sf_buff = 20;
} else {
sf_buff = 0;
}
if (mightbuff == 1) {
m_buff = 10;
} else {
m_buff = 0;
}
if (furybuff == 1) {
firstFury = 1;
f_buff = lvl;
} else {
f_buff = 1;
}
if (invis_buff == 1) {
i_buff = 4;
} else {
i_buff = 1;
}
}
function crafts_Items() {
if (craft_use == 1) {
chat((((("<b>You cannot use that (" + itemMsg[itemArraynum[keys]]) + "(") + ItemNum[keys]) + ")") + ")</b>", 30, 5);
delete craft_use;
}
if (wine_use == 1) {
_root.plHpDis = 500;
chat("You used Wine", 30, 5);
if (player_mana >= stats_mana) {
player_mana = stats_mana;
}
var i;
while ((player_mana < stats_mana) && (i < 25)) {
(player_mana++) && (i++);
}
_root.sounditem1.gotoAndStop(5);
delete wine_use;
}
if (herbp_use == 1) {
_root.plHpDis = 500;
chat("You used Herb Pipe", 30, 5);
if (player_mana >= stats_mana) {
player_mana = stats_mana;
}
if (player_health < 50) {
} else {
player_health = player_health - 50;
}
var i;
while ((player_mana < stats_mana) && (i < 300)) {
(player_mana++) && (i++);
}
_root.sounditem1.gotoAndStop(5);
delete herbp_use;
}
if (sonhip_use == 1) {
_root.plHpDis = 500;
chat("You used Sonhi Pipe", 30, 5);
if (player_mana >= stats_mana) {
player_mana = stats_mana;
}
if (player_health < 50) {
} else {
player_health = player_health - 50;
}
var i;
while ((player_mana < stats_mana) && (i < 450)) {
(player_mana++) && (i++);
}
_root.sounditem1.gotoAndStop(5);
delete sonhip_use;
}
if (liver_use == 1) {
_root.plHpDis = 500;
chat("You ate Bear's Liver", 30, 5);
if (player_health >= stats_health) {
player_health = stats_health;
}
var i;
while ((player_health < stats_health) && (i < 500)) {
(player_health++) && (i++);
}
_root.sounditem1.gotoAndStop(2);
delete liver_use;
}
if (beef_use == 1) {
_root.plHpDis = 500;
chat("You ate Beef", 30, 5);
if (player_health >= stats_health) {
player_health = stats_health;
}
var i;
while ((player_health < stats_health) && (i < 50)) {
(player_health++) && (i++);
}
_root.sounditem1.gotoAndStop(2);
delete beef_use;
}
if (redpot_use == 1) {
potionuse();
chat("You drank a red potion", 30, 5);
player_health = stats_health;
delete redpot_use;
}
if (potUsage == null) {
potUsage = new Array();
potUsage[1] = 8;
potUsage[2] = 10;
potUsage[3] = 12;
}
if (concpot_use == 1) {
if (itemuse >= 10) {
itemuse = 1;
}
if (concpotTimer == null) {
itemuse++;
potionuse();
chat("You drank a speed potion", 30, 5);
if (PotNum == 3) {
} else {
PotNum++;
}
concpotTimer = 10000 / PotNum;
}
if (concpotTimer <= 0) {
delete PotNum;
delete concpot_use;
delete concpotTimer;
chat("Your increased speed is gone", 30, 5);
} else {
if (stats_agi_full < 2) {
stats_agi_full = 2.96;
} else {
stats_agi_full = stats_agi - (potUsage[PotNum] + base_agi);
}
concpotTimer = concpotTimer - 10;
}
} else {
if (stats_agi_full == null) {
stats_agi_full = stats_agi - base_agi;
}
if (stats_agi_full < 2) {
stats_agi_full = 2.96;
} else {
stats_agi_full = stats_agi - base_agi;
}
}
if (PotNum == null) {
concpot_time = 10000;
} else {
concpot_time = 10000 / PotNum;
}
}
function playerVsEnemy(obj, atk, enemy) {
if (atk.hitTest(enemy.hb) && (obj._currentframe >= (11 + armor_anim))) {
faceEnemy = 1;
firstAttack = 1;
atkSpawn = enemy._name;
plhitRate = (player_hitRate + Math.ceil(Math.random() * 100)) + (stats_dex + base_dex);
player_hitRate = 40;
if (plhitRate >= (100 - bl_buff)) {
_root.sound1.gotoAndPlay(2);
if (desuClock == 1) {
damage = ((Math.ceil(((Math.random() * weapon_abs) + weapon_start) + ((stats_str + m_buff) + (base_str / 10))) * f_buff) * (5 + i_buff)) + po_buff;
po_buff = Math.ceil(damage * 0.2);
} else {
damage = ((Math.ceil(((Math.random() * weapon_abs) + weapon_start) + ((stats_str + m_buff) + (base_str / 10))) * f_buff) * i_buff) + po_buff;
po_buff = Math.ceil(damage * 0.2);
}
_root.enemyRO = _root.enemyRO + (((((damage + ":") + enemy.health) + "current ") + (enemy.health - damage)) + "<br>");
_root.enemyRO2 = enemy.health;
enemy.health = enemy.health - damage;
if (class == 2) {
if (atkcounter >= meleenum) {
atk._x = 999;
atk._y = 999;
delete atkcounter;
} else {
atkcounter++;
}
} else {
atk._x = 999;
atk._y = 999;
}
delete invis_buff;
nmeHit = 1;
} else {
damage = "Miss!";
_root.enemyRO = _root.enemyRO + (((damage + ":") + enemy.health) + "<br>");
if (class == 2) {
if (atkcounter >= meleenum) {
atk._x = -200;
atk._y = -200;
delete atkcounter;
} else {
atkcounter++;
}
} else {
atk._x = -200;
atk._y = -200;
}
}
if (pointsnum == null) {
pointsnum = 1;
}
if (pointsnum >= 10) {
pointsnum = 1;
} else {
pointsnum++;
}
if (plhitRate >= 80) {
if (player_mana >= stats_mana) {
player_mana = stats_mana;
} else {
player_mana = player_mana + Math.ceil(stats_mana / 25);
}
if ((desuClock == 1) || (invis_buff == 1)) {
charshadowfunc();
if (damage == "Miss!") {
} else {
_root.ambushnme_hitpoints.duplicateMovieClip("ambush_hitpoints" + pointsnum, 2100 + pointsnum);
if (_root["ambush_hitpoints" + pointsnum].lx == null) {
_root["ambush_hitpoints" + pointsnum]._x = enemy._x;
_root["ambush_hitpoints" + pointsnum]._y = enemy._y - 20;
_root["ambush_hitpoints" + pointsnum].display = damage;
_root["ambush_hitpoints" + pointsnum].lx = 1;
}
}
_root.damage_mc.duplicateMovieClip("damage_mc" + pointsnum, 1000 + pointsnum);
if (_root["damage_mc" + pointsnum].lx == null) {
_root["damage_mc" + pointsnum]._x = enemy._x;
_root["damage_mc" + pointsnum]._y = enemy._y - 20;
_root["damage_mc" + pointsnum].lx = 1;
}
} else {
if (damage == "Miss!") {
_root.misspoints_mc_pl.duplicateMovieClip("misspoints_mc_pl" + pointsnum, 1200 + pointsnum);
if (_root["misspoints_mc_pl" + pointsnum].lx == null) {
_root["misspoints_mc_pl" + pointsnum]._x = enemy._x;
_root["misspoints_mc_pl" + pointsnum]._y = enemy._y - 20;
_root["misspoints_mc_pl" + pointsnum].lx = 1;
_root["misspoints_mc_pl" + pointsnum].display = damage;
}
}
if (damage == "Miss!") {
} else {
_root.damage_mc.duplicateMovieClip("damage_mc" + pointsnum, 1000 + pointsnum);
if (_root["damage_mc" + pointsnum].lx == null) {
_root["damage_mc" + pointsnum]._x = enemy._x;
_root["damage_mc" + pointsnum]._y = enemy._y - 20;
_root["damage_mc" + pointsnum].lx = 1;
}
}
if (damage == "Miss!") {
} else if (_root["nme_hitpoints" + pointsnum].lx == null) {
_root.nme_hitpoints.duplicateMovieClip("nme_hitpoints" + pointsnum, 2000 + pointsnum);
_root["nme_hitpoints" + pointsnum]._x = enemy._x;
_root["nme_hitpoints" + pointsnum]._y = enemy._y - 20;
_root["nme_hitpoints" + pointsnum].lx = 1;
}
}
} else {
if (damage == "Miss!") {
_root.misspoints_mc_pl.duplicateMovieClip("misspoints_mc_pl" + pointsnum, 1200 + pointsnum);
if (_root["misspoints_mc_pl" + pointsnum].lx == null) {
_root["misspoints_mc_pl" + pointsnum]._x = enemy._x;
_root["misspoints_mc_pl" + pointsnum]._y = enemy._y - 20;
_root["misspoints_mc_pl" + pointsnum].lx = 1;
_root["misspoints_mc_pl" + pointsnum].display = damage;
}
}
if ((!damage) == "Miss!") {
if (_root["nme_hitpoints" + pointsnum].lx == null) {
_root.nme_hitpoints.duplicateMovieClip("nme_hitpoints" + pointsnum, 2000 + pointsnum);
_root["nme_hitpoints" + pointsnum]._x = enemy._x;
_root["nme_hitpoints" + pointsnum]._y = enemy._y - 20;
_root["nme_hitpoints" + pointsnum].lx = 1;
}
}
}
_root["nme_hitpoints" + pointsnum].display = damage;
}
}
function create() {
_root.item_.duplicateMovieClip("item" + nmecreate, layer15 + nmecreate);
_root["item" + nmecreate].gotoAndStop(ItemArraynum[keys + invenSelect]);
_root["item" + nmecreate]._x = (Math.floor(_root.char1._x / 24) * 24) + 12;
_root["item" + nmecreate]._y = (Math.floor(_root.char1._y / 24) * 24) + 1;
_root["item" + nmecreate].itemModW = 1;
}
function itemfiller() {
if (_root.item1._x == null) {
nmecreate = 1;
create();
} else if (_root.item2._x == null) {
nmecreate = 2;
create();
} else if (_root.item3._x == null) {
nmecreate = 3;
create();
} else if (_root.item4._x == null) {
nmecreate = 4;
create();
} else if (_root.item5._x == null) {
nmecreate = 5;
create();
} else if (_root.item6._x == null) {
nmecreate = 6;
create();
} else if (_root.item7._x == null) {
nmecreate = 7;
create();
} else if (_root.item8._x == null) {
nmecreate = 8;
create();
} else if (_root.item9._x == null) {
nmecreate = 9;
create();
} else if (_root.item10._x == null) {
nmecreate = 10;
create();
}
}
function equipFunc() {
if (armor_use == 1) {
if (((((armorNum == 4) || (armorNum == 8)) || (armorNum == 11)) || (armorNum == 26)) || (armorNum == 27)) {
if (equipArray[3] == null) {
equipArray[3] = armorNum;
equipmodW[3] = itemModW[keys];
equipmodA[3] = itemModA[keys];
chat("You equip (Right Hand) " + itemMsg[equipArray[3]], 30, 5);
_root.sounditem1.gotoAndStop(3);
if (itemNum[keys] <= 0) {
delete itemModW[keys];
delete itemModA[keys];
}
delete armor_use;
} else if (equipArray[2] == null) {
equipArray[2] = armorNum;
equipmodW[2] = itemModW[keys];
equipmodA[2] = itemModA[keys];
if (itemNum[keys] <= 0) {
delete itemModW[keys];
delete itemModA[keys];
}
chat("You equip (Left Hand) " + itemMsg[equipArray[2]], 30, 5);
_root.sounditem1.gotoAndStop(3);
delete armor_use;
} else if (((((((((((itemNum[keys] >= 1) && (itemNum[1] >= 1)) && (itemNum[2] >= 1)) && (itemNum[3] >= 1)) && (itemNum[4] >= 1)) && (itemNum[5] >= 1)) && (itemNum[6] >= 1)) && (itemNum[7] >= 1)) && (itemNum[8] >= 1)) && (itemNum[9] >= 1)) && (itemNum[10] >= 1)) {
chat("<b>Can't Equip; Your Inventory is full</b>", 30, 5);
delete armor_use;
itemNum[keys + invenSelect] = itemNum[keys + invenSelect] + 1;
} else {
chat("You equip (Right Hand) " + itemMsg[armorNum], 30, 5);
founditemnum = 1;
equiptog = 1;
enemydeath = 1;
enemyitem = equipArray[3];
equipArray[3] = armorNum;
_root.sounditem1.gotoAndStop(3);
delete armor_use;
}
} else if (((((((((((armorNum == 28) || (armorNum == 29)) || (armorNum == 30)) || (armorNum == 31)) || (armorNum == 32)) || (armorNum == 33)) || (armorNum == 34)) || (armorNum == 35)) || (armorNum == 36)) || (armorNum == 37)) || (armorNum == 38)) {
if (equipArray[5] == null) {
equipArray[5] = armorNum;
equipmodW[5] = itemModW[keys];
equipmodA[5] = itemModA[keys];
if (itemNum[keys] <= 0) {
delete itemModW[keys];
delete itemModA[keys];
}
_root.shield = armorNum - 27;
chat("You equip (Shield) " + itemMsg[equipArray[5]], 30, 5);
_root.sounditem1.gotoAndStop(3);
delete armor_use;
} else if (((((((((((itemNum[keys] >= 1) && (itemNum[1] >= 1)) && (itemNum[2] >= 1)) && (itemNum[3] >= 1)) && (itemNum[4] >= 1)) && (itemNum[5] >= 1)) && (itemNum[6] >= 1)) && (itemNum[7] >= 1)) && (itemNum[8] >= 1)) && (itemNum[9] >= 1)) && (itemNum[10] >= 1)) {
chat("<b>Can't Equip; Your Inventory is full</b>", 30, 5);
delete armor_use;
itemNum[keys] = itemNum[keys] + 1;
} else {
chat("You equip (Shield) " + itemMsg[armorNum], 30, 5);
founditemnum = 1;
equiptog = 1;
enemydeath = 1;
enemyitem = equipArray[5];
equipArray[5] = armorNum;
_root.shield = armorNum - 27;
_root.sounditem1.gotoAndStop(3);
delete armor_use;
}
} else if ((((((armorNum == 14) || (armorNum == 15)) || (armorNum == 16)) || (armorNum == 17)) || (armorNum == 18)) || (armorNum == 19)) {
if (equipArray[4] == null) {
equipArray[4] = armorNum;
equipmodW[4] = itemModW[keys];
equipmodA[4] = itemModA[keys];
if (itemNum[keys] <= 0) {
delete itemModW[keys];
delete itemModA[keys];
}
chat(((("You equip (Weapon)" + weapmod[equipmodW[4]]) + itemMsg[equipArray[4]]) + " ") + armormod[equipmodA[4]], 30, 5);
_root.sounditem1.gotoAndStop(3);
delete armor_use;
} else if (((((((((((itemNum[keys] >= 1) && (itemNum[1] >= 1)) && (itemNum[2] >= 1)) && (itemNum[3] >= 1)) && (itemNum[4] >= 1)) && (itemNum[5] >= 1)) && (itemNum[6] >= 1)) && (itemNum[7] >= 1)) && (itemNum[8] >= 1)) && (itemNum[9] >= 1)) && (itemNum[10] >= 1)) {
chat("<b>Can't Equip; Your Inventory is full</b>", 30, 5);
delete armor_use;
itemNum[keys] = itemNum[keys] + 1;
} else {
enemyitem = equipArray[4];
equiptog = 1;
enemydeath = 1;
equipSwitchW[4] = equipModW[4];
equipSwitchA[4] = equipModA[4];
equipArray[4] = armorNum;
equipmodW[4] = itemModW[keys];
equipmodA[4] = itemModA[keys];
chat(((("You equip (Weapon)" + weapmod[itemModW[keys]]) + itemMsg[equipArray[4]]) + " ") + armormod[itemModA[keys]], 30, 5);
founditemnum = 1;
equipSwap = 2;
itemModW[modfiller] = equipSwitchW[4];
itemModA[modfiller] = equipSwitchA[4];
_root.sounditem1.gotoAndStop(3);
delete armor_use;
if (itemNum[keys] <= 0) {
delete itemModW[keys];
delete itemModA[keys];
}
}
} else if (equipArray[1] == null) {
equipArray[1] = armorNum;
equipmodW[1] = itemModW[keys];
equipmodA[1] = itemModA[keys];
chat("You equip (Armor) " + itemMsg[equipArray[1]], 30, 5);
_root.sounditem1.gotoAndStop(3);
if (itemNum[keys] <= 0) {
delete itemModW[keys];
delete itemModA[keys];
}
delete armor_use;
} else if (((((((((((itemNum[keys] >= 1) && (itemNum[1] >= 1)) && (itemNum[2] >= 1)) && (itemNum[3] >= 1)) && (itemNum[4] >= 1)) && (itemNum[5] >= 1)) && (itemNum[6] >= 1)) && (itemNum[7] >= 1)) && (itemNum[8] >= 1)) && (itemNum[9] >= 1)) && (itemNum[10] >= 1)) {
chat("<b>Can't Equip; Your Inventory is full</b>", 30, 5);
delete armor_use;
itemNum[keys] = itemNum[keys] + 1;
} else {
chat("You equip (Armor) " + itemMsg[armorNum], 30, 5);
founditemnum = 1;
equiptog = 1;
enemydeath = 1;
enemyitem = equipArray[1];
equipArray[1] = armorNum;
_root.sounditem1.gotoAndStop(3);
delete armor_use;
}
}
if (equipSwap == 2) {
if (itemModW[keys] == 0) {
if (itemArraynum[keys] == null) {
itemModW[equipfiller] = equipSwitchW[4];
itemModA[equipfiller] = equipSwitchA[4];
delete equipSwap;
} else {
itemModW[keys] = equipSwitchW[4];
itemModA[keys] = equipSwitchA[4];
delete equipSwap;
}
}
}
if (equipSwap == 1) {
if (itemModW[keys] == 0) {
if (itemArraynum[modfillnum] == null) {
itemModW[modfillnum + 1] = equipSwitchW[keys];
itemModA[modfillnum + 1] = equipSwitchA[keys];
} else {
itemModW[modfillnum] = equipSwitchW[keys];
itemModA[modfillnum] = equipSwitchA[keys];
}
delete equipSwap;
}
}
}
function dropEngine(value) {
if (prevItem == value) {
if (ItemNum[value] < 1) {
delete ItemArraynum[value];
delete ItemNum[value];
} else if (ItemNum[value] == 1) {
_root["item" + nmecreate].number = _root["item" + nmecreate].number + 1;
delete ItemArraynum[value];
delete ItemNum[value];
}
if (ItemNum[value] <= 0) {
if ((!ItemArraynum[value]) == null) {
if (_root["item" + nmecreate]._x == null) {
if (nmecreate >= 10) {
chat("<b>Cannot Drop More Items.</b>", 30, 5);
} else {
ItemNum[value] = ItemNum[value] - 1;
chat(((("You dropped " + itemMsg[ItemArraynum[value]]) + "(") + "1") + ")", 30, 5);
itemfiller();
dropPatt();
}
}
if (_root["item" + nmecreate].number == null) {
chat(((("You dropped " + itemMsg[ItemArraynum[value]]) + "(") + "1") + ")", 30, 5);
ItemNum[value] = ItemNum[value] - 1;
_root["item" + nmecreate].number = 2;
_root["item" + nmecreate].gotoAndStop(ItemArraynum[value]);
dropPatt();
} else {
chat(((("You dropped " + itemMsg[ItemArraynum[value]]) + "(") + "1") + ")", 30, 5);
ItemNum[value] = ItemNum[value] - 1;
_root["item" + nmecreate].number++;
_root["item" + nmecreate].gotoAndStop(ItemArraynum[value]);
dropPatt();
}
delete ItemArraynum[value];
delete ItemNum[value];
delete itemModW[value];
delete itemModA[value];
}
} else if (_root["item" + nmecreate].number == null) {
ItemNum[value] = ItemNum[value] - 1;
chat(((("You dropped " + itemMsg[ItemArraynum[value]]) + "(") + ItemNum[value]) + ")", 30, 5);
_root["item" + nmecreate].number = 2;
_root["item" + nmecreate].gotoAndStop(ItemArraynum[value]);
dropPatt();
if (pnum >= 3) {
delete pnum;
} else {
pnum++;
}
} else {
var drainDrop = 0;
while (drainDrop < ItemNum[value]) {
if (ItemNum[value] < 1) {
delete ItemArraynum[value];
delete ItemNum[value];
} else {
ItemNum[value] = ItemNum[value] - drainDrop;
chat(((("You dropped " + itemMsg[ItemArraynum[value]]) + "(") + ItemNum[value]) + ")", 30, 5);
_root["item" + nmecreate].number = _root["item" + nmecreate].number + drainDrop;
_root["item" + nmecreate].gotoAndStop(ItemArraynum[value]);
dropPatt();
}
drainDrop++;
}
}
} else if (ItemNum[value] <= 0) {
if ((!ItemArraynum[value]) == null) {
if (nmecreate >= 10) {
chat("<b>Cannot Drop More Items.</b>", 30, 5);
} else {
ItemNum[value] = ItemNum[value] - 1;
chat(((("You dropped " + itemMsg[ItemArraynum[value]]) + "(") + "0") + ")", 30, 5);
itemfiller();
dropPatt();
}
delete ItemArraynum[value];
delete ItemNum[value];
itemModW[value] = null;
itemModA[value] = null;
prevItem = value;
}
} else if (nmecreate >= 10) {
chat("<b>Cannot Drop More Items.</b>", 30, 5);
} else if (ItemNum[value] <= 1) {
chat(((("You dropped " + itemMsg[ItemArraynum[value]]) + "(") + ItemNum[value]) + ")", 30, 5);
itemfiller();
dropPatt();
delete ItemNum[value];
delete ItemArraynum[value];
} else {
ItemNum[value] = ItemNum[value] - 1;
chat(((("You dropped " + itemMsg[ItemArraynum[value]]) + "(") + ItemNum[value]) + ")", 30, 5);
itemfiller();
prevItem = value;
dropPatt();
}
}
function dropPatt() {
if (dropP == 1) {
_root["item" + nmecreate]._x = Math.floor(_root.char1._x / 24) * 24;
_root["item" + nmecreate]._y = (Math.floor(_root.char1._y / 24) * 24) + 24;
trace("up");
} else if (dropP == 2) {
_root["item" + nmecreate]._x = Math.floor(_root.char1._x / 24) * 24;
_root["item" + nmecreate]._y = (Math.floor(_root.char1._y / 24) * 24) - 24;
trace("down");
} else if (dropP == 3) {
_root["item" + nmecreate]._x = (Math.floor(_root.char1._x / 24) * 24) - 24;
_root["item" + nmecreate]._y = (Math.floor(_root.char1._y / 24) * 24) + 24;
trace("left");
} else if (dropP == 4) {
_root["item" + nmecreate]._x = (Math.floor(_root.char1._x / 24) * 24) + 24;
_root["item" + nmecreate]._y = (Math.floor(_root.char1._y / 24) * 24) + 24;
trace("right");
} else {
_root["item" + nmecreate]._x = Math.floor(_root.char1._x / 24) * 24;
_root["item" + nmecreate]._y = (Math.floor(_root.char1._y / 24) * 24) + 24;
trace("none");
}
}
function equipdropEngine(value) {
if (equipArray[value] == null) {
ewbox = 0;
eabox = 0;
} else if ((((((((((itemArraynum[1] == null) || (itemArraynum[2] == null)) || (itemArraynum[3] == null)) || (itemArraynum[4] == null)) || (itemArraynum[5] == null)) || (itemArraynum[6] == null)) || (itemArraynum[7] == null)) || (itemArraynum[8] == null)) || (itemArraynum[9] == null)) || (itemArraynum[10] == null)) {
if ((((((equipArray[value] == 14) || (equipArray[value] == 15)) || (equipArray[value] == 16)) || (equipArray[value] == 17)) || (equipArray[value] == 18)) || (equipArray[value] == 19)) {
_root.char1.gotoAndStop(_root.char1._currentframe - 20);
delete a_weap;
}
if (((equipArray[value] == 20) || (equipArray[value] == 21)) || (equipArray[value] == 22)) {
_root.char1.gotoAndStop(_root.char1._currentframe - 40);
delete a_armor;
}
if (((equipArray[value] == 23) || (equipArray[value] == 24)) || (equipArray[value] == 25)) {
_root.char1.gotoAndStop(_root.char1._currentframe - 80);
delete a_armor;
}
if (((((((((((equipArray[value] == 28) || (equipArray[value] == 29)) || (equipArray[value] == 30)) || (equipArray[value] == 31)) || (equipArray[value] == 32)) || (equipArray[value] == 33)) || (equipArray[value] == 34)) || (equipArray[value] == 35)) || (equipArray[value] == 36)) || (equipArray[value] == 37)) || (equipArray[value] == 38)) {
_root.shield = ItemArraynum[value] - 27;
}
enemydeath = 1;
founditemnum = 1;
equipSwitchW[value] = equipModW[value];
equipSwitchA[value] = equipModA[value];
enemyitem = equipArray[value];
equipArray[value] = null;
equiptog = 1;
delete equipModW[value];
delete equipModA[value];
var unequip = 0;
while (unequip < 6) {
if (itemArraynum[unequip] == enemyitem) {
if (itemModW[unequip] == 0) {
itemModW[unequip] = equipSwitchW[value];
itemModA[unequip] = equipSwitchA[value];
if (itemNum[unequip] >= 2) {
itemNum[unequip] = itemNum[unequip] - 1;
}
}
}
unequip++;
}
} else {
chat("<b>Can't Remove; Your Inventory is full</b>", 30, 5);
}
}
function goldcollector(obj) {
if (enemyitem == 2) {
gold = gold + itemGold[1];
_root.sounditem1.gotoAndStop(3);
chat(((itemMsg[enemyItem] + "(") + itemGold[1]) + ")", 30, 5);
removeMovieClip(obj);
delete enemyitem;
} else if (enemyitem == 3) {
gold = gold + itemGold[2];
_root.sounditem1.gotoAndStop(3);
chat(((itemMsg[enemyItem] + "(") + itemGold[2]) + ")", 30, 5);
removeMovieClip(obj);
delete enemyitem;
} else if (enemyitem == 5) {
gold = gold + itemGold[3];
_root.sounditem1.gotoAndStop(3);
chat(((itemMsg[enemyItem] + "(") + itemGold[3]) + ")", 30, 5);
removeMovieClip(obj);
delete enemyitem;
} else if (enemyitem == 10) {
gold = gold + itemGold[4];
_root.sounditem1.gotoAndStop(3);
removeMovieClip(obj);
chat(((itemMsg[enemyItem] + "(") + itemGold[4]) + ")", 30, 5);
delete enemyitem;
}
}
function macrofiller(obj) {
if (itemArraynum[1] == enemyitem) {
itemNum[1] = itemNum[1] + founditemnum;
_root.sounditem1.gotoAndStop(3);
chat((((((weapmod[itemmodw[1]] + itemmsg[enemyitem]) + " ") + armormod[itemmoda[1]]) + "(") + itemnum[1]) + ")", 30, 5);
removeMovieClip(obj);
} else if (itemArraynum[2] == enemyitem) {
itemNum[2] = itemNum[2] + founditemnum;
_root.sounditem1.gotoAndStop(3);
chat((((((weapmod[itemmodw[2]] + itemmsg[enemyitem]) + " ") + armormod[itemmoda[2]]) + "(") + itemnum[2]) + ")", 30, 5);
removeMovieClip(obj);
} else if (itemArraynum[3] == enemyitem) {
itemNum[3] = itemNum[3] + founditemnum;
_root.sounditem1.gotoAndStop(3);
chat((((((weapmod[itemmodw[3]] + itemmsg[enemyitem]) + " ") + armormod[itemmoda[3]]) + "(") + itemnum[3]) + ")", 30, 5);
removeMovieClip(obj);
} else if (itemArraynum[4] == enemyitem) {
itemNum[4] = itemNum[4] + founditemnum;
_root.sounditem1.gotoAndStop(3);
chat((((((weapmod[itemmodw[4]] + itemmsg[enemyitem]) + " ") + armormod[itemmoda[4]]) + "(") + itemnum[4]) + ")", 30, 5);
removeMovieClip(obj);
} else if (itemArraynum[5] == enemyitem) {
itemNum[5] = itemNum[5] + founditemnum;
_root.sounditem1.gotoAndStop(3);
chat((((((weapmod[itemmodw[5]] + itemmsg[enemyitem]) + " ") + armormod[itemmoda[5]]) + "(") + itemnum[5]) + ")", 30, 5);
removeMovieClip(obj);
} else if (itemArraynum[6] == enemyitem) {
itemNum[6] = itemNum[6] + founditemnum;
_root.sounditem1.gotoAndStop(3);
chat((((((weapmod[itemmodw[6]] + itemmsg[enemyitem]) + " ") + armormod[itemmoda[6]]) + "(") + itemnum[6]) + ")", 30, 5);
removeMovieClip(obj);
} else if (itemArraynum[7] == enemyitem) {
itemNum[7] = itemNum[7] + founditemnum;
_root.sounditem1.gotoAndStop(3);
chat((((((weapmod[itemmodw[6]] + itemmsg[enemyitem]) + " ") + armormod[itemmoda[7]]) + "(") + itemnum[7]) + ")", 30, 5);
removeMovieClip(obj);
} else if (itemArraynum[8] == enemyitem) {
itemNum[8] = itemNum[8] + founditemnum;
_root.sounditem1.gotoAndStop(3);
chat((((((weapmod[itemmodw[8]] + itemmsg[enemyitem]) + " ") + armormod[itemmoda[8]]) + "(") + itemnum[8]) + ")", 30, 5);
removeMovieClip(obj);
} else if (itemArraynum[9] == enemyitem) {
itemNum[9] = itemNum[9] + founditemnum;
_root.sounditem1.gotoAndStop(3);
chat((((((weapmod[itemmodw[9]] + itemmsg[enemyitem]) + " ") + armormod[itemmoda[9]]) + "(") + itemnum[9]) + ")", 30, 5);
removeMovieClip(obj);
} else if (itemArraynum[10] == enemyitem) {
itemNum[10] = itemNum[10] + founditemnum;
_root.sounditem1.gotoAndStop(3);
chat((((((weapmod[itemmodw[10]] + itemmsg[enemyitem]) + " ") + armormod[itemmoda[10]]) + "(") + itemnum[10]) + ")", 30, 5);
removeMovieClip(obj);
} else if (arraynum < 11) {
if ((((enemyitem == 2) || (enemyitem == 3)) || (enemyitem == 5)) || (enemyitem == 10)) {
goldcollector(obj);
removeMovieClip(obj);
} else if ((itemModW[arraynum] == ewbox) && (itemModA[arraynum] == eabox)) {
if (((((((((((((((itemArraynum[1] == enemyitem) && (itemModW[1] == ewbox)) && (itemModA[1] == eabox)) && (itemArraynum[2] == enemyitem)) && (itemModW[2] == ewbox)) && (itemModA[2] == eabox)) && (itemArraynum[3] == enemyitem)) && (itemModW[3] == ewbox)) && (itemModA[3] == eabox)) && (itemArraynum[4] == enemyitem)) && (itemModW[4] == ewbox)) && (itemModA[5] == eabox)) && (itemArraynum[5] == enemyitem)) && (itemModW[5] == ewbox)) && (itemModA[5] == eabox)) {
} else {
itemArraynum[arraynum] = enemyitem;
itemNum[arraynum] = itemNum[arraynum] + founditemnum;
_root.sounditem1.gotoAndStop(3);
chat((((((weapmod[itemmodw[arraynum]] + itemmsg[enemyitem]) + " ") + armormod[itemmoda[arraynum]]) + "(") + itemnum[arraynum]) + ")", 30, 5);
removeMovieClip(obj);
}
} else {
itemModW[arraynum] = ewbox;
itemModA[arraynum] = eabox;
itemArraynum[arraynum] = enemyitem;
itemNum[arraynum] = itemNum[arraynum] + founditemnum;
_root.sounditem1.gotoAndStop(3);
chat((((((weapmod[itemmodw[arraynum]] + itemmsg[enemyitem]) + " ") + armormod[itemmoda[arraynum]]) + "(") + itemnum[arraynum]) + ")", 30, 5);
removeMovieClip(obj);
traceme = arraynum;
}
} else {
goldcollector(obj);
}
}
function equippainter() {
if (itemArraynum[1] == null) {
equipfiller = 1;
} else if (itemArraynum[2] == null) {
equipfiller = 2;
} else if (itemArraynum[3] == null) {
equipfiller = 3;
} else if (itemArraynum[4] == null) {
equipfiller = 4;
} else if (itemArraynum[5] == null) {
equipfiller = 5;
} else {
equipfiller = 6;
}
}
function modfiller() {
if ((ItemArraynum[1] == null) && (itemModW[1] == null)) {
modfillnum = 1;
} else if ((ItemArraynum[2] == null) && (itemModW[2] == null)) {
modfillnum = 2;
} else if ((ItemArraynum[3] == null) && (itemModW[3] == null)) {
modfillnum = 3;
} else if ((ItemArraynum[4] == null) && (itemModW[4] == null)) {
modfillnum = 4;
} else if ((ItemArraynum[5] == null) && (itemModW[5] == null)) {
modfillnum = 5;
} else {
modfillnum = 6;
}
}
function arrayfiller() {
if (ItemArraynum[1] == null) {
arraynum = 1;
} else if (ItemArraynum[2] == null) {
arraynum = 2;
} else if (ItemArraynum[3] == null) {
arraynum = 3;
} else if (ItemArraynum[4] == null) {
arraynum = 4;
} else if (ItemArraynum[5] == null) {
arraynum = 5;
} else if (ItemArraynum[6] == null) {
arraynum = 6;
} else if (ItemArraynum[7] == null) {
arraynum = 7;
} else if (ItemArraynum[8] == null) {
arraynum = 8;
} else if (ItemArraynum[9] == null) {
arraynum = 9;
} else if (ItemArraynum[10] == null) {
arraynum = 10;
} else {
arraynum = 11;
}
}
function zerkanim() {
if (zerk_m == 1) {
delete mouseD;
if (_root.char1._currentframe > (5 + armor_anim)) {
if (_root.char1._currentframe > (10 + armor_anim)) {
_root.char1.gotoAndStop(_root.char1._currentframe - 5);
_root.char1.gotoAndStop(_root.char1._currentframe + 5);
} else {
_root.char1.gotoAndStop(_root.char1._currentframe + 5);
}
}
}
}
function spellCharge() {
if (lastKey == keys) {
if ((ItemArraynum[keys] == 42) || (spellArray[keys] == 42)) {
if (use_menu == 1) {
zstrt = 1;
zapTot = zapTot + (4 + zstrt);
chat(((("You charge " + itemMsg[42]) + " scroll ") + " to Lvl:") + zapTot, 30, 5);
lastKey_i++;
if ((lk_input == null) && (order < 10)) {
if (ItemNum[keys] > 1) {
ItemNum[keys] = ItemNum[keys] - 1;
lk_input = 1;
}
}
} else {
cost = 30;
if (player_mana > cost) {
zstrt = 1;
zapTot = zapTot + (4 + zstrt);
chat((("You charge " + itemMsg[42]) + " to Lvl:") + zapTot, 30, 5);
lastKey_i++;
player_mana = player_mana - (cost / 10);
_root.plHpDis = 500;
}
}
}
}
}
function usespellStack() {
_root.plHpDis = 500;
delete lastKey;
delete mousex;
delete mousey;
delete m_input;
delete m_command;
chat((("You cast " + itemMsg[42]) + " Lvl:") + zapTot, 30, 5);
spell_input = 1;
zap_m = 1;
damage = zap * zapTot;
_root.soundspell1.gotoAndStop(7);
if (ItemArraynum[keys] == 42) {
if (lk_input == null) {
ItemNum[keys] = ItemNum[keys] - 1;
}
} else if (player_mana > cost) {
player_mana = player_mana - cost;
}
}
function Items(char) {
function spells_target() {
function mousetarg(obj, value) {
if (obj.hitTest(_xmouse, _ymouse, true) && (m_input == 1)) {
order = value;
}
}
if (targuse >= 10) {
targuse = 1;
}
if (_root["targ" + targuse].lx == null) {
targuse = 1;
_root.targ.duplicateMovieClip("targ" + targuse, 90300 + targuse);
_root["targ" + targuse].lx = 1;
}
if (itemuse >= 10) {
itemuse = 1;
}
if (order == null) {
order = 0;
}
targloop = 1;
while (targloop < 10) {
if ((order >= 10) && (zap_t_use == null)) {
order = 0;
}
if (((order == 0) && (zap_t_use == 1)) || ((order == 10) && (zap_t_use == 1))) {
if ((left_input == null) && (right_input == null)) {
order = 1;
}
if (left_input == 1) {
order = 9;
}
if (right_input == 1) {
order = 1;
}
}
zapdistx = Math.abs(_root.char1._x - _root.mon1._x);
zapdisty = Math.abs(_root.char1._y - _root.mon1._y);
zapdistx2 = Math.abs(_root.char1._x - _root.mon2._x);
zapdisty2 = math.abs(_root.char1._y - _root.mon2._y);
zapdistx3 = math.abs(_root.char1._x - _root.mon3._x);
zapdisty3 = math.abs(_root.char1._y - _root.mon3._y);
zapdistx4 = math.abs(_root.char1._x - _root.mon4._x);
zapdisty4 = math.abs(_root.char1._y - _root.mon4._y);
zapdistx5 = math.abs(_root.char1._x - _root.mon5._x);
zapdisty5 = math.abs(_root.char1._y - _root.mon5._y);
zapdistx6 = math.abs(_root.char1._x - _root.mon6._x);
zapdisty6 = math.abs(_root.char1._y - _root.mon6._y);
zapdistx7 = math.abs(_root.char1._x - _root.mon7._x);
zapdisty7 = math.abs(_root.char1._y - _root.mon7._y);
zapdistx8 = math.abs(_root.char1._x - _root.mon8._x);
zapdisty8 = math.abs(_root.char1._y - _root.mon8._y);
zapdistx9 = math.abs(_root.char1._x - _root.mon9._x);
zapdisty9 = math.abs(_root.char1._y - _root.mon9._y);
zapdist = 121;
if ((((zapdistx >= zapdist) && (order == 1)) || ((zapdisty._y >= zapdist) && (order == 1))) || ((_root.mon1._x == null) && (order == 1))) {
if ((left_input == null) && (right_input == null)) {
order++;
}
if (right_input == 1) {
order++;
}
if (left_input == 1) {
order--;
}
}
if ((((zapdistx2 >= zapdist) && (order == 2)) || ((zapdisty2._y >= zapdist) && (order == 2))) || ((_root.mon2._x == null) && (order == 2))) {
if ((left_input == null) && (right_input == null)) {
order++;
}
if (right_input == 1) {
order++;
}
if (left_input == 1) {
order--;
}
}
if ((((zapdistx3 >= zapdist) && (order == 3)) || ((zapdisty3._y >= zapdist) && (order == 3))) || ((_root.mon3._x == null) && (order == 3))) {
if ((left_input == null) && (right_input == null)) {
order++;
}
if (right_input == 1) {
order++;
}
if (left_input == 1) {
order--;
}
}
if ((((zapdistx4 >= zapdist) && (order == 4)) || ((zapdisty4._y >= zapdist) && (order == 4))) || ((_root.mon4._x == null) && (order == 4))) {
if ((left_input == null) && (right_input == null)) {
order++;
}
if (right_input == 1) {
order++;
}
if (left_input == 1) {
order--;
}
}
if ((((zapdistx5 >= zapdist) && (order == 5)) || ((zapdisty5._y >= zapdist) && (order == 5))) || ((_root.mon5._x == null) && (order == 5))) {
if ((left_input == null) && (right_input == null)) {
order++;
}
if (right_input == 1) {
order++;
}
if (left_input == 1) {
order--;
}
}
if ((((zapdistx6 >= zapdist) && (order == 6)) || ((zapdisty6._y >= zapdist) && (order == 6))) || ((_root.mon6._x == null) && (order == 6))) {
if ((left_input == null) && (right_input == null)) {
order++;
}
if (right_input == 1) {
order++;
}
if (left_input == 1) {
order--;
}
}
if ((((zapdistx7 >= zapdist) && (order == 7)) || ((zapdisty7._y >= zapdist) && (order == 7))) || ((_root.mon7._x == null) && (order == 7))) {
if ((left_input == null) && (right_input == null)) {
order++;
}
if (right_input == 1) {
order++;
}
if (left_input == 1) {
order--;
}
}
if ((((zapdistx8 >= zapdist) && (order == 8)) || ((zapdisty8._y >= zapdist) && (order == 8))) || ((_root.mon8._x == null) && (order == 8))) {
if ((left_input == null) && (right_input == null)) {
order++;
}
if (right_input == 1) {
order++;
}
if (left_input == 1) {
order--;
}
}
if ((((zapdistx9 >= zapdist) && (order == 9)) || ((zapdisty9._y >= zapdist) && (order == 9))) || ((_root.mon9._x == null) && (order == 9))) {
if ((left_input == null) && (right_input == null)) {
order++;
}
if (right_input == 1) {
order++;
}
if (left_input == 1) {
order--;
}
}
targloop++;
}
if (_root.mon1._x == 1) {
order = 0;
} else {
mousetarg(_root.mon1, 1);
mousetarg(_root.mon2, 2);
mousetarg(_root.mon3, 3);
mousetarg(_root.mon4, 4);
mousetarg(_root.mon5, 5);
mousetarg(_root.mon6, 6);
mousetarg(_root.mon7, 7);
mousetarg(_root.mon8, 8);
mousetarg(_root.mon9, 9);
if (Key.isDown(37) || (Key.isDown(38))) {
if (left_input == null) {
if (order <= 0) {
order = 9;
} else {
order--;
}
left_input = 1;
}
} else {
delete left_input;
}
}
if (Key.isDown(39) || (Key.isDown(40))) {
if (right_input == null) {
if (order >= 10) {
order = 0;
} else {
order++;
}
right_input = 1;
}
} else {
delete right_input;
}
if (order == 0) {
_root.targ1._y = _root.char1._y - 20;
_root.targ1._x = _root.char1._x;
_root.targ1._yscale = _root.char1._yscale;
_root.targ1._xscale = _root.char1._xscale;
} else {
_root.targ1._y = _root["mon" + order]._y - 20;
_root.targ1._x = _root["mon" + order]._x;
_root.targ1._yscale = _root["mon" + order]._yscale;
_root.targ1._xscale = _root["mon" + order]._xscale;
}
}
function defense_target(obj) {
_root["targ" + targuse]._x = obj._x;
_root["targ" + targuse]._y = obj._y - 20;
_root["targ" + targuse]._xscale = obj._xscale;
_root["targ" + targuse]._yscale = obj._yscale;
}
function potionuse() {
_root.purge_effect_mc.duplicateMovieClip("purge" + itemuse, 9900 + itemuse);
if (_root["purge" + itemuse].lx == null) {
_root.sounditem1.gotoAndStop(4);
_root["purge" + itemuse].gotoAndPlay(1);
_root["purge" + itemuse].lx = 1;
}
_root["purge" + itemuse]._x = char._x;
_root["purge" + itemuse]._y = char._y - 20;
}
function desp_use(obj, multiple) {
desp = Math.ceil(player_health * 0.05);
damage = Math.ceil((player_health * 10) + (player_mana * 10));
if (order == 0) {
if (multiple == 1) {
}
} else if (multiple == 1) {
}
_root["mon" + order].health = _root["mon" + order].health - damage;
player_health = player_health - Math.ceil(desp);
player_mana = player_mana - 60;
if (itemuse >= 10) {
itemuse = 1;
} else {
itemuse++;
}
if (obj._x == null) {
} else {
_root.nme_hitpoints.duplicateMovieClip("nme_hitpoints_mc" + itemuse, 6600 + itemuse);
_root.desp_mc.duplicateMovieClip("desp" + itemuse, 1010 + itemuse);
if (_root["nme_hitpoints_mc" + itemuse].lx == null) {
_root["nme_hitpoints_mc" + itemuse].display = damage;
_root["nme_hitpoints_mc" + itemuse].lx = 1;
}
_root["nme_hitpoints_mc" + itemuse]._x = obj._x;
_root["nme_hitpoints_mc" + itemuse]._y = obj._y - 20;
if (_root["desp" + itemuse].lx == null) {
_root.soundspell1.gotoAndStop(8);
_root["desp" + itemuse].gotoAndPlay(1);
_root["desp" + itemuse].lx = 1;
}
_root["desp" + itemuse]._x = obj._x;
_root["desp" + itemuse]._y = obj._y - 20;
}
}
function zerkuse(obj, multiple) {
zerk = Math.ceil(player_health * 7.5);
damage = zerk;
if (order == 0) {
if (multiple == 1) {
}
} else if (multiple == 1) {
}
player_health = player_health - Math.ceil(player_health * 0.066);
player_mana = player_mana - 120;
_root["mon" + order].health = _root["mon" + order].health - Math.ceil(damage);
var okillscan = 1;
while (okillscan < 10) {
if (_root["mon" + order].hitTest(_root["mon" + okillscan].hb)) {
_root.zerk_mc.duplicateMovieClip("zerk" + okillscan, 1020 + okillscan);
if (_root["nme_hitpoints_mc" + okillscan].lx == null) {
_root["nme_hitpoints_mc" + okillscan].display = zerk;
_root["nme_hitpoints_mc" + okillscan].lx = 1;
}
_root["nme_hitpoints_mc" + okillscan]._x = obj._x;
_root["nme_hitpoints_mc" + okillscan]._y = obj._y - 20;
_root["mon" + okillscan].health = _root["mon" + okillscan].health - Math.ceil(damage);
if (_root["zerk" + okillscan].lx == null) {
_root.soundspell1.gotoAndStop(8);
_root["zerk" + okillscan].gotoAndPlay(1);
_root["zerk" + okillscan].lx = 1;
}
_root["zerk" + okillscan]._x = _root["mon" + okillscan]._x;
_root["zerk" + okillscan]._y = _root["mon" + okillscan]._y - 20;
}
okillscan++;
}
if (itemuse >= 10) {
itemuse = 1;
} else {
itemuse++;
}
if (obj._x == null) {
} else {
_root.nme_hitpoints.duplicateMovieClip("nme_hitpoints_mc" + itemuse, 6600 + itemuse);
_root.zerk_mc.duplicateMovieClip("zerk" + itemuse, 1010 + itemuse);
if (_root["nme_hitpoints_mc" + itemuse].lx == null) {
_root["nme_hitpoints_mc" + itemuse].display = zerk;
_root["nme_hitpoints_mc" + itemuse].lx = 1;
}
_root["nme_hitpoints_mc" + itemuse]._x = obj._x;
_root["nme_hitpoints_mc" + itemuse]._y = obj._y - 20;
if (_root["zerk" + itemuse].lx == null) {
_root.soundspell1.gotoAndStop(8);
_root["zerk" + itemuse].gotoAndPlay(1);
_root["zerk" + itemuse].lx = 1;
}
_root["zerk" + itemuse]._x = obj._x;
_root["zerk" + itemuse]._y = obj._y - 20;
}
}
function parause(obj) {
if (itemuse >= 10) {
itemuse = 1;
} else {
itemuse++;
}
if (obj._x == null) {
} else {
_root.para_effect_mc.duplicateMovieClip("para" + itemuse, 1010 + itemuse);
if (_root["para" + itemuse].lx == null) {
chat("You cast V-" + itemMsg[60], 30, 5);
_root.soundspell1.gotoAndStop(4);
_root["para" + itemuse].gotoAndPlay(1);
_root["para" + itemuse].lx = 1;
}
_root["para" + itemuse]._x = obj._x;
_root["para" + itemuse]._y = obj._y - 20;
}
}
function zapuse(obj, multiple) {
zap = 25;
if (order == 0) {
if (multiple == 1) {
} else {
player_health = player_health - zap;
}
} else if (multiple == 1) {
} else {
_root["mon" + order].health = _root["mon" + order].health - zap;
}
var okillscan = 1;
while (okillscan < (zapnumber + 1)) {
if (_root["mon" + order].hitTest(_root["mon" + okillscan])) {
_root["mon" + okillscan].stun = 1;
_root["mon" + okillscan].stuntimer = 1;
_root.zap_effect_mc.duplicateMovieClip("zap" + okillscan, 1030 + okillscan);
_root.nme_hitpoints.duplicateMovieClip("nme_hitpoints_mc" + okillscan, 6520 + okillscan);
_root["mon" + okillscan].health = _root["mon" + okillscan].health - (Math.ceil((zap * zapnumber) + 1) + zapTot);
if (_root["nme_hitpoints_mc" + okillscan].lx == null) {
_root["nme_hitpoints_mc" + okillscan].display = (zap * (zapnumber + 1)) + zapTot;
_root["nme_hitpoints_mc" + okillscan].lx = 1;
}
_root["nme_hitpoints_mc" + okillscan]._x = _root["mon" + okillscan]._x;
_root["nme_hitpoints_mc" + okillscan]._y = _root["mon" + okillscan]._y - 20;
if (_root["zap" + okillscan].lx == null) {
_root.soundspell1.gotoAndStop(2);
_root["zap" + okillscan].gotoAndPlay(1);
_root["zap" + okillscan].lx = 1;
}
_root["zap" + okillscan]._x = _root["mon" + okillscan]._x;
_root["zap" + okillscan]._y = _root["mon" + okillscan]._y - 20;
}
okillscan++;
}
if (itemuse >= 10) {
itemuse = 1;
} else {
itemuse++;
}
if (obj._x == null) {
} else {
_root.nme_hitpoints.duplicateMovieClip("nme_hitpoints_mc" + itemuse, 6500 + itemuse);
_root.zap_effect_mc.duplicateMovieClip("zap" + itemuse, 1010 + itemuse);
if (_root["nme_hitpoints_mc" + itemuse].lx == null) {
_root["nme_hitpoints_mc" + itemuse].display = (zap * (zapnumber + 1)) + zapTot;
_root["nme_hitpoints_mc" + itemuse].lx = 1;
}
_root["nme_hitpoints_mc" + itemuse]._x = obj._x;
_root["nme_hitpoints_mc" + itemuse]._y = obj._y - 20;
if (_root["zap" + itemuse].lx == null) {
_root.soundspell1.gotoAndStop(2);
_root["zap" + itemuse].gotoAndPlay(1);
_root["zap" + itemuse].lx = 1;
}
_root["zap" + itemuse]._x = obj._x;
_root["zap" + itemuse]._y = obj._y - 20;
}
}
function potenceuse(obj) {
if (itemuse >= 10) {
itemuse = 1;
} else {
itemuse++;
}
if (_root["flank_mc" + itemuse].lx == null) {
_root.flank_mc.duplicateMovieClip("flank_mc" + itemuse, 7700 + itemuse);
_root["flank_mc" + itemuse].gotoAndPlay(1);
_root.soundspell1.gotoAndStop(4);
_root["flank_mc" + itemuse].lx = 1;
}
_root["flank_mc" + itemuse]._x = obj._x;
_root["flank_mc" + itemuse]._y = obj._y - 20;
}
function blessuse(obj) {
if (itemuse >= 10) {
itemuse = 1;
} else {
itemuse++;
}
if (_root["flank_mc" + itemuse].lx == null) {
_root.flank_mc.duplicateMovieClip("flank_mc" + itemuse, 7500 + itemuse);
_root["flank_mc" + itemuse].gotoAndPlay(1);
_root.soundspell1.gotoAndStop(5);
_root["flank_mc" + itemuse].lx = 1;
}
_root["flank_mc" + itemuse]._x = obj._x;
_root["flank_mc" + itemuse]._y = obj._y - 20;
}
function shadowuse(obj) {
if (itemuse >= 10) {
itemuse = 1;
} else {
itemuse++;
}
if (_root["flank_mc" + itemuse].lx == null) {
_root.flank_mc.duplicateMovieClip("flank_mc" + itemuse, 7300 + itemuse);
_root["flank_mc" + itemuse].gotoAndPlay(1);
_root.soundspell1.gotoAndStop(5);
_root["flank_mc" + itemuse].lx = 1;
}
_root["flank_mc" + itemuse]._x = obj._x;
_root["flank_mc" + itemuse]._y = obj._y - 20;
}
function mightuse(obj) {
if (itemuse >= 10) {
itemuse = 1;
} else {
itemuse++;
}
if (_root["fury_effect_mc" + itemuse].lx == null) {
_root.fury_effect_mc.duplicateMovieClip("fury_effect_mc" + itemuse, 7500 + itemuse);
_root["fury_effect_mc" + itemuse].gotoAndPlay(1);
_root.sounditem1.gotoAndStop(4);
_root["fury_effect_mc" + itemuse].lx = 1;
}
_root["fury_effect_mc" + itemuse]._x = obj._x;
_root["fury_effect_mc" + itemuse]._y = obj._y - 20;
}
function furyuse(obj) {
if (itemuse >= 10) {
itemuse = 1;
} else {
itemuse++;
}
if (_root["fury_effect_mc" + itemuse].lx == null) {
_root.fury_effect_mc.duplicateMovieClip("fury_effect_mc" + itemuse, 7100 + itemuse);
_root["fury_effect_mc" + itemuse].gotoAndPlay(1);
_root.sounditem1.gotoAndStop(4);
_root["fury_effect_mc" + itemuse].lx = 1;
}
_root["fury_effect_mc" + itemuse]._x = obj._x;
_root["fury_effect_mc" + itemuse]._y = obj._y - 20;
}
function flankuse(obj) {
if (itemuse >= 10) {
itemuse = 1;
} else {
itemuse++;
}
if (order == 0) {
if (flank_buff == 1) {
if (meleenum >= 2) {
} else {
if (_root["flank_mc" + itemuse].lx == null) {
_root.flank_mc.duplicateMovieClip("flank_mc" + itemuse, 6800 + itemuse);
_root.soundspell1.gotoAndStop(4);
_root["flank_mc" + itemuse].gotoAndPlay(1);
_root["flank_mc" + itemuse].lx = 1;
}
_root["flank_mc" + itemuse]._x = obj._x;
_root["flank_mc" + itemuse]._y = obj._y - 20;
flanktimer = 6250;
meleenum = 2;
}
} else {
if (_root["flank_mc" + itemuse].lx == null) {
_root.flank_mc.duplicateMovieClip("flank_mc" + itemuse, 6800 + itemuse);
_root.soundspell1.gotoAndStop(4);
_root["flank_mc" + itemuse].gotoAndPlay(1);
_root["flank_mc" + itemuse].lx = 1;
}
_root["flank_mc" + itemuse]._x = obj._x;
_root["flank_mc" + itemuse]._y = obj._y - 20;
flanktimer = 6250;
flank_buff = 1;
meleenum = 1;
}
}
}
function invisuse(obj) {
if (order == 0) {
if (invis_buff == 1) {
delete auto_invis;
delete invis_buff;
} else {
if ((invistimer == null) || (invistimer < 1560)) {
invistimer = 1560;
}
invis_buff = 1;
auto_invis = 1;
}
}
}
function healuse(obj) {
_root.plHpDis = 500;
heal = 50;
if (order == 0) {
if ((player_health + heal) >= stats_health) {
player_health = stats_health;
} else {
player_health = player_health + heal;
}
} else if (_root["mon" + order].health >= _root["mon" + order].stat_health) {
_root["mon" + order].health = _root["mon" + order].stat_health;
} else {
_root["mon" + order].health = _root["mon" + order].health + heal;
}
if (itemuse >= 10) {
itemuse = 1;
} else {
itemuse++;
}
_root.healpoints_mc.duplicateMovieClip("healpoints_mc" + itemuse, 6500 + itemuse);
_root.heal_effect_mc.duplicateMovieClip("heal" + itemuse, 10100 + itemuse);
if (_root["healpoints_mc" + itemuse].lx == null) {
_root["healpoints_mc" + itemuse].display = heal;
_root["healpoints_mc" + itemuse].lx = 1;
}
_root["healpoints_mc" + itemuse]._x = obj._x;
_root["healpoints_mc" + itemuse]._y = obj._y - 20;
if (_root["heal" + itemuse].lx == null) {
_root.sounditem1.gotoAndStop(4);
_root["heal" + itemuse].gotoAndPlay(1);
_root["heal" + itemuse].lx = 1;
}
_root["heal" + itemuse]._x = obj._x;
_root["heal" + itemuse]._y = obj._y - 20;
}
itemreadout1 = weapmod[ItemModW[1]];
itemreadout2 = weapmod[ItemModW[2]];
itemreadout3 = weapmod[ItemModW[3]];
itemreadout4 = weapmod[ItemModW[4]];
itemreadout5 = weapmod[ItemModW[5]];
equipro1 = weapmod[equipModW[1]];
equipro2 = weapmod[equipModW[2]];
equipro3 = weapmod[equipModW[3]];
equipro4 = weapmod[equipModW[4]];
equipro5 = weapmod[equipModW[5]];
xItemModA = ItemModA;
xItemModW = ItemModW;
yItemModW = ((ItemModW[arraynum] + "ItemmodW: ") + ItemModA[arraynum]) + "ItemModA";
xequipmodA = equipmodA;
xequipmodW = equipmodW;
ymacromodA = macromodA;
ymacromodW = macromodW;
ytreasure = (treasureHistory[read] + " ") + treasureHistory[read - 1];
thrower(12, 4, 5);
if (keys == null) {
keys = 1;
}
if (zerk_t_use == 1) {
if (player_mana > zcost) {
sloClock = 1;
delete zerkm;
delete zerknumber;
delete zerk_m;
delete spell_input;
zerkTot = 1;
if (order >= 10) {
_root.targ1._y = -99999;
delete zerk_t_use;
ItemNum[keys] = ItemNum[keys] + 1;
chat("<b>Nothing to Attack</b>", 30, 5);
}
delete mousex;
delete mousey;
delete m_input;
delete m_command;
spell_input = 1;
zerk_m = 1;
delete zerk_t_use;
} else {
chat(("<b>Not enough Mana</b> (" + itemMsg[57]) + ")", 30, 5);
delete zerk_t_use;
}
}
if (zap_t_use == 1) {
if (lastKey == null) {
lastKey = keys;
}
if (Key.isDown(Key.getCode()) || (m_command == 1)) {
if (lk_input == null) {
spellCharge();
lk_input = 1;
}
} else {
delete lk_input;
}
delete zapm;
delete zapnumber;
delete zap_m;
delete spell_input;
cost = 30;
spells_target();
if (order >= 10) {
spellCharge();
_root.targ1._y = -99999;
delete zap_t_use;
if (ItemNum[keys] == 42) {
ItemNum[keys] = ItemNum[keys] + 1;
}
chat("<b>Nothing to Attack</b>", 30, 5);
} else if (player_mana < cost) {
_root.targ1._y = -99999;
delete zap_t_use;
if (ItemArrayNum[keys] == 42) {
ItemNum[keys] = ItemNum[keys] + 1;
}
if (spellArray[keys] == 42) {
chat("<b>Not enough Mana</b>", 30, 5);
}
_root.plHpDis = 500;
}
if (Key.isDown(13) || (_root.targ1.hitTest(_xmouse, _ymouse, true) && (m_input == 1))) {
if ((use_menu == 2) && (player_mana > cost)) {
usespellStack();
}
if (use_menu == 1) {
usespellStack();
}
}
if (Key.isDown(Key.getCode()) || (m_command == 1)) {
if (order < 10) {
if ((use_menu == 2) && (player_mana > cost)) {
zapTot = zapTot + 5;
usespellStack();
}
if (use_menu == 1) {
zapTot = zapTot + 5;
usespellStack();
}
}
}
}
if (class == 1) {
zcost = 60;
} else if (class == 2) {
zcost = 120;
}
if (sloClock == null) {
delete zerk_m;
}
if ((zerk_m == 1) && (player_mana > zcost)) {
sloClock = 1;
if (order == 0) {
chat("<b>Nothing to Attack</b>", 30, 5);
delete zerk_m;
} else if (spell_input == 1) {
delete zerk_t_use;
if (zerkm >= 3) {
zerkanim();
delete effectst;
_root["mon" + order].stun = 1;
_root["mon" + order].stuntimer = 1;
_root.targ1._y = -99999;
_root["mon" + order].health = _root["mon" + order].health - zerk;
if ((class == 2) && (player_mana >= cost)) {
chat("You cast " + itemMsg[57], 30, 5);
zerkuse(_root["mon" + order], 1);
} else if ((class == 1) && (player_mana >= cost)) {
chat("You cast " + itemMsg[58], 30, 5);
desp_use(_root["mon" + order], 1);
}
delete zerkm;
zerknumber++;
} else if (((((((((_root.mon1._x == null) && (_root.mon2._x == null)) && (_root.mon3._x == null)) && (_root.mon4._x == null)) && (_root.mon5._x == null)) && (_root.mon6._x == null)) && (_root.mon7._x == null)) && (_root.mon8._x == null)) && (_root.mon9._x == null)) {
delete zerkm;
delete zerknumber;
delete zerk_m;
delete spell_input;
order = 0;
} else {
zerkm++;
}
if (zerknumber >= zerkTot) {
delete zerkm;
delete zerknumber;
_root.targ1._y = -99999;
delete spell_input;
delete zerk_m;
}
}
}
if (para_m == 1) {
if (monpara >= (enemyCount + 1)) {
monpara = 1;
}
if (_root["mon" + monpara].stun == 1) {
monpara++;
} else {
parause(_root["mon" + monpara]);
_root["mon" + monpara].move = 9;
_root["mon" + monpara].stun = 1;
_root["mon" + monpara].stunTimer = 1;
_root["mon" + monpara].thrownStun = 500;
_root.targ1._y = -99999;
delete para_m;
delete para_t_use;
monpara++;
}
}
if (zap_m == 1) {
if (spell_input == 1) {
delete zap_t_use;
if (order == 0) {
} else {
if (zapm >= 3) {
delete effectst;
_root["mon" + order].stun = 1;
_root["mon" + order].stuntimer = 1;
_root.targ1._y = -99999;
_root["mon" + order].health = _root["mon" + order].health - zap;
zapuse(_root["mon" + order], 1);
delete zapm;
zapnumber++;
} else if (((((((((_root.mon1._x == null) && (_root.mon2._x == null)) && (_root.mon3._x == null)) && (_root.mon4._x == null)) && (_root.mon5._x == null)) && (_root.mon6._x == null)) && (_root.mon7._x == null)) && (_root.mon8._x == null)) && (_root.mon9._x == null)) {
delete zapTot;
delete zapm;
delete zapnumber;
delete zap_m;
delete spell_input;
order = 0;
} else {
zapm++;
}
if (zapnumber >= zapTot) {
delete zapTot;
delete zapm;
delete zapnumber;
_root.targ1._y = -99999;
delete spell_input;
delete zap_m;
}
}
}
}
regenHealth();
if (flanktimer == 1) {
if (meleenum == 1) {
chat("Side Attacks End", 30, 5);
} else {
chat("Back Attacks End", 30, 5);
chat("Side Attacks End", 30, 5);
}
delete meleenum;
delete flank_buff;
delete flanktimer;
} else {
flanktimer--;
}
if (invis_buff == 1) {
_root.char1._alpha = 25;
if (se_invis == null) {
_root.soundspell1.gotoAndStop(3);
se_invis = 1;
}
} else {
delete invistimer;
_root.char1._alpha = 100;
delete se_invis;
if (auto_invis == 1) {
if ((invistimer == null) || (invistimer < 1560)) {
invistimer = 1560;
}
invis_buff = 1;
}
}
if (para_t_use == 1) {
para_m = 1;
delete para_t_use;
}
if (bomb_use == 1) {
bombEffect = 1;
bombtype++;
if (bombtype >= 3) {
bombtype = 1;
}
if (bombtype == 1) {
_root.soundspell1.gotoAndStop(7);
_root.soundspell1.gotoAndStop(9);
var bombset = 1;
while (bombset < 13) {
bombRangex = new Array();
bombRangey = new Array();
bombRangex = [x, 0, 0, -24, 24, 0, 0, -48, 48];
bombRangey = [x, -24, 24, 0, 0, -48, 48, 0, 0];
_root.kwisin_fury_mc.duplicateMovieClip("effect" + bombset, 1050 + bombset);
_root["effect" + bombset]._x = _root.char1._x + bombRangex[bombset];
_root["effect" + bombset]._y = _root.char1._y + bombRangey[bombset];
if (_root["effect" + bombset].hitTest(_root["mon" + bombset])) {
damage = Infinity;
_root["mon" + bombset].health = _root["mon" + bombset].health - damage;
}
bombset++;
}
}
if (bombtype == 2) {
_root.soundspell1.gotoAndStop(7);
_root.soundspell1.gotoAndStop(9);
var bombsetx = 1;
while (bombsetx < 13) {
bombRangex = new Array();
bombRangey = new Array();
bombRangex = [x, -48, -24, 48, 24, -24, 24, -48, 48];
bombRangey = [x, -48, -24, 48, 24, 24, -24, 48, -48];
_root.kwisin_fury_mc.duplicateMovieClip("effect_" + bombsetx, 1050 + (bombsetx + 12));
_root["effect_" + bombsetx]._x = _root.char1._x + bombRangex[bombsetx];
_root["effect_" + bombsetx]._y = _root.char1._y + bombRangey[bombsetx];
if (_root["effect_" + bombsetx].hitTest(_root["mon" + bombsetx])) {
damage = Infinity;
_root["mon" + bombsetx].health = _root["mon" + bombsetx].health - damage;
}
bombsetx++;
}
}
chat("You used Shatter Bomb", 30, 5);
delete bomb_use;
}
if (invistimer == null) {
} else if (invistimer <= 0) {
chat("You are no longer invisible", 30, 5);
delete invis_buff;
delete auto_invis;
delete invistimer;
} else {
invistimer--;
}
if (blesscombo == 1) {
if (blesstimer == null) {
bless_use = 1;
} else if (potencetimer == null) {
potence_use = 1;
} else if (meleenumber < 2) {
flank_use = 1;
}
delete blesscombo;
}
if (potence_use == 1) {
cost = 30;
if (player_mana > cost) {
if (potencetimer == null) {
potencetimer = 1850;
potencebuff = 1;
potenceuse(char);
chat("You cast " + itemMsg[55], 30, 5);
if (itemuse >= 10) {
itemuse = 1;
}
player_mana = player_mana - cost;
} else {
chat("You have already casted that", 30, 5);
}
} else {
chat("<b>Not enough Mana</b>", 30, 5);
}
delete potence_use;
}
if (potencetimer == null) {
} else if (potencetimer <= 0) {
chat("Your skill decreases", 30, 5);
delete potencebuff;
delete potencetimer;
} else {
potencetimer = potencetimer - 1;
}
if (bless_use == 1) {
cost = 60;
if (player_mana > cost) {
if (blesstimer == null) {
blesstimer = 3750;
blessbuff = 1;
blessuse(char);
chat("You cast " + itemMsg[54], 30, 5);
if (itemuse >= 10) {
itemuse = 1;
}
player_mana = player_mana - cost;
} else {
chat("You have already casted that", 30, 5);
}
} else {
chat("<b>Not enough Mana</b>", 30, 5);
}
delete bless_use;
}
if (blesstimer == null) {
} else if (blesstimer <= 0) {
chat("End of Blessing", 30, 5);
delete blessbuff;
delete blesstimer;
} else {
blesstimer = blesstimer - 1;
}
if (mightcombo == 1) {
if (mighttimer == null) {
might_use = 1;
} else if (shadowtimer == null) {
shadow_use = 1;
} else {
chat("You have already casted that", 30, 5);
}
delete mightcombo;
}
if (shadow_use == 1) {
cost = 60;
if (player_mana > cost) {
if (shadowtimer == null) {
shadowtimer = 6000;
shadowbuff = 1;
shadowuse(char);
chat("You cast " + itemMsg[52], 30, 5);
if (itemuse >= 10) {
itemuse = 1;
}
player_mana = player_mana - cost;
} else {
chat("You have already casted that", 30, 5);
}
} else {
chat("<b>Not enough Mana</b>", 30, 5);
}
delete shadow_use;
}
if (shadowtimer == null) {
} else if (shadowtimer <= 0) {
chat("Your speed decreases", 30, 5);
delete shadowbuff;
delete shadowtimer;
} else {
shadowtimer = shadowtimer - 1;
}
if (might_use == 1) {
cost = 30;
if (player_mana > cost) {
if (mighttimer == null) {
mighttimer = 1620;
mightbuff = 1;
mightuse(char);
chat("You cast " + itemMsg[51], 30, 5);
if (itemuse >= 10) {
itemuse = 1;
}
player_mana = player_mana - cost;
} else {
chat("You have already casted that", 30, 5);
}
} else {
chat("<b>Not enough Mana</b>", 30, 5);
}
delete might_use;
}
if (mighttimer == null) {
} else if (mighttimer <= 0) {
chat("Your muscles weaken", 30, 5);
delete mightbuff;
delete mighttimer;
} else {
mighttimer = mighttimer - 1;
}
if (furyLevel == null) {
furyLevel = new Array();
if (class == 1) {
furyOutput = ["", 1, 2];
furyPower = ["", 2, 3];
furyLevel = [" ", 30, 90];
furyLeveltext = [" ", "Wolf's ", "Tiger's "];
}
if (class == 2) {
furyOutput = ["", 1, 2, 3];
furyPower = ["", 2, 3, 4];
furyLevel = [" ", 30, 90, 150];
furyLeveltext = [" ", "Wolf's ", "Tiger's ", "Dragon's "];
}
}
if (fury_use == 1) {
if (flvl == null) {
flvl = 1;
}
lvloutput = furyOutput[flvl];
lvl = furyPower[flvl];
cost = furyLevel[flvl];
if (player_mana > cost) {
if (furytimer == null) {
furytimer = 6250;
furybuff = 1;
furyuse(char);
chat(((((("You cast " + furyLeveltext[flvl]) + itemMsg[50]) + "") + "(Fury Level ") + flvl) + ")", 30, 5);
if (itemuse >= 10) {
itemuse = 1;
}
player_mana = player_mana - cost;
} else {
chat("You have already casted that", 30, 5);
}
} else {
chat("<b>Not enough Mana</b>", 30, 5);
}
delete fury_use;
}
if (furytimer == null) {
} else if (furytimer <= 0) {
chat("Special Attacks end", 30, 5);
delete furybuff;
delete furytimer;
} else {
furytimer = furytimer - 1;
}
if (flank_use == 1) {
cost = 90;
if (player_mana > cost) {
if (meleenum < 2) {
flankuse(char);
chat((("You cast " + itemMsg[44]) + "") + meleenum, 30, 5);
player_mana = player_mana - cost;
if (itemuse >= 10) {
itemuse = 1;
}
} else {
chat("You have already casted that", 30, 5);
}
} else {
chat("<b>Not enough Mana</b>", 30, 5);
}
delete flank_use;
}
if (invis_use == 1) {
chat("You cast " + itemMsg[43], 30, 5);
invisuse(char);
if (itemuse >= 10) {
itemuse = 1;
}
delete invis_use;
}
if (heal_use == 1) {
cost = 3;
if (cost < player_mana) {
chat("You cast " + itemMsg[40], 30, 5);
player_mana = player_mana - cost;
order = 0;
healuse(char);
if (itemuse >= 10) {
itemuse = 1;
}
delete heal_use;
} else {
chat("<b>Not enough Mana</b>", 30, 5);
delete heal_use;
}
}
if (heal_t_use == 1) {
spells_target();
if (Key.isDown(13) || (_root.targ1.hitTest(_xmouse, _ymouse, true) && (m_input == 1))) {
delete mousex;
delete mousey;
delete m_input;
delete m_command;
_root.targ1._y = -99999;
if (spell_input == null) {
chat("You cast " + itemMsg[41], 30, 5);
if (order == 0) {
healuse(_root.char1);
} else {
healuse(_root["mon" + order]);
}
delete heal_t_use;
spell_input = 1;
}
} else {
delete spell_input;
}
}
if (craft_use == 1) {
chat((((("<b>You cannot use that (" + itemMsg[itemArraynum[keys]]) + "(") + ItemNum[keys]) + ")") + ")</b>", 30, 5);
delete craft_use;
}
if (wine_use == 1) {
_root.plHpDis = 500;
chat("You used Wine", 30, 5);
if (player_mana >= stats_mana) {
player_mana = stats_mana;
}
var i;
while ((player_mana < stats_mana) && (i < 25)) {
(player_mana++) && (i++);
}
_root.sounditem1.gotoAndStop(5);
delete wine_use;
}
if (herbp_use == 1) {
_root.plHpDis = 500;
chat("You used Herb Pipe", 30, 5);
if (player_mana >= stats_mana) {
player_mana = stats_mana;
}
if (player_health < 50) {
} else {
player_health = player_health - 50;
}
var i;
while ((player_mana < stats_mana) && (i < 300)) {
(player_mana++) && (i++);
}
_root.sounditem1.gotoAndStop(5);
delete herbp_use;
}
if (sonhip_use == 1) {
_root.plHpDis = 500;
chat("You used Sonhi Pipe", 30, 5);
if (player_mana >= stats_mana) {
player_mana = stats_mana;
}
if (player_health < 50) {
} else {
player_health = player_health - 50;
}
var i;
while ((player_mana < stats_mana) && (i < 450)) {
(player_mana++) && (i++);
}
_root.sounditem1.gotoAndStop(5);
delete sonhip_use;
}
if (liver_use == 1) {
_root.plHpDis = 500;
chat("You ate Bear's Liver", 30, 5);
if (player_health >= stats_health) {
player_health = stats_health;
}
var i;
while ((player_health < stats_health) && (i < 500)) {
(player_health++) && (i++);
}
_root.sounditem1.gotoAndStop(2);
delete liver_use;
}
if (beef_use == 1) {
_root.plHpDis = 500;
chat("You ate Beef", 30, 5);
if (player_health >= stats_health) {
player_health = stats_health;
}
var i;
while ((player_health < stats_health) && (i < 50)) {
(player_health++) && (i++);
}
_root.sounditem1.gotoAndStop(2);
delete beef_use;
}
if (redpot_use == 1) {
potionuse();
chat("You drank a red potion", 30, 5);
player_health = stats_health;
delete redpot_use;
}
if (potUsage == null) {
potUsage = new Array();
potUsage[1] = 8;
potUsage[2] = 10;
potUsage[3] = 12;
}
if (concpot_use == 1) {
if (itemuse >= 10) {
itemuse = 1;
}
if (concpotTimer == null) {
itemuse++;
potionuse();
chat("You drank a speed potion", 30, 5);
if (PotNum == 3) {
} else {
PotNum++;
}
concpotTimer = 10000 / PotNum;
}
if (concpotTimer <= 0) {
delete PotNum;
delete concpot_use;
delete concpotTimer;
chat("Your increased speed is gone", 30, 5);
} else {
if (stats_agi_full < 2) {
stats_agi_full = 2.96;
} else {
stats_agi_full = stats_agi - (potUsage[PotNum] + base_agi);
}
concpotTimer = concpotTimer - 10;
}
} else {
if (stats_agi_full == null) {
stats_agi_full = stats_agi - base_agi;
}
if (stats_agi_full < 2) {
stats_agi_full = 2.96;
} else {
stats_agi_full = stats_agi - base_agi;
}
}
if (PotNum == null) {
concpot_time = 10000;
} else {
concpot_time = 10000 / PotNum;
}
if (use_menu == null) {
use_menu = 1;
}
if (time_use == 1) {
t_usemenu = 1;
_root.game_hud1.time.gotoAndStop(2);
} else {
_root.game_hud1.time.gotoAndStop(1);
}
if (Key.isDown(90) || (_root.game_hud1.time.hittest(_xmouse, _ymouse, true) && (m_input == 1))) {
if (t_useinput == null) {
t_usemenu++;
t_useinput = 1;
}
if (t_usemenu == 1) {
time_use = 1;
}
if (t_usemenu == 2) {
delete time_use;
}
if (t_usemenu >= 3) {
time_use = 1;
t_usemenu = 1;
}
} else {
delete t_useinput;
}
if (Key.isDown(70) || (_root.game_hud1.spell.hittest(_xmouse, _ymouse, true) && (m_input == 1))) {
if (use_input == null) {
use_menu++;
use_input = 1;
}
if (use_menu == 1) {
delete spell_usage;
_root.game_hud1.spell.gotoAndStop(1);
}
if (use_menu == 2) {
spell_usage = 1;
_root.game_hud1.spell.gotoAndStop(2);
}
if (use_menu >= 3) {
delete spell_usage;
use_menu = 1;
}
} else {
delete use_input;
}
if (Key.isDown(71) || (_root.game_hud1.equip.hitTest(_xmouse, _ymouse, true) && (m_input == 1))) {
equip_usage = 1;
} else if (((_root.game_hud1.equip.hitTest(_xmouse, _ymouse, true) && (m_input == 1)) || (_root.game_hud1.item.hitTest(_xmouse, _ymouse, true) && (m_input == 1))) || (_root.game_hud1.spell.hitTest(_xmouse, _ymouse, true) && (m_input == 1))) {
delete equip_usage;
} else if (Key.isDown(70) || (Key.isDown(71))) {
item_usage = 1;
delete equip_usage;
}
if (Key.isDown(68)) {
} else {
item_usage = 1;
}
_root.IO = ((((((((((((((((((((((((((((_root.item1._x + "| item1") + "<br>") + _root.item2._x) + "| item2") + "<br>") + _root.item3._x) + "| item3") + "<br>") + _root.item4._x) + "| item4") + "<br>") + _root.item5._x) + "| item5") + "<br>") + _root.item6._x) + "| item6") + "<br>") + _root.item7._x) + "| item7") + "<br>") + _root.item8._x) + "| item8") + "<br>") + _root.item9._x) + "| item9") + "<br>") + _root.item10._x) + "| item10") + "<br>";
if (itemArraynum[keys] == null) {
delete ItemArraynum[keys];
delete ItemNum[keys];
delete itemModW[keys];
delete itemModA[keys];
}
if (spell_usage == 1) {
delete item_usage;
if ((sellpage == 1) || (equip_usage == 1)) {
use_menu = 2;
delete spell_usage;
} else {
SpellUse(49, 50, 51, 52, 53, 68);
}
}
if (equip_usage == 1) {
trace("HW equip");
delete item_usage;
if (sellpage == 1) {
} else {
ArmorDrop(49, 50, 51, 52, 53, 68);
}
}
if (item_usage == 1) {
if (sellpage == 1) {
} else {
Inventory(49, 50, 51, 52, 53, 68);
}
if (_root.invenMore == 1) {
itembox1 = itemNum[6];
itembox2 = itemNum[7];
itembox3 = itemNum[8];
itembox4 = itemNum[9];
itembox5 = itemNum[10];
} else if (_root.invenLess == 1) {
itembox1 = itemNum[1];
itembox2 = itemNum[2];
itembox3 = itemNum[3];
itembox4 = itemNum[4];
itembox5 = itemNum[5];
}
}
}
if (debugItemCount >= _root.item_._totalframes) {
debugItemCount = 1;
} else {
debugItemCount++;
_root["item" + nmecreate].gotoAndStop(debugItemCount);
}
if (ItemNum[value] <= 0) {
delete ItemNum[value];
delete ItemArraynum[value];
}
if (correct == 1) {
if (arrayclear >= 25) {
if (itemArraynum[1] == null) {
delete itemModW[1];
delete itemModA[1];
}
if (itemArraynum[2] == null) {
delete itemModW[2];
delete itemModA[2];
}
if (itemArraynum[3] == null) {
delete itemModW[3];
delete itemModA[3];
}
if (itemArraynum[4] == null) {
delete itemModW[4];
delete itemModA[4];
}
if (itemArraynum[5] == null) {
delete itemModW[5];
delete itemModA[5];
}
delete correct;
delete arrayclear;
} else {
arrayclear++;
}
}
function ambush_v(obj) {
ambleap = 24;
desuClock_v = 1;
if ((Math.abs(obj._x - ambNme_scan._x) < 73) && (Math.abs(obj._y - ambNme_scan._y) < 73)) {
if (((obj._currentframe == (2 + armor_anim)) || (obj._currentframe == (7 + armor_anim))) || (obj._currentframe == (12 + armor_anim))) {
obj._y = obj._y + ambleap;
if (obj._xscale == 100) {
obj._x = obj._x - ambleap;
obj._xscale = -100;
} else if (obj._xscale == -100) {
obj._x = obj._x + ambleap;
obj._xscale = 100;
}
obj.gotoAndStop(obj._currentframe + 2);
_root.sounditem1.gotoAndStop(4);
} else if (((obj._currentframe == (4 + armor_anim)) || (obj._currentframe == (9 + armor_anim))) || (obj._currentframe == (14 + armor_anim))) {
obj._y = obj._y - ambleap;
if (obj._xscale == 100) {
obj._x = obj._x - ambleap;
obj._xscale = -100;
} else if (obj._xscale == -100) {
obj._x = obj._x + ambleap;
obj._xscale = 100;
}
obj.gotoAndStop(obj._currentframe - 2);
_root.sounditem1.gotoAndStop(4);
}
if (((obj._currentframe == (1 + armor_anim)) || (obj._currentframe == (6 + armor_anim))) || (obj._currentframe == (11 + armor_anim))) {
obj._y = obj._y + ambleap;
obj.gotoAndStop(obj._currentframe + 4);
_root.sounditem1.gotoAndStop(4);
} else if (((obj._currentframe == (5 + armor_anim)) || (obj._currentframe == (10 + armor_anim))) || (obj._currentframe == (15 + armor_anim))) {
obj._y = obj._y - ambleap;
obj.gotoAndStop(obj._currentframe - 4);
_root.sounditem1.gotoAndStop(4);
}
if (((obj._currentframe == (3 + armor_anim)) || (obj._currentframe == (8 + armor_anim))) || (obj._currentframe == (13 + armor_anim))) {
if (obj._xscale == -100) {
obj._x = obj._x + ambleap;
if (obj._xscale == 100) {
obj._xscale = -100;
} else {
obj._xscale = 100;
_root.sounditem1.gotoAndStop(4);
}
} else {
obj._x = obj._x - ambleap;
if (obj._xscale == 100) {
obj._xscale = -100;
} else {
obj._xscale = 100;
_root.sounditem1.gotoAndStop(4);
}
}
}
ambushshadx = ambushmemx;
ambushshady = ambushmemy;
c_ambush = 1;
}
}
function ambush(obj) {
ambleap = 24;
desuClock = 1;
if ((Math.abs(obj._x - ambNme_scan._x) < 73) && (Math.abs(obj._y - ambNme_scan._y) < 73)) {
if (((obj._currentframe == (2 + armor_anim)) || (obj._currentframe == (7 + armor_anim))) || (obj._currentframe == (12 + armor_anim))) {
obj._y = ambNme_scan._y + ambleap;
if (obj._xscale == 100) {
obj._x = ambNme_scan._x - ambleap;
obj._xscale = -100;
} else if (obj._xscale == -100) {
obj._x = ambNme_scan._x + ambleap;
obj._xscale = 100;
}
obj.gotoAndStop(obj._currentframe + 2);
_root.sounditem1.gotoAndStop(4);
} else if (((obj._currentframe == (4 + armor_anim)) || (obj._currentframe == (9 + armor_anim))) || (obj._currentframe == (14 + armor_anim))) {
obj._y = ambNme_scan._y - ambleap;
if (obj._xscale == 100) {
obj._x = ambNme_scan._x - ambleap;
obj._xscale = -100;
} else if (obj._xscale == -100) {
obj._x = ambNme_scan._x + ambleap;
obj._xscale = 100;
}
obj.gotoAndStop(obj._currentframe - 2);
_root.sounditem1.gotoAndStop(4);
}
if (((obj._currentframe == (1 + armor_anim)) || (obj._currentframe == (6 + armor_anim))) || (obj._currentframe == (11 + armor_anim))) {
obj._y = ambNme_scan._y + ambleap;
obj.gotoAndStop(obj._currentframe + 4);
_root.sounditem1.gotoAndStop(4);
} else if (((obj._currentframe == (5 + armor_anim)) || (obj._currentframe == (10 + armor_anim))) || (obj._currentframe == (15 + armor_anim))) {
obj._y = ambNme_scan._y - ambleap;
obj.gotoAndStop(obj._currentframe - 4);
_root.sounditem1.gotoAndStop(4);
}
if (((obj._currentframe == (3 + armor_anim)) || (obj._currentframe == (8 + armor_anim))) || (obj._currentframe == (13 + armor_anim))) {
if (obj._xscale == -100) {
obj._x = ambNme_scan._x + ambleap;
if (obj._xscale == 100) {
obj._xscale = -100;
} else {
obj._xscale = 100;
_root.sounditem1.gotoAndStop(4);
}
} else {
obj._x = ambNme_scan._x - ambleap;
if (obj._xscale == 100) {
obj._xscale = -100;
} else {
obj._xscale = 100;
_root.sounditem1.gotoAndStop(4);
}
}
}
ambushshadx = ambushmemx;
ambushshady = ambushmemy;
c_ambush = 1;
}
}
function attack(obj, auto, aspd, atk) {
if (s_scanx == null) {
if (s_scanx == 1) {
} else {
amb_scanner = 1;
while (amb_scanner < (enemyCount + 1)) {
if (_root["mon" + amb_scanner].hitTest(mousex, mousey, true)) {
keyboard_ambush = 1;
}
amb_scanner++;
}
s_scanx = 1;
}
} else {
delete s_scanx;
}
ambTest = obj.hitTest(ambNme_scan);
if (s_scan == null) {
if (s_scan == 1) {
} else {
amb_scanner = 1;
while (amb_scanner < (enemyCount + 1)) {
if (obj.hitTest(_root["mon" + amb_scanner])) {
ambNme_scan = _root["mon" + amb_scanner];
}
amb_scanner++;
}
s_scan = 1;
}
} else {
delete s_scan;
}
if (obj.hitTest(ambNme_scan)) {
if (s_inputDelay == null) {
if (s_ambush == 1) {
if (obj._currentframe > (5 + armor_anim)) {
if (obj._currentframe > (10 + armor_anim)) {
obj.gotoAndStop(obj._currentframe - 5);
obj.gotoAndStop(obj._currentframe + 5);
ambush(obj);
atk._x = obj._x;
atk._y = obj._y - 20;
} else {
obj.gotoAndStop(obj._currentframe + 5);
ambush(obj);
atk._x = obj._x;
atk._y = obj._y - 20;
}
}
}
s_inputDelay = 1;
}
} else {
delete s_inputDelay;
delete ambleap;
}
if ((atimer == null) && (fstrike == null)) {
atimer = 999;
fstrike = 1;
} else if (atimer == null) {
} else {
atimer++;
}
if (atimer >= (aspd * 2)) {
delete inputDelay;
delete atimer;
if ((input == null) && (Key.isDown(65))) {
atk._x = obj._x;
atk._y = obj._y - 20;
if (obj._currentframe > (5 + armor_anim)) {
if (obj._currentframe > (10 + armor_anim)) {
obj.gotoAndStop(obj._currentframe - 5);
obj.gotoAndStop(obj._currentframe + 5);
} else {
obj.gotoAndStop(obj._currentframe + 5);
}
}
input = 1;
}
delete input;
}
if (Key.isDown(65) || (Key.isDown(32))) {
htdstuck();
if (atimer == null) {
atimer++;
}
if (inputDelay == null) {
if (obj._currentframe > (5 + armor_anim)) {
if (obj._currentframe > (10 + armor_anim)) {
obj.gotoAndStop(obj._currentframe - 5);
obj.gotoAndStop(obj._currentframe + 5);
} else {
obj.gotoAndStop(obj._currentframe + 5);
}
}
atk._x = obj._x;
atk._y = obj._y - 20;
inputDelay = 1;
}
if (auto == null) {
}
} else {
if ((!Key.isDown(65)) && (!Key.isDown(32))) {
delete fstrike;
}
if (atimer > aspd) {
delete input;
delete atimer;
}
if (x == 8) {
atk._x = -200;
atk._y = -200;
}
}
}
function spriteDepth(obj, enemy) {
if (enemy.dep == null) {
if (obj._y < enemy._y) {
enemy.swapDepths(layer2 + 20);
enemy.dep = 2;
}
if (obj._y > enemy._y) {
enemy.swapDepths(layer2 - 20);
enemy.dep = 1;
}
} else {
if (enemy.dep == 1) {
if (obj._y < enemy._y) {
enemy.swapDepths(layer2 + 20);
enemy.dep = 2;
}
}
if (enemy.dep == 2) {
if (obj._y > enemy._y) {
enemy.swapDepths(layer2 - 20);
enemy.dep = 1;
}
}
}
}
function rogueEffect() {
var remShadow = 1;
while (remShadow < 11) {
if (_root["charshadow" + remShadow]._alpha < 0) {
removeMovieClip(_root["charshadow" + remShadow]);
} else {
_root["charshadow" + remShadow]._alpha = _root["charshadow" + remShadow]._alpha - 2;
}
remShadow++;
}
}
function charshadowfunc() {
trace(pointsnum);
if (class == 1) {
_root["charshadow" + pointsnum]._x = _root.char1._x;
_root.purge_effect_mc.duplicateMovieClip("purge" + pointsnum, 700 + pointsnum);
if (_root["purge" + pointsnum].lx == null) {
_root["purge" + pointsnum].gotoAndPlay(1);
_root["purge" + pointsnum].lx = 1;
}
_root["purge" + pointsnum]._x = _root.char1._x;
_root["purge" + pointsnum]._y = _root.char1._y - 20;
_root.char1.duplicateMovieClip("charshadow" + pointsnum, 620 + pointsnum);
if (_root["charshadow" + pointsnum].lx == null) {
_root["charshadow" + pointsnum]._x = _root.char1._x;
_root["charshadow" + pointsnum]._y = _root.char1._y;
_root["charshadow" + pointsnum].gotoAndStop(_root.char1._currentframe);
_root["charshadow" + pointsnum]._alpha = 80;
_root["charshadow" + pointsnum].down.gotoAndStop(_root.char1.down._currentframe);
_root["charshadow" + pointsnum].downdiag.gotoAndStop(_root.char1.downdiag._currentframe);
_root["charshadow" + pointsnum].side.gotoAndStop(_root.char1.side._currentframe);
_root["charshadow" + pointsnum].updiag.gotoAndStop(_root.char1.updiag._currentframe);
_root["charshadow" + pointsnum].up.gotoAndStop(_root.char1.up._currentframe);
_root["charshadow" + pointsnum].downa.gotoAndStop(3);
_root["charshadow" + pointsnum].downdiaga.gotoAndStop(3);
_root["charshadow" + pointsnum].sidea.gotoAndStop(3);
_root["charshadow" + pointsnum].updiaga.gotoAndStop(3);
_root["charshadow" + pointsnum].upa.gotoAndStop(3);
_root["charshadow" + pointsnum].lx = 1;
}
}
}
function game_full_speed() {
if (game_speed == null) {
game_speed = 1;
}
if (game_speed == 3) {
mvpatk = 1;
mvpspd = 0.25;
if (((sprint == 1) && (player_sprint_m > 1)) && (player_sprint == 1)) {
boost_spd = 1;
} else {
delete boost_spd;
}
movementspd = 1 + boost_spd;
attackspd = stats_agi_full * game_speed;
enemyspd = 1;
enemyatkspd = 36;
} else if (game_speed == 2) {
mvpatk = 2;
mvpspd = 0.5;
if (((sprint == 1) && (player_sprint_m > 1)) && (player_sprint == 1)) {
boost_spd = 2;
} else {
delete boost_spd;
}
movementspd = 2 + boost_spd;
attackspd = stats_agi_full * game_speed;
enemyspd = 1;
enemyatkspd = 24;
} else if (game_speed == 1) {
mvpatk = 3.2;
mvpspd = 1;
if (((sprint == 1) && (player_sprint_m > 1)) && (player_sprint == 1)) {
boost_spd = 2;
} else {
delete boost_spd;
}
movementspd = 4 + boost_spd;
attackspd = stats_agi_full * game_speed;
enemyspd = 2;
enemyatkspd = 8;
}
}
function timeTrial() {
if (timeSet == 1) {
if (firstTime == null) {
firstTime_gp = (((((("" + min) + "''") + seconds1) + "") + seconds2) + "''") + mils;
firstTime_ = (((((("#1:~" + min) + "''") + seconds1) + "") + seconds2) + "''") + mils;
firstTime = (((((("#1:~" + min) + "''") + seconds1) + "") + seconds2) + "''") + mils;
_root.timeFlasher.gotoAndPlay(2);
delete timeSet;
} else if (secondTime == null) {
secondTime_gp = (((((("" + min) + "''") + seconds1) + "") + seconds2) + "''") + mils;
secondTime_ = (((((("#2~" + min) + "''") + seconds1) + "") + seconds2) + "''") + mils;
secondTime = (((((("#2~" + min) + "''") + seconds1) + "") + seconds2) + "''") + mils;
_root.timeFlasher.gotoAndPlay(2);
delete timeSet;
} else if (thirdTime == null) {
thirdTime_gp = (((((("" + min) + "''") + seconds1) + "") + seconds2) + "''") + mils;
thirdTime_ = (((((("#3~" + min) + "''") + seconds1) + "") + seconds2) + "''") + mils;
thirdTime = (((((("#3~" + min) + "''") + seconds1) + "") + seconds2) + "''") + mils;
_root.timeFlasher.gotoAndPlay(2);
delete timeSet;
} else if (fourthTime == null) {
fourthTime_gp = (((((("" + min) + "''") + seconds1) + "") + seconds2) + "''") + mils;
fourthTime_ = (((((("#4:~" + min) + "''") + seconds1) + "") + seconds2) + "''") + mils;
fourthTime = (((((("#4:~" + min) + "''") + seconds1) + "") + seconds2) + "''") + mils;
_root.timeFlasher.gotoAndPlay(2);
delete timeSet;
}
}
timeList = (((((firstTime_ + "<br>") + secondTime_) + "<br>") + thirdTime_) + "<br>") + fourthTime_;
if (timeLimit == null) {
fps = 25;
minutes = 0;
secondsx = minutes * 60;
timeLimit = secondsx * fps;
maxTime = timeLimit;
}
if (dontremovethese == 1) {
if (Key.isDown(83)) {
timeLimit = timeLimit - 100;
}
if (Key.isDown(32)) {
timeLimit = timeLimit + 100;
}
}
vrb = 1;
vrb2 = 0.5;
vrb3 = 0.25;
if (game_speed == 3) {
timeLimit = timeLimit + 0.25;
} else if (game_speed == 2) {
timeLimit = timeLimit + 0.5;
} else if (game_speed == 1) {
timeLimit = timeLimit + 1;
}
milsec = ((timeLimit * 999) / 25) - Math.ceil((timeLimit * 999) / 25);
mils = milsec.toString().slice(3, 6);
seconds = Math.abs(Math.floor((timeLimit / 25) - (min * 60)));
seconds1 = Math.abs(Math.floor(seconds / 10));
min = Math.abs(Math.floor((timeLimit / 25) / 60));
seconds2 = Math.abs(seconds - (seconds1 * 10));
trialLogo = "TOTAL TIME";
totalTime = (((((min + "''") + seconds1) + "") + seconds2) + "''") + mils;
}
function game_rewind(obj, map1, map2, map3, map4, map5, map6, map7, map8, map9, mon1, mon2, mon3, mon4, mon5, mon6, mon7, mon8, mon9) {
if (time_use == 1) {
_root.lightbg.gotoAndStop(5);
rewind = 1;
obj._x = playerx[play_];
obj._y = playery[play_];
obj.gotoAndStop(playercf[play_]);
obj.down.gotoAndStop(playerdown[play_]);
obj.downdiag.gotoAndStop(playerdowndiag[play_]);
obj.side.gotoAndStop(playerside[play_]);
obj.updiag.gotoAndStop(playerupdiag[play_]);
obj.up.gotoAndStop(playerup[play_]);
obj.downa.gotoAndStop(playerdowna[play_]);
obj.downdiaga.gotoAndStop(playerdowndiaga[play_]);
obj.sidea.gotoAndStop(playersidea[play_]);
obj.updiaga.gotoAndStop(playerupdiaga[play_]);
obj.upa.gotoAndStop(playerupa[play_]);
obj._xscale = playerxscale[play_];
player_health = playerh[play_];
map1._x = map1x[play_];
map1._y = map1y[play_];
map2._x = map2x[play_];
map2._y = map2y[play_];
map3._x = map3x[play_];
map3._y = map3y[play_];
map4._x = map4x[play_];
map4._y = map4y[play_];
map5._x = map5x[play_];
map5._y = map5y[play_];
map6._x = map6x[play_];
map6._y = map6y[play_];
map7._x = map7x[play_];
map7._y = map7y[play_];
map8._x = map8x[play_];
map8._y = map8y[play_];
map9._x = map9x[play_];
map9._y = map9y[play_];
map1.gotoAndStop(map1cf[play_]);
map2.gotoAndStop(map2cf[play_]);
map3.gotoAndStop(map3cf[play_]);
map4.gotoAndStop(map4cf[play_]);
map5.gotoAndStop(map5cf[play_]);
map6.gotoAndStop(map6cf[play_]);
map7.gotoAndStop(map7cf[play_]);
map8.gotoAndStop(map8cf[play_]);
map9.gotoAndStop(map9cf[play_]);
mapx = mapx1Int[play_];
mapx2 = mapx2Int[play_];
mapx3 = mapx3Int[play_];
mapx4 = mapx4Int[play_];
mapx5 = mapx5Int[play_];
mapx6 = mapx6Int[play_];
mapx7 = mapx7Int[play_];
mapx8 = mapx8Int[play_];
mapx9 = mapx9Int[play_];
mapy = mapy1Int[play_];
mapy2 = mapy2Int[play_];
mapy3 = mapy3Int[play_];
mapy4 = mapy4Int[play_];
mapy5 = mapy5Int[play_];
mapy6 = mapy6Int[play_];
mapy7 = mapy7Int[play_];
mapy8 = mapy8Int[play_];
mapy9 = mapy9Int[play_];
map_gridx = mapGridx[play_];
map_gridy = mapGridy[play_];
mon1._x = enem1x[play_];
mon1._y = enem1y[play_];
mon2._x = enem2x[play_];
mon2._y = enem2y[play_];
mon3._x = enem3x[play_];
mon3._y = enem3y[play_];
mon4._x = enem4x[play_];
mon4._y = enem4y[play_];
mon5._x = enem5x[play_];
mon5._y = enem5y[play_];
mon6._x = enem6x[play_];
mon6._y = enem6y[play_];
mon7._x = enem7x[play_];
mon7._y = enem7y[play_];
mon8._x = enem8x[play_];
mon8._y = enem8y[play_];
mon9._x = enem9x[play_];
mon9._y = enem9y[play_];
mon1.health = enem1h[play_];
mon2.health = enem2h[play_];
mon3.health = enem3h[play_];
mon4.health = enem4h[play_];
mon5.health = enem5h[play_];
mon6.health = enem6h[play_];
mon7.health = enem7h[play_];
mon8.health = enem8h[play_];
mon9.health = enem9h[play_];
mon1.gotoAndStop(enem1cf[play_]);
mon2.gotoAndStop(enem2cf[play_]);
mon3.gotoAndStop(enem3cf[play_]);
mon4.gotoAndStop(enem4cf[play_]);
mon5.gotoAndStop(enem5cf[play_]);
mon6.gotoAndStop(enem6cf[play_]);
mon7.gotoAndStop(enem7cf[play_]);
mon8.gotoAndStop(enem8cf[play_]);
mon9.gotoAndStop(enem9cf[play_]);
enemyCount = enemyC[play_];
floor = floorNum[play_];
mapNumber = mapNum[play_];
mapType = mapTypeNum[play_];
progress = progressNum[play_];
totalTime = totalTimeNum[play_];
min = minNum[play_];
timeLimit = timeLimitNum[play_];
if (mapHistory[floor][mapNumber] == 1) {
delete mapHistory[floor][mapNumber];
}
if (enem1h[play_] >= 1) {
if (_root.mon1._x == null) {
_root.enemy.duplicateMovieClip("mon1", layer7 + 1);
}
}
if (enem2h[play_] >= 1) {
if (_root.mon2._x == null) {
_root.enemy.duplicateMovieClip("mon2", layer7 + 2);
}
}
if (enem3h[play_] >= 1) {
if (_root.mon3._x == null) {
_root.enemy.duplicateMovieClip("mon3", layer7 + 3);
}
}
if (enem4h[play_] >= 1) {
if (_root.mon4._x == null) {
_root.enemy.duplicateMovieClip("mon4", layer7 + 4);
}
}
if (enem5h[play_] >= 1) {
if (_root.mon5._x == null) {
_root.enemy.duplicateMovieClip("mon5", layer7 + 5);
}
}
if (enem6h[play_] >= 1) {
if (_root.mon6._x == null) {
_root.enemy.duplicateMovieClip("mon6", layer7 + 6);
}
}
if (enem7h[play_] >= 1) {
if (_root.mon7._x == null) {
_root.enemy.duplicateMovieClip("mon7", layer7 + 7);
}
}
if (enem8h[play_] >= 1) {
if (_root.mon8._x == null) {
_root.enemy.duplicateMovieClip("mon8", layer7 + 8);
}
}
if (enem9h[play_] >= 1) {
if (_root.mon9._x == null) {
_root.enemy.duplicateMovieClip("mon9", layer7 + 9);
}
}
if (enem1h[play_] == null) {
removeMovieClip(_root.mon1);
}
if (enem2h[play_] == null) {
removeMovieClip(_root.mon2);
}
if (enem3h[play_] == null) {
removeMovieClip(_root.mon3);
}
if (enem4h[play_] == null) {
removeMovieClip(_root.mon4);
}
if (enem5h[play_] == null) {
removeMovieClip(_root.mon5);
}
if (enem6h[play_] == null) {
removeMovieClip(_root.mon6);
}
if (enem7h[play_] == null) {
removeMovieClip(_root.mon7);
}
if (enem8h[play_] == null) {
removeMovieClip(_root.mon8);
}
if (enem9h[play_] == null) {
removeMovieClip(_root.mon9);
}
rewindBGM = 1;
if (play_ == null) {
play_ = rec - 3;
play_tot = rec;
}
if (Key.isDown(39)) {
if (play_ >= (play_tot - 3)) {
play_ = play_tot - 3;
} else if (Key.isDown(17)) {
play_ = play_ + 10;
} else {
play_ = play_ + 1;
}
}
if (Key.isDown(37)) {
if (play_ <= 3) {
play_ = 3;
} else if (Key.isDown(17)) {
play_ = play_ - 10;
} else {
play_ = play_ - 1;
}
}
delete rec;
} else {
if (_root.r_desu == 1) {
delete _root.centermapst;
_root.centermap = 1;
delete _root.r_desu;
}
if (rec == null) {
recbgm = 1;
removeMovieClip(_root.rewindhero);
removeMovieClip(_root.rewindhero1);
removeMovieClip(_root.rewindhero2);
removeMovieClip(_root.rewindhero3);
removeMovieClip(_root.rewindhero4);
removeMovieClip(_root.rewindhero5);
removeMovieClip(_root.rewindhero6);
removeMovieClip(_root.rewindhero7);
removeMovieClip(_root.rewindhero8);
removeMovieClip(_root.rewindhero9);
removeMovieClip(_root.rewindhero10);
rec = 1;
}
delete rewind;
playerx[rec] = obj._x;
playery[rec] = obj._y;
playercf[rec] = obj._currentframe;
playerxscale[rec] = obj._xscale;
playerh[rec] = player_health;
playerdown[rec] = obj.down._currentframe;
playerdowndiag[rec] = obj.downdiag._currentframe;
playerside[rec] = obj.side._currentframe;
playerupdiag[rec] = obj.updiag._currentframe;
playerup[rec] = obj.up._currentframe;
playerdowna[rec] = obj.downa._currentframe;
playerdowndiaga[rec] = obj.downdiaga._currentframe;
playersidea[rec] = obj.sidea._currentframe;
playerupdiaga[rec] = obj.updiaga._currentframe;
playerupa[rec] = obj.upa._currentframe;
map1x[rec] = map1._x;
map1y[rec] = map1._y;
map2x[rec] = map2._x;
map2y[rec] = map2._y;
map3x[rec] = map3._x;
map3y[rec] = map3._y;
map4x[rec] = map4._x;
map4y[rec] = map4._y;
map5x[rec] = map5._x;
map5y[rec] = map5._y;
map6x[rec] = map6._x;
map6y[rec] = map6._y;
map7x[rec] = map7._x;
map7y[rec] = map7._y;
map8x[rec] = map8._x;
map8y[rec] = map8._y;
map9x[rec] = map9._x;
map9y[rec] = map9._y;
map1cf[rec] = map1._currentframe;
map2cf[rec] = map2._currentframe;
map3cf[rec] = map3._currentframe;
map4cf[rec] = map4._currentframe;
map5cf[rec] = map5._currentframe;
map6cf[rec] = map6._currentframe;
map7cf[rec] = map7._currentframe;
map8cf[rec] = map8._currentframe;
map9cf[rec] = map9._currentframe;
mapx1Int[rec] = mapx;
mapx2Int[rec] = mapx2;
mapx3Int[rec] = mapx3;
mapx4Int[rec] = mapx4;
mapx5Int[rec] = mapx5;
mapx6Int[rec] = mapx6;
mapx7Int[rec] = mapx7;
mapx8Int[rec] = mapx8;
mapx9Int[rec] = mapx9;
mapy1Int[rec] = mapy;
mapy2Int[rec] = mapy2;
mapy3Int[rec] = mapy3;
mapy4Int[rec] = mapy4;
mapy5Int[rec] = mapy5;
mapy6Int[rec] = mapy6;
mapy7Int[rec] = mapy7;
mapy8Int[rec] = mapy8;
mapy9Int[rec] = mapy9;
mapGridx[rec] = map_gridx;
mapGridy[rec] = map_gridy;
enem1x[rec] = mon1._x;
enem1y[rec] = mon1._y;
enem2x[rec] = mon2._x;
enem2y[rec] = mon2._y;
enem3x[rec] = mon3._x;
enem3y[rec] = mon3._y;
enem4x[rec] = mon4._x;
enem4y[rec] = mon4._y;
enem5x[rec] = mon5._x;
enem5y[rec] = mon5._y;
enem6x[rec] = mon6._x;
enem6y[rec] = mon6._y;
enem7x[rec] = mon7._x;
enem7y[rec] = mon7._y;
enem8x[rec] = mon8._x;
enem8y[rec] = mon8._y;
enem9x[rec] = mon9._x;
enem9y[rec] = mon9._y;
enem1h[rec] = mon1.health;
enem2h[rec] = mon2.health;
enem3h[rec] = mon3.health;
enem4h[rec] = mon4.health;
enem5h[rec] = mon5.health;
enem6h[rec] = mon6.health;
enem7h[rec] = mon7.health;
enem8h[rec] = mon8.health;
enem9h[rec] = mon9.health;
enem1cf[rec] = mon1._currentframe;
enem2cf[rec] = mon2._currentframe;
enem3cf[rec] = mon3._currentframe;
enem4cf[rec] = mon4._currentframe;
enem5cf[rec] = mon5._currentframe;
enem6cf[rec] = mon6._currentframe;
enem7cf[rec] = mon7._currentframe;
enem8cf[rec] = mon8._currentframe;
enem9cf[rec] = mon9._currentframe;
enemyC[rec] = enemyCount;
floorNum[rec] = floor;
mapNum[rec] = mapNumber;
mapHistoryNum[rec] = mapHistory;
if (mapHistory[floor][mapNumber] == null) {
mapHistory[floor][mapNumber] = 1;
}
mapTypeNum[rec] = mapType;
progressNum[rec] = progress;
totalTimeNum[rec] = totalTime;
minNum[rec] = min;
timeLimitNum[rec] = timeLimit;
bgmVrb[rec] = _root.soundbgm1._currentframe;
if ((_root.soundbgm1._currentframe >= 1) && (rewindBGM == 1)) {
stopAllSounds();
_root.soundbgm1.gotoAndStop(_root.floor + 4);
delete rewindBGM;
}
if (_root.player_health >= 1) {
rec++;
}
delete play_;
}
}
if (recordArrayCreate == null) {
playerx = new Array();
playery = new Array();
playercf = new Array();
playerxscale = new Array();
playerh = new Array();
playerdown = new Array();
playerdowndiag = new Array();
playerside = new Array();
playerupdiag = new Array();
playerup = new Array();
playerdowna = new Array();
playerdowndiaga = new Array();
playersidea = new Array();
playerupdiaga = new Array();
playerupa = new Array();
map1x = new Array();
map2x = new Array();
map3x = new Array();
map4x = new Array();
map5x = new Array();
map6x = new Array();
map7x = new Array();
map8x = new Array();
map9x = new Array();
map1y = new Array();
map2y = new Array();
map3y = new Array();
map4y = new Array();
map5y = new Array();
map6y = new Array();
map7y = new Array();
map8y = new Array();
map9y = new Array();
map1cf = new Array();
map2cf = new Array();
map3cf = new Array();
map4cf = new Array();
map5cf = new Array();
map6cf = new Array();
map7cf = new Array();
map8cf = new Array();
map9cf = new Array();
mapx1Int = new Array();
mapx2Int = new Array();
mapx3Int = new Array();
mapx4Int = new Array();
mapx5Int = new Array();
mapx6Int = new Array();
mapx7Int = new Array();
mapx8Int = new Array();
mapx9Int = new Array();
mapy1Int = new Array();
mapy2Int = new Array();
mapy3Int = new Array();
mapy4Int = new Array();
mapy5Int = new Array();
mapy6Int = new Array();
mapy7Int = new Array();
mapy8Int = new Array();
mapy9Int = new Array();
mapGridx = new Array();
mapGridy = new Array();
enem1x = new Array();
enem1y = new Array();
enem2x = new Array();
enem2y = new Array();
enem3x = new Array();
enem3y = new Array();
enem4x = new Array();
enem4y = new Array();
enem5x = new Array();
enem5y = new Array();
enem6x = new Array();
enem6y = new Array();
enem7x = new Array();
enem7y = new Array();
enem8x = new Array();
enem8y = new Array();
enem9x = new Array();
enem9y = new Array();
enem1h = new Array();
enem2h = new Array();
enem3h = new Array();
enem4h = new Array();
enem5h = new Array();
enem6h = new Array();
enem7h = new Array();
enem8h = new Array();
enem9h = new Array();
enem1cf = new Array();
enem2cf = new Array();
enem3cf = new Array();
enem4cf = new Array();
enem5cf = new Array();
enem6cf = new Array();
enem7cf = new Array();
enem8cf = new Array();
enem9cf = new Array();
enemyC = new Array();
bgmVrb = new Array();
floorNum = new Array();
mapNum = new Array();
mapHistoryNum = new Array();
mapTypeNum = new Array();
progressNum = new Array();
totalTimeNum = new Array();
minNum = new Array();
timeLimitNum = new Array();
recordArrayCreate = 1;
}
function sprintEffect() {
player_num = 100;
_root.purge_effect_mc.duplicateMovieClip("purge" + player_num, 700 + player_num);
if (_root["purge" + player_num].lx == null) {
_root.sounditem1.gotoAndStop(4);
_root["purge" + player_num].gotoAndPlay(1);
_root["purge" + player_num].lx = 1;
}
_root["purge" + player_num]._x = _root.char1._x;
_root["purge" + player_num]._y = _root.char1._y - 20;
}
function fastForward(obj) {
if (Key.isDown(83)) {
if (spd_input == null) {
if (player_sprint == null) {
player_sprint = 1;
} else if (player_sprint == 1) {
delete player_sprint;
}
spd_input = 1;
}
} else {
delete spd_input;
}
if (ambPoints == null) {
ambPoints = 100;
}
if (player_sprint == null) {
if (sprint == null) {
if (player_sprint_m < ambPoints) {
player_sprint_m = player_sprint_m + 1;
} else {
sprint = 1;
}
if (rem_s_trail < 10) {
var traileff = 1;
while (traileff < 6) {
_root["speedtrail" + traileff]._alpha = _root["speedtrail" + traileff]._alpha - 15;
traileff++;
}
if (removeShadow >= 5) {
removeMovieClip(_root["speedtrail" + rem_s_trail]);
delete removeShadow;
rem_s_trail++;
} else {
removeShadow++;
}
}
obj.down.play();
obj.downdiag.play();
obj.side.play();
obj.updiag.play();
obj.up.play();
obj.downa.play();
obj.downdiaga.play();
obj.sidea.play();
obj.updiaga.play();
obj.upa.play();
}
}
if (player_sprint == 1) {
if (((((m_input == 1) || (Key.isDown(38))) || (Key.isDown(40))) || (Key.isDown(39))) || (Key.isDown(37))) {
if (player_sprint_m >= 80) {
if ((sprintcast == null) && (game_speed == 1)) {
sprintEffect();
sprintcast = 1;
}
sprint = 1;
}
}
if ((((((m_input == null) && (!Key.isDown(38))) && (!Key.isDown(37))) && (!Key.isDown(39))) && (!Key.isDown(40))) || (game_speed == 2)) {
sprint = null;
}
if (sprint == null) {
delete sprintcast;
if (player_sprint_m < ambPoints) {
player_sprint_m = player_sprint_m + 1;
} else {
sprint = 1;
}
if (rem_s_trail < 10) {
var traileff = 1;
while (traileff < 6) {
_root["speedtrail" + traileff]._alpha = _root["speedtrail" + traileff]._alpha - 15;
traileff++;
}
if (removeShadow >= 5) {
removeMovieClip(_root["speedtrail" + rem_s_trail]);
delete removeShadow;
rem_s_trail++;
} else {
removeShadow++;
}
}
obj.down.play();
obj.downdiag.play();
obj.side.play();
obj.updiag.play();
obj.up.play();
obj.downa.play();
obj.downdiaga.play();
obj.sidea.play();
obj.updiaga.play();
obj.upa.play();
}
if (sprint == 1) {
if (speed_effect == null) {
potionuse();
speed_effect = 1;
}
_root.plHpDis = 500;
if (player_sprint_m > 1) {
player_sprint_m = player_sprint_m - 2;
} else {
delete sprint;
}
delete rem_s_trail;
if (cf >= 10) {
delete cf;
} else {
cf = cf + 2;
}
if (s_num >= 5) {
s_num = 1;
} else if (st_Timer >= 1) {
delete st_Timer;
s_num++;
} else {
st_Timer++;
}
if (s_num >= 1) {
obj.duplicateMovieClip("speedtrail" + s_num, layer18 + s_num);
_root["speedtrail" + s_num].gotoAndStop(obj._currentframe);
_root["speedtrail" + s_num].down.gotoAndStop(1);
_root["speedtrail" + s_num].downdiag.gotoAndStop(2);
_root["speedtrail" + s_num].side.gotoAndStop(3);
_root["speedtrail" + s_num].updiag.gotoAndStop(4);
_root["speedtrail" + s_num].up.gotoAndStop(5);
}
var trailefx = 1;
while (trailefx < (s_num + 1)) {
_root["speedtrail" + trailefx]._alpha = 50;
_root["speedtrail" + trailefx].down.gotoAndStop(1);
_root["speedtrail" + trailefx].downdiag.gotoAndStop(2);
_root["speedtrail" + trailefx].side.gotoAndStop(3);
_root["speedtrail" + trailefx].updiag.gotoAndStop(4);
_root["speedtrail" + trailefx].up.gotoAndStop(5);
trailefx++;
}
obj.down.gotoAndStop(cf);
obj.downdiag.gotoAndStop(cf);
obj.side.gotoAndStop(cf);
obj.updiag.gotoAndStop(cf);
obj.up.gotoAndStop(cf);
obj.downa.gotoAndStop(cf);
obj.downdiaga.gotoAndStop(cf);
obj.sidea.gotoAndStop(cf);
obj.updiaga.gotoAndStop(cf);
obj.upa.gotoAndStop(cf);
}
}
}
function slomo_cf(obj, vrb, vrb2) {
if (vrb2 == 1) {
if (obj.pt_frame >= 25) {
obj.pt_frame = 1;
} else {
obj.pt_frame++;
}
}
if (obj._currentframe == vrb) {
obj.gotoAndStop(1);
} else {
obj.gotoAndPlay(obj.pt_frame);
}
}
function game_slomo(obj, enemy) {
if (_root.slowMoAtk == 1) {
if (desuClockTimer >= 500) {
delete sloClock;
delete desuClockTimer;
game_speed = 1;
}
if (sloClock == 1) {
_root.lightbg.gotoAndStop(6);
game_speed = 2;
desuClockTimer++;
}
if ((player_health > (stats_health * 0.4)) && (sloClock == null)) {
game_speed = 1;
_root.lightbg.gotoAndStop(2);
} else if (player_health < (stats_health * 0.1)) {
game_speed = 3;
if (rewind == null) {
_root.lightbg.gotoAndStop(4);
}
} else if ((player_health < (stats_health * 0.4)) && (sloClock == null)) {
game_speed = 2;
if (rewind == null) {
_root.lightbg.gotoAndStop(3);
}
}
if (player_health <= 1) {
game_speed = 1;
}
if (game_speed == 1) {
if (gs_switch == null) {
obj.down.play();
obj.downdiag.play();
obj.side.play();
obj.updiag.play();
obj.up.play();
obj.downa.play();
obj.downdiaga.play();
obj.sidea.play();
obj.updiaga.play();
obj.upa.play();
enemy.down.play();
enemy.downdiag.play();
enemy.side.play();
enemy.updiag.play();
enemy.up.play();
enemy.downa.play();
enemy.downdiaga.play();
enemy.sidea.play();
enemy.updiaga.play();
enemy.upa.play();
var ptmc = 1;
while (ptmc < 12) {
_root["nme_hitpoints" + ptmc].play();
_root["player_hitpoints" + ptmc].play();
_root["plyr_dam_mc" + ptmc].play();
_root["damage_end_pl" + ptmc].play();
_root["damage_end" + ptmc].play();
_root["overkill_anim" + ptmc].play();
_root["splat" + ptmc].play();
_root["zerk" + ptmc].play();
_root["desp" + ptmc].play();
_root.atkspells.atk.ptmc.play();
_root["effect" + ptmc].play();
ptmc++;
}
}
gs_switch = 1;
delete p_frame;
}
if ((game_speed == 2) || (game_speed == 3)) {
delete gs_switch;
if (enemy.slomoTimer >= (5 * game_speed)) {
enemy.down.gotoAndStop(frame);
enemy.downdiag.gotoAndStop(frame);
enemy.side.gotoAndStop(frame);
enemy.updiag.gotoAndStop(frame);
enemy.up.gotoAndStop(frame);
enemy.downa.gotoAndStop(frame);
enemy.downdiaga.gotoAndStop(frame);
enemy.sidea.gotoAndStop(frame);
enemy.updiaga.gotoAndStop(frame);
enemy.upa.gotoAndStop(frame);
if (frame >= 11) {
frame = 1;
} else {
frame++;
}
delete enemy.slomoTimer;
} else {
enemy.down.stop();
enemy.downdiag.stop();
enemy.side.stop();
enemy.updiag.stop();
enemy.up.stop();
enemy.downa.stop();
enemy.downdiaga.stop();
enemy.sidea.stop();
enemy.updiaga.stop();
enemy.upa.stop();
enemy.slomoTimer++;
}
if (particle_slomoTimer >= (12 * game_speed)) {
var ptmc = 1;
while (ptmc < 12) {
slomo_cf(_root["nme_hitpoints" + ptmc], 25, 1);
slomo_cf(_root["player_hitpoints" + ptmc], 25, 1);
slomo_cf(_root["plyr_dam_mc" + ptmc], 25, 1);
slomo_cf(_root["damage_end_pl" + ptmc], 25, 1);
slomo_cf(_root["damage_end" + ptmc], 25, 1);
slomo_cf(_root["overkill_anim" + ptmc], 25, 1);
slomo_cf(_root["splat" + ptmc], 25, 1);
slomo_cf(_root["zerk" + ptmc], 25, 1);
slomo_cf(_root["desp" + ptmc], 25, 1);
slomo_cf(_root.atkspells.atk.ptmc, 25, 1);
slomo_cf(_root["effect" + ptmc], 25, 1);
ptmc++;
}
delete particle_slomoTimer;
} else {
var ptmc = 1;
while (ptmc < 12) {
_root["nme_hitpoints" + ptmc].stop();
_root["player_hitpoints" + ptmc].stop();
_root["plyr_dam_mc" + ptmc].stop();
_root["damage_end_pl" + ptmc].stop();
_root["damage_end" + ptmc].stop();
_root["overkill_anim" + ptmc].stop();
_root["splat" + ptmc].stop();
_root["zerk" + ptmc].stop();
_root["desp" + ptmc].stop();
_root.atkspells.atk + ptmc.stop();
_root["effect" + ptmc].stop();
ptmc++;
}
particle_slomoTimer++;
}
if (player_slomoTimer >= (12 * game_speed)) {
obj.down.gotoAndStop(p_frame);
obj.downdiag.gotoAndStop(p_frame);
obj.side.gotoAndStop(p_frame);
obj.updiag.gotoAndStop(p_frame);
obj.up.gotoAndStop(p_frame);
obj.downa.gotoAndStop(p_frame);
obj.downdiaga.gotoAndStop(p_frame);
obj.sidea.gotoAndStop(p_frame);
obj.updiaga.gotoAndStop(p_frame);
obj.upa.gotoAndStop(p_frame);
if (p_frame >= 11) {
p_frame = 1;
} else {
p_frame++;
}
delete player_slomoTimer;
} else {
obj.down.stop();
obj.downdiag.stop();
obj.side.stop();
obj.updiag.stop();
obj.up.stop();
obj.downa.stop();
obj.downdiaga.stop();
obj.sidea.stop();
obj.updiaga.stop();
obj.upa.stop();
player_slomoTimer++;
}
}
} else if (player_health > (stats_health * 0.4)) {
_root.lightbg.gotoAndStop(2);
} else if (player_health < (stats_health * 0.1)) {
if (rewind == null) {
_root.lightbg.gotoAndStop(4);
}
} else if (player_health < (stats_health * 0.4)) {
if (rewind == null) {
_root.lightbg.gotoAndStop(3);
}
} else {
_root.lightbg.gotoAndStop(6);
desuClockTimer++;
}
}
function game_dun_lighting() {
if ((((_root.player_health >= 1) && (_root.whiteScreen_effect == null)) || (_root.floorLower == 1)) || (_root.floorHigher == 1)) {
_root.light._x = _root.char1._x;
_root.light._y = _root.char1._y - 20;
_root.lightbg._x = _root.char1._x;
_root.lightbg._y = _root.char1._y - 20;
} else {
_root.light._x = -9999;
_root.lightbg._x = -9999;
}
}
function spell_effects(map, c1, c2, c3, c4, c6, c7, c8, c9) {
if (guioption == null) {
guioption = 4;
}
if (_root[atkSpawn] == _root.mon9) {
} else {
regcolor = new Color(_root[atkSpawn]);
reg_altcol = new Object();
reg_altcol = {ra:"100", rb:NewVrb3, ga:"100", gb:NewVrb2, ba:"100", bb:NewVrb3, aa:"100", ab:"0"};
regcolor.setTransform(reg_altcol);
}
NmeAttack = {ra:"100", rb:110, ga:"100", gb:0, ba:"100", bb:0, aa:"100", ab:"0"};
colorGui = new Color(_root.game_hud1);
colorGui2 = new Color(_root.mvpchest1);
colorGui3 = new Color(_root["npc_window_" + windowNum]);
colorGui4 = new Color(_root.mousetipmc);
colorGui5 = new Color(_root.mc_cs_select.mc_select.selection.selectHud);
colorGui6 = new Color(_root.cs_char_sel1.cs.cs_char_sel.house);
colorGui7 = new Color(_root.mousetarget);
colorGui8 = new Color(_root.landmouse);
if (_root.m_click_attack == 1) {
colorGui7.setTransform(NmeAttack);
colorGui8.setTransform(NmeAttack);
}
if ((guioption == 1) && (_root.m_click_attack == null)) {
colorGui.setTransform(Koguryo);
colorGui2.setTransform(Koguryo);
colorGui3.setTransform(Koguryo);
colorGui4.setTransform(Koguryo);
colorGui5.setTransform(Koguryo);
colorGui6.setTransform(Koguryo);
colorGui7.setTransform(Koguryo);
colorGui8.setTransform(Koguryo);
_root.guiColorName = "Koguryo";
}
if ((guioption == 2) && (_root.m_click_attack == null)) {
colorGui.setTransform(Buya);
colorGui2.setTransform(Buya);
colorGui3.setTransform(Buya);
colorGui4.setTransform(Buya);
colorGui5.setTransform(Buya);
colorGui6.setTransform(Buya);
colorGui7.setTransform(Buya);
colorGui8.setTransform(Buya);
_root.guiColorName = "Buya";
}
if ((guioption == 3) && (_root.m_click_attack == null)) {
colorGui.setTransform(Nagnang);
colorGui2.setTransform(Nagnang);
colorGui3.setTransform(Nagnang);
colorGui4.setTransform(Nagnang);
colorGui5.setTransform(Nagnang);
colorGui6.setTransform(Nagnang);
colorGui7.setTransform(Nagnang);
colorGui8.setTransform(Nagnang);
_root.guiColorName = "Nagnang";
}
if ((guioption == 4) && (_root.m_click_attack == null)) {
colorGui.setTransform(Default);
colorGui2.setTransform(Default);
colorGui3.setTransform(Default);
colorGui4.setTransform(Default);
colorGui5.setTransform(Default);
colorGui6.setTransform(Default);
colorGui7.setTransform(Default);
colorGui8.setTransform(Default);
_root.guiColorName = "Neutral";
}
door_col = {ra:"0", rb:0, ga:"0", gb:"0", ba:"0", bb:"0", aa:"15", ab:"0"};
Koguryo = {ra:"100", rb:0, ga:"100", gb:78, ba:"100", bb:102, aa:"95", ab:"0"};
Buya = {ra:"100", rb:90, ga:"100", gb:90, ba:"100", bb:0, aa:"95", ab:"0"};
Nagnang = {ra:"100", rb:106, ga:"100", gb:0, ba:"100", bb:110, aa:"95", ab:"0"};
Default = {ra:"100", rb:0, ga:"100", gb:0, ba:"100", bb:0, aa:"100", ab:"0"};
NewVrb = (colvrb + 5) + stgvrb;
NewVrb2 = ((colvrb + 5) + stgvrb) + ((-_root.floor) * 5);
NewVrb3 = ((colvrb + 5) + stgvrb) + (_root.floor * 5);
stgvrb = _root.floor * 0.5;
lighteffect = new Color(_root.light);
pooleffect = new Color(_root.pool);
playerst = new Color(_root.char1);
enemyc_reset1 = new Color(_root["enemy" + monSpawn]);
enemyc_reset2 = new Color(_root["enemy" + monSpawn]);
enemyc_reset3 = new Color(_root["enemy" + monSpawn]);
enemyc_reset4 = new Color(_root["enemy" + monSpawn]);
loadScreenEffect = new Color(_root.loadFSScreen);
enemyc_door = new Color(_root[atkSpawn]);
enemyc_atkColor = new Color(_root[atkSpawn]);
playerc_atkColor = new Color(_root[playerName]);
enemyspellColor = new Color(_root["enemy" + order]);
spellmapColor = new Color(map);
spellmapColor1 = new Color(c1);
spellmapColor2 = new Color(c2);
spellmapColor3 = new Color(c3);
spellmapColor4 = new Color(c4);
spellmapColor6 = new Color(c6);
spellmapColor7 = new Color(c7);
spellmapColor8 = new Color(c8);
spellmapColor9 = new Color(c9);
bombEffectColor = new Color(_root["effect" + bombset]);
bombTransform = {ra:"-100", rb:bombVrb, ga:"-100", gb:bombVrb, ba:"-100", bb:bombVrb, aa:"100", ab:"0"};
whiteTransform = {ra:"100", rb:whiteVrb, ga:"100", gb:whiteVrb, ba:"100", bb:whiteVrb, aa:"100", ab:"0"};
effectTransform = {ra:"100", rb:NewVrb3, ga:"100", gb:NewVrb2, ba:"100", bb:NewVrb3, aa:"100", ab:"0"};
effectTransform2 = {ra:"100", rb:colvrc, ga:"100", gb:colvrc, ba:"100", bb:colvrc, aa:"100", ab:"0"};
effectTransform3 = {ra:"100", rb:NewVrb3, ga:"100", gb:NewVrb2, ba:"100", bb:NewVrb3, aa:"100", ab:"0"};
effectTransform4 = {ra:"100", rb:0, ga:"100", gb:0, ba:"100", bb:0, aa:"100", ab:"0"};
effectTransform5 = {ra:colvratk, rb:colvratk, ga:colvratk2, gb:colvratk, ba:colvratk2, bb:colvratk, aa:"100", ab:"0"};
effectTransform6 = {ra:plycol, rb:plycol, ga:plycol, gb:plycol, ba:plycol, bb:plycol, aa:"100", ab:"0"};
if (bombEffect == 1) {
spellmapColor.setTransform(bombTransform);
spellmapColor1.setTransform(bombTransform);
spellmapColor2.setTransform(bombTransform);
spellmapColor3.setTransform(bombTransform);
spellmapColor4.setTransform(bombTransform);
spellmapColor6.setTransform(bombTransform);
spellmapColor7.setTransform(bombTransform);
spellmapColor8.setTransform(bombTransform);
spellmapColor9.setTransform(bombTransform);
loadScreenEffect.setTransform(bombTransform);
playerst.setTransform(bombTransform);
enemyspellColor.setTransform(bombTransform);
bombEffectColor.setTransform(bombTransform);
} else if (whiteScreen_effect == 1) {
spellmapColor.setTransform(whiteTransform);
spellmapColor1.setTransform(whiteTransform);
spellmapColor2.setTransform(whiteTransform);
spellmapColor3.setTransform(whiteTransform);
spellmapColor4.setTransform(whiteTransform);
spellmapColor6.setTransform(whiteTransform);
spellmapColor7.setTransform(whiteTransform);
spellmapColor8.setTransform(whiteTransform);
spellmapColor9.setTransform(whiteTransform);
loadScreenEffect.setTransform(whiteTransform);
playerst.setTransform(whiteTransform);
enemyspellColor.setTransform(whiteTransform);
} else {
spellmapColor.setTransform(effectTransform);
spellmapColor1.setTransform(effectTransform);
spellmapColor2.setTransform(effectTransform);
spellmapColor3.setTransform(effectTransform);
spellmapColor4.setTransform(effectTransform);
spellmapColor6.setTransform(effectTransform);
spellmapColor7.setTransform(effectTransform);
spellmapColor8.setTransform(effectTransform);
spellmapColor9.setTransform(effectTransform);
loadScreenEffect.setTransform(effectTransform);
}
if (playerHit == 1) {
if (plyHitTimerst == 1) {
playerc_atkColor.setTransform(effectTransform6);
if (plycol == null) {
plycol = 255;
}
}
if (plyHitTimerst >= 2) {
playerc_atkColor.setTransform(effectTransform6);
delete plyHitTimerst;
} else {
plyHitTimerst++;
if (plycol >= 100) {
plycol = plycol - 25;
}
}
if (playerHiteffect >= 10) {
playerc_atkColor.setTransform(effectTransform4);
delete plyHitTimerst;
delete playerHit;
delete playerHiteffect;
delete plycol;
} else {
playerHiteffect++;
}
}
if (nmeHit == 1) {
if (nmeHitTimerst == 1) {
if (graphatk == null) {
if (graphcombo >= 3) {
graphcombo = 1;
} else {
graphcombo++;
}
if (graphcombo == 3) {
pointsnum++;
_root.atkspell.duplicateMovieClip("atkspells" + pointsnum, 610 + pointsnum);
if (_root[atkSpawn]._x == null) {
} else if (_root["atkspells" + pointsnum].lx == null) {
_root["atkspells" + pointsnum]._x = _root[atkSpawn]._x;
_root["atkspells" + pointsnum]._y = _root[atkSpawn]._y - 20;
_root.sound1.gotoAndStop(8);
_root["atkspells" + pointsnum].gotoAndStop(3);
_root["atkspells" + pointsnum].lx = 1;
}
}
if (graphcombo == 2) {
pointsnum++;
_root.atkspell.duplicateMovieClip("atkspells" + pointsnum, 610 + pointsnum);
if (_root[atkSpawn]._x == null) {
} else if (_root["atkspells" + pointsnum].lx == null) {
_root["atkspells" + pointsnum]._x = _root[atkSpawn]._x;
_root["atkspells" + pointsnum]._y = _root[atkSpawn]._y - 20;
_root.sound1.gotoAndStop(7);
_root["atkspells" + pointsnum].gotoAndStop(2);
_root["atkspells" + pointsnum].lx = 1;
}
}
if (graphcombo == 1) {
pointsnum++;
_root.atkspell.duplicateMovieClip("atkspells" + pointsnum, 610 + pointsnum);
if (_root[atkSpawn]._x == null) {
} else if (_root["atkspells" + pointsnum].lx == null) {
_root["atkspells" + pointsnum]._x = _root[atkSpawn]._x;
_root["atkspells" + pointsnum]._y = _root[atkSpawn]._y - 20;
_root.sound1.gotoAndStop(6);
_root["atkspells" + pointsnum].gotoAndStop(1);
_root["atkspells" + pointsnum].lx = 1;
}
}
graphatk = 1;
}
enemyc_atkColor.setTransform(effectTransform5);
colvratk = 255;
colvratk2 = 255;
_root[atkSpawn]._x = _root[atkSpawn]._x + 5;
_root[atkSpawn]._xscale = 120;
_root[atkSpawn]._yscale = 120;
}
if (nmeHitTimerst >= 2) {
enemyc_atkColor.setTransform(effectTransform5);
colvratk = 100;
colvratk2 = 100;
_root[atkSpawn]._x = _root[atkSpawn]._x - 5;
_root[atkSpawn]._xscale = 100;
_root[atkSpawn]._yscale = 100;
delete nmeHitTimerst;
} else {
nmeHitTimerst++;
}
if (nmeHiteffect >= (10 - (level / 10))) {
_root[atkSpawn]._xscale = 100;
_root[atkSpawn]._yscale = 100;
delete nmeHit;
delete nmeHiteffect;
delete graphatk;
} else {
nmeHiteffect++;
}
}
if (Key.isDown(82)) {
bombEffect = 1;
chat("bombEffect", 30, 5);
}
if (bombEffect == 1) {
if (bombVrb >= 255) {
bombVrb = 0;
delete bombEffect;
}
if (bombVrb < 255) {
bombVrb = bombVrb + 64;
} else {
delete bombEffect;
bombVrb = 100;
}
}
if (whiteScreen_effect == 1) {
if (whiteVrb >= 255) {
if (floorComSound == null) {
stopAllSounds();
duplicateMovieClip (_root.floorComplete_, "floorComplete_1", 12100);
_root.floorComplete_1.gotoAndPlay(2);
_root.floorComplete_1._x = 240;
_root.floorComplete_1._y = 120;
floorComSound = 1;
whiteVrb = 100;
delete whiteScreen_effect;
}
}
if (whiteVrb < 255) {
whiteVrb = whiteVrb + 32;
} else {
delete whiteScreen_effect;
whiteVrb = 100;
delete floorComSound;
}
}
if (effectst == null) {
delete effectend;
if (colvrb < -75) {
effectst = 1;
} else {
if (stgm == null) {
playerst.setTransform(effectTransform);
pooleffect.setTransform(effectTransform);
lighteffect.setTransform(effectTransform);
} else if (_root.pool.hitTest(_root["zap" + itemuse]._x, _root["zap" + itemuse]._y + 25, true)) {
pooleffect.setTransform(effectTransform2);
lighteffect.setTransform(effectTransform2);
} else {
pooleffect.setTransform(effectTransform);
lighteffect.setTransform(effectTransform);
}
enemyspellColor.setTransform(effectTransform2);
colvrb = colvrb - 5;
colvrc = colvrc + 150;
colset++;
if (colset >= 2) {
colvrc = 100;
colset = 0;
}
}
}
if (effectst == 1) {
if (effectend == null) {
playerst.setTransform(effectTransform4);
pooleffect.setTransform(effectTransform3);
lighteffect.setTransform(effectTransform3);
enemyc_reset1.setTransform(effectTransform3);
enemyc_reset2.setTransform(effectTransform3);
enemyc_reset3.setTransform(effectTransform3);
enemyc_reset4.setTransform(effectTransform3);
effectend = 1;
}
if (colvrb > -10) {
if (stgm == null) {
playerst.setTransform(effectTransform4);
stgm = 1;
}
spellmapColor.setTransform(effectTransform3);
} else {
colvrb = colvrb + 5;
colvrc = 100;
}
}
}
function zoomIn() {
if (zi_input == null) {
delete zoom;
delete zoomin;
_root._x = -238;
_root._y = 0;
_root._xscale = 200;
_root._yscale = 200;
zi_input = 1;
}
}
function zoomOut(obj) {
if (z_input == null) {
delete zoom;
delete zoomin;
obj._x = -238;
obj._y = 0;
obj._xscale = 200;
obj._yscale = 200;
z_input = 1;
}
}
function zoomInOut(obj) {
if (z_step == null) {
z_step = 1;
}
if (bossIntro == 1) {
if (zx_input == null) {
_root.game_hud1._visible = false;
delete zoomO;
zoomI = 1;
zx_input = 1;
z_step = 2;
}
} else if (z_step == 2) {
_root.game_hud1._visible = true;
delete zoomI;
zoomO = 1;
delete zx_input;
delete z_step;
}
if (zoomI == 1) {
if (zoom >= 23) {
delete zoomI;
delete zoom;
}
if (zoom < 23) {
delete z_input;
obj._x = obj._x - (1.9995 * zoom);
obj._y = obj._y - (0.774 * zoom);
obj._xscale = obj._xscale + (0.833 * zoom);
obj._yscale = obj._yscale + (0.833 * zoom);
zoom = zoom + 2.5;
}
}
if (zoomO == 1) {
if (zoom >= 23) {
delete zoomO;
delete zoom;
}
if (zoom < 23) {
delete z_input;
obj._x = obj._x - (1.9995 * (-zoom));
obj._y = obj._y - (0.774 * (-zoom));
obj._xscale = obj._xscale + (0.833 * (-zoom));
obj._yscale = obj._yscale + (0.833 * (-zoom));
zoom = zoom + 2.5;
}
}
}
function gameover_screen() {
if (zx_input == 1) {
z_step = 2;
}
_root.light._x = -9999;
_root.lightbg._x = -9999;
if (Key.isDown(75)) {
player_health = player_health - 1000;
}
_root.go_screen1._x = 120;
_root.go_screen1._y = 0;
_root.go_screen1._xscale = 100;
_root.go_screen1._yscale = 100;
}
function mouseAtkLock() {
delete value1x;
delete value2x;
delete value1y;
delete value2y;
delete m_command;
delete mouseD;
}
function mouseReset() {
delete value1x;
delete value2x;
delete value1y;
delete value2y;
delete m_command;
delete m_attack;
delete mouseD;
if (_root.char1._currentframe > 5) {
_root.char1.gotoAndStop(_root.char1._currentframe - 5);
_root.char1.gotoAndStop(_root.char1._currentframe + 5);
} else {
_root.char1.gotoAndStop(_root.char1._currentframe + 5);
}
}
function spellMacroI() {
if (player_mana > cost) {
spellUseEngine(7);
}
}
function spellMacroII() {
if (player_mana > cost) {
spellUseEngine(6);
}
}
function keyboardSpecial() {
if (dk_Timer == 0) {
delete dk_Timer;
delete doubleKeyboard;
}
if (dk_Timer < 1) {
} else if (dk_Timer == null) {
} else {
dk_Timer = dk_Timer - 10;
}
if (Key.isDown(32)) {
trace(doubleKeyboard);
if ((doubleKeyboard == 1) && (dk_Timer == null)) {
dk_Timer = 50;
}
if (sk_input2 == null) {
delete spellCastrem;
doubleKeyboard++;
sk_input2 = 1;
}
} else {
delete sk_input2;
}
if (Key.isDown(65)) {
trace(doubleKeyboard);
if ((doubleKeyboard == 1) && (dk_Timer == null)) {
dk_Timer = 50;
}
if (sk_input == null) {
delete spellCastrem;
doubleKeyboard++;
sk_input = 1;
}
} else {
delete sk_input;
}
var k_scan = 0;
while (k_scan < 10) {
if (_root["mon" + k_scan].hitTest(_root.char1.hb) && (player_mana > zcost)) {
if (doubleKeyboard >= 2) {
spellMacroII();
delete doubleKeyboard;
delete doubleClickAtkTimer;
delete doubleClickAtk;
} else if (doubleKeyboard >= 1) {
if (spellCastrem == null) {
spellMacroI();
spellCastrem = 1;
}
}
order = k_scan;
}
k_scan++;
}
if (doubleKeyboard >= 1) {
if ((spellArray[7] == 57) || (spellArray[7] == 58)) {
} else {
if (spellCastrem == null) {
spellMacroI();
spellCastrem = 1;
}
delete doubleClickAtkTimer;
delete doubleClickAtk;
}
}
if (doubleKeyboard >= 2) {
if ((spellArray[6] == 57) || (spellArray[6] == 58)) {
} else {
spellMacroII();
delete doubleKeyboard;
delete doubleClickAtkTimer;
delete doubleClickAtk;
}
}
}
function mouseMoveClear() {
delete value1x;
delete value2x;
delete value1y;
delete value2y;
if (player._currentframe <= (5 + armor_anim)) {
player.gotoAndStop(player._currentframe + 5);
}
}
function singleClickUse() {
if ((spellArray[7] == 57) || (spellArray[7] == 58)) {
} else if (doubleClickAtk >= 1) {
if (singleUse == null) {
spellMacroI();
singleUse = 1;
}
}
}
function doubleClickUse() {
if ((spellArray[6] == 57) || (spellArray[6] == 58)) {
} else if (doubleClickAtk >= 2) {
spellMacroII();
mouseReset();
delete doubleClickAtkTimer;
delete doubleClickAtk;
}
}
function mouseControl(player, spd, atk) {
if ((_root.char1._currentframe > (10 + armor_anim)) && (_root.char1.end == 1)) {
if (m_atkLock == 1) {
mouseAtkLock();
}
}
if (mouseCoolDown < 1) {
delete mouseCoolDown;
} else if (mouseCoolDown == null) {
} else {
mouseCoolDown = mouseCoolDown - 1;
}
if ((((Key.isDown(38) || (Key.isDown(40))) || (Key.isDown(37))) || (Key.isDown(39))) || (Key.isDown(65))) {
}
if (m_input == 1) {
delete kb_input;
}
if ((m_command == 1) && (player.hitTest(npc))) {
}
if (m_click_attack == 1) {
mousetarget._visible = true;
mousetarget._x = _root["mon" + m_enem]._x;
mousetarget._y = _root["mon" + m_enem]._y - 50;
m_atkLock = 1;
} else {
mousetarget._visible = false;
}
if (playerRetAtk == 1) {
m_scan2 = playerRetAtk;
while (m_scan2 < (enemyCount + 1)) {
if (m_ignore == null) {
autoAttackBack();
if (inputclick == null) {
inputclick = 1;
}
}
delete playerRetAtk;
m_scan2++;
}
}
if (doubleClickAtkTimer < 1) {
delete doubleClickAtkTimer;
delete doubleClickAtk;
} else {
doubleClickAtkTimer = doubleClickAtkTimer - 10;
}
if ((kb_input == null) && (m_input == 1)) {
if ((doubleClickAtk >= 1) && (doubleClickAtkTimer > 1)) {
singleClickUse();
}
if ((doubleClickAtk >= 2) && (doubleClickAtkTimer > 1)) {
doubleClickUse();
mouseReset();
delete doubleClickAtkTimer;
delete doubleClickAtk;
}
if (doubleClickInput == null) {
doubleClickInput = 1;
doubleClickAtkTimer = 50;
doubleClickAtk++;
}
}
m_scan = m_command;
while (m_scan < (enemyCount + 1)) {
if (((Math.abs(_root.char1._x - _root["mon" + m_scan]._x) < 28) && (Math.abs(_root.char1._y - _root["mon" + m_scan]._y) < 28)) && (m_command == null)) {
mouseAtkLock();
}
if ((_root["mon" + m_scan].hitTest(_root._xmouse, _root._ymouse, false) && (kb_input == null)) && (m_input == 1)) {
ignoreChest = 1;
}
if (((_root["mon" + m_scan].hitTest(_root._xmouse, _root._ymouse, true) && (kb_input == null)) && (m_input == 1)) && (_root.char1.hb.hitTest(_root["mon" + m_scan]))) {
delete ignoreChest;
if ((doubleClickAtk >= 1) && (doubleClickAtkTimer > 1)) {
if ((_root["mon" + m_scan].hitTest(player) && (spellArray[7] == 57)) || (_root["mon" + m_scan].hitTest(player) && (spellArray[7] == 58))) {
spellMacroI();
}
}
if (((doubleClickAtk >= 2) && (doubleClickAtkTimer > 1)) && (player_mana > zcost)) {
chat("findme", 30, 5);
mouseReset();
delete doubleClickAtkTimer;
delete doubleClickAtk;
if ((_root["mon" + m_scan].hitTest(player) && (spellArray[6] == 57)) || (_root["mon" + m_scan].hitTest(player) && (spellArray[6] == 58))) {
spellMacroII();
}
if (player._currentFrame >= 10) {
player.gotoAndStop(player._currentframe - 5);
player.gotoAndStop(player._currentframe + 5);
} else {
player.gotoAndStop(player._currentframe + 5);
}
order = m_scan;
}
if (inputclick == 1) {
mousetarget._x = _root["mon" + m_scan]._x;
mousetarget._y = _root["mon" + m_scan]._y - 50;
delete inputclick;
} else {
if (m_ignore == 1) {
m_click_attack = 1;
m_enem = m_scan;
m_attack = 1;
if (inputclick == null) {
mousex = _root["mon" + m_scan]._x;
mousey = _root["mon" + m_scan]._y;
mousetarget._x = _root["mon" + m_scan]._x;
mousetarget._y = _root["mon" + m_scan]._y - 50;
inputclick = 1;
}
}
if (m_ignore == null) {
m_click_attack = 1;
m_enem = m_scan;
m_attack = 1;
if (inputclick == null) {
mousex = _root["mon" + m_scan]._x;
mousey = _root["mon" + m_scan]._y;
mousetarget._x = _root["mon" + m_scan]._x;
mousetarget._y = _root["mon" + m_scan]._y - 50;
inputclick = 1;
}
}
}
}
if ((((_root["mon" + m_scan].hitTest(player) && (kb_input == null)) && (m_click_attack == 1)) && (Math.abs(player._x - _root["mon" + m_enem]._x) < 48)) && (Math.abs(player._y - _root["mon" + m_enem]._y) < 48)) {
if (inputclick == 1) {
mouseD = 1;
m_attack = 1;
}
if ((m_attack == null) && (m_ignore == null)) {
mouseD = 1;
m_attack = 1;
}
}
m_scan++;
}
if (atk_coolDown > 0) {
atk_coolDown--;
} else if (atk_coolDown < 1) {
delete atk_coolDown;
}
if (m_ignore == 1) {
delete m_attack;
} else if (m_attack == 1) {
delete m_command;
mouseMoveClear();
if (m_strike == null) {
if ((player._currentframe > (5 + armor_anim)) && (atk_coolDown == null)) {
if (player._currentframe > (10 + armor_anim)) {
player.gotoAndStop(player._currentframe - 5);
player.gotoAndStop(player._currentframe + 5);
if (s_ambush == 1) {
ambush(player);
}
atk._x = player._x;
atk._y = player._y - 20;
} else {
player.gotoAndStop(player._currentframe + 5);
if (s_ambush == 1) {
ambush(player);
}
atk._x = player._x;
atk._y = player._y - 20;
}
}
atk_coolDown = 15;
m_strike = 1;
}
if (mfstrike == null) {
mfstrike = 1;
}
if (m_timer >= stats_agi_full) {
if (player._currentframe > (5 + armor_anim)) {
if (player._currentframe > (10 + armor_anim)) {
player.gotoAndStop(player._currentframe - 5);
player.gotoAndStop(player._currentframe + 5);
if (s_ambush == 1) {
ambush(player);
}
atk._x = player._x;
atk._y = player._y - 20;
} else {
player.gotoAndStop(player._currentframe + 5);
if (s_ambush == 1) {
ambush(player);
}
atk._x = player._x;
atk._y = player._y - 20;
}
}
delete m_timer;
} else {
m_timer = m_timer + 2;
}
delete m_attack;
delete inputclick;
} else {
delete m_strike;
}
if (m_input == 1) {
if (mouseCancelClick == null) {
if (mouseCancel >= 2) {
delete _root.char1.end;
delete mouseCancel;
} else {
mouseCancel++;
}
mouseCancelClick = 1;
}
} else {
delete mouseCancelClick;
}
charRo = _root.char1.end;
if ((((((((m_command == 1) && (m_attack == null)) && (!_root.game_hud1.center.hitTest(_xmouse, _ymouse, true))) && (!_root.game_hud1.map.hitTest(_xmouse, _ymouse, true))) && (!_root.game_hud1.spell.hitTest(_xmouse, _ymouse, true))) && (!_root.game_hud1.equip.hitTest(_xmouse, _ymouse, true))) && (!_root.game_hud1.macro.hitTest(_xmouse, _ymouse, true))) && (!_root.game_hud1.spellList.hitTest(_xmouse, _ymouse, true))) {
if (mouseD == null) {
mouseD = Math.abs(mousex - player._x) + Math.abs(mousey - (player._y - 20));
}
if (player._y >= mousey) {
player._y = player._y - spd;
value2y = 0;
} else {
value2y = 1;
}
if (player._y <= mousey) {
player._y = player._y + spd;
value1y = 0;
} else {
value1y = 1;
}
if (player._x >= mousex) {
player._x = player._x - spd;
value1x = 0;
} else {
value1x = 1;
}
if (player._x <= mousex) {
player._x = player._x + spd;
value2x = 0;
} else {
value2x = 1;
}
if (player._x <= mousex) {
player._xscale = -100;
}
if (player._x >= mousex) {
player._xscale = 100;
}
}
if (mouseD < 5) {
value1x = 0;
value2x = 0;
value1y = 0;
value2y = 0;
delete mouseD;
} else {
mouseD = mouseD - 3;
}
if ((value1x == 1) || (value2x == 1)) {
if (value1y == 1) {
player.gotoAndStop(4 + armor_anim);
} else if (value2y == 1) {
player.gotoAndStop(2 + armor_anim);
} else {
player.gotoAndStop(3 + armor_anim);
}
} else if (value1y == 1) {
player.gotoAndStop(5 + armor_anim);
} else if (value2y == 1) {
player.gotoAndStop(1 + armor_anim);
} else if (m_command == 1) {
if (m_attack == null) {
mouseMoveClear();
mouseCoolDown = 50;
delete m_command;
}
}
}
function autoAttackBack() {
if (_root.autoAtk == 1) {
m_attack = 1;
}
}
function floorComplete() {
if (_root.floorListCount == null) {
_root.floorListCount = 0;
}
if (_root.floorListCount >= 1) {
if (f_complete == null) {
whiteScreen_effect = 1;
_root.floorListCount = 0;
f_complete = 1;
}
} else {
delete f_complete;
}
}
function debugMapSpawn() {
}
function mapCorrect(obj1, obj2, obj3, obj4, obj5, obj6, obj7, obj8, obj9, spd, char) {
map1x_ = char._x;
if (((((char._xscale == -100) && ((!char._currentframe) == 1)) && ((!char._currentframe) == 5)) && ((!char._currentframe) == 6)) && ((!char._currentframe) == 10)) {
restSpdx = spd;
} else if (((((!char._currentframe) == 1) && ((!char._currentframe) == 5)) && ((!char._currentframe) == 6)) && ((!char._currentframe) == 10)) {
restSpdx = -spd;
}
if ((((char._currentframe == 1) || (char._currentframe == 2)) || (char._currentframe == 6)) || (char._currentframe == 7)) {
restSpdy = spd;
} else {
restSpdy = -spd;
}
if (Key.isDown(16) && (Key.isDown(87))) {
map_gridx = (map_gridx / 1) * 1;
obj1._x = (Math.round(obj1._x / 24) * 24) + restSpdx;
obj1._y = (Math.round(obj1._y / 24) * 24) + restSpdy;
obj2._x = (Math.round(obj2._x / 24) * 24) + restSpdx;
obj2._y = (Math.round(obj2._y / 24) * 24) + restSpdy;
obj3._x = (Math.round(obj3._x / 24) * 24) + restSpdx;
obj3._y = (Math.round(obj3._y / 24) * 24) + restSpdy;
obj4._x = (Math.round(obj4._x / 24) * 24) + restSpdx;
obj4._y = (Math.round(obj4._y / 24) * 24) + restSpdy;
obj5._x = (Math.round(obj5._x / 24) * 24) + restSpdx;
obj5._y = (Math.round(obj5._y / 24) * 24) + restSpdy;
obj6._x = (Math.round(obj6._x / 24) * 24) + restSpdx;
obj6._y = (Math.round(obj6._y / 24) * 24) + restSpdy;
obj7._x = (Math.round(obj7._x / 24) * 24) + restSpdx;
obj7._y = (Math.round(obj7._y / 24) * 24) + restSpdy;
obj8._x = (Math.round(obj8._x / 24) * 24) + restSpdx;
obj8._y = (Math.round(obj8._y / 24) * 24) + restSpdy;
obj9._x = (Math.round(obj9._x / 24) * 24) + restSpdx;
obj9._y = (Math.round(obj9._y / 24) * 24) + restSpdy;
}
}
function debugFloorChange(obj) {
if (Key.isDown(76) && (_root.debugGame == 1)) {
if (mvp_input == null) {
obj._x = 240;
obj._y = 144;
map_gridx = 360;
map_gridy = 480;
mapx = 5;
mapx2 = 6;
mapx3 = 7;
mapx4 = 5;
mapx5 = 6;
mapx6 = 7;
mapx7 = 5;
mapx8 = 6;
mapx9 = 7;
mapy = 9;
mapy2 = 9;
mapy3 = 9;
mapy4 = 9;
mapy5 = 9;
mapy6 = 9;
mapy7 = 7;
mapy8 = 7;
mapy9 = 7;
_root.dunmapC00._y = 0;
_root.dunmapC01._y = 0;
_root.dunmapC02._y = 0;
_root.dunmapC10._y = 240;
_root.dunmapC11._y = 240;
_root.dunmapC12._y = 240;
_root.dunmapC20._y = -240;
_root.dunmapC21._y = -240;
_root.dunmapC22._y = -240;
_root.dunmapC00._x = -120;
_root.dunmapC01._x = 120;
_root.dunmapC02._x = 360;
_root.dunmapC10._x = -120;
_root.dunmapC11._x = 120;
_root.dunmapC12._x = 360;
_root.dunmapC20._x = -120;
_root.dunmapC21._x = 120;
_root.dunmapC22._x = 360;
mvp_input = 1;
}
}
if (((_root.floorHigher == 1) && (mapType == 1)) || (Key.isDown(219) && (_root.debugGame == 1))) {
_root.floorHAnim = 1;
_root.floor_fader.duplicateMovieClip("floor_fader1", 9090);
_root.floor_fader1._x = 120;
_root.floor_fader1._y = 0;
if (fl_input == null) {
mapType = 2;
monClear();
obj._x = 240;
obj._y = 144;
map_gridx = 180;
map_gridy = 540;
delete enemyCount;
delete eightCount;
mapx = 2;
mapx2 = 3;
mapx3 = 4;
mapx4 = 2;
mapx5 = 3;
mapx6 = 4;
mapx7 = 2;
mapx8 = 3;
mapx9 = 4;
mapy = 20;
mapy2 = 20;
mapy3 = 20;
mapy4 = 20;
mapy5 = 20;
mapy6 = 20;
mapy7 = 17;
mapy8 = 17;
mapy9 = 17;
_root.dunmapC00._y = 0;
_root.dunmapC01._y = 0;
_root.dunmapC02._y = 0;
_root.dunmapC10._y = 240;
_root.dunmapC11._y = 240;
_root.dunmapC12._y = 240;
_root.dunmapC20._y = -240;
_root.dunmapC21._y = -240;
_root.dunmapC22._y = -240;
_root.dunmapC00._x = -120;
_root.dunmapC01._x = 120;
_root.dunmapC02._x = 360;
_root.dunmapC10._x = -120;
_root.dunmapC11._x = 120;
_root.dunmapC12._x = 360;
_root.dunmapC20._x = -120;
_root.dunmapC21._x = 120;
_root.dunmapC22._x = 360;
floor = floor - 1;
_root.floorRO = "Floor " + _root.floor;
fl_input = 1;
delete floorHigher;
stopAllSounds();
_root.soundbgm1.gotoAndStop(_root.floor + 4);
}
}
if ((_root.floorHigher == 1) && (mapType == 2)) {
_root.floorHAnim = 1;
_root.floor_fader.duplicateMovieClip("floor_fader1", 9090);
_root.floor_fader1._x = 120;
_root.floor_fader1._y = 0;
_root.floorRO = "Floor " + _root.floor;
if (fl_input == null) {
mapType--;
monClear();
obj._x = 240;
obj._y = 144;
map_gridx = 360;
map_gridy = 540;
delete enemyCount;
delete eightCount;
mapx = 5;
mapx2 = 6;
mapx3 = 7;
mapx4 = 5;
mapx5 = 6;
mapx6 = 7;
mapx7 = 5;
mapx8 = 6;
mapx9 = 7;
mapy = 10;
mapy2 = 10;
mapy3 = 10;
mapy4 = 10;
mapy5 = 10;
mapy6 = 10;
mapy7 = 7;
mapy8 = 7;
mapy9 = 7;
_root.dunmapC00._y = 0;
_root.dunmapC01._y = 0;
_root.dunmapC02._y = 0;
_root.dunmapC10._y = 240;
_root.dunmapC11._y = 240;
_root.dunmapC12._y = 240;
_root.dunmapC20._y = -240;
_root.dunmapC21._y = -240;
_root.dunmapC22._y = -240;
_root.dunmapC00._x = -120;
_root.dunmapC01._x = 120;
_root.dunmapC02._x = 360;
_root.dunmapC10._x = -120;
_root.dunmapC11._x = 120;
_root.dunmapC12._x = 360;
_root.dunmapC20._x = -120;
_root.dunmapC21._x = 120;
_root.dunmapC22._x = 360;
floor = floor - 1;
_root.floorRO = "Floor " + _root.floor;
fl_input = 1;
delete floorHigher;
stopAllSounds();
_root.soundbgm1.gotoAndStop(_root.floor + 4);
}
}
if ((_root.floorLower == 1) && (mapType == 2)) {
_root.floorLAnim = 1;
_root.floor_fader.duplicateMovieClip("floor_fader1", 9090);
_root.floor_fader1._x = 120;
_root.floor_fader1._y = 0;
if (fl_input == null) {
mapType--;
monClear();
map_gridx = 0;
map_gridy = 0;
x_value = 4;
delete enemyCount;
delete eightCount;
_root.dunmapC00._y = 0;
_root.dunmapC01._y = 0;
_root.dunmapC02._y = 0;
_root.dunmapC10._y = 240;
_root.dunmapC11._y = 240;
_root.dunmapC12._y = 240;
_root.dunmapC20._y = 480;
_root.dunmapC21._y = 480;
_root.dunmapC22._y = 480;
_root.dunmapC00._x = -120;
_root.dunmapC01._x = 120;
_root.dunmapC02._x = 360;
_root.dunmapC10._x = -120;
_root.dunmapC11._x = 120;
_root.dunmapC12._x = 360;
_root.dunmapC20._x = -120;
_root.dunmapC21._x = 120;
_root.dunmapC22._x = 360;
obj._x = 240;
obj._y = 72;
mapx = -1;
mapx2 = 0;
mapx3 = 1;
mapx4 = -1;
mapx5 = 0;
mapx6 = 1;
mapx7 = -1;
mapx8 = 0;
mapx9 = 1;
y_value = 8;
mapy = 1;
mapy2 = 1;
mapy3 = 1;
mapy4 = 1;
mapy5 = 1;
mapy6 = 1;
mapy7 = 1;
mapy8 = 1;
mapy9 = 1;
floor = floor + 1;
_root.floorRO = "Floor " + _root.floor;
delete floorLower;
stopAllSounds();
_root.soundbgm1.gotoAndStop(_root.floor + 4);
fl_input = 1;
}
} else {
delete fl_input;
}
if ((_root.floorLower == 1) && (mapType == 1)) {
_root.floorLAnim = 1;
_root.floor_fader.duplicateMovieClip("floor_fader1", 9090);
_root.floor_fader1._x = 120;
_root.floor_fader1._y = 0;
if (fl_input == null) {
mapType++;
monClear();
map_gridx = 180;
map_gridy = 0;
x_value = 4;
delete enemyCount;
delete eightCount;
_root.dunmapC00._y = 0;
_root.dunmapC01._y = 0;
_root.dunmapC02._y = 0;
_root.dunmapC10._y = 240;
_root.dunmapC11._y = 240;
_root.dunmapC12._y = 240;
_root.dunmapC20._y = 480;
_root.dunmapC21._y = 480;
_root.dunmapC22._y = 480;
_root.dunmapC00._x = -120;
_root.dunmapC01._x = 120;
_root.dunmapC02._x = 360;
_root.dunmapC10._x = -120;
_root.dunmapC11._x = 120;
_root.dunmapC12._x = 360;
_root.dunmapC20._x = -120;
_root.dunmapC21._x = 120;
_root.dunmapC22._x = 360;
obj._x = 240;
obj._y = 72;
mapx = 2;
mapx2 = 3;
mapx3 = 4;
mapx4 = 2;
mapx5 = 3;
mapx6 = 4;
mapx7 = 2;
mapx8 = 3;
mapx9 = 4;
y_value = 8;
mapy = 11;
mapy2 = 11;
mapy3 = 11;
mapy4 = 11;
mapy5 = 11;
mapy6 = 11;
mapy7 = 11;
mapy8 = 11;
mapy9 = 11;
floor = floor + 1;
_root.floorRO = "Floor " + _root.floor;
delete floorLower;
stopAllSounds();
_root.soundbgm1.gotoAndStop(_root.floor + 4);
fl_input = 1;
}
} else {
delete fl_input;
}
if (Key.isDown(76) || (_root.floorLower == 1)) {
}
}
function debug_MonsterSpawn() {
if (monMulti == null) {
monAnimVar = new Array();
monAnimArray = new Array();
monMulti = 1;
}
if (monType == null) {
monType = 1;
}
if (enemyCount < debugSpawn) {
enemyCount = debugSpawn;
}
if (Key.isDown(55)) {
if (debug_a == 1) {
} else {
if (debugSpawn < enemyCount) {
}
if (debugSpawn >= 8) {
debugSpawn = 1;
} else {
debugSpawn++;
}
if (loopx >= 3) {
loopy++;
loopx = 1;
} else {
loopx++;
}
var enemyDraw = 1;
while (enemyDraw < (debugSpawn + 1)) {
var monanimfiller = 1;
while (monanimfiller < (debugSpawn + 1)) {
monAnimVar[monanimfiller] = 6;
monAnimArray[debugSpawn] = Math.ceil(Math.random() * monAnimVar[monanimfiller]) * 20;
monanimfiller++;
}
if (_root["mon" + debugSpawn]._x == null) {
_root.purge_effect_mc.duplicateMovieClip("purge" + debugSpawn, 325 + debugSpawn);
_root["purge" + debugSpawn]._x = _root.floormouse._x + 15;
_root["purge" + debugSpawn]._y = _root.floormouse._y - 15;
_root.sounditem1.gotoAndStop(4);
debugt = _root.mon1.move;
if (deSpawn_x[debugSpawn] == null) {
_root.enemy.duplicateMovieClip("mon" + debugSpawn, (layer14 + debugSpawn) + 50);
_root["mon" + debugSpawn]._y = _root.floormouse._y + 12;
_root["mon" + debugSpawn]._x = _root.floormouse._x + 12;
_root["mon" + debugSpawn].move = 11;
_root["mon" + debugSpawn].gotoAndStop(monAnimArray[enemyDraw] + 1);
}
}
enemyDraw++;
}
debug_a = 1;
}
} else {
delete debug_a;
}
}
function debug_ambush(obj) {
ambleap = 24;
if (h_input == 1) {
if (ambNme_scan._x == null) {
} else {
if (((obj._currentframe == (2 + armor_anim)) || (obj._currentframe == (7 + armor_anim))) || (obj._currentframe == (12 + armor_anim))) {
obj._y = ambNme_scan._y + ambleap;
if (obj._xscale == 100) {
obj._x = ambNme_scan._x - ambleap;
obj._xscale = -100;
} else if (obj._xscale == -100) {
obj._x = ambNme_scan._x + ambleap;
obj._xscale = 100;
}
obj.gotoAndStop(obj._currentframe + 2);
_root.sounditem1.gotoAndStop(4);
} else if (((obj._currentframe == (4 + armor_anim)) || (obj._currentframe == (9 + armor_anim))) || (obj._currentframe == (14 + armor_anim))) {
obj._y = ambNme_scan._y - ambleap;
if (obj._xscale == 100) {
obj._x = ambNme_scan._x - ambleap;
obj._xscale = -100;
} else if (obj._xscale == -100) {
obj._x = ambNme_scan._x + ambleap;
obj._xscale = 100;
}
obj.gotoAndStop(obj._currentframe - 2);
_root.sounditem1.gotoAndStop(4);
}
if (((obj._currentframe == (1 + armor_anim)) || (obj._currentframe == (6 + armor_anim))) || (obj._currentframe == (11 + armor_anim))) {
obj._y = ambNme_scan._y + ambleap;
obj.gotoAndStop(obj._currentframe + 4);
_root.sounditem1.gotoAndStop(4);
} else if (((obj._currentframe == (5 + armor_anim)) || (obj._currentframe == (10 + armor_anim))) || (obj._currentframe == (15 + armor_anim))) {
obj._y = ambNme_scan._y - ambleap;
obj.gotoAndStop(obj._currentframe - 4);
_root.sounditem1.gotoAndStop(4);
}
if (((obj._currentframe == (3 + armor_anim)) || (obj._currentframe == (8 + armor_anim))) || (obj._currentframe == (13 + armor_anim))) {
if (obj._xscale == -100) {
obj._x = ambNme_scan._x + ambleap;
if (obj._xscale == 100) {
obj._xscale = -100;
} else {
obj._xscale = 100;
_root.sounditem1.gotoAndStop(4);
}
} else {
obj._x = ambNme_scan._x - ambleap;
if (obj._xscale == 100) {
obj._xscale = -100;
} else {
obj._xscale = 100;
_root.sounditem1.gotoAndStop(4);
}
}
}
ambushshadx = ambushmemx;
ambushshady = ambushmemy;
c_ambush = 1;
}
}
}
function debugArmor() {
mapCorrect(_root.dunmapC00, _root.dunmapC01, _root.dunmapC02, _root.dunmapC10, _root.dunmapC11, _root.dunmapC12, _root.dunmapC20, _root.dunmapC21, _root.dunmapC22, movementspd, _root.char1);
debugMapLock(_root.char1, _root.movementspd);
mvp_function();
debugFloorChange(_root.char1);
timeTrial();
if (debugGame == 1) {
monDis();
}
if (Key.isDown(16) && (Key.isDown(81))) {
debugGame = 1;
}
if (player_health < 1) {
} else {
sound_bgm();
}
if (_root.debugGame == 1) {
_root.readout = "floorListCount:" + _root.floorListCount;
}
if (Key.isDown(16) && (Key.isDown(87))) {
if (correctMap == null) {
correctMap = 1;
}
} else {
delete correctMap;
}
_root.plHpDis;
_root.readout1 = (("mapx:" + mapx) + "mapy:") + mapy;
_root.readout2 = (("mapx2:" + mapx2) + "mapy2:") + mapy2;
_root.readout3 = (("mapx3:" + mapx3) + "mapy3:") + mapy3;
_root.readout3 = (("mapx3:" + mapx3) + "mapy3:") + mapy3;
_root.readout4 = ((((("player_x:" + distx) + "disty:") + char._y) + "enemyxy:") + _root.mon1._x) + _root.mon1._y;
_root.readout7 = ((((((((((((((((((((((((((((((((((((((((crowd + "enemyCount:") + enemyCount) + "dots:") + dots) + "deSpawn_x[1] ") + Math.abs(deSpawn_x[1] - _root.char1._x)) + "despawn_w:") + deSpawn_switch[2]) + "<br>") + "enemyCount") + enemyCount) + " spawnfill:") + spawnfill) + "despawn_x:") + deSpawn_x[spawnfill]) + "<br>") + "pointsnum:") + pointsnum) + "enemy1health:") + _root.mon1.health) + "<br>") + "enemyDestroyed: ") + enemyDestroyed) + "enemyCount") + enemyCount) + "map:") + mapNumber) + "<br>") + "playerHealth") + player_health) + "/") + stats_health) + "<br>") + "dirx:") + dirx) + "diry:") + diry) + "formation") + formation) + "s_ambush") + s_ambush;
debugx = ((current * ((mapReaderx + "") + mapReadery)) + ":") + (mapReaderx + mapReadery);
if (Key.isDown(87)) {
if (k_input == 1) {
} else {
if (armor_anim >= 100) {
armor_anim = 0;
} else {
armor_anim = armor_anim + 20;
_root.char1.gotoAndStop(_root.char1._currentframe + armor_anim);
}
k_input = 1;
}
} else {
delete k_input;
}
}
function faceTarget(obj, enemy) {
if (faceEnemy == 1) {
delete faceEnemy;
if (enemy._x == null) {
} else if (Math.abs(obj._x - enemy._x) < 6) {
if (obj._y > enemy._y) {
obj.gotoAndStop(15 + armor_anim);
}
if (obj._y < enemy._y) {
obj.gotoAndStop(11 + armor_anim);
}
} else if (Math.abs(obj._y - enemy._y) < 6) {
if (obj._x < enemy._x) {
obj._xscale = -100;
obj.gotoAndStop(13 + armor_anim);
}
if (obj._x > enemy._x) {
obj._xscale = 100;
obj.gotoAndStop(13 + armor_anim);
}
} else {
if (obj._x < enemy._x) {
obj._xscale = -100;
}
if (obj._x > enemy._x) {
obj._xscale = 100;
}
if (obj._y < enemy._y) {
obj.gotoAndStop(12 + armor_anim);
}
if (obj._y > enemy._y) {
obj.gotoAndStop(14 + armor_anim);
}
}
}
}
function hdetect_player(player, map, spd) {
_root["debugshadow" + x]._x = ambushmemx;
_root["debugshadow" + x]._y = ambushmemy;
if (map.hb.hitTest(player._x + 6, player._y, true) || (map.hb.hitTest(player._x, player._y + 6, true))) {
if (desuClock == 1) {
player._x = ambushmemx;
player._y = ambushmemy;
}
} else {
delete htCorrect;
if (map.hb.hitTest(player._x, player._y, false)) {
ambushmemx = player._x;
ambushmemy = player._y;
}
}
if (dontfillme == 1) {
if (map.hb.hitTest(player._x - 24, player._y, true)) {
player._x = player._x + 24;
charshadowfunc();
}
if (map.hb.hitTest(player._x + 24, player._y, true)) {
player._x = player._x - 24;
charshadowfunc();
}
if (map.hb.hitTest(player._x, player._y - 24, true)) {
player._y = player._y + 24;
charshadowfunc();
}
if (map.hb.hitTest(player._x, player._y + 24, true)) {
player._y = player._y - 24;
charshadowfunc();
}
}
if (map.hb.hitTest(player._x - 24, player._y, true)) {
dropP = 3;
}
if (map.hb.hitTest(player._x + 24, player._y, true)) {
dropP = 4;
}
if (map.hb.hitTest(player._x, player._y - 24, true)) {
dropP = 1;
}
if (map.hb.hitTest(player._x, player._y + 24, true)) {
dropP = 2;
}
if (((map.hb.hitTest(player._x - spd, player._y, false) || (map.hb.hitTest(player._x + spd, player._y, false))) || (map.hb.hitTest(player._x, player._y - spd, false))) || (map.hb.hitTest(player._x, player._y + spd, false))) {
delete maphtd;
}
if (map.hb.hitTest(player._x - spd, player._y, true)) {
player._x = player._x + spd;
mouseMoveClear();
delete m_command;
maphtd = 1;
}
if (map.hb.hitTest(player._x + spd, player._y, true)) {
player._x = player._x - spd;
mouseMoveClear();
delete m_command;
maphtd = 1;
}
if (map.hb.hitTest(player._x, player._y - spd, true)) {
player._y = player._y + spd;
mouseMoveClear();
delete m_command;
maphtd = 1;
}
if (map.hb.hitTest(player._x, player._y + spd, true)) {
player._y = player._y - spd;
mouseMoveClear();
delete m_command;
maphtd = 1;
}
if (map.slide.hitTest(player._x, player._y + spd, true)) {
_root.doorpass = 1;
}
}
function hdetect_enemy(map, enemy, spd2) {
if (map.hb.hitTest(enemy._x - spd2, enemy._y, true)) {
enemy._x = enemy._x + (spd2 * 2);
}
if (map.hb.hitTest(enemy._x + spd2, enemy._y, true)) {
enemy._x = enemy._x - (spd2 * 2);
}
if (map.hb.hitTest(enemy._x, enemy._y - spd2, true)) {
enemy._y = enemy._y + (spd2 * 2);
}
if (map.hb.hitTest(enemy._x, enemy._y + spd2, true)) {
enemy._y = enemy._y - (spd2 * 2);
}
if (map.slide.hitTest(enemy._x - spd2, enemy._y, true)) {
enemy._x = enemy._x + spd2;
}
if (map.slide.hitTest(enemy._x + spd2, enemy._y, true)) {
enemy._x = enemy._x - spd2;
}
if (map.slide.hitTest(enemy._x, enemy._y - spd2, true)) {
enemy._y = enemy._y + spd2;
}
if (map.slide.hitTest(enemy._x, enemy._y + spd2, true)) {
enemy._y = enemy._y - spd2;
}
}
map_dir_x = [[null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null]];
map_dir_y = [[null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null]];
map_dir_x[9][1] = 144;
map_dir_y[9][1] = -120;
map_dir_x[9][2] = 120;
map_dir_y[9][2] = -120;
map_dir_x[9][3] = 48;
map_dir_y[9][3] = -96;
map_dir_x[9][4] = 48;
map_dir_y[9][4] = -72;
map_dir_x[9][5] = 144;
map_dir_y[9][5] = -24;
map_dir_x[9][6] = 120;
map_dir_y[9][6] = -24;
map_dir_x[9][7] = 216;
map_dir_y[9][7] = -96;
map_dir_x[9][8] = 216;
map_dir_y[9][8] = -72;
map_dir_x[15][1] = 264;
map_dir_y[15][1] = 96;
map_dir_x[15][2] = 240;
map_dir_y[15][2] = 96;
map_dir_x[15][3] = 168;
map_dir_y[15][3] = 120;
map_dir_x[15][4] = 168;
map_dir_y[15][4] = 144;
map_dir_x[15][5] = 264;
map_dir_y[15][5] = 192;
map_dir_x[15][6] = 240;
map_dir_y[15][6] = 192;
map_dir_x[15][7] = 336;
map_dir_y[15][7] = 120;
map_dir_x[15][8] = 336;
map_dir_y[15][8] = 144;
map_dir_x[17][1] = 264;
map_dir_y[17][1] = 96;
map_dir_x[17][2] = 240;
map_dir_y[17][2] = 96;
map_dir_x[17][3] = 168;
map_dir_y[17][3] = 120;
map_dir_x[17][4] = 168;
map_dir_y[17][4] = 144;
map_dir_x[17][5] = 264;
map_dir_y[17][5] = 192;
map_dir_x[17][6] = 240;
map_dir_y[17][6] = 192;
map_dir_x[17][7] = 336;
map_dir_y[17][7] = 120;
map_dir_x[17][8] = 336;
map_dir_y[17][8] = 144;
map_dir_x[18][1] = 288;
map_dir_y[18][1] = 72;
map_dir_x[18][2] = 288;
map_dir_y[18][2] = 96;
map_dir_x[18][3] = 288;
map_dir_y[18][3] = 120;
map_dir_x[18][4] = 288;
map_dir_y[18][4] = 144;
map_dir_x[18][5] = 312;
map_dir_y[18][5] = 72;
map_dir_x[18][6] = 312;
map_dir_y[18][6] = 96;
map_dir_x[18][7] = 312;
map_dir_y[18][7] = 120;
map_dir_x[18][8] = 312;
map_dir_y[18][8] = 144;
map_dir_x[19][1] = 288;
map_dir_y[19][1] = 72;
map_dir_x[19][2] = 288;
map_dir_y[19][2] = 96;
map_dir_x[19][3] = 288;
map_dir_y[19][3] = 120;
map_dir_x[19][4] = 288;
map_dir_y[19][4] = 144;
map_dir_x[19][5] = 312;
map_dir_y[19][5] = 72;
map_dir_x[19][6] = 312;
map_dir_y[19][6] = 96;
map_dir_x[19][7] = 312;
map_dir_y[19][7] = 120;
map_dir_x[19][8] = 312;
map_dir_y[19][8] = 144;
map_dir_x[21][1] = 144;
map_dir_y[21][1] = 312;
map_dir_x[21][2] = 120;
map_dir_y[21][2] = 312;
map_dir_x[21][3] = 48;
map_dir_y[21][3] = 336;
map_dir_x[21][4] = 48;
map_dir_y[21][4] = 360;
map_dir_x[21][5] = 144;
map_dir_y[21][5] = 408;
map_dir_x[21][6] = 120;
map_dir_y[21][6] = 408;
map_dir_x[21][7] = 216;
map_dir_y[21][7] = 336;
map_dir_x[21][8] = 216;
map_dir_y[21][8] = 360;
map_dir_x[34][1] = 264;
map_dir_y[34][1] = 96;
map_dir_x[34][2] = 240;
map_dir_y[34][2] = 96;
map_dir_x[34][3] = 168;
map_dir_y[34][3] = 120;
map_dir_x[34][4] = 168;
map_dir_y[34][4] = 144;
map_dir_x[34][5] = 264;
map_dir_y[34][5] = 192;
map_dir_x[34][6] = 240;
map_dir_y[34][6] = 192;
map_dir_x[34][7] = 336;
map_dir_y[34][7] = 120;
map_dir_x[34][8] = 336;
map_dir_y[34][8] = 144;
map_dir_x[54][1] = 264;
map_dir_y[54][1] = 96;
map_dir_x[54][2] = 240;
map_dir_y[54][2] = 96;
map_dir_x[54][3] = 168;
map_dir_y[54][3] = 120;
map_dir_x[54][4] = 168;
map_dir_y[54][4] = 144;
map_dir_x[54][5] = 264;
map_dir_y[54][5] = 192;
map_dir_x[54][6] = 240;
map_dir_y[54][6] = 192;
map_dir_x[54][7] = 336;
map_dir_y[54][7] = 120;
map_dir_x[54][8] = 336;
map_dir_y[54][8] = 144;
function spawnBlock() {
if (nullSpawnA == null) {
nullSpawnA = new Array();
nullSpawnA = [22];
}
var scanNspawn = 0;
if (scanNspawn < nullSpawnA.length) {
if (mapNumber == nullSpawnA[scanNspawn]) {
return(true);
}
return(false);
}
}
function mapHistoryFunc() {
enemyLimit = 8;
if (enemyNumber == null) {
enemyNumber = new Array();
enemyNumber = [0, 4, 2, 1, 4];
}
if (mapHistory == null) {
mapHistory = [[null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null]];
bossHistory = [[null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null], [null]];
mapHistory[floor][mapNumber] = 1;
}
enemMapClear();
enemyCountReset();
var blockedSpawn = spawnBlock();
if ((mapHistory[floor][mapNumber] == null) && (blockedSpawn == false)) {
delete fs_msg;
build++;
delete monDrawStart;
if (enemyCount >= enemyLimit) {
if (mvp_in == 1) {
} else {
removeMovieClip(_root.mon9);
}
var overMon = 1;
while (overMon < (enemyNumber[nx] + 1)) {
if ((Math.abs(_root["mon" + overMon]._x - _root.char1._x) >= 148) || (Math.abs(_root["mon" + overMon]._y - _root.char1._y) >= 148)) {
removeMovieClip(_root["mon" + overMon]);
enemySpawn();
}
overMon++;
}
enemyCount = enemyLimit;
enemOverCount = enemOverCount + enemyNumber[nx];
enemySpawn();
if (mapHistory[floor][mapNumber] == 1) {
mapHistory[floor][mapNumber] = null;
delete enemyDestroyed;
} else {
mapHistory[floor][mapNumber] = 1;
}
} else if (enemyCount < enemyLimit) {
mapHistory[floor][mapNumber] = 1;
nx = Math.ceil(Math.random() * 4);
trace(enemyNumber[nx]);
enemyCount = enemyCount + enemyNumber[nx];
enemySpawn();
}
scanHis = 1;
delete monAnimVar[monanimfiller];
if (_root.newFloor == 1) {
delete mvp_mapLock;
delete newFloor;
} else if (_root.ambushCamera == 1) {
mvp_mapLock = 1;
delete mapLockx;
delete mapLocky;
delete mvpLockx;
delete mvpLocky;
}
}
}
function map(obj1, obj2, obj3, obj4, obj5, obj6, obj7, obj8, obj9, char, spd) {
function mvpFocusScroll() {
if (char._x < 120) {
char._x = 120;
}
if (char._x >= 364) {
char._x = 360;
}
if (char._y < 20) {
char._y = 24;
}
if (char._y >= 240) {
char._y = 240;
}
if ((((char._currentframe == (1 + armor_anim)) || (char._currentframe == (6 + armor_anim))) || (char._currentframe == (11 + armor_anim))) || (char._currentframe == (16 + armor_anim))) {
if (mapLocky == null) {
mapLocky = 2;
mapLockx = 3;
}
}
if ((((char._currentframe == (5 + armor_anim)) || (char._currentframe == (10 + armor_anim))) || (char._currentframe == (15 + armor_anim))) || (char._currentframe == (20 + armor_anim))) {
if (mapLocky == null) {
mapLocky = 1;
mapLockx = 3;
}
}
if (char._xscale == 100) {
if ((((char._currentframe == (3 + armor_anim)) || (char._currentframe == (8 + armor_anim))) || (char._currentframe == (13 + armor_anim))) || (char._currentframe == (18 + armor_anim))) {
if (mapLockx == null) {
mapLockx = 1;
mapLocky = 3;
}
}
}
if (char._xscale == -100) {
if ((((char._currentframe == (3 + armor_anim)) || (char._currentframe == (8 + armor_anim))) || (char._currentframe == (13 + armor_anim))) || (char._currentframe == (18 + armor_anim))) {
if (mapLockx == null) {
mapLockx = 2;
mapLocky = 3;
}
}
}
if (mapLockx == 1) {
if (mvpLockx >= 30) {
mapLockx = 3;
}
if (mvpLockx < 30) {
map_gridx = map_gridx - ((spd * 0.5) / 2);
mvpLockx = mvpLockx + ((spd * 0.5) / 2);
if (map_dir_x[mapNumber][1] == null) {
diry = -120;
dirx = -192;
} else {
diry = map_dir_y[mapNumber][1];
dirx = map_dir_x[mapNumber][1];
}
var db = 1;
while (db < (dots + 1)) {
deSpawn_x[db] = deSpawn_x[db] + spd;
db++;
}
obj1._x = obj1._x + spd;
obj4._x = obj4._x + spd;
obj7._x = obj7._x + spd;
obj2._x = obj2._x + spd;
obj5._x = obj5._x + spd;
obj8._x = obj8._x + spd;
obj3._x = obj3._x + spd;
obj6._x = obj6._x + spd;
obj9._x = obj9._x + spd;
char._x = char._x + spd;
mousex = mousex + spd;
_root.floormouse._x = _root.floormouse._x + spd;
_root.mouseanim._x = _root.mouseanim._x + spd;
_root.landmouse._x = _root.landmouse._x + spd;
var particle = 1;
while (particle < 11) {
_root["player_hitpoints" + particle]._x = _root["player_hitpoints" + particle]._x + spd;
_root["damage_end_pl" + particle]._x = _root["damage_end_pl" + particle]._x + spd;
_root["damage_end" + particle]._x = _root["damage_end" + particle]._x + spd;
_root["splat" + particle]._x = _root["splat" + particle]._x + spd;
_root["ambush_hitpoints" + particle]._x = _root["ambush_hitpoints" + particle]._x + spd;
_root["nme_hitpoints" + particle]._x = _root["nme_hitpoints" + particle]._x + spd;
_root["misspoints_mc_pl" + particle]._x = _root["misspoints_mc_pl" + particle]._x + spd;
_root["damage_mc" + particle]._x = _root["damage_mc" + particle]._x + spd;
_root["purge" + particle]._x = _root["purge" + particle]._x + spd;
_root["damage_end_pl" + particle]._x = _root["damage_end_pl" + particle]._x + spd;
_root["plyr_dam_mc" + particle]._x = _root["plyr_dam_mc" + particle]._x + spd;
_root["misspoints_mc" + particle]._x = _root["misspoints_mc" + particle]._x + spd;
_root["overkill_anim" + particle]._x = _root["overkill_anim" + particle]._x + spd;
_root["item" + particle]._x = _root["item" + particle]._x + spd;
_root["charshadow" + particle]._x = _root["charshadow" + particle]._x + spd;
_root["zap" + particle]._x = _root["zap" + particle]._x + spd;
_root["desp" + particle]._x = _root["desp" + particle]._x + spd;
_root["zerk" + particle]._x = _root["zerk" + particle]._x + spd;
_root["speedtrail" + particle]._x = _root["speedtrail" + particle]._x + spd;
_root["effect" + particle]._x = _root["effect" + particle]._x + spd;
_root["effect_" + particle]._x = _root["effect_" + particle]._x + spd;
_root["chest_prize" + particle]._x = _root["chest_prize" + particle]._x + spd;
_root["para" + particle]._x = _root["para" + particle]._x + spd;
particle++;
}
var enemyMove = 1;
while (enemyMove < (enemyCount + 1)) {
_root["mon" + enemyMove]._x = _root["mon" + enemyMove]._x + spd;
enemyMove++;
}
}
}
if (mapLockx == 2) {
if (mvpLockx >= 30) {
mapLockx = 3;
}
if (mvpLockx < 30) {
map_gridx = map_gridx + ((spd * 0.5) / 2);
mvpLockx = mvpLockx + ((spd * 0.5) / 2);
if (map_dir_x[mapNumber][1] == null) {
diry = -120;
dirx = 192;
} else {
diry = map_dir_y[mapNumber][1];
dirx = map_dir_x[mapNumber][1];
}
var db = 1;
while (db < (dots + 1)) {
deSpawn_x[db] = deSpawn_x[db] - spd;
db++;
}
obj1._x = obj1._x - spd;
obj4._x = obj4._x - spd;
obj7._x = obj7._x - spd;
obj2._x = obj2._x - spd;
obj5._x = obj5._x - spd;
obj8._x = obj8._x - spd;
obj3._x = obj3._x - spd;
obj6._x = obj6._x - spd;
obj9._x = obj9._x - spd;
char._x = char._x - spd;
mousex = mousex - spd;
_root.floormouse._x = _root.floormouse._x - spd;
_root.mouseanim._x = _root.mouseanim._x - spd;
_root.landmouse._x = _root.landmouse._x - spd;
var particle = 1;
while (particle < 11) {
_root["player_hitpoints" + particle]._x = _root["player_hitpoints" + particle]._x - spd;
_root["damage_end_pl" + particle]._x = _root["damage_end_pl" + particle]._x - spd;
_root["damage_end" + particle]._x = _root["damage_end" + particle]._x - spd;
_root["splat" + particle]._x = _root["splat" + particle]._x - spd;
_root["ambush_hitpoints" + particle]._x = _root["ambush_hitpoints" + particle]._x - spd;
_root["nme_hitpoints" + particle]._x = _root["nme_hitpoints" + particle]._x - spd;
_root["misspoints_mc_pl" + particle]._x = _root["misspoints_mc_pl" + particle]._x - spd;
_root["damage_mc" + particle]._x = _root["damage_mc" + particle]._x - spd;
_root["purge" + particle]._x = _root["purge" + particle]._x - spd;
_root["damage_end_pl" + particle]._x = _root["damage_end_pl" + particle]._x - spd;
_root["plyr_dam_mc" + particle]._x = _root["plyr_dam_mc" + particle]._x - spd;
_root["misspoints_mc" + particle]._x = _root["misspoints_mc" + particle]._x - spd;
_root["overkill_anim" + particle]._x = _root["overkill_anim" + particle]._x - spd;
_root["item" + particle]._x = _root["item" + particle]._x - spd;
_root["charshadow" + particle]._x = _root["charshadow" + particle]._x - spd;
_root["zap" + particle]._x = _root["zap" + particle]._x - spd;
_root["desp" + particle]._x = _root["desp" + particle]._x - spd;
_root["zerk" + particle]._x = _root["zerk" + particle]._x - spd;
_root["speedtrail" + particle]._x = _root["speedtrail" + particle]._x - spd;
_root["effect" + particle]._x = _root["effect" + particle]._x - spd;
_root["effect_" + particle]._x = _root["effect_" + particle]._x - spd;
_root["chest_prize" + particle]._x = _root["chest_prize" + particle]._x - spd;
_root["para" + particle]._x = _root["para" + particle]._x - spd;
particle++;
}
var enemyMove = 1;
while (enemyMove < (enemyCount + 1)) {
_root["mon" + enemyMove]._x = _root["mon" + enemyMove]._x - spd;
enemyMove++;
}
}
}
if (mapLocky == 1) {
if (mvpLocky >= 30) {
delete mapLocky;
}
if (mvpLocky < 30) {
map_gridy = map_gridy - ((spd * 0.5) / 2);
mvpLocky = mvpLocky + ((spd * 0.5) / 2);
if (map_dir_x[mapNumber][1] == null) {
diry = -288;
dirx = 0;
} else {
diry = map_dir_y[mapNumber][1];
dirx = map_dir_x[mapNumber][1];
}
var db = 1;
while (db < (dots + 1)) {
deSpawn_y[db] = deSpawn_y[db] + spd;
db++;
}
obj1._y = obj1._y + spd;
obj4._y = obj4._y + spd;
obj7._y = obj7._y + spd;
obj2._y = obj2._y + spd;
obj5._y = obj5._y + spd;
obj8._y = obj8._y + spd;
obj3._y = obj3._y + spd;
obj6._y = obj6._y + spd;
obj9._y = obj9._y + spd;
char._y = char._y + spd;
mousey = mousey + spd;
_root.floormouse._y = _root.floormouse._y + spd;
_root.mouseanim._y = _root.mouseanim._y + spd;
_root.landmouse._y = _root.landmouse._y + spd;
var particle = 1;
while (particle < 11) {
_root["player_hitpoints" + particle]._y = _root["player_hitpoints" + particle]._y + spd;
_root["damage_end_pl" + particle]._y = _root["damage_end_pl" + particle]._y + spd;
_root["damage_end" + particle]._y = _root["damage_end" + particle]._y + spd;
_root["splat" + particle]._y = _root["splat" + particle]._y + spd;
_root["ambush_hitpoints" + particle]._y = _root["ambush_hitpoints" + particle]._y + spd;
_root["nme_hitpoints" + particle]._y = _root["nme_hitpoints" + particle]._y + spd;
_root["misspoints_mc_pl" + particle]._y = _root["misspoints_mc_pl" + particle]._y + spd;
_root["damage_mc" + particle]._y = _root["damage_mc" + particle]._y + spd;
_root["purge" + particle]._y = _root["purge" + particle]._y + spd;
_root["damage_end_pl" + particle]._y = _root["damage_end_pl" + particle]._y + spd;
_root["plyr_dam_mc" + particle]._y = _root["plyr_dam_mc" + particle]._y + spd;
_root["misspoints_mc" + particle]._y = _root["misspoints_mc" + particle]._y + spd;
_root["overkill_anim" + particle]._y = _root["overkill_anim" + particle]._y + spd;
_root["item" + particle]._y = _root["item" + particle]._y + spd;
_root["charshadow" + particle]._y = _root["charshadow" + particle]._y + spd;
_root["zap" + particle]._y = _root["zap" + particle]._y + spd;
_root["desp" + particle]._y = _root["desp" + particle]._y + spd;
_root["zerk" + particle]._y = _root["zerk" + particle]._y + spd;
_root["speedtrail" + particle]._y = _root["speedtrail" + particle]._y + spd;
_root["effect_" + particle]._y = _root["effect_" + particle]._y + spd;
_root["effect" + particle]._y = _root["effect" + particle]._y + spd;
_root["chest_prize" + particle]._y = _root["chest_prize" + particle]._y + spd;
_root["para" + particle]._y = _root["para" + particle]._y + spd;
particle++;
}
var enemyMove = 1;
while (enemyMove < (enemyCount + 1)) {
_root["mon" + enemyMove]._y = _root["mon" + enemyMove]._y + spd;
enemyMove++;
}
}
}
if (mapLocky == 2) {
if (mvpLocky >= 30) {
delete mapLocky;
}
if (mvpLocky < 30) {
map_gridy = map_gridy + ((spd * 0.5) / 2);
mvpLocky = mvpLocky + ((spd * 0.5) / 2);
if (map_dir_x[mapNumber][1] == null) {
diry = 0;
dirx = 0;
} else {
diry = map_dir_y[mapNumber][1];
dirx = map_dir_x[mapNumber][1];
}
var db = 1;
while (db < (dots + 1)) {
deSpawn_y[db] = deSpawn_y[db] - spd;
db++;
}
obj1._y = obj1._y - spd;
obj4._y = obj4._y - spd;
obj7._y = obj7._y - spd;
obj2._y = obj2._y - spd;
obj5._y = obj5._y - spd;
obj8._y = obj8._y - spd;
obj3._y = obj3._y - spd;
obj6._y = obj6._y - spd;
obj9._y = obj9._y - spd;
char._y = char._y - spd;
mousey = mousey - spd;
_root.floormouse._y = _root.floormouse._y - spd;
_root.mouseanim._y = _root.mouseanim._y - spd;
_root.landmouse._y = _root.landmouse._y - spd;
var particle = 1;
while (particle < 11) {
_root["player_hitpoints" + particle]._y = _root["player_hitpoints" + particle]._y - spd;
_root["damage_end_pl" + particle]._y = _root["damage_end_pl" + particle]._y - spd;
_root["damage_end" + particle]._y = _root["damage_end" + particle]._y - spd;
_root["splat" + particle]._y = _root["splat" + particle]._y - spd;
_root["ambush_hitpoints" + particle]._y = _root["ambush_hitpoints" + particle]._y - spd;
_root["nme_hitpoints" + particle]._y = _root["nme_hitpoints" + particle]._y - spd;
_root["misspoints_mc_pl" + particle]._y = _root["misspoints_mc_pl" + particle]._y - spd;
_root["damage_mc" + particle]._y = _root["damage_mc" + particle]._y - spd;
_root["purge" + particle]._y = _root["purge" + particle]._y - spd;
_root["damage_end_pl" + particle]._y = _root["damage_end_pl" + particle]._y - spd;
_root["plyr_dam_mc" + particle]._y = _root["plyr_dam_mc" + particle]._y - spd;
_root["misspoints_mc" + particle]._y = _root["misspoints_mc" + particle]._y - spd;
_root["overkill_anim" + particle]._y = _root["overkill_anim" + particle]._y - spd;
_root["item" + particle]._y = _root["item" + particle]._y - spd;
_root["charshadow" + particle]._y = _root["charshadow" + particle]._y - spd;
_root["zap" + particle]._y = _root["zap" + particle]._y - spd;
_root["desp" + particle]._y = _root["desp" + particle]._y - spd;
_root["zerk" + particle]._y = _root["zerk" + particle]._y - spd;
_root["speedtrail" + particle]._y = _root["speedtrail" + particle]._y - spd;
_root["effect_" + particle]._y = _root["effect_" + particle]._y - spd;
_root["effect" + particle]._y = _root["effect" + particle]._y - spd;
_root["chest_prize" + particle]._y = _root["chest_prize" + particle]._y - spd;
_root["para" + particle]._y = _root["para" + particle]._y - spd;
particle++;
}
var enemyMove = 1;
while (enemyMove < (enemyCount + 1)) {
_root["mon" + enemyMove]._y = _root["mon" + enemyMove]._y - spd;
enemyMove++;
}
}
}
}
function regularMapScroll() {
if (char._x < (240 - spd)) {
if (map_gridx >= 1) {
map_gridx = map_gridx - ((spd * 0.5) / 2);
if (map_dir_x[mapNumber][1] == null) {
diry = -120;
dirx = -192;
} else {
diry = map_dir_y[mapNumber][1];
dirx = map_dir_x[mapNumber][1];
}
var db = 1;
while (db < (dots + 1)) {
deSpawn_x[db] = deSpawn_x[db] + spd;
db++;
}
obj1._x = obj1._x + spd;
obj4._x = obj4._x + spd;
obj7._x = obj7._x + spd;
obj2._x = obj2._x + spd;
obj5._x = obj5._x + spd;
obj8._x = obj8._x + spd;
obj3._x = obj3._x + spd;
obj6._x = obj6._x + spd;
obj9._x = obj9._x + spd;
char._x = char._x + spd;
mousex = mousex + spd;
_root.floormouse._x = _root.floormouse._x + spd;
_root.mouseanim._x = _root.mouseanim._x + spd;
_root.landmouse._x = _root.landmouse._x + spd;
var particle = 1;
while (particle < 11) {
_root["player_hitpoints" + particle]._x = _root["player_hitpoints" + particle]._x + spd;
_root["damage_end_pl" + particle]._x = _root["damage_end_pl" + particle]._x + spd;
_root["damage_end" + particle]._x = _root["damage_end" + particle]._x + spd;
_root["splat" + particle]._x = _root["splat" + particle]._x + spd;
_root["ambush_hitpoints" + particle]._x = _root["ambush_hitpoints" + particle]._x + spd;
_root["nme_hitpoints" + particle]._x = _root["nme_hitpoints" + particle]._x + spd;
_root["misspoints_mc_pl" + particle]._x = _root["misspoints_mc_pl" + particle]._x + spd;
_root["damage_mc" + particle]._x = _root["damage_mc" + particle]._x + spd;
_root["purge" + particle]._x = _root["purge" + particle]._x + spd;
_root["damage_end_pl" + particle]._x = _root["damage_end_pl" + particle]._x + spd;
_root["plyr_dam_mc" + particle]._x = _root["plyr_dam_mc" + particle]._x + spd;
_root["misspoints_mc" + particle]._x = _root["misspoints_mc" + particle]._x + spd;
_root["overkill_anim" + particle]._x = _root["overkill_anim" + particle]._x + spd;
_root["item" + particle]._x = _root["item" + particle]._x + spd;
_root["charshadow" + particle]._x = _root["charshadow" + particle]._x + spd;
_root["zap" + particle]._x = _root["zap" + particle]._x + spd;
_root["desp" + particle]._x = _root["desp" + particle]._x + spd;
_root["zerk" + particle]._x = _root["zerk" + particle]._x + spd;
_root["speedtrail" + particle]._x = _root["speedtrail" + particle]._x + spd;
_root["effect" + particle]._x = _root["effect" + particle]._x + spd;
_root["effect_" + particle]._x = _root["effect_" + particle]._x + spd;
_root["chest_prize" + particle]._x = _root["chest_prize" + particle]._x + spd;
_root["para" + particle]._x = _root["para" + particle]._x + spd;
particle++;
}
var enemyMove = 1;
while (enemyMove < (enemyCount + 1)) {
_root["mon" + enemyMove]._x = _root["mon" + enemyMove]._x + spd;
enemyMove++;
}
}
}
if (char._x >= (240 + spd)) {
if (map_gridx < 360) {
map_gridx = map_gridx + ((spd * 0.5) / 2);
if (map_dir_x[mapNumber][1] == null) {
diry = -120;
dirx = 192;
} else {
diry = map_dir_y[mapNumber][1];
dirx = map_dir_x[mapNumber][1];
}
var db = 1;
while (db < (dots + 1)) {
deSpawn_x[db] = deSpawn_x[db] - spd;
db++;
}
obj1._x = obj1._x - spd;
obj4._x = obj4._x - spd;
obj7._x = obj7._x - spd;
obj2._x = obj2._x - spd;
obj5._x = obj5._x - spd;
obj8._x = obj8._x - spd;
obj3._x = obj3._x - spd;
obj6._x = obj6._x - spd;
obj9._x = obj9._x - spd;
char._x = char._x - spd;
mousex = mousex - spd;
_root.floormouse._x = _root.floormouse._x - spd;
_root.mouseanim._x = _root.mouseanim._x - spd;
_root.landmouse._x = _root.landmouse._x - spd;
var particle = 1;
while (particle < 11) {
_root["player_hitpoints" + particle]._x = _root["player_hitpoints" + particle]._x - spd;
_root["damage_end_pl" + particle]._x = _root["damage_end_pl" + particle]._x - spd;
_root["damage_end" + particle]._x = _root["damage_end" + particle]._x - spd;
_root["splat" + particle]._x = _root["splat" + particle]._x - spd;
_root["ambush_hitpoints" + particle]._x = _root["ambush_hitpoints" + particle]._x - spd;
_root["nme_hitpoints" + particle]._x = _root["nme_hitpoints" + particle]._x - spd;
_root["misspoints_mc_pl" + particle]._x = _root["misspoints_mc_pl" + particle]._x - spd;
_root["damage_mc" + particle]._x = _root["damage_mc" + particle]._x - spd;
_root["purge" + particle]._x = _root["purge" + particle]._x - spd;
_root["damage_end_pl" + particle]._x = _root["damage_end_pl" + particle]._x - spd;
_root["plyr_dam_mc" + particle]._x = _root["plyr_dam_mc" + particle]._x - spd;
_root["misspoints_mc" + particle]._x = _root["misspoints_mc" + particle]._x - spd;
_root["overkill_anim" + particle]._x = _root["overkill_anim" + particle]._x - spd;
_root["item" + particle]._x = _root["item" + particle]._x - spd;
_root["charshadow" + particle]._x = _root["charshadow" + particle]._x - spd;
_root["zap" + particle]._x = _root["zap" + particle]._x - spd;
_root["desp" + particle]._x = _root["desp" + particle]._x - spd;
_root["zerk" + particle]._x = _root["zerk" + particle]._x - spd;
_root["speedtrail" + particle]._x = _root["speedtrail" + particle]._x - spd;
_root["effect" + particle]._x = _root["effect" + particle]._x - spd;
_root["effect_" + particle]._x = _root["effect_" + particle]._x - spd;
_root["chest_prize" + particle]._x = _root["chest_prize" + particle]._x - spd;
_root["para" + particle]._x = _root["para" + particle]._x - spd;
particle++;
}
var enemyMove = 1;
while (enemyMove < (enemyCount + 1)) {
_root["mon" + enemyMove]._x = _root["mon" + enemyMove]._x - spd;
enemyMove++;
}
}
}
if (char._y < (120 - spd)) {
if (map_gridy >= 1) {
map_gridy = map_gridy - ((spd * 0.5) / 2);
if (map_dir_x[mapNumber][1] == null) {
diry = -288;
dirx = 0;
} else {
diry = map_dir_y[mapNumber][1];
dirx = map_dir_x[mapNumber][1];
}
var db = 1;
while (db < (dots + 1)) {
deSpawn_y[db] = deSpawn_y[db] + spd;
db++;
}
obj1._y = obj1._y + spd;
obj4._y = obj4._y + spd;
obj7._y = obj7._y + spd;
obj2._y = obj2._y + spd;
obj5._y = obj5._y + spd;
obj8._y = obj8._y + spd;
obj3._y = obj3._y + spd;
obj6._y = obj6._y + spd;
obj9._y = obj9._y + spd;
char._y = char._y + spd;
mousey = mousey + spd;
_root.floormouse._y = _root.floormouse._y + spd;
_root.mouseanim._y = _root.mouseanim._y + spd;
_root.landmouse._y = _root.landmouse._y + spd;
var particle = 1;
while (particle < 11) {
_root["player_hitpoints" + particle]._y = _root["player_hitpoints" + particle]._y + spd;
_root["damage_end_pl" + particle]._y = _root["damage_end_pl" + particle]._y + spd;
_root["damage_end" + particle]._y = _root["damage_end" + particle]._y + spd;
_root["splat" + particle]._y = _root["splat" + particle]._y + spd;
_root["ambush_hitpoints" + particle]._y = _root["ambush_hitpoints" + particle]._y + spd;
_root["nme_hitpoints" + particle]._y = _root["nme_hitpoints" + particle]._y + spd;
_root["misspoints_mc_pl" + particle]._y = _root["misspoints_mc_pl" + particle]._y + spd;
_root["damage_mc" + particle]._y = _root["damage_mc" + particle]._y + spd;
_root["purge" + particle]._y = _root["purge" + particle]._y + spd;
_root["damage_end_pl" + particle]._y = _root["damage_end_pl" + particle]._y + spd;
_root["plyr_dam_mc" + particle]._y = _root["plyr_dam_mc" + particle]._y + spd;
_root["misspoints_mc" + particle]._y = _root["misspoints_mc" + particle]._y + spd;
_root["overkill_anim" + particle]._y = _root["overkill_anim" + particle]._y + spd;
_root["item" + particle]._y = _root["item" + particle]._y + spd;
_root["charshadow" + particle]._y = _root["charshadow" + particle]._y + spd;
_root["zap" + particle]._y = _root["zap" + particle]._y + spd;
_root["desp" + particle]._y = _root["desp" + particle]._y + spd;
_root["zerk" + particle]._y = _root["zerk" + particle]._y + spd;
_root["speedtrail" + particle]._y = _root["speedtrail" + particle]._y + spd;
_root["effect_" + particle]._y = _root["effect_" + particle]._y + spd;
_root["effect" + particle]._y = _root["effect" + particle]._y + spd;
_root["chest_prize" + particle]._y = _root["chest_prize" + particle]._y + spd;
_root["para" + particle]._y = _root["para" + particle]._y + spd;
particle++;
}
var enemyMove = 1;
while (enemyMove < (enemyCount + 1)) {
_root["mon" + enemyMove]._y = _root["mon" + enemyMove]._y + spd;
enemyMove++;
}
}
}
if (char._y >= (120 + spd)) {
if (map_gridy < 540) {
map_gridy = map_gridy + ((spd * 0.5) / 2);
if (map_dir_x[mapNumber][1] == null) {
diry = 0;
dirx = 0;
} else {
diry = map_dir_y[mapNumber][1];
dirx = map_dir_x[mapNumber][1];
}
var db = 1;
while (db < (dots + 1)) {
deSpawn_y[db] = deSpawn_y[db] - spd;
db++;
}
obj1._y = obj1._y - spd;
obj4._y = obj4._y - spd;
obj7._y = obj7._y - spd;
obj2._y = obj2._y - spd;
obj5._y = obj5._y - spd;
obj8._y = obj8._y - spd;
obj3._y = obj3._y - spd;
obj6._y = obj6._y - spd;
obj9._y = obj9._y - spd;
char._y = char._y - spd;
mousey = mousey - spd;
_root.floormouse._y = _root.floormouse._y - spd;
_root.mouseanim._y = _root.mouseanim._y - spd;
_root.landmouse._y = _root.landmouse._y - spd;
var particle = 1;
while (particle < 11) {
_root["player_hitpoints" + particle]._y = _root["player_hitpoints" + particle]._y - spd;
_root["damage_end_pl" + particle]._y = _root["damage_end_pl" + particle]._y - spd;
_root["damage_end" + particle]._y = _root["damage_end" + particle]._y - spd;
_root["splat" + particle]._y = _root["splat" + particle]._y - spd;
_root["ambush_hitpoints" + particle]._y = _root["ambush_hitpoints" + particle]._y - spd;
_root["nme_hitpoints" + particle]._y = _root["nme_hitpoints" + particle]._y - spd;
_root["misspoints_mc_pl" + particle]._y = _root["misspoints_mc_pl" + particle]._y - spd;
_root["damage_mc" + particle]._y = _root["damage_mc" + particle]._y - spd;
_root["purge" + particle]._y = _root["purge" + particle]._y - spd;
_root["damage_end_pl" + particle]._y = _root["damage_end_pl" + particle]._y - spd;
_root["plyr_dam_mc" + particle]._y = _root["plyr_dam_mc" + particle]._y - spd;
_root["misspoints_mc" + particle]._y = _root["misspoints_mc" + particle]._y - spd;
_root["overkill_anim" + particle]._y = _root["overkill_anim" + particle]._y - spd;
_root["item" + particle]._y = _root["item" + particle]._y - spd;
_root["charshadow" + particle]._y = _root["charshadow" + particle]._y - spd;
_root["zap" + particle]._y = _root["zap" + particle]._y - spd;
_root["desp" + particle]._y = _root["desp" + particle]._y - spd;
_root["zerk" + particle]._y = _root["zerk" + particle]._y - spd;
_root["speedtrail" + particle]._y = _root["speedtrail" + particle]._y - spd;
_root["effect_" + particle]._y = _root["effect_" + particle]._y - spd;
_root["effect" + particle]._y = _root["effect" + particle]._y - spd;
_root["chest_prize" + particle]._y = _root["chest_prize" + particle]._y - spd;
_root["para" + particle]._y = _root["para" + particle]._y - spd;
particle++;
}
var enemyMove = 1;
while (enemyMove < (enemyCount + 1)) {
_root["mon" + enemyMove]._y = _root["mon" + enemyMove]._y - spd;
enemyMove++;
}
}
}
}
if ((mapLocky == 3) || (mapLockx == 3)) {
if ((mapRelease >= 50) && (_root.mon9.health == null)) {
delete mvp_mapLock;
delete mapLocky;
delete mapLockx;
delete mapRelease;
} else {
mapRelease++;
}
}
if ((((char._y >= 240) || (char._y < 20)) || (char._x >= 364)) || (char._x < 120)) {
if ((mapLocky == null) && (mapLockx == null)) {
delete mvp_mapLock;
}
}
if (Key.isDown(16)) {
delete mvp_mapLock;
}
if ((char.hb.hitTest(obj4.slide) || (char.hb.hitTest(obj5.slide))) || (char.hb.hitTest(obj6.slide))) {
doorpass = 1;
} else {
delete doorpass;
}
if (_root.doorpass == 1) {
if (_root["1_PLAYER"]._x == null) {
} else {
player_icon.duplicateMovieClip("1_PLAYER", layer11 + 1);
}
_root["1_PLAYER"]._x = _root.char1._x;
_root["1_PLAYER"]._y = _root.char1._y - 25;
playerst.setTransform(door_col);
} else if ((!invis_buff) == 1) {
playerst.setTransform(effectTransform4);
removeMovieClip(_root["1_PLAYER"]);
}
if (dungeonMap_name == null) {
dungeonMap_name = new Array();
dungeonMap_name[0] = "dunmapC00";
dungeonMap_name[1] = "dunmapC01";
dungeonMap_name[2] = "dunmapC02";
dungeonMap_name[3] = "dunmapC10";
dungeonMap_name[4] = "dunmapC11";
dungeonMap_name[5] = "dunmapC12";
dungeonMap_name[6] = "dunmapC20";
dungeonMap_name[7] = "dunmapC21";
dungeonMap_name[8] = "dunmapC22";
mouse_name[0] = "mousetarget";
mouse_name[1] = "landmouse";
mouse_name[2] = "mouseanim";
}
if (mapx == null) {
layer = 9;
mapReaderx = 0;
mapx = -1;
mapx2 = 0;
mapx3 = 1;
mapx4 = -1;
mapx5 = 0;
mapx6 = 1;
mapx7 = -1;
mapx8 = 0;
mapx9 = 1;
mapReadery = 1;
mapy = 1;
mapy2 = 1;
mapy3 = 1;
mapy4 = 1;
mapy5 = 1;
mapy6 = 1;
mapy7 = 1;
mapy8 = 1;
mapy9 = 1;
current = 7;
var dunmapCreatey = 0;
while (dunmapCreatey < 3) {
var dunmapCreatex = 0;
while (dunmapCreatex < 3) {
_root.dun_map.duplicateMovieClip((("dunmapC" + dunmapCreatey) + "") + dunmapCreatex, layer++);
_root[(("dunmapC" + dunmapCreatey) + "") + dunmapCreatex]._x = (dunmapcreatex * 240) + -120;
_root[(("dunmapC" + dunmapCreatey) + "") + dunmapCreatex]._y = dunmapCreatey * 240;
_root[(("dunmapC" + dunmapCreatey) + "") + dunmapCreatex]._width = 242;
_root[(("dunmapC" + dunmapCreatey) + "") + dunmapCreatex]._height = 242;
_root.dunmapC00.gotoAndStop(6);
_root.dunmapC01.gotoAndStop(7);
_root.dunmapC02.gotoAndStop(8);
_root.dunmapC10.gotoAndStop(13);
_root.dunmapC11.gotoAndStop(14);
_root.dunmapC12.gotoAndStop(15);
_root.dunmapC20.gotoAndStop(20);
_root.dunmapC21.gotoAndStop(21);
_root.dunmapC22.gotoAndStop(22);
dunmapCreatex++;
}
dunmapCreatey++;
}
}
obj1.gotoAndStop(((current * mapy) + 0) + mapx);
obj2.gotoAndStop(((current * mapy2) + 0) + mapx2);
obj3.gotoAndStop(((current * mapy3) + 0) + mapx3);
obj4.gotoAndStop(((current * mapy4) + 7) + mapx4);
obj5.gotoAndStop(((current * mapy5) + 7) + mapx5);
obj6.gotoAndStop(((current * mapy6) + 7) + mapx6);
obj7.gotoAndStop(((current * mapy7) + 14) + mapx7);
obj8.gotoAndStop(((current * mapy8) + 14) + mapx8);
obj9.gotoAndStop(((current * mapy9) + 14) + mapx9);
maxMapsize = 480;
minMapSize = 240;
if (pos == 1) {
if (obj9._x > 480) {
mapx9 = mapx9 - 3;
obj9._x = -(240 - spd);
mapReaderx = mapReaderx - 1;
}
if (obj8._x > 480) {
mapx8 = mapx8 - 3;
obj8._x = -(240 - spd);
mapReaderx = mapReaderx - 1;
}
if (obj7._x > 480) {
mapx7 = mapx7 - 3;
obj7._x = -(240 - spd);
mapReaderx = mapReaderx - 1;
}
if (obj6._x > 480) {
mapx6 = mapx6 - 3;
obj6._x = -(240 - spd);
mapReaderx = mapReaderx - 1;
}
if (obj5._x > 480) {
mapx5 = mapx5 - 3;
obj5._x = -(240 - spd);
mapReaderx = mapReaderx - 1;
}
if (obj4._x > 480) {
mapx4 = mapx4 - 3;
obj4._x = -(240 - spd);
mapReaderx = mapReaderx - 1;
}
if (obj3._x > 480) {
mapx3 = mapx3 - 3;
obj3._x = -(240 - spd);
mapReaderx = mapReaderx - 1;
}
if (obj2._x > 480) {
mapx2 = mapx2 - 3;
obj2._x = -(240 - spd);
mapReaderx = mapReaderx - 1;
}
if (obj1._x > 480) {
mapx = mapx - 3;
obj1._x = -(240 - spd);
mapReaderx = mapReaderx - 1;
}
if (obj9._x < (-240 + spd)) {
mapx9 = mapx9 + 3;
obj9._x = 480;
mapReaderx = mapReaderx + 1;
}
if (obj8._x < (-240 + spd)) {
mapx8 = mapx8 + 3;
obj8._x = 480;
mapReaderx = mapReaderx + 1;
}
if (obj7._x < (-240 + spd)) {
mapx7 = mapx7 + 3;
obj7._x = 480;
mapReaderx = mapReaderx + 1;
}
if (obj6._x < (-240 + spd)) {
mapx6 = mapx6 + 3;
obj6._x = 480;
mapReaderx = mapReaderx + 1;
}
if (obj5._x < (-240 + spd)) {
mapx5 = mapx5 + 3;
obj5._x = 480;
mapReaderx = mapReaderx + 1;
}
if (obj4._x < (-240 + spd)) {
mapx4 = mapx4 + 3;
obj4._x = 480;
mapReaderx = mapReaderx + 1;
}
if (obj3._x < (-240 + spd)) {
mapx3 = mapx3 + 3;
obj3._x = 480;
mapReaderx = mapReaderx + 1;
}
if (obj2._x < (-240 + spd)) {
mapx2 = mapx2 + 3;
obj2._x = 480;
mapReaderx = mapReaderx + 1;
}
if (obj1._x < (-240 + spd)) {
mapx = mapx + 3;
obj1._x = 480;
mapReaderx = mapReaderx + 1;
}
if (obj9._y > 480) {
mapy9 = mapy9 - 3;
obj9._y = -240 + spd;
mapReadery = mapReadery - 1;
}
if (obj8._y > 480) {
mapy8 = mapy8 - 3;
obj8._y = -240 + spd;
mapReadery = mapReadery - 1;
}
if (obj7._y > 480) {
mapy7 = mapy7 - 3;
obj7._y = -240 + spd;
mapReadery = mapReadery - 1;
}
if (obj6._y > 480) {
mapy6 = mapy6 - 3;
obj6._y = -240 + spd;
mapReadery = mapReadery - 1;
}
if (obj5._y > 480) {
mapy5 = mapy5 - 3;
obj5._y = -240 + spd;
mapReadery = mapReadery - 1;
}
if (obj4._y > 480) {
mapy4 = mapy4 - 3;
obj4._y = -240 + spd;
mapReadery = mapReadery - 1;
}
if (obj3._y > 480) {
mapy3 = mapy3 - 3;
obj3._y = -240 + spd;
mapReadery = mapReadery - 1;
}
if (obj2._y > 480) {
mapy2 = mapy2 - 3;
obj2._y = -240 + spd;
mapReadery = mapReadery - 1;
}
if (obj1._y > 480) {
mapy = mapy - 3;
obj1._y = -240 + spd;
mapReadery = mapReadery - 1;
}
if (obj9._y < (-480 + spd)) {
mapy9 = mapy9 + 3;
obj9._y = 240;
mapReadery = mapReadery + 1;
}
if (obj8._y < (-480 + spd)) {
mapy8 = mapy8 + 3;
obj8._y = 240;
mapReadery = mapReadery + 1;
}
if (obj7._y < (-480 + spd)) {
mapy7 = mapy7 + 3;
obj7._y = 240;
mapReadery = mapReadery + 1;
}
if (obj6._y < (-480 + spd)) {
mapy6 = mapy6 + 3;
obj6._y = 240;
mapReadery = mapReadery + 1;
}
if (obj5._y < (-480 + spd)) {
mapy5 = mapy5 + 3;
obj5._y = 240;
mapReadery = mapReadery + 1;
}
if (obj4._y < (-480 + spd)) {
mapy4 = mapy4 + 3;
obj4._y = 240;
mapReadery = mapReadery + 1;
}
if (obj3._y < (-480 + spd)) {
mapy3 = mapy3 + 3;
obj3._y = 240;
mapReadery = mapReadery + 1;
}
if (obj2._y < (-480 + spd)) {
mapy2 = mapy2 + 3;
obj2._y = 240;
mapReadery = mapReadery + 1;
}
if (obj1._y < (-480 + spd)) {
mapy = mapy + 3;
obj1._y = 240;
mapReadery = mapReadery + 1;
}
if (amb_map == 1) {
ambMapScroll();
delete amb_map;
} else if (mvp_mapLock == 1) {
mvpFocusScroll();
} else {
regularMapScroll();
}
if (obj1.hitTest(char._x + dirx2, char._y + diry2, true)) {
mapNumber = obj1._currentframe;
mapHistoryFunc();
curMap_x = obj1._x;
curMap_y = obj1._y;
} else if (obj2.hitTest(char._x + dirx2, char._y + diry2, true)) {
mapNumber = obj2._currentframe;
mapHistoryFunc();
curMap_x = obj2._x;
curMap_y = obj2._y;
} else if (obj3.hitTest(char._x + dirx2, char._y + diry2, true)) {
mapNumber = obj3._currentframe;
mapHistoryFunc();
curMap_x = obj3._x;
curMap_y = obj3._y;
} else if (obj4.hitTest(char._x + dirx2, char._y + diry2, true)) {
mapNumber = obj4._currentframe;
mapHistoryFunc();
curMap_x = obj4._x;
curMap_y = obj4._y;
} else if (obj5.hitTest(char._x + dirx2, char._y + diry2, true)) {
mapNumber = obj5._currentframe;
mapHistoryFunc();
curMap_x = obj5._x;
curMap_y = obj5._y;
} else if (obj6.hitTest(char._x + dirx2, char._y + diry2, true)) {
mapNumber = obj6._currentframe;
mapHistoryFunc();
curMap_x = obj6._x;
curMap_y = obj6._y;
} else if (obj7.hitTest(char._x + dirx2, char._y + diry2, true)) {
mapNumber = obj7._currentframe;
mapHistoryFunc();
curMap_x = obj7._x;
curMap_y = obj7._y;
} else if (obj8.hitTest(char._x + dirx2, char._y + diry2, true)) {
mapNumber = obj8._currentframe;
mapHistoryFunc();
curMap_x = obj8._x;
curMap_y = obj8._y;
} else if (obj9.hitTest(char._x + dirx2, char._y + diry2, true)) {
mapNumber = obj9._currentframe;
mapHistoryFunc();
curMap_x = obj9._x;
curMap_y = obj9._y;
}
}
}
function mouse_anim_effect() {
landmouse._x = mousex - 12;
landmouse._y = mousey - 20;
mouseanim._x = landmouse._x;
mouseanim._y = landmouse._y;
}
function animate(obj, vrb) {
obj.gotoAndStop(vrb);
}
function move(obj, spd) {
if ((((!Key.isDown(38)) && (!Key.isDown(40))) && (!Key.isDown(37))) && (!Key.isDown(39))) {
if (m_command == null) {
if (obj._currentframe > (5 + armor_anim)) {
} else {
obj.gotoAndStop(obj._currentframe + 5);
}
}
}
if (htd == 1) {
} else if (Key.isDown(38) && (Key.isDown(37))) {
m_command = 1;
mouseD = 20;
mousex = obj._x - 24;
mousey = obj._y - 24;
mouse_anim_effect();
mouseanim.gotoAndPlay(2);
} else if (Key.isDown(38) && (Key.isDown(39))) {
m_command = 1;
mouseD = 20;
mousex = obj._x + 24;
mousey = obj._y - 24;
mouse_anim_effect();
mouseanim.gotoAndPlay(2);
} else if (Key.isDown(40) && (Key.isDown(39))) {
m_command = 1;
mouseD = 20;
mousex = obj._x + 24;
mousey = obj._y + 24;
mouse_anim_effect();
mouseanim.gotoAndPlay(2);
} else if (Key.isDown(40) && (Key.isDown(37))) {
m_command = 1;
mouseD = 20;
mousex = obj._x - 24;
mousey = obj._y + 24;
mouse_anim_effect();
mouseanim.gotoAndPlay(2);
} else {
if (Key.isDown(38)) {
m_command = 1;
mouseD = 20;
mousex = obj._x;
mousey = obj._y - 24;
mouse_anim_effect();
mouseanim.gotoAndPlay(2);
}
if (Key.isDown(40)) {
m_command = 1;
mouseD = 20;
mousex = obj._x;
mousey = obj._y + 24;
mouse_anim_effect();
mouseanim.gotoAndPlay(2);
}
if (Key.isDown(37)) {
m_command = 1;
mouseD = 20;
mousex = obj._x - 24;
mousey = obj._y;
mouse_anim_effect();
mouseanim.gotoAndPlay(2);
}
if (Key.isDown(39)) {
m_command = 1;
mouseD = 20;
mousex = obj._x + 24;
mousey = obj._y;
mouse_anim_effect();
mouseanim.gotoAndPlay(2);
}
}
}
function gui_hud_Code(hud) {
hud._x = 120;
hud._y = 0;
}
function chat(text, textLimit, textMaxLine) {
if (userLog == null) {
userLog = new Array();
z_Infotext_input = new Array();
}
var linLimit = 30;
linOutput = text;
var count = (count + 1);
z_Infotext_input.push(((name + "") + text) + count);
if (userLine >= textLimit) {
delete userLog[userLine - textLimit];
ch_display++;
userLine++;
userLog[userLine] = userLog[userLine] + linOutput;
} else if (userLine >= textMaxLine) {
ch_display++;
userLine++;
userLog[userLine] = userLog[userLine] + linOutput;
} else {
userLine++;
userLog[userLine] = userLog[userLine] + linOutput;
}
ch_display = _root.ch_display;
ch_display = userLine - textMaxLine;
chatOutput = ((((((((((((((((((((((userLog[1 + ch_display] + "<br>") + userLog[2 + ch_display]) + "<br>") + userLog[3 + ch_display]) + "<br>") + userLog[4 + ch_display]) + "<br>") + userLog[5 + ch_display]) + "<br>") + userLog[6 + ch_display]) + "<br>") + userLog[7 + ch_display]) + "<br>") + userLog[8 + ch_display]) + "<br>") + userLog[9 + ch_display]) + "<br>") + userLog[10 + ch_display]) + "<br>") + userLog[11 + ch_display]) + "<br>") + userLog[12 + ch_display]) + "<br>";
}
function game_hud(player, obj) {
if (_root.plHpDis == null) {
} else if (_root.plHpDis > 1) {
_root.plHpDis = _root.plHpDis - 10;
} else {
delete _root.plHpDis;
}
barDisplay(obj, player);
}
function barDisplay(obj, player) {
if (_root.plHpDis > 1) {
obj._visible = true;
obj._x = player._x;
obj._y = player._y - 60;
} else {
obj._visible = false;
}
}
function main_game() {
if (floorList == null) {
mapType = 1;
floorList = new Array();
_root.floorList[0] = 1;
_root.floorList[1] = 2;
}
floorComplete();
mousetip();
keyboardSpecial();
regenHealth();
game_hud(_root.char1, _root.hp_bar1);
rogueEffect();
debug_MonsterSpawn();
HudSelector();
equipFunc();
_root.debug1._x = _root._x;
_root.debug1._y = _root._y;
loadSound();
fastForward(_root.char1);
game_dun_lighting();
game_full_speed();
attack(_root.char1, 1, attackspd, _root.char_atk1);
move(_root.char1, movementspd);
weapon();
Items(_root.char1);
crafts_Items();
item_htd();
Item_List();
itemEquip();
armor_ench();
faceTarget(_root.char1, _root[atkSpawn]);
anim_htd(_root.char1);
player_stats(_root.char1);
readout_stats();
game_rewind(_root.char1, _root.dunmapC00, _root.dunmapC01, _root.dunmapC02, _root.dunmapC10, _root.dunmapC11, _root.dunmapC12, _root.dunmapC20, _root.dunmapC21, _root.dunmapC22, _root.mon1, _root.mon2, _root.mon3, _root.mon4, _root.mon5, _root.mon6, _root.mon7, _root.mon8, _root.mon9);
if (time_use == null) {
enemyRoutines();
map(_root.dunmapC00, _root.dunmapC01, _root.dunmapC02, _root.dunmapC10, _root.dunmapC11, _root.dunmapC12, _root.dunmapC20, _root.dunmapC21, _root.dunmapC22, _root.char1, movementspd);
hdetect_player(_root.char1, _root.dunmapC00, movementspd);
hdetect_player(_root.char1, _root.dunmapC01, movementspd);
hdetect_player(_root.char1, _root.dunmapC02, movementspd);
hdetect_player(_root.char1, _root.dunmapC10, movementspd);
hdetect_player(_root.char1, _root.dunmapC11, movementspd);
hdetect_player(_root.char1, _root.dunmapC12, movementspd);
hdetect_player(_root.char1, _root.dunmapC20, movementspd);
hdetect_player(_root.char1, _root.dunmapC21, movementspd);
hdetect_player(_root.char1, _root.dunmapC22, movementspd);
mouseControl(_root.char1, movementspd, _root.char_atk1);
zoomInOut(_root);
}
if (m_input == 1) {
mouseD = 20;
if (((heal_t_use == null) && (zap_t_use == null)) && (rewind == null)) {
mousex = floormouse._x + 12;
mousey = floormouse._y + 12;
}
if (m_click_attack == null) {
mousex = floormouse._x + 12;
mousey = floormouse._y + 12;
landmouse._x = floormouse._x;
landmouse._y = floormouse._y;
mouseanim.gotoAndPlay(2);
mouseanim._x = floormouse._x;
mouseanim._y = floormouse._y;
}
}
debugArmor();
spell_effects(_root.dunmapC00, _root.dunmapC01, _root.dunmapC02, _root.dunmapC10, _root.dunmapC11, _root.dunmapC12, _root.dunmapC20, _root.dunmapC21, _root.dunmapC22);
reSize();
if ((!_root.soundbgm1._currentframe) == (_root.floor + 4)) {
_root.soundbgm1.gotoAndStop(_root.floor + 4);
}
}
function enemyRoutines() {
var enemySloMo = 1;
while (enemySloMo < 9) {
chest_HT(_root.char1, _root["chest_prize" + enemySlomo]);
spriteDepth(_root.char1, _root["chest_prize" + enemySlomo]);
game_slomo(_root.char1, _root["mon" + enemySloMo]);
enemySloMo++;
}
var enemyScan = 1;
while (enemyScan < (enemyCount + 1)) {
var enemyScan2 = 1;
while (enemyScan2 < (enemyCount + 1)) {
enemyhtd(_root["mon" + enemyScan], _root["mon" + enemyScan2], _root.char1, enemyspd, movementspd, enemyScan2);
enemyScan2++;
}
spriteDepth(_root.char1, _root["mon" + enemyScan]);
enemy_attack(_root["mon" + enemyScan], enemyatkspd, _root.char1, enemyScan);
enemy_move(_root["mon" + enemyScan], enemyspd, _root.char1, enemyScan);
enemy_behaviour(_root["mon" + enemyScan], enemyspd, _root.char1, enemyScan);
enemy_d_end(_root["mon" + enemyScan]);
hdetect_enemy(_root.dunmapC00, _root["mon" + enemyScan], enemyspd);
hdetect_enemy(_root.dunmapC01, _root["mon" + enemyScan], enemyspd);
hdetect_enemy(_root.dunmapC02, _root["mon" + enemyScan], enemyspd);
hdetect_enemy(_root.dunmapC10, _root["mon" + enemyScan], enemyspd);
hdetect_enemy(_root.dunmapC11, _root["mon" + enemyScan], enemyspd);
hdetect_enemy(_root.dunmapC12, _root["mon" + enemyScan], enemyspd);
hdetect_enemy(_root.dunmapC20, _root["mon" + enemyScan], enemyspd);
hdetect_enemy(_root.dunmapC21, _root["mon" + enemyScan], enemyspd);
hdetect_enemy(_root.dunmapC22, _root["mon" + enemyScan], enemyspd);
var enemyScan2;
while (enemyScan2 < (enemyCount + 1)) {
hdetect_enemy2(_root["mon" + enemyScan], enemyspd, _root["mon" + enemyScan2]);
enemyScan2++;
}
deSpawn_enemy(_root.char1, _root["mon" + enemyScan], movementspd);
playerVsEnemy(_root.char1, _root.char_atk1, _root["mon" + enemyScan]);
enemyReset();
enemyScan++;
}
}
_root.onLoad = function () {
};
_root.onKeyDown = function () {
};
_root.onEnterFrame = function () {
game_dun_lighting();
reSize();
gameover_screen();
floorLoadingScreen();
if (gameover == 1) {
_root.char1._visible = false;
_root.char1._x = -9999;
game_speed = 3;
enemyRoutines();
} else if ((floorLower == 1) || (floorHigher == 1)) {
} else {
main_game();
}
};
_root.floor_fader.swapDepths(131000);
layer23 = 12100;
layer22 = 12000;
_root.npc_speak.swapDepths(layer22);
layer21 = 10000;
layer18 = 84;
layer17 = 80;
_root.light.swapDepths(layer17);
layer16 = 1000;
_root.lightbg.swapDepths(layer16);
layer15 = 70;
layer14 = 300;
layer13 = 900;
_root.char.duplicateMovieClip("debugshadow1", layer13);
_root.debugshadow1._x = ambushmemx;
_root.debugshadow1._y = ambushmemy;
layer12 = 11000;
_root.itemDropMouse.swapDepths(layer12 + 3);
_root.dropIcon.swapDepths(layer12 + 2);
layer11 = 500;
layer10 = 90;
_root.floormouse.swapDepths(layer10);
_root.landmouse.swapDepths(layer10 + 1);
_root.mouseanim.swapDepths(layer10 + 2);
floor = 1;
player_sprint_m = 100;
player_sprint = 1;
_root.shield = 13;
layer9 = 410;
_root.mousetarget.swapDepths(layer9 + 3);
_root.charatk.duplicateMovieClip("char_atk1", layer9 + 1);
_root.char_atk1._visible = true;
layer8b = 9050;
_root.mousetipmc.swapDepths(layer8b);
layer8 = 9000;
_root.gui_hud.duplicateMovieClip("game_hud1", layer8 + 1);
gui_hud_Code(_root.game_hud1);
gui_hud_Code(_root.hud);
gui_hud_Code(_root.effect_flash_mc);
layer7c = 180;
layer7 = 150;
layer4 = 9003;
_root.gui_player_hbar.duplicateMovieClip("hp_bar1", layer4 + 10);
_root.hud.duplicateMovieClip("hud1", layer4 + 1);
layer3 = 9002;
_root.debug.duplicateMovieClip("debug1", layer3 + 1);
layer2 = 100;
_root.char.duplicateMovieClip("char1", layer2 + 1);
_root.char1._x = 240;
_root.char1._y = 72;
Instance of Symbol 2093 MovieClip "floor_fader" in Frame 2
onClipEvent (enterFrame) {
_root.floor_fader1._x = 120;
_root.floor_fader1._y = 0;
this._y = 0;
}
Instance of Symbol 2115 MovieClip "mvp_halo" in Frame 2
onClipEvent (enterFrame) {
if (this._xscale >= 1200) {
this._x = -9999;
this._xscale = 100;
stopAllSounds();
_root.soundbgm1.gotoAndStop(_root.floor + 4);
_root.mvp_exit = 2;
this._visible = false;
}
if (_root.mvp_exit == 1) {
this._visible = true;
this._xscale = this._xscale + 20;
this._yscale = this._yscale + 20;
this._alpha = this._alpha - 15;
}
}
Instance of Symbol 2338 MovieClip "landmouse" in Frame 2
onClipEvent (enterFrame) {
if (_root.m_click_attack == 1) {
this._y = _root.mousetarget._y + 36;
this._x = _root.mousetarget._x - 12;
}
}
Instance of Symbol 2340 MovieClip "floormouse" in Frame 2
onClipEvent (enterFrame) {
if (this._x < (_root._xmouse + 12)) {
this._x = this._x + 24;
}
if (this._x > (_root._xmouse - 12)) {
this._x = this._x - 24;
}
if (this._y < (_root._ymouse + 12)) {
this._y = this._y + 24;
}
if (this._y > (_root._ymouse - 12)) {
this._y = this._y - 24;
}
}
Instance of Symbol 2349 MovieClip "player_hitpoints" in Frame 2
onClipEvent (load) {
if (_root.high == 1) {
this._visible = false;
}
}
Instance of Symbol 2353 MovieClip "nme_hitpoints" in Frame 2
onClipEvent (load) {
if (_root.high == 1) {
this._visible = false;
}
}
Instance of Symbol 2356 MovieClip "ambushnme_hitpoints" in Frame 2
onClipEvent (load) {
if (_root.high == 1) {
this._visible = false;
}
}
Instance of Symbol 1232 MovieClip "itemDropMouse" in Frame 2
onClipEvent (enterFrame) {
if (_root.itemNum[1] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.itemArraynum[1]);
}
}
Instance of Symbol 2715 MovieClip "ambushchar" in Frame 2
onClipEvent (enterFrame) {
if (_root.c_ambush == 1) {
if (ambushgfx == null) {
this._x = _root.ambushshadx;
this._y = _root.ambushshady;
this.gotoAndPlay(2);
this.ambush.gotoAndStop(_root.char1._currentframe);
this._xscale = -_root.char1._xscale;
ambushgfx = 1;
}
delete _root.c_ambush;
delete ambushgfx;
}
}
Instance of Symbol 61 MovieClip "npc_speak" in Frame 2
onClipEvent (load) {
line = 0;
dialogue = new Array();
txtcap = 0;
read = 1;
txt = " ";
_visible = true;
dialogue[0] = "Before we Begin..";
dialogue[1] = "Put on your Gear; Select 1-5 from the Item Bar--";
dialogue[2] = "Then..";
dialogue[3] = "Cast Buffs; Press F and Select 1-5 from the Spell List";
dialogue[4] = "Goodluck";
}
onClipEvent (enterFrame) {
if (Key.isDown(Key.getCode()) || (_root.m_input == 1)) {
if (txtstop == null) {
spdUp = 2.5;
}
diag_input = 1;
} else {
delete spdUp;
delete diag_input;
}
if (txtstop == 1) {
if ((diag_input == 1) && (spdUp == null)) {
read = 0;
line++;
delete txt_sign;
delete txtstop;
}
}
if (line == dialogue.length) {
_visible = false;
}
output = dialogue[line].toString();
if (read > dialogue[line].length) {
if (txt_sign == null) {
txt = txt + "..";
txt_sign = 1;
}
txtstop = 1;
} else if (read < dialogue[line].length) {
read = read + (0.8 + spdUp);
txt = output.slice(0, read).toString();
_root.soundeffect1.gotoAndStop(4);
}
}
Symbol 24 MovieClip Frame 34
removeMovieClip(this);
Symbol 52 MovieClip Frame 1
stop();
Symbol 52 MovieClip Frame 2
stop();
Symbol 52 MovieClip Frame 3
stop();
Symbol 52 MovieClip Frame 4
stop();
Symbol 71 MovieClip Frame 1
_root.soundspell1.gotoAndStop(3);
Symbol 71 MovieClip Frame 9
stop();
Symbol 72 MovieClip Frame 1
stop();
stop();
stop();
Symbol 72 MovieClip Frame 2
if (floorClear_bgm == null) {
_root.soundbgm1.gotoAndStop(20);
floorClear_bgm = 1;
}
delete _root.f_complete;
delete _root.whiteScreen_effect;
delete _root.floorComSound;
play();
_root.timeSet = 1;
Instance of Symbol 30 MovieClip in Symbol 72 MovieClip Frame 2
onClipEvent (enterFrame) {
_root.char1._x = 236;
_root.char1._y = 120;
}
Instance of Symbol 33 MovieClip in Symbol 72 MovieClip Frame 2
onClipEvent (enterFrame) {
delete _root.m_command;
}
Instance of Symbol 52 MovieClip in Symbol 72 MovieClip Frame 56
onClipEvent (load) {
this.gotoAndStop(_root.class);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.class);
}
Instance of Symbol 61 MovieClip "npc_speak" in Symbol 72 MovieClip Frame 70
onClipEvent (load) {
delete _root.firstTime;
delete _root.secondTime;
delete _root.thirdTime;
delete _root.fourthTime;
if (_root.floor >= 8) {
vrb = "You are doing well against the enemy, Fight on";
} else if (_root.floor >= 6) {
vrb = "Next time they attack, Double Click for more Damage";
} else {
if (_root.class == 1) {
vrb = "Rogues have an unmatched power, alone";
}
if (_root.class == 2) {
vrb = "A Fellow Warrior who is as Strong as I am";
}
if (_root.class == 3) {
vrb = "Mages are the backbone of any good Hunting party";
}
}
delete _root.FloorCompleted;
line = 0;
dialogue = new Array();
txtcap = 0;
read = 1;
txt = " ";
_visible = true;
dialogue[0] = "Good Job";
dialogue[1] = vrb;
}
onClipEvent (enterFrame) {
if (Key.isDown(Key.getCode()) || (_root.m_input == 1)) {
if (txtstop == null) {
spdUp = 2.5;
}
diag_input = 1;
} else {
delete spdUp;
delete diag_input;
}
if (txtstop == 1) {
if ((diag_input == 1) && (spdUp == null)) {
read = 0;
line++;
delete txt_sign;
delete txtstop;
}
}
if (line == dialogue.length) {
_parent.gotoAndPlay(155);
_visible = false;
if (_root.floor >= 3) {
_root.endDemo = 1;
}
} else {
_parent.stop();
}
output = dialogue[line].toString();
if (read > dialogue[line].length) {
if (txt_sign == null) {
txt = txt + "..";
txt_sign = 1;
}
txtstop = 1;
} else if (read < dialogue[line].length) {
read = read + (0.8 + spdUp);
txt = output.slice(0, read).toString();
_root.soundeffect1.gotoAndStop(4);
}
}
Symbol 72 MovieClip Frame 155
if (_root.endDemo == 1) {
} else {
_root.monLoadingScreen();
play();
}
Symbol 72 MovieClip Frame 170
delete floorClear_bgm;
stop();
this.removeMovieClip();
_parent.removeMovieClip();
Symbol 80 MovieClip Frame 1
stop();
Symbol 80 MovieClip Frame 2
stop();
Instance of Symbol 80 MovieClip in Symbol 81 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.cs_name_a == "Rogue") {
this.gotoAndStop(2);
} else if (_parent.cs_name_a == "Warrior") {
this.gotoAndStop(1);
}
}
Instance of Symbol 80 MovieClip in Symbol 81 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.cs_name_a == "Rogue") {
this.gotoAndStop(2);
} else if (_parent.cs_name_a == "Warrior") {
this.gotoAndStop(1);
}
}
Instance of Symbol 80 MovieClip in Symbol 81 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.cs_name_a == "Rogue") {
this.gotoAndStop(2);
} else if (_parent.cs_name_a == "Warrior") {
this.gotoAndStop(1);
}
}
Instance of Symbol 80 MovieClip in Symbol 81 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.cs_name_a == "Rogue") {
this.gotoAndStop(2);
} else if (_parent.cs_name_a == "Warrior") {
this.gotoAndStop(1);
}
}
Instance of Symbol 80 MovieClip in Symbol 81 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.cs_name_a == "Rogue") {
this.gotoAndStop(2);
} else if (_parent.cs_name_a == "Warrior") {
this.gotoAndStop(1);
}
}
Symbol 85 MovieClip Frame 1
stop();
Symbol 85 MovieClip Frame 56
stop();
Symbol 95 MovieClip Frame 2
if (_parent.confirm == 1) {
stop();
}
Symbol 97 MovieClip Frame 25
if (_parent.sel_confirm == 1) {
stop();
}
Symbol 124 MovieClip Frame 1
stop();
Symbol 124 MovieClip Frame 2
stop();
Symbol 124 MovieClip Frame 3
stop();
Symbol 124 MovieClip Frame 4
stop();
Symbol 124 MovieClip Frame 5
stop();
Symbol 124 MovieClip Frame 6
stop();
Symbol 124 MovieClip Frame 7
stop();
Symbol 124 MovieClip Frame 8
stop();
Symbol 124 MovieClip Frame 9
stop();
Symbol 124 MovieClip Frame 10
stop();
Symbol 124 MovieClip Frame 11
stop();
Symbol 124 MovieClip Frame 12
stop();
Instance of Symbol 124 MovieClip in Symbol 125 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Instance of Symbol 124 MovieClip in Symbol 125 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Instance of Symbol 124 MovieClip in Symbol 136 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Instance of Symbol 124 MovieClip in Symbol 151 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Instance of Symbol 124 MovieClip in Symbol 164 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Instance of Symbol 124 MovieClip in Symbol 177 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Instance of Symbol 124 MovieClip in Symbol 190 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Instance of Symbol 124 MovieClip in Symbol 197 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 206 MovieClip Frame 1
_parent.end = 1;
Instance of Symbol 124 MovieClip in Symbol 206 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 206 MovieClip Frame 6
delete _parent.end;
stop();
Symbol 217 MovieClip Frame 1
_parent.end = 1;
Instance of Symbol 124 MovieClip in Symbol 217 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 217 MovieClip Frame 6
delete _parent.end;
stop();
Symbol 226 MovieClip Frame 1
_parent.end = 1;
Instance of Symbol 124 MovieClip in Symbol 226 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 226 MovieClip Frame 7
delete _parent.end;
stop();
Symbol 237 MovieClip Frame 1
_parent.end = 1;
Instance of Symbol 124 MovieClip in Symbol 237 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 237 MovieClip Frame 6
delete _parent.end;
stop();
Symbol 246 MovieClip Frame 1
_parent.end = 1;
Instance of Symbol 124 MovieClip in Symbol 246 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 246 MovieClip Frame 5
delete _parent.end;
stop();
Instance of Symbol 124 MovieClip in Symbol 259 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Instance of Symbol 124 MovieClip in Symbol 272 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Instance of Symbol 124 MovieClip in Symbol 279 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Instance of Symbol 124 MovieClip in Symbol 292 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Instance of Symbol 124 MovieClip in Symbol 311 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 322 MovieClip Frame 1
_parent.end = 1;
Instance of Symbol 124 MovieClip in Symbol 322 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 322 MovieClip Frame 6
delete _parent.end;
stop();
Symbol 333 MovieClip Frame 1
_parent.end = 1;
Instance of Symbol 124 MovieClip in Symbol 333 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 333 MovieClip Frame 6
delete _parent.end;
stop();
Symbol 346 MovieClip Frame 1
_parent.end = 1;
Instance of Symbol 124 MovieClip in Symbol 346 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 346 MovieClip Frame 6
delete _parent.end;
stop();
Symbol 357 MovieClip Frame 1
_parent.end = 1;
Instance of Symbol 124 MovieClip in Symbol 357 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 357 MovieClip Frame 6
delete _parent.end;
stop();
Symbol 366 MovieClip Frame 1
_parent.end = 1;
Instance of Symbol 124 MovieClip in Symbol 366 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 366 MovieClip Frame 5
delete _parent.end;
stop();
Instance of Symbol 124 MovieClip in Symbol 379 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Instance of Symbol 124 MovieClip in Symbol 392 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Instance of Symbol 124 MovieClip in Symbol 409 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Instance of Symbol 124 MovieClip in Symbol 422 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Instance of Symbol 124 MovieClip in Symbol 435 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 449 MovieClip Frame 1
_parent.end = 1;
Instance of Symbol 124 MovieClip in Symbol 449 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 449 MovieClip Frame 6
delete _parent.end;
stop();
Symbol 460 MovieClip Frame 1
_parent.end = 1;
Instance of Symbol 124 MovieClip in Symbol 460 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 460 MovieClip Frame 6
delete _parent.end;
stop();
Symbol 473 MovieClip Frame 1
_parent.end = 1;
Instance of Symbol 124 MovieClip in Symbol 473 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 473 MovieClip Frame 7
delete _parent.end;
stop();
Symbol 484 MovieClip Frame 1
_parent.end = 1;
Instance of Symbol 124 MovieClip in Symbol 484 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 484 MovieClip Frame 6
delete _parent.end;
stop();
Symbol 493 MovieClip Frame 1
_parent.end = 1;
Symbol 493 MovieClip Frame 5
delete _parent.end;
stop();
Instance of Symbol 124 MovieClip in Symbol 506 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Instance of Symbol 124 MovieClip in Symbol 519 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Instance of Symbol 124 MovieClip in Symbol 530 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Instance of Symbol 124 MovieClip in Symbol 541 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Instance of Symbol 124 MovieClip in Symbol 554 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Instance of Symbol 124 MovieClip in Symbol 561 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 570 MovieClip Frame 1
_parent.end = 1;
Instance of Symbol 124 MovieClip in Symbol 570 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 570 MovieClip Frame 6
delete _parent.end;
stop();
Symbol 581 MovieClip Frame 1
_parent.end = 1;
Instance of Symbol 124 MovieClip in Symbol 581 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 581 MovieClip Frame 6
delete _parent.end;
stop();
Symbol 594 MovieClip Frame 1
_parent.end = 1;
Instance of Symbol 124 MovieClip in Symbol 594 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 594 MovieClip Frame 8
delete _parent.end;
stop();
Symbol 605 MovieClip Frame 1
_parent.end = 1;
Instance of Symbol 124 MovieClip in Symbol 605 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 605 MovieClip Frame 6
delete _parent.end;
stop();
Symbol 614 MovieClip Frame 1
_parent.end = 1;
Instance of Symbol 124 MovieClip in Symbol 614 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 614 MovieClip Frame 5
delete _parent.end;
stop();
Symbol 617 MovieClip Frame 1
stop();
Symbol 617 MovieClip Frame 2
stop();
Symbol 617 MovieClip Frame 3
stop();
Symbol 617 MovieClip Frame 4
stop();
Symbol 617 MovieClip Frame 5
stop();
Symbol 617 MovieClip Frame 6
stop();
Symbol 617 MovieClip Frame 7
stop();
Symbol 617 MovieClip Frame 8
stop();
Symbol 617 MovieClip Frame 9
stop();
Symbol 617 MovieClip Frame 10
stop();
Symbol 617 MovieClip Frame 11
stop();
Symbol 617 MovieClip Frame 12
stop();
Instance of Symbol 617 MovieClip in Symbol 628 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Instance of Symbol 617 MovieClip in Symbol 641 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Instance of Symbol 617 MovieClip in Symbol 652 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Instance of Symbol 617 MovieClip in Symbol 665 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Instance of Symbol 617 MovieClip in Symbol 678 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Instance of Symbol 617 MovieClip in Symbol 683 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 692 MovieClip Frame 1
_parent.end = 1;
Instance of Symbol 617 MovieClip in Symbol 692 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 692 MovieClip Frame 6
delete _parent.end;
stop();
Symbol 703 MovieClip Frame 1
_parent.end = 1;
Instance of Symbol 617 MovieClip in Symbol 703 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 703 MovieClip Frame 6
delete _parent.end;
stop();
Symbol 716 MovieClip Frame 1
_parent.end = 1;
Instance of Symbol 617 MovieClip in Symbol 716 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 716 MovieClip Frame 7
delete _parent.end;
stop();
Symbol 727 MovieClip Frame 1
_parent.end = 1;
Instance of Symbol 617 MovieClip in Symbol 727 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 727 MovieClip Frame 6
delete _parent.end;
stop();
Symbol 736 MovieClip Frame 1
_parent.end = 1;
Instance of Symbol 617 MovieClip in Symbol 736 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 736 MovieClip Frame 5
delete _parent.end;
stop();
Symbol 739 MovieClip Frame 1
stop();
Symbol 739 MovieClip Frame 2
stop();
Symbol 739 MovieClip Frame 3
stop();
Symbol 739 MovieClip Frame 4
stop();
Symbol 739 MovieClip Frame 5
stop();
Symbol 739 MovieClip Frame 6
stop();
Symbol 739 MovieClip Frame 7
stop();
Symbol 739 MovieClip Frame 8
stop();
Symbol 739 MovieClip Frame 9
stop();
Symbol 739 MovieClip Frame 10
stop();
Symbol 739 MovieClip Frame 11
stop();
Symbol 739 MovieClip Frame 12
stop();
Instance of Symbol 739 MovieClip in Symbol 750 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Instance of Symbol 739 MovieClip in Symbol 763 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Instance of Symbol 739 MovieClip in Symbol 770 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Instance of Symbol 739 MovieClip in Symbol 783 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Instance of Symbol 739 MovieClip in Symbol 796 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Instance of Symbol 739 MovieClip in Symbol 801 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 810 MovieClip Frame 1
_parent.end = 1;
Instance of Symbol 739 MovieClip in Symbol 810 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 810 MovieClip Frame 6
delete _parent.end;
stop();
Symbol 821 MovieClip Frame 1
_parent.end = 1;
Instance of Symbol 739 MovieClip in Symbol 821 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 821 MovieClip Frame 6
delete _parent.end;
stop();
Symbol 834 MovieClip Frame 1
_parent.end = 1;
Instance of Symbol 739 MovieClip in Symbol 834 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 834 MovieClip Frame 7
delete _parent.end;
stop();
Symbol 845 MovieClip Frame 1
_parent.end = 1;
Instance of Symbol 739 MovieClip in Symbol 845 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 845 MovieClip Frame 6
delete _parent.end;
stop();
Symbol 854 MovieClip Frame 1
_parent.end = 1;
Instance of Symbol 739 MovieClip in Symbol 854 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 854 MovieClip Frame 5
delete _parent.end;
stop();
Symbol 855 MovieClip Frame 1
stop();
Symbol 855 MovieClip Frame 2
stop();
Symbol 855 MovieClip Frame 3
stop();
Symbol 855 MovieClip Frame 4
stop();
Symbol 855 MovieClip Frame 5
stop();
Symbol 855 MovieClip Frame 6
stop();
Instance of Symbol 124 MovieClip in Symbol 855 MovieClip Frame 6
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 855 MovieClip Frame 7
stop();
Instance of Symbol 124 MovieClip in Symbol 855 MovieClip Frame 7
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 855 MovieClip Frame 8
stop();
Instance of Symbol 124 MovieClip in Symbol 855 MovieClip Frame 8
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 855 MovieClip Frame 9
stop();
Instance of Symbol 124 MovieClip in Symbol 855 MovieClip Frame 9
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 855 MovieClip Frame 10
stop();
Symbol 855 MovieClip Frame 11
stop();
Symbol 855 MovieClip Frame 12
stop();
Symbol 855 MovieClip Frame 13
stop();
Symbol 855 MovieClip Frame 14
stop();
Symbol 855 MovieClip Frame 15
stop();
Symbol 855 MovieClip Frame 16
stop();
Symbol 855 MovieClip Frame 17
stop();
Symbol 855 MovieClip Frame 18
stop();
Symbol 855 MovieClip Frame 19
stop();
Symbol 855 MovieClip Frame 20
stop();
Symbol 855 MovieClip Frame 21
stop();
Symbol 855 MovieClip Frame 22
stop();
Symbol 855 MovieClip Frame 23
stop();
Symbol 855 MovieClip Frame 24
stop();
Symbol 855 MovieClip Frame 25
stop();
Symbol 855 MovieClip Frame 26
stop();
Instance of Symbol 124 MovieClip in Symbol 855 MovieClip Frame 26
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Instance of Symbol 124 MovieClip in Symbol 855 MovieClip Frame 26
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 855 MovieClip Frame 27
stop();
Instance of Symbol 124 MovieClip in Symbol 855 MovieClip Frame 27
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 855 MovieClip Frame 28
stop();
Instance of Symbol 124 MovieClip in Symbol 855 MovieClip Frame 28
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 855 MovieClip Frame 29
stop();
Instance of Symbol 124 MovieClip in Symbol 855 MovieClip Frame 29
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 855 MovieClip Frame 30
stop();
Instance of Symbol 124 MovieClip in Symbol 855 MovieClip Frame 30
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 855 MovieClip Frame 31
stop();
Symbol 855 MovieClip Frame 32
stop();
Symbol 855 MovieClip Frame 33
stop();
Symbol 855 MovieClip Frame 34
stop();
Symbol 855 MovieClip Frame 35
stop();
Symbol 855 MovieClip Frame 36
stop();
Symbol 855 MovieClip Frame 37
stop();
Symbol 855 MovieClip Frame 38
stop();
Symbol 855 MovieClip Frame 39
stop();
Symbol 855 MovieClip Frame 40
stop();
Symbol 855 MovieClip Frame 41
stop();
Symbol 855 MovieClip Frame 42
stop();
Symbol 855 MovieClip Frame 43
stop();
Symbol 855 MovieClip Frame 44
stop();
Symbol 855 MovieClip Frame 45
stop();
Symbol 855 MovieClip Frame 46
stop();
Instance of Symbol 124 MovieClip in Symbol 855 MovieClip Frame 46
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 855 MovieClip Frame 47
stop();
Instance of Symbol 124 MovieClip in Symbol 855 MovieClip Frame 47
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 855 MovieClip Frame 48
stop();
Instance of Symbol 124 MovieClip in Symbol 855 MovieClip Frame 48
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 855 MovieClip Frame 49
stop();
Instance of Symbol 124 MovieClip in Symbol 855 MovieClip Frame 49
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 855 MovieClip Frame 50
stop();
Symbol 855 MovieClip Frame 51
stop();
Symbol 855 MovieClip Frame 52
stop();
Symbol 855 MovieClip Frame 53
stop();
Symbol 855 MovieClip Frame 54
stop();
Symbol 855 MovieClip Frame 55
stop();
Symbol 855 MovieClip Frame 56
stop();
Symbol 855 MovieClip Frame 57
stop();
Symbol 855 MovieClip Frame 58
stop();
Symbol 855 MovieClip Frame 59
stop();
Symbol 855 MovieClip Frame 60
stop();
Symbol 855 MovieClip Frame 61
stop();
Symbol 855 MovieClip Frame 62
stop();
Symbol 855 MovieClip Frame 63
stop();
Symbol 855 MovieClip Frame 64
stop();
Symbol 855 MovieClip Frame 65
stop();
Symbol 855 MovieClip Frame 66
stop();
Instance of Symbol 124 MovieClip in Symbol 855 MovieClip Frame 66
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 855 MovieClip Frame 67
stop();
Instance of Symbol 124 MovieClip in Symbol 855 MovieClip Frame 67
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 855 MovieClip Frame 68
stop();
Instance of Symbol 124 MovieClip in Symbol 855 MovieClip Frame 68
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 855 MovieClip Frame 69
stop();
Instance of Symbol 124 MovieClip in Symbol 855 MovieClip Frame 69
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 855 MovieClip Frame 70
stop();
Symbol 855 MovieClip Frame 71
stop();
Symbol 855 MovieClip Frame 72
stop();
Symbol 855 MovieClip Frame 73
stop();
Symbol 855 MovieClip Frame 74
stop();
Symbol 855 MovieClip Frame 75
stop();
Symbol 855 MovieClip Frame 76
stop();
Symbol 855 MovieClip Frame 77
stop();
Symbol 855 MovieClip Frame 78
stop();
Symbol 855 MovieClip Frame 79
stop();
Symbol 855 MovieClip Frame 80
stop();
Symbol 855 MovieClip Frame 81
stop();
Symbol 855 MovieClip Frame 82
stop();
Symbol 855 MovieClip Frame 83
stop();
Symbol 855 MovieClip Frame 84
stop();
Symbol 855 MovieClip Frame 85
stop();
Symbol 855 MovieClip Frame 86
stop();
Instance of Symbol 617 MovieClip in Symbol 855 MovieClip Frame 86
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 855 MovieClip Frame 87
stop();
Instance of Symbol 617 MovieClip in Symbol 855 MovieClip Frame 87
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 855 MovieClip Frame 88
stop();
Instance of Symbol 617 MovieClip in Symbol 855 MovieClip Frame 88
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 855 MovieClip Frame 89
stop();
Instance of Symbol 617 MovieClip in Symbol 855 MovieClip Frame 89
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 855 MovieClip Frame 90
stop();
Symbol 855 MovieClip Frame 91
stop();
Symbol 855 MovieClip Frame 92
stop();
Symbol 855 MovieClip Frame 93
stop();
Symbol 855 MovieClip Frame 94
stop();
Symbol 855 MovieClip Frame 95
stop();
Symbol 855 MovieClip Frame 96
stop();
Symbol 855 MovieClip Frame 97
stop();
Symbol 855 MovieClip Frame 98
stop();
Symbol 855 MovieClip Frame 99
stop();
Symbol 855 MovieClip Frame 100
stop();
Symbol 855 MovieClip Frame 101
stop();
Symbol 855 MovieClip Frame 102
stop();
Symbol 855 MovieClip Frame 103
stop();
Symbol 855 MovieClip Frame 104
stop();
Symbol 855 MovieClip Frame 105
stop();
Symbol 855 MovieClip Frame 106
stop();
Instance of Symbol 739 MovieClip in Symbol 855 MovieClip Frame 106
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 855 MovieClip Frame 107
stop();
Instance of Symbol 739 MovieClip in Symbol 855 MovieClip Frame 107
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 855 MovieClip Frame 108
stop();
Instance of Symbol 739 MovieClip in Symbol 855 MovieClip Frame 108
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 855 MovieClip Frame 109
stop();
Instance of Symbol 739 MovieClip in Symbol 855 MovieClip Frame 109
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 855 MovieClip Frame 110
stop();
Symbol 855 MovieClip Frame 111
stop();
Symbol 855 MovieClip Frame 112
stop();
Symbol 855 MovieClip Frame 113
stop();
Symbol 855 MovieClip Frame 114
stop();
Symbol 855 MovieClip Frame 115
stop();
Symbol 855 MovieClip Frame 116
stop();
Symbol 855 MovieClip Frame 117
stop();
Symbol 855 MovieClip Frame 118
stop();
Symbol 855 MovieClip Frame 119
stop();
Symbol 855 MovieClip Frame 120
stop();
Symbol 862 Button
on (rollOver) {
if (_parent.sel_confirm == null) {
if (_root.mc_cs_select._currentframe == 25) {
_root.soundeffect1.gotoAndStop(2);
_parent.gotoAndStop(1);
}
}
}
on (press) {
_root.class = 1;
_parent.sel_confirm = 1;
}
Symbol 863 Button
on (rollOver) {
if (_parent.sel_confirm == null) {
if (_root.mc_cs_select._currentframe == 25) {
_root.soundeffect1.gotoAndStop(2);
_parent.gotoAndStop(2);
}
}
}
on (press) {
_root.class = 2;
_parent.sel_confirm = 1;
}
Symbol 864 Button
on (rollOver) {
if (_parent.sel_confirm == null) {
if (_root.mc_cs_select._currentframe == 25) {
_root.soundeffect1.gotoAndStop(2);
_parent.gotoAndStop(3);
}
}
}
on (press) {
_root.class = 3;
_parent.sel_confirm = 1;
}
Symbol 865 Button
on (rollOver) {
if (_parent.sel_confirm == null) {
if (_root.mc_cs_select._currentframe == 25) {
_root.soundeffect1.gotoAndStop(2);
_parent.gotoAndStop(4);
}
}
}
on (press) {
_root.class = 4;
_parent.sel_confirm = 1;
}
Symbol 875 MovieClip Frame 1
stop();
Instance of Symbol 95 MovieClip in Symbol 875 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.confirm == 1) {
this._visible = true;
} else {
this._visible = false;
}
if (Key.isDown(13)) {
_parent.confirm = 1;
}
}
Instance of Symbol 97 MovieClip in Symbol 875 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.sel_confirm == 1) {
if (_parent.mc_play == null) {
_parent._parent.gotoAndPlay(38);
_root.class = 1;
_root.Item_List();
_root.soundeffect1.gotoAndStop(3);
_parent.mc_play = 1;
}
this._visible = true;
} else {
this._visible = false;
}
if (!Key.isDown(32)) {
selectchar = 1;
}
if (Key.isDown(32) && (selectchar == 1)) {
_parent.sel_confirm = 1;
delete selectchar;
}
}
Instance of Symbol 855 MovieClip "char" in Symbol 875 MovieClip Frame 1
onClipEvent (load) {
frameplus = 1;
}
onClipEvent (enterFrame) {
if (rotate >= 1) {
delete rotate;
if (frameplus >= 5) {
delete frameplus;
} else {
frameplus++;
}
this.gotoAndStop(104 + frameplus);
} else {
rotate++;
}
_root.shield = 8;
}
Instance of Symbol 855 MovieClip "char" in Symbol 875 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(103);
_root.shield = 8;
}
Instance of Symbol 855 MovieClip "char" in Symbol 875 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(103);
_root.shield = 8;
}
Instance of Symbol 855 MovieClip "char" in Symbol 875 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(103);
_root.shield = 8;
}
Instance of Symbol 855 MovieClip "char" in Symbol 875 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(103);
_root.shield = 8;
}
Instance of Symbol 855 MovieClip "char" in Symbol 875 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(103);
_root.shield = 8;
}
Instance of Symbol 866 MovieClip "rollOver" in Symbol 875 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.confirm == null) {
if (Key.isDown(37)) {
if (l_input == null) {
_root.soundeffect1.gotoAndStop(2);
_parent.prevFrame();
l_input = 1;
}
} else {
delete l_input;
}
if (Key.isDown(39)) {
if (r_input == null) {
_root.soundeffect1.gotoAndStop(2);
_parent.nextFrame();
r_input = 1;
}
} else {
delete r_input;
}
}
}
Symbol 875 MovieClip Frame 2
stop();
Instance of Symbol 97 MovieClip in Symbol 875 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_parent.sel_confirm == 1) {
if (_parent.mc_play == null) {
_parent._parent.gotoAndPlay(38);
_root.class = 2;
_root.Item_List();
_root.soundeffect1.gotoAndStop(3);
_parent.mc_play = 1;
}
this._visible = true;
} else {
this._visible = false;
}
if (!Key.isDown(32)) {
selectchar = 1;
}
if (Key.isDown(32) && (selectchar == 1)) {
_parent.sel_confirm = 1;
delete selectchar;
}
}
Instance of Symbol 855 MovieClip "char" in Symbol 875 MovieClip Frame 2
onClipEvent (load) {
frameplus = 1;
}
onClipEvent (enterFrame) {
if (rotate >= 1) {
delete rotate;
if (frameplus >= 5) {
delete frameplus;
} else {
frameplus++;
}
this.gotoAndStop(61 + frameplus);
} else {
rotate++;
}
_root.shield = 1;
}
Instance of Symbol 855 MovieClip "char" in Symbol 875 MovieClip Frame 2
onClipEvent (enterFrame) {
this.gotoAndStop(63);
_root.shield = 1;
}
Instance of Symbol 855 MovieClip "char" in Symbol 875 MovieClip Frame 2
onClipEvent (enterFrame) {
this.gotoAndStop(63);
_root.shield = 1;
}
Instance of Symbol 855 MovieClip "char" in Symbol 875 MovieClip Frame 2
onClipEvent (enterFrame) {
this.gotoAndStop(63);
_root.shield = 1;
}
Instance of Symbol 855 MovieClip "char" in Symbol 875 MovieClip Frame 2
onClipEvent (enterFrame) {
this.gotoAndStop(63);
_root.shield = 1;
}
Instance of Symbol 855 MovieClip "char" in Symbol 875 MovieClip Frame 2
onClipEvent (enterFrame) {
this.gotoAndStop(63);
_root.shield = 13;
}
Symbol 875 MovieClip Frame 3
stop();
Instance of Symbol 97 MovieClip in Symbol 875 MovieClip Frame 3
onClipEvent (enterFrame) {
if (_parent.sel_confirm == 1) {
if (_parent.mc_play == null) {
_parent._parent.gotoAndPlay(38);
_root.class = 3;
_root.Item_List();
_root.soundeffect1.gotoAndStop(3);
_parent.mc_play = 1;
}
this._visible = true;
} else {
this._visible = false;
}
if (!Key.isDown(32)) {
selectchar = 1;
}
if (Key.isDown(32) && (selectchar == 1)) {
_parent.sel_confirm = 1;
delete selectchar;
}
}
Instance of Symbol 855 MovieClip "char" in Symbol 875 MovieClip Frame 3
onClipEvent (load) {
frameplus = 1;
}
onClipEvent (enterFrame) {
if (rotate >= 1) {
delete rotate;
if (frameplus >= 5) {
delete frameplus;
} else {
frameplus++;
}
this.gotoAndStop(0 + frameplus);
} else {
rotate++;
}
_root.shield = 13;
}
Instance of Symbol 855 MovieClip "char" in Symbol 875 MovieClip Frame 3
onClipEvent (enterFrame) {
this.gotoAndStop(3);
_root.shield = 13;
}
Instance of Symbol 855 MovieClip "char" in Symbol 875 MovieClip Frame 3
onClipEvent (enterFrame) {
this.gotoAndStop(3);
_root.shield = 13;
}
Instance of Symbol 855 MovieClip "char" in Symbol 875 MovieClip Frame 3
onClipEvent (enterFrame) {
this.gotoAndStop(3);
_root.shield = 13;
}
Instance of Symbol 855 MovieClip "char" in Symbol 875 MovieClip Frame 3
onClipEvent (enterFrame) {
this.gotoAndStop(3);
_root.shield = 13;
}
Instance of Symbol 855 MovieClip "char" in Symbol 875 MovieClip Frame 3
onClipEvent (enterFrame) {
this.gotoAndStop(3);
_root.shield = 13;
}
Symbol 1118 MovieClip Frame 1
stop();
Symbol 1118 MovieClip Frame 2
stop();
Instance of Symbol 1118 MovieClip in Symbol 1180 MovieClip Frame 39
onClipEvent (enterFrame) {
if (_root["npc_window_" + windowNum]._currentframe == 3) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
Symbol 1189 MovieClip Frame 1
stop();
stop();
Instance of Symbol 1180 MovieClip "desc" in Symbol 1190 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(39);
}
onClipEvent (enterFrame) {
if (_root["npc_window_" + windowNum]._currentframe == 3) {
this.gotoAndStop(_root.itemArraynum[_root.keys]);
} else if (_root.mouseequip == 1) {
if (_root.equipArray[_root.mouseinfo] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.equipArray[_root.mouseinfo]);
}
} else if (_root.mousespell == 1) {
if (_root.spellArray[_root.mouseinfo] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.spellArray[_root.mouseinfo]);
}
} else if (_root.itemArraynum[_root.mouseinfo] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.itemArraynum[_root.mouseinfo]);
}
}
Instance of Symbol 1189 MovieClip in Symbol 1190 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(1);
}
onClipEvent (enterFrame) {
if (_root.mouseequip == 1) {
if (_parent.desc._currentframe == 39) {
} else {
this.gotoAndStop(2);
}
} else if (_root.mousespell == 1) {
} else if (_parent.desc._currentframe == 39) {
} else {
this.gotoAndStop(2);
}
}
Symbol 1232 MovieClip Frame 1
stop();
Symbol 1232 MovieClip Frame 2
stop();
Symbol 1232 MovieClip Frame 3
stop();
Symbol 1232 MovieClip Frame 4
stop();
Symbol 1232 MovieClip Frame 5
stop();
Symbol 1232 MovieClip Frame 6
stop();
Symbol 1232 MovieClip Frame 7
stop();
Symbol 1232 MovieClip Frame 8
stop();
Symbol 1232 MovieClip Frame 9
stop();
Symbol 1232 MovieClip Frame 10
stop();
Symbol 1232 MovieClip Frame 11
stop();
Symbol 1232 MovieClip Frame 12
stop();
Symbol 1232 MovieClip Frame 13
stop();
Symbol 1232 MovieClip Frame 14
stop();
Symbol 1232 MovieClip Frame 15
stop();
Symbol 1232 MovieClip Frame 16
stop();
Symbol 1232 MovieClip Frame 17
stop();
Symbol 1232 MovieClip Frame 18
stop();
Symbol 1232 MovieClip Frame 19
stop();
Symbol 1232 MovieClip Frame 20
stop();
Symbol 1232 MovieClip Frame 21
stop();
Symbol 1232 MovieClip Frame 22
Symbol 1234 MovieClip Frame 1
stop();
Symbol 1234 MovieClip Frame 2
play();
Instance of Symbol 1232 MovieClip "spell1" in Symbol 1234 MovieClip Frame 2
onClipEvent (load) {
if (_root.spellArray[1] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.spellArray[1]);
}
}
onClipEvent (enterFrame) {
if (_root.spellArray[1] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.spellArray[1]);
}
}
Instance of Symbol 1232 MovieClip "spell2" in Symbol 1234 MovieClip Frame 2
onClipEvent (load) {
if (_root.spellArray[2] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.spellArray[2]);
}
}
onClipEvent (enterFrame) {
if (_root.spellArray[2] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.spellArray[2]);
}
}
Instance of Symbol 1232 MovieClip "spell3" in Symbol 1234 MovieClip Frame 2
onClipEvent (load) {
if (_root.spellArray[3] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.spellArray[3]);
}
}
onClipEvent (enterFrame) {
if (_root.spellArray[3] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.spellArray[3]);
}
}
Instance of Symbol 1232 MovieClip "spell4" in Symbol 1234 MovieClip Frame 2
onClipEvent (load) {
if (_root.spellArray[4] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.spellArray[4]);
}
}
onClipEvent (enterFrame) {
if (_root.spellArray[4] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.spellArray[4]);
}
}
Instance of Symbol 1232 MovieClip "spell5" in Symbol 1234 MovieClip Frame 2
onClipEvent (load) {
if (_root.spellArray[5] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.spellArray[5]);
}
}
onClipEvent (enterFrame) {
if (_root.spellArray[5] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.spellArray[5]);
}
}
Symbol 1234 MovieClip Frame 9
gotoAndStop (3);
Symbol 1250 Button
on (press, keyPress "s") {
if (_parent._currentframe < 53) {
gotoAndStop (2);
confirmItem.gotoAndPlay(2);
_root.soundeffect1.gotoAndPlay(3);
_parent.gotoAndPlay(53);
}
}
Symbol 1251 Button
on (press, keyPress "d") {
if (_parent._currentframe < 53) {
delete eval (_root.Item_List());
delete _root.itemArray;
delete _root.spellArray;
delete _root.class;
delete _parent.buttons.mc_play;
delete _parent.buttons.sel_confirm;
delete _parent.buttons.confirm;
_parent.gotoAndStop(1);
}
}
Symbol 1252 Button
on (press, keyPress "a") {
if (_parent._currentframe < 53) {
gotoAndStop (2);
confirmItem.gotoAndPlay(2);
_root.soundeffect1.gotoAndPlay(3);
_parent.gotoAndPlay(53);
if (_root.class == 3) {
_root.spellArray[1] = 42;
_root.spellArray[2] = 60;
_root.spellArray[3] = 40;
_root.spellArray[4] = 41;
_root.spellArray[5] = 39;
}
if (_root.class == 2) {
_root.spellArray[1] = 56;
_root.spellArray[2] = 50;
_root.spellArray[3] = 40;
_root.spellArray[4] = 41;
_root.spellArray[5] = null;
_root.spellArray[6] = 57;
_root.spellArray[7] = null;
} else if (_root.class == 1) {
_root.spellArray[1] = 53;
_root.spellArray[2] = 50;
_root.spellArray[3] = 43;
_root.spellArray[4] = 40;
_root.spellArray[5] = 41;
_root.spellArray[6] = 58;
_root.spellArray[7] = null;
}
}
}
Symbol 1264 MovieClip Frame 1
stop();
Instance of Symbol 1232 MovieClip "item_1" in Symbol 1264 MovieClip Frame 2
onClipEvent (load) {
this.number = _root.ItemNum[1];
if (_root.itemArraynum[1] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.itemArraynum[1]);
}
}
onClipEvent (enterFrame) {
this.number = _root.ItemNum[1];
if (_root.itemArraynum[1] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.itemArraynum[1]);
}
}
Instance of Symbol 1232 MovieClip "item_2" in Symbol 1264 MovieClip Frame 2
onClipEvent (load) {
this.number = _root.ItemNum[2];
if (_root.itemArraynum[2] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.itemArraynum[2]);
}
}
onClipEvent (enterFrame) {
this.number = _root.ItemNum[2];
if (_root.itemArraynum[2] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.itemArraynum[2]);
}
}
Instance of Symbol 1232 MovieClip "item_3" in Symbol 1264 MovieClip Frame 2
onClipEvent (load) {
this.number = _root.ItemNum[3];
if (_root.itemArraynum[3] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.itemArraynum[3]);
}
}
onClipEvent (enterFrame) {
this.number = _root.ItemNum[3];
if (_root.itemArraynum[3] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.itemArraynum[3]);
}
}
Instance of Symbol 1232 MovieClip "item_4" in Symbol 1264 MovieClip Frame 2
onClipEvent (load) {
this.number = _root.ItemNum[4];
if (_root.itemArraynum[4] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.itemArraynum[4]);
}
}
onClipEvent (enterFrame) {
this.number = _root.ItemNum[4];
if (_root.itemArraynum[4] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.itemArraynum[4]);
}
}
Instance of Symbol 1232 MovieClip "item_5" in Symbol 1264 MovieClip Frame 2
onClipEvent (load) {
this.number = _root.ItemNum[5];
if (_root.itemArraynum[5] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.itemArraynum[5]);
}
}
onClipEvent (enterFrame) {
this.number = _root.ItemNum[5];
if (_root.itemArraynum[5] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.itemArraynum[5]);
}
}
Instance of Symbol 1232 MovieClip "item_1" in Symbol 1264 MovieClip Frame 4
onClipEvent (load) {
this.number = _root.ItemNum[1];
if (_root.itemArraynum[1] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.itemArraynum[1]);
}
}
onClipEvent (enterFrame) {
this.number = _root.ItemNum[1];
if (_root.itemArraynum[1] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.itemArraynum[1]);
}
}
Instance of Symbol 1232 MovieClip "item_2" in Symbol 1264 MovieClip Frame 4
onClipEvent (load) {
this.number = _root.ItemNum[2];
if (_root.itemArraynum[2] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.itemArraynum[2]);
}
}
onClipEvent (enterFrame) {
this.number = _root.ItemNum[2];
if (_root.itemArraynum[2] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.itemArraynum[2]);
}
}
Instance of Symbol 1232 MovieClip "item_3" in Symbol 1264 MovieClip Frame 4
onClipEvent (load) {
this.number = _root.ItemNum[3];
if (_root.itemArraynum[3] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.itemArraynum[3]);
}
}
onClipEvent (enterFrame) {
this.number = _root.ItemNum[3];
if (_root.itemArraynum[3] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.itemArraynum[3]);
}
}
Instance of Symbol 1232 MovieClip "item_4" in Symbol 1264 MovieClip Frame 4
onClipEvent (load) {
this.number = _root.ItemNum[4];
if (_root.itemArraynum[4] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.itemArraynum[4]);
}
}
onClipEvent (enterFrame) {
this.number = _root.ItemNum[4];
if (_root.itemArraynum[4] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.itemArraynum[4]);
}
}
Instance of Symbol 1232 MovieClip "item_5" in Symbol 1264 MovieClip Frame 4
onClipEvent (load) {
this.number = _root.ItemNum[5];
if (_root.itemArraynum[5] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.itemArraynum[5]);
}
}
onClipEvent (enterFrame) {
this.number = _root.ItemNum[5];
if (_root.itemArraynum[5] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.itemArraynum[5]);
}
}
Instance of Symbol 1232 MovieClip "item_1" in Symbol 1264 MovieClip Frame 6
onClipEvent (load) {
this.number = _root.ItemNum[1];
if (_root.itemArraynum[1] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.itemArraynum[1]);
}
}
onClipEvent (enterFrame) {
this.number = _root.ItemNum[1];
if (_root.itemArraynum[1] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.itemArraynum[1]);
}
}
Instance of Symbol 1232 MovieClip "item_2" in Symbol 1264 MovieClip Frame 6
onClipEvent (load) {
this.number = _root.ItemNum[2];
if (_root.itemArraynum[2] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.itemArraynum[2]);
}
}
onClipEvent (enterFrame) {
this.number = _root.ItemNum[2];
if (_root.itemArraynum[2] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.itemArraynum[2]);
}
}
Instance of Symbol 1232 MovieClip "item_3" in Symbol 1264 MovieClip Frame 6
onClipEvent (load) {
this.number = _root.ItemNum[3];
if (_root.itemArraynum[3] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.itemArraynum[3]);
}
}
onClipEvent (enterFrame) {
this.number = _root.ItemNum[3];
if (_root.itemArraynum[3] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.itemArraynum[3]);
}
}
Instance of Symbol 1232 MovieClip "item_4" in Symbol 1264 MovieClip Frame 6
onClipEvent (load) {
this.number = _root.ItemNum[4];
if (_root.itemArraynum[4] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.itemArraynum[4]);
}
}
onClipEvent (enterFrame) {
this.number = _root.ItemNum[4];
if (_root.itemArraynum[4] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.itemArraynum[4]);
}
}
Instance of Symbol 1232 MovieClip "item_5" in Symbol 1264 MovieClip Frame 6
onClipEvent (load) {
this.number = _root.ItemNum[5];
if (_root.itemArraynum[5] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.itemArraynum[5]);
}
}
onClipEvent (enterFrame) {
this.number = _root.ItemNum[5];
if (_root.itemArraynum[5] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.itemArraynum[5]);
}
}
Instance of Symbol 1232 MovieClip "item_1" in Symbol 1264 MovieClip Frame 8
onClipEvent (load) {
this.number = _root.ItemNum[1];
if (_root.itemArraynum[1] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.itemArraynum[1]);
}
}
onClipEvent (enterFrame) {
this.number = _root.ItemNum[1];
if (_root.itemArraynum[1] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.itemArraynum[1]);
}
}
Instance of Symbol 1232 MovieClip "item_2" in Symbol 1264 MovieClip Frame 8
onClipEvent (load) {
this.number = _root.ItemNum[2];
if (_root.itemArraynum[2] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.itemArraynum[2]);
}
}
onClipEvent (enterFrame) {
this.number = _root.ItemNum[2];
if (_root.itemArraynum[2] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.itemArraynum[2]);
}
}
Instance of Symbol 1232 MovieClip "item_3" in Symbol 1264 MovieClip Frame 8
onClipEvent (load) {
this.number = _root.ItemNum[3];
if (_root.itemArraynum[3] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.itemArraynum[3]);
}
}
onClipEvent (enterFrame) {
this.number = _root.ItemNum[3];
if (_root.itemArraynum[3] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.itemArraynum[3]);
}
}
Instance of Symbol 1232 MovieClip "item_4" in Symbol 1264 MovieClip Frame 8
onClipEvent (load) {
this.number = _root.ItemNum[4];
if (_root.itemArraynum[4] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.itemArraynum[4]);
}
}
onClipEvent (enterFrame) {
this.number = _root.ItemNum[4];
if (_root.itemArraynum[4] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.itemArraynum[4]);
}
}
Instance of Symbol 1232 MovieClip "item_5" in Symbol 1264 MovieClip Frame 8
onClipEvent (load) {
this.number = _root.ItemNum[5];
if (_root.itemArraynum[5] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.itemArraynum[5]);
}
}
onClipEvent (enterFrame) {
this.number = _root.ItemNum[5];
if (_root.itemArraynum[5] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.itemArraynum[5]);
}
}
Symbol 1265 Button
on (press, keyPress "s") {
if (_parent._currentframe < 57) {
_parent.gotoAndPlay(57);
confirmItembar.gotoAndPlay(2);
_root.soundeffect1.gotoAndPlay(3);
gotoAndStop (3);
}
}
Symbol 1266 Button
on (press, keyPress "d") {
if (_parent._currentframe < 57) {
_parent.gotoAndStop(52);
gotoAndStop (1);
if (_root.class == 2) {
_root.InventoryI[1] = 56;
_root.InventoryI[2] = 50;
_root.InventoryI[3] = 40;
_root.InventoryI[4] = 41;
_root.InventoryI[5] = null;
_root.InventoryI[6] = null;
_root.InventoryI[7] = null;
_root.InventoryI[8] = null;
_root.InventoryI[9] = null;
_root.InventoryI[10] = null;
} else if (_root.class == 1) {
_root.InventoryI[1] = 53;
_root.InventoryI[2] = 50;
_root.InventoryI[3] = 43;
_root.InventoryI[4] = 40;
_root.InventoryI[5] = 41;
_root.InventoryI[6] = null;
_root.InventoryI[7] = null;
_root.InventoryI[8] = null;
_root.InventoryI[9] = null;
_root.InventoryI[10] = null;
}
}
}
Symbol 1267 Button
on (press, keyPress "a") {
if (_parent._currentframe < 57) {
confirmItem.gotoAndPlay(2);
_root.soundeffect1.gotoAndPlay(3);
_parent.gotoAndPlay(57);
confirmItembar.gotoAndPlay(2);
gotoAndStop (3);
if (_root.class == 3) {
_root.itemNum[1] = 300;
_root.itemArraynum[1] = 48;
_root.itemNum[2] = 2;
_root.itemArraynum[2] = 4;
_root.itemNum[3] = 1;
_root.itemArraynum[3] = 61;
_root.itemNum[4] = 10;
_root.itemArraynum[4] = 13;
_root.itemArraynum[5] = 39;
} else if (_root.class == 2) {
_root.itemNum[1] = 5;
_root.itemArraynum[1] = 6;
_root.itemNum[2] = 1;
_root.itemArraynum[2] = 20;
_root.itemNum[3] = 1;
_root.itemArraynum[3] = 14;
_root.itemNum[4] = 1;
_root.itemArraynum[4] = 28;
_root.itemNum[5] = 5;
_root.itemArraynum[5] = 42;
} else if (_root.class == 1) {
_root.itemNum[1] = 5;
_root.itemArraynum[1] = 6;
_root.itemNum[2] = 1;
_root.itemArraynum[2] = 23;
_root.itemNum[3] = 1;
_root.itemArraynum[3] = 14;
_root.itemNum[4] = 1;
_root.itemArraynum[4] = 34;
_root.itemNum[5] = 20;
_root.itemArraynum[5] = 42;
}
}
}
Symbol 1287 Button
on (press, keyPress "d") {
if (_parent._currentframe < 57) {
_parent.gotoAndStop(52);
gotoAndStop (1);
if (_root.class == 2) {
_root.InventoryI[1] = 56;
_root.InventoryI[2] = 50;
_root.InventoryI[3] = 40;
_root.InventoryI[4] = 41;
_root.InventoryI[5] = null;
_root.InventoryI[6] = null;
_root.InventoryI[7] = null;
_root.InventoryI[8] = null;
_root.InventoryI[9] = null;
_root.InventoryI[10] = null;
} else if (_root.class == 1) {
_root.InventoryI[1] = 53;
_root.InventoryI[2] = 50;
_root.InventoryI[3] = 43;
_root.InventoryI[4] = 40;
_root.InventoryI[5] = 41;
_root.InventoryI[6] = null;
_root.InventoryI[7] = null;
_root.InventoryI[8] = null;
_root.InventoryI[9] = null;
_root.InventoryI[10] = null;
}
}
}
Symbol 1288 Button
on (press, keyPress "a") {
if (_parent._currentframe < 57) {
confirmItem.gotoAndPlay(2);
_root.soundeffect1.gotoAndPlay(3);
_parent.gotoAndPlay(53);
_root.itemNum[1] = 5;
_root.itemArraynum[1] = 6;
_root.itemNum[2] = 1;
_root.itemArraynum[2] = 20;
_root.itemNum[3] = 1;
_root.itemArraynum[3] = 14;
_root.itemNum[4] = 1;
_root.itemArraynum[4] = 28;
_root.itemNum[5] = 5;
_root.itemArraynum[5] = 42;
}
}
Symbol 1294 Button
on (press, keyPress "s") {
if (_parent._currentframe < 57) {
_root.floorLoadingScreen();
_root.game_start = 1;
}
}
Symbol 1297 Button
on (press, keyPress "s") {
if (_parent._currentframe < 61) {
_root.monLoadingScreen();
_parent.mhul_stats._visible = false;
_root.startGameBgm = 1;
}
}
Symbol 1298 Button
on (press, keyPress "d") {
if (_parent._currentframe < 61) {
_parent.gotoAndStop(56);
gotoAndStop (2);
if (_root.class == 2) {
_root.InventoryI[1] = 56;
_root.InventoryI[2] = 50;
_root.InventoryI[3] = 40;
_root.InventoryI[4] = 41;
_root.InventoryI[5] = null;
_root.InventoryI[6] = null;
_root.InventoryI[7] = null;
_root.InventoryI[8] = null;
_root.InventoryI[9] = null;
_root.InventoryI[10] = null;
} else if (_root.class == 1) {
_root.InventoryI[1] = 53;
_root.InventoryI[2] = 50;
_root.InventoryI[3] = 43;
_root.InventoryI[4] = 40;
_root.InventoryI[5] = 41;
_root.InventoryI[6] = null;
_root.InventoryI[7] = null;
_root.InventoryI[8] = null;
_root.InventoryI[9] = null;
_root.InventoryI[10] = null;
}
}
}
Symbol 1304 MovieClip Frame 1
stop();
Symbol 1304 MovieClip Frame 2
stop();
Symbol 1309 MovieClip Frame 1
_root.select = "Spell";
stop();
Instance of Symbol 1232 MovieClip "spell1" in Symbol 1309 MovieClip Frame 1
onClipEvent (load) {
if (_root.spellArray[1] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.spellArray[1]);
}
}
onClipEvent (enterFrame) {
if (_root.spellArray[1] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.spellArray[1]);
}
}
Instance of Symbol 1232 MovieClip "item1" in Symbol 1309 MovieClip Frame 1
onClipEvent (load) {
if (_root.InventoryI[1] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.InventoryI[1]);
}
}
onClipEvent (enterFrame) {
if (_root.InventoryI[1] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.InventoryI[1]);
}
}
Instance of Symbol 1232 MovieClip "spell2" in Symbol 1309 MovieClip Frame 1
onClipEvent (load) {
if (_root.spellArray[2] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.spellArray[2]);
}
}
onClipEvent (enterFrame) {
if (_root.spellArray[2] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.spellArray[2]);
}
}
Instance of Symbol 1232 MovieClip "spell3" in Symbol 1309 MovieClip Frame 1
onClipEvent (load) {
if (_root.spellArray[3] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.spellArray[3]);
}
}
onClipEvent (enterFrame) {
if (_root.spellArray[3] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.spellArray[3]);
}
}
Instance of Symbol 1232 MovieClip "spell4" in Symbol 1309 MovieClip Frame 1
onClipEvent (load) {
if (_root.spellArray[4] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.spellArray[4]);
}
}
onClipEvent (enterFrame) {
if (_root.spellArray[4] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.spellArray[4]);
}
}
Instance of Symbol 1232 MovieClip "spell5" in Symbol 1309 MovieClip Frame 1
onClipEvent (load) {
if (_root.spellArray[5] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.spellArray[5]);
}
}
onClipEvent (enterFrame) {
if (_root.spellArray[5] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.spellArray[5]);
}
}
Instance of Symbol 1232 MovieClip "item2" in Symbol 1309 MovieClip Frame 1
onClipEvent (load) {
if (_root.InventoryI[2] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.InventoryI[2]);
}
}
onClipEvent (enterFrame) {
if (_root.InventoryI[2] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.InventoryI[2]);
}
}
Instance of Symbol 1232 MovieClip "item3" in Symbol 1309 MovieClip Frame 1
onClipEvent (load) {
if (_root.InventoryI[3] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.InventoryI[3]);
}
}
onClipEvent (enterFrame) {
if (_root.InventoryI[3] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.InventoryI[3]);
}
}
Instance of Symbol 1232 MovieClip "item4" in Symbol 1309 MovieClip Frame 1
onClipEvent (load) {
if (_root.InventoryI[4] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.InventoryI[4]);
}
}
onClipEvent (enterFrame) {
if (_root.InventoryI[4] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.InventoryI[4]);
}
}
Instance of Symbol 1232 MovieClip "item5" in Symbol 1309 MovieClip Frame 1
onClipEvent (load) {
if (_root.InventoryI[5] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.InventoryI[5]);
}
}
onClipEvent (enterFrame) {
if (_root.InventoryI[5] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.InventoryI[5]);
}
}
Instance of Symbol 1232 MovieClip "item6" in Symbol 1309 MovieClip Frame 1
onClipEvent (load) {
if (_root.InventoryI[6] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.InventoryI[6]);
}
}
onClipEvent (enterFrame) {
if (_root.InventoryI[6] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.InventoryI[6]);
}
}
Instance of Symbol 1232 MovieClip "item7" in Symbol 1309 MovieClip Frame 1
onClipEvent (load) {
if (_root.InventoryI[7] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.InventoryI[7]);
}
}
onClipEvent (enterFrame) {
if (_root.InventoryI[7] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.InventoryI[7]);
}
}
Instance of Symbol 1232 MovieClip "item8" in Symbol 1309 MovieClip Frame 1
onClipEvent (load) {
if (_root.InventoryI[8] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.InventoryI[8]);
}
}
onClipEvent (enterFrame) {
if (_root.InventoryI[8] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.InventoryI[8]);
}
}
Instance of Symbol 1232 MovieClip "item9" in Symbol 1309 MovieClip Frame 1
onClipEvent (load) {
if (_root.InventoryI[9] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.InventoryI[9]);
}
}
onClipEvent (enterFrame) {
if (_root.InventoryI[9] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.InventoryI[9]);
}
}
Instance of Symbol 1232 MovieClip "item10" in Symbol 1309 MovieClip Frame 1
onClipEvent (load) {
if (_root.InventoryI[10] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.InventoryI[10]);
}
}
onClipEvent (enterFrame) {
if (_root.InventoryI[10] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.InventoryI[10]);
}
}
Symbol 1309 MovieClip Frame 2
_root.select = "Item";
stop();
Instance of Symbol 1232 MovieClip "I_item1" in Symbol 1309 MovieClip Frame 2
onClipEvent (load) {
this.number = _root.InvenitemNum[1];
if (_root.InvenitemArraynum[1] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.InvenitemArraynum[1]);
}
}
onClipEvent (enterFrame) {
this.number = _root.InvenitemNum[1];
if (_root.InvenitemArraynum[1] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.InvenitemArraynum[1]);
}
}
Instance of Symbol 1232 MovieClip "I_item2" in Symbol 1309 MovieClip Frame 2
onClipEvent (load) {
this.number = _root.InvenitemNum[2];
if (_root.InvenitemArraynum[2] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.InvenitemArraynum[2]);
}
}
onClipEvent (enterFrame) {
this.number = _root.InvenitemNum[2];
if (_root.InvenitemArraynum[2] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.InvenitemArraynum[2]);
}
}
Instance of Symbol 1232 MovieClip "I_item3" in Symbol 1309 MovieClip Frame 2
onClipEvent (load) {
this.number = _root.InvenitemNum[3];
if (_root.InvenitemArraynum[3] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.InvenitemArraynum[3]);
}
}
onClipEvent (enterFrame) {
this.number = _root.InvenitemNum[3];
if (_root.InvenitemArraynum[3] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.InvenitemArraynum[3]);
}
}
Instance of Symbol 1232 MovieClip "I_item4" in Symbol 1309 MovieClip Frame 2
onClipEvent (load) {
this.number = _root.InvenitemNum[4];
if (_root.InvenitemArraynum[4] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.InvenitemArraynum[4]);
}
}
onClipEvent (enterFrame) {
this.number = _root.InvenitemNum[4];
if (_root.InvenitemArraynum[4] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.InvenitemArraynum[4]);
}
}
Instance of Symbol 1232 MovieClip "I_item5" in Symbol 1309 MovieClip Frame 2
onClipEvent (load) {
this.number = _root.InvenitemNum[5];
if (_root.InvenitemArraynum[5] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.InvenitemArraynum[5]);
}
}
onClipEvent (enterFrame) {
this.number = _root.InvenitemNum[5];
if (_root.InvenitemArraynum[5] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.InvenitemArraynum[5]);
}
}
Instance of Symbol 1232 MovieClip "item_1" in Symbol 1309 MovieClip Frame 2
onClipEvent (enterFrame) {
this.number = _root.ItemNum[1];
if (_root.itemArraynum[1] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.itemArraynum[1]);
}
}
Instance of Symbol 1232 MovieClip "item_2" in Symbol 1309 MovieClip Frame 2
onClipEvent (enterFrame) {
this.number = _root.ItemNum[2];
if (_root.itemArraynum[2] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.itemArraynum[2]);
}
}
Instance of Symbol 1232 MovieClip "item_3" in Symbol 1309 MovieClip Frame 2
onClipEvent (enterFrame) {
this.number = _root.ItemNum[3];
if (_root.itemArraynum[3] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.itemArraynum[3]);
}
}
Instance of Symbol 1232 MovieClip "item_4" in Symbol 1309 MovieClip Frame 2
onClipEvent (enterFrame) {
this.number = _root.ItemNum[4];
if (_root.itemArraynum[4] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.itemArraynum[4]);
}
}
Instance of Symbol 1232 MovieClip "item_5" in Symbol 1309 MovieClip Frame 2
onClipEvent (enterFrame) {
this.number = _root.ItemNum[5];
if (_root.itemArraynum[5] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.itemArraynum[5]);
}
}
Instance of Symbol 1232 MovieClip "I_item6" in Symbol 1309 MovieClip Frame 2
onClipEvent (load) {
this.number = _root.InvenitemNum[6];
if (_root.InvenitemArraynum[6] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.InvenitemArraynum[6]);
}
}
onClipEvent (enterFrame) {
this.number = _root.InvenitemNum[6];
if (_root.InvenitemArraynum[6] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.InvenitemArraynum[6]);
}
}
Instance of Symbol 1232 MovieClip "I_item7" in Symbol 1309 MovieClip Frame 2
onClipEvent (load) {
this.number = _root.InvenitemNum[7];
if (_root.InvenitemArraynum[7] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.InvenitemArraynum[7]);
}
}
onClipEvent (enterFrame) {
this.number = _root.InvenitemNum[7];
if (_root.InvenitemArraynum[7] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.InvenitemArraynum[7]);
}
}
Instance of Symbol 1232 MovieClip "I_item8" in Symbol 1309 MovieClip Frame 2
onClipEvent (load) {
this.number = _root.InvenitemNum[8];
if (_root.InvenitemArraynum[8] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.InvenitemArraynum[8]);
}
}
onClipEvent (enterFrame) {
this.number = _root.InvenitemNum[8];
if (_root.InvenitemArraynum[8] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.InvenitemArraynum[8]);
}
}
Instance of Symbol 1232 MovieClip "I_item9" in Symbol 1309 MovieClip Frame 2
onClipEvent (load) {
this.number = _root.InvenitemNum[9];
if (_root.InvenitemArraynum[9] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.InvenitemArraynum[9]);
}
}
onClipEvent (enterFrame) {
this.number = _root.InvenitemNum[9];
if (_root.InvenitemArraynum[9] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.InvenitemArraynum[9]);
}
}
Instance of Symbol 1232 MovieClip "I_item10" in Symbol 1309 MovieClip Frame 2
onClipEvent (load) {
this.number = _root.InvenitemNum[10];
if (_root.InvenitemArraynum[10] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.InvenitemArraynum[10]);
}
}
onClipEvent (enterFrame) {
this.number = _root.InvenitemNum[10];
if (_root.InvenitemArraynum[10] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.InvenitemArraynum[10]);
}
}
Symbol 1309 MovieClip Frame 3
_root.select = "confirm";
stop();
Instance of Symbol 1232 MovieClip "item_1" in Symbol 1309 MovieClip Frame 3
onClipEvent (enterFrame) {
if (_root.itemArraynum[1] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.itemArraynum[1]);
}
}
Instance of Symbol 1232 MovieClip "item_2" in Symbol 1309 MovieClip Frame 3
onClipEvent (enterFrame) {
if (_root.itemArraynum[2] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.itemArraynum[2]);
}
}
Instance of Symbol 1232 MovieClip "item_3" in Symbol 1309 MovieClip Frame 3
onClipEvent (enterFrame) {
if (_root.itemArraynum[3] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.itemArraynum[3]);
}
}
Instance of Symbol 1232 MovieClip "item_4" in Symbol 1309 MovieClip Frame 3
onClipEvent (enterFrame) {
if (_root.itemArraynum[4] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.itemArraynum[4]);
}
}
Instance of Symbol 1232 MovieClip "item_5" in Symbol 1309 MovieClip Frame 3
onClipEvent (enterFrame) {
if (_root.itemArraynum[5] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.itemArraynum[5]);
}
}
Instance of Symbol 1232 MovieClip "I_item1" in Symbol 1309 MovieClip Frame 3
onClipEvent (load) {
this.number = _root.InvenitemNum[1];
if (_root.InvenitemArraynum[1] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.InvenitemArraynum[1]);
}
}
onClipEvent (enterFrame) {
this.number = _root.InvenitemNum[1];
if (_root.InvenitemArraynum[1] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.InvenitemArraynum[1]);
}
}
Instance of Symbol 1232 MovieClip "I_item2" in Symbol 1309 MovieClip Frame 3
onClipEvent (load) {
this.number = _root.InvenitemNum[2];
if (_root.InvenitemArraynum[2] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.InvenitemArraynum[2]);
}
}
onClipEvent (enterFrame) {
this.number = _root.InvenitemNum[2];
if (_root.InvenitemArraynum[2] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.InvenitemArraynum[2]);
}
}
Instance of Symbol 1232 MovieClip "I_item3" in Symbol 1309 MovieClip Frame 3
onClipEvent (load) {
this.number = _root.InvenitemNum[3];
if (_root.InvenitemArraynum[3] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.InvenitemArraynum[3]);
}
}
onClipEvent (enterFrame) {
this.number = _root.InvenitemNum[3];
if (_root.InvenitemArraynum[3] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.InvenitemArraynum[3]);
}
}
Instance of Symbol 1232 MovieClip "I_item4" in Symbol 1309 MovieClip Frame 3
onClipEvent (load) {
this.number = _root.InvenitemNum[4];
if (_root.InvenitemArraynum[4] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.InvenitemArraynum[4]);
}
}
onClipEvent (enterFrame) {
this.number = _root.InvenitemNum[4];
if (_root.InvenitemArraynum[4] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.InvenitemArraynum[4]);
}
}
Instance of Symbol 1232 MovieClip "I_item5" in Symbol 1309 MovieClip Frame 3
onClipEvent (load) {
this.number = _root.InvenitemNum[5];
if (_root.InvenitemArraynum[5] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.InvenitemArraynum[5]);
}
}
onClipEvent (enterFrame) {
this.number = _root.InvenitemNum[5];
if (_root.InvenitemArraynum[5] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.InvenitemArraynum[5]);
}
}
Instance of Symbol 1232 MovieClip "item_1" in Symbol 1309 MovieClip Frame 3
onClipEvent (enterFrame) {
this.number = _root.ItemNum[1];
if (_root.itemArraynum[1] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.itemArraynum[1]);
}
}
Instance of Symbol 1232 MovieClip "item_2" in Symbol 1309 MovieClip Frame 3
onClipEvent (enterFrame) {
this.number = _root.ItemNum[2];
if (_root.itemArraynum[2] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.itemArraynum[2]);
}
}
Instance of Symbol 1232 MovieClip "item_3" in Symbol 1309 MovieClip Frame 3
onClipEvent (enterFrame) {
this.number = _root.ItemNum[3];
if (_root.itemArraynum[3] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.itemArraynum[3]);
}
}
Instance of Symbol 1232 MovieClip "item_4" in Symbol 1309 MovieClip Frame 3
onClipEvent (enterFrame) {
this.number = _root.ItemNum[4];
if (_root.itemArraynum[4] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.itemArraynum[4]);
}
}
Instance of Symbol 1232 MovieClip "item_5" in Symbol 1309 MovieClip Frame 3
onClipEvent (enterFrame) {
this.number = _root.ItemNum[5];
if (_root.itemArraynum[5] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.itemArraynum[5]);
}
}
Instance of Symbol 1232 MovieClip "spell1" in Symbol 1309 MovieClip Frame 3
onClipEvent (load) {
if (_root.spellArray[1] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.spellArray[1]);
}
}
onClipEvent (enterFrame) {
if (_root.spellArray[1] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.spellArray[1]);
}
}
Instance of Symbol 1232 MovieClip "spell2" in Symbol 1309 MovieClip Frame 3
onClipEvent (load) {
if (_root.spellArray[2] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.spellArray[2]);
}
}
onClipEvent (enterFrame) {
if (_root.spellArray[2] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.spellArray[2]);
}
}
Instance of Symbol 1232 MovieClip "spell3" in Symbol 1309 MovieClip Frame 3
onClipEvent (load) {
if (_root.spellArray[3] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.spellArray[3]);
}
}
onClipEvent (enterFrame) {
if (_root.spellArray[3] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.spellArray[3]);
}
}
Instance of Symbol 1232 MovieClip "spell4" in Symbol 1309 MovieClip Frame 3
onClipEvent (load) {
if (_root.spellArray[4] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.spellArray[4]);
}
}
onClipEvent (enterFrame) {
if (_root.spellArray[4] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.spellArray[4]);
}
}
Instance of Symbol 1232 MovieClip "spell5" in Symbol 1309 MovieClip Frame 3
onClipEvent (load) {
if (_root.spellArray[5] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.spellArray[5]);
}
}
onClipEvent (enterFrame) {
if (_root.spellArray[5] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.spellArray[5]);
}
}
Instance of Symbol 1304 MovieClip in Symbol 1309 MovieClip Frame 3
onClipEvent (enterFrame) {
if (_root.ambushCamera == 1) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
if ((_root.m_input == 1) && (this.hitTest(_root._xmouse, _root._ymouse, true))) {
_root.mouseReset();
if (input == null) {
if (_root.ambushCamera == null) {
this.gotoAndStop(2);
_root.ambushCamera = 1;
delete _root.m_input;
} else if (_root.ambushCamera == 1) {
this.gotoAndStop(1);
delete _root.ambushCamera;
delete _root.m_input;
}
input = 1;
} else {
delete input;
}
}
}
Instance of Symbol 1304 MovieClip in Symbol 1309 MovieClip Frame 3
onClipEvent (enterFrame) {
if ((_root.m_input == 1) && (this.hitTest(_root._xmouse, _root._ymouse, true))) {
_root.mouseReset();
if (input == null) {
if (_root.guiButton == null) {
this.gotoAndStop(2);
_root.sounditem1.gotoAndStop(4);
_root.guioption++;
delete _root.m_input;
} else if (_root.guiButton == 1) {
this.gotoAndStop(1);
delete _root.m_input;
}
input = 1;
} else {
delete input;
}
} else {
this.gotoAndStop(1);
delete _root.guiButton;
}
}
onClipEvent (load) {
}
Instance of Symbol 1304 MovieClip in Symbol 1309 MovieClip Frame 3
onClipEvent (enterFrame) {
if (_root.BGM == null) {
this.gotoAndStop(2);
_root.BGM = 1;
}
if (_root.BGM == 1) {
this.gotoAndStop(2);
} else if (_root.BGMstart == null) {
this.gotoAndStop(1);
_root.BGM = 2;
_root.BGMstart = 1;
} else if (_root.soundbgm1._x == null) {
this.gotoAndStop(1);
_root.BGM = 2;
}
if ((_root.m_input == 1) && (this.hitTest(_root._xmouse, _root._ymouse, true))) {
_root.mouseReset();
if (muzie == null) {
if (_root.BGM >= 2) {
_root.BGM = 1;
} else {
_root.BGM++;
}
if (_root.BGM == 2) {
stopAllSounds();
removeMovieClip(_root.soundbgm1);
}
if (_root.BGM == 1) {
_root.soundbgm.duplicateMovieClip("soundbgm1", 104);
_root.soundbgm1.gotoAndStop((_root.floor + 2) - 1);
_root.soundbgm1.gotoAndStop(1);
}
muzie = 1;
}
} else {
delete muzie;
}
}
Instance of Symbol 1304 MovieClip in Symbol 1309 MovieClip Frame 3
onClipEvent (enterFrame) {
if (_root.SFX == null) {
this.gotoAndStop(2);
_root.SFX = 1;
}
if (_root.SFX == 2) {
if (soundUnload == null) {
removeMovieClip(_root.sound1);
removeMovieClip(_root.soundeffect1);
removeMovieClip(_root.sounditem1);
removeMovieClip(_root.soundspell1);
removeMovieClip(_root.soundvoice1);
soundUnload = 1;
}
this.gotoAndStop(1);
}
if (_root.SFX == 1) {
if (soundLoad == null) {
_root.sound.duplicateMovieClip("sound1", 901);
_root.soundeffect.duplicateMovieClip("soundeffect1", 902);
_root.sounditem.duplicateMovieClip("sounditem1", 903);
_root.soundspell.duplicateMovieClip("soundspell1", 904);
_root.soundvoice.duplicateMovieClip("soundvoice1", 905);
soundLoad = 1;
}
this.gotoAndStop(2);
} else if (_root.SFXstart == null) {
this.gotoAndStop(1);
_root.SFX = 2;
_root.SFXstart = 1;
} else if (_root.sound1._x == null) {
this.gotoAndStop(1);
_root.SFX = 2;
}
if ((_root.m_input == 1) && (this.hitTest(_root._xmouse, _root._ymouse, true))) {
if (soundfx == null) {
if (_root.SFX >= 2) {
_root.SFX = 1;
} else {
_root.SFX++;
}
if (_root.SFX == 2) {
removeMovieClip(_root.sound1);
removeMovieClip(_root.soundeffect1);
removeMovieClip(_root.sounditem1);
removeMovieClip(_root.soundspell1);
removeMovieClip(_root.soundvoice1);
this.gotoAndStop(2);
}
if (_root.SFX == 1) {
_root.sound.duplicateMovieClip("sound1", 901);
_root.soundeffect.duplicateMovieClip("soundeffect1", 902);
_root.sounditem.duplicateMovieClip("sounditem1", 903);
_root.soundspell.duplicateMovieClip("soundspell1", 904);
_root.soundvoice.duplicateMovieClip("soundvoice1", 905);
_root.sound1.gotoAndPlay(2);
this.gotoAndStop(1);
}
soundfx = 1;
}
} else {
delete soundfx;
}
}
Instance of Symbol 1304 MovieClip in Symbol 1309 MovieClip Frame 3
onClipEvent (load) {
_root.slowMoAtk = 1;
}
onClipEvent (enterFrame) {
if (_root.slowMoAtk == 1) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
if ((_root.m_input == 1) && (this.hitTest(_root._xmouse, _root._ymouse, true))) {
_root.mouseReset();
if (input == null) {
if (_root.slowMoAtk == null) {
this.gotoAndStop(2);
_root.slowMoAtk = 1;
delete _root.m_input;
} else if (_root.slowMoAtk == 1) {
this.gotoAndStop(1);
delete _root.slowMoAtk;
delete _root.m_input;
}
input = 1;
} else {
delete input;
}
}
}
Instance of Symbol 1304 MovieClip in Symbol 1309 MovieClip Frame 3
onClipEvent (enterFrame) {
if (_root.autoinvisible == 1) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
if ((_root.m_input == 1) && (this.hitTest(_root._xmouse, _root._ymouse, true))) {
_root.mouseReset();
if (input == null) {
if (_root.autoinvisible == null) {
this.gotoAndStop(2);
_root.autoinvisible = 1;
delete _root.m_input;
} else if (_root.autoinvisible == 1) {
this.gotoAndStop(1);
delete _root.autoinvisible;
delete _root.m_input;
}
input = 1;
} else {
delete input;
}
}
}
Instance of Symbol 1304 MovieClip in Symbol 1309 MovieClip Frame 3
onClipEvent (data) {
if ((_root.m_input == 1) && (this.hitTest(_root._xmouse, _root._ymouse, true))) {
if (rez == null) {
if (_root.pos >= 2) {
_root.pos = 1;
} else {
_root.pos++;
}
if (_root.pos == 1) {
this.gotoAndStop(1);
_root._x = _root._x - 120;
_root._y = _root._y - 120;
_root._xscale = 200;
_root._yscale = 200;
}
if (_root.pos == 2) {
this.gotoAndStop(2);
_root._x = _root._x + 120;
_root._y = _root._y + 120;
_root._xscale = 100;
_root._yscale = 100;
}
rez = 1;
}
} else {
delete rez;
}
}
Instance of Symbol 61 MovieClip in Symbol 1310 MovieClip Frame 25
onClipEvent (load) {
line = 0;
dialogue = new Array();
txtcap = 0;
read = 1;
txt = " ";
_visible = true;
dialogue[0] = "Select Your Character";
}
onClipEvent (enterFrame) {
if (Key.isDown(Key.getCode()) || (_root.m_input == 1)) {
if (txtstop == null) {
spdUp = 2.5;
}
diag_input = 1;
} else {
delete spdUp;
delete diag_input;
}
if (txtstop == 1) {
if ((diag_input == 1) && (spdUp == null)) {
read = 0;
line++;
delete txt_sign;
delete txtstop;
_visible = false;
}
}
output = dialogue[line].toString();
if (read > dialogue[line].length) {
if (txt_sign == null) {
txt = txt + "..";
txt_sign = 1;
}
txtstop = 1;
} else if (read < dialogue[line].length) {
read = read + (0.8 + spdUp);
txt = output.slice(0, read).toString();
_root.soundeffect1.gotoAndStop(4);
}
}
onClipEvent (mouseMove) {
mouseMove_++;
if (moveMove_ >= 50) {
_visible = false;
}
}
Symbol 1310 MovieClip Frame 37
stop();
Symbol 1310 MovieClip Frame 52
stop();
Instance of Symbol 61 MovieClip in Symbol 1310 MovieClip Frame 52
onClipEvent (load) {
line = 0;
dialogue = new Array();
txtcap = 0;
read = 1;
txt = " ";
_visible = true;
dialogue[0] = "Drag your spells from the inventory, to the descending list (1-5) or choose 'Default'";
}
onClipEvent (enterFrame) {
if (Key.isDown(Key.getCode()) || (_root.m_input == 1)) {
if (txtstop == null) {
spdUp = 2.5;
}
diag_input = 1;
} else {
delete spdUp;
delete diag_input;
}
if (txtstop == 1) {
if ((diag_input == 1) && (spdUp == null)) {
read = 0;
line++;
delete txt_sign;
delete txtstop;
_visible = false;
}
}
output = dialogue[line].toString();
if (read > dialogue[line].length) {
if (txt_sign == null) {
txt = txt + "..";
txt_sign = 1;
}
txtstop = 1;
} else if (read < dialogue[line].length) {
read = read + (0.8 + spdUp);
txt = output.slice(0, read).toString();
_root.soundeffect1.gotoAndStop(4);
}
}
onClipEvent (mouseMove) {
mouseMove_++;
if (moveMove_ >= 50) {
_visible = false;
}
}
Symbol 1310 MovieClip Frame 56
stop();
Instance of Symbol 61 MovieClip in Symbol 1310 MovieClip Frame 56
onClipEvent (load) {
line = 0;
dialogue = new Array();
txtcap = 0;
read = 1;
txt = " ";
_visible = true;
dialogue[0] = "Drag your chosen Items from the inventory, to the Item Bar (1-5) or choose 'Default'";
}
onClipEvent (enterFrame) {
if (Key.isDown(Key.getCode()) || (_root.m_input == 1)) {
if (txtstop == null) {
spdUp = 2.5;
}
diag_input = 1;
} else {
delete spdUp;
delete diag_input;
}
if (txtstop == 1) {
if ((diag_input == 1) && (spdUp == null)) {
read = 0;
line++;
delete txt_sign;
delete txtstop;
_visible = false;
}
}
output = dialogue[line].toString();
if (read > dialogue[line].length) {
if (txt_sign == null) {
txt = txt + "..";
txt_sign = 1;
}
txtstop = 1;
} else if (read < dialogue[line].length) {
read = read + (0.8 + spdUp);
txt = output.slice(0, read).toString();
_root.soundeffect1.gotoAndStop(4);
}
}
onClipEvent (mouseMove) {
mouseMove_++;
if (moveMove_ >= 50) {
_visible = false;
}
}
Instance of Symbol 61 MovieClip "mhul_stats" in Symbol 1310 MovieClip Frame 57
onClipEvent (load) {
_root.player_stats();
_root.readout_stats();
line = 0;
dialogue = new Array();
txtcap = 0;
read = 1;
txt = " ";
_visible = true;
dialogue[1] = "This is your Selection, Click 'Confirm' to Continue";
}
onClipEvent (enterFrame) {
dialogue[0] = (((((((((((((("Class:" + _root.classoutput) + "<br>") + "HP:") + _root.stats_health) + ":") + "MP:") + _root.stats_mana) + "<br>") + "STR:") + _root.str_readout) + " AGI:") + ((_root.agi_readout / 4) + 1)) + " DEX:") + _root.dex_readout) + "<br>..";
if ((line + 1) == (dialogue.length + 1)) {
_visible = false;
}
trace((line + ":") + dialogue.length);
if (Key.isDown(Key.getCode()) || (_root.m_input == 1)) {
if (txtstop == null) {
spdUp = 2.5;
}
diag_input = 1;
} else {
delete spdUp;
delete diag_input;
}
if (txtstop == 1) {
if ((diag_input == 1) && (spdUp == null)) {
read = 0;
line++;
delete txt_sign;
delete txtstop;
}
}
output = dialogue[line].toString();
if (read > dialogue[line].length) {
if (txt_sign == null) {
txt = txt + "..";
txt_sign = 1;
}
txtstop = 1;
} else if ((read < dialogue[line].length) && (_root.loadMonScreen1._currentframe < 1)) {
read = read + (0.8 + spdUp);
txt = output.slice(0, read).toString();
_root.soundeffect1.gotoAndStop(4);
}
}
onClipEvent (mouseMove) {
mouseMove_++;
if (moveMove_ >= 50) {
}
}
Symbol 1310 MovieClip Frame 60
stop();
Symbol 1311 MovieClip Frame 1
stop();
Symbol 1311 MovieClip Frame 2
if (_root.BGM == 1) {
_root.soundbgm1.gotoAndStop(3);
}
Symbol 1311 MovieClip Frame 25
stop();
Symbol 1311 MovieClip Frame 42
stop();
Instance of Symbol 124 MovieClip in Symbol 1329 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 1354 MovieClip Frame 6
stop();
Symbol 1359 MovieClip Frame 6
stop();
Symbol 1360 MovieClip Frame 6
stop();
Symbol 1361 MovieClip Frame 6
stop();
Symbol 1366 MovieClip Frame 6
stop();
Symbol 1394 MovieClip Frame 6
stop();
Symbol 1399 MovieClip Frame 6
stop();
Symbol 1400 MovieClip Frame 6
stop();
Symbol 1401 MovieClip Frame 6
stop();
Symbol 1406 MovieClip Frame 6
stop();
Symbol 1439 MovieClip Frame 6
stop();
Symbol 1448 MovieClip Frame 6
stop();
Symbol 1449 MovieClip Frame 6
stop();
Symbol 1450 MovieClip Frame 6
stop();
Symbol 1459 MovieClip Frame 6
stop();
Symbol 1491 MovieClip Frame 5
stop();
Symbol 1500 MovieClip Frame 5
stop();
Symbol 1501 MovieClip Frame 5
stop();
Symbol 1502 MovieClip Frame 5
stop();
Symbol 1511 MovieClip Frame 5
stop();
Symbol 1539 MovieClip Frame 6
stop();
Symbol 1544 MovieClip Frame 6
stop();
Symbol 1545 MovieClip Frame 6
stop();
Symbol 1546 MovieClip Frame 6
stop();
Symbol 1551 MovieClip Frame 6
stop();
Symbol 1579 MovieClip Frame 6
stop();
Symbol 1584 MovieClip Frame 6
stop();
Symbol 1585 MovieClip Frame 6
stop();
Symbol 1586 MovieClip Frame 6
stop();
Symbol 1591 MovieClip Frame 6
stop();
Symbol 1592 MovieClip Frame 1
gotoAndStop(_root.monanim);
stop();
Symbol 1592 MovieClip Frame 2
stop();
Symbol 1592 MovieClip Frame 3
stop();
Symbol 1592 MovieClip Frame 4
stop();
Symbol 1592 MovieClip Frame 5
stop();
Symbol 1592 MovieClip Frame 6
stop();
Instance of Symbol 124 MovieClip in Symbol 1592 MovieClip Frame 6
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Instance of Symbol 124 MovieClip in Symbol 1592 MovieClip Frame 6
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 1592 MovieClip Frame 7
stop();
Instance of Symbol 124 MovieClip in Symbol 1592 MovieClip Frame 7
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 1592 MovieClip Frame 8
stop();
Instance of Symbol 124 MovieClip in Symbol 1592 MovieClip Frame 8
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 1592 MovieClip Frame 9
stop();
Instance of Symbol 124 MovieClip in Symbol 1592 MovieClip Frame 9
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 1592 MovieClip Frame 10
stop();
Symbol 1592 MovieClip Frame 11
stop();
Symbol 1592 MovieClip Frame 12
stop();
Symbol 1592 MovieClip Frame 13
stop();
Symbol 1592 MovieClip Frame 14
stop();
Symbol 1592 MovieClip Frame 15
stop();
Symbol 1592 MovieClip Frame 16
stop();
Symbol 1592 MovieClip Frame 17
stop();
Symbol 1592 MovieClip Frame 18
stop();
Symbol 1592 MovieClip Frame 19
stop();
Symbol 1592 MovieClip Frame 20
stop();
Symbol 1592 MovieClip Frame 21
stop();
Symbol 1592 MovieClip Frame 22
stop();
Symbol 1592 MovieClip Frame 23
stop();
Symbol 1592 MovieClip Frame 24
stop();
Symbol 1592 MovieClip Frame 25
stop();
Symbol 1592 MovieClip Frame 26
stop();
Symbol 1592 MovieClip Frame 27
stop();
Symbol 1592 MovieClip Frame 28
stop();
Symbol 1592 MovieClip Frame 29
stop();
Symbol 1592 MovieClip Frame 30
stop();
Symbol 1592 MovieClip Frame 31
stop();
Symbol 1592 MovieClip Frame 32
stop();
Symbol 1592 MovieClip Frame 33
stop();
Symbol 1592 MovieClip Frame 34
stop();
Symbol 1592 MovieClip Frame 35
stop();
Symbol 1592 MovieClip Frame 36
stop();
Symbol 1592 MovieClip Frame 37
stop();
Symbol 1592 MovieClip Frame 38
stop();
Symbol 1592 MovieClip Frame 39
stop();
Symbol 1592 MovieClip Frame 40
stop();
Symbol 1592 MovieClip Frame 41
stop();
Symbol 1592 MovieClip Frame 42
stop();
Symbol 1592 MovieClip Frame 43
stop();
Symbol 1592 MovieClip Frame 44
stop();
Symbol 1592 MovieClip Frame 45
stop();
Symbol 1592 MovieClip Frame 46
stop();
Symbol 1592 MovieClip Frame 47
stop();
Symbol 1592 MovieClip Frame 48
stop();
Symbol 1592 MovieClip Frame 49
stop();
Symbol 1592 MovieClip Frame 50
stop();
Symbol 1592 MovieClip Frame 51
stop();
Symbol 1592 MovieClip Frame 52
stop();
Symbol 1592 MovieClip Frame 53
stop();
Symbol 1592 MovieClip Frame 54
stop();
Symbol 1592 MovieClip Frame 55
stop();
Symbol 1592 MovieClip Frame 56
stop();
Symbol 1592 MovieClip Frame 57
stop();
Symbol 1592 MovieClip Frame 58
stop();
Symbol 1592 MovieClip Frame 59
stop();
Symbol 1592 MovieClip Frame 60
stop();
Symbol 1592 MovieClip Frame 61
stop();
Symbol 1592 MovieClip Frame 62
stop();
Symbol 1592 MovieClip Frame 63
stop();
Symbol 1592 MovieClip Frame 64
stop();
Symbol 1592 MovieClip Frame 65
stop();
Symbol 1592 MovieClip Frame 66
stop();
Symbol 1592 MovieClip Frame 67
stop();
Symbol 1592 MovieClip Frame 68
stop();
Symbol 1592 MovieClip Frame 69
stop();
Symbol 1592 MovieClip Frame 70
stop();
Symbol 1592 MovieClip Frame 71
stop();
Symbol 1592 MovieClip Frame 72
stop();
Symbol 1592 MovieClip Frame 73
stop();
Symbol 1592 MovieClip Frame 74
stop();
Symbol 1592 MovieClip Frame 75
stop();
Symbol 1592 MovieClip Frame 76
stop();
Symbol 1592 MovieClip Frame 77
stop();
Symbol 1592 MovieClip Frame 78
stop();
Symbol 1592 MovieClip Frame 79
stop();
Symbol 1592 MovieClip Frame 80
stop();
Symbol 1592 MovieClip Frame 81
stop();
Symbol 1592 MovieClip Frame 82
stop();
Symbol 1592 MovieClip Frame 83
stop();
Symbol 1592 MovieClip Frame 84
stop();
Symbol 1592 MovieClip Frame 85
stop();
Symbol 1592 MovieClip Frame 86
stop();
Symbol 1592 MovieClip Frame 87
stop();
Symbol 1592 MovieClip Frame 88
stop();
Symbol 1592 MovieClip Frame 89
stop();
Symbol 1592 MovieClip Frame 90
stop();
Symbol 1592 MovieClip Frame 91
stop();
Symbol 1592 MovieClip Frame 92
stop();
Symbol 1592 MovieClip Frame 93
stop();
Symbol 1592 MovieClip Frame 94
stop();
Symbol 1592 MovieClip Frame 95
stop();
Symbol 1592 MovieClip Frame 96
stop();
Symbol 1592 MovieClip Frame 97
stop();
Symbol 1592 MovieClip Frame 98
stop();
Symbol 1592 MovieClip Frame 99
stop();
Symbol 1592 MovieClip Frame 100
stop();
Symbol 1592 MovieClip Frame 101
stop();
Symbol 1592 MovieClip Frame 102
stop();
Symbol 1592 MovieClip Frame 103
stop();
Symbol 1592 MovieClip Frame 104
stop();
Symbol 1592 MovieClip Frame 105
stop();
Symbol 1592 MovieClip Frame 106
stop();
Symbol 1592 MovieClip Frame 107
stop();
Symbol 1592 MovieClip Frame 108
stop();
Symbol 1592 MovieClip Frame 109
stop();
Symbol 1592 MovieClip Frame 110
stop();
Symbol 1592 MovieClip Frame 111
stop();
Symbol 1592 MovieClip Frame 112
stop();
Symbol 1592 MovieClip Frame 113
stop();
Symbol 1592 MovieClip Frame 114
stop();
Symbol 1592 MovieClip Frame 115
stop();
Symbol 1592 MovieClip Frame 116
stop();
Symbol 1592 MovieClip Frame 117
stop();
Symbol 1592 MovieClip Frame 118
stop();
Symbol 1592 MovieClip Frame 119
stop();
Symbol 1592 MovieClip Frame 120
stop();
Symbol 1596 MovieClip Frame 1
stop();
Symbol 1596 MovieClip Frame 2
stop();
mvp_altcol = {ra:"-100", rb:"255", ga:"-100", gb:"255", ba:"-100", bb:"-255", aa:"100", ab:"0"};
Instance of Symbol 1592 MovieClip "enemy" in Symbol 1596 MovieClip Frame 2
onClipEvent (enterFrame) {
this.gotoAndStop((_root.nextMon * 20) + 1);
}
onClipEvent (load) {
mvp_altcol = {ra:"-100", rb:"255", ga:"-100", gb:"255", ba:"-100", bb:"-255", aa:"100", ab:"0"};
}
Instance of Symbol 1592 MovieClip "enemy" in Symbol 1596 MovieClip Frame 2
onClipEvent (enterFrame) {
this.gotoAndStop((_root.nextMon * 20) + 1);
}
onClipEvent (load) {
mvp_altcol = {ra:"-100", rb:"255", ga:"-100", gb:"255", ba:"-100", bb:"-255", aa:"100", ab:"0"};
}
Instance of Symbol 1592 MovieClip "enemy" in Symbol 1596 MovieClip Frame 2
onClipEvent (enterFrame) {
this.gotoAndStop((_root.nextMon * 20) + 1);
}
onClipEvent (load) {
mvp_altcol = {ra:"-100", rb:"255", ga:"-100", gb:"255", ba:"-100", bb:"-255", aa:"100", ab:"0"};
}
Instance of Symbol 1592 MovieClip "enemy" in Symbol 1596 MovieClip Frame 2
onClipEvent (enterFrame) {
this.gotoAndStop((_root.nextMon * 20) + 1);
}
onClipEvent (load) {
mvp_altcol = {ra:"-100", rb:"255", ga:"-100", gb:"255", ba:"-100", bb:"-255", aa:"100", ab:"0"};
}
Instance of Symbol 1592 MovieClip "enemy" in Symbol 1596 MovieClip Frame 2
onClipEvent (enterFrame) {
this.gotoAndStop((_root.nextMon * 20) + 1);
}
onClipEvent (load) {
mvp_altcol = {ra:"-100", rb:"255", ga:"-100", gb:"255", ba:"-100", bb:"-255", aa:"100", ab:"0"};
}
Symbol 1596 MovieClip Frame 3
stop();
Instance of Symbol 1592 MovieClip "enemy" in Symbol 1596 MovieClip Frame 3
onClipEvent (enterFrame) {
this.gotoAndStop(((_root.nextMon + 2) * 20) + 1);
}
onClipEvent (load) {
mvp_altcol = {ra:"-100", rb:"255", ga:"-100", gb:"255", ba:"-100", bb:"-255", aa:"100", ab:"0"};
}
Instance of Symbol 1592 MovieClip "enemy" in Symbol 1596 MovieClip Frame 3
onClipEvent (enterFrame) {
this.gotoAndStop(((_root.nextMon + 1) * 20) + 1);
}
onClipEvent (load) {
mvp_altcol = {ra:"-100", rb:"255", ga:"-100", gb:"255", ba:"-100", bb:"-255", aa:"100", ab:"0"};
}
Instance of Symbol 1592 MovieClip "enemy" in Symbol 1596 MovieClip Frame 3
onClipEvent (enterFrame) {
this.gotoAndStop(((_root.nextMon + 1) * 20) + 1);
}
onClipEvent (load) {
mvp_altcol = {ra:"-100", rb:"255", ga:"-100", gb:"255", ba:"-100", bb:"-255", aa:"100", ab:"0"};
}
Instance of Symbol 1592 MovieClip "enemy" in Symbol 1596 MovieClip Frame 3
onClipEvent (enterFrame) {
this.gotoAndStop(((_root.nextMon + 2) * 20) + 1);
}
onClipEvent (load) {
mvp_altcol = {ra:"-100", rb:"255", ga:"-100", gb:"255", ba:"-100", bb:"-255", aa:"100", ab:"0"};
}
Instance of Symbol 1592 MovieClip "enemy" in Symbol 1596 MovieClip Frame 3
onClipEvent (enterFrame) {
this.gotoAndStop(((_root.nextMon + 2) * 20) + 1);
}
onClipEvent (load) {
mvp_altcol = {ra:"-100", rb:"255", ga:"-100", gb:"255", ba:"-100", bb:"-255", aa:"100", ab:"0"};
}
Instance of Symbol 1592 MovieClip "enemy" in Symbol 1596 MovieClip Frame 3
onClipEvent (enterFrame) {
this.gotoAndStop(((_root.nextMon + 1) * 20) + 1);
}
onClipEvent (load) {
mvp_altcol = {ra:"-100", rb:"255", ga:"-100", gb:"255", ba:"-100", bb:"-255", aa:"100", ab:"0"};
}
Symbol 1596 MovieClip Frame 4
stop();
Instance of Symbol 1592 MovieClip "enemy" in Symbol 1596 MovieClip Frame 4
onClipEvent (enterFrame) {
this.gotoAndStop(((_root.nextMon + 3) * 20) + 1);
}
onClipEvent (load) {
mvp_altcol = {ra:"-100", rb:"255", ga:"-100", gb:"255", ba:"-100", bb:"-255", aa:"100", ab:"0"};
}
Instance of Symbol 1592 MovieClip "enemy" in Symbol 1596 MovieClip Frame 4
onClipEvent (enterFrame) {
this.gotoAndStop(((_root.nextMon + 3) * 20) + 1);
}
onClipEvent (load) {
mvp_altcol = {ra:"-100", rb:"255", ga:"-100", gb:"255", ba:"-100", bb:"-255", aa:"100", ab:"0"};
}
Instance of Symbol 1592 MovieClip "enemy" in Symbol 1596 MovieClip Frame 4
onClipEvent (enterFrame) {
this.gotoAndStop(((_root.nextMon + 3) * 20) + 1);
}
onClipEvent (load) {
mvp_altcol = {ra:"-100", rb:"255", ga:"-100", gb:"255", ba:"-100", bb:"-255", aa:"100", ab:"0"};
}
Instance of Symbol 1592 MovieClip "enemy" in Symbol 1596 MovieClip Frame 4
onClipEvent (enterFrame) {
this.gotoAndStop(((_root.nextMon + 3) * 20) + 1);
}
onClipEvent (load) {
mvp_altcol = {ra:"-100", rb:"255", ga:"-100", gb:"255", ba:"-100", bb:"-255", aa:"100", ab:"0"};
}
Instance of Symbol 1592 MovieClip "enemy" in Symbol 1596 MovieClip Frame 4
onClipEvent (enterFrame) {
this.gotoAndStop(((_root.nextMon + 3) * 20) + 1);
}
onClipEvent (load) {
mvp_altcol = {ra:"-100", rb:"255", ga:"-100", gb:"255", ba:"-100", bb:"-255", aa:"100", ab:"0"};
}
Symbol 1596 MovieClip Frame 5
stop();
Instance of Symbol 1592 MovieClip "enemy" in Symbol 1596 MovieClip Frame 5
onClipEvent (enterFrame) {
this.gotoAndStop(((_root.nextMon + 5) * 20) + 1);
}
onClipEvent (load) {
mvp_altcol = {ra:"-100", rb:"255", ga:"-100", gb:"255", ba:"-100", bb:"-255", aa:"100", ab:"0"};
}
Instance of Symbol 1592 MovieClip "enemy" in Symbol 1596 MovieClip Frame 5
onClipEvent (enterFrame) {
this.gotoAndStop(((_root.nextMon + 4) * 20) + 1);
}
onClipEvent (load) {
mvp_altcol = {ra:"-100", rb:"255", ga:"-100", gb:"255", ba:"-100", bb:"-255", aa:"100", ab:"0"};
}
Instance of Symbol 1592 MovieClip "enemy" in Symbol 1596 MovieClip Frame 5
onClipEvent (enterFrame) {
this.gotoAndStop(((_root.nextMon + 4) * 20) + 1);
}
onClipEvent (load) {
mvp_altcol = {ra:"-100", rb:"255", ga:"-100", gb:"255", ba:"-100", bb:"-255", aa:"100", ab:"0"};
}
Instance of Symbol 1592 MovieClip "enemy" in Symbol 1596 MovieClip Frame 5
onClipEvent (enterFrame) {
this.gotoAndStop(((_root.nextMon + 5) * 20) + 1);
}
onClipEvent (load) {
mvp_altcol = {ra:"-100", rb:"255", ga:"-100", gb:"255", ba:"-100", bb:"-255", aa:"100", ab:"0"};
}
Instance of Symbol 1592 MovieClip "enemy" in Symbol 1596 MovieClip Frame 5
onClipEvent (enterFrame) {
this.gotoAndStop(((_root.nextMon + 5) * 20) + 1);
}
onClipEvent (load) {
mvp_altcol = {ra:"-100", rb:"255", ga:"-100", gb:"255", ba:"-100", bb:"-255", aa:"100", ab:"0"};
}
Instance of Symbol 1592 MovieClip "enemy" in Symbol 1596 MovieClip Frame 5
onClipEvent (enterFrame) {
this.gotoAndStop(((_root.nextMon + 4) * 20) + 1);
}
onClipEvent (load) {
mvp_altcol = {ra:"-100", rb:"255", ga:"-100", gb:"255", ba:"-100", bb:"-255", aa:"100", ab:"0"};
}
Symbol 1596 MovieClip Frame 6
stop();
Instance of Symbol 1592 MovieClip "enemy" in Symbol 1596 MovieClip Frame 6
onClipEvent (enterFrame) {
this.gotoAndStop((_root.nextMon * 20) + 1);
}
onClipEvent (load) {
mvp_altcol = {ra:"-100", rb:"255", ga:"-100", gb:"255", ba:"-100", bb:"-255", aa:"100", ab:"0"};
}
Instance of Symbol 1592 MovieClip "enemy" in Symbol 1596 MovieClip Frame 6
onClipEvent (enterFrame) {
this.gotoAndStop((_root.nextMon * 20) + 1);
}
onClipEvent (load) {
mvp_altcol = {ra:"-100", rb:"255", ga:"-100", gb:"255", ba:"-100", bb:"-255", aa:"100", ab:"0"};
}
Instance of Symbol 1592 MovieClip "enemy" in Symbol 1596 MovieClip Frame 6
onClipEvent (enterFrame) {
this.gotoAndStop((_root.nextMon * 20) + 1);
}
onClipEvent (load) {
mvp_altcol = {ra:"-100", rb:"255", ga:"-100", gb:"255", ba:"-100", bb:"-255", aa:"100", ab:"0"};
}
Instance of Symbol 1592 MovieClip "enemy" in Symbol 1596 MovieClip Frame 6
onClipEvent (enterFrame) {
this.gotoAndStop((_root.nextMon * 20) + 1);
}
onClipEvent (load) {
mvp_altcol = {ra:"-100", rb:"255", ga:"-100", gb:"255", ba:"-100", bb:"-255", aa:"100", ab:"0"};
}
Instance of Symbol 1592 MovieClip "enemy" in Symbol 1596 MovieClip Frame 6
onClipEvent (enterFrame) {
this.gotoAndStop((_root.nextMon * 20) + 1);
}
onClipEvent (load) {
mvp_altcol = {ra:"-100", rb:"255", ga:"-100", gb:"255", ba:"-100", bb:"-255", aa:"100", ab:"0"};
}
Instance of Symbol 1592 MovieClip "enemy" in Symbol 1596 MovieClip Frame 7
onClipEvent (enterFrame) {
this.gotoAndStop(((_root.nextMon + 2) * 20) + 1);
}
onClipEvent (load) {
mvp_altcol = {ra:"-100", rb:"255", ga:"-100", gb:"255", ba:"-100", bb:"-255", aa:"100", ab:"0"};
}
Instance of Symbol 1592 MovieClip "enemy" in Symbol 1596 MovieClip Frame 7
onClipEvent (enterFrame) {
this.gotoAndStop(((_root.nextMon + 1) * 20) + 1);
}
onClipEvent (load) {
mvp_altcol = {ra:"-100", rb:"255", ga:"-100", gb:"255", ba:"-100", bb:"-255", aa:"100", ab:"0"};
}
Instance of Symbol 1592 MovieClip "enemy" in Symbol 1596 MovieClip Frame 7
onClipEvent (enterFrame) {
this.gotoAndStop(((_root.nextMon + 1) * 20) + 1);
}
onClipEvent (load) {
mvp_altcol = {ra:"-100", rb:"255", ga:"-100", gb:"255", ba:"-100", bb:"-255", aa:"100", ab:"0"};
}
Instance of Symbol 1592 MovieClip "enemy" in Symbol 1596 MovieClip Frame 7
onClipEvent (enterFrame) {
this.gotoAndStop(((_root.nextMon + 2) * 20) + 1);
}
onClipEvent (load) {
mvp_altcol = {ra:"-100", rb:"255", ga:"-100", gb:"255", ba:"-100", bb:"-255", aa:"100", ab:"0"};
}
Instance of Symbol 1592 MovieClip "enemy" in Symbol 1596 MovieClip Frame 7
onClipEvent (enterFrame) {
this.gotoAndStop(((_root.nextMon + 2) * 20) + 1);
}
onClipEvent (load) {
mvp_altcol = {ra:"-100", rb:"255", ga:"-100", gb:"255", ba:"-100", bb:"-255", aa:"100", ab:"0"};
}
Instance of Symbol 1592 MovieClip "enemy" in Symbol 1596 MovieClip Frame 7
onClipEvent (enterFrame) {
this.gotoAndStop(((_root.nextMon + 1) * 20) + 1);
}
onClipEvent (load) {
mvp_altcol = {ra:"-100", rb:"255", ga:"-100", gb:"255", ba:"-100", bb:"-255", aa:"100", ab:"0"};
}
Symbol 1603 MovieClip Frame 1
stop();
Symbol 1603 MovieClip Frame 2
stop();
Symbol 1603 MovieClip Frame 3
stop();
Symbol 1603 MovieClip Frame 4
stop();
Instance of Symbol 1607 MovieClip in Symbol 1609 MovieClip Frame 1
onClipEvent (load) {
this._width = 21.2;
}
onClipEvent (enterFrame) {
this._width = 21.2 * exp;
exp++;
}
Symbol 1612 MovieClip Frame 1
stop();
Symbol 1612 MovieClip Frame 2
if (_root.SFX == 1) {
_root.soundspell1.gotoAndStop(8);
}
if (_root.BGM == 1) {
if (_root.startGameBgm == 1) {
delete _root.startGameBgm;
} else {
_root.soundbgm1.gotoAndStop(3);
}
}
play();
Instance of Symbol 1596 MovieClip in Symbol 1612 MovieClip Frame 9
onClipEvent (load) {
this.gotoAndStop(_root.progress);
this.prog = _root.progress;
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.progress);
}
Instance of Symbol 1596 MovieClip in Symbol 1612 MovieClip Frame 9
onClipEvent (load) {
this.gotoAndStop(_root.progress + 1);
this.prog = _root.progress + 1;
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.progress + 1);
}
Instance of Symbol 1596 MovieClip in Symbol 1612 MovieClip Frame 9
onClipEvent (load) {
this.gotoAndStop(_root.progress + 2);
this.prog = _root.progress + 2;
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.progress + 2);
}
Instance of Symbol 1596 MovieClip in Symbol 1612 MovieClip Frame 9
onClipEvent (load) {
this.gotoAndStop(_root.progress + 3);
this.prog = _root.progress + 3;
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.progress + 3);
}
Instance of Symbol 52 MovieClip in Symbol 1612 MovieClip Frame 9
onClipEvent (load) {
this.gotoAndStop(_root.class);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.class);
}
Instance of Symbol 1603 MovieClip in Symbol 1612 MovieClip Frame 9
onClipEvent (enterFrame) {
this.gotoAndStop(_root.class);
}
Symbol 1612 MovieClip Frame 47
_root.soundspell1.gotoAndStop(8);
Instance of Symbol 1609 MovieClip in Symbol 1612 MovieClip Frame 48
onClipEvent (enterFrame) {
output = "PREPARE FOR BATTLE!!!";
read++;
this.p_battle_output = output.slice(0, read);
}
Symbol 1612 MovieClip Frame 93
if (_root.game_start == null) {
_root.game_start = 1;
}
if (_root.floorComplete_1._x == null) {
} else {
removeMovieClip(_root.floorComplete_1);
_root.floorLower = 1;
}
delete _root.monloadScreen;
_root.floorLoadingScreen();
Symbol 1612 MovieClip Frame 105
if (step >= 4) {
delete step;
} else {
step++;
}
if (_root.progress >= 5) {
_root.progress = 2;
} else {
_root.progress++;
}
Symbol 1812 MovieClip Frame 10
_root.soundeffect1.gotoAndStop(5);
Instance of Symbol 30 MovieClip in Symbol 1812 MovieClip Frame 11
onClipEvent (enterFrame) {
_root.char1._x = 120;
_root.char1._y = 120;
}
Symbol 1812 MovieClip Frame 25
if (_root.floorLower == 1) {
if (_root.floorComplete_1._x == null) {
} else {
removeMovieClip(_root.floorComplete_1);
}
_root.char1._visible = true;
_root.debugFloorChange(_root.char1);
_root.newFloor = 1;
}
if (_root.floorHigher == 1) {
_root.char1._visible = true;
_root.debugFloorChange(_root.char1);
}
if (_root.game_start == 1) {
if (_root._currentframe == 1) {
_root.nextFrame();
}
delete _root.game_start;
}
Symbol 1812 MovieClip Frame 27
if (_root.firstBGM == null) {
_root.soundbgm1.gotoAndStop(_root.floor + 4);
_root.firstBGM = 1;
}
Symbol 1812 MovieClip Frame 37
removeMovieClip(this);
Symbol 1822 MovieClip Frame 1
stop();
Symbol 1822 MovieClip Frame 2
gotoAndStop (1);
Symbol 1822 MovieClip Frame 3
gotoAndStop (1);
Symbol 1822 MovieClip Frame 4
gotoAndStop (1);
Symbol 1822 MovieClip Frame 6
gotoAndStop (1);
Symbol 1822 MovieClip Frame 7
gotoAndStop (1);
Symbol 1822 MovieClip Frame 8
gotoAndStop (1);
Symbol 1822 MovieClip Frame 9
gotoAndStop (1);
Symbol 1822 MovieClip Frame 10
gotoAndStop (1);
Symbol 1828 MovieClip Frame 1
gotoAndStop (1);
Symbol 1828 MovieClip Frame 2
gotoAndStop (1);
Symbol 1828 MovieClip Frame 3
gotoAndStop (1);
Symbol 1828 MovieClip Frame 4
gotoAndStop (1);
Symbol 1828 MovieClip Frame 5
gotoAndStop (1);
Symbol 1833 MovieClip Frame 1
stop();
Symbol 1833 MovieClip Frame 2
gotoAndStop (1);
Symbol 1833 MovieClip Frame 3
gotoAndStop (1);
Symbol 1833 MovieClip Frame 4
gotoAndStop (1);
Symbol 1833 MovieClip Frame 5
gotoAndStop (1);
Symbol 1840 MovieClip Frame 1
gotoAndStop (1);
Symbol 1840 MovieClip Frame 2
gotoAndStop (1);
Symbol 1840 MovieClip Frame 3
gotoAndStop (1);
Symbol 1840 MovieClip Frame 4
gotoAndStop (1);
Symbol 1840 MovieClip Frame 5
gotoAndStop (1);
Symbol 1840 MovieClip Frame 6
gotoAndStop (1);
Symbol 1840 MovieClip Frame 7
gotoAndStop (1);
Symbol 1840 MovieClip Frame 8
gotoAndStop (1);
Symbol 1840 MovieClip Frame 9
gotoAndStop (1);
Symbol 1843 MovieClip Frame 1
stop();
Symbol 1843 MovieClip Frame 2
stop();
gotoAndStop (1);
Symbol 1843 MovieClip Frame 3
stop();
gotoAndStop (1);
Symbol 1843 MovieClip Frame 4
stop();
gotoAndStop (1);
Symbol 1858 MovieClip Frame 1
stop();
Symbol 1858 MovieClip Frame 2
if (_root.BGM == 2) {
stopAllSounds();
}
gotoAndStop (1);
Symbol 1858 MovieClip Frame 3
if (_root.BGM == 2) {
stopAllSounds();
}
gotoAndStop (1);
Symbol 1858 MovieClip Frame 4
if (_root.BGM == 2) {
stopAllSounds();
}
gotoAndStop (1);
Symbol 1858 MovieClip Frame 5
if (_root.BGM == 2) {
stopAllSounds();
}
gotoAndStop (1);
Symbol 1858 MovieClip Frame 6
if (_root.BGM == 2) {
stopAllSounds();
}
gotoAndStop (1);
Symbol 1858 MovieClip Frame 7
if (_root.BGM == 2) {
stopAllSounds();
}
gotoAndStop (1);
Symbol 1858 MovieClip Frame 8
if (_root.BGM == 2) {
stopAllSounds();
}
gotoAndStop (1);
Symbol 1858 MovieClip Frame 9
if (_root.BGM == 2) {
stopAllSounds();
}
gotoAndStop (1);
Symbol 1858 MovieClip Frame 10
if (_root.BGM == 2) {
stopAllSounds();
}
gotoAndStop (1);
Symbol 1858 MovieClip Frame 11
if (_root.BGM == 2) {
stopAllSounds();
}
gotoAndStop (1);
Symbol 1858 MovieClip Frame 12
if (_root.BGM == 2) {
stopAllSounds();
}
gotoAndStop (1);
Symbol 1858 MovieClip Frame 13
if (_root.BGM == 2) {
stopAllSounds();
}
gotoAndStop (1);
Symbol 1858 MovieClip Frame 14
if (_root.BGM == 2) {
stopAllSounds();
}
gotoAndStop (1);
Symbol 1858 MovieClip Frame 15
gotoAndStop (13);
Symbol 1858 MovieClip Frame 20
if (_root.BGM == 2) {
stopAllSounds();
}
gotoAndStop (1);
Symbol 1858 MovieClip Frame 21
if (_root.BGM == 2) {
stopAllSounds();
}
gotoAndStop (1);
Symbol 1861 Button
on (press) {
_root.floorLoadingScreen();
_root.class = 2;
_root.game_start = 1;
}
Symbol 1862 Button
on (press) {
_root.floorLoadingScreen();
_root.class = 1;
_root.game_start = 1;
}
Symbol 1869 MovieClip Frame 1
stop();
Symbol 1869 MovieClip Frame 2
stop();
Symbol 1869 MovieClip Frame 3
stop();
Symbol 1869 MovieClip Frame 4
stop();
Instance of Symbol 1869 MovieClip in Symbol 1876 MovieClip Frame 1
onClipEvent (mouseUp) {
delete m_input;
}
onClipEvent (mouseDown) {
m_input = 1;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
if (Key.isDown(32) || ((m_input == 1) && (this.hitTest(_root._xmouse, _root._ymouse, true)))) {
if (startgame == null) {
stopAllSounds();
_root.reset();
_root.resetii();
_root.cs_selectLoad = 1;
startgame = 1;
}
}
}
Instance of Symbol 1304 MovieClip in Symbol 1876 MovieClip Frame 1
onClipEvent (load) {
_root.soundbgm.duplicateMovieClip("soundbgm1", 104);
_root.soundbgm1.gotoAndStop(2);
}
onClipEvent (mouseDown) {
_root.m_input = 1;
}
onClipEvent (mouseUp) {
delete _root.m_input;
}
onClipEvent (enterFrame) {
if (_root.BGM == null) {
_root.BGM = 1;
this.gotoAndStop(2);
}
if (_root.BGM == 1) {
this.gotoAndStop(2);
} else if (_root.BGMstart == null) {
this.gotoAndStop(1);
_root.BGM = 2;
_root.BGMstart = 1;
} else if (_root.soundbgm1._x == null) {
this.gotoAndStop(1);
_root.BGM = 2;
}
if ((_root.m_input == 1) && (this.hitTest(_root._xmouse, _root._ymouse, true))) {
_root.mouseReset();
if (muzie == null) {
delete _root.track;
if (_root.BGM >= 2) {
_root.BGM = 1;
} else {
_root.BGM++;
}
if (_root.BGM == 2) {
stopAllSounds();
removeMovieClip(_root.soundbgm1);
}
if (_root.BGM == 1) {
_root.soundbgm.duplicateMovieClip("soundbgm1", 104);
_root.soundbgm1.gotoAndStop(Math.ceil(Math.random() * _root.soundbgm1._totalframes) + 1);
}
muzie = 1;
}
} else {
delete muzie;
}
}
Instance of Symbol 1304 MovieClip in Symbol 1876 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.SFX == null) {
this.gotoAndStop(2);
_root.SFX = 1;
}
if (_root.SFX == 2) {
if (soundUnload == null) {
removeMovieClip(_root.sound1);
removeMovieClip(_root.soundeffect1);
removeMovieClip(_root.sounditem1);
removeMovieClip(_root.soundspell1);
removeMovieClip(_root.soundvoice1);
soundUnload = 1;
}
this.gotoAndStop(1);
}
if (_root.SFX == 1) {
if (soundLoad == null) {
_root.sound.duplicateMovieClip("sound1", 901);
_root.soundeffect.duplicateMovieClip("soundeffect1", 902);
_root.sounditem.duplicateMovieClip("sounditem1", 903);
_root.soundspell.duplicateMovieClip("soundspell1", 904);
_root.soundvoice.duplicateMovieClip("soundvoice1", 905);
soundLoad = 1;
}
this.gotoAndStop(2);
} else if (_root.SFXstart == null) {
this.gotoAndStop(1);
_root.SFX = 2;
_root.SFXstart = 1;
} else if (_root.sound1._x == null) {
this.gotoAndStop(1);
_root.SFX = 2;
}
if ((_root.m_input == 1) && (this.hitTest(_root._xmouse, _root._ymouse, true))) {
if (soundfx == null) {
if (_root.SFX >= 2) {
_root.SFX = 1;
} else {
_root.SFX++;
}
if (_root.SFX == 2) {
removeMovieClip(_root.sound1);
removeMovieClip(_root.soundeffect1);
removeMovieClip(_root.sounditem1);
removeMovieClip(_root.soundspell1);
removeMovieClip(_root.soundvoice1);
this.gotoAndStop(2);
}
if (_root.SFX == 1) {
_root.track = "*WHACK~!*";
_root.sound.duplicateMovieClip("sound1", 901);
_root.soundeffect.duplicateMovieClip("soundeffect1", 902);
_root.sounditem.duplicateMovieClip("sounditem1", 903);
_root.soundspell.duplicateMovieClip("soundspell1", 904);
_root.soundvoice.duplicateMovieClip("soundvoice1", 905);
_root.sound1.gotoAndPlay(2);
this.gotoAndStop(1);
}
soundfx = 1;
}
} else {
delete soundfx;
}
}
Instance of Symbol 1875 MovieClip in Symbol 1876 MovieClip Frame 1
onClipEvent (enterFrame) {
np = _root.track + " ";
}
Symbol 2077 MovieClip Frame 1
stop();
Symbol 2077 MovieClip Frame 2
stop();
Symbol 2077 MovieClip Frame 3
stop();
Symbol 2077 MovieClip Frame 4
stop();
Symbol 2077 MovieClip Frame 5
stop();
Symbol 2077 MovieClip Frame 6
stop();
Symbol 2077 MovieClip Frame 7
stop();
Symbol 2077 MovieClip Frame 8
stop();
Symbol 2077 MovieClip Frame 9
stop();
Symbol 2077 MovieClip Frame 10
stop();
Symbol 2077 MovieClip Frame 11
stop();
Symbol 2077 MovieClip Frame 12
stop();
Symbol 2077 MovieClip Frame 13
stop();
Symbol 2077 MovieClip Frame 14
stop();
Symbol 2077 MovieClip Frame 15
stop();
Symbol 2077 MovieClip Frame 16
stop();
Symbol 2077 MovieClip Frame 17
stop();
Symbol 2077 MovieClip Frame 18
stop();
Symbol 2077 MovieClip Frame 19
stop();
Symbol 2077 MovieClip Frame 20
stop();
Symbol 2077 MovieClip Frame 21
stop();
Symbol 2077 MovieClip Frame 22
stop();
Symbol 2077 MovieClip Frame 23
stop();
Symbol 2077 MovieClip Frame 24
stop();
Symbol 2077 MovieClip Frame 25
stop();
Symbol 2077 MovieClip Frame 26
stop();
Symbol 2077 MovieClip Frame 27
stop();
Symbol 2077 MovieClip Frame 28
stop();
Symbol 2077 MovieClip Frame 29
stop();
Symbol 2077 MovieClip Frame 30
stop();
Symbol 2077 MovieClip Frame 31
stop();
Symbol 2077 MovieClip Frame 32
stop();
Symbol 2077 MovieClip Frame 33
stop();
Symbol 2077 MovieClip Frame 34
stop();
Symbol 2077 MovieClip Frame 35
stop();
Symbol 2077 MovieClip Frame 36
stop();
Symbol 2077 MovieClip Frame 37
stop();
Symbol 2077 MovieClip Frame 38
stop();
Symbol 2077 MovieClip Frame 39
stop();
Symbol 2077 MovieClip Frame 40
stop();
Symbol 2077 MovieClip Frame 41
stop();
Symbol 2077 MovieClip Frame 42
stop();
Symbol 2077 MovieClip Frame 43
stop();
Symbol 2077 MovieClip Frame 44
stop();
Symbol 2077 MovieClip Frame 45
stop();
Symbol 2077 MovieClip Frame 46
stop();
Symbol 2077 MovieClip Frame 47
stop();
Symbol 2077 MovieClip Frame 48
stop();
Symbol 2077 MovieClip Frame 49
stop();
Symbol 2077 MovieClip Frame 50
stop();
Symbol 2077 MovieClip Frame 51
stop();
Symbol 2077 MovieClip Frame 52
stop();
Symbol 2077 MovieClip Frame 53
stop();
Symbol 2077 MovieClip Frame 54
stop();
Symbol 2077 MovieClip Frame 55
stop();
Symbol 2077 MovieClip Frame 56
stop();
Symbol 2077 MovieClip Frame 57
stop();
Symbol 2077 MovieClip Frame 58
stop();
Symbol 2077 MovieClip Frame 59
stop();
Symbol 2077 MovieClip Frame 60
stop();
Symbol 2077 MovieClip Frame 61
stop();
Symbol 2077 MovieClip Frame 62
stop();
Symbol 2077 MovieClip Frame 63
stop();
Symbol 2077 MovieClip Frame 64
stop();
Symbol 2077 MovieClip Frame 65
stop();
Symbol 2077 MovieClip Frame 66
stop();
Symbol 2077 MovieClip Frame 67
stop();
Symbol 2077 MovieClip Frame 68
stop();
Symbol 2077 MovieClip Frame 69
stop();
Symbol 2077 MovieClip Frame 70
stop();
Symbol 2077 MovieClip Frame 71
stop();
Symbol 2077 MovieClip Frame 72
stop();
Symbol 2077 MovieClip Frame 73
stop();
Symbol 2077 MovieClip Frame 74
stop();
Symbol 2077 MovieClip Frame 75
stop();
Symbol 2077 MovieClip Frame 76
stop();
Symbol 2077 MovieClip Frame 77
stop();
Symbol 2077 MovieClip Frame 78
stop();
Symbol 2077 MovieClip Frame 79
stop();
Symbol 2077 MovieClip Frame 80
stop();
Symbol 2077 MovieClip Frame 81
stop();
Symbol 2077 MovieClip Frame 82
stop();
Symbol 2077 MovieClip Frame 83
stop();
Symbol 2077 MovieClip Frame 84
stop();
Symbol 2077 MovieClip Frame 85
stop();
Symbol 2077 MovieClip Frame 86
stop();
Symbol 2077 MovieClip Frame 87
stop();
Symbol 2077 MovieClip Frame 88
stop();
Symbol 2077 MovieClip Frame 89
stop();
Symbol 2077 MovieClip Frame 90
stop();
Symbol 2077 MovieClip Frame 91
stop();
Symbol 2077 MovieClip Frame 92
stop();
Symbol 2077 MovieClip Frame 93
stop();
Symbol 2077 MovieClip Frame 94
stop();
Symbol 2077 MovieClip Frame 95
stop();
Symbol 2077 MovieClip Frame 96
stop();
Symbol 2077 MovieClip Frame 97
stop();
Symbol 2077 MovieClip Frame 98
stop();
Symbol 2077 MovieClip Frame 99
stop();
Symbol 2077 MovieClip Frame 100
stop();
Symbol 2085 MovieClip Frame 5
stop();
stop();
Symbol 2085 MovieClip Frame 16
removeMovieClip(this);
Instance of Symbol 2091 MovieClip in Symbol 2093 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.floorHAnim == 1) {
gotoAndPlay (1);
this._visible = true;
delete _root.floorLAnim;
} else {
this._visible = false;
}
}
Instance of Symbol 2092 MovieClip in Symbol 2093 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.floorLAnim == 1) {
gotoAndPlay (1);
this._visible = true;
delete _root.floorHAnim;
} else {
this._visible = false;
}
}
Symbol 2093 MovieClip Frame 74
delete _root.floorHAnim;
delete _root.floorLAnim;
if (this._name == "floor_fader1") {
removeMovieClip(this);
}
Symbol 2100 MovieClip Frame 1
stop();
Symbol 2100 MovieClip Frame 4
if (_root.secondTime == null) {
delete _root.firstTime_;
}
if (_root.thirdTime == null) {
delete _root.secondTime_;
}
if (_root.fourthTime == null) {
delete _root.thirdTime_;
}
delete _root.fourthTime_;
Symbol 2100 MovieClip Frame 5
_root.firstTime_ = _root.firstTime;
_root.secondTime_ = _root.secondTime;
_root.thirdTime_ = _root.thirdTime;
_root.fourthTime_ = _root.fourthTime;
Symbol 2100 MovieClip Frame 7
if (_root.secondTime == null) {
delete _root.firstTime_;
}
if (_root.thirdTime == null) {
delete _root.secondTime_;
}
if (_root.fourthTime == null) {
delete _root.thirdTime_;
}
delete _root.fourthTime_;
Symbol 2100 MovieClip Frame 8
_root.firstTime_ = _root.firstTime;
_root.secondTime_ = _root.secondTime;
_root.thirdTime_ = _root.thirdTime;
_root.fourthTime_ = _root.fourthTime;
Symbol 2100 MovieClip Frame 10
if (_root.secondTime == null) {
delete _root.firstTime_;
}
if (_root.thirdTime == null) {
delete _root.secondTime_;
}
if (_root.fourthTime == null) {
delete _root.thirdTime_;
}
delete _root.fourthTime_;
Symbol 2100 MovieClip Frame 11
_root.firstTime_ = _root.firstTime;
_root.secondTime_ = _root.secondTime;
_root.thirdTime_ = _root.thirdTime;
_root.fourthTime_ = _root.fourthTime;
Symbol 2100 MovieClip Frame 13
if (_root.secondTime == null) {
delete _root.firstTime_;
}
if (_root.thirdTime == null) {
delete _root.secondTime_;
}
if (_root.fourthTime == null) {
delete _root.thirdTime_;
}
delete _root.fourthTime_;
Symbol 2100 MovieClip Frame 14
_root.firstTime_ = _root.firstTime;
_root.secondTime_ = _root.secondTime;
_root.thirdTime_ = _root.thirdTime;
_root.fourthTime_ = _root.fourthTime;
Symbol 2100 MovieClip Frame 16
if (_root.secondTime == null) {
delete _root.firstTime_;
}
if (_root.thirdTime == null) {
delete _root.secondTime_;
}
if (_root.fourthTime == null) {
delete _root.thirdTime_;
}
delete _root.fourthTime_;
Symbol 2100 MovieClip Frame 17
_root.firstTime_ = _root.firstTime;
_root.secondTime_ = _root.secondTime;
_root.thirdTime_ = _root.thirdTime;
_root.fourthTime_ = _root.fourthTime;
Symbol 2100 MovieClip Frame 19
if (_root.secondTime == null) {
delete _root.firstTime_;
}
if (_root.thirdTime == null) {
delete _root.secondTime_;
}
if (_root.fourthTime == null) {
delete _root.thirdTime_;
}
delete _root.fourthTime_;
Symbol 2100 MovieClip Frame 20
_root.firstTime_ = _root.firstTime;
_root.secondTime_ = _root.secondTime;
_root.thirdTime_ = _root.thirdTime;
_root.fourthTime_ = _root.fourthTime;
Symbol 2100 MovieClip Frame 22
if (_root.secondTime == null) {
delete _root.firstTime_;
}
if (_root.thirdTime == null) {
delete _root.secondTime_;
}
if (_root.fourthTime == null) {
delete _root.thirdTime_;
}
delete _root.fourthTime_;
Symbol 2100 MovieClip Frame 23
_root.firstTime_ = _root.firstTime;
_root.secondTime_ = _root.secondTime;
_root.thirdTime_ = _root.thirdTime;
_root.fourthTime_ = _root.fourthTime;
Symbol 2100 MovieClip Frame 25
if (_root.secondTime == null) {
delete _root.firstTime_;
}
if (_root.thirdTime == null) {
delete _root.secondTime_;
}
if (_root.fourthTime == null) {
delete _root.thirdTime_;
}
delete _root.fourthTime_;
Symbol 2100 MovieClip Frame 26
_root.firstTime_ = _root.firstTime;
_root.secondTime_ = _root.secondTime;
_root.thirdTime_ = _root.thirdTime;
_root.fourthTime_ = _root.fourthTime;
Symbol 2100 MovieClip Frame 27
if (_root.secondTime == null) {
delete _root.firstTime_;
}
if (_root.thirdTime == null) {
delete _root.secondTime_;
}
if (_root.fourthTime == null) {
delete _root.thirdTime_;
}
delete _root.fourthTime_;
Symbol 2100 MovieClip Frame 29
_root.firstTime_ = _root.firstTime;
_root.secondTime_ = _root.secondTime;
_root.thirdTime_ = _root.thirdTime;
_root.fourthTime_ = _root.fourthTime;
stop();
Symbol 2108 MovieClip Frame 20
gotoAndStop (1);
Symbol 2108 MovieClip Frame 21
stop();
Symbol 2110 MovieClip Frame 12
stop();
Symbol 2111 MovieClip Frame 1
stop();
Instance of Symbol 2108 MovieClip in Symbol 2111 MovieClip Frame 1
onClipEvent (load) {
this._rotation = 90;
this.gotoAndStop(21);
}
onClipEvent (enterFrame) {
if ((!Key.isDown(Key.getCode())) && (m_move == null)) {
this.stop();
} else {
this.play();
}
this._rotation = 90;
}
onClipEvent (mouseMove) {
m_move = 1;
}
onClipEvent (mouseUp) {
delete m_move;
}
Instance of Symbol 2110 MovieClip in Symbol 2111 MovieClip Frame 1
onClipEvent (enterFrame) {
if (rwgemglow == null) {
this.gotoAndPlay(2);
rwgemglow = 1;
}
}
onClipEvent (unload) {
delete rwgemglow;
}
Symbol 2112 MovieClip Frame 26
stop();
Symbol 2113 MovieClip Frame 1
stop();
Symbol 2113 MovieClip Frame 2
stop();
Symbol 2113 MovieClip Frame 3
stop();
Symbol 2113 MovieClip Frame 4
stop();
Symbol 2113 MovieClip Frame 5
stop();
Symbol 2113 MovieClip Frame 6
stop();
Symbol 2136 MovieClip Frame 1
stop();
Symbol 2136 MovieClip Frame 2
_root.level_up_bgm();
play();
Symbol 2136 MovieClip Frame 44
if (_root.floorComplete_1._x == null) {
stopAllSounds();
if (_root.bgm_input == 1) {
delete _root.bgm_input;
}
}
Symbol 2136 MovieClip Frame 45
if (_root.mvp_in == 1) {
_root.soundbgm1.gotoAndStop(4);
} else if (_root.floorComplete_1._x == null) {
_root.soundbgm1.gotoAndStop(_root.floor + 4);
}
removeMovieClip(this);
Symbol 2139 MovieClip Frame 1
stop();
Symbol 2212 MovieClip Frame 1
stop();
Symbol 2212 MovieClip Frame 2
stop();
Symbol 2212 MovieClip Frame 3
stop();
Symbol 2212 MovieClip Frame 4
stop();
Symbol 2212 MovieClip Frame 5
stop();
Symbol 2212 MovieClip Frame 6
stop();
Symbol 2212 MovieClip Frame 7
stop();
Symbol 2212 MovieClip Frame 8
stop();
Symbol 2321 MovieClip Frame 1
stop();
Symbol 2321 MovieClip Frame 2
stop();
Instance of Symbol 2151 MovieClip in Symbol 2321 MovieClip Frame 7
onClipEvent (enterFrame) {
if (_root.char1.hb.hitTest(this) && (_root.time_use == null)) {
if (_root.floor > 2) {
_root.exit_dun = 1;
_root.floorHigher = 1;
_root.floorListCount--;
this._y = -9999;
_root.char1._x = 236;
_root.char1._y = 120;
_root.char1._visible = false;
}
}
}
Instance of Symbol 2155 MovieClip "exit" in Symbol 2321 MovieClip Frame 7
onClipEvent (load) {
if (_root.floor == 2) {
this._visible = false;
} else {
this._visible = true;
}
}
onClipEvent (enterFrame) {
_root.findme = _parent._name;
if (_root.floor == 2) {
this._visible = false;
} else {
this._visible = true;
}
}
Instance of Symbol 2212 MovieClip "hb" in Symbol 2321 MovieClip Frame 7
onClipEvent (load) {
gotoAndStop(_parent._currentframe);
}
onClipEvent (enterFrame) {
gotoAndStop(_parent._currentframe);
}
Symbol 2321 MovieClip Frame 21
_root.nullSpawn = 1;
Instance of Symbol 2151 MovieClip "exit2" in Symbol 2321 MovieClip Frame 76
onClipEvent (load) {
start_posx = this._x;
start_posy = this._y;
}
onClipEvent (enterFrame) {
if (_root.floorListCount >= 1) {
} else if (_root.char1.hb.hitTest(this) && (_root.time_use == null)) {
if (_root.floorListCount == 0) {
_root.floorListCount = _root.floorListCount + 1;
} else if (_root.floorListCount < 0) {
_root.floorLower = 1;
_root.floorListCount = _root.floorListCount + 1;
}
_root.char1._visible = false;
_root.char1._x = 236;
_root.char1._y = 120;
}
if (_root.mvp_in == 1) {
this._y = -9999;
} else {
this._y = start_posy;
}
}
Instance of Symbol 2151 MovieClip "exit" in Symbol 2321 MovieClip Frame 80
onClipEvent (enterFrame) {
if (_root.char1.hb.hitTest(this) && (_root.time_use == null)) {
if (_root.floor > 1) {
_root.exit_dun = 1;
_root.floorHigher = 1;
_root.floorListCount--;
this._y = -9999;
_root.char1._x = 236;
_root.char1._y = 120;
_root.char1._visible = false;
}
}
}
Instance of Symbol 2155 MovieClip "exit" in Symbol 2321 MovieClip Frame 80
onClipEvent (load) {
if (_root.floor == 1) {
this._visible = false;
} else {
this._visible = true;
}
}
onClipEvent (enterFrame) {
if (_root.floor == 1) {
this._visible = false;
} else {
this._visible = true;
}
}
Instance of Symbol 2151 MovieClip "exit2" in Symbol 2321 MovieClip Frame 143
onClipEvent (load) {
start_posx = this._x;
start_posy = this._y;
}
onClipEvent (enterFrame) {
if (_root.floorListCount >= 1) {
} else if (_root.char1.hb.hitTest(this) && (_root.time_use == null)) {
if (_root.floorListCount == 0) {
_root.floorListCount = _root.floorListCount + 1;
} else if (_root.floorListCount < 0) {
_root.floorLower = 1;
_root.floorListCount = _root.floorListCount + 1;
}
_root.char1._visible = false;
_root.char1._x = 236;
_root.char1._y = 120;
}
if (_root.mvp_in == 1) {
this._y = -9999;
} else {
this._y = start_posy;
}
}
Instance of Symbol 2151 MovieClip in Symbol 2321 MovieClip Frame 210
onClipEvent (enterFrame) {
if (_root.char1.hb.hitTest(this)) {
if (_root.floor > 1) {
_root.exit_dun = 1;
_root.floorHigher = 1;
this._y = -9999;
}
}
}
Instance of Symbol 2155 MovieClip "exit" in Symbol 2321 MovieClip Frame 210
onClipEvent (load) {
if (_root.floor == 1) {
this._visible = false;
} else {
this._visible = true;
}
}
onClipEvent (enterFrame) {
if (_root.floor == 1) {
this._visible = false;
} else {
this._visible = true;
}
}
Symbol 2326 MovieClip Frame 21
removeMovieClip(this);
Instance of Symbol 2335 MovieClip in Symbol 2336 MovieClip Frame 1
onClipEvent (load) {
}
onClipEvent (enterFrame) {
if (_root.debugGame == null) {
_alpha = 100;
if (counter == null) {
counter = 1;
}
if (getTimer() >= (999 * counter)) {
counter++;
_root.fps = "FPS:" + rate;
delete rate;
} else {
rate++;
}
} else {
_visible = false;
}
}
Symbol 2343 MovieClip Frame 1
stop();
Symbol 2346 MovieClip Frame 1
stop();
Symbol 2346 MovieClip Frame 2
stop();
Symbol 2349 MovieClip Frame 25
removeMovieClip(this);
Symbol 2353 MovieClip Frame 25
removeMovieClip(this);
Symbol 2356 MovieClip Frame 25
removeMovieClip(this);
Symbol 2358 MovieClip Frame 25
removeMovieClip(this);
Symbol 2361 MovieClip Frame 15
removeMovieClip(this);
Symbol 2362 MovieClip Frame 15
removeMovieClip(this);
Symbol 2366 MovieClip Frame 25
removeMovieClip(this);
Symbol 2367 MovieClip Frame 25
removeMovieClip(this);
Instance of Symbol 2371 MovieClip in Symbol 2376 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this._height > ((_root.concpotTimer * 17.8) / _root.concpot_time)) {
this._height = this._height - 1;
}
if (this._height < ((_root.concpotTimer * 17.8) / _root.concpot_time)) {
this._height = this._height + 1;
}
}
Instance of Symbol 2371 MovieClip in Symbol 2388 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this._height > ((_root.invistimer * 17.8) / 1560)) {
this._height = this._height - 1;
}
if (this._height < ((_root.invistimer * 17.8) / 1560)) {
this._height = this._height + 1;
}
}
Instance of Symbol 2371 MovieClip in Symbol 2392 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this._height > ((_root.furytimer * 17.8) / 6250)) {
this._height = this._height - 1;
}
if (this._height < ((_root.furytimer * 17.8) / 6250)) {
this._height = this._height + 1;
}
}
Instance of Symbol 855 MovieClip "char" in Symbol 2418 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(_root.char1._currentframe);
this._xscale = _root.char1._xscale;
}
Instance of Symbol 1232 MovieClip "item2" in Symbol 2418 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.equipArray[2] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.equipArray[2]);
}
}
Instance of Symbol 1232 MovieClip "item3" in Symbol 2418 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.equipArray[3] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.equipArray[3]);
}
}
Instance of Symbol 1232 MovieClip "item1" in Symbol 2418 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.equipArray[1] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.equipArray[1]);
}
}
Instance of Symbol 1232 MovieClip "item4" in Symbol 2418 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.equipArray[4] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.equipArray[4]);
}
}
Instance of Symbol 1232 MovieClip "item5" in Symbol 2418 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.equipArray[5] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.equipArray[5]);
}
}
Instance of Symbol 1304 MovieClip in Symbol 2418 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.equip_usage == 1) {
if (_root.BGM == null) {
this.gotoAndStop(2);
_root.BGM = 1;
}
if (_root.BGM == 1) {
this.gotoAndStop(2);
} else if (_root.BGMstart == null) {
this.gotoAndStop(1);
_root.BGM = 2;
_root.BGMstart = 1;
} else if (_root.soundbgm1._x == null) {
this.gotoAndStop(1);
_root.BGM = 2;
}
if ((_root.m_input == 1) && (this.hitTest(_root._xmouse, _root._ymouse, true))) {
_root.mouseReset();
if (muzie == null) {
if (_root.BGM >= 2) {
_root.BGM = 1;
} else {
_root.BGM++;
}
if (_root.BGM == 2) {
stopAllSounds();
removeMovieClip(_root.soundbgm1);
}
if (_root.BGM == 1) {
_root.soundbgm.duplicateMovieClip("soundbgm1", 104);
_root.soundbgm1.gotoAndStop(_root.floor + 4);
_root.soundbgm1.gotoAndStop(1);
}
muzie = 1;
}
} else {
delete muzie;
}
}
}
Instance of Symbol 1304 MovieClip in Symbol 2418 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.equip_usage == 1) {
if (_root.SFX == null) {
this.gotoAndStop(2);
_root.SFX = 1;
}
if (_root.SFX == 2) {
if (soundUnload == null) {
removeMovieClip(_root.sound1);
removeMovieClip(_root.soundeffect1);
removeMovieClip(_root.sounditem1);
removeMovieClip(_root.soundspell1);
removeMovieClip(_root.soundvoice1);
soundUnload = 1;
}
this.gotoAndStop(1);
}
if (_root.SFX == 1) {
if (soundLoad == null) {
_root.sound.duplicateMovieClip("sound1", 901);
_root.soundeffect.duplicateMovieClip("soundeffect1", 902);
_root.sounditem.duplicateMovieClip("sounditem1", 903);
_root.soundspell.duplicateMovieClip("soundspell1", 904);
_root.soundvoice.duplicateMovieClip("soundvoice1", 905);
soundLoad = 1;
}
this.gotoAndStop(2);
} else if (_root.SFXstart == null) {
this.gotoAndStop(1);
_root.SFX = 2;
_root.SFXstart = 1;
} else if (_root.sound1._x == null) {
this.gotoAndStop(1);
_root.SFX = 2;
}
if ((_root.m_input == 1) && (this.hitTest(_root._xmouse, _root._ymouse, true))) {
if (soundfx == null) {
if (_root.SFX >= 2) {
_root.SFX = 1;
} else {
_root.SFX++;
}
if (_root.SFX == 2) {
removeMovieClip(_root.sound1);
removeMovieClip(_root.soundeffect1);
removeMovieClip(_root.sounditem1);
removeMovieClip(_root.soundspell1);
removeMovieClip(_root.soundvoice1);
this.gotoAndStop(2);
}
if (_root.SFX == 1) {
_root.sound.duplicateMovieClip("sound1", 901);
_root.soundeffect.duplicateMovieClip("soundeffect1", 902);
_root.sounditem.duplicateMovieClip("sounditem1", 903);
_root.soundspell.duplicateMovieClip("soundspell1", 904);
_root.soundvoice.duplicateMovieClip("soundvoice1", 905);
_root.sound1.gotoAndPlay(2);
this.gotoAndStop(1);
}
soundfx = 1;
}
} else {
delete soundfx;
}
}
}
Symbol 2427 MovieClip Frame 1
stop();
Symbol 2427 MovieClip Frame 2
stop();
Instance of Symbol 1232 MovieClip "item6" in Symbol 2428 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.spellArray[6] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.spellArray[6]);
}
}
Instance of Symbol 1232 MovieClip "item7" in Symbol 2428 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.spellArray[7] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.spellArray[7]);
}
}
Instance of Symbol 1232 MovieClip "item1" in Symbol 2428 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.spellArray[1] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.spellArray[1]);
}
}
Instance of Symbol 1232 MovieClip "item2" in Symbol 2428 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.spellArray[2] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.spellArray[2]);
}
}
Instance of Symbol 1232 MovieClip "item3" in Symbol 2428 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.spellArray[3] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.spellArray[3]);
}
}
Instance of Symbol 1232 MovieClip "item4" in Symbol 2428 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.spellArray[4] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.spellArray[4]);
}
}
Instance of Symbol 1232 MovieClip "item5" in Symbol 2428 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.spellArray[5] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.spellArray[5]);
}
}
Instance of Symbol 2427 MovieClip in Symbol 2428 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(_root.spellMenuArrowD + 1);
}
Instance of Symbol 2427 MovieClip "UP" in Symbol 2428 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(_root.spellMenuArrowU + 1);
}
Symbol 2434 MovieClip Frame 1
stop();
Instance of Symbol 2430 MovieClip in Symbol 2434 MovieClip Frame 1
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.testmail = 1;
if ((!_root.gameover) == 1) {
delete _root.newmail;
_parent._parent.letterbox.gotoAndPlay(2);
}
}
}
Symbol 2434 MovieClip Frame 2
stop();
Instance of Symbol 2433 MovieClip in Symbol 2434 MovieClip Frame 2
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.testmail = 1;
if ((!_root.gameover) == 1) {
delete _root.newmail;
_parent._parent.letterbox.gotoAndPlay(2);
}
}
}
Symbol 2441 Button
on (press) {
m = 1;
}
on (release, releaseOutside) {
m = 0;
}
Instance of Symbol 2442 MovieClip "head" in Symbol 2443 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.play_ro = _root.totalTimeNum[_root.play_];
}
Instance of Symbol 2443 MovieClip "player" in Symbol 2445 MovieClip Frame 1
onClipEvent (load) {
function playhead(x) {
if (x.m == 1) {
if (_xmouse < 3) {
_xmouse = 3;
} else if (_xmouse > 285.1) {
_xmouse = 285.1;
} else {
x._x = _xmouse;
}
_root.time_input = 1;
_root.play_ = Math.floor((x._x * _root.play_tot) / 288.1);
p = 0;
} else {
if ((!p) == 1) {
p = 1;
}
delete _root.time_input;
x._x = (_root.play_ * 288.1) / _root.play_tot;
}
}
}
onClipEvent (enterFrame) {
playhead(_root.game_hud1.timebar.player.head);
}
Symbol 2452 Button
on (press) {
delete _root.invenLess;
_root.invenMore = 1;
_root.invenSelect = 5;
}
Symbol 2455 Button
on (release) {
_root.invenMore = 0;
_root.invenLess = 1;
_root.invenSelect = 0;
}
Instance of Symbol 1232 MovieClip "item_1" in Symbol 2474 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.invenMore == 1) {
if (_root.itemNum[6] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.itemArraynum[6]);
}
} else if (_root.itemNum[1] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.itemArraynum[1]);
}
}
Instance of Symbol 1232 MovieClip "item_2" in Symbol 2474 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.invenMore == 1) {
if (_root.itemNum[7] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.itemArraynum[7]);
}
} else if (_root.itemNum[2] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.itemArraynum[2]);
}
}
Instance of Symbol 1232 MovieClip "item_3" in Symbol 2474 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.invenMore == 1) {
if (_root.itemNum[8] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.itemArraynum[8]);
}
} else if (_root.itemNum[3] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.itemArraynum[3]);
}
}
Instance of Symbol 1232 MovieClip "item_4" in Symbol 2474 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.invenMore == 1) {
if (_root.itemNum[9] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.itemArraynum[9]);
}
} else if (_root.itemNum[4] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.itemArraynum[4]);
}
}
Instance of Symbol 1232 MovieClip "item_5" in Symbol 2474 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.invenMore == 1) {
if (_root.itemNum[10] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.itemArraynum[10]);
}
} else if (_root.itemNum[5] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.itemArraynum[5]);
}
}
Symbol 2483 MovieClip Frame 1
stop();
Symbol 2483 MovieClip Frame 2
stop();
Symbol 2493 MovieClip Frame 1
stop();
Instance of Symbol 2371 MovieClip in Symbol 2512 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.class == 1) {
if (_root.mighttimer >= 1) {
if (this._height > ((_root.mighttimer * 17.8) / 1620)) {
this._height = this._height - 1;
}
if (this._height < ((_root.mighttimer * 17.8) / 1620)) {
this._height = this._height + 1;
}
} else if (_root.potencetimer >= 1) {
if (this._height > ((_root.potencetimer * 17.8) / 1850)) {
this._height = this._height - 1;
}
if (this._height < ((_root.potencetimer * 17.8) / 1850)) {
this._height = this._height + 1;
}
} else if (_root.shadowtimer >= 1) {
if (this._height > ((_root.shadowtimer * 17.8) / 6000)) {
this._height = this._height - 1;
}
if (this._height < ((_root.shadowtimer * 17.8) / 6000)) {
this._height = this._height + 1;
}
}
}
if (_root.class == 2) {
if (_root.blesstimer >= 1) {
if (this._height > ((_root.blesstimer * 17.8) / 3750)) {
this._height = this._height - 1;
}
if (this._height < ((_root.blesstimer * 17.8) / 3750)) {
this._height = this._height + 1;
}
} else if (_root.flanktimer >= 1) {
if (this._height > ((_root.flanktimer * 17.8) / 6250)) {
this._height = this._height - 1;
}
if (this._height < ((_root.flanktimer * 17.8) / 6250)) {
this._height = this._height + 1;
}
}
}
}
Instance of Symbol 2497 MovieClip in Symbol 2512 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.meleenum >= 1) {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 2499 MovieClip in Symbol 2512 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.meleenum >= 2) {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 2502 MovieClip in Symbol 2512 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.blesstimer >= 1) {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 2504 MovieClip in Symbol 2512 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.potencetimer >= 1) {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 2506 MovieClip in Symbol 2512 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.mighttimer >= 1) {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 2508 MovieClip in Symbol 2512 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.shadowtimer >= 1) {
_visible = true;
} else {
_visible = false;
}
}
Symbol 2516 Button
on (press) {
m = 1;
}
on (release, dragOut, releaseOutside) {
delete m;
}
Instance of Symbol 2517 MovieClip in Symbol 2518 MovieClip Frame 1
onClipEvent (load) {
function playhead(x) {
if (x._start == null) {
x._y = 83;
x._start = 1;
}
if (x.m == 1) {
if (_parent._ymouse < 0) {
_parent._ymouse = 0;
} else if (_parent._ymouse > 140) {
_parent._ymouse = 140;
} else {
x._y = _parent._ymouse;
}
if (Key.isDown(38) || (Key.isDown(40))) {
} else {
_root.mail_userLine = Math.round((x._y * _root.letter.length) / 140);
}
_root.mail(("" + _root.letter[_root.mail_userLine]) + "", 100, 13);
p = 0;
} else {
if ((!p) == 1) {
p = 1;
}
delete _root.time_input;
}
}
}
onClipEvent (enterFrame) {
playhead(this);
if (_root.mreset == 1) {
delete x._start;
this._y = 83;
delete _root.mreset;
}
}
Symbol 2523 Button
on (press) {
_parent.startDrag();
}
on (release) {
_parent.stopDrag();
}
Symbol 2526 Button
on (press) {
_parent._parent.gotoAndPlay(6);
}
Symbol 2532 Button
on (press) {
_parent.question._x = 20;
_parent.question._y = -50;
}
Symbol 2534 Button
on (dragOut) {
delete _root.userLine;
delete _root.rdstart;
delete _root.rdstart2;
_root.mreset = 1;
_root.mailletter++;
}
Symbol 2535 Button
on (press) {
delete _root.userLine;
delete _root.rdstart;
delete _root.rdstart2;
_root.mreset = 1;
if (_root.mailletter == 1) {
} else if (destroyL[mailletter - 1] == 1) {
_root.mailletter = _root.mailletter - 2;
} else {
_root.mailletter--;
}
}
Symbol 2543 Button
on (press, keyPress "s") {
_parent.question._x = -9999;
_parent.question._y = -9999;
_root.destroyL[_root.mailletter] = 1;
_root.mailOutput = "<br><i>This letter has been destroyed</i>";
}
Symbol 2544 Button
on (press, keyPress "d") {
_parent.question._x = -9999;
_parent.question._y = -9999;
}
Instance of Symbol 2545 MovieClip "question" in Symbol 2546 MovieClip Frame 1
onClipEvent (load) {
this._x = -99999;
this._y = -99999;
}
Symbol 2547 MovieClip Frame 1
stop();
Symbol 2548 MovieClip Frame 1
stop();
Symbol 2548 MovieClip Frame 5
stop();
Symbol 2548 MovieClip Frame 10
stop();
Instance of Symbol 1304 MovieClip in Symbol 2551 MovieClip Frame 1
onClipEvent (load) {
_root.autoAtk = 1;
this.gotoAndStop(2);
}
onClipEvent (enterFrame) {
if ((_root.m_input == 1) && (this.hitTest(_root._xmouse, _root._ymouse, true))) {
_root.mouseReset();
if (input == null) {
if (_root.autoAtk == null) {
_root.autoAtk = 1;
this.gotoAndStop(2);
delete _root.m_input;
} else if (_root.autoAtk == 1) {
this.gotoAndStop(1);
delete _root.autoAtk;
delete _root.m_input;
}
input = 1;
} else {
delete input;
}
}
}
Instance of Symbol 1304 MovieClip in Symbol 2554 MovieClip Frame 1
onClipEvent (load) {
delete _root.player_sprint;
this.gotoAndStop(1);
}
onClipEvent (enterFrame) {
if (_root.player_sprint == null) {
this.gotoAndStop(1);
}
if (_root.player_sprint == 1) {
this.gotoAndStop(2);
}
if ((_root.m_input == 1) && (this.hitTest(_root._xmouse, _root._ymouse, true))) {
_root.mouseReset();
if (input == null) {
if (_root.player_sprint == null) {
_root.player_sprint = 1;
this.gotoAndStop(2);
delete _root.m_input;
} else if (_root.player_sprint == 1) {
this.gotoAndStop(1);
delete _root.player_sprint;
delete _root.m_input;
}
input = 1;
} else {
delete input;
}
}
}
Instance of Symbol 2376 MovieClip in Symbol 2559 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.concpot_use == 1) {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 2379 MovieClip in Symbol 2559 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
}
Instance of Symbol 2382 MovieClip in Symbol 2559 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 2385 MovieClip in Symbol 2559 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 2388 MovieClip in Symbol 2559 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.invis_buff == 1) {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 2392 MovieClip in Symbol 2559 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.furybuff == 1) {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 2418 MovieClip "equipment" in Symbol 2559 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.equip_usage == 1) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 2428 MovieClip "spellList" in Symbol 2559 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.spell_usage == 1) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 2434 MovieClip "mailbox" in Symbol 2559 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.newmail == 1) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 2445 MovieClip "timebar" in Symbol 2559 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.time_use == 1) {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 2474 MovieClip "macro" in Symbol 2559 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.guiRO = ((((((((((((("HP:" + _root.player_health) + "/") + _root.stats_health) + "<br>") + "MP:") + _root.player_mana) + "/") + _root.stats_mana) + "<br>") + "EXP:") + _root.stats_exp_output) + "<br>") + "$:") + _root.gold;
_root.equipoutput1 = ((((((((((((((((((((((((((((((((((((("HP:" + _root.player_health) + "/") + _root.stats_health) + "<br>") + "MP:") + _root.player_mana) + "/") + _root.stats_mana) + "<br>") + "EXP:") + _root.stats_exp_output) + "<br>") + "GOLD:") + _root.gold) + "<br>") + _root.classoutput) + "<br>") + "STR ") + _root.str_readout) + " + ") + _root.mvp_str) + "<br>") + "AGI ") + _root.agi_readout) + " + ") + _root.mvp_agi) + "<br>") + "DEX ") + _root.dex_readout) + " + ") + _root.mvp_dex) + "<br>") + "LVL ") + _root.level) + "<br>") + "FLOOR ") + _root.floor) + "<br>";
this.gotoAndStop(_root.keys);
if (_root.item_usage == 1) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 2512 MovieClip in Symbol 2559 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.class == 1) {
if ((_root.shadowtimer >= 1) || (_root.mighttimer >= 1)) {
_visible = true;
} else {
_visible = false;
}
}
if (_root.class == 2) {
if (((_root.flanktimer >= 1) || (_root.blesstimer >= 1)) || (_root.potencetimer >= 1)) {
_visible = true;
} else {
_visible = false;
}
}
}
Symbol 2566 MovieClip Frame 15
removeMovieClip(this);
Instance of Symbol 2569 MovieClip in Symbol 2583 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this._width > ((_root.player_mana * 39) / _root.stats_mana)) {
this._width = this._width - 0.3;
}
}
Instance of Symbol 2571 MovieClip in Symbol 2583 MovieClip Frame 1
onClipEvent (load) {
this._width = (_root.player_mana * 39) / _root.stats_mana;
}
onClipEvent (enterFrame) {
this._width = (_root.player_mana * 39) / _root.stats_mana;
}
Instance of Symbol 2569 MovieClip in Symbol 2583 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this._width > ((_root.player_health * 39) / _root.stats_health)) {
this._width = this._width - 0.3;
}
}
Instance of Symbol 2569 MovieClip in Symbol 2583 MovieClip Frame 1
onClipEvent (load) {
this._width = (_root.player_health * 39) / _root.stats_health;
}
onClipEvent (enterFrame) {
this._width = (_root.player_health * 39) / _root.stats_health;
}
Instance of Symbol 2581 MovieClip in Symbol 2583 MovieClip Frame 1
onClipEvent (load) {
this._width = (_root.player_sprint_m * 39) / _root.ambPoints;
}
onClipEvent (enterFrame) {
this._width = (_root.player_sprint_m * 39) / _root.ambPoints;
}
Symbol 2600 MovieClip Frame 18
removeMovieClip(this);
Instance of Symbol 1232 MovieClip "itemDropMouse" in Symbol 2603 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.itemNum[1] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.itemArraynum[1]);
}
}
Symbol 2620 MovieClip Frame 25
removeMovieClip(this);
Symbol 2636 MovieClip Frame 12
removeMovieClip(this);
Symbol 2654 MovieClip Frame 18
stop();
Symbol 2678 MovieClip Frame 1
stop();
Instance of Symbol 2636 MovieClip "atk" in Symbol 2678 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this._currentframe == this._totalframes) {
_parent.removeMovieClip();
}
}
Symbol 2678 MovieClip Frame 2
stop();
Instance of Symbol 2654 MovieClip "atk" in Symbol 2678 MovieClip Frame 2
onClipEvent (enterFrame) {
if (this._currentframe == this._totalframes) {
_parent.removeMovieClip();
}
}
Symbol 2678 MovieClip Frame 3
stop();
Instance of Symbol 2677 MovieClip "atk" in Symbol 2678 MovieClip Frame 3
onClipEvent (enterFrame) {
if (this._currentframe == this._totalframes) {
_parent.removeMovieClip();
}
}
Symbol 2693 MovieClip Frame 16
removeMovieClip(this);
Instance of Symbol 1592 MovieClip "enemyb" in Symbol 2706 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(5 + _root.monAnimArray[enemyCount + 1]);
}
Instance of Symbol 1592 MovieClip "enemya" in Symbol 2706 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(5 + _root.monAnimArray[enemyCount + 1]);
}
Instance of Symbol 1592 MovieClip "enemyb" in Symbol 2706 MovieClip Frame 10
onClipEvent (enterFrame) {
this.gotoAndStop(5 + _root.monAnimArray[1]);
}
Instance of Symbol 1592 MovieClip "enemya" in Symbol 2706 MovieClip Frame 10
onClipEvent (enterFrame) {
this.gotoAndStop(5 + _root.monAnimArray[1]);
}
Symbol 2706 MovieClip Frame 25
removeMovieClip(_parent);
Symbol 2711 MovieClip Frame 1
stop();
Symbol 2711 MovieClip Frame 2
if (_root.ambushCamera == 1) {
_root.centermap = 1;
}
Symbol 2711 MovieClip Frame 20
if (_root.ambushCamera == 1) {
delete _root.centermap;
}
Symbol 2711 MovieClip Frame 25
removeMovieClip(this);
Symbol 2713 MovieClip Frame 1
stop();
Symbol 2713 MovieClip Frame 2
stop();
Symbol 2713 MovieClip Frame 3
stop();
Symbol 2713 MovieClip Frame 4
stop();
Symbol 2713 MovieClip Frame 5
stop();
Symbol 2713 MovieClip Frame 6
stop();
Instance of Symbol 124 MovieClip in Symbol 2713 MovieClip Frame 6
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 2713 MovieClip Frame 7
stop();
Instance of Symbol 124 MovieClip in Symbol 2713 MovieClip Frame 7
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 2713 MovieClip Frame 8
stop();
Instance of Symbol 124 MovieClip in Symbol 2713 MovieClip Frame 8
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 2713 MovieClip Frame 9
stop();
Instance of Symbol 124 MovieClip in Symbol 2713 MovieClip Frame 9
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 2713 MovieClip Frame 10
stop();
Symbol 2713 MovieClip Frame 11
stop();
Symbol 2713 MovieClip Frame 12
stop();
Symbol 2713 MovieClip Frame 13
stop();
Symbol 2713 MovieClip Frame 14
stop();
Symbol 2713 MovieClip Frame 15
stop();
Symbol 2713 MovieClip Frame 16
stop();
Symbol 2713 MovieClip Frame 17
stop();
Symbol 2713 MovieClip Frame 18
stop();
Symbol 2713 MovieClip Frame 19
stop();
Symbol 2713 MovieClip Frame 20
stop();
Symbol 2713 MovieClip Frame 21
stop();
Symbol 2713 MovieClip Frame 22
stop();
Symbol 2713 MovieClip Frame 23
stop();
Symbol 2713 MovieClip Frame 24
stop();
Symbol 2713 MovieClip Frame 25
stop();
Symbol 2713 MovieClip Frame 26
stop();
Instance of Symbol 124 MovieClip in Symbol 2713 MovieClip Frame 26
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Instance of Symbol 124 MovieClip in Symbol 2713 MovieClip Frame 26
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 2713 MovieClip Frame 27
stop();
Instance of Symbol 124 MovieClip in Symbol 2713 MovieClip Frame 27
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 2713 MovieClip Frame 28
stop();
Instance of Symbol 124 MovieClip in Symbol 2713 MovieClip Frame 28
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 2713 MovieClip Frame 29
stop();
Instance of Symbol 124 MovieClip in Symbol 2713 MovieClip Frame 29
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 2713 MovieClip Frame 30
stop();
Instance of Symbol 124 MovieClip in Symbol 2713 MovieClip Frame 30
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 2713 MovieClip Frame 31
stop();
Symbol 2713 MovieClip Frame 32
stop();
Symbol 2713 MovieClip Frame 33
stop();
Symbol 2713 MovieClip Frame 34
stop();
Symbol 2713 MovieClip Frame 35
stop();
Symbol 2713 MovieClip Frame 36
stop();
Symbol 2713 MovieClip Frame 37
stop();
Symbol 2713 MovieClip Frame 38
stop();
Symbol 2713 MovieClip Frame 39
stop();
Symbol 2713 MovieClip Frame 40
stop();
Symbol 2713 MovieClip Frame 41
stop();
Symbol 2713 MovieClip Frame 42
stop();
Symbol 2713 MovieClip Frame 43
stop();
Symbol 2713 MovieClip Frame 44
stop();
Symbol 2713 MovieClip Frame 45
stop();
Symbol 2713 MovieClip Frame 46
stop();
Instance of Symbol 124 MovieClip in Symbol 2713 MovieClip Frame 46
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 2713 MovieClip Frame 47
stop();
Instance of Symbol 124 MovieClip in Symbol 2713 MovieClip Frame 47
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 2713 MovieClip Frame 48
stop();
Instance of Symbol 124 MovieClip in Symbol 2713 MovieClip Frame 48
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 2713 MovieClip Frame 49
stop();
Instance of Symbol 124 MovieClip in Symbol 2713 MovieClip Frame 49
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 2713 MovieClip Frame 50
stop();
Symbol 2713 MovieClip Frame 51
stop();
Symbol 2713 MovieClip Frame 52
stop();
Symbol 2713 MovieClip Frame 53
stop();
Symbol 2713 MovieClip Frame 54
stop();
Symbol 2713 MovieClip Frame 55
stop();
Symbol 2713 MovieClip Frame 56
stop();
Symbol 2713 MovieClip Frame 57
stop();
Symbol 2713 MovieClip Frame 58
stop();
Symbol 2713 MovieClip Frame 59
stop();
Symbol 2713 MovieClip Frame 60
stop();
Symbol 2713 MovieClip Frame 61
stop();
Symbol 2713 MovieClip Frame 62
stop();
Symbol 2713 MovieClip Frame 63
stop();
Symbol 2713 MovieClip Frame 64
stop();
Symbol 2713 MovieClip Frame 65
stop();
Symbol 2713 MovieClip Frame 66
stop();
Instance of Symbol 124 MovieClip in Symbol 2713 MovieClip Frame 66
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 2713 MovieClip Frame 67
stop();
Instance of Symbol 124 MovieClip in Symbol 2713 MovieClip Frame 67
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 2713 MovieClip Frame 68
stop();
Instance of Symbol 124 MovieClip in Symbol 2713 MovieClip Frame 68
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 2713 MovieClip Frame 69
stop();
Instance of Symbol 124 MovieClip in Symbol 2713 MovieClip Frame 69
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 2713 MovieClip Frame 70
stop();
Symbol 2713 MovieClip Frame 71
stop();
Symbol 2713 MovieClip Frame 72
stop();
Symbol 2713 MovieClip Frame 73
stop();
Symbol 2713 MovieClip Frame 74
stop();
Symbol 2713 MovieClip Frame 75
stop();
Symbol 2713 MovieClip Frame 76
stop();
Symbol 2713 MovieClip Frame 77
stop();
Symbol 2713 MovieClip Frame 78
stop();
Symbol 2713 MovieClip Frame 79
stop();
Symbol 2713 MovieClip Frame 80
stop();
Symbol 2713 MovieClip Frame 81
stop();
Symbol 2713 MovieClip Frame 82
stop();
Symbol 2713 MovieClip Frame 83
stop();
Symbol 2713 MovieClip Frame 84
stop();
Symbol 2713 MovieClip Frame 85
stop();
Symbol 2713 MovieClip Frame 86
stop();
Instance of Symbol 617 MovieClip in Symbol 2713 MovieClip Frame 86
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 2713 MovieClip Frame 87
stop();
Instance of Symbol 617 MovieClip in Symbol 2713 MovieClip Frame 87
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 2713 MovieClip Frame 88
stop();
Instance of Symbol 617 MovieClip in Symbol 2713 MovieClip Frame 88
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 2713 MovieClip Frame 89
stop();
Instance of Symbol 617 MovieClip in Symbol 2713 MovieClip Frame 89
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 2713 MovieClip Frame 90
stop();
Symbol 2713 MovieClip Frame 91
stop();
Symbol 2713 MovieClip Frame 92
stop();
Symbol 2713 MovieClip Frame 93
stop();
Symbol 2713 MovieClip Frame 94
stop();
Symbol 2713 MovieClip Frame 95
stop();
Symbol 2713 MovieClip Frame 96
stop();
Symbol 2713 MovieClip Frame 97
stop();
Symbol 2713 MovieClip Frame 98
stop();
Symbol 2713 MovieClip Frame 99
stop();
Symbol 2713 MovieClip Frame 100
stop();
Symbol 2713 MovieClip Frame 101
stop();
Symbol 2713 MovieClip Frame 102
stop();
Symbol 2713 MovieClip Frame 103
stop();
Symbol 2713 MovieClip Frame 104
stop();
Symbol 2713 MovieClip Frame 105
stop();
Symbol 2713 MovieClip Frame 106
stop();
Instance of Symbol 739 MovieClip in Symbol 2713 MovieClip Frame 106
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 2713 MovieClip Frame 107
stop();
Instance of Symbol 739 MovieClip in Symbol 2713 MovieClip Frame 107
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 2713 MovieClip Frame 108
stop();
Instance of Symbol 739 MovieClip in Symbol 2713 MovieClip Frame 108
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 2713 MovieClip Frame 109
stop();
Instance of Symbol 739 MovieClip in Symbol 2713 MovieClip Frame 109
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 2713 MovieClip Frame 110
stop();
Symbol 2713 MovieClip Frame 111
stop();
Symbol 2713 MovieClip Frame 112
stop();
Symbol 2713 MovieClip Frame 113
stop();
Symbol 2713 MovieClip Frame 114
stop();
Symbol 2713 MovieClip Frame 115
stop();
Symbol 2713 MovieClip Frame 116
stop();
Symbol 2713 MovieClip Frame 117
stop();
Symbol 2713 MovieClip Frame 118
stop();
Symbol 2713 MovieClip Frame 119
stop();
Symbol 2713 MovieClip Frame 120
stop();
Symbol 2715 MovieClip Frame 1
stop();
Symbol 2715 MovieClip Frame 2
play();
Symbol 2715 MovieClip Frame 6
stop();
Symbol 2736 MovieClip Frame 23
removeMovieClip(this);
Symbol 2755 MovieClip Frame 38
stop();
Symbol 2772 MovieClip Frame 17
removeMovieClip(this);
Symbol 2797 MovieClip Frame 25
removeMovieClip(this);
Symbol 2812 MovieClip Frame 16
removeMovieClip(this);
Instance of Symbol 2827 MovieClip in Symbol 2828 MovieClip Frame 1
onClipEvent (enterFrame) {
this._alpha = Math.abs(Math.ceil(((_parent._parent._currentframe * 100) / _parent._parent._totalframes) - 100)) - 20;
}
Symbol 2836 Button
on (release) {
restart++;
}
Symbol 2837 Button
on (release) {
restart--;
}
Symbol 2839 Button
on (press) {
x = 1;
}
on (release, releaseOutside) {
delete x;
}
Symbol 2842 MovieClip Frame 1
stop();
stopAllSounds();
Instance of Symbol 2814 MovieClip in Symbol 2842 MovieClip Frame 1
onClipEvent (enterFrame) {
this._width = (_parent._currentframe * 240) / 434;
}
Symbol 2842 MovieClip Frame 2
play();
Instance of Symbol 2828 MovieClip in Symbol 2842 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.BGM == 2) {
stopAllSounds();
}
this._x = (_parent._currentframe * 240) / 434;
this.percent = Math.abs(Math.ceil((_parent._currentframe * 100) / 434) - 100);
this.percentx = this.percent.toString().slice(1, 2);
per2 = Math.abs(((_parent._currentframe * 1) / 434) - 1);
this.percent2 = "." + per2.toString().slice(4, 7);
this.percent3 = this.percent.toString().slice(0, 1);
}
Symbol 2842 MovieClip Frame 3
var go_sound = 0;
while (go_sound < 2) {
_root.soundbgm1.gotoAndStop(21);
go_sound++;
}
Instance of Symbol 2814 MovieClip in Symbol 2842 MovieClip Frame 435
onClipEvent (enterFrame) {
this._width = (_parent._currentframe * 240) / _parent._totalframes;
}
Instance of Symbol 2828 MovieClip in Symbol 2842 MovieClip Frame 435
onClipEvent (load) {
}
onClipEvent (enterFrame) {
_root.endDemo = 1;
if (_root.BGM == 2) {
stopAllSounds();
}
this._x = (_parent._currentframe * 240) / 517;
this.percent = Math.abs(Math.ceil((_parent._currentframe * 100) / 517) - 100);
this.percentx = this.percent.toString().slice(1, 2);
per2 = Math.abs(((_parent._currentframe * 1) / 517) - 1);
this.percent2 = "." + per2.toString().slice(4, 7);
this.percent3 = this.percent.toString().slice(0, 1);
}
Symbol 2842 MovieClip Frame 436
removeMovieClip(_root.debug_mc11);
delete _root.gamestrt;
delete _root.invis_buff;
delete _root.mightbuff;
delete _root.blessbuff;
delete _root.potencebuff;
delete _root.shadowbuff;
_root.furytimer = -999;
_root.invistimer = -999;
_root.mighttimer = -999;
_root.blesstimer = -999;
_root.potencetimer = -999;
_root.shadowtimer = -999;
_root.flanktimer = -999;
_root.bstabtimer = -999;
_root.concpotTimer = -999;
delete _root.meleenum;
while (_root.remdrawx < 77) {
removeMovieClip(_root["minimap__" + _root.remdrawx]);
_root.remdrawx++;
}
removeMovieClip(_root.debug_mc11);
_global.program = 1;
delete _root.scene_load;
removeMovieClip(this);
Symbol 2842 MovieClip Frame 437
stopAllSounds();
_root.soundbgm1.gotoAndStop(3);
Symbol 2842 MovieClip Frame 447
stop();
Instance of Symbol 2841 MovieClip in Symbol 2842 MovieClip Frame 447
onClipEvent (enterFrame) {
h = this._height;
if (restart == null) {
restart = 3;
}
if (Key.isDown(38)) {
if ((!kup_input) == 1) {
if (restart <= 1) {
restart = 4;
} else {
restart--;
}
kup_input = 1;
}
} else {
delete kup_input;
}
if (Key.isDown(40)) {
if ((!kdown_input) == 1) {
if (restart >= 4) {
restart = 1;
} else {
restart++;
}
kdown_input = 1;
}
} else {
delete kdown_input;
}
if (restart == 1) {
this.up._visible = false;
} else {
this.up._visible = true;
}
if (restart == 1) {
restart_text = "REWIND YOUR DEATH";
button_ = "A";
if ((Key.isDown(65) || (Key.isDown(13))) || (x == 1)) {
_root.time_use = 1;
}
this._y = y + (h * -2);
}
if (restart == 2) {
restart_text = "RESTART WITH REMAINING GOLD";
button_ = "S";
if ((Key.isDown(83) || (Key.isDown(13))) || (x == 1)) {
_root.optiongold = 1;
_root.retry = 1;
_parent.play();
}
this._y = y + (h * -1);
}
if (restart == 3) {
restart_text = "RESTART WITH YOUR LEVEL";
button_ = "D";
if ((Key.isDown(68) || (Key.isDown(13))) || (x == 1)) {
_root.optionlevel = 1;
_root.retry = 1;
_parent.play();
}
if (y == null) {
y = this._y;
}
this._y = y;
}
if (restart == 4) {
restart_text = "START OVER (NO BONUS)";
button_ = "F";
if ((Key.isDown(70) || (Key.isDown(13))) || (x == 1)) {
_root.retry = 1;
_parent.play();
}
this._y = y + (h * 1);
}
if (restart == 4) {
this.down._visible = false;
} else {
this.down._visible = true;
}
}
Symbol 2842 MovieClip Frame 464
removeMovieClip(_root.debug_mc11);
_root.furytimer = -999;
_root.invistimer = -999;
_root.mighttimer = -999;
_root.blesstimer = -999;
_root.potencetimer = -999;
_root.shadowtimer = -999;
_root.flanktimer = -999;
_root.bstabtimer = -999;
_root.concpotTimer = -999;
delete _root.meleenum;
delete _root.gamestrt;
delete _root.invis_buff;
delete _root.mightbuff;
delete _root.blessbuff;
delete _root.potencebuff;
delete _root.shadowbuff;
while (_root.remdrawx < 77) {
removeMovieClip(_root["minimap__" + _root.remdrawx]);
_root.remdrawx++;
}
Symbol 2842 MovieClip Frame 465
delete _root.scene_load;
delete _root.recbgm;
delete _root.centermap;
_global.program = 4;
_root.r_desu = 1;
Symbol 2842 MovieClip Frame 466
removeMovieClip(this);