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

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

Ronin Warrior.swf

This is the info page for
Flash #40944

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


ActionScript [AS1/AS2]
Combined Code
frame 1 { function nothing() {} function createUndead(Etype, xx, yy, emerge) { ++_global.es1; ++_global.es2; _root['en' + Etype + '' + 's'].duplicateMovieClip('en' + Etype + '' + 's' + _global.es1, _global.es2); _root['en' + Etype + '' + 's' + _global.es1]._x = xx; _root['en' + Etype + '' + 's' + _global.es1]._y = yy; _root['en' + Etype + '' + 's' + _global.es1].emerging = emerge; if (Etype == 14 && !emerge) { _root['en' + Etype + '' + 's' + _global.es1].dropping = true; } else { if (Etype == 14 && emerge) { _root['en' + Etype + '' + 's' + _global.es1].dropping = false; } } } function saveGame() { savefile.data.kills = _global.kills; savefile.data.dimaFightUnlocked = dimaFightUnlocked; savefile.data.dimaHatUnlocked = dimaHatUnlocked; savefile.data.gameComplete = gameComplete; savefile.flush(); } function notifyCheckpoint() {} var my_cm = new ContextMenu(); my_cm.builtInItems.quality = true; my_cm.builtInItems.print = false; my_cm.builtInItems.forward_back = false; my_cm.builtInItems.play = false; my_cm.builtInItems.loop = false; my_cm.builtInItems.rewind = false; my_cm.customItems.push(menuItem_cmi); this.menu = my_cm; _root.oldScore = 0; _root.blackout.gotoAndStop(1); _global.scrolling = 3; _global.scrollFix = false; var savefile = SharedObject.getLocal('Ronin'); _global.kills = savefile.data.kills; dimaFightUnlocked = savefile.data.dimaFightUnlocked; dimaHatUnlocked = savefile.data.dimaHatUnlocked; gameComplete = savefile.data.gameComplete; if (savefile.data.kills == undefined) { _global.kills = 0; dimaFightUnlocked = false; dimaHatUnlocked = false; gameComplete = false; } _global.hat = 1; _global.Face = 1; _global.eHp = 0; _global.eEn = 0; _global.ePw = 0; _global.cheatSword = 1; menuSelection = 'none'; firstPlay = true; _global.selectHat = function (HP, EN, PW) { if (isNaN(Number(PW))) { _root.newChar.HnF.headPW = 0; } else { _root.newChar.HnF.headPW = Number(PW); } if (isNaN(Number(HP))) { _root.newChar.HnF.headHP = 0; } else { _root.newChar.HnF.headHP = Number(HP); } if (isNaN(Number(EN))) { _root.newChar.HnF.headEN = 0; } else { _root.newChar.HnF.headEN = Number(EN); } }; _global.selectFace = function (HP, EN, PW) { if (isNaN(Number(PW))) { _root.newChar.HnF.facePW = 0; } else { _root.newChar.HnF.facePW = Number(PW); } if (isNaN(Number(HP))) { _root.newChar.HnF.faceHP = 0; } else { _root.newChar.HnF.faceHP = Number(HP); } if (isNaN(Number(EN))) { _root.newChar.HnF.faceEN = 0; } else { _root.newChar.HnF.faceEN = Number(EN); } }; healthDrop = function (chance, xx, yy) { if (chance == 1 || chance == 2) { ++_global.eb1; ++_global.eb2; _root.hp1up.duplicateMovieClip('hp1up' + _global.eb1, _global.eb2); _root['hp1up' + _global.eb1]._x = xx; _root['hp1up' + _global.eb1]._y = yy; } }; potionDrop = function (type, xx, yy) { ++_global.eb1; ++_global.eb2; _root['hp' + type + 'up'].duplicateMovieClip('hp' + type + 'up' + _global.eb1, _global.eb2); _root['hp' + type + 'up' + _global.eb1]._x = xx; _root['hp' + type + 'up' + _global.eb1]._y = yy; }; goldDrop = function (gold, xx, yy, higherCoin) { if (gold > 0) { Gold = 0; silver = 0; bronze = 0; ruby = 0; chance = gold * 2; i = 1; while (i <= gold) { resultChance = random(chance); if (resultChance >= Math.round(3 * chance / 4)) { ++_global.eb1; ++_global.eb2; if (higherCoin) { _root.coin4s.duplicateMovieClip('coin4s' + _global.eb1, _global.eb2); _root['coin4s' + _global.eb1]._x = xx; _root['coin4s' + _global.eb1]._y = yy; ++ruby; } else { coin = 1 + random(3); _root['coin' + coin + 's'].duplicateMovieClip('coin' + coin + 's' + _global.eb1, _global.eb2); _root['coin' + coin + 's' + _global.eb1]._x = xx; _root['coin' + coin + 's' + _global.eb1]._y = yy; if (coin == 1) { ++bronze; } else { if (coin == 2) { ++silver; } else { if (coin == 3) { ++Gold; } } } } } else { if (resultChance >= Math.round(0.5 * chance) && resultChance < Math.round(3 * chance / 4)) { ++_global.eb1; ++_global.eb2; _root.coin3s.duplicateMovieClip('coin3s' + _global.eb1, _global.eb2); _root['coin3s' + _global.eb1]._x = xx; _root['coin3s' + _global.eb1]._y = yy; ++Gold; } else { if (resultChance >= Math.round(chance / 4) && resultChance < Math.round(0.5 * chance)) { ++_global.eb1; ++_global.eb2; _root.coin2s.duplicateMovieClip('coin2s' + _global.eb1, _global.eb2); _root['coin2s' + _global.eb1]._x = xx; _root['coin2s' + _global.eb1]._y = yy; ++silver; } else { if (resultChance < Math.round(chance / 4)) { ++_global.eb1; ++_global.eb2; _root.coin1s.duplicateMovieClip('coin1s' + _global.eb1, _global.eb2); _root['coin1s' + _global.eb1]._x = xx; _root['coin1s' + _global.eb1]._y = yy; ++bronze; } } } } ++i; } } }; guiOff = function () { _root.weapons._visible = false; _root.scoreField._y = -100; _root.goldField._y = -100; _root.statusBar._visible = false; _root.distanceLabel._y = -100; _root.distanceField._y = -100; _root.mute._y = -100; }; guiOn = function () { _root.weapons._visible = true; _root.scoreField._y = 9.800000000000001; _root.goldField._y = 9.800000000000001; _root.statusBar._visible = true; _root.distanceLabel._y = 45.4; _root.distanceField._y = 34.8; _root.mute._y = 45.6; }; alreadyBought = function (weapon) { i = 0; while (i <= _root.weapons.weaponsA.length) { if (_root.weapons.weaponsA[i]._name == weapon) { return true; } ++i; } return false; }; createPoof = function (xx, yy) { ++_global.eb1; ++_global.eb2; _root.telePoof.duplicateMovieClip('telePoof' + _global.eb1, _global.eb2); _root['telePoof' + _global.eb1]._x = xx; _root['telePoof' + _global.eb1]._y = yy; }; massUnpause = function () { _root.arm.unpauseSwing(); i = 0; while (i < _root.control.enemies.length) { try { _root.control.enemies[i].unPause(); } ++i; } }; massEvent = function (level) { switch (level) { case 3: if (_root.menuSelection == 'special') { _root.gotoAndStop('dimaFight'); } else { if (_root.menuSelection == 'survival') { _root.gotoAndStop('survival'); } } break; case 14: if (_root.trainingDone) { _root.player.reset(); _root.hotaru._visible = false; _root.hotaru.notAdded = true; _root.player.training = false; _root.hotaruShop._visible = true; _root.shopB.enabled = true; _root.shopB._visible = true; _root.contB.enabled = true; _root.contB._visible = true; _root.menuB.enabled = true; _root.menuB._visible = true; _root.trainingDone = false; _root.pawsd = false; _root.chat.gotoAndStop(6); with (_root.hotaru) { hp = maxhp; energy = maxEn; _x = 471.1; _y = 194.2; _xscale = -100; deathLock = false; dead = false; } _root.fadeScreen.fadeOut(); } else { _root.healthRefund = _root.player.hp; _root.player.training = true; _root.hotaruShop._visible = false; _root.chatZoom.play(); _root.statHotaru._visible = true; _root.hotaru._visible = true; _root.hotaru.gotoAndStop('standIntro'); _root.player.reset(); _root.fadeScreen.fadeOut(); _root.pawsd = true; } break; break; case 18: default: } }; createBoneExplosion = function (amount, xx, yy) { i = 0; while (i < Math.round(amount / 2)) { ++_global.ps1; ++_global.ps2; num = 1 + random(3); _global.ps2 += 10; _root['bone' + num + 's'].duplicateMovieClip('bone' + num + 's' + _global.ps1, _global.ps2); _root['bone' + num + 's' + _global.ps1]._x = xx; _root['bone' + num + 's' + _global.ps1]._y = yy; yrate = 5 + random(24); if (yrate % 2 != 0) { --yrate; } _root['bone' + num + 's' + _global.ps1].rateY = yrate; _root['bone' + num + 's' + _global.ps1].rateX = -random(10) + random(10); ++i; } i = 0; while (i < Math.round(amount / 2)) { ++_global.ps1; ++_global.ps2; num = 1 + random(3); _global.ps2 += 10; _root['bone' + num + 's'].duplicateMovieClip('bone' + num + 's' + _global.ps1, _global.ps2); _root['bone' + num + 's' + _global.ps1]._x = xx; _root['bone' + num + 's' + _global.ps1]._y = yy; yrate = -1 - random(30); if (yrate % 2 != 0) { --yrate; } _root['bone' + num + 's' + _global.ps1].rateY = yrate; _root['bone' + num + 's' + _global.ps1].rateX = -random(10) + random(10); ++i; } }; createSwordSpark = function (amount, xx, yy) { i = 0; while (i < Math.round(amount / 2)) { ++_global.ps1; ++_global.ps2; num = 1 + random(3); _global.ps2 += 10; _root.spark.duplicateMovieClip('spark' + _global.ps1, _global.ps2); _root['spark' + _global.ps1]._x = xx; _root['spark' + _global.ps1]._y = yy; yrate = 5 + random(24); if (yrate % 2 != 0) { --yrate; } _root['spark' + _global.ps1].movey = yrate; _root['spark' + _global.ps1].movex = -random(10) + random(10); ++i; } i = 0; while (i < Math.round(amount / 2)) { ++_global.ps1; ++_global.ps2; num = 1 + random(3); _global.ps2 += 10; _root.spark.duplicateMovieClip('spark' + _global.ps1, _global.ps2); _root['spark' + _global.ps1]._x = xx; _root['spark' + _global.ps1]._y = yy; yrate = -1 - random(30); if (yrate % 2 != 0) { --yrate; } _root['spark' + _global.ps1].movey = yrate; _root['spark' + _global.ps1].movex = -random(10) + random(10); ++i; } ++_global.ps1; ++_global.ps2; num = 1 + random(3); _global.ps2 += 10; _root.sparkStar.duplicateMovieClip('sparkStar' + _global.ps1, _global.ps2); _root['sparkStar' + _global.ps1]._x = xx; _root['sparkStar' + _global.ps1]._y = yy; _root['sparkStar' + _global.ps1].gotoAndPlay(2); }; createSpark = function (amount, xx, yy) { i = 0; while (i < Math.round(amount / 2)) { ++_global.ps1; ++_global.ps2; num = 1 + random(3); _global.ps2 += 10; _root.spark.duplicateMovieClip('spark' + _global.ps1, _global.ps2); _root['spark' + _global.ps1]._x = xx; _root['spark' + _global.ps1]._y = yy; yrate = 5 + random(24); if (yrate % 2 != 0) { --yrate; } _root['spark' + _global.ps1].movey = yrate; _root['spark' + _global.ps1].movex = -random(10) + random(10); ++i; } i = 0; while (i < Math.round(amount / 2)) { ++_global.ps1; ++_global.ps2; num = 1 + random(3); _global.ps2 += 10; _root.spark.duplicateMovieClip('spark' + _global.ps1, _global.ps2); _root['spark' + _global.ps1]._x = xx; _root['spark' + _global.ps1]._y = yy; yrate = -1 - random(30); if (yrate % 2 != 0) { --yrate; } _root['spark' + _global.ps1].movey = yrate; _root['spark' + _global.ps1].movex = -random(10) + random(10); ++i; } }; hax = false; } movieClip 4 { } instance sound of movieClip 4 { onClipEvent (load) { function setMusic(song) { music.stop(); music.attachSound(song); } function fadeIn(max, rateVol) { maxVolume = max; music.start(); music.setVolume(0); fade = 'in'; rate = rateVol; } function fadeOut(min, rateVol) { interval = music.getVolume(); minVolume = min; fade = 'out'; rate = rateVol; } function setNextSong(song, toFade) { nextMusic = song; nextFade = toFade; setNext = true; } function loopCurrent() { loop = true; } function breakLoop() { loop = false; } function setNextVolume(num) { tempVolume = num; nextVolume = num; } function setNextVolumeRate(num) { nextVolumeRate = num; } function traverse(num, vol) { music.start(num); music.setVolume(vol); } function getNextVolumeRate() { return nextVolumeRate; } function muteToggle(mute) { if (mute) { muted = true; tempVolume = music.getVolume(); music.setVolume(0); } else { muted = false; if (!setNext) { music.setVolume(tempVolume); } } } function setLoopOffset(amount) { loopOffset = amount; } var music = new Sound(this); nextMusic; nextFade = false; setNext = false; fade = 'null'; interval = 0; maxVolume = 100; minVolume = 0; rate = 2; loop = true; loopOffset = 0; nextVolume = 100; nextVolumeRate = 50; tempVolume; muted = false; } onClipEvent (enterFrame) { if (!setNext && (music.getVolume() != 0 || muted) && loop && music.position >= music.duration - loopOffset) { music.stop(); music.start(0); if (!muted) { music.setVolume(nextVolume); } } if (fade == 'in') { if (interval < maxVolume) { interval += rate; music.setVolume(interval); } else { fade = 'null'; interval = 0; } } if (fade == 'out') { if (interval > minVolume) { interval -= rate; if (interval < 0) { interval = 0; } music.setVolume(interval); } else { fade = 'null'; interval = 0; music.setVolume(minVolume); } } if (setNext) { if (music.getVolume() <= 0) { music.stop(); music.attachSound(nextMusic); if (!muted) { if (nextFade) { fadeIn(nextVolume, nextVolumeRate); } setNext = false; nextFade = false; } } } if (_root._currentframe == 3 && muted) { muted = false; music.setVolume(100); } } } movieClip 9 { frame 1 { stop(); } frame 11 { _root.play(); if (_root._currentframe == 8) { gotoAndPlay(13); } } frame 12 { if (_root._currentframe == 5) { _root.play(); } stop(); } frame 23 { stop(); } } button 11 { on (release) { getURL('http://www.maxgames.com', '_blank'); } } // unknown tag 88 length 212 movieClip 14 { } movieClip 16 { } movieClip 19 { frame 1 { stop(); } frame 2 { this._alpha -= 10; _root.NGframe._alpha -= 10; } frame 3 { this._alpha -= 10; _root.NGframe._alpha -= 10; } frame 4 { this._alpha -= 10; _root.NGframe._alpha -= 10; } frame 5 { this._alpha -= 10; _root.NGframe._alpha -= 10; } frame 6 { this._alpha -= 10; _root.NGframe._alpha -= 10; } frame 7 { this._alpha -= 10; _root.NGframe._alpha -= 10; } frame 8 { this._alpha -= 10; _root.NGframe._alpha -= 10; } frame 9 { this._alpha -= 10; _root.NGframe._alpha -= 10; if (!_root.firstPlay) { _root.sound.setMusic('Menu'); _root.sound.traverse(3, 100); _root.menuBorder.play(); } } frame 10 { this._alpha -= 10; _root.NGframe._alpha -= 10; } frame 11 { this._alpha -= 10; _root.NGframe._alpha -= 10; } frame 12 { _root.NGframe._x = -100; stop(); } } movieClip 21 { } button 27 { on (release) { _root.loadingJap.play(); _root.gotoAndStop(3); play(); } } movieClip 31 { frame 1 { _root.stop(); PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100; if (PercentLoaded != 100) { bar._xscale = PercentLoaded; } else { gotoAndStop('loaded'); } } frame 2 { gotoAndPlay(1); } frame 11 { stop(); } } movieClip 34 { } movieClip 35 { } instance NGframe of movieClip 35 { } // unknown tag 88 length 146 movieClip 39 { } movieClip 41 { } movieClip 43 { } movieClip 45 { } movieClip 47 { } movieClip 49 { } movieClip 51 { } movieClip 89 { frame 1 { stop(); } } frame 3 { _root.swordEndingSelection = 1; stop(); if (_root.mainFade._currentframe > 1) { _root.mainFade.play(); } newSound = new Sound(); playSoundEffect = function (Name, Volume) { newSound.attachSound(Name); newSound.setVolume(Volume); newSound.start(); }; isSoundDone = function () { if (newSound.position == newSound.duration) { return true; } return false; }; var zombieSounds = new Array('z1', 'z2', 'z3'); var skeletonSounds = new Array('s1', 's2', 's3', 's4', 's5'); var manDeath = new Array('m1', 'm2', 'm3', 'm4'); } button 95 { on (release) { play(); } } movieClip 99 { frame 1 { stop(); } frame 10 { stop(); } frame 17 { gotoAndStop(1); } } movieClip 102 { } movieClip 106 { frame 60 { stop(); } } movieClip 111 { frame 1 { stop(); if (_root.firstPlay) { play(); } } frame 201 { stop(); _root.sound.setMusic('Menu'); _root.sound.traverse(3, 100); _root.menuBorder.play(); _root.firstPlay = false; } } instance maxGamesAnime of movieClip 111 { onClipEvent (load) { } } movieClip 113 { frame 1 { stop(); } frame 9 { stop(); } } movieClip 114 { } instance fadeScreen of movieClip 114 { onClipEvent (load) { function fadeIn(traverse) { blackout = 'fadeIn'; traverseFrame = traverse; } function changeRate(rateChange) { rate = rateChange; } function fadeOut() { blackout = 'fadeOut'; } function setTimer(time) { count = time; } this.swapDepths(1000000000); blackout = 'null'; traverseFrame = false; rate = 5; count = 0; } onClipEvent (enterFrame) { if (count <= 0) { if (blackout == 'fadeIn') { if (_alpha < 100) { _alpha = _alpha + rate; } else { if (traverseFrame) { _root.gcontrol.clearMiscItems(); _root.play(); traverseFrame = false; blackout = 'null'; } else { if (!traverseFrame) { _root.massEvent(_root._currentframe); } } } } else { if (blackout == 'fadeOut') { if (_alpha > 0) { _alpha = _alpha - rate; } else { _alpha = 0; blackout = 'null'; } } } } else { --count; } } } button 121 { on (release) { _root.newChar.gotoAndPlay(1); gotoAndPlay(30); ng.enabled = false; ins.enabled = false; ch.enabled = false; } } button 122 { on (release) { _root.tut.play(); gotoAndPlay(18); ng.enabled = false; ins.enabled = false; ch.enabled = false; } } button 124 { on (release) { _root.tut.play(); } } button 129 { on (release) { this.enabled = false; gotoAndPlay(23); _root.tut.gotoAndPlay(22); } } // unknown tag 88 length 212 button 140 { on (release) { _root.sound.fadeOut(0, 30); _root.blackout.gotoAndPlay(2); } } button 141 { on (release) { if (_root.gameComplete) { _root.fadeScreen.changeRate(20); _root.fadeScreen.fadeIn(false); _root.menuSelection = 'survival'; } else { _root.survivalMsg.play(); } } } button 142 { on (release) { _root.fadeScreen.changeRate(20); _root.fadeScreen.fadeIn(false); _root.menuSelection = 'special'; } } button 143 { on (release) { this.enabled = false; gotoAndPlay(35); _root.newChar.gotoAndPlay(16); } } button 145 { on (release) { this.enabled = false; gotoAndPlay(35); _root.newChar.play(); } } movieClip 147 { frame 1 { stop(); } frame 17 { stop(); } frame 22 { stop(); } frame 27 { stop(); } frame 34 { stop(); } frame 40 { gotoAndStop(27); } } movieClip 157 { frame 1 { stop(); } frame 10 { _root.mainMenu.play(); } frame 45 { stop(); } } instance menuBorder of movieClip 157 { onClipEvent (load) { stop(); } } button 162 { on (release) { if (_quality == 'LOW') { _quality = 'MEDIUM'; } else { if (_quality == 'MEDIUM') { _quality = 'HIGH'; } else { if (_quality == 'HIGH') { _quality = 'LOW'; } } } quality = _quality; } } button 165 { on (release) { if (pLimit < 5) { ++pLimit; } else { pLimit = 0; } } } button 167 { on (release) { if (pLimit < 3) { ++pLimit; } else { pLimit = 1; } } } movieClip 170 { } button 175 { on (rollOver) { help.text = 'Auto Quality will change the quality of the movie to \'medium\' when you move and scroll the screen. This only works if you\'re using high quality from the start.'; } on (rollOut) { help.text = ''; } } button 176 { on (rollOver) { help.text = 'Scroll Level signifies how many layers of background will scroll. There are three levels, the higher it is, the slower the game will run.'; } on (rollOut) { help.text = ''; } } button 180 { on (release) { if (scrollLimit < 3) { ++scrollLimit; _global.scrolling = scrollLimit; } else { scrollLimit = 1; _global.scrolling = scrollLimit; } } } button 181 { on (release) { if (auto.text == 'Off') { _global.scrollFix = true; auto.text = 'On'; } else { _global.scrollFix = false; auto.text = 'Off'; } } } movieClip 184 { frame 1 { stop(); } frame 15 { stop(); quality = _quality; scrollLimit = _global.scrolling; auto.text = 'Off'; } } instance tut of movieClip 184 { onClipEvent (enterFrame) { _global.p = this.pLimit; } } movieClip 187 { frame 1 { ++this.t; } frame 2 { ++this.t; } } movieClip 192 { } movieClip 194 { } movieClip 203 { } button 207 { on (release) { _parent.HnF.gotoAndStop(2); } } button 208 { on (release) { _parent.HnF.gotoAndStop(1); } } movieClip 210 { } movieClip 212 { } movieClip 214 { } movieClip 217 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 219 { } movieClip 221 { } movieClip 223 { } movieClip 225 { } movieClip 227 { } movieClip 229 { } movieClip 231 { } movieClip 233 { } movieClip 235 { } movieClip 237 { } movieClip 239 { } movieClip 241 { } movieClip 243 { } movieClip 245 { } movieClip 247 { } movieClip 249 { } movieClip 251 { } movieClip 253 { } movieClip 255 { } movieClip 257 { } movieClip 259 { } movieClip 261 { } movieClip 263 { } movieClip 265 { } movieClip 267 { } movieClip 269 { } movieClip 270 { instance of movieClip 217 { onClipEvent (load) { stop(); required = 0; if (!_root.dimaHatUnlocked) { gotoAndStop(2); _root.newChar.HnF.Hats.dimaMark._alpha = 100; } else { gotoAndStop(1); _root.newChar.HnF.Hats.dimaMark._alpha = 0; } } onClipEvent (rollOver) { _root.newChar.info.hp.text = '+20'; _root.newChar.info.en.text = '+100'; _root.newChar.info.pw.text = '+10'; if (_root.dimaHatUnlocked) { _root.newChar.info.info.text = 'Dima \t The Master-er...'; } else { _root.newChar.info.info.text = 'You need to defeat Dima in \n special fights to unlock this.'; } } onClipEvent (rollOut) { _root.newChar.info.hp.text = '--'; _root.newChar.info.en.text = '--'; _root.newChar.info.pw.text = '--'; _root.newChar.info.info.text = 'Roll over a Hat or Face to see\nInfo on that item'; } onClipEvent (release) { if (_root.dimaHatUnlocked) { _global.hat = 26; _global.selectHat(_root.newChar.info.hp.text, _root.newChar.info.en.text, _root.newChar.info.pw.text); } } } instance of movieClip 219 { onClipEvent (load) { stop(); required = 900; if (_global.kills < required) { _alpha = 20; } else { _alpha = 100; } } onClipEvent (rollOver) { _root.newChar.info.hp.text = '+8'; _root.newChar.info.en.text = '+20'; _root.newChar.info.pw.text = '+9'; if (_global.kills >= required) { _root.newChar.info.info.text = 'Pico \t Originaly by TomFulp'; } else { _root.newChar.info.info.text = 'You need ' + (required - _global.kills) + '\n more kills'; } } onClipEvent (rollOut) { _root.newChar.info.hp.text = '--'; _root.newChar.info.en.text = '--'; _root.newChar.info.pw.text = '--'; _root.newChar.info.info.text = 'Roll over a Hat or Face to see\nInfo on that item'; } onClipEvent (release) { if (_global.kills >= required) { _global.hat = 25; _global.selectHat(_root.newChar.info.hp.text, _root.newChar.info.en.text, _root.newChar.info.pw.text); } } } instance of movieClip 221 { onClipEvent (load) { stop(); required = 0; if (_global.kills < required) { _alpha = 20; } else { _alpha = 100; } } onClipEvent (rollOver) { _root.newChar.info.hp.text = '-5'; _root.newChar.info.en.text = '-40'; _root.newChar.info.pw.text = '-3'; if (_global.kills >= required) { _root.newChar.info.info.text = ':O \tWin with this and earn \nbragging rights'; } else { _root.newChar.info.info.text = 'You need ' + (required - _global.kills) + '\n more kills'; } } onClipEvent (rollOut) { _root.newChar.info.hp.text = '--'; _root.newChar.info.en.text = '--'; _root.newChar.info.pw.text = '--'; _root.newChar.info.info.text = 'Roll over a Hat or Face to see\nInfo on that item'; } onClipEvent (release) { if (_global.kills >= required) { _global.hat = 24; _global.selectHat(_root.newChar.info.hp.text, _root.newChar.info.en.text, _root.newChar.info.pw.text); } } } instance of movieClip 223 { onClipEvent (load) { stop(); required = 560; if (_global.kills < required) { _alpha = 20; } else { _alpha = 100; } } onClipEvent (rollOver) { _root.newChar.info.hp.text = '+2'; _root.newChar.info.en.text = '+2'; _root.newChar.info.pw.text = '+2'; if (_global.kills >= required) { _root.newChar.info.info.text = ':D\nRoflomglmfaoBBQ'; } else { _root.newChar.info.info.text = 'You need ' + (required - _global.kills) + '\n more kills'; } } onClipEvent (rollOut) { _root.newChar.info.hp.text = '--'; _root.newChar.info.en.text = '--'; _root.newChar.info.pw.text = '--'; _root.newChar.info.info.text = 'Roll over a Hat or Face to see\nInfo on that item'; } onClipEvent (release) { if (_global.kills >= required) { _global.hat = 23; _global.selectHat(_root.newChar.info.hp.text, _root.newChar.info.en.text, _root.newChar.info.pw.text); } } } instance of movieClip 225 { onClipEvent (load) { stop(); required = 560; if (_global.kills < required) { _alpha = 20; } else { _alpha = 100; } } onClipEvent (rollOver) { _root.newChar.info.hp.text = '+2'; _root.newChar.info.en.text = '+2'; _root.newChar.info.pw.text = '+2'; if (_global.kills >= required) { _root.newChar.info.info.text = ':)'; } else { _root.newChar.info.info.text = 'You need ' + (required - _global.kills) + '\n more kills'; } } onClipEvent (rollOut) { _root.newChar.info.hp.text = '--'; _root.newChar.info.en.text = '--'; _root.newChar.info.pw.text = '--'; _root.newChar.info.info.text = 'Roll over a Hat or Face to see\nInfo on that item'; } onClipEvent (release) { if (_global.kills >= required) { _global.hat = 22; _global.selectHat(_root.newChar.info.hp.text, _root.newChar.info.en.text, _root.newChar.info.pw.text); } } } instance of movieClip 227 { onClipEvent (load) { stop(); required = 675; if (_global.kills < required) { _alpha = 20; } else { _alpha = 100; } } onClipEvent (rollOver) { _root.newChar.info.hp.text = '--'; _root.newChar.info.en.text = '+10'; _root.newChar.info.pw.text = '+7'; if (_global.kills >= required) { _root.newChar.info.info.text = 'MADNESS\nOriginaly by Krinkels, duh'; } else { _root.newChar.info.info.text = 'You need ' + (required - _global.kills) + '\n more kills'; } } onClipEvent (rollOut) { _root.newChar.info.hp.text = '--'; _root.newChar.info.en.text = '--'; _root.newChar.info.pw.text = '--'; _root.newChar.info.info.text = 'Roll over a Hat or Face to see\nInfo on that item'; } onClipEvent (release) { if (_global.kills >= required) { _global.hat = 21; _global.selectHat(_root.newChar.info.hp.text, _root.newChar.info.en.text, _root.newChar.info.pw.text); } } } instance of movieClip 229 { onClipEvent (load) { stop(); required = 400; if (_global.kills < required) { _alpha = 20; } else { _alpha = 100; } } onClipEvent (rollOver) { _root.newChar.info.hp.text = '+3'; _root.newChar.info.en.text = '+3'; _root.newChar.info.pw.text = '--'; if (_global.kills >= required) { _root.newChar.info.info.text = 'Gas Mask\n Like in the good ol days'; } else { _root.newChar.info.info.text = 'You need ' + (required - _global.kills) + '\n more kills'; } } onClipEvent (rollOut) { _root.newChar.info.hp.text = '--'; _root.newChar.info.en.text = '--'; _root.newChar.info.pw.text = '--'; _root.newChar.info.info.text = 'Roll over a Hat or Face to see\nInfo on that item'; } onClipEvent (release) { if (_global.kills >= required) { _global.hat = 20; _global.selectHat(_root.newChar.info.hp.text, _root.newChar.info.en.text, _root.newChar.info.pw.text); } } } instance of movieClip 231 { onClipEvent (load) { stop(); required = 220; if (_global.kills < required) { _alpha = 20; } else { _alpha = 100; } } onClipEvent (rollOver) { _root.newChar.info.hp.text = '+4'; _root.newChar.info.en.text = '+10'; _root.newChar.info.pw.text = '--'; if (_global.kills >= required) { _root.newChar.info.info.text = 'Chefs Hat\tCmon kids lemy\ntell you a story'; } else { _root.newChar.info.info.text = 'You need ' + (required - _global.kills) + '\n more kills'; } } onClipEvent (rollOut) { _root.newChar.info.hp.text = '--'; _root.newChar.info.en.text = '--'; _root.newChar.info.pw.text = '--'; _root.newChar.info.info.text = 'Roll over a Hat or Face to see\nInfo on that item'; } onClipEvent (release) { if (_global.kills >= required) { _global.hat = 18; _global.selectHat(_root.newChar.info.hp.text, _root.newChar.info.en.text, _root.newChar.info.pw.text); } } } instance of movieClip 233 { onClipEvent (load) { stop(); required = 800; if (_global.kills < required) { _alpha = 20; } else { _alpha = 100; } } onClipEvent (rollOver) { _root.newChar.info.hp.text = '+6'; _root.newChar.info.en.text = '-6'; _root.newChar.info.pw.text = '+6'; if (_global.kills >= required) { _root.newChar.info.info.text = 'Reagan\n Some believe he was the devil!'; } else { _root.newChar.info.info.text = 'You need ' + (required - _global.kills) + '\n more kills'; } } onClipEvent (rollOut) { _root.newChar.info.hp.text = '--'; _root.newChar.info.en.text = '--'; _root.newChar.info.pw.text = '--'; _root.newChar.info.info.text = 'Roll over a Hat or Face to see\nInfo on that item'; } onClipEvent (release) { if (_global.kills >= required) { _global.hat = 19; _global.selectHat(_root.newChar.info.hp.text, _root.newChar.info.en.text, _root.newChar.info.pw.text); } } } instance of movieClip 235 { onClipEvent (load) { stop(); required = 780; if (_global.kills < required) { _alpha = 20; } else { _alpha = 100; } } onClipEvent (rollOver) { _root.newChar.info.hp.text = '+2'; _root.newChar.info.en.text = '+5'; _root.newChar.info.pw.text = '+3'; if (_global.kills >= required) { _root.newChar.info.info.text = 'Champions Helm\nFeels good, don\'t it?'; } else { _root.newChar.info.info.text = 'You need ' + (required - _global.kills) + '\n more kills'; } } onClipEvent (rollOut) { _root.newChar.info.hp.text = '--'; _root.newChar.info.en.text = '--'; _root.newChar.info.pw.text = '--'; _root.newChar.info.info.text = 'Roll over a Hat or Face to see\nInfo on that item'; } onClipEvent (release) { if (_global.kills >= required) { _global.hat = 17; _global.selectHat(_root.newChar.info.hp.text, _root.newChar.info.en.text, _root.newChar.info.pw.text); } } } instance of movieClip 237 { onClipEvent (load) { stop(); required = 550; if (_global.kills < required) { _alpha = 20; } else { _alpha = 100; } } onClipEvent (rollOver) { _root.newChar.info.hp.text = '+2'; _root.newChar.info.en.text = '--'; _root.newChar.info.pw.text = '+2'; if (_global.kills >= required) { _root.newChar.info.info.text = 'Valkyrie Helm\ndid i spell it right?'; } else { _root.newChar.info.info.text = 'You need ' + (required - _global.kills) + '\n more kills'; } } onClipEvent (rollOut) { _root.newChar.info.hp.text = '--'; _root.newChar.info.en.text = '--'; _root.newChar.info.pw.text = '--'; _root.newChar.info.info.text = 'Roll over a Hat or Face to see\nInfo on that item'; } onClipEvent (release) { if (_global.kills >= required) { _global.hat = 16; _global.selectHat(_root.newChar.info.hp.text, _root.newChar.info.en.text, _root.newChar.info.pw.text); } } } instance of movieClip 239 { onClipEvent (load) { stop(); required = 520; if (_global.kills < required) { _alpha = 20; } else { _alpha = 100; } } onClipEvent (rollOver) { _root.newChar.info.hp.text = '--'; _root.newChar.info.en.text = '+3'; _root.newChar.info.pw.text = '+2'; if (_global.kills >= required) { _root.newChar.info.info.text = 'Spike Helm\t You can poke their eyes \nout! (not really)'; } else { _root.newChar.info.info.text = 'You need ' + (required - _global.kills) + '\n more kills'; } } onClipEvent (rollOut) { _root.newChar.info.hp.text = '--'; _root.newChar.info.en.text = '--'; _root.newChar.info.pw.text = '--'; _root.newChar.info.info.text = 'Roll over a Hat or Face to see\nInfo on that item'; } onClipEvent (release) { if (_global.kills >= required) { _global.hat = 15; _global.selectHat(_root.newChar.info.hp.text, _root.newChar.info.en.text, _root.newChar.info.pw.text); } } } instance of movieClip 241 { onClipEvent (load) { stop(); required = 170; if (_global.kills < required) { _alpha = 20; } else { _alpha = 100; } } onClipEvent (rollOver) { _root.newChar.info.hp.text = '--'; _root.newChar.info.en.text = '+3'; _root.newChar.info.pw.text = '+1'; if (_global.kills >= required) { _root.newChar.info.info.text = 'Casquet\nweird name, isnt it.'; } else { _root.newChar.info.info.text = 'You need ' + (required - _global.kills) + '\n more kills'; } } onClipEvent (rollOut) { _root.newChar.info.hp.text = '--'; _root.newChar.info.en.text = '--'; _root.newChar.info.pw.text = '--'; _root.newChar.info.info.text = 'Roll over a Hat or Face to see\nInfo on that item'; } onClipEvent (release) { if (_global.kills >= required) { _global.hat = 14; _global.selectHat(_root.newChar.info.hp.text, _root.newChar.info.en.text, _root.newChar.info.pw.text); } } } instance of movieClip 243 { onClipEvent (load) { stop(); required = 165; if (_global.kills < required) { _alpha = 20; } else { _alpha = 100; } } onClipEvent (rollOver) { _root.newChar.info.hp.text = '--'; _root.newChar.info.en.text = '+2'; _root.newChar.info.pw.text = '+1'; if (_global.kills >= required) { _root.newChar.info.info.text = 'Iron Helm\nWatch the face...'; } else { _root.newChar.info.info.text = 'You need ' + (required - _global.kills) + '\n more kills'; } } onClipEvent (rollOut) { _root.newChar.info.hp.text = '--'; _root.newChar.info.en.text = '--'; _root.newChar.info.pw.text = '--'; _root.newChar.info.info.text = 'Roll over a Hat or Face to see\nInfo on that item'; } onClipEvent (release) { if (_global.kills >= required) { _global.hat = 13; _global.selectHat(_root.newChar.info.hp.text, _root.newChar.info.en.text, _root.newChar.info.pw.text); } } } instance of movieClip 247 { onClipEvent (load) { stop(); required = 395; if (_global.kills < required) { _alpha = 20; } else { _alpha = 100; } } onClipEvent (rollOver) { _root.newChar.info.hp.text = '+3'; _root.newChar.info.en.text = '+1'; _root.newChar.info.pw.text = '--'; if (_global.kills >= required) { _root.newChar.info.info.text = 'Halo\nMakes you bald though...'; } else { _root.newChar.info.info.text = 'You need ' + (required - _global.kills) + '\n more kills'; } } onClipEvent (rollOut) { _root.newChar.info.hp.text = '--'; _root.newChar.info.en.text = '--'; _root.newChar.info.pw.text = '--'; _root.newChar.info.info.text = 'Roll over a Hat or Face to see\nInfo on that item'; } onClipEvent (release) { if (_global.kills >= required) { _global.hat = 12; _global.selectHat(_root.newChar.info.hp.text, _root.newChar.info.en.text, _root.newChar.info.pw.text); } } } instance of movieClip 249 { onClipEvent (load) { stop(); required = 500; if (_global.kills < required) { _alpha = 20; } else { _alpha = 100; } } onClipEvent (rollOver) { _root.newChar.info.hp.text = '+1'; _root.newChar.info.en.text = '+2'; _root.newChar.info.pw.text = '+1'; if (_global.kills >= required) { _root.newChar.info.info.text = 'Pimpin White\nCan\'t touch this'; } else { _root.newChar.info.info.text = 'You need ' + (required - _global.kills) + '\n more kills'; } } onClipEvent (rollOut) { _root.newChar.info.hp.text = '--'; _root.newChar.info.en.text = '--'; _root.newChar.info.pw.text = '--'; _root.newChar.info.info.text = 'Roll over a Hat or Face to see\nInfo on that item'; } onClipEvent (release) { if (_global.kills >= required) { _global.hat = 11; _global.selectHat(_root.newChar.info.hp.text, _root.newChar.info.en.text, _root.newChar.info.pw.text); } } } instance of movieClip 251 { onClipEvent (load) { stop(); required = 175; if (_global.kills < required) { _alpha = 20; } else { _alpha = 100; } } onClipEvent (rollOver) { _root.newChar.info.hp.text = '--'; _root.newChar.info.en.text = '--'; _root.newChar.info.pw.text = '+2'; if (_global.kills >= required) { _root.newChar.info.info.text = 'Killer Hockey Mask\nScary?'; } else { _root.newChar.info.info.text = 'You need ' + (required - _global.kills) + '\n more kills'; } } onClipEvent (rollOut) { _root.newChar.info.hp.text = '--'; _root.newChar.info.en.text = '--'; _root.newChar.info.pw.text = '--'; _root.newChar.info.info.text = 'Roll over a Hat or Face to see\nInfo on that item'; } onClipEvent (release) { if (_global.kills >= required) { _global.hat = 10; _global.selectHat(_root.newChar.info.hp.text, _root.newChar.info.en.text, _root.newChar.info.pw.text); } } } instance of movieClip 253 { onClipEvent (load) { stop(); required = 390; if (_global.kills < required) { _alpha = 20; } else { _alpha = 100; } } onClipEvent (rollOver) { _root.newChar.info.hp.text = '+2'; _root.newChar.info.en.text = '+3'; _root.newChar.info.pw.text = '--'; if (_global.kills >= required) { _root.newChar.info.info.text = 'Daisy Head\nHope you\'re not allergic'; } else { _root.newChar.info.info.text = 'You need ' + (required - _global.kills) + '\n more kills'; } } onClipEvent (rollOut) { _root.newChar.info.hp.text = '--'; _root.newChar.info.en.text = '--'; _root.newChar.info.pw.text = '--'; _root.newChar.info.info.text = 'Roll over a Hat or Face to see\nInfo on that item'; } onClipEvent (release) { if (_global.kills >= required) { _global.hat = 9; _global.selectHat(_root.newChar.info.hp.text, _root.newChar.info.en.text, _root.newChar.info.pw.text); } } } instance of movieClip 255 { onClipEvent (load) { stop(); required = 180; if (_global.kills < required) { _alpha = 20; } else { _alpha = 100; } } onClipEvent (rollOver) { _root.newChar.info.hp.text = '--'; _root.newChar.info.en.text = '+5'; _root.newChar.info.pw.text = '+1'; if (_global.kills >= required) { _root.newChar.info.info.text = 'Long White Hair\t Sephiroth? nah,\ncant be...'; } else { _root.newChar.info.info.text = 'You need ' + (required - _global.kills) + '\n more kills'; } } onClipEvent (rollOut) { _root.newChar.info.hp.text = '--'; _root.newChar.info.en.text = '--'; _root.newChar.info.pw.text = '--'; _root.newChar.info.info.text = 'Roll over a Hat or Face to see\nInfo on that item'; } onClipEvent (release) { if (_global.kills >= required) { _global.hat = 8; _global.selectHat(_root.newChar.info.hp.text, _root.newChar.info.en.text, _root.newChar.info.pw.text); } } } instance of movieClip 257 { onClipEvent (load) { stop(); required = 170; if (_global.kills < required) { _alpha = 20; } else { _alpha = 100; } } onClipEvent (rollOver) { _root.newChar.info.hp.text = '--'; _root.newChar.info.en.text = '--'; _root.newChar.info.pw.text = '+1'; if (_global.kills >= required) { _root.newChar.info.info.text = 'Messy Red Hair'; } else { _root.newChar.info.info.text = 'You need ' + (required - _global.kills) + '\n more kills'; } } onClipEvent (rollOut) { _root.newChar.info.hp.text = '--'; _root.newChar.info.en.text = '--'; _root.newChar.info.pw.text = '--'; _root.newChar.info.info.text = 'Roll over a Hat or Face to see\nInfo on that item'; } onClipEvent (release) { if (_global.kills >= required) { _global.hat = 7; _global.selectHat(_root.newChar.info.hp.text, _root.newChar.info.en.text, _root.newChar.info.pw.text); } } } instance of movieClip 259 { onClipEvent (load) { stop(); required = 0; if (_global.kills < required) { _alpha = 20; } else { _alpha = 100; } } onClipEvent (rollOver) { _root.newChar.info.hp.text = '--'; _root.newChar.info.en.text = '--'; _root.newChar.info.pw.text = '--'; if (_global.kills >= required) { _root.newChar.info.info.text = 'Blue Hair\tHair Dye'; } else { _root.newChar.info.info.text = 'You need ' + (required - _global.kills) + '\n more kills'; } } onClipEvent (rollOut) { _root.newChar.info.hp.text = '--'; _root.newChar.info.en.text = '--'; _root.newChar.info.pw.text = '--'; _root.newChar.info.info.text = 'Roll over a Hat or Face to see\nInfo on that item'; } onClipEvent (release) { if (_global.kills >= required) { _global.hat = 6; _global.selectHat(_root.newChar.info.hp.text, _root.newChar.info.en.text, _root.newChar.info.pw.text); } } } instance of movieClip 261 { onClipEvent (load) { stop(); required = 155; if (_global.kills < required) { _alpha = 20; } else { _alpha = 100; } } onClipEvent (rollOver) { _root.newChar.info.hp.text = '--'; _root.newChar.info.en.text = '--'; _root.newChar.info.pw.text = '+1'; if (_global.kills >= required) { _root.newChar.info.info.text = 'Spikey Hair\tKiller Hair'; } else { _root.newChar.info.info.text = 'You need ' + (required - _global.kills) + '\n more kills'; } } onClipEvent (rollOut) { _root.newChar.info.hp.text = '--'; _root.newChar.info.en.text = '--'; _root.newChar.info.pw.text = '--'; _root.newChar.info.info.text = 'Roll over a Hat or Face to see\nInfo on that item'; } onClipEvent (release) { if (_global.kills >= required) { _global.hat = 5; _global.selectHat(_root.newChar.info.hp.text, _root.newChar.info.en.text, _root.newChar.info.pw.text); } } } instance of movieClip 263 { onClipEvent (load) { stop(); required = 150; if (_global.kills < required) { _alpha = 20; } else { _alpha = 100; } } onClipEvent (rollOver) { _root.newChar.info.hp.text = '+1'; _root.newChar.info.en.text = '--'; _root.newChar.info.pw.text = '--'; if (_global.kills >= required) { _root.newChar.info.info.text = 'Rose Hat\tA healthy hat'; } else { _root.newChar.info.info.text = 'You need ' + (required - _global.kills) + '\n more kills'; } } onClipEvent (rollOut) { _root.newChar.info.hp.text = '--'; _root.newChar.info.en.text = '--'; _root.newChar.info.pw.text = '--'; _root.newChar.info.info.text = 'Roll over a Hat or Face to see\nInfo on that item'; } onClipEvent (release) { if (_global.kills >= required) { _global.hat = 4; _global.selectHat(_root.newChar.info.hp.text, _root.newChar.info.en.text, _root.newChar.info.pw.text); } } } instance of movieClip 265 { onClipEvent (load) { stop(); required = 0; } onClipEvent (rollOver) { _root.newChar.info.hp.text = '--'; _root.newChar.info.en.text = '--'; _root.newChar.info.pw.text = '--'; if (_global.kills >= required) { _root.newChar.info.info.text = 'Top Hat'; } else { _root.newChar.info.info.text = 'You need ' + (_global.kills - required) + '\n more kills'; } } onClipEvent (rollOut) { _root.newChar.info.hp.text = '--'; _root.newChar.info.en.text = '--'; _root.newChar.info.pw.text = '--'; _root.newChar.info.info.text = 'Roll over a Hat or Face to see\nInfo on that item'; } onClipEvent (release) { if (_global.kills >= required) { _global.hat = 3; _global.selectHat(_root.newChar.info.hp.text, _root.newChar.info.en.text, _root.newChar.info.pw.text); } } } instance of movieClip 267 { onClipEvent (load) { stop(); required = 0; } onClipEvent (rollOver) { _root.newChar.info.hp.text = '--'; _root.newChar.info.en.text = '--'; _root.newChar.info.pw.text = '--'; if (_global.kills >= required) { _root.newChar.info.info.text = 'Grass Hat'; } else { _root.newChar.info.info.text = 'You need ' + (required - _global.kills) + '\n more kills'; } } onClipEvent (rollOut) { _root.newChar.info.hp.text = '--'; _root.newChar.info.en.text = '--'; _root.newChar.info.pw.text = '--'; _root.newChar.info.info.text = 'Roll over a Hat or Face to see\nInfo on that item'; } onClipEvent (release) { if (_global.kills >= required) { _global.hat = 2; _global.selectHat(_root.newChar.info.hp.text, _root.newChar.info.en.text, _root.newChar.info.pw.text); } } } instance aa of movieClip 269 { onClipEvent (load) { stop(); required = 0; } onClipEvent (rollOver) { _root.newChar.info.hp.text = '--'; _root.newChar.info.en.text = '--'; _root.newChar.info.pw.text = '--'; if (_global.kills >= required) { _root.newChar.info.info.text = 'Sun Hat'; } else { _root.newChar.info.info.text = 'You need ' + (_global.kills - required) + '\n more kills'; } } onClipEvent (rollOut) { _root.newChar.info.hp.text = '--'; _root.newChar.info.en.text = '--'; _root.newChar.info.pw.text = '--'; _root.newChar.info.info.text = 'Roll over a Hat or Face to see\nInfo on that item'; } onClipEvent (release) { if (_global.kills >= required) { _global.hat = 1; _global.selectHat(_root.newChar.info.hp.text, _root.newChar.info.en.text, _root.newChar.info.pw.text); } } } } movieClip 275 { } movieClip 277 { } movieClip 281 { } movieClip 282 { } movieClip 284 { } movieClip 286 { } movieClip 288 { } movieClip 290 { } movieClip 292 { } movieClip 294 { } movieClip 296 { } movieClip 298 { } movieClip 300 { } movieClip 302 { } movieClip 303 { } movieClip 304 { instance of movieClip 277 { onClipEvent (load) { stop(); required = 600; if (_global.kills < required) { _alpha = 20; } else { _alpha = 100; } } onClipEvent (rollOver) { _root.newChar.info.hp.text = '-5'; _root.newChar.info.en.text = '+30'; _root.newChar.info.pw.text = '+3'; if (_global.kills >= required) { _root.newChar.info.info.text = 'Figgie\n Don\'t Do Drugs... woof'; } else { _root.newChar.info.info.text = 'You need ' + (required - _global.kills) + '\n more kills'; } } onClipEvent (rollOut) { _root.newChar.info.hp.text = '--'; _root.newChar.info.en.text = '--'; _root.newChar.info.pw.text = '--'; _root.newChar.info.info.text = 'Roll over a Hat or Face to see\nInfo on that item'; } onClipEvent (release) { if (_global.kills >= required) { _global.Face = 13; _global.selectFace(_root.newChar.info.hp.text, _root.newChar.info.en.text, _root.newChar.info.pw.text); } } } instance of movieClip 282 { onClipEvent (load) { stop(); required = 620; if (_global.kills < required) { _alpha = 20; } else { _alpha = 100; } } onClipEvent (rollOver) { _root.newChar.info.hp.text = '+2'; _root.newChar.info.en.text = '+8'; _root.newChar.info.pw.text = '+1'; if (_global.kills >= required) { _root.newChar.info.info.text = 'I think grandpa had something like\nthis'; } else { _root.newChar.info.info.text = 'You need ' + (required - _global.kills) + '\n more kills'; } } onClipEvent (rollOut) { _root.newChar.info.hp.text = '--'; _root.newChar.info.en.text = '--'; _root.newChar.info.pw.text = '--'; _root.newChar.info.info.text = 'Roll over a Hat or Face to see\nInfo on that item'; } onClipEvent (release) { if (_global.kills >= required) { _global.Face = 12; _global.selectFace(_root.newChar.info.hp.text, _root.newChar.info.en.text, _root.newChar.info.pw.text); } } } instance of movieClip 284 { onClipEvent (load) { stop(); required = 450; if (_global.kills < required) { _alpha = 20; } else { _alpha = 100; } } onClipEvent (rollOver) { _root.newChar.info.hp.text = '--'; _root.newChar.info.en.text = '--'; _root.newChar.info.pw.text = '+3'; if (_global.kills >= required) { _root.newChar.info.info.text = 'rofl wtf is this? God im tired\nits like 1:00am over here'; } else { _root.newChar.info.info.text = 'You need ' + (required - _global.kills) + '\n more kills'; } } onClipEvent (rollOut) { _root.newChar.info.hp.text = '--'; _root.newChar.info.en.text = '--'; _root.newChar.info.pw.text = '--'; _root.newChar.info.info.text = 'Roll over a Hat or Face to see\nInfo on that item'; } onClipEvent (release) { if (_global.kills >= required) { _global.Face = 11; _global.selectFace(_root.newChar.info.hp.text, _root.newChar.info.en.text, _root.newChar.info.pw.text); } } } instance of movieClip 286 { onClipEvent (load) { stop(); required = 210; if (_global.kills < required) { _alpha = 20; } else { _alpha = 100; } } onClipEvent (rollOver) { _root.newChar.info.hp.text = '--'; _root.newChar.info.en.text = '+5'; _root.newChar.info.pw.text = '+1'; if (_global.kills >= required) { _root.newChar.info.info.text = 'Mummy\t well.. almost'; } else { _root.newChar.info.info.text = 'You need ' + (required - _global.kills) + '\n more kills'; } } onClipEvent (rollOut) { _root.newChar.info.hp.text = '--'; _root.newChar.info.en.text = '--'; _root.newChar.info.pw.text = '--'; _root.newChar.info.info.text = 'Roll over a Hat or Face to see\nInfo on that item'; } onClipEvent (release) { if (_global.kills >= required) { _global.Face = 10; _global.selectFace(_root.newChar.info.hp.text, _root.newChar.info.en.text, _root.newChar.info.pw.text); } } } instance of movieClip 288 { onClipEvent (load) { stop(); required = 220; if (_global.kills < required) { _alpha = 20; } else { _alpha = 100; } } onClipEvent (rollOver) { _root.newChar.info.hp.text = '+2'; _root.newChar.info.en.text = '+5'; _root.newChar.info.pw.text = '--'; if (_global.kills >= required) { _root.newChar.info.info.text = 'Moses\nOh shyt its mosez'; } else { _root.newChar.info.info.text = 'You need ' + (required - _global.kills) + '\n more kills'; } } onClipEvent (rollOut) { _root.newChar.info.hp.text = '--'; _root.newChar.info.en.text = '--'; _root.newChar.info.pw.text = '--'; _root.newChar.info.info.text = 'Roll over a Hat or Face to see\nInfo on that item'; } onClipEvent (release) { if (_global.kills >= required) { _global.Face = 9; _global.selectFace(_root.newChar.info.hp.text, _root.newChar.info.en.text, _root.newChar.info.pw.text); } } } instance of movieClip 290 { onClipEvent (load) { stop(); required = 0; if (_global.kills < required) { _alpha = 20; } else { _alpha = 100; } } onClipEvent (rollOver) { _root.newChar.info.hp.text = '--'; _root.newChar.info.en.text = '--'; _root.newChar.info.pw.text = '--'; if (_global.kills >= required) { _root.newChar.info.info.text = 'Mustache\t Tea Time'; } else { _root.newChar.info.info.text = 'You need ' + (required - _global.kills) + '\n more kills'; } } onClipEvent (rollOut) { _root.newChar.info.hp.text = '--'; _root.newChar.info.en.text = '--'; _root.newChar.info.pw.text = '--'; _root.newChar.info.info.text = 'Roll over a Hat or Face to see\nInfo on that item'; } onClipEvent (release) { if (_global.kills >= required) { _global.Face = 8; _global.selectFace(_root.newChar.info.hp.text, _root.newChar.info.en.text, _root.newChar.info.pw.text); } } } instance of movieClip 292 { onClipEvent (load) { stop(); required = 180; if (_global.kills < required) { _alpha = 20; } else { _alpha = 100; } } onClipEvent (rollOver) { _root.newChar.info.hp.text = '+1'; _root.newChar.info.en.text = '+1'; _root.newChar.info.pw.text = '+1'; if (_global.kills >= required) { _root.newChar.info.info.text = 'Trident'; } else { _root.newChar.info.info.text = 'You need ' + (required - _global.kills) + '\n more kills'; } } onClipEvent (rollOut) { _root.newChar.info.hp.text = '--'; _root.newChar.info.en.text = '--'; _root.newChar.info.pw.text = '--'; _root.newChar.info.info.text = 'Roll over a Hat or Face to see\nInfo on that item'; } onClipEvent (release) { if (_global.kills >= required) { _global.Face = 7; _global.selectFace(_root.newChar.info.hp.text, _root.newChar.info.en.text, _root.newChar.info.pw.text); } } } instance of movieClip 294 { onClipEvent (load) { stop(); required = 170; if (_global.kills < required) { _alpha = 20; } else { _alpha = 100; } } onClipEvent (rollOver) { _root.newChar.info.hp.text = '--'; _root.newChar.info.en.text = '+2'; _root.newChar.info.pw.text = '+1'; if (_global.kills >= required) { _root.newChar.info.info.text = 'Long Whiskas'; } else { _root.newChar.info.info.text = 'You need ' + (required - _global.kills) + '\n more kills'; } } onClipEvent (rollOut) { _root.newChar.info.hp.text = '--'; _root.newChar.info.en.text = '--'; _root.newChar.info.pw.text = '--'; _root.newChar.info.info.text = 'Roll over a Hat or Face to see\nInfo on that item'; } onClipEvent (release) { if (_global.kills >= required) { _global.Face = 6; _global.selectFace(_root.newChar.info.hp.text, _root.newChar.info.en.text, _root.newChar.info.pw.text); } } } instance of movieClip 296 { onClipEvent (load) { stop(); required = 0; if (_global.kills < required) { _alpha = 20; } else { _alpha = 100; } } onClipEvent (rollOver) { _root.newChar.info.hp.text = '--'; _root.newChar.info.en.text = '+1'; _root.newChar.info.pw.text = '--'; if (_global.kills >= required) { _root.newChar.info.info.text = 'Unshaven'; } else { _root.newChar.info.info.text = 'You need ' + (required - _global.kills) + '\n more kills'; } } onClipEvent (rollOut) { _root.newChar.info.hp.text = '--'; _root.newChar.info.en.text = '--'; _root.newChar.info.pw.text = '--'; _root.newChar.info.info.text = 'Roll over a Hat or Face to see\nInfo on that item'; } onClipEvent (release) { if (_global.kills >= required) { _global.Face = 5; _global.selectFace(_root.newChar.info.hp.text, _root.newChar.info.en.text, _root.newChar.info.pw.text); } } } instance of movieClip 298 { onClipEvent (load) { stop(); required = 60; if (_global.kills < required) { _alpha = 20; } else { _alpha = 100; } } onClipEvent (rollOver) { _root.newChar.info.hp.text = '--'; _root.newChar.info.en.text = '+5'; _root.newChar.info.pw.text = '--'; if (_global.kills >= required) { _root.newChar.info.info.text = 'Black Face\nBut the hands are still white...?'; } else { _root.newChar.info.info.text = 'You need ' + (required - _global.kills) + '\n more kills'; } } onClipEvent (rollOut) { _root.newChar.info.hp.text = '--'; _root.newChar.info.en.text = '--'; _root.newChar.info.pw.text = '--'; _root.newChar.info.info.text = 'Roll over a Hat or Face to see\nInfo on that item'; } onClipEvent (release) { if (_global.kills >= required) { _global.Face = 4; _global.selectFace(_root.newChar.info.hp.text, _root.newChar.info.en.text, _root.newChar.info.pw.text); } } } instance of movieClip 300 { onClipEvent (load) { stop(); required = 0; if (_global.kills < required) { _alpha = 20; } else { _alpha = 100; } } onClipEvent (rollOver) { _root.newChar.info.hp.text = '--'; _root.newChar.info.en.text = '--'; _root.newChar.info.pw.text = '--'; if (_global.kills >= required) { _root.newChar.info.info.text = 'Pale Face\tGet out more, or don\'t,\nI don\'t care.'; } else { _root.newChar.info.info.text = 'You need ' + (required - _global.kills) + '\n more kills'; } } onClipEvent (rollOut) { _root.newChar.info.hp.text = '--'; _root.newChar.info.en.text = '--'; _root.newChar.info.pw.text = '--'; _root.newChar.info.info.text = 'Roll over a Hat or Face to see\nInfo on that item'; } onClipEvent (release) { if (_global.kills >= required) { _global.Face = 3; _global.selectFace(_root.newChar.info.hp.text, _root.newChar.info.en.text, _root.newChar.info.pw.text); } } } instance of movieClip 302 { onClipEvent (load) { stop(); required = 0; if (_global.kills < required) { _alpha = 20; } else { _alpha = 100; } } onClipEvent (rollOver) { _root.newChar.info.hp.text = '--'; _root.newChar.info.en.text = '--'; _root.newChar.info.pw.text = '--'; if (_global.kills >= required) { _root.newChar.info.info.text = 'Manly Face No stat bonuses, \nbut you feel manly, dont you.'; } else { _root.newChar.info.info.text = 'You need ' + (required - _global.kills) + '\n more kills'; } } onClipEvent (rollOut) { _root.newChar.info.hp.text = '--'; _root.newChar.info.en.text = '--'; _root.newChar.info.pw.text = '--'; _root.newChar.info.info.text = 'Roll over a Hat or Face to see\nInfo on that item'; } onClipEvent (release) { if (_global.kills >= required) { _global.Face = 2; _global.selectFace(_root.newChar.info.hp.text, _root.newChar.info.en.text, _root.newChar.info.pw.text); } } } instance of movieClip 303 { onClipEvent (load) { stop(); required = 0; if (_global.kills < required) { _alpha = 20; } else { _alpha = 100; } } onClipEvent (rollOver) { _root.newChar.info.hp.text = '--'; _root.newChar.info.en.text = '--'; _root.newChar.info.pw.text = '--'; if (_global.kills >= required) { _root.newChar.info.info.text = 'Plain Face'; } else { _root.newChar.info.info.text = 'You need ' + (required - _global.kills) + '\n more kills'; } } onClipEvent (rollOut) { _root.newChar.info.hp.text = '--'; _root.newChar.info.en.text = '--'; _root.newChar.info.pw.text = '--'; _root.newChar.info.info.text = 'Roll over a Hat or Face to see\nInfo on that item'; } onClipEvent (release) { if (_global.kills >= required) { _global.Face = 1; _global.selectFace(_root.newChar.info.hp.text, _root.newChar.info.en.text, _root.newChar.info.pw.text); } } } } movieClip 306 { frame 1 { stop(); } instance of movieClip 210 { onClipEvent (press) { left = true; } onClipEvent (release) { left = false; } onClipEvent (releaseOutside) { left = false; } onClipEvent (enterFrame) { if (left && Key.isDown(1) && _root.newChar.HnF.Hats._x + 15 < 0) { _root.newChar.HnF.Hats._x += 15; } if (left && Key.isDown(1) && _root.newChar.HnF.Faces._x + 15 < 0) { _root.newChar.HnF.Faces._x += 15; } } } instance of movieClip 212 { onClipEvent (press) { right = true; } onClipEvent (release) { right = false; } onClipEvent (releaseOutside) { right = false; } onClipEvent (enterFrame) { if (right && Key.isDown(1) && _root.newChar.HnF.Hats._x > -590) { _root.newChar.HnF.Hats._x -= 15; } if (right && Key.isDown(1) && _root.newChar.HnF.Faces._x > -75) { _root.newChar.HnF.Faces._x -= 15; } } } frame 2 { stop(); } } movieClip 310 { } movieClip 313 { } movieClip 318 { } movieClip 321 { } movieClip 322 { frame 1 { gotoAndStop(_parent._parent.wep); } } movieClip 323 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } } movieClip 324 { frame 1 { gotoAndStop(_global.Face); } frame 2 { gotoAndStop(_global.Face); } frame 3 { gotoAndStop(_global.Face); } frame 4 { gotoAndStop(_global.Face); } frame 5 { gotoAndStop(_global.Face); } frame 6 { gotoAndStop(_global.Face); } frame 7 { gotoAndStop(_global.Face); } frame 8 { gotoAndStop(_global.Face); } frame 9 { gotoAndStop(_global.Face); } frame 10 { gotoAndStop(_global.Face); } frame 11 { gotoAndStop(_global.Face); } frame 12 { gotoAndStop(_global.Face); } frame 13 { gotoAndStop(_global.Face); } } movieClip 350 { } movieClip 352 { } movieClip 354 { } movieClip 355 { frame 1 { if (!_root.arm.guarding && !_root.arm.attack) { gotoAndPlay(1); } else { if (_root.arm.guarding && !_root.arm.turnLock) { gotoAndPlay(2); } else { if (_root.arm.attack) { gotoAndPlay(3); } else { gotoAndPlay(1); } } } } frame 2 { if (!_root.arm.guarding && !_root.arm.attack) { gotoAndStop(1); } else { if (_root.arm.guarding && !_root.arm.turnLock) { gotoAndStop(2); } else { if (_root.arm.attack) { gotoAndStop(3); } else { gotoAndStop(1); } } } } frame 3 { if (!_root.arm.guarding && !_root.arm.attack) { gotoAndStop(1); } else { if (_root.arm.guarding && !_root.arm.turnLock) { gotoAndStop(2); } else { if (_root.arm.attack) { gotoAndStop(3); } else { gotoAndStop(1); } } } } } movieClip 356 { frame 1 { gotoAndStop(_global.hat); } frame 2 { gotoAndStop(_global.hat); } frame 3 { gotoAndStop(_global.hat); } frame 4 { gotoAndStop(_global.hat); } frame 5 { gotoAndStop(_global.hat); } frame 6 { gotoAndStop(_global.hat); } frame 7 { gotoAndStop(_global.hat); } frame 8 { gotoAndStop(_global.hat); } frame 9 { gotoAndStop(_global.hat); } frame 10 { gotoAndStop(_global.hat); } frame 11 { gotoAndStop(_global.hat); } frame 12 { gotoAndStop(_global.hat); } frame 13 { gotoAndStop(_global.hat); } frame 14 { gotoAndStop(_global.hat); } frame 15 { gotoAndStop(_global.hat); } frame 16 { gotoAndStop(_global.hat); } frame 17 { gotoAndStop(_global.hat); } frame 18 { gotoAndStop(_global.hat); } frame 19 { gotoAndStop(_global.hat); } frame 20 { gotoAndStop(_global.hat); } frame 21 { gotoAndStop(_global.hat); } frame 22 { gotoAndStop(_global.hat); } frame 23 { gotoAndStop(_global.hat); } frame 24 { gotoAndStop(_global.hat); } frame 25 { gotoAndStop(_global.hat); } frame 26 { gotoAndStop(_global.hat); } } movieClip 368 { frame 1 { gotoAndStop(_global.Face); } frame 2 { gotoAndStop(_global.Face); } frame 3 { gotoAndStop(_global.Face); } frame 4 { gotoAndStop(_global.Face); } frame 5 { gotoAndStop(_global.Face); } frame 6 { gotoAndStop(_global.Face); } frame 7 { gotoAndStop(_global.Face); } frame 8 { gotoAndStop(_global.Face); } frame 9 { gotoAndStop(_global.Face); } frame 10 { gotoAndStop(_global.Face); } frame 11 { gotoAndStop(_global.Face); } frame 12 { gotoAndStop(_global.Face); } frame 13 { gotoAndStop(_global.Face); } } movieClip 370 { } movieClip 372 { } movieClip 374 { } movieClip 375 { } movieClip 376 { } movieClip 377 { instance head of movieClip 370 { } instance head of movieClip 376 { } } button 380 { on (rollOver) { _root.newChar.info.info.text = 'Hp(Health) En(Energy) Pw(Power)\nEnergy is for attacking, fyi'; } on (rollOut) { _root.newChar.info.info.text = 'Roll over a Hat or Face to see\nInfo on that item'; } } movieClip 384 { frame 1 { stop(); } instance of movieClip 187 { onClipEvent (release) { if (_root.hax) { _root.hax = false; this._alpha = 50; } else { _root.hax = true; this._alpha = 100; } } onClipEvent (enterFrame) { if (_global.hat == 26) { _global.cheatSword = 5; } else { _global.cheatSword = 1; } } } instance of movieClip 192 { onClipEvent (enterFrame) { this.totalHp.text = String(_root.newChar.HnF.headHP + _root.newChar.HnF.faceHP); this.totalEn.text = String(_root.newChar.HnF.headEN + _root.newChar.HnF.faceEN); this.totalPw.text = String(_root.newChar.HnF.headPW + _root.newChar.HnF.facePW); } } instance HnF of movieClip 306 { onClipEvent (load) { _global.hat = 1; _global.Face = 1; _root.newChar.HnF.headPW = 0; _root.newChar.HnF.headHP = 0; _root.newChar.HnF.headEN = 0; _root.newChar.HnF.facePW = 0; _root.newChar.HnF.faceHP = 0; _root.newChar.HnF.faceEN = 0; } } instance swordDisplay of movieClip 323 { onClipEvent (enterFrame) { gotoAndStop(_global.cheatSword); } } frame 15 { stop(); } instance of movieClip 192 { onClipEvent (enterFrame) { this.totalHp.text = String(_root.newChar.HnF.headHP + _root.newChar.HnF.faceHP); this.totalEn.text = String(_root.newChar.HnF.headEN + _root.newChar.HnF.faceEN); this.totalPw.text = String(_root.newChar.HnF.headPW + _root.newChar.HnF.facePW); _global.eHp = Number(this.totalHp.text); _global.eEn = Number(this.totalEn.text); _global.ePw = Number(this.totalPw.text); } } instance HnF of movieClip 306 { onClipEvent (load) { _root.newChar.HnF.headPW = 0; _root.newChar.HnF.headHP = 0; _root.newChar.HnF.headEN = 0; _root.newChar.HnF.facePW = 0; _root.newChar.HnF.faceHP = 0; _root.newChar.HnF.faceEN = 0; } } instance of movieClip 192 { onClipEvent (enterFrame) { this.totalHp.text = String(_root.newChar.HnF.headHP + _root.newChar.HnF.faceHP); this.totalEn.text = String(_root.newChar.HnF.headEN + _root.newChar.HnF.faceEN); this.totalPw.text = String(_root.newChar.HnF.headPW + _root.newChar.HnF.facePW); } } } button 385 { on (release) { getURL('http://www.newgrounds.com', 'blank'); } } frame 4 { stop(); } movieClip 391 { } button 392 { on (release) { gotoAndPlay('cancel'); } } button 393 { on (release) { _root.blackout.gotoAndStop(_root.blackout._currentframe + 1); gotoAndPlay('no'); } } button 394 { on (release) { gotoAndPlay('yes'); } } movieClip 395 { frame 10 { stop(); } frame 20 { _root.gotoAndStop(6); } frame 29 { _root.sound.setMusic('tutorial'); _root.sound.fadeIn(100, 40); _root.gotoAndStop(5); } frame 38 { _root.gotoAndStop(3); } } frame 5 { _root.blackout.play(); my_ti.sword.text = '1'; stop(); _root.score = 0; _root.gold = 0; _root.scrollLock = true; _root.distance = ''; _root.goArrow._visible = false; _global.es1 = 0; _global.es2 = 100000; _global.eb1 = 0; _global.eb2 = 60000; _global.ps1 = 0; _global.ps2 = 200000; _global.t1 = 0; _global.t2 = 150; 0; pawsd = false; battle = false; _root.onEnterFrame = function () { if (Key.isDown(80) && _root._currentframe == 5) { if (!pawsd) { pawsd = true; _root.pmenu._y = 134; } } if (!scrollLock && _global.scrollFix) { if ((_root.player.scrollStartR || _root.player.scrollStartL) && _quality == 'HIGH') { _quality = 'MEDIUM'; } } if (_root.player.scrollStartL && _root.distance > 100) { scrollLock = true; _root.distance = 100; } else { if (_root.tutorialObject.lock == 1 && _root.player.scrollStartR) { scrollLock = false; } } }; } button 396 { on (release) { _root.pmenu.confirm._y = -300; } } button 397 { on (release) { _root.saveGame(); _root.pmenu.confirm._y = -300; i = 0; while (i <= _root.control.enemies.length) { _root.control.enemies[i].removeMovieClip(); ++i; } _root.control.weak = 0; _root.control.normal = 0; _root.control.strong = 0; _root.control.enemies.splice(0, _root.control.enemies.length); _root.pmenu._y = -300; _root.pawsd = false; _root.sound.music.stop(); _root.gcontrol.clearMiscItems(); _root.gotoAndStop(3); } } movieClip 399 { } movieClip 405 { frame 1 { stop(); quality = _quality; scrollLimit = _global.scrolling; if (_global.scrollFix == false) { auto.text = 'Off'; } else { auto.text = 'On'; } } } button 408 { on (release) { _root.pmenu.gotoAndStop(2); } } button 410 { on (release) { _root.pmenu.gotoAndStop(1); } } button 411 { on (release) { _root.pawsd = false; _root.pmenu._y = -200; _root.pmenu.confirm._y = -300; _root.massUnpause(); } } button 413 { on (release) { _root.pmenu.confirm._y = 1.6; } } movieClip 425 { } movieClip 428 { frame 1 { stop(); } instance confirm of movieClip 399 { onClipEvent (load) { _y = -300; } } frame 2 { stop(); } } instance pmenu of movieClip 428 { onClipEvent (load) { this.swapDepths(10000000000000.0); } } movieClip 429 { } movieClip 431 { } movieClip 433 { frame 1 { stop(); } frame 30 { _root.notifyCheckpoint(); _y = -200; gotoAndStop(1); stop(); } } movieClip 436 { } movieClip 438 { } instance mute of movieClip 438 { onClipEvent (load) { gotoAndStop(1); this.white._alpha = 5; } onClipEvent (rollOver) { this.white._alpha = 60; } onClipEvent (rollOut) { this.white._alpha = 5; } onClipEvent (release) { if (_currentframe == 1) { _root.sound.muteToggle(true); gotoAndStop(2); } else { _root.sound.muteToggle(false); gotoAndStop(1); } } } movieClip 441 { } instance gcontrol of movieClip 441 { onClipEvent (load) { function clearMiscItems() { i = 0; while (i <= miscItems.length) { miscItems[i].removeMovieClip(); ++i; } miscItems.splice(0, miscItems.length); } var miscItems = new Array(); } onClipEvent (release) { clearMiscItems(); } } movieClip 446 { frame 1 { stop(); } frame 11 { _root.player.dead = false; _root.saveObj.loadStart(); _root.player.gotoAndStop('Stand'); _root.weapons._alpha = 100; _root.statusBar._alpha = 100; _root.death.gotoAndStop(1); _root.control.boxCount = 0; _root.control.lock = false; _root.control.restoreLevelMusic(); } } movieClip 448 { } movieClip 450 { } movieClip 452 { } movieClip 454 { } movieClip 456 { } movieClip 458 { } movieClip 460 { } movieClip 462 { } movieClip 464 { } movieClip 466 { } movieClip 468 { } movieClip 469 { instance select of movieClip 448 { onClipEvent (load) { _parent.select._x = _parent.a._x; slot = 0; } } instance l of movieClip 450 { onClipEvent (press) { _parent.select._x = _x; _parent.select.slot = 9; _parent.changeWeapon2(10); } } instance k of movieClip 452 { onClipEvent (press) { _parent.select._x = _x; _parent.select.slot = 8; _parent.changeWeapon2(9); } } instance h of movieClip 454 { onClipEvent (press) { _parent.select._x = _x; _parent.select.slot = 7; _parent.changeWeapon2(8); } } instance g of movieClip 456 { onClipEvent (press) { _parent.select._x = _x; _parent.select.slot = 6; _parent.changeWeapon2(7); } } instance f of movieClip 458 { onClipEvent (press) { _parent.select._x = _x; _parent.select.slot = 5; _parent.changeWeapon2(6); } } instance e of movieClip 460 { onClipEvent (press) { _parent.select._x = _x; _parent.select.slot = 4; _parent.changeWeapon2(5); } } instance d of movieClip 462 { onClipEvent (press) { _parent.select._x = _x; _parent.select.slot = 3; _parent.changeWeapon2(4); } } instance c of movieClip 464 { onClipEvent (press) { _parent.select._x = _x; _parent.select.slot = 2; _parent.changeWeapon2(3); } } instance b of movieClip 466 { onClipEvent (press) { _parent.select._x = _x; _parent.select.slot = 1; _parent.changeWeapon2(2); } } instance a of movieClip 468 { onClipEvent (press) { _parent.select._x = _x; _parent.select.slot = 0; if (_parent.weaponsA.length > 1) { _parent.changeWeapon2(1); } } } } instance weapons of movieClip 469 { onClipEvent (load) { function disable() { i = 0; while (i <= weapons.length) { this.weapons[i]._alpha = 0; this.weapons[i].enabled = false; ++i; } } function changeWeapon() { if (changeWep == 'right') { i = this.select.slot + 1; while (i <= weaponsT.length) { if (weaponsT[this.select.slot] == weaponsA[weaponsA.length - 1]) { this.select._x = this.a._x; this.select.slot = 0; changeWep = 'none'; if (this.select.slot < 9) { _root.arm.swordType = this.select.slot + 1; } else { _root.arm.swordType = 0; } _root.arm.sword.sword.gotoAndStop(_root.arm.swordType); i = 10; break; } else { j = 0; while (j <= weaponsA.length) { if (weaponsA[j] == weaponsT[i]) { this.select._x = weaponsT[i]._x; this.select.slot = i; changeWep = 'none'; if (this.select.slot < 9) { _root.arm.swordType = this.select.slot + 1; } else { _root.arm.swordType = 0; } _root.arm.sword.sword.gotoAndStop(_root.arm.swordType); i = 10; break; } ++j; } } ++i; } } else { if (changeWep == 'left') { i = this.select.slot - 1; while (i >= -1) { if (i < 0) { this.select._x = this.weaponsA[weaponsA.length - 1]._x; j = 0; while (j <= weaponsT.length) { if (weaponsT[j] == weaponsA[weaponsA.length - 1]) { this.select.slot = j; i = -2; changeWep = 'none'; if (this.select.slot < 9) { _root.arm.swordType = this.select.slot + 1; } else { _root.arm.swordType = 0; } _root.arm.sword.sword.gotoAndStop(_root.arm.swordType); break; } ++j; } } else { j = 10; while (j >= 0) { if (weaponsA[j] == weaponsT[i]) { this.select._x = weaponsT[i]._x; this.select.slot = i; changeWep = 'none'; if (this.select.slot < 9) { _root.arm.swordType = this.select.slot + 1; } else { _root.arm.swordType = 0; } _root.arm.sword.sword.gotoAndStop(_root.arm.swordType); i = -2; break; } --j; } } --i; } } else { if (changeWep == 'clicked') { if (this.select.slot < 9) { _root.arm.swordType = this.select.slot + 1; } else { _root.arm.swordType = 0; } _root.arm.sword.sword.gotoAndStop(target); changeWep = 'none'; } } } } function changeWeapon2(type) { if (!lock) { target = type; lock = true; changeWep = 'clicked'; _root.switchC.gotoAndPlay(2); } } function changeWeapon3(type) { if (!lock && !this[weaponsT[type - 1]._name].enabled == false && this.select.slot != type - 1) { this.select.slot = type - 1; this.select._x = this.select.slot * 33.2; target = type; lock = true; changeWep = 'clicked'; _root.switchC.gotoAndPlay(2); } } var changeWep = 'none'; var target; lock = false; var weapons = new Array(b, c, d, e, f, g, h, k, l); var weaponsT = new Array(a, b, c, d, e, f, g, h, k, l); var weaponsA = new Array(a); var myListener = new Object(); myListener.onKeyDown = function () { switch (Key.getAscii()) { case 49: changeWeapon3(1); break; case 50: changeWeapon3(2); break; case 51: changeWeapon3(3); break; case 52: changeWeapon3(4); break; case 53: changeWeapon3(5); break; case 54: changeWeapon3(6); break; case 55: changeWeapon3(7); break; case 56: changeWeapon3(8); break; case 57: changeWeapon3(9); break; case 48: changeWeapon3(10); } }; Key.addListener(myListener); disable(); } onClipEvent (enterFrame) { if (!pawsd && !lock && !_root.arm.turnLock && weaponsA.length > 1) { if (Key.isDown(69)) { lock = true; changeWep = 'right'; _root.switchC.gotoAndPlay(2); } else { if (Key.isDown(81)) { lock = true; changeWep = 'left'; _root.switchC.gotoAndPlay(2); } } } } } // unknown tag 88 length 212 movieClip 473 { } instance goArrow of movieClip 473 { onClipEvent (load) { } } movieClip 479 { frame 12 { stop(); } } movieClip 481 { frame 12 { this.removeMovieClip(); } } instance slashOutFireBox of movieClip 481 { onClipEvent (load) { if (this._name != 'slashOutFireBox') { } else { stop(); } } onClipEvent (enterFrame) { if (this._name != 'slashOutFireBox' && !_root.pawsd) { play(); this.slashOut.play(); if (_currentframe < 8) { ++_global.es1; ++_global.es2; _root.slashOutSmoke.duplicateMovieClip('slashOutSmoke' + _global.es1, _global.es2); _root['slashOutSmoke' + _global.es1]._x = this._x + (this.slashOut._x - this._width / 2) * (100 / this._xscale); _root['slashOutSmoke' + _global.es1]._y = this._y + 20; i = 0; while (i <= _root.control.enemies.length) { if (this.slashOut.hitTest(_root.control.enemies[i].hit) && !_root.control.enemies[i].dead) { ++_global.es1; ++_global.es2; _root.dCounter.duplicateMovieClip('dCounter' + _global.es1, _global.es2); _root['dCounter' + _global.es1]._x = _root.control.enemies[i]._x; _root['dCounter' + _global.es1]._y = _root.control.enemies[i]._y; _root['dCounter' + _global.es1].damageCounter = 5; _root.control.enemies[i].extraDamage = 6; _root.control.enemies[i].hp -= 5; _root.control.enemies[i].knockBack = true; _root.control.enemies[i].force = _root.control.enemies[i].dirr * (_root.arm.knockBack + 10); _root.control.enemies[i].hurt = true; _root.control.enemies[i].gotoAndStop('hurt'); } ++i; } } } else { stop(); this.slashOut.stop(); } } } movieClip 483 { } instance hurtShock of movieClip 483 { onClipEvent (load) { _alpha = 0; } onClipEvent (enterFrame) { if (_alpha > 0) { _alpha = _alpha - 10; } } } movieClip 489 { frame 6 { i = 0; while (i <= _root.gcontrol.miscItems.length) { if (_root.gcontrol.miscItems[i] == this) { _root.gcontrol.miscItems.splice(i, 1); break; } ++i; } this.removeMovieClip(); } } instance sparkStar of movieClip 489 { onClipEvent (load) { if (this._name == 'sparkStar') { stop(); } else { _root.gcontrol.miscItems.push(this); } } } movieClip 493 { frame 31 { this.removeMovieClip(); } } instance spark of movieClip 493 { onClipEvent (load) { function remove() { i = 0; while (i <= _root.gcontrol.miscItems.length) { if (_root.gcontrol.miscItems[i] == this) { _root.gcontrol.miscItems.splice(i, 1); break; } ++i; } this.removeMovieClip(); } if (this._name != 'spark') { _root.gcontrol.miscItems.push(this); movex; movey; fade = false; } } onClipEvent (enterFrame) { if (this._name != 'spark' && !_root.pawsd) { if (_y > 224) { _y = 224; movey *= -0.5; if (Math.abs(movey) < 3.5) { movey = 0; fade = true; } } _x = _x + movex; if (movex > 0) { movex -= 0.1; } else { movex += 0.1; } _y = _y - movey; movey -= 2; if (!_root.scrollLock) { if (_root.player.scrollStartR) { _x = _x - _root.player.speed; } else { if (_root.player.scrollStartL) { _x = _x + _root.player.speed; } } } if (fade && _alpha > 0) { _alpha = _alpha - 5; } else { if (fade) { remove(); } } } } } movieClip 505 { frame 1 { stop(); } frame 12 { _root.weapons.changeWeapon(); _root.weapons.lock = false; } frame 13 { stop(); } } instance switchC of movieClip 505 { onClipEvent (enterFrame) { _x = _root._xmouse; _y = _root._ymouse; } } movieClip 509 { } movieClip 511 { } movieClip 513 { } instance stat of movieClip 513 { onClipEvent (load) { function playHeart() { heart.start(); playingHeart = true; } playingHeart = false; heart = new Sound(this); heart.attachSound('heart'); } onClipEvent (enterFrame) { heart.setVolume(Math.abs(((_root.player.maxhp - _root.player.hp) / _root.player.maxhp) * 100) - 30); if (!_root.pawsd && !playingHeart && _root.player.hp > 0 && _root.player.hp < _root.player.maxhp / 3) { playHeart(); } else { if (playingHeart) { if (heart.position == heart.duration) { playingHeart = false; heart.stop(); } } } this.hbar._xscale = (_root.player.hp / _root.player.maxhp) * 100; this.ebar._xscale = (_root.arm.energy / _root.arm.maxEn) * 100; _y = _root.player._y - 60; _x = _root.player._x; } } movieClip 516 { } movieClip 519 { } movieClip 521 { } movieClip 523 { } movieClip 526 { instance of movieClip 519 { onClipEvent (load) { i = 0; while (i <= _root.control.enemies.length) { if (this.hitTest(_root.control.enemies[i].hit)) { ++_global.es1; ++_global.es2; _root.dCounter.duplicateMovieClip('dCounter' + _global.es1, _global.es2); _root['dCounter' + _global.es1]._x = _root.control.enemies[i]._x; _root['dCounter' + _global.es1]._y = _root.control.enemies[i]._y; _root['dCounter' + _global.es1].damageCounter = _root.arm.power + _root.arm.damage + 7; _root.control.enemies[i].extraDamage = 5; _root.control.enemies[i].hp -= _root.arm.power + _root.arm.damage + 7; _root.control.enemies[i].knockBack = true; _root.control.enemies[i].force = _root.control.enemies[i].dirr * (_root.arm.knockBack + 8); _root.control.enemies[i].flyup = true; _root.control.enemies[i].forceUp = -8; } ++i; } } } instance of movieClip 519 { onClipEvent (load) { i = 0; while (i <= _root.control.enemies.length) { if (this.hitTest(_root.control.enemies[i].hit)) { ++_global.es1; ++_global.es2; _root.dCounter.duplicateMovieClip('dCounter' + _global.es1, _global.es2); _root['dCounter' + _global.es1]._x = _root.control.enemies[i]._x; _root['dCounter' + _global.es1]._y = _root.control.enemies[i]._y; _root['dCounter' + _global.es1].damageCounter = _root.arm.power + _root.arm.damage + 7; _root.control.enemies[i].extraDamage = 5; _root.control.enemies[i].hp -= _root.arm.power + _root.arm.damage + 7; _root.control.enemies[i].knockBack = true; _root.control.enemies[i].force = _root.control.enemies[i].dirr * (_root.arm.knockBack + 8); _root.control.enemies[i].flyup = true; _root.control.enemies[i].forceUp = -8; } ++i; } } } instance of movieClip 519 { onClipEvent (enterFrame) { i = 0; while (i <= _root.control.enemies.length) { if (this.hitTest(_root.control.enemies[i].hit)) { ++_global.es1; ++_global.es2; _root.dCounter.duplicateMovieClip('dCounter' + _global.es1, _global.es2); _root['dCounter' + _global.es1]._x = _root.control.enemies[i]._x; _root['dCounter' + _global.es1]._y = _root.control.enemies[i]._y; _root['dCounter' + _global.es1].damageCounter = _root.arm.power + _root.arm.damage; _root.control.enemies[i].extraDamage = 5; _root.control.enemies[i].hp -= _root.arm.power + _root.arm.damage; _root.control.enemies[i].knockBack = true; _root.control.enemies[i].force = _root.control.enemies[i].dirr * (_root.arm.knockBack + 8); } ++i; } } } instance of movieClip 519 { onClipEvent (load) { i = 0; while (i <= _root.control.enemies.length) { if (this.hitTest(_root.control.enemies[i].hit)) { ++_global.es1; ++_global.es2; _root.dCounter.duplicateMovieClip('dCounter' + _global.es1, _global.es2); _root['dCounter' + _global.es1]._x = _root.control.enemies[i]._x; _root['dCounter' + _global.es1]._y = _root.control.enemies[i]._y; _root['dCounter' + _global.es1].damageCounter = _root.arm.power + _root.arm.damage; _root.control.enemies[i].extraDamage = 5; _root.control.enemies[i].hp -= _root.arm.power + _root.arm.damage; _root.control.enemies[i].knockBack = true; _root.control.enemies[i].force = _root.control.enemies[i].dirr * (_root.arm.knockBack + 8); _root.control.enemies[i].flyup = true; _root.control.enemies[i].forceUp = -8; } ++i; } } } instance of movieClip 519 { onClipEvent (load) { i = 0; while (i <= _root.control.enemies.length) { if (this.hitTest(_root.control.enemies[i].hit)) { ++_global.es1; ++_global.es2; _root.dCounter.duplicateMovieClip('dCounter' + _global.es1, _global.es2); _root['dCounter' + _global.es1]._x = _root.control.enemies[i]._x; _root['dCounter' + _global.es1]._y = _root.control.enemies[i]._y; _root['dCounter' + _global.es1].damageCounter = _root.arm.power + _root.arm.damage + 9; _root.control.enemies[i].extraDamage = 5; _root.control.enemies[i].hp -= _root.arm.power + _root.arm.damage + 9; _root.control.enemies[i].knockBack = true; _root.control.enemies[i].force = _root.control.enemies[i].dirr * (_root.arm.knockBack + 8); _root.control.enemies[i].flyup = true; _root.control.enemies[i].forceUp = -10; } ++i; } } } instance of movieClip 519 { onClipEvent (load) { i = 0; while (i <= _root.control.enemies.length) { if (this.hitTest(_root.control.enemies[i].hit)) { ++_global.es1; ++_global.es2; _root.dCounter.duplicateMovieClip('dCounter' + _global.es1, _global.es2); _root['dCounter' + _global.es1]._x = _root.control.enemies[i]._x; _root['dCounter' + _global.es1]._y = _root.control.enemies[i]._y; _root['dCounter' + _global.es1].damageCounter = _root.arm.power + _root.arm.damage + 9; _root.control.enemies[i].extraDamage = 5; _root.control.enemies[i].hp -= _root.arm.power + _root.arm.damage + 9; _root.control.enemies[i].knockBack = true; _root.control.enemies[i].force = _root.control.enemies[i].dirr * (_root.arm.knockBack + 8); _root.control.enemies[i].flyup = true; _root.control.enemies[i].forceUp = -10; } ++i; } } } instance of movieClip 519 { onClipEvent (load) { i = 0; while (i <= _root.control.enemies.length) { if (this.hitTest(_root.control.enemies[i].hit)) { ++_global.es1; ++_global.es2; _root.dCounter.duplicateMovieClip('dCounter' + _global.es1, _global.es2); _root['dCounter' + _global.es1]._x = _root.control.enemies[i]._x; _root['dCounter' + _global.es1]._y = _root.control.enemies[i]._y; _root['dCounter' + _global.es1].damageCounter = _root.arm.power + _root.arm.damage + 9; _root.control.enemies[i].extraDamage = 5; _root.control.enemies[i].hp -= _root.arm.power + _root.arm.damage + 9; _root.control.enemies[i].knockBack = true; _root.control.enemies[i].force = _root.control.enemies[i].dirr * (_root.arm.knockBack + 8); _root.control.enemies[i].flyup = true; _root.control.enemies[i].forceUp = -10; } ++i; } } } instance of movieClip 519 { onClipEvent (load) { i = 0; while (i <= _root.control.enemies.length) { if (this.hitTest(_root.control.enemies[i].hit)) { ++_global.es1; ++_global.es2; _root.dCounter.duplicateMovieClip('dCounter' + _global.es1, _global.es2); _root['dCounter' + _global.es1]._x = _root.control.enemies[i]._x; _root['dCounter' + _global.es1]._y = _root.control.enemies[i]._y; _root['dCounter' + _global.es1].damageCounter = _root.arm.power + _root.arm.damage + 9; _root.control.enemies[i].extraDamage = 5; _root.control.enemies[i].hp -= _root.arm.power + _root.arm.damage + 9; _root.control.enemies[i].knockBack = true; _root.control.enemies[i].force = _root.control.enemies[i].dirr * (_root.arm.knockBack + 8); _root.control.enemies[i].flyup = true; _root.control.enemies[i].forceUp = -10; } ++i; } } } instance of movieClip 519 { onClipEvent (enterFrame) { i = 0; while (i <= _root.control.enemies.length) { if (this.hitTest(_root.control.enemies[i].hit)) { ++_global.es1; ++_global.es2; _root.dCounter.duplicateMovieClip('dCounter' + _global.es1, _global.es2); _root['dCounter' + _global.es1]._x = _root.control.enemies[i]._x; _root['dCounter' + _global.es1]._y = _root.control.enemies[i]._y; _root['dCounter' + _global.es1].damageCounter = _root.arm.power + _root.arm.damage; _root.control.enemies[i].extraDamage = 5; _root.control.enemies[i].hp -= _root.arm.power + _root.arm.damage; _root.control.enemies[i].knockBack = true; _root.control.enemies[i].force = _root.control.enemies[i].dirr * (_root.arm.knockBack + 8); } ++i; } } } instance of movieClip 519 { onClipEvent (enterFrame) { i = 0; while (i <= _root.control.enemies.length) { if (this.hitTest(_root.control.enemies[i].hit)) { ++_global.es1; ++_global.es2; _root.dCounter.duplicateMovieClip('dCounter' + _global.es1, _global.es2); _root['dCounter' + _global.es1]._x = _root.control.enemies[i]._x; _root['dCounter' + _global.es1]._y = _root.control.enemies[i]._y; _root['dCounter' + _global.es1].damageCounter = _root.arm.power + _root.arm.damage; _root.control.enemies[i].extraDamage = 5; _root.control.enemies[i].hp -= _root.arm.power + _root.arm.damage; _root.control.enemies[i].knockBack = true; _root.control.enemies[i].hitA(); _root.control.enemies[i].force = _root.control.enemies[i].dirr * (_root.arm.knockBack + 8); } ++i; } } } instance of movieClip 519 { onClipEvent (enterFrame) { i = 0; while (i <= _root.control.enemies.length) { if (this.hitTest(_root.control.enemies[i].hit)) { ++_global.es1; ++_global.es2; _root.dCounter.duplicateMovieClip('dCounter' + _global.es1, _global.es2); _root['dCounter' + _global.es1]._x = _root.control.enemies[i]._x; _root['dCounter' + _global.es1]._y = _root.control.enemies[i]._y; _root['dCounter' + _global.es1].damageCounter = _root.arm.power + _root.arm.damage; _root.control.enemies[i].extraDamage = 5; _root.control.enemies[i].hp -= _root.arm.power + _root.arm.damage; _root.control.enemies[i].knockBack = true; _root.control.enemies[i].force = _root.control.enemies[i].dirr * (_root.arm.knockBack + 8); } ++i; } } } instance of movieClip 519 { onClipEvent (enterFrame) { i = 0; while (i <= _root.control.enemies.length) { if (this.hitTest(_root.control.enemies[i].hit)) { ++_global.es1; ++_global.es2; _root.dCounter.duplicateMovieClip('dCounter' + _global.es1, _global.es2); _root['dCounter' + _global.es1]._x = _root.control.enemies[i]._x; _root['dCounter' + _global.es1]._y = _root.control.enemies[i]._y; _root['dCounter' + _global.es1].damageCounter = _root.arm.power + _root.arm.damage; _root.control.enemies[i].extraDamage = 5; _root.control.enemies[i].hp -= _root.arm.power + _root.arm.damage; _root.control.enemies[i].knockBack = true; _root.control.enemies[i].force = _root.control.enemies[i].dirr * (_root.arm.knockBack + 8); } ++i; } } } instance of movieClip 519 { onClipEvent (enterFrame) { i = 0; while (i <= _root.control.enemies.length) { if (this.hitTest(_root.control.enemies[i].hit)) { ++_global.es1; ++_global.es2; _root.dCounter.duplicateMovieClip('dCounter' + _global.es1, _global.es2); _root['dCounter' + _global.es1]._x = _root.control.enemies[i]._x; _root['dCounter' + _global.es1]._y = _root.control.enemies[i]._y; _root['dCounter' + _global.es1].damageCounter = _root.arm.power + _root.arm.damage; _root.control.enemies[i].extraDamage = 5; _root.control.enemies[i].hp -= _root.arm.power + _root.arm.damage; _root.control.enemies[i].knockBack = true; _root.control.enemies[i].force = _root.control.enemies[i].dirr * (_root.arm.knockBack + 8); } ++i; } } } instance of movieClip 519 { onClipEvent (enterFrame) { i = 0; while (i <= _root.control.enemies.length) { if (this.hitTest(_root.control.enemies[i].hit)) { ++_global.es1; ++_global.es2; _root.dCounter.duplicateMovieClip('dCounter' + _global.es1, _global.es2); _root['dCounter' + _global.es1]._x = _root.control.enemies[i]._x; _root['dCounter' + _global.es1]._y = _root.control.enemies[i]._y; _root['dCounter' + _global.es1].damageCounter = _root.arm.power + _root.arm.damage; _root.control.enemies[i].extraDamage = 5; _root.control.enemies[i].hp -= _root.arm.power + _root.arm.damage; _root.control.enemies[i].knockBack = true; _root.control.enemies[i].force = _root.control.enemies[i].dirr * (_root.arm.knockBack + 8); } ++i; } } } instance of movieClip 519 { onClipEvent (enterFrame) { i = 0; while (i <= _root.control.enemies.length) { if (this.hitTest(_root.control.enemies[i].hit)) { ++_global.es1; ++_global.es2; _root.dCounter.duplicateMovieClip('dCounter' + _global.es1, _global.es2); _root['dCounter' + _global.es1]._x = _root.control.enemies[i]._x; _root['dCounter' + _global.es1]._y = _root.control.enemies[i]._y; _root['dCounter' + _global.es1].damageCounter = _root.arm.power + _root.arm.damage; _root.control.enemies[i].extraDamage = 5; _root.control.enemies[i].hp -= _root.arm.power + _root.arm.damage; _root.control.enemies[i].knockBack = true; _root.control.enemies[i].force = _root.control.enemies[i].dirr * (_root.arm.knockBack + 8); } ++i; } } } instance of movieClip 519 { onClipEvent (enterFrame) { i = 0; while (i <= _root.control.enemies.length) { if (this.hitTest(_root.control.enemies[i].hit)) { ++_global.es1; ++_global.es2; _root.dCounter.duplicateMovieClip('dCounter' + _global.es1, _global.es2); _root['dCounter' + _global.es1]._x = _root.control.enemies[i]._x; _root['dCounter' + _global.es1]._y = _root.control.enemies[i]._y; _root['dCounter' + _global.es1].damageCounter = _root.arm.power + _root.arm.damage; _root.control.enemies[i].extraDamage = 5; _root.control.enemies[i].hp -= _root.arm.power + _root.arm.damage; _root.control.enemies[i].knockBack = true; _root.control.enemies[i].force = _root.control.enemies[i].dirr * (_root.arm.knockBack + 8); } ++i; } } } frame 25 { this.removeMovieClip(); } } instance slashOutUlt of movieClip 526 { onClipEvent (load) { if (this._name != 'slashOutUlt') { } else { stop(); } } onClipEvent (enterFrame) { if (this._name != 'slashOutUlt' && !_root.pawsd) { play(); if (!_root.scrollLock) { if (_root.player.scrollStartR) { _x = _x - _root.player.speed; } else { if (_root.player.scrollStartL) { _x = _x + _root.player.speed; } } } } else { stop(); } } } movieClip 529 { } movieClip 535 { } movieClip 538 { frame 48 { this.removeMovieClip(); } } instance slashOutDark of movieClip 538 { onClipEvent (load) { if (this._name != 'slashOutDark') { var myDropFilter = new flash.filters.GlowFilter(51, 1, 27, 27, 3, 1, false, false); var myFilters = this.filters; myFilters.push(myDropFilter); this.filters = myFilters; } else { stop(); } } onClipEvent (enterFrame) { if (this._name != 'slashOutDark' && !_root.pawsd) { play(); this.slashOut.play(); if (_currentframe < 31) { i = 0; while (i <= _root.control.enemies.length) { if (this.slashOut.hitTest(_root.control.enemies[i].hit) && !_root.control.enemies[i].dead) { ++_global.es1; ++_global.es2; _root.dCounter.duplicateMovieClip('dCounter' + _global.es1, _global.es2); _root['dCounter' + _global.es1]._x = _root.control.enemies[i]._x; _root['dCounter' + _global.es1]._y = _root.control.enemies[i]._y; _root['dCounter' + _global.es1].damageCounter = _root.arm.power + _root.arm.damage - 5; _root.control.enemies[i].extraDamage = 5; _root.control.enemies[i].hp -= _root.arm.power + _root.arm.damage - 5; _root.control.enemies[i].knockBack = true; _root.control.enemies[i].force = _root.control.enemies[i].dirr * (_root.arm.knockBack + 3); _root.control.enemies[i].hurt = true; if (_root.control.enemies[i].isBoss()) { if (!_root.control.enemies[i].isBusy()) { _root.control.enemies[i].gotoAndStop('hurt'); } } else { _root.control.enemies[i].gotoAndStop('hurt'); } } ++i; } } } else { stop(); this.slashOut.stop(); } } } movieClip 541 { } movieClip 573 { } movieClip 575 { instance of movieClip 573 { onClipEvent (enterFrame) { if (_root.pawsd) { stop(); } else { play(); } } } frame 34 { this.removeMovieClip(); } } instance slashOutLight of movieClip 575 { onClipEvent (load) { if (this._name != 'slashOutLight') { } else { stop(); } } onClipEvent (enterFrame) { if (this._name != 'slashOutLight' && !_root.pawsd) { play(); if (_currentframe < 30) { i = 0; while (i <= _root.control.enemies.length) { if (this.slashOut.hitTest(_root.control.enemies[i].hit) && !_root.control.enemies[i].dead) { ++_global.es1; ++_global.es2; _root.dCounter.duplicateMovieClip('dCounter' + _global.es1, _global.es2); _root['dCounter' + _global.es1]._x = _root.control.enemies[i]._x; _root['dCounter' + _global.es1]._y = _root.control.enemies[i]._y; _root['dCounter' + _global.es1].damageCounter = _root.arm.power + _root.arm.damage - 4; _root.control.enemies[i].dtype = 2; _root.control.enemies[i].extraDamage = 5; _root.control.enemies[i].hp -= _root.arm.power + _root.arm.damage - 4; _root.control.enemies[i].knockBack = true; _root.control.enemies[i].force = _root.control.enemies[i].dirr * _root.arm.knockBack; _root.control.enemies[i].hurt = true; if (!_root.control.enemies[i].isBoss()) { _root.control.enemies[i].gotoAndStop('hurt'); } } ++i; } } } else { stop(); } } } movieClip 580 { frame 24 { this.removeMovieClip(); } } instance slashOutSmoke of movieClip 580 { onClipEvent (load) { if (this._name != 'slashOutSmoke') { } else { stop(); } } onClipEvent (enterFrame) { if (this._name != 'slashOutSmoke') { if (!_root.scrollLock) { if (_root.player.scrollStartR) { _x = _x - _root.player.speed; } else { if (_root.player.scrollStartL) { _x = _x + _root.player.speed; } } } } } } movieClip 582 { } instance my_ti of movieClip 582 { onClipEvent (enterFrame) { } } instance slashOutFire of movieClip 481 { onClipEvent (load) { if (this._name != 'slashOutFire') { } else { stop(); } } onClipEvent (enterFrame) { if (this._name != 'slashOutFire' && !_root.pawsd) { play(); this.slashOut.play(); if (_currentframe < 8) { ++_global.es1; ++_global.es2; _root.slashOutSmoke.duplicateMovieClip('slashOutSmoke' + _global.es1, _global.es2); _root['slashOutSmoke' + _global.es1]._x = this._x + (this.slashOut._x - this._width / 2) * (100 / this._xscale); _root['slashOutSmoke' + _global.es1]._y = this._y + 20; i = 0; while (i <= _root.control.enemies.length) { if (this.slashOut.hitTest(_root.control.enemies[i].hit) && !_root.control.enemies[i].dead) { ++_global.es1; ++_global.es2; _root.dCounter.duplicateMovieClip('dCounter' + _global.es1, _global.es2); _root['dCounter' + _global.es1]._x = _root.control.enemies[i]._x; _root['dCounter' + _global.es1]._y = _root.control.enemies[i]._y; _root['dCounter' + _global.es1].damageCounter = _root.arm.power + _root.arm.damage; _root.control.enemies[i].extraDamage = 6; _root.control.enemies[i].hp -= _root.arm.power + _root.arm.damage; _root.control.enemies[i].knockBack = true; _root.control.enemies[i].force = _root.control.enemies[i].dirr * (_root.arm.knockBack + 10); _root.control.enemies[i].hurt = true; if (_root.control.enemies[i].isBoss()) { if (!_root.control.enemies[i].isBusy()) { _root.control.enemies[i].gotoAndStop('hurt'); } } else { _root.control.enemies[i].gotoAndStop('hurt'); } } ++i; } } } else { stop(); this.slashOut.stop(); } } } movieClip 584 { } movieClip 585 { frame 9 { this.removeMovieClip(); } } instance slashOut of movieClip 585 { onClipEvent (load) { if (this._name != 'slashOut') { } else { stop(); } } onClipEvent (enterFrame) { if (this._name != 'slashOut' && !_root.pawsd) { play(); if (_currentframe < 6) { i = 0; while (i <= _root.control.enemies.length) { if (this.slashOut.hitTest(_root.control.enemies[i].hit) && !_root.control.enemies[i].dead) { ++_global.es1; ++_global.es2; _root.dCounter.duplicateMovieClip('dCounter' + _global.es1, _global.es2); _root['dCounter' + _global.es1]._x = _root.control.enemies[i]._x; _root['dCounter' + _global.es1]._y = _root.control.enemies[i]._y; _root['dCounter' + _global.es1].damageCounter = _root.arm.power + _root.arm.damage; _root.control.enemies[i].extraDamage = 5; _root.control.enemies[i].hp -= _root.arm.power + _root.arm.damage; _root.control.enemies[i].knockBack = true; _root.control.enemies[i].force = _root.control.enemies[i].dirr * (_root.arm.knockBack + 8); _root.control.enemies[i].hurt = true; if (!_root.control.enemies[i].isBoss()) { _root.control.enemies[i].gotoAndStop('hurt'); } } ++i; } } } else { stop(); } } } movieClip 587 { } instance of movieClip 587 { onClipEvent (press) { myColor = new Color(this); myColor.setRGB(16711680); } } movieClip 590 { frame 2 { _root.createSpark(3, _root.player._x + 30 * _root.player._xscale / 100, _root.player._y - 17); } frame 3 { stop(); } } movieClip 593 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 621 { } movieClip 636 { } movieClip 639 { } movieClip 645 { } movieClip 647 { frame 25 { gotoAndPlay(2); } } movieClip 654 { } movieClip 656 { } movieClip 659 { frame 1 { if (_root.arm.swordType > 0) { gotoAndStop(_root.arm.swordType); } else { gotoAndStop(10); } } frame 1 { if (_global.hat == 26) { katana.gotoAndStop(2); _root.arm.knockBack = 8; _root.arm.power = 15 + _global.ePw; _root.arm.damagetype = 'normal'; } else { katana.gotoAndStop(1); _root.arm.knockBack = 1; _root.arm.power = 1 + _global.ePw; _root.arm.damagetype = 'normal'; } stop(); } instance spark of movieClip 590 { onClipEvent (load) { gotoAndStop(3); } } frame 2 { if (_root.arm.swordType > 0) { gotoAndStop(_root.arm.swordType); } else { gotoAndStop(10); } } frame 2 { _root.arm.knockBack = 1; _root.arm.power = 2 + _global.ePw; _root.arm.damagetype = 'normal'; stop(); } frame 3 { if (_root.arm.swordType > 0) { gotoAndStop(_root.arm.swordType); } else { gotoAndStop(10); } } frame 3 { _root.arm.knockBack = 2; _root.arm.power = 2 + _global.ePw; _root.arm.damagetype = 'normal'; stop(); } frame 4 { if (_root.arm.swordType > 0) { gotoAndStop(_root.arm.swordType); } else { gotoAndStop(10); } } frame 4 { _root.arm.knockBack = 4; _root.arm.power = 3 + _global.ePw; _root.arm.damagetype = 'normal'; stop(); } frame 5 { if (_root.arm.swordType > 0) { gotoAndStop(_root.arm.swordType); } else { gotoAndStop(10); } } frame 5 { _root.arm.knockBack = 2; _root.arm.power = 5 + _global.ePw; _root.arm.damagetype = 'lightning'; stop(); } frame 6 { if (_root.arm.swordType > 0) { gotoAndStop(_root.arm.swordType); } else { gotoAndStop(10); } } frame 6 { _root.arm.knockBack = 3; _root.arm.power = 5 + _global.ePw; _root.arm.damagetype = 'fire'; stop(); } frame 7 { if (_root.arm.swordType > 0) { gotoAndStop(_root.arm.swordType); } else { gotoAndStop(10); } } frame 7 { _root.arm.knockBack = 1; _root.arm.power = 7 + _global.ePw; _root.arm.damagetype = 'evil'; stop(); } frame 8 { if (_root.arm.swordType > 0) { gotoAndStop(_root.arm.swordType); } else { gotoAndStop(10); } } frame 8 { _root.arm.knockBack = 5; _root.arm.power = 10 + _global.ePw; _root.arm.damagetype = 'normal'; stop(); } frame 9 { if (_root.arm.swordType > 0) { gotoAndStop(_root.arm.swordType); } else { gotoAndStop(10); } } frame 9 { _root.arm.knockBack = 1; _root.arm.power = 14 + _global.ePw; _root.arm.damagetype = 'evil'; stop(); } frame 10 { _root.arm.knockBack = -5; _root.arm.power = 16 + _global.ePw; _root.arm.damagetype = 'lightning'; stop(); } } movieClip 664 { frame 1 { gotoAndStop(_root.arm.slashT); } frame 2 { gotoAndStop(_root.arm.slashT); } frame 3 { gotoAndStop(_root.arm.slashT); } frame 4 { gotoAndStop(_root.arm.slashT); } } movieClip 668 { frame 1 { gotoAndStop(_root.arm.slashT); } frame 2 { gotoAndStop(_root.arm.slashT); } frame 3 { gotoAndStop(_root.arm.slashT); } frame 4 { gotoAndStop(_root.arm.slashT); } } movieClip 671 { } movieClip 674 { frame 1 { gotoAndStop(_root.arm.slashT); } frame 2 { gotoAndStop(_root.arm.slashT); } frame 3 { gotoAndStop(_root.arm.slashT); } frame 4 { gotoAndStop(_root.arm.slashT); } } movieClip 677 { frame 1 { gotoAndStop(_root.arm.slashT); } frame 2 { gotoAndStop(_root.arm.slashT); } frame 3 { gotoAndStop(_root.arm.slashT); } frame 4 { gotoAndStop(_root.arm.slashT); } } movieClip 678 { frame 1 { stop(); } instance sword of movieClip 659 { onClipEvent (load) { } } frame 5 { _root.arm.damage = 1; } frame 6 { if (_parent.attack) { if (_root.player._xscale == 100 && _root._xmouse < _parent._x - 15 || _root.player._xscale == -100 && _root._xmouse > _parent._x + 15) { _parent.energy -= 5; gotoAndPlay(15); } } } frame 6 { _root.arm.damage = 1; } frame 8 { if (_parent.attack) { if (_root.player._xscale == 100 && _root._xmouse > _parent._x + 10 || _root.player._xscale == -100 && _root._xmouse < _parent._x - 15) { gotoAndPlay(24); _parent.energy -= 5; } } } frame 13 { gotoAndStop(1); _parent.turnLock = false; _parent.attackLock = false; } frame 15 { _root.arm.damage = 2; } frame 16 { _root.arm.damage = 2; } frame 17 { _root.arm.damage = 2; } frame 23 { gotoAndStop(1); _parent.turnLock = false; _parent.attackLock = false; } frame 27 { _root.arm.damage = 1; } frame 28 { _root.arm.damage = 1; } frame 29 { _root.arm.damage = 1; } frame 31 { if (_parent.attack) { if (_root.player._xscale == 100 && _root._xmouse > _parent._x + 20 && _root._ymouse < _parent._y || _root.player._xscale == -100 && _root._xmouse < _parent._x - 20 && _root._ymouse < _parent._y) { _parent.energy -= 10; gotoAndPlay(39); } else { if (_root.player._xscale == 100 && _root._xmouse < _parent._x - 15 || _root.player._xscale == -100 && _root._xmouse > _parent._x + 15) { _parent.energy -= 5; gotoAndPlay(58); } } } } frame 38 { gotoAndStop(1); _parent.turnLock = false; _parent.attackLock = false; } frame 45 { _root.arm.damage = 1; } frame 46 { _root.arm.damage = 1; } frame 47 { _root.arm.damage = 2; _root.arm.up = true; } frame 48 { _root.arm.damage = 1; _root.arm.up = true; } frame 49 { _root.arm.up = false; } instance of movieClip 664 { } frame 57 { gotoAndStop(1); _parent.turnLock = false; _parent.attackLock = false; } frame 59 { _root.arm.damage = 2; _root.arm.up = false; } frame 60 { _root.arm.damage = 1; } frame 61 { _root.arm.damage = 1; } frame 65 { if (_parent.attack) { if (_root.player._xscale == 100 && _root._xmouse > _parent._x + 10 || _root.player._xscale == -100 && _root._xmouse < _parent._x - 15) { _parent.energy -= 5; gotoAndPlay(73); } } } frame 70 { gotoAndStop(1); _parent.turnLock = false; _parent.attackLock = false; } frame 73 { _root.arm.damage = 1; } frame 74 { if (_root.player.dash && _parent.attack && !_root.player.jump && !(_root._currentframe == 21 && _root.reaper.dead)) { ++_global.es1; ++_global.es2; if ((_root.arm.swordType == 8 || _root.arm.swordType == 9 || _global.cheatSword == 5) && _parent.energy - 35 >= 0) { _parent.energy -= 40; _root.slashOutUlt.duplicateMovieClip('slashOutUlt' + _global.es1, _global.es2); _root['slashOutUlt' + _global.es1]._x = _root.player._x + 95 * (100 / _root.player._xscale); _root['slashOutUlt' + _global.es1]._y = _root.player._y + 5; _root['slashOutUlt' + _global.es1]._xscale = _root.player._xscale; } else { if (_root.arm.swordType == 7 && _parent.energy - 30 >= 0) { _parent.energy -= 35; _root.slashOutDark.duplicateMovieClip('slashOutDark' + _global.es1, _global.es2); _root['slashOutDark' + _global.es1]._x = _root.player._x + 80 * (100 / _root.player._xscale); _root['slashOutDark' + _global.es1]._y = _root.player._y; _root['slashOutDark' + _global.es1]._xscale = _root.player._xscale; } else { if (_root.arm.swordType == 6 && _parent.energy - 25 >= 0) { _parent.energy -= 30; _root.slashOutFire.duplicateMovieClip('slashOutFire' + _global.es1, _global.es2); _root['slashOutFire' + _global.es1]._x = _root.player._x + 30 * (100 / _root.player._xscale); _root['slashOutFire' + _global.es1]._y = _root.player._y; _root['slashOutFire' + _global.es1]._xscale = _root.player._xscale; } else { if (_root.arm.swordType == 5 && _parent.energy - 20 >= 0) { _parent.energy -= 25; _root.slashOutLight.duplicateMovieClip('slashOutLight' + _global.es1, _global.es2); _root['slashOutLight' + _global.es1]._x = _root.player._x + 90 * (100 / _root.player._xscale); _root['slashOutLight' + _global.es1]._y = _root.player._y - 10; _root['slashOutLight' + _global.es1]._xscale = _root.player._xscale; } else { if (_parent.energy - 10 >= 0) { _parent.energy -= 20; _root.slashOut.duplicateMovieClip('slashOut' + _global.es1, _global.es2); _root['slashOut' + _global.es1]._x = _root.player._x + 120 * (100 / _root.player._xscale); _root['slashOut' + _global.es1]._y = _root.player._y + 10; _root['slashOut' + _global.es1]._xscale = _root.player._xscale; } } } } } } } frame 74 { _root.arm.damage = 1; _root.arm.up = true; } frame 75 { if (_parent.attack) { if (_root.player._xscale == 100 && _root._xmouse < _parent._x - 15 || _root.player._xscale == -100 && _root._xmouse > _parent._x + 15) { _parent.energy -= 5; gotoAndPlay(85); } } } frame 75 { _root.arm.damage = 1; _root.arm.up = false; } frame 76 { _root.arm.damage = 1; } frame 77 { if (_parent.attack) { if (_root.player._xscale == 100 && _root._xmouse > _parent._x + 10 || _root.player._xscale == -100 && _root._xmouse < _parent._x - 15) { _parent.energy -= 5; gotoAndPlay(99); } } } frame 77 { _root.arm.damage = 1; } frame 84 { gotoAndStop(1); _parent.turnLock = false; _parent.attackLock = false; } frame 85 { _root.arm.damage = 2; } frame 86 { _root.arm.damage = 2; } frame 87 { _root.arm.damage = 2; } frame 88 { _root.arm.damage = 1; } frame 89 { _root.arm.damage = 1; } frame 98 { gotoAndStop(1); _parent.turnLock = false; _parent.attackLock = false; } frame 102 { if (_parent.attack) { if (_root.player._xscale == 100 && _root._xmouse < _parent._x - 15 || _root.player._xscale == -100 && _root._xmouse > _parent._x + 15) { _parent.energy -= 5; gotoAndPlay(58); } } } frame 102 { _root.arm.damage = 1; } frame 103 { _root.arm.damage = 1; } frame 104 { _root.arm.damage = 1; } frame 106 { if (_parent.attack) { if (_root.player._xscale == 100 && _root._xmouse > _parent._x + 10 || _root.player._xscale == -100 && _root._xmouse < _parent._x - 15) { gotoAndPlay(115); } } } frame 113 { gotoAndStop(1); _parent.turnLock = false; _parent.attackLock = false; } frame 118 { if (_parent.attack) { if (_root.player._xscale == 100 && _root._xmouse > _parent._x + 10 || _root.player._xscale == -100 && _root._xmouse < _parent._x - 15) { _parent.energy -= 5; gotoAndPlay(73); } } } frame 122 { gotoAndStop(1); _parent.turnLock = false; _parent.attackLock = false; } frame 126 { _root.player.guard._y = -8.1; } frame 127 { if (_parent.attack) { gotoAndPlay(_currentframe - 1); } else { play(); } } frame 128 { _root.player.guard._y = -350; } frame 129 { gotoAndStop(1); _parent.turnLock = false; _parent.attackLock = false; } } movieClip 679 { frame 1 { stop(); } instance sword of movieClip 678 { onClipEvent (load) { } } } instance arm of movieClip 679 { onClipEvent (load) { function guardBreak() { guardBroken = true; attack = false; attackLock = false; turnLock = false; this.sword.gotoAndStop(1); _root.player.guard._y = -350; } function changeSword(num) { swordType = num; } function pauseSwing() { this.sword.stop(); } function unpauseSwing() { this.sword.play(); } swordType = _root.swordEndingSelection; energy = 100 + _global.eEn; maxEn = 100 + _global.eEn; slashT = 0; knockBack = 1; power = 1; damage = 1; damagetype = 'normal'; up = false; guarding = false; guardBroken = false; noSlash = false; } onClipEvent (enterFrame) { if (!attack) { guarding = false; } if (_root.pawsd && !_root.player.dead) { pauseSwing(); } else { if (!_root.pawsd && !_root.player.dead) { if (energy < 0) { energy = 0; } if ((!turnLock || this.sword._currentframe > 124) && energy < maxEn) { energy += 5; if (energy > maxEn) { energy = maxEn; } } else { if (turnLock && energy <= 0) { energy = 0; turnLock = false; attack = false; attackLock = false; } } _x = _root.player._x; _y = _root.player._y; distance = Math.sqrt((_root._xmouse - _x) * (_root._xmouse - _x) + (_root._ymouse - _y) * (_root._ymouse - _y)); if (distance > 25) { this.sword._y = 25; } else { this.sword._y = distance; } if (Key.isDown(70) || Key.isDown(16)) { if (Key.isDown(1)) { noSlash = true; } else { noSlash = false; } if (!guardBroken && !_root.player.flying) { guarding = true; var attack = true; var attackLock = true; var turnLock = false; _rotation = 120 * (100 / _root.player._xscale); this.sword.gotoAndPlay(126); } } else { if (!Key.isDown(1) || Key.isDown(1) && noSlash) { guardBroken = false; var attack = false; noSlash = false; } } if (!_root.arm.turnLock) { if (_root.player.dash) { _xscale = _root.player._xscale; _rotation = 90 * (100 / _root.player._xscale); } else { if (guarding) { _rotation = 120 * (100 / _root.player._xscale); _yscale = 100; if (_root._xmouse >= _x) { _xscale = 100; } else { _xscale = -100; } } else { _rotation = Math.round(-Math.atan2(_x - _root._xmouse, _y - _root._ymouse) / 0.0174532925199433); _yscale = 100; if (_root._xmouse >= _x) { _xscale = 100; } else { _xscale = -100; } } } } } else { if (_root.player.dead) { _x = 1000; _y = 1000; } } } } onClipEvent (mouseDown) { if (!_root.pawsd && energy - 10 >= 0 && _root.weapons.changeWep == 'none' && !_root.player.dead && !guarding && !_root.player.flying) { if (_root.arm.swordType == 1 && _global.hat != 26 || _root.arm.swordType == 4 || _root.arm.swordType == 5) { slashT = 1; } else { if (_root.arm.swordType == 6) { slashT = 2; } else { if (_root.arm.swordType == 2 || _root.arm.swordType == 3 || _root.arm.swordType == 0) { slashT = 3; } else { if (_root.arm.swordType == 7 || _root.arm.swordType == 8 || _root.arm.swordType == 9 || _global.hat == 26) { slashT = 4; } } } } var attack = true; var turnLock = true; if (!attackLock) { if (_rotation < 160 && _rotation > 90 || _rotation > -160 && _rotation < -90) { this.sword.gotoAndPlay('overslash'); energy -= 10; } else { if (_rotation >= 0 && _rotation <= 90 || _rotation <= 0 && _rotation >= -90) { this.sword.gotoAndPlay('uppercut'); energy -= 10; } else { this.sword.gotoAndPlay('block'); turnLock = false; guarding = true; } } } var attackLock = true; } } } movieClip 681 { } movieClip 683 { } movieClip 685 { frame 1 { gotoAndStop(_root.player.body); } frame 2 { gotoAndStop(_root.player.body); } } movieClip 686 { instance head of movieClip 376 { } } movieClip 688 { } movieClip 690 { } movieClip 691 { } movieClip 692 { instance head of movieClip 376 { } } movieClip 693 { } movieClip 694 { instance head of movieClip 376 { } } movieClip 695 { frame 4 { stop(); } } movieClip 696 { instance head of movieClip 376 { } frame 5 { stop(); } } movieClip 698 { frame 5 { stop(); } } movieClip 701 { frame 1 { gotoAndStop(_root.player.body); } frame 2 { gotoAndStop(_root.player.body); } } movieClip 704 { frame 1 { gotoAndStop(_root.player.body); } frame 2 { gotoAndStop(_root.player.body); } } movieClip 707 { frame 1 { gotoAndStop(_root.player.body); } frame 2 { gotoAndStop(_root.player.body); } } movieClip 708 { instance head of movieClip 376 { } frame 4 { stop(); } } movieClip 711 { frame 1 { gotoAndStop(_root.player.body); } frame 2 { gotoAndStop(_root.player.body); } } movieClip 712 { instance head of movieClip 376 { } } movieClip 727 { instance head of movieClip 376 { } frame 18 { stop(); } } movieClip 730 { instance head of movieClip 376 { } frame 13 { stop(); } frame 15 { stop(); } frame 22 { _root.player.flying = false; stop(); } } movieClip 731 { frame 1 { stop(); } instance guard of movieClip 688 { onClipEvent (load) { _y = -350; } } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } frame 6 { stop(); } frame 7 { stop(); } frame 8 { stop(); } } instance player of movieClip 731 { onClipEvent (load) { function hurt(amount) { if (_root.bossFight.dead != undefined) { if (!dead && !_root.bossFight.dead) { _root.hurtShock._alpha = 100 * ((maxhp - hp + 5) / maxhp); hp -= amount; } } else { if (!dead) { _root.hurtShock._alpha = 100 * ((maxhp - hp + 5) / maxhp); hp -= amount; } } } function knockBack(amount) { if (!flying) { knockBackAmount = amount; scale = _xscale; } } function resetSword() { _root.arm.sword.gotoAndStop(1); _root.arm.guardBroken = false; _root.arm.attack = false; } function resetCheckpoint() { _root.player._visible = true; _root.arm._visible = true; _root.stat._visible = true; gotoAndStop(1); jump = false; jumpLock = false; dash = false; this._xscale = 100; rate = 1; rate2 = -10; _y = 205.6; _root.arm._x = 50; _root.arm._y = 205; _root.arm._xscale = 100; _root.arm._rotation = 90; _root.arm.attack = false; _root.arm.turnLock = false; _root.arm.guarding = false; _root.arm.attackLock = false; } function reset() { _x = 50; knockBackAmount = 0; stopDist = 0; distLock = false; resetCheckpoint(); } function resetDash() { rate = 1; dash = false; } function resetJump() { jump = false; jumpLock = false; } function increaseHp(amount) { maxhp *= amount; hp = maxhp; } function flyStart(speed) { gotoAndStop('flying'); if (flying) { _root.player.fly.gotoAndPlay('continue'); knockedDown = false; } flying = true; flyRate = speed; resetDash(); resetJump(); resetScrolling(); } function knockDownStart(speed) { knockedDown = true; flyRate = speed; } function resetScrolling() { scrollStartL = false; scrollStartR = false; } function teleport(xx, yy) { if (!flying) { teleportStartX = _x; _root.createPoof(_x, _y - 10); _y = -300; resetScrolling(); resetDash(); resetJump(); teleporting = true; if (yy > 205.6) { yy = 205.6; } if (xx > Stage.width) { xx = Stage.width; } else { if (xx < 0) { xx = 0; } } teleX = xx; teleY = yy; teleportDelay = 5; } } function unTeleport() { teleporting = false; _root.createPoof(teleX, teleY); _x = teleX; _y = teleY; _root.distance += Math.round(teleportStartX - _x); fall(); } function fall() { gotoAndStop('jump'); resetScrolling(); jump = true; rate2 = 2; } function changeLimits(left, right) { if (left !== null) { } else { goto 2259; } leftLimit = left; label 2259: if (right !== null) { } else { goto 2296; } rightLimit = right; } label 2296: function restoreLimits() { rightLimit = 580; leftLimit = 30; } function createSpark(amount) { _root.createSwordSpark(amount, _root.player._x + 30 * _xscale / 100, _root.player._y - 17); } hp = 25 + _global.eHp; maxhp = 25 + _global.eHp; var rate = 1; var rate2 = -10; var rate2limit = 10; var jump = false; var scrollStartR = false; var scrollStartL = false; var dash = false; var jumpLock = false; var dead = false; var distLock = false; teleportDelay = 0; teleporting = false; teleX = 0; teleY = 0; teleportStartX = 0; flying = false; knockedDown = false; flyRate = 0; body = 1; var stopDist = 0; knockBackAmount = 0; training = false; knockBackAmount = 0; scale = 0; rightLimit = 580; leftLimit = 30; } onClipEvent (keyDown) { } onClipEvent (enterFrame) { if (!_root.pawsd && !dead && !flying) { speed = Math.abs(rate); if (!_root.arm.turnLock && !dash) { if (_root._xmouse >= _x) { this._xscale = 100; } else { this._xscale = -100; } } if (!teleporting) { if (Key.isDown(67) && _global.hat == 26) { teleport(_root._xmouse, _root._ymouse); } if (Key.isDown(32) || Key.isDown(87)) { if (dash && !jumpLock && !jump) { rate2 = -12; rate2limit = 12; jumpLock = true; jump = true; } else { if (dash == false && _root.player._currentframe == 5 && !jump) { rate2 = -15; rate2limit = 15; jump = true; } else { if (!jumpLock && !jump) { rate2 = -10; rate2limit = 10; jumpLock = true; jump = true; } } } } if (Key.isDown(68)) { scrollStartL = false; if (_x >= 350) { scrollStartR = true; distLock = false; if (!_root.scrollLock) { if (jump) { _root.distance -= Math.round(speed); } else { _root.distance -= Math.round(speed + 1); } if (dash) { _root.distance -= Math.round(rate); } } } if (!dash) { if (_root.player._currentframe == 5) { dash = true; rate = 20; _xscale = 100; } if (jump) { if ((!scrollStartR || _root.scrollLock) && (_x < rightLimit || _root.control.lock && !_root.battle)) { _x = _x + (rate + 1); _root.distance -= Math.round(speed + 1); } } else { if (rate < 7) { rate += 2; } gotoAndStop('forward'); if ((!scrollStartR || _root.scrollLock) && (_x < rightLimit || _root.control.lock && !_root.battle)) { _x = _x + rate; _root.distance -= Math.round(speed); } } } } else { if (Key.isDown(65)) { scrollStartR = false; if (_x <= 250) { scrollStartL = true; if (!_root.scrollLock) { if (!distLock) { stopDist = _root.distance; distLock = true; } if (jump) { _root.distance += Math.round(speed); } else { _root.distance += Math.round(speed + 1); } if (dash) { _root.distance -= Math.round(rate); } } } if (!dash) { if (_root.player._currentframe == 5) { rate = -30; dash = true; _xscale = -100; } if (jump) { if ((!scrollStartL || _root.scrollLock) && _x > leftLimit) { _x = _x - (rate + 1); _root.distance += Math.round(speed + 1); } } else { if (rate < 7) { rate += 2; } gotoAndStop('backward'); if ((!scrollStartL || _root.scrollLock) && _x > leftLimit) { _x = _x - rate; _root.distance += Math.round(speed); } } } } else { if (Key.isDown(83)) { if (!jump && !dash) { gotoAndStop('kneel'); scrollStartL = false; scrollStartR = false; rate = 1; } } else { if (!jump && !dash) { gotoAndStop('stand'); } if (!dash) { scrollStartL = false; scrollStartR = false; if (_quality != 'LOW' && _global.scrollFix) { _quality = 'HIGH'; } if (rate > 2) { rate -= 2; } } } } } if (dash) { gotoAndStop('dash'); if (!scrollStartR && !scrollStartL || _root.scrollLock && (_x < rightLimit && _x > leftLimit || _root.control.lock && _x > leftLimit && !_root.battle)) { _x = _x + rate; _root.distance -= Math.round(rate); } if (!jump) { rate *= 0.8; } else { rate *= 0.9; } if (rate < 2 && rate > -2) { if (!jump) { rate = 7; } dash = false; } } if (jump) { if (!dash) { gotoAndStop('jump'); } _y = _y + rate2; if (rate2 < rate2limit) { ++rate2; } if (_y >= 205.6) { _y = 205.6; gotoAndStop('stand'); jump = false; jumpLock = false; rate2 = -10; } } if (knockBackAmount > 0) { _x = _x - knockBackAmount * (scale / 100); knockBackAmount *= 0.7; if (knockBackAmount <= 1) { knockBackAmount = 0; } } } else { if (teleportDelay > 0) { --teleportDelay; } else { unTeleport(); } } if (hp <= 0 && !training) { _root.hurtShock._alpha = 0; _root.weapons._alpha = 0; _root.statusBar._alpha = 0; _root.gold = ''; _root.oldScore = _root.score; _root.score = ''; _root.control.removeAllEnemies(); _root.control.resetEnemyCategories(); _root.death.play(); _root.arm.attack = false; _root.arm.attackLock = false; _root.scrollLock = true; _root.gcontrol.clearMiscItems(); _root.goArrow._visible = false; _root.stat._visible = false; resetScrolling(); hp = 0; dead = true; attack = false; gotoAndStop('dead'); } else { if (hp <= 0 && training) { hp = _root.healthRefund; _root.control.trainingResetFailure(); } } } else { if (flying && (!_root.pawsd || dead)) { if (teleporting) { flying = false; knockedDown = false; gotoAndStop('stand'); } if (!knockedDown) { if (_root.player.fly._currentframe < 16) { _y = _y - flyRate; flyRate -= 2; } if (flyRate <= -4 && _root.player.fly._currentframe < 14) { _root.player.fly.play(); } } else { if (_root.player.fly._currentframe < 14) { _root.player.fly.play(); } if (_root.player.fly._currentframe < 16) { _y = _y + flyRate; flyRate += 2; } } if (_y >= 205.6 && _root.player.fly._currentframe < 16) { if (hp > 0) { _root.player.fly.play(); } else { gotoAndStop('dead'); _root.player.death.gotoAndStop('death'); flying = false; } _y = 205.6; if (knockedDown) { knockedDown = false; } } } } } } movieClip 732 { } instance of movieClip 732 { onClipEvent (release) { } onClipEvent (enterFrame) { if (Key.isDown(71)) { } } } movieClip 738 { } button 739 { on (release) { enabled = false; _parent.retry.enabled = false; _root.sound.music.stop(); _root.gotoAndStop(3); } } button 740 { on (release) { enabled = false; _parent.exitB.enabled = false; if (_root.saveObj.levelHasCheckpoint() && _root.saveObj.checkpointIsSet()) { _root.death.checkpointConfirm.play(); } else { _root.sound.fadeOut(0, 50); _root.retryFade.play(); } } } button 744 { on (release) { enabled = false; _parent.yesB.enabled = false; _root.saveObj.removeCheckpoint(); _root.sound.fadeOut(0, 50); _root.retryFade.play(); _parent.play(); } } button 745 { on (release) { enabled = false; _parent.noB.enabled = false; _root.saveObj.setLoadCheckpoint(); _root.sound.fadeOut(0, 50); _root.retryFade.play(); _parent.play(); } } movieClip 751 { frame 1 { stop(); } frame 10 { stop(); } frame 13 { gotoAndStop(1); } } movieClip 752 { frame 1 { stop(); } frame 2 { _root.sound.fadeOut(0, _root.sound.getNextVolumeRate()); _root.sound.setNextVolume(100); _root.sound.setNextVolumeRate(100); _root.sound.setNextSong('death', true); _root.saveGame(); } frame 3 { _root.gcontrol.clearMiscItems(); } frame 4 { _root.gcontrol.clearMiscItems(); } frame 12 { stop(); } } movieClip 762 { frame 17 { this._alpha -= 33; } frame 18 { this._alpha -= 33; } frame 19 { this._alpha -= 34; } } movieClip 766 { } movieClip 768 { } movieClip 770 { } movieClip 776 { frame 1 { gotoAndStop(_parent._parent.head); } } movieClip 778 { } movieClip 780 { } movieClip 781 { } movieClip 783 { } movieClip 784 { } movieClip 786 { frame 5 { _parent.hurt = false; } } movieClip 789 { } movieClip 796 { instance of movieClip 789 { onClipEvent (load) { if (this.hitTest(_root.player.guard)) { cancel = true; _root.arm.sword.sword.spark.gotoAndPlay(1); _root.arm.energy -= 2; } else { if (this.hitTest(_root.player.hit) && !cancel) { _root.player.hurt(1); } } } } instance of movieClip 783 { onClipEvent (load) { if (this.hitTest(_root.player.guard)) { cancel = true; _root.arm.sword.sword.spark.gotoAndPlay(1); _root.arm.energy -= 30; } else { if (this.hitTest(_root.player.hit) && !cancel) { _root.player.hurt(1); } } } } frame 10 { if (_parent.updateDirrection()) { gotoAndPlay('secondSlash'); } else { play(); } } frame 21 { _parent.attack = false; } frame 23 { if (_parent.updateDirrection()) { gotoAndPlay(1); } } instance of movieClip 783 { onClipEvent (load) { if (this.hitTest(_root.player.guard)) { cancel = true; _root.arm.sword.sword.spark.gotoAndPlay(1); _root.arm.energy -= 20; } else { if (this.hitTest(_root.player.hit) && !cancel) { _root.player.hurt(2); } } } } frame 46 { _parent.attack = false; } } movieClip 798 { frame 1 { _parent.hurt = false; } instance head of movieClip 776 { onClipEvent (enterFrame) { _root.dist = _x; } } frame 14 { stop(); } } movieClip 803 { frame 1 { _parent.hurt = false; } instance head of movieClip 776 { onClipEvent (enterFrame) { _root.dist = _x; } } frame 14 { stop(); } } movieClip 804 { frame 1 { stop(); } instance FD of movieClip 762 { onClipEvent (enterFrame) { if (_alpha >= 0) { play(); } else { stop(); } } } instance LD of movieClip 766 { onClipEvent (enterFrame) { if (_alpha >= 0) { _alpha = _alpha - 10; play(); } else { stop(); } } } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } frame 6 { stop(); } } instance en18s of movieClip 804 { onClipEvent (load) { function isBoss() { return false; } function updateDirrection() { if (Math.abs(_root.player._x - _x) <= 80 && !hurt) { if (_root.trainingSelect == 2) { if (_root.player._x > this._x) { _xscale = 100; dirr = 1; } else { if (!hurt && !attack) { _xscale = -100; dirr = -1; } } } attack = true; return true; } else { return false; } } function pauseSelf() { if (attack) { action = 'attack'; this.atk.stop(); } else { if (dead) { action = 'dead'; frame1 = this.death._currentframe; frame2 = this.death2._currentframe; this.death.stop(); this.death2.stop(); } else { action = 'null'; gotoAndStop('stand'); } } } function unPause() { if (action == 'attack') { this.atk.play(); } else { if (action == 'dead') { this.death.gotoAndPlay(frame1 - 1); this.death2.gotoAndPlay(frame2 - 1); } } hurt = false; action = 'null'; } if (this._name != 'en18s') { _root.control.enemies.push(this); hp = 60; dtype = 1; var knockBack = false; var hurt = false; var flyup = false; var dead = false; groundSpeed = 4; bottom = 194.2; dirr = 1; KBcounter = 0; var forceUp = 0; extraDamage = 0; head = 1 + random(3); } action = 'null'; attack = false; } onClipEvent (enterFrame) { if (this._name != 'en18s') { if (!_root.pawsd) { if (!_root.scrollLock) { if (_root.player.scrollStartR) { _x = _x - _root.player.speed; } else { if (_root.player.scrollStartL) { _x = _x + _root.player.speed; } } } if (!dead) { if (Math.abs(_root.player._x - _x) <= 80 && !hurt) { attack = true; gotoAndStop('attack'); } if (_root.player._x > this._x && !hurt && !attack) { dirr = 1; gotoAndStop('move'); _xscale = 100; if (_y >= bottom - 20) { _x = _x + groundSpeed; } } else { if (!hurt && !attack) { dirr = -1; gotoAndStop('move'); _xscale = -100; if (_y >= bottom - 20) { _x = _x - groundSpeed; } } } if (this.hit.hitTest(_root.arm.sword.s)) { dtype = 1; hurt = true; gotoAndStop('hurt'); ++_global.es1; ++_global.es2; _root.dCounter.duplicateMovieClip('dCounter' + _global.es1, _global.es2); _root['dCounter' + _global.es1]._x = this._x; _root['dCounter' + _global.es1]._y = this._y; if (_root.player.dash) { extraDamage = 2; } _root['dCounter' + _global.es1].damageCounter = _root.arm.power + _root.arm.damage + extraDamage; hp -= _root.arm.power + _root.arm.damage + extraDamage; knockBack = true; force = dirr * (_root.arm.knockBack + extraDamage); if (_root.arm.up) { flyup = true; forceUp = -1 * (_root.arm.knockBack + _root.arm.power / 2 + extraDamage); } } } if (hp <= 0 && !dead) { ++_root.control.killings; _root.score += 250; dead = true; } if (hurt) { attack = false; if (!dead && _root.arm.damagetype == 'lightning' && this.LD._alpha <= 0) { this.LD._alpha = 100; } else { if (!dead && _root.arm.damagetype == 'fire' && this.FD._alpha <= 0) { this.FD._alpha = 100; } } ++_global.es1; ++_global.es2; _root.blood.duplicateMovieClip('blood' + _global.es1, _global.es2); _root['blood' + _global.es1]._x = this._x; _root['blood' + _global.es1]._y = this._y; _root['blood' + _global.es1]._rotation = _root.arm._rotation + random(20); } if (flyup) { _y = _y + forceUp; if (_y < bottom) { if (forceUp < 30) { ++forceUp; } } else { flyup = false; _y = bottom; } } if (knockBack) { if (KBcounter <= _root.arm.knockBack + extraDamage) { _x = _x - force; force *= 0.6; ++KBcounter; } else { knockBack = false; KBcounter = 0; extraDamage = 0; } } if (!dead) { if (_x < -250) { i = 0; while (i <= _root.control.enemies.length) { if (_root.control.enemies[i] == this) { _root.control.enemies.splice(i, 1); break; } ++i; } this.removeMovieClip(); } } else { gotoAndStop(4 + dtype); if (this.death._currentframe < 13 && dtype == 1) { } else { if (_alpha > 0) { if (this.death2._currentframe > 12) { _alpha = _alpha - 5; } else { if (this.death._currentframe > 13) { hurt = false; _alpha = _alpha - 5; } } } else { i = 0; while (i <= _root.control.enemies.length) { if (_root.control.enemies[i] == this) { _root.control.enemies.splice(i, 1); break; } ++i; } ++_root.control.killed; --_root.dojo.kills; ++_global.kills; this.removeMovieClip(); } } } } else { pauseSelf(); } } } } movieClip 806 { frame 1 { gotoAndStop(_parent._parent.wep); } } movieClip 810 { frame 1 { gotoAndStop(_parent._parent.head); } } movieClip 812 { } movieClip 813 { } movieClip 814 { } movieClip 816 { frame 5 { _parent.hurt = false; } } movieClip 818 { } movieClip 821 { frame 1 { gotoAndStop(_parent._parent.wep); } } movieClip 822 { instance of movieClip 783 { onClipEvent (load) { if (this.hitTest(_root.player.guard)) { cancel = true; _root.arm.sword.sword.spark.gotoAndPlay(1); _root.arm.energy -= 20; } else { if (this.hitTest(_root.player.hit) && !cancel) { _root.player.hurt(1); } } } } instance of movieClip 789 { onClipEvent (load) { if (this.hitTest(_root.player.guard)) { cancel = true; _root.arm.sword.sword.spark.gotoAndPlay(1); _root.arm.energy -= 20; } else { if (this.hitTest(_root.player.hit) && !cancel) { _root.player.hurt(1); } } } } frame 7 { _parent.energy -= 25; } instance of movieClip 783 { onClipEvent (load) { if (this.hitTest(_root.player.guard)) { cancel = true; _root.arm.sword.sword.spark.gotoAndPlay(1); _root.arm.energy -= 20; } else { if (this.hitTest(_root.player.hit) && !cancel) { _root.player.hurt(1); } } } } frame 9 { if (_parent.updateDirrection() && _parent.energy >= 15) { gotoAndPlay('thirdStab'); } else { play(); } } instance of movieClip 789 { onClipEvent (load) { if (this.hitTest(_root.player.guard)) { cancel = true; _root.arm.sword.sword.spark.gotoAndPlay(1); _root.arm.energy -= 20; } else { if (this.hitTest(_root.player.hit) && !cancel) { _root.player.hurt(1); } } } } frame 13 { _parent.attack = false; } frame 20 { _parent.energy -= 15; } instance of movieClip 783 { onClipEvent (load) { if (this.hitTest(_root.player.guard)) { cancel = true; _root.arm.sword.sword.spark.gotoAndPlay(1); _root.arm.energy -= 20; } else { if (this.hitTest(_root.player.hit) && !cancel) { _root.player.hurt(1); } } } } instance of movieClip 789 { onClipEvent (load) { if (this.hitTest(_root.player.guard)) { cancel = true; _root.arm.sword.sword.spark.gotoAndPlay(1); _root.arm.energy -= 25; } else { if (this.hitTest(_root.player.hit) && !cancel) { _root.player.hurt(1); } } } } frame 22 { if (_parent.updateDirrection() && _parent.energy >= 30) { gotoAndPlay('spin'); } else { play(); } } frame 28 { _parent.attack = false; } frame 41 { _parent.energy -= 5; } instance of movieClip 789 { onClipEvent (load) { if (this.hitTest(_root.player.guard)) { cancel = true; _root.arm.sword.sword.spark.gotoAndPlay(1); _root.arm.energy -= 20; } else { if (this.hitTest(_root.player.hit) && !cancel) { _root.player.hurt(1); } } } } frame 43 { _parent.energy -= 5; } instance of movieClip 783 { onClipEvent (load) { if (this.hitTest(_root.player.guard)) { cancel = true; _root.arm.sword.sword.spark.gotoAndPlay(1); _root.arm.energy -= 20; } else { if (this.hitTest(_root.player.hit) && !cancel) { _root.player.hurt(1); } } } } instance of movieClip 789 { onClipEvent (load) { if (this.hitTest(_root.player.guard)) { cancel = true; _root.arm.sword.sword.spark.gotoAndPlay(1); _root.arm.energy -= 20; } else { if (this.hitTest(_root.player.hit) && !cancel) { _root.player.hurt(1); } } } } frame 45 { _parent.energy -= 5; } instance of movieClip 783 { onClipEvent (load) { if (this.hitTest(_root.player.guard)) { cancel = true; _root.arm.sword.sword.spark.gotoAndPlay(1); _root.arm.energy -= 20; } else { if (this.hitTest(_root.player.hit) && !cancel) { _root.player.hurt(1); } } } } frame 47 { _parent.energy -= 5; } instance of movieClip 789 { onClipEvent (load) { if (this.hitTest(_root.player.guard)) { cancel = true; _root.arm.sword.sword.spark.gotoAndPlay(1); _root.arm.energy -= 20; } else { if (this.hitTest(_root.player.hit) && !cancel) { _root.player.hurt(1); } } } } frame 49 { _parent.energy -= 5; } instance of movieClip 783 { onClipEvent (load) { if (this.hitTest(_root.player.guard)) { cancel = true; _root.arm.sword.sword.spark.gotoAndPlay(1); _root.arm.energy -= 20; } else { if (this.hitTest(_root.player.hit) && !cancel) { _root.player.hurt(1); } } } } frame 51 { _parent.energy -= 5; } instance of movieClip 789 { onClipEvent (load) { if (this.hitTest(_root.player.guard)) { cancel = true; _root.arm.sword.sword.spark.gotoAndPlay(1); _root.arm.energy -= 20; } else { if (this.hitTest(_root.player.hit) && !cancel) { _root.player.hurt(1); } } } } instance of movieClip 783 { onClipEvent (load) { if (this.hitTest(_root.player.guard)) { cancel = true; _root.arm.sword.sword.spark.gotoAndPlay(1); _root.arm.energy -= 20; } else { if (this.hitTest(_root.player.hit) && !cancel) { _root.player.hurt(1); } } } } frame 76 { _parent.attack = false; } } movieClip 824 { } movieClip 826 { frame 4 { _parent.rateJump = 10; } frame 6 { stop(); } instance of movieClip 783 { onClipEvent (load) { if (this.hitTest(_root.player.guard)) { cancel = true; _root.arm.sword.sword.spark.gotoAndPlay(1); _root.arm.energy -= 20; } else { if (this.hitTest(_root.player.hit) && !cancel) { _root.player.hurt(2); _root.player.knockBack(15); } } } } instance of movieClip 789 { onClipEvent (load) { if (this.hitTest(_root.player.guard)) { cancel = true; _root.arm.sword.sword.spark.gotoAndPlay(1); _root.arm.energy -= 20; } else { if (this.hitTest(_root.player.hit) && !cancel) { _root.player.hurt(2); _root.player.knockBack(15); } } } } frame 15 { stop(); } frame 19 { stop(); } frame 22 { _parent.jump = false; } } movieClip 828 { frame 20 { stop(); } } movieClip 829 { } movieClip 830 { frame 1 { stop(); } instance FD of movieClip 762 { onClipEvent (enterFrame) { if (_alpha >= 0) { play(); } else { stop(); } } } instance LD of movieClip 766 { onClipEvent (enterFrame) { if (_alpha >= 0) { _alpha = _alpha - 10; play(); } else { stop(); } } } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } frame 6 { stop(); } frame 7 { stop(); } } instance en17s of movieClip 830 { onClipEvent (load) { function updateDirrection() { if (Math.abs(_root.player._x - _x) <= 105 && !hurt && energy > 0) { if (_root.player._x > this._x) { _xscale = 100; dirr = 1; } else { if (!hurt && !attack) { _xscale = -100; dirr = -1; } } attack = true; return true; } else { return false; } } function isBoss() { return jump; } function isBusy() { return jump; } function reset() { blocking = false; attack = false; hurt = false; if (jump) { jump = false; flyup = true; forceUp = 2; } } function pauseSelf() { if (attack) { action = 'attack'; this.atk.stop(); } else { if (dead) { action = 'dead'; frame1 = this.death._currentframe; this.death.stop(); } else { action = 'null'; gotoAndStop('stand'); } } } function unPause() { if (action == 'attack') { this.atk.play(); } else { if (action == 'dead') { this.death.gotoAndPlay(frame1 - 1); } } hurt = false; action = 'null'; } if (this._name != 'en17s') { _root.control.enemies.push(this); _xscale = _xscale * -1; maxhp = 50; hp = maxhp; maxEn = 100; energy = maxEn; dtype = 1; var knockBack = false; var hurt = false; var flyup = true; var dead = false; blocking = false; jump = false; rateJump = 0; rateSlide = 14; bottom = 194.2; dirr = 1; KBcounter = 0; var forceUp = 0; extraDamage = 0; slashCounter = 0; deathLock = false; body = 1; head = 1 + random(3); wep = 1; healthDropChance = 500; goldDropChance = 0; } action = 'null'; attack = false; } onClipEvent (enterFrame) { if (this._name != 'en17s') { if (!_root.pawsd && !_root.player.dead) { if (!_root.scrollLock) { if (_root.player.scrollStartR) { _x = _x - _root.player.speed; } else { if (_root.player.scrollStartL) { _x = _x + _root.player.speed; } } } if (!dead) { if (!blocking && !jump) { if (Math.abs(_root.player._x - _x) <= 40 && !attack && !hurt && !flyup) { } else { if (energy < 25 || Math.abs(_root.player._x - _x) <= 50 && !attack) { blocking = true; attack = false; } else { if (Math.abs(_root.player._x - _x) <= 105 && !hurt && !jump && energy > 25) { if (_root.player._x > this._x && !hurt && !attack) { _xscale = 100; } else { if (!hurt && !attack) { _xscale = -100; } } attack = true; gotoAndStop('attack'); } } } } if (Math.abs(_root.player._x - _x) > 35 && energy > 60) { blocking = false; } if (!hurt && !attack && !jump) { if (energy < maxEn) { energy += 5; } if (_root.player._x > this._x) { dirr = 1; _xscale = 100; if (_y >= bottom - 20) { if (!blocking) { _x = _x + 4; gotoAndStop('move'); } else { _x = _x - 2; gotoAndStop('block'); } } } else { if (!hurt && !attack) { dirr = -1; _xscale = -100; if (_y >= bottom - 20) { if (!blocking) { _x = _x - 4; gotoAndStop('move'); } else { _x = _x + 2; gotoAndStop('block'); } } } } } else { if (jump) { gotoAndStop('jump'); if (this.jumpAway._currentframe > 4) { _x = _x + -dirr * rateSlide; rateJump -= 1; if (this.jumpAway._currentframe > 16) { rateSlide *= 0.7; } } _y = _y - rateJump; if (this.jumpAway._currentframe == 6 && (Math.abs(_root.player._x - _x) >= 90 || rateJump <= 0)) { this.jumpAway.play(); } if (rateJump <= 0 && this.jumpAway._currentframe > 14 && this.jumpAway._currentframe < 16) { this.jumpAway.gotoAndPlay(16); } if (_y >= bottom && this.jumpAway._currentframe > 16 && this.jumpAway._currentframe < 20) { this.jumpAway.gotoAndPlay(20); rateJump = 0; rateSlide = 14; jump = false; _y = bottom; } } } if (this.hit.hitTest(_root.arm.sword.s) && !blocking && !jump) { gotoAndStop('hurt'); dtype = 1; hurt = true; ++_global.es1; ++_global.es2; _root.dCounter.duplicateMovieClip('dCounter' + _global.es1, _global.es2); _root['dCounter' + _global.es1]._x = this._x; _root['dCounter' + _global.es1]._y = this._y; if (_root.player.dash) { gotoAndStop('hurt'); attack = false; extraDamage = 2; } _root['dCounter' + _global.es1].damageCounter = _root.arm.power + _root.arm.damage + extraDamage; hp -= _root.arm.power + _root.arm.damage + extraDamage; knockBack = true; force = dirr * (_root.arm.knockBack + extraDamage); if (_root.arm.up) { flyup = true; forceUp = -1 * (_root.arm.knockBack + _root.arm.power / 2 + extraDamage); } } } if (hp <= 0 && !dead) { ++_root.control.killings; _root.score += 250; knockBack = false; _root.goldDrop(random(goldDropChance), _x, _y, false); _root.healthDrop(random(healthDropChance), this._x, this._y); ++_root.control.killed; --_root.dojo.kills; ++_global.kills; this.gotoAndStop('death'); dead = true; } if (hurt) { attack = false; if (!dead && _root.arm.damagetype == 'lightning' && this.LD._alpha <= 0) { this.LD._alpha = 100; } else { if (!dead && _root.arm.damagetype == 'fire' && this.FD._alpha <= 0) { this.FD._alpha = 100; } } ++_global.es1; ++_global.es2; _root.blood.duplicateMovieClip('blood' + _global.es1, _global.es2); _root['blood' + _global.es1]._x = this._x; _root['blood' + _global.es1]._y = this._y; _root['blood' + _global.es1]._rotation = _root.arm._rotation + random(20); if (this._currentframe != 3) { hurt = false; } } if (knockBack) { if (KBcounter <= _root.arm.knockBack + extraDamage) { _x = _x - force; force *= 0.6; ++KBcounter; } else { knockBack = false; KBcounter = 0; extraDamage = 0; } } if (!dead) { if (_x < -250) { i = 0; while (i <= _root.control.enemies.length) { if (_root.control.enemies[i] == this) { _root.control.enemies.splice(i, 1); break; } ++i; } this.removeMovieClip(); } } else { if (this.death._currentframe < 20 && dtype == 1) { } else { if (_alpha > 0) { if (this.death._currentframe > 19) { hurt = false; _alpha = _alpha - 5; } } else { i = 0; while (i <= _root.control.enemies.length) { if (_root.control.enemies[i] == this) { _root.control.enemies.splice(i, 1); break; } ++i; } this.removeMovieClip(); } } } } else { if (_root.pawsd) { pauseSelf(); } } if (flyup && !_root.pawsd || flyup && dead || flyup && _root.trainingDone) { _y = _y + forceUp; if (_y < bottom) { if (forceUp < 30) { ++forceUp; } } else { flyup = false; _y = bottom; } } } } } movieClip 835 { } movieClip 837 { frame 7 { stop(); } } movieClip 845 { frame 1 { stop(); } frame 2 { i = 0; while (i < 20) { if (_root.player.hp == _root.player.maxhp) { break; } else { ++_root.player.hp; } ++i; } } frame 25 { i = 0; while (i <= _root.control.enemies.length) { if (_root.control.enemies[i] == this) { _root.control.enemies.splice(i, 1); break; } ++i; } this.removeMovieClip(); } } instance hp3up of movieClip 845 { onClipEvent (load) { if (this._name != 'hp3up') { ratey = -4; _root.gcontrol.miscItems.push(this); } } onClipEvent (enterFrame) { if (this._name != 'hp3up') { if (!_root.scrollLock) { if (_root.player.scrollStartR) { _x = _x - _root.player.speed; } else { if (_root.player.scrollStartL) { _x = _x + _root.player.speed; } } } if (_y < 222) { ++ratey; _y = _y + ratey; } if (_x < -250) { i = 0; while (i <= _root.gcontrol.miscItems.length) { if (_root.gcontrol.miscItems[i] == this) { _root.gcontrol.miscItems.splice(i, 1); break; } ++i; } this.removeMovieClip(); } if (this.hitTest(_root.player.hit)) { play(); } } } } movieClip 848 { frame 7 { stop(); } } movieClip 851 { frame 24 { this.removeMovieClip(); stop(); } } movieClip 855 { frame 33 { stop(); } } movieClip 856 { frame 41 { stop(); i = 0; while (i <= _root.gcontrol.miscItems.length) { if (_root.gcontrol.miscItems[i] == this) { _root.gcontrol.miscItems.splice(i, 1); break; } ++i; } this.removeMovieClip(); } } instance swordBoom of movieClip 856 { onClipEvent (load) { if (this._name != 'swordBoom') { _root.gcontrol.miscItems.push(this); } else { stop(); } } } movieClip 858 { } movieClip 863 { frame 1 { gotoAndStop(_parent._parent.head); } } movieClip 867 { frame 1 { gotoAndStop(_parent._parent.head); } } movieClip 868 { } movieClip 869 { } movieClip 871 { frame 5 { _parent.hurt = false; } } movieClip 873 { instance of movieClip 789 { onClipEvent (load) { if (this.hitTest(_root.player.guard)) { cancel = true; _root.arm.sword.sword.spark.gotoAndPlay(1); _root.arm.energy -= 10 + _parent._parent.wep; } else { if (this.hitTest(_root.player.hit) && !cancel) { if (_parent._parent.head == 5) { _root.player.hurt(3); } else { _root.player.hurt(2); } } } } } frame 24 { _parent.attack = false; } } movieClip 889 { frame 1 { num = random(4); newSound = new Sound(); newSound.attachSound(_root.manDeath[num]); newSound.setVolume(100); newSound.start(); } frame 32 { stop(); } } movieClip 892 { frame 1 { _parent.hurt = false; } instance head of movieClip 863 { onClipEvent (enterFrame) { _root.dist = _x; } } frame 14 { stop(); } } movieClip 897 { } movieClip 899 { } movieClip 907 { frame 1 { _root.createBoneExplosion(15, _parent._x, _parent._y); } frame 25 { stop(); } } movieClip 908 { frame 1 { stop(); } instance FD of movieClip 762 { onClipEvent (enterFrame) { if (_alpha >= 0) { play(); } else { stop(); } } } instance LD of movieClip 766 { onClipEvent (enterFrame) { if (_alpha >= 0) { _alpha = _alpha - 10; play(); } else { stop(); } } } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } frame 6 { stop(); } frame 7 { stop(); } } instance en15s of movieClip 908 { onClipEvent (load) { function isBoss() { return false; } function pauseSelf() { if (attack) { action = 'attack'; this.atk.stop(); } else { if (dead) { action = 'dead'; frame2 = this.death3._currentframe; this.death.stop(); this.death2.stop(); } else { action = 'null'; gotoAndStop('stand'); } } } function unPause() { if (action == 'attack') { this.atk.play(); } else { if (action == 'dead') { this.death3.gotoAndPlay(frame2 - 1); } } hurt = false; action = 'null'; } if (this._name != 'en15s') { _root.control.enemies.push(this); hp = 60; dtype = 1; var knockBack = false; var hurt = false; var flyup = true; var dead = false; bottom = 194.2; dirr = 1; KBcounter = 0; var forceUp = 0; extraDamage = 0; healthDropChance = 25; goldDropChance = 8; lock = true; head = 5; wep = 7; emerging; } action = 'null'; attack = false; } onClipEvent (enterFrame) { if (this._name != 'en15s') { if (!_root.pawsd || !lock) { if (!_root.scrollLock) { if (_root.player.scrollStartR) { _x = _x - _root.player.speed; } else { if (_root.player.scrollStartL) { _x = _x + _root.player.speed; } } } if (!dead) { if (Math.abs(_root.player._x - _x) <= 78 && !hurt) { if (_root.player._x > this._x && !hurt && !attack) { _xscale = 100; } else { if (!hurt && !attack) { _xscale = -100; } } attack = true; gotoAndStop('attack'); } if (_root.player._x > this._x && !hurt && !attack) { dirr = 1; gotoAndStop('move'); _xscale = 100; if (_y >= bottom - 20) { _x = _x + 3.5; } } else { if (!hurt && !attack) { dirr = -1; gotoAndStop('move'); _xscale = -100; if (_y >= bottom - 20) { _x = _x - 3.5; } } } if (this.hit.hitTest(_root.arm.sword.s)) { dtype = 1; hurt = true; gotoAndStop('hurt'); ++_global.es1; ++_global.es2; _root.dCounter.duplicateMovieClip('dCounter' + _global.es1, _global.es2); _root['dCounter' + _global.es1]._x = this._x; _root['dCounter' + _global.es1]._y = this._y; if (_root.player.dash) { extraDamage = 2; } _root['dCounter' + _global.es1].damageCounter = _root.arm.power + _root.arm.damage + extraDamage; hp -= _root.arm.power + _root.arm.damage + extraDamage; knockBack = true; force = dirr * (_root.arm.knockBack + extraDamage); if (_root.arm.up) { flyup = true; forceUp = -1 * (_root.arm.knockBack + _root.arm.power / 2 + extraDamage); } } } if (hp <= 0 && !dead) { ++_root.control.killings; --_root.control.strong; ++_global.kills; --_root.killsLeft.killCount; _root.score += 95; _root.goldDrop(random(goldDropChance), _x, _y, false); _root.healthDrop(random(healthDropChance), this._x, this._y); dead = true; } if (hurt) { attack = false; if (!dead && _root.arm.damagetype == 'lightning' && this.LD._alpha <= 0) { this.LD._alpha = 100; } else { if (!dead && _root.arm.damagetype == 'fire' && this.FD._alpha <= 0) { this.FD._alpha = 100; } } } if (flyup) { _y = _y + forceUp; if (_y < bottom) { if (forceUp < 30) { ++forceUp; } } else { flyup = false; _y = bottom; } } if (knockBack) { if (KBcounter <= _root.arm.knockBack + extraDamage) { _x = _x - force; force *= 0.6; ++KBcounter; } else { knockBack = false; KBcounter = 0; extraDamage = 0; } } if (!dead) { if (_x < -250) { i = 0; while (i <= _root.control.enemies.length) { if (_root.control.enemies[i] == this) { _root.control.enemies.splice(i, 1); break; } ++i; } --_root.control.normal; this.removeMovieClip(); } } else { gotoAndStop('death3'); hurt = false; if (_alpha > 0) { if (this.death3._currentframe > 23) { _alpha = _alpha - 5; } } else { i = 0; while (i <= _root.control.enemies.length) { if (_root.control.enemies[i] == this) { _root.control.enemies.splice(i, 1); break; } ++i; } this.removeMovieClip(); } } } else { if (lock) { pauseSelf(); } } } } } movieClip 910 { } movieClip 912 { frame 1 { gotoAndStop(_parent._parent.wep); } } movieClip 914 { frame 1 { gotoAndStop(_parent._parent.head); } } movieClip 916 { } movieClip 918 { frame 1 { gotoAndStop(_parent._parent.body); } } movieClip 919 { } movieClip 922 { } movieClip 923 { frame 1 { num = 3 + random(2); newSound = new Sound(); newSound.attachSound(_root.skeletonSounds[num]); newSound.setVolume(70); newSound.start(); } frame 5 { _parent.hurt = false; _parent.attack = false; stop(); } } movieClip 925 { frame 14 { ++_global.es1; ++_global.es2; _root.swordBoom.duplicateMovieClip('swordBoom' + _global.es1, _global.es2); _root['swordBoom' + _global.es1]._x = _parent._x + 202 * (_parent._xscale / 100); _root['swordBoom' + _global.es1]._y = _parent._y + 54; } instance of movieClip 783 { onClipEvent (load) { if (this.hitTest(_root.player.guard)) { cancel = true; _root.arm.sword.sword.spark.gotoAndPlay(1); _root.arm.energy -= 80; _root.player.hurt(3); } else { if (this.hitTest(_root.player.hit) && !cancel) { _root.player.hurt(5); } } } } frame 21 { if (_parent.updateDirrection()) { gotoAndPlay('second'); } } frame 38 { _parent.attack = false; } frame 41 { if (_parent.attack) { gotoAndPlay(1); } } frame 77 { ++_global.es1; ++_global.es2; _root.swordBoom.duplicateMovieClip('swordBoom' + _global.es1, _global.es2); _root['swordBoom' + _global.es1]._x = _parent._x + -236 * (_parent._xscale / 100); _root['swordBoom' + _global.es1]._y = _parent._y + 64.2; } instance of movieClip 783 { onClipEvent (load) { if (this.hitTest(_root.player.guard)) { cancel = true; _root.arm.sword.sword.spark.gotoAndPlay(1); _root.arm.energy -= 80; _root.player.hurt(3); } else { if (this.hitTest(_root.player.hit) && !cancel) { _root.player.hurt(5); } } } } frame 98 { _parent.attack = false; } frame 101 { if (_parent.attack) { if (_root.player._x > _parent._x) { _parent._xscale = 100; } else { _parent._xscale = -100; } gotoAndPlay(1); } } } movieClip 930 { } movieClip 947 { frame 1 { _root.createBoneExplosion(55, _parent._x, _parent._y); } frame 80 { stop(); } } movieClip 950 { } movieClip 954 { frame 1 { gotoAndStop(_parent._parent.head); } } movieClip 956 { frame 1 { } } movieClip 958 { } movieClip 960 { } movieClip 991 { frame 27 { num = random(3); newSound = new Sound(); newSound.attachSound(_root.skeletonSounds[num]); newSound.setVolume(100); newSound.start(); } instance of movieClip 783 { onClipEvent (load) { if (this.hitTest(_root.player.guard)) { cancel = true; _root.arm.sword.sword.spark.gotoAndPlay(1); _root.arm.energy -= 80; _root.player.hurt(4); } else { if (this.hitTest(_root.player.hit) && !cancel) { _root.player.hurt(6); } } } } frame 90 { stop(); _parent.emerging = false; } } movieClip 996 { frame 1 { stop(); } frame 27 { stop(); _parent.dropping = false; } } movieClip 997 { frame 1 { stop(); } instance FD of movieClip 762 { onClipEvent (enterFrame) { if (_alpha >= 0) { play(); } else { stop(); } } } instance LD of movieClip 766 { onClipEvent (enterFrame) { if (_alpha >= 0) { _alpha = _alpha - 10; play(); } else { stop(); } } } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } frame 6 { stop(); } frame 7 { stop(); } frame 8 { stop(); } } instance en14s of movieClip 997 { onClipEvent (load) { function dropGold(chance) { _root.goldDrop(random(goldDropChance), _x, _y, false); _root.healthDrop(random(healthDropChance), this._x, this._y); } function isBoss() { return true; } function pauseSelf() { if (attack) { action = 'attack'; this.atk.stop(); } else { if (emerging) { action = 'emerging'; this.emerge.stop(); } else { if (dropping) { action = 'dropping'; this.drop.stop(); } else { if (dead) { action = 'dead'; frame1 = this.death._currentframe; frame2 = this.death2._currentframe; this.death.stop(); this.death2.stop(); } else { action = 'null'; gotoAndStop('stand'); } } } } } function unPause() { if (action == 'attack') { this.atk.play(); } else { if (action == 'emerging') { this.emerge.play(); } else { if (action == 'dropping') { this.drop.play(); } else { if (action == 'dead') { this.death.gotoAndPlay(frame1 - 1); this.death2.gotoAndPlay(frame2 - 1); } } } } hurt = false; action = 'null'; } function updateDirrection() { if (Math.abs(_root.player._x - _x) <= 100) { if (_root.player._x > this._x && _xscale == -100) { attack = true; return true; } else { if (_root.player._x < this._x && _xscale == 100) { attack = true; return true; } } } else { return false; } } function playHurtSound() { newSound.position = newSound.duration || firstPlay; if (newSound.position) { firstPlay = false; num = 3 + random(2); newSound.attachSound(_root.skeletonSounds[num]); newSound.setVolume(70); newSound.start(); } } if (this._name != 'en14s') { _root.control.enemies.push(this); hp = 105; dtype = 1; var knockBack = false; var hurt = false; var flyup = false; var dead = false; bottom = 173.8; dirr = 1; KBcounter = 0; var forceUp = 0; extraDamage = 0; redAmount = 0; var my_color = new Color(this); healthDropChance = 5; goldDropChance = 15; head = 1 + random(3); body = 1 + random(2); wep = 1 + random(3); emerging; dropping; rateDrop = 9; gotoAndStop('emerge'); if (_root.player._x > this._x) { dirr = 1; _xscale = 100; } else { dirr = -1; _xscale = -100; } } action = 'null'; attack = false; newSound = new Sound(this); firstPlay = true; } onClipEvent (enterFrame) { if (this._name != 'en14s') { if (!_root.pawsd && !emerging && !dropping) { if (!_root.scrollLock) { if (_root.player.scrollStartR) { _x = _x - _root.player.speed; } else { if (_root.player.scrollStartL) { _x = _x + _root.player.speed; } } } if (!dead) { if (Math.abs(_root.player._x - _x) <= 100) { attack = true; gotoAndStop('attack'); } if (_root.player._x > this._x && !attack) { dirr = 1; gotoAndStop('move'); _xscale = 100; if (_y >= bottom - 20) { _x = _x + 3; } } else { if (!attack) { dirr = -1; gotoAndStop('move'); _xscale = -100; if (_y >= bottom - 20) { _x = _x - 3; } } } if (this.hit.hitTest(_root.arm.sword.s)) { playHurtSound(); hurt = true; ++_global.es1; ++_global.es2; _root.dCounter.duplicateMovieClip('dCounter' + _global.es1, _global.es2); _root['dCounter' + _global.es1]._x = this._x; _root['dCounter' + _global.es1]._y = this._y; if (_root.player.dash) { extraDamage = 2; } _root['dCounter' + _global.es1].damageCounter = _root.arm.power + _root.arm.damage + extraDamage; hp -= _root.arm.power + _root.arm.damage + extraDamage; knockBack = true; force = dirr * (_root.arm.knockBack + extraDamage); if (_root.arm.up) { flyup = true; forceUp = -1 * (_root.arm.knockBack + _root.arm.power / 2 + extraDamage); } } } if (hp <= 0 && !dead) { ++_root.control.killings; --_root.control.strong; ++_global.kills; --_root.killsLeft.killCount; _root.score += 300; dropGold(6); dead = true; } if (hurt) { redAmount = 255; if (!dead && _root.arm.damagetype == 'lightning' && this.LD._alpha <= 0) { this.LD._alpha = 100; } else { if (!dead && _root.arm.damagetype == 'fire' && this.FD._alpha <= 0) { this.FD._alpha = 100; dtype = 2; } } hurt = false; } if (flyup) { } if (knockBack) { if (KBcounter <= _root.arm.knockBack + extraDamage) { _x = _x - force; force *= 0.6; ++KBcounter; } else { knockBack = false; KBcounter = 0; extraDamage = 0; } } if (!dead) { if (_x < -250) { i = 0; while (i <= _root.control.enemies.length) { if (_root.control.enemies[i] == this) { _root.control.enemies.splice(i, 1); break; } ++i; } this.removeMovieClip(); } } else { gotoAndStop(4 + dtype); if (_alpha > 0) { hurt = false; if (this.death2._currentframe > 75) { _alpha = _alpha - 5; } else { if (this.death._currentframe > 75) { _alpha = _alpha - 5; } } } else { i = 0; while (i <= _root.control.enemies.length) { if (_root.control.enemies[i] == this) { _root.control.enemies.splice(i, 1); break; } ++i; } this.removeMovieClip(); } } if (redAmount > 0) { var myColorTransform = {'ra': 100, 'rb': redAmount, 'ga': 100, 'gb': 0, 'ba': 100, 'bb': 0, 'aa': 100, 'ab': 0}; my_color.setTransform(myColorTransform); redAmount -= 15; } } else { if (!_root.pawsd && emerging) { gotoAndStop('emerge'); } else { if (!_root.pawsd && dropping) { if (!_root.scrollLock) { if (_root.player.scrollStartR) { _x = _x - _root.player.speed; } else { if (_root.player.scrollStartL) { _x = _x + _root.player.speed; } } } if (_y < bottom) { gotoAndStop('dropping'); _y = _y + rateDrop; rateDrop *= 1.3; } else { _y = bottom; this.drop.play(); } } else { pauseSelf(); } } } } } } movieClip 999 { } instance bone3s of movieClip 999 { onClipEvent (load) { function remove() { i = 0; while (i <= _root.gcontrol.miscItems.length) { if (_root.gcontrol.miscItems[i] == this) { _root.gcontrol.miscItems.splice(i, 1); break; } ++i; } this.removeMovieClip(); } if (this._name != 'bone3s' && !_root.pawsd) { _root.gcontrol.miscItems.push(this); rateX; rateY; fade = false; rot = 15 + random(20); } } onClipEvent (enterFrame) { if (this._name != 'bone3s' && !_root.pawsd) { if (_y > 224) { _y = 224; rateY *= -0.5; rot *= 0.5; if (Math.abs(rateY) < 3.5) { rateY = 0; fade = true; } } _x = _x + rateX; if (rateX > 0) { _rotation = _rotation + rot; rateX -= 0.1; } else { _rotation = _rotation - rot; rateX += 0.1; } _y = _y - rateY; if (!fade) { rateY -= 2; } if (!_root.scrollLock) { if (_root.player.scrollStartR) { _x = _x - _root.player.speed; } else { if (_root.player.scrollStartL) { _x = _x + _root.player.speed; } } } if (fade && _alpha > 0) { _alpha = _alpha - 5; } else { if (fade) { remove(); } } } } } movieClip 1001 { } instance bone1s of movieClip 1001 { onClipEvent (load) { function remove() { i = 0; while (i <= _root.gcontrol.miscItems.length) { if (_root.gcontrol.miscItems[i] == this) { _root.gcontrol.miscItems.splice(i, 1); break; } ++i; } this.removeMovieClip(); } if (this._name != 'bone1s' && !_root.pawsd) { _root.gcontrol.miscItems.push(this); rateX; rateY; fade = false; rot = 15 + random(20); } } onClipEvent (enterFrame) { if (this._name != 'bone1s' && !_root.pawsd) { if (_y > 224) { _y = 224; rateY *= -0.5; rot *= 0.5; if (Math.abs(rateY) < 3.5) { rateY = 0; fade = true; } } _x = _x + rateX; if (rateX > 0) { _rotation = _rotation + rot; rateX -= 0.1; } else { _rotation = _rotation - rot; rateX += 0.1; } _y = _y - rateY; if (!fade) { rateY -= 2; } if (!_root.scrollLock) { if (_root.player.scrollStartR) { _x = _x - _root.player.speed; } else { if (_root.player.scrollStartL) { _x = _x + _root.player.speed; } } } if (fade && _alpha > 0) { _alpha = _alpha - 5; } else { if (fade) { remove(); } } } } } movieClip 1003 { } instance bone2s of movieClip 1003 { onClipEvent (load) { function remove() { i = 0; while (i <= _root.gcontrol.miscItems.length) { if (_root.gcontrol.miscItems[i] == this) { _root.gcontrol.miscItems.splice(i, 1); break; } ++i; } this.removeMovieClip(); } if (this._name != 'bone2s' && !_root.pawsd) { _root.gcontrol.miscItems.push(this); rateX; rateY; fade = false; rot = 15 + random(20); } } onClipEvent (enterFrame) { if (this._name != 'bone2s' && !_root.pawsd) { if (_y > 224) { _y = 224; rateY *= -0.5; rot *= 0.5; if (Math.abs(rateY) < 3.5) { rateY = 0; fade = true; } } _x = _x + rateX; if (rateX > 0) { _rotation = _rotation + rot; rateX -= 0.1; } else { _rotation = _rotation - rot; rateX += 0.1; } _y = _y - rateY; if (!fade) { rateY -= 2; } if (!_root.scrollLock) { if (_root.player.scrollStartR) { _x = _x - _root.player.speed; } else { if (_root.player.scrollStartL) { _x = _x + _root.player.speed; } } } if (fade && _alpha > 0) { _alpha = _alpha - 5; } else { if (fade) { remove(); } } } } } movieClip 1007 { frame 1 { gotoAndStop(_parent._parent.wep); } } movieClip 1011 { frame 1 { gotoAndStop(_parent._parent.head); } } movieClip 1014 { frame 1 { gotoAndStop(_parent._parent.body); } } movieClip 1015 { } movieClip 1017 { } movieClip 1018 { } movieClip 1019 { frame 1 { num = 3 + random(2); newSound = new Sound(); newSound.attachSound(_root.skeletonSounds[num]); newSound.setVolume(70); newSound.start(); } frame 5 { _parent.hurt = false; } } movieClip 1027 { instance of movieClip 789 { onClipEvent (load) { if (this.hitTest(_root.player.guard)) { cancel = true; _root.arm.sword.sword.spark.gotoAndPlay(1); _root.arm.energy -= 7; } else { if (this.hitTest(_root.player.hit) && !cancel) { _root.player.hurt(1); } } } } instance of movieClip 789 { onClipEvent (load) { if (this.hitTest(_root.player.guard)) { cancel = true; _root.arm.sword.sword.spark.gotoAndPlay(1); _root.arm.energy -= 10; } else { if (this.hitTest(_root.player.hit) && !cancel) { _root.player.hurt(1); } } } } instance of movieClip 789 { onClipEvent (load) { if (this.hitTest(_root.player.guard)) { cancel = true; _root.arm.sword.sword.spark.gotoAndPlay(1); _root.arm.energy -= 7; } else { if (this.hitTest(_root.player.hit) && !cancel) { _root.player.hurt(2); } } } } frame 25 { _parent.attack = false; } } movieClip 1030 { frame 1 { _root.createBoneExplosion(15, _parent._x, _parent._y); } frame 25 { stop(); } } movieClip 1060 { frame 27 { num = random(3); newSound = new Sound(); newSound.attachSound(_root.skeletonSounds[num]); newSound.setVolume(100); newSound.start(); } frame 60 { stop(); _parent.emerging = false; } } movieClip 1061 { frame 1 { stop(); } instance FD of movieClip 762 { onClipEvent (enterFrame) { if (_alpha >= 0) { play(); } else { stop(); } } } instance LD of movieClip 766 { onClipEvent (enterFrame) { if (_alpha >= 0) { _alpha = _alpha - 10; play(); } else { stop(); } } } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } frame 6 { stop(); } frame 7 { stop(); } } instance en13s of movieClip 1061 { onClipEvent (load) { function dropGold(chance) { _root.goldDrop(random(goldDropChance), _x, _y, false); _root.healthDrop(random(healthDropChance), this._x, this._y); } function isBoss() { return false; } function pauseSelf() { if (attack) { action = 'attack'; this.atk.stop(); } else { if (emerging) { action = 'emerging'; this.emerge.stop(); } else { if (dead) { action = 'dead'; frame1 = this.death._currentframe; frame2 = this.death2._currentframe; this.death.stop(); this.death2.stop(); } else { action = 'null'; gotoAndStop('stand'); } } } } function unPause() { if (action == 'attack') { this.atk.play(); } else { if (action == 'emerging') { this.emerge.play(); } else { if (action == 'dead') { this.death.gotoAndPlay(frame1 - 1); this.death2.gotoAndPlay(frame2 - 1); } } } hurt = false; action = 'null'; } if (this._name != 'en13s') { _root.control.enemies.push(this); hp = 48; dtype = 1; var knockBack = false; var hurt = false; var flyup = false; var dead = false; bottom = 194.2; dirr = 1; KBcounter = 0; var forceUp = 0; extraDamage = 0; healthDropChance = 0; goldDropChance = 4; head = 1 + random(3); body = 1 + random(2); wep = 1 + random(3); emerging; gotoAndStop('emerge'); if (_root.player._x > this._x) { dirr = 1; _xscale = 100; } else { if (!hurt && !attack) { dirr = -1; _xscale = -100; } } } action = 'null'; attack = false; } onClipEvent (enterFrame) { if (this._name != 'en13s') { if (!_root.pawsd && !emerging) { if (!_root.scrollLock) { if (_root.player.scrollStartR) { _x = _x - _root.player.speed; } else { if (_root.player.scrollStartL) { _x = _x + _root.player.speed; } } } if (!dead) { if (Math.abs(_root.player._x - _x) <= 60 && !hurt) { attack = true; gotoAndStop('attack'); } if (_root.player._x > this._x && !hurt && !attack) { dirr = 1; gotoAndStop('move'); _xscale = 100; if (_y >= bottom - 20) { _x = _x + 2.5; } } else { if (!hurt && !attack) { dirr = -1; gotoAndStop('move'); _xscale = -100; if (_y >= bottom - 20) { _x = _x - 2.5; } } } if (this.hit.hitTest(_root.arm.sword.s)) { if (_root.arm.swordType == 6) { dtype = 2; } else { dtype = 1; } hurt = true; gotoAndStop('hurt'); ++_global.es1; ++_global.es2; _root.dCounter.duplicateMovieClip('dCounter' + _global.es1, _global.es2); _root['dCounter' + _global.es1]._x = this._x; _root['dCounter' + _global.es1]._y = this._y; if (_root.player.dash) { extraDamage = 2; } _root['dCounter' + _global.es1].damageCounter = _root.arm.power + _root.arm.damage + extraDamage; hp -= _root.arm.power + _root.arm.damage + extraDamage; knockBack = true; force = dirr * (_root.arm.knockBack + extraDamage); if (_root.arm.up) { flyup = true; forceUp = -1 * (_root.arm.knockBack + _root.arm.power / 2 + extraDamage); } } } if (hp <= 0 && !dead) { ++_root.control.killings; --_root.control.normal; ++_global.kills; --_root.killsLeft.killCount; _root.score += 80; dropGold(6); dead = true; } if (hurt) { attack = false; if (!dead && _root.arm.damagetype == 'lightning' && this.LD._alpha <= 0) { this.LD._alpha = 100; } else { if (!dead && _root.arm.damagetype == 'fire' && this.FD._alpha <= 0) { this.FD._alpha = 100; dtype = 2; } } } if (flyup) { _y = _y + forceUp; if (_y < bottom) { if (forceUp < 30) { ++forceUp; } } else { flyup = false; _y = bottom; } } if (knockBack) { if (KBcounter <= _root.arm.knockBack + extraDamage) { _x = _x - force; force *= 0.6; ++KBcounter; } else { knockBack = false; KBcounter = 0; extraDamage = 0; } } if (!dead) { if (_x < -250) { i = 0; while (i <= _root.control.enemies.length) { if (_root.control.enemies[i] == this) { _root.control.enemies.splice(i, 1); break; } ++i; } this.removeMovieClip(); } } else { gotoAndStop(4 + dtype); if (_alpha > 0) { hurt = false; if (this.death2._currentframe > 24) { _alpha = _alpha - 5; } else { if (this.death._currentframe > 24) { _alpha = _alpha - 5; } } } else { i = 0; while (i <= _root.control.enemies.length) { if (_root.control.enemies[i] == this) { _root.control.enemies.splice(i, 1); break; } ++i; } this.removeMovieClip(); } } } else { if (!_root.pawsd && emerging) { gotoAndStop('emerge'); if (!_root.scrollLock) { if (_root.player.scrollStartR) { _x = _x - _root.player.speed; } else { if (_root.player.scrollStartL) { _x = _x + _root.player.speed; } } } } else { pauseSelf(); } } } } } movieClip 1063 { } movieClip 1064 { } movieClip 1065 { } movieClip 1067 { frame 5 { _parent.hurt = false; } } movieClip 1070 { } movieClip 1073 { instance of movieClip 789 { onClipEvent (load) { if (this.hitTest(_root.player.guard)) { cancel = true; _root.arm.sword.sword.spark.gotoAndPlay(1); _root.arm.energy -= 5; } else { if (this.hitTest(_root.player.hit) && !cancel) { _root.player.hurt(2); } } } } frame 19 { _parent.attack = false; } } movieClip 1092 { } movieClip 1094 { } movieClip 1096 { frame 42 { stop(); } } movieClip 1099 { frame 42 { stop(); } } movieClip 1125 { frame 27 { num = random(3); newSound = new Sound(); newSound.attachSound(_root.zombieSounds[num]); newSound.setVolume(100); newSound.start(); } frame 60 { stop(); _parent.emerging = false; } } movieClip 1126 { frame 1 { stop(); } instance FD of movieClip 762 { onClipEvent (enterFrame) { if (_alpha >= 0) { play(); } else { stop(); } } } instance LD of movieClip 766 { onClipEvent (enterFrame) { if (_alpha >= 0) { _alpha = _alpha - 10; play(); } else { stop(); } } } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } frame 6 { stop(); } frame 7 { stop(); } } instance en12s of movieClip 1126 { onClipEvent (load) { function dropGold(chance) { _root.goldDrop(random(goldDropChance), _x, _y, false); _root.healthDrop(random(healthDropChance), this._x, this._y); } function isBoss() { return false; } function pauseSelf() { if (attack) { action = 'attack'; this.atk.stop(); } else { if (emerging) { action = 'emerging'; this.emerge.stop(); } else { if (dead) { action = 'dead'; frame1 = this.death._currentframe; frame2 = this.death2._currentframe; this.death.stop(); this.death2.stop(); } else { action = 'null'; gotoAndStop('stand'); } } } } function unPause() { if (action == 'attack') { this.atk.play(); } else { if (action == 'emerging') { this.emerge.play(); } else { if (action == 'dead') { this.death.gotoAndPlay(frame1 - 1); this.death2.gotoAndPlay(frame2 - 1); } } } hurt = false; action = 'null'; } if (this._name != 'en12s') { _root.control.enemies.push(this); hp = 45; dtype = 1; var knockBack = false; var hurt = false; var flyup = false; var dead = false; bottom = 194.2; dirr = 1; KBcounter = 0; var forceUp = 0; extraDamage = 0; healthDropChance = 0; goldDropChance = 4; head = 1 + random(3); body = 1; emerging; gotoAndStop('emerge'); if (_root.player._x > this._x) { dirr = 1; _xscale = 100; } else { if (!hurt && !attack) { dirr = -1; _xscale = -100; } } } action = 'null'; attack = false; } onClipEvent (enterFrame) { if (this._name != 'en12s') { if (!_root.pawsd && !emerging) { if (!_root.scrollLock) { if (_root.player.scrollStartR) { _x = _x - _root.player.speed; } else { if (_root.player.scrollStartL) { _x = _x + _root.player.speed; } } } if (!dead) { if (Math.abs(_root.player._x - _x) <= 40 && !hurt) { attack = true; gotoAndStop('attack'); } if (_root.player._x > this._x && !hurt && !attack) { dirr = 1; gotoAndStop('move'); _xscale = 100; if (_y >= bottom - 20) { _x = _x + 1; } } else { if (!hurt && !attack) { dirr = -1; gotoAndStop('move'); _xscale = -100; if (_y >= bottom - 20) { _x = _x - 1; } } } if (this.hit.hitTest(_root.arm.sword.s)) { if (_root.arm.swordType == 6) { dtype = 2; } else { dtype = 1; } hurt = true; gotoAndStop('hurt'); ++_global.es1; ++_global.es2; _root.dCounter.duplicateMovieClip('dCounter' + _global.es1, _global.es2); _root['dCounter' + _global.es1]._x = this._x; _root['dCounter' + _global.es1]._y = this._y; if (_root.player.dash) { extraDamage = 2; } _root['dCounter' + _global.es1].damageCounter = _root.arm.power + _root.arm.damage + extraDamage; hp -= _root.arm.power + _root.arm.damage + extraDamage; knockBack = true; force = dirr * (_root.arm.knockBack + extraDamage); if (_root.arm.up) { flyup = true; forceUp = -1 * (_root.arm.knockBack + _root.arm.power / 2 + extraDamage); } } } if (hp <= 0 && !dead) { ++_root.control.killings; --_root.control.normal; ++_global.kills; --_root.killsLeft.killCount; _root.score += 60; dropGold(3); dead = true; } if (hurt) { attack = false; if (!dead && _root.arm.damagetype == 'lightning' && this.LD._alpha <= 0) { this.LD._alpha = 100; } else { if (!dead && _root.arm.damagetype == 'fire' && this.FD._alpha <= 0) { this.FD._alpha = 100; dtype = 2; } } ++_global.es1; ++_global.es2; _root.bloodZ.duplicateMovieClip('bloodZ' + _global.es1, _global.es2); _root['bloodZ' + _global.es1]._x = this._x; _root['bloodZ' + _global.es1]._y = this._y; _root['bloodZ' + _global.es1]._rotation = _root.arm._rotation + random(20); } if (flyup) { _y = _y + forceUp; if (_y < bottom) { if (forceUp < 30) { ++forceUp; } } else { flyup = false; _y = bottom; } } if (knockBack) { if (KBcounter <= _root.arm.knockBack + extraDamage) { _x = _x - force; force *= 0.6; ++KBcounter; } else { knockBack = false; KBcounter = 0; extraDamage = 0; } } if (!dead) { if (_x < -250) { i = 0; while (i <= _root.control.enemies.length) { if (_root.control.enemies[i] == this) { _root.control.enemies.splice(i, 1); break; } ++i; } this.removeMovieClip(); } } else { gotoAndStop(4 + dtype); if (_alpha > 0) { hurt = false; if (this.death2._currentframe > 39) { _alpha = _alpha - 5; } else { if (this.death._currentframe > 39) { _alpha = _alpha - 5; } } } else { i = 0; while (i <= _root.control.enemies.length) { if (_root.control.enemies[i] == this) { _root.control.enemies.splice(i, 1); break; } ++i; } this.removeMovieClip(); } } } else { if (!_root.pawsd && emerging) { gotoAndStop('emerge'); if (!_root.scrollLock) { if (_root.player.scrollStartR) { _x = _x - _root.player.speed; } else { if (_root.player.scrollStartL) { _x = _x + _root.player.speed; } } } } else { pauseSelf(); } } } } } movieClip 1133 { frame 6 { stop(); } } instance bloodZ of movieClip 1133 { onClipEvent (load) { if (this._name != 'bloodZ') { up = 15 + _root.arm.damage + _root.arm.power; across = 15 + _root.arm.damage; bottom = 210 + random(5); } } onClipEvent (enterFrame) { if (this._name != 'bloodZ') { if (!_root.scrollLock) { if (_root.player.scrollStartR) { _x = _x - _root.player.speed; } else { if (_root.player.scrollStartL) { _x = _x + _root.player.speed; } } } if (_alpha > 0) { _alpha = _alpha - 8; } else { this.removeMovieClip(); } if (!floored) { if (slow) { up = 8; across = 8; } _y = _y - up * Math.cos(_rotation * 0.0174532925199433); _x = _x + across * Math.sin(_rotation * 0.0174532925199433); _rotation = _rotation * 1.05; if (_y >= bottom) { floored = true; } } } } } movieClip 1143 { frame 12 { this.removeMovieClip(); } } instance telePoof of movieClip 1143 { onClipEvent (load) { if (this._name != 'telePoof') { } else { stop(); } } onClipEvent (enterFrame) { if (this._name != 'telePoof') { } } } movieClip 1149 { frame 7 { this.removeMovieClip(); } } instance coin4E of movieClip 1149 { onClipEvent (load) { if (this._name != 'coin4E') { } else { stop(); } } } movieClip 1154 { } instance coin4s of movieClip 1154 { onClipEvent (load) { function remove() { i = 0; while (i <= _root.gcontrol.miscItems.length) { if (_root.gcontrol.miscItems[i] == this) { _root.gcontrol.miscItems.splice(i, 1); break; } ++i; } this.removeMovieClip(); } if (this._name != 'coin4s') { _root.gcontrol.miscItems.push(this); movex = (-1 + random(3)) * 2; movey = 15 + random(10); if (movey % 2 != 0) { --movey; } fade = false; } } onClipEvent (enterFrame) { if (this._name != 'coin4s' && !_root.pawsd) { if (_y > 224) { _y = 224; movey *= -0.5; if (Math.abs(movey) < 3.5) { movey = 0; fade = true; } } _x = _x + movex; if (movex > 0) { movex -= 0.1; } else { movex += 0.1; } _y = _y - movey; movey -= 2; if (!_root.scrollLock) { if (_root.player.scrollStartR) { _x = _x - _root.player.speed; } else { if (_root.player.scrollStartL) { _x = _x + _root.player.speed; } } } if (this.hitTest(_root.player.hit)) { _root.gold += 25; ++_global.eb1; ++_global.eb2; _root.coin1E.duplicateMovieClip('coin1E' + _global.eb1, _global.eb2); _root['coin1E' + _global.eb1]._x = _x; _root['coin1E' + _global.eb1]._y = _y; remove(); } if (fade && _alpha > 0) { _alpha = _alpha - 5; } else { if (fade) { remove(); } } } } } movieClip 1158 { frame 7 { this.removeMovieClip(); } } instance coin1E of movieClip 1158 { onClipEvent (load) { if (this._name != 'coin1E') { } else { stop(); } } } movieClip 1163 { } instance coin1s of movieClip 1163 { onClipEvent (load) { function remove() { i = 0; while (i <= _root.gcontrol.miscItems.length) { if (_root.gcontrol.miscItems[i] == this) { _root.gcontrol.miscItems.splice(i, 1); break; } ++i; } this.removeMovieClip(); } if (this._name != 'coin1s') { _root.gcontrol.miscItems.push(this); movex = (-1 + random(3)) * 2; movey = 15 + random(10); if (movey % 2 != 0) { --movey; } fade = false; } } onClipEvent (enterFrame) { if (this._name != 'coin1s' && !_root.pawsd) { if (_y > 224) { _y = 224; movey *= -0.5; if (Math.abs(movey) < 3.5) { movey = 0; fade = true; } } _x = _x + movex; if (movex > 0) { movex -= 0.1; } else { movex += 0.1; } _y = _y - movey; movey -= 2; if (!_root.scrollLock) { if (_root.player.scrollStartR) { _x = _x - _root.player.speed; } else { if (_root.player.scrollStartL) { _x = _x + _root.player.speed; } } } if (this.hitTest(_root.player.hit)) { _root.gold += 5; ++_global.eb1; ++_global.eb2; _root.coin1E.duplicateMovieClip('coin1E' + _global.eb1, _global.eb2); _root['coin1E' + _global.eb1]._x = _x; _root['coin1E' + _global.eb1]._y = _y; remove(); } if (fade && _alpha > 0) { _alpha = _alpha - 5; } else { if (fade) { remove(); } } } } } movieClip 1167 { frame 7 { this.removeMovieClip(); } } instance coin2E of movieClip 1167 { onClipEvent (load) { if (this._name != 'coin2E') { } else { stop(); } } } movieClip 1172 { } instance coin2s of movieClip 1172 { onClipEvent (load) { function remove() { i = 0; while (i <= _root.gcontrol.miscItems.length) { if (_root.gcontrol.miscItems[i] == this) { _root.gcontrol.miscItems.splice(i, 1); break; } ++i; } this.removeMovieClip(); } if (this._name != 'coin2s') { _root.gcontrol.miscItems.push(this); movex = (-1 + random(3)) * 2; movey = 15 + random(10); if (movey % 2 != 0) { --movey; } fade = false; } } onClipEvent (enterFrame) { if (this._name != 'coin2s' && !_root.pawsd) { if (_y > 224) { _y = 224; movey *= -0.5; if (Math.abs(movey) < 3.5) { movey = 0; fade = true; } } _x = _x + movex; if (movex > 0) { movex -= 0.1; } else { movex += 0.1; } _y = _y - movey; movey -= 2; if (!_root.scrollLock) { if (_root.player.scrollStartR) { _x = _x - _root.player.speed; } else { if (_root.player.scrollStartL) { _x = _x + _root.player.speed; } } } if (this.hitTest(_root.player.hit)) { _root.gold += 10; ++_global.eb1; ++_global.eb2; _root.coin2E.duplicateMovieClip('coin2E' + _global.eb1, _global.eb2); _root['coin2E' + _global.eb1]._x = _x; _root['coin2E' + _global.eb1]._y = _y; remove(); } if (fade && _alpha > 0) { _alpha = _alpha - 5; } else { if (fade) { remove(); } } } } } movieClip 1176 { frame 7 { stop(); } } movieClip 1183 { frame 1 { stop(); } frame 2 { i = 0; while (i < 5) { if (_root.player.hp == _root.player.maxhp) { break; } else { ++_root.player.hp; } ++i; } } frame 25 { i = 0; while (i <= _root.control.enemies.length) { if (_root.control.enemies[i] == this) { _root.control.enemies.splice(i, 1); break; } ++i; } this.removeMovieClip(); } } instance hp2up of movieClip 1183 { onClipEvent (load) { if (this._name != 'hp2up') { ratey = -4; _root.gcontrol.miscItems.push(this); } } onClipEvent (enterFrame) { if (this._name != 'hp2up') { if (!_root.scrollLock) { if (_root.player.scrollStartR) { _x = _x - _root.player.speed; } else { if (_root.player.scrollStartL) { _x = _x + _root.player.speed; } } } if (_y < 222) { ++ratey; _y = _y + ratey; } if (_x < -250) { i = 0; while (i <= _root.gcontrol.miscItems.length) { if (_root.gcontrol.miscItems[i] == this) { _root.gcontrol.miscItems.splice(i, 1); break; } ++i; } this.removeMovieClip(); } if (this.hitTest(_root.player.hit)) { play(); } } } } movieClip 1187 { instance of movieClip 789 { onClipEvent (enterFrame) { if (this.hitTest(_root.player.guard)) { cancel = true; _root.arm.sword.sword.spark.gotoAndPlay(1); _root.arm.energy -= 60; } else { if (this.hitTest(_root.player.hit) && !cancel) { _root.player.hurt(2); if (_root.player._x > 5 && _root.player._x < Stage.width) { _root.player._x += 15 * (100 / _parent._parent._xscale); } } } } } } movieClip 1188 { frame 15 { i = 0; while (i <= _root.gcontrol.miscItems.length) { if (_root.gcontrol.miscItems[i] == this) { _root.gcontrol.miscItems.splice(i, 1); break; } ++i; } this.removeMovieClip(); } } instance bossSlashWave of movieClip 1188 { onClipEvent (load) { if (this._name != 'bossSlashWave') { _root.gcontrol.miscItems.push(this); } else { stop(); } } } movieClip 1195 { frame 1 { gotoAndStop(_parent._parent.wep); } } movieClip 1198 { frame 1 { gotoAndStop(_parent._parent.head); } } movieClip 1201 { frame 1 { gotoAndStop(_parent._parent.head); } } movieClip 1202 { } movieClip 1203 { } movieClip 1204 { frame 5 { _parent.hurt = false; } } movieClip 1216 { instance of movieClip 789 { onClipEvent (load) { if (this.hitTest(_root.player.guard)) { cancel = true; _root.arm.sword.sword.spark.gotoAndPlay(1); _root.arm.energy -= 10 + _parent._parent.wep; } else { if (this.hitTest(_root.player.hit) && !cancel) { _root.player.hurt(1); } } } } instance of movieClip 783 { onClipEvent (load) { if (this.hitTest(_root.player.guard)) { cancel = true; _root.arm.sword.sword.spark.gotoAndPlay(1); _root.arm.energy -= 10 + _parent._parent.wep; } else { if (this.hitTest(_root.player.hit) && !cancel) { _root.player.hurt(1); } } } } instance of movieClip 789 { onClipEvent (load) { if (this.hitTest(_root.player.guard)) { cancel = true; _root.arm.sword.sword.spark.gotoAndPlay(1); _root.arm.energy -= 10 + _parent._parent.wep; } else { if (this.hitTest(_root.player.hit) && !cancel) { _root.player.hurt(1); } } } } instance of movieClip 783 { onClipEvent (load) { if (this.hitTest(_root.player.guard)) { cancel = true; _root.arm.sword.sword.spark.gotoAndPlay(1); _root.arm.energy -= 10 + _parent._parent.wep; } else { if (this.hitTest(_root.player.hit) && !cancel) { _root.player.hurt(1); } } } } instance of movieClip 789 { onClipEvent (load) { if (this.hitTest(_root.player.guard)) { cancel = true; _root.arm.sword.sword.spark.gotoAndPlay(1); _root.arm.energy -= 10 + _parent._parent.wep; } else { if (this.hitTest(_root.player.hit) && !cancel) { _root.player.hurt(1); } } } } frame 11 { if (_parent.updateDirrection()) { gotoAndPlay('twinSlash'); } else { play(); } } frame 23 { _parent.attack = false; stop(); } instance of movieClip 789 { onClipEvent (load) { if (this.hitTest(_root.player.guard)) { cancel = true; _root.arm.sword.sword.spark.gotoAndPlay(1); _root.arm.energy -= 20 + _parent._parent.wep; } else { if (this.hitTest(_root.player.hit) && !cancel) { _root.player.hurt(1); } } } } instance of movieClip 783 { onClipEvent (load) { if (this.hitTest(_root.player.guard)) { cancel = true; _root.arm.sword.sword.spark.gotoAndPlay(1); _root.arm.energy -= 10 + _parent._parent.wep; } else { if (this.hitTest(_root.player.hit) && !cancel) { _root.player.hurt(1); } } } } instance of movieClip 783 { onClipEvent (load) { if (this.hitTest(_root.player.guard)) { cancel = true; _root.arm.sword.sword.spark.gotoAndPlay(1); _root.arm.energy -= 10 + _parent._parent.wep; } else { if (this.hitTest(_root.player.hit) && !cancel) { _root.player.hurt(1); } } } } instance of movieClip 789 { onClipEvent (load) { if (this.hitTest(_root.player.guard)) { cancel = true; _root.arm.sword.sword.spark.gotoAndPlay(1); _root.arm.energy -= 10 + _parent._parent.wep; } else { if (this.hitTest(_root.player.hit) && !cancel) { _root.player.hurt(1); } } } } instance of movieClip 789 { onClipEvent (load) { if (this.hitTest(_root.player.guard)) { cancel = true; _root.arm.sword.sword.spark.gotoAndPlay(1); _root.arm.energy -= 10 + _parent._parent.wep; } else { if (this.hitTest(_root.player.hit) && !cancel) { _root.player.hurt(1); } } } } frame 48 { _parent.attack = false; } } movieClip 1234 { frame 32 { stop(); } } movieClip 1238 { frame 1 { _parent.hurt = false; } instance head of movieClip 1198 { onClipEvent (enterFrame) { _root.dist = _x; } } frame 14 { stop(); } } movieClip 1239 { frame 1 { stop(); } instance FD of movieClip 762 { onClipEvent (enterFrame) { if (_alpha >= 0) { play(); } else { stop(); } } } instance LD of movieClip 766 { onClipEvent (enterFrame) { if (_alpha >= 0) { _alpha = _alpha - 10; play(); } else { stop(); } } } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } frame 6 { stop(); } } instance en10s of movieClip 1239 { onClipEvent (load) { function updateDirrection() { if (Math.abs(_root.player._x - _x) <= 85 && !hurt) { if (_root.player._x > this._x) { _xscale = 100; } else { if (!hurt && !attack) { _xscale = -100; } } attack = true; return true; } else { return false; } } function isBoss() { return false; } function pauseSelf() { if (attack) { action = 'attack'; this.atk.stop(); } else { if (dead) { action = 'dead'; frame1 = this.death._currentframe; frame2 = this.death2._currentframe; this.death.stop(); this.death2.stop(); } else { action = 'null'; gotoAndStop('stand'); } } } function unPause() { if (action == 'attack') { this.atk.play(); } else { if (action == 'dead') { this.death.gotoAndPlay(frame1 - 1); this.death2.gotoAndPlay(frame2 - 1); } } hurt = false; action = 'null'; } if (this._name != 'en10s') { _root.control.enemies.push(this); hp = 28; dtype = 1; var knockBack = false; var hurt = false; var flyup = true; var dead = false; attack = false; bottom = 194.2; dirr = 1; KBcounter = 0; var forceUp = 0; extraDamage = 0; healthDropChance = 0; goldDropChance = 3 + random(6); body = 1 + random(2); head = 1 + random(2); wep = 1 + random(6); } action = 'null'; attack = false; } onClipEvent (enterFrame) { if (this._name != 'en10s') { if (!_root.pawsd) { if (!_root.scrollLock) { if (_root.player.scrollStartR) { _x = _x - _root.player.speed; } else { if (_root.player.scrollStartL) { _x = _x + _root.player.speed; } } } if (!dead) { if (Math.abs(_root.player._x - _x) <= 85 && !hurt) { if (_root.player._x > this._x && !hurt && !attack) { _xscale = 100; } else { if (!hurt && !attack) { _xscale = -100; } } attack = true; gotoAndStop('attack'); } if (_root.player._x > this._x && !hurt && !attack) { dirr = 1; gotoAndStop('move'); _xscale = 100; if (_y >= bottom - 20) { _x = _x + 3; } } else { if (!hurt && !attack) { dirr = -1; gotoAndStop('move'); _xscale = -100; if (_y >= bottom - 20) { _x = _x - 3; } } } if (this.hit.hitTest(_root.arm.sword.s)) { dtype = 1; hurt = true; gotoAndStop('hurt'); ++_global.es1; ++_global.es2; _root.dCounter.duplicateMovieClip('dCounter' + _global.es1, _global.es2); _root['dCounter' + _global.es1]._x = this._x; _root['dCounter' + _global.es1]._y = this._y; if (_root.player.dash) { extraDamage = 2; } _root['dCounter' + _global.es1].damageCounter = _root.arm.power + _root.arm.damage + extraDamage; hp -= _root.arm.power + _root.arm.damage + extraDamage; knockBack = true; force = dirr * (_root.arm.knockBack + extraDamage); if (_root.arm.up) { flyup = true; forceUp = -1 * (_root.arm.knockBack + _root.arm.power / 2 + extraDamage); } } } if (hp <= 0 && !dead) { ++_root.control.killings; --_root.killsLeft.killCount; _root.score += 90; --_root.control.strong; ++_global.kills; _root.goldDrop(random(goldDropChance), _x, _y, false); _root.healthDrop(random(healthDropChance), this._x, this._y); dead = true; } if (hurt) { attack = false; if (!dead && _root.arm.damagetype == 'lightning' && this.LD._alpha <= 0) { this.LD._alpha = 100; } else { if (!dead && _root.arm.damagetype == 'fire' && this.FD._alpha <= 0) { this.FD._alpha = 100; } } ++_global.es1; ++_global.es2; _root.blood.duplicateMovieClip('blood' + _global.es1, _global.es2); _root['blood' + _global.es1]._x = this._x; _root['blood' + _global.es1]._y = this._y; _root['blood' + _global.es1]._rotation = _root.arm._rotation + random(20); } if (flyup) { _y = _y + forceUp; if (_y < bottom) { if (forceUp < 30) { ++forceUp; } } else { flyup = false; _y = bottom; } } if (knockBack) { if (KBcounter <= _root.arm.knockBack + extraDamage) { _x = _x - force; force *= 0.6; ++KBcounter; } else { knockBack = false; KBcounter = 0; extraDamage = 0; } } if (!dead) { if (_x < -250) { i = 0; while (i <= _root.control.enemies.length) { if (_root.control.enemies[i] == this) { _root.control.enemies.splice(i, 1); break; } ++i; } --_root.control.strong; this.removeMovieClip(); } } else { gotoAndStop(4 + dtype); hurt = false; if (this.death._currentframe < 20 && dtype == 1) { ++_global.es1; ++_global.es2; _root.blood.duplicateMovieClip('blood' + _global.es1, _global.es2); _root['blood' + _global.es1]._x = this._x + (this.death._x + this.death.head._x) * dirr - 10 * Math.sin(_root['blood' + _global.es1]._rotation * 0.0174532925199433); _root['blood' + _global.es1].slow = true; _root['blood' + _global.es1]._y = this._y + this.death._y + this.death.head._y + 10 * Math.cos(_rotation * 0.0174532925199433); _root['blood' + _global.es1]._rotation = (this.death.head._rotation + 180) * dirr; ++_global.es1; ++_global.es2; _root.blood.duplicateMovieClip('blood' + _global.es1, _global.es2); _root['blood' + _global.es1]._x = this._x + this.death._x + this.death.body._x; _root['blood' + _global.es1].slow = true; _root['blood' + _global.es1]._y = this._y + this.death._y + this.death.body._y; offset = random(70); _root['blood' + _global.es1]._rotation = 20 - offset; } else { if (_alpha > 0) { if (this.death2._currentframe > 20) { _alpha = _alpha - 5; } else { if (this.death._currentframe > 20) { _alpha = _alpha - 5; } } } else { i = 0; while (i <= _root.control.enemies.length) { if (_root.control.enemies[i] == this) { _root.control.enemies.splice(i, 1); break; } ++i; } this.removeMovieClip(); } } } } else { pauseSelf(); } } } } movieClip 1245 { frame 1 { stop(); } frame 3 { powerUp(); } frame 7 { opened = true; stop(); } } instance box3s of movieClip 1245 { onClipEvent (load) { function powerUp() { ++_global.eb1; ++_global.eb2; _root.fireOrb.duplicateMovieClip('fireOrb' + _global.eb1, _global.eb2); _root['fireOrb' + _global.eb1]._x = _x; _root['fireOrb' + _global.eb1]._y = 212; } if (this._name != 'box3s') { hp = 10; var knockBack = false; KBcounter = 0; dirr = 1; var flyup = false; var forceUp = 0; bottom = _y; extraDamage = 0; opened = false; _root.control.enemies.push(this); } } onClipEvent (enterFrame) { if (this._name != 'box3s') { if (!_root.pawsd) { if (_root.player._x > this._x) { dirr = 1; } else { dirr = -1; } if (!_root.scrollLock) { if (_root.player.scrollStartR) { _x = _x - _root.player.speed; } else { if (_root.player.scrollStartL) { _x = _x + _root.player.speed; } } } if (this.hit.hitTest(_root.arm.sword.s)) { ++_global.es1; ++_global.es2; _root.dCounter.duplicateMovieClip('dCounter' + _global.es1, _global.es2); _root['dCounter' + _global.es1]._x = this._x; _root['dCounter' + _global.es1]._y = this._y; if (_root.player.dash) { extraDamage = 2; } _root['dCounter' + _global.es1].damageCounter = _root.arm.power + _root.arm.damage + extraDamage; hp -= _root.arm.power + _root.arm.damage + extraDamage; knockBack = true; force = dirr * (_root.arm.knockBack + extraDamage); if (_root.arm.up) { flyup = true; forceUp = -1 * (_root.arm.knockBack + _root.arm.power / 2 + extraDamage); } } if (flyup) { _y = _y + forceUp; if (_y < bottom) { if (forceUp < 30) { ++forceUp; } } else { flyup = false; _y = bottom; } } if (knockBack) { if (KBcounter <= _root.arm.knockBack + extraDamage) { _x = _x - force; force *= 0.6; ++KBcounter; } else { knockBack = false; KBcounter = 0; extraDamage = 0; } } if (_x < -250) { i = 0; while (i <= _root.control.enemies.length) { if (_root.control.enemies[i] == this) { _root.control.enemies.splice(i, 1); break; } ++i; } this.removeMovieClip(); } if (hp <= 0) { if (opened) { if (_alpha > 0) { _alpha = _alpha - 10; } else { i = 0; while (i <= _root.control.enemies.length) { if (_root.control.enemies[i] == this) { _root.control.enemies.splice(i, 1); break; } ++i; } this.removeMovieClip(); } } else { play(); } } } } } } movieClip 1251 { frame 14 { this.removeMovieClip(); } } instance fireOrbBoom of movieClip 1251 { onClipEvent (load) { if (this._name == 'fireOrbBoom') { this.stop(); } } } movieClip 1254 { } movieClip 1256 { } movieClip 1258 { } instance fireOrb of movieClip 1258 { onClipEvent (load) { if (this._name != 'fireOrb') { _root.gcontrol.miscItems.push(this); movex = (-1 + random(3)) * 2; movey = 15 + random(10); if (movey % 2 != 0) { --movey; } fade = false; } } onClipEvent (enterFrame) { if (this._name != 'fireOrb' && !_root.pawsd) { if (_y > 224) { _y = 224; movey *= -0.5; if (Math.abs(movey) < 3.5) { movey = 0; fade = true; } } _x = _x + movex; if (movex > 0) { movex -= 0.1; } else { movex += 0.1; } _y = _y - movey; if (!fade) { movey -= 2; } if (!_root.scrollLock) { if (_root.player.scrollStartR) { _x = _x - _root.player.speed; } else { if (_root.player.scrollStartL) { _x = _x + _root.player.speed; } } } if (this.hitTest(_root.player.hit)) { _root.score += 50; ++_global.eb1; ++_global.eb2; _root.fireOrbBoom.duplicateMovieClip('fireOrbBoom' + _global.eb1, _global.eb2); _root['fireOrbBoom' + _global.eb1]._x = _root.player._x; _root['fireOrbBoom' + _global.eb1]._y = 210; ++_global.eb1; ++_global.eb2; _root.slashOutFireBox.duplicateMovieClip('slashOutFireBox' + _global.eb1, _global.eb2); _root['slashOutFireBox' + _global.eb1]._x = _root.player._x + 30; _root['slashOutFireBox' + _global.eb1]._y = 205.6; _root['slashOutFireBox' + _global.es1]._xscale = 100; ++_global.eb1; ++_global.eb2; _root.slashOutFireBox.duplicateMovieClip('slashOutFireBox' + _global.eb1, _global.eb2); _root['slashOutFireBox' + _global.eb1]._x = _root.player._x - 30; _root['slashOutFireBox' + _global.eb1]._y = 205.6; _root['slashOutFireBox' + _global.eb1]._xscale = -100; this.removeMovieClip(); } if (fade && _alpha > 0) { _alpha = _alpha - 4; } else { if (fade) { i = 0; while (i <= _root.gcontrol.miscItems.length) { if (_root.gcontrol.miscItems[i] == this) { _root.gcontrol.miscItems.splice(i, 1); break; } ++i; } this.removeMovieClip(); } } } } } movieClip 1264 { frame 1 { stop(); } frame 3 { powerUp(); } frame 7 { opened = true; stop(); } } instance box2s of movieClip 1264 { onClipEvent (load) { function powerUp() { _root.goldDrop(15, _x, _y, true); } if (this._name != 'box2s') { hp = 10; var knockBack = false; KBcounter = 0; dirr = 1; var flyup = false; var forceUp = 0; bottom = _y; extraDamage = 0; opened = false; _root.control.enemies.push(this); } } onClipEvent (enterFrame) { if (this._name != 'box2s') { if (!_root.pawsd) { if (_root.player._x > this._x) { dirr = 1; } else { dirr = -1; } if (!_root.scrollLock) { if (_root.player.scrollStartR) { _x = _x - _root.player.speed; } else { if (_root.player.scrollStartL) { _x = _x + _root.player.speed; } } } if (this.hit.hitTest(_root.arm.sword.s)) { ++_global.es1; ++_global.es2; _root.dCounter.duplicateMovieClip('dCounter' + _global.es1, _global.es2); _root['dCounter' + _global.es1]._x = this._x; _root['dCounter' + _global.es1]._y = this._y; if (_root.player.dash) { extraDamage = 2; } _root['dCounter' + _global.es1].damageCounter = _root.arm.power + _root.arm.damage + extraDamage; hp -= _root.arm.power + _root.arm.damage + extraDamage; knockBack = true; force = dirr * (_root.arm.knockBack + extraDamage); if (_root.arm.up) { flyup = true; forceUp = -1 * (_root.arm.knockBack + _root.arm.power / 2 + extraDamage); } } if (flyup) { _y = _y + forceUp; if (_y < bottom) { if (forceUp < 30) { ++forceUp; } } else { flyup = false; _y = bottom; } } if (knockBack) { if (KBcounter <= _root.arm.knockBack + extraDamage) { _x = _x - force; force *= 0.6; ++KBcounter; } else { knockBack = false; KBcounter = 0; extraDamage = 0; } } if (_x < -250) { i = 0; while (i <= _root.control.enemies.length) { if (_root.control.enemies[i] == this) { _root.control.enemies.splice(i, 1); break; } ++i; } this.removeMovieClip(); } if (hp <= 0) { if (opened) { if (_alpha > 0) { _alpha = _alpha - 10; } else { i = 0; while (i <= _root.control.enemies.length) { if (_root.control.enemies[i] == this) { _root.control.enemies.splice(i, 1); break; } ++i; } this.removeMovieClip(); } } else { play(); } } } } } } movieClip 1267 { frame 7 { stop(); } } movieClip 1275 { frame 1 { stop(); } frame 2 { i = 0; while (i < 1) { if (_root.player.hp == _root.player.maxhp) { break; } else { ++_root.player.hp; } ++i; } } frame 25 { i = 0; while (i <= _root.control.enemies.length) { if (_root.control.enemies[i] == this) { _root.control.enemies.splice(i, 1); break; } ++i; } this.removeMovieClip(); } } instance hp1up of movieClip 1275 { onClipEvent (load) { if (this._name != 'hp1up') { ratey = -4; _root.gcontrol.miscItems.push(this); } } onClipEvent (enterFrame) { if (this._name != 'hp1up') { if (!_root.scrollLock) { if (_root.player.scrollStartR) { _x = _x - _root.player.speed; } else { if (_root.player.scrollStartL) { _x = _x + _root.player.speed; } } } if (_y < 222) { ++ratey; _y = _y + ratey; } if (_x < -250) { i = 0; while (i <= _root.gcontrol.miscItems.length) { if (_root.gcontrol.miscItems[i] == this) { _root.gcontrol.miscItems.splice(i, 1); break; } ++i; } this.removeMovieClip(); } if (this.hitTest(_root.player.hit)) { play(); } } } } instance box1s of movieClip 1264 { onClipEvent (load) { function powerUp() { ++_global.eb1; ++_global.eb2; _root.hp2up.duplicateMovieClip('hp2up' + _global.eb1, _global.eb2); _root['hp2up' + _global.eb1]._x = _x; _root['hp2up' + _global.eb1]._y = 212; } if (this._name != 'box1s') { hp = 10; var knockBack = false; KBcounter = 0; dirr = 1; var flyup = false; var forceUp = 0; bottom = _y; extraDamage = 0; opened = false; _root.control.enemies.push(this); } } onClipEvent (enterFrame) { if (this._name != 'box1s') { if (!_root.pawsd) { if (_root.player._x > this._x) { dirr = 1; } else { dirr = -1; } if (!_root.scrollLock) { if (_root.player.scrollStartR) { _x = _x - _root.player.speed; } else { if (_root.player.scrollStartL) { _x = _x + _root.player.speed; } } } if (this.hit.hitTest(_root.arm.sword.s)) { ++_global.es1; ++_global.es2; _root.dCounter.duplicateMovieClip('dCounter' + _global.es1, _global.es2); _root['dCounter' + _global.es1]._x = this._x; _root['dCounter' + _global.es1]._y = this._y; if (_root.player.dash) { extraDamage = 2; } _root['dCounter' + _global.es1].damageCounter = _root.arm.power + _root.arm.damage + extraDamage; hp -= _root.arm.power + _root.arm.damage + extraDamage; knockBack = true; force = dirr * (_root.arm.knockBack + extraDamage); if (_root.arm.up) { flyup = true; forceUp = -1 * (_root.arm.knockBack + _root.arm.power / 2 + extraDamage); } } if (flyup) { _y = _y + forceUp; if (_y < bottom) { if (forceUp < 30) { ++forceUp; } } else { flyup = false; _y = bottom; } } if (knockBack) { if (KBcounter <= _root.arm.knockBack + extraDamage) { _x = _x - force; force *= 0.6; ++KBcounter; } else { knockBack = false; KBcounter = 0; extraDamage = 0; } } if (_x < -250) { i = 0; while (i <= _root.control.enemies.length) { if (_root.control.enemies[i] == this) { _root.control.enemies.splice(i, 1); break; } ++i; } this.removeMovieClip(); } if (hp <= 0) { if (opened) { if (_alpha > 0) { _alpha = _alpha - 10; } else { i = 0; while (i <= _root.control.enemies.length) { if (_root.control.enemies[i] == this) { _root.control.enemies.splice(i, 1); break; } ++i; } this.removeMovieClip(); } } else { play(); } } } } } } movieClip 1278 { frame 1 { gotoAndStop(_parent._parent.wep); } } movieClip 1282 { frame 1 { gotoAndStop(_parent._parent.head); } } movieClip 1285 { frame 1 { gotoAndStop(_parent._parent.body); } } movieClip 1286 { } movieClip 1287 { } movieClip 1288 { frame 5 { _parent.hurt = false; } } movieClip 1292 { instance of movieClip 789 { onClipEvent (load) { if (this.hitTest(_root.player.guard)) { cancel = true; _root.arm.sword.sword.spark.gotoAndPlay(1); _root.arm.energy -= 45; } else { if (this.hitTest(_root.player.hit) && !cancel) { _root.player.hurt(4); } } } } instance of movieClip 783 { onClipEvent (load) { if (this.hitTest(_root.player.guard)) { cancel = true; _root.arm.sword.sword.spark.gotoAndPlay(1); _root.arm.energy -= 45; } else { if (this.hitTest(_root.player.hit) && !cancel) { _root.player.hurt(4); } } } } frame 33 { _parent.attack = false; } } movieClip 1318 { frame 1 { _parent.hurt = false; } frame 1 { num = random(4); newSound = new Sound(); newSound.attachSound(_root.manDeath[num]); newSound.setVolume(100); newSound.start(); } frame 25 { stop(); } } movieClip 1321 { frame 1 { _parent.hurt = false; } frame 25 { stop(); } } movieClip 1322 { frame 1 { stop(); } instance FD of movieClip 762 { onClipEvent (enterFrame) { if (_alpha >= 0) { play(); } else { stop(); } } } instance LD of movieClip 766 { onClipEvent (enterFrame) { if (_alpha >= 0) { _alpha = _alpha - 10; play(); } else { stop(); } } } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } frame 6 { stop(); } } instance en9s of movieClip 1322 { onClipEvent (load) { function isBoss() { return false; } function pauseSelf() { if (attack) { action = 'attack'; this.atk.stop(); } else { if (dead) { action = 'dead'; frame1 = this.death._currentframe; frame2 = this.death2._currentframe; this.death.stop(); this.death2.stop(); } else { action = 'null'; gotoAndStop('stand'); } } } function unPause() { if (action == 'attack') { this.atk.play(); } else { if (action == 'dead') { this.death.gotoAndPlay(frame1 - 1); this.death2.gotoAndPlay(frame2 - 1); } } hurt = false; action = 'null'; } if (this._name != 'en9s') { _root.control.enemies.push(this); hp = 30; dtype = 1; var knockBack = false; var hurt = false; var flyup = true; var dead = false; bottom = 194.2; dirr = 1; KBcounter = 0; var forceUp = 0; extraDamage = 0; healthDropChance = 20; goldDropChance = 7; body = 1 + random(2); head = 1 + random(3); wep = 1 + random(2); } action = 'null'; attack = false; } onClipEvent (enterFrame) { if (this._name != 'en9s') { if (!_root.pawsd) { if (!_root.scrollLock) { if (_root.player.scrollStartR) { _x = _x - _root.player.speed; } else { if (_root.player.scrollStartL) { _x = _x + _root.player.speed; } } } if (!dead) { if (Math.abs(_root.player._x - _x) <= 85 && !hurt) { if (_root.player._x > this._x && !hurt && !attack) { _xscale = 100; } else { if (!hurt && !attack) { _xscale = -100; } } attack = true; gotoAndStop('attack'); } if (_root.player._x > this._x && !hurt && !attack) { dirr = 1; gotoAndStop('move'); _xscale = 100; if (_y >= bottom - 20) { _x = _x + 2; } } else { if (!hurt && !attack) { dirr = -1; gotoAndStop('move'); _xscale = -100; if (_y >= bottom - 20) { _x = _x - 2; } } } if (this.hit.hitTest(_root.arm.sword.s)) { dtype = 1; hurt = true; gotoAndStop('hurt'); ++_global.es1; ++_global.es2; _root.dCounter.duplicateMovieClip('dCounter' + _global.es1, _global.es2); _root['dCounter' + _global.es1]._x = this._x; _root['dCounter' + _global.es1]._y = this._y; if (_root.player.dash) { extraDamage = 2; } _root['dCounter' + _global.es1].damageCounter = _root.arm.power + _root.arm.damage + extraDamage; hp -= _root.arm.power + _root.arm.damage + extraDamage; knockBack = true; force = dirr * (_root.arm.knockBack + extraDamage); if (_root.arm.up) { flyup = true; forceUp = -1 * (_root.arm.knockBack + _root.arm.power / 2 + extraDamage); } } } if (hp <= 0 && !dead) { ++_root.control.killings; --_root.killsLeft.killCount; _root.score += 90; --_root.control.strong; ++_global.kills; _root.goldDrop(random(goldDropChance), _x, _y, false); _root.healthDrop(random(healthDropChance), this._x, this._y); dead = true; } if (hurt) { attack = false; if (!dead && _root.arm.damagetype == 'lightning' && this.LD._alpha <= 0) { this.LD._alpha = 100; } else { if (!dead && _root.arm.damagetype == 'fire' && this.FD._alpha <= 0) { this.FD._alpha = 100; } } ++_global.es1; ++_global.es2; _root.blood.duplicateMovieClip('blood' + _global.es1, _global.es2); _root['blood' + _global.es1]._x = this._x; _root['blood' + _global.es1]._y = this._y; _root['blood' + _global.es1]._rotation = _root.arm._rotation + random(20); } if (flyup) { _y = _y + forceUp; if (_y < bottom) { if (forceUp < 30) { ++forceUp; } } else { flyup = false; _y = bottom; } } if (knockBack) { if (KBcounter <= _root.arm.knockBack + extraDamage) { _x = _x - force; force *= 0.6; ++KBcounter; } else { knockBack = false; KBcounter = 0; extraDamage = 0; } } if (!dead) { if (_x < -250) { i = 0; while (i <= _root.control.enemies.length) { if (_root.control.enemies[i] == this) { _root.control.enemies.splice(i, 1); break; } ++i; } --_root.control.strong; this.removeMovieClip(); } } else { gotoAndStop(4 + dtype); hurt = false; if (this.death._currentframe < 20 && dtype == 1) { ++_global.es1; ++_global.es2; _root.blood.duplicateMovieClip('blood' + _global.es1, _global.es2); _root['blood' + _global.es1]._x = this._x + 10 * dirr + (this.death._x + this.death.body._x) * dirr - 10 * Math.sin(_root['blood' + _global.es1]._rotation * 0.0174532925199433); _root['blood' + _global.es1].slow = true; _root['blood' + _global.es1]._y = this._y + this.death._y + this.death.body._y - 10 * Math.cos(_rotation * 0.0174532925199433); _root['blood' + _global.es1]._rotation = (this.death.body._rotation + 90 - random(30)) * dirr; ++_global.es1; ++_global.es2; _root.blood.duplicateMovieClip('blood' + _global.es1, _global.es2); _root['blood' + _global.es1]._x = this._x + 10 * dirr + (this.death._x + this.death.body._x) * dirr - 10 * Math.sin(_root['blood' + _global.es1]._rotation * 0.0174532925199433); _root['blood' + _global.es1].slow = true; _root['blood' + _global.es1]._y = this._y + this.death._y + this.death.body._y - 10 * Math.cos(_rotation * 0.0174532925199433); offset = random(70); _root['blood' + _global.es1]._rotation = (this.death.body._rotation - offset + 90) * dirr; } else { if (_alpha > 0) { if (this.death2._currentframe > 20) { _alpha = _alpha - 5; } else { if (this.death._currentframe > 20) { _alpha = _alpha - 5; } } } else { i = 0; while (i <= _root.control.enemies.length) { if (_root.control.enemies[i] == this) { _root.control.enemies.splice(i, 1); break; } ++i; } this.removeMovieClip(); } } } } else { pauseSelf(); } } } } movieClip 1325 { } movieClip 1327 { } movieClip 1337 { } movieClip 1338 { frame 1 { stop(); } instance tip of movieClip 1327 { onClipEvent (enterFrame) { if (this.hitTest(_root.arm.sword.s) || this.hitTest(_root.player.guard)) { _parent.blocked = true; _parent._rotation = _root.arm._rotation; intro = new Sound(); intro.attachSound('hit'); intro.start(); } } } frame 2 { stop(); } frame 3 { stop(); } } movieClip 1342 { frame 1 { stop(); } frame 5 { _parent._parent.aim = true; stop(); } } movieClip 1345 { } movieClip 1347 { } movieClip 1349 { } movieClip 1354 { } movieClip 1362 { frame 1 { _parent._parent.aim = true; stop(); } frame 3 { ++_global.eb1; ++_global.eb2; _root.arrowN.duplicateMovieClip('arrowN' + _global.eb1, _global.eb2); _root['arrowN' + _global.eb1]._x = _parent._parent._x + _parent._parent.attack._x + _parent._parent.attack.bow._x; _root['arrowN' + _global.eb1]._y = _parent._parent._y + _parent._parent.attack._y + _parent._parent.attack.bow._y; } frame 4 { if (_parent._parent.shots < 3) { _parent.gotoAndPlay(19); } } } movieClip 1363 { frame 1 { shotNum = 0; } instance quiver of movieClip 1354 { onClipEvent (load) { stop(); } } instance hit of movieClip 783 { onClipEvent (enterFrame) { if (this.hitTest(_root.arm.sword.s)) { _parent._parent.hitA(); } } } frame 22 { ++shotNum; _parent.quiver.gotoAndStop(shotNum + 1); } instance quiver of movieClip 1354 { onClipEvent (load) { gotoAndStop(_parent._parent.shots + 2); } } instance bow of movieClip 1342 { onClipEvent (load) { gotoAndPlay(2); } } instance bow of movieClip 1342 { onClipEvent (load) { gotoAndPlay(3); } } instance bow of movieClip 1342 { onClipEvent (load) { gotoAndPlay(4); } } frame 38 { stop(); } } movieClip 1366 { } movieClip 1369 { instance quiver of movieClip 1366 { onClipEvent (load) { gotoAndStop(_parent._parent.shots + 2); } } instance hit of movieClip 783 { onClipEvent (enterFrame) { if (this.hitTest(_root.arm.sword.s)) { _parent._parent.hitR(); } } } frame 15 { _parent.gone = true; stop(); } } movieClip 1370 { frame 1 { stop(); } instance attack of movieClip 1363 { onClipEvent (load) { if (_parent.name == 'en8s') { stop(); } } } frame 2 { stop(); } instance retreat of movieClip 1369 { onClipEvent (load) { if (_parent.name == 'en8s') { stop(); } } } } instance en8s of movieClip 1370 { onClipEvent (load) { function hitA() { _root.control.createEnemy(7, this._x, this._y + this.attack._y + this.attack.hit._y); i = 0; while (i <= _root.control.enemies.length) { if (_root.control.enemies[i] == this) { _root.control.enemies.splice(i, 1); break; } ++i; } --_root.control.strong; ++_root.control.normal; this.removeMovieClip(); } function hitR() { _root.control.createEnemy(7, this._x, this._y + this.retreat._y + this.retreat.hit._y); i = 0; while (i <= _root.control.enemies.length) { if (_root.control.enemies[i] == this) { _root.control.enemies.splice(i, 1); break; } ++i; } this.removeMovieClip(); --_root.control.strong; ++_root.control.normal; } if (this._name != 'en8s') { _root.control.enemies.push(this); aim = false; countdown = 20; shots = 0; gone = false; lock = true; } else { this.attack.stop(); } } onClipEvent (enterFrame) { if (this._name != 'en8s') { if (!_root.pawsd || !lock) { if (!_root.scrollLock) { if (_root.player.scrollStartR) { _x = _x - _root.player.speed; } else { if (_root.player.scrollStartL) { _x = _x + _root.player.speed; } } } this.hit._y = this._y + this.attack._y + this.attack.hit._y + 40; if (_x <= -80 && _currentframe != 2) { this.attack.gotoAndPlay(1); _x = 300 + random(200); } if (shots < 3) { if (_root.player._x >= _x) { _xscale = 100; } else { _xscale = -100; } if (aim) { this.attack.bow._rotation = -90 + Math.round((100 / -_xscale) * Math.atan2(_x + this.attack.bow._x + this.attack._x - _root.player._x, _y + this.attack.bow._y + this.attack._y - _root.player._y) / 0.0174532925199433); --countdown; if (countdown <= 0) { this.attack.bow.play(); ++shots; aim = false; countdown = 20; } } } else { if (aim == true) { gotoAndStop('retreat'); if (gone) { i = 0; while (i <= _root.control.enemies.length) { if (_root.control.enemies[i] == this) { _root.control.enemies.splice(i, 1); break; } ++i; } --_root.control.enemiesMade; --_root.control.strong; --_root.control.enemyCount; this.removeMovieClip(); } } } } else {} } } } instance arrowN of movieClip 1338 { onClipEvent (load) { function remove() { i = 0; while (i <= _root.gcontrol.miscItems.length) { if (_root.gcontrol.miscItems[i] == this) { _root.gcontrol.miscItems.splice(i, 1); break; } ++i; } this.removeMovieClip(); } if (this._name != 'arrowN') { _root.gcontrol.miscItems.push(this); _rotation = Math.round(-Math.atan2(_x - _root.player._x, _y - _root.player._y) / 0.0174532925199433); grounded = false; hit = false; } } onClipEvent (enterFrame) { if (this._name != 'arrowN') { if (!_root.pawsd) { if (!_root.scrollLock && !hit) { if (_root.player.scrollStartR) { _x = _x - _root.player.speed; } else { if (_root.player.scrollStartL) { _x = _x + _root.player.speed; } } } if (_y < -30 || _y > 700 || _x < -100 || _x > 650) { remove(); } if (_y + 40 * Math.sin((_rotation - 90) * 0.0174532925199433) < 238 && !hit) { _y = _y - 20 * Math.cos(_rotation * 0.0174532925199433); _x = _x + 20 * Math.sin(_rotation * 0.0174532925199433); if (blocked) { gotoAndStop(3); _rotation = _rotation * 1.05; } if (this.tip.hitTest(_root.player.hit)) { _root.player.hurt(2); offY = _root.player._y - _y; offX = _root.player._x - _x; scale = _root.player._xscale; scaleNorm = _xscale; hit = true; gotoAndStop(2); } } else { grounded = true; gotoAndStop(2); } if (grounded) { if (_alpha > 0) { _alpha = _alpha - 1; } else { remove(); } } if (hit) { _y = _root.player._y - offY + 10 * Math.sin((_rotation - 90) * 0.0174532925199433); _x = _root.player._x - offX + 10 * Math.cos((_rotation - 90) * 0.0174532925199433); if (_alpha > 0) { _alpha = _alpha - 2; } else { remove(); } } } } } } instance en7s of movieClip 1143 { onClipEvent (load) { if (this._name != 'en7s') { } else { stop(); } } onClipEvent (enterFrame) { if (this._name != 'en7s') { if (_currentframe == 2 && !_root.player.dead) { ++_global.eb1; ++_global.eb2; _root.en7o.duplicateMovieClip('en7o' + _global.eb1, _global.eb2); _root['en7o' + _global.eb1]._x = _x; _root['en7o' + _global.eb1]._y = _y; } } } } instance en7o of movieClip 908 { onClipEvent (load) { function isBoss() { return false; } function pauseSelf() { if (attack) { action = 'attack'; this.atk.stop(); } else { if (dead) { action = 'dead'; frame1 = this.death._currentframe; frame2 = this.death2._currentframe; this.death.stop(); this.death2.stop(); } else { action = 'null'; gotoAndStop('stand'); } } } function unPause() { if (action == 'attack') { this.atk.play(); } else { if (action == 'dead') { this.death.gotoAndPlay(frame1 - 1); this.death2.gotoAndPlay(frame2 - 1); } } hurt = false; action = 'null'; } if (this._name != 'en7o') { _root.control.enemies.push(this); hp = 18; dtype = 1; var knockBack = false; var hurt = false; var flyup = true; var dead = false; bottom = 194.2; dirr = 1; KBcounter = 0; var forceUp = 0; extraDamage = 0; healthDropChance = 6; goldDropChance = 4; lock = true; head = 4; wep = 4 + random(3); } action = 'null'; attack = false; } onClipEvent (enterFrame) { if (this._name != 'en7o') { if (!_root.pawsd || !lock) { if (!_root.scrollLock) { if (_root.player.scrollStartR) { _x = _x - _root.player.speed; } else { if (_root.player.scrollStartL) { _x = _x + _root.player.speed; } } } if (!dead) { if (Math.abs(_root.player._x - _x) <= 78 && !hurt) { if (_root.player._x > this._x && !hurt && !attack) { _xscale = 100; } else { if (!hurt && !attack) { _xscale = -100; } } attack = true; gotoAndStop('attack'); } if (_root.player._x > this._x && !hurt && !attack) { dirr = 1; gotoAndStop('move'); _xscale = 100; if (_y >= bottom - 20) { _x = _x + 3; } } else { if (!hurt && !attack) { dirr = -1; gotoAndStop('move'); _xscale = -100; if (_y >= bottom - 20) { _x = _x - 3; } } } if (this.hit.hitTest(_root.arm.sword.s)) { dtype = 1; hurt = true; gotoAndStop('hurt'); ++_global.es1; ++_global.es2; _root.dCounter.duplicateMovieClip('dCounter' + _global.es1, _global.es2); _root['dCounter' + _global.es1]._x = this._x; _root['dCounter' + _global.es1]._y = this._y; if (_root.player.dash) { extraDamage = 2; } _root['dCounter' + _global.es1].damageCounter = _root.arm.power + _root.arm.damage + extraDamage; hp -= _root.arm.power + _root.arm.damage + extraDamage; knockBack = true; force = dirr * (_root.arm.knockBack + extraDamage); if (_root.arm.up) { flyup = true; forceUp = -1 * (_root.arm.knockBack + _root.arm.power / 2 + extraDamage); } } } if (hp <= 0 && !dead) { ++_root.control.killings; --_root.control.normal; ++_global.kills; --_root.killsLeft.killCount; _root.score += 55; _root.goldDrop(random(goldDropChance), _x, _y, false); _root.healthDrop(random(healthDropChance), this._x, this._y); dead = true; } if (hurt) { attack = false; if (!dead && _root.arm.damagetype == 'lightning' && this.LD._alpha <= 0) { this.LD._alpha = 100; } else { if (!dead && _root.arm.damagetype == 'fire' && this.FD._alpha <= 0) { this.FD._alpha = 100; } } ++_global.es1; ++_global.es2; _root.blood.duplicateMovieClip('blood' + _global.es1, _global.es2); _root['blood' + _global.es1]._x = this._x; _root['blood' + _global.es1]._y = this._y; _root['blood' + _global.es1]._rotation = _root.arm._rotation + random(20); } if (flyup) { _y = _y + forceUp; if (_y < bottom) { if (forceUp < 30) { ++forceUp; } } else { flyup = false; _y = bottom; } } if (knockBack) { if (KBcounter <= _root.arm.knockBack + extraDamage) { _x = _x - force; force *= 0.6; ++KBcounter; } else { knockBack = false; KBcounter = 0; extraDamage = 0; } } if (!dead) { if (_x < -250) { i = 0; while (i <= _root.control.enemies.length) { if (_root.control.enemies[i] == this) { _root.control.enemies.splice(i, 1); break; } ++i; } --_root.control.normal; this.removeMovieClip(); } } else { gotoAndStop(4 + dtype); hurt = false; if (this.death._currentframe < 30 && dtype == 1) { ++_global.es1; ++_global.es2; _root.blood.duplicateMovieClip('blood' + _global.es1, _global.es2); _root['blood' + _global.es1]._x = this._x + (this.death._x + this.death.head._x) * dirr - 10 * Math.sin(_root['blood' + _global.es1]._rotation * 0.0174532925199433); _root['blood' + _global.es1].slow = true; _root['blood' + _global.es1]._y = this._y + 25 + this.death._y + this.death.head._y - 10 * Math.cos(_rotation * 0.0174532925199433); _root['blood' + _global.es1]._rotation = (this.death.head._rotation + 90 - random(30)) * dirr; ++_global.es1; ++_global.es2; _root.blood.duplicateMovieClip('blood' + _global.es1, _global.es2); _root['blood' + _global.es1]._x = this._x + this.death._x; _root['blood' + _global.es1].slow = true; _root['blood' + _global.es1]._y = this._y - 10; offset = random(70); _root['blood' + _global.es1]._rotation = 20 - offset; } else { if (_alpha > 0) { if (this.death2._currentframe > 12) { _alpha = _alpha - 5; } else { if (this.death._currentframe > 30) { _alpha = _alpha - 5; } } } else { i = 0; while (i <= _root.control.enemies.length) { if (_root.control.enemies[i] == this) { _root.control.enemies.splice(i, 1); break; } ++i; } this.removeMovieClip(); } } } } else { if (lock) { pauseSelf(); } } } } } movieClip 1373 { frame 1 { if ((_parent._parent.hp / _parent._parent.maxhp) * 100 < 40) { gotoAndStop(2); } else { gotoAndStop(1); } } frame 2 { if ((_parent._parent.hp / _parent._parent.maxhp) * 100 < 40) { gotoAndStop(2); } else { gotoAndStop(1); } } } movieClip 1375 { } movieClip 1382 { frame 1 { if ((_parent._parent.hp / _parent._parent.maxhp) * 100 < 50) { gotoAndStop(2); } else { gotoAndStop(1); } } frame 2 { if ((_parent._parent.hp / _parent._parent.maxhp) * 100 < 50) { gotoAndStop(2); } else { gotoAndStop(1); } } frame 5 { stop(); } } movieClip 1383 { } movieClip 1384 { } movieClip 1385 { frame 8 { _parent.hurt = false; } } movieClip 1387 { } movieClip 1390 { } movieClip 1393 { } movieClip 1398 { } movieClip 1401 { frame 7 { _parent.energy -= 15; } instance of movieClip 789 { onClipEvent (load) { if (this.hitTest(_root.player.guard)) { cancel = true; _root.arm.sword.sword.spark.gotoAndPlay(1); _root.arm.energy -= 10; } else { if (this.hitTest(_root.player.hit) && !cancel) { _root.player.hurt(2); } } } } instance of movieClip 783 { onClipEvent (load) { if (this.hitTest(_root.player.guard)) { cancel = true; _root.arm.sword.sword.spark.gotoAndPlay(1); _root.arm.energy -= 50; } else { if (this.hitTest(_root.player.hit) && !cancel) { _root.player.hurt(3); } } } } instance of movieClip 789 { onClipEvent (load) { if (this.hitTest(_root.player.guard)) { cancel = true; _root.arm.sword.sword.spark.gotoAndPlay(1); _root.arm.energy -= 10; } else { if (this.hitTest(_root.player.hit) && !cancel) { _root.player.hurt(2); } } } } frame 12 { if (_parent.updateDirrection() && _parent.energy >= 25) { gotoAndPlay('uppercut'); } else { play(); } } frame 17 { _parent.attack = false; } frame 29 { _parent.energy -= 25; } instance of movieClip 783 { onClipEvent (load) { if (this.hitTest(_root.player.guard)) { cancel = true; _root.arm.sword.sword.spark.gotoAndPlay(1); _root.arm.energy -= 50; } else { if (this.hitTest(_root.player.hit) && !cancel) { _root.player.hurt(3); } } } } instance of movieClip 789 { onClipEvent (load) { if (this.hitTest(_root.player.guard)) { cancel = true; _root.arm.sword.sword.spark.gotoAndPlay(1); _root.arm.energy -= 10; } else { if (this.hitTest(_root.player.hit) && !cancel) { _root.player.hurt(2); } } } } frame 33 { if (_parent.updateDirrection() && _parent.energy >= 10) { gotoAndPlay('overcut'); } else { play(); } } frame 43 { _parent.attack = false; } frame 51 { _parent.energy -= 15; } instance of movieClip 783 { onClipEvent (load) { if (this.hitTest(_root.player.guard)) { cancel = true; _root.arm.sword.sword.spark.gotoAndPlay(1); _root.arm.energy -= 10; } else { if (this.hitTest(_root.player.hit) && !cancel) { _root.player.hurt(1); } } } } instance of movieClip 789 { onClipEvent (load) { if (this.hitTest(_root.player.guard)) { cancel = true; _root.arm.sword.sword.spark.gotoAndPlay(1); _root.arm.energy -= 20; } else { if (this.hitTest(_root.player.hit) && !cancel) { _root.player.hurt(1); } } } } frame 64 { _parent.attack = false; } } movieClip 1406 { frame 16 { _parent.energy -= 70; ++_global.es1; ++_global.es2; _root.bossSlashWave.duplicateMovieClip('bossSlashWave' + _global.es1, _global.es2); _root['bossSlashWave' + _global.es1]._x = _parent._x + 95 * (100 / _parent._xscale); _root['bossSlashWave' + _global.es1]._y = _parent._y + 18; _root['bossSlashWave' + _global.es1]._xscale = _parent._xscale; } frame 32 { _parent.attack = false; _parent.jumping = false; } } movieClip 1407 { } movieClip 1432 { } movieClip 1455 { } movieClip 1458 { frame 1 { if ((_parent._parent.hp / _parent._parent.maxhp) * 100 < 40) { gotoAndStop(2); } else { gotoAndStop(1); } } frame 2 { if ((_parent._parent.hp / _parent._parent.maxhp) * 100 < 40) { gotoAndStop(2); } else { gotoAndStop(1); } } } movieClip 1465 { frame 1 { if ((_parent._parent.hp / _parent._parent.maxhp) * 100 < 50) { gotoAndStop(2); } else { gotoAndStop(1); } } frame 2 { if ((_parent._parent.hp / _parent._parent.maxhp) * 100 < 50) { gotoAndStop(2); } else { gotoAndStop(1); } } frame 5 { stop(); } } movieClip 1468 { } movieClip 1471 { } movieClip 1473 { } movieClip 1474 { } movieClip 1477 { } movieClip 1479 { } movieClip 1486 { frame 6 { stop(); } } movieClip 1492 { frame 6 { stop(); } } movieClip 1532 { } movieClip 1534 { frame 1 { _parent.hurt = false; } instance head of movieClip 1373 { onClipEvent (enterFrame) { _root.dist = _x; } } frame 2 { if (_parent.flyup == true) { gotoAndPlay(1); } } frame 46 { _root.chat._y = 21; stop(); } frame 51 { body.play(); } frame 89 { _root.goldDrop(3, _root.bossFight._x, 223, true); } frame 91 { _root.goldDrop(3, _root.bossFight._x, 223, true); } frame 93 { _root.goldDrop(3, _root.bossFight._x, 223, true); } frame 95 { _root.goldDrop(3, _root.bossFight._x, 223, true); } frame 97 { _root.goldDrop(3, _root.bossFight._x, 223, true); } frame 99 { _root.goldDrop(3, _root.bossFight._x, 223, true); } frame 101 { _root.goldDrop(3, _root.bossFight._x, 223, true); } frame 103 { _root.goldDrop(3, _root.bossFight._x, 223, true); } frame 105 { _root.goldDrop(3, _root.bossFight._x, 223, true); } frame 107 { _root.goldDrop(3, _root.bossFight._x, 223, true); } frame 109 { _root.goldDrop(3, _root.bossFight._x, 223, true); } frame 111 { _root.goldDrop(3, _root.bossFight._x, 223, true); } frame 113 { _root.goldDrop(3, _root.bossFight._x, 223, true); } frame 115 { _root.fadeScreen.setTimer(60); _root.fadeScreen.fadeIn(true); _root.control.removeAllEnemies(); stop(); } instance head of movieClip 1458 { onClipEvent (enterFrame) { _root.dist = _x; } } frame 302 { _root.reaperWalk.magic.play(); } frame 303 { _root.lightningEffect.update(); } frame 306 { _root.reaperWalk.magic.play(); } frame 307 { _root.sound.fadeOut(0, 10); } frame 355 { _root.fadeScreen.changeRate(100); _root.fadeScreen.fadeIn(true); stop(); } } movieClip 1540 { frame 1 { gotoAndStop(_parent._parent.head); } } movieClip 1542 { } movieClip 1544 { } movieClip 1545 { frame 1 { _parent.hurt = false; } instance head of movieClip 1540 { onClipEvent (enterFrame) { _root.dist = _x; } } frame 14 { stop(); } } movieClip 1546 { frame 1 { stop(); } instance FD of movieClip 762 { onClipEvent (enterFrame) { if (_alpha >= 0) { play(); } else { stop(); } } } instance LD of movieClip 766 { onClipEvent (enterFrame) { if (_alpha >= 0) { _alpha = _alpha - 10; play(); } else { stop(); } } } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } frame 6 { stop(); } frame 7 { stop(); } frame 8 { stop(); } } instance bossChat of movieClip 1546 { onClipEvent (load) { if (this._name != 'bossChat') { _root.control.enemies.push(this); maxhp = 200; hp = maxhp; dtype = 1; var knockBack = false; var hurt = false; var flyup = false; var dead = false; bottom = 194.2; dirr = -1; lock = false; } } onClipEvent (enterFrame) { if (this._name != 'bossChat') { if (!_root.pawsd || !lock) { gotoAndStop('move'); _xscale = 100 * dirr; if (_y >= bottom - 20) { _x = _x + 3 * dirr; } } else { if (lock) { gotoAndStop('stand'); } } if (_x > 650) { i = 0; while (i <= _root.control.enemies.length) { if (_root.control.enemies[i] == this) { _root.control.enemies.splice(i, 1); break; } ++i; } this.removeMovieClip(); } } } } movieClip 1548 { } movieClip 1550 { } movieClip 1552 { } movieClip 1553 { } movieClip 1554 { } movieClip 1555 { frame 5 { _parent.hurt = false; } } movieClip 1557 { } movieClip 1558 { instance of movieClip 789 { onClipEvent (load) { if (this.hitTest(_root.player.guard)) { cancel = true; _root.arm.sword.sword.spark.gotoAndPlay(1); _root.arm.energy -= 2; } else { if (this.hitTest(_root.player.hit) && !cancel) { _root.player.hurt(1); } } } } instance of movieClip 789 { onClipEvent (load) { if (this.hitTest(_root.player.guard)) { cancel = true; _root.arm.sword.sword.spark.gotoAndPlay(1); _root.arm.energy -= 2; } else { if (this.hitTest(_root.player.hit) && !cancel) { _root.player.hurt(1); } } } } instance of movieClip 789 { onClipEvent (load) { if (this.hitTest(_root.player.guard)) { cancel = true; _root.arm.sword.sword.spark.gotoAndPlay(1); _root.arm.energy -= 2; } else { if (this.hitTest(_root.player.hit) && !cancel) { _root.player.hurt(1); } } } } instance of movieClip 789 { onClipEvent (load) { if (this.hitTest(_root.player.guard)) { cancel = true; _root.arm.sword.sword.spark.gotoAndPlay(1); _root.arm.energy -= 2; } else { if (this.hitTest(_root.player.hit) && !cancel) { _root.player.hurt(1); } } } } instance of movieClip 789 { onClipEvent (load) { if (this.hitTest(_root.player.guard)) { cancel = true; _root.arm.sword.sword.spark.gotoAndPlay(1); _root.arm.energy -= 2; } else { if (this.hitTest(_root.player.hit) && !cancel) { _root.player.hurt(1); } } } } frame 20 { _parent.attack = false; } } movieClip 1559 { frame 1 { _parent.hurt = false; } instance head of movieClip 1550 { onClipEvent (enterFrame) { _root.dist = _x; } } frame 14 { stop(); } } movieClip 1562 { frame 1 { _parent.hurt = false; } instance head of movieClip 1550 { onClipEvent (enterFrame) { _root.dist = _x; } } frame 14 { stop(); } } movieClip 1563 { frame 1 { stop(); } instance FD of movieClip 762 { onClipEvent (enterFrame) { if (_alpha >= 0) { play(); } else { stop(); } } } instance LD of movieClip 766 { onClipEvent (enterFrame) { if (_alpha >= 0) { _alpha = _alpha - 10; play(); } else { stop(); } } } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } frame 6 { stop(); } } instance en6s of movieClip 1563 { onClipEvent (load) { function isBoss() { return false; } function pauseSelf() { if (attack) { action = 'attack'; this.atk.stop(); } else { if (dead) { action = 'dead'; frame1 = this.death._currentframe; frame2 = this.death2._currentframe; this.death.stop(); this.death2.stop(); } else { action = 'null'; gotoAndStop('stand'); } } } function unPause() { if (action == 'attack') { this.atk.play(); } else { if (action == 'dead') { this.death.gotoAndPlay(frame1 - 1); this.death2.gotoAndPlay(frame2 - 1); } } hurt = false; action = 'null'; } if (this._name != 'en6s') { _root.control.enemies.push(this); hp = 22; dtype = 1; var knockBack = false; var hurt = false; var flyup = false; var dead = false; bottom = 194.2; dirr = 1; KBcounter = 0; var forceUp = 0; extraDamage = 0; } action = 'null'; attack = false; } onClipEvent (enterFrame) { if (this._name != 'en6s') { if (!_root.pawsd) { if (!_root.scrollLock) { if (_root.player.scrollStartR) { _x = _x - _root.player.speed; } else { if (_root.player.scrollStartL) { _x = _x + _root.player.speed; } } } if (!dead) { if (Math.abs(_root.player._x - _x) <= 55 && !hurt) { attack = true; gotoAndStop('attack'); } if (_root.player._x > this._x && !hurt && !attack) { dirr = 1; gotoAndStop('move'); _xscale = 100; if (_y >= bottom - 20) { _x = _x + 4; } } else { if (!hurt && !attack) { dirr = -1; gotoAndStop('move'); _xscale = -100; if (_y >= bottom - 20) { _x = _x - 4; } } } if (this.hit.hitTest(_root.arm.sword.s)) { dtype = 1; hurt = true; gotoAndStop('hurt'); ++_global.es1; ++_global.es2; _root.dCounter.duplicateMovieClip('dCounter' + _global.es1, _global.es2); _root['dCounter' + _global.es1]._x = this._x; _root['dCounter' + _global.es1]._y = this._y; if (_root.player.dash) { extraDamage = 2; } _root['dCounter' + _global.es1].damageCounter = _root.arm.power + _root.arm.damage + extraDamage; hp -= _root.arm.power + _root.arm.damage + extraDamage; knockBack = true; force = dirr * (_root.arm.knockBack + extraDamage); if (_root.arm.up) { flyup = true; forceUp = -1 * (_root.arm.knockBack + _root.arm.power / 2 + extraDamage); } } } if (hp <= 0 && !dead) { _root.score += 25; dead = true; } if (hurt) { attack = false; if (!dead && _root.arm.damagetype == 'lightning' && this.LD._alpha <= 0) { this.LD._alpha = 100; } else { if (!dead && _root.arm.damagetype == 'fire' && this.FD._alpha <= 0) { this.FD._alpha = 100; } } ++_global.es1; ++_global.es2; _root.blood.duplicateMovieClip('blood' + _global.es1, _global.es2); _root['blood' + _global.es1]._x = this._x; _root['blood' + _global.es1]._y = this._y; _root['blood' + _global.es1]._rotation = _root.arm._rotation + random(20); } if (flyup) { _y = _y + forceUp; if (_y < bottom) { if (forceUp < 30) { ++forceUp; } } else { flyup = false; _y = bottom; } } if (knockBack) { if (KBcounter <= _root.arm.knockBack + extraDamage) { _x = _x - force; force *= 0.6; ++KBcounter; } else { knockBack = false; KBcounter = 0; extraDamage = 0; } } if (!dead) { if (_x < -250) { i = 0; while (i <= _root.control.enemies.length) { if (_root.control.enemies[i] == this) { _root.control.enemies.splice(i, 1); break; } ++i; } this.removeMovieClip(); } } else { gotoAndStop(4 + dtype); if (this.death._currentframe < 13 && dtype == 1) { } else { if (_alpha > 0) { if (this.death2._currentframe > 12) { _alpha = _alpha - 5; } else { if (this.death._currentframe > 13) { hurt = false; _alpha = _alpha - 5; } } } else { i = 0; while (i <= _root.control.enemies.length) { if (_root.control.enemies[i] == this) { _root.control.enemies.splice(i, 1); break; } ++i; } ++_root.control.killed; --_root.Dojo.kills; ++_global.kills; this.removeMovieClip(); } } } } else { pauseSelf(); } } } } movieClip 1564 { } movieClip 1565 { } movieClip 1566 { frame 5 { _parent.hurt = false; } } movieClip 1567 { instance of movieClip 789 { onClipEvent (load) { if (this.hitTest(_root.player.guard)) { cancel = true; _root.arm.sword.sword.spark.gotoAndPlay(1); _root.arm.energy -= 2; } else { if (this.hitTest(_root.player.hit) && !cancel) { _root.player.hurt(1); } } } } instance of movieClip 783 { onClipEvent (load) { if (this.hitTest(_root.player.guard)) { cancel = true; _root.arm.sword.sword.spark.gotoAndPlay(1); _root.arm.energy -= 2; } else { if (this.hitTest(_root.player.hit) && !cancel) { _root.player.hurt(1); } } } } frame 24 { _parent.attack = false; } } movieClip 1568 { frame 1 { _parent.hurt = false; } instance head of movieClip 1540 { onClipEvent (enterFrame) { _root.dist = _x; } } frame 14 { stop(); } } movieClip 1571 { frame 1 { _parent.hurt = false; } instance head of movieClip 1540 { onClipEvent (enterFrame) { _root.dist = _x; } } frame 14 { stop(); } } movieClip 1572 { frame 1 { stop(); } instance FD of movieClip 762 { onClipEvent (enterFrame) { if (_alpha >= 0) { play(); } else { stop(); } } } instance LD of movieClip 766 { onClipEvent (enterFrame) { if (_alpha >= 0) { _alpha = _alpha - 10; play(); } else { stop(); } } } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } frame 6 { stop(); } } instance en5s of movieClip 1572 { onClipEvent (load) { function isBoss() { return false; } function pauseSelf() { if (attack) { action = 'attack'; this.atk.stop(); } else { if (dead) { action = 'dead'; frame1 = this.death._currentframe; frame2 = this.death2._currentframe; this.death.stop(); this.death2.stop(); } else { action = 'null'; gotoAndStop('stand'); } } } function unPause() { if (action == 'attack') { this.atk.play(); } else { if (action == 'dead') { this.death.gotoAndPlay(frame1 - 1); this.death2.gotoAndPlay(frame2 - 1); } } hurt = false; action = 'null'; } if (this._name != 'en5s') { _root.control.enemies.push(this); hp = 24; dtype = 1; var knockBack = false; var hurt = false; var flyup = false; var dead = false; groundSpeed = 2 + _root.trainingSelect / 2; bottom = 194.2; dirr = 1; KBcounter = 0; var forceUp = 0; extraDamage = 0; head = 1 + random(3); } action = 'null'; attack = false; } onClipEvent (enterFrame) { if (this._name != 'en5s') { if (!_root.pawsd) { if (!_root.scrollLock) { if (_root.player.scrollStartR) { _x = _x - _root.player.speed; } else { if (_root.player.scrollStartL) { _x = _x + _root.player.speed; } } } if (!dead) { if (Math.abs(_root.player._x - _x) <= 55 && !hurt) { attack = true; gotoAndStop('attack'); } if (_root.player._x > this._x && !hurt && !attack) { dirr = 1; gotoAndStop('move'); _xscale = 100; if (_y >= bottom - 20) { _x = _x + groundSpeed; } } else { if (!hurt && !attack) { dirr = -1; gotoAndStop('move'); _xscale = -100; if (_y >= bottom - 20) { _x = _x - groundSpeed; } } } if (this.hit.hitTest(_root.arm.sword.s)) { dtype = 1; hurt = true; gotoAndStop('hurt'); ++_global.es1; ++_global.es2; _root.dCounter.duplicateMovieClip('dCounter' + _global.es1, _global.es2); _root['dCounter' + _global.es1]._x = this._x; _root['dCounter' + _global.es1]._y = this._y; if (_root.player.dash) { extraDamage = 2; } _root['dCounter' + _global.es1].damageCounter = _root.arm.power + _root.arm.damage + extraDamage; hp -= _root.arm.power + _root.arm.damage + extraDamage; knockBack = true; force = dirr * (_root.arm.knockBack + extraDamage); if (_root.arm.up) { flyup = true; forceUp = -1 * (_root.arm.knockBack + _root.arm.power / 2 + extraDamage); } } } if (hp <= 0 && !dead) { _root.score += 25; dead = true; } if (hurt) { attack = false; if (!dead && _root.arm.damagetype == 'lightning' && this.LD._alpha <= 0) { this.LD._alpha = 100; } else { if (!dead && _root.arm.damagetype == 'fire' && this.FD._alpha <= 0) { this.FD._alpha = 100; } } ++_global.es1; ++_global.es2; _root.blood.duplicateMovieClip('blood' + _global.es1, _global.es2); _root['blood' + _global.es1]._x = this._x; _root['blood' + _global.es1]._y = this._y; _root['blood' + _global.es1]._rotation = _root.arm._rotation + random(20); } if (flyup) { _y = _y + forceUp; if (_y < bottom) { if (forceUp < 30) { ++forceUp; } } else { flyup = false; _y = bottom; } } if (knockBack) { if (KBcounter <= _root.arm.knockBack + extraDamage) { _x = _x - force; force *= 0.6; ++KBcounter; } else { knockBack = false; KBcounter = 0; extraDamage = 0; } } if (!dead) { if (_x < -250) { i = 0; while (i <= _root.control.enemies.length) { if (_root.control.enemies[i] == this) { _root.control.enemies.splice(i, 1); break; } ++i; } this.removeMovieClip(); } } else { gotoAndStop(4 + dtype); if (this.death._currentframe < 13 && dtype == 1) { } else { if (_alpha > 0) { if (this.death2._currentframe > 12) { _alpha = _alpha - 5; } else { if (this.death._currentframe > 13) { hurt = false; _alpha = _alpha - 5; } } } else { i = 0; while (i <= _root.control.enemies.length) { if (_root.control.enemies[i] == this) { _root.control.enemies.splice(i, 1); break; } ++i; } ++_root.control.killed; --_root.Dojo.kills; ++_global.kills; this.removeMovieClip(); } } } } else { pauseSelf(); } } } } instance en4s of movieClip 908 { onClipEvent (load) { function isBoss() { return false; } function pauseSelf() { if (attack) { action = 'attack'; this.atk.stop(); } else { if (dead) { action = 'dead'; frame1 = this.death._currentframe; frame2 = this.death2._currentframe; this.death.stop(); this.death2.stop(); } else { action = 'null'; gotoAndStop('stand'); } } } function unPause() { if (action == 'attack') { this.atk.play(); } else { if (action == 'dead') { this.death.gotoAndPlay(frame1 - 1); this.death2.gotoAndPlay(frame2 - 1); } } hurt = false; action = 'null'; } if (this._name != 'en4s') { _root.control.enemies.push(this); hp = 26; dtype = 1; var knockBack = false; var hurt = false; var flyup = false; var dead = false; bottom = 194.2; dirr = 1; KBcounter = 0; var forceUp = 0; extraDamage = 0; healthDropChance = 0; goldDropChance = 4; lock = true; head = 1 + random(2); wep = 1 + random(3); } action = 'null'; attack = false; } onClipEvent (enterFrame) { if (this._name != 'en4s') { if (!_root.pawsd || !lock) { if (!_root.scrollLock) { if (_root.player.scrollStartR) { _x = _x - _root.player.speed; } else { if (_root.player.scrollStartL) { _x = _x + _root.player.speed; } } } if (!dead) { if (Math.abs(_root.player._x - _x) <= 78 && !hurt) { if (_root.player._x > this._x && !hurt && !attack) { _xscale = 100; } else { if (!hurt && !attack) { _xscale = -100; } } attack = true; gotoAndStop('attack'); } if (_root.player._x > this._x && !hurt && !attack) { dirr = 1; gotoAndStop('move'); _xscale = 100; if (_y >= bottom - 20) { _x = _x + 3; } } else { if (!hurt && !attack) { dirr = -1; gotoAndStop('move'); _xscale = -100; if (_y >= bottom - 20) { _x = _x - 3; } } } if (this.hit.hitTest(_root.arm.sword.s)) { dtype = 1; hurt = true; gotoAndStop('hurt'); ++_global.es1; ++_global.es2; _root.dCounter.duplicateMovieClip('dCounter' + _global.es1, _global.es2); _root['dCounter' + _global.es1]._x = this._x; _root['dCounter' + _global.es1]._y = this._y; if (_root.player.dash) { extraDamage = 2; } _root['dCounter' + _global.es1].damageCounter = _root.arm.power + _root.arm.damage + extraDamage; hp -= _root.arm.power + _root.arm.damage + extraDamage; knockBack = true; force = dirr * (_root.arm.knockBack + extraDamage); if (_root.arm.up) { flyup = true; forceUp = -1 * (_root.arm.knockBack + _root.arm.power / 2 + extraDamage); } } } if (hp <= 0 && !dead) { ++_root.control.killings; --_root.control.normal; ++_global.kills; --_root.killsLeft.killCount; _root.score += 40; _root.goldDrop(random(goldDropChance), _x, _y, false); _root.healthDrop(random(healthDropChance), this._x, this._y); dead = true; } if (hurt) { attack = false; if (!dead && _root.arm.damagetype == 'lightning' && this.LD._alpha <= 0) { this.LD._alpha = 100; } else { if (!dead && _root.arm.damagetype == 'fire' && this.FD._alpha <= 0) { this.FD._alpha = 100; } } ++_global.es1; ++_global.es2; _root.blood.duplicateMovieClip('blood' + _global.es1, _global.es2); _root['blood' + _global.es1]._x = this._x; _root['blood' + _global.es1]._y = this._y; _root['blood' + _global.es1]._rotation = _root.arm._rotation + random(20); } if (flyup) { _y = _y + forceUp; if (_y < bottom) { if (forceUp < 30) { ++forceUp; } } else { flyup = false; _y = bottom; } } if (knockBack) { if (KBcounter <= _root.arm.knockBack + extraDamage) { _x = _x - force; force *= 0.6; ++KBcounter; } else { knockBack = false; KBcounter = 0; extraDamage = 0; } } if (!dead) { if (_x < -250) { i = 0; while (i <= _root.control.enemies.length) { if (_root.control.enemies[i] == this) { _root.control.enemies.splice(i, 1); break; } ++i; } --_root.control.normal; this.removeMovieClip(); } } else { gotoAndStop(4 + dtype); hurt = false; if (this.death._currentframe < 30 && dtype == 1) { ++_global.es1; ++_global.es2; _root.blood.duplicateMovieClip('blood' + _global.es1, _global.es2); _root['blood' + _global.es1]._x = this._x + (this.death._x + this.death.head._x) * dirr - 10 * Math.sin(_root['blood' + _global.es1]._rotation * 0.0174532925199433); _root['blood' + _global.es1].slow = true; _root['blood' + _global.es1]._y = this._y + 25 + this.death._y + this.death.head._y - 10 * Math.cos(_rotation * 0.0174532925199433); _root['blood' + _global.es1]._rotation = (this.death.head._rotation + 90 - random(30)) * dirr; ++_global.es1; ++_global.es2; _root.blood.duplicateMovieClip('blood' + _global.es1, _global.es2); _root['blood' + _global.es1]._x = this._x + this.death._x; _root['blood' + _global.es1].slow = true; _root['blood' + _global.es1]._y = this._y - 10; offset = random(70); _root['blood' + _global.es1]._rotation = 20 - offset; } else { if (_alpha > 0) { if (this.death2._currentframe > 12) { _alpha = _alpha - 5; } else { if (this.death._currentframe > 30) { _alpha = _alpha - 5; } } } else { i = 0; while (i <= _root.control.enemies.length) { if (_root.control.enemies[i] == this) { _root.control.enemies.splice(i, 1); break; } ++i; } this.removeMovieClip(); } } } } else { if (lock) { pauseSelf(); } } } } } movieClip 1577 { frame 7 { this.removeMovieClip(); } } instance coin3E of movieClip 1577 { onClipEvent (load) { if (this._name != 'coin3E') { } else { stop(); } } } movieClip 1582 { } instance coin3s of movieClip 1582 { onClipEvent (load) { function remove() { i = 0; while (i <= _root.gcontrol.miscItems.length) { if (_root.gcontrol.miscItems[i] == this) { _root.gcontrol.miscItems.splice(i, 1); break; } ++i; } this.removeMovieClip(); } if (this._name != 'coin3s') { _root.gcontrol.miscItems.push(this); movex = (-1 + random(3)) * 2; movey = 15 + random(10); if (movey % 2 != 0) { --movey; } fade = false; } } onClipEvent (enterFrame) { if (this._name != 'coin3s' && !_root.pawsd) { if (_y > 224) { _y = 224; movey *= -0.5; if (Math.abs(movey) < 3.5) { movey = 0; fade = true; } } _x = _x + movex; if (movex > 0) { movex -= 0.1; } else { movex += 0.1; } _y = _y - movey; movey -= 2; if (!_root.scrollLock) { if (_root.player.scrollStartR) { _x = _x - _root.player.speed; } else { if (_root.player.scrollStartL) { _x = _x + _root.player.speed; } } } if (this.hitTest(_root.player.hit)) { _root.gold += 15; ++_global.eb1; ++_global.eb2; _root.coin3E.duplicateMovieClip('coin3E' + _global.eb1, _global.eb2); _root['coin3E' + _global.eb1]._x = _x; _root['coin3E' + _global.eb1]._y = _y; remove(); } if (fade && _alpha > 0) { _alpha = _alpha - 5; } else { if (fade) { remove(); } } } } } movieClip 1584 { } movieClip 1586 { } movieClip 1588 { } movieClip 1589 { } movieClip 1590 { } movieClip 1591 { frame 5 { _parent.hurt = false; } } movieClip 1592 { instance of movieClip 789 { onClipEvent (load) { if (this.hitTest(_root.player.guard)) { cancel = true; _root.arm.sword.sword.spark.gotoAndPlay(1); _root.arm.energy -= 2; } else { if (this.hitTest(_root.player.hit) && !cancel) { _root.player.hurt(1); } } } } instance of movieClip 789 { onClipEvent (load) { if (this.hitTest(_root.player.guard)) { cancel = true; _root.arm.sword.sword.spark.gotoAndPlay(1); _root.arm.energy -= 2; } else { if (this.hitTest(_root.player.hit) && !cancel) { _root.player.hurt(1); } } } } instance of movieClip 789 { onClipEvent (load) { if (this.hitTest(_root.player.guard)) { cancel = true; _root.arm.sword.sword.spark.gotoAndPlay(1); _root.arm.energy -= 2; } else { if (this.hitTest(_root.player.hit) && !cancel) { _root.player.hurt(1); } } } } instance of movieClip 789 { onClipEvent (load) { if (this.hitTest(_root.player.guard)) { cancel = true; _root.arm.sword.sword.spark.gotoAndPlay(1); _root.arm.energy -= 2; } else { if (this.hitTest(_root.player.hit) && !cancel) { _root.player.hurt(1); } } } } instance of movieClip 789 { onClipEvent (load) { if (this.hitTest(_root.player.guard)) { cancel = true; _root.arm.sword.sword.spark.gotoAndPlay(1); _root.arm.energy -= 2; } else { if (this.hitTest(_root.player.hit) && !cancel) { _root.player.hurt(1); } } } } frame 20 { _parent.attack = false; } } movieClip 1606 { frame 1 { num = random(4); newSound = new Sound(); newSound.attachSound(_root.manDeath[num]); newSound.setVolume(100); newSound.start(); } frame 25 { stop(); } } movieClip 1609 { frame 1 { _parent.hurt = false; } instance head of movieClip 1586 { onClipEvent (enterFrame) { _root.dist = _x; } } frame 14 { stop(); } } movieClip 1610 { frame 1 { stop(); } instance FD of movieClip 762 { onClipEvent (enterFrame) { if (_alpha >= 0) { play(); } else { stop(); } } } instance LD of movieClip 766 { onClipEvent (enterFrame) { if (_alpha >= 0) { _alpha = _alpha - 10; play(); } else { stop(); } } } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } frame 6 { stop(); } } instance en3s of movieClip 1610 { onClipEvent (load) { function isBoss() { return false; } function pauseSelf() { if (attack) { action = 'attack'; this.atk.stop(); } else { if (dead) { action = 'dead'; frame1 = this.death._currentframe; frame2 = this.death2._currentframe; this.death.stop(); this.death2.stop(); } else { action = 'null'; gotoAndStop('stand'); } } } function unPause() { if (action == 'attack') { this.atk.play(); } else { if (action == 'dead') { this.death.gotoAndPlay(frame1 - 1); this.death2.gotoAndPlay(frame2 - 1); } } hurt = false; action = 'null'; } if (this._name != 'en3s') { _root.control.enemies.push(this); hp = 15; dtype = 1; var knockBack = false; var hurt = false; var flyup = true; var dead = false; bottom = 194.2; dirr = 1; KBcounter = 0; var forceUp = 0; extraDamage = 0; _y = -80; healthDropChance = 0; goldDropChance = 5; } action = 'null'; attack = false; } onClipEvent (enterFrame) { if (this._name != 'en3s') { if (!_root.pawsd) { if (!_root.scrollLock) { if (_root.player.scrollStartR) { _x = _x - _root.player.speed; } else { if (_root.player.scrollStartL) { _x = _x + _root.player.speed; } } } if (!dead) { if (Math.abs(_root.player._x - _x) <= 65 && !hurt) { if (_root.player._x > this._x && !hurt && !attack) { _xscale = 100; } else { if (!hurt && !attack) { _xscale = -100; } } attack = true; gotoAndStop('attack'); } if (_root.player._x > this._x && !hurt && !attack) { dirr = 1; gotoAndStop('move'); _xscale = 100; if (_y >= bottom - 20) { _x = _x + 2.5; } } else { if (!hurt && !attack) { dirr = -1; gotoAndStop('move'); _xscale = -100; if (_y >= bottom - 20) { _x = _x - 2.5; } } } if (this.hit.hitTest(_root.arm.sword.s)) { dtype = 1; hurt = true; gotoAndStop('hurt'); ++_global.es1; ++_global.es2; _root.dCounter.duplicateMovieClip('dCounter' + _global.es1, _global.es2); _root['dCounter' + _global.es1]._x = this._x; _root['dCounter' + _global.es1]._y = this._y; if (_root.player.dash) { extraDamage = 2; } _root['dCounter' + _global.es1].damageCounter = _root.arm.power + _root.arm.damage + extraDamage; hp -= _root.arm.power + _root.arm.damage + extraDamage; knockBack = true; force = dirr * (_root.arm.knockBack + extraDamage); if (_root.arm.up) { flyup = true; forceUp = -1 * (_root.arm.knockBack + _root.arm.power / 2 + extraDamage); } } } if (hp <= 0 && !dead) { ++_root.control.killings; --_root.killsLeft.killCount; _root.score += 50; --_root.control.strong; ++_global.kills; _root.goldDrop(random(goldDropChance), _x, _y, false); _root.healthDrop(random(healthDropChance), this._x, this._y); dead = true; } if (hurt) { attack = false; if (!dead && _root.arm.damagetype == 'lightning' && this.LD._alpha <= 0) { this.LD._alpha = 100; } else { if (!dead && _root.arm.damagetype == 'fire' && this.FD._alpha <= 0) { this.FD._alpha = 100; } } ++_global.es1; ++_global.es2; _root.blood.duplicateMovieClip('blood' + _global.es1, _global.es2); _root['blood' + _global.es1]._x = this._x; _root['blood' + _global.es1]._y = this._y; _root['blood' + _global.es1]._rotation = _root.arm._rotation + random(20); } if (flyup) { _y = _y + forceUp; if (_y < bottom) { if (forceUp < 30) { ++forceUp; } } else { flyup = false; _y = bottom; } } if (knockBack) { if (KBcounter <= _root.arm.knockBack + extraDamage) { _x = _x - force; force *= 0.6; ++KBcounter; } else { knockBack = false; KBcounter = 0; extraDamage = 0; } } if (!dead) { if (_x < -250) { i = 0; while (i <= _root.control.enemies.length) { if (_root.control.enemies[i] == this) { _root.control.enemies.splice(i, 1); break; } ++i; } --_root.control.strong; this.removeMovieClip(); } } else { gotoAndStop(4 + dtype); hurt = false; if (this.death._currentframe < 20 && dtype == 1) { ++_global.es1; ++_global.es2; _root.blood.duplicateMovieClip('blood' + _global.es1, _global.es2); _root['blood' + _global.es1]._x = this._x + 10 * dirr + (this.death._x + this.death.head._x) * dirr - 10 * Math.sin(_root['blood' + _global.es1]._rotation * 0.0174532925199433); _root['blood' + _global.es1].slow = true; _root['blood' + _global.es1]._y = this._y + this.death._y + this.death.head._y - 10 * Math.cos(_rotation * 0.0174532925199433); _root['blood' + _global.es1]._rotation = (this.death.head._rotation + 90 - random(30)) * dirr; ++_global.es1; ++_global.es2; _root.blood.duplicateMovieClip('blood' + _global.es1, _global.es2); _root['blood' + _global.es1]._x = this._x + 10 * dirr + (this.death._x + this.death.head._x) * dirr - 10 * Math.sin(_root['blood' + _global.es1]._rotation * 0.0174532925199433); _root['blood' + _global.es1].slow = true; _root['blood' + _global.es1]._y = this._y + this.death._y + this.death.head._y - 10 * Math.cos(_rotation * 0.0174532925199433); offset = random(70); _root['blood' + _global.es1]._rotation = (this.death.head._rotation - offset + 90) * dirr; } else { if (_alpha > 0) { if (this.death2._currentframe > 12) { _alpha = _alpha - 5; } else { if (this.death._currentframe > 19) { _alpha = _alpha - 5; } } } else { i = 0; while (i <= _root.control.enemies.length) { if (_root.control.enemies[i] == this) { _root.control.enemies.splice(i, 1); break; } ++i; } this.removeMovieClip(); } } } } else { pauseSelf(); } } } } movieClip 1614 { frame 1 { gotoAndStop(_parent._parent.wep); } } movieClip 1617 { frame 1 { gotoAndStop(_parent._parent.head); } } movieClip 1619 { } movieClip 1620 { } movieClip 1621 { } movieClip 1622 { frame 5 { _parent.hurt = false; } } movieClip 1623 { instance of movieClip 789 { onClipEvent (load) { if (this.hitTest(_root.player.guard)) { cancel = true; _root.arm.sword.sword.spark.gotoAndPlay(1); _root.arm.energy -= 2; } else { if (this.hitTest(_root.player.hit) && !cancel) { _root.player.hurt(1); } } } } frame 19 { _parent.attack = false; } } movieClip 1636 { frame 25 { stop(); } } movieClip 1639 { frame 1 { _parent.hurt = false; } instance head of movieClip 1617 { onClipEvent (enterFrame) { _root.dist = _x; } } frame 14 { stop(); } } movieClip 1640 { frame 1 { stop(); } instance FD of movieClip 762 { onClipEvent (enterFrame) { if (_alpha >= 0) { play(); } else { stop(); } } } instance LD of movieClip 766 { onClipEvent (enterFrame) { if (_alpha >= 0) { _alpha = _alpha - 10; play(); } else { stop(); } } } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } frame 6 { stop(); } } instance en2s of movieClip 1640 { onClipEvent (load) { function dropGold(chance) { _root.goldDrop(random(goldDropChance), _x, _y, false); _root.healthDrop(random(healthDropChance), this._x, this._y); } function isBoss() { return false; } function pauseSelf() { if (attack) { action = 'attack'; this.atk.stop(); } else { if (dead) { action = 'dead'; frame1 = this.death._currentframe; frame2 = this.death2._currentframe; this.death.stop(); this.death2.stop(); } else { action = 'null'; gotoAndStop('stand'); } } } function unPause() { if (action == 'attack') { this.atk.play(); } else { if (action == 'dead') { this.death.gotoAndPlay(frame1 - 1); this.death2.gotoAndPlay(frame2 - 1); } } hurt = false; action = 'null'; } if (this._name != 'en2s') { _root.control.enemies.push(this); hp = 18; dtype = 1; var knockBack = false; var hurt = false; var flyup = false; var dead = false; bottom = 194.2; dirr = 1; KBcounter = 0; var forceUp = 0; extraDamage = 0; healthDropChance = 20; goldDropChance = 4; head = 1 + random(2); wep = 1 + random(3); } action = 'null'; attack = false; } onClipEvent (enterFrame) { if (this._name != 'en2s') { if (!_root.pawsd) { if (!_root.scrollLock) { if (_root.player.scrollStartR) { _x = _x - _root.player.speed; } else { if (_root.player.scrollStartL) { _x = _x + _root.player.speed; } } } if (!dead) { if (Math.abs(_root.player._x - _x) <= 50 && !hurt) { attack = true; gotoAndStop('attack'); } if (_root.player._x > this._x && !hurt && !attack) { dirr = 1; gotoAndStop('move'); _xscale = 100; if (_y >= bottom - 20) { _x = _x + 2; } } else { if (!hurt && !attack) { dirr = -1; gotoAndStop('move'); _xscale = -100; if (_y >= bottom - 20) { _x = _x - 2; } } } if (this.hit.hitTest(_root.arm.sword.s)) { dtype = 1; hurt = true; gotoAndStop('hurt'); ++_global.es1; ++_global.es2; _root.dCounter.duplicateMovieClip('dCounter' + _global.es1, _global.es2); _root['dCounter' + _global.es1]._x = this._x; _root['dCounter' + _global.es1]._y = this._y; if (_root.player.dash) { extraDamage = 2; } _root['dCounter' + _global.es1].damageCounter = _root.arm.power + _root.arm.damage + extraDamage; hp -= _root.arm.power + _root.arm.damage + extraDamage; knockBack = true; force = dirr * (_root.arm.knockBack + extraDamage); if (_root.arm.up) { flyup = true; forceUp = -1 * (_root.arm.knockBack + _root.arm.power / 2 + extraDamage); } } } if (hp <= 0 && !dead) { ++_root.control.killings; _root.score += 25; ++_global.kills; dropGold(4); dead = true; } if (hurt) { attack = false; if (!dead && _root.arm.damagetype == 'lightning' && this.LD._alpha <= 0) { this.LD._alpha = 100; } else { if (!dead && _root.arm.damagetype == 'fire' && this.FD._alpha <= 0) { this.FD._alpha = 100; } } ++_global.es1; ++_global.es2; _root.blood.duplicateMovieClip('blood' + _global.es1, _global.es2); _root['blood' + _global.es1]._x = this._x; _root['blood' + _global.es1]._y = this._y; _root['blood' + _global.es1]._rotation = _root.arm._rotation + random(20); } if (flyup) { _y = _y + forceUp; if (_y < bottom) { if (forceUp < 30) { ++forceUp; } } else { flyup = false; _y = bottom; } } if (knockBack) { if (KBcounter <= _root.arm.knockBack + extraDamage) { _x = _x - force; force *= 0.6; ++KBcounter; } else { knockBack = false; KBcounter = 0; extraDamage = 0; } } if (!dead) { if (_x < -250) { i = 0; while (i <= _root.control.enemies.length) { if (_root.control.enemies[i] == this) { _root.control.enemies.splice(i, 1); break; } ++i; } this.removeMovieClip(); } } else { gotoAndStop(4 + dtype); if (this.death._currentframe < 20 && dtype == 1) { ++_global.es1; ++_global.es2; _root.blood.duplicateMovieClip('blood' + _global.es1, _global.es2); _root['blood' + _global.es1]._x = this._x + (this.death._x + this.death.head._x) * dirr - 10 * Math.sin(_root['blood' + _global.es1]._rotation * 0.0174532925199433); _root['blood' + _global.es1].slow = true; _root['blood' + _global.es1]._y = this._y + this.death._y + this.death.head._y + 10 * Math.cos(_rotation * 0.0174532925199433); _root['blood' + _global.es1]._rotation = (this.death.head._rotation + 180) * dirr; ++_global.es1; ++_global.es2; _root.blood.duplicateMovieClip('blood' + _global.es1, _global.es2); _root['blood' + _global.es1]._x = this._x + this.death._x; _root['blood' + _global.es1].slow = true; _root['blood' + _global.es1]._y = this._y - 10; offset = random(70); _root['blood' + _global.es1]._rotation = 20 - offset; } else { if (_alpha > 0) { if (this.death2._currentframe > 12) { _alpha = _alpha - 5; } else { if (this.death._currentframe > 19) { hurt = false; _alpha = _alpha - 5; } } } else { i = 0; while (i <= _root.control.enemies.length) { if (_root.control.enemies[i] == this) { _root.control.enemies.splice(i, 1); break; } ++i; } this.removeMovieClip(); } } } } else { pauseSelf(); } } } } movieClip 1647 { frame 6 { stop(); } } instance blood of movieClip 1647 { onClipEvent (load) { if (this._name != 'blood') { up = 15 + _root.arm.damage + _root.arm.power; across = 15 + _root.arm.damage; bottom = 210 + random(5); } } onClipEvent (enterFrame) { if (this._name != 'blood') { if (!_root.scrollLock) { if (_root.player.scrollStartR) { _x = _x - _root.player.speed; } else { if (_root.player.scrollStartL) { _x = _x + _root.player.speed; } } } if (_alpha > 0) { _alpha = _alpha - 8; } else { this.removeMovieClip(); } if (!floored) { if (slow) { up = 8; across = 8; } _y = _y - up * Math.cos(_rotation * 0.0174532925199433); _x = _x + across * Math.sin(_rotation * 0.0174532925199433); _rotation = _rotation * 1.05; if (_y >= bottom) { floored = true; } } } } } movieClip 1651 { frame 1 { gotoAndStop(_parent._parent.wep); } } movieClip 1654 { frame 1 { gotoAndStop(_parent._parent.head); } } movieClip 1656 { } movieClip 1657 { } movieClip 1658 { } movieClip 1659 { frame 5 { _parent.hurt = false; } } movieClip 1660 { instance of movieClip 789 { onClipEvent (load) { if (this.hitTest(_root.player.guard)) { cancel = true; _root.arm.sword.sword.spark.gotoAndPlay(1); _root.arm.energy -= 2; } else { if (this.hitTest(_root.player.hit) && !cancel) { _root.player.hurt(1); } } } } frame 19 { _parent.attack = false; } } movieClip 1672 { frame 25 { stop(); } } movieClip 1675 { frame 1 { _parent.hurt = false; } instance head of movieClip 1654 { onClipEvent (enterFrame) { _root.dist = _x; } } frame 14 { stop(); } } movieClip 1676 { frame 1 { stop(); } instance FD of movieClip 762 { onClipEvent (enterFrame) { if (_alpha >= 0) { play(); } else { stop(); } } } instance LD of movieClip 766 { onClipEvent (enterFrame) { if (_alpha >= 0) { _alpha = _alpha - 10; play(); } else { stop(); } } } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } frame 6 { stop(); } } instance en1s of movieClip 1676 { onClipEvent (load) { function dropGold(chance) { _root.goldDrop(random(goldDropChance), _x, _y, false); _root.healthDrop(random(healthDropChance), this._x, this._y); } function isBoss() { return false; } function pauseSelf() { if (attack) { action = 'attack'; this.atk.stop(); } else { if (dead) { action = 'dead'; frame1 = this.death._currentframe; frame2 = this.death2._currentframe; this.death.stop(); this.death2.stop(); } else { action = 'null'; gotoAndStop('stand'); } } } function unPause() { if (action == 'attack') { this.atk.play(); } else { if (action == 'dead') { this.death.gotoAndPlay(frame1 - 1); this.death2.gotoAndPlay(frame2 - 1); } } hurt = false; action = 'null'; } if (this._name != 'en1s') { _root.control.enemies.push(this); hp = 14; dtype = 1; var knockBack = false; var hurt = false; var flyup = false; var dead = false; bottom = 194.2; dirr = 1; KBcounter = 0; var forceUp = 0; extraDamage = 0; healthDropChance = 0; goldDropChance = 3; head = 1 + random(2); wep = 1 + random(3); } action = 'null'; attack = false; } onClipEvent (enterFrame) { if (this._name != 'en1s') { if (!_root.pawsd) { if (!_root.scrollLock) { if (_root.player.scrollStartR) { _x = _x - _root.player.speed; } else { if (_root.player.scrollStartL) { _x = _x + _root.player.speed; } } } if (!dead) { if (Math.abs(_root.player._x - _x) <= 50 && !hurt) { attack = true; gotoAndStop('attack'); } if (_root.player._x > this._x && !hurt && !attack) { dirr = 1; gotoAndStop('move'); _xscale = 100; if (_y >= bottom - 20) { _x = _x + 2; } } else { if (!hurt && !attack) { dirr = -1; gotoAndStop('move'); _xscale = -100; if (_y >= bottom - 20) { _x = _x - 2; } } } if (this.hit.hitTest(_root.arm.sword.s)) { dtype = 1; hurt = true; gotoAndStop('hurt'); ++_global.es1; ++_global.es2; _root.dCounter.duplicateMovieClip('dCounter' + _global.es1, _global.es2); _root['dCounter' + _global.es1]._x = this._x; _root['dCounter' + _global.es1]._y = this._y; if (_root.player.dash) { extraDamage = 2; } _root['dCounter' + _global.es1].damageCounter = _root.arm.power + _root.arm.damage + extraDamage; hp -= _root.arm.power + _root.arm.damage + extraDamage; knockBack = true; force = dirr * (_root.arm.knockBack + extraDamage); if (_root.arm.up) { flyup = true; forceUp = -1 * (_root.arm.knockBack + _root.arm.power / 2 + extraDamage); } } } if (hp <= 0 && !dead) { ++_root.control.killings; _root.score += 20; dropGold(3); dead = true; } if (hurt) { attack = false; if (!dead && _root.arm.damagetype == 'lightning' && this.LD._alpha <= 0) { this.LD._alpha = 100; } else { if (!dead && _root.arm.damagetype == 'fire' && this.FD._alpha <= 0) { this.FD._alpha = 100; } } ++_global.es1; ++_global.es2; _root.blood.duplicateMovieClip('blood' + _global.es1, _global.es2); _root['blood' + _global.es1]._x = this._x; _root['blood' + _global.es1]._y = this._y; _root['blood' + _global.es1]._rotation = _root.arm._rotation + random(20); } if (flyup) { _y = _y + forceUp; if (_y < bottom) { if (forceUp < 30) { ++forceUp; } } else { flyup = false; _y = bottom; } } if (knockBack) { if (KBcounter <= _root.arm.knockBack + extraDamage) { _x = _x - force; force *= 0.6; ++KBcounter; } else { knockBack = false; KBcounter = 0; extraDamage = 0; } } if (!dead) { if (_x < -250) { i = 0; while (i <= _root.control.enemies.length) { if (_root.control.enemies[i] == this) { _root.control.enemies.splice(i, 1); break; } ++i; } this.removeMovieClip(); } } else { gotoAndStop(4 + dtype); if (this.death._currentframe < 20 && dtype == 1) { ++_global.es1; ++_global.es2; _root.blood.duplicateMovieClip('blood' + _global.es1, _global.es2); _root['blood' + _global.es1]._x = this._x + (this.death._x + this.death.head._x) * dirr - 10 * Math.sin(_root['blood' + _global.es1]._rotation * 0.0174532925199433); _root['blood' + _global.es1].slow = true; _root['blood' + _global.es1]._y = this._y + this.death._y + this.death.head._y + 10 * Math.cos(_rotation * 0.0174532925199433); _root['blood' + _global.es1]._rotation = (this.death.head._rotation + 180) * dirr; ++_global.es1; ++_global.es2; _root.blood.duplicateMovieClip('blood' + _global.es1, _global.es2); _root['blood' + _global.es1]._x = this._x + this.death._x; _root['blood' + _global.es1].slow = true; _root['blood' + _global.es1]._y = this._y - 10; offset = random(70); _root['blood' + _global.es1]._rotation = 20 - offset; } else { if (_alpha > 0) { if (this.death2._currentframe > 12) { _alpha = _alpha - 5; } else { if (this.death._currentframe > 19) { hurt = false; _alpha = _alpha - 5; } } } else { i = 0; while (i <= _root.control.enemies.length) { if (_root.control.enemies[i] == this) { _root.control.enemies.splice(i, 1); break; } ++i; } ++_global.kills; this.removeMovieClip(); } } } } else { pauseSelf(); } } } } movieClip 1678 { } instance dCounter of movieClip 1678 { onClipEvent (load) { if (this._name != 'dCounter') { rate = 10; counter = 0; } } onClipEvent (enterFrame) { if (this._name != 'dCounter') { if (counter < 13) { _y = _y - rate; rate *= 0.7; ++counter; } else { if (counter < 14) { ++counter; } else { this.removeMovieClip(); } } } } } movieClip 1680 { } movieClip 1681 { } instance test of movieClip 1681 { } movieClip 1684 { } movieClip 1689 { } movieClip 1691 { } button 1695 { on (release) { play(); } } button 1702 { on (release) { gotoAndStop(_currentframe - 1); } } movieClip 1708 { } movieClip 1713 { } movieClip 1716 { } movieClip 1718 { } movieClip 1720 { } movieClip 1722 { instance sword of movieClip 659 { onClipEvent (load) { } } } movieClip 1729 { instance sword of movieClip 659 { onClipEvent (load) { } } } movieClip 1733 { } movieClip 1742 { instance sword of movieClip 659 { onClipEvent (load) { } } } movieClip 1749 { frame 14 { stop(); } } movieClip 1750 { instance head of movieClip 376 { } } movieClip 1755 { instance head of movieClip 686 { } } movieClip 1770 { } movieClip 1771 { frame 10 { stop(); } frame 11 { stop(); } frame 12 { stop(); } frame 13 { stop(); } frame 14 { stop(); } frame 15 { stop(); } instance dummy of movieClip 1716 { onClipEvent (load) { function isBoss() { return false; } hp = 10; var knockBack = false; KBcounter = 0; dirr = 1; var flyup = false; var forceUp = 0; bottom = _y; extraDamage = 0; _root.control.enemies.push(this); } onClipEvent (enterFrame) { if (!_root.pawsd) { if (_root.player._x > this._x + _parent._x) { dirr = 1; } else { dirr = -1; } if (!_root.scrollLock) { if (_root.player.scrollStartR) { _x = _x - _root.player.speed; } else { if (_root.player.scrollStartL) { _x = _x + _root.player.speed; } } } if (this.hit.hitTest(_root.arm.sword.s)) { ++_global.es1; ++_global.es2; _root.dCounter.duplicateMovieClip('dCounter' + _global.es1, _global.es2); _root['dCounter' + _global.es1]._x = this._x + _parent._x; _root['dCounter' + _global.es1]._y = this._y + _parent._y; if (_root.player.dash) { extraDamage = 2; } _root['dCounter' + _global.es1].damageCounter = _root.arm.power + _root.arm.damage + extraDamage; hp -= _root.arm.power + _root.arm.damage + extraDamage; knockBack = true; force = dirr * (_root.arm.knockBack + extraDamage); if (_root.arm.up) { flyup = true; forceUp = -1 * (_root.arm.knockBack + _root.arm.power / 2 + extraDamage); } } if (flyup) { _y = _y + forceUp; if (_y < bottom) { if (forceUp < 30) { ++forceUp; } } else { flyup = false; _y = bottom; } } if (knockBack) { if (KBcounter <= _root.arm.knockBack + extraDamage) { _x = _x - force; force *= 0.6; ++KBcounter; } else { knockBack = false; KBcounter = 0; extraDamage = 0; } } } } } 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 37 { _root.scrollLock = false; _root.distance = 80; stop(); } } instance tutorialObject of movieClip 1771 { onClipEvent (load) { lock = 0; } onClipEvent (enterFrame) { if (_root.distance <= 0 && !_root.scrollLock && lock < 1) { _root.blackout.gotoAndPlay(2); lock = 1; _root.sound.fadeOut(0, 30); } } } instance control of movieClip 187 { onClipEvent (load) { function createEnemy(Etype, xx, yy) { ++_global.es1; ++_global.es2; _root['en' + Etype + '' + 's'].duplicateMovieClip('en' + Etype + '' + 's' + _global.es1, _global.es2); _root['en' + Etype + '' + 's' + _global.es1]._x = xx; _root['en' + Etype + '' + 's' + _global.es1]._y = yy; } function createBox(Btype, xx) { ++_global.eb1; ++_global.eb2; _root['box' + Btype + 's'].duplicateMovieClip('box' + Btype + 's' + _global.eb1, _global.eb2); _root['box' + Btype + 's' + _global.eb1]._x = xx; _root['box' + Btype + 's' + _global.eb1]._y = 220; } function removeAllEnemies() { i = 0; while (i <= _root.control.enemies.length) { _root.control.enemies[i].removeMovieClip(); ++i; } weak = 0; normal = 0; strong = 0; _root.control.enemies.splice(0, _root.control.enemies.length); } t = 0; var enemies = new Array(); var slashes = new Array(); } onClipEvent (press) { createEnemy(18, 70, 194.2); } onClipEvent (enterFrame) { } } movieClip 1773 { } movieClip 1774 { } instance of movieClip 1774 { onClipEvent (load) { ground.duplicateMovieClip('ground2', 100); ground.duplicateMovieClip('ground3', 101); ground2._x = ground._x + ground._width; ground3._x = ground._x - ground._width; groundStartx = this._x; } onClipEvent (enterFrame) { if (!_root.pawsd && !_root.scrollLock) { groundSpeed = Math.round(_root.player.speed); if (_root.player.scrollStartR == true) { this._x -= groundSpeed; if (this._x <= groundStartx - ground._width) { this._x = groundStartx; } } if (_root.player.scrollStartL == true) { this._x += groundSpeed; if (this._x > groundStartx + ground._width) { this._x = groundStartx; } } } } } movieClip 1776 { } movieClip 1777 { } instance of movieClip 1777 { onClipEvent (load) { ground.duplicateMovieClip('ground2', 100); ground.duplicateMovieClip('ground3', 101); ground2._x = ground._x + ground._width; ground3._x = ground._x - ground._width; groundStartx = this._x; } onClipEvent (enterFrame) { if (!_root.pawsd && !_root.scrollLock && _global.scrolling >= 2) { groundSpeed = _root.player.speed / 4; if (_root.player.scrollStartR == true) { this._x -= groundSpeed; if (this._x <= groundStartx - ground._width) { this._x = groundStartx - groundSpeed; } } if (_root.player.scrollStartL == true) { this._x += groundSpeed; if (this._x > groundStartx + ground._width) { this._x = groundStartx + groundSpeed; } } } } } movieClip 1779 { } movieClip 1780 { } instance of movieClip 1780 { } frame 6 { pawsd = true; if (_currentframe == 6) { _root.blackout.gotoAndStop(13); } stop(); } movieClip 1783 { } movieClip 1785 { } button 1786 { on (release) { _root.blackout.gotoAndStop(1); con.enabled = false; _root.gotoAndStop(3); } } button 1787 { on (release) { men.enabled = false; play(); } } movieClip 1789 { frame 10 { stop(); } frame 19 { stop(); _root.play(); } } frame 7 { _root.blackout.play(); _root.player.reset(); my_ti.sword.text = '2'; stop(); _root.score = 0; _root.gold = 500; _root.distance = 6000; _root.goArrow._visible = true; _global.es1 = 0; _global.es2 = 100000; _global.eb1 = 0; _global.eb2 = 60000; _global.ps1 = 0; _global.ps2 = 200000; _global.t1 = 0; _global.t2 = 150; 0; _root.scrollLock = false; pawsd = false; battle = false; _root.onEnterFrame = function () { if (Key.isDown(80) && _root._currentframe == 7) { if (!pawsd) { pawsd = true; _root.pmenu._y = 134; } } if (!scrollLock && _global.scrollFix) { if ((_root.player.scrollStartR || _root.player.scrollStartL) && _quality == 'HIGH') { _quality = 'MEDIUM'; } } if (!scrollLock && _root.player.scrollStartL && _root.distance > _root.player.stopDist + 100) { scrollLock = true; _root.distance = _root.player.stopDist + 100; } else { if (_root.player.scrollStartR && _root.distance > 250 && _root._currentframe == 7) { scrollLock = false; } } }; _root.sound.setNextVolume(30); _root.sound.setNextVolumeRate(5); _root.sound.setNextSong('Plains', true); } instance pmenu of movieClip 428 { onClipEvent (load) { this.swapDepths(10000000000001.0); } } instance control of movieClip 187 { onClipEvent (load) { function createEnemy(Etype, xx, yy) { ++_global.es1; ++_global.es2; _root['en' + Etype + '' + 's'].duplicateMovieClip('en' + Etype + '' + 's' + _global.es1, _global.es2); _root['en' + Etype + '' + 's' + _global.es1]._x = xx; _root['en' + Etype + '' + 's' + _global.es1]._y = yy; } function createBox(Btype, xx) { ++_global.eb1; ++_global.eb2; _root['box' + Btype + 's'].duplicateMovieClip('box' + Btype + 's' + _global.eb1, _global.eb2); _root['box' + Btype + 's' + _global.eb1]._x = xx; _root['box' + Btype + 's' + _global.eb1]._y = 220; } function removeAllEnemies() { i = 0; while (i <= _root.control.enemies.length) { _root.control.enemies[i].removeMovieClip(); ++i; } weak = 0; normal = 0; strong = 0; _root.control.enemies.splice(0, _root.control.enemies.length); } function restoreLevelMusic() { _root.sound.setNextVolumeRate(5); _root.sound.setNextVolume(30); _root.sound.setNextSong('Plains', true); } t = 0; lock = false; boxCount = 0; weak = 0; normal = 0; strong = 0; var enemies = new Array(); var slashes = new Array(); } onClipEvent (press) { } onClipEvent (enterFrame) { if (!_root.player.dead) { if (_root.distance < 400) { lock = true; if (_root.distance <= 250) { _root.scrollLock = true; if (_root.distance <= 0 && !lockBlackOut) { _root.blackout.gotoAndPlay(2); _root.sound.fadeOut(0, 60); removeAllEnemies(); _root.gcontrol.clearMiscItems(); lockBlackOut = true; } } } if (!lock && !_root.pawsd) { if (t % 50 == 0 && enemies.length < 4) { createEnemy(1, Stage.width + 10 + random(40), 194.2); } else { if (t % 75 == 0 && enemies.length < 5) { createEnemy(2, Stage.width + 5 + random(40), 194.2); } else { if (t % 90 == 0 && enemies.length < 5 && normal < 2) { createEnemy(4, Stage.width + 10 + random(40), 194.2); ++normal; } else { if (t % 120 == 0 && enemies.length < 5 && strong < 1) { createEnemy(3, 100 + random(300), -80); ++strong; } } } } if (_root.distance <= 5000 && boxCount == 0) { ++boxCount; createBox(2, 640); } else { if (_root.distance <= 4000 && boxCount == 1) { ++boxCount; createBox(1, 640); } else { if (_root.distance <= 2000 && boxCount == 2) { ++boxCount; createBox(2, 640); } } } } } else { with (_root.player) { if (jump) { _y += rate2; if (rate2 < rate2limit) { ++rate2; } else { jump = false; jumpLock = false; } } } } } } movieClip 1793 { } movieClip 1794 { } instance mainGround of movieClip 1794 { onClipEvent (load) { ground.duplicateMovieClip('ground2', 100); ground.duplicateMovieClip('ground3', 101); ground2._x = ground._x + ground._width; ground3._x = ground._x - ground._width; groundStartx = this._x; } onClipEvent (enterFrame) { if (!_root.pawsd && !_root.scrollLock) { groundSpeed = Math.round(_root.player.speed); if (_root.player.scrollStartR == true) { this._x -= groundSpeed; if (this._x <= groundStartx - ground._width) { this._x = groundStartx; } } if (_root.player.scrollStartL == true) { this._x += groundSpeed; if (this._x > groundStartx + ground._width) { this._x = groundStartx; } } } } } movieClip 1797 { } movieClip 1798 { } movieClip 1799 { } instance of movieClip 1799 { onClipEvent (load) { ground.duplicateMovieClip('ground2', 100); ground.duplicateMovieClip('ground3', 101); ground2._x = ground._x + ground._width; ground3._x = ground._x - ground._width; groundStartx = this._x; } onClipEvent (enterFrame) { if (!_root.pawsd && !_root.scrollLock && _global.scrolling >= 2) { groundSpeed = _root.player.speed / 8; if (_root.player.scrollStartR == true) { this._x -= groundSpeed; if (this._x <= groundStartx - ground._width) { this._x = groundStartx - groundSpeed; } } if (_root.player.scrollStartL == true) { this._x += groundSpeed; if (this._x > groundStartx + ground._width) { this._x = groundStartx + groundSpeed; } } } } } movieClip 1801 { } movieClip 1802 { } instance of movieClip 1802 { onClipEvent (load) { ground.duplicateMovieClip('ground2', 100); ground.duplicateMovieClip('ground3', 101); ground2._x = ground._x + ground._width; ground3._x = ground._x - ground._width; groundStartx = this._x; } onClipEvent (enterFrame) { if (!_root.pawsd && !_root.scrollLock && _global.scrolling == 3) { groundSpeed = Math.round(_root.player.speed) / 32; if (_root.player.scrollStartR == true) { this._x -= groundSpeed; if (this._x <= groundStartx - ground._width) { this._x = groundStartx; } } if (_root.player.scrollStartL == true) { this._x += groundSpeed; if (this._x > groundStartx + ground._width) { this._x = groundStartx; } } } } } movieClip 1805 { } instance saveObj of movieClip 1805 { onClipEvent (load) { function levelHasCheckpoint() { return false; } function levelStartSave() { distance = _root.distance; score = _root.score; gold = _root.gold; startpoint = _root.player._x; starthp = _root.player.hp; } function loadStart() { _root.distance = distance; _root.score = score; _root.gold = gold; _root.player._x = startpoint; _root.player.hp = starthp; _root.player.reset(); } function info() {} distance = 0; score = 0; gold = 0; startpoint = 0; starthp = _root.player.hp; levelStartSave(); } onClipEvent (enterFrame) { } } frame 8 { _root.sound.setNextVolume(90); _root.sound.setNextVolumeRate(10); _root.sound.setNextSong('tutorial', true); scrollLock = true; _root.trainingSelect = 0; _root.trainingPreSelect = 0; _root.control.lock = false; _root.player._x = 50; _root.goArrow._visible = false; healthRefund = _root.player.maxhp; stop(); _root.onEnterFrame = function () { if (Key.isDown(80) && _root._currentframe == 8 && _root.player.training) { if (!pawsd) { pawsd = true; _root.pmenu._y = 134; } } }; } button 1806 { on (release) { _root.trainMenu.viewable = true; _root.trainMenu.exitB.enabled = true; _root.trainingFailed._y = -200; _root.control.total = 0; _root.control.killed = 0; gotoAndStop(1); } } movieClip 1809 { frame 1 { stop(); } frame 21 { stop(); } } button 1810 { on (release) { _root.ccon._y = 400; _root.shopB.enabled = true; _root.dojoB.enabled = true; _root.shopB._visible = true; _root.dojoB._visible = true; _root.menuB.enabled = true; _root.continueB.enabled = true; _root.menuB._visible = true; _root.continueB._visible = true; } } button 1811 { on (release) { _root.swordEndingSelection = _root.arm.swordType; _root.ccon._y = 400; _root.blackout.gotoAndPlay(2); _root.shopB.enabled = false; _root.dojoB.enabled = false; _root.shopB._visible = false; _root.dojoB._visible = false; _root.menuB.enabled = false; _root.continueB.enabled = false; _root.menuB._visible = false; _root.continueB._visible = false; _root.sound.fadeOut(0, 40); } } movieClip 1813 { } button 1814 { on (release) { _root.econ._y = 400; } } button 1815 { on (release) { _root.econ._y = 400; _root.gotoAndStop(3); } } movieClip 1816 { } button 1817 { on (release) { _root.trainMenu.viewable = true; _root.trainMenu.exitB.enabled = true; _root.afterTrain._y = -200; _root.control.total = 0; _root.control.killed = 0; } } movieClip 1822 { frame 1 { stop(); } } instance afterTrain of movieClip 1822 { onClipEvent (load) { function updateStats() { switch (_root.trainingSelect) { case 1: _root.arm.maxEn += 5; break; case 2: _root.arm.maxEn += 5; _root.player.maxhp += 1; break; case 3: _root.arm.maxEn += 10; _root.player.maxhp += 1; } this.hp.text = _root.player.maxhp; this.en.text = _root.arm.maxEn; _root.player.hp = _root.player.maxhp; } } } movieClip 1826 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 1829 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 1831 { frame 1 { stop(); } frame 2 { stop(); } } button 1832 { on (release) { _root.sound.fadeOut(0, 20); _root.sound.setNextVolume(90); _root.sound.setNextSong('tutorial', true); _root.trainMenu.nov.gotoAndStop(1); _root.trainMenu.expert.gotoAndStop(1); _root.trainMenu.inter.gotoAndStop(1); _root.trainMenu.cost.text = ''; _root.trainMenu.info.text = 'Select a training and press Start if you have the required gold. If you fail a training, you will get half of your gold back.'; startB.enabled = false; startT._alpha = 40; _root.trainMenu.viewable = false; _root.Dojo.viewable = false; _root.pawsd = false; _root.player.training = false; } } button 1833 { on (release) { _root.trainMenu.nov.gotoAndStop(1); _root.trainMenu.expert.gotoAndStop(1); _root.trainMenu.inter.gotoAndStop(1); _root.trainMenu.cost.text = ''; _root.trainMenu.info.text = 'Select a training and press Start if you have the required gold. If you fail a training, you will get half of your gold back.'; startB.enabled = false; startT._alpha = 40; exitB.enabled = false; _root.player.training = true; _root.trainMenu.viewable = false; _root.trainMenu.gong.start(0, 0); switch (_root.trainingPreSelect) { } case 'unknown condition': _root.trainingSelect = 1; _root.gold -= 100; _root.Dojo.kills = 15; _root.trainMenu.nov._alpha = 0; _root.trainMenu.nov.enabled = false; break; case 2: _root.trainingSelect = 2; _root.gold -= 300; _root.Dojo.kills = 25; _root.trainMenu.inter._alpha = 0; _root.trainMenu.inter.enabled = false; break; case 3: _root.trainingSelect = 3; _root.gold -= 600; _root.Dojo.kills = 40; _root.trainMenu.expert._alpha = 0; _root.trainMenu.expert.enabled = false; } } movieClip 1836 { } movieClip 1839 { instance expert of movieClip 1826 { onClipEvent (load) { cost = 600; } onClipEvent (release) { _root.trainingPreSelect = 3; gotoAndStop(2); _root.trainMenu.nov.gotoAndStop(1); _root.trainMenu.inter.gotoAndStop(1); _root.trainMenu.cost.text = '600'; _root.trainMenu.info.text = 'Expert Training\nDefeat 40 enemies'; if (_root.gold < cost) { _root.trainMenu.startB.enabled = false; _root.trainMenu.startT._alpha = 40; } else { _root.trainMenu.startB.enabled = true; _root.trainMenu.startT._alpha = 100; } } } instance inter of movieClip 1829 { onClipEvent (load) { cost = 300; } onClipEvent (release) { _root.trainingPreSelect = 2; gotoAndStop(2); _root.trainMenu.nov.gotoAndStop(1); _root.trainMenu.expert.gotoAndStop(1); _root.trainMenu.cost.text = '300'; _root.trainMenu.info.text = 'Intermediate Training\nDefeat 25 enemies'; if (_root.gold < cost) { _root.trainMenu.startB.enabled = false; _root.trainMenu.startT._alpha = 40; } else { _root.trainMenu.startB.enabled = true; _root.trainMenu.startT._alpha = 100; } } } instance nov of movieClip 1831 { onClipEvent (load) { cost = 100; } onClipEvent (release) { _root.trainingPreSelect = 1; gotoAndStop(2); _root.trainMenu.inter.gotoAndStop(1); _root.trainMenu.expert.gotoAndStop(1); _root.trainMenu.cost.text = '100'; _root.trainMenu.info.text = 'Novice Training\nDefeat 15 enemies'; if (_root.gold < cost) { _root.trainMenu.startB.enabled = false; _root.trainMenu.startT._alpha = 40; } else { _root.trainMenu.startB.enabled = true; _root.trainMenu.startT._alpha = 100; } } } } instance trainMenu of movieClip 1839 { onClipEvent (load) { var gong = new Sound(this); gong.attachSound('gongStart'); viewable = false; startB.enabled = false; startT._alpha = 40; } onClipEvent (enterFrame) { if (viewable == true) { _y = 138; if (_alpha < 100) { _alpha = _alpha + 10; } } else { if (_alpha > 0) { _alpha = _alpha - 10; } else { _y = -200; } } } } button 1840 { on (release) { _root.Shop.viewable = false; buyB.enabled = false; buy._alpha = 50; _root.pawsd = false; } } button 1841 { on (release) { if (buy.select == 'i') { _root.gold -= buy.cost; i = 0; for (;;) { if (!(_root.player.hp < _root.player.maxhp && i < 2)) break; ++_root.player.hp; ++i; } intro1 = new Sound(this); intro1.attachSound('health'); intro1.setVolume(30); intro1.start(); _root.Shop.info.text = 'Health+\nRecover 2 health points\nCost:\t 40\nYour HP: ' + _root.player.hp + '/' + _root.player.maxhp; if (_root.gold < 40 || _root.player.hp == _root.player.maxhp) { _root.Shop.buy._alpha = 50; _root.Shop.buyB.enabled = false; } } else { i = 0; while (i <= _root.weapons.weapons.length) { if (_root.weapons.weapons[i]._name == buy.select) { _root.weapons.weaponsA.push(_root.weapons.weapons[i]); _root.weapons.weaponsA.sort(); _root.weapons.weapons[i]._alpha = 100; _root.weapons.weapons[i].enabled = true; _root.weapons.weapons.splice(i, 1); _root.gold -= buy.cost; _root.Shop['a' + buy.select]._alpha = 0; _root.Shop['a' + buy.select].enabled = false; intro2 = new Sound(this); intro2.attachSound('buyChing'); intro2.start(); break; } ++i; } } } } movieClip 1843 { } movieClip 1858 { } movieClip 1861 { frame 1 { stop(); } } movieClip 1863 { instance buy of movieClip 1843 { onClipEvent (load) { select = 'a'; } } instance of movieClip 1861 { onClipEvent (load) { select = 'i'; this.pic.gotoAndStop(select); } onClipEvent (press) { _root.Shop.info.text = 'Health+\nRecover 2 health points\nCost:\t 40\nYour HP: ' + _root.player.hp + '/' + _root.player.maxhp; _root.Shop.dash.text = ''; _root.Shop.buy.select = select; _root.Shop.buy.cost = 40; if (_root.gold >= 40 && _root.player.hp < _root.player.maxhp) { _root.Shop.buy._alpha = 100; _root.Shop.buyB.enabled = true; } else { _root.Shop.buy._alpha = 50; _root.Shop.buyB.enabled = false; } } onClipEvent (rollOver) { gotoAndStop(2); } onClipEvent (rollOut) { gotoAndStop(1); } } instance of movieClip 1861 { onClipEvent (load) { select = 'h'; this.pic.gotoAndStop(select); this.pic._alpha = 35; } onClipEvent (press) { _root.Shop.info.text = 'This weapon is not in stock yet'; _root.Shop.dash.text = ''; _root.Shop.buy.select = 'a'; _root.Shop.buy.cost = 0; _root.Shop.buy._alpha = 50; _root.Shop.buyB.enabled = false; } onClipEvent (rollOver) { gotoAndStop(2); } onClipEvent (rollOut) { gotoAndStop(1); } } instance ad of movieClip 1861 { onClipEvent (load) { select = 'd'; this.pic.gotoAndStop(select); } onClipEvent (press) { _root.Shop.info.text = 'Name: Ryuu\nDamage:\t4\nKnockback:\t3\nCost:\t1400\nBattle Axe'; _root.Shop.dash.text = 'Wind Slash'; _root.Shop.buy.select = select; _root.Shop.buy.cost = 1400; if (_root.gold >= 1400) { _root.Shop.buy._alpha = 100; _root.Shop.buyB.enabled = true; } else { _root.Shop.buy._alpha = 50; _root.Shop.buyB.enabled = false; } } onClipEvent (rollOver) { gotoAndStop(2); } onClipEvent (rollOut) { gotoAndStop(1); } } instance of movieClip 1861 { onClipEvent (load) { select = 'g'; this.pic.gotoAndStop(select); this.pic._alpha = 35; } onClipEvent (press) { _root.Shop.info.text = 'This weapon is not in stock yet'; _root.Shop.dash.text = ''; _root.Shop.buy.select = 'a'; _root.Shop.buy.cost = 0; _root.Shop.buy._alpha = 50; _root.Shop.buyB.enabled = false; } onClipEvent (rollOver) { gotoAndStop(2); } onClipEvent (rollOut) { gotoAndStop(1); } } instance ac of movieClip 1861 { onClipEvent (load) { select = 'c'; this.pic.gotoAndStop(select); } onClipEvent (press) { _root.Shop.info.text = 'Name: Gekiken\nDamage:\t2\nKnockback:\t2\nCost:\t1100\nA sharp Rapier'; _root.Shop.dash.text = 'Wind Slash'; _root.Shop.buy.select = select; _root.Shop.buy.cost = 1100; if (_root.gold >= 1100) { _root.Shop.buy._alpha = 100; _root.Shop.buyB.enabled = true; } else { _root.Shop.buy._alpha = 50; _root.Shop.buyB.enabled = false; } } onClipEvent (rollOver) { gotoAndStop(2); } onClipEvent (rollOut) { gotoAndStop(1); } } instance of movieClip 1861 { onClipEvent (load) { select = 'f'; this.pic.gotoAndStop(select); this.pic._alpha = 35; } onClipEvent (press) { _root.Shop.info.text = 'This weapon is not in stock yet'; _root.Shop.dash.text = ''; _root.Shop.buy.select = 'a'; _root.Shop.buy.cost = 0; _root.Shop.buy._alpha = 50; _root.Shop.buyB.enabled = false; } onClipEvent (rollOver) { gotoAndStop(2); } onClipEvent (rollOut) { gotoAndStop(1); } } instance ab of movieClip 1861 { onClipEvent (load) { select = 'b'; this.pic.gotoAndStop(select); } onClipEvent (press) { _root.Shop.info.text = 'Name: Chouken\nDamage:\t2\nKnockback:\t1\nCost:\t900\nA longer blade'; _root.Shop.dash.text = 'Wind Slash'; _root.Shop.buy.select = select; _root.Shop.buy.cost = 900; if (_root.gold >= 900) { _root.Shop.buy._alpha = 100; _root.Shop.buyB.enabled = true; } else { _root.Shop.buy._alpha = 50; _root.Shop.buyB.enabled = false; } } onClipEvent (rollOver) { gotoAndStop(2); } onClipEvent (rollOut) { gotoAndStop(1); } } instance of movieClip 1861 { onClipEvent (load) { select = 'e'; this.pic.gotoAndStop(select); this.pic._alpha = 35; } onClipEvent (press) { _root.Shop.info.text = 'This weapon is not in stock yet'; _root.Shop.dash.text = ''; _root.Shop.buy.select = 'a'; _root.Shop.buy.cost = 0; _root.Shop.buy._alpha = 50; _root.Shop.buyB.enabled = false; } onClipEvent (rollOver) { gotoAndStop(2); } onClipEvent (rollOut) { gotoAndStop(1); } } instance aa of movieClip 1861 { onClipEvent (load) { select = 'a'; this.pic.gotoAndStop(select); } onClipEvent (press) { _root.Shop.info.text = 'Name: Katana\nDamage:\t1\nKnockback:\t1\nCost:\tN/A\nThe default sword'; _root.Shop.dash.text = 'Wind Slash'; _root.Shop.buy.select = select; _root.Shop.buy._alpha = 50; _root.Shop.buyB.enabled = false; } onClipEvent (rollOver) { gotoAndStop(2); } onClipEvent (rollOut) { gotoAndStop(1); } } } instance Shop of movieClip 1863 { onClipEvent (load) { viewable = false; buyB.enabled = false; buy._alpha = 50; } onClipEvent (enterFrame) { if (viewable == true) { _y = 143.5; if (_alpha < 100) { _alpha = _alpha + 10; } } else { if (_alpha > 0) { _alpha = _alpha - 10; } else { if (_y != -200) { _y = -200; _root.shopB.enabled = true; _root.dojoB.enabled = true; _root.shopB._visible = true; _root.dojoB._visible = true; _root.menuB.enabled = true; _root.continueB.enabled = true; _root.menuB._visible = true; _root.continueB._visible = true; info.text = 'Click on an item to see info on that item.'; dash.text = ''; buyB.enabled = false; buy._alpha = 50; } } } } } button 1867 { on (release) { _root.ccon._y = 400; _root.econ._y = 400; if (_root.Dojo.viewable == false) { _root.sound.fadeOut(0, 45); _root.sound.setNextVolume(80); _root.sound.setNextSong('Dojo', true); _root._root.Dojo.viewable = true; _root.trainMenu.viewable = true; _root.shopB.enabled = false; _root.dojoB.enabled = false; _root.shopB._visible = false; _root.dojoB._visible = false; _root.menuB.enabled = false; _root.continueB.enabled = false; _root.menuB._visible = false; _root.continueB._visible = false; _root.grassBlur._visible = false; } } } button 1869 { on (release) { _root.ccon._y = 400; _root.econ._y = 400; if (_root.Shop.viewable == false) { _root.Shop.viewable = true; _root.shopB.enabled = false; _root.dojoB.enabled = false; _root.shopB._visible = false; _root.dojoB._visible = false; _root.menuB.enabled = false; _root.continueB.enabled = false; _root.menuB._visible = false; _root.continueB._visible = false; } } } button 1871 { on (release) { _root.econ._y = 130; _root.ccon._y = 400; } } button 1873 { on (release) { _root.econ._y = 400; _root.ccon._y = 130; } } instance control of movieClip 187 { onClipEvent (load) { function createEnemy(Etype, xx, yy) { ++_global.es1; ++_global.es2; _root['en' + Etype + '' + 's'].duplicateMovieClip('en' + Etype + '' + 's' + _global.es1, _global.es2); _root['en' + Etype + '' + 's' + _global.es1]._x = xx; _root['en' + Etype + '' + 's' + _global.es1]._y = yy; } function randomSelect() { if (random(50) <= 25) { return 1; } else { return -1; } } function trainingResetFailure() { _root.trainingFailed._y = 131; _root.trainingFailed.play(); if (_root.trainingSelect == 1) { _root.trainMenu.nov._alpha = 100; _root.trainMenu.nov.enabled = true; _root.gold += _root.trainMenu.nov.cost / 2; } else { if (_root.trainingSelect == 2) { _root.trainMenu.inter._alpha = 100; _root.trainMenu.inter.enabled = true; _root.gold += _root.trainMenu.inter.cost / 2; } else { if (_root.trainingSelect == 3) { _root.trainMenu.expert._alpha = 100; _root.trainMenu.expert.enabled = true; _root.gold += _root.trainMenu.expert.cost / 2; } } } _root.trainingSelect = 0; _root.player.training = false; removeAllEnemies(); } function trainingComplete() { _root.afterTrain.updateStats(); _root.afterTrain._y = 113; _root.trainingSelect = 0; _root.player.training = false; } function removeAllEnemies() { i = 0; while (i <= _root.control.enemies.length) { _root.control.enemies[i].removeMovieClip(); ++i; } weak = 0; normal = 0; strong = 0; _root.control.enemies.splice(0, _root.control.enemies.length); } t = 0; lock = false; weak = 0; normal = 0; strong = 0; total = 0; killed = 0; var enemies = new Array(); var slashes = new Array(); } onClipEvent (press) { } onClipEvent (enterFrame) { if (!lock && !_root.pawsd) { switch (_root.trainingSelect) { case 1: if (t % 50 == 0 && total < 15) { createEnemy(5, Stage.width / 2 + randomSelect() * 350, 194.2); ++total; } if (killed >= 15) { trainingComplete(); } break; case 2: if (t % 40 == 0 && total < 25) { createEnemy(5, Stage.width / 2 + randomSelect() * 350, 194.2); ++total; } if (killed >= 25) { trainingComplete(); } break; case 3: if (t % 50 == 0 && total < 40) { createEnemy(5, Stage.width / 2 + randomSelect() * 350, 194.2); ++total; } else { if (t % 70 == 0 && total < 40) { createEnemy(6, Stage.width / 2 + randomSelect() * 350, 194.2); ++total; } } if (killed >= 40) { trainingComplete(); } } } } } movieClip 1878 { } movieClip 1880 { } movieClip 1883 { } movieClip 1885 { } movieClip 1887 { } movieClip 1889 { instance dojoBlur of movieClip 1885 { onClipEvent (load) { _visible = false; } } } instance Dojo of movieClip 1889 { onClipEvent (load) { viewable = false; this.kills = 0; } onClipEvent (enterFrame) { if (viewable == true) { _y = 125; if (_alpha < 100) { _alpha = _alpha + 10; } else { this.dojoBlur._visible = true; } } else { this.dojoBlur._visible = false; if (_alpha > 0) { _alpha = _alpha - 10; } else { if (_y != -200) { _y = -200; _root.shopB.enabled = true; _root.dojoB.enabled = true; _root.shopB._visible = true; _root.dojoB._visible = true; _root.menuB.enabled = true; _root.continueB.enabled = true; _root.menuB._visible = true; _root.continueB._visible = true; _root.grassBlur._visible = true; } } } } } movieClip 1891 { } movieClip 1894 { } frame 9 { if (_currentframe == 9) { _root.pawsd = true; _root.blackout.gotoAndStop(13); } stop(); } movieClip 1896 { } button 1897 { on (release) { con.enabled = false; _root.blackout.gotoAndStop(1); _root.gotoAndStop(3); } } movieClip 1899 { frame 10 { stop(); } frame 19 { stop(); _root.play(); } } frame 10 { stop(); bossOn = 'null'; _root.control.lock = false; _root.blackout.play(); my_ti.sword.text = '2'; _root.player.reset(); _root.distance = 6000; _global.es1 = 0; _global.es2 = 100000; _global.eb1 = 0; _global.eb2 = 60000; _global.ps1 = 0; _global.ps2 = 200000; _global.t1 = 0; _global.t2 = 150; 0; pawsd = true; battle = true; counter = 0; _root.onEnterFrame = function () { if (Key.isDown(80) && _root._currentframe == 10) { if (!pawsd) { pawsd = true; _root.pmenu._y = 134; } } if (!scrollLock && _global.scrollFix) { if ((_root.player.scrollStartR || _root.player.scrollStartL) && _quality == 'HIGH') { _quality = 'MEDIUM'; } } if (!scrollLock && _root.player.scrollStartL && _root.distance > _root.player.stopDist + 100 && !_root.battle) { scrollLock = true; _root.distance = _root.player.stopDist + 100; } else { if (_root.player.scrollStartR && _root.distance > 250 && _root._currentframe == 10 && !_root.battle) { scrollLock = false; } } if (_currentframe == 10) { if (_root.bossOn == 'enter') { if (counter < 1) { _root.control.removeAllEnemies(); ++_global.es1; ++_global.es2; _root.en4s.duplicateMovieClip('bossHelper1', _global.es2); _root.bossHelper1._x = 685; _root.bossHelper1._y = 194.2; ++_global.es1; ++_global.es2; _root.bossChat.duplicateMovieClip('bossChat1', _global.es2); _root.bossChat1._x = 625; _root.bossChat1._y = 194.2; ++_global.es1; ++_global.es2; _root.en4s.duplicateMovieClip('bossHelper2', _global.es2); _root.bossHelper2._x = 705; _root.bossHelper2._y = 194.2; ++counter; _root.control.normal += 2; _root.sound.setNextVolume(100); _root.sound.setNextVolumeRate(50); _root.sound.setNextSong('danger', true); } if (counter < 90 && counter > 0) { _root.bossHelper1.lock = false; _root.bossHelper2.lock = false; ++counter; } else { if (counter >= 90 && _root.pawsd) { _root.bossChat1.lock = true; _root.bossHelper1.lock = true; _root.bossHelper2.lock = true; _root.chat._y = 21; } } } else { if (bossOn == 'leave') { _root.bossChat1.dirr = 1; _root.bossChat1.lock = false; ++counter; if (counter == 60) { _root.chatZoom.play(); } else { if (counter == 80) { _root.pawsd = false; _root.control.createEnemy(3, 500, -80); _root.control.createEnemy(3, 300, -80); _root.control.strong += 2; _root.killsLeft.play(); _root.killsLeft.killCount = 20; _root.control.fightStart('cinematic', 16); } else { if (counter == 100) { } } } } } } }; } button 1900 { on (release) { gotoAndStop(_currentframe + 1); } } button 1910 { on (release) { this._y = -130; _root.counter = 0; _root.bossOn = 'leave'; _root.sound.fadeOut(0, 10); _root.sound.setNextVolume(70); _root.sound.setNextVolumeRate(5); _root.sound.setNextSong('ChaozJapan', true); } } movieClip 1912 { frame 1 { stop(); } } instance chat of movieClip 1912 { onClipEvent (load) { _alpha = 100; } } movieClip 1917 { frame 12 { _root.bossOn = 'enter'; _root.scrollLock = true; stop(); } frame 22 { gotoAndStop(1); } } instance pmenu of movieClip 428 { onClipEvent (load) { this.swapDepths(10000000000003.0); } } movieClip 1919 { } // unknown tag 88 length 82 movieClip 1922 { frame 1 { stop(); } frame 12 { stop(); } frame 23 { stop(); } } instance killsLeft of movieClip 1922 { onClipEvent (load) { killCount = 0; } onClipEvent (enterFrame) { this.kills = killCount; } } instance control of movieClip 187 { onClipEvent (load) { function createEnemy(Etype, xx, yy) { ++_global.es1; ++_global.es2; _root['en' + Etype + '' + 's'].duplicateMovieClip('en' + Etype + '' + 's' + _global.es1, _global.es2); _root['en' + Etype + '' + 's' + _global.es1]._x = xx; _root['en' + Etype + '' + 's' + _global.es1]._y = yy; } function createBox(Btype, xx) { ++_global.eb1; ++_global.eb2; _root['box' + Btype + 's'].duplicateMovieClip('box' + Btype + 's' + _global.eb1, _global.eb2); _root['box' + Btype + 's' + _global.eb1]._x = xx; _root['box' + Btype + 's' + _global.eb1]._y = 220; } function fightStart(type, numberEnemies) { _root.goArrow._visible = false; t = 0; fightType = type; total = numberEnemies; enemyCount = 0; } function resetEnemyCatagories() { normal = 0; strong = 0; weak = 0; } function info() {} function removeAllEnemies() { i = 0; while (i <= _root.control.enemies.length) { _root.control.enemies[i].removeMovieClip(); ++i; } weak = 0; normal = 0; strong = 0; _root.control.enemies.splice(0, _root.control.enemies.length); } t = 0; lock = false; weak = 0; normal = 0; strong = 0; enemyCount = 0; boxCount = 0; var enemies = new Array(); var slashes = new Array(); } onClipEvent (press) { } onClipEvent (enterFrame) { if (!_root.player.dead) { if (_root.distance < 400) { lock = true; if (_root.distance <= 250) { _root.scrollLock = true; if (_root.distance <= 0 && !lockBlackOut) { _root.blackout.gotoAndPlay(2); _root.sound.fadeOut(0, 40); removeAllEnemies(); _root.gcontrol.clearMiscItems(); lockBlackOut = true; } } } if (!lock && !_root.pawsd) { if (fightType == 'cinematic') { if (enemyCount < total && t > 70) { if (t % 50 == 0 && enemies.length < 6) { createEnemy(7, 50 + random(475), 194.2); ++enemyCount; ++normal; } else { if (t % 90 == 0 && enemies.length < 9 && strong < 2) { createEnemy(8, 140 + random(400), -60); ++enemyCount; ++strong; } else { if (t % 120 == 0 && enemies.length < 9 && strong < 1) { createEnemy(3, 100 + random(300), -80); ++enemyCount; ++strong; } } } } if (_root.killsLeft.killCount == 0) { resetEnemyCatagories(); fightStart('normal', 0); _root.scrollLock = false; _root.battle = false; _root.killsLeft.play(); _root.goArrow._visible = true; } } else { if (fightType == 'normal') { if (t % 70 == 0 && enemies.length < 4) { createEnemy(7, 50 + random(475), 194.2); ++normal; } else { if (t % 80 == 0 && enemies.length < 6) { createEnemy(4, 630 + random(10), 194.2); ++normal; } else { if ((t % 100 == 0 || t % 95 == 0) && enemies.length < 9 && strong < 1) { createEnemy(8, 140 + random(400), -60); ++strong; } else { if ((t % 90 == 0 || t % 85 == 0) && enemies.length < 9 && strong < 1) { createEnemy(9, 620 + random(30), 194.2); ++strong; } else { if ((t % 90 == 0 || t % 95 == 0) && enemies.length < 9 && strong < 2) { createEnemy(10, 620 + random(30), 194.2); ++strong; } } } } } } } } if (_root.distance <= 5000 && boxCount == 0) { ++boxCount; createBox(2, 640); } else { if (_root.distance <= 4000 && boxCount == 1) { ++boxCount; createBox(1, 640); } else { if (_root.distance <= 3000 && boxCount == 2) { ++boxCount; createBox(3, 640); } else { if (_root.distance <= 2000 && boxCount == 3) { boxCount += 2; createBox(2, 640); createBox(1, 710); } else { if (_root.distance <= 1200 && boxCount == 4 && _root.player.hp <= 10) { boxCount += 2; createBox(1, 640); } } } } } } else { _root.battle = true; _root.counter = 0; _root.bossOn = 'null'; _root.pawsd = true; enemyCount = 0; t = 0; _root.chat.gotoAndStop(1); _root.killsLeft.gotoAndStop(1); _root.killsLeft.killCount = 20; with (_root.player) { if (jump) { _y += rate2; if (rate2 < rate2limit) { ++rate2; } else { jump = false; jumpLock = false; } } } } } } instance of movieClip 1774 { onClipEvent (load) { ground.duplicateMovieClip('ground2', 100); ground.duplicateMovieClip('ground3', 101); ground2._x = ground._x + ground._width; ground3._x = ground._x - ground._width; groundStartx = this._x; } onClipEvent (enterFrame) { if (!_root.pawsd && !_root.scrollLock) { groundSpeed = Math.round(_root.player.speed); if (_root.player.scrollStartR == true) { this._x -= groundSpeed; if (this._x <= groundStartx - ground._width) { this._x = groundStartx; } } if (_root.player.scrollStartL == true) { this._x += groundSpeed; if (this._x > groundStartx + ground._width) { this._x = groundStartx; } } } } } instance of movieClip 1799 { onClipEvent (load) { ground.duplicateMovieClip('ground2', 100); ground.duplicateMovieClip('ground3', 101); ground2._x = ground._x + ground._width; ground3._x = ground._x - ground._width; groundStartx = this._x; } onClipEvent (enterFrame) { if (!_root.pawsd && !_root.scrollLock && _global.scrolling >= 2) { groundSpeed = _root.player.speed / 8; if (_root.player.scrollStartR == true) { this._x -= groundSpeed; if (this._x <= groundStartx - ground._width) { this._x = groundStartx - groundSpeed; } } if (_root.player.scrollStartL == true) { this._x += groundSpeed; if (this._x > groundStartx + ground._width) { this._x = groundStartx + groundSpeed; } } } } } instance of movieClip 1802 { onClipEvent (load) { ground.duplicateMovieClip('ground2', 100); ground.duplicateMovieClip('ground3', 101); ground2._x = ground._x + ground._width; ground3._x = ground._x - ground._width; groundStartx = this._x; } onClipEvent (enterFrame) { if (!_root.pawsd && !_root.scrollLock && _global.scrolling == 3) { groundSpeed = Math.round(_root.player.speed) / 32; if (_root.player.scrollStartR == true) { this._x -= groundSpeed; if (this._x <= groundStartx - ground._width) { this._x = groundStartx; } } if (_root.player.scrollStartL == true) { this._x += groundSpeed; if (this._x > groundStartx + ground._width) { this._x = groundStartx; } } } } } movieClip 1926 { } instance saveObj of movieClip 1926 { onClipEvent (load) { function levelHasCheckpoint() { return false; } function levelStartSave() { distance = _root.distance; score = _root.score; gold = _root.gold; startpoint = _root.player._x; starthp = _root.player.hp; } function loadStart() { _root.distance = distance; _root.score = score; _root.gold = gold; _root.player._x = startpoint; _root.player.hp = starthp; _root.player.reset(); _root.chatZoom.play(); } function info() {} distance = 0; score = 0; gold = 0; startpoint = 0; starthp = _root.player.hp; levelStartSave(); } onClipEvent (enterFrame) { } } frame 11 { stop(); _root.goArrow._visible = false; bossOn = 'start'; scrollLock = true; _root.control.lock = false; _root.chatZoom.play(); _root.player.reset(); _global.es1 = 0; _global.es2 = 100000; _global.eb1 = 0; _global.eb2 = 60000; _global.ps1 = 0; _global.ps2 = 200000; _global.t1 = 0; _global.t2 = 150; 0; pawsd = true; battle = true; counter = 0; _root.onEnterFrame = function () { if (Key.isDown(80) && _root._currentframe == 11) { if (!pawsd) { pawsd = true; _root.pmenu._y = 134; } } if (_currentframe == 11) { if (_root.bossOn == 'enter') { _root.chat._y = 21; } else { if (bossOn == 'leave') { _root.chatZoom.play(); _root.pawsd = false; _root.bossFight.attack = true; _root.bossFight.gotoAndStop('jump'); bossOn = 'end'; } } } }; } button 1932 { on (release) { gotoAndStop(_currentframe + 1); stopAllSounds(); } } button 1934 { on (release) { this._y = -130; _root.counter = 0; _root.bossOn = 'leave'; _root.sound.setNextVolume(100); _root.sound.setNextVolumeRate(5); _root.sound.setNextSong('Boss', true); gotoAndStop(6); } } button 1938 { on (release) { this._y = -300; _root.pawsd = false; _root.finishHIM._y = 128; _root.finishHIM._x = _root.bossFight._x; _root.finishHitArea._x = _root.bossFight._x; _root.finishHitArea._y = 206; _root.finishHitArea.activate = true; } } movieClip 1940 { frame 1 { stop(); } } instance chat of movieClip 1940 { onClipEvent (load) { _alpha = 100; } } instance finishHitArea of movieClip 783 { onClipEvent (load) { activate = false; } onClipEvent (enterFrame) { if (activate) { _x = _root.bossFight._x + -_root.bossFight.dirr * 35; } if (this.hitTest(_root.arm.sword.s)) { _root.bossFight.death.play(); _x = 700; activate = false; _root.finishHIM.vanish = true; } } } movieClip 1942 { } instance finishHIM of movieClip 1942 { onClipEvent (load) { vanish = false; } onClipEvent (enterFrame) { if (vanish) { if (_alpha > 0) { _alpha = _alpha - 20; } else { _alpha = 0; } } } } instance control of movieClip 187 { onClipEvent (load) { function createEnemy(Etype, xx, yy) { ++_global.es1; ++_global.es2; _root['en' + Etype + '' + 's'].duplicateMovieClip('en' + Etype + '' + 's' + _global.es1, _global.es2); _root['en' + Etype + '' + 's' + _global.es1]._x = xx; _root['en' + Etype + '' + 's' + _global.es1]._y = yy; } function createBox(Btype, xx) { ++_global.eb1; ++_global.eb2; _root['box' + Btype + 's'].duplicateMovieClip('box' + Btype + 's' + _global.eb1, _global.eb2); _root['box' + Btype + 's' + _global.eb1]._x = xx; _root['box' + Btype + 's' + _global.eb1]._y = 220; } function fightStart(type, numberEnemies) { t = 0; fightType = type; total = numberEnemies; enemyCount = 0; normal = 0; strong = 0; } function resetEnemyCatagories() { normal = 0; strong = 0; weak = 0; } function info() {} function removeAllEnemies() { i = 0; while (i <= _root.control.enemies.length) { _root.control.enemies[i].removeMovieClip(); ++i; } weak = 0; normal = 0; strong = 0; _root.control.enemies.splice(0, _root.control.enemies.length); } function restoreLevelMusic() { _root.sound.setNextVolumeRate(20); _root.sound.setNextVolume(100); _root.sound.setNextSong('Boss', true); } t = 0; lock = false; weak = 0; normal = 0; strong = 0; enemyCount = 0; boxCount = 0; var enemies = new Array(); var slashes = new Array(); } onClipEvent (press) { } onClipEvent (enterFrame) { if (!_root.player.dead && !_root.bossFight.dead) { } else { with (_root.player) { if (jump && _root.player.dead || jump && _root.bossFight.death._currentframe < 45) { _y += rate2; if (rate2 < rate2limit) { ++rate2; } else { jump = false; jumpLock = false; } } else { if (_root.bossOn == 'dead' && _root.pawsd) { _root.player.gotoAndStop('stand'); _root.player.resetDash(); _root.arm._y = _root.player._y; _root.arm._x = _root.player._x; _root.arm._rotation = 90 * (_root.arm._xscale / 100); _root.arm.attack = false; _root.arm.attackLock = false; } } } } } } instance statBoss of movieClip 513 { onClipEvent (enterFrame) { if (_root.bossFight.hp > 0) { _visible = true; this.hbar._xscale = (_root.bossFight.hp / _root.bossFight.maxhp) * 100; this.ebar._xscale = (_root.bossFight.energy / _root.bossFight.maxEn) * 100; _y = _root.bossFight._y - 60; _x = _root.bossFight._x; } else { _visible = false; } } } instance bossFight of movieClip 1546 { onClipEvent (load) { function updateDirrection() { if (Math.abs(_root.player._x - _x) <= 85 && !hurt && energy > 0) { if (_root.player._x > this._x) { _xscale = 100; } else { if (!hurt && !attack) { _xscale = -100; } } attack = true; return true; } else { return false; } } function isBoss() { return true; } function isBusy() { return slashCounter > 0; } function pauseSelf() { waveIndex = null; i = 0; while (i <= _root.gcontrol.miscItems.length) { if (waveIndex == null && _root.gcontrol.miscItems[i]._name.substring(0, 4) == 'boss') { _root.gcontrol.miscItems[i].stop(); waveIndex = i; break; } ++i; } if (jumping) { action = 'jump'; _root.bossFight.jump.stop(); } else { if (blocking) { action = 'block'; _root.bossFight.block.stop(); } else { attack = false; gotoAndStop('stand'); } } } function unPause() { if (action == 'jump') { _root.bossFight.jump.play(); } else { if (action == 'block') { _root.bossFight.block.play(); attack = false; } else { blocking = false; attack = false; hurt = false; } } if (waveIndex != null) { _root.gcontrol.miscItems[waveIndex].play(); } } _xscale = _xscale * -1; maxhp = 200; hp = maxhp; maxEn = 100; energy = maxEn; dtype = 1; var knockBack = false; var hurt = false; var flyup = true; var dead = false; blocking = false; var waveIndex; jumping = false; action = ''; bottom = 194.2; dirr = 1; KBcounter = 0; var forceUp = 0; extraDamage = 0; slashCounter = 0; deathLock = false; body = 1; head = 1; wep = 1; redAmount = 0; var my_color = new Color(this); notAdded = true; } onClipEvent (enterFrame) { if (notAdded) { _root.control.enemies.push(this); notAdded = false; } if (!_root.pawsd && !_root.player.dead) { if (!_root.scrollLock) { if (_root.player.scrollStartR) { _x = _x - _root.player.speed; } else { if (_root.player.scrollStartL) { _x = _x + _root.player.speed; } } } if (!dead) { if (!blocking) { if (energy < 25 || Math.abs(_root.player._x - _x) <= 25) { blocking = true; attack = false; } else { if (Math.abs(_root.player._x - _x) <= 85 && !hurt && energy > 25) { if (_root.player._x > this._x && !hurt && !attack) { _xscale = 100; } else { if (!hurt && !attack) { _xscale = -100; } } attack = true; gotoAndStop('attack'); } else { if (Math.abs(_root.player._x - _x) > 225 && !hurt && !attack && energy >= 70 && random(100) > 92 && slashCounter == 0) { attack = true; jumping = true; gotoAndStop('jump'); slashCounter = 50; } } } } if (Math.abs(_root.player._x - _x) > 35 && energy > 60) { blocking = false; } if (slashCounter > 0) { --slashCounter; } if (!hurt && !attack) { if (energy < maxEn) { energy += 5; } if (_root.player._x > this._x) { dirr = 1; _xscale = 100; if (_y >= bottom - 20) { if (!blocking) { _x = _x + 3; gotoAndStop('move'); } else { _x = _x - 3; gotoAndStop('block'); } } } else { if (!hurt && !attack) { dirr = -1; _xscale = -100; if (_y >= bottom - 20) { if (!blocking) { _x = _x - 3; gotoAndStop('move'); } else { _x = _x + 3; gotoAndStop('block'); } } } } } if (this.hit.hitTest(_root.arm.sword.s) && !blocking) { dtype = 1; hurt = true; ++_global.es1; ++_global.es2; _root.dCounter.duplicateMovieClip('dCounter' + _global.es1, _global.es2); _root['dCounter' + _global.es1]._x = this._x; _root['dCounter' + _global.es1]._y = this._y; if (_root.player.dash) { gotoAndStop('hurt'); attack = false; extraDamage = 2; } _root['dCounter' + _global.es1].damageCounter = _root.arm.power + _root.arm.damage + extraDamage; hp -= _root.arm.power + _root.arm.damage + extraDamage; knockBack = true; force = dirr * (_root.arm.knockBack + extraDamage); if (_root.arm.up) { flyup = true; forceUp = -1 * (_root.arm.knockBack + _root.arm.power / 2 + extraDamage); } } } if (hp <= 0 && !dead) { _root.score += 500; ++_global.kills; knockBack = false; dead = true; } if (hurt) { redAmount = 255; if (!dead && _root.arm.damagetype == 'lightning' && this.LD._alpha <= 0) { this.LD._alpha = 100; } else { if (!dead && _root.arm.damagetype == 'fire' && this.FD._alpha <= 0) { this.FD._alpha = 100; } } ++_global.es1; ++_global.es2; _root.blood.duplicateMovieClip('blood' + _global.es1, _global.es2); _root['blood' + _global.es1]._x = this._x; _root['blood' + _global.es1]._y = this._y; _root['blood' + _global.es1]._rotation = _root.arm._rotation + random(20); if (this._currentframe != 3) { hurt = false; } else { jumping = false; } } if (knockBack) { if (KBcounter <= _root.arm.knockBack + extraDamage) { _x = _x - force; force *= 0.6; ++KBcounter; } else { knockBack = false; KBcounter = 0; extraDamage = 0; } } if (dead && !deathLock) { this.gotoAndStop('die1'); _root.control.enemies.pop(); _root.sound.fadeOut(0, 10); _root.player.resetSword(); _root.pawsd = true; _root.bossOn = 'dead'; deathLock = true; } } else { if (_root.player.dead) { gotoAndStop('stand'); blocking = false; attack = false; hurt = false; if (_root.death._currentframe == 11) { hp = maxhp; energy = maxEn; _x = 463.6; _y = 194.2; _xscale = -100; redAmount = 0; notAdded = true; var myColorTransform = {'ra': 100, 'rb': redAmount, 'ga': 100, 'gb': 0, 'ba': 100, 'bb': 0, 'aa': 100, 'ab': 0}; my_color.setTransform(myColorTransform); } } else { if (!dead) { if (!_root.player.dead) { pauseSelf(); } else { gotoAndStop('stand'); } } } } if (flyup && !_root.pawsd || flyup && dead) { _y = _y + forceUp; if (_y < bottom) { if (forceUp < 30) { ++forceUp; } } else { flyup = false; _y = bottom; } } if (redAmount > 0) { var myColorTransform = {'ra': 100, 'rb': redAmount, 'ga': 100, 'gb': 0, 'ba': 100, 'bb': 0, 'aa': 100, 'ab': 0}; my_color.setTransform(myColorTransform); redAmount -= 15; } } } movieClip 1945 { } instance of movieClip 1799 { onClipEvent (load) { ground.duplicateMovieClip('ground2', 100); ground.duplicateMovieClip('ground3', 101); ground2._x = ground._x + ground._width; ground3._x = ground._x - ground._width; groundStartx = this._x; } onClipEvent (enterFrame) { if (!_root.pawsd && !_root.scrollLock && _global.scrolling >= 2) { groundSpeed = _root.player.speed / 8; if (_root.player.scrollStartR == true) { this._x -= groundSpeed; if (this._x <= groundStartx - ground._width) { this._x = groundStartx - groundSpeed; } } if (_root.player.scrollStartL == true) { this._x += groundSpeed; if (this._x > groundStartx + ground._width) { this._x = groundStartx + groundSpeed; } } } } } instance of movieClip 1802 { onClipEvent (load) { ground.duplicateMovieClip('ground2', 100); ground.duplicateMovieClip('ground3', 101); ground2._x = ground._x + ground._width; ground3._x = ground._x - ground._width; groundStartx = this._x; } onClipEvent (enterFrame) { if (!_root.pawsd && !_root.scrollLock && _global.scrolling == 3) { groundSpeed = Math.round(_root.player.speed) / 32; if (_root.player.scrollStartR == true) { this._x -= groundSpeed; if (this._x <= groundStartx - ground._width) { this._x = groundStartx; } } if (_root.player.scrollStartL == true) { this._x += groundSpeed; if (this._x > groundStartx + ground._width) { this._x = groundStartx; } } } } } instance saveObj of movieClip 1805 { onClipEvent (load) { function levelHasCheckpoint() { return false; } function levelStartSave() { distance = _root.distance; score = _root.score; gold = _root.gold; startpoint = _root.player._x; starthp = _root.player.hp; } function loadStart() { _root.distance = distance; _root.score = score; _root.gold = gold; _root.player._x = startpoint; _root.player.hp = starthp; _root.player.reset(); } function info() {} distance = 0; score = 0; gold = 0; startpoint = 0; starthp = _root.player.hp; levelStartSave(); } onClipEvent (enterFrame) { } } frame 12 { stop(); _root.pawsd = true; _root.player._visible = false; _root.arm._visible = false; _root.stat._visible = false; _root.fadeScreen.fadeOut(); _root.guiOff(); _root.bossFight.death.gotoAndStop('cinematic'); offset = _root.bossFight._x - 300; if (offset > 260) { _root.bossFight._x -= 160; _root.backG._x -= 160; } else { if (offset > 240) { _root.bossFight._x -= 110; _root.backG._x -= 110; } else { if (offset < 0) { _root.bossFight._x += Math.abs(offset); _root.backG._x += Math.abs(offset); } } } _root.sound.setNextVolume(100); _root.sound.setNextVolumeRate(50); _root.sound.setNextSong('Night', true); } movieClip 1949 { frame 4 { stop(); } } instance lightningEffect of movieClip 1949 { onClipEvent (load) { function update() { _x = _root.bossFight._x + 15 * -_root.bossFight.dirr; play(); } } } button 1954 { on (release) { gotoAndStop(_currentframe + 1); this._y = -130; _root.reaperWalk.magic.play(); } } movieClip 1956 { frame 1 { stop(); } } instance chat of movieClip 1956 { onClipEvent (load) { _alpha = 100; } } movieClip 1960 { frame 1 { stop(); } frame 12 { stop(); } frame 22 { gotoAndStop(1); } } movieClip 1962 { } movieClip 1964 { } movieClip 1968 { frame 1 { gotoAndStop(_parent._parent.wep); } } movieClip 1971 { frame 1 { gotoAndStop(_parent._parent.head); } } movieClip 1974 { frame 1 { gotoAndStop(_parent._parent.body); } } movieClip 1975 { } movieClip 1977 { } movieClip 1978 { } movieClip 1981 { frame 5 { _parent.hurt = false; } } movieClip 1983 { instance of movieClip 789 { onClipEvent (load) { if (this.hitTest(_root.player.guard)) { cancel = true; _root.arm.sword.sword.spark.gotoAndPlay(1); _root.arm.energy -= 25; } else { if (this.hitTest(_root.player.hit) && !cancel) { _root.player.hurt(1); } } } } instance of movieClip 783 { onClipEvent (load) { if (this.hitTest(_root.player.guard)) { cancel = true; _root.arm.sword.sword.spark.gotoAndPlay(1); _root.arm.energy -= 25; } else { if (this.hitTest(_root.player.hit) && !cancel) { _root.player.hurt(1); } } } } instance of movieClip 789 { onClipEvent (load) { if (this.hitTest(_root.player.guard)) { cancel = true; _root.arm.sword.sword.spark.gotoAndPlay(1); _root.arm.energy -= 25; } else { if (this.hitTest(_root.player.hit) && !cancel) { _root.player.hurt(1); } } } } instance of movieClip 783 { onClipEvent (load) { if (this.hitTest(_root.player.guard)) { cancel = true; _root.arm.sword.sword.spark.gotoAndPlay(1); _root.arm.energy -= 25; } else { if (this.hitTest(_root.player.hit) && !cancel) { _root.player.hurt(1); } } } } instance of movieClip 789 { onClipEvent (load) { if (this.hitTest(_root.player.guard)) { cancel = true; _root.arm.sword.sword.spark.gotoAndPlay(1); _root.arm.energy -= 25; } else { if (this.hitTest(_root.player.hit) && !cancel) { _root.player.hurt(1); } } } } frame 21 { if (_parent.updateDirrection()) { gotoAndPlay('second'); } else { play(); } } frame 29 { _parent.attack = false; } instance of movieClip 783 { onClipEvent (load) { if (this.hitTest(_root.player.guard)) { cancel = true; _root.arm.sword.sword.spark.gotoAndPlay(1); _root.arm.energy -= 50; } else { if (this.hitTest(_root.player.hit) && !cancel) { _root.player.hurt(2); } } } } frame 53 { if (_parent.updateDirrection()) { gotoAndPlay('third'); } else { play(); } } instance of movieClip 789 { onClipEvent (load) { if (this.hitTest(_root.player.hit)) { if (_root.arm.guarding && _parent._parent._xscale == -_root.player._xscale) { cancel = true; _root.arm.sword.sword.spark.gotoAndPlay(1); _root.arm.energy -= 50; _root.player.knockBack(30); _root.createSwordSpark(10, _root.player._x + 30 * _root.player._xscale / 100, _root.player._y - 17); } else { _root.player.hurt(3); _root.arm.energy = 0; _root.player.flyStart(20); } } } } frame 84 { if (_parent.updateDirrection()) { gotoAndPlay(1); } else { _parent.attack = false; } } } movieClip 1989 { } movieClip 1990 { frame 40 { stop(); } } movieClip 1999 { frame 47 { _root.chat._y = 21; stop(); } frame 226 { _root.control.endBattle(); stop(); } } movieClip 2004 { frame 13 { _root.createUndead(13, _root.reaper._x + 100 * (_root.reaper._xscale / 100), 194.2, true); } frame 29 { stop(); _root.reaper.summonZ = false; _root.reaper.attack = false; } } movieClip 2012 { } movieClip 2013 { frame 45 { stop(); _root.chat._y = 21; } frame 150 { _root.bossFight.death.play(); } frame 324 { stop(); } frame 326 { stop(); } frame 328 { stop(); } } movieClip 2017 { frame 1 { } } movieClip 2020 { } movieClip 2025 { frame 1 { gotoAndStop(_parent._parent.wep); } } movieClip 2038 { } movieClip 2047 { } movieClip 2049 { } movieClip 2051 { } movieClip 2065 { } movieClip 2074 { frame 8 { _root.chat._y = 21; stop(); } frame 81 { _root.reaperWalk.wep = 1; } frame 348 { _root.undeadBoss.prepareFight(); } frame 367 { _root.reaperWalk.returnBack = true; } } movieClip 2075 { frame 3 { _root.reaper.dashStart(); stop(); } } movieClip 2076 { } movieClip 2077 { frame 60 { stop(); } } movieClip 2083 { frame 1 { stop(); } frame 89 { stop(); _root.templeBG.startTimerBoss(); } frame 105 { } frame 116 { _root.reaper.body = 1; _root.reaper.head = 1; } frame 134 { _root.reaper.activateFight(); } } movieClip 2084 { frame 1 { stop(); } instance FD of movieClip 762 { onClipEvent (enterFrame) { if (_alpha >= 0) { play(); } else { stop(); } } } instance LD of movieClip 766 { onClipEvent (enterFrame) { if (_alpha >= 0) { _alpha = _alpha - 10; play(); } else { 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(); } } instance reaperWalk of movieClip 2084 { onClipEvent (load) { moveCounter = 50; body = 2; head = 2; wep = 2; } onClipEvent (enterFrame) { if (moveCounter == 0) { if (Math.abs(this._x - _root.bossFight._x) > 80) { _x = _x + 2; gotoAndStop('move'); } else { gotoAndStop('magic'); } } else { --moveCounter; } } } movieClip 2086 { } instance of movieClip 1799 { onClipEvent (load) { ground.duplicateMovieClip('ground2', 100); ground.duplicateMovieClip('ground3', 101); ground2._x = ground._x + ground._width; ground3._x = ground._x - ground._width; groundStartx = this._x; } onClipEvent (enterFrame) { if (!_root.pawsd && !_root.scrollLock && _global.scrolling >= 2) { groundSpeed = _root.player.speed / 8; if (_root.player.scrollStartR == true) { this._x -= groundSpeed; if (this._x <= groundStartx - ground._width) { this._x = groundStartx - groundSpeed; } } if (_root.player.scrollStartL == true) { this._x += groundSpeed; if (this._x > groundStartx + ground._width) { this._x = groundStartx + groundSpeed; } } } } } instance of movieClip 1802 { onClipEvent (load) { ground.duplicateMovieClip('ground2', 100); ground.duplicateMovieClip('ground3', 101); ground2._x = ground._x + ground._width; ground3._x = ground._x - ground._width; groundStartx = this._x; } onClipEvent (enterFrame) { if (!_root.pawsd && !_root.scrollLock && _global.scrolling == 3) { groundSpeed = Math.round(_root.player.speed) / 32; if (_root.player.scrollStartR == true) { this._x -= groundSpeed; if (this._x <= groundStartx - ground._width) { this._x = groundStartx; } } if (_root.player.scrollStartL == true) { this._x += groundSpeed; if (this._x > groundStartx + ground._width) { this._x = groundStartx; } } } } } frame 13 { _root.pawsd = true; _root.introChp3.gotoAndPlay(1); stop(); } movieClip 2093 { } button 2094 { on (release) { con.enabled = false; _root.blackout.gotoAndStop(1); _root.fadeScreen.fadeOut(false); _root.introChp3.gotoAndStop(21); _root.gotoAndStop(3); } } movieClip 2096 { frame 10 { stop(); } frame 19 { stop(); _root.play(); } } instance introChp3 of movieClip 2096 { onClipEvent (load) { this.swapDepths(10000000000.0); } } frame 14 { _root.saveGame(); _root.fadeScreen.changeRate(10); _root.fadeScreen.fadeOut(); _root.sound.setNextVolume(100); _root.sound.setNextVolumeRate(100); _root.sound.setNextSong('forestNight', true); _root.guiOn(); _root.chatZoom.gotoAndStop(1); bossOn = 'null'; trainingDone = false; scrollLock = true; pawsd = false; _root.control.lock = false; _root.player.reset(); _root.goArrow._visible = false; stop(); counter = 21; _root.onEnterFrame = function () { if (Key.isDown(80) && _root._currentframe == 14 && _root.player.training) { if (!pawsd) { pawsd = true; _root.pmenu._y = 134; } } if (bossOn == 'enter') { if (counter == 0) { _root.hotaru.active = true; _root.hotaru.standIntro.play(); bossOn = 'fight'; } else { --counter; } } else { if (bossOn == 'fight') { _root.chatZoom.play(); if (counter < 10) { _root.pawsd = false; bossOn = 'null'; } else { ++counter; } } } }; } button 2097 { on (release) { _root.econ._y = 400; _root.shopB.enabled = true; _root.shopB._visible = true; _root.menuB.enabled = true; _root.contB.enabled = true; _root.menuB._visible = true; _root.contB._visible = true; } } movieClip 2099 { } button 2100 { on (release) { _root.ccon._y = 400; _root.shopB.enabled = true; _root.shopB._visible = true; _root.menuB.enabled = true; _root.contB.enabled = true; _root.menuB._visible = true; _root.contB._visible = true; } } button 2101 { on (release) { _root.swordEndingSelection = _root.arm.swordType; _root.ccon._y = 400; _root.shopB.enabled = false; _root.shopB._visible = false; _root.menuB.enabled = false; _root.contB.enabled = false; _root.menuB._visible = false; _root.contB._visible = false; _root.sound.fadeOut(0, 10); _root.fadeScreen.fadeIn(true); } } movieClip 2103 { } button 2107 { on (release) { _root.econ._y = 400; _root.ccon._y = 130; _root.shopB.enabled = false; _root.shopB._visible = false; _root.menuB.enabled = false; _root.menuB._visible = false; _root.contB.enabled = false; _root.contB._visible = false; } } button 2110 { on (release) { _root.econ._y = 130; _root.ccon._y = 430; _root.shopB.enabled = false; _root.shopB._visible = false; _root.contB.enabled = false; _root.contB._visible = false; _root.menuB.enabled = false; _root.menuB._visible = false; } } button 2113 { on (release) { _root.chat._y = 21; _root.shopB.enabled = false; _root.shopB._visible = false; _root.contB.enabled = false; _root.contB._visible = false; _root.menuB.enabled = false; _root.menuB._visible = false; } } button 2114 { on (release) { _root.Shop.viewable = false; _root.chat._y = 21; } } button 2115 { on (release) { if (buy.select == 'i') { _root.gold -= buy.cost; i = 0; for (;;) { if (!(_root.player.hp < _root.player.maxhp && i < 2)) break; ++_root.player.hp; ++i; } intro1 = new Sound(this); intro1.attachSound('health'); intro1.setVolume(30); intro1.start(); _root.Shop.info.text = 'Health+\nRecover 2 health points\nCost:\t ' + 40 / _root.Shop.discount + '\nYour HP: ' + _root.player.hp + '/' + _root.player.maxhp; if (_root.gold < 40 / _root.Shop.discount || _root.player.hp == _root.player.maxhp) { _root.Shop.buy._alpha = 50; _root.Shop.buyB.enabled = false; } } else { i = 0; while (i <= _root.weapons.weapons.length) { if (_root.weapons.weapons[i]._name == buy.select) { _root.weapons.weaponsA.push(_root.weapons.weapons[i]); _root.weapons.weaponsA.sort(); _root.weapons.weapons[i]._alpha = 100; _root.weapons.weapons[i].enabled = true; _root.weapons.weapons.splice(i, 1); _root.gold -= buy.cost; _root.Shop['a' + buy.select]._alpha = 0; _root.Shop['a' + buy.select].enabled = false; intro2 = new Sound(this); intro2.attachSound('buyChing'); intro2.start(); break; f; } ++i; } } } } movieClip 2120 { } movieClip 2121 { instance buy of movieClip 1843 { onClipEvent (load) { select = 'a'; } } instance of movieClip 2120 { onClipEvent (enterFrame) { if (_root.Shop.af._alpha == 0) { this._alpha = 0; } } } instance of movieClip 2120 { onClipEvent (enterFrame) { if (_root.Shop.ae._alpha == 0) { this._alpha = 0; } } } instance of movieClip 1861 { onClipEvent (load) { select = 'i'; this.pic.gotoAndStop(select); } onClipEvent (press) { _root.Shop.info.text = 'Health+\nRecover 2 health points\nCost:\t ' + 40 / _root.Shop.discount + '\nYour HP: ' + _root.player.hp + '/' + _root.player.maxhp; _root.Shop.dash.text = ''; _root.Shop.buy.select = select; _root.Shop.buy.cost = 40 / _root.Shop.discount; if (_root.gold >= 40 / _root.Shop.discount && _root.player.hp < _root.player.maxhp) { _root.Shop.buy._alpha = 100; _root.Shop.buyB.enabled = true; } else { _root.Shop.buy._alpha = 50; _root.Shop.buyB.enabled = false; } } onClipEvent (rollOver) { gotoAndStop(2); } onClipEvent (rollOut) { gotoAndStop(1); } } instance ah of movieClip 1861 { onClipEvent (load) { select = 'h'; this.pic.gotoAndStop(select); this.pic._alpha = 35; } onClipEvent (press) { _root.Shop.info.text = 'This weapon is not in stock yet'; _root.Shop.dash.text = ''; _root.Shop.buy.select = 'a'; _root.Shop.buy.cost = 0; _root.Shop.buy._alpha = 50; _root.Shop.buyB.enabled = false; } onClipEvent (rollOver) { gotoAndStop(2); } onClipEvent (rollOut) { gotoAndStop(1); } } instance ad of movieClip 1861 { onClipEvent (load) { select = 'd'; cost = 1400; this.pic.gotoAndStop(select); if (_root.alreadyBought(select)) { _root.Shop['a' + select]._alpha = 0; _root.Shop['a' + select].enabled = false; } } onClipEvent (press) { _root.Shop.info.text = 'Name: Ryuu\nDamage:\t3\nKnockback:\t4\nCost:\t' + cost / _root.Shop.discount + '\nBattle Axe'; _root.Shop.dash.text = 'Wind Slash'; _root.Shop.buy.select = select; _root.Shop.buy.cost = cost / _root.Shop.discount; if (_root.gold >= cost / _root.Shop.discount) { _root.Shop.buy._alpha = 100; _root.Shop.buyB.enabled = true; } else { _root.Shop.buy._alpha = 50; _root.Shop.buyB.enabled = false; } } onClipEvent (rollOver) { gotoAndStop(2); } onClipEvent (rollOut) { gotoAndStop(1); } } instance ag of movieClip 1861 { onClipEvent (load) { select = 'g'; this.pic.gotoAndStop(select); this.pic._alpha = 35; } onClipEvent (press) { _root.Shop.info.text = 'This weapon is not in stock yet'; _root.Shop.dash.text = ''; _root.Shop.buy.select = 'a'; _root.Shop.buy.cost = 0; _root.Shop.buy._alpha = 50; _root.Shop.buyB.enabled = false; } onClipEvent (rollOver) { gotoAndStop(2); } onClipEvent (rollOut) { gotoAndStop(1); } } instance ac of movieClip 1861 { onClipEvent (load) { select = 'c'; cost = 1100; this.pic.gotoAndStop(select); if (_root.alreadyBought(select)) { _root.Shop['a' + select]._alpha = 0; _root.Shop['a' + select].enabled = false; } } onClipEvent (press) { _root.Shop.info.text = 'Name: Gekiken\nDamage:\t2\nKnockback:\t2\nCost:\t' + cost / _root.Shop.discount + '\nA sharp Rapier'; _root.Shop.dash.text = 'Wind Slash'; _root.Shop.buy.select = select; _root.Shop.buy.cost = cost / _root.Shop.discount; if (_root.gold >= cost / _root.Shop.discount) { _root.Shop.buy._alpha = 100; _root.Shop.buyB.enabled = true; } else { _root.Shop.buy._alpha = 50; _root.Shop.buyB.enabled = false; } } onClipEvent (rollOver) { gotoAndStop(2); } onClipEvent (rollOut) { gotoAndStop(1); } } instance af of movieClip 1861 { onClipEvent (load) { select = 'f'; cost = 4000; this.pic.gotoAndStop(select); } onClipEvent (press) { _root.Shop.info.text = 'Name: Ennetsujigoku\nDamage:\t5\nKnockback:\t3\nCost:\t' + cost / _root.Shop.discount + '\nA blade forged in hell'; _root.Shop.dash.text = 'Fire Wave'; _root.Shop.buy.select = select; _root.Shop.buy.cost = cost / _root.Shop.discount; if (_root.gold >= cost / _root.Shop.discount) { _root.Shop.buy._alpha = 100; _root.Shop.buyB.enabled = true; } else { _root.Shop.buy._alpha = 50; _root.Shop.buyB.enabled = false; } } onClipEvent (rollOver) { gotoAndStop(2); } onClipEvent (rollOut) { gotoAndStop(1); } } instance ab of movieClip 1861 { onClipEvent (load) { select = 'b'; cost = 900; this.pic.gotoAndStop(select); if (_root.alreadyBought(select)) { _root.Shop['a' + select]._alpha = 0; _root.Shop['a' + select].enabled = false; } } onClipEvent (press) { _root.Shop.info.text = 'Name: Chouken\nDamage:\t2\nKnockback:\t1\nCost:\t' + cost / _root.Shop.discount + '\nA longer blade'; _root.Shop.dash.text = 'Wind Slash'; _root.Shop.buy.select = select; _root.Shop.buy.cost = cost / _root.Shop.discount; if (_root.gold >= cost / _root.Shop.discount) { _root.Shop.buy._alpha = 100; _root.Shop.buyB.enabled = true; } else { _root.Shop.buy._alpha = 50; _root.Shop.buyB.enabled = false; } } onClipEvent (rollOver) { gotoAndStop(2); } onClipEvent (rollOut) { gotoAndStop(1); } } instance ae of movieClip 1861 { onClipEvent (load) { select = 'e'; cost = 3000; this.pic.gotoAndStop(select); } onClipEvent (press) { _root.Shop.info.text = 'Name: Inabikari\nDamage:\t5\nKnockback:\t2\nCost:\t' + cost / _root.Shop.discount + '\nA jagged blade of light'; _root.Shop.dash.text = 'Lightning Ball'; _root.Shop.buy.select = select; _root.Shop.buy.cost = cost / _root.Shop.discount; if (_root.gold >= cost / _root.Shop.discount) { _root.Shop.buy._alpha = 100; _root.Shop.buyB.enabled = true; } else { _root.Shop.buy._alpha = 50; _root.Shop.buyB.enabled = false; } } onClipEvent (rollOver) { gotoAndStop(2); } onClipEvent (rollOut) { gotoAndStop(1); } } instance aa of movieClip 1861 { onClipEvent (load) { select = 'a'; cost = 0; this.pic.gotoAndStop(select); } onClipEvent (press) { _root.Shop.info.text = 'Name: Katana\nDamage:\t1\nKnockback:\t1\nCost:\tN/A\nThe default sword'; _root.Shop.dash.text = 'Wind Slash'; _root.Shop.buy.select = select; _root.Shop.buy._alpha = 50; _root.Shop.buyB.enabled = false; } onClipEvent (rollOver) { gotoAndStop(2); } onClipEvent (rollOut) { gotoAndStop(1); } } } instance Shop of movieClip 2121 { onClipEvent (load) { viewable = false; buyB.enabled = false; buy._alpha = 50; discount = 1; } onClipEvent (enterFrame) { if (viewable == true) { _y = 143.5; if (_alpha < 100) { _alpha = _alpha + 10; } } else { if (_alpha > 0) { _alpha = _alpha - 10; } else { if (_y != -200) { _y = -200; info.text = 'Click on an item to see info on that item.'; dash.text = ''; buyB.enabled = false; buy._alpha = 50; } } } } } movieClip 2128 { } button 2129 { on (release) { if (_root.chat.talked) { _root.chat.gotoAndStop(6); } _root.shopB.enabled = true; _root.shopB._visible = true; _root.menuB.enabled = true; _root.contB.enabled = true; _root.menuB._visible = true; _root.contB._visible = true; _root.chat._y = -130; } } button 2130 { on (release) { if (_root.chat.faught) { _root.chat.gotoAndStop(8); } else { gotoAndStop(7); } } } button 2131 { on (release) { _root.chat._y = -130; if (_root.Shop.viewable == false) { _root.Shop.viewable = true; } } } button 2135 { on (release) { _root.fadeScreen.fadeIn(false); this._y = -130; gotoAndStop(_currentframe + 1); } } button 2141 { on (release) { gotoAndStop(_currentframe + 1); this._y = -130; } } movieClip 2142 { frame 1 { stop(); } frame 5 { _root.chat.talked = true; if (_root.chat.defeated) { _root.chat.fightB.enabled = false; _root.chat.fightB._alpha = 0; _root.chat.fightT._alpha = 0; } } frame 6 { stop(); if (_root.chat.defeated) { _root.chat.fightB.enabled = false; _root.chat.fightB._alpha = 0; _root.chat.fightT._alpha = 0; } } frame 7 { faught = true; } } instance chat of movieClip 2142 { onClipEvent (load) { _alpha = 100; talked = false; faught = false; defeated = false; } } instance pmenu of movieClip 428 { onClipEvent (load) { this.swapDepths(10000000000003.0); } } movieClip 2144 { } instance killsLeft of movieClip 1922 { onClipEvent (load) { killCount = 0; } onClipEvent (enterFrame) { this.kills = killCount; } } instance control of movieClip 187 { onClipEvent (load) { function createEnemy(Etype, xx, yy) { ++_global.es1; ++_global.es2; _root['en' + Etype + '' + 's'].duplicateMovieClip('en' + Etype + '' + 's' + _global.es1, _global.es2); _root['en' + Etype + '' + 's' + _global.es1]._x = xx; _root['en' + Etype + '' + 's' + _global.es1]._y = yy; } function createBox(Btype, xx) { ++_global.eb1; ++_global.eb2; _root['box' + Btype + 's'].duplicateMovieClip('box' + Btype + 's' + _global.eb1, _global.eb2); _root['box' + Btype + 's' + _global.eb1]._x = xx; _root['box' + Btype + 's' + _global.eb1]._y = 220; } function fightStart(type, numberEnemies) { _root.goArrow._visible = false; t = 0; fightType = type; total = numberEnemies; enemyCount = 0; } function resetEnemyCatagories() { normal = 0; strong = 0; weak = 0; } function info() {} function removeAllEnemies() { i = 0; while (i <= _root.control.enemies.length) { _root.control.enemies[i].removeMovieClip(); ++i; } weak = 0; normal = 0; strong = 0; _root.control.enemies.splice(0, _root.control.enemies.length); } function trainingResetFailure() { _root.control.enemies.splice(0, _root.control.enemies.length); _root.hotaru.active = false; _root.hotaru.gotoAndStop('standIntro'); _root.trainingDone = true; _root.player.training = false; _root.chat._y = 21; _root.chat.gotoAndStop('failed'); _root.pawsd = true; _root.player.gotoAndStop('stand'); _root.arm.sword.gotoAndStop(1); _root.hotaru.reset(); } function restoreLevelMusic() { _root.sound.setNextVolumeRate(100); _root.sound.setNextVolume(100); _root.sound.setNextSong('forestNight', true); } function levelSoundEffect() { if (soundToggle == 'howl') { _root.playSoundEffect('howl', 100); soundToggle = 'howl2'; soundEffectDelay = 300; } else { _root.playSoundEffect('howl2', 100); soundToggle = 'howl'; soundEffectDelay = 300; } } t = 0; lock = false; weak = 0; normal = 0; strong = 0; enemyCount = 0; boxCount = 0; soundToggle = 'howl'; soundEffectDelay = 0; var enemies = new Array(); var slashes = new Array(); } onClipEvent (press) { } onClipEvent (enterFrame) { if (soundEffectDelay > 0) { --soundEffectDelay; } else { levelSoundEffect(); } if (_root.player.training) { } else { with (_root.player) { if (jump && _root.trainingDone) { _root.arm._y += rate2; _y += rate2; if (rate2 < rate2limit) { ++rate2; } else { jump = false; jumpLock = false; } } } } } } instance statHotaru of movieClip 513 { onClipEvent (load) { _visible = false; } onClipEvent (enterFrame) { if (_root.hotaru.hp > 0 && _root.hotaru.active == true) { _visible = true; this.hbar._xscale = (_root.hotaru.hp / _root.hotaru.maxhp) * 100; this.ebar._xscale = (_root.hotaru.energy / _root.hotaru.maxEn) * 100; _y = _root.hotaru._y - 60; _x = _root.hotaru._x; } else { _visible = false; } } } movieClip 2147 { frame 1 { gotoAndStop(_parent._parent.head); } } movieClip 2149 { } movieClip 2150 { } movieClip 2151 { } movieClip 2152 { frame 5 { _parent.hurt = false; } } movieClip 2159 { instance of movieClip 783 { onClipEvent (load) { if (this.hitTest(_root.player.guard)) { cancel = true; _root.arm.sword.sword.spark.gotoAndPlay(1); _root.arm.energy -= 20; } else { if (this.hitTest(_root.player.hit) && !cancel) { _root.player.hurt(1); } } } } instance of movieClip 789 { onClipEvent (load) { if (this.hitTest(_root.player.guard)) { cancel = true; _root.arm.sword.sword.spark.gotoAndPlay(1); _root.arm.energy -= 20; } else { if (this.hitTest(_root.player.hit) && !cancel) { _root.player.hurt(1); } } } } frame 7 { _parent.energy -= 25; } instance of movieClip 783 { onClipEvent (load) { if (this.hitTest(_root.player.guard)) { cancel = true; _root.arm.sword.sword.spark.gotoAndPlay(1); _root.arm.energy -= 20; } else { if (this.hitTest(_root.player.hit) && !cancel) { _root.player.hurt(1); } } } } frame 9 { if (_parent.updateDirrection() && _parent.energy >= 15) { if (_parent.energy > 25 && _root.arm.guarding) { gotoAndPlay('powerHit'); } else { gotoAndPlay('thirdStab'); } } else { play(); } } instance of movieClip 789 { onClipEvent (load) { if (this.hitTest(_root.player.guard)) { cancel = true; _root.arm.sword.sword.spark.gotoAndPlay(1); _root.arm.energy -= 20; } else { if (this.hitTest(_root.player.hit) && !cancel) { _root.player.hurt(1); } } } } frame 13 { _parent.attack = false; } frame 20 { _parent.energy -= 15; } instance of movieClip 783 { onClipEvent (load) { if (this.hitTest(_root.player.guard)) { cancel = true; _root.arm.sword.sword.spark.gotoAndPlay(1); _root.arm.energy -= 20; } else { if (this.hitTest(_root.player.hit) && !cancel) { _root.player.hurt(1); } } } } instance of movieClip 789 { onClipEvent (load) { if (this.hitTest(_root.player.guard)) { cancel = true; _root.arm.sword.sword.spark.gotoAndPlay(1); _root.arm.energy -= 25; } else { if (this.hitTest(_root.player.hit) && !cancel) { _root.player.hurt(2); } } } } frame 22 { if (_parent.updateDirrection() && _parent.energy >= 30) { gotoAndPlay('spin'); } else { play(); } } frame 28 { _parent.attack = false; } instance of movieClip 789 { onClipEvent (load) { if (this.hitTest(_root.player.hit) && _root.arm.guarding) { _root.arm.energy -= _root.arm.maxEn; _root.arm.guardBreak(); _root.player.hurt(2); _root.player.knockBack(20); } else { if (this.hitTest(_root.player.hit)) { _root.arm.energy -= 50; _root.player.hurt(5); _root.player.knockBack(15); } } } } frame 46 { _parent.attack = false; } frame 47 { if (_parent.updateDirrection() && _parent.energy >= 30) { gotoAndPlay('lateSpin'); } } frame 58 { _parent.energy -= 5; } instance of movieClip 789 { onClipEvent (load) { if (this.hitTest(_root.player.guard)) { cancel = true; _root.arm.sword.sword.spark.gotoAndPlay(1); _root.arm.energy -= 20; } else { if (this.hitTest(_root.player.hit) && !cancel) { _root.player.hurt(1); } } } } frame 60 { _parent.energy -= 5; } instance of movieClip 783 { onClipEvent (load) { if (this.hitTest(_root.player.guard)) { cancel = true; _root.arm.sword.sword.spark.gotoAndPlay(1); _root.arm.energy -= 20; } else { if (this.hitTest(_root.player.hit) && !cancel) { _root.player.hurt(1); } } } } instance of movieClip 789 { onClipEvent (load) { if (this.hitTest(_root.player.guard)) { cancel = true; _root.arm.sword.sword.spark.gotoAndPlay(1); _root.arm.energy -= 20; } else { if (this.hitTest(_root.player.hit) && !cancel) { _root.player.hurt(1); } } } } frame 62 { _parent.energy -= 5; } instance of movieClip 783 { onClipEvent (load) { if (this.hitTest(_root.player.guard)) { cancel = true; _root.arm.sword.sword.spark.gotoAndPlay(1); _root.arm.energy -= 20; } else { if (this.hitTest(_root.player.hit) && !cancel) { _root.player.hurt(1); } } } } frame 64 { _parent.energy -= 5; } instance of movieClip 789 { onClipEvent (load) { if (this.hitTest(_root.player.guard)) { cancel = true; _root.arm.sword.sword.spark.gotoAndPlay(1); _root.arm.energy -= 20; } else { if (this.hitTest(_root.player.hit) && !cancel) { _root.player.hurt(1); } } } } frame 66 { _parent.energy -= 5; } instance of movieClip 783 { onClipEvent (load) { if (this.hitTest(_root.player.guard)) { cancel = true; _root.arm.sword.sword.spark.gotoAndPlay(1); _root.arm.energy -= 20; } else { if (this.hitTest(_root.player.hit) && !cancel) { _root.player.hurt(1); } } } } frame 68 { _parent.energy -= 5; } instance of movieClip 789 { onClipEvent (load) { if (this.hitTest(_root.player.guard)) { cancel = true; _root.arm.sword.sword.spark.gotoAndPlay(1); _root.arm.energy -= 20; } else { if (this.hitTest(_root.player.hit) && !cancel) { _root.player.hurt(1); } } } } instance of movieClip 783 { onClipEvent (load) { if (this.hitTest(_root.player.guard)) { cancel = true; _root.arm.sword.sword.spark.gotoAndPlay(1); _root.arm.energy -= 20; } else { if (this.hitTest(_root.player.hit) && !cancel) { _root.player.hurt(1); } } } } frame 93 { _parent.attack = false; } } movieClip 2160 { } movieClip 2161 { frame 4 { _parent.rateJump = 10; } frame 6 { stop(); } instance of movieClip 783 { onClipEvent (load) { if (this.hitTest(_root.player.guard)) { cancel = true; _root.arm.sword.sword.spark.gotoAndPlay(1); _root.arm.energy -= 20; } else { if (this.hitTest(_root.player.hit) && !cancel) { _root.player.hurt(2); _root.player.knockBack(15); } } } } instance of movieClip 789 { onClipEvent (load) { if (this.hitTest(_root.player.guard)) { cancel = true; _root.arm.sword.sword.spark.gotoAndPlay(1); _root.arm.energy -= 20; } else { if (this.hitTest(_root.player.hit) && !cancel) { _root.player.hurt(2); _root.player.knockBack(15); } } } } frame 15 { stop(); } frame 19 { stop(); } frame 22 { _parent.jump = false; } } movieClip 2162 { frame 45 { gotoAndPlay('breath'); } } movieClip 2163 { } movieClip 2164 { } movieClip 2165 { frame 1 { stop(); } frame 8 { stop(); _root.bossOn = 'fight'; } } movieClip 2166 { frame 1 { stop(); } instance FD of movieClip 762 { onClipEvent (enterFrame) { if (_alpha >= 0) { play(); } else { stop(); } } } instance LD of movieClip 766 { onClipEvent (enterFrame) { if (_alpha >= 0) { _alpha = _alpha - 10; play(); } else { 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(); } } instance hotaru of movieClip 2166 { onClipEvent (load) { function updateDirrection() { if (Math.abs(_root.player._x - _x) <= 105 && !hurt && energy > 0) { if (Math.abs(_root.player._x - _x) <= 40 && !flyup) { jump = true; attack = false; if (_x >= 450) { _xscale = 100; dirr = 1; } else { if (_x <= 150) { _xscale = -100; dirr = -1; } } return false; } else { if (_root.player._x > this._x) { _xscale = 100; dirr = 1; } else { if (!hurt && !attack) { _xscale = -100; dirr = -1; } } attack = true; return true; } } else { return false; } } function isBoss() { return true; } function isBusy() { return jump; } function reset() { blocking = false; attack = false; hurt = false; if (jump) { jump = false; flyup = true; forceUp = 2; } redAmount = 0; var v1 = {'ra': 100, 'rb': redAmount, 'ga': 100, 'gb': 0, 'ba': 100, 'bb': 0, 'aa': 100, 'ab': 0}; my_color.setTransform(v1); } function pauseSelf() { if (attack) { action = 'attack'; this.atk.stop(); } else { if (dead) { action = 'dead'; frame1 = this.death._currentframe; this.death.stop(); } else { action = 'null'; gotoAndStop('stand'); } } } function unPause() { if (action == 'attack') { this.atk.play(); } else { if (action == 'dead') { this.death.gotoAndPlay(frame1 - 1); } } hurt = false; action = 'null'; } _xscale = _xscale * -1; maxhp = 250; hp = maxhp; maxEn = 100; energy = maxEn; dtype = 1; var knockBack = false; var hurt = false; var flyup = true; var dead = false; _visible = false; active = false; blocking = false; jump = false; rateJump = 0; rateSlide = 14; bottom = 194.2; dirr = 1; KBcounter = 0; var forceUp = 0; extraDamage = 0; slashCounter = 0; deathLock = false; body = 1; head = 1; wep = 1; redAmount = 0; var my_color = new Color(this); notAdded = true; action = 'null'; attack = false; } onClipEvent (enterFrame) { if (active) { if (notAdded) { _root.control.enemies.push(this); notAdded = false; } if (!_root.pawsd && !_root.player.dead) { if (!_root.scrollLock) { if (_root.player.scrollStartR) { _x = _x - _root.player.speed; } else { if (_root.player.scrollStartL) { _x = _x + _root.player.speed; } } } if (!dead) { if (!blocking && !jump) { if (Math.abs(_root.player._x - _x) <= 40 && !attack && !hurt && !flyup) { updateDirrection(); jump = true; attack = false; } else { if (energy < 25 || Math.abs(_root.player._x - _x) <= 50 && !attack) { blocking = true; attack = false; } else { if (Math.abs(_root.player._x - _x) <= 105 && !hurt && !jump && energy > 25) { if (_root.player._x > this._x && !hurt && !attack) { _xscale = 100; } else { if (!hurt && !attack) { _xscale = -100; } } attack = true; gotoAndStop('attack'); } else { if (Math.abs(_root.player._x - _x) > 225 && !hurt && !attack && energy >= 70 && random(100) > 92 && slashCounter == 0) { } } } } } if (Math.abs(_root.player._x - _x) > 35 && energy > 60) { blocking = false; } if (slashCounter > 0) { --slashCounter; } if (!hurt && !attack && !jump) { if (energy < maxEn) { energy += 5; } if (_root.player._x > this._x) { dirr = 1; _xscale = 100; if (_y >= bottom - 20) { if (!blocking) { _x = _x + 6; gotoAndStop('move'); } else { _x = _x - 3; gotoAndStop('block'); } } } else { if (!hurt && !attack) { dirr = -1; _xscale = -100; if (_y >= bottom - 20) { if (!blocking) { _x = _x - 6; gotoAndStop('move'); } else { _x = _x + 3; gotoAndStop('block'); } } } } } else { if (jump) { gotoAndStop('jump'); if (this.jumpAway._currentframe > 4) { _x = _x + -dirr * rateSlide; rateJump -= 1; if (this.jumpAway._currentframe > 16) { rateSlide *= 0.7; } } _y = _y - rateJump; if (this.jumpAway._currentframe == 6 && (Math.abs(_root.player._x - _x) >= 90 || rateJump <= 0)) { this.jumpAway.play(); } if (rateJump <= 0 && this.jumpAway._currentframe > 14 && this.jumpAway._currentframe < 16) { this.jumpAway.gotoAndPlay(16); } if (_y >= bottom && this.jumpAway._currentframe > 16 && this.jumpAway._currentframe < 20) { this.jumpAway.gotoAndPlay(20); rateJump = 0; rateSlide = 14; jump = false; _y = bottom; } } } if (this.hit.hitTest(_root.arm.sword.s) && !blocking && !jump) { dtype = 1; hurt = true; ++_global.es1; ++_global.es2; _root.dCounter.duplicateMovieClip('dCounter' + _global.es1, _global.es2); _root['dCounter' + _global.es1]._x = this._x; _root['dCounter' + _global.es1]._y = this._y; if (_root.player.dash) { gotoAndStop('hurt'); attack = false; extraDamage = 2; } _root['dCounter' + _global.es1].damageCounter = _root.arm.power + _root.arm.damage + extraDamage; hp -= _root.arm.power + _root.arm.damage + extraDamage; knockBack = true; force = dirr * (_root.arm.knockBack + extraDamage); if (_root.arm.up) { flyup = true; forceUp = -1 * (_root.arm.knockBack + _root.arm.power / 2 + extraDamage); } } } if (hp <= 0 && !dead) { _root.score += 700; knockBack = false; dead = true; } if (hurt) { redAmount = 255; if (!dead && _root.arm.damagetype == 'lightning' && this.LD._alpha <= 0) { this.LD._alpha = 100; } else { if (!dead && _root.arm.damagetype == 'fire' && this.FD._alpha <= 0) { this.FD._alpha = 100; } } ++_global.es1; ++_global.es2; _root.blood.duplicateMovieClip('blood' + _global.es1, _global.es2); _root['blood' + _global.es1]._x = this._x; _root['blood' + _global.es1]._y = this._y; _root['blood' + _global.es1]._rotation = _root.arm._rotation + random(20); if (this._currentframe != 3) { hurt = false; } } if (knockBack) { if (KBcounter <= _root.arm.knockBack + extraDamage) { _x = _x - force; force *= 0.6; ++KBcounter; } else { knockBack = false; KBcounter = 0; extraDamage = 0; } } if (dead && !deathLock) { this.gotoAndStop('death'); _root.trainingDone = true; _root.player.training = false; _root.pawsd = true; _root.control.enemies.pop(); _root.chat._y = 21; _root.chat.gotoAndStop('passed'); _root.hotaru.active = false; _root.player.gotoAndStop('stand'); _root.arm.sword.gotoAndStop(1); _root.hotaru.reset(); _root.Shop.discount = 2; _root.chat.defeated = true; deathLock = true; } } else { if (_root.player.dead) { } else { if (_root.pawsd && !dead && _root.player.training) { pauseSelf(); } else { if (!dead) { if (bossOn == 'null') { gotoAndStop('stand'); } } } } } if (redAmount > 0) { var myColorTransform = {'ra': 100, 'rb': redAmount, 'ga': 100, 'gb': 0, 'ba': 100, 'bb': 0, 'aa': 100, 'ab': 0}; my_color.setTransform(myColorTransform); redAmount -= 15; } } if (flyup && !_root.pawsd || flyup && dead || flyup && _root.trainingDone) { _y = _y + forceUp; if (_y < bottom) { if (forceUp < 30) { ++forceUp; } } else { flyup = false; _y = bottom; } } } } instance hotaruShop of movieClip 2166 { onClipEvent (load) { _x = 236.2; gotoAndStop('standShop'); } onClipEvent (enterFrame) { if (_xscale > 0 && _root.player._x > _x + 40) { _xscale = _xscale * -1; _x = 241; } else { if (_xscale < 0 && _root.player._x < _x - 40) { _xscale = _xscale * -1; _x = 236.2; } } } } movieClip 2168 { } movieClip 2176 { } movieClip 2178 { } movieClip 2182 { frame 1 { stop(); } } movieClip 2184 { } movieClip 2185 { } movieClip 2188 { } movieClip 2189 { } movieClip 2192 { } movieClip 2193 { } movieClip 2194 { } instance of movieClip 2194 { onClipEvent (load) { ground.duplicateMovieClip('ground2', 100); ground.duplicateMovieClip('ground3', 101); ground2._x = ground._x + ground._width; ground3._x = ground._x - ground._width; groundStartx = this._x; } onClipEvent (enterFrame) { if (!_root.pawsd && !_root.scrollLock && _global.scrolling >= 2) { groundSpeed = _root.player.speed / 8; if (_root.player.scrollStartR == true) { this._x -= groundSpeed; if (this._x <= groundStartx - ground._width) { this._x = groundStartx - groundSpeed; } } if (_root.player.scrollStartL == true) { this._x += groundSpeed; if (this._x > groundStartx + ground._width) { this._x = groundStartx + groundSpeed; } } } } } instance of movieClip 1802 { onClipEvent (load) { ground.duplicateMovieClip('ground2', 100); ground.duplicateMovieClip('ground3', 101); ground2._x = ground._x + ground._width; ground3._x = ground._x - ground._width; groundStartx = this._x; } onClipEvent (enterFrame) { if (!_root.pawsd && !_root.scrollLock && _global.scrolling == 3) { groundSpeed = Math.round(_root.player.speed) / 32; if (_root.player.scrollStartR == true) { this._x -= groundSpeed; if (this._x <= groundStartx - ground._width) { this._x = groundStartx; } } if (_root.player.scrollStartL == true) { this._x += groundSpeed; if (this._x > groundStartx + ground._width) { this._x = groundStartx; } } } } } frame 15 { stop(); _root.goArrow._visible = false; _root.guiOff(); _root.fadeScreen.changeRate(10); _root.fadeScreen.fadeOut(); _root.control.lock = false; _root.sound.setNextVolume(100); _root.sound.setNextVolumeRate(50); _root.sound.setNextSong('Night', true); _root.player.reset(); _root.player._x += 28; _root.arm._x += 28; _root.distance = 6000; _global.es1 = 0; _global.es2 = 100000; _global.eb1 = 0; _global.eb2 = 60000; _global.ps1 = 0; _global.ps2 = 200000; _global.t1 = 0; _global.t2 = 150000; pawsd = true; scrollLock = true; battle = true; counter = 0; _root.onEnterFrame = function () { if (Key.isDown(80) && _root._currentframe == 15) { if (!pawsd) { pawsd = true; _root.pmenu._y = 134; } } if (!scrollLock && _global.scrollFix) { if ((_root.player.scrollStartR || _root.player.scrollStartL) && _quality == 'HIGH') { _quality = 'MEDIUM'; } } if (!scrollLock && _root.player.scrollStartL && _root.distance > _root.player.stopDist + 100 && !_root.battle) { scrollLock = true; _root.distance = _root.player.stopDist + 100; } else { if (_root.player.scrollStartR && _root.distance > 250 && _root._currentframe == 15 && !_root.battle) { scrollLock = false; } } }; } button 2197 { on (release) { if (_root.chat.faught) { _root.chat.gotoAndStop(8); } else { gotoAndStop(7); } } } movieClip 2198 { frame 1 { stop(); } frame 5 { _root.chat.talked = true; if (_root.chat.defeated) { _root.chat.fightB.enabled = false; _root.chat.fightB._alpha = 0; _root.chat.fightT._alpha = 0; } } frame 6 { stop(); if (_root.chat.defeated) { _root.chat.fightB.enabled = false; _root.chat.fightB._alpha = 0; _root.chat.fightT._alpha = 0; } } frame 7 { faught = true; } } instance chat of movieClip 2198 { onClipEvent (load) { _alpha = 100; } } instance killsLeft of movieClip 1922 { onClipEvent (load) { function activate(kills) { gotoAndPlay(2); killCount = kills; } killCount = 0; } onClipEvent (enterFrame) { this.kills = killCount; } } instance control of movieClip 187 { onClipEvent (load) { function createEnemy(Etype, xx, yy) { ++_global.es1; ++_global.es2; _root['en' + Etype + '' + 's'].duplicateMovieClip('en' + Etype + '' + 's' + _global.es1, _global.es2); _root['en' + Etype + '' + 's' + _global.es1]._x = xx; _root['en' + Etype + '' + 's' + _global.es1]._y = yy; } function createBox(Btype, xx) { ++_global.eb1; ++_global.eb2; _root['box' + Btype + 's'].duplicateMovieClip('box' + Btype + 's' + _global.eb1, _global.eb2); _root['box' + Btype + 's' + _global.eb1]._x = xx; _root['box' + Btype + 's' + _global.eb1]._y = 220; } function specificLevelFightInitialize() { _root.control.fightStart('cinematic', 25); } function endingBattle() { _root.player.resetScrolling(); _root.player.changeLimits(66, 530); endBattleLock = true; _root.battle = true; _root.wallRight.reUse(); _root.wallLeft.reUse(); extraEnemies = 0; i = 0; while (i < _root.control.enemies.length) { if (_root.control.enemies[i]._x < 55) { _root.control.enemies[i].removeMovieClip(); _root.control.enemies.splice(i, 1); --i; } else { if (!_root.control.enemies[i].dead) { ++extraEnemies; } } ++i; } _root.control.fightStart('endingBattle', extraEnemies + 2); } function fightStart(type, numberEnemies) { _root.goArrow._visible = false; t = 0; fightType = type; total = numberEnemies; enemyCount = 0; if (type == 'cinematic') { _root.player.changeLimits(66, 530); _root.killsLeft.activate(numberEnemies); _root.sound.fadeOut(0, 25); _root.sound.setNextVolume(100); _root.sound.setNextVolumeRate(50); _root.sound.setNextSong('evil', true); } else { if (type == 'endingBattle') { _root.killsLeft.activate(numberEnemies); } } } function resetEnemyCatagories() { normal = 0; strong = 0; weak = 0; } function info() {} function removeAllEnemies() { i = 0; while (i <= _root.control.enemies.length) { _root.control.enemies[i].removeMovieClip(); ++i; } weak = 0; normal = 0; strong = 0; _root.control.enemies.splice(0, _root.control.enemies.length); } function restoreLevelMusic() { _root.sound.setNextVolume(100); _root.sound.setNextVolumeRate(50); _root.sound.setNextSong('evil', true); } t = 0; lock = false; weak = 0; normal = 0; strong = 0; enemyCount = 0; boxCount = 0; sentinalLock = 0; endBattleLock = false; fightType = 'none'; var enemies = new Array(); var slashes = new Array(); } onClipEvent (press) { } onClipEvent (enterFrame) { if (!_root.player.dead) { if (_root.distance < 400) { lock = true; if (_root.distance <= 250) { _root.scrollLock = true; if (!endBattleLock) { endingBattle(); } if (_root.distance <= 0 && !lockBlackOut) { _root.fadeScreen.changeRate(20); _root.fadeScreen.fadeIn(true); _root.sound.fadeOut(0, 25); removeAllEnemies(); _root.gcontrol.clearMiscItems(); } } } if (!lock && !_root.pawsd) { if (fightType == 'cinematic') { if (enemyCount < total && t > 30) { if (t % 50 == 0 && enemies.length < 4) { _root.createUndead(12, 70 + random(415), 194.2, true); ++enemyCount; ++normal; } else { if (t % 90 == 0 && enemies.length < 6) { _root.createUndead(13, 70 + random(415), 194.2, true); ++enemyCount; ++normal; } else { if (t % 120 == 0 && enemies.length < 9 && strong < 1) { if (random(2) == 0) { num = 150; } else { num = 450; } _root.createUndead(14, num, 173.8, true); ++enemyCount; ++strong; } } } } if (_root.killsLeft.killCount == 0) { resetEnemyCatagories(); fightStart('normal', 0); _root.scrollLock = false; _root.battle = false; _root.killsLeft.play(); _root.goArrow._visible = true; _root.wallRight.play(); _root.saveObj.setCheckpoint(); createBox(2, 670); createBox(1, 790); } } if (fightType == 'normal') { if (t % 70 == 0 && enemies.length < 7) { _root.createUndead(12, 640 + random(20), 194.2, false); ++normal; } else { if (t % 80 == 0 && enemies.length < 6) { _root.createUndead(13, 650 + random(10), 194.2, false); ++normal; } else { if ((t % 100 == 0 || t % 95 == 0) && enemies.length < 6 && strong < 2) { _root.createUndead(15, 640 + random(25), 194.2, false); ++strong; } } } if (t % 84 == 0 && enemies.length < 7 && random(4) == 1) { _root.createUndead(13, 250 + random(100), 194.2, true); ++normal; } else { if (t % 84 == 0 && enemies.length < 7 && random(4) == 0) { _root.createUndead(12, 250 + random(100), 194.2, true); ++normal; } } if (_root.distance < 3000 && sentinalLock < 1) { sentinalLock = 1; _root.createUndead(14, 250, -100, false); ++strong; } } } if (fightType == 'endingBattle') { if (t > 15 && sentinalLock < 2) { sentinalLock = 2; _root.createUndead(14, 140, -100, false); ++enemyCount; ++strong; } else { if (t > 55 && sentinalLock < 3) { sentinalLock = 3; _root.createUndead(14, 475, -100, false); ++enemyCount; ++strong; } } if (_root.killsLeft.killCount == 0) { resetEnemyCatagories(); fightType = 'none'; _root.battle = false; _root.killsLeft.play(); _root.goArrow._visible = true; _root.wallRight.play(); } } if (_root.distance <= 5000 && boxCount == 0) { ++boxCount; createBox(2, 640); } else { if (_root.distance <= 2900 && boxCount == 1) { ++boxCount; createBox(3, 640); } else { if (_root.distance <= 2300 && boxCount == 2) { ++boxCount; createBox(1, 640); } } } } else { if (fightType == 'cinematic') { fightType = 'none'; _root.killsLeft.gotoAndStop(1); _root.killsLeft.killCount = 0; } else { if (fightType == 'endingBattle') { fightType = 'none'; _root.battle = false; _root.killsLeft.gotoAndStop(1); _root.killsLeft.killCount = 0; } } boxCount = 0; sentinalLock = 0; endBattleLock = false; with (_root.player) { if (jump) { _y += rate2; if (rate2 < rate2limit) { ++rate2; } else { jump = false; jumpLock = false; } } } } } } movieClip 2203 { frame 1 { stop(); } } movieClip 2205 { frame 1 { stop(); } } movieClip 2207 { frame 1 { gotoAndStop(_parent._parent.wep); } } movieClip 2211 { frame 1 { stop(); } } movieClip 2215 { frame 1 { stop(); } } movieClip 2218 { } button 2221 { on (release) { gotoAndPlay(_currentframe + 1); } } movieClip 2226 { frame 1 { gotoAndStop(_parent._parent.wep); } } movieClip 2237 { } movieClip 2253 { } movieClip 2264 { } movieClip 2267 { } movieClip 2272 { } movieClip 2274 { } movieClip 2276 { } movieClip 2296 { } movieClip 2303 { frame 18 { stop(); } frame 23 { stop(); } frame 24 { stop(); } frame 49 { stop(); } frame 199 { stop(); } frame 237 { stop(); } frame 238 { stop(); } instance graveBox of movieClip 1264 { onClipEvent (load) { function powerUp() { _root.goldDrop(25, _x + _parent._x, _y + _parent._y, true); } hp = 10; var knockBack = false; KBcounter = 0; dirr = 1; var flyup = false; var forceUp = 0; bottom = _y; extraDamage = 0; opened = false; } onClipEvent (enterFrame) { if (!_root.pawsd) { if (_root.player._x > this._x) { dirr = 1; } else { dirr = -1; } if (this.hit.hitTest(_root.arm.sword.s)) { ++_global.es1; ++_global.es2; _root.dCounter.duplicateMovieClip('dCounter' + _global.es1, _global.es2); _root['dCounter' + _global.es1]._x = this._x + _parent._x; _root['dCounter' + _global.es1]._y = this._y + _parent._y; if (_root.player.dash) { extraDamage = 2; } _root['dCounter' + _global.es1].damageCounter = _root.arm.power + _root.arm.damage + extraDamage; hp -= _root.arm.power + _root.arm.damage + extraDamage; knockBack = true; force = dirr * (_root.arm.knockBack + extraDamage); if (_root.arm.up) { flyup = true; forceUp = -1 * (_root.arm.knockBack + _root.arm.power / 2 + extraDamage); } } if (flyup) { _y = _y + forceUp; if (_y < bottom) { if (forceUp < 30) { ++forceUp; } } else { flyup = false; _y = bottom; } } if (knockBack) { if (KBcounter <= _root.arm.knockBack + extraDamage) { _x = _x + force; force *= 0.6; ++KBcounter; } else { knockBack = false; KBcounter = 0; extraDamage = 0; } } if (_x < -250) { } if (hp <= 0) { _root.saveObj.boxOpened = true; if (opened) { if (_alpha > 0) { _alpha = _alpha - 10; } else {} } else { play(); } } } } } frame 633 { _root.grave.gotoAndStop(2); } frame 714 { stop(); } frame 801 { stop(); } frame 802 { stop(); } frame 810 { stop(); } frame 839 { _root.wallLeft.play(); _root.wallLeft._visible = true; } frame 872 { _root.wallRight.play(); _root.wallRight._visible = true; } frame 873 { stop(); _root.guiOn(); _root.pawsd = false; _root.control.specificLevelFightInitialize(); } } instance cinematic of movieClip 2303 { onClipEvent (load) { function reset() { locked = false; _x = 336.1; } wep = 1; head = 1; body = 1; locked = false; } onClipEvent (enterFrame) { if (!_root.scrollLock) { if (_root.player.scrollStartR) { _x = _x - _root.player.speed; } else { if (_root.player.scrollStartL) { _x = _x + _root.player.speed; } } } if (_x < -250) { locked = true; } } } movieClip 2308 { } movieClip 2321 { } movieClip 2329 { frame 1 { stop(); } frame 16 { stop(); } instance of movieClip 2321 { onClipEvent (enterFrame) { if (_root.player.hit.hitTest(this)) { if (_root.battle) { switch (_parent.dirrection) { case -1: _root.player._x = 532; break; case 1: _root.player._x = 64; break; default: } } else { while (_root.player.hit.hitTest(this)) { _root.player._x += _parent.dirrection; } _root.distance -= _parent.dirrection * Math.round(_root.player.speed); } } } } frame 42 { stop(); } } instance wallLeft of movieClip 2329 { onClipEvent (load) { function reset() { locked = false; _x = 10.2; } function reUse() { locked = false; _x = 10.2; gotoAndPlay(2); } _visible = false; dirrection = 1; } onClipEvent (enterFrame) { if (!locked) { if (!_root.scrollLock) { if (_root.player.scrollStartR) { _x = _x - _root.player.speed; } else { if (_root.player.scrollStartL) { _x = _x + _root.player.speed; } } } if (_x < -250) { locked = true; } } } } instance wallRight of movieClip 2329 { onClipEvent (load) { function reset() { locked = false; _x = 585.2000000000001; gotoAndStop(16); } function reUse() { locked = false; _x = 585.2000000000001; gotoAndPlay(2); } _visible = false; dirrection = -1; } onClipEvent (enterFrame) { if (!locked) { if (!_root.scrollLock) { if (_root.player.scrollStartR) { _x = _x - _root.player.speed; } else { if (_root.player.scrollStartL) { _x = _x + _root.player.speed; } } } if (_x < -250) { locked = true; } } } } movieClip 2332 { frame 1 { stop(); } frame 2 { stop(); } } instance grave of movieClip 2332 { onClipEvent (load) { function reset() { locked = false; _x = 336.1; } locked = false; } onClipEvent (enterFrame) { if (!locked) { if (!_root.scrollLock) { if (_root.player.scrollStartR) { _x = _x - _root.player.speed; } else { if (_root.player.scrollStartL) { _x = _x + _root.player.speed; } } } if (_x < -250) { locked = true; } } } } movieClip 2334 { } movieClip 2335 { } instance backG of movieClip 2335 { onClipEvent (load) { ground.duplicateMovieClip('ground2', 100); ground.duplicateMovieClip('ground3', 101); ground2._x = ground._x + ground._width; ground3._x = ground._x - ground._width; groundStartx = this._x; } onClipEvent (enterFrame) { if (!_root.pawsd && !_root.scrollLock) { groundSpeed = Math.round(_root.player.speed); if (_root.player.scrollStartR == true) { this._x -= groundSpeed; if (this._x <= groundStartx - ground._width) { this._x = groundStartx; } } if (_root.player.scrollStartL == true) { this._x += groundSpeed; if (this._x > groundStartx + ground._width) { this._x = groundStartx; } } } } } instance saveObj of movieClip 1926 { onClipEvent (load) { function levelHasCheckpoint() { return true; } function checkpointIsSet() { return checkpointSet; } function setCheckpoint() { checkpointSet = true; _root.checkpoint._x = 297; _root.checkpoint._y = 89; _root.checkpoint.play(); backGroundX_C = _root.backG._x; distance_C = _root.distance; score_C = _root.score; gold_C = _root.gold; startpoint_C = _root.player._x; starthp_C = _root.player.hp; stopD_C = _root.player.stopDist; distL_C = _root.player.distLock; wallLX = _root.wallLeft._x; wallRX = _root.wallRight._x; graveX = _root.grave._x; cinX = _root.cinematic._x; } function setLoadCheckpoint() { loadCheckpoint = true; } function removeCheckpoint() { loadCheckpoint = false; checkpointSet = false; } function levelStartSave() { backGroundX = _root.backG._x; distance = _root.distance; score = _root.score; gold = _root.gold; startpoint = _root.player._x; starthp = _root.player.hp; } function loadStart() { if (!loadCheckpoint) { if (boxOpened) { _root.control.createBox(2, 416); } _root.backG._x = backGroundX; _root.distance = distance; _root.score = score; _root.gold = gold; _root.player._x = startpoint; _root.player.hp = starthp; _root.player.reset(); _root.scrollLock = true; _root.battle = true; _root.control.specificLevelFightInitialize(); _root.cinematic.reset(); _root.grave.reset(); _root.wallRight.reset(); _root.wallLeft.reset(); } else { if (boxOpened) { _root.control.createBox(2, 416); } _root.backG._x = backGroundX_C; _root.distance = distance_C; _root.score = score_C; _root.gold = gold_C; _root.player._x = startpoint_C; _root.arm._x = startpoint_C; _root.arm._y = 205.9; _root.player.stopDist = stopD_C; _root.player.distLock = distL_C; _root.player.hp = starthp_C; _root.player.resetCheckpoint(); _root.wallLeft._x = wallLX; _root.wallRight._x = wallRX; _root.wallRight.gotoAndStop(42); _root.grave._x = graveX; _root.wallLeft.locked = false; _root.wallRight.locked = false; _root.grave.locked = false; _root.cinematic._x = cinX; _root.cinematic.locked = false; _root.control.createBox(2, 670); _root.control.createBox(1, 790); _root.control.fightStart('normal'); } } function info() {} distance = 0; score = 0; gold = 0; startpoint = 0; starthp = _root.player.hp; stopD = 0; distL = false; backGroundX = 0; distance_C = 0; score_C = 0; gold_C = 0; startpoint_C = 0; starthp_C = _root.player.hp; stopD_C = 0; distL_C = false; wallLX; wallRX; graveX; cinX; boxOpened = false; backGroundX_C = 0; checkpointSet = false; loadCheckpoint = false; levelStartSave(); } onClipEvent (enterFrame) { } } frame 16 { stop(); _root.fadeScreen.changeRate(4); _root.fadeScreen.fadeOut(); stop(); _root.goArrow._visible = false; bossOn = 'null'; scrollLock = true; _root.chatZoom.gotoAndStop(1); _root.player.reset(); pawsd = true; battle = true; counter = 0; _root.onEnterFrame = function () { if (Key.isDown(80) && _root._currentframe == 16) { if (!pawsd) { pawsd = true; _root.pmenu._y = 134; } } }; } button 2336 { on (release) { _root.chat.y = -300; _root.demonBoss.emerge.play(); } } movieClip 2340 { frame 1 { stop(); } } instance chat of movieClip 2340 { onClipEvent (load) { _alpha = 100; } } instance control of movieClip 187 { onClipEvent (load) { function createEnemy(Etype, xx, yy) { ++_global.es1; ++_global.es2; _root['en' + Etype + '' + 's'].duplicateMovieClip('en' + Etype + '' + 's' + _global.es1, _global.es2); _root['en' + Etype + '' + 's' + _global.es1]._x = xx; _root['en' + Etype + '' + 's' + _global.es1]._y = yy; } function createBox(Btype, xx) { ++_global.eb1; ++_global.eb2; _root['box' + Btype + 's'].duplicateMovieClip('box' + Btype + 's' + _global.eb1, _global.eb2); _root['box' + Btype + 's' + _global.eb1]._x = xx; _root['box' + Btype + 's' + _global.eb1]._y = 220; } function createPowerUpBox(Btype, xx) { ++_global.eb1; ++_global.eb2; _root['box' + Btype + 's'].duplicateMovieClip('box' + Btype + 's' + _global.eb1, _global.eb2); _root['box' + Btype + 's' + _global.eb1]._x = xx; _root['box' + Btype + 's' + _global.eb1]._y = 220; } function fightStart(type, numberEnemies) { t = 0; fightType = type; total = numberEnemies; enemyCount = 0; normal = 0; strong = 0; } function resetEnemyCatagories() { normal = 0; strong = 0; weak = 0; } function info() {} function removeAllEnemies() { i = 0; while (i <= _root.control.enemies.length) { _root.control.enemies[i].removeMovieClip(); ++i; } weak = 0; normal = 0; strong = 0; _root.control.enemies.splice(0, _root.control.enemies.length); } function restoreLevelMusic() { _root.sound.setNextVolumeRate(20); _root.sound.setNextVolume(100); _root.sound.setNextSong('Boss', true); } t = 0; lock = false; weak = 0; normal = 0; strong = 0; enemyCount = 0; boxCount = 0; var enemies = new Array(); var slashes = new Array(); createBox(1, 540); createBox(1, 100); createBox(1, 190); } onClipEvent (press) { } onClipEvent (enterFrame) { if (!_root.player.dead && !_root.bossFight.dead) { } else { with (_root.player) { if (jump && _root.player.dead || jump && _root.bossFight.death._currentframe < 45) { _y += rate2; if (rate2 < rate2limit) { ++rate2; } else { jump = false; jumpLock = false; } } else { if (_root.bossOn == 'dead' && _root.pawsd) { _root.player.gotoAndStop('stand'); _root.player.resetDash(); _root.arm._y = _root.player._y; _root.arm._x = _root.player._x; _root.arm._rotation = 90 * (_root.arm._xscale / 100); _root.arm.attack = false; _root.arm.attackLock = false; } } } } } } movieClip 2343 { } movieClip 2345 { } movieClip 2350 { instance of movieClip 789 { onClipEvent (load) { if (this.hitTest(_root.player.hit)) { _root.player.hurt(4); _root.arm.energy = 0; _root.player.flyStart(26); } } } frame 43 { i = 0; while (i <= _root.gcontrol.miscItems.length) { if (_root.gcontrol.miscItems[i] == this) { _root.gcontrol.miscItems.splice(i, 1); break; } ++i; } this.removeMovieClip(); } } instance demonSpike of movieClip 2350 { onClipEvent (load) { if (this._name == 'demonSpike') { stop(); } else { _root.gcontrol.miscItems.push(this); } } } instance statDemonBoss of movieClip 513 { onClipEvent (load) { _visible = false; activated = false; } onClipEvent (enterFrame) { if (_root.demonBoss.hp > 0 && activated) { _visible = true; this.hbar._xscale = (_root.demonBoss.hp / _root.demonBoss.maxhp) * 100; this.ebar._xscale = (_root.demonBoss.energy / _root.demonBoss.maxEn) * 100; _y = _root.demonBoss._y - 100; _x = _root.demonBoss._x; } else { _visible = false; } } } movieClip 2352 { } movieClip 2354 { frame 1 { gotoAndStop(_parent._parent.head); } } movieClip 2356 { } movieClip 2358 { frame 1 { gotoAndStop(_parent._parent.body); } } movieClip 2360 { } movieClip 2363 { } // unknown tag 88 length 99 movieClip 2367 { frame 1 { gotoAndStop(_parent._parent.wep); } } movieClip 2368 { } movieClip 2369 { } movieClip 2370 { frame 1 { num = 3 + random(2); newSound = new Sound(); newSound.attachSound(_root.skeletonSounds[num]); newSound.setVolume(70); newSound.start(); } frame 5 { _parent.hurt = false; _parent.attack = false; stop(); } } movieClip 2372 { } movieClip 2381 { instance of movieClip 783 { onClipEvent (load) { if (this.hitTest(_root.player.hit)) { if (_root.arm.guarding && _parent._parent._xscale == -_root.player._xscale) { cancel = true; _root.arm.sword.sword.spark.gotoAndPlay(1); _root.arm.energy -= 80; _root.player.hurt(1); _root.player.knockBack(35); _root.player.createSpark(20); } else { _root.player.hurt(3); } } } } frame 13 { if (_parent.updateDirrection() == 'behind') { gotoAndPlay('second'); } else { if (_parent.updateDirrection() == 'inFront') { gotoAndPlay('slashDown'); } } } frame 18 { } frame 27 { _parent.attack = false; } instance of movieClip 783 { onClipEvent (load) { if (this.hitTest(_root.player.guard)) { cancel = true; _root.arm.sword.sword.spark.gotoAndPlay(1); _root.arm.energy -= 80; _root.player.hurt(4); } else { if (this.hitTest(_root.player.hit) && !cancel) { _root.player.hurt(4); } } } } frame 51 { _parent.attack = false; } frame 54 { if (_parent.attack) { gotoAndPlay(1); } } frame 63 { if (_parent.updateDirrection() == 'behind') { gotoAndPlay('secondTurn'); } } instance of movieClip 783 { onClipEvent (load) { if (this.hitTest(_root.player.guard)) { cancel = true; _root.arm.sword.sword.spark.gotoAndPlay(1); _root.arm.energy -= 80; _root.player.hurt(4); } else { if (this.hitTest(_root.player.hit) && !cancel) { _root.player.hurt(3); } } } } frame 77 { ++_global.es1; ++_global.es2; _root.demonSpike.duplicateMovieClip('demonSpike' + _global.es1, _global.es2); _root['demonSpike' + _global.es1]._x = _root.player._x; _root['demonSpike' + _global.es1]._y = 234; } frame 109 { _parent.attack = false; } frame 110 { if (_parent.attack) { if (_root.player._x > _parent._x) { _parent._xscale = 100; } else { _parent._xscale = -100; } gotoAndPlay(1); } } } movieClip 2402 { } movieClip 2457 { } movieClip 2459 { } movieClip 2461 { } movieClip 2473 { frame 55 { _parent.play(); stop(); } instance of movieClip 783 { onClipEvent (enterFrame) { if (this.hitTest(_root.arm.sword.s)) { _root.createSpark(15, _root.undeadBoss._x + _root.undeadBoss.death._x + (_parent._x + 12) * (_root.undeadBoss._xscale / 100), _root.undeadBoss._y + _root.undeadBoss.death._y + _parent._y); _parent.play(); _root.undeadBoss.death.play(); } } } frame 95 { _root.createSpark(40, _root.demonBoss._x + _root.demonBoss.death._x + (_x + 12) * (_root.demonBoss._xscale / 100), _root.demonBoss._y + _root.demonBoss.death._y + _y); } frame 96 { _root.goldDrop(40, _root.demonBoss._x + _root.demonBoss.death._x + (_x + 12) * (_root.demonBoss._xscale / 100), _root.demonBoss._y + _root.demonBoss.death._y + _y, true); _root.potionDrop(3, _root.demonBoss._x + _root.demonBoss.death._x + (_x + 12) * (_root.demonBoss._xscale / 100), _root.demonBoss._y + _root.demonBoss.death._y + _y); } frame 98 { _root.goldDrop(40, _root.demonBoss._x + _root.demonBoss.death._x + (_x + 12) * (_root.demonBoss._xscale / 100), _root.demonBoss._y + _root.demonBoss.death._y + _y, true); } frame 100 { _root.goldDrop(40, _root.demonBoss._x + _root.demonBoss.death._x + (_x + 12) * (_root.demonBoss._xscale / 100), _root.demonBoss._y + _root.demonBoss.death._y + _y, true); } frame 155 { _root.fadeScreen.setTimer(60); _root.fadeScreen.fadeIn(true); _root.control.removeAllEnemies(); stop(); } } movieClip 2479 { } movieClip 2480 { frame 20 { gotoAndPlay('restart'); } } movieClip 2481 { frame 45 { _root.sound.fadeOut(0, 20); } frame 177 { stop(); } instance of movieClip 2480 { onClipEvent (load) { _xscale = _root.demonBoss._xscale; } } frame 205 { stop(); } frame 207 { stop(); } } movieClip 2483 { } movieClip 2495 { frame 15 { _root.charredGround._visible = true; } } movieClip 2504 { frame 17 { stop(); _root.chat._y = 21; } frame 18 { _root.chat._y = -300; } frame 170 { stop(); _parent.emerging = false; _root.pawsd = false; _root.statDemonBoss.activated = true; _root.sound.setNextVolumeRate(20); _root.sound.setNextVolume(100); _root.sound.setNextSong('Boss', true); } } movieClip 2506 { frame 1 { stop(); } frame 27 { stop(); _parent.dropping = false; } } movieClip 2507 { frame 1 { stop(); } instance FD of movieClip 762 { onClipEvent (enterFrame) { if (_alpha >= 0) { play(); } else { stop(); } } } instance LD of movieClip 766 { onClipEvent (enterFrame) { if (_alpha >= 0) { _alpha = _alpha - 10; play(); } else { stop(); } } } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } frame 7 { stop(); } frame 8 { stop(); } } instance demonBoss of movieClip 2507 { onClipEvent (load) { function isBoss() { return true; } function isBusy() { return true; } function pauseSelf() { if (attack) { action = 'attack'; this.atk.stop(); } else { if (emerging) { action = 'emerging'; this.emerge.stop(); } else { if (dropping) { action = 'dropping'; this.drop.stop(); } else { if (dead) { action = 'dead'; frame1 = this.death._currentframe; this.death.stop(); this.death2.stop(); } else { action = 'null'; gotoAndStop('stand'); } } } } } function unPause() { if (action == 'attack') { this.atk.play(); } else { if (action == 'emerging') { this.emerge.play(); } else { if (action == 'dropping') { this.drop.play(); } else { if (action == 'dead') { this.death.gotoAndPlay(frame1 - 1); } } } } hurt = false; action = 'null'; } function updateDirrection() { if (Math.abs(_root.player._x - _x) <= 170) { if (_root.player._x > this._x && _xscale == -100 || _root.player._x < this._x && _xscale == 100) { attack = true; return 'behind'; } else { if (_root.player._x > this._x && _xscale == 100 || _root.player._x < this._x && _xscale == -100) { attack = true; return 'inFront'; } } } else { return 'tooFar'; } } function playHurtSound() { newSound.position = newSound.duration || firstPlay; if (newSound.position) { firstPlay = false; num = 3 + random(2); newSound.attachSound(_root.skeletonSounds[num]); newSound.setVolume(70); newSound.start(); } } hp = 600; maxhp = 600; maxEn = 100; energy = maxEn; dtype = 1; var knockBack = false; var hurt = false; var flyup = false; var dead = false; bottom = 173.8; dirr = 1; KBcounter = 0; var forceUp = 0; extraDamage = 0; redAmount = 0; var my_color = new Color(this); healthDropChance = 5; goldDropChance = 15; head = 1 + random(3); body = 1 + random(2); wep = 1 + random(3); emerging = true; gotoAndStop('emerge'); _xscale = -100; dirr = -1; notAdded = true; action = 'null'; attack = false; frame1 = 1; newSound = new Sound(this); firstPlay = true; } onClipEvent (enterFrame) { if (notAdded) { _root.control.enemies.push(this); notAdded = false; } if (!_root.pawsd && !_root.player.dead && !emerging) { if (!_root.scrollLock) { if (_root.player.scrollStartR) { _x = _x - _root.player.speed; } else { if (_root.player.scrollStartL) { _x = _x + _root.player.speed; } } } if (!dead) { if (Math.abs(_root.player._x - _x) <= 100) { attack = true; gotoAndStop('attack'); } if (_root.player._x > this._x && !attack) { dirr = 1; gotoAndStop('move'); _xscale = 100; if (_y >= bottom - 20) { _x = _x + 3; } } else { if (!attack) { dirr = -1; gotoAndStop('move'); _xscale = -100; if (_y >= bottom - 20) { _x = _x - 3; } } } if (this.hit.hitTest(_root.arm.sword.s)) { playHurtSound(); hurt = true; ++_global.es1; ++_global.es2; _root.dCounter.duplicateMovieClip('dCounter' + _global.es1, _global.es2); _root['dCounter' + _global.es1]._x = this._x; _root['dCounter' + _global.es1]._y = this._y; if (_root.player.dash) { extraDamage = 2; } _root['dCounter' + _global.es1].damageCounter = _root.arm.power + _root.arm.damage + extraDamage; hp -= _root.arm.power + _root.arm.damage + extraDamage; knockBack = true; force = dirr * (_root.arm.knockBack + extraDamage); if (_root.arm.up) { flyup = true; forceUp = -1 * (_root.arm.knockBack + _root.arm.power / 2 + extraDamage); } } } if (hp <= 0 && !dead) { _root.sound.fadeOut(0, 20); ++_global.kills; _root.score += 1300; dead = true; hurt = false; attack = false; redAmount = 0; var myColorTransform = {'ra': 100, 'rb': redAmount, 'ga': 100, 'gb': 0, 'ba': 100, 'bb': 0, 'aa': 100, 'ab': 0}; my_color.setTransform(myColorTransform); gotoAndStop('die1'); } if (hurt) { redAmount = 255; if (!dead && _root.arm.damagetype == 'lightning' && this.LD._alpha <= 0) { this.LD._alpha = 100; } else { if (!dead && _root.arm.damagetype == 'fire' && this.FD._alpha <= 0) { this.FD._alpha = 100; dtype = 2; } } hurt = false; } if (redAmount > 0) { var myColorTransform = {'ra': 100, 'rb': redAmount, 'ga': 100, 'gb': 0, 'ba': 100, 'bb': 0, 'aa': 100, 'ab': 0}; my_color.setTransform(myColorTransform); redAmount -= 15; } } else { if (emerging) { gotoAndStop('emerge'); } else { if (_root.player.dead) { gotoAndStop('stand'); attack = false; hurt = false; if (_root.death._currentframe == 11) { hp = maxhp; energy = maxEn; _x = 463.6; _y = bottom; _xscale = -100; redAmount = 0; notAdded = true; dead = false; var myColorTransform = {'ra': 100, 'rb': redAmount, 'ga': 100, 'gb': 0, 'ba': 100, 'bb': 0, 'aa': 100, 'ab': 0}; my_color.setTransform(myColorTransform); } } else { if (!dead) { if (!_root.player.dead) { pauseSelf(); } else { gotoAndStop('stand'); } } } } } } } movieClip 2509 { } instance charredGround of movieClip 2509 { onClipEvent (load) { _visible = false; } } movieClip 2512 { } movieClip 2514 { } movieClip 2516 { } movieClip 2518 { } instance backG of movieClip 2518 { onClipEvent (load) { ground.duplicateMovieClip('ground2', 100); ground.duplicateMovieClip('ground3', 101); ground2._x = ground._x + ground._width; ground3._x = ground._x - ground._width; groundStartx = this._x; } onClipEvent (enterFrame) { if (!_root.pawsd && !_root.scrollLock) { groundSpeed = Math.round(_root.player.speed); if (_root.player.scrollStartR == true) { this._x -= groundSpeed; if (this._x <= groundStartx - ground._width) { this._x = groundStartx; } } if (_root.player.scrollStartL == true) { this._x += groundSpeed; if (this._x > groundStartx + ground._width) { this._x = groundStartx; } } } } } instance saveObj of movieClip 1805 { onClipEvent (load) { function levelHasCheckpoint() { return false; } function levelStartSave() { distance = _root.distance; score = _root.score; gold = _root.gold; startpoint = _root.player._x; starthp = _root.player.hp; } function loadStart() { _root.distance = distance; _root.score = score; _root.gold = gold; _root.player._x = startpoint; _root.player.hp = starthp; _root.player.reset(); _root.control.createPowerUpBox(1, 540); _root.control.createPowerUpBox(1, 100); _root.control.createPowerUpBox(1, 190); } function info() {} distance = 0; score = 0; gold = 0; startpoint = 0; starthp = _root.player.hp; levelStartSave(); } onClipEvent (enterFrame) { } } frame 17 { _root.pawsd = true; _root.introChp4.gotoAndPlay(1); stop(); } movieClip 2524 { } button 2525 { on (release) { con.enabled = false; _root.blackout.gotoAndStop(1); _root.fadeScreen.fadeOut(false); _root.introChp4.gotoAndStop(21); _root.gotoAndStop(3); } } movieClip 2527 { frame 10 { stop(); } frame 19 { stop(); _root.play(); } } instance introChp4 of movieClip 2527 { onClipEvent (load) { this.swapDepths(10000000000.0); } } frame 18 { _root.saveGame(); _root.fadeScreen.changeRate(10); _root.fadeScreen.fadeOut(); _root.sound.setNextVolume(100); _root.sound.setNextVolumeRate(100); _root.sound.setNextSong('forestNight', true); _root.guiOn(); _root.chatZoom.gotoAndStop(1); bossOn = 'null'; trainingDone = false; trainingSelect = 0; healthRefund = _root.player.maxhp; scrollLock = true; pawsd = false; _root.control.lock = false; _root.player.reset(); _root.goArrow._visible = false; stop(); counter = 21; _root.onEnterFrame = function () { if (Key.isDown(80) && _root._currentframe == 18 && _root.player.training) { if (!pawsd) { pawsd = true; _root.pmenu._y = 134; } } }; } button 2529 { on (release) { _root.trainMenu.viewable = true; _root.trainMenu.exitB.enabled = true; _root.afterTrain2._y = -200; _root.control.total = 0; _root.control.killed = 0; } } movieClip 2531 { frame 1 { stop(); } } instance afterTrain2 of movieClip 2531 { onClipEvent (load) { function updateStats() { switch (_root.trainingSelect) { case 1: _root.arm.maxEn += 25; break; case 2: _root.player.maxhp += 5; break; case 3: } this.hp.text = _root.player.maxhp; this.en.text = _root.arm.maxEn; _root.player.hp = _root.player.maxhp; } } } instance afterTrain of movieClip 1822 { onClipEvent (load) { function updateStats() { switch (_root.trainingSelect) { case 1: _root.arm.maxEn += 25; break; case 2: _root.player.maxhp += 5; break; case 3: } this.hp.text = _root.player.maxhp; this.en.text = _root.arm.maxEn; _root.player.hp = _root.player.maxhp; } } } movieClip 2534 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 2538 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 2542 { frame 1 { stop(); } frame 2 { stop(); } } button 2543 { on (release) { _root.sound.fadeOut(0, 20); _root.sound.setNextVolume(100); _root.sound.setNextVolumeRate(25); _root.sound.setNextSong('forestNight', true); _root.trainMenu.nov.gotoAndStop(1); _root.trainMenu.expert.gotoAndStop(1); _root.trainMenu.inter.gotoAndStop(1); _root.trainMenu.cost.text = ''; _root.trainMenu.info.text = 'Select a training and press Start if you have the required gold. If you fail a training, you will get half of your gold back.'; startB.enabled = false; startT._alpha = 40; _root.trainMenu.viewable = false; _root.dojo.viewable = false; _root.pawsd = false; _root.player.training = false; } } button 2544 { on (release) { _root.trainMenu.nov.gotoAndStop(1); _root.trainMenu.expert.gotoAndStop(1); _root.trainMenu.inter.gotoAndStop(1); _root.trainMenu.cost.text = ''; _root.trainMenu.info.text = 'Select a training and press Start if you have the required gold. If you fail a training, you will get half of your gold back.'; startB.enabled = false; startT._alpha = 40; exitB.enabled = false; _root.player.training = true; _root.trainMenu.viewable = false; _root.trainMenu.gong.start(0, 0); switch (_root.trainingPreSelect) { } case 'unknown condition': _root.trainingSelect = 1; _root.gold -= 300; _root.dojo.kills = 50; _root.trainMenu.nov._alpha = 0; _root.trainMenu.nov.enabled = false; break; case 2: _root.trainingSelect = 2; _root.gold -= 800; _root.dojo.kills = 40; _root.trainMenu.inter._alpha = 0; _root.trainMenu.inter.enabled = false; break; case 3: _root.trainingSelect = 3; _root.dojo.kills = 1; _root.trainMenu.expert._alpha = 0; _root.trainMenu.expert.enabled = false; } } movieClip 2548 { instance expert of movieClip 2534 { onClipEvent (load) { cost = 0; _alpha = 40; } onClipEvent (release) { _root.trainingPreSelect = 3; gotoAndStop(2); _root.trainMenu.nov.gotoAndStop(1); _root.trainMenu.inter.gotoAndStop(1); _root.trainMenu.cost.text = 'None'; if (_root.trainMenu.nov._alpha == 0 && _root.trainMenu.inter._alpha == 0) { _root.trainMenu.info.text = 'Final Training\nDefeat the Dojo Master'; _root.trainMenu.startB.enabled = true; _root.trainMenu.startT._alpha = 100; } else { _root.trainMenu.info.text = 'You must pass the first two trainings before attempting this.'; _root.trainMenu.startB.enabled = false; _root.trainMenu.startT._alpha = 40; } } } instance inter of movieClip 2538 { onClipEvent (load) { cost = 800; } onClipEvent (release) { _root.trainingPreSelect = 2; gotoAndStop(2); _root.trainMenu.nov.gotoAndStop(1); _root.trainMenu.expert.gotoAndStop(1); _root.trainMenu.cost.text = cost; _root.trainMenu.info.text = 'Master Training\nDefeat 40 enemies'; if (_root.gold < cost) { _root.trainMenu.startB.enabled = false; _root.trainMenu.startT._alpha = 40; } else { _root.trainMenu.startB.enabled = true; _root.trainMenu.startT._alpha = 100; } } } instance nov of movieClip 2542 { onClipEvent (load) { cost = 300; } onClipEvent (release) { _root.trainingPreSelect = 1; gotoAndStop(2); _root.trainMenu.inter.gotoAndStop(1); _root.trainMenu.expert.gotoAndStop(1); _root.trainMenu.cost.text = cost; _root.trainMenu.info.text = 'Endurance Training\nDefeat 50 enemies\nCan you last?'; if (_root.gold < cost) { _root.trainMenu.startB.enabled = false; _root.trainMenu.startT._alpha = 40; } else { _root.trainMenu.startB.enabled = true; _root.trainMenu.startT._alpha = 100; } } } } instance trainMenu of movieClip 2548 { onClipEvent (load) { function updateFinalTraining() { if (_root.trainMenu.nov._alpha == 0 && _root.trainMenu.inter._alpha == 0) { _root.trainMenu.expert._alpha = 100; } } var gong = new Sound(this); gong.attachSound('gongStart'); viewable = false; startB.enabled = false; startT._alpha = 40; } onClipEvent (enterFrame) { if (viewable == true) { _y = 138; if (_alpha < 100) { _alpha = _alpha + 10; } } else { if (_alpha > 0) { _alpha = _alpha - 10; } else { _y = -200; } } } } button 2550 { on (release) { _root.chat._y = 21; _root.shopB.enabled = false; _root.shopB._visible = false; _root.contB.enabled = false; _root.contB._visible = false; _root.menuB.enabled = false; _root.menuB._visible = false; } } button 2551 { on (release) { if (buy.select == 'i') { _root.gold -= buy.cost; i = 0; for (;;) { if (!(_root.player.hp < _root.player.maxhp && i < 2)) break; ++_root.player.hp; ++i; } intro1 = new Sound(this); intro1.attachSound('health'); intro1.setVolume(30); intro1.start(); _root.Shop.info.text = 'Health+\nRecover 2 health points\nCost:\t ' + Math.round(40 / _root.Shop.discount) + '\nYour HP: ' + _root.player.hp + '/' + _root.player.maxhp; if (_root.gold < Math.round(40 / _root.Shop.discount) || _root.player.hp == _root.player.maxhp) { _root.Shop.buy._alpha = 50; _root.Shop.buyB.enabled = false; } } else { if (buy.select == 'j') { _root.gold -= buy.cost; ++_root.player.maxhp; ++_root.player.hp; intro1 = new Sound(this); intro1.attachSound('health'); intro1.setVolume(30); intro1.start(); _root.Shop.info.text = 'Name: Max HP UP\nIncrease your maximum health by 1 point.\nCost:\t ' + buy.cost + '\nYour HP: ' + _root.player.hp + '/' + _root.player.maxhp; if (_root.gold < buy.cost) { _root.Shop.buy._alpha = 50; _root.Shop.buyB.enabled = false; } } else { if (buy.select == 'k') { _root.gold -= buy.cost; _root.arm.maxEn += 5; intro1 = new Sound(this); intro1.attachSound('regen'); intro1.setVolume(60); intro1.start(); _root.Shop.info.text = 'Name: Max Energy UP\nIncrease your maximum energy by 5 points.\nCost:\t ' + buy.cost + '\nYour Energy: ' + _root.arm.maxEn; if (_root.gold < buy.cost) { _root.Shop.buy._alpha = 50; _root.Shop.buyB.enabled = false; } } else { i = 0; while (i <= _root.weapons.weapons.length) { if (_root.weapons.weapons[i]._name == buy.select) { _root.weapons.weaponsA.push(_root.weapons.weapons[i]); _root.weapons.weaponsA.sort(); _root.weapons.weapons[i]._alpha = 100; _root.weapons.weapons[i].enabled = true; _root.weapons.weapons.splice(i, 1); _root.gold -= buy.cost; _root.Shop['a' + buy.select]._alpha = 0; _root.Shop['a' + buy.select].enabled = false; intro2 = new Sound(this); intro2.attachSound('buyChing'); intro2.start(); break; f; } ++i; } } } } } } movieClip 2555 { instance buy of movieClip 1843 { onClipEvent (load) { select = 'a'; } } instance of movieClip 2120 { onClipEvent (enterFrame) { if (_root.Shop.ah._alpha == 0) { this._alpha = 0; } } } instance ag of movieClip 2120 { onClipEvent (enterFrame) { if (_root.Shop.ag._alpha == 0) { this._alpha = 0; } } } instance ai of movieClip 1861 { onClipEvent (load) { select = 'i'; this.pic.gotoAndStop(select); } onClipEvent (press) { _root.Shop.info.text = 'Health+\nRecover 2 health points\nCost:\t ' + Math.round(40 / _root.Shop.discount) + '\nYour HP: ' + _root.player.hp + '/' + _root.player.maxhp; _root.Shop.dash.text = ''; _root.Shop.buy.select = select; _root.Shop.buy.cost = Math.round(40 / _root.Shop.discount); if (_root.gold >= Math.round(40 / _root.Shop.discount) && _root.player.hp < _root.player.maxhp) { _root.Shop.buy._alpha = 100; _root.Shop.buyB.enabled = true; } else { _root.Shop.buy._alpha = 50; _root.Shop.buyB.enabled = false; } } onClipEvent (rollOver) { gotoAndStop(2); } onClipEvent (rollOut) { gotoAndStop(1); } } instance ah of movieClip 1861 { onClipEvent (load) { select = 'h'; cost = 6660; this.pic.gotoAndStop(select); } onClipEvent (press) { _root.Shop.info.text = 'Name: Saishuuheiki\nDamage:\t10\nKnockback:\t5\nCost:\t' + Math.round(cost / _root.Shop.discount) + '\nA purely evil blade'; _root.Shop.dash.text = 'Sinful Iniquity'; _root.Shop.buy.select = select; _root.Shop.buy.cost = Math.round(cost / _root.Shop.discount); if (_root.gold >= Math.round(cost / _root.Shop.discount)) { _root.Shop.buy._alpha = 100; _root.Shop.buyB.enabled = true; } else { _root.Shop.buy._alpha = 50; _root.Shop.buyB.enabled = false; } } onClipEvent (rollOver) { gotoAndStop(2); } onClipEvent (rollOut) { gotoAndStop(1); } } instance ad of movieClip 1861 { onClipEvent (load) { select = 'd'; cost = 1400; this.pic.gotoAndStop(select); if (_root.alreadyBought(select)) { _root.Shop['a' + select]._alpha = 0; _root.Shop['a' + select].enabled = false; } } onClipEvent (press) { _root.Shop.info.text = 'Name: Ryuu\nDamage:\t3\nKnockback:\t4\nCost:\t' + Math.round(cost / _root.Shop.discount) + '\nBattle Axe'; _root.Shop.dash.text = 'Wind Slash'; _root.Shop.buy.select = select; _root.Shop.buy.cost = Math.round(cost / _root.Shop.discount); if (_root.gold >= Math.round(cost / _root.Shop.discount)) { _root.Shop.buy._alpha = 100; _root.Shop.buyB.enabled = true; } else { _root.Shop.buy._alpha = 50; _root.Shop.buyB.enabled = false; } } onClipEvent (rollOver) { gotoAndStop(2); } onClipEvent (rollOut) { gotoAndStop(1); } } instance ag of movieClip 1861 { onClipEvent (load) { select = 'g'; cost = 5550; this.pic.gotoAndStop(select); } onClipEvent (press) { _root.Shop.info.text = 'Name: Masamune\nDamage:\t7\nKnockback:\t1\nCost:\t' + Math.round(cost / _root.Shop.discount) + '\nA sword of shadows'; _root.Shop.dash.text = 'Soul Dragon'; _root.Shop.buy.select = select; _root.Shop.buy.cost = Math.round(cost / _root.Shop.discount); if (_root.gold >= Math.round(cost / _root.Shop.discount)) { _root.Shop.buy._alpha = 100; _root.Shop.buyB.enabled = true; } else { _root.Shop.buy._alpha = 50; _root.Shop.buyB.enabled = false; } } onClipEvent (rollOver) { gotoAndStop(2); } onClipEvent (rollOut) { gotoAndStop(1); } } instance ac of movieClip 1861 { onClipEvent (load) { select = 'c'; cost = 1100; this.pic.gotoAndStop(select); if (_root.alreadyBought(select)) { _root.Shop['a' + select]._alpha = 0; _root.Shop['a' + select].enabled = false; } } onClipEvent (press) { _root.Shop.info.text = 'Name: Gekiken\nDamage:\t2\nKnockback:\t2\nCost:\t' + Math.round(cost / _root.Shop.discount) + '\nA sharp Rapier'; _root.Shop.dash.text = 'Wind Slash'; _root.Shop.buy.select = select; _root.Shop.buy.cost = Math.round(cost / _root.Shop.discount); if (_root.gold >= Math.round(cost / _root.Shop.discount)) { _root.Shop.buy._alpha = 100; _root.Shop.buyB.enabled = true; } else { _root.Shop.buy._alpha = 50; _root.Shop.buyB.enabled = false; } } onClipEvent (rollOver) { gotoAndStop(2); } onClipEvent (rollOut) { gotoAndStop(1); } } instance af of movieClip 1861 { onClipEvent (load) { select = 'f'; cost = 4000; this.pic.gotoAndStop(select); if (_root.alreadyBought(select)) { _root.Shop['a' + select]._alpha = 0; _root.Shop['a' + select].enabled = false; } } onClipEvent (press) { _root.Shop.info.text = 'Name: Ennetsujigoku\nDamage:\t5\nKnockback:\t3\nCost:\t' + Math.round(cost / _root.Shop.discount) + '\nA blade forged in hell'; _root.Shop.dash.text = 'Fire Wave'; _root.Shop.buy.select = select; _root.Shop.buy.cost = Math.round(cost / _root.Shop.discount); if (_root.gold >= Math.round(cost / _root.Shop.discount)) { _root.Shop.buy._alpha = 100; _root.Shop.buyB.enabled = true; } else { _root.Shop.buy._alpha = 50; _root.Shop.buyB.enabled = false; } } onClipEvent (rollOver) { gotoAndStop(2); } onClipEvent (rollOut) { gotoAndStop(1); } } instance ak of movieClip 1861 { onClipEvent (load) { select = 'k'; cost = 500; this.pic.gotoAndStop(select); if (_root.alreadyBought(select)) { _root.Shop['a' + select]._alpha = 0; _root.Shop['a' + select].enabled = false; } } onClipEvent (press) { _root.Shop.info.text = 'Name: Max Energy UP\nIncrease your maximum energy by 5 points.\nCost:\t ' + Math.round(cost / _root.Shop.discount) + '\nYour Energy: ' + _root.arm.maxEn; _root.Shop.dash.text = ''; _root.Shop.buy.select = select; _root.Shop.buy.cost = Math.round(cost / _root.Shop.discount); if (_root.gold >= Math.round(cost / _root.Shop.discount)) { _root.Shop.buy._alpha = 100; _root.Shop.buyB.enabled = true; } else { _root.Shop.buy._alpha = 50; _root.Shop.buyB.enabled = false; } } onClipEvent (rollOver) { gotoAndStop(2); } onClipEvent (rollOut) { gotoAndStop(1); } } instance ae of movieClip 1861 { onClipEvent (load) { select = 'e'; cost = 3000; this.pic.gotoAndStop(select); if (_root.alreadyBought(select)) { _root.Shop['a' + select]._alpha = 0; _root.Shop['a' + select].enabled = false; } } onClipEvent (press) { _root.Shop.info.text = 'Name: Inabikari\nDamage:\t5\nKnockback:\t2\nCost:\t' + Math.round(cost / _root.Shop.discount) + '\nA jagged blade of light'; _root.Shop.dash.text = 'Lightning Ball'; _root.Shop.buy.select = select; _root.Shop.buy.cost = Math.round(cost / _root.Shop.discount); if (_root.gold >= Math.round(cost / _root.Shop.discount)) { _root.Shop.buy._alpha = 100; _root.Shop.buyB.enabled = true; } else { _root.Shop.buy._alpha = 50; _root.Shop.buyB.enabled = false; } } onClipEvent (rollOver) { gotoAndStop(2); } onClipEvent (rollOut) { gotoAndStop(1); } } instance aj of movieClip 1861 { onClipEvent (load) { select = 'j'; cost = 1000; this.pic.gotoAndStop(select); } onClipEvent (press) { _root.Shop.info.text = 'Name: Max HP UP\nIncrease your maximum health by 1 point.\nCost:\t ' + Math.round(cost / _root.Shop.discount) + '\nYour HP: ' + _root.player.hp + '/' + _root.player.maxhp; _root.Shop.dash.text = ''; _root.Shop.buy.select = select; _root.Shop.buy.cost = Math.round(cost / _root.Shop.discount); if (_root.gold >= Math.round(cost / _root.Shop.discount)) { _root.Shop.buy._alpha = 100; _root.Shop.buyB.enabled = true; } else { _root.Shop.buy._alpha = 50; _root.Shop.buyB.enabled = false; } } onClipEvent (rollOver) { gotoAndStop(2); } onClipEvent (rollOut) { gotoAndStop(1); } } } instance Shop of movieClip 2555 { onClipEvent (load) { viewable = false; buyB.enabled = false; buy._alpha = 50; discount = 1; } onClipEvent (enterFrame) { if (viewable == true) { _y = 143.5; if (_alpha < 100) { _alpha = _alpha + 10; } } else { if (_alpha > 0) { _alpha = _alpha - 10; } else { if (_y != -200) { _y = -200; info.text = 'Click on an item to see info on that item.'; dash.text = ''; buyB.enabled = false; buy._alpha = 50; } } } } } movieClip 2559 { } button 2563 { on (release) { _root.chat._y = -130; _root.sound.fadeOut(0, 20); _root.sound.setNextVolume(80); _root.sound.setNextSong('Dojo', true); _root.dojo.viewable = true; _root.trainMenu.viewable = true; } } movieClip 2567 { frame 1 { stop(); } frame 5 { _root.chat.talked = true; if (_root.chat.defeated) { _root.chat.fightB.enabled = false; _root.chat.fightB._alpha = 0; _root.chat.fightT._alpha = 0; } } frame 6 { stop(); if (_root.chat.defeated) { _root.chat.fightB.enabled = false; _root.chat.fightB._alpha = 0; _root.chat.fightT._alpha = 0; } } } instance chat of movieClip 2567 { onClipEvent (load) { _alpha = 100; talked = false; faught = false; defeated = false; } } instance pmenu of movieClip 428 { onClipEvent (load) { this.swapDepths(10000000000003.0); } } instance control of movieClip 187 { onClipEvent (load) { function createEnemy(Etype, xx, yy) { ++_global.es1; ++_global.es2; _root['en' + Etype + '' + 's'].duplicateMovieClip('en' + Etype + '' + 's' + _global.es1, _global.es2); _root['en' + Etype + '' + 's' + _global.es1]._x = xx; _root['en' + Etype + '' + 's' + _global.es1]._y = yy; } function createBox(Btype, xx) { ++_global.eb1; ++_global.eb2; _root['box' + Btype + 's'].duplicateMovieClip('box' + Btype + 's' + _global.eb1, _global.eb2); _root['box' + Btype + 's' + _global.eb1]._x = xx; _root['box' + Btype + 's' + _global.eb1]._y = 220; } function fightStart(type, numberEnemies) { _root.goArrow._visible = false; t = 0; fightType = type; total = numberEnemies; enemyCount = 0; } function resetEnemyCatagories() { normal = 0; strong = 0; weak = 0; } function info() {} function removeAllEnemies() { i = 0; while (i <= _root.control.enemies.length) { _root.control.enemies[i].removeMovieClip(); ++i; } weak = 0; normal = 0; strong = 0; _root.control.enemies.splice(0, _root.control.enemies.length); } function trainingResetFailure() { _root.trainingFailed._y = 131; _root.trainingFailed.play(); if (_root.trainingSelect == 1) { _root.trainMenu.nov._alpha = 100; _root.trainMenu.nov.enabled = true; _root.gold += _root.trainMenu.nov.cost / 2; } else { if (_root.trainingSelect == 2) { _root.trainMenu.inter._alpha = 100; _root.trainMenu.inter.enabled = true; _root.gold += _root.trainMenu.inter.cost / 2; } else { if (_root.trainingSelect == 3) { _root.trainMenu.expert._alpha = 100; _root.trainMenu.expert.enabled = true; _root.en19s.deactivateFight(); } } } _root.trainingSelect = 0; _root.player.training = false; removeAllEnemies(); } function trainingComplete() { _root.saveGame(); if (_root.trainingSelect == 3) { _root.Shop.discount = 3; _root.player.hp = _root.player.maxhp; _root.afterTrain2._y = 113; _root.player.body = 2; } else { _root.afterTrain.updateStats(); _root.afterTrain._y = 113; _root.trainMenu.updateFinalTraining(); } _root.trainingSelect = 0; _root.player.training = false; } function randomSelect() { if (random(50) <= 25) { return 1; } else { return -1; } } function restoreLevelMusic() { _root.sound.setNextVolumeRate(100); _root.sound.setNextVolume(100); _root.sound.setNextSong('forestNight', true); } function levelSoundEffect() { if (soundToggle == 'howl') { _root.playSoundEffect('howl', 100); soundToggle = 'howl2'; soundEffectDelay = 300; } else { _root.playSoundEffect('howl2', 100); soundToggle = 'howl'; soundEffectDelay = 300; } } t = 0; lock = false; weak = 0; normal = 0; strong = 0; enemyCount = 0; boxCount = 0; soundToggle = 'howl'; soundEffectDelay = 0; var enemies = new Array(); var slashes = new Array(); total = 0; killed = 0; } onClipEvent (press) { } onClipEvent (enterFrame) { if (soundEffectDelay > 0) { --soundEffectDelay; } else { if (_root.dojo.viewable == false) { levelSoundEffect(); } } if (_root.player.training && !_root.pawsd) { switch (_root.trainingSelect) { case 1: if (t % 40 == 0 && total < 50 && enemies.length < 5) { if (random(40) > 20) { createEnemy(17, Stage.width / 2 + randomSelect() * 350, 194.2); } else { createEnemy(18, Stage.width / 2 + randomSelect() * 350, 194.2); } ++total; } if (killed >= 50) { trainingComplete(); } break; case 2: if (t % 40 == 0 && total < 40 && enemies.length < 6) { if (random(40) > 14) { createEnemy(17, Stage.width / 2 + randomSelect() * 350, 194.2); } else { createEnemy(18, Stage.width / 2 + randomSelect() * 350, 194.2); } ++total; } if (killed >= 40) { trainingComplete(); } break; case 3: if (total < 1) { _root.en19s.engage(); ++total; } if (killed >= 1) { trainingComplete(); } } } else { with (_root.player) { if (jump && _root.trainingDone) { _root.arm._y += rate2; _y += rate2; if (rate2 < rate2limit) { ++rate2; } else { jump = false; jumpLock = false; } } } } } } instance staten19s of movieClip 513 { onClipEvent (load) { _visible = false; activated = false; } onClipEvent (enterFrame) { if (_root.en19s.hp > 0 && activated) { _visible = true; this.hbar._xscale = (_root.en19s.hp / _root.en19s.maxhp) * 100; this.ebar._xscale = (_root.en19s.energy / _root.en19s.maxEn) * 100; _y = _root.en19s._y - 100; _x = _root.en19s._x; } else { _visible = false; } } } movieClip 2569 { } movieClip 2571 { } movieClip 2573 { } movieClip 2575 { } movieClip 2576 { } movieClip 2577 { } movieClip 2579 { frame 5 { _parent.hurt = false; } } movieClip 2596 { frame 5 { _parent.energy -= 30; } instance of movieClip 789 { onClipEvent (load) { if (this.hitTest(_root.player.hit)) { if (_root.arm.guarding && _parent._parent._xscale == -_root.player._xscale) { cancel = true; _root.arm.sword.sword.spark.gotoAndPlay(1); _root.arm.energy -= 25; _root.player.knockBack(3); } else { _root.player.hurt(3); } } } } frame 12 { _parent.energy -= 30; } instance of movieClip 789 { onClipEvent (load) { if (this.hitTest(_root.player.hit)) { if (_root.arm.guarding && _parent._parent._xscale == -_root.player._xscale) { cancel = true; _root.arm.sword.sword.spark.gotoAndPlay(1); _root.arm.energy -= 25; _root.player.knockBack(3); } else { _root.player.hurt(3); } } } } frame 15 { if (_parent.updateDirrection() && _parent.energy >= 60) { gotoAndPlay('secondSlash'); } else { play(); } } frame 28 { _parent.attack = false; if (_parent.updateDirrection()) { gotoAndPlay(1); } } frame 32 { _parent.energy -= 30; } instance of movieClip 789 { onClipEvent (load) { if (this.hitTest(_root.player.hit)) { if (_root.arm.guarding && _parent._parent._xscale == -_root.player._xscale) { cancel = true; _root.arm.sword.sword.spark.gotoAndPlay(1); _root.arm.energy -= 25; _root.player.knockBack(3); } else { _root.player.hurt(3); } } } } frame 39 { _parent.energy -= 30; } instance of movieClip 789 { onClipEvent (load) { if (this.hitTest(_root.player.hit)) { if (_root.arm.guarding && _parent._parent._xscale == -_root.player._xscale) { cancel = true; _root.arm.sword.sword.spark.gotoAndPlay(1); _root.arm.energy -= 25; _root.player.knockBack(30); _root.createSwordSpark(10, _root.player._x + 30 * _root.player._xscale / 100, _root.player._y - 17); } else { _root.player.hurt(3); } } } } frame 49 { if (_parent.updateDirrection()) { gotoAndPlay(1); } } frame 50 { _parent.attack = false; } } movieClip 2597 { frame 1 { _parent.hurt = false; } instance head of movieClip 2573 { onClipEvent (enterFrame) { _root.dist = _x; } } frame 14 { stop(); _parent.deactivateFight(); } } movieClip 2598 { } movieClip 2602 { frame 30 { _parent.activateFight(); stop(); } } movieClip 2603 { frame 5 { _parent.dashStart(); stop(); } } movieClip 2604 { frame 1 { stop(); } instance FD of movieClip 762 { onClipEvent (enterFrame) { if (_alpha >= 0) { play(); } else { stop(); } } } instance LD of movieClip 766 { onClipEvent (enterFrame) { if (_alpha >= 0) { _alpha = _alpha - 10; play(); } else { stop(); } } } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } frame 6 { stop(); } frame 7 { stop(); } frame 8 { stop(); } } instance en19s of movieClip 2604 { onClipEvent (load) { function updateDirrection() { if (Math.abs(_root.player._x - _x) <= 90 && energy > 0) { if (_root.player._x > this._x) { _xscale = 100; } else { if (!hurt && !attack) { _xscale = -100; } } attack = true; return true; } else { return false; } } function isBoss() { return true; } function isBusy() { return true; } function pauseSelf() { if (blocking) { action = 'block'; _root.en19s.block.stop(); } else { attack = false; gotoAndStop('stand'); } } function unPause() { if (action == 'block') { _root.bossFight.block.play(); attack = false; } else { blocking = false; attack = false; hurt = false; } if (waveIndex != null) { _root.gcontrol.miscItems[waveIndex].play(); } } function engage() { if (_root.player._x > 300) { _x = 50; _xscale = 100; } else { _x = 550; _xscale = -100; } engaging = true; } function activateFight() { active = true; engaging = false; _root.staten19s.activated = true; } function deactivateFight() { active = false; gotoAndStop('stand'); blocking = false; attack = false; hurt = false; hp = maxhp; energy = maxEn; _x = 700; _y = 194.2; _xscale = -100; redAmount = 0; notAdded = true; var v1 = {'ra': 100, 'rb': redAmount, 'ga': 100, 'gb': 0, 'ba': 100, 'bb': 0, 'aa': 100, 'ab': 0}; my_color.setTransform(v1); } function dashStart() { energy -= 40; dashSpeed = (_root.player._x - _x) / 10; if (_root.player._x > this._x) { _xscale = 100; } else { if (!hurt && !attack) { _xscale = -100; } } } maxhp = 300; hp = maxhp; maxEn = 300; energy = maxEn; dtype = 1; var knockBack = false; var hurt = false; var flyup = true; var dead = false; blocking = false; action = ''; bottom = 194.2; dirr = 1; KBcounter = 0; var forceUp = 0; extraDamage = 0; slashCounter = 0; deathLock = false; body = 1; head = 1; wep = 1; redAmount = 0; var my_color = new Color(this); notAdded = true; active = false; engaging = false; var dash = false; dashSpeed = 0; } onClipEvent (enterFrame) { if (engaging) { gotoAndStop('engage'); } if (active) { if (notAdded) { _root.control.enemies.push(this); notAdded = false; } if (!_root.pawsd && !_root.player.dead) { if (!_root.scrollLock) { if (_root.player.scrollStartR) { _x = _x - _root.player.speed; } else { if (_root.player.scrollStartL) { _x = _x + _root.player.speed; } } } if (!dead) { if (dash && Math.abs(dashSpeed) > 0) { _x = _x + dashSpeed; if (_alpha > 0) { _alpha = _alpha - 25; } else { _x = _root.player._x + (dashSpeed / Math.abs(dashSpeed)) * 40; _alpha = 100; if (_root.player._x > this._x) { _xscale = 100; } else { if (!hurt && !attack) { _xscale = -100; } } dash = false; dashSpeed = 0; attack = true; gotoAndStop('attack'); } } if (!blocking && !dash) { if (energy < 60 || Math.abs(_root.player._x - _x) <= 40) { blocking = true; attack = false; } else { if (Math.abs(_root.player._x - _x) <= 85 && !hurt && energy > 60) { if (_root.player._x > this._x && !hurt && !attack) { _xscale = 100; } else { if (!hurt && !attack) { _xscale = -100; } } attack = true; gotoAndStop('attack'); } else { if (Math.abs(_root.player._x - _x) > 150) { attack = false; dash = true; gotoAndPlay('dash'); } } } } if (Math.abs(_root.player._x - _x) >= 40 && energy > 60) { blocking = false; } if (!hurt && !attack && !dash) { if (energy < maxEn) { energy += 15; } if (_root.player._x > this._x) { dirr = 1; _xscale = 100; if (_y >= bottom - 20) { if (!blocking) { _x = _x + 4; gotoAndStop('move'); } else { _x = _x - 3; gotoAndStop('block'); } } } else { if (!hurt && !attack) { dirr = -1; _xscale = -100; if (_y >= bottom - 20) { if (!blocking) { _x = _x - 4; gotoAndStop('move'); } else { _x = _x + 3; gotoAndStop('block'); } } } } } if (this.hit.hitTest(_root.arm.sword.s) && !blocking) { dtype = 1; hurt = true; ++_global.es1; ++_global.es2; _root.dCounter.duplicateMovieClip('dCounter' + _global.es1, _global.es2); _root['dCounter' + _global.es1]._x = this._x; _root['dCounter' + _global.es1]._y = this._y; if (_root.player.dash) { gotoAndStop('hurt'); attack = false; extraDamage = 2; } _root['dCounter' + _global.es1].damageCounter = _root.arm.power + _root.arm.damage + extraDamage; hp -= _root.arm.power + _root.arm.damage + extraDamage; knockBack = true; force = dirr * (_root.arm.knockBack + extraDamage); if (_root.arm.up) { flyup = true; forceUp = -1 * (_root.arm.knockBack + _root.arm.power / 2 + extraDamage); } } } if (hp <= 0 && !dead) { _root.score += 5000; ++_global.kills; knockBack = false; dead = true; } if (hurt) { redAmount = 255; if (!dead && _root.arm.damagetype == 'lightning' && this.LD._alpha <= 0) { this.LD._alpha = 100; } else { if (!dead && _root.arm.damagetype == 'fire' && this.FD._alpha <= 0) { this.FD._alpha = 100; } } ++_global.es1; ++_global.es2; _root.blood.duplicateMovieClip('blood' + _global.es1, _global.es2); _root['blood' + _global.es1]._x = this._x; _root['blood' + _global.es1]._y = this._y; _root['blood' + _global.es1]._rotation = _root.arm._rotation + random(20); if (this._currentframe != 3) { hurt = false; } else { jumping = false; } } if (knockBack) { if (KBcounter <= _root.arm.knockBack + extraDamage) { _x = _x - force; force *= 0.6; ++KBcounter; } else { knockBack = false; KBcounter = 0; extraDamage = 0; } } if (dead && !deathLock) { this.gotoAndStop('die1'); _root.control.enemies.pop(); ++_root.control.killed; --_root.dojo.kills; deathLock = true; } } else { if (_root.player.dead) { } else { if (!dead) { if (!_root.player.dead) { pauseSelf(); } else { gotoAndStop('stand'); } } } } if (flyup && !_root.pawsd || flyup && dead) { _y = _y + forceUp; if (_y < bottom) { if (forceUp < 30) { ++forceUp; } } else { flyup = false; _y = bottom; } } if (redAmount > 0) { var myColorTransform = {'ra': 100, 'rb': redAmount, 'ga': 100, 'gb': 0, 'ba': 100, 'bb': 0, 'aa': 100, 'ab': 0}; my_color.setTransform(myColorTransform); redAmount -= 15; } } } } movieClip 2609 { } movieClip 2611 { instance dojoBlur of movieClip 1885 { onClipEvent (load) { _visible = false; } } } instance dojo of movieClip 2611 { onClipEvent (load) { viewable = false; this.kills = 0; } onClipEvent (enterFrame) { if (viewable == true) { _y = 125; if (_alpha < 100) { _alpha = _alpha + 10; } else {} } else { if (_alpha > 0) { _alpha = _alpha - 10; } else { if (_y != -200) { _y = -200; _root.shopB.enabled = true; _root.shopB._visible = true; _root.menuB.enabled = true; _root.contB.enabled = true; _root.menuB._visible = true; _root.contB._visible = true; } } } } } movieClip 2613 { frame 1 { stop(); } } movieClip 2616 { } movieClip 2617 { } instance of movieClip 2617 { onClipEvent (load) { } onClipEvent (enterFrame) { if (_xscale < 0 && _root.player._x > _x + 40) { _xscale = _xscale * -1; _x = 347.4; } else { if (_xscale > 0 && _root.player._x < _x - 40) { _xscale = _xscale * -1; _x = 336.9; } } } } movieClip 2623 { } movieClip 2625 { } instance of movieClip 2194 { onClipEvent (load) { ground.duplicateMovieClip('ground2', 100); ground.duplicateMovieClip('ground3', 101); ground2._x = ground._x + ground._width; ground3._x = ground._x - ground._width; groundStartx = this._x; } onClipEvent (enterFrame) { if (!_root.pawsd && !_root.scrollLock && _global.scrolling >= 2) { groundSpeed = _root.player.speed / 8; if (_root.player.scrollStartR == true) { this._x -= groundSpeed; if (this._x <= groundStartx - ground._width) { this._x = groundStartx - groundSpeed; } } if (_root.player.scrollStartL == true) { this._x += groundSpeed; if (this._x > groundStartx + ground._width) { this._x = groundStartx + groundSpeed; } } } } } frame 19 { _root.saveGame(); stop(); _root.fadeScreen.changeRate(10); _root.fadeScreen.fadeOut(); stop(); _root.goArrow._visible = false; bossOn = 'null'; scrollLock = true; _root.chatZoom.gotoAndStop(1); _root.sound.setNextVolume(100); _root.sound.setNextVolumeRate(50); _root.sound.setNextSong('danger', true); _root.contB._visible = false; _root.contB.enabled = false; _root.player.reset(); _root.guiOff(); pawsd = true; battle = true; counter = 0; _root.onEnterFrame = function () { if (Key.isDown(80) && _root._currentframe == 19) { if (!pawsd) { pawsd = true; _root.pmenu._y = 134; } } }; } button 2627 { on (release) { _root.control.removeAllEnemies(); _root.fadeScree.changeRate(5); _root.fadeScreen.fadeIn(true); } } button 2652 { on (release) { _root.reaperWalk.summon.play(); _root.chat._y = -131; } } movieClip 2655 { frame 1 { stop(); } } instance chat of movieClip 2655 { onClipEvent (load) { _alpha = 100; } } instance control of movieClip 187 { onClipEvent (load) { function createEnemy(Etype, xx, yy) { ++_global.es1; ++_global.es2; _root['en' + Etype + '' + 's'].duplicateMovieClip('en' + Etype + '' + 's' + _global.es1, _global.es2); _root['en' + Etype + '' + 's' + _global.es1]._x = xx; _root['en' + Etype + '' + 's' + _global.es1]._y = yy; } function createBox(Btype, xx) { ++_global.eb1; ++_global.eb2; _root['box' + Btype + 's'].duplicateMovieClip('box' + Btype + 's' + _global.eb1, _global.eb2); _root['box' + Btype + 's' + _global.eb1]._x = xx; _root['box' + Btype + 's' + _global.eb1]._y = 220; } function createPowerUpBox(Btype, xx) { ++_global.eb1; ++_global.eb2; _root['box' + Btype + 's'].duplicateMovieClip('box' + Btype + 's' + _global.eb1, _global.eb2); _root['box' + Btype + 's' + _global.eb1]._x = xx; _root['box' + Btype + 's' + _global.eb1]._y = 220; } function fightStart(type, numberEnemies) { if (type == 'boss') { _root.guiOn(); _root.pawsd = false; _root.sound.fadeOut(0, 50); _root.sound.setNextVolume(100); _root.sound.setNextVolumeRate(10); _root.sound.setNextSong('darkFight', true); } } function resetEnemyCatagories() { normal = 0; strong = 0; weak = 0; } function info() {} function removeAllEnemies() { i = 0; while (i <= _root.control.enemies.length) { _root.control.enemies[i].removeMovieClip(); ++i; } weak = 0; normal = 0; strong = 0; _root.control.enemies.splice(0, _root.control.enemies.length); } function restoreLevelMusic() { _root.sound.setNextVolumeRate(20); _root.sound.setNextVolume(100); _root.sound.setNextSong('darkFight', true); } t = 0; lock = false; weak = 0; normal = 0; strong = 0; enemyCount = 0; boxCount = 0; var enemies = new Array(); var slashes = new Array(); } onClipEvent (press) { } onClipEvent (enterFrame) { if (!_root.player.dead && !_root.bossFight.dead) { } else { with (_root.player) { if (jump && _root.player.dead) { _y += rate2; if (rate2 < rate2limit) { ++rate2; } else { jump = false; jumpLock = false; } } else { if (_root.bossOn == 'dead' && _root.pawsd) { _root.player.gotoAndStop('stand'); _root.player.resetDash(); _root.arm._y = _root.player._y; _root.arm._x = _root.player._x; _root.arm._rotation = 90 * (_root.arm._xscale / 100); _root.arm.attack = false; _root.arm.attackLock = false; } } } } } } instance of movieClip 2321 { onClipEvent (enterFrame) { if (_root.player.hit.hitTest(this)) { _root.player._x = _x - _width / 2 - 15; } if (_root.undeadBoss.hit.hitTest(this)) { _root.undeadBoss._x = _x - width / 2 - 15; } } } movieClip 2657 { } instance reaperWalk of movieClip 2084 { onClipEvent (load) { moveCounter = 50; body = 2; head = 2; wep = 2; returnBack = false; fightStarted = false; } onClipEvent (enterFrame) { if (moveCounter == 0) { if (!returnBack) { if (_x > 535) { _x = _x - 2; gotoAndStop('move'); } else { if (_x > 515) { _x = _x - 2; _y = _y + 1.4; gotoAndStop('move'); } else { if (_x > 471) { _x = _x - 2; gotoAndStop('move'); } else { gotoAndStop('summon'); } } } } else { _xscale = -100; gotoAndStop('move'); if (_x < 525) { _x = _x + 3; } else { if (_x < 540) { _x = _x + 2; _y = _y - 1.4; } else { if (_x < 750) { if (_x > 590 && !fightStarted) { _root.undeadBoss.activateFight(); fightStarted = true; } _x = _x + 2; } else {} } } } } else { --moveCounter; } } } movieClip 2658 { } movieClip 2659 { } movieClip 2660 { frame 8 { _parent.hurt = false; } } movieClip 2661 { frame 7 { _parent.energy -= 15; } instance of movieClip 789 { onClipEvent (load) { if (this.hitTest(_root.player.guard)) { cancel = true; _root.arm.sword.sword.spark.gotoAndPlay(1); _root.arm.energy -= 10; } else { if (this.hitTest(_root.player.hit) && !cancel) { _root.player.hurt(2); } } } } instance of movieClip 783 { onClipEvent (load) { if (this.hitTest(_root.player.guard)) { cancel = true; _root.arm.sword.sword.spark.gotoAndPlay(1); _root.arm.energy -= 50; } else { if (this.hitTest(_root.player.hit) && !cancel) { _root.player.hurt(4); } } } } instance of movieClip 789 { onClipEvent (load) { if (this.hitTest(_root.player.guard)) { cancel = true; _root.arm.sword.sword.spark.gotoAndPlay(1); _root.arm.energy -= 10; } else { if (this.hitTest(_root.player.hit) && !cancel) { _root.player.hurt(2); } } } } frame 12 { if (_parent.updateDirrection() && _parent.energy >= 25) { gotoAndPlay('uppercut'); } else { play(); } } frame 17 { _parent.attack = false; } frame 29 { _parent.energy -= 25; } instance of movieClip 783 { onClipEvent (load) { if (this.hitTest(_root.player.guard)) { cancel = true; _root.arm.sword.sword.spark.gotoAndPlay(1); _root.arm.energy -= 50; } else { if (this.hitTest(_root.player.hit) && !cancel) { _root.player.hurt(4); } } } } instance of movieClip 789 { onClipEvent (load) { if (this.hitTest(_root.player.guard)) { cancel = true; _root.arm.sword.sword.spark.gotoAndPlay(1); _root.arm.energy -= 10; } else { if (this.hitTest(_root.player.hit) && !cancel) { _root.player.hurt(2); } } } } frame 33 { if (_parent.updateDirrection() && _parent.energy >= 10) { gotoAndPlay('overcut'); } else { play(); } } frame 43 { _parent.attack = false; } frame 50 { _parent.energy -= 15; } instance of movieClip 783 { onClipEvent (load) { if (_root.arm.guarding && _parent._parent._xscale == -_root.player._xscale) { cancel = true; _root.arm.sword.sword.spark.gotoAndPlay(1); _root.arm.energy -= 80; _root.player.knockBack(30); } else { if (this.hitTest(_root.player.hit) && !cancel) { _root.player.hurt(4); } } } } frame 64 { _parent.attack = false; } } movieClip 2665 { frame 16 { _parent.energy -= 70; ++_global.es1; ++_global.es2; _root.bossWaveGreen.duplicateMovieClip('bossWaveGreen' + _global.es1, _global.es2); _root['bossWaveGreen' + _global.es1]._x = _parent._x + 95 * (100 / _parent._xscale); _root['bossWaveGreen' + _global.es1]._y = 231.5; _root['bossWaveGreen' + _global.es1]._xscale = _parent._xscale; } frame 32 { _parent.attack = false; _parent.jumping = false; } } movieClip 2666 { } movieClip 2674 { frame 71 { stop(); } } movieClip 2705 { frame 55 { _parent.play(); stop(); } instance of movieClip 783 { onClipEvent (enterFrame) { if (this.hitTest(_root.arm.sword.s)) { _root.createSpark(15, _root.demonBoss._x + _root.demonBoss.death._x + (_parent._x + 12) * (_root.demonBoss._xscale / 100), _root.demonBoss._y + _root.demonBoss.death._y + _parent._y); _parent.play(); _root.demonBoss.death.play(); } } } frame 95 { _root.createSpark(40, _root.undeadBoss._x + _root.undeadBoss.death._x + (_x + 12) * (_root.undeadBoss._xscale / 100), _root.undeadBoss._y + _root.undeadBoss.death._y + _y); } frame 96 { _root.goldDrop(40, _root.undeadBoss._x + _root.undeadBoss.death._x + (_x + 12) * (_root.undeadBoss._xscale / 100), _root.undeadBoss._y + _root.undeadBoss.death._y + _y, true); _root.potionDrop(3, _root.undeadBoss._x + _root.undeadBoss.death._x + (_x + 12) * (_root.undeadBoss._xscale / 100), _root.undeadBoss._y + _root.undeadBoss.death._y + _y); } frame 98 { _root.goldDrop(40, _root.undeadBoss._x + _root.undeadBoss.death._x + (_x + 12) * (_root.undeadBoss._xscale / 100), _root.undeadBoss._y + _root.undeadBoss.death._y + _y, true); } frame 100 { _root.goldDrop(40, _root.undeadBoss._x + _root.undeadBoss.death._x + (_x + 12) * (_root.undeadBoss._xscale / 100), _root.undeadBoss._y + _root.undeadBoss.death._y + _y, true); } frame 155 { _root.control.removeAllEnemies(); stop(); } } movieClip 2707 { frame 1 { _parent.hurt = false; } instance of movieClip 2674 { onClipEvent (load) { _xscale = _root.undeadBoss._xscale; } } frame 224 { stop(); } frame 255 { _root.contB._visible = true; _root.contB.enabled = true; } frame 276 { stop(); } frame 278 { stop(); } } movieClip 2708 { frame 3 { _parent.dashStart(); stop(); } } movieClip 2709 { frame 1 { stop(); } instance FD of movieClip 762 { onClipEvent (enterFrame) { if (_alpha >= 0) { play(); } else { stop(); } } } instance LD of movieClip 766 { onClipEvent (enterFrame) { if (_alpha >= 0) { _alpha = _alpha - 10; play(); } else { stop(); } } } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } frame 6 { stop(); } frame 7 { stop(); } frame 8 { stop(); } } instance undeadBoss of movieClip 2709 { onClipEvent (load) { function updateDirrection() { if (Math.abs(_root.player._x - _x) <= 85 && !hurt && energy > 0) { if (_root.player._x > this._x) { _xscale = 100; } else { if (!hurt && !attack) { _xscale = -100; } } attack = true; return true; } else { return false; } } function isBoss() { return true; } function isBusy() { return true; } function pauseSelf() { waveIndex = null; i = 0; while (i <= _root.gcontrol.miscItems.length) { if (waveIndex == null && _root.gcontrol.miscItems[i]._name.substring(0, 4) == 'boss') { _root.gcontrol.miscItems[i].stop(); waveIndex = i; break; } ++i; } this.removeMovieClip(); if (jumping) { action = 'jump'; _root.undeadBoss.jump.stop(); } else { if (blocking) { action = 'block'; _root.undeadBoss.block.stop(); } else { attack = false; gotoAndStop('stand'); } } } function unPause() { if (action == 'jump') { _root.undeadBoss.jump.play(); } else { if (action == 'block') { _root.undeadBoss.block.play(); attack = false; } else { blocking = false; attack = false; hurt = false; } } if (waveIndex != null) { _root.gcontrol.miscItems[waveIndex].play(); } } function prepareFight() { _xscale = -100; _root.undeadStat.activated = true; _x = 291; } function activateFight() { active = true; _root.control.fightStart('boss', 1); } function playerHostile() { if (_root.arm.turnLock && !_root.arm.guarding && Math.abs(_root.player._x - _x) <= 110) { if (_root.player._x > _x && _root.player._xscale == -100) { return true; return false; } if (_root.player._x < _x && _root.player._xscale == 100) { return true; } } return false; } function playerDash() { if (_root.arm.turnLock && _root.player.dash && Math.abs(_root.player._x - _x) > 110) { if (_root.player._x > _x && _root.player._xscale == -100) { return true; return false; } if (_root.player._x < _x && _root.player._xscale == 100) { return true; } } return false; } function dashStart() { energy -= 40; dashSpeed = 20 * (_xscale / 100); if (_root.player._x > this._x) { _xscale = 100; } else { if (!hurt && !attack) { _xscale = -100; } } } maxhp = 500; hp = maxhp; maxEn = 300; energy = maxEn; dtype = 1; var knockBack = false; var hurt = false; var flyup = true; var dead = false; blocking = false; var waveIndex; jumping = false; action = ''; bottom = 194.2; dirr = 1; KBcounter = 0; var forceUp = 0; extraDamage = 0; slashCounter = 0; deathLock = false; body = 1; head = 1; wep = 1; redAmount = 0; var my_color = new Color(this); notAdded = true; active = false; blockCounter = 0; var dash = false; dashEscape = false; dashSpeed = 0; } onClipEvent (enterFrame) { if (active) { if (notAdded) { _root.control.enemies.push(this); notAdded = false; } if (!_root.pawsd && !_root.player.dead) { if (!_root.scrollLock) { if (_root.player.scrollStartR) { _x = _x - _root.player.speed; } else { if (_root.player.scrollStartL) { _x = _x + _root.player.speed; } } } if (!dead) { if (dash && Math.abs(dashSpeed) > 0) { _x = _x + dashSpeed; if (_alpha > 0) { _alpha = _alpha - 50; } else { if (!dashEscape) { _x = _root.player._x + (dashSpeed / Math.abs(dashSpeed)) * 40; } else { if (dashSpeed > 0) { _x = 500; } else { _x = 30; } } _alpha = 100; if (_root.player._x > this._x) { _xscale = 100; } else { if (!hurt && !attack) { _xscale = -100; } } if (!dashEscape) { gotoAndStop('attack'); attack = true; } else { attack = true; jumping = true; gotoAndStop('jump'); slashCounter = 60; } dash = false; dashSpeed = 0; dashEscape = false; } } if (!blocking && !dash) { if (playerDash() && random(6) == 1 && !jumping) { dash = true; dashEscape = true; blocking = false; attack = false; gotoAndStop('dash'); blockCounter = 0; } else { if (energy < 25 || Math.abs(_root.player._x - _x) <= 25 || playerHostile()) { blocking = true; attack = false; } else { if (Math.abs(_root.player._x - _x) <= 85 && !hurt && energy > 25) { if (_root.player._x > this._x && !hurt && !attack) { _xscale = 100; } else { if (!hurt && !attack) { _xscale = -100; } } attack = true; gotoAndStop('attack'); } else { if (Math.abs(_root.player._x - _x) > 225 && !hurt && !attack && energy >= 70 && random(100) > 92 && slashCounter == 0) { attack = true; jumping = true; gotoAndStop('jump'); slashCounter = 30; } } } } } else { ++blockCounter; if (blockCounter > 30) { dash = true; blocking = false; attack = false; gotoAndStop('dash'); blockCounter = 0; } } if (Math.abs(_root.player._x - _x) > 115 && energy > 60) { blocking = false; blockCounter = 0; } if (slashCounter > 0) { --slashCounter; } if (!hurt && !attack && !dash) { if (energy < maxEn) { energy += 25; } if (_root.player._x > this._x) { dirr = 1; _xscale = 100; if (_y >= bottom - 20) { if (!blocking) { _x = _x + 3; gotoAndStop('move'); } else { _x = _x - 3; gotoAndStop('block'); } } } else { if (!hurt && !attack) { dirr = -1; _xscale = -100; if (_y >= bottom - 20) { if (!blocking) { _x = _x - 3; gotoAndStop('move'); } else { _x = _x + 3; gotoAndStop('block'); } } } } } if (this.hit.hitTest(_root.arm.sword.s) && !blocking) { dtype = 1; hurt = true; ++_global.es1; ++_global.es2; _root.dCounter.duplicateMovieClip('dCounter' + _global.es1, _global.es2); _root['dCounter' + _global.es1]._x = this._x; _root['dCounter' + _global.es1]._y = this._y; if (_root.player.dash) { gotoAndStop('hurt'); attack = false; extraDamage = 2; } _root['dCounter' + _global.es1].damageCounter = _root.arm.power + _root.arm.damage + extraDamage; hp -= _root.arm.power + _root.arm.damage + extraDamage; knockBack = true; force = dirr * (_root.arm.knockBack + extraDamage); if (_root.arm.up) { flyup = true; forceUp = -1 * (_root.arm.knockBack + _root.arm.power / 2 + extraDamage); } } } if (hp <= 0 && !dead) { _root.score += 2500; ++_global.kills; knockBack = false; dead = true; } if (hurt) { redAmount = 255; if (!dead && _root.arm.damagetype == 'lightning' && this.LD._alpha <= 0) { this.LD._alpha = 100; } else { if (!dead && _root.arm.damagetype == 'fire' && this.FD._alpha <= 0) { this.FD._alpha = 100; } } ++_global.es1; ++_global.es2; _root.blood.duplicateMovieClip('blood' + _global.es1, _global.es2); _root['blood' + _global.es1]._x = this._x; _root['blood' + _global.es1]._y = this._y; _root['blood' + _global.es1]._rotation = _root.arm._rotation + random(20); if (this._currentframe != 3) { hurt = false; } else { jumping = false; } } if (knockBack) { if (KBcounter <= _root.arm.knockBack + extraDamage) { _x = _x - force; force *= 0.6; ++KBcounter; } else { knockBack = false; KBcounter = 0; extraDamage = 0; } } if (dead && !deathLock) { this.gotoAndStop('die1'); _root.sound.fadeOut(0, 10); deathLock = true; } } else { if (_root.player.dead) { gotoAndStop('stand'); blocking = false; attack = false; hurt = false; if (_root.death._currentframe == 11) { hp = maxhp; energy = maxEn; _x = 463.6; _y = 194.2; _xscale = -100; redAmount = 0; notAdded = true; var myColorTransform = {'ra': 100, 'rb': redAmount, 'ga': 100, 'gb': 0, 'ba': 100, 'bb': 0, 'aa': 100, 'ab': 0}; my_color.setTransform(myColorTransform); } } else { if (!dead) { if (!_root.player.dead) { pauseSelf(); } else { gotoAndStop('stand'); } } } } if (flyup && !_root.pawsd || flyup && dead) { _y = _y + forceUp; if (_y < bottom) { if (forceUp < 30) { ++forceUp; } } else { flyup = false; _y = bottom; } } if (redAmount > 0) { var myColorTransform = {'ra': 100, 'rb': redAmount, 'ga': 100, 'gb': 0, 'ba': 100, 'bb': 0, 'aa': 100, 'ab': 0}; my_color.setTransform(myColorTransform); redAmount -= 15; } } } } instance undeadStat of movieClip 513 { onClipEvent (load) { _visible = false; activated = false; } onClipEvent (enterFrame) { if (_root.undeadBoss.hp > 0 && activated) { _visible = true; this.hbar._xscale = (_root.undeadBoss.hp / _root.undeadBoss.maxhp) * 100; this.ebar._xscale = (_root.undeadBoss.energy / _root.undeadBoss.maxEn) * 100; _y = _root.undeadBoss._y - 60; _x = _root.undeadBoss._x; } else { _visible = false; } } } movieClip 2715 { } movieClip 2718 { } movieClip 2726 { } movieClip 2739 { frame 4 { if (this.explode) { gotoAndPlay('explode1'); } else { gotoAndPlay(1); } } instance of movieClip 1680 { onClipEvent (load) { if (this.hitTest(_root.player.hit)) { _root.player.hurt(5); _root.arm.energy = 0; _root.player.flyStart(26); } } } frame 35 { this.removeMovieClip(); } } instance bossWaveGreen of movieClip 2739 { onClipEvent (load) { if (this._name != 'bossWaveGreen') { speed = 15; explode = false; } } onClipEvent (enterFrame) { if (this._name != 'bossWaveGreen') { if (!explode) { _x = _x + speed * (_xscale / 100); if (Math.abs(_x - _root.player._x) < 20) { explode = true; gotoAndPlay('explode1'); } if (_x < -20 || _x > 650) { this.removeMovieClip(); } } } } } movieClip 2742 { } instance saveObj of movieClip 1805 { onClipEvent (load) { function levelHasCheckpoint() { return false; } function levelStartSave() { distance = _root.distance; score = _root.score; gold = _root.gold; startpoint = _root.player._x; starthp = _root.player.hp; } function loadStart() { _root.distance = distance; _root.score = score; _root.gold = gold; _root.player._x = startpoint; _root.player.hp = starthp; _root.player.reset(); } function info() {} distance = 0; score = 0; gold = 0; startpoint = 0; starthp = _root.player.hp; levelStartSave(); } onClipEvent (enterFrame) { } } frame 20 { _root.pawsd = true; _root.introChp5.gotoAndPlay(1); stop(); } movieClip 2748 { } button 2749 { on (release) { con.enabled = false; _root.blackout.gotoAndStop(1); _root.fadeScreen.fadeOut(false); _root.introChp4.gotoAndStop(45); _root.gotoAndStop(3); } } button 2750 { on (release) { _root.sound.fadeOut(0, 20); men.enabled = false; play(); } } movieClip 2752 { frame 1 { _root.sound.setNextVolume(100); _root.sound.setNextVolumeRate(50); _root.sound.setNextSong('darkIntro', true); _root.sound.breakLoop(); } frame 35 { stop(); } frame 44 { stop(); _root.play(); } } instance introChp5 of movieClip 2752 { onClipEvent (load) { this.swapDepths(10000000000.0); } onClipEvent (enterFrame) { } } frame 21 { stop(); _root.fadeScreen.changeRate(10); _root.fadeScreen.fadeOut(); _root.templeBG.activated = true; stop(); _root.goArrow._visible = false; bossOn = 'null'; scrollLock = true; _root.chatZoom.gotoAndStop(1); _root.sound.fadeOut(0, 50); _root.player.reset(); _root.player._y = 365.6; _root.arm._y = 365.6; _root.guiOff(); _root.reaper._y = 354.2; pawsd = true; battle = true; counter = 0; _root.onEnterFrame = function () { if (Key.isDown(80) && _root._currentframe == 21) { if (!pawsd) { pawsd = true; _root.pmenu._y = 134; } } }; } button 2753 { on (release) { _root.reaper.death.play(); _root.chat._y = -131; } } movieClip 2756 { frame 1 { stop(); } } instance chat of movieClip 2756 { onClipEvent (load) { _alpha = 100; } onClipEvent (enterFrame) { if (_y == 21 && _root.control.enemies.length > 1) { _root.control.killSummons(); } } } instance pmenu of movieClip 428 { onClipEvent (load) { this.swapDepths(10000000000003.0); } } movieClip 2758 { } movieClip 2760 { } movieClip 2762 { } movieClip 2764 { } movieClip 2766 { } movieClip 2767 { frame 331 { stop(); _root.control.endGame(); } } instance credits of movieClip 2767 { onClipEvent (load) { function activateCredits() { _visible = true; play(); } stop(); _visible = false; } } instance control of movieClip 187 { onClipEvent (load) { function createEnemy(Etype, xx, yy) { ++_global.es1; ++_global.es2; _root['en' + Etype + '' + 's'].duplicateMovieClip('en' + Etype + '' + 's' + _global.es1, _global.es2); _root['en' + Etype + '' + 's' + _global.es1]._x = xx; _root['en' + Etype + '' + 's' + _global.es1]._y = yy; } function createBox(Btype, xx) { ++_global.eb1; ++_global.eb2; _root['box' + Btype + 's'].duplicateMovieClip('box' + Btype + 's' + _global.eb1, _global.eb2); _root['box' + Btype + 's' + _global.eb1]._x = xx; _root['box' + Btype + 's' + _global.eb1]._y = 220; } function createPowerUpBox(Btype, xx) { ++_global.eb1; ++_global.eb2; _root['box' + Btype + 's'].duplicateMovieClip('box' + Btype + 's' + _global.eb1, _global.eb2); _root['box' + Btype + 's' + _global.eb1]._x = xx; _root['box' + Btype + 's' + _global.eb1]._y = 220; } function fightStart(type, numberEnemies) { if (type == 'boss') { _root.guiOn(); _root.pawsd = false; _root.sound.fadeOut(0, 50); _root.sound.setNextVolume(100); _root.sound.setNextVolumeRate(100); _root.sound.setNextSong('adeus', true); } } function resetEnemyCatagories() { normal = 0; strong = 0; weak = 0; } function info() {} function removeAllEnemies() { i = 0; while (i <= _root.control.enemies.length) { _root.control.enemies[i].removeMovieClip(); ++i; } weak = 0; normal = 0; strong = 0; _root.control.enemies.splice(0, _root.control.enemies.length); } function restoreLevelMusic() { _root.sound.setNextVolumeRate(50); _root.sound.setNextVolume(100); _root.sound.setNextSong('adeus', true); } function endBattle() { removeAllEnemies(); prepCredits(); } function killSummons() { i = 0; while (i < _root.control.enemies.length) { if (_root.control.enemies[i]._name != 'reaper') { _root.control.enemies[i].hp -= 1000000; break; } ++i; } } function prepCredits() { lockPlayer = true; _root.pawsd = true; _root.guiOff(); _root.templeBG.startCredits(); } function endGame() { _root.fadeScreen.fadeIn(true); _root.sound.fadeOut(0, 5); } t = 0; lock = false; weak = 0; normal = 0; strong = 0; enemyCount = 0; boxCount = 0; var enemies = new Array(); var slashes = new Array(); lockPlayer = false; } onClipEvent (press) { } onClipEvent (enterFrame) { if (lockPlayer) { _root.player.gotoAndStop('stand'); _root.player.resetDash(); _root.arm._y = _root.player._y; _root.arm._x = _root.player._x; _root.arm._rotation = 90 * (_root.arm._xscale / 100); _root.arm.attack = false; _root.arm.attackLock = false; } with (_root.player) { if (jump && _root.player.dead || jump && _root.control.lockPlayer) { _y += rate2; if (rate2 < rate2limit) { ++rate2; } else { jump = false; jumpLock = false; } } } } } instance reaperStat of movieClip 513 { onClipEvent (load) { _visible = false; activated = false; } onClipEvent (enterFrame) { if (_root.reaper.hp > 0 && activated) { _visible = true; this.hbar._xscale = (_root.reaper.hp / _root.reaper.maxhp) * 100; this.ebar._xscale = (_root.reaper.energy / _root.reaper.maxEn) * 100; _y = _root.reaper._y - 60; _x = _root.reaper._x; } else { _visible = false; } } } instance reaper of movieClip 2084 { onClipEvent (load) { function updateDirrection() { if (Math.abs(_root.player._x - _x) <= 100) { if (_root.player._x > this._x) { _xscale = 100; } else { _xscale = -100; } attack = true; return true; } else { return false; } } function isBoss() { return true; } function isBusy() { return true; } function pauseSelf() { if (summonZ) { action = 'jump'; _root.reaper.summoning.stop(); } else { if (blocking) { action = 'block'; _root.reaper.block.stop(); } else { attack = false; gotoAndStop('stand'); } } } function unPause() { if (action == 'jump') { _root.reaper.summoning.play(); } else { if (action == 'block') { _root.reaper.block.play(); attack = false; } else { blocking = false; attack = false; hurt = false; } } } function activateFight() { _root.reaperStat.activated = true; active = true; _root.control.fightStart('boss', 1); } function playerHostile() { if (_root.arm.turnLock && !_root.arm.guarding && Math.abs(_root.player._x - _x) <= 110) { if (_root.player._x > _x && _root.player._xscale == -100) { return true; return false; } if (_root.player._x < _x && _root.player._xscale == 100) { return true; } } return false; } function playerDash() { if (_root.arm.turnLock && _root.player.dash && Math.abs(_root.player._x - _x) > 80) { if (_root.player._x > _x && _root.player._xscale == -100) { return true; return false; } if (_root.player._x < _x && _root.player._xscale == 100) { return true; } } return false; } function dashStart() { dashSpeed = 20 * (_xscale / 100); if (_root.player._x > this._x) { _xscale = 100; } else { if (!hurt && !attack) { _xscale = -100; } } } function resetColor() { redAmount = 0; var v1 = {'ra': 100, 'rb': redAmount, 'ga': 100, 'gb': 0, 'ba': 100, 'bb': 0, 'aa': 100, 'ab': 0}; my_color.setTransform(v1); } maxhp = 700; hp = maxhp; maxEn = 300; energy = maxEn; dtype = 1; var knockBack = false; var hurt = false; var flyup = true; var dead = false; blocking = false; var waveIndex; summonZ = false; action = ''; bottom = 194.2; dirr = 1; KBcounter = 0; var forceUp = 0; extraDamage = 0; slashCounter = 0; deathLock = false; body = 2; head = 2; wep = 1; redAmount = 0; var my_color = new Color(this); notAdded = true; active = false; blockCounter = 0; var dash = false; dashEscape = false; summonZ = false; _xscale = -100; dashSpeed = 0; emerge = true; gotoAndStop('emerge'); } onClipEvent (enterFrame) { if (emerge) { if (_root.sound.music.duration - _root.sound.music.position <= 2180) { emerge = false; this.emerging.play(); _root.templeBG.stopTimer(); } } if (active) { if (notAdded) { _root.control.enemies.push(this); notAdded = false; } if (!_root.pawsd && !_root.player.dead) { if (!_root.scrollLock) { if (_root.player.scrollStartR) { _x = _x - _root.player.speed; } else { if (_root.player.scrollStartL) { _x = _x + _root.player.speed; } } } if (!dead) { if (dash && Math.abs(dashSpeed) > 0) { _x = _x + dashSpeed; if (_alpha > 0) { _alpha = _alpha - 25; } else { if (!dashEscape) { _x = _root.player._x + (dashSpeed / Math.abs(dashSpeed)) * 40; } else { if (dashSpeed > 0) { _x = 500; } else { _x = 30; } } _alpha = 100; if (_root.player._x > this._x) { _xscale = 100; } else { if (!hurt && !attack) { _xscale = -100; } } if (!dashEscape) { gotoAndStop('attack'); attack = true; } else { attack = true; summonZ = true; gotoAndStop('summonZombie'); slashCounter = 60; } dash = false; dashSpeed = 0; dashEscape = false; } } if (!dash) { if (playerDash() && random(2) == 1 && !summonZ && slashCounter == 0) { dash = true; dashEscape = true; blocking = false; attack = false; resetColor(); gotoAndStop('dash'); slashCounter = 60; } else { if (playerHostile() && random(10) == 1 && !summonZ && !this._currentframe != 3) { dash = true; dashEscape = false; blocking = false; attack = false; resetColor(); gotoAndStop('dash'); } else { if (Math.abs(_root.player._x - _x) <= 85 && !hurt && energy > 25) { if (_root.player._x > this._x && !hurt && !attack) { _xscale = 100; } else { if (!hurt && !attack) { _xscale = -100; } } attack = true; gotoAndStop('attack'); } else { if (Math.abs(_root.player._x - _x) > 225 && !hurt && !attack && energy >= 70 && random(100) > 92 && slashCounter == 0) { attack = true; summonZ = true; gotoAndStop('summonZombie'); slashCounter = 45; } } } } } if (slashCounter > 0) { --slashCounter; } if (!hurt && !attack && !dash) { if (energy < maxEn) { energy += 25; } if (_root.player._x > this._x) { dirr = 1; _xscale = 100; if (_y >= bottom - 20) { if (!blocking) { _x = _x + 3; gotoAndStop('move'); } else { _x = _x - 3; gotoAndStop('block'); } } } else { if (!hurt && !attack) { dirr = -1; _xscale = -100; if (_y >= bottom - 20) { if (!blocking) { _x = _x - 3; gotoAndStop('move'); } else { _x = _x + 3; gotoAndStop('block'); } } } } } if (this.hit.hitTest(_root.arm.sword.s) && !blocking) { dtype = 1; hurt = true; ++_global.es1; ++_global.es2; _root.dCounter.duplicateMovieClip('dCounter' + _global.es1, _global.es2); _root['dCounter' + _global.es1]._x = this._x; _root['dCounter' + _global.es1]._y = this._y; if (_root.player.dash && !dash && !summonZ) { gotoAndStop('hurt'); attack = false; extraDamage = 2; } _root['dCounter' + _global.es1].damageCounter = _root.arm.power + _root.arm.damage + extraDamage; hp -= _root.arm.power + _root.arm.damage + extraDamage; knockBack = true; force = dirr * (_root.arm.knockBack + extraDamage); if (_root.arm.up) { flyup = true; forceUp = -1 * (_root.arm.knockBack + _root.arm.power / 2 + extraDamage); } } } if (hp <= 0 && !dead) { _root.score += 2500; ++_global.kills; knockBack = false; dead = true; _root.control.killSummons(); } if (hurt) { redAmount = 255; if (!dead && _root.arm.damagetype == 'lightning' && this.LD._alpha <= 0) { this.LD._alpha = 100; } else { if (!dead && _root.arm.damagetype == 'fire' && this.FD._alpha <= 0) { this.FD._alpha = 100; } } ++_global.es1; ++_global.es2; _root.blood.duplicateMovieClip('blood' + _global.es1, _global.es2); _root['blood' + _global.es1]._x = this._x; _root['blood' + _global.es1]._y = this._y; _root['blood' + _global.es1]._rotation = _root.arm._rotation + random(20); if (this._currentframe != 3) { hurt = false; } else {} } if (knockBack) { if (KBcounter <= _root.arm.knockBack + extraDamage) { _x = _x - force; force *= 0.6; ++KBcounter; } else { knockBack = false; KBcounter = 0; extraDamage = 0; } } if (dead && !deathLock) { this.gotoAndStop('die1'); _root.sound.fadeOut(0, 2); deathLock = true; _root.reaperStat.activated = false; } } else { if (_root.player.dead) { gotoAndStop('stand'); blocking = false; attack = false; hurt = false; if (_root.death._currentframe == 11) { hp = maxhp; energy = maxEn; _x = 463.6; _y = 194.2; _xscale = -100; redAmount = 0; notAdded = true; var myColorTransform = {'ra': 100, 'rb': redAmount, 'ga': 100, 'gb': 0, 'ba': 100, 'bb': 0, 'aa': 100, 'ab': 0}; my_color.setTransform(myColorTransform); } } else { if (!dead) { if (!_root.player.dead) { pauseSelf(); } else { gotoAndStop('stand'); } } } } if (flyup && !_root.pawsd || flyup && dead) { _y = _y + forceUp; if (_y < bottom) { if (forceUp < 30) { ++forceUp; } } else { flyup = false; _y = bottom; } } if (redAmount > 0) { var myColorTransform = {'ra': 100, 'rb': redAmount, 'ga': 100, 'gb': 0, 'ba': 100, 'bb': 0, 'aa': 100, 'ab': 0}; my_color.setTransform(myColorTransform); redAmount -= 15; } } } } movieClip 2769 { } movieClip 2772 { } movieClip 2774 { } movieClip 2776 { } movieClip 2778 { } movieClip 2780 { } movieClip 2782 { } movieClip 2784 { } movieClip 2786 { } movieClip 2789 { } movieClip 2791 { } movieClip 2793 { } movieClip 2795 { } movieClip 2797 { } movieClip 2799 { } instance templeBG of movieClip 2799 { onClipEvent (load) { function startCredits() { credits = true; _root.sound.setNextVolume(100); _root.sound.setNextVolumeRate(10); _root.sound.setNextSong('templeGuitar', true); } function startTimerBoss() { timerActivated = true; } function stopTimer() { timerActivated = false; startTimer = 100; } startTimer = 100; timerActivated = false; activated = true; musicLock = false; credits = false; rate = 1; } onClipEvent (enterFrame) { if (activated) { if (_y > -148) { _y = _y - rate; if (_y <= 12) { _root.player._y -= rate; _root.arm._y -= rate; _root.reaper._y -= rate; } if (_y < 600 && !musicLock) { musicLock = true; _root.sound.setNextVolume(100); _root.sound.setNextVolumeRate(50); _root.sound.setNextSong('aduesIntro', true); } } else { activated = false; _y = -148; _root.player._y = 205.6; _root.arm._y = 205.6; _root.reaper._y = 194.2; _root.reaper.emerging.play(); } } if (credits) { if (_y < 322) { _y = _y + rate; _root.player._y += rate; } else { _root.credits.activateCredits(); credits = false; } } if (timerActivated) { startTimer -= 5; if (startTimer <= 0) { _root.reaper.emerge = false; _root.reaper.emerging.play(); timerActivated = false; } } } } instance saveObj of movieClip 1926 { onClipEvent (load) { function levelHasCheckpoint() { return false; } function levelStartSave() { distance = _root.distance; score = _root.score; gold = _root.gold; startpoint = _root.player._x; starthp = _root.player.hp; } function loadStart() { _root.distance = distance; _root.score = score; _root.gold = gold; _root.player._x = startpoint; _root.player.hp = starthp; _root.player.reset(); } function info() {} distance = 0; score = 0; gold = 0; startpoint = 0; starthp = _root.player.hp; levelStartSave(); } onClipEvent (enterFrame) { } } frame 22 { stop(); _root.endStats.gotoAndPlay(1); _root.pawsd = true; } button 2801 { on (release) { _root.gameComplete = true; _root.blackout.gotoAndStop(1); _root.fadeScreen.fadeOut(false); _root.endStats.gotoAndStop(32); _root.gotoAndStop(3); } } movieClip 2809 { frame 1 { finalScore.text = _root.score; finalGold.text = _root.gold; finalKills.text = _global.kills; } frame 30 { stop(); } frame 32 { stop(); } } instance endStats of movieClip 2809 { onClipEvent (load) { this.swapDepths(10000000000.0); } } frame 24 { stop(); _root.fadeScreen.changeRate(10); _root.fadeScreen.fadeOut(); _root.player.reset(); _root.survivalLevel = 1; _root.survivalKills = 0; _root.score = 0; _root.gold = 0; _root.distance = 0; _root.goArrow._visible = true; _global.es1 = 0; _global.es2 = 100000; _global.eb1 = 0; _global.eb2 = 60000; _global.ps1 = 0; _global.ps2 = 200000; _global.t1 = 0; _global.t2 = 150; 0; _root.goArrow._visible = false; bossOn = 'null'; scrollLock = true; battle = true; pawsd = false; _root.onEnterFrame = function () { if (Key.isDown(80) && _root._currentframe == 24) { if (!pawsd) { pawsd = true; _root.pmenu._y = 134; } } }; _root.sound.fadeOut(0, 10); } button 2811 { on (release) { play(); } } movieClip 2817 { frame 15 { stop(); } frame 26 { _root.control.startSurvival(); stop(); } } movieClip 2821 { instance buy of movieClip 1843 { onClipEvent (load) { select = 'a'; } } instance of movieClip 2120 { onClipEvent (enterFrame) { if (_root.Shop.ah._alpha == 0) { this._alpha = 0; } } } instance ag of movieClip 2120 { onClipEvent (enterFrame) { if (_root.Shop.ag._alpha == 0) { this._alpha = 0; } } } instance ai of movieClip 1861 { onClipEvent (load) { select = 'i'; this.pic.gotoAndStop(select); } onClipEvent (press) { _root.Shop.info.text = 'Health+\nRecover 2 health points\nCost:\t ' + Math.round(40 / _root.Shop.discount) + '\nYour HP: ' + _root.player.hp + '/' + _root.player.maxhp; _root.Shop.dash.text = ''; _root.Shop.buy.select = select; _root.Shop.buy.cost = Math.round(40 / _root.Shop.discount); if (_root.gold >= Math.round(40 / _root.Shop.discount) && _root.player.hp < _root.player.maxhp) { _root.Shop.buy._alpha = 100; _root.Shop.buyB.enabled = true; } else { _root.Shop.buy._alpha = 50; _root.Shop.buyB.enabled = false; } } onClipEvent (rollOver) { gotoAndStop(2); } onClipEvent (rollOut) { gotoAndStop(1); } } instance ah of movieClip 1861 { onClipEvent (load) { select = 'h'; cost = 5000; this.pic.gotoAndStop(select); } onClipEvent (press) { _root.Shop.info.text = 'Name: Saishuuheiki\nDamage:\t10\nKnockback:\t5\nCost:\t' + Math.round(cost / _root.Shop.discount) + '\nA purely evil blade'; _root.Shop.dash.text = 'Sinful Iniquity'; _root.Shop.buy.select = select; _root.Shop.buy.cost = Math.round(cost / _root.Shop.discount); if (_root.gold >= Math.round(cost / _root.Shop.discount)) { _root.Shop.buy._alpha = 100; _root.Shop.buyB.enabled = true; } else { _root.Shop.buy._alpha = 50; _root.Shop.buyB.enabled = false; } } onClipEvent (rollOver) { gotoAndStop(2); } onClipEvent (rollOut) { gotoAndStop(1); } } instance ad of movieClip 1861 { onClipEvent (load) { select = 'd'; cost = 1400; this.pic.gotoAndStop(select); if (_root.alreadyBought(select)) { _root.Shop['a' + select]._alpha = 0; _root.Shop['a' + select].enabled = false; } } onClipEvent (press) { _root.Shop.info.text = 'Name: Ryuu\nDamage:\t3\nKnockback:\t4\nCost:\t' + Math.round(cost / _root.Shop.discount) + '\nBattle Axe'; _root.Shop.dash.text = 'Wind Slash'; _root.Shop.buy.select = select; _root.Shop.buy.cost = Math.round(cost / _root.Shop.discount); if (_root.gold >= Math.round(cost / _root.Shop.discount)) { _root.Shop.buy._alpha = 100; _root.Shop.buyB.enabled = true; } else { _root.Shop.buy._alpha = 50; _root.Shop.buyB.enabled = false; } } onClipEvent (rollOver) { gotoAndStop(2); } onClipEvent (rollOut) { gotoAndStop(1); } } instance ag of movieClip 1861 { onClipEvent (load) { select = 'g'; cost = 4000; this.pic.gotoAndStop(select); } onClipEvent (press) { _root.Shop.info.text = 'Name: Masamune\nDamage:\t7\nKnockback:\t1\nCost:\t' + Math.round(cost / _root.Shop.discount) + '\nA sword of shadows'; _root.Shop.dash.text = 'Soul Dragon'; _root.Shop.buy.select = select; _root.Shop.buy.cost = Math.round(cost / _root.Shop.discount); if (_root.gold >= Math.round(cost / _root.Shop.discount)) { _root.Shop.buy._alpha = 100; _root.Shop.buyB.enabled = true; } else { _root.Shop.buy._alpha = 50; _root.Shop.buyB.enabled = false; } } onClipEvent (rollOver) { gotoAndStop(2); } onClipEvent (rollOut) { gotoAndStop(1); } } instance ac of movieClip 1861 { onClipEvent (load) { select = 'c'; cost = 1100; this.pic.gotoAndStop(select); if (_root.alreadyBought(select)) { _root.Shop['a' + select]._alpha = 0; _root.Shop['a' + select].enabled = false; } } onClipEvent (press) { _root.Shop.info.text = 'Name: Gekiken\nDamage:\t2\nKnockback:\t2\nCost:\t' + Math.round(cost / _root.Shop.discount) + '\nA sharp Rapier'; _root.Shop.dash.text = 'Wind Slash'; _root.Shop.buy.select = select; _root.Shop.buy.cost = Math.round(cost / _root.Shop.discount); if (_root.gold >= Math.round(cost / _root.Shop.discount)) { _root.Shop.buy._alpha = 100; _root.Shop.buyB.enabled = true; } else { _root.Shop.buy._alpha = 50; _root.Shop.buyB.enabled = false; } } onClipEvent (rollOver) { gotoAndStop(2); } onClipEvent (rollOut) { gotoAndStop(1); } } instance af of movieClip 1861 { onClipEvent (load) { select = 'f'; cost = 3000; this.pic.gotoAndStop(select); if (_root.alreadyBought(select)) { _root.Shop['a' + select]._alpha = 0; _root.Shop['a' + select].enabled = false; } } onClipEvent (press) { _root.Shop.info.text = 'Name: Ennetsujigoku\nDamage:\t5\nKnockback:\t3\nCost:\t' + Math.round(cost / _root.Shop.discount) + '\nA blade forged in hell'; _root.Shop.dash.text = 'Fire Wave'; _root.Shop.buy.select = select; _root.Shop.buy.cost = Math.round(cost / _root.Shop.discount); if (_root.gold >= Math.round(cost / _root.Shop.discount)) { _root.Shop.buy._alpha = 100; _root.Shop.buyB.enabled = true; } else { _root.Shop.buy._alpha = 50; _root.Shop.buyB.enabled = false; } } onClipEvent (rollOver) { gotoAndStop(2); } onClipEvent (rollOut) { gotoAndStop(1); } } instance ak of movieClip 1861 { onClipEvent (load) { select = 'k'; cost = 200; this.pic.gotoAndStop(select); if (_root.alreadyBought(select)) { _root.Shop['a' + select]._alpha = 0; _root.Shop['a' + select].enabled = false; } } onClipEvent (press) { _root.Shop.info.text = 'Name: Max Energy UP\nIncrease your maximum energy by 5 points.\nCost:\t ' + Math.round(cost / _root.Shop.discount) + '\nYour Energy: ' + _root.arm.maxEn; _root.Shop.dash.text = ''; _root.Shop.buy.select = select; _root.Shop.buy.cost = Math.round(cost / _root.Shop.discount); if (_root.gold >= Math.round(cost / _root.Shop.discount)) { _root.Shop.buy._alpha = 100; _root.Shop.buyB.enabled = true; } else { _root.Shop.buy._alpha = 50; _root.Shop.buyB.enabled = false; } } onClipEvent (rollOver) { gotoAndStop(2); } onClipEvent (rollOut) { gotoAndStop(1); } } instance ae of movieClip 1861 { onClipEvent (load) { select = 'e'; cost = 2000; this.pic.gotoAndStop(select); if (_root.alreadyBought(select)) { _root.Shop['a' + select]._alpha = 0; _root.Shop['a' + select].enabled = false; } } onClipEvent (press) { _root.Shop.info.text = 'Name: Inabikari\nDamage:\t5\nKnockback:\t2\nCost:\t' + Math.round(cost / _root.Shop.discount) + '\nA jagged blade of light'; _root.Shop.dash.text = 'Lightning Ball'; _root.Shop.buy.select = select; _root.Shop.buy.cost = Math.round(cost / _root.Shop.discount); if (_root.gold >= Math.round(cost / _root.Shop.discount)) { _root.Shop.buy._alpha = 100; _root.Shop.buyB.enabled = true; } else { _root.Shop.buy._alpha = 50; _root.Shop.buyB.enabled = false; } } onClipEvent (rollOver) { gotoAndStop(2); } onClipEvent (rollOut) { gotoAndStop(1); } } instance aj of movieClip 1861 { onClipEvent (load) { select = 'j'; cost = 500; this.pic.gotoAndStop(select); } onClipEvent (press) { _root.Shop.info.text = 'Name: Max HP UP\nIncrease your maximum health by 1 point.\nCost:\t ' + Math.round(cost / _root.Shop.discount) + '\nYour HP: ' + _root.player.hp + '/' + _root.player.maxhp; _root.Shop.dash.text = ''; _root.Shop.buy.select = select; _root.Shop.buy.cost = Math.round(cost / _root.Shop.discount); if (_root.gold >= Math.round(cost / _root.Shop.discount)) { _root.Shop.buy._alpha = 100; _root.Shop.buyB.enabled = true; } else { _root.Shop.buy._alpha = 50; _root.Shop.buyB.enabled = false; } } onClipEvent (rollOver) { gotoAndStop(2); } onClipEvent (rollOut) { gotoAndStop(1); } } } instance Shop of movieClip 2821 { onClipEvent (load) { viewable = false; buyB.enabled = false; buy._alpha = 50; discount = 1; } onClipEvent (enterFrame) { if (viewable == true) { _y = 143.5; if (_alpha < 100) { _alpha = _alpha + 10; } } else { if (_alpha > 0) { _alpha = _alpha - 10; } else { if (_y != -200) { _y = -200; info.text = 'Click on an item to see info on that item.'; dash.text = ''; buyB.enabled = false; buy._alpha = 50; } } } } } instance pmenu of movieClip 428 { onClipEvent (load) { this.swapDepths(10000000000001.0); } } movieClip 2825 { } movieClip 2826 { frame 1 { stop(); } frame 29 { gotoAndStop(1); } } movieClip 2828 { } movieClip 2838 { frame 1 { level.text = _root.survivalLevel; killed.text = _root.control.totalKills + _root.control.killings; score.text = _root.oldScore; } } button 2839 { on (release) { _root.sound.music.stop(); _root.gotoAndStop(3); } } movieClip 2841 { frame 1 { stop(); } frame 2 { _root.sound.fadeOut(0, _root.sound.getNextVolumeRate()); _root.sound.setNextVolume(100); _root.sound.setNextVolumeRate(100); _root.sound.setNextSong('death', true); _root.levelStatus._alpha = 0; _root.levelTxt._y = -100; _root.killsTxt._y = -100; } frame 3 { _root.gcontrol.clearMiscItems(); } frame 4 { _root.gcontrol.clearMiscItems(); } frame 12 { stop(); } } instance control of movieClip 187 { onClipEvent (load) { function createEnemy(Etype, xx, yy) { ++_global.es1; ++_global.es2; _root['en' + Etype + '' + 's'].duplicateMovieClip('en' + Etype + '' + 's' + _global.es1, _global.es2); _root['en' + Etype + '' + 's' + _global.es1]._x = xx; _root['en' + Etype + '' + 's' + _global.es1]._y = yy; } function createBox(Btype, xx) { ++_global.eb1; ++_global.eb2; _root['box' + Btype + 's'].duplicateMovieClip('box' + Btype + 's' + _global.eb1, _global.eb2); _root['box' + Btype + 's' + _global.eb1]._x = xx; _root['box' + Btype + 's' + _global.eb1]._y = 220; } function specificLevelFightInitialize() { _root.control.fightStart('cinematic', 25); } function endingBattle() { _root.player.resetScrolling(); _root.player.changeLimits(66, 530); endBattleLock = true; _root.battle = true; _root.wallRight.reUse(); _root.wallLeft.reUse(); extraEnemies = 0; i = 0; while (i < _root.control.enemies.length) { if (_root.control.enemies[i]._x < 55) { _root.control.enemies[i].removeMovieClip(); _root.control.enemies.splice(i, 1); --i; } else { if (!_root.control.enemies[i].dead) { ++extraEnemies; } } ++i; } _root.control.fightStart('endingBattle', extraEnemies + 2); } function fightStart(type, numberEnemies) {} function resetEnemyCatagories() { normal = 0; strong = 0; weak = 0; } function info() {} function removeAllEnemies() { i = 0; while (i <= _root.control.enemies.length) { _root.control.enemies[i].removeMovieClip(); ++i; } weak = 0; normal = 0; strong = 0; _root.control.enemies.splice(0, _root.control.enemies.length); } function restoreLevelMusic() { _root.sound.setNextVolume(100); _root.sound.setNextVolumeRate(50); _root.sound.setNextSong('Boss', true); } function selectRandomEnemy() { level = _root.survivalLevel; var v2; if (level == 1) { v2 = new Array(1, 2); } else { if (level < 3) { v2 = new Array(1, 2, 3); } else { if (level < 6) { v2 = new Array(1, 2, 3, 4, 7); } else { if (level < 10) { v2 = new Array(2, 3, 4, 7, 8); } else { if (level < 14) { v2 = new Array(3, 4, 7, 8, 9); } else { if (level < 16) { v2 = new Array(12, 4, 7, 8, 9, 10); } else { if (level < 18) { v2 = new Array(12, 13, 7, 8, 9, 18); } else { if (level < 22) { v2 = new Array(12, 13, 7, 17, 15, 14, 18); } else { if (level == 25) { v2 = new Array(7, 8); } else { if (level < 30) { v2 = new Array(13, 7, 17, 15, 14, 18); } } } } } } } } } } if (level == 30) { v2 = new Array(12, 13, 14, 15); return v2[random(v2.length)]; } if (level > 30) { v2 = new Array(12, 13, 14, 15, 10, 7, 8, 17, 18); } return v2[random(v2.length)]; } function randomSelect() { if (random(50) <= 25) { return 1; } else { return -1; } } function startSurvival() { survivalActivated = true; _root.sound.setNextVolume(50); _root.sound.setNextVolumeRate(5); _root.sound.setNextSong('Boss', true); } t = 0; lock = false; weak = 0; normal = 0; strong = 0; enemyCount = 0; boxCount = 0; sentinalLock = 0; endBattleLock = false; fightType = 'none'; var enemies = new Array(); var slashes = new Array(); _root.player.body = 2; var killings = 0; var killsRequired = 5; var enemiesMade = 0; var enemy = 0; var creationRate = 30; var totalKills = 0; var survivalActivated = false; } onClipEvent (press) { } onClipEvent (enterFrame) { _root.player.body = 2; if (!_root.player.dead) { if (!lock && !_root.pawsd && survivalActivated) { _root.survivalKills = killsRequired - killings; if (_root.survivalKills > 0) { if (t % creationRate == 0 && enemiesMade < killsRequired && enemies.length < 8 && !_root.Shop.viewable) { enemy = selectRandomEnemy(); if (enemy == 3 || enemy == 7 || enemy == 8) { if (enemy == 3) { createEnemy(3, 100 + random(300), -80); } else { if (enemy == 7) { createEnemy(7, 50 + random(450), 194.2); } else { if (enemy == 8) { createEnemy(8, 100 + random(300), -60); } } } } else { if (enemy == 12 || enemy == 13 || enemy == 14 || enemy == 15) { if (enemy == 14) { if (random(10) < 5) { enemy = 12 + random(4); } } if (enemy == 15) { _root.createUndead(15, Stage.width / 2 + randomSelect() * 350, 194.2, false); } else { if (enemy == 12 || enemy == 13) { _root.createUndead(enemy, 100 + random(400), 194.2, true); } else { if (randomSelect() > 0) { _root.createUndead(14, 150 + random(400), 173.8, true); } else { _root.createUndead(14, 150 + random(300), -100, false); } } } } else { createEnemy(enemy, Stage.width / 2 + randomSelect() * 350, 194.2); } } ++enemiesMade; } } else { totalKills += killsRequired; if (_root.survivalLevel % 2 == 0) { createBox(1 + random(3), 70 + random(450)); createBox(2, 70 + random(450)); if (creationRate > 2) { --creationRate; } } if (_root.survivalLevel % 5 == 0) { _root.Shop.viewable = true; } killings = 0; enemiesMade = 0; _root.levelUpNotify.play(); ++_root.survivalLevel; if (killsRequired < 30) { killsRequired += 2; } if (killsRequired > 30) { killsRequired = 30; } if (_root.survivalLevel > 30) { killsRequired = 40; } } } } else { with (_root.player) { if (jump) { _y += rate2; if (rate2 < rate2limit) { ++rate2; } else { jump = false; jumpLock = false; } } } } } } instance backG of movieClip 2335 { onClipEvent (load) { ground.duplicateMovieClip('ground2', 100); ground.duplicateMovieClip('ground3', 101); ground2._x = ground._x + ground._width; ground3._x = ground._x - ground._width; groundStartx = this._x; } onClipEvent (enterFrame) { if (!_root.pawsd && !_root.scrollLock) { groundSpeed = Math.round(_root.player.speed); if (_root.player.scrollStartR == true) { this._x -= groundSpeed; if (this._x <= groundStartx - ground._width) { this._x = groundStartx; } } if (_root.player.scrollStartL == true) { this._x += groundSpeed; if (this._x > groundStartx + ground._width) { this._x = groundStartx; } } } } } instance of movieClip 2194 { onClipEvent (load) { ground.duplicateMovieClip('ground2', 100); ground.duplicateMovieClip('ground3', 101); ground2._x = ground._x + ground._width; ground3._x = ground._x - ground._width; groundStartx = this._x; } onClipEvent (enterFrame) { if (!_root.pawsd && !_root.scrollLock && _global.scrolling >= 2) { groundSpeed = _root.player.speed / 8; if (_root.player.scrollStartR == true) { this._x -= groundSpeed; if (this._x <= groundStartx - ground._width) { this._x = groundStartx - groundSpeed; } } if (_root.player.scrollStartL == true) { this._x += groundSpeed; if (this._x > groundStartx + ground._width) { this._x = groundStartx + groundSpeed; } } } } } instance of movieClip 1802 { onClipEvent (load) { ground.duplicateMovieClip('ground2', 100); ground.duplicateMovieClip('ground3', 101); ground2._x = ground._x + ground._width; ground3._x = ground._x - ground._width; groundStartx = this._x; } onClipEvent (enterFrame) { if (!_root.pawsd && !_root.scrollLock && _global.scrolling == 3) { groundSpeed = Math.round(_root.player.speed) / 32; if (_root.player.scrollStartR == true) { this._x -= groundSpeed; if (this._x <= groundStartx - ground._width) { this._x = groundStartx; } } if (_root.player.scrollStartL == true) { this._x += groundSpeed; if (this._x > groundStartx + ground._width) { this._x = groundStartx; } } } } } frame 26 { stop(); _root.player.reset(); if (_root.hax) { _root.player.increaseHp(50); _root.arm.changeSword(10); } else { _root.player.increaseHp(2); _root.arm.changeSword(2); } _root.fadeScreen.changeRate(25); _root.fadeScreen.fadeOut(); _root.sound.fadeOut(0, 10); _root.sound.setNextVolume(50); _root.sound.setNextVolumeRate(50); _root.sound.setNextSong('dima', true); _root.goArrow._visible = false; scrollLock = true; _root.score = 0; _root.gold = 600; _global.es1 = 0; _global.es2 = 100000; _global.eb1 = 0; _global.eb2 = 60000; _global.ps1 = 0; _global.ps2 = 200000; _global.t1 = 0; _global.t2 = 150; 0; pawsd = false; _root.onEnterFrame = function () { if (Key.isDown(80) && _root._currentframe == 50) { if (!pawsd) { pawsd = true; _root.pmenu._y = 134; } } }; } button 2843 { on (release) { i = 0; while (i <= _root.control.enemies.length) { _root.control.enemies[i].removeMovieClip(); ++i; } _root.control.weak = 0; _root.control.normal = 0; _root.control.strong = 0; _root.control.enemies.splice(0, _root.control.enemies.length); _y = -300; _root.pawsd = false; _root.sound.music.stop(); _root.gcontrol.clearMiscItems(); _root.gotoAndStop(3); } } movieClip 2850 { frame 1 { stop(); } frame 10 { stop(); } frame 20 { stop(); } } instance pmenu of movieClip 428 { onClipEvent (load) { this.swapDepths(10000000000003.0); } } instance killsLeft of movieClip 1922 { onClipEvent (load) { killCount = 0; } onClipEvent (enterFrame) { this.kills = killCount; } } instance control of movieClip 187 { onClipEvent (load) { function createEnemy(Etype, xx, yy) { ++_global.es1; ++_global.es2; _root['en' + Etype + '' + 's'].duplicateMovieClip('en' + Etype + '' + 's' + _global.es1, _global.es2); _root['en' + Etype + '' + 's' + _global.es1]._x = xx; _root['en' + Etype + '' + 's' + _global.es1]._y = yy; } function createBox(Btype, xx) { ++_global.eb1; ++_global.eb2; _root['box' + Btype + 's'].duplicateMovieClip('box' + Btype + 's' + _global.eb1, _global.eb2); _root['box' + Btype + 's' + _global.eb1]._x = xx; _root['box' + Btype + 's' + _global.eb1]._y = 220; } function fightStart(type, numberEnemies) { _root.goArrow._visible = false; t = 0; fightType = type; total = numberEnemies; enemyCount = 0; } function resetEnemyCatagories() { normal = 0; strong = 0; weak = 0; } function info() {} function removeAllEnemies() { i = 0; while (i <= _root.control.enemies.length) { _root.control.enemies[i].removeMovieClip(); ++i; } weak = 0; normal = 0; strong = 0; _root.control.enemies.splice(0, _root.control.enemies.length); } function restoreLevelMusic() { _root.playSoundEffect('tryAgain', 100); waitingForSound = true; isPlaying = false; soundLock = false; } t = 0; lock = false; soundLock = false; isPlaying = true; waitingForSound = false; weak = 0; normal = 0; strong = 0; enemyCount = 0; boxCount = 0; var enemies = new Array(); var slashes = new Array(); } onClipEvent (press) { } onClipEvent (enterFrame) { if (_root.player.dead) { with (_root.player) { if (jump && _root.player.dead) { _y += rate2; if (rate2 < rate2limit) { ++rate2; } else { jump = false; jumpLock = false; } } } if (!soundLock) { if (random(2) == 1) { _root.playSoundEffect('youSuck', 100); } else { _root.playSoundEffect('pathetic', 100); } soundLock = true; } } else { if (waitingForSound) { if (_root.isSoundDone()) { waitingForSound = false; isPlaying = false; } } if (!waitingForSound && !isPlaying) { isPlaying = true; _root.sound.setNextVolumeRate(50); _root.sound.setNextVolume(50); _root.sound.setNextSong('dima', true); } } } } movieClip 2854 { } movieClip 2855 { instance of movieClip 783 { onClipEvent (load) { if (this.hitTest(_root.player.hit)) { _root.player.hurt(8); _root.player.flyStart(18); } } } frame 19 { this.removeMovieClip(); } } instance dimaUltimate of movieClip 2855 { onClipEvent (load) { if (this._name == 'dimaUltimate') { stop(); } } } instance statDima of movieClip 513 { onClipEvent (enterFrame) { if (_root.dima.hp > 0) { _visible = true; this.hbar._xscale = (_root.dima.hp / _root.dima.maxhp) * 100; this.ebar._xscale = (_root.dima.energy / _root.dima.maxEn) * 100; _y = _root.dima._y - 95; _x = _root.dima._x; } else { _visible = false; } } } movieClip 2858 { frame 1 { if (_root.dima._xscale >= 100) { _root.dima.stand.sign.gotoAndStop(1); } else { _root.dima.stand.sign.gotoAndStop(2); } } frame 2 { if (_root.dima._xscale >= 100) { gotoAndStop(1); } else { gotoAndStop(2); } } } movieClip 2862 { frame 1 { stop(); } } movieClip 2863 { } movieClip 2864 { } movieClip 2870 { frame 5 { _parent.hurt = false; } } movieClip 2874 { } movieClip 2876 { } movieClip 2877 { frame 8 { _parent.energy -= 20; } instance of movieClip 783 { onClipEvent (load) { if (this.hitTest(_root.player.guard)) { cancel = true; _root.arm.sword.sword.spark.gotoAndPlay(1); _root.arm.energy -= 50; } else { if (this.hitTest(_root.player.hit) && !cancel) { _root.player.hurt(3); } } } } instance of movieClip 789 { onClipEvent (load) { if (this.hitTest(_root.player.guard)) { cancel = true; _root.arm.sword.sword.spark.gotoAndPlay(1); _root.arm.energy -= 60; } else { if (this.hitTest(_root.player.hit) && !cancel) { _root.player.hurt(3); } } } } frame 12 { if (random(2) == 1 && _parent.updateDirrection() && _parent.energy >= 15) { gotoAndPlay('secondSlash'); } else { if (_parent.energy >= 20) { gotoAndPlay('earlyStab'); } else { play(); } } } frame 16 { gotoAndPlay('earlyStab2'); } frame 21 { _parent.attack = false; } instance of movieClip 783 { onClipEvent (load) { if (this.hitTest(_root.player.guard)) { cancel = true; _root.arm.sword.sword.spark.gotoAndPlay(1); _root.arm.energy -= 50; } else { if (this.hitTest(_root.player.hit) && !cancel) { _root.player.hurt(2); } } } } frame 36 { _parent.energy -= 15; } instance of movieClip 789 { onClipEvent (load) { if (this.hitTest(_root.player.guard)) { cancel = true; _root.arm.sword.sword.spark.gotoAndPlay(1); _root.arm.energy -= 60; } else { if (this.hitTest(_root.player.hit) && !cancel) { _root.player.hurt(4); } } } } instance of movieClip 783 { onClipEvent (load) { if (this.hitTest(_root.player.guard)) { cancel = true; _root.arm.sword.sword.spark.gotoAndPlay(1); _root.arm.energy -= 30; } else { if (this.hitTest(_root.player.hit) && !cancel) { _root.player.hurt(2); } } } } frame 45 { if (_parent.updateDirrection() && _parent.energy >= 15) { gotoAndPlay('thirdSlash'); } else { play(); } } frame 54 { _parent.attack = false; } frame 60 { gotoAndPlay('earlyStab2'); } frame 66 { _parent.energy -= 15; } instance of movieClip 783 { onClipEvent (load) { if (this.hitTest(_root.player.guard)) { cancel = true; _root.arm.sword.sword.spark.gotoAndPlay(1); _root.arm.energy -= 40; } else { if (this.hitTest(_root.player.hit) && !cancel) { _root.player.hurt(3); } } } } instance of movieClip 789 { onClipEvent (load) { if (this.hitTest(_root.player.guard)) { cancel = true; _root.arm.sword.sword.spark.gotoAndPlay(1); _root.arm.energy -= 30; } else { if (this.hitTest(_root.player.hit) && !cancel) { _root.player.hurt(3); } } } } frame 68 { if (random(3) == 0) { play(); } else { gotoAndPlay('earlySlashDown'); } } frame 75 { if (_parent.updateDirrection() && _parent.energy >= 50) { if (_root.arm.guarding && random(2) == 1) { _parent.busyGeneric = true; gotoAndPlay('powerHit'); } } else { play(); } } frame 81 { _parent.attack = false; } frame 82 { gotoAndPlay(1); } frame 100 { _parent.energy -= 25; } instance of movieClip 789 { onClipEvent (load) { if (this.hitTest(_root.player.hit)) { _root.player.hurt(4); _root.arm.energy = 0; _root.player.flyStart(26); } } } instance of movieClip 783 { onClipEvent (load) { if (this.hitTest(_root.player.hit)) { _root.player.hurt(3); _root.arm.energy = 0; _root.player.flyStart(26); } } } frame 111 { _parent.teleportAttackHigh(); } frame 115 { stop(); } frame 134 { _parent.energy -= 25; _parent.startFall(0, 1); } instance of movieClip 789 { onClipEvent (load) { if (this.hitTest(_root.player.hit)) { _root.player.hurt(4); _root.player.knockDownStart(20); } } } instance of movieClip 783 { onClipEvent (load) { if (this.hitTest(_root.player.hit) && !_root.player.knockedDown) { _root.player.hurt(4); _root.player.knockDownStart(20); } } } frame 151 { stop(); } frame 299 { _parent.attack = false; } } movieClip 2878 { } movieClip 2887 { } movieClip 2902 { } movieClip 2907 { instance of movieClip 783 { onClipEvent (enterFrame) { if (this.hitTest(_root.player.hit)) { _root.player.hurt(2); } } } frame 25 { _parent.energy = 0; } frame 59 { _parent.lazerFiring = false; stop(); } } movieClip 2910 { } movieClip 2926 { frame 15 { stop(); } } movieClip 2928 { frame 1 { _parent.hurt = false; } frame 2 { if (_parent.flyup == true) { gotoAndPlay(1); } } frame 4 { _root.dimaHatUnlocked = true; } frame 126 { _root.dimaReward.gotoAndPlay(2); stop(); } } movieClip 2929 { frame 1 { stop(); } instance FD of movieClip 762 { onClipEvent (enterFrame) { if (_alpha >= 0) { play(); } else { stop(); } } } instance LD of movieClip 766 { onClipEvent (enterFrame) { if (_alpha >= 0) { _alpha = _alpha - 10; play(); } else { stop(); } } } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } frame 6 { stop(); } frame 7 { stop(); } frame 8 { stop(); } } instance dima of movieClip 2929 { onClipEvent (load) { function updateDirrection() { if (Math.abs(_root.player._x - _x) <= 85 && !hurt && energy > 0) { if (_root.player._x > this._x) { _xscale = 100; } else { if (!hurt && !attack) { _xscale = -100; } } attack = true; return true; } else { return false; } } function isBoss() { return true; } function teleportAttackHigh() { attack = true; blocking = false; hurt = false; teleport = true; teleportType = 'attackHigh'; teleCounter = 0; _root.createPoof(_x, _y); _y = -300; } function startFall(xrate, yrate) { falling = true; fallRateX = xrate; fallRateY = yrate; } function isBusy() { return lazerFiring; } function ultimate(xx, yy) { ++_global.eb1; ++_global.eb2; _root.dimaUltimate.duplicateMovieClip('dimaUltimate' + _global.eb1, _global.eb2); _root['dimaUltimate' + _global.eb1]._x = xx; _root['dimaUltimate' + _global.eb1]._y = yy; } function pauseSelf() { if (lazerFiring) { action = 'lazer'; _root.dima.lazerFire.stop(); } else { if (attack && busyGeneric) { action = 'attack'; _root.dima.attacking.stop(); } else { gotoAndStop('stand'); } } } function unPause() { if (action == 'lazer') { _root.dima.lazerFire.play(); } else { if (action == 'attack') { _root.dima.attacking.play(); } else { attack = false; blocking = false; } } action = ''; } _xscale = _xscale * -1; maxhp = 650; hp = maxhp; maxEn = 200; energy = maxEn; dtype = 1; var knockBack = false; var hurt = false; var flyup = true; var dead = false; var action = ''; blocking = false; teleport = false; teleCounter = 0; teleportDelay = 0; teleportType = 'null'; falling = false; fallRateX = 0; fallRateY = 0; busyGeneric = false; lazerFiring = false; bottom = 194.2; dirr = 1; KBcounter = 0; var forceUp = 0; extraDamage = 0; slashCounter = 0; deathLock = false; body = 1; head = 1; wep = 1; redAmount = 0; var my_color = new Color(this); notAdded = true; ultimateChance = true; } onClipEvent (enterFrame) { if (notAdded) { _root.control.enemies.push(this); notAdded = false; } if (!_root.pawsd && !_root.player.dead) { if (!_root.scrollLock) { if (_root.player.scrollStartR) { _x = _x - _root.player.speed; } else { if (_root.player.scrollStartL) { _x = _x + _root.player.speed; } } } if (!dead && !falling) { if (teleportDelay > 0 && !teleport) { --teleportDelay; } if (random(5) == 1 && teleportDelay == 0) { teleportDelay = 42; } else { if (teleportDelay == 0 && !teleport && !busyGeneric && !lazerFiring && _root.player.dash && (_root.player._xscale == 100 && _x > _root.player._x || _root.player._xscale == -100 && _x < _root.player._x)) { attack = false; blocking = false; hurt = false; _root.createPoof(_x, _y); _y = -300; teleCounter = 5; teleportType = 'evade'; teleport = true; } } if (teleport) { if (teleportType == 'evade') { gotoAndStop('stand'); if (teleCounter == 0) { if (_root.player._xscale == 100) { _root.createPoof(_root.player._x - 60, 194.2); _x = _root.player._x - 60; _y = 194.2; _xscale = 100; } else { _root.createPoof(_root.player._x + 60, 194.2); _x = _root.player._x + 60; _y = 194.2; _xscale = -100; } teleport = false; } teleCounter -= 1; } else { if (teleportType == 'attackHigh') { if (teleCounter == 0) { if (_root.player.flying) { var yOffSet = 20; } else { var yOffSet = 0; } if (_root.player._xscale == 100) { _root.createPoof(_root.player._x - 30, _root.player._y - yOffSet); _x = _root.player._x - 60; _xscale = 100; } else { _root.createPoof(_root.player._x + 30, _root.player._y - yOffSet); _x = _root.player._x + 60; _xscale = -100; } gotoAndStop('attack'); if (_root.player.flying) { _y = _root.player._y - yOffSet; _root.dima.attacking.gotoAndPlay('highAttack'); } else { _y = bottom; _root.dima.attacking.gotoAndPlay('thirdSlash'); busyGeneric = false; } teleport = false; } teleCounter -= 1; } } } else { if (!blocking && !lazerFiring && !busyGeneric) { if (hp < maxhp / 2 && random(40) == 1 && !attack && !hurt) { lazerFiring = true; gotoAndStop('lazer'); } else { if (Math.abs(_root.player._x - _x) <= 100 && !attack && random(3) == 1) { if (hp > maxhp / 2) { if (_root.arm.guarding) { attack = true; busyGeneric = true; gotoAndStop('attack'); _root.dima.attacking.gotoAndPlay('powerHit'); } } else { attack = true; busyGeneric = true; gotoAndStop('attack'); _root.dima.attacking.gotoAndPlay('powerHit'); } } else { if (energy < 25 || Math.abs(_root.player._x - _x) <= 25) { blocking = true; attack = false; } else { if (Math.abs(_root.player._x - _x) <= 85 && !hurt && energy > 20) { if (_root.player._x > this._x && !hurt && !attack) { _xscale = 100; } else { if (!hurt && !attack) { _xscale = -100; } } attack = true; gotoAndStop('attack'); } } } } } } if (Math.abs(_root.player._x - _x) > 35 && energy > 60) { blocking = false; } if (!hurt && !attack && !lazerFiring && !teleport && !falling) { if (energy < maxEn) { energy += 10; } if (_root.player._x > this._x) { dirr = 1; _xscale = 100; if (_y >= bottom - 20) { if (!blocking) { _x = _x + 10; gotoAndStop('move'); } else { _x = _x - 5; gotoAndStop('block'); } } } else { if (!hurt && !attack) { dirr = -1; _xscale = -100; if (_y >= bottom - 20) { if (!blocking) { _x = _x - 10; gotoAndStop('move'); } else { _x = _x + 5; gotoAndStop('block'); } } } } } if (this.hit.hitTest(_root.arm.sword.s) && !blocking && !lazerFiring) { dtype = 1; hurt = true; ++_global.es1; ++_global.es2; _root.dCounter.duplicateMovieClip('dCounter' + _global.es1, _global.es2); _root['dCounter' + _global.es1]._x = this._x; _root['dCounter' + _global.es1]._y = this._y; if (_root.player.dash) { gotoAndStop('hurt'); attack = false; extraDamage = 2; busyGeneric = false; } _root['dCounter' + _global.es1].damageCounter = _root.arm.power + _root.arm.damage + extraDamage; hp -= _root.arm.power + _root.arm.damage + extraDamage; knockBack = true; force = dirr * (_root.arm.knockBack + extraDamage); if (_root.arm.up) { flyup = true; forceUp = -1 * (_root.arm.knockBack + _root.arm.power / 2 + extraDamage); } } } else { if (falling) { if (_root.player.knockedDown && _root.player._y > 110 && hp < maxhp / 2 && ultimateChance) { if (random(2) == 1) { ultimate(_root.player._x, 234); ultimateChance = false; } else { ultimateChance = false; } } if (_y < bottom) { _y = _y + fallRateY; fallRateY += 1; } else { _y = bottom; falling = false; ultimateChance = true; attack = false; busyGeneric = false; gotoAndStop('move'); } } } if (hp <= 0 && !dead) { _root.score += 500; ++_global.kills; knockBack = false; dead = true; } if (hurt) { redAmount = 255; if (!dead && _root.arm.damagetype == 'lightning' && this.LD._alpha <= 0) { this.LD._alpha = 100; } else { if (!dead && _root.arm.damagetype == 'fire' && this.FD._alpha <= 0) { this.FD._alpha = 100; } } ++_global.es1; ++_global.es2; _root.blood.duplicateMovieClip('blood' + _global.es1, _global.es2); _root['blood' + _global.es1]._x = this._x; _root['blood' + _global.es1]._y = this._y; _root['blood' + _global.es1]._rotation = _root.arm._rotation + random(20); if (this._currentframe != 3) { hurt = false; } else { attack = false; block = false; busyGeneric = false; } } if (knockBack) { if (KBcounter <= _root.arm.knockBack + extraDamage) { _x = _x - force; force *= 0.6; ++KBcounter; } else { knockBack = false; KBcounter = 0; extraDamage = 0; } } if (dead && !deathLock) { this.gotoAndStop('die1'); _root.sound.fadeOut(0, 5); deathLock = true; } } else { if (_root.player.dead) { gotoAndStop('stand'); lazerFiring = false; blocking = false; attack = false; hurt = false; if (_root.death._currentframe == 11) { hp = maxhp; energy = maxEn; _x = 463.6; _y = 194.2; _xscale = -100; redAmount = 0; notAdded = true; var myColorTransform = {'ra': 100, 'rb': redAmount, 'ga': 100, 'gb': 0, 'ba': 100, 'bb': 0, 'aa': 100, 'ab': 0}; my_color.setTransform(myColorTransform); } } else { if (!dead) { if (!_root.player.dead) { pauseSelf(); } else { gotoAndStop('stand'); } } } } if (flyup && !_root.pawsd || flyup && dead) { _y = _y + forceUp; if (_y < bottom) { if (forceUp < 30) { ++forceUp; } } else { flyup = false; _y = bottom; } } if (redAmount > 0) { var myColorTransform = {'ra': 100, 'rb': redAmount, 'ga': 100, 'gb': 0, 'ba': 100, 'bb': 0, 'aa': 100, 'ab': 0}; my_color.setTransform(myColorTransform); redAmount -= 15; } } } instance of movieClip 2189 { onClipEvent (load) { ground.duplicateMovieClip('ground2', 100); ground.duplicateMovieClip('ground3', 101); ground2._x = ground._x + ground._width; ground3._x = ground._x - ground._width; groundStartx = this._x; } onClipEvent (enterFrame) { if (!_root.pawsd && !_root.scrollLock) { groundSpeed = Math.round(_root.player.speed); if (_root.player.scrollStartR == true) { this._x -= groundSpeed; if (this._x <= groundStartx - ground._width) { this._x = groundStartx; } } if (_root.player.scrollStartL == true) { this._x += groundSpeed; if (this._x > groundStartx + ground._width) { this._x = groundStartx; } } } } } instance of movieClip 1802 { onClipEvent (load) { ground.duplicateMovieClip('ground2', 100); ground.duplicateMovieClip('ground3', 101); ground2._x = ground._x + ground._width; ground3._x = ground._x - ground._width; groundStartx = this._x; } onClipEvent (enterFrame) { if (!_root.pawsd && !_root.scrollLock && _global.scrolling == 3) { groundSpeed = Math.round(_root.player.speed) / 32; if (_root.player.scrollStartR == true) { this._x -= groundSpeed; if (this._x <= groundStartx - ground._width) { this._x = groundStartx; } } if (_root.player.scrollStartL == true) { this._x += groundSpeed; if (this._x > groundStartx + ground._width) { this._x = groundStartx; } } } } } instance saveObj of movieClip 1926 { onClipEvent (load) { function levelStartSave() { distance = _root.distance; score = _root.score; gold = _root.gold; startpoint = _root.player._x; starthp = _root.player.hp; } function loadStart() { _root.distance = distance; _root.score = score; _root.gold = gold; _root.player._x = startpoint; _root.player.hp = starthp; _root.player.reset(); } function info() {} distance = 0; score = 0; gold = 0; startpoint = 0; starthp = _root.player.hp; levelStartSave(); } onClipEvent (enterFrame) { } }




http://swfchan.com/9/40944/info.shtml
Created: 10/5 -2019 16:21:24 Last modified: 10/5 -2019 16:21:24 Server time: 10/05 -2024 02:51:48