STORY   LOOP   FURRY   PORN   GAMES
• C •   SERVICES [?] [R] RND   POPULAR
Archived flashes:
229595
/disc/ · /res/     /show/ · /fap/ · /gg/ · /swf/P0001 · P2595 · P5190

<div style="position:absolute;top:-99px;left:-99px;"><img src="http://swfchan.com:57475/43689596?noj=FRM43689596-22DC" width="1" height="1"></div>

Vanilla Nexus RIP.swf

This is the info page for
Flash #238308

(Click the ID number above for more basic data on this flash file.)


ActionScript [AS1/AS2]
Combined Code
frame 1 { function rogueUninvis() { if (autoinvisible == null) { autoinvisible = 1; } if (autoinvisible == 1) { if (class == 1) { if (onScreenEnemy >= 1) { auto_invis = 1; } else { if (onScreenEnemy <= 0) { delete auto_invis; } } } } } } frame 1 { function bgartwork() { _root.coverbgplayer.swapDepths(31000); if (drawbg == null) { _root.char1._xscale = 200; duplicateMovieClip(_root.bgplayer, 'coverbgplayer', 92000); drawbg = 1; } if (_root.transition == 1) { _root.transitionMap.swapDepths(190000); _root.transitionMap._x = _root.char1._x; _root.transitionMap._y = _root.char1._y - 20; } else { _root.transitionMap._x = -999; } } } frame 1 { function ambushCam() { if (ambushCamera == 1) { if (_root.char1.hitTest(_root.enemy1) || _root.char1.hitTest(_root.enemy2) || _root.char1.hitTest(_root.enemy3) || _root.char1.hitTest(_root.enemy4)) { if (onswitch == null) { delete centermap; delete offswitch; onswitch = 1; } } else { if (offswitch == null) { centermap = 1; offswitch = 1; delete onswitch; } } } } } frame 1 { function reSize() { fscommand('fullscreen', false); fscommand('allowscale', false); if (poll == null) { _root._x = 0; _root._y = 0; _root._xscale = 200; _root._yscale = 200; poll = 1; pos = 1; } if (formerKeyboardInput == 1) { if (rez == null) { if (pos >= 2) { pos = 1; } else { ++pos; } if (pos == 1) { _root._x -= 120; _root._y -= 120; _root._xscale = 200; _root._yscale = 200; } if (pos == 2) { _root._x += 120; _root._y += 120; _root._xscale = 100; _root._yscale = 100; } rez = 1; } } else { delete rez; } } } frame 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(37) || Key.isDown(39) || Key.isDown(38) || Key.isDown(40) || musicOn == 1 || _root.m_command == 1) { delete resting; } if (player_health < stats_health || player_mana < stats_mana) { delete fullhm; if (!Key.isDown(37) && !Key.isDown(39) && !Key.isDown(38) && !Key.isDown(40) && musicOn == null && _root.m_command == null) { if (resting >= 60) { 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 += 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 += heal; delete fullh; } delete regenTimer; } else { regenTimer += 1; } } else { ++resting; } } } } } frame 1 { function game_spell_effects(map, c1, c2, c3, c4, c6, c7, c8, c9) { if (guioption == null) { guioption = 4; } 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.enemy1) { } 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.hud_mc1); 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; } 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; 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]); 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); 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'}; 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); 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 -= 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 += 5; _root[atkSpawn]._xscale = 120; _root[atkSpawn]._yscale = 120; } if (nmeHitTimerst >= 2) { enemyc_atkColor.setTransform(effectTransform5); colvratk = 100; colvratk2 = 100; _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 (effectst == null) { delete effectend; if (colvrb < -75) { effectst = 1; } else { if (stgm == null) { playerst.setTransform(effectTransform); pooleffect.setTransform(effectTransform); } else { if (_root.pool.hitTest(_root['zap' + itemuse]._x, _root['zap' + itemuse]._y + 25, true)) { pooleffect.setTransform(effectTransform2); } else { pooleffect.setTransform(effectTransform); } } enemyspellColor.setTransform(effectTransform2); colvrb -= 5; colvrc += 150; ++colset; if (colset >= 2) { colvrc = 100; colset = 0; } } } if (effectst == 1) { if (effectend == null) { playerst.setTransform(effectTransform4); pooleffect.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 += 5; colvrc = 100; } } } } frame 1 { function tutorial() { if (skip_tutorial == null) { if (Key.isDown(83)) { if (tut_input == 1) { } else { chat('<b>Skipping Tutorial ...</b>', 30, 5); tut_skip += 1; tut_input = 1; } } else { if (!Key.isDown(83)) { delete tut_input; } } if (tut_skip >= 1) { chat('<b>Tutorial Skipped[...]</b>', 30, 5); steps = 9; _root.tutorialwindow.gotoAndStop(1); delete stepconfirm; delete stepTimer; delete h_input; delete tut_timer; delete steps_tutorial; skip_tutorial = 1; } else {} } if (tut_timer >= 25 && skip_tutorial == null) { if (start_tutorial == null) { chat('<b>Tutorial Starting[O]</b>', 30, 5); chat('Press [S] to skip', 30, 5); start_tutorial = 1; } if (h_input == 1) { } else { if (steps == 8 && _root.outputX == 15) { steps_tutorial = 1; } if (steps == 7 && _root.outputX == 15 && musicOn == null) { steps_tutorial = 1; } if (steps == 6 && _root.outputX == 15) { steps_tutorial = 1; } if (steps == 5 && _root.outputX == 15) { steps_tutorial = 1; } if (steps == 4 && _root.outputX == 15) { steps_tutorial = 1; } if (steps == 3 && _root.outputX == 15) { steps = 4; } if (steps == 3 && _root.outputX == 21) { steps_tutorial = 1; } if (steps == 2 && _root.outputX == 14) { steps_tutorial = 1; } if (steps == null) { start_tutorial = 1; steps_tutorial = 1; } h_input = 1; } } else { delete h_input; ++tut_timer; } if (steps_tutorial == 1) { if (steps == 8) { _root.tutorialwindow.gotoAndStop(9); if (testmail == 1) { if (stepTimer >= 35) { steps = 9; _root.tutorialwindow.gotoAndStop(1); delete stepconfirm; delete stepTimer; delete h_input; delete tut_timer; delete steps_tutorial; } else { ++stepTimer; stepconfirm = 1; } } } if (steps == 7) { if (regenTimer >= 50) { testregen = 1; } _root.tutorialwindow.gotoAndStop(8); if (testregen == 1) { if (stepTimer >= 35) { steps = 8; _root.tutorialwindow.gotoAndStop(1); delete stepconfirm; delete stepTimer; delete h_input; delete tut_timer; delete steps_tutorial; } else { ++stepTimer; stepconfirm = 1; } } } if (steps == 6) { if (firstFury == 1) { testfury = 1; } _root.tutorialwindow.gotoAndStop(7); if (testfury == 1) { if (stepTimer >= 35) { steps = 7; _root.tutorialwindow.gotoAndStop(1); delete stepconfirm; delete stepTimer; delete h_input; delete tut_timer; delete steps_tutorial; } else { ++stepTimer; stepconfirm = 1; } } } if (steps == 5) { if (Key.isDown(49)) { testconcpot = 1; } _root.tutorialwindow.gotoAndStop(6); if (testconcpot == 1) { if (stepTimer >= 35) { steps = 6; _root.tutorialwindow.gotoAndStop(1); delete stepconfirm; delete stepTimer; delete h_input; delete tut_timer; delete steps_tutorial; } else { ++stepTimer; stepconfirm = 1; } } } if (steps == 4) { _root.tutorialwindow.gotoAndStop(5); if (firstAttack == 1) { if (stepTimer >= 35) { steps = 5; _root.tutorialwindow.gotoAndStop(1); delete stepconfirm; delete stepTimer; delete h_input; delete tut_timer; delete steps_tutorial; } else { ++stepTimer; stepconfirm = 1; } } } if (steps == 3) { _root.tutorialwindow.gotoAndStop(4); if (firsthitTest == 1) { if (stepTimer >= 35) { steps = 4; _root.tutorialwindow.gotoAndStop(1); delete stepconfirm; delete stepTimer; delete h_input; delete tut_timer; delete steps_tutorial; } else { ++stepTimer; stepconfirm = 1; } } } if (steps == 2) { _root.tutorialwindow.gotoAndStop(3); if (x_armor == 1 && b_armor == 1 && c_armor == 1) { if (stepTimer >= 35) { steps = 3; _root.tutorialwindow.gotoAndStop(1); delete stepconfirm; delete stepTimer; delete h_input; delete tut_timer; delete steps_tutorial; } else { ++stepTimer; stepconfirm = 1; } } if (Key.isDown(50) || _root.hud_mc1.macro.button2.hitTest(_root._xmouse, _root._ymouse, true) && m_input == 1) { x_armor = 1; } if (Key.isDown(51) || _root.hud_mc1.macro.button3.hitTest(_root._xmouse, _root._ymouse, true) && m_input == 1) { b_armor = 1; } if (Key.isDown(52) || _root.hud_mc1.macro.button4.hitTest(_root._xmouse, _root._ymouse, true) && m_input == 1) { c_armor = 1; } } if (steps == 1) { if (Key.isDown(37) || Key.isDown(39) || Key.isDown(38) || Key.isDown(40) || _root.m_command == 1) { if (stepTimer >= 35) { steps = 2; delete stepTimer; _root.tutorialwindow.gotoAndStop(1); delete steps_tutorial; delete stepconfirm; delete h_input; delete tut_timer; } else { stepTimer += 1; stepconfirm = 1; } } } if (steps == null) { steps = 1; _root.tutorialwindow.gotoAndStop(2); } } else { _root.tutorialwindow.gotoAndStop(1); } } } frame 1 { 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 mousetip() { if (_root['npc_window_' + windowNum]._currentframe == 3) { } 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.hud_mc1.equipment.item1.hitTest(_root._xmouse, _root._ymouse, true) || _root.hud_mc1.equipment.item2.hitTest(_root._xmouse, _root._ymouse, true) || _root.hud_mc1.equipment.item3.hitTest(_root._xmouse, _root._ymouse, true) || _root.hud_mc1.equipment.item4.hitTest(_root._xmouse, _root._ymouse, true) || _root.hud_mc1.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.hud_mc1.equipment.item1.hitTest(_root._xmouse, _root._ymouse, true)) { mouseinfo = 1; } if (_root.hud_mc1.equipment.item2.hitTest(_root._xmouse, _root._ymouse, true)) { mouseinfo = 2; } if (_root.hud_mc1.equipment.item3.hitTest(_root._xmouse, _root._ymouse, true)) { mouseinfo = 3; } if (_root.hud_mc1.equipment.item4.hitTest(_root._xmouse, _root._ymouse, true)) { mouseinfo = 4; } if (_root.hud_mc1.equipment.item5.hitTest(_root._xmouse, _root._ymouse, true)) { mouseinfo = 5; } } else { ++tooltiptimer; } } else {} } if (_root.hud_mc1.spellList.item1.hitTest(_root._xmouse, _root._ymouse, true) || _root.hud_mc1.spellList.item2.hitTest(_root._xmouse, _root._ymouse, true) || _root.hud_mc1.spellList.item3.hitTest(_root._xmouse, _root._ymouse, true) || _root.hud_mc1.spellList.item4.hitTest(_root._xmouse, _root._ymouse, true) || _root.hud_mc1.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.hud_mc1.spellList.item1.hitTest(_root._xmouse, _root._ymouse, true)) { mouseinfo = 1; } if (_root.hud_mc1.spellList.item2.hitTest(_root._xmouse, _root._ymouse, true)) { mouseinfo = 2; } if (_root.hud_mc1.spellList.item3.hitTest(_root._xmouse, _root._ymouse, true)) { mouseinfo = 3; } if (_root.hud_mc1.spellList.item4.hitTest(_root._xmouse, _root._ymouse, true)) { mouseinfo = 4; } if (_root.hud_mc1.spellList.item5.hitTest(_root._xmouse, _root._ymouse, true)) { mouseinfo = 5; } } else { ++tooltiptimer; } } else {} if (_root.hud_mc1.macro.button1.hitTest(_root._xmouse, _root._ymouse, true) || _root.hud_mc1.macro.button2.hitTest(_root._xmouse, _root._ymouse, true) || _root.hud_mc1.macro.button3.hitTest(_root._xmouse, _root._ymouse, true) || _root.hud_mc1.macro.button4.hitTest(_root._xmouse, _root._ymouse, true) || _root.hud_mc1.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.hud_mc1.macro.button1.hitTest(_root._xmouse, _root._ymouse, true)) { mouseinfo = 1; } if (_root.hud_mc1.macro.button2.hitTest(_root._xmouse, _root._ymouse, true)) { mouseinfo = 2; } if (_root.hud_mc1.macro.button3.hitTest(_root._xmouse, _root._ymouse, true)) { mouseinfo = 3; } if (_root.hud_mc1.macro.button4.hitTest(_root._xmouse, _root._ymouse, true)) { mouseinfo = 4; } if (_root.hud_mc1.macro.button5.hitTest(_root._xmouse, _root._ymouse, true)) { mouseinfo = 5; } } else { ++tooltiptimer; } } else { if (_root.hud_mc1.macro.button1.hitTest(_root._xmouse, _root._ymouse, true) || _root.hud_mc1.macro.button2.hitTest(_root._xmouse, _root._ymouse, true) || _root.hud_mc1.macro.button3.hitTest(_root._xmouse, _root._ymouse, true) || _root.hud_mc1.macro.button4.hitTest(_root._xmouse, _root._ymouse, true) || _root.hud_mc1.macro.button5.hitTest(_root._xmouse, _root._ymouse, true) || _root.hud_mc1.spellList.item1.hitTest(_root._xmouse, _root._ymouse, true) || _root.hud_mc1.spellList.item2.hitTest(_root._xmouse, _root._ymouse, true) || _root.hud_mc1.spellList.item3.hitTest(_root._xmouse, _root._ymouse, true) || _root.hud_mc1.spellList.item4.hitTest(_root._xmouse, _root._ymouse, true) || _root.hud_mc1.spellList.item5.hitTest(_root._xmouse, _root._ymouse, true) || _root.hud_mc1.equipment.item1.hitTest(_root._xmouse, _root._ymouse, true) || _root.hud_mc1.equipment.item2.hitTest(_root._xmouse, _root._ymouse, true) || _root.hud_mc1.equipment.item3.hitTest(_root._xmouse, _root._ymouse, true) || _root.hud_mc1.equipment.item4.hitTest(_root._xmouse, _root._ymouse, true) || _root.hud_mc1.equipment.item5.hitTest(_root._xmouse, _root._ymouse, true)) { delete removetooltip; } else { ++removetooltip; } if (removetooltip >= 25) { delete removetooltip; delete tooltiptimer; _root.mousetipmc._x = -999; } } } function modifiers() { if (Key.isDown(16) && Key.isDown(57)) { if (debug_input == 1) { } else { if (debugme == 1) { delete debugme; } else { debugme = 1; } debug_input = 1; } } else { delete debug_input; } treasureHistory1 = new Array(); treasureHistory2 = new Array(); if (armormod == null) { descA = new Array(); descA[1] = 'Raises Agi + 20'; descA[2] = 'Raises Might + 10'; descA[3] = 'Casts Poison'; descA[4] = 'Casts Ignite'; descA[5] = 'Casts Vex'; descA[6] = 'Armor Class -10'; descA[7] = 'Auto Healout'; descA[8] = 'Casts Scourge'; descA[9] = 'Casts Armor'; descA[10] = 'Casts Sanctuary'; descA[11] = 'Casts Valour'; descA[12] = 'Casts Paralyze'; descA[13] = 'Casts Sleep'; descA[14] = 'Casts Hellfire'; armormod = new Array(); armormod[1] = 'of Evasion'; armormod[2] = 'of Might'; armormod[3] = 'of Poison'; armormod[4] = 'of Ignite'; armormod[5] = 'of Vex'; armormod[6] = 'of Defense'; armormod[7] = 'of Life'; armormod[8] = 'of Scourge'; armormod[9] = 'of Armor'; armormod[10] = 'of Sanctuary'; armormod[11] = 'of Valour'; armormod[12] = 'of Paralyze'; armormod[13] = 'of Sleep'; armormod[14] = 'of Hellfire'; } if (weapmod == null) { descW = new Array(); descW[1] = 'Adds 10% Health'; descW[2] = 'Raises Accuracy'; descW[3] = 'Raises Might +35'; descW[4] = 'Raises Agi +50'; descW[5] = 'VitaAtk cost 50%'; descW[6] = 'VitaAtk does x3'; weapmod = new Array(); weapmod[1] = 'Vital '; weapmod[2] = 'Accurate '; weapmod[3] = 'Great '; weapmod[4] = 'Cunning '; weapmod[5] = 'Desperate '; weapmod[6] = 'Black '; wmod_stats = new Array(); wmod_stats[1] = _root.stats_health * 0.1; wmod_stats[2] = 35; wmod_stats[3] = 35; wmod_stats[4] = 50; wmod_stats[5] = 0.5; wmod_stats[6] = 3; } } function mvp() { if (itemchestArray == null) { itemchestDropy = new Array(); itemchestDropxs = new Array(); itemchestDropys = new Array(); itemchestDropx = new Array(); itemchestDropy = new Array(); itemchestDropys[1] = 300; itemchestDropys[2] = 90; itemchestDropys[3] = 100; itemchestDropy[1] = -60; itemchestDropy[2] = 50; itemchestDropy[3] = 10; itemchestArray = 1; } if (_root['item' + itemchestCount].chestAnim >= 5) { } else { ++_root['item' + itemchestCount].chestAnim; } _root['item' + itemchestCount]._xscale = 100; _root['item' + itemchestCount]._yscale = itemchestDropys[_root['item' + itemchestCount].chestAnim]; _root['item' + itemchestCount]._y += itemchestDropy[_root['item' + itemchestCount].chestAnim]; if (Key.isDown(17)) { if (makeItemchest == null) { if (itemchestCount >= 60) { delete itemchestCount; } else { if (itemchestCount == null) { ++itemchestCount; } else { chestAnim = 1; ++itemchestCount; } } _root.item_.duplicateMovieClip('item' + itemchestCount, 1200 + itemchestCount); _root['item' + itemchestCount].gotoAndStop(3); _root['item' + itemchestCount]._x = Math.floor(_root._xmouse / 24) * 24 + 12; _root['item' + itemchestCount]._y = Math.floor(_root._ymouse / 24) * 24 + 12; makeItemchest = 1; } } else { delete makeItemchest; } if (Key.isDown(17) && _root.debug == 1) { if (makeChest == null) { if (chestCount >= 60) { delete chestCount; } else { if (chestCount == null) { ++chestCount; } else { ++chestCount; } } _root.mvp_chest.duplicateMovieClip('normchest' + chestCount, 1200 + chestCount); _root['normchest' + chestCount]._x = Math.floor(_root._xmouse / 24) * 24 + 12; _root['normchest' + chestCount]._y = Math.floor(_root._ymouse / 24) * 24 + 12 + 8; makeChest = 1; } } else { delete makeChest; } if (Key.isDown(32) && _root.debugme == 1) { if (k_space == null) { ewbox = Math.ceil(Math.random() * (3 * floor / 35 + 3)); eabox = Math.ceil(Math.random() * (14 * floor / 35 + 3)); spweap = 1; founditemnum = 1; enemyitem = Math.ceil(Math.random() * floor) + 14; enemydeath = 1; chat('A:You found ' + weapmod[ewbox] + itemMsg[enemyitem] + ' ' + armormod[eabox], 30, 5); k_space = 1; } } else { ewbox = 0; eabox = 0; delete k_space; delete spweap; } weapreadout = weapmod[ItemModW[1]] + ' ' + weapmod[ItemModW[2]] + ' ' + weapmod[ItemModW[3]] + ' ' + weapmod[ItemModW[4]] + ' ' + weapmod[ItemModW[5]]; weapreadout2 = armormod[ItemModA[1]] + ' ' + armormod[ItemModA[2]] + ' ' + armormod[ItemModA[3]] + ' ' + armormod[ItemModA[4]] + ' ' + armormod[ItemModA[5]]; weapreadout3 = '[' + ItemModW[1] + ']' + '[' + ItemModW[2] + ']' + '[' + ItemModW[3] + ']' + '[' + ItemModW[4] + ']' + '[' + ItemModW[5] + ']'; weapreadout4 = '[' + ItemModA[1] + ']' + '[' + ItemModA[2] + ']' + '[' + ItemModA[3] + ']' + '[' + ItemModA[4] + ']' + '[' + ItemModA[5] + ']'; weapreadout5 = '[' + equipModW[1] + ']' + '[' + equipModW[2] + ']' + '[' + equipModW[3] + ']' + '[' + equipModW[4] + ']' + '[' + equipModW[5] + ']'; weapreadout6 = '[' + equipModA[1] + ']' + '[' + equipModA[2] + ']' + '[' + equipModA[3] + ']' + '[' + equipModA[4] + ']' + '[' + equipModA[5] + ']'; weapreadout7 = '[' + equipSwitchW[1] + ']' + '[' + equipSwitchW[2] + ']' + '[' + equipSwitchW[3] + ']' + '[' + equipSwitchW[4] + ']' + '[' + equipSwitchW[5] + ']'; weapreadout8 = '[' + equipSwitchA[1] + ']' + '[' + equipSwitchA[2] + ']' + '[' + equipSwitchA[3] + ']' + '[' + equipSwitchA[4] + ']' + '[' + equipSwitchA[5] + ']'; ultreadout1 = weapreadout3 + '<br>' + weapreadout4 + '<br>' + weapreadout5 + '<br>' + weapreadout6 + '<br>' + weapreadout7 + '<br>' + weapreadout8; if (m_input == 1) { chestCommand = 1; } else { if (kb_input == 1) { chestCommand = 1; } else { delete chestCommand; } } chestScan = chestCommand; while (chestScan < chestCount + 1) { if (_root['normchest' + chestScan]._currentframe < 6 && ignoreChest == null) { if (m_input == 1 && _root['normchest' + chestScan].hb.hitTest(_root._xmouse, _root._ymouse, true) && Math.abs(_root.char1._x - _root['normchest' + chestScan]._x) < 72 && Math.abs(_root.char1._y - _root['normchest' + chestScan]._y) < 72) { if (normchestoutput == null) { chat('<i>**Press MOUSE1 to open the Chest**</i>', 30, 5); _root['normchest' + chestScan].normchestoutput = 1; mouseReset(); delete m_input; } if (_root['normchest' + chestScan].normchestoutput2 == null && _root['normchest' + chestScan].normchestoutput == 1) { if (_root['normchest' + chestScan].normchestoutput5 == null && _root['normchest' + chestScan].norm_a_select == 1) { if (itemArraynum[1] == null || itemArraynum[2] == null || itemArraynum[3] == null || itemArraynum[4] == null || itemArraynum[5] == null) { spweap = 1; founditemnum = 1; enemyitem = Math.ceil(Math.random() * floor) + 14; enemydeath = 1; chat('MOUSE1:You found ' + weapmod[ewbox] + itemMsg[enemyitem] + ' ' + armormod[eabox], 30, 5); _root['normchest' + chestScan].gotoAndPlay(6); mouseReset(); delete _root['normchest' + chestScan].norm_a_select; _root['normchest' + chestScan].normchestoutput5 = 1; delete m_input; _root['normchest' + chestScan].normchestoutput2 = 1; } else { mouseReset(); chat('<b>Cannot Open, Your Inventory is Full</b> ', 30, 5); delete _root['normchest' + chestScan].normchestoutput3; delete _root['normchest' + chestScan].normchestoutput4; delete _root['normchest' + chestScan].normchestoutput5; delete _root['normchest' + chestScan].normchestoutput2; delete _root['normchest' + chestScan].norm_a_select; delete _root['normchest' + chestScan].normchestoutput; } } } if (_root['normchest' + chestScan].normchestoutput2 == null) { if (_root['normchest' + chestScan].normchestoutput5 == null && _root['normchest' + chestScan].chestoutput3 == null && _root['normchest' + chestScan].chestoutput4 == null) { mouseReset(); chat('<b><i>**You Won The Battle**</i></b>', 30, 5); chat('Do you Wish to Open the Chest?:', 30, 5); chat('MOUSE1) Yes', 30, 5); _root['normchest' + chestScan].norm_a_select = 1; mouseReset(); delete m_input; _root['normchest' + chestScan].normchestoutput2 = 1; } } } if (Math.abs(_root.char1._x - _root['normchest' + chestScan]._x) < 72 && Math.abs(_root.char1._y - _root['normchest' + chestScan]._y) < 72) { if (_root['normchest' + chestScan].normchestoutput == null) { chat('**Press (A) to open the Chest**', 30, 5); _root['normchest' + chestScan].normchestoutput = 1; } if (_root['normchest' + chestScan].normchestoutput2 == null && _root['normchest' + chestScan].normchestoutput == 1) { if (_root['normchest' + chestScan].normchestoutput5 == null && _root['normchest' + chestScan].norm_a_select == 1) { if (Key.isDown(65)) { if (itemArraynum[1] == null || itemArraynum[2] == null || itemArraynum[3] == null || itemArraynum[4] == null || itemArraynum[5] == null) { if (_root['normchest' + chestScan].Count == null) { _root['normchest' + chestScan].Count = 1; _root.collectChest = 1; } if (multiweap >= 1) { spweap = 1; founditemnum = 3; enemyitem = Math.ceil(Math.random() * floor) + 14; enemydeath = 1; chat('A:You found ' + weapmod[ewbox] + itemMsg[enemyitem] + ' ' + armormod[eabox], 30, 5); _root['normchest' + chestScan].gotoAndPlay(6); mouseReset(); delete _root['normchest' + chestScan].norm_a_select; _root['normchest' + chestScan].normchestoutput5 = 1; delete collectChest; delete multiweap; } else { delete collectChest; ++multiweap; } } else { mouseReset(); chat('<b>Cannot Open, Your Inventory is Full</b> ', 30, 5); delete _root['normchest' + chestScan].normchestoutput3; delete _root['normchest' + chestScan].normchestoutput4; delete _root['normchest' + chestScan].normchestoutput5; delete _root['normchest' + chestScan].normchestoutput2; delete _root['normchest' + chestScan].norm_a_select; delete _root['normchest' + chestScan].normchestoutput; } } } } if (Key.isDown(65)) { if (_root['normchest' + chestScan].normchestoutput2 == null) { if (_root['normchest' + chestScan].normchestoutput5 == null && _root['normchest' + chestScan].chestoutput3 == null && _root['normchest' + chestScan].chestoutput4 == null) { mouseReset(); chat('<b><i>**You Won The Battle**</i></b>', 30, 5); chat('Do you Wish to Open the Chest?:', 30, 5); chat('A) Yes', 30, 5); _root['normchest' + chestScan].normchestoutput2 = 1; _root['normchest' + chestScan].norm_a_select = 1; } } } else { delete _root['normchest' + chestScan].normchestoutput3; delete _root['normchest' + chestScan].normchestoutput4; delete _root['normchest' + chestScan].normchestoutput5; delete _root['normchest' + chestScan].normchestoutput2; } } else { delete _root['normchest' + chestScan].norm_a_select; delete _root['normchest' + chestScan].normchestoutput; } } ++chestScan; } if (_root.mvpchest1._currentframe < 6 && ignoreChest == null) { if (m_input == 1 && _root.mvpchest1.hitTest(_root._xmouse, _root._ymouse, true) && Math.abs(_root.char1._x - _root.mvpchest1._x) < 72 && Math.abs(_root.char1._y - _root.mvpchest1._y) < 72) { if (chestoutput == null) { chat('**Press MOUSE1 to open the Chest**', 30, 5); mouseReset(); chestoutput = 1; } if (chestoutput2 == null) { if (chestoutput5 == null && a_select == 1) { if (m_select == 1) { chat('1:STR + 2', 30, 5); _root.mvpchest1.gotoAndPlay(6); chestoutput5 = 1; mvp_str += 2; base_str += 2; mouseReset(); delete m_select; delete a_select; } } if (chestoutput4 == null && a_select == 1) { if (m_select == 2) { chat('2:AGI + 2', 30, 5); _root.mvpchest1.gotoAndPlay(6); chestoutput4 = 1; mvp_agi += 2; base_agi += 2; mouseReset(); delete m_select; delete a_select; } } if (chestoutput3 == null && a_select == 1) { if (m_select == 3) { chat('3:DEX + 2', 30, 5); _root.mvpchest1.gotoAndPlay(6); chestoutput3 = 1; mvp_dex += 2; base_dex += 2; mouseReset(); delete m_select; delete a_select; } } } if (m_input == 1 && _root.mvpchest1.hitTest(_root._xmouse, _root._ymouse, true) && Math.abs(_root.char1._x - _root.mvpchest1._x) < 72 && Math.abs(_root.char1._y - _root.mvpchest1._y) < 72) { if (chestoutput2 == null) { if (chestoutput5 == null && chestoutput3 == null && chestoutput4 == null) { chat('<b><i>**You have defeated an MVP**</b></i>', 30, 5); chat('Which Stat To Increase?', 30, 5); chat('1) STR+2 2) AGI+2 3) DEX+2', 30, 5); mouseReset(); chestoutput2 = 1; a_select = 1; } } } } if (_root.char1.hb.hitTest(_root.mvpchest1)) { if (chestoutput == null) { chat('**Press (A) to open the Chest**', 30, 5); chestoutput = 1; } if (chestoutput2 == null) { if (chestoutput5 == null && a_select == 1) { if (Key.isDown(65)) { chat('A:STR + 2', 30, 5); _root.mvpchest1.gotoAndPlay(6); chestoutput5 = 1; base_str += 2; mvp_str += 2; delete a_select; } } if (chestoutput4 == null && a_select == 1) { if (Key.isDown(83)) { chat('S:AGI + 2', 30, 5); _root.mvpchest1.gotoAndPlay(6); chestoutput4 = 1; base_agi += 2; mvp_agi += 2; delete a_select; } } if (chestoutput3 == null && a_select == 1) { if (Key.isDown(68)) { chat('D:DEX + 2', 30, 5); _root.mvpchest1.gotoAndPlay(6); chestoutput3 = 1; base_dex += 2; mvp_dex += 2; delete a_select; } } } if (Key.isDown(65) && _root.char1.hb.hitTest(_root.mvpchest1)) { if (chestoutput2 == null) { if (chestoutput5 == null && chestoutput3 == null && chestoutput4 == null) { chat('<b><i>**You have defeated an MVP**</b></i>', 30, 5); chat('Which Stat To Increase?', 30, 5); chat('A) STR+2 S) AGI+2 D) DEX+2', 30, 5); chestoutput2 = 1; a_select = 1; } } } else { delete chestoutput3; delete chestoutput4; delete chestoutput5; delete chestoutput2; } } else { delete a_select; delete chestoutput; } } if (_root.enemy1._x == null) { mvpicon._x = -99999; } setfloor = 3; setenc = 9; if (mvp_encounter >= setenc && _root.floor >= setfloor) { if (mvp_stats == null) { mvp_health = _root.player_health * 2; mvp_dam = 20; _root.enemy1.stat_health += _root.enemy1.stat_health + mvp_health; _root.enemy1.health = _root.enemy1.stat_health + mvp_health; mvp_stats = 1; } nmehealth = _root.enemy1.health; mvpicon._x = _root.enemy1._x; mvpicon._y = _root.enemy1._y; mvpcolor = new Color(_root.enemy1); 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); } else { 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); } } function mailsystem() { mt = new Date(); mailtime = mt.getMonth() + 1 + '/' + mt.getDate() + '/' + (mt.getYear() - 100 + 2000); if (mailload == null) { mailLog = new Array(); destroyL = new Array(); mailload = 1; mailletter = 1; newmail = 1; } if (mailletter == 1) { if (destroyL[1] == 1) { mailheader = mailname; mailname = 'Destroyed'; letter = new Array(); letter[1] = ['This letter has been destroyed']; while (rdstart < 19) { mailLog[rdstart] = letter[rdstart]; ++rdstart; } while (rdstart2 < 14) { mail_userLine = 13; mail('' + mailLog[rdstart2] + '', 30, 14); ++rdstart2; } } else { mailname = 'URGENT'; questmail = 'Are you sure you wish to destroy ' + mailname + ' ? '; mailheader = mailname + ' - mail '; letter = new Array(); letter[1] = ['------------URGENT----------------']; letter[2] = ['In the name of his Royal Majesty']; letter[3] = ['we hearby declare you a ' + _root.classoutput]; letter[4] = ['Of Prince Mhul\'s Azure Kingdom of']; letter[5] = ['Koguryo.']; letter[6] = ['Your Mission, should you choose to ']; letter[7] = ['accept it, is to find the Prince\'s ']; letter[8] = ['lost younger brother Yeojin ']; letter[9] = ['and bring those responsible to swift justice']; letter[10] = ['']; letter[11] = ['----------CONTROLS--------------']; letter[12] = ['A = ATTACK']; letter[13] = ['S = CLASS SKILL']; letter[14] = ['D = DROP ITEM']; letter[15] = ['F = SPELLS']; letter[16] = ['G = EQUIPMENT']; letter[17] = ['B = MAIL']; letter[18] = ['M = MAP']; letter[19] = ['Z = REWIND DEATH']; letter[20] = ['----------HOW TO PLAY----------']; letter[21] = ['Warrior:']; letter[22] = ['You can take the most damage']; letter[23] = ['You want to cast:']; letter[24] = ['1)Fury, Bless, Potence']; letter[25] = ['2) Flank and Backstab']; letter[26] = ['Your mana needs to be abve 90']; letter[27] = ['Rogue:']; letter[28] = ['You can deal the most damage']; letter[29] = ['Invis: is a damage multiplier']; letter[30] = ['Might: will raise your base damge']; letter[31] = ['Ambush attack the rear for (x2)']; letter[32] = ['----------HTP #2 ---------']; letter[33] = ['At greater levels you can cast']; letter[34] = ['All spells. You will level up upon']; letter[35] = ['Reaching an \'insight\' ']; letter[36] = ['At lower Health the game will slow']; letter[37] = ['down; consume health items']; letter[38] = ['to get out of this state.']; letter[39] = ['Bear\'s liver and Wine are the']; letter[40] = ['Cheapest items']; letter[41] = ['If you find notes, you may read']; letter[42] = ['Them to know more about the']; letter[43] = ['Game']; while (rdstart < letter.length) { mailLog[rdstart] = letter[rdstart]; ++rdstart; } while (rdstart2 < 14) { mail_userLine = 13; mail('' + mailLog[rdstart2] + '', 30, 14); ++rdstart2; } } } if (mailletter == 2) { if (destroyL[2] == 1) { mailheader = mailname; mailname = 'Destroyed'; letter = new Array(); letter[1] = ['This letter has been destroyed']; while (rdstart < 19) { mailLog[rdstart] = letter[rdstart]; ++rdstart; } while (rdstart2 < 14) { mail_userLine = 13; mail('' + mailLog[rdstart2] + '', 30, 14); ++rdstart2; } } else { mailname = 'Unknown #1'; questmail = 'Are you sure you wish to destroy ' + mailname + ' ? '; mailheader = mailname + ' - mail '; letter = new Array(); letter[1] = ['' + mailtime + ' ' + 'I have captured Yeojin']; letter[2] = ['I have yet to decipher the hidden']; letter[3] = ['message of the temple myself.']; letter[4] = ['No one shall know the secret before']; letter[5] = ['I and No one shall know the true']; letter[6] = ['allegiance of the merchants of']; letter[7] = ['Koguryo.']; letter[8] = ['Like any true general I have many']; letter[9] = ['allies on my side.']; letter[10] = ['To the lone ' + classoutput + ' That is tasked']; letter[11] = ['with the responsiblity of finding the']; letter[12] = ['Prince\'s younger brother Yeojin,']; letter[13] = ['To them I say:']; letter[14] = ['Misfortune is upon you, Even with the']; letter[15] = ['Sacred jewel Given to you by the']; letter[16] = ['Shamans of Koguryo, your death']; letter[17] = ['will be numerous, plentiful and']; letter[18] = ['painful']; letter[19] = ['' + mailtime + '']; while (rdstart < letter.length) { mailLog[rdstart] = letter[rdstart]; ++rdstart; } while (rdstart2 < 14) { mail_userLine = 13; mail('' + mailLog[rdstart2] + '', 30, 14); ++rdstart2; } } } if (mailletter == 3) { if (destroyL[3] == 1) { mailheader = mailname; mailname = 'Destroyed'; letter = new Array(); letter[1] = ['This letter has been destroyed']; while (rdstart < 19) { mailLog[rdstart] = letter[rdstart]; ++rdstart; } while (rdstart2 < 14) { mail_userLine = 13; mail('' + mailLog[rdstart2] + '', 30, 14); ++rdstart2; } } else { mailname = 'Unknown #2'; questmail = 'Are you sure you wish to destroy ' + mailname + ' ? '; mailheader = mailname + ' - mail '; letter = new Array(); letter[1] = ['' + mailtime + ' ' + 'The monsters']; letter[2] = ['that lurk the lower depths of the']; letter[3] = ['temple amuse me. It\'s been many']; letter[4] = ['months since I\'ve had the ability to']; letter[5] = ['conjure so many.']; letter[6] = ['My only regret is that I wasnt able']; letter[7] = ['to plan for the shamans to aid']; letter[8] = ['our hero by blessing him with their']; letter[9] = ['power']; letter[10] = ['The jewel is strong, but not strong']; letter[11] = ['enough. I\'ve only heard stories']; letter[12] = ['But they are only allowed to take']; letter[13] = ['anything on their person, with them']; letter[14] = ['When they travel back through time']; letter[15] = ['I am immune to such magic']; letter[16] = ['but the creatures I\'ve summoned']; letter[17] = ['will not be so lucky']; letter[18] = ['' + mailtime + '']; while (rdstart < letter.length) { mailLog[rdstart] = letter[rdstart]; ++rdstart; } while (rdstart2 < 14) { mail_userLine = 13; mail('' + mailLog[rdstart2] + '', 30, 14); ++rdstart2; } } } if (mailletter == 4) { if (destroyL[4] == 1) { mailheader = mailname; mailname = 'Destroyed'; letter = new Array(); letter[1] = ['This letter has been destroyed']; while (rdstart < 19) { mailLog[rdstart] = letter[rdstart]; ++rdstart; } while (rdstart2 < 14) { mail_userLine = 13; mail('' + mailLog[rdstart2] + '', 30, 14); ++rdstart2; } } else { mailname = 'Brothers pledge'; questmail = 'Are you sure you wish to destroy ' + mailname + ' ? '; mailheader = mailname + ' - mail '; letter = new Array(); letter[1] = ['To whom it may Concern:']; letter[2] = ['------------------------------']; letter[3] = ['The Crown seeks the service of the']; letter[4] = ['9 Brothers of the Black turtle']; letter[5] = ['To Aid the heroes of Koguryo']; letter[5] = ['As we continue the search for the']; letter[6] = ['Prince\'s younger brother']; letter[7] = ['------------------------------']; letter[8] = ['1) Be not deceitful when dealing']; letter[9] = ['With the owner of the shaman jewel']; letter[10] = ['2) Try to offer your wares at a']; letter[11] = ['reasonable discount']; letter[12] = ['3) Above all, inform the hero of']; letter[13] = ['Our recent discovery; that the']; letter[14] = ['Merchants that have occupied']; letter[15] = ['the temple are SPIES']; letter[16] = ['For the High sorcerer']; letter[17] = ['Has blended his followers']; letter[18] = ['From within our ranks']; letter[19] = ['' + mailtime + '']; while (rdstart < letter.length) { mailLog[rdstart] = letter[rdstart]; ++rdstart; } while (rdstart2 < 14) { mail_userLine = 13; mail('' + mailLog[rdstart2] + '', 30, 14); ++rdstart2; } } } if (mailletter == 5) { if (destroyL[5] == 1) { mailheader = mailname; mailname = 'Destroyed'; letter = new Array(); letter[1] = ['This letter has been destroyed']; while (rdstart < 19) { mailLog[rdstart] = letter[rdstart]; ++rdstart; } while (rdstart2 < 14) { mail_userLine = 13; mail('' + mailLog[rdstart2] + '', 30, 14); ++rdstart2; } } else { mailname = 'Shaman Jewel'; questmail = 'Are you sure you wish to destroy ' + mailname + ' ? '; mailheader = mailname + ' - mail '; letter = new Array(); letter[1] = [' WARNING']; letter[2] = ['------------------------------']; letter[3] = ['To the user of the time jewel']; letter[4] = ['that the shamans have bestowed']; letter[5] = ['upon thee. It is to my knowledge']; letter[5] = ['That upon excessive use of the jewel']; letter[6] = ['One may be caught in a time loop']; letter[7] = ['------------------------------']; letter[8] = ['To prevent this:']; letter[9] = ['1) Use the jewel to travel back']; letter[10] = ['To merchants ONLY.']; letter[11] = ['You do not want to be stuck']; letter[12] = ['Fighting the same monster over and']; letter[13] = ['over.']; letter[14] = ['2) Do not use the jewel to cheat']; letter[15] = ['immediate death, you risk the chance']; letter[16] = ['of being stuck into a wall and unable']; letter[17] = ['to get out!!!']; letter[18] = ['--- A Warning from']; letter[19] = ['--- The shaman of the time jewel']; letter[20] = ['' + mailtime + '']; while (rdstart < letter.length) { mailLog[rdstart] = letter[rdstart]; ++rdstart; } while (rdstart2 < 14) { mail_userLine = 13; mail('' + mailLog[rdstart2] + '', 30, 14); ++rdstart2; } } } if (mailletter == 6) { if (destroyL[6] == 1) { mailheader = mailname; mailname = 'Destroyed'; letter = new Array(); letter[1] = ['This letter has been destroyed']; while (rdstart < 19) { mailLog[rdstart] = letter[rdstart]; ++rdstart; } while (rdstart2 < 14) { mail_userLine = 13; mail('' + mailLog[rdstart2] + '', 30, 14); ++rdstart2; } } else { mailname = 'Chicken Recipe'; questmail = 'Are you sure you wish to destroy ' + mailname + ' ? '; mailheader = mailname + ' - mail '; letter = new Array(); letter[1] = ['1) Brush a pan with some cooking oil ']; letter[2] = ['2) Get a fire going']; letter[3] = ['3) In the pan: Add Chicken, some sprouts']; letter[4] = ['-------- unreadable ------------']; letter[5] = ['-------- unreadable ------------']; letter[5] = ['-------- unreadable ------------']; letter[6] = ['6) After cooking for 8 minutes on both ']; letter[7] = ['sides, remove from heat and serve.']; letter[8] = ['**Makes 2 servings**']; letter[9] = ['' + mailtime + '']; while (rdstart < 100) { mailLog[rdstart] = letter[rdstart]; ++rdstart; } while (rdstart2 < 14) { mail_userLine = 13; mail('' + mailLog[rdstart2] + '', 30, 14); ++rdstart2; } } } } function mail(mtext, mtextlimit, mtextmaxline) { mail_linOutput = mtext; if (mail_userline < mtextlimit) { delete maillog[mail_userline - mtextlimit]; delete maillog[mail_userLine]; --mail_ch_display; --mail_userLine; } else { if (mail_userline < mtextmaxline) { delete maillog[mail_userLine]; --mail_ch_display; --mail_userLine; } else { delete maillog[mail_userLine]; --mail_userLine; } } if (mail_userline >= mtextlimit) { delete maillog[mail_userline - mtextlimit]; ++mail_ch_display; ++mail_userLine; maillog[mail_userLine] += mail_linoutput; } else { if (mail_userline >= mtextmaxline) { ++mail_ch_display; ++mail_userLine; maillog[mail_userLine] += mail_linoutput; } else { ++mail_userLine; maillog[mail_userLine] += mail_linoutput; } } mail_ch_display = mail_userline - mtextmaxline; mailOutput = '<i>' + mailLog[1 + mail_ch_display] + '<br>' + '' + mailLog[2 + mail_ch_display] + '<br>' + '' + mailLog[3 + mail_ch_display] + '<br>' + '' + mailLog[4 + mail_ch_display] + '<br>' + '' + mailLog[5 + mail_ch_display] + '<br>' + '' + mailLog[6 + mail_ch_display] + '<br>' + '' + mailLog[7 + mail_ch_display] + '<br>' + '' + mailLog[8 + mail_ch_display] + '<br>' + '' + mailLog[9 + mail_ch_display] + '<br>' + '' + mailLog[10 + mail_ch_display] + '<br>' + '' + mailLog[11 + mail_ch_display] + '<br>' + '' + mailLog[12 + mail_ch_display] + '<br>' + '<i>'; } _root.onMouseMove = function () { if (tooltiptimer < 50) { delete tooltiptimer; delete removetooltip; } }; _root.onEnterFrame = function () {}; } frame 1 { 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 faceTarget_NME(obj, enemy) { if (faceEnemy_NME == 1) { delete faceEnemy_NME; if (enemy._x == null) { } else { if (Math.abs(obj._x - enemy._x) < 6) { if (obj._y > enemy._y) { obj.gotoandstop(15 + _root.monAnimArray[1]); } if (obj._y < enemy._y) { obj.gotoandstop(11 + _root.monAnimArray[1]); } } else { if (Math.abs(obj._y - enemy._y) < 6) { if (obj._x < enemy._x) { obj._xscale = -100; obj.gotoandstop(13 + _root.monAnimArray[1]); } if (obj._x > enemy._x) { obj._xscale = 100; obj.gotoandstop(13 + _root.monAnimArray[1]); } } 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 + _root.monAnimArray[1]); } if (obj._y > enemy._y) { obj.gotoandstop(14 + _root.monAnimArray[1]); } } } } } } } frame 1 { function removeTroom() { var removeChestItem = 1; while (removeChestItem < 60) { if (_root['item' + removeChestItem]._x == null) { } else { _root.chat('<b>Items left behind were Destroyed</b>', 30, 5); _root.kwisin_fury_mc.duplicateMovieClip('itemRemove2' + removeChestItem, 2560 + removeChestItem); _root['itemRemove2' + removeChestItem]._x = _root['item' + removeChestItem]._x; _root['itemRemove2' + removeChestItem]._y = _root['item' + removeChestItem]._y; _root.soundspell1.gotoAndStop(7); removeMovieClip(_root['item' + removeChestItem]); delete itemchestCount; } ++removeChestItem; } var clearChest = 1; while (clearChest < 60) { if (_root['normchest' + clearChest]._x == null) { } else { _root.chat('<b>Items left behind were Destroyed</b>', 30, 5); _root.kwisin_fury_mc.duplicateMovieClip('itemRemove' + clearChest, 1560 + clearChest); _root['itemRemove' + clearChest]._x = _root['normchest' + clearChest]._x; _root['itemRemove' + clearChest]._y = _root['normchest' + clearChest]._y; _root.soundspell1.gotoAndStop(7); removeMovieClip(_root['normchest' + clearChest]); delete chestCount; } ++clearChest; } } function treasureRoomCreate() { chestMapMemory = [[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]]; chestMapfiller = 1; while (chestMapFiller < 36) { chestradm1 = Math.ceil(Math.random() * 3); chestMapMemory[chestMapfiller + 1][14] = chestradm1; chestMapString = chestradm1 + ',' + chestradm2 + ',' + chestradm3 + ',' + chestradm4 + ',' + chestradm5 + ','; chestreadOut = chestMapMemory[1][14] + ' ' + chestMapMemory[2][14] + ' ' + chestMapMemory[3][14]; ++chestMapFiller; } } function randomdungeon() { if (dunstring_scan == null) { dunstring_scan = 1; } if (fillmelater == 1) { if (space_input == null) { delete dun_visfull[floor][dunmap * row + col]; space_input = 1; } } else { delete space_input; } if (_root.floorHigher == 1) { if (dun_change2 == null) { if (dunstring_scan >= _root.dun_output.length + 1) { delete radm1; delete dun_generator; dunstring_scan = 1; } else { if (dunstring_scan == null) { dunstring_scan = 1; } --dunstring_scan; _root.dmap = _root.dun_output.slice(dunstring_scan - 1, dunstring_scan); } dun_change2 = 1; } } else { delete dun_change2; } if (_root.floorLower == 1) { if (dun_change == null) { if (dunstring_scan >= _root.dun_output.length + 1) { delete radm1; delete dun_generator; dunstring_scan = 1; } else { if (dunstring_scan == null) { dunstring_scan = 1; } ++dunstring_scan; _root.dmap = _root.dun_output.slice(dunstring_scan - 1, dunstring_scan); } dun_change = 1; } } else { delete dun_change; } limit = 2; while (dun_generator < 5) { trace(radm5 + ' ' + radm1); if (radm1 == null) { radm1 = 1; radm2 = Math.ceil(Math.random() * limit); radm3 = Math.ceil(Math.random() * limit); radm4 = Math.ceil(Math.random() * limit); radm5 = Math.ceil(Math.random() * limit); radm6 = Math.ceil(Math.random() * limit); radm7 = Math.ceil(Math.random() * limit); radm8 = Math.ceil(Math.random() * limit); radm9 = Math.ceil(Math.random() * limit); radm10 = Math.ceil(Math.random() * limit); radm11 = Math.ceil(Math.random() * limit); radm12 = Math.ceil(Math.random() * limit); radm13 = Math.ceil(Math.random() * limit); radm14 = Math.ceil(Math.random() * limit); radm15 = Math.ceil(Math.random() * limit); radm16 = Math.ceil(Math.random() * limit); radm17 = Math.ceil(Math.random() * limit); radm18 = Math.ceil(Math.random() * limit); radm19 = Math.ceil(Math.random() * limit); radm20 = Math.ceil(Math.random() * limit); radm21 = Math.ceil(Math.random() * limit); radm22 = Math.ceil(Math.random() * limit); radm23 = Math.ceil(Math.random() * limit); radm24 = Math.ceil(Math.random() * limit); radm25 = Math.ceil(Math.random() * limit); radm26 = Math.ceil(Math.random() * limit); radm27 = Math.ceil(Math.random() * limit); radm28 = Math.ceil(Math.random() * limit); radm29 = Math.ceil(Math.random() * limit); radm30 = Math.ceil(Math.random() * limit); radm31 = Math.ceil(Math.random() * limit); radm32 = Math.ceil(Math.random() * limit); radm33 = Math.ceil(Math.random() * limit); radm34 = Math.ceil(Math.random() * limit); radm35 = Math.ceil(Math.random() * limit); } else { if (radm1 == radm2 || radm4 == radm5 || radm7 == radm8 || radm10 == radm11 || radm13 == radm14 || radm16 == radm17 || radm19 == radm20 || radm22 == radm23 || radm25 == radm26 || radm28 == radm29 || radm31 == radm32 || radm34 == radm35) { } } string1 = radm1 + '' + radm2 + '' + radm3 + '' + radm4 + '' + radm5 + '' + radm6 + '' + radm7 + '' + radm8 + '' + radm9 + '' + radm10 + '' + radm11 + '' + radm12 + '' + radm13 + '' + radm14 + '' + radm15 + '' + radm16 + '' + radm17 + '' + radm18 + '' + radm19 + '' + radm20 + '' + radm21 + '' + radm22 + '' + radm23 + '' + radm24 + '' + radm25 + '' + radm26 + '' + radm27 + '' + radm28 + '' + radm29 + '' + radm30 + '' + radm31 + '' + radm32 + '' + radm33 + '' + radm34 + '' + radm35; _root.dun_output = string1; _root.dmap = string1.slice(0, 1); ++dun_generator; } } function game_mouseControl(player, spd, atk, npc) { if (Key.isDown(38) || Key.isDown(40) || Key.isDown(37) || Key.isDown(39) || Key.isDown(65)) { kb_input = 1; delete m_command; } 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['enemy' + m_enem]._x; mousetarget._y = _root['enemy' + m_enem]._y - 50; } else { mousetarget._visible = false; } m_scan = m_command; while (m_scan < enemy_spawn) { if (_root['enemy' + m_scan].hitTest(_root._xmouse, _root._ymouse, false) && kb_input == null && m_input == 1) { ignoreChest = 1; } if (_root['enemy' + m_scan].hitTest(_root._xmouse, _root._ymouse, true) && kb_input == null && m_input == 1) { delete ignoreChest; if (inputclick == 1) { mousetarget._x = _root['enemy' + m_scan]._x; mousetarget._y = _root['enemy' + 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['enemy' + m_scan]._x; mousey = _root['enemy' + m_scan]._y; mousetarget._x = _root['enemy' + m_scan]._x; mousetarget._y = _root['enemy' + 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['enemy' + m_scan]._x; mousey = _root['enemy' + m_scan]._y; mousetarget._x = _root['enemy' + m_scan]._x; mousetarget._y = _root['enemy' + m_scan]._y - 50; inputclick = 1; } } } } if (_root['enemy' + m_scan].hitTest(player) && kb_input == null && m_click_attack == 1 && Math.abs(player._x - _root['enemy' + m_enem]._x) < 72 && Math.abs(player._y - _root['enemy' + m_enem]._y) < 72) { if (inputclick == 1) { mouseD = 1; m_attack = 1; } if (m_attack == null && m_ignore == null) { mouseD = 1; m_attack = 1; } } ++m_scan; } if (m_ignore == 1) { delete m_attack; } else { if (m_attack == 1) { if (m_strike == null) { 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); desuClock = 1; } atk._x = player._x; atk._y = player._y - 20; } else { player.gotoAndStop(player._currentframe + 5); if (s_ambush == 1) { ambush(player); desuClock = 1; } atk._x = player._x; atk._y = player._y - 20; } } m_strike = 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); desuClock = 1; } atk._x = player._x; atk._y = player._y - 20; } else { player.gotoAndStop(player._currentframe + 5); if (s_ambush == 1) { ambush(player); desuClock = 1; } atk._x = player._x; atk._y = player._y - 20; } } delete m_timer; } else { ++m_timer; } 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 && _root.char1.end == null && op_menu == null && rec >= 5 && inputclick == null && m_attack == null && npc_menu == null && !_root.hud_mc1.spell.hitTest(_xmouse, _ymouse, true) && !_root.hud_mc1.equip.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 -= spd; value2y = 0; } else { value2y = 1; } if (player._y <= mousey) { player._y += spd; value1y = 0; } else { value1y = 1; } if (player._x >= mousex) { player._x -= spd; value1x = 0; } else { value1x = 1; } if (player._x <= mousex) { 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 -= 4; } 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); } delete m_command; } } } } } } function game_minimap() { function minimap_x1(obj, vrb, array, vrb2) { if (vrb2 == 13 || vrb2 == 20 || vrb2 == 27 || vrb2 == 34 || vrb2 == 41 || vrb2 == 48 || vrb2 == 55 || vrb2 == 62 || vrb2 == 69 || vrb2 == 76) { obj.gotoAndStop(1); } else { obj.gotoAndStop(vrb); } if (array == null) { obj.mapro = '.'; } else { obj.mapro = 'T'; } } function minimap_x2(obj, vrb, array, vrb2) { if (vrb2 == 14 || vrb2 == 21 || vrb2 == 28 || vrb2 == 35 || vrb2 == 42 || vrb2 == 49 || vrb2 == 56 || vrb2 == 63 || vrb2 == 70 || vrb2 == 77) { obj.gotoAndStop(1); } else { obj.gotoAndStop(vrb); } if (array == null) { obj.mapro = '.'; } else { obj.mapro = 'T'; } } function minimap_x(obj, vrb, array, vrb2) { obj.gotoAndStop(vrb); if (array == null) { obj.mapro = '.'; } else { obj.mapro = 'T'; } } if (centermap == 1) { cmx = -(120 - _root.char1._x); cmy = -(120 - _root.char1._y); } else { delete cmx; delete cmy; } if (minimapst == null) { minimap = 3; minimapst = 1; } if (minimap == null) { while (minidrawx < 10) { _root.minimapmc.duplicateMovieClip('minimap_' + minidrawx, 9300 + minidrawx); _root.minimap_1._x = 200 + cmx; _root.minimap_1._y = 20 + cmy; _root.minimap_2._x = 210 + cmx; _root.minimap_2._y = 20 + cmy; _root.minimap_3._x = 220 + cmx; _root.minimap_3._y = 20 + cmy; _root.minimap_4._x = 200 + cmx; _root.minimap_4._y = 30 + cmy; _root.minimap_5._x = 210 + cmx; _root.minimap_5._y = 30 + cmy; _root.minimap_6._x = 220 + cmx; _root.minimap_6._y = 30 + cmy; _root.minimap_7._x = 200 + cmx; _root.minimap_7._y = 40 + cmy; _root.minimap_8._x = 210 + cmx; _root.minimap_8._y = 40 + cmy; _root.minimap_9._x = 220 + cmx; _root.minimap_9._y = 40 + cmy; ++minidrawx; } delete minidrawx; minimap = 1; } if (minimap == 1) { if (centermap == 1) { minimap = 2; loader._x = 0; loader._y = 0; } while (remdrawx < 77) { removeMovieClip(_root['minimap__' + remdrawx]); ++remdrawx; } vrb_1 = (_root.dunmap - 1) * _root.row + (_root.col - 1); vrb_4 = _root.dunmap * _root.row + (_root.col - 1); vrb_7 = (_root.dunmap + 1) * _root.row + (_root.col - 1); vrb_3 = (_root.dunmap - 1) * _root.row + (_root.col + 1); vrb_6 = _root.dunmap * _root.row + (_root.col + 1); vrb_9 = (_root.dunmap + 1) * _root.row + (_root.col + 1); vrb1 = _root.dun_visfull[_root.floor][(_root.dunmap - 1) * _root.row + (_root.col - 1)] + 1; vrb4 = _root.dun_visfull[_root.floor][_root.dunmap * _root.row + (_root.col - 1)] + 1; vrb7 = _root.dun_visfull[_root.floor][(_root.dunmap + 1) * _root.row + (_root.col - 1)] + 1; vrb3 = _root.dun_visfull[_root.floor][(_root.dunmap - 1) * _root.row + (_root.col + 1)] + 1; vrb6 = _root.dun_visfull[_root.floor][_root.dunmap * _root.row + (_root.col + 1)] + 1; vrb9 = _root.dun_visfull[_root.floor][(_root.dunmap + 1) * _root.row + (_root.col + 1)] + 1; vrb2 = _root.dun_visfull[_root.floor][(_root.dunmap - 1) * _root.row + _root.col] + 1; vrb5 = _root.dun_visfull[_root.floor][_root.dunmap * _root.row + _root.col] + 1; vrb8 = _root.dun_visfull[_root.floor][(_root.dunmap + 1) * _root.row + _root.col] + 1; minimap_x1(_root.minimap_1, vrb1, _root.dun_Array_itemx[(_root.dunmap - 1) * _root.row + (_root.col - 1)], vrb_1); minimap_x1(_root.minimap_4, vrb4, _root.dun_Array_itemx[_root.dunmap * _root.row + (_root.col - 1)], vrb_4); minimap_x1(_root.minimap_7, vrb7, _root.dun_Array_itemx[(_root.dunmap + 1) * _root.row + (_root.col - 1)], vrb_7); minimap_x2(_root.minimap_3, vrb3, _root.dun_Array_itemx[(_root.dunmap - 1) * _root.row + (_root.col + 1)], vrb_3); minimap_x2(_root.minimap_6, vrb6, _root.dun_Array_itemx[_root.dunmap * _root.row + (_root.col + 1)], vrb_6); minimap_x2(_root.minimap_9, vrb9, _root.dun_Array_itemx[(_root.dunmap + 1) * _root.row + (_root.col + 1)], vrb_9); minimap_x(_root.minimap_2, vrb2, _root.dun_Array_itemx[(_root.dunmap - 1) * _root.row + _root.col], null); minimap_x(_root.minimap_5, vrb5, _root.dun_Array_itemx[_root.dunmap * _root.row + _root.col], null); minimap_x(_root.minimap_8, vrb8, _root.dun_Array_itemx[(_root.dunmap + 1) * _root.row + _root.col], null); delete remdrawx; delete createmap; delete drawset; delete drawset2; delete remmap2; } if (minimap == 3) { if (remmap2 == null) { while (remdrawx2 < 77) { removeMovieClip(_root['minimap__' + remdrawx2]); ++remdrawx2; } remmap2 = 1; } delete remdrawx2; } if (minimap == 2) { if (centermap == 1) { loader._x = 0; loader._y = 0; } while (remdrawx < 10) { removeMovieClip(_root['minimap_' + remdrawx]); ++remdrawx; } if (createmap == null) { if (minidrawx == null) { minidrawx = 7; } while (minidrawx < 77) { _root.minimapmc.duplicateMovieClip('minimap__' + minidrawx, 9300 + minidrawx); if (drawset == 7) { drawset = 1; ++drawset2; } else { ++drawset; } _root['minimap__' + minidrawx]._x = drawset * 10 + 15 + cmx; _root['minimap__' + minidrawx]._y = drawset2 * 10 + 15 + cmy; ++minidrawx; } createmap = 1; } if (minimapdraw == null) { if (mapdraw == null) { mapdraw = 7; } while (mapdraw < 77) { vrb = _root.dun_visfull[_root.floor][mapdraw] + 1; _root['minimap__' + mapdraw].gotoAndStop(vrb); if (_root.dunmap * _root.row + _root.col == mapdraw) { _root['minimap__' + mapdraw].gotoAndStop(3); } else { if (_root.dun_Array_itemx[mapdraw] == null) { _root['minimap__' + mapdraw].mapro = '.'; } else { _root['minimap__' + mapdraw].mapro = 'T'; } } ++mapdraw; } minimapdraw = 1; } delete mapdraw; delete minimapdraw; delete remdrawx; delete minidrawx; } if (Key.isDown(77) || _root.hud_mc1.map.hitTest(_xmouse, _ymouse, true) && m_input == 1) { if (minput == 1) { } else { if (minimap == 3) { delete minimap; } else { if (minimap == 2) { loader._x = -999; minimap = 3; } else { if (minimap == 1) { minimap = 2; } } } minput = 1; } } else { delete minput; } } function game_hud(player, obj) { barDisplay(obj, player); } function barDisplay(obj, player) { if (_root.plHpDis > 1) { obj._visible = true; obj._x = player._x; obj._y = player._y - 45; } else { obj._visible = false; } } function chat(text, textLimit, textMaxLine) { if (userLog == null) { userLog = new Array(); z_Infotext_input = new Array(); } var linLimit = 30; linOutput = text; var count += 1; z_Infotext_input.push(name + '' + text + count); if (userLine >= textLimit) { delete userLog[userLine - textLimit]; ++ch_display; ++userLine; userLog[userLine] += linOutput; } else { if (userLine >= textMaxLine) { ++ch_display; ++userLine; userLog[userLine] += linOutput; } else { ++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_depthx(obj, player) { if (player._y > obj._y) { player.swapDepths(301); obj.swapDepths(201); } else { if (player._y < obj._y) { player.swapDepths(201); obj.swapDepths(301); } } } } frame 1 { function game_rewind(obj, enemy, map) { if (recordArrayCreate == null) { rootx = new Array(); rooty = new Array(); menux = new Array(); menuy = new Array(); playerx = new Array(); playery = new Array(); playercf = new Array(); playerxscale = new Array(); playerh = new Array(); playerdown = new Array(); playerdowndiag = new Array(); playerside = new Array(); playerupdiag = new Array(); playerup = new Array(); playerdowna = new Array(); playerdowndiaga = new Array(); playersidea = new Array(); playerupdiaga = new Array(); playerupa = new Array(); mapvis = [[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]]; mapvis2 = new Array(); mapx = new Array(); mapy = new Array(); mapcf = new Array(); dunm = new Array(); dmapa = new Array(); floora = new Array(); rowa = new Array(); cola = new Array(); poolacf = new Array(); enema1x = new Array(); enema1y = new Array(); enema1cf = new Array(); enema2x = new Array(); enema2y = new Array(); enema2cf = new Array(); enema3x = new Array(); enema3y = new Array(); enema3cf = new Array(); enema4x = new Array(); enema4y = new Array(); enema4cf = new Array(); center1cf = new Array(); center2cf = new Array(); center3cf = new Array(); center4cf = new Array(); center6cf = new Array(); center7cf = new Array(); center8cf = new Array(); center9cf = new Array(); sounditemcf = new Array(); soundcf = new Array(); soundspellcf = new Array(); onScreenAenemy = new Array(); recordArrayCreate = 1; } if (time_use == 1) { _root.coverbgplayer.gotoAndStop(2); } else { _root.coverbgplayer.gotoAndStop(1); } if (time_use == 1) { _root.centermap = 1; _root.lightbg.gotoAndStop(5); if (rwdupe >= 1) { duplicateMovieClip(_root.char1, 'rewindhero' + rwnum, 1500 + rwnum); _root['rewindhero' + rwnum].gotoAndStop(playercf[play_]); _root['rewindhero' + rwnum].down.gotoAndStop(playercf[play_]); _root['rewindhero' + rwnum].downdiag.gotoAndStop(playercf[play_]); _root['rewindhero' + rwnum].side.gotoAndStop(playercf[play_]); _root['rewindhero' + rwnum].updiag.gotoAndStop(playercf[play_]); _root['rewindhero' + rwnum].up.gotoAndStop(playercf[play_]); _root['rewindhero' + rwnum]._alpha = 50; if (rwnum >= 5) { if (rwrem >= 1) { delete rwrem; } else { ++rwrem; } removeMovieClip(_root['rewindhero' + rwnum]); delete rwnum; } else { ++rwnum; } delete rwdupe; } else { ++rwdupe; } if (_root.char1._x == null) { _root.go_screen1.removeMovieClip(); _root.char.duplicateMovieClip('char1', 200); } rewind = 1; _root._x = rootx[play_]; _root._y = rooty[play_]; _root.hud_mc1._x = menux[play_]; _root.hud_mc1._y = menuy[play_]; obj._x = playerx[play_]; obj._y = playery[play_]; obj.gotoAndStop(playercf[play_]); obj.down.gotoAndStop(playerdown[play_]); obj.downdiag.gotoAndStop(playerdowndiag[play_]); obj.side.gotoAndStop(playerside[play_]); obj.updiag.gotoAndStop(playerupdiag[play_]); obj.up.gotoAndStop(playerup[play_]); obj.downa.gotoAndStop(playerdowna[play_]); obj.downdiaga.gotoAndStop(playerdowndiaga[play_]); obj.sidea.gotoAndStop(playersidea[play_]); obj.updiaga.gotoAndStop(playerupdiaga[play_]); obj.upa.gotoAndStop(playerupa[play_]); obj._xscale = playerxscale[play_]; player_health = playerh[play_]; map._x = mapx[play_]; map._y = mapx[play_]; floor = floora[play_]; dunmap = dunm[play_]; row = rowa[play_]; col = cola[play_]; dmap = dmapa[play_]; map.gotoAndStop(dunmap * row + col + (dmap - 1) * 70); pool.gotoAndStop(poolacf[play_]); if (enema1x[play_] == null) { removeMovieClip(_root.enemy1); delete spawn; } else { if (spawn == null) { duplicateMovieClip(_root.enemy, 'enemy1', 251); _root.enemy1.gotoAndStop(enema1cf[play_]); spawn = 1; } } if (enema2x[play_] == null) { removeMovieClip(_root.enemy2); delete spawn2; } else { if (spawn2 == null) { duplicateMovieClip(_root.enemy, 'enemy2', 252); _root.enemy1.gotoAndStop(enema2cf[play_]); spawn2 = 1; } } if (enema3x[play_] == null) { removeMovieClip(_root.enemy3); delete spawn3; } else { if (spawn3 == null) { duplicateMovieClip(_root.enemy, 'enemy3', 253); _root.enemy1.gotoAndStop(enema3cf[play_]); spawn3 = 1; } } if (enema4x[play_] == null) { removeMovieClip(_root.enemy4); delete spawn4; } else { if (spawn4 == null) { duplicateMovieClip(_root.enemy, 'enemy4', 254); _root.enemy4.gotoAndStop(enema4cf[play_]); spawn2 = 1; } } enemy1._x = enema1x[play_]; enemy1._y = enema1y[play_]; enemy1.gotoAndStop(enema1cf[play_]); enemy2._x = enema2x[play_]; enemy2._y = enema2y[play_]; enemy2.gotoAndStop(enema2cf[play_]); enemy3._x = enema3x[play_]; enemy3._y = enema3y[play_]; enemy3.gotoAndStop(enema3cf[play_]); enemy4._x = enema4x[play_]; enemy4._y = enema4y[play_]; enemy4.gotoAndStop(enema4cf[play_]); center1.gotoAndStop(center1cf[play_]); center2.gotoAndStop(center2cf[play_]); center3.gotoAndStop(center3cf[play_]); center4.gotoAndStop(center4cf[play_]); center6.gotoAndStop(center6cf[play_]); center7.gotoAndStop(center7cf[play_]); center8.gotoAndStop(center8cf[play_]); center9.gotoAndStop(center9cf[play_]); mapvis2[floora[play_]][dunm[play_] * rowa[play_] + cola[play_]] = null; dun_visfull[floor][dunmap * row + col] = mapvis2[floor][dunmap * row + col]; revsounditem.gotoAndStop(sounditemcf[play_]); revsound.gotoAndStop(soundcf[play_]); revsoundspell.gotoAndStop(soundspellcf[play_]); onScreenEnemy = onScreenAenemy[play_]; if (play_ == null) { play_ = rec - 3; play_tot = rec; } play_ro = pro_m + ':' + pro_ts; p_mast = Math.floor(play_ / 60 / 999); pro_m = Math.floor(play_ / 60); pro_ts = Math.floor(play_ - pro_m * 60); pro_ms = (ms.toString()).slice(4, 7); ms = Math.abs(play_ * 1 / play_tot); if (Key.isDown(39)) { if (play_ >= play_tot - 3) { play_ = play_tot - 3; } else { if (Key.isDown(17)) { play_ += 10; } else { play_ += 1; } } } if (Key.isDown(37)) { if (play_ <= 3) { play_ = 3; } else { if (Key.isDown(17)) { play_ -= 10; } else { play_ -= 1; } } } delete rec; } else { if (_root.r_desu == 1) { delete _root.centermapst; _root.centermap = 1; delete _root.r_desu; } if (rec == null) { stopAllSounds(); if (_root.floor == null) { _root.soundbgm.duplicateMovieClip('soundbgm1', 104); _root.soundbgm1.gotoAndStop(3); _root.soundbgm1.gotoAndStop(1); } else { _root.soundbgm.duplicateMovieClip('soundbgm1', 104); _root.soundbgm1.gotoAndStop(_root.floor + 2); _root.soundbgm1.gotoAndStop(1); } recbgm = 1; removeMovieClip(_root.rewindhero); removeMovieClip(_root.rewindhero1); removeMovieClip(_root.rewindhero2); removeMovieClip(_root.rewindhero3); removeMovieClip(_root.rewindhero4); removeMovieClip(_root.rewindhero5); removeMovieClip(_root.rewindhero6); removeMovieClip(_root.rewindhero7); removeMovieClip(_root.rewindhero8); removeMovieClip(_root.rewindhero9); removeMovieClip(_root.rewindhero10); rec = 1; } delete rewind; rootx[rec] = _root._x; rooty[rec] = _root._y; menux[rec] = _root.hud_mc1._x; menuy[rec] = _root.hud_mc1._y; playerx[rec] = obj._x; playery[rec] = obj._y; playercf[rec] = obj._currentframe; playerxscale[rec] = obj._xscale; playerh[rec] = player_health; playerdown[rec] = obj.down._currentframe; playerdowndiag[rec] = obj.downdiag._currentframe; playerside[rec] = obj.side._currentframe; playerupdiag[rec] = obj.updiag._currentframe; playerup[rec] = obj.up._currentframe; playerdowna[rec] = obj.downa._currentframe; playerdowndiaga[rec] = obj.downdiaga._currentframe; playersidea[rec] = obj.sidea._currentframe; playerupdiaga[rec] = obj.updiaga._currentframe; playerupa[rec] = obj.upa._currentframe; mapvis2[floora[rec]][dunm[rec] * rowa[rec] + cola[rec]] = 1; mapx[rec] = map._x; mapy[rec] = map._y; mapcf[rec] = map._currentframe; floora[rec] = floor; dunm[rec] = dunmap; rowa[rec] = row; cola[rec] = col; poolacf[rec] = pool._currentframe; dmapa[rec] = dmap; enema1x[rec] = enemy1._x; enema1y[rec] = enemy1._y; enema1cf[rec] = enemy1._currentframe; enema2x[rec] = enemy2._x; enema2y[rec] = enemy2._y; enema2cf[rec] = enemy2._currentframe; enema3x[rec] = enemy3._x; enema3y[rec] = enemy3._y; enema3cf[rec] = enemy3._currentframe; enema4x[rec] = enemy4._x; enema4y[rec] = enemy4._y; enema4cf[rec] = enemy4._currentframe; center1cf[rec] = center1._currentframe; center2cf[rec] = center2._currentframe; center3cf[rec] = center3._currentframe; center4cf[rec] = center4._currentframe; center6cf[rec] = center6._currentframe; center7cf[rec] = center7._currentframe; center8cf[rec] = center8._currentframe; center9cf[rec] = center9._currentframe; sounditemcf[rec] = sounditem._currentframe; soundcf[rec] = sound._currentframe; soundspellcf[rec] = soundspell._currentframe; onScreenAenemy[rec] = onScreenEnemy; if (_root.player_health >= 1) { ++rec; } delete play_; } } function game_slomo(obj, enemy) { 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); } } if (desuClocktimer >= 50) { delete desuClocktimer; delete desuClock; } else { if (desuClock == 1) { desuClocktimer += 1; } } if (steps_tutorial == 1) { if (steps == 7) { game_speed = 1; } else { game_speed = 3; } } else { if (player_health <= 1) { game_speed = 1; } 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) { game_speed = 2; if (rewind == null) { _root.lightbg.gotoAndStop(3); } } } if (desuClock == 1) { game_speed = 2; } else { if (player_health > stats_health * 0.4) { game_speed = 1; _root.lightbg.gotoAndStop(2); } } } } if (game_speed == 1 && gs_switch == 1) { 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(); ++ptmc; } delete gs_switch; } if (game_speed == 2 || game_speed == 3) { gs_switch = 1; 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 (!Key.isDown(38) && !Key.isDown(37) && !Key.isDown(39) && !Key.isDown(40) && !Key.isDown(65) && !Key.isDown(83)) { delete p_frame; } if (particle_slomoTimer >= 5 * 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); ++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(); ++ptmc; } ++particle_slomoTimer; } if (player_slomoTimer >= 5 * 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_hitDetect(obj, atk, enemy) { hitDetect(obj, atk, enemy); } function game_enemy(obj, spd, auto, aspd, player, x) { enemy_attack(obj, auto, aspd, player, x); enemy_move(obj, spd, player, x); } function enemy_attack(obj, auto, aspd, player, x) { 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 (_root.plHpDis == null) { } else { if (_root.plHpDis > 1) { --_root.plHpDis; } else { delete _root.plHpDis; } } if (player_health <= 1) { if (gameover == 1) { } else { _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); removeMovieClip(player); 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); gameover = 1; } } else { if (gameover == null) { } else { delete gameover; } } if (obj.enemycoolDown < 1) { delete obj.enemycoolDown; } else { obj.enemycoolDown -= 1; } if (obj.hb.hitTest(player.hb) && obj.stun == null && obj.enemycoolDown == null) { ++obj.enemTimer; if (obj.enemTimer >= aspd * game_speed) { delete obj.input; delete obj.enemTimer; } if (obj.input == null) { if (obj._currentframe > 10 + monAnimArray[x]) { obj.gotoAndStop(obj._currentframe - 5); obj.gotoAndStop(obj._currentframe + 5); } else { if (obj._currentframe < 5 + monAnimArray[x]) { 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 (Key.isDown(83) || 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 = 25 - (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) { _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!') { 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); removeMovieClip(player); 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 -= playerDamage; } } obj.input = 1; } } else { delete obj.input; } } function enemy_move(obj, spd, player, x) { if (obj.lx == null) { obj.gotoAndStop(obj._currentframe + 5); obj.lx = 1; } if (class == 1) { s_ambush = 1; } if (player.hb.hitTest(obj.hb)) { } else { if (obj.atk == 1 && obj.stun == null) { if (obj._x > player._x) { obj._xscale = 100; if (Math.abs(obj._y - player._y) < 20) { obj.gotoAndStop(3 + monAnimArray[x]); obj._x -= spd; } else { if (Math.abs(obj._x - player._x) < 20) { if (obj._y > player._y) { obj.gotoAndStop(5 + monAnimArray[x]); obj._y -= spd; } else { obj.gotoAndStop(1 + monAnimArray[x]); obj._y += spd; } } else { if (obj._y > player._y) { obj.gotoAndStop(4 + monAnimArray[x]); obj._y -= spd; obj._x -= spd; } else { if (obj._y < player._y) { obj.gotoAndStop(2 + monAnimArray[x]); obj._y += spd; obj._x -= spd; } } } } } if (obj._x < player._x) { obj._xscale = -100; if (Math.abs(obj._y - player._y) < 10) { obj.gotoAndStop(3 + monAnimArray[x]); obj._x += spd; } else { if (obj._y > player._y) { obj.gotoAndStop(4 + monAnimArray[x]); obj._y -= spd; obj._x += spd; } else { if (obj._y < player._y) { obj.gotoAndStop(2 + monAnimArray[x]); obj._y += spd; obj._x += spd; } } } } } } } function game_items(char, item) { function dropEngine(value) { _root.t = _root.hud_mc1.macro._currentframe; if (dropitem == null) { if (_root.hud_mc1.macro._currentframe == value) { if (ItemNum[value] <= 1) { delete ItemArraynum[value]; delete ItemNum[value]; } else { ItemNum[value] -= 1; } } dropht = 1; useitem = 1; arraynum = 1; } } function useEngine(value) { _root.t = _root.hud_mc1.macro._currentframe; if (useitem == null) { if (_root.hud_mc1.macro._currentframe == value) { 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; } ItemNum[value] -= 1; if (ItemNum[value] <= 0) { delete ItemArraynum[value]; delete ItemNum[value]; } } dropht = 1; useitem = 1; arraynum = 1; } } function Inventory(KEY1, KEY2, KEY3, KEY4, KEY5, KEY6) { if (Key.isDown(KEY1)) { if (a_key == null) { if (item.hitTest(char)) { arraynum = 1; } else { keys = 1; useEngine(keys); } a_key = 1; } } else { delete a_key; delete useitem; } if (Key.isDown(KEY2)) { if (b_key == null) { if (item.hitTest(char)) { arraynum = 2; } else { keys = 2; useEngine(keys); } b_key = 1; } } else { delete b_key; delete useitem; } if (Key.isDown(KEY3)) { if (c_key == null) { if (item.hitTest(char)) { arraynum = 3; } else { keys = 3; useEngine(keys); } c_key = 1; } } else { delete c_key; delete useitem; } if (Key.isDown(KEY4)) { if (x_key == null) { if (item.hitTest(char)) { arraynum = 4; } else { keys = 4; useEngine(keys); } x_key = 1; } } else { delete x_key; delete useitem; } if (Key.isDown(KEY5)) { if (e_key == null) { if (item.hitTest(char)) { arraynum = 5; } else { keys = 5; useEngine(keys); } e_key = 1; } } else { delete e_key; delete useitem; } if (Key.isDown(KEY6)) { if (d_key == null) { if (ItemNum[1] < 1) { } else { if (item.hitTest(char)) { arraynum = 1; } else { dropEngine(keys); } d_key = 1; } } } else { delete d_key; delete dropitem; } } function goldcollector() { if (enemyitem == 2) { gold += itemGold[1]; _root.sounditem1.gotoAndStop(3); chat(itemMsg[enemyItem] + '(' + itemGold[1] + ')', 30, 5); delete enemyitem; } else { if (enemyitem == 3) { gold += itemGold[2]; _root.sounditem1.gotoAndStop(3); chat(itemMsg[enemyItem] + '(' + itemGold[2] + ')', 30, 5); delete enemyitem; } else { if (enemyitem == 5) { gold += itemGold[3]; _root.sounditem1.gotoAndStop(3); chat(itemMsg[enemyItem] + '(' + itemGold[3] + ')', 30, 5); delete enemyitem; } else { if (enemyitem == 10) { gold += itemGold[4]; _root.sounditem1.gotoAndStop(3); chat(itemMsg[enemyItem] + '(' + itemGold[4] + ')', 30, 5); delete enemyitem; } } } } } function macrofiller() { if (itemArraynum[1] == enemyitem) { itemNum[1] += 1; _root.sounditem1.gotoAndStop(3); chat(itemMsg[enemyItem] + '(' + itemNum[1] + ')', 30, 5); } else { if (itemArraynum[2] == enemyitem) { itemNum[2] += 1; _root.sounditem1.gotoAndStop(3); chat(itemMsg[enemyItem] + '(' + itemNum[2] + ')', 30, 5); } else { if (itemArraynum[3] == enemyitem) { itemNum[3] += 1; _root.sounditem1.gotoAndStop(3); chat(itemMsg[enemyItem] + '(' + itemNum[3] + ')', 30, 5); } else { if (itemArraynum[4] == enemyitem) { itemNum[4] += 1; _root.sounditem1.gotoAndStop(3); chat(itemMsg[enemyItem] + '(' + itemNum[4] + ')', 30, 5); } else { if (itemArraynum[5] == enemyitem) { itemNum[5] += 1; _root.sounditem1.gotoAndStop(3); chat(itemMsg[enemyItem] + '(' + itemNum[5] + ')', 30, 5); } else { if (arraynum < 6) { if (enemyitem == 2 || enemyitem == 3 || enemyitem == 5 || enemyitem == 10) { goldcollector(); } else { itemArraynum[arraynum] = enemyitem; itemNum[arraynum] += 1; _root.sounditem1.gotoAndStop(3); chat(itemMsg[enemyItem] + '(' + itemNum[arraynum] + ')', 30, 5); } } else { goldcollector(); } } } } } } } 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 potionuse() { _root.purge_effect_mc.duplicateMovieClip('purge' + itemuse, 990 + itemuse); if (_root['purge' + itemuse].lx == null) { _root['purge' + itemuse]._x = char._x; _root['purge' + itemuse]._y = char._y - 20; _root.sounditem1.gotoAndStop(4); _root['purge' + itemuse].gotoAndPlay(1); _root['purge' + itemuse].lx = 1; } } if (beef_use == 1) { chat('You ate Beef', 30, 5); if (player_health >= stats_health) { player_health = stats_health; } var i; for (;;) { if (!(player_health < stats_health && i < 50)) break; 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; } } 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 (keys == null) { keys = 1; } Inventory(49, 50, 51, 52, 53, 68); itembox1 = itemNum[1]; itembox2 = itemNum[2]; itembox3 = itemNum[3]; itembox4 = itemNum[4]; itembox5 = itemNum[5]; if (itemArray == null) { itemArraynum = new Array(); itemArray = new Array(); itemNum = 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'; itemMsg[5] = 'Coins100'; itemMsg[6] = 'Concentration potion'; itemMsg[7] = 'Dark Amber'; itemMsg[8] = 'Purple Ring'; itemMsg[9] = 'Amber'; itemMsg[10] = '1 Coin'; itemMsg[11] = 'Blue Ring'; itemMsg[12] = 'Tiger Meat'; itemMsg[13] = 'Red potion'; itemMsg[14] = 'Wooden saber'; itemMsg[15] = 'Sword'; itemMsg[16] = 'Moonblade'; itemMsg[17] = 'Dagger'; itemMsg[18] = 'Blood'; itemMsg[19] = 'Nimble Blade'; itemMsg[20] = 'Star Scale Mail'; itemMsg[21] = 'Moon Scale Mail'; itemMsg[22] = 'Sun Scale Mail'; itemMsg[23] = 'Star Armor'; itemMsg[24] = 'Moon Armor'; itemMsg[25] = 'Sun Armor'; itemMsg[26] = 'Titanium Glove'; itemMsg[27] = 'Whisper Bracelet'; itemMsg[28] = 'Tall Shield'; itemMsg[29] = 'Bamboo Shield'; itemMsg[30] = 'Steel Shield'; itemMsg[31] = 'Hide Shield'; itemMsg[32] = 'Brass Shield'; itemMsg[33] = 'Titanium Shield'; itemMsg[34] = 'Light Buckler'; itemMsg[35] = 'Basic Buckler'; itemMsg[36] = 'Heavy Buckler'; itemMsg[37] = 'Amber Buckler'; itemMsg[38] = 'Enchanted Buckler'; itemMsg[39] = 'Empty'; itemFillOrder = newArray(); itemNum[1] = 5; itemArraynum[1] = 6; itemNum[2] = 1; itemArraynum[2] = 20; itemNum[3] = 10; itemArraynum[3] = 13; itemNum[4] = 20; itemArraynum[4] = 1; } if (arraynum == null) { arraynum = 0; } if (enemydeath == 1) { if (arraynum >= 6) { arrayfiller(); macrofiller(); } else { arrayfiller(); macrofiller(); } delete enemydeath; } } function charshadowfunc() { if (high == null) { _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 hitDetect(obj, atk, enemy) { if (enemy._x > 240) { enemy._x = 0; enemy._y = Math.ceil(Math.random() * 240); } if (enemy._x < 0) { enemy._x = 240; } if (enemy._y > 240) { enemy._y = 0; enemy._x = Math.ceil(Math.random() * 240); } if (enemy._y < 0) { enemy._y = 240; } if (enemy.atk == null) { if (enemy._x > 240) { enemy._x = 0; } if (enemy._x < 0) { enemy._x = 240; } if (enemy._y > 240) { enemy._y = 0; } if (enemy._y < 0) { enemy._y = 240; } spd = 2.5; if (enemy.move == 1) { enemy._y += spd; animate(enemy, 1 + monAnimArray[x]); } if (enemy.move == 2) { enemy._x += spd; enemy._y += spd; animate(enemy, 2 + monAnimArray[x]); enemy._xscale = -100; } if (enemy.move == 3) { enemy._x += spd; animate(enemy, 3 + monAnimArray[x]); enemy._xscale = -100; } if (enemy.move == 4) { enemy._x += spd; enemy._y -= spd; animate(enemy, 4 + monAnimArray[x]); enemy._xscale = -100; } if (enemy.move == 5) { enemy._y -= spd; animate(enemy, 5 + monAnimArray[x]); } if (enemy.move == 6) { enemy._y -= spd; enemy._x -= spd; animate(enemy, 4 + monAnimArray[x]); enemy._xscale = 100; } if (enemy.move == 7) { enemy._x -= spd; animate(enemy, 3 + monAnimArray[x]); enemy._xscale = 100; } if (enemy.move == 8) { enemy._x -= spd; enemy._y += spd; animate(enemy, 2 + monAnimArray[x]); enemy._xscale = 100; } if (enemy.move >= 9) { if (enemy._currentframe > monAnimArray[x] + 10) { enemy.gotoAndStop(monAnimArray[x] - 5); enemy.gotoAndStop(monAnimArray[x] + 5); } else { enemy.gotoAndStop(monAnimArray[x] + 10); } } } if (enemy.ht_AI == null) { enemy.ht_AI = Math.ceil(Math.random() * 80 + 120); } if (enemy.ht >= enemy.ht_AI) { delete enemy.atk; delete enemy.ht; delete enemy.static; if (enemy.atk == null) { enemy.move = Math.ceil(Math.random() * 12); } if (enemy.atk == 1) { delete enemy.move; } if (enemy._currentframe > 5) { enemy.gotoAndStop(enemy._currentframe - 5); enemy.gotoAndStop(enemy._currentframe + 5); } else { enemy.gotoAndStop(enemy._currentframe + 5); } } else { ++enemy.ht; } if (enemy.hitTest(obj)) { enemy.atk = 1; } if (Math.abs(enemy._y - obj._y) < 60) { if (Math.abs(enemy._x - obj._x) < 60) { enemy.atk = 1; } } if (enemy.health == null) { enemy.health = 30; enemy.base_health = enemy.health; enemy.exp = 20; } if (atk.hitTest(enemy)) { plhitRate = player_hitRate + Math.ceil(Math.random() * 100) + (stats_dex + base_dex); player_hitRate = 40; if (plhitRate >= 100) { _root.sound1.gotoAndPlay(2); damage = Math.ceil(Math.random() * weaponHigh[0] + weaponLow[0] + (stats_str + base_str / 10)); _root.enemyRO += damage + ':' + enemy.health + 'current ' + (enemy.health - damage) + '<br>'; enemy.health -= damage; odometer += 1; atk._x = -200; atk._y = -200; if (weaponarray == null) { weaponLow = new Array(); weaponHigh = new Array(); weaponLow[0] = 1; weaponHigh[0] = 5; weaponarray = 1; } } else { damage = 'Miss!'; _root.enemyRO += damage + ':' + enemy.health + '<br>'; odometer += 1; atk._x = -200; atk._y = -200; } if (pointsnum == null) { pointsnum = 1; } if (pointsnum >= 10) { pointsnum = 1; } else { ++pointsnum; } if (plhitRate >= 80) { _root.damage_mc.duplicateMovieClip('damage_mc' + pointsnum, 500 + pointsnum); if (_root['damage_mc' + pointsnum].lx == null) { _root['damage_mc' + pointsnum]._x = enemy._x; _root['damage_mc' + pointsnum]._y = enemy._y; _root['damage_mc' + pointsnum].lx = 1; } _root.nme_hitpoints.duplicateMovieClip('nme_hitpoints' + pointsnum, 600 + pointsnum); if (_root['nme_hitpoints' + pointsnum].lx == null) { _root['nme_hitpoints' + pointsnum]._x = enemy._x; _root['nme_hitpoints' + pointsnum]._y = enemy._y; _root['nme_hitpoints' + pointsnum].lx = 1; } delete enemy.atk; } else { _root.nme_hitpoints.duplicateMovieClip('nme_hitpoints' + pointsnum, 600 + pointsnum); if (_root['nme_hitpoints' + pointsnum].lx == null) { _root['nme_hitpoints' + pointsnum]._x = enemy._x; _root['nme_hitpoints' + pointsnum]._y = enemy._y; _root['nme_hitpoints' + pointsnum].lx = 1; } } if (enemy.health <= 0) { if (damage > enemy.health) { } _root.damage_end.duplicateMovieClip('damage_end' + pointsnum, 550 + pointsnum); if (_root['damage_end' + pointsnum].lx == null) { _root['damage_end' + pointsnum]._x = enemy._x; _root['damage_end' + pointsnum]._y = enemy._y; _root['damage_end' + pointsnum].lx = 1; } ItemSpawn(); value = 20; if (level >= 99) { stats_exp = tnl; } else { stats_exp += value; } chat(value + ' Experience', 30, 5); enemy._x = -100; enemy._y = 240; enemyitem = Math.ceil(Math.random() * (1 + _root.floor)); enemydeath = 1; enemy.health = 30; } } plimit = 10; _root['nme_hitpoints' + pointsnum].display = damage; } function game_class() { 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 = 'Poet'; base_dex = 20; base_str = 10; base_agi = 25; } if (class == 4) { if (hlthx == null) { manax = 58; hlthx = 47; } classoutput = 'Mage'; base_dex = 10; base_str = 1; base_agi = 25; } } function game_level(player) { if (stats_agi == null) { stats_agi = 24; } if (level >= 99) { tnl = 299582916; } tnl = Math.ceil(625 * level); while (gamestrt < 4) { ++level; chat('You\'ve gained an insight', 30, 5); if (class == 1) { stats_mana += 26; stats_health += 66; } if (class == 2) { stats_mana += 14; stats_health += 135; } if (class == 3) { stats_mana += 58; stats_health += 47; } if (class == 4) { stats_mana += 58; stats_health += 47; } ++gamestrt; } if (tnl == null) { stats_exp = 0; tnl = Math.ceil(625 * level); } if (stats_exp >= tnl && level < 99) { if (lvlup >= 10) { lvlup = 1; } ++lvlup; 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 += 226; stats_health += 66; } if (class == 2) { stats_mana += 214; stats_health += 135; } if (class == 3) { stats_mana += 58; stats_health += 47; } if (class == 4) { stats_mana += 58; 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 -= 0.2424242424242424; } if (class == 1) { stats_str += 1; stats_dex = Math.ceil(stats_str / 3); input_agi += 1; delete stats_exp; delete stats_ro_exp; } if (class == 2) { stats_str += 1; stats_dex = Math.ceil(stats_str / 3); input_agi += 1; delete stats_exp; delete stats_ro_exp; } } } function game_stats() { if (player_health == null) { stats_health = hlthx; stats_mana = manax; player_health = stats_health; player_mana = stats_mana; stats_str = 5; stats_dex = 5; input_agi = 5; } if (class == 1) { dex_readout = Math.ceil(4 + stats_dex); str_readout = Math.ceil(4 + stats_str / 2) + m_buff; agi_readout = Math.ceil(4 + stats_str); } if (class == 2) { dex_readout = Math.ceil(4 + stats_dex); str_readout = Math.ceil(4 + stats_str); agi_readout = Math.ceil(4 + stats_str / 2); } } function game_spells() {} function game_player(obj, spd, auto, aspd, atk) { attack(obj, auto, aspd, atk); move(obj, spd); } function animate(obj, vrb) { obj.gotoAndStop(vrb); } function ambush(obj) { if (ambushmemx == null) { ambushmemx = obj._x; ambushmemy = obj._y; } desuClock = 1; if (obj._currentframe == 2 + armor_anim || obj._currentframe == 7 + armor_anim || obj._currentframe == 12 + armor_anim) { obj._y += 36; if (obj._xscale == 100) { obj._x -= 36; obj._xscale = -100; } else { if (obj._xscale == -100) { obj._x += 36; 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 -= 36; if (obj._xscale == 100) { obj._x -= 36; obj._xscale = -100; } else { if (obj._xscale == -100) { obj._x += 36; 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 += 36; 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 -= 36; 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 += 36; if (obj._xscale == 100) { obj._xscale = -100; } else { obj._xscale = 100; _root.sounditem1.gotoAndStop(4); } } else { obj._x -= 36; if (obj._xscale == 100) { obj._xscale = -100; } else { obj._xscale = 100; _root.sounditem1.gotoAndStop(4); } } } ambushshadx = ambushmemx; ambushshady = ambushmemy; c_ambush = 1; if (_root.dun_map1.hb.hitTest(obj._x, obj._y, true)) { obj._x = ambushmemx; obj._y = ambushmemy; } else { ambushmemx = obj._x; ambushmemy = obj._y; } } function attack(obj, auto, aspd, atk) { ambTest = obj.hitTest(ambNme_scan); if (!Key.isDown(Key.getCode())) { if (s_scan == 1) { } else { var amb_scanner = 0; while (amb_scanner < enemy_spawn + 1) { if (obj.hitTest(_root['enemy' + amb_scanner])) { ambNme_scan = _root['enemy' + amb_scanner]; } ++amb_scanner; } s_scan = 1; } } else { delete s_scan; } if (Key.isDown(83) && 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; } if (atimer == null) { } else { ++atimer; } if (atimer >= aspd * game_speed) { 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); } } else {} input = 1; } delete input; } if (Key.isDown(65) || Key.isDown(32)) { 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); } } else {} atk._x = obj._x; atk._y = obj._y - 20; inputDelay = 1; } if (auto == null) { } else {} } else { if (atimer > aspd) { delete input; delete atimer; } else {} if (x == 8) { atk._x = -200; atk._y = -200; } } } function move(obj, spd) { if (!Key.isDown(38) && !Key.isDown(40) && !Key.isDown(37) && !Key.isDown(39)) { if (obj.anim_stop == null) { animate(obj, obj._currentframe + 5); obj.anim_stop = 1; } } if (Key.isDown(38) && Key.isDown(37)) { obj._xscale = 100; obj._x -= spd; obj._y -= spd; animate(obj, 4 + armor_anim); delete obj.anim_stop; } else { if (Key.isDown(38) && Key.isDown(39)) { obj._xscale = -100; obj._y -= spd; obj._x += spd; animate(obj, 4 + armor_anim); delete obj.anim_stop; } else { if (Key.isDown(40) && Key.isDown(39)) { obj._xscale = -100; obj._y += spd; obj._x += spd; animate(obj, 2 + armor_anim); delete obj.anim_stop; } else { if (Key.isDown(40) && Key.isDown(37)) { obj._xscale = 100; obj._y += spd; obj._x -= spd; animate(obj, 2 + armor_anim); delete obj.anim_stop; } else { if (Key.isDown(38)) { obj._y -= spd; Animate(obj, 5 + armor_anim); delete obj.anim_stop; } if (Key.isDown(40)) { obj._y += spd; animate(obj, 1 + armor_anim); delete obj.anim_stop; } if (Key.isDown(37)) { animate(obj, 3 + armor_anim); obj._x -= spd; obj._xscale = 100; delete obj.anim_stop; } if (Key.isDown(39)) { animate(obj, 3 + armor_anim); obj._x += spd; obj._xscale = -100; delete obj.anim_stop; } } } } } } function game_start(map, bgm) { if (enemNum == null) { enemNum = 1; } _root.char.duplicateMovieClip('char1', 200); _root.char1._visible = true; _root.char1._x = 109; _root.char1._y = 50; _root.charatk.duplicateMovieClip('char_atk1', 400); _root.char_atk1._visible = true; _root.char_atk1._visible = true; _root.map_mc.duplicateMovieClip('map_mc' + map, 10); _root['map_mc' + map]._visible = true; _root.fader.duplicateMovieClip('fader_mc1', 2000); _root.fader_mc1._x = 0; _root.fader_mc1._y = 0; _root.hud_mc.duplicateMovieClip('hud_mc1', 13000); _root.hud_mc1._visible = true; _root.hud_mc1._x = 0; _root.hud_mc1._y = 0; _root.gui_player_hbar.duplicateMovieClip('hp_bar1', 500); _root.soundbgm.duplicateMovieClip('soundbgm1', 120); _root.soundbgm1.gotoAndStop(bgm); _root.debug_mc.duplicateMovieClip('debug_mc11', 9000); _root.debug_mc11._visible = true; _root.debug_mc11._x = 0; _root.debug_mc11._y = 0; } function game_gui() { stats_exp_output = stats_exp + '/' + tnl; stat_readout = 'STR [' + str_readout + ']AGI [' + agi_readout + ']DEX [' + dex_readout + ']'; if (stats_exp == null) { stats_exp = 0; } } _root.MRO4 = 'HELLO' + dun_createdMap.toString(); } frame 1 { function game_enemy_castle(obj, spd, auto, aspd, player, provoke) { enemy_attack_castle(obj, auto, aspd, player, provoke); enemy_move_castle(obj, spd, player, provoke); } function enemy_attack_castle(obj, auto, aspd, player, provoke) { if (_root.plHpDis == null) { } else { if (_root.plHpDis > 1) { --_root.plHpDis; } else { delete _root.plHpDis; } } if (obj.hitTest(player.hb)) { if (obj.atk == 1) { ++obj.enemTimer; if (obj.enemTimer >= aspd) { delete obj.input; delete obj.enemTimer; } if (obj.input == null) { if (obj._currentframe > 10) { obj.gotoAndStop(obj._currentFrame - 5); obj.gotoAndStop(obj._currentFrame + 5); } else { if (obj._currentframe < 5) { obj.gotoAndStop(obj._currentFrame + 10); } else { obj.gotoAndStop(obj._currentFrame + 5); } } if (pl_ptsnum >= 10) { pl_ptsnum = 1; } else { ++pl_ptsnum; } enemy_hitRate = 1; hitRate = enemy_hitRate + Math.ceil(Math.random() * 100) - (stats._agi + 10); if (enemyLow == null) { enemyLow = new Array(); enemyHigh = new Array(); enemyLow[0] = 5; enemyHigh[0] = 0; } if (hitRate >= 60) { playerDamage = Math.ceil(Math.random() * enemyLow[0] + enemyHigh[0]); _root.sound.gotoAndPlay(4); } else { playerDamage = 'Miss!'; _root.sound.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) { _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!') { 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 <= 0) { _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); removeMovieClip(player); delete obj.ht; delete obj.static; delete obj.atk; delete enemy.ht_AI; } else { player_health -= playerDamage; } } obj.input = 1; } } } else { delete obj.input; } } function enemy_move_castle(obj, spd, player) { if (obj.lx == null) { obj.gotoAndStop(obj._currentframe + 5); obj.lx = 1; } if (obj.hitTest(player.hb)) { } else { if (obj.atk == 1) { if (obj._x > player._x) { obj._xscale = 100; if (Math.abs(obj._y - player._y) < 20) { obj.gotoAndStop(3); obj._x -= spd; } else { if (Math.abs(obj._x - player._x) < 20) { if (obj._y > player._y) { obj.gotoAndStop(5); obj._y -= spd; } else { obj.gotoAndStop(1); obj._y += spd; } } else { if (obj._y > player._y) { obj.gotoAndStop(4); obj._y -= spd; obj._x -= spd; } else { if (obj._y < player._y) { obj.gotoAndStop(2); obj._y += spd; obj._x -= spd; } } } } } if (obj._x < player._x) { obj._xscale = -100; if (Math.abs(obj._y - player._y) < 10) { obj.gotoAndStop(3); obj._x += spd; } else { if (obj._y > player._y) { obj.gotoAndStop(4); obj._y -= spd; obj._x += spd; } else { if (obj._y < player._y) { obj.gotoAndStop(2); obj._y += spd; obj._x += spd; } } } } } } } function hitDetect_castle(obj, atk, enemy, provoke) { if (enemy._x > 240) { enemy._x = 0; enemy._y = Math.ceil(Math.random() * 240); } if (enemy._x < 0) { enemy._x = 240; } if (enemy._y > 240) { enemy._y = 0; enemy._x = Math.ceil(Math.random() * 240); } if (enemy._y < 0) { enemy._y = 240; } if (enemy.atk == null) { if (enemy._x > 240) { enemy._x = 0; } if (enemy._x < 0) { enemy._x = 240; } if (enemy._y > 240) { enemy._y = 0; } if (enemy._y < 0) { enemy._y = 240; } spd = 2.5; if (enemy.move == 1) { enemy._y += spd; animate(enemy, 1); } if (enemy.move == 2) { enemy._x += spd; enemy._y += spd; animate(enemy, 2); enemy._xscale = -100; } if (enemy.move == 3) { enemy._x += spd; animate(enemy, 3); enemy._xscale = -100; } if (enemy.move == 4) { enemy._x += spd; enemy._y -= spd; animate(enemy, 4); enemy._xscale = -100; } if (enemy.move == 5) { enemy._y -= spd; animate(enemy, 5); } if (enemy.move == 6) { enemy._y -= spd; enemy._x -= spd; animate(enemy, 4); enemy._xscale = 100; } if (enemy.move == 7) { enemy._x -= spd; animate(enemy, 3); enemy._xscale = 100; } if (enemy.move == 8) { enemy._x -= spd; enemy._y += spd; animate(enemy, 2); enemy._xscale = 100; } if (enemy.move >= 9) { if (enemy._currentframe > 5) { enemy.gotoAndStop(enemy._currentframe - 5); enemy.gotoAndStop(enemy._currentframe + 5); } else { enemy.gotoAndStop(enemy._currentframe + 5); } } } if (enemy.ht_AI == null) { enemy.ht_AI = Math.ceil(Math.random() * 80 + 120); } if (enemy.ht >= enemy.ht_AI) { delete enemy.atk; delete enemy.ht; delete enemy.static; if (enemy.atk == null) { enemy.move = Math.ceil(Math.random() * 12); } if (enemy.atk == 1) { delete enemy.move; } if (enemy._currentframe > 5) { enemy.gotoAndStop(enemy._currentframe - 5); enemy.gotoAndStop(enemy._currentframe + 5); } else { enemy.gotoAndStop(enemy._currentframe + 5); } } else { ++enemy.ht; } if (enemy.hitTest(obj) && enemy.provoking >= 5) { enemy.atk = 1; enemy.provoked = 1; } if (enemy.hitTest(provoke)) { if (enemy.provoking >= 5) { var provoked_nme; while (provoked_nme < 6) { _root['enemy' + provoked_nme].atk = 1; _root['enemy' + provoked_nme].provoked = 1; ++provoked_nme; } enemy.atk = 1; enemy.provoked = 1; delete enemy.provoking; } if (enemy.provoking < 5) { ++enemy.provoking; } } if (Math.abs(enemy._y - obj._y) < 60) { if (Math.abs(enemy._x - obj._x) < 60) { if (enemy.provoked == 1) { enemy.atk = 1; } } } if (enemy.health == null) { enemy.health = 30; enemy.exp = 20; } if (atk.hitTest(enemy)) { plhitRate = player_hitRate + Math.ceil(Math.random() * 100) + (stats_dex + base_dex); player_hitRate = 40; if (plhitRate >= 100) { _root.sound.gotoAndPlay(2); damage = Math.ceil(Math.random() * weaponHigh[0] + weaponLow[0] + (stats_str + base_str / 10)); _root.enemyRO += damage + ':' + enemy.health + 'current ' + (enemy.health - damage) + '<br>'; enemy.health -= damage; odometer += 1; atk._x = -200; atk._y = -200; if (weaponarray == null) { weaponLow = new Array(); weaponHigh = new Array(); weaponLow[0] = 1; weaponHigh[0] = 5; weaponarray = 1; } } else { damage = 'Miss!'; _root.enemyRO += damage + ':' + enemy.health + '<br>'; odometer += 1; atk._x = -200; atk._y = -200; } if (pointsnum == null) { pointsnum = 1; } if (pointsnum >= 10) { pointsnum = 1; } else { ++pointsnum; } if (plhitRate >= 80) { _root.damage_mc.duplicateMovieClip('damage_mc' + pointsnum, 500 + 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; } _root.nme_hitpoints.duplicateMovieClip('nme_hitpoints' + pointsnum, 600 + pointsnum); if (_root['nme_hitpoints' + pointsnum].lx == null) { _root['nme_hitpoints' + pointsnum]._x = enemy._x; _root['nme_hitpoints' + pointsnum]._y = enemy._y - 20; _root['nme_hitpoints' + pointsnum].lx = 1; } delete enemy.atk; } else { _root.nme_hitpoints.duplicateMovieClip('nme_hitpoints' + pointsnum, 600 + pointsnum); if (_root['nme_hitpoints' + pointsnum].lx == null) { _root['nme_hitpoints' + pointsnum]._x = enemy._x; _root['nme_hitpoints' + pointsnum]._y = enemy._y - 20; _root['nme_hitpoints' + pointsnum].lx = 1; } } if (enemy.health <= 0) { _root.damage_end.duplicateMovieClip('damage_end' + pointsnum, 550 + 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; } ItemSpawn(); value = 20; if (level >= 99) { stats_exp = tnl; } else { stats_exp += value; } chat(value + ' Experience', 30, 5); enemy._x = -100; enemy._y = 240; enemy.health = 30; } } plimit = 10; _root['nme_hitpoints' + pointsnum].display = damage; _root['ambushnme_hitpoints' + pointsnum].display = damage; } function game_hitDetect_castle(obj, atk, enemy, provoke) { hitDetect_castle(obj, atk, enemy, provoke); } function game_items_castle(char, item) { function dropEngine_castle(value) { _root.t = _root.hud_mc1.macro._currentframe; if (dropitem == null) { if (_root.hud_mc1.macro._currentframe == value) { if (ItemNum[value] <= 1) { delete ItemArraynum[value]; delete ItemNum[value]; } else { ItemNum[value] -= 1; } } dropht = 1; useitem = 1; arraynum = 1; } } function useEngine_castle(value) { _root.t = _root.hud_mc1.macro._currentframe; if (useitem == null) { if (_root.hud_mc1.macro._currentframe == value) { if (ItemNum[value] <= 0) { delete ItemArraynum[value]; delete ItemNum[value]; } } dropht = 1; useitem = 1; arraynum = 1; } } function Inventory(KEY1, KEY2, KEY3, KEY4, KEY5, KEY6) { if (Key.isDown(KEY1)) { if (a_key == null) { if (item.hitTest(char)) { arraynum = 1; } else { keys = 1; useEngine_castle(keys); } a_key = 1; } } else { delete a_key; delete useitem; } if (Key.isDown(KEY2)) { if (b_key == null) { if (item.hitTest(char)) { arraynum = 2; } else { keys = 2; useEngine_castle(keys); } b_key = 1; } } else { delete b_key; delete useitem; } if (Key.isDown(KEY3)) { if (c_key == null) { if (item.hitTest(char)) { arraynum = 3; } else { keys = 3; useEngine_castle(keys); } c_key = 1; } } else { delete c_key; delete useitem; } if (Key.isDown(KEY4)) { if (x_key == null) { if (item.hitTest(char)) { arraynum = 4; } else { keys = 4; useEngine_castle(keys); } x_key = 1; } } else { delete x_key; delete useitem; } if (Key.isDown(KEY5)) { if (e_key == null) { if (item.hitTest(char)) { arraynum = 5; } else { keys = 5; useEngine(keys); } e_key = 1; } } else { delete e_key; delete useitem; } if (Key.isDown(KEY6)) { if (d_key == null) { if (ItemNum[1] < 1) { } else { if (item.hitTest(char)) { arraynum = 1; } else { dropEngine_castle(keys); } d_key = 1; } } } else { delete d_key; delete dropitem; } } if (keys == null) { keys = 1; } itembox1 = itemNum[1]; itembox2 = itemNum[2]; itembox3 = itemNum[3]; itembox4 = itemNum[4]; itembox5 = itemNum[5]; stats_agi_full = stats_agi - base_agi; if (itemArray == null) { itemArraynum = new Array(); itemArray = new Array(); itemNum = new Array(); itemGold = new Array(); itemMsg = new Array(); itemGold[0] = null; itemGold[1] = 10; itemGold[2] = 1000; itemGold[3] = 100; itemGold[4] = 1; itemMsg[1] = 'Beef'; itemMsg[6] = 'Concentration potion'; itemMsg[13] = 'Red potion'; itemMsg[14] = 'Wooden saber'; itemMsg[20] = 'Star Scale Mail'; itemFillOrder = newArray(); itemNum[1] = 5; itemArraynum[1] = 6; itemNum[2] = 1; itemArraynum[2] = 20; itemNum[3] = 10; itemArraynum[3] = 13; itemNum[4] = 20; itemArraynum[4] = 1; } } function game_map2(player, item, map, spd) { if (player._y > 150) { player._y -= spd; map._y -= spd; var map_move = 1; while (map_move < 11) { _root['enemy' + map_move]._y -= spd; _root['item' + map_move]._y -= spd; ++map_move; } } if (player._y < 100) { player._y += spd; map._y += spd; var map_move = 1; while (map_move < 11) { _root['enemy' + map_move]._y += spd; _root['item' + map_move]._y += spd; ++map_move; } } if (player._x < 120) { player._x += spd; map._x += spd; var map_move = 1; while (map_move < 11) { _root['enemy' + map_move]._x += spd; _root['item' + map_move]._x += spd; ++map_move; } } if (player._x > 130) { player._x -= spd; map._x -= spd; var map_move = 1; while (map_move < 11) { _root['enemy' + map_move]._x -= spd; _root['item' + map_move]._x -= spd; ++map_move; } } if (map._x > -1.5) { map.a.gotoAndStop(movey * (movec + 1) + movex - 1); map.b.gotoAndStop(movey * (movec + 1) + movex); map.c.gotoAndStop(movey * (movec + 1) + movex + 1); map.d.gotoAndStop((movey + 1) * (movec + 1) + movex - 1); map.e.gotoAndStop((movey + 1) * (movec + 1) + movex); map.f.gotoAndStop((movey + 1) * (movec + 1) + movex + 1); map._x = -215; } if (map._x < -216) { map.a.gotoAndStop(movey * (movec + 1) + movex - 1); map.b.gotoAndStop(movey * (movec + 1) + movex); map.c.gotoAndStop(movey * (movec + 1) + movex + 1); map.d.gotoAndStop((movey + 1) * (movec + 1) + movex - 1); map.e.gotoAndStop((movey + 1) * (movec + 1) + movex); map.f.gotoAndStop((movey + 1) * (movec + 1) + movex + 1); map._x = -spd; } if (map._y < -1.5) { map.a.gotoAndStop(movey * (movec + 1) + movex - 1); map.b.gotoAndStop(movey * (movec + 1) + movex); map.c.gotoAndStop(movey * (movec + 1) + movex + 1); map.d.gotoAndStop((movey + 1) * (movec + 1) + movex - 1); map.e.gotoAndStop((movey + 1) * (movec + 1) + movex); map.f.gotoAndStop((movey + 1) * (movec + 1) + movex + 1); map._y = 283.5; } if (map._y > 283.5) { map.a.gotoAndStop(movey * (movec + 1) + movex - 1); map.b.gotoAndStop(movey * (movec + 1) + movex); map.c.gotoAndStop(movey * (movec + 1) + movex + 1); map.d.gotoAndStop((movey + 1) * (movec + 1) + movex - 1); map.e.gotoAndStop((movey + 1) * (movec + 1) + movex); map.f.gotoAndStop((movey + 1) * (movec + 1) + movex + 1); map._y = -1.5; } if (player._x > 240) { player._x = 20; ++mapnumx; mapset = 8 * mapnumx + mapnumy; var map_move = 1; while (map_move < 11) { _root['enemy' + map_move]._x -= 240; _root['item' + map_move]._x -= 240; ++map_move; } } if (player._x < 15) { player._x = 235; --mapnumx; mapset = 8 * mapnumx + mapnumy; var map_move = 1; while (map_move < 11) { _root['enemy' + map_move]._x += 240; _root['item' + map_move]._x += 240; ++map_move; } } if (player._y < 0) { mapnumy += 72; mapset = 8 * mapnumx + mapnumy; player._y = 235; var map_move = 1; while (map_move < 11) { _root['enemy' + map_move]._y -= 240; _root['item' + map_move]._y -= 240; ++map_move; } } if (player._y > 238) { mapnumy -= 72; mapset = 8 * mapnumx + mapnumy; player._y = 5; var map_move = 1; while (map_move < 11) { _root['enemy' + map_move]._y += 240; _root['item' + map_move]._y -= 240; ++map_move; } } } function game_map_castle(player, item, map, spd) { if (map.a.hb.hitTest(player._x - 5, player._y, true) || map.b.hb.hitTest(player._x - 5, player._y, true) || map.c.hb.hitTest(player._x - 5, player._y, true) || map.d.hb.hitTest(player._x - 5, player._y, true) || map.e.hb.hitTest(player._x - 5, player._y, true) || map.f.hb.hitTest(player._x - 5, player._y, true)) { trace('hw'); player._x += spd; } if (map.a.hb.hitTest(player._x + 5, player._y, true) || map.b.hb.hitTest(player._x + 5, player._y, true) || map.c.hb.hitTest(player._x + 5, player._y, true) || map.d.hb.hitTest(player._x + 5, player._y, true) || map.e.hb.hitTest(player._x + 5, player._y, true) || map.f.hb.hitTest(player._x + 5, player._y, true)) { player._x -= spd; } if (map.a.hb.hitTest(player._x, player._y - 5, true) || map.b.hb.hitTest(player._x, player._y - 5, true) || map.c.hb.hitTest(player._x, player._y - 5, true) || map.d.hb.hitTest(player._x, player._y - 5, true) || map.e.hb.hitTest(player._x, player._y - 5, true) || map.f.hb.hitTest(player._x, player._y - 5, true)) { player._y += spd; } if (map.a.hb.hitTest(player._x, player._y + 5, true) || map.b.hb.hitTest(player._x, player._y + 5, true) || map.c.hb.hitTest(player._x, player._y + 5, true) || map.d.hb.hitTest(player._x, player._y + 5, true) || map.e.hb.hitTest(player._x, player._y + 5, true) || map.f.hb.hitTest(player._x, player._y + 5, true)) { player._y -= spd; } if (movex == null) { _root.mapset = 16; movec = 7; movey = 1; movex = 1; movexLimit = 3; moveyLimit = 2; mapnumx = 2; mapnumy = 0; } if (player._y > 150) { if (movey < moveyLimit) { player._y -= spd; map._y -= spd; var map_move = 1; while (map_move < 11) { _root['enemy' + map_move]._y -= spd; _root['item' + map_move]._y -= spd; ++map_move; } } } if (player._y < 100) { if (movey > 0) { player._y += spd; map._y += spd; var map_move = 1; while (map_move < 11) { _root['enemy' + map_move]._y += spd; _root['item' + map_move]._y += spd; ++map_move; } } } if (player._x < 120) { if (movex > 0) { player._x += spd; map._x += spd; var map_move = 1; while (map_move < 11) { _root['enemy' + map_move]._x += spd; _root['item' + map_move]._x += spd; ++map_move; } } } if (player._x > 130) { if (movex < movexLimit) { player._x -= spd; map._x -= spd; var map_move = 1; while (map_move < 11) { _root['enemy' + map_move]._x -= spd; _root['item' + map_move]._x -= spd; ++map_move; } } } if (map._x > -1.5) { --movex; map.a.gotoAndStop(movey * (movec + 1) + movex - 1); map.b.gotoAndStop(movey * (movec + 1) + movex); map.c.gotoAndStop(movey * (movec + 1) + movex + 1); map.d.gotoAndStop((movey + 1) * (movec + 1) + movex - 1); map.e.gotoAndStop((movey + 1) * (movec + 1) + movex); map.f.gotoAndStop((movey + 1) * (movec + 1) + movex + 1); map._x = -215; } if (map._x < -216) { ++movex; map.a.gotoAndStop(movey * (movec + 1) + movex - 1); map.b.gotoAndStop(movey * (movec + 1) + movex); map.c.gotoAndStop(movey * (movec + 1) + movex + 1); map.d.gotoAndStop((movey + 1) * (movec + 1) + movex - 1); map.e.gotoAndStop((movey + 1) * (movec + 1) + movex); map.f.gotoAndStop((movey + 1) * (movec + 1) + movex + 1); map._x = -spd; } if (map._y < -1.5) { ++movey; map.a.gotoAndStop(movey * (movec + 1) + movex - 1); map.b.gotoAndStop(movey * (movec + 1) + movex); map.c.gotoAndStop(movey * (movec + 1) + movex + 1); map.d.gotoAndStop((movey + 1) * (movec + 1) + movex - 1); map.e.gotoAndStop((movey + 1) * (movec + 1) + movex); map.f.gotoAndStop((movey + 1) * (movec + 1) + movex + 1); map._y = 283.5; } if (map._y > 283.5) { --movey; map.a.gotoAndStop(movey * (movec + 1) + movex - 1); map.b.gotoAndStop(movey * (movec + 1) + movex); map.c.gotoAndStop(movey * (movec + 1) + movex + 1); map.d.gotoAndStop((movey + 1) * (movec + 1) + movex - 1); map.e.gotoAndStop((movey + 1) * (movec + 1) + movex); map.f.gotoAndStop((movey + 1) * (movec + 1) + movex + 1); map._y = -1.5; } if (player._x > 240) { player._x = 20; movex -= 2; ++mapnumx; mapset = 8 * mapnumx + mapnumy; var map_move = 1; while (map_move < 10) { _root['enemy' + map_move]._x -= 240; ++map_move; } } if (player._x < 15) { player._x = 235; movex += 2; --mapnumx; mapset = 8 * mapnumx + mapnumy; var map_move = 1; while (map_move < 10) { _root['enemy' + map_move]._x -= 240; ++map_move; } } if (player._y < 0) { mapnumy += 72; mapset = 8 * mapnumx + mapnumy; player._y = 235; ++movey; var map_move = 1; while (map_move < 10) { _root['enemy' + map_move]._x -= 240; ++map_move; } } if (player._y > 238) { mapnumy -= 72; mapset = 8 * mapnumx + mapnumy; player._y = 5; --movey; var map_move = 1; while (map_move < 10) { _root['enemy' + map_move]._x -= 240; ++map_move; } } } } frame 1 { function spriteDepth(spritea, spriteb) { if (spritea._y < spriteb._y) { if (spriteb.swapa >= 1) { spritea.swapDepths(1920); delete spriteb.swapa; } else { spritea.swapDepths(1920); delete spriteb.swapa; } } if (spritea._y > spriteb._y) { if (spriteb.swapa == null) { if (spriteb._x == null) { } else { spritea.swapDepths(2600 + spriteb.swapa); if (spireb.swapa >= 10) { } else { ++spriteb.swapa; } } } } } } frame 1 { function game_map_dungeon(player, item, map, spd, spd2) { function dungeonNPCLoad(strtx, strty) { if (strtx == null) { var npcLoadrem; while (npcLoadrem < 2) { removeMovieClip(_root['npc_' + npcLoadrem]); ++npcLoadrem; } } else { if (dungeon_Npc_load == null) { while (npcLoad < 2) { _root.npc.duplicateMovieClip('npc_' + npcLoad, 400 + npcLoad); _root.npc_1._x = 48 + strtx; _root.npc_1._y = 24 + strty; ++npcLoad; } dungeon_Npc_load = 1; } } } function dun_vanish() { if (_root.item1._x == null) { _root.item1._x = -999; dun_item_create_x1[dunmap * row + col] = _root.item1._x; } if (_root.item2._x == null) { _root.item2._x = -999; dun_item_create_x2[dunmap * row + col] = _root.item2._x; } if (_root.item3._x == null) { _root.item3._x = -999; dun_item_create_x3[dunmap * row + col] = _root.item3._x; } if (_root.item4._x == null) { _root.item4._x = -999; dun_item_create_x4[dunmap * row + col] = _root.item4._x; } if (_root.item5._x == null) { _root.item5._x = -999; dun_item_create_x5[dunmap * row + col] = _root.item5._x; } if (_root.item6._x == null) { _root.item6._x = -999; dun_item_create_x6[dunmap * row + col] = _root.item6._x; } } function dun_create() { dun_item_create_x1[dunmap * row + col] = _root.item1._x; dun_item_create_x2[dunmap * row + col] = _root.item2._x; dun_item_create_x3[dunmap * row + col] = _root.item3._x; dun_item_create_x4[dunmap * row + col] = _root.item4._x; dun_item_create_x5[dunmap * row + col] = _root.item5._x; dun_item_create_x6[dunmap * row + col] = _root.item6._x; dun_item_create_y1[dunmap * row + col] = _root.item1._y; dun_item_create_y2[dunmap * row + col] = _root.item2._y; dun_item_create_y3[dunmap * row + col] = _root.item3._y; dun_item_create_y4[dunmap * row + col] = _root.item4._y; dun_item_create_y5[dunmap * row + col] = _root.item5._y; dun_item_create_y6[dunmap * row + col] = _root.item6._y; dun_item_create_cf1[dunmap * row + col] = _root.item1._currentframe; dun_item_create_cf2[dunmap * row + col] = _root.item2._currentframe; dun_item_create_cf3[dunmap * row + col] = _root.item3._currentframe; dun_item_create_cf4[dunmap * row + col] = _root.item4._currentframe; dun_item_create_cf5[dunmap * row + col] = _root.item5._currentframe; dun_item_create_cf6[dunmap * row + col] = _root.item6._currentframe; } function dun_memory() { var icreate = 1; while (icreate < 7) { _root.item_.duplicateMovieClip('item' + icreate, 800 + icreate); _root.item1._x = dun_item_create_x1[dunmap * row + col]; _root.item2._x = dun_item_create_x2[dunmap * row + col]; _root.item3._x = dun_item_create_x3[dunmap * row + col]; _root.item4._x = dun_item_create_x4[dunmap * row + col]; _root.item5._x = dun_item_create_x5[dunmap * row + col]; _root.item6._x = dun_item_create_x6[dunmap * row + col]; _root.item1._y = dun_item_create_y1[dunmap * row + col]; _root.item2._y = dun_item_create_y2[dunmap * row + col]; _root.item3._y = dun_item_create_y3[dunmap * row + col]; _root.item4._y = dun_item_create_y4[dunmap * row + col]; _root.item5._y = dun_item_create_y5[dunmap * row + col]; _root.item6._y = dun_item_create_y6[dunmap * row + col]; _root.item1.gotoAndStop(dun_item_create_cf1[dunmap * row + col]); _root.item2.gotoAndStop(dun_item_create_cf2[dunmap * row + col]); _root.item3.gotoAndStop(dun_item_create_cf3[dunmap * row + col]); _root.item4.gotoAndStop(dun_item_create_cf4[dunmap * row + col]); _root.item5.gotoAndStop(dun_item_create_cf5[dunmap * row + col]); _root.item6.gotoAndStop(dun_item_create_cf6[dunmap * row + col]); ++icreate; } } function ItemSheet(strtx, strty) { if (strtx == null) { var rem; while (rem < 7) { removeMovieClip(_root['item' + rem]); ++rem; } } else { if (itemload == null) { while (sheet < 7) { _root.item_.duplicateMovieClip('item' + sheet, 800 + sheet); _root['item' + sheet].gotoAndStop(Math.ceil(Math.random() * (1 + _root.floor))); _root.item1._x = 24 + strtx; _root.item1._y = 24 + strty; _root.item2._x = 48 + strtx; _root.item2._y = 24 + strty; _root.item3._x = 72 + strtx; _root.item3._y = 24 + strty; _root.item4._x = 24 + strtx; _root.item4._y = 48 + strty; _root.item5._x = 48 + strtx; _root.item5._y = 48 + strty; _root.item6._x = 72 + strtx; _root.item6._y = 48 + strty; ++sheet; } itemload = 1; } } } monfloor = 0; testme = _root.dunmap * _root.row + _root.col + (_root.floor - 1) * 70; chestMap = _root.dunmap * _root.row + _root.col; dunlayout(); var enemyht = 1; while (enemyht < 5) { if (map.hb.hitTest(['enemy' + enemyht]._x - 5, _root['enemy' + enemyht]._y, true)) { root['enemy' + enemyht] += spd2; } if (map.hb.hitTest(_root['enemy' + enemyht]._x - 5, _root['enemy' + enemyht]._y, true)) { _root['enemy' + enemyht]._x += spd2; } if (map.hb.hitTest(_root['enemy' + enemyht]._x + 5, _root['enemy' + enemyht]._y, true)) { _root['enemy' + enemyht]._x -= spd2; } if (map.hb.hitTest(_root['enemy' + enemyht]._x, _root['enemy' + enemyht]._y - 5, true)) { _root['enemy' + enemyht]._y += spd2; } if (map.hb.hitTest(_root['enemy' + enemyht]._x, _root['enemy' + enemyht]._y + 5, true)) { _root['enemy' + enemyht]._y -= spd2; } ++enemyht; } if (s_ambush == 10) { if (player._x <= 20) { player._x = 20; delete s_ambush; } if (player._x >= 200) { player._x = 200; delete s_ambush; } if (player._y <= 20) { player._y = 20; delete s_ambush; } if (player._y >= 200) { player._y = 200; delete s_ambush; } } if (map.hb.hitTest(player._x, player._y, true)) { ambushmemx = player._x; ambushmemy = player._y; } if (s_ambush == 1 && Key.isDown(83)) { if (map.hb.hitTest(player._x - 24, player._y, true)) { player._x += 24; charshadowfunc(); } if (map.hb.hitTest(player._x + 24, player._y, true)) { player._x -= 24; charshadowfunc(); } if (map.hb.hitTest(player._x, player._y - 24, true)) { player._y += 24; charshadowfunc(); } if (map.hb.hitTest(player._x, player._y + 24, true)) { player._y -= 24; charshadowfunc(); } } if (map.hb.hitTest(player._x - 5, player._y, true)) { player._x += spd; } if (map.hb.hitTest(player._x + 5, player._y, true)) { player._x -= spd; } if (map.hb.hitTest(player._x, player._y - 5, true)) { player._y += spd; } if (map.hb.hitTest(player._x, player._y + 5, true)) { player._y -= spd; } dun_vanish(1, dun_item_create_x1[dunmap * row + col]); _root.outputX = dunmap * row + col + (dmap - 1) * 70; _root.tbox = dun_tbox[floor][dunmap * row + col]; if (player._x == null) { } else { if (dun_tbox[floor][dunmap * row + col] >= 4) { dun_tbox[floor][dunmap * row + col] = 4; } if (lx == null) { delete _root.enemy1.fill; floor = 1; dun_tbox = [[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]]; dun_visfull = [[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]]; chestMapMemory = [[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]]; dun_visfull[floor][dunmap * row + col] = 1; dun_ma[1] = 1; map.gotoAndStop(dunmap * row + col + (dmap - 1) * 70); _root.pool.gotoAndStop(dunmap * row + col + (dmap - 1) * 70); debug1 = dunmap * row + col + (dmap - 1) * 70; debug2 = dunmap + ':' + row + ':' + ':' + col; treasureRoomCreate(); lx = 1; } readout = dunmap * row + col; row = 7; if (mapChangex == 1 || mapChangex2 == 1 || mapChangey == 1 || mapChangey2 == 1) { ++loaderT; if (transition == null) { transitionMap.gotoAndPlay(1); transition = 1; } } if (loaderT >= 15) { transitionMap._x = -999; loader._x = -999; delete mapChangex; delete mapChangex2; delete mapChangey; delete mapChangey2; delete loaderT; delete transition; delete mapCswitch; } if (loaderT >= 7 && mapChangex == 1 && mapCswitch == null) { mapCswitch = 1; delete _root.fill2; delete _root.crowd; delete nmecreate; _root.char_atk1._x = -200; _root.char_atk1._y = -200; if (dun_visfull[floor][dunmap * row + col] == 1) { if (!dun_Array_itemx[dunmap * row + col + (dmap - 1) * 70] == null) { dun_memory(); } } trace('addcol'); ++col; if (dun_Array_itemy[dunmap * row + col + (dmap - 1) * 70] == null) { _root.item1._x = -999; _root.item2._x = -999; _root.item3._x = -999; _root.item4._x = -999; _root.item5._x = -999; _root.item6._x = -999; } else { dun_memory(); } if (dun_visfull[floor][dunmap * row + col] == null) { ++mc; dun_createdMap[mc] = mc; delete mvp_stats; if (enem_ArrayX[dunmap * row + col + (dmap - 1) * 70] == null) { } else { mvp_encounter = Math.ceil(Math.random() * 10); RNG_nme = Math.ceil(Math.random() * dif_spawn); onScreenEnemy += RNG_nme; } if (dun_tbox[floor][dunmap * row + col] >= 4) { dun_tbox[floor][dunmap * row + col] = 4; } else { dun_tbox[floor][dunmap * row + col] += dif_spawn * RNG_nme - 1; } var lay = null; while (lay < RNG_nme + onScreenEnemy) { delete _root['enemy' + lay].fill; if (enem_ArrayX[dunmap * row + col + (dmap - 1) * 70] == null) { } else { var monSpawn = 1; while (monSpawn < onScreenEnemy + 1) { _root.enemy.duplicateMovieClip('enemy' + monSpawn, 25000 + monSpawn); ++formation; if (formation == 1) { _root['enemy' + monSpawn]._x = enem_ArrayX[dunmap * row + col + (dmap - 1) * 70] + 20; _root['enemy' + monSpawn]._y = enem_ArrayY[dunmap * row + col + (dmap - 1) * 70] + 20; } if (formation >= 2) { _root['enemy' + monSpawn]._x = enem_ArrayX[dunmap * row + col + (dmap - 1) * 70] + 40; _root['enemy' + monSpawn]._y = enem_ArrayY[dunmap * row + col + (dmap - 1) * 70] + 20; } if (formation == 3) { _root['enemy' + monSpawn]._x = enem_ArrayX[dunmap * row + col + (dmap - 1) * 70] + 40; _root['enemy' + monSpawn]._y = enem_ArrayY[dunmap * row + col + (dmap - 1) * 70] + 40; } if (formation >= 4) { _root['enemy' + monSpawn]._x = enem_ArrayX[dunmap * row + col + (dmap - 1) * 70] + 20; _root['enemy' + monSpawn]._y = enem_ArrayY[dunmap * row + col + (dmap - 1) * 70] + 40; } if (formation == 5) { _root['enemy' + monSpawn]._x = enem_ArrayX[dunmap * row + col + (dmap - 1) * 70] + 60; _root['enemy' + monSpawn]._y = enem_ArrayY[dunmap * row + col + (dmap - 1) * 70] + 20; } if (formation >= 6) { _root['enemy' + monSpawn]._x = enem_ArrayX[dunmap * row + col + (dmap - 1) * 70] + 60; _root['enemy' + monSpawn]._y = enem_ArrayY[dunmap * row + col + (dmap - 1) * 70] + 40; } if (formation == 7) { _root['enemy' + monSpawn]._x = enem_ArrayX[dunmap * row + col + (dmap - 1) * 70] + 20; _root['enemy' + monSpawn]._y = enem_ArrayY[dunmap * row + col + (dmap - 1) * 70] + 60; } if (formation >= 8) { _root['enemy' + monSpawn]._x = enem_ArrayX[dunmap * row + col + (dmap - 1) * 70] + 40; _root['enemy' + monSpawn]._y = enem_ArrayY[dunmap * row + col + (dmap - 1) * 70] + 60; delete formation; } _root['enemy' + monSpawn].move = 11; delete _root['enemy' + monSpawn].desu; ++monSpawn; } } ++lay; } ItemSheet(dun_Array_itemx[dunmap * row + col + (dmap - 1) * 70], dun_Array_itemy[dunmap * row + col + (dmap - 1) * 70]); delete itemload; delete sheet; delete sheetc; delete lay; if (dun_msg[dunmap * row + col + (dmap - 1) * 70] == null) { } else { chat(dun_msg[dunmap * row + col + (dmap - 1) * 70], 30, 5); } dun_visfull[floor][dunmap * row + col] = 1; tboxRoom = 1; } dungeonNPCLoad(dun_Array_npcx[dunmap * row + col + (dmap - 1) * 70], dun_Array_npcy[dunmap * row + col + (dmap - 1) * 70]); delete npcLoad; delete dungeon_Npc_load; delete npcLoadrem; dun_create(); map.gotoAndStop(dunmap * row + col + (dmap - 1) * 70); player._x = dun_Array_x[dunmap * row + col + (dmap - 1) * 70]; _root.pool.gotoAndStop(dunmap * row + col + (dmap - 1) * 70); if (centermap == 1) { _root.center1._x = -240; _root.center1._y = -240; _root.center1.gotoAndStop((dunmap - 1) * row + (col - 1) + (dmap - 1) * 70); _root.center2._x = 0; _root.center2._y = -240; _root.center2.gotoAndStop((dunmap - 1) * row + col + (dmap - 1) * 70); _root.center3._x = 240; _root.center3._y = -240; _root.center3.gotoAndStop((dunmap - 1) * row + (col + 1) + (dmap - 1) * 70); _root.center4._x = -240; _root.center4._y = 0; _root.center4.gotoAndStop(dunmap * row + (col - 1) + (dmap - 1) * 70); _root.center6._x = 240; _root.center6._y = 0; _root.center6.gotoAndStop(dunmap * row + (col + 1) + (dmap - 1) * 70); _root.center7._x = -240; _root.center7._y = 240; _root.center7.gotoAndStop((dunmap + 1) * row + (col - 1) + (dmap - 1) * 70); _root.center8._x = 0; _root.center8._y = 240; _root.center8.gotoAndStop((dunmap + 1) * row + col + (dmap - 1) * 70); _root.center9._x = 240; _root.center9._y = 240; _root.center9.gotoAndStop((dunmap + 1) * row + (col + 1) + (dmap - 1) * 70); } } if (player._x > dun_Array_x2[dunmap * row + col + (dmap - 1) * 70] && mapChangex == null) { removeTroom(); mapChangex = 1; } if (loaderT >= 7 && mapChangex2 == 1 && mapCswitch == null) { mapCswitch = 1; delete _root.fill2; delete _root.crowd; var monaCreate; while (monaCreate < onScreenEnemy + 1) { _root['enemy' + monaCreate].monanim = Math.ceil(Math.random() * monvar) * 20; ++monaCreate; } delete nmecreate; _root.char_atk1._x = -200; _root.char_atk1._y = -200; if (dun_visfull[floor][dunmap * row + col] == 1) { } trace('remcol'); --col; if (dun_Array_itemy[dunmap * row + col + (dmap - 1) * 70] == null) { _root.item1._x = -999; _root.item2._x = -999; _root.item3._x = -999; _root.item4._x = -999; _root.item5._x = -999; _root.item6._x = -999; } else { dun_memory(); } if (dun_visfull[floor][dunmap * row + col] == null) { ++mc; dun_createdMap[mc] = mc; delete mvp_stats; if (enem_ArrayX[dunmap * row + col + (dmap - 1) * 70] == null) { } else { mvp_encounter = Math.ceil(Math.random() * 10); RNG_nme = Math.ceil(Math.random() * dif_spawn); onScreenEnemy += RNG_nme; } if (dun_tbox[floor][dunmap * row + col] >= 4) { dun_tbox[floor][dunmap * row + col] = 4; } else { dun_tbox[floor][dunmap * row + col] += dif_spawn * RNG_nme - 1; } var lay = null; while (lay < RNG_nme + onScreenEnemy) { delete _root['enemy' + lay].fill; if (enem_ArrayX[dunmap * row + col + (dmap - 1) * 70] == null) { } else { var monSpawn = 1; while (monSpawn < onScreenEnemy + 1) { _root.enemy.duplicateMovieClip('enemy' + monSpawn, 25000 + monSpawn); ++formation; if (formation == 1) { _root['enemy' + monSpawn]._x = enem_ArrayX[dunmap * row + col + (dmap - 1) * 70] + 20; _root['enemy' + monSpawn]._y = enem_ArrayY[dunmap * row + col + (dmap - 1) * 70] + 20; } if (formation >= 2) { _root['enemy' + monSpawn]._x = enem_ArrayX[dunmap * row + col + (dmap - 1) * 70] + 40; _root['enemy' + monSpawn]._y = enem_ArrayY[dunmap * row + col + (dmap - 1) * 70] + 20; } if (formation == 3) { _root['enemy' + monSpawn]._x = enem_ArrayX[dunmap * row + col + (dmap - 1) * 70] + 40; _root['enemy' + monSpawn]._y = enem_ArrayY[dunmap * row + col + (dmap - 1) * 70] + 40; } if (formation >= 4) { _root['enemy' + monSpawn]._x = enem_ArrayX[dunmap * row + col + (dmap - 1) * 70] + 20; _root['enemy' + monSpawn]._y = enem_ArrayY[dunmap * row + col + (dmap - 1) * 70] + 40; } if (formation == 5) { _root['enemy' + monSpawn]._x = enem_ArrayX[dunmap * row + col + (dmap - 1) * 70] + 60; _root['enemy' + monSpawn]._y = enem_ArrayY[dunmap * row + col + (dmap - 1) * 70] + 20; } if (formation >= 6) { _root['enemy' + monSpawn]._x = enem_ArrayX[dunmap * row + col + (dmap - 1) * 70] + 60; _root['enemy' + monSpawn]._y = enem_ArrayY[dunmap * row + col + (dmap - 1) * 70] + 40; } if (formation == 7) { _root['enemy' + monSpawn]._x = enem_ArrayX[dunmap * row + col + (dmap - 1) * 70] + 20; _root['enemy' + monSpawn]._y = enem_ArrayY[dunmap * row + col + (dmap - 1) * 70] + 60; } if (formation >= 8) { _root['enemy' + monSpawn]._x = enem_ArrayX[dunmap * row + col + (dmap - 1) * 70] + 40; _root['enemy' + monSpawn]._y = enem_ArrayY[dunmap * row + col + (dmap - 1) * 70] + 60; delete formation; } _root['enemy' + monSpawn].move = 11; delete _root['enemy' + monSpawn].desu; ++monSpawn; } } ++lay; } ItemSheet(dun_Array_itemx[dunmap * row + col + (dmap - 1) * 70], dun_Array_itemy[dunmap * row + col + (dmap - 1) * 70]); delete itemload; delete sheet; delete sheetc; delete lay; if (dun_msg[dunmap * row + col + (dmap - 1) * 70] == null) { } else { chat(dun_msg[dunmap * row + col + (dmap - 1) * 70], 30, 5); } dun_visfull[floor][dunmap * row + col] = 1; tboxRoom = 1; } clearAmbushBug(); delete npcLoadrem; delete npcLoad; dungeonNPCLoad(dun_Array_npcx[dunmap * row + col + (dmap - 1) * 70], dun_Array_npcy[dunmap * row + col + (dmap - 1) * 70]); delete dungeon_Npc_load; loader._x = 0; loader._y = 0; ++loaderT; map.gotoAndStop(dunmap * row + col + (dmap - 1) * 70); player._x = dun_Array_x2[dunmap * row + col + (dmap - 1) * 70]; _root.pool.gotoAndStop(dunmap * row + col + (dmap - 1) * 70); dun_create(); if (centermap == 1) { _root.center1._x = -240; _root.center1._y = -240; _root.center1.gotoAndStop((dunmap - 1) * row + (col - 1) + (dmap - 1) * 70); _root.center2._x = 0; _root.center2._y = -240; _root.center2.gotoAndStop((dunmap - 1) * row + col + (dmap - 1) * 70); _root.center3._x = 240; _root.center3._y = -240; _root.center3.gotoAndStop((dunmap - 1) * row + (col + 1) + (dmap - 1) * 70); _root.center4._x = -240; _root.center4._y = 0; _root.center4.gotoAndStop(dunmap * row + (col - 1) + (dmap - 1) * 70); _root.center6._x = 240; _root.center6._y = 0; _root.center6.gotoAndStop(dunmap * row + (col + 1) + (dmap - 1) * 70); _root.center7._x = -240; _root.center7._y = 240; _root.center7.gotoAndStop((dunmap + 1) * row + (col - 1) + (dmap - 1) * 70); _root.center8._x = 0; _root.center8._y = 240; _root.center8.gotoAndStop((dunmap + 1) * row + col + (dmap - 1) * 70); _root.center9._x = 240; _root.center9._y = 240; _root.center9.gotoAndStop((dunmap + 1) * row + (col + 1) + (dmap - 1) * 70); } } if (player._x < dun_Array_x[dunmap * row + col + (dmap - 1) * 70] && mapChangex2 == null) { removeTroom(); mapChangex2 = 1; } if (loaderT >= 7 && mapChangey == 1 && mapCswitch == null) { mapCswitch = 1; delete _root.fill2; delete _root.crowd; var monaCreate; while (monaCreate < onScreenEnemy + 1) { _root['enemy' + monaCreate].monanim = Math.ceil(Math.random() * monvar) * 20; ++monaCreate; } delete nmecreate; _root.char_atk1._x = -200; _root.char_atk1._y = -200; trace('pullrow'); dunmap -= 1; if (dun_Array_itemy[dunmap * row + col + (dmap - 1) * 70] == null) { _root.item1._x = -999; _root.item2._x = -999; _root.item3._x = -999; _root.item4._x = -999; _root.item5._x = -999; _root.item6._x = -999; } else { dun_memory(); } if (dun_visfull[floor][dunmap * row + col] == null) { ++mc; dun_createdMap[mc] = mc; delete mvp_stats; if (enem_ArrayX[dunmap * row + col + (dmap - 1) * 70] == null) { } else { mvp_encounter = Math.ceil(Math.random() * 10); RNG_nme = Math.ceil(Math.random() * dif_spawn); onScreenEnemy += RNG_nme; } if (dun_tbox[floor][dunmap * row + col] >= 4) { dun_tbox[floor][dunmap * row + col] = 4; } else { dun_tbox[floor][dunmap * row + col] += dif_spawn * RNG_nme - 1; } var lay = null; while (lay < RNG_nme + onScreenEnemy) { delete _root['enemy' + lay].fill; if (enem_ArrayX[dunmap * row + col + (dmap - 1) * 70] == null) { } else { var monSpawn = 1; while (monSpawn < onScreenEnemy + 1) { _root.enemy.duplicateMovieClip('enemy' + monSpawn, 25000 + monSpawn); ++formation; if (formation == 1) { _root['enemy' + monSpawn]._x = enem_ArrayX[dunmap * row + col + (dmap - 1) * 70] + 20; _root['enemy' + monSpawn]._y = enem_ArrayY[dunmap * row + col + (dmap - 1) * 70] + 20; } if (formation >= 2) { _root['enemy' + monSpawn]._x = enem_ArrayX[dunmap * row + col + (dmap - 1) * 70] + 40; _root['enemy' + monSpawn]._y = enem_ArrayY[dunmap * row + col + (dmap - 1) * 70] + 20; } if (formation == 3) { _root['enemy' + monSpawn]._x = enem_ArrayX[dunmap * row + col + (dmap - 1) * 70] + 40; _root['enemy' + monSpawn]._y = enem_ArrayY[dunmap * row + col + (dmap - 1) * 70] + 40; } if (formation >= 4) { _root['enemy' + monSpawn]._x = enem_ArrayX[dunmap * row + col + (dmap - 1) * 70] + 20; _root['enemy' + monSpawn]._y = enem_ArrayY[dunmap * row + col + (dmap - 1) * 70] + 40; } if (formation == 5) { _root['enemy' + monSpawn]._x = enem_ArrayX[dunmap * row + col + (dmap - 1) * 70] + 60; _root['enemy' + monSpawn]._y = enem_ArrayY[dunmap * row + col + (dmap - 1) * 70] + 20; } if (formation >= 6) { _root['enemy' + monSpawn]._x = enem_ArrayX[dunmap * row + col + (dmap - 1) * 70] + 60; _root['enemy' + monSpawn]._y = enem_ArrayY[dunmap * row + col + (dmap - 1) * 70] + 40; } if (formation == 7) { _root['enemy' + monSpawn]._x = enem_ArrayX[dunmap * row + col + (dmap - 1) * 70] + 20; _root['enemy' + monSpawn]._y = enem_ArrayY[dunmap * row + col + (dmap - 1) * 70] + 60; } if (formation >= 8) { _root['enemy' + monSpawn]._x = enem_ArrayX[dunmap * row + col + (dmap - 1) * 70] + 40; _root['enemy' + monSpawn]._y = enem_ArrayY[dunmap * row + col + (dmap - 1) * 70] + 60; delete formation; } _root['enemy' + monSpawn].move = 11; delete _root['enemy' + monSpawn].desu; ++monSpawn; } } ++lay; } ItemSheet(dun_Array_itemx[dunmap * row + col + (dmap - 1) * 70], dun_Array_itemy[dunmap * row + col + (dmap - 1) * 70]); delete itemload; delete sheet; delete sheetc; delete lay; if (dun_msg[dunmap * row + col + (dmap - 1) * 70] == null) { } else { chat(dun_msg[dunmap * row + col + (dmap - 1) * 70], 30, 5); } dun_visfull[floor][dunmap * row + col] = 1; tboxRoom = 1; } clearAmbushBug(); dungeonNPCLoad(dun_Array_npcx[dunmap * row + col], dun_Array_npcy[dunmap * row + col]); delete npcLoadrem; delete dungeon_Npc_load; delete npcLoad; loader._x = 0; loader._y = 0; ++loaderT; map.gotoAndStop(dunmap * row + col + (dmap - 1) * 70); player._y = dun_Array_y2[dunmap * row + col + (dmap - 1) * 70]; _root.pool.gotoAndStop(dunmap * row + col + (dmap - 1) * 70); dun_create(); if (centermap == 1) { _root.center1._x = -240; _root.center1._y = -240; _root.center1.gotoAndStop((dunmap - 1) * row + (col - 1) + (dmap - 1) * 70); _root.center2._x = 0; _root.center2._y = -240; _root.center2.gotoAndStop((dunmap - 1) * row + col + (dmap - 1) * 70); _root.center3._x = 240; _root.center3._y = -240; _root.center3.gotoAndStop((dunmap - 1) * row + (col + 1) + (dmap - 1) * 70); _root.center4._x = -240; _root.center4._y = 0; _root.center4.gotoAndStop(dunmap * row + (col - 1) + (dmap - 1) * 70); _root.center6._x = 240; _root.center6._y = 0; _root.center6.gotoAndStop(dunmap * row + (col + 1) + (dmap - 1) * 70); _root.center7._x = -240; _root.center7._y = 240; _root.center7.gotoAndStop((dunmap + 1) * row + (col - 1) + (dmap - 1) * 70); _root.center8._x = 0; _root.center8._y = 240; _root.center8.gotoAndStop((dunmap + 1) * row + col + (dmap - 1) * 70); _root.center9._x = 240; _root.center9._y = 240; _root.center9.gotoAndStop((dunmap + 1) * row + (col + 1) + (dmap - 1) * 70); } } if (player._y < dun_Array_y[dunmap * row + col + (dmap - 1) * 70] && mapChangey == null) { removeTroom(); mapChangey = 1; } if (loaderT >= 7 && mapChangey2 == 1 && mapCswitch == null) { mapCswitch = 1; delete _root.fill2; delete _root.crowd; var monaCreate; while (monaCreate < onScreenEnemy + 1) { _root['enemy' + monaCreate].monanim = Math.ceil(Math.random() * monvar) * 20; ++monaCreate; } delete nmecreate; _root.char_atk1._x = -200; _root.char_atk1._y = -200; if (dun_visfull[floor][dunmap * row + col] == 1) { } trace('addrow'); dunmap += 1; if (dun_Array_itemy[dunmap * row + col + (dmap - 1) * 70] == null) { _root.item1._x = -999; _root.item2._x = -999; _root.item3._x = -999; _root.item4._x = -999; _root.item5._x = -999; _root.item6._x = -999; } else { dun_memory(); } if (dun_visfull[floor][dunmap * row + col] == null) { ++mc; dun_createdMap[mc] = mc; delete mvp_stats; if (enem_ArrayX[dunmap * row + col + (dmap - 1) * 70] == null) { } else { mvp_encounter = Math.ceil(Math.random() * 10); RNG_nme = Math.ceil(Math.random() * dif_spawn); onScreenEnemy += RNG_nme; } if (dun_tbox[floor][dunmap * row + col] >= 4) { dun_tbox[floor][dunmap * row + col] = 4; } else { dun_tbox[floor][dunmap * row + col] += dif_spawn * RNG_nme - 1; } var lay = null; while (lay < RNG_nme + onScreenEnemy) { delete _root['enemy' + lay].fill; if (enem_ArrayX[dunmap * row + col + (dmap - 1) * 70] == null) { } else { var monSpawn = 1; while (monSpawn < onScreenEnemy + 1) { _root.enemy.duplicateMovieClip('enemy' + monSpawn, 25000 + monSpawn); ++formation; if (formation == 1) { _root['enemy' + monSpawn]._x = enem_ArrayX[dunmap * row + col + (dmap - 1) * 70] + 20; _root['enemy' + monSpawn]._y = enem_ArrayY[dunmap * row + col + (dmap - 1) * 70] + 20; } if (formation >= 2) { _root['enemy' + monSpawn]._x = enem_ArrayX[dunmap * row + col + (dmap - 1) * 70] + 40; _root['enemy' + monSpawn]._y = enem_ArrayY[dunmap * row + col + (dmap - 1) * 70] + 20; } if (formation == 3) { _root['enemy' + monSpawn]._x = enem_ArrayX[dunmap * row + col + (dmap - 1) * 70] + 40; _root['enemy' + monSpawn]._y = enem_ArrayY[dunmap * row + col + (dmap - 1) * 70] + 40; } if (formation >= 4) { _root['enemy' + monSpawn]._x = enem_ArrayX[dunmap * row + col + (dmap - 1) * 70] + 20; _root['enemy' + monSpawn]._y = enem_ArrayY[dunmap * row + col + (dmap - 1) * 70] + 40; } if (formation == 5) { _root['enemy' + monSpawn]._x = enem_ArrayX[dunmap * row + col + (dmap - 1) * 70] + 60; _root['enemy' + monSpawn]._y = enem_ArrayY[dunmap * row + col + (dmap - 1) * 70] + 20; } if (formation >= 6) { _root['enemy' + monSpawn]._x = enem_ArrayX[dunmap * row + col + (dmap - 1) * 70] + 60; _root['enemy' + monSpawn]._y = enem_ArrayY[dunmap * row + col + (dmap - 1) * 70] + 40; } if (formation == 7) { _root['enemy' + monSpawn]._x = enem_ArrayX[dunmap * row + col + (dmap - 1) * 70] + 20; _root['enemy' + monSpawn]._y = enem_ArrayY[dunmap * row + col + (dmap - 1) * 70] + 60; } if (formation >= 8) { _root['enemy' + monSpawn]._x = enem_ArrayX[dunmap * row + col + (dmap - 1) * 70] + 40; _root['enemy' + monSpawn]._y = enem_ArrayY[dunmap * row + col + (dmap - 1) * 70] + 60; delete formation; } _root['enemy' + monSpawn].move = 11; delete _root['enemy' + monSpawn].desu; ++monSpawn; } } ++lay; } ItemSheet(dun_Array_itemx[dunmap * row + col + (dmap - 1) * 70], dun_Array_itemy[dunmap * row + col + (dmap - 1) * 70]); delete itemload; delete sheet; delete sheetc; delete lay; if (dun_msg[dunmap * row + col + (dmap - 1) * 70] == null) { } else { chat(dun_msg[dunmap * row + col + (dmap - 1) * 70], 30, 5); } dun_visfull[floor][dunmap * row + col] = 1; tboxRoom = 1; } clearAmbushBug(); delete npcLoadrem; dungeonNPCLoad(dun_Array_npcx[dunmap * row + col + (dmap - 1) * 70], dun_Array_npcy[dunmap * row + col + (dmap - 1) * 70]); delete dungeon_Npc_load; delete npcLoad; loader._x = 0; loader._y = 0; ++loaderT; map.gotoAndStop(dunmap * row + col + (dmap - 1) * 70); player._y = dun_Array_y[dunmap * row + col + (dmap - 1) * 70]; _root.pool.gotoAndStop(dunmap * row + col + (dmap - 1) * 70); dun_create(); if (centermap == 1) { _root.center1._x = -240; _root.center1._y = -240; _root.center1.gotoAndStop((dunmap - 1) * row + (col - 1) + (dmap - 1) * 70); _root.center2._x = 0; _root.center2._y = -240; _root.center2.gotoAndStop((dunmap - 1) * row + col + (dmap - 1) * 70); _root.center3._x = 240; _root.center3._y = -240; _root.center3.gotoAndStop((dunmap - 1) * row + (col + 1) + (dmap - 1) * 70); _root.center4._x = -240; _root.center4._y = 0; _root.center4.gotoAndStop(dunmap * row + (col - 1) + (dmap - 1) * 70); _root.center6._x = 240; _root.center6._y = 0; _root.center6.gotoAndStop(dunmap * row + (col + 1) + (dmap - 1) * 70); _root.center7._x = -240; _root.center7._y = 240; _root.center7.gotoAndStop((dunmap + 1) * row + (col - 1) + (dmap - 1) * 70); _root.center8._x = 0; _root.center8._y = 240; _root.center8.gotoAndStop((dunmap + 1) * row + col + (dmap - 1) * 70); _root.center9._x = 240; _root.center9._y = 240; _root.center9.gotoAndStop((dunmap + 1) * row + (col + 1) + (dmap - 1) * 70); } } if (player._y > dun_Array_y2[dunmap * row + col + (dmap - 1) * 70] && mapChangey2 == null) { removeTroom(); mapChangey2 = 1; } } } } frame 1 { function clearAmbushBug() { delete _root.enemy1.enemyGridx; delete _root.enemy1.enemyGridy; delete _root.enemy2.enemyGridx; delete _root.enemy2.enemyGridy; delete _root.enemy3.enemyGridx; delete _root.enemy3.enemyGridy; delete _root.enemy4.enemyGridx; delete _root.enemy4.enemyGridy; delete _root.enemy5.enemyGridx; delete _root.enemy5.enemyGridy; delete _root.enemy6.enemyGridx; delete _root.enemy6.enemyGridy; delete _root.enemy7.enemyGridx; delete _root.enemy7.enemyGridy; delete _root.enemy8.enemyGridx; delete _root.enemy8.enemyGridy; order = 0; _root.normchest1._x = -999; _root.mvpchest1._x = -999; delete m_select; delete chestoutput3; delete chestoutput4; delete chestoutput5; delete chestoutput2; delete a_select; delete chestoutput; delete normchestoutput3; delete normchestoutput4; delete normchestoutput5; delete normchestoutput2; delete norm_a_select; delete normchestoutput; delete _root.ambushmemx; delete _root.ambushmemy; } function difficulty() { if (floor == 1) { dif_spawn = 6; difficultyx = 0; } if (floor == 2) { dif_spawn = 2; difficultyx = 1; } if (floor >= 5) { dif_spawn = 4; } } function hitDetect_dungeon(obj, atk, enemy, npc, x) { function enemy_end() { if (_root.enemy1._currentframe >= 61 && _root.enemy1._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] -= 1; } if (mvp_encounter >= setenc && _root.floor >= setfloor && _root.enemy1.health <= 0) { if (mvpdeath == null) { _root.mvp_chest.duplicateMovieClip('mvpchest1', 1951); _root.mvpchest1._x = Math.floor(_root.enemy1._x / 24) * 24 + 12; _root.mvpchest1._y = Math.floor(_root.enemy1._y / 24) * 24 + 12 + 8; mvpdeath = 1; } } if (_root['item' + nmecreate] == null) { ItemSpawn(enemyitem); ++nmecreate; _root.item_.duplicateMovieClip('item' + nmecreate, 860 + nmecreate); _root['item' + nmecreate].gotoAndStop(Math.ceil(Math.random() * (1 + _root.floor))); _root['item' + nmecreate]._x = Math.floor(enemy._x / 24) * 24 + 12; _root['item' + nmecreate]._y = Math.floor(enemy._y / 24) * 24 + 12; } else { ItemSpawn(enemyitem); while (_root['item' + nmecreate] == null) { _root.item_.duplicateMovieClip('item' + nmecreate, 860 + nmecreate); _root['item' + nmecreate].gotoAndStop(Math.ceil(Math.random() * (1 + _root.floor))); _root['item' + nmecreate]._x = Math.floor(enemy._x / 24) * 24 + 12; _root['item' + nmecreate]._y = Math.floor(enemy._y / 24) * 24 + 12; ++nmecreate; } } value = enemy.exp; if (level >= 99) { stats_exp = tnl; } else { stats_exp += value; } chat(value + ' Experience', 30, 5); enemy.dcf = enemy._currentframe; if (enemy.desu == null) { if (m_input == 1) { m_command = 1; } delete m_click_attack; enemy._x = -9999; enemy._y = -9999; removeMovieClip(enemy); onScreenEnemy -= 1; enemy.desu = 1; _root.hdClear = 1; } 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; } delete enemy.fill; } } } if (monMulti == null) { monAnimVar = new Array(); monAnimArray = new Array(); monMulti = 1; } _root.monReadOut2 = _root.enemy1._currentframe + 'y'; _root.monReadOut = _root.enemy1.monanim + 'f' + _root.enemy1.monvar + 'w'; _root.monReadOut3 = monAnimArray.toString(); if (_root.fill2 == null) { var monanimfiller = 1; while (monanimfiller < onScreenEnemy + 1) { if (crowd == null) { monRand = Math.ceil(Math.random() * 6) * 20; crowd = Math.ceil(Math.random() * 3); } if (crowd > 2) { monAnimArray[monanimfiller] = monRand; } else { monAnimVar[monanimfiller] = 6; monAnimArray[monanimfiller] = Math.ceil(Math.random() * monAnimVar[monanimfiller]) * 20; } ++monanimfiller; } _root.fill2 = 1; } if (floor == null) { floor = 1; } if (onScreenEnemy <= 0) { delete onScreenCode; } else { if (onScreenEnemy >= onScreenCode) { ++onScreenCode; } } if (enemy.atk == null) { spd = 2.5; if (enemy.move == 1) { enemy._y += spd; animate(enemy, 1 + monAnimArray[x]); } if (enemy.move == 2) { enemy._x += spd; enemy._y += spd; animate(enemy, 2 + monAnimArray[x]); enemy._xscale = -100; } if (enemy.move == 3) { enemy._x += spd; animate(enemy, 3 + monAnimArray[x]); enemy._xscale = -100; } if (enemy.move == 4) { enemy._x += spd; enemy._y -= spd; animate(enemy, 4 + monAnimArray[x]); enemy._xscale = -100; } if (enemy.move == 5) { enemy._y -= spd; animate(enemy, 5 + monAnimArray[x]); } if (enemy.move == 6) { enemy._y -= spd; enemy._x -= spd; animate(enemy, 4 + monAnimArray[x]); enemy._xscale = 100; } if (enemy.move == 7) { enemy._x -= spd; animate(enemy, monAnimArray[x] + 2); enemy._xscale = 100; } if (enemy.move == 8) { enemy._x -= spd; enemy._y += spd; animate(enemy, 2 + monAnimArray[x]); enemy._xscale = 100; } if (enemy.move >= 9) { if (enemy._currentframe > monAnimArray[x] + 10) { enemy.gotoAndStop(monAnimArray[x] - 5); enemy.gotoAndStop(monAnimArray[x] + 5); } else { enemy.gotoAndStop(monAnimArray[x] + 10); } } } if (enemy.ht_AI == null) { enemy.ht_AI = Math.ceil(Math.random() * 80 + 120); } if (enemy.stun == 1) { enemy.move = 11; delete enemy.atk; delete enemy.ht; if (enemy._currentframe >= monAnimArray[x] + 5) { enemy.gotoAndStop(monAnimArray[x] - 5); enemy.gotoAndStop(monAnimArray[x] + 5); } else { enemy.gotoAndStop(monAnimArray[x] + 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[x] + 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.charhb) && enemy.stun == null) { faceTarget_NME = 1; enemy.atk = 1; } if (Math.abs(enemy._y - obj._y) < 100) { if (Math.abs(enemy._x - obj._x) < 100) { enemy.atk = 1; } } if (enemy.health == null) { 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; } 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; } if (class == 1 || class == 2) { ptscan = 1; while (ptscan < 11) { if (_root['charshadow' + ptscan]._alpha <= 0) { removeMovieClip(_root['charshadow' + ptscan]); } else { _root['charshadow' + ptscan]._alpha -= 0.001; } ++ptscan; } } 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 = 38; } else { sf_buff = 0; } if (mightbuff == 1) { m_buff = 3; } 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; } enemy_end(); ROU = damage + '|' + enemy.health; weapon_abs = Math.abs(weaponHigh[equipArray[4]] - weaponLow[equipArray[4]]); weapon_start = weaponLow[equipArray[4]]; 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 (Key.isDown(83)) { 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 += damage + ':' + enemy.health + 'current ' + (enemy.health - damage) + '<br>'; _root.enemyRO2 = 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 += 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 (s_ambush == 1 && Key.isDown(83) || invis_buff == 1) { charshadowfunc(); _root.ambushnme_hitpoints.duplicateMovieClip('ambush_hitpoints' + pointsnum, 6100 + 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, 5000 + 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 { _root.damage_mc.duplicateMovieClip('damage_mc' + pointsnum, 5000 + 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; } _root.nme_hitpoints.duplicateMovieClip('nme_hitpoints' + pointsnum, 6000 + pointsnum); if (_root['nme_hitpoints' + pointsnum].lx == null) { _root['nme_hitpoints' + pointsnum]._x = enemy._x; _root['nme_hitpoints' + pointsnum]._y = enemy._y - 20; _root['nme_hitpoints' + pointsnum].lx = 1; } delete enemy.atk; } } else { _root.nme_hitpoints.duplicateMovieClip('nme_hitpoints' + pointsnum, 6000 + pointsnum); if (_root['nme_hitpoints' + pointsnum].lx == null) { _root['nme_hitpoints' + pointsnum]._x = enemy._x; _root['nme_hitpoints' + pointsnum]._y = enemy._y - 20; _root['nme_hitpoints' + pointsnum].lx = 1; } } enemy_end(); } else {} plimit = 10; _root['nme_hitpoints' + pointsnum].display = damage; _root['ambushnme_hitpoints' + pointsnum].display = damage; goldwindow = 'GOLD:' + gold; if (npc_menu == 1) { sellItem1 = sellArraynum[1]; sellItem2 = sellArraynum[2]; sellItem3 = sellArraynum[3]; sellItem4 = sellArraynum[4]; sellItem5 = sellArraynum[5]; if (sellArray == null) { sellModW = new Array(); sellModA = new Array(); sellModW[1] = weapmod[itemModW[1]]; sellModW[2] = weapmod[itemModW[2]]; sellModW[3] = weapmod[itemModW[3]]; sellModW[4] = weapmod[itemModW[4]]; sellModW[5] = weapmod[itemModW[5]]; sellModA[1] = weapmod[itemModA[1]]; sellModA[2] = weapmod[itemModA[2]]; sellModA[3] = weapmod[itemModA[3]]; sellModA[4] = weapmod[itemModA[4]]; sellModA[5] = weapmod[itemModA[5]]; sellNum = new Array(); sellArraynum = new Array(); sellArray = new Array(); buyNum = new Array(); buyArraynum = new Array(); buyArray = new Array(); buyPriceList = new Array(); buyPriceList = [0, 50, 0, 0, 1200, 0, 200, 1600, 2000, 800, 0, 100, 300, 15000, 100, 200, 5000, 1000, 30000, 1000, 50000, 60000, 70000, 50000, 60000, 70000, 30000, 30000, 10000, 20000, 30000, 40000, 50000, 60000, 10000, 20000, 30000, 40000, 50000, 0, 0, 0, 1, 2, 3, 20, 200, 400, 5, 150]; } if (_root['npc_window_' + windowNum]._currentframe == 4) { if (Key.isDown(68) || m_input == 1 && _root['npc_window_' + windowNum].button3.hitTest(_xmouse, _ymouse, true) || m_input == 1 && _root['npc_window_' + windowNum].button5.hitTest(_xmouse, _ymouse, true)) { delete sellNum; delete sellArraynum; delete sellArray; delete confirm; delete s_move; delete m_input; _root['npc_window_' + windowNum].gotoAndStop(1); } if (!Key.isDown(83)) { confirm = 1; } if (Key.isDown(83) && confirm == 1 && _root['npc_window_' + windowNum]._currentframe == 4 || m_input == 1 && _root['npc_window_' + windowNum].button2.hitTest(_xmouse, _ymouse, true) && confirm == 1 || m_input == 1 && _root['npc_window_' + windowNum].button4.hitTest(_xmouse, _ymouse, true) && confirm == 1) { itemNum[1] -= sellNum[1]; itemNum[2] -= sellNum[2]; itemNum[3] -= sellNum[3]; itemNum[4] -= sellNum[4]; itemNum[5] -= sellNum[5]; delete item_usage; _root.sounditem1.gotoAndStop(3); gold += sellgold; delete sellgold; if (itemNum[1] <= 0) { itemArraynum[1] = null; delete itemNum[1]; itemModW[1] = null; itemModA[1] = null; } if (itemNum[2] <= 0) { itemArraynum[2] = null; delete itemNum[2]; itemModW[2] = null; itemModA[2] = null; } if (itemNum[3] <= 0) { itemArraynum[3] = null; delete itemNum[3]; itemModW[3] = null; itemModA[3] = null; } if (itemNum[4] <= 0) { itemArraynum[4] = null; delete itemNum[4]; itemModW[4] = null; itemModA[4] = null; } if (itemNum[5] <= 0) { itemArraynum[5] = null; delete itemNum[5]; itemModW[5] = null; itemModA[5] = null; } delete sellNum; delete sellArraynum; delete sellArray; delete confirm; delete s_move; _root['npc_window_' + windowNum].gotoAndStop(1); delete m_input; } } if (_root['npc_window_' + windowNum]._currentframe == 3) { npc_msg = 'What\'re you willing to sell today?'; item_usage = 1; sellpage = 1; sellboxp1 = (buyPricelist[sellArraynum[1]] * sellNum[1] + itemModW[1] * 10 + itemModA[1] * 10) / 2; sellboxp2 = (buyPricelist[sellArraynum[2]] * sellNum[2] + itemModW[2] * 10 + itemModA[2] * 10) / 2; sellboxp3 = (buyPricelist[sellArraynum[3]] * sellNum[3] + itemModW[3] * 10 + itemModA[3] * 10) / 2; sellboxp4 = (buyPricelist[sellArraynum[4]] * sellNum[4] + itemModW[4] * 10 + itemModA[4] * 10) / 2; sellboxp5 = (buyPricelist[sellArraynum[5]] * sellNum[5] + itemModW[5] * 10 + itemModA[5] * 10) / 2; sellnumx = sellNum[keys]; itembox1 = itemNum[1]; itembox2 = itemNum[2]; itembox3 = itemNum[3]; itembox4 = itemNum[4]; itembox5 = itemNum[5]; sellbox1 = sellNum[1]; sellbox2 = sellNum[2]; sellbox3 = sellNum[3]; sellbox4 = sellNum[4]; sellbox5 = sellNum[5]; if (!Key.isDown(83)) { s_move = 1; } if (s_move == 1 && Key.isDown(83) || m_input == 1 && _root['npc_window_' + windowNum].button2.hitTest(_xmouse, _ymouse, true)) { if (sellNum[1] >= 1 || sellNum[2] >= 1 || sellNum[3] >= 1 || sellNum[4] >= 1 || sellNum[5] >= 1) { _root['npc_window_' + windowNum].gotoAndStop(4); delete s_move; delete m_input; } } if (Key.isDown(65) || m_input == 1 && _root['npc_window_' + windowNum].button1.hitTest(_xmouse, _ymouse, true)) { if (oversell >= 100) { if (sellNum[keys] >= itemNum[keys]) { } else { sellgold += (buyPriceList[itemArraynum[keys]] + itemModW[keys] * 10 + itemModA[keys] * 10) / 2; sellNum[keys] += 1; } } else { ++oversell; } delete m_input; if (sell_input == null) { sellArraynum[keys] = itemArrayNum[keys]; if (itemNum[keys] <= 0) { delete itemArraynum[keys]; delete itemNum[keys]; } else { if (sellNum[keys] >= itemNum[keys]) { } else { sellgold += (buyPriceList[itemArraynum[keys]] + itemModW[keys] * 10 + itemModA[keys] * 10) / 2; sellNum[keys] += 1; } } sell_input = 1; } } else { delete oversell; delete sell_input; } if (_root.hud_mc1.macro.button1.hitTest(_xmouse, _ymouse, true) && m_input == 1) { keys = 1; } if (_root.hud_mc1.macro.button2.hitTest(_xmouse, _ymouse, true) && m_input == 1) { keys = 2; } if (_root.hud_mc1.macro.button3.hitTest(_xmouse, _ymouse, true) && m_input == 1) { keys = 3; } if (_root.hud_mc1.macro.button4.hitTest(_xmouse, _ymouse, true) && m_input == 1) { keys = 4; } if (_root.hud_mc1.macro.button5.hitTest(_xmouse, _ymouse, true) && m_input == 1) { keys = 5; } itemdescro = descW[itemModW[keys]] + '<br>' + descA[itemModA[keys]] + '<br>'; shoprocur1 = weapmod[itemModW[keys]]; shoprocur2 = armormod[itemModA[keys]]; shoprocur3 = itemMsg[itemArraynum[keys]]; if (Key.isDown(39)) { if (r_input == null) { if (keys >= 5) { keys = 1; } else { ++keys; } r_input = 1; } } else { delete r_input; } if (Key.isDown(37)) { if (l_input == null) { if (keys <= 1) { keys = 5; } else { --keys; } l_input = 1; } } else { delete l_input; } if (a_menu_input == 1 || m_input == 1 && _root['npc_window_' + windowNum].button1.hitTest(_xmouse, _ymouse, true)) { delete a_menu_input; } if (s_menu_input == 1 || m_input == 1 && _root['npc_window_' + windowNum].button2.hitTest(_xmouse, _ymouse, true)) { delete s_menu_input; } if (f_menu_input == 1 || m_input == 1 && _root['npc_window_' + windowNum].button3.hitTest(_xmouse, _ymouse, true)) { _root['npc_window_' + windowNum].gotoAndStop(1); delete f_menu_input; } } if (_root['npc_window_' + windowNum]._currentframe == 5) { npc_msg2 = 'Are you sure you want to fill slot ' + keys + '?'; if (!m_input == 1) { m_edit = 1; } if (!Key.isDown(65)) { buyedit = 1; } if (Key.isDown(65) && buyedit == 1 || m_input == 1 && _root['npc_window_' + windowNum].button1.hitTest(_xmouse, _ymouse, true) && m_edit == 1) { if (sell_input3 == null) { if (gold > buyPricelist[buyshopSelect]) { buyArraynum[keys] = itemArrayNum[keys]; itemArraynum[keys] = buyshopSelect; if (Key.isDown(Key.getCode())) { itemNum[keys] = 1; gold -= buyPricelist[buyshopSelect]; sell_input = 1; } else { itemNum[keys] = 1; gold -= buyPricelist[buyshopSelect]; } _root.sounditem1.gotoAndStop(3); _root['npc_window_' + windowNum].gotoAndStop(2); sell_input3 = 1; } } } else { delete sell_input3; } if (Key.isDown(68)) { if (f_input == null || m_input == 1 && _root['npc_window_' + windowNum].button3.hitTest(_xmouse, _ymouse, true)) { _root['npc_window_' + windowNum].gotoAndStop(2); f_input = 1; } } } if (_root['npc_window_' + windowNum]._currentframe == 2) { if (_root.hud_mc1.macro.button1.hitTest(_xmouse, _ymouse, true) && m_input == 1) { keys = 1; } if (_root.hud_mc1.macro.button2.hitTest(_xmouse, _ymouse, true) && m_input == 1) { keys = 2; } if (_root.hud_mc1.macro.button3.hitTest(_xmouse, _ymouse, true) && m_input == 1) { keys = 3; } if (_root.hud_mc1.macro.button4.hitTest(_xmouse, _ymouse, true) && m_input == 1) { keys = 4; } if (_root.hud_mc1.macro.button5.hitTest(_xmouse, _ymouse, true) && m_input == 1) { keys = 5; } if (shopmemory >= 1) { shopMenuArrowU = 1; } else { delete shopMenuArrowU; } if (view < buyArraynum.length) { shopMenuArrowD = 1; } else { delete shopMenuArrowD; } npc_msg = 'I think I can accomodate some of the things you need. What would you like?'; delete f_input; item_usage = 1; buypage = 1; itembox1 = itemNum[1]; itembox2 = itemNum[2]; itembox3 = itemNum[3]; itembox4 = itemNum[4]; itembox5 = itemNum[5]; buybox1 = buyNum[1]; buybox2 = buyNum[2]; buybox3 = buyNum[3]; buybox4 = buyNum[4]; buybox5 = buyNum[5]; buyboxp1 = buyPricelist[buyArraynum[counter + 1]]; buyboxp2 = buyPricelist[buyArraynum[counter + 2]]; buyboxp3 = buyPricelist[buyArraynum[counter + 3]]; buyboxp4 = buyPricelist[buyArraynum[counter + 4]]; buyboxp5 = buyPricelist[buyArraynum[counter + 5]]; buynumx = itemNum[keys]; buyArraynum = [0, 6, 13, 45, 1, 48, 49, 46, 47, 14, 17, 20, 23, 15, 18, 21, 24, 16, 19, 22, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38]; buyshopSelect = buyArraynum[shopselect + counter]; bdNum1 = buyArraynum[counter + 1]; bdNum2 = buyArraynum[counter + 2]; bdNum3 = buyArraynum[counter + 3]; bdNum4 = buyArraynum[counter + 4]; bdNum5 = buyArraynum[counter + 5]; if (bdNum1 == null) { view = 5; } if (buyDisplaynum == null) { buyDisplaynum = [buyArraynum[1], buyArraynum[2], buyArraynum[3], buyArraynum[4], buyArraynum[5]]; } item_usage = 1; if (!m_input == 1) { m_edit = 1; } if (_root['npc_window_' + windowNum]._currentframe == 2 && !Key.isDown(65)) { delete sell_input; if (inputhotfix == 1) { if (buystart == null) { buystart = 1; } } else { ++inputhotfix; } } if (Key.isDown(65) && buystart == 1 && _root['npc_window_' + windowNum]._currentframe == 2 || m_input == 1 && _root['npc_window_' + windowNum].button1.hitTest(_xmouse, _ymouse, true) && m_edit == 1) { if (overbuy >= 100) { if (gold > buyPriceList[buyshopSelect]) { buyArraynum[keys] = itemArrayNum[keys]; if (itemArrayNum[keys] == buyshopSelect) { itemNum[keys] += 1; gold -= buyPricelist[buyshopSelect]; _root.sounditem1.gotoAndStop(3); delete m_input; } else { _root['npc_window_' + windowNum].gotoAndStop(5); } } if (gold < buyPriceList[buyshopSelect]) { if (cmsg == null) { chat('<b>You do not have enough gold</b>', 30, 5); cmsg = 1; } } } else { ++overbuy; delete m_input; buystart = 1; } if (sell_input == null) { if (gold > buyPriceList[buyshopSelect]) { buyArraynum[keys] = itemArrayNum[keys]; if (itemArraynum[keys] == buyshopSelect) { itemNum[keys] += 1; gold -= buyPricelist[buyshopSelect]; _root.sounditem1.gotoAndStop(3); sell_input = 1; } else { _root['npc_window_' + windowNum].gotoAndStop(5); } } if (gold < buyPriceList[buyshopSelect]) { if (cmsg == null) { chat('<b>You do not have enough gold</b>', 30, 5); cmsg = 1; } } } else { sell_input = 1; } } else { delete cmsg; if (Key.isDown(65)) { } else { delete overbuy; } } if (Key.isDown(39)) { if (r_input == null) { if (keys >= 5) { keys = 1; } else { ++keys; } r_input = 1; } } else { delete r_input; } if (Key.isDown(37)) { if (l_input == null) { if (keys <= 1) { keys = 5; } else { --keys; } l_input = 1; } } else { delete l_input; } if (Key.isDown(40) || m_input == 1 && _root['npc_window_' + windowNum].DOWN.hitTest(_xmouse, _ymouse, true)) { if (up_input == null) { if (keys2 >= 5) { if (view == null) { view = 6; } if (view < buyArraynum.length) { bdNum1 = buyArraynum[view - 4]; bdNum2 = buyArraynum[view - 3]; bdNum3 = buyArraynum[view - 2]; bdNum4 = buyArraynum[view - 1]; bdNum5 = buyArraynum[view]; ++view; ++counter; } } else { ++keys2; } ++shopmemory; up_input = 1; } } else { delete up_input; } if (Key.isDown(38) || m_input == 1 && _root['npc_window_' + windowNum].UP.hitTest(_xmouse, _ymouse, true)) { if (down_input == null) { if (keys2 <= 1) { if (view == null) { view = 6; } if (view <= 6) { } else { bdNum1 = buyDisplaynum[view - 4]; bdNum2 = buyDisplaynum[view - 3]; bdNum3 = buyDisplaynum[view - 2]; bdNum4 = buyDisplaynum[view - 1]; bdNum5 = buyDisplaynum[view]; --view; --counter; } } else { --keys2; } if (shopmemory <= 0) { delete shopmemory; } else { --shopmemory; } down_input = 1; } } else { delete down_input; } if (a_menu_input == 1) { delete a_menu_input; } if (s_menu_input == 1) { _root['npc_window_' + windowNum].gotoAndStop(3); } if (f_menu_input == 1 || m_input == 1 && _root['npc_window_' + windowNum].button3.hitTest(_xmouse, _ymouse, true)) { _root['npc_window_' + windowNum].gotoAndStop(1); delete f_menu_input; } } if (_root['npc_window_' + windowNum]._currentframe == 1) { buyshopSelect = buyArraynum[shopselect + counter]; delete buystart; delete overbuy; delete inputhotfix; delete sellgold; delete sellpage; delete sellNum; delete sellArraynum; delete sellArray; delete confirm; delete s_move; delete counter; delete view; delete buyedit; delete m_edit; npc_msg = 'Hello, how can I help you today?'; if (a_menu_input == 1 || m_input == 1 && _root['npc_window_' + windowNum].button1.hitTest(_xmouse, _ymouse, true)) { _root['npc_window_' + windowNum].gotoAndStop(2); delete a_menu_input; delete m_input; } if (s_menu_input == 1 || m_input == 1 && _root['npc_window_' + windowNum].button2.hitTest(_xmouse, _ymouse, true)) { _root['npc_window_' + windowNum].gotoAndStop(3); delete s_menu_input; delete m_input; } if (f_menu_input == 1 && _root['npc_window_' + windowNum]._currentframe == 1 || m_input == 1 && _root['npc_window_' + windowNum].button3.hitTest(_xmouse, _ymouse, true)) { removeMovieClip(_root['npc_window_' + windowNum]); delete s_menu_input; delete start_menu_input; delete item_usage; delete npc_menu; delete f_menu_input; delete m_input; } } if (Key.isDown(83) || m_input == 1 && _root['npc_window_' + windowNum].button2.hitTest(_xmouse, _ymouse, true)) { if (s_menu_input == null && _root['npc_window_' + windowNum]._currentframe == 1) { s_menu_input = 1; delete m_input; } } else { delete s_menu_input; } if (Key.isDown(65) || m_input == 1 && _root['npc_window_' + windowNum].button1.hitTest(_xmouse, _ymouse, true)) { if (a_menu_input == null) { a_menu_input = 1; } } else { delete a_menu_input; } if (Key.isDown(68) || m_input == 1 && _root['npc_window_' + windowNum].button3.hitTest(_xmouse, _ymouse, true)) { if (f_menu_input == null) { if (_root['npc_window_' + windowNum]._currentframe == 2 || _root['npc_window_' + windowNum]._currentframe == 3) { f_menu_input = 2; _root['npc_window_' + windowNum].gotoAndStop(1); } else { f_menu_input = 1; } } } else { delete f_menu_input; } } if (!dun_Array_npcx[dunmap * row + col] == null) { } if (npc.hitTest(obj.hb) || npc.hitTest(_root.landmouse) && Math.abs(npc._x - obj._x) < 72 && Math.abs(npc._y - obj._y) < 72) { if (Key.isDown(83) && npc_menu == null || npc.hitTest(_root.landmouse) && m_command == 1 && npc_menu == null) { if (start_menu_input == null) { ++windowNum; trace('hw'); _root.npc_window.duplicateMovieClip('npc_window_' + windowNum, 12000 + windowNum); _root['npc_window_' + windowNum]._x = 0; _root['npc_window_' + windowNum]._y = 0; npc_menu = 1; s_menu_input = 2; start_menu_input = 1; if (obj._currentframe <= 5) { obj.gotoAndStop(obj._currentframe + 5); } } } else { delete start_menu_input; } } } function game_hitDetect_dungeon(obj, atk, enemy, npc, x) { hitDetect_dungeon(obj, atk, enemy, npc, x); } function game_items_dungeon(char) { 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 thrower(spd, max, limit) { 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; } } 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.hud_mc1.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] -= 1; ++thrownw; } } } var thrownm; while (thrownm < thrownI) { _root['thrown' + thrownm]._y += thrownArrayy[thrownm]; _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 -= 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 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.enemy1._x); zapdisty = Math.abs(_root.char1._y - _root.enemy1._y); zapdistx2 = Math.abs(_root.char1._x - _root.enemy2._x); zapdisty2 = Math.abs(_root.char1._y - _root.enemy2._y); zapdistx3 = Math.abs(_root.char1._x - _root.enemy3._x); zapdisty3 = Math.abs(_root.char1._y - _root.enemy3._y); zapdistx4 = Math.abs(_root.char1._x - _root.enemy4._x); zapdisty4 = Math.abs(_root.char1._y - _root.enemy4._y); zapdistx5 = Math.abs(_root.char1._x - _root.enemy5._x); zapdisty5 = Math.abs(_root.char1._y - _root.enemy5._y); zapdistx6 = Math.abs(_root.char1._x - _root.enemy6._x); zapdisty6 = Math.abs(_root.char1._y - _root.enemy6._y); zapdistx7 = Math.abs(_root.char1._x - _root.enemy7._x); zapdisty7 = Math.abs(_root.char1._y - _root.enemy7._y); zapdistx8 = Math.abs(_root.char1._x - _root.enemy8._x); zapdisty8 = Math.abs(_root.char1._y - _root.enemy8._y); zapdist = 121; if (zapdistx >= zapdist && order == 1 || zapdisty._y >= zapdist && order == 1 || _root.enemy1._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.enemy2._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.enemy3._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.enemy4._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.enemy5._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.enemy6._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.enemy7._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.enemy8._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.enemy1._x == 1) { order = 0; } else { mousetarg(_root.enemy1, 1); mousetarg(_root.enemy2, 2); mousetarg(_root.enemy3, 3); mousetarg(_root.enemy4, 4); mousetarg(_root.enemy5, 5); mousetarg(_root.enemy6, 6); mousetarg(_root.enemy7, 7); mousetarg(_root.enemy8, 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; } else { _root.targ1._y = _root['enemy' + order]._y - 20; _root.targ1._x = _root['enemy' + order]._x; _root.targ1._yscale = _root['enemy' + order].hb._yscale; _root.targ1._xscale = _root['enemy' + order].hb._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 zapuse(obj, multiple) { zap = 25; if (order == 0) { if (multiple == 1) { } else { player_health -= zap; } } else { if (multiple == 1) { } else { _root['enemy' + order].health -= zap; } } 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; _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 += heal; } } else { if (_root['enemy' + order].health >= _root['enemy' + order].stats_health) { _root['enemy' + order].health = _root['enemy' + order].stats_health; } else { _root['enemy' + 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; } function itemfiller(value) { function create() { _root.item_.duplicateMovieClip('item' + nmecreate, 980 + nmecreate); _root['item' + nmecreate].gotoAndStop(ItemArraynum[value]); _root['item' + nmecreate]._x = Math.floor(_root.char1._x / 24) * 24 + 12; _root['item' + nmecreate]._y = Math.floor(_root.char1._y / 24) * 24 + 12; _root['item' + nmecreate].itemModW = 1; } 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 dropPatt(patt) { if (_root.dun_map1.hb.hitTest(_root.char1._x, _root.char1._y + 24, true) || _root.dun_map1.hb.hitTest(_root.char1._x, _root.char1._y - 24, true)) { if (_root.dun_map1.hb.hitTest(_root.char1._x - 24, _root.char1._y, true)) { _root['item' + nmecreate]._x = Math.floor(_root.char1._x / 24) * 24 + 12 + 24; _root['item' + nmecreate]._y = Math.floor(_root.char1._y / 24) * 24 + 12; } else { _root['item' + nmecreate]._x = Math.floor(_root.char1._x / 24) * 24 + 12 - 24; _root['item' + nmecreate]._y = Math.floor(_root.char1._y / 24) * 24 + 12; } } else { if (_root.dun_map1.hb.hitTest(_root.char1._x - 24, _root.char1._y, true) || _root.dun_map1.hb.hitTest(_root.char1._x + 24, _root.char1._y, true)) { _root['item' + nmecreate]._x = Math.floor(_root.char1._x / 24) * 24 + 12; _root['item' + nmecreate]._y = Math.floor(_root.char1._y / 24) * 24 + 12 + 24; } else { _root['item' + nmecreate]._x = Math.floor(_root.char1._x / 24) * 24 + 12; _root['item' + nmecreate]._y = Math.floor(_root.char1._y / 24) * 24 + 12 + 24; } } if (patt == null) { } if (patt == 1) { _root['item' + nmecreate]._x = Math.floor(_root.char1._x / 24) * 24 + 12 - 24; _root['item' + nmecreate]._y = Math.floor(_root.char1._y / 24) * 24 + 12; } if (patt == 2) { _root['item' + nmecreate]._x = Math.floor(_root.char1._x / 24) * 24 + 12 + 24; _root['item' + nmecreate]._y = Math.floor(_root.char1._y / 24) * 24 + 12; } } 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] -= 1; chat('You dropped ' + itemMsg[ItemArraynum[value]] + '(' + '1' + ')', 30, 5); itemfiller(value); dropPatt(); } } if (_root['item' + nmecreate].number == null) { chat('You dropped ' + itemMsg[ItemArraynum[value]] + '(' + '1' + ')', 30, 5); 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] -= 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] -= 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 { ItemNum[value] -= 1; chat('You dropped ' + itemMsg[ItemArraynum[value]] + '(' + ItemNum[value] + ')', 30, 5); ++_root['item' + nmecreate].number; _root['item' + nmecreate].gotoAndStop(ItemArraynum[value]); } } } else { if (ItemNum[value] <= 0) { if (!ItemArraynum[value] == null) { if (nmecreate >= 10) { chat('<b>Cannot Drop More Items.</b>', 30, 5); } else { ItemNum[value] -= 1; chat('You dropped ' + itemMsg[ItemArraynum[value]] + '(' + '0' + ')', 30, 5); itemfiller(value); 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] -= 1; chat('You dropped ' + itemMsg[ItemArraynum[value]] + '(' + ItemNum[value] + ')', 30, 5); itemfiller(value); prevItem = value; dropPatt(); } } } } 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; } } function useEngine(value) { _root.t = _root.hud_mc1.macro._currentframe; if (itemArraynum[value] == null) { delete itemModW[value]; delete itemModA[value]; } if (useitem == null) { if (_root.hud_mc1.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] == 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] -= 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 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 SpellUse(KEY1, KEY2, KEY3, KEY4, KEY5, KEY6) { function mousehudspells(arg, mnum) { if (arg) { if (keys == mnum) { if (_root.char1._currentframe <= 5) { _root.char1.gotoAndStop(_root.char1._currentframe + 5); } spellUseEngine(keys); delete m_input; } else { keys = mnum; } } } mousehudspells(_root.hud_mc1.spellList.item1.hitTest(_xmouse, _ymouse, true) && m_input == 1, 1); mousehudspells(_root.hud_mc1.spellList.item2.hitTest(_xmouse, _ymouse, true) && m_input == 1, 2); mousehudspells(_root.hud_mc1.spellList.item3.hitTest(_xmouse, _ymouse, true) && m_input == 1, 3); mousehudspells(_root.hud_mc1.spellList.item4.hitTest(_xmouse, _ymouse, true) && m_input == 1, 4); mousehudspells(_root.hud_mc1.spellList.item5.hitTest(_xmouse, _ymouse, true) && m_input == 1, 5); if (Key.isDown(KEY1)) { if (a_key == null) { 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 Inventory(KEY1, KEY2, KEY3, KEY4, KEY5, KEY6) { function mousehud(arg, mnum) { if (arg) { if (keys == mnum) { if (_root.char1._currentframe <= 5) { _root.char1.gotoAndStop(_root.char1._currentframe + 5); } useEngine(keys); delete m_input; } else { keys = mnum; } } } mousehud(_root.hud_mc1.macro.button1.hitTest(_xmouse, _ymouse, true) && m_input == 1, 1); mousehud(_root.hud_mc1.macro.button2.hitTest(_xmouse, _ymouse, true) && m_input == 1, 2); mousehud(_root.hud_mc1.macro.button3.hitTest(_xmouse, _ymouse, true) && m_input == 1, 3); mousehud(_root.hud_mc1.macro.button4.hitTest(_xmouse, _ymouse, true) && m_input == 1, 4); mousehud(_root.hud_mc1.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 goldcollector(obj) { if (enemyitem == 2) { gold += itemGold[1]; _root.sounditem1.gotoAndStop(3); chat(itemMsg[enemyItem] + '(' + itemGold[1] + ')', 30, 5); removeMovieClip(obj); delete enemyitem; } else { if (enemyitem == 3) { gold += itemGold[2]; _root.sounditem1.gotoAndStop(3); chat(itemMsg[enemyItem] + '(' + itemGold[2] + ')', 30, 5); removeMovieClip(obj); delete enemyitem; } else { if (enemyitem == 5) { gold += itemGold[3]; _root.sounditem1.gotoAndStop(3); chat(itemMsg[enemyItem] + '(' + itemGold[3] + ')', 30, 5); removeMovieClip(obj); delete enemyitem; } else { if (enemyitem == 10) { 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 && itemModW[1] == ewbox && itemModA[1] == eabox) { itemModW[1] = ewbox; itemModA[1] = eabox; 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 && itemModW[2] == ewbox && itemModA[2] == eabox) { itemModW[2] = ewbox; itemModA[2] = eabox; 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 && itemModW[3] == ewbox && itemModA[3] == eabox) { itemModW[3] = ewbox; itemModA[3] = eabox; 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 && itemModW[4] == ewbox && itemModA[4] == eabox) { itemModW[4] = ewbox; itemModA[4] = eabox; 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 && itemModW[5] == ewbox && itemModA[5] == eabox) { itemModW[5] = ewbox; itemModA[5] = eabox; 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] += 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] += 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 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] -= 1; } } } ++unequip; } } else { chat('<b>Can\'t Remove; Your Inventory is full</b>', 30, 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; } } 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) { } else {} 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; } 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]]; 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] += 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] += 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] += 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] += 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; } } 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 (zap_t_use == 1) { delete zapm; delete zapnumber; delete zap_m; delete spell_input; zapTot = 5; spells_target(); if (order >= 9) { _root.targ1._y = -99999; delete zap_t_use; 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 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 (zap_m == 1) { if (spell_input == 1) { delete zap_t_use; if (order == 0) { } else { if (zapm >= 3) { delete effectst; _root['enemy' + order].stun = 1; _root['enemy' + order].stunTimer = 1; _root.targ1._y = -99999; _root['enemy' + order].health -= zap; zapuse(_root['enemy' + order], 1); delete zapm; ++zapnumber; } else { if (_root.enemy1._x == null && _root.enemy2._x == null && _root.enemy3._x == null && _root.enemy4._x == null && _root.enemy5._x == null && _root.enemy6._x == null && _root.enemy7._x == null && _root.enemy8._x == null) { delete zapm; delete zapnumber; delete zap_m; delete spell_input; order = 0; } else { ++zapm; } } if (zapnumber >= 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 -= 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 -= 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 -= 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 -= 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 -= 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 -= 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 -= 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 -= 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 -= 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 -= 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 -= 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 -= 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['enemy' + 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; for (;;) { if (!(player_mana < stats_mana && i < 25)) break; 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 -= 50; var i; for (;;) { if (!(player_mana < stats_mana && i < 300)) break; 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 -= 50; var i; for (;;) { if (!(player_mana < stats_mana && i < 450)) break; 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; for (;;) { if (!(player_health < stats_health && i < 500)) break; 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; for (;;) { if (!(player_health < stats_health && i < 50)) break; 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 -= 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.hud_mc1.time.gotoAndStop(2); } else { _root.hud_mc1.time.gotoAndStop(1); } if (Key.isDown(90) || _root.hud_mc1.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.hud_mc1.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.hud_mc1.spell.gotoAndStop(1); } if (use_menu == 2) { spell_usage = 1; _root.hud_mc1.spell.gotoAndStop(2); } if (use_menu >= 3) { delete spell_usage; use_menu = 1; } } else { delete use_input; } if (Key.isDown(71) || _root.hud_mc1.equip.hitTest(_xmouse, _ymouse, true) && m_input == 1) { equip_usage = 1; } else { if (_root.hud_mc1.equip.hitTest(_xmouse, _ymouse, false) && m_input == 1) { delete equip_usage; } else { if (Key.isDown(Key.getCode()) || Key.isDown(71)) { 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 (itemArray == null) { equipSwitchW = new Array(); equipSwitchA = new Array(); macroModA = new Array(); macroModW = new Array(); itemModA = new Array(); itemModW = 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'; itemFillOrder = newArray(); if (class == 2) { 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; spellArray[1] = 56; spellArray[2] = 50; spellArray[3] = 40; spellArray[4] = 41; if (gold == null) { gold = 55000; } } if (class == 1) { 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; spellArray[1] = 53; spellArray[2] = 50; spellArray[3] = 43; spellArray[4] = 40; spellArray[5] = 41; if (gold == null) { gold = 5000; } } } 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); } } 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 dungeon_start(map, bgm) { 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); } if (enemNum == null) { enemNum = 1; } player_health = stats_health; player_mana = stats_mana; delete _root.retry; _root.char.duplicateMovieClip('char1', 2500); _root.char1._visible = true; _root.char1._x = 109; _root.char1._y = 100; _root.charatk.duplicateMovieClip('char_atk1', 4000); _root.char_atk1._visible = true; _root.char_atk1._visible = true; _root.dun_map.duplicateMovieClip('dun_map' + map, 100); _root['dun_map' + map]._visible = true; _root['dun_map' + map]._x = 0; _root['dun_map' + map]._y = 0; _root.fader.duplicateMovieClip('fader_mc1', 26010); _root.fader_mc1._x = 0; _root.fader_mc1._y = 0; _root.hud_mc.duplicateMovieClip('hud_mc1', 130000); _root.hud_mc1._visible = true; _root.hud_mc1._x = 0; _root.hud_mc1._y = 0; _root.gui_player_hbar.duplicateMovieClip('hp_bar1', 5000); if (recbgm == null) { if (_root.soundB == 1) { _root.soundbgm.duplicateMovieClip('soundbgm1', 1040); } } else {} _root.debug_mc.duplicateMovieClip('debug_mc11', 92000); _root.debug_mc11._visible = true; _root.debug_mc11._x = 0; _root.debug_mc11._y = 0; _root.charhb.swapDepths(9130); _root.enemyhb.swapDepths(9140); _root.enemyhb2.swapDepths(9100); _root.enemyhb3.swapDepths(9110); _root.enemyhb4.swapDepths(9120); _root.mousetarget.swapDepths(8000); _root.ambushchar.swapDepths(3000); _root.landmouse.swapDepths(1900); _root.mouseanim.swapDepths(1890); _root.floormouse.swapDepths(1880); _root.attackmouse.swapDepths(1910); _root.light.swapDepths(9100); _root.lightbg.swapDepths(9199); _root.pool.swapDepths(250); _root.fourthlayer.swapDepths(140000); _root.mvpicon.swapDepths(6000); _root.mousetipmc.swapDepths(140050); _root.tutorialwindow.swapDepths(150000); } function game_dun_lighting() { if (_root.player_health >= 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 game_map_center() { function obj_center(obj) { if (pos == 1) { _root.coverbgplayer._x = -9999; _root.coverbgplayer._y = -(120 - obj._y + 20); _root.tutorialwindow._x = -(120 - obj._x); _root.tutorialwindow._y = -(120 - obj._y + 20); _root.hud_mc1._x = -(120 - obj._x); _root.hud_mc1._y = -(120 - obj._y + 20); } else { _root.coverbgplayer._x = -(120 - obj._x); _root.coverbgplayer._y = -(120 - obj._y + 20); _root.hud_mc1._x = -(182 - obj._x); _root.hud_mc1._y = -(290 - obj._y + 20); _root.tutorialwindow._x = -(182 - obj._x); _root.tutorialwindow._y = -(290 - obj._y + 20); _root.hud_mc1.swapDepths(91000); _root.tutorialwindow.swapDepths(92000); _root.coverbgplayer.swapDepths(90000); } _root.debug_mc11._x = -(120 - obj._x); _root.debug_mc11._y = -(120 - obj._y + 20); _root.floor_fader_mc1._x = -(120 - obj._x); _root.floor_fader_mc1._y = -(120 - obj._y + 20); _root.fader_mc1._x = -(120 - obj._x); _root.fader_mc1._y = -(120 - obj._y + 20); _root.exitfader_mc1._x = -(120 - obj._x); _root.exitfader_mc1._y = -(120 - obj._y + 20); _root['npc_window_' + windownum]._x = -(120 - obj._x); _root['npc_window_' + windownum]._y = -(120 - obj._y + 20); if (loaderT >= 1) { _root.loader._x = -(120 - obj._x); _root.loader._y = -(120 - obj._y + 20); } } if (player_health <= 1 && time_use == null && r_desu == null) { delete centermap; } if (centermap == 1) { while (centerm < 10) { _root.dun_map.duplicateMovieClip('center' + centerm, 110 + centerm); ++centerm; } _root.center1._x = -240; _root.center1._y = -240; _root.center1.gotoAndStop((dunmap - 1) * row + (col - 1) + (dmap - 1) * 70); _root.center2._x = 0; _root.center2._y = -240; _root.center2.gotoAndStop((dunmap - 1) * row + col + (dmap - 1) * 70); _root.center3._x = 240; _root.center3._y = -240; _root.center3.gotoAndStop((dunmap - 1) * row + (col + 1) + (dmap - 1) * 70); _root.center4._x = -240; _root.center4._y = 0; _root.center4.gotoAndStop(dunmap * row + (col - 1) + (dmap - 1) * 70); _root.center6._x = 240; _root.center6._y = 0; _root.center6.gotoAndStop(dunmap * row + (col + 1) + (dmap - 1) * 70); _root.center7._x = -240; _root.center7._y = 240; _root.center7.gotoAndStop((dunmap + 1) * row + (col - 1) + (dmap - 1) * 70); _root.center8._x = 0; _root.center8._y = 240; _root.center8.gotoAndStop((dunmap + 1) * row + col + (dmap - 1) * 70); _root.center9._x = 240; _root.center9._y = 240; _root.center9.gotoAndStop((dunmap + 1) * row + (col + 1) + (dmap - 1) * 70); if (heal_t_use == null && zap_t_use == null) { if (pos == 1) { _root._x = (120 - _root.char1._x) * (_root._xscale / 100); _root._y = (120 - _root.char1._y + 20) * (_root._yscale / 100); _root.hud_mc1._xscale = 100; _root.hud_mc1._yscale = 100; _root.coverbgplayer.swapDepths(90000); _root.coverbgplayer._xscale = 100; _root.coverbgplayer._yscale = 100; _root.coverbgplayer._x = -999; _root.coverbgplayer._y = 200; _root.tutorialwindow._xscale = 100; _root.tutorialwindow._yscale = 100; obj_center(_root.char1); } else { _root._x = (182 - _root.char1._x) * (_root._xscale / 100); _root._y = (290 - _root.char1._y + 20) * (_root._yscale / 100); _root.hud_mc1._xscale = 200; _root.hud_mc1._yscale = 200; _root.coverbgplayer._xscale = 100; _root.coverbgplayer._yscale = 100; _root.coverbgplayer.swapDepths(90000); _root.coverbgplayer._x = 200; _root.coverbgplayer._y = 0; _root.tutorialwindow._xscale = 200; _root.tutorialwindow._yscale = 200; obj_center(_root.char1); } } else {} } else { if (pos == 1) { _root.hud_mc1._x = 0; _root.hud_mc1._y = 0; _root.hud_mc1.swapDepths(31000); _root.coverbgplayer._x = -999; _root.coverbgplayer._y = 0; _root.coverbgplayer.swapDepths(330000); _root.tutorialwindow._x = 0; _root.tutorialwindow._y = 0; _root.tutorialwindow.swapDepths(320000); _root.coverbgplayer._xscale = 100; _root.coverbgplayer._yscale = 100; _root.tutorialwindow._xscale = 100; _root.tutorialwindow._yscale = 100; _root.hud_mc1._xscale = 100; _root.hud_mc1._yscale = 100; _root._x = 0; _root._y = 0; } else { _root.hud_mc1._x = -63; _root.hud_mc1._y = -172; _root.hud_mc1.swapDepths(910000); _root.tutorialwindow.swapDepths(920000); _root.coverbgplayer.swapDepths(900000); _root.coverbgplayer._x = -1; _root.coverbgplayer._y = -2; _root.tutorialwindow._x = -63; _root.tutorialwindow._y = -172; _root.coverbgplayer._xscale = 100; _root.coverbgplayer._yscale = 100; _root.tutorialwindow._xscale = 200; _root.tutorialwindow._yscale = 200; _root.hud_mc1._xscale = 200; _root.hud_mc1._yscale = 200; _root._x = 63; _root._y = 172; } _root.debug_mc11._x = 0; _root.debug_mc11._y = 0; _root.floor_fader_mc1._x = 0; _root.floor_fader_mc1._y = 0; _root['npc_window_' + windowNum]._x = 0; _root['npc_window_' + windowNum]._y = 0; while (centerRem < 10) { _root['center' + centerRem].removeMovieClip(); ++centerRem; } delete centerm; delete centerRem; } if (centermapst == null) { centermap = 1; centermapst = 1; } if (Key.isDown(16) || _root.hud_mc1.center.hitTest(_xmouse, _ymouse, true) && m_input == 1) { if (centermap == 1) { if (cm_input == 1) { } else { delete centermap; cm_input = 1; } } else { if (cm_input == 1) { } else { centermap = 1; cm_input = 1; } } } else { delete cm_input; } } function game_map_exit() { if (exit_dun == 1) { _root.exitfader.duplicateMovieClip('exitfader_mc1', 26005); _root.exitfader_mc1.gotoAndPlay(2); _root.exitfader_mc1._x = 0; _root.exitfader_mc1._y = 0; exit_dunload = 1; delete exit_dun; } if (exit == 1) { _root.exitfader.duplicateMovieClip('exitfader_mc1', 26005); _root.exitfader_mc1.gotoAndPlay(2); _root.exitfader_mc1._x = 0; _root.exitfader_mc1._y = 0; delete exit; } } } frame 1 { function dunlayout() { if (dunmap == null) { dun_item_create_z = [[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]]; dun_item_create_x1 = new Array(); dun_item_create_x2 = new Array(); dun_item_create_x3 = new Array(); dun_item_create_x4 = new Array(); dun_item_create_x5 = new Array(); dun_item_create_x6 = new Array(); dun_item_create_y1 = new Array(); dun_item_create_y2 = new Array(); dun_item_create_y3 = new Array(); dun_item_create_y4 = new Array(); dun_item_create_y5 = new Array(); dun_item_create_y6 = new Array(); dun_item_create_cf1 = new Array(); dun_item_create_cf2 = new Array(); dun_item_create_cf3 = new Array(); dun_item_create_cf4 = new Array(); dun_item_create_cf5 = new Array(); dun_item_create_cf6 = new Array(); dun_start_col = new Array(); dun_start_col[1] = 0; dun_start_col[2] = 3; dun_start_col[3] = 0; dun_start_dunmap = new Array(); dun_start_dunmap[1] = 1; dun_start_dunmap[2] = 1; dun_start_dunmap[3] = 10; dun_exit_col = new Array(); dun_exit_col[1] = 6; dun_exit_col[2] = 3; dun_exit_dunmap = new Array(); dun_exit_dunmap[1] = 10; dun_exit_dunmap[2] = 10; dun_createdMap = new Array(); dun_Array_y = new Array(); dun_Array_y2 = new Array(); dun_Array_x = new Array(); dun_Array_x2 = new Array(); dun_Array_itemx = new Array(); dun_Array_itemy = new Array(); dun_Array_npcx = new Array(); dun_Array_npcy = new Array(); dun_visit = new Array(); dun_msg = new Array(); enem_ArrayX = new Array(); enem_ArrayY = new Array(); dun_Array_npcx[9] = 80; dun_Array_npcy[9] = 60; dun_Array_npcx[88] = 80; dun_Array_npcy[88] = 60; dun_msg[7] = 'You found some items'; dun_msg[9] = 'You found some items'; dun_msg[21] = 'You found some items'; dun_msg[23] = 'You found some items'; dun_msg[54] = 'You found some items'; dun_msg[62] = 'You found some items'; dun_Array_itemx[9] = 80; dun_Array_itemy[9] = 100; dun_Array_itemx[21] = 80; dun_Array_itemy[21] = 100; dun_Array_itemx[23] = 80; dun_Array_itemy[23] = 100; dun_Array_itemx[54] = 80; dun_Array_itemy[54] = 100; dun_Array_itemx[62] = 80; dun_Array_itemy[62] = 100; dun_Array_itemx[114] = 80; dun_Array_itemy[114] = 100; dun_Array_itemx[116] = 80; dun_Array_itemy[116] = 100; mapscan = 7; while (mapscan < 217) { if (dun_Array_y[mapscan] == null) { dun_Array_y[mapscan] = 0; dun_Array_y2[mapscan] = 240; dun_Array_x[mapscan] = 0; dun_Array_x2[mapscan] = 240; } ++mapscan; } t_room = 1; while (t_room < 36) { ++t_room; } dun_Array_y[7] = 0; dun_Array_y[9] = 0; dun_Array_y[14] = 60; dun_Array_y[15] = 0; dun_Array_y[16] = 60; dun_Array_y[17] = 0; dun_Array_y[18] = 0; dun_Array_y[19] = 0; dun_Array_y[20] = 0; dun_Array_y[21] = 10; dun_Array_y[23] = 10; dun_Array_y[27] = 10; dun_Array_y[34] = 10; dun_Array_y[41] = 10; dun_Array_y[46] = 10; dun_Array_y[47] = 10; dun_Array_y[48] = 10; dun_Array_y[53] = 10; dun_Array_y[54] = 10; dun_Array_y[55] = -20; dun_Array_y[62] = 10; dun_Array_y[69] = 10; dun_Array_y[76] = 10; dun_Array_y[10] = 0; dun_Array_y[77] = 0; dun_Array_y[78] = 0; dun_Array_y[79] = 0; dun_Array_y[80] = 0; dun_Array_y[81] = 0; dun_Array_y[82] = 0; dun_Array_y[83] = 0; dun_Array_y[87] = 0; dun_Array_y[88] = 0; dun_Array_y[92] = 0; dun_Array_y[93] = 0; dun_Array_y[94] = 0; dun_Array_y[95] = 0; dun_Array_y[96] = 0; dun_Array_y[99] = 0; dun_Array_y[103] = 0; dun_Array_y[106] = 0; dun_Array_y[107] = 0; dun_Array_y[108] = 0; dun_Array_y[109] = 0; dun_Array_y[110] = 0; dun_Array_y[114] = 0; dun_Array_y[115] = 0; dun_Array_y[116] = 0; dun_Array_y[120] = 0; dun_Array_y[121] = 0; dun_Array_y[122] = 0; dun_Array_y[123] = 0; dun_Array_y[124] = 0; dun_Array_y[127] = 0; dun_Array_y[131] = 0; dun_Array_y[134] = 0; dun_Array_y[135] = 0; dun_Array_y[136] = 0; dun_Array_y[137] = 0; dun_Array_y[138] = 0; dun_Array_y[143] = 0; dun_Array_y2[7] = 210; dun_Array_y2[9] = 210; dun_Array_y2[14] = 210; dun_Array_y2[15] = 210; dun_Array_y2[16] = 210; dun_Array_y2[17] = 238; dun_Array_y2[18] = 238; dun_Array_y2[19] = 238; dun_Array_y2[20] = 210; dun_Array_y2[21] = 240; dun_Array_y2[23] = 210; dun_Array_y2[27] = 210; dun_Array_y2[34] = 210; dun_Array_y2[41] = 210; dun_Array_y2[46] = 215; dun_Array_y2[47] = 238; dun_Array_y2[48] = 240; dun_Array_y2[53] = 238; dun_Array_y2[54] = 238; dun_Array_y2[55] = 220; dun_Array_y2[62] = 220; dun_Array_y2[69] = 200; dun_Array_y2[76] = 240; dun_Array_y2[10] = 240; dun_Array_y2[77] = 240; dun_Array_y2[78] = 240; dun_Array_y2[79] = 240; dun_Array_y2[80] = 240; dun_Array_y2[81] = 240; dun_Array_y2[82] = 240; dun_Array_y2[83] = 240; dun_Array_y2[87] = 240; dun_Array_y2[88] = 240; dun_Array_y2[92] = 240; dun_Array_y2[93] = 240; dun_Array_y2[94] = 240; dun_Array_y2[95] = 240; dun_Array_y2[96] = 240; dun_Array_y2[99] = 240; dun_Array_y2[103] = 240; dun_Array_y2[106] = 240; dun_Array_y2[107] = 240; dun_Array_y2[108] = 240; dun_Array_y2[109] = 240; dun_Array_y2[110] = 240; dun_Array_y2[114] = 240; dun_Array_y2[115] = 240; dun_Array_y2[116] = 240; dun_Array_y2[120] = 240; dun_Array_y2[121] = 240; dun_Array_y2[122] = 240; dun_Array_y2[123] = 240; dun_Array_y2[124] = 240; dun_Array_y2[127] = 240; dun_Array_y2[131] = 240; dun_Array_y2[134] = 240; dun_Array_y2[135] = 240; dun_Array_y2[136] = 240; dun_Array_y2[137] = 240; dun_Array_y2[138] = 240; dun_Array_y2[143] = 240; dun_Array_x[7] = 10; dun_Array_x[9] = 10; dun_Array_x[14] = 10; dun_Array_x[15] = 15; dun_Array_x[16] = 15; dun_Array_x[17] = 15; dun_Array_x[18] = 15; dun_Array_x[19] = 15; dun_Array_x[20] = 15; dun_Array_x[21] = 0; dun_Array_x[23] = 0; dun_Array_x[27] = 0; dun_Array_x[34] = 0; dun_Array_x[41] = 0; dun_Array_x[46] = 0; dun_Array_x[47] = 20; dun_Array_x[48] = 20; dun_Array_x[53] = 0; dun_Array_x[54] = 10; dun_Array_x[55] = 10; dun_Array_x[62] = 0; dun_Array_x[69] = 0; dun_Array_x[76] = 0; dun_Array_x[10] = 0; dun_Array_x[77] = 0; dun_Array_x[78] = 0; dun_Array_x[79] = 0; dun_Array_x[80] = 0; dun_Array_x[81] = 0; dun_Array_x[82] = 0; dun_Array_x[83] = 0; dun_Array_x[87] = 0; dun_Array_x[88] = 0; dun_Array_x[92] = 0; dun_Array_x[93] = 0; dun_Array_x[94] = 0; dun_Array_x[95] = 0; dun_Array_x[96] = 0; dun_Array_x[99] = 0; dun_Array_x[103] = 0; dun_Array_x[106] = 0; dun_Array_x[107] = 0; dun_Array_x[108] = 0; dun_Array_x[109] = 0; dun_Array_x[110] = 0; dun_Array_x[114] = 0; dun_Array_x[115] = 0; dun_Array_x[116] = 0; dun_Array_x[120] = 0; dun_Array_x[121] = 0; dun_Array_x[122] = 0; dun_Array_x[123] = 0; dun_Array_x[124] = 0; dun_Array_x[127] = 0; dun_Array_x[131] = 0; dun_Array_x[134] = 0; dun_Array_x[135] = 0; dun_Array_x[136] = 0; dun_Array_x[137] = 0; dun_Array_x[138] = 0; dun_Array_x[143] = 0; dun_Array_x2[7] = 210; dun_Array_x2[9] = 210; dun_Array_x2[14] = 210; dun_Array_x2[15] = 210; dun_Array_x2[16] = 210; dun_Array_x2[17] = 210; dun_Array_x2[18] = 210; dun_Array_x2[19] = 210; dun_Array_x2[20] = 240; dun_Array_x2[21] = 240; dun_Array_x2[23] = 240; dun_Array_x2[27] = 240; dun_Array_x2[34] = 240; dun_Array_x2[41] = 240; dun_Array_x2[46] = 210; dun_Array_x2[47] = 210; dun_Array_x2[48] = 240; dun_Array_x2[53] = 210; dun_Array_x2[54] = 210; dun_Array_x2[55] = 245; dun_Array_x2[62] = 240; dun_Array_x2[69] = 240; dun_Array_x2[76] = 240; dun_Array_x2[10] = 240; dun_Array_x2[77] = 240; dun_Array_x2[78] = 240; dun_Array_x2[79] = 240; dun_Array_x2[80] = 240; dun_Array_x2[81] = 240; dun_Array_x2[82] = 240; dun_Array_x2[83] = 240; dun_Array_x2[87] = 240; dun_Array_x2[88] = 240; dun_Array_x2[92] = 240; dun_Array_x2[93] = 240; dun_Array_x2[94] = 240; dun_Array_x2[95] = 240; dun_Array_x2[96] = 240; dun_Array_x2[99] = 240; dun_Array_x2[103] = 240; dun_Array_x2[106] = 240; dun_Array_x2[107] = 240; dun_Array_x2[108] = 240; dun_Array_x2[109] = 240; dun_Array_x2[110] = 240; dun_Array_x2[114] = 240; dun_Array_x2[115] = 240; dun_Array_x2[116] = 240; dun_Array_x2[120] = 240; dun_Array_x2[121] = 240; dun_Array_x2[122] = 240; dun_Array_x2[123] = 240; dun_Array_x2[124] = 240; dun_Array_x2[127] = 240; dun_Array_x2[131] = 240; dun_Array_x2[134] = 240; dun_Array_x2[135] = 240; dun_Array_x2[136] = 240; dun_Array_x2[137] = 240; dun_Array_x2[138] = 240; dun_Array_x2[143] = 240; enem_ArrayX[15] = 100; enem_ArrayY[15] = 100; enem_ArrayX[16] = 100; enem_ArrayY[16] = 100; enem_ArrayX[17] = 100; enem_ArrayY[17] = 100; enem_ArrayX[18] = 48; enem_ArrayY[18] = 72; enem_ArrayX[20] = 120; enem_ArrayY[20] = 120; enem_ArrayX[48] = 120; enem_ArrayY[48] = 120; enem_ArrayX[47] = 24; enem_ArrayY[47] = 72; enem_ArrayX[46] = 120; enem_ArrayY[46] = 120; enem_ArrayX[53] = 120; enem_ArrayY[53] = 120; enem_ArrayX[55] = 96; enem_ArrayY[55] = 120; enem_ArrayX[69] = 120; enem_ArrayY[69] = 120; enem_ArrayX[34] = 120; enem_ArrayY[34] = 120; enem_ArrayX[92] = 150; enem_ArrayX[94] = 96; enem_ArrayX[96] = 96; enem_ArrayX[106] = 96; enem_ArrayX[110] = 96; enem_ArrayX[115] = 96; enem_ArrayX[122] = 96; enem_ArrayX[120] = 96; enem_ArrayX[124] = 96; enem_ArrayX[135] = 120; enem_ArrayX[137] = 120; enem_ArrayY[92] = 150; enem_ArrayY[94] = 120; enem_ArrayY[96] = 120; enem_ArrayY[106] = 120; enem_ArrayY[110] = 120; enem_ArrayY[115] = 120; enem_ArrayY[122] = 120; enem_ArrayY[120] = 120; enem_ArrayY[124] = 120; enem_ArrayY[135] = 120; enem_ArrayY[137] = 120; dun_Array = new Array(); col = dun_start_col[dmap]; dunmap = dun_start_dunmap[dmap]; row = 7; } } } frame 1 { function enemy_respawn() { var resp = 1; while (resp < 5) { if (_root['enemy' + resp]._x < -999) { _root['enemy' + resp].desu = 1; } if (_root['enemy' + resp].desu == 1) { _root['enemy' + resp]._x = -9999; _root['enemy' + resp]._y = -9999; } else {} ++resp; } } } frame 1 { function screen(mc, words) { _root.titlescreen.duplicateMovieClip(mc, 10000); _root[mc].gotoAndStop(2); _root[mc]._x = 120; _root[mc]._y = 120; _root[mc].words = words; } _root.onLoad = function () { if (_global.program == 1) { ROUrl = scan; scan = _url.slice(0, 20); delete _global.titleinstance; vrb = 'title_screen'; if (scan == null) { } else { _root.preload = 'ERROR'; } if (scene_load == null) { if (scan == null) { _root.full_titlescreen.duplicateMovieClip('full_titlescreen1', 2000); _root.full_titlescreen1._x = 120; _root.full_titlescreen1._y = 120; scene_load = 1; } } if (_root.full_titlescreen1._currentframe == 1) { _root.full_titlescreen1.play(); } } else { if (_global.titleinstance == null) { removeMovieClip(_root.full_titlescreen1); _global.titleinstance = 1; } } _global.program = 1; _root.char._visible = false; _root.charatk._visible = false; _root.enemy._visible = false; _root.hud_mc._visible = false; _root.map_mc._visible = false; _root.full_titlescreen._visible = false; _root.levelup_mc._visible = false; _root.debug_mc._visible = false; _root.damage_end._visible = false; _root.damage_mc._visible = false; _root.plyr_dam_mc._visible = false; _root.npc._visible = false; _root.purge_effect_mc._visible = false; _root._quality = 'low'; _root.shield = 13; }; _root.onKeyDown = function () { Inventory(49, 50, 51, 52, 53, 68); }; _root.onMouseUp = function () { delete m_input; confirm = 1; delete end_attack; delete m_attack; delete mouseD; delete i_attack; delete m_ignore; }; _root.onMouseDown = function () { if (m_input == 1) { mouseD = 20; if (heal_t_use == null && zap_t_use == null) { mousex = floormouse._x + 12; mousey = floormouse._y + 12; } delete m_command; } m_input = 1; delete mousex; delete mousey; delete m_command; if (_global.program >= 6) { if (m_command == null && !_root.hud_mc1.macro.hitTest(_xmouse, _ymouse, true) && !_root.hud_mc1.spell.hitTest(_xmouse, _ymouse, true) && !_root.hud_mc1.equip.hitTest(_xmouse, _ymouse, true) && !_root.hud_mc1.center.hitTest(_xmouse, _ymouse, true) && !_root.hud_mc1.map.hitTest(_xmouse, _ymouse, true) && !_root.hud_mc1.spellList.hitTest(_xmouse, _ymouse, true) && !_root.hud_mc1.time.hitTest(_xmouse, _ymouse, true) && !_root.hud_mc1.mailbox.hitTest(_xmouse, _ymouse, true) && !_root.hud_mc1.letterbox.hitTest(_xmouse, _ymouse, true)) { 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 m_click_attack; } else { delete m_click_attack; m_command = 1; } } i_attack = 1; if (_root.hud_mc1.macro.hitTest(_xmouse, _ymouse, true)) { mouseD = 1; } } }; _root.onEnterFrame = function () { bgartwork(); reSize(); if (m_input == 1 && !_root.hud_mc1.macro.hitTest(_xmouse, _ymouse, true) && !_root.hud_mc1.spell.hitTest(_xmouse, _ymouse, true) && !_root.hud_mc1.equip.hitTest(_xmouse, _ymouse, true) && !_root.hud_mc1.center.hitTest(_xmouse, _ymouse, true) && !_root.hud_mc1.map.hitTest(_xmouse, _ymouse, true) && !_root.hud_mc1.spellList.hitTest(_xmouse, _ymouse, true && heal_t_use == null && zap_t_use == null) && !_root.hud_mc1.time.hitTest(_xmouse, _ymouse, true) && !_root.hud_mc1.letterbox.letterbox2.hitTest(_xmouse, _ymouse, true) && !_root.hud_mc1.mailbox.hitTest(_xmouse, _ymouse, true) && !_root.hud_mc1.letterbox.hitTest(_xmouse, _ymouse, true)) { 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; } } randomdungeon(); debugger(); _root.stop(); if (_root.getBytesLoaded() * 100 / _root.getBytesTotal() == 100) { _root.gotoAndStop(2); } else { loaderText = _root.getBytesLoaded() * 100 / _root.getBytesTotal(); _root.preload = 'LOADING ' + loaderText; } 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 = +(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; } if (Key.isDown(13) || m_input == 1) { if (e_input == null && scan == null) { if (_global.program == 4 || _global.program == 3 || _global.program == 5 || _global.program == 6) { } else { _global.program = 3; delete scene_load; e_input = 1; } } } else { if (_global.program == 4 || _global.program == 3 || _global.program == 5 || _global.program == 6) { } else { delete e_input; } } if (Key.isDown(187)) { if (h_input == null) { if (high == 1) { delete high; } else { if (high == null) { high = 1; } } h_input = 1; } } else { delete h_input; } if (Key.isDown(192)) { if (_global.program >= 12) { _global.program = 1; } if (d_input == null) { ++_global.program; delete scene_load; d_input = 1; } } else { delete d_input; } if (_global.program == 1 && _root.gameLogo == 1) { ROUrl = scan; scan = null; delete _global.titleinstance; vrb = 'title_screen'; if (scan == null) { _root.preload = 'OK'; } else { _root.preload = 'ERROR'; } if (scene_load == null) { if (scan == null) { _root.full_titlescreen.duplicateMovieClip('full_titlescreen1', 2000); _root.full_titlescreen1._x = 120; _root.full_titlescreen1._y = 120; scene_load = 1; } } if (_root.full_titlescreen1._currentframe == 1) { _root.full_titlescreen1.play(); } } else { if (_global.titleinstance == null) { removeMovieClip(_root.full_titlescreen1); _global.titleinstance = 1; } } if (_global.program == 2) { vrb = 'options_screen'; if (scene_load == null) { _root.options.duplicateMovieClip('options1', 2050); _root.options1._x = 0; _root.options1._y = 0; _root.soundbgm.duplicateMovieClip('soundbgm1', 103); _root.soundbgm1.gotoAndStop(2); scene_load = 1; } } if (_global.program == 3) { delete _global.howinstance; if (scene_load == null) { _root.howtoplay.duplicateMovieClip('howtoplay1', 2000); _root.howtoplay1._x = 0; _root.howtoplay1._y = 0; scene_load = 1; } if (_root.howtoplay1._currentframe == 1) { _root.howtoplay1.play(); } } else { if (_global.howinstance == null) { removeMovieClip(_root.howtoplay1); _global.howinstance = 1; } } if (_global.program == 4) { game_spell_effects(); delete _global.charinstance; if (scene_load == null) { _root.cs_char_sel.duplicateMovieClip('cs_char_sel1', 2000); _root.cs_char_sel1._x = 0; _root.cs_char_sel1._y = 0; _root.cs_char_sel1.gotoAndPlay(2); scene_load = 1; } } else { if (_global.charinstance == null) { removeMovieClip(_root.cs_char_sel1); _global.charinstance = 1; } } if (_global.program == 5) { delete _global.taleinstance; if (scene_load == null) { _root.tale.duplicateMovieClip('tale1', 3000); _root.tale1._x = 0; _root.tale1._y = 0; scene_load = 1; } if (_root.tale1._currentframe == 1) { _root.tale1.play(); } } else { if (_global.taleinstance == null) { removeMovieClip(_root.tale1); _global.taleinstance = 1; } } if (_global.program == 6) { delete _global.dungeoninstance1; removeMovieClip(_root[vrb]); enemy_spawn = 5 + onScreenCode; game_music(); game_soundEffect(); difficulty(); rogueUninvis(); tutorial(); if (npc_menu == 1) { } else { game_dun_lighting(); game_items_dungeon(_root.char1); if (heal_t_use == null && zap_t_use == null && rewind == null) { game_minimap(); if (minimap == 2 && centermap == 1) { } else { game_npc(); game_map_exit(); game_gui(); game_class(); game_level(_root.char1); game_stats(); game_spell(); game_player(_root.char1, 3.8 / game_speed, 1, stats_agi_full * game_speed, _root.char_atk1); spriteDepth(_root.char1, _root.enemy1); spriteDepth(_root.char1, _root.enemy2); spriteDepth(_root.char1, _root.enemy3); spriteDepth(_root.char1, _root.enemy4); spriteDepth(_root.char1, _root.enemy5); spriteDepth(_root.char1, _root.enemy6); spriteDepth(_root.char1, _root.enemy7); spriteDepth(_root.char1, _root.enemy8); spriteDepth(_root.char1, _root.normchest1); spriteDepth(_root.char1, _root.mvpchest1); game_hud(_root.char1, _root.hp_bar1); mailsystem(); mvp(); modifiers(); mousetip(); enemy_respawn(); ambushCam(); } } } game_map_center(); game_spell_effects(_root.dun_map1, _root.center1, _root.center2, _root.center3, _root.center4, _root.center6, _root.center7, _root.center8, _root.center9); faceTarget(_root.char1, _root[atkSpawn]); game_rewind(_root.char1, _root['enemy' + enemAi], _root.dun_map1); if (heal_t_use == null && zap_t_use == null && rewind == null) { if (centermap == 1) { if (minimap == 2) { } else { game_mouseControl(_root.char1, 3.8 / game_speed, _root.char_atk1, _root.npc_1); } } else { game_mouseControl(_root.char1, 3.8 / game_speed, _root.char_atk1, _root.npc_1); } game_map_dungeon(_root.char1, _root['item' + map_move], _root.dun_map1, 3.8, 2.5); var enemAi = 1; while (enemAi < enemy_spawn) { game_slomo(_root.char1, _root['enemy' + enemAi]); game_enemy(_root['enemy' + enemAi], 2.4 / game_speed, 1, 40 / game_speed, _root.char1, enemAi); game_hitDetect_dungeon(_root.char1, _root.char_atk1, _root['enemy' + enemAi], _root.npc_1, enemAi); faceTarget_NME(_root['enemy' + enemAi], _root.char1); game_depth(_root['enemy' + enemAi], _root.char1); ++enemAi; } } if (scene_load == null) { dungeon_start(1, 3); scene_load = 1; } } else { if (_global.dungeoninstance1 == null) { removeMovieClip(_root.char1); while (enemRemove < 11) { removeMovieClip(_root['enemy' + enemRemove]); removeMovieClip(_root['nme_hitpoints' + enemRemove]); removeMovieClip(_root['damage_mc' + enemRemove]); removeMovieClip(_root['player_hitpoints' + enemRemove]); removeMovieClip(_root['plyr_dam_mc' + enemRemove]); removeMovieClip(_root['damage_end_pl' + enemRemove]); removeMovieClip(_root['damage_end' + enemRemove]); ++enemRemove; } _root.shield = 13; removeMovieClip(_root.hud_mc1); delete enemNum; delete enemRemove; if (optiongold == 1) { } else { delete gold; } if (optionlevel == 1) { } else { delete stats_health; delete stats_mana; delete stats_exp; delete stats_str; delete stats_agi; delete stats_dex; delete input_agi; delete player_health; delete player_mana; delete tnl; delete level; delete stats_agi_cover; } delete userLog; removeMovieClip(_root.dun_map1); delete movex; delete movec; delete movey; delete movexLimit; delete moveyLimit; delete mapnumx; delete mapnumy; delete mapset; delete dunmap; delete dun_generator; delete lx; delete dunstring_scan; removeMovieClip(_root.soundbgm1); removeMovieClip(_root.mini_map1); delete itemArray; _global.dungeoninstance1 = 1; removeMovieClip(_root.debug_mc11); delete gamestrt; delete invis_buff; delete mightbuff; delete blessbuff; delete potencebuff; delete shadowbuff; invistimer = -999; mighttimer = -999; blesstimer = -999; potencetimer = -999; shadowtimer = -999; flanktimer = -999; delete concpotTimer; delete meleenum; delete flvl; delete furyLevel; while (remdrawx < 77) { removeMovieClip(_root['minimap__' + remdrawx]); ++remdrawx; } removeMovieClip(_root.debug_mc11); } } if (_global.program == 7) { delete _global.gameinstance1; removeMovieClip(_root[vrb]); enemy_spawn = 4; game_music(); game_soundEffect(); if (player_health <= 0) { } else { game_map_castle(_root.char1, _root['item' + map_move], _root.map_mc1, 3.8); } game_items_castle(_root.char1, _root['item' + map_move], 27); game_npc(); game_map_exit(); game_gui(); game_class(); game_level(_root.char1); game_stats(); game_spell(); game_player(_root.char1, 3.8, 1, stats_agi_full, _root.char_atk1); game_hud(_root.char1, _root.hp_bar1); var enemAi = 1; while (enemAi < enemy_spawn) { game_enemy_castle(_root['enemy' + enemAi], 2.4, 1, 40, _root.char1, _root.char_atk1); game_hitDetect_castle(_root.char1, _root.char_atk1, _root['enemy' + enemAi], _root.char_atk1); game_depth(_root['enemy' + enemAi], _root.char1); ++enemAi; } if (scene_load == null) { game_start(1, 4); scene_load = 1; } } else { if (_global.gameinstance1 == null) { removeMovieClip(_root.char1); while (enemRemove < 11) { removeMovieClip(_root['enemy' + enemRemove]); removeMovieClip(_root['nme_hitpoints' + enemRemove]); removeMovieClip(_root['damage_mc' + enemRemove]); removeMovieClip(_root['player_hitpoints' + enemRemove]); removeMovieClip(_root['plyr_dam_mc' + enemRemove]); removeMovieClip(_root['damage_end_pl' + enemRemove]); removeMovieClip(_root['damage_end' + enemRemove]); ++enemRemove; } _root.shield = 13; removeMovieClip(_root.hud_mc1); delete enemNum; delete enemRemove; delete stats_health; delete stats_mana; delete stats_exp; delete stats_str; delete stats_agi; delete stats_dex; delete input_agi; delete player_health; delete player_mana; delete tnl; delete level; delete stats_agi_cover; delete userLog; removeMovieClip(_root.map_mc1); delete movex; delete movec; delete movey; delete movexLimit; delete moveyLimit; delete mapnumx; delete mapnumy; delete mapset; removeMovieClip(_root.soundbgm1); stopAllSounds(); removeMovieClip(_root.mini_map1); delete itemArray; _global.gameinstance1 = 1; } } if (_global.program == 8) { delete _global.gameinstance2; removeMovieClip(_root[vrb]); enemy_spawn = 7; game_music(); game_soundEffect(); if (player_health <= 0) { } else { game_map2(_root.char1, _root.item2, _root.map_mc2, 3.8); } game_items(_root.char1, _root.item2); game_gui(); game_class(); game_level(_root.char1); game_stats(); game_spell(); game_player(_root.char1, 3.8, 1, stats_agi_full, _root.char_atk1); game_hud(_root.char1, _root.hp_bar1); var enemAi = 1; while (enemAi < enemy_spawn) { game_enemy(_root['enemy' + enemAi], 2.4, 1, 40, _root.char1, 1); game_hitDetect(_root.char1, _root.char_atk1, _root['enemy' + enemAi]); game_depth(_root['enemy' + enemAi], _root.char1); ++enemAi; } if (scene_load == null) { game_start(2, 3); scene_load = 1; } } else { if (_global.gameinstance2 == null) { removeMovieClip(_root.char1); while (enemRemove < 11) { removeMovieClip(_root['enemy' + enemRemove]); removeMovieClip(_root['nme_hitpoints' + enemRemove]); removeMovieClip(_root['damage_mc' + enemRemove]); removeMovieClip(_root['player_hitpoints' + enemRemove]); removeMovieClip(_root['plyr_dam_mc' + enemRemove]); removeMovieClip(_root['damage_end_pl' + enemRemove]); removeMovieClip(_root['damage_end' + enemRemove]); ++enemRemove; } _root.shield = 13; removeMovieClip(_root.hud_mc1); delete enemNum; delete enemRemove; delete stats_health; delete stats_mana; delete stats_exp; delete stats_str; delete stats_agi; delete stats_dex; delete input_agi; delete player_health; delete player_mana; delete tnl; delete level; delete stats_agi_cover; delete userLog; removeMovieClip(_root.map_mc2); delete movex; delete movec; delete movey; delete movexLimit; delete moveyLimit; delete mapnumx; delete mapnumy; delete mapset; removeMovieClip(_root.soundbgm1); stopAllSounds(); removeMovieClip(_root.mini_map1); delete itemArray; _global.gameinstance2 = 1; } } if (_global.program == 9) { delete _global.gameinstance3; removeMovieClip(_root[vrb]); enemy_spawn = 7; game_music(); game_soundEffect(); var map_move = 1; while (map_move < 11) { if (player_health <= 0) { } else { game_map2(_root.char1, _root['item' + map_move], _root.map_mc3, 3.8); } game_items(_root.char1, _root['item' + map_move]); ++map_move; } game_gui(); game_class(); game_level(_root.char1); game_stats(); game_spell(); game_player(_root.char1, 3.8, 1, stats_agi_full, _root.char_atk1); game_hud(_root.char1, _root.hp_bar1); var enemAi = 1; while (enemAi < enemy_spawn) { game_enemy(_root['enemy' + enemAi], 2.4, 1, 40, _root.char1, 1); game_hitDetect(_root.char1, _root.char_atk1, _root['enemy' + enemAi]); ++enemAi; } if (scene_load == null) { game_start(3, 4); scene_load = 1; } } else { if (_global.gameinstance3 == null) { removeMovieClip(_root.char1); while (enemRemove < 11) { removeMovieClip(_root['enemy' + enemRemove]); removeMovieClip(_root['nme_hitpoints' + enemRemove]); removeMovieClip(_root['damage_mc' + enemRemove]); removeMovieClip(_root['player_hitpoints' + enemRemove]); removeMovieClip(_root['plyr_dam_mc' + enemRemove]); removeMovieClip(_root['damage_end_pl' + enemRemove]); removeMovieClip(_root['damage_end' + enemRemove]); ++enemRemove; } _root.shield = 13; removeMovieClip(_root.hud_mc1); delete enemNum; delete enemRemove; delete stats_health; delete stats_mana; delete stats_exp; delete stats_str; delete starts_agi; delete stats_dex; delete input_agi; delete player_health; delete player_mana; delete tnl; delete level; delete stats_agi_cover; delete userLog; removeMovieClip(_root.map_mc3); delete movex; delete movec; delete movey; delete movexLimit; delete moveyLimit; delete mapnumx; delete mapnumy; delete mapset; removeMovieClip(_root.mini_map1); removeMovieClip(_root.soundbgm1); stopAllSounds(); delete itemArray; _global.gameinstance3 = 1; } } if (_global.program == 10) { attractMode(); replay(); vrb = 'DUNGEON-1'; if (scene_load == null) { screen(vrb, '[DUNGEON-2]'); scene_load = 1; } } if (_global.program == 11) { attractMode(); replay(); vrb = 'attract_screen'; if (scene_load == null) { screen(vrb, '[ATTRACT]'); scene_load = 1; } } if (_global.program == 12) { highscore(); vrb = 'highscore_screen'; if (scene_load == null) { screen(vrb, '[HIGHSCORE]'); scene_load = 1; } } }; } button 8 { on (press) { fscommand('quit'); } } button 9 { on (press) { _root.pos = 1; _root._x -= 120; _root._y -= 120; _root._xscale = 200; _root._yscale = 200; delete _root.m_command; } } movieClip 11 { frame 1 { stop(); } frame 2 { stop(); } } frame 2 { stop(); } frame 2 { stop(); delete scene_load; } movieClip 19 { } movieClip 21 { frame 1 { stop(); } } movieClip 32 { frame 12 { removeMovieClip(this); } } movieClip 50 { frame 18 { stop(); } } movieClip 73 { } movieClip 74 { frame 1 { stop(); } instance of movieClip 32 { onClipEvent (enterFrame) { if (this._currentframe == this._totalframes) { _parent.removeMovieClip(); } } } frame 2 { stop(); } instance of movieClip 50 { onClipEvent (enterFrame) { if (this._currentframe == this._totalframes) { _parent.removeMovieClip(); } } } frame 3 { stop(); } instance of movieClip 73 { onClipEvent (enterFrame) { if (this._currentframe == this._totalframes) { _parent.removeMovieClip(); } } } } movieClip 82 { } movieClip 83 { } movieClip 84 { } movieClip 88 { } movieClip 89 { } movieClip 92 { } movieClip 93 { } movieClip 127 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } frame 6 { stop(); } frame 7 { stop(); } frame 8 { stop(); } frame 9 { stop(); } frame 10 { stop(); } frame 11 { stop(); } frame 12 { stop(); } } movieClip 128 { instance of movieClip 127 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } instance of movieClip 127 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } } movieClip 139 { instance of movieClip 127 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } } movieClip 141 { } movieClip 154 { instance of movieClip 127 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } } movieClip 167 { instance of movieClip 127 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } } movieClip 180 { instance of movieClip 127 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } } movieClip 193 { instance of movieClip 127 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } } movieClip 200 { instance of movieClip 127 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } } movieClip 209 { frame 1 { _parent.end = 1; } instance of movieClip 127 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } frame 6 { delete _parent.end; stop(); } } movieClip 220 { frame 1 { _parent.end = 1; } instance of movieClip 127 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } frame 6 { delete _parent.end; stop(); } } movieClip 229 { frame 1 { _parent.end = 1; } instance of movieClip 127 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } frame 7 { delete _parent.end; stop(); } } movieClip 240 { frame 1 { _parent.end = 1; } instance of movieClip 127 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } frame 6 { delete _parent.end; stop(); } } movieClip 249 { frame 1 { _parent.end = 1; } instance of movieClip 127 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } frame 5 { delete _parent.end; stop(); } } movieClip 262 { instance of movieClip 127 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } } movieClip 275 { instance of movieClip 127 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } } movieClip 282 { instance of movieClip 127 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } } movieClip 295 { instance of movieClip 127 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } } movieClip 314 { instance of movieClip 127 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } } movieClip 325 { frame 1 { _parent.end = 1; } instance of movieClip 127 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } frame 6 { delete _parent.end; stop(); } } movieClip 336 { frame 1 { _parent.end = 1; } instance of movieClip 127 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } frame 6 { delete _parent.end; stop(); } } movieClip 349 { frame 1 { _parent.end = 1; } instance of movieClip 127 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } frame 6 { delete _parent.end; stop(); } } movieClip 360 { frame 1 { _parent.end = 1; } instance of movieClip 127 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } frame 6 { delete _parent.end; stop(); } } movieClip 369 { frame 1 { _parent.end = 1; } instance of movieClip 127 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } frame 5 { delete _parent.end; stop(); } } movieClip 382 { instance of movieClip 127 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } } movieClip 395 { instance of movieClip 127 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } } movieClip 412 { instance of movieClip 127 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } } movieClip 425 { instance of movieClip 127 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } } movieClip 438 { instance of movieClip 127 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } } movieClip 443 { } movieClip 452 { frame 1 { _parent.end = 1; } instance of movieClip 127 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } frame 6 { delete _parent.end; stop(); } } movieClip 463 { frame 1 { _parent.end = 1; } instance of movieClip 127 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } frame 6 { delete _parent.end; stop(); } } movieClip 476 { frame 1 { _parent.end = 1; } instance of movieClip 127 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } frame 7 { delete _parent.end; stop(); } } movieClip 487 { frame 1 { _parent.end = 1; } instance of movieClip 127 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } frame 6 { delete _parent.end; stop(); } } movieClip 496 { frame 1 { _parent.end = 1; } frame 5 { delete _parent.end; stop(); } } movieClip 509 { instance of movieClip 127 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } } movieClip 522 { instance of movieClip 127 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } } movieClip 533 { instance of movieClip 127 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } } movieClip 544 { instance of movieClip 127 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } } movieClip 557 { instance of movieClip 127 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } } movieClip 564 { instance of movieClip 127 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } } movieClip 573 { frame 1 { _parent.end = 1; } instance of movieClip 127 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } frame 6 { delete _parent.end; stop(); } } movieClip 584 { frame 1 { _parent.end = 1; } instance of movieClip 127 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } frame 6 { delete _parent.end; stop(); } } movieClip 597 { frame 1 { _parent.end = 1; } instance of movieClip 127 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } frame 7 { delete _parent.end; stop(); } } movieClip 608 { frame 1 { _parent.end = 1; } instance of movieClip 127 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } frame 6 { delete _parent.end; stop(); } } movieClip 617 { frame 1 { _parent.end = 1; } instance of movieClip 127 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } frame 5 { delete _parent.end; stop(); } } movieClip 620 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } frame 6 { stop(); } frame 7 { stop(); } frame 8 { stop(); } frame 9 { stop(); } frame 10 { stop(); } frame 11 { stop(); } frame 12 { stop(); } } movieClip 631 { instance of movieClip 620 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } } movieClip 644 { instance of movieClip 620 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } } movieClip 655 { instance of movieClip 620 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } } movieClip 668 { instance of movieClip 620 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } } movieClip 681 { instance of movieClip 620 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } } movieClip 686 { instance of movieClip 620 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } } movieClip 695 { frame 1 { _parent.end = 1; } instance of movieClip 620 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } frame 6 { delete _parent.end; stop(); } } movieClip 706 { frame 1 { _parent.end = 1; } instance of movieClip 620 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } frame 6 { delete _parent.end; stop(); } } movieClip 719 { frame 1 { _parent.end = 1; } instance of movieClip 620 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } frame 7 { delete _parent.end; stop(); } } movieClip 730 { frame 1 { _parent.end = 1; } instance of movieClip 620 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } frame 6 { delete _parent.end; stop(); } } movieClip 739 { frame 1 { _parent.end = 1; } instance of movieClip 620 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } frame 5 { delete _parent.end; stop(); } } movieClip 742 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } frame 6 { stop(); } frame 7 { stop(); } frame 8 { stop(); } frame 9 { stop(); } frame 10 { stop(); } frame 11 { stop(); } frame 12 { stop(); } } movieClip 753 { instance of movieClip 742 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } } movieClip 766 { instance of movieClip 742 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } } movieClip 773 { instance of movieClip 742 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } } movieClip 786 { instance of movieClip 742 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } } movieClip 799 { instance of movieClip 742 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } } movieClip 804 { instance of movieClip 742 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } } movieClip 813 { frame 1 { _parent.end = 1; } instance of movieClip 742 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } frame 6 { delete _parent.end; stop(); } } movieClip 824 { frame 1 { _parent.end = 1; } instance of movieClip 742 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } frame 6 { delete _parent.end; stop(); } } movieClip 837 { frame 1 { _parent.end = 1; } instance of movieClip 742 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } frame 7 { delete _parent.end; stop(); } } movieClip 848 { frame 1 { _parent.end = 1; } instance of movieClip 742 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } frame 6 { delete _parent.end; stop(); } } movieClip 857 { frame 1 { _parent.end = 1; } instance of movieClip 742 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } frame 5 { delete _parent.end; stop(); } } movieClip 858 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } frame 6 { stop(); } instance of movieClip 127 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } frame 7 { stop(); } instance of movieClip 127 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } frame 8 { stop(); } instance of movieClip 127 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } frame 9 { stop(); } instance of movieClip 127 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } frame 10 { stop(); } frame 11 { stop(); } frame 12 { stop(); } frame 13 { stop(); } frame 14 { stop(); } frame 15 { stop(); } frame 16 { stop(); } frame 17 { stop(); } frame 18 { stop(); } frame 19 { stop(); } frame 20 { stop(); } frame 21 { stop(); } frame 22 { stop(); } frame 23 { stop(); } frame 24 { stop(); } frame 25 { stop(); } frame 26 { stop(); } instance of movieClip 127 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } instance of movieClip 127 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } frame 27 { stop(); } instance of movieClip 127 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } frame 28 { stop(); } instance of movieClip 127 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } frame 29 { stop(); } instance of movieClip 127 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } frame 30 { stop(); } instance of movieClip 127 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } frame 31 { stop(); } frame 32 { stop(); } frame 33 { stop(); } frame 34 { stop(); } frame 35 { stop(); } frame 36 { stop(); } frame 37 { stop(); } frame 38 { stop(); } frame 39 { stop(); } frame 40 { stop(); } frame 41 { stop(); } frame 42 { stop(); } frame 43 { stop(); } frame 44 { stop(); } frame 45 { stop(); } frame 46 { stop(); } instance of movieClip 127 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } frame 47 { stop(); } instance of movieClip 127 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } frame 48 { stop(); } instance of movieClip 127 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } frame 49 { stop(); } instance of movieClip 127 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } frame 50 { stop(); } frame 51 { stop(); } frame 52 { stop(); } frame 53 { stop(); } frame 54 { stop(); } frame 55 { stop(); } frame 56 { stop(); } frame 57 { stop(); } frame 58 { stop(); } frame 59 { stop(); } frame 60 { stop(); } frame 61 { stop(); } frame 62 { stop(); } frame 63 { stop(); } frame 64 { stop(); } frame 65 { stop(); } frame 66 { stop(); } instance of movieClip 127 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } frame 67 { stop(); } instance of movieClip 127 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } frame 68 { stop(); } instance of movieClip 127 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } frame 69 { stop(); } instance of movieClip 127 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } frame 70 { stop(); } frame 71 { stop(); } frame 72 { stop(); } frame 73 { stop(); } frame 74 { stop(); } frame 75 { stop(); } frame 76 { stop(); } frame 77 { stop(); } frame 78 { stop(); } frame 79 { stop(); } frame 80 { stop(); } frame 81 { stop(); } frame 82 { stop(); } frame 83 { stop(); } frame 84 { stop(); } frame 85 { stop(); } frame 86 { stop(); } instance of movieClip 620 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } frame 87 { stop(); } instance of movieClip 620 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } frame 88 { stop(); } instance of movieClip 620 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } frame 89 { stop(); } instance of movieClip 620 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } frame 90 { stop(); } frame 91 { stop(); } frame 92 { stop(); } frame 93 { stop(); } frame 94 { stop(); } frame 95 { stop(); } frame 96 { stop(); } frame 97 { stop(); } frame 98 { stop(); } frame 99 { stop(); } frame 100 { stop(); } frame 101 { stop(); } frame 102 { stop(); } frame 103 { stop(); } frame 104 { stop(); } frame 105 { stop(); } frame 106 { stop(); } instance of movieClip 742 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } frame 107 { stop(); } instance of movieClip 742 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } frame 108 { stop(); } instance of movieClip 742 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } frame 109 { stop(); } instance of movieClip 742 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } frame 110 { stop(); } frame 111 { stop(); } frame 112 { stop(); } frame 113 { stop(); } frame 114 { stop(); } frame 115 { stop(); } frame 116 { stop(); } frame 117 { stop(); } frame 118 { stop(); } frame 119 { stop(); } frame 120 { stop(); } } movieClip 862 { } movieClip 863 { } movieClip 885 { } movieClip 886 { instance char of movieClip 858 { onClipEvent (enterFrame) { this.gotoAndStop(1); } } instance char of movieClip 858 { onClipEvent (enterFrame) { this.gotoAndStop(21); } } instance char of movieClip 858 { onClipEvent (enterFrame) { this.gotoAndStop(101); } } instance char of movieClip 858 { onClipEvent (enterFrame) { this.gotoAndStop(61); } } } movieClip 888 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 893 { } movieClip 895 { } movieClip 899 { } movieClip 901 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 904 { instance of movieClip 901 { onClipEvent (enterFrame) { if (_parent.cs_name_a == 'Rogue') { this.gotoAndStop(2); } else { if (_parent.cs_name_a == 'Warrior') { this.gotoAndStop(1); } } } } } movieClip 911 { } movieClip 933 { } movieClip 935 { frame 1 { delete _root.csanimedone; } frame 16 { stop(); } } movieClip 955 { frame 1 { delete _root.csanimedone; } frame 16 { stop(); } frame 16 { stop(); } } movieClip 956 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 959 { } button 961 { on (rollOver) { _global.guiButton = 1; } on (rollOut) { delete _global.guiButton; } } movieClip 969 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 973 { frame 1 { stop(); } frame 5 { gotoAndStop(1); } frame 10 { gotoAndStop(1); } instance of movieClip 956 { onClipEvent (load) { if (_root.cs_char_sel1.cs.choose == 2) { this.gotoAndStop(1); } else { if (_root.cs_char_sel1.cs.choose == 1) { this.gotoAndStop(2); } } } } instance of movieClip 959 { onClipEvent (load) { if (_root.cs_char_sel1.cs.choose == 2) { this.text = '<b><i>Endurance Fighter <br> Can Attack Multiple Targets'; } else { if (_root.cs_char_sel1.cs.choose == 1) { this.text = '<b><i>Agile Solo Fighter <br> Can Destroy Single Targets'; } } } } instance statsColor of movieClip 956 { onClipEvent (load) { if (_root.cs_char_sel1.cs.choose == 2) { this.gotoAndStop(1); } else { if (_root.cs_char_sel1.cs.choose == 1) { this.gotoAndStop(2); } } } } instance of movieClip 959 { onClipEvent (load) { if (_root.cs_char_sel1.cs.choose == 2) { this.text = '<b><i>Endurance Fighter <br> Can Attack Multiple Targets'; } else { if (_root.cs_char_sel1.cs.choose == 1) { this.text = '<b><i>Agile Solo Fighter <br> Can Destroy Single Targets'; } } } } instance of movieClip 969 { onClipEvent (enterFrame) { if (_root.ambushCamera == 1) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } if (_root.m_input == 1 && this.hitTest(_root._xmouse, _root._ymouse, true)) { _root.mouseReset(); if (input == null) { if (_root.ambushCamera == null) { this.gotoAndStop(2); _root.ambushCamera = 1; delete _root.m_input; } else { if (_root.ambushCamera == 1) { this.gotoAndStop(1); delete _root.ambushCamera; delete _root.m_input; } } input = 1; } else { delete input; } } } } instance of movieClip 969 { onClipEvent (enterFrame) { if (_root.m_input == 1 && this.hitTest(_root._xmouse, _root._ymouse, true)) { _root.mouseReset(); if (input == null) { if (_global.guiButton == null) { this.gotoAndStop(2); _global.guiButton = 1; delete _root.m_input; } else { if (_global.guiButton == 1) { this.gotoAndStop(1); delete _root.m_input; } } input = 1; } else { delete input; } } else { this.gotoAndStop(1); delete _global.guiButton; } } } instance of movieClip 969 { onClipEvent (enterFrame) { if (_root.BGM == null) { this.gotoAndStop(2); _root.BGM = 1; } if (_root.BGM == 1) { this.gotoAndStop(2); } else { if (_root.BGMstart == null) { this.gotoAndStop(1); _root.BGM = 2; _root.BGMstart = 1; } else { if (_root.soundbgm1._x == null) { this.gotoAndStop(1); _root.BGM = 2; } } } if (_root.m_input == 1 && this.hitTest(_root._xmouse, _root._ymouse, true)) { _root.mouseReset(); if (muzie == null) { if (_root.BGM >= 2) { _root.BGM = 1; } else { ++_root.BGM; } if (_root.BGM == 2) { stopAllSounds(); removeMovieClip(_root.soundbgm1); } if (_root.BGM == 1) { _root.soundbgm.duplicateMovieClip('soundbgm1', 104); _root.soundbgm1.gotoAndStop(_root.floor + 2); _root.soundbgm1.gotoAndStop(1); } muzie = 1; } } else { delete muzie; } } } instance of movieClip 969 { onClipEvent (enterFrame) { if (_root.SFX == null) { this.gotoAndStop(2); _root.SFX = 1; } if (_root.SFX == 2) { if (soundUnload == null) { removeMovieClip(_root.sound1); removeMovieClip(_root.soundeffect1); removeMovieClip(_root.sounditem1); removeMovieClip(_root.soundspell1); removeMovieClip(_root.soundvoice1); soundUnload = 1; } this.gotoAndStop(1); } if (_root.SFX == 1) { if (soundLoad == null) { _root.sound.duplicateMovieClip('sound1', 901); _root.soundeffect.duplicateMovieClip('soundeffect1', 902); _root.sounditem.duplicateMovieClip('sounditem1', 903); _root.soundspell.duplicateMovieClip('soundspell1', 904); _root.soundvoice.duplicateMovieClip('soundvoice1', 905); soundLoad = 1; } this.gotoAndStop(2); } else { if (_root.SFXstart == null) { this.gotoAndStop(1); _root.SFX = 2; _root.SFXstart = 1; } else { if (_root.sound1._x == null) { this.gotoAndStop(1); _root.SFX = 2; } } } if (_root.m_input == 1 && this.hitTest(_root._xmouse, _root._ymouse, true)) { if (soundfx == null) { if (_root.SFX >= 2) { _root.SFX = 1; } else { ++_root.SFX; } if (_root.SFX == 2) { removeMovieClip(_root.sound1); removeMovieClip(_root.soundeffect1); removeMovieClip(_root.sounditem1); removeMovieClip(_root.soundspell1); removeMovieClip(_root.soundvoice1); this.gotoAndStop(2); } if (_root.SFX == 1) { _root.sound.duplicateMovieClip('sound1', 901); _root.soundeffect.duplicateMovieClip('soundeffect1', 902); _root.sounditem.duplicateMovieClip('sounditem1', 903); _root.soundspell.duplicateMovieClip('soundspell1', 904); _root.soundvoice.duplicateMovieClip('soundvoice1', 905); _root.sound1.gotoAndPlay(2); this.gotoAndStop(1); } soundfx = 1; } } else { delete soundfx; } } } instance of movieClip 969 { onClipEvent (enterFrame) { if (_root.m_input == 1 && this.hitTest(_root._xmouse, _root._ymouse, true)) { if (rez == null) { if (_root.pos >= 2) { _root.pos = 1; } else { ++_root.pos; } if (_root.pos == 1) { this.gotoAndStop(1); _root._x -= 120; _root._y -= 120; _root._xscale = 200; _root._yscale = 200; } if (_root.pos == 2) { this.gotoAndStop(2); _root._x += 120; _root._y += 120; _root._xscale = 100; _root._yscale = 100; } rez = 1; } } else { delete rez; } } } instance of movieClip 969 { onClipEvent (enterFrame) { if (_root.autoinvisible == 1) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } if (_root.m_input == 1 && this.hitTest(_root._xmouse, _root._ymouse, true)) { _root.mouseReset(); if (input == null) { if (_root.autoinvisible == null) { this.gotoAndStop(2); _root.autoinvisible = 1; delete _root.m_input; } else { if (_root.autoinvisible == 1) { this.gotoAndStop(1); delete _root.autoinvisible; delete _root.m_input; } } input = 1; } else { delete input; } } } } frame 41 { stop(); } } movieClip 975 { } movieClip 977 { instance select of movieClip 975 { onClipEvent (load) { _root.cs_char_sel1.cs.choose = 2; } onClipEvent (enterFrame) { if (_root.cs_char_sel1.cs.cs_char_sel._currentframe >= 25) { if (Key.isDown(39) || Key.isDown(37)) { _root.cs_char_sel1.cs.cs_char_sel.gotoAndPlay(6); } if (Key.isDown(13) || _root.m_input == 1 && _root.cs_char_sel1.cs.cs_char_sel.cs_b.hitTest(_root._xmouse, _root._ymouse, true)) { if (k_enter == null) { _root.cs_char_sel1.cs.cs_char_sel.cs_b.cs_name_a = 'Rogue'; if (_root.cs_char_sel1.cs.cs_char_sel._currentframe >= 41) { _root.class = _root.cs_char_sel1.cs.choose; stopAllSounds(); if (_root.retry == 1) { _global.program = 6; } else { _global.program = 5; } delete _root.scene_load; } if (select == null) { _root.cs_char_sel1.cs.cs_char_sel.gotoAndPlay(11); select = 1; _root.soundeffect.gotoAndStop(3); } k_enter = 1; } } else { delete k_enter; } } else { if (_root.m_input == 1 && _root.cs_char_sel1.cs.cs_char_sel._currentframe >= 25 && !_root.cs_char_sel1.cs.cs_char_sel.cs_b.hitTest(_root._xmouse, _root._ymouse, true)) { _root.cs_char_sel1.cs.cs_char_sel.gotoAndPlay(2); _root.soundeffect.gotoAndStop(2); } if (_parent._parent._currentframe >= 15) { if (Key.isDown(13) || _root.m_input == 1 && _root.cs_char_sel1.cs.cs_char_sel.cs_b.hitTest(_root._xmouse, _root._ymouse, true)) { if (k_enter == null) { _root.cs_char_sel1.cs.cs_char_sel.cs_b.cs_name_a = 'Rogue'; if (_root.cs_char_sel1.cs.cs_char_sel._currentframe >= 41) { _root.class = _root.cs_char_sel1.cs.choose; stopAllSounds(); if (_root.retry == 1) { _global.program = 6; } else { _global.program = 5; } delete _root.scene_load; } if (select == null) { _root.cs_char_sel1.cs.cs_char_sel.gotoAndPlay(11); select = 1; _root.soundeffect.gotoAndStop(3); } k_enter = 1; } } else { delete k_enter; } if (_root.cs_char_sel1.cs.choose == 1) { _root.cs_char_sel1.cs.cs_char_sel.cs_a.cs_name_a = 'Warrior'; _root.cs_char_sel1.cs.cs_char_sel.cs_b.cs_name_a = 'Rogue'; _root.cs_char_sel1.cs.cs_char_sel.cs_c.cs_name_a = 'Warrior'; _root.cs_char_sel1.cs.cs_char_sel.cs_d.cs_name_a = 'Rogue'; } if (_root.cs_char_sel1.cs.choose == 2) { _root.cs_char_sel1.cs.cs_char_sel.cs_a.cs_name_a = 'Rogue'; _root.cs_char_sel1.cs.cs_char_sel.cs_b.cs_name_a = 'Warrior'; _root.cs_char_sel1.cs.cs_char_sel.cs_c.cs_name_a = 'Rogue'; _root.cs_char_sel1.cs.cs_char_sel.cs_d.cs_name_a = 'Warrior'; } if (Key.isDown(37) || _root.m_input == 1 && _root.cs_char_sel1.cs.cs_char_sel.cs_a.hitTest(_root._xmouse, _root._ymouse, true)) { delete select; if (klrush == 1) { if (klinput >= 5) { delete k_l_input; delete klinput; } else { ++klinput; } } else { if (klinput >= 30) { delete k_l_input; delete klinput; klrush = 1; } else { ++klinput; } } if (k_l_input == null) { if (_root.cs_char_sel1.cs.choose <= 1) { _root.cs_char_sel1.cs.choose = 2; } else { --_root.cs_char_sel1.cs.choose; } _root.cs_char_sel1.cs.cs_char_sel.gotoAndPlay(6); delete _root.cs_char_sel1.cs.select; _root.soundeffect.gotoAndStop(2); k_l_input = 1; } } else { delete k_l_input; delete klrush; } if (Key.isDown(39) || _root.m_input == 1 && _root.cs_char_sel1.cs.cs_char_sel.cs_c.hitTest(_root._xmouse, _root._ymouse, true)) { delete select; if (krrush == 1) { if (krinput >= 5) { delete k_r_input; delete krinput; } else { ++krinput; } } else { if (krinput >= 30) { delete k_r_input; delete krinput; krrush = 1; } else { ++krinput; } } if (k_r_input == null) { if (_root.cs_char_sel1.cs.choose >= 2) { _root.cs_char_sel1.cs.choose = 1; } else { ++_root.cs_char_sel1.cs.choose; } _root.cs_char_sel1.cs.cs_char_sel.gotoAndPlay(2); delete _root.cs_char_sel1.cs.select; _root.soundeffect.gotoAndStop(2); k_r_input = 1; } } else { delete k_r_input; delete krrush; } } } } } } movieClip 984 { frame 1 { stop(); } frame 2 { play(); } frame 16 { stop(); } } movieClip 988 { } movieClip 1032 { } movieClip 1036 { } movieClip 1044 { } movieClip 1047 { } movieClip 1056 { } movieClip 1059 { } movieClip 1062 { } movieClip 1079 { } movieClip 1088 { } movieClip 1105 { } movieClip 1108 { } movieClip 1117 { } movieClip 1138 { } movieClip 1178 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } frame 6 { stop(); } frame 7 { stop(); } frame 8 { stop(); } frame 9 { stop(); } frame 10 { stop(); } frame 11 { stop(); } frame 12 { stop(); } frame 13 { stop(); } frame 14 { stop(); } frame 15 { stop(); } frame 16 { stop(); } frame 17 { stop(); } frame 18 { stop(); } frame 19 { stop(); } frame 20 { stop(); } frame 21 { stop(); } frame 22 { } } movieClip 1179 { } movieClip 1180 { instance of movieClip 127 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } } movieClip 1183 { } movieClip 1187 { } movieClip 1192 { } movieClip 1193 { } movieClip 1194 { } movieClip 1199 { } movieClip 1205 { frame 6 { stop(); } } movieClip 1210 { frame 6 { stop(); } } movieClip 1211 { frame 6 { stop(); } } movieClip 1212 { frame 6 { stop(); } } movieClip 1217 { frame 6 { stop(); } } movieClip 1224 { } movieClip 1231 { } movieClip 1232 { } movieClip 1233 { } movieClip 1240 { } movieClip 1245 { frame 6 { stop(); } } movieClip 1250 { frame 6 { stop(); } } movieClip 1251 { frame 6 { stop(); } } movieClip 1252 { frame 6 { stop(); } } movieClip 1257 { frame 6 { stop(); } } movieClip 1264 { } movieClip 1271 { } movieClip 1272 { } movieClip 1273 { } movieClip 1280 { } movieClip 1290 { frame 6 { stop(); } } movieClip 1299 { frame 6 { stop(); } } movieClip 1300 { frame 6 { stop(); } } movieClip 1301 { frame 6 { stop(); } } movieClip 1310 { frame 6 { stop(); } } movieClip 1317 { } movieClip 1324 { } movieClip 1325 { } movieClip 1326 { } movieClip 1333 { } movieClip 1342 { frame 5 { stop(); } } movieClip 1351 { frame 5 { stop(); } } movieClip 1352 { frame 5 { stop(); } } movieClip 1353 { frame 5 { stop(); } } movieClip 1362 { frame 5 { stop(); } } movieClip 1369 { } movieClip 1376 { } movieClip 1377 { } movieClip 1378 { } movieClip 1385 { } movieClip 1390 { frame 6 { stop(); } } movieClip 1395 { frame 6 { stop(); } } movieClip 1396 { frame 6 { stop(); } } movieClip 1397 { frame 6 { stop(); } } movieClip 1402 { frame 6 { stop(); } } movieClip 1409 { } movieClip 1416 { } movieClip 1417 { } movieClip 1418 { } movieClip 1425 { } movieClip 1430 { frame 6 { stop(); } } movieClip 1435 { frame 6 { stop(); } } movieClip 1436 { frame 6 { stop(); } } movieClip 1437 { frame 6 { stop(); } } movieClip 1442 { frame 6 { stop(); } } movieClip 1443 { frame 1 { gotoAndStop(_root.monanim); } frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } frame 6 { stop(); } instance of movieClip 127 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } instance of movieClip 127 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } frame 7 { stop(); } instance of movieClip 127 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } frame 8 { stop(); } instance of movieClip 127 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } frame 9 { stop(); } instance of movieClip 127 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } frame 10 { stop(); } frame 11 { stop(); } frame 12 { stop(); } frame 13 { stop(); } frame 14 { stop(); } frame 15 { stop(); } frame 16 { stop(); } frame 17 { stop(); } frame 18 { stop(); } frame 19 { stop(); } frame 20 { stop(); } frame 21 { stop(); } frame 22 { stop(); } frame 23 { stop(); } frame 24 { stop(); } frame 25 { stop(); } frame 26 { stop(); } frame 27 { stop(); } frame 28 { stop(); } frame 29 { stop(); } frame 30 { stop(); } frame 31 { stop(); } frame 32 { stop(); } frame 33 { stop(); } frame 34 { stop(); } frame 35 { stop(); } frame 36 { stop(); } frame 37 { stop(); } frame 38 { stop(); } frame 39 { stop(); } frame 40 { stop(); } frame 41 { stop(); } frame 42 { stop(); } frame 43 { stop(); } frame 44 { stop(); } frame 45 { stop(); } frame 46 { stop(); } frame 47 { stop(); } frame 48 { stop(); } frame 49 { stop(); } frame 50 { stop(); } frame 51 { stop(); } frame 52 { stop(); } frame 53 { stop(); } frame 54 { stop(); } frame 55 { stop(); } frame 56 { stop(); } frame 57 { stop(); } frame 58 { stop(); } frame 59 { stop(); } frame 60 { stop(); } frame 61 { stop(); } frame 62 { stop(); } frame 63 { stop(); } frame 64 { stop(); } frame 65 { stop(); } frame 66 { stop(); } frame 67 { stop(); } frame 68 { stop(); } frame 69 { stop(); } frame 70 { stop(); } frame 71 { stop(); } frame 72 { stop(); } frame 73 { stop(); } frame 74 { stop(); } frame 75 { stop(); } frame 76 { stop(); } frame 77 { stop(); } frame 78 { stop(); } frame 79 { stop(); } frame 80 { stop(); } frame 81 { stop(); } frame 82 { stop(); } frame 83 { stop(); } frame 84 { stop(); } frame 85 { stop(); } frame 86 { stop(); } frame 87 { stop(); } frame 88 { stop(); } frame 89 { stop(); } frame 90 { stop(); } frame 91 { stop(); } frame 92 { stop(); } frame 93 { stop(); } frame 94 { stop(); } frame 95 { stop(); } frame 96 { stop(); } frame 97 { stop(); } frame 98 { stop(); } frame 99 { stop(); } frame 100 { stop(); } frame 101 { stop(); } frame 102 { stop(); } frame 103 { stop(); } frame 104 { stop(); } frame 105 { stop(); } frame 106 { stop(); } frame 107 { stop(); } frame 108 { stop(); } frame 109 { stop(); } frame 110 { stop(); } frame 111 { stop(); } frame 112 { stop(); } frame 113 { stop(); } frame 114 { stop(); } frame 115 { stop(); } frame 116 { stop(); } frame 117 { stop(); } frame 118 { stop(); } frame 119 { stop(); } frame 120 { stop(); } } movieClip 1450 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 1454 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 1458 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 1462 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 1463 { instance of movieClip 1450 { onClipEvent (enterFrame) { if (_root.kba[_root.run] == true) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 1454 { onClipEvent (enterFrame) { if (_root.kbs[_root.run] == true) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 1458 { onClipEvent (enterFrame) { if (_root.kbd[_root.run] == true) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 1462 { onClipEvent (enterFrame) { if (_root.kbf[_root.run] == true) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } } movieClip 1466 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 1469 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 1472 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 1475 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 1476 { instance of movieClip 1466 { onClipEvent (enterFrame) { if (_root.kbup[_root.run] == true) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 1469 { onClipEvent (enterFrame) { if (_root.kbleft[_root.run] == true) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 1472 { onClipEvent (enterFrame) { if (_root.kbdown[_root.run] == true) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 1475 { onClipEvent (enterFrame) { if (_root.kbright[_root.run] == true) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } } movieClip 1477 { } movieClip 1478 { } movieClip 1484 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } } movieClip 1485 { instance info of movieClip 1484 { onClipEvent (enterFrame) { if (this._xscale < 100) { this._xscale += 5; } } } frame 20 { stop(); } } movieClip 1487 { } movieClip 1491 { frame 15 { removeMovieClip(this); } } movieClip 1492 { frame 15 { removeMovieClip(this); } } movieClip 1494 { frame 25 { removeMovieClip(this); } } movieClip 1497 { } movieClip 1498 { frame 25 { removeMovieClip(this); } } movieClip 1501 { frame 25 { removeMovieClip(this); } } movieClip 1503 { frame 25 { removeMovieClip(this); } } movieClip 1506 { frame 15 { removeMovieClip(this); } } movieClip 1509 { } movieClip 1511 { } movieClip 1516 { instance of movieClip 1509 { onClipEvent (enterFrame) { if (this._width > _root.player_mana * 39 / _root.stats_mana) { this._width -= 0.3; } } } instance of movieClip 1511 { onClipEvent (enterFrame) { this._width = _root.player_mana * 39 / _root.stats_mana; } } instance of movieClip 1509 { onClipEvent (enterFrame) { if (this._width > _root.player_health * 39 / _root.stats_health) { this._width -= 0.3; } } } instance of movieClip 1509 { onClipEvent (enterFrame) { this._width = _root.player_health * 39 / _root.stats_health; } } } movieClip 1533 { frame 25 { removeMovieClip(this); } } movieClip 1537 { } movieClip 1543 { instance of movieClip 1537 { onClipEvent (enterFrame) { if (this._height > _root.concpotTimer * 17.8 / _root.concpot_time) { this._height -= 1; } if (this._height < _root.concpotTimer * 17.8 / _root.concpot_time) { this._height += 1; } } } } movieClip 1546 { } movieClip 1549 { } movieClip 1552 { } movieClip 1555 { instance of movieClip 1537 { onClipEvent (enterFrame) { if (this._height > _root.invistimer * 17.8 / 1560) { this._height -= 1; } if (this._height < _root.invistimer * 17.8 / 1560) { this._height += 1; } } } } movieClip 1559 { instance of movieClip 1537 { onClipEvent (enterFrame) { if (this._height > _root.furytimer * 17.8 / 6250) { this._height -= 1; } if (this._height < _root.furytimer * 17.8 / 6250) { this._height += 1; } } } } movieClip 1578 { } movieClip 1584 { instance char of movieClip 858 { onClipEvent (enterFrame) { this.gotoAndStop(_root.char1._currentframe); this._xscale = _root.char1._xscale; } } instance item2 of movieClip 1178 { onClipEvent (enterFrame) { if (_root.equipArray[2] == null) { this.gotoAndStop(39); } else { this.gotoAndStop(_root.equipArray[2]); } } } instance item3 of movieClip 1178 { onClipEvent (enterFrame) { if (_root.equipArray[3] == null) { this.gotoAndStop(39); } else { this.gotoAndStop(_root.equipArray[3]); } } } instance item1 of movieClip 1178 { onClipEvent (enterFrame) { if (_root.equipArray[1] == null) { this.gotoAndStop(39); } else { this.gotoAndStop(_root.equipArray[1]); } } } instance item4 of movieClip 1178 { onClipEvent (enterFrame) { if (_root.equipArray[4] == null) { this.gotoAndStop(39); } else { this.gotoAndStop(_root.equipArray[4]); } } } instance item5 of movieClip 1178 { onClipEvent (enterFrame) { if (_root.equipArray[5] == null) { this.gotoAndStop(39); } else { this.gotoAndStop(_root.equipArray[5]); } } } } movieClip 1587 { } movieClip 1590 { } movieClip 1597 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 1598 { instance item1 of movieClip 1178 { onClipEvent (enterFrame) { if (_root.spellArray[1] == null) { this.gotoAndStop(39); } else { this.gotoAndStop(_root.spellArray[1]); } } } instance item2 of movieClip 1178 { onClipEvent (enterFrame) { if (_root.spellArray[2] == null) { this.gotoAndStop(39); } else { this.gotoAndStop(_root.spellArray[2]); } } } instance item3 of movieClip 1178 { onClipEvent (enterFrame) { if (_root.spellArray[3] == null) { this.gotoAndStop(39); } else { this.gotoAndStop(_root.spellArray[3]); } } } instance item4 of movieClip 1178 { onClipEvent (enterFrame) { if (_root.spellArray[4] == null) { this.gotoAndStop(39); } else { this.gotoAndStop(_root.spellArray[4]); } } } instance item5 of movieClip 1178 { onClipEvent (enterFrame) { if (_root.spellArray[5] == null) { this.gotoAndStop(39); } else { this.gotoAndStop(_root.spellArray[5]); } } } instance of movieClip 1597 { onClipEvent (enterFrame) { this.gotoAndStop(_root.spellMenuArrowD + 1); } } instance UP of movieClip 1597 { onClipEvent (enterFrame) { this.gotoAndStop(_root.spellMenuArrowU + 1); } } } movieClip 1600 { } movieClip 1602 { } movieClip 1603 { } movieClip 1604 { frame 1 { stop(); } instance of movieClip 1600 { 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); } } } } frame 2 { stop(); } instance of movieClip 1603 { 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); } } } } } movieClip 1608 { } button 1611 { on (press) { m = 1; } on (release, releaseOutside) { m = 0; } } movieClip 1612 { } movieClip 1613 { instance head of movieClip 1612 { onClipEvent (enterFrame) { if (hitTest(_root._xmouse, _root._ymouse, true)) { } } } } movieClip 1615 { instance player of movieClip 1613 { 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); } } } movieClip 1628 { } movieClip 1636 { instance item_1 of movieClip 1178 { onClipEvent (enterFrame) { if (_root.itemNum[1] == null) { this.gotoAndStop(39); } else { this.gotoAndStop(_root.itemArraynum[1]); } } } instance item_2 of movieClip 1178 { onClipEvent (enterFrame) { if (_root.itemNum[2] == null) { this.gotoAndStop(39); } else { this.gotoAndStop(_root.itemArraynum[2]); } } } instance item_3 of movieClip 1178 { onClipEvent (enterFrame) { if (_root.itemNum[3] == null) { this.gotoAndStop(39); } else { this.gotoAndStop(_root.itemArraynum[3]); } } } instance item_4 of movieClip 1178 { onClipEvent (enterFrame) { if (_root.itemNum[4] == null) { this.gotoAndStop(39); } else { this.gotoAndStop(_root.itemArraynum[4]); } } } instance item_5 of movieClip 1178 { onClipEvent (enterFrame) { if (_root.itemNum[5] == null) { this.gotoAndStop(39); } else { this.gotoAndStop(_root.itemArraynum[5]); } } } } movieClip 1639 { } movieClip 1647 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 1654 { } movieClip 1657 { frame 1 { stop(); } } movieClip 1659 { } movieClip 1662 { } movieClip 1664 { } movieClip 1666 { } movieClip 1668 { } movieClip 1671 { } movieClip 1673 { } movieClip 1675 { } movieClip 1677 { } movieClip 1681 { instance of movieClip 1537 { onClipEvent (enterFrame) { if (_root.class == 1) { if (_root.mighttimer >= 1) { if (this._height > _root.mighttimer * 17.8 / 1620) { this._height -= 1; } if (this._height < _root.mighttimer * 17.8 / 1620) { this._height += 1; } } else { if (_root.potencetimer >= 1) { if (this._height > _root.potencetimer * 17.8 / 1850) { this._height -= 1; } if (this._height < _root.potencetimer * 17.8 / 1850) { this._height += 1; } } else { if (_root.shadowtimer >= 1) { if (this._height > _root.shadowtimer * 17.8 / 6000) { this._height -= 1; } if (this._height < _root.shadowtimer * 17.8 / 6000) { this._height += 1; } } } } } if (_root.class == 2) { if (_root.blesstimer >= 1) { if (this._height > _root.blesstimer * 17.8 / 3750) { this._height -= 1; } if (this._height < _root.blesstimer * 17.8 / 3750) { this._height += 1; } } else { if (_root.flanktimer >= 1) { if (this._height > _root.flanktimer * 17.8 / 6250) { this._height -= 1; } if (this._height < _root.flanktimer * 17.8 / 6250) { this._height += 1; } } } } } } instance of movieClip 1666 { onClipEvent (load) { _visible = false; } onClipEvent (enterFrame) { if (_root.meleenum >= 1) { _visible = true; } else { _visible = false; } } } instance of movieClip 1668 { onClipEvent (load) { _visible = false; } onClipEvent (enterFrame) { if (_root.meleenum >= 2) { _visible = true; } else { _visible = false; } } } instance of movieClip 1671 { onClipEvent (load) { _visible = false; } onClipEvent (enterFrame) { if (_root.blesstimer >= 1) { _visible = true; } else { _visible = false; } } } instance of movieClip 1673 { onClipEvent (load) { _visible = false; } onClipEvent (enterFrame) { if (_root.potencetimer >= 1) { _visible = true; } else { _visible = false; } } } instance of movieClip 1675 { onClipEvent (load) { _visible = false; } onClipEvent (enterFrame) { if (_root.mighttimer >= 1) { _visible = true; } else { _visible = false; } } } instance of movieClip 1677 { onClipEvent (load) { _visible = false; } onClipEvent (enterFrame) { if (_root.shadowtimer >= 1) { _visible = true; } else { _visible = false; } } } } button 1685 { on (press) { m = 1; } on (release, releaseOutside, dragOut) { delete m; } } movieClip 1686 { } movieClip 1687 { instance of movieClip 1686 { 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; } } } } movieClip 1689 { } button 1692 { on (press) { _parent.startDrag(); } on (release) { _parent.stopDrag(); } } button 1695 { on (press) { _parent._parent.gotoAndPlay(6); } } button 1701 { on (press) { _parent.question._x = 20; _parent.question._y = -50; } } button 1703 { on (dragOut) { delete _root.userLine; delete _root.rdstart; delete _root.rdstart2; _root.mreset = 1; ++_root.mailletter; } } button 1704 { 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 -= 2; } else { --_root.mailletter; } } } } button 1712 { 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>'; } } button 1713 { on (press, keyPress 'd') { _parent.question._x = -9999; _parent.question._y = -9999; } } movieClip 1714 { } movieClip 1715 { instance question of movieClip 1714 { onClipEvent (load) { this._x = -99999; this._y = -99999; } } } movieClip 1716 { frame 1 { stop(); } } movieClip 1717 { frame 1 { stop(); } frame 5 { stop(); } frame 10 { stop(); } } movieClip 1718 { instance of movieClip 1543 { onClipEvent (load) { _visible = false; } onClipEvent (enterFrame) { if (_root.concpot_use == 1) { _visible = true; } else { _visible = false; } } } instance of movieClip 1546 { onClipEvent (load) { _visible = false; } onClipEvent (enterFrame) { } } instance of movieClip 1549 { onClipEvent (load) { _visible = false; } } instance of movieClip 1552 { onClipEvent (load) { _visible = false; } } instance of movieClip 1555 { onClipEvent (load) { _visible = false; } onClipEvent (enterFrame) { if (_root.invis_buff == 1) { _visible = true; } else { _visible = false; } } } instance of movieClip 1559 { onClipEvent (load) { _visible = false; } onClipEvent (enterFrame) { if (_root.furybuff == 1) { _visible = true; } else { _visible = false; } } } instance equipment of movieClip 1584 { onClipEvent (enterFrame) { if (_root.equip_usage == 1) { this._visible = true; } else { this._visible = false; } } } instance spellList of movieClip 1598 { onClipEvent (enterFrame) { if (_root.spell_usage == 1) { this._visible = true; } else { this._visible = false; } } } instance mailbox of movieClip 1604 { onClipEvent (enterFrame) { if (_root.newmail == 1) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance timebar of movieClip 1615 { onClipEvent (enterFrame) { if (_root.time_use == 1) { _visible = true; } else { _visible = false; } } } instance macro of movieClip 1636 { 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>'; stats_health; this.gotoAndStop(_root.keys); if (_root.item_usage == 1) { this._visible = true; } else { this._visible = false; } } } instance of movieClip 1681 { 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; } } } } } movieClip 1722 { } button 1723 { on (keyPress 'y') { _root.stats_exp += 1000; } on (keyPress 'u') { _root.concpot_use = 1; } on (keyPress 'i') { _root.gold += 10000; } on (keyPress 'j') { _root.player_health -= _root.stats_health * 0.1; } } movieClip 1725 { frame 1 { stop(); } frame 2 { stop(); } instance of movieClip 1722 { onClipEvent (enterFrame) { if (counter == null) { counter = 1; } if (getTimer() >= 999 * counter) { ++counter; _root.fps = 'FPS:' + rate; delete rate; } else { ++rate; } } } } movieClip 1727 { } movieClip 1737 { } movieClip 1759 { frame 1 { stop(); } instance of movieClip 1722 { onClipEvent (enterFrame) { if (counter == null) { counter = 1; } if (getTimer() >= 999 * counter) { ++counter; _root.fps = 'FPS:' + rate; delete rate; } else { ++rate; } } } frame 2 { stop(); } instance of movieClip 1727 { onClipEvent (enterFrame) { if (_root.m_input == 1 && this.hitTest(_root._xmouse, _root._ymouse, true)) { _root.mouseReset(); } } } instance of movieClip 969 { onClipEvent (enterFrame) { if (_root.ambushCamera == 1) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } if (_root.m_input == 1 && this.hitTest(_root._xmouse, _root._ymouse, true)) { _root.mouseReset(); if (input == null) { if (_root.ambushCamera == null) { this.gotoAndStop(2); _root.ambushCamera = 1; delete _root.m_input; } else { if (_root.ambushCamera == 1) { this.gotoAndStop(1); delete _root.ambushCamera; delete _root.m_input; } } input = 1; } else { delete input; } } } } instance of movieClip 969 { onClipEvent (enterFrame) { if (_root.m_input == 1 && this.hitTest(_root._xmouse, _root._ymouse, true)) { _root.mouseReset(); if (input == null) { if (_global.guiButton == null) { this.gotoAndStop(2); _global.guiButton = 1; delete _root.m_input; } else { if (_global.guiButton == 1) { this.gotoAndStop(1); delete _root.m_input; } } input = 1; } else { delete input; } } else { this.gotoAndStop(1); delete _global.guiButton; } } } instance of movieClip 969 { onClipEvent (enterFrame) { if (_root.BGM == null) { this.gotoAndStop(2); _root.BGM = 1; } if (_root.BGM == 1) { this.gotoAndStop(2); } else { if (_root.BGMstart == null) { this.gotoAndStop(1); _root.BGM = 2; _root.BGMstart = 1; } else { if (_root.soundbgm1._x == null) { this.gotoAndStop(1); _root.BGM = 2; } } } if (_root.m_input == 1 && this.hitTest(_root._xmouse, _root._ymouse, true)) { _root.mouseReset(); if (muzie == null) { if (_root.BGM >= 2) { _root.BGM = 1; } else { ++_root.BGM; } if (_root.BGM == 2) { stopAllSounds(); removeMovieClip(_root.soundbgm1); } if (_root.BGM == 1) { _root.soundbgm.duplicateMovieClip('soundbgm1', 104); _root.soundbgm1.gotoAndStop(_root.floor + 2); _root.soundbgm1.gotoAndStop(1); } muzie = 1; } } else { delete muzie; } } } instance of movieClip 969 { onClipEvent (enterFrame) { if (_root.SFX == null) { this.gotoAndStop(2); _root.SFX = 1; } if (_root.SFX == 2) { if (soundUnload == null) { removeMovieClip(_root.sound1); removeMovieClip(_root.soundeffect1); removeMovieClip(_root.sounditem1); removeMovieClip(_root.soundspell1); removeMovieClip(_root.soundvoice1); soundUnload = 1; } this.gotoAndStop(1); } if (_root.SFX == 1) { if (soundLoad == null) { _root.sound.duplicateMovieClip('sound1', 901000); _root.soundeffect.duplicateMovieClip('soundeffect1', 902000); _root.sounditem.duplicateMovieClip('sounditem1', 903000); _root.soundspell.duplicateMovieClip('soundspell1', 904000); _root.soundvoice.duplicateMovieClip('soundvoice1', 905000); soundLoad = 1; } this.gotoAndStop(2); } else { if (_root.SFXstart == null) { this.gotoAndStop(1); _root.SFX = 2; _root.SFXstart = 1; } else { if (_root.sound1._x == null) { this.gotoAndStop(1); _root.SFX = 2; } } } if (_root.m_input == 1 && this.hitTest(_root._xmouse, _root._ymouse, true)) { if (soundfx == null) { if (_root.SFX >= 2) { _root.SFX = 1; } else { ++_root.SFX; } if (_root.SFX == 2) { removeMovieClip(_root.sound1); removeMovieClip(_root.soundeffect1); removeMovieClip(_root.sounditem1); removeMovieClip(_root.soundspell1); removeMovieClip(_root.soundvoice1); this.gotoAndStop(2); } if (_root.SFX == 1) { _root.sound.duplicateMovieClip('sound1', 901000); _root.soundeffect.duplicateMovieClip('soundeffect1', 902000); _root.sounditem.duplicateMovieClip('sounditem1', 903000); _root.soundspell.duplicateMovieClip('sound1', 904000); _root.soundvoice.duplicateMovieClip('soundvoice1', 905000); _root.sound1.gotoAndPlay(2); this.gotoAndStop(1); } soundfx = 1; } } else { delete soundfx; } } } instance of movieClip 969 { onClipEvent (enterFrame) { if (_root.m_input == 1 && this.hitTest(_root._xmouse, _root._ymouse, true)) { if (rez == null) { if (_root.pos >= 2) { _root.pos = 1; } else { ++_root.pos; } if (_root.pos == 1) { this.gotoAndStop(1); _root._x -= 120; _root._y -= 120; _root._xscale = 200; _root._yscale = 200; } if (_root.pos == 2) { this.gotoAndStop(2); _root._x += 120; _root._y += 120; _root._xscale = 100; _root._yscale = 100; } rez = 1; } } else { delete rez; } } } instance of movieClip 969 { onClipEvent (enterFrame) { if (_root.autoinvisible == 1) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } if (_root.m_input == 1 && this.hitTest(_root._xmouse, _root._ymouse, true)) { _root.mouseReset(); if (input == null) { if (_root.autoinvisible == null) { this.gotoAndStop(2); _root.autoinvisible = 1; delete _root.m_input; } else { if (_root.autoinvisible == 1) { this.gotoAndStop(1); delete _root.autoinvisible; delete _root.m_input; } } input = 1; } else { delete input; } } } } frame 3 { stop(); } instance of movieClip 969 { onClipEvent (enterFrame) { if (_root.m_input == 1 && this.hitTest(_root._xmouse, _root._ymouse, true)) { _root.mouseReset(); if (input == null) { if (_root.ambushCamera == null) { this.gotoAndStop(2); _root.ambushCamera = 1; delete _root.m_input; } else { if (_root.ambushCamera == 1) { this.gotoAndStop(1); delete _root.ambushCamera; delete _root.m_input; } } input = 1; } else { delete input; } } } } instance of movieClip 969 { onClipEvent (enterFrame) { if (_root.m_input == 1 && this.hitTest(_root._xmouse, _root._ymouse, true)) { _root.mouseReset(); _root.exit_dun = 1; this.gotoAndStop(2); if (_root.floor == null) { _root.floor = 1; } _root.floorLower = 1; } else { this.gotoAndStop(1); } } } instance of movieClip 969 { onClipEvent (enterFrame) { if (_root.m_input == 1 && this.hitTest(_root._xmouse, _root._ymouse, true)) { _root.mouseReset(); if (input == null) { if (_global.guiButton == null) { this.gotoAndStop(2); _global.guiButton = 1; delete _root.m_input; } else { if (_global.guiButton == 1) { this.gotoAndStop(1); delete _root.m_input; } } input = 1; } else { delete input; } } else { this.gotoAndStop(1); delete _global.guiButton; } } } instance of movieClip 969 { onClipEvent (enterFrame) { if (_root.m_input == 1 && this.hitTest(_root._xmouse, _root._ymouse, true)) { _root.mouseReset(); _root.stats_exp += 90000; this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 969 { onClipEvent (enterFrame) { if (_root.m_input == 1 && this.hitTest(_root._xmouse, _root._ymouse, true)) { _root.mouseReset(); _root.concpot_use = 1; this.gotoAndStop(2); } else { this.gotoAndStop(1); } } onClipEvent (load) { } } instance of movieClip 969 { onClipEvent (enterFrame) { if (_root.m_input == 1 && this.hitTest(_root._xmouse, _root._ymouse, true)) { _root.mouseReset(); _root.gold += 10000; this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 969 { onClipEvent (enterFrame) { if (_root.m_input == 1 && this.hitTest(_root._xmouse, _root._ymouse, true)) { _root.mouseReset(); _root.player_health -= _root.stats_health * 0.1; this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 969 { onClipEvent (enterFrame) { if (_root.BGM == null) { this.gotoAndStop(2); _root.BGM = 1; } if (_root.BGM == 1) { this.gotoAndStop(2); } else { if (_root.BGMstart == null) { this.gotoAndStop(1); _root.BGM = 2; _root.BGMstart = 1; } else { if (_root.soundbgm1._x == null) { this.gotoAndStop(1); _root.BGM = 2; } } } if (_root.m_input == 1 && this.hitTest(_root._xmouse, _root._ymouse, true)) { _root.mouseReset(); if (muzie == null) { if (_root.BGM >= 2) { _root.BGM = 1; } else { ++_root.BGM; } if (_root.BGM == 2) { stopAllSounds(); removeMovieClip(_root.soundbgm1); } if (_root.BGM == 1) { _root.soundbgm.duplicateMovieClip('soundbgm1', 104); _root.soundbgm1.gotoAndStop(_root.floor + 2); _root.soundbgm1.gotoAndStop(1); } muzie = 1; } } else { delete muzie; } } } instance of movieClip 969 { onClipEvent (enterFrame) { if (_root.SFX == null) { this.gotoAndStop(2); _root.SFX = 1; } if (_root.SFX == 2) { if (soundUnload == null) { removeMovieClip(_root.sound1); removeMovieClip(_root.soundeffect1); removeMovieClip(_root.sounditem1); removeMovieClip(_root.soundspell1); removeMovieClip(_root.soundvoice1); soundUnload = 1; } this.gotoAndStop(1); } if (_root.SFX == 1) { if (soundLoad == null) { _root.sound.duplicateMovieClip('sound1', 9010); _root.soundeffect.duplicateMovieClip('soundeffect1', 9020); _root.sounditem.duplicateMovieClip('sounditem1', 9030); _root.soundspell.duplicateMovieClip('soundspell1', 9040); _root.soundvoice.duplicateMovieClip('soundvoice1', 9050); soundLoad = 1; } this.gotoAndStop(2); } else { if (_root.SFXstart == null) { this.gotoAndStop(1); _root.SFX = 2; _root.SFXstart = 1; } else { if (_root.sound1._x == null) { this.gotoAndStop(1); _root.SFX = 2; } } } if (_root.m_input == 1 && this.hitTest(_root._xmouse, _root._ymouse, true)) { if (soundfx == null) { if (_root.SFX >= 2) { _root.SFX = 1; } else { ++_root.SFX; } if (_root.SFX == 2) { removeMovieClip(_root.sound1); removeMovieClip(_root.soundeffect1); removeMovieClip(_root.sounditem1); removeMovieClip(_root.soundspell1); removeMovieClip(_root.soundvoice1); this.gotoAndStop(2); } if (_root.SFX == 1) { _root.sound.duplicateMovieClip('sound1', 9010); _root.soundeffect.duplicateMovieClip('soundeffect1', 9020); _root.sounditem.duplicateMovieClip('sounditem1', 9030); _root.soundspell.duplicateMovieClip('soundspell1', 9040); _root.soundvoice.duplicateMovieClip('soundvoice1', 9050); _root.sound1.gotoAndPlay(2); this.gotoAndStop(1); } soundfx = 1; } } else { delete soundfx; } } } instance of movieClip 969 { onClipEvent (enterFrame) { if (_root.m_input == 1 && this.hitTest(_root._xmouse, _root._ymouse, true)) { if (rez == null) { if (_root.pos >= 2) { _root.pos = 1; } else { ++_root.pos; } if (_root.pos == 1) { delete _root.m_command; this.gotoAndStop(1); _root._x -= 120; _root._y -= 120; _root._xscale = 200; _root._yscale = 200; } if (_root.pos == 2) { delete _root.m_command; this.gotoAndStop(2); _root._x += 120; _root._y += 120; _root._xscale = 100; _root._yscale = 100; } rez = 1; } } else { delete rez; } } } instance of movieClip 969 { onClipEvent (enterFrame) { if (_root.autoinvisible == 1) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } if (_root.m_input == 1 && this.hitTest(_root._xmouse, _root._ymouse, true)) { _root.mouseReset(); if (input == null) { if (_root.autoinvisible == null) { this.gotoAndStop(2); _root.autoinvisible = 1; delete _root.m_input; } else { if (_root.autoinvisible == 1) { this.gotoAndStop(1); delete _root.autoinvisible; delete _root.m_input; } } input = 1; } else { delete input; } } } } } movieClip 1760 { instance debugme of movieClip 1725 { onClipEvent (enterFrame) { if (_root.debugme == 1) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } } instance of movieClip 1759 { onClipEvent (enterFrame) { if (Key.isDown(81)) { if (_root.debug == 1) { this.gotoAndStop(3); } if (Key.isDown(87)) { if (_root.debug == null) { _root.debug = 1; } } } else { if (Key.getAscii() == 113 && Key.getAscii() == 119) { if (_root.debug == null) { this.gotoAndStop(3); _root.debug = 1; } } else { if (Key.getAscii() == 113) { if (_root.debug == null) { _root.op_menu = 1; this.gotoAndStop(2); } else { _root.op_menu = 1; this.gotoAndStop(3); } } else { if (Key.isDown(Key.getCode())) { this.gotoAndStop(1); delete _root.op_menu; } } } } _root.debugReadOut = 'Floor:' + _root.floor + '<br>'; } } } movieClip 1762 { } movieClip 1766 { } movieClip 1769 { } movieClip 1772 { } movieClip 1779 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } } movieClip 1798 { } movieClip 1800 { } movieClip 1805 { } movieClip 1924 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 1973 { instance of movieClip 1924 { onClipEvent (enterFrame) { if (_root['npc_window_' + windowNum]._currentframe == 3) { this.gotoAndStop(1); } else { this.gotoAndStop(2); } } } } button 1980 { on (release) { ++restart; } } button 1981 { on (release) { --restart; } } movieClip 1983 { } movieClip 1985 { } movieClip 1986 { } movieClip 1993 { frame 1 { stop(); _root.shopselect = 1; } frame 2 { stop(); _root.shopselect = 2; } frame 3 { stop(); _root.shopselect = 3; } frame 4 { stop(); _root.shopselect = 4; } frame 5 { stop(); _root.shopselect = 5; } } movieClip 2002 { } movieClip 2012 { } movieClip 2021 { } movieClip 2022 { } movieClip 2044 { frame 1 { stop(); } frame 1 { stop(); } } movieClip 2055 { } movieClip 2075 { } movieClip 2097 { frame 1 { stop(); } frame 2 { stop(); } instance of movieClip 1973 { onClipEvent (load) { this.gotoAndStop(_root.buyshopSelect); } onClipEvent (enterFrame) { this.gotoAndStop(_root.buyshopSelect); } } instance of movieClip 1993 { onClipEvent (load) { this.gotoAndStop(_root.keys2); } onClipEvent (enterFrame) { this.gotoAndStop(_root.keys2); } } instance item_1 of movieClip 1178 { onClipEvent (load) { this.gotoAndStop(39); } onClipEvent (enterFrame) { this.gotoAndStop(_root.bdNum1); } } instance item_2 of movieClip 1178 { onClipEvent (load) { this.gotoAndStop(39); } onClipEvent (enterFrame) { this.gotoAndStop(_root.bdNum2); } } instance item_3 of movieClip 1178 { onClipEvent (load) { this.gotoAndStop(39); } onClipEvent (enterFrame) { this.gotoAndStop(_root.bdNum3); } } instance item_4 of movieClip 1178 { onClipEvent (load) { this.gotoAndStop(39); } onClipEvent (enterFrame) { this.gotoAndStop(_root.bdNum4); } } instance item_5 of movieClip 1178 { onClipEvent (load) { this.gotoAndStop(39); } onClipEvent (enterFrame) { this.gotoAndStop(_root.bdNum5); } } instance DOWN of movieClip 1597 { onClipEvent (enterFrame) { this.gotoAndStop(_root.shopMenuArrowD + 1); } } instance UP of movieClip 1597 { onClipEvent (enterFrame) { this.gotoAndStop(_root.shopMenuArrowU + 1); } } frame 3 { stop(); } instance item_ of movieClip 1178 { onClipEvent (load) { this.gotoAndStop(39); } onClipEvent (enterFrame) { if (_root.sellNum[1] == null) { this.gotoAndStop(39); } else { this.gotoAndStop(_root.sellArraynum[1]); } } } instance item_ of movieClip 1178 { onClipEvent (load) { this.gotoAndStop(39); } onClipEvent (enterFrame) { if (_root.sellNum[2] == null) { this.gotoAndStop(39); } else { this.gotoAndStop(_root.sellArraynum[2]); } } } instance item_ of movieClip 1178 { onClipEvent (load) { this.gotoAndStop(39); } onClipEvent (enterFrame) { if (_root.sellNum[3] == null) { this.gotoAndStop(39); } else { this.gotoAndStop(_root.sellArraynum[3]); } } } instance item_ of movieClip 1178 { onClipEvent (load) { this.gotoAndStop(39); } onClipEvent (enterFrame) { if (_root.sellNum[4] == null) { this.gotoAndStop(39); } else { this.gotoAndStop(_root.sellArraynum[4]); } } } instance item_ of movieClip 1178 { onClipEvent (load) { this.gotoAndStop(39); } onClipEvent (enterFrame) { if (_root.sellNum[5] == null) { this.gotoAndStop(39); } else { this.gotoAndStop(_root.sellArraynum[5]); } } } instance desc of movieClip 1973 { onClipEvent (load) { this.gotoAndStop(39); } onClipEvent (enterFrame) { if (_root.sellArraynum[_root.keys] == null) { this.gotoAndStop(39); } else { this.gotoAndStop(_root.sellArraynum[_root.keys]); } } } instance of movieClip 2044 { onClipEvent (load) { this.gotoAndStop(1); } onClipEvent (enterFrame) { if (_parent.desc._currentframe == 39) { this.gotoAndStop(1); } else { this.gotoAndStop(2); } } } frame 4 { stop(); } frame 5 { stop(); } instance of movieClip 1973 { onClipEvent (load) { this.gotoAndStop(_root.buyshopSelect); } onClipEvent (enterFrame) { this.gotoAndStop(_root.buyshopSelect); } } instance of movieClip 1993 { onClipEvent (load) { this.gotoAndStop(_root.keys2); } onClipEvent (enterFrame) { this.gotoAndStop(_root.keys2); } } instance item_ of movieClip 1178 { onClipEvent (load) { this.gotoAndStop(_root.bdNum1); } onClipEvent (enterFrame) { this.gotoAndStop(_root.bdNum1); } } instance item_ of movieClip 1178 { onClipEvent (load) { this.gotoAndStop(_root.bdNum2); } onClipEvent (enterFrame) { this.gotoAndStop(_root.bdNum2); } } instance item_ of movieClip 1178 { onClipEvent (load) { this.gotoAndStop(_root.bdNum3); } onClipEvent (enterFrame) { this.gotoAndStop(_root.bdNum3); } } instance item_ of movieClip 1178 { onClipEvent (load) { this.gotoAndStop(_root.bdNum4); } onClipEvent (enterFrame) { this.gotoAndStop(_root.bdNum4); } } instance item_ of movieClip 1178 { onClipEvent (load) { this.gotoAndStop(_root.bdNum5); } onClipEvent (enterFrame) { this.gotoAndStop(_root.bdNum5); } } } movieClip 2107 { frame 1 { stop(); } frame 2 { gotoAndStop(1); } frame 3 { gotoAndStop(1); } frame 4 { gotoAndStop(1); } frame 6 { gotoAndStop(1); } frame 7 { gotoAndStop(1); } frame 8 { gotoAndStop(1); } frame 9 { gotoAndStop(1); } frame 10 { gotoAndStop(1); } } movieClip 2113 { frame 1 { gotoAndStop(1); } frame 2 { gotoAndStop(1); } frame 3 { gotoAndStop(1); } frame 4 { gotoAndStop(1); } frame 5 { gotoAndStop(1); } } movieClip 2116 { frame 1 { stop(); } frame 2 { gotoAndStop(1); } frame 3 { gotoAndStop(1); } } movieClip 2123 { frame 1 { gotoAndStop(1); } frame 2 { gotoAndStop(1); } frame 3 { gotoAndStop(1); } frame 4 { gotoAndStop(1); } frame 5 { gotoAndStop(1); } frame 6 { gotoAndStop(1); } frame 7 { gotoAndStop(1); } } movieClip 2140 { frame 18 { removeMovieClip(this); } } movieClip 2142 { } movieClip 2159 { frame 38 { stop(); } } movieClip 2160 { frame 1 { outputar = 0; while (outputar < 250) { _root.demoArray += _root.player1x[outputar] + ','; _root.demoArray2 += _root.player1y[outputar] + ','; _root.demoArray3 += _root.player1cf[outputar] + ','; _root.demoArray4 += _root.player1d[outputar] + ','; _root.demoArray5 += _root.player1dd[outputar] + ','; _root.demoArray6 += _root.player1sd[outputar] + ','; _root.demoArray7 += _root.player1ud[outputar] + ','; _root.demoArray8 += _root.player1u[outputar] + ','; _root.demoArray9 += _root.player1da[outputar] + ','; _root.demoArray10 += _root.player1dda[outputar] + ','; _root.demoArray11 += _root.player1sda[outputar] + ','; _root.demoArray12 += _root.player1uda[outputar] + ','; _root.demoArray13 += _root.player1ua[outputar] + ','; _root.demoArray14 += _root.player1xsc[outputar] + ','; ++outputar; } x; } frame 1 { outputar = 0; while (outputar < 250) { _root.demoArray += _root.player1x[outputar] + ','; _root.demoArray2 += _root.player1y[outputar] + ','; _root.demoArray3 += _root.player1cf[outputar] + ','; _root.demoArray4 += _root.player1d[outputar] + ','; _root.demoArray5 += _root.player1dd[outputar] + ','; _root.demoArray6 += _root.player1sd[outputar] + ','; _root.demoArray7 += _root.player1ud[outputar] + ','; _root.demoArray8 += _root.player1u[outputar] + ','; _root.demoArray9 += _root.player1da[outputar] + ','; _root.demoArray10 += _root.player1dda[outputar] + ','; _root.demoArray11 += _root.player1sda[outputar] + ','; _root.demoArray12 += _root.player1uda[outputar] + ','; _root.demoArray13 += _root.player1ua[outputar] + ','; _root.demoArray14 += _root.player1xsc[outputar] + ','; ++outputar; } x; } instance of movieClip 1485 { onClipEvent (load) { this.gotoAndPlay(1); } } instance of movieClip 1487 { onClipEvent (enterFrame) { ++_parent.run; _parent.demo_p._x = _parent.player1x[_parent.run]; _parent.demo_p._y = _parent.player1y[_parent.run]; _parent.demo_p.gotoAndStop(_parent.player1cf[_parent.run] + 100); _parent.demo_p.down.gotoAndStop(_parent.player1d[_parent.run] + 100); _parent.demo_p.downdiag.gotoAndStop(_parent.player1dd[_parent.run]); _parent.demo_p.side.gotoAndStop(_parent.player1sd[_parent.run]); _parent.demo_p.updiag.gotoAndStop(_parent.player1ud[_parent.run]); _parent.demo_p.up.gotoAndStop(_parent.player1u[_parent.run]); _parent.demo_p.downa.gotoAndStop(_parent.player1da[_parent.run]); _parent.demo_p.downdiaga.gotoAndStop(_parent.player1dda[_parent.run]); _parent.demo_p.sidea.gotoAndStop(_parent.player1sda[_parent.run]); _parent.demo_p.updiaga.gotoAndStop(_parent.player1uda[_parent.run]); _parent.demo_p.upa.gotoAndStop(_parent.player1ua[_parent.run]); _parent.demo_p._xscale = _parent.player1xsc[_parent.run]; _parent.enemya._x = _parent.enemy1x[_parent.run]; _parent.enemya._y = _parent.enemy1y[_parent.run]; _parent.enemya.gotoAndStop(_parent.enemy1cf[_parent.run]); _parent.enemya._xscale = _parent.enemy1xsc[_parent.run]; _parent.enemya.down.gotoAndStop(_parent.enemy1d[_parent.run]); _parent.enemya.downdiag.gotoAndStop(_parent.enemy1dd[_parent.run]); _parent.enemya.side.gotoAndStop(_parent.enemy1sd[_parent.run]); _parent.enemya.updiag.gotoAndStop(_parent.enemy1ud[_parent.run]); _parent.enemya.up.gotoAndStop(_parent.enemy1u[_parent.run]); _parent.enemya.downa.gotoAndStop(_parent.enemy1da[_parent.run]); _parent.enemya.downdiaga.gotoAndStop(_parent.enemy1dda[_parent.run]); _parent.enemya.sidea.gotoAndStop(_parent.enemy1sda[_parent.run]); _parent.enemya.updiaga.gotoAndStop(_parent.enemy1uda[_parent.run]); _parent.enemya.upa.gotoAndStop(_parent.enemy1ua[_parent.run]); _parent.player_hitpointsa._x = _parent.vitaparticlex[_parent.run]; _parent.player_hitpointsa._y = _parent.vitaparticley[_parent.run]; _parent.player_hitpointsa.gotoandplay(_parent.vitaparticlecf[_parent.run]); _parent.player_hitpointsa.display = _parent.vitaparticledam[_parent.run]; _parent.nme_hitpointsa._x = _parent.enemparticlex[_parent.run]; _parent.nme_hitpointsa._y = _parent.enemparticley[_parent.run]; _parent.nme_hitpointsa.gotoandplay(_parent.enemparticlecf[_parent.run]); _parent.nme_hitpointsa.display = _parent.enemparticledam[_parent.run]; _parent.plyr_dam_mca._x = _parent.plydmmcx[_parent.run]; _parent.plyr_dam_mca._y = _parent.plydmmcy[_parent.run]; _parent.plyr_dam_mca.gotoAndStop(_parent.plydmmccf[_parent.run]); _parent.damage_mca._x = _parent.enemdmmcx[_parent.run]; _parent.damage_mca._y = _parent.enemdmmcy[_parent.run]; _parent.damage_mca.gotoAndStop(_parent.enemdmmccf[_parent.run]); _parent.sound.gotoAndStop(_parent.soundacf[_parent.run]); _parent.sounditem.gotoAndStop(_parent.sounditemacf[_parent.run]); _parent.soundspell.gotoAndStop(_parent.soundspellacf[_parent.run]); _parent.zap1._x = _parent.ignitex[_parent.run]; _parent.zap1._y = _parent.ignitey[_parent.run]; _parent.zap1.gotoAndStop(_parent.ignitecf[_parent.run]); _parent.item1._x = _parent.itmx[_parent.run]; _parent.item1._y = _parent.itmy[_parent.run]; _parent.item1.gotoAndStop(_parent.itmcf[_parent.run]); _parent.purge1._x = _parent.prgex[_parent.run]; _parent.purge1._y = _parent.prgey[_parent.run]; _parent.purge1.gotoAndStop(_parent.prgecf[_parent.run]); _parent.targ1._x = _parent.trgx[_parent.run]; _parent.targ1._y = _parent.trgy[_parent.run]; _parent.targ1.gotoAndStop(_parent.trgcf[_parent.run]); } } instance of movieClip 1487 { onClipEvent (load) { _parent.player1x = [38.9, 42.65, 46.4, 46.4, 46.4, 46.4, 46.4, 46.4, 46.4, 46.4, 46.4, 46.4, 46.4, 46.4, 46.4, 46.4, 46.4, 46.4, 46.4, 46.4, 46.4, 46.4, 46.4, 46.4, 46.4, 46.4, 46.4, 96.40000000000001, 96.40000000000001, 46.4, 46.4, 46.4, 46.4, 46.4, 46.4, 42.6, 38.8, 38.8, 42.55, 46.3, 50.05, 53.85, 57.65, 61.45, 65.25, 69.05, 72.84999999999999, 76.59999999999999, 80.34999999999999, 84.09999999999999, 87.84999999999999, 91.59999999999999, 95.34999999999999, 99.09999999999999, 102.9, 106.7, 110.5, 114.3, 118.1, 121.9, 125.7, 129.5, 133.3, 137.1, 140.9, 144.7, 148.5, 152.3, 156.1, 159.9, 163.7, 167.5, 171.3, 175.1, 178.9, 182.7, 186.5, 190.3, 194.1, 197.9, 201.7, 205.5, 209.3, 213.1, 216.9, 220.7, 224.5, 228.3, 232.1, 235.9, 239.7, 243.5, 4.8, 8.6, 12.35, 16.15, 19.95, 23.75, 27.55, 31.35, 35.15, 38.9, 42.65, 46.4, 50.15, 53.95, 57.75, 61.55, 65.34999999999999, 65.34999999999999, 65.34999999999999, 65.34999999999999, 65.34999999999999, 65.34999999999999, 65.34999999999999, 65.34999999999999, 65.34999999999999, 65.34999999999999, 115.35, 115.35, 115.35, 65.34999999999999, 65.34999999999999, 115.35, 115.35, 115.35, 115.35, 115.35, 115.35, 119.15, 122.95, 126.75, 130.55, 134.35, 138.15, 141.95, 145.75, 149.55, 153.35, 157.15, 160.95, 164.75, 168.55, 172.35, 176.15, 179.95, 183.75, 187.55, 191.35, 195.15, 198.95, 202.75, 206.55, 210.35, 214.15, 217.95, 221.75, 225.55, 229.35, 233.15, 236.95, 240.75, 4.8, 8.6, 12.35, 16.15, 19.95, 23.75, 23.75, 23.75, 23.75, 23.75, 23.75, 23.75, 23.75, 23.75, 23.75, 23.75, 23.75, 23.75, 23.75, 23.75, 23.75, 23.75, 23.75, 23.75, 23.75, 23.75, 23.75, 23.75, 23.75, 23.75, 23.75, 23.75, 23.75, 23.75, 23.75, 23.75, 23.75, 23.75, 23.75, 23.75, 23.75, 23.75, 23.75, 23.75, 23.75, 23.75, 23.75, 23.75, 23.75, 23.75, 23.75, 23.75, 23.75, 23.75, 23.75, 23.75, 23.75, 23.75, 23.75, 23.75, 23.75, 23.75, 27.55, 31.35, 35.15, 38.9, 42.65, 46.4, 50.15, 53.95, 57.75, 61.55, 65.34999999999999, 69.09999999999999, 72.84999999999999, 76.59999999999999, 80.34999999999999, 84.09999999999999, 87.84999999999999, 91.59999999999999, 95.34999999999999, 99.09999999999999, 102.9, 106.7, 110.5, 114.3, 118.1]; _parent.player1y = [111.6, 111.6, 111.6, 111.6, 111.6, 111.6, 111.6, 111.6, 111.6, 111.6, 111.6, 111.6, 111.6, 111.6, 111.6, 111.6, 111.6, 111.6, 111.6, 111.6, 111.6, 111.6, 111.6, 111.6, 111.6, 111.6, 111.6, 111.6, 111.6, 111.6, 111.6, 111.6, 111.6, 111.6, 111.6, 111.6, 111.6, 115.4, 119.2, 123, 126.8, 130.6, 134.4, 138.2, 142, 145.8, 145.8, 145.8, 145.8, 145.8, 145.8, 145.8, 145.8, 145.8, 145.8, 145.8, 145.8, 145.8, 145.8, 145.8, 145.8, 145.8, 145.8, 145.8, 145.8, 145.8, 145.8, 145.8, 145.8, 145.8, 145.8, 145.8, 145.8, 145.8, 145.8, 145.8, 145.8, 145.8, 145.8, 145.8, 142, 142, 142, 142, 142, 138.2, 134.35, 130.5, 126.7, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 122.9, 126.7, 130.5, 134.3, 138.1, 141.9, 145.7, 149.5, 149.5, 149.5, 149.5, 149.5, 149.5, 149.5, 149.5, 149.5, 149.5, 149.5, 149.5, 149.5]; _parent.player1cf = [3, 3, 3, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 3, 3, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 3, 3, 3, 3, 4, 4, 4, 4, 4, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 8, 8, 8, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 3, 3, 3, 3, 3, 3, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3]; _parent.player1d = [null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 2, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null]; _parent.player1dd = [null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 2, 3, 4, 5, 6, 7, 8, 9, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 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, 2, 3, 4, 5, 6, 7, 8, null, null, null, null, null, null, null, null, null, null, null, null]; _parent.player1sd = [12, 1, 2, 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, 2, 3, null, null, null, null, null, null, null, null, null, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, null, 2, 3, 4, 5, null, null, null, null, null, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 2, 3, 4, 5, 6, 7, null, null, null, null, null, null, null, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1]; _parent.player1ud = [null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 2, null, null, null, null, 2, 3, 4, 5, 6, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null]; _parent.player1u = [null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null]; _parent.player1da = [null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null]; _parent.player1dda = [null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null]; _parent.player1sda = [null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 2, 3, 4, 2, 3, 4, 2, 3, 4, 2, 2, 3, 2, 3, 4, 2, 3, 4, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 2, 3, 4, 2, 3, 4, 2, 3, 4, 2, 3, 2, 2, 3, 4, 2, 3, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null]; _parent.player1uda = [null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null]; _parent.player1ua = [null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null]; _parent.player1xsc = [-100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 100, 100, -100, -100, -100, -100, -100, -100, 100, 100, 100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 100, 100, 100, -100, -100, 100, 100, 100, 100, 100, 100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100]; _parent.enemy1x = [110.4, 108, 105.6, 103.2, 100.8, 98.34999999999999, 95.90000000000001, 93.5, 91.09999999999999, 88.65000000000001, 86.25, 83.84999999999999, 81.40000000000001, 79, 76.59999999999999, 74.15000000000001, 71.75, 69.34999999999999, 66.90000000000001, 64.5, 64.5, 64.5, 64.5, 64.5, 64.5, 64.5, 64.5, -996.6, -994.2000000000001, -991.8, -989.4, -987, -984.6, -982.2000000000001, -979.8, -977.4, -977.4, -977.4, -977.4, -977.4, -977.4, -977.4, -977.4, -977.4, -977.4, -977.4, -977.4, -977.4, -977.4, -977.4, -977.4, -977.4, -977.4, -977.4, -977.4, -977.4, -977.4, -977.4, -977.4, -977.4, -977.4, -977.4, -977.4, -977.4, -977.4, -977.4, -977.4, -977.4, -977.4, -977.4, -977.4, -977.4, -977.4, -977.4, -977.4, -977.4, -977.4, -977.4, -977.4, -977.4, -977.4, -977.4, -977.4, -977.4, -977.4, -977.4, -977.4, -977.4, -977.4, -977.4, -977.4, -977.4, 120, 120, 120, 120, 120, 120, 117.6, 115.2, 112.8, 110.4, 108, 105.6, 103.2, 100.8, 98.34999999999999, 95.90000000000001, 93.5, 91.09999999999999, 91.09999999999999, 88.65000000000001, 86.25, 86.25, 83.84999999999999, 83.84999999999999, 83.84999999999999, 83.84999999999999, 83.84999999999999, -996.6, -994.2000000000001, -991.8, -989.4, -987, -984.6, -982.2000000000001, -979.8, -977.4, -975, -972.6, -970.2000000000001, -967.8, -965.4, -963, -960.6, -958.2000000000001, -955.8, -953.4, -951, -948.6, -946.2000000000001, -943.8, -941.4, -939, -936.6, -934.2000000000001, -931.8, -929.4, -927, -924.6, -922.2000000000001, -919.8, -917.4, -915, -912.6, -910.2000000000001, -907.8, -905.4, -903, -900.6, -898.2000000000001, -895.8, 117.6, 115.2, 112.8, 110.4, 108, 105.6, 103.2, 100.8, 98.34999999999999, 95.90000000000001, 93.5, 91.09999999999999, 88.65000000000001, 86.25, 83.84999999999999, 81.40000000000001, 79, 76.59999999999999, 74.15000000000001, 71.75, 69.34999999999999, 69.34999999999999, 69.34999999999999, 69.34999999999999, 69.34999999999999, 69.34999999999999, 69.34999999999999, 69.34999999999999, 69.34999999999999, 69.34999999999999, 69.34999999999999, 69.34999999999999, 69.34999999999999, 69.34999999999999, 69.34999999999999, 69.34999999999999, 69.34999999999999, 69.34999999999999, 69.34999999999999, 69.34999999999999, 69.34999999999999, 69.34999999999999, 66.90000000000001, 64.5, 62.1, 62.1, 62.1, 62.1, 62.1, 62.1, 62.1, 62.1, 62.1, -999, -999, -999, -999, -999, -999, -999, -999, -999, -999, -999, -999, -999, -999, -999, -999, -999, -999, -999, -999, -999, -999, -999, -999, -999, -999, -999, -999, -999, -999, -999, -999, -999, -999]; _parent.enemy1y = [120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, -996.6, -994.2000000000001, -991.8, -989.4, -987, -984.6, -982.2000000000001, -979.8, -977.4, -977.4, -979.9, -982.4, -984.9, -987.4, -989.9, -992.4, -994.9, -997.4, -999.9, -1002.4, -1004.9, -1007.4, -1009.9, -1012.4, -1014.9, -1017.4, -1019.9, -1022.4, -1024.9, -1027.4, -1029.9, -1032.4, -1034.9, -1037.4, -1039.9, -1042.4, -1044.9, -1047.4, -1049.9, -1052.4, -1054.9, -1057.4, -1059.9, -1062.4, -1064.9, -1067.4, -1069.9, -1072.4, -1074.9, -1077.4, -1079.9, -1082.4, -1084.9, -1087.4, -1089.9, -1092.4, -1094.9, -1097.4, -1099.9, -1102.4, -1104.9, -1107.4, -1109.9, -1112.4, -1114.9, 120, 117.5, 115, 112.5, 110, 107.5, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 104.9, 104.9, 104.9, 104.8, 104.8, 104.8, 104.8, 104.8, -996.6, -994.2000000000001, -991.8, -989.4, -987, -984.6, -982.2000000000001, -979.8, -977.4, -975, -972.6, -970.2000000000001, -967.8, -965.4, -963, -960.6, -958.2000000000001, -955.8, -953.4, -951, -948.6, -946.2000000000001, -943.8, -941.4, -939, -936.6, -934.2000000000001, -931.8, -929.4, -927, -924.6, -922.2000000000001, -919.8, -917.4, -915, -912.6, -910.2000000000001, -907.8, -905.4, -903, -900.6, -898.2000000000001, -895.8, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, -999, -999, -999, -999, -999, -999, -999, -999, -999, -999, -999, -999, -999, -999, -999, -999, -999, -999, -999, -999, -999, -999, -999, -999, -999, -999, -999, -999, -999, -999, -999, -999, -999, -999]; _parent.enemy1cf = [103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 113, 113, 113, 113, 113, 113, 113, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 102, 103, 103, 102, 112, 112, 112, 112, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 102, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103]; _parent.enemy1xsc = [100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100]; _parent.enemy1d = [null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null]; _parent.enemy1dd = [null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null]; _parent.enemy1sd = [null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null]; _parent.enemy1ud = [null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null]; _parent.enemy1u = [null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null]; _parent.enemy1da = [null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null]; _parent.enemy1dda = [null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null]; _parent.enemy1sda = [null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null]; _parent.enemy1uda = [null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null]; _parent.enemy1ua = [null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null]; } } instance player_hitpointsa of movieClip 1494 { onClipEvent (load) { if (_root.high == 1) { this._visible = false; } } } instance nme_hitpointsa of movieClip 1498 { onClipEvent (load) { if (_root.high == 1) { this._visible = false; } } } instance ambushnme_hitpoints of movieClip 1501 { onClipEvent (load) { if (_root.high == 1) { this._visible = false; } } } } movieClip 2161 { instance of movieClip 1485 { onClipEvent (load) { this.info.gotoAndStop(2); } } } movieClip 2162 { instance of movieClip 1485 { onClipEvent (load) { this.info.gotoAndStop(3); } } } movieClip 2163 { instance of movieClip 1485 { onClipEvent (load) { this.info.gotoAndStop(4); } } } movieClip 2164 { instance of movieClip 1485 { onClipEvent (load) { this.info.gotoAndStop(5); } } } movieClip 2165 { instance of movieClip 1485 { onClipEvent (load) { this.info.gotoAndStop(6); } } } movieClip 2181 { } movieClip 2186 { instance char of movieClip 858 { onClipEvent (enterFrame) { this.gotoAndStop(_root.char1._currentframe); this._xscale = _root.char1._xscale; } } } movieClip 2190 { } movieClip 2191 { } movieClip 2218 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } frame 6 { stop(); } frame 7 { stop(); } } movieClip 2221 { } movieClip 2222 { frame 1 { if (htpfd == null) { if (_global.program == 3) { _root.fader.duplicateMovieClip('fader_mc1', 20008); _root.fader_mc1._x = 0; _root.fader_mc1._y = 0; } } stop(); } instance of movieClip 2221 { onClipEvent (enterFrame) { if (_global.program == 3) { if (_parent.howtoplay._currentframe == 1) { if (_parent._currentframe >= 200) { _parent.howtoplay._alpha -= 5; } } else { if (_parent.howtoplay._alpha < 100) { _parent.howtoplay._alpha = 100; } } if (Key.isDown(Key.getCode())) { _parent.gotoAndPlay(249); } } } onClipEvent (mouseDown) { if (_global.program == 3) { _parent.gotoAndPlay(249); } } } frame 250 { if (card >= 5) { _root.fader.duplicateMovieClip('fader_mc1', 20009); _root.fader_mc1._x = 0; _root.fader_mc1._y = 0; _global.program = 4; delete _root.scene_load; removeMovieClip(this); stop(); } else { _root.fader.duplicateMovieClip('fader_mc1', 20008); _root.fader_mc1._x = 0; _root.fader_mc1._y = 0; gotoAndPlay(2); howtoplay.nextFrame(); ++card; } } } movieClip 2230 { } movieClip 2231 { frame 10 { removeMovieClip(this); } } movieClip 2236 { } movieClip 2238 { } movieClip 2294 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } frame 6 { stop(); } frame 7 { stop(); } frame 8 { stop(); } } movieClip 2401 { frame 1 { stop(); } frame 2 { stop(); } instance of movieClip 2236 { onClipEvent (enterFrame) { if (_root.char1.hb.hitTest(this) && _root.time_use == null) { if (_root.floor > 1) { _root.exit_dun = 1; _root.floorHigher = 1; this._y = -9999; } } } } instance exit of movieClip 2238 { onClipEvent (load) { if (_root.floor == 1) { this._visible = false; } else { this._visible = true; } } onClipEvent (enterFrame) { _root.findme = _parent._name; if (_root.floor == 1) { this._visible = false; } else { this._visible = true; } } } instance hb of movieClip 2294 { onClipEvent (load) { gotoAndStop(_parent._currentframe); } onClipEvent (enterFrame) { gotoAndStop(_parent._currentframe); } } instance of movieClip 2236 { onClipEvent (enterFrame) { if (_root.char1.hb.hitTest(this) && _root.time_use == null) { _root.exit_dun = 1; if (_root.floor == null) { _root.floor = 1; } _root.floorLower = 1; this._y = -9999; } } } instance of movieClip 2236 { onClipEvent (enterFrame) { if (_root.char1.hb.hitTest(this) && _root.time_use == null) { if (_root.floor > 1) { _root.exit_dun = 1; _root.floorHigher = 1; this._y = -9999; } } } } instance exit of movieClip 2238 { 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 movieClip 2236 { onClipEvent (enterFrame) { if (_root.char1.hb.hitTest(this) && _root.time_use == null) { _root.exit_dun = 1; if (_root.floor == null) { _root.floor = 1; } _root.floorLower = 1; this._y = -9999; } } } instance of movieClip 2236 { onClipEvent (enterFrame) { if (_root.char1.hb.hitTest(this)) { if (_root.floor > 1) { _root.exit_dun = 1; _root.floorHigher = 1; this._y = -9999; } } } } instance exit of movieClip 2238 { 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 player_hitpoints of movieClip 1494 { onClipEvent (load) { if (_root.high == 1) { this._visible = false; } } } instance nme_hitpoints of movieClip 1498 { onClipEvent (load) { if (_root.high == 1) { this._visible = false; } } } instance ambushnme_hitpoints of movieClip 1501 { onClipEvent (load) { if (_root.high == 1) { this._visible = false; } } } movieClip 2402 { frame 1 { stop(); } frame 2 { play(); } frame 10 { if (_root.exit_dunload == 1) { if (_root.floorHigher == 1) { if (_root.dmap == null) { _root.dmap = _root.floor; } --_root.floor; _root.col = _root.dun_exit_col[_root.dmap]; _root.dunmap = _root.dun_exit_dunmap[_root.dmap]; _root.row = 7; _root.char1._x = 109; _root.char1._y = 100; _root.dun_map1.gotoAndStop(_root.dunmap * _root.row + _root.col + (_root.dmap - 1) * 70); _root.pool.gotoAndStop(_root.dunmap * _root.row + _root.col + (_root.dmap - 1) * 70); _root.floor_fader.duplicateMovieClip('floor_fader_mc1', 26010); _root.floor_fader_mc1.gotoAndPlay(1); _root.floor_fader_mc1._x = 0; _root.floor_fader_mc1._y = 0; _root.floorRO = 'Floor ' + _root.floor; _root.fader.duplicateMovieClip('fader_mc1', 26020); _root.fader_mc1.gotoAndPlay(1); _root.fader_mc1._x = 0; _root.fader_mc1._y = 0; _root.floorHAnim = 1; stopAllSounds(); if (_root.floor + 2 >= 10) { _root.soundbgm1.gotoAndStop(11); } else { _root.soundbgm1.gotoAndStop(_root.floor + 2); } delete _root.floorHigher; delete _root.exit_dunload; } if (_root.floorLower == 1) { if (_root.dmap == null) { _root.dmap = _root.floor; } ++_root.floor; _root.char1._x = 109; _root.char1._y = 100; _root.col = _root.dun_start_col[_root.dmap]; _root.dunmap = _root.dun_start_dunmap[_root.dmap]; _root.row = 7; _root.dun_visfull[_root.floor][_root.dunmap * _root.row + _root.col] = 1; _root.floor_fader.duplicateMovieClip('floor_fader_mc1', 26030); _root.floor_fader_mc1.gotoAndPlay(1); _root.floor_fader_mc1._x = 0; _root.floor_fader_mc1._y = 0; _root.floorRO = 'Floor ' + _root.floor; _root.fader.duplicateMovieClip('fader_mc1', 26040); _root.fader_mc1.gotoAndPlay(1); _root.fader_mc1._x = 0; _root.fader_mc1._y = 0; _root.floorLAnim = 1; _root.dun_map1.gotoAndStop(_root.dunmap * _root.row + _root.col + (_root.dmap - 1) * 70); _root.pool.gotoAndStop(_root.dunmap * _root.row + _root.col + (_root.dmap - 1) * 70); stopAllSounds(); if (_root.floor + 2 >= 14) { _root.soundbgm1.gotoAndStop(13); } else { _root.soundbgm1.gotoAndStop(_root.floor + 2); } _root.soundbgm1.gotoAndStop(1); delete _root.floorLower; delete _root.exit_dunload; } } else { ++_global.program; delete _root.scene_load; removeMovieClip(this); stop(); } } } movieClip 2405 { } movieClip 2407 { } movieClip 2408 { } movieClip 2409 { instance of movieClip 2407 { onClipEvent (enterFrame) { if (_root.floorHAnim == 1) { this._visible = true; } else { this._visible = false; } } } instance of movieClip 2408 { onClipEvent (enterFrame) { if (_root.floorLAnim == 1) { this._visible = true; } else { this._visible = false; } } } frame 74 { delete _root.floorHAnim; delete _root.floorLAnim; removeMovieClip(this); } } movieClip 2411 { } movieClip 2414 { } movieClip 2424 { } movieClip 2425 { instance of movieClip 2424 { onClipEvent (enterFrame) { this._alpha = Math.abs(Math.ceil(_parent._parent._currentframe * 100 / _parent._parent._totalframes - 100)) - 20; } } } button 2431 { on (press) { x = 1; } on (release, releaseOutside) { delete x; } } movieClip 2433 { } movieClip 2434 { frame 1 { stop(); stopAllSounds(); } instance of movieClip 2411 { onClipEvent (enterFrame) { this._width = _parent._currentframe * 240 / _parent._totalframes; } } frame 2 { play(); } instance of movieClip 2425 { onClipEvent (enterFrame) { if (_root.BGM == 2) { stopAllSounds(); } if (Key.isDown(13) || _root.m_input == 1) { if (coin == null) { _parent.gotoAndPlay(518); coin = 1; } } 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); } } frame 517 { 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); } frame 518 { if (_root.BGM == 2) { stopAllSounds(); } else { _root.soundbgm.duplicateMovieClip('soundbgm1', 104); _root.soundbgm1.gotoAndStop(2); _root.soundbgm1.gotoAndStop(1); } } frame 528 { stop(); } instance of movieClip 2433 { 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; } } } frame 545 { 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; } } frame 546 { delete _root.scene_load; delete _root.recbgm; delete _root.centermap; _global.program = 4; _root.r_desu = 1; } frame 547 { removeMovieClip(this); } } movieClip 2436 { } instance landmouse of movieClip 2436 { onClipEvent (enterFrame) { if (_root.m_click_attack == 1) { this._y = _root.mousetarget._y + 36; this._x = _root.mousetarget._x - 12; } } } movieClip 2439 { frame 1 { stop(); } } movieClip 2441 { frame 6 { removeMovieClip(this); } } movieClip 2444 { } movieClip 2445 { } instance spellball of movieClip 2445 { onClipEvent (load) { this.swapDepths(9200); } } movieClip 2451 { } movieClip 2458 { instance enemyb of movieClip 1443 { onClipEvent (enterFrame) { this.gotoAndStop(5 + _root.monAnimArray[1]); } } instance enemya of movieClip 1443 { onClipEvent (enterFrame) { this.gotoAndStop(5 + _root.monAnimArray[1]); } } instance enemyb of movieClip 1443 { onClipEvent (enterFrame) { this.gotoAndStop(5 + _root.monAnimArray[1]); } } frame 25 { removeMovieClip(_parent); } } movieClip 2463 { frame 1 { stop(); } frame 2 { if (_root.ambushCamera == 1) { _root.centermap = 1; } } frame 20 { if (_root.ambushCamera == 1) { delete _root.centermap; } } frame 25 { removeMovieClip(this); } } movieClip 2473 { frame 1 { stop(); } frame 16 { stop(); } } movieClip 2477 { } movieClip 2485 { frame 1 { stop(); } frame 2 { stop(); } instance of movieClip 2473 { onClipEvent (enterFrame) { if (_root.stepconfirm == 1) { if (mc_input == 1) { } else { this.gotoAndPlay(2); mc_input = 1; } } } } instance of movieClip 2473 { onClipEvent (enterFrame) { if (_root.stepconfirm == 1) { if (mc_input == 1) { } else { this.gotoAndPlay(2); mc_input = 1; } } } } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } } movieClip 2487 { frame 1 { _root.chestDropx = 24; _root.chestDropy = 72; } frame 1 { stop(); } frame 2 { _root.chestDropx = 24; _root.chestDropy = 72; } frame 3 { _root.chestDropx = 48; _root.chestDropy = 72; } frame 4 { _root.chestDropx = 72; _root.chestDropy = 72; } frame 5 { _root.chestDropx = 96; _root.chestDropy = 72; } frame 6 { _root.chestDropx = 120; _root.chestDropy = 72; } frame 7 { _root.chestDropx = 144; _root.chestDropy = 72; } frame 8 { _root.chestDropx = 168; _root.chestDropy = 72; } frame 9 { _root.chestDropx = 192; _root.chestDropy = 72; } frame 10 { _root.chestDropx = 216; _root.chestDropy = 72; } frame 11 { _root.chestDropx = 216; _root.chestDropy = 96; } frame 12 { _root.chestDropx = 216; _root.chestDropy = 120; } frame 13 { _root.chestDropx = 216; _root.chestDropy = 144; } frame 14 { _root.chestDropx = 216; _root.chestDropy = 168; } frame 15 { _root.chestDropx = 216; _root.chestDropy = 192; } frame 16 { _root.chestDropx = 192; _root.chestDropy = 192; } frame 17 { _root.chestDropx = 168; _root.chestDropy = 192; } frame 18 { _root.chestDropx = 144; _root.chestDropy = 192; } frame 19 { _root.chestDropy = 192; _root.chestDropx = 120; } frame 20 { _root.chestDropy = 192; _root.chestDropx = 96; } frame 21 { _root.chestDropy = 192; _root.chestDropx = 72; } frame 22 { _root.chestDropy = 192; _root.chestDropx = 48; } frame 23 { _root.chestDropy = 192; _root.chestDropx = 24; } frame 24 { _root.chestDropy = 168; _root.chestDropx = 24; } frame 25 { _root.chestDropy = 144; _root.chestDropx = 24; } frame 26 { _root.chestDropy = 120; _root.chestDropx = 24; } frame 27 { _root.chestDropy = 96; _root.chestDropx = 24; } frame 28 { _root.chestDropy = 76; _root.chestDropx = 24; delete _root.chestMapMemory[_root.floor][_root.dunmap * _root.row + _root.col]; } } instance of movieClip 2487 { onClipEvent (enterFrame) { if (itemchestArray == null) { itemchestDropy = new Array(); itemchestDropxs = new Array(); itemchestDropys = new Array(); itemchestDropx = new Array(); itemchestDropy = new Array(); itemchestDropys[1] = 300; itemchestDropys[2] = 265; itemchestDropys[3] = 100; itemchestDropy[1] = -60; itemchestDropy[2] = 50; itemchestDropy[3] = 10; itemchestArray = 1; } if (_root['item' + _root.itemchestCount].chestAnim >= 5) { } else { ++_root['item' + _root.itemchestCount].chestAnim; } _root['item' + _root.itemchestCount]._xscale = 100; _root['item' + _root.itemchestCount]._yscale = itemchestDropys[_root['item' + _root.itemchestCount].chestAnim]; _root['item' + _root.itemchestCount]._y += itemchestDropy[_root['item' + _root.itemchestCountt].chestAnim]; _root.readme = _root.dun_visfull[_root.floor][_root.dunmap * _root.row + _root.col] + 1 + '[_' + _root.chestMapMemory[_root.floor][_root.dunmap * _root.row + _root.col] + '_]'; if (_root.chestMapMemory[_root.floor][_root.dunmap * _root.row + _root.col] == 3) { if (vsfx == null) { _root.chat('<b>====================</b>', 30, 5); _root.chat('<b> F O O D </b>', 30, 5); _root.chat('<b>====================</b>', 30, 5); _root.soundvoice1.gotoAndStop(4); vsfx = 1; } if (_root.itemchestCount == null) { _root.itemchestCount = 1; } if (_root.itemchestCount <= 28) { if (treasureDropper >= 1) { this.gotoAndStop(_root.itemchestCount + 2); ++_root.itemchestCount; _root.item_.duplicateMovieClip('item' + _root.itemchestCount, 120 + _root.itemchestCount); _root['item' + _root.itemchestCount].gotoAndStop(1); _root['item' + _root.itemchestCount]._x = Math.floor(_root.chestDropx / 24) * 24 + 12; _root['item' + _root.itemchestCount]._y = Math.floor(_root.chestDropy / 24) * 24 + 48 + 12; delete treasureDropper; } else { ++treasureDropper; } } } else { if (_root.chestMapMemory[_root.floor][_root.dunmap * _root.row + _root.col] == 2) { if (vsfx == null) { _root.soundvoice1.gotoAndStop(3); _root.chat('<b>====================</b>', 30, 5); _root.chat('<b> T R E A S U R E R O O M</b>', 30, 5); _root.chat('<b>====================</b>', 30, 5); vsfx = 1; } if (_root.itemchestCount == null) { _root.itemchestCount = 1; } if (_root.itemchestCount <= 28) { if (treasureDropper >= 1) { this.gotoAndStop(_root.itemchestCount + 2); ++_root.itemchestCount; _root.item_.duplicateMovieClip('item' + _root.itemchestCount, 120 + _root.itemchestCount); _root['item' + _root.itemchestCount].gotoAndStop(3); _root['item' + _root.itemchestCount]._x = Math.floor(_root.chestDropx / 24) * 24 + 12; _root['item' + _root.itemchestCount]._y = Math.floor(_root.chestDropy / 24) * 24 + 48 + 12; delete treasureDropper; } else { ++treasureDropper; } } } else { if (_root.chestMapMemory[_root.floor][_root.dunmap * _root.row + _root.col] == 1) { if (vsfx == null) { _root.chat('<b>====================</b>', 30, 5); _root.chat('<b>T R E A S U R E R O O M</b>', 30, 5); _root.chat('<b>====================</b>', 30, 5); _root.soundvoice1.gotoAndStop(3); vsfx = 1; } if (_root.chestCount == null) { _root.chestCount = 1; } if (_root.chestCount <= 28) { if (treasureDropper >= 1) { this.gotoAndStop(_root.chestCount + 2); ++_root.chestCount; _root.mvp_chest.duplicateMovieClip('normchest' + _root.chestCount, 120 + _root.chestCount); _root['normchest' + _root.chestCount]._x = Math.floor(_root.chestDropx / 24) * 24 + 12; _root['normchest' + _root.chestCount]._y = Math.floor(_root.chestDropy / 24) * 24 + 12 + 8; delete treasureDropper; } else { ++treasureDropper; } } } else { delete vsfx; } } } } } movieClip 2513 { } movieClip 2516 { } movieClip 2519 { } movieClip 2533 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } frame 6 { stop(); } frame 7 { stop(); } frame 8 { stop(); } } movieClip 2535 { frame 1 { if (htpfd == null) { if (_global.program == 5) { _root.fader.duplicateMovieClip('fader_mc1', 20008); _root.fader_mc1._x = 0; _root.fader_mc1._y = 0; htpfd = 1; } } if (_root.BGM == 2) { stopAllSounds(); } stop(); } instance of movieClip 2221 { onClipEvent (enterFrame) { if (_global.program == 5) { if (Key.isDown(Key.getCode())) { _parent.gotoAndPlay(200); } } } onClipEvent (mouseDown) { if (_global.program == 5) { _parent.gotoAndPlay(200); } } } frame 206 { if (card >= 7) { _root.fader.duplicateMovieClip('fader_mc1', 20009); _root.fader_mc1._x = 0; _root.fader_mc1._y = 0; stopAllSounds(); _global.program = 6; delete _root.scene_load; removeMovieClip(this); stop(); } else { _root.fader.duplicateMovieClip('fader_mc1', 20008); _root.fader_mc1._x = 0; _root.fader_mc1._y = 0; howtoplay.nextFrame(); gotoAndPlay(2); ++card; } } } movieClip 2541 { } movieClip 2544 { } movieClip 2545 { frame 6 { stop(); } } movieClip 2553 { } movieClip 2559 { } button 2561 { on (release) { _root.m_select = 1; } } button 2562 { on (release) { _root.m_select = 2; } } button 2563 { on (release) { _root.m_select = 3; } } movieClip 2564 { } movieClip 2565 { frame 6 { stop(); } } movieClip 2567 { } movieClip 2569 { frame 4 { stop(); } } movieClip 2572 { instance of movieClip 2545 { onClipEvent (load) { if (_parent._name == 'mvpchest1') { this._visible = true; } else { this._visible = false; } } } instance of movieClip 2565 { onClipEvent (load) { if (_parent._name == 'mvpchest1' && _root.char1.hb.hitTest(_root.mvpchest1)) { this._visible = true; } else { this._visible = false; } } onClipEvent (enterFrame) { if (_parent._name == 'mvpchest1' && _root.char1.hb.hitTest(_root.mvpchest1)) { this._visible = true; } else { this._visible = false; } } } instance of movieClip 2569 { onClipEvent (load) { if (_parent._name == 'mvpchest1') { this._visible = true; } else { this._visible = false; } } } frame 5 { stop(); } frame 5 { stop(); } frame 16 { delete _root.mvpdeath; removeMovieClip(this); } } movieClip 2574 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } frame 6 { stop(); } instance of movieClip 127 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } frame 7 { stop(); } instance of movieClip 127 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } frame 8 { stop(); } instance of movieClip 127 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } frame 9 { stop(); } instance of movieClip 127 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } frame 10 { stop(); } frame 11 { stop(); } frame 12 { stop(); } frame 13 { stop(); } frame 14 { stop(); } frame 15 { stop(); } frame 16 { stop(); } frame 17 { stop(); } frame 18 { stop(); } frame 19 { stop(); } frame 20 { stop(); } frame 21 { stop(); } frame 22 { stop(); } frame 23 { stop(); } frame 24 { stop(); } frame 25 { stop(); } frame 26 { stop(); } instance of movieClip 127 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } instance of movieClip 127 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } frame 27 { stop(); } instance of movieClip 127 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } frame 28 { stop(); } instance of movieClip 127 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } frame 29 { stop(); } instance of movieClip 127 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } frame 30 { stop(); } instance of movieClip 127 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } frame 31 { stop(); } frame 32 { stop(); } frame 33 { stop(); } frame 34 { stop(); } frame 35 { stop(); } frame 36 { stop(); } frame 37 { stop(); } frame 38 { stop(); } frame 39 { stop(); } frame 40 { stop(); } frame 41 { stop(); } frame 42 { stop(); } frame 43 { stop(); } frame 44 { stop(); } frame 45 { stop(); } frame 46 { stop(); } instance of movieClip 127 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } frame 47 { stop(); } instance of movieClip 127 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } frame 48 { stop(); } instance of movieClip 127 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } frame 49 { stop(); } instance of movieClip 127 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } frame 50 { stop(); } frame 51 { stop(); } frame 52 { stop(); } frame 53 { stop(); } frame 54 { stop(); } frame 55 { stop(); } frame 56 { stop(); } frame 57 { stop(); } frame 58 { stop(); } frame 59 { stop(); } frame 60 { stop(); } frame 61 { stop(); } frame 62 { stop(); } frame 63 { stop(); } frame 64 { stop(); } frame 65 { stop(); } frame 66 { stop(); } instance of movieClip 127 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } frame 67 { stop(); } instance of movieClip 127 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } frame 68 { stop(); } instance of movieClip 127 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } frame 69 { stop(); } instance of movieClip 127 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } frame 70 { stop(); } frame 71 { stop(); } frame 72 { stop(); } frame 73 { stop(); } frame 74 { stop(); } frame 75 { stop(); } frame 76 { stop(); } frame 77 { stop(); } frame 78 { stop(); } frame 79 { stop(); } frame 80 { stop(); } frame 81 { stop(); } frame 82 { stop(); } frame 83 { stop(); } frame 84 { stop(); } frame 85 { stop(); } frame 86 { stop(); } instance of movieClip 620 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } frame 87 { stop(); } instance of movieClip 620 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } frame 88 { stop(); } instance of movieClip 620 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } frame 89 { stop(); } instance of movieClip 620 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } frame 90 { stop(); } frame 91 { stop(); } frame 92 { stop(); } frame 93 { stop(); } frame 94 { stop(); } frame 95 { stop(); } frame 96 { stop(); } frame 97 { stop(); } frame 98 { stop(); } frame 99 { stop(); } frame 100 { stop(); } frame 101 { stop(); } frame 102 { stop(); } frame 103 { stop(); } frame 104 { stop(); } frame 105 { stop(); } frame 106 { stop(); } instance of movieClip 742 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } frame 107 { stop(); } instance of movieClip 742 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } frame 108 { stop(); } instance of movieClip 742 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } frame 109 { stop(); } instance of movieClip 742 { onClipEvent (load) { this.gotoAndStop(_root.shield); } onClipEvent (enterFrame) { this.gotoAndStop(_root.shield); } } frame 110 { stop(); } frame 111 { stop(); } frame 112 { stop(); } frame 113 { stop(); } frame 114 { stop(); } frame 115 { stop(); } frame 116 { stop(); } frame 117 { stop(); } frame 118 { stop(); } frame 119 { stop(); } frame 120 { stop(); } } movieClip 2576 { frame 1 { stop(); } frame 2 { play(); } frame 6 { stop(); } } instance ambushchar of movieClip 2576 { 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; } } } movieClip 2588 { frame 1 { stop(); } frame 2 { if (_root.BGM == 2) { stopAllSounds(); } } frame 2 { stop(); } frame 3 { if (_root.BGM == 2) { stopAllSounds(); } } frame 3 { stop(); } frame 4 { if (_root.BGM == 2) { stopAllSounds(); } } frame 4 { stop(); } frame 5 { if (_root.BGM == 2) { stopAllSounds(); } } frame 5 { stop(); } frame 6 { if (_root.BGM == 2) { stopAllSounds(); } } frame 6 { stop(); } frame 7 { if (_root.BGM == 2) { stopAllSounds(); } } frame 7 { stop(); } frame 8 { if (_root.BGM == 2) { stopAllSounds(); } } frame 8 { stop(); } frame 9 { if (_root.BGM == 2) { stopAllSounds(); } } frame 9 { stop(); } frame 10 { if (_root.BGM == 2) { stopAllSounds(); } } frame 10 { stop(); } frame 11 { if (_root.BGM == 2) { stopAllSounds(); } } frame 11 { stop(); } frame 12 { if (_root.BGM == 2) { stopAllSounds(); } } frame 12 { stop(); } frame 13 { if (_root.BGM == 2) { stopAllSounds(); } } frame 13 { stop(); } frame 14 { gotoAndStop(13); } } movieClip 2593 { } movieClip 2594 { } movieClip 2595 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } } movieClip 2616 { frame 31 { removeMovieClip(this); } } movieClip 2641 { frame 25 { removeMovieClip(this); } } movieClip 2658 { frame 17 { removeMovieClip(this); } } movieClip 2664 { frame 1 { gotoAndStop(1); } frame 2 { gotoAndStop(1); } frame 3 { gotoAndStop(1); } frame 4 { gotoAndStop(1); } frame 5 { gotoAndStop(1); } } movieClip 2668 { frame 1 { stop(); } frame 2 { gotoAndStop(1); } frame 3 { gotoAndStop(1); } frame 4 { gotoAndStop(1); } } movieClip 2674 { frame 1 { gotoAndStop(1); } frame 2 { gotoAndStop(1); } frame 3 { gotoAndStop(1); } frame 4 { gotoAndStop(1); } frame 5 { gotoAndStop(1); } frame 6 { gotoAndStop(1); } } movieClip 2677 { frame 1 { stop(); } frame 2 { stop(); } frame 2 { gotoAndStop(1); } frame 3 { stop(); } frame 3 { gotoAndStop(1); } frame 4 { stop(); } frame 4 { gotoAndStop(1); } } movieClip 2698 { frame 23 { removeMovieClip(this); } } movieClip 2703 { } movieClip 2705 { } movieClip 2706 { frame 20 { gotoAndStop(1); } frame 21 { stop(); } } movieClip 2708 { frame 12 { stop(); } } movieClip 2709 { instance of movieClip 2706 { 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 movieClip 2708 { onClipEvent (enterFrame) { if (rwgemglow == null) { this.gotoAndPlay(2); rwgemglow = 1; } } onClipEvent (unload) { delete rwgemglow; } } } movieClip 2710 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } } movieClip 2712 { } movieClip 2715 { } movieClip 2716 { frame 1 { stop(); } frame 12 { removeMovieClip(this); } } movieClip 2718 { } movieClip 2719 { instance of movieClip 2236 { onClipEvent (enterFrame) { if (_root.char1.hb.hitTest(this) && _root.time_use == null) { if (_root.floor > 1) { _root.exit_dun = 1; _root.floorHigher = 1; this._y = -9999; } } } } instance exit of movieClip 2238 { onClipEvent (load) { if (_root.floor == 1) { this._visible = false; } else { this._visible = true; } } onClipEvent (enterFrame) { _root.findme = _parent._name; if (_root.floor == 1) { this._visible = false; } else { this._visible = true; } } } instance hb of movieClip 2294 { onClipEvent (load) { gotoAndStop(_parent._currentframe); } onClipEvent (enterFrame) { gotoAndStop(_parent._currentframe); } } instance ripplebox of movieClip 2718 { onClipEvent (enterFrame) { _root.pool.pool_char._xscale = _root.char1._xscale; _root.pool.pool_char._x = _root.char1._x; _root.pool.pool_char._y = _root.char1._y; _root.pool.pool_char.gotoAndStop(_root.char1._currentframe); if (this.hitTest(_root.char1.hb) && _root.char1._currentframe <= 5 || this.hitTest(_root.char1.hb) && _root.char1._currentframe >= 11) { if (_root.pool.pool_effect._currentframe >= 3) { _root.pool.pool_effect3.play(); } if (_root.pool.pool_effect._currentframe >= 2) { _root.pool.pool_effect2.play(); } if (_root.pool.pool_effect._currentframe == 1) { _root.pool.pool_effect.play(); } _root.pool.pool_effect._x = _root.char1._x; _root.pool.pool_effect._y = _root.char1._y; _root.pool.pool_effect2._x = _root.char1._x; _root.pool.pool_effect2._y = _root.char1._y; _root.pool.pool_effect3._x = _root.char1._x; _root.pool.pool_effect3._y = _root.char1._y; } } } instance of movieClip 2236 { onClipEvent (enterFrame) { if (_root.char1.hb.hitTest(this) && _root.time_use == null) { _root.exit_dun = 1; if (_root.floor == null) { _root.floor = 1; } _root.floorLower = 1; this._y = -9999; } } } instance of movieClip 2236 { onClipEvent (enterFrame) { if (_root.char1.hb.hitTest(this) && _root.time_use == null) { if (_root.floor > 1) { _root.exit_dun = 1; _root.floorHigher = 1; this._y = -9999; } } } } instance exit of movieClip 2238 { 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 movieClip 2236 { onClipEvent (enterFrame) { if (_root.char1.hb.hitTest(this) && _root.time_use == null) { _root.exit_dun = 1; if (_root.floor == null) { _root.floor = 1; } _root.floorLower = 1; this._y = -9999; } } } instance of movieClip 2236 { onClipEvent (enterFrame) { if (_root.char1.hb.hitTest(this)) { if (_root.floor > 1) { _root.exit_dun = 1; _root.floorHigher = 1; this._y = -9999; } } } } instance exit of movieClip 2238 { 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; } } } } movieClip 2721 { } instance floormouse of movieClip 2721 { onClipEvent (enterFrame) { if (this._x < _root._xmouse + 12) { this._x += 24; } if (this._x > _root._xmouse - 12) { this._x -= 24; } if (this._y < _root._ymouse + 12) { this._y += 24; } if (this._y > _root._ymouse - 12) { this._y -= 24; } } } movieClip 2722 { } movieClip 2724 { } movieClip 2727 { frame 21 { removeMovieClip(this); } } movieClip 2729 { } instance loader of movieClip 2729 { onClipEvent (load) { } } movieClip 2732 { } movieClip 2733 { } movieClip 2734 { instance desc of movieClip 1973 { 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 movieClip 2044 { 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); } } } } } } movieClip 2738 { } movieClip 2739 { } movieClip 2741 { } movieClip 2742 { } movieClip 2750 { frame 80 { _root.gameLogo = 1; stop(); } } instance logo of movieClip 2750 { onClipEvent (load) { _root.reSize(); } onClipEvent (enterFrame) { if (this._currentframe >= 79) { _root.gameLoad = 1; } } }




http://swfchan.com/48/238308/info.shtml
Created: 7/12 -2020 08:14:15 Last modified: 7/12 -2020 08:14:15 Server time: 22/12 -2024 19:50:17