Frame 1
_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 == 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] == 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)) {
armorNum = itemArraynum[value];
armor_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]);
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);
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);
a_key = 1;
}
} else {
delete a_key;
delete useitem;
}
if (Key.isDown(KEY2)) {
if (b_key == null) {
keys = 2;
useEngine(keys);
b_key = 1;
}
} else {
delete b_key;
delete useitem;
}
if (Key.isDown(KEY3)) {
if (c_key == null) {
keys = 3;
useEngine(keys);
c_key = 1;
}
} else {
delete c_key;
delete useitem;
}
if (Key.isDown(KEY4)) {
if (x_key == null) {
keys = 4;
useEngine(keys);
x_key = 1;
}
} else {
delete x_key;
delete useitem;
}
if (Key.isDown(KEY5)) {
if (e_key == null) {
keys = 5;
useEngine(keys);
e_key = 1;
}
} else {
delete e_key;
delete useitem;
}
if (Key.isDown(KEY6)) {
if ((d_key == null) && (a_select == null)) {
dropEngine(keys);
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);
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 == 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;
}
classoutput = "Mage";
base_dex = 10;
base_str = 1;
base_agi = 25;
}
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 + 66;
}
if (class == 2) {
stats_mana = stats_mana + 214;
stats_health = stats_health + 135;
}
if (class == 3) {
stats_mana = stats_mana + 58;
stats_health = stats_health + 47;
}
if (class == 4) {
stats_mana = stats_mana + 58;
stats_health = stats_health + 47;
}
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 == 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;
}
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 Scroll Target Lvl: 1";
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";
itemFillOrder = newArray();
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;
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;
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 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;
var Invenscan = 1;
while (Invenscan < 11) {
Invenscan++;
}
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["button" + Invenscan])) {
itemArraynum_s = itemArraynum[Invenscan];
itemNum_s = ItemNum[Invenscan];
itemArraynum[Invenscan] = itemArraynum[keys];
itemNum[Invenscan] = ItemNum[keys];
itemArraynum[keys] = itemArraynum_s;
itemNum[keys] = itemNum_s;
}
Invenscan++;
}
} else {
dropEngine(keys);
}
}
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.onEnterFrame = function () {
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();
SFX = 1;
loadSound();
reSize();
floorLoadingScreen();
}
};
BGM = 1;
SFX = 1;
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 62 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 1262 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 1194 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 1816 MovieClip in Frame 1
onClipEvent (load) {
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);
}
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;
}
}
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 >= 6) {
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 enemClear() {
var clearMon = 1;
while (clearMon < (enemyCount + 1)) {
delete deSpawn_x;
delete deSpawn_y;
removeMovieClip(_root["mon" + clearMon]);
removeMovieClip(_root["bar" + clearMon]);
clearMon++;
}
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) {
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();
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;
}
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)) {
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) {
hitRate = (enemy_hitRate + Math.ceil(Math.random() * 100)) - ((stats._agi + 10) * 5);
} 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 < 9) {
_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 < 9) {
_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 < 9) {
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 = 9;
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 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;
}
}
monanimfiller++;
}
if (map_dir_x[mapNumber] == null) {
} else {
enemyCount = 8;
var focusSpawn = 1;
while (focusSpawn < 9) {
dirx = map_dir_x[mapNumber];
diry = map_dir_y[mapNumber];
_root.enemy.duplicateMovieClip("mon" + focusSpawn, layer7 + focusSpawn);
_root["mon" + focusSpawn]._y = ((_root.char1._y + (24 * (4 + focusSpawn))) + 24) + diry;
_root["mon" + focusSpawn]._x = (_root.char1._x - 12) + dirx;
_root["mon" + focusSpawn].gotoAndStop(monAnimArray[enemyDraw] + 1);
focusSpawn++;
}
}
if (enemyCount >= 8) {
eightCount++;
formation++;
if (formation == 1) {
if ((Math.abs(_root.mon1._x - _root.char1._x) >= 148) || (Math.abs(_root.mon1._y - _root.char1._y) >= 148)) {
_root.enemy.duplicateMovieClip("mon1", layer7 + 1);
_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 ((Math.abs(_root.mon2._x - _root.char1._x) >= 148) || (Math.abs(_root.mon2._y - _root.char1._y) >= 148)) {
_root.enemy.duplicateMovieClip("mon2", layer7 + 2);
_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 ((Math.abs(_root.mon3._x - _root.char1._x) >= 148) || (Math.abs(_root.mon3._y - _root.char1._y) >= 148)) {
_root.enemy.duplicateMovieClip("mon3", layer7 + 3);
_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 ((Math.abs(_root.mon4._x - _root.char1._x) >= 148) || (Math.abs(_root.mon4._y - _root.char1._y) >= 148)) {
_root.enemy.duplicateMovieClip("mon4", layer7 + 4);
_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 ((Math.abs(_root.mon5._x - _root.char1._x) >= 148) || (Math.abs(_root.mon5._y - _root.char1._y) >= 148)) {
_root.enemy.duplicateMovieClip("mon5", layer7 + 5);
_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 ((Math.abs(_root.mon6._x - _root.char1._x) >= 148) || (Math.abs(_root.mon6._y - _root.char1._y) >= 148)) {
_root.enemy.duplicateMovieClip("mon6", layer7 + 6);
_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 ((Math.abs(_root.mon7._x - _root.char1._x) >= 148) || (Math.abs(_root.mon7._y - _root.char1._y) >= 148)) {
_root.enemy.duplicateMovieClip("mon7", layer7 + 7);
_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 ((Math.abs(_root.mon8._x - _root.char1._x) >= 148) || (Math.abs(_root.mon8._y - _root.char1._y) >= 148)) {
_root.enemy.duplicateMovieClip("mon8", layer7 + 8);
_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 ((Math.abs(_root.mon9._x - _root.char1._x) >= 148) || (Math.abs(_root.mon9._y - _root.char1._y) >= 148)) {
_root.enemy.duplicateMovieClip("mon8", layer7 + 20);
_root.mon9._y = ((_root.char1._y + 168) + 24) + diry;
_root.mon9._x = (_root.char1._x + 24) + dirx;
_root.mon9.gotoAndStop(monAnimArray[enemyDraw] + 1);
}
}
} else {
formation++;
if (formation == 1) {
if (_root.mon1._x == null) {
if (deSpawn_x[1] == null) {
_root.enemy.duplicateMovieClip("mon1", layer7 + 1);
_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) {
if (deSpawn_x[2] == null) {
_root.enemy.duplicateMovieClip("mon2", layer7 + 2);
_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) {
if (deSpawn_x[3] == null) {
_root.enemy.duplicateMovieClip("mon3", layer7 + 3);
_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) {
if (deSpawn_x[4] == null) {
_root.enemy.duplicateMovieClip("mon4", layer7 + 4);
_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) {
if (deSpawn_x[5] == null) {
_root.enemy.duplicateMovieClip("mon5", layer7 + 5);
_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) {
if (deSpawn_x[6] == null) {
_root.enemy.duplicateMovieClip("mon6", layer7 + 6);
_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) {
if (deSpawn_x[7] == null) {
_root.enemy.duplicateMovieClip("mon7", layer7 + 7);
_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) {
if (deSpawn_x[8] == null) {
_root.enemy.duplicateMovieClip("mon8", layer7 + 8);
_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) {
if (deSpawn_x[9] == null) {
_root.enemy.duplicateMovieClip("mon8", layer7 + 20);
_root.mon9._y = ((_root.char1._y + 168) + 24) + diry;
_root.mon9._x = (_root.char1._x + 24) + dirx;
_root.mon9.gotoAndStop(monAnimArray[enemyDraw] + 1);
}
}
}
}
if (map_dir_x[mapNumber] == null) {
}
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;
}
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;
}
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) && (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 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 == null) {
}
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;
}
classoutput = "Mage";
base_dex = 10;
base_str = 1;
base_agi = 25;
}
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) && (_root.debugGame == 1)) {
if (shift_input == null) {
stats_exp = stats_exp + 1000000;
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 = 0;
tnl = Math.ceil(625 * level);
}
if ((stats_exp >= tnl) && (level < 99)) {
if (lvlup >= 10) {
lvlup = 1;
}
lvlup++;
stopAllSounds();
level_up_bgm();
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 + 66;
}
if (class == 2) {
stats_mana = stats_mana + 214;
stats_health = stats_health + 135;
}
if (class == 3) {
stats_mana = stats_mana + 58;
stats_health = stats_health + 47;
}
if (class == 4) {
stats_mana = stats_mana + 58;
stats_health = stats_health + 47;
}
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 == 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;
}
if (class == 4) {
stats_mana = stats_mana + 58;
stats_health = stats_health + 47;
player_health = stats_health;
player_mana = stats_mana;
}
}
}
}
function create() {
_root.item_.duplicateMovieClip("item" + nmecreate, layer15 + nmecreate);
_root["item" + nmecreate].gotoAndStop(ItemArraynum[keys]);
_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)) {
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)) {
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 dropEngine(value) {
if (prevItem == 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] + 1)) {
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 {
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)) {
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 (arraynum < 6) {
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 {
arraynum = 6;
}
}
function zerkanim() {
mouseD = 0;
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 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 < 8) {
if ((order >= 8) && (zap_t_use == null)) {
order = 0;
}
if (((order == 0) && (zap_t_use == 1)) || ((order == 9) && (zap_t_use == 1))) {
if ((left_input == null) && (right_input == null)) {
order = 1;
}
if (left_input == 1) {
order = 8;
}
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);
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 ((((zapdist5x >= zapdist) && (order == 5)) || ((zapdist5._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 ((((zapdist6x >= zapdist) && (order == 6)) || ((zapdist6._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 ((((zapdist7x >= zapdist) && (order == 7)) || ((zapdist7._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 ((((zapdist8x >= zapdist) && (order == 8)) || ((zapdist8._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--;
}
}
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);
if (Key.isDown(37) || (Key.isDown(38))) {
if (left_input == null) {
if (order <= 0) {
order = 8;
} else {
order--;
}
left_input = 1;
}
} else {
delete left_input;
}
}
if (Key.isDown(39) || (Key.isDown(40))) {
if (right_input == null) {
if (order >= 4) {
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 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) {
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;
}
if (zap_t_use == 1) {
if (lastKey == null) {
lastKey = keys;
}
if (Key.isDown(Key.getCode()) || (m_command == 1)) {
if (lk_input == null) {
if (lastKey == keys) {
if (ItemNum[keys] >= 1) {
zstrt = 1;
zapTot = zapTot + (4 + zstrt);
chat((("You charge " + itemMsg[ItemArraynum[keys]]) + " to Lvl:") + zapTot, 30, 5);
lastKey_i++;
}
}
lk_input = 1;
}
} else {
delete lk_input;
}
delete zapm;
delete zapnumber;
delete zap_m;
delete spell_input;
spells_target();
if (order >= 9) {
_root.targ1._y = -99999;
delete zap_t_use;
ItemNum[keys] = ItemNum[keys] + 1;
chat("<b>Nothing to Attack</b>", 30, 5);
}
if (Key.isDown(13) || (_root.targ1.hitTest(_xmouse, _ymouse, true) && (m_input == 1))) {
delete lastKey;
if (zapTot == null) {
zapTot = 1;
}
delete mousex;
delete mousey;
delete m_input;
delete m_command;
chat("You cast " + itemMsg[42], 30, 5);
spell_input = 1;
zap_m = 1;
damage = zap * zapTot;
_root.soundspell1.gotoAndStop(7);
}
}
if (class == 1) {
zcost = 60;
} else if (class == 2) {
zcost = 120;
}
if ((zerk_m == 1) && (player_mana > zcost)) {
zerkanim();
sloClock = 1;
if (spell_input == 1) {
delete zerk_t_use;
if (order == 0) {
} else {
if (zerkm >= 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 - 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)) {
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 (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)) {
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 (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;
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;
}
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;
}
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);
}
itembox1 = itemNum[1];
itembox2 = itemNum[2];
itembox3 = itemNum[3];
itembox4 = itemNum[4];
itembox5 = itemNum[5];
}
}
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 (obj._y > enemy._y) {
obj.swapDepths(layer7 + 900);
}
if (obj._y < enemy._y) {
obj.swapDepths(layer2 + 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 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 (sloClock == 1) {
_root.lightbg.gotoAndStop(6);
game_speed = 2;
desuClockTimer++;
if (desuClockTimer >= 500) {
delete sloClock;
delete desuClockTimer;
game_speed = 1;
}
}
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++;
}
}
}
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 (game_debug == 1) {
if ((Key.isDown(49) && (_global.program <= 4)) || (_global.guiButton == 1)) {
guiSwitch = 1;
}
if ((!Key.isDown(49)) && (_global.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.cs_char_sel1.cs.cs_char_sel.statsColor);
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);
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 (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 (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 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 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) {
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) {
doubleKeyboard++;
sk_input = 1;
}
} else {
delete sk_input;
}
var k_scan = 0;
while (k_scan < 9) {
if (_root["mon" + k_scan].hitTest(_root.char1.hb)) {
if (doubleKeyboard >= 2) {
zerk_t_use = 1;
delete doubleKeyboard;
}
order = k_scan;
}
k_scan++;
}
}
function mouseControl(player, spd, atk) {
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;
} 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;
}
m_scan = m_command;
while (m_scan < (enemyCount + 1)) {
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 >= 2) && (doubleClickAtkTimer > 1)) {
mouseReset();
delete doubleClickAtkTimer;
delete doubleClickAtk;
if (player._currentFrame >= 10) {
player.gotoAndStop(player._currentframe - 5);
player.gotoAndStop(player._currentframe + 5);
} else {
player.gotoAndStop(player._currentframe + 5);
}
if (_root["mon" + m_scan].hitTest(player)) {
zerk_t_use = 1;
}
order = m_scan;
}
if (doubleClickInput == null) {
doubleClickInput = 1;
doubleClickAtkTimer = 50;
doubleClickAtk++;
}
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) {
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) {
delete value1x;
delete value2x;
delete value1y;
delete value2y;
if (player._currentframe <= (5 + armor_anim)) {
player.gotoAndStop(player._currentframe + 5);
}
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 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() {
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;
}
_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 + 5);
delete m_command;
maphtd = 1;
}
if (map.hb.hitTest(player._x + spd, player._y, true)) {
player._x = player._x - (spd + 5);
delete m_command;
maphtd = 1;
}
if (map.hb.hitTest(player._x, player._y - spd, true)) {
player._y = player._y + (spd + 5);
delete m_command;
maphtd = 1;
}
if (map.hb.hitTest(player._x, player._y + spd, true)) {
player._y = player._y - (spd + 5);
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 = new Array();
map_dir_y = new Array();
map_dir_x[76] = 0;
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() {
if (enemyNumber == null) {
enemyNumber = new Array();
enemyNumber = [0, 4, 2, 1, 6];
}
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]];
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]];
mapHistory[floor][mapNumber] = 1;
}
enemMapClear();
enemyCountReset();
var blockedSpawn = spawnBlock();
if ((mapHistory[floor][mapNumber] == null) && (blockedSpawn == false)) {
build++;
delete monDrawStart;
if (enemyCount >= 9) {
if (mvp_in == 1) {
} else {
removeMovieClip(_root.mon9);
}
var overMon = 9;
while (overMon < (enemyCount + 1)) {
removeMovieClip(_root["mon" + overMon]);
overMon++;
}
enemyCount = 9;
enemySpawn();
} else if (enemyCount < 9) {
nx = Math.ceil(Math.random() * 4);
trace(enemyNumber[nx]);
enemyCount = enemyCount + enemyNumber[nx];
enemySpawn();
}
scanHis = 1;
mapHistory[floor][mapNumber] = 1;
}
}
function map(obj1, obj2, obj3, obj4, obj5, obj6, obj7, obj8, obj9, char, spd) {
function regularMapScroll() {
if (char._x < (240 - spd)) {
if (map_gridx >= 1) {
map_gridx = map_gridx - ((spd * 0.5) / 2);
if (map_dir_x[mapNumber] == null) {
diry = -120;
dirx = -192;
} else {
diry = map_dir_y[mapNumber];
dirx = map_dir_x[mapNumber];
}
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;
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] == null) {
diry = -120;
dirx = 192;
} else {
diry = map_dir_y[mapNumber];
dirx = map_dir_x[mapNumber];
}
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;
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] == null) {
diry = -288;
dirx = 0;
} else {
diry = map_dir_y[mapNumber];
dirx = map_dir_x[mapNumber];
}
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;
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] == null) {
diry = 0;
dirx = 0;
} else {
diry = map_dir_y[mapNumber];
dirx = map_dir_x[mapNumber];
}
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;
particle++;
}
var enemyMove = 1;
while (enemyMove < (enemyCount + 1)) {
_root["mon" + enemyMove]._y = _root["mon" + enemyMove]._y - spd;
enemyMove++;
}
}
}
}
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 {
regularMapScroll();
}
if (obj1.hitTest(char._x + dirx2, char._y + diry2, true)) {
mapNumber = obj1._currentframe;
mapHistoryFunc();
} else if (obj2.hitTest(char._x + dirx2, char._y + diry2, true)) {
mapNumber = obj2._currentframe;
mapHistoryFunc();
} else if (obj3.hitTest(char._x + dirx2, char._y + diry2, true)) {
mapNumber = obj3._currentframe;
mapHistoryFunc();
} else if (obj4.hitTest(char._x + dirx2, char._y + diry2, true)) {
mapNumber = obj4._currentframe;
mapHistoryFunc();
} else if (obj5.hitTest(char._x + dirx2, char._y + diry2, true)) {
mapNumber = obj5._currentframe;
mapHistoryFunc();
} else if (obj6.hitTest(char._x + dirx2, char._y + diry2, true)) {
mapNumber = obj6._currentframe;
mapHistoryFunc();
} else if (obj7.hitTest(char._x + dirx2, char._y + diry2, true)) {
mapNumber = obj7._currentframe;
mapHistoryFunc();
} else if (obj8.hitTest(char._x + dirx2, char._y + diry2, true)) {
mapNumber = obj8._currentframe;
mapHistoryFunc();
} else if (obj9.hitTest(char._x + dirx2, char._y + diry2, true)) {
mapNumber = obj9._currentframe;
mapHistoryFunc();
}
}
}
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();
zoomInOut(_root);
keyboardSpecial();
regenHealth();
game_hud(_root.char1, _root.hp_bar1);
rogueEffect();
debug_MonsterSpawn();
HudSelector();
equipFunc();
_root.debug1._x = _root._x;
_root.debug1._y = _root._y;
_root.SFX = 1;
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();
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);
if (m_input == 1) {
mouseD = 20;
if ((heal_t_use == null) && (zap_t_use == 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) {
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);
BGM = 1;
SFX = 1;
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);
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 1824 MovieClip "floor_fader" in Frame 2
onClipEvent (enterFrame) {
_root.floor_fader1._x = 120;
_root.floor_fader1._y = 0;
this._y = 0;
}
Instance of Symbol 1846 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 2069 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 2071 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 2080 MovieClip "player_hitpoints" in Frame 2
onClipEvent (load) {
if (_root.high == 1) {
this._visible = false;
}
}
Instance of Symbol 2084 MovieClip "nme_hitpoints" in Frame 2
onClipEvent (load) {
if (_root.high == 1) {
this._visible = false;
}
}
Instance of Symbol 2087 MovieClip "ambushnme_hitpoints" in Frame 2
onClipEvent (load) {
if (_root.high == 1) {
this._visible = false;
}
}
Instance of Symbol 1194 MovieClip "itemDropMouse" in Frame 2
onClipEvent (enterFrame) {
if (_root.itemNum[1] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.itemArraynum[1]);
}
}
Instance of Symbol 2440 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 38 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 29 MovieClip Frame 1
stop();
Symbol 29 MovieClip Frame 2
stop();
Symbol 29 MovieClip Frame 3
stop();
Symbol 29 MovieClip Frame 4
stop();
Symbol 48 MovieClip Frame 1
_root.soundspell1.gotoAndStop(3);
Symbol 48 MovieClip Frame 9
stop();
Symbol 49 MovieClip Frame 1
stop();
stop();
stop();
Symbol 49 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 7 MovieClip in Symbol 49 MovieClip Frame 2
onClipEvent (enterFrame) {
_root.char1._x = 236;
_root.char1._y = 120;
}
Instance of Symbol 10 MovieClip in Symbol 49 MovieClip Frame 2
onClipEvent (enterFrame) {
delete _root.m_command;
}
Instance of Symbol 29 MovieClip in Symbol 49 MovieClip Frame 56
onClipEvent (load) {
this.gotoAndStop(_root.class);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.class);
}
Instance of Symbol 38 MovieClip "npc_speak" in Symbol 49 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";
}
}
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 49 MovieClip Frame 155
if (_root.endDemo == 1) {
} else {
_root.monLoadingScreen();
play();
}
Symbol 49 MovieClip Frame 170
delete floorClear_bgm;
stop();
this.removeMovieClip();
_parent.removeMovieClip();
Symbol 57 MovieClip Frame 1
stop();
Symbol 57 MovieClip Frame 2
stop();
Instance of Symbol 57 MovieClip in Symbol 58 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 57 MovieClip in Symbol 58 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 57 MovieClip in Symbol 58 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 57 MovieClip in Symbol 58 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 57 MovieClip in Symbol 58 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 62 MovieClip Frame 1
stop();
Symbol 62 MovieClip Frame 56
stop();
Symbol 73 MovieClip Frame 2
if (_parent.confirm == 1) {
stop();
}
Symbol 75 MovieClip Frame 25
if (_parent.sel_confirm == 1) {
stop();
}
Symbol 102 MovieClip Frame 1
stop();
Symbol 102 MovieClip Frame 2
stop();
Symbol 102 MovieClip Frame 3
stop();
Symbol 102 MovieClip Frame 4
stop();
Symbol 102 MovieClip Frame 5
stop();
Symbol 102 MovieClip Frame 6
stop();
Symbol 102 MovieClip Frame 7
stop();
Symbol 102 MovieClip Frame 8
stop();
Symbol 102 MovieClip Frame 9
stop();
Symbol 102 MovieClip Frame 10
stop();
Symbol 102 MovieClip Frame 11
stop();
Symbol 102 MovieClip Frame 12
stop();
Instance of Symbol 102 MovieClip in Symbol 103 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Instance of Symbol 102 MovieClip in Symbol 103 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Instance of Symbol 102 MovieClip in Symbol 114 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Instance of Symbol 102 MovieClip in Symbol 129 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Instance of Symbol 102 MovieClip in Symbol 142 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Instance of Symbol 102 MovieClip in Symbol 155 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Instance of Symbol 102 MovieClip in Symbol 168 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Instance of Symbol 102 MovieClip in Symbol 175 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 184 MovieClip Frame 1
_parent.end = 1;
Instance of Symbol 102 MovieClip in Symbol 184 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 184 MovieClip Frame 6
delete _parent.end;
stop();
Symbol 195 MovieClip Frame 1
_parent.end = 1;
Instance of Symbol 102 MovieClip in Symbol 195 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 195 MovieClip Frame 6
delete _parent.end;
stop();
Symbol 204 MovieClip Frame 1
_parent.end = 1;
Instance of Symbol 102 MovieClip in Symbol 204 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 204 MovieClip Frame 7
delete _parent.end;
stop();
Symbol 215 MovieClip Frame 1
_parent.end = 1;
Instance of Symbol 102 MovieClip in Symbol 215 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 215 MovieClip Frame 6
delete _parent.end;
stop();
Symbol 224 MovieClip Frame 1
_parent.end = 1;
Instance of Symbol 102 MovieClip in Symbol 224 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 224 MovieClip Frame 5
delete _parent.end;
stop();
Instance of Symbol 102 MovieClip in Symbol 237 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Instance of Symbol 102 MovieClip in Symbol 250 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Instance of Symbol 102 MovieClip in Symbol 257 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Instance of Symbol 102 MovieClip in Symbol 270 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Instance of Symbol 102 MovieClip in Symbol 289 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 300 MovieClip Frame 1
_parent.end = 1;
Instance of Symbol 102 MovieClip in Symbol 300 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 300 MovieClip Frame 6
delete _parent.end;
stop();
Symbol 311 MovieClip Frame 1
_parent.end = 1;
Instance of Symbol 102 MovieClip in Symbol 311 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 311 MovieClip Frame 6
delete _parent.end;
stop();
Symbol 324 MovieClip Frame 1
_parent.end = 1;
Instance of Symbol 102 MovieClip in Symbol 324 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 324 MovieClip Frame 6
delete _parent.end;
stop();
Symbol 335 MovieClip Frame 1
_parent.end = 1;
Instance of Symbol 102 MovieClip in Symbol 335 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 335 MovieClip Frame 6
delete _parent.end;
stop();
Symbol 344 MovieClip Frame 1
_parent.end = 1;
Instance of Symbol 102 MovieClip in Symbol 344 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 344 MovieClip Frame 5
delete _parent.end;
stop();
Instance of Symbol 102 MovieClip in Symbol 357 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Instance of Symbol 102 MovieClip in Symbol 370 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Instance of Symbol 102 MovieClip in Symbol 387 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Instance of Symbol 102 MovieClip in Symbol 400 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Instance of Symbol 102 MovieClip in Symbol 413 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 427 MovieClip Frame 1
_parent.end = 1;
Instance of Symbol 102 MovieClip in Symbol 427 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 427 MovieClip Frame 6
delete _parent.end;
stop();
Symbol 438 MovieClip Frame 1
_parent.end = 1;
Instance of Symbol 102 MovieClip in Symbol 438 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 438 MovieClip Frame 6
delete _parent.end;
stop();
Symbol 451 MovieClip Frame 1
_parent.end = 1;
Instance of Symbol 102 MovieClip in Symbol 451 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 451 MovieClip Frame 7
delete _parent.end;
stop();
Symbol 462 MovieClip Frame 1
_parent.end = 1;
Instance of Symbol 102 MovieClip in Symbol 462 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 462 MovieClip Frame 6
delete _parent.end;
stop();
Symbol 471 MovieClip Frame 1
_parent.end = 1;
Symbol 471 MovieClip Frame 5
delete _parent.end;
stop();
Instance of Symbol 102 MovieClip in Symbol 484 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Instance of Symbol 102 MovieClip in Symbol 497 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Instance of Symbol 102 MovieClip in Symbol 508 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Instance of Symbol 102 MovieClip in Symbol 519 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Instance of Symbol 102 MovieClip in Symbol 532 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Instance of Symbol 102 MovieClip in Symbol 539 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 548 MovieClip Frame 1
_parent.end = 1;
Instance of Symbol 102 MovieClip in Symbol 548 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 548 MovieClip Frame 6
delete _parent.end;
stop();
Symbol 559 MovieClip Frame 1
_parent.end = 1;
Instance of Symbol 102 MovieClip in Symbol 559 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 559 MovieClip Frame 6
delete _parent.end;
stop();
Symbol 572 MovieClip Frame 1
_parent.end = 1;
Instance of Symbol 102 MovieClip in Symbol 572 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 572 MovieClip Frame 8
delete _parent.end;
stop();
Symbol 583 MovieClip Frame 1
_parent.end = 1;
Instance of Symbol 102 MovieClip in Symbol 583 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 583 MovieClip Frame 6
delete _parent.end;
stop();
Symbol 592 MovieClip Frame 1
_parent.end = 1;
Instance of Symbol 102 MovieClip in Symbol 592 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 592 MovieClip Frame 5
delete _parent.end;
stop();
Symbol 595 MovieClip Frame 1
stop();
Symbol 595 MovieClip Frame 2
stop();
Symbol 595 MovieClip Frame 3
stop();
Symbol 595 MovieClip Frame 4
stop();
Symbol 595 MovieClip Frame 5
stop();
Symbol 595 MovieClip Frame 6
stop();
Symbol 595 MovieClip Frame 7
stop();
Symbol 595 MovieClip Frame 8
stop();
Symbol 595 MovieClip Frame 9
stop();
Symbol 595 MovieClip Frame 10
stop();
Symbol 595 MovieClip Frame 11
stop();
Symbol 595 MovieClip Frame 12
stop();
Instance of Symbol 595 MovieClip in Symbol 606 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Instance of Symbol 595 MovieClip in Symbol 619 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Instance of Symbol 595 MovieClip in Symbol 630 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Instance of Symbol 595 MovieClip in Symbol 643 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Instance of Symbol 595 MovieClip in Symbol 656 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Instance of Symbol 595 MovieClip in Symbol 661 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 670 MovieClip Frame 1
_parent.end = 1;
Instance of Symbol 595 MovieClip in Symbol 670 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 670 MovieClip Frame 6
delete _parent.end;
stop();
Symbol 681 MovieClip Frame 1
_parent.end = 1;
Instance of Symbol 595 MovieClip in Symbol 681 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 681 MovieClip Frame 6
delete _parent.end;
stop();
Symbol 694 MovieClip Frame 1
_parent.end = 1;
Instance of Symbol 595 MovieClip in Symbol 694 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 694 MovieClip Frame 7
delete _parent.end;
stop();
Symbol 705 MovieClip Frame 1
_parent.end = 1;
Instance of Symbol 595 MovieClip in Symbol 705 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 705 MovieClip Frame 6
delete _parent.end;
stop();
Symbol 714 MovieClip Frame 1
_parent.end = 1;
Instance of Symbol 595 MovieClip in Symbol 714 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 714 MovieClip Frame 5
delete _parent.end;
stop();
Symbol 717 MovieClip Frame 1
stop();
Symbol 717 MovieClip Frame 2
stop();
Symbol 717 MovieClip Frame 3
stop();
Symbol 717 MovieClip Frame 4
stop();
Symbol 717 MovieClip Frame 5
stop();
Symbol 717 MovieClip Frame 6
stop();
Symbol 717 MovieClip Frame 7
stop();
Symbol 717 MovieClip Frame 8
stop();
Symbol 717 MovieClip Frame 9
stop();
Symbol 717 MovieClip Frame 10
stop();
Symbol 717 MovieClip Frame 11
stop();
Symbol 717 MovieClip Frame 12
stop();
Instance of Symbol 717 MovieClip in Symbol 728 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Instance of Symbol 717 MovieClip in Symbol 741 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Instance of Symbol 717 MovieClip in Symbol 748 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Instance of Symbol 717 MovieClip in Symbol 761 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Instance of Symbol 717 MovieClip in Symbol 774 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Instance of Symbol 717 MovieClip in Symbol 779 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 788 MovieClip Frame 1
_parent.end = 1;
Instance of Symbol 717 MovieClip in Symbol 788 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 788 MovieClip Frame 6
delete _parent.end;
stop();
Symbol 799 MovieClip Frame 1
_parent.end = 1;
Instance of Symbol 717 MovieClip in Symbol 799 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 799 MovieClip Frame 6
delete _parent.end;
stop();
Symbol 812 MovieClip Frame 1
_parent.end = 1;
Instance of Symbol 717 MovieClip in Symbol 812 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 812 MovieClip Frame 7
delete _parent.end;
stop();
Symbol 823 MovieClip Frame 1
_parent.end = 1;
Instance of Symbol 717 MovieClip in Symbol 823 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 823 MovieClip Frame 6
delete _parent.end;
stop();
Symbol 832 MovieClip Frame 1
_parent.end = 1;
Instance of Symbol 717 MovieClip in Symbol 832 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 832 MovieClip Frame 5
delete _parent.end;
stop();
Symbol 833 MovieClip Frame 1
stop();
Symbol 833 MovieClip Frame 2
stop();
Symbol 833 MovieClip Frame 3
stop();
Symbol 833 MovieClip Frame 4
stop();
Symbol 833 MovieClip Frame 5
stop();
Symbol 833 MovieClip Frame 6
stop();
Instance of Symbol 102 MovieClip in Symbol 833 MovieClip Frame 6
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 833 MovieClip Frame 7
stop();
Instance of Symbol 102 MovieClip in Symbol 833 MovieClip Frame 7
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 833 MovieClip Frame 8
stop();
Instance of Symbol 102 MovieClip in Symbol 833 MovieClip Frame 8
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 833 MovieClip Frame 9
stop();
Instance of Symbol 102 MovieClip in Symbol 833 MovieClip Frame 9
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 833 MovieClip Frame 10
stop();
Symbol 833 MovieClip Frame 11
stop();
Symbol 833 MovieClip Frame 12
stop();
Symbol 833 MovieClip Frame 13
stop();
Symbol 833 MovieClip Frame 14
stop();
Symbol 833 MovieClip Frame 15
stop();
Symbol 833 MovieClip Frame 16
stop();
Symbol 833 MovieClip Frame 17
stop();
Symbol 833 MovieClip Frame 18
stop();
Symbol 833 MovieClip Frame 19
stop();
Symbol 833 MovieClip Frame 20
stop();
Symbol 833 MovieClip Frame 21
stop();
Symbol 833 MovieClip Frame 22
stop();
Symbol 833 MovieClip Frame 23
stop();
Symbol 833 MovieClip Frame 24
stop();
Symbol 833 MovieClip Frame 25
stop();
Symbol 833 MovieClip Frame 26
stop();
Instance of Symbol 102 MovieClip in Symbol 833 MovieClip Frame 26
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Instance of Symbol 102 MovieClip in Symbol 833 MovieClip Frame 26
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 833 MovieClip Frame 27
stop();
Instance of Symbol 102 MovieClip in Symbol 833 MovieClip Frame 27
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 833 MovieClip Frame 28
stop();
Instance of Symbol 102 MovieClip in Symbol 833 MovieClip Frame 28
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 833 MovieClip Frame 29
stop();
Instance of Symbol 102 MovieClip in Symbol 833 MovieClip Frame 29
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 833 MovieClip Frame 30
stop();
Instance of Symbol 102 MovieClip in Symbol 833 MovieClip Frame 30
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 833 MovieClip Frame 31
stop();
Symbol 833 MovieClip Frame 32
stop();
Symbol 833 MovieClip Frame 33
stop();
Symbol 833 MovieClip Frame 34
stop();
Symbol 833 MovieClip Frame 35
stop();
Symbol 833 MovieClip Frame 36
stop();
Symbol 833 MovieClip Frame 37
stop();
Symbol 833 MovieClip Frame 38
stop();
Symbol 833 MovieClip Frame 39
stop();
Symbol 833 MovieClip Frame 40
stop();
Symbol 833 MovieClip Frame 41
stop();
Symbol 833 MovieClip Frame 42
stop();
Symbol 833 MovieClip Frame 43
stop();
Symbol 833 MovieClip Frame 44
stop();
Symbol 833 MovieClip Frame 45
stop();
Symbol 833 MovieClip Frame 46
stop();
Instance of Symbol 102 MovieClip in Symbol 833 MovieClip Frame 46
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 833 MovieClip Frame 47
stop();
Instance of Symbol 102 MovieClip in Symbol 833 MovieClip Frame 47
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 833 MovieClip Frame 48
stop();
Instance of Symbol 102 MovieClip in Symbol 833 MovieClip Frame 48
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 833 MovieClip Frame 49
stop();
Instance of Symbol 102 MovieClip in Symbol 833 MovieClip Frame 49
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 833 MovieClip Frame 50
stop();
Symbol 833 MovieClip Frame 51
stop();
Symbol 833 MovieClip Frame 52
stop();
Symbol 833 MovieClip Frame 53
stop();
Symbol 833 MovieClip Frame 54
stop();
Symbol 833 MovieClip Frame 55
stop();
Symbol 833 MovieClip Frame 56
stop();
Symbol 833 MovieClip Frame 57
stop();
Symbol 833 MovieClip Frame 58
stop();
Symbol 833 MovieClip Frame 59
stop();
Symbol 833 MovieClip Frame 60
stop();
Symbol 833 MovieClip Frame 61
stop();
Symbol 833 MovieClip Frame 62
stop();
Symbol 833 MovieClip Frame 63
stop();
Symbol 833 MovieClip Frame 64
stop();
Symbol 833 MovieClip Frame 65
stop();
Symbol 833 MovieClip Frame 66
stop();
Instance of Symbol 102 MovieClip in Symbol 833 MovieClip Frame 66
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 833 MovieClip Frame 67
stop();
Instance of Symbol 102 MovieClip in Symbol 833 MovieClip Frame 67
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 833 MovieClip Frame 68
stop();
Instance of Symbol 102 MovieClip in Symbol 833 MovieClip Frame 68
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 833 MovieClip Frame 69
stop();
Instance of Symbol 102 MovieClip in Symbol 833 MovieClip Frame 69
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 833 MovieClip Frame 70
stop();
Symbol 833 MovieClip Frame 71
stop();
Symbol 833 MovieClip Frame 72
stop();
Symbol 833 MovieClip Frame 73
stop();
Symbol 833 MovieClip Frame 74
stop();
Symbol 833 MovieClip Frame 75
stop();
Symbol 833 MovieClip Frame 76
stop();
Symbol 833 MovieClip Frame 77
stop();
Symbol 833 MovieClip Frame 78
stop();
Symbol 833 MovieClip Frame 79
stop();
Symbol 833 MovieClip Frame 80
stop();
Symbol 833 MovieClip Frame 81
stop();
Symbol 833 MovieClip Frame 82
stop();
Symbol 833 MovieClip Frame 83
stop();
Symbol 833 MovieClip Frame 84
stop();
Symbol 833 MovieClip Frame 85
stop();
Symbol 833 MovieClip Frame 86
stop();
Instance of Symbol 595 MovieClip in Symbol 833 MovieClip Frame 86
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 833 MovieClip Frame 87
stop();
Instance of Symbol 595 MovieClip in Symbol 833 MovieClip Frame 87
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 833 MovieClip Frame 88
stop();
Instance of Symbol 595 MovieClip in Symbol 833 MovieClip Frame 88
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 833 MovieClip Frame 89
stop();
Instance of Symbol 595 MovieClip in Symbol 833 MovieClip Frame 89
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 833 MovieClip Frame 90
stop();
Symbol 833 MovieClip Frame 91
stop();
Symbol 833 MovieClip Frame 92
stop();
Symbol 833 MovieClip Frame 93
stop();
Symbol 833 MovieClip Frame 94
stop();
Symbol 833 MovieClip Frame 95
stop();
Symbol 833 MovieClip Frame 96
stop();
Symbol 833 MovieClip Frame 97
stop();
Symbol 833 MovieClip Frame 98
stop();
Symbol 833 MovieClip Frame 99
stop();
Symbol 833 MovieClip Frame 100
stop();
Symbol 833 MovieClip Frame 101
stop();
Symbol 833 MovieClip Frame 102
stop();
Symbol 833 MovieClip Frame 103
stop();
Symbol 833 MovieClip Frame 104
stop();
Symbol 833 MovieClip Frame 105
stop();
Symbol 833 MovieClip Frame 106
stop();
Instance of Symbol 717 MovieClip in Symbol 833 MovieClip Frame 106
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 833 MovieClip Frame 107
stop();
Instance of Symbol 717 MovieClip in Symbol 833 MovieClip Frame 107
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 833 MovieClip Frame 108
stop();
Instance of Symbol 717 MovieClip in Symbol 833 MovieClip Frame 108
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 833 MovieClip Frame 109
stop();
Instance of Symbol 717 MovieClip in Symbol 833 MovieClip Frame 109
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 833 MovieClip Frame 110
stop();
Symbol 833 MovieClip Frame 111
stop();
Symbol 833 MovieClip Frame 112
stop();
Symbol 833 MovieClip Frame 113
stop();
Symbol 833 MovieClip Frame 114
stop();
Symbol 833 MovieClip Frame 115
stop();
Symbol 833 MovieClip Frame 116
stop();
Symbol 833 MovieClip Frame 117
stop();
Symbol 833 MovieClip Frame 118
stop();
Symbol 833 MovieClip Frame 119
stop();
Symbol 833 MovieClip Frame 120
stop();
Symbol 840 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 841 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 842 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 843 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 850 MovieClip Frame 1
stop();
Instance of Symbol 73 MovieClip in Symbol 850 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 75 MovieClip in Symbol 850 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(13)) {
_parent.sel_confirm = 1;
}
}
Instance of Symbol 833 MovieClip "char" in Symbol 850 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 833 MovieClip "char" in Symbol 850 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(103);
_root.shield = 8;
}
Instance of Symbol 833 MovieClip "char" in Symbol 850 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(103);
_root.shield = 8;
}
Instance of Symbol 833 MovieClip "char" in Symbol 850 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(103);
_root.shield = 8;
}
Instance of Symbol 833 MovieClip "char" in Symbol 850 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(103);
_root.shield = 8;
}
Instance of Symbol 833 MovieClip "char" in Symbol 850 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(103);
_root.shield = 8;
}
Instance of Symbol 844 MovieClip "rollOver" in Symbol 850 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 850 MovieClip Frame 2
stop();
Instance of Symbol 75 MovieClip in Symbol 850 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(13)) {
_parent.sel_confirm = 1;
}
}
Instance of Symbol 833 MovieClip "char" in Symbol 850 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 833 MovieClip "char" in Symbol 850 MovieClip Frame 2
onClipEvent (enterFrame) {
this.gotoAndStop(63);
_root.shield = 1;
}
Instance of Symbol 833 MovieClip "char" in Symbol 850 MovieClip Frame 2
onClipEvent (enterFrame) {
this.gotoAndStop(63);
_root.shield = 1;
}
Instance of Symbol 833 MovieClip "char" in Symbol 850 MovieClip Frame 2
onClipEvent (enterFrame) {
this.gotoAndStop(63);
_root.shield = 1;
}
Instance of Symbol 833 MovieClip "char" in Symbol 850 MovieClip Frame 2
onClipEvent (enterFrame) {
this.gotoAndStop(63);
_root.shield = 1;
}
Instance of Symbol 833 MovieClip "char" in Symbol 850 MovieClip Frame 2
onClipEvent (enterFrame) {
this.gotoAndStop(63);
_root.shield = 1;
}
Symbol 1093 MovieClip Frame 1
stop();
Symbol 1093 MovieClip Frame 2
stop();
Instance of Symbol 1093 MovieClip in Symbol 1152 MovieClip Frame 39
onClipEvent (enterFrame) {
if (_root["npc_window_" + windowNum]._currentframe == 3) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
Symbol 1161 MovieClip Frame 1
stop();
stop();
Instance of Symbol 1152 MovieClip "desc" in Symbol 1162 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 1161 MovieClip in Symbol 1162 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 1194 MovieClip Frame 1
stop();
Symbol 1194 MovieClip Frame 2
stop();
Symbol 1194 MovieClip Frame 3
stop();
Symbol 1194 MovieClip Frame 4
stop();
Symbol 1194 MovieClip Frame 5
stop();
Symbol 1194 MovieClip Frame 6
stop();
Symbol 1194 MovieClip Frame 7
stop();
Symbol 1194 MovieClip Frame 8
stop();
Symbol 1194 MovieClip Frame 9
stop();
Symbol 1194 MovieClip Frame 10
stop();
Symbol 1194 MovieClip Frame 11
stop();
Symbol 1194 MovieClip Frame 12
stop();
Symbol 1194 MovieClip Frame 13
stop();
Symbol 1194 MovieClip Frame 14
stop();
Symbol 1194 MovieClip Frame 15
stop();
Symbol 1194 MovieClip Frame 16
stop();
Symbol 1194 MovieClip Frame 17
stop();
Symbol 1194 MovieClip Frame 18
stop();
Symbol 1194 MovieClip Frame 19
stop();
Symbol 1194 MovieClip Frame 20
stop();
Symbol 1194 MovieClip Frame 21
stop();
Symbol 1194 MovieClip Frame 22
Symbol 1196 MovieClip Frame 1
stop();
Symbol 1196 MovieClip Frame 2
play();
Instance of Symbol 1194 MovieClip "spell1" in Symbol 1196 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 1194 MovieClip "spell2" in Symbol 1196 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 1194 MovieClip "spell3" in Symbol 1196 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 1194 MovieClip "spell4" in Symbol 1196 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 1194 MovieClip "spell5" in Symbol 1196 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 1196 MovieClip Frame 9
gotoAndStop (3);
Symbol 1212 Button
on (press, keyPress "s") {
if (_parent._currentframe < 53) {
gotoAndStop (2);
confirmItem.gotoAndPlay(2);
_root.soundeffect1.gotoAndPlay(3);
_parent.gotoAndPlay(53);
}
}
Symbol 1213 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 1214 Button
on (press, keyPress "a") {
if (_parent._currentframe < 53) {
gotoAndStop (2);
confirmItem.gotoAndPlay(2);
_root.soundeffect1.gotoAndPlay(3);
_parent.gotoAndPlay(53);
if (_root.class == 2) {
_root.spellArray[1] = 56;
_root.spellArray[2] = 50;
_root.spellArray[3] = 40;
_root.spellArray[4] = 41;
_root.spellArray[5] = 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;
}
}
}
Symbol 1226 MovieClip Frame 1
stop();
Instance of Symbol 1194 MovieClip "item_1" in Symbol 1226 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 1194 MovieClip "item_2" in Symbol 1226 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 1194 MovieClip "item_3" in Symbol 1226 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 1194 MovieClip "item_4" in Symbol 1226 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 1194 MovieClip "item_5" in Symbol 1226 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 1194 MovieClip "item_1" in Symbol 1226 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 1194 MovieClip "item_2" in Symbol 1226 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 1194 MovieClip "item_3" in Symbol 1226 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 1194 MovieClip "item_4" in Symbol 1226 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 1194 MovieClip "item_5" in Symbol 1226 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 1194 MovieClip "item_1" in Symbol 1226 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 1194 MovieClip "item_2" in Symbol 1226 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 1194 MovieClip "item_3" in Symbol 1226 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 1194 MovieClip "item_4" in Symbol 1226 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 1194 MovieClip "item_5" in Symbol 1226 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 1194 MovieClip "item_1" in Symbol 1226 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 1194 MovieClip "item_2" in Symbol 1226 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 1194 MovieClip "item_3" in Symbol 1226 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 1194 MovieClip "item_4" in Symbol 1226 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 1194 MovieClip "item_5" in Symbol 1226 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 1228 Button
on (press, keyPress "s") {
if (_parent._currentframe < 57) {
_parent.gotoAndPlay(57);
confirmItembar.gotoAndPlay(2);
_root.soundeffect1.gotoAndPlay(3);
gotoAndStop (3);
}
}
Symbol 1229 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 1230 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 == 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 1249 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 1255 Button
on (press, keyPress "s") {
if (_parent._currentframe < 57) {
_root.floorLoadingScreen();
_root.game_start = 1;
}
}
Symbol 1258 Button
on (press, keyPress "s") {
if (_parent._currentframe < 61) {
_root.monLoadingScreen();
_parent.mhul_stats._visible = false;
}
}
Symbol 1259 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 1260 MovieClip Frame 1
_root.select = "Spell";
stop();
Instance of Symbol 1194 MovieClip "spell1" in Symbol 1260 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 1194 MovieClip "item1" in Symbol 1260 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 1194 MovieClip "spell2" in Symbol 1260 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 1194 MovieClip "spell3" in Symbol 1260 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 1194 MovieClip "spell4" in Symbol 1260 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 1194 MovieClip "spell5" in Symbol 1260 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 1194 MovieClip "item2" in Symbol 1260 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 1194 MovieClip "item3" in Symbol 1260 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 1194 MovieClip "item4" in Symbol 1260 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 1194 MovieClip "item5" in Symbol 1260 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 1194 MovieClip "item6" in Symbol 1260 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 1194 MovieClip "item7" in Symbol 1260 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 1194 MovieClip "item8" in Symbol 1260 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 1194 MovieClip "item9" in Symbol 1260 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 1194 MovieClip "item10" in Symbol 1260 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 1260 MovieClip Frame 2
_root.select = "Item";
stop();
Instance of Symbol 1194 MovieClip "I_item1" in Symbol 1260 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 1194 MovieClip "I_item2" in Symbol 1260 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 1194 MovieClip "I_item3" in Symbol 1260 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 1194 MovieClip "I_item4" in Symbol 1260 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 1194 MovieClip "I_item5" in Symbol 1260 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 1194 MovieClip "item_1" in Symbol 1260 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 1194 MovieClip "item_2" in Symbol 1260 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 1194 MovieClip "item_3" in Symbol 1260 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 1194 MovieClip "item_4" in Symbol 1260 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 1194 MovieClip "item_5" in Symbol 1260 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 1194 MovieClip "I_item6" in Symbol 1260 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 1194 MovieClip "I_item7" in Symbol 1260 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 1194 MovieClip "I_item8" in Symbol 1260 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 1194 MovieClip "I_item9" in Symbol 1260 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 1194 MovieClip "I_item10" in Symbol 1260 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 1260 MovieClip Frame 3
_root.select = "confirm";
stop();
Instance of Symbol 1194 MovieClip "item_1" in Symbol 1260 MovieClip Frame 3
onClipEvent (enterFrame) {
if (_root.itemArraynum[1] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.itemArraynum[1]);
}
}
Instance of Symbol 1194 MovieClip "item_2" in Symbol 1260 MovieClip Frame 3
onClipEvent (enterFrame) {
if (_root.itemArraynum[2] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.itemArraynum[2]);
}
}
Instance of Symbol 1194 MovieClip "item_3" in Symbol 1260 MovieClip Frame 3
onClipEvent (enterFrame) {
if (_root.itemArraynum[3] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.itemArraynum[3]);
}
}
Instance of Symbol 1194 MovieClip "item_4" in Symbol 1260 MovieClip Frame 3
onClipEvent (enterFrame) {
if (_root.itemArraynum[4] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.itemArraynum[4]);
}
}
Instance of Symbol 1194 MovieClip "item_5" in Symbol 1260 MovieClip Frame 3
onClipEvent (enterFrame) {
if (_root.itemArraynum[5] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.itemArraynum[5]);
}
}
Instance of Symbol 1194 MovieClip "I_item1" in Symbol 1260 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 1194 MovieClip "I_item2" in Symbol 1260 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 1194 MovieClip "I_item3" in Symbol 1260 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 1194 MovieClip "I_item4" in Symbol 1260 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 1194 MovieClip "I_item5" in Symbol 1260 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 1194 MovieClip "item_1" in Symbol 1260 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 1194 MovieClip "item_2" in Symbol 1260 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 1194 MovieClip "item_3" in Symbol 1260 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 1194 MovieClip "item_4" in Symbol 1260 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 1194 MovieClip "item_5" in Symbol 1260 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 1194 MovieClip "spell1" in Symbol 1260 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 1194 MovieClip "spell2" in Symbol 1260 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 1194 MovieClip "spell3" in Symbol 1260 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 1194 MovieClip "spell4" in Symbol 1260 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 1194 MovieClip "spell5" in Symbol 1260 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 38 MovieClip in Symbol 1261 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 1261 MovieClip Frame 37
stop();
Symbol 1261 MovieClip Frame 52
stop();
Instance of Symbol 38 MovieClip in Symbol 1261 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 1261 MovieClip Frame 56
stop();
Instance of Symbol 38 MovieClip in Symbol 1261 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 38 MovieClip "mhul_stats" in Symbol 1261 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) {
if (_root.class == 2) {
stats_health = 135;
stats_mana = 214;
sel_agi = 4;
}
if (_root.class == 1) {
stats_health = 66;
stats_mana = 226;
sel_agi = 20;
}
dialogue[0] = (((((((((((("Class:" + _root.classoutput) + "<br>") + "HP:") + stats_health) + ":") + "MP:") + stats_mana) + "<br>") + "STR:1 ") + "AGI:") + sel_agi) + " DEX:1") + "<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 1261 MovieClip Frame 60
stop();
Symbol 1262 MovieClip Frame 1
stop();
Symbol 1262 MovieClip Frame 25
stop();
Symbol 1262 MovieClip Frame 42
stop();
Instance of Symbol 102 MovieClip in Symbol 1281 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 1306 MovieClip Frame 6
stop();
Symbol 1311 MovieClip Frame 6
stop();
Symbol 1312 MovieClip Frame 6
stop();
Symbol 1313 MovieClip Frame 6
stop();
Symbol 1318 MovieClip Frame 6
stop();
Symbol 1346 MovieClip Frame 6
stop();
Symbol 1351 MovieClip Frame 6
stop();
Symbol 1352 MovieClip Frame 6
stop();
Symbol 1353 MovieClip Frame 6
stop();
Symbol 1358 MovieClip Frame 6
stop();
Symbol 1391 MovieClip Frame 6
stop();
Symbol 1400 MovieClip Frame 6
stop();
Symbol 1401 MovieClip Frame 6
stop();
Symbol 1402 MovieClip Frame 6
stop();
Symbol 1411 MovieClip Frame 6
stop();
Symbol 1443 MovieClip Frame 5
stop();
Symbol 1452 MovieClip Frame 5
stop();
Symbol 1453 MovieClip Frame 5
stop();
Symbol 1454 MovieClip Frame 5
stop();
Symbol 1463 MovieClip Frame 5
stop();
Symbol 1491 MovieClip Frame 6
stop();
Symbol 1496 MovieClip Frame 6
stop();
Symbol 1497 MovieClip Frame 6
stop();
Symbol 1498 MovieClip Frame 6
stop();
Symbol 1503 MovieClip Frame 6
stop();
Symbol 1531 MovieClip Frame 6
stop();
Symbol 1536 MovieClip Frame 6
stop();
Symbol 1537 MovieClip Frame 6
stop();
Symbol 1538 MovieClip Frame 6
stop();
Symbol 1543 MovieClip Frame 6
stop();
Symbol 1544 MovieClip Frame 1
gotoAndStop(_root.monanim);
stop();
Symbol 1544 MovieClip Frame 2
stop();
Symbol 1544 MovieClip Frame 3
stop();
Symbol 1544 MovieClip Frame 4
stop();
Symbol 1544 MovieClip Frame 5
stop();
Symbol 1544 MovieClip Frame 6
stop();
Instance of Symbol 102 MovieClip in Symbol 1544 MovieClip Frame 6
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Instance of Symbol 102 MovieClip in Symbol 1544 MovieClip Frame 6
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 1544 MovieClip Frame 7
stop();
Instance of Symbol 102 MovieClip in Symbol 1544 MovieClip Frame 7
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 1544 MovieClip Frame 8
stop();
Instance of Symbol 102 MovieClip in Symbol 1544 MovieClip Frame 8
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 1544 MovieClip Frame 9
stop();
Instance of Symbol 102 MovieClip in Symbol 1544 MovieClip Frame 9
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 1544 MovieClip Frame 10
stop();
Symbol 1544 MovieClip Frame 11
stop();
Symbol 1544 MovieClip Frame 12
stop();
Symbol 1544 MovieClip Frame 13
stop();
Symbol 1544 MovieClip Frame 14
stop();
Symbol 1544 MovieClip Frame 15
stop();
Symbol 1544 MovieClip Frame 16
stop();
Symbol 1544 MovieClip Frame 17
stop();
Symbol 1544 MovieClip Frame 18
stop();
Symbol 1544 MovieClip Frame 19
stop();
Symbol 1544 MovieClip Frame 20
stop();
Symbol 1544 MovieClip Frame 21
stop();
Symbol 1544 MovieClip Frame 22
stop();
Symbol 1544 MovieClip Frame 23
stop();
Symbol 1544 MovieClip Frame 24
stop();
Symbol 1544 MovieClip Frame 25
stop();
Symbol 1544 MovieClip Frame 26
stop();
Symbol 1544 MovieClip Frame 27
stop();
Symbol 1544 MovieClip Frame 28
stop();
Symbol 1544 MovieClip Frame 29
stop();
Symbol 1544 MovieClip Frame 30
stop();
Symbol 1544 MovieClip Frame 31
stop();
Symbol 1544 MovieClip Frame 32
stop();
Symbol 1544 MovieClip Frame 33
stop();
Symbol 1544 MovieClip Frame 34
stop();
Symbol 1544 MovieClip Frame 35
stop();
Symbol 1544 MovieClip Frame 36
stop();
Symbol 1544 MovieClip Frame 37
stop();
Symbol 1544 MovieClip Frame 38
stop();
Symbol 1544 MovieClip Frame 39
stop();
Symbol 1544 MovieClip Frame 40
stop();
Symbol 1544 MovieClip Frame 41
stop();
Symbol 1544 MovieClip Frame 42
stop();
Symbol 1544 MovieClip Frame 43
stop();
Symbol 1544 MovieClip Frame 44
stop();
Symbol 1544 MovieClip Frame 45
stop();
Symbol 1544 MovieClip Frame 46
stop();
Symbol 1544 MovieClip Frame 47
stop();
Symbol 1544 MovieClip Frame 48
stop();
Symbol 1544 MovieClip Frame 49
stop();
Symbol 1544 MovieClip Frame 50
stop();
Symbol 1544 MovieClip Frame 51
stop();
Symbol 1544 MovieClip Frame 52
stop();
Symbol 1544 MovieClip Frame 53
stop();
Symbol 1544 MovieClip Frame 54
stop();
Symbol 1544 MovieClip Frame 55
stop();
Symbol 1544 MovieClip Frame 56
stop();
Symbol 1544 MovieClip Frame 57
stop();
Symbol 1544 MovieClip Frame 58
stop();
Symbol 1544 MovieClip Frame 59
stop();
Symbol 1544 MovieClip Frame 60
stop();
Symbol 1544 MovieClip Frame 61
stop();
Symbol 1544 MovieClip Frame 62
stop();
Symbol 1544 MovieClip Frame 63
stop();
Symbol 1544 MovieClip Frame 64
stop();
Symbol 1544 MovieClip Frame 65
stop();
Symbol 1544 MovieClip Frame 66
stop();
Symbol 1544 MovieClip Frame 67
stop();
Symbol 1544 MovieClip Frame 68
stop();
Symbol 1544 MovieClip Frame 69
stop();
Symbol 1544 MovieClip Frame 70
stop();
Symbol 1544 MovieClip Frame 71
stop();
Symbol 1544 MovieClip Frame 72
stop();
Symbol 1544 MovieClip Frame 73
stop();
Symbol 1544 MovieClip Frame 74
stop();
Symbol 1544 MovieClip Frame 75
stop();
Symbol 1544 MovieClip Frame 76
stop();
Symbol 1544 MovieClip Frame 77
stop();
Symbol 1544 MovieClip Frame 78
stop();
Symbol 1544 MovieClip Frame 79
stop();
Symbol 1544 MovieClip Frame 80
stop();
Symbol 1544 MovieClip Frame 81
stop();
Symbol 1544 MovieClip Frame 82
stop();
Symbol 1544 MovieClip Frame 83
stop();
Symbol 1544 MovieClip Frame 84
stop();
Symbol 1544 MovieClip Frame 85
stop();
Symbol 1544 MovieClip Frame 86
stop();
Symbol 1544 MovieClip Frame 87
stop();
Symbol 1544 MovieClip Frame 88
stop();
Symbol 1544 MovieClip Frame 89
stop();
Symbol 1544 MovieClip Frame 90
stop();
Symbol 1544 MovieClip Frame 91
stop();
Symbol 1544 MovieClip Frame 92
stop();
Symbol 1544 MovieClip Frame 93
stop();
Symbol 1544 MovieClip Frame 94
stop();
Symbol 1544 MovieClip Frame 95
stop();
Symbol 1544 MovieClip Frame 96
stop();
Symbol 1544 MovieClip Frame 97
stop();
Symbol 1544 MovieClip Frame 98
stop();
Symbol 1544 MovieClip Frame 99
stop();
Symbol 1544 MovieClip Frame 100
stop();
Symbol 1544 MovieClip Frame 101
stop();
Symbol 1544 MovieClip Frame 102
stop();
Symbol 1544 MovieClip Frame 103
stop();
Symbol 1544 MovieClip Frame 104
stop();
Symbol 1544 MovieClip Frame 105
stop();
Symbol 1544 MovieClip Frame 106
stop();
Symbol 1544 MovieClip Frame 107
stop();
Symbol 1544 MovieClip Frame 108
stop();
Symbol 1544 MovieClip Frame 109
stop();
Symbol 1544 MovieClip Frame 110
stop();
Symbol 1544 MovieClip Frame 111
stop();
Symbol 1544 MovieClip Frame 112
stop();
Symbol 1544 MovieClip Frame 113
stop();
Symbol 1544 MovieClip Frame 114
stop();
Symbol 1544 MovieClip Frame 115
stop();
Symbol 1544 MovieClip Frame 116
stop();
Symbol 1544 MovieClip Frame 117
stop();
Symbol 1544 MovieClip Frame 118
stop();
Symbol 1544 MovieClip Frame 119
stop();
Symbol 1544 MovieClip Frame 120
stop();
Symbol 1546 MovieClip Frame 1
stop();
Symbol 1546 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 1544 MovieClip "enemy" in Symbol 1546 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 1544 MovieClip "enemy" in Symbol 1546 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 1544 MovieClip "enemy" in Symbol 1546 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 1544 MovieClip "enemy" in Symbol 1546 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 1544 MovieClip "enemy" in Symbol 1546 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 1546 MovieClip Frame 3
stop();
Instance of Symbol 1544 MovieClip "enemy" in Symbol 1546 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 1544 MovieClip "enemy" in Symbol 1546 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 1544 MovieClip "enemy" in Symbol 1546 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 1544 MovieClip "enemy" in Symbol 1546 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 1544 MovieClip "enemy" in Symbol 1546 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 1544 MovieClip "enemy" in Symbol 1546 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 1546 MovieClip Frame 4
stop();
Instance of Symbol 1544 MovieClip "enemy" in Symbol 1546 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 1544 MovieClip "enemy" in Symbol 1546 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 1544 MovieClip "enemy" in Symbol 1546 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 1544 MovieClip "enemy" in Symbol 1546 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 1544 MovieClip "enemy" in Symbol 1546 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 1546 MovieClip Frame 5
stop();
Instance of Symbol 1544 MovieClip "enemy" in Symbol 1546 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 1544 MovieClip "enemy" in Symbol 1546 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 1544 MovieClip "enemy" in Symbol 1546 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 1544 MovieClip "enemy" in Symbol 1546 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 1544 MovieClip "enemy" in Symbol 1546 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 1544 MovieClip "enemy" in Symbol 1546 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 1546 MovieClip Frame 6
stop();
Instance of Symbol 1544 MovieClip "enemy" in Symbol 1546 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 1544 MovieClip "enemy" in Symbol 1546 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 1544 MovieClip "enemy" in Symbol 1546 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 1544 MovieClip "enemy" in Symbol 1546 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 1544 MovieClip "enemy" in Symbol 1546 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 1544 MovieClip "enemy" in Symbol 1546 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 1544 MovieClip "enemy" in Symbol 1546 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 1544 MovieClip "enemy" in Symbol 1546 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 1544 MovieClip "enemy" in Symbol 1546 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 1544 MovieClip "enemy" in Symbol 1546 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 1544 MovieClip "enemy" in Symbol 1546 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 1557 MovieClip Frame 1
stop();
Symbol 1557 MovieClip Frame 2
_root.soundspell1.gotoAndStop(8);
_root.soundbgm1.gotoAndStop(3);
play();
Instance of Symbol 1546 MovieClip in Symbol 1557 MovieClip Frame 9
onClipEvent (load) {
this.gotoAndStop(_root.progress);
this.prog = _root.progress;
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.progress);
}
Instance of Symbol 1546 MovieClip in Symbol 1557 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 1546 MovieClip in Symbol 1557 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 1546 MovieClip in Symbol 1557 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 29 MovieClip in Symbol 1557 MovieClip Frame 9
onClipEvent (load) {
this.gotoAndStop(_root.class);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.class);
}
Symbol 1557 MovieClip Frame 47
_root.soundspell1.gotoAndStop(8);
Instance of Symbol 1554 MovieClip in Symbol 1557 MovieClip Frame 48
onClipEvent (enterFrame) {
output = "PREPARE FOR BATTLE!!!";
read++;
this.p_battle_output = output.slice(0, read);
}
Symbol 1557 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 1557 MovieClip Frame 105
if (step >= 4) {
delete step;
} else {
step++;
}
if (_root.progress >= 5) {
_root.progress = 2;
} else {
_root.progress++;
}
Symbol 1757 MovieClip Frame 10
_root.soundeffect1.gotoAndStop(5);
Instance of Symbol 7 MovieClip in Symbol 1757 MovieClip Frame 11
onClipEvent (enterFrame) {
_root.char1._x = 120;
_root.char1._y = 120;
}
Symbol 1757 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);
}
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 1757 MovieClip Frame 27
if (_root.firstBGM == null) {
_root.soundbgm1.gotoAndStop(_root.floor + 4);
_root.firstBGM = 1;
}
Symbol 1757 MovieClip Frame 37
removeMovieClip(this);
Symbol 1767 MovieClip Frame 1
stop();
Symbol 1767 MovieClip Frame 2
gotoAndStop (1);
Symbol 1767 MovieClip Frame 3
gotoAndStop (1);
Symbol 1767 MovieClip Frame 4
gotoAndStop (1);
Symbol 1767 MovieClip Frame 6
gotoAndStop (1);
Symbol 1767 MovieClip Frame 7
gotoAndStop (1);
Symbol 1767 MovieClip Frame 8
gotoAndStop (1);
Symbol 1767 MovieClip Frame 9
gotoAndStop (1);
Symbol 1767 MovieClip Frame 10
gotoAndStop (1);
Symbol 1773 MovieClip Frame 1
gotoAndStop (1);
Symbol 1773 MovieClip Frame 2
gotoAndStop (1);
Symbol 1773 MovieClip Frame 3
gotoAndStop (1);
Symbol 1773 MovieClip Frame 4
gotoAndStop (1);
Symbol 1773 MovieClip Frame 5
gotoAndStop (1);
Symbol 1778 MovieClip Frame 1
stop();
Symbol 1778 MovieClip Frame 2
gotoAndStop (1);
Symbol 1778 MovieClip Frame 3
gotoAndStop (1);
Symbol 1778 MovieClip Frame 4
gotoAndStop (1);
Symbol 1778 MovieClip Frame 5
gotoAndStop (1);
Symbol 1785 MovieClip Frame 1
gotoAndStop (1);
Symbol 1785 MovieClip Frame 2
gotoAndStop (1);
Symbol 1785 MovieClip Frame 3
gotoAndStop (1);
Symbol 1785 MovieClip Frame 4
gotoAndStop (1);
Symbol 1785 MovieClip Frame 5
gotoAndStop (1);
Symbol 1785 MovieClip Frame 6
gotoAndStop (1);
Symbol 1785 MovieClip Frame 7
gotoAndStop (1);
Symbol 1785 MovieClip Frame 8
gotoAndStop (1);
Symbol 1788 MovieClip Frame 1
stop();
Symbol 1788 MovieClip Frame 2
stop();
gotoAndStop (1);
Symbol 1788 MovieClip Frame 3
stop();
gotoAndStop (1);
Symbol 1788 MovieClip Frame 4
stop();
gotoAndStop (1);
Symbol 1802 MovieClip Frame 1
stop();
Symbol 1802 MovieClip Frame 2
if (_root.BGM == 2) {
stopAllSounds();
}
gotoAndStop (1);
Symbol 1802 MovieClip Frame 3
if (_root.BGM == 2) {
stopAllSounds();
}
gotoAndStop (1);
Symbol 1802 MovieClip Frame 4
if (_root.BGM == 2) {
stopAllSounds();
}
gotoAndStop (1);
Symbol 1802 MovieClip Frame 5
if (_root.BGM == 2) {
stopAllSounds();
}
gotoAndStop (1);
Symbol 1802 MovieClip Frame 6
if (_root.BGM == 2) {
stopAllSounds();
}
gotoAndStop (1);
Symbol 1802 MovieClip Frame 7
if (_root.BGM == 2) {
stopAllSounds();
}
gotoAndStop (1);
Symbol 1802 MovieClip Frame 8
if (_root.BGM == 2) {
stopAllSounds();
}
gotoAndStop (1);
Symbol 1802 MovieClip Frame 9
if (_root.BGM == 2) {
stopAllSounds();
}
gotoAndStop (1);
Symbol 1802 MovieClip Frame 10
if (_root.BGM == 2) {
stopAllSounds();
}
gotoAndStop (1);
Symbol 1802 MovieClip Frame 11
if (_root.BGM == 2) {
stopAllSounds();
}
gotoAndStop (1);
Symbol 1802 MovieClip Frame 12
if (_root.BGM == 2) {
stopAllSounds();
}
gotoAndStop (1);
Symbol 1802 MovieClip Frame 13
if (_root.BGM == 2) {
stopAllSounds();
}
gotoAndStop (1);
Symbol 1802 MovieClip Frame 14
if (_root.BGM == 2) {
stopAllSounds();
}
gotoAndStop (1);
Symbol 1802 MovieClip Frame 15
gotoAndStop (13);
Symbol 1802 MovieClip Frame 20
if (_root.BGM == 2) {
stopAllSounds();
}
gotoAndStop (1);
Symbol 1802 MovieClip Frame 21
if (_root.BGM == 2) {
stopAllSounds();
}
gotoAndStop (1);
Symbol 1805 Button
on (press) {
_root.floorLoadingScreen();
_root.class = 2;
_root.game_start = 1;
}
Symbol 1806 Button
on (press) {
_root.floorLoadingScreen();
_root.class = 1;
_root.game_start = 1;
}
Symbol 1813 Button
on (press, keyPress "<Enter>") {
_root.cs_selectLoad = 1;
}
Instance of Symbol 1822 MovieClip in Symbol 1824 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.floorHAnim == 1) {
gotoAndPlay (1);
this._visible = true;
delete _root.floorLAnim;
} else {
this._visible = false;
}
}
Instance of Symbol 1823 MovieClip in Symbol 1824 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.floorLAnim == 1) {
gotoAndPlay (1);
this._visible = true;
delete _root.floorHAnim;
} else {
this._visible = false;
}
}
Symbol 1824 MovieClip Frame 74
delete _root.floorHAnim;
delete _root.floorLAnim;
if (this._name == "floor_fader1") {
removeMovieClip(this);
}
Symbol 1831 MovieClip Frame 1
stop();
Symbol 1831 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 1831 MovieClip Frame 5
_root.firstTime_ = _root.firstTime;
_root.secondTime_ = _root.secondTime;
_root.thirdTime_ = _root.thirdTime;
_root.fourthTime_ = _root.fourthTime;
Symbol 1831 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 1831 MovieClip Frame 8
_root.firstTime_ = _root.firstTime;
_root.secondTime_ = _root.secondTime;
_root.thirdTime_ = _root.thirdTime;
_root.fourthTime_ = _root.fourthTime;
Symbol 1831 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 1831 MovieClip Frame 11
_root.firstTime_ = _root.firstTime;
_root.secondTime_ = _root.secondTime;
_root.thirdTime_ = _root.thirdTime;
_root.fourthTime_ = _root.fourthTime;
Symbol 1831 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 1831 MovieClip Frame 14
_root.firstTime_ = _root.firstTime;
_root.secondTime_ = _root.secondTime;
_root.thirdTime_ = _root.thirdTime;
_root.fourthTime_ = _root.fourthTime;
Symbol 1831 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 1831 MovieClip Frame 17
_root.firstTime_ = _root.firstTime;
_root.secondTime_ = _root.secondTime;
_root.thirdTime_ = _root.thirdTime;
_root.fourthTime_ = _root.fourthTime;
Symbol 1831 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 1831 MovieClip Frame 20
_root.firstTime_ = _root.firstTime;
_root.secondTime_ = _root.secondTime;
_root.thirdTime_ = _root.thirdTime;
_root.fourthTime_ = _root.fourthTime;
Symbol 1831 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 1831 MovieClip Frame 23
_root.firstTime_ = _root.firstTime;
_root.secondTime_ = _root.secondTime;
_root.thirdTime_ = _root.thirdTime;
_root.fourthTime_ = _root.fourthTime;
Symbol 1831 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 1831 MovieClip Frame 26
_root.firstTime_ = _root.firstTime;
_root.secondTime_ = _root.secondTime;
_root.thirdTime_ = _root.thirdTime;
_root.fourthTime_ = _root.fourthTime;
Symbol 1831 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 1831 MovieClip Frame 29
_root.firstTime_ = _root.firstTime;
_root.secondTime_ = _root.secondTime;
_root.thirdTime_ = _root.thirdTime;
_root.fourthTime_ = _root.fourthTime;
stop();
Symbol 1839 MovieClip Frame 20
gotoAndStop (1);
Symbol 1839 MovieClip Frame 21
stop();
Symbol 1841 MovieClip Frame 12
stop();
Symbol 1842 MovieClip Frame 1
stop();
Instance of Symbol 1839 MovieClip in Symbol 1842 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 1841 MovieClip in Symbol 1842 MovieClip Frame 1
onClipEvent (enterFrame) {
if (rwgemglow == null) {
this.gotoAndPlay(2);
rwgemglow = 1;
}
}
onClipEvent (unload) {
delete rwgemglow;
}
Symbol 1843 MovieClip Frame 26
stop();
Symbol 1844 MovieClip Frame 1
stop();
Symbol 1844 MovieClip Frame 2
stop();
Symbol 1844 MovieClip Frame 3
stop();
Symbol 1844 MovieClip Frame 4
stop();
Symbol 1844 MovieClip Frame 5
stop();
Symbol 1844 MovieClip Frame 6
stop();
Symbol 1867 MovieClip Frame 1
stop();
Symbol 1867 MovieClip Frame 2
_root.level_up_bgm();
play();
Symbol 1867 MovieClip Frame 44
if (_root.floorComplete_1._x == null) {
stopAllSounds();
if (_root.bgm_input == 1) {
delete _root.bgm_input;
}
}
Symbol 1867 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 1869 MovieClip Frame 1
stop();
Symbol 1942 MovieClip Frame 1
stop();
Symbol 1942 MovieClip Frame 2
stop();
Symbol 1942 MovieClip Frame 3
stop();
Symbol 1942 MovieClip Frame 4
stop();
Symbol 1942 MovieClip Frame 5
stop();
Symbol 1942 MovieClip Frame 6
stop();
Symbol 1942 MovieClip Frame 7
stop();
Symbol 1942 MovieClip Frame 8
stop();
Symbol 2051 MovieClip Frame 1
stop();
Symbol 2051 MovieClip Frame 2
stop();
Instance of Symbol 1881 MovieClip in Symbol 2051 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 1885 MovieClip "exit" in Symbol 2051 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 1942 MovieClip "hb" in Symbol 2051 MovieClip Frame 7
onClipEvent (load) {
gotoAndStop(_parent._currentframe);
}
onClipEvent (enterFrame) {
gotoAndStop(_parent._currentframe);
}
Symbol 2051 MovieClip Frame 21
_root.nullSpawn = 1;
Instance of Symbol 1881 MovieClip "exit2" in Symbol 2051 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 1881 MovieClip "exit" in Symbol 2051 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 1885 MovieClip "exit" in Symbol 2051 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 1881 MovieClip "exit2" in Symbol 2051 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 1881 MovieClip in Symbol 2051 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 1885 MovieClip "exit" in Symbol 2051 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 2056 MovieClip Frame 21
removeMovieClip(this);
Instance of Symbol 2066 MovieClip in Symbol 2067 MovieClip Frame 1
onClipEvent (load) {
}
onClipEvent (enterFrame) {
if (_root.debugGame == 1) {
_alpha = 100;
if (counter == null) {
counter = 1;
}
if (getTimer() >= (999 * counter)) {
counter++;
_root.fps = "FPS:" + rate;
delete rate;
} else {
rate++;
}
} else {
_visible = false;
}
}
Symbol 2074 MovieClip Frame 1
stop();
Symbol 2077 MovieClip Frame 1
stop();
Symbol 2077 MovieClip Frame 2
stop();
Symbol 2080 MovieClip Frame 25
removeMovieClip(this);
Symbol 2084 MovieClip Frame 25
removeMovieClip(this);
Symbol 2087 MovieClip Frame 25
removeMovieClip(this);
Symbol 2089 MovieClip Frame 25
removeMovieClip(this);
Symbol 2092 MovieClip Frame 15
removeMovieClip(this);
Symbol 2093 MovieClip Frame 15
removeMovieClip(this);
Symbol 2097 MovieClip Frame 25
removeMovieClip(this);
Symbol 2098 MovieClip Frame 25
removeMovieClip(this);
Instance of Symbol 2102 MovieClip in Symbol 2107 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 2102 MovieClip in Symbol 2119 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 2102 MovieClip in Symbol 2123 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 833 MovieClip "char" in Symbol 2148 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(_root.char1._currentframe);
this._xscale = _root.char1._xscale;
}
Instance of Symbol 1194 MovieClip "item2" in Symbol 2148 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.equipArray[2] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.equipArray[2]);
}
}
Instance of Symbol 1194 MovieClip "item3" in Symbol 2148 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.equipArray[3] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.equipArray[3]);
}
}
Instance of Symbol 1194 MovieClip "item1" in Symbol 2148 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.equipArray[1] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.equipArray[1]);
}
}
Instance of Symbol 1194 MovieClip "item4" in Symbol 2148 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.equipArray[4] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.equipArray[4]);
}
}
Instance of Symbol 1194 MovieClip "item5" in Symbol 2148 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.equipArray[5] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.equipArray[5]);
}
}
Symbol 2155 MovieClip Frame 1
stop();
Symbol 2155 MovieClip Frame 2
stop();
Instance of Symbol 1194 MovieClip "item1" in Symbol 2156 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.spellArray[1] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.spellArray[1]);
}
}
Instance of Symbol 1194 MovieClip "item2" in Symbol 2156 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.spellArray[2] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.spellArray[2]);
}
}
Instance of Symbol 1194 MovieClip "item3" in Symbol 2156 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.spellArray[3] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.spellArray[3]);
}
}
Instance of Symbol 1194 MovieClip "item4" in Symbol 2156 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.spellArray[4] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.spellArray[4]);
}
}
Instance of Symbol 1194 MovieClip "item5" in Symbol 2156 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.spellArray[5] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.spellArray[5]);
}
}
Instance of Symbol 2155 MovieClip in Symbol 2156 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(_root.spellMenuArrowD + 1);
}
Instance of Symbol 2155 MovieClip "UP" in Symbol 2156 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(_root.spellMenuArrowU + 1);
}
Symbol 2162 MovieClip Frame 1
stop();
Instance of Symbol 2158 MovieClip in Symbol 2162 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 2162 MovieClip Frame 2
stop();
Instance of Symbol 2161 MovieClip in Symbol 2162 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 2169 Button
on (press) {
m = 1;
}
on (release, releaseOutside) {
m = 0;
}
Instance of Symbol 2170 MovieClip "head" in Symbol 2171 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest(_root._xmouse, _root._ymouse, true)) {
}
}
Instance of Symbol 2171 MovieClip "player" in Symbol 2173 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.hud_mc1.timebar.player.head);
}
Instance of Symbol 1194 MovieClip "item_1" in Symbol 2194 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.itemNum[1] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.itemArraynum[1]);
}
}
Instance of Symbol 1194 MovieClip "item_2" in Symbol 2194 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.itemNum[2] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.itemArraynum[2]);
}
}
Instance of Symbol 1194 MovieClip "item_3" in Symbol 2194 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.itemNum[3] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.itemArraynum[3]);
}
}
Instance of Symbol 1194 MovieClip "item_4" in Symbol 2194 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.itemNum[4] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.itemArraynum[4]);
}
}
Instance of Symbol 1194 MovieClip "item_5" in Symbol 2194 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.itemNum[5] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.itemArraynum[5]);
}
}
Symbol 2205 MovieClip Frame 1
stop();
Symbol 2205 MovieClip Frame 2
stop();
Symbol 2215 MovieClip Frame 1
stop();
Instance of Symbol 2102 MovieClip in Symbol 2234 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 2219 MovieClip in Symbol 2234 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.meleenum >= 1) {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 2221 MovieClip in Symbol 2234 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.meleenum >= 2) {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 2224 MovieClip in Symbol 2234 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.blesstimer >= 1) {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 2226 MovieClip in Symbol 2234 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.potencetimer >= 1) {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 2228 MovieClip in Symbol 2234 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.mighttimer >= 1) {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 2230 MovieClip in Symbol 2234 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.shadowtimer >= 1) {
_visible = true;
} else {
_visible = false;
}
}
Symbol 2238 Button
on (press) {
m = 1;
}
on (release, dragOut, releaseOutside) {
delete m;
}
Instance of Symbol 2239 MovieClip in Symbol 2240 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 2245 Button
on (press) {
_parent.startDrag();
}
on (release) {
_parent.stopDrag();
}
Symbol 2248 Button
on (press) {
_parent._parent.gotoAndPlay(6);
}
Symbol 2254 Button
on (press) {
_parent.question._x = 20;
_parent.question._y = -50;
}
Symbol 2256 Button
on (dragOut) {
delete _root.userLine;
delete _root.rdstart;
delete _root.rdstart2;
_root.mreset = 1;
_root.mailletter++;
}
Symbol 2257 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 2265 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 2266 Button
on (press, keyPress "d") {
_parent.question._x = -9999;
_parent.question._y = -9999;
}
Instance of Symbol 2267 MovieClip "question" in Symbol 2268 MovieClip Frame 1
onClipEvent (load) {
this._x = -99999;
this._y = -99999;
}
Symbol 2269 MovieClip Frame 1
stop();
Symbol 2270 MovieClip Frame 1
stop();
Symbol 2270 MovieClip Frame 5
stop();
Symbol 2270 MovieClip Frame 10
stop();
Symbol 2273 MovieClip Frame 1
stop();
Symbol 2273 MovieClip Frame 2
stop();
Instance of Symbol 2273 MovieClip in Symbol 2276 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 2273 MovieClip in Symbol 2279 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 2107 MovieClip in Symbol 2284 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.concpot_use == 1) {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 2110 MovieClip in Symbol 2284 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
}
Instance of Symbol 2113 MovieClip in Symbol 2284 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 2116 MovieClip in Symbol 2284 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 2119 MovieClip in Symbol 2284 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.invis_buff == 1) {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 2123 MovieClip in Symbol 2284 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.furybuff == 1) {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 2148 MovieClip "equipment" in Symbol 2284 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.equip_usage == 1) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 2156 MovieClip "spellList" in Symbol 2284 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.spell_usage == 1) {
this._visible = true;
} else {
this._visible = false;
}
}
Instance of Symbol 2162 MovieClip "mailbox" in Symbol 2284 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.newmail == 1) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 2173 MovieClip "timebar" in Symbol 2284 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.time_use == 1) {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 2194 MovieClip "macro" in Symbol 2284 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 2234 MovieClip in Symbol 2284 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 2291 MovieClip Frame 15
removeMovieClip(this);
Instance of Symbol 2294 MovieClip in Symbol 2308 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this._width > ((_root.player_mana * 39) / _root.stats_mana)) {
this._width = this._width - 0.3;
}
}
Instance of Symbol 2296 MovieClip in Symbol 2308 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 2294 MovieClip in Symbol 2308 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this._width > ((_root.player_health * 39) / _root.stats_health)) {
this._width = this._width - 0.3;
}
}
Instance of Symbol 2294 MovieClip in Symbol 2308 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 2306 MovieClip in Symbol 2308 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 2325 MovieClip Frame 18
removeMovieClip(this);
Instance of Symbol 1194 MovieClip "itemDropMouse" in Symbol 2328 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.itemNum[1] == null) {
this.gotoAndStop(39);
} else {
this.gotoAndStop(_root.itemArraynum[1]);
}
}
Symbol 2345 MovieClip Frame 25
removeMovieClip(this);
Symbol 2361 MovieClip Frame 12
removeMovieClip(this);
Symbol 2379 MovieClip Frame 18
stop();
Symbol 2403 MovieClip Frame 1
stop();
Instance of Symbol 2361 MovieClip "atk" in Symbol 2403 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this._currentframe == this._totalframes) {
_parent.removeMovieClip();
}
}
Symbol 2403 MovieClip Frame 2
stop();
Instance of Symbol 2379 MovieClip "atk" in Symbol 2403 MovieClip Frame 2
onClipEvent (enterFrame) {
if (this._currentframe == this._totalframes) {
_parent.removeMovieClip();
}
}
Symbol 2403 MovieClip Frame 3
stop();
Instance of Symbol 2402 MovieClip "atk" in Symbol 2403 MovieClip Frame 3
onClipEvent (enterFrame) {
if (this._currentframe == this._totalframes) {
_parent.removeMovieClip();
}
}
Symbol 2418 MovieClip Frame 16
removeMovieClip(this);
Instance of Symbol 1544 MovieClip "enemyb" in Symbol 2431 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(5 + _root.monAnimArray[enemyCount + 1]);
}
Instance of Symbol 1544 MovieClip "enemya" in Symbol 2431 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(5 + _root.monAnimArray[enemyCount + 1]);
}
Instance of Symbol 1544 MovieClip "enemyb" in Symbol 2431 MovieClip Frame 10
onClipEvent (enterFrame) {
this.gotoAndStop(5 + _root.monAnimArray[1]);
}
Instance of Symbol 1544 MovieClip "enemya" in Symbol 2431 MovieClip Frame 10
onClipEvent (enterFrame) {
this.gotoAndStop(5 + _root.monAnimArray[1]);
}
Symbol 2431 MovieClip Frame 25
removeMovieClip(_parent);
Symbol 2436 MovieClip Frame 1
stop();
Symbol 2436 MovieClip Frame 2
if (_root.ambushCamera == 1) {
_root.centermap = 1;
}
Symbol 2436 MovieClip Frame 20
if (_root.ambushCamera == 1) {
delete _root.centermap;
}
Symbol 2436 MovieClip Frame 25
removeMovieClip(this);
Symbol 2438 MovieClip Frame 1
stop();
Symbol 2438 MovieClip Frame 2
stop();
Symbol 2438 MovieClip Frame 3
stop();
Symbol 2438 MovieClip Frame 4
stop();
Symbol 2438 MovieClip Frame 5
stop();
Symbol 2438 MovieClip Frame 6
stop();
Instance of Symbol 102 MovieClip in Symbol 2438 MovieClip Frame 6
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 2438 MovieClip Frame 7
stop();
Instance of Symbol 102 MovieClip in Symbol 2438 MovieClip Frame 7
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 2438 MovieClip Frame 8
stop();
Instance of Symbol 102 MovieClip in Symbol 2438 MovieClip Frame 8
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 2438 MovieClip Frame 9
stop();
Instance of Symbol 102 MovieClip in Symbol 2438 MovieClip Frame 9
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 2438 MovieClip Frame 10
stop();
Symbol 2438 MovieClip Frame 11
stop();
Symbol 2438 MovieClip Frame 12
stop();
Symbol 2438 MovieClip Frame 13
stop();
Symbol 2438 MovieClip Frame 14
stop();
Symbol 2438 MovieClip Frame 15
stop();
Symbol 2438 MovieClip Frame 16
stop();
Symbol 2438 MovieClip Frame 17
stop();
Symbol 2438 MovieClip Frame 18
stop();
Symbol 2438 MovieClip Frame 19
stop();
Symbol 2438 MovieClip Frame 20
stop();
Symbol 2438 MovieClip Frame 21
stop();
Symbol 2438 MovieClip Frame 22
stop();
Symbol 2438 MovieClip Frame 23
stop();
Symbol 2438 MovieClip Frame 24
stop();
Symbol 2438 MovieClip Frame 25
stop();
Symbol 2438 MovieClip Frame 26
stop();
Instance of Symbol 102 MovieClip in Symbol 2438 MovieClip Frame 26
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Instance of Symbol 102 MovieClip in Symbol 2438 MovieClip Frame 26
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 2438 MovieClip Frame 27
stop();
Instance of Symbol 102 MovieClip in Symbol 2438 MovieClip Frame 27
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 2438 MovieClip Frame 28
stop();
Instance of Symbol 102 MovieClip in Symbol 2438 MovieClip Frame 28
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 2438 MovieClip Frame 29
stop();
Instance of Symbol 102 MovieClip in Symbol 2438 MovieClip Frame 29
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 2438 MovieClip Frame 30
stop();
Instance of Symbol 102 MovieClip in Symbol 2438 MovieClip Frame 30
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 2438 MovieClip Frame 31
stop();
Symbol 2438 MovieClip Frame 32
stop();
Symbol 2438 MovieClip Frame 33
stop();
Symbol 2438 MovieClip Frame 34
stop();
Symbol 2438 MovieClip Frame 35
stop();
Symbol 2438 MovieClip Frame 36
stop();
Symbol 2438 MovieClip Frame 37
stop();
Symbol 2438 MovieClip Frame 38
stop();
Symbol 2438 MovieClip Frame 39
stop();
Symbol 2438 MovieClip Frame 40
stop();
Symbol 2438 MovieClip Frame 41
stop();
Symbol 2438 MovieClip Frame 42
stop();
Symbol 2438 MovieClip Frame 43
stop();
Symbol 2438 MovieClip Frame 44
stop();
Symbol 2438 MovieClip Frame 45
stop();
Symbol 2438 MovieClip Frame 46
stop();
Instance of Symbol 102 MovieClip in Symbol 2438 MovieClip Frame 46
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 2438 MovieClip Frame 47
stop();
Instance of Symbol 102 MovieClip in Symbol 2438 MovieClip Frame 47
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 2438 MovieClip Frame 48
stop();
Instance of Symbol 102 MovieClip in Symbol 2438 MovieClip Frame 48
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 2438 MovieClip Frame 49
stop();
Instance of Symbol 102 MovieClip in Symbol 2438 MovieClip Frame 49
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 2438 MovieClip Frame 50
stop();
Symbol 2438 MovieClip Frame 51
stop();
Symbol 2438 MovieClip Frame 52
stop();
Symbol 2438 MovieClip Frame 53
stop();
Symbol 2438 MovieClip Frame 54
stop();
Symbol 2438 MovieClip Frame 55
stop();
Symbol 2438 MovieClip Frame 56
stop();
Symbol 2438 MovieClip Frame 57
stop();
Symbol 2438 MovieClip Frame 58
stop();
Symbol 2438 MovieClip Frame 59
stop();
Symbol 2438 MovieClip Frame 60
stop();
Symbol 2438 MovieClip Frame 61
stop();
Symbol 2438 MovieClip Frame 62
stop();
Symbol 2438 MovieClip Frame 63
stop();
Symbol 2438 MovieClip Frame 64
stop();
Symbol 2438 MovieClip Frame 65
stop();
Symbol 2438 MovieClip Frame 66
stop();
Instance of Symbol 102 MovieClip in Symbol 2438 MovieClip Frame 66
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 2438 MovieClip Frame 67
stop();
Instance of Symbol 102 MovieClip in Symbol 2438 MovieClip Frame 67
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 2438 MovieClip Frame 68
stop();
Instance of Symbol 102 MovieClip in Symbol 2438 MovieClip Frame 68
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 2438 MovieClip Frame 69
stop();
Instance of Symbol 102 MovieClip in Symbol 2438 MovieClip Frame 69
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 2438 MovieClip Frame 70
stop();
Symbol 2438 MovieClip Frame 71
stop();
Symbol 2438 MovieClip Frame 72
stop();
Symbol 2438 MovieClip Frame 73
stop();
Symbol 2438 MovieClip Frame 74
stop();
Symbol 2438 MovieClip Frame 75
stop();
Symbol 2438 MovieClip Frame 76
stop();
Symbol 2438 MovieClip Frame 77
stop();
Symbol 2438 MovieClip Frame 78
stop();
Symbol 2438 MovieClip Frame 79
stop();
Symbol 2438 MovieClip Frame 80
stop();
Symbol 2438 MovieClip Frame 81
stop();
Symbol 2438 MovieClip Frame 82
stop();
Symbol 2438 MovieClip Frame 83
stop();
Symbol 2438 MovieClip Frame 84
stop();
Symbol 2438 MovieClip Frame 85
stop();
Symbol 2438 MovieClip Frame 86
stop();
Instance of Symbol 595 MovieClip in Symbol 2438 MovieClip Frame 86
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 2438 MovieClip Frame 87
stop();
Instance of Symbol 595 MovieClip in Symbol 2438 MovieClip Frame 87
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 2438 MovieClip Frame 88
stop();
Instance of Symbol 595 MovieClip in Symbol 2438 MovieClip Frame 88
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 2438 MovieClip Frame 89
stop();
Instance of Symbol 595 MovieClip in Symbol 2438 MovieClip Frame 89
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 2438 MovieClip Frame 90
stop();
Symbol 2438 MovieClip Frame 91
stop();
Symbol 2438 MovieClip Frame 92
stop();
Symbol 2438 MovieClip Frame 93
stop();
Symbol 2438 MovieClip Frame 94
stop();
Symbol 2438 MovieClip Frame 95
stop();
Symbol 2438 MovieClip Frame 96
stop();
Symbol 2438 MovieClip Frame 97
stop();
Symbol 2438 MovieClip Frame 98
stop();
Symbol 2438 MovieClip Frame 99
stop();
Symbol 2438 MovieClip Frame 100
stop();
Symbol 2438 MovieClip Frame 101
stop();
Symbol 2438 MovieClip Frame 102
stop();
Symbol 2438 MovieClip Frame 103
stop();
Symbol 2438 MovieClip Frame 104
stop();
Symbol 2438 MovieClip Frame 105
stop();
Symbol 2438 MovieClip Frame 106
stop();
Instance of Symbol 717 MovieClip in Symbol 2438 MovieClip Frame 106
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 2438 MovieClip Frame 107
stop();
Instance of Symbol 717 MovieClip in Symbol 2438 MovieClip Frame 107
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 2438 MovieClip Frame 108
stop();
Instance of Symbol 717 MovieClip in Symbol 2438 MovieClip Frame 108
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 2438 MovieClip Frame 109
stop();
Instance of Symbol 717 MovieClip in Symbol 2438 MovieClip Frame 109
onClipEvent (load) {
this.gotoAndStop(_root.shield);
}
onClipEvent (enterFrame) {
this.gotoAndStop(_root.shield);
}
Symbol 2438 MovieClip Frame 110
stop();
Symbol 2438 MovieClip Frame 111
stop();
Symbol 2438 MovieClip Frame 112
stop();
Symbol 2438 MovieClip Frame 113
stop();
Symbol 2438 MovieClip Frame 114
stop();
Symbol 2438 MovieClip Frame 115
stop();
Symbol 2438 MovieClip Frame 116
stop();
Symbol 2438 MovieClip Frame 117
stop();
Symbol 2438 MovieClip Frame 118
stop();
Symbol 2438 MovieClip Frame 119
stop();
Symbol 2438 MovieClip Frame 120
stop();
Symbol 2440 MovieClip Frame 1
stop();
Symbol 2440 MovieClip Frame 2
play();
Symbol 2440 MovieClip Frame 6
stop();
Symbol 2461 MovieClip Frame 23
removeMovieClip(this);
Symbol 2480 MovieClip Frame 38
stop();
Symbol 2497 MovieClip Frame 17
removeMovieClip(this);
Symbol 2522 MovieClip Frame 25
removeMovieClip(this);
Symbol 2537 MovieClip Frame 16
removeMovieClip(this);
Instance of Symbol 2552 MovieClip in Symbol 2553 MovieClip Frame 1
onClipEvent (enterFrame) {
this._alpha = Math.abs(Math.ceil(((_parent._parent._currentframe * 100) / _parent._parent._totalframes) - 100)) - 20;
}
Symbol 2561 Button
on (release) {
restart++;
}
Symbol 2562 Button
on (release) {
restart--;
}
Symbol 2564 Button
on (press) {
x = 1;
}
on (release, releaseOutside) {
delete x;
}
Symbol 2567 MovieClip Frame 1
stop();
stopAllSounds();
Instance of Symbol 2539 MovieClip in Symbol 2567 MovieClip Frame 1
onClipEvent (enterFrame) {
this._width = (_parent._currentframe * 240) / 434;
}
Symbol 2567 MovieClip Frame 2
play();
Instance of Symbol 2553 MovieClip in Symbol 2567 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 2567 MovieClip Frame 3
var go_sound = 0;
while (go_sound < 2) {
_root.soundbgm1.gotoAndStop(21);
go_sound++;
}
Instance of Symbol 2539 MovieClip in Symbol 2567 MovieClip Frame 435
onClipEvent (enterFrame) {
this._width = (_parent._currentframe * 240) / _parent._totalframes;
}
Instance of Symbol 2553 MovieClip in Symbol 2567 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 2567 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 2567 MovieClip Frame 437
stopAllSounds();
_root.soundbgm1.gotoAndStop(3);
Symbol 2567 MovieClip Frame 447
stop();
Instance of Symbol 2566 MovieClip in Symbol 2567 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 2567 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 2567 MovieClip Frame 465
delete _root.scene_load;
delete _root.recbgm;
delete _root.centermap;
_global.program = 4;
_root.r_desu = 1;
Symbol 2567 MovieClip Frame 466
removeMovieClip(this);